@odigos/ui-kit 0.0.286 → 0.0.288
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/.cursor/rules/frontend-workflow.mdc +27 -0
- package/.cursor/rules/ui-feedback-tables-forms.mdc +40 -0
- package/.cursor/rules/ui-implementation.mdc +21 -0
- package/.cursor/rules/ui-pages-and-drawers.mdc +34 -0
- package/.cursor/rules/ui-visual-language.mdc +27 -0
- package/CHANGELOG.md +22 -0
- package/docs/api-context.md +1 -1
- package/lib/chunks/helpers-BCSEuuKh.js +9 -0
- package/lib/chunks/index-Cy84opXf.js +351 -0
- package/lib/chunks/source-instrument-form-context-D6pVu22G.js +5 -0
- package/lib/chunks/ui-components-D8rTJS7r.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 +20 -0
- package/lib/constants/url-templatization/index.d.ts +90 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/edit-source-drawer/overview/instructions-card.d.ts +21 -0
- 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-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 +40 -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 +15 -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 +25 -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 +33 -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 +35 -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 +1909 -286
- package/lib/contexts/odigos-api/capabilities.d.ts +4 -0
- package/lib/contexts/odigos-api/hooks/use-insights-api.d.ts +162 -0
- package/lib/contexts/odigos-api/hooks/use-sources-api.d.ts +10 -1
- 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 +229 -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/blast-radius/animated-edge.d.ts +10 -0
- package/lib/snippets/blast-radius/blast-radius-node.d.ts +6 -0
- package/lib/snippets/blast-radius/helpers.d.ts +29 -0
- package/lib/snippets/blast-radius/index.d.ts +7 -0
- package/lib/snippets/blast-radius/types.d.ts +19 -0
- package/lib/snippets/code-modal/index.d.ts +9 -0
- package/lib/snippets/index.d.ts +2 -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/workload/index.d.ts +61 -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
|
@@ -1,1620 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import o,{css as r,useTheme as i,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 y,NginxLogo as b,MysqlLogo as v,ElixirLogo as E,SwiftLogo as S,RustLogo as $,RubyLogo as C,PhpLogo as x,CPlusPlusLogo as w,CSharpLogo as T,DotnetLogo as O,PythonLogo as N,NodejsLogo as A,GoLogo as I,JavaLogo as _,PyroscopeLogo as R,AwsXrayLogo as D,VictoriaMetricsLogo as k,UptraceLogo as L,TraceloopLogo as P,TingyunLogo as M,TempoLogo as U,TelemetryHubLogo as F,SumoLogicLogo as z,SplunkLogo as B,SignozLogo as H,SeqLogo as W,AwsS3Logo as j,QuickwitLogo as G,GigapipeLogo as X,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 ne,MiddlewareLogo as oe,LumigoLogo as re,LokiLogo as ie,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 ye,ElasticSearchLogo as be,ElasticApmLogo as ve,DynatraceLogo as Ee,DatadogLogo as Se,Dash0Logo as $e,CoralogixLogo as Ce,AwsCloudwatchLogo as xe,ClickhouseLogo as we,ChronosphereLogo as Te,ChecklyLogo as Oe,CauselyLogo as Ne,BonreeLogo as Ae,BetterStackLogo as Ie,AzureMonitorLogo as _e,AzureBlobLogo as Re,AxiomLogo as De,AppDynamicsLogo as ke,AlibabaCloudLogo as Le,AlaudaLogo as Pe,RecommendationsIcon as Me,SamplingIcon as Ue,InstrumentationRuleIcon as Fe,DestinationIcon as ze,SourceIcon as Be,NamespacesIcon as He,PayloadCollectionIcon as We,HeadersCollectionIcon as je,CustomInstrumentationIcon as Ge,CodeAttributesIcon as Xe,TracesIcon as Ve,MetricsIcon 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 nt,ExclamationCircleIcon as ot,ISquareIcon as rt,AwsLogo as it,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 yt,OpenTelemetryLogoStripped as bt,CodeIcon as vt,VIcon as Et,CopyIcon as St,SearchIcon as $t,XIcon as Ct,MinusIcon as xt,ChevronUpIcon as wt,ChevronDownIcon as Tt,DotsVerticalIcon as Ot,EyeClosedIcon as Nt,EyeOpenIcon as At,ArrowIcon as It,ListIcon as _t,PlusIcon as Rt,TrashIcon as Dt,DotIcon as kt,ArrowRightIcon as Lt,FilterIcon as Pt}from"../icons.js";import{create as Mt}from"zustand";import{forwardRef as Ut,Fragment as Ft,useState as zt,useEffect as Bt,useCallback as Ht,useMemo as Wt,useRef as jt,useLayoutEffect as Gt,createElement as Xt}from"react";import Vt from"javascript-time-ago";import Kt from"javascript-time-ago/locale/en";import Yt,{createPortal as Jt}from"react-dom";import{Highlight as qt,themes as Qt}from"prism-react-renderer";import{persist as Zt,createJSONStorage as en}from"zustand/middleware";import{ErrorBoundary as tn}from"react-error-boundary";import{VList as nn}from"virtua";const on=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const n=t.split(".");return 1e4*parseInt(n[0]||"0",10)+parseInt(n[1]||"0",10)};var rn,an,sn,ln,dn,cn,un,pn,hn,gn,mn,fn,yn,bn,vn,En,Sn,$n,Cn,xn,wn,Tn,On,Nn,An,In,_n,Rn,Dn,kn,Ln,Pn,Mn,Un,Fn,zn,Bn,Hn,Wn,jn,Gn,Xn,Vn,Kn;(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"})(rn||(rn={})),(e=>{e.Enrichment="enrichment",e.Normalization="normalization",e.Privacy="privacy"})(an||(an={})),(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.ExtractAttribute="extractAttribute",e.TemplatizeLiterals="templatizeLiterals",e.Scopes="scopes"})(sn||(sn={})),(e=>{e.Pod="pod",e.Namespace="namespace",e.Node="node"})(ln||(ln={})),(e=>{e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"})(dn||(dn={})),(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"})(cn||(cn={})),(e=>{e.EXISTS="exists",e.EQUALS="equals"})(un||(un={})),(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"})(pn||(pn={})),(e=>{e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"})(hn||(hn={})),(e=>{e.Discovery="discovery",e.Instrumentation="instrumentation",e.ComputePlatforms="computePlatforms",e.Gateway="gateway"})(gn||(gn={})),(e=>{e.Horizontal="horizontal",e.Vertical="vertical"})(mn||(mn={})),(e=>{e.Ascending="ascending",e.Descending="descending"})(fn||(fn={})),(e=>{e.Community="community",e.Onprem="onprem"})(yn||(yn={})),(e=>{e.K8s="k8s",e.Vm="vm",e.Connector="connector",e.AwsEcs="aws.ecs"})(bn||(bn={})),(e=>{e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"})(vn||(vn={})),(e=>{e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"})(En||(En={})),(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"})(Sn||(Sn={})),(e=>{e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"})($n||($n={})),(e=>{e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule",e.Recommendation="Recommendation"})(Cn||(Cn={})),(e=>{e.DataStream="DataStream"})(xn||(xn={})),(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"})(wn||(wn={})),(e=>{e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"})(Tn||(Tn={})),(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"})(On||(On={})),(e=>{e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"})(Nn||(Nn={})),(e=>{e.RolloutWorkload="RolloutWorkload",e.AllowConcurrentAgentsForContainer="AllowConcurrentAgentsForContainer",e.DisallowConcurrentAgentsForContainer="DisallowConcurrentAgentsForContainer"})(An||(An={})),(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"})(In||(In={})),(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"})(_n||(_n={})),(e=>{e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"})(Rn||(Rn={})),(e=>{e.CodeAttributes="code-attributes",e.FullPayloadCollection="full-payload-collection",e.DbPayloadCollection="db-payload-collection",e.QueryOperationDetector="query-operation-detector",e.AllowConcurrentAgents="allow_concurrent_agents",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.JavaNativeInstrumentations="java-native-instrumentations",e.SizeS="size_s",e.SizeM="size_m",e.SizeL="size_l"})(Dn||(Dn={})),(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"})(kn||(kn={})),(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"})(Ln||(Ln={})),(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"})(Pn||(Pn={})),(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"})(Mn||(Mn={})),(e=>{e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"})(Un||(Un={})),(e=>{e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"})(Fn||(Fn={})),(e=>{e.HeaderKeys="headerKeys"})(zn||(zn={})),(e=>{e.Java="java",e.Golang="golang",e.Php="php"})(Bn||(Bn={}));class Yn{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 Jn{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,o){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=o||""}Verify(){return!(!this.packageName||(this.functionName?this.receiverMethodName||this.receiverName:!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}class qn{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"})(Hn||(Hn={})),(e=>{e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"})(Wn||(Wn={})),(e=>{e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"})(jn||(jn={})),(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"})(Gn||(Gn={})),(e=>{e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"})(Xn||(Xn={})),(e=>{e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"})(Vn||(Vn={})),(e=>{e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"})(Kn||(Kn={}));const Qn={[Vn.Logs]:Kn.Logs,[Vn.Metrics]:Kn.Metrics,[Vn.Traces]:Kn.Traces,[Vn.Profiles]:Kn.Profiles},Zn={[Kn.Logs]:Vn.Logs,[Kn.Metrics]:Vn.Metrics,[Kn.Traces]:Vn.Traces,[Kn.Profiles]:Vn.Profiles};var eo,to,no,oo,ro;(e=>{e.InferDBAttributes="InferDBAttributes",e.AutoGoOffsetUpdater="AutoGoOffsetUpdater",e.EnableOwnMetrics="EnableOwnMetrics",e.SampleHealthProbes="SampleHealthProbes",e.UrlTemplatization="UrlTemplatization"})(eo||(eo={})),(e=>{e.Recommended="recommended",e.Applied="applied",e.Dismissed="dismissed",e.NotApplicable="notApplicable"})(to||(to={})),(e=>{e.HelmValues="HelmValues",e.OdigosAction="OdigosAction"})(no||(no={})),(e=>{e.DirectAutoOffsets="DirectAutoOffsets",e.DropAllHealthProbes="DropAllHealthProbes",e.EnableInferDbAttributes="EnableInferDbAttributes",e.EnableOwnMetricsStore="EnableOwnMetricsStore",e.EnableUrlTemplatization="EnableUrlTemplatization",e.ImageAutoOffsets="ImageAutoOffsets",e.SparseSampleHealthProbes="SparseSampleHealthProbes"})(oo||(oo={})),(e=>{e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"})(ro||(ro={}));const io={[an.Enrichment]:{TITLE:"Enrichment",ICON:c},[an.Normalization]:{TITLE:"Normalization",ICON:d},[an.Privacy]:{TITLE:"Privacy & Governance",ICON:l}},ao={[rn.AddClusterInfo]:an.Enrichment,[rn.K8sAttributes]:an.Enrichment,[rn.ExtractAttribute]:an.Enrichment,[rn.InferDbAttributes]:an.Enrichment,[rn.DbQueryTemplatization]:an.Normalization,[rn.URLTemplatization]:an.Normalization,[rn.RenameAttributes]:an.Normalization,[rn.PiiMasking]:an.Privacy,[rn.DeleteAttributes]:an.Privacy},so=e=>{const t=ao[e];return t?io[t].ICON:u},lo=[{type:rn.K8sAttributes,icon:so(rn.K8sAttributes),category:ao[rn.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:[Vn.Traces,Vn.Metrics,Vn.Logs,Vn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[bn.K8s]},{type:rn.AddClusterInfo,icon:so(rn.AddClusterInfo),category:ao[rn.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:[Vn.Traces,Vn.Metrics,Vn.Logs,Vn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[bn.K8s]},{type:rn.DeleteAttributes,icon:so(rn.DeleteAttributes),category:ao[rn.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:[Vn.Traces,Vn.Metrics,Vn.Logs,Vn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[bn.K8s]},{type:rn.RenameAttributes,icon:so(rn.RenameAttributes),category:ao[rn.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:[Vn.Traces,Vn.Metrics,Vn.Logs,Vn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[bn.K8s]},{type:rn.PiiMasking,icon:so(rn.PiiMasking),category:ao[rn.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:[Vn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[bn.K8s]},{type:rn.URLTemplatization,icon:so(rn.URLTemplatization),category:ao[rn.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:[Vn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[bn.K8s]:on("v1.21.0")},supportedPlatforms:[bn.K8s,bn.Vm]},{type:rn.ExtractAttribute,icon:so(rn.ExtractAttribute),category:ao[rn.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:[Vn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[bn.K8s]:on("v1.29.0")},supportedPlatforms:[bn.K8s]}],co=on("v1.26"),uo=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),po=(e,t,n)=>{const o=e.minVersion?.[t];return!o||on(n)>=o},ho=(e,t)=>lo.filter(n=>uo(n,e)&&po(n,e,t)).map(n=>((e,t,n)=>t!==bn.K8s||on(n)>=co?e:e.allowedSignals?.includes(Vn.Profiles)?{...e,allowedSignals:e.allowedSignals.filter(e=>e!==Vn.Profiles)}:e)(n,e,t)),go=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:so(e.type),category:e.category||ao[e.type],label:e.displayName,subtitle:e.subtitle||void 0,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]};var mo;(e=>{e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"})(mo||(mo={}));const fo={[mo.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[mo.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[mo.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[mo.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[mo.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[mo.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},yo=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var bo,vo,Eo;(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"})(bo||(bo={})),(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"})(vo||(vo={})),(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"})(Eo||(Eo={}));const So=new Set(Object.values(Eo)),$o=(e,t)=>{if("string"!=typeof(n=t)||!So.has(n))return t;var n;switch(t){case Eo.Primary:return e.v2.colors.white[500];case Eo.Secondary:return e.v2.colors.silver[200];case Eo.Tertiary:return e.v2.colors.black[500];case Eo.Disable:return e.v2.colors.grey[400];case Eo.Error:return e.v2.colors.red[500];case Eo.Mandatory:return e.v2.colors.red[600];case Eo.Link:return e.v2.colors.purple[400];case Eo.Success:return e.v2.colors.green[400];default:return}},Co=o.p`
|
|
2
|
-
margin: 0;
|
|
3
|
-
color: ${({$color:e,theme:t})=>$o(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:n})=>t||`${e.v2.text.size[n]+2}px`};
|
|
10
|
-
opacity: ${({$opacity:e})=>e};
|
|
11
|
-
|
|
12
|
-
${({$nowrap:e})=>e?r`
|
|
13
|
-
text-wrap: nowrap;
|
|
14
|
-
white-space: nowrap;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
text-overflow: ellipsis;
|
|
17
|
-
`:r`
|
|
18
|
-
flex: 0 1 auto;
|
|
19
|
-
min-width: 0;
|
|
20
|
-
overflow-wrap: anywhere;
|
|
21
|
-
`}
|
|
22
|
-
|
|
23
|
-
${({$maxLines:e})=>!!e&&e>0&&r`
|
|
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&&r`
|
|
32
|
-
text-decoration: underline;
|
|
33
|
-
`}
|
|
34
|
-
|
|
35
|
-
${({$withClick:e})=>e&&r`
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
&:hover {
|
|
38
|
-
text-decoration: underline;
|
|
39
|
-
}
|
|
40
|
-
`}
|
|
41
|
-
`,xo=Ut(({children:n,variant:o=bo.P,color:r,size:i=vo.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},y)=>{const b="string"==typeof n?n.split("\n").map((n,o,r)=>e(Ft,{children:[n,o!==r.length-1&&t("br",{})]},`typography-${o}-${n}`)):n;return t(Co,{ref:y,as:o,$color:r,$size:i,$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:b})});xo.displayName="Typography";const wo="https://docs.odigos.io",To="default",Oo="this-cluster",No="This Cluster",Ao={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},Io={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."},_o={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",NO_CONNECTIONS:"No connections",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",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"},Ro={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"},Do=(e,t)=>e===On.Success?_o.HEALTHY:e===On.Error?_o.NOT_HEALTHY:yo(t),ko=e=>{if(!e)return null;switch(e){case Mn.Irrelevant:return null;case Mn.Failure:case Mn.Error:return On.Error;case Mn.Notice:return On.Warning;case Mn.Pending:case Mn.Waiting:return On.Loading;case Mn.Unsupported:case Mn.Disabled:return On.Disabled;case Mn.Success:return On.Success;case Mn.Unknown:default:return On.Info}},Lo=(e,t,n="reason",o)=>{const r=ko(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===On.Success?p:h),label:o||("reason"===n?yo(e?.reasonEnum):Do(r,e?.reasonEnum)),tooltip:e?.message,textSize:vo.XXXS,invertColors:!0,useSecondaryTone:!0}:null},Po=e=>e.charAt(0).toUpperCase()+e.slice(1);var Mo;(e=>{e.SIGNALS="SIGNALS"})(Mo||(Mo={}));const Uo=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,r,i]=e;if(o===Mo.SIGNALS)switch(r){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=n.find(e=>e.name===o||e.key===o);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(r){case"===":case"==":return s===i;case"!==":case"!=":return s!==i;case">":return Number(s)>Number(i);case"<":return Number(s)<Number(i);case">=":return Number(s)>=Number(i);case"<=":return Number(s)<=Number(i);default:return!0}};function Fo(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const zo=e=>({status:e?On.Success:On.Unknown,label:e?"True":"False",invertColors:!0}),Bo=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Ho=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)},Wo=e=>"string"==typeof e?{id:e,label:e}:e??{},jo=(e,t)=>e.label||e.displayName||t,Go=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const n=t.map(t=>{const n=String(t??"");if(!n)return"";const o=e.options?.find(e=>String(e.id??"")===n);return o?jo(o,n):n}).filter(Boolean);return n.join(", ")}const n=String(t),o=e.options?.find(e=>String(e.id??"")===n);return o?jo(o,n):Ho(t)},Xo=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const n=Bo(e.componentProps)?e.componentProps:void 0;return{name:t,displayName:e.displayName||t,componentType:e.componentType,componentProperties:"string"==typeof e.componentProperties?e.componentProperties:n?JSON.stringify(n):void 0,initialValue:e.initialValue,renderCondition:e.renderCondition}},Vo=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(...Vo(e.segments))):t.push(...e.items)}),t},Ko=(e,t,n={})=>{const o=[],r=n.signals||[],i=new Set(n.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));let s=[];const l=()=>{s.length&&(o.push({kind:"cells",id:`cells-${o.length}`,items:s}),s=[])};return t.forEach((t,d)=>{if(!t?.name||i.has(t.componentType))return;if(t.renderCondition?.length&&!Uo(t.renderCondition,r,a))return;const c=t.displayName||t.name,u=`${t.name}-${d}`,p=e[t.name],h=Fo(t.componentProperties,{});switch(t.componentType){case wn.Toggle:case wn.Checkbox:return void s.push({id:u,title:c,badge:zo(!!p)});case wn.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:[],n=e.map(e=>{const n=t.map(Wo).find(t=>String(t.id??"")===e);return n?jo(n,e):e});return l(),void o.push({kind:"list",id:u,title:c,items:n.length?n.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,n)=>{const o=Wo(t),r=String(o.id??"");r&&s.push({id:`${u}-${n}-${r}`,title:jo(o,r),badge:zo(!0===e[r])})});const n=Bo(p)?p:{},r=Array.isArray(h.options)?h.options:[];let i=[];return i=r.length?r.map(e=>{const t=Wo(e),o=String(t.id??"");return o&&n[o]?jo(t,o):null}).filter(Boolean):Object.entries(n).filter(([,e])=>!!e).map(([e])=>e),l(),void o.push({kind:"list",id:u,title:c,items:i.length?i.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case wn.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,n=e&&Bo(p)?p[e]:p,r=Array.isArray(n)&&n.length?n.map(e=>t&&Bo(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];return l(),void o.push({kind:"list",id:u,title:c,items:r.length?r.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case wn.KeyValuePair:return l(),Bo(p)&&Object.keys(p).length?void o.push({kind:"pairs",id:u,title:c,items:Object.entries(p).map(([e,t],n)=>({id:`${u}-${n}`,title:e,label:String(t??"")}))}):Array.isArray(p)&&p.length?void o.push({kind:"pairs",id:u,title:c,items:p.map((e,t)=>{const n=Bo(e)?e:{};return{id:`${u}-${t}`,title:String(n.key??""),label:String(n.value??"")}})}):void o.push({kind:"pairs",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]});case wn.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&Bo(p)?p[e]:p)?e&&Bo(p)?p[e]:p:[],n=(g=h.columns,Array.isArray(g)?g.map(e=>{const t=e&&"object"==typeof e?e:{},n=t.options??t.values,o=Array.isArray(n)?n.map(Wo):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:o,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,r)=>{const i=t.length>1?`${c} #${r+1}`:c,a=[],s=Bo(e)?{...e}:{};null!=s.method&&""!==s.method||!n.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(s.method=String(s.regex??"").trim()?"regex":"preset"),n.length?n.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[n,o,r]=t,i=null==e?.[n]?"":String(e[n]);switch(o){case"=":case"==":case"===":return i===r;case"!=":case"!==":return i!==r;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}-${r}-${e.keyName}`,title:e.label||Po(yo(e.keyName))||e.keyName,label:Go(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${r}-${e}`,title:e,label:Ho(t)})}),o.push({kind:"group",id:`${u}-${r}`,title:i,items:a.length?a:[{id:`${u}-${r}-empty`,label:"-"}]})}):void o.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}case wn.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(Xo).filter(Boolean),r=h.itemLabel||c;return l(),e.length?void e.forEach((i,a)=>{const s=e.length>1?`${r} ${a+1}`:r,l=Bo(i)?i:{},d=t.length?Ko(l,t,n):[{kind:"cells",id:`${u}-${a}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],n)=>({id:`${u}-${a}-${n}-${e}`,title:e,label:Ho(t)}))}];o.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 o.push({kind:"group",id:u,title:c,items:[{id:`${u}-empty`,label:"-"}]})}default:s.push({id:u,title:c,label:Ho(p)})}var g}),l(),o},Yo=(e,t,n={})=>Vo(Ko(e,t,n)),Jo=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,n(o)]:[e,o]));return Object.entries(e).reduce((e,[o,r])=>{try{const i=JSON.parse(r);Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]="object"==typeof i&&null!==i?JSON.stringify(n(i)):r}catch(i){"object"==typeof r&&null!==r?Array.isArray(r)?e[o]=JSON.stringify(t(r)):e[o]=JSON.stringify(n(r)):e[o]=r}return e},{})},qo=e=>JSON.parse(JSON.stringify(e)),Qo=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Zo=(e,t,n)=>{const o=t.split(".");let r=e;for(let e=0;e<o.length-1;e++)o[e]in r&&"object"==typeof r[o[e]]||(r[o[e]]={}),r=r[o[e]];r[o[o.length-1]]=n},er=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),n},tr=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},nr=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],or=(e,t)=>{let n=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));n=n.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));n=n.filter(({runtimeInfo:t,containers:n})=>t?.detectedLanguages?.some(t=>e.has(t))||n?.some(t=>{const n=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!n&&e.has(n)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));n=n.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));n=n.filter(({instrumentationReport:t})=>{const n=t?.state||t?.progressStage;return!!n&&e.has(n)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));n=n.filter(t=>{const n=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(n)})}return t.onlyErrors&&(n=n.filter(e=>ko(e.workloadOdigosHealthStatus?.status)===On.Error)),n},rr=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===To&&!e.dataStreamNames?.length):[],ir=(e,t="",n={})=>{for(const o in e)if(e.hasOwnProperty(o)){const r=e[o],i=t?`${t}.${o}`:o;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const o=`${i}[${t}]`;null!==e&&"object"==typeof e?ir(e,o,n):n[o]=e}):n[i]=r:ir(r,i,n)}return n},ar=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]}`},sr=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`}},lr=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const o=e[t%16];return t++,("1"===n?o:"0"===n?63&o|128:15&o|64).toString(16)})},dr=e=>e?e.reduce((e,t)=>{if(null!=t){const n=ko(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],cr=e=>Array.isArray(e?.statuses)?dr(e.statuses):e?.conditions??[],ur=e=>e?Array.isArray(e)?pr(e):pr(dr(Object.values(e))):pr([]),pr=e=>{const t=e?.filter(({status:e})=>e===On.Error),n=e?.filter(({status:e})=>e===On.Warning),o=e?.filter(({status:e})=>e===On.Disabled),r=e?.filter(({status:e})=>e===On.Loading),i=t.length>0,a=n.length>0,s=o.length>0;return{errors:t,hasErrors:i,warnings:n,hasWarnings:a,disableds:o,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:i?On.Error:a?On.Warning:s?On.Info:void 0}},hr=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},gr=e=>({[Sn.Java]:_,[Sn.Go]:I,[Sn.JavaScript]:A,[Sn.Python]:N,[Sn.DotNet]:O,[Sn.CSharp]:T,[Sn.CPlusPlus]:w,[Sn.Php]:x,[Sn.Ruby]:C,[Sn.Rust]:$,[Sn.Swift]:S,[Sn.Elixir]:E,[Sn.MySql]:v,[Sn.Nginx]:b,[Sn.Postgres]:y,[Sn.Redis]:f,[Sn.Kafka]:m,[Sn.Ignored]:g,[Sn.Unknown]:g,[Sn.Processing]:g,[Sn.NoContainers]:g,[Sn.NoRunningPods]:g}[e]||g),mr=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Sn.Unknown:Sn.Unknown,fr=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,yr=e=>e?.map(e=>gr(mr(e)))||[],br=e=>e?.map(e=>gr(e))||[],vr=e=>e.runtimeInfo?.detectedLanguages?.length?br(e.runtimeInfo?.detectedLanguages):yr(e.containers),Er=(e,t)=>{const n={[kn.Alauda]:Pe,[kn.AlibabaCloud]:Le,[kn.AppDynamics]:ke,[kn.Axiom]:De,[kn.AzureBlob]:Re,[kn.AzureMonitor]:_e,[kn.BetterStack]:Ie,[kn.Bonree]:Ae,[kn.Causely]:Ne,[kn.Checkly]:Oe,[kn.Chronosphere]:Te,[kn.ClickHouse]:we,[kn.CloudWatch]:xe,[kn.Coralogix]:Ce,[kn.Dash0]:$e,[kn.Datadog]:Se,[kn.Dynamic]:Y,[kn.Dynatrace]:Ee,[kn.ElasticApm]:ve,[kn.ElasticSearch]:be,[kn.GoogleCloud]:ye,[kn.GoogleCloudOTLP]:ye,[kn.GrafanaCloudLoki]:fe,[kn.GrafanaCloudPrometheus]:fe,[kn.GrafanaCloudTempo]:fe,[kn.Greptime]:me,[kn.Groundcover]:ge,[kn.Honeycomb]:he,[kn.HyperDX]:pe,[kn.Instana]:ue,[kn.Jaeger]:ce,[kn.Kafka]:m,[kn.Kloudmate]:de,[kn.Last9]:le,[kn.Lightstep]:se,[kn.LogzIo]:ae,[kn.Loki]:ie,[kn.Lumigo]:re,[kn.Middleware]:oe,[kn.NewRelic]:ne,[kn.Observe]:te,[kn.Odigos]:ee,[kn.OdigosProfileDiagnostic]:ee,[kn.OneUptime]:Z,[kn.OpenObserve]:Q,[kn.Opsverse]:q,[kn.Oracle]:J,[kn.OTLP]:Y,[kn.OTLPHttp]:Y,[kn.Prometheus]:K,[kn.Qryn]:V,[kn.QrynOss]:X,[kn.Quickwit]:G,[kn.S3]:j,[kn.Seq]:W,[kn.Signalfx]:B,[kn.Signoz]:H,[kn.Splunk]:B,[kn.SplunkSapm]:B,[kn.SplunkOtlp]:B,[kn.SumoLogic]:z,[kn.TelemetryHub]:F,[kn.Tempo]:U,[kn.Tingyun]:M,[kn.Traceloop]:P,[kn.Uptrace]:L,[kn.VictoriaMetrics]:k,[kn.VictoriaMetricsCloud]:k,[kn.XRay]:D,[kn.Pyroscope]:R}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Sr=e=>({[Cn.Namespace]:He,[Cn.Source]:Be,[Cn.Destination]:ze,[Cn.Action]:u,[Cn.InstrumentationRule]:Fe,[Cn.SamplingRule]:Ue,[Cn.Recommendation]:Me}[e]),$r=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,Cr=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},xr=e=>Cr($r(e)),wr=(e,t,n)=>{const{extended:o,prioritizeDisplayName:r}=n||{};let i="",a="";switch(t){case Cn.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case Cn.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case Cn.Action:const o=e;i=o.type,a=o.name||"";break;case Cn.Destination:const r=e;i=r.destinationType.displayName,a=r.name;break;case Cn.Namespace:const s=e;i=s.name,a=s.name}return o?i+(a&&a!==i?` (${a})`:""):r&&a||i},Tr=(e,t)=>{if(t===Cn.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},Or=e=>({[Un.CodeAttributes]:Xe,[Un.CustomInstrumentation]:Ge,[Un.HeadersCollection]:je,[Un.PayloadCollection]:We,[Un.UnknownType]:g}[e]||g),Nr=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Sn.Unknown,Ar=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?Sn.Processing:Sn.NoRunningPods;const o=n?.filter(e=>Nr(e)!==Sn.Ignored);if(!o.length)return Sn.NoContainers;const r=o.find(e=>Nr(e)!==Sn.Unknown);return r?Nr(r):Sn.Unknown},Ir=(e,t,n)=>(t===Cn.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},_r=e=>({[Vn.Logs]:Ye,[Vn.Metrics]:Ke,[Vn.Traces]:Ve,[Vn.Profiles]:ee}[e]),Rr=(e,t)=>Object.values(vo).reduce((n,o)=>Math.abs(t[o]-e)<Math.abs(t[n]-e)?o:n),Dr=e=>e&&{[bn.K8s]:Ze,[bn.Vm]:Qe,[bn.Connector]:qe,[bn.AwsEcs]:Je}[e]||ee,kr=e=>e?{[bn.K8s]:"Kubernetes Cluster",[bn.Vm]:"Virtual Machine",[bn.Connector]:"Cloud Connector",[bn.AwsEcs]:"AWS ECS"}[e]:"Unknown",Lr=(e,t,n)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[n],r=[];return void 0!==o&&(Array.isArray(o)?r.push(...o):r.push(o)),r.push(...Lr(e,t,n)),r}):[]},Pr={"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"},Mr=e=>{if(!e)return"";if(Pr[e])return Pr[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},Ur=(e,t)=>{if(t===Cn.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},Fr=(e,t,n)=>{switch(n=n??"500",t){case On.Default:return e.v2.colors.purple[n];case On.Info:return e.v2.colors.blue[n];case On.Error:return e.v2.colors.red[n];case On.Warning:return e.v2.colors.yellow[n];case On.Success:return e.v2.colors.green[n];case On.Loading:case On.Disabled:case On.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},zr=e=>{switch(e){case Wn.Updating:case jn.Pending:case Gn.ContainerCreating:case Xn.Waiting:return On.Info;case Wn.Healthy:case jn.Succeeded:case jn.Running:case Gn.Running:case Xn.Running:return On.Success;case Wn.Degraded:return On.Warning;case Wn.Failed:case jn.Failed:case Gn.Error:case Gn.CrashLoopBackOff:case Gn.CreateContainerError:case Gn.CreateContainerConfigError:case Gn.ErrImagePull:case Gn.ErrImageNeverPull:case Gn.ImagePullBackOff:case Gn.InvalidImageName:case Gn.RegistryUnavailable:case Gn.NetworkNotReady:case Gn.OOMKilled:case Gn.ContainerCannotRun:case Xn.Terminated:case Gn.DeadlineExceeded:case Gn.StartError:return On.Error;case Wn.Down:case Gn.Completed:return On.Disabled;case Wn.Unknown:case jn.Unknown:default:return On.Unknown}},Br=o.div`
|
|
42
|
-
border-radius: 100%;
|
|
43
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
|
-
position: relative;
|
|
45
|
-
`,Hr=o.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
|
-
`,Wr=o(xo)`
|
|
60
|
-
position: absolute;
|
|
61
|
-
top: 50%;
|
|
62
|
-
left: 50%;
|
|
63
|
-
transform: translate(-50%, -50%);
|
|
64
|
-
`,jr=({percentage:n})=>e(Br,{children:[t(Hr,{}),"number"==typeof n?t(Wr,{size:vo.M,weight:500,nowrap:!0,children:`${n}%`}):null]}),Gr={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 Xr(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);const o=(e.match(/[^0-9]*$/)||"").toString();return Gr[o]?{value:t,unit:o}:{value:t,unit:"px"}}function Vr(e){const t=Xr(e);return`${t.value}${t.unit}`}const Kr=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const n=t.sheet,o=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return n&&n.insertRule(o,0),e})(),Yr=({loading:n=!0,color:o,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...d})=>{const c=i(),u=o||c.text.secondary;if(!n)return null;const{value:p}=Xr(2),h=p+4.2,g=h/2+h/5.5,m=4*h*r,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:r,...l,...s},y=(e,t)=>({position:"absolute",width:Vr(1.5),height:Vr(4),borderRadius:Vr(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${Kr} ${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:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),t("span",{style:{...y(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),t("span",{style:{...y(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),t("span",{style:{...y(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),t("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),t("span",{style:{...y(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},Jr=o.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
|
-
`,qr=({scale:e,icon:n})=>{const o=i();return t(Jr,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t(Jr,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t(Jr,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t(Jr,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t(Jr,{$size:23*e,$color:"#50F6E8",children:t(n,{size:16*e,fill:o.v2.colors.black[500]})})})})})})},Qr=434,Zr=635,ei=o.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
|
-
`,ti=o.div`
|
|
83
|
-
position: absolute;
|
|
84
|
-
top: 50%;
|
|
85
|
-
left: 50%;
|
|
86
|
-
transform: translate(-50%, -50%);
|
|
87
|
-
`,ni=()=>e(ei,{children:[t(ti,{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(ti,{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(ti,{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(ti,{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(ti,{children:t(ee,{size:112})})]}),oi=o.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
|
-
`,ri=({scale:e=1,icon:n})=>{const o=i();return t(oi,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(oi,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(oi,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(oi,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(oi,{$size:39*e,$color:o.v2.colors.purple[500],children:t(n,{size:32*e,fill:o.v2.colors.white[500]})})})})})})},ii=o.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
|
-
`,ai=o.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
|
-
`,si=o.div`
|
|
116
|
-
padding: ${({$padding:e})=>e||"12px"};
|
|
117
|
-
`,li=o.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
|
-
`,di=o.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
|
-
`,ci=o(di)`
|
|
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
|
-
`,ui=o.div`
|
|
148
|
-
display: flex;
|
|
149
|
-
flex-direction: column;
|
|
150
|
-
padding: 12px;
|
|
151
|
-
overflow-y: scroll;
|
|
152
|
-
`,pi=o.div`
|
|
153
|
-
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
154
|
-
top: 0;
|
|
155
|
-
left: 0;
|
|
156
|
-
right: 0;
|
|
157
|
-
bottom: 0;
|
|
158
|
-
// Full-screen overlays sit at the modal/drawer layer. Page-scoped overlays
|
|
159
|
-
// (relativeToParent, e.g. upgrade-required) use the island layer so the sidebar
|
|
160
|
-
// can expand above them. In both cases the surface is rendered after the overlay
|
|
161
|
-
// in JSX and stacks above it via DOM order at the same z-index level.
|
|
162
|
-
z-index: ${({theme:e,$relativeToParent:t})=>t?e.v2.zIndex.island:e.v2.zIndex.modal};
|
|
163
|
-
background: rgba(0, 0, 0, 0.6);
|
|
164
|
-
backdrop-filter: blur(2px);
|
|
165
|
-
`,hi=o.div`
|
|
166
|
-
width: 800px;
|
|
167
|
-
min-height: ${({$minHeight:e})=>e||"unset"};
|
|
168
|
-
height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
|
|
169
|
-
margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
|
|
170
|
-
padding: 0 2px;
|
|
171
|
-
overflow-y: scroll;
|
|
172
|
-
`,gi=o(di)`
|
|
173
|
-
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
174
|
-
width: 100%;
|
|
175
|
-
`,mi=o(li)`
|
|
176
|
-
gap: 16px;
|
|
177
|
-
padding: 16px;
|
|
178
|
-
`,fi=o.div`
|
|
179
|
-
width: 100%;
|
|
180
|
-
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
181
|
-
overflow-y: auto;
|
|
182
|
-
`,yi=a`
|
|
183
|
-
0% {
|
|
184
|
-
background-position: 0% 50%;
|
|
185
|
-
}
|
|
186
|
-
100% {
|
|
187
|
-
background-position: 100% 50%;
|
|
188
|
-
}
|
|
189
|
-
`,bi=o(xo)`
|
|
190
|
-
background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
191
|
-
background-size: 250% 100%; /* Expand background to allow movement */
|
|
192
|
-
background-clip: text;
|
|
193
|
-
color: transparent;
|
|
194
|
-
animation: ${yi} 1s reverse linear infinite;
|
|
195
|
-
`,vi=e=>{const t=Math.max(0,Date.now()-e),n=Math.floor(t/1e3),o=Math.floor(n/60),r=n%60;return`${String(o).padStart(2,"0")}:${String(r).padStart(2,"0")}`},Ei=({icon:n,title:o,titleColor:r,titleSize:a=vo.S,subTitle:s,subTitleColor:l,subTitleSize:d=vo.XXXS,startedAt:c,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:y,visualIcon:b=et})=>{const v=i(),[E,S]=zt(()=>c?vi(c):"");Bt(()=>{if(!c)return;S(vi(c));const e=setInterval(()=>S(vi(c)),1e3);return()=>clearInterval(e)},[c]);const $=r||v.v2.colors.white[500],C=l||v.v2.colors.silver[200],x=p||v.v2.colors.black[500];return e(di,{$gap:16,$alignItems:"center",children:[y?t(qr,{scale:1.7,icon:b}):h?t(jr,{percentage:f}):g?t(Yr,{scale:m}):null,(o||s||c||n||u)&&e(di,{$gap:8,$alignItems:"center",children:[e(li,{$gap:4,children:[n&&t(n,{}),u?t(bi,{align:"center",size:a,$titleColor:$,$gradientColor:x,nowrap:!0,children:o||"Loading..."}):o?t(xo,{align:"center",size:a,color:$,children:o}):null]}),s?t(xo,{align:"center",size:d,color:C,children:s}):null,E?t(xo,{align:"center",size:d,color:$,children:E}):null]})]})},Si=(e,t)=>({[On.Default]:n=>ee({fill:Fr(t,e,"300"),...n}),[On.Info]:n=>rt({fill:Fr(t,e,"400"),...n}),[On.Error]:n=>ot({fill:Fr(t,e,"500"),...n}),[On.Warning]:n=>nt({fill:Fr(t,e,"500"),...n}),[On.Success]:n=>p({fill:Fr(t,e,"500"),...n}),[On.Loading]:e=>Ei({withSpinnerOld:!0,...e}),[On.Disabled]:n=>h({fill:Fr(t,e,"400"),...n}),[On.Unknown]:n=>tt({fill:Fr(t,e,"300"),...n})}[e]),$i=e=>{switch(e){case Mn.Success:return On.Success;case Mn.Error:case Mn.Failure:return On.Error;case Mn.Notice:return On.Warning;case Mn.Unsupported:case Mn.Unknown:return On.Info;case Mn.Irrelevant:case Mn.Disabled:return On.Disabled;case Mn.Waiting:return On.Loading;case Mn.Pending:default:return On.Default}},Ci=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},xi={redis:f,mysql:v,postgresql:y,postgres:y,kafka:m,elasticsearch:be,clickhouse:we,oracle:J,aws:it},wi={sts:yt,dynamodb:ft,s3:j,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:xe},Ti=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=xi[n.toLowerCase()];if(e)return e}const o=t["messaging.system"];if(o){const e=xi[o.toLowerCase()];if(e)return e}const r=t["rpc.system"];if(r?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=wi[e];if(t)return t}return it}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(xi))if(i.includes(e))return t;return ze},Oi=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:n,kind:o,region:r}=e;return{namespace:t,name:n,kind:o,region:r||void 0}},Ni=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=Fo(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&n.push(...e.items[r].fields.map(e=>({...e,initialValue:o[e.name]})))}return n},Ai=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==On.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1};function Ii(e){if(!e||0===e.length)return null;const t=[],n=[],o=[];for(const r of e){if(!r)continue;const e=r.workloadName??"",i=r.workloadKind??"",a=r.workloadNamespace??"",s=r.workloadLanguage??"";e||i?t.push({namespace:a,kind:i,name:e}):a&&n.push(a),s&&o.push(s)}return 0===t.length&&0===n.length&&0===o.length?null:{sources:t,namespaces:n,languages:o}}function _i(e){if(!e)return null;const t=[];for(const n of e.sources??[])t.push({workloadName:n.name||null,workloadKind:n.kind||null,workloadNamespace:n.namespace||null});for(const n of e.namespaces??[])t.push({workloadNamespace:n});for(const n of e.languages??[])t.push({workloadLanguage:n});return t.length?t:null}function Ri(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:Ii(t??null)}}function Di(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:_i(t??null)}}const ki=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Li=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Pi=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},Mi=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Ui=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Fi=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,zi=e=>Fi.test(e),Bi=e=>e?.map(({status:e,type:t,reason:n,message:o})=>({status:e?.toLowerCase(),type:yo(t),reason:n?yo(n):"",message:o}))||[],Hi=(e,t)=>{const n=Fo(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:n[e.name]??null})).filter(e=>null!==e.value):Object.entries(n).map(([e,t])=>({key:e,name:e,value:t}))},Wi=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Zn[e]):[],ji=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Zn[e]):[],Gi=e=>{let t=e.replace(/[^\d.]/g,"");const n=t.indexOf(".");return-1!==n&&(t=t.slice(0,n+1)+t.slice(n+1).replace(/\./g,"")),t},Xi=e=>e.replace(/[^\d]/g,""),Vi=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Ki=e=>{let t="";try{const n=JSON.parse(e);t=Array.isArray(n)?n.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof n&&null!==n?Object.entries(n).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(n){t=e}return t},Yi=e=>{const t=e.fields.reduce((e,{key:t,value:n})=>{const o=(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}}})(n);return void 0!==o&&e.push({key:t,value:o}),e},[]);return{...e,fields:t}},Ji=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const o=e[n];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>Ji(e)))}else if("object"==typeof o&&null!==o){const e=Ji(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},qi=(e,t=2)=>JSON.stringify(e||{},null,t),Qi=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Zi=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),ea=on("v1.33"),ta=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],na=(e,t)=>{if(e!==bn.K8s)return!1;const n=on(t);return n>0&&n<ea},oa=on("v1.20"),ra=(e,t)=>{if(e!==bn.K8s)return!0;const n=on(t);return!(n>0)||n>=oa},ia=e=>e?ta.map(t=>e[t]??null):[],aa={PID:"process.pid",VPID:"process.vpid"},sa={[Sn.Go]:"Go",[Sn.Java]:"Java",[Sn.JavaScript]:"Node.js",[Sn.Python]:"Python",[Sn.DotNet]:".NET",[Sn.CSharp]:"C#",[Sn.CPlusPlus]:"C++",[Sn.Php]:"PHP",[Sn.Ruby]:"Ruby",[Sn.Rust]:"Rust",[Sn.Swift]:"Swift",[Sn.Elixir]:"Elixir",[Sn.MySql]:"MySQL",[Sn.Nginx]:"Nginx",[Sn.Postgres]:"PostgreSQL",[Sn.Redis]:"Redis",[Sn.Kafka]:"Kafka",[Sn.Ignored]:"Ignored",[Sn.Unknown]:"Unknown",[Sn.Processing]:"Processing",[Sn.NoContainers]:"No Containers",[Sn.NoRunningPods]:"No Running Pods"},la=[{id:Sn.Go,label:sa[Sn.Go],icon:gr(Sn.Go)},{id:Sn.Java,label:sa[Sn.Java],icon:gr(Sn.Java)},{id:Sn.JavaScript,label:sa[Sn.JavaScript],icon:gr(Sn.JavaScript)},{id:Sn.Python,label:sa[Sn.Python],icon:gr(Sn.Python)},{id:Sn.Php,label:sa[Sn.Php],icon:gr(Sn.Php)},{id:Sn.Ruby,label:sa[Sn.Ruby],icon:gr(Sn.Ruby)},{id:Sn.Rust,label:sa[Sn.Rust],icon:gr(Sn.Rust)},{id:Sn.DotNet,label:sa[Sn.DotNet],icon:gr(Sn.DotNet)},{id:Sn.CSharp,label:sa[Sn.CSharp],icon:gr(Sn.CSharp)},{id:Sn.CPlusPlus,label:sa[Sn.CPlusPlus],icon:gr(Sn.CPlusPlus)},{id:Sn.Swift,label:sa[Sn.Swift],icon:gr(Sn.Swift)},{id:Sn.Elixir,label:sa[Sn.Elixir],icon:gr(Sn.Elixir)}],da={id:Pn.OpentelemetryEbpfInstrumentation,label:Pn.OpentelemetryEbpfInstrumentation,icon:bt},ca={[Sn.Go]:{community:[{id:Pn.GolangCommunity,label:Pn.GolangCommunity,icon:gr(Sn.Go)},da],enterprise:[{id:Pn.GolangEnterprise,label:Pn.GolangEnterprise,icon:gr(Sn.Go)}]},[Sn.JavaScript]:{community:[{id:Pn.NodejsCommunity,label:Pn.NodejsCommunity,icon:gr(Sn.JavaScript)},da],enterprise:[{id:Pn.NodejsEnterprise,label:Pn.NodejsEnterprise,icon:gr(Sn.JavaScript)}]},[Sn.Python]:{community:[{id:Pn.PythonCommunity,label:Pn.PythonCommunity,icon:gr(Sn.Python)},da],enterprise:[{id:Pn.PythonEnterprise,label:Pn.PythonEnterprise,icon:gr(Sn.Python)}]},[Sn.Java]:{community:[{id:Pn.JavaCommunity,label:Pn.JavaCommunity,icon:gr(Sn.Java)},da],enterprise:[{id:Pn.JavaEnterprise,label:Pn.JavaEnterprise,icon:gr(Sn.Java)},{id:Pn.JavaEbpfInstrumentations,label:Pn.JavaEbpfInstrumentations,icon:gr(Sn.Java)}]},[Sn.DotNet]:{community:[{id:Pn.DotNetCommunity,label:Pn.DotNetCommunity,icon:gr(Sn.DotNet)},da],enterprise:[{id:Pn.DotNetEnterprise,label:Pn.DotNetEnterprise,icon:gr(Sn.DotNet)}]},[Sn.Ruby]:{community:[{id:Pn.RubyCommunity,label:Pn.RubyCommunity,icon:gr(Sn.Ruby)},da],enterprise:[{id:Pn.RubyEnterprise,label:Pn.RubyEnterprise,icon:gr(Sn.Ruby)}]},[Sn.Php]:{community:[{id:Pn.PhpCommunity,label:Pn.PhpCommunity,icon:gr(Sn.Php)},da],enterprise:[]},[Sn.CSharp]:{community:[],enterprise:[{id:Pn.CPlusPlusEnterprise,label:Pn.CPlusPlusEnterprise,icon:gr(Sn.CSharp)}]},[Sn.MySql]:{community:[],enterprise:[{id:Pn.MySqlEnterprise,label:Pn.MySqlEnterprise,icon:gr(Sn.MySql)}]},[Sn.CPlusPlus]:{community:[da],enterprise:[]},[Sn.Rust]:{community:[da],enterprise:[]},[Sn.Swift]:{community:[da],enterprise:[]},[Sn.Elixir]:{community:[da],enterprise:[]},[Sn.Nginx]:{community:[da],enterprise:[]},[Sn.Postgres]:{community:[da],enterprise:[]},[Sn.Redis]:{community:[da],enterprise:[]},[Sn.Kafka]:{community:[da],enterprise:[]},[Sn.Ignored]:{community:[],enterprise:[]},[Sn.Unknown]:{community:[da],enterprise:[]},[Sn.Processing]:{community:[],enterprise:[]},[Sn.NoContainers]:{community:[],enterprise:[]},[Sn.NoRunningPods]:{community:[],enterprise:[]}},ua="*",pa=e=>!!e?.includes(ua),ha=e=>e?.length?pa(e)?[ua]:e:[],ga=e=>{if(e?.length&&!pa(e))return e.filter(e=>e!==ua)},ma=e=>e===ua?"All languages":sa[e]??e,fa=e=>e===ua?vt:gr(e),ya=on("v1.26"),ba=(e,t)=>{if(e!==bn.K8s)return!1;const n=on(t);return!(n>0)||n>=ya},va=[{type:Un.CodeAttributes,icon:Or(Un.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:[Sn.Go,Sn.Python,Sn.JavaScript]},{type:Un.CustomInstrumentation,icon:Or(Un.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:[Sn.Go,Sn.Java,Sn.Php]},{type:Un.HeadersCollection,icon:Or(Un.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:[Sn.Go,Sn.Java,Sn.JavaScript]},{type:Un.PayloadCollection,icon:Or(Un.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:[Sn.Go,Sn.JavaScript]}],Ea=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Or(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},Sa="Recommendations",$a="Optimize your observability setup with actionable recommendations.",Ca="Recommended",xa="Applied",wa="Dismissed",Ta="Not applicable",Oa={[to.Recommended]:Ca,[to.Applied]:xa,[to.Dismissed]:wa,[to.NotApplicable]:Ta},Na="Accept",Aa="Dismiss",Ia="Restore",_a="Docs",Ra="Benefits",Da="Considerations",ka="Apply Recommendation",La="Apply via UI",Pa="Apply via GitOps",Ma="Via UI",Ua="Via GitOps",Fa="Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.",za="There are 2 ways to apply this recommendation.",Ba="Odigos applies the selected change immediately.",Ha="Commit the configuration to your repository and let your GitOps controller apply it.",Wa="UI changes apply only to this cluster and will not carry over if you re-install odigos.",ja="No recommendations",Ga="There are no recommendations for this cluster right now.",Xa="This recommendation does not currently apply to your cluster.",Va="Recommendation dismissed",Ka="Recommendation restored",Ya="Recommendation applied successfully",Ja="Failed to apply recommendation",qa={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.'},Qa={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."},Za={[hn.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[hn.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[hn.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},es="Cancel",ts="Save",ns="Edit rule",os="Edit auto rule",rs="Create rule",is="Delete rule",as="Save",ss="Create your first rule",ls="No Rules Exist",ds="No Results",cs=e=>`No rules match the search term "${e}"`,us="Rule name",ps="Rule type",hs="Select the type of condition that makes a trace highly relevant.",gs="Rule Enabled",ms="Rule Disabled",fs="Enabled",ys="Disabled",bs="Note",vs="HTTP route",Es="Method",Ss="Keep Percentage",$s="Keep traces with duration larger than",Cs="Keep traces with errors",xs="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",ws="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",Ts="Custom percentage",Os="Disabled rule",Ns="Sample",As="Keep all",Is="Drop all",_s="Operation type",Rs="HTTP route prefix",Ds="Templated path",ks="Templated path prefix",Ls="Kafka topic",Ps="Custom duration (ms)",Ms="No preview available",Us="Server address",Fs="Drop at most this percentage of matching traces",zs="Unnamed rule",Bs="Sampling Preview",Hs="Source Scope",Ws="Unknown source",js="Operation",Gs="Duration",Xs="Errors",Vs="Keep Percentage",Ks="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Ys="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.",Js="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",qs="Retain traces with errors from the selected services and operations.",Qs="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",Zs="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",el={highlyRelevant:Qs,noisy:Zs,costReduction:void 0},tl="Type rule name",nl="Add note here...",ol="Type here",rl="Search source name",il="e.g. collector.my.vendor.com",al="Optional notes (not used by the system). Add any context or details for this sampling rule.",sl="Rule will apply to all sources in the cluster",ll="If multiple source scopes are set, they must all match simultaneously.",dl="All sources",cl="-",ul="All",pl="Sources",hl="Namespaces",gl="Languages",ml="any of",fl="AND",yl="All operations",bl="HTTP server endpoint",vl="HTTP client endpoint",El="Kafka consumer",Sl="Kafka producer",$l="Sampling Rules",Cl='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',xl="Refresh",wl="Create rule",Tl="Sampling docs",Ol="75vw",Nl="Delete rule?",Al="Are you sure you want to delete this sampling rule?",Il="Delete",_l="Cancel",Rl="Kubernetes Health Probes",Dl="Keep All Error Traces",kl="Drop Traces Cluster-Wide",Ll="A rule with the same matching conditions already exists.",Pl="Create this rule as-is?",Ml="This rule still uses the default configuration.\nDo you want to create it anyway?",Ul="Rule preview",Fl="Continue editing",zl="Create 'Noisy Operation Kubernetes Health Probes' rule",Bl="Edit 'Noisy Operation Kubernetes Health Probes' rule",Hl="Automatically detect and sample health probe traces across the cluster.",Wl="Create 'Highly Relevant Operations' rule",jl="Edit 'Highly Relevant Operations' rule",Gl="Automatically keep all error traces across the entire cluster.",Xl="Create 'Cost Reduction' rule",Vl="Edit 'Cost Reduction' rule",Kl="Automatically drop a percentage of traces across the entire cluster.",Yl="Skip setup",Jl="Start setup",ql="Next",Ql="Go to Sampling",Zl="Read more",ed="Welcome to Sampling",td="Cut costs without losing what matters",nd="Odigos sampling works in three stages:",od="Filter noisy traffic",rd="Remove non-actionable traces like health checks.",id="Guarantee highly relevance operations",ad="Keep traces with errors, high latency, or mission-critical endpoints/services.",sd="Reduce cost",ld="Sample routine traffic using percentages.",dd="Sampling does not drop individual spans - it keeps or drops the entire trace.",cd="Filter noisy operations",ud="Cut traces with little or no observability value (health-checks, metric scarping, etc)",pd="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.",hd="Preset Rules",gd="Kubernetes Health Probes",md="Automatically ignore health checks",fd="You can review, adjust, and add additional custom rules later.",yd="Choose your sampling strategy",bd="Pick the approach that best fits your balance of cost vs data-completeness",vd="Keep List",Ed="Budget Friendly",Sd="Define which traces must be kept, while all others are sampled by default to minimize cost.",$d="Cost-oriented - keeps only what you explicitly select.",Cd="Best for very large clusters with high volumes of traces and high costs.",xd="Higher risk of missing important traces without ongoing review.",wd="Drop List",Td="Safe Choice",Od="Define which traces must be aggressively dropped, while all others are kept by default.",Nd="Preserves most data unless explicitly filtered.",Ad="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Id="Advanced",_d="Maximum Flexibility",Rd="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Dd="'Keep List' profile",kd="Protect important traces",Ld="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:",Pd="Traces with errors",Md="Slow requests (duration above threshold)",Ud="Mission-Critical endpoints or services",Fd="Services under test or evaluation",zd="New deployments",Bd="You can review, adjust, and add rules once onboarding is complete.",Hd="Common Rules",Wd="Preset Rules",jd="Error collection - entire cluster",Gd="Keep all traces with errors",Xd="Ambient sampling percentage",Vd="'Drop List' profile",Kd="Reduce high-volume traffic",Yd="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.",Jd="Advanced Configuration",qd="Configure sampling rules",Qd="Advanced mode allows you to configure all sampling categories:",Zd="Noise Filtering - remove non-actionable traces",ec="Highly Relevance - guarantee important traces are kept",tc='Cost Control - drop traces for "Normal" operations',nc="Rules can target:",oc="Services",rc="HTTP Endpoints",ic="DB Operations",ac="Errors",sc="Latency and more...",lc="Sampling configured successfully!",dc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",cc="Odigos will now:",uc="Filter noisy operations",pc="Guarantee important traces",hc="Reduce cost using controlled sampling",gc="Recommended",mc={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."},fc={noisy:zl,highlyRelevant:Wl,costReduction:Xl},yc={noisy:Bl,highlyRelevant:jl,costReduction:Vl},bc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},vc=[{id:Vn.Logs,value:"Logs"},{id:Vn.Metrics,value:"Metrics"},{id:Vn.Traces,value:"Traces"},{id:Vn.Profiles,value:"Profiles"}],Ec=6048e5,Sc=Mt()(Zt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Ao.DARK_MODE,storage:"undefined"!=typeof window?en(()=>localStorage):void 0})),$c={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:To},Cc=Mt(e=>({...$c,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const n=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(n).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e($c)}));var xc;(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"})(xc||(xc={}));const wc=e=>`add-${yo(e).replaceAll(" ","-").toLowerCase()}`,Tc=e=>`edit-${yo(e).replaceAll(" ","-").toLowerCase()}`,Oc=Mt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Nc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Ac=Mt(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:Nc})),Ic=Mt((e,t)=>({notifications:[],addNotification:n=>{const o=new Date,r=`${o.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:r,time:o.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&e.notifications.splice(n,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var _c;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(_c||(_c={}));const Rc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Dc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),kc=Mt((e,t)=>({progress:{},setProgress:(n,o)=>{const r=t(),i=Rc();return"number"==typeof o.total&&(i.total=o.total),"number"==typeof o.current&&(i.current=o.current),Array.isArray(o.list)&&(i.list=o.list),e({progress:{...r.progress,[n]:Dc(i)}})},addProgress:(n,o,r)=>{const i=t(),a=Rc(n,i.progress);return a.current+=o,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...i.progress,[n]:Dc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Lc=Mt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Pc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Mc=(e,t)=>e.destinationType.type!==t.destinationType.type,Uc=Mt(e=>({...Pc,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=>Mc(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const n=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(n).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Mc(e,t))})),clearStore:()=>e(()=>({...Pc}))})),Fc=e=>{function t(){return void 0===e?{}:qo(e)}const[n,o]=zt(t()),[r,i]=zt({}),[a,s]=zt(t()),l=Ht((e,t)=>{const n={};if(!t||"object"!=typeof t)return e?{...e}:n;for(const[o,r]of Object.entries(e)){const e=o;if(Array.isArray(r)){const o=t[e];Array.isArray(o)&&r.length===o.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,o[t])).length:e===o[t])||(n[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])n[e]=t[e];else{const o=l(r,t[e]);Object.keys(o).length>0&&(n[e]=o)}else r!==t[e]&&(n[e]=t[e])}for(const o of Object.keys(t))o in e||(n[o]=t[o]);return n},[]),d=(e,t)=>0===Object.keys(l(e,t)).length,c=Wt(()=>!d(a,n),[a,n]);Bt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(r)&&(o(r),s(r))},[e,n]);const u=Ht((e,t)=>Qo("formData"===e?n:r,t.toString()),[n,r]);return{formData:n,formErrors:r,getFormDiff:l,areFormValuesEqual:d,isFormDirty:c,handleFormChange:(e,t,n)=>{if(e){const n=e.toString(),r=n.split(".");1===r.length?o(n=>({...n,[e]:t})):o(e=>{const n=qo(e);let o=n;for(let e=0;e<r.length-1;e++){const t=r[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[r[r.length-1]]=t,n}),i(e=>{const t=n,o=r[r.length-1],i=void 0!==e[t],a=o!==t&&void 0!==e[o];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[o],s})}else n&&o({...n})},handleErrorChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?i(n=>({...n,[e]:t})):i(e=>{const o=qo(e);let r=o;for(let e=0;e<n.length-1;e++){const t=n[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[n[n.length-1]]=t,o})}else n&&i({...n})},resetFormData:e=>{const n=e||t();o(n),s(n),i({})},getNestedValue:u}},zc={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Bc=()=>{const{addNotification:e}=Ic(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:r,resetFormData:i}=Fc(zc);return{formData:t,formErrors:n,handleFormChange:o,resetFormData:i,validateForm:n=>{const o={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":ki(t)&&(o[e]=Io.FIELD_IS_REQUIRED)}}),t.type===rn.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=Io.FIELD_IS_REQUIRED;break}}return i=!Object.values(o).length,!i&&n?.withAlert&&e({type:On.Warning,title:n.alertTitle,message:Io.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,o),i},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:r,disabled:i,fields:a})=>{const s={...qo(zc),type:e,signals:t,name:n,notes:r,disabled:i};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case sn.LabelsAttributes:case sn.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(n=t)&&Array.isArray(n)?n.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):n;break;case sn.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(o=t,o?.length?o.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):o);break;case sn.CollectContainerAttributes:case sn.CollectReplicaSetAttributes:case sn.CollectWorkloadId:case sn.CollectClusterId:case sn.ClusterAttributes:case sn.OverwriteExistingValues:case sn.AttributeNamesToDelete:case sn.Renames:case sn.PiiCategories:case sn.ExtractAttribute:s.fields||(s.fields={}),s.fields[e]=t}var n,o}),o(void 0,void 0,s)}}},Hc=e=>{Bt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Wc=()=>{const e=jt(null),[t,n]=zt(0),[o,r]=zt(0);return Bt(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();n(t),r(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}};var jc;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(jc||(jc={}));const Gc=o.div`
|
|
196
|
-
width: ${({$size:e})=>1.5*e}px;
|
|
197
|
-
height: ${({$size:e})=>1.5*e}px;
|
|
198
|
-
display: flex;
|
|
199
|
-
align-items: center;
|
|
200
|
-
justify-content: center;
|
|
201
|
-
border-radius: 100%;
|
|
202
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
203
|
-
&:hover {
|
|
204
|
-
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
205
|
-
}
|
|
206
|
-
`,Xc=({"data-id":e,icon:n,size:o=jc.S,onClick:r,disabled:i})=>t(Gc,{"data-id":e,$size:o,$disabled:i,onClick:e=>{r&&!i&&(e.stopPropagation(),r(e))},children:t(n,{size:o})}),Vc=({onDone:e}={})=>{const[n,o]=zt(!1),[r,i]=zt(-1),a=Ht(async(t,r)=>{if(!n){if(o(!0),void 0!==r&&i(r),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(()=>{o(!1),i(-1)},1e3)}},[n,e]);return{CopyButton:Ht(({value:e,size:o})=>t(Xc,{icon:n?Et:St,size:o,onClick:()=>a(e)}),[n]),isCopied:n,copiedIndex:r,clickCopy:a}},Kc=e=>{const{addNotification:t}=Ic(),{formData:n,handleFormChange:o,formErrors:r,handleErrorChange:i,resetFormData:a}=Fc(e);return{formData:n,formErrors:r,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let r=!0;return n.name?Li(n.name)?o.name=void 0:(r=!1,o.name=Io.ILLEGAL_K8S_LABEL):(r=!1,o.name=Io.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:On.Warning,title:e.alertTitle,message:Io.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),r},loadFormWithDrawerItem:({name:t})=>{const n={...qo(e),name:t};o(void 0,void 0,n)}}},Yc={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},Jc=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=Ic(),{formData:r,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Fc(Yc),[d,c]=zt([]),[u,p]=zt([]);return Bt(()=>{var e;p(d?(e=d,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:o,displayName:r,initialValue:i,renderCondition:a}=e;if(n===wn.Dropdown){const e=Fo(o,{}),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:n,title:r,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:n,title:r,value:i,renderCondition:a,...Fo(o,{})}})).map(e=>{if(n){const t="string"==typeof n?Fo(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[d,n]),Bt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Bt(()=>{if(t&&0===Wi(r.exportedSignals).length){const{logs:e,metrics:n,traces:o}=t;a("exportedSignals",{logs:e.supported,metrics:n.supported,traces:o.supported})}},[t,r.exportedSignals]),{formData:r,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let n=!0;return u.forEach(({name:e,value:o,required:r})=>{r&&!o&&(n=!1,t[e]=Io.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:On.Warning,title:e.alertTitle,message:Io.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:o,fields:r})=>{const i={...qo(Yc),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(Fo(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:d,setYamlFields:c,dynamicFields:u,setDynamicFields:p}},qc={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Hn.HttpRequest]:null,[Hn.HttpResponse]:null,[Hn.DbQuery]:null,[Hn.Messaging]:null},codeAttributes:{[Fn.Column]:null,[Fn.FilePath]:null,[Fn.Function]:null,[Fn.LineNumber]:null,[Fn.Namespace]:null,[Fn.StackTrace]:null},headersCollection:null,customInstrumentations:{[Bn.Java]:null,[Bn.Golang]:null,[Bn.Php]:null},networkMetrics:null},Qc=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=Fc(qc);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:r,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,sourceScopes:r,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:d})=>{const c={...qo(qc),ruleName:e,notes:t,disabled:o,sourceScopes:r??null,networkMetrics:d??null};i&&(c.payloadCollection={[Hn.HttpRequest]:i[Hn.HttpRequest]?{}:null,[Hn.HttpResponse]:i[Hn.HttpResponse]?{}:null,[Hn.DbQuery]:i[Hn.DbQuery]?{}:null,[Hn.Messaging]:i[Hn.Messaging]?{}:null}),a&&(c.codeAttributes={[Fn.Column]:a[Fn.Column]||null,[Fn.FilePath]:a[Fn.FilePath]||null,[Fn.Function]:a[Fn.Function]||null,[Fn.LineNumber]:a[Fn.LineNumber]||null,[Fn.Namespace]:a[Fn.Namespace]||null,[Fn.StackTrace]:a[Fn.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Bn.Java]:l[Bn.Java]||null,[Bn.Golang]:l[Bn.Golang]||null,[Bn.Php]:l[Bn.Php]||null}),n(void 0,void 0,c)}}},Zc=({active:e,key:t,withAltKey:n,withCtrlKey:o,withShiftKey:r,withMetaKey:i},a)=>(Bt(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!r||r&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,n,o,r,i,a]),null),eu="data-ignore-outside-click",tu=(e,t)=>{const n=jt(t);n.current=t,Bt(()=>{const t=t=>{const o=t.target;e.current&&!e.current.contains(o)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(eu))return!0;t=t.parentNode}return!1})(o)||n.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},nu=(e,{axis:t="horizontal",deps:n=[]}={})=>{const[o,r]=zt(!1),i=e=>{const n="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(n)};return Gt(()=>{const t=e.current;if(!t)return;i(t);const n=new ResizeObserver(()=>i(t));return n.observe(t),()=>n.disconnect()},[t,...n]),Bt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const n=e.current;!t&&n&&i(n)}),()=>{t=!0}},[t,...n]),o},ou=(e,{behavior:t="smooth",block:n="center",inline:o,delayMs:r=50}={})=>{const i=jt(null);return Bt(()=>{if(!e)return;const a=window.setTimeout(()=>{i.current?.scrollIntoView({behavior:t,block:n,inline:o})},r);return()=>window.clearTimeout(a)},[e,t,n,o,r]),i},ru=({sectionNames:e,threshold:t=.4})=>{const[n,o]=zt(e[0]||""),[r,i]=zt(null),a=jt({}),s=jt(!1),l=jt(!1),d=Ht((e,t)=>{a.current[e]=t},[]),c=Ht(e=>{i(e)},[]),u=Ht(e=>{l.current=!0,o(e)},[]);return Bt(()=>{if(!l.current)return;l.current=!1;const e=a.current[n];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[n]),Bt(()=>{const n=a.current,i=e.map(e=>n[e]).filter(Boolean);if(!i.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&&o(e);break}},{threshold:t,root:r});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,r]),{selectedSection:n,setSelectedSection:u,setSectionRef:d,setScrollContainerRef:c}},iu=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n,positionMode:o="local"}={})=>{const r=jt(null),[i,a]=zt(!1),[s,l]=zt({top:0,left:0}),[d,c]=zt({edge:"top",align:"left"});return tu(r,()=>{i&&(a(!1),n?.())}),{popupRef:r,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:d,handlePosition:(n,i)=>{if("local"===o)return void l({top:i,left:n});const{innerWidth:a,innerHeight:s}=window,d=r.current?.clientWidth||t,u=r.current?.clientHeight||e,p=n/a,h=p<1/3?"left":p>2/3?"right":"center";c({edge:i<s/2?"top":"bottom",align:h});let g=i,m=n;if(g>=s/2&&(g+=-u),"center"===h){m=n-d/2;const e=8;m=Math.max(e,Math.min(m,a-d-e))}else m>=a/2&&(m=n-d);l({top:g,left:m})}}},au=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?Fo(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),su={otelServiceName:"",currentStreamName:""},lu=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=Fc(su);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:r,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const o={...qo(su),otelServiceName:e||t.name||""};n(void 0,void 0,o)}}};try{Vt.addDefaultLocale(Kt)}catch(e){}const du=new Vt(Kt.locale),cu=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{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"}],uu=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),pu=()=>{const[e,t]=zt(0);return Bt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Ht(e=>{try{return du.format(uu(e))}catch(e){return"-"}},[e]),formatDurationAgo:Ht((e,{units:t=2,style:n="long",suffix:o=!0}={})=>{try{const r=uu(e);let i=Math.max(0,Date.now()-r.getTime());if(i<1e3)return"short"===n?"0s":o?"just now":"0 seconds";const a=[];for(const e of cu){if(a.length===t)break;const o=Math.floor(i/e.ms);if(!(o<=0&&0===a.length)){if(o<=0)break;i-=o*e.ms,a.push("short"===n?`${o}${e.short}`:`${o} ${1===o?e.long[0]:e.long[1]}`)}}const s="short"===n?a.join(""):a.join(" ");return o&&"long"===n?`${s} ago`:s}catch(e){return"-"}},[e])}},hu=o.div`
|
|
207
|
-
width: ${({$fullWidth:e,$inline:t})=>e?"100%":t?void 0:"fit-content"};
|
|
208
|
-
position: relative;
|
|
209
|
-
display: ${({$inline:e})=>e?"inline":"flex"};
|
|
210
|
-
align-items: center;
|
|
211
|
-
gap: 4px;
|
|
212
|
-
|
|
213
|
-
${({$ellipsis:e})=>e&&r`
|
|
214
|
-
overflow: hidden;
|
|
215
|
-
text-overflow: ellipsis;
|
|
216
|
-
white-space: nowrap;
|
|
217
|
-
`}
|
|
218
|
-
`,gu=o.div`
|
|
219
|
-
position: fixed;
|
|
220
|
-
top: ${({$top:e})=>e}px;
|
|
221
|
-
left: ${({$left:e})=>e}px;
|
|
222
|
-
z-index: ${({theme:e})=>e.v2.zIndex.tooltip};
|
|
223
|
-
|
|
224
|
-
display: flex;
|
|
225
|
-
flex-direction: column;
|
|
226
|
-
align-items: stretch;
|
|
227
|
-
min-width: 0;
|
|
228
|
-
|
|
229
|
-
${({$withPointerEvents:e})=>!e&&"pointer-events: none;"}
|
|
230
|
-
`,mu=o.div`
|
|
231
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
232
|
-
border-radius: 4px;
|
|
233
|
-
padding: 8px;
|
|
234
|
-
max-width: ${({$maxWidth:e})=>void 0!==e?e:"270px"};
|
|
235
|
-
box-sizing: border-box;
|
|
236
|
-
min-width: 0;
|
|
237
|
-
`,fu=o.div`
|
|
238
|
-
display: flex;
|
|
239
|
-
flex-direction: column;
|
|
240
|
-
align-items: flex-start;
|
|
241
|
-
gap: 8px;
|
|
242
|
-
width: 100%;
|
|
243
|
-
min-width: 0;
|
|
244
|
-
`,yu=o.div`
|
|
245
|
-
display: flex;
|
|
246
|
-
width: 100%;
|
|
247
|
-
flex-shrink: 0;
|
|
248
|
-
box-sizing: border-box;
|
|
249
|
-
line-height: 0;
|
|
250
|
-
|
|
251
|
-
${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
|
|
252
|
-
${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
|
|
253
|
-
${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
|
|
254
|
-
`,bu=o.div`
|
|
255
|
-
width: 0;
|
|
256
|
-
height: 0;
|
|
257
|
-
border-style: solid;
|
|
258
|
-
border-left: 6.5px solid transparent;
|
|
259
|
-
border-right: 6.5px solid transparent;
|
|
260
|
-
flex-shrink: 0;
|
|
261
|
-
|
|
262
|
-
${({$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 `}
|
|
263
|
-
`,vu=({withIcon:o,titleIcon:r,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=i(),f=Wt(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),y=f.join(" "),{popupRef:b,popupOpen:v,setPopupOpen:E,popupPosition:S,arrowPlacement:$,handlePosition:C}=iu({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*y.length,300)}),x=Wt(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,n,o]=e.split('"');return{original:e,href:n,label:o.replace("</a>","").replace(">","")}})})(e)?.length),[f]),w=e=>{const{type:t,clientX:n,clientY:o}=e;x?C(S.left||n,S.top||o):C(n,o),E("mouseleave"!==t)};if(!f.length&&!h)return t(n,{children:d});const T=v&&f.length>0;return e(hu,{$fullWidth:c,$ellipsis:g,$inline:u,onMouseEnter:w,onMouseMove:w,onMouseLeave:w,children:[d,o&&t(tt,{fill:m.v2.colors.white[500]}),T&&Yt.createPortal(e(gu,{ref:b,$top:S.top,$left:S.left,$withPointerEvents:x,onMouseEnter:x?w:void 0,children:["top"===$.edge&&t(yu,{$align:$.align,children:t(bu,{$pointsUp:!0})}),t(mu,{$maxWidth:p,children:e(fu,{children:[(!!r||!!a)&&e(li,{$gap:4,style:{alignItems:"center"},children:[r&&t(r,{size:16},"icon"),a&&t(xo,{size:vo.XS,children:a},"title")]}),f.map((e,n)=>t(xo,{size:vo.XXXS,children:e},n)),!!l&&t(xo,{size:vo.XXXS,color:Eo.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===$.edge&&t(yu,{$align:$.align,children:t(bu,{$pointsUp:!1})})]}),document.body)]})},Eu=o.div`
|
|
264
|
-
display: flex;
|
|
265
|
-
align-items: center;
|
|
266
|
-
justify-content: center;
|
|
267
|
-
gap: 4px;
|
|
268
|
-
min-width: ${({$minWidth:e})=>e};
|
|
269
|
-
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
270
|
-
padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
|
|
271
|
-
border-radius: 100px;
|
|
272
|
-
background-color: ${({$backgroundColor:e})=>e};
|
|
273
|
-
`,Su=({label:n,leftIcon:o,rightIcon:r,tooltip:a,status:s=On.Unknown,useSecondaryTone:l=!1,invertColors:d=!1,textSize:c,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=i(),f=n?.toString(),y=On.Loading===s,b=s?[On.Disabled,On.Loading].includes(s)?Fr(m,s,d?"400":"700"):[On.Unknown].includes(s)?Fr(m,s,"600"):Fr(m,s,d?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(d&&![On.Unknown].includes(s)?b:[On.Disabled,On.Loading].includes(s)?m.v2.colors.grey[400]:[On.Error,On.Warning,On.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),E=p||(d&&![On.Unknown].includes(s)?[On.Disabled,On.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:b);return t(vu,{text:a,fullWidth:g,children:e(Eu,{$backgroundColor:E,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!y||f&&o?o?t(o,{fill:v,size:c?m.v2.text.size[c]+2:14}):null:t(Ei,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?y?t(Ei,{withGradient:!0,title:f,titleSize:c||vo.XXS}):t(xo,{color:v,size:c||vo.XXS,nowrap:!0,children:f}):null,r&&t(r,{fill:v,size:c?m.v2.text.size[c]+2:14})]})})};var $u,Cu;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})($u||($u={})),(e=>{e.S="small",e.M="medium",e.L="large"})(Cu||(Cu={}));const xu=o.button`
|
|
274
|
-
display: flex;
|
|
275
|
-
align-items: center;
|
|
276
|
-
justify-content: center;
|
|
277
|
-
gap: 8px;
|
|
278
|
-
${({$fullWidth:e})=>e&&r`
|
|
279
|
-
width: 100%;
|
|
280
|
-
`}
|
|
281
|
-
border: none;
|
|
282
|
-
border-radius: 6px;
|
|
283
|
-
${({$size:e,$hasLabel:t})=>e===Cu.S?r`
|
|
284
|
-
height: 32px;
|
|
285
|
-
${t?r`
|
|
286
|
-
padding: 8px 16px;
|
|
287
|
-
`:r`
|
|
288
|
-
width: 32px;
|
|
289
|
-
`}
|
|
290
|
-
`:e===Cu.M?r`
|
|
291
|
-
height: 38px;
|
|
292
|
-
${t?r`
|
|
293
|
-
padding: 8px 18px;
|
|
294
|
-
`:r`
|
|
295
|
-
width: 38px;
|
|
296
|
-
`}
|
|
297
|
-
`:r`
|
|
298
|
-
height: 44px;
|
|
299
|
-
${t?r`
|
|
300
|
-
padding: 8px 22px;
|
|
301
|
-
`:r`
|
|
302
|
-
width: 44px;
|
|
303
|
-
`}
|
|
304
|
-
`}
|
|
305
|
-
|
|
306
|
-
cursor: pointer;
|
|
307
|
-
&:disabled {
|
|
308
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
309
|
-
cursor: not-allowed;
|
|
310
|
-
}
|
|
311
|
-
&:enabled {
|
|
312
|
-
${({$withShadow:e})=>e?r`
|
|
313
|
-
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
314
|
-
`:""}
|
|
315
|
-
${({$variant:e})=>e===$u.Primary?r`
|
|
316
|
-
background-color: ${({theme:e})=>e.v2.colors.purple[500]};
|
|
317
|
-
&:hover {
|
|
318
|
-
background-color: ${({theme:e})=>e.v2.colors.purple[600]};
|
|
319
|
-
}
|
|
320
|
-
&:active {
|
|
321
|
-
background-color: ${({theme:e})=>e.v2.colors.purple[700]};
|
|
322
|
-
}
|
|
323
|
-
`:e===$u.Secondary?r`
|
|
324
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
325
|
-
&:hover {
|
|
326
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
327
|
-
}
|
|
328
|
-
&:active {
|
|
329
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
330
|
-
}
|
|
331
|
-
`:e===$u.Text?r`
|
|
332
|
-
background-color: transparent;
|
|
333
|
-
&:hover {
|
|
334
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
335
|
-
}
|
|
336
|
-
&:active {
|
|
337
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
338
|
-
}
|
|
339
|
-
`:""}
|
|
340
|
-
}
|
|
341
|
-
`,wu=Ut(({"data-id":o,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:d,variant:c=$u.Primary,size:u=Cu.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:y,onClick:b,...v},E)=>{const S=i(),$=p||(u===Cu.L?18:16),C=u===Cu.L?vo.S:vo.XS,x=f||(y?S.v2.colors.grey[400]:S.v2.colors.white[500]),[w,T]=zt(!1),O=!(!h&&!w),N=!(!y&&!O),A=Ht(async e=>{e.stopPropagation(),T(!0);try{await(b?.(e))}finally{T(!1)}},[b]);return t(xu,{ref:E,"data-id":o,$variant:c,$size:u,$fullWidth:g,$withShadow:m,$hasLabel:!!r,...v,disabled:N,onClick:N?void 0:A,children:t(vu,{text:a,withIcon:!s,children:O?t(Ei,r?{withGradient:!0,titleColor:x,titleSize:C}:{withSpinnerOld:!0}):e(n,{children:[l&&t(ci,{$width:"fit-content",children:t(l,{size:$,fill:x})}),r?t(xo,{size:C,weight:500,color:x,nowrap:!0,children:r}):null,d&&t(ci,{$width:"fit-content",children:t(d,{size:$,fill:x})})]})})})});wu.displayName=wu.name;const Tu={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"},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",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9"},orange:{600:"#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"}},Ou={v2:Tu.v2,darkMode:!0,colors:{...Tu.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:Tu.font_family},Nu={v2:Tu.v2,darkMode:!1,colors:{...Tu.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:Tu.font_family},Au=e=>e?Ou:Nu,Iu=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Tu,darkModeTheme:Ou,getTheme:Au,lightModeTheme:Nu},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.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 _u=({children:e})=>{const{darkMode:n}=Sc();return t(s,{theme:Au(n),children:e})},Ru={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"},Du=Object.freeze(Object.defineProperty({__proto__:null,hex:Ru},Symbol.toStringTag,{value:"Module"})),ku={in:{left:a`
|
|
342
|
-
from { transform: translateX(-100%); }
|
|
343
|
-
to { transform: translateX(0); }
|
|
344
|
-
`,right:a`
|
|
345
|
-
from { transform: translateX(100%); }
|
|
346
|
-
to { transform: translateX(0); }
|
|
347
|
-
`,top:a`
|
|
348
|
-
from { transform: translateY(-100%); }
|
|
349
|
-
to { transform: translateY(0); }
|
|
350
|
-
`,bottom:a`
|
|
351
|
-
from { transform: translateY(100%); }
|
|
352
|
-
to { transform: translateY(0); }
|
|
353
|
-
`,center:a`
|
|
354
|
-
from { transform: translate(-50%, 100%); }
|
|
355
|
-
to { transform: translate(-50%, -50%); }
|
|
356
|
-
`},out:{left:a`
|
|
357
|
-
from { transform: translateX(0); }
|
|
358
|
-
to { transform: translateX(-100%); }
|
|
359
|
-
`,right:a`
|
|
360
|
-
from { transform: translateX(0); }
|
|
361
|
-
to { transform: translateX(100%); }
|
|
362
|
-
`,top:a`
|
|
363
|
-
from { transform: translateY(0); }
|
|
364
|
-
to { transform: translateY(-100%); }
|
|
365
|
-
`,bottom:a`
|
|
366
|
-
from { transform: translateY(0); }
|
|
367
|
-
to { transform: translateY(100%); }
|
|
368
|
-
`,center:a`
|
|
369
|
-
from { transform: translate(-50%, -50%); }
|
|
370
|
-
to { transform: translate(-50%, 100%); }
|
|
371
|
-
`}},Lu={in:a`
|
|
372
|
-
from {
|
|
373
|
-
width: 0%;
|
|
374
|
-
}
|
|
375
|
-
to {
|
|
376
|
-
width: 100%;
|
|
377
|
-
}
|
|
378
|
-
`,out:a`
|
|
379
|
-
from {
|
|
380
|
-
width: 100%;
|
|
381
|
-
}
|
|
382
|
-
to {
|
|
383
|
-
width: 0%;
|
|
384
|
-
}
|
|
385
|
-
`},Pu=a`
|
|
386
|
-
0% {
|
|
387
|
-
transform: scale(1);
|
|
388
|
-
opacity: 1;
|
|
389
|
-
}
|
|
390
|
-
75%, 100% {
|
|
391
|
-
transform: scale(2);
|
|
392
|
-
opacity: 0;
|
|
393
|
-
}
|
|
394
|
-
`,Mu=a`
|
|
395
|
-
0% {
|
|
396
|
-
background-position: -500px 0;
|
|
397
|
-
}
|
|
398
|
-
100% {
|
|
399
|
-
background-position: 500px 0;
|
|
400
|
-
}
|
|
401
|
-
`,Uu={in:a`
|
|
402
|
-
from {
|
|
403
|
-
opacity: 0;
|
|
404
|
-
}
|
|
405
|
-
to {
|
|
406
|
-
opacity: 1;
|
|
407
|
-
}
|
|
408
|
-
`,out:a`
|
|
409
|
-
from {
|
|
410
|
-
opacity: 1;
|
|
411
|
-
}
|
|
412
|
-
to {
|
|
413
|
-
opacity: 0;
|
|
414
|
-
}
|
|
415
|
-
`},Fu=Object.freeze(Object.defineProperty({__proto__:null,fade:Uu,ping:Pu,progress:Lu,shimmer:Mu,slide:ku},Symbol.toStringTag,{value:"Module"}));var zu,Bu;(e=>{e.S="s",e.L="l"})(zu||(zu={})),(e=>{e.Filled="filled",e.Underline="underline"})(Bu||(Bu={}));const Hu=o.div`
|
|
416
|
-
display: flex;
|
|
417
|
-
align-items: center;
|
|
418
|
-
gap: 2px;
|
|
419
|
-
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
420
|
-
border-radius: 6px;
|
|
421
|
-
border: none;
|
|
422
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
423
|
-
`,Wu=o.button`
|
|
424
|
-
flex: 1;
|
|
425
|
-
display: flex;
|
|
426
|
-
align-items: center;
|
|
427
|
-
justify-content: center;
|
|
428
|
-
gap: ${({$size:e})=>e===zu.S?"4px":"8px"};
|
|
429
|
-
padding: ${({$size:e})=>e===zu.S?"4px 6px":"8px 12px"};
|
|
430
|
-
border-radius: ${({$isFirstOption:e,$isLastOption:t,$isFirstAndLastOption:n})=>n?"6px":e?"6px 0 0 6px":t?"0 6px 6px 0":"0"};
|
|
431
|
-
border: 1px solid transparent;
|
|
432
|
-
|
|
433
|
-
${({$disabled:e,$isSelected:t,$selectedBgColor:n,$selectedBorderColor:o,theme:i})=>e?r`
|
|
434
|
-
cursor: not-allowed;
|
|
435
|
-
background-color: ${t?(n||i.v2.colors.purple[900])+Ru["050"]:"transparent"};
|
|
436
|
-
`:t?r`
|
|
437
|
-
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
438
|
-
border: 1px solid ${o||i.v2.colors.purple[400]};
|
|
439
|
-
background-color: ${n||i.v2.colors.purple[900]};
|
|
440
|
-
&:hover {
|
|
441
|
-
background-color: ${n||i.v2.colors.purple[900]};
|
|
442
|
-
}
|
|
443
|
-
`:r`
|
|
444
|
-
cursor: pointer;
|
|
445
|
-
background-color: transparent;
|
|
446
|
-
&:hover {
|
|
447
|
-
background-color: ${i.v2.colors.silver[600]};
|
|
448
|
-
}
|
|
449
|
-
`}
|
|
450
|
-
`,ju=o.div`
|
|
451
|
-
display: flex;
|
|
452
|
-
align-items: stretch;
|
|
453
|
-
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
454
|
-
`,Gu=o.button`
|
|
455
|
-
display: flex;
|
|
456
|
-
height: 34px;
|
|
457
|
-
padding: 8px 12px 8px 16px;
|
|
458
|
-
justify-content: center;
|
|
459
|
-
align-items: center;
|
|
460
|
-
gap: 8px;
|
|
461
|
-
border: none;
|
|
462
|
-
border-bottom: 2px solid ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:"transparent"};
|
|
463
|
-
border-radius: ${({$isSelected:e})=>e?"6px 6px 0 0":"0"};
|
|
464
|
-
background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.silver[1e3]:"transparent"};
|
|
465
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
466
|
-
transition:
|
|
467
|
-
border-color 0.2s,
|
|
468
|
-
background-color 0.2s,
|
|
469
|
-
border-radius 0.2s;
|
|
470
|
-
&:hover {
|
|
471
|
-
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
472
|
-
}
|
|
473
|
-
`,Xu=({"data-id":o,size:r=zu.S,variant:a=Bu.Filled,options:s=[],selected:l,setSelected:d,disabled:c,fullWidth:u=!1})=>{const p=i(),h=a===Bu.Underline,g=h?Gu:Wu;return t(h?ju:Hu,{"data-id":o,$fullWidth:u,children:s.map(({value:o,label:i,icon:a,badge:u,tooltip:m,selectedBgColor:f,selectedBorderColor:y,selectedTextColor:b,disabled:v},E)=>{const S=0===E,$=E===s.length-1,C=l===o,x=v||c,w=x?p.v2.colors.grey[400]:h?p.v2.colors.white[500]:C?b||p.v2.colors.white[500]:p.v2.colors.grey[300],T=r===zu.S?vo.XXS:vo.XS,O=C?500:400,N=e(n,{children:[a&&t(a,{fill:w}),i&&t(xo,{size:T,weight:O,color:w,nowrap:!0,children:i}),u&&t(Su,{...u})]});return t(g,{onClick:()=>!x&&d(o),$isFirstOption:S,$isLastOption:$,$isFirstAndLastOption:S&&$,$disabled:x,$isSelected:C,$size:r,...!h&&{$selectedBgColor:f,$selectedBorderColor:y},children:m?t(vu,{text:m,withIcon:!0,children:N}):N},`segment-${E}-${i}-${o}`)})})},Vu=o.div`
|
|
474
|
-
box-sizing: border-box !important;
|
|
475
|
-
width: ${({$width:e})=>e??"fit-content"};
|
|
476
|
-
padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
|
|
477
|
-
display: flex;
|
|
478
|
-
align-self: stretch;
|
|
479
|
-
align-items: center;
|
|
480
|
-
gap: 8px;
|
|
481
|
-
overflow: hidden;
|
|
482
|
-
border-radius: 6px;
|
|
483
|
-
|
|
484
|
-
border: none;
|
|
485
|
-
border-radius: 6px;
|
|
486
|
-
background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:n,$emphasizeBackgroundColor:o,theme:r})=>{const i=n??r.v2.colors.silver[800],a=o??r.v2.colors.silver[700];return e||t?a:i}};
|
|
487
|
-
`,Ku=o.input`
|
|
488
|
-
min-width: 0;
|
|
489
|
-
flex: 1;
|
|
490
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
491
|
-
font-size: 14px;
|
|
492
|
-
font-weight: 400;
|
|
493
|
-
line-height: 20px;
|
|
494
|
-
|
|
495
|
-
cursor: text;
|
|
496
|
-
color: ${({$textColor:e})=>e};
|
|
497
|
-
&::placeholder {
|
|
498
|
-
color: ${({$textColor:e})=>e};
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
overflow: hidden;
|
|
502
|
-
text-overflow: ellipsis;
|
|
503
|
-
white-space: nowrap;
|
|
504
|
-
`,Yu=({"data-id":n,value:o,onChange:r,onFocus:a,onBlur:s,placeholder:l,width:d,segment:c,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=i(),[g,m]=zt(!1),[f,y]=zt(!1),[b,v]=zt(!1),E=g?h.v2.colors.white[500]:h.v2.colors.silver[200],S=!!c?.options?.length,$=Wt(()=>{if(S)return c?.options.find(e=>e.value===c.selected)?.label},[S,c?.options,c?.selected]),C=Wt(()=>l||(S&&$?`Search by ${$.toLowerCase()}`:"Search..."),[l,S,$]);return e(Vu,{$width:d,$withSegment:S,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!b,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t($t,{size:18,fill:E}),t(Ku,{"data-id":n??"search",name:"search",type:"text",placeholder:C,value:o,onChange:e=>{e.stopPropagation(),r(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:E}),S&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(Xu,{"data-id":c["data-id"],options:c.options,selected:c.selected,setSelected:c.setSelected})})]})},Ju=o.div`
|
|
505
|
-
display: flex;
|
|
506
|
-
align-items: center;
|
|
507
|
-
justify-content: center;
|
|
508
|
-
width: fit-content;
|
|
509
|
-
height: fit-content;
|
|
510
|
-
padding: 8px;
|
|
511
|
-
border-radius: 100%;
|
|
512
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
513
|
-
`,qu=({icon:n=Ct,hideIcon:o=!1,title:r="No data",subTitle:a,button:s,action:l})=>{const d=i().v2.colors.silver[200];return e(di,{$gap:12,$alignItems:"center",children:[!o&&t(Ju,{children:t(n,{size:32,fill:d})}),e(di,{$gap:4,$alignItems:"center",children:[t(xo,{size:vo.S,align:"center",children:r}),a&&t(xo,{size:vo.XXS,align:"center",color:d,children:a})]}),s&&t(wu,{variant:$u.Secondary,...s}),l]})},Qu=o.span`
|
|
514
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
515
|
-
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
516
|
-
font-weight: 400;
|
|
517
|
-
color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
|
|
518
|
-
`,Zu=o.span`
|
|
519
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
520
|
-
font-size: 14px;
|
|
521
|
-
font-weight: 400;
|
|
522
|
-
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
523
|
-
`,ep=({label:n,tooltip:o,required:r,badge:i,width:a,smallAndDark:s})=>n||o||r?e(li,{$width:a,$justifyContent:"space-between",children:[n&&t(Qu,{$smallAndDark:s,children:n}),e(li,{$gap:4,children:[i&&t(Su,{...i,textSize:vo.XXXS}),r&&t(Zu,{children:"*"}),o&&t(vu,{text:o,withIcon:!0})]})]}):null,tp=({errorMessage:n,warnMessage:o,helpMessage:r})=>{const a=i(),s=n?a.v2.colors.red[500]:o?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=t(rt,{size:12,fill:s});return n||o||r?e(li,{$alignItems:"center",children:[l&&t(di,{children:l}),t(xo,{size:vo.XXXS,weight:400,color:s,children:n||o||r})]}):null};var np;(e=>{e.S="small",e.L="large"})(np||(np={}));const op=o.div`
|
|
524
|
-
width: fit-content;
|
|
525
|
-
display: flex;
|
|
526
|
-
align-items: center;
|
|
527
|
-
gap: 8px;
|
|
528
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
529
|
-
`,rp=o.div`
|
|
530
|
-
width: ${({$size:e})=>e===np.S?"16px":"20px"};
|
|
531
|
-
height: ${({$size:e})=>e===np.S?"16px":"20px"};
|
|
532
|
-
display: flex;
|
|
533
|
-
align-items: center;
|
|
534
|
-
justify-content: center;
|
|
535
|
-
border-radius: 4px;
|
|
536
|
-
border: 1px solid ${({$borderColor:e})=>e};
|
|
537
|
-
background-color: ${({$backgroundColor:e})=>e};
|
|
538
|
-
`,ip=({name:n,label:o,tooltip:r,badge:a,size:s=np.L,disabled:l,partiallyChecked:d,value:c,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=i(),[f,y]=zt(!1),b=d||c,v=s===np.S?12:16,E=l?m.v2.colors.grey[400]:m.v2.colors.white[500],S=b?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],$=l?m.v2.colors.grey[600]:b?m.v2.colors.purple[500]:m.v2.colors.silver[900];return e(di,{$gap:4,children:[e(li,{$justifyContent:"space-between",children:[e(op,{"data-id":n||"checkbox"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),l||u(!!d||!c)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t(rp,{$size:s,$borderColor:S,$backgroundColor:$,children:d?t(xt,{size:v,fill:E}):c?t(Et,{size:v,fill:E}):null}),o&&t(xo,{size:s===np.S?vo.XXS:vo.XS,nowrap:!0,children:o})]}),t(ep,{tooltip:r,badge:a})]}),t(tp,{errorMessage:p,warnMessage:h,helpMessage:g})]})},ap=o.div`
|
|
539
|
-
display: flex;
|
|
540
|
-
flex-direction: ${({$direction:e})=>e===mn.Horizontal?"row":"column"};
|
|
541
|
-
gap: ${({$direction:e})=>e===mn.Horizontal?16:8}px;
|
|
542
|
-
`,sp=({direction:n=mn.Vertical,title:o,size:r,disabled:i,withSelectAll:a,options:s,values:l,setValues:d})=>{const c=r===np.S?vo.XXS:vo.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(n=>{const o={...n};return e?o[e]=t:s.forEach(e=>o[e.id]=t),o})};return e(ap,{$direction:n,children:[o&&a?t(ip,{label:o,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):o&&!a?t(xo,{size:c,children:o}):null,s.map(e=>t(ip,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:i,size:r},`${o}-checkbox-${e.id}`))]})};var lp,dp;(e=>{e.Left="left",e.Right="right"})(lp||(lp={})),(e=>{e.Top="top",e.Bottom="bottom"})(dp||(dp={}));const cp=o.div`
|
|
543
|
-
position: relative;
|
|
544
|
-
display: flex;
|
|
545
|
-
flex-direction: column;
|
|
546
|
-
gap: 4px;
|
|
547
|
-
`,up=o.div`
|
|
548
|
-
position: fixed;
|
|
549
|
-
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
550
|
-
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
551
|
-
${({$coords:e})=>null!=e.left?`left: ${e.left}px;`:""}
|
|
552
|
-
${({$coords:e})=>null!=e.right?`right: ${e.right}px;`:""}
|
|
553
|
-
${({$coords:e})=>null!=e.width?`width: ${e.width-16}px;`:""}
|
|
554
|
-
z-index: ${({theme:e})=>e.v2.zIndex.dropdown};
|
|
555
|
-
|
|
556
|
-
display: flex;
|
|
557
|
-
flex-direction: column;
|
|
558
|
-
gap: 0;
|
|
559
|
-
|
|
560
|
-
min-width: 120px;
|
|
561
|
-
padding: 8px;
|
|
562
|
-
border-radius: 6px;
|
|
563
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
564
|
-
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
565
|
-
`,pp=o.div`
|
|
566
|
-
display: flex;
|
|
567
|
-
flex-direction: column;
|
|
568
|
-
gap: 0;
|
|
569
|
-
|
|
570
|
-
width: 100%;
|
|
571
|
-
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
572
|
-
overflow-y: auto;
|
|
573
|
-
`,hp=o.div`
|
|
574
|
-
display: flex;
|
|
575
|
-
align-items: center;
|
|
576
|
-
gap: 8px;
|
|
577
|
-
width: 100%;
|
|
578
|
-
padding: 8px;
|
|
579
|
-
border-radius: 6px;
|
|
580
|
-
cursor: pointer;
|
|
581
|
-
${({$selected:e})=>e?r`
|
|
582
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
583
|
-
`:r`
|
|
584
|
-
background-color: transparent;
|
|
585
|
-
&:hover {
|
|
586
|
-
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
587
|
-
}
|
|
588
|
-
`}
|
|
589
|
-
`,gp=o.div`
|
|
590
|
-
display: flex;
|
|
591
|
-
align-items: center;
|
|
592
|
-
gap: 8px;
|
|
593
|
-
flex: 1;
|
|
594
|
-
min-width: 0;
|
|
595
|
-
`,mp=o.div`
|
|
596
|
-
flex: 0 1 auto;
|
|
597
|
-
min-width: 0;
|
|
598
|
-
overflow: hidden;
|
|
599
|
-
text-overflow: ellipsis;
|
|
600
|
-
white-space: nowrap;
|
|
601
|
-
`,fp=o.span`
|
|
602
|
-
flex-shrink: 0;
|
|
603
|
-
width: 88px;
|
|
604
|
-
display: inline-flex;
|
|
605
|
-
justify-content: center;
|
|
606
|
-
padding: 1px 6px;
|
|
607
|
-
border-radius: 4px;
|
|
608
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
609
|
-
border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
|
|
610
|
-
`,yp=o.div`
|
|
611
|
-
flex-shrink: 0;
|
|
612
|
-
display: inline-flex;
|
|
613
|
-
align-items: center;
|
|
614
|
-
gap: 4px;
|
|
615
|
-
`,bp=({defaultOpen:n,open:o,onOpenChange:r,alignX:a,alignY:s,items:l,selectedIds:d,setSelectedIds:c,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:y,isLoading:b,emptyMessage:v,children:E})=>{const S=i(),$=void 0!==o,C=!!f||!!y||!!E,[x,w]=zt(n??!C),T=$?o:x,O=Ht(e=>{$||w(e),r?.(e)},[$,r]),[N,A]=zt({x:a||lp.Left,y:s||dp.Bottom}),I=jt(null);tu(I,()=>O(!1));const[_,R]=zt({}),D=Ht((e,t)=>{const n=I.current?.getBoundingClientRect();if(!n)return;const o=C?8:0;R({top:t===dp.Bottom?C?n.bottom+o:n.top:void 0,bottom:t===dp.Top?C?window.innerHeight-n.top+o:window.innerHeight-n.bottom:void 0,left:e===lp.Left?n.left:void 0,right:e===lp.Right?window.innerWidth-n.right:void 0,width:g?n.width:void 0})},[C,g]),k=e=>{const t=!T;if(O(t),!t)return;const n={x:a||(e.clientX>window.innerWidth/2?lp.Right:lp.Left),y:s||(e.clientY>window.innerHeight/2?dp.Top:dp.Bottom)};A(n),D(n.x,n.y)};Gt(()=>{T&&D(N.x,N.y)},[T,N.x,N.y,D]);const L=e=>{c(p?d.includes(e)?d.filter(t=>t!==e):[...d,e]:[e]),C&&!p&&O(!1)},[P,M]=zt(""),U=Wt(()=>P?l.filter(e=>e?.label?.toLowerCase().includes(P.toLowerCase())):l,[l.length,P]);return e(cp,{ref:I,children:[u&&t(ep,{label:u}),f&&t(wu,{...f,fullWidth:g,rightIcon:T?wt:Tt,onClick:k}),y&&t(wu,{variant:$u.Text,size:Cu.S,...y,onClick:k}),"function"==typeof E?E({ChevronIcon:T?wt:Tt,handleClick:k}):E,T&&Jt(e(up,{$coords:_,"data-ignore-outside-click":"true",children:[h&&t(Yu,{value:P,onChange:M,width:"100%"}),b?t(Ei,{withSpinner:!0,title:"Loading...",titleSize:vo.XS}):U.length?t(pp,{$maxHeight:m,children:U.map(n=>{if(!n)return null;const{id:o,label:r,icon:i,withCheckbox:a,badge:s,secondaryLabel:l}=n,c=d.includes(o);return e(hp,{"data-id":`option-${o}`,$selected:c&&!a,onClick:()=>L(o),title:l?`${r} — ${l}`:r,children:[a&&t(ip,{value:c,onChange:()=>L(o)}),i&&t(i,{size:14,fill:n.color||S.v2.colors.white[500]}),s&&t(fp,{children:t(xo,{size:vo.XXS,nowrap:!0,color:Eo.Secondary,children:s})}),e(gp,{children:[t(mp,{children:t(xo,{size:vo.XS,nowrap:!0,color:n.color||Eo.Primary,children:r})}),l&&e(yp,{children:[t(He,{size:12,fill:S.v2.colors.silver[200]}),t(xo,{size:vo.XS,nowrap:!0,color:Eo.Secondary,children:l})]})]})]},o)})}):t(si,{$padding:"6px 0",children:t(qu,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!U.length&&t(wu,{label:"Done",onClick:()=>O(!1)})]}),document.body)]})};var vp;(e=>{e.Button="button",e.ButtonDropData="button-drop-data"})(vp||(vp={}));const Ep=({onAnyClick:e,actions:n})=>t(li,{$gap:8,$alignItems:"center",children:n?.map(n=>{if(!n)return null;switch(n.type){case vp.Button:return t(wu,{...n.buttonProps,onClick:t=>{n.buttonProps?.onClick?.(t),e?.()}},n.id);case vp.ButtonDropData:return t(bp,{...n.dropDataProps,items:n.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n.buttonProps?.onClick?.(t[0]),e?.()},buttonProps:n.buttonProps},n.id);default:return null}})}),Sp=o(li)`
|
|
616
|
-
min-width: 0;
|
|
617
|
-
width: 100%;
|
|
618
|
-
`,$p=o.div`
|
|
619
|
-
display: flex;
|
|
620
|
-
flex-shrink: 0;
|
|
621
|
-
align-items: center;
|
|
622
|
-
justify-content: center;
|
|
623
|
-
padding: 8px;
|
|
624
|
-
border-radius: 8px;
|
|
625
|
-
background-color: ${({theme:e})=>e.v2.colors.white[500]+Ru["004"]};
|
|
626
|
-
`,Cp=o(di)`
|
|
627
|
-
flex: 1;
|
|
628
|
-
min-width: 0;
|
|
629
|
-
overflow: hidden;
|
|
630
|
-
`,xp=({icon:n,iconWithWrapper:o=!1,title:r,titleSize:i=vo.S,titleColor:a=Eo.Primary,titleWrap:s=!1,titleMeta:l,subTitle:d,subTitleSize:c=vo.XXS,subTitleColor:u=Eo.Secondary,subTitleWrap:p=!1,tooltip:h,withCopy:g,badge:m,gap:f,textGap:y,alignItems:b="center",children:v})=>{const{CopyButton:E}=Vc();return e(Sp,{$gap:d?8:6,$alignItems:b,children:[n&&(o||d?t($p,{children:t(n,{size:24})}):t(n,{size:24})),r||m||d?e(Cp,{$gap:y,children:[r||m?e(li,{$gap:6,$alignItems:"center",$wrap:"wrap",$width:"100%",children:[r&&t(xo,{size:i,color:a,nowrap:!s,children:r}),l&&t(xo,{size:vo.XXXS,color:Eo.Secondary,children:l}),g&&r&&t(E,{value:r,size:jc.XS}),h&&t(vu,{text:h,withIcon:!0}),m&&t(Su,{...m})]}):null,d&&t(xo,{size:c,color:u,nowrap:!p,children:d})]}):null,t(li,{$gap:f,$margin:`0 0 0 ${f??0}px`,$alignItems:"center",children:v})]})},wp=({children:e,fullText:n,fullWidth:o=!0,...r})=>{const i=jt(null),a=!!r.maxLines&&r.maxLines>0,s=nu(i,{axis:a?"vertical":"horizontal",deps:[e]})?n??(null==e?"":String(e)):"";return t(vu,{text:s,fullWidth:o,ellipsis:!a,keepAlive:!0,children:t(xo,{ref:i,...r,children:e})})},Tp=o.section`
|
|
631
|
-
display: flex;
|
|
632
|
-
flex-direction: column;
|
|
633
|
-
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
634
|
-
width: ${({$width:e="100%"})=>e};
|
|
635
|
-
min-width: 0;
|
|
636
|
-
max-width: 100%;
|
|
637
|
-
align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
|
|
638
|
-
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
639
|
-
padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
640
|
-
border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
641
|
-
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
|
|
642
|
-
overflow: hidden;
|
|
643
|
-
`,Op=o(li)`
|
|
644
|
-
width: 100%;
|
|
645
|
-
min-width: 0;
|
|
646
|
-
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
647
|
-
user-select: ${({$clickable:e})=>e?"none":"auto"};
|
|
648
|
-
`,Np=o.div`
|
|
649
|
-
flex: 1;
|
|
650
|
-
min-width: 0;
|
|
651
|
-
overflow: hidden;
|
|
652
|
-
`,Ap=o(li)`
|
|
653
|
-
flex-shrink: 0;
|
|
654
|
-
`,Ip=o.div`
|
|
655
|
-
display: flex;
|
|
656
|
-
align-items: flex-end;
|
|
657
|
-
flex-wrap: wrap;
|
|
658
|
-
width: 100%;
|
|
659
|
-
`,_p=o.div`
|
|
660
|
-
width: ${({$cellsPerRow:e})=>e?`calc(${100/e}% - 16px)`:"unset"};
|
|
661
|
-
margin: 8px;
|
|
662
|
-
display: flex;
|
|
663
|
-
flex-direction: column;
|
|
664
|
-
gap: 4px;
|
|
665
|
-
min-width: 0;
|
|
666
|
-
`,Rp=({item:n,cellsPerRow:o})=>{const{CopyButton:r}=Vc(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:d,withCopy:c,badge:u}=n;return i?t("div",{style:{flex:1}}):e(_p,{$cellsPerRow:o,children:[!!a&&t(vu,{text:s,children:t(wp,{size:vo.XXXS,color:Eo.Secondary,nowrap:!0,children:a})}),e(li,{$gap:4,children:[u&&t(Su,{...u}),l&&t(vu,{text:d,children:t(wp,{size:vo.XS,nowrap:!0,children:l})}),c&&t(r,{value:l||u?.label?.toString()||"",size:jc.XS})]})]})},Dp=({bgTint:n="900",width:o,fullHeight:r=!1,moreSpacing:i=!1,richTitle:a,withCollapse:s,collapseIsDefaultOpen:l,badges:d=[],actions:c=[],dropDataActions:u=[],renderOnRightSide:p,cellsPerRow:h,items:g,children:m})=>{const[f,y]=zt(l||!1),b=()=>y(e=>!e),v=!s||s&&f,E=!!c.length,S=!!u.length,$=!!d.length;return e(Tp,{$width:o,$bgTint:n,$fullHeight:r,$moreSpacing:i,children:[(a||s)&&e(Op,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?t(Np,{children:t(xp,{...a})}):t("div",{}),e(Ap,{$gap:12,children:[p,E&&v&&t(Ep,{actions:c}),$&&t(li,{$gap:8,children:d.map((e,t)=>Xt(Su,{...e,key:e.key||`${e.label}-${t}`}))}),(S||s)&&e(li,{$gap:2,children:[S&&t(bp,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Ot},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&t(wu,{variant:$u.Text,size:Cu.S,leftIcon:f?wt:Tt,onClick:b})]})]})]}),v&&g?t(Ip,{children:g.map(e=>t(Rp,{item:e,cellsPerRow:h&&h<=g.length?h:void 0},e.id))}):null,v&&m]})};var kp;(e=>{e.S="small",e.M="medium"})(kp||(kp={}));const Lp=o.div`
|
|
667
|
-
display: flex;
|
|
668
|
-
flex-direction: column;
|
|
669
|
-
gap: ${({$gap:e})=>e}px;
|
|
670
|
-
width: 100%;
|
|
671
|
-
align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
|
|
672
|
-
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
673
|
-
padding: ${({$padding:e})=>e}px;
|
|
674
|
-
border-radius: 16px;
|
|
675
|
-
background-color: ${({theme:e,$backgroundColor:t,$bordered:n})=>t??(n?"transparent":e.v2.colors.silver[1e3])};
|
|
676
|
-
${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
|
|
677
|
-
`,Pp=Ut(({id:n,size:o=kp.M,fullHeight:r=!1,richTitle:i,customTitle:a,search:s,customSearch:l,filters:d,actions:c,children:u,backgroundColor:p,padding:h,bordered:g=!1},m)=>{const f=o===kp.S?4:16,y="number"==typeof h?h:o===kp.S?12:16,b=a??(i?t(xp,{...i}):null),v=l??(s?t(Yu,{...s}):null),E=!!b||!!v,S=!!c&&c.length>0;return e(Lp,{ref:m,id:n,"data-section-name":n,$padding:y,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[E||S?e(li,{$gap:f,$justifyContent:"space-between",children:[E?e(li,{$gap:f,$alignItems:"center",children:[b,v,d]}):null,S&&t(Ep,{actions:c??[]})]}):null,u]})});Pp.displayName="SectionCard";const Mp=o.div`
|
|
678
|
-
flex: 1;
|
|
679
|
-
align-self: stretch;
|
|
680
|
-
display: flex;
|
|
681
|
-
align-items: center;
|
|
682
|
-
gap: 8px;
|
|
683
|
-
padding: 16px;
|
|
684
|
-
border-radius: 12px;
|
|
685
|
-
background-color: ${({theme:e,$status:t})=>Fr(e,t,t===On.Unknown?"750":"500")};
|
|
686
|
-
`,Up=o.div`
|
|
687
|
-
display: flex;
|
|
688
|
-
align-items: center;
|
|
689
|
-
justify-content: center;
|
|
690
|
-
width: fit-content;
|
|
691
|
-
height: fit-content;
|
|
692
|
-
padding: 8px;
|
|
693
|
-
border-radius: 12px;
|
|
694
|
-
background-color: ${({theme:e,$status:t})=>t===On.Unknown?Fr(e,t,"800"):Fr(e,t,"900")+Ru["015"]};
|
|
695
|
-
`,Fp=({status:n,icon:o,title:r,description:a})=>{const s=i(),l=o??Si(n,s),d=[On.Default,On.Info,On.Disabled,On.Unknown].includes(n)?s.v2.colors.white[500]:s.v2.colors.black[500];return e(Mp,{$status:n,children:[t(Up,{$status:n,children:t(l,{size:32,fill:d})}),e(di,{$gap:2,$justifyContent:"center",children:[t(xo,{size:vo.M,weight:500,color:d,nowrap:!0,children:r}),t(xo,{size:vo.XXS,weight:300,color:d,nowrap:!0,children:a})]})]})},zp=o.div`
|
|
696
|
-
flex: 0.5;
|
|
697
|
-
display: flex;
|
|
698
|
-
flex-direction: column;
|
|
699
|
-
gap: 12px;
|
|
700
|
-
padding: 12px;
|
|
701
|
-
border-radius: 12px;
|
|
702
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
703
|
-
`,Bp=["-","N/A","undefined","null","undefined/undefined","null/null"],Hp=({title:n,cells:o})=>{const r=i();return e(zp,{children:[t(xo,{size:vo.XXS,color:r.v2.colors.grey[150],children:n}),t(li,{$gap:32,children:o.map((o,r)=>e(di,{$gap:2,children:[!o.isLoading||o.value&&!Bp.includes(o.value)?t(xo,{size:o.label?vo.M:vo.L,children:o.value}):t(Ei,{withSpinnerOld:!0,scaleSpinnerOld:.9}),o.label&&t(xo,{size:vo.XXS,children:o.label})]},`${n}-${r}-${o.label}-${o.value}`))})]})},Wp=o.div`
|
|
704
|
-
padding: ${({$small:e})=>e?"4px":"6px 12px"};
|
|
705
|
-
|
|
706
|
-
display: flex;
|
|
707
|
-
align-self: stretch;
|
|
708
|
-
align-items: center;
|
|
709
|
-
gap: 8px;
|
|
710
|
-
border-radius: 6px;
|
|
711
|
-
cursor: ${({$clickable:e})=>e?"pointer":"inherit"};
|
|
712
|
-
|
|
713
|
-
border: 1px solid ${({theme:e,$disabled:t,$error:n})=>t?e.v2.colors.grey[600]:n?e.v2.colors.red[500]:e.v2.colors.silver[500]};
|
|
714
|
-
background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
|
|
715
|
-
${({$disabled:e,$error:t})=>!e&&!t&&r`
|
|
716
|
-
&:hover,
|
|
717
|
-
&:active,
|
|
718
|
-
&:focus-within {
|
|
719
|
-
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
720
|
-
}
|
|
721
|
-
`}
|
|
722
|
-
`,jp=o.input`
|
|
723
|
-
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
724
|
-
width: ${({$width:e})=>e||"unset"};
|
|
725
|
-
|
|
726
|
-
flex: 1;
|
|
727
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
728
|
-
font-size: ${({$small:e})=>e?"12px":"14px"};
|
|
729
|
-
font-weight: 400;
|
|
730
|
-
|
|
731
|
-
cursor: text;
|
|
732
|
-
color: ${({theme:e})=>e.v2.colors.white[500]};
|
|
733
|
-
&::placeholder {
|
|
734
|
-
color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
&:disabled {
|
|
738
|
-
cursor: not-allowed;
|
|
739
|
-
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
740
|
-
&::placeholder {
|
|
741
|
-
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
overflow: hidden;
|
|
746
|
-
text-overflow: ellipsis;
|
|
747
|
-
white-space: nowrap;
|
|
748
|
-
|
|
749
|
-
&:read-only {
|
|
750
|
-
cursor: pointer;
|
|
751
|
-
pointer-events: none;
|
|
752
|
-
user-select: none;
|
|
753
|
-
}
|
|
754
|
-
`,Gp=o.div`
|
|
755
|
-
display: flex;
|
|
756
|
-
align-items: center;
|
|
757
|
-
justify-content: center;
|
|
758
|
-
cursor: pointer;
|
|
759
|
-
`,Xp=({label:n,required:o,tooltip:r,badge:a,leftIcon:s,rightIcon:l,hasError:d,errorMessage:c,warnMessage:u,helpMessage:p,type:h=Tn.Text,name:g,value:m,onChange:f,disabled:y,maxWidth:b,width:v,small:E=!1,onClick:S,...$})=>{const C=i(),x=h===Tn.Password,[w,T]=zt(!1),[O,N]=zt(null),A=d||!!c||!!O,I=m?C.v2.colors.white[500]:y?C.v2.colors.grey[400]:C.v2.colors.silver[200],_=E?14:18,R=jt(null),D=nu(R,{deps:[m]}),k=$.readOnly&&D&&null!=m&&""!==m?String(m):"";return e(di,{$width:v,$gap:6,children:[t(ep,{label:n,tooltip:r,required:o,badge:a}),t(Wp,{$small:E,$disabled:y,$error:A,$clickable:!!S&&!y,onClick:y?void 0:S,children:e(vu,{text:k,fullWidth:!0,keepAlive:!0,children:[s?t(s,{size:_,fill:I}):null,t(jp,{"data-id":g,type:w||h===Tn.Number||h===Tn.Decimal?Tn.Text:h,name:g,value:m,onChange:e=>{e.stopPropagation();const t=e.target.value;if(h===Tn.Number||h===Tn.Decimal){const n=h===Tn.Number?Xi(t):Gi(t),o=null!=$.min?Number($.min):void 0,r=null!=$.max?Number($.max):void 0,i=h===Tn.Decimal&&n.endsWith(".");let a=n,s=!1;if(n&&!i){const e=parseFloat(n);isNaN(e)||(null!=r&&e>r?(a=String(r),s=!0):null!=o&&e<o&&(a=String(o),s=!0))}e.target.value=a,N(t&&t!==n?"Please enter a valid number":s?"Value must be "+(null!=o&&null!=r?`between ${o} and ${r}`:null!=r?`at most ${r}`:`at least ${o}`):null)}f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:y,$maxWidth:b,$width:v,$small:E,...$,ref:R}),x?t(Gp,{onClick:()=>T(e=>!e),children:t(w?Nt:At,{size:_,fill:I})}):l?t(l,{size:_,fill:I}):null]})}),t(tp,{errorMessage:O||c,warnMessage:u,helpMessage:p})]})},Vp=e=>{const{"data-id":n,options:o,placeholder:r="Search...",isLoading:i,disabled:a}=e,s=!0===e.multiple,[l,d]=zt(""),[c,u]=zt(!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?o.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return e.value?o.find(t=>t.id===e.value)?.label??"":""},[s,e,o,p]),g=c?l:h,m=Wt(()=>{const e=s?o.map(e=>({...e,withCheckbox:!0})):o;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,o,l]),f=Ht(()=>{d(""),u(!0)},[]),y=Ht(t=>{d(t.target.value),c||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[c,s,e]),b=Ht(e=>{u(e),e||d("")},[]),v=Ht(t=>{if(s)return void e.onSelect(t);const n=o.find(e=>e.id===t[0]);n&&(e.onSelect(n),d(""),u(!1))},[s,e,o]),E=c&&(i||m.length>0||l.length>0);return t(bp,{open:E,onOpenChange:b,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:i,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:dp.Bottom,children:t(Xp,{name:n,leftIcon:$t,placeholder:r,value:g,onChange:y,onFocus:f,disabled:a})})},Kp=o.button`
|
|
760
|
-
width: 100%;
|
|
761
|
-
padding: 0;
|
|
762
|
-
padding-right: 12px;
|
|
763
|
-
display: flex;
|
|
764
|
-
align-items: center;
|
|
765
|
-
justify-content: flex-start;
|
|
766
|
-
gap: 12px;
|
|
767
|
-
border-radius: 8px;
|
|
768
|
-
border: none;
|
|
769
|
-
${({$hovered:e})=>e?r`
|
|
770
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
771
|
-
`:r`
|
|
772
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
773
|
-
`}
|
|
774
|
-
overflow: hidden;
|
|
775
|
-
cursor: pointer;
|
|
776
|
-
&:disabled {
|
|
777
|
-
cursor: not-allowed;
|
|
778
|
-
opacity: 0.5;
|
|
779
|
-
}
|
|
780
|
-
`,Yp=o.div`
|
|
781
|
-
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
782
|
-
height: 56px;
|
|
783
|
-
display: flex;
|
|
784
|
-
align-items: center;
|
|
785
|
-
justify-content: center;
|
|
786
|
-
${({$hovered:e})=>e?r`
|
|
787
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
788
|
-
`:r`
|
|
789
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
790
|
-
`}
|
|
791
|
-
`,Jp=o.div`
|
|
792
|
-
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
793
|
-
display: flex;
|
|
794
|
-
justify-content: space-between;
|
|
795
|
-
align-items: center;
|
|
796
|
-
gap: 8px;
|
|
797
|
-
`,qp=({label:n,icon:o,loading:r,disabled:i,onClick:a})=>{const[s,l]=zt(!1);return e(Kp,{$hovered:s,type:"button",disabled:i||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(Yp,{$hovered:s,$hasIcon:!!o,children:o&&t(o,{size:36})}),e(Jp,{$hasIcon:!!o,children:[r?t(Ei,{withGradient:!0,titleSize:vo.S}):t(xo,{variant:bo.Span,align:"center",children:n}),t(It,{rotate:90,size:24})]})]})},Qp=({buttons:e})=>t(di,{$gap:12,children:e.map((e,n)=>t(qp,{...e},`${e.label}-${n}`))});var Zp;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(Zp||(Zp={}));const eh=o.div`
|
|
798
|
-
display: flex;
|
|
799
|
-
align-items: flex-end;
|
|
800
|
-
justify-content: space-between;
|
|
801
|
-
gap: 24px;
|
|
802
|
-
width: fit-content;
|
|
803
|
-
`,th=o.div`
|
|
804
|
-
position: relative;
|
|
805
|
-
display: flex;
|
|
806
|
-
flex-direction: column;
|
|
807
|
-
align-items: center;
|
|
808
|
-
width: ${({$width:e})=>e??150}px;
|
|
809
|
-
flex-shrink: 0;
|
|
810
|
-
`,nh=o.svg`
|
|
811
|
-
display: block;
|
|
812
|
-
width: 100%;
|
|
813
|
-
height: auto;
|
|
814
|
-
overflow: visible;
|
|
815
|
-
`,oh=o(di)`
|
|
816
|
-
position: absolute;
|
|
817
|
-
left: 0;
|
|
818
|
-
right: 0;
|
|
819
|
-
bottom: 4px;
|
|
820
|
-
align-items: center;
|
|
821
|
-
gap: 2px;
|
|
822
|
-
pointer-events: none;
|
|
823
|
-
`,rh=o.span`
|
|
824
|
-
display: inline-block;
|
|
825
|
-
flex-shrink: 0;
|
|
826
|
-
width: 9px;
|
|
827
|
-
height: 9px;
|
|
828
|
-
border-radius: 50%;
|
|
829
|
-
background-color: ${({$color:e})=>e};
|
|
830
|
-
`,ih=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:""}},ah=(e,t,n,o)=>{const r=o*Math.PI/180;return{x:e+n*Math.cos(r),y:t-n*Math.sin(r)}},sh=(e,t,n,o,r)=>{const i=ah(e,t,n,o),a=ah(e,t,n,r),s=o>r?1:0,l=Math.abs(o-r)>180?1:0;return`M ${i.x} ${i.y} A ${n} ${n} 0 ${l} ${s} ${a.x} ${a.y}`},lh=({variant:n=Zp.CurrentOfMax,gaugeWidth:o,title:r,min:a=0,max:s,current:l,primaryLabel:d,primaryColor:c,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=ih(a),{number:g}=ih(s),{number:m,prefix:f,suffix:y}=ih(l),b=i(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),E=180-180*v,S=v>0?sh(60,60,55,180,E):null,$=v<1?sh(60,60,55,E,0):null,C=ah(60,60,55,180),x=ah(60,60,55,0),w=c??(n===Zp.GoodAgainstBad?b.v2.colors.green[500]:b.v2.colors.purple[400]),T=p??(n===Zp.GoodAgainstBad?b.v2.colors.red[500]:b.v2.colors.silver[500]),[O,N]=zt(null),A=e=>`${f}${e}${y}`,I=n===Zp.GoodAgainstBad?Math.max(g-m,0):g,_="primary"===O?d:"secondary"===O?u:"",R="primary"===O?A(m):"secondary"===O?A(I):"",D=()=>N("primary"),k=()=>N("secondary"),L=()=>N(null);var P;return e(eh,{children:[e(th,{$width:o,children:[t(vu,{keepAlive:!0,fullWidth:!0,title:_,text:R,children:e(nh,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[S&&t("path",{d:S,fill:"none",stroke:w,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),$&&t("path",{d:$,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:k,onMouseLeave:L}),v>0&&t("circle",{cx:C.x,cy:C.y,r:5,fill:w,onMouseEnter:D,onMouseLeave:L}),v<1&&t("circle",{cx:x.x,cy:x.y,r:5,fill:T,onMouseEnter:k,onMouseLeave:L})]})}),r&&e(oh,{children:[t(xo,{size:vo.XXXS,color:b.v2.colors.grey[150],align:"center",children:r}),t(xo,{size:vo.L,weight:500,align:"center",children:`${f}${m}${y}`})]})]}),e(di,{$gap:7,children:[e(li,{$gap:8,$alignItems:"center",children:[t(rh,{$color:w}),t(xo,{size:vo.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:d})]}),e(li,{$gap:8,$alignItems:"center",children:[t(rh,{$color:T}),t(xo,{size:vo.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},dh=o(li)`
|
|
831
|
-
width: 100%;
|
|
832
|
-
padding: 8px 12px;
|
|
833
|
-
border-radius: 6px;
|
|
834
|
-
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t||"800"]};
|
|
835
|
-
display: flex;
|
|
836
|
-
align-items: center;
|
|
837
|
-
justify-content: space-between;
|
|
838
|
-
gap: 12px;
|
|
839
|
-
`,ch=o.div`
|
|
840
|
-
position: relative;
|
|
841
|
-
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
842
|
-
display: flex;
|
|
843
|
-
align-items: center;
|
|
844
|
-
gap: 4px;
|
|
845
|
-
`,uh=o.pre`
|
|
846
|
-
flex: 1;
|
|
847
|
-
margin: 0;
|
|
848
|
-
padding: 0;
|
|
849
|
-
font-size: 12px;
|
|
850
|
-
color: #5ffb98; // TODO: add to theme
|
|
851
|
-
overflow-x: auto;
|
|
852
|
-
`,ph=o.span`
|
|
853
|
-
flex-shrink: 0;
|
|
854
|
-
font-size: 14px;
|
|
855
|
-
color: #5ffb98; // TODO: add to theme
|
|
856
|
-
`,hh=({bgTint:n,label:o,value:r,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=Vc({onDone:a}),l=jt(null),[d,c]=zt(!1);return Bt(()=>{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()}},[r]),e(di,{$gap:4,children:[o&&t(xo,{size:vo.XXXS,color:Eo.Secondary,children:o}),e(dh,{$bgTint:n,children:[e(ch,{$hideCopy:i,children:[t(uh,{ref:l,children:r}),d&&t(ph,{children:"..."})]}),!i&&t(s,{value:r,size:jc.XS})]})]})},gh=o(li)`
|
|
857
|
-
gap: 0;
|
|
858
|
-
`,mh=o.button`
|
|
859
|
-
padding: 4px 8px;
|
|
860
|
-
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
861
|
-
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
862
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
863
|
-
display: flex;
|
|
864
|
-
align-items: center;
|
|
865
|
-
justify-content: center;
|
|
866
|
-
cursor: pointer;
|
|
867
|
-
&:hover {
|
|
868
|
-
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
869
|
-
}
|
|
870
|
-
`,fh=({isPrettyMode:n,setIsPrettyMode:o})=>e(gh,{children:[t(mh,{$position:"left",$selected:n,onClick:()=>o(!0),children:t(_t,{})}),t(mh,{$position:"right",$selected:!n,onClick:()=>o(!1),children:t(vt,{})})]}),yh=o.table`
|
|
871
|
-
border-collapse: collapse;
|
|
872
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
873
|
-
`,bh=o.tbody``,vh=o.tr`
|
|
874
|
-
td:first-child {
|
|
875
|
-
padding-left: 0 !important;
|
|
876
|
-
}
|
|
877
|
-
td:last-child {
|
|
878
|
-
padding-right: 0 !important;
|
|
879
|
-
}
|
|
880
|
-
`,Eh=o.td`
|
|
881
|
-
vertical-align: top;
|
|
882
|
-
padding: 4px 6px;
|
|
883
|
-
`,Sh=o.span`
|
|
884
|
-
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
885
|
-
overflow-wrap: break-word;
|
|
886
|
-
word-break: break-word;
|
|
887
|
-
word-wrap: break-word;
|
|
888
|
-
/* Fallback for older browsers */
|
|
889
|
-
-ms-word-break: break-all;
|
|
890
|
-
font-size: 12px;
|
|
891
|
-
`,$h=({language:e,code:n,theme:o,flatten:r,pretty:a})=>{const{darkMode:s}=i(),l=o?Qt[o]:s?Qt.palenight:Qt.vsLight;let d="";if("json"===e){const e=Fo(n,{}),t=Ji(e);d=qi(r?ir(t):t)}else d=n;return a&&"json"===e?t(Ch,{darkMode:s,str:d}):t(qt,{theme:l||(s?Qt.palenight:Qt.vsLight),language:e,code:d,children:({getLineProps:e,getTokenProps:n,tokens:o})=>t("pre",{children:o.map((o,r)=>t("div",{...e({line:o}),children:o.map((e,o)=>t(Sh,{...n({token:e})},`line-${r}-token-${o}`))},`line-${r}`))})})},Ch=({darkMode:n,str:o})=>{const r=i(),a=(n,o)=>{const i=new Array(n).fill(n=>e(vh,{...n,children:[t(Eh,{}),t(Eh,{})]}));return t(Ft,{children:i.map((e,n)=>t(e,{style:0===n?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${o}-${n}`))})};return t(qt,{theme:n?Qt.palenight:Qt.vsLight,language:"json",code:o,children:({getLineProps:n,getTokenProps:o,tokens:i})=>t(yh,{children:t(bh,{children:i.map((i,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const n=[...e],o=["property","string"].includes(n[0])?t.replace(/"/g,""):t;return"string"===n[0]&&(["true","false"].includes(o.split("@")[0])&&(n[0]="boolean"),o.split("@")[0].match(/^[0-9]+$/)&&(n[0]="number")),{types:n,content:o}})})(i),d=n({line:l});return 1===l.length&&"property"===l[0].types[0]?e(Ft,{children:[a(2,s),e(vh,{...d,children:[t(Eh,{children:t(xo,{nowrap:!0,children:l[0].content})}),t(Eh,{})]})]},`line-${s}`):2===l.length?t(vh,{...d,children:l.map((n,i)=>{const{text:a,components:l}=((e,n)=>{const[o,...r]=e.split("@");return{text:o,components:r?.map((e,o)=>{if(!e.includes("="))return null;const[r,i]=e.split("=");switch(r){case"tooltip":return t(vu,{withIcon:!0,text:i},`${r}-${i}-${o}`);case"status":if("none"===i)return t("div",{style:{width:16,height:16}},`${r}-${i}-${o}`);let e=Si(i,n);return e||(e=Si(On.Warning,n)),t(e,{},`${r}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(n.content,r),d=0===i;return t(Eh,{children:e(li,{children:[t(li,{children:l}),t(Sh,{$noWrap:d,...o({token:n}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},xh=o.div`
|
|
892
|
-
display: flex;
|
|
893
|
-
align-items: ${({$slim:e})=>e?"flex-start":"center"};
|
|
894
|
-
gap: 8px;
|
|
895
|
-
padding: ${({$hideBackground:e,$slim:t})=>e?"0":t?"8px":"16px"};
|
|
896
|
-
width: ${({$width:e})=>e||"auto"};
|
|
897
|
-
border-radius: ${({$isExtended:e})=>e?"12px 12px 0 0":"12px"};
|
|
898
|
-
background-color: ${({$hideBackground:e,$backgroundColor:t})=>e?"transparent":t};
|
|
899
|
-
|
|
900
|
-
${({$withHover:e,$hideBackground:t,$hoverBackgroundColor:n})=>e&&r`
|
|
901
|
-
cursor: pointer;
|
|
902
|
-
transition: background 0.2s;
|
|
903
|
-
&:hover {
|
|
904
|
-
background-color: ${t?"transparent":n};
|
|
905
|
-
}
|
|
906
|
-
`}
|
|
907
|
-
`,wh=o.div`
|
|
908
|
-
display: flex;
|
|
909
|
-
align-items: center;
|
|
910
|
-
justify-content: center;
|
|
911
|
-
align-self: ${({$slim:e})=>e?"flex-start":"auto"};
|
|
912
|
-
flex-shrink: 0;
|
|
913
|
-
width: ${({$slim:e})=>e?"32px":"42px"};
|
|
914
|
-
height: ${({$slim:e})=>e?"32px":"42px"};
|
|
915
|
-
border-radius: 11px;
|
|
916
|
-
background-color: ${({$backgroundColor:e,$slim:t})=>t?"transparent":e};
|
|
917
|
-
${({$withClick:e})=>e&&r`
|
|
918
|
-
cursor: pointer;
|
|
919
|
-
& * {
|
|
920
|
-
cursor: pointer;
|
|
921
|
-
}
|
|
922
|
-
&:hover {
|
|
923
|
-
transform: scale(1.2);
|
|
924
|
-
}
|
|
925
|
-
`}
|
|
926
|
-
`,Th=o(di)`
|
|
927
|
-
flex: 1;
|
|
928
|
-
align-self: ${({$slim:e})=>e?"flex-start":"center"};
|
|
929
|
-
min-width: 0;
|
|
930
|
-
`,Oh=o(di)`
|
|
931
|
-
align-self: stretch;
|
|
932
|
-
flex-shrink: 0;
|
|
933
|
-
`,Nh=o.div`
|
|
934
|
-
display: flex;
|
|
935
|
-
align-items: center;
|
|
936
|
-
justify-content: center;
|
|
937
|
-
flex-shrink: 0;
|
|
938
|
-
width: 24px;
|
|
939
|
-
height: 24px;
|
|
940
|
-
`,Ah=({status:n,title:o,subTitle:r,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:y=!1})=>{const b=i(),v=Si(n,b),E=p?u?wt:Tt:void 0,S=n===On.Unknown,$=n===On.Disabled,C=n===On.Loading||d,x=[On.Error,On.Warning,On.Success].includes(n),w=Fr(b,n,$?h?"400":"700":S?"600":h?"300":"500"),T=$?b.v2.colors.grey[400]:h?b.v2.colors.white[500]:x?b.v2.colors.black[500]:b.v2.colors.white[500],O=h&&!S?w:T,N=!h||S||$?"rgba(0, 0, 0, 0.13)":Fr(b,n,"800"),A=$?b.v2.colors.grey[900]:h||S?b.v2.colors.silver[800]:w,I=$?b.v2.colors.grey[800]:h||S?b.v2.colors.silver[700]:Fr(b,n,"600");return e(xh,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:I,$slim:y,onClick:p,children:[!g&&t(wh,{$backgroundColor:N,$slim:y,children:C?t(Ei,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(Th,{$gap:4,$justifyContent:"center",$slim:y,children:[e(li,{$gap:10,$alignItems:"center",children:[t(xo,{size:y?vo.XS:vo.S,weight:500,color:O,children:o}),l&&t(Su,{label:l,backgroundColor:b.v2.colors.silver[600],textColor:b.v2.colors.white[500],textSize:vo.XXXS})]}),r&&t(xo,{size:vo.XXXS,color:T,children:r}),a]}),(!!c?.length||s)&&e(Oh,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!c?.length&&t(li,{$gap:8,children:c.map(e=>t(wu,{...e,variant:$u.Secondary,size:Cu.S},e["data-id"]??e.label))}),s]}),E&&t(Nh,{children:t(E,{size:24,fill:T})})]})},Ih=o.div`
|
|
941
|
-
display: flex;
|
|
942
|
-
flex-direction: column;
|
|
943
|
-
width: 100%;
|
|
944
|
-
border-radius: 12px;
|
|
945
|
-
overflow: hidden;
|
|
946
|
-
`,_h=o.div`
|
|
947
|
-
display: flex;
|
|
948
|
-
flex-direction: column;
|
|
949
|
-
gap: 8px;
|
|
950
|
-
padding: 8px 12px 16px 12px;
|
|
951
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
952
|
-
`,Rh=o.div`
|
|
953
|
-
display: flex;
|
|
954
|
-
align-items: center;
|
|
955
|
-
gap: 8px;
|
|
956
|
-
`,Dh=o.div`
|
|
957
|
-
display: flex;
|
|
958
|
-
align-items: center;
|
|
959
|
-
justify-content: center;
|
|
960
|
-
flex-shrink: 0;
|
|
961
|
-
width: 18px;
|
|
962
|
-
height: 18px;
|
|
963
|
-
`,kh=({conditions:n,title:o,subTitle:r})=>{const a=i(),[s,l]=zt(!1),d=Ht(()=>l(e=>!e),[]),c=Wt(()=>Bi(n),[n]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Wt(()=>ur(c),[c]);Bt(()=>{l(p||g||m)},[p,g,m]);const y=Wt(()=>(!c.length||f)&&!p&&!g&&!m,[c.length,f,p,g,m]),b=Wt(()=>p?On.Error:g?On.Warning:m?On.Info:On.Success,[p,g,m]),v=Wt(()=>o||(1===c.length?yo(c[0].reason||c[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:n,loading:o})=>e?"Something Failed":t||n?"Something isn't right":o?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:y}),[o,c,p,g,m,y]),E=Wt(()=>r||1===c.length&&c[0].message||void 0,[r,c]),S=Wt(()=>`${p?u.length:g?h.length:c.length}/${c.length}`,[p,u.length,g,h.length,c.length]);return e(Ih,{children:[t(Ah,{status:b,invertColors:!0,title:v,subTitle:E,badgeLabel:S,loading:y,isExtended:s,toggleExtended:d}),s&&t(_h,{children:c.map(({status:n,type:o,reason:r,message:i},s)=>{const l=n===On.Loading,d=n===On.Disabled?On.Info:n,c=l?null:Si(d,a),u=n===On.Error?Fr(a,On.Error,"500"):n===On.Warning?Fr(a,On.Warning,"500"):a.v2.colors.white[500],p=[o,i||r].filter(Boolean).join(" - ");return e(Rh,{children:[t(Dh,{children:l||!c?t(Ei,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(c,{size:18})}),t(xo,{size:vo.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},Lh=o.div`
|
|
964
|
-
width: ${({$orientation:e,$thickness:t,$length:n})=>e===mn.Vertical?`${t}px`:n||"100%"};
|
|
965
|
-
height: ${({$orientation:e,$thickness:t,$length:n})=>e===mn.Horizontal?`${t}px`:n||"100%"};
|
|
966
|
-
margin: ${({$orientation:e,$margin:t})=>t||(e===mn.Horizontal?"8px 0":"0 8px")};
|
|
967
|
-
background-color: ${({$type:e,theme:t})=>(e?Fr(t,e):t.v2.colors.grey[400])+Ru["050"]};
|
|
968
|
-
opacity: ${({$opacity:e})=>e||1};
|
|
969
|
-
`,Ph=({orientation:e=mn.Horizontal,type:n,thickness:o=1,length:r,margin:i,opacity:a})=>t(Lh,{$orientation:e,$type:n,$thickness:o,$length:r,$margin:i,$opacity:a});var Mh,Uh,Fh;(e=>{e.Default="default",e.SuccessError="successError"})(Mh||(Mh={})),(e=>{e.S="small",e.L="large"})(Uh||(Uh={})),(e=>{e.Left="left",e.Right="right"})(Fh||(Fh={}));const zh=o.div`
|
|
970
|
-
display: flex;
|
|
971
|
-
align-items: center;
|
|
972
|
-
gap: ${({$gap:e})=>e}px;
|
|
973
|
-
`,Bh=o.div`
|
|
974
|
-
position: relative;
|
|
975
|
-
display: flex;
|
|
976
|
-
align-items: center;
|
|
977
|
-
justify-content: space-between;
|
|
978
|
-
box-sizing: content-box;
|
|
979
|
-
|
|
980
|
-
width: ${({$size:e})=>2*e+2}px;
|
|
981
|
-
height: ${({$size:e})=>e}px;
|
|
982
|
-
padding: ${4}px;
|
|
983
|
-
border-radius: ${({$size:e})=>2*e}px;
|
|
984
|
-
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:n,$variant:o,$value:r,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&r)return t;if(n&&!r)return n;switch(o){case Mh.SuccessError:return r?i.v2.colors.green[500]:i.v2.colors.red[500];case Mh.Default:default:return r?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
|
|
985
|
-
|
|
986
|
-
border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
|
|
987
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
988
|
-
`,Hh=o.div`
|
|
989
|
-
position: absolute;
|
|
990
|
-
top: 50%;
|
|
991
|
-
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
992
|
-
transform: translateY(-50%);
|
|
993
|
-
width: ${({$size:e})=>e}px;
|
|
994
|
-
height: ${({$size:e})=>e}px;
|
|
995
|
-
border-radius: 100%;
|
|
996
|
-
background-color: ${({$color:e})=>e};
|
|
997
|
-
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)"};
|
|
998
|
-
`,Wh=({variant:o=Mh.Default,size:r=Uh.L,name:a,label:s,labelAlign:l=Fh.Right,labelColor:d,tooltip:c,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=Et,offIcon:y=Ct,onBgColor:b,offBgColor:v,errorMessage:E,warnMessage:S,helpMessage:$})=>{const C=i(),x=g?C.v2.colors.grey[400]:C.v2.colors.white[500],w=r===Uh.S?10:16,T=d||C.v2.colors.silver[200],O=r===Uh.S?vo.XXXS:vo.XS,N=r===Uh.S?8:12;return e(di,{$gap:4,children:[e(li,{$justifyContent:"space-between",children:[e(zh,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===Fh.Left&&t(xo,{color:T,size:O,nowrap:!0,children:s}),e(Bh,{$onBgColor:b,$offBgColor:v,$variant:o,$size:w,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(Hh,{$color:x,$size:w,$value:p,$disabled:g}),m&&e(n,{children:[t(f,{size:w,fill:x}),t(y,{size:w,fill:x})]})]}),s&&l===Fh.Right&&t(xo,{color:T,size:O,nowrap:!0,children:s})]}),t(ep,{tooltip:c,badge:u})]}),t(tp,{errorMessage:E,warnMessage:S,helpMessage:$})]})},jh=o.div`
|
|
999
|
-
display: flex;
|
|
1000
|
-
flex-direction: ${({$direction:e})=>e===mn.Horizontal?"row":"column"};
|
|
1001
|
-
gap: ${({$direction:e})=>e===mn.Horizontal?16:8}px;
|
|
1002
|
-
`,Gh=({direction:n=mn.Vertical,title:o,size:r,disabled:i,options:a,values:s,setValues:l})=>{const d=r===Uh.S?vo.XS:vo.S;return e(jh,{$direction:n,children:[o&&t(xo,{size:d,children:o}),a.map(e=>t(Wh,{...e,labelAlign:Fh.Right,value:s[e.id],onChange:t=>{return n=e.id,o=t,void l(e=>{const t={...e};return n?t[n]=o:a.forEach(e=>t[e.id]=o),t});var n,o},disabled:i,size:r},`${o}-toggle-${e.id}`))]})},Xh=o.div`
|
|
1003
|
-
display: flex;
|
|
1004
|
-
align-items: center;
|
|
1005
|
-
justify-content: space-between;
|
|
1006
|
-
width: 100%;
|
|
1007
|
-
overflow: hidden;
|
|
1008
|
-
`,Vh=o.div`
|
|
1009
|
-
display: flex;
|
|
1010
|
-
align-items: center;
|
|
1011
|
-
gap: 16px;
|
|
1012
|
-
padding: 6px 0;
|
|
1013
|
-
min-width: 0;
|
|
1014
|
-
flex: 1;
|
|
1015
|
-
overflow: hidden;
|
|
1016
|
-
`,Kh=o.div`
|
|
1017
|
-
display: flex;
|
|
1018
|
-
align-items: center;
|
|
1019
|
-
justify-content: center;
|
|
1020
|
-
flex: 0 0 36px;
|
|
1021
|
-
width: 36px;
|
|
1022
|
-
height: 36px;
|
|
1023
|
-
border-radius: 8px;
|
|
1024
|
-
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1025
|
-
`,Yh=o.img`
|
|
1026
|
-
width: 24px;
|
|
1027
|
-
height: 24px;
|
|
1028
|
-
`,Jh=o.div`
|
|
1029
|
-
display: flex;
|
|
1030
|
-
align-items: center;
|
|
1031
|
-
gap: 16px;
|
|
1032
|
-
flex-shrink: 0;
|
|
1033
|
-
`,qh=({icon:n,iconSrc:o,title:r,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:d,onCloseDisabled:c})=>e(Xh,{children:[e(Vh,{children:[n?t(Kh,{children:t(n,{size:24})}):o?t(Kh,{children:t(Yh,{src:o,alt:r||"icon"})}):null,(r||i?.length||a)&&e(di,{$gap:6,children:[(r||i?.length)&&e(li,{$gap:16,children:[r&&t(xo,{size:vo.S,weight:500,children:r}),i?.length&&t(li,{$gap:4,children:i?.map((e,n)=>t(Su,{...e},`${e.label}-${n}`))})]}),a&&t(xo,{size:vo.XXS,children:a})]})]}),e(Jh,{children:[s&&t(Wh,{...s}),l?.length?t(bp,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Ot},items:l,selectedIds:l?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>l?.find(t=>t?.id===e[0])?.onClick?.()}):null,d&&t(Xc,{"data-id":"drawer-close",icon:Ct,size:jc.M,onClick:d,disabled:c})]})]}),Qh=o.div`
|
|
1034
|
-
position: relative;
|
|
1035
|
-
&.animated {
|
|
1036
|
-
overflow: hidden;
|
|
1037
|
-
padding-bottom: 1px;
|
|
1038
|
-
border-radius: 8px;
|
|
1039
|
-
animation: ${({$isLeaving:e})=>e?ku.out.bottom:ku.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
1040
|
-
}
|
|
1041
|
-
`,Zh=o.div`
|
|
1042
|
-
position: absolute;
|
|
1043
|
-
bottom: -1px;
|
|
1044
|
-
left: 0;
|
|
1045
|
-
z-index: -1;
|
|
1046
|
-
width: 100%;
|
|
1047
|
-
height: 100%;
|
|
1048
|
-
border-radius: 8px;
|
|
1049
|
-
background-color: ${({theme:e,$status:t})=>Fr(e,t,t===On.Default?"300":t===On.Info?"400":"500")};
|
|
1050
|
-
animation: ${Lu.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
1051
|
-
`,eg=o.div`
|
|
1052
|
-
display: flex;
|
|
1053
|
-
align-items: center;
|
|
1054
|
-
gap: 10px;
|
|
1055
|
-
${({$fullWidth:e})=>e&&r`
|
|
1056
|
-
width: 100%;
|
|
1057
|
-
`}
|
|
1058
|
-
padding: 8px 12px 8px 8px;
|
|
1059
|
-
border-radius: 8px;
|
|
1060
|
-
background-color: ${({theme:e,$status:t})=>Fr(e,t,[On.Info,On.Warning].includes(t)?"1000":"900")};
|
|
1061
|
-
`,tg=o.div`
|
|
1062
|
-
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1063
|
-
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1064
|
-
display: flex;
|
|
1065
|
-
align-items: center;
|
|
1066
|
-
justify-content: center;
|
|
1067
|
-
border-radius: 6px;
|
|
1068
|
-
background-color: ${({theme:e,$status:t})=>Fr(e,t,[On.Info].includes(t)?"900":"800")};
|
|
1069
|
-
`,ng=o.div`
|
|
1070
|
-
margin-left: auto;
|
|
1071
|
-
display: flex;
|
|
1072
|
-
align-items: center;
|
|
1073
|
-
gap: 4px;
|
|
1074
|
-
`,og=o.div`
|
|
1075
|
-
margin-right: 8px;
|
|
1076
|
-
cursor: pointer;
|
|
1077
|
-
&:hover {
|
|
1078
|
-
transform: scale(1.2);
|
|
1079
|
-
}
|
|
1080
|
-
`,rg=({status:n,message:o,action:r,fullWidth:a,maxWidth:s,smallIcon:l,onClose:d,duration:c=5e3,zIndex:u})=>{const p=i(),h=Si(n,p),g=Fr(p,n,n===On.Default?"300":n===On.Info?"400":"500"),[m,f]=zt(!1),y=jt(null),b=jt(null),v=c/10,E=c-v,S=e=>{d&&(y.current&&clearTimeout(y.current),f(!0),setTimeout(()=>d({asSeen:e?.asSeen}),v))};return Bt(()=>{if(d)return y.current=setTimeout(()=>S({asSeen:!1}),E),()=>{y.current&&clearTimeout(y.current)}},[c]),e(Qh,{className:d?"animated":"",$duration:c,$isLeaving:m,onMouseEnter:()=>{d&&(y.current&&clearTimeout(y.current),b.current&&(b.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(d&&b.current){const e=b.current.offsetWidth/b.current.parentElement.offsetWidth*E;y.current=setTimeout(()=>S({asSeen:!1}),e),b.current.style.animationPlayState="running"}},style:{zIndex:u,maxWidth:s},children:[e(eg,{$status:n,$fullWidth:a,children:[t("div",{children:t(tg,{$status:n,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(xo,{color:g,size:vo.XXXS,weight:400,children:o}),(r||d)&&e(ng,{children:[r&&t(og,{"data-id":r["data-id"],onClick:r.onClick,children:t(xo,{color:g,size:vo.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),d&&t(Xc,{"data-id":"note-close",icon:Ct,size:jc.XS,onClick:()=>S({asSeen:!0})})]})]}),d&&t(Zh,{ref:b,$status:n,$duration:c})]})},ig=o.div`
|
|
1081
|
-
display: flex;
|
|
1082
|
-
align-items: center;
|
|
1083
|
-
gap: 8px;
|
|
1084
|
-
padding: 4px 12px;
|
|
1085
|
-
`,ag=o.div`
|
|
1086
|
-
flex: 1;
|
|
1087
|
-
`,sg=o.div`
|
|
1088
|
-
min-width: 150px;
|
|
1089
|
-
width: fit-content;
|
|
1090
|
-
`,lg=({note:n,actions:o,children:r})=>r?t(ig,{children:r}):e(ig,{children:[n&&t(rg,{...n}),t(ag,{}),o?.map((e,n)=>t(sg,{children:t(wu,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${n}`))]}),dg=o.div`
|
|
1091
|
-
position: fixed;
|
|
1092
|
-
top: 0;
|
|
1093
|
-
bottom: 0;
|
|
1094
|
-
${({$position:e})=>e}: 0;
|
|
1095
|
-
z-index: ${({theme:e})=>e.v2.zIndex.drawer};
|
|
1096
|
-
|
|
1097
|
-
display: flex;
|
|
1098
|
-
flex-direction: column;
|
|
1099
|
-
gap: 12px;
|
|
1100
|
-
|
|
1101
|
-
width: ${({$width:e})=>e};
|
|
1102
|
-
min-width: ${({$minWidth:e})=>e||"unset"};
|
|
1103
|
-
padding: 12px;
|
|
1104
|
-
border-radius: ${({$position:e})=>"left"===e?"0 20px 20px 0":"20px 0 0 20px"};
|
|
1105
|
-
background: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1106
|
-
box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
|
|
1107
|
-
overflow: hidden;
|
|
1108
|
-
|
|
1109
|
-
${({$disableAnimation:e,$position:t})=>!e&&r`
|
|
1110
|
-
animation-name: ${ku.in[t]};
|
|
1111
|
-
`}
|
|
1112
|
-
`,cg=o.div`
|
|
1113
|
-
display: flex;
|
|
1114
|
-
flex-direction: column;
|
|
1115
|
-
gap: 12px;
|
|
1116
|
-
|
|
1117
|
-
height: calc(100% - ${56}px);
|
|
1118
|
-
overflow-y: auto;
|
|
1119
|
-
`,ug=({isOpen:o,hideOverlay:r=!1,disableAnimation:i=!1,position:a="right",width:s="600px",minWidth:l,header:d,footer:c,children:u})=>(Hc(o),o?Jt(e(n,{children:[!r&&t(pi,{onClick:d?.onCloseDisabled?void 0:d?.onClose}),e(dg,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[d&&t(qh,{...d}),t(cg,{children:u}),c&&t(lg,{...c})]})]}),document.body):null),pg=({options:e,values:n,setValues:o,withMultiSelect:r,withSearch:i,...a})=>{const s=Wt(()=>e.filter(e=>n.includes(e.id)),[e,n]),l=Wt(()=>s.map(e=>e.label).join(", "),[s]);return t(bp,{withMultiSelect:r,withSearch:i,fullWidth:!0,alignX:lp.Left,items:e,selectedIds:n,setSelectedIds:o,children:({ChevronIcon:e,handleClick:n})=>t(Xp,{placeholder:"Select options...",width:"100%",...a,rightIcon:e,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:n,readOnly:!0,tabIndex:-1})})},hg=({error:n})=>{const o=i(),r={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:o.text.error,fontFamily:o.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:o.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:o.text.secondary,fontSize:"14px"}};return e("div",{style:r.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:r.errorMessage,children:n?.message||"Unknown Error"}),e("details",{style:r.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:r.errorStack,children:n?.stack||"Unknown Stack"})]}),t("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),t(wu,{variant:$u.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},gg=({children:e})=>t(tn,{FallbackComponent:({error:e,...n})=>t(_u,{children:t(hg,{...n,error:e})}),children:e}),mg=o.header`
|
|
1120
|
-
position: relative;
|
|
1121
|
-
width: 100%;
|
|
1122
|
-
padding: 12px 18px;
|
|
1123
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1124
|
-
display: flex;
|
|
1125
|
-
align-items: center;
|
|
1126
|
-
justify-content: space-between;
|
|
1127
|
-
`,fg=o(li)`
|
|
1128
|
-
position: absolute;
|
|
1129
|
-
left: 50%;
|
|
1130
|
-
transform: translateX(-50%);
|
|
1131
|
-
gap: 16px;
|
|
1132
|
-
`,yg=({left:n=[],center:o=[],right:r=[]})=>e(mg,{children:[t(li,{$gap:16,children:n}),t(fg,{children:o}),t(li,{$gap:16,children:r})]}),bg=o.div`
|
|
1133
|
-
display: flex;
|
|
1134
|
-
align-items: center;
|
|
1135
|
-
gap: 2px;
|
|
1136
|
-
width: fit-content;
|
|
1137
|
-
padding: 4px;
|
|
1138
|
-
border-radius: 8px;
|
|
1139
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
1140
|
-
box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
|
|
1141
|
-
|
|
1142
|
-
position: absolute;
|
|
1143
|
-
right: ${({$right:e,$left:t})=>e||(t?"unset":"12px")};
|
|
1144
|
-
left: ${({$left:e})=>e||"unset"};
|
|
1145
|
-
top: 50%;
|
|
1146
|
-
transform: translateY(-50%);
|
|
1147
|
-
`,vg=({isOpen:e,actions:n,positionRight:o,positionLeft:r})=>e?t(bg,{$right:o,$left:r,children:n.map(e=>{if(!e)return null;const{tooltip:n,...o}=e;return t(vu,{text:n||"",children:t(wu,{...o,variant:$u.Secondary,size:Cu.S})},o.id)})}):null,Eg=o.div`
|
|
1148
|
-
display: flex;
|
|
1149
|
-
align-items: center;
|
|
1150
|
-
justify-content: center;
|
|
1151
|
-
width: ${({$size:e,$padding:t})=>e+t}px;
|
|
1152
|
-
height: ${({$size:e,$padding:t})=>e+t}px;
|
|
1153
|
-
aspect-ratio: 1 / 1;
|
|
1154
|
-
border-radius: 8px;
|
|
1155
|
-
background-color: ${({theme:e,$noBackground:t,$status:n})=>t?"transparent":n?Fr(e,n,n===On.Warning?"1000":"900"):e.v2.colors.silver[800]};
|
|
1156
|
-
`,Sg=({icons:n,icon:o,iconSrc:r,status:a,size:s=28,padding:l=4})=>{const d=i(),c=s/2.7,u=s/1.3,p=Rr(c,d.v2.text.size);if(n&&n.length>1){const o=n.slice(0,3),r=n.length-o.length,i=o.slice(0,2),d=o.slice(2),u=d.length>0,h=Math.round(s/16);return t("div",{style:{width:"fit-content"},children:t(Eg,{$size:s,$padding:l,$status:a,children:e(di,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(li,{$gap:h,$alignItems:"center",$justifyContent:"center",children:i.map((e,n)=>t(e,{size:c},`top-${n}`))}),u&&e(li,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[d.map((e,n)=>t(e,{size:c},`bottom-${n}`)),r>0&&t(xo,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=n?.[0]||o;return t("div",{style:{width:"fit-content"},children:t(Eg,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:r,alt:"",width:u,height:u})})})},$g=o.div`
|
|
1157
|
-
width: 100%;
|
|
1158
|
-
border-radius: 8px;
|
|
1159
|
-
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1160
|
-
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
1161
|
-
`,Cg=({values:n,setValues:o,name:r,label:a,tooltip:s,badge:l,required:d,errorMessage:c,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,plain:m})=>{const f=i(),y=n.length<=1,b=g,v=g||y&&b,E=n.length?n:[""];return t($g,{$plain:m,children:e(di,{"data-id":r,$gap:6,children:[t(ep,{label:a,tooltip:s,required:d,badge:l}),t(di,{$gap:8,children:E.map((r,i)=>{const a=i===E.length-1;return e(li,{$gap:8,$alignItems:"center",children:[t(Xp,{width:"100%",autoFocus:ki(r)&&!y&&a,value:r,onChange:e=>((e,t)=>{const r=[...n||[]];r[t]=e,o(r)})(e.target.value,i),disabled:g,placeholder:h,hasError:!!c}),a&&t(wu,{leftIcon:Rt,variant:$u.Secondary,size:Cu.S,disabled:b,onClick:()=>(()=>{const e=n.length?qo(n):[qo("")];e.push(""),o(e)})()}),t(wu,{leftIcon:v?Dt:()=>t(Dt,{fill:f.v2.colors.red[500]}),variant:$u.Secondary,size:Cu.S,disabled:v,onClick:()=>(e=>{const t=[...n||[]].filter((t,n)=>n!==e);t.length||t.push(""),o(t)})(i)})]},`input-list-${i}`)})}),t(tp,{errorMessage:c,warnMessage:u,helpMessage:p})]})})};var xg;(e=>{e.S="small",e.L="large"})(xg||(xg={}));const wg=o.div`
|
|
1162
|
-
width: fit-content;
|
|
1163
|
-
display: flex;
|
|
1164
|
-
align-items: center;
|
|
1165
|
-
gap: 8px;
|
|
1166
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1167
|
-
`,Tg=o.div`
|
|
1168
|
-
width: ${({$size:e})=>e===xg.S?"16px":"20px"};
|
|
1169
|
-
height: ${({$size:e})=>e===xg.S?"16px":"20px"};
|
|
1170
|
-
display: flex;
|
|
1171
|
-
align-items: center;
|
|
1172
|
-
justify-content: center;
|
|
1173
|
-
border-radius: 100%;
|
|
1174
|
-
border: 1px solid ${({$borderColor:e})=>e};
|
|
1175
|
-
background-color: ${({$backgroundColor:e})=>e};
|
|
1176
|
-
`,Og=({"data-id":n,label:o,value:r,onChange:a,disabled:s,size:l=xg.L})=>{const d=i(),[c,u]=zt(!1),p=r,h=l===xg.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(wg,{"data-id":n??"radio"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(Tg,{$size:l,$borderColor:m,$backgroundColor:f,children:r?t(kt,{size:h,fill:g}):null}),o&&t(xo,{size:l===xg.S?vo.XXS:vo.XS,children:o})]})},Ng=o.div`
|
|
1177
|
-
display: flex;
|
|
1178
|
-
flex-direction: ${({$flexDirection:e})=>e};
|
|
1179
|
-
gap: ${({$gap:e})=>e}px;
|
|
1180
|
-
`,Ag=({label:n,direction:o,disabled:r,size:i,options:a,values:s,setValues:l})=>e(Ng,{$flexDirection:o===mn.Horizontal?"row":"column",$gap:o===mn.Horizontal?16:8,children:[n&&t(xo,{children:n}),a.map(e=>t(Og,{...e,value:s[e.id],onChange:t=>{return n=e.id,o=t,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[n]=o,t});var n,o},disabled:r,size:i},`${n}-radio-${e.id}`))]}),Ig=({col:n,colIdx:o,row:r,rowIdx:i,rowsLength:a,handleChange:s,errorMessage:l,disabled:d,hideLabel:c,onTestRegex:u})=>{const{keyName:p,componentType:h,inputType:g,label:m,placeholder:f,options:y,renderCondition:b,helpMessage:v,min:E,max:S}=n,$=r[p];if(b&&!b(r))return null;const C=c?void 0:m||void 0,x=f;switch(h){case"radioGroup":{const e=null!=$?String($):"",n=Object.fromEntries((y||[]).map(t=>[t.id,t.id===e]));return t(Ag,{direction:mn.Horizontal,options:(y||[]).map(e=>({id:e.id,label:e.label})),values:n,setValues:e=>{const t="function"==typeof e?e(n):e,o=Object.keys(t).find(e=>t[e])??"";s(p,o,i)},disabled:d},p)}case wn.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===h,n=Array.isArray($)?$:null!=$&&""!==$?[String($)]:[],o=y?.filter(e=>n.includes(e.id)).map(e=>e.id)||[];return t(pg,{name:p,label:C,placeholder:x,options:y||[],withMultiSelect:e,withSearch:e,values:o,setValues:t=>s(p,e?t:t[0]??"",i),disabled:d,hasError:!!l},p)}default:const r=a>1&&0===i&&0===o&&ki($),c=t(Xp,{name:p,label:C,placeholder:x,autoFocus:r,type:g,min:E,max:S,value:$,onChange:({target:{value:e}})=>s(p,e,i),disabled:d,hasError:!!l,helpMessage:v,width:n.withRegexTester?"100%":void 0});return n.withRegexTester?e(li,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:c}),t(wu,{variant:$u.Secondary,size:Cu.S,label:"Test",disabled:d||!String($??"").trim(),onClick:()=>u?.(String($??""))})]}):c}},_g=o.div`
|
|
1181
|
-
width: 100%;
|
|
1182
|
-
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1183
|
-
border-radius: 8px;
|
|
1184
|
-
padding: 8px;
|
|
1185
|
-
display: flex;
|
|
1186
|
-
flex-direction: column;
|
|
1187
|
-
gap: 8px;
|
|
1188
|
-
`,Rg=o.div`
|
|
1189
|
-
flex: 1;
|
|
1190
|
-
min-width: 0;
|
|
1191
|
-
`,Dg=o.div`
|
|
1192
|
-
padding-top: 24px;
|
|
1193
|
-
`,kg=({columns:n,values:o,setValues:r,name:a,label:s,tooltip:l,required:d,disabled:c,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=i(),m=n.find(e=>"segment"===e.componentType),f=m?.keyName,y=m?.options??[],b=e=>{const t={};return n.forEach(({keyName:e,defaultValue:n})=>t[e]=n??""),f&&(t[f]=e),t},v=m?.defaultValue||y[0]?.id||"",E=o.length?o:[b(v)],S=(f?E[0]?.[f]:"")||v,$=(e,t,n)=>{r(E.map((o,r)=>r===e?{...o,[t]:n}:o))},C=()=>r([...E,b(S)]),x=y.find(e=>e.id===S);return e(di,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(ep,{label:s,tooltip:l,required:d}),m&&t(Xu,{"data-id":`${a}-mode`,size:zu.S,fullWidth:!0,options:y.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:S,setSelected:e=>!c&&(e=>r([b(e)]))(String(e))}),e(di,{$gap:8,$width:"100%",children:[E.map((o,i)=>{const s=i===E.length-1,l=f?{...o,[f]:S}:o,d=n.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(l))),m=d.filter(e=>"radioGroup"===e.componentType),y=d.filter(e=>"radioGroup"!==e.componentType),v=d.find(e=>e.withRegexTester),w=((e,t)=>{const n=t||e.length||1,o=[];let r=[];const i=()=>{r.length&&(o.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return i(),void o.push([e]);r.push(e),r.length>=n&&i()}),i(),o})(y,h),T=x?.rowTitle?`${x.rowTitle} ${i+1}`:void 0;return e(_g,{"data-id":`${a}-card-${i}`,children:[e(li,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(di,{$gap:10,children:[T&&t(ep,{label:T}),m.map(e=>t(li,{$gap:24,children:(e.options??[]).map(n=>t(Og,{size:xg.L,label:n.label,value:String(o[e.keyName]??"")===String(n.id),disabled:c,onChange:t=>t&&$(i,e.keyName,n.id)},`${a}-card-${i}-${e.keyName}-${n.id}`))},`${a}-card-${i}-${e.keyName}`))]}),e(li,{$gap:4,$alignItems:"center",children:[v&&t(wu,{"data-id":`${a}-card-${i}-test-regex`,label:"Test Regex",variant:$u.Secondary,size:Cu.S,disabled:c||!String(o[v.keyName]??"").trim(),onClick:()=>p?.(String(o[v.keyName]??""))}),t(wu,{"data-id":`${a}-card-${i}-delete`,leftIcon:c?Dt:()=>t(Dt,{fill:g.v2.colors.red[500]}),variant:$u.Secondary,size:Cu.S,disabled:c,onClick:()=>(e=>{const t=E.filter((t,n)=>n!==e);r(t.length?t:[b(S)])})(i)}),s&&t(wu,{"data-id":`${a}-card-${i}-add`,leftIcon:Rt,variant:$u.Secondary,size:Cu.S,disabled:c,onClick:C})]})]}),w.map((n,r)=>t(li,{$gap:8,$alignItems:"flex-start",$width:"100%",children:n.map((n,r)=>{const s=((e,t)=>{let{label:n,placeholder:o,helpMessage:r}=e;if(e.copyByColumn){const i=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];i&&(n=i.label??n,o=i.placeholder??o,r=i.helpMessage??r)}return{label:n,placeholder:o,helpMessage:r}})(n,o);return e(Ft,{children:["arrow"===n.separator&&r>0&&t(Dg,{children:t(Lt,{size:24,fill:g.v2.colors.silver[200]})}),t(Rg,{children:t(Xp,{name:`${a}-card-${i}-${n.keyName}`,label:s.label,placeholder:s.placeholder,helpMessage:s.helpMessage,type:n.inputType,min:n.min,max:n.max,width:"100%",value:o[n.keyName]??"",disabled:c,hasError:!!u,onChange:e=>$(i,n.keyName,e.target.value)})})]},`${a}-card-${i}-${n.keyName}`)})},`${a}-card-${i}-row-${r}`))]},`${a}-card-${i}`)}),t(tp,{errorMessage:u})]})]})},Lg=o.div`
|
|
1194
|
-
width: 100%;
|
|
1195
|
-
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1196
|
-
border-radius: 8px;
|
|
1197
|
-
padding: 4px 8px;
|
|
1198
|
-
`,Pg=o.table`
|
|
1199
|
-
width: 100%;
|
|
1200
|
-
border-collapse: separate;
|
|
1201
|
-
border-spacing: 0 8px;
|
|
1202
|
-
`,Mg=o.td`
|
|
1203
|
-
padding: 0 8px 0 0;
|
|
1204
|
-
vertical-align: top;
|
|
1205
|
-
`,Ug=o.td`
|
|
1206
|
-
width: 72px;
|
|
1207
|
-
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1208
|
-
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
1209
|
-
`,Fg=({columns:n,values:o,setValues:r,name:a,label:s,tooltip:l,badge:d,required:c,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m,onTestRegex:f})=>{const y=i(),b=Wt(()=>{const e={};return n.forEach(({keyName:t,defaultValue:n})=>e[t]=n??""),e},[n]),v=(e,t,n)=>{const i=o.length?qo(o):[qo(b)];i[n][e]=t,r(i)},E=o.length?o:[b];return t(Lg,{children:e(di,{"data-id":a,$gap:0,children:[t(ep,{label:s,tooltip:l,required:c,badge:d}),t(Pg,{children:t("tbody",{children:E.map((i,a)=>{const s=a===E.length-1,l=((e,t)=>{const n=t||e.length||1,o=[];let r=[];const i=()=>{r.length&&(o.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return i(),void o.push([e]);r.push(e),r.length>=n&&i()}),i(),o})(n.filter(e=>!e.renderCondition||e.renderCondition(i)),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(Ft,{children:[l.length>1&&a>0?t("tr",{children:t(Mg,{colSpan:c+1})}):null,l.map((l,g)=>{const m=d[g],S=m?22:0;return e("tr",{children:[l.map((n,o)=>{if(n.renderCondition&&!n.renderCondition(i))return null;const r=o===l.length-1,s=0===g&&r?c-l.length+1:1;return t(Mg,{colSpan:s>1?s:void 0,children:e(di,{$gap:6,children:[m&&(n.label?t(ep,{label:n.label,tooltip:n.tooltip}):t(ep,{label:"\\u00A0"})),t(Ig,{col:n,colIdx:o,row:i,rowIdx:a,rowsLength:E.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:m,onTestRegex:f})]})},`input-table-row-${a}-col-${g}-${o}`)}),0===g&&t(Ug,{$topOffset:S,$center:h,children:e(li,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(wu,{leftIcon:Rt,variant:$u.Secondary,size:Cu.S,disabled:u,onClick:()=>(()=>{const e=o.length?qo(o):[qo(b)],t=qo(b),i=e[e.length-1];n.forEach(e=>{"dropdown"!==e.componentType&&"multi-dropdown"!==e.componentType||null!=t[e.keyName]&&""!==t[e.keyName]||null!=i?.[e.keyName]&&""!==i[e.keyName]&&(t[e.keyName]=qo(i[e.keyName]))}),e.push(t),r(e)})()}),t(wu,{leftIcon:u?Dt:()=>t(Dt,{fill:y.v2.colors.red[500]}),variant:$u.Secondary,size:Cu.S,disabled:u,onClick:()=>(e=>{const t=o.filter((t,n)=>n!==e);t.length||t.push(qo(b)),r(t)})(a)})]})})]},`input-table-matrix-${a}-${g}`)})]},`input-table-row-${a}`)})})}),t(tp,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},zg=o.div`
|
|
1210
|
-
display: flex;
|
|
1211
|
-
align-items: center;
|
|
1212
|
-
justify-content: space-between;
|
|
1213
|
-
gap: 32px;
|
|
1214
|
-
|
|
1215
|
-
padding: 18px 16px;
|
|
1216
|
-
border-radius: 18px;
|
|
1217
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]+Ru["095"]};
|
|
1218
|
-
box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
|
|
1219
|
-
|
|
1220
|
-
position: fixed;
|
|
1221
|
-
bottom: 0;
|
|
1222
|
-
left: 50%;
|
|
1223
|
-
z-index: ${({theme:e})=>e.v2.zIndex.island};
|
|
1224
|
-
animation-name: ${ku.in.center};
|
|
1225
|
-
`,Bg=({isOpen:n,onClose:o,richTitle:r,actions:i})=>n?e(zg,{children:[t(xp,{...r}),t(Ep,{onAnyClick:o,actions:i})]}):null,Hg=o.div`
|
|
1226
|
-
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
1227
|
-
top: 50%;
|
|
1228
|
-
left: 50%;
|
|
1229
|
-
transform: translate(-50%, -50%);
|
|
1230
|
-
// Match Overlay: page-scoped modals stay below the sidebar; full-screen modals
|
|
1231
|
-
// portal above it. See theme.v2.zIndex for the full stacking scale.
|
|
1232
|
-
z-index: ${({theme:e,$relativeToParent:t})=>t?e.v2.zIndex.island:e.v2.zIndex.modal};
|
|
1233
|
-
width: fit-content;
|
|
1234
|
-
border-radius: 20px;
|
|
1235
|
-
background: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1236
|
-
box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
|
|
1237
|
-
overflow: hidden;
|
|
1238
|
-
|
|
1239
|
-
/* Promote to its own composited layer and isolate paint/layout so descendant
|
|
1240
|
-
re-renders during the slide animation can't trigger reflows of the rest of
|
|
1241
|
-
the page. Without this, the global \`* { transition: all 300ms }\` rule plus
|
|
1242
|
-
a heavy modal body (forms, etc.) make the close visibly stutter. */
|
|
1243
|
-
will-change: transform;
|
|
1244
|
-
contain: layout paint;
|
|
1245
|
-
|
|
1246
|
-
animation-name: ${({$closing:e})=>e?ku.out.center:ku.in.center};
|
|
1247
|
-
/* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
|
|
1248
|
-
the global 300ms default which pairs with the fade-in for a soft entrance. */
|
|
1249
|
-
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1250
|
-
animation-timing-function: ${({$closing:e})=>e?"cubic-bezier(0.4, 0, 1, 1)":"cubic-bezier(0, 0, 0.2, 1)"};
|
|
1251
|
-
|
|
1252
|
-
/* Block hover/click work on form children mid-close so their transitions
|
|
1253
|
-
don't compete with the slide-out. */
|
|
1254
|
-
${({$closing:e})=>e&&"pointer-events: none;"}
|
|
1255
|
-
`,Wg=o(pi)`
|
|
1256
|
-
will-change: opacity;
|
|
1257
|
-
animation-name: ${({$closing:e})=>e?Uu.out:Uu.in};
|
|
1258
|
-
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1259
|
-
|
|
1260
|
-
/* The blurred backdrop is the most expensive thing on screen during the close
|
|
1261
|
-
— animating opacity on a backdrop-filtered element forces a full GPU
|
|
1262
|
-
recomposite per frame. Drop the blur while closing; visually identical
|
|
1263
|
-
because the overlay is fading to 0. */
|
|
1264
|
-
${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
|
|
1265
|
-
`,jg=o.div`
|
|
1266
|
-
position: relative;
|
|
1267
|
-
`,Gg=o.div`
|
|
1268
|
-
position: absolute;
|
|
1269
|
-
top: 16px;
|
|
1270
|
-
left: 16px;
|
|
1271
|
-
`,Xg=({isOpen:o,hideOverlay:r=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:d})=>{const[c,u]=zt(o),[p,h]=zt(!1);if(Bt(()=>{o?(u(!0),h(!1)):c&&h(!0)},[o]),Hc(c),!c)return null;const g=e(n,{children:[!r&&t(Wg,{$relativeToParent:i,$closing:p,onClick:p?void 0:s}),t(Hg,{"data-id":"modal",$relativeToParent:i,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(jg,{children:[a&&t(Gg,{children:t(Xc,{icon:e=>t(It,{rotate:-90,...e}),size:jc.L,onClick:a})}),d]})})]});return i?g:Jt(g,document.body)},Vg=o.div`
|
|
1272
|
-
position: relative;
|
|
1273
|
-
width: ${64}px;
|
|
1274
|
-
height: ${({$height:e})=>e};
|
|
1275
|
-
flex-shrink: 0;
|
|
1276
|
-
`,Kg=o.aside`
|
|
1277
|
-
position: absolute;
|
|
1278
|
-
top: 0;
|
|
1279
|
-
left: 0;
|
|
1280
|
-
bottom: 0;
|
|
1281
|
-
display: flex;
|
|
1282
|
-
flex-direction: column;
|
|
1283
|
-
gap: 8px;
|
|
1284
|
-
width: ${({$expanded:e})=>e?"220px":"64px"};
|
|
1285
|
-
padding: 16px ${12}px;
|
|
1286
|
-
box-sizing: border-box;
|
|
1287
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1288
|
-
overflow-x: hidden;
|
|
1289
|
-
overflow-y: auto;
|
|
1290
|
-
// Above page-scoped overlays (upgrade-required) so expanded labels stay visible;
|
|
1291
|
-
// below full-screen modals/drawers that portal to document.body.
|
|
1292
|
-
z-index: ${({theme:e})=>e.v2.zIndex.sidebar};
|
|
1293
|
-
transition:
|
|
1294
|
-
width 200ms ease,
|
|
1295
|
-
padding 200ms ease;
|
|
1296
|
-
`,Yg=o.button`
|
|
1297
|
-
display: flex;
|
|
1298
|
-
align-items: center;
|
|
1299
|
-
width: 100%;
|
|
1300
|
-
min-width: 0;
|
|
1301
|
-
height: ${40}px;
|
|
1302
|
-
padding: 0;
|
|
1303
|
-
margin: 0;
|
|
1304
|
-
border: none;
|
|
1305
|
-
border-radius: 6px;
|
|
1306
|
-
box-sizing: border-box;
|
|
1307
|
-
cursor: pointer;
|
|
1308
|
-
font: inherit;
|
|
1309
|
-
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[500]:"transparent"};
|
|
1310
|
-
&:hover {
|
|
1311
|
-
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[600]:e.v2.colors.silver[800]};
|
|
1312
|
-
}
|
|
1313
|
-
&:active {
|
|
1314
|
-
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
|
|
1315
|
-
}
|
|
1316
|
-
`,Jg=o.div`
|
|
1317
|
-
width: ${40}px;
|
|
1318
|
-
height: ${40}px;
|
|
1319
|
-
display: flex;
|
|
1320
|
-
align-items: center;
|
|
1321
|
-
justify-content: center;
|
|
1322
|
-
flex-shrink: 0;
|
|
1323
|
-
`,qg=o.div`
|
|
1324
|
-
flex: 1 1 0;
|
|
1325
|
-
min-width: 0;
|
|
1326
|
-
overflow: hidden;
|
|
1327
|
-
padding-right: 12px;
|
|
1328
|
-
pointer-events: none;
|
|
1329
|
-
`,Qg=({height:n,icons:o})=>{const r=i(),[a,s]=zt(!1);return t(Vg,{$height:n,children:t(Kg,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:o.map(({id:n,label:o,selected:i,icon:s,onClick:l})=>e(Yg,{$selected:i,onClick:l,"aria-label":o,title:a?void 0:o,children:[t(Jg,{children:t(s,{size:24,fill:r.v2.colors.white[500]})}),a&&t(qg,{children:t(xo,{size:vo.S,weight:500,color:Eo.Primary,nowrap:!0,children:o})})]},n))})})},Zg=o.div`
|
|
1330
|
-
display: flex;
|
|
1331
|
-
flex-direction: column;
|
|
1332
|
-
gap: 16px;
|
|
1333
|
-
width: 100%;
|
|
1334
|
-
padding: 16px;
|
|
1335
|
-
border-radius: 16px;
|
|
1336
|
-
border: 2px solid transparent;
|
|
1337
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1338
|
-
transition:
|
|
1339
|
-
background-color 0.15s ease,
|
|
1340
|
-
border-color 0.15s ease;
|
|
1341
|
-
|
|
1342
|
-
${({$selected:e,$disabled:t,theme:n})=>e?r`
|
|
1343
|
-
background-color: ${n.v2.colors.purple[900]};
|
|
1344
|
-
border-color: ${n.v2.colors.purple[500]};
|
|
1345
|
-
`:r`
|
|
1346
|
-
background-color: ${n.v2.colors.silver[800]};
|
|
1347
|
-
${!t&&r`
|
|
1348
|
-
&:hover {
|
|
1349
|
-
background-color: ${n.v2.colors.silver[700]};
|
|
1350
|
-
}
|
|
1351
|
-
`}
|
|
1352
|
-
`}
|
|
1353
|
-
`,em=o.div`
|
|
1354
|
-
display: flex;
|
|
1355
|
-
align-items: center;
|
|
1356
|
-
gap: 16px;
|
|
1357
|
-
width: 100%;
|
|
1358
|
-
`,tm=o.div`
|
|
1359
|
-
display: flex;
|
|
1360
|
-
flex-direction: column;
|
|
1361
|
-
gap: 4px;
|
|
1362
|
-
flex: 1;
|
|
1363
|
-
min-width: 0;
|
|
1364
|
-
`,nm=o.div`
|
|
1365
|
-
width: 100%;
|
|
1366
|
-
`,om=({"data-id":n,title:o,description:r,body:a,footerNote:s,checked:l,onChange:d,disabled:c})=>{const u=i(),p=n??`radio-card-${o}`,h=()=>{c||d(!0)};return e(Zg,{"data-id":p,$selected:l,$disabled:c,onClick:h,children:[e(em,{children:[t(Og,{"data-id":`${p}-radio`,value:l,onChange:h,size:xg.L,disabled:c}),e(tm,{children:[t(xo,{size:vo.S,weight:500,lineHeight:"24px",color:Eo.Primary,children:o}),r&&t(xo,{size:vo.XXS,weight:400,lineHeight:"normal",color:l?u.v2.colors.purple[200]:Eo.Secondary,children:r})]})]}),a&&t(nm,{children:a}),s&&t(nm,{children:s})]})},rm=o.div`
|
|
1367
|
-
width: 100%;
|
|
1368
|
-
height: 100%;
|
|
1369
|
-
|
|
1370
|
-
* {
|
|
1371
|
-
animation: none !important;
|
|
1372
|
-
transition: none !important;
|
|
1373
|
-
}
|
|
1374
|
-
`,im=({width:e="100%",height:n="100%",gap:o=0,elements:r,noAnimation:i=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const d=jt(null),c=Wt(()=>o?r.map((e,n)=>t("div",{style:{paddingBottom:o},children:e},`scroll-y-item-${n}`)):r,[r,o]),u=Ht(e=>{if(!a||!d.current)return;const t=d.current.findItemIndex(e);a(t)},[a]);Bt(()=>{null==s||s<0||!d.current||d.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=t(nn,{ref:d,style:{width:e,height:n},onScroll:a?u:void 0,children:c});return i?t(rm,{children:p}):p},am=o.div`
|
|
1375
|
-
display: flex;
|
|
1376
|
-
flex-direction: column;
|
|
1377
|
-
gap: 16px;
|
|
1378
|
-
padding: 8px;
|
|
1379
|
-
${({$maxWidth:e})=>e&&`max-width: ${e};`}
|
|
1380
|
-
${({$maxHeight:e})=>e&&`max-height: ${e};`}
|
|
1381
|
-
width: 100%;
|
|
1382
|
-
height: 100%;
|
|
1383
|
-
`,sm=o.div`
|
|
1384
|
-
display: flex;
|
|
1385
|
-
align-items: center;
|
|
1386
|
-
gap: 16px;
|
|
1387
|
-
`,lm=o.div`
|
|
1388
|
-
width: 50px;
|
|
1389
|
-
height: 50px;
|
|
1390
|
-
border-radius: 8px;
|
|
1391
|
-
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1392
|
-
background-size: 200% 100%;
|
|
1393
|
-
animation: ${Mu} 10s infinite linear;
|
|
1394
|
-
`,dm=o(di)`
|
|
1395
|
-
flex: 1;
|
|
1396
|
-
gap: 12px;
|
|
1397
|
-
`,cm=o.div`
|
|
1398
|
-
width: ${({$width:e})=>e};
|
|
1399
|
-
height: 16px;
|
|
1400
|
-
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1401
|
-
background-size: 200% 100%;
|
|
1402
|
-
animation: ${Mu} 1.5s infinite linear;
|
|
1403
|
-
border-radius: 4px;
|
|
1404
|
-
`,um=({size:n=5,maxWidth:o,maxHeight:r})=>t(am,{$maxWidth:o,$maxHeight:r,children:[...Array(n)].map((n,o)=>e(sm,{children:[t(lm,{}),e(dm,{children:[t(cm,{$width:"80%"}),t(cm,{$width:"100%"})]})]},o))}),pm=({currentStep:n,data:o,gap:r=12})=>t(di,{$gap:r,children:o.map(o=>{const r=o.step<n,i=o.step===n;return e(li,{$gap:8,children:[r||o.forceDoneBadge?t(Su,{status:On.Success,label:"",leftIcon:Et}):t(Su,{status:On.Default,label:o.step.toString()}),t(xo,{size:i?vo.M:vo.XS,weight:i?500:400,opacity:i?1:.7,children:o.label})]},`stepper-item-${o.step}`)})});var hm;(e=>{e.Data="data",e.Pretty="pretty"})(hm||(hm={}));const gm=o.div`
|
|
1405
|
-
${({$maxHeight:e})=>e?`\n height: ${e};\n flex: 0 0 auto;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n "}
|
|
1406
|
-
width: 100%;
|
|
1407
|
-
display: flex;
|
|
1408
|
-
flex-direction: column;
|
|
1409
|
-
overflow: hidden;
|
|
1410
|
-
`,mm=o.div`
|
|
1411
|
-
width: 100%;
|
|
1412
|
-
flex: 1;
|
|
1413
|
-
display: flex;
|
|
1414
|
-
flex-direction: column;
|
|
1415
|
-
`,fm=o.div`
|
|
1416
|
-
flex-shrink: 0;
|
|
1417
|
-
position: relative;
|
|
1418
|
-
z-index: 2;
|
|
1419
|
-
`,ym=o.div`
|
|
1420
|
-
position: relative;
|
|
1421
|
-
display: flex;
|
|
1422
|
-
width: 100%;
|
|
1423
|
-
`,bm=o.div`
|
|
1424
|
-
position: relative;
|
|
1425
|
-
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1426
|
-
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
|
|
1427
|
-
|
|
1428
|
-
/* See the matching rule on Td below for the full explanation. The header
|
|
1429
|
-
* needs the same flex-grow override so its column shares any empty row
|
|
1430
|
-
* width even when the caller wrote 'flex: 0 0 Xpx'. */
|
|
1431
|
-
${({$autoWidth:e,$resolvedWidth:t})=>!e&&null==t&&r`
|
|
1432
|
-
flex-grow: 1;
|
|
1433
|
-
`}
|
|
1434
|
-
|
|
1435
|
-
padding: 18px 24px;
|
|
1436
|
-
border: none;
|
|
1437
|
-
border-radius: ${({$isFirst:e,$isLast:t})=>e?"4px 0 0 0":t?"0 4px 0 0":"0"};
|
|
1438
|
-
box-sizing: border-box;
|
|
1439
|
-
|
|
1440
|
-
${({$variant:e,$backgroundColor:t})=>{if(t)return r`
|
|
1441
|
-
background-color: ${t};
|
|
1442
|
-
`;switch(e){case hm.Data:return r`
|
|
1443
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1444
|
-
`;case hm.Pretty:return r`
|
|
1445
|
-
background-color: transparent;
|
|
1446
|
-
`;default:return""}}}
|
|
1447
|
-
`,vm=o.div`
|
|
1448
|
-
position: absolute;
|
|
1449
|
-
top: 50%;
|
|
1450
|
-
right: 0;
|
|
1451
|
-
transform: translateY(-50%);
|
|
1452
|
-
width: 1px;
|
|
1453
|
-
height: 18px;
|
|
1454
|
-
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1455
|
-
`,Em=o.div`
|
|
1456
|
-
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1457
|
-
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
|
|
1458
|
-
|
|
1459
|
-
/* Always let text columns grow into empty row space, even when the caller
|
|
1460
|
-
* wrote an explicit flex value with grow=0 (e.g. 'flex: 0 0 160px'). The
|
|
1461
|
-
* 'flex' shorthand above sets all three flex sub-properties from the
|
|
1462
|
-
* caller's value; this longhand 'flex-grow: 1' is declared after it so it
|
|
1463
|
-
* wins and the column still consumes any leftover width.
|
|
1464
|
-
*
|
|
1465
|
-
* Without this, a column pinned with 'flex: 0 0 160px' stays at 160px even
|
|
1466
|
-
* when the row has hundreds of pixels of empty space — and the text inside
|
|
1467
|
-
* gets ellipsised (or in extreme cases clipped without indication) when it
|
|
1468
|
-
* could comfortably fit a few more pixels. Combined with the cell's
|
|
1469
|
-
* 'overflow: hidden', a column that's STILL too narrow after consuming all
|
|
1470
|
-
* available space then truncates cleanly via TruncatableTypography's
|
|
1471
|
-
* ellipsis + tooltip.
|
|
1472
|
-
*
|
|
1473
|
-
* Component (auto-width) columns and JS-measured columns
|
|
1474
|
-
* ('resolvedColumnWidths') keep their exact pixel width — they're already
|
|
1475
|
-
* sized to fit their content and shouldn't steal leftover space from text
|
|
1476
|
-
* columns. The withCheckboxes column passes 'flex' via an inline style,
|
|
1477
|
-
* which takes precedence over class styles, so it stays pinned too. */
|
|
1478
|
-
${({$autoWidth:e,$resolvedWidth:t})=>!e&&null==t&&r`
|
|
1479
|
-
flex-grow: 1;
|
|
1480
|
-
`}
|
|
1481
|
-
|
|
1482
|
-
overflow: ${({$autoWidth:e})=>e?"visible":"hidden"};
|
|
1483
|
-
display: flex;
|
|
1484
|
-
align-items: center;
|
|
1485
|
-
|
|
1486
|
-
padding: 18px 24px;
|
|
1487
|
-
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
1488
|
-
box-sizing: border-box;
|
|
1489
|
-
|
|
1490
|
-
${({$variant:e,$selected:t,$highlighted:n,$hovered:o,$isLastRow:i,$isFirstCell:a,$isLastCell:s})=>{switch(e){case hm.Data:return r`
|
|
1491
|
-
border-bottom: ${({theme:e})=>i?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1492
|
-
border-radius: ${i?a?"0 0 0 4px":s?"0 0 4px 0":"0":"0"};
|
|
1493
|
-
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
1494
|
-
`;case hm.Pretty:return r`
|
|
1495
|
-
border: none;
|
|
1496
|
-
border-radius: ${a?"12px 0 0 12px":s?"0 12px 12px 0":"0"};
|
|
1497
|
-
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1498
|
-
`;default:return""}}}
|
|
1499
|
-
`,Sm=o.div`
|
|
1500
|
-
position: absolute;
|
|
1501
|
-
top: 0;
|
|
1502
|
-
left: 0;
|
|
1503
|
-
visibility: hidden;
|
|
1504
|
-
pointer-events: none;
|
|
1505
|
-
height: 0;
|
|
1506
|
-
overflow: hidden;
|
|
1507
|
-
white-space: nowrap;
|
|
1508
|
-
`,$m=o.div`
|
|
1509
|
-
display: inline-flex;
|
|
1510
|
-
align-items: center;
|
|
1511
|
-
padding: 18px 24px;
|
|
1512
|
-
box-sizing: border-box;
|
|
1513
|
-
white-space: nowrap;
|
|
1514
|
-
`,Cm=o.div`
|
|
1515
|
-
display: inline-flex;
|
|
1516
|
-
align-items: center;
|
|
1517
|
-
gap: 4px;
|
|
1518
|
-
white-space: nowrap;
|
|
1519
|
-
`,xm=o.div`
|
|
1520
|
-
width: 100%;
|
|
1521
|
-
height: 100%;
|
|
1522
|
-
display: flex;
|
|
1523
|
-
align-items: center;
|
|
1524
|
-
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1525
|
-
gap: 4px;
|
|
1526
|
-
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1527
|
-
`,wm=({variant:n,columns:o,rows:r,autoWidthColumnKeys:i,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:d,withCheckboxes:c,activeRowId:u,scrollToIndex:p,scrollSignal:h})=>{const[g,m]=zt(null),f=Wt(()=>r.map((p,h)=>{const{cells:f,onClick:y,isSelected:b=!1,onSelect:v,onDeselect:E,hideCheckbox:S,checkboxDisabled:$,checkboxTooltip:C}=p,x=g===h,w=null!=u&&p.id===u,T=s(p),O=(e,t)=>({$isLastRow:h===r.length-1,$isFirstCell:e,$isLastCell:t,$selected:b,$highlighted:w,$withClick:!!y,onClick:()=>y?.(),$hovered:!!y&&x,onMouseEnter:()=>m(h),onMouseLeave:()=>m(null)});return e(ym,{children:[c&&t(Em,{$variant:n,style:{flex:"0 0 68px"},...O(!0,!1),children:!S&&(C?t(vu,{text:C,children:t(ip,{value:b,disabled:$,onChange:()=>b?E?.():v?.()})}):t(ip,{value:b,disabled:$,onChange:()=>b?E?.():v?.()}))},"checkbox-column"),o.map(({key:r,withTooltip:s,textAlign:u,flex:p,minWidth:g},m)=>{const y=f.find(e=>e.key===r),b=0===m&&!c,v=m===o.length-1,E=T.length&&(l&&v||d&&b||!l&&!d&&v),S="right"===u?"flex-end":"center"===u?"center":"flex-start",$=y?.component?t(y.component,{}):s?t(xo,{size:vo.XS,align:u,nowrap:!0,children:y?.rawValue||"-"}):t(wp,{size:vo.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),C=t(li,{$width:"100%",$justifyContent:S,children:$});return e(Em,{$variant:n,$flex:p,$minWidth:g,$autoWidth:i.has(r),$resolvedWidth:a[r],...O(b,v),children:[s?t(vu,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:C}):C,E?t(vg,{isOpen:x,actions:T,positionRight:l,positionLeft:d}):null]},`row-${h}-cell-${m}`)})]},`row-${h}`)}),[r,g,u,s,l,d,c,o,i,a]);return t(im,{gap:n===hm.Pretty?8:0,elements:f,scrollToIndex:p,scrollSignal:h})},Tm=({columnKey:e,sortDirection:n,sortByKey:o,onSort:r})=>{const a=i(),s=o===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=n===fn.Ascending?0:180;return t(wu,{variant:$u.Text,size:Cu.S,leftIcon:()=>t(It,{fill:s,rotate:l}),onClick:()=>r(e)})},Om=({columnKey:e,filters:n,onFilter:o,rowsUnfiltered:r,filterOverride:a})=>{const s=i(),l=n[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(r.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})),[r,e,a]);return t(bp,{items:d,withMultiSelect:!0,selectedIds:n[e]?.map(e=>e.toString())??[],setSelectedIds:t=>o(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Pt,{fill:l,...e})}})},Nm=({variant:n,backgroundColor:o,columns:r,rowsUnfiltered:i,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:d,onSort:c,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>e(ym,{children:[h&&t(bm,{$variant:n,$backgroundColor:o,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(ip,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),r.map(({key:g,label:m,withTooltip:f,tooltip:y,noSort:b,noFilter:v,filterOverride:E,flex:S,minWidth:$,textAlign:C},x)=>{const w=0===x&&!h,T=x===r.length-1,O=!(!y&&!f),N=O?t(xo,{size:vo.XS,align:C,nowrap:!0,children:m}):t(wp,{size:vo.XS,align:C,nowrap:!0,fullWidth:!1,children:m});return e(bm,{$variant:n,$backgroundColor:o,$flex:S,$minWidth:$,$isFirst:w,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(xm,{$textAlign:C,children:[O?t(vu,{text:y||m,children:N}):N,!b&&t(Tm,{columnKey:g,sortDirection:l,sortByKey:d,onSort:c}),!v&&t(Om,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:E})]}),!T&&n===hm.Data&&t(vm,{})]},`column-${g}`)})]}),Am=()=>{},Im={},_m=[],Rm=({variant:n,maxHeight:o,headerBackgroundColor:r,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:d,getRowActions:c,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,filters:g,onFiltersChange:m,activeRowId:f,scrollSignal:y})=>{const[b,v]=zt(fn.Ascending),[E,S]=zt(""),[$,C]=zt({}),x=g??$,w=Ht(e=>{S(e),v(e=>e===fn.Ascending?fn.Descending:fn.Ascending)},[]),T=Ht((e,t)=>{const n={...x,[e]:t};m&&m(n),void 0===g&&C(n)},[x,m,g]),O=Wt(()=>{const e=(e,t)=>{const n=e.cells.find(e=>e.key===t);return n&&(n.rawValue?.toString()||n.component?.({})?.props?.children?.toString())||""};return(E?[...d].sort((t,n)=>{const o=e(t,E),r=e(n,E);return(b===fn.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)))(o,r)}):d).filter(t=>{for(const[n,o]of Object.entries(x)){if(!o.length)continue;const r=l.find(e=>e.key===n)?.filterOverride;if(r){if(!r.filterRow(t,o))return!1}else if(!o.includes(e(t,n)))return!1}return!0})},[d,E,b,x,l]),N=Wt(()=>null==f?-1:O.findIndex(e=>e.id===f),[O,f]),{partiallySelected:A,allSelected:I}=Wt(()=>{const e=O.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)}},[O]),_=Wt(()=>{const e=new Set;for(const t of l)null!=t.flex&&e.add(t.key);const t=new Set;for(const n of d)for(const o of n.cells)o.component&&!e.has(o.key)&&t.add(o.key);return t},[d,l]),R=jt(null),[D,k]=zt({}),L=Wt(()=>0===_.size?[]:l.filter(e=>_.has(e.key)).map(n=>{const o=[e(Cm,{children:[t(xo,{size:vo.XS,align:n.textAlign,children:n.label}),!n.noSort&&t(Tm,{columnKey:n.key,sortDirection:fn.Ascending,sortByKey:"",onSort:Am}),!n.noFilter&&t(Om,{columnKey:n.key,filters:Im,onFilter:Am,rowsUnfiltered:_m,filterOverride:n.filterOverride})]},`mw-${n.key}-header`)];return d.forEach((e,r)=>{const i=e.cells.find(e=>e.key===n.key);i&&o.push(i.component?t(i.component,{},`mw-${n.key}-${r}`):t(xo,{size:vo.XS,children:i.rawValue||"-"},`mw-${n.key}-${r}`))}),{key:n.key,nodes:o}}),[l,d,_]);return Gt(()=>{if(!R.current||0===_.size)return void k(e=>0===Object.keys(e).length?e:{});const e={};R.current.querySelectorAll("[data-mw-key]").forEach(t=>{const n=t.dataset.mwKey;if(!n)return;const o=Math.ceil(t.getBoundingClientRect().width);(!e[n]||o>e[n])&&(e[n]=o)}),k(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])?t:e)},[L,_]),e(gm,{$maxHeight:o,children:[L.length>0&&t(Sm,{ref:R,"aria-hidden":!0,children:L.flatMap(({key:e,nodes:n})=>n.map((n,o)=>t($m,{"data-mw-key":e,children:n},`mw-${e}-${o}`)))}),e(mm,{$variant:n,children:[!i&&t(fm,{children:t(Nm,{variant:n,backgroundColor:r,columns:l,rowsUnfiltered:d,autoWidthColumnKeys:_,resolvedColumnWidths:D,sortDirection:b,sortByKey:E,onSort:w,filters:x,onFilter:T,withCheckboxes:h,partiallySelected:A,allSelected:I,onSelectAll:e=>{e?O.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):O.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),O.length?t(wm,{variant:n,columns:l,rows:O,autoWidthColumnKeys:_,resolvedColumnWidths:D,getRowActions:c||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:f,scrollToIndex:N,scrollSignal:y}):t(ci,{$height:o,children:a?t(um,{size:3,maxHeight:o}):t(qu,{...s})})]})]})};var Dm;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Dm||(Dm={}));const km=(e,t,n)=>{switch(t){case Dm.Purple:return e.v2.colors.purple[n?"300":"900"];case Dm.Yellow:return e.v2.colors.yellow[n?"300":"1000"];case Dm.Blue:return e.v2.colors.blue[n?"300":"1000"];case Dm.Pink:return e.v2.colors.red[n?"300":"1000"];case Dm.Green:return e.v2.colors.green[n?"300":"900"];case Dm.Loader:return e.v2.colors.grey[n?"600":"800"];default:return e.v2.colors.grey[n?"300":"500"]}},Lm=o.div`
|
|
1528
|
-
display: flex;
|
|
1529
|
-
align-items: center;
|
|
1530
|
-
justify-content: center;
|
|
1531
|
-
gap: 8px;
|
|
1532
|
-
padding: 4px 8px;
|
|
1533
|
-
border-radius: 6px;
|
|
1534
|
-
border: 1px solid transparent;
|
|
1535
|
-
|
|
1536
|
-
${({$flex:e})=>e?r`
|
|
1537
|
-
flex: ${e};
|
|
1538
|
-
`:r`
|
|
1539
|
-
width: fit-content;
|
|
1540
|
-
`}
|
|
1541
|
-
|
|
1542
|
-
${({$disabled:e,$variant:t,$withClick:n})=>e?r`
|
|
1543
|
-
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
1544
|
-
cursor: not-allowed;
|
|
1545
|
-
`:r`
|
|
1546
|
-
background-color: ${({theme:e})=>km(e,t)};
|
|
1547
|
-
${n&&r`
|
|
1548
|
-
cursor: pointer;
|
|
1549
|
-
&:hover,
|
|
1550
|
-
&:active {
|
|
1551
|
-
border: 1px solid ${({theme:e})=>km(e,t,!0)};
|
|
1552
|
-
}
|
|
1553
|
-
`}
|
|
1554
|
-
`}
|
|
1555
|
-
`,Pm=({variant:n=Dm.Default,label:o,leftIcon:r,rightIcon:a,onClick:s,disabled:l,flex:d})=>{const c=i(),u=l?c.v2.colors.grey[400]:n===Dm.Default?c.v2.colors.white[500]:km(c,n,!0),p=n===Dm.Loader;return e(Lm,{$variant:n,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:d,children:[r&&t(r,{fill:u,size:16}),p?t(Ei,{withGradient:!0,title:o,titleSize:vo.XXS}):t(xo,{color:u,size:vo.XXS,nowrap:!0,children:o}),a&&t(a,{fill:u,size:16})]})},Mm=o.div`
|
|
1556
|
-
padding: 6px 12px;
|
|
1557
|
-
|
|
1558
|
-
display: flex;
|
|
1559
|
-
align-self: stretch;
|
|
1560
|
-
align-items: flex-start;
|
|
1561
|
-
gap: 8px;
|
|
1562
|
-
border-radius: 6px;
|
|
1563
|
-
|
|
1564
|
-
border: 1px solid ${({theme:e,$disabled:t,$error:n})=>t?e.v2.colors.grey[600]:n?e.v2.colors.red[500]:e.v2.colors.silver[500]};
|
|
1565
|
-
background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
|
|
1566
|
-
${({$disabled:e,$error:t})=>!e&&!t&&r`
|
|
1567
|
-
&:hover,
|
|
1568
|
-
&:active,
|
|
1569
|
-
&:focus-within {
|
|
1570
|
-
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1571
|
-
}
|
|
1572
|
-
`}
|
|
1573
|
-
`,Um=o.textarea`
|
|
1574
|
-
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
1575
|
-
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
1576
|
-
flex: 1;
|
|
1577
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1578
|
-
font-size: 14px;
|
|
1579
|
-
font-weight: 400;
|
|
1580
|
-
resize: none;
|
|
1581
|
-
|
|
1582
|
-
background: transparent;
|
|
1583
|
-
border: none;
|
|
1584
|
-
outline: none;
|
|
1585
|
-
cursor: text;
|
|
1586
|
-
color: ${({theme:e})=>e.v2.colors.white[500]};
|
|
1587
|
-
&::placeholder {
|
|
1588
|
-
color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
&:disabled {
|
|
1592
|
-
cursor: not-allowed;
|
|
1593
|
-
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1594
|
-
&::placeholder {
|
|
1595
|
-
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
`,Fm=({label:n,required:o,tooltip:r,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:d,value:c,onChange:u,disabled:p,maxWidth:h,minHeight:g,...m})=>{const f=jt(null),y=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return e(di,{$gap:6,children:[t(ep,{label:n,tooltip:r,required:o,badge:i}),t(Mm,{$disabled:p,$error:!!a,children:t(Um,{ref:f,"data-id":d,name:d,value:c,onChange:e=>{e.stopPropagation(),y(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:y,onBlur:y,disabled:p,$maxWidth:h,$minHeight:g,...m})}),t(tp,{errorMessage:a,warnMessage:s,helpMessage:l})]})},zm=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],Bm=o.div`
|
|
1599
|
-
flex: 1;
|
|
1600
|
-
min-width: 0;
|
|
1601
|
-
`,Hm=o.div`
|
|
1602
|
-
flex: 0 0 auto;
|
|
1603
|
-
min-width: 140px;
|
|
1604
|
-
`,Wm=({name:n,label:o,tooltip:r,badge:i,placeholder:a,required:s,disabled:l,value:d,setValue:c,units:u=zm,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:y})=>{const b=Wt(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:E}=Wt(()=>((e,t,n)=>{if(null==e||""===e)return{num:"",unit:n};const o=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),r=new RegExp(`^\\s*(\\d+)\\s*(${o.join("|")})\\s*$`,"i"),i=String(e).match(r);if(i)return{num:i[1],unit:i[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:n}:{num:"",unit:n}})(d,u,b),[d,u,b]),S=(e,t)=>{c(""!==e?`${e}${t}`:"")};return e(di,{$width:y,$gap:6,children:[t(ep,{label:o,tooltip:r,required:s,badge:i}),e(li,{$gap:8,$alignItems:"center",children:[t(Bm,{children:t(Xp,{name:n,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>S(Xi(e.target.value),E)})}),t(Hm,{children:t(pg,{name:`${n}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[E],setValues:e=>S(v,e[0]||E)})})]}),t(tp,{errorMessage:h,warnMessage:g,helpMessage:m})]})},jm=o.div`
|
|
1605
|
-
min-width: 500px;
|
|
1606
|
-
`,Gm=o.div`
|
|
1607
|
-
display: flex;
|
|
1608
|
-
flex-direction: column;
|
|
1609
|
-
align-items: center;
|
|
1610
|
-
gap: 16px;
|
|
1611
|
-
padding: 24px;
|
|
1612
|
-
width: 100%;
|
|
1613
|
-
`,Xm=o.div`
|
|
1614
|
-
display: flex;
|
|
1615
|
-
justify-content: center;
|
|
1616
|
-
gap: 16px;
|
|
1617
|
-
padding: 16px 24px;
|
|
1618
|
-
width: 100%;
|
|
1619
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1620
|
-
`,Vm=({visual:n,title:o,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:d,...c})=>t(Xg,{isOpen:i,onClose:a,...c,children:e(jm,{children:[e(Gm,{children:[n&&t(n,{}),t(xo,{size:vo.M,weight:500,color:Eo.Primary,children:o}),t(di,{$alignItems:"center",$gap:4,children:r.split("\n").map(e=>t(xo,{size:vo.XS,weight:400,color:Eo.Secondary,children:e},e))}),d]}),(s||l)&&e(Xm,{children:[s&&t(wu,{"data-id":"deny",...s}),l&&t(wu,{"data-id":"approve",...l})]})]})});export{np as $,vp as A,wu as B,ip as C,ug as D,sl as E,di as F,pl as G,Pm as H,Fg as I,hl as J,gl as K,ll as L,Sn as M,rg as N,gr as O,bn as P,Pp as Q,xp as R,On as S,vu as T,Ws as U,qr as V,Vm as W,Ks as X,Xu as Y,Vp as Z,rl as _,Ep as a,im as a$,ml as a0,fl as a1,Hs as a2,Uo as a3,Ph as a4,kg as a5,zu as a6,os as a7,Ms as a8,Un as a9,Ls as aA,bl as aB,_s as aC,cl as aD,vl as aE,yl as aF,El as aG,Sl as aH,el as aI,Ss as aJ,xs as aK,ws as aL,Ns as aM,Is as aN,As as aO,zs as aP,us as aQ,ps as aR,bs as aS,tl as aT,nl as aU,al as aV,bc as aW,hs as aX,Bs as aY,qo as aZ,vc as a_,Bn as aa,Yn as ab,Jn as ac,qn as ad,zn as ae,Hn as af,Fn as ag,yo as ah,Xs as ai,Cs as aj,Gs as ak,$s as al,Js as am,Ps as an,js as ao,Ys as ap,il as aq,Us as ar,Og as as,ol as at,Ds as au,vs as av,ks as aw,Rs as ax,bp as ay,Es as az,yn as b,fs as b$,ci as b0,qu as b1,Ei as b2,Yu as b3,Vc as b4,lr as b5,jc as b6,$h as b7,Ic as b8,Io as b9,Wi as bA,va as bB,Ln as bC,Ru as bD,si as bE,um as bF,io as bG,Su as bH,ln as bI,Qa as bJ,hn as bK,Za as bL,xg as bM,wp as bN,wo as bO,Yi as bP,ba as bQ,ha as bR,ga as bS,fa as bT,ma as bU,Dl as bV,Fs as bW,Vs as bX,kl as bY,Zs as bZ,Rl as b_,Ur as ba,$n as bb,Cn as bc,Cc as bd,kc as be,Uc as bf,_c as bg,Tr as bh,go as bi,$r as bj,Ja as bk,Ya as bl,Va as bm,Ka as bn,Di as bo,Ea as bp,Ri as bq,Fc as br,lo as bs,sn as bt,rn as bu,ki as bv,Li as bw,mo as bx,ji as by,Vn as bz,qa as c,La as c$,ys as c0,Ts as c1,ho as c2,an as c3,Xc as c4,fo as c5,Er as c6,bo as c7,No as c8,Oo as c9,Tc as cA,Mr as cB,ar as cC,$i as cD,tu as cE,ca as cF,la as cG,zi as cH,Fr as cI,Si as cJ,fr as cK,An as cL,na as cM,ia as cN,Bu as cO,Rm as cP,hm as cQ,Bg as cR,Os as cS,rs as cT,Dr as cU,yr as cV,to as cW,no as cX,oo as cY,Pa as cZ,Ha as c_,gn as ca,om as cb,dr as cc,Ah as cd,Ko as ce,kh as cf,so as cg,Hi as ch,nr as ci,Ni as cj,Or as ck,pu as cl,ra as cm,ou as cn,Lo as co,Mn as cp,ko as cq,aa as cr,mr as cs,Dm as ct,hh as cu,Oc as cv,Oi as cw,Ti as cx,vr as cy,Sg as cz,ep as d,td as d$,Ba as d0,Wa as d1,ka as d2,Fa as d3,Na as d4,Aa as d5,za as d6,Ma as d7,Ua as d8,Xa as d9,Bl as dA,ts as dB,Ol as dC,Zc as dD,Pi as dE,dp as dF,lp as dG,Xg as dH,xc as dI,gc as dJ,ql as dK,cd as dL,ud as dM,pd as dN,hd as dO,md as dP,gd as dQ,fd as dR,ri as dS,lc as dT,dc as dU,cc as dV,uc as dW,pc as dX,hc as dY,Ql as dZ,ed as d_,Oa as da,Ra as db,Da as dc,_a as dd,Ia as de,$a as df,Sa as dg,Ga as dh,ja as di,es as dj,as as dk,ns as dl,is as dm,mc as dn,yc as dp,fc as dq,Fl as dr,Ml as ds,Pl as dt,Ul as du,Gl as dv,jl as dw,Kl as dx,Vl as dy,Hl as dz,xo as e,au as e$,nd as e0,rd as e1,od as e2,ad as e3,id as e4,ld as e5,sd as e6,dd as e7,Yl as e8,Jl as e9,nc as eA,Jd as eB,qd as eC,Bd as eD,Vd as eE,Kd as eF,Yd as eG,Wd as eH,Gd as eI,jd as eJ,Dd as eK,kd as eL,Ld as eM,Pd as eN,Md as eO,Ud as eP,Fd as eQ,zd as eR,Hd as eS,Xd as eT,kr as eU,ii as eV,pm as eW,Ac as eX,rr as eY,Ao as eZ,sa as e_,yd as ea,bd as eb,xd as ec,$d as ed,Cd as ee,Ed as ef,Sd as eg,vd as eh,Nd as ei,Ad as ej,Td as ek,Od as el,wd as em,_d as en,Rd as eo,Id as ep,Zl as eq,Zd as er,ec as es,tc as et,Qd as eu,oc as ev,rc as ew,ic as ex,ac as ey,sc as ez,Eo as f,Po as f$,wc as f0,Lc as f1,xr as f2,cr as f3,ur as f4,wr as f5,Cr as f6,Sr as f7,Wc as f8,or as f9,un as fA,In as fB,kn as fC,vn as fD,En as fE,Nn as fF,pn as fG,ro as fH,mn as fI,cn as fJ,Pn as fK,xn as fL,Xn as fM,Gn as fN,jn as fO,Dn as fP,eo as fQ,Zn as fR,Qn as fS,Kn as fT,fn as fU,dn as fV,_n as fW,Zr as fX,Qr as fY,ni as fZ,Yo as f_,tr as fa,er as fb,To as fc,zr as fd,Wn as fe,Fp as ff,lh as fg,Hp as fh,ai as fi,ul as fj,ds as fk,ss as fl,ls as fm,cs as fn,Ll as fo,Tl as fp,xl as fq,wl as fr,Cl as fs,$l as ft,Il as fu,_l as fv,Al as fw,Nl as fx,ru as fy,Rn as fz,vo as g,sp as g$,Jo as g0,Gi as g1,ir as g2,sr as g3,hr as g4,Qo as g5,br as g6,Do as g7,Ar as g8,Ir as g9,ms as gA,gs as gB,da as gC,xa as gD,wa as gE,Ta as gF,Ca as gG,Ec as gH,uo as gI,po as gJ,pa as gK,Sc as gL,eu as gM,Bc as gN,Hc as gO,Kc as gP,Jc as gQ,Qc as gR,nu as gS,iu as gT,lu as gU,_u as gV,Fu as gW,Du as gX,Iu as gY,qp as gZ,Qp as g_,_r as ga,Rr as gb,Lr as gc,Ci as gd,Ai as ge,Ii as gf,_i as gg,Mi as gh,Ui as gi,Bi as gj,Xi as gk,Vi as gl,Ki as gm,Ji as gn,qi as go,Zo as gp,Qi as gq,Zi as gr,ao as gs,ua as gt,dl as gu,Xl as gv,Wl as gw,zl as gx,qs as gy,Qs as gz,li as h,zm as h0,gg as h1,Zp as h2,yg as h3,vg as h4,hi as h5,Qg as h6,pi as h7,Ag as h8,kp as h9,gi as ha,mi as hb,fi as hc,fh as hd,Gh as he,Mh as hf,ui as hg,$o as hh,Cu as i,$u as j,tp as k,Ro as l,_o as m,wn as n,Wh as o,Fh as p,Uh as q,Wm as r,pg as s,on as t,Fm as u,Fo as v,Cg as w,Xp as x,Tn as y,Dp as z};
|