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