@odigos/ui-kit 0.0.253 → 0.0.255
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/docs/api-context.md +1 -1
- package/lib/chunks/connections-scope-DATTj_XG.js +1 -0
- package/lib/chunks/consts-D6GCMJ6c.js +1 -0
- package/lib/chunks/{helpers-BEkhis3j.js → helpers-CUmUiA_l.js} +1 -1
- package/lib/chunks/index-hiRPXsEi.js +155 -0
- package/lib/chunks/{source-instrument-form-context-6ViZM1Z_.js → source-instrument-form-context-DY-QjJ0l.js} +1 -1
- package/lib/chunks/{ui-components-TeG65JGy.js → ui-components-B1TCLO_N.js} +225 -233
- package/lib/chunks/use-odigos-api-FiChYL7A.js +5 -0
- package/lib/components/_v2/icon-group/index.d.ts +4 -3
- package/lib/components/_v2/no-data/index.d.ts +2 -2
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants/strings/index.d.ts +3 -1
- package/lib/constants.js +1 -1
- package/lib/containers/service-map/helpers/build-edges.d.ts +1 -1
- package/lib/containers/service-map/helpers/build-map-nodes.d.ts +2 -3
- package/lib/containers/service-map/helpers/consts.d.ts +1 -0
- package/lib/containers/service-map/helpers/elk-layout.d.ts +4 -3
- package/lib/containers/service-map/helpers/types.d.ts +21 -0
- package/lib/containers/service-map/index.d.ts +2 -10
- package/lib/containers/service-map/react-flow/edges/animated-traffic-edge.d.ts +6 -0
- package/lib/containers/service-map/react-flow/flow.d.ts +7 -0
- package/lib/containers/service-map/react-flow/index.d.ts +1 -0
- package/lib/containers/service-map/react-flow/nodes/map-item-node.d.ts +6 -0
- package/lib/containers/service-map/react-flow/nodes/no-data-node.d.ts +6 -0
- package/lib/containers/service-map/react-flow/search-and-select-nodes.d.ts +3 -0
- package/lib/containers/service-map/service-map-context.d.ts +24 -0
- package/lib/containers/v2.js +138 -138
- package/lib/containers.js +76 -20
- package/lib/contexts/odigos-api/capabilities.d.ts +1 -0
- package/lib/contexts/odigos-api/index.d.ts +2 -1
- package/lib/contexts/odigos-api/platform-helpers.d.ts +4 -2
- package/lib/contexts/odigos-api/types.d.ts +29 -5
- package/lib/contexts/odigos-api.js +1 -1
- package/lib/contexts.js +1 -1
- package/lib/functions/get-nearest-typography-size/index.d.ts +3 -0
- package/lib/functions/index.d.ts +1 -0
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets/index.d.ts +1 -1
- package/lib/snippets/v2.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store/index.d.ts +0 -1
- package/lib/store/useDrawerStore.d.ts +2 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/connections-scope-h3bbPbRd.js +0 -1
- package/lib/chunks/flow-BnkrFBJL.js +0 -49
- package/lib/chunks/index-DIVbcB6F.js +0 -155
- package/lib/chunks/use-odigos-api-li2VrVHH.js +0 -5
- package/lib/containers/service-map/service-map-drawer.d.ts +0 -17
- package/lib/snippets/react-flow/flow.d.ts +0 -17
- package/lib/snippets/react-flow/index.d.ts +0 -3
- package/lib/snippets/react-flow/nodes/map-item-node.d.ts +0 -13
- package/lib/snippets/react-flow/nodes/no-data-node.d.ts +0 -9
- package/lib/store/useActiveNodeStore.d.ts +0 -11
- package/lib/types/data-flow/index.d.ts +0 -21
|
@@ -38,11 +38,11 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
38
38
|
text-decoration: underline;
|
|
39
39
|
}
|
|
40
40
|
`}
|
|
41
|
-
`,cn=Lt(({children:n,variant:o=nn.P,color:r,size:i=on.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},y)=>{const b=n?.toString().split("\n")||[];return e(ln,{ref:y,as:o,$color:r,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:b.map((n,o)=>t(Pt,{children:[n,o!==b.length-1&&e("br",{})]},`typography-${o}-${n}`))})});cn.displayName="Typography";const dn="https://docs.odigos.io",un="default",pn="this-cluster",hn="This Cluster",gn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},mn={REQUIRED_FIELDS:"Required fields are missing",FIELD_IS_REQUIRED:"This field is required",FORBIDDEN:"Forbidden",ENTERPRISE_ONLY:(e="This")=>`${e} is an Enterprise feature. Please upgrade your plan.`,DEFINED_FOR_ALL_STREAMS:e=>`${e} are defined for all Data Streams.`,CANNOT_EDIT_RULE:"Cannot edit a system-managed instrumentation rule",CANNOT_DELETE_RULE:"Cannot delete a system-managed instrumentation rule",LATENCY_HTTP_ROUTE:'HTTP route must start with a forward slash "/"',READONLY_WARNING:"You're not allowed to create/update/delete in readonly mode",ILLEGAL_K8S_LABEL:'Must be 63 characters or less, must consist of alphanumeric characters, "-", "_", or ".", and must start & end with an alphanumeric character (e.g., my-name, 123.abc).',INVALID_VERSION:'Invalid version format, must be in the format of "major.minor.patch" (e.g. 1.0.0)'},fn={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",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",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",INJECTIONS_AS_EXPECTED:"Injections as expected",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",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",NO_CRASHLOOP:"No 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",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",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",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",ROLLOUT:"Rollout",ROLLOUT_RESTART:"Rollout Restart",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",RESTART_POD_DESCRIPTION:"Deleting a pod removes it and lets Kubernetes controllers recreate a new one.\nThe new pod starts fresh with the latest instrumentation agent and configuration.\nRecommended for non-production clusters only.",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"},yn={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",DONE:"Done",SAVE:"Save",BACK:"Back",NEXT:"Next",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"};var bn,$n,vn,xn,Sn,wn,En,Cn,Tn,An,In,kn,Nn,Dn,On,Rn,_n,Ln,Pn,Fn,Mn,zn,Un,Bn,jn,Wn,Hn,Gn,Xn,Kn,Vn,Jn,Yn,qn,Qn,Zn,eo,to,no,oo,ro,io,ao,so,lo,co;!function(e){e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.URLTemplatization="URLTemplatization",e.ExtractAttribute="ExtractAttribute"}(bn||(bn={})),function(e){e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups",e.ExtractAttribute="extractAttribute"}($n||($n={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(vn||(vn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(xn||(xn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.GREATER_THAN="greater_than",e.LESS_THAN="less_than",e.GREATER_THAN_OR_EQUAL="greater_than_or_equal",e.LESS_THAN_OR_EQUAL="less_than_or_equal"}(Sn||(Sn={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(wn||(wn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.IS_VALID_JSON="is_valid_json",e.IS_INVALID_JSON="is_invalid_json",e.JSONPATH_EXISTS="jsonpath_exists",e.KEY_EQUALS="key_equals",e.KEY_NOT_EQUALS="key_not_equals"}(En||(En={})),function(e){e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"}(Cn||(Cn={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(Tn||(Tn={})),function(e){e.Ascending="ascending",e.Descending="descending"}(An||(An={})),function(e){e.Community="community",e.Onprem="onprem"}(In||(In={})),function(e){e.K8s="k8s",e.Vm="vm"}(kn||(kn={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Nn||(Nn={})),function(e){e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"}(Dn||(Dn={})),function(e){e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"}(On||(On={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Rn||(Rn={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(_n||(_n={})),function(e){e.DataStream="DataStream"}(Ln||(Ln={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.Toggle="toggle",e.Time="time"}(Pn||(Pn={})),function(e){e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"}(Fn||(Fn={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Mn||(Mn={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(zn||(zn={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Un||(Un={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Bn||(Bn={})),function(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"}(jn||(jn={})),function(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"}(Wn||(Wn={})),function(e){e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"}(Hn||(Hn={})),function(e){e.CodeAttributes="code-attributes",e.FullPayloadCollection="full-payload-collection",e.DbPayloadCollection="db-payload-collection",e.QueryOperationDetector="query-operation-detector",e.AllowConcurrentAgents="allow_concurrent_agents",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.JavaNativeInstrumentations="java-native-instrumentations",e.SizeS="size_s",e.SizeM="size_m",e.SizeL="size_l"}(Gn||(Gn={})),function(e){e.Header="header",e.Add="add",e.Base="base",e.Edged="edged",e.Frame="frame",e.Scroll="scroll",e.Skeleton="skeleton",e.MapItem="map-item",e.NoData="no-data",e.OdiLogo="odilogo"}(Xn||(Xn={})),function(e){e.Labeled="labeled"}(Kn||(Kn={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Vn||(Vn={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.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"}(Jn||(Jn={})),function(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"}(Yn||(Yn={})),function(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"}(qn||(qn={})),function(e){e.Error="Error",e.Failure="Failure",e.Notice="Notice",e.Pending="Pending",e.Waiting="Waiting",e.Unsupported="Unsupported",e.Disabled="Disabled",e.Success="Success",e.Irrelevant="Irrelevant",e.Unknown="Unknown"}(Qn||(Qn={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Zn||(Zn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(eo||(eo={})),function(e){e.HeaderKeys="headerKeys"}(to||(to={})),function(e){e.Java="java",e.Golang="golang"}(no||(no={}));class uo{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 po{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,o){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=o||""}Verify(){return!!this.packageName&&(this.functionName?!(this.receiverMethodName||this.receiverName):!(!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(oo||(oo={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(ro||(ro={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(io||(io={})),function(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"}(ao||(ao={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(so||(so={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"}(lo||(lo={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"}(co||(co={}));const ho={[lo.Logs]:co.Logs,[lo.Metrics]:co.Metrics,[lo.Traces]:co.Traces,[lo.Profiles]:co.Profiles},go={[co.Logs]:lo.Logs,[co.Metrics]:lo.Metrics,[co.Traces]:lo.Traces,[co.Profiles]:lo.Profiles};var mo;!function(e){e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"}(mo||(mo={}));const fo=(e,t)=>e===Mn.Success?fn.HEALTHY:e===Mn.Error?fn.NOT_HEALTHY:tn(t),yo=e=>{if(!e)return null;switch(e){case Qn.Irrelevant:return null;case Qn.Failure:case Qn.Error:return Mn.Error;case Qn.Notice:return Mn.Warning;case Qn.Pending:case Qn.Waiting:return Un.Loading;case Qn.Unsupported:case Qn.Disabled:return Un.Disabled;case Qn.Success:return Mn.Success;case Qn.Unknown:default:return Mn.Info}},bo=(e,t,n="reason",o)=>{const r=yo(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Mn.Success?l:c),label:o||("reason"===n?tn(e?.reasonEnum):fo(r,e?.reasonEnum)),tooltip:e?.message,textSize:on.XXXS,invertColors:!0,useSecondaryTone:!0}:null},$o=e=>e.charAt(0).toUpperCase()+e.slice(1),vo=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},{})};var xo;!function(e){e.SIGNALS="SIGNALS"}(xo||(xo={}));const So=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,r,i]=e;if(o===xo.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}},wo=e=>JSON.parse(JSON.stringify(e)),Eo=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Co=(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},To=(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},Ao=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Io=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],ko=(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.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??""))}return t.onlyErrors&&(n=n.filter(e=>yo(e.workloadOdigosHealthStatus?.status)===Mn.Error)),n},No=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===un&&!e.dataStreamNames?.length):[],Do=(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?Do(e,o,n):n[o]=e}):n[i]=r:Do(r,i,n)}return n},Oo=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]}`},Ro=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`}},_o=()=>{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];t++;return("1"===n?o:"0"===n?63&o|128:15&o|64).toString(16)})},Lo=e=>({[bn.K8sAttributes]:m,[bn.AddClusterInfo]:g,[bn.DeleteAttributes]:h,[bn.PiiMasking]:p,[bn.RenameAttributes]:u,[bn.ExtractAttribute]:d,[bn.URLTemplatization]:d}[e]||f),Po=e=>{if(!e)return Fo([]);if(Array.isArray(e))return Fo(e);const t=Object.values(e).reduce((e,t)=>{if(null!=t){const n=yo(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]);return Fo(t)},Fo=e=>{const t=e?.filter(({status:e})=>e===Mn.Error),n=e?.filter(({status:e})=>e===Mn.Warning),o=e?.filter(({status:e})=>e===Un.Disabled),r=e?.filter(({status:e})=>e===Un.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?Mn.Error:a?Mn.Warning:s?Mn.Info:void 0}},Mo=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},zo=e=>({[On.Java]:R,[On.Go]:O,[On.JavaScript]:D,[On.Python]:N,[On.DotNet]:k,[On.CSharp]:I,[On.CPlusPlus]:A,[On.Php]:T,[On.Ruby]:C,[On.Rust]:E,[On.Swift]:w,[On.Elixir]:S,[On.MySql]:x,[On.Nginx]:v,[On.Postgres]:$,[On.Redis]:b,[On.Kafka]:y,[On.Ignored]:f,[On.Unknown]:f,[On.Processing]:f,[On.NoContainers]:f,[On.NoRunningPods]:f}[e]||f),Uo=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??On.Unknown:On.Unknown,Bo=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,jo=e=>e?.map(e=>zo(Uo(e)))||[],Wo=e=>e?.map(e=>zo(e))||[],Ho=e=>e.runtimeInfo?.detectedLanguages?.length?Wo(e.runtimeInfo?.detectedLanguages):jo(e.containers),Go=(e,t)=>{const n={[Jn.Alauda]:Me,[Jn.AlibabaCloud]:Fe,[Jn.AppDynamics]:Pe,[Jn.Axiom]:Le,[Jn.AzureBlob]:_e,[Jn.AzureMonitor]:Re,[Jn.BetterStack]:Oe,[Jn.Bonree]:De,[Jn.Causely]:Ne,[Jn.Checkly]:ke,[Jn.Chronosphere]:Ie,[Jn.ClickHouse]:Ae,[Jn.CloudWatch]:Te,[Jn.Coralogix]:Ce,[Jn.Dash0]:Ee,[Jn.Datadog]:we,[Jn.Dynamic]:q,[Jn.Dynatrace]:Se,[Jn.ElasticApm]:xe,[Jn.ElasticSearch]:ve,[Jn.GoogleCloud]:$e,[Jn.GoogleCloudOTLP]:$e,[Jn.GrafanaCloudLoki]:be,[Jn.GrafanaCloudPrometheus]:be,[Jn.GrafanaCloudTempo]:be,[Jn.Greptime]:ye,[Jn.Groundcover]:fe,[Jn.Honeycomb]:me,[Jn.HyperDX]:ge,[Jn.Instana]:he,[Jn.Jaeger]:pe,[Jn.Kafka]:y,[Jn.Kloudmate]:ue,[Jn.Last9]:de,[Jn.Lightstep]:ce,[Jn.LogzIo]:le,[Jn.Loki]:se,[Jn.Lumigo]:ae,[Jn.Middleware]:ie,[Jn.NewRelic]:re,[Jn.Observe]:oe,[Jn.Odigos]:ne,[Jn.OneUptime]:te,[Jn.OpenObserve]:ee,[Jn.Opsverse]:Z,[Jn.Oracle]:Q,[Jn.OTLP]:q,[Jn.OTLPHttp]:q,[Jn.Prometheus]:Y,[Jn.Qryn]:J,[Jn.QrynOss]:V,[Jn.Quickwit]:K,[Jn.S3]:X,[Jn.Seq]:G,[Jn.Signalfx]:W,[Jn.Signoz]:H,[Jn.Splunk]:W,[Jn.SplunkSapm]:W,[Jn.SplunkOtlp]:W,[Jn.SumoLogic]:j,[Jn.TelemetryHub]:B,[Jn.Tempo]:U,[Jn.Tingyun]:z,[Jn.Traceloop]:M,[Jn.Uptrace]:F,[Jn.VictoriaMetrics]:P,[Jn.VictoriaMetricsCloud]:P,[Jn.XRay]:L,[Jn.Pyroscope]:_}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Xo=e=>({[_n.Namespace]:We,[_n.Source]:je,[_n.Destination]:Be,[_n.Action]:d,[_n.InstrumentationRule]:Ue,[_n.SamplingRule]:ze}[e]),Ko=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}:"name"in e&&e.name?e.name:void 0,Vo=e=>e?"string"==typeof e?e:`${e.namespace}/${e.kind}/${e.name}`:"",Jo=e=>Vo(Ko(e)),Yo=(e,t,n)=>{const{extended:o,prioritizeDisplayName:r}=n||{};let i="",a="";switch(t){case _n.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case _n.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case _n.Action:const o=e;i=o.type,a=o.name||"";break;case _n.Destination:const r=e;i=r.destinationType.displayName,a=r.name;break;case _n.Namespace:const s=e;i=s.name,a=s.name}return o?i+(a&&a!==i?` (${a})`:""):r&&a||i},qo=(e,t)=>{if(t===_n.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},Qo=e=>({[Zn.CodeAttributes]:Ke,[Zn.CustomInstrumentation]:Xe,[Zn.HeadersCollection]:Ge,[Zn.PayloadCollection]:He,[Zn.UnknownType]:f}[e]||f),Zo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??On.Unknown,er=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?On.Processing:On.NoRunningPods;const o=n?.filter(e=>Zo(e)!==On.Ignored);if(!o.length)return On.NoContainers;const r=o.find(e=>Zo(e)!==On.Unknown);return r?Zo(r):On.Unknown},tr=(e,t,n)=>(t===_n.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},nr=e=>({[lo.Logs]:Ye,[lo.Metrics]:Je,[lo.Traces]:Ve,[lo.Profiles]:ne}[e]),or=e=>{if(!e)return ne;return{[kn.K8s]:m,[kn.Vm]:qe}[e]},rr=e=>{if(!e)return"Unknown";return{[kn.K8s]:"Kubernetes Cluster",[kn.Vm]:"Virtual Machine"}[e]},ir=(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(...ir(e,t,n)),r}):[]},ar=(e,t)=>{if(t===_n.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},sr=(e,t,n)=>{switch(t){case Mn.Default:return e.v2.colors.purple[n];case Mn.Info:return e.v2.colors.blue[n];case Mn.Error:return e.v2.colors.red[n];case Mn.Warning:return e.v2.colors.yellow[n];case Mn.Success:return e.v2.colors.green[n];case Un.Loading:case Bn.Disabled:case Bn.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},lr=e=>{switch(e){case ro.Updating:case io.Pending:case ao.ContainerCreating:case so.Waiting:return Mn.Info;case ro.Healthy:case io.Succeeded:case io.Running:case ao.Running:case so.Running:return Mn.Success;case ro.Degraded:return Mn.Warning;case ro.Failed:case io.Failed:case ao.Error:case ao.CrashLoopBackOff:case ao.CreateContainerError:case ao.CreateContainerConfigError:case ao.ErrImagePull:case ao.ErrImageNeverPull:case ao.ImagePullBackOff:case ao.InvalidImageName:case ao.RegistryUnavailable:case ao.NetworkNotReady:case ao.OOMKilled:case ao.ContainerCannotRun:case so.Terminated:case ao.DeadlineExceeded:case ao.StartError:return Mn.Error;case ro.Down:case ao.Completed:return Bn.Disabled;case ro.Unknown:case io.Unknown:default:return Bn.Unknown}},cr=o.div`
|
|
41
|
+
`,cn=Lt(({children:n,variant:o=nn.P,color:r,size:i=on.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},y)=>{const b=n?.toString().split("\n")||[];return e(ln,{ref:y,as:o,$color:r,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:b.map((n,o)=>t(Pt,{children:[n,o!==b.length-1&&e("br",{})]},`typography-${o}-${n}`))})});cn.displayName="Typography";const dn="https://docs.odigos.io",un="default",pn="this-cluster",hn="This Cluster",gn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},mn={REQUIRED_FIELDS:"Required fields are missing",FIELD_IS_REQUIRED:"This field is required",FORBIDDEN:"Forbidden",ENTERPRISE_ONLY:(e="This")=>`${e} is an Enterprise feature. Please upgrade your plan.`,DEFINED_FOR_ALL_STREAMS:e=>`${e} are defined for all Data Streams.`,CANNOT_EDIT_RULE:"Cannot edit a system-managed instrumentation rule",CANNOT_DELETE_RULE:"Cannot delete a system-managed instrumentation rule",LATENCY_HTTP_ROUTE:'HTTP route must start with a forward slash "/"',READONLY_WARNING:"You're not allowed to create/update/delete in readonly mode",ILLEGAL_K8S_LABEL:'Must be 63 characters or less, must consist of alphanumeric characters, "-", "_", or ".", and must start & end with an alphanumeric character (e.g., my-name, 123.abc).',INVALID_VERSION:'Invalid version format, must be in the format of "major.minor.patch" (e.g. 1.0.0)'},fn={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",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",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",INJECTIONS_AS_EXPECTED:"Injections as expected",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",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",NO_CRASHLOOP:"No 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",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",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",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"},yn={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",DONE:"Done",SAVE:"Save",BACK:"Back",CONFIRM:"Confirm",NEXT:"Next",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"};var bn,$n,vn,xn,Sn,wn,En,Cn,Tn,An,In,kn,Nn,Dn,On,Rn,_n,Ln,Pn,Fn,Mn,zn,Un,Bn,jn,Wn,Hn,Gn,Xn,Kn,Vn,Jn,Yn,qn,Qn,Zn,eo,to,no,oo,ro,io,ao;!function(e){e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.URLTemplatization="URLTemplatization",e.ExtractAttribute="ExtractAttribute"}(bn||(bn={})),function(e){e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups",e.ExtractAttribute="extractAttribute"}($n||($n={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(vn||(vn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(xn||(xn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.GREATER_THAN="greater_than",e.LESS_THAN="less_than",e.GREATER_THAN_OR_EQUAL="greater_than_or_equal",e.LESS_THAN_OR_EQUAL="less_than_or_equal"}(Sn||(Sn={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(wn||(wn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.IS_VALID_JSON="is_valid_json",e.IS_INVALID_JSON="is_invalid_json",e.JSONPATH_EXISTS="jsonpath_exists",e.KEY_EQUALS="key_equals",e.KEY_NOT_EQUALS="key_not_equals"}(En||(En={})),function(e){e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"}(Cn||(Cn={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(Tn||(Tn={})),function(e){e.Ascending="ascending",e.Descending="descending"}(An||(An={})),function(e){e.Community="community",e.Onprem="onprem"}(In||(In={})),function(e){e.K8s="k8s",e.Vm="vm"}(kn||(kn={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(Nn||(Nn={})),function(e){e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"}(Dn||(Dn={})),function(e){e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"}(On||(On={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Rn||(Rn={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(_n||(_n={})),function(e){e.DataStream="DataStream"}(Ln||(Ln={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.Toggle="toggle",e.Time="time"}(Pn||(Pn={})),function(e){e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"}(Fn||(Fn={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Mn||(Mn={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(zn||(zn={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Un||(Un={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Bn||(Bn={})),function(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"}(jn||(jn={})),function(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"}(Wn||(Wn={})),function(e){e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"}(Hn||(Hn={})),function(e){e.CodeAttributes="code-attributes",e.FullPayloadCollection="full-payload-collection",e.DbPayloadCollection="db-payload-collection",e.QueryOperationDetector="query-operation-detector",e.AllowConcurrentAgents="allow_concurrent_agents",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.JavaNativeInstrumentations="java-native-instrumentations",e.SizeS="size_s",e.SizeM="size_m",e.SizeL="size_l"}(Gn||(Gn={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.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"}(Xn||(Xn={})),function(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"}(Kn||(Kn={})),function(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"}(Vn||(Vn={})),function(e){e.Error="Error",e.Failure="Failure",e.Notice="Notice",e.Pending="Pending",e.Waiting="Waiting",e.Unsupported="Unsupported",e.Disabled="Disabled",e.Success="Success",e.Irrelevant="Irrelevant",e.Unknown="Unknown"}(Jn||(Jn={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Yn||(Yn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(qn||(qn={})),function(e){e.HeaderKeys="headerKeys"}(Qn||(Qn={})),function(e){e.Java="java",e.Golang="golang"}(Zn||(Zn={}));class so{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 lo{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,o){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=o||""}Verify(){return!!this.packageName&&(this.functionName?!(this.receiverMethodName||this.receiverName):!(!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(eo||(eo={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(to||(to={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(no||(no={})),function(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"}(oo||(oo={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(ro||(ro={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"}(io||(io={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"}(ao||(ao={}));const co={[io.Logs]:ao.Logs,[io.Metrics]:ao.Metrics,[io.Traces]:ao.Traces,[io.Profiles]:ao.Profiles},uo={[ao.Logs]:io.Logs,[ao.Metrics]:io.Metrics,[ao.Traces]:io.Traces,[ao.Profiles]:io.Profiles};var po;!function(e){e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"}(po||(po={}));const ho=(e,t)=>e===Mn.Success?fn.HEALTHY:e===Mn.Error?fn.NOT_HEALTHY:tn(t),go=e=>{if(!e)return null;switch(e){case Jn.Irrelevant:return null;case Jn.Failure:case Jn.Error:return Mn.Error;case Jn.Notice:return Mn.Warning;case Jn.Pending:case Jn.Waiting:return Un.Loading;case Jn.Unsupported:case Jn.Disabled:return Un.Disabled;case Jn.Success:return Mn.Success;case Jn.Unknown:default:return Mn.Info}},mo=(e,t,n="reason",o)=>{const r=go(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Mn.Success?l:c),label:o||("reason"===n?tn(e?.reasonEnum):ho(r,e?.reasonEnum)),tooltip:e?.message,textSize:on.XXXS,invertColors:!0,useSecondaryTone:!0}:null},fo=e=>e.charAt(0).toUpperCase()+e.slice(1),yo=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},{})};var bo;!function(e){e.SIGNALS="SIGNALS"}(bo||(bo={}));const $o=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,r,i]=e;if(o===bo.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}},vo=e=>JSON.parse(JSON.stringify(e)),xo=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),So=(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},wo=(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},Eo=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Co=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],To=(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.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??""))}return t.onlyErrors&&(n=n.filter(e=>go(e.workloadOdigosHealthStatus?.status)===Mn.Error)),n},Ao=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===un&&!e.dataStreamNames?.length):[],Io=(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?Io(e,o,n):n[o]=e}):n[i]=r:Io(r,i,n)}return n},ko=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]}`},No=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`}},Do=()=>{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];t++;return("1"===n?o:"0"===n?63&o|128:15&o|64).toString(16)})},Oo=e=>({[bn.K8sAttributes]:m,[bn.AddClusterInfo]:g,[bn.DeleteAttributes]:h,[bn.PiiMasking]:p,[bn.RenameAttributes]:u,[bn.ExtractAttribute]:d,[bn.URLTemplatization]:d}[e]||f),Ro=e=>{if(!e)return _o([]);if(Array.isArray(e))return _o(e);const t=Object.values(e).reduce((e,t)=>{if(null!=t){const n=go(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]);return _o(t)},_o=e=>{const t=e?.filter(({status:e})=>e===Mn.Error),n=e?.filter(({status:e})=>e===Mn.Warning),o=e?.filter(({status:e})=>e===Un.Disabled),r=e?.filter(({status:e})=>e===Un.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?Mn.Error:a?Mn.Warning:s?Mn.Info:void 0}},Lo=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Po=e=>({[On.Java]:R,[On.Go]:O,[On.JavaScript]:D,[On.Python]:N,[On.DotNet]:k,[On.CSharp]:I,[On.CPlusPlus]:A,[On.Php]:T,[On.Ruby]:C,[On.Rust]:E,[On.Swift]:w,[On.Elixir]:S,[On.MySql]:x,[On.Nginx]:v,[On.Postgres]:$,[On.Redis]:b,[On.Kafka]:y,[On.Ignored]:f,[On.Unknown]:f,[On.Processing]:f,[On.NoContainers]:f,[On.NoRunningPods]:f}[e]||f),Fo=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??On.Unknown:On.Unknown,Mo=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,zo=e=>e?.map(e=>Po(Fo(e)))||[],Uo=e=>e?.map(e=>Po(e))||[],Bo=e=>e.runtimeInfo?.detectedLanguages?.length?Uo(e.runtimeInfo?.detectedLanguages):zo(e.containers),jo=(e,t)=>{const n={[Xn.Alauda]:Me,[Xn.AlibabaCloud]:Fe,[Xn.AppDynamics]:Pe,[Xn.Axiom]:Le,[Xn.AzureBlob]:_e,[Xn.AzureMonitor]:Re,[Xn.BetterStack]:Oe,[Xn.Bonree]:De,[Xn.Causely]:Ne,[Xn.Checkly]:ke,[Xn.Chronosphere]:Ie,[Xn.ClickHouse]:Ae,[Xn.CloudWatch]:Te,[Xn.Coralogix]:Ce,[Xn.Dash0]:Ee,[Xn.Datadog]:we,[Xn.Dynamic]:q,[Xn.Dynatrace]:Se,[Xn.ElasticApm]:xe,[Xn.ElasticSearch]:ve,[Xn.GoogleCloud]:$e,[Xn.GoogleCloudOTLP]:$e,[Xn.GrafanaCloudLoki]:be,[Xn.GrafanaCloudPrometheus]:be,[Xn.GrafanaCloudTempo]:be,[Xn.Greptime]:ye,[Xn.Groundcover]:fe,[Xn.Honeycomb]:me,[Xn.HyperDX]:ge,[Xn.Instana]:he,[Xn.Jaeger]:pe,[Xn.Kafka]:y,[Xn.Kloudmate]:ue,[Xn.Last9]:de,[Xn.Lightstep]:ce,[Xn.LogzIo]:le,[Xn.Loki]:se,[Xn.Lumigo]:ae,[Xn.Middleware]:ie,[Xn.NewRelic]:re,[Xn.Observe]:oe,[Xn.Odigos]:ne,[Xn.OneUptime]:te,[Xn.OpenObserve]:ee,[Xn.Opsverse]:Z,[Xn.Oracle]:Q,[Xn.OTLP]:q,[Xn.OTLPHttp]:q,[Xn.Prometheus]:Y,[Xn.Qryn]:J,[Xn.QrynOss]:V,[Xn.Quickwit]:K,[Xn.S3]:X,[Xn.Seq]:G,[Xn.Signalfx]:W,[Xn.Signoz]:H,[Xn.Splunk]:W,[Xn.SplunkSapm]:W,[Xn.SplunkOtlp]:W,[Xn.SumoLogic]:j,[Xn.TelemetryHub]:B,[Xn.Tempo]:U,[Xn.Tingyun]:z,[Xn.Traceloop]:M,[Xn.Uptrace]:F,[Xn.VictoriaMetrics]:P,[Xn.VictoriaMetricsCloud]:P,[Xn.XRay]:L,[Xn.Pyroscope]:_}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Wo=e=>({[_n.Namespace]:We,[_n.Source]:je,[_n.Destination]:Be,[_n.Action]:d,[_n.InstrumentationRule]:Ue,[_n.SamplingRule]:ze}[e]),Ho=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}:"name"in e&&e.name?e.name:void 0,Go=e=>e?"string"==typeof e?e:`${e.namespace}/${e.kind}/${e.name}`:"",Xo=e=>Go(Ho(e)),Ko=(e,t,n)=>{const{extended:o,prioritizeDisplayName:r}=n||{};let i="",a="";switch(t){case _n.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case _n.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case _n.Action:const o=e;i=o.type,a=o.name||"";break;case _n.Destination:const r=e;i=r.destinationType.displayName,a=r.name;break;case _n.Namespace:const s=e;i=s.name,a=s.name}return o?i+(a&&a!==i?` (${a})`:""):r&&a||i},Vo=(e,t)=>{if(t===_n.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},Jo=e=>({[Yn.CodeAttributes]:Ke,[Yn.CustomInstrumentation]:Xe,[Yn.HeadersCollection]:Ge,[Yn.PayloadCollection]:He,[Yn.UnknownType]:f}[e]||f),Yo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??On.Unknown,qo=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?On.Processing:On.NoRunningPods;const o=n?.filter(e=>Yo(e)!==On.Ignored);if(!o.length)return On.NoContainers;const r=o.find(e=>Yo(e)!==On.Unknown);return r?Yo(r):On.Unknown},Qo=(e,t,n)=>(t===_n.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},Zo=e=>({[io.Logs]:Ye,[io.Metrics]:Je,[io.Traces]:Ve,[io.Profiles]:ne}[e]),er=(e,t)=>Object.values(on).reduce((n,o)=>Math.abs(t[o]-e)<Math.abs(t[n]-e)?o:n),tr=e=>{if(!e)return ne;return{[kn.K8s]:m,[kn.Vm]:qe}[e]},nr=e=>{if(!e)return"Unknown";return{[kn.K8s]:"Kubernetes Cluster",[kn.Vm]:"Virtual Machine"}[e]},or=(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(...or(e,t,n)),r}):[]},rr=(e,t)=>{if(t===_n.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},ir=(e,t,n)=>{switch(t){case Mn.Default:return e.v2.colors.purple[n];case Mn.Info:return e.v2.colors.blue[n];case Mn.Error:return e.v2.colors.red[n];case Mn.Warning:return e.v2.colors.yellow[n];case Mn.Success:return e.v2.colors.green[n];case Un.Loading:case Bn.Disabled:case Bn.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},ar=e=>{switch(e){case to.Updating:case no.Pending:case oo.ContainerCreating:case ro.Waiting:return Mn.Info;case to.Healthy:case no.Succeeded:case no.Running:case oo.Running:case ro.Running:return Mn.Success;case to.Degraded:return Mn.Warning;case to.Failed:case no.Failed:case oo.Error:case oo.CrashLoopBackOff:case oo.CreateContainerError:case oo.CreateContainerConfigError:case oo.ErrImagePull:case oo.ErrImageNeverPull:case oo.ImagePullBackOff:case oo.InvalidImageName:case oo.RegistryUnavailable:case oo.NetworkNotReady:case oo.OOMKilled:case oo.ContainerCannotRun:case ro.Terminated:case oo.DeadlineExceeded:case oo.StartError:return Mn.Error;case to.Down:case oo.Completed:return Bn.Disabled;case to.Unknown:case no.Unknown:default:return Bn.Unknown}},sr=o.div`
|
|
42
42
|
border-radius: 100%;
|
|
43
43
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
44
|
position: relative;
|
|
45
|
-
`,
|
|
45
|
+
`,lr=o.div`
|
|
46
46
|
width: 80px;
|
|
47
47
|
height: 80px;
|
|
48
48
|
border-radius: 100%;
|
|
@@ -56,12 +56,12 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
56
56
|
transform: rotate(360deg);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,cr=o(cn)`
|
|
60
60
|
position: absolute;
|
|
61
61
|
top: 50%;
|
|
62
62
|
left: 50%;
|
|
63
63
|
transform: translate(-50%, -50%);
|
|
64
|
-
`,
|
|
64
|
+
`,dr=({percentage:n})=>t(sr,{children:[e(lr,{}),"number"==typeof n?e(cr,{size:on.M,weight:500,nowrap:!0,children:`${n}%`}):null]}),ur={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 pr(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 ur[o]?{value:t,unit:o}:{value:t,unit:"px"}}function hr(e){const t=pr(e);return`${t.value}${t.unit}`}const gr=((e,t,n)=>{const o=`react-spinners-${e}-${n}`;if("undefined"==typeof window||!window.document)return o;const r=document.createElement("style");document.head.appendChild(r);const i=r.sheet,a=`\n @keyframes ${o} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),o})("SpinnerOld","50% {opacity: 0.3} 100% {opacity: 1}","fade"),mr=({loading:n=!0,color:o,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),u=o||d.text.secondary;if(!n)return null;const{value:p}=pr(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:hr(1.5),height:hr(4),borderRadius:hr(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${gr} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return t("span",{style:f,...c,children:[e("span",{style:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...y(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...y(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...y(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),e("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...y(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},fr=o.div`
|
|
65
65
|
width: ${({$size:e})=>e}px;
|
|
66
66
|
height: ${({$size:e})=>e}px;
|
|
67
67
|
border-radius: 100%;
|
|
@@ -69,7 +69,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: center;
|
|
71
71
|
justify-content: center;
|
|
72
|
-
|
|
72
|
+
`,yr=({scale:t,icon:n})=>{const o=i();return e(fr,{$size:45*t,$color:"rgba(80, 246, 232, 0.10)",children:e(fr,{$size:43*t,$color:"rgba(80, 246, 232, 0.20)",children:e(fr,{$size:39*t,$color:"rgba(80, 246, 232, 0.40)",children:e(fr,{$size:33*t,$color:"rgba(80, 246, 232, 0.60)",children:e(fr,{$size:23*t,$color:"#50F6E8",children:e(n,{size:16*t,fill:o.v2.colors.black[500]})})})})})})},br=434,$r=635,vr=o.div`
|
|
73
73
|
width: ${434}px;
|
|
74
74
|
height: ${635}px;
|
|
75
75
|
display: flex;
|
|
@@ -79,12 +79,12 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
79
79
|
padding: 16px;
|
|
80
80
|
background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
|
|
81
81
|
position: relative;
|
|
82
|
-
`,
|
|
82
|
+
`,xr=o.div`
|
|
83
83
|
position: absolute;
|
|
84
84
|
top: 50%;
|
|
85
85
|
left: 50%;
|
|
86
86
|
transform: translate(-50%, -50%);
|
|
87
|
-
`,
|
|
87
|
+
`,Sr=()=>t(vr,{children:[e(xr,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[e("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)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),e("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),e("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),e("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),e("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),e("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),e("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),e(xr,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[e("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)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),e("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),e("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),e("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),e("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),e("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),e("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),e("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(xr,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[e("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)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),e("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),e("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),e("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),e("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),e("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),e("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(xr,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[e("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)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),e("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),e("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),e("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),e("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),e("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),e("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(xr,{children:e(ne,{size:112})})]}),wr=o.div`
|
|
88
88
|
width: ${({$size:e})=>e}px;
|
|
89
89
|
height: ${({$size:e})=>e}px;
|
|
90
90
|
border-radius: 100%;
|
|
@@ -92,7 +92,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
92
92
|
display: flex;
|
|
93
93
|
align-items: center;
|
|
94
94
|
justify-content: center;
|
|
95
|
-
`,
|
|
95
|
+
`,Er=({scale:t=1,icon:n})=>{const o=i();return e(wr,{$size:73*t,$color:"rgba(106, 42, 255, 0.10)",children:e(wr,{$size:71*t,$color:"rgba(106, 42, 255, 0.20)",children:e(wr,{$size:65*t,$color:"rgba(106, 42, 255, 0.40)",children:e(wr,{$size:56*t,$color:"rgba(106, 42, 255, 0.60)",children:e(wr,{$size:39*t,$color:o.v2.colors.purple[500],children:e(n,{size:32*t,fill:o.v2.colors.white[500]})})})})})})},Cr=o.div`
|
|
96
96
|
flex: 1;
|
|
97
97
|
align-self: stretch;
|
|
98
98
|
min-height: 0;
|
|
@@ -102,7 +102,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
102
102
|
overflow-y: auto;
|
|
103
103
|
overflow-x: auto;
|
|
104
104
|
padding: 12px;
|
|
105
|
-
`,
|
|
105
|
+
`,Tr=o.div`
|
|
106
106
|
position: relative;
|
|
107
107
|
|
|
108
108
|
// inherit all the properties of the parent (PageContent)
|
|
@@ -112,9 +112,9 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
112
112
|
display: inherit;
|
|
113
113
|
flex-direction: inherit;
|
|
114
114
|
gap: inherit;
|
|
115
|
-
`,
|
|
115
|
+
`,Ar=o.div`
|
|
116
116
|
padding: ${({$padding:e})=>e||"12px"};
|
|
117
|
-
`,
|
|
117
|
+
`,Ir=o.div`
|
|
118
118
|
display: flex;
|
|
119
119
|
flex-direction: row;
|
|
120
120
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -126,7 +126,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
126
126
|
margin: ${({$margin:e="unset"})=>e};
|
|
127
127
|
padding: ${({$padding:e="unset"})=>e};
|
|
128
128
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
129
|
-
`,
|
|
129
|
+
`,kr=o.div`
|
|
130
130
|
display: flex;
|
|
131
131
|
flex-direction: column;
|
|
132
132
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -138,18 +138,18 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
138
138
|
margin: ${({$margin:e="unset"})=>e};
|
|
139
139
|
padding: ${({$padding:e="unset"})=>e};
|
|
140
140
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
141
|
-
`,
|
|
141
|
+
`,Nr=o(kr)`
|
|
142
142
|
width: ${({$width:e})=>e||"100%"};
|
|
143
143
|
height: ${({$height:e})=>e||"unset"};
|
|
144
144
|
padding: ${({$padding:e})=>e||"unset"};
|
|
145
145
|
align-items: center;
|
|
146
146
|
justify-content: center;
|
|
147
|
-
`,
|
|
147
|
+
`,Dr=o.div`
|
|
148
148
|
display: flex;
|
|
149
149
|
flex-direction: column;
|
|
150
150
|
padding: 12px;
|
|
151
151
|
overflow-y: scroll;
|
|
152
|
-
`,
|
|
152
|
+
`,Or=o.div`
|
|
153
153
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
154
154
|
top: 0;
|
|
155
155
|
left: 0;
|
|
@@ -160,37 +160,37 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
160
160
|
z-index: ${({theme:e})=>e.v2.zIndex.modal};
|
|
161
161
|
background: rgba(0, 0, 0, 0.6);
|
|
162
162
|
backdrop-filter: blur(2px);
|
|
163
|
-
`,
|
|
163
|
+
`,Rr=o.div`
|
|
164
164
|
width: 800px;
|
|
165
165
|
min-height: ${({$minHeight:e})=>e||"unset"};
|
|
166
166
|
height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
|
|
167
167
|
margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
|
|
168
168
|
padding: 0 2px;
|
|
169
169
|
overflow-y: scroll;
|
|
170
|
-
`,
|
|
170
|
+
`,_r=o(kr)`
|
|
171
171
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
172
172
|
width: 100%;
|
|
173
|
-
`,
|
|
173
|
+
`,Lr=o(Ir)`
|
|
174
174
|
gap: 16px;
|
|
175
175
|
padding: 16px;
|
|
176
|
-
`,
|
|
176
|
+
`,Pr=o.div`
|
|
177
177
|
width: 100%;
|
|
178
178
|
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
179
179
|
overflow-y: auto;
|
|
180
|
-
`,
|
|
180
|
+
`,Fr=a`
|
|
181
181
|
0% {
|
|
182
182
|
background-position: 0% 50%;
|
|
183
183
|
}
|
|
184
184
|
100% {
|
|
185
185
|
background-position: 100% 50%;
|
|
186
186
|
}
|
|
187
|
-
`,
|
|
187
|
+
`,Mr=o(cn)`
|
|
188
188
|
background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
189
189
|
background-size: 250% 100%; /* Expand background to allow movement */
|
|
190
190
|
background-clip: text;
|
|
191
191
|
color: transparent;
|
|
192
|
-
animation: ${
|
|
193
|
-
`,
|
|
192
|
+
animation: ${Fr} 1s reverse linear infinite;
|
|
193
|
+
`,zr=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")}`},Ur=({icon:n,title:o,titleColor:r,titleSize:a=on.S,subTitle:s,subTitleColor:l,subTitleSize:c=on.XXXS,startedAt:d,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:y,visualIcon:b=Qe})=>{const $=i(),[v,x]=Ft(()=>d?zr(d):"");Mt(()=>{if(!d)return;x(zr(d));const e=setInterval(()=>x(zr(d)),1e3);return()=>clearInterval(e)},[d]);const S=r||$.v2.colors.white[500],w=l||$.v2.colors.silver[200],E=p||$.v2.colors.black[500];return t(kr,{$gap:16,$alignItems:"center",children:[y?e(yr,{scale:1.7,icon:b}):h?e(dr,{percentage:f}):g?e(mr,{scale:m}):null,(o||s||d||n)&&t(kr,{$gap:8,$alignItems:"center",children:[t(Ir,{$gap:4,children:[n&&e(n,{}),u?e(Mr,{align:"center",size:a,$titleColor:S,$gradientColor:E,children:o}):e(cn,{align:"center",size:a,color:S,children:o})]}),s?e(cn,{align:"center",size:c,color:w,children:s}):null,v?e(cn,{align:"center",size:c,color:S,children:v}):null]})]})},Br=(e,t)=>({[Mn.Default]:n=>ne({fill:ir(t,e,"300"),...n}),[Mn.Info]:n=>nt({fill:ir(t,e,"400"),...n}),[Mn.Error]:n=>tt({fill:ir(t,e,"500"),...n}),[Mn.Warning]:n=>et({fill:ir(t,e,"500"),...n}),[Mn.Success]:n=>l({fill:ir(t,e,"500"),...n}),[Un.Loading]:e=>Ur({withSpinnerOld:!0,...e}),[Bn.Disabled]:n=>c({fill:ir(t,e,"400"),...n}),[Bn.Unknown]:n=>Ze({fill:ir(t,e,"300"),...n})}[e]),jr=e=>{switch(e){case Jn.Success:return Mn.Success;case Jn.Error:case Jn.Failure:return Mn.Error;case Jn.Notice:return Mn.Warning;case Jn.Unsupported:case Jn.Unknown:return Mn.Info;case Jn.Irrelevant:case Jn.Disabled:return Un.Disabled;case Jn.Waiting:return Un.Loading;case Jn.Pending:default:return Mn.Default}},Wr=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},Hr={redis:b,mysql:x,postgresql:$,postgres:$,kafka:y,elasticsearch:ve,clickhouse:Ae,oracle:Q,aws:ot},Gr={sts:mt,dynamodb:gt,s3:X,sqs:ht,sns:pt,lambda:ut,kinesis:dt,ec2:ct,apigateway:lt,apigatewayv2:lt,bedrock:st,bedrockruntime:st,eventbridge:at,sfn:it,stepfunctions:it,secretsmanager:rt,cloudwatch:Te},Xr=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=Hr[n.toLowerCase()];if(e)return e}const o=t["messaging.system"];if(o){const e=Hr[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=Gr[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Hr))if(i.includes(e))return t;return Be},Kr=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};const{namespace:t,name:n,kind:o}=e;return{namespace:t,name:n,kind:o}};function Vr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Jr=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=Vr(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},Yr=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==Mn.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1};function qr(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 Qr(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 Zr(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:qr(t??null)}}function ei(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:Qr(t??null)}}const ti=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),ni=e=>{if(!e)return!1;if(e.length>63)return!1;return/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)},oi=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},ri=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ii=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,ai=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,si=e=>ai.test(e),li=e=>e?.map(({status:e,type:t,reason:n,message:o})=>({status:e?.toLowerCase(),type:tn(t),reason:n?tn(n):"",message:o}))||[],ci=(e,t)=>{const n=Vr(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}))},di=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>uo[e]):[],ui=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>uo[e]):[],pi=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},hi=e=>e.replace(/[^\d]/g,""),gi=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},mi=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},fi=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}},yi=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=>yi(e)))}else if("object"==typeof o&&null!==o){const e=yi(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},bi=(e,t=2)=>JSON.stringify(e||{},null,t),$i=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),vi=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),xi=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)},Si=o.div`
|
|
194
194
|
/* Portal: viewport coords (usePopup positionMode viewport). Non-portal: offset-parent coords, absolute. */
|
|
195
195
|
position: ${({$asPortal:e})=>e?"fixed":"absolute"};
|
|
196
196
|
${({$top:e})=>void 0!==e&&`top: ${e}px;`}
|
|
@@ -206,15 +206,15 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
206
206
|
width: ${({$width:e})=>void 0!==e?e:"unset"};
|
|
207
207
|
|
|
208
208
|
${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
|
|
209
|
-
`,
|
|
209
|
+
`,wi=o.div`
|
|
210
210
|
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
211
211
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
212
|
-
`,
|
|
212
|
+
`,Ei=o.div`
|
|
213
213
|
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
214
|
-
`,
|
|
214
|
+
`,Ci=o.div`
|
|
215
215
|
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
216
216
|
border-top: 1px solid ${({theme:e})=>e.colors.border};
|
|
217
|
-
`,Ii=Lt(({isOpen:n,asPortal:o,...r},i)=>{const a=zt(()=>{const{children:n,top:a,bottom:s,left:l,right:c,borderRadius:d,padding:u,maxWidth:p,width:h,header:g,footer:m,withPointerEvents:f,...y}=r;return t(Ei,{ref:i,$top:a,$bottom:s,$left:l,$right:c,$borderRadius:d,$padding:u,$maxWidth:p,$width:h,$asPortal:o,$withPointerEvents:f,...y,children:[g&&e(Ci,{$padding:u,children:g}),e(Ti,{$padding:u,children:n}),m&&e(Ai,{$padding:u,children:m})]})},[i,r,o]);return n?o?Qt.createPortal(a,document.body):a:null});Ii.displayName=Ii.name;const ki=[{type:bn.K8sAttributes,icon:Lo(bn.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[lo.Traces,lo.Metrics,lo.Logs,lo.Profiles],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:bn.AddClusterInfo,icon:Lo(bn.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[lo.Traces,lo.Metrics,lo.Logs,lo.Profiles],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals."},{type:bn.DeleteAttributes,icon:Lo(bn.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[lo.Traces,lo.Metrics,lo.Logs,lo.Profiles],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:bn.RenameAttributes,icon:Lo(bn.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[lo.Traces,lo.Metrics,lo.Logs,lo.Profiles],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:bn.PiiMasking,icon:Lo(bn.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[lo.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:bn.URLTemplatization,icon:Lo(bn.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[lo.Traces],docsEndpoint:"/pipeline/actions/attributes/urltemplatization",docsDescription:"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.",minVersion:wi("v1.21.0")},{type:bn.ExtractAttribute,icon:Lo(bn.ExtractAttribute),label:"Extract Attribute",description:"Extract values from existing attributes and save them as new attributes using JSON, SQL, resource-path, or custom regex extraction.",allowedSignals:[lo.Traces],docsEndpoint:"/pipeline/actions/attributes/extractattribute",docsDescription:"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.",minVersion:wi("v1.29.0")}];var Ni;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Ni||(Ni={}));const Di={[Ni.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Ni.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Ni.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Ni.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Ni.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Ni.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Oi=[{type:Zn.CodeAttributes,icon:Qo(Zn.CodeAttributes),label:"Code Attributes",description:"Collect code attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/codeattributes",docsDescription:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',supportedLanguages:[On.Go,On.Python,On.JavaScript]},{type:Zn.CustomInstrumentation,icon:Qo(Zn.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods (i.e. for Java) or explicit symbol (i.e. for Golang).",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',supportedLanguages:[On.Go,On.Java]},{type:Zn.HeadersCollection,icon:Qo(Zn.HeadersCollection),label:"Headers Collection",description:"Collect span attributes containing HTTP Headers data to traces.",docsEndpoint:"/pipeline/rules/headerscollection",docsDescription:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',supportedLanguages:[On.Go,On.Java,On.JavaScript]},{type:Zn.PayloadCollection,icon:Qo(Zn.PayloadCollection),label:"Payload Collection",description:"Collect span attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/payloadcollection",docsDescription:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',supportedLanguages:[On.Go,On.JavaScript]}],Ri={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.'},_i={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."},Li={[Cn.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[Cn.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[Cn.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Pi="Cancel",Fi="Save",Mi="Edit rule",zi="Edit auto rule",Ui="Create rule",Bi="Delete rule",ji="Save",Wi="Create your first rule",Hi="No Rules Exist",Gi="No Results",Xi=e=>`No rules match the search term "${e}"`,Ki="Rule name",Vi="Rule type",Ji="Select the type of condition that makes a trace highly relevant.",Yi="Rule Enabled",qi="Rule Disabled",Qi="Enabled",Zi="Disabled",ea="Note",ta="HTTP route",na="Method",oa="Keep Percentage",ra="Keep traces with duration larger than",ia="Keep traces with errors",aa="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",sa="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",la="Custom percentage",ca="Disabled rule",da="Sample",ua="Keep all",pa="Drop all",ha="Operation type",ga="HTTP route prefix",ma="Templated path",fa="Templated path prefix",ya="Kafka topic",ba="Custom duration (ms)",$a="No preview available",va="Server address",xa="Drop at most this percentage of matching traces",Sa="Unnamed rule",wa="Sampling Preview",Ea="Source Scope",Ca="Unknown source",Ta="Operation",Aa="Duration",Ia="Errors",ka="Keep Percentage",Na="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Da="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.",Oa="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Ra="Retain traces with errors from the selected services and operations.",_a="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",La="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Pa={highlyRelevant:_a,noisy:La,costReduction:void 0},Fa="Type rule name",Ma="Add note here...",za="Type here",Ua="Search source name",Ba="e.g. collector.my.vendor.com",ja="Optional notes (not used by the system). Add any context or details for this sampling rule.",Wa="Rule will apply to all sources in the cluster",Ha="If multiple source scopes are set, they must all match simultaneously.",Ga="All sources",Xa="-",Ka="All",Va="Sources",Ja="Namespaces",Ya="Languages",qa="any of",Qa="AND",Za="All operations",es="HTTP server endpoint",ts="HTTP client endpoint",ns="Kafka consumer",os="Kafka producer",rs="Sampling Rules",is='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',as="Refresh",ss="Create rule",ls="Sampling docs",cs="75vw",ds="Delete rule?",us="Are you sure you want to delete this sampling rule?",ps="Delete",hs="Cancel",gs="Kubernetes Health Probes",ms="Keep All Error Traces",fs="Drop Traces Cluster-Wide",ys="A rule with the same matching conditions already exists.",bs="Create 'Noisy Operation Kubernetes Health Probes' rule",$s="Edit 'Noisy Operation Kubernetes Health Probes' rule",vs="Automatically detect and sample health probe traces across the cluster.",xs="Create 'Highly Relevant Operations' rule",Ss="Edit 'Highly Relevant Operations' rule",ws="Automatically keep all error traces across the entire cluster.",Es="Create 'Cost Reduction' rule",Cs="Edit 'Cost Reduction' rule",Ts="Automatically drop a percentage of traces across the entire cluster.",As="Skip setup",Is="Start setup",ks="Next",Ns="Go to Sampling",Ds="Read more",Os="Welcome to Sampling",Rs="Cut costs without losing what matters",_s="Odigos sampling works in three stages:",Ls="Filter noisy traffic",Ps="Remove non-actionable traces like health checks.",Fs="Guarantee highly relevance operations",Ms="Keep traces with errors, high latency, or mission-critical endpoints/services.",zs="Reduce cost",Us="Sample routine traffic using percentages.",Bs="Sampling does not drop individual spans - it keeps or drops the entire trace.",js="Filter noisy operations",Ws="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Hs="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.",Gs="Preset Rules",Xs="Kubernetes Health Probes",Ks="Automatically ignore health checks",Vs="You can review, adjust, and add additional custom rules later.",Js="Choose your sampling strategy",Ys="Pick the approach that best fits your balance of cost vs data-completeness",qs="Keep List",Qs="Budget Friendly",Zs="Define which traces must be kept, while all others are sampled by default to minimize cost.",el="Cost-oriented - keeps only what you explicitly select.",tl="Best for very large clusters with high volumes of traces and high costs.",nl="Higher risk of missing important traces without ongoing review.",ol="Drop List",rl="Safe Choice",il="Define which traces must be aggressively dropped, while all others are kept by default.",al="Preserves most data unless explicitly filtered.",sl="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",ll="Advanced",cl="Maximum Flexibility",dl="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",ul="'Keep List' profile",pl="Protect important traces",hl="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:",gl="Traces with errors",ml="Slow requests (duration above threshold)",fl="Mission-Critical endpoints or services",yl="Services under test or evaluation",bl="New deployments",$l="You can review, adjust, and add rules once onboarding is complete.",vl="Common Rules",xl="Preset Rules",Sl="Error collection - entire cluster",wl="Keep all traces with errors",El="Ambient sampling percentage",Cl="'Drop List' profile",Tl="Reduce high-volume traffic",Al="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.",Il="Advanced Configuration",kl="Configure sampling rules",Nl="Advanced mode allows you to configure all sampling categories:",Dl="Noise Filtering - remove non-actionable traces",Ol="Highly Relevance - guarantee important traces are kept",Rl='Cost Control - drop traces for "Normal" operations',_l="Rules can target:",Ll="Services",Pl="HTTP Endpoints",Fl="DB Operations",Ml="Errors",zl="Latency and more...",Ul="Sampling configured successfully!",Bl="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",jl="Odigos will now:",Wl="Filter noisy operations",Hl="Guarantee important traces",Gl="Reduce cost using controlled sampling",Xl="Recommended",Kl={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."},Vl={noisy:bs,highlyRelevant:xs,costReduction:Es},Jl={noisy:$s,highlyRelevant:Ss,costReduction:Cs},Yl={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},ql=[{id:lo.Logs,value:"Logs"},{id:lo.Metrics,value:"Metrics"},{id:lo.Traces,value:"Traces"},{id:lo.Profiles,value:"Profiles"}],Ql={PID:"process.pid",VPID:"process.vpid"},Zl={[On.Go]:"Go",[On.Java]:"Java",[On.JavaScript]:"Node.js",[On.Python]:"Python",[On.DotNet]:".NET",[On.CSharp]:"C#",[On.CPlusPlus]:"C++",[On.Php]:"PHP",[On.Ruby]:"Ruby",[On.Rust]:"Rust",[On.Swift]:"Swift",[On.Elixir]:"Elixir",[On.MySql]:"MySQL",[On.Nginx]:"Nginx",[On.Postgres]:"PostgreSQL",[On.Redis]:"Redis",[On.Kafka]:"Kafka",[On.Ignored]:"Ignored",[On.Unknown]:"Unknown",[On.Processing]:"Processing",[On.NoContainers]:"No Containers",[On.NoRunningPods]:"No Running Pods"},ec=[{id:On.Go,label:Zl[On.Go],icon:zo(On.Go)},{id:On.Java,label:Zl[On.Java],icon:zo(On.Java)},{id:On.JavaScript,label:Zl[On.JavaScript],icon:zo(On.JavaScript)},{id:On.Python,label:Zl[On.Python],icon:zo(On.Python)},{id:On.Php,label:Zl[On.Php],icon:zo(On.Php)},{id:On.Ruby,label:Zl[On.Ruby],icon:zo(On.Ruby)},{id:On.Rust,label:Zl[On.Rust],icon:zo(On.Rust)},{id:On.DotNet,label:Zl[On.DotNet],icon:zo(On.DotNet)},{id:On.CSharp,label:Zl[On.CSharp],icon:zo(On.CSharp)},{id:On.CPlusPlus,label:Zl[On.CPlusPlus],icon:zo(On.CPlusPlus)},{id:On.Swift,label:Zl[On.Swift],icon:zo(On.Swift)},{id:On.Elixir,label:Zl[On.Elixir],icon:zo(On.Elixir)}],tc={id:qn.OpentelemetryEbpfInstrumentation,label:qn.OpentelemetryEbpfInstrumentation,icon:ft},nc={[On.Go]:{community:[{id:qn.GolangCommunity,label:qn.GolangCommunity,icon:zo(On.Go)},tc],enterprise:[{id:qn.GolangEnterprise,label:qn.GolangEnterprise,icon:zo(On.Go)}]},[On.JavaScript]:{community:[{id:qn.NodejsCommunity,label:qn.NodejsCommunity,icon:zo(On.JavaScript)},tc],enterprise:[{id:qn.NodejsEnterprise,label:qn.NodejsEnterprise,icon:zo(On.JavaScript)}]},[On.Python]:{community:[{id:qn.PythonCommunity,label:qn.PythonCommunity,icon:zo(On.Python)},tc],enterprise:[{id:qn.PythonEnterprise,label:qn.PythonEnterprise,icon:zo(On.Python)}]},[On.Java]:{community:[{id:qn.JavaCommunity,label:qn.JavaCommunity,icon:zo(On.Java)},tc],enterprise:[{id:qn.JavaEnterprise,label:qn.JavaEnterprise,icon:zo(On.Java)},{id:qn.JavaEbpfInstrumentations,label:qn.JavaEbpfInstrumentations,icon:zo(On.Java)}]},[On.DotNet]:{community:[{id:qn.DotNetCommunity,label:qn.DotNetCommunity,icon:zo(On.DotNet)},tc],enterprise:[{id:qn.DotNetEnterprise,label:qn.DotNetEnterprise,icon:zo(On.DotNet)}]},[On.Ruby]:{community:[{id:qn.RubyCommunity,label:qn.RubyCommunity,icon:zo(On.Ruby)},tc],enterprise:[{id:qn.RubyEnterprise,label:qn.RubyEnterprise,icon:zo(On.Ruby)}]},[On.Php]:{community:[{id:qn.PhpCommunity,label:qn.PhpCommunity,icon:zo(On.Php)},tc],enterprise:[]},[On.CSharp]:{community:[],enterprise:[{id:qn.CPlusPlusEnterprise,label:qn.CPlusPlusEnterprise,icon:zo(On.CSharp)}]},[On.MySql]:{community:[],enterprise:[{id:qn.MySqlEnterprise,label:qn.MySqlEnterprise,icon:zo(On.MySql)}]},[On.CPlusPlus]:{community:[tc],enterprise:[]},[On.Rust]:{community:[tc],enterprise:[]},[On.Swift]:{community:[tc],enterprise:[]},[On.Elixir]:{community:[tc],enterprise:[]},[On.Nginx]:{community:[tc],enterprise:[]},[On.Postgres]:{community:[tc],enterprise:[]},[On.Redis]:{community:[tc],enterprise:[]},[On.Kafka]:{community:[tc],enterprise:[]},[On.Ignored]:{community:[],enterprise:[]},[On.Unknown]:{community:[tc],enterprise:[]},[On.Processing]:{community:[],enterprise:[]},[On.NoContainers]:{community:[],enterprise:[]},[On.NoRunningPods]:{community:[],enterprise:[]}},oc=6048e5,rc=_t(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),ic=_t()(Jt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:gn.DARK_MODE,storage:"undefined"!=typeof window?Yt(()=>localStorage):void 0})),ac={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:un},sc=_t(e=>({...ac,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(ac)})),lc=_t(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),cc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),dc=_t(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),getEmptyState:cc})),uc=_t(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),pc=_t((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 hc;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(hc||(hc={}));const gc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),mc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),fc=_t((e,t)=>({progress:{},setProgress:(n,o)=>{const r=t(),i=gc();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]:mc(i)}})},addProgress:(n,o,r)=>{const i=t(),a=gc(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]:mc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),yc=_t(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),bc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},$c=(e,t)=>e.destinationType.type!==t.destinationType.type,vc=_t(e=>({...bc,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=>$c(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=>$c(e,t))})),clearStore:()=>e(()=>({...bc}))})),xc=e=>{function t(){return void 0===e?{}:wo(e)}const[n,o]=Ft(t()),[r,i]=Ft({}),[a,s]=Ft(t()),l=Ut((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},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=zt(()=>!c(a,n),[a,n]);Mt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(r)&&(o(r),s(r))},[e,n]);const u=Ut((e,t)=>Eo("formData"===e?n:r,t.toString()),[n,r]);return{formData:n,formErrors:r,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,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=wo(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=wo(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}},Sc={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},wc=()=>{const{addNotification:e}=pc(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:r,resetFormData:i}=xc(Sc),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;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":oi(t)&&(o[e]=mn.FIELD_IS_REQUIRED)}}),t.type===bn.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=mn.FIELD_IS_REQUIRED;break}}return i=!Object.values(o).length,!i&&n?.withAlert&&e({type:Mn.Warning,title:n.alertTitle,message:mn.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,o),i},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:r,disabled:i,fields:s})=>{const l={...wo(Sc),type:e,signals:t,name:n,notes:r,disabled:i};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case $n.LabelsAttributes:case $n.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case $n.CollectContainerAttributes:case $n.CollectReplicaSetAttributes:case $n.CollectWorkloadId:case $n.CollectClusterId:case $n.ClusterAttributes:case $n.OverwriteExistingValues:case $n.AttributeNamesToDelete:case $n.Renames:case $n.PiiCategories:case $n.ExtractAttribute:case $n.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),o(void 0,void 0,l)}}},Ec=e=>{Mt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Cc=()=>{const{setCurrentModal:e}=uc(),{setDrawerType:t,setDrawerEntityId:n}=lc(),{setActiveNodeType:o,setActiveNodeId:r,activeNodeId:i}=rc();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:u}}=s;switch(i===l?(o(null),r(null)):(o(c),r(l)),u){case _n.Source:case _n.Destination:case _n.Action:case _n.InstrumentationRule:t(u),n(d);break;case Vn.AddSource:e(_n.Source);break;case Vn.AddDestination:e(_n.Destination);break;case Vn.AddAction:e(_n.Action);break;case Vn.AddRule:e(_n.InstrumentationRule)}}}},Tc=()=>{const{setDrawerType:e,setDrawerEntityId:t}=lc(),{markAsDismissed:n,markAsSeen:o}=pc();return{onClickNotification:(r,i)=>{const{id:a,crdType:s,target:l}=r,{dismissToast:c}=i||{};if(s&&l)switch(s){case _n.InstrumentationRule:e(_n.InstrumentationRule),t(qo(l,_n.InstrumentationRule));break;case _n.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(_n.Source),t(qo(l,_n.Source));break;case _n.Action:e(_n.Action),t(qo(l,_n.Action));break;case _n.Destination:case"Destination":e(_n.Destination),t(qo(l,_n.Destination))}o(a),c&&n(a)}}},Ac=()=>{const e=Bt(null),[t,n]=Ft(0),[o,r]=Ft(0);return Mt(()=>{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 Ic;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Ic||(Ic={}));const kc=o.div`
|
|
217
|
+
`,Ti=Lt(({isOpen:n,asPortal:o,...r},i)=>{const a=zt(()=>{const{children:n,top:a,bottom:s,left:l,right:c,borderRadius:d,padding:u,maxWidth:p,width:h,header:g,footer:m,withPointerEvents:f,...y}=r;return t(Si,{ref:i,$top:a,$bottom:s,$left:l,$right:c,$borderRadius:d,$padding:u,$maxWidth:p,$width:h,$asPortal:o,$withPointerEvents:f,...y,children:[g&&e(wi,{$padding:u,children:g}),e(Ei,{$padding:u,children:n}),m&&e(Ci,{$padding:u,children:m})]})},[i,r,o]);return n?o?Qt.createPortal(a,document.body):a:null});Ti.displayName=Ti.name;const Ai=[{type:bn.K8sAttributes,icon:Oo(bn.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[io.Traces,io.Metrics,io.Logs,io.Profiles],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:bn.AddClusterInfo,icon:Oo(bn.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[io.Traces,io.Metrics,io.Logs,io.Profiles],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals."},{type:bn.DeleteAttributes,icon:Oo(bn.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[io.Traces,io.Metrics,io.Logs,io.Profiles],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:bn.RenameAttributes,icon:Oo(bn.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[io.Traces,io.Metrics,io.Logs,io.Profiles],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:bn.PiiMasking,icon:Oo(bn.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[io.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:bn.URLTemplatization,icon:Oo(bn.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[io.Traces],docsEndpoint:"/pipeline/actions/attributes/urltemplatization",docsDescription:"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.",minVersion:xi("v1.21.0")},{type:bn.ExtractAttribute,icon:Oo(bn.ExtractAttribute),label:"Extract Attribute",description:"Extract values from existing attributes and save them as new attributes using JSON, SQL, resource-path, or custom regex extraction.",allowedSignals:[io.Traces],docsEndpoint:"/pipeline/actions/attributes/extractattribute",docsDescription:"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.",minVersion:xi("v1.29.0")}];var Ii;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Ii||(Ii={}));const ki={[Ii.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Ii.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Ii.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Ii.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Ii.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Ii.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Ni=[{type:Yn.CodeAttributes,icon:Jo(Yn.CodeAttributes),label:"Code Attributes",description:"Collect code attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/codeattributes",docsDescription:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',supportedLanguages:[On.Go,On.Python,On.JavaScript]},{type:Yn.CustomInstrumentation,icon:Jo(Yn.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods (i.e. for Java) or explicit symbol (i.e. for Golang).",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',supportedLanguages:[On.Go,On.Java]},{type:Yn.HeadersCollection,icon:Jo(Yn.HeadersCollection),label:"Headers Collection",description:"Collect span attributes containing HTTP Headers data to traces.",docsEndpoint:"/pipeline/rules/headerscollection",docsDescription:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',supportedLanguages:[On.Go,On.Java,On.JavaScript]},{type:Yn.PayloadCollection,icon:Jo(Yn.PayloadCollection),label:"Payload Collection",description:"Collect span attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/payloadcollection",docsDescription:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',supportedLanguages:[On.Go,On.JavaScript]}],Di={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.'},Oi={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."},Ri={[Cn.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[Cn.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[Cn.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},_i="Cancel",Li="Save",Pi="Edit rule",Fi="Edit auto rule",Mi="Create rule",zi="Delete rule",Ui="Save",Bi="Create your first rule",ji="No Rules Exist",Wi="No Results",Hi=e=>`No rules match the search term "${e}"`,Gi="Rule name",Xi="Rule type",Ki="Select the type of condition that makes a trace highly relevant.",Vi="Rule Enabled",Ji="Rule Disabled",Yi="Enabled",qi="Disabled",Qi="Note",Zi="HTTP route",ea="Method",ta="Keep Percentage",na="Keep traces with duration larger than",oa="Keep traces with errors",ra="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",ia="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",aa="Custom percentage",sa="Disabled rule",la="Sample",ca="Keep all",da="Drop all",ua="Operation type",pa="HTTP route prefix",ha="Templated path",ga="Templated path prefix",ma="Kafka topic",fa="Custom duration (ms)",ya="No preview available",ba="Server address",$a="Drop at most this percentage of matching traces",va="Unnamed rule",xa="Sampling Preview",Sa="Source Scope",wa="Unknown source",Ea="Operation",Ca="Duration",Ta="Errors",Aa="Keep Percentage",Ia="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",ka="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.",Na="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Da="Retain traces with errors from the selected services and operations.",Oa="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",Ra="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",_a={highlyRelevant:Oa,noisy:Ra,costReduction:void 0},La="Type rule name",Pa="Add note here...",Fa="Type here",Ma="Search source name",za="e.g. collector.my.vendor.com",Ua="Optional notes (not used by the system). Add any context or details for this sampling rule.",Ba="Rule will apply to all sources in the cluster",ja="If multiple source scopes are set, they must all match simultaneously.",Wa="All sources",Ha="-",Ga="All",Xa="Sources",Ka="Namespaces",Va="Languages",Ja="any of",Ya="AND",qa="All operations",Qa="HTTP server endpoint",Za="HTTP client endpoint",es="Kafka consumer",ts="Kafka producer",ns="Sampling Rules",os='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',rs="Refresh",is="Create rule",as="Sampling docs",ss="75vw",ls="Delete rule?",cs="Are you sure you want to delete this sampling rule?",ds="Delete",us="Cancel",ps="Kubernetes Health Probes",hs="Keep All Error Traces",gs="Drop Traces Cluster-Wide",ms="A rule with the same matching conditions already exists.",fs="Create 'Noisy Operation Kubernetes Health Probes' rule",ys="Edit 'Noisy Operation Kubernetes Health Probes' rule",bs="Automatically detect and sample health probe traces across the cluster.",$s="Create 'Highly Relevant Operations' rule",vs="Edit 'Highly Relevant Operations' rule",xs="Automatically keep all error traces across the entire cluster.",Ss="Create 'Cost Reduction' rule",ws="Edit 'Cost Reduction' rule",Es="Automatically drop a percentage of traces across the entire cluster.",Cs="Skip setup",Ts="Start setup",As="Next",Is="Go to Sampling",ks="Read more",Ns="Welcome to Sampling",Ds="Cut costs without losing what matters",Os="Odigos sampling works in three stages:",Rs="Filter noisy traffic",_s="Remove non-actionable traces like health checks.",Ls="Guarantee highly relevance operations",Ps="Keep traces with errors, high latency, or mission-critical endpoints/services.",Fs="Reduce cost",Ms="Sample routine traffic using percentages.",zs="Sampling does not drop individual spans - it keeps or drops the entire trace.",Us="Filter noisy operations",Bs="Cut traces with little or no observability value (health-checks, metric scarping, etc)",js="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.",Ws="Preset Rules",Hs="Kubernetes Health Probes",Gs="Automatically ignore health checks",Xs="You can review, adjust, and add additional custom rules later.",Ks="Choose your sampling strategy",Vs="Pick the approach that best fits your balance of cost vs data-completeness",Js="Keep List",Ys="Budget Friendly",qs="Define which traces must be kept, while all others are sampled by default to minimize cost.",Qs="Cost-oriented - keeps only what you explicitly select.",Zs="Best for very large clusters with high volumes of traces and high costs.",el="Higher risk of missing important traces without ongoing review.",tl="Drop List",nl="Safe Choice",ol="Define which traces must be aggressively dropped, while all others are kept by default.",rl="Preserves most data unless explicitly filtered.",il="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",al="Advanced",sl="Maximum Flexibility",ll="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",cl="'Keep List' profile",dl="Protect important traces",ul="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:",pl="Traces with errors",hl="Slow requests (duration above threshold)",gl="Mission-Critical endpoints or services",ml="Services under test or evaluation",fl="New deployments",yl="You can review, adjust, and add rules once onboarding is complete.",bl="Common Rules",$l="Preset Rules",vl="Error collection - entire cluster",xl="Keep all traces with errors",Sl="Ambient sampling percentage",wl="'Drop List' profile",El="Reduce high-volume traffic",Cl="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.",Tl="Advanced Configuration",Al="Configure sampling rules",Il="Advanced mode allows you to configure all sampling categories:",kl="Noise Filtering - remove non-actionable traces",Nl="Highly Relevance - guarantee important traces are kept",Dl='Cost Control - drop traces for "Normal" operations',Ol="Rules can target:",Rl="Services",_l="HTTP Endpoints",Ll="DB Operations",Pl="Errors",Fl="Latency and more...",Ml="Sampling configured successfully!",zl="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Ul="Odigos will now:",Bl="Filter noisy operations",jl="Guarantee important traces",Wl="Reduce cost using controlled sampling",Hl="Recommended",Gl={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."},Xl={noisy:fs,highlyRelevant:$s,costReduction:Ss},Kl={noisy:ys,highlyRelevant:vs,costReduction:ws},Vl={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Jl=[{id:io.Logs,value:"Logs"},{id:io.Metrics,value:"Metrics"},{id:io.Traces,value:"Traces"},{id:io.Profiles,value:"Profiles"}],Yl={PID:"process.pid",VPID:"process.vpid"},ql={[On.Go]:"Go",[On.Java]:"Java",[On.JavaScript]:"Node.js",[On.Python]:"Python",[On.DotNet]:".NET",[On.CSharp]:"C#",[On.CPlusPlus]:"C++",[On.Php]:"PHP",[On.Ruby]:"Ruby",[On.Rust]:"Rust",[On.Swift]:"Swift",[On.Elixir]:"Elixir",[On.MySql]:"MySQL",[On.Nginx]:"Nginx",[On.Postgres]:"PostgreSQL",[On.Redis]:"Redis",[On.Kafka]:"Kafka",[On.Ignored]:"Ignored",[On.Unknown]:"Unknown",[On.Processing]:"Processing",[On.NoContainers]:"No Containers",[On.NoRunningPods]:"No Running Pods"},Ql=[{id:On.Go,label:ql[On.Go],icon:Po(On.Go)},{id:On.Java,label:ql[On.Java],icon:Po(On.Java)},{id:On.JavaScript,label:ql[On.JavaScript],icon:Po(On.JavaScript)},{id:On.Python,label:ql[On.Python],icon:Po(On.Python)},{id:On.Php,label:ql[On.Php],icon:Po(On.Php)},{id:On.Ruby,label:ql[On.Ruby],icon:Po(On.Ruby)},{id:On.Rust,label:ql[On.Rust],icon:Po(On.Rust)},{id:On.DotNet,label:ql[On.DotNet],icon:Po(On.DotNet)},{id:On.CSharp,label:ql[On.CSharp],icon:Po(On.CSharp)},{id:On.CPlusPlus,label:ql[On.CPlusPlus],icon:Po(On.CPlusPlus)},{id:On.Swift,label:ql[On.Swift],icon:Po(On.Swift)},{id:On.Elixir,label:ql[On.Elixir],icon:Po(On.Elixir)}],Zl={id:Vn.OpentelemetryEbpfInstrumentation,label:Vn.OpentelemetryEbpfInstrumentation,icon:ft},ec={[On.Go]:{community:[{id:Vn.GolangCommunity,label:Vn.GolangCommunity,icon:Po(On.Go)},Zl],enterprise:[{id:Vn.GolangEnterprise,label:Vn.GolangEnterprise,icon:Po(On.Go)}]},[On.JavaScript]:{community:[{id:Vn.NodejsCommunity,label:Vn.NodejsCommunity,icon:Po(On.JavaScript)},Zl],enterprise:[{id:Vn.NodejsEnterprise,label:Vn.NodejsEnterprise,icon:Po(On.JavaScript)}]},[On.Python]:{community:[{id:Vn.PythonCommunity,label:Vn.PythonCommunity,icon:Po(On.Python)},Zl],enterprise:[{id:Vn.PythonEnterprise,label:Vn.PythonEnterprise,icon:Po(On.Python)}]},[On.Java]:{community:[{id:Vn.JavaCommunity,label:Vn.JavaCommunity,icon:Po(On.Java)},Zl],enterprise:[{id:Vn.JavaEnterprise,label:Vn.JavaEnterprise,icon:Po(On.Java)},{id:Vn.JavaEbpfInstrumentations,label:Vn.JavaEbpfInstrumentations,icon:Po(On.Java)}]},[On.DotNet]:{community:[{id:Vn.DotNetCommunity,label:Vn.DotNetCommunity,icon:Po(On.DotNet)},Zl],enterprise:[{id:Vn.DotNetEnterprise,label:Vn.DotNetEnterprise,icon:Po(On.DotNet)}]},[On.Ruby]:{community:[{id:Vn.RubyCommunity,label:Vn.RubyCommunity,icon:Po(On.Ruby)},Zl],enterprise:[{id:Vn.RubyEnterprise,label:Vn.RubyEnterprise,icon:Po(On.Ruby)}]},[On.Php]:{community:[{id:Vn.PhpCommunity,label:Vn.PhpCommunity,icon:Po(On.Php)},Zl],enterprise:[]},[On.CSharp]:{community:[],enterprise:[{id:Vn.CPlusPlusEnterprise,label:Vn.CPlusPlusEnterprise,icon:Po(On.CSharp)}]},[On.MySql]:{community:[],enterprise:[{id:Vn.MySqlEnterprise,label:Vn.MySqlEnterprise,icon:Po(On.MySql)}]},[On.CPlusPlus]:{community:[Zl],enterprise:[]},[On.Rust]:{community:[Zl],enterprise:[]},[On.Swift]:{community:[Zl],enterprise:[]},[On.Elixir]:{community:[Zl],enterprise:[]},[On.Nginx]:{community:[Zl],enterprise:[]},[On.Postgres]:{community:[Zl],enterprise:[]},[On.Redis]:{community:[Zl],enterprise:[]},[On.Kafka]:{community:[Zl],enterprise:[]},[On.Ignored]:{community:[],enterprise:[]},[On.Unknown]:{community:[Zl],enterprise:[]},[On.Processing]:{community:[],enterprise:[]},[On.NoContainers]:{community:[],enterprise:[]},[On.NoRunningPods]:{community:[],enterprise:[]}},tc=6048e5,nc=_t()(Jt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:gn.DARK_MODE,storage:"undefined"!=typeof window?Yt(()=>localStorage):void 0})),oc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:un},rc=_t(e=>({...oc,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(oc)})),ic=_t(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),ac=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),sc=_t(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),getEmptyState:ac})),lc=_t(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),cc=_t((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 dc;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(dc||(dc={}));const uc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),pc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),hc=_t((e,t)=>({progress:{},setProgress:(n,o)=>{const r=t(),i=uc();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]:pc(i)}})},addProgress:(n,o,r)=>{const i=t(),a=uc(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]:pc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),gc=_t(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),mc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},fc=(e,t)=>e.destinationType.type!==t.destinationType.type,yc=_t(e=>({...mc,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=>fc(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=>fc(e,t))})),clearStore:()=>e(()=>({...mc}))})),bc=e=>{function t(){return void 0===e?{}:vo(e)}const[n,o]=Ft(t()),[r,i]=Ft({}),[a,s]=Ft(t()),l=Ut((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},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=zt(()=>!c(a,n),[a,n]);Mt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(r)&&(o(r),s(r))},[e,n]);const u=Ut((e,t)=>xo("formData"===e?n:r,t.toString()),[n,r]);return{formData:n,formErrors:r,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,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=vo(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=vo(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}},$c={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},vc=()=>{const{addNotification:e}=cc(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:r,resetFormData:i}=bc($c),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;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":ti(t)&&(o[e]=mn.FIELD_IS_REQUIRED)}}),t.type===bn.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=mn.FIELD_IS_REQUIRED;break}}return i=!Object.values(o).length,!i&&n?.withAlert&&e({type:Mn.Warning,title:n.alertTitle,message:mn.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,o),i},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:r,disabled:i,fields:s})=>{const l={...vo($c),type:e,signals:t,name:n,notes:r,disabled:i};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case $n.LabelsAttributes:case $n.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case $n.CollectContainerAttributes:case $n.CollectReplicaSetAttributes:case $n.CollectWorkloadId:case $n.CollectClusterId:case $n.ClusterAttributes:case $n.OverwriteExistingValues:case $n.AttributeNamesToDelete:case $n.Renames:case $n.PiiCategories:case $n.ExtractAttribute:case $n.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),o(void 0,void 0,l)}}},xc=e=>{Mt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Sc=()=>{const{setDrawerType:e,setDrawerEntityId:t}=ic();return{onClickNode:(n,o)=>{const{data:{id:r,type:i}}=o;switch(i){case _n.Source:case _n.Destination:case _n.Action:case _n.InstrumentationRule:e(i),t(r)}}}},wc=()=>{const{setDrawerType:e,setDrawerEntityId:t}=ic(),{markAsDismissed:n,markAsSeen:o}=cc();return{onClickNotification:(r,i)=>{const{id:a,crdType:s,target:l}=r,{dismissToast:c}=i||{};if(s&&l)switch(s){case _n.InstrumentationRule:e(_n.InstrumentationRule),t(Vo(l,_n.InstrumentationRule));break;case _n.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(_n.Source),t(Vo(l,_n.Source));break;case _n.Action:e(_n.Action),t(Vo(l,_n.Action));break;case _n.Destination:case"Destination":e(_n.Destination),t(Vo(l,_n.Destination))}o(a),c&&n(a)}}},Ec=()=>{const e=Bt(null),[t,n]=Ft(0),[o,r]=Ft(0);return Mt(()=>{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 Cc;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Cc||(Cc={}));const Tc=o.div`
|
|
218
218
|
width: ${({$size:e})=>1.5*e}px;
|
|
219
219
|
height: ${({$size:e})=>1.5*e}px;
|
|
220
220
|
display: flex;
|
|
@@ -225,7 +225,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
225
225
|
&:hover {
|
|
226
226
|
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
227
227
|
}
|
|
228
|
-
`,
|
|
228
|
+
`,Ac=({"data-id":t,icon:n,size:o=Cc.S,onClick:r,disabled:i})=>e(Tc,{"data-id":t,$size:o,$disabled:i,onClick:e=>{r&&!i&&(e.stopPropagation(),r(e))},children:e(n,{size:o})}),Ic=({onDone:t}={})=>{const[n,o]=Ft(!1),[r,i]=Ft(-1),a=Ut(async(e,r)=>{if(!n){if(o(!0),void 0!==r&&i(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(e)}catch(e){}else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(t)}t?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[n,t]);return{CopyButton:Ut(({value:t,size:o})=>e(Ac,{icon:n?yt:bt,size:o,onClick:()=>a(t)}),[n]),isCopied:n,copiedIndex:r,clickCopy:a}},kc=e=>{const{addNotification:t}=cc(),{formData:n,handleFormChange:o,formErrors:r,handleErrorChange:i,resetFormData:a}=bc(e);return{formData:n,formErrors:r,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let r=!0;return n.name?ni(n.name)?o.name=void 0:(r=!1,o.name=mn.ILLEGAL_K8S_LABEL):(r=!1,o.name=mn.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Mn.Warning,title:e.alertTitle,message:mn.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),r},loadFormWithDrawerItem:({name:t})=>{const n={...vo(e),name:t};o(void 0,void 0,n)}}},Nc={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},Dc=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=cc(),{formData:r,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=bc(Nc),[c,d]=Ft([]),[u,p]=Ft([]);Mt(()=>{var e;p(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:o,displayName:r,initialValue:i,renderCondition:a}=e;if(n===Pn.Dropdown){const e=Vr(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,...Vr(o,{})}})).map(e=>{if(n){const t="string"==typeof n?Vr(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,n]),Mt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),Mt(()=>{if(t&&0===di(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]);return{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]=mn.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:Mn.Warning,title:e.alertTitle,message:mn.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={...vo(Nc),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(Vr(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},Oc={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[eo.HttpRequest]:null,[eo.HttpResponse]:null,[eo.DbQuery]:null,[eo.Messaging]:null},codeAttributes:{[qn.Column]:null,[qn.FilePath]:null,[qn.Function]:null,[qn.LineNumber]:null,[qn.Namespace]:null,[qn.StackTrace]:null},headersCollection:null,customInstrumentations:{[Zn.Java]:null,[Zn.Golang]:null}},Rc=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=bc(Oc);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})=>{const c={...vo(Oc),ruleName:e,notes:t,disabled:o,sourceScopes:r??null};i&&(c.payloadCollection={[eo.HttpRequest]:i[eo.HttpRequest]?{}:null,[eo.HttpResponse]:i[eo.HttpResponse]?{}:null,[eo.DbQuery]:i[eo.DbQuery]?{}:null,[eo.Messaging]:i[eo.Messaging]?{}:null}),a&&(c.codeAttributes={[qn.Column]:a[qn.Column]||null,[qn.FilePath]:a[qn.FilePath]||null,[qn.Function]:a[qn.Function]||null,[qn.LineNumber]:a[qn.LineNumber]||null,[qn.Namespace]:a[qn.Namespace]||null,[qn.StackTrace]:a[qn.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Zn.Java]:l[Zn.Java]||null,[Zn.Golang]:l[Zn.Golang]||null}),n(void 0,void 0,c)}}},_c=({active:e,key:t,withAltKey:n,withCtrlKey:o,withShiftKey:r,withMetaKey:i},a)=>(Mt(()=>{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),Lc="data-ignore-outside-click",Pc=(e,t)=>{const n=Bt(t);n.current=t,Mt(()=>{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(Lc))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])},Fc=(e,{axis:t="horizontal",deps:n=[]}={})=>{const[o,r]=Ft(!1),i=e=>{const n="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(n)};return jt(()=>{const t=e.current;if(!t)return;i(t);const n=new ResizeObserver(()=>i(t));return n.observe(t),()=>n.disconnect()},[t,...n]),Mt(()=>{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},Mc=(e,{behavior:t="smooth",block:n="center",inline:o,delayMs:r=50}={})=>{const i=Bt(null);return Mt(()=>{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},zc=({sectionNames:e,threshold:t=.4})=>{const[n,o]=Ft(e[0]||""),[r,i]=Ft(null),a=Bt({}),s=Bt(!1),l=Bt(!1),c=Ut((e,t)=>{a.current[e]=t},[]),d=Ut(e=>{i(e)},[]),u=Ut(e=>{l.current=!0,o(e)},[]);return Mt(()=>{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]),Mt(()=>{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:c,setScrollContainerRef:d}},Uc=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n,positionMode:o="local"}={})=>{const r=Bt(null),[i,a]=Ft(!1),[s,l]=Ft({top:0,left:0}),[c,d]=Ft({edge:"top",align:"left"});Pc(r,()=>{i&&(a(!1),n?.())});return{popupRef:r,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(n,i)=>{if("local"===o)return void l({top:i,left:n});const{innerWidth:a,innerHeight:s}=window,c=r.current?.clientWidth||t,u=r.current?.clientHeight||e,p=n/a,h=p<1/3?"left":p>2/3?"right":"center";d({edge:i<s/2?"top":"bottom",align:h});let g=i,m=n;if(g>=s/2&&(g+=-u),"center"===h){m=n-c/2;const e=8;m=Math.max(e,Math.min(m,a-c-e))}else m>=a/2&&(m=n-c);l({top:g,left:m})}}},Bc=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?Vr(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),jc={otelServiceName:"",currentStreamName:""},Wc=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=bc(jc);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:r,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const o={...vo(jc),otelServiceName:e||t.name||""};n(void 0,void 0,o)}}};try{Ht.addDefaultLocale(Gt)}catch(e){}const Hc=new Ht(Gt.locale),Gc=[{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"}],Xc=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Kc=()=>{const[e,t]=Ft(0);Mt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]);return{formatTimeAgo:Ut(e=>{try{return Hc.format(Xc(e))}catch(e){return"-"}},[e]),formatDurationAgo:Ut((e,{units:t=2,style:n="long",suffix:o=!0}={})=>{try{const r=Xc(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 Gc){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])}},Vc=o.div`
|
|
229
229
|
color: ${({$color:e,theme:t})=>e||t.text.secondary};
|
|
230
230
|
font-size: ${({$size:e})=>void 0!==e?e:16}px;
|
|
231
231
|
font-weight: ${({$weight:e})=>void 0!==e?e:300};
|
|
@@ -236,7 +236,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
236
236
|
font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
|
|
237
237
|
white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
|
|
238
238
|
text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
|
|
239
|
-
`,
|
|
239
|
+
`,Jc=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(">","")}})},Yc=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},qc=(n,o)=>{const r=Jc(n);r?.forEach((e,t)=>{n=n.replace(e.original,`LINK-${t}###`)});const i=Yc(n);i?.forEach((e,t)=>{n=n.replace(e.original,`STRONG-${t}###`)});return n.split(" ").map(n=>{if(n.includes("LINK-")){const[i,a]=n.split("###"),s=r?.[parseInt(i.replace("LINK-",""))];return t(Pt,{children:[e("a",{href:s?.href,target:"_blank",rel:"noreferrer",style:{color:o.colors.majestic_blue_soft},children:s?.label}),a?`${a} `:" "]},n)}if(n.includes("STRONG-")){const[o,r]=n.split("###"),a=i?.[parseInt(o.replace("STRONG-",""))];return t(Pt,{children:[e("strong",{style:{fontWeight:600},children:a?.label}),r?`${r} `:" "]},n)}return n+" "})},Qc=({children:n,color:o,size:r,weight:a,align:s,family:l,opacity:c,decoration:d,transform:u,nowrap:p,...h})=>{const g=i(),m=zt(()=>(n?["string","number"].includes(typeof n)?n.toString():Array.isArray(n)?n.map(e=>"object"==typeof e&&Object.hasOwn(e,"props")?e.props.children:e).filter(e=>e&&["string","number"].includes(typeof e)).join(" "):"":"").split("\n"),[n]);return e(Vc,{$color:o,$size:r,$weight:a,$align:s,$family:l,$opacity:c,$decoration:d,$transform:u,$nowrap:p,...h,children:m.length?m.map((n,o)=>t(Pt,{children:[qc(n,g),o!==m.length-1?e("br",{}):null]},`text-${o}-${n}`)):n})},Zc=o.div`
|
|
240
240
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
241
241
|
position: relative;
|
|
242
242
|
display: flex;
|
|
@@ -250,13 +250,13 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
250
250
|
text-overflow: ellipsis;
|
|
251
251
|
white-space: nowrap;
|
|
252
252
|
`}
|
|
253
|
-
`,
|
|
253
|
+
`,ed=o.div`
|
|
254
254
|
display: flex;
|
|
255
255
|
flex-direction: column;
|
|
256
256
|
align-items: flex-start;
|
|
257
257
|
gap: 8px;
|
|
258
258
|
width: 100%;
|
|
259
|
-
`,
|
|
259
|
+
`,td=o.div`
|
|
260
260
|
display: flex;
|
|
261
261
|
width: 100%;
|
|
262
262
|
flex-shrink: 0;
|
|
@@ -266,7 +266,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
266
266
|
${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
|
|
267
267
|
${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
|
|
268
268
|
${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
|
|
269
|
-
`,
|
|
269
|
+
`,nd=o.div`
|
|
270
270
|
width: 0;
|
|
271
271
|
height: 0;
|
|
272
272
|
border-style: solid;
|
|
@@ -275,20 +275,20 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
275
275
|
flex-shrink: 0;
|
|
276
276
|
|
|
277
277
|
${({$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 `}
|
|
278
|
-
`,
|
|
278
|
+
`,od=o.div`
|
|
279
279
|
display: flex;
|
|
280
280
|
flex-direction: column;
|
|
281
281
|
align-items: stretch;
|
|
282
282
|
min-width: 0;
|
|
283
|
-
`,
|
|
283
|
+
`,rd=o.div`
|
|
284
284
|
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
285
285
|
border-radius: 4px;
|
|
286
286
|
padding: 8px;
|
|
287
287
|
box-sizing: border-box;
|
|
288
288
|
min-width: 0;
|
|
289
|
-
`,
|
|
289
|
+
`,id=({withIcon:o,titleIcon:r,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,keepAlive:u=!1,ellipsis:p=!1})=>{const h=i(),{popupRef:g,popupOpen:m,setPopupOpen:f,popupPosition:y,arrowPlacement:b,handlePosition:$}=Uc({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(s?.length||0),300)}),v=zt(()=>!!Jc(s||"")?.length,[s]),x=e=>{const{type:t,clientX:n,clientY:o}=e;v?$(y.left||n,y.top||o):$(n,o),f("mouseleave"!==t)};return s||u?t(Zc,{$fullWidth:d,$ellipsis:p,$hasText:!!s,onMouseEnter:x,onMouseMove:x,onMouseLeave:x,children:[c,o&&e(Ze,{fill:h.v2.colors.white[500]}),e(Ti,{ref:g,isOpen:m&&!!s,top:y.top,left:y.left,asPortal:!0,withPointerEvents:v,onMouseEnter:v?x:void 0,style:{backgroundColor:"transparent",border:"none"},maxWidth:"270px",borderRadius:"0",padding:"0",children:t(od,{children:["top"===b.edge&&e(td,{$align:b.align,children:e(nd,{$pointsUp:!0})}),e(rd,{children:t(ed,{children:[(!!r||!!a)&&t(Ir,{$gap:4,style:{alignItems:"center"},children:[r&&e(r,{size:16},"icon"),a&&e(cn,{size:on.XS,children:a},"title")]}),!!s&&e(cn,{size:on.XXXS,children:s}),!!l&&e(cn,{size:on.XXXS,color:rn.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===b.edge&&e(td,{$align:b.align,children:e(nd,{$pointsUp:!1})})]})})]}):e(n,{children:c})},ad=o(Ir)`
|
|
290
290
|
gap: 0;
|
|
291
|
-
`,
|
|
291
|
+
`,sd=o.button`
|
|
292
292
|
padding: 4px 8px;
|
|
293
293
|
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
294
294
|
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
@@ -300,22 +300,22 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
300
300
|
&:hover {
|
|
301
301
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
302
302
|
}
|
|
303
|
-
`,
|
|
303
|
+
`,ld=({isPrettyMode:n,setIsPrettyMode:o})=>t(ad,{children:[e(sd,{$position:"left",$selected:n,onClick:()=>o(!0),children:e($t,{})}),e(sd,{$position:"right",$selected:!n,onClick:()=>o(!1),children:e(vt,{})})]}),cd=o.table`
|
|
304
304
|
border-collapse: collapse;
|
|
305
305
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
306
|
-
`,
|
|
306
|
+
`,dd=o.tbody``,ud=o.tr`
|
|
307
307
|
td:first-child {
|
|
308
308
|
padding-left: 0 !important;
|
|
309
309
|
}
|
|
310
310
|
td:last-child {
|
|
311
311
|
padding-right: 0 !important;
|
|
312
312
|
}
|
|
313
|
-
`,
|
|
313
|
+
`,pd=o.td`
|
|
314
314
|
vertical-align: top;
|
|
315
315
|
padding: 4px 6px;
|
|
316
|
-
`,
|
|
316
|
+
`,hd=o(Qc)`
|
|
317
317
|
white-space: nowrap;
|
|
318
|
-
`,
|
|
318
|
+
`,gd=o.span`
|
|
319
319
|
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
320
320
|
overflow-wrap: break-word;
|
|
321
321
|
word-break: break-word;
|
|
@@ -323,7 +323,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
323
323
|
/* Fallback for older browsers */
|
|
324
324
|
-ms-word-break: break-all;
|
|
325
325
|
font-size: 12px;
|
|
326
|
-
`,
|
|
326
|
+
`,md=({language:t,code:n,theme:o,flatten:r,pretty:a})=>{const{darkMode:s}=i(),l=o?Kt[o]:s?Kt.palenight:Kt.vsLight;let c="";if("json"===t){const e=Vr(n,{}),t=yi(e);c=bi(r?Io(t):t)}else c=n;return a&&"json"===t?e(fd,{darkMode:s,str:c}):e(Xt,{theme:l||(s?Kt.palenight:Kt.vsLight),language:t,code:c,children:({getLineProps:t,getTokenProps:n,tokens:o})=>e("pre",{children:o.map((o,r)=>e("div",{...t({line:o}),children:o.map((t,o)=>e(gd,{...n({token:t})},`line-${r}-token-${o}`))},`line-${r}`))})})},fd=({darkMode:n,str:o})=>{const r=i(),a=(n,o)=>{const i=new Array(n).fill(n=>t(ud,{...n,children:[e(pd,{}),e(pd,{})]}));return e(Pt,{children:i.map((t,n)=>e(t,{style:0===n?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${o}-${n}`))})};return e(Xt,{theme:n?Kt.palenight:Kt.vsLight,language:"json",code:o,children:({getLineProps:n,getTokenProps:o,tokens:i})=>e(cd,{children:e(dd,{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),c=n({line:l});return 1===l.length&&"property"===l[0].types[0]?t(Pt,{children:[a(2,s),t(ud,{...c,children:[e(pd,{children:e(hd,{children:l[0].content})}),e(pd,{})]})]},`line-${s}`):2===l.length?e(ud,{...c,children:l.map((n,i)=>{const{text:a,components:l}=((t,n)=>{const[o,...r]=t.split("@");return{text:o,components:r?.map((t,o)=>{if(!t.includes("="))return null;const[r,i]=t.split("=");switch(r){case"tooltip":return e(id,{withIcon:!0,text:i},`${r}-${i}-${o}`);case"status":if("none"===i)return e("div",{style:{width:16,height:16}},`${r}-${i}-${o}`);let t=Br(i,n);return t||(t=Br(Mn.Warning,n)),e(t,{},`${r}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(n.content,r),c=0===i;return e(pd,{children:t(Ir,{children:[e(Ir,{children:l}),e(gd,{$noWrap:c,...o({token:n}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},yd={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"},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:"#D06772",700:"#A2535B",800:"#733F44",900:"#452B2D",1e3:"#2E2022"},blue:{100:"#EBF0FA",200:"#D6E1F4",300:"#ADC3EA",400:"#84A4DF",500:"#5C86D5",600:"#3368CA",700:"#2D57A6",800:"#274782",900:"#21375E",1e3:"#1C273A"},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,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"}},bd={v2:yd.v2,darkMode:!0,colors:{...yd.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:yd.font_family},$d={v2:yd.v2,darkMode:!1,colors:{...yd.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:yd.font_family},vd=e=>e?bd:$d;var xd=Object.freeze({__proto__:null,baseTheme:yd,darkModeTheme:bd,getTheme:vd,lightModeTheme:$d});Vt('@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 Sd=({children:t})=>{const{darkMode:n}=nc();return e(s,{theme:vd(n),children:t})},wd={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"};var Ed=Object.freeze({__proto__:null,hex:wd});const Cd={in:{left:a`
|
|
327
327
|
from { transform: translateX(-100%); }
|
|
328
328
|
to { transform: translateX(0); }
|
|
329
329
|
`,right:a`
|
|
@@ -353,7 +353,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
353
353
|
`,center:a`
|
|
354
354
|
from { transform: translate(-50%, -50%); }
|
|
355
355
|
to { transform: translate(-50%, 100%); }
|
|
356
|
-
`}},
|
|
356
|
+
`}},Td={in:a`
|
|
357
357
|
from {
|
|
358
358
|
width: 0%;
|
|
359
359
|
}
|
|
@@ -367,7 +367,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
367
367
|
to {
|
|
368
368
|
width: 0%;
|
|
369
369
|
}
|
|
370
|
-
`},
|
|
370
|
+
`},Ad=a`
|
|
371
371
|
0% {
|
|
372
372
|
transform: scale(1);
|
|
373
373
|
opacity: 1;
|
|
@@ -376,14 +376,14 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
376
376
|
transform: scale(2);
|
|
377
377
|
opacity: 0;
|
|
378
378
|
}
|
|
379
|
-
`,
|
|
379
|
+
`,Id=a`
|
|
380
380
|
0% {
|
|
381
381
|
background-position: -500px 0;
|
|
382
382
|
}
|
|
383
383
|
100% {
|
|
384
384
|
background-position: 500px 0;
|
|
385
385
|
}
|
|
386
|
-
`,
|
|
386
|
+
`,kd={in:a`
|
|
387
387
|
from {
|
|
388
388
|
opacity: 0;
|
|
389
389
|
}
|
|
@@ -397,26 +397,26 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
397
397
|
to {
|
|
398
398
|
opacity: 0;
|
|
399
399
|
}
|
|
400
|
-
`};var
|
|
400
|
+
`};var Nd=Object.freeze({__proto__:null,fade:kd,ping:Ad,progress:Td,shimmer:Id,slide:Cd});const Dd=o.div`
|
|
401
401
|
width: ${({$orientation:e,$thickness:t,$length:n})=>"vertical"===e?`${t}px`:n||"100%"};
|
|
402
402
|
height: ${({$orientation:e,$thickness:t,$length:n})=>"horizontal"===e?`${t}px`:n||"100%"};
|
|
403
403
|
margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
|
|
404
|
-
background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+
|
|
404
|
+
background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+wd["050"]};
|
|
405
405
|
opacity: ${({$opacity:e})=>e||1};
|
|
406
|
-
`,
|
|
406
|
+
`,Od=({orientation:t="horizontal",type:n,thickness:o=1,length:r,margin:i,opacity:a})=>e(Dd,{$orientation:t,$type:n,$thickness:o,$length:r,$margin:i,$opacity:a}),Rd={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 _d(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 Rd[o]?{value:t,unit:o}:{value:t,unit:"px"}}function Ld(e){const t=_d(e);return`${t.value}${t.unit}`}const Pd=((e,t,n)=>{const o=`react-spinners-${e}-${n}`;if("undefined"==typeof window||!window.document)return o;const r=document.createElement("style");document.head.appendChild(r);const i=r.sheet,a=`\n @keyframes ${o} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),o})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),Fd=({loading:n=!0,color:o,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),u=o||d.text.secondary;if(!n)return null;const{value:p}=_d(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:Ld(1.5),height:Ld(4),borderRadius:Ld(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${Pd} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return t("span",{style:f,...c,children:[e("span",{style:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...y(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...y(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...y(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),e("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...y(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},Md=a`
|
|
407
407
|
0% {
|
|
408
408
|
background-position: 0% 50%;
|
|
409
409
|
}
|
|
410
410
|
100% {
|
|
411
411
|
background-position: 100% 50%;
|
|
412
412
|
}
|
|
413
|
-
`,
|
|
413
|
+
`,zd=o(Qc)`
|
|
414
414
|
background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
415
415
|
background-size: 250% 100%; /* Expand background to allow movement */
|
|
416
416
|
background-clip: text;
|
|
417
417
|
color: transparent;
|
|
418
|
-
animation: ${
|
|
419
|
-
`,
|
|
418
|
+
animation: ${Md} 1s reverse linear infinite;
|
|
419
|
+
`,Ud=({children:t="Loading...",textColor:n,stripColor:o,...r})=>{const a=i(),s=n||a.v2.colors.white[500],l=o||a.v2.colors.black[500];return e(zd,{$textColor:s,$stripColor:l,...r,children:t})};var Bd,jd;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(Bd||(Bd={})),function(e){e.S="small",e.M="medium",e.L="large"}(jd||(jd={}));const Wd=o.button`
|
|
420
420
|
display: flex;
|
|
421
421
|
align-items: center;
|
|
422
422
|
justify-content: center;
|
|
@@ -426,14 +426,14 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
426
426
|
`}
|
|
427
427
|
border: none;
|
|
428
428
|
border-radius: 6px;
|
|
429
|
-
${({$size:e,$hasLabel:t})=>e===
|
|
429
|
+
${({$size:e,$hasLabel:t})=>e===jd.S?r`
|
|
430
430
|
height: 32px;
|
|
431
431
|
${t?r`
|
|
432
432
|
padding: 8px 16px;
|
|
433
433
|
`:r`
|
|
434
434
|
width: 32px;
|
|
435
435
|
`}
|
|
436
|
-
`:e===
|
|
436
|
+
`:e===jd.M?r`
|
|
437
437
|
height: 38px;
|
|
438
438
|
${t?r`
|
|
439
439
|
padding: 8px 18px;
|
|
@@ -458,7 +458,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
458
458
|
${({$withShadow:e})=>e?r`
|
|
459
459
|
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
460
460
|
`:""}
|
|
461
|
-
${({$variant:e})=>e===
|
|
461
|
+
${({$variant:e})=>e===Bd.Primary?r`
|
|
462
462
|
background-color: ${({theme:e})=>e.v2.colors.purple[500]};
|
|
463
463
|
&:hover {
|
|
464
464
|
background-color: ${({theme:e})=>e.v2.colors.purple[600]};
|
|
@@ -466,7 +466,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
466
466
|
&:active {
|
|
467
467
|
background-color: ${({theme:e})=>e.v2.colors.purple[700]};
|
|
468
468
|
}
|
|
469
|
-
`:e===
|
|
469
|
+
`:e===Bd.Secondary?r`
|
|
470
470
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
471
471
|
&:hover {
|
|
472
472
|
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
@@ -474,7 +474,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
474
474
|
&:active {
|
|
475
475
|
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
476
476
|
}
|
|
477
|
-
`:e===
|
|
477
|
+
`:e===Bd.Text?r`
|
|
478
478
|
background-color: transparent;
|
|
479
479
|
&:hover {
|
|
480
480
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
@@ -484,7 +484,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
484
484
|
}
|
|
485
485
|
`:""}
|
|
486
486
|
}
|
|
487
|
-
`,
|
|
487
|
+
`,Hd=Lt(({"data-id":o,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=Bd.Primary,size:u=jd.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:y,onClick:b,...$},v)=>{const x=i(),S=p||(u===jd.L?18:16),w=u===jd.L?on.S:on.XS,E=f||(y?x.v2.colors.grey[400]:x.v2.colors.white[500]),[C,T]=Ft(!1),A=Ut(async e=>{e.stopPropagation(),T(!0),await(b?.(e)),T(!1)},[b]);return e(Wd,{ref:v,"data-id":o,$variant:d,$size:u,$fullWidth:g,$withShadow:m,$hasLabel:!!r,disabled:y,onClick:h||C?void 0:A,...$,children:e(id,{text:a,withIcon:!s,children:h||C?r?e(Ud,{size:x.v2.text.size[w],textColor:E}):e(Fd,{}):t(n,{children:[l&&e(l,{size:S,fill:E}),r?e(cn,{size:w,weight:500,color:E,nowrap:!0,children:r}):null,c&&e(c,{size:S,fill:E})]})})})});Hd.displayName=Hd.name;const Gd=({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 t("div",{style:r.container,children:[e("h2",{children:"Something went wrong!"}),e("pre",{style:r.errorMessage,children:n?.message||"Unknown Error"}),t("details",{style:r.errorStackWrapper,children:[e("summary",{children:"Stack Trace"}),e("pre",{style:r.errorStack,children:n?.stack||"Unknown Stack"})]}),e("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),e(Hd,{variant:Bd.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},Xd=({children:t})=>e(qt,{FallbackComponent:({error:t,...n})=>e(Sd,{children:e(Gd,{...n,error:t})}),children:t}),Kd=o.button`
|
|
488
488
|
position: relative;
|
|
489
489
|
width: ${({$size:e})=>e}px;
|
|
490
490
|
height: ${({$size:e})=>e}px;
|
|
@@ -496,9 +496,9 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
496
496
|
justify-content: center;
|
|
497
497
|
cursor: pointer;
|
|
498
498
|
&:hover {
|
|
499
|
-
background-color: ${({theme:e,$backgroundColor:t})=>t?t+
|
|
499
|
+
background-color: ${({theme:e,$backgroundColor:t})=>t?t+wd["070"]:e.colors.dropdown_bg_2};
|
|
500
500
|
}
|
|
501
|
-
`,
|
|
501
|
+
`,Vd=o.div`
|
|
502
502
|
position: absolute;
|
|
503
503
|
top: ${({$size:e})=>e/5}px;
|
|
504
504
|
right: ${({$size:e})=>e/5}px;
|
|
@@ -513,17 +513,17 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
513
513
|
inset: 0;
|
|
514
514
|
border-radius: 100%;
|
|
515
515
|
background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
|
|
516
|
-
animation: ${
|
|
516
|
+
animation: ${Ad} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
517
517
|
}
|
|
518
|
-
`,
|
|
518
|
+
`,Jd=({children:n,onClick:o,tooltip:r,size:i=36,withPing:a,pingColor:s,withBorder:l,backgroundColor:c,...d})=>e(id,{text:r,children:t(Kd,{$size:i,$withBorder:l,$backgroundColor:c,onClick:o,...d,children:[a&&e(Vd,{$size:i,$color:s}),n]})}),Yd=({src:t="",alt:n="",size:o=16})=>{const[r,i]=Ft(!1);return t&&!r?e("img",{src:t,alt:n,width:o,height:o,onError:()=>i(!0)}):e(f,{size:o})},qd=o.div`
|
|
519
519
|
display: flex;
|
|
520
520
|
align-items: center;
|
|
521
521
|
justify-content: center;
|
|
522
522
|
width: ${({$size:e})=>e}px;
|
|
523
523
|
height: ${({$size:e})=>e}px;
|
|
524
524
|
border-radius: 8px;
|
|
525
|
-
background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+
|
|
526
|
-
`,
|
|
525
|
+
background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+wd["030"]} 100%)`}};
|
|
526
|
+
`,Qd=({icon:t,src:n="",alt:o="",status:r,size:i=36})=>e(qd,{$status:r,$size:i,children:n?e(Yd,{src:n,alt:o,size:i-12}):e(t||f,{size:i-12})}),Zd=o.div`
|
|
527
527
|
position: relative;
|
|
528
528
|
display: flex;
|
|
529
529
|
flex-wrap: wrap;
|
|
@@ -531,7 +531,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
531
531
|
justify-content: center;
|
|
532
532
|
width: ${({$size:e})=>e}px;
|
|
533
533
|
height: ${({$size:e})=>e}px;
|
|
534
|
-
`,
|
|
534
|
+
`,eu=o.div`
|
|
535
535
|
position: absolute;
|
|
536
536
|
top: ${({$top:e})=>e}px;
|
|
537
537
|
left: ${({$left:e})=>e}px;
|
|
@@ -542,17 +542,17 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
542
542
|
width: ${({$size:e})=>e}px;
|
|
543
543
|
height: ${({$size:e})=>e}px;
|
|
544
544
|
border-radius: 100%;
|
|
545
|
-
border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+
|
|
546
|
-
background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+
|
|
547
|
-
`,
|
|
545
|
+
border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+wd["030"]};
|
|
546
|
+
background: ${({$status:e,theme:t})=>{const n=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${n} 0%, ${n+wd["030"]} 100%)`}};
|
|
547
|
+
`,tu=({icons:n=[],iconSrcs:o=[],status:r,size:a=36,id:s})=>{const l=i(),c=1===n.length||1===o.length?a-12:a/2.7;if(o.length>0)return e(tu,{icons:o.map(t=>()=>e(Yd,{src:t,size:c})),status:r,size:a,id:s});if(1===n.length)return e(Qd,{icon:n[0],status:r,size:a});const d=e=>n.length<=2?.5*c:0===e||1===e?0:1.15*c,u=e=>0===e?0:1===e?1.15*c:1.15*c*.5;return e(Zd,{$status:r,$size:a,children:n.map((o,i)=>i>2?null:e(eu,{$status:r,$size:1.5*c,$top:d(i),$left:u(i),$zIndex:i+1,children:2===i&&n.length>3?t(Qc,{family:"secondary",color:l.text.dark_grey,size:.8*c,children:["+",n.length-2]}):e(o,{size:c})},`icon-${s}-${i}`))})},nu=o.div`
|
|
548
548
|
position: relative;
|
|
549
549
|
&.animated {
|
|
550
550
|
overflow: hidden;
|
|
551
551
|
padding-bottom: 1px;
|
|
552
552
|
border-radius: 32px;
|
|
553
|
-
animation: ${({$isLeaving:e})=>e?
|
|
553
|
+
animation: ${({$isLeaving:e})=>e?Cd.out.bottom:Cd.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
554
554
|
}
|
|
555
|
-
`,
|
|
555
|
+
`,ou=o.div`
|
|
556
556
|
position: absolute;
|
|
557
557
|
bottom: -1px;
|
|
558
558
|
left: 0;
|
|
@@ -561,8 +561,8 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
561
561
|
height: 100%;
|
|
562
562
|
border-radius: 32px;
|
|
563
563
|
background-color: ${({$type:e,theme:t})=>t.text[e]};
|
|
564
|
-
animation: ${
|
|
565
|
-
`,
|
|
564
|
+
animation: ${Td.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
565
|
+
`,ru=o.div`
|
|
566
566
|
display: flex;
|
|
567
567
|
align-items: center;
|
|
568
568
|
flex: 1;
|
|
@@ -570,20 +570,20 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
570
570
|
padding: 0 12px;
|
|
571
571
|
border-radius: 32px;
|
|
572
572
|
background-color: ${({$type:e,theme:t})=>t.colors[e]};
|
|
573
|
-
`,
|
|
573
|
+
`,iu=o.div`
|
|
574
574
|
display: flex;
|
|
575
575
|
align-items: center;
|
|
576
576
|
margin: 0 auto 0 0;
|
|
577
577
|
padding: 8px 0;
|
|
578
578
|
max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
|
|
579
579
|
min-height: 12px;
|
|
580
|
-
`,
|
|
580
|
+
`,au=o(Qc)`
|
|
581
581
|
font-size: 14px;
|
|
582
582
|
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
583
|
-
`,
|
|
583
|
+
`,su=o(Qc)`
|
|
584
584
|
color: ${({$type:e,theme:t})=>t.text[e]};
|
|
585
585
|
font-size: 12px;
|
|
586
|
-
`,
|
|
586
|
+
`,lu=o(Ir)``,cu=o(Qc)`
|
|
587
587
|
text-transform: uppercase;
|
|
588
588
|
text-decoration: underline;
|
|
589
589
|
font-size: 12px;
|
|
@@ -594,7 +594,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
594
594
|
transform: scale(1.1);
|
|
595
595
|
transition: transform 0.3s;
|
|
596
596
|
}
|
|
597
|
-
`,
|
|
597
|
+
`,du=({type:n,icon:o,title:r,message:a,action:s,onClose:l,duration:c=5e3,overrideMaxWidth:d,style:u})=>{const p=i(),[h,g]=Ft(!1),m=Bt(null),f=Bt(null),y=e=>{l&&(g(!0),l({asSeen:e?.asSeen}))};Mt(()=>(m.current=setTimeout(()=>y({asSeen:!1}),c),()=>{m.current&&clearTimeout(m.current)}),[c]);const b=o||Br(n,p);return t(nu,{className:l?"animated":"",$duration:c,$isLeaving:h,onMouseEnter:()=>{m.current&&clearTimeout(m.current),f.current&&(f.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(f.current){const e=f.current.offsetWidth/f.current.parentElement.offsetWidth*c;m.current=setTimeout(()=>y({asSeen:!1}),e),f.current.style.animationPlayState="running"}},children:[t(ru,{"data-id":"toast",$type:n,style:u,children:[e(b,{fill:p.text[n]}),t(iu,{$withAction:!!s,$overrideMaxWidth:d,children:[r&&e(au,{$type:n,children:r}),r&&a&&e(Od,{orientation:"vertical",type:n}),a&&e(su,{$type:n,children:a})]}),(!!s||!!l)&&t(lu,{children:[s&&e(cu,{"data-id":"toast-action",onClick:s.onClick,children:s.label}),l&&e(Jd,{"data-id":"toast-close",onClick:()=>y({asSeen:!0}),children:e(xt,{size:12})})]})]}),l&&e(ou,{ref:f,$duration:c,$type:n})]})},uu=o(Qc)`
|
|
598
598
|
max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
|
|
599
599
|
white-space: nowrap;
|
|
600
600
|
overflow-x: auto;
|
|
@@ -604,7 +604,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
604
604
|
content: '';
|
|
605
605
|
display: block;
|
|
606
606
|
}
|
|
607
|
-
`,
|
|
607
|
+
`,pu=({maxWidth:n,text:o,textSize:r=16,textColor:i})=>{const[a,s]=Ft(!1),l=Bt(null);return Mt(()=>{if(l.current){const{clientWidth:e}=l.current;s(e<1.05*(n-r)&&e>.95*(n-r))}},[n,r,o]),t(Ir,{$gap:0,children:[o&&e(id,{text:a?o:void 0,children:e(uu,{ref:l,$maxWidth:n-r,size:r,color:i,children:o})}),a&&e(uu,{$maxWidth:r,size:r,color:i,children:"..."})]})},hu=o.div`
|
|
608
608
|
width: 100%;
|
|
609
609
|
height: 100%;
|
|
610
610
|
|
|
@@ -612,33 +612,33 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
612
612
|
animation: none !important;
|
|
613
613
|
transition: none !important;
|
|
614
614
|
}
|
|
615
|
-
`,
|
|
615
|
+
`,gu=({width:t="100%",height:n="100%",gap:o=0,elements:r,noAnimation:i=!1,onTopIndexChange:a})=>{const s=Bt(null),l=zt(()=>o?r.map((t,n)=>e("div",{style:{paddingBottom:o},children:t},`scroll-y-item-${n}`)):r,[r,o]),c=Ut(e=>{if(!a||!s.current)return;const t=s.current.findItemIndex(e);a(t)},[a]),d=e(en,{ref:s,style:{width:t,height:n},onScroll:a?c:void 0,children:l});return i?e(hu,{children:d}):d},mu=o.div`
|
|
616
616
|
display: flex;
|
|
617
617
|
flex-direction: column;
|
|
618
618
|
gap: 16px;
|
|
619
619
|
${({$maxWidth:e})=>e&&`max-width: ${e};`}
|
|
620
|
-
|
|
620
|
+
`,fu=o.div`
|
|
621
621
|
display: flex;
|
|
622
622
|
align-items: center;
|
|
623
623
|
gap: 16px;
|
|
624
|
-
`,
|
|
624
|
+
`,yu=o.div`
|
|
625
625
|
width: 50px;
|
|
626
626
|
height: 50px;
|
|
627
627
|
border-radius: 8px;
|
|
628
628
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
629
629
|
background-size: 200% 100%;
|
|
630
|
-
animation: ${
|
|
631
|
-
`,
|
|
630
|
+
animation: ${Id} 10s infinite linear;
|
|
631
|
+
`,bu=o(kr)`
|
|
632
632
|
flex: 1;
|
|
633
633
|
gap: 12px;
|
|
634
|
-
|
|
634
|
+
`,$u=o.div`
|
|
635
635
|
width: ${({$width:e})=>e};
|
|
636
636
|
height: 16px;
|
|
637
637
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
638
638
|
background-size: 200% 100%;
|
|
639
|
-
animation: ${
|
|
639
|
+
animation: ${Id} 1.5s infinite linear;
|
|
640
640
|
border-radius: 4px;
|
|
641
|
-
`,
|
|
641
|
+
`,vu=({size:n=5,maxWidth:o})=>e(mu,{$maxWidth:o,children:[...Array(n)].map((n,o)=>t(fu,{children:[e(yu,{}),t(bu,{children:[e($u,{$width:"80%"}),e($u,{$width:"100%"})]})]},o))}),xu=o.div`
|
|
642
642
|
display: flex;
|
|
643
643
|
align-items: center;
|
|
644
644
|
justify-content: center;
|
|
@@ -648,17 +648,17 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
648
648
|
padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
|
|
649
649
|
border-radius: 100px;
|
|
650
650
|
background-color: ${({$backgroundColor:e})=>e};
|
|
651
|
-
`,
|
|
651
|
+
`,Su=({label:n,leftIcon:o,rightIcon:r,tooltip:a,status:s=Bn.Unknown,useSecondaryTone:l=!1,invertColors:c=!1,textSize:d,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=i(),f=n?.toString(),y=Un.Loading===s,b=s?[Bn.Disabled,Un.Disabled,Un.Loading].includes(s)?ir(m,s,c?"400":"700"):[Bn.Unknown].includes(s)?ir(m,s,"600"):ir(m,s,c?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],$=u||(c&&![Bn.Unknown].includes(s)?b:[Bn.Disabled,Un.Disabled,Un.Loading].includes(s)?m.v2.colors.grey[400]:[Mn.Error,Mn.Warning,Mn.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),v=p||(c&&![Bn.Unknown].includes(s)?[Bn.Disabled,Un.Disabled,Un.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:b);return e(id,{text:a,fullWidth:g,children:t(xu,{$backgroundColor:v,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!y||f&&o?o?e(o,{fill:$,size:d?m.v2.text.size[d]+2:14}):null:e(Ur,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?y?e(Ur,{withGradient:!0,title:f,titleSize:d||on.XXS}):e(cn,{color:$,size:d||on.XXS,nowrap:!0,children:f}):null,r&&e(r,{fill:$,size:d?m.v2.text.size[d]+2:14})]})})},wu=o.span`
|
|
652
652
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
653
653
|
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
654
654
|
font-weight: 400;
|
|
655
655
|
color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
|
|
656
|
-
`,
|
|
656
|
+
`,Eu=o.span`
|
|
657
657
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
658
658
|
font-size: 14px;
|
|
659
659
|
font-weight: 400;
|
|
660
660
|
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
661
|
-
`,
|
|
661
|
+
`,Cu=({label:n,tooltip:o,required:r,badge:i,width:a,smallAndDark:s})=>n||o||r?t(Ir,{$width:a,$justifyContent:"space-between",children:[n&&e(wu,{$smallAndDark:s,children:n}),t(Ir,{$gap:4,children:[i&&e(Su,{...i,textSize:on.XXXS}),r&&e(Eu,{children:"*"}),o&&e(id,{text:o,withIcon:!0})]})]}):null,Tu=({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=e(nt,{size:12,fill:s});return n||o||r?t(Ir,{$alignItems:"center",children:[l&&e(kr,{children:l}),e(cn,{size:on.XXXS,weight:400,color:s,children:n||o||r})]}):null},Au=o.div`
|
|
662
662
|
padding: ${({$small:e})=>e?"4px":"6px 12px"};
|
|
663
663
|
|
|
664
664
|
display: flex;
|
|
@@ -677,7 +677,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
677
677
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
678
678
|
}
|
|
679
679
|
`}
|
|
680
|
-
`,
|
|
680
|
+
`,Iu=o.input`
|
|
681
681
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
682
682
|
width: ${({$width:e})=>e||"unset"};
|
|
683
683
|
|
|
@@ -709,12 +709,12 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
709
709
|
pointer-events: none;
|
|
710
710
|
user-select: none;
|
|
711
711
|
}
|
|
712
|
-
`,
|
|
712
|
+
`,ku=o.div`
|
|
713
713
|
display: flex;
|
|
714
714
|
align-items: center;
|
|
715
715
|
justify-content: center;
|
|
716
716
|
cursor: pointer;
|
|
717
|
-
`,
|
|
717
|
+
`,Nu=({label:n,required:o,tooltip:r,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:u,helpMessage:p,type:h=Fn.Text,name:g,value:m,onChange:f,disabled:y,maxWidth:b,width:$,small:v=!1,onClick:x,...S})=>{const w=i(),E=h===Fn.Password,[C,T]=Ft(!1),[A,I]=Ft(null),k=c||!!d||!!A,N=m?w.v2.colors.white[500]:y?w.v2.colors.grey[400]:w.v2.colors.silver[200],D=v?14:18,O=Bt(null),R=Fc(O,{deps:[m]}),_=S.readOnly&&R&&null!=m&&""!==m?String(m):"";return t(kr,{$width:$,$gap:6,children:[e(Cu,{label:n,tooltip:r,required:o,badge:a}),e(Au,{$small:v,$disabled:y,$error:k,$clickable:!!x&&!y,onClick:y?void 0:x,children:t(id,{text:_,fullWidth:!0,keepAlive:!0,children:[s?e(s,{size:D,fill:N}):null,e(Iu,{"data-id":g,type:C||h===Fn.Number||h===Fn.Decimal?Fn.Text:h,name:g,value:m,onChange:e=>{e.stopPropagation();const t=e.target.value;if(h===Fn.Number||h===Fn.Decimal){const n=h===Fn.Number?hi(t):pi(t),o=null!=S.min?Number(S.min):void 0,r=null!=S.max?Number(S.max):void 0,i=h===Fn.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))}if(e.target.value=a,t&&t!==n)I("Please enter a valid number");else if(s){I(`Value must be ${null!=o&&null!=r?`between ${o} and ${r}`:null!=r?`at most ${r}`:`at least ${o}`}`)}else I(null)}f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:y,$maxWidth:b,$width:$,$small:v,...S,ref:O}),E?e(ku,{onClick:()=>T(e=>!e),children:e(C?St:wt,{size:D,fill:N})}):l?e(l,{size:D,fill:N}):null]})}),e(Tu,{errorMessage:A||d,warnMessage:u,helpMessage:p})]})};var Du,Ou;!function(e){e.S="s",e.L="l"}(Du||(Du={})),function(e){e.Filled="filled",e.Underline="underline"}(Ou||(Ou={}));const Ru=o.div`
|
|
718
718
|
display: flex;
|
|
719
719
|
align-items: center;
|
|
720
720
|
gap: 2px;
|
|
@@ -723,20 +723,20 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
723
723
|
border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
|
|
724
724
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
725
725
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
726
|
-
`,
|
|
726
|
+
`,_u=o.button`
|
|
727
727
|
flex: 1;
|
|
728
728
|
display: flex;
|
|
729
729
|
align-items: center;
|
|
730
730
|
justify-content: center;
|
|
731
731
|
gap: 8px;
|
|
732
|
-
padding: ${({$size:e})=>e===
|
|
732
|
+
padding: ${({$size:e})=>e===Du.S?"4px 8px":"8px 16px"};
|
|
733
733
|
border-radius: 6px;
|
|
734
734
|
border: 1px solid ${({$isSelected:e,$selectedBorderColor:t})=>e&&t?t:"transparent"};
|
|
735
735
|
box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
|
|
736
736
|
|
|
737
737
|
${({$disabled:e,$isSelected:t,$selectedBgColor:n,theme:o})=>e?r`
|
|
738
738
|
cursor: not-allowed;
|
|
739
|
-
background-color: ${t?(n||o.v2.colors.black[500])+
|
|
739
|
+
background-color: ${t?(n||o.v2.colors.black[500])+wd["040"]:"transparent"};
|
|
740
740
|
`:r`
|
|
741
741
|
cursor: pointer;
|
|
742
742
|
background-color: ${t?n||o.v2.colors.black[500]:"transparent"};
|
|
@@ -744,11 +744,11 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
744
744
|
background-color: ${t?n||o.v2.colors.black[500]:o.v2.colors.silver[800]};
|
|
745
745
|
}
|
|
746
746
|
`}
|
|
747
|
-
`,
|
|
747
|
+
`,Lu=o.div`
|
|
748
748
|
display: flex;
|
|
749
749
|
align-items: stretch;
|
|
750
750
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
751
|
-
`,
|
|
751
|
+
`,Pu=o.button`
|
|
752
752
|
display: flex;
|
|
753
753
|
height: 34px;
|
|
754
754
|
padding: 8px 12px 8px 16px;
|
|
@@ -767,7 +767,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
767
767
|
&:hover {
|
|
768
768
|
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
769
769
|
}
|
|
770
|
-
`,
|
|
770
|
+
`,Fu=({"data-id":o,size:r=Du.S,variant:a=Ou.Filled,options:s=[],selected:l,setSelected:c,disabled:d,fullWidth:u=!1})=>{const p=i(),h=a===Ou.Underline,g=h?Pu:_u;return e(h?Lu:Ru,{"data-id":o,$fullWidth:u,children:s.map(({value:o,label:i,icon:a,badge:s,tooltip:u,selectedBgColor:m,selectedBorderColor:f,disabled:y},b)=>{const $=l===o,v=y||d,x=v?p.v2.colors.grey[400]:h||$?p.v2.colors.white[500]:p.v2.colors.grey[300],S=r===Du.S?on.XXS:on.XS,w=$?500:400,E=t(n,{children:[a&&e(a,{fill:x}),i&&e(cn,{size:S,weight:w,color:x,nowrap:!0,children:i}),s&&e(Su,{...s})]});return e(g,{onClick:()=>!v&&c(o),$disabled:v,$isSelected:$,$size:r,...!h&&{$selectedBgColor:m,$selectedBorderColor:f},children:u?e(id,{text:u,withIcon:!0,children:E}):E},`segment-${b}-${i}-${o}`)})})},Mu=o.div`
|
|
771
771
|
box-sizing: border-box !important;
|
|
772
772
|
width: ${({$width:e})=>e??"fit-content"};
|
|
773
773
|
padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
|
|
@@ -781,7 +781,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
781
781
|
border: none;
|
|
782
782
|
border-radius: 6px;
|
|
783
783
|
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}};
|
|
784
|
-
`,
|
|
784
|
+
`,zu=o.input`
|
|
785
785
|
min-width: 0;
|
|
786
786
|
flex: 1;
|
|
787
787
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -798,7 +798,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
798
798
|
overflow: hidden;
|
|
799
799
|
text-overflow: ellipsis;
|
|
800
800
|
white-space: nowrap;
|
|
801
|
-
`,
|
|
801
|
+
`,Uu=({"data-id":n,value:o,onChange:r,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=i(),[g,m]=Ft(!1),[f,y]=Ft(!1),[b,$]=Ft(!1),v=g?h.v2.colors.white[500]:h.v2.colors.silver[200],x=!!d?.options?.length,S=zt(()=>{if(x)return d?.options.find(e=>e.value===d.selected)?.label},[x,d?.options,d?.selected]),w=zt(()=>l||(x&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,x,S]);return t(Mu,{$width:c,$withSegment:x,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!b,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[e(Et,{size:18,fill:v}),e(zu,{"data-id":n??"search",name:"search",type:"text",placeholder:w,value:o,onChange:e=>{e.stopPropagation(),r(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:v}),x&&e("div",{style:{flexShrink:0},onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1),children:e(Fu,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected})})]})},Bu=o.div`
|
|
802
802
|
display: flex;
|
|
803
803
|
align-items: center;
|
|
804
804
|
justify-content: center;
|
|
@@ -807,31 +807,31 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
807
807
|
padding: 8px;
|
|
808
808
|
border-radius: 100%;
|
|
809
809
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
810
|
-
`,
|
|
810
|
+
`,ju=({icon:n=xt,hideIcon:o=!1,title:r="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(kr,{$gap:12,$alignItems:"center",children:[!o&&e(Bu,{children:e(n,{size:32,fill:l})}),t(kr,{$gap:4,$alignItems:"center",children:[e(cn,{size:on.S,align:"center",children:r}),a&&e(cn,{size:on.XXS,align:"center",color:l,children:a})]}),s&&e(Hd,{variant:Bd.Secondary,...s})]})};var Wu;!function(e){e.S="small",e.L="large"}(Wu||(Wu={}));const Hu=o.div`
|
|
811
811
|
width: fit-content;
|
|
812
812
|
display: flex;
|
|
813
813
|
align-items: center;
|
|
814
814
|
gap: 8px;
|
|
815
815
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
816
|
-
`,
|
|
817
|
-
width: ${({$size:e})=>e===
|
|
818
|
-
height: ${({$size:e})=>e===
|
|
816
|
+
`,Gu=o.div`
|
|
817
|
+
width: ${({$size:e})=>e===Wu.S?"16px":"20px"};
|
|
818
|
+
height: ${({$size:e})=>e===Wu.S?"16px":"20px"};
|
|
819
819
|
display: flex;
|
|
820
820
|
align-items: center;
|
|
821
821
|
justify-content: center;
|
|
822
822
|
border-radius: 4px;
|
|
823
823
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
824
824
|
background-color: ${({$backgroundColor:e})=>e};
|
|
825
|
-
`,
|
|
825
|
+
`,Xu=({name:n,label:o,tooltip:r,badge:a,size:s=Wu.L,disabled:l,partiallyChecked:c,value:d,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=i(),[f,y]=Ft(!1),b=c||d,$=s===Wu.S?12:16,v=l?m.v2.colors.grey[400]:m.v2.colors.white[500],x=b?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],S=l?m.v2.colors.grey[600]:b?m.v2.colors.purple[500]:m.v2.colors.silver[900];return t(kr,{$gap:4,children:[t(Ir,{$justifyContent:"space-between",children:[t(Hu,{"data-id":n||"checkbox"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),l||u(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[e(Gu,{$size:s,$borderColor:x,$backgroundColor:S,children:c?e(Ct,{size:$,fill:v}):d?e(yt,{size:$,fill:v}):null}),o&&e(cn,{size:s===Wu.S?on.XXS:on.XS,nowrap:!0,children:o})]}),e(Cu,{tooltip:r,badge:a})]}),e(Tu,{errorMessage:p,warnMessage:h,helpMessage:g})]})},Ku=o.div`
|
|
826
826
|
display: flex;
|
|
827
827
|
flex-direction: ${({$direction:e})=>e===Tn.Horizontal?"row":"column"};
|
|
828
828
|
gap: ${({$direction:e})=>e===Tn.Horizontal?16:8}px;
|
|
829
|
-
`,
|
|
829
|
+
`,Vu=({direction:n=Tn.Vertical,title:o,size:r,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=r===Wu.S?on.XXS:on.XS,u=zt(()=>s.every(e=>l[e.id]),[s,l]),p=zt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(n=>{const o={...n};return e?o[e]=t:s.forEach(e=>o[e.id]=t),o})};return t(Ku,{$direction:n,children:[o&&a?e(Xu,{label:o,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):o&&!a?e(cn,{size:d,children:o}):null,s.map(t=>e(Xu,{...t,value:l[t.id],onChange:e=>h(t.id,e),disabled:i,size:r},`${o}-checkbox-${t.id}`))]})};var Ju,Yu;!function(e){e.Left="left",e.Right="right"}(Ju||(Ju={})),function(e){e.Top="top",e.Bottom="bottom"}(Yu||(Yu={}));const qu=o.div`
|
|
830
830
|
position: relative;
|
|
831
831
|
display: flex;
|
|
832
832
|
flex-direction: column;
|
|
833
833
|
gap: 4px;
|
|
834
|
-
`,
|
|
834
|
+
`,Qu=o.div`
|
|
835
835
|
position: fixed;
|
|
836
836
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
837
837
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -849,7 +849,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
849
849
|
border-radius: 6px;
|
|
850
850
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
851
851
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
852
|
-
`,
|
|
852
|
+
`,Zu=o.div`
|
|
853
853
|
display: flex;
|
|
854
854
|
flex-direction: column;
|
|
855
855
|
gap: 0;
|
|
@@ -857,7 +857,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
857
857
|
width: 100%;
|
|
858
858
|
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
859
859
|
overflow-y: auto;
|
|
860
|
-
`,
|
|
860
|
+
`,ep=o.div`
|
|
861
861
|
display: flex;
|
|
862
862
|
align-items: center;
|
|
863
863
|
gap: 8px;
|
|
@@ -873,7 +873,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
873
873
|
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
874
874
|
}
|
|
875
875
|
`}
|
|
876
|
-
`,
|
|
876
|
+
`,tp=({defaultOpen:n,open:o,onOpenChange:r,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:y,isLoading:b,emptyMessage:$,children:v})=>{const x=i(),S=void 0!==o,w=!!f||!!y||!!v,[E,C]=Ft(n??!w),T=S?o:E,A=Ut(e=>{S||C(e),r?.(e)},[S,r]),[I,k]=Ft({x:a||Ju.Left,y:s||Yu.Bottom}),N=Bt(null);Pc(N,()=>A(!1));const[D,O]=Ft({}),R=Ut((e,t)=>{const n=N.current?.getBoundingClientRect();if(!n)return;const o=w?8:0;O({top:t===Yu.Bottom?w?n.bottom+o:n.top:void 0,bottom:t===Yu.Top?w?window.innerHeight-n.top+o:window.innerHeight-n.bottom:void 0,left:e===Ju.Left?n.left:void 0,right:e===Ju.Right?window.innerWidth-n.right:void 0,width:g?n.width:void 0})},[w,g]),_=e=>{const t=!T;if(A(t),!t)return;const n={x:a||(e.clientX>window.innerWidth/2?Ju.Right:Ju.Left),y:s||(e.clientY>window.innerHeight/2?Yu.Top:Yu.Bottom)};k(n),R(n.x,n.y)};jt(()=>{T&&R(I.x,I.y)},[T,I.x,I.y,R]);const L=e=>{d(p?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),w&&!p&&A(!1)},[P,F]=Ft(""),M=zt(()=>P?l.filter(e=>e?.label?.toLowerCase().includes(P.toLowerCase())):l,[l.length,P]);return t(qu,{ref:N,children:[u&&e(Cu,{label:u}),f&&e(Hd,{...f,fullWidth:g,rightIcon:T?Tt:At,onClick:_}),y&&e(Hd,{variant:Bd.Text,size:jd.S,...y,onClick:_}),"function"==typeof v?v({ChevronIcon:T?Tt:At,handleClick:_}):v,T&&Zt(t(Qu,{$coords:D,"data-ignore-outside-click":"true",children:[h&&e(Uu,{value:P,onChange:F,width:"100%"}),b?e(Ur,{withSpinner:!0,title:"Loading...",titleSize:on.XS}):M.length?e(Zu,{$maxHeight:m,children:M.map(n=>{if(!n)return null;const{id:o,label:r,icon:i,withCheckbox:a}=n,s=c.includes(o);return t(ep,{"data-id":`option-${o}`,$selected:s&&!a,onClick:()=>L(o),children:[a&&e(Xu,{value:s,onChange:()=>L(o)}),i&&e(i,{size:14,fill:n.color||x.v2.colors.white[500]}),e(cn,{size:on.XS,nowrap:!0,color:n.color||rn.Primary,children:r})]},o)})}):e(Ar,{$padding:"6px 0",children:e(ju,{hideIcon:!0,title:"No results",subTitle:$})}),p&&!!M.length&&e(Hd,{label:"Done",onClick:()=>A(!1)})]}),document.body)]})},np=t=>{const{"data-id":n,options:o,placeholder:r="Search...",isLoading:i}=t,a=!0===t.multiple,[s,l]=Ft(""),[c,d]=Ft(!1),u=zt(()=>a?t.value:t.value?[t.value]:[],[a,t.value]),p=zt(()=>{if(a){const e=u.length;return e?1===e?o.find(e=>e.id===u[0])?.label??"":`${e} selected`:""}return t.value?o.find(e=>e.id===t.value)?.label??"":""},[a,t,o,u]),h=c?s:p,g=zt(()=>{const e=a?o.map(e=>({...e,withCheckbox:!0})):o;if(!s)return e;const t=s.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(t))},[a,o,s]),m=Ut(()=>{l(""),d(!0)},[]),f=Ut(e=>{l(e.target.value),c||d(!0),a||e.target.value||!t.value||t.onSelect(null)},[c,a,t]),y=Ut(e=>{d(e),e||l("")},[]),b=Ut(e=>{if(a)return void t.onSelect(e);const n=o.find(t=>t.id===e[0]);n&&(t.onSelect(n),l(""),d(!1))},[a,t,o]),$=c&&(i||g.length>0||s.length>0);return e(tp,{open:$,onOpenChange:y,items:g,selectedIds:u,setSelectedIds:b,withMultiSelect:a,isLoading:i,emptyMessage:`No results matched the filter '${s}'`,fullWidth:!0,alignY:Yu.Bottom,children:e(Nu,{name:n,leftIcon:Et,placeholder:r,value:h,onChange:f,onFocus:m})})},op=o.button`
|
|
877
877
|
width: 100%;
|
|
878
878
|
padding: 0;
|
|
879
879
|
padding-right: 12px;
|
|
@@ -894,7 +894,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
894
894
|
cursor: not-allowed;
|
|
895
895
|
opacity: 0.5;
|
|
896
896
|
}
|
|
897
|
-
`,
|
|
897
|
+
`,rp=o.div`
|
|
898
898
|
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
899
899
|
height: 56px;
|
|
900
900
|
display: flex;
|
|
@@ -905,20 +905,20 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
905
905
|
`:r`
|
|
906
906
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
907
907
|
`}
|
|
908
|
-
`,
|
|
908
|
+
`,ip=o.div`
|
|
909
909
|
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
910
910
|
display: flex;
|
|
911
911
|
justify-content: space-between;
|
|
912
912
|
align-items: center;
|
|
913
913
|
gap: 8px;
|
|
914
|
-
`,
|
|
914
|
+
`,ap=({label:n,icon:o,loading:r,disabled:i,onClick:a})=>{const[s,l]=Ft(!1);return t(op,{$hovered:s,type:"button",disabled:i||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(rp,{$hovered:s,$hasIcon:!!o,children:o&&e(o,{size:36})}),t(ip,{$hasIcon:!!o,children:[r?e(Ud,{size:16}):e(cn,{variant:nn.Span,align:"center",children:n}),e(It,{rotate:90,size:24})]})]})},sp=({buttons:t})=>e(kr,{$gap:12,children:t.map((t,n)=>e(ap,{...t},`${t.label}-${n}`))});var lp;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(lp||(lp={}));const cp=({onAnyClick:t,actions:n})=>e(Ir,{$gap:8,$alignItems:"center",children:n?.map(n=>{if(!n)return null;switch(n.type){case lp.Button:return e(Hd,{...n.buttonProps,onClick:e=>{n.buttonProps?.onClick?.(e),t?.()}},n.id);case lp.ButtonDropData:return e(tp,{...n.dropDataProps,items:n.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:e=>{n.buttonProps?.onClick?.(e[0]),t?.()},buttonProps:n.buttonProps},n.id);default:return null}})}),dp=({children:t,fullText:n,fullWidth:o=!0,...r})=>{const i=Bt(null),a=!!r.maxLines&&r.maxLines>0,s=Fc(i,{axis:a?"vertical":"horizontal",deps:[t]})?n??(null==t?"":String(t)):"";return e(id,{text:s,fullWidth:o,ellipsis:!a,keepAlive:!0,children:e(cn,{ref:i,...r,children:t})})},up=o.div`
|
|
915
915
|
display: flex;
|
|
916
916
|
align-items: center;
|
|
917
917
|
justify-content: center;
|
|
918
918
|
padding: 8px;
|
|
919
919
|
border-radius: 8px;
|
|
920
|
-
background-color: ${({theme:e})=>e.v2.colors.white[500]+
|
|
921
|
-
`,
|
|
920
|
+
background-color: ${({theme:e})=>e.v2.colors.white[500]+wd["004"]};
|
|
921
|
+
`,pp=({icon:n,iconWithWrapper:o=!1,title:r,titleSize:i=on.S,titleColor:a=rn.Primary,titleWrap:s=!1,subTitle:l,subTitleSize:c=on.XXS,subTitleColor:d=rn.Secondary,subTitleWrap:u=!1,tooltip:p,withCopy:h,badge:g,gap:m,children:f})=>{const{CopyButton:y}=Ic();return t(Ir,{$gap:l?8:6,$alignItems:"center",children:[n&&(o||l?e(up,{children:e(n,{size:24})}):e(n,{size:24})),r||g||l?t(kr,{children:[r||g?t(Ir,{$gap:6,$alignItems:"center",children:[r&&e(cn,{size:i,color:a,nowrap:!s,children:r}),h&&r&&e(y,{value:r,size:Cc.XS}),p&&e(id,{text:p,withIcon:!0}),g&&e(Su,{...g})]}):null,l&&e(cn,{size:c,color:d,nowrap:!u,children:l})]}):null,e(Ir,{$gap:m,$margin:`0 0 0 ${m??0}px`,$alignItems:"center",children:f})]})},hp=o.section`
|
|
922
922
|
display: flex;
|
|
923
923
|
flex-direction: column;
|
|
924
924
|
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
@@ -928,22 +928,22 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
928
928
|
padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
929
929
|
border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
930
930
|
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
|
|
931
|
-
`,
|
|
931
|
+
`,gp=o(Ir)`
|
|
932
932
|
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
933
933
|
user-select: ${({$clickable:e})=>e?"none":"auto"};
|
|
934
|
-
`,
|
|
934
|
+
`,mp=o.div`
|
|
935
935
|
display: flex;
|
|
936
936
|
align-items: flex-end;
|
|
937
937
|
flex-wrap: wrap;
|
|
938
938
|
width: 100%;
|
|
939
|
-
|
|
939
|
+
`,fp=o.div`
|
|
940
940
|
width: ${({$cellsPerRow:e})=>e?`calc(${100/e}% - 16px)`:"unset"};
|
|
941
941
|
margin: 8px;
|
|
942
942
|
display: flex;
|
|
943
943
|
flex-direction: column;
|
|
944
944
|
gap: 4px;
|
|
945
945
|
min-width: 0;
|
|
946
|
-
`,
|
|
946
|
+
`,yp=({item:n,cellsPerRow:o})=>{const{CopyButton:r}=Ic(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=n;return i?e("div",{style:{flex:1}}):t(fp,{$cellsPerRow:o,children:[!!a&&e(id,{text:s,children:e(dp,{size:on.XXXS,color:rn.Secondary,nowrap:!0,children:a})}),t(Ir,{$gap:4,children:[u&&e(Su,{...u}),l&&e(id,{text:c,children:e(dp,{size:on.XS,nowrap:!0,children:l})}),d&&e(r,{value:l||u?.label?.toString()||"",size:Cc.XS})]})]})},bp=({bgTint:n="900",width:o,fullHeight:r=!1,moreSpacing:i=!1,richTitle:a,withCollapse:s,collapseIsDefaultOpen:l,badges:c=[],actions:d=[],dropDataActions:u=[],renderOnRightSide:p,cellsPerRow:h,items:g,children:m})=>{const[f,y]=Ft(l||!1),b=()=>y(e=>!e),$=!s||s&&f,v=!!d.length,x=!!u.length,S=!!c.length;return t(hp,{$width:o,$bgTint:n,$fullHeight:r,$moreSpacing:i,children:[(a||s)&&t(gp,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?e(pp,{...a}):e("div",{}),t(Ir,{$gap:12,children:[p,v&&$&&e(cp,{actions:d}),S&&e(Ir,{$gap:8,children:c.map((e,t)=>Wt(Su,{...e,key:e.key||`${e.label}-${t}`}))}),(x||s)&&t(Ir,{$gap:2,children:[x&&e(tp,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:kt},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&e(Hd,{variant:Bd.Text,size:jd.S,leftIcon:f?Tt:At,onClick:b})]})]})]}),$&&g?e(mp,{children:g.map(t=>e(yp,{item:t,cellsPerRow:h&&h<=g.length?h:void 0},t.id))}):null,$&&m]})};var $p;!function(e){e.S="small",e.M="medium"}($p||($p={}));const vp=o.div`
|
|
947
947
|
display: flex;
|
|
948
948
|
flex-direction: column;
|
|
949
949
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -953,7 +953,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
953
953
|
padding: ${({$padding:e})=>e}px;
|
|
954
954
|
border-radius: 16px;
|
|
955
955
|
background-color: ${({theme:e,$backgroundColor:t})=>t??e.v2.colors.silver[1e3]};
|
|
956
|
-
`,
|
|
956
|
+
`,xp=Lt(({id:n,size:o=$p.M,fullHeight:r=!1,richTitle:i,customTitle:a,search:s,customSearch:l,filters:c,actions:d,children:u,backgroundColor:p,padding:h},g)=>{const m=o===$p.S?4:16,f="number"==typeof h?h:o===$p.S?12:16,y=a??(i?e(pp,{...i}):null),b=l??(s?e(Uu,{...s}):null),$=!!y||!!b,v=!!d&&d.length>0;return t(vp,{ref:g,id:n,"data-section-name":n,$padding:f,$gap:m,$fullHeight:r,$backgroundColor:p,children:[$||v?t(Ir,{$gap:m,$justifyContent:"space-between",children:[$?t(Ir,{$gap:m,$alignItems:"center",children:[y,b,c]}):null,v&&e(cp,{actions:d??[]})]}):null,u]})});xp.displayName="SectionCard";const Sp=o.div`
|
|
957
957
|
flex: 1;
|
|
958
958
|
align-self: stretch;
|
|
959
959
|
display: flex;
|
|
@@ -961,8 +961,8 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
961
961
|
gap: 8px;
|
|
962
962
|
padding: 16px;
|
|
963
963
|
border-radius: 12px;
|
|
964
|
-
background-color: ${({theme:e,$status:t})=>
|
|
965
|
-
`,
|
|
964
|
+
background-color: ${({theme:e,$status:t})=>ir(e,t,t===Bn.Unknown?"750":"500")};
|
|
965
|
+
`,wp=o.div`
|
|
966
966
|
display: flex;
|
|
967
967
|
align-items: center;
|
|
968
968
|
justify-content: center;
|
|
@@ -970,8 +970,8 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
970
970
|
height: fit-content;
|
|
971
971
|
padding: 8px;
|
|
972
972
|
border-radius: 12px;
|
|
973
|
-
background-color: ${({theme:e,$status:t})=>t===Bn.Unknown?
|
|
974
|
-
`,
|
|
973
|
+
background-color: ${({theme:e,$status:t})=>t===Bn.Unknown?ir(e,t,"800"):ir(e,t,"900")+wd["015"]};
|
|
974
|
+
`,Ep=({status:n,icon:o,title:r,description:a})=>{const s=i(),l=o??Br(n,s),c=[Mn.Default,Mn.Info,Bn.Disabled,Bn.Unknown].includes(n)?s.v2.colors.white[500]:s.v2.colors.black[500];return t(Sp,{$status:n,children:[e(wp,{$status:n,children:e(l,{size:32,fill:c})}),t(kr,{$gap:2,$justifyContent:"center",children:[e(cn,{size:on.M,weight:500,color:c,nowrap:!0,children:r}),e(cn,{size:on.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},Cp=o.div`
|
|
975
975
|
flex: 0.5;
|
|
976
976
|
display: flex;
|
|
977
977
|
flex-direction: column;
|
|
@@ -979,25 +979,25 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
979
979
|
padding: 12px;
|
|
980
980
|
border-radius: 12px;
|
|
981
981
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
982
|
-
`,
|
|
982
|
+
`,Tp=["-","N/A","undefined","null","undefined/undefined","null/null"],Ap=({title:n,cells:o})=>{const r=i();return t(Cp,{children:[e(cn,{size:on.XXS,color:r.v2.colors.grey[150],children:n}),e(Ir,{$gap:32,children:o.map((o,r)=>t(kr,{$gap:2,children:[!o.isLoading||o.value&&!Tp.includes(o.value)?e(cn,{size:o.label?on.M:on.L,children:o.value}):e(Fd,{scale:.9}),o.label&&e(cn,{size:on.XXS,children:o.label})]},`${n}-${r}-${o.label}-${o.value}`))})]})};var Ip;!function(e){e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"}(Ip||(Ip={}));const kp=o.div`
|
|
983
983
|
display: flex;
|
|
984
984
|
align-items: flex-end;
|
|
985
985
|
justify-content: space-between;
|
|
986
986
|
gap: 24px;
|
|
987
987
|
width: fit-content;
|
|
988
|
-
`,
|
|
988
|
+
`,Np=o.div`
|
|
989
989
|
position: relative;
|
|
990
990
|
display: flex;
|
|
991
991
|
flex-direction: column;
|
|
992
992
|
align-items: center;
|
|
993
993
|
width: ${({$width:e})=>e??150}px;
|
|
994
994
|
flex-shrink: 0;
|
|
995
|
-
`,
|
|
995
|
+
`,Dp=o.svg`
|
|
996
996
|
display: block;
|
|
997
997
|
width: 100%;
|
|
998
998
|
height: auto;
|
|
999
999
|
overflow: visible;
|
|
1000
|
-
`,
|
|
1000
|
+
`,Op=o(kr)`
|
|
1001
1001
|
position: absolute;
|
|
1002
1002
|
left: 0;
|
|
1003
1003
|
right: 0;
|
|
@@ -1005,14 +1005,14 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1005
1005
|
align-items: center;
|
|
1006
1006
|
gap: 2px;
|
|
1007
1007
|
pointer-events: none;
|
|
1008
|
-
`,
|
|
1008
|
+
`,Rp=o.span`
|
|
1009
1009
|
display: inline-block;
|
|
1010
1010
|
flex-shrink: 0;
|
|
1011
1011
|
width: 9px;
|
|
1012
1012
|
height: 9px;
|
|
1013
1013
|
border-radius: 50%;
|
|
1014
1014
|
background-color: ${({$color:e})=>e};
|
|
1015
|
-
`,
|
|
1015
|
+
`,_p=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:""}},Lp=10,Pp=(e,t,n,o)=>{const r=o*Math.PI/180;return{x:e+n*Math.cos(r),y:t-n*Math.sin(r)}},Fp=(e,t,n,o,r)=>{const i=Pp(e,t,n,o),a=Pp(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}`},Mp=({variant:n=Ip.CurrentOfMax,gaugeWidth:o,title:r,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=_p(a),{number:g}=_p(s),{number:m,prefix:f,suffix:y}=_p(l),b=i(),$=((e,t,n)=>Math.min(Math.max(e,t),n))((m-h)/Math.max(g-h,1),0,1),v=180-180*$,x=$>0?Fp(60,60,55,180,v):null,S=$<1?Fp(60,60,55,v,0):null,w=Pp(60,60,55,180),E=Pp(60,60,55,0),C=d??(n===Ip.GoodAgainstBad?b.v2.colors.green[500]:b.v2.colors.purple[400]),T=p??(n===Ip.GoodAgainstBad?b.v2.colors.red[500]:b.v2.colors.silver[500]),[A,I]=Ft(null),k=e=>`${f}${e}${y}`,N=n===Ip.GoodAgainstBad?Math.max(g-m,0):g,D="primary"===A?c:"secondary"===A?u:"",O="primary"===A?k(m):"secondary"===A?k(N):"",R=()=>I("primary"),_=()=>I("secondary"),L=()=>I(null);return t(kp,{children:[t(Np,{$width:o,children:[e(id,{keepAlive:!0,fullWidth:!0,title:D,text:O,children:t(Dp,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[x&&e("path",{d:x,fill:"none",stroke:C,strokeWidth:Lp,strokeLinecap:1===$?"round":"butt",onMouseEnter:R,onMouseLeave:L}),S&&e("path",{d:S,fill:"none",stroke:T,strokeWidth:Lp,strokeLinecap:0===$?"round":"butt",onMouseEnter:_,onMouseLeave:L}),$>0&&e("circle",{cx:w.x,cy:w.y,r:5,fill:C,onMouseEnter:R,onMouseLeave:L}),$<1&&e("circle",{cx:E.x,cy:E.y,r:5,fill:T,onMouseEnter:_,onMouseLeave:L})]})}),r&&t(Op,{children:[e(cn,{size:on.XXXS,color:b.v2.colors.grey[150],align:"center",children:r}),e(cn,{size:on.L,weight:500,align:"center",children:`${f}${m}${y}`})]})]}),t(kr,{$gap:7,children:[t(Ir,{$gap:8,$alignItems:"center",children:[e(Rp,{$color:C}),e(cn,{size:on.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:c})]}),t(Ir,{$gap:8,$alignItems:"center",children:[e(Rp,{$color:T}),e(cn,{size:on.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},zp=o(Ir)`
|
|
1016
1016
|
width: 100%;
|
|
1017
1017
|
padding: 8px 12px;
|
|
1018
1018
|
border-radius: 6px;
|
|
@@ -1021,24 +1021,24 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1021
1021
|
align-items: center;
|
|
1022
1022
|
justify-content: space-between;
|
|
1023
1023
|
gap: 12px;
|
|
1024
|
-
`,
|
|
1024
|
+
`,Up=o.div`
|
|
1025
1025
|
position: relative;
|
|
1026
1026
|
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
1027
1027
|
display: flex;
|
|
1028
1028
|
align-items: center;
|
|
1029
1029
|
gap: 4px;
|
|
1030
|
-
`,
|
|
1030
|
+
`,Bp=o.pre`
|
|
1031
1031
|
flex: 1;
|
|
1032
1032
|
margin: 0;
|
|
1033
1033
|
padding: 0;
|
|
1034
1034
|
font-size: 12px;
|
|
1035
1035
|
color: #5ffb98; // TODO: add to theme
|
|
1036
1036
|
overflow-x: auto;
|
|
1037
|
-
`,
|
|
1037
|
+
`,jp=o.span`
|
|
1038
1038
|
flex-shrink: 0;
|
|
1039
1039
|
font-size: 14px;
|
|
1040
1040
|
color: #5ffb98; // TODO: add to theme
|
|
1041
|
-
`,
|
|
1041
|
+
`,Wp=({bgTint:n,label:o,value:r,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=Ic({onDone:a}),l=Bt(null),[c,d]=Ft(!1);return Mt(()=>{const e=()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;d(e>t)}};e();const t=new ResizeObserver(e);return l.current&&t.observe(l.current),()=>{t.disconnect()}},[r]),t(kr,{$gap:4,children:[o&&e(cn,{size:on.XXXS,color:rn.Secondary,children:o}),t(zp,{$bgTint:n,children:[t(Up,{$hideCopy:i,children:[e(Bp,{ref:l,children:r.toLowerCase()}),c&&e(jp,{children:"..."})]}),!i&&e(s,{value:r.toLowerCase(),size:Cc.XS})]})]})},Hp=o.div`
|
|
1042
1042
|
display: flex;
|
|
1043
1043
|
align-items: center;
|
|
1044
1044
|
gap: 8px;
|
|
@@ -1054,7 +1054,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1054
1054
|
background-color: ${t?"transparent":n};
|
|
1055
1055
|
}
|
|
1056
1056
|
`}
|
|
1057
|
-
`,
|
|
1057
|
+
`,Gp=o.div`
|
|
1058
1058
|
display: flex;
|
|
1059
1059
|
align-items: center;
|
|
1060
1060
|
justify-content: center;
|
|
@@ -1072,44 +1072,44 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1072
1072
|
transform: scale(1.2);
|
|
1073
1073
|
}
|
|
1074
1074
|
`}
|
|
1075
|
-
`,
|
|
1075
|
+
`,Xp=o(kr)`
|
|
1076
1076
|
flex: 1;
|
|
1077
1077
|
min-width: 0;
|
|
1078
|
-
`,
|
|
1078
|
+
`,Kp=o.div`
|
|
1079
1079
|
display: flex;
|
|
1080
1080
|
align-items: center;
|
|
1081
1081
|
justify-content: center;
|
|
1082
1082
|
flex-shrink: 0;
|
|
1083
1083
|
width: 24px;
|
|
1084
1084
|
height: 24px;
|
|
1085
|
-
`,
|
|
1085
|
+
`,Vp=({status:n,title:o,subTitle:r,badgeLabel:a,loading:s,action:l,isExtended:c=!1,toggleExtended:d,invertColors:u=!1,hideIcon:p=!1,hideBackground:h=!1,width:g,slim:m=!1})=>{const f=i(),y=Br(n,f),b=d?c?Tt:At:void 0,$=n===Bn.Unknown,v=n===Bn.Disabled,x=n===Un.Loading||s,S=[Mn.Error,Mn.Warning,Mn.Success].includes(n),w=ir(f,n,v?u?"400":"700":$?"600":u?"300":"500"),E=v?f.v2.colors.grey[400]:u?f.v2.colors.white[500]:S?f.v2.colors.black[500]:f.v2.colors.white[500],C=u&&!$?w:E,T=!u||$||v?"rgba(0, 0, 0, 0.13)":ir(f,n,"800"),A=v?f.v2.colors.grey[900]:u||$?f.v2.colors.silver[800]:w,I=v?f.v2.colors.grey[800]:u||$?f.v2.colors.silver[700]:ir(f,n,"600");return t(Hp,{$width:g,$withHover:!!d,$isExtended:c,$hideBackground:h,$backgroundColor:A,$hoverBackgroundColor:I,$slim:m,onClick:d,children:[!p&&e(Gp,{$backgroundColor:T,$slim:m,children:x?e(Ur,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):e(y,{size:32,fill:C})}),t(Xp,{$gap:4,$justifyContent:"center",children:[t(Ir,{$gap:10,$alignItems:"center",children:[e(cn,{size:m?on.XS:on.S,weight:500,color:C,children:o}),a&&e(Su,{label:a,backgroundColor:f.v2.colors.silver[600],textColor:f.v2.colors.white[500],textSize:on.XXXS})]}),r&&e(cn,{size:on.XXXS,color:E,children:r})]}),l&&e(Gp,{"data-id":l["data-id"],$backgroundColor:f.v2.colors.silver[750],$slim:m,$withClick:!!l.onClick,onClick:l.onClick,children:e(id,{text:l.tooltip,children:e(l.icon,{size:32,fill:E})})}),b&&e(Kp,{children:e(b,{size:24,fill:E})})]})},Jp=o.div`
|
|
1086
1086
|
display: flex;
|
|
1087
1087
|
flex-direction: column;
|
|
1088
1088
|
width: 100%;
|
|
1089
1089
|
border-radius: 12px;
|
|
1090
1090
|
overflow: hidden;
|
|
1091
|
-
`,
|
|
1091
|
+
`,Yp=o.div`
|
|
1092
1092
|
display: flex;
|
|
1093
1093
|
flex-direction: column;
|
|
1094
1094
|
gap: 8px;
|
|
1095
1095
|
padding: 8px 12px 16px 12px;
|
|
1096
1096
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1097
|
-
`,
|
|
1097
|
+
`,qp=o.div`
|
|
1098
1098
|
display: flex;
|
|
1099
1099
|
align-items: center;
|
|
1100
1100
|
gap: 8px;
|
|
1101
|
-
`,
|
|
1101
|
+
`,Qp=o.div`
|
|
1102
1102
|
display: flex;
|
|
1103
1103
|
align-items: center;
|
|
1104
1104
|
justify-content: center;
|
|
1105
1105
|
flex-shrink: 0;
|
|
1106
1106
|
width: 18px;
|
|
1107
1107
|
height: 18px;
|
|
1108
|
-
`,
|
|
1108
|
+
`,Zp=({conditions:n,title:o,subTitle:r})=>{const a=i(),[s,l]=Ft(!1),c=Ut(()=>l(e=>!e),[]),d=zt(()=>li(n),[n]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=zt(()=>Ro(d),[d]);Mt(()=>{l(p||g||m)},[p,g,m]);const y=zt(()=>(!d.length||f)&&!p&&!g&&!m,[d.length,f,p,g,m]),b=zt(()=>p?Mn.Error:g?Mn.Warning:m?Mn.Info:Mn.Success,[p,g,m]),$=zt(()=>o||(1===d.length?tn(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:n,loading:o})=>{const r="Something isn't right";return e?"Something Failed":t||n?r:o?"Loading...":"Everything Successful"})({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:y}),[o,d,p,g,m,y]),v=zt(()=>r||1===d.length&&d[0].message||void 0,[r,d]),x=zt(()=>`${p?u.length:g?h.length:d.length}/${d.length}`,[p,u.length,g,h.length,d.length]);return t(Jp,{children:[e(Vp,{status:b,invertColors:!0,title:$,subTitle:v,badgeLabel:x,loading:y,isExtended:s,toggleExtended:c}),s&&e(Yp,{children:d.map(({status:n,type:o,reason:r,message:i},s)=>{const l=n===Un.Loading,c=n===Un.Disabled?Mn.Info:n,d=l?null:Br(c,a),u=n===Mn.Error?ir(a,Mn.Error,"500"):n===Mn.Warning?ir(a,Mn.Warning,"500"):a.v2.colors.white[500],p=[o,i||r].filter(Boolean).join(" - ");return t(qp,{children:[e(Qp,{children:l||!d?e(Ur,{withSpinnerOld:!0,scaleSpinnerOld:.8}):e(d,{size:18})}),e(cn,{size:on.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})};var eh,th,nh;!function(e){e.Default="default",e.SuccessError="successError"}(eh||(eh={})),function(e){e.S="small",e.L="large"}(th||(th={})),function(e){e.Left="left",e.Right="right"}(nh||(nh={}));const oh=o.div`
|
|
1109
1109
|
display: flex;
|
|
1110
1110
|
align-items: center;
|
|
1111
1111
|
gap: ${({$gap:e})=>e}px;
|
|
1112
|
-
`,
|
|
1112
|
+
`,rh=o.div`
|
|
1113
1113
|
position: relative;
|
|
1114
1114
|
display: flex;
|
|
1115
1115
|
align-items: center;
|
|
@@ -1120,11 +1120,11 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1120
1120
|
height: ${({$size:e})=>e}px;
|
|
1121
1121
|
padding: ${4}px;
|
|
1122
1122
|
border-radius: ${({$size:e})=>2*e}px;
|
|
1123
|
-
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
|
|
1123
|
+
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 eh.SuccessError:return r?i.v2.colors.green[500]:i.v2.colors.red[500];case eh.Default:default:return r?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
|
|
1124
1124
|
|
|
1125
1125
|
border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
|
|
1126
1126
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1127
|
-
`,
|
|
1127
|
+
`,ih=o.div`
|
|
1128
1128
|
position: absolute;
|
|
1129
1129
|
top: 50%;
|
|
1130
1130
|
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
@@ -1134,17 +1134,17 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1134
1134
|
border-radius: 100%;
|
|
1135
1135
|
background-color: ${({$color:e})=>e};
|
|
1136
1136
|
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)"};
|
|
1137
|
-
`,
|
|
1137
|
+
`,ah=({variant:o=eh.Default,size:r=th.L,name:a,label:s,labelAlign:l=nh.Right,labelColor:c,tooltip:d,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=yt,offIcon:y=xt,onBgColor:b,offBgColor:$,errorMessage:v,warnMessage:x,helpMessage:S})=>{const w=i(),E=g?w.v2.colors.grey[400]:w.v2.colors.white[500],C=r===th.S?10:16,T=c||w.v2.colors.silver[200],A=r===th.S?on.XXXS:on.XS,I=r===th.S?8:12;return t(kr,{$gap:4,children:[t(Ir,{$justifyContent:"space-between",children:[t(oh,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:I,children:[s&&l===nh.Left&&e(cn,{color:T,size:A,nowrap:!0,children:s}),t(rh,{$onBgColor:b,$offBgColor:$,$variant:o,$size:C,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[e(ih,{$color:E,$size:C,$value:p,$disabled:g}),m&&t(n,{children:[e(f,{size:C,fill:E}),e(y,{size:C,fill:E})]})]}),s&&l===nh.Right&&e(cn,{color:T,size:A,nowrap:!0,children:s})]}),e(Cu,{tooltip:d,badge:u})]}),e(Tu,{errorMessage:v,warnMessage:x,helpMessage:S})]})},sh=o.div`
|
|
1138
1138
|
display: flex;
|
|
1139
1139
|
flex-direction: ${({$direction:e})=>e===Tn.Horizontal?"row":"column"};
|
|
1140
1140
|
gap: ${({$direction:e})=>e===Tn.Horizontal?16:8}px;
|
|
1141
|
-
`,
|
|
1141
|
+
`,lh=({direction:n=Tn.Vertical,title:o,size:r,disabled:i,options:a,values:s,setValues:l})=>{const c=r===th.S?on.XS:on.S;return t(sh,{$direction:n,children:[o&&e(cn,{size:c,children:o}),a.map(t=>e(ah,{...t,labelAlign:nh.Right,value:s[t.id],onChange:e=>{return n=t.id,o=e,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-${t.id}`))]})},ch=o.div`
|
|
1142
1142
|
display: flex;
|
|
1143
1143
|
align-items: center;
|
|
1144
1144
|
justify-content: space-between;
|
|
1145
1145
|
width: 100%;
|
|
1146
1146
|
overflow: hidden;
|
|
1147
|
-
`,
|
|
1147
|
+
`,dh=o.div`
|
|
1148
1148
|
display: flex;
|
|
1149
1149
|
align-items: center;
|
|
1150
1150
|
gap: 16px;
|
|
@@ -1152,7 +1152,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1152
1152
|
min-width: 0;
|
|
1153
1153
|
flex: 1;
|
|
1154
1154
|
overflow: hidden;
|
|
1155
|
-
`,
|
|
1155
|
+
`,uh=o.div`
|
|
1156
1156
|
display: flex;
|
|
1157
1157
|
align-items: center;
|
|
1158
1158
|
justify-content: center;
|
|
@@ -1161,23 +1161,23 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1161
1161
|
height: 36px;
|
|
1162
1162
|
border-radius: 8px;
|
|
1163
1163
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1164
|
-
`,
|
|
1164
|
+
`,ph=o.img`
|
|
1165
1165
|
width: 24px;
|
|
1166
1166
|
height: 24px;
|
|
1167
|
-
`,
|
|
1167
|
+
`,hh=o.div`
|
|
1168
1168
|
display: flex;
|
|
1169
1169
|
align-items: center;
|
|
1170
1170
|
gap: 16px;
|
|
1171
1171
|
flex-shrink: 0;
|
|
1172
|
-
`,
|
|
1172
|
+
`,gh=({icon:n,iconSrc:o,title:r,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>t(ch,{children:[t(dh,{children:[n?e(uh,{children:e(n,{size:24})}):o?e(uh,{children:e(ph,{src:o,alt:r||"icon"})}):null,(r||i?.length||a)&&t(kr,{$gap:6,children:[(r||i?.length)&&t(Ir,{$gap:16,children:[r&&e(cn,{size:on.S,weight:500,children:r}),i?.length&&e(Ir,{$gap:4,children:i?.map((t,n)=>e(Su,{...t},`${t.label}-${n}`))})]}),a&&e(cn,{size:on.XXS,children:a})]})]}),t(hh,{children:[s&&e(ah,{...s}),l?.length?e(tp,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:kt},items:l,selectedIds:l?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>l?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&e(Ac,{"data-id":"drawer-close",icon:xt,size:Cc.M,onClick:c,disabled:d})]})]}),mh=o.div`
|
|
1173
1173
|
position: relative;
|
|
1174
1174
|
&.animated {
|
|
1175
1175
|
overflow: hidden;
|
|
1176
1176
|
padding-bottom: 1px;
|
|
1177
1177
|
border-radius: 8px;
|
|
1178
|
-
animation: ${({$isLeaving:e})=>e?
|
|
1178
|
+
animation: ${({$isLeaving:e})=>e?Cd.out.bottom:Cd.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
1179
1179
|
}
|
|
1180
|
-
|
|
1180
|
+
`,fh=o.div`
|
|
1181
1181
|
position: absolute;
|
|
1182
1182
|
bottom: -1px;
|
|
1183
1183
|
left: 0;
|
|
@@ -1185,9 +1185,9 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1185
1185
|
width: 100%;
|
|
1186
1186
|
height: 100%;
|
|
1187
1187
|
border-radius: 8px;
|
|
1188
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1189
|
-
animation: ${
|
|
1190
|
-
`,
|
|
1188
|
+
background-color: ${({theme:e,$status:t})=>ir(e,t,t===Mn.Default?"300":t===Mn.Info?"400":"500")};
|
|
1189
|
+
animation: ${Td.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
1190
|
+
`,yh=o.div`
|
|
1191
1191
|
display: flex;
|
|
1192
1192
|
align-items: center;
|
|
1193
1193
|
gap: 10px;
|
|
@@ -1196,36 +1196,36 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1196
1196
|
`}
|
|
1197
1197
|
padding: 4px 12px 4px 4px;
|
|
1198
1198
|
border-radius: 8px;
|
|
1199
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1200
|
-
`,
|
|
1199
|
+
background-color: ${({theme:e,$status:t})=>ir(e,t,[Mn.Info,Mn.Warning].includes(t)?"1000":"900")};
|
|
1200
|
+
`,bh=o.div`
|
|
1201
1201
|
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1202
1202
|
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1203
1203
|
display: flex;
|
|
1204
1204
|
align-items: center;
|
|
1205
1205
|
justify-content: center;
|
|
1206
1206
|
border-radius: 6px;
|
|
1207
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1208
|
-
|
|
1207
|
+
background-color: ${({theme:e,$status:t})=>ir(e,t,[Mn.Info].includes(t)?"900":"800")};
|
|
1208
|
+
`,$h=o.div`
|
|
1209
1209
|
margin-left: auto;
|
|
1210
1210
|
display: flex;
|
|
1211
1211
|
align-items: center;
|
|
1212
1212
|
gap: 4px;
|
|
1213
|
-
`,
|
|
1213
|
+
`,vh=o.div`
|
|
1214
1214
|
margin-right: 8px;
|
|
1215
1215
|
cursor: pointer;
|
|
1216
1216
|
&:hover {
|
|
1217
1217
|
transform: scale(1.2);
|
|
1218
1218
|
}
|
|
1219
|
-
`,
|
|
1219
|
+
`,xh=({status:n,message:o,action:r,fullWidth:a,smallIcon:s,onClose:l,duration:c=5e3,zIndex:d})=>{const u=i(),p=Br(n,u),h=ir(u,n,n===Mn.Default?"300":n===Mn.Info?"400":"500"),[g,m]=Ft(!1),f=Bt(null),y=Bt(null),b=c/10,$=c-b,v=e=>{l&&(f.current&&clearTimeout(f.current),m(!0),setTimeout(()=>l({asSeen:e?.asSeen}),b))};Mt(()=>{if(l)return f.current=setTimeout(()=>v({asSeen:!1}),$),()=>{f.current&&clearTimeout(f.current)}},[c]);return t(mh,{className:l?"animated":"",$duration:c,$isLeaving:g,onMouseEnter:()=>{l&&(f.current&&clearTimeout(f.current),y.current&&(y.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(l&&y.current){const e=y.current.offsetWidth/y.current.parentElement.offsetWidth*$;f.current=setTimeout(()=>v({asSeen:!1}),e),y.current.style.animationPlayState="running"}},style:{zIndex:d},children:[t(yh,{$status:n,$fullWidth:a,children:[e("div",{children:e(bh,{$status:n,$smallIcon:s,children:e(p,{size:s?18:24})})}),e(cn,{color:h,size:on.XXXS,weight:400,children:o}),(r||l)&&t($h,{children:[r&&e(vh,{"data-id":r["data-id"],onClick:r.onClick,children:e(cn,{color:h,size:on.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),l&&e(Ac,{"data-id":"note-close",icon:xt,size:Cc.XS,onClick:()=>v({asSeen:!0})})]})]}),l&&e(fh,{ref:y,$status:n,$duration:c})]})},Sh=o.div`
|
|
1220
1220
|
display: flex;
|
|
1221
1221
|
align-items: center;
|
|
1222
1222
|
gap: 8px;
|
|
1223
1223
|
padding: 4px 12px;
|
|
1224
|
-
`,
|
|
1224
|
+
`,wh=o.div`
|
|
1225
1225
|
flex: 1;
|
|
1226
|
-
`,
|
|
1226
|
+
`,Eh=o.div`
|
|
1227
1227
|
width: 150px;
|
|
1228
|
-
`,
|
|
1228
|
+
`,Ch=({note:n,actions:o,children:r})=>r?e(Sh,{children:r}):t(Sh,{children:[n&&e(xh,{...n}),e(wh,{}),o?.map((t,n)=>e(Eh,{children:e(Hd,{fullWidth:!0,...t})},t["data-id"]||`drawer-footer-button-${n}`))]}),Th=o.div`
|
|
1229
1229
|
position: fixed;
|
|
1230
1230
|
top: 0;
|
|
1231
1231
|
bottom: 0;
|
|
@@ -1245,16 +1245,16 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1245
1245
|
overflow: hidden;
|
|
1246
1246
|
|
|
1247
1247
|
${({$disableAnimation:e,$position:t})=>!e&&r`
|
|
1248
|
-
animation-name: ${
|
|
1248
|
+
animation-name: ${Cd.in[t]};
|
|
1249
1249
|
`}
|
|
1250
|
-
`,
|
|
1250
|
+
`,Ah=o.div`
|
|
1251
1251
|
display: flex;
|
|
1252
1252
|
flex-direction: column;
|
|
1253
1253
|
gap: 12px;
|
|
1254
1254
|
|
|
1255
1255
|
height: calc(100% - ${56}px);
|
|
1256
1256
|
overflow-y: auto;
|
|
1257
|
-
`,
|
|
1257
|
+
`,Ih=({isOpen:o,hideOverlay:r=!1,disableAnimation:i=!1,position:a="right",width:s="600px",minWidth:l,header:c,footer:d,children:u})=>(xc(o),o?Zt(t(n,{children:[!r&&e(Or,{onClick:c?.onCloseDisabled?void 0:c?.onClose}),t(Th,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[c&&e(gh,{...c}),e(Ah,{children:u}),d&&e(Ch,{...d})]})]}),document.body):null),kh=({options:t,values:n,setValues:o,withMultiSelect:r,withSearch:i,...a})=>{const s=zt(()=>t.filter(e=>n.includes(e.id)),[t,n]),l=zt(()=>s.map(e=>e.label).join(", "),[s]);return e(tp,{withMultiSelect:r,withSearch:i,fullWidth:!0,alignX:Ju.Left,items:t,selectedIds:n,setSelectedIds:o,children:({ChevronIcon:t,handleClick:n})=>e(Nu,{placeholder:"Select options...",width:"100%",...a,rightIcon:t,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:n,readOnly:!0,tabIndex:-1})})},Nh=o.header`
|
|
1258
1258
|
position: relative;
|
|
1259
1259
|
width: 100%;
|
|
1260
1260
|
padding: 12px 18px;
|
|
@@ -1262,12 +1262,12 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1262
1262
|
display: flex;
|
|
1263
1263
|
align-items: center;
|
|
1264
1264
|
justify-content: space-between;
|
|
1265
|
-
`,
|
|
1265
|
+
`,Dh=o(Ir)`
|
|
1266
1266
|
position: absolute;
|
|
1267
1267
|
left: 50%;
|
|
1268
1268
|
transform: translateX(-50%);
|
|
1269
1269
|
gap: 16px;
|
|
1270
|
-
`,
|
|
1270
|
+
`,Oh=({left:n=[],center:o=[],right:r=[]})=>t(Nh,{children:[e(Ir,{$gap:16,children:n}),e(Dh,{children:o}),e(Ir,{$gap:16,children:r})]}),Rh=o.div`
|
|
1271
1271
|
display: flex;
|
|
1272
1272
|
align-items: center;
|
|
1273
1273
|
gap: 2px;
|
|
@@ -1282,45 +1282,37 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1282
1282
|
left: ${({$left:e})=>e||"unset"};
|
|
1283
1283
|
top: 50%;
|
|
1284
1284
|
transform: translateY(-50%);
|
|
1285
|
-
`,
|
|
1285
|
+
`,_h=({isOpen:t,actions:n,positionRight:o,positionLeft:r})=>t?e(Rh,{$right:o,$left:r,children:n.map(t=>{if(!t)return null;const{tooltip:n,...o}=t;return e(id,{text:n||"",children:e(Hd,{...o,variant:Bd.Secondary,size:jd.S})},o.id)})}):null,Lh=o.div`
|
|
1286
1286
|
display: flex;
|
|
1287
1287
|
align-items: center;
|
|
1288
1288
|
justify-content: center;
|
|
1289
|
-
|
|
1290
|
-
|
|
1289
|
+
width: ${({$size:e,$padding:t})=>e+t}px;
|
|
1290
|
+
height: ${({$size:e,$padding:t})=>e+t}px;
|
|
1291
1291
|
aspect-ratio: 1 / 1;
|
|
1292
|
-
padding: 2px;
|
|
1293
1292
|
border-radius: 8px;
|
|
1294
|
-
background-color: ${({theme:e,$noBackground:t})=>t?"transparent":e.v2.colors.silver[
|
|
1295
|
-
`,
|
|
1296
|
-
display: flex;
|
|
1297
|
-
align-items: center;
|
|
1298
|
-
justify-content: center;
|
|
1299
|
-
padding: 2px;
|
|
1300
|
-
border-radius: 4px;
|
|
1301
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[750]+Td["050"]};
|
|
1302
|
-
`,Uh=({icons:n,icon:o,iconSrc:r,smallIconSize:i=12,largeIconSize:a=22})=>{if(n&&n.length>1){const o=n.slice(0,3),r=n.length-o.length,a=o.slice(0,2),s=o.slice(2),l=s.length>0;return e("div",{style:{width:"fit-content"},children:e(Mh,{$noBackground:!0,children:t(Dr,{$gap:1,children:[e(Nr,{$gap:1,$justifyContent:"space-between",children:a.map((t,n)=>e(zh,{children:e(t,{size:i})},`top-${n}`))}),l&&t(Nr,{$gap:1,$justifyContent:"space-between",children:[s.map((t,n)=>e(zh,{children:e(t,{size:i})},`bottom-${n}`)),r>0&&e(zh,{children:e(cn,{size:on.XXXS,weight:500,children:`+${r}`})})]})]})})})}const s=n?.[0]||o;return e("div",{style:{width:"fit-content"},children:e(Mh,{children:s?e(s,{size:a}):e("img",{src:r,alt:"icon",width:a,height:a})})})},Bh=o.div`
|
|
1293
|
+
background-color: ${({theme:e,$noBackground:t,$status:n})=>t?"transparent":n?ir(e,n,n===Mn.Warning?"1000":"900"):e.v2.colors.silver[800]};
|
|
1294
|
+
`,Ph=({icons:n,icon:o,iconSrc:r,status:a,size:s=28,padding:l=4})=>{const c=i(),d=s/2.7,u=s/1.3,p=er(d,c.v2.text.size);if(n&&n.length>1){const o=n.slice(0,3),r=n.length-o.length,i=o.slice(0,2),c=o.slice(2),u=c.length>0,h=Math.round(s/16);return e("div",{style:{width:"fit-content"},children:e(Lh,{$size:s,$padding:l,$status:a,children:t(kr,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[e(Ir,{$gap:h,$alignItems:"center",$justifyContent:"center",children:i.map((t,n)=>e(t,{size:d},`top-${n}`))}),u&&t(Ir,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[c.map((t,n)=>e(t,{size:d},`bottom-${n}`)),r>0&&e(cn,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=n?.[0]||o;return e("div",{style:{width:"fit-content"},children:e(Lh,{$size:s,$padding:l,$status:a,children:h?e(h,{size:u}):e("img",{src:r,alt:"",width:u,height:u})})})},Fh=o.div`
|
|
1303
1295
|
width: 100%;
|
|
1304
1296
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1305
1297
|
border-radius: 8px;
|
|
1306
1298
|
padding: 4px 8px;
|
|
1307
|
-
`,
|
|
1299
|
+
`,Mh=({values:n,setValues:o,name:r,label:a,tooltip:s,badge:l,required:c,errorMessage:d,warnMessage:u,helpMessage:p,placeholder:h,disabled:g})=>{const m=i(),f=n.length<=1,y=g,b=g||f&&y,$=n.length?n:[""];return e(Fh,{children:t(kr,{"data-id":r,$gap:6,children:[e(Cu,{label:a,tooltip:s,required:c,badge:l}),e(kr,{$gap:8,children:$.map((r,i)=>{const a=i===$.length-1;return t(Ir,{$gap:8,$alignItems:"center",children:[e(Nu,{width:"100%",autoFocus:ti(r)&&!f&&a,value:r,onChange:e=>((e,t)=>{const r=[...n||[]];r[t]=e,o(r)})(e.target.value,i),disabled:g,placeholder:h,hasError:!!d}),a&&e(Hd,{leftIcon:Nt,variant:Bd.Secondary,size:jd.S,disabled:y,onClick:()=>(()=>{const e=n.length?vo(n):[vo("")];e.push(""),o(e)})()}),e(Hd,{leftIcon:b?Dt:()=>e(Dt,{fill:m.v2.colors.red[500]}),variant:Bd.Secondary,size:jd.S,disabled:b,onClick:()=>(e=>{const t=[...n||[]].filter((t,n)=>n!==e);t.length||t.push(""),o(t)})(i)})]},`input-list-${i}`)})}),e(Tu,{errorMessage:d,warnMessage:u,helpMessage:p})]})})},zh=({col:t,colIdx:n,row:o,rowIdx:r,rowsLength:i,handleChange:a,errorMessage:s,disabled:l,hideLabel:c})=>{const{keyName:d,componentType:u,inputType:p,label:h,placeholder:g,options:m,renderCondition:f,helpMessage:y,min:b,max:$}=t,v=o[d];if(f&&!f(o))return null;const x=c?void 0:h||void 0,S=g;switch(u){case Pn.Dropdown:case"multi-dropdown":{const t="multi-dropdown"===u,n=Array.isArray(v)?v:null!=v&&""!==v?[String(v)]:[],o=m?.filter(e=>n.includes(e.id)).map(e=>e.id)||[];return e(kh,{name:d,label:x,placeholder:S,options:m||[],withMultiSelect:t,withSearch:t,values:o,setValues:e=>a(d,t?e:e[0]??"",r),disabled:l,hasError:!!s},d)}default:const t=i>1&&0===r&&0===n&&ti(v);return e(Nu,{name:d,label:x,placeholder:S,autoFocus:t,type:p,min:b,max:$,value:v,onChange:({target:{value:e}})=>a(d,e,r),disabled:l,hasError:!!s,helpMessage:y})}},Uh=o.div`
|
|
1308
1300
|
width: 100%;
|
|
1309
1301
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1310
1302
|
border-radius: 8px;
|
|
1311
1303
|
padding: 4px 8px;
|
|
1312
|
-
`,
|
|
1304
|
+
`,Bh=o.table`
|
|
1313
1305
|
width: 100%;
|
|
1314
1306
|
border-collapse: separate;
|
|
1315
1307
|
border-spacing: 0 8px;
|
|
1316
|
-
`,
|
|
1308
|
+
`,jh=o.td`
|
|
1317
1309
|
padding: 0 8px 0 0;
|
|
1318
1310
|
vertical-align: top;
|
|
1319
|
-
`,
|
|
1311
|
+
`,Wh=o.td`
|
|
1320
1312
|
width: 72px;
|
|
1321
1313
|
vertical-align: top;
|
|
1322
1314
|
padding-top: ${({$topOffset:e})=>e}px;
|
|
1323
|
-
`,
|
|
1315
|
+
`,Hh=({columns:n,values:o,setValues:r,name:a,label:s,tooltip:l,badge:c,required:d,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m})=>{const f=i(),y=zt(()=>{const e={};return n.forEach(({keyName:t})=>e[t]=""),e},[n]),b=(e,t,n)=>{const i=o.length?vo(o):[vo(y)];i[n][e]=t,r(i)},$=zt(()=>{if(m){const e=[];for(let t=0;;t+=m){const o=n.slice(t,t+m);if(!o.length)break;e.push(o)}return e}return[n]},[m,n]),v=zt(()=>$.map(e=>e.some(e=>!!e.label)),[$]),x=o.length?o:[y];return e(Uh,{children:t(kr,{"data-id":a,$gap:0,children:[e(Cu,{label:s,tooltip:l,required:d,badge:c}),e(Bh,{children:e("tbody",{children:x.map((n,i)=>{const a=i===x.length-1;return t(Pt,{children:[m&&i>0?e("tr",{children:e(jh,{colSpan:$.length})}):null,$.map((s,l)=>{const c=v[l],d=c?22:0;return t("tr",{children:[s.map((o,r)=>o.renderCondition&&!o.renderCondition(n)?null:e(jh,{children:t(kr,{$gap:6,children:[c&&(o.label?e(Cu,{label:o.label,tooltip:o.tooltip}):e(Cu,{label:"\\u00A0"})),e(zh,{col:o,colIdx:r,row:n,rowIdx:i,rowsLength:x.length,handleChange:b,disabled:u,errorMessage:p,hideLabel:c})]})},`input-table-row-${i}-col-${l}-${r}`)),0===l&&e(Wh,{$topOffset:d,children:t(Ir,{$gap:8,$justifyContent:"flex-end",children:[a&&e(Hd,{leftIcon:Nt,variant:Bd.Secondary,size:jd.S,disabled:u,onClick:()=>(()=>{const e=o.length?vo(o):[vo(y)];e.push(vo(y)),r(e)})()}),e(Hd,{leftIcon:u?Dt:()=>e(Dt,{fill:f.v2.colors.red[500]}),variant:Bd.Secondary,size:jd.S,disabled:u,onClick:()=>(e=>{const t=o.filter((t,n)=>n!==e);t.length||t.push(vo(y)),r(t)})(i)})]})})]},`input-table-matrix-${i}-${l}`)})]},`input-table-row-${i}`)})})}),e(Tu,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},Gh=o.div`
|
|
1324
1316
|
display: flex;
|
|
1325
1317
|
align-items: center;
|
|
1326
1318
|
justify-content: space-between;
|
|
@@ -1328,15 +1320,15 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1328
1320
|
|
|
1329
1321
|
padding: 18px 16px;
|
|
1330
1322
|
border-radius: 18px;
|
|
1331
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]+
|
|
1323
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]+wd["095"]};
|
|
1332
1324
|
box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
|
|
1333
1325
|
|
|
1334
1326
|
position: fixed;
|
|
1335
1327
|
bottom: 0;
|
|
1336
1328
|
left: 50%;
|
|
1337
1329
|
z-index: ${({theme:e})=>e.v2.zIndex.island};
|
|
1338
|
-
animation-name: ${
|
|
1339
|
-
`,
|
|
1330
|
+
animation-name: ${Cd.in.center};
|
|
1331
|
+
`,Xh=({isOpen:n,onClose:o,richTitle:r,actions:i})=>n?t(Gh,{children:[e(pp,{...r}),e(cp,{onAnyClick:o,actions:i})]}):null,Kh=o.div`
|
|
1340
1332
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
1341
1333
|
top: 50%;
|
|
1342
1334
|
left: 50%;
|
|
@@ -1355,7 +1347,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1355
1347
|
will-change: transform;
|
|
1356
1348
|
contain: layout paint;
|
|
1357
1349
|
|
|
1358
|
-
animation-name: ${({$closing:e})=>e?
|
|
1350
|
+
animation-name: ${({$closing:e})=>e?Cd.out.center:Cd.in.center};
|
|
1359
1351
|
/* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
|
|
1360
1352
|
the global 300ms default which pairs with the fade-in for a soft entrance. */
|
|
1361
1353
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
@@ -1364,9 +1356,9 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1364
1356
|
/* Block hover/click work on form children mid-close so their transitions
|
|
1365
1357
|
don't compete with the slide-out. */
|
|
1366
1358
|
${({$closing:e})=>e&&"pointer-events: none;"}
|
|
1367
|
-
`,
|
|
1359
|
+
`,Vh=o(Or)`
|
|
1368
1360
|
will-change: opacity;
|
|
1369
|
-
animation-name: ${({$closing:e})=>e?
|
|
1361
|
+
animation-name: ${({$closing:e})=>e?kd.out:kd.in};
|
|
1370
1362
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1371
1363
|
|
|
1372
1364
|
/* The blurred backdrop is the most expensive thing on screen during the close
|
|
@@ -1374,18 +1366,18 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1374
1366
|
recomposite per frame. Drop the blur while closing; visually identical
|
|
1375
1367
|
because the overlay is fading to 0. */
|
|
1376
1368
|
${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
|
|
1377
|
-
`,
|
|
1369
|
+
`,Jh=o.div`
|
|
1378
1370
|
position: relative;
|
|
1379
|
-
`,
|
|
1371
|
+
`,Yh=o.div`
|
|
1380
1372
|
position: absolute;
|
|
1381
1373
|
top: 16px;
|
|
1382
1374
|
left: 16px;
|
|
1383
|
-
`,
|
|
1375
|
+
`,qh=({isOpen:o,hideOverlay:r=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,u]=Ft(o),[p,h]=Ft(!1);if(Mt(()=>{o?(u(!0),h(!1)):d&&h(!0)},[o]),xc(d),!d)return null;const g=t(n,{children:[!r&&e(Vh,{$relativeToParent:i,$closing:p,onClick:p?void 0:s}),e(Kh,{"data-id":"modal",$relativeToParent:i,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:t(Jh,{children:[a&&e(Yh,{children:e(Ac,{icon:t=>e(It,{rotate:-90,...t}),size:Cc.L,onClick:a})}),c]})})]});return i?g:Zt(g,document.body)},Qh=o.div`
|
|
1384
1376
|
position: relative;
|
|
1385
1377
|
width: ${64}px;
|
|
1386
1378
|
height: ${({$height:e})=>e};
|
|
1387
1379
|
flex-shrink: 0;
|
|
1388
|
-
`,
|
|
1380
|
+
`,Zh=o.aside`
|
|
1389
1381
|
position: absolute;
|
|
1390
1382
|
top: 0;
|
|
1391
1383
|
left: 0;
|
|
@@ -1403,7 +1395,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1403
1395
|
transition:
|
|
1404
1396
|
width 200ms ease,
|
|
1405
1397
|
padding 200ms ease;
|
|
1406
|
-
`,
|
|
1398
|
+
`,eg=o.button`
|
|
1407
1399
|
display: flex;
|
|
1408
1400
|
align-items: center;
|
|
1409
1401
|
width: 100%;
|
|
@@ -1423,58 +1415,58 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1423
1415
|
&:active {
|
|
1424
1416
|
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
|
|
1425
1417
|
}
|
|
1426
|
-
`,
|
|
1418
|
+
`,tg=o.div`
|
|
1427
1419
|
width: ${40}px;
|
|
1428
1420
|
height: ${40}px;
|
|
1429
1421
|
display: flex;
|
|
1430
1422
|
align-items: center;
|
|
1431
1423
|
justify-content: center;
|
|
1432
1424
|
flex-shrink: 0;
|
|
1433
|
-
`,
|
|
1425
|
+
`,ng=o.div`
|
|
1434
1426
|
flex: 1 1 0;
|
|
1435
1427
|
min-width: 0;
|
|
1436
1428
|
overflow: hidden;
|
|
1437
1429
|
padding-right: 12px;
|
|
1438
1430
|
pointer-events: none;
|
|
1439
|
-
`,
|
|
1431
|
+
`,og=({height:n,icons:o})=>{const r=i(),[a,s]=Ft(!1);return e(Qh,{$height:n,children:e(Zh,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:o.map(({id:n,label:o,selected:i,icon:s,onClick:l})=>t(eg,{$selected:i,onClick:l,"aria-label":o,title:a?void 0:o,children:[e(tg,{children:e(s,{size:24,fill:r.v2.colors.white[500]})}),a&&e(ng,{children:e(cn,{size:on.S,weight:500,color:rn.Primary,nowrap:!0,children:o})})]},n))})})};var rg;!function(e){e.S="small",e.L="large"}(rg||(rg={}));const ig=o.div`
|
|
1440
1432
|
width: fit-content;
|
|
1441
1433
|
display: flex;
|
|
1442
1434
|
align-items: center;
|
|
1443
1435
|
gap: 8px;
|
|
1444
1436
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1445
|
-
`,
|
|
1446
|
-
width: ${({$size:e})=>e===
|
|
1447
|
-
height: ${({$size:e})=>e===
|
|
1437
|
+
`,ag=o.div`
|
|
1438
|
+
width: ${({$size:e})=>e===rg.S?"16px":"20px"};
|
|
1439
|
+
height: ${({$size:e})=>e===rg.S?"16px":"20px"};
|
|
1448
1440
|
display: flex;
|
|
1449
1441
|
align-items: center;
|
|
1450
1442
|
justify-content: center;
|
|
1451
1443
|
border-radius: 100%;
|
|
1452
1444
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1453
1445
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1454
|
-
`,
|
|
1446
|
+
`,sg=({"data-id":n,label:o,value:r,onChange:a,disabled:s,size:l=rg.L})=>{const c=i(),[d,u]=Ft(!1),p=r,h=l===rg.S?6:8,g=s?c.v2.colors.grey[400]:c.v2.colors.white[500],m=p?"transparent":s?c.v2.colors.grey[700]:d?c.v2.colors.silver[400]:c.v2.colors.silver[600],f=s?c.v2.colors.grey[600]:p?c.v2.colors.purple[500]:c.v2.colors.silver[900];return t(ig,{"data-id":n??"radio"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[e(ag,{$size:l,$borderColor:m,$backgroundColor:f,children:r?e(Ot,{size:h,fill:g}):null}),o&&e(cn,{size:l===rg.S?on.XXS:on.XS,children:o})]})},lg=o.div`
|
|
1455
1447
|
display: flex;
|
|
1456
1448
|
flex-direction: ${({$flexDirection:e})=>e};
|
|
1457
1449
|
gap: ${({$gap:e})=>e}px;
|
|
1458
|
-
`,
|
|
1450
|
+
`,cg=({label:n,direction:o,disabled:r,size:i,options:a,values:s,setValues:l})=>t(lg,{$flexDirection:o===Tn.Horizontal?"row":"column",$gap:o===Tn.Horizontal?16:8,children:[n&&e(cn,{children:n}),a.map(t=>e(sg,{...t,value:s[t.id],onChange:e=>{return n=t.id,o=e,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-${t.id}`))]}),dg=({currentStep:n,data:o,gap:r=12})=>e(kr,{$gap:r,children:o.map(o=>{const r=o.step<n,i=o.step===n;return t(Ir,{$gap:8,children:[r||o.forceDoneBadge?e(Su,{status:Mn.Success,label:"",leftIcon:yt}):e(Su,{status:Mn.Default,label:o.step.toString()}),e(cn,{size:i?on.M:on.XS,weight:i?500:400,opacity:i?1:.7,children:o.label})]},`stepper-item-${o.step}`)})});var ug;!function(e){e.Data="data",e.Pretty="pretty"}(ug||(ug={}));const pg=o.div`
|
|
1459
1451
|
${({$maxHeight:e})=>e?`\n height: ${e};\n flex: 0 0 auto;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n "}
|
|
1460
1452
|
width: 100%;
|
|
1461
1453
|
display: flex;
|
|
1462
1454
|
flex-direction: column;
|
|
1463
1455
|
overflow: hidden;
|
|
1464
|
-
`,
|
|
1456
|
+
`,hg=o.div`
|
|
1465
1457
|
width: 100%;
|
|
1466
1458
|
flex: 1;
|
|
1467
1459
|
display: flex;
|
|
1468
1460
|
flex-direction: column;
|
|
1469
|
-
`,
|
|
1461
|
+
`,gg=o.div`
|
|
1470
1462
|
flex-shrink: 0;
|
|
1471
1463
|
position: relative;
|
|
1472
1464
|
z-index: 2;
|
|
1473
|
-
|
|
1465
|
+
`,mg=o.div`
|
|
1474
1466
|
position: relative;
|
|
1475
1467
|
display: flex;
|
|
1476
1468
|
width: 100%;
|
|
1477
|
-
`,
|
|
1469
|
+
`,fg=o.div`
|
|
1478
1470
|
position: relative;
|
|
1479
1471
|
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1480
1472
|
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
|
|
@@ -1493,12 +1485,12 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1493
1485
|
|
|
1494
1486
|
${({$variant:e,$backgroundColor:t})=>{if(t)return r`
|
|
1495
1487
|
background-color: ${t};
|
|
1496
|
-
`;switch(e){case
|
|
1488
|
+
`;switch(e){case ug.Data:return r`
|
|
1497
1489
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1498
|
-
`;case
|
|
1490
|
+
`;case ug.Pretty:return r`
|
|
1499
1491
|
background-color: transparent;
|
|
1500
1492
|
`;default:return""}}}
|
|
1501
|
-
`,
|
|
1493
|
+
`,yg=o.div`
|
|
1502
1494
|
position: absolute;
|
|
1503
1495
|
top: 50%;
|
|
1504
1496
|
right: 0;
|
|
@@ -1506,7 +1498,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1506
1498
|
width: 1px;
|
|
1507
1499
|
height: 18px;
|
|
1508
1500
|
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1509
|
-
`,
|
|
1501
|
+
`,bg=o.div`
|
|
1510
1502
|
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1511
1503
|
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
|
|
1512
1504
|
|
|
@@ -1541,16 +1533,16 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1541
1533
|
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
1542
1534
|
box-sizing: border-box;
|
|
1543
1535
|
|
|
1544
|
-
${({$variant:e,$selected:t,$hovered:n,$isLastRow:o,$isFirstCell:i,$isLastCell:a})=>{switch(e){case
|
|
1536
|
+
${({$variant:e,$selected:t,$hovered:n,$isLastRow:o,$isFirstCell:i,$isLastCell:a})=>{switch(e){case ug.Data:return r`
|
|
1545
1537
|
border-bottom: ${({theme:e})=>o?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1546
1538
|
border-radius: ${o?i?"0 0 0 4px":a?"0 0 4px 0":"0":"0"};
|
|
1547
1539
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
1548
|
-
`;case
|
|
1540
|
+
`;case ug.Pretty:return r`
|
|
1549
1541
|
border: none;
|
|
1550
1542
|
border-radius: ${i?"12px 0 0 12px":a?"0 12px 12px 0":"0"};
|
|
1551
1543
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1552
1544
|
`;default:return""}}}
|
|
1553
|
-
|
|
1545
|
+
`,$g=o.div`
|
|
1554
1546
|
position: absolute;
|
|
1555
1547
|
top: 0;
|
|
1556
1548
|
left: 0;
|
|
@@ -1559,18 +1551,18 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1559
1551
|
height: 0;
|
|
1560
1552
|
overflow: hidden;
|
|
1561
1553
|
white-space: nowrap;
|
|
1562
|
-
`,
|
|
1554
|
+
`,vg=o.div`
|
|
1563
1555
|
display: inline-flex;
|
|
1564
1556
|
align-items: center;
|
|
1565
1557
|
padding: 18px 24px;
|
|
1566
1558
|
box-sizing: border-box;
|
|
1567
1559
|
white-space: nowrap;
|
|
1568
|
-
`,
|
|
1560
|
+
`,xg=o.div`
|
|
1569
1561
|
display: inline-flex;
|
|
1570
1562
|
align-items: center;
|
|
1571
1563
|
gap: 4px;
|
|
1572
1564
|
white-space: nowrap;
|
|
1573
|
-
`,
|
|
1565
|
+
`,Sg=o.div`
|
|
1574
1566
|
width: 100%;
|
|
1575
1567
|
height: 100%;
|
|
1576
1568
|
display: flex;
|
|
@@ -1578,7 +1570,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1578
1570
|
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1579
1571
|
gap: 4px;
|
|
1580
1572
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1581
|
-
`,
|
|
1573
|
+
`,wg=({variant:n,columns:o,rows:r,autoWidthColumnKeys:i,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d})=>{const[u,p]=Ft(null),h=zt(()=>r.map((h,g)=>{const{cells:m,onClick:f,isSelected:y=!1,onSelect:b,onDeselect:$,hideCheckbox:v}=h,x=u===g,S=s(h),w=(e,t)=>({$isLastRow:g===r.length-1,$isFirstCell:e,$isLastCell:t,$selected:y,$withClick:!!f,onClick:()=>f?.(),$hovered:!!f&&x,onMouseEnter:()=>p(g),onMouseLeave:()=>p(null)});return t(mg,{children:[d&&e(bg,{$variant:n,style:{flex:"0 0 68px"},...w(!0,!1),children:!v&&e(Xu,{value:y,onChange:()=>y?$?.():b?.()})},"checkbox-column"),o.map(({key:r,withTooltip:s,textAlign:u,flex:p,minWidth:h},f)=>{const y=m.find(e=>e.key===r),b=0===f&&!d,$=f===o.length-1,v=S.length&&(l&&$||c&&b||!l&&!c&&$),E="right"===u?"flex-end":"center"===u?"center":"flex-start",C=y?.component?e(y.component,{}):s?e(cn,{size:on.XS,align:u,nowrap:!0,children:y?.rawValue||"-"}):e(dp,{size:on.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),T=e(Ir,{$width:"100%",$justifyContent:E,children:C});return t(bg,{$variant:n,$flex:p,$minWidth:h,$autoWidth:i.has(r),$resolvedWidth:a[r],...w(b,$),children:[s?e(id,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:T}):T,v?e(_h,{isOpen:x,actions:S,positionRight:l,positionLeft:c}):null]},`row-${g}-cell-${f}`)})]},`row-${g}`)}),[r,u,s,l,c,d,o,i,a]);return e(gu,{gap:n===ug.Pretty?8:0,elements:h})},Eg=({columnKey:t,sortDirection:n,sortByKey:o,onSort:r})=>{const a=i(),s=o===t?a.v2.colors.white[500]:a.v2.colors.grey[400],l=n===An.Ascending?0:180;return e(Hd,{variant:Bd.Text,size:jd.S,leftIcon:()=>e(It,{fill:s,rotate:l}),onClick:()=>r(t)})},Cg=({columnKey:t,filters:n,onFilter:o,rowsUnfiltered:r,filterOverride:a})=>{const s=i(),l=n[t]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=zt(()=>{if(a)return a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0}));return Array.from(new Set(r.map(e=>e.cells.find(e=>e.key===t)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0}))},[r,t,a]);return e(tp,{items:c,withMultiSelect:!0,selectedIds:n[t]?.map(e=>e.toString())??[],setSelectedIds:e=>o(t,e),defaultOpen:!1,iconButtonProps:{leftIcon:t=>e(Rt,{fill:l,...t})}})},Tg=({variant:n,backgroundColor:o,columns:r,rowsUnfiltered:i,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:c,onSort:d,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>t(mg,{children:[h&&e(fg,{$variant:n,$backgroundColor:o,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:e(Xu,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),r.map(({key:g,label:m,withTooltip:f,tooltip:y,noSort:b,noFilter:$,filterOverride:v,flex:x,minWidth:S,textAlign:w},E)=>{const C=0===E&&!h,T=E===r.length-1,A=!(!y&&!f),I=A?e(cn,{size:on.XS,align:w,nowrap:!0,children:m}):e(dp,{size:on.XS,align:w,nowrap:!0,fullWidth:!1,children:m});return t(fg,{$variant:n,$backgroundColor:o,$flex:x,$minWidth:S,$isFirst:C,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[t(Sg,{$textAlign:w,children:[A?e(id,{text:y||m,children:I}):I,!b&&e(Eg,{columnKey:g,sortDirection:l,sortByKey:c,onSort:d}),!$&&e(Cg,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:v})]}),!T&&n===ug.Data&&e(yg,{})]},`column-${g}`)})]}),Ag=()=>{},Ig={},kg=[],Ng=({variant:n,maxHeight:o,headerBackgroundColor:r,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,filters:g,onFiltersChange:m})=>{const[f,y]=Ft(An.Ascending),[b,$]=Ft(""),[v,x]=Ft({}),S=g??v,w=Ut(e=>{$(e),y(e=>e===An.Ascending?An.Descending:An.Ascending)},[]),E=Ut((e,t)=>{const n={...S,[e]:t};m&&m(n),void 0===g&&x(n)},[S,m,g]),C=zt(()=>{const e=(e,t)=>{const n=e.cells.find(e=>e.key===t);return n&&(n.rawValue?.toString()||n.component?.({})?.props?.children?.toString())||""};return(b?[...c].sort((t,n)=>{const o=e(t,b),r=e(n,b);return(f===An.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)}):c).filter(t=>{for(const[n,o]of Object.entries(S)){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})},[c,b,f,S,l]),{partiallySelected:T,allSelected:A}=zt(()=>{const e=C.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[C]),I=zt(()=>{const e=new Set;for(const t of l)null!=t.flex&&e.add(t.key);const t=new Set;for(const n of c)for(const o of n.cells)o.component&&!e.has(o.key)&&t.add(o.key);return t},[c,l]),k=Bt(null),[N,D]=Ft({}),O=zt(()=>0===I.size?[]:l.filter(e=>I.has(e.key)).map(n=>{const o=[t(xg,{children:[e(cn,{size:on.XS,align:n.textAlign,children:n.label}),!n.noSort&&e(Eg,{columnKey:n.key,sortDirection:An.Ascending,sortByKey:"",onSort:Ag}),!n.noFilter&&e(Cg,{columnKey:n.key,filters:Ig,onFilter:Ag,rowsUnfiltered:kg,filterOverride:n.filterOverride})]},`mw-${n.key}-header`)];return c.forEach((t,r)=>{const i=t.cells.find(e=>e.key===n.key);i&&o.push(i.component?e(i.component,{},`mw-${n.key}-${r}`):e(cn,{size:on.XS,children:i.rawValue||"-"},`mw-${n.key}-${r}`))}),{key:n.key,nodes:o}}),[l,c,I]);return jt(()=>{if(!k.current||0===I.size)return void D(e=>0===Object.keys(e).length?e:{});const e={};k.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)}),D(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])?t:e)},[O,I]),t(pg,{$maxHeight:o,children:[O.length>0&&e($g,{ref:k,"aria-hidden":!0,children:O.flatMap(({key:t,nodes:n})=>n.map((n,o)=>e(vg,{"data-mw-key":t,children:n},`mw-${t}-${o}`)))}),t(hg,{$variant:n,children:[!i&&e(gg,{children:e(Tg,{variant:n,backgroundColor:r,columns:l,rowsUnfiltered:c,autoWidthColumnKeys:I,resolvedColumnWidths:N,sortDirection:f,sortByKey:b,onSort:w,filters:S,onFilter:E,withCheckboxes:h,partiallySelected:T,allSelected:A,onSelectAll:e=>{e?C.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):C.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),C.length?e(wg,{variant:n,columns:l,rows:C,autoWidthColumnKeys:I,resolvedColumnWidths:N,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h}):e(Nr,{$height:o,$fullHeight:!o,children:a?e(Ur,{withSpinner:!0}):e(ju,{...s})})]})]})};var Dg;!function(e){e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"}(Dg||(Dg={}));const Og=(e,t,n)=>{switch(t){case Dg.Purple:return e.v2.colors.purple[n?"300":"900"];case Dg.Yellow:return e.v2.colors.yellow[n?"300":"1000"];case Dg.Blue:return e.v2.colors.blue[n?"300":"1000"];case Dg.Pink:return e.v2.colors.red[n?"300":"1000"];case Dg.Green:return e.v2.colors.green[n?"300":"900"];case Dg.Loader:return e.v2.colors.grey[n?"600":"800"];default:return e.v2.colors.grey[n?"300":"500"]}},Rg=o.div`
|
|
1582
1574
|
display: flex;
|
|
1583
1575
|
align-items: center;
|
|
1584
1576
|
justify-content: center;
|
|
@@ -1597,16 +1589,16 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1597
1589
|
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
1598
1590
|
cursor: not-allowed;
|
|
1599
1591
|
`:r`
|
|
1600
|
-
background-color: ${({theme:e})=>
|
|
1592
|
+
background-color: ${({theme:e})=>Og(e,t)};
|
|
1601
1593
|
${n&&r`
|
|
1602
1594
|
cursor: pointer;
|
|
1603
1595
|
&:hover,
|
|
1604
1596
|
&:active {
|
|
1605
|
-
border: 1px solid ${({theme:e})=>
|
|
1597
|
+
border: 1px solid ${({theme:e})=>Og(e,t,!0)};
|
|
1606
1598
|
}
|
|
1607
1599
|
`}
|
|
1608
1600
|
`}
|
|
1609
|
-
`,
|
|
1601
|
+
`,_g=({variant:n=Dg.Default,label:o,leftIcon:r,rightIcon:a,onClick:s,disabled:l,flex:c})=>{const d=i(),u=l?d.v2.colors.grey[400]:n===Dg.Default?d.v2.colors.white[500]:Og(d,n,!0),p=n===Dg.Loader;return t(Rg,{$variant:n,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:c,children:[r&&e(r,{fill:u,size:16}),p?e(Ur,{withGradient:!0,title:o,titleSize:on.XXS}):e(cn,{color:u,size:on.XXS,nowrap:!0,children:o}),a&&e(a,{fill:u,size:16})]})},Lg=o.div`
|
|
1610
1602
|
padding: 6px 12px;
|
|
1611
1603
|
|
|
1612
1604
|
display: flex;
|
|
@@ -1624,7 +1616,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1624
1616
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1625
1617
|
}
|
|
1626
1618
|
`}
|
|
1627
|
-
`,
|
|
1619
|
+
`,Pg=o.textarea`
|
|
1628
1620
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
1629
1621
|
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
1630
1622
|
flex: 1;
|
|
@@ -1649,26 +1641,26 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1649
1641
|
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1650
1642
|
}
|
|
1651
1643
|
}
|
|
1652
|
-
`,
|
|
1644
|
+
`,Fg=({label:n,required:o,tooltip:r,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:c,value:d,onChange:u,disabled:p,maxWidth:h,minHeight:g,...m})=>{const f=Bt(null),y=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return t(kr,{$gap:6,children:[e(Cu,{label:n,tooltip:r,required:o,badge:i}),e(Lg,{$disabled:p,$error:!!a,children:e(Pg,{ref:f,"data-id":c,name:c,value:d,onChange:e=>{e.stopPropagation(),y(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:y,onBlur:y,disabled:p,$maxWidth:h,$minHeight:g,...m})}),e(Tu,{errorMessage:a,warnMessage:s,helpMessage:l})]})},Mg=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],zg=o.div`
|
|
1653
1645
|
flex: 1;
|
|
1654
1646
|
min-width: 0;
|
|
1655
|
-
`,
|
|
1647
|
+
`,Ug=o.div`
|
|
1656
1648
|
flex: 0 0 auto;
|
|
1657
1649
|
min-width: 140px;
|
|
1658
|
-
`,
|
|
1650
|
+
`,Bg=({name:n,label:o,tooltip:r,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:u=Mg,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:y})=>{const b=zt(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:$,unit:v}=zt(()=>((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}})(c,u,b),[c,u,b]),x=(e,t)=>{d(""!==e?`${e}${t}`:"")};return t(kr,{$width:y,$gap:6,children:[e(Cu,{label:o,tooltip:r,required:s,badge:i}),t(Ir,{$gap:8,$alignItems:"center",children:[e(zg,{children:e(Nu,{name:n,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:$,onChange:e=>x(hi(e.target.value),v)})}),e(Ug,{children:e(kh,{name:`${n}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[v],setValues:e=>x($,e[0]||v)})})]}),e(Tu,{errorMessage:h,warnMessage:g,helpMessage:m})]})},jg=o.div`
|
|
1659
1651
|
min-width: 500px;
|
|
1660
|
-
`,
|
|
1652
|
+
`,Wg=o.div`
|
|
1661
1653
|
display: flex;
|
|
1662
1654
|
flex-direction: column;
|
|
1663
1655
|
align-items: center;
|
|
1664
1656
|
gap: 16px;
|
|
1665
1657
|
padding: 24px;
|
|
1666
1658
|
width: 100%;
|
|
1667
|
-
`,
|
|
1659
|
+
`,Hg=o.div`
|
|
1668
1660
|
display: flex;
|
|
1669
1661
|
justify-content: center;
|
|
1670
1662
|
gap: 16px;
|
|
1671
1663
|
padding: 16px 24px;
|
|
1672
1664
|
width: 100%;
|
|
1673
1665
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1674
|
-
`,
|
|
1666
|
+
`,Gg=({visual:n,title:o,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e(qh,{isOpen:i,onClose:a,...d,children:t(jg,{children:[t(Wg,{children:[n&&e(n,{}),e(cn,{size:on.M,weight:500,color:rn.Primary,children:o}),e(kr,{$alignItems:"center",$gap:4,children:r.split("\n").map(t=>e(cn,{size:on.XS,weight:400,color:rn.Secondary,children:t},t))}),c]}),(s||l)&&t(Hg,{children:[s&&e(Hd,{"data-id":"deny",...s}),l&&e(Hd,{"data-id":"approve",...l})]})]})});export{ei as $,Ai as A,Su as B,Zn as C,Ii as D,_n as E,mn as F,lo as G,Qn as H,Ni as I,so as J,Kn as K,gu as L,Xu as M,ju as N,cc as O,kn as P,wc as Q,xh as R,io as S,In as T,rr as U,Rn as V,hc as W,yc as X,dc as Y,Vo as Z,Ho as _,Ti as a,ci as a$,Zr as a0,kr as a1,Cu as a2,Tu as a3,Hh as a4,vn as a5,ah as a6,nh as a7,Mh as a8,Ih as a9,$a as aA,Aa as aB,gs as aC,Ra as aD,ps as aE,Yi as aF,qi as aG,xp as aH,aa as aI,wd as aJ,Nr as aK,kh as aL,Ac as aM,Cc as aN,Ur as aO,ki as aP,jo as aQ,Bn as aR,th as aS,nn as aT,hn as aU,pn as aV,yn as aW,Ar as aX,bp as aY,Zp as aZ,Oo as a_,Di as aa,rn as ab,Hd as ac,jd as ad,Bd as ae,Fu as af,Oi as ag,Cn as ah,sg as ai,Ri as aj,rg as ak,Nu as al,Od as am,dp as an,Du as ao,dn as ap,Fg as aq,$o as ar,fi as as,qn as at,id as au,eo as av,ql as aw,Po as ax,Gg as ay,hs as az,cn as b,Ws as b$,Co as b0,Jr as b1,tn as b2,_g as b3,Jo as b4,Kc as b5,Mc as b6,mo as b7,Jn as b8,Vp as b9,zi as bA,Gl as bB,Kl as bC,va as bD,Mi as bE,Xl as bF,xs as bG,vs as bH,Es as bI,ws as bJ,bs as bK,ys as bL,Li as bM,ss as bN,_c as bO,oi as bP,tp as bQ,Yu as bR,Ju as bS,Do as bT,lc as bU,qh as bV,Hl as bW,As as bX,Us as bY,Bs as bZ,js as b_,go as ba,Yl as bb,Fo as bc,Un as bd,Dg as be,Wp as bf,lp as bg,ic as bh,Kr as bi,vu as bj,ko as bk,Ic as bl,jr as bm,Pc as bn,ec as bo,Ql as bp,si as bq,Mo as br,Ou as bs,On as bt,Ng as bu,ug as bv,zo as bw,_i as bx,Ui as by,Pi as bz,on as c,hl as c$,Gs as c0,Hs as c1,Xs as c2,Er as c3,Ml as c4,zl as c5,Ul as c6,Bl as c7,jl as c8,Wl as c9,sl as cA,ll as cB,al as cC,ks as cD,kl as cE,Nl as cF,Dl as cG,Il as cH,Rl as cI,_l as cJ,Ll as cK,Pl as cL,Fl as cM,Ol as cN,Tl as cO,Al as cP,yl as cQ,wl as cR,El as cS,Cl as cT,$l as cU,xl as cV,vl as cW,cl as cX,dl as cY,ul as cZ,pl as c_,Is as ca,Ns as cb,Ds as cc,Os as cd,_s as ce,Rs as cf,Ps as cg,Ls as ch,Ms as ci,Fs as cj,zs as ck,Cs as cl,Ts as cm,Ks as cn,Vs as co,el as cp,Qs as cq,Zs as cr,Ys as cs,qs as ct,Js as cu,rl as cv,il as cw,nl as cx,ol as cy,tl as cz,bc as d,ka as d$,gl as d0,ml as d1,fl as d2,bl as d3,Sl as d4,Cr as d5,Xh as d6,dg as d7,sc as d8,Ao as d9,Wi as dA,Bi as dB,ji as dC,Hi as dD,ms as dE,as as dF,rs as dG,is as dH,os as dI,ns as dJ,ds as dK,us as dL,cs as dM,ls as dN,zc as dO,Bg as dP,Fn as dQ,Fi as dR,ya as dS,Ta as dT,oa as dU,Ca as dV,na as dW,Da as dX,Na as dY,fa as dZ,Ea as d_,gn as da,Jl as db,Bc as dc,Wu as dd,gc as de,Xo as df,Ko as dg,Go as dh,Wo as di,Ec as dj,To as dk,Eo as dl,wo as dm,Sc as dn,un as dp,pp as dq,cp as dr,ar as ds,to as dt,Ep as du,Mp as dv,Ap as dw,Tr as dx,sa as dy,Ga as dz,vo as e,uo as e$,za as e0,ba as e1,Fa as e2,ha as e3,Zi as e4,ga as e5,pa as e6,ea as e7,ma as e8,Qa as e9,Va as eA,ja as eB,Ia as eC,np as eD,Ma as eE,Ja as eF,Ya as eG,Sa as eH,yr as eI,md as eJ,Hn as eK,wn as eL,jn as eM,Xn as eN,Nn as eO,Dn as eP,zn as eQ,En as eR,po as eS,Tn as eT,Sn as eU,Vn as eV,Ln as eW,ro as eX,oo as eY,no as eZ,Gn as e_,ua as ea,Ha as eb,Za as ec,qa as ed,es as ee,ts as ef,_a as eg,ta as eh,ra as ei,ia as ej,la as ek,da as el,ca as em,Gi as en,Xi as eo,Qi as ep,La as eq,Pa as er,Ua as es,Vl as et,Ki as eu,xa as ev,Ba as ew,Xa as ex,wa as ey,Ka as ez,$n as f,Fd as f$,co as f0,ao as f1,An as f2,xn as f3,Wn as f4,$r as f5,br as f6,Sr as f7,fo as f8,yo as f9,bi as fA,So as fB,$i as fC,vi as fD,Wa as fE,Ss as fF,$s as fG,fs as fH,Oa as fI,Ji as fJ,Vi as fK,Zl as fL,tc as fM,nc as fN,Lc as fO,vc as fP,xc as fQ,kc as fR,Dc as fS,Rc as fT,Fc as fU,Wc as fV,Sd as fW,Nd as fX,Ed as fY,xd as fZ,Xd as f_,pi as fa,Io as fb,No as fc,Lo as fd,xo as fe,Uo as ff,ho as fg,qo as fh,Qo as fi,Zo as fj,er as fk,tr as fl,nr as fm,or as fn,ir as fo,Wr as fp,Yr as fq,qr as fr,Qr as fs,ri as ft,ii as fu,li as fv,hi as fw,gi as fx,mi as fy,yi as fz,bn as g,Jd as g0,tu as g1,Qd as g2,Yd as g3,Ud as g4,Rr as g5,du as g6,Or as g7,pu as g8,_r as g9,Lr as ga,Pr as gb,Qc as gc,ld as gd,Dr as ge,Jc as gf,Yc as gg,qc as gh,ap as gi,sp as gj,Vu as gk,Mg as gl,Ip as gm,Oh as gn,_h as go,og as gp,cg as gq,$p as gr,lh as gs,eh as gt,sn as gu,rc as h,ti as i,ni as j,di as k,Pn as l,ui as m,Yn as n,Mn as o,fn as p,Xr as q,Bo as r,Vr as s,xi as t,Uc as u,Ro as v,Ph as w,Br as x,Ir as y,Uu as z};
|