@odigos/ui-kit 0.0.251 → 0.0.252
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 +12 -0
- package/lib/chunks/{connections-scope-CneIqjeg.js → connections-scope-Cb3gZ8MW.js} +1 -1
- package/lib/chunks/{flow-CQi_KYfs.js → flow-CAOY59Tu.js} +1 -1
- package/lib/chunks/{helpers-K1tnyqhm.js → helpers-CXxRJd5C.js} +1 -1
- package/lib/chunks/{index-Dv0RvKAp.js → index-BgflYoEI.js} +8 -8
- package/lib/chunks/{source-instrument-form-context-C79I_5cH.js → source-instrument-form-context-Rk2YlyRb.js} +1 -1
- package/lib/chunks/{ui-components-BKrLf2tx.js → ui-components-Dc15jc-B.js} +36 -35
- package/lib/chunks/use-odigos-api-qSWLSy9S.js +5 -0
- package/lib/components/_v2/drawer/index.d.ts +1 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/v2.js +4 -4
- package/lib/containers.js +1 -1
- package/lib/contexts/odigos-api/hooks/use-instrumentation-rules-api.d.ts +4 -4
- package/lib/contexts/odigos-api.js +1 -1
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets/v2.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/use-odigos-api-CDHW7ekQ.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as r,useTheme as i,keyframes as a,ThemeProvider as s}from"styled-components";import{VSquareIcon as l,XSquareIcon as c,ActionIcon as d,RenameAttributeIcon as u,PiiMaskingIcon as p,DeleteAttributeIcon as h,AddClusterInfoIcon as g,K8sLogo as m,ImageErrorIcon as f,KafkaLogo as y,RedisLogo as b,PostgresLogo as $,NginxLogo as v,MysqlLogo as x,ElixirLogo as S,SwiftLogo as w,RustLogo as E,RubyLogo as C,PhpLogo as T,CPlusPlusLogo as A,CSharpLogo as I,DotnetLogo as k,PythonLogo as N,NodejsLogo as D,GoLogo as O,JavaLogo as R,PyroscopeLogo as _,AwsXrayLogo as L,VictoriaMetricsLogo as P,UptraceLogo as F,TraceloopLogo as M,TingyunLogo as z,TempoLogo as U,TelemetryHubLogo as B,SumoLogicLogo as j,SplunkLogo as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as r,useTheme as i,keyframes as a,ThemeProvider as s}from"styled-components";import{VSquareIcon as l,XSquareIcon as c,ActionIcon as d,RenameAttributeIcon as u,PiiMaskingIcon as p,DeleteAttributeIcon as h,AddClusterInfoIcon as g,K8sLogo as m,ImageErrorIcon as f,KafkaLogo as y,RedisLogo as b,PostgresLogo as $,NginxLogo as v,MysqlLogo as x,ElixirLogo as S,SwiftLogo as w,RustLogo as E,RubyLogo as C,PhpLogo as T,CPlusPlusLogo as A,CSharpLogo as I,DotnetLogo as k,PythonLogo as N,NodejsLogo as D,GoLogo as O,JavaLogo as R,PyroscopeLogo as _,AwsXrayLogo as L,VictoriaMetricsLogo as P,UptraceLogo as F,TraceloopLogo as M,TingyunLogo as z,TempoLogo as U,TelemetryHubLogo as B,SumoLogicLogo as j,SplunkLogo as W,SignozLogo as H,SeqLogo as G,AwsS3Logo as X,QuickwitLogo as K,GigapipeLogo as V,QrynLogo as J,PrometheusLogo as Y,OpenTelemetryLogo as q,OracleLogo as Q,OpsVerseLogo as Z,OpenObserveLogo as ee,OneUptimeLogo as te,OdigosLogo as ne,ObserveLogo as oe,NewRelicLogo as re,MiddlewareLogo as ie,LumigoLogo as ae,LokiLogo as se,LogzioLogo as le,LightstepLogo as ce,Last9Logo as de,KloudmateLogo as ue,JaegerLogo as pe,InstanaLogo as he,HyperDxLogo as ge,HoneycombLogo as me,GroundcoverLogo as fe,GreptimeLogo as ye,GrafanaLogo as be,GoogleCloudPlatformLogo as $e,ElasticSearchLogo as ve,ElasticApmLogo as xe,DynatraceLogo as Se,DatadogLogo as we,Dash0Logo as Ee,CoralogixLogo as Ce,AwsCloudwatchLogo as Te,ClickhouseLogo as Ae,ChronosphereLogo as Ie,ChecklyLogo as ke,CauselyLogo as Ne,BonreeLogo as De,BetterStackLogo as Oe,AzureMonitorLogo as Re,AzureBlobLogo as _e,AxiomLogo as Le,AppDynamicsLogo as Pe,AlibabaCloudLogo as Fe,AlaudaLogo as Me,SamplingIcon as ze,InstrumentationRuleIcon as Ue,DestinationIcon as Be,SourceIcon as je,NamespacesIcon as We,PayloadCollectionIcon as He,HeadersCollectionIcon as Ge,CustomInstrumentationIcon as Xe,CodeAttributesIcon as Ke,TracesIcon as Ve,MetricsIcon as Je,LogsIcon as Ye,VmLogo as qe,DotsHorizontalIcon as Qe,QuestionCircleIcon as Ze,ExclamationTriangleIcon as et,ExclamationCircleIcon as tt,ISquareIcon as nt,AwsLogo as ot,AwsSecretsManagerLogo as rt,AwsStepFunctionsLogo as it,AwsEventBridgeLogo as at,AwsBedrockLogo as st,AwsApiGatewayLogo as lt,AwsEc2Logo as ct,AwsKinesisLogo as dt,AwsLambdaLogo as ut,AwsSnsLogo as pt,AwsSqsLogo as ht,AwsDynamoDbLogo as gt,AwsStsLogo as mt,OpenTelemetryLogoStripped as ft,VIcon as yt,CopyIcon as bt,ListIcon as $t,CodeIcon as vt,XIcon as xt,EyeClosedIcon as St,EyeOpenIcon as wt,SearchIcon as Et,MinusIcon as Ct,ChevronUpIcon as Tt,ChevronDownIcon as At,ArrowIcon as It,DotsVerticalIcon as kt,PlusIcon as Nt,TrashIcon as Dt,DotIcon as Ot,FilterIcon as Rt}from"../icons.js";import{create as _t}from"zustand";import{forwardRef as Lt,Fragment as Pt,useState as Ft,useEffect as Mt,useMemo as zt,useCallback as Ut,useRef as Bt,useLayoutEffect as jt,createElement as Wt}from"react";import Ht from"javascript-time-ago";import Gt from"javascript-time-ago/locale/en";import{Highlight as Xt,themes as Kt}from"prism-react-renderer";import{s as Vt}from"./vendor-BFqT13Me.js";import{persist as Jt,createJSONStorage as Yt}from"zustand/middleware";import{ErrorBoundary as qt}from"react-error-boundary";import Qt,{createPortal as Zt}from"react-dom";import{VList as en}from"virtua";const tn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var nn,on,rn;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.P="p",e.Span="span"}(nn||(nn={})),function(e){e.XXXS="xxxs",e.XXS="xxs",e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e.XXL="xxl",e.XXXL="xxxl"}(on||(on={})),function(e){e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Disable="disable",e.Error="error",e.Mandatory="mandatory",e.Link="link",e.Success="success"}(rn||(rn={}));const an=new Set(Object.values(rn)),sn=(e,t)=>{if("string"!=typeof(n=t)||!an.has(n))return t;var n;switch(t){case rn.Primary:return e.v2.colors.white[500];case rn.Secondary:return e.v2.colors.silver[200];case rn.Tertiary:return e.v2.colors.black[500];case rn.Disable:return e.v2.colors.grey[400];case rn.Error:return e.v2.colors.red[500];case rn.Mandatory:return e.v2.colors.red[600];case rn.Link:return e.v2.colors.purple[400];case rn.Success:return e.v2.colors.green[400];default:return}},ln=o.p`
|
|
2
2
|
margin: 0;
|
|
3
3
|
color: ${({$color:e,theme:t})=>sn(t,e)||t.v2.colors.grey[50]};
|
|
4
4
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -38,7 +38,7 @@ 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,Hn,Wn,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"}(Hn||(Hn={})),function(e){e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"}(Wn||(Wn={})),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)))||[],Ho=e=>e?.map(e=>zo(e))||[],Wo=e=>e.runtimeInfo?.detectedLanguages?.length?Ho(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]:H,[Jn.Signoz]:W,[Jn.Splunk]:H,[Jn.SplunkSapm]:H,[Jn.SplunkOtlp]:H,[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]:He,[_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]:We,[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",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`
|
|
42
42
|
border-radius: 100%;
|
|
43
43
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
44
|
position: relative;
|
|
@@ -190,7 +190,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
190
190
|
background-clip: text;
|
|
191
191
|
color: transparent;
|
|
192
192
|
animation: ${zr} 1s reverse linear infinite;
|
|
193
|
-
`,Br=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")}`},jr=({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?Br(d):"");Mt(()=>{if(!d)return;x(Br(d));const e=setInterval(()=>x(Br(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(Dr,{$gap:16,$alignItems:"center",children:[y?e($r,{scale:1.7,icon:b}):h?e(pr,{percentage:f}):g?e(yr,{scale:m}):null,(o||s||d||n)&&t(Dr,{$gap:8,$alignItems:"center",children:[t(Nr,{$gap:4,children:[n&&e(n,{}),u?e(Ur,{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]})]})},
|
|
193
|
+
`,Br=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")}`},jr=({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?Br(d):"");Mt(()=>{if(!d)return;x(Br(d));const e=setInterval(()=>x(Br(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(Dr,{$gap:16,$alignItems:"center",children:[y?e($r,{scale:1.7,icon:b}):h?e(pr,{percentage:f}):g?e(yr,{scale:m}):null,(o||s||d||n)&&t(Dr,{$gap:8,$alignItems:"center",children:[t(Nr,{$gap:4,children:[n&&e(n,{}),u?e(Ur,{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]})]})},Wr=(e,t)=>({[Mn.Default]:n=>ne({fill:sr(t,e,"300"),...n}),[Mn.Info]:n=>nt({fill:sr(t,e,"400"),...n}),[Mn.Error]:n=>tt({fill:sr(t,e,"500"),...n}),[Mn.Warning]:n=>et({fill:sr(t,e,"500"),...n}),[Mn.Success]:n=>l({fill:sr(t,e,"500"),...n}),[Un.Loading]:e=>jr({withSpinnerOld:!0,...e}),[Bn.Disabled]:n=>c({fill:sr(t,e,"400"),...n}),[Bn.Unknown]:n=>Ze({fill:sr(t,e,"300"),...n})}[e]),Hr=e=>{switch(e){case Qn.Success:return Mn.Success;case Qn.Error:case Qn.Failure:return Mn.Error;case Qn.Notice:return Mn.Warning;case Qn.Unsupported:case Qn.Unknown:return Mn.Info;case Qn.Irrelevant:case Qn.Disabled:return Un.Disabled;case Qn.Waiting:return Un.Loading;case Qn.Pending:default:return Mn.Default}},Gr=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},Xr={redis:b,mysql:x,postgresql:$,postgres:$,kafka:y,elasticsearch:ve,clickhouse:Ae,oracle:Q,aws:ot},Kr={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},Vr=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=Xr[n.toLowerCase()];if(e)return e}const o=t["messaging.system"];if(o){const e=Xr[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=Kr[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Xr))if(i.includes(e))return t;return Be},Jr=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 Yr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const qr=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=Yr(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},Qr=(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 Zr(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 ei(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 ti(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:Zr(t??null)}}function ni(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:ei(t??null)}}const oi=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),ri=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)},ii=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},ai=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},si=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,li=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,ci=e=>li.test(e),di=e=>e?.map(({status:e,type:t,reason:n,message:o})=>({status:e?.toLowerCase(),type:tn(t),reason:n?tn(n):"",message:o}))||[],ui=(e,t)=>{const n=Yr(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}))},pi=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>go[e]):[],hi=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>go[e]):[],gi=e=>{let t=e.replace(/[^\d.]/g,"");const n=t.indexOf(".");return-1!==n&&(t=t.slice(0,n+1)+t.slice(n+1).replace(/\./g,"")),t},mi=e=>e.replace(/[^\d]/g,""),fi=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},yi=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},bi=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}},$i=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=>$i(e)))}else if("object"==typeof o&&null!==o){const e=$i(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},vi=(e,t=2)=>JSON.stringify(e||{},null,t),xi=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Si=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),wi=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)},Ei=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;`}
|
|
@@ -214,7 +214,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
214
214
|
`,Ai=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",Hi="Create your first rule",Wi="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.",Ha="Rule will apply to all sources in the cluster",Wa="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",Hs="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Ws="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:",Hl="Filter noisy operations",Wl="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
|
+
`,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`
|
|
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
|
-
`,Nc=({"data-id":t,icon:n,size:o=Ic.S,onClick:r,disabled:i})=>e(kc,{"data-id":t,$size:o,$disabled:i,onClick:e=>{r&&!i&&(e.stopPropagation(),r(e))},children:e(n,{size:o})}),Dc=({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(Nc,{icon:n?yt:bt,size:o,onClick:()=>a(t)}),[n]),isCopied:n,copiedIndex:r,clickCopy:a}},Oc=e=>{const{addNotification:t}=pc(),{formData:n,handleFormChange:o,formErrors:r,handleErrorChange:i,resetFormData:a}=xc(e);return{formData:n,formErrors:r,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let r=!0;return n.name?ri(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={...wo(e),name:t};o(void 0,void 0,n)}}},Rc={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},_c=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=pc(),{formData:r,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=xc(Rc),[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=Yr(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,...Yr(o,{})}})).map(e=>{if(n){const t="string"==typeof n?Yr(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===pi(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={...wo(Rc),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(Yr(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},Lc={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[oo.HttpRequest]:null,[oo.HttpResponse]:null,[oo.DbQuery]:null,[oo.Messaging]:null},codeAttributes:{[eo.Column]:null,[eo.FilePath]:null,[eo.Function]:null,[eo.LineNumber]:null,[eo.Namespace]:null,[eo.StackTrace]:null},headersCollection:null,customInstrumentations:{[no.Java]:null,[no.Golang]:null}},Pc=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=xc(Lc);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={...wo(Lc),ruleName:e,notes:t,disabled:o,sourceScopes:r??null};i&&(c.payloadCollection={[oo.HttpRequest]:i[oo.HttpRequest]?{}:null,[oo.HttpResponse]:i[oo.HttpResponse]?{}:null,[oo.DbQuery]:i[oo.DbQuery]?{}:null,[oo.Messaging]:i[oo.Messaging]?{}:null}),a&&(c.codeAttributes={[eo.Column]:a[eo.Column]||null,[eo.FilePath]:a[eo.FilePath]||null,[eo.Function]:a[eo.Function]||null,[eo.LineNumber]:a[eo.LineNumber]||null,[eo.Namespace]:a[eo.Namespace]||null,[eo.StackTrace]:a[eo.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[no.Java]:l[no.Java]||null,[no.Golang]:l[no.Golang]||null}),n(void 0,void 0,c)}}},Fc=({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),Mc="data-ignore-outside-click",zc=(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(Mc))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])},Uc=(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},Bc=(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},jc=({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}},
|
|
228
|
+
`,Nc=({"data-id":t,icon:n,size:o=Ic.S,onClick:r,disabled:i})=>e(kc,{"data-id":t,$size:o,$disabled:i,onClick:e=>{r&&!i&&(e.stopPropagation(),r(e))},children:e(n,{size:o})}),Dc=({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(Nc,{icon:n?yt:bt,size:o,onClick:()=>a(t)}),[n]),isCopied:n,copiedIndex:r,clickCopy:a}},Oc=e=>{const{addNotification:t}=pc(),{formData:n,handleFormChange:o,formErrors:r,handleErrorChange:i,resetFormData:a}=xc(e);return{formData:n,formErrors:r,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let r=!0;return n.name?ri(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={...wo(e),name:t};o(void 0,void 0,n)}}},Rc={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},_c=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=pc(),{formData:r,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=xc(Rc),[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=Yr(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,...Yr(o,{})}})).map(e=>{if(n){const t="string"==typeof n?Yr(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===pi(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={...wo(Rc),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(Yr(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},Lc={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[oo.HttpRequest]:null,[oo.HttpResponse]:null,[oo.DbQuery]:null,[oo.Messaging]:null},codeAttributes:{[eo.Column]:null,[eo.FilePath]:null,[eo.Function]:null,[eo.LineNumber]:null,[eo.Namespace]:null,[eo.StackTrace]:null},headersCollection:null,customInstrumentations:{[no.Java]:null,[no.Golang]:null}},Pc=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=xc(Lc);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={...wo(Lc),ruleName:e,notes:t,disabled:o,sourceScopes:r??null};i&&(c.payloadCollection={[oo.HttpRequest]:i[oo.HttpRequest]?{}:null,[oo.HttpResponse]:i[oo.HttpResponse]?{}:null,[oo.DbQuery]:i[oo.DbQuery]?{}:null,[oo.Messaging]:i[oo.Messaging]?{}:null}),a&&(c.codeAttributes={[eo.Column]:a[eo.Column]||null,[eo.FilePath]:a[eo.FilePath]||null,[eo.Function]:a[eo.Function]||null,[eo.LineNumber]:a[eo.LineNumber]||null,[eo.Namespace]:a[eo.Namespace]||null,[eo.StackTrace]:a[eo.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[no.Java]:l[no.Java]||null,[no.Golang]:l[no.Golang]||null}),n(void 0,void 0,c)}}},Fc=({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),Mc="data-ignore-outside-click",zc=(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(Mc))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])},Uc=(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},Bc=(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},jc=({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}},Wc=({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"});zc(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})}}},Hc=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?Yr(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Gc={otelServiceName:"",currentStreamName:""},Xc=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=xc(Gc);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:r,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const o={...wo(Gc),otelServiceName:e||t.name||""};n(void 0,void 0,o)}}};try{Ht.addDefaultLocale(Gt)}catch(e){}const Kc=new Ht(Gt.locale),Vc=[{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"}],Jc=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Yc=()=>{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 Kc.format(Jc(e))}catch(e){return"-"}},[e]),formatDurationAgo:Ut((e,{units:t=2,style:n="long",suffix:o=!0}={})=>{try{const r=Jc(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 Vc){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])}},qc=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};
|
|
@@ -286,7 +286,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
286
286
|
padding: 8px;
|
|
287
287
|
box-sizing: border-box;
|
|
288
288
|
min-width: 0;
|
|
289
|
-
`,ld=({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:$}=
|
|
289
|
+
`,ld=({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:$}=Wc({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(s?.length||0),300)}),v=zt(()=>!!Qc(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(nd,{$fullWidth:d,$ellipsis:p,$hasText:!!s,onMouseEnter:x,onMouseMove:x,onMouseLeave:x,children:[c,o&&e(Ze,{fill:h.v2.colors.white[500]}),e(Ii,{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(ad,{children:["top"===b.edge&&e(rd,{$align:b.align,children:e(id,{$pointsUp:!0})}),e(sd,{children:t(od,{children:[(!!r||!!a)&&t(Nr,{$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(rd,{$align:b.align,children:e(id,{$pointsUp:!1})})]})})]}):e(n,{children:c})},cd=o(Nr)`
|
|
290
290
|
gap: 0;
|
|
291
291
|
`,dd=o.button`
|
|
292
292
|
padding: 4px 8px;
|
|
@@ -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
|
-
`,bd=({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=Yr(n,{}),t=$i(e);c=vi(r?Do(t):t)}else c=n;return a&&"json"===t?e($d,{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(yd,{...n({token:t})},`line-${r}-token-${o}`))},`line-${r}`))})})},$d=({darkMode:n,str:o})=>{const r=i(),a=(n,o)=>{const i=new Array(n).fill(n=>t(gd,{...n,children:[e(md,{}),e(md,{})]}));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(pd,{children:e(hd,{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(gd,{...c,children:[e(md,{children:e(fd,{children:l[0].content})}),e(md,{})]})]},`line-${s}`):2===l.length?e(gd,{...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(ld,{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=
|
|
326
|
+
`,bd=({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=Yr(n,{}),t=$i(e);c=vi(r?Do(t):t)}else c=n;return a&&"json"===t?e($d,{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(yd,{...n({token:t})},`line-${r}-token-${o}`))},`line-${r}`))})})},$d=({darkMode:n,str:o})=>{const r=i(),a=(n,o)=>{const i=new Array(n).fill(n=>t(gd,{...n,children:[e(md,{}),e(md,{})]}));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(pd,{children:e(hd,{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(gd,{...c,children:[e(md,{children:e(fd,{children:l[0].content})}),e(md,{})]})]},`line-${s}`):2===l.length?e(gd,{...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(ld,{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=Wr(i,n);return t||(t=Wr(Mn.Warning,n)),e(t,{},`${r}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(n.content,r),c=0===i;return e(md,{children:t(Nr,{children:[e(Nr,{children:l}),e(yd,{$noWrap:c,...o({token:n}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},vd={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"}},xd={v2:vd.v2,darkMode:!0,colors:{...vd.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:vd.font_family},Sd={v2:vd.v2,darkMode:!1,colors:{...vd.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:vd.font_family},wd=e=>e?xd:Sd;var Ed=Object.freeze({__proto__:null,baseTheme:vd,darkModeTheme:xd,getTheme:wd,lightModeTheme:Sd});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 Cd=({children:t})=>{const{darkMode:n}=ic();return e(s,{theme:wd(n),children:t})},Td={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 Ad=Object.freeze({__proto__:null,hex:Td});const Id={in:{left:a`
|
|
327
327
|
from { transform: translateX(-100%); }
|
|
328
328
|
to { transform: translateX(0); }
|
|
329
329
|
`,right:a`
|
|
@@ -416,7 +416,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
416
416
|
background-clip: text;
|
|
417
417
|
color: transparent;
|
|
418
418
|
animation: ${Bd} 1s reverse linear infinite;
|
|
419
|
-
`,
|
|
419
|
+
`,Wd=({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(jd,{$textColor:s,$stripColor:l,...r,children:t})};var Hd,Gd;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(Hd||(Hd={})),function(e){e.S="small",e.M="medium",e.L="large"}(Gd||(Gd={}));const Xd=o.button`
|
|
420
420
|
display: flex;
|
|
421
421
|
align-items: center;
|
|
422
422
|
justify-content: center;
|
|
@@ -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===Hd.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===Hd.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===Hd.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
|
-
`,Kd=Lt(({"data-id":o,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=
|
|
487
|
+
`,Kd=Lt(({"data-id":o,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=Hd.Primary,size:u=Gd.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:y,onClick:b,...$},v)=>{const x=i(),S=p||(u===Gd.L?18:16),w=u===Gd.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(Xd,{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(ld,{text:a,withIcon:!s,children:h||C?r?e(Wd,{size:x.v2.text.size[w],textColor:E}):e(Ud,{}):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})]})})})});Kd.displayName=Kd.name;const Vd=({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(Kd,{variant:Hd.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},Jd=({children:t})=>e(qt,{FallbackComponent:({error:t,...n})=>e(Cd,{children:e(Vd,{...n,error:t})}),children:t}),Yd=o.button`
|
|
488
488
|
position: relative;
|
|
489
489
|
width: ${({$size:e})=>e}px;
|
|
490
490
|
height: ${({$size:e})=>e}px;
|
|
@@ -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
|
-
`,hu=({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||
|
|
597
|
+
`,hu=({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||Wr(n,p);return t(iu,{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(su,{"data-id":"toast",$type:n,style:u,children:[e(b,{fill:p.text[n]}),t(lu,{$withAction:!!s,$overrideMaxWidth:d,children:[r&&e(cu,{$type:n,children:r}),r&&a&&e(Ld,{orientation:"vertical",type:n}),a&&e(du,{$type:n,children:a})]}),(!!s||!!l)&&t(uu,{children:[s&&e(pu,{"data-id":"toast-action",onClick:s.onClick,children:s.label}),l&&e(Qd,{"data-id":"toast-close",onClick:()=>y({asSeen:!0}),children:e(xt,{size:12})})]})]}),l&&e(au,{ref:f,$duration:c,$type:n})]})},gu=o(td)`
|
|
598
598
|
max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
|
|
599
599
|
white-space: nowrap;
|
|
600
600
|
overflow-x: auto;
|
|
@@ -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
|
+
`,Wu=({"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(Bu,{$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(ju,{"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(Uu,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected})})]})},Hu=o.div`
|
|
802
802
|
display: flex;
|
|
803
803
|
align-items: center;
|
|
804
804
|
justify-content: center;
|
|
@@ -807,7 +807,7 @@ 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
|
-
`,Gu=({icon:n=xt,hideIcon:o=!1,title:r="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(Dr,{$gap:12,$alignItems:"center",children:[!o&&e(
|
|
810
|
+
`,Gu=({icon:n=xt,hideIcon:o=!1,title:r="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(Dr,{$gap:12,$alignItems:"center",children:[!o&&e(Hu,{children:e(n,{size:32,fill:l})}),t(Dr,{$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(Kd,{variant:Hd.Secondary,...s})]})};var Xu;!function(e){e.S="small",e.L="large"}(Xu||(Xu={}));const Ku=o.div`
|
|
811
811
|
width: fit-content;
|
|
812
812
|
display: flex;
|
|
813
813
|
align-items: center;
|
|
@@ -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
|
-
`,rp=({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||Qu.Left,y:s||Zu.Bottom}),N=Bt(null);zc(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===Zu.Bottom?w?n.bottom+o:n.top:void 0,bottom:t===Zu.Top?w?window.innerHeight-n.top+o:window.innerHeight-n.bottom:void 0,left:e===Qu.Left?n.left:void 0,right:e===Qu.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?Qu.Right:Qu.Left),y:s||(e.clientY>window.innerHeight/2?Zu.Top:Zu.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(ep,{ref:N,children:[u&&e(Iu,{label:u}),f&&e(Kd,{...f,fullWidth:g,rightIcon:T?Tt:At,onClick:_}),y&&e(Kd,{variant:
|
|
876
|
+
`,rp=({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||Qu.Left,y:s||Zu.Bottom}),N=Bt(null);zc(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===Zu.Bottom?w?n.bottom+o:n.top:void 0,bottom:t===Zu.Top?w?window.innerHeight-n.top+o:window.innerHeight-n.bottom:void 0,left:e===Qu.Left?n.left:void 0,right:e===Qu.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?Qu.Right:Qu.Left),y:s||(e.clientY>window.innerHeight/2?Zu.Top:Zu.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(ep,{ref:N,children:[u&&e(Iu,{label:u}),f&&e(Kd,{...f,fullWidth:g,rightIcon:T?Tt:At,onClick:_}),y&&e(Kd,{variant:Hd.Text,size:Gd.S,...y,onClick:_}),"function"==typeof v?v({ChevronIcon:T?Tt:At,handleClick:_}):v,T&&Zt(t(tp,{$coords:D,"data-ignore-outside-click":"true",children:[h&&e(Wu,{value:P,onChange:F,width:"100%"}),b?e(jr,{withSpinner:!0,title:"Loading...",titleSize:on.XS}):M.length?e(np,{$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(op,{"data-id":`option-${o}`,$selected:s&&!a,onClick:()=>L(o),children:[a&&e(Ju,{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(kr,{$padding:"6px 0",children:e(Gu,{hideIcon:!0,title:"No results",subTitle:$})}),p&&!!M.length&&e(Kd,{label:"Done",onClick:()=>A(!1)})]}),document.body)]})},ip=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(rp,{open:$,onOpenChange:y,items:g,selectedIds:u,setSelectedIds:b,withMultiSelect:a,isLoading:i,emptyMessage:`No results matched the filter '${s}'`,fullWidth:!0,alignY:Zu.Bottom,children:e(Ru,{name:n,leftIcon:Et,placeholder:r,value:h,onChange:f,onFocus:m})})},ap=o.button`
|
|
877
877
|
width: 100%;
|
|
878
878
|
padding: 0;
|
|
879
879
|
padding-right: 12px;
|
|
@@ -911,7 +911,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
911
911
|
justify-content: space-between;
|
|
912
912
|
align-items: center;
|
|
913
913
|
gap: 8px;
|
|
914
|
-
`,cp=({label:n,icon:o,loading:r,disabled:i,onClick:a})=>{const[s,l]=Ft(!1);return t(ap,{$hovered:s,type:"button",disabled:i||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(sp,{$hovered:s,$hasIcon:!!o,children:o&&e(o,{size:36})}),t(lp,{$hasIcon:!!o,children:[r?e(
|
|
914
|
+
`,cp=({label:n,icon:o,loading:r,disabled:i,onClick:a})=>{const[s,l]=Ft(!1);return t(ap,{$hovered:s,type:"button",disabled:i||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(sp,{$hovered:s,$hasIcon:!!o,children:o&&e(o,{size:36})}),t(lp,{$hasIcon:!!o,children:[r?e(Wd,{size:16}):e(cn,{variant:nn.Span,align:"center",children:n}),e(It,{rotate:90,size:24})]})]})},dp=({buttons:t})=>e(Dr,{$gap:12,children:t.map(t=>e(cp,{...t},t.label))});var up;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(up||(up={}));const pp=({onAnyClick:t,actions:n})=>e(Nr,{$gap:8,$alignItems:"center",children:n?.map(n=>{if(!n)return null;switch(n.type){case up.Button:return e(Kd,{...n.buttonProps,onClick:e=>{n.buttonProps?.onClick?.(e),t?.()}},n.id);case up.ButtonDropData:return e(rp,{...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}})}),hp=({children:t,fullText:n,fullWidth:o=!0,...r})=>{const i=Bt(null),a=!!r.maxLines&&r.maxLines>0,s=Uc(i,{axis:a?"vertical":"horizontal",deps:[t]})?n??(null==t?"":String(t)):"";return e(ld,{text:s,fullWidth:o,ellipsis:!a,keepAlive:!0,children:e(cn,{ref:i,...r,children:t})})},gp=o.div`
|
|
915
915
|
display: flex;
|
|
916
916
|
align-items: center;
|
|
917
917
|
justify-content: center;
|
|
@@ -943,7 +943,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
943
943
|
flex-direction: column;
|
|
944
944
|
gap: 4px;
|
|
945
945
|
min-width: 0;
|
|
946
|
-
`,vp=({item:n,cellsPerRow:o})=>{const{CopyButton:r}=Dc(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=n;return i?e("div",{style:{flex:1}}):t($p,{$cellsPerRow:o,children:[!!a&&e(ld,{text:s,children:e(hp,{size:on.XXXS,color:rn.Secondary,nowrap:!0,children:a})}),t(Nr,{$gap:4,children:[u&&e(Cu,{...u}),l&&e(ld,{text:c,children:e(hp,{size:on.XS,nowrap:!0,children:l})}),d&&e(r,{value:l||u?.label?.toString()||"",size:Ic.XS})]})]})},xp=({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(fp,{$width:o,$bgTint:n,$fullHeight:r,$moreSpacing:i,children:[(a||s)&&t(yp,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?e(mp,{...a}):e("div",{}),t(Nr,{$gap:12,children:[p,v&&$&&e(pp,{actions:d}),S&&e(Nr,{$gap:8,children:c.map(e=>
|
|
946
|
+
`,vp=({item:n,cellsPerRow:o})=>{const{CopyButton:r}=Dc(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=n;return i?e("div",{style:{flex:1}}):t($p,{$cellsPerRow:o,children:[!!a&&e(ld,{text:s,children:e(hp,{size:on.XXXS,color:rn.Secondary,nowrap:!0,children:a})}),t(Nr,{$gap:4,children:[u&&e(Cu,{...u}),l&&e(ld,{text:c,children:e(hp,{size:on.XS,nowrap:!0,children:l})}),d&&e(r,{value:l||u?.label?.toString()||"",size:Ic.XS})]})]})},xp=({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(fp,{$width:o,$bgTint:n,$fullHeight:r,$moreSpacing:i,children:[(a||s)&&t(yp,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?e(mp,{...a}):e("div",{}),t(Nr,{$gap:12,children:[p,v&&$&&e(pp,{actions:d}),S&&e(Nr,{$gap:8,children:c.map(e=>Wt(Cu,{...e,key:e.key||e.label}))}),(x||s)&&t(Nr,{$gap:2,children:[x&&e(rp,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:kt},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&e(Kd,{variant:Hd.Text,size:Gd.S,leftIcon:f?Tt:At,onClick:b})]})]})]}),$&&g?e(bp,{children:g.map(t=>e(vp,{item:t,cellsPerRow:h&&h<=g.length?h:void 0},t.id))}):null,$&&m]})};var Sp;!function(e){e.S="small",e.M="medium"}(Sp||(Sp={}));const wp=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
|
-
`,Ep=Lt(({id:n,size:o=Sp.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===Sp.S?4:16,f="number"==typeof h?h:o===Sp.S?12:16,y=a??(i?e(mp,{...i}):null),b=l??(s?e(
|
|
956
|
+
`,Ep=Lt(({id:n,size:o=Sp.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===Sp.S?4:16,f="number"==typeof h?h:o===Sp.S?12:16,y=a??(i?e(mp,{...i}):null),b=l??(s?e(Wu,{...s}):null),$=!!y||!!b,v=!!d&&d.length>0;return t(wp,{ref:g,id:n,"data-section-name":n,$padding:f,$gap:m,$fullHeight:r,$backgroundColor:p,children:[$||v?t(Nr,{$gap:m,$justifyContent:"space-between",children:[$?t(Nr,{$gap:m,$alignItems:"center",children:[y,b,c]}):null,v&&e(pp,{actions:d??[]})]}):null,u]})});Ep.displayName="SectionCard";const Cp=o.div`
|
|
957
957
|
flex: 1;
|
|
958
958
|
align-self: stretch;
|
|
959
959
|
display: flex;
|
|
@@ -971,7 +971,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
971
971
|
padding: 8px;
|
|
972
972
|
border-radius: 12px;
|
|
973
973
|
background-color: ${({theme:e,$status:t})=>t===Bn.Unknown?sr(e,t,"800"):sr(e,t,"900")+Td["015"]};
|
|
974
|
-
`,Ap=({status:n,icon:o,title:r,description:a})=>{const s=i(),l=o??
|
|
974
|
+
`,Ap=({status:n,icon:o,title:r,description:a})=>{const s=i(),l=o??Wr(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(Cp,{$status:n,children:[e(Tp,{$status:n,children:e(l,{size:32,fill:c})}),t(Dr,{$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})]})]})},Ip=o.div`
|
|
975
975
|
flex: 0.5;
|
|
976
976
|
display: flex;
|
|
977
977
|
flex-direction: column;
|
|
@@ -1021,13 +1021,13 @@ 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
|
+
`,Wp=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
|
+
`,Hp=o.pre`
|
|
1031
1031
|
flex: 1;
|
|
1032
1032
|
margin: 0;
|
|
1033
1033
|
padding: 0;
|
|
@@ -1038,7 +1038,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1038
1038
|
flex-shrink: 0;
|
|
1039
1039
|
font-size: 14px;
|
|
1040
1040
|
color: #5ffb98; // TODO: add to theme
|
|
1041
|
-
`,Xp=({bgTint:n,label:o,value:r,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=Dc({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(Dr,{$gap:4,children:[o&&e(cn,{size:on.XXXS,color:rn.Secondary,children:o}),t(jp,{$bgTint:n,children:[t(
|
|
1041
|
+
`,Xp=({bgTint:n,label:o,value:r,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=Dc({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(Dr,{$gap:4,children:[o&&e(cn,{size:on.XXXS,color:rn.Secondary,children:o}),t(jp,{$bgTint:n,children:[t(Wp,{$hideCopy:i,children:[e(Hp,{ref:l,children:r.toLowerCase()}),c&&e(Gp,{children:"..."})]}),!i&&e(s,{value:r.toLowerCase(),size:Ic.XS})]})]})},Kp=o.div`
|
|
1042
1042
|
display: flex;
|
|
1043
1043
|
align-items: center;
|
|
1044
1044
|
gap: 8px;
|
|
@@ -1082,7 +1082,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1082
1082
|
flex-shrink: 0;
|
|
1083
1083
|
width: 24px;
|
|
1084
1084
|
height: 24px;
|
|
1085
|
-
`,qp=({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=
|
|
1085
|
+
`,qp=({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=Wr(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=sr(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)":sr(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]:sr(f,n,"600");return t(Kp,{$width:g,$withHover:!!d,$isExtended:c,$hideBackground:h,$backgroundColor:A,$hoverBackgroundColor:I,$slim:m,onClick:d,children:[!p&&e(Vp,{$backgroundColor:T,$slim:m,children:x?e(jr,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):e(y,{size:32,fill:C})}),t(Jp,{$gap:4,$justifyContent:"center",children:[t(Nr,{$gap:10,$alignItems:"center",children:[e(cn,{size:m?on.XS:on.S,weight:500,color:C,children:o}),a&&e(Cu,{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(Vp,{"data-id":l["data-id"],$backgroundColor:f.v2.colors.silver[750],$slim:m,$withClick:!!l.onClick,onClick:l.onClick,children:e(ld,{text:l.tooltip,children:e(l.icon,{size:32,fill:E})})}),b&&e(Yp,{children:e(b,{size:24,fill:E})})]})},Qp=o.div`
|
|
1086
1086
|
display: flex;
|
|
1087
1087
|
flex-direction: column;
|
|
1088
1088
|
width: 100%;
|
|
@@ -1105,7 +1105,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1105
1105
|
flex-shrink: 0;
|
|
1106
1106
|
width: 18px;
|
|
1107
1107
|
height: 18px;
|
|
1108
|
-
`,nh=({conditions:n,title:o,subTitle:r})=>{const a=i(),[s,l]=Ft(!1),c=Ut(()=>l(e=>!e),[]),d=zt(()=>di(n),[n]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=zt(()=>Po(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(Qp,{children:[e(qp,{status:b,invertColors:!0,title:$,subTitle:v,badgeLabel:x,loading:y,isExtended:s,toggleExtended:c}),s&&e(Zp,{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:
|
|
1108
|
+
`,nh=({conditions:n,title:o,subTitle:r})=>{const a=i(),[s,l]=Ft(!1),c=Ut(()=>l(e=>!e),[]),d=zt(()=>di(n),[n]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=zt(()=>Po(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(Qp,{children:[e(qp,{status:b,invertColors:!0,title:$,subTitle:v,badgeLabel:x,loading:y,isExtended:s,toggleExtended:c}),s&&e(Zp,{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:Wr(c,a),u=n===Mn.Error?sr(a,Mn.Error,"500"):n===Mn.Warning?sr(a,Mn.Warning,"500"):a.v2.colors.white[500],p=[o,i||r].filter(Boolean).join(" - ");return t(eh,{children:[e(th,{children:l||!d?e(jr,{withSpinnerOld:!0,scaleSpinnerOld:.8}):e(d,{size:18})}),e(cn,{size:on.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})};var oh,rh,ih;!function(e){e.Default="default",e.SuccessError="successError"}(oh||(oh={})),function(e){e.S="small",e.L="large"}(rh||(rh={})),function(e){e.Left="left",e.Right="right"}(ih||(ih={}));const ah=o.div`
|
|
1109
1109
|
display: flex;
|
|
1110
1110
|
align-items: center;
|
|
1111
1111
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -1216,7 +1216,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1216
1216
|
&:hover {
|
|
1217
1217
|
transform: scale(1.2);
|
|
1218
1218
|
}
|
|
1219
|
-
`,Eh=({status:n,message:o,action:r,fullWidth:a,smallIcon:s,onClose:l,duration:c=5e3,zIndex:d})=>{const u=i(),p=
|
|
1219
|
+
`,Eh=({status:n,message:o,action:r,fullWidth:a,smallIcon:s,onClose:l,duration:c=5e3,zIndex:d})=>{const u=i(),p=Wr(n,u),h=sr(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(bh,{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(vh,{$status:n,$fullWidth:a,children:[e("div",{children:e(xh,{$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(Sh,{children:[r&&e(wh,{"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(Nc,{"data-id":"note-close",icon:xt,size:Ic.XS,onClick:()=>v({asSeen:!0})})]})]}),l&&e($h,{ref:y,$status:n,$duration:c})]})},Ch=o.div`
|
|
1220
1220
|
display: flex;
|
|
1221
1221
|
align-items: center;
|
|
1222
1222
|
gap: 8px;
|
|
@@ -1237,6 +1237,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1237
1237
|
gap: 12px;
|
|
1238
1238
|
|
|
1239
1239
|
width: ${({$width:e})=>e};
|
|
1240
|
+
min-width: ${({$minWidth:e})=>e||"unset"};
|
|
1240
1241
|
padding: 12px;
|
|
1241
1242
|
border-radius: ${({$position:e})=>"left"===e?"0 20px 20px 0":"20px 0 0 20px"};
|
|
1242
1243
|
background: ${({theme:e})=>e.v2.colors.black[500]};
|
|
@@ -1253,7 +1254,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1253
1254
|
|
|
1254
1255
|
height: calc(100% - ${56}px);
|
|
1255
1256
|
overflow-y: auto;
|
|
1256
|
-
`,Dh=({isOpen:o,hideOverlay:r=!1,disableAnimation:i=!1,position:a="right",width:s="600px",
|
|
1257
|
+
`,Dh=({isOpen:o,hideOverlay:r=!1,disableAnimation:i=!1,position:a="right",width:s="600px",minWidth:l,header:c,footer:d,children:u})=>(Ec(o),o?Zt(t(n,{children:[!r&&e(_r,{onClick:c?.onCloseDisabled?void 0:c?.onClose}),t(kh,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[c&&e(yh,{...c}),e(Nh,{children:u}),d&&e(Ih,{...d})]})]}),document.body):null),Oh=({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(rp,{withMultiSelect:r,withSearch:i,fullWidth:!0,alignX:Qu.Left,items:t,selectedIds:n,setSelectedIds:o,children:({ChevronIcon:t,handleClick:n})=>e(Ru,{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})})},Rh=o.header`
|
|
1257
1258
|
position: relative;
|
|
1258
1259
|
width: 100%;
|
|
1259
1260
|
padding: 12px 18px;
|
|
@@ -1281,7 +1282,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1281
1282
|
left: ${({$left:e})=>e||"unset"};
|
|
1282
1283
|
top: 50%;
|
|
1283
1284
|
transform: translateY(-50%);
|
|
1284
|
-
`,Fh=({isOpen:t,actions:n,positionRight:o,positionLeft:r})=>t?e(Ph,{$right:o,$left:r,children:n.map(t=>{if(!t)return null;const{tooltip:n,...o}=t;return e(ld,{text:n||"",children:e(Kd,{...o,variant:
|
|
1285
|
+
`,Fh=({isOpen:t,actions:n,positionRight:o,positionLeft:r})=>t?e(Ph,{$right:o,$left:r,children:n.map(t=>{if(!t)return null;const{tooltip:n,...o}=t;return e(ld,{text:n||"",children:e(Kd,{...o,variant:Hd.Secondary,size:Gd.S})},o.id)})}):null,Mh=o.div`
|
|
1285
1286
|
display: flex;
|
|
1286
1287
|
align-items: center;
|
|
1287
1288
|
justify-content: center;
|
|
@@ -1303,7 +1304,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1303
1304
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1304
1305
|
border-radius: 8px;
|
|
1305
1306
|
padding: 4px 8px;
|
|
1306
|
-
`,jh=({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(Bh,{children:t(Dr,{"data-id":r,$gap:6,children:[e(Iu,{label:a,tooltip:s,required:c,badge:l}),e(Dr,{$gap:8,children:$.map((r,i)=>{const a=i===$.length-1;return t(Nr,{$gap:8,$alignItems:"center",children:[e(Ru,{width:"100%",autoFocus:oi(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(Kd,{leftIcon:Nt,variant:
|
|
1307
|
+
`,jh=({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(Bh,{children:t(Dr,{"data-id":r,$gap:6,children:[e(Iu,{label:a,tooltip:s,required:c,badge:l}),e(Dr,{$gap:8,children:$.map((r,i)=>{const a=i===$.length-1;return t(Nr,{$gap:8,$alignItems:"center",children:[e(Ru,{width:"100%",autoFocus:oi(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(Kd,{leftIcon:Nt,variant:Hd.Secondary,size:Gd.S,disabled:y,onClick:()=>(()=>{const e=n.length?wo(n):[wo("")];e.push(""),o(e)})()}),e(Kd,{leftIcon:b?Dt:()=>e(Dt,{fill:m.v2.colors.red[500]}),variant:Hd.Secondary,size:Gd.S,disabled:b,onClick:()=>(e=>{const t=[...n||[]].filter((t,n)=>n!==e);t.length||t.push(""),o(t)})(i)})]},`input-list-${i}`)})}),e(ku,{errorMessage:d,warnMessage:u,helpMessage:p})]})})},Wh=({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(Oh,{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&&oi(v);return e(Ru,{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})}},Hh=o.div`
|
|
1307
1308
|
width: 100%;
|
|
1308
1309
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1309
1310
|
border-radius: 8px;
|
|
@@ -1319,7 +1320,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1319
1320
|
width: 72px;
|
|
1320
1321
|
vertical-align: top;
|
|
1321
1322
|
padding-top: ${({$topOffset:e})=>e}px;
|
|
1322
|
-
`,Vh=({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?wo(o):[wo(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(
|
|
1323
|
+
`,Vh=({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?wo(o):[wo(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(Hh,{children:t(Dr,{"data-id":a,$gap:0,children:[e(Iu,{label:s,tooltip:l,required:d,badge:c}),e(Gh,{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(Xh,{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(Xh,{children:t(Dr,{$gap:6,children:[c&&(o.label?e(Iu,{label:o.label,tooltip:o.tooltip}):e(Iu,{label:"\\u00A0"})),e(Wh,{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(Kh,{$topOffset:d,children:t(Nr,{$gap:8,$justifyContent:"flex-end",children:[a&&e(Kd,{leftIcon:Nt,variant:Hd.Secondary,size:Gd.S,disabled:u,onClick:()=>(()=>{const e=o.length?wo(o):[wo(y)];e.push(wo(y)),r(e)})()}),e(Kd,{leftIcon:u?Dt:()=>e(Dt,{fill:f.v2.colors.red[500]}),variant:Hd.Secondary,size:Gd.S,disabled:u,onClick:()=>(e=>{const t=o.filter((t,n)=>n!==e);t.length||t.push(wo(y)),r(t)})(i)})]})})]},`input-table-matrix-${i}-${l}`)})]},`input-table-row-${i}`)})})}),e(ku,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},Jh=o.div`
|
|
1323
1324
|
display: flex;
|
|
1324
1325
|
align-items: center;
|
|
1325
1326
|
justify-content: space-between;
|
|
@@ -1577,7 +1578,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1577
1578
|
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1578
1579
|
gap: 4px;
|
|
1579
1580
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1580
|
-
`,Ag=({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($g,{children:[d&&e(Sg,{$variant:n,style:{flex:"0 0 68px"},...w(!0,!1),children:!v&&e(Ju,{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(hp,{size:on.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),T=e(Nr,{$width:"100%",$justifyContent:E,children:C});return t(Sg,{$variant:n,$flex:p,$minWidth:h,$autoWidth:i.has(r),$resolvedWidth:a[r],...w(b,$),children:[s?e(ld,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:T}):T,v?e(Fh,{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(yu,{gap:n===mg.Pretty?8:0,elements:h})},Ig=({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(Kd,{variant:
|
|
1581
|
+
`,Ag=({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($g,{children:[d&&e(Sg,{$variant:n,style:{flex:"0 0 68px"},...w(!0,!1),children:!v&&e(Ju,{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(hp,{size:on.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),T=e(Nr,{$width:"100%",$justifyContent:E,children:C});return t(Sg,{$variant:n,$flex:p,$minWidth:h,$autoWidth:i.has(r),$resolvedWidth:a[r],...w(b,$),children:[s?e(ld,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:T}):T,v?e(Fh,{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(yu,{gap:n===mg.Pretty?8:0,elements:h})},Ig=({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(Kd,{variant:Hd.Text,size:Gd.S,leftIcon:()=>e(It,{fill:s,rotate:l}),onClick:()=>r(t)})},kg=({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(rp,{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})}})},Ng=({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($g,{children:[h&&e(vg,{$variant:n,$backgroundColor:o,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:e(Ju,{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(hp,{size:on.XS,align:w,nowrap:!0,fullWidth:!1,children:m});return t(vg,{$variant:n,$backgroundColor:o,$flex:x,$minWidth:S,$isFirst:C,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[t(Tg,{$textAlign:w,children:[A?e(ld,{text:y||m,children:I}):I,!b&&e(Ig,{columnKey:g,sortDirection:l,sortByKey:c,onSort:d}),!$&&e(kg,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:v})]}),!T&&n===mg.Data&&e(xg,{})]},`column-${g}`)})]}),Dg=()=>{},Og={},Rg=[],_g=({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(Cg,{children:[e(cn,{size:on.XS,align:n.textAlign,children:n.label}),!n.noSort&&e(Ig,{columnKey:n.key,sortDirection:An.Ascending,sortByKey:"",onSort:Dg}),!n.noFilter&&e(kg,{columnKey:n.key,filters:Og,onFilter:Dg,rowsUnfiltered:Rg,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(fg,{$maxHeight:o,children:[O.length>0&&e(wg,{ref:k,"aria-hidden":!0,children:O.flatMap(({key:t,nodes:n})=>n.map((n,o)=>e(Eg,{"data-mw-key":t,children:n},`mw-${t}-${o}`)))}),t(yg,{$variant:n,children:[!i&&e(bg,{children:e(Ng,{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(Ag,{variant:n,columns:l,rows:C,autoWidthColumnKeys:I,resolvedColumnWidths:N,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h}):e(Or,{$height:o,$fullHeight:!o,children:a?e(jr,{withSpinner:!0}):e(Gu,{...s})})]})]})};var Lg;!function(e){e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"}(Lg||(Lg={}));const Pg=(e,t,n)=>{switch(t){case Lg.Purple:return e.v2.colors.purple[n?"300":"900"];case Lg.Yellow:return e.v2.colors.yellow[n?"300":"1000"];case Lg.Blue:return e.v2.colors.blue[n?"300":"1000"];case Lg.Pink:return e.v2.colors.red[n?"300":"1000"];case Lg.Green:return e.v2.colors.green[n?"300":"900"];case Lg.Loader:return e.v2.colors.grey[n?"600":"800"];default:return e.v2.colors.grey[n?"300":"500"]}},Fg=o.div`
|
|
1581
1582
|
display: flex;
|
|
1582
1583
|
align-items: center;
|
|
1583
1584
|
justify-content: center;
|
|
@@ -1648,13 +1649,13 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1648
1649
|
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1649
1650
|
}
|
|
1650
1651
|
}
|
|
1651
|
-
`,Bg=({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(Dr,{$gap:6,children:[e(Iu,{label:n,tooltip:r,required:o,badge:i}),e(zg,{$disabled:p,$error:!!a,children:e(Ug,{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(ku,{errorMessage:a,warnMessage:s,helpMessage:l})]})},jg=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],
|
|
1652
|
+
`,Bg=({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(Dr,{$gap:6,children:[e(Iu,{label:n,tooltip:r,required:o,badge:i}),e(zg,{$disabled:p,$error:!!a,children:e(Ug,{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(ku,{errorMessage:a,warnMessage:s,helpMessage:l})]})},jg=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],Wg=o.div`
|
|
1652
1653
|
flex: 1;
|
|
1653
1654
|
min-width: 0;
|
|
1654
|
-
`,
|
|
1655
|
+
`,Hg=o.div`
|
|
1655
1656
|
flex: 0 0 auto;
|
|
1656
1657
|
min-width: 140px;
|
|
1657
|
-
`,Gg=({name:n,label:o,tooltip:r,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:u=jg,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(Dr,{$width:y,$gap:6,children:[e(Iu,{label:o,tooltip:r,required:s,badge:i}),t(Nr,{$gap:8,$alignItems:"center",children:[e(
|
|
1658
|
+
`,Gg=({name:n,label:o,tooltip:r,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:u=jg,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(Dr,{$width:y,$gap:6,children:[e(Iu,{label:o,tooltip:r,required:s,badge:i}),t(Nr,{$gap:8,$alignItems:"center",children:[e(Wg,{children:e(Ru,{name:n,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:$,onChange:e=>x(mi(e.target.value),v)})}),e(Hg,{children:e(Oh,{name:`${n}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[v],setValues:e=>x($,e[0]||v)})})]}),e(ku,{errorMessage:h,warnMessage:g,helpMessage:m})]})},Xg=o.div`
|
|
1658
1659
|
min-width: 500px;
|
|
1659
1660
|
`,Kg=o.div`
|
|
1660
1661
|
display: flex;
|
|
@@ -1670,4 +1671,4 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
|
|
|
1670
1671
|
padding: 16px 24px;
|
|
1671
1672
|
width: 100%;
|
|
1672
1673
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1673
|
-
`,Jg=({visual:n,title:o,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e(tg,{isOpen:i,onClose:a,...d,children:t(Xg,{children:[t(Kg,{children:[n&&e(n,{}),e(cn,{size:on.M,weight:500,color:rn.Primary,children:o}),e(Dr,{$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(Vg,{children:[s&&e(Kd,{"data-id":"deny",...s}),l&&e(Kd,{"data-id":"approve",...l})]})]})});export{hc as $,ki as A,ri as B,Ni as C,fn as D,_n as E,Dr as F,hi as G,lo as H,ru as I,Yr as J,pi as K,Pn as L,Oi as M,Gu as N,to as O,kn as P,no as Q,po as R,Mn as S,td as T,uo as U,Zn as V,Yn as W,ar as X,Rn as Y,fc as Z,vc as _,rc as a,nh as a$,qo as a0,
|
|
1674
|
+
`,Jg=({visual:n,title:o,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e(tg,{isOpen:i,onClose:a,...d,children:t(Xg,{children:[t(Kg,{children:[n&&e(n,{}),e(cn,{size:on.M,weight:500,color:rn.Primary,children:o}),e(Dr,{$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(Vg,{children:[s&&e(Kd,{"data-id":"deny",...s}),l&&e(Kd,{"data-id":"approve",...l})]})]})});export{hc as $,ki as A,ri as B,Ni as C,fn as D,_n as E,Dr as F,hi as G,lo as H,ru as I,Yr as J,pi as K,Pn as L,Oi as M,Gu as N,to as O,kn as P,no as Q,po as R,Mn as S,td as T,uo as U,Zn as V,Yn as W,ar as X,Rn as Y,fc as Z,vc as _,rc as a,nh as a$,qo as a0,Ko as a1,ti as a2,ni as a3,Iu as a4,Ju as a5,ku as a6,Vh as a7,vn as a8,ch as a9,Jg as aA,ms as aB,xa as aC,ka as aD,fs as aE,La as aF,gs as aG,Qi as aH,Zi as aI,Ep as aJ,la as aK,Td as aL,Or as aM,Oh as aN,Nc as aO,Ic as aP,jr as aQ,Di as aR,Go as aS,Bn as aT,rh as aU,nn as aV,hn as aW,pn as aX,yn as aY,kr as aZ,xp as a_,ih as aa,jh as ab,Ri as ac,rn as ad,Kd as ae,Gd as af,Hd as ag,Uu as ah,_i as ai,Cn as aj,ug as ak,Li as al,lg as am,Ru as an,hp as ao,_u as ap,dn as aq,Bg as ar,So as as,bi as at,eo as au,ld as av,oo as aw,Cu as ax,Zl as ay,zo as az,Xn as b,Xl as b$,Lo as b0,ui as b1,Io as b2,qr as b3,tn as b4,Mg as b5,Qo as b6,Yc as b7,Bc as b8,bo as b9,mg as bA,jo as bB,Pi as bC,ji as bD,Mi as bE,Bi as bF,Kl as bG,Jl as bH,Sa as bI,Ui as bJ,Vl as bK,ws as bL,Ss as bM,Ts as bN,Cs as bO,vs as bP,$s as bQ,Fi as bR,cs as bS,Fc as bT,ii as bU,rp as bV,Zu as bW,Qu as bX,_o as bY,uc as bZ,tg as b_,Qn as ba,qp as bb,yo as bc,Ql as bd,Uo as be,Un as bf,Lg as bg,Xp as bh,up as bi,Wu as bj,yu as bk,lc as bl,Jr as bm,Uh as bn,wu as bo,Oo as bp,Dc as bq,Hr as br,zc as bs,nc as bt,ec as bu,ci as bv,Bo as bw,Lu as bx,On as by,_g as bz,In as c,Sl as c$,ks as c0,js as c1,Ws as c2,Hs as c3,Gs as c4,Ks as c5,Xs as c6,Vs as c7,Tr as c8,Ul as c9,al as cA,sl as cB,rl as cC,il as cD,ol as cE,cl as cF,dl as cG,ll as cH,Ds as cI,Dl as cJ,Ol as cK,Rl as cL,Nl as cM,Ll as cN,Pl as cO,Fl as cP,Ml as cQ,zl as cR,_l as cS,Il as cT,kl as cU,$l as cV,Cl as cW,Tl as cX,Al as cY,xl as cZ,wl as c_,Bl as ca,jl as cb,Wl as cc,Hl as cd,Gl as ce,Ns as cf,Os as cg,Rs as ch,_s as ci,Ps as cj,Ls as ck,Ms as cl,Fs as cm,Us as cn,zs as co,Bs as cp,As as cq,Is as cr,Js as cs,Ys as ct,nl as cu,el as cv,tl as cw,Qs as cx,Zs as cy,qs as cz,Wc as d,Ra as d$,ul as d0,pl as d1,hl as d2,gl as d3,ml as d4,fl as d5,yl as d6,bl as d7,vl as d8,El as d9,Np as dA,Ir as dB,ca as dC,Ka as dD,Gi as dE,Wi as dF,Hi as dG,Xi as dH,ys as dI,ls as dJ,as as dK,ss as dL,is as dM,rs as dN,ps as dO,hs as dP,us as dQ,ds as dR,jc as dS,Gg as dT,Fn as dU,zi as dV,$a as dW,Ia as dX,ia as dY,Aa as dZ,ra as d_,Ar as da,Yh as db,gg as dc,dc as dd,No as de,gn as df,ql as dg,Hc as dh,Xu as di,yc as dj,Jo as dk,Yo as dl,Vo as dm,Xo as dn,Ac as dp,ko as dq,Ao as dr,To as ds,un as dt,mp as du,pp as dv,lr as dw,ro as dx,Ap as dy,Bp as dz,Ii as e,qn as e$,Oa as e0,ba as e1,Ta as e2,Da as e3,Ba as e4,va as e5,za as e6,ma as e7,ta as e8,fa as e9,Wa as eA,Va as eB,Ca as eC,Ja as eD,Ya as eE,Ha as eF,Na as eG,ip as eH,Ua as eI,qa as eJ,Qa as eK,Ea as eL,$r as eM,bd as eN,Vn as eO,Hn as eP,wn as eQ,jn as eR,Jn as eS,Kn as eT,Nn as eU,Dn as eV,zn as eW,En as eX,mo as eY,Tn as eZ,Sn as e_,ga as ea,na as eb,ya as ec,es as ed,ha as ee,Xa as ef,ts as eg,Za as eh,ns as ei,os as ej,Pa as ek,oa as el,aa as em,sa as en,da as eo,pa as ep,ua as eq,Ki as er,Vi as es,ea as et,Fa as eu,Ma as ev,ja as ew,Yl as ex,Ji as ey,wa as ez,cn as f,Cd as f$,Ln as f0,so as f1,ao as f2,io as f3,Gn as f4,go as f5,ho as f6,co as f7,An as f8,xn as f9,di as fA,mi as fB,fi as fC,yi as fD,$i as fE,vi as fF,Co as fG,xi as fH,Si as fI,Ga as fJ,Es as fK,xs as fL,bs as fM,_a as fN,qi as fO,Yi as fP,tc as fQ,oc as fR,ic as fS,Mc as fT,wc as fU,Ec as fV,Oc as fW,_c as fX,Pc as fY,Uc as fZ,Xc as f_,Wn as fa,xr as fb,vr as fc,Er as fd,$o as fe,vo as ff,gi as fg,Do as fh,Ro as fi,Mo as fj,Eo as fk,Wo as fl,fo as fm,er as fn,tr as fo,nr as fp,or as fq,rr as fr,ir as fs,sr as ft,Gr as fu,Qr as fv,Zr as fw,ei as fx,ai as fy,si as fz,Wr as g,Rd as g0,Ad as g1,Ed as g2,Jd as g3,Ud as g4,Qd as g5,tu as g6,Zd as g7,Wd as g8,Lr as g9,hu as ga,_r as gb,mu as gc,Pr as gd,Fr as ge,Mr as gf,ud as gg,Rr as gh,Qc as gi,Zc as gj,ed as gk,cp as gl,dp as gm,qu as gn,jg as go,Dp as gp,Lh as gq,Fh as gr,sg as gs,hg as gt,Sp as gu,uh as gv,oh as gw,sn as gx,on as h,Vr as i,Ho as j,Po as k,Dh as l,Ld as m,Nr as n,pc as o,Tc as p,Eh as q,xc as r,wo as s,wi as t,Cc as u,$n as v,bn as w,oi as x,mn as y,sc as z};
|