@odigos/ui-kit 0.0.258 → 0.0.260

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/lib/constants.js CHANGED
@@ -1 +1 @@
1
- export{A as ACTION_OPTIONS,fC as ALL_SOURCES,bw as BTN_CANCEL,dz as BTN_CREATE_FIRST_RULE,bD as BTN_CREATE_RULE,bz as BTN_DELETE_RULE,dP as BTN_EDIT_AUTO_RULE,by as BTN_EDIT_RULE,bL as BTN_SAVE,bx as BTN_SAVE_RULE,aV as BUTTON_TEXTS,bA as CATEGORY_DESCRIPTIONS,er as CATEGORY_LABELS,bE as CATEGORY_TITLES,fD as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,fE as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,fF as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,aU as DEFAULT_CLUSTER_ID,aT as DEFAULT_CLUSTER_NAME,dm as DEFAULT_DATA_STREAM_NAME,dW as DESC_DURATION,dV as DESC_ERRORS,dZ as DESC_OPERATION,fG as DESC_PERCENTAGE_HIGHLY_RELEVANT,aD as DESC_PERCENTAGE_NOISY,es as DESC_RULE_TYPE,eA as DESC_SOURCE_SCOPE,aP as DESTINATION_CATEGORIES,aw as DISPLAY_LANGUAGES,p as DISPLAY_TITLES,ap as DOCS_BASE_URL,D as DestinationCategoryTypes,bH as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,bI as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,bF as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,bG as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,bJ as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,bK as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,bB as EDIT_TITLES,e9 as EMPTY_VALUE,aj as EXTRACTION_FORMAT_COPY,ag as EXTRACT_ATTRIBUTE_FORM,dx as FILTER_TYPE_ALL,F as FORM_ALERTS,I as INSTRUMENTATION_RULE_OPTIONS,dX as LABEL_CUSTOM_DURATION,aI as LABEL_CUSTOM_PERCENTAGE,aG as LABEL_DISABLED,dw as LABEL_DISABLED_RULE,ej as LABEL_DROP_ALL,aA as LABEL_DROP_AT_MOST,aF as LABEL_ENABLED,e2 as LABEL_HTTP_ROUTE,e4 as LABEL_HTTP_ROUTE_PREFIX,e6 as LABEL_KAFKA_TOPIC,ek as LABEL_KEEP_ALL,eg as LABEL_KEEP_AT_LEAST,eh as LABEL_KEEP_AT_MOST,ef as LABEL_KEEP_PERCENTAGE,dU as LABEL_KEEP_TRACES_DURATION,dS as LABEL_KEEP_TRACES_ERRORS,e5 as LABEL_METHOD,en as LABEL_NOTE,dQ as LABEL_NO_PREVIEW,e8 as LABEL_OPERATION_TYPE,fH as LABEL_RULE_DISABLED,fI as LABEL_RULE_ENABLED,el as LABEL_RULE_NAME,em as LABEL_RULE_TYPE,ei as LABEL_SAMPLE,d$ as LABEL_SERVER_ADDRESS,e1 as LABEL_TEMPLATED_PATH,e3 as LABEL_TEMPLATED_PATH_PREFIX,bn as LANGUAGE_OPTIONS,d9 as MONITORS_OPTIONS,eu as NOTE_ENTIRE_CLUSTER,ez as NOTE_SOURCE_SCOPE_LOGIC,fJ as OPENTELEMETRY_EBPF_DISTRO_OPTION,eb as OPERATION_ALL,ea as OPERATION_HTTP_CLIENT,e7 as OPERATION_HTTP_SERVER,ec as OPERATION_KAFKA_CONSUMER,ed as OPERATION_KAFKA_PRODUCER,bm as OTEL_DISTRO_NAME_OPTIONS,ee as PERCENTAGE_SECTION_DESCRIPTIONS,ep as PLACEHOLDER_NOTE,e0 as PLACEHOLDER_ROUTE,eo as PLACEHOLDER_RULE_NAME,eC as PLACEHOLDER_SEARCH_SOURCE,d_ as PLACEHOLDER_SERVER_ADDRESS,ba as PROCESS_ATTRIBUTE_NAMES,af as REGEX_TESTER_DRAWER,aE as SAMPLING_AUTO_RULE_TITLE,dF as SAMPLING_BTN_CREATE_RULE,dD as SAMPLING_BTN_DOCS,dE as SAMPLING_BTN_REFRESH,aC as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,dI as SAMPLING_DELETE_MODAL_APPROVE,dJ as SAMPLING_DELETE_MODAL_CANCEL,dK as SAMPLING_DELETE_MODAL_DESCRIPTION,dL as SAMPLING_DELETE_MODAL_TITLE,bM as SAMPLING_DRAWER_WIDTH,dC as SAMPLING_DUPLICATE_RULE_WARNING,az as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,cD as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,cE as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,cF as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,cG as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,cH as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,cI as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,cJ as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,cK as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,cL as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,cM as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,cO as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,cN as SAMPLING_ONBOARDING_ADVANCED_TITLE,d3 as SAMPLING_ONBOARDING_AMBIENT_LABEL,c9 as SAMPLING_ONBOARDING_BTN_GO_TO,bW as SAMPLING_ONBOARDING_BTN_NEXT,cC as SAMPLING_ONBOARDING_BTN_READ_MORE,ck as SAMPLING_ONBOARDING_BTN_SKIP,cl as SAMPLING_ONBOARDING_BTN_START,cP as SAMPLING_ONBOARDING_COMMON_BANNER,d2 as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,cS as SAMPLING_ONBOARDING_DROP_DESCRIPTION,cR as SAMPLING_ONBOARDING_DROP_SUBTITLE,cQ as SAMPLING_ONBOARDING_DROP_TITLE,cV as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,cU as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,cY as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,cX as SAMPLING_ONBOARDING_KEEP_SUBTITLE,cW as SAMPLING_ONBOARDING_KEEP_TITLE,cZ as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,c_ as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,c$ as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,d0 as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,d1 as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,c1 as SAMPLING_ONBOARDING_NOISY_BANNER,bZ as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,c0 as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,b_ as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,b$ as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,bY as SAMPLING_ONBOARDING_NOISY_SUBTITLE,bX as SAMPLING_ONBOARDING_NOISY_TITLE,cT as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,bV as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,cz as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,cA as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,cB as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,cw as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,cu as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,cv as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,cx as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,cy as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,cr as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,cp as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,cq as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,cs as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,ct as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,co as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,cn as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,cm as SAMPLING_ONBOARDING_STRATEGY_TITLE,c6 as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,c7 as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,c8 as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,c5 as SAMPLING_ONBOARDING_SUCCESS_INTRO,c4 as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,c3 as SAMPLING_ONBOARDING_SUCCESS_TITLE,cj as SAMPLING_ONBOARDING_WELCOME_BANNER,cc as SAMPLING_ONBOARDING_WELCOME_INTRO,cd as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,ce as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,cf as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,cg as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,ch as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,ci as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,cb as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,ca as SAMPLING_ONBOARDING_WELCOME_TITLE,dG as SAMPLING_PAGE_DESCRIPTION,dH as SAMPLING_PAGE_TITLE,eE as SCOPE_AND_LABEL,eD as SCOPE_GROUP_ANY_OF_HINT,ey as SCOPE_GROUP_LANGUAGES_TITLE,ex as SCOPE_GROUP_NAMESPACES_TITLE,ev as SCOPE_GROUP_SOURCES_TITLE,dT as SECTION_DURATION,dR as SECTION_ERRORS,aB as SECTION_KEEP_PERCENTAGE,dY as SECTION_OPERATION,et as SECTION_SAMPLING_PREVIEW,eF as SECTION_SOURCE_SCOPE,d8 as STORAGE_KEYS,dy as TITLE_NO_RESULTS,dA as TITLE_NO_RULES,fK as TOKEN_ABOUT_TO_EXPIRE,eq as TOOLTIP_NOTE,ew as UNKNOWN_SOURCE_LABEL,bC as UNNAMED_RULE,dB as getNoResultsSubTitle}from"./chunks/ui-components-BmIux5o5.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"prism-react-renderer";import"./chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{A as ACTION_OPTIONS,fB as ALL_SOURCES,bw as BTN_CANCEL,dz as BTN_CREATE_FIRST_RULE,bD as BTN_CREATE_RULE,bz as BTN_DELETE_RULE,dP as BTN_EDIT_AUTO_RULE,by as BTN_EDIT_RULE,bL as BTN_SAVE,bx as BTN_SAVE_RULE,aV as BUTTON_TEXTS,bA as CATEGORY_DESCRIPTIONS,eq as CATEGORY_LABELS,bE as CATEGORY_TITLES,fC as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,fD as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,fE as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,aU as DEFAULT_CLUSTER_ID,aT as DEFAULT_CLUSTER_NAME,dm as DEFAULT_DATA_STREAM_NAME,dV as DESC_DURATION,fF as DESC_ERRORS,dY as DESC_OPERATION,fG as DESC_PERCENTAGE_HIGHLY_RELEVANT,aD as DESC_PERCENTAGE_NOISY,er as DESC_RULE_TYPE,ez as DESC_SOURCE_SCOPE,aP as DESTINATION_CATEGORIES,aw as DISPLAY_LANGUAGES,p as DISPLAY_TITLES,ap as DOCS_BASE_URL,D as DestinationCategoryTypes,bH as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,bI as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,bF as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,bG as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,bJ as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,bK as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,bB as EDIT_TITLES,e8 as EMPTY_VALUE,aj as EXTRACTION_FORMAT_COPY,ag as EXTRACT_ATTRIBUTE_FORM,dx as FILTER_TYPE_ALL,F as FORM_ALERTS,I as INSTRUMENTATION_RULE_OPTIONS,dW as LABEL_CUSTOM_DURATION,aI as LABEL_CUSTOM_PERCENTAGE,aG as LABEL_DISABLED,dw as LABEL_DISABLED_RULE,ei as LABEL_DROP_ALL,aA as LABEL_DROP_AT_MOST,aF as LABEL_ENABLED,e1 as LABEL_HTTP_ROUTE,e3 as LABEL_HTTP_ROUTE_PREFIX,e5 as LABEL_KAFKA_TOPIC,ej as LABEL_KEEP_ALL,ef as LABEL_KEEP_AT_LEAST,eg as LABEL_KEEP_AT_MOST,ee as LABEL_KEEP_PERCENTAGE,dU as LABEL_KEEP_TRACES_DURATION,dS as LABEL_KEEP_TRACES_ERRORS,e4 as LABEL_METHOD,em as LABEL_NOTE,dQ as LABEL_NO_PREVIEW,e7 as LABEL_OPERATION_TYPE,fH as LABEL_RULE_DISABLED,fI as LABEL_RULE_ENABLED,ek as LABEL_RULE_NAME,el as LABEL_RULE_TYPE,eh as LABEL_SAMPLE,d_ as LABEL_SERVER_ADDRESS,e0 as LABEL_TEMPLATED_PATH,e2 as LABEL_TEMPLATED_PATH_PREFIX,bn as LANGUAGE_OPTIONS,d9 as MONITORS_OPTIONS,et as NOTE_ENTIRE_CLUSTER,ey as NOTE_SOURCE_SCOPE_LOGIC,fJ as OPENTELEMETRY_EBPF_DISTRO_OPTION,ea as OPERATION_ALL,e9 as OPERATION_HTTP_CLIENT,e6 as OPERATION_HTTP_SERVER,eb as OPERATION_KAFKA_CONSUMER,ec as OPERATION_KAFKA_PRODUCER,bm as OTEL_DISTRO_NAME_OPTIONS,ed as PERCENTAGE_SECTION_DESCRIPTIONS,eo as PLACEHOLDER_NOTE,d$ as PLACEHOLDER_ROUTE,en as PLACEHOLDER_RULE_NAME,eB as PLACEHOLDER_SEARCH_SOURCE,dZ as PLACEHOLDER_SERVER_ADDRESS,ba as PROCESS_ATTRIBUTE_NAMES,af as REGEX_TESTER_DRAWER,aE as SAMPLING_AUTO_RULE_TITLE,dF as SAMPLING_BTN_CREATE_RULE,dD as SAMPLING_BTN_DOCS,dE as SAMPLING_BTN_REFRESH,aC as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,dI as SAMPLING_DELETE_MODAL_APPROVE,dJ as SAMPLING_DELETE_MODAL_CANCEL,dK as SAMPLING_DELETE_MODAL_DESCRIPTION,dL as SAMPLING_DELETE_MODAL_TITLE,bM as SAMPLING_DRAWER_WIDTH,dC as SAMPLING_DUPLICATE_RULE_WARNING,az as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,cD as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,cE as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,cF as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,cG as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,cH as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,cI as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,cJ as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,cK as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,cL as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,cM as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,cO as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,cN as SAMPLING_ONBOARDING_ADVANCED_TITLE,d3 as SAMPLING_ONBOARDING_AMBIENT_LABEL,c9 as SAMPLING_ONBOARDING_BTN_GO_TO,bW as SAMPLING_ONBOARDING_BTN_NEXT,cC as SAMPLING_ONBOARDING_BTN_READ_MORE,ck as SAMPLING_ONBOARDING_BTN_SKIP,cl as SAMPLING_ONBOARDING_BTN_START,cP as SAMPLING_ONBOARDING_COMMON_BANNER,d2 as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,cS as SAMPLING_ONBOARDING_DROP_DESCRIPTION,cR as SAMPLING_ONBOARDING_DROP_SUBTITLE,cQ as SAMPLING_ONBOARDING_DROP_TITLE,cV as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,cU as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,cY as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,cX as SAMPLING_ONBOARDING_KEEP_SUBTITLE,cW as SAMPLING_ONBOARDING_KEEP_TITLE,cZ as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,c_ as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,c$ as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,d0 as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,d1 as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,c1 as SAMPLING_ONBOARDING_NOISY_BANNER,bZ as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,c0 as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,b_ as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,b$ as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,bY as SAMPLING_ONBOARDING_NOISY_SUBTITLE,bX as SAMPLING_ONBOARDING_NOISY_TITLE,cT as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,bV as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,cz as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,cA as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,cB as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,cw as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,cu as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,cv as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,cx as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,cy as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,cr as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,cp as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,cq as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,cs as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,ct as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,co as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,cn as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,cm as SAMPLING_ONBOARDING_STRATEGY_TITLE,c6 as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,c7 as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,c8 as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,c5 as SAMPLING_ONBOARDING_SUCCESS_INTRO,c4 as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,c3 as SAMPLING_ONBOARDING_SUCCESS_TITLE,cj as SAMPLING_ONBOARDING_WELCOME_BANNER,cc as SAMPLING_ONBOARDING_WELCOME_INTRO,cd as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,ce as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,cf as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,cg as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,ch as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,ci as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,cb as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,ca as SAMPLING_ONBOARDING_WELCOME_TITLE,dG as SAMPLING_PAGE_DESCRIPTION,dH as SAMPLING_PAGE_TITLE,eD as SCOPE_AND_LABEL,eC as SCOPE_GROUP_ANY_OF_HINT,ex as SCOPE_GROUP_LANGUAGES_TITLE,ew as SCOPE_GROUP_NAMESPACES_TITLE,eu as SCOPE_GROUP_SOURCES_TITLE,dT as SECTION_DURATION,dR as SECTION_ERRORS,aB as SECTION_KEEP_PERCENTAGE,dX as SECTION_OPERATION,es as SECTION_SAMPLING_PREVIEW,eE as SECTION_SOURCE_SCOPE,d8 as STORAGE_KEYS,dy as TITLE_NO_RESULTS,dA as TITLE_NO_RULES,fK as TOKEN_ABOUT_TO_EXPIRE,ep as TOOLTIP_NOTE,ev as UNKNOWN_SOURCE_LABEL,bC as UNNAMED_RULE,dB as getNoResultsSubTitle}from"./chunks/ui-components-CrXELmQx.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"prism-react-renderer";import"./chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";
@@ -15,10 +15,11 @@ export declare const SAMPLING_CATEGORY_NOTES: Record<SamplingCategory, string>;
15
15
  export declare const SAMPLING_CATEGORY_LIST_TITLES: Record<SamplingCategory, string>;
16
16
  export declare const CATEGORY_TO_RULE_CATEGORY: Record<SamplingCategory, SamplingRuleCategory>;
17
17
  export declare const RULE_CATEGORY_TO_CATEGORY: Record<SamplingRuleCategory, SamplingCategory>;
18
- export declare function buildScopeParts(scopes: SourcesScopes | null | undefined): ColoredSpanPart[];
19
- export declare function buildNoisySummary(rule: NoisyOperationRule): ColoredSpanPart[];
20
- export declare function buildHighlyRelevantSummary(rule: HighlyRelevantOperationRule): ColoredSpanPart[];
21
- export declare function buildCostReductionSummary(rule: CostReductionRule): ColoredSpanPart[];
18
+ export type SummaryContext = 'global' | 'source';
19
+ export declare function buildScopeParts(scopes: SourcesScopes | null | undefined, context?: SummaryContext): ColoredSpanPart[];
20
+ export declare function buildNoisySummary(rule: NoisyOperationRule, context?: SummaryContext): ColoredSpanPart[];
21
+ export declare function buildHighlyRelevantSummary(rule: HighlyRelevantOperationRule, context?: SummaryContext): ColoredSpanPart[];
22
+ export declare function buildCostReductionSummary(rule: CostReductionRule, context?: SummaryContext): ColoredSpanPart[];
22
23
  export declare function getHighlyRelevantTypeBadge(rule: HighlyRelevantOperationRule): HighlyRelevantBadgeType;
23
24
  export declare function buildSamplingRuleItems(groups: SamplingRules[], category: SamplingCategory, excludeRuleIds?: Set<string>): SamplingRuleItem[];
24
25
  export declare function buildSummaryForRule(category: SamplingRuleCategory, rule: NoisyOperationRule | HighlyRelevantOperationRule | CostReductionRule): ColoredSpanPart[];
