@odigos/ui-kit 0.0.107 → 0.0.109

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.
@@ -1,1604 +0,0 @@
1
- import{SamplerIcon as e,PiiMaskingIcon as t,ImageErrorIcon as n,K8sLogo as o,AddClusterInfoIcon as i,DeleteAttributeIcon as a,RenameAttributeIcon as r,CodeAttributesIcon as s,CustomInstrumentationIcon as l,HeadersCollectionIcon as d,PayloadCollectionIcon as c,JavaLogo as p,GoLogo as u,NodejsLogo as m,PythonLogo as h,DotnetLogo as g,CSharpLogo as x,CPlusPlusLogo as f,PhpLogo as $,RubyLogo as y,RustLogo as b,SwiftLogo as w,ElixirLogo as k,MysqlLogo as v,NginxLogo as E,PostgresLogo as S,RedisLogo as C,KafkaLogo as T,AlaudaLogo as A,AlibabaCloudLogo as D,AppDynamicsLogo as N,AxiomLogo as I,BlobStorageLogo as O,BetterStackLogo as _,BonreeLogo as z,CauselyLogo as R,ChecklyLogo as F,ChronosphereLogo as L,ClickhouseLogo as P,AwsCloudwatchLogo as M,CoralogixLogo as B,Dash0Logo as j,DatadogLogo as U,OpenTelemetryLogo as W,DynatraceLogo as V,ElasticApmLogo as H,ElasticSearchLogo as q,GoogleCloudPlatformLogo as Y,GrafanaLogo as G,GreptimeLogo as K,GroundcoverLogo as J,HoneycombLogo as X,HyperDxLogo as Q,InstanaLogo as Z,JaegerLogo as ee,KloudmateLogo as te,Last9Logo as ne,LightstepLogo as oe,LogzioLogo as ie,LokiLogo as ae,LumigoLogo as re,MiddlewareLogo as se,NewRelicLogo as le,ObserveLogo as de,OdigosLogo as ce,OneUptimeLogo as pe,OpenObserveLogo as ue,OpsVerseLogo as me,OracleLogo as he,PrometheusLogo as ge,QrynLogo as xe,GigapipeLogo as fe,QuickwitLogo as $e,AwsS3Logo as ye,SeqLogo as be,SignozLogo as we,SplunkLogo as ke,SumoLogicLogo as ve,TelemetryHubLogo as Ee,TempoLogo as Se,TingyunLogo as Ce,TraceloopLogo as Te,UptraceLogo as Ae,VictoriaMetricsLogo as De,AwsXrayLogo as Ne,NamespacesIcon as Ie,SourcesIcon as Oe,DestinationsIcon as _e,ActionsIcon as ze,RulesIcon as Re,LogsIcon as Fe,MetricsIcon as Le,TracesIcon as Pe,VmLogo as Me,CheckCircledIcon as Be,ErrorTriangleIcon as je,WarningTriangleIcon as Ue,InfoIcon as We,MinusIcon as Ve,CheckIcon as He,ListIcon as qe,CodeIcon as Ye,ExtendArrowIcon as Ge,PlusIcon as Ke,CopyIcon as Je,EditIcon as Xe,EditedIcon as Qe,SortArrowsIcon as Ze,NotebookIcon as et,XIcon as tt,EyeClosedIcon as nt,EyeOpenIcon as ot,NoDataIcon as it,CrossIcon as at,SearchIcon as rt,TrashIcon as st}from"../icons.js";import{create as lt}from"zustand";import dt,{Fragment as ct,useMemo as pt,useState as ut,useEffect as mt,useRef as ht,forwardRef as gt,useCallback as xt,memo as ft}from"react";import $t from"javascript-time-ago";import{p as yt,c as bt,s as wt,e as kt}from"./vendor-1dea551d.js";import vt,{ThemeProvider as Et,keyframes as St,useTheme as Ct,css as Tt}from"styled-components";import{Handle as At,Position as Dt,getSmoothStepPath as Nt,BaseEdge as It,EdgeLabelRenderer as Ot,ReactFlow as _t,Controls as zt}from"@xyflow/react";import Rt from"react-dom";import{Highlight as Ft,themes as Lt}from"prism-react-renderer";import{ErrorBoundary as Pt}from"react-error-boundary";import Mt from"lottie-react";const Bt=lt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})}));var jt,Ut,Wt,Vt,Ht,qt,Yt,Gt,Kt,Jt,Xt,Qt,Zt,en,tn,nn,on,an,rn,sn,ln,dn,cn,pn,un,mn,hn,gn,xn,fn,$n,yn,bn,wn,kn;!function(e){e.Attributes="attributes",e.Samplers="samplers"}(jt||(jt={})),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"}(Ut||(Ut={})),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"}(Wt||(Wt={})),function(e){e.Pod="pod",e.Namespace="namespace"}(Vt||(Vt={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(Ht||(Ht={})),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"}(qt||(qt={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(Yt||(Yt={})),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"}(Gt||(Gt={})),function(e){e.Community="community",e.Cloud="cloud",e.Onprem="onprem"}(Kt||(Kt={})),function(e){e.K8s="k8s",e.Vm="vm"}(Jt||(Jt={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Xt||(Xt={})),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"}(Qt||(Qt={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Zt||(Zt={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule"}(en||(en={})),function(e){e.DataStream="DataStream"}(tn||(tn={})),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"}(nn||(nn={})),function(e){e.Text="text",e.Password="password",e.Number="number"}(on||(on={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(an||(an={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(rn||(rn={})),function(e){e.Loading="loading",e.Disabled="disabled"}(sn||(sn={})),function(e){e.Ascending="asc",e.Descending="desc"}(ln||(ln={})),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"}(dn||(dn={})),function(e){e.VirtualDevice="VirtualDevice",e.HostPath="HostPath",e.InitContainer="InitContainer"}(cn||(cn={})),function(e){e.Loader="loader",e.PodManifest="pod-manifest",e.LoaderFallbackToPodManifest="loader-fallback-to-pod-manifest"}(pn||(pn={})),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"}(un||(un={})),function(e){e.Labeled="labeled"}(mn||(mn={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(hn||(hn={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",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.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.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"}(gn||(gn={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(xn||(xn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(fn||(fn={})),function(e){e.HeaderKeys="headerKeys"}($n||($n={})),function(e){e.Probes="probes"}(yn||(yn={})),function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(bn||(bn={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces"}(wn||(wn={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob"}(kn||(kn={}));const vn=s=>{const l=s?.toLowerCase(),d=l?.includes(jt.Samplers),c=l===jt.Attributes;return d?e:c?t:{[Ut.K8sAttributes]:o,[Ut.AddClusterInfo]:i,[Ut.DeleteAttributes]:a,[Ut.PiiMasking]:t,[Ut.RenameAttributes]:r,[Ut.ErrorSampler]:e,[Ut.ProbabilisticSampler]:e,[Ut.LatencySampler]:e,[Ut.ServiceNameSampler]:e,[Ut.SpanAttributeSampler]:e}[s]||n},En=[{label:"Attributes",icon:vn(jt.Attributes),items:[{type:Ut.K8sAttributes,icon:vn(Ut.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[wn.Traces,wn.Metrics,wn.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Ut.AddClusterInfo,icon:vn(Ut.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[wn.Traces,wn.Metrics,wn.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:Ut.DeleteAttributes,icon:vn(Ut.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[wn.Traces,wn.Metrics,wn.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:Ut.RenameAttributes,icon:vn(Ut.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[wn.Traces,wn.Metrics,wn.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:Ut.PiiMasking,icon:vn(Ut.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."}]},{label:"Samplers",icon:vn(jt.Samplers),items:[{type:Ut.ErrorSampler,icon:vn(jt.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Ut.LatencySampler,icon:vn(jt.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[wn.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:Ut.ProbabilisticSampler,icon:vn(jt.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Ut.ServiceNameSampler,icon:vn(jt.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[wn.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Ut.SpanAttributeSampler,icon:vn(jt.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[wn.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."}]}],Sn={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."}},Cn=e=>({[xn.CodeAttributes]:s,[xn.CustomInstrumentation]:l,[xn.HeadersCollection]:d,[xn.PayloadCollection]:c,[xn.UnknownType]:n}[e]||n),Tn=[{type:xn.CodeAttributes,icon:Cn(xn.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:[Qt.Go,Qt.Python]},{type:xn.CustomInstrumentation,icon:Cn(xn.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and method combinations.",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" Rule can be used to instrument specific class and method combinations for detailed tracing.',supportedLanguages:[Qt.Java]},{type:xn.HeadersCollection,icon:Cn(xn.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:[Qt.Go,Qt.Java]},{type:xn.PayloadCollection,icon:Cn(xn.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:[Qt.Go]}],An=[{id:wn.Logs,value:"Logs"},{id:wn.Metrics,value:"Metrics"},{id:wn.Traces,value:"Traces"}],Dn=e=>e.charAt(0).toUpperCase()+e.slice(1),Nn=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,n(o)]:[e,o]));return Object.entries(e).reduce((e,[o,i])=>{try{const a=JSON.parse(i);Array.isArray(a)?e[o]=JSON.stringify(t(a)):e[o]="object"==typeof a&&null!==a?JSON.stringify(n(a)):i}catch(a){"object"==typeof i&&null!==i?Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]=JSON.stringify(n(i)):e[o]=i}return e},{})};var In;!function(e){e.SIGNALS="SIGNALS"}(In||(In={}));const On=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,i,a]=e;if(o===In.SIGNALS)switch(i){case"INCLUDES":return t?.includes(a);case"EXCLUDES":return!t?.includes(a);default:return!0}const r=n.find(e=>e.name===o);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}},_n=e=>JSON.parse(JSON.stringify(e)),zn=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),n},Rn=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Fn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Ln=(e,t)=>{let n=[...e];return t.namespaces?.length&&(n=n.filter(({namespace:e})=>!!t.namespaces?.find(({id:t})=>t===e))),t.kinds?.length&&(n=n.filter(({kind:e})=>!!t.kinds?.find(({id:t})=>t===e))),t.languages?.length&&(n=n.filter(({containers:e})=>!!t.languages?.find(({id:t})=>!!e?.find(({language:e})=>t===e)))),t.conditions?.length&&(n=n.filter(({conditions:e})=>!!t.conditions?.find(({id:t})=>!!e?.find(({type:e,reason:n})=>t===`${e}#${n}`)))),t.onlyErrors&&(n=n.filter(e=>!!e.conditions?.find(e=>e.status===an.Error))),t.errors?.length&&(n=n.filter(e=>!!t.errors?.find(t=>!!e.conditions?.find(e=>e.message===t.id)))),n},Pn=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||t===Io&&!e.dataStreamNames.length):[],Mn=(e,t="",n={})=>{for(const o in e)if(e.hasOwnProperty(o)){const i=e[o],a=t?`${t}.${o}`:o;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const o=`${a}[${t}]`;null!==e&&"object"==typeof e?Mn(e,o,n):n[o]=e}):n[a]=i:Mn(i,a,n)}return n},Bn=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]}`},jn=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`}},Un=e=>{const t=e?.filter(({status:e})=>e===an.Error),n=e?.filter(({status:e})=>e===an.Warning),o=e?.filter(({status:e})=>e===sn.Disabled),i=e?.filter(({status:e})=>e===sn.Loading),a=t.length>0,r=n.length>0,s=o.length>0;return{errors:t,hasErrors:a,warnings:n,hasWarnings:r,disableds:o,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:a?an.Error:r?an.Warning:s?an.Info:void 0}},Wn=e=>{const t=e?.reduce((e,t)=>t.instrumented?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Vn=e=>({[Qt.Java]:p,[Qt.Go]:u,[Qt.JavaScript]:m,[Qt.Python]:h,[Qt.DotNet]:g,[Qt.CSharp]:x,[Qt.CPlusPlus]:f,[Qt.Php]:$,[Qt.Ruby]:y,[Qt.Rust]:b,[Qt.Swift]:w,[Qt.Elixir]:k,[Qt.MySql]:v,[Qt.Nginx]:E,[Qt.Postgres]:S,[Qt.Redis]:C,[Qt.Kafka]:T,[Qt.Ignored]:n,[Qt.Unknown]:n,[Qt.Processing]:n,[Qt.NoContainers]:n,[Qt.NoRunningPods]:n}[e]||n),Hn=e=>e?.map(({language:e})=>Vn(e))||[],qn=(e,t)=>{const n={[gn.Alauda]:A,[gn.AlibabaCloud]:D,[gn.AppDynamics]:N,[gn.Axiom]:I,[gn.AzureBlob]:O,[gn.BetterStack]:_,[gn.Bonree]:z,[gn.Causely]:R,[gn.Checkly]:F,[gn.Chronosphere]:L,[gn.ClickHouse]:P,[gn.CloudWatch]:M,[gn.Coralogix]:B,[gn.Dash0]:j,[gn.Datadog]:U,[gn.Dynamic]:W,[gn.Dynatrace]:V,[gn.ElasticApm]:H,[gn.ElasticSearch]:q,[gn.GoogleCloud]:Y,[gn.GrafanaCloudLoki]:G,[gn.GrafanaCloudPrometheus]:G,[gn.GrafanaCloudTempo]:G,[gn.Greptime]:K,[gn.Groundcover]:J,[gn.Honeycomb]:X,[gn.HyperDX]:Q,[gn.Instana]:Z,[gn.Jaeger]:ee,[gn.Kafka]:T,[gn.Kloudmate]:te,[gn.Last9]:ne,[gn.Lightstep]:oe,[gn.LogzIo]:ie,[gn.Loki]:ae,[gn.Lumigo]:re,[gn.Middleware]:se,[gn.NewRelic]:le,[gn.Observe]:de,[gn.Odigos]:ce,[gn.OneUptime]:pe,[gn.OpenObserve]:ue,[gn.Opsverse]:me,[gn.Oracle]:he,[gn.OTLP]:W,[gn.OTLPHttp]:W,[gn.Prometheus]:ge,[gn.Qryn]:xe,[gn.QrynOss]:fe,[gn.Quickwit]:$e,[gn.S3]:ye,[gn.Seq]:be,[gn.Signoz]:we,[gn.Splunk]:ke,[gn.SplunkSapm]:ke,[gn.SplunkOtlp]:ke,[gn.SumoLogic]:ve,[gn.TelemetryHub]:Ee,[gn.Tempo]:Se,[gn.Tingyun]:Ce,[gn.Traceloop]:Te,[gn.Uptrace]:Ae,[gn.VictoriaMetrics]:De,[gn.VictoriaMetricsCloud]:De,[gn.XRay]:Ne}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Yn=e=>({[en.Namespace]:Ie,[en.Source]:Oe,[en.Destination]:_e,[en.Action]:ze,[en.InstrumentationRule]:Re}[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,Kn=(e,t,n)=>{const{extended:o,prioritizeDisplayName:i}=n||{};let a="",r="";switch(t){case en.InstrumentationRule:const t=e;a=t.type,r=t.ruleName;break;case en.Source:const n=e;a=n.name,r=n.otelServiceName;break;case en.Action:const o=e;a=o.type,r=o.name;break;case en.Destination:const i=e;a=i.destinationType.displayName,r=i.name;break;case en.Namespace:const s=e;a=s.name,r=s.name}return o?a+(r&&r!==a?` (${r})`:""):i&&r||a},Jn=(e,t)=>{if(t===en.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},Xn=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?Qt.Processing:Qt.NoRunningPods;const o=n?.filter(e=>e.language!==Qt.Ignored);if(!o.length)return Qt.NoContainers;const i=o.find(e=>e.language!==Qt.Unknown);return i?i.language:Qt.Unknown},Qn=(e,t,n)=>(t===en.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},Zn=e=>({[wn.Logs]:Fe,[wn.Metrics]:Le,[wn.Traces]:Pe}[e]),eo=e=>e?{[Jt.K8s]:o,[Jt.Vm]:Me}[e]:ce,to=e=>e?{[Jt.K8s]:"Kubernetes Cluster",[Jt.Vm]:"Virtual Machine"}[e]:"Unknown",no=(e,t,n)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[n],i=[];return void 0!==o&&(Array.isArray(o)?i.push(...o):i.push(o)),i.push(...no(e,t,n)),i}):[]},oo=(e,t)=>{if(t===en.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},io=(e,t)=>({[an.Success]:n=>Be({fill:t.text[e],...n}),[an.Error]:n=>je({fill:t.text[e],...n}),[an.Warning]:n=>Ue({fill:t.text[e],...n}),[an.Info]:n=>We({fill:t.text[e],...n}),[an.Default]:n=>ce({fill:t.text[e],...n})}[e]),ao=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},ro=({namespace:e,name:t,kind:n})=>({namespace:e,name:t,kind:n});function so(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const lo=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=so(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&n.push(...e.items[i].fields.map(e=>({...e,initialValue:o[e.name]})))}return n},co=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==an.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1},po=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),uo=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),mo=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},ho=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},go=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,xo=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,fo=e=>xo.test(e),$o=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"",yo=e=>e?.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:i})=>({status:e,type:$o(t),reason:n?$o(n):"",message:o,lastTransitionTime:i}))||[],bo=(e,t)=>{const n=so(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:n[e.name]??null})).filter(e=>null!==e.value):Object.entries(n).map(([e,t])=>({key:e,name:e,value:t}))},wo=e=>e?Object.keys(e).filter(t=>e[t]):[],ko=e=>e.replace(/[^\d]/g,""),vo=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Eo=e=>{let t="";try{const n=JSON.parse(e);t=Array.isArray(n)?n.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof n&&null!==n?Object.entries(n).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(n){t=e}return t},So=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const o=e[n];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>So(e)))}else if("object"==typeof o&&null!==o){const e=So(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},Co=(e,t=2)=>JSON.stringify(e||{},null,t),To=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Ao=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Do={[Qt.Go]:"Go",[Qt.Java]:"Java",[Qt.JavaScript]:"Node.js",[Qt.Python]:"Python",[Qt.DotNet]:".NET",[Qt.CSharp]:"C#",[Qt.CPlusPlus]:"C++",[Qt.Php]:"PHP",[Qt.Ruby]:"Ruby",[Qt.Rust]:"Rust",[Qt.Swift]:"Swift",[Qt.Elixir]:"Elixir",[Qt.MySql]:"MySQL",[Qt.Nginx]:"Nginx",[Qt.Postgres]:"PostgreSQL",[Qt.Redis]:"Redis",[Qt.Kafka]:"Kafka",[Qt.Ignored]:"Ignored",[Qt.Unknown]:"Unknown",[Qt.Processing]:"Processing",[Qt.NoContainers]:"No Containers",[Qt.NoRunningPods]:"No Running Pods"},No=[{id:Qt.Go,value:Do[Qt.Go],icon:Vn(Qt.Go)},{id:Qt.Java,value:Do[Qt.Java],icon:Vn(Qt.Java)},{id:Qt.JavaScript,value:Do[Qt.JavaScript],icon:Vn(Qt.JavaScript)},{id:Qt.Python,value:Do[Qt.Python],icon:Vn(Qt.Python)},{id:Qt.Php,value:Do[Qt.Php],icon:Vn(Qt.Php)},{id:Qt.Ruby,value:Do[Qt.Ruby],icon:Vn(Qt.Ruby)},{id:Qt.Rust,value:Do[Qt.Rust],icon:Vn(Qt.Rust)},{id:Qt.DotNet,value:Do[Qt.DotNet],icon:Vn(Qt.DotNet)},{id:Qt.CSharp,value:Do[Qt.CSharp],icon:Vn(Qt.CSharp)},{id:Qt.CPlusPlus,value:Do[Qt.CPlusPlus],icon:Vn(Qt.CPlusPlus)},{id:Qt.Swift,value:Do[Qt.Swift],icon:Vn(Qt.Swift)},{id:Qt.Elixir,value:Do[Qt.Elixir],icon:Vn(Qt.Elixir)}],Io="default",Oo={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},_o={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)'},zo={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 by searching by source name or namespace.",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.",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:"Auto-instrument new apps",FUTURE_APPS_DESCRIPTION:"When enabled, new applications will be instrumented automatically and included in the current data stream.",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?"},Ro={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"},Fo=6048e5,Lo=lt()(yt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Oo.DARK_MODE,storage:"undefined"!=typeof window?bt(()=>localStorage):void 0})),Po={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:""},Mo=lt(e=>({...Po,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const n=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(n).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Po)})),Bo=lt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),jo=lt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,n)=>{const o=t===en.Namespace?"namespacesLoading":t===en.Source?"sourcesLoading":t===en.Destination?"destinationsLoading":t===en.Action?"actionsLoading":t===en.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==o&&e({[o]:n})},setEntities:(t,n)=>{const o=t===en.Namespace?"namespaces":t===en.Source?"sources":t===en.Destination?"destinations":t===en.Action?"actions":t===en.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e({[o]:n})},addEntities:(t,n)=>{const o=t===en.Namespace?"namespaces":t===en.Source?"sources":t===en.Destination?"destinations":t===en.Action?"actions":t===en.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=[...e[o]];return n.forEach(e=>{const n=t.findIndex(t=>JSON.stringify(Gn(t))===JSON.stringify(Gn(e)));-1!==n?t[n]={...t[n],...e}:t.push(e)}),{[o]:t}})},removeEntities:(t,n)=>{const o=t===en.Namespace?"namespaces":t===en.Source?"sources":t===en.Destination?"destinations":t===en.Action?"actions":t===en.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const i=[...e[o]];return n.forEach(e=>{const n=i.findIndex(n=>t===en.Source?JSON.stringify(Gn(n))===JSON.stringify(Gn(e)):Gn(n)===e);-1!==n&&i.splice(n,1)}),{[o]:i}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),Uo=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],errors:[],onlyErrors:!1}),Wo=lt(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}),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:[],errors:[],onlyErrors:!1}),getEmptyState:Uo})),Vo=lt(e=>({isAwaitingInstrumentation:!1,sourcesToCreate:0,sourcesCreated:0,sourcesToDelete:0,sourcesDeleted:0,setInstrumentAwait:t=>e({isAwaitingInstrumentation:t}),setInstrumentCount:(t,n)=>e({[t]:n})})),Ho=lt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),qo=lt((e,t)=>({notifications:[],addNotification:n=>{const o=new Date,i=`${o.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:a}=t();a.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:i,time:o.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&e.notifications.splice(n,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}})),Yo=(e,t)=>{const n=e.entityType===t.entityType,o="string"==typeof e.entityId&&"string"==typeof t.entityId?e.entityId===t.entityId:"object"==typeof e.entityId&&"object"==typeof t.entityId?e.entityId.namespace===t.entityId.namespace&&e.entityId.name===t.entityId.name&&e.entityId.kind===t.entityId.kind:!e.entityId&&!t.entityId;return n&&o},Go=lt((e,t)=>({pendingItems:[],setPendingItems:t=>e({pendingItems:t}),addPendingItems:t=>e(e=>({pendingItems:e.pendingItems.concat(t.filter(t=>!e.pendingItems.some(e=>Yo(e,t))))})),removePendingItems:t=>e(e=>({pendingItems:e.pendingItems.filter(e=>!t.find(t=>Yo(e,t)))})),isThisPending:e=>{const{pendingItems:n}=t();let o=!1;for(let t=0;t<n.length;t++){const i=n[t];if(i.entityType===e.entityType&&(!e.entityId||(i.entityType===en.Source?i.entityId&&e.entityId&&i.entityId.namespace===e.entityId.namespace&&i.entityId.name===e.entityId.name&&i.entityId.kind===e.entityId.kind:i.entityId===e.entityId))){o=!0;break}}return o}})),Ko=lt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{}}))})),Jo={availableSources:{},configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Xo=(e,t)=>e.destinationType.type!==t.destinationType.type,Qo=lt(e=>({...Jo,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=>Xo(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const n=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(n).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Xo(e,t))})),resetState:()=>e(()=>({...Jo}))})),Zo={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"}},ei={darkMode:!0,colors:{...Zo.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:Zo.font_family},ti={darkMode:!1,colors:{...Zo.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:Zo.font_family},ni=e=>e?ei:ti;wt('@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}svg{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 oi={in:{left:St`
2
- from { transform: translateX(-100%); }
3
- to { transform: translateX(0); }
4
- `,right:St`
5
- from { transform: translateX(100%); }
6
- to { transform: translateX(0); }
7
- `,top:St`
8
- from { transform: translateY(-100%); }
9
- to { transform: translateY(0); }
10
- `,bottom:St`
11
- from { transform: translateY(100%); }
12
- to { transform: translateY(0); }
13
- `,center:St`
14
- from { transform: translate(-50%, 100%); }
15
- to { transform: translate(-50%, -50%); }
16
- `},out:{left:St`
17
- from { transform: translateX(0); }
18
- to { transform: translateX(-100%); }
19
- `,right:St`
20
- from { transform: translateX(0); }
21
- to { transform: translateX(100%); }
22
- `,top:St`
23
- from { transform: translateY(0); }
24
- to { transform: translateY(-100%); }
25
- `,bottom:St`
26
- from { transform: translateY(0); }
27
- to { transform: translateY(100%); }
28
- `,center:St`
29
- from { transform: translate(-50%, -50%); }
30
- to { transform: translate(-50%, 100%); }
31
- `}},ii={in:St`
32
- from { width: 0%; }
33
- to { width: 100%; }
34
- `,out:St`
35
- from { width: 100%; }
36
- to { width: 0%; }
37
- `},ai=St`
38
- 0% {
39
- transform: scale(1);
40
- opacity: 1;
41
- }
42
- 75%, 100% {
43
- transform: scale(2);
44
- opacity: 0;
45
- }
46
- `,ri=St`
47
- 0% {
48
- background-position: -500px 0;
49
- }
50
- 100% {
51
- background-position: 500px 0;
52
- }
53
- `,si={Provider:({children:e})=>{const{darkMode:t}=Lo();return dt.createElement(Et,{theme:ni(t)},e)},useTheme:Ct,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"}}),animations:Object.freeze({__proto__:null,ping:ai,progress:ii,shimmer:ri,slide:oi})},li=vt.div`
54
- color: ${({$color:e,theme:t})=>e||t.text.secondary};
55
- font-size: ${({$size:e})=>void 0!==e?e:16}px;
56
- font-weight: ${({$weight:e})=>void 0!==e?e:300};
57
- text-align: ${({$align:e})=>e||"left"};
58
- opacity: ${({$opacity:e})=>void 0!==e?e:1};
59
- text-decoration: ${({$decoration:e})=>e||"none"};
60
- text-transform: ${({$transform:e,$family:t})=>e||("secondary"===t?"uppercase":"none")};
61
- font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
62
- `,di=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,n,o]=e.split('"');return{original:e,href:n,label:o.replace("</a>","").replace(">","")}})},ci=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},pi=(e,t)=>{const n=di(e);n?.forEach((t,n)=>{e=e.replace(t.original,`LINK-${n}###`)});const o=ci(e);return o?.forEach((t,n)=>{e=e.replace(t.original,`STRONG-${n}###`)}),e.split(" ").map(e=>{if(e.includes("LINK-")){const[o,i]=e.split("###"),a=n?.[parseInt(o.replace("LINK-",""))];return dt.createElement(ct,{key:e},dt.createElement("a",{href:a?.href,target:"_blank",style:{color:t.colors.majestic_blue_soft}},a?.label),i?`${i} `:" ")}if(e.includes("STRONG-")){const[t,n]=e.split("###"),i=o?.[parseInt(t.replace("STRONG-",""))];return dt.createElement(ct,{key:e},dt.createElement("strong",{style:{fontWeight:600}},i?.label),n?`${n} `:" ")}return e+" "})},ui=({children:e,color:t,size:n,weight:o,align:i,family:a,opacity:r,decoration:s,transform:l,...d})=>{const c=si.useTheme(),p=pt(()=>(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 dt.createElement(li,{$color:t,$size:n,$weight:o,$align:i,$family:a,$opacity:r,$decoration:s,$transform:l,...d},p.length?p.map((e,t)=>dt.createElement(ct,{key:`text-${t}-${e}`},pi(e,c),t!==p.length-1?dt.createElement("br",null):null)):e)},mi=vt.div`
63
- padding: 4px 0 0 0;
64
- `,hi=vt(ui)`
65
- font-size: 12px;
66
- color: ${({theme:e})=>e.text.error};
67
- `,gi=({children:e})=>dt.createElement(mi,null,dt.createElement(hi,null,e)),xi=vt.div`
68
- position: relative;
69
- width: 100%;
70
- `,fi=vt.div`
71
- width: calc(100% - 16px);
72
- display: flex;
73
- align-items: center;
74
- height: 36px;
75
- gap: 8px;
76
- padding-left: 12px;
77
- transition: border-color 0.3s;
78
- border-radius: 32px;
79
- border: 1px solid ${({theme:e,$hasError:t})=>t?e.text.error:e.colors.border};
80
-
81
- &:hover {
82
- border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
83
- }
84
- &:focus-within {
85
- border-color: ${({theme:e,$hasError:t})=>t?e.text.error_secondary:e.colors.secondary};
86
- }
87
- `,$i=vt.input`
88
- flex: 1;
89
- border: none;
90
- outline: none;
91
- background: none;
92
- color: ${({theme:e})=>e.text.secondary};
93
- font-size: 14px;
94
- font-family: ${({theme:e})=>e.font_family.primary};
95
- font-weight: 300;
96
- &::placeholder {
97
- color: ${({theme:e})=>e.text.secondary};
98
- font-family: ${({theme:e})=>e.font_family.primary};
99
- opacity: 0.4;
100
- font-size: 14px;
101
- font-weight: 300;
102
- line-height: 22px;
103
- }
104
-
105
- &:disabled {
106
- cursor: not-allowed;
107
- }
108
- `,yi=vt.ul`
109
- position: absolute;
110
- max-height: 500px;
111
- top: 32px;
112
- border-radius: 24px;
113
- width: calc(100% - 32px);
114
- overflow-y: auto;
115
- background-color: ${({theme:e})=>e.colors.dropdown_bg};
116
- border: 1px solid ${({theme:e})=>e.colors.border};
117
- z-index: 9999;
118
- padding: 12px;
119
- `,bi=vt.li`
120
- width: calc(100% - 24px);
121
- padding: 8px 12px;
122
- cursor: ${({$isList:e})=>e?"default":"pointer"};
123
- border-radius: 24px;
124
- gap: 8px;
125
- display: flex;
126
- align-items: ${({$isList:e})=>e?"flex-start":"center"};
127
- background: transparent;
128
- &:hover {
129
- background: ${({theme:e,$isList:t})=>!t&&e.colors.dropdown_bg_2};
130
- }
131
- `,wi=vt.div`
132
- width: 100%;
133
- `,ki=vt.div`
134
- display: flex;
135
- width: 100%;
136
- `,vi=vt.div`
137
- width: 1px;
138
- height: 52px;
139
- background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
140
- position: absolute;
141
- left: 33px;
142
- `,Ei=vt.div`
143
- display: flex;
144
- flex-direction: column;
145
- gap: 4px;
146
- `,Si=vt(ui)`
147
- flex: 1;
148
- font-size: 14px;
149
- `,Ci=vt(ui)`
150
- color: ${({theme:e})=>e.text.grey};
151
- font-size: 10px;
152
- line-height: 150%;
153
- `,Ti=vt.ul`
154
- padding-left: 0px;
155
- margin: 4px 0 0 0;
156
- list-style: none;
157
- width: 100%;
158
- `,Ai=(e,t)=>t?e.reduce((e,n)=>{if(n.items){const o=Ai(n.items,t);o.length&&e.push({...n,items:o})}else n.label.toLowerCase().includes(t.toLowerCase())&&e.push(n);return e},[]):e,Di=({placeholder:e="Type to search...",options:t,selectedOption:n,onOptionSelect:o,defaultText:i,onTextChange:a,style:r,disabled:s,errorMessage:l,...d})=>{const[c,p]=ut(n?.label||i||""),[u,m]=ut(Ai(t,c)),[h,g]=ut(!1);ut(-1),mt(()=>m(Ai(t,c)),[t]);const x=n?.icon,f=e=>{e&&(p(e.label),a?.(e.label)),g(!e),o?.(e)};return dt.createElement(xi,{style:r},dt.createElement(fi,{$hasError:!!l},x&&dt.createElement(x,null),dt.createElement($i,{type:"text",value:c,placeholder:e,onChange:e=>{e.stopPropagation();const n=e.target.value,o=Ai(t,n),i=1===o.length&&o[0].label===n?o[0]:void 0;p(n),a?.(n),m(o),f(i)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:s,onBlur:()=>!s&&g(!1),onFocus:()=>!s&&g(!0),...d})),h&&u.length?dt.createElement(yi,null,u.map(e=>dt.createElement(Ni,{key:e.type||e.label,option:e,onClick:f}))):null,l&&dt.createElement(gi,null,l))},Ni=({option:e,renderIcon:t=!0,onClick:n})=>{const o=!!e.items&&e.items.length>0,i=e.icon;return dt.createElement(bi,{"data-id":`option-${e.type||e.label}`,$isList:o,onMouseDown:()=>o?null:n(e)},i&&t&&dt.createElement(i,null),dt.createElement(wi,null,dt.createElement(Ei,null,dt.createElement(Si,null,e.label),dt.createElement(Ci,null,e.description)),o&&dt.createElement(Ti,null,e.items?.map(e=>dt.createElement(ki,{key:e.type||e.label},dt.createElement(vi,null),dt.createElement(Ni,{option:e,renderIcon:!1,onClick:n}))))))},Ii=vt.span`
159
- display: flex;
160
- align-items: center;
161
- justify-content: center;
162
-
163
- min-height: 16px;
164
- min-width: 16px;
165
- width: fit-content;
166
- padding: 4px;
167
- gap: 2px;
168
-
169
- border-radius: 50px;
170
- border: 1px solid ${({theme:e,$filled:t,$status:n})=>n?e.text[n]+(t?"":si.opacity.hex["050"]):t?"transparent":e.colors.border};
171
- background-color: ${({theme:e,$filled:t,$status:n})=>t?n?e.colors[n]:e.colors.majestic_blue:"transparent"};
172
- color: ${({theme:e,$filled:t,$status:n})=>t&&n?e.text.secondary:t?e.text.white:n?e.text[n]:e.text.grey};
173
- font-family: ${({theme:e})=>e.font_family.secondary};
174
- font-size: 12px;
175
- white-space: nowrap;
176
-
177
- ${({theme:e,$filled:t,$status:n,$clickable:o})=>o&&`&:hover {\n cursor: pointer;\n background-color: ${n?e.colors[n]+si.opacity.hex["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+si.opacity.hex["020"]};\n }`}
178
- `,Oi=({label:e,filled:t,status:n,withIcon:o,onClick:i})=>{const a=si.useTheme(),r=n&&o?io(n,a):null;return dt.createElement(Ii,{$filled:t,$status:n,$clickable:!!i,onClick:i},!!r&&dt.createElement(r,null),e)},_i=vt.div`
179
- height: fit-content;
180
- border: 2px solid transparent;
181
- padding: 2px;
182
- border-radius: 32px;
183
- background-color: transparent;
184
- transition: border-color 0.3s ease;
185
- &:focus-within {
186
- border-color: ${({theme:e})=>e.colors.secondary};
187
- }
188
- `,zi={primary:Tt`
189
- border: 1px solid ${({theme:e})=>e.text.secondary+si.opacity.hex["024"]};
190
- background: ${({theme:e})=>e.colors.secondary};
191
- color: ${({theme:e})=>e.colors.primary};
192
- &:hover {
193
- background: ${({theme:e})=>e.colors.secondary+si.opacity.hex["080"]};
194
- }
195
- &:active {
196
- background: ${({theme:e})=>e.text.secondary+si.opacity.hex["060"]};
197
- }
198
- `,secondary:Tt`
199
- border: 1px solid ${({theme:e})=>e.colors.border};
200
- background: ${({theme:e})=>e.colors.primary};
201
- color: ${({theme:e})=>e.colors.secondary};
202
- &:hover {
203
- border: 1px solid ${({theme:e})=>e.text.darker_grey};
204
- background: ${({theme:e})=>e.colors.secondary+si.opacity.hex["010"]};
205
- }
206
- &:active {
207
- border: 1px solid ${({theme:e})=>e.text.dark_grey};
208
- background: ${({theme:e})=>e.colors.secondary+si.opacity.hex["015"]};
209
- }
210
- `,tertiary:Tt`
211
- border-color: transparent;
212
- background: transparent;
213
- &:hover {
214
- background: ${({theme:e})=>e.colors.dropdown_bg_2+si.opacity.hex["040"]};
215
- }
216
- &:active {
217
- background: ${({theme:e})=>e.colors.dropdown_bg_2};
218
- }
219
- `,danger:Tt`
220
- border-color: transparent;
221
- background: ${({theme:e})=>e.text.error};
222
- &:hover {
223
- background: ${({theme:e})=>e.text.error+si.opacity.hex["090"]};
224
- }
225
- &:active {
226
- background: ${({theme:e})=>e.text.error+si.opacity.hex["080"]};
227
- }
228
- `,warning:Tt`
229
- border-color: transparent;
230
- background: ${({theme:e})=>e.text.warning};
231
- &:hover {
232
- background: ${({theme:e})=>e.text.warning+si.opacity.hex["090"]};
233
- }
234
- &:active {
235
- background: ${({theme:e})=>e.text.warning+si.opacity.hex["080"]};
236
- }
237
- `},Ri=vt.button`
238
- height: 36px;
239
- border-radius: 32px;
240
- cursor: pointer;
241
- display: flex;
242
- align-items: center;
243
- justify-content: center;
244
- gap: 8px;
245
- padding: 0 12px;
246
- font-family: ${({theme:e})=>e.font_family.secondary};
247
- text-transform: uppercase;
248
- text-decoration: underline;
249
- font-weight: 600;
250
- outline: none;
251
- ${({$variant:e})=>e&&zi[e]}
252
- ${({disabled:e,$variant:t})=>e&&Tt`
253
- opacity: 0.5;
254
- cursor: not-allowed;
255
-
256
- ${"primary"===t?Tt`
257
- color: ${({theme:e})=>e.colors.secondary};
258
- background: ${({theme:e})=>e.text.secondary+si.opacity.hex["010"]};
259
- &:hover {
260
- background: ${({theme:e})=>e.text.secondary+si.opacity.hex["015"]};
261
- }
262
- `:""}
263
- `}
264
- `,Fi=({children:e,variant:t="primary",onClick:n,...o})=>{const i=ht(null);return dt.createElement(_i,{$variant:t},dt.createElement(Ri,{ref:i,$variant:t,onClick:e=>{n&&n(e),i.current?.blur()},...o},e))},Li=({isOpen:e,noOverlay:t,name:n,onApprove:o,onDeny:i})=>dt.createElement(Zc,{isOpen:e,noOverlay:t,title:"Cancel"+(n?` ${n}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:an.Warning,onClick:o},denyButton:{text:"Go Back",onClick:i}}),Pi=vt.div`
265
- position: absolute;
266
- ${({$top:e})=>void 0!==e&&`top: ${e}px;`}
267
- ${({$bottom:e})=>void 0!==e&&`bottom: ${e}px;`}
268
- ${({$left:e})=>void 0!==e&&`left: ${e}px;`}
269
- ${({$right:e})=>void 0!==e&&`right: ${e}px;`}
270
- z-index: 9999;
271
-
272
- background-color: ${({theme:e})=>e.colors.info};
273
- border: 1px solid ${({theme:e})=>e.colors.border};
274
- border-radius: ${({$borderRadius:e})=>void 0!==e?e:"24px"};
275
- max-width: ${({$maxWidth:e})=>void 0!==e?e:"unset"};
276
- width: ${({$width:e})=>void 0!==e?e:"unset"};
277
-
278
- ${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
279
- `,Mi=vt.div`
280
- padding: ${({$padding:e})=>void 0!==e?e:"12px"};
281
- border-bottom: 1px solid ${({theme:e})=>e.colors.border};
282
- `,Bi=vt.div`
283
- padding: ${({$padding:e})=>void 0!==e?e:"12px"};
284
- `,ji=vt.div`
285
- padding: ${({$padding:e})=>void 0!==e?e:"12px"};
286
- border-top: 1px solid ${({theme:e})=>e.colors.border};
287
- `,Ui=gt(({isOpen:e,asPortal:t,...n},o)=>{const i=pt(()=>{const{children:e,top:i,bottom:a,left:r,right:s,borderRadius:l,padding:d,maxWidth:c,width:p,header:u,footer:m,withPointerEvents:h,...g}=n;return dt.createElement(Pi,{ref:o,$top:i,$bottom:a,$left:r,$right:s,$borderRadius:l,$padding:d,$maxWidth:c,$width:p,$asPortal:t,$withPointerEvents:h,...g},u&&dt.createElement(Mi,{$padding:d},u),dt.createElement(Bi,{$padding:d},e),m&&dt.createElement(ji,{$padding:d},m))},[o,n,t]);return e?t?Rt.createPortal(i,document.body):i:null});Ui.displayName=Ui.name;const Wi=e=>{function t(){return void 0===e?{}:_n(e)}const[n,o]=ut(t()),[i,a]=ut({}),r=pt(()=>void 0!==e&&JSON.stringify(n)!==JSON.stringify(e),[e,n]);return mt(()=>{void 0!==e&&"{}"===JSON.stringify(n)&&o(t())},[e,n]),{formData:n,formErrors:i,isFormDirty:r,handleFormChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?o(n=>({...n,[e]:t})):o(e=>{const o=_n(e);let i=o;for(let e=0;e<n.length-1;e++){const t=n[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[n[n.length-1]]=t,o})}else n&&o({...n})},handleErrorChange:(e,t,n)=>{e?a(n=>({...n,[e]:t})):n&&a({...n})},resetFormData:()=>{o(t()),a({})}}},Vi={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}},Hi=()=>{const{addNotification:e}=qo(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:i,resetFormData:a}=Wi(Vi);return{formData:t,formErrors:n,handleFormChange:o,resetFormData:a,validateForm:n=>{const o={};let a=!0;return Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":po(t)&&(o[e]=_o.FIELD_IS_REQUIRED)}}),a=!Object.values(o).length,!a&&n?.withAlert&&e({type:an.Warning,title:n.alertTitle,message:_o.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),a},loadFormWithDrawerItem:({type:e,fields:t})=>{const n={..._n(Vi),type:e};Object.entries(t).forEach(([e,t])=>{if(t)switch(e){case"actionName":n.name=t;break;case"type":case"notes":case"signals":case"disabled":n[e]=t;break;case Wt.CollectContainerAttributes:case Wt.CollectReplicaSetAttributes:case Wt.CollectWorkloadId:case Wt.CollectClusterId:case Wt.LabelsAttributes:case Wt.AnnotationsAttributes:case Wt.ClusterAttributes:case Wt.OverwriteExistingValues:case Wt.AttributeNamesToDelete:case Wt.Renames:case Wt.PiiCategories:case Wt.FallbackSamplingRatio:case Wt.SamplingPercentage:case Wt.EndpointsFilters:case Wt.ServicesNameFilters:case Wt.AttributeFilters:n.fields||(n.fields={}),n.fields[e]=t}}),o(void 0,void 0,n)}}},qi=()=>{const{setCurrentModal:e}=Ho(),{setDrawerType:t,setDrawerEntityId:n}=Bo(),{setActiveNodeType:o,setActiveNodeId:i,activeNodeId:a}=Bt();return{onClickNode:(r,s)=>{const{id:l,type:d,data:{id:c,type:p}}=s;switch(a===l?(o(null),i(null)):(o(d),i(l)),p){case en.Source:case en.Destination:case en.Action:case en.InstrumentationRule:t(p),n(c);break;case hn.AddSource:e(en.Source);break;case hn.AddDestination:e(en.Destination);break;case hn.AddAction:e(en.Action);break;case hn.AddRule:e(en.InstrumentationRule)}}}},Yi=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Bo(),{markAsDismissed:n,markAsSeen:o}=qo();return{onClickNotification:(i,a)=>{const{id:r,crdType:s,target:l}=i,{dismissToast:d}=a||{};if(s&&l)switch(s){case en.InstrumentationRule:e(en.InstrumentationRule),t(Jn(l,en.InstrumentationRule));break;case en.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(en.Source),t(Jn(l,en.Source));break;case en.Action:e(en.Action),t(Jn(l,en.Action));break;case en.Destination:case"Destination":e(en.Destination),t(Jn(l,en.Destination))}o(r),d&&n(r)}}},Gi=()=>{const e=ht(null),[t,n]=ut(0),[o,i]=ut(0);return mt(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();n(t),i(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}},Ki=()=>{const[e,t]=ut(!1),[n,o]=ut(-1);return{isCopied:e,copiedIndex:n,clickCopy:async(n,i)=>{if(!e){if(t(!0),void 0!==i&&o(i),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)}setTimeout(()=>{t(!1),o(-1)},1e3)}}}},Ji=e=>{const{addNotification:t}=qo(),{formData:n,handleFormChange:o,formErrors:i,handleErrorChange:a,resetFormData:r}=Wi(e);return{formData:n,formErrors:i,handleFormChange:o,resetFormData:r,validateForm:e=>{const o={};let i=!0;return n.name?uo(n.name)?o.name=void 0:(i=!1,o.name=_o.ILLEGAL_K8S_LABEL):(i=!1,o.name=_o.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:an.Warning,title:e.alertTitle,message:_o.REQUIRED_FIELDS,hideFromHistory:!0}),a(void 0,void 0,o),i},loadFormWithDrawerItem:({name:t})=>{const n={..._n(e),name:t};o(void 0,void 0,n)}}},Xi={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},Qi=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=qo(),{formData:i,formErrors:a,handleFormChange:r,handleErrorChange:s,resetFormData:l}=Wi(Xi),[d,c]=ut([]),[p,u]=ut([]);return mt(()=>{var e;u(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:o,displayName:i,initialValue:a,renderCondition:r}=e;if(n===nn.Dropdown){const e=so(o,{}),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:n,title:i,value:a,placeholder:e.placeholder||"Select an option",options:s,renderCondition:r,...e}}return{name:t,componentType:n,title:i,value:a,renderCondition:r,...so(o,{})}})).map(e=>{if(n){const t="string"==typeof n?so(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,n]),mt(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));r("fields",e)}},[p]),mt(()=>{if(t&&0===wo(i.exportedSignals).length){const{logs:e,metrics:n,traces:o}=t;r("exportedSignals",{logs:e.supported,metrics:n.supported,traces:o.supported})}},[t,i]),{formData:i,formErrors:a,handleFormChange:r,resetFormData:l,validateForm:e=>{const t={};let n=!0;return p.forEach(({name:e,value:o,required:i})=>{i&&!o&&(n=!1,t[e]=_o.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:an.Warning,title:e.alertTitle,message:_o.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:o,fields:i})=>{const a={..._n(Xi),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(so(i,{})).map(([e,t])=>({key:e,value:t}))};return r(void 0,void 0,a),a},yamlFields:d,setYamlFields:c,dynamicFields:p,setDynamicFields:u}},Zi={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[bn.HttpRequest]:null,[bn.HttpResponse]:null,[bn.DbQuery]:null,[bn.Messaging]:null},codeAttributes:{[fn.Column]:null,[fn.FilePath]:null,[fn.Function]:null,[fn.LineNumber]:null,[fn.Namespace]:null,[fn.StackTrace]:null},headersCollection:null,customInstrumentations:{[yn.Probes]:null}},ea=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Wi(Zi);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:i,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,payloadCollection:i,codeAttributes:a,headersCollection:r,customInstrumentations:s})=>{const l={..._n(Zi),ruleName:e,notes:t,disabled:o};i&&(l.payloadCollection={[bn.HttpRequest]:i[bn.HttpRequest]?{}:null,[bn.HttpResponse]:i[bn.HttpResponse]?{}:null,[bn.DbQuery]:i[bn.DbQuery]?{}:null,[bn.Messaging]:i[bn.Messaging]?{}:null}),a&&(l.codeAttributes={[fn.Column]:a[fn.Column]||null,[fn.FilePath]:a[fn.FilePath]||null,[fn.Function]:a[fn.Function]||null,[fn.LineNumber]:a[fn.LineNumber]||null,[fn.Namespace]:a[fn.Namespace]||null,[fn.StackTrace]:a[fn.StackTrace]||null}),r&&(l.headersCollection=r),s&&(l.customInstrumentations={[yn.Probes]:s[yn.Probes]||null}),n(void 0,void 0,l)}}},ta=({active:e,key:t,withAltKey:n,withCtrlKey:o,withShiftKey:i,withMetaKey:a},r)=>(mt(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!o||o&&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,n,o,i,a,r]),null),na=(e,t)=>{mt(()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t()};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,t])},oa=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n}={})=>{const o=ht(null),[i,a]=ut(!1),[r,s]=ut({top:0,left:0});return na(o,()=>{i&&(a(!1),n?.())}),{popupRef:o,popupOpen:i,setPopupOpen:a,popupPosition:r,handlePosition:(n,i)=>{const{innerWidth:a,innerHeight:r}=window;let l=i,d=n;l>=r/2&&(l+=-(o.current?.clientHeight||e)),d>=a/2&&(d+=-(o.current?.clientWidth||t)),s({top:l,left:d})}}},ia=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?so(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),aa={otelServiceName:"",currentStreamName:""},ra=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:i}=Wi(aa);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:i,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const o={..._n(aa),otelServiceName:e||t||""};n(void 0,void 0,o)}}},sa=(e,t,n)=>{const o="boolean"==typeof n,i=e.dataStreamNames?.includes(t)||e.currentStreamName===t,a=(o?n:e.selected)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:!(!i&&!o)&&a,numberOfInstances:e.numberOfInstances}},la=(e,t,n)=>({...sa(e,t,n),currentStreamName:t}),da=(e,t,n)=>{const o="boolean"==typeof n,i=e.dataStreamNames?.includes(t),a=(o?n:e.selected)||!1;return{namespace:e.name,selected:!(!i&&!o)&&a,currentStreamName:t}},ca=e=>{const{fetchSingleNamespace:t}=e||{},{namespaces:n}=jo(),{selectedStreamName:o}=Mo(),i=ht(!1),{configuredSources:a,configuredFutureApps:r,availableSources:s}=Qo(),[l,d]=ut(s),[c,p]=ut(!1),[u,m]=ut(!1),[h,g]=ut([]),[x,f]=ut(""),[$,y]=ut(r),[b,w]=ut(((e,t,n)=>{const o={};return Object.entries(e).forEach(([e,t])=>{o[e]=t.map(e=>la(e,n))}),Object.entries(t).forEach(([e,t])=>{t.forEach(t=>{const i=o[e].findIndex(e=>e.name===t.name&&e.kind===t.kind),a=la(t,n);-1!==i?o[e][i]=a:o[e].push(a)})}),o})(s,a,o)),k=async(e,n)=>{if(t)if(h.includes(e.name))w(t=>({...t,[e.name]:t[e.name].map(e=>({...e,selected:"boolean"==typeof n?n:e.selected,currentStreamName:o}))}));else{const{data:i}=await t({variables:{namespaceName:e.name}}),{name:a,sources:r=[]}=i?.computePlatform?.k8sActualNamespace||{};if(!a)return;g(e=>[...e,a]),d(e=>({...e,[a]:r.map(e=>sa(e,o))})),w(e=>({...e,[a]:"boolean"!=typeof n&&e[a]?.length?e[a]:r.map(e=>la(e,o,n))}))}};mt(()=>(i.current=!0,n?.length&&(d(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),w(e=>{const t={...e};return n.forEach(({name:e})=>t[e]=t[e]||[]),t}),y(e=>{const t={...e};return n.forEach(e=>t[e.name]=t[e.name]||da(e,o)),t}),(async()=>{p(!0);for await(const e of n)i.current&&await k(e);p(!1)})()),()=>{i.current=!1}),[n,o]);const[v,E]=ut(""),[S,C]=ut(en.Source),[T,A]=ut(!1),[D,N]=ut(!1),I=pt(()=>{const e=(e,t)=>!v||S!==t||S===t&&e.toLowerCase().includes(v),t={};return Object.entries(b).filter(([t])=>e(t,en.Namespace)).forEach(([n,o])=>{const i=o.filter(t=>e(t.name,en.Source)&&(!T||t.selected)&&(e=>!D||(e.numberOfInstances||0)>0)(t));i.length&&(t[n]=i)}),t},[b,v,S,T,D]);return{isFetchingEachNamespace:c,fetchedNamespaces:h,availableSources:l,filteredNamespacesAndSources:I,getApiSourcesPayload:()=>{const e={};return Object.entries(b).forEach(([t,n])=>{n.forEach(n=>{const o=l[t]?.find(e=>e.name===n.name&&e.kind===n.kind);o?.selected!==n.selected&&(e[t]||(e[t]=[]),e[t].push(n))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries($).forEach(([t,i])=>{const a=n?.find(e=>e.name===t);(i.selected&&!a?.dataStreamNames?.includes(o)||!i.selected&&a?.dataStreamNames?.includes(o))&&(e[t]=i)}),e},selectedNamespace:x,onSelectNamespace:(e,t)=>{const o=n.find(t=>t.name===e);if(o){const n="boolean"==typeof t;f(t=>t!==e||n?e:""),k(o,t),n&&m(!1)}},selectedAllNamespaces:u,onSelectAllNamespaces:e=>{m(e),n.forEach(t=>k(t,e))},selectedSources:b,onSelectSource:(e,t)=>{const n=t||x;if(!n)return;const i=[...b[n]||[]],a=i.findIndex(({name:t,kind:n})=>t===e.name&&n===e.kind);if(-1!==a){const e={...i[a],selected:!i[a].selected,currentStreamName:o};i[a]=e}else i.push({...e,selected:!0,currentStreamName:o});w(e=>({...e,[n]:i})),m(!1)},selectedFutureApps:$,onSelectFutureApps:(e,t)=>{const i=t||x;if(!i)return;const a=n.find(e=>e.name===t);a&&y(t=>({...t,[i]:da(a,o,e)}))},searchText:v,setSearchText:E,searchBy:S,setSearchBy:C,showSelectedOnly:T,setShowSelectedOnly:A,showRunningOnly:D,setShowRunningOnly:N}};$t.addDefaultLocale(kt);const pa=()=>new $t("en-US"),ua=({container:e,animateIn:t,animateOut:n,duration:o=300})=>{const i=vt(e)`
288
- animation-name: ${({$isEntering:e,$isLeaving:o})=>e?t:o?n:"none"};
289
- animation-duration: ${o}ms;
290
- animation-fill-mode: forwards;
291
- `;return xt(({children:e,enter:t,...n})=>{const[a,r]=ut(!1);return mt(()=>{const e=setTimeout(()=>r(t),o+50);return()=>clearTimeout(e)},[t,o]),t||a?dt.createElement(i,{$isEntering:t,$isLeaving:!t&&a,...n},e):null},[])},ma=vt.div`
292
- display: flex;
293
- flex-direction: row;
294
- flex-wrap: ${({$wrap:e="unset"})=>e};
295
- align-items: ${({$alignItems:e="center"})=>e};
296
- justify-content: ${({$justifyContent:e="unset"})=>e};
297
- gap: ${({$gap:e=2})=>e}px;
298
- `,ha=vt.div`
299
- display: flex;
300
- flex-direction: column;
301
- flex-wrap: ${({$wrap:e="unset"})=>e};
302
- align-items: ${({$alignItems:e="unset"})=>e};
303
- justify-content: ${({$justifyContent:e="unset"})=>e};
304
- gap: ${({$gap:e=2})=>e}px;
305
- `,ga=vt(ha)`
306
- width: 100%;
307
- height: ${({$height:e})=>e||"unset"};
308
- align-items: center;
309
- justify-content: center;
310
- `,xa=vt.div`
311
- display: flex;
312
- flex-direction: column;
313
- padding: 12px;
314
- overflow-y: scroll;
315
- `,fa=vt.div`
316
- position: fixed;
317
- top: 0;
318
- left: 0;
319
- right: 0;
320
- bottom: 0;
321
- z-index: 1000;
322
- background: rgba(0, 0, 0, 0.5);
323
- backdrop-filter: blur(1px);
324
- `,$a=vt.div`
325
- width: 640px;
326
- min-height: ${({$minHeight:e})=>e||"unset"};
327
- height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
328
- margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
329
- padding: 0 2px;
330
- overflow-y: scroll;
331
- `,ya=vt(ha)`
332
- max-width: ${({$maxWidth:e})=>e||"unset"};
333
- width: 100%;
334
- `,ba=vt(ma)`
335
- gap: 16px;
336
- padding: 16px;
337
- `,wa=vt.div`
338
- width: 100%;
339
- max-height: ${({$maxHeight:e})=>e||"unset"};
340
- overflow-y: auto;
341
- `,ka=vt.div`
342
- position: relative;
343
- display: flex;
344
- align-items: center;
345
- gap: 4px;
346
- // cursor: help;
347
- `,va=vt(ui)`
348
- word-break: break-word;
349
- white-space: pre-wrap;
350
- `,Ea=({withIcon:e,titleIcon:t,title:n,text:o,timestamp:i,children:a})=>{const r=si.useTheme(),{popupRef:s,popupOpen:l,setPopupOpen:d,popupPosition:c,handlePosition:p}=oa({defaultClientHeight:40,defaultClientwidth:Math.min(7.5*(o?.length||0),300)}),u=pt(()=>!!di(o||"")?.length,[o]),m=e=>{const{type:t,clientX:n,clientY:o}=e;u?p(c.left||n,c.top||o):p(n,o),d("mouseleave"!==t)};return o?dt.createElement(ka,{onMouseEnter:m,onMouseMove:m,onMouseLeave:m},a,e&&dt.createElement(We,null),dt.createElement(Ui,{ref:s,isOpen:l,top:c.top,left:c.left,asPortal:!0,withPointerEvents:u,onMouseEnter:u?m:void 0,maxWidth:"270px",borderRadius:"16px",padding:"8px 12px"},(!!t||!!n)&&dt.createElement(ma,{style:{marginBottom:"4px"},$gap:4},t&&dt.createElement(t,{size:12,fill:r.text.secondary}),n&&dt.createElement(ui,{size:12,color:r.text.secondary},n)),dt.createElement(va,{size:12,color:r.text.info},o),!!i&&dt.createElement(ui,{size:10,color:r.text.darker_grey,family:"secondary",style:{marginTop:"8px"}},new Date(i).toLocaleString()))):dt.createElement(dt.Fragment,null,a)},Sa=vt.div`
351
- display: flex;
352
- align-items: center;
353
- gap: 8px;
354
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
355
- opacity: ${({$disabled:e})=>e?.6:1};
356
- `,Ca=vt.div`
357
- width: 18px;
358
- height: 18px;
359
- border-radius: 6px;
360
- border: 1px dashed ${({$isChecked:e,$isPartiallyChecked:t,theme:n})=>e||t?"transparent":n.colors.secondary};
361
- display: flex;
362
- align-items: center;
363
- justify-content: center;
364
- background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:n})=>e?n.colors.majestic_blue:t?n.colors.majestic_blue_soft:n.colors.secondary+si.opacity.hex["020"]};
365
- pointer-events: ${({$disabled:e})=>e?"none":"auto"};
366
- transition: border 0.3s;
367
- &:hover {
368
- border: 1px solid ${({theme:e})=>e.colors.secondary};
369
- }
370
- `,Ta=({title:e,titleColor:t,tooltip:n,value:o=!1,partiallyChecked:i=!1,onChange:a,disabled:r,style:s,errorMessage:l,allowPropagation:d=!1})=>{const c=si.useTheme(),[p,u]=ut(o);return mt(()=>u(o),[o]),dt.createElement(ha,null,dt.createElement(Sa,{"data-id":"checkbox"+(e?`-${e}`:""),$disabled:r,onClick:e=>{r||(d||e.stopPropagation(),a?a(!!i||!p):u(e=>!!i||!e))},style:s},dt.createElement(Ca,{$isChecked:p,$isPartiallyChecked:i,$disabled:r},i?dt.createElement(Ve,{fill:c.text.white}):p?dt.createElement(He,{fill:c.text.white}):null),e&&dt.createElement(Ea,{text:n,withIcon:!0},dt.createElement(ui,{size:12,color:t||c.text.grey,style:{maxWidth:"90%"}},e))),!!l&&dt.createElement(gi,null,l))},Aa=vt(ma)`
371
- gap: 0;
372
- `,Da=vt.button`
373
- padding: 4px 8px;
374
- background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
375
- border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
376
- border: 1px solid ${({theme:e})=>e.colors.border};
377
- display: flex;
378
- align-items: center;
379
- justify-content: center;
380
- cursor: pointer;
381
- &:hover {
382
- border: 1px solid ${({theme:e})=>e.colors.secondary};
383
- }
384
- `,Na=({isPrettyMode:e,setIsPrettyMode:t})=>dt.createElement(Aa,null,dt.createElement(Da,{$position:"left",$selected:e,onClick:()=>t(!0)},dt.createElement(qe,null)),dt.createElement(Da,{$position:"right",$selected:!e,onClick:()=>t(!1)},dt.createElement(Ye,null))),Ia=vt.table`
385
- border-collapse: collapse;
386
- font-family: ${({theme:e})=>e.font_family.primary};
387
- `,Oa=vt.tbody``,_a=vt.tr`
388
- td:first-child {
389
- padding-left: 0 !important;
390
- }
391
- td:last-child {
392
- padding-right: 0 !important;
393
- }
394
- `,za=vt.td`
395
- vertical-align: top;
396
- padding: 4px 6px;
397
- `,Ra=vt(ui)`
398
- white-space: nowrap;
399
- `,Fa=vt.span`
400
- white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
401
- overflow-wrap: break-word;
402
- word-break: break-word;
403
- word-wrap: break-word;
404
- /* Fallback for older browsers */
405
- -ms-word-break: break-all;
406
- font-size: 12px;
407
- `,La=({language:e,code:t,flatten:n,pretty:o})=>{const{darkMode:i}=si.useTheme();let a="";if("json"===e){const e=so(t,{}),o=So(e);a=Co(n?Mn(o):o)}else a=t;return o&&"json"===e?dt.createElement(Pa,{darkMode:i,str:a}):dt.createElement(Ft,{theme:i?Lt.palenight:Lt.vsLight,language:e,code:a},({getLineProps:e,getTokenProps:t,tokens:n})=>dt.createElement("pre",null,n.map((n,o)=>dt.createElement("div",{key:`line-${o}`,...e({line:n})},n.map((e,n)=>dt.createElement(Fa,{key:`line-${o}-token-${n}`,...t({token:e})}))))))},Pa=({darkMode:e,str:t})=>{const n=si.useTheme();return dt.createElement(Ft,{theme:e?Lt.palenight:Lt.vsLight,language:"json",code:t},({getLineProps:e,getTokenProps:t,tokens:o})=>dt.createElement(Ia,null,dt.createElement(Oa,null,o.map((o,i)=>{const a=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const n=[...e],o=["property","string"].includes(n[0])?t.replace(/"/g,""):t;return"string"===n[0]&&(["true","false"].includes(o.split("@")[0])&&(n[0]="boolean"),o.split("@")[0].match(/^[0-9]+$/)&&(n[0]="number")),{types:n,content:o}})})(o),r=e({line:a});return 1===a.length&&"property"===a[0].types[0]?dt.createElement(ct,{key:`line-${i}`},((e,t)=>{const o=new Array(2).fill(e=>dt.createElement(_a,{...e},dt.createElement(za,null),dt.createElement(za,null)));return dt.createElement(ct,null,o.map((e,o)=>dt.createElement(e,{key:`empty-row-${t}-${o}`,style:0===o?{borderBottom:`1px solid ${n.colors.border}`}:{}})))})(0,i),dt.createElement(_a,{...r},dt.createElement(za,null,dt.createElement(Ra,null,a[0].content)),dt.createElement(za,null))):2===a.length?dt.createElement(_a,{key:`line-${i}`,...r},a.map((e,o)=>{const{text:a,components:r}=((e,t)=>{const[n,...o]=e.split("@");return{text:n,components:o?.map((e,n)=>{if(!e.includes("="))return null;const[o,i]=e.split("=");switch(o){case"tooltip":return dt.createElement(Ea,{key:`${o}-${i}-${n}`,withIcon:!0,text:i});case"status":if("none"===i)return dt.createElement("div",{key:`${o}-${i}-${n}`,style:{width:16,height:16}});let e=io(i,t);return e||(e=io(an.Warning,t)),dt.createElement(e,{key:`${o}-${i}-${n}`});default:return null}})?.filter(e=>!!e)||[]}})(e.content,n),s=0===o;return dt.createElement(za,{key:`line-${i}-token-${o}`},dt.createElement(ma,null,dt.createElement(ma,null,r),dt.createElement(Fa,{$noWrap:s,...t({token:e})},a)))})):(a.length,null)}))))},Ma={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 Ba(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);const o=(e.match(/[^0-9]*$/)||"").toString();return Ma[o]?{value:t,unit:o}:{value:t,unit:"px"}}function ja(e){const t=Ba(e);return`${t.value}${t.unit}`}const Ua=(()=>{const e="react-spinners-FadeLoader-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const n=t.sheet,o=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return n&&n.insertRule(o,0),e})(),Wa=({loading:e=!0,color:t,scale:n=1,speedMultiplier:o=1,cssOverride:i={},style:a={},...r})=>{const s=si.useTheme(),l=t||s.text.secondary;if(!e)return null;const{value:d}=Ba(2),c=d+4.2,p=c/2+c/5.5,u=4*c*n,m={position:"relative",width:`${u}px`,height:`${u}px`,scale:n,...a,...i},h=(e,t)=>({position:"absolute",width:ja(1.5),height:ja(4),borderRadius:ja(2),backgroundColor:l,transition:"2s",animationFillMode:"both",animation:`${Ua} ${1.2/o}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return dt.createElement("span",{style:m,...r},dt.createElement("span",{style:{...h(1,0),top:`calc(50% + ${c}px)`,left:"50%"}}),dt.createElement("span",{style:{...h(2,-45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${p}px)`}}),dt.createElement("span",{style:{...h(3,90),top:"50%",left:`calc(50% + ${c}px)`}}),dt.createElement("span",{style:{...h(4,45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${p}px)`}}),dt.createElement("span",{style:{...h(5,0),top:`calc(50% + ${-1*c}px)`,left:"50%"}}),dt.createElement("span",{style:{...h(6,-45),top:`calc(50% + ${-1*p}px)`,left:`calc(50% + ${-1*p}px)`}}),dt.createElement("span",{style:{...h(7,90),top:"50%",left:`calc(50% + ${-1*c}px)`}}),dt.createElement("span",{style:{...h(8,45),top:`calc(50% + ${p}px)`,left:`calc(50% + ${-1*p}px)`}}))},Va=vt.div`
408
- margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
409
- display: flex;
410
- align-items: center;
411
- justify-content: center;
412
- `,Ha=({extend:e,size:t=14,align:n="center"})=>dt.createElement(Va,{$align:n},dt.createElement(Ge,{size:t,rotate:e?180:0})),qa=vt.div`
413
- border-radius: 24px;
414
- background-color: ${({theme:e,$status:t})=>t===an.Error?e.text.error+si.opacity.hex["010"]:t===an.Warning?e.text.warning+si.opacity.hex["010"]:e.colors.secondary+si.opacity.hex["005"]};
415
- &:hover {
416
- background-color: ${({theme:e,$status:t})=>t===an.Error?e.text.error+si.opacity.hex["020"]:t===an.Warning?e.text.warning+si.opacity.hex["020"]:e.colors.secondary+si.opacity.hex["010"]};
417
- }
418
- cursor: pointer;
419
- transition: background 0.3s;
420
- `,Ya=vt.div`
421
- display: flex;
422
- align-items: center;
423
- gap: 12px;
424
- padding: 12px 18px;
425
- `,Ga=vt.div`
426
- display: flex;
427
- flex-direction: column;
428
- gap: 8px;
429
- padding: 6px 18px 12px 18px;
430
- `,Ka=vt.div`
431
- display: flex;
432
- align-items: center;
433
- gap: 12px;
434
- `,Ja=vt(ui)`
435
- white-space: nowrap;
436
- `,Xa=vt(ha)`
437
- width: 16px;
438
- `,Qa=({conditions:e,headerLabelError:t="Something Failed",headerLabelWarning:n="Something isn't right",headerLabelSuccess:o="Everything Successful"})=>{const i=si.useTheme(),[a,r]=ut(!1),s=pt(()=>yo(e),[e]),{errors:l,hasErrors:d,warnings:c,hasWarnings:p,hasDisableds:u,hasLoadings:m}=pt(()=>Un(s),[s]);mt(()=>{r(d||p||u||m)},[d,p,u,m]);const h=(!s.length||m)&&!d&&!p&&!u,g=d?an.Error:p?an.Warning:u?an.Info:an.Success,x=io(g,i),f=d?t:p||u?n:h?"Loading...":o,$=d?i.text.error:p?i.text.warning:i.text.info,y=`(${d?l.length:p?c.length:s.length}/${s.length})`,b=d?i.text.error_secondary:p?i.text.warning_secondary:i.text.info_secondary,w=xt(()=>r(e=>!e),[]);return dt.createElement(qa,{onClick:w,$status:g},dt.createElement(Ya,null,h?dt.createElement(Wa,null):dt.createElement(x,null),dt.createElement(ui,{color:$,size:14},f),dt.createElement(ui,{color:b,size:12,family:"secondary"},y),dt.createElement(Ha,{extend:a,align:"right"})),a&&dt.createElement(Ga,null,s.map(({status:e,type:t,reason:n,message:o,lastTransitionTime:a},r)=>{const s=e===sn.Loading?()=>dt.createElement(Wa,{scale:.8}):e===sn.Disabled?io(an.Info,i):io(e,i),l=e===sn.Disabled?i.text.info:e===an.Error?i.text.error:e===an.Warning?i.text.warning:i.text.info,d=e===sn.Disabled?i.text.info_secondary:e===an.Error?i.text.error_secondary:e===an.Warning?i.text.warning_secondary:i.text.info_secondary;return dt.createElement(Ka,{key:`condition-${r}`},dt.createElement(Xa,null,dt.createElement(s,null)),dt.createElement(ma,{$gap:12,style:{width:"100%",justifyContent:"space-between"}},dt.createElement(ui,{color:l,size:12},dt.createElement(Ja,{color:d,size:12,weight:700},t),o||n),dt.createElement(Ja,{color:l,size:12},new Date(a).toLocaleString())))})))},Za=vt.div`
439
- width: ${({$orientation:e,$thickness:t,$length:n})=>"vertical"===e?`${t}px`:n||"100%"};
440
- height: ${({$orientation:e,$thickness:t,$length:n})=>"horizontal"===e?`${t}px`:n||"100%"};
441
- margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
442
- background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+si.opacity.hex["050"]};
443
- opacity: ${({$opacity:e})=>e||1};
444
- `,er=({orientation:e="horizontal",type:t,thickness:n=1,length:o,margin:i,opacity:a})=>dt.createElement(Za,{$orientation:e,$type:t,$thickness:n,$length:o,$margin:i,$opacity:a}),tr=vt.div`
445
- display: flex;
446
- align-items: center;
447
- gap: ${({$size:e})=>e/3}px;
448
- padding: ${({$size:e,$withBorder:t,$withBackground:n})=>t||n?`${e/(t?3:2)}px ${e/(t?1.5:1)}px`:"0"};
449
- width: ${({$width:e})=>e||"fit-content"};
450
- border-radius: 360px;
451
- border: ${({$withBorder:e,$status:t,theme:n})=>e?`1px solid ${n.text[t]+si.opacity.hex["050"]}`:"none"};
452
- background: ${({$withBackground:e,$status:t,theme:n})=>e?`linear-gradient(90deg, transparent 0%, ${n.text[t]+si.opacity.hex["030"]} 100%)`:"transparent"};
453
- `,nr=vt.div`
454
- display: flex;
455
- align-items: center;
456
- `,or=vt.div`
457
- display: flex;
458
- align-items: center;
459
- `,ir=vt(ui)`
460
- text-wrap: nowrap;
461
- `,ar=({title:e,subtitle:t,status:n=an.Default,forceIcon:o,withIcon:i,withBorder:a,withBackground:r,width:s,size:l=12,family:d="secondary"})=>{const c=si.useTheme(),p=n===sn.Loading?an.Info:n,u=o?()=>dt.createElement(o,{size:l+2,fill:c.text[p]}):n===sn.Loading?()=>dt.createElement(Wa,{scale:.8}):()=>io(p,c)?.({size:l+2});return dt.createElement(tr,{$status:p,$width:s,$size:l,$withIcon:i,$withBorder:a,$withBackground:r},i&&dt.createElement(nr,null,dt.createElement(u,null)),(!!e||!!t)&&dt.createElement(or,null,!!e&&dt.createElement(ir,{size:l,family:d,color:c.text[p]},e),!!e&&!!t&&dt.createElement(er,{orientation:"vertical",length:l-2+"px",type:p}),!!t&&dt.createElement(ir,{size:l-2,family:d,color:c.text[`${p}_secondary`]},t)))},rr=({label:e,onClick:t,variant:n="tertiary",textProps:o,...i})=>{const a=si.useTheme();return dt.createElement(Fi,{onClick:t,variant:n,...i},dt.createElement(Ke,{fill:"primary"===n?a.text.primary:a.text.info}),dt.createElement(ui,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?a.text.primary:void 0,...o},e||Ro.ADD))},sr=vt.button`
462
- position: relative;
463
- width: ${({$size:e})=>e}px;
464
- height: ${({$size:e})=>e}px;
465
- border: ${({theme:e,$withBorder:t})=>t?`1px solid ${e.colors.border}`:"none"};
466
- border-radius: 100%;
467
- background-color: ${({$backgroundColor:e})=>e||"transparent"};
468
- display: flex;
469
- align-items: center;
470
- justify-content: center;
471
- cursor: pointer;
472
- &:hover {
473
- background-color: ${({theme:e,$backgroundColor:t})=>t?t+si.opacity.hex["070"]:e.colors.dropdown_bg_2};
474
- }
475
- `,lr=vt.div`
476
- position: absolute;
477
- top: ${({$size:e})=>e/5}px;
478
- right: ${({$size:e})=>e/5}px;
479
- width: 6px;
480
- height: 6px;
481
- border-radius: 100%;
482
- background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
483
-
484
- &::after {
485
- content: '';
486
- position: absolute;
487
- inset: 0;
488
- border-radius: 100%;
489
- background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
490
- animation: ${si.animations.ping} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
491
- }
492
- `,dr=({children:e,onClick:t,tooltip:n,size:o=36,withPing:i,pingColor:a,withBorder:r,backgroundColor:s,...l})=>dt.createElement(Ea,{text:n},dt.createElement(sr,{$size:o,$withBorder:r,$backgroundColor:s,onClick:t,...l},i&&dt.createElement(lr,{$size:o,$color:a}),e)),cr=vt(ma)`
493
- width: 100%;
494
- border-radius: 8px;
495
- background-color: ${({theme:e})=>e.colors.secondary+si.opacity.hex["010"]};
496
- pre {
497
- color: ${({theme:e})=>e.text.default};
498
- font-size: 12px;
499
- overflow-x: auto;
500
- width: 100%;
501
- padding-left: 12px;
502
- }
503
- `,pr=({value:e,callbackCopyDone:t})=>{const{clickCopy:n,isCopied:o}=Ki();return dt.createElement(cr,null,dt.createElement("pre",null,e),dt.createElement(dr,{onClick:o=>{o.stopPropagation(),n(e),t?.()},tooltip:o?"Copied!":"Copy"},o?dt.createElement(He,null):dt.createElement(Je,null)))},ur=({label:e,onClick:t,variant:n="tertiary",...o})=>{const i=si.useTheme();return dt.createElement(Fi,{onClick:t,variant:n,...o},dt.createElement(Xe,{fill:"primary"===n?i.text.primary:i.text.info}),dt.createElement(ui,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?i.text.primary:void 0},e||Ro.EDIT))},mr=({onClick:e})=>dt.createElement(lc,{type:an.Default,icon:We,message:zo.QUICK_BACK_TO_SUMMARY,action:{label:zo.GO_TO_SUMMARY,onClick:e}}),hr=vt(ui)`
504
- max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
505
- white-space: nowrap;
506
- overflow-x: auto;
507
-
508
- &::after {
509
- // This is to prevent the "browser default tooltip" from appearing when the title is too long
510
- content: '';
511
- display: block;
512
- }
513
- `,gr=({maxWidth:e,text:t,textSize:n=16,textColor:o})=>{const[i,a]=ut(!1),r=ht(null);return mt(()=>{if(r.current){const{clientWidth:t}=r.current;a(t<1.05*(e-n)&&t>.95*(e-n))}},[e,n,t]),dt.createElement(ma,{$gap:0},t&&dt.createElement(Ea,{text:i?t:void 0},dt.createElement(hr,{ref:r,$maxWidth:e-n,size:n,color:o},t)),i&&dt.createElement(hr,{$maxWidth:n,size:n,color:o},"..."))},xr=({src:e="",alt:t="",size:o=16})=>{const[i,a]=ut(!1);return e&&!i?dt.createElement("img",{src:e,alt:t,width:o,height:o,onError:()=>a(!0)}):dt.createElement(n,{size:o})},fr=vt.div`
514
- display: flex;
515
- align-items: center;
516
- justify-content: center;
517
- width: ${({$size:e})=>e}px;
518
- height: ${({$size:e})=>e}px;
519
- border-radius: 8px;
520
- background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+si.opacity.hex["030"]} 100%)`}};
521
- `,$r=({icon:e,src:t="",alt:o="",status:i,size:a=36})=>dt.createElement(fr,{$status:i,$size:a},t?dt.createElement(xr,{src:t,alt:o,size:a-12}):e?dt.createElement(e,{size:a-12}):dt.createElement(n,{size:a-12})),yr=vt.div`
522
- position: relative;
523
- display: flex;
524
- flex-wrap: wrap;
525
- align-items: center;
526
- justify-content: center;
527
- width: ${({$size:e})=>e}px;
528
- height: ${({$size:e})=>e}px;
529
- `,br=vt.div`
530
- position: absolute;
531
- top: ${({$top:e})=>e}px;
532
- left: ${({$left:e})=>e}px;
533
- z-index: ${({$zIndex:e})=>e};
534
- display: flex;
535
- align-items: center;
536
- justify-content: center;
537
- width: ${({$size:e})=>e}px;
538
- height: ${({$size:e})=>e}px;
539
- border-radius: 100%;
540
- border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+si.opacity.hex["030"]};
541
- background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+si.opacity.hex["030"]} 100%)`}};
542
- `,wr=({icons:e=[],iconSrcs:t=[],status:n,size:o=36,id:i})=>{const a=si.useTheme(),r=1===e.length||1===t.length?o-12:o/2.7;if(t.length>0)return dt.createElement(wr,{icons:t.map(e=>()=>dt.createElement(xr,{src:e,size:r})),status:n,size:o,id:i});if(1===e.length)return dt.createElement($r,{icon:e[0],status:n,size:o});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 dt.createElement(yr,{$status:n,$size:o},e.map((t,o)=>o>2?null:dt.createElement(br,{key:`icon-${i}-${o}`,$status:n,$size:1.5*r,$top:s(o),$left:l(o),$zIndex:o+1},2===o&&e.length>3?dt.createElement(ui,{family:"secondary",color:a.text.dark_grey,size:.8*r},"+",e.length-2):dt.createElement(t,{size:r}))))},kr=An.map(({id:e})=>e),vr=({monitors:e=kr,withTooltips:t,withLabels:n,size:o=12,color:i})=>{const a=si.useTheme(),r=i||a.text.grey;return dt.createElement(ma,{$gap:n?o:o/2},e.filter(e=>!!e).map(e=>{const i=e.toLowerCase(),a=Dn(i),s=Zn(i);return s?dt.createElement(Ea,{key:i,text:t?a:""},dt.createElement(ma,{$gap:o/3},dt.createElement(s,{size:n?o+2:o,fill:r}),n&&dt.createElement(ui,{size:o,color:r},a))):null}))},Er=vt.div`
543
- visibility: hidden;
544
- `,Sr=vt.div`
545
- display: flex;
546
- flex-direction: column;
547
- align-self: stretch;
548
- padding: 16px;
549
- width: calc(100% - 32px);
550
- border-radius: 16px;
551
- background-color: ${({theme:e,$status:t,$bgColor:n})=>n||(t?e.text[t]+si.opacity.hex["010"]:e.colors.secondary+si.opacity.hex["005"])};
552
- opacity: ${({$faded:e})=>e?.5:1};
553
-
554
- ${({theme:e,$status:t,$bgColorHover:n,$withClick:o})=>o?Tt`
555
- &:hover {
556
- cursor: pointer;
557
- background-color: ${n||(t?e.text[t]+si.opacity.hex["020"]:e.colors.secondary+si.opacity.hex["010"])};
558
- ${Er} {
559
- visibility: visible;
560
- }
561
- }
562
- `:`\n &:hover {\n ${Er} {\n visibility: visible;\n }\n }\n `}
563
- `,Cr=vt.div`
564
- display: flex;
565
- align-items: center;
566
- gap: 8px;
567
- margin-left: auto;
568
- `,Tr=vt(ui)`
569
- margin-right: 16px;
570
- `,Ar=vt(ui)`
571
- font-size: 10px;
572
- color: ${({theme:e})=>e.text.grey};
573
- `,Dr=({title:e,subTitle:t,hoverText:n,onClick:o,renderActions:i,iconProps:{icon:a,icons:r,iconSrc:s,iconSrcs:l}={},visualProps:{status:d,faded:c,bgColor:p,bgColorHover:u,monitors:m,monitorsWithLabels:h,componentsUnderTitles:g}={},checkboxProps:{withCheckbox:x,isCheckboxDisabled:f,isChecked:$,isLoading:y,onCheckboxChange:b}={},extendableProps:{withExtend:w,isExtended:k,renderExtended:v}={},...E})=>{const S=si.useTheme(),[C,T]=ut(k||!1),[A,D]=ut(0),N=ht(null),I=ht(null),O=ht(null);return mt(()=>{if(N.current){const e=N.current.clientWidth,t=I.current?.clientWidth||0;D(e-((x?125:85)+t))}},[x]),dt.createElement(Sr,{ref:N,$status:d,$faded:c,$bgColor:p,$bgColorHover:u,$withClick:!!o,onClick:o,...E},dt.createElement(ma,{$gap:8},dt.createElement(ma,{$gap:16},y?dt.createElement(Wa,null):x?dt.createElement(Ta,{value:$,onChange:b,disabled:f}):null,r?.length||l?.length?dt.createElement(wr,{icons:r,iconSrcs:l,status:d,id:`${e}-${t}`}):a||s?dt.createElement($r,{icon:a,src:s,status:d}):null),dt.createElement(ha,{$gap:4},e&&dt.createElement(gr,{maxWidth:A,text:e,textSize:14}),dt.createElement(ma,{$gap:4},t&&dt.createElement(gr,{maxWidth:A-(O.current?.clientWidth||0),text:t,textSize:10,textColor:S.text.grey}),m&&m.length>0&&dt.createElement(ma,{$gap:4,ref:O},t&&dt.createElement(Ar,null,"•"),dt.createElement(vr,{monitors:m,withLabels:h,size:10}))),g&&g.length>0?dt.createElement(ma,{$gap:4},g?.map((e,t)=>dt.createElement(ct,{key:`componentsUnderTitles-${t}`},e))):null),dt.createElement(Cr,{ref:I},!!n&&dt.createElement(Er,null,dt.createElement(Tr,{size:14,family:"secondary"},n)),i&&i(),w&&dt.createElement(ct,null,dt.createElement(er,{orientation:"vertical",length:"16px",margin:"0 2px"}),dt.createElement(dr,{onClick:()=>T(e=>!e)},dt.createElement(Ha,{extend:C}))))),C&&v&&dt.createElement(ha,null,dt.createElement(er,{margin:"16px 0"}),v()))},Nr=vt(ma)`
574
- width: 100%;
575
- justify-content: space-between;
576
- `,Ir=vt(ui)`
577
- font-size: 12px;
578
- color: ${({theme:e})=>e.text.grey};
579
- `,Or=vt(ui)`
580
- font-size: 10px;
581
- color: ${({theme:e})=>e.text.darker_grey};
582
- `,_r=vt.div`
583
- display: flex;
584
- align-items: center;
585
- gap: 8px;
586
- margin-left: auto;
587
- `,zr=vt(ui)`
588
- font-size: 12px;
589
- text-align: right;
590
- `,Rr=({title:e,subTitle:t,tooltip:n,value:o})=>dt.createElement(Nr,null,dt.createElement(ha,{$gap:4},dt.createElement(Ea,{text:n||""},e&&dt.createElement(Ir,null,e),t&&dt.createElement(Or,null,t))),dt.createElement(_r,null,o?.status?dt.createElement(ar,{status:"transitioning"===o.status?sn.Loading:o.status,title:o.text||o.status,withBorder:!0,withIcon:!0}):dt.createElement(zr,null,o?.text||"-"))),Fr=vt(ha)`
591
- width: 100%;
592
- `,Lr=({containerName:e,actualDevices:t,started:n,ready:o,instrumentationInstances:i})=>{const a=pt(()=>{const e=[];return n?.name&&e.push(dt.createElement(ar,{status:ho(n.value)?vo(n.value)?an.Success:an.Error:an.Default,title:n.name,withIcon:!0,withBorder:!0,size:8})),o?.name&&e.push(dt.createElement(ar,{status:ho(o.value)?vo(o.value)?an.Success:an.Error:an.Default,title:o.name,withIcon:!0,withBorder:!0,size:8})),e},[n?.name,n?.value,o?.name,o?.value]);return dt.createElement(Dr,{title:e.value,subTitle:i.length?`${i.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:a},renderActions:()=>dt.createElement(ar,{status:an.Info,title:"Instrumentation Device",subtitle:t.value&&"[]"!==t.value?t.value:"none",withBorder:!0}),extendableProps:{isExtended:!!i.length,renderExtended:()=>dt.createElement(Fr,{$gap:24},i.map((e,t)=>dt.createElement(Fr,{key:`process-${t}`,$gap:8},dt.createElement(Rr,{title:`Instrumented Process #${t+1}`,subTitle:e.message?.value||"",value:{status:e.healthy.status,text:e.healthy.status===an.Success?"healthy":"unhealthy"}}),e.identifyingAttributes?.map(({name:e,value:t})=>dt.createElement(Rr,{key:`describe-${e}-${t}`,title:e,subTitle:"",value:{text:t,status:void 0}})))))}})};var Pr={nodeWidth:295,nodeHeight:80,framePadding:12};const Mr=vt(ha)`
593
- align-items: center !important;
594
- justify-content: center !important;
595
- align-self: stretch;
596
-
597
- // negative width applied here because of the padding left&right
598
- width: ${({$nodeWidth:e})=>e-40+"px"};
599
- min-height: 50px;
600
- padding: 16px 24px 16px 16px;
601
- gap: 4px;
602
-
603
- cursor: pointer;
604
- background-color: transparent;
605
- border-radius: 16px;
606
- border: 1px dashed ${({theme:e})=>e.colors.border};
607
-
608
- &:hover {
609
- background-color: ${({theme:e})=>e.colors.dropdown_bg_2+si.opacity.hex["030"]};
610
- }
611
- `,Br=vt(ma)`
612
- gap: 4px;
613
- `,jr=vt(ui)`
614
- font-size: 14px;
615
- font-weight: 600;
616
- `,Ur=vt(ui)`
617
- font-size: 12px;
618
- color: ${({theme:e})=>e.text.grey};
619
- text-align: center;
620
- `,Wr=ft(({id:e,data:t})=>{const{nodeWidth:n,title:o,subTitle:i}=t,{isThisPending:a}=Go(),r=e.split("-")[0],s=a({entityType:r});return dt.createElement(Mr,{$nodeWidth:n,className:"nowheel nodrag"},s?dt.createElement(ct,null,dt.createElement(Br,null,dt.createElement(Wa,null),dt.createElement(jr,{family:"secondary"},"adding ",r,"s")),dt.createElement(Ur,null,"Just a few more seconds...")):dt.createElement(ct,null,dt.createElement(Br,null,dt.createElement(Ke,null),dt.createElement(jr,{family:"secondary",decoration:"underline"},o)),dt.createElement(Ur,null,i)),dt.createElement(At,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}),dt.createElement(At,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}))});Wr.displayName=Wr.name;const Vr=vt.div`
621
- width: ${({$nodeWidth:e})=>`${e}px`};
622
- `,Hr=ft(({id:e,data:t})=>{const n=si.useTheme(),{nodeWidth:o,id:i,type:a,status:r,faded:s,title:l,subTitle:d,icon:c,icons:p,iconSrc:u,iconSrcs:m,monitors:h,isActive:g,raw:x}=t,f=a===en.Source,$="boolean"==typeof g,{isThisPending:y}=Go(),b=y({entityType:a,entityId:i}),{selectedSources:w,setSelectedSources:k}=Ko(),v={...w},{namespace:E,name:S,kind:C}=x;f&&!v[E]&&(v[E]=[]);const T=f?v[E].findIndex(e=>e.name===S&&e.kind===C):-1;return dt.createElement(Vr,{"data-id":e,$nodeWidth:o,className:"nowheel nodrag"},dt.createElement(Dr,{title:l,subTitle:d,onClick:()=>{},renderActions:()=>{const e=r?io(r,n):$?io(g?an.Success:an.Info,n):void 0,t=$?`${a} is ${g?"enabled":"disabled"}`:void 0,o=f&&(!x.conditions?.length||x.conditions?.some(({status:e})=>"loading"===e));return b?dt.createElement(Wa,null):e?dt.createElement(Ea,{text:t},dt.createElement(e,{size:20})):o?dt.createElement(Wa,null):null},iconProps:{icon:c,icons:p,iconSrc:u,iconSrcs:m},visualProps:{status:r,faded:s||$&&!g,monitors:h},checkboxProps:{withCheckbox:f,isChecked:-1!==T,onCheckboxChange:()=>{-1===T?v[E].push(x):v[E].splice(T,1),k(v)},isCheckboxDisabled:b}}),dt.createElement(At,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}),dt.createElement(At,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}))});Hr.displayName=Hr.name;const qr=vt.div`
623
- width: ${({$nodeWidth:e})=>`${e}px`};
624
- height: ${({$nodeHeight:e})=>`${e}px`};
625
- opacity: 0;
626
- `,Yr=ft(({data:e})=>{const{nodeWidth:t,nodeHeight:n}=e;return dt.createElement(qr,{$nodeWidth:t,$nodeHeight:n,className:"nowheel nodrag"},dt.createElement(At,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}),dt.createElement(At,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}))});Yr.displayName=Yr.name;const Gr=vt.div`
627
- width: ${({$nodeWidth:e})=>e}px;
628
- height: ${({$nodeHeight:e})=>e}px;
629
- background: transparent;
630
- border: 1px dashed ${({theme:e})=>e.colors.border};
631
- border-radius: 24px;
632
- `,Kr=ft(({data:e})=>{const{nodeWidth:t,nodeHeight:n}=e;return dt.createElement(Gr,{$nodeWidth:t,$nodeHeight:n,className:"nowheel nodrag"},dt.createElement(At,{type:"source",position:Dt.Right,style:{visibility:"hidden"}}),dt.createElement(At,{type:"target",position:Dt.Left,style:{visibility:"hidden"}}))});Kr.displayName=Kr.name;const{framePadding:Jr}=Pr,Xr=vt.div`
633
- position: relative;
634
- z-index: 1;
635
- width: fit-content;
636
- height: ${({$nodeHeight:e})=>e}px;
637
- background: transparent;
638
- border: none;
639
- overflow-y: auto;
640
- overflow-x: hidden;
641
- `,Qr=vt.div`
642
- margin: ${Jr}px 0;
643
- `,Zr=vt.div`
644
- position: fixed;
645
- bottom: 0;
646
- left: 50%;
647
- transform: translateX(-50%);
648
-
649
- width: 100%;
650
- height: 100px;
651
- padding-bottom: 12px;
652
-
653
- background: ${({theme:e,$hide:t})=>t?"transparent":`linear-gradient(to top, ${e.colors.primary}, transparent)`};
654
- display: flex;
655
- align-items: flex-end;
656
- justify-content: center;
657
-
658
- pointer-events: none;
659
- `,es=ft(({data:e,...t})=>{const{nodeHeight:n,items:o,onScroll:i}=e,{onClickNode:a}=qi(),r=ht(null),[s,l]=ut(!1);return mt(()=>{const e=e=>{e.stopPropagation();const{clientHeight:t,scrollHeight:n,scrollTop:o}=e.target||{clientHeight:0,scrollHeight:0,scrollTop:0};i&&i({clientHeight:t,scrollHeight:n,scrollTop:o}),l(n-o<=t)},{current:t}=r;return t?.addEventListener("scroll",e),()=>t?.removeEventListener("scroll",e)},[i]),dt.createElement(Xr,{ref:r,$nodeHeight:n,className:"nowheel nodrag"},o.map(e=>dt.createElement(Qr,{key:e.id,onClick:t=>{t.stopPropagation(),a(t,e)}},dt.createElement(Hr,{...t,type:un.Base,id:e.id,data:e.data}))),dt.createElement(Zr,{$hide:s}))});es.displayName=es.name;const ts=vt(ui)`
660
- color: ${({theme:e})=>e.text.grey};
661
- `,ns=({icon:e,title:t,badge:n,badgeTooltip:o,loading:i})=>dt.createElement(ma,{$gap:6},e&&dt.createElement(e,null),dt.createElement(ts,{size:14},t),void 0!==n&&dt.createElement(Ea,{text:o},dt.createElement(Oi,{label:n})),i&&dt.createElement(Wa,null)),os=vt.div`
662
- position: relative;
663
- width: ${({$nodeWidth:e})=>`${e}px`};
664
- padding: 12px 0px 16px 0px;
665
- gap: 16px;
666
- display: flex;
667
- align-items: center;
668
- border-bottom: 1px solid ${({theme:e})=>e.colors.border};
669
- `,is=vt(ma)`
670
- margin-left: 16px;
671
- `,as=vt(ma)`
672
- margin-left: auto;
673
- `,rs=vt(Fi)`
674
- width: 24px;
675
- height: 24px;
676
- padding: 0;
677
- `,ss=vt.div`
678
- position: absolute;
679
- bottom: -2px;
680
- left: 0;
681
- background-color: ${({theme:e})=>e.colors.majestic_blue};
682
- border-radius: 32px;
683
- height: 4px;
684
- width: ${({percent:e})=>`${e}%`};
685
- transition: width 0.3s;
686
- `,ls=ft(({id:e,data:t})=>{const{nodeWidth:n,title:o,icon:i,badge:a,badgeTooltip:r,isFetching:s,sources:l}=t,d=e.split("-")[0],{isAwaitingInstrumentation:c,sourcesToCreate:p,sourcesCreated:u,sourcesToDelete:m,sourcesDeleted:h}=Vo(),g=d===en.Source&&c,x=(p?Math.floor(100/p*u):m?Math.floor(100/m*h):0)||1,{selectedSources:f,setSelectedSources:$}=Ko(),{isThisPending:y}=Go(),[b,w]=pt(()=>{let e=0;return Object.values(f).forEach(t=>{e+=t.length}),[0!==e,e]},[f]);return dt.createElement(os,{$nodeWidth:n,className:"nowheel nodrag"},d===en.Source&&dt.createElement(is,null,dt.createElement(Ta,{partiallyChecked:b&&l?.length!==w,value:b&&l?.length===w,onChange:e=>{if(e){const e={};l?.forEach(t=>{const n={namespace:t.namespace,name:t.name,kind:t.kind};y({entityType:en.Source,entityId:n})||(e[t.namespace]?e[t.namespace].push(t):e[t.namespace]=[t])}),$(e)}else $({})},disabled:!l?.length})),dt.createElement(ns,{icon:i,title:o,badge:g?`${x}%`:a,badgeTooltip:r,loading:s&&!g}),dt.createElement(ds,{entityType:d}),g&&dt.createElement(ss,{percent:x}))}),ds=ft(({entityType:e})=>{const t=si.useTheme(),{onClickNode:n}=qi();return dt.createElement(as,null,dt.createElement(rs,{"data-id":`add-${e}`,variant:"primary",onClick:t=>{t.stopPropagation(),n(void 0,{data:{type:e===en.Source?hn.AddSource:e===en.Destination?hn.AddDestination:e===en.Action?hn.AddAction:hn.AddRule}})}},dt.createElement(Ke,{fill:t.colors.primary,size:18})))});ls.displayName=ls.name,ds.displayName=ds.name;const cs=vt(ha)`
687
- max-width: 300px;
688
- padding: 12px;
689
- border-radius: 12px;
690
- background-color: ${({theme:e})=>e.colors.dropdown_bg};
691
- justify-content: center;
692
- `,ps=ft(({id:e,data:t})=>{const{title:n,subTitle:o}=t;return dt.createElement(cs,{"data-id":e},dt.createElement(Ql,{title:n,subTitle:o}))});ps.displayName=ps.name;const us=vt.div`
693
- position: absolute;
694
- transform: ${({$labelX:e,$labelY:t})=>`translate(-50%, -50%) translate(${e}px, ${t}px)`};
695
- z-index: 1;
696
- width: 75px;
697
- padding: 2px 6px;
698
- background-color: ${({theme:e})=>e.colors.primary};
699
- border-radius: 360px;
700
- border: 1px solid ${({$isError:e,theme:t})=>e?t.colors.dark_red:t.colors.border};
701
- color: ${({$isError:e,theme:t})=>e?t.text.error:t.text.light_grey};
702
- font-family: ${({theme:e})=>e.font_family.secondary};
703
- font-size: 10px;
704
- font-weight: 400;
705
- text-transform: uppercase;
706
- display: flex;
707
- align-items: center;
708
- justify-content: center;
709
- `,ms=ft(({id:e,sourceX:t,sourceY:n,targetX:o,targetY:i,sourcePosition:a,targetPosition:r,data:s,style:l})=>{const[d]=Nt({sourceX:t,sourceY:n,sourcePosition:a,targetX:o,targetY:i,targetPosition:r});return dt.createElement(dt.Fragment,null,dt.createElement(It,{id:e,path:d,style:l}),dt.createElement(Ot,null,dt.createElement(us,{$labelX:s?.isMultiTarget?o-50:t+50,$labelY:s?.isMultiTarget?i:n,$isError:s?.isError,className:"nodrag nopan"},dt.createElement(Ea,{text:"Heads up! The data-flow metrics you see are calculated over 10-second intervals."},s?.label))))});ms.displayName=ms.name;const hs=vt.div`
710
- padding: 6px;
711
- border-radius: 12px;
712
- background-color: ${({theme:e})=>e.colors.dropdown_bg};
713
- cursor: pointer;
714
- `,gs=vt.div`
715
- position: relative;
716
- `,xs=vt(ma)`
717
- position: absolute;
718
- bottom: -24px;
719
- left: 50%;
720
- transform: translateX(-50%);
721
- gap: 4px;
722
- `,fs=vt.div`
723
- position: absolute;
724
- bottom: 100%;
725
- left: 100%;
726
- width: 300px;
727
- padding: 12px;
728
- border-radius: 16px;
729
- border: 1px solid ${({theme:e})=>e.colors.border};
730
- background-color: ${({theme:e})=>e.colors.dropdown_bg};
731
- `,$s=({title:e,value:t})=>{const n=si.useTheme();return dt.createElement(ma,{$justifyContent:"space-between"},dt.createElement(ui,{size:12,color:n.text.info},e),dt.createElement(ui,{size:12,family:"secondary"},t))},ys=ft(({id:e,data:t})=>{const{id:n,status:o,title:i,icons:a,serviceMapEntry:r}=t,{activeNodeType:s,activeNodeId:l}=Bt(),d=si.useTheme(),c=o===an.Error?io(o,d):null;return dt.createElement(dt.Fragment,null,dt.createElement(At,{type:"source",position:Dt.Bottom,style:{visibility:"hidden"}}),dt.createElement(At,{type:"target",position:Dt.Top,style:{visibility:"hidden"}}),dt.createElement(gs,{"data-id":e},dt.createElement(hs,null,dt.createElement(wr,{id:n,icons:a,status:o})),dt.createElement(xs,null,c&&dt.createElement(c,null),dt.createElement(gr,{maxWidth:100,text:i})),s===un.MapItem&&l===e&&dt.createElement(fs,null,dt.createElement(ma,{$gap:12},dt.createElement(wr,{id:n,icons:a,status:o}),dt.createElement(ui,{size:20},i)),r&&r.services.length>0?r.services.map(({serviceName:e,requests:t,dateTime:o})=>dt.createElement("div",{key:`from-${n}-to-${e}`},dt.createElement(er,null),dt.createElement($s,{title:"Connected Service",value:e}),dt.createElement($s,{title:"Outgoing Requests",value:t}),dt.createElement($s,{title:"Last Requested At",value:new Date(o).toLocaleString()}))):dt.createElement(dt.Fragment,null,dt.createElement(er,null),dt.createElement(Ql,{title:"No outgoing connections",subTitle:" "})))))});ys.displayName=ys.name;const bs=vt.div`
732
- display: flex;
733
- flex-direction: column;
734
- gap: 16px;
735
- ${({$maxWidth:e})=>e&&`max-width: ${e};`}
736
- `,ws=vt.div`
737
- display: flex;
738
- align-items: center;
739
- gap: 16px;
740
- `,ks=vt.div`
741
- width: 50px;
742
- height: 50px;
743
- border-radius: 8px;
744
- background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
745
- background-size: 200% 100%;
746
- animation: ${si.animations.shimmer} 10s infinite linear;
747
- `,vs=vt(ha)`
748
- flex: 1;
749
- gap: 12px;
750
- `,Es=vt.div`
751
- width: ${({$width:e})=>e};
752
- height: 16px;
753
- background: ${({theme:e})=>`linear-gradient(90deg, ${e.colors.dropdown_bg_2} 25%, ${e.colors.dropdown_bg_2} 50%, ${e.colors.border} 75%)`};
754
- background-size: 200% 100%;
755
- animation: ${si.animations.shimmer} 1.5s infinite linear;
756
- border-radius: 4px;
757
- `,Ss=({size:e=5,maxWidth:t})=>dt.createElement(bs,{$maxWidth:t},[...Array(e)].map((e,t)=>dt.createElement(ws,{key:t},dt.createElement(ks,null),dt.createElement(vs,null,dt.createElement(Es,{$width:"80%"}),dt.createElement(Es,{$width:"100%"}))))),Cs=vt.div`
758
- width: ${({$nodeWidth:e})=>`${e}px`};
759
- `,Ts=ft(({id:e,data:t})=>{const{nodeWidth:n}=t;return dt.createElement(Cs,{"data-id":e,$nodeWidth:n,className:"nowheel nodrag"},dt.createElement(Ss,{size:3}))});Ts.displayName=Ts.name;const As=vt.div`
760
- height: calc(100vh - 160px);
761
- .react-flow__attribution {
762
- visibility: hidden;
763
- }
764
- `,Ds=vt.div`
765
- button {
766
- padding: 8px;
767
- margin: 8px;
768
- border-radius: 8px;
769
- border: 1px solid ${({theme:e})=>e.colors.border} !important;
770
- background-color: ${({theme:e})=>e.colors.dropdown_bg};
771
- path {
772
- fill: ${({theme:e})=>e.text.secondary};
773
- }
774
- &:hover {
775
- background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
776
- }
777
- }
778
- `,Ns={[un.Header]:ls,[un.Add]:Wr,[un.Base]:Hr,[un.Edged]:Yr,[un.Frame]:Kr,[un.Scroll]:es,[un.Skeleton]:Ts,[un.MapItem]:ys,[un.NoData]:ps},Is={[mn.Labeled]:ms},Os=({nodes:e,edges:t,onNodesChange:n,onEdgesChange:o,fitView:i=!1,zoomOnScroll:a=!1})=>{const{onClickNode:r}=qi(),{setActiveNodeType:s,setActiveNodeId:l}=Bt();return dt.createElement(As,null,dt.createElement(_t,{fitView:i,zoomOnScroll:a,nodes:e,nodeTypes:Ns,edges:t,edgeTypes:Is,onNodeClick:r,onNodesChange:e=>{setTimeout(()=>n(e),0)},onEdgesChange:e=>{setTimeout(()=>o(e),0)},onBlur:()=>{s(null),l(null)}},dt.createElement(Ds,null,dt.createElement(zt,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:{duration:300,padding:.02,includeHiddenNodes:!0}}))))},_s=vt.div`
779
- position: relative;
780
- `,zs=({defaultLanguage:e=Qt.Unknown,defaultVersion:t="",handleSave:n})=>{const{addNotification:o}=qo(),{formData:i,handleFormChange:a,resetFormData:r}=Wi({language:e,version:t}),[s,l]=ut(!1),d=()=>{l(!1),r()};return dt.createElement(_s,null,dt.createElement(dr,{tooltip:zo.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{l(!0)}},dt.createElement(Xe,null)),dt.createElement(pc,{flipX:!0,clientX:36,isOpen:s,onClose:d,onSave:()=>{!i.version||fo(i.version)?(n(i),d()):o({type:an.Warning,message:_o.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:()=>{n({language:null,version:""}),d()},title:zo.OVERRIDE_RUNTIME_DETAILS,warning:zo.OVERRIDE_RUNTIME_WARNING},dt.createElement(od,{title:zo.LANGUAGE,options:No,value:No.find(e=>e.id===i.language),onSelect:e=>a("language",e.id),required:!0}),dt.createElement(Yl,{title:zo.RUNTIME_VERSION,placeholder:zo.VERSION_PLACEHOLDER,value:i.version,onChange:e=>a("version",e.target.value),required:!1})))},Rs=vt(ma)`
781
- width: 100%;
782
- justify-content: center;
783
- `,Fs=({containerName:e,language:t,runtimeVersion:n,overriden:o,instrumented:i,instrumentationMessage:a,otelDistroName:r,callbackRuntimeOverride:s})=>{const l=si.useTheme(),d=i?an.Success:a?an.Info:an.Warning,c=i?rn.INSTRUMENTED:a?rn.NOT_INSTRUMENTED:rn.INSTRUMENTING;return dt.createElement(Dr,{title:e,subTitle:`${t?Do[t]:"no runtime info"}`+(n?` • Runtime Version: ${n}`:""),iconProps:{icon:Vn(t)},extendableProps:{isExtended:!!a,renderExtended:()=>dt.createElement(Rs,null,dt.createElement(ui,{size:12,family:"secondary",color:l.text.info},$o(a)))},renderActions:()=>dt.createElement(dt.Fragment,null,dt.createElement(ar,{status:d,title:c,subtitle:r||void 0,withIcon:!0,withBorder:!0}),o&&dt.createElement(ar,{status:an.Default,forceIcon:Qe,title:zo.OVERIDDEN,withIcon:!0,withBorder:!0}),s&&dt.createElement(zs,{defaultLanguage:t,defaultVersion:n,handleSave:t=>s({...t,containerName:e})}))})},Ls=vt.tr`
784
- cursor: ${({$withHover:e})=>e?"pointer":"default"};
785
- opacity: ${({$faded:e})=>e?.5:1};
786
- `,Ps=vt.td`
787
- position: relative;
788
- width: fit-content;
789
- padding: 16px 8px 16px ${({$isFirst:e})=>e?"16px":"8px"};
790
- color: ${({theme:e})=>e.text.secondary};
791
- font-family: ${({theme:e})=>e.font_family.primary};
792
- font-size: 14px;
793
- white-space: nowrap;
794
- `,Ms=vt(ui)`
795
- font-size: 14px;
796
- color: ${({$color:e,theme:t})=>e??t.text.secondary};
797
- line-height: 16px;
798
-
799
- overflow: hidden;
800
- overflow-wrap: break-word;
801
- white-space: wrap;
802
- text-wrap: wrap;
803
- text-overflow: ellipsis;
804
- display: -webkit-box;
805
- -webkit-line-clamp: 2;
806
- -webkit-box-orient: vertical;
807
- `,Bs=vt.div`
808
- position: absolute;
809
- top: 0;
810
- left: 0;
811
- z-index: -1;
812
- width: ${({$width:e})=>e}px;
813
- height: ${({$height:e})=>e}px;
814
- border-radius: 16px;
815
- background-color: ${({theme:e,$hovered:t,$status:n})=>t?n?e.text[n]+si.opacity.hex["020"]:e.colors.majestic_blue+si.opacity.hex["030"]:n?e.text[n]+si.opacity.hex["010"]:e.colors.secondary+si.opacity.hex["005"]};
816
- `,js=({index:e,columns:t,cells:n,onClick:o,status:i,faded:a})=>{const{containerRef:r,containerHeight:s,containerWidth:l}=Gi(),[d,c]=ut(!1);return dt.createElement(Ls,{ref:r,onMouseEnter:()=>!!o&&c(!0),onMouseLeave:()=>!!o&&c(!1),onClick:()=>!!o&&o(),$withHover:!!o,$faded:a},t.map(({key:t},o)=>{const a=n.find(({columnKey:e})=>e===t);if(!a)return null;const{value:r,textColor:c,withTooltip:p,icon:u,component:m}=a;return dt.createElement(Ps,{key:`table-row-${t}-${r}-${e}-${o}`,$isFirst:0===o},u?dt.createElement($r,{icon:u}):m?dt.createElement(m,null):dt.createElement(Ea,{text:p&&r?String(r):""},dt.createElement(Ms,{$color:c},po(r)?"-":r)),0===o&&dt.createElement(Bs,{$height:s,$width:l,$top:s*e,$hovered:d,$status:i}))}))},Us=vt.div`
817
- width: 100%;
818
- `,Ws=vt.table`
819
- position: relative;
820
- z-index: 0;
821
- width: 100%;
822
- border-collapse: separate;
823
- border-spacing: 0 12px;
824
- `,Vs=vt.thead`
825
- // only supported with "border-collapse: collapse;"
826
- // border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
827
- // border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
828
- `,Hs=vt.th`
829
- // only required with "border-collapse: separate;"
830
- border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
831
- border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
832
-
833
- padding: 8px;
834
- `,qs=vt(ma)`
835
- cursor: pointer;
836
- &:hover {
837
- * {
838
- color: ${({theme:e})=>e.text.secondary};
839
- }
840
- }
841
- `,Ys=vt(ui)`
842
- color: ${({theme:e})=>e.text.darker_grey};
843
- font-family: ${({theme:e})=>e.font_family.secondary};
844
- text-transform: uppercase;
845
- font-size: 12px;
846
- font-weight: 500;
847
- text-wrap: nowrap;
848
- `,Gs=vt.tbody``,Ks=({columns:e,rows:t})=>{const[n,o]=ut(ln.Ascending),[i,a]=ut("name"),r=xt(e=>{i===e?o(e=>e===ln.Ascending?ln.Descending:ln.Ascending):(a(e),o(ln.Ascending))},[i]),s=pt(()=>{const o=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(i?[...t].sort((e,t)=>{const a=o(e,i),r=o(t,i);return(n===ln.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:n,cells:o,onClick:i},a)=>dt.createElement(js,{key:`row-${a}`,index:a,columns:e,cells:o,onClick:i,status:t,faded:n}))},[e,t,i,n]);return dt.createElement(Us,null,dt.createElement(Ws,null,dt.createElement(Vs,null,dt.createElement("tr",null,e.map(({key:e,title:t,sortable:n})=>dt.createElement(Hs,{key:`column-${e}`},n?dt.createElement(qs,{onClick:()=>r(e)},dt.createElement(Ze,null),dt.createElement(Ys,null,t)):dt.createElement(Ys,null,t))))),dt.createElement(Gs,null,s)))};var Js;!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"}(Js||(Js={}));const Xs=vt.div`
849
- display: flex;
850
- flex-wrap: wrap;
851
- gap: 16px 32px;
852
- width: 100%;
853
- `,Qs=vt.div`
854
- display: flex;
855
- flex-direction: column;
856
- gap: 2px;
857
- width: ${({$width:e})=>e};
858
- `,Zs=vt(ui)`
859
- color: ${({theme:e})=>e.text.grey};
860
- font-size: 10px;
861
- line-height: 16px;
862
- `,el=vt(ui)`
863
- font-size: 12px;
864
- white-space: pre-wrap;
865
- `,tl=({data:e})=>dt.createElement(Xs,null,e?.map(({type:e,title:t,titleIcon:n,tooltip:o,value:i},a)=>dt.createElement(Qs,{key:`data-field-${t||(i?JSON.stringify(i):a)}`,$width:e&&[Js.Code,Js.Table].includes(e)?"inherit":e&&[Js.Loader,Js.Divider,Js.CopyText].includes(e)?"100%":"unset"},dt.createElement(Ea,{text:o,withIcon:!0},dt.createElement(ma,{$alignItems:"center",$gap:4},n&&dt.createElement(n,{size:14}),!!t&&dt.createElement(Zs,{transform:"capitalize"},t))),dt.createElement(nl,{type:e,value:i})))),nl=({type:e,value:t})=>{const n=si.useTheme();switch(e){case Js.Divider:return dt.createElement(er,{length:"100%",margin:"0"});case Js.Loader:return dt.createElement(ga,null,dt.createElement(Wa,{scale:1.2}));case Js.Monitors:return dt.createElement(vr,{monitors:t?.split(", ")||[],withLabels:!0,color:n.colors.secondary});case Js.Badge:{const{label:e,filled:n,...o}=so(t,{label:"-",filled:!1});return dt.createElement(Oi,{label:e,filled:n,...o})}case Js.Code:{const{language:e,code:n,...o}=so(t,{language:"",code:""});return dt.createElement(La,{language:e,code:n,...o})}case Js.Table:{const{columns:e,rows:n,...o}=so(t,{columns:[],rows:[{status:void 0,cells:[]}]});return dt.createElement(Ks,{columns:e,rows:n,...o})}case Js.ActiveStatus:return dt.createElement(ar,{status:"true"==t?an.Success:an.Error,title:"true"==t?zo.ENABLED:zo.DISABLED,size:10,withIcon:!0,withBorder:!0});case Js.CopyText:{const e="string"==typeof t?t:JSON.stringify(t);return dt.createElement(pr,{value:e})}default:return dt.createElement(el,null,Eo("string"==typeof t?t||"-":""))}},ol=vt.div`
866
- display: flex;
867
- flex-direction: column;
868
- align-items: flex-start;
869
- align-self: stretch;
870
- gap: 16px;
871
- padding: 24px;
872
- border-radius: 24px;
873
- border: 1px solid ${({theme:e})=>e.colors.border};
874
- background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+si.opacity.hex["010"]:"transparent"};
875
- transition: background-color 0.3s;
876
- `,il=vt.div`
877
- width: 100%;
878
- display: flex;
879
- flex-direction: column;
880
- gap: 4px;
881
- cursor: ${({$clickable:e})=>e?"pointer":"default"};
882
- `,al=vt(ui)`
883
- width: 100%;
884
- display: flex;
885
- align-items: center;
886
- gap: 8px;
887
- font-size: 16px;
888
- `,rl=vt(ui)`
889
- font-size: 12px;
890
- color: ${({theme:e})=>e.text.grey};
891
- `,sl=vt(ma)`
892
- margin-left: auto;
893
- gap: 8px;
894
- `,ll=({title:e="Details",titleBadge:t,titleIcon:n,description:o,action:i,withExtend:a,initialExtended:r=!1,data:s,children:l})=>{const[d,c]=ut(r),[p,u]=ut(!1);return dt.createElement(ol,{$hovered:p},e||n||o||i?dt.createElement(il,{$clickable:a||!1,onClick:()=>a&&c(e=>!e),onMouseEnter:()=>a&&u(!0),onMouseLeave:()=>a&&u(!1)},dt.createElement(ma,null,dt.createElement(ma,{$alignItems:"center",$gap:8},n&&dt.createElement(ma,{$alignItems:"center"},dt.createElement(n,{size:20})),!!e&&dt.createElement(al,{transform:"capitalize"},e),t===sn.Loading?dt.createElement(Wa,null):void 0!==t&&dt.createElement(Oi,{label:t})),(!!i||a)&&dt.createElement(sl,null,"function"==typeof i?dt.createElement(i,null):i,a&&dt.createElement(Ha,{extend:d}))),!!o&&dt.createElement(rl,null,o)):null,(!a||a&&d)&&(l||dt.createElement(tl,{data:s})))},dl=vt.div`
895
- visibility: hidden;
896
- `,cl=vt(ma)`
897
- align-self: stretch;
898
- width: calc(100% - 32px);
899
- padding: 16px;
900
- border-radius: 16px;
901
- background-color: ${({theme:e})=>e.colors.secondary+si.opacity.hex["005"]};
902
- ${({theme:e,$withClick:t})=>t?Tt`
903
- &:hover {
904
- cursor: pointer;
905
- background-color: ${e.colors.secondary+si.opacity.hex["010"]};
906
- ${dl} {
907
- visibility: visible;
908
- }
909
- }
910
- `:`\n &:hover {\n ${dl} {\n visibility: visible;\n }\n }\n `}
911
- `,pl=vt(ma)`
912
- margin-left: auto;
913
- gap: 8px;
914
- `,ul=vt(ui)`
915
- font-size: 10px;
916
- color: ${({theme:e})=>e.text.grey};
917
- `,ml=({title:e,subTitle:t,icons:n,iconSrcs:o,onClick:i,renderActions:a})=>{const r=si.useTheme(),[s,l]=ut(0),d=ht(null),c=ht(null);return mt(()=>{if(d.current){const e=d.current.clientWidth,t=c.current?.clientWidth||0;l(e-(85+t))}},[]),dt.createElement(cl,{ref:d,$gap:8,$withClick:!!i,onClick:i},dt.createElement(wr,{id:`${e}-${t}`,icons:n,iconSrcs:o}),e&&dt.createElement(gr,{maxWidth:s/2,text:e,textSize:14}),e&&t&&dt.createElement(ul,null,"•"),t&&dt.createElement(gr,{maxWidth:s/2,text:t,textSize:10,textColor:r.text.grey}),dt.createElement(pl,{ref:c},a&&dt.createElement(dt.Fragment,null,dt.createElement(er,{orientation:"vertical",length:"24px",margin:"0"}),a())))},hl=({isOpen:e,noOverlay:t,name:n,type:o,isLastItem:i,onApprove:a,onDeny:r})=>{const s=o===en.Source?"uninstrument":"delete";return dt.createElement(Zc,{isOpen:e,noOverlay:t,title:`${s.charAt(0).toUpperCase()+s.substring(1)}${n?` ${n}`:""}`,description:`Are you sure you want to ${s}?`,note:i?{type:an.Warning,title:`You're about to ${s} the last ${o||n}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:a},denyButton:{text:"Go Back",onClick:r}})},gl=vt(Fi)`
918
- display: flex;
919
- align-items: center;
920
- justify-content: center;
921
- font-size: 14px;
922
- gap: 6px;
923
- min-width: 100px;
924
- `,xl=({endpoint:e="/",variant:t="secondary"})=>dt.createElement(gl,{variant:t,onClick:()=>window.open(`https://docs.odigos.io${e}`,"_blank","noopener noreferrer")},dt.createElement(et,{size:18}),"Docs"),fl=vt(ma)`
925
- border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
926
- `,$l=vt(ui)`
927
- padding: 12px;
928
- font-size: 14px;
929
- color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
930
- border-bottom: 2px solid ${({theme:e,$selected:t})=>t?e.colors.majestic_blue:"transparent"};
931
- cursor: pointer;
932
- display: flex;
933
- align-items: center;
934
- gap: 8px;
935
- `,yl=({tabs:e,hideBorder:t=!1})=>e?.length?dt.createElement(fl,{$hideBorder:t},e.map(({label:e,icon:t,onClick:n,selected:o})=>dt.createElement($l,{key:`tab-${e}`,onClick:n,$selected:o},e,t&&dt.createElement(t,null)))):null,bl=vt.section`
936
- padding: 0px 32px;
937
- border-bottom: 1px solid ${({theme:e})=>e.colors.border};
938
- `,wl=vt.div`
939
- height: 76px;
940
- display: flex;
941
- justify-content: space-between;
942
- flex-shrink: 0;
943
- align-self: stretch;
944
- `,kl=vt.div`
945
- display: flex;
946
- align-items: center;
947
- gap: ${({$gap:e})=>e||16}px;
948
- `,vl=vt(ui)`
949
- font-size: 18px;
950
- line-height: 26px;
951
- max-width: ${({$maxWidth:e})=>e};
952
- overflow: hidden;
953
- white-space: nowrap;
954
- text-overflow: ellipsis;
955
- `,El=vt(Fi)`
956
- gap: 8px;
957
- `,Sl=vt(Fi)``,Cl=({onClose:e,width:t,icons:n,iconSrcs:o,title:i,titleTooltip:a,replaceTitleWith:r,actions:s,actionButtons:l=[],tabs:d})=>dt.createElement(bl,null,dt.createElement(wl,null,dt.createElement(kl,null,n?.length||o?.length?dt.createElement(wr,{icons:n,iconSrcs:o,id:`drawer-header-${i}`}):null,("function"==typeof r?dt.createElement(r,null):r||null)||dt.createElement(Ea,{text:a||i,withIcon:!!a},i&&dt.createElement(vl,{$maxWidth:`calc(${t} ${s||l.length?"/ 5":"- 192px"})`},i))),dt.createElement(kl,{$gap:2},s,l.map((e,t)=>dt.createElement(El,{key:`header-action-button-${t}`,...e})),dt.createElement(Sl,{"data-id":"drawer-close",variant:"secondary",onClick:e},dt.createElement(tt,{size:12})))),dt.createElement(yl,{tabs:d,hideBorder:!0})),Tl=vt.div`
958
- display: flex;
959
- justify-content: space-between;
960
- gap: 8px;
961
- padding: 24px 18px 24px 32px;
962
- border-top: 1px solid ${({theme:e})=>e.colors.border};
963
- background-color: ${({theme:e})=>e.colors.translucent_bg};
964
- transform: translateY(100%);
965
- `,Al=vt(ma)`
966
- margin-right: auto;
967
- `,Dl=vt(ma)`
968
- margin: 0 auto;
969
- `,Nl=vt(ma)`
970
- margin-left: auto;
971
- `,Il=vt(Fi)`
972
- min-width: 140px;
973
- font-size: 14px;
974
- `,Ol=({isOpen:e,leftButtons:t=[],centerButtons:n=[],rightButtons:o=[]})=>{const i=ua({container:Tl,animateIn:si.animations.slide.in.bottom,animateOut:si.animations.slide.out.bottom});return dt.createElement(i,{enter:e},dt.createElement(Al,null,t.map((e,t)=>dt.createElement(Il,{key:`footer-left-button-${t}`,...e}))),dt.createElement(Dl,null,n.map((e,t)=>dt.createElement(Il,{key:`footer-center-button-${t}`,...e}))),dt.createElement(Nl,null,o.map((e,t)=>dt.createElement(Il,{key:`footer-right-button-${t}`,...e}))))},_l=vt.div`
975
- position: fixed;
976
- top: 0;
977
- bottom: 0;
978
- ${({$position:e})=>e}: 0;
979
- z-index: 1000;
980
- width: ${({$width:e})=>e};
981
- background: ${({theme:e})=>e.colors.translucent_bg};
982
- box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+si.opacity.hex["010"]};
983
- overflow-y: auto;
984
- `,zl=vt.div`
985
- display: flex;
986
- flex-direction: column;
987
- height: 100%;
988
- `,Rl=vt.div`
989
- flex-grow: 1;
990
- padding: 24px 32px;
991
- overflow-y: auto;
992
- `,Fl=({isOpen:e,onClose:t,closeOnEscape:n=!0,position:o="right",width:i="300px",children:a,header:r,footer:s})=>{ta({key:"Escape",active:e&&n},()=>t());const l=ua({container:_l,animateIn:si.animations.slide.in[o],animateOut:si.animations.slide.out[o]});return e?Rt.createPortal(dt.createElement(dt.Fragment,null,dt.createElement(fa,{hidden:!e,onClick:t}),dt.createElement(l,{"data-id":"drawer",enter:e,$position:o,$width:i},dt.createElement(zl,null,dt.createElement(Cl,{onClose:t,width:i,...r}),dt.createElement(Rl,null,a),dt.createElement(Ol,{...s})))),document.body):null},Ll=vt.div`
993
- display: flex;
994
- align-items: center;
995
- gap: 6px;
996
- margin-bottom: 4px;
997
- `,Pl=vt(ui)`
998
- font-size: 14px;
999
- opacity: 0.8;
1000
- line-height: 22px;
1001
- overflow: hidden;
1002
- white-space: nowrap;
1003
- text-overflow: ellipsis;
1004
- color: ${({$status:e,theme:t})=>e?t.text[e]:t.text.secondary};
1005
- `,Ml=vt(ui)`
1006
- font-size: 12px;
1007
- color: ${({theme:e})=>e.text.darker_grey};
1008
- opacity: 0.8;
1009
- `,Bl=({title:e,required:t,tooltip:n,style:o,status:i})=>e?dt.createElement(Ll,{style:o},dt.createElement(Ea,{text:n,withIcon:!0},dt.createElement(Pl,{$status:i},e),!t&&dt.createElement(Ml,null,"(optional)"))):null,jl=vt.div`
1010
- display: flex;
1011
- flex-direction: column;
1012
- position: relative;
1013
- width: 100%;
1014
- `,Ul=vt.div`
1015
- width: 100%;
1016
- display: flex;
1017
- align-items: center;
1018
- height: 36px;
1019
- gap: 12px;
1020
- transition: border-color 0.3s;
1021
- border-radius: 32px;
1022
- border: 1px solid ${({theme:e})=>e.colors.border};
1023
- ${({$disabled:e})=>e&&Tt`
1024
- cursor: not-allowed;
1025
- opacity: 0.6;
1026
- `}
1027
- ${({$isActive:e,$hasError:t,$status:n})=>e?Tt`
1028
- border-color: ${({theme:e})=>e.colors.secondary};
1029
- `:t?Tt`
1030
- border-color: ${({theme:e})=>e.text.error};
1031
- `:n?Tt`
1032
- border-color: ${({theme:e})=>e.text[n]};
1033
- `:""}
1034
- &:hover {
1035
- border-color: ${({theme:e})=>e.colors.secondary};
1036
- }
1037
- &:focus-within {
1038
- border-color: ${({theme:e})=>e.colors.secondary};
1039
- }
1040
- `,Wl=vt.input`
1041
- padding-left: ${({$hasIcon:e})=>e?"0":"16px"};
1042
- flex: 1;
1043
- min-width: 150px;
1044
- width: 100%;
1045
- border: none;
1046
- outline: none;
1047
- background: none;
1048
- color: ${({theme:e})=>e.text.secondary};
1049
- font-size: 14px;
1050
- font-family: ${({theme:e})=>e.font_family.primary};
1051
- font-weight: 300;
1052
- &::placeholder {
1053
- color: ${({theme:e})=>e.text.secondary};
1054
- font-family: ${({theme:e})=>e.font_family.primary};
1055
- opacity: 0.4;
1056
- font-size: 14px;
1057
- font-weight: 300;
1058
- line-height: 22px; /* 157.143% */
1059
- }
1060
- &:disabled {
1061
- cursor: not-allowed;
1062
- opacity: 0.6;
1063
- }
1064
- &::-webkit-inner-spin-button,
1065
- &::-webkit-outer-spin-button {
1066
- -webkit-appearance: none;
1067
- margin: 0;
1068
- }
1069
- `,Vl=vt.div`
1070
- display: flex;
1071
- align-items: center;
1072
- margin-left: 12px;
1073
- `,Hl=vt(Vl)`
1074
- cursor: pointer;
1075
- `,ql=vt.button`
1076
- background-color: ${({theme:e})=>e.colors.primary};
1077
- border: none;
1078
- color: ${({theme:e})=>e.text.secondary};
1079
- padding: 8px 16px;
1080
- border-radius: 20px;
1081
- cursor: pointer;
1082
- margin-left: 8px;
1083
- &:hover {
1084
- background-color: ${({theme:e})=>e.colors.secondary};
1085
- }
1086
- &:disabled {
1087
- background-color: ${({theme:e})=>e.colors.border};
1088
- cursor: not-allowed;
1089
- }
1090
- `,Yl=({icon:e,buttonLabel:t,onButtonClick:n,hasError:o,errorMessage:i,title:a,tooltip:r,required:s,value:l,onChange:d,type:c=on.Text,name:p,status:u,...m})=>{const h=si.useTheme(),g=c===on.Password,[x,f]=ut(!1);return dt.createElement(jl,null,dt.createElement(Bl,{title:a,required:s,tooltip:r,status:u}),dt.createElement(Ul,{$disabled:m.disabled,$hasError:o||!!i,$isActive:!!m.autoFocus,$status:u},g?dt.createElement(Hl,{onClick:()=>f(e=>!e)},x?dt.createElement(nt,{size:14,fill:h.text.grey}):dt.createElement(ot,{size:14,fill:h.text.grey})):e?dt.createElement(Vl,null,dt.createElement(e,{size:14,fill:h.text.grey})):null,dt.createElement(Wl,{"data-id":p,type:x||c===on.Number?on.Text:c,$hasIcon:!!e||g,name:p,value:l,onChange:e=>{e.stopPropagation(),c===on.Number&&(e.target.value=ko(e.target.value)),d?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...m}),t&&n&&dt.createElement(ql,{onClick:n,disabled:m.disabled},t)),!!i&&dt.createElement(gi,null,i))},Gl=vt.div`
1091
- display: flex;
1092
- flex-direction: column;
1093
- align-items: center;
1094
- `,Kl=vt.div`
1095
- display: flex;
1096
- align-items: center;
1097
- gap: 8px;
1098
- `,Jl=vt(ui)`
1099
- color: ${({theme:e})=>e.text.darker_grey};
1100
- `,Xl=vt(ui)`
1101
- color: ${({theme:e})=>e.colors.border};
1102
- font-size: 14px;
1103
- font-weight: 200;
1104
- line-height: 20px;
1105
- text-align: center;
1106
- `,Ql=({title:e="No data found",subTitle:t="Check your search phrase and try one more time"})=>{const n=si.useTheme();return dt.createElement(Gl,null,dt.createElement(Kl,null,dt.createElement(it,{fill:n.text.dark_grey}),dt.createElement(Jl,null,e)),t&&dt.createElement(Xl,null,t))},Zl=vt.div`
1107
- display: flex;
1108
- flex-direction: column;
1109
- min-width: 120px;
1110
- width: 100%;
1111
- opacity: ${({$disabled:e})=>e?.5:1};
1112
- `,ed=vt.div`
1113
- position: relative;
1114
- `,td=vt.div`
1115
- display: flex;
1116
- align-items: center;
1117
- justify-content: space-between;
1118
- height: 36px;
1119
- padding: ${({$isMulti:e,$hasSelections:t})=>e&&t?"0 16px 0 6px":"0 16px"};
1120
- border-radius: 32px;
1121
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1122
-
1123
- ${({$isOpen:e,$isMulti:t,theme:n})=>e&&!t?Tt`
1124
- border: 1px solid ${n.text.grey};
1125
- background: ${n.colors.dropdown_bg_2};
1126
- `:Tt`
1127
- border: 1px solid ${n.colors.border};
1128
- background: transparent;
1129
- `};
1130
-
1131
- ${({$hasError:e,$status:t})=>e?Tt`
1132
- border-color: ${({theme:e})=>e.text.error};
1133
- `:t?Tt`
1134
- border-color: ${({theme:e})=>e.text[t]};
1135
- `:""}
1136
-
1137
- &:hover {
1138
- border-color: ${({$isMulti:e,$hasSelections:t,$disabled:n,theme:o})=>n?"auto":e&&t?o.colors.border:o.colors.secondary};
1139
- }
1140
- `,nd=vt.div`
1141
- display: flex;
1142
- align-items: center;
1143
- gap: 4px;
1144
- `,od=({options:e,value:t,onSelect:n,onDeselect:o,title:i,tooltip:a,placeholder:r,disabled:s=!1,isMulti:l=!1,showSearch:d=!1,required:c=!1,errorMessage:p,hasError:u=!1,status:m})=>{const[h,g]=ut(!1),[x,f]=ut(!1),$=ht(null);na($,()=>g(!1));const y=()=>{(()=>{if($.current){const e=$.current.getBoundingClientRect().bottom+300>window.innerHeight;f(e)}})(),g(e=>!e)},b=Array.isArray(t)?t.length:0;return dt.createElement(Zl,{$disabled:s},dt.createElement(Bl,{title:i,required:c,tooltip:a,status:m}),dt.createElement(ed,{ref:$},dt.createElement(td,{$isOpen:h,$isMulti:l,$hasSelections:!!Array.isArray(t)&&!!t.length,$hasError:!!p||u,$status:m,$disabled:s,onClick:()=>!s&&y()},dt.createElement(sd,{value:t,placeholder:r,onDeselect:o}),dt.createElement(nd,null,l&&dt.createElement(Oi,{label:b,filled:!!b}),dt.createElement(Ha,{extend:h}))),h&&dt.createElement(cd,{openUpwards:x,options:e,value:t,onSelect:e=>{n?.(e),l||y()},onDeselect:e=>{o?.(e),l||y()},isMulti:l,showSearch:d})),!!p&&dt.createElement(gi,null,p))},id=vt(nd)`
1145
- max-width: calc(100% - 50px);
1146
- overflow-x: auto;
1147
- `,ad=vt(ui)`
1148
- display: flex;
1149
- align-items: center;
1150
- gap: 2px;
1151
- padding: 4px 12px;
1152
- background: ${({theme:e})=>e.colors.dropdown_bg_2};
1153
- border-radius: 360px;
1154
- white-space: nowrap;
1155
- text-overflow: ellipsis;
1156
- img {
1157
- &:hover {
1158
- transform: scale(2);
1159
- transition: transform 0.3s;
1160
- }
1161
- }
1162
- `,rd=vt(ui)``,sd=({value:e,placeholder:t,onDeselect:n})=>{const o=si.useTheme();return Array.isArray(e)?e.length?dt.createElement(id,null,e.map(e=>dt.createElement(ad,{key:`multi-label-${e.id}`,size:14},e.value,dt.createElement(er,{orientation:"vertical",length:"10px",margin:"0 4px"}),dt.createElement(at,{size:12,onClick:t=>{t.stopPropagation(),n?.(e)}})))):dt.createElement(rd,{size:14,color:o.text.darker_grey},t):dt.createElement(rd,{size:14,color:e?.value?void 0:o.text.darker_grey},e?.value||t)},ld=vt.div`
1163
- position: absolute;
1164
- ${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
1165
- left: 0;
1166
- z-index: 1;
1167
- display: flex;
1168
- flex-direction: column;
1169
- overflow-y: auto;
1170
- width: calc(100% - 16px);
1171
- max-height: 200px;
1172
- gap: 8px;
1173
- padding: 8px;
1174
- background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
1175
- border: 1px solid ${({theme:e})=>e.colors.border};
1176
- border-radius: 24px;
1177
- `,dd=vt.div`
1178
- display: flex;
1179
- flex-direction: column;
1180
- align-items: center;
1181
- `,cd=({openUpwards:e,options:t,value:n,onSelect:o,onDeselect:i,isMulti:a,showSearch:r})=>{const[s,l]=ut(""),d=t.filter(e=>e.value?.toLowerCase().includes(s?.toLowerCase()));return dt.createElement(ld,{$openUpwards:e},r&&dt.createElement(dd,null,dt.createElement(Yl,{placeholder:"Search...",icon:rt,value:s,onChange:e=>l(e.target.value)}),dt.createElement(er,{thickness:1,margin:"8px 0 0 0"})),0===d.length?dt.createElement(Ql,{subTitle:r&&s?void 0:" "}):d.map((e,t)=>dt.createElement(ud,{key:`dropdown-option-${e.id||t}`,option:e,value:n,isMulti:a,onSelect:o,onDeselect:i})))},pd=vt.div`
1182
- padding: 8px 12px;
1183
- cursor: pointer;
1184
- display: flex;
1185
- justify-content: space-between;
1186
- align-items: center;
1187
- border-radius: 32px;
1188
- &:hover,
1189
- &.selected {
1190
- background: ${({theme:e})=>e.colors.majestic_blue+si.opacity.hex["024"]};
1191
- }
1192
- `,ud=({option:e,value:t,isMulti:n,onSelect:o,onDeselect:i})=>{const a=si.useTheme(),r=Array.isArray(t)?!!t?.find(t=>t.id===e.id):t?.id===e.id,s=t=>t?o?.(e):i?.(e);return n?dt.createElement(pd,{className:r?"selected":"",onClick:()=>s(!r)},dt.createElement(Ta,{title:e.value||"",titleColor:a.text.secondary,value:r,onChange:s,style:{width:"100%"}})):dt.createElement(pd,{className:r?"selected":"",onClick:()=>r?i?.(e):o?.(e)},dt.createElement(ma,{$gap:8},e.icon&&dt.createElement(e.icon,null),dt.createElement(ui,{size:14},e.value)),r&&dt.createElement(He,null))},md=({error:e})=>{const t=si.useTheme(),n={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 dt.createElement("div",{style:n.container},dt.createElement("h2",null,"Something went wrong!"),dt.createElement("pre",{style:n.errorMessage},e?.message||"Unknown Error"),dt.createElement("details",{style:n.errorStackWrapper},dt.createElement("summary",null,"Stack Trace"),dt.createElement("pre",{style:n.errorStack},e?.stack||"Unknown Stack")),dt.createElement("p",{style:n.infoText},"Try refreshing the page or contact support"),dt.createElement(Fi,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"}},"Reload"))},hd=({children:e})=>dt.createElement(Pt,{FallbackComponent:e=>dt.createElement(si.Provider,null,dt.createElement(md,{...e}))},e),gd=vt(ma)`
1193
- position: relative;
1194
- width: calc(100% - 24px);
1195
- padding: 12px;
1196
- background-color: ${({theme:e})=>e.colors.dark_grey};
1197
- border-bottom: 1px solid ${({theme:e})=>e.colors.border+si.opacity.hex["050"]};
1198
- `,xd=vt(ma)`
1199
- margin-right: auto;
1200
- margin-left: 32px;
1201
- gap: 12px;
1202
- `,fd=vt(ma)`
1203
- margin-left: auto;
1204
- margin-right: 32px;
1205
- gap: 12px;
1206
- `,$d=vt(ma)`
1207
- position: absolute;
1208
- left: 50%;
1209
- transform: translateX(-50%);
1210
- gap: 12px;
1211
- `,yd=({left:e=[],center:t=[],right:n=[]})=>dt.createElement(gd,null,dt.createElement(xd,null,e.map((e,t)=>e&&dt.createElement(ct,{key:t},e))),dt.createElement($d,null,t.map((e,t)=>e&&dt.createElement(ct,{key:t},e))),dt.createElement(fd,null,n.map((e,t)=>e&&dt.createElement(ct,{key:t},e)))),bd=vt.div`
1212
- width: fit-content;
1213
- height: fit-content;
1214
- padding: 4px;
1215
- gap: 4px;
1216
- border-radius: 32px;
1217
- border: 1px solid ${({theme:e})=>e.colors.border+si.opacity.hex["070"]};
1218
-
1219
- display: flex;
1220
- flex-direction: ${({$orientation:e,$flip:t})=>("horizontal"===e?"row":"column")+(t?"-reverse":"")};
1221
- align-items: center;
1222
- justify-content: center;
1223
- `,wd=vt.div`
1224
- width: 32px;
1225
- height: 32px;
1226
-
1227
- border-radius: 100%;
1228
- background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+si.opacity.hex["070"]:e.colors.secondary+si.opacity.hex["012"]};
1229
- transition: background-color 0.3s;
1230
-
1231
- display: flex;
1232
- align-items: center;
1233
- justify-content: center;
1234
-
1235
- cursor: pointer;
1236
- `,kd=({orientation:e="vertical",flip:t,mainIcons:n,subIcons:o})=>dt.createElement(bd,{$orientation:e,$flip:t},n.map(({icon:e,selected:t,onClick:n,tooltip:o},i)=>dt.createElement(Ea,{key:`main-nav-icon-${i}`,text:o},dt.createElement(wd,{$selected:t,onClick:n},dt.createElement(e,{size:20})))),!!n.length&&!!o.length&&dt.createElement(er,{orientation:"vertical"===e?"horizontal":"vertical",margin:"0",length:"20px"}),o.map(({icon:e,selected:t,onClick:n,tooltip:o},i)=>dt.createElement(Ea,{key:`sub-nav-icon-${i}`,text:o},dt.createElement(wd,{$selected:t,onClick:n},dt.createElement(e,{size:20}))))),vd=vt.div`
1237
- display: flex;
1238
- flex-direction: column;
1239
- width: 100%;
1240
- `,Ed=vt.div`
1241
- display: flex;
1242
- flex-direction: column;
1243
- gap: 8px;
1244
- `,Sd=vt.div`
1245
- display: flex;
1246
- align-items: center;
1247
- gap: 16px;
1248
- `,Cd=vt(dr)`
1249
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1250
- opacity: ${({$disabled:e})=>e?.5:1};
1251
- `,Td=({initialValues:e=[],value:t,onChange:n,title:o,tooltip:i,required:a,errorMessage:r})=>{const[s,l]=ut(t||e);mt(()=>{s.length||l([""])},[]);const d=s.filter(e=>!!e.trim()),c=ht(JSON.stringify(d));mt(()=>{const e=JSON.stringify(d);c.current!==e&&(c.current=e,n&&n(d))},[d,n]);const p=(e,t)=>{l(n=>{const o=[...n];return o[t]=e,o})},u=s.length<=1,m=s.some(e=>""===e.trim()),h=u&&m;return dt.createElement(vd,null,dt.createElement(Bl,{title:o,required:a,tooltip:i}),dt.createElement(Ed,null,s.map((e,t)=>{const n=t===s.length-1;return dt.createElement(Sd,{key:`input-list-${t}`},dt.createElement(Yl,{value:e,onChange:e=>p(e.target.value,t),hasError:!!r,autoFocus:po(e)&&!u&&n}),t===s.length-1&&dt.createElement(Cd,{withBorder:!0,size:30,$disabled:m,onClick:m?void 0:()=>{l(e=>{const t=[...e];return t.push(""),t})}},dt.createElement(Ke,null)),dt.createElement(Cd,{size:30,$disabled:h,onClick:h?void 0:()=>(e=>{u?p("",e):l(t=>t.filter((t,n)=>n!==e))})(t)},dt.createElement(st,null)))})),!!r&&dt.createElement(gi,null,r))},Ad=({col:e,colIdx:t,row:n,rowIdx:o,rowsLength:i,maxWidth:a,handleChange:r,errorMessage:s,limitFieldsPerRow:l})=>{const{keyName:d,title:c,tooltip:p,placeholder:u,required:m,type:h,componentType:g,options:x,renderCondition:f}=e,$=n[d];return f&&!f(n)?null:dt.createElement("td",{key:`input-table-${o}-${d}`,style:{maxWidth:a,padding:"4px 6px 4px 0"}},(()=>{if(g===nn.Dropdown){const e=x?.find(e=>e.id===$);return dt.createElement(od,{title:l?c:void 0,tooltip:l?p:void 0,placeholder:u,required:m,options:x||[],value:e,onSelect:e=>r(d,e.id,o),onDeselect:()=>r(d,"",o),hasError:!!s&&(!m||m&&po($))})}{const e=i>1&&o===i-1&&0===t&&po($);return dt.createElement(Yl,{title:l?c:void 0,tooltip:l?p:void 0,placeholder:u,type:h,required:m,autoFocus:e,value:$,onChange:({target:{value:e}})=>r(d,e,o),style:{maxWidth:a,paddingLeft:10},hasError:!!s&&(!m||m&&po($))})}})())},Dd=vt.div`
1252
- display: flex;
1253
- flex-direction: column;
1254
- width: 100%;
1255
- `,Nd=vt.button`
1256
- margin-top: ${({$marginTop:e})=>e};
1257
- background: none;
1258
- border: none;
1259
- cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
1260
- opacity: ${({disabled:e})=>e?.5:1};
1261
- `,Id=({columns:e,initialValues:t=[],value:n,onChange:o,errorMessage:i,limitFieldsPerRow:a})=>{const[r,s]=ut({}),[l,d]=ut(n||t),c=pt(()=>new Map(e.map(e=>[e.keyName,e])),[e]);mt(()=>{if(!l.length){const t={};e.forEach(({keyName:e})=>t[e]=""),s(t),d([t])}},[]);const p=l.filter(e=>{for(const[t,n]of Object.entries(e)){const o=c.get(t);if((!o?.renderCondition||o.renderCondition(e))&&o?.required&&po(n))return!1}return!0}),u=ht(JSON.stringify(p)),m=p.length!==l.length,h=`${Math.floor(640/((a||e.length)+.4))}px`;mt(()=>{const e=JSON.stringify(p);u.current!==e&&(u.current=e,o&&o(p))},[p,o]);const g=(e,t,n)=>{d(o=>{const i=_n(o);return i[n][e]=t,i})},x=pt(()=>{if(a){const t=[];for(let n=0;;n+=a){const o=e.slice(n,n+a);if(!o.length)break;t.push(o)}return t}return[e]},[a,e]);return dt.createElement(Dd,null,dt.createElement("table",{style:{borderCollapse:"collapse"}},!a&&dt.createElement("thead",null,dt.createElement("tr",null,e.map(({title:e,tooltip:t,required:n})=>dt.createElement("th",{key:`input-table-head-${e}`,style:{maxWidth:h}},dt.createElement(Bl,{title:e,required:n,tooltip:t}))),dt.createElement("th",null))),dt.createElement("tbody",null,l.map((t,n)=>dt.createElement(ct,{key:`input-table-row-${n}`},a&&n>0?dt.createElement("tr",null,dt.createElement("td",{colSpan:x.length},dt.createElement(er,null))):null,x.map((o,r)=>dt.createElement("tr",{key:`input-table-matrix-${n}-${r}`},o.map((e,o)=>dt.createElement(Ad,{key:`input-table-row-${n}-col-${o}`,col:e,colIdx:o,row:t,rowIdx:n,rowsLength:l.length,maxWidth:h,limitFieldsPerRow:a,errorMessage:i,handleChange:g})),0===r&&dt.createElement("td",null,dt.createElement(Nd,{$marginTop:a?"24px":"0",onClick:()=>{return t=n,void(l.length>1?d(e=>e.filter((e,n)=>n!==t)):e.forEach(({keyName:e,type:n})=>g(e,n===on.Number?"0":"",t)));var t}},dt.createElement(st,null))))))))),!!i&&dt.createElement(gi,null,i),dt.createElement(rr,{onClick:()=>{d(e=>{const t=_n(e);return t.push(_n(r)),t})},disabled:m}))},Od=vt.div`
1262
- display: flex;
1263
- flex-direction: column;
1264
- width: 100%;
1265
- `,_d=vt.div`
1266
- display: flex;
1267
- flex-direction: column;
1268
- gap: 8px;
1269
- `,zd=vt.div`
1270
- display: flex;
1271
- align-items: center;
1272
- gap: 8px;
1273
- `,Rd=vt.div`
1274
- width: 100%;
1275
- max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
1276
- `,Fd=vt(dr)`
1277
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1278
- opacity: ${({$disabled:e})=>e?.5:1};
1279
- `,Ld={key:"",value:""},Pd=({initialKeyValuePairs:e=[],value:t,onChange:n,title:o,tooltip:i,disabled:a,required:r,errorMessage:s,keyPlaceholder:l="Key",valuePlaceholder:d="Value",inputMaxWidth:c=300})=>{const[p,u]=ut(t||e);mt(()=>{p.length||u([{...Ld}])},[]);const m=p.filter(({key:e,value:t})=>!po(e.trim())&&!po(t.trim())),h=ht(JSON.stringify(m));mt(()=>{const e=JSON.stringify(m);h.current!==e&&(h.current=e,n&&n(m))},[m,n]);const g=(e,t,n)=>{u(o=>{const i=[...o];return i[n][e]=t,i})},x=p.length<=1,f=a||p.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),$=a||x&&f;return dt.createElement(Od,null,dt.createElement(Bl,{title:o,required:r,tooltip:i}),dt.createElement(_d,null,p.map(({key:e,value:t},n)=>dt.createElement(zd,{key:`key-value-input-list-${n}`},dt.createElement(Rd,{$maxWidth:c},dt.createElement(Yl,{placeholder:l,disabled:a,value:e,onChange:e=>g("key",e.target.value,n),hasError:!!s&&(!r||r&&!e),autoFocus:po(t)&&!x&&n===p.length-1})),dt.createElement(Rd,{$maxWidth:n===p.length-1?c-38:c},dt.createElement(Yl,{placeholder:d,disabled:a,value:t,onChange:e=>g("value",e.target.value,n),hasError:!!s&&(!r||r&&po(t)),autoFocus:!1})),n===p.length-1&&dt.createElement(Fd,{withBorder:!0,size:30,$disabled:f,onClick:f?void 0:()=>{u(e=>{const t=[...e];return t.push({...Ld}),t})}},dt.createElement(Ke,null)),dt.createElement(Fd,{size:30,$disabled:$,onClick:$?void 0:()=>(e=>{x?(g("key","",e),g("value","",e)):u(t=>t.filter((t,n)=>n!==e))})(n)},dt.createElement(st,null))))),!!s&&dt.createElement(gi,null,s))},Md=vt.div`
1280
- position: fixed;
1281
- top: 50%;
1282
- left: 50%;
1283
- transform: translate(-50%, -50%);
1284
- z-index: 1000;
1285
- width: fit-content;
1286
- background: ${({theme:e})=>e.colors.translucent_bg};
1287
- border: ${({theme:e})=>`1px solid ${e.colors.border}`};
1288
- border-radius: 40px;
1289
- box-shadow: ${({theme:e})=>{const t=e.colors.primary+si.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}`}};
1290
- `,Bd=vt.div`
1291
- display: flex;
1292
- justify-content: space-between;
1293
- align-items: center;
1294
- height: 80px;
1295
- border-bottom: 1px solid ${({theme:e})=>e.colors.border};
1296
- padding: 0 24px;
1297
- `,jd=vt.div`
1298
- cursor: pointer;
1299
- display: flex;
1300
- align-items: center;
1301
- gap: 8px;
1302
- `,Ud=vt.div`
1303
- display: flex;
1304
- align-items: center;
1305
- gap: 8px;
1306
- `,Wd=vt(ga)`
1307
- min-width: 350px;
1308
- min-height: 150px;
1309
- `,Vd=vt.div`
1310
- position: absolute;
1311
- left: 50%;
1312
- transform: translateX(-50%);
1313
- display: flex;
1314
- align-items: center;
1315
- justify-content: center;
1316
- width: 100%;
1317
- pointer-events: none;
1318
- `,Hd=vt(ui)`
1319
- text-transform: uppercase;
1320
- font-family: ${({theme:e})=>e.font_family.secondary};
1321
- pointer-events: auto;
1322
- `,qd=vt(ui)`
1323
- text-transform: uppercase;
1324
- font-weight: 500;
1325
- font-size: 14px;
1326
- font-family: ${({theme:e})=>e.font_family.secondary};
1327
- text-decoration: underline;
1328
- cursor: pointer;
1329
- `,Yd=({isOpen:e,noOverlay:t,header:n,actionComponent:o,onClose:i,children:a,closeOnEscape:r=!0})=>{ta({key:"Escape",active:e&&r},()=>i());const s=ua({container:Md,animateIn:si.animations.slide.in.center,animateOut:si.animations.slide.out.center});return e?Rt.createPortal(dt.createElement(dt.Fragment,null,dt.createElement(fa,{hidden:!e,onClick:i,style:{opacity:t?0:1}}),dt.createElement(s,{"data-id":"modal"+(n?`-${n.title.replaceAll(" ","-")}`:""),enter:e},n&&dt.createElement(Bd,null,dt.createElement(jd,{onClick:i},dt.createElement(tt,null),dt.createElement(qd,null,"Cancel")),dt.createElement(Vd,null,dt.createElement(Hd,null,n.title)),dt.createElement(Ud,null,o)),dt.createElement(Wd,null,a))),document.body):null},Gd=vt.div`
1330
- display: flex;
1331
- flex-direction: ${({$isVertical:e})=>e?"column":"row"};
1332
- gap: ${({$isVertical:e})=>e?"12px":"24px"};
1333
- ${({$hasError:e})=>e&&Tt`
1334
- border: 1px solid ${({theme:e})=>e.text.error};
1335
- border-radius: 32px;
1336
- padding: 8px;
1337
- `}
1338
- `,Kd=(e,t)=>!t?.length||!!t?.find(t=>t===e),Jd=({isVertical:e,title:t="Monitors",required:n,errorMessage:o,allowedSignals:i,selectedSignals:a,setSelectedSignals:r})=>{const[s,l]=ut(1===a.length),d=ht(JSON.stringify(a));return mt(()=>{const e=a;e.length||An.forEach(({id:t})=>{Kd(t,i)&&e.push(t)});const t=JSON.stringify(e);return d.current!==t&&(d.current=t,r(e),l(1===e.length)),()=>{d.current=""}},[i]),dt.createElement("div",null,t&&dt.createElement(Bl,{title:t,required:n}),dt.createElement(Gd,{$isVertical:e,$hasError:!!o},An.map(e=>{const t=Kd(e.id,i),n=((e,t)=>!!t?.find(t=>t===e))(e.id,a);return t?dt.createElement(Ta,{key:e.id,title:e.value,disabled:!t||s&&n,value:n,onChange:t=>((e,t)=>{const n=e,o=t?[...a,n]:a.filter(e=>e!==n);r(o),l(1===o.length)})(e.id,t)}):null})),!!o&&dt.createElement(gi,null,o))},Xd=vt.div`
1339
- display: flex;
1340
- gap: 8px;
1341
- align-items: center;
1342
- `,Qd=vt(Fi)`
1343
- display: flex;
1344
- align-items: center;
1345
- justify-content: center;
1346
- gap: 8px;
1347
- min-width: 90px;
1348
- `,Zd=({buttons:e})=>{const t=si.useTheme(),n=({button:t,index:n})=>e.length>1&&0===n&&(t.icon||t.iconSrc),o=({button:e,rotate:n})=>e.icon?dt.createElement(e.icon,{size:14,rotate:n,fill:t.text[e.variant||"secondary"]}):e.iconSrc?dt.createElement("img",{src:e.iconSrc,alt:e.label,width:8,height:12}):null;return dt.createElement(Xd,null,e.map((e,t)=>dt.createElement(Ea,{key:t,text:e.tooltip||""},dt.createElement(Qd,{key:t,variant:e.variant||"secondary",onClick:e.onClick,disabled:e.disabled},n({button:e,index:t})&&o({button:e,rotate:0}),e.label,!n({button:e,index:t})&&o({button:e,rotate:180})))))},ec=vt.div`
1349
- position: relative;
1350
- &.animated {
1351
- overflow: hidden;
1352
- padding-bottom: 1px;
1353
- border-radius: 32px;
1354
- animation: ${({$isLeaving:e})=>e?si.animations.slide.out.bottom:si.animations.slide.in.bottom} ${({$duration:e})=>e/10}ms forwards;
1355
- }
1356
- `,tc=vt.div`
1357
- position: absolute;
1358
- bottom: -1px;
1359
- left: 0;
1360
- z-index: -1;
1361
- width: 100%;
1362
- height: 100%;
1363
- border-radius: 32px;
1364
- background-color: ${({$type:e,theme:t})=>t.text[e]};
1365
- animation: ${si.animations.progress.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
1366
- `,nc=vt.div`
1367
- display: flex;
1368
- align-items: center;
1369
- flex: 1;
1370
- gap: 8px;
1371
- padding: 0 12px;
1372
- border-radius: 32px;
1373
- background-color: ${({$type:e,theme:t})=>t.colors[e]};
1374
- `,oc=vt.div`
1375
- display: flex;
1376
- align-items: center;
1377
- margin: 0 auto 0 0;
1378
- padding: 8px 0;
1379
- max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
1380
- min-height: 12px;
1381
- `,ic=vt(ui)`
1382
- font-size: 14px;
1383
- color: ${({$type:e,theme:t})=>t.text[e]};
1384
- `,ac=vt(ui)`
1385
- color: ${({$type:e,theme:t})=>t.text[e]};
1386
- font-size: 12px;
1387
- `,rc=vt(ma)``,sc=vt(ui)`
1388
- text-transform: uppercase;
1389
- text-decoration: underline;
1390
- font-size: 12px;
1391
- font-family: ${({theme:e})=>e.font_family.secondary};
1392
- white-space: nowrap;
1393
- cursor: pointer;
1394
- &:hover {
1395
- transform: scale(1.1);
1396
- transition: transform 0.3s;
1397
- }
1398
- `,lc=({type:e,icon:t,title:n,message:o,action:i,onClose:a,duration:r=5e3,overrideMaxWidth:s,style:l})=>{const d=si.useTheme(),[c,p]=ut(!1),u=ht(null),m=ht(null),h=e=>{a&&(p(!0),a({asSeen:e?.asSeen}))};mt(()=>(u.current=setTimeout(()=>h({asSeen:!1}),r),()=>{u.current&&clearTimeout(u.current)}),[r]);const g=t||io(e,d);return dt.createElement(ec,{className:a?"animated":"",$duration:r,$isLeaving:c,onMouseEnter:()=>{u.current&&clearTimeout(u.current),m.current&&(m.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(m.current){const e=m.current.offsetWidth/m.current.parentElement.offsetWidth*r;u.current=setTimeout(()=>h({asSeen:!1}),e),m.current.style.animationPlayState="running"}}},dt.createElement(nc,{"data-id":"toast",$type:e,style:l},dt.createElement(g,{fill:d.text[e]}),dt.createElement(oc,{$withAction:!!i,$overrideMaxWidth:s},n&&dt.createElement(ic,{$type:e},n),n&&o&&dt.createElement(er,{orientation:"vertical",type:e}),o&&dt.createElement(ac,{$type:e},o)),(!!i||!!a)&&dt.createElement(rc,null,i&&dt.createElement(sc,{"data-id":"toast-action",onClick:i.onClick},i.label),a&&dt.createElement(dr,{"data-id":"toast-close",onClick:()=>h({asSeen:!0})},dt.createElement(tt,{size:12})))),a&&dt.createElement(tc,{ref:m,$duration:r,$type:e}))},dc=vt(ha)`
1399
- gap: 12px;
1400
- `,cc=vt(ma)`
1401
- width: 100%;
1402
- gap: 12px;
1403
- align-items: flex-end;
1404
- `,pc=({clientX:e=0,flipX:t,clientY:n=0,flipY:o,isOpen:i,onClose:a,onSave:r,withDelete:s,onDelete:l,title:d,titleTooltip:c,warning:p,children:u})=>{const m=si.useTheme(),{popupRef:h,popupPosition:g,handlePosition:x}=oa({onClickOutside:a});return ta({key:"Enter",active:i},r),mt(()=>x(e,n),[e,n]),0===g.top&&0!==n||0===g.left&&0!==e?null:dt.createElement(Ui,{ref:h,isOpen:i,top:o?void 0:g.top,bottom:o?g.top:void 0,left:t?void 0:g.left,right:t?g.left:void 0,padding:"24px"},dt.createElement(dc,null,dt.createElement(Ea,{text:c,withIcon:!0},dt.createElement(ui,{size:14},d)),dt.createElement(cc,null,u,dt.createElement(ma,{$gap:6},dt.createElement(dr,{withBorder:!0,onClick:a,tooltip:"Cancel"},dt.createElement(at,null)),dt.createElement(dr,{withBorder:!0,backgroundColor:m.colors.secondary,onClick:r,tooltip:"Save"},dt.createElement(He,{fill:m.text.primary})),s&&dt.createElement(dr,{onClick:l,tooltip:"Undo"},dt.createElement(st,null)))),p&&dt.createElement(lc,{type:an.Warning,message:p})))},uc=vt.div`
1405
- display: flex;
1406
- justify-content: space-between;
1407
- align-items: center;
1408
- gap: 16px;
1409
- `,mc=vt.div`
1410
- display: flex;
1411
- flex-direction: column;
1412
- gap: 4px;
1413
- `,hc=vt.div`
1414
- display: flex;
1415
- align-items: center;
1416
- gap: 8px;
1417
- `,gc=vt(ui)``,xc=vt(ui)``,fc=({title:e,description:t,badgeLabel:n,icon:o,actionButton:i,size:a="medium"})=>{const r="small"===a?16:"medium"===a?20:24,s="small"===a?12:"medium"===a?14:16;return dt.createElement(uc,null,dt.createElement(mc,null,dt.createElement(hc,null,o&&dt.createElement(o,{size:r}),dt.createElement(gc,{weight:300,size:r},e),void 0!==n&&dt.createElement(Oi,{label:n,filled:!!n})),dt.createElement(xc,{weight:200,opacity:.8,size:s},t)),i&&dt.createElement("div",null,i))},$c=vt.div`
1418
- position: relative;
1419
- gap: 0;
1420
- z-index: 0;
1421
- display: grid;
1422
- grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
1423
- `,yc=vt.button`
1424
- flex: 1;
1425
- display: flex;
1426
- align-items: center;
1427
- justify-content: center;
1428
- gap: 4px;
1429
- padding: 6px 12px;
1430
- background-color: transparent;
1431
- border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1432
- border: 1px solid ${({theme:e})=>e.colors.border};
1433
- cursor: pointer;
1434
- &:hover {
1435
- border: 1px solid ${({theme:e})=>e.colors.secondary};
1436
- }
1437
- `,bc=vt.div`
1438
- position: absolute;
1439
- top: ${({$y:e})=>e}px;
1440
- left: ${({$x:e})=>e}px;
1441
- z-index: -1;
1442
- width: ${({$width:e})=>e}px;
1443
- height: ${({$height:e})=>e}px;
1444
- background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
1445
- border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1446
- transition: all 0.3s;
1447
- `,wc=({options:e=[],selected:t,setSelected:n})=>{const o=e.findIndex(e=>e.value===t),[i,a]=ut(e[o]?.selectedBgColor||""),[r,s]=ut({width:0,height:0}),[l,d]=ut({x:0,y:0}),c=ht(null);return mt(()=>{c.current&&(s({width:c.current.offsetWidth,height:c.current.offsetHeight}),d({x:c.current.offsetWidth*o,y:0}))},[t,o]),dt.createElement($c,{$count:e.length},e.map(({icon:o,label:i,value:r,selectedBgColor:s,selectedTextColor:l},d)=>{const p=t===r;return dt.createElement(yc,{key:`segment-${i||d}-${r}`,ref:p?c:void 0,$isFirstItem:0===d,$isLastItem:d===e.length-1,onClick:()=>{n(r),a(s||"")}},o&&dt.createElement(o,null),i&&dt.createElement(ui,{size:12,family:"secondary",decoration:"underline",color:p?l:void 0},i))}),dt.createElement(bc,{$bgColor:i,$width:r.width,$height:r.height,$x:l.x,$y:l.y,$isFirstItem:0===o,$isLastItem:o===e.length-1}))},kc=vt(Fi)`
1448
- gap: 8px;
1449
- text-transform: none;
1450
- text-decoration: none;
1451
- border: ${({theme:e,$withBorder:t})=>`1px solid ${t?e.colors.border:"transparent"}`};
1452
- &.not-selected {
1453
- background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+si.opacity.hex["060"]};
1454
- &:hover {
1455
- background-color: ${({theme:e,$hoverColor:t})=>t||e.colors.dropdown_bg_2};
1456
- }
1457
- }
1458
- &.selected {
1459
- background-color: ${({theme:e})=>e.colors.majestic_blue+si.opacity.hex["030"]};
1460
- }
1461
- `,vc=vt(ui)`
1462
- white-space: nowrap;
1463
- overflow: hidden;
1464
- text-overflow: ellipsis;
1465
- font-size: 14px;
1466
- `,Ec=({label:e,onClick:t,icon:n,iconSrc:o,badgeLabel:i,badgeFilled:a,isSelected:r,withBorder:s,color:l,hoverColor:d,style:c})=>{const p=si.useTheme();return dt.createElement(kc,{onClick:t,className:r?"selected":"not-selected",$withBorder:s,$color:l,$hoverColor:d,style:c},n&&dt.createElement("div",null,dt.createElement(n,{fill:p.text.info})),o&&dt.createElement("div",null,dt.createElement("img",{src:o,alt:"",width:16,height:16})),dt.createElement(vc,null,e),r&&dt.createElement("div",null,dt.createElement(He,{fill:p.colors.majestic_blue_soft})),void 0!==i&&dt.createElement(Oi,{label:i,filled:a||r}))};var Sc;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(Sc||(Sc={}));const Cc=vt.div`
1467
- display: flex;
1468
- flex-direction: column;
1469
- gap: 32px;
1470
- `,Tc=vt.div`
1471
- display: flex;
1472
- gap: 16px;
1473
- padding: 8px;
1474
- opacity: ${({$state:e})=>e===Sc.Active?1:e===Sc.Disabled?.5:.8};
1475
- transition: all 0.3s;
1476
- `,Ac=vt(ma)`
1477
- justify-content: center;
1478
- width: 24px;
1479
- height: 24px;
1480
- border-radius: 32px;
1481
- border: ${({theme:e,$state:t})=>t===Sc.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
1482
- opacity: ${({$state:e})=>e===Sc.Finished?.8:1};
1483
- `,Dc=vt(ha)`
1484
- justify-content: center;
1485
- gap: 8px;
1486
- `,Nc=vt(ui)``,Ic=vt(ui)``,Oc=({data:e,currentStep:t=0})=>{const[n,o]=ut([]);return mt(()=>{o(e.map((e,n)=>n<t-1?{...e,state:Sc.Finished,subtitle:e.subtitle||an.Success}:n===t-1?{...e,state:Sc.Active,subtitle:""}:{...e,state:Sc.Disabled,subtitle:""}))},[t,e]),dt.createElement(Cc,null,n.map((e,t)=>dt.createElement(Tc,{key:t,$state:e.state},dt.createElement(Ac,{$state:e.state},[Sc.Active,Sc.Disabled].includes(e.state)?dt.createElement(ui,{size:12},e.stepNumber):e.state===Sc.Finished?dt.createElement(He,{size:20}):null),dt.createElement(Dc,null,dt.createElement(Nc,{family:"secondary"},e.title),e.subtitle&&dt.createElement(Ic,{size:10,weight:300},e.subtitle)))))},_c=vt(ma)`
1487
- width: fit-content;
1488
- gap: 6px;
1489
- padding: 6px 12px;
1490
- border-radius: 360px;
1491
- background-color: ${({$type:e,theme:t})=>t.colors[e]};
1492
- `,zc=vt(ui)`
1493
- color: ${({$type:e,theme:t})=>t.text[e]};
1494
- `,Rc=({type:e=an.Info,icon:t,title:n,size:o,family:i,children:a,...r})=>dt.createElement(_c,{$type:e},t&&dt.createElement(t,null),dt.createElement(zc,{$type:e,size:o||12,family:i||"secondary",...r},a||n)),Fc=vt.div`
1495
- display: flex;
1496
- flex-direction: column;
1497
- position: relative;
1498
- width: 100%;
1499
- `,Lc=vt.div`
1500
- width: 100%;
1501
- display: flex;
1502
- align-items: center;
1503
- gap: 12px;
1504
- transition: border-color 0.3s;
1505
- border-radius: 24px;
1506
- border: 1px solid ${({theme:e})=>e.colors.border};
1507
- ${({$disabled:e})=>e&&Tt`
1508
- background-color: ${({theme:e})=>e.colors.border};
1509
- cursor: not-allowed;
1510
- opacity: 0.6;
1511
- `}
1512
-
1513
- ${({$hasError:e})=>e&&Tt`
1514
- border-color: ${({theme:e})=>e.text.error};
1515
- `}
1516
-
1517
- ${({$isActive:e})=>e&&Tt`
1518
- border-color: ${({theme:e})=>e.colors.secondary};
1519
- `}
1520
-
1521
- &:hover {
1522
- border-color: ${({theme:e})=>e.colors.secondary};
1523
- }
1524
- &:focus-within {
1525
- border-color: ${({theme:e})=>e.colors.secondary};
1526
- }
1527
- `,Pc=vt.textarea`
1528
- flex: 1;
1529
- border: none;
1530
- outline: none;
1531
- background: none;
1532
- color: ${({theme:e})=>e.text.secondary};
1533
- font-size: 14px;
1534
- padding: 12px 20px 0;
1535
- font-family: ${({theme:e})=>e.font_family.primary};
1536
- font-weight: 300;
1537
- line-height: 22px;
1538
- &::placeholder {
1539
- color: ${({theme:e})=>e.text.secondary};
1540
- font-family: ${({theme:e})=>e.font_family.primary};
1541
- opacity: 0.4;
1542
- font-size: 14px;
1543
- font-weight: 300;
1544
- line-height: 22px; /* 157.143% */
1545
- }
1546
-
1547
- &:disabled {
1548
- background-color: ${({theme:e})=>e.colors.border};
1549
- cursor: not-allowed;
1550
- }
1551
- `,Mc=({errorMessage:e,title:t,tooltip:n,required:o,onChange:i,name:a,...r})=>{const s=ht(null),l=e=>{s.current&&(s.current.style.height="auto",e&&(s.current.style.height=`${s.current.scrollHeight}px`))};return dt.createElement(Fc,null,dt.createElement(Bl,{title:t,required:o,tooltip:n}),dt.createElement(Lc,{$disabled:r.disabled,$hasError:!!e,$isActive:!!r.autoFocus},dt.createElement(Pc,{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&&dt.createElement(gi,null,e))},Bc=vt.div`
1552
- display: flex;
1553
- align-items: center;
1554
- gap: 12px;
1555
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1556
- opacity: ${({$disabled:e})=>e?.6:1};
1557
- `,jc=vt.div`
1558
- width: 24px;
1559
- height: 12px;
1560
- border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
1561
- border-radius: 20px;
1562
- display: flex;
1563
- align-items: center;
1564
- padding: 2px;
1565
- background-color: transparent;
1566
- pointer-events: ${({$disabled:e})=>e?"none":"auto"};
1567
- cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1568
- opacity: ${({$isActive:e})=>e?1:.5};
1569
- transition: border-color 0.3s, opacity 0.3s;
1570
- &::before {
1571
- content: '';
1572
- width: 12px;
1573
- height: 12px;
1574
- border-radius: 50%;
1575
- background-color: ${({$isActive:e,theme:t})=>e?t.colors.majestic_blue:t.colors.secondary};
1576
- transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
1577
- transition: background-color 0.3s, transform 0.3s;
1578
- }
1579
- `,Uc=({title:e,tooltip:t,initialValue:n=!1,onChange:o,disabled:i,allowPropagation:a=!1,flipHorizontally:r})=>{const[s,l]=ut(n);return mt(()=>l(n),[n]),dt.createElement(Bc,{$disabled:i,onClick:e=>{i||(a||e.stopPropagation(),o?o(!s):l(e=>!e))}},!r&&dt.createElement(jc,{$disabled:i,$isActive:s}),(e||t)&&dt.createElement(Ea,{text:t,withIcon:!0},e&&dt.createElement(ui,{size:14},e)),r&&dt.createElement(jc,{$disabled:i,$isActive:s}))};var Wc={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 Vc=vt.div`
1580
- width: ${({$width:e})=>e}px;
1581
- height: ${({$height:e})=>e}px;
1582
- position: relative;
1583
- `,Hc=({width:e=620})=>{const{darkMode:t}=si.useTheme(),n=e/(620/220),o=e;return dt.createElement(Vc,{$width:o,$height:n},dt.createElement(Mt,{autoplay:!0,loop:!0,animationData:Wc,style:{width:n,height:o,transform:"rotate(-90deg)",position:"absolute",top:-(n-n/10),left:n-n/10,filter:t?"invert(0)":"invert(1)"}}))},qc=vt.div`
1584
- padding: 24px 32px;
1585
- `,Yc=vt.div`
1586
- padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
1587
- `,Gc=vt(ui)`
1588
- font-size: 20px;
1589
- line-height: 28px;
1590
- `,Kc=vt(ui)`
1591
- color: ${({theme:e})=>e.text.grey};
1592
- width: 416px;
1593
- font-style: normal;
1594
- font-weight: 300;
1595
- line-height: 24px;
1596
- `,Jc=vt.div`
1597
- display: flex;
1598
- justify-content: space-between;
1599
- gap: 12px;
1600
- `,Xc=vt(Fi)`
1601
- width: 250px;
1602
- `,Qc=vt.div`
1603
- margin-bottom: 12px;
1604
- `,Zc=({isOpen:e,noOverlay:t,title:n="",description:o="",note:i,approveButton:a,denyButton:r,closeOnEscape:s=!0})=>{ta({key:"Enter",active:e&&s},()=>a.onClick());const l=()=>r.onClick();return dt.createElement(Yd,{isOpen:e,noOverlay:t,onClose:l},dt.createElement(qc,null,dt.createElement(Gc,null,n),dt.createElement(Yc,{$withNote:!!i},dt.createElement(Kc,null,o)),!!i&&dt.createElement(Qc,null,dt.createElement(lc,{type:i.type,title:i.title,message:i.message})),dt.createElement(Jc,null,dt.createElement(Xc,{"data-id":"approve",variant:a.variant||"primary",onClick:()=>a.onClick()},a.text),dt.createElement(Xc,{"data-id":"deny",variant:r.variant||"secondary",onClick:l},r.text))))};export{Ea as $,Ut as A,Ro as B,Ta as C,zo as D,en as E,Bl as F,Qa as G,ll as H,Yl as I,Zt as J,Vt as K,ha as L,Jd as M,Ho as N,Yd as O,Zd as P,$a as Q,lc as R,wc as S,si as T,_o as U,Di as V,er as W,Un as X,ar as Y,ma as Z,yo as _,Js as a,Qo as a$,sn as a0,io as a1,Wo as a2,zn as a3,$r as a4,Kn as a5,vr as a6,ya as a7,ba as a8,ns as a9,qi as aA,oa as aB,Ui as aC,Ec as aD,xa as aE,Gn as aF,na as aG,$o as aH,od as aI,Do as aJ,An as aK,Fi as aL,Oo as aM,ia as aN,Ji as aO,Io as aP,dr as aQ,Ha as aR,rr as aS,mr as aT,bo as aU,On as aV,so as aW,Wa as aX,wn as aY,Qi as aZ,lo as a_,Yn as aa,wa as ab,Ks as ac,ga as ad,Ql as ae,Hc as af,Oi as ag,To as ah,un as ai,Bn as aj,mn as ak,Pr as al,hn as am,Cn as an,Hn as ao,ao as ap,wo as aq,qn as ar,Mo as as,Vo as at,Gi as au,Pn as av,Ln as aw,Fn as ax,Rn as ay,Os as az,gi as b,Xn as b$,Dn as b0,Dr as b1,Sn as b2,_n as b3,Oc as b4,tl as b5,Qn as b6,$n as b7,yn as b8,fn as b9,mo as bA,Ki as bB,Wi as bC,pc as bD,cn as bE,pn as bF,dn as bG,Xt as bH,Lo as bI,jn as bJ,Na as bK,no as bL,gr as bM,jt as bN,Ht as bO,qt as bP,Yt as bQ,Gt as bR,Kt as bS,Jt as bT,tn as bU,rn as bV,ln as bW,gn as bX,Nn as bY,Mn as bZ,Jn as b_,bn as ba,xn as bb,Rc as bc,Vn as bd,ea as be,Tn as bf,ua as bg,Ko as bh,ro as bi,pa as bj,Yi as bk,ur as bl,kd as bm,co as bn,pr as bo,Rr as bp,Lr as bq,ho as br,vo as bs,ra as bt,Fs as bu,kn as bv,Qt as bw,ca as bx,wr as by,Wn as bz,Wt as c,Zn as c0,eo as c1,to as c2,oo as c3,uo as c4,go as c5,fo as c6,ko as c7,Eo as c8,So as c9,pi as cA,Zc as cB,fa as cC,Co as ca,Ao as cb,No as cc,Fo as cd,Bt as ce,Wr as cf,Hr as cg,Yr as ch,Kr as ci,ls as cj,ys as ck,ps as cl,es as cm,Ts as cn,ms as co,La as cp,ml as cq,Cl as cr,Ol as cs,hd as ct,yd as cu,xr as cv,Ss as cw,yl as cx,di as cy,ci as cz,on as d,Id as e,Uc as f,Pd as g,Td as h,po as i,nn as j,ui as k,fc as l,xl as m,Mc as n,qo as o,Bo as p,ta as q,Fl as r,hl as s,Li as t,Go as u,an as v,jo as w,Hi as x,En as y,vn as z};