@odigos/ui-kit 0.0.190 → 0.0.192
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 +15 -0
- package/lib/chunks/index-BgT3kLZa.js +3 -0
- package/lib/chunks/{ui-components-C1WJWY4E.js → ui-components-CCA7B7ry.js} +334 -334
- package/lib/components/_v2/drop-data/index.d.ts +5 -1
- package/lib/components/_v2/drop-down/index.d.ts +9 -0
- package/lib/components/_v2/index.d.ts +1 -0
- package/lib/components/_v2/input/index.d.ts +1 -1
- package/lib/components/_v2/input-table/index.d.ts +1 -1
- package/lib/components/_v2/input-table/types.d.ts +4 -2
- package/lib/components/_v2/toggle/index.d.ts +2 -1
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/multi-source-control/index.d.ts +1 -1
- package/lib/containers/source-drawer/describe/index.d.ts +1 -1
- package/lib/containers/v2.js +1 -1
- package/lib/containers.js +112 -112
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets/_v2/index.d.ts +1 -0
- package/lib/snippets/_v2/signals-checkbox-list/index.d.ts +11 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +6 -6
- package/lib/chunks/index-Aa36Kwto.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttributeIcon as n,AddClusterInfoIcon as o,K8sLogo as r,ImageErrorIcon as a,KafkaLogo as s,RedisLogo as l,PostgresLogo as c,NginxLogo as d,MysqlLogo as p,ElixirLogo as u,SwiftLogo as h,RustLogo as m,RubyLogo as g,PhpLogo as $,CPlusPlusLogo as x,CSharpLogo as f,DotnetLogo as b,PythonLogo as y,NodejsLogo as w,GoLogo as v,JavaLogo as k,AwsXrayLogo as C,VictoriaMetricsLogo as S,UptraceLogo as E,TraceloopLogo as A,TingyunLogo as D,TempoLogo as T,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as I,SignozLogo as O,SeqLogo as N,AwsS3Logo as _,QuickwitLogo as B,GigapipeLogo as R,QrynLogo as M,PrometheusLogo as L,OpenTelemetryLogo as P,OracleLogo as j,OpsVerseLogo as U,OpenObserveLogo as W,OneUptimeLogo as V,OdigosLogo as q,ObserveLogo as H,NewRelicLogo as G,MiddlewareLogo as K,LumigoLogo as Y,LokiLogo as J,LogzioLogo as X,LightstepLogo as Z,Last9Logo as Q,KloudmateLogo as ee,JaegerLogo as te,InstanaLogo as ie,HyperDxLogo as ne,HoneycombLogo as oe,GroundcoverLogo as re,GreptimeLogo as ae,GrafanaLogo as se,GoogleCloudPlatformLogo as le,ElasticSearchLogo as ce,ElasticApmLogo as de,DynatraceLogo as pe,DatadogLogo as ue,Dash0Logo as he,CoralogixLogo as me,AwsCloudwatchLogo as ge,ClickhouseLogo as $e,ChronosphereLogo as xe,ChecklyLogo as fe,CauselyLogo as be,BonreeLogo as ye,BetterStackLogo as we,AzureMonitorLogo as ve,AzureBlobLogo as ke,AxiomLogo as Ce,AppDynamicsLogo as Se,AlibabaCloudLogo as Ee,AlaudaLogo as Ae,InstrumentationRuleIcon as De,ActionIcon as Te,DestinationIcon as Fe,SourceIcon as ze,NamespacesIcon as Ie,PayloadCollectionIcon as Oe,HeadersCollectionIcon as Ne,CustomInstrumentationIcon as _e,CodeAttributesIcon as Be,TracesIcon as Re,MetricsIcon as Me,LogsIcon as Le,VmLogo as Pe,QuestionCircleIcon as je,XSquareIcon as Ue,VSquareIcon as We,ExclamationTriangleIcon as Ve,ExclamationCircleIcon as qe,ISquareIcon as He,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 it,EyeClosedIcon as nt,EyeOpenIcon as ot,SearchIcon as rt,TrashIcon as at,EditedIcon as st,SortArrowsIcon as lt,NotebookIcon as ct,ArrowIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as ht,DotsHorizontalIcon as mt,DotIcon as gt,FilterIcon as $t}from"../icons.js";import{create as xt}from"zustand";import{Fragment as ft,useMemo as bt,useState as yt,useEffect as wt,useRef as vt,useCallback as kt,forwardRef as Ct,memo as St,useContext as Et,createContext as At}from"react";import Dt from"javascript-time-ago";import{p as Tt,c as Ft,s as zt,u as It,e as Ot}from"./vendor-C-kwkNJP.js";import{jsx as Nt,jsxs as _t,Fragment as Bt}from"react/jsx-runtime";import Rt,{css as Mt,useTheme as Lt,ThemeProvider as Pt,keyframes as jt}from"styled-components";import{Handle as Ut,Position as Wt,ReactFlow as Vt,Controls as qt}from"@xyflow/react";import Ht,{createPortal as Gt}from"react-dom";import{Highlight as Kt,themes as Yt}from"prism-react-renderer";import{ErrorBoundary as Jt}from"react-error-boundary";import Xt from"lottie-react";const Zt=e=>e.charAt(0).toUpperCase()+e.slice(1),Qt=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),i=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,i(n)]:[e,n]));return Object.entries(e).reduce((e,[n,o])=>{try{const r=JSON.parse(o);Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]="object"==typeof r&&null!==r?JSON.stringify(i(r)):o}catch(r){"object"==typeof o&&null!==o?Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]=JSON.stringify(i(o)):e[n]=o}return e},{})};var ei;!function(e){e.SIGNALS="SIGNALS"}(ei||(ei={}));const ti=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,o,r]=e;if(n===ei.SIGNALS)switch(o){case"INCLUDES":return t?.includes(r);case"EXCLUDES":return!t?.includes(r);default:return!0}const a=i.find(e=>e.name===n);if(!a)return!0;switch(o){case"===":case"==":return a.value===r;case"!==":case"!=":return a.value!==r;case">":return Number(a.value)>Number(r);case"<":return Number(a.value)<Number(r);case">=":return Number(a.value)>=Number(r);case"<=":return Number(a.value)<=Number(r);default:return!0}},ii=e=>JSON.parse(JSON.stringify(e)),ni=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),i},oi=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},ri=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var ai,si,li,ci,di,pi,ui,hi,mi,gi,$i,xi,fi,bi,yi,wi,vi,ki,Ci,Si,Ei,Ai,Di,Ti,Fi,zi,Ii,Oi,Ni,_i,Bi,Ri,Mi,Li,Pi,ji,Ui,Wi,Vi,qi,Hi,Gi;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(ai||(ai={})),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"}(si||(si={})),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"}(li||(li={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(ci||(ci={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(di||(di={})),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"}(pi||(pi={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(ui||(ui={})),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"}(hi||(hi={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(mi||(mi={})),function(e){e.Ascending="ascending",e.Descending="descending"}(gi||(gi={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}($i||($i={})),function(e){e.K8s="k8s",e.Vm="vm"}(xi||(xi={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(fi||(fi={})),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"}(bi||(bi={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(yi||(yi={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(wi||(wi={})),function(e){e.DataStream="DataStream"}(vi||(vi={})),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"}(ki||(ki={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(Ci||(Ci={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Si||(Si={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Ei||(Ei={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Ai||(Ai={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Di||(Di={})),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"}(Ti||(Ti={})),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"}(Fi||(Fi={})),function(e){e.Labeled="labeled"}(zi||(zi={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Ii||(Ii={})),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"}(Oi||(Oi={})),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"}(Ni||(Ni={})),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"}(_i||(_i={})),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"}(Bi||(Bi={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Ri||(Ri={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Mi||(Mi={})),function(e){e.HeaderKeys="headerKeys"}(Li||(Li={})),function(e){e.Java="java",e.Golang="golang"}(Pi||(Pi={}));class Ki{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 Yi{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,n){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(ji||(ji={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Ui||(Ui={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(Wi||(Wi={})),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"}(Vi||(Vi={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(qi||(qi={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(Hi||(Hi={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(Gi||(Gi={}));const Ji={[Hi.Logs]:Gi.Logs,[Hi.Metrics]:Gi.Metrics,[Hi.Traces]:Gi.Traces},Xi={[Gi.Logs]:Hi.Logs,[Gi.Metrics]:Hi.Metrics,[Gi.Traces]:Hi.Traces},Zi=(e,t)=>{let i=[...e];return t.namespaces?.length&&(i=i.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(i=i.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(i=i.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(i=i.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:i})=>t===`${e}#${i}`)))),t.podsAgentInjectionStatus?.length&&(i=i.filter(({podsAgentInjectionStatus:e})=>!!t.podsAgentInjectionStatus?.find(({id:t})=>t===e?.reasonEnum||t===e?.message))),t.onlyErrors&&(i=i.filter(e=>!!e.conditions?.find(e=>e.status===Si.Error))),t.errors?.length&&(i=i.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),i},Qi="https://docs.odigos.io",en="default",tn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},nn={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)'},on={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"},rn={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"},an=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===en&&!e.dataStreamNames.length):[],sn=(e,t="",i={})=>{for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],r=t?`${t}.${n}`:n;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const n=`${r}[${t}]`;null!==e&&"object"==typeof e?sn(e,n,i):i[n]=e}):i[r]=o:sn(o,r,i)}return i},ln=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]}`},cn=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`}},dn=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>{const n=e[t%16];return t++,("1"===i?n:"0"===i?63&n|128:15&n|64).toString(16)})},pn=s=>{const l=s?.toLowerCase(),c=l?.includes(ai.Samplers),d=l===ai.Attributes;return c?e:d?t:{[si.K8sAttributes]:r,[si.AddClusterInfo]:o,[si.DeleteAttributes]:n,[si.PiiMasking]:t,[si.RenameAttributes]:i,[si.ErrorSampler]:e,[si.ProbabilisticSampler]:e,[si.LatencySampler]:e,[si.ServiceNameSampler]:e,[si.SpanAttributeSampler]:e}[s]||a},un=e=>{const t=e?.filter(({status:e})=>e===Si.Error),i=e?.filter(({status:e})=>e===Si.Warning),n=e?.filter(({status:e})=>e===Ai.Disabled),o=e?.filter(({status:e})=>e===Ai.Loading),r=t.length>0,a=i.length>0,s=n.length>0;return{errors:t,hasErrors:r,warnings:i,hasWarnings:a,disableds:n,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:r?Si.Error:a?Si.Warning:s?Si.Info:void 0}},hn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},mn=e=>({[bi.Java]:k,[bi.Go]:v,[bi.JavaScript]:w,[bi.Python]:y,[bi.DotNet]:b,[bi.CSharp]:f,[bi.CPlusPlus]:x,[bi.Php]:$,[bi.Ruby]:g,[bi.Rust]:m,[bi.Swift]:h,[bi.Elixir]:u,[bi.MySql]:p,[bi.Nginx]:d,[bi.Postgres]:c,[bi.Redis]:l,[bi.Kafka]:s,[bi.Ignored]:a,[bi.Unknown]:a,[bi.Processing]:a,[bi.NoContainers]:a,[bi.NoRunningPods]:a}[e]||a),gn=e=>e?.map(({language:e})=>mn(e))||[],$n=(e,t)=>{const i={[Oi.Alauda]:Ae,[Oi.AlibabaCloud]:Ee,[Oi.AppDynamics]:Se,[Oi.Axiom]:Ce,[Oi.AzureBlob]:ke,[Oi.AzureMonitor]:ve,[Oi.BetterStack]:we,[Oi.Bonree]:ye,[Oi.Causely]:be,[Oi.Checkly]:fe,[Oi.Chronosphere]:xe,[Oi.ClickHouse]:$e,[Oi.CloudWatch]:ge,[Oi.Coralogix]:me,[Oi.Dash0]:he,[Oi.Datadog]:ue,[Oi.Dynamic]:P,[Oi.Dynatrace]:pe,[Oi.ElasticApm]:de,[Oi.ElasticSearch]:ce,[Oi.GoogleCloud]:le,[Oi.GoogleCloudOTLP]:le,[Oi.GrafanaCloudLoki]:se,[Oi.GrafanaCloudPrometheus]:se,[Oi.GrafanaCloudTempo]:se,[Oi.Greptime]:ae,[Oi.Groundcover]:re,[Oi.Honeycomb]:oe,[Oi.HyperDX]:ne,[Oi.Instana]:ie,[Oi.Jaeger]:te,[Oi.Kafka]:s,[Oi.Kloudmate]:ee,[Oi.Last9]:Q,[Oi.Lightstep]:Z,[Oi.LogzIo]:X,[Oi.Loki]:J,[Oi.Lumigo]:Y,[Oi.Middleware]:K,[Oi.NewRelic]:G,[Oi.Observe]:H,[Oi.Odigos]:q,[Oi.OneUptime]:V,[Oi.OpenObserve]:W,[Oi.Opsverse]:U,[Oi.Oracle]:j,[Oi.OTLP]:P,[Oi.OTLPHttp]:P,[Oi.Prometheus]:L,[Oi.Qryn]:M,[Oi.QrynOss]:R,[Oi.Quickwit]:B,[Oi.S3]:_,[Oi.Seq]:N,[Oi.Signalfx]:I,[Oi.Signoz]:O,[Oi.Splunk]:I,[Oi.SplunkSapm]:I,[Oi.SplunkOtlp]:I,[Oi.SumoLogic]:z,[Oi.TelemetryHub]:F,[Oi.Tempo]:T,[Oi.Tingyun]:D,[Oi.Traceloop]:A,[Oi.Uptrace]:E,[Oi.VictoriaMetrics]:S,[Oi.VictoriaMetricsCloud]:S,[Oi.XRay]:C}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},xn=e=>({[wi.Namespace]:Ie,[wi.Source]:ze,[wi.Destination]:Fe,[wi.Action]:Te,[wi.InstrumentationRule]:De}[e]),fn=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,bn=(e,t,i)=>{const{extended:n,prioritizeDisplayName:o}=i||{};let r="",a="";switch(t){case wi.InstrumentationRule:const t=e;r=t.type,a=t.ruleName;break;case wi.Source:const i=e;r=i.name,a=i.otelServiceName;break;case wi.Action:const n=e;r=n.type,a=n.name;break;case wi.Destination:const o=e;r=o.destinationType.displayName,a=o.name;break;case wi.Namespace:const s=e;r=s.name,a=s.name}return n?r+(a&&a!==r?` (${a})`:""):o&&a||r},yn=(e,t)=>{if(t===wi.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},wn=e=>({[Ri.CodeAttributes]:Be,[Ri.CustomInstrumentation]:_e,[Ri.HeadersCollection]:Ne,[Ri.PayloadCollection]:Oe,[Ri.UnknownType]:a}[e]||a),vn=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?bi.Processing:bi.NoRunningPods;const n=i?.filter(e=>e.language!==bi.Ignored);if(!n.length)return bi.NoContainers;const o=n.find(e=>e.language!==bi.Unknown);return o?o.language:bi.Unknown},kn=(e,t,i)=>(t===wi.Source?e?.sources.find(e=>e.kind===i.kind&&e.name===i.name&&e.namespace===i.namespace):e?.destinations.find(e=>e.id===i))||{throughput:0},Cn=e=>({[Hi.Logs]:Le,[Hi.Metrics]:Me,[Hi.Traces]:Re}[e]),Sn=e=>e?{[xi.K8s]:r,[xi.Vm]:Pe}[e]:q,En=e=>e?{[xi.K8s]:"Kubernetes Cluster",[xi.Vm]:"Virtual Machine"}[e]:"Unknown",An=(e,t,i)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[i],o=[];return void 0!==n&&(Array.isArray(n)?o.push(...n):o.push(n)),o.push(...An(e,t,i)),o}):[]},Dn=(e,t)=>{if(t===wi.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},Tn=(e,t,i)=>{switch(t){case Si.Default:return e.v2.colors.purple[i];case Si.Info:return e.v2.colors.blue[i];case Si.Error:return e.v2.colors.red[i];case Si.Warning:return e.v2.colors.yellow[i];case Si.Success:return e.v2.colors.green[i];case Di.Disabled:case Di.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},Fn=e=>{switch(e){case Ui.Updating:case Wi.Pending:case Vi.ContainerCreating:case qi.Waiting:return Si.Info;case Ui.Healthy:case Wi.Succeeded:case Wi.Running:case Vi.Running:case qi.Running:return Si.Success;case Ui.Degraded:return Si.Warning;case Ui.Failed:case Wi.Failed:case Vi.Error:case Vi.CrashLoopBackOff:case Vi.CreateContainerError:case Vi.CreateContainerConfigError:case Vi.ErrImagePull:case Vi.ErrImageNeverPull:case Vi.ImagePullBackOff:case Vi.InvalidImageName:case Vi.RegistryUnavailable:case Vi.NetworkNotReady:case Vi.OOMKilled:case Vi.ContainerCannotRun:case qi.Terminated:case Vi.DeadlineExceeded:case Vi.StartError:return Si.Error;case Ui.Down:case Vi.Completed:return Di.Disabled;case Ui.Unknown:case Wi.Unknown:default:return Di.Unknown}},zn=(e,t)=>({[Si.Default]:i=>q({fill:Tn(t,e,"300"),...i}),[Si.Info]:i=>He({fill:Tn(t,e,"400"),...i}),[Si.Error]:i=>qe({fill:Tn(t,e,"500"),...i}),[Si.Warning]:i=>Ve({fill:Tn(t,e,"500"),...i}),[Si.Success]:i=>We({fill:Tn(t,e,"500"),...i}),[Di.Disabled]:i=>Ue({fill:Tn(t,e,"400"),...i}),[Di.Unknown]:i=>je({fill:Tn(t,e,"300"),...i})}[e]),In=e=>{switch(e){case Bi.Success:return Si.Success;case Bi.Error:case Bi.Failure:return Si.Error;case Bi.Notice:return Si.Warning;case Bi.Unsupported:case Bi.Unknown:return Si.Info;case Bi.Irrelevant:case Bi.Disabled:return Ai.Disabled;case Bi.Waiting:return Ai.Loading;case Bi.Pending:default:return Si.Default}},On=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Nn=({namespace:e,name:t,kind:i})=>({namespace:e,name:t,kind:i});function _n(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Bn=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=_n(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&i.push(...e.items[o].fields.map(e=>({...e,initialValue:n[e.name]})))}return i},Rn=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Si.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1},Mn=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Ln=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Pn=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},jn=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Un=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Wn=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Vn=e=>Wn.test(e),qn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",Hn=e=>e?.map(({status:e,type:t,reason:i,message:n,lastTransitionTime:o})=>({status:e,type:qn(t),reason:i?qn(i):"",message:n,lastTransitionTime:o}))||[],Gn=(e,t)=>{const i=_n(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:i[e.name]??null})).filter(e=>null!==e.value):Object.entries(i).map(([e,t])=>({key:e,name:e,value:t}))},Kn=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Xi[e]):[],Yn=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Xi[e]):[],Jn=e=>e.replace(/[^\d]/g,""),Xn=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Zn=e=>{let t="";try{const i=JSON.parse(e);t=Array.isArray(i)?i.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof i&&null!==i?Object.entries(i).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(i){t=e}return t},Qn=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const n=e[i];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[i]=e.map(e=>Qn(e)))}else if("object"==typeof n&&null!==n){const e=Qn(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},eo=(e,t=2)=>JSON.stringify(e||{},null,t),to=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),io=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),no=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const i=t.split(".");return 1e4*parseInt(i[0]||"0",10)+parseInt(i[1]||"0",10)};var oo,ro;!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"}(oo||(oo={})),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"}(ro||(ro={}));const ao=Rt.p`
|
|
1
|
+
import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttributeIcon as n,AddClusterInfoIcon as o,K8sLogo as r,ImageErrorIcon as a,KafkaLogo as s,RedisLogo as l,PostgresLogo as c,NginxLogo as d,MysqlLogo as p,ElixirLogo as u,SwiftLogo as h,RustLogo as m,RubyLogo as g,PhpLogo as $,CPlusPlusLogo as x,CSharpLogo as f,DotnetLogo as b,PythonLogo as y,NodejsLogo as w,GoLogo as v,JavaLogo as k,AwsXrayLogo as C,VictoriaMetricsLogo as S,UptraceLogo as E,TraceloopLogo as A,TingyunLogo as D,TempoLogo as T,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as I,SignozLogo as O,SeqLogo as N,AwsS3Logo as _,QuickwitLogo as R,GigapipeLogo as B,QrynLogo as M,PrometheusLogo as L,OpenTelemetryLogo as P,OracleLogo as j,OpsVerseLogo as U,OpenObserveLogo as W,OneUptimeLogo as V,OdigosLogo as q,ObserveLogo as H,NewRelicLogo as G,MiddlewareLogo as K,LumigoLogo as Y,LokiLogo as J,LogzioLogo as X,LightstepLogo as Z,Last9Logo as Q,KloudmateLogo as ee,JaegerLogo as te,InstanaLogo as ie,HyperDxLogo as ne,HoneycombLogo as oe,GroundcoverLogo as re,GreptimeLogo as ae,GrafanaLogo as se,GoogleCloudPlatformLogo as le,ElasticSearchLogo as ce,ElasticApmLogo as de,DynatraceLogo as pe,DatadogLogo as ue,Dash0Logo as he,CoralogixLogo as me,AwsCloudwatchLogo as ge,ClickhouseLogo as $e,ChronosphereLogo as xe,ChecklyLogo as fe,CauselyLogo as be,BonreeLogo as ye,BetterStackLogo as we,AzureMonitorLogo as ve,AzureBlobLogo as ke,AxiomLogo as Ce,AppDynamicsLogo as Se,AlibabaCloudLogo as Ee,AlaudaLogo as Ae,InstrumentationRuleIcon as De,ActionIcon as Te,DestinationIcon as Fe,SourceIcon as ze,NamespacesIcon as Ie,PayloadCollectionIcon as Oe,HeadersCollectionIcon as Ne,CustomInstrumentationIcon as _e,CodeAttributesIcon as Re,TracesIcon as Be,MetricsIcon as Me,LogsIcon as Le,VmLogo as Pe,QuestionCircleIcon as je,XSquareIcon as Ue,VSquareIcon as We,ExclamationTriangleIcon as Ve,ExclamationCircleIcon as qe,ISquareIcon as He,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 it,EyeClosedIcon as nt,EyeOpenIcon as ot,SearchIcon as rt,TrashIcon as at,EditedIcon as st,SortArrowsIcon as lt,NotebookIcon as ct,ArrowIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as ht,DotsHorizontalIcon as mt,DotIcon as gt,FilterIcon as $t}from"../icons.js";import{create as xt}from"zustand";import{Fragment as ft,useMemo as bt,useState as yt,useEffect as wt,useRef as vt,useCallback as kt,forwardRef as Ct,memo as St,useContext as Et,createContext as At}from"react";import Dt from"javascript-time-ago";import{p as Tt,c as Ft,s as zt,u as It,e as Ot}from"./vendor-C-kwkNJP.js";import{jsx as Nt,jsxs as _t,Fragment as Rt}from"react/jsx-runtime";import Bt,{css as Mt,useTheme as Lt,ThemeProvider as Pt,keyframes as jt}from"styled-components";import{Handle as Ut,Position as Wt,ReactFlow as Vt,Controls as qt}from"@xyflow/react";import Ht,{createPortal as Gt}from"react-dom";import{Highlight as Kt,themes as Yt}from"prism-react-renderer";import{ErrorBoundary as Jt}from"react-error-boundary";import Xt from"lottie-react";const Zt=e=>e.charAt(0).toUpperCase()+e.slice(1),Qt=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),i=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,i(n)]:[e,n]));return Object.entries(e).reduce((e,[n,o])=>{try{const r=JSON.parse(o);Array.isArray(r)?e[n]=JSON.stringify(t(r)):e[n]="object"==typeof r&&null!==r?JSON.stringify(i(r)):o}catch(r){"object"==typeof o&&null!==o?Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]=JSON.stringify(i(o)):e[n]=o}return e},{})};var ei;!function(e){e.SIGNALS="SIGNALS"}(ei||(ei={}));const ti=(e,t,i)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,o,r]=e;if(n===ei.SIGNALS)switch(o){case"INCLUDES":return t?.includes(r);case"EXCLUDES":return!t?.includes(r);default:return!0}const a=i.find(e=>e.name===n);if(!a)return!0;switch(o){case"===":case"==":return a.value===r;case"!==":case"!=":return a.value!==r;case">":return Number(a.value)>Number(r);case"<":return Number(a.value)<Number(r);case">=":return Number(a.value)>=Number(r);case"<=":return Number(a.value)<=Number(r);default:return!0}},ii=e=>JSON.parse(JSON.stringify(e)),ni=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),i},oi=(e,t)=>{let i=[...e];return t.monitors?.length&&(i=i.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),i},ri=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var ai,si,li,ci,di,pi,ui,hi,mi,gi,$i,xi,fi,bi,yi,wi,vi,ki,Ci,Si,Ei,Ai,Di,Ti,Fi,zi,Ii,Oi,Ni,_i,Ri,Bi,Mi,Li,Pi,ji,Ui,Wi,Vi,qi,Hi,Gi;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(ai||(ai={})),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"}(si||(si={})),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"}(li||(li={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(ci||(ci={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(di||(di={})),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"}(pi||(pi={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(ui||(ui={})),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"}(hi||(hi={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(mi||(mi={})),function(e){e.Ascending="ascending",e.Descending="descending"}(gi||(gi={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}($i||($i={})),function(e){e.K8s="k8s",e.Vm="vm"}(xi||(xi={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(fi||(fi={})),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"}(bi||(bi={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(yi||(yi={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(wi||(wi={})),function(e){e.DataStream="DataStream"}(vi||(vi={})),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"}(ki||(ki={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(Ci||(Ci={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Si||(Si={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Ei||(Ei={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Ai||(Ai={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Di||(Di={})),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"}(Ti||(Ti={})),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"}(Fi||(Fi={})),function(e){e.Labeled="labeled"}(zi||(zi={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Ii||(Ii={})),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"}(Oi||(Oi={})),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"}(Ni||(Ni={})),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"}(_i||(_i={})),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"}(Ri||(Ri={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Bi||(Bi={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Mi||(Mi={})),function(e){e.HeaderKeys="headerKeys"}(Li||(Li={})),function(e){e.Java="java",e.Golang="golang"}(Pi||(Pi={}));class Ki{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 Yi{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,i,n){this.packageName=e,this.functionName=t||"",this.receiverName=i||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(ji||(ji={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Ui||(Ui={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(Wi||(Wi={})),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"}(Vi||(Vi={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(qi||(qi={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(Hi||(Hi={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(Gi||(Gi={}));const Ji={[Hi.Logs]:Gi.Logs,[Hi.Metrics]:Gi.Metrics,[Hi.Traces]:Gi.Traces},Xi={[Gi.Logs]:Hi.Logs,[Gi.Metrics]:Hi.Metrics,[Gi.Traces]:Hi.Traces},Zi=(e,t)=>{let i=[...e];return t.namespaces?.length&&(i=i.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(i=i.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(i=i.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(i=i.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:i})=>t===`${e}#${i}`)))),t.podsAgentInjectionStatus?.length&&(i=i.filter(({podsAgentInjectionStatus:e})=>!!t.podsAgentInjectionStatus?.find(({id:t})=>t===e?.reasonEnum||t===e?.message))),t.onlyErrors&&(i=i.filter(e=>!!e.conditions?.find(e=>e.status===Si.Error))),t.errors?.length&&(i=i.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),i},Qi="https://docs.odigos.io",en="default",tn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},nn={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)'},on={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"},rn={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"},an=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===en&&!e.dataStreamNames.length):[],sn=(e,t="",i={})=>{for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],r=t?`${t}.${n}`:n;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const n=`${r}[${t}]`;null!==e&&"object"==typeof e?sn(e,n,i):i[n]=e}):i[r]=o:sn(o,r,i)}return i},ln=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]}`},cn=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`}},dn=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>{const n=e[t%16];return t++,("1"===i?n:"0"===i?63&n|128:15&n|64).toString(16)})},pn=s=>{const l=s?.toLowerCase(),c=l?.includes(ai.Samplers),d=l===ai.Attributes;return c?e:d?t:{[si.K8sAttributes]:r,[si.AddClusterInfo]:o,[si.DeleteAttributes]:n,[si.PiiMasking]:t,[si.RenameAttributes]:i,[si.ErrorSampler]:e,[si.ProbabilisticSampler]:e,[si.LatencySampler]:e,[si.ServiceNameSampler]:e,[si.SpanAttributeSampler]:e}[s]||a},un=e=>{const t=e?.filter(({status:e})=>e===Si.Error),i=e?.filter(({status:e})=>e===Si.Warning),n=e?.filter(({status:e})=>e===Ai.Disabled),o=e?.filter(({status:e})=>e===Ai.Loading),r=t.length>0,a=i.length>0,s=n.length>0;return{errors:t,hasErrors:r,warnings:i,hasWarnings:a,disableds:n,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:r?Si.Error:a?Si.Warning:s?Si.Info:void 0}},hn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},mn=e=>({[bi.Java]:k,[bi.Go]:v,[bi.JavaScript]:w,[bi.Python]:y,[bi.DotNet]:b,[bi.CSharp]:f,[bi.CPlusPlus]:x,[bi.Php]:$,[bi.Ruby]:g,[bi.Rust]:m,[bi.Swift]:h,[bi.Elixir]:u,[bi.MySql]:p,[bi.Nginx]:d,[bi.Postgres]:c,[bi.Redis]:l,[bi.Kafka]:s,[bi.Ignored]:a,[bi.Unknown]:a,[bi.Processing]:a,[bi.NoContainers]:a,[bi.NoRunningPods]:a}[e]||a),gn=e=>e?.map(({language:e})=>mn(e))||[],$n=(e,t)=>{const i={[Oi.Alauda]:Ae,[Oi.AlibabaCloud]:Ee,[Oi.AppDynamics]:Se,[Oi.Axiom]:Ce,[Oi.AzureBlob]:ke,[Oi.AzureMonitor]:ve,[Oi.BetterStack]:we,[Oi.Bonree]:ye,[Oi.Causely]:be,[Oi.Checkly]:fe,[Oi.Chronosphere]:xe,[Oi.ClickHouse]:$e,[Oi.CloudWatch]:ge,[Oi.Coralogix]:me,[Oi.Dash0]:he,[Oi.Datadog]:ue,[Oi.Dynamic]:P,[Oi.Dynatrace]:pe,[Oi.ElasticApm]:de,[Oi.ElasticSearch]:ce,[Oi.GoogleCloud]:le,[Oi.GoogleCloudOTLP]:le,[Oi.GrafanaCloudLoki]:se,[Oi.GrafanaCloudPrometheus]:se,[Oi.GrafanaCloudTempo]:se,[Oi.Greptime]:ae,[Oi.Groundcover]:re,[Oi.Honeycomb]:oe,[Oi.HyperDX]:ne,[Oi.Instana]:ie,[Oi.Jaeger]:te,[Oi.Kafka]:s,[Oi.Kloudmate]:ee,[Oi.Last9]:Q,[Oi.Lightstep]:Z,[Oi.LogzIo]:X,[Oi.Loki]:J,[Oi.Lumigo]:Y,[Oi.Middleware]:K,[Oi.NewRelic]:G,[Oi.Observe]:H,[Oi.Odigos]:q,[Oi.OneUptime]:V,[Oi.OpenObserve]:W,[Oi.Opsverse]:U,[Oi.Oracle]:j,[Oi.OTLP]:P,[Oi.OTLPHttp]:P,[Oi.Prometheus]:L,[Oi.Qryn]:M,[Oi.QrynOss]:B,[Oi.Quickwit]:R,[Oi.S3]:_,[Oi.Seq]:N,[Oi.Signalfx]:I,[Oi.Signoz]:O,[Oi.Splunk]:I,[Oi.SplunkSapm]:I,[Oi.SplunkOtlp]:I,[Oi.SumoLogic]:z,[Oi.TelemetryHub]:F,[Oi.Tempo]:T,[Oi.Tingyun]:D,[Oi.Traceloop]:A,[Oi.Uptrace]:E,[Oi.VictoriaMetrics]:S,[Oi.VictoriaMetricsCloud]:S,[Oi.XRay]:C}[e];return i&&!t?{icon:i}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},xn=e=>({[wi.Namespace]:Ie,[wi.Source]:ze,[wi.Destination]:Fe,[wi.Action]:Te,[wi.InstrumentationRule]:De}[e]),fn=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,bn=(e,t,i)=>{const{extended:n,prioritizeDisplayName:o}=i||{};let r="",a="";switch(t){case wi.InstrumentationRule:const t=e;r=t.type,a=t.ruleName;break;case wi.Source:const i=e;r=i.name,a=i.otelServiceName;break;case wi.Action:const n=e;r=n.type,a=n.name;break;case wi.Destination:const o=e;r=o.destinationType.displayName,a=o.name;break;case wi.Namespace:const s=e;r=s.name,a=s.name}return n?r+(a&&a!==r?` (${a})`:""):o&&a||r},yn=(e,t)=>{if(t===wi.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[i,n]=e.split("=");t[i]=n}),t}return e},wn=e=>({[Bi.CodeAttributes]:Re,[Bi.CustomInstrumentation]:_e,[Bi.HeadersCollection]:Ne,[Bi.PayloadCollection]:Oe,[Bi.UnknownType]:a}[e]||a),vn=e=>{const{numberOfInstances:t,containers:i}=e;if(!i)return t&&t>0?bi.Processing:bi.NoRunningPods;const n=i?.filter(e=>e.language!==bi.Ignored);if(!n.length)return bi.NoContainers;const o=n.find(e=>e.language!==bi.Unknown);return o?o.language:bi.Unknown},kn=(e,t,i)=>(t===wi.Source?e?.sources.find(e=>e.kind===i.kind&&e.name===i.name&&e.namespace===i.namespace):e?.destinations.find(e=>e.id===i))||{throughput:0},Cn=e=>({[Hi.Logs]:Le,[Hi.Metrics]:Me,[Hi.Traces]:Be}[e]),Sn=e=>e?{[xi.K8s]:r,[xi.Vm]:Pe}[e]:q,En=e=>e?{[xi.K8s]:"Kubernetes Cluster",[xi.Vm]:"Virtual Machine"}[e]:"Unknown",An=(e,t,i)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[i],o=[];return void 0!==n&&(Array.isArray(n)?o.push(...n):o.push(n)),o.push(...An(e,t,i)),o}):[]},Dn=(e,t)=>{if(t===wi.Source){let t="";return Object.entries(e).forEach(([e,i])=>{t+=`${e}=${i}&`}),t.slice(0,-1),t}return e},Tn=(e,t,i)=>{switch(t){case Si.Default:return e.v2.colors.purple[i];case Si.Info:return e.v2.colors.blue[i];case Si.Error:return e.v2.colors.red[i];case Si.Warning:return e.v2.colors.yellow[i];case Si.Success:return e.v2.colors.green[i];case Di.Disabled:case Di.Unknown:return e.v2.colors.silver[i];default:return e.v2.colors.white[500]}},Fn=e=>{switch(e){case Ui.Updating:case Wi.Pending:case Vi.ContainerCreating:case qi.Waiting:return Si.Info;case Ui.Healthy:case Wi.Succeeded:case Wi.Running:case Vi.Running:case qi.Running:return Si.Success;case Ui.Degraded:return Si.Warning;case Ui.Failed:case Wi.Failed:case Vi.Error:case Vi.CrashLoopBackOff:case Vi.CreateContainerError:case Vi.CreateContainerConfigError:case Vi.ErrImagePull:case Vi.ErrImageNeverPull:case Vi.ImagePullBackOff:case Vi.InvalidImageName:case Vi.RegistryUnavailable:case Vi.NetworkNotReady:case Vi.OOMKilled:case Vi.ContainerCannotRun:case qi.Terminated:case Vi.DeadlineExceeded:case Vi.StartError:return Si.Error;case Ui.Down:case Vi.Completed:return Di.Disabled;case Ui.Unknown:case Wi.Unknown:default:return Di.Unknown}},zn=(e,t)=>({[Si.Default]:i=>q({fill:Tn(t,e,"300"),...i}),[Si.Info]:i=>He({fill:Tn(t,e,"400"),...i}),[Si.Error]:i=>qe({fill:Tn(t,e,"500"),...i}),[Si.Warning]:i=>Ve({fill:Tn(t,e,"500"),...i}),[Si.Success]:i=>We({fill:Tn(t,e,"500"),...i}),[Di.Disabled]:i=>Ue({fill:Tn(t,e,"400"),...i}),[Di.Unknown]:i=>je({fill:Tn(t,e,"300"),...i})}[e]),In=e=>{switch(e){case Ri.Success:return Si.Success;case Ri.Error:case Ri.Failure:return Si.Error;case Ri.Notice:return Si.Warning;case Ri.Unsupported:case Ri.Unknown:return Si.Info;case Ri.Irrelevant:case Ri.Disabled:return Ai.Disabled;case Ri.Waiting:return Ai.Loading;case Ri.Pending:default:return Si.Default}},On=(e,t)=>{const i=t.find(([t,i])=>e>=t&&(null===i||e<=i));return i?.[2]||null},Nn=({namespace:e,name:t,kind:i})=>({namespace:e,name:t,kind:i});function _n(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Rn=(e,t)=>{const i=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=_n(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&i.push(...e.items[o].fields.map(e=>({...e,initialValue:n[e.name]})))}return i},Bn=(e,t)=>{const i=e=>e?.some(({healthy:e})=>e.status!==Si.Success);return e?.length?e.some(({instrumentationInstances:e})=>i(e)):i(t)??!1},Mn=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Ln=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Pn=(e,t=0)=>{const i=(new Date).getTime();return new Date(e).getTime()-i<=t},jn=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Un=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Wn=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Vn=e=>Wn.test(e),qn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",Hn=e=>e?.map(({status:e,type:t,reason:i,message:n,lastTransitionTime:o})=>({status:e,type:qn(t),reason:i?qn(i):"",message:n,lastTransitionTime:o}))||[],Gn=(e,t)=>{const i=_n(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:i[e.name]??null})).filter(e=>null!==e.value):Object.entries(i).map(([e,t])=>({key:e,name:e,value:t}))},Kn=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Xi[e]):[],Yn=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Xi[e]):[],Jn=e=>e.replace(/[^\d]/g,""),Xn=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Zn=e=>{let t="";try{const i=JSON.parse(e);t=Array.isArray(i)?i.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof i&&null!==i?Object.entries(i).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(i){t=e}return t},Qn=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{const n=e[i];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[i]=e.map(e=>Qn(e)))}else if("object"==typeof n&&null!==n){const e=Qn(n);Object.keys(e).length>0&&(t[i]=e)}else[void 0,null,""].includes(n)||(t[i]=n)}),t},eo=(e,t=2)=>JSON.stringify(e||{},null,t),to=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),io=e=>Object.entries(e).reduce((e,[t,i])=>(e[t]="string"==typeof i?i:JSON.stringify(i),e),{}),no=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const i=t.split(".");return 1e4*parseInt(i[0]||"0",10)+parseInt(i[1]||"0",10)};var oo,ro;!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"}(oo||(oo={})),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"}(ro||(ro={}));const ao=Bt.p`
|
|
2
2
|
margin: 0;
|
|
3
3
|
color: ${({$color:e,theme:t})=>e||t.v2.colors.white[500]};
|
|
4
4
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -18,7 +18,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
18
18
|
${({$underline:e})=>e&&Mt`
|
|
19
19
|
text-decoration: underline;
|
|
20
20
|
`}
|
|
21
|
-
`,so=({children:e,variant:t=oo.P,color:i,size:n=ro.S,weight:o=400,align:r="left",lineHeight:a,transform:s,nowrap:l,underline:c,...d})=>{const p=e?.toString().split("\n")||[];return Nt(ao,{as:t,$color:i,$size:n,$weight:o,$align:r,$lineHeight:a,$transform:s,$nowrap:l,$underline:c,...d,children:p.map((e,t)=>_t(ft,{children:[e,t!==p.length-1&&Nt("br",{})]},`typography-${t}-${e}`))})},lo=
|
|
21
|
+
`,so=({children:e,variant:t=oo.P,color:i,size:n=ro.S,weight:o=400,align:r="left",lineHeight:a,transform:s,nowrap:l,underline:c,...d})=>{const p=e?.toString().split("\n")||[];return Nt(ao,{as:t,$color:i,$size:n,$weight:o,$align:r,$lineHeight:a,$transform:s,$nowrap:l,$underline:c,...d,children:p.map((e,t)=>_t(ft,{children:[e,t!==p.length-1&&Nt("br",{})]},`typography-${t}-${e}`))})},lo=Bt.div`
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: center;
|
|
24
24
|
justify-content: center;
|
|
@@ -28,7 +28,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
28
28
|
padding: 4px 8px;
|
|
29
29
|
border-radius: 100px;
|
|
30
30
|
background-color: ${({$backgroundColor:e})=>e};
|
|
31
|
-
`,co=({label:e,leftIcon:t,rightIcon:i,status:n=Di.Unknown,useSecondaryTone:o=!1,invertColors:r=!1,textSize:a,textColor:s,backgroundColor:l,minWidth:c="unset"})=>{const d=Lt(),p=n?[Di.Disabled].includes(n)?Tn(d,n,r?"400":"700"):[Di.Unknown].includes(n)?Tn(d,n,"600"):Tn(d,n,r?o?"400":"300":o?"700":"500"):d.v2.colors.grey[200],u=s||(r&&![Di.Unknown].includes(n)?p:[Di.Disabled].includes(n)?d.v2.colors.grey[400]:[Si.Error,Si.Warning,Si.Success].includes(n)?d.v2.colors.black[500]:d.v2.colors.white[500]),h=l||(r&&![Di.Unknown].includes(n)?[Di.Disabled].includes(n)?d.v2.colors.grey[700]:d.v2.colors.silver[600]:p);return _t(lo,{$backgroundColor:h,$minWidth:c,children:[t&&Nt(t,{fill:u,size:14}),Nt(so,{color:u,size:a||ro.XXS,nowrap:!0,children:e}),i&&Nt(i,{fill:u,size:14})]})},po=
|
|
31
|
+
`,co=({label:e,leftIcon:t,rightIcon:i,status:n=Di.Unknown,useSecondaryTone:o=!1,invertColors:r=!1,textSize:a,textColor:s,backgroundColor:l,minWidth:c="unset"})=>{const d=Lt(),p=n?[Di.Disabled].includes(n)?Tn(d,n,r?"400":"700"):[Di.Unknown].includes(n)?Tn(d,n,"600"):Tn(d,n,r?o?"400":"300":o?"700":"500"):d.v2.colors.grey[200],u=s||(r&&![Di.Unknown].includes(n)?p:[Di.Disabled].includes(n)?d.v2.colors.grey[400]:[Si.Error,Si.Warning,Si.Success].includes(n)?d.v2.colors.black[500]:d.v2.colors.white[500]),h=l||(r&&![Di.Unknown].includes(n)?[Di.Disabled].includes(n)?d.v2.colors.grey[700]:d.v2.colors.silver[600]:p);return _t(lo,{$backgroundColor:h,$minWidth:c,children:[t&&Nt(t,{fill:u,size:14}),Nt(so,{color:u,size:a||ro.XXS,nowrap:!0,children:e}),i&&Nt(i,{fill:u,size:14})]})},po=Bt.div`
|
|
32
32
|
color: ${({$color:e,theme:t})=>e||t.text.secondary};
|
|
33
33
|
font-size: ${({$size:e})=>void 0!==e?e:16}px;
|
|
34
34
|
font-weight: ${({$weight:e})=>void 0!==e?e:300};
|
|
@@ -39,15 +39,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
39
39
|
font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
|
|
40
40
|
white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
|
|
41
41
|
text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
|
|
42
|
-
`,uo=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,i,n]=e.split('"');return{original:e,href:i,label:n.replace("</a>","").replace(">","")}})},ho=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},mo=(e,t)=>{const i=uo(e);i?.forEach((t,i)=>{e=e.replace(t.original,`LINK-${i}###`)});const n=ho(e);return n?.forEach((t,i)=>{e=e.replace(t.original,`STRONG-${i}###`)}),e.split(" ").map(e=>{if(e.includes("LINK-")){const[n,o]=e.split("###"),r=i?.[parseInt(n.replace("LINK-",""))];return _t(ft,{children:[Nt("a",{href:r?.href,target:"_blank",rel:"noreferrer",style:{color:t.colors.majestic_blue_soft},children:r?.label}),o?`${o} `:" "]},e)}if(e.includes("STRONG-")){const[t,i]=e.split("###"),o=n?.[parseInt(t.replace("STRONG-",""))];return _t(ft,{children:[Nt("strong",{style:{fontWeight:600},children:o?.label}),i?`${i} `:" "]},e)}return e+" "})},go=({children:e,color:t,size:i,weight:n,align:o,family:r,opacity:a,decoration:s,transform:l,nowrap:c,...d})=>{const p=Lt(),u=bt(()=>(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 Nt(po,{$color:t,$size:i,$weight:n,$align:o,$family:r,$opacity:a,$decoration:s,$transform:l,$nowrap:c,...d,children:u.length?u.map((e,t)=>_t(ft,{children:[mo(e,p),t!==u.length-1?Nt("br",{}):null]},`text-${t}-${e}`)):e})},$o=
|
|
42
|
+
`,uo=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,i,n]=e.split('"');return{original:e,href:i,label:n.replace("</a>","").replace(">","")}})},ho=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},mo=(e,t)=>{const i=uo(e);i?.forEach((t,i)=>{e=e.replace(t.original,`LINK-${i}###`)});const n=ho(e);return n?.forEach((t,i)=>{e=e.replace(t.original,`STRONG-${i}###`)}),e.split(" ").map(e=>{if(e.includes("LINK-")){const[n,o]=e.split("###"),r=i?.[parseInt(n.replace("LINK-",""))];return _t(ft,{children:[Nt("a",{href:r?.href,target:"_blank",rel:"noreferrer",style:{color:t.colors.majestic_blue_soft},children:r?.label}),o?`${o} `:" "]},e)}if(e.includes("STRONG-")){const[t,i]=e.split("###"),o=n?.[parseInt(t.replace("STRONG-",""))];return _t(ft,{children:[Nt("strong",{style:{fontWeight:600},children:o?.label}),i?`${i} `:" "]},e)}return e+" "})},go=({children:e,color:t,size:i,weight:n,align:o,family:r,opacity:a,decoration:s,transform:l,nowrap:c,...d})=>{const p=Lt(),u=bt(()=>(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 Nt(po,{$color:t,$size:i,$weight:n,$align:o,$family:r,$opacity:a,$decoration:s,$transform:l,$nowrap:c,...d,children:u.length?u.map((e,t)=>_t(ft,{children:[mo(e,p),t!==u.length-1?Nt("br",{}):null]},`text-${t}-${e}`)):e})},$o=Bt.div`
|
|
43
43
|
padding: 4px 0 0 0;
|
|
44
|
-
`,xo=
|
|
44
|
+
`,xo=Bt(go)`
|
|
45
45
|
font-size: 12px;
|
|
46
46
|
color: ${({theme:e})=>e.text.error};
|
|
47
|
-
`,fo=({children:e})=>Nt($o,{children:Nt(xo,{children:e})}),bo=
|
|
47
|
+
`,fo=({children:e})=>Nt($o,{children:Nt(xo,{children:e})}),bo=Bt.div`
|
|
48
48
|
position: relative;
|
|
49
49
|
width: 100%;
|
|
50
|
-
`,yo=
|
|
50
|
+
`,yo=Bt.div`
|
|
51
51
|
width: calc(100% - 16px);
|
|
52
52
|
display: flex;
|
|
53
53
|
align-items: center;
|
|
@@ -64,7 +64,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
64
64
|
&:focus-within {
|
|
65
65
|
border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
|
|
66
66
|
}
|
|
67
|
-
`,wo=
|
|
67
|
+
`,wo=Bt.input`
|
|
68
68
|
flex: 1;
|
|
69
69
|
border: none;
|
|
70
70
|
outline: none;
|
|
@@ -85,7 +85,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
85
85
|
&:disabled {
|
|
86
86
|
cursor: not-allowed;
|
|
87
87
|
}
|
|
88
|
-
`,vo=
|
|
88
|
+
`,vo=Bt.ul`
|
|
89
89
|
position: absolute;
|
|
90
90
|
max-height: 500px;
|
|
91
91
|
top: 32px;
|
|
@@ -96,7 +96,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
96
96
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
97
97
|
z-index: 9999;
|
|
98
98
|
padding: 12px;
|
|
99
|
-
`,ko=
|
|
99
|
+
`,ko=Bt.li`
|
|
100
100
|
width: calc(100% - 24px);
|
|
101
101
|
padding: 8px 12px;
|
|
102
102
|
cursor: ${({$isList:e})=>e?"default":"pointer"};
|
|
@@ -108,34 +108,34 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
108
108
|
&:hover {
|
|
109
109
|
background: ${({theme:e,$isList:t})=>!t&&e.colors.dropdown_bg_2};
|
|
110
110
|
}
|
|
111
|
-
`,Co=
|
|
111
|
+
`,Co=Bt.div`
|
|
112
112
|
width: 100%;
|
|
113
|
-
`,So=
|
|
113
|
+
`,So=Bt.div`
|
|
114
114
|
display: flex;
|
|
115
115
|
width: 100%;
|
|
116
|
-
`,Eo=
|
|
116
|
+
`,Eo=Bt.div`
|
|
117
117
|
width: 1px;
|
|
118
118
|
height: 52px;
|
|
119
119
|
background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
120
120
|
position: absolute;
|
|
121
121
|
left: 33px;
|
|
122
|
-
`,Ao=
|
|
122
|
+
`,Ao=Bt.div`
|
|
123
123
|
display: flex;
|
|
124
124
|
flex-direction: column;
|
|
125
125
|
gap: 4px;
|
|
126
|
-
`,Do=
|
|
126
|
+
`,Do=Bt(go)`
|
|
127
127
|
flex: 1;
|
|
128
128
|
font-size: 14px;
|
|
129
|
-
`,To=
|
|
129
|
+
`,To=Bt(go)`
|
|
130
130
|
color: ${({theme:e})=>e.text.grey};
|
|
131
131
|
font-size: 10px;
|
|
132
132
|
line-height: 150%;
|
|
133
|
-
`,Fo=
|
|
133
|
+
`,Fo=Bt.ul`
|
|
134
134
|
padding-left: 0px;
|
|
135
135
|
margin: 4px 0 0 0;
|
|
136
136
|
list-style: none;
|
|
137
137
|
width: 100%;
|
|
138
|
-
`,zo=(e,t)=>t?e.reduce((e,i)=>{if(i.items){const n=zo(i.items,t);n.length&&e.push({...i,items:n})}else i.label.toLowerCase().includes(t.toLowerCase())&&e.push(i);return e},[]):e,Io=({placeholder:e="Type to search...",options:t,selectedOption:i,onOptionSelect:n,defaultText:o,onTextChange:r,style:a,disabled:s,errorMessage:l,...c})=>{const[d,p]=yt(i?.label||o||""),[u,h]=yt(zo(t,d)),[m,g]=yt(!1);yt(-1),wt(()=>h(zo(t,d)),[t]);const $=i?.icon,x=e=>{e&&(p(e.label),r?.(e.label)),g(!e),n?.(e)};return _t(bo,{style:a,children:[_t(yo,{$hasError:!!l,children:[$&&Nt($,{}),Nt(wo,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const i=e.target.value,n=zo(t,i),o=1===n.length&&n[0].label===i?n[0]:void 0;p(i),r?.(i),h(n),x(o)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...c})]}),m&&u.length?Nt(vo,{children:u.map(e=>Nt(Oo,{option:e,onClick:x},e.type||e.label))}):null,l&&Nt(fo,{children:l})]})},Oo=({option:e,renderIcon:t=!0,onClick:i})=>{const n=!!e.items&&e.items.length>0,o=e.icon;return _t(ko,{"data-id":`option-${e.type||e.label}`,$isList:n,onMouseDown:()=>n?null:i(e),children:[o&&t&&Nt(o,{}),_t(Co,{children:[_t(Ao,{children:[Nt(Do,{children:e.label}),Nt(To,{children:e.description})]}),n&&Nt(Fo,{children:e.items?.map(e=>_t(So,{children:[Nt(Eo,{}),Nt(Oo,{option:e,renderIcon:!1,onClick:i})]},e.type||e.label))})]})]})},No=xt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),_o=[{label:"Attributes",icon:pn(ai.Attributes),items:[{type:si.K8sAttributes,icon:pn(si.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[Hi.Traces,Hi.Metrics,Hi.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:si.AddClusterInfo,icon:pn(si.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[Hi.Traces,Hi.Metrics,Hi.Logs],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals."},{type:si.DeleteAttributes,icon:pn(si.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[Hi.Traces,Hi.Metrics,Hi.Logs],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:si.RenameAttributes,icon:pn(si.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[Hi.Traces,Hi.Metrics,Hi.Logs],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:si.PiiMasking,icon:pn(si.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[Hi.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:pn(ai.Samplers),items:[{type:si.ErrorSampler,icon:pn(ai.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[Hi.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:si.LatencySampler,icon:pn(ai.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[Hi.Traces],docsEndpoint:"/pipeline/actions/sampling/latencysampler",docsDescription:"This action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter."},{type:si.ProbabilisticSampler,icon:pn(ai.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[Hi.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:si.ServiceNameSampler,icon:pn(ai.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[Hi.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:si.SpanAttributeSampler,icon:pn(ai.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[Hi.Traces],docsEndpoint:"/pipeline/actions/sampling/spanattributesampler",docsDescription:"This action supports service name sampling based on the presence or value of specific attributes within a trace."}]}],Bo={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."}},Ro=[{type:Ri.CodeAttributes,icon:wn(Ri.CodeAttributes),label:"Code Attributes",description:"Collect code attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/codeattributes",docsDescription:'The "Code Attributes" Rule can be used to add code attributes containing payload data to traces.',supportedLanguages:[bi.Go,bi.Python]},{type:Ri.CustomInstrumentation,icon:wn(Ri.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods (i.e. for Java) or explicit symbol (i.e. for Golang).",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" Rule can be used to instrument a specific symbol (i.e. for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',supportedLanguages:[bi.Go,bi.Java]},{type:Ri.HeadersCollection,icon:wn(Ri.HeadersCollection),label:"Headers Collection",description:"Collect span attributes containing HTTP Headers data to traces.",docsEndpoint:"/pipeline/rules/headerscollection",docsDescription:'The "Headers Collection" Rule can be used to add span attributes containing HTTP Headers data to traces.',supportedLanguages:[bi.Go,bi.Java,bi.JavaScript]},{type:Ri.PayloadCollection,icon:wn(Ri.PayloadCollection),label:"Payload Collection",description:"Collect span attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/payloadcollection",docsDescription:'The "Payload Collection" Rule can be used to add span attributes containing payload data to traces.',supportedLanguages:[bi.Go]}],Mo=[{id:Hi.Logs,value:"Logs"},{id:Hi.Metrics,value:"Metrics"},{id:Hi.Traces,value:"Traces"}],Lo={[bi.Go]:"Go",[bi.Java]:"Java",[bi.JavaScript]:"Node.js",[bi.Python]:"Python",[bi.DotNet]:".NET",[bi.CSharp]:"C#",[bi.CPlusPlus]:"C++",[bi.Php]:"PHP",[bi.Ruby]:"Ruby",[bi.Rust]:"Rust",[bi.Swift]:"Swift",[bi.Elixir]:"Elixir",[bi.MySql]:"MySQL",[bi.Nginx]:"Nginx",[bi.Postgres]:"PostgreSQL",[bi.Redis]:"Redis",[bi.Kafka]:"Kafka",[bi.Ignored]:"Ignored",[bi.Unknown]:"Unknown",[bi.Processing]:"Processing",[bi.NoContainers]:"No Containers",[bi.NoRunningPods]:"No Running Pods"},Po=[{id:bi.Go,value:Lo[bi.Go],icon:mn(bi.Go)},{id:bi.Java,value:Lo[bi.Java],icon:mn(bi.Java)},{id:bi.JavaScript,value:Lo[bi.JavaScript],icon:mn(bi.JavaScript)},{id:bi.Python,value:Lo[bi.Python],icon:mn(bi.Python)},{id:bi.Php,value:Lo[bi.Php],icon:mn(bi.Php)},{id:bi.Ruby,value:Lo[bi.Ruby],icon:mn(bi.Ruby)},{id:bi.Rust,value:Lo[bi.Rust],icon:mn(bi.Rust)},{id:bi.DotNet,value:Lo[bi.DotNet],icon:mn(bi.DotNet)},{id:bi.CSharp,value:Lo[bi.CSharp],icon:mn(bi.CSharp)},{id:bi.CPlusPlus,value:Lo[bi.CPlusPlus],icon:mn(bi.CPlusPlus)},{id:bi.Swift,value:Lo[bi.Swift],icon:mn(bi.Swift)},{id:bi.Elixir,value:Lo[bi.Elixir],icon:mn(bi.Elixir)}],jo={[bi.Go]:{community:[{id:_i.GolangCommunity,value:_i.GolangCommunity,icon:mn(bi.Go)}],enterprise:[{id:_i.GolangEnterprise,value:_i.GolangEnterprise,icon:mn(bi.Go)}]},[bi.JavaScript]:{community:[{id:_i.NodejsCommunity,value:_i.NodejsCommunity,icon:mn(bi.JavaScript)}],enterprise:[{id:_i.NodejsEnterprise,value:_i.NodejsEnterprise,icon:mn(bi.JavaScript)}]},[bi.Python]:{community:[{id:_i.PythonCommunity,value:_i.PythonCommunity,icon:mn(bi.Python)}],enterprise:[{id:_i.PythonEnterprise,value:_i.PythonEnterprise,icon:mn(bi.Python)}]},[bi.Java]:{community:[{id:_i.JavaCommunity,value:_i.JavaCommunity,icon:mn(bi.Java)}],enterprise:[{id:_i.JavaEnterprise,value:_i.JavaEnterprise,icon:mn(bi.Java)},{id:_i.JavaEbpfInstrumentations,value:_i.JavaEbpfInstrumentations,icon:mn(bi.Java)}]},[bi.DotNet]:{community:[{id:_i.DotNetCommunity,value:_i.DotNetCommunity,icon:mn(bi.DotNet)}],enterprise:[{id:_i.DotNetEnterprise,value:_i.DotNetEnterprise,icon:mn(bi.DotNet)}]},[bi.Ruby]:{community:[{id:_i.RubyCommunity,value:_i.RubyCommunity,icon:mn(bi.Ruby)}],enterprise:[{id:_i.RubyEnterprise,value:_i.RubyEnterprise,icon:mn(bi.Ruby)}]},[bi.Php]:{community:[{id:_i.PhpCommunity,value:_i.PhpCommunity,icon:mn(bi.Php)}],enterprise:[{id:_i.PhpEnterprise,value:_i.PhpEnterprise,icon:mn(bi.Php)}]},[bi.CSharp]:{community:[],enterprise:[{id:_i.CPlusPlusEnterprise,value:_i.CPlusPlusEnterprise,icon:mn(bi.CSharp)}]},[bi.MySql]:{community:[],enterprise:[{id:_i.MySqlEnterprise,value:_i.MySqlEnterprise,icon:mn(bi.MySql)}]},[bi.CPlusPlus]:{community:[],enterprise:[]},[bi.Rust]:{community:[],enterprise:[]},[bi.Swift]:{community:[],enterprise:[]},[bi.Elixir]:{community:[],enterprise:[]},[bi.Nginx]:{community:[],enterprise:[]},[bi.Postgres]:{community:[],enterprise:[]},[bi.Redis]:{community:[],enterprise:[]},[bi.Kafka]:{community:[],enterprise:[]},[bi.Ignored]:{community:[],enterprise:[]},[bi.Unknown]:{community:[],enterprise:[]},[bi.Processing]:{community:[],enterprise:[]},[bi.NoContainers]:{community:[],enterprise:[]},[bi.NoRunningPods]:{community:[],enterprise:[]}},Uo=6048e5,Wo=xt()(Tt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:tn.DARK_MODE,storage:"undefined"!=typeof window?Ft(()=>localStorage):void 0})),Vo={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},qo=xt(e=>({...Vo,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const i=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(i).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Vo)})),Ho=xt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),Go=xt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,i)=>{const n=t===wi.Namespace?"namespacesLoading":t===wi.Source?"sourcesLoading":t===wi.Destination?"destinationsLoading":t===wi.Action?"actionsLoading":t===wi.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==n&&e({[n]:i})},setEntities:(t,i)=>{const n=t===wi.Namespace?"namespaces":t===wi.Source?"sources":t===wi.Destination?"destinations":t===wi.Action?"actions":t===wi.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e({[n]:i})},addEntities:(t,i)=>{const n=t===wi.Namespace?"namespaces":t===wi.Source?"sources":t===wi.Destination?"destinations":t===wi.Action?"actions":t===wi.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=[...e[n]],o=new Map;return t.forEach((e,t)=>{o.set(JSON.stringify(fn(e)),t)}),i.forEach(e=>{const i=JSON.stringify(fn(e)),n=o.get(i);void 0!==n?t[n]={...t[n],...e}:(o.set(i,t.length),t.push(e))}),{[n]:t}})},removeEntities:(t,i)=>{const n=t===wi.Namespace?"namespaces":t===wi.Source?"sources":t===wi.Destination?"destinations":t===wi.Action?"actions":t===wi.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const o=new Set;i.forEach(e=>{const i=t===wi.Source?JSON.stringify(fn(e)):String(e);o.add(i)});const r=e[n].filter(e=>{const i=t===wi.Source?JSON.stringify(fn(e)):String(fn(e));return!o.has(i)});return{[n]:r}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),Ko=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),Yo=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:Ko})),Jo=xt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),Xo=xt((e,t)=>({notifications:[],addNotification:i=>{const n=new Date,o=`${n.getTime().toString()}${i.target?`#${i.target}`:""}`,{notifications:r}=t();r.some(e=>e.type===i.type&&e.title===i.title&&e.message===i.message&&!e.dismissed)||e(e=>({notifications:[{...i,id:o,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&e.notifications.splice(i,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Zo;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting"}(Zo||(Zo={}));const Qo=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),er=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),tr=xt((e,t)=>({progress:{},setProgress:(i,n)=>{const o=t(),r=Qo();return"number"==typeof n.total&&(r.total=n.total),"number"==typeof n.current&&(r.current=n.current),e({progress:{...o.progress,[i]:er(r)}})},addProgress:(i,n)=>{const o=t(),r=Qo(i,o.progress);return r.current+=n,e({progress:{...o.progress,[i]:er(r)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),ir=xt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),nr={availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},or=(e,t)=>e.destinationType.type!==t.destinationType.type,rr=xt(e=>({...nr,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=>or(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const i=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(i).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>or(e,t))})),clearStore:()=>e(()=>({...nr}))})),ar={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"}},sr={v2:ar.v2,darkMode:!0,colors:{...ar.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:ar.font_family},lr={v2:ar.v2,darkMode:!1,colors:{...ar.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:ar.font_family},cr=e=>e?sr:lr;var dr=Object.freeze({__proto__:null,baseTheme:ar,darkModeTheme:sr,getTheme:cr,lightModeTheme:lr});zt('@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 pr=({children:e})=>{const{darkMode:t}=Wo();return Nt(Pt,{theme:cr(t),children:e})},ur={100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"};var hr=Object.freeze({__proto__:null,hex:ur});const mr={in:{left:jt`
|
|
138
|
+
`,zo=(e,t)=>t?e.reduce((e,i)=>{if(i.items){const n=zo(i.items,t);n.length&&e.push({...i,items:n})}else i.label.toLowerCase().includes(t.toLowerCase())&&e.push(i);return e},[]):e,Io=({placeholder:e="Type to search...",options:t,selectedOption:i,onOptionSelect:n,defaultText:o,onTextChange:r,style:a,disabled:s,errorMessage:l,...c})=>{const[d,p]=yt(i?.label||o||""),[u,h]=yt(zo(t,d)),[m,g]=yt(!1);yt(-1),wt(()=>h(zo(t,d)),[t]);const $=i?.icon,x=e=>{e&&(p(e.label),r?.(e.label)),g(!e),n?.(e)};return _t(bo,{style:a,children:[_t(yo,{$hasError:!!l,children:[$&&Nt($,{}),Nt(wo,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const i=e.target.value,n=zo(t,i),o=1===n.length&&n[0].label===i?n[0]:void 0;p(i),r?.(i),h(n),x(o)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...c})]}),m&&u.length?Nt(vo,{children:u.map(e=>Nt(Oo,{option:e,onClick:x},e.type||e.label))}):null,l&&Nt(fo,{children:l})]})},Oo=({option:e,renderIcon:t=!0,onClick:i})=>{const n=!!e.items&&e.items.length>0,o=e.icon;return _t(ko,{"data-id":`option-${e.type||e.label}`,$isList:n,onMouseDown:()=>n?null:i(e),children:[o&&t&&Nt(o,{}),_t(Co,{children:[_t(Ao,{children:[Nt(Do,{children:e.label}),Nt(To,{children:e.description})]}),n&&Nt(Fo,{children:e.items?.map(e=>_t(So,{children:[Nt(Eo,{}),Nt(Oo,{option:e,renderIcon:!1,onClick:i})]},e.type||e.label))})]})]})},No=xt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),_o=[{label:"Attributes",icon:pn(ai.Attributes),items:[{type:si.K8sAttributes,icon:pn(si.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[Hi.Traces,Hi.Metrics,Hi.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:si.AddClusterInfo,icon:pn(si.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[Hi.Traces,Hi.Metrics,Hi.Logs],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals."},{type:si.DeleteAttributes,icon:pn(si.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[Hi.Traces,Hi.Metrics,Hi.Logs],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:si.RenameAttributes,icon:pn(si.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[Hi.Traces,Hi.Metrics,Hi.Logs],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:si.PiiMasking,icon:pn(si.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[Hi.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:pn(ai.Samplers),items:[{type:si.ErrorSampler,icon:pn(ai.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[Hi.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:si.LatencySampler,icon:pn(ai.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[Hi.Traces],docsEndpoint:"/pipeline/actions/sampling/latencysampler",docsDescription:"This action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter."},{type:si.ProbabilisticSampler,icon:pn(ai.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[Hi.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:si.ServiceNameSampler,icon:pn(ai.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[Hi.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:si.SpanAttributeSampler,icon:pn(ai.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[Hi.Traces],docsEndpoint:"/pipeline/actions/sampling/spanattributesampler",docsDescription:"This action supports service name sampling based on the presence or value of specific attributes within a trace."}]}],Ro={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."}},Bo=[{type:Bi.CodeAttributes,icon:wn(Bi.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:[bi.Go,bi.Python]},{type:Bi.CustomInstrumentation,icon:wn(Bi.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods (i.e. for Java) or explicit symbol (i.e. for Golang).",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" Rule can be used to instrument a specific symbol (i.e. for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',supportedLanguages:[bi.Go,bi.Java]},{type:Bi.HeadersCollection,icon:wn(Bi.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:[bi.Go,bi.Java,bi.JavaScript]},{type:Bi.PayloadCollection,icon:wn(Bi.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:[bi.Go]}],Mo=[{id:Hi.Logs,value:"Logs"},{id:Hi.Metrics,value:"Metrics"},{id:Hi.Traces,value:"Traces"}],Lo={[bi.Go]:"Go",[bi.Java]:"Java",[bi.JavaScript]:"Node.js",[bi.Python]:"Python",[bi.DotNet]:".NET",[bi.CSharp]:"C#",[bi.CPlusPlus]:"C++",[bi.Php]:"PHP",[bi.Ruby]:"Ruby",[bi.Rust]:"Rust",[bi.Swift]:"Swift",[bi.Elixir]:"Elixir",[bi.MySql]:"MySQL",[bi.Nginx]:"Nginx",[bi.Postgres]:"PostgreSQL",[bi.Redis]:"Redis",[bi.Kafka]:"Kafka",[bi.Ignored]:"Ignored",[bi.Unknown]:"Unknown",[bi.Processing]:"Processing",[bi.NoContainers]:"No Containers",[bi.NoRunningPods]:"No Running Pods"},Po=[{id:bi.Go,value:Lo[bi.Go],icon:mn(bi.Go)},{id:bi.Java,value:Lo[bi.Java],icon:mn(bi.Java)},{id:bi.JavaScript,value:Lo[bi.JavaScript],icon:mn(bi.JavaScript)},{id:bi.Python,value:Lo[bi.Python],icon:mn(bi.Python)},{id:bi.Php,value:Lo[bi.Php],icon:mn(bi.Php)},{id:bi.Ruby,value:Lo[bi.Ruby],icon:mn(bi.Ruby)},{id:bi.Rust,value:Lo[bi.Rust],icon:mn(bi.Rust)},{id:bi.DotNet,value:Lo[bi.DotNet],icon:mn(bi.DotNet)},{id:bi.CSharp,value:Lo[bi.CSharp],icon:mn(bi.CSharp)},{id:bi.CPlusPlus,value:Lo[bi.CPlusPlus],icon:mn(bi.CPlusPlus)},{id:bi.Swift,value:Lo[bi.Swift],icon:mn(bi.Swift)},{id:bi.Elixir,value:Lo[bi.Elixir],icon:mn(bi.Elixir)}],jo={[bi.Go]:{community:[{id:_i.GolangCommunity,value:_i.GolangCommunity,icon:mn(bi.Go)}],enterprise:[{id:_i.GolangEnterprise,value:_i.GolangEnterprise,icon:mn(bi.Go)}]},[bi.JavaScript]:{community:[{id:_i.NodejsCommunity,value:_i.NodejsCommunity,icon:mn(bi.JavaScript)}],enterprise:[{id:_i.NodejsEnterprise,value:_i.NodejsEnterprise,icon:mn(bi.JavaScript)}]},[bi.Python]:{community:[{id:_i.PythonCommunity,value:_i.PythonCommunity,icon:mn(bi.Python)}],enterprise:[{id:_i.PythonEnterprise,value:_i.PythonEnterprise,icon:mn(bi.Python)}]},[bi.Java]:{community:[{id:_i.JavaCommunity,value:_i.JavaCommunity,icon:mn(bi.Java)}],enterprise:[{id:_i.JavaEnterprise,value:_i.JavaEnterprise,icon:mn(bi.Java)},{id:_i.JavaEbpfInstrumentations,value:_i.JavaEbpfInstrumentations,icon:mn(bi.Java)}]},[bi.DotNet]:{community:[{id:_i.DotNetCommunity,value:_i.DotNetCommunity,icon:mn(bi.DotNet)}],enterprise:[{id:_i.DotNetEnterprise,value:_i.DotNetEnterprise,icon:mn(bi.DotNet)}]},[bi.Ruby]:{community:[{id:_i.RubyCommunity,value:_i.RubyCommunity,icon:mn(bi.Ruby)}],enterprise:[{id:_i.RubyEnterprise,value:_i.RubyEnterprise,icon:mn(bi.Ruby)}]},[bi.Php]:{community:[{id:_i.PhpCommunity,value:_i.PhpCommunity,icon:mn(bi.Php)}],enterprise:[{id:_i.PhpEnterprise,value:_i.PhpEnterprise,icon:mn(bi.Php)}]},[bi.CSharp]:{community:[],enterprise:[{id:_i.CPlusPlusEnterprise,value:_i.CPlusPlusEnterprise,icon:mn(bi.CSharp)}]},[bi.MySql]:{community:[],enterprise:[{id:_i.MySqlEnterprise,value:_i.MySqlEnterprise,icon:mn(bi.MySql)}]},[bi.CPlusPlus]:{community:[],enterprise:[]},[bi.Rust]:{community:[],enterprise:[]},[bi.Swift]:{community:[],enterprise:[]},[bi.Elixir]:{community:[],enterprise:[]},[bi.Nginx]:{community:[],enterprise:[]},[bi.Postgres]:{community:[],enterprise:[]},[bi.Redis]:{community:[],enterprise:[]},[bi.Kafka]:{community:[],enterprise:[]},[bi.Ignored]:{community:[],enterprise:[]},[bi.Unknown]:{community:[],enterprise:[]},[bi.Processing]:{community:[],enterprise:[]},[bi.NoContainers]:{community:[],enterprise:[]},[bi.NoRunningPods]:{community:[],enterprise:[]}},Uo=6048e5,Wo=xt()(Tt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:tn.DARK_MODE,storage:"undefined"!=typeof window?Ft(()=>localStorage):void 0})),Vo={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},qo=xt(e=>({...Vo,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const i=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(i).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Vo)})),Ho=xt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),Go=xt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,i)=>{const n=t===wi.Namespace?"namespacesLoading":t===wi.Source?"sourcesLoading":t===wi.Destination?"destinationsLoading":t===wi.Action?"actionsLoading":t===wi.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==n&&e({[n]:i})},setEntities:(t,i)=>{const n=t===wi.Namespace?"namespaces":t===wi.Source?"sources":t===wi.Destination?"destinations":t===wi.Action?"actions":t===wi.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e({[n]:i})},addEntities:(t,i)=>{const n=t===wi.Namespace?"namespaces":t===wi.Source?"sources":t===wi.Destination?"destinations":t===wi.Action?"actions":t===wi.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=[...e[n]],o=new Map;return t.forEach((e,t)=>{o.set(JSON.stringify(fn(e)),t)}),i.forEach(e=>{const i=JSON.stringify(fn(e)),n=o.get(i);void 0!==n?t[n]={...t[n],...e}:(o.set(i,t.length),t.push(e))}),{[n]:t}})},removeEntities:(t,i)=>{const n=t===wi.Namespace?"namespaces":t===wi.Source?"sources":t===wi.Destination?"destinations":t===wi.Action?"actions":t===wi.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const o=new Set;i.forEach(e=>{const i=t===wi.Source?JSON.stringify(fn(e)):String(e);o.add(i)});const r=e[n].filter(e=>{const i=t===wi.Source?JSON.stringify(fn(e)):String(fn(e));return!o.has(i)});return{[n]:r}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),Ko=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),Yo=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:Ko})),Jo=xt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),Xo=xt((e,t)=>({notifications:[],addNotification:i=>{const n=new Date,o=`${n.getTime().toString()}${i.target?`#${i.target}`:""}`,{notifications:r}=t();r.some(e=>e.type===i.type&&e.title===i.title&&e.message===i.message&&!e.dismissed)||e(e=>({notifications:[{...i,id:o,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&(e.notifications[i].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const i=e.notifications.findIndex(e=>e.id===t);return-1!==i&&e.notifications.splice(i,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Zo;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting"}(Zo||(Zo={}));const Qo=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),er=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),tr=xt((e,t)=>({progress:{},setProgress:(i,n)=>{const o=t(),r=Qo();return"number"==typeof n.total&&(r.total=n.total),"number"==typeof n.current&&(r.current=n.current),e({progress:{...o.progress,[i]:er(r)}})},addProgress:(i,n)=>{const o=t(),r=Qo(i,o.progress);return r.current+=n,e({progress:{...o.progress,[i]:er(r)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),ir=xt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),nr={availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},or=(e,t)=>e.destinationType.type!==t.destinationType.type,rr=xt(e=>({...nr,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=>or(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const i=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(i).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>or(e,t))})),clearStore:()=>e(()=>({...nr}))})),ar={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"}},sr={v2:ar.v2,darkMode:!0,colors:{...ar.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:ar.font_family},lr={v2:ar.v2,darkMode:!1,colors:{...ar.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:ar.font_family},cr=e=>e?sr:lr;var dr=Object.freeze({__proto__:null,baseTheme:ar,darkModeTheme:sr,getTheme:cr,lightModeTheme:lr});zt('@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 pr=({children:e})=>{const{darkMode:t}=Wo();return Nt(Pt,{theme:cr(t),children:e})},ur={100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"};var hr=Object.freeze({__proto__:null,hex:ur});const mr={in:{left:jt`
|
|
139
139
|
from { transform: translateX(-100%); }
|
|
140
140
|
to { transform: translateX(0); }
|
|
141
141
|
`,right:jt`
|
|
@@ -209,7 +209,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
209
209
|
to {
|
|
210
210
|
opacity: 0;
|
|
211
211
|
}
|
|
212
|
-
`};var br=Object.freeze({__proto__:null,fade:fr,ping:$r,progress:gr,shimmer:xr,slide:mr});const yr=
|
|
212
|
+
`};var br=Object.freeze({__proto__:null,fade:fr,ping:$r,progress:gr,shimmer:xr,slide:mr});const yr=Bt.span`
|
|
213
213
|
display: flex;
|
|
214
214
|
align-items: center;
|
|
215
215
|
justify-content: center;
|
|
@@ -229,7 +229,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
229
229
|
white-space: nowrap;
|
|
230
230
|
|
|
231
231
|
${({theme:e,$filled:t,$status:i,$clickable:n})=>n&&`&:hover {\n cursor: pointer;\n background-color: ${i?e.colors[i]+ur["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+ur["020"]};\n }`}
|
|
232
|
-
`,wr=({label:e,filled:t,status:i,withIcon:n,onClick:o})=>{const r=Lt(),a=i&&n?zn(i,r):null;return _t(yr,{$filled:t,$status:i,$clickable:!!o,onClick:o,children:[!!a&&Nt(a,{}),e]})},vr=
|
|
232
|
+
`,wr=({label:e,filled:t,status:i,withIcon:n,onClick:o})=>{const r=Lt(),a=i&&n?zn(i,r):null;return _t(yr,{$filled:t,$status:i,$clickable:!!o,onClick:o,children:[!!a&&Nt(a,{}),e]})},vr=Bt.div`
|
|
233
233
|
height: fit-content;
|
|
234
234
|
border: 2px solid transparent;
|
|
235
235
|
padding: 2px;
|
|
@@ -288,7 +288,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
288
288
|
&:active {
|
|
289
289
|
background: ${({theme:e})=>e.text.warning+ur["080"]};
|
|
290
290
|
}
|
|
291
|
-
`},Cr=
|
|
291
|
+
`},Cr=Bt.button`
|
|
292
292
|
height: 36px;
|
|
293
293
|
border-radius: 32px;
|
|
294
294
|
cursor: pointer;
|
|
@@ -315,7 +315,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
315
315
|
}
|
|
316
316
|
`:""}
|
|
317
317
|
`}
|
|
318
|
-
`,Sr=({children:e,variant:t="primary",onClick:i,...n})=>{const o=vt(null);return Nt(vr,{$variant:t,children:Nt(Cr,{ref:o,$variant:t,onClick:e=>{i&&i(e),o.current?.blur()},...n,children:e})})},Er=e=>{function t(){return void 0===e?{}:ii(e)}const[i,n]=yt(t()),[o,r]=yt({}),a=(e,t)=>Object.entries(e).every(([e,i])=>Array.isArray(i)?i.length===t[e].length&&i.every((i,n)=>a(i,t[e][n])):"object"==typeof i&&null!==i?a(i,t[e]):i===t[e]),s=bt(()=>void 0!==e&&!a(e,i),[e,i]);return wt(()=>{void 0!==e&&"{}"===JSON.stringify(i)&&n(t())},[e,i]),{formData:i,formErrors:o,areFormValuesEqual:a,isFormDirty:s,handleFormChange:(e,t,i)=>{if(e){const i=e.toString().split(".");1===i.length?n(i=>({...i,[e]:t})):n(e=>{const n=ii(e);let o=n;for(let e=0;e<i.length-1;e++){const t=i[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[i[i.length-1]]=t,n})}else i&&n({...i})},handleErrorChange:(e,t,i)=>{e?r(i=>({...i,[e]:t})):i&&r({...i})},resetFormData:e=>{n(e||t()),r({})}}},Ar={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}},Dr=()=>{const{addNotification:e}=Xo(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:o,resetFormData:r}=Er(Ar);return{formData:t,formErrors:i,handleFormChange:n,resetFormData:r,validateForm:i=>{const n={};let r=!0;return Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Mn(t)&&(n[e]=nn.FIELD_IS_REQUIRED)}}),r=!Object.values(n).length,!r&&i?.withAlert&&e({type:Si.Warning,title:i.alertTitle,message:nn.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),r},loadFormWithDrawerItem:({type:e,signals:t,name:i,notes:o,disabled:r,fields:a})=>{const s={...ii(Ar),type:e,signals:t,name:i,notes:o,disabled:r};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case li.LabelsAttributes:case li.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(i=t)&&Array.isArray(i)?i.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):i;break;case li.CollectContainerAttributes:case li.CollectReplicaSetAttributes:case li.CollectWorkloadId:case li.CollectClusterId:case li.ClusterAttributes:case li.OverwriteExistingValues:case li.AttributeNamesToDelete:case li.Renames:case li.PiiCategories:case li.FallbackSamplingRatio:case li.SamplingPercentage:case li.EndpointsFilters:case li.ServicesNameFilters:case li.AttributeFilters:s.fields||(s.fields={}),s.fields[e]=t}var i}),n(void 0,void 0,s)}}},Tr=e=>{wt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Fr=()=>{const{setCurrentModal:e}=Jo(),{setDrawerType:t,setDrawerEntityId:i}=Ho(),{setActiveNodeType:n,setActiveNodeId:o,activeNodeId:r}=No();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(r===l?(n(null),o(null)):(n(c),o(l)),p){case wi.Source:case wi.Destination:case wi.Action:case wi.InstrumentationRule:t(p),i(d);break;case Ii.AddSource:e(wi.Source);break;case Ii.AddDestination:e(wi.Destination);break;case Ii.AddAction:e(wi.Action);break;case Ii.AddRule:e(wi.InstrumentationRule)}}}},zr=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Ho(),{markAsDismissed:i,markAsSeen:n}=Xo();return{onClickNotification:(o,r)=>{const{id:a,crdType:s,target:l}=o,{dismissToast:c}=r||{};if(s&&l)switch(s){case wi.InstrumentationRule:e(wi.InstrumentationRule),t(yn(l,wi.InstrumentationRule));break;case wi.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(wi.Source),t(yn(l,wi.Source));break;case wi.Action:e(wi.Action),t(yn(l,wi.Action));break;case wi.Destination:case"Destination":e(wi.Destination),t(yn(l,wi.Destination))}n(a),c&&i(a)}}},Ir=()=>{const e=vt(null),[t,i]=yt(0),[n,o]=yt(0);return wt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();i(t),o(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}};var Or;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Or||(Or={}));const Nr=
|
|
318
|
+
`,Sr=({children:e,variant:t="primary",onClick:i,...n})=>{const o=vt(null);return Nt(vr,{$variant:t,children:Nt(Cr,{ref:o,$variant:t,onClick:e=>{i&&i(e),o.current?.blur()},...n,children:e})})},Er=e=>{function t(){return void 0===e?{}:ii(e)}const[i,n]=yt(t()),[o,r]=yt({}),a=(e,t)=>Object.entries(e).every(([e,i])=>Array.isArray(i)?i.length===t[e].length&&i.every((i,n)=>a(i,t[e][n])):"object"==typeof i&&null!==i?a(i,t[e]):i===t[e]),s=bt(()=>void 0!==e&&!a(e,i),[e,i]);return wt(()=>{void 0!==e&&"{}"===JSON.stringify(i)&&n(t())},[e,i]),{formData:i,formErrors:o,areFormValuesEqual:a,isFormDirty:s,handleFormChange:(e,t,i)=>{if(e){const i=e.toString().split(".");1===i.length?n(i=>({...i,[e]:t})):n(e=>{const n=ii(e);let o=n;for(let e=0;e<i.length-1;e++){const t=i[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[i[i.length-1]]=t,n})}else i&&n({...i})},handleErrorChange:(e,t,i)=>{e?r(i=>({...i,[e]:t})):i&&r({...i})},resetFormData:e=>{n(e||t()),r({})}}},Ar={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}},Dr=()=>{const{addNotification:e}=Xo(),{formData:t,formErrors:i,handleFormChange:n,handleErrorChange:o,resetFormData:r}=Er(Ar);return{formData:t,formErrors:i,handleFormChange:n,resetFormData:r,validateForm:i=>{const n={};let r=!0;return Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":Mn(t)&&(n[e]=nn.FIELD_IS_REQUIRED)}}),r=!Object.values(n).length,!r&&i?.withAlert&&e({type:Si.Warning,title:i.alertTitle,message:nn.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),r},loadFormWithDrawerItem:({type:e,signals:t,name:i,notes:o,disabled:r,fields:a})=>{const s={...ii(Ar),type:e,signals:t,name:i,notes:o,disabled:r};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case li.LabelsAttributes:case li.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(i=t)&&Array.isArray(i)?i.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):i;break;case li.CollectContainerAttributes:case li.CollectReplicaSetAttributes:case li.CollectWorkloadId:case li.CollectClusterId:case li.ClusterAttributes:case li.OverwriteExistingValues:case li.AttributeNamesToDelete:case li.Renames:case li.PiiCategories:case li.FallbackSamplingRatio:case li.SamplingPercentage:case li.EndpointsFilters:case li.ServicesNameFilters:case li.AttributeFilters:s.fields||(s.fields={}),s.fields[e]=t}var i}),n(void 0,void 0,s)}}},Tr=e=>{wt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Fr=()=>{const{setCurrentModal:e}=Jo(),{setDrawerType:t,setDrawerEntityId:i}=Ho(),{setActiveNodeType:n,setActiveNodeId:o,activeNodeId:r}=No();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(r===l?(n(null),o(null)):(n(c),o(l)),p){case wi.Source:case wi.Destination:case wi.Action:case wi.InstrumentationRule:t(p),i(d);break;case Ii.AddSource:e(wi.Source);break;case Ii.AddDestination:e(wi.Destination);break;case Ii.AddAction:e(wi.Action);break;case Ii.AddRule:e(wi.InstrumentationRule)}}}},zr=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Ho(),{markAsDismissed:i,markAsSeen:n}=Xo();return{onClickNotification:(o,r)=>{const{id:a,crdType:s,target:l}=o,{dismissToast:c}=r||{};if(s&&l)switch(s){case wi.InstrumentationRule:e(wi.InstrumentationRule),t(yn(l,wi.InstrumentationRule));break;case wi.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(wi.Source),t(yn(l,wi.Source));break;case wi.Action:e(wi.Action),t(yn(l,wi.Action));break;case wi.Destination:case"Destination":e(wi.Destination),t(yn(l,wi.Destination))}n(a),c&&i(a)}}},Ir=()=>{const e=vt(null),[t,i]=yt(0),[n,o]=yt(0);return wt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();i(t),o(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}};var Or;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Or||(Or={}));const Nr=Bt.div`
|
|
319
319
|
width: ${({$size:e})=>1.5*e}px;
|
|
320
320
|
height: ${({$size:e})=>1.5*e}px;
|
|
321
321
|
display: flex;
|
|
@@ -326,7 +326,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
326
326
|
&:hover {
|
|
327
327
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
328
328
|
}
|
|
329
|
-
`,_r=({icon:e,size:t=Or.S,onClick:i,disabled:n})=>Nt(Nr,{$size:t,$disabled:n,onClick:e=>{i&&!n&&(e.stopPropagation(),i(e))},children:Nt(e,{size:t})}),Br=({onDone:e}={})=>{const[t,i]=yt(!1),[n,o]=yt(-1),r=kt(async(n,r)=>{if(!t){if(i(!0),void 0!==r&&o(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(n)}catch(e){}else{const e=document.createElement("textarea");e.value=n,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{i(!1),o(-1)},1e3)}},[t,e]);return{CopyButton:kt(({value:e,size:i})=>Nt(_r,{icon:t?Ge:Ke,size:i,onClick:()=>r(e)}),[t]),isCopied:t,copiedIndex:n,clickCopy:r}},Rr=e=>{const{addNotification:t}=Xo(),{formData:i,handleFormChange:n,formErrors:o,handleErrorChange:r,resetFormData:a}=Er(e);return{formData:i,formErrors:o,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let o=!0;return i.name?Ln(i.name)?n.name=void 0:(o=!1,n.name=nn.ILLEGAL_K8S_LABEL):(o=!1,n.name=nn.FIELD_IS_REQUIRED),!o&&e?.withAlert&&t({type:Si.Warning,title:e.alertTitle,message:nn.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,n),o},loadFormWithDrawerItem:({name:t})=>{const i={...ii(e),name:t};n(void 0,void 0,i)}}},Mr={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},Lr=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=Xo(),{formData:o,formErrors:r,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Er(Mr),[c,d]=yt([]),[p,u]=yt([]);return wt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:i,componentProperties:n,displayName:o,initialValue:r,renderCondition:a}=e;if(i===ki.Dropdown){const e=_n(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:i,title:o,value:r,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:i,title:o,value:r,renderCondition:a,..._n(n,{})}})).map(e=>{if(i){const t="string"==typeof i?_n(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,i]),wt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),wt(()=>{if(t&&0===Kn(o.exportedSignals).length){const{logs:e,metrics:i,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:i.supported,traces:n.supported})}},[t,o.exportedSignals]),{formData:o,formErrors:r,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let i=!0;return p.forEach(({name:e,value:n,required:o})=>{o&&!n&&(i=!1,t[e]=nn.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Si.Warning,title:e.alertTitle,message:nn.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),i},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:i,exportedSignals:n,fields:o})=>{const r={...ii(Mr),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(_n(o,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,r),r},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Pr=({items:e,rowHeight:t})=>{const i=vt(null),n=It({enabled:e.length>0,horizontal:!1,count:e.length,getScrollElement:()=>i.current,estimateSize:()=>t,overscan:Math.ceil(.05*e.length)});return{overflowRef:i,listHeight:n.getTotalSize(),listItems:n.getVirtualItems()}},jr={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[ji.HttpRequest]:null,[ji.HttpResponse]:null,[ji.DbQuery]:null,[ji.Messaging]:null},codeAttributes:{[Mi.Column]:null,[Mi.FilePath]:null,[Mi.Function]:null,[Mi.LineNumber]:null,[Mi.Namespace]:null,[Mi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Pi.Java]:null,[Pi.Golang]:null}},Ur=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:o}=Er(jr);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:o,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,payloadCollection:o,codeAttributes:r,headersCollection:a,customInstrumentations:s})=>{const l={...ii(jr),ruleName:e,notes:t,disabled:n};o&&(l.payloadCollection={[ji.HttpRequest]:o[ji.HttpRequest]?{}:null,[ji.HttpResponse]:o[ji.HttpResponse]?{}:null,[ji.DbQuery]:o[ji.DbQuery]?{}:null,[ji.Messaging]:o[ji.Messaging]?{}:null}),r&&(l.codeAttributes={[Mi.Column]:r[Mi.Column]||null,[Mi.FilePath]:r[Mi.FilePath]||null,[Mi.Function]:r[Mi.Function]||null,[Mi.LineNumber]:r[Mi.LineNumber]||null,[Mi.Namespace]:r[Mi.Namespace]||null,[Mi.StackTrace]:r[Mi.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[Pi.Java]:s[Pi.Java]||null,[Pi.Golang]:s[Pi.Golang]||null}),i(void 0,void 0,l)}}},Wr=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:o,withMetaKey:r},a)=>(wt(()=>{const s=s=>{e&&t===s.key&&(!i||i&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!o||o&&s.shiftKey)&&(!r||r&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,i,n,o,r,a]),null),Vr=(e,t)=>{wt(()=>{const i=i=>{e.current&&!e.current.contains(i.target)&&t()};return document.addEventListener("mousedown",i),document.addEventListener("touchstart",i),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("touchstart",i)}},[e,t])},qr=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i}={})=>{const n=vt(null),[o,r]=yt(!1),[a,s]=yt({top:0,left:0});return Vr(n,()=>{o&&(r(!1),i?.())}),{popupRef:n,popupOpen:o,setPopupOpen:r,popupPosition:a,handlePosition:(i,o)=>{const{innerWidth:r,innerHeight:a}=window;let l=o,c=i;l>=a/2&&(l+=-(n.current?.clientHeight||e)),c>=r/2&&(c+=-(n.current?.clientWidth||t)),s({top:l,left:c})}}},Hr=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?_n(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Gr={otelServiceName:"",currentStreamName:""},Kr=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:o}=Er(Gr);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:o,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const n={...ii(Gr),otelServiceName:e||t||""};i(void 0,void 0,n)}}},Yr=(e,t,i)=>{const n="boolean"==typeof i,o=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,r=o&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,a=(n?i:e.selected&&(!o||r))||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:a,numberOfInstances:e.numberOfInstances}},Jr=(e,t,i)=>({...Yr(e,t,i),currentStreamName:t}),Xr=(e,t,i)=>{const n="boolean"==typeof i,o=e.dataStreamNames?.includes(t),r=(n?i:e.selected)||!1;return{namespace:e.name,selected:!(!o&&!n)&&r,currentStreamName:t}},Zr=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:i}=Go(),{selectedStreamName:n}=qo(),o=vt(!1),{configuredSources:r,configuredFutureApps:a,availableSources:s,setAvailableSources:l}=rr(),[c,d]=yt(s),[p,u]=yt(""),[h,m]=yt(!1),[g,$]=yt([]),[x,f]=yt(""),[b,y]=yt(a),[w,v]=yt(((e,t,i)=>{const n={};return Object.entries(e).forEach(([e,t])=>{n[e]=t.map(e=>Jr(e,i))}),Object.entries(t).forEach(([e,t])=>{t.forEach(t=>{const o=n[e].findIndex(e=>e.name===t.name&&e.kind===t.kind),r=Jr(t,i);-1!==o?n[e][o]=r:n[e].push(r)})}),n})(s,r,n)),k=async(e,i)=>{if(t){if(u(e.name),g.includes(e.name))v(t=>({...t,[e.name]:t[e.name].map(e=>({...e,selected:"boolean"==typeof i?i:e.selected,currentStreamName:n}))}));else{const{data:r}=await t({namespaceName:e.name}),{name:a,sources:s=[]}=r?.computePlatform?.k8sActualNamespace||{};if(!a||!o.current)return;const c=s.map(e=>Yr(e,n));$(e=>[...e,a]),l({...rr.getState().availableSources,[a]:c}),d(e=>({...e,[a]:c})),v(e=>({...e,[a]:"boolean"!=typeof i&&e[a]?.length?e[a]:s.map(e=>Jr(e,n,i))}))}u("")}};wt(()=>(i?.length&&(d(e=>{const t={...e};return i.forEach(({name:e})=>t[e]=t[e]||[]),t}),v(e=>{const t={...e};return i.forEach(({name:e})=>t[e]=t[e]||[]),t}),y(e=>{const t={...e};return i.forEach(e=>t[e.name]=t[e.name]||Xr(e,n)),t}),o.current=!0,(async()=>{for await(const e of i){if(!o.current)break;await k(e)}})()),()=>{o.current=!1}),[i.length,n]);const[C,S]=yt(""),[E,A]=yt(wi.Source),[D,T]=yt(!1),[F,z]=yt(!1),I=bt(()=>{const e=(e,t)=>!C||E!==t||E===t&&e.toLowerCase().includes(C),t={};return Object.entries(w).filter(([t])=>e(t,wi.Namespace)).forEach(([i,n])=>{const o=n.filter(t=>e(t.name,wi.Source)&&(!D||t.selected)&&(e=>!F||(e.numberOfInstances||0)>0)(t));(!C||C&&(E===wi.Namespace||E===wi.Source&&o.length))&&(t[i]=o)}),t},[w,C,E,D,F]);return{fetchingNamespace:p,fetchedNamespaces:g,availableSources:c,filteredNamespacesAndSources:I,getApiSourcesPayload:()=>{const e={};return Object.entries(w).forEach(([t,i])=>{i.forEach(i=>{const n=c[t]?.find(e=>e.name===i.name&&e.kind===i.kind);n?.selected!==i.selected&&(e[t]||(e[t]=[]),e[t].push(i))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(b).forEach(([t,o])=>{const r=i?.find(e=>e.name===t);(o.selected&&!r?.dataStreamNames?.includes(n)||!o.selected&&r?.dataStreamNames?.includes(n))&&(e[t]=o)}),e},selectedNamespace:x,onSelectNamespace:(e,t)=>{const n=i.find(t=>t.name===e);if(n){const i="boolean"==typeof t;f(t=>t!==e||i?e:""),k(n,t),i&&m(!1)}},selectedAllNamespaces:h,onSelectAllNamespaces:e=>{m(e),i.forEach(t=>k(t,e))},selectedSources:w,onSelectSource:(e,t)=>{const i=t||x;if(!i)return;const o=[...w[i]||[]],r=o.findIndex(({name:t,kind:i})=>t===e.name&&i===e.kind);if(-1!==r){const e={...o[r],selected:!o[r].selected,currentStreamName:n};o[r]=e}else o.push({...e,selected:!0,currentStreamName:n});v(e=>({...e,[i]:o})),m(!1)},selectedFutureApps:b,onSelectFutureApps:(e,t)=>{const o=t||x;if(!o)return;const r=i.find(e=>e.name===t);r&&y(t=>({...t,[o]:Xr(r,n,e)}))},searchText:C,setSearchText:S,searchBy:E,setSearchBy:A,showSelectedOnly:D,setShowSelectedOnly:T,showRunningOnly:F,setShowRunningOnly:z}};try{Dt.addDefaultLocale(Ot)}catch(e){}const Qr=()=>{const e=vt(new Dt(Ot.locale));return{formatTimeAgo:kt(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},ea=Rt.div`
|
|
329
|
+
`,_r=({icon:e,size:t=Or.S,onClick:i,disabled:n})=>Nt(Nr,{$size:t,$disabled:n,onClick:e=>{i&&!n&&(e.stopPropagation(),i(e))},children:Nt(e,{size:t})}),Rr=({onDone:e}={})=>{const[t,i]=yt(!1),[n,o]=yt(-1),r=kt(async(n,r)=>{if(!t){if(i(!0),void 0!==r&&o(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(n)}catch(e){}else{const e=document.createElement("textarea");e.value=n,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{i(!1),o(-1)},1e3)}},[t,e]);return{CopyButton:kt(({value:e,size:i})=>Nt(_r,{icon:t?Ge:Ke,size:i,onClick:()=>r(e)}),[t]),isCopied:t,copiedIndex:n,clickCopy:r}},Br=e=>{const{addNotification:t}=Xo(),{formData:i,handleFormChange:n,formErrors:o,handleErrorChange:r,resetFormData:a}=Er(e);return{formData:i,formErrors:o,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let o=!0;return i.name?Ln(i.name)?n.name=void 0:(o=!1,n.name=nn.ILLEGAL_K8S_LABEL):(o=!1,n.name=nn.FIELD_IS_REQUIRED),!o&&e?.withAlert&&t({type:Si.Warning,title:e.alertTitle,message:nn.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,n),o},loadFormWithDrawerItem:({name:t})=>{const i={...ii(e),name:t};n(void 0,void 0,i)}}},Mr={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},Lr=e=>{const{supportedSignals:t,preLoadedFields:i}=e||{},{addNotification:n}=Xo(),{formData:o,formErrors:r,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Er(Mr),[c,d]=yt([]),[p,u]=yt([]);return wt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:i,componentProperties:n,displayName:o,initialValue:r,renderCondition:a}=e;if(i===ki.Dropdown){const e=_n(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:i,title:o,value:r,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:i,title:o,value:r,renderCondition:a,..._n(n,{})}})).map(e=>{if(i){const t="string"==typeof i?_n(i,{}):i;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,i]),wt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),wt(()=>{if(t&&0===Kn(o.exportedSignals).length){const{logs:e,metrics:i,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:i.supported,traces:n.supported})}},[t,o.exportedSignals]),{formData:o,formErrors:r,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let i=!0;return p.forEach(({name:e,value:n,required:o})=>{o&&!n&&(i=!1,t[e]=nn.FIELD_IS_REQUIRED)}),!i&&e?.withAlert&&n({type:Si.Warning,title:e.alertTitle,message:nn.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),i},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:i,exportedSignals:n,fields:o})=>{const r={...ii(Mr),type:e,name:t,disabled:i,exportedSignals:n,fields:Object.entries(_n(o,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,r),r},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Pr=({items:e,rowHeight:t})=>{const i=vt(null),n=It({enabled:e.length>0,horizontal:!1,count:e.length,getScrollElement:()=>i.current,estimateSize:()=>t,overscan:Math.ceil(.05*e.length)});return{overflowRef:i,listHeight:n.getTotalSize(),listItems:n.getVirtualItems()}},jr={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[ji.HttpRequest]:null,[ji.HttpResponse]:null,[ji.DbQuery]:null,[ji.Messaging]:null},codeAttributes:{[Mi.Column]:null,[Mi.FilePath]:null,[Mi.Function]:null,[Mi.LineNumber]:null,[Mi.Namespace]:null,[Mi.StackTrace]:null},headersCollection:null,customInstrumentations:{[Pi.Java]:null,[Pi.Golang]:null}},Ur=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:o}=Er(jr);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:o,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,payloadCollection:o,codeAttributes:r,headersCollection:a,customInstrumentations:s})=>{const l={...ii(jr),ruleName:e,notes:t,disabled:n};o&&(l.payloadCollection={[ji.HttpRequest]:o[ji.HttpRequest]?{}:null,[ji.HttpResponse]:o[ji.HttpResponse]?{}:null,[ji.DbQuery]:o[ji.DbQuery]?{}:null,[ji.Messaging]:o[ji.Messaging]?{}:null}),r&&(l.codeAttributes={[Mi.Column]:r[Mi.Column]||null,[Mi.FilePath]:r[Mi.FilePath]||null,[Mi.Function]:r[Mi.Function]||null,[Mi.LineNumber]:r[Mi.LineNumber]||null,[Mi.Namespace]:r[Mi.Namespace]||null,[Mi.StackTrace]:r[Mi.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[Pi.Java]:s[Pi.Java]||null,[Pi.Golang]:s[Pi.Golang]||null}),i(void 0,void 0,l)}}},Wr=({active:e,key:t,withAltKey:i,withCtrlKey:n,withShiftKey:o,withMetaKey:r},a)=>(wt(()=>{const s=s=>{e&&t===s.key&&(!i||i&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!o||o&&s.shiftKey)&&(!r||r&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,i,n,o,r,a]),null),Vr=(e,t)=>{wt(()=>{const i=i=>{e.current&&!e.current.contains(i.target)&&t()};return document.addEventListener("mousedown",i),document.addEventListener("touchstart",i),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("touchstart",i)}},[e,t])},qr=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:i}={})=>{const n=vt(null),[o,r]=yt(!1),[a,s]=yt({top:0,left:0});return Vr(n,()=>{o&&(r(!1),i?.())}),{popupRef:n,popupOpen:o,setPopupOpen:r,popupPosition:a,handlePosition:(i,o)=>{const{innerWidth:r,innerHeight:a}=window;let l=o,c=i;l>=a/2&&(l+=-(n.current?.clientHeight||e)),c>=r/2&&(c+=-(n.current?.clientWidth||t)),s({top:l,left:c})}}},Hr=()=>({getItemSS:(e,t)=>{const i=sessionStorage.getItem(e);return i?_n(i,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Gr={otelServiceName:"",currentStreamName:""},Kr=()=>{const{formData:e,formErrors:t,handleFormChange:i,handleErrorChange:n,resetFormData:o}=Er(Gr);return{formData:e,formErrors:t,handleFormChange:i,resetFormData:o,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const n={...ii(Gr),otelServiceName:e||t||""};i(void 0,void 0,n)}}},Yr=(e,t,i)=>{const n="boolean"==typeof i,o=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,r=o&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,a=(n?i:e.selected&&(!o||r))||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:a,numberOfInstances:e.numberOfInstances}},Jr=(e,t,i)=>({...Yr(e,t,i),currentStreamName:t}),Xr=(e,t,i)=>{const n="boolean"==typeof i,o=e.dataStreamNames?.includes(t),r=(n?i:e.selected)||!1;return{namespace:e.name,selected:!(!o&&!n)&&r,currentStreamName:t}},Zr=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:i}=Go(),{selectedStreamName:n}=qo(),o=vt(!1),{configuredSources:r,configuredFutureApps:a,availableSources:s,setAvailableSources:l}=rr(),[c,d]=yt(s),[p,u]=yt(""),[h,m]=yt(!1),[g,$]=yt([]),[x,f]=yt(""),[b,y]=yt(a),[w,v]=yt(((e,t,i)=>{const n={};return Object.entries(e).forEach(([e,t])=>{n[e]=t.map(e=>Jr(e,i))}),Object.entries(t).forEach(([e,t])=>{t.forEach(t=>{const o=n[e].findIndex(e=>e.name===t.name&&e.kind===t.kind),r=Jr(t,i);-1!==o?n[e][o]=r:n[e].push(r)})}),n})(s,r,n)),k=async(e,i)=>{if(t){if(u(e.name),g.includes(e.name))v(t=>({...t,[e.name]:t[e.name].map(e=>({...e,selected:"boolean"==typeof i?i:e.selected,currentStreamName:n}))}));else{const{data:r}=await t({namespaceName:e.name}),{name:a,sources:s=[]}=r?.computePlatform?.k8sActualNamespace||{};if(!a||!o.current)return;const c=s.map(e=>Yr(e,n));$(e=>[...e,a]),l({...rr.getState().availableSources,[a]:c}),d(e=>({...e,[a]:c})),v(e=>({...e,[a]:"boolean"!=typeof i&&e[a]?.length?e[a]:s.map(e=>Jr(e,n,i))}))}u("")}};wt(()=>(i?.length&&(d(e=>{const t={...e};return i.forEach(({name:e})=>t[e]=t[e]||[]),t}),v(e=>{const t={...e};return i.forEach(({name:e})=>t[e]=t[e]||[]),t}),y(e=>{const t={...e};return i.forEach(e=>t[e.name]=t[e.name]||Xr(e,n)),t}),o.current=!0,(async()=>{for await(const e of i){if(!o.current)break;await k(e)}})()),()=>{o.current=!1}),[i.length,n]);const[C,S]=yt(""),[E,A]=yt(wi.Source),[D,T]=yt(!1),[F,z]=yt(!1),I=bt(()=>{const e=(e,t)=>!C||E!==t||E===t&&e.toLowerCase().includes(C),t={};return Object.entries(w).filter(([t])=>e(t,wi.Namespace)).forEach(([i,n])=>{const o=n.filter(t=>e(t.name,wi.Source)&&(!D||t.selected)&&(e=>!F||(e.numberOfInstances||0)>0)(t));(!C||C&&(E===wi.Namespace||E===wi.Source&&o.length))&&(t[i]=o)}),t},[w,C,E,D,F]);return{fetchingNamespace:p,fetchedNamespaces:g,availableSources:c,filteredNamespacesAndSources:I,getApiSourcesPayload:()=>{const e={};return Object.entries(w).forEach(([t,i])=>{i.forEach(i=>{const n=c[t]?.find(e=>e.name===i.name&&e.kind===i.kind);n?.selected!==i.selected&&(e[t]||(e[t]=[]),e[t].push(i))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(b).forEach(([t,o])=>{const r=i?.find(e=>e.name===t);(o.selected&&!r?.dataStreamNames?.includes(n)||!o.selected&&r?.dataStreamNames?.includes(n))&&(e[t]=o)}),e},selectedNamespace:x,onSelectNamespace:(e,t)=>{const n=i.find(t=>t.name===e);if(n){const i="boolean"==typeof t;f(t=>t!==e||i?e:""),k(n,t),i&&m(!1)}},selectedAllNamespaces:h,onSelectAllNamespaces:e=>{m(e),i.forEach(t=>k(t,e))},selectedSources:w,onSelectSource:(e,t)=>{const i=t||x;if(!i)return;const o=[...w[i]||[]],r=o.findIndex(({name:t,kind:i})=>t===e.name&&i===e.kind);if(-1!==r){const e={...o[r],selected:!o[r].selected,currentStreamName:n};o[r]=e}else o.push({...e,selected:!0,currentStreamName:n});v(e=>({...e,[i]:o})),m(!1)},selectedFutureApps:b,onSelectFutureApps:(e,t)=>{const o=t||x;if(!o)return;const r=i.find(e=>e.name===t);r&&y(t=>({...t,[o]:Xr(r,n,e)}))},searchText:C,setSearchText:S,searchBy:E,setSearchBy:A,showSelectedOnly:D,setShowSelectedOnly:T,showRunningOnly:F,setShowRunningOnly:z}};try{Dt.addDefaultLocale(Ot)}catch(e){}const Qr=()=>{const e=vt(new Dt(Ot.locale));return{formatTimeAgo:kt(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},ea=Bt.div`
|
|
330
330
|
flex: 1;
|
|
331
331
|
align-self: stretch;
|
|
332
332
|
display: flex;
|
|
@@ -334,7 +334,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
334
334
|
gap: 24px;
|
|
335
335
|
padding: 24px 24px 0 24px;
|
|
336
336
|
overflow-x: scroll;
|
|
337
|
-
`,ta=
|
|
337
|
+
`,ta=Bt.div`
|
|
338
338
|
position: relative;
|
|
339
339
|
|
|
340
340
|
// inherit all the properties of the parent (PageContent)
|
|
@@ -344,7 +344,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
344
344
|
flex-direction: inherit;
|
|
345
345
|
gap: inherit;
|
|
346
346
|
overflow-x: inherit;
|
|
347
|
-
`,ia=
|
|
347
|
+
`,ia=Bt.div`
|
|
348
348
|
display: flex;
|
|
349
349
|
flex-direction: row;
|
|
350
350
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -355,7 +355,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
355
355
|
height: ${({$height:e})=>e||"unset"};
|
|
356
356
|
margin: ${({$margin:e="unset"})=>e};
|
|
357
357
|
padding: ${({$padding:e="unset"})=>e};
|
|
358
|
-
`,na=
|
|
358
|
+
`,na=Bt.div`
|
|
359
359
|
display: flex;
|
|
360
360
|
flex-direction: column;
|
|
361
361
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -366,17 +366,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
366
366
|
height: ${({$height:e})=>e||"unset"};
|
|
367
367
|
margin: ${({$margin:e="unset"})=>e};
|
|
368
368
|
padding: ${({$padding:e="unset"})=>e};
|
|
369
|
-
`,oa=
|
|
369
|
+
`,oa=Bt(na)`
|
|
370
370
|
width: ${({$width:e})=>e||"100%"};
|
|
371
371
|
height: ${({$height:e})=>e||"unset"};
|
|
372
372
|
align-items: center;
|
|
373
373
|
justify-content: center;
|
|
374
|
-
`,ra=
|
|
374
|
+
`,ra=Bt.div`
|
|
375
375
|
display: flex;
|
|
376
376
|
flex-direction: column;
|
|
377
377
|
padding: 12px;
|
|
378
378
|
overflow-y: scroll;
|
|
379
|
-
`,aa=
|
|
379
|
+
`,aa=Bt.div`
|
|
380
380
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
381
381
|
top: 0;
|
|
382
382
|
left: 0;
|
|
@@ -385,27 +385,27 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
385
385
|
z-index: 1000;
|
|
386
386
|
background: rgba(0, 0, 0, 0.6);
|
|
387
387
|
backdrop-filter: blur(2px);
|
|
388
|
-
`,sa=
|
|
388
|
+
`,sa=Bt.div`
|
|
389
389
|
width: 800px;
|
|
390
390
|
min-height: ${({$minHeight:e})=>e||"unset"};
|
|
391
391
|
height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
|
|
392
392
|
margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
|
|
393
393
|
padding: 0 2px;
|
|
394
394
|
overflow-y: scroll;
|
|
395
|
-
`,la=
|
|
395
|
+
`,la=Bt(na)`
|
|
396
396
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
397
397
|
width: 100%;
|
|
398
|
-
`,ca=
|
|
398
|
+
`,ca=Bt(ia)`
|
|
399
399
|
gap: 16px;
|
|
400
400
|
padding: 16px;
|
|
401
|
-
`,da=
|
|
401
|
+
`,da=Bt.div`
|
|
402
402
|
width: 100%;
|
|
403
403
|
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
404
404
|
overflow-y: auto;
|
|
405
|
-
`,pa=
|
|
405
|
+
`,pa=Bt.div`
|
|
406
406
|
width: ${({$width:e})=>e||"unset"};
|
|
407
407
|
height: ${({$height:e})=>e||"unset"};
|
|
408
|
-
`,ua=
|
|
408
|
+
`,ua=Bt.div`
|
|
409
409
|
position: fixed;
|
|
410
410
|
top: 50%;
|
|
411
411
|
left: 50%;
|
|
@@ -417,26 +417,26 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
417
417
|
border-radius: 40px;
|
|
418
418
|
box-shadow: ${({theme:e})=>{const t=e.colors.primary+ur["010"];return`0px 1px 1px 0px ${t}, 0px 2px 2px 0px ${t}, 0px 5px 5px 0px ${t}, 0px 10px 10px 0px ${t}, 0px 0px 8px 0px ${t}`}};
|
|
419
419
|
animation-name: ${mr.in.center};
|
|
420
|
-
`,ha=
|
|
420
|
+
`,ha=Bt.div`
|
|
421
421
|
display: flex;
|
|
422
422
|
justify-content: space-between;
|
|
423
423
|
align-items: center;
|
|
424
424
|
height: 80px;
|
|
425
425
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
426
426
|
padding: 0 24px;
|
|
427
|
-
`,ma=
|
|
427
|
+
`,ma=Bt.div`
|
|
428
428
|
cursor: pointer;
|
|
429
429
|
display: flex;
|
|
430
430
|
align-items: center;
|
|
431
431
|
gap: 8px;
|
|
432
|
-
`,ga=
|
|
432
|
+
`,ga=Bt.div`
|
|
433
433
|
display: flex;
|
|
434
434
|
align-items: center;
|
|
435
435
|
gap: 8px;
|
|
436
|
-
`,$a=
|
|
436
|
+
`,$a=Bt(oa)`
|
|
437
437
|
min-width: 350px;
|
|
438
438
|
min-height: 150px;
|
|
439
|
-
`,xa=
|
|
439
|
+
`,xa=Bt.div`
|
|
440
440
|
position: absolute;
|
|
441
441
|
left: 50%;
|
|
442
442
|
transform: translateX(-50%);
|
|
@@ -445,24 +445,24 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
445
445
|
justify-content: center;
|
|
446
446
|
width: 100%;
|
|
447
447
|
pointer-events: none;
|
|
448
|
-
`,fa=
|
|
448
|
+
`,fa=Bt(go)`
|
|
449
449
|
text-transform: uppercase;
|
|
450
450
|
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
451
451
|
pointer-events: auto;
|
|
452
|
-
`,ba=
|
|
452
|
+
`,ba=Bt(go)`
|
|
453
453
|
text-transform: uppercase;
|
|
454
454
|
font-weight: 500;
|
|
455
455
|
font-size: 14px;
|
|
456
456
|
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
457
457
|
text-decoration: underline;
|
|
458
458
|
cursor: pointer;
|
|
459
|
-
`,ya=({isOpen:e,noOverlay:t,header:i,actionComponent:n,onClose:o,children:r,closeOnEscape:a=!0})=>(Wr({key:"Escape",active:e&&a},()=>o()),Tr(e),e?Ht.createPortal(_t(
|
|
459
|
+
`,ya=({isOpen:e,noOverlay:t,header:i,actionComponent:n,onClose:o,children:r,closeOnEscape:a=!0})=>(Wr({key:"Escape",active:e&&a},()=>o()),Tr(e),e?Ht.createPortal(_t(Rt,{children:[Nt(aa,{hidden:!e,onClick:o,style:{opacity:t?0:1}}),_t(ua,{"data-id":"modal"+(i?`-${i.title.replaceAll(" ","-")}`:""),children:[i&&_t(ha,{children:[_t(ma,{onClick:o,children:[Nt(Ye,{}),Nt(ba,{children:"Cancel"})]}),Nt(xa,{children:Nt(fa,{children:i.title})}),Nt(ga,{children:n})]}),Nt($a,{children:r})]})]}),document.body):null),wa=Bt.div`
|
|
460
460
|
width: ${({$orientation:e,$thickness:t,$length:i})=>"vertical"===e?`${t}px`:i||"100%"};
|
|
461
461
|
height: ${({$orientation:e,$thickness:t,$length:i})=>"horizontal"===e?`${t}px`:i||"100%"};
|
|
462
462
|
margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
|
|
463
463
|
background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+ur["050"]};
|
|
464
464
|
opacity: ${({$opacity:e})=>e||1};
|
|
465
|
-
`,va=({orientation:e="horizontal",type:t,thickness:i=1,length:n,margin:o,opacity:r})=>Nt(wa,{$orientation:e,$type:t,$thickness:i,$length:n,$margin:o,$opacity:r}),ka=
|
|
465
|
+
`,va=({orientation:e="horizontal",type:t,thickness:i=1,length:n,margin:o,opacity:r})=>Nt(wa,{$orientation:e,$type:t,$thickness:i,$length:n,$margin:o,$opacity:r}),ka=Bt.div`
|
|
466
466
|
position: absolute;
|
|
467
467
|
${({$top:e})=>void 0!==e&&`top: ${e}px;`}
|
|
468
468
|
${({$bottom:e})=>void 0!==e&&`bottom: ${e}px;`}
|
|
@@ -477,25 +477,25 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
477
477
|
width: ${({$width:e})=>void 0!==e?e:"unset"};
|
|
478
478
|
|
|
479
479
|
${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
|
|
480
|
-
`,Ca=
|
|
480
|
+
`,Ca=Bt.div`
|
|
481
481
|
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
482
482
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
483
|
-
`,Sa=
|
|
483
|
+
`,Sa=Bt.div`
|
|
484
484
|
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
485
|
-
`,Ea=
|
|
485
|
+
`,Ea=Bt.div`
|
|
486
486
|
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
487
487
|
border-top: 1px solid ${({theme:e})=>e.colors.border};
|
|
488
|
-
`,Aa=Ct(({isOpen:e,asPortal:t,...i},n)=>{const o=bt(()=>{const{children:e,top:o,bottom:r,left:a,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:h,withPointerEvents:m,...g}=i;return _t(ka,{ref:n,$top:o,$bottom:r,$left:a,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:m,...g,children:[u&&Nt(Ca,{$padding:c,children:u}),Nt(Sa,{$padding:c,children:e}),h&&Nt(Ea,{$padding:c,children:h})]})},[n,i,t]);return e?t?Ht.createPortal(o,document.body):o:null});Aa.displayName=Aa.name;const Da=
|
|
488
|
+
`,Aa=Ct(({isOpen:e,asPortal:t,...i},n)=>{const o=bt(()=>{const{children:e,top:o,bottom:r,left:a,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:h,withPointerEvents:m,...g}=i;return _t(ka,{ref:n,$top:o,$bottom:r,$left:a,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:m,...g,children:[u&&Nt(Ca,{$padding:c,children:u}),Nt(Sa,{$padding:c,children:e}),h&&Nt(Ea,{$padding:c,children:h})]})},[n,i,t]);return e?t?Ht.createPortal(o,document.body):o:null});Aa.displayName=Aa.name;const Da=Bt.div`
|
|
489
489
|
width: fit-content;
|
|
490
490
|
position: relative;
|
|
491
491
|
display: flex;
|
|
492
492
|
align-items: center;
|
|
493
493
|
gap: 4px;
|
|
494
494
|
cursor: help;
|
|
495
|
-
`,Ta=
|
|
495
|
+
`,Ta=Bt(go)`
|
|
496
496
|
word-break: break-word;
|
|
497
497
|
white-space: pre-wrap;
|
|
498
|
-
`,Fa=({withIcon:e,titleIcon:t,title:i,text:n,timestamp:o,children:r})=>{const a=Lt(),{popupRef:s,popupOpen:l,setPopupOpen:c,popupPosition:d,handlePosition:p}=qr({defaultClientHeight:40,defaultClientwidth:Math.min(7.5*(n?.length||0),300)}),u=bt(()=>!!uo(n||"")?.length,[n]),h=e=>{const{type:t,clientX:i,clientY:n}=e;u?p(d.left||i,d.top||n):p(i,n),c("mouseleave"!==t)};return n?_t(Da,{onMouseEnter:h,onMouseMove:h,onMouseLeave:h,children:[r,e&&Nt(je,{fill:a.v2.colors.silver[200]}),_t(Aa,{ref:s,isOpen:l,top:d.top,left:d.left,asPortal:!0,withPointerEvents:u,onMouseEnter:u?h:void 0,maxWidth:"270px",borderRadius:"16px",padding:"8px 12px",children:[(!!t||!!i)&&_t(ia,{style:{marginBottom:"4px"},$gap:4,children:[t&&Nt(t,{size:12,fill:a.text.secondary},"icon"),i&&Nt(go,{size:12,color:a.text.secondary,children:i},"title")]}),Nt(Ta,{size:12,color:a.text.info,children:n}),!!o&&Nt(go,{size:10,color:a.text.darker_grey,family:"secondary",style:{marginTop:"8px"},children:new Date(o).toLocaleString()})]})]}):Nt(
|
|
498
|
+
`,Fa=({withIcon:e,titleIcon:t,title:i,text:n,timestamp:o,children:r})=>{const a=Lt(),{popupRef:s,popupOpen:l,setPopupOpen:c,popupPosition:d,handlePosition:p}=qr({defaultClientHeight:40,defaultClientwidth:Math.min(7.5*(n?.length||0),300)}),u=bt(()=>!!uo(n||"")?.length,[n]),h=e=>{const{type:t,clientX:i,clientY:n}=e;u?p(d.left||i,d.top||n):p(i,n),c("mouseleave"!==t)};return n?_t(Da,{onMouseEnter:h,onMouseMove:h,onMouseLeave:h,children:[r,e&&Nt(je,{fill:a.v2.colors.silver[200]}),_t(Aa,{ref:s,isOpen:l,top:d.top,left:d.left,asPortal:!0,withPointerEvents:u,onMouseEnter:u?h:void 0,maxWidth:"270px",borderRadius:"16px",padding:"8px 12px",children:[(!!t||!!i)&&_t(ia,{style:{marginBottom:"4px"},$gap:4,children:[t&&Nt(t,{size:12,fill:a.text.secondary},"icon"),i&&Nt(go,{size:12,color:a.text.secondary,children:i},"title")]}),Nt(Ta,{size:12,color:a.text.info,children:n}),!!o&&Nt(go,{size:10,color:a.text.darker_grey,family:"secondary",style:{marginTop:"8px"},children:new Date(o).toLocaleString()})]})]}):Nt(Rt,{children:r})},za=Bt.button`
|
|
499
499
|
position: relative;
|
|
500
500
|
width: ${({$size:e})=>e}px;
|
|
501
501
|
height: ${({$size:e})=>e}px;
|
|
@@ -509,7 +509,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
509
509
|
&:hover {
|
|
510
510
|
background-color: ${({theme:e,$backgroundColor:t})=>t?t+ur["070"]:e.colors.dropdown_bg_2};
|
|
511
511
|
}
|
|
512
|
-
`,Ia=
|
|
512
|
+
`,Ia=Bt.div`
|
|
513
513
|
position: absolute;
|
|
514
514
|
top: ${({$size:e})=>e/5}px;
|
|
515
515
|
right: ${({$size:e})=>e/5}px;
|
|
@@ -526,7 +526,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
526
526
|
background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
|
|
527
527
|
animation: ${$r} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
528
528
|
}
|
|
529
|
-
`,Oa=({children:e,onClick:t,tooltip:i,size:n=36,withPing:o,pingColor:r,withBorder:a,backgroundColor:s,...l})=>Nt(Fa,{text:i,children:_t(za,{$size:n,$withBorder:a,$backgroundColor:s,onClick:t,...l,children:[o&&Nt(Ia,{$size:n,$color:r}),e]})}),Na=
|
|
529
|
+
`,Oa=({children:e,onClick:t,tooltip:i,size:n=36,withPing:o,pingColor:r,withBorder:a,backgroundColor:s,...l})=>Nt(Fa,{text:i,children:_t(za,{$size:n,$withBorder:a,$backgroundColor:s,onClick:t,...l,children:[o&&Nt(Ia,{$size:n,$color:r}),e]})}),Na=Bt.div`
|
|
530
530
|
position: relative;
|
|
531
531
|
&.animated {
|
|
532
532
|
overflow: hidden;
|
|
@@ -534,7 +534,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
534
534
|
border-radius: 32px;
|
|
535
535
|
animation: ${({$isLeaving:e})=>e?mr.out.bottom:mr.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
536
536
|
}
|
|
537
|
-
`,_a=
|
|
537
|
+
`,_a=Bt.div`
|
|
538
538
|
position: absolute;
|
|
539
539
|
bottom: -1px;
|
|
540
540
|
left: 0;
|
|
@@ -544,7 +544,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
544
544
|
border-radius: 32px;
|
|
545
545
|
background-color: ${({$type:e,theme:t})=>t.text[e]};
|
|
546
546
|
animation: ${gr.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
547
|
-
`,
|
|
547
|
+
`,Ra=Bt.div`
|
|
548
548
|
display: flex;
|
|
549
549
|
align-items: center;
|
|
550
550
|
flex: 1;
|
|
@@ -552,20 +552,20 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
552
552
|
padding: 0 12px;
|
|
553
553
|
border-radius: 32px;
|
|
554
554
|
background-color: ${({$type:e,theme:t})=>t.colors[e]};
|
|
555
|
-
`,
|
|
555
|
+
`,Ba=Bt.div`
|
|
556
556
|
display: flex;
|
|
557
557
|
align-items: center;
|
|
558
558
|
margin: 0 auto 0 0;
|
|
559
559
|
padding: 8px 0;
|
|
560
560
|
max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
|
|
561
561
|
min-height: 12px;
|
|
562
|
-
`,Ma=
|
|
562
|
+
`,Ma=Bt(go)`
|
|
563
563
|
font-size: 14px;
|
|
564
564
|
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
565
|
-
`,La=
|
|
565
|
+
`,La=Bt(go)`
|
|
566
566
|
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
567
567
|
font-size: 12px;
|
|
568
|
-
`,Pa=
|
|
568
|
+
`,Pa=Bt(ia)``,ja=Bt(go)`
|
|
569
569
|
text-transform: uppercase;
|
|
570
570
|
text-decoration: underline;
|
|
571
571
|
font-size: 12px;
|
|
@@ -576,34 +576,34 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
576
576
|
transform: scale(1.1);
|
|
577
577
|
transition: transform 0.3s;
|
|
578
578
|
}
|
|
579
|
-
`,Ua=({type:e,icon:t,title:i,message:n,action:o,onClose:r,duration:a=5e3,overrideMaxWidth:s,style:l})=>{const c=Lt(),[d,p]=yt(!1),u=vt(null),h=vt(null),m=e=>{r&&(p(!0),r({asSeen:e?.asSeen}))};wt(()=>(u.current=setTimeout(()=>m({asSeen:!1}),a),()=>{u.current&&clearTimeout(u.current)}),[a]);const g=t||zn(e,c);return _t(Na,{className:r?"animated":"",$duration:a,$isLeaving:d,onMouseEnter:()=>{u.current&&clearTimeout(u.current),h.current&&(h.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(h.current){const e=h.current.offsetWidth/h.current.parentElement.offsetWidth*a;u.current=setTimeout(()=>m({asSeen:!1}),e),h.current.style.animationPlayState="running"}},children:[_t(
|
|
579
|
+
`,Ua=({type:e,icon:t,title:i,message:n,action:o,onClose:r,duration:a=5e3,overrideMaxWidth:s,style:l})=>{const c=Lt(),[d,p]=yt(!1),u=vt(null),h=vt(null),m=e=>{r&&(p(!0),r({asSeen:e?.asSeen}))};wt(()=>(u.current=setTimeout(()=>m({asSeen:!1}),a),()=>{u.current&&clearTimeout(u.current)}),[a]);const g=t||zn(e,c);return _t(Na,{className:r?"animated":"",$duration:a,$isLeaving:d,onMouseEnter:()=>{u.current&&clearTimeout(u.current),h.current&&(h.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(h.current){const e=h.current.offsetWidth/h.current.parentElement.offsetWidth*a;u.current=setTimeout(()=>m({asSeen:!1}),e),h.current.style.animationPlayState="running"}},children:[_t(Ra,{"data-id":"toast",$type:e,style:l,children:[Nt(g,{fill:c.text[e]}),_t(Ba,{$withAction:!!o,$overrideMaxWidth:s,children:[i&&Nt(Ma,{$type:e,children:i}),i&&n&&Nt(va,{orientation:"vertical",type:e}),n&&Nt(La,{$type:e,children:n})]}),(!!o||!!r)&&_t(Pa,{children:[o&&Nt(ja,{"data-id":"toast-action",onClick:o.onClick,children:o.label}),r&&Nt(Oa,{"data-id":"toast-close",onClick:()=>m({asSeen:!0}),children:Nt(Ye,{size:12})})]})]}),r&&Nt(_a,{ref:h,$duration:a,$type:e})]})},Wa=Bt.div`
|
|
580
580
|
padding: 24px 32px;
|
|
581
|
-
`,Va=
|
|
581
|
+
`,Va=Bt.div`
|
|
582
582
|
padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
|
|
583
|
-
`,qa=
|
|
583
|
+
`,qa=Bt(go)`
|
|
584
584
|
font-size: 20px;
|
|
585
585
|
line-height: 28px;
|
|
586
|
-
`,Ha=
|
|
586
|
+
`,Ha=Bt(go)`
|
|
587
587
|
color: ${({theme:e})=>e.text.grey};
|
|
588
588
|
width: 416px;
|
|
589
589
|
font-style: normal;
|
|
590
590
|
font-weight: 300;
|
|
591
591
|
line-height: 24px;
|
|
592
|
-
`,Ga=
|
|
592
|
+
`,Ga=Bt.div`
|
|
593
593
|
display: flex;
|
|
594
594
|
justify-content: space-between;
|
|
595
595
|
gap: 12px;
|
|
596
|
-
`,Ka=
|
|
596
|
+
`,Ka=Bt(Sr)`
|
|
597
597
|
width: 250px;
|
|
598
|
-
`,Ya=
|
|
598
|
+
`,Ya=Bt.div`
|
|
599
599
|
margin-bottom: 12px;
|
|
600
|
-
`,Ja=({isOpen:e,noOverlay:t,title:i="",description:n="",note:o,approveButton:r,denyButton:a,closeOnEscape:s=!0})=>{Wr({key:"Enter",active:e&&s},()=>r.onClick());const l=()=>a.onClick();return Nt(ya,{isOpen:e,noOverlay:t,onClose:l,children:_t(Wa,{children:[Nt(qa,{children:i}),Nt(Va,{$withNote:!!o,children:Nt(Ha,{children:n})}),!!o&&Nt(Ya,{children:Nt(Ua,{type:o.type,title:o.title,message:o.message})}),_t(Ga,{children:[Nt(Ka,{"data-id":"approve",variant:r.variant||"primary",onClick:()=>r.onClick(),children:r.text}),Nt(Ka,{"data-id":"deny",variant:a.variant||"secondary",onClick:l,children:a.text})]})]})})},Xa=({isOpen:e,noOverlay:t,name:i,onApprove:n,onDeny:o})=>Nt(Ja,{isOpen:e,noOverlay:t,title:"Cancel"+(i?` ${i}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Si.Warning,onClick:n},denyButton:{text:"Go Back",onClick:o}}),Za=
|
|
600
|
+
`,Ja=({isOpen:e,noOverlay:t,title:i="",description:n="",note:o,approveButton:r,denyButton:a,closeOnEscape:s=!0})=>{Wr({key:"Enter",active:e&&s},()=>r.onClick());const l=()=>a.onClick();return Nt(ya,{isOpen:e,noOverlay:t,onClose:l,children:_t(Wa,{children:[Nt(qa,{children:i}),Nt(Va,{$withNote:!!o,children:Nt(Ha,{children:n})}),!!o&&Nt(Ya,{children:Nt(Ua,{type:o.type,title:o.title,message:o.message})}),_t(Ga,{children:[Nt(Ka,{"data-id":"approve",variant:r.variant||"primary",onClick:()=>r.onClick(),children:r.text}),Nt(Ka,{"data-id":"deny",variant:a.variant||"secondary",onClick:l,children:a.text})]})]})})},Xa=({isOpen:e,noOverlay:t,name:i,onApprove:n,onDeny:o})=>Nt(Ja,{isOpen:e,noOverlay:t,title:"Cancel"+(i?` ${i}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Si.Warning,onClick:n},denyButton:{text:"Go Back",onClick:o}}),Za=Bt.div`
|
|
601
601
|
display: flex;
|
|
602
602
|
align-items: center;
|
|
603
603
|
gap: 8px;
|
|
604
604
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
605
605
|
opacity: ${({$disabled:e})=>e?.6:1};
|
|
606
|
-
`,Qa=
|
|
606
|
+
`,Qa=Bt.div`
|
|
607
607
|
width: 18px;
|
|
608
608
|
height: 18px;
|
|
609
609
|
border-radius: 6px;
|
|
@@ -617,9 +617,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
617
617
|
&:hover {
|
|
618
618
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
619
619
|
}
|
|
620
|
-
`,es=({title:e,titleColor:t,tooltip:i,value:n=!1,partiallyChecked:o=!1,onChange:r,disabled:a,style:s,errorMessage:l,allowPropagation:c=!1})=>{const d=Lt(),[p,u]=yt(n);return wt(()=>u(n),[n]),_t(na,{children:[_t(Za,{"data-id":"checkbox"+(e?`-${e}`:""),$disabled:a,onClick:e=>{a||(c||e.stopPropagation(),r?r(!!o||!p):u(e=>!!o||!e))},style:s,children:[Nt(Qa,{$isChecked:p,$isPartiallyChecked:o,$disabled:a,children:o?Nt(Je,{fill:d.text.white}):p?Nt(Ge,{fill:d.text.white}):null}),e&&Nt(Fa,{text:i,withIcon:!0,children:Nt(go,{size:12,color:t||d.text.grey,style:{maxWidth:"90%"},children:e})})]}),!!l&&Nt(fo,{children:l})]})},ts=
|
|
620
|
+
`,es=({title:e,titleColor:t,tooltip:i,value:n=!1,partiallyChecked:o=!1,onChange:r,disabled:a,style:s,errorMessage:l,allowPropagation:c=!1})=>{const d=Lt(),[p,u]=yt(n);return wt(()=>u(n),[n]),_t(na,{children:[_t(Za,{"data-id":"checkbox"+(e?`-${e}`:""),$disabled:a,onClick:e=>{a||(c||e.stopPropagation(),r?r(!!o||!p):u(e=>!!o||!e))},style:s,children:[Nt(Qa,{$isChecked:p,$isPartiallyChecked:o,$disabled:a,children:o?Nt(Je,{fill:d.text.white}):p?Nt(Ge,{fill:d.text.white}):null}),e&&Nt(Fa,{text:i,withIcon:!0,children:Nt(go,{size:12,color:t||d.text.grey,style:{maxWidth:"90%"},children:e})})]}),!!l&&Nt(fo,{children:l})]})},ts=Bt(ia)`
|
|
621
621
|
gap: 0;
|
|
622
|
-
`,is=
|
|
622
|
+
`,is=Bt.button`
|
|
623
623
|
padding: 4px 8px;
|
|
624
624
|
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
625
625
|
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
@@ -631,22 +631,22 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
631
631
|
&:hover {
|
|
632
632
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
633
633
|
}
|
|
634
|
-
`,ns=({isPrettyMode:e,setIsPrettyMode:t})=>_t(ts,{children:[Nt(is,{$position:"left",$selected:e,onClick:()=>t(!0),children:Nt(Xe,{})}),Nt(is,{$position:"right",$selected:!e,onClick:()=>t(!1),children:Nt(Ze,{})})]}),os=
|
|
634
|
+
`,ns=({isPrettyMode:e,setIsPrettyMode:t})=>_t(ts,{children:[Nt(is,{$position:"left",$selected:e,onClick:()=>t(!0),children:Nt(Xe,{})}),Nt(is,{$position:"right",$selected:!e,onClick:()=>t(!1),children:Nt(Ze,{})})]}),os=Bt.table`
|
|
635
635
|
border-collapse: collapse;
|
|
636
636
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
637
|
-
`,rs=
|
|
637
|
+
`,rs=Bt.tbody``,as=Bt.tr`
|
|
638
638
|
td:first-child {
|
|
639
639
|
padding-left: 0 !important;
|
|
640
640
|
}
|
|
641
641
|
td:last-child {
|
|
642
642
|
padding-right: 0 !important;
|
|
643
643
|
}
|
|
644
|
-
`,ss=
|
|
644
|
+
`,ss=Bt.td`
|
|
645
645
|
vertical-align: top;
|
|
646
646
|
padding: 4px 6px;
|
|
647
|
-
`,ls=
|
|
647
|
+
`,ls=Bt(go)`
|
|
648
648
|
white-space: nowrap;
|
|
649
|
-
`,cs=
|
|
649
|
+
`,cs=Bt.span`
|
|
650
650
|
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
651
651
|
overflow-wrap: break-word;
|
|
652
652
|
word-break: break-word;
|
|
@@ -654,12 +654,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
654
654
|
/* Fallback for older browsers */
|
|
655
655
|
-ms-word-break: break-all;
|
|
656
656
|
font-size: 12px;
|
|
657
|
-
`,ds=({language:e,code:t,theme:i,flatten:n,pretty:o})=>{const{darkMode:r}=Lt(),a=i?Yt[i]:r?Yt.palenight:Yt.vsLight;let s="";if("json"===e){const e=_n(t,{}),i=Qn(e);s=eo(n?sn(i):i)}else s=t;return o&&"json"===e?Nt(ps,{darkMode:r,str:s}):Nt(Kt,{theme:a||(r?Yt.palenight:Yt.vsLight),language:e,code:s,children:({getLineProps:e,getTokenProps:t,tokens:i})=>Nt("pre",{children:i.map((i,n)=>Nt("div",{...e({line:i}),children:i.map((e,i)=>Nt(cs,{...t({token:e})},`line-${n}-token-${i}`))},`line-${n}`))})})},ps=({darkMode:e,str:t})=>{const i=Lt(),n=(e,t)=>{const n=new Array(e).fill(e=>_t(as,{...e,children:[Nt(ss,{}),Nt(ss,{})]}));return Nt(ft,{children:n.map((e,n)=>Nt(e,{style:0===n?{borderBottom:`1px solid ${i.colors.border}`}:{}},`empty-row-${t}-${n}`))})};return Nt(Kt,{theme:e?Yt.palenight:Yt.vsLight,language:"json",code:t,children:({getLineProps:e,getTokenProps:t,tokens:o})=>Nt(os,{children:Nt(rs,{children:o.map((o,r)=>{const a=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const i=[...e],n=["property","string"].includes(i[0])?t.replace(/"/g,""):t;return"string"===i[0]&&(["true","false"].includes(n.split("@")[0])&&(i[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(i[0]="number")),{types:i,content:n}})})(o),s=e({line:a});return 1===a.length&&"property"===a[0].types[0]?_t(ft,{children:[n(2,r),_t(as,{...s,children:[Nt(ss,{children:Nt(ls,{children:a[0].content})}),Nt(ss,{})]})]},`line-${r}`):2===a.length?Nt(as,{...s,children:a.map((e,n)=>{const{text:o,components:a}=((e,t)=>{const[i,...n]=e.split("@");return{text:i,components:n?.map((e,i)=>{if(!e.includes("="))return null;const[n,o]=e.split("=");switch(n){case"tooltip":return Nt(Fa,{withIcon:!0,text:o},`${n}-${o}-${i}`);case"status":if("none"===o)return Nt("div",{style:{width:16,height:16}},`${n}-${o}-${i}`);let e=zn(o,t);return e||(e=zn(Si.Warning,t)),Nt(e,{},`${n}-${o}-${i}`);default:return null}})?.filter(e=>!!e)||[]}})(e.content,i),s=0===n;return Nt(ss,{children:_t(ia,{children:[Nt(ia,{children:a}),Nt(cs,{$noWrap:s,...t({token:e}),children:o})]})},`line-${r}-token-${n}`)})},`line-${r}`):(a.length,null)})})})})},us={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 hs(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const i=(e.match(/^[0-9.]*/)||"").toString();t=i.includes(".")?parseFloat(i):parseInt(i,10);const n=(e.match(/[^0-9]*$/)||"").toString();return us[n]?{value:t,unit:n}:{value:t,unit:"px"}}function ms(e){const t=hs(e);return`${t.value}${t.unit}`}const gs=(()=>{const e="react-spinners-FadeLoader-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const i=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return i&&i.insertRule(n,0),e})(),$s=({loading:e=!0,color:t,scale:i=1,speedMultiplier:n=1,cssOverride:o={},style:r={},...a})=>{const s=Lt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=hs(2),d=c+4.2,p=d/2+d/5.5,u=4*d*i,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:i,...r,...o},m=(e,t)=>({position:"absolute",width:ms(1.5),height:ms(4),borderRadius:ms(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${gs} ${1.2/n}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return _t("span",{style:h,...a,children:[Nt("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),Nt("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),Nt("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),Nt("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),Nt("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),Nt("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),Nt("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),Nt("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},xs=
|
|
657
|
+
`,ds=({language:e,code:t,theme:i,flatten:n,pretty:o})=>{const{darkMode:r}=Lt(),a=i?Yt[i]:r?Yt.palenight:Yt.vsLight;let s="";if("json"===e){const e=_n(t,{}),i=Qn(e);s=eo(n?sn(i):i)}else s=t;return o&&"json"===e?Nt(ps,{darkMode:r,str:s}):Nt(Kt,{theme:a||(r?Yt.palenight:Yt.vsLight),language:e,code:s,children:({getLineProps:e,getTokenProps:t,tokens:i})=>Nt("pre",{children:i.map((i,n)=>Nt("div",{...e({line:i}),children:i.map((e,i)=>Nt(cs,{...t({token:e})},`line-${n}-token-${i}`))},`line-${n}`))})})},ps=({darkMode:e,str:t})=>{const i=Lt(),n=(e,t)=>{const n=new Array(e).fill(e=>_t(as,{...e,children:[Nt(ss,{}),Nt(ss,{})]}));return Nt(ft,{children:n.map((e,n)=>Nt(e,{style:0===n?{borderBottom:`1px solid ${i.colors.border}`}:{}},`empty-row-${t}-${n}`))})};return Nt(Kt,{theme:e?Yt.palenight:Yt.vsLight,language:"json",code:t,children:({getLineProps:e,getTokenProps:t,tokens:o})=>Nt(os,{children:Nt(rs,{children:o.map((o,r)=>{const a=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const i=[...e],n=["property","string"].includes(i[0])?t.replace(/"/g,""):t;return"string"===i[0]&&(["true","false"].includes(n.split("@")[0])&&(i[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(i[0]="number")),{types:i,content:n}})})(o),s=e({line:a});return 1===a.length&&"property"===a[0].types[0]?_t(ft,{children:[n(2,r),_t(as,{...s,children:[Nt(ss,{children:Nt(ls,{children:a[0].content})}),Nt(ss,{})]})]},`line-${r}`):2===a.length?Nt(as,{...s,children:a.map((e,n)=>{const{text:o,components:a}=((e,t)=>{const[i,...n]=e.split("@");return{text:i,components:n?.map((e,i)=>{if(!e.includes("="))return null;const[n,o]=e.split("=");switch(n){case"tooltip":return Nt(Fa,{withIcon:!0,text:o},`${n}-${o}-${i}`);case"status":if("none"===o)return Nt("div",{style:{width:16,height:16}},`${n}-${o}-${i}`);let e=zn(o,t);return e||(e=zn(Si.Warning,t)),Nt(e,{},`${n}-${o}-${i}`);default:return null}})?.filter(e=>!!e)||[]}})(e.content,i),s=0===n;return Nt(ss,{children:_t(ia,{children:[Nt(ia,{children:a}),Nt(cs,{$noWrap:s,...t({token:e}),children:o})]})},`line-${r}-token-${n}`)})},`line-${r}`):(a.length,null)})})})})},us={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 hs(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const i=(e.match(/^[0-9.]*/)||"").toString();t=i.includes(".")?parseFloat(i):parseInt(i,10);const n=(e.match(/[^0-9]*$/)||"").toString();return us[n]?{value:t,unit:n}:{value:t,unit:"px"}}function ms(e){const t=hs(e);return`${t.value}${t.unit}`}const gs=(()=>{const e="react-spinners-FadeLoader-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const i=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return i&&i.insertRule(n,0),e})(),$s=({loading:e=!0,color:t,scale:i=1,speedMultiplier:n=1,cssOverride:o={},style:r={},...a})=>{const s=Lt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=hs(2),d=c+4.2,p=d/2+d/5.5,u=4*d*i,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:i,...r,...o},m=(e,t)=>({position:"absolute",width:ms(1.5),height:ms(4),borderRadius:ms(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${gs} ${1.2/n}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return _t("span",{style:h,...a,children:[Nt("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),Nt("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),Nt("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),Nt("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),Nt("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),Nt("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),Nt("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),Nt("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},xs=Bt.div`
|
|
658
658
|
margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
|
|
659
659
|
display: flex;
|
|
660
660
|
align-items: center;
|
|
661
661
|
justify-content: center;
|
|
662
|
-
`,fs=({extend:e,size:t=14,align:i="center"})=>Nt(xs,{$align:i,children:Nt(Qe,{size:t,rotate:e?180:0})}),bs=
|
|
662
|
+
`,fs=({extend:e,size:t=14,align:i="center"})=>Nt(xs,{$align:i,children:Nt(Qe,{size:t,rotate:e?180:0})}),bs=Bt.div`
|
|
663
663
|
border-radius: 24px;
|
|
664
664
|
background-color: ${({theme:e,$status:t})=>t===Si.Error?e.text.error+ur["010"]:t===Si.Warning?e.text.warning+ur["010"]:e.colors.secondary+ur["005"]};
|
|
665
665
|
&:hover {
|
|
@@ -667,25 +667,25 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
667
667
|
}
|
|
668
668
|
cursor: pointer;
|
|
669
669
|
transition: background 0.3s;
|
|
670
|
-
`,ys=
|
|
670
|
+
`,ys=Bt.div`
|
|
671
671
|
display: flex;
|
|
672
672
|
align-items: center;
|
|
673
673
|
gap: 12px;
|
|
674
674
|
padding: 12px 18px;
|
|
675
|
-
`,ws=
|
|
675
|
+
`,ws=Bt.div`
|
|
676
676
|
display: flex;
|
|
677
677
|
flex-direction: column;
|
|
678
678
|
gap: 8px;
|
|
679
679
|
padding: 6px 18px 12px 18px;
|
|
680
|
-
`,vs=
|
|
680
|
+
`,vs=Bt.div`
|
|
681
681
|
display: flex;
|
|
682
682
|
align-items: center;
|
|
683
683
|
gap: 12px;
|
|
684
|
-
`,ks=
|
|
684
|
+
`,ks=Bt(go)`
|
|
685
685
|
white-space: nowrap;
|
|
686
|
-
`,Cs=
|
|
686
|
+
`,Cs=Bt(na)`
|
|
687
687
|
width: 16px;
|
|
688
|
-
`,Ss=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:i="Something isn't right",headerLabelSuccess:n="Everything Successful"})=>{const o=Lt(),[r,a]=yt(!1),s=bt(()=>Hn(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=bt(()=>un(s),[s]);wt(()=>{a(c||p||u||h)},[c,p,u,h]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?Si.Error:p?Si.Warning:u?Si.Info:Si.Success,$=zn(g,o),x=c?t:p||u?i:m?"Loading...":n,f=c?o.text.error:p?o.text.warning:o.text.info,b=`(${c?l.length:p?d.length:s.length}/${s.length})`,y=c?o.text.error_secondary:p?o.text.warning_secondary:o.text.info_secondary,w=kt(()=>a(e=>!e),[]);return _t(bs,{onClick:w,$status:g,children:[_t(ys,{children:[Nt(m?$s:$,{}),Nt(go,{color:f,size:14,children:x}),Nt(go,{color:y,size:12,family:"secondary",children:b}),Nt(fs,{extend:r,align:"right"})]}),r&&Nt(ws,{children:s.map(({status:e,type:t,reason:i,message:n,lastTransitionTime:r},a)=>{const s=e===Ai.Loading?()=>Nt($s,{scale:.8}):e===Ai.Disabled?zn(Si.Info,o):zn(e,o),l=e===Ai.Disabled?o.text.info:e===Si.Error?o.text.error:e===Si.Warning?o.text.warning:o.text.info,c=e===Ai.Disabled?o.text.info_secondary:e===Si.Error?o.text.error_secondary:e===Si.Warning?o.text.warning_secondary:o.text.info_secondary;return _t(vs,{children:[Nt(Cs,{children:Nt(s,{})}),_t(ia,{$gap:12,style:{width:"100%",justifyContent:"space-between"},children:[_t(go,{color:l,size:12,children:[Nt(ks,{color:c,size:12,weight:700,children:t}),n||i]}),Nt(ks,{color:l,size:12,children:new Date(r).toLocaleString()})]})]},`condition-${a}`)})})]})},Es=
|
|
688
|
+
`,Ss=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:i="Something isn't right",headerLabelSuccess:n="Everything Successful"})=>{const o=Lt(),[r,a]=yt(!1),s=bt(()=>Hn(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=bt(()=>un(s),[s]);wt(()=>{a(c||p||u||h)},[c,p,u,h]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?Si.Error:p?Si.Warning:u?Si.Info:Si.Success,$=zn(g,o),x=c?t:p||u?i:m?"Loading...":n,f=c?o.text.error:p?o.text.warning:o.text.info,b=`(${c?l.length:p?d.length:s.length}/${s.length})`,y=c?o.text.error_secondary:p?o.text.warning_secondary:o.text.info_secondary,w=kt(()=>a(e=>!e),[]);return _t(bs,{onClick:w,$status:g,children:[_t(ys,{children:[Nt(m?$s:$,{}),Nt(go,{color:f,size:14,children:x}),Nt(go,{color:y,size:12,family:"secondary",children:b}),Nt(fs,{extend:r,align:"right"})]}),r&&Nt(ws,{children:s.map(({status:e,type:t,reason:i,message:n,lastTransitionTime:r},a)=>{const s=e===Ai.Loading?()=>Nt($s,{scale:.8}):e===Ai.Disabled?zn(Si.Info,o):zn(e,o),l=e===Ai.Disabled?o.text.info:e===Si.Error?o.text.error:e===Si.Warning?o.text.warning:o.text.info,c=e===Ai.Disabled?o.text.info_secondary:e===Si.Error?o.text.error_secondary:e===Si.Warning?o.text.warning_secondary:o.text.info_secondary;return _t(vs,{children:[Nt(Cs,{children:Nt(s,{})}),_t(ia,{$gap:12,style:{width:"100%",justifyContent:"space-between"},children:[_t(go,{color:l,size:12,children:[Nt(ks,{color:c,size:12,weight:700,children:t}),n||i]}),Nt(ks,{color:l,size:12,children:new Date(r).toLocaleString()})]})]},`condition-${a}`)})})]})},Es=Bt.div`
|
|
689
689
|
display: flex;
|
|
690
690
|
align-items: center;
|
|
691
691
|
gap: ${({$size:e})=>e/3}px;
|
|
@@ -694,13 +694,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
694
694
|
border-radius: 360px;
|
|
695
695
|
border: ${({$withBorder:e,$status:t,theme:i})=>e?`1px solid ${i.text[t]+ur["050"]}`:"none"};
|
|
696
696
|
background: ${({$withBackground:e,$status:t,theme:i})=>e?`linear-gradient(90deg, transparent 0%, ${i.text[t]+ur["030"]} 100%)`:"transparent"};
|
|
697
|
-
`,As=
|
|
697
|
+
`,As=Bt.div`
|
|
698
698
|
display: flex;
|
|
699
699
|
align-items: center;
|
|
700
|
-
`,Ds=
|
|
700
|
+
`,Ds=Bt.div`
|
|
701
701
|
display: flex;
|
|
702
702
|
align-items: center;
|
|
703
|
-
`,Ts=({title:e,subtitle:t,status:i=Si.Default,forceIcon:n,withIcon:o,withBorder:r,withBackground:a,width:s,size:l=12,family:c="secondary",nowrap:d=!1})=>{const p=Lt(),u=[Ai.Loading,Ai.Disabled].includes(i)?Si.Info:i,h=n?()=>Nt(n,{size:l+2,fill:p.text[u]}):i===Ai.Loading?()=>Nt($s,{scale:.8}):()=>zn(u,p)?.({size:l+2});return _t(Es,{$status:u,$width:s,$size:l,$withIcon:o,$withBorder:r,$withBackground:a,children:[o&&Nt(As,{children:Nt(h,{})}),(!!e||!!t)&&_t(Ds,{children:[!!e&&Nt(go,{size:l,family:c,color:p.text[u],nowrap:d,children:e}),!!e&&!!t&&Nt(va,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&Nt(go,{size:l-2,family:c,color:p.text[`${u}_secondary`],nowrap:d,children:t})]})]})},Fs=({label:e,onClick:t,variant:i="tertiary",textProps:n,...o})=>{const r=Lt();return _t(Sr,{onClick:t,variant:i,...o,children:[Nt(et,{fill:"primary"===i?r.text.primary:r.text.info}),Nt(go,{size:14,family:"secondary",decoration:"underline",color:"primary"===i?r.text.primary:void 0,...n,children:e||rn.ADD})]})},zs=
|
|
703
|
+
`,Ts=({title:e,subtitle:t,status:i=Si.Default,forceIcon:n,withIcon:o,withBorder:r,withBackground:a,width:s,size:l=12,family:c="secondary",nowrap:d=!1})=>{const p=Lt(),u=[Ai.Loading,Ai.Disabled].includes(i)?Si.Info:i,h=n?()=>Nt(n,{size:l+2,fill:p.text[u]}):i===Ai.Loading?()=>Nt($s,{scale:.8}):()=>zn(u,p)?.({size:l+2});return _t(Es,{$status:u,$width:s,$size:l,$withIcon:o,$withBorder:r,$withBackground:a,children:[o&&Nt(As,{children:Nt(h,{})}),(!!e||!!t)&&_t(Ds,{children:[!!e&&Nt(go,{size:l,family:c,color:p.text[u],nowrap:d,children:e}),!!e&&!!t&&Nt(va,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&Nt(go,{size:l-2,family:c,color:p.text[`${u}_secondary`],nowrap:d,children:t})]})]})},Fs=({label:e,onClick:t,variant:i="tertiary",textProps:n,...o})=>{const r=Lt();return _t(Sr,{onClick:t,variant:i,...o,children:[Nt(et,{fill:"primary"===i?r.text.primary:r.text.info}),Nt(go,{size:14,family:"secondary",decoration:"underline",color:"primary"===i?r.text.primary:void 0,...n,children:e||rn.ADD})]})},zs=Bt(ia)`
|
|
704
704
|
width: 100%;
|
|
705
705
|
border-radius: 8px;
|
|
706
706
|
background-color: ${({theme:e})=>e.colors.secondary+ur["010"]};
|
|
@@ -711,7 +711,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
711
711
|
width: 100%;
|
|
712
712
|
padding-left: 12px;
|
|
713
713
|
}
|
|
714
|
-
`,Is=({value:e,callbackCopyDone:t})=>{const{clickCopy:i,isCopied:n}=
|
|
714
|
+
`,Is=({value:e,callbackCopyDone:t})=>{const{clickCopy:i,isCopied:n}=Rr();return _t(zs,{children:[Nt("pre",{children:e}),Nt(Oa,{onClick:n=>{n.stopPropagation(),i(e),t?.()},tooltip:n?"Copied!":"Copy",children:Nt(n?Ge:Ke,{})})]})},Os=({label:e,onClick:t,variant:i="tertiary",...n})=>{const o=Lt();return _t(Sr,{onClick:t,variant:i,...n,children:[Nt(tt,{fill:"primary"===i?o.text.primary:o.text.info}),Nt(go,{size:14,family:"secondary",decoration:"underline",color:"primary"===i?o.text.primary:void 0,children:e||rn.EDIT})]})},Ns=({onClick:e})=>Nt(Ua,{type:Si.Default,icon:He,message:on.QUICK_BACK_TO_SUMMARY,action:{label:on.GO_TO_SUMMARY,onClick:e}}),_s=Bt(go)`
|
|
715
715
|
max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
|
|
716
716
|
white-space: nowrap;
|
|
717
717
|
overflow-x: auto;
|
|
@@ -721,7 +721,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
721
721
|
content: '';
|
|
722
722
|
display: block;
|
|
723
723
|
}
|
|
724
|
-
`,
|
|
724
|
+
`,Rs=({maxWidth:e,text:t,textSize:i=16,textColor:n})=>{const[o,r]=yt(!1),a=vt(null);return wt(()=>{if(a.current){const{clientWidth:t}=a.current;r(t<1.05*(e-i)&&t>.95*(e-i))}},[e,i,t]),_t(ia,{$gap:0,children:[t&&Nt(Fa,{text:o?t:void 0,children:Nt(_s,{ref:a,$maxWidth:e-i,size:i,color:n,children:t})}),o&&Nt(_s,{$maxWidth:i,size:i,color:n,children:"..."})]})},Bs=({src:e="",alt:t="",size:i=16})=>{const[n,o]=yt(!1);return e&&!n?Nt("img",{src:e,alt:t,width:i,height:i,onError:()=>o(!0)}):Nt(a,{size:i})},Ms=Bt.div`
|
|
725
725
|
display: flex;
|
|
726
726
|
align-items: center;
|
|
727
727
|
justify-content: center;
|
|
@@ -729,7 +729,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
729
729
|
height: ${({$size:e})=>e}px;
|
|
730
730
|
border-radius: 8px;
|
|
731
731
|
background: ${({$status:e,theme:t})=>{const i=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${i} 0%, ${i+ur["030"]} 100%)`}};
|
|
732
|
-
`,Ls=({icon:e,src:t="",alt:i="",status:n,size:o=36})=>Nt(Ms,{$status:n,$size:o,children:t?Nt(
|
|
732
|
+
`,Ls=({icon:e,src:t="",alt:i="",status:n,size:o=36})=>Nt(Ms,{$status:n,$size:o,children:t?Nt(Bs,{src:t,alt:i,size:o-12}):Nt(e||a,{size:o-12})}),Ps=Bt.div`
|
|
733
733
|
position: relative;
|
|
734
734
|
display: flex;
|
|
735
735
|
flex-wrap: wrap;
|
|
@@ -737,7 +737,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
737
737
|
justify-content: center;
|
|
738
738
|
width: ${({$size:e})=>e}px;
|
|
739
739
|
height: ${({$size:e})=>e}px;
|
|
740
|
-
`,js=
|
|
740
|
+
`,js=Bt.div`
|
|
741
741
|
position: absolute;
|
|
742
742
|
top: ${({$top:e})=>e}px;
|
|
743
743
|
left: ${({$left:e})=>e}px;
|
|
@@ -750,9 +750,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
750
750
|
border-radius: 100%;
|
|
751
751
|
border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+ur["030"]};
|
|
752
752
|
background: ${({$status:e,theme:t})=>{const i=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${i} 0%, ${i+ur["030"]} 100%)`}};
|
|
753
|
-
`,Us=({icons:e=[],iconSrcs:t=[],status:i,size:n=36,id:o})=>{const r=Lt(),a=1===e.length||1===t.length?n-12:n/2.7;if(t.length>0)return Nt(Us,{icons:t.map(e=>()=>Nt(
|
|
753
|
+
`,Us=({icons:e=[],iconSrcs:t=[],status:i,size:n=36,id:o})=>{const r=Lt(),a=1===e.length||1===t.length?n-12:n/2.7;if(t.length>0)return Nt(Us,{icons:t.map(e=>()=>Nt(Bs,{src:e,size:a})),status:i,size:n,id:o});if(1===e.length)return Nt(Ls,{icon:e[0],status:i,size:n});const s=t=>e.length<=2?.5*a:0===t||1===t?0:1.15*a,l=e=>0===e?0:1===e?1.15*a:1.15*a*.5;return Nt(Ps,{$status:i,$size:n,children:e.map((t,n)=>n>2?null:Nt(js,{$status:i,$size:1.5*a,$top:s(n),$left:l(n),$zIndex:n+1,children:2===n&&e.length>3?_t(go,{family:"secondary",color:r.text.dark_grey,size:.8*a,children:["+",e.length-2]}):Nt(t,{size:a})},`icon-${o}-${n}`))})},Ws=Mo.map(({id:e})=>e),Vs=({monitors:e=Ws,withTooltips:t,withLabels:i,size:n=12,color:o})=>{const r=Lt(),a=o||r.text.grey;return Nt(ia,{$gap:i?n:n/2,children:e.map(e=>{const o=Zt(e.toLowerCase()),r=Cn(e);return r?Nt(Fa,{text:t?o:"",children:_t(ia,{$gap:n/3,children:[Nt(r,{size:i?n+2:n,fill:a}),i&&Nt(go,{size:n,color:a,children:o})]})},e):null})})},qs=Bt.div`
|
|
754
754
|
visibility: hidden;
|
|
755
|
-
`,Hs=
|
|
755
|
+
`,Hs=Bt.div`
|
|
756
756
|
display: flex;
|
|
757
757
|
flex-direction: column;
|
|
758
758
|
align-self: stretch;
|
|
@@ -771,55 +771,55 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
773
|
`:`\n &:hover {\n ${qs} {\n visibility: visible;\n }\n }\n `}
|
|
774
|
-
`,Gs=
|
|
774
|
+
`,Gs=Bt.div`
|
|
775
775
|
display: flex;
|
|
776
776
|
align-items: center;
|
|
777
777
|
gap: 8px;
|
|
778
778
|
margin-left: auto;
|
|
779
|
-
`,Ks=
|
|
779
|
+
`,Ks=Bt(go)`
|
|
780
780
|
margin-right: 16px;
|
|
781
|
-
`,Ys=
|
|
781
|
+
`,Ys=Bt(go)`
|
|
782
782
|
font-size: 10px;
|
|
783
783
|
color: ${({theme:e})=>e.text.grey};
|
|
784
|
-
`,Js=({title:e,subTitle:t,hoverText:i,onClick:n,renderActions:o,iconProps:{icon:r,icons:a,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,bgColor:p,bgColorHover:u,monitors:h,monitorsWithLabels:m,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:$,isCheckboxDisabled:x,isChecked:f,isLoading:b,onCheckboxChange:y}={},extendableProps:{withExtend:w,isExtended:v,renderExtended:k}={},...C})=>{const S=Lt(),[E,A]=yt(v||!1),[D,T]=yt(0),F=vt(null),z=vt(null),I=vt(null);return wt(()=>{if(F.current){const e=F.current.clientWidth,t=z.current?.clientWidth||0;T(e-(($?125:85)+t))}},[$]),_t(Hs,{ref:F,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!n,onClick:n,...C,children:[_t(ia,{$gap:8,children:[_t(ia,{$gap:16,children:[b?Nt($s,{}):$?Nt(es,{value:f,onChange:y,disabled:x}):null,a?.length||l?.length?Nt(Us,{icons:a,iconSrcs:l,status:c,id:`${e}-${t}`}):r||s?Nt(Ls,{icon:r,src:s,status:c}):null]}),_t(na,{$gap:4,children:[e&&Nt(
|
|
784
|
+
`,Js=({title:e,subTitle:t,hoverText:i,onClick:n,renderActions:o,iconProps:{icon:r,icons:a,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,bgColor:p,bgColorHover:u,monitors:h,monitorsWithLabels:m,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:$,isCheckboxDisabled:x,isChecked:f,isLoading:b,onCheckboxChange:y}={},extendableProps:{withExtend:w,isExtended:v,renderExtended:k}={},...C})=>{const S=Lt(),[E,A]=yt(v||!1),[D,T]=yt(0),F=vt(null),z=vt(null),I=vt(null);return wt(()=>{if(F.current){const e=F.current.clientWidth,t=z.current?.clientWidth||0;T(e-(($?125:85)+t))}},[$]),_t(Hs,{ref:F,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!n,onClick:n,...C,children:[_t(ia,{$gap:8,children:[_t(ia,{$gap:16,children:[b?Nt($s,{}):$?Nt(es,{value:f,onChange:y,disabled:x}):null,a?.length||l?.length?Nt(Us,{icons:a,iconSrcs:l,status:c,id:`${e}-${t}`}):r||s?Nt(Ls,{icon:r,src:s,status:c}):null]}),_t(na,{$gap:4,children:[e&&Nt(Rs,{maxWidth:D,text:e,textSize:14}),_t(ia,{$gap:4,children:[t&&Nt(Rs,{maxWidth:D-(I.current?.clientWidth||0),text:t,textSize:10,textColor:S.text.grey}),h&&h.length>0&&_t(ia,{$gap:4,ref:I,children:[t&&Nt(Ys,{children:"•"}),Nt(Vs,{monitors:h,withLabels:m,size:10})]})]}),g&&g.length>0?Nt(ia,{$gap:4,children:g?.map((e,t)=>Nt(ft,{children:e},`componentsUnderTitles-${t}`))}):null]}),_t(Gs,{ref:z,children:[!!i&&Nt(qs,{children:Nt(Ks,{size:14,family:"secondary",children:i})}),o&&o(),w&&_t(ft,{children:[Nt(va,{orientation:"vertical",length:"16px",margin:"0 2px"}),Nt(Oa,{onClick:()=>A(e=>!e),children:Nt(fs,{extend:E})})]})]})]}),E&&k&&_t(na,{children:[Nt(va,{margin:"16px 0"}),k()]})]})},Xs=Bt(ia)`
|
|
785
785
|
width: 100%;
|
|
786
786
|
justify-content: space-between;
|
|
787
|
-
`,Zs=
|
|
787
|
+
`,Zs=Bt(go)`
|
|
788
788
|
font-size: 12px;
|
|
789
789
|
color: ${({theme:e})=>e.text.grey};
|
|
790
|
-
`,Qs=
|
|
790
|
+
`,Qs=Bt(go)`
|
|
791
791
|
font-size: 10px;
|
|
792
792
|
color: ${({theme:e})=>e.text.darker_grey};
|
|
793
|
-
`,el=
|
|
793
|
+
`,el=Bt.div`
|
|
794
794
|
display: flex;
|
|
795
795
|
align-items: center;
|
|
796
796
|
gap: 8px;
|
|
797
797
|
margin-left: auto;
|
|
798
|
-
`,tl=
|
|
798
|
+
`,tl=Bt(go)`
|
|
799
799
|
font-size: 12px;
|
|
800
800
|
text-align: right;
|
|
801
|
-
`,il=({title:e,subTitle:t,tooltip:i,value:n})=>_t(Xs,{children:[Nt(na,{$gap:4,children:_t(Fa,{text:i||"",children:[e&&Nt(Zs,{children:e},"title"),t&&Nt(Qs,{children:t},"subtitle")]})}),Nt(el,{children:n?.status?Nt(Ts,{status:"transitioning"===n.status?Ai.Loading:n.status,title:n.text||n.status,withBorder:!0,withIcon:!0}):Nt(tl,{children:n?.text||"-"})})]}),nl=
|
|
801
|
+
`,il=({title:e,subTitle:t,tooltip:i,value:n})=>_t(Xs,{children:[Nt(na,{$gap:4,children:_t(Fa,{text:i||"",children:[e&&Nt(Zs,{children:e},"title"),t&&Nt(Qs,{children:t},"subtitle")]})}),Nt(el,{children:n?.status?Nt(Ts,{status:"transitioning"===n.status?Ai.Loading:n.status,title:n.text||n.status,withBorder:!0,withIcon:!0}):Nt(tl,{children:n?.text||"-"})})]}),nl=Bt(na)`
|
|
802
802
|
width: 100%;
|
|
803
|
-
`,ol=({containerName:e,actualDevices:t,started:i,ready:n,instrumentationInstances:o})=>{const r=bt(()=>{const e=[];return i?.name&&e.push(Nt(Ts,{status:jn(i.value)?Xn(i.value)?Si.Success:Si.Error:Si.Default,title:i.name,withIcon:!0,withBorder:!0,size:8},"started")),n?.name&&e.push(Nt(Ts,{status:jn(n.value)?Xn(n.value)?Si.Success:Si.Error:Si.Default,title:n.name,withIcon:!0,withBorder:!0,size:8},"ready")),e},[i?.name,i?.value,n?.name,n?.value]);return Nt(Js,{title:e.value,subTitle:o.length?`${o.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:r},renderActions:()=>Nt(Ts,{status:Si.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!o.length,renderExtended:()=>Nt(nl,{$gap:24,children:o.map((e,t)=>_t(nl,{$gap:8,children:[Nt(il,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===Si.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>Nt(il,{title:e,subTitle:"",value:{text:t,status:void 0}},`describe-${e}-${t}`))]},`process-${t}`))})}})},rl=({title:e="Data not found",subTitle:t})=>{const i=Lt().v2.colors.grey[400];return _t(oa,{children:[_t(ia,{$gap:8,children:[Nt(it,{fill:i}),Nt(so,{size:ro.XS,color:i,align:"center",children:e})]}),t&&Nt(so,{size:ro.XXS,color:i,align:"center",children:t})]})},al=
|
|
803
|
+
`,ol=({containerName:e,actualDevices:t,started:i,ready:n,instrumentationInstances:o})=>{const r=bt(()=>{const e=[];return i?.name&&e.push(Nt(Ts,{status:jn(i.value)?Xn(i.value)?Si.Success:Si.Error:Si.Default,title:i.name,withIcon:!0,withBorder:!0,size:8},"started")),n?.name&&e.push(Nt(Ts,{status:jn(n.value)?Xn(n.value)?Si.Success:Si.Error:Si.Default,title:n.name,withIcon:!0,withBorder:!0,size:8},"ready")),e},[i?.name,i?.value,n?.name,n?.value]);return Nt(Js,{title:e.value,subTitle:o.length?`${o.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:r},renderActions:()=>Nt(Ts,{status:Si.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!o.length,renderExtended:()=>Nt(nl,{$gap:24,children:o.map((e,t)=>_t(nl,{$gap:8,children:[Nt(il,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===Si.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>Nt(il,{title:e,subTitle:"",value:{text:t,status:void 0}},`describe-${e}-${t}`))]},`process-${t}`))})}})},rl=({title:e="Data not found",subTitle:t})=>{const i=Lt().v2.colors.grey[400];return _t(oa,{children:[_t(ia,{$gap:8,children:[Nt(it,{fill:i}),Nt(so,{size:ro.XS,color:i,align:"center",children:e})]}),t&&Nt(so,{size:ro.XXS,color:i,align:"center",children:t})]})},al=Bt(na)`
|
|
804
804
|
max-width: 300px;
|
|
805
805
|
padding: 12px;
|
|
806
806
|
border-radius: 12px;
|
|
807
807
|
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
808
808
|
justify-content: center;
|
|
809
|
-
`,sl=St(({id:e,data:t})=>{const{title:i,subTitle:n}=t;return Nt(al,{"data-id":e,children:Nt(rl,{title:i,subTitle:n})})});sl.displayName=sl.name;const ll=
|
|
809
|
+
`,sl=St(({id:e,data:t})=>{const{title:i,subTitle:n}=t;return Nt(al,{"data-id":e,children:Nt(rl,{title:i,subTitle:n})})});sl.displayName=sl.name;const ll=Bt.div`
|
|
810
810
|
padding: 6px;
|
|
811
811
|
border-radius: 12px;
|
|
812
812
|
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
813
813
|
cursor: pointer;
|
|
814
|
-
`,cl=
|
|
814
|
+
`,cl=Bt.div`
|
|
815
815
|
position: relative;
|
|
816
|
-
`,dl=
|
|
816
|
+
`,dl=Bt(ia)`
|
|
817
817
|
position: absolute;
|
|
818
818
|
bottom: -24px;
|
|
819
819
|
left: 50%;
|
|
820
820
|
transform: translateX(-50%);
|
|
821
821
|
gap: 4px;
|
|
822
|
-
`,pl=
|
|
822
|
+
`,pl=Bt.div`
|
|
823
823
|
position: absolute;
|
|
824
824
|
bottom: 100%;
|
|
825
825
|
left: 100%;
|
|
@@ -828,12 +828,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
828
828
|
border-radius: 16px;
|
|
829
829
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
830
830
|
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
831
|
-
`,ul=({title:e,value:t})=>{const i=Lt();return _t(ia,{$justifyContent:"space-between",children:[Nt(go,{size:12,color:i.text.info,children:e}),Nt(go,{size:12,family:"secondary",children:t})]})},hl=St(({id:e,data:t})=>{const{id:i,status:n,title:o,icons:r,serviceMapEntry:a}=t,{activeNodeType:s,activeNodeId:l}=No(),c=Lt(),d=n===Si.Error?zn(n,c):null;return _t(
|
|
831
|
+
`,ul=({title:e,value:t})=>{const i=Lt();return _t(ia,{$justifyContent:"space-between",children:[Nt(go,{size:12,color:i.text.info,children:e}),Nt(go,{size:12,family:"secondary",children:t})]})},hl=St(({id:e,data:t})=>{const{id:i,status:n,title:o,icons:r,serviceMapEntry:a}=t,{activeNodeType:s,activeNodeId:l}=No(),c=Lt(),d=n===Si.Error?zn(n,c):null;return _t(Rt,{children:[Nt(Ut,{type:"source",position:Wt.Bottom,style:{visibility:"hidden"}}),Nt(Ut,{type:"target",position:Wt.Top,style:{visibility:"hidden"}}),_t(cl,{"data-id":e,children:[Nt(ll,{children:Nt(Us,{id:i,icons:r,status:n})}),_t(dl,{children:[d&&Nt(d,{}),Nt(Rs,{maxWidth:100,text:o})]}),s===Fi.MapItem&&l===e&&_t(pl,{children:[_t(ia,{$gap:12,children:[Nt(Us,{id:i,icons:r,status:n}),Nt(go,{size:20,children:o})]}),a&&a.services.length>0?a.services.map(({serviceName:e,requests:t,dateTime:n})=>_t("div",{children:[Nt(va,{}),Nt(ul,{title:"Connected Service",value:e}),Nt(ul,{title:"Outgoing Requests",value:t}),Nt(ul,{title:"Last Requested At",value:new Date(n).toLocaleString()})]},`from-${i}-to-${e}`)):_t(Rt,{children:[Nt(va,{}),Nt(rl,{title:"No outgoing connections",subTitle:" "})]})]})]})]})});hl.displayName=hl.name;const ml=Bt.div`
|
|
832
832
|
height: calc(100vh - 160px);
|
|
833
833
|
.react-flow__attribution {
|
|
834
834
|
visibility: hidden;
|
|
835
835
|
}
|
|
836
|
-
`,gl=
|
|
836
|
+
`,gl=Bt.div`
|
|
837
837
|
button {
|
|
838
838
|
padding: 8px;
|
|
839
839
|
margin: 8px;
|
|
@@ -847,13 +847,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
847
847
|
background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
|
-
`,$l={[Fi.MapItem]:hl,[Fi.NoData]:sl},xl=({nodes:e,edges:t,onNodesChange:i,onEdgesChange:n,fitView:o=!1,zoomOnScroll:r=!1})=>{const{onClickNode:a}=Fr(),{setActiveNodeType:s,setActiveNodeId:l}=No();return Nt(ml,{children:Nt(Vt,{fitView:o,zoomOnScroll:r,nodes:e,nodeTypes:$l,edges:t,onNodeClick:a,onNodesChange:e=>{setTimeout(()=>i(e),0)},onEdgesChange:e=>{setTimeout(()=>n(e),0)},onBlur:()=>{s(null),l(null)},onlyRenderVisibleElements:!0,children:Nt(gl,{children:Nt(qt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:{duration:300,padding:.02,includeHiddenNodes:!0}})})})})},fl=At({platformType:xi.K8s,tier:$i.Community,version:"v0.0.0"}),bl=({children:e,platformType:t,tier:i,version:n})=>{const o=bt(()=>({platformType:t,tier:i,version:n}),[t,i,n]);return Nt(fl.Provider,{value:o,children:e})},yl=(e,t)=>!t||no(e)>=no(t),wl=e=>{const t=Et(fl),i=yl(t.version,e),n=t.platformType===xi.Vm;return{...t,isVersionSupported:i,isVm:n}},vl=At({formType:void 0}),kl=({children:e,formType:t})=>{const i=bt(()=>({formType:t}),[t]);return Nt(vl.Provider,{value:i,children:e})},Cl=()=>Et(vl),Sl=
|
|
850
|
+
`,$l={[Fi.MapItem]:hl,[Fi.NoData]:sl},xl=({nodes:e,edges:t,onNodesChange:i,onEdgesChange:n,fitView:o=!1,zoomOnScroll:r=!1})=>{const{onClickNode:a}=Fr(),{setActiveNodeType:s,setActiveNodeId:l}=No();return Nt(ml,{children:Nt(Vt,{fitView:o,zoomOnScroll:r,nodes:e,nodeTypes:$l,edges:t,onNodeClick:a,onNodesChange:e=>{setTimeout(()=>i(e),0)},onEdgesChange:e=>{setTimeout(()=>n(e),0)},onBlur:()=>{s(null),l(null)},onlyRenderVisibleElements:!0,children:Nt(gl,{children:Nt(qt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:{duration:300,padding:.02,includeHiddenNodes:!0}})})})})},fl=At({platformType:xi.K8s,tier:$i.Community,version:"v0.0.0"}),bl=({children:e,platformType:t,tier:i,version:n})=>{const o=bt(()=>({platformType:t,tier:i,version:n}),[t,i,n]);return Nt(fl.Provider,{value:o,children:e})},yl=(e,t)=>!t||no(e)>=no(t),wl=e=>{const t=Et(fl),i=yl(t.version,e),n=t.platformType===xi.Vm;return{...t,isVersionSupported:i,isVm:n}},vl=At({formType:void 0}),kl=({children:e,formType:t})=>{const i=bt(()=>({formType:t}),[t]);return Nt(vl.Provider,{value:i,children:e})},Cl=()=>Et(vl),Sl=Bt.div`
|
|
851
851
|
display: flex;
|
|
852
852
|
|
|
853
853
|
align-items: center;
|
|
854
854
|
gap: 6px;
|
|
855
855
|
margin-bottom: 4px;
|
|
856
|
-
`,El=
|
|
856
|
+
`,El=Bt(go)`
|
|
857
857
|
font-size: 14px;
|
|
858
858
|
opacity: 0.8;
|
|
859
859
|
line-height: 22px;
|
|
@@ -861,16 +861,16 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
861
861
|
white-space: nowrap;
|
|
862
862
|
text-overflow: ellipsis;
|
|
863
863
|
color: ${({$status:e,theme:t})=>e?t.text[e]:t.text.secondary};
|
|
864
|
-
`,Al=
|
|
864
|
+
`,Al=Bt(go)`
|
|
865
865
|
font-size: 12px;
|
|
866
866
|
color: ${({theme:e})=>e.text.darker_grey};
|
|
867
867
|
opacity: 0.8;
|
|
868
|
-
`,Dl=({title:e,required:t,tooltip:i,style:n,status:o})=>e?Nt(Sl,{style:n,children:_t(Fa,{text:i,withIcon:!0,children:[Nt(El,{$status:o,children:e}),!t&&Nt(Al,{children:"(optional)"})]})}):null,Tl=
|
|
868
|
+
`,Dl=({title:e,required:t,tooltip:i,style:n,status:o})=>e?Nt(Sl,{style:n,children:_t(Fa,{text:i,withIcon:!0,children:[Nt(El,{$status:o,children:e}),!t&&Nt(Al,{children:"(optional)"})]})}):null,Tl=Bt.div`
|
|
869
869
|
display: flex;
|
|
870
870
|
flex-direction: column;
|
|
871
871
|
position: relative;
|
|
872
872
|
width: 100%;
|
|
873
|
-
`,Fl=
|
|
873
|
+
`,Fl=Bt.div`
|
|
874
874
|
width: 100%;
|
|
875
875
|
display: flex;
|
|
876
876
|
align-items: center;
|
|
@@ -896,7 +896,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
896
896
|
&:focus-within {
|
|
897
897
|
border-color: ${({theme:e})=>e.colors.secondary};
|
|
898
898
|
}
|
|
899
|
-
`,zl=
|
|
899
|
+
`,zl=Bt.input`
|
|
900
900
|
padding-left: ${({$hasIcon:e})=>e?"0":"16px"};
|
|
901
901
|
flex: 1;
|
|
902
902
|
min-width: 150px;
|
|
@@ -925,13 +925,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
925
925
|
-webkit-appearance: none;
|
|
926
926
|
margin: 0;
|
|
927
927
|
}
|
|
928
|
-
`,Il=
|
|
928
|
+
`,Il=Bt.div`
|
|
929
929
|
display: flex;
|
|
930
930
|
align-items: center;
|
|
931
931
|
margin-left: 12px;
|
|
932
|
-
`,Ol=
|
|
932
|
+
`,Ol=Bt(Il)`
|
|
933
933
|
cursor: pointer;
|
|
934
|
-
`,Nl=
|
|
934
|
+
`,Nl=Bt.button`
|
|
935
935
|
background-color: ${({theme:e})=>e.colors.primary};
|
|
936
936
|
border: none;
|
|
937
937
|
color: ${({theme:e})=>e.text.secondary};
|
|
@@ -946,15 +946,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
946
946
|
background-color: ${({theme:e})=>e.colors.border};
|
|
947
947
|
cursor: not-allowed;
|
|
948
948
|
}
|
|
949
|
-
`,_l=({icon:e,buttonLabel:t,onButtonClick:i,hasError:n,errorMessage:o,title:r,tooltip:a,required:s,value:l,onChange:c,type:d=Ci.Text,name:p,status:u,...h})=>{const m=Lt(),g=d===Ci.Password,[$,x]=yt(!1);return _t(Tl,{children:[Nt(Dl,{title:r,required:s,tooltip:a,status:u}),_t(Fl,{$disabled:h.disabled,$hasError:n||!!o,$isActive:!!h.autoFocus,$status:u,children:[g?Nt(Ol,{onClick:()=>x(e=>!e),children:Nt($?nt:ot,{size:14,fill:m.text.grey})}):e?Nt(Il,{children:Nt(e,{size:14,fill:m.text.grey})}):null,Nt(zl,{"data-id":p,type:$||d===Ci.Number?Ci.Text:d,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),d===Ci.Number&&(e.target.value=Jn(e.target.value)),c?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...h}),t&&i&&Nt(Nl,{onClick:i,disabled:h.disabled,children:t})]}),!!o&&Nt(fo,{children:o})]})},
|
|
949
|
+
`,_l=({icon:e,buttonLabel:t,onButtonClick:i,hasError:n,errorMessage:o,title:r,tooltip:a,required:s,value:l,onChange:c,type:d=Ci.Text,name:p,status:u,...h})=>{const m=Lt(),g=d===Ci.Password,[$,x]=yt(!1);return _t(Tl,{children:[Nt(Dl,{title:r,required:s,tooltip:a,status:u}),_t(Fl,{$disabled:h.disabled,$hasError:n||!!o,$isActive:!!h.autoFocus,$status:u,children:[g?Nt(Ol,{onClick:()=>x(e=>!e),children:Nt($?nt:ot,{size:14,fill:m.text.grey})}):e?Nt(Il,{children:Nt(e,{size:14,fill:m.text.grey})}):null,Nt(zl,{"data-id":p,type:$||d===Ci.Number?Ci.Text:d,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),d===Ci.Number&&(e.target.value=Jn(e.target.value)),c?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...h}),t&&i&&Nt(Nl,{onClick:i,disabled:h.disabled,children:t})]}),!!o&&Nt(fo,{children:o})]})},Rl=Bt.div`
|
|
950
950
|
display: flex;
|
|
951
951
|
flex-direction: column;
|
|
952
952
|
min-width: 120px;
|
|
953
953
|
width: 100%;
|
|
954
954
|
opacity: ${({$disabled:e})=>e?.5:1};
|
|
955
|
-
`,
|
|
955
|
+
`,Bl=Bt.div`
|
|
956
956
|
position: relative;
|
|
957
|
-
`,Ml=
|
|
957
|
+
`,Ml=Bt.div`
|
|
958
958
|
display: flex;
|
|
959
959
|
align-items: center;
|
|
960
960
|
justify-content: space-between;
|
|
@@ -980,14 +980,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
980
980
|
&:hover {
|
|
981
981
|
border-color: ${({$isMulti:e,$hasSelections:t,$disabled:i,theme:n})=>i?"auto":e&&t?n.colors.border:n.colors.secondary};
|
|
982
982
|
}
|
|
983
|
-
`,Ll=
|
|
983
|
+
`,Ll=Bt.div`
|
|
984
984
|
display: flex;
|
|
985
985
|
align-items: center;
|
|
986
986
|
gap: 4px;
|
|
987
|
-
`,Pl=({options:e,value:t,onSelect:i,onDeselect:n,title:o,tooltip:r,placeholder:a,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:h})=>{const[m,g]=yt(!1),[$,x]=yt(!1),f=vt(null);Vr(f,()=>g(!1));const b=()=>{(()=>{if(f.current){const e=f.current.getBoundingClientRect().bottom+300>window.innerHeight;x(e)}})(),g(e=>!e)},y=Array.isArray(t)?t.length:0;return _t(
|
|
987
|
+
`,Pl=({options:e,value:t,onSelect:i,onDeselect:n,title:o,tooltip:r,placeholder:a,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:h})=>{const[m,g]=yt(!1),[$,x]=yt(!1),f=vt(null);Vr(f,()=>g(!1));const b=()=>{(()=>{if(f.current){const e=f.current.getBoundingClientRect().bottom+300>window.innerHeight;x(e)}})(),g(e=>!e)},y=Array.isArray(t)?t.length:0;return _t(Rl,{$disabled:s,children:[Nt(Dl,{title:o,required:d,tooltip:r,status:h}),_t(Bl,{ref:f,children:[_t(Ml,{$isOpen:m,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:h,$disabled:s,onClick:()=>!s&&b(),children:[Nt(Vl,{value:t,placeholder:a,onDeselect:n}),_t(Ll,{children:[l&&Nt(wr,{label:y,filled:!!y}),Nt(fs,{extend:m})]})]}),m&&Nt(Gl,{openUpwards:$,options:e,value:t,onSelect:e=>{i?.(e),l||b()},onDeselect:e=>{n?.(e),l||b()},isMulti:l,showSearch:c})]}),!!p&&Nt(fo,{children:p})]})},jl=Bt(Ll)`
|
|
988
988
|
max-width: calc(100% - 50px);
|
|
989
989
|
overflow-x: auto;
|
|
990
|
-
`,Ul=
|
|
990
|
+
`,Ul=Bt(go)`
|
|
991
991
|
display: flex;
|
|
992
992
|
align-items: center;
|
|
993
993
|
gap: 2px;
|
|
@@ -1002,7 +1002,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1002
1002
|
transition: transform 0.3s;
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
|
-
`,Wl=
|
|
1005
|
+
`,Wl=Bt(go)``,Vl=({value:e,placeholder:t,onDeselect:i})=>{const n=Lt();return Array.isArray(e)?e.length?Nt(jl,{children:e.map(e=>_t(Ul,{size:14,children:[e.value,Nt(va,{orientation:"vertical",length:"10px",margin:"0 4px"}),Nt(Ye,{size:12,onClick:t=>{t.stopPropagation(),i?.(e)}})]},`multi-label-${e.id}`))}):Nt(Wl,{size:14,color:n.text.darker_grey,children:t}):Nt(Wl,{size:14,color:e?.value?void 0:n.text.darker_grey,children:e?.value||t})},ql=Bt.div`
|
|
1006
1006
|
position: absolute;
|
|
1007
1007
|
${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
|
|
1008
1008
|
left: 0;
|
|
@@ -1017,11 +1017,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1017
1017
|
background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1018
1018
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1019
1019
|
border-radius: 24px;
|
|
1020
|
-
`,Hl=
|
|
1020
|
+
`,Hl=Bt.div`
|
|
1021
1021
|
display: flex;
|
|
1022
1022
|
flex-direction: column;
|
|
1023
1023
|
align-items: center;
|
|
1024
|
-
`,Gl=({openUpwards:e,options:t,value:i,onSelect:n,onDeselect:o,isMulti:r,showSearch:a})=>{const[s,l]=yt(""),c=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return _t(ql,{$openUpwards:e,children:[a&&_t(Hl,{children:[Nt(_l,{placeholder:"Search...",icon:rt,value:s,onChange:e=>l(e.target.value)}),Nt(va,{thickness:1,margin:"8px 0 0 0"})]}),0===c.length?Nt(rl,{subTitle:a&&s?void 0:" "}):c.map((e,t)=>Nt(Yl,{option:e,value:i,isMulti:r,onSelect:n,onDeselect:o},`dropdown-option-${e.id||t}`))]})},Kl=
|
|
1024
|
+
`,Gl=({openUpwards:e,options:t,value:i,onSelect:n,onDeselect:o,isMulti:r,showSearch:a})=>{const[s,l]=yt(""),c=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return _t(ql,{$openUpwards:e,children:[a&&_t(Hl,{children:[Nt(_l,{placeholder:"Search...",icon:rt,value:s,onChange:e=>l(e.target.value)}),Nt(va,{thickness:1,margin:"8px 0 0 0"})]}),0===c.length?Nt(rl,{subTitle:a&&s?void 0:" "}):c.map((e,t)=>Nt(Yl,{option:e,value:i,isMulti:r,onSelect:n,onDeselect:o},`dropdown-option-${e.id||t}`))]})},Kl=Bt.div`
|
|
1025
1025
|
padding: 8px 12px;
|
|
1026
1026
|
cursor: pointer;
|
|
1027
1027
|
display: flex;
|
|
@@ -1032,21 +1032,21 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1032
1032
|
&.selected {
|
|
1033
1033
|
background: ${({theme:e})=>e.colors.majestic_blue+ur["024"]};
|
|
1034
1034
|
}
|
|
1035
|
-
`,Yl=({option:e,value:t,isMulti:i,onSelect:n,onDeselect:o})=>{const r=Lt(),a=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?n?.(e):o?.(e);return i?Nt(Kl,{className:a?"selected":"",onClick:()=>s(!a),children:Nt(es,{title:e.value||"",titleColor:r.text.secondary,value:a,onChange:s,style:{width:"100%"}})}):_t(Kl,{className:a?"selected":"",onClick:()=>a?o?.(e):n?.(e),children:[_t(ia,{$gap:8,children:[e.icon&&Nt(e.icon,{}),Nt(go,{size:14,children:e.value})]}),a&&Nt(Ge,{})]})},Jl=
|
|
1035
|
+
`,Yl=({option:e,value:t,isMulti:i,onSelect:n,onDeselect:o})=>{const r=Lt(),a=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?n?.(e):o?.(e);return i?Nt(Kl,{className:a?"selected":"",onClick:()=>s(!a),children:Nt(es,{title:e.value||"",titleColor:r.text.secondary,value:a,onChange:s,style:{width:"100%"}})}):_t(Kl,{className:a?"selected":"",onClick:()=>a?o?.(e):n?.(e),children:[_t(ia,{$gap:8,children:[e.icon&&Nt(e.icon,{}),Nt(go,{size:14,children:e.value})]}),a&&Nt(Ge,{})]})},Jl=Bt(na)`
|
|
1036
1036
|
gap: 12px;
|
|
1037
|
-
`,Xl=
|
|
1037
|
+
`,Xl=Bt(ia)`
|
|
1038
1038
|
width: 100%;
|
|
1039
1039
|
gap: 12px;
|
|
1040
1040
|
align-items: flex-end;
|
|
1041
|
-
`,Zl=({clientX:e=0,flipX:t,clientY:i=0,flipY:n,isOpen:o,onClose:r,onSave:a,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const h=Lt(),{popupRef:m,popupPosition:g,handlePosition:$}=qr({onClickOutside:r});return Wr({key:"Enter",active:o},a),wt(()=>$(e,i),[e,i]),0===g.top&&0!==i||0===g.left&&0!==e?null:Nt(Aa,{ref:m,isOpen:o,top:n?void 0:g.top,bottom:n?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px",children:_t(Jl,{children:[Nt(Fa,{text:d,withIcon:!0,children:Nt(go,{size:14,children:c})}),_t(Xl,{children:[u,_t(ia,{$gap:6,children:[Nt(Oa,{withBorder:!0,onClick:r,tooltip:"Cancel",children:Nt(Ye,{})}),Nt(Oa,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:a,tooltip:"Save",children:Nt(Ge,{fill:h.text.primary})}),s&&Nt(Oa,{onClick:l,tooltip:"Undo",children:Nt(at,{})})]})]}),p&&Nt(Ua,{type:Si.Warning,message:p})]})})},Ql=
|
|
1041
|
+
`,Zl=({clientX:e=0,flipX:t,clientY:i=0,flipY:n,isOpen:o,onClose:r,onSave:a,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const h=Lt(),{popupRef:m,popupPosition:g,handlePosition:$}=qr({onClickOutside:r});return Wr({key:"Enter",active:o},a),wt(()=>$(e,i),[e,i]),0===g.top&&0!==i||0===g.left&&0!==e?null:Nt(Aa,{ref:m,isOpen:o,top:n?void 0:g.top,bottom:n?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px",children:_t(Jl,{children:[Nt(Fa,{text:d,withIcon:!0,children:Nt(go,{size:14,children:c})}),_t(Xl,{children:[u,_t(ia,{$gap:6,children:[Nt(Oa,{withBorder:!0,onClick:r,tooltip:"Cancel",children:Nt(Ye,{})}),Nt(Oa,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:a,tooltip:"Save",children:Nt(Ge,{fill:h.text.primary})}),s&&Nt(Oa,{onClick:l,tooltip:"Undo",children:Nt(at,{})})]})]}),p&&Nt(Ua,{type:Si.Warning,message:p})]})})},Ql=Bt.div`
|
|
1042
1042
|
position: relative;
|
|
1043
|
-
`,ec=({defaultLanguage:e=bi.Unknown,defaultVersion:t="",defaultOtelDistroName:i=null,handleSave:n})=>{const{tier:o}=wl(),{addNotification:r}=Xo(),{formData:a,handleFormChange:s,resetFormData:l}=Er({language:e,version:t,otelDistroName:i}),[c,d]=yt(!1),p=()=>{d(!1),l()},u=bt(()=>{if(!a.language)return[];const e=jo[a.language].community,t=o===$i.Onprem?jo[a.language].enterprise:[];return e.concat(t)},[a.language,o]);return _t(Ql,{children:[Nt(Oa,{tooltip:on.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{d(!0)},children:Nt(tt,{})}),Nt(Zl,{flipX:!0,clientX:36,isOpen:c,onClose:p,onSave:async()=>{!a.version||Vn(a.version)?(await n({...a}),p()):r({type:Si.Warning,message:nn.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await n({language:null,version:"",otelDistroName:null}),p()},title:on.OVERRIDE_RUNTIME_DETAILS,warning:on.OVERRIDE_RUNTIME_WARNING,children:_t(na,{$gap:12,children:[_t(ia,{$gap:12,children:[Nt(Pl,{title:on.LANGUAGE,options:Po,value:Po.find(e=>e.id===a.language),onSelect:e=>{s("language",e.id),s("version",""),s("otelDistroName",null)},required:!0}),Nt(_l,{title:on.RUNTIME_VERSION,placeholder:on.VERSION_PLACEHOLDER,value:a.version,onChange:e=>s("version",e.target.value),required:!1})]}),a.language&&Nt(Pl,{title:"Otel Distro Name",options:u,value:u.find(e=>e.id===a.otelDistroName),onSelect:e=>s("otelDistroName",e.id),required:!1})]})})]})},tc=
|
|
1043
|
+
`,ec=({defaultLanguage:e=bi.Unknown,defaultVersion:t="",defaultOtelDistroName:i=null,handleSave:n})=>{const{tier:o}=wl(),{addNotification:r}=Xo(),{formData:a,handleFormChange:s,resetFormData:l}=Er({language:e,version:t,otelDistroName:i}),[c,d]=yt(!1),p=()=>{d(!1),l()},u=bt(()=>{if(!a.language)return[];const e=jo[a.language].community,t=o===$i.Onprem?jo[a.language].enterprise:[];return e.concat(t)},[a.language,o]);return _t(Ql,{children:[Nt(Oa,{tooltip:on.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{d(!0)},children:Nt(tt,{})}),Nt(Zl,{flipX:!0,clientX:36,isOpen:c,onClose:p,onSave:async()=>{!a.version||Vn(a.version)?(await n({...a}),p()):r({type:Si.Warning,message:nn.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await n({language:null,version:"",otelDistroName:null}),p()},title:on.OVERRIDE_RUNTIME_DETAILS,warning:on.OVERRIDE_RUNTIME_WARNING,children:_t(na,{$gap:12,children:[_t(ia,{$gap:12,children:[Nt(Pl,{title:on.LANGUAGE,options:Po,value:Po.find(e=>e.id===a.language),onSelect:e=>{s("language",e.id),s("version",""),s("otelDistroName",null)},required:!0}),Nt(_l,{title:on.RUNTIME_VERSION,placeholder:on.VERSION_PLACEHOLDER,value:a.version,onChange:e=>s("version",e.target.value),required:!1})]}),a.language&&Nt(Pl,{title:"Otel Distro Name",options:u,value:u.find(e=>e.id===a.otelDistroName),onSelect:e=>s("otelDistroName",e.id),required:!1})]})})]})},tc=Bt(ia)`
|
|
1044
1044
|
width: 100%;
|
|
1045
1045
|
justify-content: center;
|
|
1046
|
-
`,ic=({containerName:e,language:t,runtimeVersion:i,overriden:n,instrumented:o,instrumentationMessage:r,otelDistroName:a,callbackRuntimeOverride:s})=>{const l=Lt(),c=o?Si.Success:r?Si.Info:Si.Warning,d=o?Ei.INSTRUMENTED:r?Ei.NOT_INSTRUMENTED:Ei.INSTRUMENTING;return Nt(Js,{title:e,subTitle:`${t?Lo[t]:"no runtime info"}`+(i?` • Runtime Version: ${i}`:""),iconProps:{icon:mn(t)},extendableProps:{isExtended:!!r,renderExtended:()=>Nt(tc,{children:Nt(go,{size:12,family:"secondary",color:l.text.info,children:qn(r)})})},renderActions:()=>_t(
|
|
1046
|
+
`,ic=({containerName:e,language:t,runtimeVersion:i,overriden:n,instrumented:o,instrumentationMessage:r,otelDistroName:a,callbackRuntimeOverride:s})=>{const l=Lt(),c=o?Si.Success:r?Si.Info:Si.Warning,d=o?Ei.INSTRUMENTED:r?Ei.NOT_INSTRUMENTED:Ei.INSTRUMENTING;return Nt(Js,{title:e,subTitle:`${t?Lo[t]:"no runtime info"}`+(i?` • Runtime Version: ${i}`:""),iconProps:{icon:mn(t)},extendableProps:{isExtended:!!r,renderExtended:()=>Nt(tc,{children:Nt(go,{size:12,family:"secondary",color:l.text.info,children:qn(r)})})},renderActions:()=>_t(Rt,{children:[Nt(Ts,{status:c,title:d,subtitle:a||void 0,withIcon:!0,withBorder:!0}),n&&Nt(Ts,{status:Si.Default,forceIcon:st,title:on.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&Nt(ec,{defaultLanguage:t,defaultVersion:i,defaultOtelDistroName:a,handleSave:t=>s({...t,containerName:e})})]})})},nc=Bt.tr`
|
|
1047
1047
|
cursor: ${({$withHover:e})=>e?"pointer":"default"};
|
|
1048
1048
|
opacity: ${({$faded:e})=>e?.5:1};
|
|
1049
|
-
`,oc=
|
|
1049
|
+
`,oc=Bt.td`
|
|
1050
1050
|
position: relative;
|
|
1051
1051
|
width: fit-content;
|
|
1052
1052
|
padding: 16px 8px 16px ${({$isFirst:e})=>e?"16px":"8px"};
|
|
@@ -1054,7 +1054,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1054
1054
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1055
1055
|
font-size: 14px;
|
|
1056
1056
|
white-space: nowrap;
|
|
1057
|
-
`,rc=
|
|
1057
|
+
`,rc=Bt(go)`
|
|
1058
1058
|
font-size: 14px;
|
|
1059
1059
|
color: ${({$color:e,theme:t})=>e??t.text.secondary};
|
|
1060
1060
|
line-height: 16px;
|
|
@@ -1067,7 +1067,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1067
1067
|
display: -webkit-box;
|
|
1068
1068
|
-webkit-line-clamp: 2;
|
|
1069
1069
|
-webkit-box-orient: vertical;
|
|
1070
|
-
`,ac=
|
|
1070
|
+
`,ac=Bt.div`
|
|
1071
1071
|
position: absolute;
|
|
1072
1072
|
top: 0;
|
|
1073
1073
|
left: 0;
|
|
@@ -1076,56 +1076,56 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1076
1076
|
height: ${({$height:e})=>e}px;
|
|
1077
1077
|
border-radius: 16px;
|
|
1078
1078
|
background-color: ${({theme:e,$hovered:t,$status:i})=>t?i?e.text[i]+ur["020"]:e.colors.majestic_blue+ur["030"]:i?e.text[i]+ur["010"]:e.colors.secondary+ur["005"]};
|
|
1079
|
-
`,sc=({index:e,columns:t,cells:i,onClick:n,status:o,faded:r})=>{const{containerRef:a,containerHeight:s,containerWidth:l}=Ir(),[c,d]=yt(!1);return Nt(nc,{ref:a,onMouseEnter:()=>!!n&&d(!0),onMouseLeave:()=>!!n&&d(!1),onClick:()=>!!n&&n(),$withHover:!!n,$faded:r,children:t.map(({key:t},n)=>{const r=i.find(({columnKey:e})=>e===t);if(!r)return null;const{value:a,textColor:d,withTooltip:p,icon:u,component:h}=r;return _t(oc,{$isFirst:0===n,children:[u?Nt(Ls,{icon:u}):h?Nt(h,{}):Nt(Fa,{text:p&&a?String(a):"",children:Nt(rc,{$color:d,children:Mn(a)?"-":a})}),0===n&&Nt(ac,{$height:s,$width:l,$top:s*e,$hovered:c,$status:o})]},`table-row-${t}-${a}-${e}-${n}`)})})},lc=
|
|
1079
|
+
`,sc=({index:e,columns:t,cells:i,onClick:n,status:o,faded:r})=>{const{containerRef:a,containerHeight:s,containerWidth:l}=Ir(),[c,d]=yt(!1);return Nt(nc,{ref:a,onMouseEnter:()=>!!n&&d(!0),onMouseLeave:()=>!!n&&d(!1),onClick:()=>!!n&&n(),$withHover:!!n,$faded:r,children:t.map(({key:t},n)=>{const r=i.find(({columnKey:e})=>e===t);if(!r)return null;const{value:a,textColor:d,withTooltip:p,icon:u,component:h}=r;return _t(oc,{$isFirst:0===n,children:[u?Nt(Ls,{icon:u}):h?Nt(h,{}):Nt(Fa,{text:p&&a?String(a):"",children:Nt(rc,{$color:d,children:Mn(a)?"-":a})}),0===n&&Nt(ac,{$height:s,$width:l,$top:s*e,$hovered:c,$status:o})]},`table-row-${t}-${a}-${e}-${n}`)})})},lc=Bt.div`
|
|
1080
1080
|
width: 100%;
|
|
1081
|
-
`,cc=
|
|
1081
|
+
`,cc=Bt.table`
|
|
1082
1082
|
position: relative;
|
|
1083
1083
|
z-index: 0;
|
|
1084
1084
|
width: 100%;
|
|
1085
1085
|
border-collapse: separate;
|
|
1086
1086
|
border-spacing: 0 12px;
|
|
1087
|
-
`,dc=
|
|
1087
|
+
`,dc=Bt.thead`
|
|
1088
1088
|
// only supported with "border-collapse: collapse;"
|
|
1089
1089
|
// border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1090
1090
|
// border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1091
|
-
`,pc=
|
|
1091
|
+
`,pc=Bt.th`
|
|
1092
1092
|
// only required with "border-collapse: separate;"
|
|
1093
1093
|
border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1094
1094
|
border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1095
1095
|
|
|
1096
1096
|
padding: 8px;
|
|
1097
|
-
`,uc=
|
|
1097
|
+
`,uc=Bt(ia)`
|
|
1098
1098
|
cursor: pointer;
|
|
1099
1099
|
&:hover {
|
|
1100
1100
|
* {
|
|
1101
1101
|
color: ${({theme:e})=>e.text.secondary};
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
|
-
`,hc=
|
|
1104
|
+
`,hc=Bt(go)`
|
|
1105
1105
|
color: ${({theme:e})=>e.text.darker_grey};
|
|
1106
1106
|
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
1107
1107
|
text-transform: uppercase;
|
|
1108
1108
|
font-size: 12px;
|
|
1109
1109
|
font-weight: 500;
|
|
1110
1110
|
text-wrap: nowrap;
|
|
1111
|
-
`,mc=
|
|
1111
|
+
`,mc=Bt.tbody``,gc=({columns:e,rows:t})=>{const[i,n]=yt(gi.Ascending),[o,r]=yt("name"),a=kt(e=>{o===e?n(e=>e===gi.Ascending?gi.Descending:gi.Ascending):(r(e),n(gi.Ascending))},[o]),s=bt(()=>{const n=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(o?[...t].sort((e,t)=>{const r=n(e,o),a=n(t,o);return(i===gi.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(r,a)}):t).map(({status:t,faded:i,cells:n,onClick:o},r)=>Nt(sc,{index:r,columns:e,cells:n,onClick:o,status:t,faded:i},`row-${r}`))},[e,t,o,i]);return Nt(lc,{children:_t(cc,{children:[Nt(dc,{children:Nt("tr",{children:e.map(({key:e,title:t,sortable:i})=>Nt(pc,{children:i?_t(uc,{onClick:()=>a(e),children:[Nt(lt,{}),Nt(hc,{children:t})]}):Nt(hc,{children:t})},`column-${e}`))})}),Nt(mc,{children:s})]})})};var $c;!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"}($c||($c={}));const xc=Bt.div`
|
|
1112
1112
|
display: flex;
|
|
1113
1113
|
flex-wrap: wrap;
|
|
1114
1114
|
gap: 16px 32px;
|
|
1115
1115
|
width: 100%;
|
|
1116
|
-
`,fc=
|
|
1116
|
+
`,fc=Bt.div`
|
|
1117
1117
|
display: flex;
|
|
1118
1118
|
flex-direction: column;
|
|
1119
1119
|
gap: 2px;
|
|
1120
1120
|
width: ${({$width:e})=>e};
|
|
1121
|
-
`,bc=
|
|
1121
|
+
`,bc=Bt(go)`
|
|
1122
1122
|
color: ${({theme:e})=>e.text.grey};
|
|
1123
1123
|
font-size: 10px;
|
|
1124
1124
|
line-height: 16px;
|
|
1125
|
-
`,yc=
|
|
1125
|
+
`,yc=Bt(go)`
|
|
1126
1126
|
font-size: 12px;
|
|
1127
1127
|
white-space: pre-wrap;
|
|
1128
|
-
`,wc=({data:e})=>Nt(xc,{children:e?.map(({type:e,title:t,titleIcon:i,tooltip:n,value:o},r)=>_t(fc,{$width:e&&[$c.Code,$c.Table].includes(e)?"inherit":e&&[$c.Loader,$c.Divider,$c.CopyText].includes(e)?"100%":"unset",children:[Nt(Fa,{text:n,withIcon:!0,children:_t(ia,{$alignItems:"center",$gap:4,children:[i&&Nt(i,{size:14}),!!t&&Nt(bc,{transform:"capitalize",children:t})]})}),Nt(vc,{type:e,value:o})]},`data-field-${t||(o?JSON.stringify(o):r)}`))}),vc=({type:e,value:t})=>{const i=Lt();switch(e){case $c.Divider:return Nt(va,{length:"100%",margin:"0"});case $c.Loader:return Nt(oa,{children:Nt($s,{scale:1.2})});case $c.Monitors:return Nt(Vs,{monitors:t?.split(", ")||[],withLabels:!0,color:i.colors.secondary});case $c.Badge:{const{label:e,filled:i,...n}=_n(t,{label:"-",filled:!1});return Nt(wr,{label:e,filled:i,...n})}case $c.Code:{const{language:e,code:i,...n}=_n(t,{language:"",code:""});return Nt(ds,{language:e,code:i,...n})}case $c.Table:{const{columns:e,rows:i,...n}=_n(t,{columns:[],rows:[{status:void 0,cells:[]}]});return Nt(gc,{columns:e,rows:i,...n})}case $c.ActiveStatus:return Nt(Ts,{status:"true"==t?Si.Success:Si.Error,title:"true"==t?on.ENABLED:on.DISABLED,size:10,withIcon:!0,withBorder:!0});case $c.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return Nt(Is,{value:e})}default:return Nt(yc,{children:Zn("string"==typeof t?t||"-":"")})}},kc=
|
|
1128
|
+
`,wc=({data:e})=>Nt(xc,{children:e?.map(({type:e,title:t,titleIcon:i,tooltip:n,value:o},r)=>_t(fc,{$width:e&&[$c.Code,$c.Table].includes(e)?"inherit":e&&[$c.Loader,$c.Divider,$c.CopyText].includes(e)?"100%":"unset",children:[Nt(Fa,{text:n,withIcon:!0,children:_t(ia,{$alignItems:"center",$gap:4,children:[i&&Nt(i,{size:14}),!!t&&Nt(bc,{transform:"capitalize",children:t})]})}),Nt(vc,{type:e,value:o})]},`data-field-${t||(o?JSON.stringify(o):r)}`))}),vc=({type:e,value:t})=>{const i=Lt();switch(e){case $c.Divider:return Nt(va,{length:"100%",margin:"0"});case $c.Loader:return Nt(oa,{children:Nt($s,{scale:1.2})});case $c.Monitors:return Nt(Vs,{monitors:t?.split(", ")||[],withLabels:!0,color:i.colors.secondary});case $c.Badge:{const{label:e,filled:i,...n}=_n(t,{label:"-",filled:!1});return Nt(wr,{label:e,filled:i,...n})}case $c.Code:{const{language:e,code:i,...n}=_n(t,{language:"",code:""});return Nt(ds,{language:e,code:i,...n})}case $c.Table:{const{columns:e,rows:i,...n}=_n(t,{columns:[],rows:[{status:void 0,cells:[]}]});return Nt(gc,{columns:e,rows:i,...n})}case $c.ActiveStatus:return Nt(Ts,{status:"true"==t?Si.Success:Si.Error,title:"true"==t?on.ENABLED:on.DISABLED,size:10,withIcon:!0,withBorder:!0});case $c.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return Nt(Is,{value:e})}default:return Nt(yc,{children:Zn("string"==typeof t?t||"-":"")})}},kc=Bt.div`
|
|
1129
1129
|
display: flex;
|
|
1130
1130
|
flex-direction: column;
|
|
1131
1131
|
align-items: flex-start;
|
|
@@ -1136,27 +1136,27 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1136
1136
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1137
1137
|
background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+ur["010"]:"transparent"};
|
|
1138
1138
|
transition: background-color 0.3s;
|
|
1139
|
-
`,Cc=
|
|
1139
|
+
`,Cc=Bt.div`
|
|
1140
1140
|
width: 100%;
|
|
1141
1141
|
display: flex;
|
|
1142
1142
|
flex-direction: column;
|
|
1143
1143
|
gap: 4px;
|
|
1144
1144
|
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
1145
|
-
`,Sc=
|
|
1145
|
+
`,Sc=Bt(go)`
|
|
1146
1146
|
width: 100%;
|
|
1147
1147
|
display: flex;
|
|
1148
1148
|
align-items: center;
|
|
1149
1149
|
gap: 8px;
|
|
1150
1150
|
font-size: 16px;
|
|
1151
|
-
`,Ec=
|
|
1151
|
+
`,Ec=Bt(go)`
|
|
1152
1152
|
font-size: 12px;
|
|
1153
1153
|
color: ${({theme:e})=>e.text.grey};
|
|
1154
|
-
`,Ac=
|
|
1154
|
+
`,Ac=Bt(ia)`
|
|
1155
1155
|
margin-left: auto;
|
|
1156
1156
|
gap: 8px;
|
|
1157
|
-
`,Dc=({title:e="Details",titleBadge:t,titleIcon:i,description:n,action:o,withExtend:r,initialExtended:a=!1,data:s,children:l})=>{const[c,d]=yt(a),[p,u]=yt(!1);return _t(kc,{$hovered:p,children:[e||i||n||o?_t(Cc,{$clickable:r||!1,onClick:()=>r&&d(e=>!e),onMouseEnter:()=>r&&u(!0),onMouseLeave:()=>r&&u(!1),children:[_t(ia,{children:[_t(ia,{$alignItems:"center",$gap:8,children:[i&&Nt(ia,{$alignItems:"center",children:Nt(i,{size:20})}),!!e&&Nt(Sc,{transform:"capitalize",children:e}),t===Ai.Loading?Nt($s,{}):void 0!==t&&Nt(wr,{label:t})]}),(!!o||r)&&_t(Ac,{children:["function"==typeof o?Nt(o,{hovered:p}):o,r&&Nt(fs,{extend:c})]})]}),!!n&&Nt(Ec,{children:n})]}):null,(!r||r&&c)&&(l||Nt(wc,{data:s}))]})},Tc=
|
|
1157
|
+
`,Dc=({title:e="Details",titleBadge:t,titleIcon:i,description:n,action:o,withExtend:r,initialExtended:a=!1,data:s,children:l})=>{const[c,d]=yt(a),[p,u]=yt(!1);return _t(kc,{$hovered:p,children:[e||i||n||o?_t(Cc,{$clickable:r||!1,onClick:()=>r&&d(e=>!e),onMouseEnter:()=>r&&u(!0),onMouseLeave:()=>r&&u(!1),children:[_t(ia,{children:[_t(ia,{$alignItems:"center",$gap:8,children:[i&&Nt(ia,{$alignItems:"center",children:Nt(i,{size:20})}),!!e&&Nt(Sc,{transform:"capitalize",children:e}),t===Ai.Loading?Nt($s,{}):void 0!==t&&Nt(wr,{label:t})]}),(!!o||r)&&_t(Ac,{children:["function"==typeof o?Nt(o,{hovered:p}):o,r&&Nt(fs,{extend:c})]})]}),!!n&&Nt(Ec,{children:n})]}):null,(!r||r&&c)&&(l||Nt(wc,{data:s}))]})},Tc=Bt.div`
|
|
1158
1158
|
visibility: hidden;
|
|
1159
|
-
`,Fc=
|
|
1159
|
+
`,Fc=Bt(ia)`
|
|
1160
1160
|
align-self: stretch;
|
|
1161
1161
|
width: calc(100% - 32px);
|
|
1162
1162
|
padding: 16px;
|
|
@@ -1171,53 +1171,53 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
1173
|
`:`\n &:hover {\n ${Tc} {\n visibility: visible;\n }\n }\n `}
|
|
1174
|
-
`,zc=
|
|
1174
|
+
`,zc=Bt(ia)`
|
|
1175
1175
|
margin-left: auto;
|
|
1176
1176
|
gap: 8px;
|
|
1177
|
-
`,Ic=
|
|
1177
|
+
`,Ic=Bt(go)`
|
|
1178
1178
|
font-size: 10px;
|
|
1179
1179
|
color: ${({theme:e})=>e.text.grey};
|
|
1180
|
-
`,Oc=({title:e,subTitle:t,icons:i,iconSrcs:n,onClick:o,renderActions:r})=>{const a=Lt(),[s,l]=yt(0),c=vt(null),d=vt(null);return wt(()=>{if(c.current){const e=c.current.clientWidth,t=d.current?.clientWidth||0;l(e-(85+t))}},[]),_t(Fc,{ref:c,$gap:8,$withClick:!!o,onClick:o,children:[Nt(Us,{id:`${e}-${t}`,icons:i,iconSrcs:n}),e&&Nt(
|
|
1180
|
+
`,Oc=({title:e,subTitle:t,icons:i,iconSrcs:n,onClick:o,renderActions:r})=>{const a=Lt(),[s,l]=yt(0),c=vt(null),d=vt(null);return wt(()=>{if(c.current){const e=c.current.clientWidth,t=d.current?.clientWidth||0;l(e-(85+t))}},[]),_t(Fc,{ref:c,$gap:8,$withClick:!!o,onClick:o,children:[Nt(Us,{id:`${e}-${t}`,icons:i,iconSrcs:n}),e&&Nt(Rs,{maxWidth:s/2,text:e,textSize:14}),e&&t&&Nt(Ic,{children:"•"}),t&&Nt(Rs,{maxWidth:s/2,text:t,textSize:10,textColor:a.text.grey}),Nt(zc,{ref:d,children:r&&_t(Rt,{children:[Nt(va,{orientation:"vertical",length:"24px",margin:"0"}),r()]})})]})},Nc=({isOpen:e,noOverlay:t,name:i,type:n,isLastItem:o,onApprove:r,onDeny:a})=>{const s=n===wi.Source?"uninstrument":"delete";return Nt(Ja,{isOpen:e,noOverlay:t,title:`${s.charAt(0).toUpperCase()+s.substring(1)}${i?` ${i}`:""}`,description:`Are you sure you want to ${s}?`,note:o?{type:Si.Warning,title:`You're about to ${s} the last ${n||i}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:r},denyButton:{text:"Go Back",onClick:a}})},_c=Bt(Sr)`
|
|
1181
1181
|
display: flex;
|
|
1182
1182
|
align-items: center;
|
|
1183
1183
|
justify-content: center;
|
|
1184
1184
|
font-size: 14px;
|
|
1185
1185
|
gap: 6px;
|
|
1186
1186
|
min-width: 100px;
|
|
1187
|
-
`,
|
|
1187
|
+
`,Rc=({endpoint:e="/",variant:t="secondary"})=>_t(_c,{variant:t,onClick:()=>window.open(`https://docs.odigos.io${e}`,"_blank","noopener noreferrer"),children:[Nt(ct,{size:18}),"Docs"]}),Bc=Bt(ia)`
|
|
1188
1188
|
border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
|
|
1189
|
-
`,Mc=
|
|
1189
|
+
`,Mc=Bt.div`
|
|
1190
1190
|
display: flex;
|
|
1191
1191
|
align-items: center;
|
|
1192
1192
|
border-bottom: 2px solid ${({theme:e,$selected:t})=>t?e.colors.majestic_blue:"transparent"};
|
|
1193
1193
|
cursor: pointer;
|
|
1194
|
-
`,Lc=
|
|
1194
|
+
`,Lc=Bt(go)`
|
|
1195
1195
|
padding: 12px;
|
|
1196
1196
|
font-size: 14px;
|
|
1197
1197
|
color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
|
|
1198
|
-
`,Pc=({tabs:e,hideBorder:t=!1})=>e?.length?Nt(
|
|
1198
|
+
`,Pc=({tabs:e,hideBorder:t=!1})=>e?.length?Nt(Bc,{$hideBorder:t,children:e.map(({label:e,icon:t,onClick:i,selected:n})=>_t(Mc,{onClick:i,$selected:n,children:[Nt(Lc,{$selected:n,children:e}),t&&Nt(t,{})]},`tab-${e}`))}):null,jc=Bt.section`
|
|
1199
1199
|
padding: 0px 32px;
|
|
1200
1200
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
1201
|
-
`,Uc=
|
|
1201
|
+
`,Uc=Bt.div`
|
|
1202
1202
|
height: 76px;
|
|
1203
1203
|
display: flex;
|
|
1204
1204
|
justify-content: space-between;
|
|
1205
1205
|
flex-shrink: 0;
|
|
1206
1206
|
align-self: stretch;
|
|
1207
|
-
`,Wc=
|
|
1207
|
+
`,Wc=Bt.div`
|
|
1208
1208
|
display: flex;
|
|
1209
1209
|
align-items: center;
|
|
1210
1210
|
gap: ${({$gap:e})=>e||16}px;
|
|
1211
|
-
`,Vc=
|
|
1211
|
+
`,Vc=Bt(go)`
|
|
1212
1212
|
font-size: 18px;
|
|
1213
1213
|
line-height: 26px;
|
|
1214
1214
|
max-width: ${({$maxWidth:e})=>e};
|
|
1215
1215
|
overflow: hidden;
|
|
1216
1216
|
white-space: nowrap;
|
|
1217
1217
|
text-overflow: ellipsis;
|
|
1218
|
-
`,qc=
|
|
1218
|
+
`,qc=Bt(Sr)`
|
|
1219
1219
|
gap: 8px;
|
|
1220
|
-
`,Hc=
|
|
1220
|
+
`,Hc=Bt(Sr)``,Gc=({onClose:e,width:t,icons:i,iconSrcs:n,title:o,titleTooltip:r,replaceTitleWith:a,actions:s,actionButtons:l=[],tabs:c})=>_t(jc,{children:[_t(Uc,{children:[_t(Wc,{children:[i?.length||n?.length?Nt(Us,{icons:i,iconSrcs:n,id:`drawer-header-${o}`}):null,("function"==typeof a?Nt(a,{}):a||null)||Nt(Fa,{text:r||o,withIcon:!!r,children:o&&Nt(Vc,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`,children:o})})]}),_t(Wc,{$gap:2,children:[s,l.map((e,t)=>Nt(qc,{...e},`header-action-button-${t}`)),Nt(Hc,{"data-id":"drawer-close",variant:"secondary",onClick:e,children:Nt(Ye,{size:12})})]})]}),Nt(Pc,{tabs:c,hideBorder:!0})]}),Kc=Bt.div`
|
|
1221
1221
|
display: flex;
|
|
1222
1222
|
justify-content: space-between;
|
|
1223
1223
|
gap: 8px;
|
|
@@ -1226,16 +1226,16 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1226
1226
|
background-color: ${({theme:e})=>e.colors.translucent_bg};
|
|
1227
1227
|
transform: translateY(100%);
|
|
1228
1228
|
animation-name: ${mr.in.bottom};
|
|
1229
|
-
`,Yc=
|
|
1229
|
+
`,Yc=Bt(ia)`
|
|
1230
1230
|
margin-right: auto;
|
|
1231
|
-
`,Jc=
|
|
1231
|
+
`,Jc=Bt(ia)`
|
|
1232
1232
|
margin: 0 auto;
|
|
1233
|
-
`,Xc=
|
|
1233
|
+
`,Xc=Bt(ia)`
|
|
1234
1234
|
margin-left: auto;
|
|
1235
|
-
`,Zc=
|
|
1235
|
+
`,Zc=Bt(Sr)`
|
|
1236
1236
|
min-width: 140px;
|
|
1237
1237
|
font-size: 14px;
|
|
1238
|
-
`,Qc=({isOpen:e,leftButtons:t=[],centerButtons:i=[],rightButtons:n=[]})=>e?_t(Kc,{children:[Nt(Yc,{children:t.map((e,t)=>Nt(Zc,{...e},`footer-left-button-${t}`))}),Nt(Jc,{children:i.map((e,t)=>Nt(Zc,{...e},`footer-center-button-${t}`))}),Nt(Xc,{children:n.map((e,t)=>Nt(Zc,{...e},`footer-right-button-${t}`))})]}):null,ed=
|
|
1238
|
+
`,Qc=({isOpen:e,leftButtons:t=[],centerButtons:i=[],rightButtons:n=[]})=>e?_t(Kc,{children:[Nt(Yc,{children:t.map((e,t)=>Nt(Zc,{...e},`footer-left-button-${t}`))}),Nt(Jc,{children:i.map((e,t)=>Nt(Zc,{...e},`footer-center-button-${t}`))}),Nt(Xc,{children:n.map((e,t)=>Nt(Zc,{...e},`footer-right-button-${t}`))})]}):null,ed=Bt.div`
|
|
1239
1239
|
position: fixed;
|
|
1240
1240
|
top: 0;
|
|
1241
1241
|
bottom: 0;
|
|
@@ -1246,36 +1246,36 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1246
1246
|
box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+ur["010"]};
|
|
1247
1247
|
overflow-y: auto;
|
|
1248
1248
|
animation-name: ${({$position:e})=>mr.in[e]};
|
|
1249
|
-
`,td=
|
|
1249
|
+
`,td=Bt.div`
|
|
1250
1250
|
display: flex;
|
|
1251
1251
|
flex-direction: column;
|
|
1252
1252
|
height: 100%;
|
|
1253
|
-
`,id=
|
|
1253
|
+
`,id=Bt.div`
|
|
1254
1254
|
flex-grow: 1;
|
|
1255
1255
|
padding: 24px 32px;
|
|
1256
1256
|
overflow-y: auto;
|
|
1257
|
-
`,nd=({isOpen:e,onClose:t,closeOnEscape:i=!0,position:n="right",width:o="300px",children:r,header:a,footer:s})=>(Wr({key:"Escape",active:e&&i},()=>t()),Tr(e),e?Ht.createPortal(_t(
|
|
1257
|
+
`,nd=({isOpen:e,onClose:t,closeOnEscape:i=!0,position:n="right",width:o="300px",children:r,header:a,footer:s})=>(Wr({key:"Escape",active:e&&i},()=>t()),Tr(e),e?Ht.createPortal(_t(Rt,{children:[Nt(aa,{hidden:!e,onClick:t}),Nt(ed,{"data-id":"drawer",$position:n,$width:o,children:_t(td,{children:[Nt(Gc,{onClose:t,width:o,...a}),Nt(id,{children:r}),Nt(Qc,{...s})]})})]}),document.body):null),od=({error:e})=>{const t=Lt(),i={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:t.text.error,fontFamily:t.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:t.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:t.text.secondary,fontSize:"14px"}};return _t("div",{style:i.container,children:[Nt("h2",{children:"Something went wrong!"}),Nt("pre",{style:i.errorMessage,children:e?.message||"Unknown Error"}),_t("details",{style:i.errorStackWrapper,children:[Nt("summary",{children:"Stack Trace"}),Nt("pre",{style:i.errorStack,children:e?.stack||"Unknown Stack"})]}),Nt("p",{style:i.infoText,children:"Try refreshing the page or contact support"}),Nt(Sr,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},rd=({children:e})=>Nt(Jt,{FallbackComponent:({error:e,...t})=>Nt(pr,{children:Nt(od,{...t,error:e})}),children:e}),ad=Bt(ia)`
|
|
1258
1258
|
position: relative;
|
|
1259
1259
|
width: calc(100% - 24px);
|
|
1260
1260
|
padding: 12px;
|
|
1261
1261
|
background-color: ${({theme:e})=>e.colors.dark_grey};
|
|
1262
1262
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border+ur["050"]};
|
|
1263
|
-
`,sd=
|
|
1263
|
+
`,sd=Bt(ia)`
|
|
1264
1264
|
margin-right: auto;
|
|
1265
1265
|
margin-left: 32px;
|
|
1266
1266
|
gap: 12px;
|
|
1267
|
-
`,ld=
|
|
1267
|
+
`,ld=Bt(ia)`
|
|
1268
1268
|
margin-left: auto;
|
|
1269
1269
|
margin-right: 32px;
|
|
1270
1270
|
gap: 12px;
|
|
1271
|
-
`,cd=
|
|
1271
|
+
`,cd=Bt(ia)`
|
|
1272
1272
|
position: absolute;
|
|
1273
1273
|
left: 50%;
|
|
1274
1274
|
transform: translateX(-50%);
|
|
1275
1275
|
gap: 12px;
|
|
1276
|
-
`,dd=({left:e=[],center:t=[],right:i=[]})=>_t(ad,{children:[Nt(sd,{children:e.map((e,t)=>e&&Nt(ft,{children:e},t))}),Nt(cd,{children:t.map((e,t)=>e&&Nt(ft,{children:e},t))}),Nt(ld,{children:i.map((e,t)=>e&&Nt(ft,{children:e},t))})]}),pd=
|
|
1276
|
+
`,dd=({left:e=[],center:t=[],right:i=[]})=>_t(ad,{children:[Nt(sd,{children:e.map((e,t)=>e&&Nt(ft,{children:e},t))}),Nt(cd,{children:t.map((e,t)=>e&&Nt(ft,{children:e},t))}),Nt(ld,{children:i.map((e,t)=>e&&Nt(ft,{children:e},t))})]}),pd=Bt(go)`
|
|
1277
1277
|
color: ${({theme:e})=>e.text.grey};
|
|
1278
|
-
`,ud=({icon:e,title:t,badge:i,badgeTooltip:n,loading:o})=>_t(ia,{$gap:6,children:[e&&Nt(e,{}),Nt(pd,{size:14,children:t}),void 0!==i&&Nt(Fa,{text:n,children:Nt(wr,{label:i})}),o&&Nt($s,{})]}),hd=
|
|
1278
|
+
`,ud=({icon:e,title:t,badge:i,badgeTooltip:n,loading:o})=>_t(ia,{$gap:6,children:[e&&Nt(e,{}),Nt(pd,{size:14,children:t}),void 0!==i&&Nt(Fa,{text:n,children:Nt(wr,{label:i})}),o&&Nt($s,{})]}),hd=Bt.div`
|
|
1279
1279
|
width: fit-content;
|
|
1280
1280
|
height: fit-content;
|
|
1281
1281
|
padding: 4px;
|
|
@@ -1287,7 +1287,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1287
1287
|
flex-direction: ${({$orientation:e,$flip:t})=>("horizontal"===e?"row":"column")+(t?"-reverse":"")};
|
|
1288
1288
|
align-items: center;
|
|
1289
1289
|
justify-content: center;
|
|
1290
|
-
`,md=
|
|
1290
|
+
`,md=Bt.div`
|
|
1291
1291
|
width: 32px;
|
|
1292
1292
|
height: 32px;
|
|
1293
1293
|
|
|
@@ -1300,47 +1300,47 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1300
1300
|
justify-content: center;
|
|
1301
1301
|
|
|
1302
1302
|
cursor: pointer;
|
|
1303
|
-
`,gd=({orientation:e="vertical",flip:t,mainIcons:i,subIcons:n})=>_t(hd,{$orientation:e,$flip:t,children:[i.map(({icon:e,selected:t,onClick:i,tooltip:n},o)=>Nt(Fa,{text:n,children:Nt(md,{$selected:t,onClick:i,children:Nt(e,{size:20})})},`main-nav-icon-${o}`)),!!i.length&&!!n.length&&Nt(va,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),n.map(({icon:e,selected:t,onClick:i,tooltip:n},o)=>Nt(Fa,{text:n,children:Nt(md,{$selected:t,onClick:i,children:Nt(e,{size:20})})},`sub-nav-icon-${o}`))]}),$d=
|
|
1303
|
+
`,gd=({orientation:e="vertical",flip:t,mainIcons:i,subIcons:n})=>_t(hd,{$orientation:e,$flip:t,children:[i.map(({icon:e,selected:t,onClick:i,tooltip:n},o)=>Nt(Fa,{text:n,children:Nt(md,{$selected:t,onClick:i,children:Nt(e,{size:20})})},`main-nav-icon-${o}`)),!!i.length&&!!n.length&&Nt(va,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),n.map(({icon:e,selected:t,onClick:i,tooltip:n},o)=>Nt(Fa,{text:n,children:Nt(md,{$selected:t,onClick:i,children:Nt(e,{size:20})})},`sub-nav-icon-${o}`))]}),$d=Bt.div`
|
|
1304
1304
|
display: flex;
|
|
1305
1305
|
flex-direction: column;
|
|
1306
1306
|
width: 100%;
|
|
1307
|
-
`,xd=
|
|
1307
|
+
`,xd=Bt.div`
|
|
1308
1308
|
display: flex;
|
|
1309
1309
|
flex-direction: column;
|
|
1310
1310
|
gap: 8px;
|
|
1311
|
-
`,fd=
|
|
1311
|
+
`,fd=Bt.div`
|
|
1312
1312
|
display: flex;
|
|
1313
1313
|
align-items: center;
|
|
1314
1314
|
gap: 16px;
|
|
1315
|
-
`,bd=
|
|
1315
|
+
`,bd=Bt(Oa)`
|
|
1316
1316
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1317
1317
|
opacity: ${({$disabled:e})=>e?.5:1};
|
|
1318
|
-
`,yd=({initialValues:e=[],value:t,onChange:i,title:n,tooltip:o,required:r,errorMessage:a})=>{const[s,l]=yt(t||e);wt(()=>{s.length||l([""])},[]);const c=s.filter(e=>!!e.trim()),d=vt(JSON.stringify(c));wt(()=>{const e=JSON.stringify(c);d.current!==e&&(d.current=e,i&&i(c))},[c]);const p=(e,t)=>{l(i=>{const n=[...i];return n[t]=e,n})},u=s.length<=1,h=s.some(e=>""===e.trim()),m=u&&h;return _t($d,{children:[Nt(Dl,{title:n,required:r,tooltip:o}),Nt(xd,{children:s.map((e,t)=>{const i=t===s.length-1;return _t(fd,{children:[Nt(_l,{value:e,onChange:e=>p(e.target.value,t),hasError:!!a,autoFocus:Mn(e)&&!u&&i}),t===s.length-1&&Nt(bd,{withBorder:!0,size:30,$disabled:h,onClick:h?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})},children:Nt(et,{})}),Nt(bd,{size:30,$disabled:m,onClick:m?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,i)=>i!==e))})(t),children:Nt(at,{})})]},`input-list-${t}`)})}),!!a&&Nt(fo,{children:a})]})},wd=({col:e,colIdx:t,row:i,rowIdx:n,rowsLength:o,maxWidth:r,handleChange:a,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:c,title:d,tooltip:p,placeholder:u,required:h,type:m,componentType:g,options:$,renderCondition:x}=e,f=i[c];return x&&!x(i)?null:Nt("td",{style:{maxWidth:r,padding:"4px 6px 4px 0"},children:(()=>{switch(g){case ki.Dropdown:const e=$?.find(e=>e.id===f);return Nt(Pl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:$||[],value:e,onSelect:e=>a(c,e.id,n),onDeselect:()=>a(c,"",n),hasError:!!s&&(!h||h&&Mn(f))});case"multi-dropdown":const i=Array.isArray(f)&&$?.filter(e=>f.includes(e.id))||[];return Nt(Pl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:$||[],value:i,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(f)?f:[],e.id];a(c,t,n)},onDeselect:e=>{const t=(Array.isArray(f)?f:[]).filter(t=>t!==e.id);a(c,t,n)},hasError:!!s&&(!h||h&&Mn(f))});default:const g=o>1&&n===o-1&&0===t&&Mn(f);return Nt(_l,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,type:m,required:h,autoFocus:g,value:f,onChange:({target:{value:e}})=>a(c,e,n),style:{maxWidth:r,paddingLeft:10},hasError:!!s&&(!h||h&&Mn(f))})}})()},`input-table-${n}-${c}`)},vd=
|
|
1318
|
+
`,yd=({initialValues:e=[],value:t,onChange:i,title:n,tooltip:o,required:r,errorMessage:a})=>{const[s,l]=yt(t||e);wt(()=>{s.length||l([""])},[]);const c=s.filter(e=>!!e.trim()),d=vt(JSON.stringify(c));wt(()=>{const e=JSON.stringify(c);d.current!==e&&(d.current=e,i&&i(c))},[c]);const p=(e,t)=>{l(i=>{const n=[...i];return n[t]=e,n})},u=s.length<=1,h=s.some(e=>""===e.trim()),m=u&&h;return _t($d,{children:[Nt(Dl,{title:n,required:r,tooltip:o}),Nt(xd,{children:s.map((e,t)=>{const i=t===s.length-1;return _t(fd,{children:[Nt(_l,{value:e,onChange:e=>p(e.target.value,t),hasError:!!a,autoFocus:Mn(e)&&!u&&i}),t===s.length-1&&Nt(bd,{withBorder:!0,size:30,$disabled:h,onClick:h?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})},children:Nt(et,{})}),Nt(bd,{size:30,$disabled:m,onClick:m?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,i)=>i!==e))})(t),children:Nt(at,{})})]},`input-list-${t}`)})}),!!a&&Nt(fo,{children:a})]})},wd=({col:e,colIdx:t,row:i,rowIdx:n,rowsLength:o,maxWidth:r,handleChange:a,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:c,title:d,tooltip:p,placeholder:u,required:h,type:m,componentType:g,options:$,renderCondition:x}=e,f=i[c];return x&&!x(i)?null:Nt("td",{style:{maxWidth:r,padding:"4px 6px 4px 0"},children:(()=>{switch(g){case ki.Dropdown:const e=$?.find(e=>e.id===f);return Nt(Pl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:$||[],value:e,onSelect:e=>a(c,e.id,n),onDeselect:()=>a(c,"",n),hasError:!!s&&(!h||h&&Mn(f))});case"multi-dropdown":const i=Array.isArray(f)&&$?.filter(e=>f.includes(e.id))||[];return Nt(Pl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:$||[],value:i,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(f)?f:[],e.id];a(c,t,n)},onDeselect:e=>{const t=(Array.isArray(f)?f:[]).filter(t=>t!==e.id);a(c,t,n)},hasError:!!s&&(!h||h&&Mn(f))});default:const g=o>1&&n===o-1&&0===t&&Mn(f);return Nt(_l,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,type:m,required:h,autoFocus:g,value:f,onChange:({target:{value:e}})=>a(c,e,n),style:{maxWidth:r,paddingLeft:10},hasError:!!s&&(!h||h&&Mn(f))})}})()},`input-table-${n}-${c}`)},vd=Bt.div`
|
|
1319
1319
|
display: flex;
|
|
1320
1320
|
flex-direction: column;
|
|
1321
1321
|
width: 100%;
|
|
1322
|
-
`,kd=
|
|
1322
|
+
`,kd=Bt.button`
|
|
1323
1323
|
margin-top: ${({$marginTop:e})=>e};
|
|
1324
1324
|
background: none;
|
|
1325
1325
|
border: none;
|
|
1326
1326
|
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
1327
1327
|
opacity: ${({disabled:e})=>e?.5:1};
|
|
1328
|
-
`,Cd=({columns:e,initialValues:t=[],value:i,onChange:n,errorMessage:o,limitFieldsPerRow:r,title:a=""})=>{const[s,l]=yt({}),[c,d]=yt(i||t),p=bt(()=>new Map(e.map(e=>[e.keyName,e])),[e]);wt(()=>{if(!c.length){const t={};e.forEach(({keyName:e})=>t[e]=""),l(t),d([t])}},[]);const u=c.filter(e=>{for(const[t,i]of Object.entries(e)){const n=p.get(t);if((!n?.renderCondition||n.renderCondition(e))&&n?.required&&Mn(i))return!1}return!0}),h=vt(JSON.stringify(u)),m=u.length!==c.length,g=`${Math.floor(640/((r||e.length)+.4))}px`;wt(()=>{const e=JSON.stringify(u);h.current!==e&&(h.current=e,n&&n(u))},[u]);const $=(e,t,i)=>{d(n=>{const o=ii(n);return o[i][e]=t,o})},x=bt(()=>{if(r){const t=[];for(let i=0;;i+=r){const n=e.slice(i,i+r);if(!n.length)break;t.push(n)}return t}return[e]},[r,e]);return _t(vd,{children:[Nt(Dl,{title:a}),_t("table",{style:{borderCollapse:"collapse"},children:[!r&&Nt("thead",{children:_t("tr",{children:[e.map(({title:e,tooltip:t,required:i})=>Nt("th",{style:{maxWidth:g},children:Nt(Dl,{title:e,required:i,tooltip:t})},`input-table-head-${e}`)),Nt("th",{})]})}),Nt("tbody",{children:c.map((t,i)=>_t(ft,{children:[r&&i>0?Nt("tr",{children:Nt("td",{colSpan:x.length,children:Nt(va,{})})}):null,x.map((n,a)=>_t("tr",{children:[n.map((e,n)=>Nt(wd,{col:e,colIdx:n,row:t,rowIdx:i,rowsLength:c.length,maxWidth:g,limitFieldsPerRow:r,errorMessage:o,handleChange:$},`input-table-row-${i}-col-${n}`)),0===a&&Nt("td",{children:Nt(kd,{$marginTop:r?"24px":"0",onClick:()=>{return t=i,void(c.length>1?d(e=>e.filter((e,i)=>i!==t)):e.forEach(({keyName:e,type:i})=>$(e,i===Ci.Number?"0":"",t)));var t},children:Nt(at,{})})})]},`input-table-matrix-${i}-${a}`))]},`input-table-row-${i}`))})]}),!!o&&Nt(fo,{children:o}),Nt(Fs,{onClick:()=>{d(e=>{const t=ii(e);return t.push(ii(s)),t})},disabled:m})]})},Sd=
|
|
1328
|
+
`,Cd=({columns:e,initialValues:t=[],value:i,onChange:n,errorMessage:o,limitFieldsPerRow:r,title:a=""})=>{const[s,l]=yt({}),[c,d]=yt(i||t),p=bt(()=>new Map(e.map(e=>[e.keyName,e])),[e]);wt(()=>{if(!c.length){const t={};e.forEach(({keyName:e})=>t[e]=""),l(t),d([t])}},[]);const u=c.filter(e=>{for(const[t,i]of Object.entries(e)){const n=p.get(t);if((!n?.renderCondition||n.renderCondition(e))&&n?.required&&Mn(i))return!1}return!0}),h=vt(JSON.stringify(u)),m=u.length!==c.length,g=`${Math.floor(640/((r||e.length)+.4))}px`;wt(()=>{const e=JSON.stringify(u);h.current!==e&&(h.current=e,n&&n(u))},[u]);const $=(e,t,i)=>{d(n=>{const o=ii(n);return o[i][e]=t,o})},x=bt(()=>{if(r){const t=[];for(let i=0;;i+=r){const n=e.slice(i,i+r);if(!n.length)break;t.push(n)}return t}return[e]},[r,e]);return _t(vd,{children:[Nt(Dl,{title:a}),_t("table",{style:{borderCollapse:"collapse"},children:[!r&&Nt("thead",{children:_t("tr",{children:[e.map(({title:e,tooltip:t,required:i})=>Nt("th",{style:{maxWidth:g},children:Nt(Dl,{title:e,required:i,tooltip:t})},`input-table-head-${e}`)),Nt("th",{})]})}),Nt("tbody",{children:c.map((t,i)=>_t(ft,{children:[r&&i>0?Nt("tr",{children:Nt("td",{colSpan:x.length,children:Nt(va,{})})}):null,x.map((n,a)=>_t("tr",{children:[n.map((e,n)=>Nt(wd,{col:e,colIdx:n,row:t,rowIdx:i,rowsLength:c.length,maxWidth:g,limitFieldsPerRow:r,errorMessage:o,handleChange:$},`input-table-row-${i}-col-${n}`)),0===a&&Nt("td",{children:Nt(kd,{$marginTop:r?"24px":"0",onClick:()=>{return t=i,void(c.length>1?d(e=>e.filter((e,i)=>i!==t)):e.forEach(({keyName:e,type:i})=>$(e,i===Ci.Number?"0":"",t)));var t},children:Nt(at,{})})})]},`input-table-matrix-${i}-${a}`))]},`input-table-row-${i}`))})]}),!!o&&Nt(fo,{children:o}),Nt(Fs,{onClick:()=>{d(e=>{const t=ii(e);return t.push(ii(s)),t})},disabled:m})]})},Sd=Bt.div`
|
|
1329
1329
|
display: flex;
|
|
1330
1330
|
flex-direction: column;
|
|
1331
1331
|
width: 100%;
|
|
1332
|
-
`,Ed=
|
|
1332
|
+
`,Ed=Bt.div`
|
|
1333
1333
|
display: flex;
|
|
1334
1334
|
flex-direction: column;
|
|
1335
1335
|
gap: 8px;
|
|
1336
|
-
`,Ad=
|
|
1336
|
+
`,Ad=Bt.div`
|
|
1337
1337
|
display: flex;
|
|
1338
1338
|
align-items: center;
|
|
1339
1339
|
gap: 8px;
|
|
1340
|
-
`,Dd=
|
|
1340
|
+
`,Dd=Bt.div`
|
|
1341
1341
|
width: 100%;
|
|
1342
1342
|
max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
|
|
1343
|
-
`,Td=
|
|
1343
|
+
`,Td=Bt(Oa)`
|
|
1344
1344
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1345
1345
|
opacity: ${({$disabled:e})=>e?.5:1};
|
|
1346
1346
|
`,Fd={key:"",value:""},zd=({initialKeyValuePairs:e=[],value:t,onChange:i,title:n,tooltip:o,disabled:r,required:a,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:c="Value",inputMaxWidth:d=300})=>{const[p,u]=yt(t||e);wt(()=>{p.length||u([{...Fd}])},[]);const h=p.filter(({key:e,value:t})=>!Mn(e.trim())&&!Mn(t.trim())),m=vt(JSON.stringify(h));wt(()=>{const e=JSON.stringify(h);m.current!==e&&(m.current=e,i&&i(h))},[h]);const g=(e,t,i)=>{u(n=>{const o=[...n];return o[i][e]=t,o})},$=p.length<=1,x=r||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),f=r||$&&x;return _t(Sd,{children:[Nt(Dl,{title:n,required:a,tooltip:o}),Nt(Ed,{children:p.map(({key:e,value:t},i)=>_t(Ad,{children:[Nt(Dd,{$maxWidth:d,children:Nt(_l,{placeholder:l,disabled:r,value:e,onChange:e=>g("key",e.target.value,i),hasError:!!s&&(!a||a&&!e),autoFocus:Mn(t)&&!$&&i===p.length-1})}),Nt(Dd,{$maxWidth:i===p.length-1?d-38:d,children:Nt(_l,{placeholder:c,disabled:r,value:t,onChange:e=>g("value",e.target.value,i),hasError:!!s&&(!a||a&&Mn(t)),autoFocus:!1})}),i===p.length-1&&Nt(Td,{withBorder:!0,size:30,$disabled:x,onClick:x?void 0:()=>{u(e=>{const t=[...e];return t.push({...Fd}),t})},children:Nt(et,{})}),Nt(Td,{size:30,$disabled:f,onClick:f?void 0:()=>(e=>{$?(g("key","",e),g("value","",e)):u(t=>t.filter((t,i)=>i!==e))})(i),children:Nt(at,{})})]},`key-value-input-list-${i}`))}),!!s&&Nt(fo,{children:s})]})},Id=jt`
|
|
@@ -1350,13 +1350,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1350
1350
|
100% {
|
|
1351
1351
|
background-position: 100% 50%;
|
|
1352
1352
|
}
|
|
1353
|
-
`,Od=
|
|
1353
|
+
`,Od=Bt(go)`
|
|
1354
1354
|
background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
1355
1355
|
background-size: 250% 100%; /* Expand background to allow movement */
|
|
1356
1356
|
background-clip: text;
|
|
1357
1357
|
color: transparent;
|
|
1358
1358
|
animation: ${Id} 1s reverse linear infinite;
|
|
1359
|
-
`,Nd=({children:e="Loading...",textColor:t,stripColor:i,...n})=>{const o=Lt(),r=t||o.v2.colors.white[500],a=i||o.v2.colors.black[500];return Nt(Od,{$textColor:r,$stripColor:a,...n,children:e})},_d=
|
|
1359
|
+
`,Nd=({children:e="Loading...",textColor:t,stripColor:i,...n})=>{const o=Lt(),r=t||o.v2.colors.white[500],a=i||o.v2.colors.black[500];return Nt(Od,{$textColor:r,$stripColor:a,...n,children:e})},_d=Bt.div`
|
|
1360
1360
|
display: flex;
|
|
1361
1361
|
flex-direction: ${({$isVertical:e})=>e?"column":"row"};
|
|
1362
1362
|
gap: ${({$isVertical:e})=>e?"12px":"24px"};
|
|
@@ -1365,51 +1365,51 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1365
1365
|
border-radius: 32px;
|
|
1366
1366
|
padding: 8px;
|
|
1367
1367
|
`}
|
|
1368
|
-
`,
|
|
1368
|
+
`,Rd=(e,t)=>!t?.length||!!t?.find(t=>t===e),Bd=({isVertical:e,title:t="Monitors",required:i,errorMessage:n,allowedSignals:o,selectedSignals:r,setSelectedSignals:a})=>{const[s,l]=yt(1===r.length),c=vt(JSON.stringify(r));return wt(()=>{const e=r;e.length||Mo.forEach(({id:t})=>{Rd(t,o)&&e.push(t)});const t=JSON.stringify(e);return c.current!==t&&(c.current=t,a(e),l(1===e.length)),()=>{c.current=""}},[o]),_t("div",{children:[t&&Nt(Dl,{title:t,required:i}),Nt(_d,{$isVertical:e,$hasError:!!n,children:Mo.map(e=>{const t=Rd(e.id,o),i=((e,t)=>!!t?.find(t=>t===e))(e.id,r);return t?Nt(es,{title:e.value,disabled:!t||s&&i,value:i,onChange:t=>((e,t)=>{const i=e,n=t?[...r,i]:r.filter(e=>e!==i);a(n),l(1===n.length)})(e.id,t)},e.id):null})}),!!n&&Nt(fo,{children:n})]})},Md=Bt.div`
|
|
1369
1369
|
display: flex;
|
|
1370
1370
|
gap: 8px;
|
|
1371
1371
|
align-items: center;
|
|
1372
|
-
`,Ld=
|
|
1372
|
+
`,Ld=Bt(Sr)`
|
|
1373
1373
|
display: flex;
|
|
1374
1374
|
align-items: center;
|
|
1375
1375
|
justify-content: center;
|
|
1376
1376
|
gap: 8px;
|
|
1377
1377
|
min-width: 90px;
|
|
1378
|
-
`,Pd=({buttons:e})=>{const t=Lt(),i=({button:t,index:i})=>e.length>1&&0===i&&(t.icon||t.iconSrc),n=({button:e,rotate:i})=>e.icon?Nt(e.icon,{size:14,rotate:i,fill:t.text[e.variant||"secondary"]}):e.iconSrc?Nt("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return Nt(Md,{children:e.map((e,t)=>Nt(Fa,{text:e.tooltip||"",children:_t(Ld,{variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled,children:[i({button:e,index:t})&&n({button:e,rotate:0}),e.label,!i({button:e,index:t})&&n({button:e,rotate:180})]},t)},t))})},jd=
|
|
1378
|
+
`,Pd=({buttons:e})=>{const t=Lt(),i=({button:t,index:i})=>e.length>1&&0===i&&(t.icon||t.iconSrc),n=({button:e,rotate:i})=>e.icon?Nt(e.icon,{size:14,rotate:i,fill:t.text[e.variant||"secondary"]}):e.iconSrc?Nt("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return Nt(Md,{children:e.map((e,t)=>Nt(Fa,{text:e.tooltip||"",children:_t(Ld,{variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled,children:[i({button:e,index:t})&&n({button:e,rotate:0}),e.label,!i({button:e,index:t})&&n({button:e,rotate:180})]},t)},t))})},jd=Bt.div`
|
|
1379
1379
|
height: ${({$height:e})=>e}px;
|
|
1380
1380
|
width: 100%;
|
|
1381
1381
|
overflow: auto;
|
|
1382
|
-
`,Ud=
|
|
1382
|
+
`,Ud=Bt.div`
|
|
1383
1383
|
height: ${({$height:e})=>e}px;
|
|
1384
1384
|
width: 100%;
|
|
1385
1385
|
position: relative;
|
|
1386
|
-
`,Wd=
|
|
1386
|
+
`,Wd=Bt.div`
|
|
1387
1387
|
height: ${({$height:e})=>e}px;
|
|
1388
1388
|
width: 100%;
|
|
1389
1389
|
position: absolute;
|
|
1390
1390
|
top: 0;
|
|
1391
1391
|
left: 0;
|
|
1392
1392
|
transform: translateY(${({$yOffset:e})=>e}px);
|
|
1393
|
-
`,Vd=({containerHeight:e,elementHeight:t,elements:i})=>{const{overflowRef:n,listHeight:o,listItems:r}=Pr({items:i,rowHeight:t});return Nt(jd,{ref:n,$height:e,children:Nt(Ud,{$height:o,children:r.map(({key:e,index:t,size:n,start:o})=>{const r=t>i.length-1,a=i[t];return Nt(Wd,{$height:n,$yOffset:o,children:r?Nt(oa,{children:Nt(Nd,{})}):a},e)})})})},qd=
|
|
1393
|
+
`,Vd=({containerHeight:e,elementHeight:t,elements:i})=>{const{overflowRef:n,listHeight:o,listItems:r}=Pr({items:i,rowHeight:t});return Nt(jd,{ref:n,$height:e,children:Nt(Ud,{$height:o,children:r.map(({key:e,index:t,size:n,start:o})=>{const r=t>i.length-1,a=i[t];return Nt(Wd,{$height:n,$yOffset:o,children:r?Nt(oa,{children:Nt(Nd,{})}):a},e)})})})},qd=Bt.div`
|
|
1394
1394
|
display: flex;
|
|
1395
1395
|
justify-content: space-between;
|
|
1396
1396
|
align-items: center;
|
|
1397
1397
|
gap: 16px;
|
|
1398
|
-
`,Hd=
|
|
1398
|
+
`,Hd=Bt.div`
|
|
1399
1399
|
display: flex;
|
|
1400
1400
|
flex-direction: column;
|
|
1401
1401
|
gap: 4px;
|
|
1402
|
-
`,Gd=
|
|
1402
|
+
`,Gd=Bt.div`
|
|
1403
1403
|
display: flex;
|
|
1404
1404
|
align-items: center;
|
|
1405
1405
|
gap: 8px;
|
|
1406
|
-
`,Kd=
|
|
1406
|
+
`,Kd=Bt(go)``,Yd=Bt(go)``,Jd=({title:e,description:t,badgeLabel:i,icon:n,actionButton:o,size:r="medium"})=>{const a="small"===r?16:"medium"===r?20:24,s="small"===r?12:"medium"===r?14:16;return _t(qd,{children:[_t(Hd,{children:[_t(Gd,{children:[n&&Nt(n,{size:a}),Nt(Kd,{weight:300,size:a,children:e}),void 0!==i&&Nt(wr,{label:i,filled:!!i})]}),Nt(Yd,{weight:200,opacity:.8,size:s,children:t})]}),o&&Nt("div",{children:o})]})},Xd=Bt.div`
|
|
1407
1407
|
position: relative;
|
|
1408
1408
|
gap: 0;
|
|
1409
1409
|
z-index: 0;
|
|
1410
1410
|
display: grid;
|
|
1411
1411
|
grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
|
|
1412
|
-
`,Zd=
|
|
1412
|
+
`,Zd=Bt.button`
|
|
1413
1413
|
flex: 1;
|
|
1414
1414
|
display: flex;
|
|
1415
1415
|
align-items: center;
|
|
@@ -1423,7 +1423,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1423
1423
|
&:hover {
|
|
1424
1424
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
1425
1425
|
}
|
|
1426
|
-
`,Qd=
|
|
1426
|
+
`,Qd=Bt.div`
|
|
1427
1427
|
position: absolute;
|
|
1428
1428
|
top: ${({$y:e})=>e}px;
|
|
1429
1429
|
left: ${({$x:e})=>e}px;
|
|
@@ -1433,7 +1433,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1433
1433
|
background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
|
|
1434
1434
|
border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
|
|
1435
1435
|
transition: all 0.3s;
|
|
1436
|
-
`,ep=({options:e=[],selected:t,setSelected:i})=>{const n=e.findIndex(e=>e.value===t),[o,r]=yt(e[n]?.selectedBgColor||""),[a,s]=yt({width:0,height:0}),[l,c]=yt({x:0,y:0}),d=vt(null);return wt(()=>{d.current&&(s({width:d.current.offsetWidth,height:d.current.offsetHeight}),c({x:d.current.offsetWidth*n,y:0}))},[t,n]),_t(Xd,{$count:e.length,children:[e.map(({icon:n,label:o,value:a,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===a;return _t(Zd,{ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{i(a),r(s||"")},children:[n&&Nt(n,{}),o&&Nt(go,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0,children:o})]},`segment-${o||c}-${a}`)}),Nt(Qd,{$bgColor:o,$width:a.width,$height:a.height,$x:l.x,$y:l.y,$isFirstItem:0===n,$isLastItem:n===e.length-1})]})},tp=
|
|
1436
|
+
`,ep=({options:e=[],selected:t,setSelected:i})=>{const n=e.findIndex(e=>e.value===t),[o,r]=yt(e[n]?.selectedBgColor||""),[a,s]=yt({width:0,height:0}),[l,c]=yt({x:0,y:0}),d=vt(null);return wt(()=>{d.current&&(s({width:d.current.offsetWidth,height:d.current.offsetHeight}),c({x:d.current.offsetWidth*n,y:0}))},[t,n]),_t(Xd,{$count:e.length,children:[e.map(({icon:n,label:o,value:a,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===a;return _t(Zd,{ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{i(a),r(s||"")},children:[n&&Nt(n,{}),o&&Nt(go,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0,children:o})]},`segment-${o||c}-${a}`)}),Nt(Qd,{$bgColor:o,$width:a.width,$height:a.height,$x:l.x,$y:l.y,$isFirstItem:0===n,$isLastItem:n===e.length-1})]})},tp=Bt(Sr)`
|
|
1437
1437
|
gap: 8px;
|
|
1438
1438
|
text-transform: none;
|
|
1439
1439
|
text-decoration: none;
|
|
@@ -1447,71 +1447,71 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1447
1447
|
&.selected {
|
|
1448
1448
|
background-color: ${({theme:e})=>e.colors.majestic_blue+ur["030"]};
|
|
1449
1449
|
}
|
|
1450
|
-
`,ip=
|
|
1450
|
+
`,ip=Bt(go)`
|
|
1451
1451
|
white-space: nowrap;
|
|
1452
1452
|
overflow: hidden;
|
|
1453
1453
|
text-overflow: ellipsis;
|
|
1454
1454
|
font-size: 14px;
|
|
1455
|
-
`,np=({label:e,onClick:t,icon:i,iconSrc:n,badgeLabel:o,badgeFilled:r,isSelected:a,withBorder:s,color:l,hoverColor:c,style:d})=>{const p=Lt();return _t(tp,{onClick:t,className:a?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:c,style:d,children:[i&&Nt("div",{children:Nt(i,{fill:p.text.info})}),n&&Nt("div",{children:Nt("img",{src:n,alt:"",width:16,height:16})}),Nt(ip,{children:e}),a&&Nt("div",{children:Nt(Ge,{fill:p.colors.majestic_blue_soft})}),void 0!==o&&Nt(wr,{label:o,filled:r||a})]})},op=
|
|
1455
|
+
`,np=({label:e,onClick:t,icon:i,iconSrc:n,badgeLabel:o,badgeFilled:r,isSelected:a,withBorder:s,color:l,hoverColor:c,style:d})=>{const p=Lt();return _t(tp,{onClick:t,className:a?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:c,style:d,children:[i&&Nt("div",{children:Nt(i,{fill:p.text.info})}),n&&Nt("div",{children:Nt("img",{src:n,alt:"",width:16,height:16})}),Nt(ip,{children:e}),a&&Nt("div",{children:Nt(Ge,{fill:p.colors.majestic_blue_soft})}),void 0!==o&&Nt(wr,{label:o,filled:r||a})]})},op=Bt.div`
|
|
1456
1456
|
display: flex;
|
|
1457
1457
|
flex-direction: column;
|
|
1458
1458
|
gap: 16px;
|
|
1459
1459
|
${({$maxWidth:e})=>e&&`max-width: ${e};`}
|
|
1460
|
-
`,rp=
|
|
1460
|
+
`,rp=Bt.div`
|
|
1461
1461
|
display: flex;
|
|
1462
1462
|
align-items: center;
|
|
1463
1463
|
gap: 16px;
|
|
1464
|
-
`,ap=
|
|
1464
|
+
`,ap=Bt.div`
|
|
1465
1465
|
width: 50px;
|
|
1466
1466
|
height: 50px;
|
|
1467
1467
|
border-radius: 8px;
|
|
1468
1468
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
|
|
1469
1469
|
background-size: 200% 100%;
|
|
1470
1470
|
animation: ${xr} 10s infinite linear;
|
|
1471
|
-
`,sp=
|
|
1471
|
+
`,sp=Bt(na)`
|
|
1472
1472
|
flex: 1;
|
|
1473
1473
|
gap: 12px;
|
|
1474
|
-
`,lp=
|
|
1474
|
+
`,lp=Bt.div`
|
|
1475
1475
|
width: ${({$width:e})=>e};
|
|
1476
1476
|
height: 16px;
|
|
1477
1477
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
|
|
1478
1478
|
background-size: 200% 100%;
|
|
1479
1479
|
animation: ${xr} 1.5s infinite linear;
|
|
1480
1480
|
border-radius: 4px;
|
|
1481
|
-
`,cp=({size:e=5,maxWidth:t})=>Nt(op,{$maxWidth:t,children:[...Array(e)].map((e,t)=>_t(rp,{children:[Nt(ap,{}),_t(sp,{children:[Nt(lp,{$width:"80%"}),Nt(lp,{$width:"100%"})]})]},t))});var dp;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(dp||(dp={}));const pp=
|
|
1481
|
+
`,cp=({size:e=5,maxWidth:t})=>Nt(op,{$maxWidth:t,children:[...Array(e)].map((e,t)=>_t(rp,{children:[Nt(ap,{}),_t(sp,{children:[Nt(lp,{$width:"80%"}),Nt(lp,{$width:"100%"})]})]},t))});var dp;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(dp||(dp={}));const pp=Bt.div`
|
|
1482
1482
|
display: flex;
|
|
1483
1483
|
flex-direction: column;
|
|
1484
1484
|
gap: 32px;
|
|
1485
|
-
`,up=
|
|
1485
|
+
`,up=Bt.div`
|
|
1486
1486
|
display: flex;
|
|
1487
1487
|
gap: 16px;
|
|
1488
1488
|
padding: 8px;
|
|
1489
1489
|
opacity: ${({$state:e})=>e===dp.Active?1:e===dp.Disabled?.5:.8};
|
|
1490
1490
|
transition: all 0.3s;
|
|
1491
|
-
`,hp=
|
|
1491
|
+
`,hp=Bt(ia)`
|
|
1492
1492
|
justify-content: center;
|
|
1493
1493
|
width: 24px;
|
|
1494
1494
|
height: 24px;
|
|
1495
1495
|
border-radius: 32px;
|
|
1496
1496
|
border: ${({theme:e,$state:t})=>t===dp.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
|
|
1497
1497
|
opacity: ${({$state:e})=>e===dp.Finished?.8:1};
|
|
1498
|
-
`,mp=
|
|
1498
|
+
`,mp=Bt(na)`
|
|
1499
1499
|
justify-content: center;
|
|
1500
1500
|
gap: 8px;
|
|
1501
|
-
`,gp=
|
|
1501
|
+
`,gp=Bt(go)``,$p=Bt(go)``,xp=({data:e,currentStep:t=0})=>{const[i,n]=yt([]);return wt(()=>{n(e.map((e,i)=>i<t-1?{...e,state:dp.Finished,subtitle:e.subtitle||Si.Success}:i===t-1?{...e,state:dp.Active,subtitle:""}:{...e,state:dp.Disabled,subtitle:""}))},[t,e]),Nt(pp,{children:i.map((e,t)=>_t(up,{$state:e.state,children:[Nt(hp,{$state:e.state,children:[dp.Active,dp.Disabled].includes(e.state)?Nt(go,{size:12,children:e.stepNumber}):e.state===dp.Finished?Nt(Ge,{size:20}):null}),_t(mp,{children:[Nt(gp,{family:"secondary",children:e.title}),e.subtitle&&Nt($p,{size:10,weight:300,children:e.subtitle})]})]},t))})},fp=Bt(ia)`
|
|
1502
1502
|
width: fit-content;
|
|
1503
1503
|
gap: 6px;
|
|
1504
1504
|
padding: 6px 12px;
|
|
1505
1505
|
border-radius: 360px;
|
|
1506
1506
|
background-color: ${({$type:e,theme:t})=>t.colors[e]};
|
|
1507
|
-
`,bp=
|
|
1507
|
+
`,bp=Bt(go)`
|
|
1508
1508
|
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
1509
|
-
`,yp=({type:e=Si.Info,icon:t,title:i,size:n,family:o,children:r,...a})=>_t(fp,{$type:e,children:[t&&Nt(t,{}),Nt(bp,{$type:e,size:n||12,family:o||"secondary",...a,children:r||i})]}),wp=
|
|
1509
|
+
`,yp=({type:e=Si.Info,icon:t,title:i,size:n,family:o,children:r,...a})=>_t(fp,{$type:e,children:[t&&Nt(t,{}),Nt(bp,{$type:e,size:n||12,family:o||"secondary",...a,children:r||i})]}),wp=Bt.div`
|
|
1510
1510
|
display: flex;
|
|
1511
1511
|
flex-direction: column;
|
|
1512
1512
|
position: relative;
|
|
1513
1513
|
width: 100%;
|
|
1514
|
-
`,vp=
|
|
1514
|
+
`,vp=Bt.div`
|
|
1515
1515
|
width: 100%;
|
|
1516
1516
|
display: flex;
|
|
1517
1517
|
align-items: center;
|
|
@@ -1539,7 +1539,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1539
1539
|
&:focus-within {
|
|
1540
1540
|
border-color: ${({theme:e})=>e.colors.secondary};
|
|
1541
1541
|
}
|
|
1542
|
-
`,kp=
|
|
1542
|
+
`,kp=Bt.textarea`
|
|
1543
1543
|
flex: 1;
|
|
1544
1544
|
border: none;
|
|
1545
1545
|
outline: none;
|
|
@@ -1563,13 +1563,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1563
1563
|
background-color: ${({theme:e})=>e.colors.border};
|
|
1564
1564
|
cursor: not-allowed;
|
|
1565
1565
|
}
|
|
1566
|
-
`,Cp=({errorMessage:e,title:t,tooltip:i,required:n,onChange:o,name:r,...a})=>{const s=vt(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return _t(wp,{children:[Nt(Dl,{title:t,required:n,tooltip:i}),Nt(vp,{$disabled:a.disabled,$hasError:!!e,$isActive:!!a.autoFocus,children:Nt(kp,{ref:s,"data-id":r,name:r,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:e=>{e.stopPropagation(),l(!0),o?.(e)},onKeyDown:e=>{e.stopPropagation()},...a})}),!!e&&Nt(fo,{children:e})]})},Sp=
|
|
1566
|
+
`,Cp=({errorMessage:e,title:t,tooltip:i,required:n,onChange:o,name:r,...a})=>{const s=vt(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return _t(wp,{children:[Nt(Dl,{title:t,required:n,tooltip:i}),Nt(vp,{$disabled:a.disabled,$hasError:!!e,$isActive:!!a.autoFocus,children:Nt(kp,{ref:s,"data-id":r,name:r,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:e=>{e.stopPropagation(),l(!0),o?.(e)},onKeyDown:e=>{e.stopPropagation()},...a})}),!!e&&Nt(fo,{children:e})]})},Sp=Bt.div`
|
|
1567
1567
|
display: flex;
|
|
1568
1568
|
align-items: center;
|
|
1569
1569
|
gap: 12px;
|
|
1570
1570
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1571
1571
|
opacity: ${({$disabled:e})=>e?.6:1};
|
|
1572
|
-
`,Ep=
|
|
1572
|
+
`,Ep=Bt.div`
|
|
1573
1573
|
width: 24px;
|
|
1574
1574
|
height: 12px;
|
|
1575
1575
|
border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
|
|
@@ -1591,11 +1591,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1591
1591
|
transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
|
|
1592
1592
|
transition: background-color 0.3s, transform 0.3s;
|
|
1593
1593
|
}
|
|
1594
|
-
`,Ap=({title:e,tooltip:t,initialValue:i=!1,onChange:n,disabled:o,allowPropagation:r=!1,flipHorizontally:a})=>{const[s,l]=yt(i);return wt(()=>l(i),[i]),_t(Sp,{$disabled:o,onClick:e=>{o||(r||e.stopPropagation(),n?n(!s):l(e=>!e))},children:[!a&&Nt(Ep,{$disabled:o,$isActive:s}),(e||t)&&Nt(Fa,{text:t,withIcon:!0,children:e&&Nt(go,{size:14,children:e})}),a&&Nt(Ep,{$disabled:o,$isActive:s})]})};var Dp={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 Tp=
|
|
1594
|
+
`,Ap=({title:e,tooltip:t,initialValue:i=!1,onChange:n,disabled:o,allowPropagation:r=!1,flipHorizontally:a})=>{const[s,l]=yt(i);return wt(()=>l(i),[i]),_t(Sp,{$disabled:o,onClick:e=>{o||(r||e.stopPropagation(),n?n(!s):l(e=>!e))},children:[!a&&Nt(Ep,{$disabled:o,$isActive:s}),(e||t)&&Nt(Fa,{text:t,withIcon:!0,children:e&&Nt(go,{size:14,children:e})}),a&&Nt(Ep,{$disabled:o,$isActive:s})]})};var Dp={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 Tp=Bt.div`
|
|
1595
1595
|
width: ${({$width:e})=>e}px;
|
|
1596
1596
|
height: ${({$height:e})=>e}px;
|
|
1597
1597
|
position: relative;
|
|
1598
|
-
`,Fp=({width:e=620})=>{const{darkMode:t}=Lt(),i=e/(620/220);return Nt(Tp,{$width:e,$height:i,children:Nt(Xt,{autoplay:!0,loop:!0,animationData:Dp,style:{width:i,height:e,transform:"rotate(-90deg)",position:"absolute",top:-(i-i/10),left:i-i/10,filter:t?"invert(0)":"invert(1)"}})})};var zp,Ip;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(zp||(zp={})),function(e){e.S="small",e.M="medium",e.L="large"}(Ip||(Ip={}));const Op=
|
|
1598
|
+
`,Fp=({width:e=620})=>{const{darkMode:t}=Lt(),i=e/(620/220);return Nt(Tp,{$width:e,$height:i,children:Nt(Xt,{autoplay:!0,loop:!0,animationData:Dp,style:{width:i,height:e,transform:"rotate(-90deg)",position:"absolute",top:-(i-i/10),left:i-i/10,filter:t?"invert(0)":"invert(1)"}})})};var zp,Ip;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(zp||(zp={})),function(e){e.S="small",e.M="medium",e.L="large"}(Ip||(Ip={}));const Op=Bt.button`
|
|
1599
1599
|
display: flex;
|
|
1600
1600
|
align-items: center;
|
|
1601
1601
|
justify-content: center;
|
|
@@ -1663,7 +1663,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1663
1663
|
}
|
|
1664
1664
|
`:""}
|
|
1665
1665
|
}
|
|
1666
|
-
`,Np=Ct(({label:e,leftIcon:t,rightIcon:i,variant:n=zp.Primary,size:o=Ip.M,iconSize:r,loading:a,fullWidth:s,withShadow:l,disabled:c,onClick:d,...p},u)=>{const h=Lt(),m=r||(o===Ip.L?18:16),g=o===Ip.L?ro.S:ro.XS,$=c?h.v2.colors.grey[400]:h.v2.colors.white[500];return Nt(Op,{ref:u,$variant:n,$size:o,$fullWidth:s,$withShadow:l,$hasLabel:!!e,disabled:c,onClick:a?void 0:e=>{e.stopPropagation(),d?.(e)},...p,children:a?e?Nt(Nd,{size:h.v2.text.size[g],textColor:$}):Nt($s,{}):_t(
|
|
1666
|
+
`,Np=Ct(({label:e,leftIcon:t,rightIcon:i,variant:n=zp.Primary,size:o=Ip.M,iconSize:r,loading:a,fullWidth:s,withShadow:l,disabled:c,onClick:d,...p},u)=>{const h=Lt(),m=r||(o===Ip.L?18:16),g=o===Ip.L?ro.S:ro.XS,$=c?h.v2.colors.grey[400]:h.v2.colors.white[500];return Nt(Op,{ref:u,$variant:n,$size:o,$fullWidth:s,$withShadow:l,$hasLabel:!!e,disabled:c,onClick:a?void 0:e=>{e.stopPropagation(),d?.(e)},...p,children:a?e?Nt(Nd,{size:h.v2.text.size[g],textColor:$}):Nt($s,{}):_t(Rt,{children:[t&&Nt(t,{size:m,fill:$}),e?Nt(so,{size:g,weight:500,color:$,nowrap:!0,children:e}):null,i&&Nt(i,{size:m,fill:$})]})})});Np.displayName=Np.name;const _p=Bt.button`
|
|
1667
1667
|
width: 100%;
|
|
1668
1668
|
padding: 0;
|
|
1669
1669
|
padding-right: 12px;
|
|
@@ -1683,7 +1683,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1683
1683
|
&:disabled {
|
|
1684
1684
|
cursor: not-allowed;
|
|
1685
1685
|
}
|
|
1686
|
-
`,
|
|
1686
|
+
`,Rp=Bt.div`
|
|
1687
1687
|
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
1688
1688
|
height: 56px;
|
|
1689
1689
|
display: flex;
|
|
@@ -1694,13 +1694,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1694
1694
|
`:Mt`
|
|
1695
1695
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1696
1696
|
`}
|
|
1697
|
-
`,
|
|
1697
|
+
`,Bp=Bt.div`
|
|
1698
1698
|
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
1699
1699
|
display: flex;
|
|
1700
1700
|
justify-content: space-between;
|
|
1701
1701
|
align-items: center;
|
|
1702
1702
|
gap: 8px;
|
|
1703
|
-
`,Mp=({label:e,icon:t,loading:i,onClick:n})=>{const[o,r]=yt(!1);return _t(_p,{$hovered:o,type:"button",disabled:i,onClick:n,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[Nt(
|
|
1703
|
+
`,Mp=({label:e,icon:t,loading:i,onClick:n})=>{const[o,r]=yt(!1);return _t(_p,{$hovered:o,type:"button",disabled:i,onClick:n,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[Nt(Rp,{$hovered:o,$hasIcon:!!t,children:t&&Nt(t,{size:36})}),_t(Bp,{$hasIcon:!!t,children:[i?Nt(Nd,{size:16}):Nt(so,{variant:oo.Span,align:"center",children:e}),Nt(dt,{rotate:90,size:24})]})]})},Lp=({buttons:e})=>Nt(na,{$gap:12,children:e.map(e=>Nt(Mp,{...e},e.label))}),Pp=Bt.div`
|
|
1704
1704
|
display: flex;
|
|
1705
1705
|
align-items: center;
|
|
1706
1706
|
flex-wrap: wrap;
|
|
@@ -1708,13 +1708,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1708
1708
|
padding: 4px 12px;
|
|
1709
1709
|
border-radius: 12px;
|
|
1710
1710
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1711
|
-
`,jp=
|
|
1711
|
+
`,jp=Bt.div`
|
|
1712
1712
|
width: calc(${({$cellsPerRow:e})=>100/e+"%"} - 16px);
|
|
1713
1713
|
margin: 8px;
|
|
1714
1714
|
display: flex;
|
|
1715
1715
|
flex-direction: column;
|
|
1716
1716
|
gap: 4px;
|
|
1717
|
-
`,Up=({cellsPerRow:e,items:t})=>{const i=Lt(),{CopyButton:n}=
|
|
1717
|
+
`,Up=({cellsPerRow:e,items:t})=>{const i=Lt(),{CopyButton:n}=Rr();return Nt(Pp,{children:t.map(({id:o,title:r,label:a,withCopy:s,badge:l})=>_t(jp,{$cellsPerRow:e||t.length,children:[Nt(so,{size:ro.XXXS,color:i.v2.colors.silver[200],nowrap:!0,children:r}),_t(ia,{$gap:4,children:[l&&Nt(co,{...l}),a&&Nt(so,{size:ro.XS,nowrap:!0,children:a}),s&&Nt(n,{value:a||l?.label?.toString()||"",size:Or.XS})]})]},o))})};var Wp;!function(e){e.S="s",e.L="l"}(Wp||(Wp={}));const Vp=Bt.div`
|
|
1718
1718
|
position: relative;
|
|
1719
1719
|
z-index: 0;
|
|
1720
1720
|
display: flex;
|
|
@@ -1724,7 +1724,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1724
1724
|
border-radius: 8px;
|
|
1725
1725
|
border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
|
|
1726
1726
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1727
|
-
`,qp=
|
|
1727
|
+
`,qp=Bt.button`
|
|
1728
1728
|
flex: 1;
|
|
1729
1729
|
display: flex;
|
|
1730
1730
|
align-items: center;
|
|
@@ -1739,7 +1739,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1739
1739
|
&:hover {
|
|
1740
1740
|
background-color: ${({theme:e,$isSelected:t,$selectedBgColor:i})=>t?i||e.v2.colors.black[500]:e.v2.colors.silver[800]};
|
|
1741
1741
|
}
|
|
1742
|
-
`,Hp=({size:e=Wp.L,options:t=[],selected:i,setSelected:n,disabled:o})=>{const r=Lt(),a=o?r.v2.colors.grey[400]:r.v2.colors.white[500],s=e===Wp.S?ro.XXS:ro.XS,l=e===Wp.S?400:500;return Nt(Vp,{$count:t.length,children:t.map(({value:t,label:r,icon:c,selectedBgColor:d},p)=>_t(qp,{onClick:()=>!o&&n(t),$size:e,$disabled:o,$isSelected:i===t,$selectedBgColor:d,children:[c&&Nt(c,{fill:a}),r&&Nt(so,{size:s,weight:l,color:a,nowrap:!0,children:r})]},`segment-${r||p}-${t}`))})},Gp=
|
|
1742
|
+
`,Hp=({size:e=Wp.L,options:t=[],selected:i,setSelected:n,disabled:o})=>{const r=Lt(),a=o?r.v2.colors.grey[400]:r.v2.colors.white[500],s=e===Wp.S?ro.XXS:ro.XS,l=e===Wp.S?400:500;return Nt(Vp,{$count:t.length,children:t.map(({value:t,label:r,icon:c,selectedBgColor:d},p)=>_t(qp,{onClick:()=>!o&&n(t),$size:e,$disabled:o,$isSelected:i===t,$selectedBgColor:d,children:[c&&Nt(c,{fill:a}),r&&Nt(so,{size:s,weight:l,color:a,nowrap:!0,children:r})]},`segment-${r||p}-${t}`))})},Gp=Bt.div`
|
|
1743
1743
|
box-sizing: border-box !important;
|
|
1744
1744
|
width: ${({$width:e})=>e??"fit-content"};
|
|
1745
1745
|
padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
|
|
@@ -1753,7 +1753,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1753
1753
|
border: none;
|
|
1754
1754
|
border-radius: 6px;
|
|
1755
1755
|
background: ${({$isHovered:e,$isActive:t,theme:i})=>e||t?i.v2.colors.silver[700]:i.v2.colors.silver[800]};
|
|
1756
|
-
`,Kp=
|
|
1756
|
+
`,Kp=Bt.input`
|
|
1757
1757
|
min-width: 0;
|
|
1758
1758
|
flex: 1;
|
|
1759
1759
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -1770,13 +1770,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1770
1770
|
overflow: hidden;
|
|
1771
1771
|
text-overflow: ellipsis;
|
|
1772
1772
|
white-space: nowrap;
|
|
1773
|
-
`,Yp=({value:e,onChange:t,placeholder:i,width:n,segment:o})=>{const r=Lt(),[a,s]=yt(!1),[l,c]=yt(!1),[d,p]=yt(!1),u=a?r.v2.colors.white[500]:r.v2.colors.silver[200],h=!!o?.options?.length,m=bt(()=>{if(h)return o?.options.find(e=>e.value===o.selected)?.label},[h,o?.options,o?.selected]),g=bt(()=>i||(h&&m?`Search by ${m.toLowerCase()}`:"Search..."),[i,h,m]);return _t(Gp,{$width:n,$withSegment:h,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),$isHovered:l&&!d,$isActive:a,children:[Nt(rt,{size:18,fill:u}),Nt(Kp,{"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&&Nt("div",{style:{flexShrink:0},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:Nt(Hp,{options:o.options,selected:o.selected,setSelected:o.setSelected,size:Wp.S})})]})};var Jp;!function(e){e.S="small",e.L="large"}(Jp||(Jp={}));const Xp=
|
|
1773
|
+
`,Yp=({value:e,onChange:t,placeholder:i,width:n,segment:o})=>{const r=Lt(),[a,s]=yt(!1),[l,c]=yt(!1),[d,p]=yt(!1),u=a?r.v2.colors.white[500]:r.v2.colors.silver[200],h=!!o?.options?.length,m=bt(()=>{if(h)return o?.options.find(e=>e.value===o.selected)?.label},[h,o?.options,o?.selected]),g=bt(()=>i||(h&&m?`Search by ${m.toLowerCase()}`:"Search..."),[i,h,m]);return _t(Gp,{$width:n,$withSegment:h,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),$isHovered:l&&!d,$isActive:a,children:[Nt(rt,{size:18,fill:u}),Nt(Kp,{"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&&Nt("div",{style:{flexShrink:0},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:Nt(Hp,{options:o.options,selected:o.selected,setSelected:o.setSelected,size:Wp.S})})]})};var Jp;!function(e){e.S="small",e.L="large"}(Jp||(Jp={}));const Xp=Bt.div`
|
|
1774
1774
|
width: fit-content;
|
|
1775
1775
|
display: flex;
|
|
1776
1776
|
align-items: center;
|
|
1777
1777
|
gap: 8px;
|
|
1778
1778
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1779
|
-
`,Zp=
|
|
1779
|
+
`,Zp=Bt.div`
|
|
1780
1780
|
width: ${({$size:e})=>e===Jp.S?"16px":"20px"};
|
|
1781
1781
|
height: ${({$size:e})=>e===Jp.S?"16px":"20px"};
|
|
1782
1782
|
display: flex;
|
|
@@ -1785,13 +1785,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1785
1785
|
border-radius: 4px;
|
|
1786
1786
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1787
1787
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1788
|
-
`,Qp=({label:e,size:t=Jp.L,disabled:i,partiallyChecked:n,value:o,onChange:r})=>{const a=Lt(),[s,l]=yt(!1),c=n||o,d=t===Jp.S?12:16,p=i?a.v2.colors.grey[400]:a.v2.colors.white[500],u=c?"transparent":i?a.v2.colors.grey[700]:s?a.v2.colors.silver[400]:a.v2.colors.silver[600],h=i?a.v2.colors.grey[600]:c?a.v2.colors.purple[500]:a.v2.colors.silver[900];return _t(Xp,{"data-id":"checkbox"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),i||r(!!n||!o)},$disabled:i,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[Nt(Zp,{$size:t,$borderColor:u,$backgroundColor:h,children:n?Nt(Je,{size:d,fill:p}):o?Nt(Ge,{size:d,fill:p}):null}),e&&Nt(so,{size:t===Jp.S?ro.XXS:ro.XS,nowrap:!0,children:e})]})},eu=
|
|
1788
|
+
`,Qp=({label:e,size:t=Jp.L,disabled:i,partiallyChecked:n,value:o,onChange:r})=>{const a=Lt(),[s,l]=yt(!1),c=n||o,d=t===Jp.S?12:16,p=i?a.v2.colors.grey[400]:a.v2.colors.white[500],u=c?"transparent":i?a.v2.colors.grey[700]:s?a.v2.colors.silver[400]:a.v2.colors.silver[600],h=i?a.v2.colors.grey[600]:c?a.v2.colors.purple[500]:a.v2.colors.silver[900];return _t(Xp,{"data-id":"checkbox"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),i||r(!!n||!o)},$disabled:i,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[Nt(Zp,{$size:t,$borderColor:u,$backgroundColor:h,children:n?Nt(Je,{size:d,fill:p}):o?Nt(Ge,{size:d,fill:p}):null}),e&&Nt(so,{size:t===Jp.S?ro.XXS:ro.XS,nowrap:!0,children:e})]})},eu=Bt.div`
|
|
1789
1789
|
display: flex;
|
|
1790
1790
|
flex-direction: ${({$direction:e})=>e===mi.Horizontal?"row":"column"};
|
|
1791
1791
|
gap: ${({$direction:e})=>e===mi.Horizontal?16:8}px;
|
|
1792
|
-
`,tu=({direction:e=mi.Vertical,title:t,size:i,disabled:n,withSelectAll:o,options:r,values:a,setValues:s})=>{const l=i===Jp.S?ro.XXS:ro.XS,c=bt(()=>r.every(e=>a[e.id]),[r,a]),d=bt(()=>r.some(e=>a[e.id])&&r.some(e=>!a[e.id]),[r,a]),p=(e,t)=>{s(i=>{const n={...i};return e?n[e]=t:r.forEach(e=>n[e.id]=t),n})};return _t(eu,{$direction:e,children:[t&&o?Nt(Qp,{label:t,partiallyChecked:d,value:c,onChange:e=>p("",e),size:i}):t&&!o?Nt(so,{size:l,children:t}):null,r.map(e=>Nt(Qp,{...e,value:a[e.id],onChange:t=>p(e.id,t),disabled:n,size:i},`${t}-checkbox-${e.id}`))]})};var iu,nu;!function(e){e.Left="left",e.Right="right"}(iu||(iu={})),function(e){e.Top="top",e.Bottom="bottom"}(nu||(nu={}));const ou=
|
|
1792
|
+
`,tu=({direction:e=mi.Vertical,title:t,size:i,disabled:n,withSelectAll:o,options:r,values:a,setValues:s})=>{const l=i===Jp.S?ro.XXS:ro.XS,c=bt(()=>r.every(e=>a[e.id]),[r,a]),d=bt(()=>r.some(e=>a[e.id])&&r.some(e=>!a[e.id]),[r,a]),p=(e,t)=>{s(i=>{const n={...i};return e?n[e]=t:r.forEach(e=>n[e.id]=t),n})};return _t(eu,{$direction:e,children:[t&&o?Nt(Qp,{label:t,partiallyChecked:d,value:c,onChange:e=>p("",e),size:i}):t&&!o?Nt(so,{size:l,children:t}):null,r.map(e=>Nt(Qp,{...e,value:a[e.id],onChange:t=>p(e.id,t),disabled:n,size:i},`${t}-checkbox-${e.id}`))]})};var iu,nu;!function(e){e.Left="left",e.Right="right"}(iu||(iu={})),function(e){e.Top="top",e.Bottom="bottom"}(nu||(nu={}));const ou=Bt.div`
|
|
1793
1793
|
position: relative;
|
|
1794
|
-
`,ru=
|
|
1794
|
+
`,ru=Bt.div`
|
|
1795
1795
|
display: flex;
|
|
1796
1796
|
flex-direction: column;
|
|
1797
1797
|
gap: 0;
|
|
@@ -1805,9 +1805,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1805
1805
|
|
|
1806
1806
|
position: absolute;
|
|
1807
1807
|
${({$alignX:e})=>`${e}: 0;`}
|
|
1808
|
-
${({$alignY:e,$
|
|
1808
|
+
${({$alignY:e,$withOffsetY:t})=>`${e===nu.Bottom?"top":"bottom"}: ${t?"calc(100% + 8px)":"0"};`}
|
|
1809
1809
|
z-index: 1;
|
|
1810
|
-
`,au=
|
|
1810
|
+
`,au=Bt.div`
|
|
1811
1811
|
display: flex;
|
|
1812
1812
|
flex-direction: column;
|
|
1813
1813
|
gap: 0;
|
|
@@ -1815,7 +1815,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1815
1815
|
width: 100%;
|
|
1816
1816
|
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
1817
1817
|
overflow-y: auto;
|
|
1818
|
-
`,su=
|
|
1818
|
+
`,su=Bt.div`
|
|
1819
1819
|
display: flex;
|
|
1820
1820
|
align-items: center;
|
|
1821
1821
|
gap: 8px;
|
|
@@ -1831,14 +1831,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1831
1831
|
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
1832
1832
|
}
|
|
1833
1833
|
`}
|
|
1834
|
-
`,lu=({defaultOpen:e,alignX:t,alignY:i,items:n,selectedIds:o,setSelectedIds:r,withMultiSelect:a,withSearch:s,fullWidth:l,maxHeight:c,buttonProps:d,iconButtonProps:p})=>{const
|
|
1834
|
+
`,lu=({defaultOpen:e,alignX:t,alignY:i,items:n,selectedIds:o,setSelectedIds:r,withMultiSelect:a,withSearch:s,fullWidth:l,maxHeight:c,buttonProps:d,iconButtonProps:p,children:u})=>{const h=Lt(),m=!!d||!!p||!!u,[g,$]=yt(e??!m),[x,f]=yt({x:t||iu.Left,y:i||nu.Bottom}),b=e=>{$(e=>!e),f({x:t||(e.clientX>window.innerWidth/2?iu.Right:iu.Left),y:i||(e.clientY>window.innerHeight/2?nu.Top:nu.Bottom)})},y=e=>{r(a?o.includes(e)?o.filter(t=>t!==e):[...o,e]:[e]),m&&!a&&$(!1)},w=vt(null);Vr(w,()=>$(!1));const[v,k]=yt(""),C=bt(()=>v?n.filter(e=>e?.label?.toLowerCase().includes(v.toLowerCase())):n,[n.length,v]);return _t(ou,{ref:w,children:[d&&Nt(Np,{...d,fullWidth:l,rightIcon:g?pt:ut,onClick:b}),p&&Nt(_r,{...p,onClick:b}),"function"==typeof u?u({ChevronIcon:g?pt:ut,handleClick:b}):u,g&&_t(ru,{$alignX:x.x,$alignY:x.y,$fullWidth:l,$withOffsetY:m,children:[s&&Nt(Yp,{value:v,onChange:k,width:"100%"}),Nt(au,{$maxHeight:c,children:C.map(e=>{if(!e)return null;const{id:t,label:i,icon:n,withCheckbox:r}=e,a=o.includes(t);return _t(su,{$selected:a&&!r,onClick:()=>y(t),children:[r&&Nt(Qp,{value:a,onChange:()=>y(t)}),n&&Nt(n,{size:14,fill:h.v2.colors.white[500]}),Nt(so,{size:ro.XS,nowrap:!0,children:i})]},t)})}),a&&Nt(Np,{label:"Done",onClick:()=>$(!1)})]})]})};var cu;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(cu||(cu={}));const du=({onAnyClick:e,actions:t})=>Nt(ia,{$gap:8,$alignItems:"center",children:t?.map(t=>{if(!t)return null;switch(t.type){case cu.Button:return Nt(Np,{...t.buttonProps,onClick:i=>{t.buttonProps?.onClick?.(i),e?.()}},t.id);case cu.ButtonDropData:return Nt(lu,{...t.dropDataProps,items:t.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:i=>{t.buttonProps?.onClick?.(i[0]),e?.()},buttonProps:t.buttonProps},t.id);default:return null}})}),pu=Bt.div`
|
|
1835
1835
|
display: flex;
|
|
1836
1836
|
align-items: center;
|
|
1837
1837
|
justify-content: center;
|
|
1838
1838
|
padding: 8px;
|
|
1839
1839
|
border-radius: 8px;
|
|
1840
1840
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1841
|
-
`,uu=({icon:e,title:t,subTitle:i,withCopy:n,badge:o,children:r})=>{const a=Lt(),{CopyButton:s}=
|
|
1841
|
+
`,uu=({icon:e,title:t,subTitle:i,withCopy:n,badge:o,children:r})=>{const a=Lt(),{CopyButton:s}=Rr();return _t(ia,{$gap:i?8:6,$alignItems:"center",children:[i?Nt(pu,{children:Nt(e,{size:24})}):Nt(e,{size:24}),_t(na,{children:[_t(ia,{$gap:6,$alignItems:"center",children:[Nt(so,{nowrap:!0,children:t}),n&&Nt(s,{value:t,size:Or.XS}),o&&Nt(co,{...o})]}),i&&Nt(so,{size:ro.XXS,color:a.v2.colors.silver[200],nowrap:!0,children:i})]}),r]})};var hu;!function(e){e.S="small",e.M="medium"}(hu||(hu={}));const mu=Bt.div`
|
|
1842
1842
|
display: flex;
|
|
1843
1843
|
flex-direction: column;
|
|
1844
1844
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -1846,7 +1846,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1846
1846
|
padding: ${({$padding:e})=>e}px;
|
|
1847
1847
|
border-radius: 16px;
|
|
1848
1848
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1849
|
-
`,gu=({size:e=hu.M,richTitle:t,search:i,actions:n,children:o})=>{const r=e===hu.S?4:16,a=e===hu.S?12:16;return _t(mu,{$padding:a,$gap:r,children:[_t(ia,{$gap:r,$justifyContent:"space-between",children:[Nt(uu,{...t,children:i&&Nt(Yp,{...i})}),Nt(du,{actions:n??[]})]}),o]})},$u=
|
|
1849
|
+
`,gu=({size:e=hu.M,richTitle:t,search:i,actions:n,children:o})=>{const r=e===hu.S?4:16,a=e===hu.S?12:16;return _t(mu,{$padding:a,$gap:r,children:[_t(ia,{$gap:r,$justifyContent:"space-between",children:[Nt(uu,{...t,children:i&&Nt(Yp,{...i})}),Nt(du,{actions:n??[]})]}),o]})},$u=Bt.div`
|
|
1850
1850
|
flex: 1;
|
|
1851
1851
|
align-self: stretch;
|
|
1852
1852
|
display: flex;
|
|
@@ -1855,7 +1855,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1855
1855
|
padding: 16px;
|
|
1856
1856
|
border-radius: 12px;
|
|
1857
1857
|
background-color: ${({theme:e,$status:t})=>Tn(e,t,t===Di.Unknown?"750":"500")};
|
|
1858
|
-
`,xu=
|
|
1858
|
+
`,xu=Bt.div`
|
|
1859
1859
|
display: flex;
|
|
1860
1860
|
align-items: center;
|
|
1861
1861
|
justify-content: center;
|
|
@@ -1864,7 +1864,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1864
1864
|
padding: 8px;
|
|
1865
1865
|
border-radius: 12px;
|
|
1866
1866
|
background-color: ${({theme:e,$status:t})=>t===Di.Unknown?Tn(e,t,"800"):Tn(e,t,"900")+ur["015"]};
|
|
1867
|
-
`,fu=({status:e,icon:t,title:i,description:n})=>{const o=Lt(),r=t??zn(e,o),a=[Si.Default,Si.Info,Di.Disabled,Di.Unknown].includes(e)?o.v2.colors.white[500]:o.v2.colors.black[500];return _t($u,{$status:e,children:[Nt(xu,{$status:e,children:Nt(r,{size:32,fill:a})}),_t(na,{$gap:2,$justifyContent:"center",children:[Nt(so,{size:ro.M,weight:500,color:a,nowrap:!0,children:i}),Nt(so,{size:ro.XXS,weight:300,color:a,nowrap:!0,children:n})]})]})},bu=
|
|
1867
|
+
`,fu=({status:e,icon:t,title:i,description:n})=>{const o=Lt(),r=t??zn(e,o),a=[Si.Default,Si.Info,Di.Disabled,Di.Unknown].includes(e)?o.v2.colors.white[500]:o.v2.colors.black[500];return _t($u,{$status:e,children:[Nt(xu,{$status:e,children:Nt(r,{size:32,fill:a})}),_t(na,{$gap:2,$justifyContent:"center",children:[Nt(so,{size:ro.M,weight:500,color:a,nowrap:!0,children:i}),Nt(so,{size:ro.XXS,weight:300,color:a,nowrap:!0,children:n})]})]})},bu=Bt.div`
|
|
1868
1868
|
flex: 1;
|
|
1869
1869
|
align-self: stretch;
|
|
1870
1870
|
display: flex;
|
|
@@ -1873,7 +1873,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1873
1873
|
padding: 12px;
|
|
1874
1874
|
border-radius: 12px;
|
|
1875
1875
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1876
|
-
`,yu=["-","N/A"],wu=({title:e,cells:t})=>{const i=Lt();return _t(bu,{children:[Nt(so,{size:ro.XXS,color:i.v2.colors.grey[150],children:e}),Nt(ia,{$gap:32,children:t.map(t=>_t(na,{$gap:2,children:[!t.isLoading||t.value&&!yu.includes(t.value)?Nt(so,{size:t.label?ro.M:ro.L,children:t.value}):Nt($s,{scale:.9}),t.label&&Nt(so,{size:ro.XXS,children:t.label})]},`${e}-${t.label}-${t.value}`))})]})},vu=
|
|
1876
|
+
`,yu=["-","N/A"],wu=({title:e,cells:t})=>{const i=Lt();return _t(bu,{children:[Nt(so,{size:ro.XXS,color:i.v2.colors.grey[150],children:e}),Nt(ia,{$gap:32,children:t.map(t=>_t(na,{$gap:2,children:[!t.isLoading||t.value&&!yu.includes(t.value)?Nt(so,{size:t.label?ro.M:ro.L,children:t.value}):Nt($s,{scale:.9}),t.label&&Nt(so,{size:ro.XXS,children:t.label})]},`${e}-${t.label}-${t.value}`))})]})},vu=Bt(ia)`
|
|
1877
1877
|
width: calc(100% - 20px);
|
|
1878
1878
|
padding: 10px;
|
|
1879
1879
|
border-radius: 6px;
|
|
@@ -1882,33 +1882,33 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1882
1882
|
align-items: center;
|
|
1883
1883
|
justify-content: space-between;
|
|
1884
1884
|
gap: 12px;
|
|
1885
|
-
`,ku=
|
|
1885
|
+
`,ku=Bt.div`
|
|
1886
1886
|
position: relative;
|
|
1887
1887
|
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
1888
1888
|
display: flex;
|
|
1889
1889
|
align-items: center;
|
|
1890
1890
|
gap: 4px;
|
|
1891
|
-
`,Cu=
|
|
1891
|
+
`,Cu=Bt.pre`
|
|
1892
1892
|
flex: 1;
|
|
1893
1893
|
margin: 0;
|
|
1894
1894
|
padding: 0;
|
|
1895
1895
|
font-size: 14px;
|
|
1896
1896
|
color: #5ffb98; // TODO: add to theme
|
|
1897
1897
|
overflow-x: auto;
|
|
1898
|
-
`,Su=
|
|
1898
|
+
`,Su=Bt.span`
|
|
1899
1899
|
flex-shrink: 0;
|
|
1900
1900
|
font-size: 14px;
|
|
1901
1901
|
color: #5ffb98; // TODO: add to theme
|
|
1902
|
-
`,Eu=({value:e,hideCopy:t=!1,onDone:i})=>{const{CopyButton:n}=
|
|
1902
|
+
`,Eu=({value:e,hideCopy:t=!1,onDone:i})=>{const{CopyButton:n}=Rr({onDone:i}),o=vt(null),[r,a]=yt(!1);return wt(()=>{const e=()=>{if(o.current){const{scrollWidth:e,clientWidth:t}=o.current;a(e>t)}};e();const t=new ResizeObserver(e);return o.current&&t.observe(o.current),()=>{t.disconnect()}},[e]),_t(vu,{children:[_t(ku,{$hideCopy:t,children:[Nt(Cu,{ref:o,children:e}),r&&Nt(Su,{children:"..."})]}),!t&&Nt(n,{value:e,size:Or.XS})]})},Au=Bt.div`
|
|
1903
1903
|
display: flex;
|
|
1904
1904
|
align-items: center;
|
|
1905
1905
|
justify-content: space-between;
|
|
1906
1906
|
width: calc(100%);
|
|
1907
|
-
`,Du=
|
|
1907
|
+
`,Du=Bt.div`
|
|
1908
1908
|
display: flex;
|
|
1909
1909
|
align-items: center;
|
|
1910
1910
|
gap: 16px;
|
|
1911
|
-
`,Tu=
|
|
1911
|
+
`,Tu=Bt.div`
|
|
1912
1912
|
display: flex;
|
|
1913
1913
|
align-items: center;
|
|
1914
1914
|
justify-content: center;
|
|
@@ -1916,11 +1916,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1916
1916
|
height: 36px;
|
|
1917
1917
|
border-radius: 8px;
|
|
1918
1918
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1919
|
-
`,Fu=
|
|
1919
|
+
`,Fu=Bt.div`
|
|
1920
1920
|
display: flex;
|
|
1921
1921
|
align-items: center;
|
|
1922
1922
|
gap: 12px;
|
|
1923
|
-
`,zu=({icon:e,title:t,actions:i,onClose:n,onCloseDisabled:o})=>_t(Au,{children:[_t(Du,{children:[Nt(Tu,{children:Nt(e,{size:24})}),Nt(so,{size:ro.S,children:t})]}),_t(Fu,{children:[i?.length?Nt(_r,{icon:ht,size:Or.M,onClick:()=>alert("todo")}):null,Nt(_r,{icon:Ye,size:Or.M,onClick:n,disabled:o})]})]}),Iu=
|
|
1923
|
+
`,zu=({icon:e,title:t,actions:i,onClose:n,onCloseDisabled:o})=>_t(Au,{children:[_t(Du,{children:[Nt(Tu,{children:Nt(e,{size:24})}),Nt(so,{size:ro.S,children:t})]}),_t(Fu,{children:[i?.length?Nt(_r,{icon:ht,size:Or.M,onClick:()=>alert("todo")}):null,Nt(_r,{icon:Ye,size:Or.M,onClick:n,disabled:o})]})]}),Iu=Bt.div`
|
|
1924
1924
|
position: fixed;
|
|
1925
1925
|
top: 0;
|
|
1926
1926
|
bottom: 0;
|
|
@@ -1939,51 +1939,24 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
1939
1939
|
overflow: hidden;
|
|
1940
1940
|
|
|
1941
1941
|
animation-name: ${({$position:e})=>mr.in[e]};
|
|
1942
|
-
`,Ou=
|
|
1942
|
+
`,Ou=Bt.div`
|
|
1943
1943
|
display: flex;
|
|
1944
1944
|
flex-direction: column;
|
|
1945
1945
|
gap: 12px;
|
|
1946
1946
|
|
|
1947
1947
|
height: calc(100% - ${56}px);
|
|
1948
1948
|
overflow-y: auto;
|
|
1949
|
-
`,Nu=({isOpen:e,hideOverlay:t=!1,position:i="right",width:n="600px",header:o,children:r})=>(Tr(e),e?Gt(_t(
|
|
1949
|
+
`,Nu=({isOpen:e,hideOverlay:t=!1,position:i="right",width:n="600px",header:o,children:r})=>(Tr(e),e?Gt(_t(Rt,{children:[!t&&Nt(aa,{onClick:o.onCloseDisabled?void 0:o.onClose}),_t(Iu,{$position:i,$width:n,children:[Nt(zu,{...o}),Nt(Ou,{children:r})]})]}),document.body):null),_u=Bt.span`
|
|
1950
1950
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1951
1951
|
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
1952
1952
|
font-weight: 400;
|
|
1953
1953
|
color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
|
|
1954
|
-
`,Ru=
|
|
1954
|
+
`,Ru=Bt.span`
|
|
1955
1955
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1956
1956
|
font-size: 14px;
|
|
1957
1957
|
font-weight: 400;
|
|
1958
1958
|
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
1959
|
-
`,
|
|
1960
|
-
position: relative;
|
|
1961
|
-
width: calc(100% - 36px);
|
|
1962
|
-
padding: 12px 18px;
|
|
1963
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1964
|
-
display: flex;
|
|
1965
|
-
align-items: center;
|
|
1966
|
-
justify-content: space-between;
|
|
1967
|
-
`,Pu=Rt(ia)`
|
|
1968
|
-
position: absolute;
|
|
1969
|
-
left: 50%;
|
|
1970
|
-
transform: translateX(-50%);
|
|
1971
|
-
gap: 16px;
|
|
1972
|
-
`,ju=({left:e=[],center:t=[],right:i=[]})=>_t(Lu,{children:[Nt(ia,{$gap:16,children:e}),Nt(Pu,{children:t}),Nt(ia,{$gap:16,children:i})]}),Uu=Rt.div`
|
|
1973
|
-
display: flex;
|
|
1974
|
-
align-items: center;
|
|
1975
|
-
gap: 2px;
|
|
1976
|
-
width: fit-content;
|
|
1977
|
-
padding: 4px;
|
|
1978
|
-
border-radius: 8px;
|
|
1979
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
1980
|
-
box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
|
|
1981
|
-
|
|
1982
|
-
position: absolute;
|
|
1983
|
-
right: ${({$right:e})=>e||"12px"};
|
|
1984
|
-
top: 50%;
|
|
1985
|
-
transform: translateY(-50%);
|
|
1986
|
-
`,Wu=({isOpen:e,actions:t,positionRight:i})=>e?Nt(Uu,{$right:i,children:t.map(e=>e?Nt(Fa,{text:e.tooltip||"",children:Nt(Np,{...e,variant:zp.Secondary,size:Ip.S,label:e.label})},e.id):null)}):null,Vu=Rt.div`
|
|
1959
|
+
`,Bu=({label:e,tooltip:t,required:i,width:n,smallAndDark:o})=>e||t||i?_t(ia,{$width:n,$justifyContent:"space-between",children:[e&&Nt(_u,{$smallAndDark:o,children:e}),_t(ia,{$gap:4,children:[i&&Nt(Ru,{children:"*"}),t&&Nt(Fa,{text:t,withIcon:!0})]})]}):null,Mu=({errorMessage:e,helpMessage:t})=>{const i=Lt(),n=e?i.v2.colors.red[500]:i.v2.colors.silver[200],o=Nt(He,{size:12,fill:n});return e||t?_t(ia,{$gap:4,children:[Nt("div",{children:o}),Nt(so,{size:ro.XXS,weight:400,color:n,children:e||t})]}):null},Lu=Bt.div`
|
|
1987
1960
|
padding: ${({$small:e})=>e?"4px":"8px 12px"};
|
|
1988
1961
|
|
|
1989
1962
|
display: flex;
|
|
@@ -2001,7 +1974,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2001
1974
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
2002
1975
|
}
|
|
2003
1976
|
`}
|
|
2004
|
-
`,
|
|
1977
|
+
`,Pu=Bt.input`
|
|
2005
1978
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
2006
1979
|
width: ${({$width:e})=>e||"unset"};
|
|
2007
1980
|
|
|
@@ -2027,22 +2000,49 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2027
2000
|
overflow: hidden;
|
|
2028
2001
|
text-overflow: ellipsis;
|
|
2029
2002
|
white-space: nowrap;
|
|
2030
|
-
`,
|
|
2003
|
+
`,ju=Bt.div`
|
|
2031
2004
|
display: flex;
|
|
2032
2005
|
align-items: center;
|
|
2033
2006
|
justify-content: center;
|
|
2034
2007
|
cursor: pointer;
|
|
2035
|
-
`,
|
|
2008
|
+
`,Uu=({label:e,required:t,tooltip:i,leftIcon:n,rightIcon:o,hasError:r,errorMessage:a,helpMessage:s,type:l=Ci.Text,name:c,value:d,onChange:p,disabled:u,maxWidth:h,width:m,small:g=!1,...$})=>{const x=Lt(),f=l===Ci.Password,[b,y]=yt(!1),w=d?x.v2.colors.white[500]:u?x.v2.colors.grey[400]:x.v2.colors.silver[200],v=g?14:18;return _t(na,{$width:m,$gap:6,children:[Nt(Bu,{label:e,tooltip:i,required:t}),_t(Lu,{$small:g,$disabled:u,$error:r||!!a,children:[n?Nt(n,{size:v,fill:w}):null,Nt(Pu,{"data-id":c,type:b||l===Ci.Number?Ci.Text:l,name:c,value:d,onChange:e=>{e.stopPropagation(),l===Ci.Number&&(e.target.value=Jn(e.target.value)),p?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:u,$maxWidth:h,$width:m,$small:g,...$}),f?Nt(ju,{onClick:()=>y(e=>!e),children:Nt(b?nt:ot,{size:v,fill:w})}):o?Nt(o,{size:v,fill:w}):null]}),Nt(Mu,{errorMessage:a,helpMessage:s})]})},Wu=({options:e,values:t,setValues:i,withMultiSelect:n,withSearch:o,...r})=>{const a=bt(()=>e.map(e=>({...e,withCheckbox:!0})),[e]),s=bt(()=>t?.length?`Selected: ${e.filter(e=>t.includes(e.id)).map(e=>e.label).join(", ")}`:"",[e,t]);return Nt(lu,{withMultiSelect:n,withSearch:o,alignX:iu.Left,items:a,selectedIds:t,setSelectedIds:i,children:({ChevronIcon:e,handleClick:t})=>Nt(Uu,{...r,rightIcon:e,placeholder:"Select options...",value:s,onChange:()=>{},onClick:t})})},Vu=Bt.header`
|
|
2009
|
+
position: relative;
|
|
2010
|
+
width: calc(100% - 36px);
|
|
2011
|
+
padding: 12px 18px;
|
|
2012
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
2013
|
+
display: flex;
|
|
2014
|
+
align-items: center;
|
|
2015
|
+
justify-content: space-between;
|
|
2016
|
+
`,qu=Bt(ia)`
|
|
2017
|
+
position: absolute;
|
|
2018
|
+
left: 50%;
|
|
2019
|
+
transform: translateX(-50%);
|
|
2020
|
+
gap: 16px;
|
|
2021
|
+
`,Hu=({left:e=[],center:t=[],right:i=[]})=>_t(Vu,{children:[Nt(ia,{$gap:16,children:e}),Nt(qu,{children:t}),Nt(ia,{$gap:16,children:i})]}),Gu=Bt.div`
|
|
2022
|
+
display: flex;
|
|
2023
|
+
align-items: center;
|
|
2024
|
+
gap: 2px;
|
|
2025
|
+
width: fit-content;
|
|
2026
|
+
padding: 4px;
|
|
2027
|
+
border-radius: 8px;
|
|
2028
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
2029
|
+
box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
|
|
2030
|
+
|
|
2031
|
+
position: absolute;
|
|
2032
|
+
right: ${({$right:e})=>e||"12px"};
|
|
2033
|
+
top: 50%;
|
|
2034
|
+
transform: translateY(-50%);
|
|
2035
|
+
`,Ku=({isOpen:e,actions:t,positionRight:i})=>e?Nt(Gu,{$right:i,children:t.map(e=>e?Nt(Fa,{text:e.tooltip||"",children:Nt(Np,{...e,variant:zp.Secondary,size:Ip.S,label:e.label})},e.id):null)}):null,Yu=({values:e,setValues:t,label:i,tooltip:n,required:o,errorMessage:r,helpMessage:a,placeholder:s,disabled:l})=>{const c=Lt(),d=e.length<=1,p=l,u=l||d&&p;return _t(na,{$gap:6,children:[Nt(Bu,{label:i,tooltip:n,required:o,width:"calc(100% - 74px)"}),Nt(na,{$gap:8,children:(e.length?e:[""]).map((i,n)=>{const o=n===e.length-1;return _t(ia,{$gap:8,$alignItems:"center",children:[Nt(Uu,{width:"100%",autoFocus:Mn(i)&&!d&&o,value:i,onChange:i=>((i,n)=>{const o=[...e||[]];o[n]=i,t(o)})(i.target.value,n),disabled:l,placeholder:s,hasError:!!r}),Nt(Np,{leftIcon:et,variant:zp.Secondary,size:Ip.S,disabled:p,onClick:()=>(()=>{const i=[...e||[]];i.push(""),t(i)})()}),Nt(Np,{leftIcon:u?at:()=>Nt(at,{fill:c.v2.colors.red[500]}),variant:zp.Secondary,size:Ip.S,disabled:u,onClick:()=>(i=>{const n=[...e||[]].filter((e,t)=>t!==i);n.length||n.push(""),t(n)})(n)})]},`input-list-${n}`)})}),Nt(Mu,{errorMessage:r,helpMessage:a})]})},Ju=({col:e,colIdx:t,row:i,rowIdx:n,rowsLength:o,handleChange:r,errorMessage:a,disabled:s})=>{const{keyName:l,placeholder:c,inputType:d,componentType:p,options:u,renderCondition:h}=e,m=i[l];if(h&&!h(i))return null;switch(p){case ki.Dropdown:case"multi-dropdown":const e=Array.isArray(m)&&u?.filter(e=>m.includes(e.id)).map(e=>e.id)||[],i="multi-dropdown"===p;return Nt(Wu,{placeholder:c,options:u||[],withMultiSelect:i,withSearch:i,values:e,setValues:e=>r(l,e,n),disabled:s,hasError:!!a});default:const h=o>1&&0===n&&0===t&&Mn(m);return Nt(Uu,{placeholder:c,autoFocus:h,type:d,value:m,onChange:({target:{value:e}})=>r(l,e,n),disabled:s,hasError:!!a})}},Xu=Bt.table`
|
|
2036
2036
|
width: 100%;
|
|
2037
2037
|
border-collapse: separate;
|
|
2038
2038
|
border-spacing: 0 8px;
|
|
2039
|
-
`,
|
|
2039
|
+
`,Zu=Bt.td`
|
|
2040
2040
|
padding: 0 8px 0 0;
|
|
2041
|
-
`,
|
|
2041
|
+
`,Qu=Bt.td`
|
|
2042
2042
|
width: 72px;
|
|
2043
2043
|
padding-bottom: ${({$limitFieldsPerRow:e})=>e?"4px":"0"};
|
|
2044
2044
|
vertical-align: ${({$limitFieldsPerRow:e})=>e?"bottom":"middle"};
|
|
2045
|
-
`,
|
|
2045
|
+
`,eh=({columns:e,values:t,setValues:i,label:n,tooltip:o,required:r,disabled:a,errorMessage:s,helpMessage:l,limitFieldsPerRow:c})=>{const d=Lt(),p=bt(()=>{const t={};return e.forEach(({keyName:e})=>t[e]=""),t},[e]),u=(e,n,o)=>{const r=t.length?ii(t):[ii(p)];r[o][e]=n,i(r)},h=bt(()=>{if(c){const t=[];for(let i=0;;i+=c){const n=e.slice(i,i+c);if(!n.length)break;t.push(n)}return t}return[e]},[c,e]),m=t.length?t:[p];return _t(na,{$gap:6,children:[Nt(Bu,{label:n,tooltip:o,required:r,width:"calc(100% - 82px)"}),Nt(Xu,{children:Nt("tbody",{children:m.map((e,n)=>_t(ft,{children:[c&&n>0?Nt("tr",{children:Nt(Zu,{colSpan:h.length})}):null,h.map((o,r)=>_t("tr",{children:[o.map((t,i)=>t.renderCondition&&!t.renderCondition(e)?null:_t(Zu,{children:[Nt(Bu,{label:t.label,tooltip:t.tooltip,smallAndDark:!0}),Nt(pa,{$height:"4px"}),Nt(Ju,{col:t,colIdx:i,row:e,rowIdx:n,rowsLength:m.length,handleChange:u,disabled:a,errorMessage:s})]},`input-table-row-${n}-col-${r}-${i}`)),0===r&&Nt(Qu,{$limitFieldsPerRow:c,children:_t(ia,{$gap:8,$justifyContent:"center",children:[Nt(Np,{leftIcon:et,variant:zp.Secondary,size:Ip.S,disabled:a,onClick:()=>(()=>{const e=ii(t);e.push(ii(p)),i(e)})()}),Nt(Np,{leftIcon:a?at:()=>Nt(at,{fill:d.v2.colors.red[500]}),variant:zp.Secondary,size:Ip.S,disabled:a,onClick:()=>(e=>{const n=t.filter((t,i)=>i!==e);n.length||n.push(ii(p)),i(n)})(n)})]})})]},`input-table-matrix-${n}-${r}`))]},`input-table-row-${n}`))})}),Nt(Mu,{errorMessage:s,helpMessage:l})]})},th=Bt.div`
|
|
2046
2046
|
display: flex;
|
|
2047
2047
|
align-items: center;
|
|
2048
2048
|
justify-content: space-between;
|
|
@@ -2057,11 +2057,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2057
2057
|
bottom: 0;
|
|
2058
2058
|
left: 50%;
|
|
2059
2059
|
animation-name: ${mr.in.center};
|
|
2060
|
-
`,
|
|
2060
|
+
`,ih=({isOpen:e,onClose:t,richTitle:i,actions:n})=>e?_t(th,{children:[Nt(uu,{...i}),Nt(du,{onAnyClick:t,actions:n})]}):null,nh=Bt.div`
|
|
2061
2061
|
border-radius: 100%;
|
|
2062
2062
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
2063
2063
|
position: relative;
|
|
2064
|
-
`,
|
|
2064
|
+
`,oh=Bt.div`
|
|
2065
2065
|
width: 80px;
|
|
2066
2066
|
height: 80px;
|
|
2067
2067
|
border-radius: 100%;
|
|
@@ -2075,12 +2075,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2075
2075
|
transform: rotate(360deg);
|
|
2076
2076
|
}
|
|
2077
2077
|
}
|
|
2078
|
-
`,
|
|
2078
|
+
`,rh=Bt(so)`
|
|
2079
2079
|
position: absolute;
|
|
2080
2080
|
top: 50%;
|
|
2081
2081
|
left: 50%;
|
|
2082
2082
|
transform: translate(-50%, -50%);
|
|
2083
|
-
`,
|
|
2083
|
+
`,ah=({percentage:e})=>_t(nh,{children:[Nt(oh,{}),"number"==typeof e?Nt(rh,{size:ro.M,weight:500,children:`${e}%`}):null]}),sh={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 lh(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const i=(e.match(/^[0-9.]*/)||"").toString();t=i.includes(".")?parseFloat(i):parseInt(i,10);const n=(e.match(/[^0-9]*$/)||"").toString();return sh[n]?{value:t,unit:n}:{value:t,unit:"px"}}function ch(e){const t=lh(e);return`${t.value}${t.unit}`}const dh=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const i=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return i&&i.insertRule(n,0),e})(),ph=({loading:e=!0,color:t,scale:i=1,speedMultiplier:n=1,cssOverride:o={},style:r={},...a})=>{const s=Lt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=lh(2),d=c+4.2,p=d/2+d/5.5,u=4*d*i,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:i,...r,...o},m=(e,t)=>({position:"absolute",width:ch(1.5),height:ch(4),borderRadius:ch(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${dh} ${1.2/n}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return _t("span",{style:h,...a,children:[Nt("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),Nt("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),Nt("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),Nt("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),Nt("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),Nt("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),Nt("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),Nt("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}})]})},uh=Bt.div`
|
|
2084
2084
|
width: ${({$size:e})=>e}px;
|
|
2085
2085
|
height: ${({$size:e})=>e}px;
|
|
2086
2086
|
border-radius: 100%;
|
|
@@ -2088,7 +2088,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2088
2088
|
display: flex;
|
|
2089
2089
|
align-items: center;
|
|
2090
2090
|
justify-content: center;
|
|
2091
|
-
`,
|
|
2091
|
+
`,hh=({scale:e,icon:t})=>{const i=Lt();return Nt(uh,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:Nt(uh,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:Nt(uh,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:Nt(uh,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:Nt(uh,{$size:23*e,$color:"#50F6E8",children:Nt(t,{size:16*e,fill:i.v2.colors.black[500]})})})})})})},mh=434,gh=635,$h=Bt.div`
|
|
2092
2092
|
width: ${434}px;
|
|
2093
2093
|
height: ${635}px;
|
|
2094
2094
|
display: flex;
|
|
@@ -2098,25 +2098,25 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2098
2098
|
padding: 16px;
|
|
2099
2099
|
background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
|
|
2100
2100
|
position: relative;
|
|
2101
|
-
|
|
2101
|
+
`,xh=Bt.div`
|
|
2102
2102
|
position: absolute;
|
|
2103
2103
|
top: 50%;
|
|
2104
2104
|
left: 50%;
|
|
2105
2105
|
transform: translate(-50%, -50%);
|
|
2106
|
-
`,
|
|
2106
|
+
`,fh=()=>_t($h,{children:[Nt(xh,{children:_t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[Nt("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)"}),Nt("defs",{children:_t("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[Nt("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Nt("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Nt("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),Nt("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),Nt("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),Nt("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),Nt("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),Nt("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),Nt("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),Nt(xh,{children:_t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[Nt("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)"}),Nt("defs",{children:_t("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[Nt("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Nt("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Nt("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),Nt("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),Nt("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),Nt("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),Nt("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),Nt("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),Nt("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),Nt("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),Nt("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Nt(xh,{children:_t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[Nt("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)"}),Nt("defs",{children:_t("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[Nt("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Nt("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Nt("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),Nt("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),Nt("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),Nt("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),Nt("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),Nt("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),Nt("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),Nt("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),Nt("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Nt(xh,{children:_t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[Nt("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)"}),Nt("defs",{children:_t("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[Nt("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),Nt("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),Nt("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),Nt("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),Nt("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),Nt("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),Nt("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),Nt("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),Nt("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),Nt("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),Nt("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),Nt(xh,{children:Nt(q,{size:112})})]}),bh=jt`
|
|
2107
2107
|
0% {
|
|
2108
2108
|
background-position: 0% 50%;
|
|
2109
2109
|
}
|
|
2110
2110
|
100% {
|
|
2111
2111
|
background-position: 100% 50%;
|
|
2112
2112
|
}
|
|
2113
|
-
`,
|
|
2113
|
+
`,yh=Bt(so)`
|
|
2114
2114
|
background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
2115
2115
|
background-size: 250% 100%; /* Expand background to allow movement */
|
|
2116
2116
|
background-clip: text;
|
|
2117
2117
|
color: transparent;
|
|
2118
|
-
animation: ${
|
|
2119
|
-
`,
|
|
2118
|
+
animation: ${bh} 1s reverse linear infinite;
|
|
2119
|
+
`,wh=e=>{const t=Math.max(0,Date.now()-e),i=Math.floor(t/1e3),n=Math.floor(i/60),o=i%60;return`${String(n).padStart(2,"0")}:${String(o).padStart(2,"0")}`},vh=({icon:e,title:t,titleColor:i,titleSize:n=ro.S,subTitle:o,subTitleColor:r,subTitleSize:a=ro.XXXS,startedAt:s,withGradient:l,gradientColor:c,withSpinner:d,percentage:p,withVisual:u,visualIcon:h=mt})=>{const m=Lt(),[g,$]=yt(()=>s?wh(s):"");wt(()=>{if(!s)return;$(wh(s));const e=setInterval(()=>$(wh(s)),1e3);return()=>clearInterval(e)},[s]);const x=i||m.v2.colors.white[500],f=r||m.v2.colors.silver[200],b=c||m.v2.colors.black[500];return _t(na,{$gap:16,$alignItems:"center",children:[!u&&d?"number"==typeof p?Nt(ah,{percentage:p}):Nt(ph,{scale:t||o?2:1}):null,u&&!d?Nt(hh,{scale:1.7,icon:h}):null,(t||o||s||e)&&_t(na,{$gap:8,$alignItems:"center",children:[_t(ia,{$gap:4,children:[e&&Nt(e,{}),l?Nt(yh,{align:"center",size:n,$titleColor:x,$gradientColor:b,children:t}):Nt(so,{align:"center",size:n,color:x,children:t})]}),o?Nt(so,{align:"center",size:a,color:f,children:o}):null,g?Nt(so,{align:"center",size:a,color:x,children:g}):null]})]})},kh=Bt.div`
|
|
2120
2120
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
2121
2121
|
top: 50%;
|
|
2122
2122
|
left: 50%;
|
|
@@ -2129,13 +2129,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2129
2129
|
overflow: hidden;
|
|
2130
2130
|
|
|
2131
2131
|
animation-name: ${mr.in.center};
|
|
2132
|
-
`,
|
|
2132
|
+
`,Ch=Bt.div`
|
|
2133
2133
|
position: relative;
|
|
2134
|
-
`,
|
|
2134
|
+
`,Sh=Bt.div`
|
|
2135
2135
|
position: absolute;
|
|
2136
2136
|
top: 16px;
|
|
2137
2137
|
left: 16px;
|
|
2138
|
-
`,
|
|
2138
|
+
`,Eh=({isOpen:e,hideOverlay:t=!1,relativeToParent:i=!1,onBack:n,onClose:o,children:r})=>{if(Tr(e),!e)return null;const a=_t(Rt,{children:[!t&&Nt(aa,{$relativeToParent:i,onClick:o}),Nt(kh,{$relativeToParent:i,children:_t(Ch,{children:[n&&Nt(Sh,{children:Nt(_r,{icon:e=>Nt(dt,{rotate:-90,...e}),size:Or.L,onClick:n})}),r]})})]});return i?a:Gt(a,document.body)},Ah=Bt.aside`
|
|
2139
2139
|
display: flex;
|
|
2140
2140
|
flex-direction: column;
|
|
2141
2141
|
gap: 8px;
|
|
@@ -2144,7 +2144,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2144
2144
|
padding: 16px 12px;
|
|
2145
2145
|
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
2146
2146
|
overflow-y: auto;
|
|
2147
|
-
`,
|
|
2147
|
+
`,Dh=({height:e,icons:t})=>Nt(Ah,{$height:e,children:t.map(({id:e,selected:t,icon:i,onClick:n})=>Nt(Np,{label:"",leftIcon:i,iconSize:24,onClick:n,variant:t?zp.Primary:zp.Text},e))}),Th=Bt.div`
|
|
2148
2148
|
display: flex;
|
|
2149
2149
|
align-items: center;
|
|
2150
2150
|
gap: 10px;
|
|
@@ -2154,7 +2154,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2154
2154
|
padding: 4px 12px 4px 4px;
|
|
2155
2155
|
border-radius: 8px;
|
|
2156
2156
|
background-color: ${({theme:e,$status:t})=>Tn(e,t,[Si.Info].includes(t)?"1000":"900")};
|
|
2157
|
-
`,
|
|
2157
|
+
`,Fh=Bt.div`
|
|
2158
2158
|
width: 32px;
|
|
2159
2159
|
height: 32px;
|
|
2160
2160
|
display: flex;
|
|
@@ -2162,50 +2162,50 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2162
2162
|
justify-content: center;
|
|
2163
2163
|
border-radius: 6px;
|
|
2164
2164
|
background-color: ${({theme:e,$status:t})=>Tn(e,t,[Si.Info].includes(t)?"900":"800")};
|
|
2165
|
-
`,
|
|
2165
|
+
`,zh=Bt.div`
|
|
2166
2166
|
margin-left: auto;
|
|
2167
2167
|
margin-right: 8px;
|
|
2168
2168
|
cursor: pointer;
|
|
2169
2169
|
&:hover {
|
|
2170
2170
|
transform: scale(1.2);
|
|
2171
2171
|
}
|
|
2172
|
-
`,
|
|
2172
|
+
`,Ih=({status:e,message:t,action:i,fullWidth:n})=>{const o=Lt(),r=zn(e,o),a=Tn(o,e,e===Si.Default?"300":e===Si.Info?"400":"500");return _t(Th,{$status:e,$fullWidth:n,children:[Nt("div",{children:Nt(Fh,{$status:e,children:Nt(r,{size:24})})}),Nt(so,{color:a,size:ro.XXXS,weight:400,children:t}),i&&Nt(zh,{onClick:i.onClick,children:Nt(so,{color:a,size:ro.XXS,weight:500,underline:!0,children:i.label})})]})};var Oh;!function(e){e.S="small",e.L="large"}(Oh||(Oh={}));const Nh=Bt.div`
|
|
2173
2173
|
width: fit-content;
|
|
2174
2174
|
display: flex;
|
|
2175
2175
|
align-items: center;
|
|
2176
2176
|
gap: 8px;
|
|
2177
2177
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
2178
|
-
`,
|
|
2179
|
-
width: ${({$size:e})=>e===
|
|
2180
|
-
height: ${({$size:e})=>e===
|
|
2178
|
+
`,_h=Bt.div`
|
|
2179
|
+
width: ${({$size:e})=>e===Oh.S?"16px":"20px"};
|
|
2180
|
+
height: ${({$size:e})=>e===Oh.S?"16px":"20px"};
|
|
2181
2181
|
display: flex;
|
|
2182
2182
|
align-items: center;
|
|
2183
2183
|
justify-content: center;
|
|
2184
2184
|
border-radius: 100%;
|
|
2185
2185
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
2186
2186
|
background-color: ${({$backgroundColor:e})=>e};
|
|
2187
|
-
`,
|
|
2187
|
+
`,Rh=({label:e,value:t,onChange:i,disabled:n,size:o=Oh.L})=>{const r=Lt(),[a,s]=yt(!1),l=t,c=o===Oh.S?6:8,d=n?r.v2.colors.grey[400]:r.v2.colors.white[500],p=l?"transparent":n?r.v2.colors.grey[700]:a?r.v2.colors.silver[400]:r.v2.colors.silver[600],u=n?r.v2.colors.grey[600]:l?r.v2.colors.purple[500]:r.v2.colors.silver[900];return _t(Nh,{"data-id":"radio"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),n||i(!t)},$disabled:n,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[Nt(_h,{$size:o,$borderColor:p,$backgroundColor:u,children:t?Nt(gt,{size:c,fill:d}):null}),e&&Nt(so,{size:o===Oh.S?ro.XXS:ro.XS,children:e})]})},Bh=Bt.div`
|
|
2188
2188
|
display: flex;
|
|
2189
2189
|
flex-direction: ${({$flexDirection:e})=>e};
|
|
2190
2190
|
gap: ${({$gap:e})=>e}px;
|
|
2191
|
-
`,
|
|
2191
|
+
`,Mh=({label:e,direction:t,disabled:i,size:n,options:o,values:r,setValues:a})=>_t(Bh,{$flexDirection:t===mi.Horizontal?"row":"column",$gap:t===mi.Horizontal?16:8,children:[e&&Nt(so,{children:e}),o.map(t=>Nt(Rh,{...t,value:r[t.id],onChange:e=>{return i=t.id,n=e,void a(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[i]=n,t});var i,n},disabled:i,size:n},`${e}-radio-${t.id}`))]});var Lh;!function(e){e.Data="data",e.Pretty="pretty"}(Lh||(Lh={}));const Ph=Bt.div`
|
|
2192
2192
|
height: ${({$maxHeight:e})=>e};
|
|
2193
2193
|
width: 100%;
|
|
2194
2194
|
overflow: auto;
|
|
2195
|
-
`,
|
|
2195
|
+
`,jh=Bt.table`
|
|
2196
2196
|
width: 100%;
|
|
2197
2197
|
|
|
2198
|
-
${({$variant:e})=>{switch(e){case
|
|
2198
|
+
${({$variant:e})=>{switch(e){case Lh.Data:return Mt`
|
|
2199
2199
|
border-collapse: collapse;
|
|
2200
|
-
`;case
|
|
2200
|
+
`;case Lh.Pretty:return Mt`
|
|
2201
2201
|
border-collapse: separate;
|
|
2202
2202
|
border-spacing: 0 8px;
|
|
2203
2203
|
`;default:return""}}}
|
|
2204
|
-
`,
|
|
2204
|
+
`,Uh=Bt.thead`
|
|
2205
2205
|
position: sticky;
|
|
2206
2206
|
top: 0;
|
|
2207
2207
|
z-index: 1;
|
|
2208
|
-
`,
|
|
2208
|
+
`,Wh=Bt.th`
|
|
2209
2209
|
position: relative;
|
|
2210
2210
|
min-width: ${({$minWidth:e})=>e||"auto"};
|
|
2211
2211
|
padding: 18px 24px;
|
|
@@ -2214,12 +2214,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2214
2214
|
|
|
2215
2215
|
${({$variant:e,$backgroundColor:t})=>{if(t)return Mt`
|
|
2216
2216
|
background-color: ${t};
|
|
2217
|
-
`;switch(e){case
|
|
2217
|
+
`;switch(e){case Lh.Data:return Mt`
|
|
2218
2218
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
2219
|
-
`;case
|
|
2219
|
+
`;case Lh.Pretty:return Mt`
|
|
2220
2220
|
background-color: transparent;
|
|
2221
2221
|
`;default:return""}}}
|
|
2222
|
-
`,
|
|
2222
|
+
`,Vh=Bt.div`
|
|
2223
2223
|
position: absolute;
|
|
2224
2224
|
top: 50%;
|
|
2225
2225
|
right: 0;
|
|
@@ -2227,30 +2227,30 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2227
2227
|
width: 1px;
|
|
2228
2228
|
height: 18px;
|
|
2229
2229
|
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
2230
|
-
`,
|
|
2230
|
+
`,qh=Bt.tbody``,Hh=Bt.td`
|
|
2231
2231
|
position: relative;
|
|
2232
2232
|
padding: 18px 24px;
|
|
2233
2233
|
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
2234
2234
|
|
|
2235
|
-
${({$variant:e,$selected:t,$hovered:i,$isLastRow:n,$isFirstCell:o,$isLastCell:r})=>{switch(e){case
|
|
2235
|
+
${({$variant:e,$selected:t,$hovered:i,$isLastRow:n,$isFirstCell:o,$isLastCell:r})=>{switch(e){case Lh.Data:return Mt`
|
|
2236
2236
|
border: ${({theme:e})=>n?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
2237
2237
|
border-left: none;
|
|
2238
2238
|
border-right: none;
|
|
2239
2239
|
border-radius: ${n?o?"0 0 0 4px":r?"0 0 4px 0":"0":"0"};
|
|
2240
2240
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:i?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
2241
|
-
`;case
|
|
2241
|
+
`;case Lh.Pretty:return Mt`
|
|
2242
2242
|
border: none;
|
|
2243
2243
|
border-radius: ${o?"12px 0 0 12px":r?"0 12px 12px 0":"0"};
|
|
2244
2244
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:i?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
2245
2245
|
`;default:return""}}}
|
|
2246
|
-
`,
|
|
2246
|
+
`,Gh=Bt.div`
|
|
2247
2247
|
width: 100%;
|
|
2248
2248
|
display: flex;
|
|
2249
2249
|
align-items: center;
|
|
2250
2250
|
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
2251
2251
|
gap: 4px;
|
|
2252
2252
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
2253
|
-
`,
|
|
2253
|
+
`,Kh=({variant:e,columns:t,rows:i,getRowActions:n,rowActionsPushRightPosition:o,withCheckboxes:r})=>{const[a,s]=yt(null);return Nt(Rt,{children:i.map((l,c)=>{const{cells:d,onClick:p,isSelected:u=!1,onSelect:h,onDeselect:m,hideCheckbox:g}=l,$=a===c,x=n(l),f=(e,t)=>({$isLastRow:c===i.length-1,$isFirstCell:e,$isLastCell:t,$selected:u,$withClick:!!p,onClick:()=>p?.(),$hovered:!!p&&$,onMouseEnter:()=>s(c),onMouseLeave:()=>s(null)});return _t("tr",{children:[r&&Nt(Hh,{$variant:e,...f(!0,!1),children:!g&&Nt(Qp,{value:u,onChange:()=>u?m?.():h?.()})},"checkbox-column"),t.map(({key:i,textAlign:n},a)=>{const s=d.find(e=>e.key===i),l=0===a&&!r,p=a===t.length-1;return _t(Hh,{$variant:e,...f(l,p),children:[s?.component?Nt(ia,{$justifyContent:"right"===n?"flex-end":"flex-start",children:Nt(s.component,{})}):Nt(so,{size:ro.XS,align:n,children:s?.rawValue||"-"}),x.length?Nt(Ku,{isOpen:$&&p,actions:x,positionRight:o}):null]},`row-${c}-cell-${a}`)})]},`row-${c}`)})})},Yh=({columnKey:e,sortDirection:t,sortByKey:i,onSort:n})=>{const o=Lt(),r=i===e?o.v2.colors.white[500]:o.v2.colors.grey[400],a=t===gi.Ascending?0:180;return Nt(_r,{icon:e=>Nt(dt,{fill:r,rotate:a,...e}),onClick:()=>n(e)})},Jh=({columnKey:e,filters:t,onFilter:i,rowsUnfiltered:n})=>{const o=Lt(),r=t[e]?.length?o.v2.colors.white[500]:o.v2.colors.grey[400],a=bt(()=>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 Nt(lu,{items:a,withMultiSelect:!0,selectedIds:t[e]?.map(e=>e.toString())??[],setSelectedIds:t=>i(e,t),defaultOpen:!1,iconButtonProps:{icon:e=>Nt($t,{fill:r,...e})}})},Xh=({variant:e,backgroundColor:t,columns:i,rowsUnfiltered:n,sortDirection:o,sortByKey:r,onSort:a,filters:s,onFilter:l,withCheckboxes:c,partiallySelected:d,allSelected:p,onSelectAll:u})=>_t("tr",{children:[c&&Nt(Wh,{$variant:e,$backgroundColor:t,$minWidth:24,$isFirst:!0,$isLast:!1,children:Nt(Qp,{partiallyChecked:d&&!p,value:p||!1,onChange:u})},"checkbox-column"),i.map(({key:d,label:p,noSort:u,noFilter:h,minWidth:m,textAlign:g},$)=>{const x=0===$&&!c,f=$===i.length-1;return _t(Wh,{$variant:e,$backgroundColor:t,$minWidth:m,$isFirst:x,$isLast:f,children:[_t(Gh,{$textAlign:g,children:[Nt(so,{size:ro.XS,align:g,children:p}),!u&&Nt(Yh,{columnKey:d,sortDirection:o,sortByKey:r,onSort:a}),!h&&Nt(Jh,{columnKey:d,filters:s,onFilter:l,rowsUnfiltered:n})]}),!f&&e===Lh.Data&&Nt(Vh,{})]},`column-${d}`)})]}),Zh=({variant:e,maxHeight:t="unset",headerBackgroundColor:i,isLoading:n,columns:o,rows:r,getRowActions:a,rowActionsPushRightPosition:s,withCheckboxes:l})=>{const[c,d]=yt(gi.Ascending),[p,u]=yt(""),[h,m]=yt({}),g=kt(e=>{u(e),d(e=>e===gi.Ascending?gi.Descending:gi.Ascending)},[]),$=kt((e,t)=>{m(i=>({...i,[e]:t}))},[]),x=bt(()=>{const e=(e,t)=>{const i=e.cells.find(e=>e.key===t);return i&&(i.rawValue?.toString()||i.component?.({})?.props?.children?.toString())||""};return(p?[...r].sort((t,i)=>{const n=e(t,p),o=e(i,p);return(c===gi.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(n,o)}):r).filter(t=>{for(const[i,n]of Object.entries(h))if(n.length&&!n.includes(e(t,i)))return!1;return!0})},[r,p,c,h]),{partiallySelected:f,allSelected:b}=bt(()=>{const e=x.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[x]);return _t(Ph,{$maxHeight:t,children:[_t(jh,{$variant:e,children:[Nt(Uh,{children:Nt(Xh,{variant:e,backgroundColor:i,columns:o,rowsUnfiltered:r,sortDirection:c,sortByKey:p,onSort:g,filters:h,onFilter:$,withCheckboxes:l,partiallySelected:f,allSelected:b,onSelectAll:e=>{e?x.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):x.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),Nt(qh,{children:Nt(Kh,{variant:e,columns:o,rows:x,getRowActions:a||(()=>[]),rowActionsPushRightPosition:s,withCheckboxes:l})})]}),!x.length&&Nt(oa,{style:{marginTop:"0.5rem"},children:n?Nt($s,{scale:1.2}):Nt(rl,{})})]})},Qh=Bt.div`
|
|
2254
2254
|
display: flex;
|
|
2255
2255
|
align-items: center;
|
|
2256
2256
|
justify-content: center;
|
|
@@ -2273,7 +2273,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2273
2273
|
`:Mt`
|
|
2274
2274
|
background-color: ${({theme:e})=>e.v2.colors.silver[300]};
|
|
2275
2275
|
`}
|
|
2276
|
-
`,
|
|
2276
|
+
`,em=({label:e,leftIcon:t,rightIcon:i,onClick:n,disabled:o})=>{const r=Lt(),a=o?r.v2.colors.grey[400]:r.v2.colors.white[500];return _t(Qh,{$disabled:o,$withClick:!!n,onClick:()=>!o&&n?.(),children:[t&&Nt(t,{fill:a,size:16}),Nt(so,{color:a,size:ro.XS,nowrap:!0,children:e}),i&&Nt(i,{fill:a,size:16})]})},tm=Bt.div`
|
|
2277
2277
|
padding: 8px 12px;
|
|
2278
2278
|
|
|
2279
2279
|
display: flex;
|
|
@@ -2291,7 +2291,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2291
2291
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
2292
2292
|
}
|
|
2293
2293
|
`}
|
|
2294
|
-
`,
|
|
2294
|
+
`,im=Bt.textarea`
|
|
2295
2295
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
2296
2296
|
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
2297
2297
|
flex: 1;
|
|
@@ -2316,11 +2316,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2316
2316
|
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
|
-
`,
|
|
2319
|
+
`,nm=({label:e,required:t,tooltip:i,errorMessage:n,helpMessage:o,name:r,value:a,onChange:s,disabled:l,maxWidth:c,minHeight:d,...p})=>{const u=vt(null),h=()=>{u.current&&(u.current.style.height="auto",u.current.style.height=`${u.current.scrollHeight}px`)};return _t(na,{$gap:6,children:[Nt(Bu,{label:e,tooltip:i,required:t}),Nt(tm,{$disabled:l,$error:!!n,children:Nt(im,{ref:u,"data-id":r,name:r,value:a,onChange:e=>{e.stopPropagation(),h(),s?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:h,onBlur:h,disabled:l,$maxWidth:c,$minHeight:d,...p})}),Nt(Mu,{errorMessage:n,helpMessage:o})]})};var om,rm,am;!function(e){e.Default="default",e.SuccessError="successError"}(om||(om={})),function(e){e.S="small",e.L="large"}(rm||(rm={})),function(e){e.Left="left",e.Right="right"}(am||(am={}));const sm=Bt.div`
|
|
2320
2320
|
display: flex;
|
|
2321
2321
|
align-items: center;
|
|
2322
2322
|
gap: ${({$gap:e})=>e}px;
|
|
2323
|
-
`,
|
|
2323
|
+
`,lm=Bt.div`
|
|
2324
2324
|
position: relative;
|
|
2325
2325
|
display: flex;
|
|
2326
2326
|
align-items: center;
|
|
@@ -2330,10 +2330,10 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2330
2330
|
height: ${({$size:e})=>e}px;
|
|
2331
2331
|
padding: ${4}px;
|
|
2332
2332
|
border-radius: ${({$size:e})=>2*e}px;
|
|
2333
|
-
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:i,$variant:n,$value:o,theme:r})=>{if(e)return r.v2.colors.grey[800];if(t&&o)return t;if(i&&!o)return i;switch(n){case
|
|
2333
|
+
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:i,$variant:n,$value:o,theme:r})=>{if(e)return r.v2.colors.grey[800];if(t&&o)return t;if(i&&!o)return i;switch(n){case om.SuccessError:return o?r.v2.colors.green[500]:r.v2.colors.red[500];case om.Default:default:return o?r.v2.colors.purple[500]:r.v2.colors.grey[400]}}};
|
|
2334
2334
|
|
|
2335
2335
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
2336
|
-
`,
|
|
2336
|
+
`,cm=Bt.div`
|
|
2337
2337
|
position: absolute;
|
|
2338
2338
|
top: 50%;
|
|
2339
2339
|
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
@@ -2343,22 +2343,22 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as i,DeleteAttri
|
|
|
2343
2343
|
border-radius: 100%;
|
|
2344
2344
|
background-color: ${({$color:e})=>e};
|
|
2345
2345
|
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)"};
|
|
2346
|
-
`,
|
|
2346
|
+
`,dm=({variant:e=om.Default,size:t=rm.L,label:i,labelAlign:n=am.Left,labelColor:o,tooltip:r,value:a,onChange:s,disabled:l,withIcon:c,onIcon:d=Ge,offIcon:p=Ye,onBgColor:u,offBgColor:h})=>{const m=Lt(),g=l?m.v2.colors.grey[400]:m.v2.colors.white[500],$=t===rm.S?10:16,x=o||m.v2.colors.white[500],f=t===rm.S?ro.XXXS:ro.XS,b=t===rm.S?8:12;return _t(sm,{$gap:b,children:[i&&n===am.Left&&Nt(so,{color:x,size:f,nowrap:!0,children:i}),_t(lm,{$onBgColor:u,$offBgColor:h,$variant:e,$size:$,$value:a,$disabled:l,onClick:e=>{e.stopPropagation(),l||s(!a)},children:[Nt(cm,{$color:g,$size:$,$value:a,$disabled:l}),c&&_t(Rt,{children:[Nt(d,{size:$,fill:g}),Nt(p,{size:$,fill:g})]})]}),i&&n===am.Right&&Nt(so,{color:x,size:f,nowrap:!0,children:i}),r&&Nt(Fa,{text:r,withIcon:!0})]})},pm=Bt.div`
|
|
2347
2347
|
display: flex;
|
|
2348
2348
|
flex-direction: ${({$direction:e})=>e===mi.Horizontal?"row":"column"};
|
|
2349
2349
|
gap: ${({$direction:e})=>e===mi.Horizontal?16:8}px;
|
|
2350
|
-
`,
|
|
2350
|
+
`,um=({direction:e=mi.Vertical,title:t,size:i,disabled:n,options:o,values:r,setValues:a})=>{const s=i===rm.S?ro.XS:ro.S;return _t(pm,{$direction:e,children:[t&&Nt(so,{size:s,children:t}),o.map(e=>Nt(dm,{...e,labelAlign:am.Right,value:r[e.id],onChange:t=>{return i=e.id,n=t,void a(e=>{const t={...e};return i?t[i]=n:o.forEach(e=>t[e.id]=n),t});var i,n},disabled:n,size:i},`${t}-toggle-${e.id}`))]})},hm=Bt.div`
|
|
2351
2351
|
min-width: 530px;
|
|
2352
|
-
`,
|
|
2352
|
+
`,mm=Bt.div`
|
|
2353
2353
|
display: flex;
|
|
2354
2354
|
flex-direction: column;
|
|
2355
2355
|
align-items: center;
|
|
2356
2356
|
gap: 16px;
|
|
2357
2357
|
padding: 24px;
|
|
2358
|
-
`,
|
|
2358
|
+
`,gm=Bt.div`
|
|
2359
2359
|
display: flex;
|
|
2360
2360
|
justify-content: center;
|
|
2361
2361
|
gap: 16px;
|
|
2362
2362
|
padding: 16px 24px;
|
|
2363
2363
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
2364
|
-
|
|
2364
|
+
`,$m=({visual:e,title:t,description:i,isOpen:n,onClose:o,onDeny:r,denyLabel:a="Deny",onApprove:s,approveLabel:l="Approve",...c})=>{const d=Lt();return Nt(Eh,{isOpen:n,onClose:o,...c,children:_t(hm,{children:[_t(mm,{children:[e&&Nt(e,{}),Nt(so,{size:ro.M,weight:500,color:d.v2.colors.white[500],children:t}),Nt(na,{$alignItems:"center",$gap:4,children:i.split("\n").map(e=>Nt(so,{size:ro.XS,weight:400,color:d.v2.colors.silver[200],children:e},e))})]}),(r||s)&&_t(gm,{children:[Nt(Np,{variant:zp.Secondary,label:a,onClick:()=>{r?.(),o()}}),s&&Nt(Np,{variant:zp.Primary,label:l,onClick:()=>{s(),o()}})]})]})})};export{Qr as $,rm as A,Np as B,Mi as C,Qi as D,oo as E,na as F,Yi as G,Li as H,Yu as I,Ki as J,qo as K,vh as L,tr as M,rl as N,Di as O,ji as P,en as Q,uu as R,Si as S,so as T,wi as U,hh as V,$m as W,Zo as X,Rr as Y,Wr as Z,_r as _,ro as a,Io as a$,Pn as a0,gu as a1,Go as a2,lu as a3,nu as a4,iu as a5,wl as a6,Up as a7,dn as a8,yl as a9,Ap as aA,zd as aB,yd as aC,ki as aD,ep as aE,ur as aF,Jd as aG,Rc as aH,Bd as aI,Cp as aJ,go as aK,Ho as aL,nd as aM,Nc as aN,Xa as aO,Dr as aP,fn as aQ,_o as aR,Ss as aS,Dc as aT,pn as aU,yi as aV,Jo as aW,ya as aX,sa as aY,Ua as aZ,nn as a_,rn as aa,cu as ab,ea as ac,Zh as ad,Lh as ae,ih as af,Fn as ag,$s as ah,Eu as ai,fr as aj,du as ak,fu as al,wu as am,Ui as an,ta as ao,$c as ap,si as aq,ci as ar,li as as,Dl as at,es as au,fo as av,_l as aw,Ci as ax,Mn as ay,Cd as az,Fa as b,Ro as b$,va as b0,Pd as b1,un as b2,Ts as b3,Ai as b4,Hn as b5,zn as b6,Yo as b7,ni as b8,Ls as b9,oi as bA,Fr as bB,qr as bC,Aa as bD,ra as bE,np as bF,Vr as bG,qn as bH,Pl as bI,Mo as bJ,tn as bK,Hr as bL,Br as bM,rr as bN,Oa as bO,fs as bP,Fs as bQ,Ns as bR,vi as bS,Gn as bT,ti as bU,_n as bV,Hi as bW,Lr as bX,Rn as bY,Zt as bZ,Yn as b_,bn as ba,Vs as bb,la as bc,ca as bd,ud as be,xn as bf,da as bg,gc as bh,Fp as bi,wr as bj,to as bk,Sr as bl,ir as bm,Js as bn,Kn as bo,ln as bp,Vd as bq,wn as br,$n as bs,gn as bt,Ri as bu,cp as bv,Ir as bw,an as bx,ri as by,Zi as bz,Qp as c,vn as c$,Ji as c0,xp as c1,wc as c2,kn as c3,yp as c4,Xo as c5,Ur as c6,$i as c7,Ja as c8,mr as c9,ns as cA,An as cB,Rs as cC,ds as cD,ai as cE,Ii as cF,ui as cG,Oi as cH,zi as cI,fi as cJ,Ei as cK,hi as cL,mi as cM,pi as cN,_i as cO,xi as cP,qi as cQ,Vi as cR,Wi as cS,Ti as cT,Xi as cU,Gi as cV,gi as cW,di as cX,Qt as cY,sn as cZ,yn as c_,Nn as ca,zr as cb,Fi as cc,xl as cd,Nd as ce,Os as cf,gd as cg,In as ch,Bn as ci,Is as cj,il as ck,ol as cl,Ku as cm,jn as cn,Xn as co,Kr as cp,Ni as cq,bi as cr,ic as cs,Zr as ct,Us as cu,hn as cv,Or as cw,Zl as cx,Wo as cy,cn as cz,Mu as d,Cn as d0,Sn as d1,En as d2,Dn as d3,Tn as d4,On as d5,Ln as d6,Un as d7,Vn as d8,Jn as d9,Bs as dA,aa as dB,Pc as dC,pa as dD,uo as dE,ho as dF,mo as dG,gh as dH,mh as dI,fh as dJ,Mp as dK,Lp as dL,tu as dM,Jp as dN,Wu as dO,Hu as dP,Eh as dQ,Dh as dR,Rh as dS,Mh as dT,Oh as dU,hu as dV,Wp as dW,em as dX,am as dY,um as dZ,om as d_,Zn as da,Qn as db,eo as dc,io as dd,no as de,Po as df,jo as dg,Uo as dh,No as di,pr as dj,br as dk,hr as dl,dr as dm,Tr as dn,Pr as dp,bl as dq,kl as dr,Cl as ds,hl as dt,sl as du,Oc as dv,Qc as dw,Gc as dx,rd as dy,dd as dz,Pi as e,ia as f,Bu as g,eh as h,Bi as i,Ip as j,zp as k,co as l,Lo as m,mn as n,Hp as o,Uu as p,nm as q,Nu as r,oa as s,Yp as t,Ih as u,ii as v,Bo as w,Er as x,on as y,dm as z};
|