@@ -1,4 +1,4 @@
1
- import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import{useEffect as o,useMemo as a,useRef as i,useCallback as l,useState as s,Fragment as r,forwardRef as c,useImperativeHandle as d,Children as u,createContext as p,useContext as h,useLayoutEffect as m}from"react";import g,{useTheme as f,css as b,keyframes as v}from"styled-components";import{u as y,n as C,C as S,e as w,f as x,h as k,d as T,b as $,c as I,S as E,j as A,R as N,k as O,l as R,a as D,r as P,o as F,p as L,q as _,s as M,t as z,w as B,x as X,y as V,z as U,A as G,B as H}from"../chunks/helpers-BlFl20R2.js";import{f as j,a6 as W,a7 as K,V as Y,a8 as J,a9 as q,aa as Z,ab as Q,ac as ee,ad as te,ae as ne,af as oe,b as ae,O as ie,c as le,y as se,B as re,z as ce,L as de,M as ue,ag as pe,ah as he,ai as me,aj as ge,ak as fe,al as be,am as ve,g as ye,N as Ce,an as Se,ao as we,ap as xe,aq as ke,ar as Te,Y as $e,o as Ie,S as Ee,k as Ae,m as Ne,as as Oe,at as Re,au as De,H as Pe,av as Fe,G as Le,J as _e,C as Me,n as ze,R as Be,aw as Xe,ax as Ve,ay as Ue,p as Ge,h as He,az as je,aA as We,aB as Ke,aC as Ye,aD as Je,aE as qe,aF as Ze,aG as Qe,aH as et,aI as tt,aJ as nt,A as ot,aK as at,D as it,aL as lt,aM as st,aN as rt,aO as ct,aP as dt,aQ as ut,e as pt,s as ht,I as mt,E as gt,T as ft,aR as bt,aS as vt,$ as yt,aT as Ct,aU as St,a1 as wt,a3 as xt,aV as kt,aW as Tt,aX as $t,aY as It,aZ as Et,d as At,a_ as Nt,l as Ot,a$ as Rt,b0 as Dt,b1 as Pt,W as Ft,F as Lt,b2 as _t,b3 as Mt,b4 as zt,b5 as Bt,b6 as Xt,b7 as Vt,b8 as Ut,b9 as Gt,ba as Ht,bb as jt,bc as Wt,bd as Kt,be as Yt,U as Jt,Q as qt,bf as Zt,bg as Qt,q as en,r as tn,w as nn,K as on,bh as an,bi as ln,bj as sn,bk as rn,bl as cn,bm as dn,bn as un,bo as pn,bp as hn,bq as mn,br as gn,bs as fn,bt as bn,bu as vn,bv as yn,bw as Cn,bx as Sn,by as wn,bz as xn,bA as kn,bB as Tn,bC as $n,bD as In,bE as En,bF as An,bG as Nn,bH as On,bI as Rn,bJ as Dn,bK as Pn,bL as Fn,bM as Ln,bN as _n,bO as Mn,bP as zn,bQ as Bn,bR as Xn,bS as Vn,bT as Un,bU as Gn,bV as Hn,bW as jn,bX as Wn,bY as Kn,bZ as Yn,b_ as Jn,b$ as qn,c0 as Zn,c1 as Qn,c2 as eo,c3 as to,c4 as no,c5 as oo,c6 as ao,c7 as io,c8 as lo,c9 as so,ca as ro,cb as co,cc as uo,cd as po,ce as ho,cf as mo,cg as go,ch as fo,ci as bo,cj as vo,ck as yo,cl as Co,cm as So,cn as wo,co as xo,cp as ko,cq as To,cr as $o,cs as Io,ct as Eo,cu as Ao,cv as No,cw as Oo,cx as Ro,cy as Do,cz as Po,cA as Fo,cB as Lo,cC as _o,cD as Mo,cE as zo,cF as Bo,cG as Xo,cH as Vo,cI as Uo,cJ as Go,cK as Ho,cL as jo,cM as Wo,cN as Ko,cO as Yo,cP as Jo,cQ as qo,cR as Zo,cS as Qo,cT as ea,cU as ta,cV as na,cW as oa,cX as aa,cY as ia,cZ as la,c_ as sa,c$ as ra,d0 as ca,d1 as da,d2 as ua,d3 as pa,d4 as ha,d5 as ma,d6 as ga,d7 as fa,d8 as ba,d9 as va,da as ya,db as Ca,dc as Sa,x as wa,dd as xa,v as ka,de as Ta,df as $a,dg as Ia,dh as Ea,di as Aa,dj as Na,dk as Oa,dl as Ra,a0 as Da,dm as Pa,dn as Fa,dp as La,dq as _a,dr as Ma,ds as za,dt as Ba,du as Xa,dv as Va,dw as Ua,dx as Ga,dy as Ha,dz as ja,dA as Wa,dB as Ka,dC as Ya,dD as Ja,dE as qa,dF as Za,dG as Qa,dH as ei,dI as ti,dJ as ni,dK as oi,dL as ai,dM as ii}from"../chunks/ui-components-BmIux5o5.js";import{TrashIcon as li,PlusIcon as si,ArrowRightIcon as ri,VSquareIcon as ci,XSquareIcon as di,BookIcon as ui,DeleteIcon as pi,EditIcon as hi,GoLogo as mi,JavaLogo as gi,ChevronRightIcon as fi,ActionIcon as bi,DestinationIcon as vi,ChevronUpIcon as yi,ChevronDownIcon as Ci,VIcon as Si,XIcon as wi,InstrumentationRuleIcon as xi,SourceIcon as ki,NamespacesIcon as Ti,SettingsIcon as $i,PodIcon as Ii,OdigosLogo as Ei,K8sLogo as Ai,RefreshIcon as Ni,ExclamationCircleIcon as Oi,QuestionCircleIcon as Ri,InboundIcon as Di,OutboundIcon as Pi,UserIcon as Fi,TerminalIcon as Li,MinusIcon as _i,SearchIcon as Mi,ExpandIcon as zi,CopyIcon as Bi,DotIcon as Xi,ArrowDownIcon as Vi,DownloadIcon as Ui,RefreshLeftArrowIcon as Gi,VmLogo as Hi,SamplingIcon as ji,ExclamationTriangleIcon as Wi,KeyIcon as Ki,DiagnoseIcon as Yi,StarIcon as Ji,ArrowIcon as qi,ConnectionsIcon as Zi,FilterIcon as Qi,DataStreamIcon as el,PipelineCollectorIcon as tl,ArrowDownSquareIcon as nl,ArrowUpSquareIcon as ol,GatewayIcon as al,YamlIcon as il}from"../icons.js";import{d as ll}from"../chunks/use-odigos-api-hslZLdix.js";import{S as sl,D as rl,I as cl,a as dl,A as ul,P as pl,b as hl,c as ml,R as gl,O as fl,d as bl,e as vl,f as yl,W as Cl,g as Sl,C as wl,Y as xl,h as kl,i as Tl,U as $l}from"../chunks/index-BVL5-zQa.js";import{O as Il}from"../chunks/connections-scope-DgpFs9S1.js";import{u as El,f as Al,g as Nl,e as Ol,i as Rl,h as Dl,S as Pl,k as Fl,E as Ll,l as _l,m as Ml,j as zl,b as Bl,d as Xl,a as Vl,A as Ul,R as Gl,c as Hl,D as jl}from"../chunks/source-instrument-form-context-o2ynNRPg.js";import{U as Wl}from"../chunks/consts-D6GCMJ6c.js";import{createPortal as Kl}from"react-dom";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"prism-react-renderer";import"../chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"virtua";import"@apollo/client";import"@apollo/client/link/error";import"@apollo/client/link/context";import"@apollo/client/utilities";const Yl=[{id:"CREDIT_CARD",label:"Credit card"}],Jl=[{id:j.CollectContainerAttributes,label:"Collect container attributes"},{id:j.CollectReplicaSetAttributes,label:"Collect ReplicaSet attributes"},{id:j.CollectWorkloadId,label:"Collect workload ID"},{id:j.CollectClusterId,label:"Collect cluster ID"}],ql=[{id:Z.Pod,label:Z.Pod},{id:Z.Namespace,label:Z.Namespace},{id:Z.Node,label:Z.Node}],Zl=[{label:"Label key",keyName:"labelKey",placeholder:"app.kubernetes.io/name"},{label:"Attribute key",keyName:"attributeKey",placeholder:"app.kubernetes.name"},{label:"From sources",keyName:"fromSources",placeholder:"pod, namespace",tooltip:"Select multiple sources. Higher precedence sources (pod > namespace > node) will override lower ones.",componentType:"multi-dropdown",options:ql}],Ql=[{label:"Annotation key",keyName:"annotationKey",placeholder:"kubectl.kubernetes.io/restartedAt"},{label:"Attribute key",keyName:"attributeKey",placeholder:"kubectl.kubernetes.restartedAt"},{label:"From sources",keyName:"fromSources",placeholder:"pod, namespace",tooltip:"Select multiple sources. Higher precedence sources (pod > namespace > node) will override lower ones.",componentType:"multi-dropdown",options:ql}],es=/^[a-zA-Z]$/,ts=new Set(["*","+","?"]),ns=new Set(["^","$"]),os={group:"rgba(102, 242, 102, 0.5)","anchor-quantifier":"rgba(102, 191, 255, 0.5)","class-bracket":"rgba(255, 153, 153, 0.5)","class-content":"rgba(178, 1, 1, 0.5)",alternation:"rgba(255, 153, 153, 0.5)",literal:"transparent"},as=g.div`
1
+ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import{useEffect as o,useMemo as a,useRef as i,useCallback as l,useState as s,Fragment as r,forwardRef as c,useImperativeHandle as d,Children as u,createContext as p,useContext as h,useLayoutEffect as m}from"react";import g,{useTheme as f,css as b,keyframes as v}from"styled-components";import{u as y,n as C,C as S,e as w,f as x,h as k,d as T,b as $,c as I,S as E,j as A,R as N,k as O,l as R,a as D,r as P,o as F,p as L,q as _,s as M,t as z,w as B,x as X,y as V,z as U,A as G,B as H}from"../chunks/helpers-45znEVHP.js";import{f as j,a6 as W,a7 as K,V as Y,a8 as J,a9 as q,aa as Z,ab as Q,ac as ee,ad as te,ae as ne,af as oe,b as ae,O as ie,c as le,y as se,B as re,z as ce,L as de,M as ue,ag as pe,ah as he,ai as me,aj as ge,ak as fe,al as be,am as ve,g as ye,N as Ce,an as Se,ao as we,ap as xe,aq as ke,ar as Te,Y as $e,o as Ie,S as Ee,k as Ae,m as Ne,as as Oe,at as Re,au as De,H as Pe,av as Fe,G as Le,J as _e,C as Me,n as ze,R as Be,aw as Xe,ax as Ve,ay as Ue,p as Ge,h as He,az as je,aA as We,aB as Ke,aC as Ye,aD as Je,aE as qe,aF as Ze,aG as Qe,aH as et,aI as tt,aJ as nt,A as ot,aK as at,D as it,aL as lt,aM as st,aN as rt,aO as ct,aP as dt,aQ as ut,e as pt,s as ht,I as mt,E as gt,T as ft,aR as bt,aS as vt,$ as yt,aT as Ct,aU as St,a1 as wt,a3 as xt,aV as kt,aW as Tt,aX as $t,aY as It,aZ as Et,d as At,a_ as Nt,l as Ot,a$ as Rt,b0 as Dt,b1 as Pt,W as Ft,F as Lt,b2 as _t,b3 as Mt,b4 as zt,b5 as Bt,b6 as Xt,b7 as Vt,b8 as Ut,b9 as Gt,ba as Ht,bb as jt,bc as Wt,bd as Kt,be as Yt,U as Jt,Q as qt,bf as Zt,bg as Qt,q as en,r as tn,w as nn,K as on,bh as an,bi as ln,bj as sn,bk as rn,bl as cn,bm as dn,bn as un,bo as pn,bp as hn,bq as mn,br as gn,bs as fn,bt as bn,bu as vn,bv as yn,bw as Cn,bx as Sn,by as wn,bz as xn,bA as kn,bB as Tn,bC as $n,bD as In,bE as En,bF as An,bG as Nn,bH as On,bI as Rn,bJ as Dn,bK as Pn,bL as Fn,bM as Ln,bN as _n,bO as Mn,bP as zn,bQ as Bn,bR as Xn,bS as Vn,bT as Un,bU as Gn,bV as Hn,bW as jn,bX as Wn,bY as Kn,bZ as Yn,b_ as Jn,b$ as qn,c0 as Zn,c1 as Qn,c2 as eo,c3 as to,c4 as no,c5 as oo,c6 as ao,c7 as io,c8 as lo,c9 as so,ca as ro,cb as co,cc as uo,cd as po,ce as ho,cf as mo,cg as go,ch as fo,ci as bo,cj as vo,ck as yo,cl as Co,cm as So,cn as wo,co as xo,cp as ko,cq as To,cr as $o,cs as Io,ct as Eo,cu as Ao,cv as No,cw as Oo,cx as Ro,cy as Do,cz as Po,cA as Fo,cB as Lo,cC as _o,cD as Mo,cE as zo,cF as Bo,cG as Xo,cH as Vo,cI as Uo,cJ as Go,cK as Ho,cL as jo,cM as Wo,cN as Ko,cO as Yo,cP as Jo,cQ as qo,cR as Zo,cS as Qo,cT as ea,cU as ta,cV as na,cW as oa,cX as aa,cY as ia,cZ as la,c_ as sa,c$ as ra,d0 as ca,d1 as da,d2 as ua,d3 as pa,d4 as ha,d5 as ma,d6 as ga,d7 as fa,d8 as ba,d9 as va,da as ya,db as Ca,dc as Sa,x as wa,dd as xa,v as ka,de as Ta,df as $a,dg as Ia,dh as Ea,di as Aa,dj as Na,dk as Oa,dl as Ra,a0 as Da,dm as Pa,dn as Fa,dp as La,dq as _a,dr as Ma,ds as za,dt as Ba,du as Xa,dv as Va,dw as Ua,dx as Ga,dy as Ha,dz as ja,dA as Wa,dB as Ka,dC as Ya,dD as Ja,dE as qa,dF as Za,dG as Qa,dH as ei,dI as ti,dJ as ni,dK as oi,dL as ai,dM as ii}from"../chunks/ui-components-CrXELmQx.js";import{TrashIcon as li,PlusIcon as si,ArrowRightIcon as ri,VSquareIcon as ci,XSquareIcon as di,BookIcon as ui,DeleteIcon as pi,EditIcon as hi,GoLogo as mi,JavaLogo as gi,ChevronRightIcon as fi,ActionIcon as bi,DestinationIcon as vi,ChevronUpIcon as yi,ChevronDownIcon as Ci,VIcon as Si,XIcon as wi,InstrumentationRuleIcon as xi,SourceIcon as ki,NamespacesIcon as Ti,SettingsIcon as $i,PodIcon as Ii,OdigosLogo as Ei,K8sLogo as Ai,RefreshIcon as Ni,ExclamationCircleIcon as Oi,QuestionCircleIcon as Ri,InboundIcon as Di,OutboundIcon as Pi,UserIcon as Fi,TerminalIcon as Li,MinusIcon as _i,SearchIcon as Mi,ExpandIcon as zi,CopyIcon as Bi,DotIcon as Xi,ArrowDownIcon as Vi,DownloadIcon as Ui,RefreshLeftArrowIcon as Gi,VmLogo as Hi,SamplingIcon as ji,ExclamationTriangleIcon as Wi,KeyIcon as Ki,DiagnoseIcon as Yi,StarIcon as Ji,ArrowIcon as qi,ConnectionsIcon as Zi,FilterIcon as Qi,DataStreamIcon as el,PipelineCollectorIcon as tl,ArrowDownSquareIcon as nl,ArrowUpSquareIcon as ol,GatewayIcon as al,YamlIcon as il}from"../icons.js";import{d as ll}from"../chunks/use-odigos-api-CgkEC7if.js";import{S as sl,D as rl,I as cl,a as dl,A as ul,P as pl,b as hl,c as ml,R as gl,O as fl,d as bl,e as vl,f as yl,W as Cl,g as Sl,C as wl,Y as xl,h as kl,i as Tl,U as $l}from"../chunks/index-D-8Yak_c.js";import{O as Il}from"../chunks/connections-scope-BLrBW0hm.js";import{u as El,f as Al,g as Nl,e as Ol,i as Rl,h as Dl,S as Pl,k as Fl,E as Ll,l as _l,m as Ml,j as zl,b as Bl,d as Xl,a as Vl,A as Ul,R as Gl,c as Hl,D as jl}from"../chunks/source-instrument-form-context-D7wjfWpw.js";import{U as Wl}from"../chunks/consts-D6GCMJ6c.js";import{createPortal as Kl}from"react-dom";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"prism-react-renderer";import"../chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"virtua";import"@apollo/client";import"@apollo/client/link/error";import"@apollo/client/link/context";import"@apollo/client/utilities";const Yl=[{id:"CREDIT_CARD",label:"Credit card"}],Jl=[{id:j.CollectContainerAttributes,label:"Collect container attributes"},{id:j.CollectReplicaSetAttributes,label:"Collect ReplicaSet attributes"},{id:j.CollectWorkloadId,label:"Collect workload ID"},{id:j.CollectClusterId,label:"Collect cluster ID"}],ql=[{id:Z.Pod,label:Z.Pod},{id:Z.Namespace,label:Z.Namespace},{id:Z.Node,label:Z.Node}],Zl=[{label:"Label key",keyName:"labelKey",placeholder:"app.kubernetes.io/name"},{label:"Attribute key",keyName:"attributeKey",placeholder:"app.kubernetes.name"},{label:"From sources",keyName:"fromSources",placeholder:"pod, namespace",tooltip:"Select multiple sources. Higher precedence sources (pod > namespace > node) will override lower ones.",componentType:"multi-dropdown",options:ql}],Ql=[{label:"Annotation key",keyName:"annotationKey",placeholder:"kubectl.kubernetes.io/restartedAt"},{label:"Attribute key",keyName:"attributeKey",placeholder:"kubectl.kubernetes.restartedAt"},{label:"From sources",keyName:"fromSources",placeholder:"pod, namespace",tooltip:"Select multiple sources. Higher precedence sources (pod > namespace > node) will override lower ones.",componentType:"multi-dropdown",options:ql}],es=/^[a-zA-Z]$/,ts=new Set(["*","+","?"]),ns=new Set(["^","$"]),os={group:"rgba(102, 242, 102, 0.5)","anchor-quantifier":"rgba(102, 191, 255, 0.5)","class-bracket":"rgba(255, 153, 153, 0.5)","class-content":"rgba(178, 1, 1, 0.5)",alternation:"rgba(255, 153, 153, 0.5)",literal:"transparent"},as=g.div`
2
2
  padding: 8px 16px;
3
3
  border-radius: 6px;
