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