@odigos/ui-kit 0.0.286 → 0.0.287
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 +7 -0
- package/docs/api-context.md +1 -1
- package/lib/chunks/helpers-CtkwQ3Wc.js +9 -0
- package/lib/chunks/index-BlYPxLja.js +311 -0
- package/lib/chunks/source-instrument-form-context-Bg6JzU76.js +5 -0
- package/lib/chunks/ui-components-CjgsN17j.js +1943 -0
- package/lib/components/_cards/data-card/index.d.ts +6 -1
- package/lib/components/_cards/text-card/index.d.ts +3 -0
- package/lib/components/button/index.d.ts +3 -1
- package/lib/components/drawer/header/index.d.ts +2 -0
- package/lib/components/drop-data/index.d.ts +4 -10
- package/lib/components/hover-actions/index.d.ts +1 -1
- package/lib/components/index.d.ts +4 -0
- package/lib/components/info-row/index.d.ts +11 -0
- package/lib/components/input/index.d.ts +2 -0
- package/lib/components/popup/index.d.ts +17 -0
- package/lib/components/select-window-hours/index.d.ts +17 -0
- package/lib/components/table/index.d.ts +10 -0
- package/lib/components/table/styled.d.ts +11 -0
- package/lib/components/table/table-rows/index.d.ts +6 -1
- package/lib/components/table/types.d.ts +11 -2
- package/lib/components/trace-view/index.d.ts +4 -0
- package/lib/components/trace-view/styled.d.ts +43 -0
- package/lib/components/trace-view/types.d.ts +46 -0
- package/lib/components.js +1 -1
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/instrumentation-rules/index.d.ts +2 -1
- package/lib/constants/strings/index.d.ts +14 -0
- package/lib/constants/url-templatization/index.d.ts +90 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/edit-source-drawer/pods/containers-card/process-card.d.ts +1 -7
- package/lib/containers/_drawers/index.d.ts +3 -0
- package/lib/containers/_drawers/url-templatization-custom-template-drawer/destination-step.d.ts +16 -0
- package/lib/containers/_drawers/url-templatization-custom-template-drawer/index.d.ts +18 -0
- package/lib/containers/_drawers/url-templatization-default-rule-drawer/index.d.ts +14 -0
- package/lib/containers/_drawers/url-templatization-template-view-drawer/index.d.ts +9 -0
- package/lib/containers/central-connections/helpers.d.ts +8 -0
- package/lib/containers/central-connections/index.d.ts +1 -0
- package/lib/containers/index.d.ts +2 -0
- package/lib/containers/insights/consts.d.ts +6 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-blast-radius/animated-edge.d.ts +10 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-blast-radius/blast-radius-node.d.ts +6 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-blast-radius/helpers.d.ts +28 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-blast-radius/index.d.ts +7 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-blast-radius/types.d.ts +19 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-trace-compare/helpers.d.ts +15 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-trace-compare/index.d.ts +7 -0
- package/lib/containers/insights/findings/drawer/anomaly/index.d.ts +16 -0
- package/lib/containers/insights/findings/drawer/anomaly/why-this-fired/index.d.ts +6 -0
- package/lib/containers/insights/findings/drawer/helpers.d.ts +9 -0
- package/lib/containers/insights/findings/drawer/index.d.ts +6 -0
- package/lib/containers/insights/findings/drawer/violation/index.d.ts +7 -0
- package/lib/containers/insights/findings/drawer/violation/violation-trace-view/index.d.ts +8 -0
- package/lib/containers/insights/findings/helpers.d.ts +57 -0
- package/lib/containers/insights/findings/index.d.ts +2 -0
- package/lib/containers/insights/findings/resolve-findings/index.d.ts +11 -0
- package/lib/containers/insights/index.d.ts +6 -0
- package/lib/containers/insights/insights-context.d.ts +44 -0
- package/lib/containers/insights/overview/contained-table-and-heading/index.d.ts +19 -0
- package/lib/containers/insights/overview/index.d.ts +6 -0
- package/lib/containers/insights/settings-and-configurations/constants.d.ts +16 -0
- package/lib/containers/insights/settings-and-configurations/content-panel/index.d.ts +11 -0
- package/lib/containers/insights/settings-and-configurations/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/menu-config.d.ts +24 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/constants.d.ts +40 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/create-override-panel.d.ts +14 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/mappers.d.ts +12 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/mock.d.ts +4 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/policies-menu.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/policy-editor.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/policy-list-item.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-levels.d.ts +15 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-model-drawer/constants.d.ts +16 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-model-drawer/default-catalog.d.ts +3 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-model-drawer/helpers.d.ts +30 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-model-drawer/index.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/signal-weights-panel.d.ts +13 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/signal-weights.d.ts +17 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/types.d.ts +29 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/constants.d.ts +35 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/create-panel.d.ts +13 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/edit-panel.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/facet-section.d.ts +14 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/guardrail-list-item.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/guardrails-menu.d.ts +9 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/mappers.d.ts +23 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/types.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/constants.d.ts +82 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/create-override-panel.d.ts +21 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/mappers.d.ts +38 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/policies-menu.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/policy-editor.d.ts +9 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/policy-list-item.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/types.d.ts +31 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/constants.d.ts +52 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/formatters.d.ts +5 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/layout.d.ts +18 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/mappers.d.ts +27 -0
- package/lib/containers/insights/settings-and-configurations/panels/system/constants.d.ts +31 -0
- package/lib/containers/insights/settings-and-configurations/panels/system/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/settings-menu/category-header.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/settings-menu/index.d.ts +7 -0
- package/lib/containers/insights/transactions/drawer/baselines/helpers.d.ts +16 -0
- package/lib/containers/insights/transactions/drawer/baselines/index.d.ts +5 -0
- package/lib/containers/insights/transactions/drawer/index.d.ts +2 -0
- package/lib/containers/insights/transactions/drawer/observations/helpers.d.ts +11 -0
- package/lib/containers/insights/transactions/drawer/observations/index.d.ts +5 -0
- package/lib/containers/insights/transactions/helpers.d.ts +34 -0
- package/lib/containers/insights/transactions/index.d.ts +2 -0
- package/lib/containers/url-templatization/converters.d.ts +43 -0
- package/lib/containers/url-templatization/custom-templates-list.d.ts +16 -0
- package/lib/containers/url-templatization/default-rules-list.d.ts +10 -0
- package/lib/containers/url-templatization/helpers.d.ts +17 -0
- package/lib/containers/url-templatization/index.d.ts +5 -0
- package/lib/containers/url-templatization/scope-summary.d.ts +8 -0
- package/lib/containers/url-templatization/template-path.d.ts +8 -0
- package/lib/containers.js +1862 -286
- package/lib/contexts/odigos-api/capabilities.d.ts +2 -0
- package/lib/contexts/odigos-api/hooks/use-insights-api.d.ts +156 -0
- package/lib/contexts/odigos-api/index.d.ts +2 -1
- package/lib/contexts/odigos-api/internal/notify.d.ts +4 -3
- package/lib/contexts/odigos-api/types.d.ts +206 -1
- package/lib/contexts/odigos-api/use-odigos-api.d.ts +2 -0
- package/lib/contexts/odigos-context.d.ts +3 -3
- package/lib/contexts.js +1 -1
- package/lib/functions/index.d.ts +1 -0
- package/lib/functions/parse-raw-otlp/index.d.ts +43 -0
- package/lib/functions.js +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useAnchoredPopup.d.ts +44 -0
- package/lib/hooks/useCopy.d.ts +2 -3
- package/lib/hooks/useOnClickOutside.d.ts +1 -0
- package/lib/hooks/useTimeAgo.d.ts +4 -0
- package/lib/hooks.js +1 -1
- package/lib/icons/common/clock-icon/index.d.ts +2 -0
- package/lib/icons/common/index.d.ts +4 -0
- package/lib/icons/common/insights-findings-icon/index.d.ts +2 -0
- package/lib/icons/common/insights-transactions-icon/index.d.ts +2 -0
- package/lib/icons/common/threat-detection-icon/index.d.ts +2 -0
- package/lib/icons/overview/index.d.ts +2 -0
- package/lib/icons/overview/insights-icon/index.d.ts +2 -0
- package/lib/icons/overview/url-templatization-icon/index.d.ts +2 -0
- package/lib/icons.js +1 -1
- package/lib/snippets/actions/index.d.ts +8 -5
- package/lib/snippets/code-modal/index.d.ts +9 -0
- package/lib/snippets/index.d.ts +1 -0
- package/lib/snippets/trace-modal/index.d.ts +8 -0
- package/lib/snippets/upgrade-modal/index.d.ts +1 -1
- package/lib/snippets/wide-drawer/index.d.ts +6 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme/palettes/index.d.ts +7 -1
- package/lib/theme.js +1 -1
- package/lib/types/actions/index.d.ts +12 -0
- package/lib/types/common/index.d.ts +9 -2
- package/lib/types/index.d.ts +1 -0
- package/lib/types/insights/index.d.ts +598 -0
- package/lib/types/instrumentation-rules/index.d.ts +1 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/helpers-C5bkjRbO.js +0 -9
- package/lib/chunks/index-DBZ1mLhG.js +0 -298
- package/lib/chunks/source-instrument-form-context-CnRKQq6W.js +0 -5
- package/lib/chunks/ui-components-Ci-Vq1Dl.js +0 -1620
|
@@ -0,0 +1,1943 @@
|
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import n,{css as i,useTheme as o,keyframes as a,ThemeProvider as s}from"styled-components";import{PrivacyIcon as l,NormalizationIcon as d,EnrichmentIcon as c,ActionIcon as u,VSquareIcon as p,XSquareIcon as h,ImageErrorIcon as g,KafkaLogo as m,RedisLogo as f,PostgresLogo as b,NginxLogo as y,MysqlLogo as v,ElixirLogo as $,SwiftLogo as w,RustLogo as S,RubyLogo as x,PhpLogo as C,CPlusPlusLogo as E,CSharpLogo as T,DotnetLogo as O,PythonLogo as N,NodejsLogo as A,GoLogo as I,JavaLogo as k,PyroscopeLogo as R,AwsXrayLogo as D,VictoriaMetricsLogo as _,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as U,TempoLogo as M,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as H,SeqLogo as j,AwsS3Logo as X,QuickwitLogo as W,GigapipeLogo as G,QrynLogo as V,PrometheusLogo as K,OpenTelemetryLogo as Y,OracleLogo as J,OpsVerseLogo as q,OpenObserveLogo as Q,OneUptimeLogo as Z,OdigosLogo as ee,ObserveLogo as te,NewRelicLogo as re,MiddlewareLogo as ne,LumigoLogo as ie,LokiLogo as oe,LogzioLogo as ae,LightstepLogo as se,Last9Logo as le,KloudmateLogo as de,JaegerLogo as ce,InstanaLogo as ue,HyperDxLogo as pe,HoneycombLogo as he,GroundcoverLogo as ge,GreptimeLogo as me,GrafanaLogo as fe,GoogleCloudPlatformLogo as be,ElasticSearchLogo as ye,ElasticApmLogo as ve,DynatraceLogo as $e,DatadogLogo as we,Dash0Logo as Se,CoralogixLogo as xe,AwsCloudwatchLogo as Ce,ClickhouseLogo as Ee,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ne,BonreeLogo as Ae,BetterStackLogo as Ie,AzureMonitorLogo as ke,AzureBlobLogo as Re,AxiomLogo as De,AppDynamicsLogo as _e,AlibabaCloudLogo as Le,AlaudaLogo as Pe,RecommendationsIcon as Ue,SamplingIcon as Me,InstrumentationRuleIcon as Fe,DestinationIcon as ze,SourceIcon as Be,NamespacesIcon as He,MetricsIcon as je,PayloadCollectionIcon as Xe,HeadersCollectionIcon as We,CustomInstrumentationIcon as Ge,CodeAttributesIcon as Ve,TracesIcon as Ke,LogsIcon as Ye,EcsLogo as Je,CloudConnectorIcon as qe,VmLogo as Qe,K8sLogo as Ze,DotsHorizontalIcon as et,QuestionCircleIcon as tt,ExclamationTriangleIcon as rt,ExclamationCircleIcon as nt,ISquareIcon as it,AwsLogo as ot,AwsSecretsManagerLogo as at,AwsStepFunctionsLogo as st,AwsEventBridgeLogo as lt,AwsBedrockLogo as dt,AwsApiGatewayLogo as ct,AwsEc2Logo as ut,AwsKinesisLogo as pt,AwsLambdaLogo as ht,AwsSnsLogo as gt,AwsSqsLogo as mt,AwsDynamoDbLogo as ft,AwsStsLogo as bt,OpenTelemetryLogoStripped as yt,CodeIcon as vt,VIcon as $t,CopyIcon as wt,SearchIcon as St,XIcon as xt,MinusIcon as Ct,ChevronUpIcon as Et,ChevronDownIcon as Tt,DotsVerticalIcon as Ot,EyeClosedIcon as Nt,EyeOpenIcon as At,ArrowIcon as It,ListIcon as kt,PlusIcon as Rt,TrashIcon as Dt,DotIcon as _t,ArrowRightIcon as Lt,ClockIcon as Pt,ChevronRightIcon as Ut,FilterIcon as Mt}from"../icons.js";import{create as Ft}from"zustand";import{forwardRef as zt,Fragment as Bt,useState as Ht,useEffect as jt,useCallback as Xt,useMemo as Wt,useRef as Gt,useLayoutEffect as Vt,createElement as Kt}from"react";import Yt from"javascript-time-ago";import Jt from"javascript-time-ago/locale/en";import qt,{createPortal as Qt}from"react-dom";import{Highlight as Zt,themes as er}from"prism-react-renderer";import{persist as tr,createJSONStorage as rr}from"zustand/middleware";import{ErrorBoundary as nr}from"react-error-boundary";import{VList as ir}from"virtua";const or=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const r=t.split(".");return 1e4*parseInt(r[0]||"0",10)+parseInt(r[1]||"0",10)};var ar,sr,lr,dr,cr,ur,pr,hr,gr,mr,fr,br,yr,vr,$r,wr,Sr,xr,Cr,Er,Tr,Or,Nr,Ar,Ir,kr,Rr,Dr,_r,Lr,Pr,Ur,Mr,Fr,zr,Br,Hr,jr,Xr,Wr,Gr,Vr,Kr,Yr;(e=>{e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.URLTemplatization="URLTemplatization",e.ExtractAttribute="ExtractAttribute",e.DbQueryTemplatization="DbQueryTemplatization",e.InferDbAttributes="InferDbAttributes"})(ar||(ar={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(sr||(sr={})),(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.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups",e.UrlTemplatizationDefaultGroups="urlTemplatizationDefaultGroups",e.ExtractAttribute="extractAttribute",e.TemplatizeLiterals="templatizeLiterals",e.Scopes="scopes"})(lr||(lr={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(dr||(dr={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(cr||(cr={})),(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"})(ur||(ur={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(pr||(pr={})),(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"})(hr||(hr={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(gr||(gr={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(mr||(mr={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(fr||(fr={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(br||(br={})),(e=>{e.Community="community",e.Onprem="onprem"})(yr||(yr={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(vr||(vr={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})($r||($r={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(wr||(wr={})),(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"})(Sr||(Sr={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})(xr||(xr={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(Cr||(Cr={})),(e=>{e.DataStream="DataStream"})(Er||(Er={})),(e=>{e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.CheckboxList="checkboxList",e.Toggle="toggle",e.Time="time",e.FieldGroup="fieldGroup",e.SourceScopes="sourceScopes"})(Tr||(Tr={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Or||(Or={})),(e=>{e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default",e.Loading="loading",e.Disabled="disabled",e.Unknown="unknown"})(Nr||(Nr={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(Ar||(Ar={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(Ir||(Ir={})),(e=>{e.MarkedForInstrumentation="MarkedForInstrumentation",e.RuntimeDetection="RuntimeDetection",e.AgentEnabled="AgentEnabled",e.AgentInjected="AgentInjected",e.WorkloadRollout="WorkloadRollout",e.ProcessesHealthStatus="ProcessesHealthStatus",e.ExpectingTelemetry="ExpectingTelemetry",e.WorkloadOdigosHealth="WorkloadOdigosHealth"})(kr||(kr={})),(e=>{e.TriggeredSuccessfully="RolloutTriggeredSuccessfully",e.RolloutFinished="RolloutFinished",e.PreviousRolloutOngoing="PreviousRolloutOngoing",e.Disabled="Disabled",e.NotRequired="NotRequired",e.WaitingForRestart="WaitingForRestart",e.WorkloadNotSupporting="WorkloadNotSupporting",e.WaitingInQueue="WaitingInQueue",e.FailedToPatch="FailedToPatch"})(Rr||(Rr={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(Dr||(Dr={})),(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"})(_r||(_r={})),(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.OdigosProfileDiagnostic="odigos_profile_diagnostic",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray",e.Pyroscope="pyroscope"})(Lr||(Lr={})),(e=>{e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.Pod="Pod",e.StaticPod="StaticPod",e.Rollout="Rollout",e.ConfigMap="ConfigMap",e.DeploymentConfig="DeploymentConfig",e.InstrumentationConfig="InstrumentationConfig"})(Pr||(Pr={})),(e=>{e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.OpentelemetryEbpfInstrumentation="opentelemetry-ebpf-instrumentation",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"})(Ur||(Ur={})),(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"})(Mr||(Mr={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.NetworkMetrics="NetworkMetrics",e.UnknownType="UnknownType"})(Fr||(Fr={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(zr||(zr={})),(e=>{e.HeaderKeys="headerKeys"})(Br||(Br={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Hr||(Hr={}));class Jr{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 qr{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,r,n){this.packageName=e,this.functionName=t||"",this.receiverName=r||"",this.receiverMethodName=n||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}class Qr{className;functionName;constructor(e,t){this.className=e||"",this.functionName=t||""}Verify(){return!!this.functionName}toString(){return this.Verify()?this.className?`${this.className}::${this.functionName}`:this.functionName:"[Faulty PHP Probe]"}}(e=>{e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"})(jr||(jr={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Xr||(Xr={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(Wr||(Wr={})),(e=>{e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"})(Gr||(Gr={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Vr||(Vr={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Kr||(Kr={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Yr||(Yr={}));const Zr={[Kr.Logs]:Yr.Logs,[Kr.Metrics]:Yr.Metrics,[Kr.Traces]:Yr.Traces,[Kr.Profiles]:Yr.Profiles},en={[Yr.Logs]:Kr.Logs,[Yr.Metrics]:Kr.Metrics,[Yr.Traces]:Kr.Traces,[Yr.Profiles]:Kr.Profiles};var tn,rn,nn,on,an,sn,ln,dn,cn,un,pn,hn,gn,mn,fn,bn,yn,vn,$n,wn,Sn,xn,Cn;(e=>{e.Policy="InsightsPolicy",e.Finding="Finding"})(tn||(tn={})),(e=>{e.HTTP="HTTP",e.GRPC="GRPC",e.CONSUMER="CONSUMER",e.PRODUCER="PRODUCER",e.CRON="CRON",e.INTERNAL="INTERNAL"})(rn||(rn={})),(e=>{e.D1_call_edges="D1_call_edges",e.D2_egress="D2_egress",e.D3_latency="D3_latency",e.D4_args_returns="D4_args_returns",e.D5_libraries="D5_libraries",e.D6_attr_relations="D6_attr_relations",e.D7_db_access="D7_db_access",e.D8_payload_size="D8_payload_size"})(nn||(nn={})),(e=>{e.Example="example",e.AnomalyEvidence="anomaly_evidence",e.GuardrailEvidence="guardrail_evidence"})(on||(on={})),(e=>{e.Global="global",e.Service="service",e.Transaction="transaction"})(an||(an={})),(e=>{e.Info="info",e.Low="low",e.Medium="medium",e.High="high",e.Critical="critical"})(sn||(sn={})),(e=>{e.Anomaly="anomaly",e.Violation="violation"})(ln||(ln={})),(e=>{e.Open="open",e.Baselined="baselined",e.Dismissed="dismissed"})(dn||(dn={})),(e=>{e.Open="open",e.Allowed="allowed",e.Dismissed="dismissed"})(cn||(cn={})),(e=>{e.Suggest="suggest",e.Enforce="enforce"})(un||(un={})),(e=>{e.Accept="accept",e.Dismiss="dismiss",e.Reopen="reopen"})(pn||(pn={})),(e=>{e.Accept="accept",e.Dismiss="dismiss"})(hn||(hn={})),(e=>{e.All="all",e.Any="any",e.KOf="k_of"})(gn||(gn={})),(e=>{e.Promoted="promoted",e.Empty="empty",e.Learning="learning"})(mn||(mn={})),(e=>{e.MinObservations="min_observations",e.MinDuration="min_duration",e.StableObservations="stable_observations",e.StableDuration="stable_duration"})(fn||(fn={})),(e=>{e.Healthy="healthy",e.Degraded="degraded",e.Critical="critical",e.Unreachable="unreachable"})(bn||(bn={})),(e=>{e.Ok="ok",e.Warning="warning",e.Critical="critical"})(yn||(yn={})),(e=>{e.Structural="structural",e.Metric="metric"})(vn||(vn={})),(e=>{e.InferDBAttributes="InferDBAttributes",e.AutoGoOffsetUpdater="AutoGoOffsetUpdater",e.EnableOwnMetrics="EnableOwnMetrics",e.SampleHealthProbes="SampleHealthProbes",e.UrlTemplatization="UrlTemplatization"})($n||($n={})),(e=>{e.Recommended="recommended",e.Applied="applied",e.Dismissed="dismissed",e.NotApplicable="notApplicable"})(wn||(wn={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(Sn||(Sn={})),(e=>{e.DirectAutoOffsets="DirectAutoOffsets",e.DropAllHealthProbes="DropAllHealthProbes",e.EnableInferDbAttributes="EnableInferDbAttributes",e.EnableOwnMetricsStore="EnableOwnMetricsStore",e.EnableUrlTemplatization="EnableUrlTemplatization",e.ImageAutoOffsets="ImageAutoOffsets",e.SparseSampleHealthProbes="SparseSampleHealthProbes"})(xn||(xn={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(Cn||(Cn={}));const En={[sr.Enrichment]:{TITLE:"Enrichment",ICON:c},[sr.Normalization]:{TITLE:"Normalization",ICON:d},[sr.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},Tn={[ar.AddClusterInfo]:sr.Enrichment,[ar.K8sAttributes]:sr.Enrichment,[ar.ExtractAttribute]:sr.Enrichment,[ar.InferDbAttributes]:sr.Enrichment,[ar.DbQueryTemplatization]:sr.Normalization,[ar.URLTemplatization]:sr.Normalization,[ar.RenameAttributes]:sr.Normalization,[ar.PiiMasking]:sr.Privacy,[ar.DeleteAttributes]:sr.Privacy},On=e=>{const t=Tn[e];return t?En[t].ICON:u},Nn=[{type:ar.K8sAttributes,icon:On(ar.K8sAttributes),category:Tn[ar.K8sAttributes],label:"Kubernetes Attributes",subtitle:"Add dynamic k8s resource attributes to your data.",description:"This action adds kubernetes related resource attributes to spans, metrics data points and log records.",allowedSignals:[Kr.Traces,Kr.Metrics,Kr.Logs,Kr.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[vr.K8s]},{type:ar.AddClusterInfo,icon:On(ar.AddClusterInfo),category:Tn[ar.AddClusterInfo],label:"Add Cluster Info",subtitle:"Add static cluster-scoped attributes to your data.",description:"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.",allowedSignals:[Kr.Traces,Kr.Metrics,Kr.Logs,Kr.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[vr.K8s]},{type:ar.DeleteAttributes,icon:On(ar.DeleteAttributes),category:Tn[ar.DeleteAttributes],label:"Delete Attribute",subtitle:"Delete attributes from logs, metrics, and traces.",description:"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.",allowedSignals:[Kr.Traces,Kr.Metrics,Kr.Logs,Kr.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[vr.K8s]},{type:ar.RenameAttributes,icon:On(ar.RenameAttributes),category:Tn[ar.RenameAttributes],label:"Rename Attribute",subtitle:"Rename attributes in logs, metrics, and traces.",description:"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.",allowedSignals:[Kr.Traces,Kr.Metrics,Kr.Logs,Kr.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[vr.K8s]},{type:ar.PiiMasking,icon:On(ar.PiiMasking),category:Tn[ar.PiiMasking],label:"PII Masking",subtitle:"Mask PII data in your traces.",description:"This action processes a list of PII categories to be masked from the traces.",allowedSignals:[Kr.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[vr.K8s]},{type:ar.URLTemplatization,icon:On(ar.URLTemplatization),category:Tn[ar.URLTemplatization],label:"URL Templatization",subtitle:"Replace dynamic URL path segments with named placeholders.",description:"Normalizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",allowedSignals:[Kr.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[vr.K8s]:or("v1.21.0")},supportedPlatforms:[vr.K8s,vr.Vm]},{type:ar.ExtractAttribute,icon:On(ar.ExtractAttribute),category:Tn[ar.ExtractAttribute],label:"Extract Attribute",subtitle:"Extract values from existing attributes into new ones.",description:"Extracts a value from an existing span attribute into a new attribute on the same span. The value can be located by combining a lookup key with a pre-set data format (JSON, SQL, or resource path), or by supplying a custom regular expression that uses a single capture group.",allowedSignals:[Kr.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[vr.K8s]:or("v1.29.0")},supportedPlatforms:[vr.K8s]}],An=or("v1.26"),In=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),kn=(e,t,r)=>{const n=e.minVersion?.[t];return!n||or(r)>=n},Rn=(e,t)=>Nn.filter(r=>In(r,e)&&kn(r,e,t)).map(r=>((e,t,r)=>t!==vr.K8s||or(r)>=An?e:e.allowedSignals?.includes(Kr.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Kr.Profiles)}:e)(r,e,t)),Dn=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:On(e.type),category:e.category||Tn[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]};var _n;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(_n||(_n={}));const Ln={[_n.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[_n.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[_n.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[_n.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[_n.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[_n.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Pn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var Un,Mn,Fn;(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"})(Un||(Un={})),(e=>{e.XXXS="xxxs",e.XXS="xxs",e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e.XXL="xxl",e.XXXL="xxxl"})(Mn||(Mn={})),(e=>{e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Disable="disable",e.Error="error",e.Mandatory="mandatory",e.Link="link",e.Success="success"})(Fn||(Fn={}));const zn=new Set(Object.values(Fn)),Bn=(e,t)=>{if("string"!=typeof(r=t)||!zn.has(r))return t;var r;switch(t){case Fn.Primary:return e.v2.colors.white[500];case Fn.Secondary:return e.v2.colors.silver[200];case Fn.Tertiary:return e.v2.colors.black[500];case Fn.Disable:return e.v2.colors.grey[400];case Fn.Error:return e.v2.colors.red[500];case Fn.Mandatory:return e.v2.colors.red[600];case Fn.Link:return e.v2.colors.purple[400];case Fn.Success:return e.v2.colors.green[400];default:return}},Hn=n.p`
|
|
2
|
+
margin: 0;
|
|
3
|
+
color: ${({$color:e,theme:t})=>Bn(t,e)||t.v2.colors.grey[50]};
|
|
4
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
5
|
+
font-size: ${({theme:e,$size:t})=>e.v2.text.size[t]}px;
|
|
6
|
+
font-weight: ${({$weight:e})=>e};
|
|
7
|
+
text-align: ${({$align:e})=>e};
|
|
8
|
+
text-transform: ${({$transform:e})=>e};
|
|
9
|
+
line-height: ${({theme:e,$lineHeight:t,$size:r})=>t||`${e.v2.text.size[r]+2}px`};
|
|
10
|
+
opacity: ${({$opacity:e})=>e};
|
|
11
|
+
|
|
12
|
+
${({$nowrap:e})=>e?i`
|
|
13
|
+
text-wrap: nowrap;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
text-overflow: ellipsis;
|
|
17
|
+
`:i`
|
|
18
|
+
flex: 0 1 auto;
|
|
19
|
+
min-width: 0;
|
|
20
|
+
overflow-wrap: anywhere;
|
|
21
|
+
`}
|
|
22
|
+
|
|
23
|
+
${({$maxLines:e})=>!!e&&e>0&&i`
|
|
24
|
+
display: -webkit-box;
|
|
25
|
+
-webkit-box-orient: vertical;
|
|
26
|
+
-webkit-line-clamp: ${e};
|
|
27
|
+
line-clamp: ${e};
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
`}
|
|
30
|
+
|
|
31
|
+
${({$underline:e})=>e&&i`
|
|
32
|
+
text-decoration: underline;
|
|
33
|
+
`}
|
|
34
|
+
|
|
35
|
+
${({$withClick:e})=>e&&i`
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
&:hover {
|
|
38
|
+
text-decoration: underline;
|
|
39
|
+
}
|
|
40
|
+
`}
|
|
41
|
+
`,jn=zt(({children:r,variant:n=Un.P,color:i,size:o=Mn.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:d,transform:c,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},b)=>{const y="string"==typeof r?r.split("\n").map((r,n,i)=>e(Bt,{children:[r,n!==i.length-1&&t("br",{})]},`typography-${n}-${r}`)):r;return t(Hn,{ref:b,as:n,$color:i,$size:o,$weight:a,$opacity:s,$align:l,$lineHeight:d,$transform:c,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:y})});jn.displayName="Typography";const Xn="https://docs.odigos.io",Wn="default",Gn="this-cluster",Vn="This Cluster",Kn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Yn={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 start with a number and may include a build or prerelease suffix (e.g. 1.0.0, 21.0.11+10)",PHP_CUSTOM_INSTRUMENTATION_RESTART:"PHP custom instrumentation is applied via environment variables. After creating or updating this rule, please rollout restart your PHP workloads for the probes to take effect."},Jn={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",NO_CONNECTIONS:"No connections",DELETE_CONNECTION:"Delete Connection",ODIGOS_VERSION:"Odigos Version",CONNECTED_SINCE:"Connected Since",LAST_ACTIVITY:"Last Activity",MANAGE_CONFIGURATIONS:"Manage Configurations",EDIT_CONFIGURATION:"Edit Configuration",UPGRADE_REQUIRED:"Upgrade Required",UPGRADE_TO_USE_FEATURE:e=>`To use this feature, please upgrade to Odigos v${e} or later.`,CURRENT_VERSION:e=>`Current version: ${e}.`,CONNECTION_LIVE:"Connection live",CONNECTION_LOST:"Connection lost",SEARCH_BY_CLUSTER_NAME:"Search by cluster name",SELECTED_CLUSTERS:"Selected Clusters",CLOUD_CONNECTOR:"Cloud Connector",CREATE_CLOUD_CONNECTOR:"Create Cloud Connector",CLOUD_CONNECTOR_SELECT_PROVIDER_TITLE:"Connect a cloud or SaaS account to Odigos Central",CLOUD_CONNECTOR_SELECT_PROVIDER_SUBTITLE:"Choose a provider and decide how much access Odigos should have in your account.",CLOUD_CONNECTOR_PERMISSIONS_NOTE:"Cloud connectors require a platform account with cross-account IAM trust and scoped permissions for Odigos Central (e.g. sts:AssumeRole plus discovery/instrumentation policies). Organizations without these privileges cannot complete this workflow.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_TITLE:"Discovery only",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_DESC:"Odigos detects workloads in your account but can't change them. Pick this to evaluate before granting write access.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_TITLE:"Discovery + instrumentation",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_DESC:"Odigos detects workloads and applies instrumentation automatically — the fastest way to start collecting telemetry.",CLOUD_CONNECTOR_PERMISSION_CUSTOM_TITLE:"Custom",CLOUD_CONNECTOR_PERMISSION_CUSTOM_DESC:"Choose exactly which resource types Odigos can discover and instrument.",CLOUD_CONNECTOR_POLICY_PREVIEW:"Policy preview",CLOUD_CONNECTOR_POLICY_NOTE:"The IAM policy below grants the permissions required to discover and instrument supported workloads.",CLOUD_CONNECTOR_POLICY_NOTE_CUSTOM:"The IAM policy below is generated from the resource types you selected.",CLOUD_CONNECTOR_CUSTOM_COL_TYPE:"Type",CLOUD_CONNECTOR_CUSTOM_COL_DISCOVERY:"Enabled",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION:"Instrumentation mode",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION_TOOLTIP:"Managed by Odigos: Odigos applies instrumentation automatically. Self-managed (IaC): you manage instrumentation yourself; Odigos will not modify these workloads.",CLOUD_CONNECTOR_INSTRUMENTATION_MANAGED_BY_ODIGOS:"Managed by Odigos",CLOUD_CONNECTOR_INSTRUMENTATION_SELF_MANAGED:"Self-managed (IaC)",CLOUD_CONNECTOR_SETUP_CREDENTIALS_TITLE:"Setup credentials",CLOUD_CONNECTOR_SETUP_CREDENTIALS_SUBTITLE:"Apply the selected IAM policy in AWS account.",CLOUD_CONNECTOR_AUTH_TITLE:"Choose Authentication method",CLOUD_CONNECTOR_AUTH_SUBTITLE:"Decide how Odigos authenticates with your AWS account.",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE:"Assume Role",CLOUD_CONNECTOR_AUTH_STATIC_KEYS:"Static keys",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE_NOTE:"Odigos assumes a scoped IAM role. No long-lived secrets are stored.",CLOUD_CONNECTOR_AUTH_STATIC_KEYS_NOTE:"Odigos uses long-lived access keys you provide. Rotate them regularly to keep your account secure.",CLOUD_CONNECTOR_SETUP_METHOD_TITLE:"Choose setup method",CLOUD_CONNECTOR_SETUP_METHOD_SUBTITLE:"Use the tool that best fits your workflow. The result is the same IAM role either way.",CLOUD_CONNECTOR_SETUP_METHOD_CLOUDFORMATION:"CloudFormation",CLOUD_CONNECTOR_SETUP_METHOD_TERRAFORM:"Terraform",CLOUD_CONNECTOR_SETUP_METHOD_AWS_CLI:"AWS CLI",CLOUD_CONNECTOR_SETUP_METHOD_MANUAL:"Manual",CLOUD_CONNECTOR_CREATE_ROLE_TITLE:"Create IAM role",CLOUD_CONNECTOR_CREATE_ROLE_STEPS_HEADING:"Follow these steps to create the role:",CLOUD_CONNECTOR_ENTER_ARN_TITLE:"Enter Role ARN",CLOUD_CONNECTOR_ENTER_ARN_SUBTITLE:"Paste the generated Role ARN into Odigos.",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_LABEL:"AWS Account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_PLACEHOLDER:"Insert AWS account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_HELP:"The 12-digit account ID where the IAM role or user lives.",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_LABEL:"Access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_PLACEHOLDER:"Insert access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_FIELD_SECRET_ID_LABEL:"Secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_PLACEHOLDER:"Insert secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_VALIDATE_TITLE:"Validate connection",CLOUD_CONNECTOR_VALIDATE_SUBTITLE:"Odigos ran read-only checks against your AWS account.",CLOUD_CONNECTOR_VALIDATE_SUCCESS:"All checks passed. Your connection is ready.",CLOUD_CONNECTOR_VALIDATE_FAILURE:"Some checks failed. Review the details below and go back to fix your credentials or permissions.",CLOUD_CONNECTOR_VALIDATE_EMPTY:"No validation results yet.",CLOUD_CONNECTOR_VALIDATE_ACCOUNT:"Account",CLOUD_CONNECTOR_VALIDATE_IDENTITY:"Identity",CLOUD_CONNECTOR_TESTING_TITLE:"Verifying & creating connector...",CLOUD_CONNECTOR_CONNECTION_FAILED_TITLE:"Connection Failed",CLOUD_CONNECTOR_CONNECTION_FAILED_DEFAULT:"Odigos could not validate the connection. Review the error details below and retry.",CLOUD_CONNECTOR_CREATED_SUCCESS:"Connector created. It will appear in your connections list.",CLOUD_CONNECTOR_CREATED_MODAL_TITLE:"Connector created successfully!",CLOUD_CONNECTOR_CREATED_MODAL_DESC:"Your connector has been created and is now ready to start discovering workloads.",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",RENAME_STREAM:e=>`Rename "${e}"`,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}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,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",ADD_SOURCES:"Add Sources",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",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",INSTRUMENTATION_STATUS:"Instrumentation Status",INSTRUMENTATION:"Instrumentation",INSTRUMENTATION_DESCRIPTION:"Detected runtime and instrumentation applied to this source.",PROGRESS:"Progress",RUNTIME:"Runtime",LAST_UPDATED:"Last updated",ISSUES:"Issues",WAITING_FOR:"Waiting for",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",OVERVIEW:"Overview",LIBRARIES:"Libraries",STANDARD_LIBRARY:"Standard Library",STANDARD:"Standard",PEER_SOURCES:"Peer Sources",PROFILING:"Profiling",INBOUND:"Inbound",OUTBOUND:"Outbound",INBOUND_DESCRIPTION:e=>`Services that send requests to ${e}`,OUTBOUND_DESCRIPTION:e=>`Services that ${e} sends requests to`,NO_INBOUND_CONNECTIONS_DESCRIPTION:"No services are currently sending requests to this source.",NO_OUTBOUND_CONNECTIONS_DESCRIPTION:"This source hasn't sent requests to other services yet.",NO_INBOUND_CONNECTIONS:"No inbound connections",NO_OUTBOUND_CONNECTIONS:"No outbound connections",COULD_NOT_FETCH_PEER_SOURCES:"Could not fetch peer sources",VIRTUAL:"Virtual",VIRTUAL_TOOLTIP:"This service is not instrumented/injected with Odigos, but we can still see it in the service map because it is connected to other services.",NO_RESULTS:"No results",NO_RESULTS_FOR_FILTER:e=>`No results matched the filter '${e}'`,POD:"Pod",PODS:"Pods",PODS_HEALTHY:"Pods are healthy",PODS_NOT_HEALTHY:"Pods are not healthy",NO_RUNNING_PODS:"No running pods",NO_RUNNING_PODS_SUBTITLE:"Check if you have any running pods and try again",AGENT_INJECTED:"Agent injected",AGENT_NOT_INJECTED:"Agent not injected",KUBERNETES_HEALTHY:"Kubernetes healthy",ODIGOS_HEALTHY:"Odigos healthy",HEALTHY:"Healthy",UNHEALTHY:"Unhealthy",NOT_HEALTHY:"Not Healthy",NODE:"Node",AGE:"Age",RUNNING_TIME:"Running Time",RUNNING_TIME_TOOLTIP:"Time elapsed since the container was last started and entered the Running state",NOT_RUNNING:"Not Running",UNKNOWN_VALUE:"—",START_TIME_UNAVAILABLE:"This agent version does not report pod start times",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",CRASHLOOP_BACKOFF:"Crashloop backoff",CANNOT_POOL_IMAGE:"Cannot pool image",DEVICE_NAME:"Device Name",INSTRUMENTED:"Instrumented",UNINSTRUMENTED:"Uninstrumented",INSTRUMENTED_WITH_DISTRO:e=>`Instrumented | ${e}`,DEBUG_COMMANDS:"Debug Commands",YAML:"YAML",YAML_FILES:"YAML Files",GET_POD_YAML:"Get Pod YAML",GET_POD_LOGS:"Get Pod Logs",DESCRIBE_POD:"Describe Pod",CONTAINER:"Container",CONTAINERS:"Containers",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",NO_CONTAINERS_DETECTED:"No containers detected",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",NO_PROCESSES_DETECTED:"No processes detected",CONTAINER_NAME:"Container Name",PROCESS:"Process",PROCESSES:"Processes",PROCESS_FALLBACK_NAME:"process",PROCESS_PID:"PID",EXECUTABLE:"Executable",COMMAND:"Command",OPEN_IN_POD_TAB:"Open in 'Pod' tab",OPEN_IN_SAMPLING_PAGE:"Open in 'Sampling' page",ALL_CONTAINERS_HEALTHY:e=>`All ${e} containers are healthy`,ALL_PROCESSES_HEALTHY:e=>`All ${e} processes are healthy`,PID:e=>`#${e}`,IDENTIFYING_ATTRIBUTES:"Identifying Attributes",INSTRUMENTATION_LIBRARIES:"Instrumentation Libraries",INSTRUMENTED_LIBRARIES:"Instrumented Libraries",INSTRUMENTATION_LIFECYCLE:"Instrumentation Lifecycle",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select all",UNSELECT_ALL:"Unselect 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",NO_DATA_INSTRUMENTATION_RULES:"To configure how telemetry is collected",NO_DATA_SOURCES:"To start collecting telemetry from a Kubernetes workload",NO_DATA_ACTIONS:"To process telemetry before export",NO_DATA_DESTINATIONS:"To send telemetry to an observability backend",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_DETAILS_SUBTITLE:"Use when multiple languages exist in the same container or when Odigos is unable to detect the application language",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.",OVERRIDE_OTEL_DISTRO_NAME:"Override OpenTelemetry distro name",OVERRIDE_OTEL_DISTRO_NAME_SUBTITLE:"Use to set a specific Odigos OpenTelemetry distribution",OVERRIDE_OTEL_DISTRO_NAME_WARNING:"This is an advanced configuration. If the selected OpenTelemetry distro name is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME_SAVE_TOOLTIP:"Use the provided OpenTelemetry distro name to instrument this container",OVERRIDE_OTEL_DISTRO_NAME_DELETE_TOOLTIP:"Remove manual override of OpenTelemetry distro name, and use Odigos automatic detection OpenTelemetry distro name for instrumentation",OVERRIDE_RUNTIME_DETAILS_SAVE_TOOLTIP:"Use the provided runtime details to instrument this container",OVERRIDE_RUNTIME_DETAILS_DELETE_TOOLTIP:"Remove manual override of runtime details, and use Odigos automatic detection runtime details for instrumentation",OTEL_DISTRO_NAME:"OpenTelemetry distro name",WAITING_FOR_RUNTIME_DETECTION:"Waiting for runtime detection...",DETECTING_RUNTIME_INFO:"Detecting runtime info",NO_AVAILABLE_AGENT:"No available agent",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",PHP_CUSTOM_PROBES:"PHP Custom Probes",ROLLOUT:"Rollout",ROLLOUT_RESTART:"Rollout Restart",ROLLOUT_RESTART_WORKLOADS_DESCRIPTION:"Are you sure you want to rollout restart these workloads?",ROLLOUT_NOT_REQUIRED:"Rollout Not Required",ROLLOUT_NOT_REQUIRED_MESSAGE:"This source is instrumented with eBPF and does not require a restart.",ROLLOUT_FAILED:"Rollout Failed",ROLLOUT_PREVIOUS_ONGOING:"Previous Rollout Ongoing",ROLLOUT_PREVIOUS_ONGOING_MESSAGE:"A previous rollout is ongoing. Please wait for it to finish before triggering a new one.",ROLLOUT_AUTO_DISABLED:"Auto Rollout Disabled",ROLLOUT_AUTO_DISABLED_MESSAGE:"Trigger a manual rollout to inject the agent.",ROLLOUT_FINISHED:"Rollout Finished",ROLLOUT_FINISHED_MESSAGE:"All pods have been updated and are healthy.",ROLLBACK:"Rollback",ROLLBACK_OCCURRED:"Rollback Occurred",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_SUCCESS:"Rollback Success",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos.",THROUGHPUT_LAST_10_SECONDS:"Throughput (last 10 seconds)",DELETE_POD_TO_RESTART:"Delete Pod to Restart",DEBUG:"Debug",SAMPLING:"Sampling",HEAD_SAMPLING:"Head Sampling",TAIL_SAMPLING:"Tail Sampling",NOISY_OPERATIONS:"Noisy Operations",HIGHLY_RELEVANT_OPERATIONS:"Highly Relevant Operations",COST_REDUCTION_OPERATIONS:"Cost Reduction Operations"},qn={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",CREATE_NEW:"Create new",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",CLOSE:"Close",DONE:"Done",SAVE:"Save",BACK:"Back",CONFIRM:"Confirm",NEXT:"Next",VERIFY:"Verify",VERIFY_AND_CREATE_CONNECTOR:"Verify & Create Connector",STAY_ON_CONNECTIONS:"Stay on connections page",GO_TO_CONNECTOR_OVERVIEW:"Go to connector overview",RETRY:"Retry",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},Qn=(e,t)=>e===Nr.Success?Jn.HEALTHY:e===Nr.Error?Jn.NOT_HEALTHY:Pn(t),Zn=e=>{if(!e)return null;switch(e){case Mr.Irrelevant:return null;case Mr.Failure:case Mr.Error:return Nr.Error;case Mr.Notice:return Nr.Warning;case Mr.Pending:case Mr.Waiting:return Nr.Loading;case Mr.Unsupported:case Mr.Disabled:return Nr.Disabled;case Mr.Success:return Nr.Success;case Mr.Unknown:default:return Nr.Info}},ei=(e,t,r="reason",n)=>{const i=Zn(e?.status);return i?{key:`desired-status-${e?.name}`,status:i,leftIcon:t||(i===Nr.Success?p:h),label:n||("reason"===r?Pn(e?.reasonEnum):Qn(i,e?.reasonEnum)),tooltip:e?.message,textSize:Mn.XXXS,invertColors:!0,useSecondaryTone:!0}:null},ti=e=>e.charAt(0).toUpperCase()+e.slice(1);var ri;(e=>{e.SIGNALS="SIGNALS"})(ri||(ri={}));const ni=(e,t,r)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[n,i,o]=e;if(n===ri.SIGNALS)switch(i){case"INCLUDES":return t?.includes(o);case"EXCLUDES":return!t?.includes(o);default:return!0}const a=r.find(e=>e.name===n||e.key===n);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(i){case"===":case"==":return s===o;case"!==":case"!=":return s!==o;case">":return Number(s)>Number(o);case"<":return Number(s)<Number(o);case">=":return Number(s)>=Number(o);case"<=":return Number(s)<=Number(o);default:return!0}};function ii(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const oi=e=>({status:e?Nr.Success:Nr.Unknown,label:e?"True":"False",invertColors:!0}),ai=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),si=e=>{if(null==e||""===e)return"-";if("boolean"==typeof e)return e?"True":"False";if("number"==typeof e)return String(e);if("string"==typeof e)return e||"-";if(Array.isArray(e)){const t=e.map(e=>null==e||""===e?"":"string"==typeof e||"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)).filter(Boolean);return t.length?t.join(", "):"-"}return JSON.stringify(e)},li=e=>"string"==typeof e?{id:e,label:e}:e??{},di=(e,t)=>e.label||e.displayName||t,ci=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const r=t.map(t=>{const r=String(t??"");if(!r)return"";const n=e.options?.find(e=>String(e.id??"")===r);return n?di(n,r):r}).filter(Boolean);return r.join(", ")}const r=String(t),n=e.options?.find(e=>String(e.id??"")===r);return n?di(n,r):si(t)},ui=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const r=ai(e.componentProps)?e.componentProps:void 0;return{name:t,displayName:e.displayName||t,componentType:e.componentType,componentProperties:"string"==typeof e.componentProperties?e.componentProperties:r?JSON.stringify(r):void 0,initialValue:e.initialValue,renderCondition:e.renderCondition}},pi=e=>{const t=[];return e.forEach(e=>{"cells"!==e.kind&&"list"!==e.kind&&"pairs"!==e.kind?(e.items?.length&&t.push(...e.items),e.segments?.length&&t.push(...pi(e.segments))):t.push(...e.items)}),t},hi=(e,t,r={})=>{const n=[],i=r.signals||[],o=new Set(r.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));let s=[];const l=()=>{s.length&&(n.push({kind:"cells",id:`cells-${n.length}`,items:s}),s=[])};return t.forEach((t,d)=>{if(!t?.name||o.has(t.componentType))return;if(t.renderCondition?.length&&!ni(t.renderCondition,i,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=ii(t.componentProperties,{});switch(t.componentType){case Tr.Toggle:case Tr.Checkbox:return void s.push({id:u,title:c,badge:oi(!!p)});case Tr.CheckboxList:{const t=h.valueMode||"object";if("array"===t){const e=Array.isArray(p)?p.map(String).filter(Boolean):[],t=Array.isArray(h.options)?h.options:[],r=e.map(e=>{const r=t.map(li).find(t=>String(t.id??"")===e);return r?di(r,e):e});return l(),void n.push({kind:"list",id:u,title:c,items:r.length?r.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}if("flatFields"===t)return void(Array.isArray(h.options)?h.options:[]).forEach((t,r)=>{const n=li(t),i=String(n.id??"");i&&s.push({id:`${u}-${r}-${i}`,title:di(n,i),badge:oi(!0===e[i])})});const r=ai(p)?p:{},i=Array.isArray(h.options)?h.options:[];let o=[];return o=i.length?i.map(e=>{const t=li(e),n=String(t.id??"");return n&&r[n]?di(t,n):null}).filter(Boolean):Object.entries(r).filter(([,e])=>!!e).map(([e])=>e),l(),void n.push({kind:"list",id:u,title:c,items:o.length?o.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case Tr.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,r=e&&ai(p)?p[e]:p,i=Array.isArray(r)&&r.length?r.map(e=>t&&ai(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];return l(),void n.push({kind:"list",id:u,title:c,items:i.length?i.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case Tr.KeyValuePair:return l(),ai(p)&&Object.keys(p).length?void n.push({kind:"pairs",id:u,title:c,items:Object.entries(p).map(([e,t],r)=>({id:`${u}-${r}`,title:e,label:String(t??"")}))}):Array.isArray(p)&&p.length?void n.push({kind:"pairs",id:u,title:c,items:p.map((e,t)=>{const r=ai(e)?e:{};return{id:`${u}-${t}`,title:String(r.key??""),label:String(r.value??"")}})}):void n.push({kind:"pairs",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]});case Tr.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&ai(p)?p[e]:p)?e&&ai(p)?p[e]:p:[],r=(g=h.columns,Array.isArray(g)?g.map(e=>{const t=e&&"object"==typeof e?e:{},r=t.options??t.values,n=Array.isArray(r)?r.map(li):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:n,componentType:t.componentType,renderCondition:Array.isArray(t.renderCondition)&&t.renderCondition.length>=3?t.renderCondition:void 0}}).filter(e=>!!e.keyName):[]);return l(),t.length?void t.forEach((e,i)=>{const o=t.length>1?`${c} #${i+1}`:c,a=[],s=ai(e)?{...e}:{};null!=s.method&&""!==s.method||!r.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(s.method=String(s.regex??"").trim()?"regex":"preset"),r.length?r.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[r,n,i]=t,o=null==e?.[r]?"":String(e[r]);switch(n){case"=":case"==":case"===":return o===i;case"!=":case"!==":return o!==i;default:return!0}})(s,e.renderCondition))return;let t=s[e.keyName];(null==t||""===t||Array.isArray(t)&&!t.length)&&"fromSources"===e.keyName&&null!=s.from&&""!==s.from&&(t=[s.from]),null==t||""===t||Array.isArray(t)&&!t.length||"segment"!==e.componentType&&a.push({id:`${u}-${i}-${e.keyName}`,title:e.label||ti(Pn(e.keyName))||e.keyName,label:ci(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${i}-${e}`,title:e,label:si(t)})}),n.push({kind:"group",id:`${u}-${i}`,title:o,items:a.length?a:[{id:`${u}-${i}-empty`,label:"-"}]})}):void n.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}case Tr.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(ui).filter(Boolean),i=h.itemLabel||c;return l(),e.length?void e.forEach((o,a)=>{const s=e.length>1?`${i} ${a+1}`:i,l=ai(o)?o:{},d=t.length?hi(l,t,r):[{kind:"cells",id:`${u}-${a}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],r)=>({id:`${u}-${a}-${r}-${e}`,title:e,label:si(t)}))}];n.push({kind:"group",id:`${u}-${a}`,title:s,segments:d.length?d:void 0,items:d.length?void 0:[{id:`${u}-${a}-empty`,label:"-"}]})}):void n.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}default:s.push({id:u,title:c,label:si(p)})}var g}),l(),n},gi=(e,t,r={})=>pi(hi(e,t,r)),mi=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),r=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,n])=>Array.isArray(n)?[e,t(n)]:"object"==typeof n&&null!==n?[e,r(n)]:[e,n]));return Object.entries(e).reduce((e,[n,i])=>{try{const o=JSON.parse(i);Array.isArray(o)?e[n]=JSON.stringify(t(o)):e[n]="object"==typeof o&&null!==o?JSON.stringify(r(o)):i}catch(o){"object"==typeof i&&null!==i?Array.isArray(i)?e[n]=JSON.stringify(t(i)):e[n]=JSON.stringify(r(i)):e[n]=i}return e},{})},fi=e=>JSON.parse(JSON.stringify(e)),bi=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),yi=(e,t,r)=>{const n=t.split(".");let i=e;for(let e=0;e<n.length-1;e++)n[e]in i&&"object"==typeof i[n[e]]||(i[n[e]]={}),i=i[n[e]];i[n[n.length-1]]=r},vi=(e,t)=>{let r=[...e];return t.monitors?.length&&(r=r.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),r},$i=(e,t)=>{let r=[...e];return t.monitors?.length&&(r=r.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),r},wi=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Si=(e,t)=>{let r=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));r=r.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));r=r.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));r=r.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));r=r.filter(({runtimeInfo:t,containers:r})=>t?.detectedLanguages?.some(t=>e.has(t))||r?.some(t=>{const r=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!r&&e.has(r)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));r=r.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}if(t.statuses?.length){const e=new Set(t.statuses.map(({id:e})=>e));r=r.filter(({instrumentationReport:t})=>{const r=t?.state||t?.progressStage;return!!r&&e.has(r)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));r=r.filter(t=>{const r=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(r)})}return t.onlyErrors&&(r=r.filter(e=>Zn(e.workloadOdigosHealthStatus?.status)===Nr.Error)),r},xi=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Wn&&!e.dataStreamNames?.length):[],Ci=(e,t="",r={})=>{for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],o=t?`${t}.${n}`:n;null===i||"object"!=typeof i||Array.isArray(i)?Array.isArray(i)?i.forEach((e,t)=>{const n=`${o}[${t}]`;null!==e&&"object"==typeof e?Ci(e,n,r):r[n]=e}):r[o]=i:Ci(i,o,r)}return r},Ei=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]}`},Ti=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`}},Oi=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,r=>{const n=e[t%16];return t++,("1"===r?n:"0"===r?63&n|128:15&n|64).toString(16)})},Ni=e=>e?e.reduce((e,t)=>{if(null!=t){const r=Zn(t.status);r&&e.push({status:r,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],Ai=e=>Array.isArray(e?.statuses)?Ni(e.statuses):e?.conditions??[],Ii=e=>e?Array.isArray(e)?ki(e):ki(Ni(Object.values(e))):ki([]),ki=e=>{const t=e?.filter(({status:e})=>e===Nr.Error),r=e?.filter(({status:e})=>e===Nr.Warning),n=e?.filter(({status:e})=>e===Nr.Disabled),i=e?.filter(({status:e})=>e===Nr.Loading),o=t.length>0,a=r.length>0,s=n.length>0;return{errors:t,hasErrors:o,warnings:r,hasWarnings:a,disableds:n,hasDisableds:s,loadings:i,hasLoadings:i.length>0,priorotizedStatus:o?Nr.Error:a?Nr.Warning:s?Nr.Info:void 0}},Ri=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Di=e=>({[Sr.Java]:k,[Sr.Go]:I,[Sr.JavaScript]:A,[Sr.Python]:N,[Sr.DotNet]:O,[Sr.CSharp]:T,[Sr.CPlusPlus]:E,[Sr.Php]:C,[Sr.Ruby]:x,[Sr.Rust]:S,[Sr.Swift]:w,[Sr.Elixir]:$,[Sr.MySql]:v,[Sr.Nginx]:y,[Sr.Postgres]:b,[Sr.Redis]:f,[Sr.Kafka]:m,[Sr.Ignored]:g,[Sr.Unknown]:g,[Sr.Processing]:g,[Sr.NoContainers]:g,[Sr.NoRunningPods]:g}[e]||g),_i=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Sr.Unknown:Sr.Unknown,Li=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Pi=e=>e?.map(e=>Di(_i(e)))||[],Ui=e=>e?.map(e=>Di(e))||[],Mi=e=>e.runtimeInfo?.detectedLanguages?.length?Ui(e.runtimeInfo?.detectedLanguages):Pi(e.containers),Fi=(e,t)=>{const r={[Lr.Alauda]:Pe,[Lr.AlibabaCloud]:Le,[Lr.AppDynamics]:_e,[Lr.Axiom]:De,[Lr.AzureBlob]:Re,[Lr.AzureMonitor]:ke,[Lr.BetterStack]:Ie,[Lr.Bonree]:Ae,[Lr.Causely]:Ne,[Lr.Checkly]:Oe,[Lr.Chronosphere]:Te,[Lr.ClickHouse]:Ee,[Lr.CloudWatch]:Ce,[Lr.Coralogix]:xe,[Lr.Dash0]:Se,[Lr.Datadog]:we,[Lr.Dynamic]:Y,[Lr.Dynatrace]:$e,[Lr.ElasticApm]:ve,[Lr.ElasticSearch]:ye,[Lr.GoogleCloud]:be,[Lr.GoogleCloudOTLP]:be,[Lr.GrafanaCloudLoki]:fe,[Lr.GrafanaCloudPrometheus]:fe,[Lr.GrafanaCloudTempo]:fe,[Lr.Greptime]:me,[Lr.Groundcover]:ge,[Lr.Honeycomb]:he,[Lr.HyperDX]:pe,[Lr.Instana]:ue,[Lr.Jaeger]:ce,[Lr.Kafka]:m,[Lr.Kloudmate]:de,[Lr.Last9]:le,[Lr.Lightstep]:se,[Lr.LogzIo]:ae,[Lr.Loki]:oe,[Lr.Lumigo]:ie,[Lr.Middleware]:ne,[Lr.NewRelic]:re,[Lr.Observe]:te,[Lr.Odigos]:ee,[Lr.OdigosProfileDiagnostic]:ee,[Lr.OneUptime]:Z,[Lr.OpenObserve]:Q,[Lr.Opsverse]:q,[Lr.Oracle]:J,[Lr.OTLP]:Y,[Lr.OTLPHttp]:Y,[Lr.Prometheus]:K,[Lr.Qryn]:V,[Lr.QrynOss]:G,[Lr.Quickwit]:W,[Lr.S3]:X,[Lr.Seq]:j,[Lr.Signalfx]:B,[Lr.Signoz]:H,[Lr.Splunk]:B,[Lr.SplunkSapm]:B,[Lr.SplunkOtlp]:B,[Lr.SumoLogic]:z,[Lr.TelemetryHub]:F,[Lr.Tempo]:M,[Lr.Tingyun]:U,[Lr.Traceloop]:P,[Lr.Uptrace]:L,[Lr.VictoriaMetrics]:_,[Lr.VictoriaMetricsCloud]:_,[Lr.XRay]:D,[Lr.Pyroscope]:R}[e];return r&&!t?{icon:r}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},zi=e=>({[Cr.Namespace]:He,[Cr.Source]:Be,[Cr.Destination]:ze,[Cr.Action]:u,[Cr.InstrumentationRule]:Fe,[Cr.SamplingRule]:Me,[Cr.Recommendation]:Ue}[e]),Bi=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&"string"==typeof e.id&&e.id||"id"in e&&"object"==typeof e.id&&e.id.namespace&&e.id.kind&&e.id.name?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,..."region"in e&&e.region?{region:e.region}:{}}:"name"in e&&e.name?e.name:void 0,Hi=e=>{if(!e)return"";if("string"==typeof e)return e;const t=`${e.namespace}/${e.kind}/${e.name}`;return e.region?`${t}/${e.region}`:t},ji=e=>Hi(Bi(e)),Xi=(e,t,r)=>{const{extended:n,prioritizeDisplayName:i}=r||{};let o="",a="";switch(t){case Cr.InstrumentationRule:const t=e;o=t.type,a=t.ruleName;break;case Cr.Source:const r=e;o=r.id.name,a=r.serviceName||"";break;case Cr.Action:const n=e;o=n.type,a=n.name||"";break;case Cr.Destination:const i=e;o=i.destinationType.displayName,a=i.name;break;case Cr.Namespace:const s=e;o=s.name,a=s.name}return n?o+(a&&a!==o?` (${a})`:""):i&&a||o},Wi=(e,t)=>{if(t===Cr.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[r,n]=e.split("=");t[r]=n}),t}return e},Gi=e=>({[Fr.CodeAttributes]:Ve,[Fr.CustomInstrumentation]:Ge,[Fr.HeadersCollection]:We,[Fr.PayloadCollection]:Xe,[Fr.NetworkMetrics]:je,[Fr.UnknownType]:g}[e]||g),Vi=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Sr.Unknown,Ki=e=>{const{numberOfInstances:t,containers:r}=e;if(!r)return t&&t>0?Sr.Processing:Sr.NoRunningPods;const n=r?.filter(e=>Vi(e)!==Sr.Ignored);if(!n.length)return Sr.NoContainers;const i=n.find(e=>Vi(e)!==Sr.Unknown);return i?Vi(i):Sr.Unknown},Yi=(e,t,r)=>(t===Cr.Source?e?.sources.find(e=>e.kind===r.kind&&e.name===r.name&&e.namespace===r.namespace):e?.destinations.find(e=>e.id===r))||{throughput:0},Ji=e=>({[Kr.Logs]:Ye,[Kr.Metrics]:je,[Kr.Traces]:Ke,[Kr.Profiles]:ee}[e]),qi=(e,t)=>Object.values(Mn).reduce((r,n)=>Math.abs(t[n]-e)<Math.abs(t[r]-e)?n:r),Qi=e=>e&&{[vr.K8s]:Ze,[vr.Vm]:Qe,[vr.Connector]:qe,[vr.AwsEcs]:Je}[e]||ee,Zi=e=>e?{[vr.K8s]:"Kubernetes Cluster",[vr.Vm]:"Virtual Machine",[vr.Connector]:"Cloud Connector",[vr.AwsEcs]:"AWS ECS"}[e]:"Unknown",eo=(e,t,r)=>{const n=e[t];return n?n.flatMap(e=>{const n=e[r],i=[];return void 0!==n&&(Array.isArray(n)?i.push(...n):i.push(n)),i.push(...eo(e,t,r)),i}):[]},to={"aws.lambda":"AWS Lambda","aws.fargate-task":"ECS Fargate Task","aws.fargate-cluster":"ECS Fargate Cluster","aws.ecs-cluster":"ECS Cluster","aws.eks":"Amazon EKS","aws.ec2":"Amazon EC2"},ro=e=>{if(!e)return"";if(to[e])return to[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},no=(e,t)=>{if(t===Cr.Source){let t="";return Object.entries(e).forEach(([e,r])=>{t+=`${e}=${r}&`}),t.slice(0,-1),t}return e},io=(e,t,r)=>{switch(r=r??"500",t){case Nr.Default:return e.v2.colors.purple[r];case Nr.Info:return e.v2.colors.blue[r];case Nr.Error:return e.v2.colors.red[r];case Nr.Warning:return e.v2.colors.yellow[r];case Nr.Success:return e.v2.colors.green[r];case Nr.Loading:case Nr.Disabled:case Nr.Unknown:return e.v2.colors.silver[r];default:return e.v2.colors.white[500]}},oo=e=>{switch(e){case Xr.Updating:case Wr.Pending:case Gr.ContainerCreating:case Vr.Waiting:return Nr.Info;case Xr.Healthy:case Wr.Succeeded:case Wr.Running:case Gr.Running:case Vr.Running:return Nr.Success;case Xr.Degraded:return Nr.Warning;case Xr.Failed:case Wr.Failed:case Gr.Error:case Gr.CrashLoopBackOff:case Gr.CreateContainerError:case Gr.CreateContainerConfigError:case Gr.ErrImagePull:case Gr.ErrImageNeverPull:case Gr.ImagePullBackOff:case Gr.InvalidImageName:case Gr.RegistryUnavailable:case Gr.NetworkNotReady:case Gr.OOMKilled:case Gr.ContainerCannotRun:case Vr.Terminated:case Gr.DeadlineExceeded:case Gr.StartError:return Nr.Error;case Xr.Down:case Gr.Completed:return Nr.Disabled;case Xr.Unknown:case Wr.Unknown:default:return Nr.Unknown}},ao=n.div`
|
|
42
|
+
border-radius: 100%;
|
|
43
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
|
+
position: relative;
|
|
45
|
+
`,so=n.div`
|
|
46
|
+
width: 80px;
|
|
47
|
+
height: 80px;
|
|
48
|
+
border-radius: 100%;
|
|
49
|
+
border: 4px solid ${({theme:e})=>e.v2.colors.green[300]};
|
|
50
|
+
border-right-color: transparent;
|
|
51
|
+
border-left-color: transparent;
|
|
52
|
+
border-bottom-color: transparent;
|
|
53
|
+
animation: spin 1s linear infinite;
|
|
54
|
+
@keyframes spin {
|
|
55
|
+
to {
|
|
56
|
+
transform: rotate(360deg);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
`,lo=n(jn)`
|
|
60
|
+
position: absolute;
|
|
61
|
+
top: 50%;
|
|
62
|
+
left: 50%;
|
|
63
|
+
transform: translate(-50%, -50%);
|
|
64
|
+
`,co=({percentage:r})=>e(ao,{children:[t(so,{}),"number"==typeof r?t(lo,{size:Mn.M,weight:500,nowrap:!0,children:`${r}%`}):null]}),uo={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 po(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);const n=(e.match(/[^0-9]*$/)||"").toString();return uo[n]?{value:t,unit:n}:{value:t,unit:"px"}}function ho(e){const t=po(e);return`${t.value}${t.unit}`}const go=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const r=t.sheet,n=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return r&&r.insertRule(n,0),e})(),mo=({loading:r=!0,color:n,scale:i=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...d})=>{const c=o(),u=n||c.text.secondary;if(!r)return null;const{value:p}=po(2),h=p+4.2,g=h/2+h/5.5,m=4*h*i,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:i,...l,...s},b=(e,t)=>({position:"absolute",width:ho(1.5),height:ho(4),borderRadius:ho(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${go} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return e("span",{style:f,...d,children:[t("span",{style:{...b(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),t("span",{style:{...b(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...b(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),t("span",{style:{...b(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...b(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),t("span",{style:{...b(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),t("span",{style:{...b(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),t("span",{style:{...b(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},fo=n.div`
|
|
65
|
+
width: ${({$size:e})=>e}px;
|
|
66
|
+
height: ${({$size:e})=>e}px;
|
|
67
|
+
border-radius: 100%;
|
|
68
|
+
background: ${({$color:e})=>e};
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
`,bo=({scale:e,icon:r})=>{const n=o();return t(fo,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t(fo,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t(fo,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t(fo,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t(fo,{$size:23*e,$color:"#50F6E8",children:t(r,{size:16*e,fill:n.v2.colors.black[500]})})})})})})},yo=434,vo=635,$o=n.div`
|
|
73
|
+
width: ${434}px;
|
|
74
|
+
height: ${635}px;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
padding: 16px;
|
|
80
|
+
background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
|
|
81
|
+
position: relative;
|
|
82
|
+
`,wo=n.div`
|
|
83
|
+
position: absolute;
|
|
84
|
+
top: 50%;
|
|
85
|
+
left: 50%;
|
|
86
|
+
transform: translate(-50%, -50%);
|
|
87
|
+
`,So=()=>e($o,{children:[t(wo,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[t("path",{opacity:"0.1",d:"M231.567 463.134C359.458 463.134 463.134 359.458 463.134 231.567C463.134 103.676 359.458 0 231.567 0C103.676 0 0 103.676 0 231.567C0 359.458 103.676 463.134 231.567 463.134Z",fill:"url(#paint0_radial_164_65835)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),t("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),t(wo,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[t("path",{opacity:"0.3",d:"M215.921 431.841C335.17 431.841 431.841 335.17 431.841 215.921C431.841 96.6709 335.17 0 215.921 0C96.6709 0 0 96.6709 0 215.921C0 335.17 96.6709 431.841 215.921 431.841Z",fill:"url(#paint0_radial_164_65836)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),t("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),t("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(wo,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[t("path",{opacity:"0.5",d:"M186.963 373.927C290.22 373.927 373.927 290.22 373.927 186.963C373.927 83.7063 290.22 0 186.963 0C83.7063 0 0 83.7063 0 186.963C0 290.22 83.7063 373.927 186.963 373.927Z",fill:"url(#paint0_radial_164_65837)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(wo,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[t("path",{opacity:"0.7",d:"M128.193 256.387C198.992 256.387 256.387 198.992 256.387 128.193C256.387 57.3941 198.992 0 128.193 0C57.3941 0 0 57.3941 0 128.193C0 198.992 57.3941 256.387 128.193 256.387Z",fill:"url(#paint0_radial_164_65838)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(wo,{children:t(ee,{size:112})})]}),xo=n.div`
|
|
88
|
+
width: ${({$size:e})=>e}px;
|
|
89
|
+
height: ${({$size:e})=>e}px;
|
|
90
|
+
border-radius: 100%;
|
|
91
|
+
background: ${({$color:e})=>e};
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
`,Co=({scale:e=1,icon:r})=>{const n=o();return t(xo,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(xo,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(xo,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(xo,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(xo,{$size:39*e,$color:n.v2.colors.purple[500],children:t(r,{size:32*e,fill:n.v2.colors.white[500]})})})})})})},Eo=n.div`
|
|
96
|
+
flex: 1;
|
|
97
|
+
align-self: stretch;
|
|
98
|
+
min-height: 0;
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
gap: ${({$gap:e=24})=>e}px;
|
|
102
|
+
overflow-y: auto;
|
|
103
|
+
overflow-x: auto;
|
|
104
|
+
padding: 12px;
|
|
105
|
+
`,To=n.div`
|
|
106
|
+
position: relative;
|
|
107
|
+
|
|
108
|
+
// inherit all the properties of the parent (PageContent)
|
|
109
|
+
flex: inherit;
|
|
110
|
+
align-self: inherit;
|
|
111
|
+
min-height: inherit;
|
|
112
|
+
display: inherit;
|
|
113
|
+
flex-direction: inherit;
|
|
114
|
+
gap: inherit;
|
|
115
|
+
`,Oo=n.div`
|
|
116
|
+
padding: ${({$padding:e})=>e||"12px"};
|
|
117
|
+
`,No=n.div`
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-direction: row;
|
|
120
|
+
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
121
|
+
align-items: ${({$alignItems:e="center"})=>e};
|
|
122
|
+
justify-content: ${({$justifyContent:e="unset"})=>e};
|
|
123
|
+
gap: ${({$gap:e=2})=>e}px;
|
|
124
|
+
width: ${({$width:e})=>e||"unset"};
|
|
125
|
+
height: ${({$height:e})=>e||"unset"};
|
|
126
|
+
margin: ${({$margin:e="unset"})=>e};
|
|
127
|
+
padding: ${({$padding:e="unset"})=>e};
|
|
128
|
+
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
129
|
+
`,Ao=n.div`
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
133
|
+
align-items: ${({$alignItems:e="unset"})=>e};
|
|
134
|
+
justify-content: ${({$justifyContent:e="unset"})=>e};
|
|
135
|
+
gap: ${({$gap:e=2})=>e}px;
|
|
136
|
+
width: ${({$width:e})=>e||"unset"};
|
|
137
|
+
height: ${({$height:e})=>e||"unset"};
|
|
138
|
+
margin: ${({$margin:e="unset"})=>e};
|
|
139
|
+
padding: ${({$padding:e="unset"})=>e};
|
|
140
|
+
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
141
|
+
`,Io=n(Ao)`
|
|
142
|
+
width: ${({$width:e})=>e||"100%"};
|
|
143
|
+
height: ${({$height:e})=>e||"unset"};
|
|
144
|
+
padding: ${({$padding:e})=>e||"unset"};
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
148
|
+
`,ko=n.div`
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-direction: column;
|
|
151
|
+
padding: 12px;
|
|
152
|
+
overflow-y: scroll;
|
|
153
|
+
`,Ro=n.div`
|
|
154
|
+
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
155
|
+
top: 0;
|
|
156
|
+
left: 0;
|
|
157
|
+
right: 0;
|
|
158
|
+
bottom: 0;
|
|
159
|
+
// Full-screen overlays sit at the modal/drawer layer. Page-scoped overlays
|
|
160
|
+
// (relativeToParent, e.g. upgrade-required) use the island layer so the sidebar
|
|
161
|
+
// can expand above them. In both cases the surface is rendered after the overlay
|
|
162
|
+
// in JSX and stacks above it via DOM order at the same z-index level.
|
|
163
|
+
z-index: ${({theme:e,$relativeToParent:t})=>t?e.v2.zIndex.island:e.v2.zIndex.modal};
|
|
164
|
+
background: rgba(0, 0, 0, 0.6);
|
|
165
|
+
backdrop-filter: blur(2px);
|
|
166
|
+
`,Do=n.div`
|
|
167
|
+
width: 800px;
|
|
168
|
+
min-height: ${({$minHeight:e})=>e||"unset"};
|
|
169
|
+
height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
|
|
170
|
+
margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
|
|
171
|
+
padding: 0 2px;
|
|
172
|
+
overflow-y: scroll;
|
|
173
|
+
`,_o=n(Ao)`
|
|
174
|
+
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
175
|
+
width: 100%;
|
|
176
|
+
`,Lo=n(No)`
|
|
177
|
+
gap: 16px;
|
|
178
|
+
padding: 16px;
|
|
179
|
+
`,Po=n.div`
|
|
180
|
+
width: 100%;
|
|
181
|
+
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
182
|
+
overflow-y: auto;
|
|
183
|
+
`,Uo=a`
|
|
184
|
+
0% {
|
|
185
|
+
background-position: 0% 50%;
|
|
186
|
+
}
|
|
187
|
+
100% {
|
|
188
|
+
background-position: 100% 50%;
|
|
189
|
+
}
|
|
190
|
+
`,Mo=n(jn)`
|
|
191
|
+
background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
192
|
+
background-size: 250% 100%; /* Expand background to allow movement */
|
|
193
|
+
background-clip: text;
|
|
194
|
+
color: transparent;
|
|
195
|
+
animation: ${Uo} 1s reverse linear infinite;
|
|
196
|
+
`,Fo=e=>{const t=Math.max(0,Date.now()-e),r=Math.floor(t/1e3),n=Math.floor(r/60),i=r%60;return`${String(n).padStart(2,"0")}:${String(i).padStart(2,"0")}`},zo=({icon:r,title:n,titleColor:i,titleSize:a=Mn.S,subTitle:s,subTitleColor:l,subTitleSize:d=Mn.XXXS,startedAt:c,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:b,visualIcon:y=et})=>{const v=o(),[$,w]=Ht(()=>c?Fo(c):"");jt(()=>{if(!c)return;w(Fo(c));const e=setInterval(()=>w(Fo(c)),1e3);return()=>clearInterval(e)},[c]);const S=i||v.v2.colors.white[500],x=l||v.v2.colors.silver[200],C=p||v.v2.colors.black[500];return e(Ao,{$gap:16,$alignItems:"center",children:[b?t(bo,{scale:1.7,icon:y}):h?t(co,{percentage:f}):g?t(mo,{scale:m}):null,(n||s||c||r||u)&&e(Ao,{$gap:8,$alignItems:"center",children:[e(No,{$gap:4,children:[r&&t(r,{}),u?t(Mo,{align:"center",size:a,$titleColor:S,$gradientColor:C,nowrap:!0,children:n||"Loading..."}):n?t(jn,{align:"center",size:a,color:S,children:n}):null]}),s?t(jn,{align:"center",size:d,color:x,children:s}):null,$?t(jn,{align:"center",size:d,color:S,children:$}):null]})]})},Bo=(e,t)=>({[Nr.Default]:r=>ee({fill:io(t,e,"300"),...r}),[Nr.Info]:r=>it({fill:io(t,e,"400"),...r}),[Nr.Error]:r=>nt({fill:io(t,e,"500"),...r}),[Nr.Warning]:r=>rt({fill:io(t,e,"500"),...r}),[Nr.Success]:r=>p({fill:io(t,e,"500"),...r}),[Nr.Loading]:e=>zo({withSpinnerOld:!0,...e}),[Nr.Disabled]:r=>h({fill:io(t,e,"400"),...r}),[Nr.Unknown]:r=>tt({fill:io(t,e,"300"),...r})}[e]),Ho=e=>{switch(e){case Mr.Success:return Nr.Success;case Mr.Error:case Mr.Failure:return Nr.Error;case Mr.Notice:return Nr.Warning;case Mr.Unsupported:case Mr.Unknown:return Nr.Info;case Mr.Irrelevant:case Mr.Disabled:return Nr.Disabled;case Mr.Waiting:return Nr.Loading;case Mr.Pending:default:return Nr.Default}},jo=(e,t)=>{const r=t.find(([t,r])=>e>=t&&(null===r||e<=r));return r?.[2]||null},Xo={redis:f,mysql:v,postgresql:b,postgres:b,kafka:m,elasticsearch:ye,clickhouse:Ee,oracle:J,aws:ot},Wo={sts:bt,dynamodb:ft,s3:X,sqs:mt,sns:gt,lambda:ht,kinesis:pt,ec2:ut,apigateway:ct,apigatewayv2:ct,bedrock:dt,bedrockruntime:dt,eventbridge:lt,sfn:st,stepfunctions:st,secretsmanager:at,cloudwatch:Ce},Go=e=>{const t=e.attributes,r=t["db.system"];if(r){const e=Xo[r.toLowerCase()];if(e)return e}const n=t["messaging.system"];if(n){const e=Xo[n.toLowerCase()];if(e)return e}const i=t["rpc.system"];if(i?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Wo[e];if(t)return t}return ot}const o=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Xo))if(o.includes(e))return t;return ze},Vo=e=>{if(!e)return{namespace:"",name:"",kind:""};if("id"in e&&"object"==typeof e.id)return{namespace:e.id.namespace,name:e.id.name,kind:e.id.kind,region:e.id.region||void 0};const{namespace:t,name:r,kind:n,region:i}=e;return{namespace:t,name:r,kind:n,region:i||void 0}},Ko=(e,t)=>{const r=[],n=JSON.parse(JSON.stringify(e));for(const e of n){const n=ii(t.fields,{}),i=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==i&&r.push(...e.items[i].fields.map(e=>({...e,initialValue:n[e.name]})))}return r},Yo=(e,t)=>{const r=e=>e?.some(({healthy:e})=>e.status!==Nr.Success);return e?.length?e.some(({instrumentationInstances:e})=>r(e)):r(t)??!1};function Jo(e){if(!e||0===e.length)return null;const t=[],r=[],n=[];for(const i of e){if(!i)continue;const e=i.workloadName??"",o=i.workloadKind??"",a=i.workloadNamespace??"",s=i.workloadLanguage??"";e||o?t.push({namespace:a,kind:o,name:e}):a&&r.push(a),s&&n.push(s)}return 0===t.length&&0===r.length&&0===n.length?null:{sources:t,namespaces:r,languages:n}}function qo(e){if(!e)return null;const t=[];for(const r of e.sources??[])t.push({workloadName:r.name||null,workloadKind:r.kind||null,workloadNamespace:r.namespace||null});for(const r of e.namespaces??[])t.push({workloadNamespace:r});for(const r of e.languages??[])t.push({workloadLanguage:r});return t.length?t:null}function Qo(e){const{sourcesScopes:t,...r}=e;return{...r,sourceScopes:Jo(t??null)}}function Zo(e){const{sourceScopes:t,...r}=e;return{...r,sourcesScopes:qo(t??null)}}const ea=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),ta=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),ra=(e,t=0)=>{const r=(new Date).getTime();return new Date(e).getTime()-r<=t},na=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ia=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,oa=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,aa=e=>oa.test(e),sa=e=>e?.map(({status:e,type:t,reason:r,message:n})=>({status:e?.toLowerCase(),type:Pn(t),reason:r?Pn(r):"",message:n}))||[],la=(e,t)=>{const r=ii(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:r[e.name]??null})).filter(e=>null!==e.value):Object.entries(r).map(([e,t])=>({key:e,name:e,value:t}))},da=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>en[e]):[],ca=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>en[e]):[],ua=e=>{let t=e.replace(/[^\d.]/g,"");const r=t.indexOf(".");return-1!==r&&(t=t.slice(0,r+1)+t.slice(r+1).replace(/\./g,"")),t},pa=e=>e.replace(/[^\d]/g,""),ha=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},ga=e=>{let t="";try{const r=JSON.parse(e);t=Array.isArray(r)?r.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof r&&null!==r?Object.entries(r).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(r){t=e}return t},ma={0:"UNSPECIFIED",1:"INTERNAL",2:"SERVER",3:"CLIENT",4:"PRODUCER",5:"CONSUMER"},fa={0:"",1:"OK",2:"ERROR"};class ba{buf;offset=0;constructor(e){this.buf=e}get remaining(){return this.buf.length-this.offset}readTag(){if(this.remaining<=0)return null;const e=this.readVarintNumber();return null===e?null:{field:e>>>3,wire:7&e}}skip(e){switch(e){case 0:return null!==this.readVarintBig();case 1:return this.skipBytes(8);case 2:{const e=this.readVarintNumber();return null!==e&&this.skipBytes(e)}case 5:return this.skipBytes(4);default:return!1}}readVarintNumber(){const e=this.readVarintBig();if(null===e)return null;const t=Number(e);return Number.isSafeInteger(t)?t:null}readVarintBig(){let e=0n,t=0n;for(;this.remaining>0&&t<64n;){const r=this.buf[this.offset++];if(e|=BigInt(127&r)<<t,!(128&r))return e;t+=7n}return null}readFixed64(){if(this.remaining<8)return null;const e=new DataView(this.buf.buffer,this.buf.byteOffset+this.offset,8);return this.offset+=8,e.getBigUint64(0,!0)}readFixed64AsDoubleBits(){if(this.remaining<8)return null;const e=new DataView(this.buf.buffer,this.buf.byteOffset+this.offset,8);return this.offset+=8,e.getFloat64(0,!0)}readBytes(){const e=this.readVarintNumber();if(null===e||e<0||this.remaining<e)return null;const t=this.buf.subarray(this.offset,this.offset+e);return this.offset+=e,t}readString(){const e=this.readBytes();if(null===e)return null;try{return(new TextDecoder).decode(e)}catch{return null}}readMessage(){const e=this.readBytes();return null===e?null:new ba(e)}skipBytes(e){return!(this.remaining<e||(this.offset+=e,0))}}const ya=e=>{if(!e||0===e.length)return;let t="";for(let r=0;r<e.length;r++)t+=e[r].toString(16).padStart(2,"0");return t},va=e=>{let t="";for(;e.remaining>0;){const r=e.readTag();if(!r)break;switch(r.field){case 1:if(2!==r.wire){e.skip(r.wire);break}t=e.readString()??"";break;case 2:if(0!==r.wire){e.skip(r.wire);break}t=e.readVarintNumber()?"true":"false";break;case 3:{if(0!==r.wire){e.skip(r.wire);break}const n=e.readVarintBig();t=null===n?"":n.toString();break}case 4:{if(1!==r.wire){e.skip(r.wire);break}const n=e.readFixed64AsDoubleBits();t=null===n||Number.isNaN(n)?"":String(n);break}case 5:{if(2!==r.wire){e.skip(r.wire);break}const n=e.readMessage();if(!n)break;const i=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();e&&i.push(va(e))}else n.skip(e.wire)}t=`[${i.join(", ")}]`;break}case 6:{if(2!==r.wire){e.skip(r.wire);break}const n=e.readMessage();if(!n)break;const i=[];for(;n.remaining>0;){const e=n.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=n.readMessage();if(!e)continue;const t=$a(e);t.key&&i.push(`${t.key}=${t.value??""}`)}else n.skip(e.wire)}t=`{${i.join(", ")}}`;break}case 7:{if(2!==r.wire){e.skip(r.wire);break}const n=e.readBytes();if(!n)break;const i=ya(n.length>16?n.subarray(0,16):n)??"";t=n.length>16?`${i}…`:i;break}default:e.skip(r.wire)}}return t},$a=e=>{const t={};for(;e.remaining>0;){const r=e.readTag();if(!r)break;if(1===r.field&&2===r.wire)t.key=e.readString()??void 0;else if(2===r.field&&2===r.wire){const r=e.readMessage();t.value=r?va(r):void 0}else e.skip(r.wire)}return t},wa=(e,t)=>{const r=e.readMessage();if(!r)return;const n=$a(r);void 0===n.key&&void 0===n.value||t.push(n)},Sa=e=>{const t={};for(;e.remaining>0;){const r=e.readTag();if(!r)break;2===r.field&&2===r.wire?t.message=e.readString()??void 0:3===r.field&&0===r.wire?t.code=e.readVarintNumber()??void 0:e.skip(r.wire)}return t},xa=e=>{const t={attrs:[]};for(;e.remaining>0;){const r=e.readTag();if(!r)break;switch(r.field){case 1:1===r.wire?t.timeUnixNano=e.readFixed64()??void 0:e.skip(r.wire);break;case 2:2===r.wire?t.name=e.readString()??void 0:e.skip(r.wire);break;case 3:2===r.wire?wa(e,t.attrs):e.skip(r.wire);break;default:e.skip(r.wire)}}return t},Ca=(e,t,r)=>{const n={attrs:[],events:[],service:t,scope:r};for(;e.remaining>0;){const t=e.readTag();if(!t)break;switch(t.field){case 1:2===t.wire?n.traceId=ya(e.readBytes()):e.skip(t.wire);break;case 2:2===t.wire?n.spanId=ya(e.readBytes()):e.skip(t.wire);break;case 4:2===t.wire?n.parentSpanId=ya(e.readBytes()):e.skip(t.wire);break;case 5:2===t.wire?n.name=e.readString()??void 0:e.skip(t.wire);break;case 6:0===t.wire?n.kind=e.readVarintNumber()??void 0:e.skip(t.wire);break;case 7:1===t.wire?n.startUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 8:1===t.wire?n.endUnixNano=e.readFixed64()??void 0:e.skip(t.wire);break;case 9:2===t.wire?wa(e,n.attrs):e.skip(t.wire);break;case 11:if(2===t.wire){const t=e.readMessage();t&&n.events.push(xa(t))}else e.skip(t.wire);break;case 15:if(2===t.wire){const t=e.readMessage();if(t){const e=Sa(t);n.statusCode=e.code,n.statusMsg=e.message}}else e.skip(t.wire);break;default:e.skip(t.wire)}}return n},Ea=e=>{let t;for(;e.remaining>0;){const r=e.readTag();if(!r)break;if(1===r.field&&2===r.wire){const r=e.readMessage();if(!r)continue;const n=$a(r);"service.name"===n.key&&n.value&&(t=n.value)}else e.skip(r.wire)}return t},Ta=e=>{let t,r;for(;e.remaining>0;){const n=e.readTag();if(!n)break;1===n.field&&2===n.wire?t=e.readString()??void 0:2===n.field&&2===n.wire?r=e.readString()??void 0:e.skip(n.wire)}if(t)return r?`${t}@${r}`:t},Oa=(e,t)=>{let r;const n=[];for(;e.remaining>0;){const i=e.readTag();if(!i)break;if(1===i.field&&2===i.wire){const t=e.readMessage();t&&(r=Ta(t))}else if(2===i.field&&2===i.wire){const i=e.readMessage();i&&n.push(Ca(i,t,r))}else e.skip(i.wire)}for(const e of n)!e.scope&&r&&(e.scope=r);return n},Na=e=>{let t;const r=[];for(;e.remaining>0;){const n=e.readTag();if(!n)break;if(1===n.field&&2===n.wire){const r=e.readMessage();r&&(t=Ea(r))}else if(2===n.field&&2===n.wire){const n=e.readMessage();n&&r.push(...Oa(n,t))}else e.skip(n.wire)}for(const e of r)!e.service&&t&&(e.service=t);return r},Aa=e=>({key:e.key??null,value:e.value??null}),Ia=e=>{if(!e.length)return[];const t=new Map;for(const r of e)r.spanId&&t.set(r.spanId,r);const r=new Map,n=[];for(const i of e){const e=i.parentSpanId;if(e&&t.has(e)){const t=r.get(e)??[];t.push(i),r.set(e,t)}else n.push(i)}n.sort((e,t)=>{const r=e.startUnixNano??0n,n=t.startUnixNano??0n;return r<n?-1:r>n?1:0});const i=(n[0]??e[0]).startUnixNano??0n,o=[],a=(e,t)=>{const n=e.startUnixNano??0n,s=e.endUnixNano??n,l=n>i?n-i:0n,d=s>n?s-n:1n,c=void 0!==e.statusCode?fa[e.statusCode]??null:null,u=(e.attrs??[]).map(Aa);u.sort((e,t)=>(e.key??"").localeCompare(t.key??""));const p=(e.events??[]).map(e=>{const t=e.timeUnixNano??0n,r=t>i?t-i:0n;return{name:e.name??null,offsetMs:Number(r)/1e6,attrs:(e.attrs??[]).map(Aa)}});o.push({spanId:e.spanId??null,parentSpanId:e.parentSpanId??null,name:e.name??null,service:e.service??null,kind:void 0!==e.kind?ma[e.kind]??null:null,depth:t,startUnixNano:void 0!==e.startUnixNano?e.startUnixNano.toString():null,endUnixNano:void 0!==e.endUnixNano?e.endUnixNano.toString():null,offsetMs:Number(l)/1e6,durationMs:Number(d)/1e6,scope:e.scope??null,statusCode:c||null,statusMsg:e.statusMsg??null,attrs:u.length?u:null,events:p.length?p:null});for(const n of r.get(e.spanId??"")??[])a(n,t+1)};for(const t of n.length?n:e)a(t,0);const s=new Set;return o.filter(e=>{const t=e.spanId??"";return!t||!s.has(t)&&(s.add(t),!0)})},ka=e=>{if(null==e||""===e)return{spans:null,error:null};try{const t=(e=>{try{const t=e.replace(/\s+/g,"");if(!t)return null;const r="function"==typeof atob?atob(t):Buffer.from(t,"base64").toString("binary"),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n}catch{return null}})(e);if(!t||0===t.length)return{spans:null,error:"Invalid base64 rawOtlp"};const r=(e=>{const t=new ba(e),r=[];for(;t.remaining>0;){const e=t.readTag();if(!e)break;if(1===e.field&&2===e.wire){const e=t.readMessage();e&&r.push(...Na(e))}else t.skip(e.wire)}return r})(t);return r.length?{spans:Ia(r),error:null}:{spans:null,error:"No spans found in OTLP payload"}}catch(e){return{spans:null,error:e instanceof Error?e.message:"Failed to parse rawOtlp"}}},Ra=e=>{const t=e.fields.reduce((e,{key:t,value:r})=>{const n=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(r);return void 0!==n&&e.push({key:t,value:n}),e},[]);return{...e,fields:t}},Da=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(r=>{const n=e[r];if(Array.isArray(n)){const e=n.filter(e=>null!=e&&""!==e);e.length>0&&(t[r]=e.map(e=>Da(e)))}else if("object"==typeof n&&null!==n){const e=Da(n);Object.keys(e).length>0&&(t[r]=e)}else[void 0,null,""].includes(n)||(t[r]=n)}),t},_a=(e,t=2)=>JSON.stringify(e||{},null,t),La=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Pa=e=>Object.entries(e).reduce((e,[t,r])=>(e[t]="string"==typeof r?r:JSON.stringify(r),e),{}),Ua=or("v1.33"),Ma=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Fa=(e,t)=>{if(e!==vr.K8s)return!1;const r=or(t);return r>0&&r<Ua},za=or("v1.20"),Ba=(e,t)=>{if(e!==vr.K8s)return!0;const r=or(t);return!(r>0)||r>=za},Ha=e=>e?Ma.map(t=>e[t]??null):[],ja={PID:"process.pid",VPID:"process.vpid"},Xa={[Sr.Go]:"Go",[Sr.Java]:"Java",[Sr.JavaScript]:"Node.js",[Sr.Python]:"Python",[Sr.DotNet]:".NET",[Sr.CSharp]:"C#",[Sr.CPlusPlus]:"C++",[Sr.Php]:"PHP",[Sr.Ruby]:"Ruby",[Sr.Rust]:"Rust",[Sr.Swift]:"Swift",[Sr.Elixir]:"Elixir",[Sr.MySql]:"MySQL",[Sr.Nginx]:"Nginx",[Sr.Postgres]:"PostgreSQL",[Sr.Redis]:"Redis",[Sr.Kafka]:"Kafka",[Sr.Ignored]:"Ignored",[Sr.Unknown]:"Unknown",[Sr.Processing]:"Processing",[Sr.NoContainers]:"No Containers",[Sr.NoRunningPods]:"No Running Pods"},Wa=[{id:Sr.Go,label:Xa[Sr.Go],icon:Di(Sr.Go)},{id:Sr.Java,label:Xa[Sr.Java],icon:Di(Sr.Java)},{id:Sr.JavaScript,label:Xa[Sr.JavaScript],icon:Di(Sr.JavaScript)},{id:Sr.Python,label:Xa[Sr.Python],icon:Di(Sr.Python)},{id:Sr.Php,label:Xa[Sr.Php],icon:Di(Sr.Php)},{id:Sr.Ruby,label:Xa[Sr.Ruby],icon:Di(Sr.Ruby)},{id:Sr.Rust,label:Xa[Sr.Rust],icon:Di(Sr.Rust)},{id:Sr.DotNet,label:Xa[Sr.DotNet],icon:Di(Sr.DotNet)},{id:Sr.CSharp,label:Xa[Sr.CSharp],icon:Di(Sr.CSharp)},{id:Sr.CPlusPlus,label:Xa[Sr.CPlusPlus],icon:Di(Sr.CPlusPlus)},{id:Sr.Swift,label:Xa[Sr.Swift],icon:Di(Sr.Swift)},{id:Sr.Elixir,label:Xa[Sr.Elixir],icon:Di(Sr.Elixir)}],Ga={id:Ur.OpentelemetryEbpfInstrumentation,label:Ur.OpentelemetryEbpfInstrumentation,icon:yt},Va={[Sr.Go]:{community:[{id:Ur.GolangCommunity,label:Ur.GolangCommunity,icon:Di(Sr.Go)},Ga],enterprise:[{id:Ur.GolangEnterprise,label:Ur.GolangEnterprise,icon:Di(Sr.Go)}]},[Sr.JavaScript]:{community:[{id:Ur.NodejsCommunity,label:Ur.NodejsCommunity,icon:Di(Sr.JavaScript)},Ga],enterprise:[{id:Ur.NodejsEnterprise,label:Ur.NodejsEnterprise,icon:Di(Sr.JavaScript)}]},[Sr.Python]:{community:[{id:Ur.PythonCommunity,label:Ur.PythonCommunity,icon:Di(Sr.Python)},Ga],enterprise:[{id:Ur.PythonEnterprise,label:Ur.PythonEnterprise,icon:Di(Sr.Python)}]},[Sr.Java]:{community:[{id:Ur.JavaCommunity,label:Ur.JavaCommunity,icon:Di(Sr.Java)},Ga],enterprise:[{id:Ur.JavaEnterprise,label:Ur.JavaEnterprise,icon:Di(Sr.Java)},{id:Ur.JavaEbpfInstrumentations,label:Ur.JavaEbpfInstrumentations,icon:Di(Sr.Java)}]},[Sr.DotNet]:{community:[{id:Ur.DotNetCommunity,label:Ur.DotNetCommunity,icon:Di(Sr.DotNet)},Ga],enterprise:[{id:Ur.DotNetEnterprise,label:Ur.DotNetEnterprise,icon:Di(Sr.DotNet)}]},[Sr.Ruby]:{community:[{id:Ur.RubyCommunity,label:Ur.RubyCommunity,icon:Di(Sr.Ruby)},Ga],enterprise:[{id:Ur.RubyEnterprise,label:Ur.RubyEnterprise,icon:Di(Sr.Ruby)}]},[Sr.Php]:{community:[{id:Ur.PhpCommunity,label:Ur.PhpCommunity,icon:Di(Sr.Php)},Ga],enterprise:[]},[Sr.CSharp]:{community:[],enterprise:[{id:Ur.CPlusPlusEnterprise,label:Ur.CPlusPlusEnterprise,icon:Di(Sr.CSharp)}]},[Sr.MySql]:{community:[],enterprise:[{id:Ur.MySqlEnterprise,label:Ur.MySqlEnterprise,icon:Di(Sr.MySql)}]},[Sr.CPlusPlus]:{community:[Ga],enterprise:[]},[Sr.Rust]:{community:[Ga],enterprise:[]},[Sr.Swift]:{community:[Ga],enterprise:[]},[Sr.Elixir]:{community:[Ga],enterprise:[]},[Sr.Nginx]:{community:[Ga],enterprise:[]},[Sr.Postgres]:{community:[Ga],enterprise:[]},[Sr.Redis]:{community:[Ga],enterprise:[]},[Sr.Kafka]:{community:[Ga],enterprise:[]},[Sr.Ignored]:{community:[],enterprise:[]},[Sr.Unknown]:{community:[Ga],enterprise:[]},[Sr.Processing]:{community:[],enterprise:[]},[Sr.NoContainers]:{community:[],enterprise:[]},[Sr.NoRunningPods]:{community:[],enterprise:[]}},Ka="*",Ya=e=>!!e?.includes(Ka),Ja=e=>e?.length?Ya(e)?[Ka]:e:[],qa=e=>{if(e?.length&&!Ya(e))return e.filter(e=>e!==Ka)},Qa=e=>e===Ka?"All languages":Xa[e]??e,Za=e=>e===Ka?vt:Di(e),es=or("v1.26"),ts=(e,t)=>{if(e!==vr.K8s)return!1;const r=or(t);return!(r>0)||r>=es},rs=[Fr.NetworkMetrics],ns=e=>!rs.includes(e),is=[{type:Fr.CodeAttributes,icon:Gi(Fr.CodeAttributes),label:"Code Attributes",description:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/codeattributes",supportedLanguages:[Sr.Go,Sr.Python,Sr.JavaScript]},{type:Fr.CustomInstrumentation,icon:Gi(Fr.CustomInstrumentation),label:"Custom Instrumentation",description:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), a class and method combination (i.e. for Java), or a class and function combination (i.e. for PHP) for detailed tracing.',docsUrl:"https://docs.odigos.io/pipeline/rules/custominstrumentation",supportedLanguages:[Sr.Go,Sr.Java,Sr.Php]},{type:Fr.HeadersCollection,icon:Gi(Fr.HeadersCollection),label:"Headers Collection",description:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/headerscollection",supportedLanguages:[Sr.Go,Sr.Java,Sr.JavaScript]},{type:Fr.PayloadCollection,icon:Gi(Fr.PayloadCollection),label:"Payload Collection",description:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/payloadcollection",supportedLanguages:[Sr.Go,Sr.JavaScript]}],os=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Gi(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},as="Recommendations",ss="Optimize your observability setup with actionable recommendations.",ls="Recommended",ds="Applied",cs="Dismissed",us="Not applicable",ps={[wn.Recommended]:ls,[wn.Applied]:ds,[wn.Dismissed]:cs,[wn.NotApplicable]:us},hs="Accept",gs="Dismiss",ms="Restore",fs="Docs",bs="Benefits",ys="Considerations",vs="Apply Recommendation",$s="Apply via UI",ws="Apply via GitOps",Ss="Via UI",xs="Via GitOps",Cs="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",Es="There are 2 ways to apply this recommendation.",Ts="Odigos applies the selected change immediately.",Os="Commit the configuration to your repository and let your GitOps controller apply it.",Ns="UI changes apply only to this cluster and will not carry over if you re-install odigos.",As="No recommendations",Is="There are no recommendations for this cluster right now.",ks="This recommendation does not currently apply to your cluster.",Rs="Recommendation dismissed",Ds="Recommendation restored",_s="Recommendation applied successfully",Ls="Failed to apply recommendation",Ps={TITLE:"Regex Testing",REGEX_LABEL:"Regex",REGEX_EMPTY_HINT:"No regex to test - fill in the regex field on the row first.",TEST_STRING_LABEL:"Test string",TEST_STRING_PLACEHOLDER:"Paste a span attribute payload to test the regex against...",TEST_STRING_HELP:'The regex runs verbatim against this string. Paste the actual attribute value the processor will see - if your sample came from a log dump with JSON-escaped quotes (\\"), click Unescape first.',RESULT_LABEL:"Result",RESULT_CAPTURE_HINT:"This is the value that will be written to the new span attribute.",RESULT_EMPTY_REGEX:"Enter a regex to test.",RESULT_EMPTY_INPUT:"Enter a test string to see the result.",RESULT_NO_MATCH:"No match found.",RESULT_INVALID_REGEX_FALLBACK:"Invalid regex pattern.",UNESCAPE_LABEL:"Unescape",UNESCAPE_TOOLTIP:'Convert escape sequences (\\", \\n, \\t, \\\\) into their literal characters. Useful when pasting log output that JSON-escapes attribute values.'},Us={SEGMENT_PRESET_LABEL:"Preset extract",SEGMENT_PRESET_TOOLTIP:"Extract a value from an existing attribute using a pre-set pattern (JSON, SQL, or Resource path).",SEGMENT_REGEX_LABEL:"Custom Regex",SEGMENT_REGEX_TOOLTIP:"Extract a value using your own regular expression with a single capture group.",PRESET_ROW_TITLE:e=>`Data format ${e+1}`,REGEX_ROW_TITLE:e=>`Custom Regex ${e+1}`,TEST_REGEX_LABEL:"Test Regex",REGEX_LABEL:"Regex",REGEX_PLACEHOLDER:"e.g. (?:^|[\\s,{(\"'])[\"']?study_id[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,;)}]+)",REGEX_HELP:"A regex with a single capture group; the captured value becomes the new attribute.",TARGET_LABEL:"New span attribute name",TARGET_PLACEHOLDER:"e.g. customerId",TARGET_HELP:"The name of the new extracted attribute."},Ms={[gr.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[gr.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[gr.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Fs="Cancel",zs="Save",Bs="Edit rule",Hs="Edit auto rule",js="Create rule",Xs="Delete rule",Ws="Save",Gs="Create your first rule",Vs="No Rules Exist",Ks="No Results",Ys=e=>`No rules match the search term "${e}"`,Js="Rule name",qs="Rule type",Qs="Select the type of condition that makes a trace highly relevant.",Zs="Rule Enabled",el="Rule Disabled",tl="Enabled",rl="Disabled",nl="Note",il="HTTP route",ol="Method",al="Keep Percentage",sl="Keep traces with duration larger than",ll="Keep traces with errors",dl="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",cl="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",ul="Custom percentage",pl="Disabled rule",hl="Sample",gl="Keep all",ml="Drop all",fl="Operation type",bl="HTTP route prefix",yl="Templated path",vl="Templated path prefix",$l="Kafka topic",wl="Custom duration (ms)",Sl="No preview available",xl="Server address",Cl="Drop at most this percentage of matching traces",El="Unnamed rule",Tl="Sampling Preview",Ol="Source Scope",Nl="Unknown source",Al="Operation",Il="Duration",kl="Errors",Rl="Keep Percentage",Dl="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",_l="Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.",Ll="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Pl="Retain traces with errors from the selected services and operations.",Ul="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",Ml="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Fl={highlyRelevant:Ul,noisy:Ml,costReduction:void 0},zl="Type rule name",Bl="Add note here...",Hl="Type here",jl="Search source name",Xl="e.g. collector.my.vendor.com",Wl="Optional notes (not used by the system). Add any context or details for this sampling rule.",Gl="Rule will apply to all sources in the cluster",Vl="If multiple source scopes are set, they must all match simultaneously.",Kl="All sources",Yl="-",Jl="All",ql="Sources",Ql="Namespaces",Zl="Languages",ed="any of",td="AND",rd="All operations",nd="HTTP server endpoint",id="HTTP client endpoint",od="Kafka consumer",ad="Kafka producer",sd="Sampling Rules",ld='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',dd="Refresh",cd="Create rule",ud="Sampling docs",pd="75vw",hd="Delete rule?",gd="Are you sure you want to delete this sampling rule?",md="Delete",fd="Cancel",bd="Kubernetes Health Probes",yd="Keep All Error Traces",vd="Drop Traces Cluster-Wide",$d="A rule with the same matching conditions already exists.",wd="Create this rule as-is?",Sd="This rule still uses the default configuration.\nDo you want to create it anyway?",xd="Rule preview",Cd="Continue editing",Ed="Create 'Noisy Operation Kubernetes Health Probes' rule",Td="Edit 'Noisy Operation Kubernetes Health Probes' rule",Od="Automatically detect and sample health probe traces across the cluster.",Nd="Create 'Highly Relevant Operations' rule",Ad="Edit 'Highly Relevant Operations' rule",Id="Automatically keep all error traces across the entire cluster.",kd="Create 'Cost Reduction' rule",Rd="Edit 'Cost Reduction' rule",Dd="Automatically drop a percentage of traces across the entire cluster.",_d="Skip setup",Ld="Start setup",Pd="Next",Ud="Go to Sampling",Md="Read more",Fd="Welcome to Sampling",zd="Cut costs without losing what matters",Bd="Odigos sampling works in three stages:",Hd="Filter noisy traffic",jd="Remove non-actionable traces like health checks.",Xd="Guarantee highly relevance operations",Wd="Keep traces with errors, high latency, or mission-critical endpoints/services.",Gd="Reduce cost",Vd="Sample routine traffic using percentages.",Kd="Sampling does not drop individual spans - it keeps or drops the entire trace.",Yd="Filter noisy operations",Jd="Cut traces with little or no observability value (health-checks, metric scarping, etc)",qd="Odigos filters these efficiently, dropping them early with almost no resource cost.\n\nSampling happens at request start, so only root span attributes available at that moment can be used. Later insights about the trace (errors, latency) - aren’t available.",Qd="Preset Rules",Zd="Kubernetes Health Probes",ec="Automatically ignore health checks",tc="You can review, adjust, and add additional custom rules later.",rc="Choose your sampling strategy",nc="Pick the approach that best fits your balance of cost vs data-completeness",ic="Keep List",oc="Budget Friendly",ac="Define which traces must be kept, while all others are sampled by default to minimize cost.",sc="Cost-oriented - keeps only what you explicitly select.",lc="Best for very large clusters with high volumes of traces and high costs.",dc="Higher risk of missing important traces without ongoing review.",cc="Drop List",uc="Safe Choice",pc="Define which traces must be aggressively dropped, while all others are kept by default.",hc="Preserves most data unless explicitly filtered.",gc="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",mc="Advanced",fc="Maximum Flexibility",bc="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",yc="'Keep List' profile",vc="Protect important traces",$c="Start by setting the default sampling rate for all traces.\nThen define rules to exclude highly relevant traces so they are guaranteed to be kept\n\nCommon use-cases include:",wc="Traces with errors",Sc="Slow requests (duration above threshold)",xc="Mission-Critical endpoints or services",Cc="Services under test or evaluation",Ec="New deployments",Tc="You can review, adjust, and add rules once onboarding is complete.",Oc="Common Rules",Nc="Preset Rules",Ac="Error collection - entire cluster",Ic="Keep all traces with errors",kc="Ambient sampling percentage",Rc="'Drop List' profile",Dc="Reduce high-volume traffic",_c="Start by keeping all traces by default. Then define rules to drop high-volume or low-value traces to reduce overall volume and cost.\n\nIn many systems, a small number of endpoints generate most of the trace volume.\nTargeting these high-volume sources can significantly reduce overall data.",Lc="Advanced Configuration",Pc="Configure sampling rules",Uc="Advanced mode allows you to configure all sampling categories:",Mc="Noise Filtering - remove non-actionable traces",Fc="Highly Relevance - guarantee important traces are kept",zc='Cost Control - drop traces for "Normal" operations',Bc="Rules can target:",Hc="Services",jc="HTTP Endpoints",Xc="DB Operations",Wc="Errors",Gc="Latency and more...",Vc="Sampling configured successfully!",Kc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Yc="Odigos will now:",Jc="Filter noisy operations",qc="Guarantee important traces",Qc="Reduce cost using controlled sampling",Zc="Recommended",eu={noisy:"Rules that reduce noise from high-volume, low-value operations using Head Sampling.",highlyRelevant:"Add a rule to identify highly relevant operations. Traces with errors, long duration, or from critical endpoints and key workflows will be retained so important transactions are always available for analysis.",costReduction:"Rules that optimize costs by sampling less critical data using Tail Sampling."},tu={noisy:Ed,highlyRelevant:Nd,costReduction:kd},ru={noisy:Td,highlyRelevant:Ad,costReduction:Rd},nu={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},iu=[{id:Kr.Logs,value:"Logs"},{id:Kr.Metrics,value:"Metrics"},{id:Kr.Traces,value:"Traces"},{id:Kr.Profiles,value:"Profiles"}],ou=6048e5,au="URL templatization",su="Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.",lu="Default templatization",du="Custom and default URL templatization scopes across URL templatization actions.",cu="Default templatization is not enabled",uu="Automatically detect and normalize dynamic URL segments when no custom template matches.",pu="Enable for entire cluster",hu="Custom URL templates",gu="Define exact URL patterns and control where each template group applies.",mu="View by:",fu="Groups",bu="Tree",yu="List",vu="Create template group",$u="Edit group",wu="Add template",Su="No custom URL templates",xu="Define exact route patterns for your application. Custom templates are matched before default templatization.",Cu="Create custom template",Eu="Docs",Tu="https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",Ou="Default templatization is enabled — editor coming next.",Nu="746px",Au="Add default templatization rule",Iu="Edit default templatization rule",ku="UI template rules",Ru="Source Scope",Du="Choose where this rule applies.",_u="This rule will apply to all sources in the cluster.",Lu="Default templatization",Pu="Automatically normalize dynamic URL segments when no custom template matches.",Uu="Enable automatic URL normalization for this scope",Mu="Skip policy",Fu="Advanced",zu="Prevent selected error responses from being normalized by the default heuristic. Custom templates still match first.",Bu="Skip for non-2xx responses",Hu="Skip selected HTTP status codes",ju="Example: 404, 401",Xu="Use comma-separated HTTP status codes between 100 and 599.",Wu="This rule will take effect in the cluster immediately after it is added.",Gu="This rule will take effect in the cluster immediately after it is saved.",Vu="Add rule",Ku="Save",Yu="Cancel",Ju="Enter valid HTTP status codes between 100 and 599, separated by commas.",qu="Create custom template",Qu="UI template rules",Zu="Choose where to add the template",ep="Template group",tp="Entire Cluster",rp="Add the template to an existing group or create a new group with its own scope.",np="This template will apply to all sources in the cluster.",ip="Add to existing template group",op="Add to New template group",ap="Template group will be added to the default action",sp="Advanced Configuration",lp="Search template group by type action name or scope (languages, namespaces, sources)",dp="Selected Template group:",cp="URL templatization action",up="New action name",pp="New action group",hp="Defaults to 'UI template rules'. Actions can help keep templating rules organized, but they are optional - advanced users can create a separate action when useful.",gp="Create new template group",mp="Next",fp="Back",bp="Action name",yp="URL Templatization",vp="UI",$p="Templates",wp="e.g. /api/users/{id}",Sp="Language:",xp="Namespace:",Cp="Deployment/",Ep="AND",Tp="Entire cluster",Op="URL template",Np="Template",Ap="Origin",Ip="Display name",kp="Resource name",Rp="Try a URL",Dp="/users/12/orders/345685335358",_p="Test URL",Lp="Close",Pp="Result",Up="Match found",Mp="This URL matches the template.",Fp="No match",zp="This URL doesn't match the template.",Bp="Check the URL structure and parameter positions, then try again.",Hp=Ft()(tr(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Kn.DARK_MODE,storage:"undefined"!=typeof window?rr(()=>localStorage):void 0})),jp={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Wn},Xp=Ft(e=>({...jp,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const r=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(r).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(jp)}));var Wp;(e=>{e.AddSource="add-source",e.EditSource="edit-source",e.AddDestination="add-destination",e.EditDestination="edit-destination",e.AddAction="add-action",e.EditAction="edit-action",e.AddInstrumentationRule="add-instrumentation-rule",e.EditInstrumentationRule="edit-instrumentation-rule",e.OnboardingDone="onboarding-done"})(Wp||(Wp={}));const Gp=e=>`add-${Pn(e).replaceAll(" ","-").toLowerCase()}`,Vp=e=>`edit-${Pn(e).replaceAll(" ","-").toLowerCase()}`,Kp=Ft(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Yp=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Jp=Ft(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}),regions:[],setRegions:t=>e({regions:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),enabledStatuses:[],setEnabledStatuses:t=>e({enabledStatuses:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),clearFilters:()=>e({statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),getEmptyState:Yp})),qp=Ft((e,t)=>({notifications:[],addNotification:r=>{const n=new Date,i=`${n.getTime().toString()}${r.target?`#${r.target}`:""}`,{notifications:o}=t();o.some(e=>e.type===r.type&&e.title===r.title&&e.message===r.message&&!e.dismissed)||e(e=>({notifications:[{...r,id:i,time:n.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&e.notifications.splice(r,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Qp;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Qp||(Qp={}));const Zp=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),eh=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),th=Ft((e,t)=>({progress:{},setProgress:(r,n)=>{const i=t(),o=Zp();return"number"==typeof n.total&&(o.total=n.total),"number"==typeof n.current&&(o.current=n.current),Array.isArray(n.list)&&(o.list=n.list),e({progress:{...i.progress,[r]:eh(o)}})},addProgress:(r,n,i)=>{const o=t(),a=Zp(r,o.progress);return a.current+=n,i&&(a.list=a.list?.map(e=>e.label===i.label?{...e,status:i.status}:e)),e({progress:{...o.progress,[r]:eh(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),rh=Ft(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),nh={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},ih=(e,t)=>e.destinationType.type!==t.destinationType.type,oh=Ft(e=>({...nh,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=>ih(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const r=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(r).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>ih(e,t))})),clearStore:()=>e(()=>({...nh}))})),ah=e=>{function t(){return void 0===e?{}:fi(e)}const[r,n]=Ht(t()),[i,o]=Ht({}),[a,s]=Ht(t()),l=Xt((e,t)=>{const r={};if(!t||"object"!=typeof t)return e?{...e}:r;for(const[n,i]of Object.entries(e)){const e=n;if(Array.isArray(i)){const n=t[e];Array.isArray(n)&&i.length===n.length&&i.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,n[t])).length:e===n[t])||(r[e]=t[e])}else if("object"==typeof i&&null!==i)if(null==t[e]||"object"!=typeof t[e])r[e]=t[e];else{const n=l(i,t[e]);Object.keys(n).length>0&&(r[e]=n)}else i!==t[e]&&(r[e]=t[e])}for(const n of Object.keys(t))n in e||(r[n]=t[n]);return r},[]),d=(e,t)=>0===Object.keys(l(e,t)).length,c=Wt(()=>!d(a,r),[a,r]);jt(()=>{const i=t();void 0!==e&&"{}"===JSON.stringify(r)&&"{}"!==JSON.stringify(i)&&(n(i),s(i))},[e,r]);const u=Xt((e,t)=>bi("formData"===e?r:i,t.toString()),[r,i]);return{formData:r,formErrors:i,getFormDiff:l,areFormValuesEqual:d,isFormDirty:c,handleFormChange:(e,t,r)=>{if(e){const r=e.toString(),i=r.split(".");1===i.length?n(r=>({...r,[e]:t})):n(e=>{const r=fi(e);let n=r;for(let e=0;e<i.length-1;e++){const t=i[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[i[i.length-1]]=t,r}),o(e=>{const t=r,n=i[i.length-1],o=void 0!==e[t],a=n!==t&&void 0!==e[n];if(!o&&!a)return e;const s={...e};return o&&delete s[t],a&&delete s[n],s})}else r&&n({...r})},handleErrorChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?o(r=>({...r,[e]:t})):o(e=>{const n=fi(e);let i=n;for(let e=0;e<r.length-1;e++){const t=r[e];i[t]&&"object"==typeof i[t]||(i[t]={}),i=i[t]}return i[r[r.length-1]]=t,n})}else r&&o({...r})},resetFormData:e=>{const r=e||t();n(r),s(r),o({})},getNestedValue:u}},sh={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},lh=()=>{const{addNotification:e}=qp(),{formData:t,formErrors:r,handleFormChange:n,handleErrorChange:i,resetFormData:o}=ah(sh);return{formData:t,formErrors:r,handleFormChange:n,resetFormData:o,validateForm:r=>{const n={};let o=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":ea(t)&&(n[e]=Yn.FIELD_IS_REQUIRED)}}),t.type===ar.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){n.fields=Yn.FIELD_IS_REQUIRED;break}}return o=!Object.values(n).length,!o&&r?.withAlert&&e({type:Nr.Warning,title:r.alertTitle,message:Yn.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,n),o},loadFormWithDrawerItem:({type:e,signals:t,name:r,notes:i,disabled:o,fields:a})=>{const s={...fi(sh),type:e,signals:t,name:r,notes:i,disabled:o};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case lr.LabelsAttributes:case lr.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(r=t)&&Array.isArray(r)?r.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):r;break;case lr.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(n=t,n?.length?n.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):n);break;case lr.CollectContainerAttributes:case lr.CollectReplicaSetAttributes:case lr.CollectWorkloadId:case lr.CollectClusterId:case lr.ClusterAttributes:case lr.OverwriteExistingValues:case lr.AttributeNamesToDelete:case lr.Renames:case lr.PiiCategories:case lr.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var r,n}),n(void 0,void 0,s)}}},dh=e=>{jt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},ch=()=>{const e=Gt(null),[t,r]=Ht(0),[n,i]=Ht(0);return jt(()=>{const t=()=>{if(e.current){const{width:t,height:n}=e.current.getBoundingClientRect();r(t),i(n)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:n}},uh="data-ignore-outside-click",ph=e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(uh))return!0;t=t.parentNode}return!1},hh=(e,t)=>{const r=Gt(t);r.current=t,jt(()=>{const t=t=>{const n=t.target;e.current&&!e.current.contains(n)&&(ph(n)||r.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},gh=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:r,positionMode:n="local"}={})=>{const i=Gt(null),[o,a]=Ht(!1),[s,l]=Ht({top:0,left:0}),[d,c]=Ht({edge:"top",align:"left"});return hh(i,()=>{o&&(a(!1),r?.())}),{popupRef:i,popupOpen:o,setPopupOpen:a,popupPosition:s,arrowPlacement:d,handlePosition:(r,o)=>{if("local"===n)return void l({top:o,left:r});const{innerWidth:a,innerHeight:s}=window,d=i.current?.clientWidth||t,u=i.current?.clientHeight||e,p=r/a,h=p<1/3?"left":p>2/3?"right":"center";c({edge:o<s/2?"top":"bottom",align:h});let g=o,m=r;if(g>=s/2&&(g+=-u),"center"===h){m=r-d/2;const e=8;m=Math.max(e,Math.min(m,a-d-e))}else m>=a/2&&(m=r-d);l({top:g,left:m})}}},mh=n.div`
|
|
197
|
+
width: ${({$fullWidth:e,$inline:t})=>e?"100%":t?void 0:"fit-content"};
|
|
198
|
+
position: relative;
|
|
199
|
+
display: ${({$inline:e})=>e?"inline":"flex"};
|
|
200
|
+
align-items: center;
|
|
201
|
+
gap: 4px;
|
|
202
|
+
|
|
203
|
+
${({$ellipsis:e})=>e&&i`
|
|
204
|
+
overflow: hidden;
|
|
205
|
+
text-overflow: ellipsis;
|
|
206
|
+
white-space: nowrap;
|
|
207
|
+
`}
|
|
208
|
+
`,fh=n.div`
|
|
209
|
+
position: fixed;
|
|
210
|
+
top: ${({$top:e})=>e}px;
|
|
211
|
+
left: ${({$left:e})=>e}px;
|
|
212
|
+
z-index: ${({theme:e})=>e.v2.zIndex.tooltip};
|
|
213
|
+
|
|
214
|
+
display: flex;
|
|
215
|
+
flex-direction: column;
|
|
216
|
+
align-items: stretch;
|
|
217
|
+
min-width: 0;
|
|
218
|
+
|
|
219
|
+
${({$withPointerEvents:e})=>!e&&"pointer-events: none;"}
|
|
220
|
+
`,bh=n.div`
|
|
221
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
222
|
+
border-radius: 4px;
|
|
223
|
+
padding: 8px;
|
|
224
|
+
max-width: ${({$maxWidth:e})=>void 0!==e?e:"270px"};
|
|
225
|
+
box-sizing: border-box;
|
|
226
|
+
min-width: 0;
|
|
227
|
+
`,yh=n.div`
|
|
228
|
+
display: flex;
|
|
229
|
+
flex-direction: column;
|
|
230
|
+
align-items: flex-start;
|
|
231
|
+
gap: 8px;
|
|
232
|
+
width: 100%;
|
|
233
|
+
min-width: 0;
|
|
234
|
+
`,vh=n.div`
|
|
235
|
+
display: flex;
|
|
236
|
+
width: 100%;
|
|
237
|
+
flex-shrink: 0;
|
|
238
|
+
box-sizing: border-box;
|
|
239
|
+
line-height: 0;
|
|
240
|
+
|
|
241
|
+
${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
|
|
242
|
+
${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
|
|
243
|
+
${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
|
|
244
|
+
`,$h=n.div`
|
|
245
|
+
width: 0;
|
|
246
|
+
height: 0;
|
|
247
|
+
border-style: solid;
|
|
248
|
+
border-left: 6.5px solid transparent;
|
|
249
|
+
border-right: 6.5px solid transparent;
|
|
250
|
+
flex-shrink: 0;
|
|
251
|
+
|
|
252
|
+
${({$pointsUp:e,theme:t})=>e?`\n border-bottom: 8px solid ${t.v2.colors.black[500]};\n border-top-width: 0;\n `:`\n border-top: 8px solid ${t.v2.colors.black[500]};\n border-bottom-width: 0;\n `}
|
|
253
|
+
`,wh=({withIcon:n,titleIcon:i,title:a,text:s,timestamp:l,children:d,fullWidth:c=!1,inline:u=!1,maxWidth:p="270px",keepAlive:h=!1,ellipsis:g=!1})=>{const m=o(),f=Wt(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),b=f.join(" "),{popupRef:y,popupOpen:v,setPopupOpen:$,popupPosition:w,arrowPlacement:S,handlePosition:x}=gh({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*b.length,300)}),C=Wt(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,r,n]=e.split('"');return{original:e,href:r,label:n.replace("</a>","").replace(">","")}})})(e)?.length),[f]),E=e=>{const{type:t,clientX:r,clientY:n}=e;C?x(w.left||r,w.top||n):x(r,n),$("mouseleave"!==t)};if(!f.length&&!h)return t(r,{children:d});const T=v&&f.length>0;return e(mh,{$fullWidth:c,$ellipsis:g,$inline:u,onMouseEnter:E,onMouseMove:E,onMouseLeave:E,children:[d,n&&t(tt,{fill:m.v2.colors.white[500]}),T&&qt.createPortal(e(fh,{ref:y,$top:w.top,$left:w.left,$withPointerEvents:C,onMouseEnter:C?E:void 0,children:["top"===S.edge&&t(vh,{$align:S.align,children:t($h,{$pointsUp:!0})}),t(bh,{$maxWidth:p,children:e(yh,{children:[(!!i||!!a)&&e(No,{$gap:4,style:{alignItems:"center"},children:[i&&t(i,{size:16},"icon"),a&&t(jn,{size:Mn.XS,children:a},"title")]}),f.map((e,r)=>t(jn,{size:Mn.XXXS,children:e},r)),!!l&&t(jn,{size:Mn.XXXS,color:Fn.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===S.edge&&t(vh,{$align:S.align,children:t($h,{$pointsUp:!1})})]}),document.body)]})};var Sh,xh;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(Sh||(Sh={})),(e=>{e.S="small",e.M="medium",e.L="large"})(xh||(xh={}));const Ch=n.button`
|
|
254
|
+
display: flex;
|
|
255
|
+
align-items: center;
|
|
256
|
+
justify-content: ${({$align:e})=>e};
|
|
257
|
+
gap: 8px;
|
|
258
|
+
${({$fullWidth:e})=>e&&i`
|
|
259
|
+
width: 100%;
|
|
260
|
+
`}
|
|
261
|
+
border: none;
|
|
262
|
+
border-radius: 6px;
|
|
263
|
+
${({$size:e,$hasLabel:t})=>e===xh.S?i`
|
|
264
|
+
height: 32px;
|
|
265
|
+
${t?i`
|
|
266
|
+
padding: 8px 16px;
|
|
267
|
+
`:i`
|
|
268
|
+
width: 32px;
|
|
269
|
+
`}
|
|
270
|
+
`:e===xh.M?i`
|
|
271
|
+
height: 38px;
|
|
272
|
+
${t?i`
|
|
273
|
+
padding: 8px 18px;
|
|
274
|
+
`:i`
|
|
275
|
+
width: 38px;
|
|
276
|
+
`}
|
|
277
|
+
`:i`
|
|
278
|
+
height: 44px;
|
|
279
|
+
${t?i`
|
|
280
|
+
padding: 8px 22px;
|
|
281
|
+
`:i`
|
|
282
|
+
width: 44px;
|
|
283
|
+
`}
|
|
284
|
+
`}
|
|
285
|
+
|
|
286
|
+
cursor: pointer;
|
|
287
|
+
&:disabled {
|
|
288
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
289
|
+
cursor: not-allowed;
|
|
290
|
+
}
|
|
291
|
+
&:enabled {
|
|
292
|
+
${({$withShadow:e})=>e?i`
|
|
293
|
+
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
294
|
+
`:""}
|
|
295
|
+
${({$variant:e,$isSelected:t})=>e===Sh.Primary?i`
|
|
296
|
+
background-color: ${({theme:e})=>t?e.v2.colors.purple[600]:e.v2.colors.purple[500]};
|
|
297
|
+
&:hover {
|
|
298
|
+
background-color: ${({theme:e})=>e.v2.colors.purple[600]};
|
|
299
|
+
}
|
|
300
|
+
&:active {
|
|
301
|
+
background-color: ${({theme:e})=>e.v2.colors.purple[700]};
|
|
302
|
+
}
|
|
303
|
+
`:e===Sh.Secondary?i`
|
|
304
|
+
background-color: ${({theme:e})=>t?e.v2.colors.silver[600]:e.v2.colors.silver[750]};
|
|
305
|
+
&:hover {
|
|
306
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
307
|
+
}
|
|
308
|
+
&:active {
|
|
309
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
310
|
+
}
|
|
311
|
+
`:e===Sh.Text?i`
|
|
312
|
+
background-color: ${({theme:e})=>t?e.v2.colors.grey[700]:"transparent"};
|
|
313
|
+
&:hover {
|
|
314
|
+
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
315
|
+
}
|
|
316
|
+
&:active {
|
|
317
|
+
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
318
|
+
}
|
|
319
|
+
`:""}
|
|
320
|
+
}
|
|
321
|
+
`,Eh=zt(({"data-id":n,label:i,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=Sh.Primary,size:u=xh.M,isSelected:p,iconSize:h,loading:g,fullWidth:m,withShadow:f,textColor:b,textAlign:y="center",disabled:v,onClick:$,...w},S)=>{const x=o(),C=h||(u===xh.L?18:16),E=u===xh.L?Mn.S:Mn.XS,T=b||(v?x.v2.colors.grey[400]:x.v2.colors.white[500]),[O,N]=Ht(!1),A=!(!g&&!O),I=!(!v&&!A),k=Xt(async e=>{e.stopPropagation(),N(!0);try{await($?.(e))}finally{N(!1)}},[$]);return t(Ch,{ref:S,"data-id":n,$variant:c,$size:u,$fullWidth:m,$withShadow:f,$hasLabel:!!i,$isSelected:p,$align:y,...w,disabled:I,onClick:I?void 0:k,children:t(wh,{text:a,withIcon:!s,children:A?t(zo,i?{withGradient:!0,titleColor:T,titleSize:E}:{withSpinnerOld:!0}):e(r,{children:[l&&t(Io,{$width:"fit-content",children:t(l,{size:C,fill:T})}),i?t(jn,{size:E,weight:500,color:T,nowrap:!0,align:y,children:i}):null,d&&t(Io,{$width:"fit-content",children:t(d,{size:C,fill:T})})]})})})});Eh.displayName=Eh.name;const Th=({onDone:e}={})=>{const[r,n]=Ht(!1),[i,o]=Ht(-1),a=Xt(async(t,i)=>{if(!r){if(n(!0),void 0!==i&&o(i),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(t)}catch(e){}else{const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{n(!1),o(-1)},1e3)}},[r,e]);return{CopyButton:Xt(({value:e,...n})=>t(Eh,{leftIcon:r?$t:wt,onClick:()=>a(e),variant:Sh.Secondary,size:xh.S,...n}),[r]),isCopied:r,copiedIndex:i,clickCopy:a}},Oh=e=>{const{addNotification:t}=qp(),{formData:r,handleFormChange:n,formErrors:i,handleErrorChange:o,resetFormData:a}=ah(e);return{formData:r,formErrors:i,handleFormChange:n,resetFormData:a,validateForm:e=>{const n={};let i=!0;return r.name?ta(r.name)?n.name=void 0:(i=!1,n.name=Yn.ILLEGAL_K8S_LABEL):(i=!1,n.name=Yn.FIELD_IS_REQUIRED),!i&&e?.withAlert&&t({type:Nr.Warning,title:e.alertTitle,message:Yn.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,n),i},loadFormWithDrawerItem:({name:t})=>{const r={...fi(e),name:t};n(void 0,void 0,r)}}},Nh={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},Ah=e=>{const{supportedSignals:t,preLoadedFields:r}=e||{},{addNotification:n}=qp(),{formData:i,formErrors:o,handleFormChange:a,handleErrorChange:s,resetFormData:l}=ah(Nh),[d,c]=Ht([]),[u,p]=Ht([]);return jt(()=>{var e;p(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:n,displayName:i,initialValue:o,renderCondition:a}=e;if(r===Tr.Dropdown){const e=ii(n,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,label:e})):Object.entries(e.values).map(([e,t])=>({id:e,label:t}));return{name:t,componentType:r,title:i,value:o,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:r,title:i,value:o,renderCondition:a,...ii(n,{})}})).map(e=>{if(r){const t="string"==typeof r?ii(r,{}):r;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,r]),jt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),jt(()=>{if(t&&0===da(i.exportedSignals).length){const{logs:e,metrics:r,traces:n}=t;a("exportedSignals",{logs:e.supported,metrics:r.supported,traces:n.supported})}},[t,i.exportedSignals]),{formData:i,formErrors:o,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let r=!0;return u.forEach(({name:e,value:n,required:i})=>{i&&!n&&(r=!1,t[e]=Yn.FIELD_IS_REQUIRED)}),!r&&e?.withAlert&&n({type:Nr.Warning,title:e.alertTitle,message:Yn.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),r},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:r,exportedSignals:n,fields:i})=>{const o={...fi(Nh),type:e,name:t,disabled:r,exportedSignals:n,fields:Object.entries(ii(i,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,o),o},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},Ih={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[jr.HttpRequest]:null,[jr.HttpResponse]:null,[jr.DbQuery]:null,[jr.Messaging]:null},codeAttributes:{[zr.Column]:null,[zr.FilePath]:null,[zr.Function]:null,[zr.LineNumber]:null,[zr.Namespace]:null,[zr.StackTrace]:null},headersCollection:null,customInstrumentations:{[Hr.Java]:null,[Hr.Golang]:null,[Hr.Php]:null},networkMetrics:null},kh=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:n,resetFormData:i}=ah(Ih);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:n,sourceScopes:i,payloadCollection:o,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:d})=>{const c={...fi(Ih),ruleName:e,notes:t,disabled:n,sourceScopes:i??null,networkMetrics:d??null};o&&(c.payloadCollection={[jr.HttpRequest]:o[jr.HttpRequest]?{}:null,[jr.HttpResponse]:o[jr.HttpResponse]?{}:null,[jr.DbQuery]:o[jr.DbQuery]?{}:null,[jr.Messaging]:o[jr.Messaging]?{}:null}),a&&(c.codeAttributes={[zr.Column]:a[zr.Column]||null,[zr.FilePath]:a[zr.FilePath]||null,[zr.Function]:a[zr.Function]||null,[zr.LineNumber]:a[zr.LineNumber]||null,[zr.Namespace]:a[zr.Namespace]||null,[zr.StackTrace]:a[zr.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Hr.Java]:l[Hr.Java]||null,[Hr.Golang]:l[Hr.Golang]||null,[Hr.Php]:l[Hr.Php]||null}),r(void 0,void 0,c)}}},Rh=({active:e,key:t,withAltKey:r,withCtrlKey:n,withShiftKey:i,withMetaKey:o},a)=>(jt(()=>{const s=s=>{e&&t===s.key&&(!r||r&&s.altKey)&&(!n||n&&s.ctrlKey)&&(!i||i&&s.shiftKey)&&(!o||o&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,r,n,i,o,a]),null),Dh=(e,{axis:t="horizontal",deps:r=[]}={})=>{const[n,i]=Ht(!1),o=e=>{const r="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;i(r)};return Vt(()=>{const t=e.current;if(!t)return;o(t);const r=new ResizeObserver(()=>o(t));return r.observe(t),()=>r.disconnect()},[t,...r]),jt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const r=e.current;!t&&r&&o(r)}),()=>{t=!0}},[t,...r]),n},_h=(e,{behavior:t="smooth",block:r="center",inline:n,delayMs:i=50}={})=>{const o=Gt(null);return jt(()=>{if(!e)return;const a=window.setTimeout(()=>{o.current?.scrollIntoView({behavior:t,block:r,inline:n})},i);return()=>window.clearTimeout(a)},[e,t,r,n,i]),o},Lh=({sectionNames:e,threshold:t=.4})=>{const[r,n]=Ht(e[0]||""),[i,o]=Ht(null),a=Gt({}),s=Gt(!1),l=Gt(!1),d=Xt((e,t)=>{a.current[e]=t},[]),c=Xt(e=>{o(e)},[]),u=Xt(e=>{l.current=!0,n(e)},[]);return jt(()=>{if(!l.current)return;l.current=!1;const e=a.current[r];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[r]),jt(()=>{const r=a.current,o=e.map(e=>r[e]).filter(Boolean);if(!o.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&n(e);break}},{threshold:t,root:i});return o.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,i]),{selectedSection:r,setSelectedSection:u,setSectionRef:d,setScrollContainerRef:c}};var Ph,Uh;(e=>{e.Left="left",e.Right="right"})(Ph||(Ph={})),(e=>{e.Top="top",e.Bottom="bottom"})(Uh||(Uh={}));const Mh=({defaultOpen:e=!1,open:t,onOpenChange:r,alignX:n,alignY:i,withOffset:o=!0,fullWidth:a}={})=>{const s=void 0!==t,[l,d]=Ht(e),c=s?t:l,u=Xt(e=>{s||d(e),r?.(e)},[s,r]),[p,h]=Ht({x:n||Ph.Left,y:i||Uh.Bottom}),g=Gt(null),m=Gt(!1);jt(()=>{if(!c)return;const e=e=>{if(m.current)return void(m.current=!1);const t=e.target;g.current?.contains(t)||ph(t)||u(!1)},t=window.setTimeout(()=>{document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)},0);return()=>{window.clearTimeout(t),document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[c,u]);const[f,b]=Ht({}),y=Xt((e,t)=>{const r=g.current?.getBoundingClientRect();if(!r)return;const n=o?8:0;b({top:t===Uh.Bottom?o?r.bottom+n:r.top:void 0,bottom:t===Uh.Top?o?window.innerHeight-r.top+n:window.innerHeight-r.bottom:void 0,left:e===Ph.Left?r.left:void 0,right:e===Ph.Right?window.innerWidth-r.right:void 0,width:a?r.width:void 0})},[o,a]),v=Xt(e=>{e.preventDefault(),e.stopPropagation();const t=!c;if(t&&(m.current=!0),u(t),!t)return;const r={x:n||(e.clientX>window.innerWidth/2?Ph.Right:Ph.Left),y:i||(e.clientY>window.innerHeight/2?Uh.Top:Uh.Bottom)};h(r),y(r.x,r.y)},[c,u,n,i,y]),$=Xt(e=>{e.stopPropagation()},[]);return Vt(()=>{c&&y(p.x,p.y)},[c,p.x,p.y,y]),{isOpen:c,setIsOpen:u,align:p,coords:f,triggerRef:g,toggleOpen:v,onTriggerWrapperMouseDown:$}},Fh=()=>({getItemSS:(e,t)=>{const r=sessionStorage.getItem(e);return r?ii(r,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),zh={otelServiceName:"",currentStreamName:""},Bh=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:n,resetFormData:i}=ah(zh);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:i,validateForm:()=>(n(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const n={...fi(zh),otelServiceName:e||t.name||""};r(void 0,void 0,n)}}};try{Yt.addDefaultLocale(Jt)}catch(e){}const Hh=new Yt(Jt.locale),jh=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:6048e5,long:["week","weeks"],short:"w"},{ms:864e5,long:["day","days"],short:"d"},{ms:36e5,long:["hour","hours"],short:"h"},{ms:6e4,long:["minute","minutes"],short:"m"},{ms:1e3,long:["second","seconds"],short:"s"}],Xh=(e,{units:t=2,style:r="long",suffix:n=!0}={})=>{let i=Math.max(0,e);if(i<1e3)return"short"===r?"0s":n?"just now":"0 seconds";const o=[];for(const e of jh){if(o.length===t)break;const n=Math.floor(i/e.ms);if(!(n<=0&&0===o.length)){if(n<=0)break;i-=n*e.ms,o.push("short"===r?`${n}${e.short}`:`${n} ${1===n?e.long[0]:e.long[1]}`)}}const a="short"===r?o.join(""):o.join(" ");return n&&"long"===r?`${a} ago`:a},Wh=(e,t)=>Xh(6e4*Math.max(0,e),t),Gh=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Vh=()=>{const[e,t]=Ht(0);return jt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Xt(e=>{try{return Hh.format(Gh(e))}catch(e){return"-"}},[e]),formatDurationAgo:Xt((e,t)=>{try{const r=Gh(e);return Xh(Date.now()-r.getTime(),t)}catch(e){return"-"}},[e])}};var Kh;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Kh||(Kh={}));const Yh=(e,t,r)=>{switch(t){case Kh.Purple:return e.v2.colors.purple[r?"300":"900"];case Kh.Yellow:return e.v2.colors.yellow[r?"300":"1000"];case Kh.Blue:return e.v2.colors.blue[r?"300":"1000"];case Kh.Pink:return e.v2.colors.red[r?"300":"1000"];case Kh.Green:return e.v2.colors.green[r?"300":"900"];case Kh.Loader:return e.v2.colors.grey[r?"600":"800"];default:return e.v2.colors.grey[r?"300":"500"]}},Jh=n.div`
|
|
322
|
+
display: flex;
|
|
323
|
+
align-items: center;
|
|
324
|
+
justify-content: center;
|
|
325
|
+
gap: 8px;
|
|
326
|
+
padding: 4px 8px;
|
|
327
|
+
border-radius: 6px;
|
|
328
|
+
border: 1px solid transparent;
|
|
329
|
+
|
|
330
|
+
${({$flex:e})=>e?i`
|
|
331
|
+
flex: ${e};
|
|
332
|
+
`:i`
|
|
333
|
+
width: fit-content;
|
|
334
|
+
`}
|
|
335
|
+
|
|
336
|
+
${({$disabled:e,$variant:t,$withClick:r})=>e?i`
|
|
337
|
+
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
338
|
+
`:i`
|
|
339
|
+
background-color: ${({theme:e})=>Yh(e,t)};
|
|
340
|
+
${r&&i`
|
|
341
|
+
cursor: pointer;
|
|
342
|
+
&:hover,
|
|
343
|
+
&:active {
|
|
344
|
+
border: 1px solid ${({theme:e})=>Yh(e,t,!0)};
|
|
345
|
+
}
|
|
346
|
+
`}
|
|
347
|
+
`}
|
|
348
|
+
`,qh=({variant:r=Kh.Default,label:n,leftIcon:i,rightIcon:a,onClick:s,disabled:l,flex:d})=>{const c=o(),u=l?c.v2.colors.grey[400]:r===Kh.Default?c.v2.colors.white[500]:Yh(c,r,!0),p=r===Kh.Loader;return e(Jh,{$variant:r,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:d,children:[i&&t(i,{fill:u,size:16}),p?t(zo,{withGradient:!0,title:n,titleSize:Mn.XXS}):t(jn,{color:u,size:Mn.XXS,nowrap:!0,children:n}),a&&t(a,{fill:u,size:16})]})},Qh=n.div`
|
|
349
|
+
display: flex;
|
|
350
|
+
align-items: center;
|
|
351
|
+
justify-content: center;
|
|
352
|
+
gap: 4px;
|
|
353
|
+
min-width: ${({$minWidth:e})=>e};
|
|
354
|
+
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
355
|
+
padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
|
|
356
|
+
border-radius: 100px;
|
|
357
|
+
background-color: ${({$backgroundColor:e})=>e};
|
|
358
|
+
`,Zh=({label:r,leftIcon:n,rightIcon:i,tooltip:a,status:s=Nr.Unknown,useSecondaryTone:l=!1,invertColors:d=!1,textSize:c,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=o(),f=r?.toString(),b=Nr.Loading===s,y=s?[Nr.Disabled,Nr.Loading].includes(s)?io(m,s,d?"400":"700"):[Nr.Unknown].includes(s)?io(m,s,"600"):io(m,s,d?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(d&&![Nr.Unknown].includes(s)?y:[Nr.Disabled,Nr.Loading].includes(s)?m.v2.colors.grey[400]:[Nr.Error,Nr.Warning,Nr.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),$=p||(d&&![Nr.Unknown].includes(s)?[Nr.Disabled,Nr.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:y);return t(wh,{text:a,fullWidth:g,children:e(Qh,{$backgroundColor:$,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!b||f&&n?n?t(n,{fill:v,size:c?m.v2.text.size[c]+2:14}):null:t(zo,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?b?t(zo,{withGradient:!0,title:f,titleSize:c||Mn.XXS}):t(jn,{color:v,size:c||Mn.XXS,nowrap:!0,children:f}):null,i&&t(i,{fill:v,size:c?m.v2.text.size[c]+2:14})]})})},eg=n.div`
|
|
359
|
+
position: relative;
|
|
360
|
+
`,tg=n.div`
|
|
361
|
+
position: fixed;
|
|
362
|
+
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
363
|
+
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
364
|
+
${({$coords:e})=>null!=e.left?`left: ${e.left}px;`:""}
|
|
365
|
+
${({$coords:e})=>null!=e.right?`right: ${e.right}px;`:""}
|
|
366
|
+
${({$coords:e})=>null!=e.width?`width: ${e.width-16}px;`:""}
|
|
367
|
+
z-index: ${({theme:e})=>e.v2.zIndex.dropdown};
|
|
368
|
+
|
|
369
|
+
display: flex;
|
|
370
|
+
flex-direction: column;
|
|
371
|
+
gap: 0;
|
|
372
|
+
|
|
373
|
+
min-width: 120px;
|
|
374
|
+
padding: 8px;
|
|
375
|
+
border-radius: 6px;
|
|
376
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
377
|
+
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
378
|
+
`,rg=({defaultOpen:r,open:n,onOpenChange:i,alignX:o,alignY:a,buttonProps:s,fullWidth:l,children:d})=>{const{isOpen:c,setIsOpen:u,coords:p,triggerRef:h,toggleOpen:g,onTriggerWrapperMouseDown:m}=Mh({defaultOpen:r,open:n,onOpenChange:i,alignX:o,alignY:a,withOffset:!0,fullWidth:l}),{onMouseDown:f,...b}=s??{};return e(eg,{ref:h,onMouseDown:m,children:[t(Eh,{label:"Open",variant:Sh.Secondary,size:xh.S,...b,fullWidth:l,onMouseDown:g,onClick:e=>e.preventDefault()}),c&&Qt(t(tg,{$coords:p,"data-ignore-outside-click":"true",children:"function"==typeof d?d({close:()=>u(!1)}):d}),document.body)]})},ng={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8855FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340",1e3:"#0C2F2C"},mint:{500:"#4CD1F2",1e3:"#062A31"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D15965",700:"#962531",800:"#7B242D",900:"#4C1318",1e3:"#20060A"},blue:{100:"#BED4FF",200:"#87B1F8",300:"#6094F1",400:"#457DE3",500:"#396CCD",600:"#3368CA",700:"#154297",800:"#163C81",900:"#0F2A5A",1e3:"#0A1B38"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",550:"#FFE770",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9",1e3:"#360818"},orange:{500:"#F29142"}},zIndex:{base:1,island:100,sidebar:500,drawer:1e3,modal:1e3,dropdown:1100,popover:1100,tooltip:1200}},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"}},ig={v2:ng.v2,darkMode:!0,colors:{...ng.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:ng.font_family},og={v2:ng.v2,darkMode:!1,colors:{...ng.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:ng.font_family},ag=e=>e?ig:og,sg=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:ng,darkModeTheme:ig,getTheme:ag,lightModeTheme:og},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var r=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}})('@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");*,:after,:before{box-sizing:border-box}*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const lg=({children:e})=>{const{darkMode:r}=Hp();return t(s,{theme:ag(r),children:e})},dg={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"},cg=Object.freeze(Object.defineProperty({__proto__:null,hex:dg},Symbol.toStringTag,{value:"Module"})),ug={in:{left:a`
|
|
379
|
+
from { transform: translateX(-100%); }
|
|
380
|
+
to { transform: translateX(0); }
|
|
381
|
+
`,right:a`
|
|
382
|
+
from { transform: translateX(100%); }
|
|
383
|
+
to { transform: translateX(0); }
|
|
384
|
+
`,top:a`
|
|
385
|
+
from { transform: translateY(-100%); }
|
|
386
|
+
to { transform: translateY(0); }
|
|
387
|
+
`,bottom:a`
|
|
388
|
+
from { transform: translateY(100%); }
|
|
389
|
+
to { transform: translateY(0); }
|
|
390
|
+
`,center:a`
|
|
391
|
+
from { transform: translate(-50%, 100%); }
|
|
392
|
+
to { transform: translate(-50%, -50%); }
|
|
393
|
+
`},out:{left:a`
|
|
394
|
+
from { transform: translateX(0); }
|
|
395
|
+
to { transform: translateX(-100%); }
|
|
396
|
+
`,right:a`
|
|
397
|
+
from { transform: translateX(0); }
|
|
398
|
+
to { transform: translateX(100%); }
|
|
399
|
+
`,top:a`
|
|
400
|
+
from { transform: translateY(0); }
|
|
401
|
+
to { transform: translateY(-100%); }
|
|
402
|
+
`,bottom:a`
|
|
403
|
+
from { transform: translateY(0); }
|
|
404
|
+
to { transform: translateY(100%); }
|
|
405
|
+
`,center:a`
|
|
406
|
+
from { transform: translate(-50%, -50%); }
|
|
407
|
+
to { transform: translate(-50%, 100%); }
|
|
408
|
+
`}},pg={in:a`
|
|
409
|
+
from {
|
|
410
|
+
width: 0%;
|
|
411
|
+
}
|
|
412
|
+
to {
|
|
413
|
+
width: 100%;
|
|
414
|
+
}
|
|
415
|
+
`,out:a`
|
|
416
|
+
from {
|
|
417
|
+
width: 100%;
|
|
418
|
+
}
|
|
419
|
+
to {
|
|
420
|
+
width: 0%;
|
|
421
|
+
}
|
|
422
|
+
`},hg=a`
|
|
423
|
+
0% {
|
|
424
|
+
transform: scale(1);
|
|
425
|
+
opacity: 1;
|
|
426
|
+
}
|
|
427
|
+
75%, 100% {
|
|
428
|
+
transform: scale(2);
|
|
429
|
+
opacity: 0;
|
|
430
|
+
}
|
|
431
|
+
`,gg=a`
|
|
432
|
+
0% {
|
|
433
|
+
background-position: -500px 0;
|
|
434
|
+
}
|
|
435
|
+
100% {
|
|
436
|
+
background-position: 500px 0;
|
|
437
|
+
}
|
|
438
|
+
`,mg={in:a`
|
|
439
|
+
from {
|
|
440
|
+
opacity: 0;
|
|
441
|
+
}
|
|
442
|
+
to {
|
|
443
|
+
opacity: 1;
|
|
444
|
+
}
|
|
445
|
+
`,out:a`
|
|
446
|
+
from {
|
|
447
|
+
opacity: 1;
|
|
448
|
+
}
|
|
449
|
+
to {
|
|
450
|
+
opacity: 0;
|
|
451
|
+
}
|
|
452
|
+
`},fg=Object.freeze(Object.defineProperty({__proto__:null,fade:mg,ping:hg,progress:pg,shimmer:gg,slide:ug},Symbol.toStringTag,{value:"Module"}));var bg,yg;(e=>{e.S="s",e.L="l"})(bg||(bg={})),(e=>{e.Filled="filled",e.Underline="underline"})(yg||(yg={}));const vg=n.div`
|
|
453
|
+
display: flex;
|
|
454
|
+
align-items: center;
|
|
455
|
+
gap: 2px;
|
|
456
|
+
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
457
|
+
border-radius: 6px;
|
|
458
|
+
border: none;
|
|
459
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
460
|
+
`,$g=n.button`
|
|
461
|
+
flex: 1;
|
|
462
|
+
display: flex;
|
|
463
|
+
align-items: center;
|
|
464
|
+
justify-content: center;
|
|
465
|
+
gap: ${({$size:e})=>e===bg.S?"4px":"8px"};
|
|
466
|
+
padding: ${({$size:e})=>e===bg.S?"4px 6px":"8px 12px"};
|
|
467
|
+
border-radius: ${({$isFirstOption:e,$isLastOption:t,$isFirstAndLastOption:r})=>r?"6px":e?"6px 0 0 6px":t?"0 6px 6px 0":"0"};
|
|
468
|
+
border: 1px solid transparent;
|
|
469
|
+
|
|
470
|
+
${({$disabled:e,$isSelected:t,$selectedBgColor:r,$selectedBorderColor:n,theme:o})=>e?i`
|
|
471
|
+
cursor: not-allowed;
|
|
472
|
+
background-color: ${t?(r||o.v2.colors.purple[900])+dg["050"]:"transparent"};
|
|
473
|
+
`:t?i`
|
|
474
|
+
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
475
|
+
border: 1px solid ${n||o.v2.colors.purple[400]};
|
|
476
|
+
background-color: ${r||o.v2.colors.purple[900]};
|
|
477
|
+
&:hover {
|
|
478
|
+
background-color: ${r||o.v2.colors.purple[900]};
|
|
479
|
+
}
|
|
480
|
+
`:i`
|
|
481
|
+
cursor: pointer;
|
|
482
|
+
background-color: transparent;
|
|
483
|
+
&:hover {
|
|
484
|
+
background-color: ${o.v2.colors.silver[600]};
|
|
485
|
+
}
|
|
486
|
+
`}
|
|
487
|
+
`,wg=n.div`
|
|
488
|
+
display: flex;
|
|
489
|
+
align-items: stretch;
|
|
490
|
+
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
491
|
+
`,Sg=n.button`
|
|
492
|
+
display: flex;
|
|
493
|
+
height: 34px;
|
|
494
|
+
padding: 8px 12px 8px 16px;
|
|
495
|
+
justify-content: center;
|
|
496
|
+
align-items: center;
|
|
497
|
+
gap: 8px;
|
|
498
|
+
border: none;
|
|
499
|
+
border-bottom: 2px solid ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:"transparent"};
|
|
500
|
+
border-radius: ${({$isSelected:e})=>e?"6px 6px 0 0":"0"};
|
|
501
|
+
background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.silver[1e3]:"transparent"};
|
|
502
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
503
|
+
transition:
|
|
504
|
+
border-color 0.2s,
|
|
505
|
+
background-color 0.2s,
|
|
506
|
+
border-radius 0.2s;
|
|
507
|
+
&:hover {
|
|
508
|
+
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
509
|
+
}
|
|
510
|
+
`,xg=({"data-id":n,size:i=bg.S,variant:a=yg.Filled,options:s=[],selected:l,setSelected:d,disabled:c,fullWidth:u=!1})=>{const p=o(),h=a===yg.Underline,g=h?Sg:$g;return t(h?wg:vg,{"data-id":n,$fullWidth:u,children:s.map(({value:n,label:o,icon:a,badge:u,tooltip:m,selectedBgColor:f,selectedBorderColor:b,selectedTextColor:y,disabled:v},$)=>{const w=0===$,S=$===s.length-1,x=l===n,C=v||c,E=C?p.v2.colors.grey[400]:h?p.v2.colors.white[500]:x?y||p.v2.colors.white[500]:p.v2.colors.grey[300],T=i===bg.S?Mn.XXS:Mn.XS,O=x?500:400,N=e(r,{children:[a&&t(a,{fill:E}),o&&t(jn,{size:T,weight:O,color:E,nowrap:!0,children:o}),u&&t(Zh,{...u})]});return t(g,{onClick:()=>!C&&d(n),$isFirstOption:w,$isLastOption:S,$isFirstAndLastOption:w&&S,$disabled:C,$isSelected:x,$size:i,...!h&&{$selectedBgColor:f,$selectedBorderColor:b},children:m?t(wh,{text:m,withIcon:!0,children:N}):N},`segment-${$}-${o}-${n}`)})})},Cg=n.div`
|
|
511
|
+
box-sizing: border-box !important;
|
|
512
|
+
width: ${({$width:e})=>e??"fit-content"};
|
|
513
|
+
flex-shrink: ${({$width:e})=>e?0:1};
|
|
514
|
+
min-width: ${({$width:e})=>e||0};
|
|
515
|
+
padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
|
|
516
|
+
display: flex;
|
|
517
|
+
align-self: stretch;
|
|
518
|
+
align-items: center;
|
|
519
|
+
gap: 8px;
|
|
520
|
+
overflow: hidden;
|
|
521
|
+
border-radius: 6px;
|
|
522
|
+
|
|
523
|
+
border: none;
|
|
524
|
+
border-radius: 6px;
|
|
525
|
+
background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:r,$emphasizeBackgroundColor:n,theme:i})=>{const o=r??i.v2.colors.silver[800],a=n??i.v2.colors.silver[700];return e||t?a:o}};
|
|
526
|
+
`,Eg=n.input`
|
|
527
|
+
min-width: 0;
|
|
528
|
+
flex: 1;
|
|
529
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
530
|
+
font-size: 14px;
|
|
531
|
+
font-weight: 400;
|
|
532
|
+
line-height: 20px;
|
|
533
|
+
|
|
534
|
+
cursor: text;
|
|
535
|
+
color: ${({$textColor:e})=>e};
|
|
536
|
+
&::placeholder {
|
|
537
|
+
color: ${({$textColor:e})=>e};
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
overflow: hidden;
|
|
541
|
+
text-overflow: ellipsis;
|
|
542
|
+
white-space: nowrap;
|
|
543
|
+
`,Tg=({"data-id":r,value:n,onChange:i,onFocus:a,onBlur:s,placeholder:l,width:d,segment:c,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=o(),[g,m]=Ht(!1),[f,b]=Ht(!1),[y,v]=Ht(!1),$=g?h.v2.colors.white[500]:h.v2.colors.silver[200],w=!!c?.options?.length,S=Wt(()=>{if(w)return c?.options.find(e=>e.value===c.selected)?.label},[w,c?.options,c?.selected]),x=Wt(()=>l||(w&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,w,S]);return e(Cg,{$width:d,$withSegment:w,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),$isHovered:f&&!y,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t(St,{size:18,fill:$}),t(Eg,{"data-id":r??"search",name:"search",type:"text",placeholder:x,value:n,onChange:e=>{e.stopPropagation(),i(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:$}),w&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(xg,{"data-id":c["data-id"],options:c.options,selected:c.selected,setSelected:c.setSelected})})]})},Og=n.div`
|
|
544
|
+
display: flex;
|
|
545
|
+
align-items: center;
|
|
546
|
+
justify-content: center;
|
|
547
|
+
width: fit-content;
|
|
548
|
+
height: fit-content;
|
|
549
|
+
padding: 8px;
|
|
550
|
+
border-radius: 100%;
|
|
551
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
552
|
+
`,Ng=({icon:r=xt,hideIcon:n=!1,title:i="No data",subTitle:a,button:s,action:l})=>{const d=o().v2.colors.silver[200];return e(Ao,{$gap:12,$alignItems:"center",children:[!n&&t(Og,{children:t(r,{size:32,fill:d})}),e(Ao,{$gap:4,$alignItems:"center",children:[t(jn,{size:Mn.S,align:"center",children:i}),a&&t(jn,{size:Mn.XXS,align:"center",color:d,children:a})]}),s&&t(Eh,{variant:Sh.Secondary,...s}),l]})},Ag=n.span`
|
|
553
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
554
|
+
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
555
|
+
font-weight: 400;
|
|
556
|
+
color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
|
|
557
|
+
`,Ig=n.span`
|
|
558
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
559
|
+
font-size: 14px;
|
|
560
|
+
font-weight: 400;
|
|
561
|
+
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
562
|
+
`,kg=({label:r,tooltip:n,required:i,badge:o,width:a,smallAndDark:s})=>r||n||i?e(No,{$width:a,$justifyContent:"space-between",children:[r&&t(Ag,{$smallAndDark:s,children:r}),e(No,{$gap:4,children:[o&&t(Zh,{...o,textSize:Mn.XXXS}),i&&t(Ig,{children:"*"}),n&&t(wh,{text:n,withIcon:!0})]})]}):null,Rg=({errorMessage:r,warnMessage:n,helpMessage:i})=>{const a=o(),s=r?a.v2.colors.red[500]:n?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=t(it,{size:12,fill:s});return r||n||i?e(No,{$alignItems:"center",children:[l&&t(Ao,{children:l}),t(jn,{size:Mn.XXXS,weight:400,color:s,children:r||n||i})]}):null};var Dg;(e=>{e.S="small",e.L="large"})(Dg||(Dg={}));const _g=n.div`
|
|
563
|
+
width: fit-content;
|
|
564
|
+
display: flex;
|
|
565
|
+
align-items: center;
|
|
566
|
+
gap: 8px;
|
|
567
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
568
|
+
`,Lg=n.div`
|
|
569
|
+
width: ${({$size:e})=>e===Dg.S?"16px":"20px"};
|
|
570
|
+
height: ${({$size:e})=>e===Dg.S?"16px":"20px"};
|
|
571
|
+
display: flex;
|
|
572
|
+
align-items: center;
|
|
573
|
+
justify-content: center;
|
|
574
|
+
border-radius: 4px;
|
|
575
|
+
border: 1px solid ${({$borderColor:e})=>e};
|
|
576
|
+
background-color: ${({$backgroundColor:e})=>e};
|
|
577
|
+
`,Pg=({name:r,label:n,tooltip:i,badge:a,size:s=Dg.L,disabled:l,partiallyChecked:d,value:c,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=o(),[f,b]=Ht(!1),y=d||c,v=s===Dg.S?12:16,$=l?m.v2.colors.grey[400]:m.v2.colors.white[500],w=y?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],S=l?m.v2.colors.grey[600]:y?m.v2.colors.purple[500]:m.v2.colors.silver[900];return e(Ao,{$gap:4,children:[e(No,{$justifyContent:"space-between",children:[e(_g,{"data-id":r||"checkbox"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),l||u(!!d||!c)},$disabled:l,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:[t(Lg,{$size:s,$borderColor:w,$backgroundColor:S,children:d?t(Ct,{size:v,fill:$}):c?t($t,{size:v,fill:$}):null}),n&&t(jn,{size:s===Dg.S?Mn.XXS:Mn.XS,nowrap:!0,children:n})]}),t(kg,{tooltip:i,badge:a})]}),t(Rg,{errorMessage:p,warnMessage:h,helpMessage:g})]})},Ug=n.div`
|
|
578
|
+
display: flex;
|
|
579
|
+
flex-direction: ${({$direction:e})=>e===fr.Horizontal?"row":"column"};
|
|
580
|
+
gap: ${({$direction:e})=>e===fr.Horizontal?16:8}px;
|
|
581
|
+
`,Mg=({direction:r=fr.Vertical,title:n,size:i,disabled:o,withSelectAll:a,options:s,values:l,setValues:d})=>{const c=i===Dg.S?Mn.XXS:Mn.XS,u=Wt(()=>s.every(e=>l[e.id]),[s,l]),p=Wt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{d(r=>{const n={...r};return e?n[e]=t:s.forEach(e=>n[e.id]=t),n})};return e(Ug,{$direction:r,children:[n&&a?t(Pg,{label:n,partiallyChecked:p,value:u,onChange:e=>h("",e),size:i}):n&&!a?t(jn,{size:c,children:n}):null,s.map(e=>t(Pg,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:o,size:i},`${n}-checkbox-${e.id}`))]})},Fg=n.div`
|
|
582
|
+
position: relative;
|
|
583
|
+
display: flex;
|
|
584
|
+
flex-direction: column;
|
|
585
|
+
gap: 4px;
|
|
586
|
+
`,zg=n.div`
|
|
587
|
+
position: fixed;
|
|
588
|
+
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
589
|
+
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
590
|
+
${({$coords:e})=>null!=e.left?`left: ${e.left}px;`:""}
|
|
591
|
+
${({$coords:e})=>null!=e.right?`right: ${e.right}px;`:""}
|
|
592
|
+
${({$coords:e})=>null!=e.width?`width: ${e.width-16}px;`:""}
|
|
593
|
+
z-index: ${({theme:e})=>e.v2.zIndex.dropdown};
|
|
594
|
+
|
|
595
|
+
display: flex;
|
|
596
|
+
flex-direction: column;
|
|
597
|
+
gap: 0;
|
|
598
|
+
|
|
599
|
+
min-width: 120px;
|
|
600
|
+
padding: 8px;
|
|
601
|
+
border-radius: 6px;
|
|
602
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
603
|
+
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
604
|
+
`,Bg=n.div`
|
|
605
|
+
display: flex;
|
|
606
|
+
flex-direction: column;
|
|
607
|
+
gap: 0;
|
|
608
|
+
|
|
609
|
+
width: 100%;
|
|
610
|
+
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
611
|
+
overflow-y: auto;
|
|
612
|
+
`,Hg=n.div`
|
|
613
|
+
display: flex;
|
|
614
|
+
align-items: center;
|
|
615
|
+
gap: 8px;
|
|
616
|
+
width: 100%;
|
|
617
|
+
padding: 8px;
|
|
618
|
+
border-radius: 6px;
|
|
619
|
+
cursor: pointer;
|
|
620
|
+
${({$selected:e})=>e?i`
|
|
621
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
622
|
+
`:i`
|
|
623
|
+
background-color: transparent;
|
|
624
|
+
&:hover {
|
|
625
|
+
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
626
|
+
}
|
|
627
|
+
`}
|
|
628
|
+
`,jg=n.div`
|
|
629
|
+
display: flex;
|
|
630
|
+
align-items: center;
|
|
631
|
+
gap: 8px;
|
|
632
|
+
flex: 1;
|
|
633
|
+
min-width: 0;
|
|
634
|
+
`,Xg=n.div`
|
|
635
|
+
flex: 0 1 auto;
|
|
636
|
+
min-width: 0;
|
|
637
|
+
overflow: hidden;
|
|
638
|
+
text-overflow: ellipsis;
|
|
639
|
+
white-space: nowrap;
|
|
640
|
+
`,Wg=n.span`
|
|
641
|
+
flex-shrink: 0;
|
|
642
|
+
width: 88px;
|
|
643
|
+
display: inline-flex;
|
|
644
|
+
justify-content: center;
|
|
645
|
+
padding: 1px 6px;
|
|
646
|
+
border-radius: 4px;
|
|
647
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
648
|
+
border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
|
|
649
|
+
`,Gg=n.div`
|
|
650
|
+
flex-shrink: 0;
|
|
651
|
+
display: inline-flex;
|
|
652
|
+
align-items: center;
|
|
653
|
+
gap: 4px;
|
|
654
|
+
`,Vg=({defaultOpen:r,open:n,onOpenChange:i,alignX:a,alignY:s,items:l,selectedIds:d,setSelectedIds:c,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:b,isLoading:y,emptyMessage:v,children:$})=>{const w=o(),S=!!f||!!b||!!$,{isOpen:x,setIsOpen:C,coords:E,triggerRef:T,toggleOpen:O,onTriggerWrapperMouseDown:N}=Mh({defaultOpen:r??!S,open:n,onOpenChange:i,alignX:a,alignY:s,withOffset:S,fullWidth:g}),A=e=>{c(p?d.includes(e)?d.filter(t=>t!==e):[...d,e]:[e]),S&&!p&&C(!1)},[I,k]=Ht(""),R=Wt(()=>I?l.filter(e=>e?.label?.toLowerCase().includes(I.toLowerCase())):l,[l.length,I]),{onClick:D,onMouseDown:_,...L}=f??{},{onClick:P,onMouseDown:U,...M}=b??{};return e(Fg,{ref:T,onMouseDown:N,children:[u&&t(kg,{label:u}),f&&t(Eh,{...L,fullWidth:g,rightIcon:x?Et:Tt,onMouseDown:O,onClick:e=>e.preventDefault()}),b&&t(Eh,{variant:Sh.Text,size:xh.S,...M,onMouseDown:O,onClick:e=>e.preventDefault()}),"function"==typeof $?$({ChevronIcon:x?Et:Tt,handleClick:O}):$,x&&Qt(e(zg,{$coords:E,"data-ignore-outside-click":"true",children:[h&&t(Tg,{value:I,onChange:k,width:"100%"}),y?t(zo,{withSpinner:!0,title:"Loading...",titleSize:Mn.XS}):R.length?t(Bg,{$maxHeight:m,children:R.map(r=>{if(!r)return null;const{id:n,label:i,icon:o,withCheckbox:a,badge:s,secondaryLabel:l}=r,c=d.includes(n);return e(Hg,{"data-id":`option-${n}`,$selected:c&&!a,onClick:()=>A(n),title:l?`${i} — ${l}`:i,children:[a&&t(Pg,{value:c,onChange:()=>A(n)}),o&&t(o,{size:14,fill:r.color||w.v2.colors.white[500]}),s&&t(Wg,{children:t(jn,{size:Mn.XXS,nowrap:!0,color:Fn.Secondary,children:s})}),e(jg,{children:[t(Xg,{children:t(jn,{size:Mn.XS,nowrap:!0,color:r.color||Fn.Primary,children:i})}),l&&e(Gg,{children:[t(He,{size:12,fill:w.v2.colors.silver[200]}),t(jn,{size:Mn.XS,nowrap:!0,color:Fn.Secondary,children:l})]})]})]},n)})}):t(Oo,{$padding:"6px 0",children:t(Ng,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!R.length&&t(Eh,{label:"Done",onClick:()=>C(!1)})]}),document.body)]})};var Kg;(e=>{e.Button="button",e.DropDataButton="drop-data-button",e.PopupButton="popup-button"})(Kg||(Kg={}));const Yg=({onAnyClick:e,actions:r})=>t(No,{$gap:8,$alignItems:"center",children:r?.map(r=>{if(!r)return null;switch(r.type){case Kg.Button:return t(Eh,{...r.buttonProps,onClick:t=>{r.buttonProps?.onClick?.(t),e?.()}},r.id);case Kg.DropDataButton:{const{onClick:n,...i}=r.buttonProps??{};return t(Vg,{...r.dropDataProps,items:r.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n?.(t[0]),e?.()},buttonProps:i},r.id)}case Kg.PopupButton:return t(rg,{buttonProps:{label:"Open",variant:Sh.Secondary,...r.buttonProps},...r.popupProps},r.id);default:return null}})}),Jg=n(No)`
|
|
655
|
+
min-width: 0;
|
|
656
|
+
`,qg=n.div`
|
|
657
|
+
display: flex;
|
|
658
|
+
flex-shrink: 0;
|
|
659
|
+
align-items: center;
|
|
660
|
+
justify-content: center;
|
|
661
|
+
padding: 8px;
|
|
662
|
+
border-radius: 8px;
|
|
663
|
+
background-color: ${({theme:e})=>e.v2.colors.white[500]+dg["004"]};
|
|
664
|
+
`,Qg=n(Ao)`
|
|
665
|
+
flex: 1;
|
|
666
|
+
min-width: 0;
|
|
667
|
+
overflow: hidden;
|
|
668
|
+
`,Zg=({icon:r,iconWithWrapper:n=!1,title:i,titleSize:o=Mn.S,titleColor:a=Fn.Primary,titleWrap:s=!1,titleMeta:l,subTitle:d,subTitleSize:c=Mn.XXS,subTitleColor:u=Fn.Secondary,subTitleWrap:p=!1,tooltip:h,withCopy:g,badge:m,gap:f,textGap:b,alignItems:y="center",children:v})=>{const{CopyButton:$}=Th();return e(Jg,{$gap:d?8:6,$alignItems:y,children:[r&&(n||d?t(qg,{children:t(r,{size:24})}):t(r,{size:24})),i||m||d?e(Qg,{$gap:b,children:[i||m?e(No,{$gap:6,$alignItems:"center",$wrap:"wrap",$width:"100%",children:[i&&t(jn,{size:o,color:a,nowrap:!s,children:i}),l&&t(jn,{size:Mn.XXXS,color:Fn.Secondary,children:l}),g&&i&&t($,{value:i}),h&&t(wh,{text:h,withIcon:!0}),m&&t(Zh,{...m})]}):null,d&&t(jn,{size:c,color:u,nowrap:!p,children:d})]}):null,v&&t(No,{$gap:f,$margin:`0 0 0 ${f??0}px`,$alignItems:"center",children:v})]})},em=({children:e,fullText:r,fullWidth:n=!0,...i})=>{const o=Gt(null),a=!!i.maxLines&&i.maxLines>0,s=Dh(o,{axis:a?"vertical":"horizontal",deps:[e]})?r??(null==e?"":String(e)):"";return t(wh,{text:s,fullWidth:n,ellipsis:!a,keepAlive:!0,children:t(jn,{ref:o,...i,children:e})})},tm=n.section`
|
|
669
|
+
display: flex;
|
|
670
|
+
flex-direction: column;
|
|
671
|
+
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
672
|
+
width: ${({$width:e="100%"})=>e};
|
|
673
|
+
min-width: 0;
|
|
674
|
+
max-width: 100%;
|
|
675
|
+
align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
|
|
676
|
+
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
677
|
+
padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
678
|
+
border: 1px solid transparent;
|
|
679
|
+
border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
680
|
+
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
|
|
681
|
+
${({$withClick:e,$clickStylesRemainActive:t})=>e&&i`
|
|
682
|
+
cursor: pointer;
|
|
683
|
+
&:hover {
|
|
684
|
+
background-color: ${({theme:e})=>e.v2.colors.purple[900]};
|
|
685
|
+
border-color: ${({theme:e})=>e.v2.colors.purple[500]};
|
|
686
|
+
}
|
|
687
|
+
${t&&i`
|
|
688
|
+
background-color: ${({theme:e})=>e.v2.colors.purple[900]};
|
|
689
|
+
border-color: ${({theme:e})=>e.v2.colors.purple[500]};
|
|
690
|
+
`}
|
|
691
|
+
`}
|
|
692
|
+
|
|
693
|
+
${({$overflow:e})=>e&&i`
|
|
694
|
+
overflow: ${e};
|
|
695
|
+
`}
|
|
696
|
+
`,rm=n(No)`
|
|
697
|
+
width: 100%;
|
|
698
|
+
min-width: 0;
|
|
699
|
+
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
700
|
+
user-select: ${({$clickable:e})=>e?"none":"auto"};
|
|
701
|
+
`,nm=n(No)`
|
|
702
|
+
flex-shrink: 0;
|
|
703
|
+
`,im=n.div`
|
|
704
|
+
display: flex;
|
|
705
|
+
align-items: flex-start;
|
|
706
|
+
flex-wrap: wrap;
|
|
707
|
+
width: 100%;
|
|
708
|
+
`,om=n.div`
|
|
709
|
+
${({$cellsPerRow:e})=>e?`width: calc(${100/e}% - 16px);`:"flex: 1;"};
|
|
710
|
+
margin: 8px;
|
|
711
|
+
display: flex;
|
|
712
|
+
flex-direction: column;
|
|
713
|
+
gap: 4px;
|
|
714
|
+
min-width: 0;
|
|
715
|
+
`,am=({item:r,cellsPerRow:n})=>{const{CopyButton:i}=Th(),{spacer:o,title:a,titleTooltip:s,label:l,labelTooltip:d,withCopy:c,badge:u,tag:p}=r;return o?t("div",{style:{width:n?`calc(${100/n}% - 16px)`:"unset"}}):e(om,{$cellsPerRow:n,children:[!!a&&t(wh,{text:s,children:t(em,{size:Mn.XXXS,color:Fn.Secondary,nowrap:!0,children:a})}),e(No,{$gap:4,children:[u&&t(Zh,{...u}),p&&t(qh,{...p}),c&&t(i,{value:l||u?.label?.toString()||p?.label?.toString()||""}),l&&t(wh,{text:d,children:t(em,{size:Mn.XS,nowrap:!0,children:l})})]})]})},sm=({bgTint:r="900",width:n,fullHeight:i=!1,moreSpacing:o=!1,overflow:a,richTitle:s,withCollapse:l,collapseIsDefaultOpen:d,badges:c=[],actions:u=[],dropDataActions:p=[],renderOnRightSide:h,cellsPerRow:g,items:m,children:f,onClick:b,clickStylesRemainActive:y=!1})=>{const[v,$]=Ht(d||!1),w=()=>$(e=>!e),S=!l||l&&v,x=!!u.length,C=!!p.length,E=!!c.length;return e(tm,{$width:n,$bgTint:r,$fullHeight:i,$moreSpacing:o,onClick:b,$withClick:!!b,$clickStylesRemainActive:y,$overflow:a,children:[(s||x||E||l)&&e(rm,{$gap:16,$justifyContent:"space-between",$clickable:!!l,onClick:e=>{l&&e.target.closest("section")&&w()},children:[s?t(Zg,{...s}):t("div",{}),e(nm,{$gap:12,children:[h,x&&S&&t(Yg,{actions:u}),E&&t(No,{$gap:8,children:c.map((e,t)=>Kt(Zh,{...e,key:e.key||`${e.label}-${t}`}))}),(C||l)&&e(No,{$gap:2,children:[C&&t(Vg,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Ot},items:p,selectedIds:[],setSelectedIds:e=>p?.find(t=>t?.id===e[0])?.onClick?.()}),l&&t(Eh,{variant:Sh.Text,size:xh.S,leftIcon:v?Et:Tt,onClick:w})]})]})]}),S&&m?t(im,{children:m.map(e=>t(am,{item:e,cellsPerRow:g&&g<=m.length?g:void 0},e.id))}):null,S&&f]})};var lm;(e=>{e.S="small",e.M="medium"})(lm||(lm={}));const dm=n(No)`
|
|
716
|
+
flex: 1;
|
|
717
|
+
min-width: 0;
|
|
718
|
+
align-items: center;
|
|
719
|
+
`,cm=n.div`
|
|
720
|
+
flex-shrink: 1;
|
|
721
|
+
min-width: 0;
|
|
722
|
+
overflow: hidden;
|
|
723
|
+
`,um=n.div`
|
|
724
|
+
display: flex;
|
|
725
|
+
flex-direction: column;
|
|
726
|
+
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
727
|
+
`,pm=n.div`
|
|
728
|
+
display: flex;
|
|
729
|
+
flex-direction: column;
|
|
730
|
+
gap: ${({$gap:e})=>e}px;
|
|
731
|
+
width: 100%;
|
|
732
|
+
align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
|
|
733
|
+
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
734
|
+
padding: ${({$padding:e})=>e}px;
|
|
735
|
+
border-radius: 16px;
|
|
736
|
+
background-color: ${({theme:e,$backgroundColor:t,$bordered:r})=>t??(r?"transparent":e.v2.colors.silver[1e3])};
|
|
737
|
+
${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
|
|
738
|
+
`,hm=zt(({id:r,size:n=lm.M,fullHeight:i=!1,richTitle:o,customTitle:a,search:s,customSearch:l,filters:d,actions:c,children:u,backgroundColor:p,padding:h,bordered:g=!1},m)=>{const f=n===lm.S?4:16,b="number"==typeof h?h:n===lm.S?12:16,y=a??(o?t(Zg,{...o}):null),v=l??(s?t(Tg,{...s}):null),$=!!v||!!d,w=!!c&&c.length>0;return e(pm,{ref:m,id:r,"data-section-name":r,$padding:b,$gap:f,$fullHeight:i,$backgroundColor:p,$bordered:g,children:[y||$||w?e(No,{$gap:f,$justifyContent:"space-between",$alignItems:"center",children:[y||$?e(dm,{$gap:f,children:[y?t(cm,{children:y}):null,v,d]}):null,w&&t(Yg,{actions:c??[]})]}):null,t(um,{$fullHeight:i,children:u})]})});hm.displayName="SectionCard";const gm=n.div`
|
|
739
|
+
flex: 1;
|
|
740
|
+
align-self: stretch;
|
|
741
|
+
display: flex;
|
|
742
|
+
align-items: center;
|
|
743
|
+
gap: 8px;
|
|
744
|
+
padding: 16px;
|
|
745
|
+
border-radius: 12px;
|
|
746
|
+
background-color: ${({theme:e,$status:t})=>io(e,t,t===Nr.Unknown?"750":"500")};
|
|
747
|
+
`,mm=n.div`
|
|
748
|
+
display: flex;
|
|
749
|
+
align-items: center;
|
|
750
|
+
justify-content: center;
|
|
751
|
+
width: fit-content;
|
|
752
|
+
height: fit-content;
|
|
753
|
+
padding: 8px;
|
|
754
|
+
border-radius: 12px;
|
|
755
|
+
background-color: ${({theme:e,$status:t})=>t===Nr.Unknown?io(e,t,"800"):io(e,t,"900")+dg["015"]};
|
|
756
|
+
`,fm=({status:r,icon:n,title:i,description:a})=>{const s=o(),l=n??Bo(r,s),d=[Nr.Default,Nr.Info,Nr.Disabled,Nr.Unknown].includes(r)?s.v2.colors.white[500]:s.v2.colors.black[500];return e(gm,{$status:r,children:[t(mm,{$status:r,children:t(l,{size:32,fill:d})}),e(Ao,{$gap:2,$justifyContent:"center",children:[t(jn,{size:Mn.M,weight:500,color:d,nowrap:!0,children:i}),t(jn,{size:Mn.XXS,weight:300,color:d,nowrap:!0,children:a})]})]})},bm=n.div`
|
|
757
|
+
flex: 0.5;
|
|
758
|
+
display: flex;
|
|
759
|
+
flex-direction: column;
|
|
760
|
+
gap: 12px;
|
|
761
|
+
padding: 12px;
|
|
762
|
+
border-radius: 12px;
|
|
763
|
+
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
|
|
764
|
+
`,ym=["-","N/A","undefined","null","undefined/undefined","null/null"],vm=({title:r,cells:n,bgTint:i="800"})=>{const a=o();return e(bm,{$bgTint:i,children:[t(jn,{nowrap:!0,size:Mn.XXS,color:a.v2.colors.grey[150],children:r}),t(No,{$gap:32,children:n.map((n,i)=>e(Ao,{$gap:2,children:[!n.isLoading||n.value&&!ym.includes(n.value)?t(jn,{nowrap:!0,size:n.label?Mn.M:Mn.L,children:n.value}):t(zo,{withSpinnerOld:!0,scaleSpinnerOld:.9}),n.label&&t(jn,{nowrap:!0,size:Mn.XXS,children:n.label})]},`${r}-${i}-${n.label}-${n.value}`))})]})},$m=n.div`
|
|
765
|
+
padding: ${({$small:e,$hasSuffix:t})=>t?0:e?"4px 8px 4px 10px":"6px 12px"};
|
|
766
|
+
|
|
767
|
+
display: flex;
|
|
768
|
+
align-self: stretch;
|
|
769
|
+
align-items: stretch;
|
|
770
|
+
gap: ${({$hasSuffix:e})=>e?0:"8px"};
|
|
771
|
+
border-radius: 6px;
|
|
772
|
+
overflow: hidden;
|
|
773
|
+
${({$hasSuffix:e})=>e&&i`
|
|
774
|
+
width: 100%;
|
|
775
|
+
box-sizing: border-box;
|
|
776
|
+
`}
|
|
777
|
+
cursor: ${({$clickable:e,$disabled:t,$hasSuffix:r,$readOnly:n})=>t?"not-allowed":n?"default":r?"text":e?"pointer":"inherit"};
|
|
778
|
+
|
|
779
|
+
border: 1px solid
|
|
780
|
+
${({theme:e,$disabled:t,$error:r})=>t?e.v2.colors.grey[600]:r?e.v2.colors.red[500]:e.v2.colors.silver[500]};
|
|
781
|
+
background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
|
|
782
|
+
${({$disabled:e,$error:t,$readOnly:r})=>!e&&!t&&!r&&i`
|
|
783
|
+
&:hover,
|
|
784
|
+
&:active,
|
|
785
|
+
&:focus-within {
|
|
786
|
+
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
787
|
+
}
|
|
788
|
+
`}
|
|
789
|
+
${({$disabled:e,$error:t})=>!e&&i`
|
|
790
|
+
&:focus-within {
|
|
791
|
+
outline: 1px solid ${({theme:e})=>t?e.v2.colors.red[400]:e.v2.colors.purple[400]};
|
|
792
|
+
outline-offset: 1px;
|
|
793
|
+
}
|
|
794
|
+
`}
|
|
795
|
+
`,wm=n.div`
|
|
796
|
+
flex: 1;
|
|
797
|
+
min-width: 0;
|
|
798
|
+
display: flex;
|
|
799
|
+
align-items: center;
|
|
800
|
+
padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
|
|
801
|
+
`,Sm=n.span`
|
|
802
|
+
flex-shrink: 0;
|
|
803
|
+
width: 1px;
|
|
804
|
+
align-self: stretch;
|
|
805
|
+
background: ${({theme:e,$disabled:t,$error:r})=>r?e.v2.colors.red[800]:t?e.v2.colors.grey[600]:e.v2.colors.silver[600]};
|
|
806
|
+
`,xm=n.span`
|
|
807
|
+
flex-shrink: 0;
|
|
808
|
+
display: flex;
|
|
809
|
+
align-items: center;
|
|
810
|
+
justify-content: flex-start;
|
|
811
|
+
min-width: ${({$small:e})=>e?"unset":"12ch"};
|
|
812
|
+
padding: ${({$small:e})=>e?"4px 10px":"6px 12px"};
|
|
813
|
+
`,Cm=n.input`
|
|
814
|
+
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
815
|
+
width: ${({$width:e})=>e||"unset"};
|
|
816
|
+
|
|
817
|
+
flex: 1;
|
|
818
|
+
min-width: 0;
|
|
819
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
820
|
+
font-size: ${({$small:e})=>e?"12px":"14px"};
|
|
821
|
+
font-weight: 400;
|
|
822
|
+
font-variant-numeric: ${({$tabular:e})=>e?"tabular-nums":"normal"};
|
|
823
|
+
text-align: ${({$tabular:e})=>e?"right":"inherit"};
|
|
824
|
+
|
|
825
|
+
cursor: text;
|
|
826
|
+
color: ${({theme:e})=>e.v2.colors.white[500]};
|
|
827
|
+
&:focus {
|
|
828
|
+
outline: none;
|
|
829
|
+
}
|
|
830
|
+
&::placeholder {
|
|
831
|
+
color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
&:disabled {
|
|
835
|
+
cursor: not-allowed;
|
|
836
|
+
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
837
|
+
&::placeholder {
|
|
838
|
+
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
overflow: hidden;
|
|
843
|
+
text-overflow: ellipsis;
|
|
844
|
+
white-space: nowrap;
|
|
845
|
+
|
|
846
|
+
&:read-only {
|
|
847
|
+
cursor: pointer;
|
|
848
|
+
pointer-events: none;
|
|
849
|
+
user-select: none;
|
|
850
|
+
}
|
|
851
|
+
`,Em=n.div`
|
|
852
|
+
display: flex;
|
|
853
|
+
align-items: center;
|
|
854
|
+
justify-content: center;
|
|
855
|
+
cursor: pointer;
|
|
856
|
+
`,Tm=({label:n,required:i,tooltip:a,badge:s,leftIcon:l,rightIcon:d,suffix:c,hasError:u,errorMessage:p,warnMessage:h,helpMessage:g,type:m=Or.Text,name:f,value:b,onChange:y,disabled:v,maxWidth:$,width:w,small:S=!1,onClick:x,...C})=>{const E=o(),T=m===Or.Password,O=m===Or.Number||m===Or.Decimal,[N,A]=Ht(!1),[I,k]=Ht(null),R=e=>{e.stopPropagation();const t=e.target.value;if(m===Or.Number||m===Or.Decimal){const r=m===Or.Number?pa(t):ua(t),n=null!=C.min?Number(C.min):void 0,i=null!=C.max?Number(C.max):void 0,o=m===Or.Decimal&&r.endsWith(".");let a=r,s=!1;if(r&&!o){const e=parseFloat(r);isNaN(e)||(null!=i&&e>i?(a=String(i),s=!0):null!=n&&e<n&&(a=String(n),s=!0))}e.target.value=a,k(t&&t!==r?"Please enter a valid number":s?"Value must be "+(null!=n&&null!=i?`between ${n} and ${i}`:null!=i?`at most ${i}`:`at least ${n}`):null)}y?.(e)},D=e=>{["Enter"].includes(e.key)||e.stopPropagation()},_=u||!!p||!!I,L=b?E.v2.colors.white[500]:v?E.v2.colors.grey[400]:E.v2.colors.silver[200],P=S?14:18,U=Gt(null),M=Dh(U,{deps:[b]}),F=C.readOnly&&M&&null!=b&&""!==b?String(b):"",z=!!c&&!T;return e(Ao,{$width:w,$gap:6,children:[t(kg,{label:n,tooltip:a,required:i,badge:s}),t($m,{$small:S,$disabled:v,$readOnly:!!C.readOnly,$error:_,$clickable:!!x&&!v,$hasSuffix:z,onClick:v||!x&&!z?void 0:e=>{v||(z&&!C.readOnly&&U.current?.focus(),x?.(e))},children:z?e(r,{children:[t(wm,{$small:S,children:t(wh,{text:F,fullWidth:!0,keepAlive:!0,children:t(Cm,{"data-id":f,type:O?Or.Text:m,name:f,value:b,onChange:R,onKeyDown:D,disabled:v,$maxWidth:$,$width:"100%",$small:S,$tabular:O,...C,ref:U})})}),t(Sm,{$disabled:v,$error:_}),t(xm,{$small:S,"aria-hidden":"true",children:t(jn,{size:Mn.XXXS,color:v?Fn.Disable:Fn.Secondary,nowrap:!0,children:c})})]}):e(wh,{text:F,fullWidth:!0,keepAlive:!0,children:[l?t(l,{size:P,fill:L}):null,t(Cm,{"data-id":f,type:N||O?Or.Text:m,name:f,value:b,onChange:R,onKeyDown:D,disabled:v,$maxWidth:$,$width:w,$small:S,$tabular:O,...C,ref:U}),T?t(Em,{onClick:()=>A(e=>!e),children:t(N?Nt:At,{size:P,fill:L})}):d?t(d,{size:P,fill:L}):null]})}),t(Rg,{errorMessage:I||p,warnMessage:h,helpMessage:g})]})},Om=e=>{const{"data-id":r,options:n,placeholder:i="Search...",isLoading:o,disabled:a}=e,s=!0===e.multiple,[l,d]=Ht(""),[c,u]=Ht(!1),p=Wt(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Wt(()=>{if(s){const e=p.length;return e?1===e?n.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return e.value?n.find(t=>t.id===e.value)?.label??"":""},[s,e,n,p]),g=c?l:h,m=Wt(()=>{const e=s?n.map(e=>({...e,withCheckbox:!0})):n;if(!l)return e;const t=l.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[s,n,l]),f=Xt(()=>{d(""),u(!0)},[]),b=Xt(t=>{d(t.target.value),c||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[c,s,e]),y=Xt(e=>{u(e),e||d("")},[]),v=Xt(t=>{if(s)return void e.onSelect(t);const r=n.find(e=>e.id===t[0]);r&&(e.onSelect(r),d(""),u(!1))},[s,e,n]),$=c&&(o||m.length>0||l.length>0);return t(Vg,{open:$,onOpenChange:y,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:o,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:Uh.Bottom,children:t(Tm,{name:r,leftIcon:St,placeholder:i,value:g,onChange:b,onFocus:f,disabled:a})})},Nm=n.button`
|
|
857
|
+
width: 100%;
|
|
858
|
+
padding: 0;
|
|
859
|
+
padding-right: 12px;
|
|
860
|
+
display: flex;
|
|
861
|
+
align-items: center;
|
|
862
|
+
justify-content: flex-start;
|
|
863
|
+
gap: 12px;
|
|
864
|
+
border-radius: 8px;
|
|
865
|
+
border: none;
|
|
866
|
+
${({$hovered:e})=>e?i`
|
|
867
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
868
|
+
`:i`
|
|
869
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
870
|
+
`}
|
|
871
|
+
overflow: hidden;
|
|
872
|
+
cursor: pointer;
|
|
873
|
+
&:disabled {
|
|
874
|
+
cursor: not-allowed;
|
|
875
|
+
opacity: 0.5;
|
|
876
|
+
}
|
|
877
|
+
`,Am=n.div`
|
|
878
|
+
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
879
|
+
height: 56px;
|
|
880
|
+
display: flex;
|
|
881
|
+
align-items: center;
|
|
882
|
+
justify-content: center;
|
|
883
|
+
${({$hovered:e})=>e?i`
|
|
884
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
885
|
+
`:i`
|
|
886
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
887
|
+
`}
|
|
888
|
+
`,Im=n.div`
|
|
889
|
+
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
890
|
+
display: flex;
|
|
891
|
+
justify-content: space-between;
|
|
892
|
+
align-items: center;
|
|
893
|
+
gap: 8px;
|
|
894
|
+
`,km=({label:r,icon:n,loading:i,disabled:o,onClick:a})=>{const[s,l]=Ht(!1);return e(Nm,{$hovered:s,type:"button",disabled:o||i,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(Am,{$hovered:s,$hasIcon:!!n,children:n&&t(n,{size:36})}),e(Im,{$hasIcon:!!n,children:[i?t(zo,{withGradient:!0,titleSize:Mn.S}):t(jn,{variant:Un.Span,align:"center",children:r}),t(It,{rotate:90,size:24})]})]})},Rm=({buttons:e})=>t(Ao,{$gap:12,children:e.map((e,r)=>t(km,{...e},`${e.label}-${r}`))});var Dm;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(Dm||(Dm={}));const _m=n.div`
|
|
895
|
+
display: flex;
|
|
896
|
+
align-items: flex-end;
|
|
897
|
+
justify-content: space-between;
|
|
898
|
+
gap: 24px;
|
|
899
|
+
width: fit-content;
|
|
900
|
+
`,Lm=n.div`
|
|
901
|
+
position: relative;
|
|
902
|
+
display: flex;
|
|
903
|
+
flex-direction: column;
|
|
904
|
+
align-items: center;
|
|
905
|
+
width: ${({$width:e})=>e??150}px;
|
|
906
|
+
flex-shrink: 0;
|
|
907
|
+
`,Pm=n.svg`
|
|
908
|
+
display: block;
|
|
909
|
+
width: 100%;
|
|
910
|
+
height: auto;
|
|
911
|
+
overflow: visible;
|
|
912
|
+
`,Um=n(Ao)`
|
|
913
|
+
position: absolute;
|
|
914
|
+
left: 0;
|
|
915
|
+
right: 0;
|
|
916
|
+
bottom: 4px;
|
|
917
|
+
align-items: center;
|
|
918
|
+
gap: 2px;
|
|
919
|
+
pointer-events: none;
|
|
920
|
+
`,Mm=n.span`
|
|
921
|
+
display: inline-block;
|
|
922
|
+
flex-shrink: 0;
|
|
923
|
+
width: 9px;
|
|
924
|
+
height: 9px;
|
|
925
|
+
border-radius: 50%;
|
|
926
|
+
background-color: ${({$color:e})=>e};
|
|
927
|
+
`,Fm=e=>{if(null==e||""===e)return{number:0,prefix:"",suffix:""};if("number"==typeof e)return{number:e,prefix:"",suffix:""};const t=e.match(/^(\D*)(-?\d*\.?\d+)(.*)$/);return t?{number:parseFloat(t[2]),prefix:t[1]??"",suffix:(t[3]??"").trim()}:{number:0,prefix:"",suffix:""}},zm=(e,t,r,n)=>{const i=n*Math.PI/180;return{x:e+r*Math.cos(i),y:t-r*Math.sin(i)}},Bm=(e,t,r,n,i)=>{const o=zm(e,t,r,n),a=zm(e,t,r,i),s=n>i?1:0,l=Math.abs(n-i)>180?1:0;return`M ${o.x} ${o.y} A ${r} ${r} 0 ${l} ${s} ${a.x} ${a.y}`},Hm=({variant:r=Dm.CurrentOfMax,gaugeWidth:n,title:i,min:a=0,max:s,current:l,primaryLabel:d,primaryColor:c,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=Fm(a),{number:g}=Fm(s),{number:m,prefix:f,suffix:b}=Fm(l),y=o(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),$=180-180*v,w=v>0?Bm(60,60,55,180,$):null,S=v<1?Bm(60,60,55,$,0):null,x=zm(60,60,55,180),C=zm(60,60,55,0),E=c??(r===Dm.GoodAgainstBad?y.v2.colors.green[500]:y.v2.colors.purple[400]),T=p??(r===Dm.GoodAgainstBad?y.v2.colors.red[500]:y.v2.colors.silver[500]),[O,N]=Ht(null),A=e=>`${f}${e}${b}`,I=r===Dm.GoodAgainstBad?Math.max(g-m,0):g,k="primary"===O?d:"secondary"===O?u:"",R="primary"===O?A(m):"secondary"===O?A(I):"",D=()=>N("primary"),_=()=>N("secondary"),L=()=>N(null);var P;return e(_m,{children:[e(Lm,{$width:n,children:[t(wh,{keepAlive:!0,fullWidth:!0,title:k,text:R,children:e(Pm,{viewBox:"0 0 120 65",role:"img","aria-label":`${i}: ${m} of ${g}`,children:[w&&t("path",{d:w,fill:"none",stroke:E,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),S&&t("path",{d:S,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:_,onMouseLeave:L}),v>0&&t("circle",{cx:x.x,cy:x.y,r:5,fill:E,onMouseEnter:D,onMouseLeave:L}),v<1&&t("circle",{cx:C.x,cy:C.y,r:5,fill:T,onMouseEnter:_,onMouseLeave:L})]})}),i&&e(Um,{children:[t(jn,{size:Mn.XXXS,color:y.v2.colors.grey[150],align:"center",children:i}),t(jn,{size:Mn.L,weight:500,align:"center",children:`${f}${m}${b}`})]})]}),e(Ao,{$gap:7,children:[e(No,{$gap:8,$alignItems:"center",children:[t(Mm,{$color:E}),t(jn,{size:Mn.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:d})]}),e(No,{$gap:8,$alignItems:"center",children:[t(Mm,{$color:T}),t(jn,{size:Mn.XXXS,color:y.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},jm=n(No)`
|
|
928
|
+
width: 100%;
|
|
929
|
+
padding: 8px 12px;
|
|
930
|
+
border-radius: 6px;
|
|
931
|
+
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t||"800"]};
|
|
932
|
+
display: flex;
|
|
933
|
+
align-items: center;
|
|
934
|
+
justify-content: space-between;
|
|
935
|
+
gap: 12px;
|
|
936
|
+
`,Xm=n.div`
|
|
937
|
+
position: relative;
|
|
938
|
+
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
939
|
+
display: flex;
|
|
940
|
+
align-items: center;
|
|
941
|
+
gap: 4px;
|
|
942
|
+
`,Wm=n.pre`
|
|
943
|
+
flex: 1;
|
|
944
|
+
margin: 0;
|
|
945
|
+
padding: 0;
|
|
946
|
+
font-size: 12px;
|
|
947
|
+
color: #5ffb98; // TODO: add to theme
|
|
948
|
+
overflow-x: auto;
|
|
949
|
+
`,Gm=n.span`
|
|
950
|
+
flex-shrink: 0;
|
|
951
|
+
font-size: 14px;
|
|
952
|
+
color: #5ffb98; // TODO: add to theme
|
|
953
|
+
`,Vm=({bgTint:r,label:n,value:i,hideCopy:o=!1,onDone:a})=>{const{CopyButton:s}=Th({onDone:a}),l=Gt(null),[d,c]=Ht(!1);return jt(()=>{const e=()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;c(e>t)}};e();const t=new ResizeObserver(e);return l.current&&t.observe(l.current),()=>{t.disconnect()}},[i]),e(Ao,{$gap:4,children:[n&&t(jn,{size:Mn.XXXS,color:Fn.Secondary,children:n}),e(jm,{$bgTint:r,children:[e(Xm,{$hideCopy:o,children:[t(Wm,{ref:l,children:i}),d&&t(Gm,{children:"..."})]}),!o&&t(s,{value:i})]})]})},Km=n(No)`
|
|
954
|
+
gap: 0;
|
|
955
|
+
`,Ym=n.button`
|
|
956
|
+
padding: 4px 8px;
|
|
957
|
+
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
958
|
+
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
959
|
+
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
960
|
+
display: flex;
|
|
961
|
+
align-items: center;
|
|
962
|
+
justify-content: center;
|
|
963
|
+
cursor: pointer;
|
|
964
|
+
&:hover {
|
|
965
|
+
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
966
|
+
}
|
|
967
|
+
`,Jm=({isPrettyMode:r,setIsPrettyMode:n})=>e(Km,{children:[t(Ym,{$position:"left",$selected:r,onClick:()=>n(!0),children:t(kt,{})}),t(Ym,{$position:"right",$selected:!r,onClick:()=>n(!1),children:t(vt,{})})]}),qm=n.table`
|
|
968
|
+
border-collapse: collapse;
|
|
969
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
970
|
+
`,Qm=n.tbody``,Zm=n.tr`
|
|
971
|
+
td:first-child {
|
|
972
|
+
padding-left: 0 !important;
|
|
973
|
+
}
|
|
974
|
+
td:last-child {
|
|
975
|
+
padding-right: 0 !important;
|
|
976
|
+
}
|
|
977
|
+
`,ef=n.td`
|
|
978
|
+
vertical-align: top;
|
|
979
|
+
padding: 4px 6px;
|
|
980
|
+
`,tf=n.span`
|
|
981
|
+
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
982
|
+
overflow-wrap: break-word;
|
|
983
|
+
word-break: break-word;
|
|
984
|
+
word-wrap: break-word;
|
|
985
|
+
/* Fallback for older browsers */
|
|
986
|
+
-ms-word-break: break-all;
|
|
987
|
+
font-size: 12px;
|
|
988
|
+
`,rf=({language:e,code:r,theme:n,flatten:i,pretty:a})=>{const{darkMode:s}=o(),l=n?er[n]:s?er.palenight:er.vsLight;let d="";if("json"===e){const e=ii(r,{}),t=Da(e);d=_a(i?Ci(t):t)}else d=r;return a&&"json"===e?t(nf,{darkMode:s,str:d}):t(Zt,{theme:l||(s?er.palenight:er.vsLight),language:e,code:d,children:({getLineProps:e,getTokenProps:r,tokens:n})=>t("pre",{children:n.map((n,i)=>t("div",{...e({line:n}),children:n.map((e,n)=>t(tf,{...r({token:e})},`line-${i}-token-${n}`))},`line-${i}`))})})},nf=({darkMode:r,str:n})=>{const i=o(),a=(r,n)=>{const o=new Array(r).fill(r=>e(Zm,{...r,children:[t(ef,{}),t(ef,{})]}));return t(Bt,{children:o.map((e,r)=>t(e,{style:0===r?{borderBottom:`1px solid ${i.colors.border}`}:{}},`empty-row-${n}-${r}`))})};return t(Zt,{theme:r?er.palenight:er.vsLight,language:"json",code:n,children:({getLineProps:r,getTokenProps:n,tokens:o})=>t(qm,{children:t(Qm,{children:o.map((o,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const r=[...e],n=["property","string"].includes(r[0])?t.replace(/"/g,""):t;return"string"===r[0]&&(["true","false"].includes(n.split("@")[0])&&(r[0]="boolean"),n.split("@")[0].match(/^[0-9]+$/)&&(r[0]="number")),{types:r,content:n}})})(o),d=r({line:l});return 1===l.length&&"property"===l[0].types[0]?e(Bt,{children:[a(2,s),e(Zm,{...d,children:[t(ef,{children:t(jn,{nowrap:!0,children:l[0].content})}),t(ef,{})]})]},`line-${s}`):2===l.length?t(Zm,{...d,children:l.map((r,o)=>{const{text:a,components:l}=((e,r)=>{const[n,...i]=e.split("@");return{text:n,components:i?.map((e,n)=>{if(!e.includes("="))return null;const[i,o]=e.split("=");switch(i){case"tooltip":return t(wh,{withIcon:!0,text:o},`${i}-${o}-${n}`);case"status":if("none"===o)return t("div",{style:{width:16,height:16}},`${i}-${o}-${n}`);let e=Bo(o,r);return e||(e=Bo(Nr.Warning,r)),t(e,{},`${i}-${o}-${n}`);default:return null}})?.filter(e=>!!e)||[]}})(r.content,i),d=0===o;return t(ef,{children:e(No,{children:[t(No,{children:l}),t(tf,{$noWrap:d,...n({token:r}),children:a})]})},`line-${s}-token-${o}`)})},`line-${s}`):(l.length,null)})})})})},of=n.div`
|
|
989
|
+
display: flex;
|
|
990
|
+
align-items: ${({$slim:e})=>e?"flex-start":"center"};
|
|
991
|
+
gap: 8px;
|
|
992
|
+
padding: ${({$hideBackground:e,$slim:t})=>e?"0":t?"8px":"16px"};
|
|
993
|
+
width: ${({$width:e})=>e||"auto"};
|
|
994
|
+
border-radius: ${({$isExtended:e})=>e?"12px 12px 0 0":"12px"};
|
|
995
|
+
background-color: ${({$hideBackground:e,$backgroundColor:t})=>e?"transparent":t};
|
|
996
|
+
|
|
997
|
+
${({$withHover:e,$hideBackground:t,$hoverBackgroundColor:r})=>e&&i`
|
|
998
|
+
cursor: pointer;
|
|
999
|
+
transition: background 0.2s;
|
|
1000
|
+
&:hover {
|
|
1001
|
+
background-color: ${t?"transparent":r};
|
|
1002
|
+
}
|
|
1003
|
+
`}
|
|
1004
|
+
`,af=n.div`
|
|
1005
|
+
display: flex;
|
|
1006
|
+
align-items: center;
|
|
1007
|
+
justify-content: center;
|
|
1008
|
+
align-self: ${({$slim:e})=>e?"flex-start":"auto"};
|
|
1009
|
+
flex-shrink: 0;
|
|
1010
|
+
width: ${({$slim:e})=>e?"32px":"42px"};
|
|
1011
|
+
height: ${({$slim:e})=>e?"32px":"42px"};
|
|
1012
|
+
border-radius: 11px;
|
|
1013
|
+
background-color: ${({$backgroundColor:e,$slim:t})=>t?"transparent":e};
|
|
1014
|
+
${({$withClick:e})=>e&&i`
|
|
1015
|
+
cursor: pointer;
|
|
1016
|
+
& * {
|
|
1017
|
+
cursor: pointer;
|
|
1018
|
+
}
|
|
1019
|
+
&:hover {
|
|
1020
|
+
transform: scale(1.2);
|
|
1021
|
+
}
|
|
1022
|
+
`}
|
|
1023
|
+
`,sf=n(Ao)`
|
|
1024
|
+
flex: 1;
|
|
1025
|
+
align-self: ${({$slim:e})=>e?"flex-start":"center"};
|
|
1026
|
+
min-width: 0;
|
|
1027
|
+
`,lf=n(Ao)`
|
|
1028
|
+
align-self: stretch;
|
|
1029
|
+
flex-shrink: 0;
|
|
1030
|
+
`,df=n.div`
|
|
1031
|
+
display: flex;
|
|
1032
|
+
align-items: center;
|
|
1033
|
+
justify-content: center;
|
|
1034
|
+
flex-shrink: 0;
|
|
1035
|
+
width: 24px;
|
|
1036
|
+
height: 24px;
|
|
1037
|
+
`,cf=({status:r,title:n,subTitle:i,details:a,actionDetails:s,badgeLabel:l,loading:d,actionButtons:c,isExtended:u=!1,toggleExtended:p,invertColors:h=!1,hideIcon:g=!1,hideBackground:m=!1,width:f,slim:b=!1})=>{const y=o(),v=Bo(r,y),$=p?u?Et:Tt:void 0,w=r===Nr.Unknown,S=r===Nr.Disabled,x=r===Nr.Loading||d,C=[Nr.Error,Nr.Warning,Nr.Success].includes(r),E=io(y,r,S?h?"400":"700":w?"600":h?"300":"500"),T=S?y.v2.colors.grey[400]:h?y.v2.colors.white[500]:C?y.v2.colors.black[500]:y.v2.colors.white[500],O=h&&!w?E:T,N=!h||w||S?"rgba(0, 0, 0, 0.13)":io(y,r,"800"),A=S?y.v2.colors.grey[900]:h||w?y.v2.colors.silver[800]:E,I=S?y.v2.colors.grey[800]:h||w?y.v2.colors.silver[700]:io(y,r,"600");return e(of,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:I,$slim:b,onClick:p,children:[!g&&t(af,{$backgroundColor:N,$slim:b,children:x?t(zo,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(sf,{$gap:4,$justifyContent:"center",$slim:b,children:[e(No,{$gap:10,$alignItems:"center",children:[t(jn,{size:b?Mn.XS:Mn.S,weight:500,color:O,children:n}),l&&t(Zh,{label:l,backgroundColor:y.v2.colors.silver[600],textColor:y.v2.colors.white[500],textSize:Mn.XXXS})]}),i&&t(jn,{size:Mn.XXXS,color:T,children:i}),a]}),(!!c?.length||s)&&e(lf,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!c?.length&&t(No,{$gap:8,children:c.map(e=>t(Eh,{...e,variant:Sh.Secondary,size:xh.S},e["data-id"]??e.label))}),s]}),$&&t(df,{children:t($,{size:24,fill:T})})]})},uf=n.div`
|
|
1038
|
+
display: flex;
|
|
1039
|
+
flex-direction: column;
|
|
1040
|
+
width: 100%;
|
|
1041
|
+
border-radius: 12px;
|
|
1042
|
+
overflow: hidden;
|
|
1043
|
+
`,pf=n.div`
|
|
1044
|
+
display: flex;
|
|
1045
|
+
flex-direction: column;
|
|
1046
|
+
gap: 8px;
|
|
1047
|
+
padding: 8px 12px 16px 12px;
|
|
1048
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1049
|
+
`,hf=n.div`
|
|
1050
|
+
display: flex;
|
|
1051
|
+
align-items: center;
|
|
1052
|
+
gap: 8px;
|
|
1053
|
+
`,gf=n.div`
|
|
1054
|
+
display: flex;
|
|
1055
|
+
align-items: center;
|
|
1056
|
+
justify-content: center;
|
|
1057
|
+
flex-shrink: 0;
|
|
1058
|
+
width: 18px;
|
|
1059
|
+
height: 18px;
|
|
1060
|
+
`,mf=({conditions:r,title:n,subTitle:i})=>{const a=o(),[s,l]=Ht(!1),d=Xt(()=>l(e=>!e),[]),c=Wt(()=>sa(r),[r]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Wt(()=>Ii(c),[c]);jt(()=>{l(p||g||m)},[p,g,m]);const b=Wt(()=>(!c.length||f)&&!p&&!g&&!m,[c.length,f,p,g,m]),y=Wt(()=>p?Nr.Error:g?Nr.Warning:m?Nr.Info:Nr.Success,[p,g,m]),v=Wt(()=>n||(1===c.length?Pn(c[0].reason||c[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:r,loading:n})=>e?"Something Failed":t||r?"Something isn't right":n?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:b}),[n,c,p,g,m,b]),$=Wt(()=>i||1===c.length&&c[0].message||void 0,[i,c]),w=Wt(()=>`${p?u.length:g?h.length:c.length}/${c.length}`,[p,u.length,g,h.length,c.length]);return e(uf,{children:[t(cf,{status:y,invertColors:!0,title:v,subTitle:$,badgeLabel:w,loading:b,isExtended:s,toggleExtended:d}),s&&t(pf,{children:c.map(({status:r,type:n,reason:i,message:o},s)=>{const l=r===Nr.Loading,d=r===Nr.Disabled?Nr.Info:r,c=l?null:Bo(d,a),u=r===Nr.Error?io(a,Nr.Error,"500"):r===Nr.Warning?io(a,Nr.Warning,"500"):a.v2.colors.white[500],p=[n,o||i].filter(Boolean).join(" - ");return e(hf,{children:[t(gf,{children:l||!c?t(zo,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(c,{size:18})}),t(jn,{size:Mn.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},ff=n.div`
|
|
1061
|
+
width: ${({$orientation:e,$thickness:t,$length:r})=>e===fr.Vertical?`${t}px`:r||"100%"};
|
|
1062
|
+
height: ${({$orientation:e,$thickness:t,$length:r})=>e===fr.Horizontal?`${t}px`:r||"100%"};
|
|
1063
|
+
margin: ${({$orientation:e,$margin:t})=>t||(e===fr.Horizontal?"8px 0":"0 8px")};
|
|
1064
|
+
background-color: ${({$type:e,theme:t})=>e?io(t,e):t.v2.colors.silver[500]};
|
|
1065
|
+
opacity: ${({$opacity:e})=>e||1};
|
|
1066
|
+
`,bf=({orientation:e=fr.Horizontal,type:r,thickness:n=1,length:i,margin:o,opacity:a})=>t(ff,{$orientation:e,$type:r,$thickness:n,$length:i,$margin:o,$opacity:a});var yf,vf,$f;(e=>{e.Default="default",e.SuccessError="successError"})(yf||(yf={})),(e=>{e.S="small",e.L="large"})(vf||(vf={})),(e=>{e.Left="left",e.Right="right"})($f||($f={}));const wf=n.div`
|
|
1067
|
+
display: flex;
|
|
1068
|
+
align-items: center;
|
|
1069
|
+
gap: ${({$gap:e})=>e}px;
|
|
1070
|
+
`,Sf=n.div`
|
|
1071
|
+
position: relative;
|
|
1072
|
+
display: flex;
|
|
1073
|
+
align-items: center;
|
|
1074
|
+
justify-content: space-between;
|
|
1075
|
+
box-sizing: content-box;
|
|
1076
|
+
|
|
1077
|
+
width: ${({$size:e})=>2*e+2}px;
|
|
1078
|
+
height: ${({$size:e})=>e}px;
|
|
1079
|
+
padding: ${4}px;
|
|
1080
|
+
border-radius: ${({$size:e})=>2*e}px;
|
|
1081
|
+
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:r,$variant:n,$value:i,theme:o})=>{if(e)return o.v2.colors.grey[800];if(t&&i)return t;if(r&&!i)return r;switch(n){case yf.SuccessError:return i?o.v2.colors.green[500]:o.v2.colors.red[500];case yf.Default:default:return i?o.v2.colors.purple[500]:o.v2.colors.grey[400]}}};
|
|
1082
|
+
|
|
1083
|
+
border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
|
|
1084
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1085
|
+
`,xf=n.div`
|
|
1086
|
+
position: absolute;
|
|
1087
|
+
top: 50%;
|
|
1088
|
+
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
1089
|
+
transform: translateY(-50%);
|
|
1090
|
+
width: ${({$size:e})=>e}px;
|
|
1091
|
+
height: ${({$size:e})=>e}px;
|
|
1092
|
+
border-radius: 100%;
|
|
1093
|
+
background-color: ${({$color:e})=>e};
|
|
1094
|
+
box-shadow: ${({$disabled:e})=>e?"0 0 40px 0 rgba(0, 0, 0, 0.07)":"0 0 10px 0 rgba(0, 0, 0, 0.50)"};
|
|
1095
|
+
`,Cf=({variant:n=yf.Default,size:i=vf.L,name:a,label:s,labelAlign:l=$f.Right,labelColor:d,tooltip:c,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=$t,offIcon:b=xt,onBgColor:y,offBgColor:v,errorMessage:$,warnMessage:w,helpMessage:S})=>{const x=o(),C=g?x.v2.colors.grey[400]:x.v2.colors.white[500],E=i===vf.S?10:16,T=d||x.v2.colors.silver[200],O=i===vf.S?Mn.XXXS:Mn.XS,N=i===vf.S?8:12;return e(Ao,{$gap:4,children:[e(No,{$justifyContent:"space-between",children:[e(wf,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===$f.Left&&t(jn,{color:T,size:O,nowrap:!0,children:s}),e(Sf,{$onBgColor:y,$offBgColor:v,$variant:n,$size:E,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(xf,{$color:C,$size:E,$value:p,$disabled:g}),m&&e(r,{children:[t(f,{size:E,fill:C}),t(b,{size:E,fill:C})]})]}),s&&l===$f.Right&&t(jn,{color:T,size:O,nowrap:!0,children:s})]}),t(kg,{tooltip:c,badge:u})]}),t(Rg,{errorMessage:$,warnMessage:w,helpMessage:S})]})},Ef=n.div`
|
|
1096
|
+
display: flex;
|
|
1097
|
+
flex-direction: ${({$direction:e})=>e===fr.Horizontal?"row":"column"};
|
|
1098
|
+
gap: ${({$direction:e})=>e===fr.Horizontal?16:8}px;
|
|
1099
|
+
`,Tf=({direction:r=fr.Vertical,title:n,size:i,disabled:o,options:a,values:s,setValues:l})=>{const d=i===vf.S?Mn.XS:Mn.S;return e(Ef,{$direction:r,children:[n&&t(jn,{size:d,children:n}),a.map(e=>t(Cf,{...e,labelAlign:$f.Right,value:s[e.id],onChange:t=>{return r=e.id,n=t,void l(e=>{const t={...e};return r?t[r]=n:a.forEach(e=>t[e.id]=n),t});var r,n},disabled:o,size:i},`${n}-toggle-${e.id}`))]})};var Of;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(Of||(Of={}));const Nf=n.div`
|
|
1100
|
+
width: ${({$size:e})=>1.5*e}px;
|
|
1101
|
+
height: ${({$size:e})=>1.5*e}px;
|
|
1102
|
+
display: flex;
|
|
1103
|
+
align-items: center;
|
|
1104
|
+
justify-content: center;
|
|
1105
|
+
border-radius: 100%;
|
|
1106
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1107
|
+
&:hover {
|
|
1108
|
+
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1109
|
+
}
|
|
1110
|
+
`,Af=({"data-id":e,icon:r,size:n=Of.S,onClick:i,disabled:o})=>t(Nf,{"data-id":e,$size:n,$disabled:o,onClick:e=>{i&&!o&&(e.stopPropagation(),i(e))},children:t(r,{size:n})}),If=n.div`
|
|
1111
|
+
display: flex;
|
|
1112
|
+
align-items: center;
|
|
1113
|
+
justify-content: space-between;
|
|
1114
|
+
width: 100%;
|
|
1115
|
+
overflow: hidden;
|
|
1116
|
+
`,kf=n.div`
|
|
1117
|
+
display: flex;
|
|
1118
|
+
align-items: center;
|
|
1119
|
+
gap: 16px;
|
|
1120
|
+
padding: 6px 0;
|
|
1121
|
+
min-width: 0;
|
|
1122
|
+
flex: 1;
|
|
1123
|
+
overflow: hidden;
|
|
1124
|
+
`,Rf=n.div`
|
|
1125
|
+
display: flex;
|
|
1126
|
+
align-items: center;
|
|
1127
|
+
justify-content: center;
|
|
1128
|
+
flex: 0 0 36px;
|
|
1129
|
+
width: 36px;
|
|
1130
|
+
height: 36px;
|
|
1131
|
+
border-radius: 8px;
|
|
1132
|
+
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1133
|
+
`,Df=n.img`
|
|
1134
|
+
width: 24px;
|
|
1135
|
+
height: 24px;
|
|
1136
|
+
`,_f=n.div`
|
|
1137
|
+
display: flex;
|
|
1138
|
+
align-items: center;
|
|
1139
|
+
gap: 16px;
|
|
1140
|
+
flex-shrink: 0;
|
|
1141
|
+
`,Lf=({icon:r,iconSrc:n,title:i,titleBadges:o,subTitle:a,subTitleTags:s,toggleProps:l,actions:d,onClose:c,onCloseDisabled:u})=>e(If,{children:[e(kf,{children:[r?t(Rf,{children:t(r,{size:24})}):n?t(Rf,{children:t(Df,{src:n,alt:i||"icon"})}):null,(i||o?.length||a||s?.length)&&e(Ao,{$gap:6,children:[(i||o?.length)&&e(No,{$gap:16,children:[i&&t(jn,{size:Mn.S,weight:500,children:i}),o?.length&&t(No,{$gap:4,children:o?.map((e,r)=>t(Zh,{...e},`${e.label}-${r}`))})]}),(a||s?.length)&&e(No,{$gap:16,children:[a&&t(jn,{size:Mn.XXS,children:a}),s?.length&&t(No,{$gap:4,children:s?.map((e,r)=>t(qh,{...e},`${e.label}-${r}`))})]})]})]}),e(_f,{children:[l&&t(Cf,{...l}),d?.length?t(Vg,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Ot},items:d,selectedIds:d?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>d?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&t(Af,{"data-id":"drawer-close",icon:xt,size:Of.M,onClick:c,disabled:u})]})]}),Pf=n.div`
|
|
1142
|
+
position: relative;
|
|
1143
|
+
&.animated {
|
|
1144
|
+
overflow: hidden;
|
|
1145
|
+
padding-bottom: 1px;
|
|
1146
|
+
border-radius: 8px;
|
|
1147
|
+
animation: ${({$isLeaving:e})=>e?ug.out.bottom:ug.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
1148
|
+
}
|
|
1149
|
+
`,Uf=n.div`
|
|
1150
|
+
position: absolute;
|
|
1151
|
+
bottom: -1px;
|
|
1152
|
+
left: 0;
|
|
1153
|
+
z-index: -1;
|
|
1154
|
+
width: 100%;
|
|
1155
|
+
height: 100%;
|
|
1156
|
+
border-radius: 8px;
|
|
1157
|
+
background-color: ${({theme:e,$status:t})=>io(e,t,t===Nr.Default?"300":t===Nr.Info?"400":"500")};
|
|
1158
|
+
animation: ${pg.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
1159
|
+
`,Mf=n.div`
|
|
1160
|
+
display: flex;
|
|
1161
|
+
align-items: center;
|
|
1162
|
+
gap: 10px;
|
|
1163
|
+
${({$fullWidth:e})=>e&&i`
|
|
1164
|
+
width: 100%;
|
|
1165
|
+
`}
|
|
1166
|
+
padding: 8px 12px 8px 8px;
|
|
1167
|
+
border-radius: 8px;
|
|
1168
|
+
background-color: ${({theme:e,$status:t})=>io(e,t,[Nr.Info,Nr.Warning].includes(t)?"1000":"900")};
|
|
1169
|
+
`,Ff=n.div`
|
|
1170
|
+
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1171
|
+
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1172
|
+
display: flex;
|
|
1173
|
+
align-items: center;
|
|
1174
|
+
justify-content: center;
|
|
1175
|
+
border-radius: 6px;
|
|
1176
|
+
background-color: ${({theme:e,$status:t})=>io(e,t,[Nr.Info].includes(t)?"900":"800")};
|
|
1177
|
+
`,zf=n.div`
|
|
1178
|
+
margin-left: auto;
|
|
1179
|
+
display: flex;
|
|
1180
|
+
align-items: center;
|
|
1181
|
+
gap: 4px;
|
|
1182
|
+
`,Bf=n.div`
|
|
1183
|
+
margin-right: 8px;
|
|
1184
|
+
cursor: pointer;
|
|
1185
|
+
&:hover {
|
|
1186
|
+
transform: scale(1.2);
|
|
1187
|
+
}
|
|
1188
|
+
`,Hf=({status:r,message:n,action:i,fullWidth:a,maxWidth:s,smallIcon:l,onClose:d,duration:c=5e3,zIndex:u})=>{const p=o(),h=Bo(r,p),g=io(p,r,r===Nr.Default?"300":r===Nr.Info?"400":"500"),[m,f]=Ht(!1),b=Gt(null),y=Gt(null),v=c/10,$=c-v,w=e=>{d&&(b.current&&clearTimeout(b.current),f(!0),setTimeout(()=>d({asSeen:e?.asSeen}),v))};return jt(()=>{if(d)return b.current=setTimeout(()=>w({asSeen:!1}),$),()=>{b.current&&clearTimeout(b.current)}},[c]),e(Pf,{className:d?"animated":"",$duration:c,$isLeaving:m,onMouseEnter:()=>{d&&(b.current&&clearTimeout(b.current),y.current&&(y.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(d&&y.current){const e=y.current.offsetWidth/y.current.parentElement.offsetWidth*$;b.current=setTimeout(()=>w({asSeen:!1}),e),y.current.style.animationPlayState="running"}},style:{zIndex:u,maxWidth:s},children:[e(Mf,{$status:r,$fullWidth:a,children:[t("div",{children:t(Ff,{$status:r,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(jn,{color:g,size:Mn.XXXS,weight:400,children:n}),(i||d)&&e(zf,{children:[i&&t(Bf,{"data-id":i["data-id"],onClick:i.onClick,children:t(jn,{color:g,size:Mn.XXS,weight:500,underline:!0,nowrap:!0,children:i.label})}),d&&t(Af,{"data-id":"note-close",icon:xt,size:Of.XS,onClick:()=>w({asSeen:!0})})]})]}),d&&t(Uf,{ref:y,$status:r,$duration:c})]})},jf=n.div`
|
|
1189
|
+
display: flex;
|
|
1190
|
+
align-items: center;
|
|
1191
|
+
gap: 8px;
|
|
1192
|
+
padding: 4px 12px;
|
|
1193
|
+
`,Xf=n.div`
|
|
1194
|
+
flex: 1;
|
|
1195
|
+
`,Wf=n.div`
|
|
1196
|
+
min-width: 150px;
|
|
1197
|
+
width: fit-content;
|
|
1198
|
+
`,Gf=({note:r,actions:n,children:i})=>i?t(jf,{children:i}):e(jf,{children:[r&&t(Hf,{...r}),t(Xf,{}),n?.map((e,r)=>t(Wf,{children:t(Eh,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${r}`))]}),Vf=n.div`
|
|
1199
|
+
position: fixed;
|
|
1200
|
+
top: 0;
|
|
1201
|
+
bottom: 0;
|
|
1202
|
+
${({$position:e})=>e}: 0;
|
|
1203
|
+
z-index: ${({theme:e})=>e.v2.zIndex.drawer};
|
|
1204
|
+
|
|
1205
|
+
display: flex;
|
|
1206
|
+
flex-direction: column;
|
|
1207
|
+
gap: 12px;
|
|
1208
|
+
|
|
1209
|
+
width: ${({$width:e})=>e};
|
|
1210
|
+
min-width: ${({$minWidth:e})=>e||"unset"};
|
|
1211
|
+
padding: 12px;
|
|
1212
|
+
border-radius: ${({$position:e})=>"left"===e?"0 20px 20px 0":"20px 0 0 20px"};
|
|
1213
|
+
background: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1214
|
+
box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
|
|
1215
|
+
overflow: hidden;
|
|
1216
|
+
|
|
1217
|
+
${({$disableAnimation:e,$position:t})=>!e&&i`
|
|
1218
|
+
animation-name: ${ug.in[t]};
|
|
1219
|
+
`}
|
|
1220
|
+
`,Kf=n.div`
|
|
1221
|
+
display: flex;
|
|
1222
|
+
flex-direction: column;
|
|
1223
|
+
gap: 12px;
|
|
1224
|
+
|
|
1225
|
+
height: calc(100% - ${56}px);
|
|
1226
|
+
overflow-y: auto;
|
|
1227
|
+
`,Yf=({isOpen:n,hideOverlay:i=!1,disableAnimation:o=!1,position:a="right",width:s="600px",minWidth:l,header:d,footer:c,children:u})=>(dh(n),n?Qt(e(r,{children:[!i&&t(Ro,{onClick:d?.onCloseDisabled?void 0:d?.onClose}),e(Vf,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:o,children:[d&&t(Lf,{...d}),t(Kf,{children:u}),c&&t(Gf,{...c})]})]}),document.body):null),Jf=({options:e,values:r,setValues:n,withMultiSelect:i,withSearch:o,...a})=>{const s=Wt(()=>e.filter(e=>r.includes(e.id)),[e,r]),l=Wt(()=>s.map(e=>e.label).join(", "),[s]);return t(Vg,{withMultiSelect:i,withSearch:o,fullWidth:!0,alignX:Ph.Left,items:e,selectedIds:r,setSelectedIds:n,children:({ChevronIcon:e,handleClick:r})=>t(Tm,{placeholder:"Select options...",width:"100%",...a,rightIcon:e,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:r,readOnly:!0,tabIndex:-1})})},qf=({error:r})=>{const n=o(),i={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:n.text.error,fontFamily:n.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:n.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:n.text.secondary,fontSize:"14px"}};return e("div",{style:i.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:i.errorMessage,children:r?.message||"Unknown Error"}),e("details",{style:i.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:i.errorStack,children:r?.stack||"Unknown Stack"})]}),t("p",{style:i.infoText,children:"Try refreshing the page or contact support"}),t(Eh,{variant:Sh.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},Qf=({children:e})=>t(nr,{FallbackComponent:({error:e,...r})=>t(lg,{children:t(qf,{...r,error:e})}),children:e}),Zf=n.header`
|
|
1228
|
+
position: relative;
|
|
1229
|
+
width: 100%;
|
|
1230
|
+
padding: 12px 18px;
|
|
1231
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1232
|
+
display: flex;
|
|
1233
|
+
align-items: center;
|
|
1234
|
+
justify-content: space-between;
|
|
1235
|
+
`,eb=n(No)`
|
|
1236
|
+
position: absolute;
|
|
1237
|
+
left: 50%;
|
|
1238
|
+
transform: translateX(-50%);
|
|
1239
|
+
gap: 16px;
|
|
1240
|
+
`,tb=({left:r=[],center:n=[],right:i=[]})=>e(Zf,{children:[t(No,{$gap:16,children:r}),t(eb,{children:n}),t(No,{$gap:16,children:i})]}),rb=n.div`
|
|
1241
|
+
display: flex;
|
|
1242
|
+
align-items: center;
|
|
1243
|
+
gap: 4px;
|
|
1244
|
+
width: fit-content;
|
|
1245
|
+
padding: 4px;
|
|
1246
|
+
border-radius: 8px;
|
|
1247
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
1248
|
+
box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
|
|
1249
|
+
|
|
1250
|
+
position: absolute;
|
|
1251
|
+
right: ${({$right:e,$left:t})=>e||(t?"unset":"12px")};
|
|
1252
|
+
left: ${({$left:e})=>e||"unset"};
|
|
1253
|
+
top: 50%;
|
|
1254
|
+
transform: translateY(-50%);
|
|
1255
|
+
`,nb=({isOpen:e,actions:r,positionRight:n,positionLeft:i})=>e?t(rb,{$right:n,$left:i,children:r.map(e=>{if(!e)return null;const{tooltip:r,...n}=e;return t(wh,{text:r||"",children:t(Eh,{...n,variant:n.variant||Sh.Secondary,size:xh.S})},n.id)})}):null,ib=n.div`
|
|
1256
|
+
display: flex;
|
|
1257
|
+
align-items: center;
|
|
1258
|
+
justify-content: center;
|
|
1259
|
+
width: ${({$size:e,$padding:t})=>e+t}px;
|
|
1260
|
+
height: ${({$size:e,$padding:t})=>e+t}px;
|
|
1261
|
+
aspect-ratio: 1 / 1;
|
|
1262
|
+
border-radius: 8px;
|
|
1263
|
+
background-color: ${({theme:e,$noBackground:t,$status:r})=>t?"transparent":r?io(e,r,r===Nr.Warning?"1000":"900"):e.v2.colors.silver[800]};
|
|
1264
|
+
`,ob=({icons:r,icon:n,iconSrc:i,status:a,size:s=28,padding:l=4})=>{const d=o(),c=s/2.7,u=s/1.3,p=qi(c,d.v2.text.size);if(r&&r.length>1){const n=r.slice(0,3),i=r.length-n.length,o=n.slice(0,2),d=n.slice(2),u=d.length>0,h=Math.round(s/16);return t("div",{style:{width:"fit-content"},children:t(ib,{$size:s,$padding:l,$status:a,children:e(Ao,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(No,{$gap:h,$alignItems:"center",$justifyContent:"center",children:o.map((e,r)=>t(e,{size:c},`top-${r}`))}),u&&e(No,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[d.map((e,r)=>t(e,{size:c},`bottom-${r}`)),i>0&&t(jn,{size:p,weight:500,children:`+${i}`})]})]})})})}const h=r?.[0]||n;return t("div",{style:{width:"fit-content"},children:t(ib,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:i,alt:"",width:u,height:u})})})},ab=30,sb=n.div`
|
|
1265
|
+
display: flex;
|
|
1266
|
+
align-items: ${({$withHealthBadge:e})=>e?"center":"flex-start"};
|
|
1267
|
+
gap: 8px;
|
|
1268
|
+
min-height: ${30}px;
|
|
1269
|
+
padding: 8px;
|
|
1270
|
+
box-sizing: border-box;
|
|
1271
|
+
border-radius: 4px;
|
|
1272
|
+
&:hover {
|
|
1273
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1274
|
+
}
|
|
1275
|
+
`,lb=n(jn)`
|
|
1276
|
+
flex: 0 0 ${({$withHealthBadge:e})=>e?"auto":"30%"};
|
|
1277
|
+
`,db=n(jn)`
|
|
1278
|
+
flex: 1 1 auto;
|
|
1279
|
+
min-width: 0;
|
|
1280
|
+
`,cb=n(No)`
|
|
1281
|
+
flex: 1 1 auto;
|
|
1282
|
+
justify-content: flex-end;
|
|
1283
|
+
min-width: 0;
|
|
1284
|
+
`,ub=({label:r,value:n,isStandardLibrary:i,healthy:o,message:a})=>{const s="boolean"==typeof o;return e(sb,{$withHealthBadge:s,children:[t(lb,{size:Mn.XXS,color:Fn.Secondary,$withHealthBadge:s,children:r}),n?t(db,{size:Mn.XXS,color:Fn.Primary,align:"right",children:n}):null,(i||s)&&e(cb,{children:[i?t(Zh,{status:Nr.Info,label:Jn.STANDARD,textSize:Mn.XXXS,invertColors:!0}):null,s?e(No,{$gap:4,children:[a?t(db,{size:Mn.XXXS,color:Fn.Error,align:"right",children:a}):null,t(Zh,{status:o?Nr.Success:Nr.Error,label:o?Jn.HEALTHY:Jn.NOT_HEALTHY,leftIcon:ee,textSize:Mn.XXXS,invertColors:!0,tooltip:a??void 0})]}):null]})]})},pb=n.div`
|
|
1285
|
+
width: 100%;
|
|
1286
|
+
border-radius: 8px;
|
|
1287
|
+
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1288
|
+
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
1289
|
+
`,hb=({values:r,setValues:n,name:i,label:a,tooltip:s,badge:l,required:d,errorMessage:c,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,plain:m})=>{const f=o(),b=r.length<=1,y=g,v=g||b&&y,$=r.length?r:[""];return t(pb,{$plain:m,children:e(Ao,{"data-id":i,$gap:6,children:[t(kg,{label:a,tooltip:s,required:d,badge:l}),t(Ao,{$gap:8,children:$.map((i,o)=>{const a=o===$.length-1;return e(No,{$gap:8,$alignItems:"center",children:[t(Tm,{width:"100%",autoFocus:ea(i)&&!b&&a,value:i,onChange:e=>((e,t)=>{const i=[...r||[]];i[t]=e,n(i)})(e.target.value,o),disabled:g,placeholder:h,hasError:!!c}),a&&t(Eh,{leftIcon:Rt,variant:Sh.Secondary,size:xh.S,disabled:y,onClick:()=>(()=>{const e=r.length?fi(r):[fi("")];e.push(""),n(e)})()}),t(Eh,{leftIcon:v?Dt:()=>t(Dt,{fill:f.v2.colors.red[500]}),variant:Sh.Secondary,size:xh.S,disabled:v,onClick:()=>(e=>{const t=[...r||[]].filter((t,r)=>r!==e);t.length||t.push(""),n(t)})(o)})]},`input-list-${o}`)})}),t(Rg,{errorMessage:c,warnMessage:u,helpMessage:p})]})})};var gb;(e=>{e.S="small",e.L="large"})(gb||(gb={}));const mb=n.div`
|
|
1290
|
+
width: fit-content;
|
|
1291
|
+
display: flex;
|
|
1292
|
+
align-items: center;
|
|
1293
|
+
gap: 8px;
|
|
1294
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1295
|
+
`,fb=n.div`
|
|
1296
|
+
width: ${({$size:e})=>e===gb.S?"16px":"20px"};
|
|
1297
|
+
height: ${({$size:e})=>e===gb.S?"16px":"20px"};
|
|
1298
|
+
display: flex;
|
|
1299
|
+
align-items: center;
|
|
1300
|
+
justify-content: center;
|
|
1301
|
+
border-radius: 100%;
|
|
1302
|
+
border: 1px solid ${({$borderColor:e})=>e};
|
|
1303
|
+
background-color: ${({$backgroundColor:e})=>e};
|
|
1304
|
+
`,bb=({"data-id":r,label:n,value:i,onChange:a,disabled:s,size:l=gb.L})=>{const d=o(),[c,u]=Ht(!1),p=i,h=l===gb.S?6:8,g=s?d.v2.colors.grey[400]:d.v2.colors.white[500],m=p?"transparent":s?d.v2.colors.grey[700]:c?d.v2.colors.silver[400]:d.v2.colors.silver[600],f=s?d.v2.colors.grey[600]:p?d.v2.colors.purple[500]:d.v2.colors.silver[900];return e(mb,{"data-id":r??"radio"+(n?`-${n}`:""),onClick:e=>{e.stopPropagation(),s||a(!i)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(fb,{$size:l,$borderColor:m,$backgroundColor:f,children:i?t(_t,{size:h,fill:g}):null}),n&&t(jn,{size:l===gb.S?Mn.XXS:Mn.XS,children:n})]})},yb=n.div`
|
|
1305
|
+
display: flex;
|
|
1306
|
+
flex-direction: ${({$flexDirection:e})=>e};
|
|
1307
|
+
gap: ${({$gap:e})=>e}px;
|
|
1308
|
+
`,vb=({label:r,direction:n,disabled:i,size:o,options:a,values:s,setValues:l})=>e(yb,{$flexDirection:n===fr.Horizontal?"row":"column",$gap:n===fr.Horizontal?16:8,children:[r&&t(jn,{children:r}),a.map(e=>t(bb,{...e,value:s[e.id],onChange:t=>{return r=e.id,n=t,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[r]=n,t});var r,n},disabled:i,size:o},`${r}-radio-${e.id}`))]}),$b=({col:r,colIdx:n,row:i,rowIdx:o,rowsLength:a,handleChange:s,errorMessage:l,disabled:d,hideLabel:c,onTestRegex:u})=>{const{keyName:p,componentType:h,inputType:g,label:m,placeholder:f,options:b,renderCondition:y,helpMessage:v,min:$,max:w}=r,S=i[p];if(y&&!y(i))return null;const x=c?void 0:m||void 0,C=f;switch(h){case"radioGroup":{const e=null!=S?String(S):"",r=Object.fromEntries((b||[]).map(t=>[t.id,t.id===e]));return t(vb,{direction:fr.Horizontal,options:(b||[]).map(e=>({id:e.id,label:e.label})),values:r,setValues:e=>{const t="function"==typeof e?e(r):e,n=Object.keys(t).find(e=>t[e])??"";s(p,n,o)},disabled:d},p)}case Tr.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===h,r=Array.isArray(S)?S:null!=S&&""!==S?[String(S)]:[],n=b?.filter(e=>r.includes(e.id)).map(e=>e.id)||[];return t(Jf,{name:p,label:x,placeholder:C,options:b||[],withMultiSelect:e,withSearch:e,values:n,setValues:t=>s(p,e?t:t[0]??"",o),disabled:d,hasError:!!l},p)}default:const i=a>1&&0===o&&0===n&&ea(S),c=t(Tm,{name:p,label:x,placeholder:C,autoFocus:i,type:g,min:$,max:w,value:S??"",onChange:({target:{value:e}})=>s(p,e,o),disabled:d,hasError:!!l,helpMessage:v,width:r.withRegexTester?"100%":void 0});return r.withRegexTester?e(No,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:c}),t(Eh,{variant:Sh.Secondary,size:xh.S,label:"Test",disabled:d||!String(S??"").trim(),onClick:()=>u?.(String(S??""))})]}):c}},wb=n.div`
|
|
1309
|
+
width: 100%;
|
|
1310
|
+
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1311
|
+
border-radius: 8px;
|
|
1312
|
+
padding: 8px;
|
|
1313
|
+
display: flex;
|
|
1314
|
+
flex-direction: column;
|
|
1315
|
+
gap: 8px;
|
|
1316
|
+
`,Sb=n.div`
|
|
1317
|
+
flex: 1;
|
|
1318
|
+
min-width: 0;
|
|
1319
|
+
`,xb=n.div`
|
|
1320
|
+
padding-top: 24px;
|
|
1321
|
+
`,Cb=({columns:r,values:n,setValues:i,name:a,label:s,tooltip:l,required:d,disabled:c,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=o(),m=r.find(e=>"segment"===e.componentType),f=m?.keyName,b=m?.options??[],y=e=>{const t={};return r.forEach(({keyName:e,defaultValue:r})=>t[e]=r??""),f&&(t[f]=e),t},v=m?.defaultValue||b[0]?.id||"",$=n.length?n:[y(v)],w=(f?$[0]?.[f]:"")||v,S=(e,t,r)=>{i($.map((n,i)=>i===e?{...n,[t]:r}:n))},x=()=>i([...$,y(w)]),C=b.find(e=>e.id===w);return e(Ao,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(kg,{label:s,tooltip:l,required:d}),m&&t(xg,{"data-id":`${a}-mode`,size:bg.S,fullWidth:!0,options:b.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:w,setSelected:e=>!c&&(e=>i([y(e)]))(String(e))}),e(Ao,{$gap:8,$width:"100%",children:[$.map((n,o)=>{const s=o===$.length-1,l=f?{...n,[f]:w}:n,d=r.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(l))),m=d.filter(e=>"radioGroup"===e.componentType),b=d.filter(e=>"radioGroup"!==e.componentType),v=d.find(e=>e.withRegexTester),E=((e,t)=>{const r=t||e.length||1,n=[];let i=[];const o=()=>{i.length&&(n.push(i),i=[])};return e.forEach(e=>{if(e.fullRow)return o(),void n.push([e]);i.push(e),i.length>=r&&o()}),o(),n})(b,h),T=C?.rowTitle?`${C.rowTitle} ${o+1}`:void 0;return e(wb,{"data-id":`${a}-card-${o}`,children:[e(No,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(Ao,{$gap:10,children:[T&&t(kg,{label:T}),m.map(e=>t(No,{$gap:24,children:(e.options??[]).map(r=>t(bb,{size:gb.L,label:r.label,value:String(n[e.keyName]??"")===String(r.id),disabled:c,onChange:t=>t&&S(o,e.keyName,r.id)},`${a}-card-${o}-${e.keyName}-${r.id}`))},`${a}-card-${o}-${e.keyName}`))]}),e(No,{$gap:4,$alignItems:"center",children:[v&&t(Eh,{"data-id":`${a}-card-${o}-test-regex`,label:"Test Regex",variant:Sh.Secondary,size:xh.S,disabled:c||!String(n[v.keyName]??"").trim(),onClick:()=>p?.(String(n[v.keyName]??""))}),t(Eh,{"data-id":`${a}-card-${o}-delete`,leftIcon:c?Dt:()=>t(Dt,{fill:g.v2.colors.red[500]}),variant:Sh.Secondary,size:xh.S,disabled:c,onClick:()=>(e=>{const t=$.filter((t,r)=>r!==e);i(t.length?t:[y(w)])})(o)}),s&&t(Eh,{"data-id":`${a}-card-${o}-add`,leftIcon:Rt,variant:Sh.Secondary,size:xh.S,disabled:c,onClick:x})]})]}),E.map((r,i)=>t(No,{$gap:8,$alignItems:"flex-start",$width:"100%",children:r.map((r,i)=>{const s=((e,t)=>{let{label:r,placeholder:n,helpMessage:i}=e;if(e.copyByColumn){const o=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];o&&(r=o.label??r,n=o.placeholder??n,i=o.helpMessage??i)}return{label:r,placeholder:n,helpMessage:i}})(r,n);return e(Bt,{children:["arrow"===r.separator&&i>0&&t(xb,{children:t(Lt,{size:24,fill:g.v2.colors.silver[200]})}),t(Sb,{children:t(Tm,{name:`${a}-card-${o}-${r.keyName}`,label:s.label,placeholder:s.placeholder,helpMessage:s.helpMessage,type:r.inputType,min:r.min,max:r.max,width:"100%",value:n[r.keyName]??"",disabled:c,hasError:!!u,onChange:e=>S(o,r.keyName,e.target.value)})})]},`${a}-card-${o}-${r.keyName}`)})},`${a}-card-${o}-row-${i}`))]},`${a}-card-${o}`)}),t(Rg,{errorMessage:u})]})]})},Eb=n.div`
|
|
1322
|
+
width: 100%;
|
|
1323
|
+
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1324
|
+
border-radius: 8px;
|
|
1325
|
+
padding: 4px 8px;
|
|
1326
|
+
`,Tb=n.table`
|
|
1327
|
+
width: 100%;
|
|
1328
|
+
border-collapse: separate;
|
|
1329
|
+
border-spacing: 0 8px;
|
|
1330
|
+
`,Ob=n.td`
|
|
1331
|
+
padding: 0 8px 0 0;
|
|
1332
|
+
vertical-align: top;
|
|
1333
|
+
`,Nb=n.td`
|
|
1334
|
+
width: 72px;
|
|
1335
|
+
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1336
|
+
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
1337
|
+
`,Ab=({columns:r,values:n,setValues:i,name:a,label:s,tooltip:l,badge:d,required:c,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m,onTestRegex:f})=>{const b=o(),y=Wt(()=>{const e={};return r.forEach(({keyName:t,defaultValue:r})=>e[t]=r??""),e},[r]),v=(e,t,r)=>{const o=n.length?fi(n):[fi(y)];o[r][e]=t,i(o)},$=n.length?n:[y];return t(Eb,{children:e(Ao,{"data-id":a,$gap:0,children:[t(kg,{label:s,tooltip:l,required:c,badge:d}),t(Tb,{children:t("tbody",{children:$.map((o,a)=>{const s=a===$.length-1,l=((e,t)=>{const r=t||e.length||1,n=[];let i=[];const o=()=>{i.length&&(n.push(i),i=[])};return e.forEach(e=>{if(e.fullRow)return o(),void n.push([e]);i.push(e),i.length>=r&&o()}),o(),n})(r.filter(e=>!e.renderCondition||e.renderCondition(o)),m),d=l.map(e=>e.some(e=>!!e.label)),c=l.reduce((e,t)=>Math.max(e,t.length),1),h=1===l[0]?.length&&!!l[0][0]?.fullRow;return e(Bt,{children:[l.length>1&&a>0?t("tr",{children:t(Ob,{colSpan:c+1})}):null,l.map((l,g)=>{const m=d[g],w=m?22:0;return e("tr",{children:[l.map((r,n)=>{if(r.renderCondition&&!r.renderCondition(o))return null;const i=n===l.length-1,s=0===g&&i?c-l.length+1:1;return t(Ob,{colSpan:s>1?s:void 0,children:e(Ao,{$gap:6,children:[m&&(r.label?t(kg,{label:r.label,tooltip:r.tooltip}):t(kg,{label:"\\u00A0"})),t($b,{col:r,colIdx:n,row:o,rowIdx:a,rowsLength:$.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:m,onTestRegex:f})]})},`input-table-row-${a}-col-${g}-${n}`)}),0===g&&t(Nb,{$topOffset:w,$center:h,children:e(No,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(Eh,{leftIcon:Rt,variant:Sh.Secondary,size:xh.S,disabled:u,onClick:()=>(()=>{const e=n.length?fi(n):[fi(y)],t=fi(y),o=e[e.length-1];r.forEach(e=>{"dropdown"!==e.componentType&&"multi-dropdown"!==e.componentType||null!=t[e.keyName]&&""!==t[e.keyName]||null!=o?.[e.keyName]&&""!==o[e.keyName]&&(t[e.keyName]=fi(o[e.keyName]))}),e.push(t),i(e)})()}),t(Eh,{leftIcon:u?Dt:()=>t(Dt,{fill:b.v2.colors.red[500]}),variant:Sh.Secondary,size:xh.S,disabled:u,onClick:()=>(e=>{const t=n.filter((t,r)=>r!==e);t.length||t.push(fi(y)),i(t)})(a)})]})})]},`input-table-matrix-${a}-${g}`)})]},`input-table-row-${a}`)})})}),t(Rg,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},Ib=n.div`
|
|
1338
|
+
display: flex;
|
|
1339
|
+
align-items: center;
|
|
1340
|
+
justify-content: space-between;
|
|
1341
|
+
gap: 32px;
|
|
1342
|
+
|
|
1343
|
+
padding: 18px 16px;
|
|
1344
|
+
border-radius: 18px;
|
|
1345
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]+dg["095"]};
|
|
1346
|
+
box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
|
|
1347
|
+
|
|
1348
|
+
position: fixed;
|
|
1349
|
+
bottom: 0;
|
|
1350
|
+
left: 50%;
|
|
1351
|
+
z-index: ${({theme:e})=>e.v2.zIndex.island};
|
|
1352
|
+
animation-name: ${ug.in.center};
|
|
1353
|
+
`,kb=({isOpen:r,onClose:n,richTitle:i,actions:o})=>r?e(Ib,{children:[t(Zg,{...i}),t(Yg,{onAnyClick:n,actions:o})]}):null,Rb=n.div`
|
|
1354
|
+
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
1355
|
+
top: 50%;
|
|
1356
|
+
left: 50%;
|
|
1357
|
+
transform: translate(-50%, -50%);
|
|
1358
|
+
// Match Overlay: page-scoped modals stay below the sidebar; full-screen modals
|
|
1359
|
+
// portal above it. See theme.v2.zIndex for the full stacking scale.
|
|
1360
|
+
z-index: ${({theme:e,$relativeToParent:t})=>t?e.v2.zIndex.island:e.v2.zIndex.modal};
|
|
1361
|
+
width: fit-content;
|
|
1362
|
+
border-radius: 20px;
|
|
1363
|
+
background: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1364
|
+
box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
|
|
1365
|
+
overflow: hidden;
|
|
1366
|
+
|
|
1367
|
+
/* Promote to its own composited layer and isolate paint/layout so descendant
|
|
1368
|
+
re-renders during the slide animation can't trigger reflows of the rest of
|
|
1369
|
+
the page. Without this, the global \`* { transition: all 300ms }\` rule plus
|
|
1370
|
+
a heavy modal body (forms, etc.) make the close visibly stutter. */
|
|
1371
|
+
will-change: transform;
|
|
1372
|
+
contain: layout paint;
|
|
1373
|
+
|
|
1374
|
+
animation-name: ${({$closing:e})=>e?ug.out.center:ug.in.center};
|
|
1375
|
+
/* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
|
|
1376
|
+
the global 300ms default which pairs with the fade-in for a soft entrance. */
|
|
1377
|
+
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1378
|
+
animation-timing-function: ${({$closing:e})=>e?"cubic-bezier(0.4, 0, 1, 1)":"cubic-bezier(0, 0, 0.2, 1)"};
|
|
1379
|
+
|
|
1380
|
+
/* Block hover/click work on form children mid-close so their transitions
|
|
1381
|
+
don't compete with the slide-out. */
|
|
1382
|
+
${({$closing:e})=>e&&"pointer-events: none;"}
|
|
1383
|
+
`,Db=n(Ro)`
|
|
1384
|
+
will-change: opacity;
|
|
1385
|
+
animation-name: ${({$closing:e})=>e?mg.out:mg.in};
|
|
1386
|
+
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1387
|
+
|
|
1388
|
+
/* The blurred backdrop is the most expensive thing on screen during the close
|
|
1389
|
+
— animating opacity on a backdrop-filtered element forces a full GPU
|
|
1390
|
+
recomposite per frame. Drop the blur while closing; visually identical
|
|
1391
|
+
because the overlay is fading to 0. */
|
|
1392
|
+
${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
|
|
1393
|
+
`,_b=n.div`
|
|
1394
|
+
position: relative;
|
|
1395
|
+
`,Lb=n.div`
|
|
1396
|
+
position: absolute;
|
|
1397
|
+
top: 16px;
|
|
1398
|
+
left: 16px;
|
|
1399
|
+
`,Pb=({isOpen:n,hideOverlay:i=!1,relativeToParent:o=!1,onBack:a,onClose:s,onCloseEnd:l,children:d})=>{const[c,u]=Ht(n),[p,h]=Ht(!1);if(jt(()=>{n?(u(!0),h(!1)):c&&h(!0)},[n]),dh(c),!c)return null;const g=e(r,{children:[!i&&t(Db,{$relativeToParent:o,$closing:p,onClick:p?void 0:s}),t(Rb,{"data-id":"modal",$relativeToParent:o,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(_b,{children:[a&&t(Lb,{children:t(Af,{icon:e=>t(It,{rotate:-90,...e}),size:Of.L,onClick:a})}),d]})})]});return o?g:Qt(g,document.body)},Ub=n.div`
|
|
1400
|
+
position: relative;
|
|
1401
|
+
width: ${64}px;
|
|
1402
|
+
height: ${({$height:e})=>e};
|
|
1403
|
+
flex-shrink: 0;
|
|
1404
|
+
`,Mb=n.aside`
|
|
1405
|
+
position: absolute;
|
|
1406
|
+
top: 0;
|
|
1407
|
+
left: 0;
|
|
1408
|
+
bottom: 0;
|
|
1409
|
+
display: flex;
|
|
1410
|
+
flex-direction: column;
|
|
1411
|
+
gap: 8px;
|
|
1412
|
+
width: ${({$expanded:e})=>e?"220px":"64px"};
|
|
1413
|
+
padding: 16px ${12}px;
|
|
1414
|
+
box-sizing: border-box;
|
|
1415
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1416
|
+
overflow-x: hidden;
|
|
1417
|
+
overflow-y: auto;
|
|
1418
|
+
// Above page-scoped overlays (upgrade-required) so expanded labels stay visible;
|
|
1419
|
+
// below full-screen modals/drawers that portal to document.body.
|
|
1420
|
+
z-index: ${({theme:e})=>e.v2.zIndex.sidebar};
|
|
1421
|
+
transition:
|
|
1422
|
+
width 200ms ease,
|
|
1423
|
+
padding 200ms ease;
|
|
1424
|
+
`,Fb=n.button`
|
|
1425
|
+
display: flex;
|
|
1426
|
+
align-items: center;
|
|
1427
|
+
width: 100%;
|
|
1428
|
+
min-width: 0;
|
|
1429
|
+
height: ${40}px;
|
|
1430
|
+
padding: 0;
|
|
1431
|
+
margin: 0;
|
|
1432
|
+
border: none;
|
|
1433
|
+
border-radius: 6px;
|
|
1434
|
+
box-sizing: border-box;
|
|
1435
|
+
cursor: pointer;
|
|
1436
|
+
font: inherit;
|
|
1437
|
+
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[500]:"transparent"};
|
|
1438
|
+
&:hover {
|
|
1439
|
+
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[600]:e.v2.colors.silver[800]};
|
|
1440
|
+
}
|
|
1441
|
+
&:active {
|
|
1442
|
+
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
|
|
1443
|
+
}
|
|
1444
|
+
`,zb=n.div`
|
|
1445
|
+
width: ${40}px;
|
|
1446
|
+
height: ${40}px;
|
|
1447
|
+
display: flex;
|
|
1448
|
+
align-items: center;
|
|
1449
|
+
justify-content: center;
|
|
1450
|
+
flex-shrink: 0;
|
|
1451
|
+
`,Bb=n.div`
|
|
1452
|
+
flex: 1 1 0;
|
|
1453
|
+
min-width: 0;
|
|
1454
|
+
overflow: hidden;
|
|
1455
|
+
padding-right: 12px;
|
|
1456
|
+
pointer-events: none;
|
|
1457
|
+
`,Hb=({height:r,icons:n})=>{const i=o(),[a,s]=Ht(!1);return t(Ub,{$height:r,children:t(Mb,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:n.map(({id:r,label:n,selected:o,icon:s,onClick:l})=>e(Fb,{$selected:o,onClick:l,"aria-label":n,title:a?void 0:n,children:[t(zb,{children:t(s,{size:24,fill:i.v2.colors.white[500]})}),a&&t(Bb,{children:t(jn,{size:Mn.S,weight:500,color:Fn.Primary,nowrap:!0,children:n})})]},r))})})},jb=n.div`
|
|
1458
|
+
display: flex;
|
|
1459
|
+
flex-direction: column;
|
|
1460
|
+
gap: 16px;
|
|
1461
|
+
width: 100%;
|
|
1462
|
+
padding: 16px;
|
|
1463
|
+
border-radius: 16px;
|
|
1464
|
+
border: 2px solid transparent;
|
|
1465
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1466
|
+
transition:
|
|
1467
|
+
background-color 0.15s ease,
|
|
1468
|
+
border-color 0.15s ease;
|
|
1469
|
+
|
|
1470
|
+
${({$selected:e,$disabled:t,theme:r})=>e?i`
|
|
1471
|
+
background-color: ${r.v2.colors.purple[900]};
|
|
1472
|
+
border-color: ${r.v2.colors.purple[500]};
|
|
1473
|
+
`:i`
|
|
1474
|
+
background-color: ${r.v2.colors.silver[800]};
|
|
1475
|
+
${!t&&i`
|
|
1476
|
+
&:hover {
|
|
1477
|
+
background-color: ${r.v2.colors.silver[700]};
|
|
1478
|
+
}
|
|
1479
|
+
`}
|
|
1480
|
+
`}
|
|
1481
|
+
`,Xb=n.div`
|
|
1482
|
+
display: flex;
|
|
1483
|
+
align-items: center;
|
|
1484
|
+
gap: 16px;
|
|
1485
|
+
width: 100%;
|
|
1486
|
+
`,Wb=n.div`
|
|
1487
|
+
display: flex;
|
|
1488
|
+
flex-direction: column;
|
|
1489
|
+
gap: 4px;
|
|
1490
|
+
flex: 1;
|
|
1491
|
+
min-width: 0;
|
|
1492
|
+
`,Gb=n.div`
|
|
1493
|
+
width: 100%;
|
|
1494
|
+
`,Vb=({"data-id":r,title:n,description:i,body:a,footerNote:s,checked:l,onChange:d,disabled:c})=>{const u=o(),p=r??`radio-card-${n}`,h=()=>{c||d(!0)};return e(jb,{"data-id":p,$selected:l,$disabled:c,onClick:h,children:[e(Xb,{children:[t(bb,{"data-id":`${p}-radio`,value:l,onChange:h,size:gb.L,disabled:c}),e(Wb,{children:[t(jn,{size:Mn.S,weight:500,lineHeight:"24px",color:Fn.Primary,children:n}),i&&t(jn,{size:Mn.XXS,weight:400,lineHeight:"normal",color:l?u.v2.colors.purple[200]:Fn.Secondary,children:i})]})]}),a&&t(Gb,{children:a}),s&&t(Gb,{children:s})]})},Kb=n.div`
|
|
1495
|
+
width: 100%;
|
|
1496
|
+
height: 100%;
|
|
1497
|
+
|
|
1498
|
+
* {
|
|
1499
|
+
animation: none !important;
|
|
1500
|
+
transition: none !important;
|
|
1501
|
+
}
|
|
1502
|
+
`,Yb=({width:e="100%",height:r="100%",gap:n=0,elements:i,noAnimation:o=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const d=Gt(null),c=Wt(()=>n?i.map((e,r)=>t("div",{style:{paddingBottom:n},children:e},`scroll-y-item-${r}`)):i,[i,n]),u=Xt(e=>{if(!a||!d.current)return;const t=d.current.findItemIndex(e);a(t)},[a]);jt(()=>{null==s||s<0||!d.current||d.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=t(ir,{ref:d,style:{width:e,height:r},onScroll:a?u:void 0,children:c});return o?t(Kb,{children:p}):p},Jb=[{label:"Last 24 hours",value:24},{label:"Last 7 days",value:168},{label:"Last 30 days",value:720},{label:"Last 60 days",value:1440},{label:"Last 90 days",value:2160},{label:"Last 120 days",value:2880}],qb=Jb[1].value,Qb=Jb[Jb.length-1].value,Zb=e=>({label:e?Jb.find(({value:t})=>t===e)?.label:"Select Timeframe",leftIcon:Pt,variant:Sh.Secondary,size:xh.S}),ey=n.input`
|
|
1503
|
+
width: 100px;
|
|
1504
|
+
padding: 2px 12px;
|
|
1505
|
+
border: 1px solid ${({theme:e})=>e.v2.colors.grey[200]};
|
|
1506
|
+
border-radius: 6px;
|
|
1507
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1508
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1509
|
+
font-size: ${({theme:e})=>e.v2.text.size.xxs}px;
|
|
1510
|
+
color: ${({theme:e})=>e.v2.colors.white[500]};
|
|
1511
|
+
color-scheme: dark;
|
|
1512
|
+
|
|
1513
|
+
&::-webkit-calendar-picker-indicator {
|
|
1514
|
+
cursor: pointer;
|
|
1515
|
+
opacity: 1;
|
|
1516
|
+
/* Chromium UA stylesheet sets visibility:hidden when disabled/readonly. */
|
|
1517
|
+
visibility: visible !important;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
${({$inert:e,theme:t})=>e&&i`
|
|
1521
|
+
pointer-events: none;
|
|
1522
|
+
cursor: default;
|
|
1523
|
+
color: ${t.v2.colors.grey[400]};
|
|
1524
|
+
-webkit-text-fill-color: ${t.v2.colors.grey[400]};
|
|
1525
|
+
|
|
1526
|
+
&::-webkit-calendar-picker-indicator {
|
|
1527
|
+
cursor: default;
|
|
1528
|
+
/* Mute the native (light) icon to match TypographyColor.Disable / grey.400 */
|
|
1529
|
+
opacity: 0.4;
|
|
1530
|
+
}
|
|
1531
|
+
`}
|
|
1532
|
+
`,ty=()=>(new Date).toISOString().split("T")[0],ry=(e,t)=>{const r=new Date(e);return r.setTime(r.getTime()-60*t*60*1e3),r.toISOString().split("T")[0]},ny=({options:r=Jb,maxAllowedValue:n=Qb,defaultValue:i=qb,onApply:o,onClose:a})=>{const[s]=Ht(ty),[l,d]=Ht(i),[c,u]=Ht(()=>ry(s,i)),[p,h]=Ht(void 0),g=Wt(()=>new Date((new Date).setDate((new Date).getDate()-n/24)).toISOString().split("T")[0],[n]),m=Wt(()=>r.map(({label:e,value:r})=>t(Eh,{label:e,variant:Sh.Text,size:xh.S,textAlign:"left",isSelected:r===l,onClick:()=>(e=>{d(e),u(ry(s,e))})(r)},`window-hours-option-${r}`)),[r,l,s]);return e(Ao,{$gap:24,children:[e(Ao,{children:[m,t(bf,{}),e(Ao,{$gap:12,$padding:"0 12px",children:[t(jn,{size:Mn.XXS,color:Fn.Secondary,nowrap:!0,children:"Custom range"}),e(No,{$gap:18,$justifyContent:"space-between",children:[t(jn,{size:Mn.XXS,nowrap:!0,children:"From"}),t(ey,{type:"date",value:s,onChange:()=>{},$inert:!0,"aria-disabled":"true",tabIndex:-1})]}),e(No,{$gap:18,$justifyContent:"space-between",children:[t(jn,{size:Mn.XXS,nowrap:!0,children:"To"}),t(ey,{type:"date",max:s,min:g,value:c,onChange:e=>{return t=e.target.value,u(t),void d(((e,t)=>{const r=new Date(e).getTime(),n=new Date(t).getTime(),i=Math.floor((n-r)/1e3/60/60);return i<0?Math.abs(i):i})(s,t));var t}})]}),p&&t(Rg,{errorMessage:p}),e(jn,{size:Mn.XXXS,color:Fn.Secondary,nowrap:!0,children:["Max ",n/24," days."]})]})]}),t(Eh,{label:"Apply",onClick:()=>{l>n?h(`You can only select up to ${n/24} days.`):(h(void 0),o(l),a?.())}})]})},iy=n.div`
|
|
1533
|
+
display: flex;
|
|
1534
|
+
flex-direction: column;
|
|
1535
|
+
gap: 16px;
|
|
1536
|
+
padding: 8px;
|
|
1537
|
+
${({$maxWidth:e})=>e&&`max-width: ${e};`}
|
|
1538
|
+
${({$maxHeight:e})=>e&&`max-height: ${e};`}
|
|
1539
|
+
width: 100%;
|
|
1540
|
+
height: 100%;
|
|
1541
|
+
`,oy=n.div`
|
|
1542
|
+
display: flex;
|
|
1543
|
+
align-items: center;
|
|
1544
|
+
gap: 16px;
|
|
1545
|
+
`,ay=n.div`
|
|
1546
|
+
width: 50px;
|
|
1547
|
+
height: 50px;
|
|
1548
|
+
border-radius: 8px;
|
|
1549
|
+
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1550
|
+
background-size: 200% 100%;
|
|
1551
|
+
animation: ${gg} 10s infinite linear;
|
|
1552
|
+
`,sy=n(Ao)`
|
|
1553
|
+
flex: 1;
|
|
1554
|
+
gap: 12px;
|
|
1555
|
+
`,ly=n.div`
|
|
1556
|
+
width: ${({$width:e})=>e};
|
|
1557
|
+
height: 16px;
|
|
1558
|
+
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1559
|
+
background-size: 200% 100%;
|
|
1560
|
+
animation: ${gg} 1.5s infinite linear;
|
|
1561
|
+
border-radius: 4px;
|
|
1562
|
+
`,dy=({size:r=5,maxWidth:n,maxHeight:i})=>t(iy,{$maxWidth:n,$maxHeight:i,children:[...Array(r)].map((r,n)=>e(oy,{children:[t(ay,{}),e(sy,{children:[t(ly,{$width:"80%"}),t(ly,{$width:"100%"})]})]},n))}),cy=({currentStep:r,data:n,gap:i=12})=>t(Ao,{$gap:i,children:n.map(n=>{const i=n.step<r,o=n.step===r;return e(No,{$gap:8,children:[i||n.forceDoneBadge?t(Zh,{status:Nr.Success,label:"",leftIcon:$t}):t(Zh,{status:Nr.Default,label:n.step.toString()}),t(jn,{size:o?Mn.M:Mn.XS,weight:o?500:400,opacity:o?1:.7,children:n.label})]},`stepper-item-${n.step}`)})});var uy;(e=>{e.Pretty="pretty",e.Data="data",e.DataSecondary="dataSecondary"})(uy||(uy={}));const py=n.div`
|
|
1563
|
+
${({$maxHeight:e,$fitContent:t,$virtualize:r})=>t&&e&&r?`\n flex: 0 0 auto;\n height: ${e};\n overflow: hidden;\n `:t&&e?`\n flex: 0 0 auto;\n height: fit-content;\n max-height: ${e};\n overflow: auto;\n `:t?"\n flex: 0 0 auto;\n height: fit-content;\n overflow: auto;\n ":e?`\n height: ${e};\n flex: 0 0 auto;\n overflow: hidden;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n overflow: hidden;\n "}
|
|
1564
|
+
width: 100%;
|
|
1565
|
+
display: flex;
|
|
1566
|
+
flex-direction: column;
|
|
1567
|
+
`,hy=n.div`
|
|
1568
|
+
width: 100%;
|
|
1569
|
+
flex: 1;
|
|
1570
|
+
min-height: 0;
|
|
1571
|
+
display: flex;
|
|
1572
|
+
flex-direction: column;
|
|
1573
|
+
`,gy=n.div`
|
|
1574
|
+
flex-shrink: 0;
|
|
1575
|
+
position: relative;
|
|
1576
|
+
z-index: 2;
|
|
1577
|
+
`,my=n.div`
|
|
1578
|
+
flex: 1;
|
|
1579
|
+
min-height: 0;
|
|
1580
|
+
overflow: hidden;
|
|
1581
|
+
`,fy=n.div`
|
|
1582
|
+
position: relative;
|
|
1583
|
+
display: flex;
|
|
1584
|
+
width: 100%;
|
|
1585
|
+
`,by=n.div`
|
|
1586
|
+
display: flex;
|
|
1587
|
+
flex-direction: column;
|
|
1588
|
+
flex-shrink: 0;
|
|
1589
|
+
width: 100%;
|
|
1590
|
+
`,yy=n.div`
|
|
1591
|
+
width: 100%;
|
|
1592
|
+
flex-shrink: 0;
|
|
1593
|
+
${({$maxHeight:e})=>e?`\n max-height: ${e};\n overflow: hidden;\n `:""}
|
|
1594
|
+
`,vy=n.div`
|
|
1595
|
+
position: relative;
|
|
1596
|
+
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1597
|
+
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:r})=>null!=r?`0 0 ${r}px`:e??(t?"0 0 auto":1)};
|
|
1598
|
+
|
|
1599
|
+
/* See the matching rule on Td below for the full explanation. The header
|
|
1600
|
+
* needs the same flex-grow override so its column shares any empty row
|
|
1601
|
+
* width even when the caller wrote 'flex: 0 0 Xpx'. */
|
|
1602
|
+
${({$autoWidth:e,$resolvedWidth:t})=>!e&&null==t&&i`
|
|
1603
|
+
flex-grow: 1;
|
|
1604
|
+
`}
|
|
1605
|
+
|
|
1606
|
+
padding: 18px 24px;
|
|
1607
|
+
border: 1px solid transparent;
|
|
1608
|
+
border-radius: ${({$isFirst:e,$isLast:t})=>e?"4px 0 0 0":t?"0 4px 0 0":"0"};
|
|
1609
|
+
box-sizing: border-box;
|
|
1610
|
+
|
|
1611
|
+
${({$variant:e,$backgroundColor:t})=>{if(t)return i`
|
|
1612
|
+
background-color: ${t};
|
|
1613
|
+
`;switch(e){case uy.Data:return i`
|
|
1614
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1615
|
+
`;case uy.DataSecondary:return i`
|
|
1616
|
+
border-bottom: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1617
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1618
|
+
`;case uy.Pretty:return i`
|
|
1619
|
+
background-color: transparent;
|
|
1620
|
+
`;default:return""}}}
|
|
1621
|
+
`,$y=n.div`
|
|
1622
|
+
position: absolute;
|
|
1623
|
+
top: 50%;
|
|
1624
|
+
right: 0;
|
|
1625
|
+
transform: translateY(-50%);
|
|
1626
|
+
width: 1px;
|
|
1627
|
+
height: 18px;
|
|
1628
|
+
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1629
|
+
`,wy=n.div`
|
|
1630
|
+
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1631
|
+
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:r})=>null!=r?`0 0 ${r}px`:e??(t?"0 0 auto":1)};
|
|
1632
|
+
|
|
1633
|
+
/* Always let text columns grow into empty row space, even when the caller
|
|
1634
|
+
* wrote an explicit flex value with grow=0 (e.g. 'flex: 0 0 160px'). The
|
|
1635
|
+
* 'flex' shorthand above sets all three flex sub-properties from the
|
|
1636
|
+
* caller's value; this longhand 'flex-grow: 1' is declared after it so it
|
|
1637
|
+
* wins and the column still consumes any leftover width.
|
|
1638
|
+
*
|
|
1639
|
+
* Without this, a column pinned with 'flex: 0 0 160px' stays at 160px even
|
|
1640
|
+
* when the row has hundreds of pixels of empty space — and the text inside
|
|
1641
|
+
* gets ellipsised (or in extreme cases clipped without indication) when it
|
|
1642
|
+
* could comfortably fit a few more pixels. Combined with the cell's
|
|
1643
|
+
* 'overflow: hidden', a column that's STILL too narrow after consuming all
|
|
1644
|
+
* available space then truncates cleanly via TruncatableTypography's
|
|
1645
|
+
* ellipsis + tooltip.
|
|
1646
|
+
*
|
|
1647
|
+
* Component (auto-width) columns and JS-measured columns
|
|
1648
|
+
* ('resolvedColumnWidths') keep their exact pixel width — they're already
|
|
1649
|
+
* sized to fit their content and shouldn't steal leftover space from text
|
|
1650
|
+
* columns. The withCheckboxes column passes 'flex' via an inline style,
|
|
1651
|
+
* which takes precedence over class styles, so it stays pinned too. */
|
|
1652
|
+
${({$autoWidth:e,$resolvedWidth:t})=>!e&&null==t&&i`
|
|
1653
|
+
flex-grow: 1;
|
|
1654
|
+
`}
|
|
1655
|
+
|
|
1656
|
+
overflow: ${({$autoWidth:e})=>e?"visible":"hidden"};
|
|
1657
|
+
display: flex;
|
|
1658
|
+
align-items: center;
|
|
1659
|
+
|
|
1660
|
+
padding: 18px 24px;
|
|
1661
|
+
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
1662
|
+
box-sizing: border-box;
|
|
1663
|
+
|
|
1664
|
+
${({$variant:e,$index:t,$selected:r,$highlighted:n,$hovered:o,$isLastRow:a,$isFirstCell:s,$isLastCell:l})=>{switch(e){case uy.Data:return i`
|
|
1665
|
+
border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1666
|
+
border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
|
|
1667
|
+
background-color: ${({theme:e})=>r?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
1668
|
+
`;case uy.DataSecondary:return i`
|
|
1669
|
+
border-bottom: ${({theme:e})=>a?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1670
|
+
border-radius: ${a?s?"0 0 0 4px":l?"0 0 4px 0":"0":"0"};
|
|
1671
|
+
background-color: ${({theme:e})=>r?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:"number"==typeof t&&t%2==0?e.v2.colors.silver[800]:e.v2.colors.silver[900]};
|
|
1672
|
+
`;case uy.Pretty:return i`
|
|
1673
|
+
border: none;
|
|
1674
|
+
border-radius: ${s?"12px 0 0 12px":l?"0 12px 12px 0":"0"};
|
|
1675
|
+
background-color: ${({theme:e})=>r?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1676
|
+
`;default:return""}}}
|
|
1677
|
+
`,Sy=n.div`
|
|
1678
|
+
position: absolute;
|
|
1679
|
+
top: 0;
|
|
1680
|
+
left: 0;
|
|
1681
|
+
visibility: hidden;
|
|
1682
|
+
pointer-events: none;
|
|
1683
|
+
height: 0;
|
|
1684
|
+
overflow: hidden;
|
|
1685
|
+
white-space: nowrap;
|
|
1686
|
+
`,xy=n.div`
|
|
1687
|
+
display: inline-flex;
|
|
1688
|
+
align-items: center;
|
|
1689
|
+
padding: 18px 24px;
|
|
1690
|
+
box-sizing: border-box;
|
|
1691
|
+
white-space: nowrap;
|
|
1692
|
+
`,Cy=n.div`
|
|
1693
|
+
display: inline-flex;
|
|
1694
|
+
align-items: center;
|
|
1695
|
+
gap: 4px;
|
|
1696
|
+
white-space: nowrap;
|
|
1697
|
+
`,Ey=n.div`
|
|
1698
|
+
width: 100%;
|
|
1699
|
+
height: 100%;
|
|
1700
|
+
display: flex;
|
|
1701
|
+
align-items: center;
|
|
1702
|
+
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1703
|
+
gap: 4px;
|
|
1704
|
+
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1705
|
+
`,Ty=({variant:n,columns:i,row:o,rowIdx:a,rowCount:s,autoWidthColumnKeys:l,resolvedColumnWidths:d,getRowActions:c,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:g,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:b})=>{const[y,v]=Ht(!1),{cells:$,onClick:w,isSelected:S=!1,onSelect:x,onDeselect:C,hideCheckbox:E,checkboxDisabled:T,checkboxTooltip:O,expandedContent:N}=o,A=o.id??String(a),I=null!=N,k=I&&m===A,R=null!=g&&o.id===g,D=c(o),_=a===s-1,L=I||!!w,P=()=>{I&&f?.(A),w?.()},U=(e,t)=>({$isLastRow:_&&!k,$isFirstCell:e,$isLastCell:t,$selected:S,$highlighted:R,$withClick:L,onClick:P,$hovered:L&&y,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1)}),M=k&&null!=N?"function"==typeof N?N({maxHeight:b}):N:null,F=e(r,{children:[h&&t(wy,{$variant:n,$index:a,style:{flex:"0 0 68px"},...U(!0,!1),children:!E&&(O?t(wh,{text:O,children:t(Pg,{value:S,disabled:T,onChange:()=>S?C?.():x?.()})}):t(Pg,{value:S,disabled:T,onChange:()=>S?C?.():x?.()}))},"checkbox-column"),i.map(({key:r,withTooltip:o,textAlign:s,flex:c,minWidth:g},m)=>{const f=$.find(e=>e.key===r),b=0===m&&!h,v=m===i.length-1,w=0===m,S=!!D.length&&(!!u&&v||!!p&&b||!u&&!p&&v),x="right"===s?"flex-end":"center"===s?"center":"flex-start",C=f?.component?t(f.component,{}):o?t(jn,{size:Mn.XS,align:s,nowrap:!0,children:f?.rawValue||"-"}):t(em,{size:Mn.XS,align:s,nowrap:!0,fullWidth:!1,children:f?.rawValue||"-"}),E=e(No,{$width:"100%",$gap:I&&w?8:0,$justifyContent:x,children:[I&&w?t(k?Tt:Ut,{}):null,C]});return e(wy,{$variant:n,$index:a,$flex:c,$minWidth:g,$autoWidth:l.has(r),$resolvedWidth:d[r],...U(b,v),children:[o?t(wh,{text:f?.rawValue?.toString()||"",ellipsis:!0,children:E}):E,S?t(nb,{isOpen:y,actions:D,positionRight:u,positionLeft:p}):null]},`row-${a}-cell-${m}`)})]});return I?e(by,{"data-table-row-index":a,children:[t(fy,{children:F}),null!=M&&e(r,{children:[t(yy,{$maxHeight:b,children:M}),!_&&t(bf,{margin:"0"})]})]}):t(fy,{"data-table-row-index":a,children:F})},Oy=({variant:e,columns:n,rows:i,autoWidthColumnKeys:o,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:c,activeRowId:u,scrollToIndex:p,scrollSignal:h,useVirtua:g=!0,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:b})=>{const y=Wt(()=>i.map((r,p)=>t(Ty,{variant:e,columns:n,row:r,rowIdx:p,rowCount:i.length,autoWidthColumnKeys:o,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:c,activeRowId:u,expandedRowId:m,onToggleExpand:f,expandedMaxHeight:b},`row-${p}`)),[i,u,s,l,d,c,n,o,a,m,f,b,e]);return g?t(Yb,{gap:e===uy.Pretty?8:0,elements:y,scrollToIndex:p,scrollSignal:h}):t(r,{children:y})},Ny=({columnKey:e,sortDirection:r,sortByKey:n,onSort:i})=>{const a=o(),s=n===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=r===br.Ascending?0:180;return t(Eh,{variant:Sh.Text,size:xh.S,leftIcon:()=>t(It,{fill:s,rotate:l}),onClick:()=>i(e)})},Ay=({columnKey:e,filters:r,onFilter:n,rowsUnfiltered:i,filterOverride:a})=>{const s=o(),l=r[e]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],d=Wt(()=>a?a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(i.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[i,e,a]);return t(Vg,{items:d,withMultiSelect:!0,selectedIds:r[e]?.map(e=>e.toString())??[],setSelectedIds:t=>n(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Mt,{fill:l,...e})}})},Iy=({variant:r,backgroundColor:n,columns:i,rowsUnfiltered:o,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:d,onSort:c,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>e(fy,{children:[h&&t(vy,{$variant:r,$backgroundColor:n,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(Pg,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),i.map(({key:g,label:m,withTooltip:f,tooltip:b,noSort:y,noFilter:v,filterOverride:$,flex:w,minWidth:S,textAlign:x},C)=>{const E=0===C&&!h,T=C===i.length-1,O=!(!b&&!f),N=O?t(jn,{size:Mn.XS,align:x,nowrap:!0,children:m}):t(em,{size:Mn.XS,align:x,nowrap:!0,fullWidth:!1,children:m});return e(vy,{$variant:r,$backgroundColor:n,$flex:w,$minWidth:S,$isFirst:E,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(Ey,{$textAlign:x,children:[O?t(wh,{text:b||m,children:N}):N,!y&&t(Ny,{columnKey:g,sortDirection:l,sortByKey:d,onSort:c}),!v&&t(Ay,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:o,filterOverride:$})]}),!T&&r===uy.Data&&t($y,{})]},`column-${g}`)})]}),ky=()=>{},Ry={},Dy=[],_y=e=>[],Ly=({variant:r,maxHeight:n,fitContent:i=!1,headerBackgroundColor:o,hideHeader:a=!1,isLoading:s,noDataProps:l,columns:d,rows:c,getRowActions:u,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,filters:m,onFiltersChange:f,activeRowId:b,scrollSignal:y,expandedRowId:v,onExpandedRowIdChange:$})=>{const[w,S]=Ht(br.Ascending),[x,C]=Ht(""),[E,T]=Ht({}),[O,N]=Ht(null),A=m??E,I=void 0!==v,k=I?v:O,R=Xt(e=>{C(e),S(e=>e===br.Ascending?br.Descending:br.Ascending)},[]),D=Xt((e,t)=>{const r={...A,[e]:t};f&&f(r),void 0===m&&T(r)},[A,f,m]),_=Wt(()=>{const e=(e,t)=>{const r=e.cells.find(e=>e.key===t);return r&&(r.rawValue?.toString()||r.component?.({})?.props?.children?.toString())||""};return(x?[...c].sort((t,r)=>{const n=e(t,x),i=e(r,x);return(w===br.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(n,i)}):c).filter(t=>{for(const[r,n]of Object.entries(A)){if(!n.length)continue;const i=d.find(e=>e.key===r)?.filterOverride;if(i){if(!i.filterRow(t,n))return!1}else if(!n.includes(e(t,r)))return!1}return!0})},[c,x,w,A,d]),L=Wt(()=>null==b?-1:_.findIndex(e=>e.id===b),[_,b]),{partiallySelected:P,allSelected:U}=Wt(()=>{const e=_.filter(e=>!e.hideCheckbox&&!e.checkboxDisabled);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[_]),M=Wt(()=>{const e=new Set;for(const t of d)null!=t.flex&&e.add(t.key);const t=new Set;for(const r of c)for(const n of r.cells)n.component&&!e.has(n.key)&&t.add(n.key);return t},[c,d]),F=Gt(null),[z,B]=Ht({}),H=Wt(()=>0===M.size?[]:d.filter(e=>M.has(e.key)).map(r=>{const n=[e(Cy,{children:[t(jn,{size:Mn.XS,align:r.textAlign,children:r.label}),!r.noSort&&t(Ny,{columnKey:r.key,sortDirection:br.Ascending,sortByKey:"",onSort:ky}),!r.noFilter&&t(Ay,{columnKey:r.key,filters:Ry,onFilter:ky,rowsUnfiltered:Dy,filterOverride:r.filterOverride})]},`mw-${r.key}-header`)];return c.forEach((e,i)=>{const o=e.cells.find(e=>e.key===r.key);o&&n.push(o.component?t(o.component,{},`mw-${r.key}-${i}`):t(jn,{size:Mn.XS,children:o.rawValue||"-"},`mw-${r.key}-${i}`))}),{key:r.key,nodes:n}}),[d,c,M]);Vt(()=>{if(!F.current||0===M.size)return void B(e=>0===Object.keys(e).length?e:{});const e={};F.current.querySelectorAll("[data-mw-key]").forEach(t=>{const r=t.dataset.mwKey;if(!r)return;const n=Math.ceil(t.getBoundingClientRect().width);(!e[r]||n>e[r])&&(e[r]=n)}),B(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r])?t:e)},[H,M]);const j=Gt(null),[X,W]=Ht(0),G=_.some(e=>null!=e.expandedContent);Vt(()=>{if(!G)return void W(0);const e=j.current;if(!e)return;const t=()=>{const t=e.clientHeight;W(e=>e===t?e:t)};t();const r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[G,_.length]);const V=Xt(e=>{const t=k===e?null:e;I||N(t),$?.(t)},[k,I,$]),K=G&&X>0?`${X}px`:void 0,Y=i&&null!=n&&_.length>=100,J=!i||Y;return e(py,{$maxHeight:n,$fitContent:i,$virtualize:Y,children:[H.length>0&&t(Sy,{ref:F,"aria-hidden":!0,children:H.flatMap(({key:e,nodes:r})=>r.map((r,n)=>t(xy,{"data-mw-key":e,children:r},`mw-${e}-${n}`)))}),e(hy,{$variant:r,children:[!a&&t(gy,{children:t(Iy,{variant:r,backgroundColor:o,columns:d,rowsUnfiltered:c,autoWidthColumnKeys:M,resolvedColumnWidths:z,sortDirection:w,sortByKey:x,onSort:R,filters:A,onFilter:D,withCheckboxes:g,partiallySelected:P,allSelected:U,onSelectAll:e=>{e?_.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):_.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),_.length?G&&!i?t(my,{ref:j,children:t(Oy,{variant:r,columns:d,rows:_,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||_y,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:!0,expandedRowId:k,onToggleExpand:V,expandedMaxHeight:K})}):t(Oy,{variant:r,columns:d,rows:_,autoWidthColumnKeys:M,resolvedColumnWidths:z,getRowActions:u||_y,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:h,withCheckboxes:g,activeRowId:b,scrollToIndex:L,scrollSignal:y,useVirtua:J,expandedRowId:k,onToggleExpand:V,expandedMaxHeight:K}):t(Io,{$fullHeight:!n,$height:n,$padding:"12px 0",children:s?t(dy,{size:3,maxHeight:n}):t(Ng,{...l})})]})]})},Py=n.div`
|
|
1706
|
+
padding: 6px 12px;
|
|
1707
|
+
|
|
1708
|
+
display: flex;
|
|
1709
|
+
align-self: stretch;
|
|
1710
|
+
align-items: flex-start;
|
|
1711
|
+
gap: 8px;
|
|
1712
|
+
border-radius: 6px;
|
|
1713
|
+
|
|
1714
|
+
border: 1px solid ${({theme:e,$disabled:t,$error:r})=>t?e.v2.colors.grey[600]:r?e.v2.colors.red[500]:e.v2.colors.silver[500]};
|
|
1715
|
+
background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
|
|
1716
|
+
${({$disabled:e,$error:t})=>!e&&!t&&i`
|
|
1717
|
+
&:hover,
|
|
1718
|
+
&:active,
|
|
1719
|
+
&:focus-within {
|
|
1720
|
+
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1721
|
+
}
|
|
1722
|
+
`}
|
|
1723
|
+
`,Uy=n.textarea`
|
|
1724
|
+
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
1725
|
+
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
1726
|
+
flex: 1;
|
|
1727
|
+
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1728
|
+
font-size: 14px;
|
|
1729
|
+
font-weight: 400;
|
|
1730
|
+
resize: none;
|
|
1731
|
+
|
|
1732
|
+
background: transparent;
|
|
1733
|
+
border: none;
|
|
1734
|
+
outline: none;
|
|
1735
|
+
cursor: text;
|
|
1736
|
+
color: ${({theme:e})=>e.v2.colors.white[500]};
|
|
1737
|
+
&::placeholder {
|
|
1738
|
+
color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
&:disabled {
|
|
1742
|
+
cursor: not-allowed;
|
|
1743
|
+
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1744
|
+
&::placeholder {
|
|
1745
|
+
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
`,My=({label:r,required:n,tooltip:i,badge:o,errorMessage:a,warnMessage:s,helpMessage:l,name:d,value:c,onChange:u,disabled:p,maxWidth:h,minHeight:g,...m})=>{const f=Gt(null),b=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return e(Ao,{$gap:6,children:[t(kg,{label:r,tooltip:i,required:n,badge:o}),t(Py,{$disabled:p,$error:!!a,children:t(Uy,{ref:f,"data-id":d,name:d,value:c,onChange:e=>{e.stopPropagation(),b(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:b,onBlur:b,disabled:p,$maxWidth:h,$minHeight:g,...m})}),t(Rg,{errorMessage:a,warnMessage:s,helpMessage:l})]})},Fy=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],zy=n.div`
|
|
1749
|
+
flex: 1;
|
|
1750
|
+
min-width: 0;
|
|
1751
|
+
`,By=n.div`
|
|
1752
|
+
flex: 0 0 auto;
|
|
1753
|
+
min-width: 140px;
|
|
1754
|
+
`,Hy=({name:r,label:n,tooltip:i,badge:o,placeholder:a,required:s,disabled:l,value:d,setValue:c,units:u=Fy,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:b})=>{const y=Wt(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:$}=Wt(()=>((e,t,r)=>{if(null==e||""===e)return{num:"",unit:r};const n=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),i=new RegExp(`^\\s*(\\d+)\\s*(${n.join("|")})\\s*$`,"i"),o=String(e).match(i);if(o)return{num:o[1],unit:o[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:r}:{num:"",unit:r}})(d,u,y),[d,u,y]),w=(e,t)=>{c(""!==e?`${e}${t}`:"")};return e(Ao,{$width:b,$gap:6,children:[t(kg,{label:n,tooltip:i,required:s,badge:o}),e(No,{$gap:8,$alignItems:"center",children:[t(zy,{children:t(Tm,{name:r,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>w(pa(e.target.value),$)})}),t(By,{children:t(Jf,{name:`${r}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[$],setValues:e=>w(v,e[0]||$)})})]}),t(Rg,{errorMessage:h,warnMessage:g,helpMessage:m})]})},jy=n.div`
|
|
1755
|
+
display: flex;
|
|
1756
|
+
flex-direction: column;
|
|
1757
|
+
min-width: 0;
|
|
1758
|
+
width: 100%;
|
|
1759
|
+
flex: 1;
|
|
1760
|
+
`,Xy=n.div`
|
|
1761
|
+
display: flex;
|
|
1762
|
+
flex-wrap: wrap;
|
|
1763
|
+
align-items: center;
|
|
1764
|
+
gap: 10px;
|
|
1765
|
+
width: 100%;
|
|
1766
|
+
padding: 8px;
|
|
1767
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1768
|
+
|
|
1769
|
+
${({$corner:e})=>{switch(e){case"left":return i`
|
|
1770
|
+
border-top-left-radius: 12px;
|
|
1771
|
+
`;case"right":return i`
|
|
1772
|
+
border-top-right-radius: 12px;
|
|
1773
|
+
`;case"both":return i`
|
|
1774
|
+
border-top-left-radius: 12px;
|
|
1775
|
+
border-top-right-radius: 12px;
|
|
1776
|
+
`;default:return i``}}}
|
|
1777
|
+
`,Wy=n.div`
|
|
1778
|
+
display: flex;
|
|
1779
|
+
align-items: center;
|
|
1780
|
+
gap: 4px;
|
|
1781
|
+
min-width: 0;
|
|
1782
|
+
`,Gy=n.div`
|
|
1783
|
+
display: flex;
|
|
1784
|
+
align-items: center;
|
|
1785
|
+
justify-content: center;
|
|
1786
|
+
padding: 4px;
|
|
1787
|
+
border-radius: 4px;
|
|
1788
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
1789
|
+
`,Vy=n.div`
|
|
1790
|
+
display: flex;
|
|
1791
|
+
flex-direction: column;
|
|
1792
|
+
width: 100%;
|
|
1793
|
+
min-width: 0;
|
|
1794
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1795
|
+
border: 0.5px solid ${({theme:e})=>e.v2.colors.silver[600]};
|
|
1796
|
+
border-top: none;
|
|
1797
|
+
|
|
1798
|
+
${({$corner:e,$hasHeader:t})=>{switch(e){case"left":return t?i`
|
|
1799
|
+
border-top-left-radius: 0;
|
|
1800
|
+
border-bottom-left-radius: 8px;
|
|
1801
|
+
`:i`
|
|
1802
|
+
border-bottom-left-radius: 8px;
|
|
1803
|
+
`;case"right":return t?i`
|
|
1804
|
+
border-top-right-radius: 0;
|
|
1805
|
+
border-bottom-right-radius: 8px;
|
|
1806
|
+
`:i`
|
|
1807
|
+
border-bottom-right-radius: 8px;
|
|
1808
|
+
`;case"both":return t?i`
|
|
1809
|
+
border-top-left-radius: 0;
|
|
1810
|
+
border-top-right-radius: 0;
|
|
1811
|
+
border-bottom-left-radius: 8px;
|
|
1812
|
+
border-bottom-right-radius: 8px;
|
|
1813
|
+
`:i`
|
|
1814
|
+
border-bottom-left-radius: 8px;
|
|
1815
|
+
border-bottom-right-radius: 8px;
|
|
1816
|
+
`;default:return i``}}}
|
|
1817
|
+
`,Ky=i`
|
|
1818
|
+
${({theme:e,$variant:t})=>{switch(t){case"timing":return i`
|
|
1819
|
+
background-color: ${e.v2.colors.yellow[1e3]};
|
|
1820
|
+
border-left: 2px solid ${e.v2.colors.yellow[500]};
|
|
1821
|
+
`;case"new":return i`
|
|
1822
|
+
background-color: ${e.v2.colors.red[900]};
|
|
1823
|
+
border-left: 2px solid ${e.v2.colors.red[500]};
|
|
1824
|
+
`;case"placeholder":return i`
|
|
1825
|
+
background-color: ${e.v2.colors.green[900]};
|
|
1826
|
+
border-left: 2px solid ${e.v2.colors.green[500]};
|
|
1827
|
+
`;default:return i`
|
|
1828
|
+
background-color: transparent;
|
|
1829
|
+
border-left: 2px solid transparent;
|
|
1830
|
+
`}}}
|
|
1831
|
+
|
|
1832
|
+
${({$selected:e,$variant:t,theme:r})=>e&&"default"===t&&i`
|
|
1833
|
+
border-left-color: ${r.v2.colors.silver[500]};
|
|
1834
|
+
`}
|
|
1835
|
+
`,Yy=n.button`
|
|
1836
|
+
display: flex;
|
|
1837
|
+
flex-direction: column;
|
|
1838
|
+
align-items: stretch;
|
|
1839
|
+
width: 100%;
|
|
1840
|
+
margin: 0;
|
|
1841
|
+
padding: 0;
|
|
1842
|
+
border: none;
|
|
1843
|
+
/* Inset shadow keeps separators out of layout height so fillers match InfoRows 1:1. */
|
|
1844
|
+
box-shadow: inset 0 -0.5px 0 ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1845
|
+
text-align: left;
|
|
1846
|
+
color: inherit;
|
|
1847
|
+
font: inherit;
|
|
1848
|
+
cursor: ${({$interactive:e})=>e?"pointer":"default"};
|
|
1849
|
+
${Ky}
|
|
1850
|
+
|
|
1851
|
+
&:last-child {
|
|
1852
|
+
box-shadow: none;
|
|
1853
|
+
}
|
|
1854
|
+
`,Jy=n.div`
|
|
1855
|
+
display: flex;
|
|
1856
|
+
align-items: center;
|
|
1857
|
+
gap: 8px;
|
|
1858
|
+
width: 100%;
|
|
1859
|
+
height: ${30}px;
|
|
1860
|
+
padding: 0 8px;
|
|
1861
|
+
padding-left: ${({$depth:e})=>8+12*Math.max(0,e)}px;
|
|
1862
|
+
box-sizing: border-box;
|
|
1863
|
+
`,qy=n(jn)`
|
|
1864
|
+
flex-shrink: 0;
|
|
1865
|
+
min-width: 10px;
|
|
1866
|
+
`,Qy=n.div`
|
|
1867
|
+
display: flex;
|
|
1868
|
+
flex: 1;
|
|
1869
|
+
align-items: center;
|
|
1870
|
+
gap: 4px;
|
|
1871
|
+
min-width: 0;
|
|
1872
|
+
`,Zy=n.div`
|
|
1873
|
+
display: flex;
|
|
1874
|
+
flex-shrink: 0;
|
|
1875
|
+
align-items: center;
|
|
1876
|
+
max-width: 96px;
|
|
1877
|
+
height: 16px;
|
|
1878
|
+
padding: 0 4px;
|
|
1879
|
+
overflow: hidden;
|
|
1880
|
+
border-radius: 4px;
|
|
1881
|
+
background-color: ${({theme:e})=>e.v2.colors.purple[900]};
|
|
1882
|
+
`,ev=n(jn)`
|
|
1883
|
+
width: 100%;
|
|
1884
|
+
overflow: hidden;
|
|
1885
|
+
font-family: ${({theme:e})=>e.font_family.code};
|
|
1886
|
+
line-height: 16px;
|
|
1887
|
+
text-overflow: ellipsis;
|
|
1888
|
+
white-space: nowrap;
|
|
1889
|
+
`,tv=n.div`
|
|
1890
|
+
display: flex;
|
|
1891
|
+
flex: 1;
|
|
1892
|
+
align-items: center;
|
|
1893
|
+
gap: 8px;
|
|
1894
|
+
min-width: 0;
|
|
1895
|
+
`,rv=n(jn)`
|
|
1896
|
+
flex-shrink: 0;
|
|
1897
|
+
`,nv=n.div`
|
|
1898
|
+
display: flex;
|
|
1899
|
+
flex-shrink: 0;
|
|
1900
|
+
align-items: center;
|
|
1901
|
+
gap: 4px;
|
|
1902
|
+
height: 18px;
|
|
1903
|
+
padding: 0 4px;
|
|
1904
|
+
border-radius: 4px;
|
|
1905
|
+
|
|
1906
|
+
${({theme:e,$tone:t})=>{switch(t){case"warning":return i`
|
|
1907
|
+
background-color: ${e.v2.colors.yellow[900]};
|
|
1908
|
+
color: ${e.v2.colors.yellow[400]};
|
|
1909
|
+
`;case"danger":return i`
|
|
1910
|
+
background-color: ${e.v2.colors.red[800]};
|
|
1911
|
+
color: ${e.v2.colors.red[300]};
|
|
1912
|
+
`;case"success":return i`
|
|
1913
|
+
background-color: ${e.v2.colors.green[900]};
|
|
1914
|
+
color: ${e.v2.colors.green[300]};
|
|
1915
|
+
`}}}
|
|
1916
|
+
`,iv=n.div`
|
|
1917
|
+
display: flex;
|
|
1918
|
+
flex: 1;
|
|
1919
|
+
align-items: center;
|
|
1920
|
+
gap: 4px;
|
|
1921
|
+
min-width: 0;
|
|
1922
|
+
`,ov=n.div`
|
|
1923
|
+
display: flex;
|
|
1924
|
+
flex-direction: column;
|
|
1925
|
+
width: 100%;
|
|
1926
|
+
box-sizing: border-box;
|
|
1927
|
+
`,av=(e,t)=>{switch(t){case"warning":return e.v2.colors.yellow[400];case"danger":return e.v2.colors.red[300];case"success":return e.v2.colors.green[300]}},sv=({row:r})=>{const n=!!r.scope,i=r.attributes?.filter(e=>!!e?.key)??[];return n||i.length?t(ov,{children:e(Ao,{$gap:0,children:[n?t(ub,{label:"Scope Attribute",value:r.scope}):null,i.map((e,r)=>t(ub,{label:e.key??"",value:e.value},`${e.key}-${r}`))]})}):null},lv=({row:r,expanded:n,onToggle:i})=>{const a=o(),s=(e=>e??"default")(r.variant),l="placeholder"!==s,d=r.depth??0,c=Xt(()=>{l&&i(r.id)},[l,i,r.id]);if("placeholder"===s)return t(Yy,{type:"button",$variant:s,$selected:!1,$interactive:!1,disabled:!0,"aria-hidden":!0,children:t(Jy,{$depth:d,children:t(iv,{children:r.badge?.icon?t(r.badge.icon,{size:12,fill:a.v2.colors.green[500]}):null})})});const u=r.badge?.icon??void 0,p=r.badge?.tone??("new"===s?"danger":"warning"),h="timing"===s?a.v2.colors.yellow[500]:void 0;return e(Yy,{type:"button",$variant:s,$selected:n,$interactive:l,onClick:c,"aria-pressed":n,children:[e(Jy,{$depth:d,children:[t(qy,{size:Mn.XXXS,color:Fn.Disable,nowrap:!0,children:r.index??""}),e(Qy,{children:[r.service?t(Zy,{title:r.service,children:t(ev,{size:Mn.XXXS,color:a.v2.colors.purple[300],children:r.service})}):null,e(tv,{children:[t(jn,{size:Mn.XXXS,color:n||"default"!==s?Fn.Primary:Fn.Secondary,nowrap:!0,children:r.name??""}),r.badge?.label?e(nv,{$tone:p,children:[t(jn,{size:Mn.XXXS,color:av(a,p),nowrap:!0,children:r.badge.label}),u?t(u,{size:12,fill:av(a,p)}):null]}):null]}),r.durationLabel?t(rv,{size:Mn.XXXS,color:h??Fn.Secondary,nowrap:!0,children:r.durationLabel}):null]})]}),n?t(sv,{row:r}):null]})},dv=({title:r,titleIcon:n,headerBadge:i,meta:a,rows:s,expandedRowIds:l,onToggleRow:d,corner:c="both"})=>{const u=o(),p=Wt(()=>new Set(l??[]),[l]),h=Xt(e=>{d?.(e)},[d]),g=!!(n||r||i?.label||a?.length),m="success"===i?.tone?u.v2.colors.green[500]:"danger"===i?.tone?u.v2.colors.red[800]:u.v2.colors.silver[700],f="success"===i?.tone?u.v2.colors.black[500]:"danger"===i?.tone?u.v2.colors.white[500]:u.v2.colors.silver[200];return e(jy,{children:[g&&e(Xy,{$corner:c??"both",children:[(n||r)&&e(Wy,{children:[n&&t(n,{size:16,fill:u.v2.colors.white[500]}),r&&t(jn,{size:Mn.XS,color:Fn.Primary,nowrap:!0,children:r})]}),i?.label?t(Zh,{label:i.label,backgroundColor:m,textColor:f,textSize:Mn.XXXS}):null,a?.map(e=>t(Gy,{children:t(jn,{size:Mn.XXXS,color:Fn.Secondary,nowrap:!0,children:e.label})},e.label))]}),t(Vy,{$hasHeader:g,$corner:c??"both",children:s?.length?s.map(e=>t(lv,{row:e,expanded:p.has(e.id),onToggle:h},e.id)):t(No,{$justifyContent:"center",style:{padding:16},children:t(jn,{size:Mn.XXXS,color:Fn.Secondary,children:"No spans"})})})]})},cv=n.div`
|
|
1928
|
+
min-width: 500px;
|
|
1929
|
+
`,uv=n.div`
|
|
1930
|
+
display: flex;
|
|
1931
|
+
flex-direction: column;
|
|
1932
|
+
align-items: center;
|
|
1933
|
+
gap: 16px;
|
|
1934
|
+
padding: 24px;
|
|
1935
|
+
width: 100%;
|
|
1936
|
+
`,pv=n.div`
|
|
1937
|
+
display: flex;
|
|
1938
|
+
justify-content: center;
|
|
1939
|
+
gap: 16px;
|
|
1940
|
+
padding: 16px 24px;
|
|
1941
|
+
width: 100%;
|
|
1942
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1943
|
+
`,hv=({visual:r,title:n,description:i,isOpen:o,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(Pb,{isOpen:o,onClose:a,...c,children:e(cv,{children:[e(uv,{children:[r&&t(r,{}),t(jn,{size:Mn.M,weight:500,color:Fn.Primary,children:n}),t(Ao,{$alignItems:"center",$gap:4,children:i.split("\n").map(e=>t(jn,{size:Mn.XS,weight:400,color:Fn.Secondary,children:e},e))}),d]}),(s||l)&&e(pv,{children:[s&&t(Eh,{"data-id":"deny",...s}),l&&t(Eh,{"data-id":"approve",...l})]})]})});export{Di as $,Kg as A,Eh as B,rf as C,Yf as D,ii as E,Ao as F,hb as G,Tm as H,Af as I,Or as J,Hf as K,Gl as L,Pb as M,Ng as N,ql as O,vr as P,qh as Q,Zg as R,Nr as S,wh as T,Nl as U,bo as V,hv as W,Ql as X,Zl as Y,Vl as Z,Sr as _,Yg as a,Wl as a$,hm as a0,Dl as a1,xg as a2,Om as a3,jl as a4,Dg as a5,ed as a6,td as a7,Ol as a8,ni as a9,yl as aA,il as aB,vl as aC,bl as aD,Vg as aE,ol as aF,$l as aG,nd as aH,fl as aI,Yl as aJ,id as aK,rd as aL,od as aM,ad as aN,Fl as aO,al as aP,dl as aQ,cl as aR,hl as aS,ml as aT,gl as aU,El as aV,Js as aW,qs as aX,nl as aY,zl as aZ,Bl as a_,bf as aa,Cb as ab,bg as ac,Hs as ad,Sl as ae,Fr as af,Hr as ag,Jr as ah,qr as ai,Qr as aj,Br as ak,jr as al,zr as am,Pn as an,kl as ao,ll as ap,Il as aq,sl as ar,Ll as as,wl as at,Al as au,_l as av,Xl as aw,xl as ax,bb as ay,Hl as az,yr as b,Rl as b$,nu as b0,Qs as b1,Tl as b2,fi as b3,iu as b4,Yb as b5,Io as b6,zo as b7,Tg as b8,Oi as b9,ta as bA,_n as bB,ca as bC,Kr as bD,da as bE,is as bF,Pr as bG,dg as bH,Oo as bI,dy as bJ,En as bK,Zh as bL,dr as bM,Us as bN,gr as bO,Ms as bP,gb as bQ,em as bR,Xn as bS,Ra as bT,ts as bU,Ja as bV,qa as bW,Za as bX,Qa as bY,yd as bZ,Cl as b_,qp as ba,Yn as bb,no as bc,xr as bd,Cr as be,Xp as bf,th as bg,oh as bh,Qp as bi,Wi as bj,Gn as bk,Dn as bl,tn as bm,Bi as bn,Ls as bo,_s as bp,Rs as bq,Ds as br,Zo as bs,os as bt,Qo as bu,ah as bv,Nn as bw,lr as bx,ar as by,ea as bz,Ps as c,Sn as c$,vd as c0,Ml as c1,bd as c2,tl as c3,rl as c4,ul as c5,Rn as c6,sr as c7,Ln as c8,Fi as c9,Vo as cA,Go as cB,Mi as cC,ob as cD,Vp as cE,ro as cF,Ei as cG,Ho as cH,hh as cI,Va as cJ,Wa as cK,aa as cL,io as cM,Bo as cN,Li as cO,Ir as cP,Fa as cQ,Ha as cR,yg as cS,Ly as cT,uy as cU,kb as cV,pl as cW,js as cX,Qi as cY,Pi as cZ,wn as c_,ns as ca,Un as cb,Vn as cc,mr as cd,Vb as ce,Ni as cf,cf as cg,hi as ch,mf as ci,On as cj,la as ck,wi as cl,Ko as cm,Gi as cn,Vh as co,Ba as cp,_h as cq,ei as cr,Mr as cs,Zn as ct,ja as cu,ub as cv,_i as cw,Kh as cx,Vm as cy,Kp as cz,kg as d,hp as d$,xn as d0,ws as d1,Os as d2,$s as d3,Ts as d4,Ns as d5,vs as d6,Cs as d7,hs as d8,gs as d9,Ad as dA,Dd as dB,Rd as dC,Od as dD,Td as dE,zs as dF,pd as dG,Tp as dH,Sp as dI,xp as dJ,Cp as dK,Ep as dL,yp as dM,Zu as dN,ep as dO,tp as dP,rp as dQ,np as dR,ip as dS,lp as dT,dp as dU,op as dV,ap as dW,sp as dX,cp as dY,up as dZ,pp as d_,Es as da,Ss as db,xs as dc,ks as dd,ps as de,bs as df,ys as dg,fs as dh,ms as di,ss as dj,as as dk,Is as dl,As as dm,Fs as dn,Ws as dp,Bs as dq,Xs as dr,eu as ds,ru as dt,tu as du,Cd as dv,Sd as dw,wd as dx,xd as dy,Id as dz,jn as e,qc as e$,Qu as e0,Yu as e1,mp as e2,fp as e3,Ku as e4,Wu as e5,qu as e6,Nu as e7,bp as e8,vp as e9,Dp as eA,_p as eB,Pp as eC,Up as eD,Fp as eE,Mp as eF,zp as eG,Bp as eH,Rh as eI,ra as eJ,Uh as eK,Ph as eL,Wp as eM,Zc as eN,Pd as eO,Yd as eP,Jd as eQ,qd as eR,Qd as eS,ec as eT,Zd as eU,tc as eV,Co as eW,Vc as eX,Kc as eY,Yc as eZ,Jc as e_,wp as ea,$p as eb,Ju as ec,Vu as ed,Gu as ee,ku as ef,Iu as eg,Au as eh,Pu as ei,Lu as ej,yf as ek,Uu as el,Fu as em,zu as en,Mu as eo,Bu as ep,Hu as eq,Xu as er,ju as es,Lp as et,Op as eu,Np as ev,Ap as ew,Ip as ex,kp as ey,Rp as ez,Fn as f,cn as f$,Qc as f0,Ud as f1,Fd as f2,zd as f3,Bd as f4,jd as f5,Hd as f6,Wd as f7,Xd as f8,Vd as f9,jc as fA,Xc as fB,Wc as fC,Gc as fD,Bc as fE,Lc as fF,Pc as fG,Tc as fH,Rc as fI,Dc as fJ,_c as fK,Nc as fL,Ic as fM,Ac as fN,yc as fO,vc as fP,$c as fQ,wc as fR,Sc as fS,xc as fT,Cc as fU,Ec as fV,Oc as fW,kc as fX,Zi as fY,Eo as fZ,vm as f_,Gd as fa,Kd as fb,_d as fc,Ld as fd,rc as fe,nc as ff,dc as fg,sc as fh,lc as fi,oc as fj,ac as fk,ic as fl,hc as fm,gc as fn,uc as fo,pc as fp,cc as fq,fc as fr,bc as fs,mc as ft,Md as fu,Mc as fv,Fc as fw,zc as fx,Uc as fy,Hc as fz,Mn as g,hu as g$,dn as g0,ln as g1,sn as g2,hn as g3,pn as g4,qb as g5,ny as g6,Zb as g7,Ti as g8,dv as g9,zi as gA,ch as gB,Si as gC,$i as gD,vi as gE,Wn as gF,oo as gG,Xr as gH,fm as gI,Ks as gJ,Gs as gK,Vs as gL,Ys as gM,Jl as gN,$d as gO,ud as gP,dd as gQ,cd as gR,ld as gS,sd as gT,md as gU,fd as gV,gd as gW,hd as gX,Lh as gY,lu as gZ,du as g_,ka as ga,mn as gb,Wh as gc,on as gd,nn as ge,an as gf,gn as gg,fn as gh,un as gi,Hm as gj,Dm as gk,yn as gl,To as gm,cy as gn,Jp as go,xi as gp,Kn as gq,Xa as gr,Fh as gs,Gp as gt,rh as gu,ji as gv,Ai as gw,Ii as gx,Xi as gy,Hi as gz,No as h,Yo as h$,gu as h0,mu as h1,fu as h2,bu as h3,yu as h4,vu as h5,$u as h6,wu as h7,Tu as h8,Eu as h9,Wr as hA,_r as hB,$n as hC,en as hD,Zr as hE,Yr as hF,br as hG,cr as hH,Rr as hI,vo as hJ,yo as hK,So as hL,gi as hM,ti as hN,mi as hO,ua as hP,Ci as hQ,Ri as hR,bi as hS,Ui as hT,Qn as hU,Ki as hV,Yi as hW,Ji as hX,qi as hY,eo as hZ,jo as h_,Cu as ha,su as hb,au as hc,uu as hd,cu as he,pu as hf,xu as hg,Su as hh,Dr as hi,pr as hj,kr as hk,Lr as hl,vn as hm,bn as hn,rn as ho,$r as hp,wr as hq,Ar as hr,hr as hs,Cn as ht,fr as hu,ur as hv,Ur as hw,Er as hx,Vr as hy,Gr as hz,xh as i,ab as i$,Jo as i0,qo as i1,na as i2,ia as i3,sa as i4,pa as i5,ha as i6,ga as i7,Da as i8,_a as i9,In as iA,kn as iB,Ya as iC,Hp as iD,uh as iE,Xh as iF,ph as iG,lh as iH,Mh as iI,dh as iJ,Oh as iK,Ah as iL,kh as iM,Dh as iN,gh as iO,Bh as iP,lg as iQ,fg as iR,cg as iS,sg as iT,km as iU,Rm as iV,Mg as iW,Fy as iX,Qf as iY,tb as iZ,nb as i_,yi as ia,La as ib,Pa as ic,Tn as id,Ka as ie,Kl as ig,kd as ih,Nd as ii,Ed as ij,Pl as ik,Ul as il,el as im,Zs as io,Ga as ip,ds as iq,cs as ir,us as is,ls as it,ou as iu,gp as iv,Ou as iw,Du as ix,_u as iy,Ru as iz,Sh as j,Do as j0,Hb as j1,Ro as j2,rg as j3,vb as j4,lm as j5,_o as j6,Lo as j7,Po as j8,Jm as j9,Tf as ja,ko as jb,Bn as jc,Rg as k,Of as l,sm as m,qn as n,Jn as o,Tr as p,Cf as q,$f as r,vf as s,or as t,Th as u,Hy as v,Pg as w,Jf as x,My as y,Ab as z};
|