4
4
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
@@ -188,7 +188,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import{useEffect
188
188
  ${Rr}:hover & {
189
189
  visibility: visible;
190
190
  }
191
- `,Pr=({clusterId:n,namespaceName:o,checkbox:a,isFutureApps:i,selectedCounts:l,isActive:s,onActive:r,handleSourceChange:c})=>{const{isVm:d}=y(),u=e=>{r(),c({clusterId:n,workloadId:{namespace:o},auto:e.auto,selected:e.all})};return t(Rr,{children:t(ar,{dataId:`namespace-${o}`,withCarret:!0,title:o,isSelected:s,onClick:r,isPartiallyChecked:a.partial,isChecked:a.all,onCheckboxChange:e=>u({auto:e,all:e}),children:e(se,{$gap:12,children:[!d&&t(Dr,{$visible:s||i,children:t(De,{text:Ir,children:t(Q,{label:$r,labelAlign:ee.Left,size:bt.S,value:i,onChange:e=>u({auto:e,all:e||void 0})})})}),e(se,{$gap:8,children:[t(ae,{variant:vt.Span,size:le.XXXS,color:ie.Secondary,align:"right",children:Tr}),t(Be,{label:`${l.sourced}/${l.total}`,status:s?Ie.Default:Ie.Unknown,minWidth:"42px"})]})]})})})},Fr=({withCollapse:e,clusterId:n,clusterName:o,namespaces:i,selectedArea:l,setSelectedArea:s,handleSourceChange:r})=>{const c=a(()=>i.map(({name:e,totalWorkloads:a,selectedCount:i,isAllSourced:c,isSomeSourced:d,isFutureApps:u})=>t(Pr,{clusterId:n,namespaceName:e,isFutureApps:u,checkbox:{all:c||u,partial:d},selectedCounts:{sourced:i,total:a},isActive:l.clusterId===n&&l.namespaceName===e,onActive:()=>s({clusterId:n,clusterName:o,namespaceName:e}),handleSourceChange:r},`${n}#${e}`)),[n,o,i,l]);return e?t(cr,{title:o,list:c,noBgColor:!0}):c},Lr=({onClose:n,onBack:i,onNext:l,selectedConnectionIds:r,setSelectedConnectionIds:c,withOverlay:d,disableAnimation:u})=>{const{isVm:p}=y(),{sourcesApi:h,snapshotsApi:m,namespacesApi:g}=ll(),{data:f,loading:b,refetch:v}=m.useSnapshots(),{items:C,loading:S,refetch:w}=g.useNamespaces(),x=yr(p),{selectedStreamName:k}=He(),{progress:T,resetProgress:$}=yt(),{isFetching:I,setIsFetching:E,setSnapshots:A,formData:N,handleSourceChange:O,handleSelectAll:R,formDiff:D,isFormDirty:P}=zl();o(()=>{v(),w()},[]);const F=a(()=>{if(f)return f;const e=C;return e.length?{clusters:[{clusterId:St,clusterName:Ct,namespaces:e.map(e=>({name:e.name,selected:e.markedForInstrumentation&&e.dataStreamNames.includes(k),workloads:e.workloads?.map(e=>({namespace:e.id.namespace,name:e.id.name,kind:e.id.kind,selected:(e.markedForInstrumentation?.markedForInstrumentation??!1)&&(e.dataStreamNames?.includes(k)??!1)}))||[]}))}]}:null},[f,C,k]);o(()=>{E(b||S),F&&A(F)},[F,b,S,E,A]);const[L,_]=s(""),[M,z]=s(gt.Namespace),[B,X]=s({showOnlySelected:!1}),[V,U]=s({clusterId:"",clusterName:"",namespaceName:""}),G=(({isFetching:n,formData:o,handleSourceChange:i,handleSelectAll:l,selectedArea:s,setSelectedArea:r,searchText:c,searchBy:d,filters:u})=>{const{isVm:p}=y(),h=yr(p),m=a(()=>o.map(e=>{const t=[...e.namespaces].sort((e,t)=>e.name.localeCompare(t.name)).filter(e=>_l(e,c,u)).map(e=>({name:e.name,totalWorkloads:e.workloads.length,...Ml(e)}));return{clusterId:e.clusterId,clusterName:e.clusterName,visibleNamespaces:t}}),[o,c,u]),g=a(()=>{let e=!1;for(const{visibleNamespaces:t}of m)for(const{totalWorkloads:n,selectedCount:o}of t)if(e=!0,o!==n)return!1;return e},[m]),{list:f,withFilterCount:b,filteredCount:v,totalCount:C}=a(()=>{const e=m.map(({clusterId:e,clusterName:n,visibleNamespaces:o})=>o.length?t(Fr,{withCollapse:m.length>1,clusterId:e,clusterName:n,namespaces:o,selectedArea:s,setSelectedArea:r,handleSourceChange:i},e):null),n=e.filter(e=>null!==e);return{list:n,withFilterCount:n.length!==e.length,filteredCount:n.length,totalCount:e.length}},[m,s]);return{width:"60%",header:e(se,{$width:"100%",$gap:12,$justifyContent:"space-between",children:[e(se,{$gap:8,children:[t(ae,{size:le.XS,nowrap:!0,children:h.groupColumnHeader}),t(De,{text:b?Ge.FILTERED_COUNT_TOOLTIP:void 0,children:t(Be,{label:`${b?`${v} / ${C}`:C}`,status:Ie.Unknown})})]}),t(ae,{"data-id":"namespaces-select-all",onClick:()=>l({boolean:!g,searchText:c,searchBy:d,filters:u}),disabled:!f.length,size:le.XS,children:xr(g)})]}),list:f.length?f:n?[t(at,{$height:"100%",children:t(ct,{title:h.fetchingGroups.title,subTitle:h.fetchingGroups.subTitle,withSpinner:!0})},"loading")]:[t(at,{$height:"100%",children:t(Ce,c?{icon:Ti,title:Cr,subTitle:h.noGroupMatchedFilter(c)}:{icon:Ti,title:h.noGroups.title,subTitle:h.noGroups.subTitle})},"no-data")]}})({isFetching:I,formData:N,handleSourceChange:O,handleSelectAll:R,selectedArea:V,setSelectedArea:U,searchText:M===gt.Namespace?L:"",searchBy:M,filters:B}),H=(({formData:n,handleSourceChange:o,handleSelectAll:i,selectedArea:l,searchText:s,searchBy:r,filters:c})=>{const{tier:d,isVm:u}=y(),p=yr(u),h=d===ft.Onprem,m=a(()=>l.value.namespaceName?n.find(({clusterId:e})=>e===l.value.clusterId)?.namespaces.find(({name:e})=>e===l.value.namespaceName):void 0,[n,l.value.clusterId,l.value.namespaceName]),g=a(()=>m?[...m.workloads].sort((e,t)=>e.name.localeCompare(t.name)).filter(e=>Fl(e,s,c)):[],[m,s,c]),f=a(()=>!!g.length&&g.every(({selected:e})=>e),[g]),b=a(()=>{if(!m)return[];const{clusterId:e}=l.value,{name:n}=m;return g.map(({name:a,selected:i,kind:l})=>{const s=!u&&!h&&Ll.has(l);return t(Or,{workloadName:a,workloadKind:l,isChecked:!s&&(i||!1),onToggle:()=>o({clusterId:e,workloadId:{namespace:n,name:a,kind:l}}),disabled:s,disabledReason:Er},`${e}#${n}#${a}#${l}`)})},[g,m,l.value.clusterId]),{withFilterCount:v,filteredCount:C,totalCount:S}=a(()=>{const e=m?.workloads.length??0;return{withFilterCount:g.length!==e,filteredCount:g.length,totalCount:e}},[g,m]);return{width:"40%",header:e(se,{$width:"100%",$gap:12,$justifyContent:"space-between",children:[e(se,{$gap:8,children:[t(ae,{size:le.XS,nowrap:!0,children:l.value.namespaceName?`${l.value.namespaceName} > ${p.itemColumnHeader}`:p.itemColumnHeader}),t(De,{text:v?Ge.FILTERED_COUNT_TOOLTIP:void 0,children:t(Be,{label:`${v?`${C} / ${S}`:S}`,status:Ie.Unknown})})]}),t(ae,{"data-id":"workloads-select-all",onClick:()=>i({clusterId:l.value.clusterId,namespaceName:l.value.namespaceName,boolean:!f,searchText:s,searchBy:r,filters:c}),disabled:!b.length,size:le.XS,children:xr(f)})]}),list:b.length?b:[t(at,{$height:"100%",children:t(Ce,m?s?{icon:ki,title:Cr,subTitle:wr(s)}:{icon:ki,title:Sr,subTitle:p.noItemsInGroupSubTitle}:{icon:ki,title:p.selectGroupPrompt.title,subTitle:p.selectGroupPrompt.subTitle})},"no-data")]}})({formData:N,handleSourceChange:O,handleSelectAll:R,selectedArea:{value:V},searchText:M===gt.Source?L:"",searchBy:M,filters:B});return t(Cl,{isOpen:!0,withOverlay:d,disableAnimation:u,onClose:n?()=>{$(wt.BulkInstrumenting),n()}:void 0,onBack:i?()=>i(D):void 0,onNext:l?()=>l(D):void 0,nextIsSkip:!P,onSave:()=>h.persistV2(D),header:{icon:ki,title:Ge.ADD_SOURCE,subTitle:Ge.ADD_SOURCES_DESCRIPTION},connectionIds:r&&c?{value:r,setValue:c}:void 0,search:{value:L,onChange:e=>{_(e),M===gt.Namespace&&U({clusterId:"",clusterName:"",namespaceName:""})},placeholder:x.searchPlaceholder(M),segment:{options:[{label:x.groupSegmentLabel,value:gt.Namespace},{label:x.itemSegmentLabel,value:gt.Source}],selected:M,setSelected:z}},filters:e(se,{$gap:8,children:[t(ae,{size:le.XXXS,color:ie.Secondary,nowrap:!0,children:kr}),t(Q,{name:"filter-selected",size:bt.S,label:Tr,value:B.showOnlySelected,onChange:e=>X(t=>({...t,showOnlySelected:e}))})]}),isFormDirty:P,isFetching:I,progress:{title:Ge.CREATING_SOURCES,subTitle:Ge.CREATING_SOURCES_SUBTITLE,percentage:T[wt.BulkInstrumenting]?.percentage||0},leftColumn:G,rightColumn:H})},_r=(e,t)=>{const n=[{id:"type",title:Ge.TYPE,label:t.label},{id:"status",title:Ge.STATUS,badge:{status:e.disabled?Ie.Unknown:Ie.Success,label:e.disabled?Ge.DISABLED:Ge.ENABLED}}],o=e.signals?.map(e=>{let t=e.toLowerCase();return t=`${t.charAt(0).toUpperCase()}${t.slice(1)}`,t}).join(", ");return o&&n.push({id:"signals",title:Ge.SIGNALS_FOR_PROCESSING,label:o}),e.name&&n.push({id:"name",title:Ge.NAME,label:e.name}),e.notes&&n.push({id:"notes",title:Ge.NOTES,label:e.notes}),n},Mr=({onClose:i,actionId:r})=>{const c=f(),{actionsApi:d}=ll(),{items:u,refetch:p}=d.useActions(),{selectedOption:h,loadAction:m,validateFormData:g,genericForm:b}=El();o(()=>{p()},[]);const[v,y]=s(!1),[C,S]=s(!1),[w,x]=s(null),k=v&&!!b?.isFormDirty,T=a(()=>u?.find(e=>xt(e)===r),[r,u]),$=a(()=>ot.find(({type:e})=>e===T?.type)??null,[T?.type]);o(()=>{T&&m(T)},[T]);const I=l(()=>{T&&y(!0)},[T]),E=l(()=>{T&&(m(T),y(!1))},[T,m]),A=l(()=>{k?x("close"):i()},[k,i]),N=l(()=>{k?x("cancel"):E()},[k,E]),O=l(()=>{const e=w;x(null),"close"===e?(E(),i()):E()},[w,E,i]),R=l(async()=>{if(T){const{errorMessage:e,preparedFormData:t}=g();e||(await d.update(T.id,t),y(!1))}},[T,g,d]),D=l(()=>{T&&S(!0)},[T]),P=l(async()=>{T&&(await d.remove(T.id,T.type),i())},[T,d,i]);if(!T||!$)return null;const F=(e=>{const t=[],{type:n,fields:o}=e,a=e=>({status:e?Ie.Success:Ie.Unknown,label:e?"True":"False",invertColors:!0});if(n===ye.K8sAttributes&&(t.push({id:"collectContainerAttributes",title:"Collect Container Attributes",badge:a(o.collectContainerAttributes)}),t.push({id:"collectReplicaSetAttributes",title:"Collect ReplicaSet Attributes",badge:a(o.collectReplicaSetAttributes)}),t.push({id:"collectWorkloadId",title:"Collect Workload ID",badge:a(o.collectWorkloadId)}),t.push({id:"collectClusterId",title:"Collect Cluster ID",badge:a(o.collectClusterId)}),o.labelsAttributes?.forEach(({labelKey:e,attributeKey:n,from:a,fromSources:i},l)=>{const s=i?.length?i.join(", "):a||Z.Pod,r=(o.labelsAttributes?.length??0)>1?`Label #${l+1} `:"Label ";t.push({id:`label-${l}-key`,title:`${r}Key`,label:e}),t.push({id:`label-${l}-attr`,title:`${r}Attribute Key`,label:n}),t.push({id:`label-${l}-from`,title:`${r}From`,label:s})}),o.annotationsAttributes?.forEach(({annotationKey:e,attributeKey:n,from:a,fromSources:i},l)=>{const s=i?.length?i.join(", "):a||Z.Pod,r=(o.annotationsAttributes?.length??0)>1?`Annotation #${l+1} `:"Annotation ";t.push({id:`annotation-${l}-key`,title:`${r}Key`,label:e}),t.push({id:`annotation-${l}-attr`,title:`${r}Attribute Key`,label:n}),t.push({id:`annotation-${l}-from`,title:`${r}From`,label:s})})),n===ye.AddClusterInfo&&(t.push({id:"overwriteExistingValues",title:"Overwrite Existing Values",badge:a(o.overwriteExistingValues)}),o.clusterAttributes?.forEach(({attributeName:e,attributeStringValue:n},o)=>{t.push({id:`cluster-attr-${o}`,title:e,label:n})})),n===ye.DeleteAttributes&&o.attributeNamesToDelete?.forEach((e,n)=>{t.push({id:`del-attr-${n}`,title:"Attribute"+((o.attributeNamesToDelete?.length??0)>1?` #${n+1}`:""),label:e})}),n===ye.RenameAttributes&&Object.entries(o.renames||{}).forEach(([e,n],o)=>{t.push({id:`rename-${o}`,title:e,label:n})}),n===ye.PiiMasking&&o.piiCategories?.forEach((e,n)=>{t.push({id:`pii-${n}`,title:"Category"+((o.piiCategories?.length??0)>1?` #${n+1}`:""),label:e})}),n===ye.ExtractAttribute){const e=o.extractAttribute?.extractions??[];e.forEach(({targetAttributeName:n,lookupKey:o,dataFormat:a,regex:i},l)=>{const s=e.length>1?`Extraction #${l+1} `:"Extraction ";t.push({id:`extract-${l}-target`,title:`${s}New Attribute Name`,label:n||"-"}),o&&t.push({id:`extract-${l}-lookupKey`,title:`${s}Lookup Key`,label:o}),a&&t.push({id:`extract-${l}-format`,title:`${s}Data Format`,label:a}),i&&t.push({id:`extract-${l}-regex`,title:`${s}Regex`,label:i})})}return n===ye.URLTemplatization&&o.urlTemplatizationRulesGroups?.forEach((e,n)=>{const a=(o.urlTemplatizationRulesGroups?.length??0)>1?`Group #${n+1} `:"Group ";e.filterK8sNamespace&&t.push({id:`group-${n}-ns`,title:`${a}Namespace`,label:e.filterK8sNamespace}),e.workloadFilters?.forEach((o,i)=>{const l=[o.kind,o.name].filter(Boolean).join("/");l&&t.push({id:`group-${n}-wf-${i}`,title:`${a}Workload${(e.workloadFilters?.length??0)>1?` #${i+1}`:""}`,label:l})});const i=e.templatizationRules?.map(e=>e.template).filter(Boolean).join(", ");i&&t.push({id:`group-${n}-templates`,title:`${a}Templates`,label:i}),e.notes&&t.push({id:`group-${n}-notes`,title:`${a}Notes`,label:e.notes})}),t})(T);return e(n,{children:[t(ne,{isOpen:!0,header:{icon:Et(T.type),title:$.label,onClose:A,actions:[{id:"edit-action-btn-edit",label:kt.EDIT,icon:hi,active:v,onClick:I},{id:"edit-action-btn-delete",label:kt.DELETE,icon:li,color:c.v2.colors.red[500],active:C,onClick:D}]},footer:{actions:v?[{"data-id":"edit-action-btn-cancel",label:kt.CANCEL,variant:de.Secondary,onClick:N},{"data-id":"edit-action-btn-save",label:kt.SAVE,variant:de.Primary,onClick:R}]:[]},children:t(Tt,{$padding:"4px 12px 12px",children:v&&h?t(Rs,{}):t(W,{$gap:16,children:e($t,{bgTint:"1000",children:[e($t,{bgTint:"900",children:[t(It,{conditions:T.conditions||[]}),t($t,{bgTint:"800",cellsPerRow:2,items:_r(T,$)})]}),!!F?.length&&t($t,{bgTint:"900",richTitle:{title:"Configuration"},withCollapse:!0,collapseIsDefaultOpen:!0,children:t($t,{bgTint:"800",cellsPerRow:2,items:F})})]})})})}),t(Sl,{target:"action",isOpen:C,onClose:()=>S(!1),onApprove:P}),t(wl,{isOpen:null!==w,onClose:()=>x(null),onApprove:O})]})},zr=({onClose:n,connections:l,selectedConnectionIds:r,setSelectedConnectionIds:c})=>{const{configApi:d}=ll(),[u,p]=s(""),[h,m]=s({showOnlySelected:!1}),g=a(()=>l.filter(e=>{const t=!u||e.name.toLowerCase().includes(u.toLowerCase()),n=!h.showOnlySelected||h.showOnlySelected&&r.includes(e.id);return t&&n}),[l.length,r.length,u,h]),f=e=>{c(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},b=1===r.length?r[0]:void 0,{data:v,loading:y}=d.useEffectiveConfig(b?{id:b}:void 0,{skip:!b}),C=a(()=>{if(b&&v)return{rollout:{automaticRolloutDisabled:v.rollout?.automaticRolloutDisabled??!1}}},[b,v]),{formData:S,handleFormChange:w,areFormValuesEqual:x,resetFormData:k}=At(C||{rollout:{automaticRolloutDisabled:!1}}),T=i(k);T.current=k,o(()=>{C&&T.current(C)},[C]);const $=a(()=>r.length>1||void 0!==C&&!x(C,S),[r.length,C,S]);return t(Cl,{isOpen:!0,onClose:n,onSave:async()=>await(d.applyConfigurations?.(S,r))??void 0,header:{icon:$i,title:"Cluster Configuration"},connectionIds:{value:r,setValue:c},search:{placeholder:"Search by cluster name",value:u,onChange:p},filters:e(se,{$gap:8,children:[t(ae,{size:le.XXXS,color:ie.Secondary,nowrap:!0,children:"Show only:"}),t(Q,{size:bt.S,label:"Selected",value:h.showOnlySelected,onChange:e=>m(t=>({...t,showOnlySelected:e}))})]}),isFormDirty:$,isFetching:y,leftColumn:{width:"35%",header:e(se,{$width:"100%",$gap:12,$justifyContent:"space-between",children:[e(se,{$gap:8,children:[t(ae,{size:le.XS,children:"Clusters"}),t(Be,{label:g.length,status:Ie.Unknown})]}),e(se,{$gap:8,children:[t(ae,{size:le.XXXS,color:ie.Secondary,align:"right",children:"Selected clusters"}),t(Be,{label:`${r.length}/${g.length}`,status:Ie.Unknown})]})]}),list:g.map(e=>t(ar,{title:e.name,isChecked:r.includes(e.id),onClick:()=>f(e.id),onCheckboxChange:()=>f(e.id)},e.id))},rightColumn:{width:"65%",header:t(ae,{size:le.XS,children:"Configurations"}),list:[t(Q,{label:"Automatic rollout disabled",tooltip:"Odigos automatically triggers a one-time rollout for workloads when instrumenting or uninstrumenting, ensuring that changes are applied without requiring manual intervention. When automatic rollout is disabled, Odigos will not restart workloads, and users will need to manually trigger rollouts after adding or removing sources.",value:S.rollout?.automaticRolloutDisabled||!1,onChange:e=>w("rollout.automaticRolloutDisabled",e)},"automatic-rollout-disabled")]}})},Br=e=>{const t=[{id:"type",title:Ge.TYPE,label:e.destinationType.displayName},{id:"status",title:Ge.STATUS,badge:{status:e.disabled?Ie.Unknown:Ie.Success,label:e.disabled?Ge.DISABLED:Ge.ENABLED}}],n=Ae(e.exportedSignals).map(e=>{let t=e.toLowerCase();return t=`${t.charAt(0).toUpperCase()}${t.slice(1)}`,t}).join(", ");return n&&t.push({id:"monitors",title:Ge.MONITORS,label:n}),e.name&&t.push({id:"name",title:Ge.NAME,label:e.name}),t},Xr=({onClose:r,destinationId:c})=>{const d=f(),{isVm:u}=y(),{destinationsApi:p}=ll(),{selectedStreamName:h}=He(),{items:m,refetch:g}=p.useDestinations(),{data:b,loading:v}=p.useDestinationCategories(),{activeForm:C,loadDestination:S,validateFormData:w,genericForm:x}=Al();o(()=>{g()},[]);const k=i(null),[T,$]=s(!1),[I,E]=s(!1),[A,N]=s(null),O=T&&!!x?.isFormDirty,R=a(()=>Rt(m,h),[m,h]),D=a(()=>R?.find(e=>xt(e)===c),[c,R]),P=b?.destinationCategories?.categories??null;o(()=>{D&&P&&S(D,P)},[D,P]);const F=a(()=>D&&P?Dt(P,D):[],[D,P]),L=l(()=>{D&&$(!0)},[D]),_=l(()=>{D&&P&&(S(D,P),$(!1))},[D,P,S]),M=l(()=>{O?N("close"):r()},[O,r]),z=l(()=>{O?N("cancel"):_()},[O,_]),B=l(()=>{const e=A;N(null),"close"===e?(_(),r()):_()},[A,_,r]),X=l(async()=>{if(D){const{errorMessage:e,preparedFormData:t}=w();e||(await p.update(D.id,Oe(t)),$(!1))}},[D,w,p]),V=l(()=>{D&&E(!0)},[D]),U=l(async()=>{D&&(await p.remove(D.id),r())},[D,p,r]);if(!D)return null;const{icon:G,iconSrc:H}=ut(D.destinationType.type),j=((e,t)=>{const n=[],o=Nt(e,t),a=o.map(e=>({name:e.key,value:e.value})),i=Ae(e.exportedSignals);let l=[];const s=()=>{l.length&&(n.push({kind:"cells",id:`cells-${n.length}`,items:l}),l=[])};return o.forEach(({key:e,name:o,value:r})=>{const c=t.find(t=>t.name===e),{secret:d,componentType:u,componentProperties:p,hideFromReadData:h,customReadDataLabels:m}=c||{};if(h?.length&&Te(h,i,a))return;const{type:g}=ht(p,{type:""}),f=d||"password"===g;if(m?.length)m.forEach(({condition:t,...n},o)=>{t==r&&l.push({id:`${e}-custom-${o}`,title:n.title,label:n.value})});else if(r)if(f)l.push({id:e,title:o,label:new Array(10).fill("•").join("")});else{if(u===Ot.MultiInput){const t=ht(r,null);if(Array.isArray(t)&&t.length)return s(),void n.push({kind:"list",id:e,title:o,items:t.map((t,n)=>({id:`${e}-${n}`,label:String(t)}))})}if(u===Ot.KeyValuePair){const t=ht(r,null);if(Array.isArray(t)&&t.length)return s(),void n.push({kind:"pairs",id:e,title:o,items:t.map((t,n)=>{const o=t&&"object"==typeof t?t:{};return{id:`${e}-${n}`,title:null!=o.key?String(o.key):"",label:null!=o.value?String(o.value):""}})})}l.push({id:e,title:o,label:r})}else l.push({id:e,title:o,label:"-"})}),s(),n})(D,F);return e(n,{children:[t(ne,{isOpen:!0,header:{icon:G,iconSrc:H,title:D.name||D.destinationType.displayName,onClose:M,actions:[{id:"edit-destination-btn-edit",label:kt.EDIT,icon:hi,active:T,onClick:L},{id:"edit-destination-btn-delete",label:kt.DELETE,icon:li,color:d.v2.colors.red[500],active:I,onClick:V}]},footer:{actions:T?[{"data-id":"edit-destination-btn-cancel",label:kt.CANCEL,variant:de.Secondary,onClick:z},...C?.option.testConnectionSupported&&!u?[{"data-id":"edit-destination-btn-test-connection",label:kt.TEST_CONNECTION,variant:de.Secondary,onClick:()=>k.current?.testConnection()}]:[],{"data-id":"edit-destination-btn-save",label:kt.SAVE,variant:de.Primary,onClick:X}]:[]},children:t(Tt,{$padding:"4px 12px 12px",children:v?t(at,{$height:"50vh",children:t(ct,{withSpinner:!0})}):T&&C?t(Fs,{ref:k,isEdit:!0}):t(W,{$gap:16,children:e($t,{bgTint:"1000",children:[e($t,{bgTint:"900",children:[!u&&t(It,{conditions:D.conditions||[]}),t($t,{bgTint:"800",cellsPerRow:2,items:Br(D)})]}),!!j.length&&t($t,{bgTint:"900",richTitle:{title:"Configuration"},withCollapse:!0,collapseIsDefaultOpen:!0,children:j.map(e=>"cells"===e.kind?t($t,{bgTint:"800",cellsPerRow:2,items:e.items},e.id):(e.kind,t($t,{bgTint:"800",richTitle:{title:e.title},cellsPerRow:2,items:e.items},e.id)))})]})})})}),t(Sl,{target:"destination",isOpen:I,onClose:()=>E(!1),onApprove:U}),t(wl,{isOpen:null!==A,onClose:()=>N(null),onApprove:B})]})},Vr=(e,t)=>{const n=[{id:"type",title:Ge.TYPE,label:t.label},{id:"status",title:Ge.STATUS,badge:{status:e.disabled?Ie.Unknown:Ie.Success,label:e.disabled?Ge.DISABLED:Ge.ENABLED}}];return e.ruleName&&n.push({id:"name",title:Ge.NAME,label:e.ruleName}),e.profileName&&n.push({id:"profile",title:Ge.MANAGED_BY_PROFILE,label:e.profileName}),e.notes&&n.push({id:"notes",title:Ge.NOTES,label:e.notes}),n},Ur=({onClose:i,ruleId:r})=>{const c=f(),{addNotification:d}=Ft(),{instrumentationRulesApi:u}=ll(),{items:p,refetch:h}=u.useRules(),{selectedOption:m,loadRule:g,validateFormData:b,genericForm:v}=Nl();o(()=>{h()},[]);const[y,C]=s(!1),[S,w]=s(!1),[x,k]=s(null),T=y&&!!v?.isFormDirty,$=a(()=>p?.find(e=>xt(e)===r),[r,p]),I=a(()=>mt.find(({type:e})=>e===$?.type)??null,[$?.type]);o(()=>{$&&g($)},[$]);const E=l(()=>{if($){if(!$.mutable)return void d({type:Ie.Warning,title:Lt.FORBIDDEN,message:Lt.CANNOT_EDIT_RULE,crdType:gt.InstrumentationRule,target:$.ruleId,hideFromHistory:!0});C(!0)}},[$,d]),A=l(()=>{$&&(g($),C(!1))},[$,g]),N=l(()=>{T?k("close"):i()},[T,i]),O=l(()=>{T?k("cancel"):A()},[T,A]),R=l(()=>{const e=x;k(null),"close"===e?(A(),i()):A()},[x,A,i]),D=l(async()=>{if($){const{errorMessage:e,preparedFormData:t}=b();e||(await u.update($.ruleId,t,$.type),C(!1))}},[$,b,u]),P=l(()=>{if($){if(!$.mutable)return void d({type:Ie.Warning,title:Lt.FORBIDDEN,message:Lt.CANNOT_DELETE_RULE,crdType:gt.InstrumentationRule,target:$.ruleId,hideFromHistory:!0});w(!0)}},[$,d]),F=l(async()=>{$&&(await u.remove($.ruleId,$.type),i())},[$,u,i]);if(!$||!I)return null;const L=((e,n)=>{const o=[];return e.payloadCollection&&Object.entries(e.payloadCollection).forEach(([e,n])=>{n&&o.push(t(ae,{size:le.XS,children:`• ${Pt(e).toLowerCase()}`},`payload-${e}`))}),e.codeAttributes&&Object.entries(e.codeAttributes).forEach(([e,n])=>{n&&o.push(t(ae,{size:le.XS,children:`• ${Pt(e).toLowerCase()}`},`code-${e}`))}),e.headersCollection?.[Pe.HeaderKeys]?.length&&e.headersCollection[Pe.HeaderKeys].forEach((e,n)=>{e&&o.push(t(ae,{size:le.XS,children:e},`header-${n}-${e}`))}),e.customInstrumentations&&(e.customInstrumentations[Me.Java]?.forEach((e,a)=>{const i=new _e(e.className,e.methodName);if(i.Verify()){0===a&&o.push(t(ae,{size:le.XS,children:"Java Custom Probes:"},"java-custom-probes"));const e=i.toString();o.push(t(ae,{size:le.XXS,color:n.v2.colors.grey[200],children:`• ${e}`},`java-probe-${a}-${e}`))}}),e.customInstrumentations[Me.Golang]?.forEach((e,a)=>{const i=new Le(e.packageName,e.functionName,e.receiverName,e.receiverMethodName);if(i.Verify()){0===a&&o.push(t(ae,{size:le.XS,children:"Golang Custom Probes:"},"golang-custom-probes"));const e=i.toString();o.push(t(ae,{size:le.XXS,color:n.v2.colors.grey[200],children:`• ${e}`},`golang-probe-${a}-${e}`))}})),o})($,c);return e(n,{children:[t(ne,{isOpen:!0,header:{icon:Mt($.type),title:I.label,onClose:N,actions:[{id:"edit-rule-btn-edit",label:kt.EDIT,icon:hi,active:y,onClick:E},{id:"edit-rule-btn-delete",label:kt.DELETE,icon:li,color:c.v2.colors.red[500],active:S,onClick:P}]},footer:{actions:y?[{"data-id":"edit-rule-btn-cancel",label:kt.CANCEL,variant:de.Secondary,onClick:O},{"data-id":"edit-rule-btn-save",label:kt.SAVE,variant:de.Primary,onClick:D}]:[]},children:t(Tt,{$padding:"4px 12px 12px",children:y&&m?t(Us,{}):t(W,{$gap:16,children:e($t,{bgTint:"1000",children:[e($t,{bgTint:"900",children:[t(It,{conditions:$.conditions||[]}),t($t,{bgTint:"800",cellsPerRow:2,items:Vr($,I)})]}),t(dl,{readOnly:!0,scopes:$.sourceScopes??null}),!!L.length&&t($t,{bgTint:"900",richTitle:{title:"Collect"},withCollapse:!0,collapseIsDefaultOpen:!0,children:t($t,{bgTint:"800",children:L})}),!!I.supportedLanguages.length&&t($t,{bgTint:"900",richTitle:{title:"Supported languages"},withCollapse:!0,collapseIsDefaultOpen:!0,children:t($t,{bgTint:"800",children:t(se,{$gap:12,$wrap:"wrap",children:I.supportedLanguages.map(e=>t(_t,{label:Xe[e],leftIcon:Ve(e),flex:"0.5"},e))})})})]})})})}),t(Sl,{target:"instrumentation rule",isOpen:S,onClose:()=>w(!1),onApprove:F}),t(wl,{isOpen:null!==x,onClose:()=>k(null),onApprove:R})]})};var Gr;!function(e){e.Overview="overview",e.Pods="pods",e.PeerSources="peer-sources",e.Profiling="profiling",e.Sampling="sampling",e.Debug="debug"}(Gr||(Gr={}));const Hr=({collapseIsDefaultOpen:e,isJumpToTarget:n,onClickRestartPod:o,namespace:i,podName:l,nodeName:s,startTime:r,agentInjectedStatus:c,odigosHealthStatus:d,k8sHealthStatus:u,children:p})=>{const{formatDurationAgo:h}=zt(),m=Bt(!!n),g=a(()=>({title:l,icon:Ii,withCopy:!0}),[l]),f=a(()=>{const e=[],t=Xt(c);t&&e.push(t);const n=Xt(d,Ei,"health");n&&e.push(n);const o=Xt(u,Ai,"health");return o&&e.push(o),e},[c,d,u]),b=a(()=>o?[{id:`restart-pod-${l}`,icon:Ni,label:kt.RESTART_POD,onClick:()=>o(i,l)}]:void 0,[o,i,l]),v=a(()=>[{id:"nodeName",title:Ge.NODE,label:s,withCopy:!0},{id:"age",title:Ge.AGE,label:r?h(r,{style:"short"}):Ge.NOT_RUNNING,labelTooltip:r}],[s,r,h]);return t("div",{ref:m,children:t($t,{bgTint:"900",richTitle:g,badges:f,dropDataActions:b,items:v,withCollapse:!0,collapseIsDefaultOpen:e,children:p})})},jr=g.div`
191
+ `,Pr=({clusterId:n,namespaceName:o,checkbox:a,isFutureApps:i,selectedCounts:l,isActive:s,onActive:r,handleSourceChange:c})=>{const{isVm:d}=y(),u=e=>{r(),c({clusterId:n,workloadId:{namespace:o},auto:e.auto,selected:e.all})};return t(Rr,{children:t(ar,{dataId:`namespace-${o}`,withCarret:!0,title:o,isSelected:s,onClick:r,isPartiallyChecked:a.partial,isChecked:a.all,onCheckboxChange:e=>u({auto:e,all:e}),children:e(se,{$gap:12,children:[!d&&t(Dr,{$visible:s||i,children:t(De,{text:Ir,children:t(Q,{label:$r,labelAlign:ee.Left,size:bt.S,value:i,onChange:e=>u({auto:e,all:e||void 0})})})}),e(se,{$gap:8,children:[t(ae,{variant:vt.Span,size:le.XXXS,color:ie.Secondary,align:"right",children:Tr}),t(Be,{label:`${l.sourced}/${l.total}`,status:s?Ie.Default:Ie.Unknown,minWidth:"42px"})]})]})})})},Fr=({withCollapse:e,clusterId:n,clusterName:o,namespaces:i,selectedArea:l,setSelectedArea:s,handleSourceChange:r})=>{const c=a(()=>i.map(({name:e,totalWorkloads:a,selectedCount:i,isAllSourced:c,isSomeSourced:d,isFutureApps:u})=>t(Pr,{clusterId:n,namespaceName:e,isFutureApps:u,checkbox:{all:c||u,partial:d},selectedCounts:{sourced:i,total:a},isActive:l.clusterId===n&&l.namespaceName===e,onActive:()=>s({clusterId:n,clusterName:o,namespaceName:e}),handleSourceChange:r},`${n}#${e}`)),[n,o,i,l]);return e?t(cr,{title:o,list:c,noBgColor:!0}):c},Lr=({onClose:n,onBack:i,onNext:l,selectedConnectionIds:r,setSelectedConnectionIds:c,withOverlay:d,disableAnimation:u})=>{const{isVm:p}=y(),{sourcesApi:h,snapshotsApi:m,namespacesApi:g}=ll(),{data:f,loading:b,refetch:v}=m.useSnapshots(),{items:C,loading:S,refetch:w}=g.useNamespaces(),x=yr(p),{selectedStreamName:k}=He(),{progress:T,resetProgress:$}=yt(),{isFetching:I,setIsFetching:E,setSnapshots:A,formData:N,handleSourceChange:O,handleSelectAll:R,formDiff:D,isFormDirty:P}=zl();o(()=>{v(),w()},[]);const F=a(()=>{if(f)return f;const e=C;return e.length?{clusters:[{clusterId:St,clusterName:Ct,namespaces:e.map(e=>({name:e.name,selected:e.markedForInstrumentation&&e.dataStreamNames.includes(k),workloads:e.workloads?.map(e=>({namespace:e.id.namespace,name:e.id.name,kind:e.id.kind,selected:(e.markedForInstrumentation?.markedForInstrumentation??!1)&&(e.dataStreamNames?.includes(k)??!1)}))||[]}))}]}:null},[f,C,k]);o(()=>{E(b||S),F&&A(F)},[F,b,S,E,A]);const[L,_]=s(""),[M,z]=s(gt.Namespace),[B,X]=s({showOnlySelected:!1}),[V,U]=s({clusterId:"",clusterName:"",namespaceName:""}),G=(({isFetching:n,formData:o,handleSourceChange:i,handleSelectAll:l,selectedArea:s,setSelectedArea:r,searchText:c,searchBy:d,filters:u})=>{const{isVm:p}=y(),h=yr(p),m=a(()=>o.map(e=>{const t=[...e.namespaces].sort((e,t)=>e.name.localeCompare(t.name)).filter(e=>_l(e,c,u)).map(e=>({name:e.name,totalWorkloads:e.workloads.length,...Ml(e)}));return{clusterId:e.clusterId,clusterName:e.clusterName,visibleNamespaces:t}}),[o,c,u]),g=a(()=>{let e=!1;for(const{visibleNamespaces:t}of m)for(const{totalWorkloads:n,selectedCount:o}of t)if(e=!0,o!==n)return!1;return e},[m]),{list:f,withFilterCount:b,filteredCount:v,totalCount:C}=a(()=>{const e=m.map(({clusterId:e,clusterName:n,visibleNamespaces:o})=>o.length?t(Fr,{withCollapse:m.length>1,clusterId:e,clusterName:n,namespaces:o,selectedArea:s,setSelectedArea:r,handleSourceChange:i},e):null).filter(e=>null!==e),n=m.reduce((e,{visibleNamespaces:t})=>e+t.length,0),a=o.reduce((e,{namespaces:t})=>e+t.length,0);return{list:e,withFilterCount:n!==a,filteredCount:n,totalCount:a}},[m,o,s]);return{width:"60%",header:e(se,{$width:"100%",$gap:12,$justifyContent:"space-between",children:[e(se,{$gap:8,children:[t(ae,{size:le.XS,nowrap:!0,children:h.groupColumnHeader}),t(De,{text:b?Ge.FILTERED_COUNT_TOOLTIP:void 0,children:t(Be,{label:`${b?`${v} / ${C}`:C}`,status:Ie.Unknown})})]}),t(ae,{"data-id":"namespaces-select-all",onClick:()=>l({boolean:!g,searchText:c,searchBy:d,filters:u}),disabled:!f.length,size:le.XS,children:xr(g)})]}),list:f.length?f:n?[t(at,{$height:"100%",children:t(ct,{title:h.fetchingGroups.title,subTitle:h.fetchingGroups.subTitle,withSpinner:!0})},"loading")]:[t(at,{$height:"100%",children:t(Ce,c?{icon:Ti,title:Cr,subTitle:h.noGroupMatchedFilter(c)}:{icon:Ti,title:h.noGroups.title,subTitle:h.noGroups.subTitle})},"no-data")]}})({isFetching:I,formData:N,handleSourceChange:O,handleSelectAll:R,selectedArea:V,setSelectedArea:U,searchText:M===gt.Namespace?L:"",searchBy:M,filters:B}),H=(({formData:n,handleSourceChange:o,handleSelectAll:i,selectedArea:l,searchText:s,searchBy:r,filters:c})=>{const{tier:d,isVm:u}=y(),p=yr(u),h=d===ft.Onprem,m=a(()=>l.value.namespaceName?n.find(({clusterId:e})=>e===l.value.clusterId)?.namespaces.find(({name:e})=>e===l.value.namespaceName):void 0,[n,l.value.clusterId,l.value.namespaceName]),g=a(()=>m?[...m.workloads].sort((e,t)=>e.name.localeCompare(t.name)).filter(e=>Fl(e,s,c)):[],[m,s,c]),f=a(()=>!!g.length&&g.every(({selected:e})=>e),[g]),b=a(()=>{if(!m)return[];const{clusterId:e}=l.value,{name:n}=m;return g.map(({name:a,selected:i,kind:l})=>{const s=!u&&!h&&Ll.has(l);return t(Or,{workloadName:a,workloadKind:l,isChecked:!s&&(i||!1),onToggle:()=>o({clusterId:e,workloadId:{namespace:n,name:a,kind:l}}),disabled:s,disabledReason:Er},`${e}#${n}#${a}#${l}`)})},[g,m,l.value.clusterId]),{withFilterCount:v,filteredCount:C,totalCount:S}=a(()=>{const e=m?.workloads.length??0;return{withFilterCount:g.length!==e,filteredCount:g.length,totalCount:e}},[g,m]);return{width:"40%",header:e(se,{$width:"100%",$gap:12,$justifyContent:"space-between",children:[e(se,{$gap:8,children:[t(ae,{size:le.XS,nowrap:!0,children:l.value.namespaceName?`${l.value.namespaceName} > ${p.itemColumnHeader}`:p.itemColumnHeader}),t(De,{text:v?Ge.FILTERED_COUNT_TOOLTIP:void 0,children:t(Be,{label:`${v?`${C} / ${S}`:S}`,status:Ie.Unknown})})]}),t(ae,{"data-id":"workloads-select-all",onClick:()=>i({clusterId:l.value.clusterId,namespaceName:l.value.namespaceName,boolean:!f,searchText:s,searchBy:r,filters:c}),disabled:!b.length,size:le.XS,children:xr(f)})]}),list:b.length?b:[t(at,{$height:"100%",children:t(Ce,m?s?{icon:ki,title:Cr,subTitle:wr(s)}:{icon:ki,title:Sr,subTitle:p.noItemsInGroupSubTitle}:{icon:ki,title:p.selectGroupPrompt.title,subTitle:p.selectGroupPrompt.subTitle})},"no-data")]}})({formData:N,handleSourceChange:O,handleSelectAll:R,selectedArea:{value:V},searchText:M===gt.Source?L:"",searchBy:M,filters:B});return t(Cl,{isOpen:!0,withOverlay:d,disableAnimation:u,onClose:n?()=>{$(wt.BulkInstrumenting),n()}:void 0,onBack:i?()=>i(D):void 0,onNext:l?()=>l(D):void 0,nextIsSkip:!P,onSave:()=>h.persistV2(D),header:{icon:ki,title:Ge.ADD_SOURCE,subTitle:Ge.ADD_SOURCES_DESCRIPTION},connectionIds:r&&c?{value:r,setValue:c}:void 0,search:{value:L,onChange:e=>{_(e),M===gt.Namespace&&U({clusterId:"",clusterName:"",namespaceName:""})},placeholder:x.searchPlaceholder(M),segment:{options:[{label:x.groupSegmentLabel,value:gt.Namespace},{label:x.itemSegmentLabel,value:gt.Source}],selected:M,setSelected:z}},filters:e(se,{$gap:8,children:[t(ae,{size:le.XXXS,color:ie.Secondary,nowrap:!0,children:kr}),t(Q,{name:"filter-selected",size:bt.S,label:Tr,value:B.showOnlySelected,onChange:e=>X(t=>({...t,showOnlySelected:e}))})]}),isFormDirty:P,isFetching:I,progress:{title:Ge.CREATING_SOURCES,subTitle:Ge.CREATING_SOURCES_SUBTITLE,percentage:T[wt.BulkInstrumenting]?.percentage||0},leftColumn:G,rightColumn:H})},_r=(e,t)=>{const n=[{id:"type",title:Ge.TYPE,label:t.label},{id:"status",title:Ge.STATUS,badge:{status:e.disabled?Ie.Unknown:Ie.Success,label:e.disabled?Ge.DISABLED:Ge.ENABLED}}],o=e.signals?.map(e=>{let t=e.toLowerCase();return t=`${t.charAt(0).toUpperCase()}${t.slice(1)}`,t}).join(", ");return o&&n.push({id:"signals",title:Ge.SIGNALS_FOR_PROCESSING,label:o}),e.name&&n.push({id:"name",title:Ge.NAME,label:e.name}),e.notes&&n.push({id:"notes",title:Ge.NOTES,label:e.notes}),n},Mr=({onClose:i,actionId:r})=>{const c=f(),{actionsApi:d}=ll(),{items:u,refetch:p}=d.useActions(),{selectedOption:h,loadAction:m,validateFormData:g,genericForm:b}=El();o(()=>{p()},[]);const[v,y]=s(!1),[C,S]=s(!1),[w,x]=s(null),k=v&&!!b?.isFormDirty,T=a(()=>u?.find(e=>xt(e)===r),[r,u]),$=a(()=>ot.find(({type:e})=>e===T?.type)??null,[T?.type]);o(()=>{T&&m(T)},[T]);const I=l(()=>{T&&y(!0)},[T]),E=l(()=>{T&&(m(T),y(!1))},[T,m]),A=l(()=>{k?x("close"):i()},[k,i]),N=l(()=>{k?x("cancel"):E()},[k,E]),O=l(()=>{const e=w;x(null),"close"===e?(E(),i()):E()},[w,E,i]),R=l(async()=>{if(T){const{errorMessage:e,preparedFormData:t}=g();e||(await d.update(T.id,t),y(!1))}},[T,g,d]),D=l(()=>{T&&S(!0)},[T]),P=l(async()=>{T&&(await d.remove(T.id,T.type),i())},[T,d,i]);if(!T||!$)return null;const F=(e=>{const t=[],{type:n,fields:o}=e,a=e=>({status:e?Ie.Success:Ie.Unknown,label:e?"True":"False",invertColors:!0});if(n===ye.K8sAttributes&&(t.push({id:"collectContainerAttributes",title:"Collect Container Attributes",badge:a(o.collectContainerAttributes)}),t.push({id:"collectReplicaSetAttributes",title:"Collect ReplicaSet Attributes",badge:a(o.collectReplicaSetAttributes)}),t.push({id:"collectWorkloadId",title:"Collect Workload ID",badge:a(o.collectWorkloadId)}),t.push({id:"collectClusterId",title:"Collect Cluster ID",badge:a(o.collectClusterId)}),o.labelsAttributes?.forEach(({labelKey:e,attributeKey:n,from:a,fromSources:i},l)=>{const s=i?.length?i.join(", "):a||Z.Pod,r=(o.labelsAttributes?.length??0)>1?`Label #${l+1} `:"Label ";t.push({id:`label-${l}-key`,title:`${r}Key`,label:e}),t.push({id:`label-${l}-attr`,title:`${r}Attribute Key`,label:n}),t.push({id:`label-${l}-from`,title:`${r}From`,label:s})}),o.annotationsAttributes?.forEach(({annotationKey:e,attributeKey:n,from:a,fromSources:i},l)=>{const s=i?.length?i.join(", "):a||Z.Pod,r=(o.annotationsAttributes?.length??0)>1?`Annotation #${l+1} `:"Annotation ";t.push({id:`annotation-${l}-key`,title:`${r}Key`,label:e}),t.push({id:`annotation-${l}-attr`,title:`${r}Attribute Key`,label:n}),t.push({id:`annotation-${l}-from`,title:`${r}From`,label:s})})),n===ye.AddClusterInfo&&(t.push({id:"overwriteExistingValues",title:"Overwrite Existing Values",badge:a(o.overwriteExistingValues)}),o.clusterAttributes?.forEach(({attributeName:e,attributeStringValue:n},o)=>{t.push({id:`cluster-attr-${o}`,title:e,label:n})})),n===ye.DeleteAttributes&&o.attributeNamesToDelete?.forEach((e,n)=>{t.push({id:`del-attr-${n}`,title:"Attribute"+((o.attributeNamesToDelete?.length??0)>1?` #${n+1}`:""),label:e})}),n===ye.RenameAttributes&&Object.entries(o.renames||{}).forEach(([e,n],o)=>{t.push({id:`rename-${o}`,title:e,label:n})}),n===ye.PiiMasking&&o.piiCategories?.forEach((e,n)=>{t.push({id:`pii-${n}`,title:"Category"+((o.piiCategories?.length??0)>1?` #${n+1}`:""),label:e})}),n===ye.ExtractAttribute){const e=o.extractAttribute?.extractions??[];e.forEach(({targetAttributeName:n,lookupKey:o,dataFormat:a,regex:i},l)=>{const s=e.length>1?`Extraction #${l+1} `:"Extraction ";t.push({id:`extract-${l}-target`,title:`${s}New Attribute Name`,label:n||"-"}),o&&t.push({id:`extract-${l}-lookupKey`,title:`${s}Lookup Key`,label:o}),a&&t.push({id:`extract-${l}-format`,title:`${s}Data Format`,label:a}),i&&t.push({id:`extract-${l}-regex`,title:`${s}Regex`,label:i})})}return n===ye.URLTemplatization&&o.urlTemplatizationRulesGroups?.forEach((e,n)=>{const a=(o.urlTemplatizationRulesGroups?.length??0)>1?`Group #${n+1} `:"Group ";e.filterK8sNamespace&&t.push({id:`group-${n}-ns`,title:`${a}Namespace`,label:e.filterK8sNamespace}),e.workloadFilters?.forEach((o,i)=>{const l=[o.kind,o.name].filter(Boolean).join("/");l&&t.push({id:`group-${n}-wf-${i}`,title:`${a}Workload${(e.workloadFilters?.length??0)>1?` #${i+1}`:""}`,label:l})});const i=e.templatizationRules?.map(e=>e.template).filter(Boolean).join(", ");i&&t.push({id:`group-${n}-templates`,title:`${a}Templates`,label:i}),e.notes&&t.push({id:`group-${n}-notes`,title:`${a}Notes`,label:e.notes})}),t})(T);return e(n,{children:[t(ne,{isOpen:!0,header:{icon:Et(T.type),title:$.label,onClose:A,actions:[{id:"edit-action-btn-edit",label:kt.EDIT,icon:hi,active:v,onClick:I},{id:"edit-action-btn-delete",label:kt.DELETE,icon:li,color:c.v2.colors.red[500],active:C,onClick:D}]},footer:{actions:v?[{"data-id":"edit-action-btn-cancel",label:kt.CANCEL,variant:de.Secondary,onClick:N},{"data-id":"edit-action-btn-save",label:kt.SAVE,variant:de.Primary,onClick:R}]:[]},children:t(Tt,{$padding:"4px 12px 12px",children:v&&h?t(Rs,{}):t(W,{$gap:16,children:e($t,{bgTint:"1000",children:[e($t,{bgTint:"900",children:[t(It,{conditions:T.conditions||[]}),t($t,{bgTint:"800",cellsPerRow:2,items:_r(T,$)})]}),!!F?.length&&t($t,{bgTint:"900",richTitle:{title:"Configuration"},withCollapse:!0,collapseIsDefaultOpen:!0,children:t($t,{bgTint:"800",cellsPerRow:2,items:F})})]})})})}),t(Sl,{target:"action",isOpen:C,onClose:()=>S(!1),onApprove:P}),t(wl,{isOpen:null!==w,onClose:()=>x(null),onApprove:O})]})},zr=({onClose:n,connections:l,selectedConnectionIds:r,setSelectedConnectionIds:c})=>{const{configApi:d}=ll(),[u,p]=s(""),[h,m]=s({showOnlySelected:!1}),g=a(()=>l.filter(e=>{const t=!u||e.name.toLowerCase().includes(u.toLowerCase()),n=!h.showOnlySelected||h.showOnlySelected&&r.includes(e.id);return t&&n}),[l.length,r.length,u,h]),f=e=>{c(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},b=1===r.length?r[0]:void 0,{data:v,loading:y}=d.useEffectiveConfig(b?{id:b}:void 0,{skip:!b}),C=a(()=>{if(b&&v)return{rollout:{automaticRolloutDisabled:v.rollout?.automaticRolloutDisabled??!1}}},[b,v]),{formData:S,handleFormChange:w,areFormValuesEqual:x,resetFormData:k}=At(C||{rollout:{automaticRolloutDisabled:!1}}),T=i(k);T.current=k,o(()=>{C&&T.current(C)},[C]);const $=a(()=>r.length>1||void 0!==C&&!x(C,S),[r.length,C,S]);return t(Cl,{isOpen:!0,onClose:n,onSave:async()=>await(d.applyConfigurations?.(S,r))??void 0,header:{icon:$i,title:"Cluster Configuration"},connectionIds:{value:r,setValue:c},search:{placeholder:"Search by cluster name",value:u,onChange:p},filters:e(se,{$gap:8,children:[t(ae,{size:le.XXXS,color:ie.Secondary,nowrap:!0,children:"Show only:"}),t(Q,{size:bt.S,label:"Selected",value:h.showOnlySelected,onChange:e=>m(t=>({...t,showOnlySelected:e}))})]}),isFormDirty:$,isFetching:y,leftColumn:{width:"35%",header:e(se,{$width:"100%",$gap:12,$justifyContent:"space-between",children:[e(se,{$gap:8,children:[t(ae,{size:le.XS,children:"Clusters"}),t(Be,{label:g.length,status:Ie.Unknown})]}),e(se,{$gap:8,children:[t(ae,{size:le.XXXS,color:ie.Secondary,align:"right",children:"Selected clusters"}),t(Be,{label:`${r.length}/${g.length}`,status:Ie.Unknown})]})]}),list:g.map(e=>t(ar,{title:e.name,isChecked:r.includes(e.id),onClick:()=>f(e.id),onCheckboxChange:()=>f(e.id)},e.id))},rightColumn:{width:"65%",header:t(ae,{size:le.XS,children:"Configurations"}),list:[t(Q,{label:"Automatic rollout disabled",tooltip:"Odigos automatically triggers a one-time rollout for workloads when instrumenting or uninstrumenting, ensuring that changes are applied without requiring manual intervention. When automatic rollout is disabled, Odigos will not restart workloads, and users will need to manually trigger rollouts after adding or removing sources.",value:S.rollout?.automaticRolloutDisabled||!1,onChange:e=>w("rollout.automaticRolloutDisabled",e)},"automatic-rollout-disabled")]}})},Br=e=>{const t=[{id:"type",title:Ge.TYPE,label:e.destinationType.displayName},{id:"status",title:Ge.STATUS,badge:{status:e.disabled?Ie.Unknown:Ie.Success,label:e.disabled?Ge.DISABLED:Ge.ENABLED}}],n=Ae(e.exportedSignals).map(e=>{let t=e.toLowerCase();return t=`${t.charAt(0).toUpperCase()}${t.slice(1)}`,t}).join(", ");return n&&t.push({id:"monitors",title:Ge.MONITORS,label:n}),e.name&&t.push({id:"name",title:Ge.NAME,label:e.name}),t},Xr=({onClose:r,destinationId:c})=>{const d=f(),{isVm:u}=y(),{destinationsApi:p}=ll(),{selectedStreamName:h}=He(),{items:m,refetch:g}=p.useDestinations(),{data:b,loading:v}=p.useDestinationCategories(),{activeForm:C,loadDestination:S,validateFormData:w,genericForm:x}=Al();o(()=>{g()},[]);const k=i(null),[T,$]=s(!1),[I,E]=s(!1),[A,N]=s(null),O=T&&!!x?.isFormDirty,R=a(()=>Rt(m,h),[m,h]),D=a(()=>R?.find(e=>xt(e)===c),[c,R]),P=b?.destinationCategories?.categories??null;o(()=>{D&&P&&S(D,P)},[D,P]);const F=a(()=>D&&P?Dt(P,D):[],[D,P]),L=l(()=>{D&&$(!0)},[D]),_=l(()=>{D&&P&&(S(D,P),$(!1))},[D,P,S]),M=l(()=>{O?N("close"):r()},[O,r]),z=l(()=>{O?N("cancel"):_()},[O,_]),B=l(()=>{const e=A;N(null),"close"===e?(_(),r()):_()},[A,_,r]),X=l(async()=>{if(D){const{errorMessage:e,preparedFormData:t}=w();e||(await p.update(D.id,Oe(t)),$(!1))}},[D,w,p]),V=l(()=>{D&&E(!0)},[D]),U=l(async()=>{D&&(await p.remove(D.id),r())},[D,p,r]);if(!D)return null;const{icon:G,iconSrc:H}=ut(D.destinationType.type),j=((e,t)=>{const n=[],o=Nt(e,t),a=o.map(e=>({name:e.key,value:e.value})),i=Ae(e.exportedSignals);let l=[];const s=()=>{l.length&&(n.push({kind:"cells",id:`cells-${n.length}`,items:l}),l=[])};return o.forEach(({key:e,name:o,value:r})=>{const c=t.find(t=>t.name===e),{secret:d,componentType:u,componentProperties:p,hideFromReadData:h,customReadDataLabels:m}=c||{};if(h?.length&&Te(h,i,a))return;const{type:g}=ht(p,{type:""}),f=d||"password"===g;if(m?.length)m.forEach(({condition:t,...n},o)=>{t==r&&l.push({id:`${e}-custom-${o}`,title:n.title,label:n.value})});else if(r)if(f)l.push({id:e,title:o,label:new Array(10).fill("•").join("")});else{if(u===Ot.MultiInput){const t=ht(r,null);if(Array.isArray(t)&&t.length)return s(),void n.push({kind:"list",id:e,title:o,items:t.map((t,n)=>({id:`${e}-${n}`,label:String(t)}))})}if(u===Ot.KeyValuePair){const t=ht(r,null);if(Array.isArray(t)&&t.length)return s(),void n.push({kind:"pairs",id:e,title:o,items:t.map((t,n)=>{const o=t&&"object"==typeof t?t:{};return{id:`${e}-${n}`,title:null!=o.key?String(o.key):"",label:null!=o.value?String(o.value):""}})})}l.push({id:e,title:o,label:r})}else l.push({id:e,title:o,label:"-"})}),s(),n})(D,F);return e(n,{children:[t(ne,{isOpen:!0,header:{icon:G,iconSrc:H,title:D.name||D.destinationType.displayName,onClose:M,actions:[{id:"edit-destination-btn-edit",label:kt.EDIT,icon:hi,active:T,onClick:L},{id:"edit-destination-btn-delete",label:kt.DELETE,icon:li,color:d.v2.colors.red[500],active:I,onClick:V}]},footer:{actions:T?[{"data-id":"edit-destination-btn-cancel",label:kt.CANCEL,variant:de.Secondary,onClick:z},...C?.option.testConnectionSupported&&!u?[{"data-id":"edit-destination-btn-test-connection",label:kt.TEST_CONNECTION,variant:de.Secondary,onClick:()=>k.current?.testConnection()}]:[],{"data-id":"edit-destination-btn-save",label:kt.SAVE,variant:de.Primary,onClick:X}]:[]},children:t(Tt,{$padding:"4px 12px 12px",children:v?t(at,{$height:"50vh",children:t(ct,{withSpinner:!0})}):T&&C?t(Fs,{ref:k,isEdit:!0}):t(W,{$gap:16,children:e($t,{bgTint:"1000",children:[e($t,{bgTint:"900",children:[!u&&t(It,{conditions:D.conditions||[]}),t($t,{bgTint:"800",cellsPerRow:2,items:Br(D)})]}),!!j.length&&t($t,{bgTint:"900",richTitle:{title:"Configuration"},withCollapse:!0,collapseIsDefaultOpen:!0,children:j.map(e=>"cells"===e.kind?t($t,{bgTint:"800",cellsPerRow:2,items:e.items},e.id):(e.kind,t($t,{bgTint:"800",richTitle:{title:e.title},cellsPerRow:2,items:e.items},e.id)))})]})})})}),t(Sl,{target:"destination",isOpen:I,onClose:()=>E(!1),onApprove:U}),t(wl,{isOpen:null!==A,onClose:()=>N(null),onApprove:B})]})},Vr=(e,t)=>{const n=[{id:"type",title:Ge.TYPE,label:t.label},{id:"status",title:Ge.STATUS,badge:{status:e.disabled?Ie.Unknown:Ie.Success,label:e.disabled?Ge.DISABLED:Ge.ENABLED}}];return e.ruleName&&n.push({id:"name",title:Ge.NAME,label:e.ruleName}),e.profileName&&n.push({id:"profile",title:Ge.MANAGED_BY_PROFILE,label:e.profileName}),e.notes&&n.push({id:"notes",title:Ge.NOTES,label:e.notes}),n},Ur=({onClose:i,ruleId:r})=>{const c=f(),{addNotification:d}=Ft(),{instrumentationRulesApi:u}=ll(),{items:p,refetch:h}=u.useRules(),{selectedOption:m,loadRule:g,validateFormData:b,genericForm:v}=Nl();o(()=>{h()},[]);const[y,C]=s(!1),[S,w]=s(!1),[x,k]=s(null),T=y&&!!v?.isFormDirty,$=a(()=>p?.find(e=>xt(e)===r),[r,p]),I=a(()=>mt.find(({type:e})=>e===$?.type)??null,[$?.type]);o(()=>{$&&g($)},[$]);const E=l(()=>{if($){if(!$.mutable)return void d({type:Ie.Warning,title:Lt.FORBIDDEN,message:Lt.CANNOT_EDIT_RULE,crdType:gt.InstrumentationRule,target:$.ruleId,hideFromHistory:!0});C(!0)}},[$,d]),A=l(()=>{$&&(g($),C(!1))},[$,g]),N=l(()=>{T?k("close"):i()},[T,i]),O=l(()=>{T?k("cancel"):A()},[T,A]),R=l(()=>{const e=x;k(null),"close"===e?(A(),i()):A()},[x,A,i]),D=l(async()=>{if($){const{errorMessage:e,preparedFormData:t}=b();e||(await u.update($.ruleId,t,$.type),C(!1))}},[$,b,u]),P=l(()=>{if($){if(!$.mutable)return void d({type:Ie.Warning,title:Lt.FORBIDDEN,message:Lt.CANNOT_DELETE_RULE,crdType:gt.InstrumentationRule,target:$.ruleId,hideFromHistory:!0});w(!0)}},[$,d]),F=l(async()=>{$&&(await u.remove($.ruleId,$.type),i())},[$,u,i]);if(!$||!I)return null;const L=((e,n)=>{const o=[];return e.payloadCollection&&Object.entries(e.payloadCollection).forEach(([e,n])=>{n&&o.push(t(ae,{size:le.XS,children:`• ${Pt(e).toLowerCase()}`},`payload-${e}`))}),e.codeAttributes&&Object.entries(e.codeAttributes).forEach(([e,n])=>{n&&o.push(t(ae,{size:le.XS,children:`• ${Pt(e).toLowerCase()}`},`code-${e}`))}),e.headersCollection?.[Pe.HeaderKeys]?.length&&e.headersCollection[Pe.HeaderKeys].forEach((e,n)=>{e&&o.push(t(ae,{size:le.XS,children:e},`header-${n}-${e}`))}),e.customInstrumentations&&(e.customInstrumentations[Me.Java]?.forEach((e,a)=>{const i=new _e(e.className,e.methodName);if(i.Verify()){0===a&&o.push(t(ae,{size:le.XS,children:"Java Custom Probes:"},"java-custom-probes"));const e=i.toString();o.push(t(ae,{size:le.XXS,color:n.v2.colors.grey[200],children:`• ${e}`},`java-probe-${a}-${e}`))}}),e.customInstrumentations[Me.Golang]?.forEach((e,a)=>{const i=new Le(e.packageName,e.functionName,e.receiverName,e.receiverMethodName);if(i.Verify()){0===a&&o.push(t(ae,{size:le.XS,children:"Golang Custom Probes:"},"golang-custom-probes"));const e=i.toString();o.push(t(ae,{size:le.XXS,color:n.v2.colors.grey[200],children:`• ${e}`},`golang-probe-${a}-${e}`))}})),o})($,c);return e(n,{children:[t(ne,{isOpen:!0,header:{icon:Mt($.type),title:I.label,onClose:N,actions:[{id:"edit-rule-btn-edit",label:kt.EDIT,icon:hi,active:y,onClick:E},{id:"edit-rule-btn-delete",label:kt.DELETE,icon:li,color:c.v2.colors.red[500],active:S,onClick:P}]},footer:{actions:y?[{"data-id":"edit-rule-btn-cancel",label:kt.CANCEL,variant:de.Secondary,onClick:O},{"data-id":"edit-rule-btn-save",label:kt.SAVE,variant:de.Primary,onClick:D}]:[]},children:t(Tt,{$padding:"4px 12px 12px",children:y&&m?t(Us,{}):t(W,{$gap:16,children:e($t,{bgTint:"1000",children:[e($t,{bgTint:"900",children:[t(It,{conditions:$.conditions||[]}),t($t,{bgTint:"800",cellsPerRow:2,items:Vr($,I)})]}),t(dl,{readOnly:!0,scopes:$.sourceScopes??null}),!!L.length&&t($t,{bgTint:"900",richTitle:{title:"Collect"},withCollapse:!0,collapseIsDefaultOpen:!0,children:t($t,{bgTint:"800",children:L})}),!!I.supportedLanguages.length&&t($t,{bgTint:"900",richTitle:{title:"Supported languages"},withCollapse:!0,collapseIsDefaultOpen:!0,children:t($t,{bgTint:"800",children:t(se,{$gap:12,$wrap:"wrap",children:I.supportedLanguages.map(e=>t(_t,{label:Xe[e],leftIcon:Ve(e),flex:"0.5"},e))})})})]})})})}),t(Sl,{target:"instrumentation rule",isOpen:S,onClose:()=>w(!1),onApprove:F}),t(wl,{isOpen:null!==x,onClose:()=>k(null),onApprove:R})]})};var Gr;!function(e){e.Overview="overview",e.Pods="pods",e.PeerSources="peer-sources",e.Profiling="profiling",e.Sampling="sampling",e.Debug="debug"}(Gr||(Gr={}));const Hr=({collapseIsDefaultOpen:e,isJumpToTarget:n,onClickRestartPod:o,namespace:i,podName:l,nodeName:s,startTime:r,agentInjectedStatus:c,odigosHealthStatus:d,k8sHealthStatus:u,children:p})=>{const{formatDurationAgo:h}=zt(),m=Bt(!!n),g=a(()=>({title:l,icon:Ii,withCopy:!0}),[l]),f=a(()=>{const e=[],t=Xt(c);t&&e.push(t);const n=Xt(d,Ei,"health");n&&e.push(n);const o=Xt(u,Ai,"health");return o&&e.push(o),e},[c,d,u]),b=a(()=>o?[{id:`restart-pod-${l}`,icon:Ni,label:kt.RESTART_POD,onClick:()=>o(i,l)}]:void 0,[o,i,l]),v=a(()=>[{id:"nodeName",title:Ge.NODE,label:s,withCopy:!0},{id:"age",title:Ge.AGE,label:r?h(r,{style:"short"}):Ge.NOT_RUNNING,labelTooltip:r}],[s,r,h]);return t("div",{ref:m,children:t($t,{bgTint:"900",richTitle:g,badges:f,dropDataActions:b,items:v,withCollapse:!0,collapseIsDefaultOpen:e,children:p})})},jr=g.div`
192
192
  display: flex;
193
193
  align-items: center;
194
194
  justify-content: space-between;
@@ -246,7 +246,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import{useEffect
246
246
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
247
247
  }
248
248
  `}
249
- `,mc=({serviceName:n,isVirtual:o,nodeAttributes:i})=>{const l=Zt(e=>e.drawerEntityId),{items:s}=ll().sourcesApi.useSources(),r=a(()=>s.find(e=>e.id.name===n||e.serviceName===n),[s,n]),c=a(()=>r&&JSON.stringify(Qt(r))!==JSON.stringify(Qt(l)),[r,l]),d=a(()=>{if(o){const e=Object.fromEntries((i??[]).map(({key:e,value:t})=>[e,t]));return[en({serviceName:n,attributes:e})]}if(n?.toLowerCase()===Wl)return[Fi];const e=r?tn(r):void 0;return e?.length?e:[Ri]},[o,i,n,r]),u=c?()=>{const{setDrawerType:e,setDrawerEntityId:t}=Zt.getState();e(gt.Source),t({namespace:r?.id.namespace??"",name:r?.id.name??"",kind:r?.id.kind??""})}:void 0;return e(hc,{onClick:u,$withClick:!!u,children:[e(se,{$gap:8,children:[t(nn,{icons:d}),t(ae,{size:le.XXS,children:n})]}),o&&t(Be,{status:Ie.Info,label:Ge.VIRTUAL,textSize:le.XXXS,invertColors:!0,tooltip:Ge.VIRTUAL_TOOLTIP})]})},gc=e=>{if("string"==typeof e)return e;if(e&&"object"==typeof e){const t=e;if("string"==typeof t.k8sActualManifest)return t.k8sActualManifest;if("string"==typeof t.manifest)return t.manifest}},fc=({source:n})=>{const i=f(),{k8sManifestApi:l}=ll(),[r,c]=s(!0),[d,u]=s(void 0),[p,h]=s(!0),[m,g]=s(void 0);o(()=>{l.fetch({namespace:n.id.namespace,kind:n.id.kind,name:n.id.name}).then(({data:e})=>u(gc(e))).finally(()=>c(!1)),l.fetch({namespace:n.id.namespace,kind:on.InstrumentationConfig,name:`${n.id.kind}-${n.id.name}`.toLowerCase()}).then(({data:e})=>g(gc(e))).finally(()=>h(!1))},[l,n.id.namespace,n.id.kind,n.id.name]);const b=a(()=>[{label:Ge.DESCRIBE_POD,value:`kubectl describe ${n.id.kind} ${n.id.name} -n ${n.id.namespace}`},{label:Ge.GET_POD_YAML,value:`kubectl get ${n.id.kind} ${n.id.name} -n ${n.id.namespace} -o yaml`},{label:Ge.GET_POD_YAML,value:`kubectl get ${on.InstrumentationConfig} ${n.id.kind}-${n.id.name} -n ${n.id.namespace} -o yaml`}],[n.id.kind,n.id.name,n.id.namespace]);return e($t,{bgTint:"1000",children:[t($t,{bgTint:"900",richTitle:{icon:Li,title:Ge.DEBUG_COMMANDS},withCollapse:!0,collapseIsDefaultOpen:!0,children:b.map(({label:e,value:n},o)=>t(Kt,{label:e,value:n},`debug-cmd-${o}-${e}`))}),r?t(an,{size:1}):t(xl,{bgTint:"800",codeBgColor:i.v2.colors.silver[900],title:`${n.id.kind} YAML`,yaml:d}),p?t(an,{size:1}):t(xl,{bgTint:"800",codeBgColor:i.v2.colors.silver[900],title:"Instrumentation Config YAML",yaml:m})]})},bc=({title:n,children:o})=>e(W,{$gap:8,children:[t(ae,{size:le.XXXS,color:ie.Secondary,children:n}),o]}),vc=({source:n})=>{const o=a(()=>{const[e,t]=ln(n.telemetryMetrics?.[0]?.throughputBytes||0).split(" ");return{value:e,units:t}},[n]);return t(bc,{title:Ge.THROUGHPUT_LAST_10_SECONDS,children:e(se,{$alignItems:"flex-end",$gap:4,children:[t(ae,{size:le.L,children:o.value}),t(ae,{size:le.XS,variant:vt.Span,children:o.units})]})})},yc=({source:n})=>{const{CopyButton:o}=sn();return t(bc,{title:Ge.NAMESPACE,children:e(se,{children:[t(_t,{variant:Wt.Blue,label:n.id.namespace}),t(o,{value:n.id.namespace,size:rt.XS})]})})},Cc=({source:e})=>t(bc,{title:Ge.KIND,children:t(se,{children:t(_t,{variant:Wt.Blue,label:e.id.kind})})}),Sc=({source:n})=>{const{CopyButton:o}=sn();return t(bc,{title:Ge.NAME,children:e(se,{children:[t(_t,{variant:Wt.Blue,label:n.id.name}),t(o,{value:n.id.name,size:rt.XS})]})})},wc=({source:n})=>{const{isVm:o}=y();return t($t,{children:e(se,{$gap:24,$alignItems:"flex-start",$justifyContent:"flex-start",$wrap:"wrap",children:[!o&&t(vc,{source:n}),!o&&t(yc,{source:n}),t(Cc,{source:n}),t(Sc,{source:n})]})})},xc=({source:e})=>t($t,{bgTint:"900",children:t(Wr,{podsOdigosHealthStatus:e.podsOdigosHealthStatus,pods:e.pods,noPadding:!0})}),kc=({source:e})=>{const n=a(()=>e.workloadOdigosHealthStatus?{status:e.workloadOdigosHealthStatus.status?rn(e.workloadOdigosHealthStatus.status):Ie.Unknown,title:Pt(e.workloadOdigosHealthStatus.reasonEnum),subTitle:e.workloadOdigosHealthStatus.message}:null,[e]);return n?t(Ut,{...n,width:"100%"}):null},Tc="calc(50% - 6px)",$c=({source:n,onClickRollout:o,onClickRollback:i})=>{const l=a(()=>{const{status:e,reasonEnum:t,message:a}=n.conditions?.rollout||{},i=Gt(e);if(!i)return null;return{status:i,title:t?.toLowerCase().includes("rollout")?Pt(t):`${Ge.ROLLOUT} ${Pt(t)}`,subTitle:a,action:i!==Ie.Success?{icon:Ni,tooltip:Ge.ROLLOUT_RESTART,onClick:o}:void 0}},[n]),s=a(()=>{const{status:e,reasonEnum:t,message:o}=n.autoRollback?.autoRollbackStatus||{},a=Gt(e);if(!a)return null;return{status:a,title:t?.toLowerCase().includes("rollback")?Pt(t):`${Ge.ROLLBACK} ${Pt(t)}`,subTitle:o,action:a!==Ie.Success?{icon:Ni,tooltip:Ge.ROLLBACK_RECOVER,onClick:i}:void 0}},[n]);return l||s?e(se,{$gap:12,$alignItems:"stretch",children:[l&&t(Ut,{invertColors:!0,slim:!0,width:s?Tc:"100%",...l}),s&&t(Ut,{invertColors:!0,slim:!0,width:Tc,...s})]}):null},Ic=p(null),Ec=g.div`
249
+ `,mc=({serviceName:n,isVirtual:o,nodeAttributes:i})=>{const l=Zt(e=>e.drawerEntityId),{items:s}=ll().sourcesApi.useSources(),r=a(()=>s.find(e=>e.id.name===n||e.serviceName===n),[s,n]),c=a(()=>r&&JSON.stringify(Qt(r))!==JSON.stringify(Qt(l)),[r,l]),d=a(()=>{if(o){const e=Object.fromEntries((i??[]).map(({key:e,value:t})=>[e,t]));return[en({serviceName:n,attributes:e})]}if(n?.toLowerCase()===Wl)return[Fi];const e=r?tn(r):void 0;return e?.length?e:[Ri]},[o,i,n,r]),u=c?()=>{const{setDrawerType:e,setDrawerEntityId:t}=Zt.getState();e(gt.Source),t({namespace:r?.id.namespace??"",name:r?.id.name??"",kind:r?.id.kind??""})}:void 0;return e(hc,{onClick:u,$withClick:!!u,children:[e(se,{$gap:8,children:[t(nn,{icons:d}),t(ae,{size:le.XXS,children:n})]}),o&&t(Be,{status:Ie.Info,label:Ge.VIRTUAL,textSize:le.XXXS,invertColors:!0,tooltip:Ge.VIRTUAL_TOOLTIP})]})},gc=e=>{if("string"==typeof e)return e;if(e&&"object"==typeof e){const t=e;if("string"==typeof t.k8sActualManifest)return t.k8sActualManifest;if("string"==typeof t.manifest)return t.manifest}},fc=({source:n})=>{const i=f(),{k8sManifestApi:l}=ll(),[r,c]=s(!0),[d,u]=s(void 0),[p,h]=s(!0),[m,g]=s(void 0);o(()=>{l.fetch({namespace:n.id.namespace,kind:n.id.kind,name:n.id.name}).then(({data:e})=>u(gc(e))).finally(()=>c(!1)),l.fetch({namespace:n.id.namespace,kind:on.InstrumentationConfig,name:`${n.id.kind}-${n.id.name}`.toLowerCase()}).then(({data:e})=>g(gc(e))).finally(()=>h(!1))},[l,n.id.namespace,n.id.kind,n.id.name]);const b=a(()=>[{label:Ge.DESCRIBE_POD,value:`kubectl describe ${n.id.kind} ${n.id.name} -n ${n.id.namespace}`},{label:Ge.GET_POD_YAML,value:`kubectl get ${n.id.kind} ${n.id.name} -n ${n.id.namespace} -o yaml`},{label:Ge.GET_POD_YAML,value:`kubectl get ${on.InstrumentationConfig} ${n.id.kind}-${n.id.name} -n ${n.id.namespace} -o yaml`}],[n.id.kind,n.id.name,n.id.namespace]);return e($t,{bgTint:"1000",children:[t($t,{bgTint:"900",richTitle:{icon:Li,title:Ge.DEBUG_COMMANDS},withCollapse:!0,collapseIsDefaultOpen:!0,children:b.map(({label:e,value:n},o)=>t(Kt,{label:e,value:n},`debug-cmd-${o}-${e}`))}),r?t(an,{size:1}):t(xl,{bgTint:"800",codeBgColor:i.v2.colors.silver[900],title:`${n.id.kind} YAML`,yaml:d}),p?t(an,{size:1}):t(xl,{bgTint:"800",codeBgColor:i.v2.colors.silver[900],title:"Instrumentation Config YAML",yaml:m})]})},bc=({title:n,children:o})=>e(W,{$gap:8,children:[t(ae,{size:le.XXXS,color:ie.Secondary,children:n}),o]}),vc=({source:n})=>{const o=a(()=>{const[e,t]=ln(n.telemetryMetrics?.[0]?.throughputBytes||0).split(" ");return{value:e,units:t}},[n]);return t(bc,{title:Ge.THROUGHPUT_LAST_10_SECONDS,children:e(se,{$alignItems:"flex-end",$gap:4,children:[t(ae,{size:le.L,children:o.value}),t(ae,{size:le.XS,variant:vt.Span,children:o.units})]})})},yc=({source:n})=>{const{CopyButton:o}=sn();return t(bc,{title:Ge.NAMESPACE,children:e(se,{children:[t(_t,{variant:Wt.Blue,label:n.id.namespace}),t(o,{value:n.id.namespace,size:rt.XS})]})})},Cc=({source:e})=>t(bc,{title:Ge.KIND,children:t(se,{children:t(_t,{variant:Wt.Blue,label:e.id.kind})})}),Sc=({source:n})=>{const{CopyButton:o}=sn();return t(bc,{title:Ge.NAME,children:e(se,{children:[t(_t,{variant:Wt.Blue,label:n.id.name}),t(o,{value:n.id.name,size:rt.XS})]})})},wc=({source:n})=>{const{isVm:o}=y();return t($t,{children:e(se,{$gap:24,$alignItems:"flex-start",$justifyContent:"flex-start",$wrap:"wrap",children:[!o&&t(vc,{source:n}),!o&&t(yc,{source:n}),t(Cc,{source:n}),t(Sc,{source:n})]})})},xc=({source:e})=>e.pods?.length?t($t,{bgTint:"900",children:t(Wr,{podsOdigosHealthStatus:e.podsOdigosHealthStatus,pods:e.pods,noPadding:!0})}):null,kc=({source:e})=>{const n=a(()=>e.workloadOdigosHealthStatus?{status:e.workloadOdigosHealthStatus.status?rn(e.workloadOdigosHealthStatus.status):Ie.Unknown,title:Pt(e.workloadOdigosHealthStatus.reasonEnum),subTitle:e.workloadOdigosHealthStatus.message}:null,[e]);return n?t(Ut,{...n,width:"100%"}):null},Tc="calc(50% - 6px)",$c=({source:n,onClickRollout:o,onClickRollback:i})=>{const l=a(()=>{const{status:e,reasonEnum:t,message:a}=n.conditions?.rollout||{},i=Gt(e);if(!i)return null;return{status:i,title:t?.toLowerCase().includes("rollout")?Pt(t):`${Ge.ROLLOUT} ${Pt(t)}`,subTitle:a,action:i!==Ie.Success?{icon:Ni,tooltip:Ge.ROLLOUT_RESTART,onClick:o}:void 0}},[n]),s=a(()=>{const{status:e,reasonEnum:t,message:o}=n.autoRollback?.autoRollbackStatus||{},a=Gt(e);if(!a)return null;return{status:a,title:t?.toLowerCase().includes("rollback")?Pt(t):`${Ge.ROLLBACK} ${Pt(t)}`,subTitle:o,action:a!==Ie.Success?{icon:Ni,tooltip:Ge.ROLLBACK_RECOVER,onClick:i}:void 0}},[n]);return l||s?e(se,{$gap:12,$alignItems:"stretch",children:[l&&t(Ut,{invertColors:!0,slim:!0,width:s?Tc:"100%",...l}),s&&t(Ut,{invertColors:!0,slim:!0,width:Tc,...s})]}):null},Ic=p(null),Ec=g.div`
250
250
  position: relative;
251
251
  `,Ac=({children:e})=>{const n=i(null);return t(Ec,{ref:n,children:t(Ic.Provider,{value:n,children:e})})},Nc=g.div`
252
252
  position: fixed;
@@ -377,7 +377,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import{useEffect
377
377
  opacity: 1;
378
378
  pointer-events: auto;
379
379
  }
380
- `,Pd=({name:n,summary:o,onJumpToRule:a})=>e(Nd,{children:[e(Od,{children:[n&&t(ae,{size:le.XXXS,color:ie.Secondary,nowrap:!0,children:n}),t(Rd,{children:t(S,{parts:o})})]}),a&&t(Dd,{children:t(De,{text:Ge.OPEN_IN_SAMPLING_PAGE,children:t(re,{"data-id":"sampling-rule-jump",variant:de.Primary,size:ce.S,leftIcon:zi,onClick:a})})})]}),Fd=({source:e,onRedirectToSampling:n})=>t($t,{bgTint:"1000",richTitle:{title:Ge.SAMPLING},children:e.containers?.map(e=>t(Md,{container:e,onRedirectToSampling:n},e.containerName))});var Ld;!function(e){e.All="all",e.Noisy="noisy",e.HighlyRelevant="highly-relevant",e.CostReduction="cost-reduction"}(Ld||(Ld={}));const _d=e=>"noisy"===e.type?w(e.rule):"highlyRelevant"===e.type?x(e.rule):"costReduction"===e.type?k(e.rule):[],Md=({container:n,onRedirectToSampling:o})=>{const[i,l]=s(Ld.All),r=Zt(e=>e.setPendingViewSamplingRule),c=n.agentConfig?.traces?.headSampling?.noisyOperations??[],d=a(()=>(n.collectorConfig?.tailSampling?.noisyOperations??[]).map(e=>({type:"noisy",rule:e})),[n.agentConfig?.traces?.headSampling?.noisyOperations]),u=a(()=>(n.collectorConfig?.tailSampling?.highlyRelevantOperations??[]).map(e=>({type:"highlyRelevant",rule:e})),[n.collectorConfig?.tailSampling?.highlyRelevantOperations]),p=a(()=>(n.collectorConfig?.tailSampling?.costReductionRules??[]).map(e=>({type:"costReduction",rule:e})),[n.collectorConfig?.tailSampling?.costReductionRules]),h=a(()=>i===Ld.Noisy?d:i===Ld.HighlyRelevant?u:i===Ld.CostReduction?p:[...d,...u,...p],[i,u,p]),m=a(()=>(e,t)=>{r({ruleId:e,category:t}),o()},[o,r]);return e($t,{bgTint:"900",richTitle:{title:n.containerName},withCollapse:!0,collapseIsDefaultOpen:!0,children:[e($t,{bgTint:"800",richTitle:{title:Ge.HEAD_SAMPLING,badge:{label:c.length}},withCollapse:!0,collapseIsDefaultOpen:!!c.length,children:[t(ae,{size:le.XXS,children:Ge.NOISY_OPERATIONS}),t(W,{$gap:4,children:c.length?c.map(e=>t(Pd,{name:e.name,summary:w(e),onJumpToRule:()=>m(e.ruleId,"noisy")},e.ruleId)):t(Ce,{title:"No noisy operations"})})]}),e($t,{bgTint:"800",richTitle:{title:Ge.TAIL_SAMPLING,badge:{label:d.length+u.length+p.length}},withCollapse:!0,collapseIsDefaultOpen:!!h.length,children:[t(ue,{options:(g=d.length,f=u.length,b=p.length,[{value:Ld.All,label:"All",badge:{label:g+f+b,textSize:le.XXXS}},{value:Ld.Noisy,label:Ge.NOISY_OPERATIONS,badge:{label:g,textSize:le.XXXS}},{value:Ld.HighlyRelevant,label:Ge.HIGHLY_RELEVANT_OPERATIONS,badge:{label:f,textSize:le.XXXS}},{value:Ld.CostReduction,label:Ge.COST_REDUCTION_OPERATIONS,badge:{label:b,textSize:le.XXXS}}]),selected:i,setSelected:l}),t(W,{$gap:4,children:h.length?h.map(e=>t(Pd,{name:e.rule.name,summary:_d(e),onJumpToRule:()=>m(e.rule.ruleId,e.type)},e.rule.ruleId)):t(Ce,{title:`No ${i===Ld.All?`${Ld.Noisy}, ${Ld.HighlyRelevant} and ${Ld.CostReduction}`:i} operations`})})]})]});var g,f,b},zd=[on.Deployment,on.StatefulSet,on.DaemonSet,on.DeploymentConfig,on.Rollout,on.Pod];var Bd;!function(e){e.Workload="Workload",e.Pod="Pod"}(Bd||(Bd={}));const Xd=e=>!!e&&Gt(e.status)===Ie.Error,Vd=e=>Xd(e.healthStatus),Ud=e=>Xd(e.odigosHealthStatus)||(e.processes??[]).some(Vd),Gd=e=>Xd(e.agentInjectedStatus)||Xd(e.odigosHealthStatus)||(e.containers??[]).some(Ud),Hd=({onClose:n,sourceId:r,onRedirectToSampling:c})=>{const d=f(),{isVm:u}=y(),{sourcesApi:p,configApi:h}=ll(),{selectedStreamName:m}=He(),{genericForm:g,loadSource:b,validateFormData:v}=Rl(),{data:C}=h.useEffectiveConfig(),[S,w]=s(!1),[x,k]=s(!1),[T,$]=s(!1),[I,E]=s(Gr.Overview),[A,N]=s(null),[O,R]=s({openFor:null}),D=(()=>{const[e,t]=s(null),n=l(e=>{t({tab:Gr.Pods,podName:e.podName})},[]),o=l((e,n)=>{t({tab:Gr.Pods,podName:e.podName,containerName:n.containerName})},[]),i=l((e,n,o)=>{const a=Jr({identifyingAttributes:o.identifyingAttributes});t({tab:Gr.Pods,podName:e.podName,containerName:n.containerName,processPid:a})},[]),r=l(()=>t(null),[]);return a(()=>({jumpToTarget:e,jumpToPod:n,jumpToContainer:o,jumpToProcess:i,clearJumpToTarget:r}),[e,n,o,i,r])})();o(()=>{D.jumpToTarget&&E(D.jumpToTarget.tab)},[D.jumpToTarget]),o(()=>{A&&JSON.stringify(Qt(r))!==JSON.stringify(Qt(A))&&N(null)},[r,A]);const P=i(!1),F=l(async()=>N(await p.fetchById(r)||null),[r,p]);o(()=>{if(P.current||(F(),P.current=!0),!S){const e=setInterval(()=>F(),3e3);return()=>clearInterval(e)}},[F,S]),o(()=>{A&&b(A)},[A]);const L=A&&zd.includes(A.id.kind),_=a(()=>{const e=[],n=(A?.pods??[]).some(Gd);return e.push({value:Gr.Overview,label:Ge.OVERVIEW}),u||(e.push({value:Gr.Pods,label:Ge.PODS,icon:n?e=>t(Oi,{...e,fill:d.v2.colors.red[500]}):void 0}),e.push({value:Gr.PeerSources,label:Ge.PEER_SOURCES}),C?.profiling?.enabled&&e.push({value:Gr.Profiling,label:Ge.PROFILING}),e.push({value:Gr.Sampling,label:Ge.SAMPLING}),e.push({value:Gr.Debug,label:Ge.DEBUG})),e},[u,C,A?.pods]),M=l(()=>w(!0),[]),z=a(()=>()=>{n(),c()},[n,c]),B=l(()=>{A&&b(A),w(!1)},[A]),X=l(async()=>{if(!A||!g)return;const{errorMessage:e,preparedFormData:t}=v();if(e)return;const n=t.otelServiceName!==A.id.name?t.otelServiceName:"";await p.update(r,{...t,otelServiceName:n}),w(!1)},[A,g,v,r,p]),V=l(()=>k(!0),[]),U=l(async()=>{A&&(await p.persistV2({[St]:[{namespace:A.id.namespace,name:A.id.name,kind:A.id.kind,selected:!1,currentStreamName:m}]}),k(!1),n())},[A,p,m,n]),G=l(()=>{R({openFor:Bd.Workload})},[]),H=l(e=>{E(e),D.clearJumpToTarget()},[D]),j=l(async()=>{await p.recoverFromRollback(r)},[p,r]),K=l(()=>R({openFor:null}),[]),Y=l(async()=>{O.openFor===Bd.Workload?await p.restartWorkloads([r]):O.openFor===Bd.Pod&&O.podNamespace&&O.podName&&await p.restartPod(O.podNamespace,O.podName),K()},[O,p,r,K]),J=a(()=>{const{kind:e,name:t}=r;return{title:`Rollout ${e}`,description:`Are you sure you want to rollout the ${e.toLowerCase()} "${t}"?`}},[r]),q=a(()=>{const e=[];return S||I===Gr.Overview&&(e.push({id:"edit-source-btn-edit",label:kt.EDIT,icon:hi,active:S,onClick:M}),!u&&L&&e.push({id:"edit-source-btn-restart",label:Ge.ROLLOUT,icon:Gi,onClick:G}),e.push({id:"edit-source-btn-delete",label:kt.UNINSTRUMENT,icon:li,color:d.v2.colors.red[500],active:x,onClick:V})),e},[I,S,x,u,L,M,G,V,d]),Z=a(()=>{if(!A)return[];const e=[],t={backgroundColor:"transparent",textSize:le.S};return e.push({...t,label:A.id.name,leftIcon:u?void 0:Ai}),A.serviceName&&A.serviceName!==A.id.name&&e.push({...t,label:A.serviceName,leftIcon:Ei,textColor:d.v2.colors.silver[200]}),e},[A,d,u]);if(!A)return t(ne,{isOpen:!0,children:t(at,{$height:"80vh",children:t(ct,{withSpinner:!0})})});const Q=I===Gr.Profiling?T?"95vw":"fit-content":S?void 0:"60vw";return e(ic,{value:D,children:[t(ne,{isOpen:!0,width:Q,minWidth:"777px",header:{icon:u?Hi:yn(A.containers)[0],titleBadges:Z,onClose:()=>{H(Gr.Overview),N(null),$(!1),n()},actions:q},footer:{actions:S?[{"data-id":"edit-source-btn-cancel",label:kt.CANCEL,variant:de.Secondary,onClick:B},{"data-id":"edit-source-btn-save",label:kt.SAVE,variant:de.Primary,onClick:X}]:[]},children:t(Tt,{$padding:"4px 12px 12px",children:e(W,{$gap:16,children:[!S&&_.length>1&&t(ue,{options:_,selected:I,setSelected:H}),(()=>{switch(I){case Gr.Overview:return S?t(js,{}):t(Xc,{source:A,onClickRollout:G,onClickRollback:j});case Gr.Pods:return t(dc,{source:A,onClickRestartPod:L?(e,t)=>R({openFor:Bd.Pod,podNamespace:e,podName:t}):void 0});case Gr.PeerSources:return t(uc,{source:A});case Gr.Profiling:return t(Ad,{source:A,onFlameFullscreenChange:$});case Gr.Sampling:return t(Fd,{source:A,onRedirectToSampling:z});case Gr.Debug:return t(fc,{source:A});default:return null}})()]})})}),t(Sl,{target:"source",action:"uninstrument",isOpen:x,onClose:()=>k(!1),onApprove:U}),t(Ue,{isOpen:O.openFor===Bd.Workload,title:J.title,description:J.description,onClose:K,denyButton:{label:"Go back",variant:de.Secondary,onClick:K},approveButton:{label:kt.CONFIRM,variant:de.Primary,onClick:Y}}),t(Sl,{target:"pod",action:"restart",description:Ge.ROLLOUT_RESTART_WORKLOADS_DESCRIPTION,isOpen:O.openFor===Bd.Pod,onClose:K,onApprove:Y,overrideApproveButtonLabel:Ge.DELETE_POD_TO_RESTART})]})},jd=g.div`
380
+ `,Pd=({name:n,summary:o,onJumpToRule:a})=>e(Nd,{children:[e(Od,{children:[n&&t(ae,{size:le.XXXS,color:ie.Secondary,nowrap:!0,children:n}),t(Rd,{children:t(S,{parts:o})})]}),a&&t(Dd,{children:t(De,{text:Ge.OPEN_IN_SAMPLING_PAGE,children:t(re,{"data-id":"sampling-rule-jump",variant:de.Primary,size:ce.S,leftIcon:zi,onClick:a})})})]}),Fd=({source:e,onRedirectToSampling:n})=>t($t,{bgTint:"1000",richTitle:{title:Ge.SAMPLING},children:e.containers?.map(e=>t(Md,{container:e,onRedirectToSampling:n},e.containerName))});var Ld;!function(e){e.All="all",e.Noisy="noisy",e.HighlyRelevant="highly-relevant",e.CostReduction="cost-reduction"}(Ld||(Ld={}));const _d=e=>"noisy"===e.type?w(e.rule,"source"):"highlyRelevant"===e.type?x(e.rule,"source"):"costReduction"===e.type?k(e.rule,"source"):[],Md=({container:n,onRedirectToSampling:o})=>{const[i,l]=s(Ld.All),r=Zt(e=>e.setPendingViewSamplingRule),c=n.agentConfig?.traces?.headSampling?.noisyOperations??[],d=a(()=>(n.collectorConfig?.tailSampling?.noisyOperations??[]).map(e=>({type:"noisy",rule:e})),[n.agentConfig?.traces?.headSampling?.noisyOperations]),u=a(()=>(n.collectorConfig?.tailSampling?.highlyRelevantOperations??[]).map(e=>({type:"highlyRelevant",rule:e})),[n.collectorConfig?.tailSampling?.highlyRelevantOperations]),p=a(()=>(n.collectorConfig?.tailSampling?.costReductionRules??[]).map(e=>({type:"costReduction",rule:e})),[n.collectorConfig?.tailSampling?.costReductionRules]),h=a(()=>i===Ld.Noisy?d:i===Ld.HighlyRelevant?u:i===Ld.CostReduction?p:[...d,...u,...p],[i,u,p]),m=a(()=>(e,t)=>{r({ruleId:e,category:t}),o()},[o,r]);return e($t,{bgTint:"900",richTitle:{title:n.containerName},withCollapse:!0,collapseIsDefaultOpen:!0,children:[e($t,{bgTint:"800",richTitle:{title:Ge.HEAD_SAMPLING,badge:{label:c.length}},withCollapse:!0,collapseIsDefaultOpen:!!c.length,children:[t(ae,{size:le.XXS,children:Ge.NOISY_OPERATIONS}),t(W,{$gap:4,children:c.length?c.map(e=>t(Pd,{name:e.name,summary:w(e,"source"),onJumpToRule:()=>m(e.ruleId,"noisy")},e.ruleId)):t(Ce,{title:"No sampling rules for noisy operations"})})]}),e($t,{bgTint:"800",richTitle:{title:Ge.TAIL_SAMPLING,badge:{label:d.length+u.length+p.length}},withCollapse:!0,collapseIsDefaultOpen:!!h.length,children:[t(ue,{options:(g=d.length,f=u.length,b=p.length,[{value:Ld.All,label:"All",badge:{label:g+f+b,textSize:le.XXXS}},{value:Ld.Noisy,label:Ge.NOISY_OPERATIONS,badge:{label:g,textSize:le.XXXS}},{value:Ld.HighlyRelevant,label:Ge.HIGHLY_RELEVANT_OPERATIONS,badge:{label:f,textSize:le.XXXS}},{value:Ld.CostReduction,label:Ge.COST_REDUCTION_OPERATIONS,badge:{label:b,textSize:le.XXXS}}]),selected:i,setSelected:l}),t(W,{$gap:4,children:h.length?h.map(e=>t(Pd,{name:e.rule.name,summary:_d(e),onJumpToRule:()=>m(e.rule.ruleId,e.type)},e.rule.ruleId)):t(Ce,{title:`No sampling rules for ${i===Ld.All?`${Ld.Noisy}, ${Ld.HighlyRelevant} and ${Ld.CostReduction}`:i} operations`})})]})]});var g,f,b},zd=[on.Deployment,on.StatefulSet,on.DaemonSet,on.DeploymentConfig,on.Rollout,on.Pod];var Bd;!function(e){e.Workload="Workload",e.Pod="Pod"}(Bd||(Bd={}));const Xd=e=>!!e&&Gt(e.status)===Ie.Error,Vd=e=>Xd(e.healthStatus),Ud=e=>Xd(e.odigosHealthStatus)||(e.processes??[]).some(Vd),Gd=e=>Xd(e.agentInjectedStatus)||Xd(e.odigosHealthStatus)||(e.containers??[]).some(Ud),Hd=({onClose:n,sourceId:r,onRedirectToSampling:c})=>{const d=f(),{isVm:u}=y(),{sourcesApi:p,configApi:h}=ll(),{selectedStreamName:m}=He(),{genericForm:g,loadSource:b,validateFormData:v}=Rl(),{data:C}=h.useEffectiveConfig(),[S,w]=s(!1),[x,k]=s(!1),[T,$]=s(!1),[I,E]=s(Gr.Overview),[A,N]=s(null),[O,R]=s({openFor:null}),D=(()=>{const[e,t]=s(null),n=l(e=>{t({tab:Gr.Pods,podName:e.podName})},[]),o=l((e,n)=>{t({tab:Gr.Pods,podName:e.podName,containerName:n.containerName})},[]),i=l((e,n,o)=>{const a=Jr({identifyingAttributes:o.identifyingAttributes});t({tab:Gr.Pods,podName:e.podName,containerName:n.containerName,processPid:a})},[]),r=l(()=>t(null),[]);return a(()=>({jumpToTarget:e,jumpToPod:n,jumpToContainer:o,jumpToProcess:i,clearJumpToTarget:r}),[e,n,o,i,r])})();o(()=>{D.jumpToTarget&&E(D.jumpToTarget.tab)},[D.jumpToTarget]),o(()=>{A&&JSON.stringify(Qt(r))!==JSON.stringify(Qt(A))&&N(null)},[r,A]);const P=i(!1),F=l(async()=>N(await p.fetchById(r)||null),[r,p]);o(()=>{if(P.current||(F(),P.current=!0),!S){const e=setInterval(()=>F(),3e3);return()=>clearInterval(e)}},[F,S]),o(()=>{A&&b(A)},[A]);const L=A&&zd.includes(A.id.kind),_=a(()=>{const e=[],n=(A?.pods??[]).some(Gd);return e.push({value:Gr.Overview,label:Ge.OVERVIEW}),u||(e.push({value:Gr.Pods,label:Ge.PODS,icon:n?e=>t(Oi,{...e,fill:d.v2.colors.red[500]}):void 0}),e.push({value:Gr.PeerSources,label:Ge.PEER_SOURCES}),C?.profiling?.enabled&&e.push({value:Gr.Profiling,label:Ge.PROFILING}),e.push({value:Gr.Sampling,label:Ge.SAMPLING}),e.push({value:Gr.Debug,label:Ge.DEBUG})),e},[u,C,A?.pods]),M=l(()=>w(!0),[]),z=a(()=>()=>{n(),c()},[n,c]),B=l(()=>{A&&b(A),w(!1)},[A]),X=l(async()=>{if(!A||!g)return;const{errorMessage:e,preparedFormData:t}=v();if(e)return;const n=t.otelServiceName!==A.id.name?t.otelServiceName:"";await p.update(r,{...t,otelServiceName:n}),w(!1)},[A,g,v,r,p]),V=l(()=>k(!0),[]),U=l(async()=>{A&&(await p.persistV2({[St]:[{namespace:A.id.namespace,name:A.id.name,kind:A.id.kind,selected:!1,currentStreamName:m}]}),k(!1),n())},[A,p,m,n]),G=l(()=>{R({openFor:Bd.Workload})},[]),H=l(e=>{E(e),D.clearJumpToTarget()},[D]),j=l(async()=>{await p.recoverFromRollback(r)},[p,r]),K=l(()=>R({openFor:null}),[]),Y=l(async()=>{O.openFor===Bd.Workload?await p.restartWorkloads([r]):O.openFor===Bd.Pod&&O.podNamespace&&O.podName&&await p.restartPod(O.podNamespace,O.podName),K()},[O,p,r,K]),J=a(()=>{const{kind:e,name:t}=r;return{title:`Rollout ${e}`,description:`Are you sure you want to rollout the ${e.toLowerCase()} "${t}"?`}},[r]),q=a(()=>{const e=[];return S||I===Gr.Overview&&(e.push({id:"edit-source-btn-edit",label:kt.EDIT,icon:hi,active:S,onClick:M}),!u&&L&&e.push({id:"edit-source-btn-restart",label:Ge.ROLLOUT,icon:Gi,onClick:G}),e.push({id:"edit-source-btn-delete",label:kt.UNINSTRUMENT,icon:li,color:d.v2.colors.red[500],active:x,onClick:V})),e},[I,S,x,u,L,M,G,V,d]),Z=a(()=>{if(!A)return[];const e=[],t={backgroundColor:"transparent",textSize:le.S};return e.push({...t,label:A.id.name,leftIcon:u?void 0:Ai}),A.serviceName&&A.serviceName!==A.id.name&&e.push({...t,label:A.serviceName,leftIcon:Ei,textColor:d.v2.colors.silver[200]}),e},[A,d,u]);if(!A)return t(ne,{isOpen:!0,children:t(at,{$height:"80vh",children:t(ct,{withSpinner:!0})})});const Q=I===Gr.Profiling?T?"95vw":"fit-content":S?void 0:"60vw";return e(ic,{value:D,children:[t(ne,{isOpen:!0,width:Q,minWidth:"777px",header:{icon:u?Hi:yn(A.containers)[0],titleBadges:Z,onClose:()=>{H(Gr.Overview),N(null),$(!1),n()},actions:q},footer:{actions:S?[{"data-id":"edit-source-btn-cancel",label:kt.CANCEL,variant:de.Secondary,onClick:B},{"data-id":"edit-source-btn-save",label:kt.SAVE,variant:de.Primary,onClick:X}]:[]},children:t(Tt,{$padding:"4px 12px 12px",children:e(W,{$gap:16,children:[!S&&_.length>1&&t(ue,{options:_,selected:I,setSelected:H}),(()=>{switch(I){case Gr.Overview:return S?t(js,{}):t(Xc,{source:A,onClickRollout:G,onClickRollback:j});case Gr.Pods:return t(dc,{source:A,onClickRestartPod:L?(e,t)=>R({openFor:Bd.Pod,podNamespace:e,podName:t}):void 0});case Gr.PeerSources:return t(uc,{source:A});case Gr.Profiling:return t(Ad,{source:A,onFlameFullscreenChange:$});case Gr.Sampling:return t(Fd,{source:A,onRedirectToSampling:z});case Gr.Debug:return t(fc,{source:A});default:return null}})()]})})}),t(Sl,{target:"source",action:"uninstrument",isOpen:x,onClose:()=>k(!1),onApprove:U}),t(Ue,{isOpen:O.openFor===Bd.Workload,title:J.title,description:J.description,onClose:K,denyButton:{label:"Go back",variant:de.Secondary,onClick:K},approveButton:{label:kt.CONFIRM,variant:de.Primary,onClick:Y}}),t(Sl,{target:"pod",action:"restart",description:Ge.ROLLOUT_RESTART_WORKLOADS_DESCRIPTION,isOpen:O.openFor===Bd.Pod,onClose:K,onApprove:Y,overrideApproveButtonLabel:Ge.DELETE_POD_TO_RESTART})]})},jd=g.div`
381
381
  display: flex;
382
382
  align-items: center;
383
383
  gap: 8px;
package/lib/containers.js CHANGED
@@ -1,4 +1,4 @@
1
- import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import o,{useTheme as r}from"styled-components";import{memo as n,useState as a,useCallback as s,useEffect as d,useMemo as l,createContext as c,useContext as p,useRef as u}from"react";import{U as h}from"./chunks/consts-D6GCMJ6c.js";import{MarkerType as g,useNodesState as m,useEdgesState as f,Handle as v,Position as y,getSmoothStepPath as b,BaseEdge as x,EdgeLabelRenderer as N,ReactFlowProvider as S,ReactFlow as I,Background as w,Controls as $,ControlButton as k,useReactFlow as M}from"@xyflow/react";import{N as C,o as T,p as A,q as E,r as z,v as X,w as K,b as R,c as V,x as O,y as _,B as q,z as L,L as j,M as H,O as D,Q as G,R as P,U as B,V as F,W as U,X as Y,Y as W}from"./chunks/ui-components-BmIux5o5.js";import{UserIcon as Z,ImageErrorIcon as Q,ArrowLeftIcon as J,InboundIcon as ee,OutboundIcon as te,RefreshIcon as ie}from"./icons.js";import oe from"elkjs/lib/elk.bundled.js";import{d as re}from"./chunks/use-odigos-api-hslZLdix.js";import"@xyflow/react/dist/style.css";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"prism-react-renderer";import"./chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";import"@apollo/client";import"@apollo/client/link/error";import"@apollo/client/link/context";import"@apollo/client/utilities";const ne=o.div`
1
+ import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import o,{useTheme as r}from"styled-components";import{memo as n,useState as a,useCallback as s,useEffect as d,useMemo as l,createContext as c,useContext as p,useRef as u}from"react";import{U as h}from"./chunks/consts-D6GCMJ6c.js";import{MarkerType as g,useNodesState as m,useEdgesState as f,Handle as v,Position as y,getSmoothStepPath as b,BaseEdge as x,EdgeLabelRenderer as N,ReactFlowProvider as S,ReactFlow as I,Background as w,Controls as $,ControlButton as k,useReactFlow as M}from"@xyflow/react";import{N as C,o as T,p as A,q as E,r as z,v as X,w as K,b as R,c as V,x as O,y as _,B as q,z as L,L as j,M as H,O as D,Q as G,R as P,U as B,V as F,W as U,X as Y,Y as W}from"./chunks/ui-components-CrXELmQx.js";import{UserIcon as Z,ImageErrorIcon as Q,ArrowLeftIcon as J,InboundIcon as ee,OutboundIcon as te,RefreshIcon as ie}from"./icons.js";import oe from"elkjs/lib/elk.bundled.js";import{d as re}from"./chunks/use-odigos-api-CgkEC7if.js";import"@xyflow/react/dist/style.css";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"prism-react-renderer";import"./chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";import"@apollo/client";import"@apollo/client/link/error";import"@apollo/client/link/context";import"@apollo/client/utilities";const ne=o.div`
2
2
  padding: 12px;
3
3
  border-radius: 12px;
4
4
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
@@ -2,12 +2,20 @@
2
2
  * `useSnapshotsApi` — central-ui's cross-cluster snapshot reads.
3
3
  *
4
4
  * Reactive `data` / `loading` flow through the `useSnapshots()` sub-hook, which
5
- * owns a `useApiQuery('GET_ALL_CLUSTER_SNAPSHOTS')`. The hook honors the
6
- * operation's `canRun(ctx)` guard INTERNALLY: when the host blocks the op for
7
- * the active context (e.g. central-ui can't snapshot a < v1.20 proxy) the query
8
- * is skipped and `data` stays `undefined` consumers treat that as the signal
9
- * to fall back to the per-proxy `namespacesApi` path. Imperative
10
- * `getAllClusterSnapshots` / `getClusterSnapshot` remain for fire-and-forget reads.
5
+ * routes by the active context:
6
+ * - In-proxy (a specific proxy is selected, e.g. the overview's
7
+ * AddSourceDrawer) it owns a `useApiQuery('GET_CLUSTER_SNAPSHOT')` scoped to
8
+ * the selected proxy id and wraps that single cluster into the
9
+ * `AllClusterSnapshots` shape consumers expect.
10
+ * - Out-of-proxy (the connections overview / bulk AddSourceDrawer) it owns a
11
+ * `useApiQuery('GET_ALL_CLUSTER_SNAPSHOTS')` for the full cross-cluster
12
+ * aggregate.
13
+ * Either way the op's `canRun(ctx)` guard is honored INTERNALLY: when the host
14
+ * blocks the op for the active context (e.g. central-ui can't snapshot a
15
+ * < v1.20 proxy, or a VM proxy) the query is skipped and `data` stays
16
+ * `undefined` — consumers treat that as the signal to fall back to the
17
+ * per-proxy `namespacesApi` path. Imperative `getAllClusterSnapshots` /
18
+ * `getClusterSnapshot` remain for fire-and-forget reads.
11
19
  */
12
20
  import type { AllClusterSnapshots, ClusterSnapshot } from '@/types';
13
21
  import type { OperationContext, OdigosApiOperations } from '../types';
@@ -1 +1 @@
1
- import{e as o,r,f as t}from"../chunks/use-odigos-api-hslZLdix.js";export{O as OdigosApiProvider,p as prepareNamespacePayloads,a as prepareSourcePayloads,u as useApiLazyQuery,b as useApiMutation,c as useApiQuery,d as useOdigosApi}from"../chunks/use-odigos-api-hslZLdix.js";export{O as OdigosApiConnectionsScope}from"../chunks/connections-scope-DgpFs9S1.js";import{useApolloClient as e}from"@apollo/client";import{P as s,t as i}from"../chunks/ui-components-BmIux5o5.js";import"react";import"react/jsx-runtime";import"@apollo/client/link/error";import"@apollo/client/link/context";import"@apollo/client/utilities";import"styled-components";import"../icons.js";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"prism-react-renderer";import"../chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";const n=()=>{const s=e(),{operations:i,context:n}=o();return{multiFetch:async(o,r,e)=>{const a=i[o];return a?t(s,a,r,e,n):{results:[],allSucceeded:!1,anySucceeded:!1,successCount:0,failureCount:r.length,error:`Operation ${String(o)} not configured`}},bulkPersistSources:async(o,t)=>{const e=[];for(const a of o){const o={...n,proxyID:a},{error:c}=await r(s,i.PERSIST_SOURCES,t,o);c&&e.push(`${a}: ${c}`)}return e.length?{error:e.join(", ")}:void 0},applyConfigurations:async(o,t)=>{if(!i.UPDATE_REMOTE_CONFIG)return{error:"UPDATE_REMOTE_CONFIG not configured"};const{error:e}=await r(s,i.UPDATE_REMOTE_CONFIG,{formData:t,connectionIds:o},n);return e?{error:e}:void 0}}},m=(o,r)=>o.platformType===s.K8s?r.K8s:o.platformType===s.Vm?r.Vm:void 0,l=o=>r=>{const t=o[r.platformType];if(!t)return;const e=Object.keys(t);if(0===e.length)return;const s=i(r.schemaVersion??r.version),n=[...e].sort((o,r)=>i(r)-i(o)).find(o=>s>=i(o));return n?t[n]:void 0},f=(o,r)=>{const t={};for(const e of Object.keys(o))t[e]=r(o[e]);return t};export{m as pickByPlatform,n as useApiForConnections,l as versionedDocument,f as vmDialectMap};
1
+ import{e as o,r,f as t}from"../chunks/use-odigos-api-CgkEC7if.js";export{O as OdigosApiProvider,p as prepareNamespacePayloads,a as prepareSourcePayloads,u as useApiLazyQuery,b as useApiMutation,c as useApiQuery,d as useOdigosApi}from"../chunks/use-odigos-api-CgkEC7if.js";export{O as OdigosApiConnectionsScope}from"../chunks/connections-scope-BLrBW0hm.js";import{useApolloClient as e}from"@apollo/client";import{P as s,t as i}from"../chunks/ui-components-CrXELmQx.js";import"react";import"react/jsx-runtime";import"@apollo/client/link/error";import"@apollo/client/link/context";import"@apollo/client/utilities";import"styled-components";import"../icons.js";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"prism-react-renderer";import"../chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";const n=()=>{const s=e(),{operations:i,context:n}=o();return{multiFetch:async(o,r,e)=>{const a=i[o];return a?t(s,a,r,e,n):{results:[],allSucceeded:!1,anySucceeded:!1,successCount:0,failureCount:r.length,error:`Operation ${String(o)} not configured`}},bulkPersistSources:async(o,t)=>{const e=[];for(const a of o){const o={...n,proxyID:a},{error:c}=await r(s,i.PERSIST_SOURCES,t,o);c&&e.push(`${a}: ${c}`)}return e.length?{error:e.join(", ")}:void 0},applyConfigurations:async(o,t)=>{if(!i.UPDATE_REMOTE_CONFIG)return{error:"UPDATE_REMOTE_CONFIG not configured"};const{error:e}=await r(s,i.UPDATE_REMOTE_CONFIG,{formData:t,connectionIds:o},n);return e?{error:e}:void 0}}},m=(o,r)=>o.platformType===s.K8s?r.K8s:o.platformType===s.Vm?r.Vm:void 0,l=o=>r=>{const t=o[r.platformType];if(!t)return;const e=Object.keys(t);if(0===e.length)return;const s=i(r.schemaVersion??r.version),n=[...e].sort((o,r)=>i(r)-i(o)).find(o=>s>=i(o));return n?t[n]:void 0},f=(o,r)=>{const t={};for(const e of Object.keys(o))t[e]=r(o[e]);return t};export{m as pickByPlatform,n as useApiForConnections,l as versionedDocument,f as vmDialectMap};
package/lib/contexts.js CHANGED
@@ -1 +1 @@
1
- export{A as ActionFormContextProvider,D as DataStreamFormContextProvider,a as DestinationFormContextProvider,R as RuleFormContextProvider,S as SamplingRuleFormType,b as SamplingRulesFormProvider,c as SourceEditFormContextProvider,d as SourceInstrumentFormContextProvider,u as useActionFormContext,e as useDataStreamFormContext,f as useDestinationFormContext,g as useRuleFormContext,h as useSamplingRulesFormContext,i as useSourceEditFormContext,j as useSourceInstrumentFormContext}from"./chunks/source-instrument-form-context-o2ynNRPg.js";export{O as OdigosProvider,c as checkVersionSupport,u as useOdigos}from"./chunks/helpers-BlFl20R2.js";import{jsx as o}from"react/jsx-runtime";import{useMemo as r,useContext as t,createContext as s}from"react";export{O as OdigosApiConnectionsScope}from"./chunks/connections-scope-DgpFs9S1.js";export{O as OdigosApiProvider,p as prepareNamespacePayloads,a as prepareSourcePayloads,u as useApiLazyQuery,b as useApiMutation,c as useApiQuery,d as useOdigosApi}from"./chunks/use-odigos-api-hslZLdix.js";export{pickByPlatform,useApiForConnections,versionedDocument,vmDialectMap}from"./contexts/odigos-api.js";import"./chunks/ui-components-BmIux5o5.js";import"styled-components";import"./icons.js";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"prism-react-renderer";import"./chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";import"@apollo/client";import"@apollo/client/link/error";import"@apollo/client/link/context";import"@apollo/client/utilities";const n=s({formType:void 0}),m=({children:e,formType:t})=>{const s=r(()=>({formType:t}),[t]);return o(n.Provider,{value:s,children:e})},l=()=>t(n);export{m as StorybookProvider,l as useStorybook};
1
+ export{A as ActionFormContextProvider,D as DataStreamFormContextProvider,a as DestinationFormContextProvider,R as RuleFormContextProvider,S as SamplingRuleFormType,b as SamplingRulesFormProvider,c as SourceEditFormContextProvider,d as SourceInstrumentFormContextProvider,u as useActionFormContext,e as useDataStreamFormContext,f as useDestinationFormContext,g as useRuleFormContext,h as useSamplingRulesFormContext,i as useSourceEditFormContext,j as useSourceInstrumentFormContext}from"./chunks/source-instrument-form-context-D7wjfWpw.js";export{O as OdigosProvider,c as checkVersionSupport,u as useOdigos}from"./chunks/helpers-45znEVHP.js";import{jsx as o}from"react/jsx-runtime";import{useMemo as r,useContext as t,createContext as s}from"react";export{O as OdigosApiConnectionsScope}from"./chunks/connections-scope-BLrBW0hm.js";export{O as OdigosApiProvider,p as prepareNamespacePayloads,a as prepareSourcePayloads,u as useApiLazyQuery,b as useApiMutation,c as useApiQuery,d as useOdigosApi}from"./chunks/use-odigos-api-CgkEC7if.js";export{pickByPlatform,useApiForConnections,versionedDocument,vmDialectMap}from"./contexts/odigos-api.js";import"./chunks/ui-components-CrXELmQx.js";import"styled-components";import"./icons.js";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"prism-react-renderer";import"./chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";import"@apollo/client";import"@apollo/client/link/error";import"@apollo/client/link/context";import"@apollo/client/utilities";const n=s({formType:void 0}),m=({children:e,formType:t})=>{const s=r(()=>({formType:t}),[t]);return o(n.Provider,{value:s,children:e})},l=()=>t(n);export{m as StorybookProvider,l as useStorybook};
package/lib/functions.js CHANGED
@@ -1 +1 @@
1
- export{a5 as adaptInstrumentationRuleFromWire,a4 as adaptInstrumentationRuleInputForWire,b6 as buildBadgeForDesiredStatus,f6 as capitalizeFirstLetter,f7 as cleanObjectEmptyStringsValues,ar as compareCondition,f8 as decimalsOnly,e as deepClone,df as entityIdKey,dk as filterActions,dj as filterDestinations,a$ as filterDestinationsByStream,di as filterSources,d7 as filterSourcesByStream,f9 as flattenObjectKeys,bi as formatBytes,fa as formatDuration,bS as generateId,aZ as getActionIcon,v as getConditionsBooleans,bv as getContainersIcons,fb as getContainersInstrumentedCount,fc as getDeepValue,aQ as getDestinationIcon,fd as getDetectedLanguageIcons,bb as getEffectiveLanguage,bp as getEffectiveRuntimeVersion,dg as getEntityIcon,a3 as getEntityId,dd as getEntityIdKey,de as getEntityLabel,fe as getHealthBadgeLabel,a2 as getIdFromSseTarget,b3 as getInstrumentationRuleIcon,ff as getMainContainerLanguage,fg as getMetricForEntity,fh as getMonitorIcon,fi as getNearestTypographySize,fj as getPlatformIcon,fk as getPlatformLabel,ax as getProgrammingLanguageIcon,fl as getRecursiveValues,r as getSourceLanguageIcons,Z as getSseTargetFromId,fm as getStatusColor,dq as getStatusFromPodStatus,x as getStatusIcon,bk as getStatusTypeFromOdigosHealth,fn as getValueForRange,q as getVirtualServiceIcon,bg as getWorkloadId,b0 as getYamlFieldsForDestination,fo as hasUnhealthyInstances,fp as instrumentationRuleSourceScopesFromWire,fq as instrumentationRuleSourceScopesToWire,i as isEmpty,j as isLegalK8sLabel,bO as isOverTime,fr as isStringABoolean,fs as isTimeElapsed,bo as isValidVersion,ft as mapConditions,b9 as mapDesiredStatusToConditionStatus,a_ as mapDestinationFieldsForDisplay,k as mapExportedSignals,m as mapSupportedSignals,fu as numbersOnly,fv as parseBooleanFromString,fw as parseJsonStringToPrettyString,as as prepareDestinationFormData,fx as removeEmptyValuesFromObject,s as safeJsonParse,fy as safeJsonStringify,fz as setDeepValue,fA as sleep,b1 as splitCamelString,fB as stringifyNonStringValues,t as trimVersion}from"./chunks/ui-components-BmIux5o5.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"prism-react-renderer";import"./chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{a5 as adaptInstrumentationRuleFromWire,a4 as adaptInstrumentationRuleInputForWire,b6 as buildBadgeForDesiredStatus,f5 as capitalizeFirstLetter,f6 as cleanObjectEmptyStringsValues,ar as compareCondition,f7 as decimalsOnly,e as deepClone,df as entityIdKey,dk as filterActions,dj as filterDestinations,a$ as filterDestinationsByStream,di as filterSources,d7 as filterSourcesByStream,f8 as flattenObjectKeys,bi as formatBytes,f9 as formatDuration,bS as generateId,aZ as getActionIcon,v as getConditionsBooleans,bv as getContainersIcons,fa as getContainersInstrumentedCount,fb as getDeepValue,aQ as getDestinationIcon,fc as getDetectedLanguageIcons,bb as getEffectiveLanguage,bp as getEffectiveRuntimeVersion,dg as getEntityIcon,a3 as getEntityId,dd as getEntityIdKey,de as getEntityLabel,fd as getHealthBadgeLabel,a2 as getIdFromSseTarget,b3 as getInstrumentationRuleIcon,fe as getMainContainerLanguage,ff as getMetricForEntity,fg as getMonitorIcon,fh as getNearestTypographySize,fi as getPlatformIcon,fj as getPlatformLabel,ax as getProgrammingLanguageIcon,fk as getRecursiveValues,r as getSourceLanguageIcons,Z as getSseTargetFromId,fl as getStatusColor,dq as getStatusFromPodStatus,x as getStatusIcon,bk as getStatusTypeFromOdigosHealth,fm as getValueForRange,q as getVirtualServiceIcon,bg as getWorkloadId,b0 as getYamlFieldsForDestination,fn as hasUnhealthyInstances,fo as instrumentationRuleSourceScopesFromWire,fp as instrumentationRuleSourceScopesToWire,i as isEmpty,j as isLegalK8sLabel,bO as isOverTime,fq as isStringABoolean,fr as isTimeElapsed,bo as isValidVersion,fs as mapConditions,b9 as mapDesiredStatusToConditionStatus,a_ as mapDestinationFieldsForDisplay,k as mapExportedSignals,m as mapSupportedSignals,ft as numbersOnly,fu as parseBooleanFromString,fv as parseJsonStringToPrettyString,as as prepareDestinationFormData,fw as removeEmptyValuesFromObject,s as safeJsonParse,fx as safeJsonStringify,fy as setDeepValue,fz as sleep,b1 as splitCamelString,fA as stringifyNonStringValues,t as trimVersion}from"./chunks/ui-components-CrXELmQx.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"prism-react-renderer";import"./chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";
package/lib/hooks.js CHANGED
@@ -1 +1 @@
1
- export{fM as IGNORE_OUTSIDE_CLICK_ATTR,fN as useActionFormData,fO as useBodyScroll,dl as useClickNode,X as useClickNotification,dh as useContainerSize,bj as useCopy,fP as useDataStreamFormData,fQ as useDestinationFormData,d as useGenericForm,fR as useInstrumentationRuleFormData,bN as useKeyDown,bl as useOnClickOutside,fS as useOverflow,u as usePopup,b5 as useScrollIntoViewWhen,dM as useScrollTo,da as useSessionStorage,fT as useSourceFormData,b4 as useTimeAgo}from"./chunks/ui-components-BmIux5o5.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"prism-react-renderer";import"./chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{fM as IGNORE_OUTSIDE_CLICK_ATTR,fN as useActionFormData,fO as useBodyScroll,dl as useClickNode,X as useClickNotification,dh as useContainerSize,bj as useCopy,fP as useDataStreamFormData,fQ as useDestinationFormData,d as useGenericForm,fR as useInstrumentationRuleFormData,bN as useKeyDown,bl as useOnClickOutside,fS as useOverflow,u as usePopup,b5 as useScrollIntoViewWhen,dM as useScrollTo,da as useSessionStorage,fT as useSourceFormData,b4 as useTimeAgo}from"./chunks/ui-components-CrXELmQx.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"prism-react-renderer";import"./chunks/vendor-BFqT13Me.js";import"zustand/middleware";import"react-error-boundary";import"react-dom";import"virtua";
@@ -39,6 +39,7 @@ export * from './question-circle-icon';
39
39
  export * from './refresh-icon';
40
40
  export * from './refresh-left-arrow-icon';
41
41
  export * from './refresh-right-arrow-icon';
42
+ export * from './role-icon';
42
43
  export * from './rotate-arrows-icon';
43
44
  export * from './search-icon';
44
45
  export * from './server-disconnected-icon';
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const RoleIcon: SVG;