@odigos/ui-kit 0.0.185 → 0.0.187
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/lib/chunks/{ui-components-DO2fZKs1.js → ui-components-C1s3IKyq.js} +381 -381
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/v2.js +1 -1
- package/lib/containers.js +108 -108
- package/lib/contexts.js +1 -1
- package/lib/functions/index.d.ts +1 -1
- package/lib/functions/{map-exported-signals → map-signals}/index.d.ts +1 -0
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/signals/index.d.ts +7 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttributeIcon as n,AddClusterInfoIcon as i,K8sLogo as a,ImageErrorIcon as r,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 k,JavaLogo as v,AwsXrayLogo as C,VictoriaMetricsLogo as E,UptraceLogo as S,TraceloopLogo as A,TingyunLogo as D,TempoLogo as T,TelemetryHubLogo as z,SumoLogicLogo as F,SplunkLogo as O,SignozLogo as I,SeqLogo as N,AwsS3Logo as _,QuickwitLogo as B,GigapipeLogo as R,QrynLogo as L,PrometheusLogo as M,OpenTelemetryLogo as P,OracleLogo as j,OpsVerseLogo as U,OpenObserveLogo as W,OneUptimeLogo as V,OdigosLogo as H,ObserveLogo as q,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 oe,HyperDxLogo as ne,HoneycombLogo as ie,GroundcoverLogo as ae,GreptimeLogo as re,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 ke,AzureBlobLogo as ve,AxiomLogo as Ce,AppDynamicsLogo as Ee,AlibabaCloudLogo as Se,AlaudaLogo as Ae,InstrumentationRuleIcon as De,ActionIcon as Te,DestinationIcon as ze,SourceIcon as Fe,NamespacesIcon as Oe,PayloadCollectionIcon as Ie,HeadersCollectionIcon as Ne,CustomInstrumentationIcon as _e,CodeAttributesIcon as Be,TracesIcon as Re,MetricsIcon as Le,LogsIcon as Me,VmLogo as Pe,QuestionCircleIcon as je,XSquareIcon as Ue,VSquareIcon as We,ExclamationTriangleIcon as Ve,ExclamationCircleIcon as He,ISquareIcon as qe,VIcon as Ge,CopyIcon as Ke,XIcon as Ye,MinusIcon as Je,ListIcon as Xe,CodeIcon as Ze,ExtendArrowIcon as Qe,PlusIcon as et,EditIcon as tt,NoDataIcon as ot,EyeClosedIcon as nt,EyeOpenIcon as it,SearchIcon as at,TrashIcon as rt,EditedIcon as st,SortArrowsIcon as lt,NotebookIcon as ct,ArrowIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as ht,YamlIcon as mt,DotIcon as gt,FilterIcon as $t}from"../icons.js";import{create as xt}from"zustand";import ft,{Fragment as bt,useMemo as yt,useState as wt,useEffect as kt,useRef as vt,useContext as Ct,createContext as Et,useCallback as St,forwardRef as At,memo as Dt}from"react";import Tt from"javascript-time-ago";import{p as zt,c as Ft,s as Ot,u as It,e as Nt}from"./vendor-1oZp1FpB.js";import _t,{css as Bt,useTheme as Rt,ThemeProvider as Lt,keyframes as Mt}from"styled-components";import{Handle as Pt,Position as jt,ReactFlow as Ut,Controls as Wt}from"@xyflow/react";import Vt,{createPortal as Ht}from"react-dom";import{ErrorBoundary as qt}from"react-error-boundary";import Gt from"lottie-react";import{Highlight as Kt,themes as Yt}from"prism-react-renderer";const Jt=e=>e.charAt(0).toUpperCase()+e.slice(1),Xt=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),o=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,o(n)]:[e,n]));return Object.entries(e).reduce((e,[n,i])=>{try{const a=JSON.parse(i);Array.isArray(a)?e[n]=JSON.stringify(t(a)):e[n]="object"==typeof a&&null!==a?JSON.stringify(o(a)):i}catch(a){"object"==typeof i&&null!==i?Array.isArray(i)?e[n]=JSON.stringify(t(i)):e[n]=JSON.stringify(o(i)):e[n]=i}return e},{})};var Zt;!function(e){e.SIGNALS="SIGNALS"}(Zt||(Zt={}));const Qt=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,i,a]=e;if(n===Zt.SIGNALS)switch(i){case"INCLUDES":return t?.includes(a);case"EXCLUDES":return!t?.includes(a);default:return!0}const r=o.find(e=>e.name===n);if(!r)return!0;switch(i){case"===":case"==":return r.value===a;case"!==":case"!=":return r.value!==a;case">":return Number(r.value)>Number(a);case"<":return Number(r.value)<Number(a);case">=":return Number(r.value)>=Number(a);case"<=":return Number(r.value)<=Number(a);default:return!0}},eo=e=>JSON.parse(JSON.stringify(e)),to=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),o},oo=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},no=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var io,ao,ro,so,lo,co,po,uo,ho,mo,go,$o,xo,fo,bo,yo,wo,ko,vo,Co,Eo,So,Ao,Do,To,zo,Fo,Oo,Io,No,_o,Bo,Ro,Lo,Mo,Po,jo,Uo,Wo,Vo;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(io||(io={})),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"}(ao||(ao={})),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"}(ro||(ro={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(so||(so={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(lo||(lo={})),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"}(co||(co={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(po||(po={})),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"}(uo||(uo={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(ho||(ho={})),function(e){e.Ascending="ascending",e.Descending="descending"}(mo||(mo={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(go||(go={})),function(e){e.K8s="k8s",e.Vm="vm"}($o||($o={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(xo||(xo={})),function(e){e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"}(fo||(fo={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(bo||(bo={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(yo||(yo={})),function(e){e.DataStream="DataStream"}(wo||(wo={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.Toggle="toggle"}(ko||(ko={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(vo||(vo={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Co||(Co={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Eo||(Eo={})),function(e){e.Loading="loading",e.Disabled="disabled"}(So||(So={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Ao||(Ao={})),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"}(Do||(Do={})),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"}(To||(To={})),function(e){e.Labeled="labeled"}(zo||(zo={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Fo||(Fo={})),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"}(Oo||(Oo={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.ConfigMap="ConfigMap",e.Pod="Pod",e.DeploymentConfig="DeploymentConfig"}(Io||(Io={})),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"}(No||(No={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(_o||(_o={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Bo||(Bo={})),function(e){e.HeaderKeys="headerKeys"}(Ro||(Ro={})),function(e){e.Java="java",e.Golang="golang"}(Lo||(Lo={}));class Ho{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 qo{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,o,n){this.packageName=e,this.functionName=t||"",this.receiverName=o||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(Mo||(Mo={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Po||(Po={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(jo||(jo={})),function(e){e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"}(Uo||(Uo={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(Wo||(Wo={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(Vo||(Vo={}));const Go=(e,t)=>{let o=[...e];return t.namespaces?.length&&(o=o.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(o=o.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(o=o.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(o=o.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:o})=>t===`${e}#${o}`)))),t.podsAgentInjectionStatus?.length&&(o=o.filter(({podsAgentInjectionStatus:e})=>!!t.podsAgentInjectionStatus?.find(({id:t})=>t===e?.reasonEnum||t===e?.message))),t.onlyErrors&&(o=o.filter(e=>!!e.conditions?.find(e=>e.status===Co.Error))),t.errors?.length&&(o=o.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),o},Ko="default",Yo={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Jo={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)'},Xo={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"},Zo={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"},Qo=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===Ko&&!e.dataStreamNames.length):[],en=(e,t="",o={})=>{for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],a=t?`${t}.${n}`:n;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const n=`${a}[${t}]`;null!==e&&"object"==typeof e?en(e,n,o):o[n]=e}):o[a]=i:en(i,a,o)}return o},tn=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]}`},on=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`}},nn=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,o=>{const n=e[t%16];return t++,("1"===o?n:"0"===o?63&n|128:15&n|64).toString(16)})},an=s=>{const l=s?.toLowerCase(),c=l?.includes(io.Samplers),d=l===io.Attributes;return c?e:d?t:{[ao.K8sAttributes]:a,[ao.AddClusterInfo]:i,[ao.DeleteAttributes]:n,[ao.PiiMasking]:t,[ao.RenameAttributes]:o,[ao.ErrorSampler]:e,[ao.ProbabilisticSampler]:e,[ao.LatencySampler]:e,[ao.ServiceNameSampler]:e,[ao.SpanAttributeSampler]:e}[s]||r},rn=e=>{const t=e?.filter(({status:e})=>e===Co.Error),o=e?.filter(({status:e})=>e===Co.Warning),n=e?.filter(({status:e})=>e===So.Disabled),i=e?.filter(({status:e})=>e===So.Loading),a=t.length>0,r=o.length>0,s=n.length>0;return{errors:t,hasErrors:a,warnings:o,hasWarnings:r,disableds:n,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:a?Co.Error:r?Co.Warning:s?Co.Info:void 0}},sn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},ln=e=>({[fo.Java]:v,[fo.Go]:k,[fo.JavaScript]:w,[fo.Python]:y,[fo.DotNet]:b,[fo.CSharp]:f,[fo.CPlusPlus]:x,[fo.Php]:$,[fo.Ruby]:g,[fo.Rust]:m,[fo.Swift]:h,[fo.Elixir]:u,[fo.MySql]:p,[fo.Nginx]:d,[fo.Postgres]:c,[fo.Redis]:l,[fo.Kafka]:s,[fo.Ignored]:r,[fo.Unknown]:r,[fo.Processing]:r,[fo.NoContainers]:r,[fo.NoRunningPods]:r}[e]||r),cn=e=>e?.map(({language:e})=>ln(e))||[],dn=(e,t)=>{const o={[Oo.Alauda]:Ae,[Oo.AlibabaCloud]:Se,[Oo.AppDynamics]:Ee,[Oo.Axiom]:Ce,[Oo.AzureBlob]:ve,[Oo.AzureMonitor]:ke,[Oo.BetterStack]:we,[Oo.Bonree]:ye,[Oo.Causely]:be,[Oo.Checkly]:fe,[Oo.Chronosphere]:xe,[Oo.ClickHouse]:$e,[Oo.CloudWatch]:ge,[Oo.Coralogix]:me,[Oo.Dash0]:he,[Oo.Datadog]:ue,[Oo.Dynamic]:P,[Oo.Dynatrace]:pe,[Oo.ElasticApm]:de,[Oo.ElasticSearch]:ce,[Oo.GoogleCloud]:le,[Oo.GoogleCloudOTLP]:le,[Oo.GrafanaCloudLoki]:se,[Oo.GrafanaCloudPrometheus]:se,[Oo.GrafanaCloudTempo]:se,[Oo.Greptime]:re,[Oo.Groundcover]:ae,[Oo.Honeycomb]:ie,[Oo.HyperDX]:ne,[Oo.Instana]:oe,[Oo.Jaeger]:te,[Oo.Kafka]:s,[Oo.Kloudmate]:ee,[Oo.Last9]:Q,[Oo.Lightstep]:Z,[Oo.LogzIo]:X,[Oo.Loki]:J,[Oo.Lumigo]:Y,[Oo.Middleware]:K,[Oo.NewRelic]:G,[Oo.Observe]:q,[Oo.Odigos]:H,[Oo.OneUptime]:V,[Oo.OpenObserve]:W,[Oo.Opsverse]:U,[Oo.Oracle]:j,[Oo.OTLP]:P,[Oo.OTLPHttp]:P,[Oo.Prometheus]:M,[Oo.Qryn]:L,[Oo.QrynOss]:R,[Oo.Quickwit]:B,[Oo.S3]:_,[Oo.Seq]:N,[Oo.Signalfx]:O,[Oo.Signoz]:I,[Oo.Splunk]:O,[Oo.SplunkSapm]:O,[Oo.SplunkOtlp]:O,[Oo.SumoLogic]:F,[Oo.TelemetryHub]:z,[Oo.Tempo]:T,[Oo.Tingyun]:D,[Oo.Traceloop]:A,[Oo.Uptrace]:S,[Oo.VictoriaMetrics]:E,[Oo.VictoriaMetricsCloud]:E,[Oo.XRay]:C}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},pn=e=>({[yo.Namespace]:Oe,[yo.Source]:Fe,[yo.Destination]:ze,[yo.Action]:Te,[yo.InstrumentationRule]:De}[e]),un=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,hn=(e,t,o)=>{const{extended:n,prioritizeDisplayName:i}=o||{};let a="",r="";switch(t){case yo.InstrumentationRule:const t=e;a=t.type,r=t.ruleName;break;case yo.Source:const o=e;a=o.name,r=o.otelServiceName;break;case yo.Action:const n=e;a=n.type,r=n.name;break;case yo.Destination:const i=e;a=i.destinationType.displayName,r=i.name;break;case yo.Namespace:const s=e;a=s.name,r=s.name}return n?a+(r&&r!==a?` (${r})`:""):i&&r||a},mn=(e,t)=>{if(t===yo.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,n]=e.split("=");t[o]=n}),t}return e},gn=e=>({[_o.CodeAttributes]:Be,[_o.CustomInstrumentation]:_e,[_o.HeadersCollection]:Ne,[_o.PayloadCollection]:Ie,[_o.UnknownType]:r}[e]||r),$n=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?fo.Processing:fo.NoRunningPods;const n=o?.filter(e=>e.language!==fo.Ignored);if(!n.length)return fo.NoContainers;const i=n.find(e=>e.language!==fo.Unknown);return i?i.language:fo.Unknown},xn=(e,t,o)=>(t===yo.Source?e?.sources.find(e=>e.kind===o.kind&&e.name===o.name&&e.namespace===o.namespace):e?.destinations.find(e=>e.id===o))||{throughput:0},fn=e=>({[Vo.Logs]:Me,[Vo.Metrics]:Le,[Vo.Traces]:Re}[e]),bn=e=>e?{[$o.K8s]:a,[$o.Vm]:Pe}[e]:H,yn=e=>e?{[$o.K8s]:"Kubernetes Cluster",[$o.Vm]:"Virtual Machine"}[e]:"Unknown",wn=(e,t,o)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[o],i=[];return void 0!==n&&(Array.isArray(n)?i.push(...n):i.push(n)),i.push(...wn(e,t,o)),i}):[]},kn=(e,t)=>{if(t===yo.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},vn=(e,t,o)=>{switch(t){case Co.Default:return e.v2.colors.purple[o];case Co.Info:return e.v2.colors.blue[o];case Co.Error:return e.v2.colors.red[o];case Co.Warning:return e.v2.colors.yellow[o];case Co.Success:return e.v2.colors.green[o];case Ao.Disabled:case Ao.Unknown:return e.v2.colors.silver[o];default:return e.v2.colors.white[500]}},Cn=e=>{switch(e){case Po.Updating:case jo.Pending:case Uo.ContainerCreating:case Wo.Waiting:return Co.Info;case Po.Healthy:case jo.Succeeded:case jo.Running:case Uo.Running:case Wo.Running:return Co.Success;case Po.Degraded:return Co.Warning;case Po.Failed:case jo.Failed:case Uo.Error:case Uo.CrashLoopBackOff:case Uo.CreateContainerError:case Uo.CreateContainerConfigError:case Uo.ErrImagePull:case Uo.ErrImageNeverPull:case Uo.ImagePullBackOff:case Uo.InvalidImageName:case Uo.RegistryUnavailable:case Uo.NetworkNotReady:case Uo.OOMKilled:case Uo.ContainerCannotRun:case Wo.Terminated:case Uo.DeadlineExceeded:case Uo.StartError:return Co.Error;case Po.Down:case Uo.Completed:return Ao.Disabled;case Po.Unknown:case jo.Unknown:default:return Ao.Unknown}},En=(e,t)=>({[Co.Default]:o=>H({fill:vn(t,e,"300"),...o}),[Co.Info]:o=>qe({fill:vn(t,e,"400"),...o}),[Co.Error]:o=>He({fill:vn(t,e,"500"),...o}),[Co.Warning]:o=>Ve({fill:vn(t,e,"500"),...o}),[Co.Success]:o=>We({fill:vn(t,e,"500"),...o}),[Ao.Disabled]:o=>Ue({fill:vn(t,e,"400"),...o}),[Ao.Unknown]:o=>je({fill:vn(t,e,"300"),...o})}[e]),Sn=e=>{switch(e){case No.Success:return Co.Success;case No.Error:case No.Failure:return Co.Error;case No.Notice:return Co.Warning;case No.Unsupported:case No.Unknown:return Co.Info;case No.Irrelevant:case No.Disabled:return So.Disabled;case No.Waiting:return So.Loading;case No.Pending:default:return Co.Default}},An=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},Dn=({namespace:e,name:t,kind:o})=>({namespace:e,name:t,kind:o});function Tn(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const zn=(e,t)=>{const o=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=Tn(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&o.push(...e.items[i].fields.map(e=>({...e,initialValue:n[e.name]})))}return o},Fn=(e,t)=>{const o=e=>e?.some(({healthy:e})=>e.status!==Co.Success);return e?.length?e.some(({instrumentationInstances:e})=>o(e)):o(t)??!1},On=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),In=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Nn=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},_n=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Bn=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Rn=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,Ln=e=>Rn.test(e),Mn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",Pn=e=>e?.map(({status:e,type:t,reason:o,message:n,lastTransitionTime:i})=>({status:e,type:Mn(t),reason:o?Mn(o):"",message:n,lastTransitionTime:i}))||[],jn=(e,t)=>{const o=Tn(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:o[e.name]??null})).filter(e=>null!==e.value):Object.entries(o).map(([e,t])=>({key:e,name:e,value:t}))},Un=e=>e?Object.keys(e).filter(t=>e[t]):[],Wn=e=>e.replace(/[^\d]/g,""),Vn=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Hn=e=>{let t="";try{const o=JSON.parse(e);t=Array.isArray(o)?o.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof o&&null!==o?Object.entries(o).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(o){t=e}return t},qn=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(o=>{const n=e[o];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[o]=e.map(e=>qn(e)))}else if("object"==typeof n&&null!==n){const e=qn(n);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(n)||(t[o]=n)}),t},Gn=(e,t=2)=>JSON.stringify(e||{},null,t),Kn=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Yn=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),Jn=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const o=t.split(".");return o.length>2&&(t=o.slice(0,2).join(".")),Number(t)};var Xn,Zn;!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"}(Xn||(Xn={})),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"}(Zn||(Zn={}));const Qn=_t.p`
|
|
1
|
+
import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttributeIcon as n,AddClusterInfoIcon as i,K8sLogo as a,ImageErrorIcon as r,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 k,JavaLogo as v,AwsXrayLogo as C,VictoriaMetricsLogo as E,UptraceLogo as S,TraceloopLogo as A,TingyunLogo as D,TempoLogo as T,TelemetryHubLogo as z,SumoLogicLogo as F,SplunkLogo as O,SignozLogo as I,SeqLogo as N,AwsS3Logo as _,QuickwitLogo as B,GigapipeLogo as R,QrynLogo as L,PrometheusLogo as M,OpenTelemetryLogo as P,OracleLogo as j,OpsVerseLogo as U,OpenObserveLogo as W,OneUptimeLogo as V,OdigosLogo as H,ObserveLogo as G,NewRelicLogo as q,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 oe,HyperDxLogo as ne,HoneycombLogo as ie,GroundcoverLogo as ae,GreptimeLogo as re,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 ke,AzureBlobLogo as ve,AxiomLogo as Ce,AppDynamicsLogo as Ee,AlibabaCloudLogo as Se,AlaudaLogo as Ae,InstrumentationRuleIcon as De,ActionIcon as Te,DestinationIcon as ze,SourceIcon as Fe,NamespacesIcon as Oe,PayloadCollectionIcon as Ie,HeadersCollectionIcon as Ne,CustomInstrumentationIcon as _e,CodeAttributesIcon as Be,TracesIcon as Re,MetricsIcon as Le,LogsIcon as Me,VmLogo as Pe,QuestionCircleIcon as je,XSquareIcon as Ue,VSquareIcon as We,ExclamationTriangleIcon as Ve,ExclamationCircleIcon as He,ISquareIcon as Ge,VIcon as qe,CopyIcon as Ke,XIcon as Ye,MinusIcon as Je,ListIcon as Xe,CodeIcon as Ze,ExtendArrowIcon as Qe,PlusIcon as et,EditIcon as tt,NoDataIcon as ot,EyeClosedIcon as nt,EyeOpenIcon as it,SearchIcon as at,TrashIcon as rt,EditedIcon as st,SortArrowsIcon as lt,NotebookIcon as ct,ArrowIcon as dt,ChevronUpIcon as pt,ChevronDownIcon as ut,DotsVerticalIcon as ht,YamlIcon as mt,DotIcon as gt,FilterIcon as $t}from"../icons.js";import{create as xt}from"zustand";import ft,{Fragment as bt,useMemo as yt,useState as wt,useEffect as kt,useRef as vt,useContext as Ct,createContext as Et,useCallback as St,forwardRef as At,memo as Dt}from"react";import Tt from"javascript-time-ago";import{p as zt,c as Ft,s as Ot,u as It,e as Nt}from"./vendor-1oZp1FpB.js";import _t,{css as Bt,useTheme as Rt,ThemeProvider as Lt,keyframes as Mt}from"styled-components";import{Handle as Pt,Position as jt,ReactFlow as Ut,Controls as Wt}from"@xyflow/react";import Vt,{createPortal as Ht}from"react-dom";import{ErrorBoundary as Gt}from"react-error-boundary";import qt from"lottie-react";import{Highlight as Kt,themes as Yt}from"prism-react-renderer";const Jt=e=>e.charAt(0).toUpperCase()+e.slice(1),Xt=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),o=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,o(n)]:[e,n]));return Object.entries(e).reduce((e,[n,i])=>{try{const a=JSON.parse(i);Array.isArray(a)?e[n]=JSON.stringify(t(a)):e[n]="object"==typeof a&&null!==a?JSON.stringify(o(a)):i}catch(a){"object"==typeof i&&null!==i?Array.isArray(i)?e[n]=JSON.stringify(t(i)):e[n]=JSON.stringify(o(i)):e[n]=i}return e},{})};var Zt;!function(e){e.SIGNALS="SIGNALS"}(Zt||(Zt={}));const Qt=(e,t,o)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,i,a]=e;if(n===Zt.SIGNALS)switch(i){case"INCLUDES":return t?.includes(a);case"EXCLUDES":return!t?.includes(a);default:return!0}const r=o.find(e=>e.name===n);if(!r)return!0;switch(i){case"===":case"==":return r.value===a;case"!==":case"!=":return r.value!==a;case">":return Number(r.value)>Number(a);case"<":return Number(r.value)<Number(a);case">=":return Number(r.value)>=Number(a);case"<=":return Number(r.value)<=Number(a);default:return!0}},eo=e=>JSON.parse(JSON.stringify(e)),to=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),o},oo=(e,t)=>{let o=[...e];return t.monitors?.length&&(o=o.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),o},no=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[];var io,ao,ro,so,lo,co,po,uo,ho,mo,go,$o,xo,fo,bo,yo,wo,ko,vo,Co,Eo,So,Ao,Do,To,zo,Fo,Oo,Io,No,_o,Bo,Ro,Lo,Mo,Po,jo,Uo,Wo,Vo,Ho;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(io||(io={})),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"}(ao||(ao={})),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"}(ro||(ro={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(so||(so={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(lo||(lo={})),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"}(co||(co={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(po||(po={})),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"}(uo||(uo={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(ho||(ho={})),function(e){e.Ascending="ascending",e.Descending="descending"}(mo||(mo={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(go||(go={})),function(e){e.K8s="k8s",e.Vm="vm"}($o||($o={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(xo||(xo={})),function(e){e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"}(fo||(fo={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(bo||(bo={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(yo||(yo={})),function(e){e.DataStream="DataStream"}(wo||(wo={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.Toggle="toggle"}(ko||(ko={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(vo||(vo={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Co||(Co={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(Eo||(Eo={})),function(e){e.Loading="loading",e.Disabled="disabled"}(So||(So={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Ao||(Ao={})),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"}(Do||(Do={})),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"}(To||(To={})),function(e){e.Labeled="labeled"}(zo||(zo={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Fo||(Fo={})),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"}(Oo||(Oo={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.ConfigMap="ConfigMap",e.Pod="Pod",e.DeploymentConfig="DeploymentConfig"}(Io||(Io={})),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"}(No||(No={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(_o||(_o={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(Bo||(Bo={})),function(e){e.HeaderKeys="headerKeys"}(Ro||(Ro={})),function(e){e.Java="java",e.Golang="golang"}(Lo||(Lo={}));class Go{className;methodName;constructor(e,t){this.className=e,this.methodName=t}Verify(){return!!this.className&&!!this.methodName}toString(){return this.Verify()?`${this.className}.${this.methodName}`:"[Faulty Java Probe]"}}class qo{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,o,n){this.packageName=e,this.functionName=t||"",this.receiverName=o||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(Mo||(Mo={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Po||(Po={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(jo||(jo={})),function(e){e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"}(Uo||(Uo={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(Wo||(Wo={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES"}(Vo||(Vo={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(Ho||(Ho={}));const Ko={[Vo.Logs]:Ho.Logs,[Vo.Metrics]:Ho.Metrics,[Vo.Traces]:Ho.Traces},Yo={[Ho.Logs]:Vo.Logs,[Ho.Metrics]:Vo.Metrics,[Ho.Traces]:Vo.Traces},Jo=(e,t)=>{let o=[...e];return t.namespaces?.length&&(o=o.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(o=o.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(o=o.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(o=o.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:o})=>t===`${e}#${o}`)))),t.podsAgentInjectionStatus?.length&&(o=o.filter(({podsAgentInjectionStatus:e})=>!!t.podsAgentInjectionStatus?.find(({id:t})=>t===e?.reasonEnum||t===e?.message))),t.onlyErrors&&(o=o.filter(e=>!!e.conditions?.find(e=>e.status===Co.Error))),t.errors?.length&&(o=o.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),o},Xo="default",Zo={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Qo={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)'},en={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"},tn={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"},on=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===Xo&&!e.dataStreamNames.length):[],nn=(e,t="",o={})=>{for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],a=t?`${t}.${n}`:n;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const n=`${a}[${t}]`;null!==e&&"object"==typeof e?nn(e,n,o):o[n]=e}):o[a]=i:nn(i,a,o)}return o},an=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]}`},rn=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`}},sn=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,o=>{const n=e[t%16];return t++,("1"===o?n:"0"===o?63&n|128:15&n|64).toString(16)})},ln=s=>{const l=s?.toLowerCase(),c=l?.includes(io.Samplers),d=l===io.Attributes;return c?e:d?t:{[ao.K8sAttributes]:a,[ao.AddClusterInfo]:i,[ao.DeleteAttributes]:n,[ao.PiiMasking]:t,[ao.RenameAttributes]:o,[ao.ErrorSampler]:e,[ao.ProbabilisticSampler]:e,[ao.LatencySampler]:e,[ao.ServiceNameSampler]:e,[ao.SpanAttributeSampler]:e}[s]||r},cn=e=>{const t=e?.filter(({status:e})=>e===Co.Error),o=e?.filter(({status:e})=>e===Co.Warning),n=e?.filter(({status:e})=>e===So.Disabled),i=e?.filter(({status:e})=>e===So.Loading),a=t.length>0,r=o.length>0,s=n.length>0;return{errors:t,hasErrors:a,warnings:o,hasWarnings:r,disableds:n,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:a?Co.Error:r?Co.Warning:s?Co.Info:void 0}},dn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},pn=e=>({[fo.Java]:v,[fo.Go]:k,[fo.JavaScript]:w,[fo.Python]:y,[fo.DotNet]:b,[fo.CSharp]:f,[fo.CPlusPlus]:x,[fo.Php]:$,[fo.Ruby]:g,[fo.Rust]:m,[fo.Swift]:h,[fo.Elixir]:u,[fo.MySql]:p,[fo.Nginx]:d,[fo.Postgres]:c,[fo.Redis]:l,[fo.Kafka]:s,[fo.Ignored]:r,[fo.Unknown]:r,[fo.Processing]:r,[fo.NoContainers]:r,[fo.NoRunningPods]:r}[e]||r),un=e=>e?.map(({language:e})=>pn(e))||[],hn=(e,t)=>{const o={[Oo.Alauda]:Ae,[Oo.AlibabaCloud]:Se,[Oo.AppDynamics]:Ee,[Oo.Axiom]:Ce,[Oo.AzureBlob]:ve,[Oo.AzureMonitor]:ke,[Oo.BetterStack]:we,[Oo.Bonree]:ye,[Oo.Causely]:be,[Oo.Checkly]:fe,[Oo.Chronosphere]:xe,[Oo.ClickHouse]:$e,[Oo.CloudWatch]:ge,[Oo.Coralogix]:me,[Oo.Dash0]:he,[Oo.Datadog]:ue,[Oo.Dynamic]:P,[Oo.Dynatrace]:pe,[Oo.ElasticApm]:de,[Oo.ElasticSearch]:ce,[Oo.GoogleCloud]:le,[Oo.GoogleCloudOTLP]:le,[Oo.GrafanaCloudLoki]:se,[Oo.GrafanaCloudPrometheus]:se,[Oo.GrafanaCloudTempo]:se,[Oo.Greptime]:re,[Oo.Groundcover]:ae,[Oo.Honeycomb]:ie,[Oo.HyperDX]:ne,[Oo.Instana]:oe,[Oo.Jaeger]:te,[Oo.Kafka]:s,[Oo.Kloudmate]:ee,[Oo.Last9]:Q,[Oo.Lightstep]:Z,[Oo.LogzIo]:X,[Oo.Loki]:J,[Oo.Lumigo]:Y,[Oo.Middleware]:K,[Oo.NewRelic]:q,[Oo.Observe]:G,[Oo.Odigos]:H,[Oo.OneUptime]:V,[Oo.OpenObserve]:W,[Oo.Opsverse]:U,[Oo.Oracle]:j,[Oo.OTLP]:P,[Oo.OTLPHttp]:P,[Oo.Prometheus]:M,[Oo.Qryn]:L,[Oo.QrynOss]:R,[Oo.Quickwit]:B,[Oo.S3]:_,[Oo.Seq]:N,[Oo.Signalfx]:O,[Oo.Signoz]:I,[Oo.Splunk]:O,[Oo.SplunkSapm]:O,[Oo.SplunkOtlp]:O,[Oo.SumoLogic]:F,[Oo.TelemetryHub]:z,[Oo.Tempo]:T,[Oo.Tingyun]:D,[Oo.Traceloop]:A,[Oo.Uptrace]:S,[Oo.VictoriaMetrics]:E,[Oo.VictoriaMetricsCloud]:E,[Oo.XRay]:C}[e];return o&&!t?{icon:o}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},mn=e=>({[yo.Namespace]:Oe,[yo.Source]:Fe,[yo.Destination]:ze,[yo.Action]:Te,[yo.InstrumentationRule]:De}[e]),gn=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,$n=(e,t,o)=>{const{extended:n,prioritizeDisplayName:i}=o||{};let a="",r="";switch(t){case yo.InstrumentationRule:const t=e;a=t.type,r=t.ruleName;break;case yo.Source:const o=e;a=o.name,r=o.otelServiceName;break;case yo.Action:const n=e;a=n.type,r=n.name;break;case yo.Destination:const i=e;a=i.destinationType.displayName,r=i.name;break;case yo.Namespace:const s=e;a=s.name,r=s.name}return n?a+(r&&r!==a?` (${r})`:""):i&&r||a},xn=(e,t)=>{if(t===yo.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[o,n]=e.split("=");t[o]=n}),t}return e},fn=e=>({[_o.CodeAttributes]:Be,[_o.CustomInstrumentation]:_e,[_o.HeadersCollection]:Ne,[_o.PayloadCollection]:Ie,[_o.UnknownType]:r}[e]||r),bn=e=>{const{numberOfInstances:t,containers:o}=e;if(!o)return t&&t>0?fo.Processing:fo.NoRunningPods;const n=o?.filter(e=>e.language!==fo.Ignored);if(!n.length)return fo.NoContainers;const i=n.find(e=>e.language!==fo.Unknown);return i?i.language:fo.Unknown},yn=(e,t,o)=>(t===yo.Source?e?.sources.find(e=>e.kind===o.kind&&e.name===o.name&&e.namespace===o.namespace):e?.destinations.find(e=>e.id===o))||{throughput:0},wn=e=>({[Vo.Logs]:Me,[Vo.Metrics]:Le,[Vo.Traces]:Re}[e]),kn=e=>e?{[$o.K8s]:a,[$o.Vm]:Pe}[e]:H,vn=e=>e?{[$o.K8s]:"Kubernetes Cluster",[$o.Vm]:"Virtual Machine"}[e]:"Unknown",Cn=(e,t,o)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[o],i=[];return void 0!==n&&(Array.isArray(n)?i.push(...n):i.push(n)),i.push(...Cn(e,t,o)),i}):[]},En=(e,t)=>{if(t===yo.Source){let t="";return Object.entries(e).forEach(([e,o])=>{t+=`${e}=${o}&`}),t.slice(0,-1),t}return e},Sn=(e,t,o)=>{switch(t){case Co.Default:return e.v2.colors.purple[o];case Co.Info:return e.v2.colors.blue[o];case Co.Error:return e.v2.colors.red[o];case Co.Warning:return e.v2.colors.yellow[o];case Co.Success:return e.v2.colors.green[o];case Ao.Disabled:case Ao.Unknown:return e.v2.colors.silver[o];default:return e.v2.colors.white[500]}},An=e=>{switch(e){case Po.Updating:case jo.Pending:case Uo.ContainerCreating:case Wo.Waiting:return Co.Info;case Po.Healthy:case jo.Succeeded:case jo.Running:case Uo.Running:case Wo.Running:return Co.Success;case Po.Degraded:return Co.Warning;case Po.Failed:case jo.Failed:case Uo.Error:case Uo.CrashLoopBackOff:case Uo.CreateContainerError:case Uo.CreateContainerConfigError:case Uo.ErrImagePull:case Uo.ErrImageNeverPull:case Uo.ImagePullBackOff:case Uo.InvalidImageName:case Uo.RegistryUnavailable:case Uo.NetworkNotReady:case Uo.OOMKilled:case Uo.ContainerCannotRun:case Wo.Terminated:case Uo.DeadlineExceeded:case Uo.StartError:return Co.Error;case Po.Down:case Uo.Completed:return Ao.Disabled;case Po.Unknown:case jo.Unknown:default:return Ao.Unknown}},Dn=(e,t)=>({[Co.Default]:o=>H({fill:Sn(t,e,"300"),...o}),[Co.Info]:o=>Ge({fill:Sn(t,e,"400"),...o}),[Co.Error]:o=>He({fill:Sn(t,e,"500"),...o}),[Co.Warning]:o=>Ve({fill:Sn(t,e,"500"),...o}),[Co.Success]:o=>We({fill:Sn(t,e,"500"),...o}),[Ao.Disabled]:o=>Ue({fill:Sn(t,e,"400"),...o}),[Ao.Unknown]:o=>je({fill:Sn(t,e,"300"),...o})}[e]),Tn=e=>{switch(e){case No.Success:return Co.Success;case No.Error:case No.Failure:return Co.Error;case No.Notice:return Co.Warning;case No.Unsupported:case No.Unknown:return Co.Info;case No.Irrelevant:case No.Disabled:return So.Disabled;case No.Waiting:return So.Loading;case No.Pending:default:return Co.Default}},zn=(e,t)=>{const o=t.find(([t,o])=>e>=t&&(null===o||e<=o));return o?.[2]||null},Fn=({namespace:e,name:t,kind:o})=>({namespace:e,name:t,kind:o});function On(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const In=(e,t)=>{const o=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=On(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&o.push(...e.items[i].fields.map(e=>({...e,initialValue:n[e.name]})))}return o},Nn=(e,t)=>{const o=e=>e?.some(({healthy:e})=>e.status!==Co.Success);return e?.length?e.some(({instrumentationInstances:e})=>o(e)):o(t)??!1},_n=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Bn=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Rn=(e,t=0)=>{const o=(new Date).getTime();return new Date(e).getTime()-o<=t},Ln=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Mn=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Pn=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,jn=e=>Pn.test(e),Un=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",Wn=e=>e?.map(({status:e,type:t,reason:o,message:n,lastTransitionTime:i})=>({status:e,type:Un(t),reason:o?Un(o):"",message:n,lastTransitionTime:i}))||[],Vn=(e,t)=>{const o=On(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:o[e.name]??null})).filter(e=>null!==e.value):Object.entries(o).map(([e,t])=>({key:e,name:e,value:t}))},Hn=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Yo[e]):[],Gn=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Yo[e]):[],qn=e=>e.replace(/[^\d]/g,""),Kn=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Yn=e=>{let t="";try{const o=JSON.parse(e);t=Array.isArray(o)?o.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof o&&null!==o?Object.entries(o).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(o){t=e}return t},Jn=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(o=>{const n=e[o];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[o]=e.map(e=>Jn(e)))}else if("object"==typeof n&&null!==n){const e=Jn(n);Object.keys(e).length>0&&(t[o]=e)}else[void 0,null,""].includes(n)||(t[o]=n)}),t},Xn=(e,t=2)=>JSON.stringify(e||{},null,t),Zn=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Qn=e=>Object.entries(e).reduce((e,[t,o])=>(e[t]="string"==typeof o?o:JSON.stringify(o),e),{}),ei=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const o=t.split(".");return o.length>2&&(t=o.slice(0,2).join(".")),Number(t)};var ti,oi;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.P="p",e.Span="span"}(ti||(ti={})),function(e){e.XXXS="xxxs",e.XXS="xxs",e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e.XXL="xxl",e.XXXL="xxxl"}(oi||(oi={}));const ni=_t.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 o,DeleteAttri
|
|
|
18
18
|
${({$underline:e})=>e&&Bt`
|
|
19
19
|
text-decoration: underline;
|
|
20
20
|
`}
|
|
21
|
-
`,
|
|
21
|
+
`,ii=({children:e,variant:t=ti.P,color:o,size:n=oi.S,weight:i=400,align:a="left",lineHeight:r,transform:s,nowrap:l,underline:c,...d})=>{const p=e?.toString().split("\n")||[];return ft.createElement(ni,{as:t,$color:o,$size:n,$weight:i,$align:a,$lineHeight:r,$transform:s,$nowrap:l,$underline:c,...d},p.map((e,t)=>ft.createElement(bt,{key:`typography-${t}-${e}`},e,t!==p.length-1&&ft.createElement("br",null))))},ai=_t.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 o,DeleteAttri
|
|
|
28
28
|
padding: 4px 8px;
|
|
29
29
|
border-radius: 100px;
|
|
30
30
|
background-color: ${({$backgroundColor:e})=>e};
|
|
31
|
-
`,oi=({label:e,leftIcon:t,rightIcon:o,status:n=Ao.Unknown,useSecondaryTone:i=!1,invertColors:a=!1,textSize:r,textColor:s,backgroundColor:l,minWidth:c="unset"})=>{const d=Rt(),p=n?[Ao.Disabled].includes(n)?vn(d,n,a?"400":"700"):[Ao.Unknown].includes(n)?vn(d,n,"600"):vn(d,n,a?i?"400":"300":i?"700":"500"):d.v2.colors.grey[200],u=s||(a&&![Ao.Unknown].includes(n)?p:[Ao.Disabled].includes(n)?d.v2.colors.grey[400]:[Co.Error,Co.Warning,Co.Success].includes(n)?d.v2.colors.black[500]:d.v2.colors.white[500]),h=l||(a&&![Ao.Unknown].includes(n)?[Ao.Disabled].includes(n)?d.v2.colors.grey[700]:d.v2.colors.silver[600]:p);return ft.createElement(ti,{$backgroundColor:h,$minWidth:c},t&&ft.createElement(t,{fill:u,size:14}),ft.createElement(ei,{color:u,size:r||Zn.XXS,nowrap:!0},e),o&&ft.createElement(o,{fill:u,size:14}))},ni=xt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),ii=[{label:"Attributes",icon:an(io.Attributes),items:[{type:ao.K8sAttributes,icon:an(ao.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[Vo.Traces,Vo.Metrics,Vo.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:ao.AddClusterInfo,icon:an(ao.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[Vo.Traces,Vo.Metrics,Vo.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:ao.DeleteAttributes,icon:an(ao.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[Vo.Traces,Vo.Metrics,Vo.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:ao.RenameAttributes,icon:an(ao.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[Vo.Traces,Vo.Metrics,Vo.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:ao.PiiMasking,icon:an(ao.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[Vo.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:an(io.Samplers),items:[{type:ao.ErrorSampler,icon:an(io.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[Vo.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:ao.LatencySampler,icon:an(io.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[Vo.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:ao.ProbabilisticSampler,icon:an(io.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[Vo.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:ao.ServiceNameSampler,icon:an(io.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[Vo.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:ao.SpanAttributeSampler,icon:an(io.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[Vo.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."}]}],ai={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."}},ri=[{type:_o.CodeAttributes,icon:gn(_o.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:[fo.Go,fo.Python]},{type:_o.CustomInstrumentation,icon:gn(_o.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods(i.e for Java) or explicit symbol(i.e. Golang).",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" Rule can be used to instrument a specific symbol(i.e for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',supportedLanguages:[fo.Go,fo.Java]},{type:_o.HeadersCollection,icon:gn(_o.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:[fo.Go,fo.Java,fo.JavaScript]},{type:_o.PayloadCollection,icon:gn(_o.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:[fo.Go]}],si=[{id:Vo.Logs,value:"Logs"},{id:Vo.Metrics,value:"Metrics"},{id:Vo.Traces,value:"Traces"}],li={[fo.Go]:"Go",[fo.Java]:"Java",[fo.JavaScript]:"Node.js",[fo.Python]:"Python",[fo.DotNet]:".NET",[fo.CSharp]:"C#",[fo.CPlusPlus]:"C++",[fo.Php]:"PHP",[fo.Ruby]:"Ruby",[fo.Rust]:"Rust",[fo.Swift]:"Swift",[fo.Elixir]:"Elixir",[fo.MySql]:"MySQL",[fo.Nginx]:"Nginx",[fo.Postgres]:"PostgreSQL",[fo.Redis]:"Redis",[fo.Kafka]:"Kafka",[fo.Ignored]:"Ignored",[fo.Unknown]:"Unknown",[fo.Processing]:"Processing",[fo.NoContainers]:"No Containers",[fo.NoRunningPods]:"No Running Pods"},ci=[{id:fo.Go,value:li[fo.Go],icon:ln(fo.Go)},{id:fo.Java,value:li[fo.Java],icon:ln(fo.Java)},{id:fo.JavaScript,value:li[fo.JavaScript],icon:ln(fo.JavaScript)},{id:fo.Python,value:li[fo.Python],icon:ln(fo.Python)},{id:fo.Php,value:li[fo.Php],icon:ln(fo.Php)},{id:fo.Ruby,value:li[fo.Ruby],icon:ln(fo.Ruby)},{id:fo.Rust,value:li[fo.Rust],icon:ln(fo.Rust)},{id:fo.DotNet,value:li[fo.DotNet],icon:ln(fo.DotNet)},{id:fo.CSharp,value:li[fo.CSharp],icon:ln(fo.CSharp)},{id:fo.CPlusPlus,value:li[fo.CPlusPlus],icon:ln(fo.CPlusPlus)},{id:fo.Swift,value:li[fo.Swift],icon:ln(fo.Swift)},{id:fo.Elixir,value:li[fo.Elixir],icon:ln(fo.Elixir)}],di=6048e5,pi=xt()(zt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Yo.DARK_MODE,storage:"undefined"!=typeof window?Ft(()=>localStorage):void 0})),ui={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},hi=xt(e=>({...ui,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const o=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(o).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(ui)})),mi=xt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),gi=xt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,o)=>{const n=t===yo.Namespace?"namespacesLoading":t===yo.Source?"sourcesLoading":t===yo.Destination?"destinationsLoading":t===yo.Action?"actionsLoading":t===yo.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==n&&e({[n]:o})},setEntities:(t,o)=>{const n=t===yo.Namespace?"namespaces":t===yo.Source?"sources":t===yo.Destination?"destinations":t===yo.Action?"actions":t===yo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e({[n]:o})},addEntities:(t,o)=>{const n=t===yo.Namespace?"namespaces":t===yo.Source?"sources":t===yo.Destination?"destinations":t===yo.Action?"actions":t===yo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=[...e[n]];return o.forEach(e=>{const o=t.findIndex(t=>JSON.stringify(un(t))===JSON.stringify(un(e)));-1!==o?t[o]={...t[o],...e}:t.push(e)}),{[n]:t}})},removeEntities:(t,o)=>{const n=t===yo.Namespace?"namespaces":t===yo.Source?"sources":t===yo.Destination?"destinations":t===yo.Action?"actions":t===yo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const i=[...e[n]];return o.forEach(e=>{const o=i.findIndex(o=>t===yo.Source?JSON.stringify(un(o))===JSON.stringify(un(e)):un(o)===e);-1!==o&&i.splice(o,1)}),{[n]:i}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),$i=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),xi=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:$i})),fi=xt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),bi=xt((e,t)=>({notifications:[],addNotification:o=>{const n=new Date,i=`${n.getTime().toString()}${o.target?`#${o.target}`:""}`,{notifications:a}=t();a.some(e=>e.type===o.type&&e.title===o.title&&e.message===o.message&&!e.dismissed)||e(e=>({notifications:[{...o,id:i,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&e.notifications.splice(o,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var yi;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting"}(yi||(yi={}));const wi=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),ki=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),vi=xt((e,t)=>({progress:{},setProgress:(o,n)=>{const i=t(),a=wi();return"number"==typeof n.total&&(a.total=n.total),"number"==typeof n.current&&(a.current=n.current),e({progress:{...i.progress,[o]:ki(a)}})},addProgress:(o,n)=>{const i=t(),a=wi(o,i.progress);return a.current+=n,e({progress:{...i.progress,[o]:ki(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Ci=xt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Ei={fetchedAllNamespaces:!1,availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Si=(e,t)=>e.destinationType.type!==t.destinationType.type,Ai=xt(e=>({...Ei,setFetchedAllNamespaces:t=>e({fetchedAllNamespaces:t}),setAvailableSources:t=>e({availableSources:t}),setConfiguredSources:t=>e({configuredSources:t}),setConfiguredFutureApps:t=>e({configuredFutureApps:t}),setConfiguredDestinations:t=>e({configuredDestinations:t}),addConfiguredDestination:t=>e(e=>({configuredDestinations:[...e.configuredDestinations,t]})),removeConfiguredDestination:t=>e(e=>({configuredDestinations:e.configuredDestinations.filter(e=>Si(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const o=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(o).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Si(e,t))})),clearStore:()=>e(()=>({...Ei}))})),Di={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"}},Ti={v2:Di.v2,darkMode:!0,colors:{...Di.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:Di.font_family},zi={v2:Di.v2,darkMode:!1,colors:{...Di.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:Di.font_family},Fi=e=>e?Ti:zi;var Oi=Object.freeze({__proto__:null,baseTheme:Di,darkModeTheme:Ti,getTheme:Fi,lightModeTheme:zi});Ot('@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 Ii={in:{left:Mt`
|
|
31
|
+
`,ri=({label:e,leftIcon:t,rightIcon:o,status:n=Ao.Unknown,useSecondaryTone:i=!1,invertColors:a=!1,textSize:r,textColor:s,backgroundColor:l,minWidth:c="unset"})=>{const d=Rt(),p=n?[Ao.Disabled].includes(n)?Sn(d,n,a?"400":"700"):[Ao.Unknown].includes(n)?Sn(d,n,"600"):Sn(d,n,a?i?"400":"300":i?"700":"500"):d.v2.colors.grey[200],u=s||(a&&![Ao.Unknown].includes(n)?p:[Ao.Disabled].includes(n)?d.v2.colors.grey[400]:[Co.Error,Co.Warning,Co.Success].includes(n)?d.v2.colors.black[500]:d.v2.colors.white[500]),h=l||(a&&![Ao.Unknown].includes(n)?[Ao.Disabled].includes(n)?d.v2.colors.grey[700]:d.v2.colors.silver[600]:p);return ft.createElement(ai,{$backgroundColor:h,$minWidth:c},t&&ft.createElement(t,{fill:u,size:14}),ft.createElement(ii,{color:u,size:r||oi.XXS,nowrap:!0},e),o&&ft.createElement(o,{fill:u,size:14}))},si=xt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),li=[{label:"Attributes",icon:ln(io.Attributes),items:[{type:ao.K8sAttributes,icon:ln(ao.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[Vo.Traces,Vo.Metrics,Vo.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:ao.AddClusterInfo,icon:ln(ao.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[Vo.Traces,Vo.Metrics,Vo.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:ao.DeleteAttributes,icon:ln(ao.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[Vo.Traces,Vo.Metrics,Vo.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:ao.RenameAttributes,icon:ln(ao.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[Vo.Traces,Vo.Metrics,Vo.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:ao.PiiMasking,icon:ln(ao.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[Vo.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:ln(io.Samplers),items:[{type:ao.ErrorSampler,icon:ln(io.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[Vo.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:ao.LatencySampler,icon:ln(io.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[Vo.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:ao.ProbabilisticSampler,icon:ln(io.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[Vo.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:ao.ServiceNameSampler,icon:ln(io.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[Vo.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:ao.SpanAttributeSampler,icon:ln(io.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[Vo.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."}]}],ci={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."}},di=[{type:_o.CodeAttributes,icon:fn(_o.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:[fo.Go,fo.Python]},{type:_o.CustomInstrumentation,icon:fn(_o.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods(i.e for Java) or explicit symbol(i.e. Golang).",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" Rule can be used to instrument a specific symbol(i.e for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',supportedLanguages:[fo.Go,fo.Java]},{type:_o.HeadersCollection,icon:fn(_o.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:[fo.Go,fo.Java,fo.JavaScript]},{type:_o.PayloadCollection,icon:fn(_o.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:[fo.Go]}],pi=[{id:Vo.Logs,value:"Logs"},{id:Vo.Metrics,value:"Metrics"},{id:Vo.Traces,value:"Traces"}],ui={[fo.Go]:"Go",[fo.Java]:"Java",[fo.JavaScript]:"Node.js",[fo.Python]:"Python",[fo.DotNet]:".NET",[fo.CSharp]:"C#",[fo.CPlusPlus]:"C++",[fo.Php]:"PHP",[fo.Ruby]:"Ruby",[fo.Rust]:"Rust",[fo.Swift]:"Swift",[fo.Elixir]:"Elixir",[fo.MySql]:"MySQL",[fo.Nginx]:"Nginx",[fo.Postgres]:"PostgreSQL",[fo.Redis]:"Redis",[fo.Kafka]:"Kafka",[fo.Ignored]:"Ignored",[fo.Unknown]:"Unknown",[fo.Processing]:"Processing",[fo.NoContainers]:"No Containers",[fo.NoRunningPods]:"No Running Pods"},hi=[{id:fo.Go,value:ui[fo.Go],icon:pn(fo.Go)},{id:fo.Java,value:ui[fo.Java],icon:pn(fo.Java)},{id:fo.JavaScript,value:ui[fo.JavaScript],icon:pn(fo.JavaScript)},{id:fo.Python,value:ui[fo.Python],icon:pn(fo.Python)},{id:fo.Php,value:ui[fo.Php],icon:pn(fo.Php)},{id:fo.Ruby,value:ui[fo.Ruby],icon:pn(fo.Ruby)},{id:fo.Rust,value:ui[fo.Rust],icon:pn(fo.Rust)},{id:fo.DotNet,value:ui[fo.DotNet],icon:pn(fo.DotNet)},{id:fo.CSharp,value:ui[fo.CSharp],icon:pn(fo.CSharp)},{id:fo.CPlusPlus,value:ui[fo.CPlusPlus],icon:pn(fo.CPlusPlus)},{id:fo.Swift,value:ui[fo.Swift],icon:pn(fo.Swift)},{id:fo.Elixir,value:ui[fo.Elixir],icon:pn(fo.Elixir)}],mi=6048e5,gi=xt()(zt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Zo.DARK_MODE,storage:"undefined"!=typeof window?Ft(()=>localStorage):void 0})),$i={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},xi=xt(e=>({...$i,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const o=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(o).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e($i)})),fi=xt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),bi=xt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,o)=>{const n=t===yo.Namespace?"namespacesLoading":t===yo.Source?"sourcesLoading":t===yo.Destination?"destinationsLoading":t===yo.Action?"actionsLoading":t===yo.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==n&&e({[n]:o})},setEntities:(t,o)=>{const n=t===yo.Namespace?"namespaces":t===yo.Source?"sources":t===yo.Destination?"destinations":t===yo.Action?"actions":t===yo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e({[n]:o})},addEntities:(t,o)=>{const n=t===yo.Namespace?"namespaces":t===yo.Source?"sources":t===yo.Destination?"destinations":t===yo.Action?"actions":t===yo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const t=[...e[n]];return o.forEach(e=>{const o=t.findIndex(t=>JSON.stringify(gn(t))===JSON.stringify(gn(e)));-1!==o?t[o]={...t[o],...e}:t.push(e)}),{[n]:t}})},removeEntities:(t,o)=>{const n=t===yo.Namespace?"namespaces":t===yo.Source?"sources":t===yo.Destination?"destinations":t===yo.Action?"actions":t===yo.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==n&&e(e=>{const i=[...e[n]];return o.forEach(e=>{const o=i.findIndex(o=>t===yo.Source?JSON.stringify(gn(o))===JSON.stringify(gn(e)):gn(o)===e);-1!==o&&i.splice(o,1)}),{[n]:i}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),yi=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),wi=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:yi})),ki=xt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),vi=xt((e,t)=>({notifications:[],addNotification:o=>{const n=new Date,i=`${n.getTime().toString()}${o.target?`#${o.target}`:""}`,{notifications:a}=t();a.some(e=>e.type===o.type&&e.title===o.title&&e.message===o.message&&!e.dismissed)||e(e=>({notifications:[{...o,id:i,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&(e.notifications[o].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const o=e.notifications.findIndex(e=>e.id===t);return-1!==o&&e.notifications.splice(o,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Ci;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting"}(Ci||(Ci={}));const Ei=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Si=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Ai=xt((e,t)=>({progress:{},setProgress:(o,n)=>{const i=t(),a=Ei();return"number"==typeof n.total&&(a.total=n.total),"number"==typeof n.current&&(a.current=n.current),e({progress:{...i.progress,[o]:Si(a)}})},addProgress:(o,n)=>{const i=t(),a=Ei(o,i.progress);return a.current+=n,e({progress:{...i.progress,[o]:Si(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Di=xt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Ti={fetchedAllNamespaces:!1,availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},zi=(e,t)=>e.destinationType.type!==t.destinationType.type,Fi=xt(e=>({...Ti,setFetchedAllNamespaces:t=>e({fetchedAllNamespaces:t}),setAvailableSources:t=>e({availableSources:t}),setConfiguredSources:t=>e({configuredSources:t}),setConfiguredFutureApps:t=>e({configuredFutureApps:t}),setConfiguredDestinations:t=>e({configuredDestinations:t}),addConfiguredDestination:t=>e(e=>({configuredDestinations:[...e.configuredDestinations,t]})),removeConfiguredDestination:t=>e(e=>({configuredDestinations:e.configuredDestinations.filter(e=>zi(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const o=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(o).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>zi(e,t))})),clearStore:()=>e(()=>({...Ti}))})),Oi={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"}},Ii={v2:Oi.v2,darkMode:!0,colors:{...Oi.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:Oi.font_family},Ni={v2:Oi.v2,darkMode:!1,colors:{...Oi.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:Oi.font_family},_i=e=>e?Ii:Ni;var Bi=Object.freeze({__proto__:null,baseTheme:Oi,darkModeTheme:Ii,getTheme:_i,lightModeTheme:Ni});Ot('@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 Ri={in:{left:Mt`
|
|
32
32
|
from { transform: translateX(-100%); }
|
|
33
33
|
to { transform: translateX(0); }
|
|
34
34
|
`,right:Mt`
|
|
@@ -58,7 +58,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
58
58
|
`,center:Mt`
|
|
59
59
|
from { transform: translate(-50%, -50%); }
|
|
60
60
|
to { transform: translate(-50%, 100%); }
|
|
61
|
-
`}},
|
|
61
|
+
`}},Li={in:Mt`
|
|
62
62
|
from {
|
|
63
63
|
width: 0%;
|
|
64
64
|
}
|
|
@@ -72,7 +72,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
72
72
|
to {
|
|
73
73
|
width: 0%;
|
|
74
74
|
}
|
|
75
|
-
`},
|
|
75
|
+
`},Mi=Mt`
|
|
76
76
|
0% {
|
|
77
77
|
transform: scale(1);
|
|
78
78
|
opacity: 1;
|
|
@@ -81,14 +81,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
81
81
|
transform: scale(2);
|
|
82
82
|
opacity: 0;
|
|
83
83
|
}
|
|
84
|
-
`,
|
|
84
|
+
`,Pi=Mt`
|
|
85
85
|
0% {
|
|
86
86
|
background-position: -500px 0;
|
|
87
87
|
}
|
|
88
88
|
100% {
|
|
89
89
|
background-position: 500px 0;
|
|
90
90
|
}
|
|
91
|
-
`,
|
|
91
|
+
`,ji={in:Mt`
|
|
92
92
|
from {
|
|
93
93
|
opacity: 0;
|
|
94
94
|
}
|
|
@@ -102,7 +102,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
102
102
|
to {
|
|
103
103
|
opacity: 0;
|
|
104
104
|
}
|
|
105
|
-
`},
|
|
105
|
+
`},Ui={Provider:({children:e})=>{const{darkMode:t}=gi();return ft.createElement(Lt,{theme:_i(t)},e)},useTheme:Rt,opacity:Object.freeze({__proto__:null,hex:{100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"}}),palletes:Bi,animations:Object.freeze({__proto__:null,fade:ji,ping:Mi,progress:Li,shimmer:Pi,slide:Ri})},Wi=_t.div`
|
|
106
106
|
color: ${({$color:e,theme:t})=>e||t.text.secondary};
|
|
107
107
|
font-size: ${({$size:e})=>void 0!==e?e:16}px;
|
|
108
108
|
font-weight: ${({$weight:e})=>void 0!==e?e:300};
|
|
@@ -113,15 +113,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
113
113
|
font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
|
|
114
114
|
white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
|
|
115
115
|
text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
|
|
116
|
-
`,
|
|
116
|
+
`,Vi=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,o,n]=e.split('"');return{original:e,href:o,label:n.replace("</a>","").replace(">","")}})},Hi=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},Gi=(e,t)=>{const o=Vi(e);o?.forEach((t,o)=>{e=e.replace(t.original,`LINK-${o}###`)});const n=Hi(e);return n?.forEach((t,o)=>{e=e.replace(t.original,`STRONG-${o}###`)}),e.split(" ").map(e=>{if(e.includes("LINK-")){const[n,i]=e.split("###"),a=o?.[parseInt(n.replace("LINK-",""))];return ft.createElement(bt,{key:e},ft.createElement("a",{href:a?.href,target:"_blank",rel:"noreferrer",style:{color:t.colors.majestic_blue_soft}},a?.label),i?`${i} `:" ")}if(e.includes("STRONG-")){const[t,o]=e.split("###"),i=n?.[parseInt(t.replace("STRONG-",""))];return ft.createElement(bt,{key:e},ft.createElement("strong",{style:{fontWeight:600}},i?.label),o?`${o} `:" ")}return e+" "})},qi=({children:e,color:t,size:o,weight:n,align:i,family:a,opacity:r,decoration:s,transform:l,nowrap:c,...d})=>{const p=Ui.useTheme(),u=yt(()=>(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 ft.createElement(Wi,{$color:t,$size:o,$weight:n,$align:i,$family:a,$opacity:r,$decoration:s,$transform:l,$nowrap:c,...d},u.length?u.map((e,t)=>ft.createElement(bt,{key:`text-${t}-${e}`},Gi(e,p),t!==u.length-1?ft.createElement("br",null):null)):e)},Ki=_t.div`
|
|
117
117
|
padding: 4px 0 0 0;
|
|
118
|
-
`,
|
|
118
|
+
`,Yi=_t(qi)`
|
|
119
119
|
font-size: 12px;
|
|
120
120
|
color: ${({theme:e})=>e.text.error};
|
|
121
|
-
`,
|
|
121
|
+
`,Ji=({children:e})=>ft.createElement(Ki,null,ft.createElement(Yi,null,e)),Xi=_t.div`
|
|
122
122
|
position: relative;
|
|
123
123
|
width: 100%;
|
|
124
|
-
`,
|
|
124
|
+
`,Zi=_t.div`
|
|
125
125
|
width: calc(100% - 16px);
|
|
126
126
|
display: flex;
|
|
127
127
|
align-items: center;
|
|
@@ -138,7 +138,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
138
138
|
&:focus-within {
|
|
139
139
|
border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
|
|
140
140
|
}
|
|
141
|
-
`,
|
|
141
|
+
`,Qi=_t.input`
|
|
142
142
|
flex: 1;
|
|
143
143
|
border: none;
|
|
144
144
|
outline: none;
|
|
@@ -159,7 +159,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
159
159
|
&:disabled {
|
|
160
160
|
cursor: not-allowed;
|
|
161
161
|
}
|
|
162
|
-
`,
|
|
162
|
+
`,ea=_t.ul`
|
|
163
163
|
position: absolute;
|
|
164
164
|
max-height: 500px;
|
|
165
165
|
top: 32px;
|
|
@@ -170,7 +170,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
170
170
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
171
171
|
z-index: 9999;
|
|
172
172
|
padding: 12px;
|
|
173
|
-
`,
|
|
173
|
+
`,ta=_t.li`
|
|
174
174
|
width: calc(100% - 24px);
|
|
175
175
|
padding: 8px 12px;
|
|
176
176
|
cursor: ${({$isList:e})=>e?"default":"pointer"};
|
|
@@ -182,34 +182,34 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
182
182
|
&:hover {
|
|
183
183
|
background: ${({theme:e,$isList:t})=>!t&&e.colors.dropdown_bg_2};
|
|
184
184
|
}
|
|
185
|
-
`,
|
|
185
|
+
`,oa=_t.div`
|
|
186
186
|
width: 100%;
|
|
187
|
-
`,
|
|
187
|
+
`,na=_t.div`
|
|
188
188
|
display: flex;
|
|
189
189
|
width: 100%;
|
|
190
|
-
`,
|
|
190
|
+
`,ia=_t.div`
|
|
191
191
|
width: 1px;
|
|
192
192
|
height: 52px;
|
|
193
193
|
background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
194
194
|
position: absolute;
|
|
195
195
|
left: 33px;
|
|
196
|
-
`,
|
|
196
|
+
`,aa=_t.div`
|
|
197
197
|
display: flex;
|
|
198
198
|
flex-direction: column;
|
|
199
199
|
gap: 4px;
|
|
200
|
-
`,
|
|
200
|
+
`,ra=_t(qi)`
|
|
201
201
|
flex: 1;
|
|
202
202
|
font-size: 14px;
|
|
203
|
-
`,
|
|
203
|
+
`,sa=_t(qi)`
|
|
204
204
|
color: ${({theme:e})=>e.text.grey};
|
|
205
205
|
font-size: 10px;
|
|
206
206
|
line-height: 150%;
|
|
207
|
-
`,
|
|
207
|
+
`,la=_t.ul`
|
|
208
208
|
padding-left: 0px;
|
|
209
209
|
margin: 4px 0 0 0;
|
|
210
210
|
list-style: none;
|
|
211
211
|
width: 100%;
|
|
212
|
-
`,
|
|
212
|
+
`,ca=(e,t)=>t?e.reduce((e,o)=>{if(o.items){const n=ca(o.items,t);n.length&&e.push({...o,items:n})}else o.label.toLowerCase().includes(t.toLowerCase())&&e.push(o);return e},[]):e,da=({placeholder:e="Type to search...",options:t,selectedOption:o,onOptionSelect:n,defaultText:i,onTextChange:a,style:r,disabled:s,errorMessage:l,...c})=>{const[d,p]=wt(o?.label||i||""),[u,h]=wt(ca(t,d)),[m,g]=wt(!1);wt(-1),kt(()=>h(ca(t,d)),[t]);const $=o?.icon,x=e=>{e&&(p(e.label),a?.(e.label)),g(!e),n?.(e)};return ft.createElement(Xi,{style:r},ft.createElement(Zi,{$hasError:!!l},$&&ft.createElement($,null),ft.createElement(Qi,{type:"text",value:d,placeholder:e,onChange:e=>{e.stopPropagation();const o=e.target.value,n=ca(t,o),i=1===n.length&&n[0].label===o?n[0]:void 0;p(o),a?.(o),h(n),x(i)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...c})),m&&u.length?ft.createElement(ea,null,u.map(e=>ft.createElement(pa,{key:e.type||e.label,option:e,onClick:x}))):null,l&&ft.createElement(Ji,null,l))},pa=({option:e,renderIcon:t=!0,onClick:o})=>{const n=!!e.items&&e.items.length>0,i=e.icon;return ft.createElement(ta,{"data-id":`option-${e.type||e.label}`,$isList:n,onMouseDown:()=>n?null:o(e)},i&&t&&ft.createElement(i,null),ft.createElement(oa,null,ft.createElement(aa,null,ft.createElement(ra,null,e.label),ft.createElement(sa,null,e.description)),n&&ft.createElement(la,null,e.items?.map(e=>ft.createElement(na,{key:e.type||e.label},ft.createElement(ia,null),ft.createElement(pa,{option:e,renderIcon:!1,onClick:o}))))))},ua=_t.span`
|
|
213
213
|
display: flex;
|
|
214
214
|
align-items: center;
|
|
215
215
|
justify-content: center;
|
|
@@ -221,15 +221,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
221
221
|
gap: 2px;
|
|
222
222
|
|
|
223
223
|
border-radius: 50px;
|
|
224
|
-
border: 1px solid ${({theme:e,$filled:t,$status:o})=>o?e.text[o]+(t?"":
|
|
224
|
+
border: 1px solid ${({theme:e,$filled:t,$status:o})=>o?e.text[o]+(t?"":Ui.opacity.hex["050"]):t?"transparent":e.colors.border};
|
|
225
225
|
background-color: ${({theme:e,$filled:t,$status:o})=>t?o?e.colors[o]:e.colors.majestic_blue:"transparent"};
|
|
226
226
|
color: ${({theme:e,$filled:t,$status:o})=>t&&o?e.text.secondary:t?e.text.white:o?e.text[o]:e.text.grey};
|
|
227
227
|
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
228
228
|
font-size: 12px;
|
|
229
229
|
white-space: nowrap;
|
|
230
230
|
|
|
231
|
-
${({theme:e,$filled:t,$status:o,$clickable:n})=>n&&`&:hover {\n cursor: pointer;\n background-color: ${o?e.colors[o]+
|
|
232
|
-
`,
|
|
231
|
+
${({theme:e,$filled:t,$status:o,$clickable:n})=>n&&`&:hover {\n cursor: pointer;\n background-color: ${o?e.colors[o]+Ui.opacity.hex["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+Ui.opacity.hex["020"]};\n }`}
|
|
232
|
+
`,ha=({label:e,filled:t,status:o,withIcon:n,onClick:i})=>{const a=Ui.useTheme(),r=o&&n?Dn(o,a):null;return ft.createElement(ua,{$filled:t,$status:o,$clickable:!!i,onClick:i},!!r&&ft.createElement(r,null),e)},ma=_t.div`
|
|
233
233
|
height: fit-content;
|
|
234
234
|
border: 2px solid transparent;
|
|
235
235
|
padding: 2px;
|
|
@@ -239,15 +239,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
239
239
|
&:focus-within {
|
|
240
240
|
border-color: ${({theme:e})=>e.colors.secondary};
|
|
241
241
|
}
|
|
242
|
-
`,
|
|
243
|
-
border: 1px solid ${({theme:e})=>e.text.secondary+
|
|
242
|
+
`,ga={primary:Bt`
|
|
243
|
+
border: 1px solid ${({theme:e})=>e.text.secondary+Ui.opacity.hex["024"]};
|
|
244
244
|
background: ${({theme:e})=>e.colors.secondary};
|
|
245
245
|
color: ${({theme:e})=>e.colors.primary};
|
|
246
246
|
&:hover {
|
|
247
|
-
background: ${({theme:e})=>e.colors.secondary+
|
|
247
|
+
background: ${({theme:e})=>e.colors.secondary+Ui.opacity.hex["080"]};
|
|
248
248
|
}
|
|
249
249
|
&:active {
|
|
250
|
-
background: ${({theme:e})=>e.text.secondary+
|
|
250
|
+
background: ${({theme:e})=>e.text.secondary+Ui.opacity.hex["060"]};
|
|
251
251
|
}
|
|
252
252
|
`,secondary:Bt`
|
|
253
253
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
@@ -255,17 +255,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
255
255
|
color: ${({theme:e})=>e.colors.secondary};
|
|
256
256
|
&:hover {
|
|
257
257
|
border: 1px solid ${({theme:e})=>e.text.darker_grey};
|
|
258
|
-
background: ${({theme:e})=>e.colors.secondary+
|
|
258
|
+
background: ${({theme:e})=>e.colors.secondary+Ui.opacity.hex["010"]};
|
|
259
259
|
}
|
|
260
260
|
&:active {
|
|
261
261
|
border: 1px solid ${({theme:e})=>e.text.dark_grey};
|
|
262
|
-
background: ${({theme:e})=>e.colors.secondary+
|
|
262
|
+
background: ${({theme:e})=>e.colors.secondary+Ui.opacity.hex["015"]};
|
|
263
263
|
}
|
|
264
264
|
`,tertiary:Bt`
|
|
265
265
|
border-color: transparent;
|
|
266
266
|
background: transparent;
|
|
267
267
|
&:hover {
|
|
268
|
-
background: ${({theme:e})=>e.colors.dropdown_bg_2+
|
|
268
|
+
background: ${({theme:e})=>e.colors.dropdown_bg_2+Ui.opacity.hex["040"]};
|
|
269
269
|
}
|
|
270
270
|
&:active {
|
|
271
271
|
background: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
@@ -274,21 +274,21 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
274
274
|
border-color: transparent;
|
|
275
275
|
background: ${({theme:e})=>e.text.error};
|
|
276
276
|
&:hover {
|
|
277
|
-
background: ${({theme:e})=>e.text.error+
|
|
277
|
+
background: ${({theme:e})=>e.text.error+Ui.opacity.hex["090"]};
|
|
278
278
|
}
|
|
279
279
|
&:active {
|
|
280
|
-
background: ${({theme:e})=>e.text.error+
|
|
280
|
+
background: ${({theme:e})=>e.text.error+Ui.opacity.hex["080"]};
|
|
281
281
|
}
|
|
282
282
|
`,warning:Bt`
|
|
283
283
|
border-color: transparent;
|
|
284
284
|
background: ${({theme:e})=>e.text.warning};
|
|
285
285
|
&:hover {
|
|
286
|
-
background: ${({theme:e})=>e.text.warning+
|
|
286
|
+
background: ${({theme:e})=>e.text.warning+Ui.opacity.hex["090"]};
|
|
287
287
|
}
|
|
288
288
|
&:active {
|
|
289
|
-
background: ${({theme:e})=>e.text.warning+
|
|
289
|
+
background: ${({theme:e})=>e.text.warning+Ui.opacity.hex["080"]};
|
|
290
290
|
}
|
|
291
|
-
`}
|
|
291
|
+
`},$a=_t.button`
|
|
292
292
|
height: 36px;
|
|
293
293
|
border-radius: 32px;
|
|
294
294
|
cursor: pointer;
|
|
@@ -302,20 +302,20 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
302
302
|
text-decoration: underline;
|
|
303
303
|
font-weight: 600;
|
|
304
304
|
outline: none;
|
|
305
|
-
${({$variant:e})=>e&&
|
|
305
|
+
${({$variant:e})=>e&&ga[e]}
|
|
306
306
|
${({disabled:e,$variant:t})=>e&&Bt`
|
|
307
307
|
opacity: 0.5;
|
|
308
308
|
cursor: not-allowed;
|
|
309
309
|
|
|
310
310
|
${"primary"===t?Bt`
|
|
311
311
|
color: ${({theme:e})=>e.colors.secondary};
|
|
312
|
-
background: ${({theme:e})=>e.text.secondary+
|
|
312
|
+
background: ${({theme:e})=>e.text.secondary+Ui.opacity.hex["010"]};
|
|
313
313
|
&:hover {
|
|
314
|
-
background: ${({theme:e})=>e.text.secondary+
|
|
314
|
+
background: ${({theme:e})=>e.text.secondary+Ui.opacity.hex["015"]};
|
|
315
315
|
}
|
|
316
316
|
`:""}
|
|
317
317
|
`}
|
|
318
|
-
`,
|
|
318
|
+
`,xa=({children:e,variant:t="primary",onClick:o,...n})=>{const i=vt(null);return ft.createElement(ma,{$variant:t},ft.createElement($a,{ref:i,$variant:t,onClick:e=>{o&&o(e),i.current?.blur()},...n},e))},fa=e=>{function t(){return void 0===e?{}:eo(e)}const[o,n]=wt(t()),[i,a]=wt({}),r=(e,t)=>Object.entries(e).every(([e,o])=>Array.isArray(o)?o.length===t[e].length&&o.every((o,n)=>r(o,t[e][n])):"object"==typeof o&&null!==o?r(o,t[e]):o===t[e]),s=yt(()=>void 0!==e&&!r(e,o),[e,o]);return kt(()=>{void 0!==e&&"{}"===JSON.stringify(o)&&n(t())},[e,o]),{formData:o,formErrors:i,areFormValuesEqual:r,isFormDirty:s,handleFormChange:(e,t,o)=>{if(e){const o=e.toString().split(".");1===o.length?n(o=>({...o,[e]:t})):n(e=>{const n=eo(e);let i=n;for(let e=0;e<o.length-1;e++){const t=o[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[o[o.length-1]]=t,n})}else o&&n({...o})},handleErrorChange:(e,t,o)=>{e?a(o=>({...o,[e]:t})):o&&a({...o})},resetFormData:e=>{n(e||t()),a({})}}},ba={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}},ya=()=>{const{addNotification:e}=vi(),{formData:t,formErrors:o,handleFormChange:n,handleErrorChange:i,resetFormData:a}=fa(ba);return{formData:t,formErrors:o,handleFormChange:n,resetFormData:a,validateForm:o=>{const n={};let a=!0;return Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":_n(t)&&(n[e]=Qo.FIELD_IS_REQUIRED)}}),a=!Object.values(n).length,!a&&o?.withAlert&&e({type:Co.Warning,title:o.alertTitle,message:Qo.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,n),a},loadFormWithDrawerItem:({type:e,signals:t,fields:o})=>{const i={...eo(ba),type:e,signals:t};Object.entries(o).forEach(([e,t])=>{if(t)switch(e){case"actionName":i.name=t;break;case"type":case"notes":case"disabled":i[e]=t;break;case ro.LabelsAttributes:case ro.AnnotationsAttributes:i.fields||(i.fields={}),i.fields[e]=(o=t)&&Array.isArray(o)?o.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):o;break;case ro.CollectContainerAttributes:case ro.CollectReplicaSetAttributes:case ro.CollectWorkloadId:case ro.CollectClusterId:case ro.ClusterAttributes:case ro.OverwriteExistingValues:case ro.AttributeNamesToDelete:case ro.Renames:case ro.PiiCategories:case ro.FallbackSamplingRatio:case ro.SamplingPercentage:case ro.EndpointsFilters:case ro.ServicesNameFilters:case ro.AttributeFilters:i.fields||(i.fields={}),i.fields[e]=t}var o}),n(void 0,void 0,i)}}},wa=e=>{kt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},ka=()=>{const{setCurrentModal:e}=ki(),{setDrawerType:t,setDrawerEntityId:o}=fi(),{setActiveNodeType:n,setActiveNodeId:i,activeNodeId:a}=si();return{onClickNode:(r,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(a===l?(n(null),i(null)):(n(c),i(l)),p){case yo.Source:case yo.Destination:case yo.Action:case yo.InstrumentationRule:t(p),o(d);break;case Fo.AddSource:e(yo.Source);break;case Fo.AddDestination:e(yo.Destination);break;case Fo.AddAction:e(yo.Action);break;case Fo.AddRule:e(yo.InstrumentationRule)}}}},va=()=>{const{setDrawerType:e,setDrawerEntityId:t}=fi(),{markAsDismissed:o,markAsSeen:n}=vi();return{onClickNotification:(i,a)=>{const{id:r,crdType:s,target:l}=i,{dismissToast:c}=a||{};if(s&&l)switch(s){case yo.InstrumentationRule:e(yo.InstrumentationRule),t(xn(l,yo.InstrumentationRule));break;case yo.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(yo.Source),t(xn(l,yo.Source));break;case yo.Action:e(yo.Action),t(xn(l,yo.Action));break;case yo.Destination:case"Destination":e(yo.Destination),t(xn(l,yo.Destination))}n(r),c&&o(r)}}},Ca=Et({tier:void 0,version:void 0,isVersionSupported:!1,platformType:void 0}),Ea=({children:e,tier:t,version:o,platformType:n})=>{const i=yt(()=>({tier:t,version:o,platformType:n}),[t,o,n]);return ft.createElement(Ca.Provider,{value:i},e)},Sa=e=>{const t=Ct(Ca),o=!e||t.version&&ei(t.version)>=ei(e);return{...t,isVersionSupported:o}},Aa=()=>{const{platformType:e}=Sa();return{isVm:e===$o.Vm}},Da=()=>{const e=vt(null),[t,o]=wt(0),[n,i]=wt(0);return kt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();o(t),i(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}};var Ta;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Ta||(Ta={}));const za=_t.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 o,DeleteAttri
|
|
|
326
326
|
&:hover {
|
|
327
327
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
328
328
|
}
|
|
329
|
-
`,Aa=({icon:e,size:t=Ea.S,onClick:o,disabled:n})=>ft.createElement(Sa,{$size:t,$disabled:n,onClick:e=>{o&&!n&&(e.stopPropagation(),o(e))}},ft.createElement(e,{size:t})),Da=({onDone:e}={})=>{const[t,o]=wt(!1),[n,i]=wt(-1),a=St(async(n,a)=>{if(!t){if(o(!0),void 0!==a&&i(a),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(n)}catch(e){}else{const e=document.createElement("textarea");e.value=n,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[t,e]);return{CopyButton:St(({value:e,size:o})=>{const n=t?Ge:Ke;return ft.createElement(Aa,{icon:n,size:o,onClick:()=>a(e)})},[t]),isCopied:t,copiedIndex:n,clickCopy:a}},Ta=e=>{const{addNotification:t}=bi(),{formData:o,handleFormChange:n,formErrors:i,handleErrorChange:a,resetFormData:r}=ma(e);return{formData:o,formErrors:i,handleFormChange:n,resetFormData:r,validateForm:e=>{const n={};let i=!0;return o.name?In(o.name)?n.name=void 0:(i=!1,n.name=Jo.ILLEGAL_K8S_LABEL):(i=!1,n.name=Jo.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:Co.Warning,title:e.alertTitle,message:Jo.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,n),i},loadFormWithDrawerItem:({name:t})=>{const o={...eo(e),name:t};n(void 0,void 0,o)}}},za={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},Fa=e=>{const{supportedSignals:t,preLoadedFields:o}=e||{},{addNotification:n}=bi(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=ma(za),[c,d]=wt([]),[p,u]=wt([]);return kt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:o,componentProperties:n,displayName:i,initialValue:a,renderCondition:r}=e;if(o===ko.Dropdown){const e=Tn(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:o,title:i,value:a,placeholder:e.placeholder||"Select an option",options:s,renderCondition:r,...e}}return{name:t,componentType:o,title:i,value:a,renderCondition:r,...Tn(n,{})}})).map(e=>{if(o){const t="string"==typeof o?Tn(o,{}):o;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,o]),kt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));r("fields",e)}},[p]),kt(()=>{if(t&&0===Un(i.exportedSignals).length){const{logs:e,metrics:o,traces:n}=t;r("exportedSignals",{logs:e.supported,metrics:o.supported,traces:n.supported})}},[t,i.exportedSignals]),{formData:i,formErrors:a,handleFormChange:r,resetFormData:l,validateForm:e=>{const t={};let o=!0;return p.forEach(({name:e,value:n,required:i})=>{i&&!n&&(o=!1,t[e]=Jo.FIELD_IS_REQUIRED)}),!o&&e?.withAlert&&n({type:Co.Warning,title:e.alertTitle,message:Jo.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),o},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:o,exportedSignals:n,fields:i})=>{const a={...eo(za),type:e,name:t,disabled:o,exportedSignals:n,fields:Object.entries(Tn(i,{})).map(([e,t])=>({key:e,value:t}))};return r(void 0,void 0,a),a},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Oa=({items:e,rowHeight:t})=>{const o=vt(null),n=It({enabled:e.length>0,horizontal:!1,count:e.length,getScrollElement:()=>o.current,estimateSize:()=>t,overscan:Math.ceil(.05*e.length)});return{overflowRef:o,listHeight:n.getTotalSize(),listItems:n.getVirtualItems()}},Ia={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[Mo.HttpRequest]:null,[Mo.HttpResponse]:null,[Mo.DbQuery]:null,[Mo.Messaging]:null},codeAttributes:{[Bo.Column]:null,[Bo.FilePath]:null,[Bo.Function]:null,[Bo.LineNumber]:null,[Bo.Namespace]:null,[Bo.StackTrace]:null},headersCollection:null,customInstrumentations:{[Lo.Java]:null,[Lo.Golang]:null}},Na=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:i}=ma(Ia);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,payloadCollection:i,codeAttributes:a,headersCollection:r,customInstrumentations:s})=>{const l={...eo(Ia),ruleName:e,notes:t,disabled:n};i&&(l.payloadCollection={[Mo.HttpRequest]:i[Mo.HttpRequest]?{}:null,[Mo.HttpResponse]:i[Mo.HttpResponse]?{}:null,[Mo.DbQuery]:i[Mo.DbQuery]?{}:null,[Mo.Messaging]:i[Mo.Messaging]?{}:null}),a&&(l.codeAttributes={[Bo.Column]:a[Bo.Column]||null,[Bo.FilePath]:a[Bo.FilePath]||null,[Bo.Function]:a[Bo.Function]||null,[Bo.LineNumber]:a[Bo.LineNumber]||null,[Bo.Namespace]:a[Bo.Namespace]||null,[Bo.StackTrace]:a[Bo.StackTrace]||null}),r&&(l.headersCollection=r),s&&(l.customInstrumentations={[Lo.Java]:s[Lo.Java]||null,[Lo.Golang]:s[Lo.Golang]||null}),o(void 0,void 0,l)}}},_a=({active:e,key:t,withAltKey:o,withCtrlKey:n,withShiftKey:i,withMetaKey:a},r)=>(kt(()=>{const s=s=>{e&&t===s.key&&(!o||o&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!i||i&&s.shiftKey)&&(!a||a&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),r(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,o,n,i,a,r]),null),Ba=(e,t)=>{kt(()=>{const o=o=>{e.current&&!e.current.contains(o.target)&&t()};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[e,t])},Ra=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:o}={})=>{const n=vt(null),[i,a]=wt(!1),[r,s]=wt({top:0,left:0});return Ba(n,()=>{i&&(a(!1),o?.())}),{popupRef:n,popupOpen:i,setPopupOpen:a,popupPosition:r,handlePosition:(o,i)=>{const{innerWidth:a,innerHeight:r}=window;let l=i,c=o;l>=r/2&&(l+=-(n.current?.clientHeight||e)),c>=a/2&&(c+=-(n.current?.clientWidth||t)),s({top:l,left:c})}}},La=()=>({getItemSS:(e,t)=>{const o=sessionStorage.getItem(e);return o?Tn(o,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Ma={otelServiceName:"",currentStreamName:""},Pa=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:i}=ma(Ma);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const n={...eo(Ma),otelServiceName:e||t||""};o(void 0,void 0,n)}}},ja=(e,t,o)=>{const n="boolean"==typeof o,i=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,a=i&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,r=(n?o:e.selected&&(!i||a))||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:r,numberOfInstances:e.numberOfInstances}},Ua=(e,t,o)=>({...ja(e,t,o),currentStreamName:t}),Wa=(e,t,o)=>{const n="boolean"==typeof o,i=e.dataStreamNames?.includes(t),a=(n?o:e.selected)||!1;return{namespace:e.name,selected:!(!i&&!n)&&a,currentStreamName:t}},Va=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:o}=gi(),{selectedStreamName:n}=hi(),i=vt(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s,setAvailableSources:l,setFetchedAllNamespaces:c}=Ai(),[d,p]=wt(s),[u,h]=wt(""),[m,g]=wt(!1),[$,x]=wt([]),[f,b]=wt(""),[y,w]=wt(r),[k,v]=wt(((e,t,o)=>{const n={};return Object.entries(e).forEach(([e,t])=>{n[e]=t.map(e=>Ua(e,o))}),Object.entries(t).forEach(([e,t])=>{t.forEach(t=>{const i=n[e].findIndex(e=>e.name===t.name&&e.kind===t.kind),a=Ua(t,o);-1!==i?n[e][i]=a:n[e].push(a)})}),n})(s,a,n)),C=async(e,o)=>{if(t){if(h(e.name),$.includes(e.name))v(t=>({...t,[e.name]:t[e.name].map(e=>({...e,selected:"boolean"==typeof o?o:e.selected,currentStreamName:n}))}));else{const{data:i}=await t({namespaceName:e.name}),{name:a,sources:r=[]}=i?.computePlatform?.k8sActualNamespace||{};if(!a)return;const s=r.map(e=>ja(e,n));x(e=>[...e,a]),l({...Ai.getState().availableSources,[a]:s}),p(e=>({...e,[a]:s})),v(e=>({...e,[a]:"boolean"!=typeof o&&e[a]?.length?e[a]:r.map(e=>Ua(e,n,o))}))}h("")}};kt(()=>(i.current=!0,o?.length&&!Ai.getState().fetchedAllNamespaces&&(p(e=>{const t={...e};return o.forEach(({name:e})=>t[e]=t[e]||[]),t}),v(e=>{const t={...e};return o.forEach(({name:e})=>t[e]=t[e]||[]),t}),w(e=>{const t={...e};return o.forEach(e=>t[e.name]=t[e.name]||Wa(e,n)),t}),(async()=>{for await(const e of o)i.current&&await C(e)})(),i.current&&c(!0)),()=>{i.current=!1}),[o,n]);const[E,S]=wt(""),[A,D]=wt(yo.Source),[T,z]=wt(!1),[F,O]=wt(!1),I=yt(()=>{const e=(e,t)=>!E||A!==t||A===t&&e.toLowerCase().includes(E),t={};return Object.entries(k).filter(([t])=>e(t,yo.Namespace)).forEach(([o,n])=>{const i=n.filter(t=>e(t.name,yo.Source)&&(!T||t.selected)&&(e=>!F||(e.numberOfInstances||0)>0)(t));(!E||E&&(A===yo.Namespace||A===yo.Source&&i.length))&&(t[o]=i)}),t},[k,E,A,T,F]);return{fetchingNamespace:u,fetchedNamespaces:$,availableSources:d,filteredNamespacesAndSources:I,getApiSourcesPayload:()=>{const e={};return Object.entries(k).forEach(([t,o])=>{o.forEach(o=>{const n=d[t]?.find(e=>e.name===o.name&&e.kind===o.kind);n?.selected!==o.selected&&(e[t]||(e[t]=[]),e[t].push(o))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(y).forEach(([t,i])=>{const a=o?.find(e=>e.name===t);(i.selected&&!a?.dataStreamNames?.includes(n)||!i.selected&&a?.dataStreamNames?.includes(n))&&(e[t]=i)}),e},selectedNamespace:f,onSelectNamespace:(e,t)=>{const n=o.find(t=>t.name===e);if(n){const o="boolean"==typeof t;b(t=>t!==e||o?e:""),C(n,t),o&&g(!1)}},selectedAllNamespaces:m,onSelectAllNamespaces:e=>{g(e),o.forEach(t=>C(t,e))},selectedSources:k,onSelectSource:(e,t)=>{const o=t||f;if(!o)return;const i=[...k[o]||[]],a=i.findIndex(({name:t,kind:o})=>t===e.name&&o===e.kind);if(-1!==a){const e={...i[a],selected:!i[a].selected,currentStreamName:n};i[a]=e}else i.push({...e,selected:!0,currentStreamName:n});v(e=>({...e,[o]:i})),g(!1)},selectedFutureApps:y,onSelectFutureApps:(e,t)=>{const i=t||f;if(!i)return;const a=o.find(e=>e.name===t);a&&w(t=>({...t,[i]:Wa(a,n,e)}))},searchText:E,setSearchText:S,searchBy:A,setSearchBy:D,showSelectedOnly:T,setShowSelectedOnly:z,showRunningOnly:F,setShowRunningOnly:O}};try{Tt.addDefaultLocale(Nt)}catch(e){}const Ha=()=>{const e=vt(new Tt(Nt.locale));return{formatTimeAgo:St(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},qa=_t.div`
|
|
329
|
+
`,Fa=({icon:e,size:t=Ta.S,onClick:o,disabled:n})=>ft.createElement(za,{$size:t,$disabled:n,onClick:e=>{o&&!n&&(e.stopPropagation(),o(e))}},ft.createElement(e,{size:t})),Oa=({onDone:e}={})=>{const[t,o]=wt(!1),[n,i]=wt(-1),a=St(async(n,a)=>{if(!t){if(o(!0),void 0!==a&&i(a),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(n)}catch(e){}else{const e=document.createElement("textarea");e.value=n,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[t,e]);return{CopyButton:St(({value:e,size:o})=>{const n=t?qe:Ke;return ft.createElement(Fa,{icon:n,size:o,onClick:()=>a(e)})},[t]),isCopied:t,copiedIndex:n,clickCopy:a}},Ia=e=>{const{addNotification:t}=vi(),{formData:o,handleFormChange:n,formErrors:i,handleErrorChange:a,resetFormData:r}=fa(e);return{formData:o,formErrors:i,handleFormChange:n,resetFormData:r,validateForm:e=>{const n={};let i=!0;return o.name?Bn(o.name)?n.name=void 0:(i=!1,n.name=Qo.ILLEGAL_K8S_LABEL):(i=!1,n.name=Qo.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:Co.Warning,title:e.alertTitle,message:Qo.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,n),i},loadFormWithDrawerItem:({name:t})=>{const o={...eo(e),name:t};n(void 0,void 0,o)}}},Na={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},_a=e=>{const{supportedSignals:t,preLoadedFields:o}=e||{},{addNotification:n}=vi(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=fa(Na),[c,d]=wt([]),[p,u]=wt([]);return kt(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:o,componentProperties:n,displayName:i,initialValue:a,renderCondition:r}=e;if(o===ko.Dropdown){const e=On(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:o,title:i,value:a,placeholder:e.placeholder||"Select an option",options:s,renderCondition:r,...e}}return{name:t,componentType:o,title:i,value:a,renderCondition:r,...On(n,{})}})).map(e=>{if(o){const t="string"==typeof o?On(o,{}):o;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,o]),kt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));r("fields",e)}},[p]),kt(()=>{if(t&&0===Hn(i.exportedSignals).length){const{logs:e,metrics:o,traces:n}=t;r("exportedSignals",{logs:e.supported,metrics:o.supported,traces:n.supported})}},[t,i.exportedSignals]),{formData:i,formErrors:a,handleFormChange:r,resetFormData:l,validateForm:e=>{const t={};let o=!0;return p.forEach(({name:e,value:n,required:i})=>{i&&!n&&(o=!1,t[e]=Qo.FIELD_IS_REQUIRED)}),!o&&e?.withAlert&&n({type:Co.Warning,title:e.alertTitle,message:Qo.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),o},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:o,exportedSignals:n,fields:i})=>{const a={...eo(Na),type:e,name:t,disabled:o,exportedSignals:n,fields:Object.entries(On(i,{})).map(([e,t])=>({key:e,value:t}))};return r(void 0,void 0,a),a},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Ba=({items:e,rowHeight:t})=>{const o=vt(null),n=It({enabled:e.length>0,horizontal:!1,count:e.length,getScrollElement:()=>o.current,estimateSize:()=>t,overscan:Math.ceil(.05*e.length)});return{overflowRef:o,listHeight:n.getTotalSize(),listItems:n.getVirtualItems()}},Ra={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[Mo.HttpRequest]:null,[Mo.HttpResponse]:null,[Mo.DbQuery]:null,[Mo.Messaging]:null},codeAttributes:{[Bo.Column]:null,[Bo.FilePath]:null,[Bo.Function]:null,[Bo.LineNumber]:null,[Bo.Namespace]:null,[Bo.StackTrace]:null},headersCollection:null,customInstrumentations:{[Lo.Java]:null,[Lo.Golang]:null}},La=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:i}=fa(Ra);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,payloadCollection:i,codeAttributes:a,headersCollection:r,customInstrumentations:s})=>{const l={...eo(Ra),ruleName:e,notes:t,disabled:n};i&&(l.payloadCollection={[Mo.HttpRequest]:i[Mo.HttpRequest]?{}:null,[Mo.HttpResponse]:i[Mo.HttpResponse]?{}:null,[Mo.DbQuery]:i[Mo.DbQuery]?{}:null,[Mo.Messaging]:i[Mo.Messaging]?{}:null}),a&&(l.codeAttributes={[Bo.Column]:a[Bo.Column]||null,[Bo.FilePath]:a[Bo.FilePath]||null,[Bo.Function]:a[Bo.Function]||null,[Bo.LineNumber]:a[Bo.LineNumber]||null,[Bo.Namespace]:a[Bo.Namespace]||null,[Bo.StackTrace]:a[Bo.StackTrace]||null}),r&&(l.headersCollection=r),s&&(l.customInstrumentations={[Lo.Java]:s[Lo.Java]||null,[Lo.Golang]:s[Lo.Golang]||null}),o(void 0,void 0,l)}}},Ma=({active:e,key:t,withAltKey:o,withCtrlKey:n,withShiftKey:i,withMetaKey:a},r)=>(kt(()=>{const s=s=>{e&&t===s.key&&(!o||o&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!i||i&&s.shiftKey)&&(!a||a&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),r(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,o,n,i,a,r]),null),Pa=(e,t)=>{kt(()=>{const o=o=>{e.current&&!e.current.contains(o.target)&&t()};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[e,t])},ja=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:o}={})=>{const n=vt(null),[i,a]=wt(!1),[r,s]=wt({top:0,left:0});return Pa(n,()=>{i&&(a(!1),o?.())}),{popupRef:n,popupOpen:i,setPopupOpen:a,popupPosition:r,handlePosition:(o,i)=>{const{innerWidth:a,innerHeight:r}=window;let l=i,c=o;l>=r/2&&(l+=-(n.current?.clientHeight||e)),c>=a/2&&(c+=-(n.current?.clientWidth||t)),s({top:l,left:c})}}},Ua=()=>({getItemSS:(e,t)=>{const o=sessionStorage.getItem(e);return o?On(o,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Wa={otelServiceName:"",currentStreamName:""},Va=()=>{const{formData:e,formErrors:t,handleFormChange:o,handleErrorChange:n,resetFormData:i}=fa(Wa);return{formData:e,formErrors:t,handleFormChange:o,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const n={...eo(Wa),otelServiceName:e||t||""};o(void 0,void 0,n)}}},Ha=(e,t,o)=>{const n="boolean"==typeof o,i=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,a=i&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,r=(n?o:e.selected&&(!i||a))||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:r,numberOfInstances:e.numberOfInstances}},Ga=(e,t,o)=>({...Ha(e,t,o),currentStreamName:t}),qa=(e,t,o)=>{const n="boolean"==typeof o,i=e.dataStreamNames?.includes(t),a=(n?o:e.selected)||!1;return{namespace:e.name,selected:!(!i&&!n)&&a,currentStreamName:t}},Ka=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:o}=bi(),{selectedStreamName:n}=xi(),i=vt(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s,setAvailableSources:l,setFetchedAllNamespaces:c}=Fi(),[d,p]=wt(s),[u,h]=wt(""),[m,g]=wt(!1),[$,x]=wt([]),[f,b]=wt(""),[y,w]=wt(r),[k,v]=wt(((e,t,o)=>{const n={};return Object.entries(e).forEach(([e,t])=>{n[e]=t.map(e=>Ga(e,o))}),Object.entries(t).forEach(([e,t])=>{t.forEach(t=>{const i=n[e].findIndex(e=>e.name===t.name&&e.kind===t.kind),a=Ga(t,o);-1!==i?n[e][i]=a:n[e].push(a)})}),n})(s,a,n)),C=async(e,o)=>{if(t){if(h(e.name),$.includes(e.name))v(t=>({...t,[e.name]:t[e.name].map(e=>({...e,selected:"boolean"==typeof o?o:e.selected,currentStreamName:n}))}));else{const{data:i}=await t({namespaceName:e.name}),{name:a,sources:r=[]}=i?.computePlatform?.k8sActualNamespace||{};if(!a)return;const s=r.map(e=>Ha(e,n));x(e=>[...e,a]),l({...Fi.getState().availableSources,[a]:s}),p(e=>({...e,[a]:s})),v(e=>({...e,[a]:"boolean"!=typeof o&&e[a]?.length?e[a]:r.map(e=>Ga(e,n,o))}))}h("")}};kt(()=>(i.current=!0,o?.length&&!Fi.getState().fetchedAllNamespaces&&(p(e=>{const t={...e};return o.forEach(({name:e})=>t[e]=t[e]||[]),t}),v(e=>{const t={...e};return o.forEach(({name:e})=>t[e]=t[e]||[]),t}),w(e=>{const t={...e};return o.forEach(e=>t[e.name]=t[e.name]||qa(e,n)),t}),(async()=>{for await(const e of o)i.current&&await C(e)})(),i.current&&c(!0)),()=>{i.current=!1}),[o,n]);const[E,S]=wt(""),[A,D]=wt(yo.Source),[T,z]=wt(!1),[F,O]=wt(!1),I=yt(()=>{const e=(e,t)=>!E||A!==t||A===t&&e.toLowerCase().includes(E),t={};return Object.entries(k).filter(([t])=>e(t,yo.Namespace)).forEach(([o,n])=>{const i=n.filter(t=>e(t.name,yo.Source)&&(!T||t.selected)&&(e=>!F||(e.numberOfInstances||0)>0)(t));(!E||E&&(A===yo.Namespace||A===yo.Source&&i.length))&&(t[o]=i)}),t},[k,E,A,T,F]);return{fetchingNamespace:u,fetchedNamespaces:$,availableSources:d,filteredNamespacesAndSources:I,getApiSourcesPayload:()=>{const e={};return Object.entries(k).forEach(([t,o])=>{o.forEach(o=>{const n=d[t]?.find(e=>e.name===o.name&&e.kind===o.kind);n?.selected!==o.selected&&(e[t]||(e[t]=[]),e[t].push(o))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(y).forEach(([t,i])=>{const a=o?.find(e=>e.name===t);(i.selected&&!a?.dataStreamNames?.includes(n)||!i.selected&&a?.dataStreamNames?.includes(n))&&(e[t]=i)}),e},selectedNamespace:f,onSelectNamespace:(e,t)=>{const n=o.find(t=>t.name===e);if(n){const o="boolean"==typeof t;b(t=>t!==e||o?e:""),C(n,t),o&&g(!1)}},selectedAllNamespaces:m,onSelectAllNamespaces:e=>{g(e),o.forEach(t=>C(t,e))},selectedSources:k,onSelectSource:(e,t)=>{const o=t||f;if(!o)return;const i=[...k[o]||[]],a=i.findIndex(({name:t,kind:o})=>t===e.name&&o===e.kind);if(-1!==a){const e={...i[a],selected:!i[a].selected,currentStreamName:n};i[a]=e}else i.push({...e,selected:!0,currentStreamName:n});v(e=>({...e,[o]:i})),g(!1)},selectedFutureApps:y,onSelectFutureApps:(e,t)=>{const i=t||f;if(!i)return;const a=o.find(e=>e.name===t);a&&w(t=>({...t,[i]:qa(a,n,e)}))},searchText:E,setSearchText:S,searchBy:A,setSearchBy:D,showSelectedOnly:T,setShowSelectedOnly:z,showRunningOnly:F,setShowRunningOnly:O}};try{Tt.addDefaultLocale(Nt)}catch(e){}const Ya=()=>{const e=vt(new Tt(Nt.locale));return{formatTimeAgo:St(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},Ja=_t.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 o,DeleteAttri
|
|
|
334
334
|
gap: 24px;
|
|
335
335
|
padding: 24px 24px 0 24px;
|
|
336
336
|
overflow-x: scroll;
|
|
337
|
-
`,
|
|
337
|
+
`,Xa=_t.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 o,DeleteAttri
|
|
|
344
344
|
flex-direction: inherit;
|
|
345
345
|
gap: inherit;
|
|
346
346
|
overflow-x: inherit;
|
|
347
|
-
`,
|
|
347
|
+
`,Za=_t.div`
|
|
348
348
|
display: flex;
|
|
349
349
|
flex-direction: row;
|
|
350
350
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -352,7 +352,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
352
352
|
justify-content: ${({$justifyContent:e="unset"})=>e};
|
|
353
353
|
gap: ${({$gap:e=2})=>e}px;
|
|
354
354
|
padding: ${({$padding:e="unset"})=>e};
|
|
355
|
-
`,
|
|
355
|
+
`,Qa=_t.div`
|
|
356
356
|
display: flex;
|
|
357
357
|
flex-direction: column;
|
|
358
358
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -360,17 +360,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
360
360
|
justify-content: ${({$justifyContent:e="unset"})=>e};
|
|
361
361
|
gap: ${({$gap:e=2})=>e}px;
|
|
362
362
|
padding: ${({$padding:e="unset"})=>e};
|
|
363
|
-
`,
|
|
363
|
+
`,er=_t(Qa)`
|
|
364
364
|
width: ${({$width:e})=>e||"100%"};
|
|
365
365
|
height: ${({$height:e})=>e||"unset"};
|
|
366
366
|
align-items: center;
|
|
367
367
|
justify-content: center;
|
|
368
|
-
`,
|
|
368
|
+
`,tr=_t.div`
|
|
369
369
|
display: flex;
|
|
370
370
|
flex-direction: column;
|
|
371
371
|
padding: 12px;
|
|
372
372
|
overflow-y: scroll;
|
|
373
|
-
`,
|
|
373
|
+
`,or=_t.div`
|
|
374
374
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
375
375
|
top: 0;
|
|
376
376
|
left: 0;
|
|
@@ -379,24 +379,24 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
379
379
|
z-index: 1000;
|
|
380
380
|
background: rgba(0, 0, 0, 0.6);
|
|
381
381
|
backdrop-filter: blur(2px);
|
|
382
|
-
`,
|
|
382
|
+
`,nr=_t.div`
|
|
383
383
|
width: 800px;
|
|
384
384
|
min-height: ${({$minHeight:e})=>e||"unset"};
|
|
385
385
|
height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
|
|
386
386
|
margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
|
|
387
387
|
padding: 0 2px;
|
|
388
388
|
overflow-y: scroll;
|
|
389
|
-
`,
|
|
389
|
+
`,ir=_t(Qa)`
|
|
390
390
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
391
391
|
width: 100%;
|
|
392
|
-
`,
|
|
392
|
+
`,ar=_t(Za)`
|
|
393
393
|
gap: 16px;
|
|
394
394
|
padding: 16px;
|
|
395
|
-
`,
|
|
395
|
+
`,rr=_t.div`
|
|
396
396
|
width: 100%;
|
|
397
397
|
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
398
398
|
overflow-y: auto;
|
|
399
|
-
`,
|
|
399
|
+
`,sr=_t.div`
|
|
400
400
|
position: fixed;
|
|
401
401
|
top: 50%;
|
|
402
402
|
left: 50%;
|
|
@@ -406,28 +406,28 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
406
406
|
background: ${({theme:e})=>e.colors.translucent_bg};
|
|
407
407
|
border: ${({theme:e})=>`1px solid ${e.colors.border}`};
|
|
408
408
|
border-radius: 40px;
|
|
409
|
-
box-shadow: ${({theme:e})=>{const t=e.colors.primary+
|
|
410
|
-
animation-name: ${
|
|
411
|
-
`,
|
|
409
|
+
box-shadow: ${({theme:e})=>{const t=e.colors.primary+Ui.opacity.hex["010"];return`0px 1px 1px 0px ${t}, 0px 2px 2px 0px ${t}, 0px 5px 5px 0px ${t}, 0px 10px 10px 0px ${t}, 0px 0px 8px 0px ${t}`}};
|
|
410
|
+
animation-name: ${Ui.animations.slide.in.center};
|
|
411
|
+
`,lr=_t.div`
|
|
412
412
|
display: flex;
|
|
413
413
|
justify-content: space-between;
|
|
414
414
|
align-items: center;
|
|
415
415
|
height: 80px;
|
|
416
416
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
417
417
|
padding: 0 24px;
|
|
418
|
-
`,
|
|
418
|
+
`,cr=_t.div`
|
|
419
419
|
cursor: pointer;
|
|
420
420
|
display: flex;
|
|
421
421
|
align-items: center;
|
|
422
422
|
gap: 8px;
|
|
423
|
-
`,
|
|
423
|
+
`,dr=_t.div`
|
|
424
424
|
display: flex;
|
|
425
425
|
align-items: center;
|
|
426
426
|
gap: 8px;
|
|
427
|
-
`,
|
|
427
|
+
`,pr=_t(er)`
|
|
428
428
|
min-width: 350px;
|
|
429
429
|
min-height: 150px;
|
|
430
|
-
`,
|
|
430
|
+
`,ur=_t.div`
|
|
431
431
|
position: absolute;
|
|
432
432
|
left: 50%;
|
|
433
433
|
transform: translateX(-50%);
|
|
@@ -436,24 +436,24 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
436
436
|
justify-content: center;
|
|
437
437
|
width: 100%;
|
|
438
438
|
pointer-events: none;
|
|
439
|
-
`,
|
|
439
|
+
`,hr=_t(qi)`
|
|
440
440
|
text-transform: uppercase;
|
|
441
441
|
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
442
442
|
pointer-events: auto;
|
|
443
|
-
`,
|
|
443
|
+
`,mr=_t(qi)`
|
|
444
444
|
text-transform: uppercase;
|
|
445
445
|
font-weight: 500;
|
|
446
446
|
font-size: 14px;
|
|
447
447
|
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
448
448
|
text-decoration: underline;
|
|
449
449
|
cursor: pointer;
|
|
450
|
-
`,
|
|
450
|
+
`,gr=({isOpen:e,noOverlay:t,header:o,actionComponent:n,onClose:i,children:a,closeOnEscape:r=!0})=>(Ma({key:"Escape",active:e&&r},()=>i()),wa(e),e?Vt.createPortal(ft.createElement(ft.Fragment,null,ft.createElement(or,{hidden:!e,onClick:i,style:{opacity:t?0:1}}),ft.createElement(sr,{"data-id":"modal"+(o?`-${o.title.replaceAll(" ","-")}`:"")},o&&ft.createElement(lr,null,ft.createElement(cr,{onClick:i},ft.createElement(Ye,null),ft.createElement(mr,null,"Cancel")),ft.createElement(ur,null,ft.createElement(hr,null,o.title)),ft.createElement(dr,null,n)),ft.createElement(pr,null,a))),document.body):null),$r=_t.div`
|
|
451
451
|
width: ${({$orientation:e,$thickness:t,$length:o})=>"vertical"===e?`${t}px`:o||"100%"};
|
|
452
452
|
height: ${({$orientation:e,$thickness:t,$length:o})=>"horizontal"===e?`${t}px`:o||"100%"};
|
|
453
453
|
margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
|
|
454
|
-
background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+
|
|
454
|
+
background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+Ui.opacity.hex["050"]};
|
|
455
455
|
opacity: ${({$opacity:e})=>e||1};
|
|
456
|
-
`,
|
|
456
|
+
`,xr=({orientation:e="horizontal",type:t,thickness:o=1,length:n,margin:i,opacity:a})=>ft.createElement($r,{$orientation:e,$type:t,$thickness:o,$length:n,$margin:i,$opacity:a}),fr=_t.div`
|
|
457
457
|
position: absolute;
|
|
458
458
|
${({$top:e})=>void 0!==e&&`top: ${e}px;`}
|
|
459
459
|
${({$bottom:e})=>void 0!==e&&`bottom: ${e}px;`}
|
|
@@ -468,24 +468,24 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
468
468
|
width: ${({$width:e})=>void 0!==e?e:"unset"};
|
|
469
469
|
|
|
470
470
|
${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
|
|
471
|
-
`,
|
|
471
|
+
`,br=_t.div`
|
|
472
472
|
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
473
473
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
474
|
-
|
|
474
|
+
`,yr=_t.div`
|
|
475
475
|
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
476
|
-
`,
|
|
476
|
+
`,wr=_t.div`
|
|
477
477
|
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
478
478
|
border-top: 1px solid ${({theme:e})=>e.colors.border};
|
|
479
|
-
`,
|
|
479
|
+
`,kr=At(({isOpen:e,asPortal:t,...o},n)=>{const i=yt(()=>{const{children:e,top:i,bottom:a,left:r,right:s,borderRadius:l,padding:c,maxWidth:d,width:p,header:u,footer:h,withPointerEvents:m,...g}=o;return ft.createElement(fr,{ref:n,$top:i,$bottom:a,$left:r,$right:s,$borderRadius:l,$padding:c,$maxWidth:d,$width:p,$asPortal:t,$withPointerEvents:m,...g},u&&ft.createElement(br,{$padding:c},u),ft.createElement(yr,{$padding:c},e),h&&ft.createElement(wr,{$padding:c},h))},[n,o,t]);return e?t?Vt.createPortal(i,document.body):i:null});kr.displayName=kr.name;const vr=_t.div`
|
|
480
480
|
position: relative;
|
|
481
481
|
display: flex;
|
|
482
482
|
align-items: center;
|
|
483
483
|
gap: 4px;
|
|
484
484
|
// cursor: help;
|
|
485
|
-
`,
|
|
485
|
+
`,Cr=_t(qi)`
|
|
486
486
|
word-break: break-word;
|
|
487
487
|
white-space: pre-wrap;
|
|
488
|
-
`,
|
|
488
|
+
`,Er=({withIcon:e,titleIcon:t,title:o,text:n,timestamp:i,children:a})=>{const r=Ui.useTheme(),{popupRef:s,popupOpen:l,setPopupOpen:c,popupPosition:d,handlePosition:p}=ja({defaultClientHeight:40,defaultClientwidth:Math.min(7.5*(n?.length||0),300)}),u=yt(()=>!!Vi(n||"")?.length,[n]),h=e=>{const{type:t,clientX:o,clientY:n}=e;u?p(d.left||o,d.top||n):p(o,n),c("mouseleave"!==t)};return n?ft.createElement(vr,{onMouseEnter:h,onMouseMove:h,onMouseLeave:h},a,e&&ft.createElement(je,{fill:r.v2.colors.silver[200]}),ft.createElement(kr,{ref:s,isOpen:l,top:d.top,left:d.left,asPortal:!0,withPointerEvents:u,onMouseEnter:u?h:void 0,maxWidth:"270px",borderRadius:"16px",padding:"8px 12px"},(!!t||!!o)&&ft.createElement(Za,{style:{marginBottom:"4px"},$gap:4},t&&ft.createElement(t,{key:"icon",size:12,fill:r.text.secondary}),o&&ft.createElement(qi,{key:"title",size:12,color:r.text.secondary},o)),ft.createElement(Cr,{size:12,color:r.text.info},n),!!i&&ft.createElement(qi,{size:10,color:r.text.darker_grey,family:"secondary",style:{marginTop:"8px"}},new Date(i).toLocaleString()))):ft.createElement(ft.Fragment,null,a)},Sr=_t.button`
|
|
489
489
|
position: relative;
|
|
490
490
|
width: ${({$size:e})=>e}px;
|
|
491
491
|
height: ${({$size:e})=>e}px;
|
|
@@ -497,9 +497,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
497
497
|
justify-content: center;
|
|
498
498
|
cursor: pointer;
|
|
499
499
|
&:hover {
|
|
500
|
-
background-color: ${({theme:e,$backgroundColor:t})=>t?t+
|
|
500
|
+
background-color: ${({theme:e,$backgroundColor:t})=>t?t+Ui.opacity.hex["070"]:e.colors.dropdown_bg_2};
|
|
501
501
|
}
|
|
502
|
-
`,
|
|
502
|
+
`,Ar=_t.div`
|
|
503
503
|
position: absolute;
|
|
504
504
|
top: ${({$size:e})=>e/5}px;
|
|
505
505
|
right: ${({$size:e})=>e/5}px;
|
|
@@ -514,17 +514,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
514
514
|
inset: 0;
|
|
515
515
|
border-radius: 100%;
|
|
516
516
|
background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
|
|
517
|
-
animation: ${
|
|
517
|
+
animation: ${Ui.animations.ping} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
518
518
|
}
|
|
519
|
-
`,
|
|
519
|
+
`,Dr=({children:e,onClick:t,tooltip:o,size:n=36,withPing:i,pingColor:a,withBorder:r,backgroundColor:s,...l})=>ft.createElement(Er,{text:o},ft.createElement(Sr,{$size:n,$withBorder:r,$backgroundColor:s,onClick:t,...l},i&&ft.createElement(Ar,{$size:n,$color:a}),e)),Tr=_t.div`
|
|
520
520
|
position: relative;
|
|
521
521
|
&.animated {
|
|
522
522
|
overflow: hidden;
|
|
523
523
|
padding-bottom: 1px;
|
|
524
524
|
border-radius: 32px;
|
|
525
|
-
animation: ${({$isLeaving:e})=>e?
|
|
525
|
+
animation: ${({$isLeaving:e})=>e?Ui.animations.slide.out.bottom:Ui.animations.slide.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
526
526
|
}
|
|
527
|
-
`,
|
|
527
|
+
`,zr=_t.div`
|
|
528
528
|
position: absolute;
|
|
529
529
|
bottom: -1px;
|
|
530
530
|
left: 0;
|
|
@@ -533,8 +533,8 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
533
533
|
height: 100%;
|
|
534
534
|
border-radius: 32px;
|
|
535
535
|
background-color: ${({$type:e,theme:t})=>t.text[e]};
|
|
536
|
-
animation: ${
|
|
537
|
-
`,
|
|
536
|
+
animation: ${Ui.animations.progress.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
537
|
+
`,Fr=_t.div`
|
|
538
538
|
display: flex;
|
|
539
539
|
align-items: center;
|
|
540
540
|
flex: 1;
|
|
@@ -542,20 +542,20 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
542
542
|
padding: 0 12px;
|
|
543
543
|
border-radius: 32px;
|
|
544
544
|
background-color: ${({$type:e,theme:t})=>t.colors[e]};
|
|
545
|
-
`,
|
|
545
|
+
`,Or=_t.div`
|
|
546
546
|
display: flex;
|
|
547
547
|
align-items: center;
|
|
548
548
|
margin: 0 auto 0 0;
|
|
549
549
|
padding: 8px 0;
|
|
550
550
|
max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
|
|
551
551
|
min-height: 12px;
|
|
552
|
-
`,
|
|
552
|
+
`,Ir=_t(qi)`
|
|
553
553
|
font-size: 14px;
|
|
554
554
|
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
555
|
-
`,
|
|
555
|
+
`,Nr=_t(qi)`
|
|
556
556
|
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
557
557
|
font-size: 12px;
|
|
558
|
-
`,
|
|
558
|
+
`,_r=_t(Za)``,Br=_t(qi)`
|
|
559
559
|
text-transform: uppercase;
|
|
560
560
|
text-decoration: underline;
|
|
561
561
|
font-size: 12px;
|
|
@@ -566,34 +566,34 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
566
566
|
transform: scale(1.1);
|
|
567
567
|
transition: transform 0.3s;
|
|
568
568
|
}
|
|
569
|
-
`,
|
|
569
|
+
`,Rr=({type:e,icon:t,title:o,message:n,action:i,onClose:a,duration:r=5e3,overrideMaxWidth:s,style:l})=>{const c=Ui.useTheme(),[d,p]=wt(!1),u=vt(null),h=vt(null),m=e=>{a&&(p(!0),a({asSeen:e?.asSeen}))};kt(()=>(u.current=setTimeout(()=>m({asSeen:!1}),r),()=>{u.current&&clearTimeout(u.current)}),[r]);const g=t||Dn(e,c);return ft.createElement(Tr,{className:a?"animated":"",$duration:r,$isLeaving:d,onMouseEnter:()=>{u.current&&clearTimeout(u.current),h.current&&(h.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(h.current){const e=h.current.offsetWidth/h.current.parentElement.offsetWidth*r;u.current=setTimeout(()=>m({asSeen:!1}),e),h.current.style.animationPlayState="running"}}},ft.createElement(Fr,{"data-id":"toast",$type:e,style:l},ft.createElement(g,{fill:c.text[e]}),ft.createElement(Or,{$withAction:!!i,$overrideMaxWidth:s},o&&ft.createElement(Ir,{$type:e},o),o&&n&&ft.createElement(xr,{orientation:"vertical",type:e}),n&&ft.createElement(Nr,{$type:e},n)),(!!i||!!a)&&ft.createElement(_r,null,i&&ft.createElement(Br,{"data-id":"toast-action",onClick:i.onClick},i.label),a&&ft.createElement(Dr,{"data-id":"toast-close",onClick:()=>m({asSeen:!0})},ft.createElement(Ye,{size:12})))),a&&ft.createElement(zr,{ref:h,$duration:r,$type:e}))},Lr=_t.div`
|
|
570
570
|
padding: 24px 32px;
|
|
571
|
-
`,
|
|
571
|
+
`,Mr=_t.div`
|
|
572
572
|
padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
|
|
573
|
-
`,
|
|
573
|
+
`,Pr=_t(qi)`
|
|
574
574
|
font-size: 20px;
|
|
575
575
|
line-height: 28px;
|
|
576
|
-
`,
|
|
576
|
+
`,jr=_t(qi)`
|
|
577
577
|
color: ${({theme:e})=>e.text.grey};
|
|
578
578
|
width: 416px;
|
|
579
579
|
font-style: normal;
|
|
580
580
|
font-weight: 300;
|
|
581
581
|
line-height: 24px;
|
|
582
|
-
`,
|
|
582
|
+
`,Ur=_t.div`
|
|
583
583
|
display: flex;
|
|
584
584
|
justify-content: space-between;
|
|
585
585
|
gap: 12px;
|
|
586
|
-
`,
|
|
586
|
+
`,Wr=_t(xa)`
|
|
587
587
|
width: 250px;
|
|
588
|
-
`,
|
|
588
|
+
`,Vr=_t.div`
|
|
589
589
|
margin-bottom: 12px;
|
|
590
|
-
`,
|
|
590
|
+
`,Hr=({isOpen:e,noOverlay:t,title:o="",description:n="",note:i,approveButton:a,denyButton:r,closeOnEscape:s=!0})=>{Ma({key:"Enter",active:e&&s},()=>a.onClick());const l=()=>r.onClick();return ft.createElement(gr,{isOpen:e,noOverlay:t,onClose:l},ft.createElement(Lr,null,ft.createElement(Pr,null,o),ft.createElement(Mr,{$withNote:!!i},ft.createElement(jr,null,n)),!!i&&ft.createElement(Vr,null,ft.createElement(Rr,{type:i.type,title:i.title,message:i.message})),ft.createElement(Ur,null,ft.createElement(Wr,{"data-id":"approve",variant:a.variant||"primary",onClick:()=>a.onClick()},a.text),ft.createElement(Wr,{"data-id":"deny",variant:r.variant||"secondary",onClick:l},r.text))))},Gr=({isOpen:e,noOverlay:t,name:o,onApprove:n,onDeny:i})=>ft.createElement(Hr,{isOpen:e,noOverlay:t,title:"Cancel"+(o?` ${o}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Co.Warning,onClick:n},denyButton:{text:"Go Back",onClick:i}}),qr=_t.div`
|
|
591
591
|
display: flex;
|
|
592
592
|
align-items: center;
|
|
593
593
|
gap: 8px;
|
|
594
594
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
595
595
|
opacity: ${({$disabled:e})=>e?.6:1};
|
|
596
|
-
`,
|
|
596
|
+
`,Kr=_t.div`
|
|
597
597
|
width: 18px;
|
|
598
598
|
height: 18px;
|
|
599
599
|
border-radius: 6px;
|
|
@@ -601,15 +601,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
601
601
|
display: flex;
|
|
602
602
|
align-items: center;
|
|
603
603
|
justify-content: center;
|
|
604
|
-
background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:o})=>e?o.colors.majestic_blue:t?o.colors.majestic_blue_soft:o.colors.secondary+
|
|
604
|
+
background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:o})=>e?o.colors.majestic_blue:t?o.colors.majestic_blue_soft:o.colors.secondary+Ui.opacity.hex["020"]};
|
|
605
605
|
pointer-events: ${({$disabled:e})=>e?"none":"auto"};
|
|
606
606
|
transition: border 0.3s;
|
|
607
607
|
&:hover {
|
|
608
608
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
609
609
|
}
|
|
610
|
-
`,
|
|
610
|
+
`,Yr=({title:e,titleColor:t,tooltip:o,value:n=!1,partiallyChecked:i=!1,onChange:a,disabled:r,style:s,errorMessage:l,allowPropagation:c=!1})=>{const d=Ui.useTheme(),[p,u]=wt(n);return kt(()=>u(n),[n]),ft.createElement(Qa,null,ft.createElement(qr,{"data-id":"checkbox"+(e?`-${e}`:""),$disabled:r,onClick:e=>{r||(c||e.stopPropagation(),a?a(!!i||!p):u(e=>!!i||!e))},style:s},ft.createElement(Kr,{$isChecked:p,$isPartiallyChecked:i,$disabled:r},i?ft.createElement(Je,{fill:d.text.white}):p?ft.createElement(qe,{fill:d.text.white}):null),e&&ft.createElement(Er,{text:o,withIcon:!0},ft.createElement(qi,{size:12,color:t||d.text.grey,style:{maxWidth:"90%"}},e))),!!l&&ft.createElement(Ji,null,l))},Jr=_t(Za)`
|
|
611
611
|
gap: 0;
|
|
612
|
-
`,
|
|
612
|
+
`,Xr=_t.button`
|
|
613
613
|
padding: 4px 8px;
|
|
614
614
|
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
615
615
|
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
@@ -621,22 +621,22 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
621
621
|
&:hover {
|
|
622
622
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
623
623
|
}
|
|
624
|
-
`,
|
|
624
|
+
`,Zr=({isPrettyMode:e,setIsPrettyMode:t})=>ft.createElement(Jr,null,ft.createElement(Xr,{$position:"left",$selected:e,onClick:()=>t(!0)},ft.createElement(Xe,null)),ft.createElement(Xr,{$position:"right",$selected:!e,onClick:()=>t(!1)},ft.createElement(Ze,null))),Qr=_t.table`
|
|
625
625
|
border-collapse: collapse;
|
|
626
626
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
627
|
-
`,
|
|
627
|
+
`,es=_t.tbody``,ts=_t.tr`
|
|
628
628
|
td:first-child {
|
|
629
629
|
padding-left: 0 !important;
|
|
630
630
|
}
|
|
631
631
|
td:last-child {
|
|
632
632
|
padding-right: 0 !important;
|
|
633
633
|
}
|
|
634
|
-
`,
|
|
634
|
+
`,os=_t.td`
|
|
635
635
|
vertical-align: top;
|
|
636
636
|
padding: 4px 6px;
|
|
637
|
-
`,
|
|
637
|
+
`,ns=_t(qi)`
|
|
638
638
|
white-space: nowrap;
|
|
639
|
-
`,
|
|
639
|
+
`,is=_t.span`
|
|
640
640
|
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
641
641
|
overflow-wrap: break-word;
|
|
642
642
|
word-break: break-word;
|
|
@@ -644,56 +644,56 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
644
644
|
/* Fallback for older browsers */
|
|
645
645
|
-ms-word-break: break-all;
|
|
646
646
|
font-size: 12px;
|
|
647
|
-
`,
|
|
647
|
+
`,as=({language:e,code:t,theme:o,flatten:n,pretty:i})=>{const{darkMode:a}=Ui.useTheme(),r=o?Yt[o]:a?Yt.palenight:Yt.vsLight;let s="";if("json"===e){const e=On(t,{}),o=Jn(e);s=Xn(n?nn(o):o)}else s=t;return i&&"json"===e?ft.createElement(rs,{darkMode:a,str:s}):ft.createElement(Kt,{theme:r||(a?Yt.palenight:Yt.vsLight),language:e,code:s},({getLineProps:e,getTokenProps:t,tokens:o})=>ft.createElement("pre",null,o.map((o,n)=>ft.createElement("div",{key:`line-${n}`,...e({line:o})},o.map((e,o)=>ft.createElement(is,{key:`line-${n}-token-${o}`,...t({token:e})}))))))},rs=({darkMode:e,str:t})=>{const o=Ui.useTheme();return ft.createElement(Kt,{theme:e?Yt.palenight:Yt.vsLight,language:"json",code:t},({getLineProps:e,getTokenProps:t,tokens:n})=>ft.createElement(Qr,null,ft.createElement(es,null,n.map((n,i)=>{const a=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const o=[...e],n=["property","string"].includes(o[0])?t.replace(/"/g,""):t;return"string"===o[0]&&(["true","false"].includes(n.split("@")[0])&&(o[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(o[0]="number")),{types:o,content:n}})})(n),r=e({line:a});return 1===a.length&&"property"===a[0].types[0]?ft.createElement(bt,{key:`line-${i}`},((e,t)=>{const n=new Array(2).fill(e=>ft.createElement(ts,{...e},ft.createElement(os,null),ft.createElement(os,null)));return ft.createElement(bt,null,n.map((e,n)=>ft.createElement(e,{key:`empty-row-${t}-${n}`,style:0===n?{borderBottom:`1px solid ${o.colors.border}`}:{}})))})(0,i),ft.createElement(ts,{...r},ft.createElement(os,null,ft.createElement(ns,null,a[0].content)),ft.createElement(os,null))):2===a.length?ft.createElement(ts,{key:`line-${i}`,...r},a.map((e,n)=>{const{text:a,components:r}=((e,t)=>{const[o,...n]=e.split("@");return{text:o,components:n?.map((e,o)=>{if(!e.includes("="))return null;const[n,i]=e.split("=");switch(n){case"tooltip":return ft.createElement(Er,{key:`${n}-${i}-${o}`,withIcon:!0,text:i});case"status":if("none"===i)return ft.createElement("div",{key:`${n}-${i}-${o}`,style:{width:16,height:16}});let e=Dn(i,t);return e||(e=Dn(Co.Warning,t)),ft.createElement(e,{key:`${n}-${i}-${o}`});default:return null}})?.filter(e=>!!e)||[]}})(e.content,o),s=0===n;return ft.createElement(os,{key:`line-${i}-token-${n}`},ft.createElement(Za,null,ft.createElement(Za,null,r),ft.createElement(is,{$noWrap:s,...t({token:e})},a)))})):(a.length,null)}))))},ss={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function ls(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const n=(e.match(/[^0-9]*$/)||"").toString();return ss[n]?{value:t,unit:n}:{value:t,unit:"px"}}function cs(e){const t=ls(e);return`${t.value}${t.unit}`}const ds=(()=>{const e="react-spinners-FadeLoader-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const o=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return o&&o.insertRule(n,0),e})(),ps=({loading:e=!0,color:t,scale:o=1,speedMultiplier:n=1,cssOverride:i={},style:a={},...r})=>{const s=Ui.useTheme(),l=t||s.text.secondary;if(!e)return null;const{value:c}=ls(2),d=c+4.2,p=d/2+d/5.5,u=4*d*o,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:o,...a,...i},m=(e,t)=>({position:"absolute",width:cs(1.5),height:cs(4),borderRadius:cs(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${ds} ${1.2/n}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return ft.createElement("span",{style:h,...r},ft.createElement("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),ft.createElement("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),ft.createElement("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),ft.createElement("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),ft.createElement("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),ft.createElement("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),ft.createElement("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),ft.createElement("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}}))},us=_t.div`
|
|
648
648
|
margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
|
|
649
649
|
display: flex;
|
|
650
650
|
align-items: center;
|
|
651
651
|
justify-content: center;
|
|
652
|
-
`,
|
|
652
|
+
`,hs=({extend:e,size:t=14,align:o="center"})=>ft.createElement(us,{$align:o},ft.createElement(Qe,{size:t,rotate:e?180:0})),ms=_t.div`
|
|
653
653
|
border-radius: 24px;
|
|
654
|
-
background-color: ${({theme:e,$status:t})=>t===Co.Error?e.text.error+
|
|
654
|
+
background-color: ${({theme:e,$status:t})=>t===Co.Error?e.text.error+Ui.opacity.hex["010"]:t===Co.Warning?e.text.warning+Ui.opacity.hex["010"]:e.colors.secondary+Ui.opacity.hex["005"]};
|
|
655
655
|
&:hover {
|
|
656
|
-
background-color: ${({theme:e,$status:t})=>t===Co.Error?e.text.error+
|
|
656
|
+
background-color: ${({theme:e,$status:t})=>t===Co.Error?e.text.error+Ui.opacity.hex["020"]:t===Co.Warning?e.text.warning+Ui.opacity.hex["020"]:e.colors.secondary+Ui.opacity.hex["010"]};
|
|
657
657
|
}
|
|
658
658
|
cursor: pointer;
|
|
659
659
|
transition: background 0.3s;
|
|
660
|
-
`,
|
|
660
|
+
`,gs=_t.div`
|
|
661
661
|
display: flex;
|
|
662
662
|
align-items: center;
|
|
663
663
|
gap: 12px;
|
|
664
664
|
padding: 12px 18px;
|
|
665
|
-
|
|
665
|
+
`,$s=_t.div`
|
|
666
666
|
display: flex;
|
|
667
667
|
flex-direction: column;
|
|
668
668
|
gap: 8px;
|
|
669
669
|
padding: 6px 18px 12px 18px;
|
|
670
|
-
`,
|
|
670
|
+
`,xs=_t.div`
|
|
671
671
|
display: flex;
|
|
672
672
|
align-items: center;
|
|
673
673
|
gap: 12px;
|
|
674
|
-
`,
|
|
674
|
+
`,fs=_t(qi)`
|
|
675
675
|
white-space: nowrap;
|
|
676
|
-
`,
|
|
676
|
+
`,bs=_t(Qa)`
|
|
677
677
|
width: 16px;
|
|
678
|
-
|
|
678
|
+
`,ys=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:o="Something isn't right",headerLabelSuccess:n="Everything Successful"})=>{const i=Ui.useTheme(),[a,r]=wt(!1),s=yt(()=>Wn(e),[e]),{errors:l,hasErrors:c,warnings:d,hasWarnings:p,hasDisableds:u,hasLoadings:h}=yt(()=>cn(s),[s]);kt(()=>{r(c||p||u||h)},[c,p,u,h]);const m=(!s.length||h)&&!c&&!p&&!u,g=c?Co.Error:p?Co.Warning:u?Co.Info:Co.Success,$=Dn(g,i),x=c?t:p||u?o:m?"Loading...":n,f=c?i.text.error:p?i.text.warning:i.text.info,b=`(${c?l.length:p?d.length:s.length}/${s.length})`,y=c?i.text.error_secondary:p?i.text.warning_secondary:i.text.info_secondary,w=St(()=>r(e=>!e),[]);return ft.createElement(ms,{onClick:w,$status:g},ft.createElement(gs,null,m?ft.createElement(ps,null):ft.createElement($,null),ft.createElement(qi,{color:f,size:14},x),ft.createElement(qi,{color:y,size:12,family:"secondary"},b),ft.createElement(hs,{extend:a,align:"right"})),a&&ft.createElement($s,null,s.map(({status:e,type:t,reason:o,message:n,lastTransitionTime:a},r)=>{const s=e===So.Loading?()=>ft.createElement(ps,{scale:.8}):e===So.Disabled?Dn(Co.Info,i):Dn(e,i),l=e===So.Disabled?i.text.info:e===Co.Error?i.text.error:e===Co.Warning?i.text.warning:i.text.info,c=e===So.Disabled?i.text.info_secondary:e===Co.Error?i.text.error_secondary:e===Co.Warning?i.text.warning_secondary:i.text.info_secondary;return ft.createElement(xs,{key:`condition-${r}`},ft.createElement(bs,null,ft.createElement(s,null)),ft.createElement(Za,{$gap:12,style:{width:"100%",justifyContent:"space-between"}},ft.createElement(qi,{color:l,size:12},ft.createElement(fs,{color:c,size:12,weight:700},t),n||o),ft.createElement(fs,{color:l,size:12},new Date(a).toLocaleString())))})))},ws=_t.div`
|
|
679
679
|
display: flex;
|
|
680
680
|
align-items: center;
|
|
681
681
|
gap: ${({$size:e})=>e/3}px;
|
|
682
682
|
padding: ${({$size:e,$withBorder:t,$withBackground:o})=>t||o?`${e/(t?3:2)}px ${e/(t?1.5:1)}px`:"0"};
|
|
683
683
|
width: ${({$width:e})=>e||"fit-content"};
|
|
684
684
|
border-radius: 360px;
|
|
685
|
-
border: ${({$withBorder:e,$status:t,theme:o})=>e?`1px solid ${o.text[t]+
|
|
686
|
-
background: ${({$withBackground:e,$status:t,theme:o})=>e?`linear-gradient(90deg, transparent 0%, ${o.text[t]+
|
|
687
|
-
`,
|
|
685
|
+
border: ${({$withBorder:e,$status:t,theme:o})=>e?`1px solid ${o.text[t]+Ui.opacity.hex["050"]}`:"none"};
|
|
686
|
+
background: ${({$withBackground:e,$status:t,theme:o})=>e?`linear-gradient(90deg, transparent 0%, ${o.text[t]+Ui.opacity.hex["030"]} 100%)`:"transparent"};
|
|
687
|
+
`,ks=_t.div`
|
|
688
688
|
display: flex;
|
|
689
689
|
align-items: center;
|
|
690
|
-
`,
|
|
690
|
+
`,vs=_t.div`
|
|
691
691
|
display: flex;
|
|
692
692
|
align-items: center;
|
|
693
|
-
`,
|
|
693
|
+
`,Cs=({title:e,subtitle:t,status:o=Co.Default,forceIcon:n,withIcon:i,withBorder:a,withBackground:r,width:s,size:l=12,family:c="secondary",nowrap:d=!1})=>{const p=Ui.useTheme(),u=[So.Loading,So.Disabled].includes(o)?Co.Info:o,h=n?()=>ft.createElement(n,{size:l+2,fill:p.text[u]}):o===So.Loading?()=>ft.createElement(ps,{scale:.8}):()=>Dn(u,p)?.({size:l+2});return ft.createElement(ws,{$status:u,$width:s,$size:l,$withIcon:i,$withBorder:a,$withBackground:r},i&&ft.createElement(ks,null,ft.createElement(h,null)),(!!e||!!t)&&ft.createElement(vs,null,!!e&&ft.createElement(qi,{size:l,family:c,color:p.text[u],nowrap:d},e),!!e&&!!t&&ft.createElement(xr,{orientation:"vertical",length:l-2+"px",type:u}),!!t&&ft.createElement(qi,{size:l-2,family:c,color:p.text[`${u}_secondary`],nowrap:d},t)))},Es=({label:e,onClick:t,variant:o="tertiary",textProps:n,...i})=>{const a=Rt();return ft.createElement(xa,{onClick:t,variant:o,...i},ft.createElement(et,{fill:"primary"===o?a.text.primary:a.text.info}),ft.createElement(qi,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?a.text.primary:void 0,...n},e||tn.ADD))},Ss=_t(Za)`
|
|
694
694
|
width: 100%;
|
|
695
695
|
border-radius: 8px;
|
|
696
|
-
background-color: ${({theme:e})=>e.colors.secondary+
|
|
696
|
+
background-color: ${({theme:e})=>e.colors.secondary+Ui.opacity.hex["010"]};
|
|
697
697
|
pre {
|
|
698
698
|
color: ${({theme:e})=>e.text.default};
|
|
699
699
|
font-size: 12px;
|
|
@@ -701,7 +701,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
701
701
|
width: 100%;
|
|
702
702
|
padding-left: 12px;
|
|
703
703
|
}
|
|
704
|
-
`,
|
|
704
|
+
`,As=({value:e,callbackCopyDone:t})=>{const{clickCopy:o,isCopied:n}=Oa();return ft.createElement(Ss,null,ft.createElement("pre",null,e),ft.createElement(Dr,{onClick:n=>{n.stopPropagation(),o(e),t?.()},tooltip:n?"Copied!":"Copy"},n?ft.createElement(qe,null):ft.createElement(Ke,null)))},Ds=({label:e,onClick:t,variant:o="tertiary",...n})=>{const i=Rt();return ft.createElement(xa,{onClick:t,variant:o,...n},ft.createElement(tt,{fill:"primary"===o?i.text.primary:i.text.info}),ft.createElement(qi,{size:14,family:"secondary",decoration:"underline",color:"primary"===o?i.text.primary:void 0},e||tn.EDIT))},Ts=({onClick:e})=>ft.createElement(Rr,{type:Co.Default,icon:Ge,message:en.QUICK_BACK_TO_SUMMARY,action:{label:en.GO_TO_SUMMARY,onClick:e}}),zs=_t(qi)`
|
|
705
705
|
max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
|
|
706
706
|
white-space: nowrap;
|
|
707
707
|
overflow-x: auto;
|
|
@@ -711,15 +711,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
711
711
|
content: '';
|
|
712
712
|
display: block;
|
|
713
713
|
}
|
|
714
|
-
`,
|
|
714
|
+
`,Fs=({maxWidth:e,text:t,textSize:o=16,textColor:n})=>{const[i,a]=wt(!1),r=vt(null);return kt(()=>{if(r.current){const{clientWidth:t}=r.current;a(t<1.05*(e-o)&&t>.95*(e-o))}},[e,o,t]),ft.createElement(Za,{$gap:0},t&&ft.createElement(Er,{text:i?t:void 0},ft.createElement(zs,{ref:r,$maxWidth:e-o,size:o,color:n},t)),i&&ft.createElement(zs,{$maxWidth:o,size:o,color:n},"..."))},Os=({src:e="",alt:t="",size:o=16})=>{const[n,i]=wt(!1);return e&&!n?ft.createElement("img",{src:e,alt:t,width:o,height:o,onError:()=>i(!0)}):ft.createElement(r,{size:o})},Is=_t.div`
|
|
715
715
|
display: flex;
|
|
716
716
|
align-items: center;
|
|
717
717
|
justify-content: center;
|
|
718
718
|
width: ${({$size:e})=>e}px;
|
|
719
719
|
height: ${({$size:e})=>e}px;
|
|
720
720
|
border-radius: 8px;
|
|
721
|
-
background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+
|
|
722
|
-
`,
|
|
721
|
+
background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+Ui.opacity.hex["030"]} 100%)`}};
|
|
722
|
+
`,Ns=({icon:e,src:t="",alt:o="",status:n,size:i=36})=>ft.createElement(Is,{$status:n,$size:i},t?ft.createElement(Os,{src:t,alt:o,size:i-12}):e?ft.createElement(e,{size:i-12}):ft.createElement(r,{size:i-12})),_s=_t.div`
|
|
723
723
|
position: relative;
|
|
724
724
|
display: flex;
|
|
725
725
|
flex-wrap: wrap;
|
|
@@ -727,7 +727,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
727
727
|
justify-content: center;
|
|
728
728
|
width: ${({$size:e})=>e}px;
|
|
729
729
|
height: ${({$size:e})=>e}px;
|
|
730
|
-
`,
|
|
730
|
+
`,Bs=_t.div`
|
|
731
731
|
position: absolute;
|
|
732
732
|
top: ${({$top:e})=>e}px;
|
|
733
733
|
left: ${({$left:e})=>e}px;
|
|
@@ -738,78 +738,78 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
738
738
|
width: ${({$size:e})=>e}px;
|
|
739
739
|
height: ${({$size:e})=>e}px;
|
|
740
740
|
border-radius: 100%;
|
|
741
|
-
border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+
|
|
742
|
-
background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+
|
|
743
|
-
`,
|
|
741
|
+
border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+Ui.opacity.hex["030"]};
|
|
742
|
+
background: ${({$status:e,theme:t})=>{const o=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${o} 0%, ${o+Ui.opacity.hex["030"]} 100%)`}};
|
|
743
|
+
`,Rs=({icons:e=[],iconSrcs:t=[],status:o,size:n=36,id:i})=>{const a=Ui.useTheme(),r=1===e.length||1===t.length?n-12:n/2.7;if(t.length>0)return ft.createElement(Rs,{icons:t.map(e=>()=>ft.createElement(Os,{src:e,size:r})),status:o,size:n,id:i});if(1===e.length)return ft.createElement(Ns,{icon:e[0],status:o,size:n});const s=t=>e.length<=2?.5*r:0===t||1===t?0:1.15*r,l=e=>0===e?0:1===e?1.15*r:1.15*r*.5;return ft.createElement(_s,{$status:o,$size:n},e.map((t,n)=>n>2?null:ft.createElement(Bs,{key:`icon-${i}-${n}`,$status:o,$size:1.5*r,$top:s(n),$left:l(n),$zIndex:n+1},2===n&&e.length>3?ft.createElement(qi,{family:"secondary",color:a.text.dark_grey,size:.8*r},"+",e.length-2):ft.createElement(t,{size:r}))))},Ls=pi.map(({id:e})=>e),Ms=({monitors:e=Ls,withTooltips:t,withLabels:o,size:n=12,color:i})=>{const a=Rt(),r=i||a.text.grey,s=[...new Set(e.filter(e=>!!e).map(e=>e.toUpperCase()))];return ft.createElement(Za,{$gap:o?n:n/2},s.map(e=>{const i=Jt(e.toLowerCase()),a=wn(e);return a?ft.createElement(Er,{key:e,text:t?i:""},ft.createElement(Za,{$gap:n/3},ft.createElement(a,{size:o?n+2:n,fill:r}),o&&ft.createElement(qi,{size:n,color:r},i))):null}))},Ps=_t.div`
|
|
744
744
|
visibility: hidden;
|
|
745
|
-
`,
|
|
745
|
+
`,js=_t.div`
|
|
746
746
|
display: flex;
|
|
747
747
|
flex-direction: column;
|
|
748
748
|
align-self: stretch;
|
|
749
749
|
padding: 16px;
|
|
750
750
|
width: calc(100% - 32px);
|
|
751
751
|
border-radius: 16px;
|
|
752
|
-
background-color: ${({theme:e,$status:t,$bgColor:o})=>o||(t?e.text[t]+
|
|
752
|
+
background-color: ${({theme:e,$status:t,$bgColor:o})=>o||(t?e.text[t]+Ui.opacity.hex["010"]:e.colors.secondary+Ui.opacity.hex["005"])};
|
|
753
753
|
opacity: ${({$faded:e})=>e?.5:1};
|
|
754
754
|
|
|
755
755
|
${({theme:e,$status:t,$bgColorHover:o,$withClick:n})=>n?Bt`
|
|
756
756
|
&:hover {
|
|
757
757
|
cursor: pointer;
|
|
758
|
-
background-color: ${o||(t?e.text[t]+
|
|
759
|
-
${
|
|
758
|
+
background-color: ${o||(t?e.text[t]+Ui.opacity.hex["020"]:e.colors.secondary+Ui.opacity.hex["010"])};
|
|
759
|
+
${Ps} {
|
|
760
760
|
visibility: visible;
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
|
-
`:`\n &:hover {\n ${
|
|
764
|
-
`,
|
|
763
|
+
`:`\n &:hover {\n ${Ps} {\n visibility: visible;\n }\n }\n `}
|
|
764
|
+
`,Us=_t.div`
|
|
765
765
|
display: flex;
|
|
766
766
|
align-items: center;
|
|
767
767
|
gap: 8px;
|
|
768
768
|
margin-left: auto;
|
|
769
|
-
`,
|
|
769
|
+
`,Ws=_t(qi)`
|
|
770
770
|
margin-right: 16px;
|
|
771
|
-
`,
|
|
771
|
+
`,Vs=_t(qi)`
|
|
772
772
|
font-size: 10px;
|
|
773
773
|
color: ${({theme:e})=>e.text.grey};
|
|
774
|
-
`,
|
|
774
|
+
`,Hs=({title:e,subTitle:t,hoverText:o,onClick:n,renderActions:i,iconProps:{icon:a,icons:r,iconSrc:s,iconSrcs:l}={},visualProps:{status:c,faded:d,bgColor:p,bgColorHover:u,monitors:h,monitorsWithLabels:m,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:$,isCheckboxDisabled:x,isChecked:f,isLoading:b,onCheckboxChange:y}={},extendableProps:{withExtend:w,isExtended:k,renderExtended:v}={},...C})=>{const E=Ui.useTheme(),[S,A]=wt(k||!1),[D,T]=wt(0),z=vt(null),F=vt(null),O=vt(null);return kt(()=>{if(z.current){const e=z.current.clientWidth,t=F.current?.clientWidth||0;T(e-(($?125:85)+t))}},[$]),ft.createElement(js,{ref:z,$status:c,$faded:d,$bgColor:p,$bgColorHover:u,$withClick:!!n,onClick:n,...C},ft.createElement(Za,{$gap:8},ft.createElement(Za,{$gap:16},b?ft.createElement(ps,null):$?ft.createElement(Yr,{value:f,onChange:y,disabled:x}):null,r?.length||l?.length?ft.createElement(Rs,{icons:r,iconSrcs:l,status:c,id:`${e}-${t}`}):a||s?ft.createElement(Ns,{icon:a,src:s,status:c}):null),ft.createElement(Qa,{$gap:4},e&&ft.createElement(Fs,{maxWidth:D,text:e,textSize:14}),ft.createElement(Za,{$gap:4},t&&ft.createElement(Fs,{maxWidth:D-(O.current?.clientWidth||0),text:t,textSize:10,textColor:E.text.grey}),h&&h.length>0&&ft.createElement(Za,{$gap:4,ref:O},t&&ft.createElement(Vs,null,"•"),ft.createElement(Ms,{monitors:h,withLabels:m,size:10}))),g&&g.length>0?ft.createElement(Za,{$gap:4},g?.map((e,t)=>ft.createElement(bt,{key:`componentsUnderTitles-${t}`},e))):null),ft.createElement(Us,{ref:F},!!o&&ft.createElement(Ps,null,ft.createElement(Ws,{size:14,family:"secondary"},o)),i&&i(),w&&ft.createElement(bt,null,ft.createElement(xr,{orientation:"vertical",length:"16px",margin:"0 2px"}),ft.createElement(Dr,{onClick:()=>A(e=>!e)},ft.createElement(hs,{extend:S}))))),S&&v&&ft.createElement(Qa,null,ft.createElement(xr,{margin:"16px 0"}),v()))},Gs=_t(Za)`
|
|
775
775
|
width: 100%;
|
|
776
776
|
justify-content: space-between;
|
|
777
|
-
`,
|
|
777
|
+
`,qs=_t(qi)`
|
|
778
778
|
font-size: 12px;
|
|
779
779
|
color: ${({theme:e})=>e.text.grey};
|
|
780
|
-
`,
|
|
780
|
+
`,Ks=_t(qi)`
|
|
781
781
|
font-size: 10px;
|
|
782
782
|
color: ${({theme:e})=>e.text.darker_grey};
|
|
783
|
-
`,
|
|
783
|
+
`,Ys=_t.div`
|
|
784
784
|
display: flex;
|
|
785
785
|
align-items: center;
|
|
786
786
|
gap: 8px;
|
|
787
787
|
margin-left: auto;
|
|
788
|
-
`,
|
|
788
|
+
`,Js=_t(qi)`
|
|
789
789
|
font-size: 12px;
|
|
790
790
|
text-align: right;
|
|
791
|
-
`,
|
|
791
|
+
`,Xs=({title:e,subTitle:t,tooltip:o,value:n})=>ft.createElement(Gs,null,ft.createElement(Qa,{$gap:4},ft.createElement(Er,{text:o||""},e&&ft.createElement(qs,{key:"title"},e),t&&ft.createElement(Ks,{key:"subtitle"},t))),ft.createElement(Ys,null,n?.status?ft.createElement(Cs,{status:"transitioning"===n.status?So.Loading:n.status,title:n.text||n.status,withBorder:!0,withIcon:!0}):ft.createElement(Js,null,n?.text||"-"))),Zs=_t(Qa)`
|
|
792
792
|
width: 100%;
|
|
793
|
-
`,
|
|
793
|
+
`,Qs=({containerName:e,actualDevices:t,started:o,ready:n,instrumentationInstances:i})=>{const a=yt(()=>{const e=[];return o?.name&&e.push(ft.createElement(Cs,{key:"started",status:Ln(o.value)?Kn(o.value)?Co.Success:Co.Error:Co.Default,title:o.name,withIcon:!0,withBorder:!0,size:8})),n?.name&&e.push(ft.createElement(Cs,{key:"ready",status:Ln(n.value)?Kn(n.value)?Co.Success:Co.Error:Co.Default,title:n.name,withIcon:!0,withBorder:!0,size:8})),e},[o?.name,o?.value,n?.name,n?.value]);return ft.createElement(Hs,{title:e.value,subTitle:i.length?`${i.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:a},renderActions:()=>ft.createElement(Cs,{status:Co.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!i.length,renderExtended:()=>ft.createElement(Zs,{$gap:24},i.map((e,t)=>ft.createElement(Zs,{key:`process-${t}`,$gap:8},ft.createElement(Xs,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===Co.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>ft.createElement(Xs,{key:`describe-${e}-${t}`,title:e,subTitle:"",value:{text:t,status:void 0}})))))}})},el=({title:e="Data not found",subTitle:t})=>{const o=Rt().v2.colors.grey[400];return ft.createElement(er,null,ft.createElement(Za,{$gap:8},ft.createElement(ot,{fill:o}),ft.createElement(ii,{size:oi.XS,color:o},e)),t&&ft.createElement(ii,{size:oi.XXS,color:o},t))},tl=_t(Qa)`
|
|
794
794
|
max-width: 300px;
|
|
795
795
|
padding: 12px;
|
|
796
796
|
border-radius: 12px;
|
|
797
797
|
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
798
798
|
justify-content: center;
|
|
799
|
-
`,
|
|
799
|
+
`,ol=Dt(({id:e,data:t})=>{const{title:o,subTitle:n}=t;return ft.createElement(tl,{"data-id":e},ft.createElement(el,{title:o,subTitle:n}))});ol.displayName=ol.name;const nl=_t.div`
|
|
800
800
|
padding: 6px;
|
|
801
801
|
border-radius: 12px;
|
|
802
802
|
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
803
803
|
cursor: pointer;
|
|
804
|
-
`,
|
|
804
|
+
`,il=_t.div`
|
|
805
805
|
position: relative;
|
|
806
|
-
`,
|
|
806
|
+
`,al=_t(Za)`
|
|
807
807
|
position: absolute;
|
|
808
808
|
bottom: -24px;
|
|
809
809
|
left: 50%;
|
|
810
810
|
transform: translateX(-50%);
|
|
811
811
|
gap: 4px;
|
|
812
|
-
`,
|
|
812
|
+
`,rl=_t.div`
|
|
813
813
|
position: absolute;
|
|
814
814
|
bottom: 100%;
|
|
815
815
|
left: 100%;
|
|
@@ -818,12 +818,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
818
818
|
border-radius: 16px;
|
|
819
819
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
820
820
|
background-color: ${({theme:e})=>e.colors.dropdown_bg};
|
|
821
|
-
`,
|
|
821
|
+
`,sl=({title:e,value:t})=>{const o=Rt();return ft.createElement(Za,{$justifyContent:"space-between"},ft.createElement(qi,{size:12,color:o.text.info},e),ft.createElement(qi,{size:12,family:"secondary"},t))},ll=Dt(({id:e,data:t})=>{const{id:o,status:n,title:i,icons:a,serviceMapEntry:r}=t,{activeNodeType:s,activeNodeId:l}=si(),c=Rt(),d=n===Co.Error?Dn(n,c):null;return ft.createElement(ft.Fragment,null,ft.createElement(Pt,{type:"source",position:jt.Bottom,style:{visibility:"hidden"}}),ft.createElement(Pt,{type:"target",position:jt.Top,style:{visibility:"hidden"}}),ft.createElement(il,{"data-id":e},ft.createElement(nl,null,ft.createElement(Rs,{id:o,icons:a,status:n})),ft.createElement(al,null,d&&ft.createElement(d,null),ft.createElement(Fs,{maxWidth:100,text:i})),s===To.MapItem&&l===e&&ft.createElement(rl,null,ft.createElement(Za,{$gap:12},ft.createElement(Rs,{id:o,icons:a,status:n}),ft.createElement(qi,{size:20},i)),r&&r.services.length>0?r.services.map(({serviceName:e,requests:t,dateTime:n})=>ft.createElement("div",{key:`from-${o}-to-${e}`},ft.createElement(xr,null),ft.createElement(sl,{title:"Connected Service",value:e}),ft.createElement(sl,{title:"Outgoing Requests",value:t}),ft.createElement(sl,{title:"Last Requested At",value:new Date(n).toLocaleString()}))):ft.createElement(ft.Fragment,null,ft.createElement(xr,null),ft.createElement(el,{title:"No outgoing connections",subTitle:" "})))))});ll.displayName=ll.name;const cl=_t.div`
|
|
822
822
|
height: calc(100vh - 160px);
|
|
823
823
|
.react-flow__attribution {
|
|
824
824
|
visibility: hidden;
|
|
825
825
|
}
|
|
826
|
-
`,
|
|
826
|
+
`,dl=_t.div`
|
|
827
827
|
button {
|
|
828
828
|
padding: 8px;
|
|
829
829
|
margin: 8px;
|
|
@@ -837,13 +837,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
837
837
|
background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
|
-
`,
|
|
840
|
+
`,pl={[To.MapItem]:ll,[To.NoData]:ol},ul=({nodes:e,edges:t,onNodesChange:o,onEdgesChange:n,fitView:i=!1,zoomOnScroll:a=!1})=>{const{onClickNode:r}=ka(),{setActiveNodeType:s,setActiveNodeId:l}=si();return ft.createElement(cl,null,ft.createElement(Ut,{fitView:i,zoomOnScroll:a,nodes:e,nodeTypes:pl,edges:t,onNodeClick:r,onNodesChange:e=>{setTimeout(()=>o(e),0)},onEdgesChange:e=>{setTimeout(()=>n(e),0)},onBlur:()=>{s(null),l(null)},onlyRenderVisibleElements:!0},ft.createElement(dl,null,ft.createElement(Wt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:{duration:300,padding:.02,includeHiddenNodes:!0}}))))},hl=_t.div`
|
|
841
841
|
display: flex;
|
|
842
842
|
|
|
843
843
|
align-items: center;
|
|
844
844
|
gap: 6px;
|
|
845
845
|
margin-bottom: 4px;
|
|
846
|
-
`,
|
|
846
|
+
`,ml=_t(qi)`
|
|
847
847
|
font-size: 14px;
|
|
848
848
|
opacity: 0.8;
|
|
849
849
|
line-height: 22px;
|
|
@@ -851,16 +851,16 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
851
851
|
white-space: nowrap;
|
|
852
852
|
text-overflow: ellipsis;
|
|
853
853
|
color: ${({$status:e,theme:t})=>e?t.text[e]:t.text.secondary};
|
|
854
|
-
`,
|
|
854
|
+
`,gl=_t(qi)`
|
|
855
855
|
font-size: 12px;
|
|
856
856
|
color: ${({theme:e})=>e.text.darker_grey};
|
|
857
857
|
opacity: 0.8;
|
|
858
|
-
|
|
858
|
+
`,$l=({title:e,required:t,tooltip:o,style:n,status:i})=>e?ft.createElement(hl,{style:n},ft.createElement(Er,{text:o,withIcon:!0},ft.createElement(ml,{$status:i},e),!t&&ft.createElement(gl,null,"(optional)"))):null,xl=_t.div`
|
|
859
859
|
display: flex;
|
|
860
860
|
flex-direction: column;
|
|
861
861
|
position: relative;
|
|
862
862
|
width: 100%;
|
|
863
|
-
`,
|
|
863
|
+
`,fl=_t.div`
|
|
864
864
|
width: 100%;
|
|
865
865
|
display: flex;
|
|
866
866
|
align-items: center;
|
|
@@ -886,7 +886,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
886
886
|
&:focus-within {
|
|
887
887
|
border-color: ${({theme:e})=>e.colors.secondary};
|
|
888
888
|
}
|
|
889
|
-
`,
|
|
889
|
+
`,bl=_t.input`
|
|
890
890
|
padding-left: ${({$hasIcon:e})=>e?"0":"16px"};
|
|
891
891
|
flex: 1;
|
|
892
892
|
min-width: 150px;
|
|
@@ -915,13 +915,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
915
915
|
-webkit-appearance: none;
|
|
916
916
|
margin: 0;
|
|
917
917
|
}
|
|
918
|
-
|
|
918
|
+
`,yl=_t.div`
|
|
919
919
|
display: flex;
|
|
920
920
|
align-items: center;
|
|
921
921
|
margin-left: 12px;
|
|
922
|
-
`,
|
|
922
|
+
`,wl=_t(yl)`
|
|
923
923
|
cursor: pointer;
|
|
924
|
-
`,
|
|
924
|
+
`,kl=_t.button`
|
|
925
925
|
background-color: ${({theme:e})=>e.colors.primary};
|
|
926
926
|
border: none;
|
|
927
927
|
color: ${({theme:e})=>e.text.secondary};
|
|
@@ -936,15 +936,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
936
936
|
background-color: ${({theme:e})=>e.colors.border};
|
|
937
937
|
cursor: not-allowed;
|
|
938
938
|
}
|
|
939
|
-
`,
|
|
939
|
+
`,vl=({icon:e,buttonLabel:t,onButtonClick:o,hasError:n,errorMessage:i,title:a,tooltip:r,required:s,value:l,onChange:c,type:d=vo.Text,name:p,status:u,...h})=>{const m=Ui.useTheme(),g=d===vo.Password,[$,x]=wt(!1);return ft.createElement(xl,null,ft.createElement($l,{title:a,required:s,tooltip:r,status:u}),ft.createElement(fl,{$disabled:h.disabled,$hasError:n||!!i,$isActive:!!h.autoFocus,$status:u},g?ft.createElement(wl,{onClick:()=>x(e=>!e)},$?ft.createElement(nt,{size:14,fill:m.text.grey}):ft.createElement(it,{size:14,fill:m.text.grey})):e?ft.createElement(yl,null,ft.createElement(e,{size:14,fill:m.text.grey})):null,ft.createElement(bl,{"data-id":p,type:$||d===vo.Number?vo.Text:d,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),d===vo.Number&&(e.target.value=qn(e.target.value)),c?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...h}),t&&o&&ft.createElement(kl,{onClick:o,disabled:h.disabled},t)),!!i&&ft.createElement(Ji,null,i))},Cl=_t.div`
|
|
940
940
|
display: flex;
|
|
941
941
|
flex-direction: column;
|
|
942
942
|
min-width: 120px;
|
|
943
943
|
width: 100%;
|
|
944
944
|
opacity: ${({$disabled:e})=>e?.5:1};
|
|
945
|
-
`,
|
|
945
|
+
`,El=_t.div`
|
|
946
946
|
position: relative;
|
|
947
|
-
`,
|
|
947
|
+
`,Sl=_t.div`
|
|
948
948
|
display: flex;
|
|
949
949
|
align-items: center;
|
|
950
950
|
justify-content: space-between;
|
|
@@ -970,14 +970,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
970
970
|
&:hover {
|
|
971
971
|
border-color: ${({$isMulti:e,$hasSelections:t,$disabled:o,theme:n})=>o?"auto":e&&t?n.colors.border:n.colors.secondary};
|
|
972
972
|
}
|
|
973
|
-
`,
|
|
973
|
+
`,Al=_t.div`
|
|
974
974
|
display: flex;
|
|
975
975
|
align-items: center;
|
|
976
976
|
gap: 4px;
|
|
977
|
-
`,
|
|
977
|
+
`,Dl=({options:e,value:t,onSelect:o,onDeselect:n,title:i,tooltip:a,placeholder:r,disabled:s=!1,isMulti:l=!1,showSearch:c=!1,required:d=!1,errorMessage:p,hasError:u=!1,status:h})=>{const[m,g]=wt(!1),[$,x]=wt(!1),f=vt(null);Pa(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 ft.createElement(Cl,{$disabled:s},ft.createElement($l,{title:i,required:d,tooltip:a,status:h}),ft.createElement(El,{ref:f},ft.createElement(Sl,{$isOpen:m,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:h,$disabled:s,onClick:()=>!s&&b()},ft.createElement(Ol,{value:t,placeholder:r,onDeselect:n}),ft.createElement(Al,null,l&&ft.createElement(ha,{label:y,filled:!!y}),ft.createElement(hs,{extend:m}))),m&&ft.createElement(_l,{openUpwards:$,options:e,value:t,onSelect:e=>{o?.(e),l||b()},onDeselect:e=>{n?.(e),l||b()},isMulti:l,showSearch:c})),!!p&&ft.createElement(Ji,null,p))},Tl=_t(Al)`
|
|
978
978
|
max-width: calc(100% - 50px);
|
|
979
979
|
overflow-x: auto;
|
|
980
|
-
`,
|
|
980
|
+
`,zl=_t(qi)`
|
|
981
981
|
display: flex;
|
|
982
982
|
align-items: center;
|
|
983
983
|
gap: 2px;
|
|
@@ -992,7 +992,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
992
992
|
transition: transform 0.3s;
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
`,
|
|
995
|
+
`,Fl=_t(qi)``,Ol=({value:e,placeholder:t,onDeselect:o})=>{const n=Ui.useTheme();return Array.isArray(e)?e.length?ft.createElement(Tl,null,e.map(e=>ft.createElement(zl,{key:`multi-label-${e.id}`,size:14},e.value,ft.createElement(xr,{orientation:"vertical",length:"10px",margin:"0 4px"}),ft.createElement(Ye,{size:12,onClick:t=>{t.stopPropagation(),o?.(e)}})))):ft.createElement(Fl,{size:14,color:n.text.darker_grey},t):ft.createElement(Fl,{size:14,color:e?.value?void 0:n.text.darker_grey},e?.value||t)},Il=_t.div`
|
|
996
996
|
position: absolute;
|
|
997
997
|
${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
|
|
998
998
|
left: 0;
|
|
@@ -1007,11 +1007,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1007
1007
|
background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1008
1008
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1009
1009
|
border-radius: 24px;
|
|
1010
|
-
`,
|
|
1010
|
+
`,Nl=_t.div`
|
|
1011
1011
|
display: flex;
|
|
1012
1012
|
flex-direction: column;
|
|
1013
1013
|
align-items: center;
|
|
1014
|
-
`,
|
|
1014
|
+
`,_l=({openUpwards:e,options:t,value:o,onSelect:n,onDeselect:i,isMulti:a,showSearch:r})=>{const[s,l]=wt(""),c=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return ft.createElement(Il,{$openUpwards:e},r&&ft.createElement(Nl,null,ft.createElement(vl,{placeholder:"Search...",icon:at,value:s,onChange:e=>l(e.target.value)}),ft.createElement(xr,{thickness:1,margin:"8px 0 0 0"})),0===c.length?ft.createElement(el,{subTitle:r&&s?void 0:" "}):c.map((e,t)=>ft.createElement(Rl,{key:`dropdown-option-${e.id||t}`,option:e,value:o,isMulti:a,onSelect:n,onDeselect:i})))},Bl=_t.div`
|
|
1015
1015
|
padding: 8px 12px;
|
|
1016
1016
|
cursor: pointer;
|
|
1017
1017
|
display: flex;
|
|
@@ -1020,23 +1020,23 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1020
1020
|
border-radius: 32px;
|
|
1021
1021
|
&:hover,
|
|
1022
1022
|
&.selected {
|
|
1023
|
-
background: ${({theme:e})=>e.colors.majestic_blue+
|
|
1023
|
+
background: ${({theme:e})=>e.colors.majestic_blue+Ui.opacity.hex["024"]};
|
|
1024
1024
|
}
|
|
1025
|
-
`,
|
|
1025
|
+
`,Rl=({option:e,value:t,isMulti:o,onSelect:n,onDeselect:i})=>{const a=Ui.useTheme(),r=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?n?.(e):i?.(e);return o?ft.createElement(Bl,{className:r?"selected":"",onClick:()=>s(!r)},ft.createElement(Yr,{title:e.value||"",titleColor:a.text.secondary,value:r,onChange:s,style:{width:"100%"}})):ft.createElement(Bl,{className:r?"selected":"",onClick:()=>r?i?.(e):n?.(e)},ft.createElement(Za,{$gap:8},e.icon&&ft.createElement(e.icon,null),ft.createElement(qi,{size:14},e.value)),r&&ft.createElement(qe,null))},Ll=_t(Qa)`
|
|
1026
1026
|
gap: 12px;
|
|
1027
|
-
`,
|
|
1027
|
+
`,Ml=_t(Za)`
|
|
1028
1028
|
width: 100%;
|
|
1029
1029
|
gap: 12px;
|
|
1030
1030
|
align-items: flex-end;
|
|
1031
|
-
`,
|
|
1031
|
+
`,Pl=({clientX:e=0,flipX:t,clientY:o=0,flipY:n,isOpen:i,onClose:a,onSave:r,withDelete:s,onDelete:l,title:c,titleTooltip:d,warning:p,children:u})=>{const h=Ui.useTheme(),{popupRef:m,popupPosition:g,handlePosition:$}=ja({onClickOutside:a});return Ma({key:"Enter",active:i},r),kt(()=>$(e,o),[e,o]),0===g.top&&0!==o||0===g.left&&0!==e?null:ft.createElement(kr,{ref:m,isOpen:i,top:n?void 0:g.top,bottom:n?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px"},ft.createElement(Ll,null,ft.createElement(Er,{text:d,withIcon:!0},ft.createElement(qi,{size:14},c)),ft.createElement(Ml,null,u,ft.createElement(Za,{$gap:6},ft.createElement(Dr,{withBorder:!0,onClick:a,tooltip:"Cancel"},ft.createElement(Ye,null)),ft.createElement(Dr,{withBorder:!0,backgroundColor:h.colors.secondary,onClick:r,tooltip:"Save"},ft.createElement(qe,{fill:h.text.primary})),s&&ft.createElement(Dr,{onClick:l,tooltip:"Undo"},ft.createElement(rt,null)))),p&&ft.createElement(Rr,{type:Co.Warning,message:p})))},jl=_t.div`
|
|
1032
1032
|
position: relative;
|
|
1033
|
-
`,
|
|
1033
|
+
`,Ul=({defaultLanguage:e=fo.Unknown,defaultVersion:t="",handleSave:o})=>{const{addNotification:n}=vi(),{formData:i,handleFormChange:a,resetFormData:r}=fa({language:e,version:t}),[s,l]=wt(!1),c=()=>{l(!1),r()};return ft.createElement(jl,null,ft.createElement(Dr,{tooltip:en.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{l(!0)}},ft.createElement(tt,null)),ft.createElement(Pl,{flipX:!0,clientX:36,isOpen:s,onClose:c,onSave:()=>{!i.version||jn(i.version)?(o(i),c()):n({type:Co.Warning,message:Qo.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:()=>{o({language:null,version:""}),c()},title:en.OVERRIDE_RUNTIME_DETAILS,warning:en.OVERRIDE_RUNTIME_WARNING},ft.createElement(Dl,{title:en.LANGUAGE,options:hi,value:hi.find(e=>e.id===i.language),onSelect:e=>a("language",e.id),required:!0}),ft.createElement(vl,{title:en.RUNTIME_VERSION,placeholder:en.VERSION_PLACEHOLDER,value:i.version,onChange:e=>a("version",e.target.value),required:!1})))},Wl=_t(Za)`
|
|
1034
1034
|
width: 100%;
|
|
1035
1035
|
justify-content: center;
|
|
1036
|
-
`,
|
|
1036
|
+
`,Vl=({containerName:e,language:t,runtimeVersion:o,overriden:n,instrumented:i,instrumentationMessage:a,otelDistroName:r,callbackRuntimeOverride:s})=>{const l=Ui.useTheme(),c=i?Co.Success:a?Co.Info:Co.Warning,d=i?Eo.INSTRUMENTED:a?Eo.NOT_INSTRUMENTED:Eo.INSTRUMENTING;return ft.createElement(Hs,{title:e,subTitle:`${t?ui[t]:"no runtime info"}`+(o?` • Runtime Version: ${o}`:""),iconProps:{icon:pn(t)},extendableProps:{isExtended:!!a,renderExtended:()=>ft.createElement(Wl,null,ft.createElement(qi,{size:12,family:"secondary",color:l.text.info},Un(a)))},renderActions:()=>ft.createElement(ft.Fragment,null,ft.createElement(Cs,{status:c,title:d,subtitle:r||void 0,withIcon:!0,withBorder:!0}),n&&ft.createElement(Cs,{status:Co.Default,forceIcon:st,title:en.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&ft.createElement(Ul,{defaultLanguage:t,defaultVersion:o,handleSave:t=>s({...t,containerName:e})}))})},Hl=_t.tr`
|
|
1037
1037
|
cursor: ${({$withHover:e})=>e?"pointer":"default"};
|
|
1038
1038
|
opacity: ${({$faded:e})=>e?.5:1};
|
|
1039
|
-
`,
|
|
1039
|
+
`,Gl=_t.td`
|
|
1040
1040
|
position: relative;
|
|
1041
1041
|
width: fit-content;
|
|
1042
1042
|
padding: 16px 8px 16px ${({$isFirst:e})=>e?"16px":"8px"};
|
|
@@ -1044,7 +1044,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1044
1044
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1045
1045
|
font-size: 14px;
|
|
1046
1046
|
white-space: nowrap;
|
|
1047
|
-
`,
|
|
1047
|
+
`,ql=_t(qi)`
|
|
1048
1048
|
font-size: 14px;
|
|
1049
1049
|
color: ${({$color:e,theme:t})=>e??t.text.secondary};
|
|
1050
1050
|
line-height: 16px;
|
|
@@ -1057,7 +1057,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1057
1057
|
display: -webkit-box;
|
|
1058
1058
|
-webkit-line-clamp: 2;
|
|
1059
1059
|
-webkit-box-orient: vertical;
|
|
1060
|
-
`,
|
|
1060
|
+
`,Kl=_t.div`
|
|
1061
1061
|
position: absolute;
|
|
1062
1062
|
top: 0;
|
|
1063
1063
|
left: 0;
|
|
@@ -1065,57 +1065,57 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1065
1065
|
width: ${({$width:e})=>e}px;
|
|
1066
1066
|
height: ${({$height:e})=>e}px;
|
|
1067
1067
|
border-radius: 16px;
|
|
1068
|
-
background-color: ${({theme:e,$hovered:t,$status:o})=>t?o?e.text[o]+
|
|
1069
|
-
`,
|
|
1068
|
+
background-color: ${({theme:e,$hovered:t,$status:o})=>t?o?e.text[o]+Ui.opacity.hex["020"]:e.colors.majestic_blue+Ui.opacity.hex["030"]:o?e.text[o]+Ui.opacity.hex["010"]:e.colors.secondary+Ui.opacity.hex["005"]};
|
|
1069
|
+
`,Yl=({index:e,columns:t,cells:o,onClick:n,status:i,faded:a})=>{const{containerRef:r,containerHeight:s,containerWidth:l}=Da(),[c,d]=wt(!1);return ft.createElement(Hl,{ref:r,onMouseEnter:()=>!!n&&d(!0),onMouseLeave:()=>!!n&&d(!1),onClick:()=>!!n&&n(),$withHover:!!n,$faded:a},t.map(({key:t},n)=>{const a=o.find(({columnKey:e})=>e===t);if(!a)return null;const{value:r,textColor:d,withTooltip:p,icon:u,component:h}=a;return ft.createElement(Gl,{key:`table-row-${t}-${r}-${e}-${n}`,$isFirst:0===n},u?ft.createElement(Ns,{icon:u}):h?ft.createElement(h,null):ft.createElement(Er,{text:p&&r?String(r):""},ft.createElement(ql,{$color:d},_n(r)?"-":r)),0===n&&ft.createElement(Kl,{$height:s,$width:l,$top:s*e,$hovered:c,$status:i}))}))},Jl=_t.div`
|
|
1070
1070
|
width: 100%;
|
|
1071
|
-
`,
|
|
1071
|
+
`,Xl=_t.table`
|
|
1072
1072
|
position: relative;
|
|
1073
1073
|
z-index: 0;
|
|
1074
1074
|
width: 100%;
|
|
1075
1075
|
border-collapse: separate;
|
|
1076
1076
|
border-spacing: 0 12px;
|
|
1077
|
-
`,
|
|
1077
|
+
`,Zl=_t.thead`
|
|
1078
1078
|
// only supported with "border-collapse: collapse;"
|
|
1079
1079
|
// border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1080
1080
|
// border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1081
|
-
`,
|
|
1081
|
+
`,Ql=_t.th`
|
|
1082
1082
|
// only required with "border-collapse: separate;"
|
|
1083
1083
|
border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1084
1084
|
border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
|
|
1085
1085
|
|
|
1086
1086
|
padding: 8px;
|
|
1087
|
-
`,
|
|
1087
|
+
`,ec=_t(Za)`
|
|
1088
1088
|
cursor: pointer;
|
|
1089
1089
|
&:hover {
|
|
1090
1090
|
* {
|
|
1091
1091
|
color: ${({theme:e})=>e.text.secondary};
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
|
-
`,
|
|
1094
|
+
`,tc=_t(qi)`
|
|
1095
1095
|
color: ${({theme:e})=>e.text.darker_grey};
|
|
1096
1096
|
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
1097
1097
|
text-transform: uppercase;
|
|
1098
1098
|
font-size: 12px;
|
|
1099
1099
|
font-weight: 500;
|
|
1100
1100
|
text-wrap: nowrap;
|
|
1101
|
-
`,
|
|
1101
|
+
`,oc=_t.tbody``,nc=({columns:e,rows:t})=>{const[o,n]=wt(mo.Ascending),[i,a]=wt("name"),r=St(e=>{i===e?n(e=>e===mo.Ascending?mo.Descending:mo.Ascending):(a(e),n(mo.Ascending))},[i]),s=yt(()=>{const n=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(i?[...t].sort((e,t)=>{const a=n(e,i),r=n(t,i);return(o===mo.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(a,r)}):t).map(({status:t,faded:o,cells:n,onClick:i},a)=>ft.createElement(Yl,{key:`row-${a}`,index:a,columns:e,cells:n,onClick:i,status:t,faded:o}))},[e,t,i,o]);return ft.createElement(Jl,null,ft.createElement(Xl,null,ft.createElement(Zl,null,ft.createElement("tr",null,e.map(({key:e,title:t,sortable:o})=>ft.createElement(Ql,{key:`column-${e}`},o?ft.createElement(ec,{onClick:()=>r(e)},ft.createElement(lt,null),ft.createElement(tc,null,t)):ft.createElement(tc,null,t))))),ft.createElement(oc,null,s)))};var ic;!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"}(ic||(ic={}));const ac=_t.div`
|
|
1102
1102
|
display: flex;
|
|
1103
1103
|
flex-wrap: wrap;
|
|
1104
1104
|
gap: 16px 32px;
|
|
1105
1105
|
width: 100%;
|
|
1106
|
-
`,
|
|
1106
|
+
`,rc=_t.div`
|
|
1107
1107
|
display: flex;
|
|
1108
1108
|
flex-direction: column;
|
|
1109
1109
|
gap: 2px;
|
|
1110
1110
|
width: ${({$width:e})=>e};
|
|
1111
|
-
`,
|
|
1111
|
+
`,sc=_t(qi)`
|
|
1112
1112
|
color: ${({theme:e})=>e.text.grey};
|
|
1113
1113
|
font-size: 10px;
|
|
1114
1114
|
line-height: 16px;
|
|
1115
|
-
`,
|
|
1115
|
+
`,lc=_t(qi)`
|
|
1116
1116
|
font-size: 12px;
|
|
1117
1117
|
white-space: pre-wrap;
|
|
1118
|
-
`,
|
|
1118
|
+
`,cc=({data:e})=>ft.createElement(ac,null,e?.map(({type:e,title:t,titleIcon:o,tooltip:n,value:i},a)=>ft.createElement(rc,{key:`data-field-${t||(i?JSON.stringify(i):a)}`,$width:e&&[ic.Code,ic.Table].includes(e)?"inherit":e&&[ic.Loader,ic.Divider,ic.CopyText].includes(e)?"100%":"unset"},ft.createElement(Er,{text:n,withIcon:!0},ft.createElement(Za,{$alignItems:"center",$gap:4},o&&ft.createElement(o,{size:14}),!!t&&ft.createElement(sc,{transform:"capitalize"},t))),ft.createElement(dc,{type:e,value:i})))),dc=({type:e,value:t})=>{const o=Ui.useTheme();switch(e){case ic.Divider:return ft.createElement(xr,{length:"100%",margin:"0"});case ic.Loader:return ft.createElement(er,null,ft.createElement(ps,{scale:1.2}));case ic.Monitors:return ft.createElement(Ms,{monitors:t?.split(", ")||[],withLabels:!0,color:o.colors.secondary});case ic.Badge:{const{label:e,filled:o,...n}=On(t,{label:"-",filled:!1});return ft.createElement(ha,{label:e,filled:o,...n})}case ic.Code:{const{language:e,code:o,...n}=On(t,{language:"",code:""});return ft.createElement(as,{language:e,code:o,...n})}case ic.Table:{const{columns:e,rows:o,...n}=On(t,{columns:[],rows:[{status:void 0,cells:[]}]});return ft.createElement(nc,{columns:e,rows:o,...n})}case ic.ActiveStatus:return ft.createElement(Cs,{status:"true"==t?Co.Success:Co.Error,title:"true"==t?en.ENABLED:en.DISABLED,size:10,withIcon:!0,withBorder:!0});case ic.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return ft.createElement(As,{value:e})}default:return ft.createElement(lc,null,Yn("string"==typeof t?t||"-":""))}},pc=_t.div`
|
|
1119
1119
|
display: flex;
|
|
1120
1120
|
flex-direction: column;
|
|
1121
1121
|
align-items: flex-start;
|
|
@@ -1124,90 +1124,90 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1124
1124
|
padding: 24px;
|
|
1125
1125
|
border-radius: 24px;
|
|
1126
1126
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1127
|
-
background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+
|
|
1127
|
+
background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+Ui.opacity.hex["010"]:"transparent"};
|
|
1128
1128
|
transition: background-color 0.3s;
|
|
1129
|
-
`,
|
|
1129
|
+
`,uc=_t.div`
|
|
1130
1130
|
width: 100%;
|
|
1131
1131
|
display: flex;
|
|
1132
1132
|
flex-direction: column;
|
|
1133
1133
|
gap: 4px;
|
|
1134
1134
|
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
1135
|
-
`,
|
|
1135
|
+
`,hc=_t(qi)`
|
|
1136
1136
|
width: 100%;
|
|
1137
1137
|
display: flex;
|
|
1138
1138
|
align-items: center;
|
|
1139
1139
|
gap: 8px;
|
|
1140
1140
|
font-size: 16px;
|
|
1141
|
-
`,
|
|
1141
|
+
`,mc=_t(qi)`
|
|
1142
1142
|
font-size: 12px;
|
|
1143
1143
|
color: ${({theme:e})=>e.text.grey};
|
|
1144
|
-
`,
|
|
1144
|
+
`,gc=_t(Za)`
|
|
1145
1145
|
margin-left: auto;
|
|
1146
1146
|
gap: 8px;
|
|
1147
|
-
|
|
1147
|
+
`,$c=({title:e="Details",titleBadge:t,titleIcon:o,description:n,action:i,withExtend:a,initialExtended:r=!1,data:s,children:l})=>{const[c,d]=wt(r),[p,u]=wt(!1);return ft.createElement(pc,{$hovered:p},e||o||n||i?ft.createElement(uc,{$clickable:a||!1,onClick:()=>a&&d(e=>!e),onMouseEnter:()=>a&&u(!0),onMouseLeave:()=>a&&u(!1)},ft.createElement(Za,null,ft.createElement(Za,{$alignItems:"center",$gap:8},o&&ft.createElement(Za,{$alignItems:"center"},ft.createElement(o,{size:20})),!!e&&ft.createElement(hc,{transform:"capitalize"},e),t===So.Loading?ft.createElement(ps,null):void 0!==t&&ft.createElement(ha,{label:t})),(!!i||a)&&ft.createElement(gc,null,"function"==typeof i?ft.createElement(i,{hovered:p}):i,a&&ft.createElement(hs,{extend:c}))),!!n&&ft.createElement(mc,null,n)):null,(!a||a&&c)&&(l||ft.createElement(cc,{data:s})))},xc=_t.div`
|
|
1148
1148
|
visibility: hidden;
|
|
1149
|
-
`,
|
|
1149
|
+
`,fc=_t(Za)`
|
|
1150
1150
|
align-self: stretch;
|
|
1151
1151
|
width: calc(100% - 32px);
|
|
1152
1152
|
padding: 16px;
|
|
1153
1153
|
border-radius: 16px;
|
|
1154
|
-
background-color: ${({theme:e})=>e.colors.secondary+
|
|
1154
|
+
background-color: ${({theme:e})=>e.colors.secondary+Ui.opacity.hex["005"]};
|
|
1155
1155
|
${({theme:e,$withClick:t})=>t?Bt`
|
|
1156
1156
|
&:hover {
|
|
1157
1157
|
cursor: pointer;
|
|
1158
|
-
background-color: ${e.colors.secondary+
|
|
1159
|
-
${
|
|
1158
|
+
background-color: ${e.colors.secondary+Ui.opacity.hex["010"]};
|
|
1159
|
+
${xc} {
|
|
1160
1160
|
visibility: visible;
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
|
-
`:`\n &:hover {\n ${
|
|
1164
|
-
`,
|
|
1163
|
+
`:`\n &:hover {\n ${xc} {\n visibility: visible;\n }\n }\n `}
|
|
1164
|
+
`,bc=_t(Za)`
|
|
1165
1165
|
margin-left: auto;
|
|
1166
1166
|
gap: 8px;
|
|
1167
|
-
|
|
1167
|
+
`,yc=_t(qi)`
|
|
1168
1168
|
font-size: 10px;
|
|
1169
1169
|
color: ${({theme:e})=>e.text.grey};
|
|
1170
|
-
`,
|
|
1170
|
+
`,wc=({title:e,subTitle:t,icons:o,iconSrcs:n,onClick:i,renderActions:a})=>{const r=Ui.useTheme(),[s,l]=wt(0),c=vt(null),d=vt(null);return kt(()=>{if(c.current){const e=c.current.clientWidth,t=d.current?.clientWidth||0;l(e-(85+t))}},[]),ft.createElement(fc,{ref:c,$gap:8,$withClick:!!i,onClick:i},ft.createElement(Rs,{id:`${e}-${t}`,icons:o,iconSrcs:n}),e&&ft.createElement(Fs,{maxWidth:s/2,text:e,textSize:14}),e&&t&&ft.createElement(yc,null,"•"),t&&ft.createElement(Fs,{maxWidth:s/2,text:t,textSize:10,textColor:r.text.grey}),ft.createElement(bc,{ref:d},a&&ft.createElement(ft.Fragment,null,ft.createElement(xr,{orientation:"vertical",length:"24px",margin:"0"}),a())))},kc=({isOpen:e,noOverlay:t,name:o,type:n,isLastItem:i,onApprove:a,onDeny:r})=>{const s=n===yo.Source?"uninstrument":"delete";return ft.createElement(Hr,{isOpen:e,noOverlay:t,title:`${s.charAt(0).toUpperCase()+s.substring(1)}${o?` ${o}`:""}`,description:`Are you sure you want to ${s}?`,note:i?{type:Co.Warning,title:`You're about to ${s} the last ${n||o}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:a},denyButton:{text:"Go Back",onClick:r}})},vc=_t(xa)`
|
|
1171
1171
|
display: flex;
|
|
1172
1172
|
align-items: center;
|
|
1173
1173
|
justify-content: center;
|
|
1174
1174
|
font-size: 14px;
|
|
1175
1175
|
gap: 6px;
|
|
1176
1176
|
min-width: 100px;
|
|
1177
|
-
`,
|
|
1177
|
+
`,Cc=({endpoint:e="/",variant:t="secondary"})=>ft.createElement(vc,{variant:t,onClick:()=>window.open(`https://docs.odigos.io${e}`,"_blank","noopener noreferrer")},ft.createElement(ct,{size:18}),"Docs"),Ec=_t(Za)`
|
|
1178
1178
|
border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
|
|
1179
|
-
`,
|
|
1179
|
+
`,Sc=_t.div`
|
|
1180
1180
|
display: flex;
|
|
1181
1181
|
align-items: center;
|
|
1182
1182
|
border-bottom: 2px solid ${({theme:e,$selected:t})=>t?e.colors.majestic_blue:"transparent"};
|
|
1183
1183
|
cursor: pointer;
|
|
1184
|
-
`,
|
|
1184
|
+
`,Ac=_t(qi)`
|
|
1185
1185
|
padding: 12px;
|
|
1186
1186
|
font-size: 14px;
|
|
1187
1187
|
color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
|
|
1188
|
-
`,
|
|
1188
|
+
`,Dc=({tabs:e,hideBorder:t=!1})=>e?.length?ft.createElement(Ec,{$hideBorder:t},e.map(({label:e,icon:t,onClick:o,selected:n})=>ft.createElement(Sc,{key:`tab-${e}`,onClick:o,$selected:n},ft.createElement(Ac,{$selected:n},e),t&&ft.createElement(t,null)))):null,Tc=_t.section`
|
|
1189
1189
|
padding: 0px 32px;
|
|
1190
1190
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
1191
|
-
`,
|
|
1191
|
+
`,zc=_t.div`
|
|
1192
1192
|
height: 76px;
|
|
1193
1193
|
display: flex;
|
|
1194
1194
|
justify-content: space-between;
|
|
1195
1195
|
flex-shrink: 0;
|
|
1196
1196
|
align-self: stretch;
|
|
1197
|
-
`,
|
|
1197
|
+
`,Fc=_t.div`
|
|
1198
1198
|
display: flex;
|
|
1199
1199
|
align-items: center;
|
|
1200
1200
|
gap: ${({$gap:e})=>e||16}px;
|
|
1201
|
-
`,
|
|
1201
|
+
`,Oc=_t(qi)`
|
|
1202
1202
|
font-size: 18px;
|
|
1203
1203
|
line-height: 26px;
|
|
1204
1204
|
max-width: ${({$maxWidth:e})=>e};
|
|
1205
1205
|
overflow: hidden;
|
|
1206
1206
|
white-space: nowrap;
|
|
1207
1207
|
text-overflow: ellipsis;
|
|
1208
|
-
`,
|
|
1208
|
+
`,Ic=_t(xa)`
|
|
1209
1209
|
gap: 8px;
|
|
1210
|
-
`,
|
|
1210
|
+
`,Nc=_t(xa)``,_c=({onClose:e,width:t,icons:o,iconSrcs:n,title:i,titleTooltip:a,replaceTitleWith:r,actions:s,actionButtons:l=[],tabs:c})=>ft.createElement(Tc,null,ft.createElement(zc,null,ft.createElement(Fc,null,o?.length||n?.length?ft.createElement(Rs,{icons:o,iconSrcs:n,id:`drawer-header-${i}`}):null,("function"==typeof r?ft.createElement(r,null):r||null)||ft.createElement(Er,{text:a||i,withIcon:!!a},i&&ft.createElement(Oc,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`},i))),ft.createElement(Fc,{$gap:2},s,l.map((e,t)=>ft.createElement(Ic,{key:`header-action-button-${t}`,...e})),ft.createElement(Nc,{"data-id":"drawer-close",variant:"secondary",onClick:e},ft.createElement(Ye,{size:12})))),ft.createElement(Dc,{tabs:c,hideBorder:!0})),Bc=_t.div`
|
|
1211
1211
|
display: flex;
|
|
1212
1212
|
justify-content: space-between;
|
|
1213
1213
|
gap: 8px;
|
|
@@ -1215,17 +1215,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1215
1215
|
border-top: 1px solid ${({theme:e})=>e.colors.border};
|
|
1216
1216
|
background-color: ${({theme:e})=>e.colors.translucent_bg};
|
|
1217
1217
|
transform: translateY(100%);
|
|
1218
|
-
animation-name: ${
|
|
1219
|
-
`,
|
|
1218
|
+
animation-name: ${Ui.animations.slide.in.bottom};
|
|
1219
|
+
`,Rc=_t(Za)`
|
|
1220
1220
|
margin-right: auto;
|
|
1221
|
-
`,
|
|
1221
|
+
`,Lc=_t(Za)`
|
|
1222
1222
|
margin: 0 auto;
|
|
1223
|
-
`,
|
|
1223
|
+
`,Mc=_t(Za)`
|
|
1224
1224
|
margin-left: auto;
|
|
1225
|
-
`,
|
|
1225
|
+
`,Pc=_t(xa)`
|
|
1226
1226
|
min-width: 140px;
|
|
1227
1227
|
font-size: 14px;
|
|
1228
|
-
`,
|
|
1228
|
+
`,jc=({isOpen:e,leftButtons:t=[],centerButtons:o=[],rightButtons:n=[]})=>e?ft.createElement(Bc,null,ft.createElement(Rc,null,t.map((e,t)=>ft.createElement(Pc,{key:`footer-left-button-${t}`,...e}))),ft.createElement(Lc,null,o.map((e,t)=>ft.createElement(Pc,{key:`footer-center-button-${t}`,...e}))),ft.createElement(Mc,null,n.map((e,t)=>ft.createElement(Pc,{key:`footer-right-button-${t}`,...e})))):null,Uc=_t.div`
|
|
1229
1229
|
position: fixed;
|
|
1230
1230
|
top: 0;
|
|
1231
1231
|
bottom: 0;
|
|
@@ -1233,56 +1233,56 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1233
1233
|
z-index: 1000;
|
|
1234
1234
|
width: ${({$width:e})=>e};
|
|
1235
1235
|
background: ${({theme:e})=>e.colors.translucent_bg};
|
|
1236
|
-
box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+
|
|
1236
|
+
box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+Ui.opacity.hex["010"]};
|
|
1237
1237
|
overflow-y: auto;
|
|
1238
|
-
animation-name: ${({$position:e})=>
|
|
1239
|
-
`,
|
|
1238
|
+
animation-name: ${({$position:e})=>Ui.animations.slide.in[e]};
|
|
1239
|
+
`,Wc=_t.div`
|
|
1240
1240
|
display: flex;
|
|
1241
1241
|
flex-direction: column;
|
|
1242
1242
|
height: 100%;
|
|
1243
|
-
`,
|
|
1243
|
+
`,Vc=_t.div`
|
|
1244
1244
|
flex-grow: 1;
|
|
1245
1245
|
padding: 24px 32px;
|
|
1246
1246
|
overflow-y: auto;
|
|
1247
|
-
`,
|
|
1247
|
+
`,Hc=({isOpen:e,onClose:t,closeOnEscape:o=!0,position:n="right",width:i="300px",children:a,header:r,footer:s})=>(Ma({key:"Escape",active:e&&o},()=>t()),wa(e),e?Vt.createPortal(ft.createElement(ft.Fragment,null,ft.createElement(or,{hidden:!e,onClick:t}),ft.createElement(Uc,{"data-id":"drawer",$position:n,$width:i},ft.createElement(Wc,null,ft.createElement(_c,{onClose:t,width:i,...r}),ft.createElement(Vc,null,a),ft.createElement(jc,{...s})))),document.body):null),Gc=({error:e})=>{const t=Ui.useTheme(),o={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:t.text.error,fontFamily:t.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:t.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:t.text.secondary,fontSize:"14px"}};return ft.createElement("div",{style:o.container},ft.createElement("h2",null,"Something went wrong!"),ft.createElement("pre",{style:o.errorMessage},e?.message||"Unknown Error"),ft.createElement("details",{style:o.errorStackWrapper},ft.createElement("summary",null,"Stack Trace"),ft.createElement("pre",{style:o.errorStack},e?.stack||"Unknown Stack")),ft.createElement("p",{style:o.infoText},"Try refreshing the page or contact support"),ft.createElement(xa,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"}},"Reload"))},qc=({children:e})=>ft.createElement(Gt,{FallbackComponent:e=>ft.createElement(Ui.Provider,null,ft.createElement(Gc,{...e}))},e),Kc=_t(Za)`
|
|
1248
1248
|
position: relative;
|
|
1249
1249
|
width: calc(100% - 24px);
|
|
1250
1250
|
padding: 12px;
|
|
1251
1251
|
background-color: ${({theme:e})=>e.colors.dark_grey};
|
|
1252
|
-
border-bottom: 1px solid ${({theme:e})=>e.colors.border+
|
|
1253
|
-
`,
|
|
1252
|
+
border-bottom: 1px solid ${({theme:e})=>e.colors.border+Ui.opacity.hex["050"]};
|
|
1253
|
+
`,Yc=_t(Za)`
|
|
1254
1254
|
margin-right: auto;
|
|
1255
1255
|
margin-left: 32px;
|
|
1256
1256
|
gap: 12px;
|
|
1257
|
-
`,
|
|
1257
|
+
`,Jc=_t(Za)`
|
|
1258
1258
|
margin-left: auto;
|
|
1259
1259
|
margin-right: 32px;
|
|
1260
1260
|
gap: 12px;
|
|
1261
|
-
`,
|
|
1261
|
+
`,Xc=_t(Za)`
|
|
1262
1262
|
position: absolute;
|
|
1263
1263
|
left: 50%;
|
|
1264
1264
|
transform: translateX(-50%);
|
|
1265
1265
|
gap: 12px;
|
|
1266
|
-
`,
|
|
1266
|
+
`,Zc=({left:e=[],center:t=[],right:o=[]})=>ft.createElement(Kc,null,ft.createElement(Yc,null,e.map((e,t)=>e&&ft.createElement(bt,{key:t},e))),ft.createElement(Xc,null,t.map((e,t)=>e&&ft.createElement(bt,{key:t},e))),ft.createElement(Jc,null,o.map((e,t)=>e&&ft.createElement(bt,{key:t},e)))),Qc=_t(qi)`
|
|
1267
1267
|
color: ${({theme:e})=>e.text.grey};
|
|
1268
|
-
`,
|
|
1268
|
+
`,ed=({icon:e,title:t,badge:o,badgeTooltip:n,loading:i})=>ft.createElement(Za,{$gap:6},e&&ft.createElement(e,null),ft.createElement(Qc,{size:14},t),void 0!==o&&ft.createElement(Er,{text:n},ft.createElement(ha,{label:o})),i&&ft.createElement(ps,null)),td=_t.div`
|
|
1269
1269
|
width: fit-content;
|
|
1270
1270
|
height: fit-content;
|
|
1271
1271
|
padding: 4px;
|
|
1272
1272
|
gap: 4px;
|
|
1273
1273
|
border-radius: 32px;
|
|
1274
|
-
border: 1px solid ${({theme:e})=>e.colors.border+
|
|
1274
|
+
border: 1px solid ${({theme:e})=>e.colors.border+Ui.opacity.hex["070"]};
|
|
1275
1275
|
|
|
1276
1276
|
display: flex;
|
|
1277
1277
|
flex-direction: ${({$orientation:e,$flip:t})=>("horizontal"===e?"row":"column")+(t?"-reverse":"")};
|
|
1278
1278
|
align-items: center;
|
|
1279
1279
|
justify-content: center;
|
|
1280
|
-
`,
|
|
1280
|
+
`,od=_t.div`
|
|
1281
1281
|
width: 32px;
|
|
1282
1282
|
height: 32px;
|
|
1283
1283
|
|
|
1284
1284
|
border-radius: 100%;
|
|
1285
|
-
background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+
|
|
1285
|
+
background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+Ui.opacity.hex["070"]:e.colors.secondary+Ui.opacity.hex["012"]};
|
|
1286
1286
|
transition: background-color 0.3s;
|
|
1287
1287
|
|
|
1288
1288
|
display: flex;
|
|
@@ -1290,63 +1290,63 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1290
1290
|
justify-content: center;
|
|
1291
1291
|
|
|
1292
1292
|
cursor: pointer;
|
|
1293
|
-
`,
|
|
1293
|
+
`,nd=({orientation:e="vertical",flip:t,mainIcons:o,subIcons:n})=>ft.createElement(td,{$orientation:e,$flip:t},o.map(({icon:e,selected:t,onClick:o,tooltip:n},i)=>ft.createElement(Er,{key:`main-nav-icon-${i}`,text:n},ft.createElement(od,{$selected:t,onClick:o},ft.createElement(e,{size:20})))),!!o.length&&!!n.length&&ft.createElement(xr,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),n.map(({icon:e,selected:t,onClick:o,tooltip:n},i)=>ft.createElement(Er,{key:`sub-nav-icon-${i}`,text:n},ft.createElement(od,{$selected:t,onClick:o},ft.createElement(e,{size:20}))))),id=_t.div`
|
|
1294
1294
|
display: flex;
|
|
1295
1295
|
flex-direction: column;
|
|
1296
1296
|
width: 100%;
|
|
1297
|
-
`,
|
|
1297
|
+
`,ad=_t.div`
|
|
1298
1298
|
display: flex;
|
|
1299
1299
|
flex-direction: column;
|
|
1300
1300
|
gap: 8px;
|
|
1301
|
-
`,
|
|
1301
|
+
`,rd=_t.div`
|
|
1302
1302
|
display: flex;
|
|
1303
1303
|
align-items: center;
|
|
1304
1304
|
gap: 16px;
|
|
1305
|
-
`,
|
|
1305
|
+
`,sd=_t(Dr)`
|
|
1306
1306
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1307
1307
|
opacity: ${({$disabled:e})=>e?.5:1};
|
|
1308
|
-
`,
|
|
1308
|
+
`,ld=({initialValues:e=[],value:t,onChange:o,title:n,tooltip:i,required:a,errorMessage:r})=>{const[s,l]=wt(t||e);kt(()=>{s.length||l([""])},[]);const c=s.filter(e=>!!e.trim()),d=vt(JSON.stringify(c));kt(()=>{const e=JSON.stringify(c);d.current!==e&&(d.current=e,o&&o(c))},[c]);const p=(e,t)=>{l(o=>{const n=[...o];return n[t]=e,n})},u=s.length<=1,h=s.some(e=>""===e.trim()),m=u&&h;return ft.createElement(id,null,ft.createElement($l,{title:n,required:a,tooltip:i}),ft.createElement(ad,null,s.map((e,t)=>{const o=t===s.length-1;return ft.createElement(rd,{key:`input-list-${t}`},ft.createElement(vl,{value:e,onChange:e=>p(e.target.value,t),hasError:!!r,autoFocus:_n(e)&&!u&&o}),t===s.length-1&&ft.createElement(sd,{withBorder:!0,size:30,$disabled:h,onClick:h?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})}},ft.createElement(et,null)),ft.createElement(sd,{size:30,$disabled:m,onClick:m?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,o)=>o!==e))})(t)},ft.createElement(rt,null)))})),!!r&&ft.createElement(Ji,null,r))},cd=({col:e,colIdx:t,row:o,rowIdx:n,rowsLength:i,maxWidth:a,handleChange:r,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:c,title:d,tooltip:p,placeholder:u,required:h,type:m,componentType:g,options:$,renderCondition:x}=e,f=o[c];return x&&!x(o)?null:ft.createElement("td",{key:`input-table-${n}-${c}`,style:{maxWidth:a,padding:"4px 6px 4px 0"}},(()=>{switch(g){case ko.Dropdown:const e=$?.find(e=>e.id===f);return ft.createElement(Dl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:$||[],value:e,onSelect:e=>r(c,e.id,n),onDeselect:()=>r(c,"",n),hasError:!!s&&(!h||h&&_n(f))});case"multi-dropdown":const o=Array.isArray(f)&&$?.filter(e=>f.includes(e.id))||[];return ft.createElement(Dl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,required:h,options:$||[],value:o,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(f)?f:[],e.id];r(c,t,n)},onDeselect:e=>{const t=(Array.isArray(f)?f:[]).filter(t=>t!==e.id);r(c,t,n)},hasError:!!s&&(!h||h&&_n(f))});default:const g=i>1&&n===i-1&&0===t&&_n(f);return ft.createElement(vl,{title:l?d:void 0,tooltip:l?p:void 0,placeholder:u,type:m,required:h,autoFocus:g,value:f,onChange:({target:{value:e}})=>r(c,e,n),style:{maxWidth:a,paddingLeft:10},hasError:!!s&&(!h||h&&_n(f))})}})())},dd=_t.div`
|
|
1309
1309
|
display: flex;
|
|
1310
1310
|
flex-direction: column;
|
|
1311
1311
|
width: 100%;
|
|
1312
|
-
`,
|
|
1312
|
+
`,pd=_t.button`
|
|
1313
1313
|
margin-top: ${({$marginTop:e})=>e};
|
|
1314
1314
|
background: none;
|
|
1315
1315
|
border: none;
|
|
1316
1316
|
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
1317
1317
|
opacity: ${({disabled:e})=>e?.5:1};
|
|
1318
|
-
`,
|
|
1318
|
+
`,ud=({columns:e,initialValues:t=[],value:o,onChange:n,errorMessage:i,limitFieldsPerRow:a,title:r=""})=>{const[s,l]=wt({}),[c,d]=wt(o||t),p=yt(()=>new Map(e.map(e=>[e.keyName,e])),[e]);kt(()=>{if(!c.length){const t={};e.forEach(({keyName:e})=>t[e]=""),l(t),d([t])}},[]);const u=c.filter(e=>{for(const[t,o]of Object.entries(e)){const n=p.get(t);if((!n?.renderCondition||n.renderCondition(e))&&n?.required&&_n(o))return!1}return!0}),h=vt(JSON.stringify(u)),m=u.length!==c.length,g=`${Math.floor(640/((a||e.length)+.4))}px`;kt(()=>{const e=JSON.stringify(u);h.current!==e&&(h.current=e,n&&n(u))},[u]);const $=(e,t,o)=>{d(n=>{const i=eo(n);return i[o][e]=t,i})},x=yt(()=>{if(a){const t=[];for(let o=0;;o+=a){const n=e.slice(o,o+a);if(!n.length)break;t.push(n)}return t}return[e]},[a,e]);return ft.createElement(dd,null,ft.createElement($l,{title:r}),ft.createElement("table",{style:{borderCollapse:"collapse"}},!a&&ft.createElement("thead",null,ft.createElement("tr",null,e.map(({title:e,tooltip:t,required:o})=>ft.createElement("th",{key:`input-table-head-${e}`,style:{maxWidth:g}},ft.createElement($l,{title:e,required:o,tooltip:t}))),ft.createElement("th",null))),ft.createElement("tbody",null,c.map((t,o)=>ft.createElement(bt,{key:`input-table-row-${o}`},a&&o>0?ft.createElement("tr",null,ft.createElement("td",{colSpan:x.length},ft.createElement(xr,null))):null,x.map((n,r)=>ft.createElement("tr",{key:`input-table-matrix-${o}-${r}`},n.map((e,n)=>ft.createElement(cd,{key:`input-table-row-${o}-col-${n}`,col:e,colIdx:n,row:t,rowIdx:o,rowsLength:c.length,maxWidth:g,limitFieldsPerRow:a,errorMessage:i,handleChange:$})),0===r&&ft.createElement("td",null,ft.createElement(pd,{$marginTop:a?"24px":"0",onClick:()=>{return t=o,void(c.length>1?d(e=>e.filter((e,o)=>o!==t)):e.forEach(({keyName:e,type:o})=>$(e,o===vo.Number?"0":"",t)));var t}},ft.createElement(rt,null))))))))),!!i&&ft.createElement(Ji,null,i),ft.createElement(Es,{onClick:()=>{d(e=>{const t=eo(e);return t.push(eo(s)),t})},disabled:m}))},hd=_t.div`
|
|
1319
1319
|
display: flex;
|
|
1320
1320
|
flex-direction: column;
|
|
1321
1321
|
width: 100%;
|
|
1322
|
-
`,
|
|
1322
|
+
`,md=_t.div`
|
|
1323
1323
|
display: flex;
|
|
1324
1324
|
flex-direction: column;
|
|
1325
1325
|
gap: 8px;
|
|
1326
|
-
`,
|
|
1326
|
+
`,gd=_t.div`
|
|
1327
1327
|
display: flex;
|
|
1328
1328
|
align-items: center;
|
|
1329
1329
|
gap: 8px;
|
|
1330
|
-
|
|
1330
|
+
`,$d=_t.div`
|
|
1331
1331
|
width: 100%;
|
|
1332
1332
|
max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
|
|
1333
|
-
`,
|
|
1333
|
+
`,xd=_t(Dr)`
|
|
1334
1334
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1335
1335
|
opacity: ${({$disabled:e})=>e?.5:1};
|
|
1336
|
-
`,
|
|
1336
|
+
`,fd={key:"",value:""},bd=({initialKeyValuePairs:e=[],value:t,onChange:o,title:n,tooltip:i,disabled:a,required:r,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:c="Value",inputMaxWidth:d=300})=>{const[p,u]=wt(t||e);kt(()=>{p.length||u([{...fd}])},[]);const h=p.filter(({key:e,value:t})=>!_n(e.trim())&&!_n(t.trim())),m=vt(JSON.stringify(h));kt(()=>{const e=JSON.stringify(h);m.current!==e&&(m.current=e,o&&o(h))},[h]);const g=(e,t,o)=>{u(n=>{const i=[...n];return i[o][e]=t,i})},$=p.length<=1,x=a||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),f=a||$&&x;return ft.createElement(hd,null,ft.createElement($l,{title:n,required:r,tooltip:i}),ft.createElement(md,null,p.map(({key:e,value:t},o)=>ft.createElement(gd,{key:`key-value-input-list-${o}`},ft.createElement($d,{$maxWidth:d},ft.createElement(vl,{placeholder:l,disabled:a,value:e,onChange:e=>g("key",e.target.value,o),hasError:!!s&&(!r||r&&!e),autoFocus:_n(t)&&!$&&o===p.length-1})),ft.createElement($d,{$maxWidth:o===p.length-1?d-38:d},ft.createElement(vl,{placeholder:c,disabled:a,value:t,onChange:e=>g("value",e.target.value,o),hasError:!!s&&(!r||r&&_n(t)),autoFocus:!1})),o===p.length-1&&ft.createElement(xd,{withBorder:!0,size:30,$disabled:x,onClick:x?void 0:()=>{u(e=>{const t=[...e];return t.push({...fd}),t})}},ft.createElement(et,null)),ft.createElement(xd,{size:30,$disabled:f,onClick:f?void 0:()=>(e=>{$?(g("key","",e),g("value","",e)):u(t=>t.filter((t,o)=>o!==e))})(o)},ft.createElement(rt,null))))),!!s&&ft.createElement(Ji,null,s))},yd=Mt`
|
|
1337
1337
|
0% {
|
|
1338
1338
|
background-position: 0% 50%;
|
|
1339
1339
|
}
|
|
1340
1340
|
100% {
|
|
1341
1341
|
background-position: 100% 50%;
|
|
1342
1342
|
}
|
|
1343
|
-
`,
|
|
1343
|
+
`,wd=_t(qi)`
|
|
1344
1344
|
background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
1345
1345
|
background-size: 250% 100%; /* Expand background to allow movement */
|
|
1346
1346
|
background-clip: text;
|
|
1347
1347
|
color: transparent;
|
|
1348
|
-
animation: ${
|
|
1349
|
-
`,
|
|
1348
|
+
animation: ${yd} 1s reverse linear infinite;
|
|
1349
|
+
`,kd=({children:e="Loading...",textColor:t,stripColor:o,...n})=>{const i=Ui.useTheme(),a=t||i.v2.colors.white[500],r=o||i.v2.colors.black[500];return ft.createElement(wd,{$textColor:a,$stripColor:r,...n},e)},vd=_t.div`
|
|
1350
1350
|
display: flex;
|
|
1351
1351
|
flex-direction: ${({$isVertical:e})=>e?"column":"row"};
|
|
1352
1352
|
gap: ${({$isVertical:e})=>e?"12px":"24px"};
|
|
@@ -1355,51 +1355,51 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1355
1355
|
border-radius: 32px;
|
|
1356
1356
|
padding: 8px;
|
|
1357
1357
|
`}
|
|
1358
|
-
`,
|
|
1358
|
+
`,Cd=(e,t)=>!t?.length||!!t?.find(t=>t===e),Ed=({isVertical:e,title:t="Monitors",required:o,errorMessage:n,allowedSignals:i,selectedSignals:a,setSelectedSignals:r})=>{const[s,l]=wt(1===a.length),c=vt(JSON.stringify(a));return kt(()=>{const e=a;e.length||pi.forEach(({id:t})=>{Cd(t,i)&&e.push(t)});const t=JSON.stringify(e);return c.current!==t&&(c.current=t,r(e),l(1===e.length)),()=>{c.current=""}},[i]),ft.createElement("div",null,t&&ft.createElement($l,{title:t,required:o}),ft.createElement(vd,{$isVertical:e,$hasError:!!n},pi.map(e=>{const t=Cd(e.id,i),o=((e,t)=>!!t?.find(t=>t===e))(e.id,a);return t?ft.createElement(Yr,{key:e.id,title:e.value,disabled:!t||s&&o,value:o,onChange:t=>((e,t)=>{const o=e,n=t?[...a,o]:a.filter(e=>e!==o);r(n),l(1===n.length)})(e.id,t)}):null})),!!n&&ft.createElement(Ji,null,n))},Sd=_t.div`
|
|
1359
1359
|
display: flex;
|
|
1360
1360
|
gap: 8px;
|
|
1361
1361
|
align-items: center;
|
|
1362
|
-
`,
|
|
1362
|
+
`,Ad=_t(xa)`
|
|
1363
1363
|
display: flex;
|
|
1364
1364
|
align-items: center;
|
|
1365
1365
|
justify-content: center;
|
|
1366
1366
|
gap: 8px;
|
|
1367
1367
|
min-width: 90px;
|
|
1368
|
-
`,
|
|
1368
|
+
`,Dd=({buttons:e})=>{const t=Ui.useTheme(),o=({button:t,index:o})=>e.length>1&&0===o&&(t.icon||t.iconSrc),n=({button:e,rotate:o})=>e.icon?ft.createElement(e.icon,{size:14,rotate:o,fill:t.text[e.variant||"secondary"]}):e.iconSrc?ft.createElement("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return ft.createElement(Sd,null,e.map((e,t)=>ft.createElement(Er,{key:t,text:e.tooltip||""},ft.createElement(Ad,{key:t,variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled},o({button:e,index:t})&&n({button:e,rotate:0}),e.label,!o({button:e,index:t})&&n({button:e,rotate:180})))))},Td=_t.div`
|
|
1369
1369
|
height: ${({$height:e})=>e}px;
|
|
1370
1370
|
width: 100%;
|
|
1371
1371
|
overflow: auto;
|
|
1372
|
-
`,
|
|
1372
|
+
`,zd=_t.div`
|
|
1373
1373
|
height: ${({$height:e})=>e}px;
|
|
1374
1374
|
width: 100%;
|
|
1375
1375
|
position: relative;
|
|
1376
|
-
`,
|
|
1376
|
+
`,Fd=_t.div`
|
|
1377
1377
|
height: ${({$height:e})=>e}px;
|
|
1378
1378
|
width: 100%;
|
|
1379
1379
|
position: absolute;
|
|
1380
1380
|
top: 0;
|
|
1381
1381
|
left: 0;
|
|
1382
1382
|
transform: translateY(${({$yOffset:e})=>e}px);
|
|
1383
|
-
`,
|
|
1383
|
+
`,Od=({containerHeight:e,elementHeight:t,elements:o})=>{const{overflowRef:n,listHeight:i,listItems:a}=Ba({items:o,rowHeight:t});return ft.createElement(Td,{ref:n,$height:e},ft.createElement(zd,{$height:i},a.map(({key:e,index:t,size:n,start:i})=>{const a=t>o.length-1,r=o[t];return ft.createElement(Fd,{key:e,$height:n,$yOffset:i},a?ft.createElement(er,null,ft.createElement(kd,null)):r)})))},Id=_t.div`
|
|
1384
1384
|
display: flex;
|
|
1385
1385
|
justify-content: space-between;
|
|
1386
1386
|
align-items: center;
|
|
1387
1387
|
gap: 16px;
|
|
1388
|
-
`,
|
|
1388
|
+
`,Nd=_t.div`
|
|
1389
1389
|
display: flex;
|
|
1390
1390
|
flex-direction: column;
|
|
1391
1391
|
gap: 4px;
|
|
1392
|
-
`,
|
|
1392
|
+
`,_d=_t.div`
|
|
1393
1393
|
display: flex;
|
|
1394
1394
|
align-items: center;
|
|
1395
1395
|
gap: 8px;
|
|
1396
|
-
`,
|
|
1396
|
+
`,Bd=_t(qi)``,Rd=_t(qi)``,Ld=({title:e,description:t,badgeLabel:o,icon:n,actionButton:i,size:a="medium"})=>{const r="small"===a?16:"medium"===a?20:24,s="small"===a?12:"medium"===a?14:16;return ft.createElement(Id,null,ft.createElement(Nd,null,ft.createElement(_d,null,n&&ft.createElement(n,{size:r}),ft.createElement(Bd,{weight:300,size:r},e),void 0!==o&&ft.createElement(ha,{label:o,filled:!!o})),ft.createElement(Rd,{weight:200,opacity:.8,size:s},t)),i&&ft.createElement("div",null,i))},Md=_t.div`
|
|
1397
1397
|
position: relative;
|
|
1398
1398
|
gap: 0;
|
|
1399
1399
|
z-index: 0;
|
|
1400
1400
|
display: grid;
|
|
1401
1401
|
grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
|
|
1402
|
-
`,
|
|
1402
|
+
`,Pd=_t.button`
|
|
1403
1403
|
flex: 1;
|
|
1404
1404
|
display: flex;
|
|
1405
1405
|
align-items: center;
|
|
@@ -1413,7 +1413,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1413
1413
|
&:hover {
|
|
1414
1414
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
1415
1415
|
}
|
|
1416
|
-
`,
|
|
1416
|
+
`,jd=_t.div`
|
|
1417
1417
|
position: absolute;
|
|
1418
1418
|
top: ${({$y:e})=>e}px;
|
|
1419
1419
|
left: ${({$x:e})=>e}px;
|
|
@@ -1423,85 +1423,85 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1423
1423
|
background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
|
|
1424
1424
|
border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
|
|
1425
1425
|
transition: all 0.3s;
|
|
1426
|
-
`,
|
|
1426
|
+
`,Ud=({options:e=[],selected:t,setSelected:o})=>{const n=e.findIndex(e=>e.value===t),[i,a]=wt(e[n]?.selectedBgColor||""),[r,s]=wt({width:0,height:0}),[l,c]=wt({x:0,y:0}),d=vt(null);return kt(()=>{d.current&&(s({width:d.current.offsetWidth,height:d.current.offsetHeight}),c({x:d.current.offsetWidth*n,y:0}))},[t,n]),ft.createElement(Md,{$count:e.length},e.map(({icon:n,label:i,value:r,selectedBgColor:s,selectedTextColor:l},c)=>{const p=t===r;return ft.createElement(Pd,{key:`segment-${i||c}-${r}`,ref:p?d:void 0,$isFirstItem:0===c,$isLastItem:c===e.length-1,onClick:()=>{o(r),a(s||"")}},n&&ft.createElement(n,null),i&&ft.createElement(qi,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0},i))}),ft.createElement(jd,{$bgColor:i,$width:r.width,$height:r.height,$x:l.x,$y:l.y,$isFirstItem:0===n,$isLastItem:n===e.length-1}))},Wd=_t(xa)`
|
|
1427
1427
|
gap: 8px;
|
|
1428
1428
|
text-transform: none;
|
|
1429
1429
|
text-decoration: none;
|
|
1430
1430
|
border: ${({theme:e,$withBorder:t})=>`1px solid ${t?e.colors.border:"transparent"}`};
|
|
1431
1431
|
&.not-selected {
|
|
1432
|
-
background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+
|
|
1432
|
+
background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+Ui.opacity.hex["060"]};
|
|
1433
1433
|
&:hover {
|
|
1434
1434
|
background-color: ${({theme:e,$hoverColor:t})=>t||e.colors.dropdown_bg_2};
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
&.selected {
|
|
1438
|
-
background-color: ${({theme:e})=>e.colors.majestic_blue+
|
|
1438
|
+
background-color: ${({theme:e})=>e.colors.majestic_blue+Ui.opacity.hex["030"]};
|
|
1439
1439
|
}
|
|
1440
|
-
`,
|
|
1440
|
+
`,Vd=_t(qi)`
|
|
1441
1441
|
white-space: nowrap;
|
|
1442
1442
|
overflow: hidden;
|
|
1443
1443
|
text-overflow: ellipsis;
|
|
1444
1444
|
font-size: 14px;
|
|
1445
|
-
`,
|
|
1445
|
+
`,Hd=({label:e,onClick:t,icon:o,iconSrc:n,badgeLabel:i,badgeFilled:a,isSelected:r,withBorder:s,color:l,hoverColor:c,style:d})=>{const p=Ui.useTheme();return ft.createElement(Wd,{onClick:t,className:r?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:c,style:d},o&&ft.createElement("div",null,ft.createElement(o,{fill:p.text.info})),n&&ft.createElement("div",null,ft.createElement("img",{src:n,alt:"",width:16,height:16})),ft.createElement(Vd,null,e),r&&ft.createElement("div",null,ft.createElement(qe,{fill:p.colors.majestic_blue_soft})),void 0!==i&&ft.createElement(ha,{label:i,filled:a||r}))},Gd=_t.div`
|
|
1446
1446
|
display: flex;
|
|
1447
1447
|
flex-direction: column;
|
|
1448
1448
|
gap: 16px;
|
|
1449
1449
|
${({$maxWidth:e})=>e&&`max-width: ${e};`}
|
|
1450
|
-
`,
|
|
1450
|
+
`,qd=_t.div`
|
|
1451
1451
|
display: flex;
|
|
1452
1452
|
align-items: center;
|
|
1453
1453
|
gap: 16px;
|
|
1454
|
-
`,
|
|
1454
|
+
`,Kd=_t.div`
|
|
1455
1455
|
width: 50px;
|
|
1456
1456
|
height: 50px;
|
|
1457
1457
|
border-radius: 8px;
|
|
1458
1458
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
|
|
1459
1459
|
background-size: 200% 100%;
|
|
1460
|
-
animation: ${
|
|
1461
|
-
`,
|
|
1460
|
+
animation: ${Ui.animations.shimmer} 10s infinite linear;
|
|
1461
|
+
`,Yd=_t(Qa)`
|
|
1462
1462
|
flex: 1;
|
|
1463
1463
|
gap: 12px;
|
|
1464
|
-
`,
|
|
1464
|
+
`,Jd=_t.div`
|
|
1465
1465
|
width: ${({$width:e})=>e};
|
|
1466
1466
|
height: 16px;
|
|
1467
1467
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
|
|
1468
1468
|
background-size: 200% 100%;
|
|
1469
|
-
animation: ${
|
|
1469
|
+
animation: ${Ui.animations.shimmer} 1.5s infinite linear;
|
|
1470
1470
|
border-radius: 4px;
|
|
1471
|
-
`,
|
|
1471
|
+
`,Xd=({size:e=5,maxWidth:t})=>ft.createElement(Gd,{$maxWidth:t},[...Array(e)].map((e,t)=>ft.createElement(qd,{key:t},ft.createElement(Kd,null),ft.createElement(Yd,null,ft.createElement(Jd,{$width:"80%"}),ft.createElement(Jd,{$width:"100%"})))));var Zd;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(Zd||(Zd={}));const Qd=_t.div`
|
|
1472
1472
|
display: flex;
|
|
1473
1473
|
flex-direction: column;
|
|
1474
1474
|
gap: 32px;
|
|
1475
|
-
`,
|
|
1475
|
+
`,ep=_t.div`
|
|
1476
1476
|
display: flex;
|
|
1477
1477
|
gap: 16px;
|
|
1478
1478
|
padding: 8px;
|
|
1479
|
-
opacity: ${({$state:e})=>e===
|
|
1479
|
+
opacity: ${({$state:e})=>e===Zd.Active?1:e===Zd.Disabled?.5:.8};
|
|
1480
1480
|
transition: all 0.3s;
|
|
1481
|
-
`,
|
|
1481
|
+
`,tp=_t(Za)`
|
|
1482
1482
|
justify-content: center;
|
|
1483
1483
|
width: 24px;
|
|
1484
1484
|
height: 24px;
|
|
1485
1485
|
border-radius: 32px;
|
|
1486
|
-
border: ${({theme:e,$state:t})=>t===
|
|
1487
|
-
opacity: ${({$state:e})=>e===
|
|
1488
|
-
`,
|
|
1486
|
+
border: ${({theme:e,$state:t})=>t===Zd.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
|
|
1487
|
+
opacity: ${({$state:e})=>e===Zd.Finished?.8:1};
|
|
1488
|
+
`,op=_t(Qa)`
|
|
1489
1489
|
justify-content: center;
|
|
1490
1490
|
gap: 8px;
|
|
1491
|
-
`,
|
|
1491
|
+
`,np=_t(qi)``,ip=_t(qi)``,ap=({data:e,currentStep:t=0})=>{const[o,n]=wt([]);return kt(()=>{n(e.map((e,o)=>o<t-1?{...e,state:Zd.Finished,subtitle:e.subtitle||Co.Success}:o===t-1?{...e,state:Zd.Active,subtitle:""}:{...e,state:Zd.Disabled,subtitle:""}))},[t,e]),ft.createElement(Qd,null,o.map((e,t)=>ft.createElement(ep,{key:t,$state:e.state},ft.createElement(tp,{$state:e.state},[Zd.Active,Zd.Disabled].includes(e.state)?ft.createElement(qi,{size:12},e.stepNumber):e.state===Zd.Finished?ft.createElement(qe,{size:20}):null),ft.createElement(op,null,ft.createElement(np,{family:"secondary"},e.title),e.subtitle&&ft.createElement(ip,{size:10,weight:300},e.subtitle)))))},rp=_t(Za)`
|
|
1492
1492
|
width: fit-content;
|
|
1493
1493
|
gap: 6px;
|
|
1494
1494
|
padding: 6px 12px;
|
|
1495
1495
|
border-radius: 360px;
|
|
1496
1496
|
background-color: ${({$type:e,theme:t})=>t.colors[e]};
|
|
1497
|
-
`,
|
|
1497
|
+
`,sp=_t(qi)`
|
|
1498
1498
|
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
1499
|
-
`,
|
|
1499
|
+
`,lp=({type:e=Co.Info,icon:t,title:o,size:n,family:i,children:a,...r})=>ft.createElement(rp,{$type:e},t&&ft.createElement(t,null),ft.createElement(sp,{$type:e,size:n||12,family:i||"secondary",...r},a||o)),cp=_t.div`
|
|
1500
1500
|
display: flex;
|
|
1501
1501
|
flex-direction: column;
|
|
1502
1502
|
position: relative;
|
|
1503
1503
|
width: 100%;
|
|
1504
|
-
`,
|
|
1504
|
+
`,dp=_t.div`
|
|
1505
1505
|
width: 100%;
|
|
1506
1506
|
display: flex;
|
|
1507
1507
|
align-items: center;
|
|
@@ -1529,7 +1529,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1529
1529
|
&:focus-within {
|
|
1530
1530
|
border-color: ${({theme:e})=>e.colors.secondary};
|
|
1531
1531
|
}
|
|
1532
|
-
`,
|
|
1532
|
+
`,pp=_t.textarea`
|
|
1533
1533
|
flex: 1;
|
|
1534
1534
|
border: none;
|
|
1535
1535
|
outline: none;
|
|
@@ -1553,13 +1553,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1553
1553
|
background-color: ${({theme:e})=>e.colors.border};
|
|
1554
1554
|
cursor: not-allowed;
|
|
1555
1555
|
}
|
|
1556
|
-
`,
|
|
1556
|
+
`,up=({errorMessage:e,title:t,tooltip:o,required:n,onChange:i,name:a,...r})=>{const s=vt(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return ft.createElement(cp,null,ft.createElement($l,{title:t,required:n,tooltip:o}),ft.createElement(dp,{$disabled:r.disabled,$hasError:!!e,$isActive:!!r.autoFocus},ft.createElement(pp,{ref:s,"data-id":a,name:a,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:e=>{e.stopPropagation(),l(!0),i?.(e)},onKeyDown:e=>{e.stopPropagation()},...r})),!!e&&ft.createElement(Ji,null,e))},hp=_t.div`
|
|
1557
1557
|
display: flex;
|
|
1558
1558
|
align-items: center;
|
|
1559
1559
|
gap: 12px;
|
|
1560
1560
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1561
1561
|
opacity: ${({$disabled:e})=>e?.6:1};
|
|
1562
|
-
`,
|
|
1562
|
+
`,mp=_t.div`
|
|
1563
1563
|
width: 24px;
|
|
1564
1564
|
height: 12px;
|
|
1565
1565
|
border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
|
|
@@ -1581,11 +1581,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1581
1581
|
transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
|
|
1582
1582
|
transition: background-color 0.3s, transform 0.3s;
|
|
1583
1583
|
}
|
|
1584
|
-
`,
|
|
1584
|
+
`,gp=({title:e,tooltip:t,initialValue:o=!1,onChange:n,disabled:i,allowPropagation:a=!1,flipHorizontally:r})=>{const[s,l]=wt(o);return kt(()=>l(o),[o]),ft.createElement(hp,{$disabled:i,onClick:e=>{i||(a||e.stopPropagation(),n?n(!s):l(e=>!e))}},!r&&ft.createElement(mp,{$disabled:i,$isActive:s}),(e||t)&&ft.createElement(Er,{text:t,withIcon:!0},e&&ft.createElement(qi,{size:14},e)),r&&ft.createElement(mp,{$disabled:i,$isActive:s}))};var $p={v:"5.12.1",fr:60,ip:0,op:80,w:220,h:620,nm:"Odigos - Trace Loader",ddd:0,assets:[{id:"comp_0",nm:"moving lines-5",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[6.097,.571,0],ix:2,l:2},a:{a:0,k:[-.046,-149.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-.055,-173.88],[.095,546.629]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:2.4,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:18.172,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:36.174,s:[85.889]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:12.174,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:30.174,s:[85.889]},{t:45,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:51,st:-26,ct:1,bm:0}]},{id:"comp_1",nm:"moving lines-4",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.475,.571,0],ix:2,l:2},a:{a:0,k:[.144,-156.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.167,-182.047],[.314,547.797]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:17.9,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:38.055,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:61.053,s:[85.889]},{t:80,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:15.553,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:38.555,s:[85.889]},{t:57.5,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:80,st:-26,ct:1,bm:0}]},{id:"comp_2",nm:"moving lines-3",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.841,.571,0],ix:2,l:2},a:{a:0,k:[.324,-150.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.382,-175.047],[-.051,538.464]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:6,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:23.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:43.525,s:[85.889]},{t:60,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:13.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:33.525,s:[85.889]},{t:50,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:60,st:-26,ct:1,bm:0}]}],layers:[{ddd:0,ind:1,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:-22,op:29,st:-22,ct:1,bm:0},{ddd:0,ind:2,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:56,op:107,st:56,ct:1,bm:0},{ddd:0,ind:3,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:22,op:73,st:22,ct:1,bm:0},{ddd:0,ind:4,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:-65,op:15,st:-65,ct:1,bm:0},{ddd:0,ind:5,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:14,op:94,st:14,ct:1,bm:0},{ddd:0,ind:6,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:2,op:62,st:2,ct:1,bm:0},{ddd:0,ind:7,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:-36,op:20,st:-40,ct:1,bm:0},{ddd:0,ind:8,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:39,op:99,st:39,ct:1,bm:0},{ddd:0,ind:9,ty:4,nm:"Vector :M",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110,309.736,0],ix:2,l:2},a:{a:0,k:[308.5,313.236,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[205.677,618.844],[205.677,4.807]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[411.428,618.822],[411.333,4.99]],c:!1},ix:2},nm:"Path 6",mn:"ADBE Vector Shape - Group",hd:!1},{ind:2,ty:"sh",ix:3,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[308.5,618.796],[308.5,5.145]],c:!1},ix:2},nm:"Path 7",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.975244164467,.975244164467,.975244164467,.639999985695],ix:3},o:{a:0,k:64,ix:4},w:{a:0,k:1,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 7",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:0,op:684,st:0,ct:1,bm:0}],markers:[],props:{}};const xp=_t.div`
|
|
1585
1585
|
width: ${({$width:e})=>e}px;
|
|
1586
1586
|
height: ${({$height:e})=>e}px;
|
|
1587
1587
|
position: relative;
|
|
1588
|
-
`,
|
|
1588
|
+
`,fp=({width:e=620})=>{const{darkMode:t}=Ui.useTheme(),o=e/(620/220),n=e;return ft.createElement(xp,{$width:n,$height:o},ft.createElement(qt,{autoplay:!0,loop:!0,animationData:$p,style:{width:o,height:n,transform:"rotate(-90deg)",position:"absolute",top:-(o-o/10),left:o-o/10,filter:t?"invert(0)":"invert(1)"}}))};var bp,yp;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(bp||(bp={})),function(e){e.S="small",e.M="medium",e.L="large"}(yp||(yp={}));const wp=_t.button`
|
|
1589
1589
|
display: flex;
|
|
1590
1590
|
align-items: center;
|
|
1591
1591
|
justify-content: center;
|
|
@@ -1595,14 +1595,14 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1595
1595
|
`}
|
|
1596
1596
|
border: none;
|
|
1597
1597
|
border-radius: 6px;
|
|
1598
|
-
${({$size:e,$hasLabel:t})=>e
|
|
1598
|
+
${({$size:e,$hasLabel:t})=>e===yp.S?Bt`
|
|
1599
1599
|
height: 32px;
|
|
1600
1600
|
${t?Bt`
|
|
1601
1601
|
padding: 8px 16px;
|
|
1602
1602
|
`:Bt`
|
|
1603
1603
|
width: 32px;
|
|
1604
1604
|
`}
|
|
1605
|
-
`:e
|
|
1605
|
+
`:e===yp.M?Bt`
|
|
1606
1606
|
height: 38px;
|
|
1607
1607
|
${t?Bt`
|
|
1608
1608
|
padding: 8px 18px;
|
|
@@ -1627,7 +1627,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1627
1627
|
${({$withShadow:e})=>e?Bt`
|
|
1628
1628
|
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
1629
1629
|
`:""}
|
|
1630
|
-
${({$variant:e})=>e===
|
|
1630
|
+
${({$variant:e})=>e===bp.Primary?Bt`
|
|
1631
1631
|
background-color: ${({theme:e})=>e.v2.colors.purple[500]};
|
|
1632
1632
|
&:hover {
|
|
1633
1633
|
background-color: ${({theme:e})=>e.v2.colors.purple[600]};
|
|
@@ -1635,7 +1635,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1635
1635
|
&:active {
|
|
1636
1636
|
background-color: ${({theme:e})=>e.v2.colors.purple[700]};
|
|
1637
1637
|
}
|
|
1638
|
-
`:e===
|
|
1638
|
+
`:e===bp.Secondary?Bt`
|
|
1639
1639
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1640
1640
|
&:hover {
|
|
1641
1641
|
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
@@ -1643,7 +1643,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1643
1643
|
&:active {
|
|
1644
1644
|
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1645
1645
|
}
|
|
1646
|
-
`:e===
|
|
1646
|
+
`:e===bp.Text?Bt`
|
|
1647
1647
|
background-color: transparent;
|
|
1648
1648
|
&:hover {
|
|
1649
1649
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
@@ -1653,7 +1653,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1653
1653
|
}
|
|
1654
1654
|
`:""}
|
|
1655
1655
|
}
|
|
1656
|
-
`,
|
|
1656
|
+
`,kp=At(({label:e,leftIcon:t,rightIcon:o,variant:n=bp.Primary,size:i=yp.M,iconSize:a,loading:r,fullWidth:s,withShadow:l,disabled:c,onClick:d,...p},u)=>{const h=Ui.useTheme(),m=a||(i===yp.L?18:16),g=i===yp.L?oi.S:oi.XS,$=c?h.v2.colors.grey[400]:h.v2.colors.white[500];return ft.createElement(wp,{ref:u,$variant:n,$size:i,$fullWidth:s,$withShadow:l,$hasLabel:!!e,disabled:c,onClick:r?void 0:e=>{e.stopPropagation(),d?.(e)},...p},r?e?ft.createElement(kd,{size:h.v2.text.size[g],textColor:$}):ft.createElement(ps,null):ft.createElement(ft.Fragment,null,t&&ft.createElement(t,{size:m,fill:$}),e?ft.createElement(ii,{size:g,weight:500,color:$,nowrap:!0},e):null,o&&ft.createElement(o,{size:m,fill:$})))});kp.displayName=kp.name;const vp=_t.button`
|
|
1657
1657
|
width: 100%;
|
|
1658
1658
|
padding: 0;
|
|
1659
1659
|
padding-right: 12px;
|
|
@@ -1673,7 +1673,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1673
1673
|
&:disabled {
|
|
1674
1674
|
cursor: not-allowed;
|
|
1675
1675
|
}
|
|
1676
|
-
`,
|
|
1676
|
+
`,Cp=_t.div`
|
|
1677
1677
|
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
1678
1678
|
height: 56px;
|
|
1679
1679
|
display: flex;
|
|
@@ -1684,13 +1684,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1684
1684
|
`:Bt`
|
|
1685
1685
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1686
1686
|
`}
|
|
1687
|
-
`,
|
|
1687
|
+
`,Ep=_t.div`
|
|
1688
1688
|
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
1689
1689
|
display: flex;
|
|
1690
1690
|
justify-content: space-between;
|
|
1691
1691
|
align-items: center;
|
|
1692
1692
|
gap: 8px;
|
|
1693
|
-
`,
|
|
1693
|
+
`,Sp=({label:e,icon:t,loading:o,onClick:n})=>{const[i,a]=wt(!1);return ft.createElement(vp,{$hovered:i,type:"button",disabled:o,onClick:n,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1)},ft.createElement(Cp,{$hovered:i,$hasIcon:!!t},t&&ft.createElement(t,{size:36})),ft.createElement(Ep,{$hasIcon:!!t},o?ft.createElement(kd,{size:16}):ft.createElement(ii,{variant:ti.Span,align:"center"},e),ft.createElement(dt,{rotate:90,size:24})))},Ap=({buttons:e})=>ft.createElement(Qa,{$gap:12},e.map(e=>ft.createElement(Sp,{key:e.label,...e}))),Dp=_t.div`
|
|
1694
1694
|
display: flex;
|
|
1695
1695
|
align-items: center;
|
|
1696
1696
|
flex-wrap: wrap;
|
|
@@ -1698,13 +1698,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1698
1698
|
padding: 4px 12px;
|
|
1699
1699
|
border-radius: 12px;
|
|
1700
1700
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1701
|
-
`,
|
|
1701
|
+
`,Tp=_t.div`
|
|
1702
1702
|
width: calc(${({$cellsPerRow:e})=>100/e+"%"} - 16px);
|
|
1703
1703
|
margin: 8px;
|
|
1704
1704
|
display: flex;
|
|
1705
1705
|
flex-direction: column;
|
|
1706
1706
|
gap: 4px;
|
|
1707
|
-
`,
|
|
1707
|
+
`,zp=({cellsPerRow:e,items:t})=>{const o=Rt(),{CopyButton:n}=Oa();return ft.createElement(Dp,null,t.map(({id:i,title:a,label:r,withCopy:s,badge:l})=>ft.createElement(Tp,{key:i,$cellsPerRow:e||t.length},ft.createElement(ii,{size:oi.XXXS,color:o.v2.colors.silver[200],nowrap:!0},a),ft.createElement(Za,{$gap:4},l&&ft.createElement(ri,{...l}),r&&ft.createElement(ii,{size:oi.XS,nowrap:!0},r),s&&ft.createElement(n,{value:r||l?.label?.toString()||"",size:Ta.XS})))))};var Fp;!function(e){e.S="s",e.L="l"}(Fp||(Fp={}));const Op=_t.div`
|
|
1708
1708
|
position: relative;
|
|
1709
1709
|
z-index: 0;
|
|
1710
1710
|
display: flex;
|
|
@@ -1714,13 +1714,13 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1714
1714
|
border-radius: 8px;
|
|
1715
1715
|
border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
|
|
1716
1716
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1717
|
-
`,
|
|
1717
|
+
`,Ip=_t.button`
|
|
1718
1718
|
flex: 1;
|
|
1719
1719
|
display: flex;
|
|
1720
1720
|
align-items: center;
|
|
1721
1721
|
justify-content: center;
|
|
1722
1722
|
gap: 8px;
|
|
1723
|
-
padding: ${({$size:e})=>e===
|
|
1723
|
+
padding: ${({$size:e})=>e===Fp.S?"4px 8px":"8px 16px"};
|
|
1724
1724
|
border-radius: 6px;
|
|
1725
1725
|
border: none;
|
|
1726
1726
|
background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.black[500]:"transparent"};
|
|
@@ -1729,7 +1729,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1729
1729
|
&:hover {
|
|
1730
1730
|
background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.black[500]:e.v2.colors.silver[800]};
|
|
1731
1731
|
}
|
|
1732
|
-
`,
|
|
1732
|
+
`,Np=({size:e=Fp.L,options:t=[],selected:o,setSelected:n,disabled:i})=>{const a=Rt(),r=i?a.v2.colors.grey[400]:a.v2.colors.white[500],s=e===Fp.S?oi.XXS:oi.XS,l=e===Fp.S?400:500;return ft.createElement(Op,{$count:t.length},t.map(({value:t,label:a,icon:c},d)=>{const p=o===t;return ft.createElement(Ip,{key:`segment-${a||d}-${t}`,onClick:()=>!i&&n(t),$isSelected:p,$disabled:i,$size:e},c&&ft.createElement(c,{fill:r}),a&&ft.createElement(ii,{size:s,weight:l,color:r,nowrap:!0},a))}))},_p=_t.div`
|
|
1733
1733
|
min-width: ${({$width:e})=>e||"unset"};
|
|
1734
1734
|
width: fit-content;
|
|
1735
1735
|
padding: 6px 12px;
|
|
@@ -1742,7 +1742,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1742
1742
|
border: none;
|
|
1743
1743
|
border-radius: 6px;
|
|
1744
1744
|
background: ${({$isHovered:e,$isActive:t,theme:o})=>e||t?o.v2.colors.silver[700]:o.v2.colors.silver[800]};
|
|
1745
|
-
`,
|
|
1745
|
+
`,Bp=_t.input`
|
|
1746
1746
|
flex: 1;
|
|
1747
1747
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1748
1748
|
font-size: 14px;
|
|
@@ -1758,28 +1758,28 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1758
1758
|
overflow: hidden;
|
|
1759
1759
|
text-overflow: ellipsis;
|
|
1760
1760
|
white-space: nowrap;
|
|
1761
|
-
`,
|
|
1761
|
+
`,Rp=({value:e,onChange:t,placeholder:o,width:n,segment:i})=>{const a=Ui.useTheme(),[r,s]=wt(!1),[l,c]=wt(!1),[d,p]=wt(!1),u=r?a.v2.colors.white[500]:a.v2.colors.silver[200],h=!!i?.options?.length,m=yt(()=>{if(h)return i?.options.find(e=>e.value===i.selected)?.label},[h,i?.options,i?.selected]),g=yt(()=>o||(h&&m?`Search by ${m.toLowerCase()}`:"Search..."),[o,h,m]);return ft.createElement(_p,{$width:n,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),$isHovered:l&&!d,$isActive:r},ft.createElement(at,{size:18,fill:u}),ft.createElement(Bp,{"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&&ft.createElement("div",{onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1)},ft.createElement(Np,{options:i.options,selected:i.selected,setSelected:i.setSelected,size:Fp.S})))};var Lp;!function(e){e.S="small",e.L="large"}(Lp||(Lp={}));const Mp=_t.div`
|
|
1762
1762
|
width: fit-content;
|
|
1763
1763
|
display: flex;
|
|
1764
1764
|
align-items: center;
|
|
1765
1765
|
gap: 8px;
|
|
1766
1766
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1767
|
-
`,
|
|
1768
|
-
width: ${({$size:e})=>e===
|
|
1769
|
-
height: ${({$size:e})=>e===
|
|
1767
|
+
`,Pp=_t.div`
|
|
1768
|
+
width: ${({$size:e})=>e===Lp.S?"16px":"20px"};
|
|
1769
|
+
height: ${({$size:e})=>e===Lp.S?"16px":"20px"};
|
|
1770
1770
|
display: flex;
|
|
1771
1771
|
align-items: center;
|
|
1772
1772
|
justify-content: center;
|
|
1773
1773
|
border-radius: 4px;
|
|
1774
1774
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1775
1775
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1776
|
-
`,
|
|
1776
|
+
`,jp=({label:e,size:t=Lp.L,disabled:o,partiallyChecked:n,value:i,onChange:a})=>{const r=Ui.useTheme(),[s,l]=wt(!1),c=n||i,d=t===Lp.S?12:16,p=o?r.v2.colors.grey[400]:r.v2.colors.white[500],u=c?"transparent":o?r.v2.colors.grey[700]:s?r.v2.colors.silver[400]:r.v2.colors.silver[600],h=o?r.v2.colors.grey[600]:c?r.v2.colors.purple[500]:r.v2.colors.silver[900];return ft.createElement(Mp,{"data-id":"checkbox"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),o||a(!!n||!i)},$disabled:o,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)},ft.createElement(Pp,{$size:t,$borderColor:u,$backgroundColor:h},n?ft.createElement(Je,{size:d,fill:p}):i?ft.createElement(qe,{size:d,fill:p}):null),e&&ft.createElement(ii,{size:t===Lp.S?oi.XXS:oi.XS,nowrap:!0},e))},Up=_t.div`
|
|
1777
1777
|
display: flex;
|
|
1778
1778
|
flex-direction: ${({$direction:e})=>e===ho.Horizontal?"row":"column"};
|
|
1779
1779
|
gap: ${({$direction:e})=>e===ho.Horizontal?16:8}px;
|
|
1780
|
-
`,
|
|
1780
|
+
`,Wp=({direction:e=ho.Vertical,title:t,size:o,disabled:n,withSelectAll:i,options:a,values:r,setValues:s})=>{const l=o===Lp.S?oi.XXS:oi.XS,c=yt(()=>a.every(e=>r[e.id]),[a,r]),d=yt(()=>a.some(e=>r[e.id])&&a.some(e=>!r[e.id]),[a,r]),p=(e,t)=>{s(o=>{const n={...o};return e?n[e]=t:a.forEach(e=>n[e.id]=t),n})};return ft.createElement(Up,{$direction:e},t&&i?ft.createElement(jp,{label:t,partiallyChecked:d,value:c,onChange:e=>p("",e),size:o}):t&&!i?ft.createElement(ii,{size:l},t):null,a.map(e=>ft.createElement(jp,{key:`${t}-checkbox-${e.id}`,...e,value:r[e.id],onChange:t=>p(e.id,t),disabled:n,size:o})))};var Vp,Hp;!function(e){e.Left="left",e.Right="right"}(Vp||(Vp={})),function(e){e.Top="top",e.Bottom="bottom"}(Hp||(Hp={}));const Gp=_t.div`
|
|
1781
1781
|
position: relative;
|
|
1782
|
-
`,
|
|
1782
|
+
`,qp=_t.div`
|
|
1783
1783
|
display: flex;
|
|
1784
1784
|
flex-direction: column;
|
|
1785
1785
|
gap: 0;
|
|
@@ -1792,7 +1792,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1792
1792
|
position: absolute;
|
|
1793
1793
|
${({$alignX:e})=>`${e}: 0;`}
|
|
1794
1794
|
${({$alignY:e,$withButton:t})=>`${e}: ${t?"calc(100% + 8px)":"0"};`}
|
|
1795
|
-
`,
|
|
1795
|
+
`,Kp=_t.div`
|
|
1796
1796
|
display: flex;
|
|
1797
1797
|
align-items: center;
|
|
1798
1798
|
gap: 8px;
|
|
@@ -1808,7 +1808,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1808
1808
|
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
1809
1809
|
}
|
|
1810
1810
|
`}
|
|
1811
|
-
`,
|
|
1811
|
+
`,Yp=({items:e,selectedIds:t,setSelectedIds:o,withMultiSelect:n,alignX:i,alignY:a,defaultOpen:r,buttonProps:s,iconButtonProps:l})=>{const c=Rt(),d=!!s||!!l,[p,u]=wt(r??!d),[h,m]=wt({x:i||Vp.Left,y:a||Hp.Top}),g=e=>{u(e=>!e),m({x:i||(e.clientX>window.innerWidth/2?Vp.Right:Vp.Left),y:a||(e.clientY>window.innerHeight/2?Hp.Bottom:Hp.Top)})},$=e=>{o(t.includes(e)?t.filter(t=>t!==e):[...t,e]),d&&!n&&u(!1)},x=vt(null);return Pa(x,()=>u(!1)),ft.createElement(Gp,{ref:x},s&&ft.createElement(kp,{...s,rightIcon:p?pt:ut,onClick:g}),l&&ft.createElement(Fa,{...l,onClick:g}),p&&ft.createElement(qp,{$withButton:d,$alignX:h.x,$alignY:h.y},e.map(e=>{if(!e)return null;const{id:o,label:n,icon:i,withCheckbox:a}=e,r=t.includes(o);return ft.createElement(Kp,{key:o,$selected:r,onClick:()=>$(o)},a&&ft.createElement(jp,{value:r,onChange:()=>$(o)}),i&&ft.createElement(i,{size:14,fill:c.v2.colors.white[500]}),ft.createElement(ii,{size:oi.XS,nowrap:!0},n))})))};var Jp;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(Jp||(Jp={}));const Xp=({onAnyClick:e,actions:t})=>ft.createElement(Za,{$gap:8,$alignItems:"center"},t?.map(t=>{if(!t)return null;switch(t.type){case Jp.Button:return ft.createElement(kp,{key:t.id,...t.buttonProps,onClick:o=>{t.buttonProps?.onClick?.(o),e?.()}});case Jp.ButtonDropData:return ft.createElement(Yp,{key:t.id,...t.dropDataProps,items:t.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:o=>{t.buttonProps?.onClick?.(o[0]),e?.()},buttonProps:t.buttonProps});default:return null}})),Zp=({icon:e,title:t,withCopy:o,badge:n,children:i})=>{const{CopyButton:a}=Oa();return ft.createElement(Za,{$gap:6,$alignItems:"center"},ft.createElement(e,{size:24}),ft.createElement(ii,{nowrap:!0},t),o&&ft.createElement(a,{value:t,size:Ta.XS}),n&&ft.createElement(ri,{...n}),i)};var Qp;!function(e){e.S="small",e.M="medium"}(Qp||(Qp={}));const eu=_t.div`
|
|
1812
1812
|
display: flex;
|
|
1813
1813
|
flex-direction: column;
|
|
1814
1814
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -1816,7 +1816,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1816
1816
|
padding: ${({$padding:e})=>e}px;
|
|
1817
1817
|
border-radius: 16px;
|
|
1818
1818
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1819
|
-
`,
|
|
1819
|
+
`,tu=({size:e=Qp.M,richTitle:t,search:o,actions:n,children:i})=>{const a=e===Qp.S?4:16,r=e===Qp.S?12:16;return ft.createElement(eu,{$padding:r,$gap:a},ft.createElement(Za,{$gap:a,$justifyContent:"space-between"},ft.createElement(Zp,{...t},o&&ft.createElement(Rp,{...o})),ft.createElement(Xp,{actions:n??[]})),i)},ou=_t.div`
|
|
1820
1820
|
flex: 1;
|
|
1821
1821
|
align-self: stretch;
|
|
1822
1822
|
display: flex;
|
|
@@ -1824,8 +1824,8 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1824
1824
|
gap: 8px;
|
|
1825
1825
|
padding: 16px;
|
|
1826
1826
|
border-radius: 12px;
|
|
1827
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1828
|
-
`,
|
|
1827
|
+
background-color: ${({theme:e,$status:t})=>Sn(e,t,t===Ao.Unknown?"750":"500")};
|
|
1828
|
+
`,nu=_t.div`
|
|
1829
1829
|
display: flex;
|
|
1830
1830
|
align-items: center;
|
|
1831
1831
|
justify-content: center;
|
|
@@ -1833,8 +1833,8 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1833
1833
|
height: fit-content;
|
|
1834
1834
|
padding: 8px;
|
|
1835
1835
|
border-radius: 12px;
|
|
1836
|
-
background-color: ${({theme:e,$status:t})=>t===Ao.Unknown?
|
|
1837
|
-
`,
|
|
1836
|
+
background-color: ${({theme:e,$status:t})=>t===Ao.Unknown?Sn(e,t,"800"):Sn(e,t,"900")+Ui.opacity.hex["015"]};
|
|
1837
|
+
`,iu=({status:e,icon:t,title:o,description:n})=>{const i=Rt(),a=t??Dn(e,i),r=[Co.Default,Co.Info,Ao.Disabled,Ao.Unknown].includes(e)?i.v2.colors.white[500]:i.v2.colors.black[500];return ft.createElement(ou,{$status:e},ft.createElement(nu,{$status:e},ft.createElement(a,{size:32,fill:r})),ft.createElement(Qa,{$gap:2,$justifyContent:"center"},ft.createElement(ii,{size:oi.M,weight:500,color:r,nowrap:!0},o),ft.createElement(ii,{size:oi.XXS,weight:300,color:r,nowrap:!0},n)))},au=_t.div`
|
|
1838
1838
|
flex: 1;
|
|
1839
1839
|
align-self: stretch;
|
|
1840
1840
|
display: flex;
|
|
@@ -1843,7 +1843,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1843
1843
|
padding: 12px;
|
|
1844
1844
|
border-radius: 12px;
|
|
1845
1845
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1846
|
-
`,
|
|
1846
|
+
`,ru=["-","N/A"],su=({title:e,cells:t})=>{const o=Rt();return ft.createElement(au,null,ft.createElement(ii,{size:oi.XXS,color:o.v2.colors.grey[150]},e),ft.createElement(Za,{$gap:32},t.map(t=>ft.createElement(Qa,{key:`${e}-${t.label}-${t.value}`,$gap:2},!t.isLoading||t.value&&!ru.includes(t.value)?ft.createElement(ii,{size:t.label?oi.M:oi.L},t.value):ft.createElement(ps,{scale:.9}),t.label&&ft.createElement(ii,{size:oi.XXS},t.label)))))},lu=_t(Za)`
|
|
1847
1847
|
width: calc(100% - 20px);
|
|
1848
1848
|
padding: 10px;
|
|
1849
1849
|
border-radius: 6px;
|
|
@@ -1852,33 +1852,33 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1852
1852
|
align-items: center;
|
|
1853
1853
|
justify-content: space-between;
|
|
1854
1854
|
gap: 12px;
|
|
1855
|
-
`,
|
|
1855
|
+
`,cu=_t.div`
|
|
1856
1856
|
position: relative;
|
|
1857
1857
|
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
1858
1858
|
display: flex;
|
|
1859
1859
|
align-items: center;
|
|
1860
1860
|
gap: 4px;
|
|
1861
|
-
`,
|
|
1861
|
+
`,du=_t.pre`
|
|
1862
1862
|
flex: 1;
|
|
1863
1863
|
margin: 0;
|
|
1864
1864
|
padding: 0;
|
|
1865
1865
|
font-size: 14px;
|
|
1866
1866
|
color: #5ffb98; // TODO: add to theme
|
|
1867
1867
|
overflow-x: auto;
|
|
1868
|
-
`,
|
|
1868
|
+
`,pu=_t.span`
|
|
1869
1869
|
flex-shrink: 0;
|
|
1870
1870
|
font-size: 14px;
|
|
1871
1871
|
color: #5ffb98; // TODO: add to theme
|
|
1872
|
-
`,
|
|
1872
|
+
`,uu=({value:e,hideCopy:t=!1,onDone:o})=>{const{CopyButton:n}=Oa({onDone:o}),i=vt(null),[a,r]=wt(!1);return kt(()=>{const e=()=>{if(i.current){const{scrollWidth:e,clientWidth:t}=i.current;r(e>t)}};e();const t=new ResizeObserver(e);return i.current&&t.observe(i.current),()=>{t.disconnect()}},[e]),ft.createElement(lu,null,ft.createElement(cu,{$hideCopy:t},ft.createElement(du,{ref:i},e),a&&ft.createElement(pu,null,"...")),!t&&ft.createElement(n,{value:e,size:Ta.XS}))},hu=_t.div`
|
|
1873
1873
|
display: flex;
|
|
1874
1874
|
align-items: center;
|
|
1875
1875
|
justify-content: space-between;
|
|
1876
1876
|
width: calc(100%);
|
|
1877
|
-
`,
|
|
1877
|
+
`,mu=_t.div`
|
|
1878
1878
|
display: flex;
|
|
1879
1879
|
align-items: center;
|
|
1880
1880
|
gap: 16px;
|
|
1881
|
-
`,
|
|
1881
|
+
`,gu=_t.div`
|
|
1882
1882
|
display: flex;
|
|
1883
1883
|
align-items: center;
|
|
1884
1884
|
justify-content: center;
|
|
@@ -1886,11 +1886,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1886
1886
|
height: 36px;
|
|
1887
1887
|
border-radius: 8px;
|
|
1888
1888
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1889
|
-
|
|
1889
|
+
`,$u=_t.div`
|
|
1890
1890
|
display: flex;
|
|
1891
1891
|
align-items: center;
|
|
1892
1892
|
gap: 12px;
|
|
1893
|
-
`,
|
|
1893
|
+
`,xu=({icon:e,title:t,actions:o,onClose:n,onCloseDisabled:i})=>ft.createElement(hu,null,ft.createElement(mu,null,ft.createElement(gu,null,ft.createElement(e,{size:24})),ft.createElement(ii,{size:oi.S},t)),ft.createElement($u,null,o?.length?ft.createElement(Fa,{icon:ht,size:Ta.M,onClick:()=>alert("todo")}):null,ft.createElement(Fa,{icon:Ye,size:Ta.M,onClick:n,disabled:i}))),fu=_t.div`
|
|
1894
1894
|
position: fixed;
|
|
1895
1895
|
top: 0;
|
|
1896
1896
|
bottom: 0;
|
|
@@ -1908,15 +1908,15 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1908
1908
|
box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
|
|
1909
1909
|
overflow: hidden;
|
|
1910
1910
|
|
|
1911
|
-
animation-name: ${({$position:e})=>
|
|
1912
|
-
`,
|
|
1911
|
+
animation-name: ${({$position:e})=>Ui.animations.slide.in[e]};
|
|
1912
|
+
`,bu=_t.div`
|
|
1913
1913
|
display: flex;
|
|
1914
1914
|
flex-direction: column;
|
|
1915
1915
|
gap: 12px;
|
|
1916
1916
|
|
|
1917
1917
|
height: calc(100% - ${56}px);
|
|
1918
1918
|
overflow-y: auto;
|
|
1919
|
-
|
|
1919
|
+
`,yu=({isOpen:e,hideOverlay:t=!1,position:o="right",width:n="40vw",header:i,children:a})=>(wa(e),e?Ht(ft.createElement(ft.Fragment,null,!t&&ft.createElement(or,{onClick:i.onCloseDisabled?void 0:i.onClose}),ft.createElement(fu,{$position:o,$width:n},ft.createElement(xu,{...i}),ft.createElement(bu,null,a))),document.body):null),wu=_t.header`
|
|
1920
1920
|
position: relative;
|
|
1921
1921
|
width: calc(100% - 36px);
|
|
1922
1922
|
padding: 12px 18px;
|
|
@@ -1924,12 +1924,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1924
1924
|
display: flex;
|
|
1925
1925
|
align-items: center;
|
|
1926
1926
|
justify-content: space-between;
|
|
1927
|
-
`,
|
|
1927
|
+
`,ku=_t(Za)`
|
|
1928
1928
|
position: absolute;
|
|
1929
1929
|
left: 50%;
|
|
1930
1930
|
transform: translateX(-50%);
|
|
1931
1931
|
gap: 16px;
|
|
1932
|
-
`,
|
|
1932
|
+
`,vu=({left:e=[],center:t=[],right:o=[]})=>ft.createElement(wu,null,ft.createElement(Za,{$gap:16},e),ft.createElement(ku,null,t),ft.createElement(Za,{$gap:16},o)),Cu=_t.div`
|
|
1933
1933
|
display: flex;
|
|
1934
1934
|
align-items: center;
|
|
1935
1935
|
gap: 2px;
|
|
@@ -1943,17 +1943,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1943
1943
|
right: ${({$right:e})=>e||"12px"};
|
|
1944
1944
|
top: 50%;
|
|
1945
1945
|
transform: translateY(-50%);
|
|
1946
|
-
`,
|
|
1946
|
+
`,Eu=({isOpen:e,actions:t,positionRight:o})=>e?ft.createElement(Cu,{$right:o},t.map(e=>e?ft.createElement(Er,{key:e.id,text:e.tooltip||""},ft.createElement(kp,{...e,variant:bp.Secondary,size:yp.S,label:e.label})):null)):null,Su=_t.span`
|
|
1947
1947
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1948
1948
|
font-size: 14px;
|
|
1949
1949
|
font-weight: 400;
|
|
1950
1950
|
color: ${({theme:e})=>e.text.error};
|
|
1951
|
-
`,
|
|
1951
|
+
`,Au=_t.span`
|
|
1952
1952
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1953
1953
|
font-size: 14px;
|
|
1954
1954
|
font-weight: 400;
|
|
1955
1955
|
color: ${({theme:e})=>e.v2.colors.silver[200]};
|
|
1956
|
-
`,
|
|
1956
|
+
`,Du=_t.div`
|
|
1957
1957
|
padding: 12px;
|
|
1958
1958
|
display: flex;
|
|
1959
1959
|
align-self: stretch;
|
|
@@ -1970,7 +1970,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1970
1970
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1971
1971
|
}
|
|
1972
1972
|
`}
|
|
1973
|
-
`,
|
|
1973
|
+
`,Tu=_t.input`
|
|
1974
1974
|
flex: 1;
|
|
1975
1975
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1976
1976
|
font-size: 14px;
|
|
@@ -1994,9 +1994,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
1994
1994
|
overflow: hidden;
|
|
1995
1995
|
text-overflow: ellipsis;
|
|
1996
1996
|
white-space: nowrap;
|
|
1997
|
-
`,
|
|
1997
|
+
`,zu=_t.div`
|
|
1998
1998
|
cursor: pointer;
|
|
1999
|
-
`,
|
|
1999
|
+
`,Fu=({label:e,required:t,tooltip:o,leftIcon:n,rightIcon:i,errorMessage:a,helpMessage:r,type:s=vo.Text,name:l,value:c,onChange:d,disabled:p,...u})=>{const h=Ui.useTheme(),m=s===vo.Password,[g,$]=wt(!1),x=c?h.v2.colors.white[500]:p?h.v2.colors.grey[400]:h.v2.colors.silver[200];return ft.createElement(Qa,{$gap:6},ft.createElement(Za,{$justifyContent:"space-between"},e&&ft.createElement(Au,null,e),ft.createElement(Za,{$gap:10},o&&ft.createElement(Er,{text:o,withIcon:!0}),t&&ft.createElement(Su,null,"*"))),ft.createElement(Du,{$disabled:p,$error:!!a},n?ft.createElement(n,{size:18,fill:x}):null,ft.createElement(Tu,{"data-id":l,type:g||s===vo.Number?vo.Text:s,name:l,value:c,onChange:e=>{e.stopPropagation(),s===vo.Number&&(e.target.value=qn(e.target.value)),d?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:p,...u}),m?ft.createElement(zu,{onClick:()=>$(e=>!e)},g?ft.createElement(nt,{size:18,strokeWidth:2,fill:x}):ft.createElement(it,{size:18,strokeWidth:2,fill:x})):i?ft.createElement(i,{size:18,fill:x}):null),a?ft.createElement(Za,{$gap:4},ft.createElement(Ge,{size:12,fill:h.v2.colors.red[500]}),ft.createElement(ii,{size:oi.XXS,weight:400,color:h.v2.colors.red[500]},a)):r?ft.createElement(Za,{$gap:4},ft.createElement(Ge,{size:12,fill:h.v2.colors.silver[200]}),ft.createElement(ii,{size:oi.XXS,weight:400,color:h.v2.colors.silver[200]},r)):null)},Ou=_t.div`
|
|
2000
2000
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
2001
2001
|
top: 50%;
|
|
2002
2002
|
left: 50%;
|
|
@@ -2008,28 +2008,28 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
2008
2008
|
box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
|
|
2009
2009
|
overflow: hidden;
|
|
2010
2010
|
|
|
2011
|
-
animation-name: ${
|
|
2012
|
-
`,
|
|
2011
|
+
animation-name: ${Ui.animations.slide.in.center};
|
|
2012
|
+
`,Iu=_t.div`
|
|
2013
2013
|
position: relative;
|
|
2014
|
-
`,
|
|
2014
|
+
`,Nu=_t.div`
|
|
2015
2015
|
position: absolute;
|
|
2016
2016
|
top: 16px;
|
|
2017
2017
|
left: 16px;
|
|
2018
|
-
`,
|
|
2018
|
+
`,_u=({isOpen:e,hideOverlay:t=!1,relativeToParent:o=!1,onBack:n,onClose:i,children:a})=>{if(wa(e),!e)return null;const r=ft.createElement(ft.Fragment,null,!t&&ft.createElement(or,{$relativeToParent:o,onClick:i}),ft.createElement(Ou,{$relativeToParent:o},ft.createElement(Iu,null,n&&ft.createElement(Nu,null,ft.createElement(Fa,{icon:e=>ft.createElement(dt,{rotate:-90,...e}),size:Ta.L,onClick:n})),a)));return o?r:Ht(r,document.body)},Bu=_t.div`
|
|
2019
2019
|
min-width: 530px;
|
|
2020
|
-
`,
|
|
2020
|
+
`,Ru=_t.div`
|
|
2021
2021
|
display: flex;
|
|
2022
2022
|
flex-direction: column;
|
|
2023
2023
|
align-items: center;
|
|
2024
2024
|
gap: 16px;
|
|
2025
2025
|
padding: 24px;
|
|
2026
|
-
`,
|
|
2026
|
+
`,Lu=_t.div`
|
|
2027
2027
|
display: flex;
|
|
2028
2028
|
justify-content: center;
|
|
2029
2029
|
gap: 16px;
|
|
2030
2030
|
padding: 16px 24px;
|
|
2031
2031
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
2032
|
-
`,
|
|
2032
|
+
`,Mu=({visual:e,title:t,description:o,isOpen:n,onClose:i,onDeny:a,denyLabel:r="Deny",onApprove:s,approveLabel:l="Approve",...c})=>{const d=Rt();return ft.createElement(_u,{isOpen:n,onClose:i,...c},ft.createElement(Bu,null,ft.createElement(Ru,null,e&&ft.createElement(e,null),ft.createElement(ii,{size:oi.M,weight:500,color:d.v2.colors.white[500]},t),ft.createElement(Qa,{$alignItems:"center",$gap:4},o.split("\n").map(e=>ft.createElement(ii,{key:e,size:oi.XS,weight:400,color:d.v2.colors.silver[200]},e)))),(a||s)&&ft.createElement(Lu,null,ft.createElement(kp,{variant:bp.Secondary,label:r,onClick:()=>{a?.(),i()}}),s&&ft.createElement(kp,{variant:bp.Primary,label:l,onClick:()=>{s(),i()}}))))},Pu=({isOpen:e,onClose:t,onDeny:o,onApprove:n})=>ft.createElement(Mu,{title:"Discard changes?",description:"You have unsaved changes.\nIf you cancel now, your changes won't be saved.",isOpen:e,onClose:t,onDeny:o,denyLabel:"Keep editing",onApprove:n,approveLabel:"Discard changes"}),ju=({isOpen:e,onClose:t,onDeny:o,onApprove:n,action:i="delete",target:a})=>{const r=i.charAt(0).toUpperCase()+i.substring(1),s=a?.endsWith("s")?"these":"this";return ft.createElement(Mu,{title:`${r}${a?` ${a}`:""}?`,description:`Are you sure you want to ${i}${a?` ${s} ${a}`:""}?`,isOpen:e,onClose:t,onDeny:o,denyLabel:"Go back",onApprove:n,approveLabel:r})},Uu=434,Wu=635,Vu=_t.div`
|
|
2033
2033
|
width: ${434}px;
|
|
2034
2034
|
height: ${635}px;
|
|
2035
2035
|
display: flex;
|
|
@@ -2039,12 +2039,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
2039
2039
|
padding: 16px;
|
|
2040
2040
|
background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
|
|
2041
2041
|
position: relative;
|
|
2042
|
-
`,
|
|
2042
|
+
`,Hu=_t.div`
|
|
2043
2043
|
position: absolute;
|
|
2044
2044
|
top: 50%;
|
|
2045
2045
|
left: 50%;
|
|
2046
2046
|
transform: translate(-50%, -50%);
|
|
2047
|
-
`,
|
|
2047
|
+
`,Gu=()=>ft.createElement(Vu,null,ft.createElement(Hu,null,ft.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none"},ft.createElement("path",{opacity:"0.1",d:"M231.567 463.134C359.458 463.134 463.134 359.458 463.134 231.567C463.134 103.676 359.458 0 231.567 0C103.676 0 0 103.676 0 231.567C0 359.458 103.676 463.134 231.567 463.134Z",fill:"url(#paint0_radial_164_65835)"}),ft.createElement("defs",null,ft.createElement("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)"},ft.createElement("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),ft.createElement("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),ft.createElement("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),ft.createElement("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),ft.createElement("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),ft.createElement("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),ft.createElement("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),ft.createElement("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),ft.createElement("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"}))))),ft.createElement(Hu,null,ft.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none"},ft.createElement("path",{opacity:"0.3",d:"M215.921 431.841C335.17 431.841 431.841 335.17 431.841 215.921C431.841 96.6709 335.17 0 215.921 0C96.6709 0 0 96.6709 0 215.921C0 335.17 96.6709 431.841 215.921 431.841Z",fill:"url(#paint0_radial_164_65836)"}),ft.createElement("defs",null,ft.createElement("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)"},ft.createElement("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),ft.createElement("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),ft.createElement("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),ft.createElement("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),ft.createElement("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),ft.createElement("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),ft.createElement("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),ft.createElement("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),ft.createElement("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),ft.createElement("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),ft.createElement("stop",{offset:"1",stopColor:"#7C3BFF"}))))),ft.createElement(Hu,null,ft.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none"},ft.createElement("path",{opacity:"0.5",d:"M186.963 373.927C290.22 373.927 373.927 290.22 373.927 186.963C373.927 83.7063 290.22 0 186.963 0C83.7063 0 0 83.7063 0 186.963C0 290.22 83.7063 373.927 186.963 373.927Z",fill:"url(#paint0_radial_164_65837)"}),ft.createElement("defs",null,ft.createElement("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)"},ft.createElement("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),ft.createElement("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),ft.createElement("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),ft.createElement("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),ft.createElement("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),ft.createElement("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),ft.createElement("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),ft.createElement("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),ft.createElement("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),ft.createElement("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),ft.createElement("stop",{offset:"1",stopColor:"#7C3BFF"}))))),ft.createElement(Hu,null,ft.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none"},ft.createElement("path",{opacity:"0.7",d:"M128.193 256.387C198.992 256.387 256.387 198.992 256.387 128.193C256.387 57.3941 198.992 0 128.193 0C57.3941 0 0 57.3941 0 128.193C0 198.992 57.3941 256.387 128.193 256.387Z",fill:"url(#paint0_radial_164_65838)"}),ft.createElement("defs",null,ft.createElement("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)"},ft.createElement("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),ft.createElement("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),ft.createElement("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),ft.createElement("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),ft.createElement("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),ft.createElement("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),ft.createElement("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),ft.createElement("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),ft.createElement("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),ft.createElement("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),ft.createElement("stop",{offset:"1",stopColor:"#7C3BFF"}))))),ft.createElement(Hu,null,ft.createElement(H,{size:112}))),qu=_t.div`
|
|
2048
2048
|
width: ${({$size:e})=>e}px;
|
|
2049
2049
|
height: ${({$size:e})=>e}px;
|
|
2050
2050
|
border-radius: 100%;
|
|
@@ -2052,7 +2052,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
2052
2052
|
display: flex;
|
|
2053
2053
|
align-items: center;
|
|
2054
2054
|
justify-content: center;
|
|
2055
|
-
`,
|
|
2055
|
+
`,Ku=()=>ft.createElement(qu,{$size:74,$color:"rgba(80, 246, 232, 0.10)"},ft.createElement(qu,{$size:71,$color:"rgba(80, 246, 232, 0.20)"},ft.createElement(qu,{$size:65,$color:"rgba(80, 246, 232, 0.40)"},ft.createElement(qu,{$size:56,$color:"rgba(80, 246, 232, 0.60)"},ft.createElement(qu,{$size:39,$color:"#50F6E8"},ft.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"21",viewBox:"0 0 22 21",fill:"none"},ft.createElement("path",{fill:"#151618",d:"M9.4844 0.730003C9.99694 -0.243259 11.4076 -0.24341 11.92 0.730003L11.9685 0.831353L14.3039 6.22012L20.153 6.77755C21.3553 6.89211 21.841 8.38683 20.9358 9.18621L16.5314 13.0731L17.8091 18.8079C18.0716 19.9868 16.8005 20.9109 15.7605 20.2969L10.7017 17.3093L5.64282 20.2969C4.60289 20.9104 3.33173 19.9866 3.59427 18.8079L4.87192 13.0741L0.468608 9.18621C-0.43662 8.38693 0.0482932 6.8924 1.25029 6.77755L7.09837 6.22012L9.43588 0.831353L9.4844 0.730003ZM8.55284 7.02876C8.35287 7.48992 7.9179 7.80589 7.41751 7.85357L2.03952 8.36571L6.09027 11.941C6.46691 12.2737 6.63296 12.7852 6.5237 13.2758L5.34956 18.5459L10.0008 15.8009L10.1669 15.7179C10.5087 15.574 10.8945 15.5741 11.2364 15.7179L11.4036 15.8009L16.0538 18.5459L14.8807 13.2758C14.7714 12.7851 14.9374 12.2737 15.3141 11.941L19.3627 8.36571L13.9858 7.85357C13.4855 7.80587 13.0505 7.4899 12.8505 7.02876L10.7017 2.07342L8.55284 7.02876Z"}))))))),Yu=_t.div`
|
|
2056
2056
|
width: ${({$size:e})=>e}px;
|
|
2057
2057
|
height: ${({$size:e})=>e}px;
|
|
2058
2058
|
border-radius: 100%;
|
|
@@ -2060,9 +2060,9 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
2060
2060
|
display: flex;
|
|
2061
2061
|
align-items: center;
|
|
2062
2062
|
justify-content: center;
|
|
2063
|
-
`,
|
|
2063
|
+
`,Ju=()=>ft.createElement(Yu,{$size:126,$color:"rgba(80, 246, 232, 0.10)"},ft.createElement(Yu,{$size:121,$color:"rgba(80, 246, 232, 0.20)"},ft.createElement(Yu,{$size:111,$color:"rgba(80, 246, 232, 0.40)"},ft.createElement(Yu,{$size:95,$color:"rgba(80, 246, 232, 0.60)"},ft.createElement(Yu,{$size:67,$color:"#50F6E8"},ft.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"46",height:"46",viewBox:"0 0 46 46",fill:"none"},ft.createElement("path",{fill:"#151618",d:"M36.0211 22.2763C36.0211 19.9012 36.0207 18.1909 35.9286 16.8405C35.8373 15.5029 35.6613 14.6218 35.3602 13.8949C34.4783 11.766 32.7865 10.0742 30.6576 9.19229C29.9307 8.89119 29.0496 8.71517 27.712 8.6239C26.3615 8.53176 24.6513 8.53133 22.2762 8.53133C19.9011 8.53133 18.1909 8.53176 16.8404 8.6239C15.5028 8.71517 14.6218 8.89119 13.8948 9.19229C11.7659 10.0742 10.0741 11.766 9.19223 13.8949C8.89113 14.6218 8.71512 15.5029 8.62385 16.8405C8.53171 18.1909 8.53128 19.9012 8.53128 22.2763C8.53128 24.6513 8.53171 26.3616 8.62385 27.712C8.71512 29.0496 8.89113 29.9307 9.19223 30.6576C10.0741 32.7865 11.7659 34.4783 13.8948 35.3602C14.6218 35.6613 15.5028 35.8373 16.8404 35.9286C18.1909 36.0207 19.9011 36.0212 22.2762 36.0212C24.6513 36.0212 26.3615 36.0207 27.712 35.9286C29.0496 35.8373 29.9306 35.6613 30.6576 35.3602C32.7865 34.4783 34.4783 32.7865 35.3602 30.6576C35.6613 29.9307 35.8373 29.0496 35.9286 27.712C36.0207 26.3616 36.0211 24.6513 36.0211 22.2763ZM28.8543 16.2147C29.4095 15.66 30.3097 15.66 30.8649 16.2147C31.4201 16.7699 31.4198 17.67 30.8649 18.2254L20.7543 28.3378C20.1992 28.8929 19.299 28.8925 18.7437 28.3378L14.5299 24.124C13.9747 23.5687 13.9746 22.6686 14.5299 22.1133C15.0851 21.5582 15.9852 21.5582 16.5405 22.1133L19.7472 25.32L28.8543 16.2147ZM38.8649 22.2763C38.8649 24.612 38.8651 26.435 38.7649 27.9046C38.6638 29.387 38.4559 30.6151 37.9873 31.7463C36.8168 34.5717 34.5716 36.8169 31.7462 37.9874C30.615 38.4559 29.387 38.6638 27.9045 38.765C26.435 38.8652 24.6119 38.865 22.2762 38.865C19.9405 38.865 18.1174 38.8652 16.6479 38.765C15.1654 38.6638 13.9374 38.4559 12.8062 37.9874C9.98077 36.8169 7.7356 34.5717 6.56507 31.7463C6.09651 30.6151 5.88862 29.387 5.78748 27.9046C5.68726 26.435 5.6875 24.612 5.6875 22.2763C5.6875 19.9405 5.68726 18.1175 5.78748 16.6479C5.88862 15.1655 6.09651 13.9375 6.56507 12.8063C7.7356 9.98082 9.98077 7.73565 12.8062 6.56513C13.9374 6.09656 15.1654 5.88868 16.6479 5.78753C18.1174 5.68731 19.9405 5.68755 22.2762 5.68755C24.6119 5.68755 26.435 5.68731 27.9045 5.78753C29.387 5.88868 30.615 6.09656 31.7462 6.56513C34.5716 7.73565 36.8168 9.98082 37.9873 12.8063C38.4559 13.9375 38.6638 15.1655 38.7649 16.6479C38.8651 18.1175 38.8649 19.9405 38.8649 22.2763Z"}))))))),Xu=({minSupportedVersion:e,currentVersion:t})=>ft.createElement(Mu,{isOpen:!0,onClose:()=>{},relativeToParent:!0,visual:Ku,title:"Upgrade Required",description:`To use this feature, please upgrade to Odigos v${e} or later.\nCurrent version: ${t}.`}),Zu=_t.div`
|
|
2064
2064
|
padding: 0 12px;
|
|
2065
|
-
`,
|
|
2065
|
+
`,Qu=({yaml:e})=>{const{clickCopy:t,isCopied:o}=Oa(),n=yt(()=>[{id:sn(),type:Jp.Button,buttonProps:{leftIcon:o?qe:Ke,onClick:()=>t(e||""),disabled:o,size:yp.S,variant:bp.Secondary}}],[e,o]);return ft.createElement(tu,{richTitle:{icon:mt,title:"YAML"},actions:n},ft.createElement(Zu,null,e?ft.createElement(as,{code:e,language:"yaml",theme:"duotoneDark"}):ft.createElement(er,null,ft.createElement(el,{title:"No YAML found",subTitle:"The YAML for this resource is not available"}))))},eh=_t.div`
|
|
2066
2066
|
display: flex;
|
|
2067
2067
|
align-items: center;
|
|
2068
2068
|
justify-content: space-between;
|
|
@@ -2070,18 +2070,18 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
2070
2070
|
|
|
2071
2071
|
padding: 18px 16px;
|
|
2072
2072
|
border-radius: 18px;
|
|
2073
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]+
|
|
2073
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]+Ui.opacity.hex["095"]};
|
|
2074
2074
|
box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
|
|
2075
2075
|
|
|
2076
2076
|
position: fixed;
|
|
2077
2077
|
bottom: 0;
|
|
2078
2078
|
left: 50%;
|
|
2079
|
-
animation-name: ${
|
|
2080
|
-
`,
|
|
2079
|
+
animation-name: ${Ui.animations.slide.in.center};
|
|
2080
|
+
`,th=({isOpen:e,onClose:t,richTitle:o,actions:n})=>e?ft.createElement(eh,null,ft.createElement(Zp,{...o}),ft.createElement(Xp,{onAnyClick:t,actions:n})):null,oh=_t.div`
|
|
2081
2081
|
border-radius: 100%;
|
|
2082
2082
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
2083
2083
|
position: relative;
|
|
2084
|
-
`,
|
|
2084
|
+
`,nh=_t.div`
|
|
2085
2085
|
width: 80px;
|
|
2086
2086
|
height: 80px;
|
|
2087
2087
|
border-radius: 100%;
|
|
@@ -2095,25 +2095,25 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
2095
2095
|
transform: rotate(360deg);
|
|
2096
2096
|
}
|
|
2097
2097
|
}
|
|
2098
|
-
`,
|
|
2098
|
+
`,ih=_t(ii)`
|
|
2099
2099
|
position: absolute;
|
|
2100
2100
|
top: 50%;
|
|
2101
2101
|
left: 50%;
|
|
2102
2102
|
transform: translate(-50%, -50%);
|
|
2103
|
-
`,
|
|
2103
|
+
`,ah=({percentage:e})=>ft.createElement(oh,null,ft.createElement(nh,null),"number"==typeof e?ft.createElement(ih,{size:oi.M,weight:500},`${e}%`):null),rh={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 sh(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);const n=(e.match(/[^0-9]*$/)||"").toString();return rh[n]?{value:t,unit:n}:{value:t,unit:"px"}}function lh(e){const t=sh(e);return`${t.value}${t.unit}`}const ch=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const o=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return o&&o.insertRule(n,0),e})(),dh=({loading:e=!0,color:t,scale:o=1,speedMultiplier:n=1,cssOverride:i={},style:a={},...r})=>{const s=Rt(),l=t||s.text.secondary;if(!e)return null;const{value:c}=sh(2),d=c+4.2,p=d/2+d/5.5,u=4*d*o,h={position:"relative",width:`${u}px`,height:`${u}px`,scale:o,...a,...i},m=(e,t)=>({position:"absolute",width:lh(1.5),height:lh(4),borderRadius:lh(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${ch} ${1.2/n}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return ft.createElement("span",{style:h,...r},ft.createElement("span",{style:{...m(1,0),top:`calc(50% + ${d}px)`,left:"50%"}}),ft.createElement("span",{style:{...m(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),ft.createElement("span",{style:{...m(3,90),top:"50%",left:`calc(50% + ${d}px)`}}),ft.createElement("span",{style:{...m(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),ft.createElement("span",{style:{...m(5,0),top:`calc(50% + ${-1*d}px)`,left:"50%"}}),ft.createElement("span",{style:{...m(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),ft.createElement("span",{style:{...m(7,90),top:"50%",left:`calc(50% + ${-1*d}px)`}}),ft.createElement("span",{style:{...m(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}}))},ph=Mt`
|
|
2104
2104
|
0% {
|
|
2105
2105
|
background-position: 0% 50%;
|
|
2106
2106
|
}
|
|
2107
2107
|
100% {
|
|
2108
2108
|
background-position: 100% 50%;
|
|
2109
2109
|
}
|
|
2110
|
-
`,
|
|
2110
|
+
`,uh=_t(ii)`
|
|
2111
2111
|
background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
2112
2112
|
background-size: 250% 100%; /* Expand background to allow movement */
|
|
2113
2113
|
background-clip: text;
|
|
2114
2114
|
color: transparent;
|
|
2115
|
-
animation: ${
|
|
2116
|
-
`,
|
|
2115
|
+
animation: ${ph} 1s reverse linear infinite;
|
|
2116
|
+
`,hh=({icon:e,title:t,titleColor:o,titleSize:n=oi.S,subTitle:i,subTitleColor:a,subTitleSize:r=oi.XXXS,withGradient:s,gradientColor:l,withSpinner:c,prettySpinner:d,percentage:p})=>{const u=Ui.useTheme(),h=o||u.v2.colors.white[500],m=a||u.v2.colors.silver[200],g=l||u.v2.colors.black[500],$=ft.createElement(Za,{$gap:4},e&&ft.createElement(e,null),s?ft.createElement(uh,{align:"center",size:n,$titleColor:h,$gradientColor:g},t):ft.createElement(ii,{align:"center",size:n,color:h},t));return c?ft.createElement(Qa,{$gap:16,$alignItems:"center"},c?d?ft.createElement(ah,{percentage:p}):ft.createElement(dh,{scale:2}):null,ft.createElement(Qa,{$gap:8,$alignItems:"center"},$,i?ft.createElement(ii,{align:"center",size:r,color:m},i):null)):$},mh=_t.aside`
|
|
2117
2117
|
display: flex;
|
|
2118
2118
|
flex-direction: column;
|
|
2119
2119
|
gap: 8px;
|
|
@@ -2122,7 +2122,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
2122
2122
|
padding: 16px 12px;
|
|
2123
2123
|
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
2124
2124
|
overflow-y: auto;
|
|
2125
|
-
`,
|
|
2125
|
+
`,gh=({height:e,icons:t})=>ft.createElement(mh,{$height:e},t.map(({id:e,selected:t,icon:o,onClick:n})=>ft.createElement(kp,{key:e,label:"",leftIcon:o,iconSize:24,onClick:n,variant:t?bp.Primary:bp.Text}))),$h=_t.div`
|
|
2126
2126
|
display: flex;
|
|
2127
2127
|
align-items: center;
|
|
2128
2128
|
gap: 10px;
|
|
@@ -2131,60 +2131,60 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
2131
2131
|
`}
|
|
2132
2132
|
padding: 4px 12px 4px 4px;
|
|
2133
2133
|
border-radius: 8px;
|
|
2134
|
-
background-color: ${({theme:e,$status:t})=>
|
|
2135
|
-
`,
|
|
2134
|
+
background-color: ${({theme:e,$status:t})=>Sn(e,t,[Co.Info].includes(t)?"1000":"900")};
|
|
2135
|
+
`,xh=_t.div`
|
|
2136
2136
|
width: 32px;
|
|
2137
2137
|
height: 32px;
|
|
2138
2138
|
display: flex;
|
|
2139
2139
|
align-items: center;
|
|
2140
2140
|
justify-content: center;
|
|
2141
2141
|
border-radius: 6px;
|
|
2142
|
-
background-color: ${({theme:e,$status:t})=>
|
|
2143
|
-
`,
|
|
2142
|
+
background-color: ${({theme:e,$status:t})=>Sn(e,t,[Co.Info].includes(t)?"900":"800")};
|
|
2143
|
+
`,fh=_t.div`
|
|
2144
2144
|
margin-left: auto;
|
|
2145
2145
|
margin-right: 8px;
|
|
2146
2146
|
cursor: pointer;
|
|
2147
2147
|
&:hover {
|
|
2148
2148
|
transform: scale(1.2);
|
|
2149
2149
|
}
|
|
2150
|
-
`,
|
|
2150
|
+
`,bh=({status:e,message:t,action:o,fullWidth:n})=>{const i=Ui.useTheme(),a=Dn(e,i),r=Sn(i,e,e===Co.Default?"300":e===Co.Info?"400":"500");return ft.createElement($h,{$status:e,$fullWidth:n},ft.createElement("div",null,ft.createElement(xh,{$status:e},ft.createElement(a,{size:24}))),ft.createElement(ii,{color:r,size:oi.XXXS,weight:400},t),o&&ft.createElement(fh,{onClick:o.onClick},ft.createElement(ii,{color:r,size:oi.XXS,weight:500,underline:!0},o.label)))};var yh;!function(e){e.S="small",e.L="large"}(yh||(yh={}));const wh=_t.div`
|
|
2151
2151
|
width: fit-content;
|
|
2152
2152
|
display: flex;
|
|
2153
2153
|
align-items: center;
|
|
2154
2154
|
gap: 8px;
|
|
2155
2155
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
2156
|
-
`,
|
|
2157
|
-
width: ${({$size:e})=>e
|
|
2158
|
-
height: ${({$size:e})=>e
|
|
2156
|
+
`,kh=_t.div`
|
|
2157
|
+
width: ${({$size:e})=>e===yh.S?"16px":"20px"};
|
|
2158
|
+
height: ${({$size:e})=>e===yh.S?"16px":"20px"};
|
|
2159
2159
|
display: flex;
|
|
2160
2160
|
align-items: center;
|
|
2161
2161
|
justify-content: center;
|
|
2162
2162
|
border-radius: 100%;
|
|
2163
2163
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
2164
2164
|
background-color: ${({$backgroundColor:e})=>e};
|
|
2165
|
-
`,
|
|
2165
|
+
`,vh=({label:e,value:t,onChange:o,disabled:n,size:i=yh.L})=>{const a=Ui.useTheme(),[r,s]=wt(!1),l=t,c=i===yh.S?6:8,d=n?a.v2.colors.grey[400]:a.v2.colors.white[500],p=l?"transparent":n?a.v2.colors.grey[700]:r?a.v2.colors.silver[400]:a.v2.colors.silver[600],u=n?a.v2.colors.grey[600]:l?a.v2.colors.purple[500]:a.v2.colors.silver[900];return ft.createElement(wh,{"data-id":"radio"+(e?`-${e}`:""),onClick:e=>{e.stopPropagation(),n||o(!t)},$disabled:n,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},ft.createElement(kh,{$size:i,$borderColor:p,$backgroundColor:u},t?ft.createElement(gt,{size:c,fill:d}):null),e&&ft.createElement(ii,{size:i===yh.S?oi.XXS:oi.XS},e))},Ch=_t.div`
|
|
2166
2166
|
display: flex;
|
|
2167
2167
|
flex-direction: ${({$flexDirection:e})=>e};
|
|
2168
2168
|
gap: ${({$gap:e})=>e}px;
|
|
2169
|
-
`,
|
|
2169
|
+
`,Eh=({label:e,direction:t,disabled:o,size:n,options:i,values:a,setValues:r})=>ft.createElement(Ch,{$flexDirection:t===ho.Horizontal?"row":"column",$gap:t===ho.Horizontal?16:8},e&&ft.createElement(ii,null,e),i.map(t=>ft.createElement(vh,{key:`${e}-radio-${t.id}`,...t,value:a[t.id],onChange:e=>{return o=t.id,n=e,void r(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[o]=n,t});var o,n},disabled:o,size:n})));var Sh;!function(e){e.Data="data",e.Pretty="pretty"}(Sh||(Sh={}));const Ah=_t.div`
|
|
2170
2170
|
// max-height: ${({$maxHeight:e})=>e};
|
|
2171
2171
|
height: ${({$maxHeight:e})=>e};
|
|
2172
2172
|
width: 100%;
|
|
2173
2173
|
overflow: auto;
|
|
2174
|
-
`,
|
|
2174
|
+
`,Dh=_t.table`
|
|
2175
2175
|
width: 100%;
|
|
2176
2176
|
|
|
2177
|
-
${({$variant:e})=>{switch(e){case
|
|
2177
|
+
${({$variant:e})=>{switch(e){case Sh.Data:return Bt`
|
|
2178
2178
|
border-collapse: collapse;
|
|
2179
|
-
`;case
|
|
2179
|
+
`;case Sh.Pretty:return Bt`
|
|
2180
2180
|
border-collapse: separate;
|
|
2181
2181
|
border-spacing: 0 8px;
|
|
2182
2182
|
`;default:return""}}}
|
|
2183
|
-
`,
|
|
2183
|
+
`,Th=_t.thead`
|
|
2184
2184
|
position: sticky;
|
|
2185
2185
|
top: 0;
|
|
2186
2186
|
z-index: 1;
|
|
2187
|
-
`,
|
|
2187
|
+
`,zh=_t.th`
|
|
2188
2188
|
position: relative;
|
|
2189
2189
|
min-width: ${({$minWidth:e})=>e||"auto"};
|
|
2190
2190
|
padding: 18px 24px;
|
|
@@ -2193,12 +2193,12 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
2193
2193
|
|
|
2194
2194
|
${({$variant:e,$backgroundColor:t})=>{if(t)return Bt`
|
|
2195
2195
|
background-color: ${t};
|
|
2196
|
-
`;switch(e){case
|
|
2196
|
+
`;switch(e){case Sh.Data:return Bt`
|
|
2197
2197
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
2198
|
-
`;case
|
|
2198
|
+
`;case Sh.Pretty:return Bt`
|
|
2199
2199
|
background-color: transparent;
|
|
2200
2200
|
`;default:return""}}}
|
|
2201
|
-
`,
|
|
2201
|
+
`,Fh=_t.div`
|
|
2202
2202
|
position: absolute;
|
|
2203
2203
|
top: 50%;
|
|
2204
2204
|
right: 0;
|
|
@@ -2206,30 +2206,30 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
2206
2206
|
width: 1px;
|
|
2207
2207
|
height: 18px;
|
|
2208
2208
|
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
2209
|
-
`,
|
|
2209
|
+
`,Oh=_t.tbody``,Ih=_t.td`
|
|
2210
2210
|
position: relative;
|
|
2211
2211
|
padding: 18px 24px;
|
|
2212
2212
|
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
2213
2213
|
|
|
2214
|
-
${({$variant:e,$selected:t,$hovered:o,$isLastRow:n,$isFirstCell:i,$isLastCell:a})=>{switch(e){case
|
|
2214
|
+
${({$variant:e,$selected:t,$hovered:o,$isLastRow:n,$isFirstCell:i,$isLastCell:a})=>{switch(e){case Sh.Data:return Bt`
|
|
2215
2215
|
border: ${({theme:e})=>n?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
2216
2216
|
border-left: none;
|
|
2217
2217
|
border-right: none;
|
|
2218
2218
|
border-radius: ${n?i?"0 0 0 4px":a?"0 0 4px 0":"0":"0"};
|
|
2219
2219
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
2220
|
-
`;case
|
|
2220
|
+
`;case Sh.Pretty:return Bt`
|
|
2221
2221
|
border: none;
|
|
2222
2222
|
border-radius: ${i?"12px 0 0 12px":a?"0 12px 12px 0":"0"};
|
|
2223
2223
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
2224
2224
|
`;default:return""}}}
|
|
2225
|
-
`,
|
|
2225
|
+
`,Nh=_t.div`
|
|
2226
2226
|
width: 100%;
|
|
2227
2227
|
display: flex;
|
|
2228
2228
|
align-items: center;
|
|
2229
2229
|
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
2230
2230
|
gap: 4px;
|
|
2231
2231
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
2232
|
-
`,
|
|
2232
|
+
`,_h=({variant:e,columns:t,rows:o,getRowActions:n,rowActionsPushRightPosition:i,withCheckboxes:a})=>{const[r,s]=wt(null);return ft.createElement(ft.Fragment,null,o.map((l,c)=>{const{cells:d,onClick:p,isSelected:u=!1,onSelect:h,onDeselect:m,hideCheckbox:g}=l,$=r===c,x=n(l),f=(e,t)=>({$isLastRow:c===o.length-1,$isFirstCell:e,$isLastCell:t,$selected:u,$withClick:!!p,onClick:()=>p?.(),$hovered:!!p&&$,onMouseEnter:()=>s(c),onMouseLeave:()=>s(null)});return ft.createElement("tr",{key:`row-${c}`},a&&ft.createElement(Ih,{key:"checkbox-column",$variant:e,...f(!0,!1)},!g&&ft.createElement(jp,{value:u,onChange:()=>u?m?.():h?.()})),t.map(({key:o,textAlign:n},r)=>{const s=d.find(e=>e.key===o),l=0===r&&!a,p=r===t.length-1;return ft.createElement(Ih,{key:`row-${c}-cell-${r}`,$variant:e,...f(l,p)},s?.component?ft.createElement(Za,{$justifyContent:"right"===n?"flex-end":"flex-start"},ft.createElement(s.component,null)):ft.createElement(ii,{size:oi.XS,align:n},s?.rawValue||"-"),x.length?ft.createElement(Eu,{isOpen:$&&p,actions:x,positionRight:i}):null)}))}))},Bh=({columnKey:e,sortDirection:t,sortByKey:o,onSort:n})=>{const i=Rt(),a=o===e?i.v2.colors.white[500]:i.v2.colors.grey[400],r=t===mo.Ascending?0:180;return ft.createElement(Fa,{icon:e=>ft.createElement(dt,{fill:a,rotate:r,...e}),onClick:()=>n(e)})},Rh=({columnKey:e,filters:t,onFilter:o,rowsUnfiltered:n})=>{const i=Rt(),a=t[e]?.length?i.v2.colors.white[500]:i.v2.colors.grey[400],r=yt(()=>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 ft.createElement(Yp,{items:r,withMultiSelect:!0,selectedIds:t[e]?.map(e=>e.toString())??[],setSelectedIds:t=>o(e,t),defaultOpen:!1,iconButtonProps:{icon:e=>ft.createElement($t,{fill:a,...e})}})},Lh=({variant:e,backgroundColor:t,columns:o,rowsUnfiltered:n,sortDirection:i,sortByKey:a,onSort:r,filters:s,onFilter:l,withCheckboxes:c,partiallySelected:d,allSelected:p,onSelectAll:u})=>ft.createElement("tr",null,c&&ft.createElement(zh,{key:"checkbox-column",$variant:e,$backgroundColor:t,$minWidth:24,$isFirst:!0,$isLast:!1},ft.createElement(jp,{partiallyChecked:d&&!p,value:p||!1,onChange:u})),o.map(({key:d,label:p,minWidth:u,textAlign:h},m)=>{const g=0===m&&!c,$=m===o.length-1;return ft.createElement(zh,{key:`column-${d}`,$variant:e,$backgroundColor:t,$minWidth:u,$isFirst:g,$isLast:$},ft.createElement(Nh,{$textAlign:h},ft.createElement(ii,{size:oi.XS,align:h},p),ft.createElement(Bh,{columnKey:d,sortDirection:i,sortByKey:a,onSort:r}),ft.createElement(Rh,{columnKey:d,filters:s,onFilter:l,rowsUnfiltered:n})),!$&&e===Sh.Data&&ft.createElement(Fh,null))})),Mh=({variant:e,maxHeight:t="unset",headerBackgroundColor:o,isLoading:n,columns:i,rows:a,getRowActions:r,rowActionsPushRightPosition:s,withCheckboxes:l})=>{const[c,d]=wt(mo.Ascending),[p,u]=wt(""),[h,m]=wt({}),g=St(e=>{u(e),d(e=>e===mo.Ascending?mo.Descending:mo.Ascending)},[]),$=St((e,t)=>{m(o=>({...o,[e]:t}))},[]),x=yt(()=>{const e=(e,t)=>{const o=e.cells.find(e=>e.key===t);return o&&(o.rawValue?.toString()||o.component?.({})?.props?.children?.toString())||""};return(p?[...a].sort((t,o)=>{const n=e(t,p),i=e(o,p);return(c===mo.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(n,i)}):a).filter(t=>{for(const[o,n]of Object.entries(h))if(n.length&&!n.includes(e(t,o)))return!1;return!0})},[a,p,c,h]),{partiallySelected:f,allSelected:b}=yt(()=>{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 ft.createElement(Ah,{$maxHeight:t},ft.createElement(Dh,{$variant:e},ft.createElement(Th,null,ft.createElement(Lh,{variant:e,backgroundColor:o,columns:i,rowsUnfiltered:a,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?.())}})),ft.createElement(Oh,null,ft.createElement(_h,{variant:e,columns:i,rows:x,getRowActions:r||(()=>[]),rowActionsPushRightPosition:s,withCheckboxes:l}))),!x.length&&ft.createElement(er,{style:{marginTop:"0.5rem"}},n?ft.createElement(ps,{scale:1.2}):ft.createElement(el,null)))},Ph=_t.div`
|
|
2233
2233
|
display: flex;
|
|
2234
2234
|
align-items: center;
|
|
2235
2235
|
justify-content: center;
|
|
@@ -2252,11 +2252,11 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
2252
2252
|
`:Bt`
|
|
2253
2253
|
background-color: ${({theme:e})=>e.v2.colors.silver[300]};
|
|
2254
2254
|
`}
|
|
2255
|
-
`,
|
|
2255
|
+
`,jh=({label:e,leftIcon:t,rightIcon:o,onClick:n,disabled:i})=>{const a=Ui.useTheme(),r=i?a.v2.colors.grey[400]:a.v2.colors.white[500];return ft.createElement(Ph,{$disabled:i,$withClick:!!n,onClick:()=>!i&&n?.()},t&&ft.createElement(t,{fill:r,size:16}),ft.createElement(ii,{color:r,size:oi.XS,nowrap:!0},e),o&&ft.createElement(o,{fill:r,size:16}))};var Uh,Wh,Vh;!function(e){e.Default="default",e.SuccessError="successError"}(Uh||(Uh={})),function(e){e.S="small",e.L="large"}(Wh||(Wh={})),function(e){e.Left="left",e.Right="right"}(Vh||(Vh={}));const Hh=_t.div`
|
|
2256
2256
|
display: flex;
|
|
2257
2257
|
align-items: center;
|
|
2258
2258
|
gap: ${({$gap:e})=>e}px;
|
|
2259
|
-
`,
|
|
2259
|
+
`,Gh=_t.div`
|
|
2260
2260
|
position: relative;
|
|
2261
2261
|
display: flex;
|
|
2262
2262
|
align-items: center;
|
|
@@ -2266,10 +2266,10 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
2266
2266
|
height: ${({$size:e})=>e}px;
|
|
2267
2267
|
padding: ${4}px;
|
|
2268
2268
|
border-radius: ${({$size:e})=>2*e}px;
|
|
2269
|
-
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:o,$variant:n,$value:i,theme:a})=>{if(e)return a.v2.colors.grey[800];if(t&&i)return t;if(o&&!i)return o;switch(n){case
|
|
2269
|
+
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:o,$variant:n,$value:i,theme:a})=>{if(e)return a.v2.colors.grey[800];if(t&&i)return t;if(o&&!i)return o;switch(n){case Uh.SuccessError:return i?a.v2.colors.green[500]:a.v2.colors.red[500];case Uh.Default:default:return i?a.v2.colors.purple[500]:a.v2.colors.grey[400]}}};
|
|
2270
2270
|
|
|
2271
2271
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
2272
|
-
`,
|
|
2272
|
+
`,qh=_t.div`
|
|
2273
2273
|
position: absolute;
|
|
2274
2274
|
top: 50%;
|
|
2275
2275
|
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
@@ -2279,8 +2279,8 @@ import{SamplerIcon as e,PiiMaskingIcon as t,RenameAttributeIcon as o,DeleteAttri
|
|
|
2279
2279
|
border-radius: 100%;
|
|
2280
2280
|
background-color: ${({$color:e})=>e};
|
|
2281
2281
|
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)"};
|
|
2282
|
-
`,
|
|
2282
|
+
`,Kh=({variant:e=Uh.Default,size:t=Wh.L,label:o,labelAlign:n=Vh.Left,tooltip:i,value:a,onChange:r,disabled:s,withIcon:l,onIcon:c=qe,offIcon:d=Ye,onBgColor:p,offBgColor:u})=>{const h=Rt(),m=s?h.v2.colors.grey[400]:h.v2.colors.white[500],g=t===Wh.S?10:16,$=t===Wh.S?oi.XXXS:oi.S,x=t===Wh.S?8:12;return ft.createElement(Hh,{$gap:x},o&&n===Vh.Left&&ft.createElement(ii,{size:$,nowrap:!0},o),ft.createElement(Gh,{$onBgColor:p,$offBgColor:u,$variant:e,$size:g,$value:a,$disabled:s,onClick:e=>{e.stopPropagation(),s||r(!a)}},ft.createElement(qh,{$color:m,$size:g,$value:a,$disabled:s}),l&&ft.createElement(ft.Fragment,null,ft.createElement(c,{size:g,fill:m}),ft.createElement(d,{size:g,fill:m}))),o&&n===Vh.Right&&ft.createElement(ii,{size:$,nowrap:!0},o),i&&ft.createElement(Er,{text:i,withIcon:!0}))},Yh=_t.div`
|
|
2283
2283
|
display: flex;
|
|
2284
2284
|
flex-direction: ${({$direction:e})=>e===ho.Horizontal?"row":"column"};
|
|
2285
2285
|
gap: ${({$direction:e})=>e===ho.Horizontal?16:8}px;
|
|
2286
|
-
`,
|
|
2286
|
+
`,Jh=({direction:e=ho.Vertical,title:t,size:o,disabled:n,options:i,values:a,setValues:r})=>{const s=o===Wh.S?oi.XS:oi.S;return ft.createElement(Yh,{$direction:e},t&&ft.createElement(ii,{size:s},t),i.map(e=>ft.createElement(Kh,{key:`${t}-toggle-${e.id}`,...e,labelAlign:Vh.Right,value:a[e.id],onChange:t=>{return o=e.id,n=t,void r(e=>{const t={...e};return o?t[o]=n:i.forEach(e=>t[e.id]=n),t});var o,n},disabled:n,size:o})))};export{Xa as $,Jp as A,ri as B,jp as C,Xo as D,yo as E,Qa as F,Vp as G,An as H,th as I,zp as J,Fa as K,hh as L,uu as M,el as N,Ao as O,Ci as P,Ui as Q,Zp as R,Co as S,ii as T,Np as U,Xp as V,iu as W,su as X,Qu as Y,Po as Z,Sa as _,Za as a,Zn as a$,Xu as a0,en as a1,ic as a2,ao as a3,so as a4,ro as a5,$l as a6,Yr as a7,Ji as a8,vl as a9,bo as aA,ki as aB,gr as aC,Dd as aD,nr as aE,Rr as aF,Qo as aG,da as aH,xr as aI,cn as aJ,Cs as aK,So as aL,Wn as aM,Dn as aN,wi as aO,to as aP,Ns as aQ,$n as aR,Ms as aS,ir as aT,ar as aU,ed as aV,mn as aW,rr as aX,nc as aY,fp as aZ,ha as a_,vo as aa,_n as ab,ud as ac,gp as ad,bd as ae,ld as af,ko as ag,Ud as ah,Ld as ai,Cc as aj,Ed as ak,up as al,qi as am,fi as an,Ma as ao,tn as ap,Hc as aq,kc as ar,Gr as as,bi as at,ya as au,gn as av,li as aw,ln as ax,ys as ay,$c as az,oi as b,To as b$,xa as b0,Di as b1,Hs as b2,Hn as b3,an as b4,Od as b5,fn as b6,hn as b7,un as b8,No as b9,Vn as bA,Qt as bB,On as bC,Vo as bD,_a as bE,In as bF,Jt as bG,Gn as bH,ci as bI,Ko as bJ,ap as bK,cc as bL,yn as bM,Ro as bN,Go as bO,Lo as bP,qo as bQ,Bo as bR,Mo as bS,_o as bT,lp as bU,pn as bV,vi as bW,La as bX,di as bY,Fn as bZ,va as b_,Xd as ba,Aa as bb,Da as bc,Jo as bd,on as be,oo as bf,no as bg,ka as bh,ja as bi,kr as bj,Hd as bk,tr as bl,Pa as bm,Un as bn,Dl as bo,ui as bp,pi as bq,Zo as br,Ua as bs,Ia as bt,Fi as bu,Dr as bv,hs as bw,Es as bx,Ts as by,wo as bz,Er as c,Jn as c$,ul as c0,kd as c1,Ds as c2,nd as c3,Tn as c4,Nn as c5,As as c6,Xs as c7,Qs as c8,Eu as c9,ho as cA,co as cB,$o as cC,Wo as cD,Uo as cE,jo as cF,Do as cG,Yo as cH,Ho as cI,mo as cJ,lo as cK,go as cL,Xt as cM,nn as cN,xn as cO,bn as cP,wn as cQ,kn as cR,vn as cS,En as cT,Sn as cU,zn as cV,Bn as cW,Mn as cX,jn as cY,qn as cZ,Yn as c_,Ln as ca,Kn as cb,Va as cc,Io as cd,fo as ce,Vl as cf,Ka as cg,Rs as ch,dn as ci,Rn as cj,Oa as ck,Ta as cl,Pl as cm,gi as cn,rn as co,Zr as cp,Cn as cq,Fs as cr,io as cs,Fo as ct,po as cu,Oo as cv,zo as cw,xo as cx,Eo as cy,uo as cz,Kh as d,Xn as d0,Qn as d1,ei as d2,hi as d3,mi as d4,si as d5,Ea as d6,wa as d7,Ba as d8,ll as d9,vu as dA,Fu as dB,_u as dC,gh as dD,vh as dE,Eh as dF,yh as dG,Qp as dH,Fp as dI,jh as dJ,Vh as dK,Jh as dL,Uh as dM,Mu as dN,ol as da,as as db,wc as dc,jc as dd,_c as de,qc as df,Zc as dg,Os as dh,or as di,Dc as dj,Hr as dk,Vi as dl,Hi as dm,Gi as dn,Wu as dp,Uu as dq,Gu as dr,Ku as ds,Ju as dt,Sp as du,Ap as dv,Wp as dw,Lp as dx,Yp as dy,Hp as dz,Wh as e,ti as f,Ai as g,eo as h,yu as i,er as j,Rp as k,bh as l,kp as m,bp as n,Pu as o,fa as p,ps as q,Ya as r,Ja as s,tu as t,xi as u,yp as v,sn as w,Mh as x,Sh as y,ju as z};
|