@odigos/ui-kit 0.0.246 → 0.0.248

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.
@@ -40,6 +40,7 @@ interface TdProps {
40
40
  export declare const Td: IStyledComponent<'web', DivProps<TdProps>>;
41
41
  export declare const MeasurementLayer: IStyledComponent<'web', DivProps>;
42
42
  export declare const MeasurementCell: IStyledComponent<'web', DivProps>;
43
+ export declare const MeasurementHead: IStyledComponent<'web', DivProps>;
43
44
  interface HeadWrapperProps {
44
45
  $textAlign?: TableColumn['textAlign'];
45
46
  }
@@ -25,5 +25,15 @@ import { TypographyProps } from '../typography';
25
25
  export interface TruncatableTypographyProps extends TypographyProps {
26
26
  /** The full text used for the tooltip; defaults to `String(children)`. */
27
27
  fullText?: string;
28
+ /**
29
+ * Whether the wrapping `Tooltip` should stretch to its parent's full width
30
+ * (`true`, the default — useful inside a fixed-width container like a table
31
+ * cell, where you want hovering anywhere in the cell to surface the tooltip
32
+ * and the inner Typography's `text-align` to position the text within the
33
+ * cell) or sit at its content size (`false` — useful when the typography is
34
+ * one of several siblings inside a flex container, e.g. a table header where
35
+ * the label sits next to sort/filter icons and shouldn't push them away).
36
+ */
37
+ fullWidth?: boolean;
28
38
  }
29
39
  export declare const TruncatableTypography: FC<TruncatableTypographyProps>;
@@ -1 +1 @@
1
- export{eD as Autocomplete,am as Badge,a2 as Button,a3 as ButtonSize,gl as ButtonTab,gm as ButtonTabList,a4 as ButtonVariants,V as Checkbox,gn as CheckboxList,de as CheckboxSize,b9 as CliCommand,b3 as Condition,aT as Conditions,go as DEFAULT_TIME_UNITS,aS as DataCard,f as Drawer,bO as DropData,bQ as DropDataAlignX,bP as DropDataAlignY,aC as DropDown,W as FieldMessage,U as FieldTitle,dv as GaugeChart,gp as GaugeChartVariant,gq as Header,gr as HoverActions,aD as IconButton,aE as IconButtonSize,bf as IconGroup,ab as Input,$ as InputList,X as InputTable,d4 as Island,aF as Loader,bT as Modal,gs as Navbar,ac as NoData,n as Note,a8 as Radio,gt as RadioGroup,aa as RadioSize,bb as Search,ay as SectionCard,gu as SectionCardSize,a5 as Segment,ae as SegmentSize,bq as SegmentVariant,du as StatusCard,d5 as Stepper,bs as Table,bt as TableVariant,aZ as Tag,b8 as TagVariants,ag as TextArea,dw as TextCard,dP as TimeInput,Z as Toggle,_ as ToggleLabelAlign,gv as ToggleList,aJ as ToggleSize,gw as ToggleVariant,ad as TruncatableTypography,b as Typography,a1 as TypographyColor,c as TypographySize,aK as TypographyVariants,ap as WarningModal,gx as resolveTypographyColor}from"../chunks/ui-components-DNrEjxrR.js";import"react/jsx-runtime";import"styled-components";import"../icons.js";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{eD as Autocomplete,am as Badge,a2 as Button,a3 as ButtonSize,gl as ButtonTab,gm as ButtonTabList,a4 as ButtonVariants,V as Checkbox,gn as CheckboxList,de as CheckboxSize,b9 as CliCommand,b3 as Condition,aT as Conditions,go as DEFAULT_TIME_UNITS,aS as DataCard,f as Drawer,bO as DropData,bQ as DropDataAlignX,bP as DropDataAlignY,aC as DropDown,W as FieldMessage,U as FieldTitle,dv as GaugeChart,gp as GaugeChartVariant,gq as Header,gr as HoverActions,aD as IconButton,aE as IconButtonSize,bf as IconGroup,ab as Input,$ as InputList,X as InputTable,d4 as Island,aF as Loader,bT as Modal,gs as Navbar,ac as NoData,n as Note,a8 as Radio,gt as RadioGroup,aa as RadioSize,bb as Search,ay as SectionCard,gu as SectionCardSize,a5 as Segment,ae as SegmentSize,bq as SegmentVariant,du as StatusCard,d5 as Stepper,bs as Table,bt as TableVariant,aZ as Tag,b8 as TagVariants,ag as TextArea,dw as TextCard,dP as TimeInput,Z as Toggle,_ as ToggleLabelAlign,gv as ToggleList,aJ as ToggleSize,gw as ToggleVariant,ad as TruncatableTypography,b as Typography,a1 as TypographyColor,c as TypographySize,aK as TypographyVariants,ap as WarningModal,gx as resolveTypographyColor}from"../chunks/ui-components-DNIrc4p5.js";import"react/jsx-runtime";import"styled-components";import"../icons.js";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
package/lib/components.js CHANGED
@@ -1 +1 @@
1
- export{aB as CenterThis,eJ as Code,i as Divider,g3 as ErrorBoundary,g4 as FadeLoader,R as FlexColumn,F as FlexRow,g5 as IconButton,eK as IconGroup,g6 as IconWrapped,g7 as ImageControlled,g8 as LoadingText,g9 as ModalBody,ga as NotificationNote,gb as Overlay,aR as Padding,d3 as PageContent,a as Popup,gc as ScrollX,bc as ScrollY,bg as SkeletonLoader,gd as TableContainer,ge as TableTitleWrap,gf as TableWrap,h as Text,gg as ToggleCodeComponent,ak as Tooltip,dx as UpgradeRequiredWrapper,gh as VerticalScroll,gi as getLinksFromText,gj as getStrongsFromText,gk as renderText}from"./chunks/ui-components-DNrEjxrR.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{aB as CenterThis,eJ as Code,i as Divider,g3 as ErrorBoundary,g4 as FadeLoader,R as FlexColumn,F as FlexRow,g5 as IconButton,eK as IconGroup,g6 as IconWrapped,g7 as ImageControlled,g8 as LoadingText,g9 as ModalBody,ga as NotificationNote,gb as Overlay,aR as Padding,d3 as PageContent,a as Popup,gc as ScrollX,bc as ScrollY,bg as SkeletonLoader,gd as TableContainer,ge as TableTitleWrap,gf as TableWrap,h as Text,gg as ToggleCodeComponent,ak as Tooltip,dx as UpgradeRequiredWrapper,gh as VerticalScroll,gi as getLinksFromText,gj as getStrongsFromText,gk as renderText}from"./chunks/ui-components-DNIrc4p5.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
package/lib/constants.js CHANGED
@@ -1 +1 @@
1
- export{A as ACTION_OPTIONS,fJ as ALL_SOURCES,bv as BTN_CANCEL,dB as BTN_CREATE_FIRST_RULE,bC as BTN_CREATE_RULE,by as BTN_DELETE_RULE,dR as BTN_EDIT_AUTO_RULE,bx as BTN_EDIT_RULE,bK as BTN_SAVE,bw as BTN_SAVE_RULE,aQ as BUTTON_TEXTS,bz as CATEGORY_DESCRIPTIONS,et as CATEGORY_LABELS,bD as CATEGORY_TITLES,fK as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,fL as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,fM as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,aO as DEFAULT_CLUSTER_ID,aN as DEFAULT_CLUSTER_NAME,dp as DEFAULT_DATA_STREAM_NAME,dY as DESC_DURATION,dX as DESC_ERRORS,d$ as DESC_OPERATION,fN as DESC_PERCENTAGE_HIGHLY_RELEVANT,au as DESC_PERCENTAGE_NOISY,eu as DESC_RULE_TYPE,eC as DESC_SOURCE_SCOPE,aG as DESTINATION_CATEGORIES,an as DISPLAY_LANGUAGES,D as DISPLAY_TITLES,af as DOCS_BASE_URL,y as DestinationCategoryTypes,bG as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,bH as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,bE as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,bF as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,bI as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,bJ as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,bA as EDIT_TITLES,eb as EMPTY_VALUE,a9 as EXTRACTION_FORMAT_COPY,a6 as EXTRACT_ATTRIBUTE_FORM,dz as FILTER_TYPE_ALL,v as FORM_ALERTS,I as INSTRUMENTATION_RULE_OPTIONS,dZ as LABEL_CUSTOM_DURATION,az as LABEL_CUSTOM_PERCENTAGE,ax as LABEL_DISABLED,dy as LABEL_DISABLED_RULE,el as LABEL_DROP_ALL,ar as LABEL_DROP_AT_MOST,aw as LABEL_ENABLED,e4 as LABEL_HTTP_ROUTE,e6 as LABEL_HTTP_ROUTE_PREFIX,e8 as LABEL_KAFKA_TOPIC,em as LABEL_KEEP_ALL,ei as LABEL_KEEP_AT_LEAST,ej as LABEL_KEEP_AT_MOST,eh as LABEL_KEEP_PERCENTAGE,dW as LABEL_KEEP_TRACES_DURATION,dU as LABEL_KEEP_TRACES_ERRORS,e7 as LABEL_METHOD,ep as LABEL_NOTE,dS as LABEL_NO_PREVIEW,ea as LABEL_OPERATION_TYPE,fO as LABEL_RULE_DISABLED,fP as LABEL_RULE_ENABLED,en as LABEL_RULE_NAME,eo as LABEL_RULE_TYPE,ek as LABEL_SAMPLE,e1 as LABEL_SERVER_ADDRESS,e3 as LABEL_TEMPLATED_PATH,e5 as LABEL_TEMPLATED_PATH_PREFIX,bn as LANGUAGE_OPTIONS,d9 as MONITORS_OPTIONS,ew as NOTE_ENTIRE_CLUSTER,eB as NOTE_SOURCE_SCOPE_LOGIC,fQ as OPENTELEMETRY_EBPF_DISTRO_OPTION,ed as OPERATION_ALL,ec as OPERATION_HTTP_CLIENT,e9 as OPERATION_HTTP_SERVER,ee as OPERATION_KAFKA_CONSUMER,ef as OPERATION_KAFKA_PRODUCER,bm as OTEL_DISTRO_NAME_OPTIONS,eg as PERCENTAGE_SECTION_DESCRIPTIONS,er as PLACEHOLDER_NOTE,e2 as PLACEHOLDER_ROUTE,eq as PLACEHOLDER_RULE_NAME,eE as PLACEHOLDER_SEARCH_SOURCE,e0 as PLACEHOLDER_SERVER_ADDRESS,b5 as PROCESS_ATTRIBUTE_NAMES,a0 as REGEX_TESTER_DRAWER,av as SAMPLING_AUTO_RULE_TITLE,dH as SAMPLING_BTN_CREATE_RULE,dF as SAMPLING_BTN_DOCS,dG as SAMPLING_BTN_REFRESH,at as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,dK as SAMPLING_DELETE_MODAL_APPROVE,dL as SAMPLING_DELETE_MODAL_CANCEL,dM as SAMPLING_DELETE_MODAL_DESCRIPTION,dN as SAMPLING_DELETE_MODAL_TITLE,bL as SAMPLING_DRAWER_WIDTH,dE as SAMPLING_DUPLICATE_RULE_WARNING,aq as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,cC as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,cD as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,cE as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,cF as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,cG as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,cH as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,cI as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,cJ as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,cK as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,cL as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,cN as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,cM as SAMPLING_ONBOARDING_ADVANCED_TITLE,d2 as SAMPLING_ONBOARDING_AMBIENT_LABEL,c8 as SAMPLING_ONBOARDING_BTN_GO_TO,bV as SAMPLING_ONBOARDING_BTN_NEXT,cB as SAMPLING_ONBOARDING_BTN_READ_MORE,cj as SAMPLING_ONBOARDING_BTN_SKIP,ck as SAMPLING_ONBOARDING_BTN_START,cO as SAMPLING_ONBOARDING_COMMON_BANNER,d1 as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,cR as SAMPLING_ONBOARDING_DROP_DESCRIPTION,cQ as SAMPLING_ONBOARDING_DROP_SUBTITLE,cP as SAMPLING_ONBOARDING_DROP_TITLE,cU as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,cT as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,cX as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,cW as SAMPLING_ONBOARDING_KEEP_SUBTITLE,cV as SAMPLING_ONBOARDING_KEEP_TITLE,cY as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,cZ as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,c_ as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,c$ as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,d0 as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,c0 as SAMPLING_ONBOARDING_NOISY_BANNER,bY as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,b$ as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,bZ as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,b_ as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,bX as SAMPLING_ONBOARDING_NOISY_SUBTITLE,bW as SAMPLING_ONBOARDING_NOISY_TITLE,cS as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,bU as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,cy as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,cz as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,cA as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,cv as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,ct as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,cu as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,cw as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,cx as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,cq as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,co as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,cp as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,cr as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,cs as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,cn as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,cm as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,cl as SAMPLING_ONBOARDING_STRATEGY_TITLE,c5 as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,c6 as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,c7 as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,c4 as SAMPLING_ONBOARDING_SUCCESS_INTRO,c3 as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,c2 as SAMPLING_ONBOARDING_SUCCESS_TITLE,ci as SAMPLING_ONBOARDING_WELCOME_BANNER,cb as SAMPLING_ONBOARDING_WELCOME_INTRO,cc as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,cd as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,ce as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,cf as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,cg as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,ch as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,ca as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,c9 as SAMPLING_ONBOARDING_WELCOME_TITLE,dI as SAMPLING_PAGE_DESCRIPTION,dJ as SAMPLING_PAGE_TITLE,eG as SCOPE_AND_LABEL,eF as SCOPE_GROUP_ANY_OF_HINT,eA as SCOPE_GROUP_LANGUAGES_TITLE,ez as SCOPE_GROUP_NAMESPACES_TITLE,ex as SCOPE_GROUP_SOURCES_TITLE,dV as SECTION_DURATION,dT as SECTION_ERRORS,as as SECTION_KEEP_PERCENTAGE,d_ as SECTION_OPERATION,ev as SECTION_SAMPLING_PREVIEW,eH as SECTION_SOURCE_SCOPE,d8 as STORAGE_KEYS,dA as TITLE_NO_RESULTS,dC as TITLE_NO_RULES,fR as TOKEN_ABOUT_TO_EXPIRE,es as TOOLTIP_NOTE,ey as UNKNOWN_SOURCE_LABEL,bB as UNNAMED_RULE,dD as getNoResultsSubTitle}from"./chunks/ui-components-DNrEjxrR.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{A as ACTION_OPTIONS,fJ as ALL_SOURCES,bv as BTN_CANCEL,dB as BTN_CREATE_FIRST_RULE,bC as BTN_CREATE_RULE,by as BTN_DELETE_RULE,dR as BTN_EDIT_AUTO_RULE,bx as BTN_EDIT_RULE,bK as BTN_SAVE,bw as BTN_SAVE_RULE,aQ as BUTTON_TEXTS,bz as CATEGORY_DESCRIPTIONS,et as CATEGORY_LABELS,bD as CATEGORY_TITLES,fK as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,fL as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,fM as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,aO as DEFAULT_CLUSTER_ID,aN as DEFAULT_CLUSTER_NAME,dp as DEFAULT_DATA_STREAM_NAME,dY as DESC_DURATION,dX as DESC_ERRORS,d$ as DESC_OPERATION,fN as DESC_PERCENTAGE_HIGHLY_RELEVANT,au as DESC_PERCENTAGE_NOISY,eu as DESC_RULE_TYPE,eC as DESC_SOURCE_SCOPE,aG as DESTINATION_CATEGORIES,an as DISPLAY_LANGUAGES,D as DISPLAY_TITLES,af as DOCS_BASE_URL,y as DestinationCategoryTypes,bG as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,bH as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,bE as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,bF as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,bI as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,bJ as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,bA as EDIT_TITLES,eb as EMPTY_VALUE,a9 as EXTRACTION_FORMAT_COPY,a6 as EXTRACT_ATTRIBUTE_FORM,dz as FILTER_TYPE_ALL,v as FORM_ALERTS,I as INSTRUMENTATION_RULE_OPTIONS,dZ as LABEL_CUSTOM_DURATION,az as LABEL_CUSTOM_PERCENTAGE,ax as LABEL_DISABLED,dy as LABEL_DISABLED_RULE,el as LABEL_DROP_ALL,ar as LABEL_DROP_AT_MOST,aw as LABEL_ENABLED,e4 as LABEL_HTTP_ROUTE,e6 as LABEL_HTTP_ROUTE_PREFIX,e8 as LABEL_KAFKA_TOPIC,em as LABEL_KEEP_ALL,ei as LABEL_KEEP_AT_LEAST,ej as LABEL_KEEP_AT_MOST,eh as LABEL_KEEP_PERCENTAGE,dW as LABEL_KEEP_TRACES_DURATION,dU as LABEL_KEEP_TRACES_ERRORS,e7 as LABEL_METHOD,ep as LABEL_NOTE,dS as LABEL_NO_PREVIEW,ea as LABEL_OPERATION_TYPE,fO as LABEL_RULE_DISABLED,fP as LABEL_RULE_ENABLED,en as LABEL_RULE_NAME,eo as LABEL_RULE_TYPE,ek as LABEL_SAMPLE,e1 as LABEL_SERVER_ADDRESS,e3 as LABEL_TEMPLATED_PATH,e5 as LABEL_TEMPLATED_PATH_PREFIX,bn as LANGUAGE_OPTIONS,d9 as MONITORS_OPTIONS,ew as NOTE_ENTIRE_CLUSTER,eB as NOTE_SOURCE_SCOPE_LOGIC,fQ as OPENTELEMETRY_EBPF_DISTRO_OPTION,ed as OPERATION_ALL,ec as OPERATION_HTTP_CLIENT,e9 as OPERATION_HTTP_SERVER,ee as OPERATION_KAFKA_CONSUMER,ef as OPERATION_KAFKA_PRODUCER,bm as OTEL_DISTRO_NAME_OPTIONS,eg as PERCENTAGE_SECTION_DESCRIPTIONS,er as PLACEHOLDER_NOTE,e2 as PLACEHOLDER_ROUTE,eq as PLACEHOLDER_RULE_NAME,eE as PLACEHOLDER_SEARCH_SOURCE,e0 as PLACEHOLDER_SERVER_ADDRESS,b5 as PROCESS_ATTRIBUTE_NAMES,a0 as REGEX_TESTER_DRAWER,av as SAMPLING_AUTO_RULE_TITLE,dH as SAMPLING_BTN_CREATE_RULE,dF as SAMPLING_BTN_DOCS,dG as SAMPLING_BTN_REFRESH,at as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,dK as SAMPLING_DELETE_MODAL_APPROVE,dL as SAMPLING_DELETE_MODAL_CANCEL,dM as SAMPLING_DELETE_MODAL_DESCRIPTION,dN as SAMPLING_DELETE_MODAL_TITLE,bL as SAMPLING_DRAWER_WIDTH,dE as SAMPLING_DUPLICATE_RULE_WARNING,aq as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,cC as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,cD as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,cE as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,cF as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,cG as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,cH as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,cI as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,cJ as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,cK as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,cL as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,cN as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,cM as SAMPLING_ONBOARDING_ADVANCED_TITLE,d2 as SAMPLING_ONBOARDING_AMBIENT_LABEL,c8 as SAMPLING_ONBOARDING_BTN_GO_TO,bV as SAMPLING_ONBOARDING_BTN_NEXT,cB as SAMPLING_ONBOARDING_BTN_READ_MORE,cj as SAMPLING_ONBOARDING_BTN_SKIP,ck as SAMPLING_ONBOARDING_BTN_START,cO as SAMPLING_ONBOARDING_COMMON_BANNER,d1 as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,cR as SAMPLING_ONBOARDING_DROP_DESCRIPTION,cQ as SAMPLING_ONBOARDING_DROP_SUBTITLE,cP as SAMPLING_ONBOARDING_DROP_TITLE,cU as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,cT as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,cX as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,cW as SAMPLING_ONBOARDING_KEEP_SUBTITLE,cV as SAMPLING_ONBOARDING_KEEP_TITLE,cY as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,cZ as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,c_ as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,c$ as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,d0 as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,c0 as SAMPLING_ONBOARDING_NOISY_BANNER,bY as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,b$ as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,bZ as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,b_ as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,bX as SAMPLING_ONBOARDING_NOISY_SUBTITLE,bW as SAMPLING_ONBOARDING_NOISY_TITLE,cS as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,bU as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,cy as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,cz as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,cA as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,cv as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,ct as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,cu as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,cw as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,cx as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,cq as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,co as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,cp as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,cr as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,cs as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,cn as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,cm as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,cl as SAMPLING_ONBOARDING_STRATEGY_TITLE,c5 as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,c6 as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,c7 as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,c4 as SAMPLING_ONBOARDING_SUCCESS_INTRO,c3 as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,c2 as SAMPLING_ONBOARDING_SUCCESS_TITLE,ci as SAMPLING_ONBOARDING_WELCOME_BANNER,cb as SAMPLING_ONBOARDING_WELCOME_INTRO,cc as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,cd as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,ce as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,cf as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,cg as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,ch as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,ca as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,c9 as SAMPLING_ONBOARDING_WELCOME_TITLE,dI as SAMPLING_PAGE_DESCRIPTION,dJ as SAMPLING_PAGE_TITLE,eG as SCOPE_AND_LABEL,eF as SCOPE_GROUP_ANY_OF_HINT,eA as SCOPE_GROUP_LANGUAGES_TITLE,ez as SCOPE_GROUP_NAMESPACES_TITLE,ex as SCOPE_GROUP_SOURCES_TITLE,dV as SECTION_DURATION,dT as SECTION_ERRORS,as as SECTION_KEEP_PERCENTAGE,d_ as SECTION_OPERATION,ev as SECTION_SAMPLING_PREVIEW,eH as SECTION_SOURCE_SCOPE,d8 as STORAGE_KEYS,dA as TITLE_NO_RESULTS,dC as TITLE_NO_RULES,fR as TOKEN_ABOUT_TO_EXPIRE,es as TOOLTIP_NOTE,ey as UNKNOWN_SOURCE_LABEL,bB as UNNAMED_RULE,dD as getNoResultsSubTitle}from"./chunks/ui-components-DNIrc4p5.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
@@ -1,4 +1,4 @@
1
- import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useEffect as n,useMemo as a,useRef as i,useCallback as l,useState as r,Fragment as s,forwardRef as c,useImperativeHandle as d,Children as u,createContext as p,useContext as h,useLayoutEffect as g}from"react";import m,{useTheme as f,css as b,keyframes as v}from"styled-components";import{u as y,n as C,C as S,d as w,b as x,c as k,S as T,f as $,e as E,a as I,r as N,h as A,j as O,k as D,l as R,o as P,p as F,q as L,s as _,t as z,w as B,x as M}from"../chunks/helpers-BFZzc68M.js";import{q as X,R as V,U,V as H,W as G,X as j,Y as W,Z as K,_ as Y,$ as J,f as q,a0 as Z,b as Q,a1 as ee,c as te,F as oe,a2 as ne,a3 as ae,a4 as ie,a5 as le,a6 as re,a7 as se,a8 as ce,a9 as de,aa as ue,ab as pe,i as he,r as ge,ac as me,ad as fe,ae as be,af as ve,ag as ye,ah as Ce,n as Se,S as we,B as xe,G as ke,z as Te,ai as $e,aj as Ee,ak as Ie,J as Ne,al as Ae,L as Oe,M as De,K as Re,O as Pe,am as Fe,an as Le,ao as _e,ap as ze,D as Be,w as Me,aq as Xe,ar as Ve,as as Ue,at as He,au as Ge,av as je,aw as We,ax as Ke,ay as Ye,az as Je,aA as qe,A as Ze,aB as Qe,y as et,aC as tt,aD as ot,aE as nt,aF as at,aG as it,aH as lt,p as rt,C as st,j as ct,I as dt,E as ut,aI as pt,T as ht,aJ as gt,aK as mt,aL as ft,aM as bt,aN as vt,aO as yt,aP as Ct,aQ as St,aR as wt,aS as xt,aT as kt,aU as Tt,o as $t,aV as Et,H as It,aW as Nt,aX as At,aY as Ot,l as Dt,v as Rt,aZ as Pt,a_ as Ft,a$ as Lt,b0 as _t,b1 as zt,b2 as Bt,b3 as Mt,b4 as Xt,b5 as Vt,b6 as Ut,b7 as Ht,b8 as Gt,b9 as jt,ba as Wt,bb as Kt,bc as Yt,bd as Jt,be as qt,g as Zt,d as Qt,bf as eo,Q as to,bg as oo,bh as no,bi as ao,bj as io,bk as lo,bl as ro,bm as so,bn as co,bo as uo,bp as po,bq as ho,br as go,bs as mo,bt as fo,bu as bo,bv as vo,bw as yo,bx as Co,by as So,bz as wo,bA as xo,bB as ko,bC as To,bD as $o,bE as Eo,bF as Io,bG as No,bH as Ao,bI as Oo,bJ as Do,bK as Ro,bL as Po,bM as Fo,bN as Lo,bO as _o,bP as zo,bQ as Bo,bR as Mo,bS as Xo,bT as Vo,bU as Uo,bV as Ho,bW as Go,bX as jo,bY as Wo,bZ as Ko,b_ as Yo,b$ as Jo,c0 as qo,c1 as Zo,c2 as Qo,c3 as en,c4 as tn,c5 as on,c6 as nn,c7 as an,c8 as ln,c9 as rn,ca as sn,cb as cn,cc as dn,cd as un,ce as pn,cf as hn,cg as gn,ch as mn,ci as fn,cj as bn,ck as vn,cl as yn,cm as Cn,cn as Sn,co as wn,cp as xn,cq as kn,cr as Tn,cs as $n,ct as En,cu as In,cv as Nn,cw as An,cx as On,cy as Dn,cz as Rn,cA as Pn,cB as Fn,cC as Ln,cD as _n,cE as zn,cF as Bn,cG as Mn,cH as Xn,cI as Vn,cJ as Un,cK as Hn,cL as Gn,cM as jn,cN as Wn,cO as Kn,cP as Yn,cQ as Jn,cR as qn,cS as Zn,cT as Qn,cU as ea,cV as ta,cW as oa,cX as na,cY as aa,cZ as ia,c_ as la,c$ as ra,d0 as sa,d1 as ca,d2 as da,d3 as ua,d4 as pa,d5 as ha,d6 as ga,d7 as ma,d8 as fa,d9 as ba,da as va,db as ya,dc as Ca,dd as Sa,de as wa,df as xa,dg as ka,dh as Ta,e as $a,di as Ea,dj as Ia,dk as Na,dl as Aa,dm as Oa,dn as Da,dp as Ra,dq as Pa,dr as Fa,ds as La,dt as _a,du as za,dv as Ba,dw as Ma,dx as Xa,dy as Va,dz as Ua,dA as Ha,dB as Ga,dC as ja,dD as Wa,dE as Ka,dF as Ya,dG as Ja,dH as qa,dI as Za,dJ as Qa,dK as ei,dL as ti,dM as oi,dN as ni,dO as ai}from"../chunks/ui-components-DNrEjxrR.js";import{TrashIcon as ii,PlusIcon as li,ArrowRightIcon as ri,VSquareIcon as si,XSquareIcon as ci,BookIcon as di,DeleteIcon as ui,EditIcon as pi,GoLogo as hi,JavaLogo as gi,ChevronRightIcon as mi,ActionIcon as fi,DestinationIcon as bi,ChevronUpIcon as vi,ChevronDownIcon as yi,VIcon as Ci,XIcon as Si,InstrumentationRuleIcon as wi,SourceIcon as xi,NamespacesIcon as ki,SettingsIcon as Ti,PodIcon as $i,OdigosLogo as Ei,K8sLogo as Ii,RefreshIcon as Ni,ExclamationCircleIcon as Ai,QuestionCircleIcon as Oi,InboundIcon as Di,OutboundIcon as Ri,UserIcon as Pi,TerminalIcon as Fi,ExpandIcon as Li,SearchIcon as _i,MinusIcon as zi,CopyIcon as Bi,DotIcon as Mi,DownloadIcon as Xi,RefreshLeftArrowIcon as Vi,VmLogo as Ui,SamplingIcon as Hi,ExclamationTriangleIcon as Gi,KeyIcon as ji,DiagnoseIcon as Wi,StarIcon as Ki,ArrowIcon as Yi,ConnectionsIcon as Ji,FilterIcon as qi,DataStreamIcon as Zi,PipelineCollectorIcon as Qi,ArrowDownSquareIcon as el,ArrowUpSquareIcon as tl,GatewayIcon as ol,YamlIcon as nl}from"../icons.js";import{S as al,D as il,I as ll,a as rl,A as sl,P as cl,b as dl,c as ul,R as pl,O as hl,d as gl,e as ml,f as fl,W as bl,g as vl,C as yl,Y as Cl,h as Sl,i as wl,U as xl}from"../chunks/index-BrSebk-Z.js";import{u as kl,f as Tl,g as $l,e as El,i as Il,h as Nl,S as Al,k as Ol,E as Dl,l as Rl,m as Pl,j as Fl,b as Ll,d as _l,a as zl,A as Bl,R as Ml,c as Xl,D as Vl}from"../chunks/source-instrument-form-context-n8N3zC_-.js";import{createPortal as Ul}from"react-dom";import"zustand";import"javascript-time-ago";import"../chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"virtua";const Hl=[{id:"CREDIT_CARD",label:"Credit card"}],Gl=[{id:X.CollectContainerAttributes,label:"Collect container attributes"},{id:X.CollectReplicaSetAttributes,label:"Collect ReplicaSet attributes"},{id:X.CollectWorkloadId,label:"Collect workload ID"},{id:X.CollectClusterId,label:"Collect cluster ID"}],jl=[{id:W.Pod,label:W.Pod},{id:W.Namespace,label:W.Namespace},{id:W.Node,label:W.Node}],Wl=[{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:jl}],Kl=[{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:jl}],Yl=/^[a-zA-Z]$/,Jl=new Set(["*","+","?"]),ql=new Set(["^","$"]),Zl={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"},Ql=m.div`
1
+ import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useEffect as n,useMemo as a,useRef as i,useCallback as l,useState as r,Fragment as s,forwardRef as c,useImperativeHandle as d,Children as u,createContext as p,useContext as h,useLayoutEffect as g}from"react";import m,{useTheme as f,css as b,keyframes as v}from"styled-components";import{u as y,n as C,C as S,d as w,b as x,c as k,S as T,f as $,e as E,a as I,r as N,h as A,j as O,k as D,l as R,o as P,p as F,q as L,s as _,t as z,w as B,x as M}from"../chunks/helpers-LpbP8L0p.js";import{q as X,R as V,U,V as H,W as G,X as j,Y as W,Z as K,_ as Y,$ as J,f as q,a0 as Z,b as Q,a1 as ee,c as te,F as oe,a2 as ne,a3 as ae,a4 as ie,a5 as le,a6 as re,a7 as se,a8 as ce,a9 as de,aa as ue,ab as pe,i as he,r as ge,ac as me,ad as fe,ae as be,af as ve,ag as ye,ah as Ce,n as Se,S as we,B as xe,G as ke,z as Te,ai as $e,aj as Ee,ak as Ie,J as Ne,al as Ae,L as Oe,M as De,K as Re,O as Pe,am as Fe,an as Le,ao as _e,ap as ze,D as Be,w as Me,aq as Xe,ar as Ve,as as Ue,at as He,au as Ge,av as je,aw as We,ax as Ke,ay as Ye,az as Je,aA as qe,A as Ze,aB as Qe,y as et,aC as tt,aD as ot,aE as nt,aF as at,aG as it,aH as lt,p as rt,C as st,j as ct,I as dt,E as ut,aI as pt,T as ht,aJ as gt,aK as mt,aL as ft,aM as bt,aN as vt,aO as yt,aP as Ct,aQ as St,aR as wt,aS as xt,aT as kt,aU as Tt,o as $t,aV as Et,H as It,aW as Nt,aX as At,aY as Ot,l as Dt,v as Rt,aZ as Pt,a_ as Ft,a$ as Lt,b0 as _t,b1 as zt,b2 as Bt,b3 as Mt,b4 as Xt,b5 as Vt,b6 as Ut,b7 as Ht,b8 as Gt,b9 as jt,ba as Wt,bb as Kt,bc as Yt,bd as Jt,be as qt,g as Zt,d as Qt,bf as eo,Q as to,bg as oo,bh as no,bi as ao,bj as io,bk as lo,bl as ro,bm as so,bn as co,bo as uo,bp as po,bq as ho,br as go,bs as mo,bt as fo,bu as bo,bv as vo,bw as yo,bx as Co,by as So,bz as wo,bA as xo,bB as ko,bC as To,bD as $o,bE as Eo,bF as Io,bG as No,bH as Ao,bI as Oo,bJ as Do,bK as Ro,bL as Po,bM as Fo,bN as Lo,bO as _o,bP as zo,bQ as Bo,bR as Mo,bS as Xo,bT as Vo,bU as Uo,bV as Ho,bW as Go,bX as jo,bY as Wo,bZ as Ko,b_ as Yo,b$ as Jo,c0 as qo,c1 as Zo,c2 as Qo,c3 as en,c4 as tn,c5 as on,c6 as nn,c7 as an,c8 as ln,c9 as rn,ca as sn,cb as cn,cc as dn,cd as un,ce as pn,cf as hn,cg as gn,ch as mn,ci as fn,cj as bn,ck as vn,cl as yn,cm as Cn,cn as Sn,co as wn,cp as xn,cq as kn,cr as Tn,cs as $n,ct as En,cu as In,cv as Nn,cw as An,cx as On,cy as Dn,cz as Rn,cA as Pn,cB as Fn,cC as Ln,cD as _n,cE as zn,cF as Bn,cG as Mn,cH as Xn,cI as Vn,cJ as Un,cK as Hn,cL as Gn,cM as jn,cN as Wn,cO as Kn,cP as Yn,cQ as Jn,cR as qn,cS as Zn,cT as Qn,cU as ea,cV as ta,cW as oa,cX as na,cY as aa,cZ as ia,c_ as la,c$ as ra,d0 as sa,d1 as ca,d2 as da,d3 as ua,d4 as pa,d5 as ha,d6 as ga,d7 as ma,d8 as fa,d9 as ba,da as va,db as ya,dc as Ca,dd as Sa,de as wa,df as xa,dg as ka,dh as Ta,e as $a,di as Ea,dj as Ia,dk as Na,dl as Aa,dm as Oa,dn as Da,dp as Ra,dq as Pa,dr as Fa,ds as La,dt as _a,du as za,dv as Ba,dw as Ma,dx as Xa,dy as Va,dz as Ua,dA as Ha,dB as Ga,dC as ja,dD as Wa,dE as Ka,dF as Ya,dG as Ja,dH as qa,dI as Za,dJ as Qa,dK as ei,dL as ti,dM as oi,dN as ni,dO as ai}from"../chunks/ui-components-DNIrc4p5.js";import{TrashIcon as ii,PlusIcon as li,ArrowRightIcon as ri,VSquareIcon as si,XSquareIcon as ci,BookIcon as di,DeleteIcon as ui,EditIcon as pi,GoLogo as hi,JavaLogo as gi,ChevronRightIcon as mi,ActionIcon as fi,DestinationIcon as bi,ChevronUpIcon as vi,ChevronDownIcon as yi,VIcon as Ci,XIcon as Si,InstrumentationRuleIcon as wi,SourceIcon as xi,NamespacesIcon as ki,SettingsIcon as Ti,PodIcon as $i,OdigosLogo as Ei,K8sLogo as Ii,RefreshIcon as Ni,ExclamationCircleIcon as Ai,QuestionCircleIcon as Oi,InboundIcon as Di,OutboundIcon as Ri,UserIcon as Pi,TerminalIcon as Fi,ExpandIcon as Li,SearchIcon as _i,MinusIcon as zi,CopyIcon as Bi,DotIcon as Mi,DownloadIcon as Xi,RefreshLeftArrowIcon as Vi,VmLogo as Ui,SamplingIcon as Hi,ExclamationTriangleIcon as Gi,KeyIcon as ji,DiagnoseIcon as Wi,StarIcon as Ki,ArrowIcon as Yi,ConnectionsIcon as Ji,FilterIcon as qi,DataStreamIcon as Zi,PipelineCollectorIcon as Qi,ArrowDownSquareIcon as el,ArrowUpSquareIcon as tl,GatewayIcon as ol,YamlIcon as nl}from"../icons.js";import{S as al,D as il,I as ll,a as rl,A as sl,P as cl,b as dl,c as ul,R as pl,O as hl,d as gl,e as ml,f as fl,W as bl,g as vl,C as yl,Y as Cl,h as Sl,i as wl,U as xl}from"../chunks/index-BuxeIAvf.js";import{u as kl,f as Tl,g as $l,e as El,i as Il,h as Nl,S as Al,k as Ol,E as Dl,l as Rl,m as Pl,j as Fl,b as Ll,d as _l,a as zl,A as Bl,R as Ml,c as Xl,D as Vl}from"../chunks/source-instrument-form-context-BlL_U41q.js";import{createPortal as Ul}from"react-dom";import"zustand";import"javascript-time-ago";import"../chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"virtua";const Hl=[{id:"CREDIT_CARD",label:"Credit card"}],Gl=[{id:X.CollectContainerAttributes,label:"Collect container attributes"},{id:X.CollectReplicaSetAttributes,label:"Collect ReplicaSet attributes"},{id:X.CollectWorkloadId,label:"Collect workload ID"},{id:X.CollectClusterId,label:"Collect cluster ID"}],jl=[{id:W.Pod,label:W.Pod},{id:W.Namespace,label:W.Namespace},{id:W.Node,label:W.Node}],Wl=[{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:jl}],Kl=[{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:jl}],Yl=/^[a-zA-Z]$/,Jl=new Set(["*","+","?"]),ql=new Set(["^","$"]),Zl={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"},Ql=m.div`
2
2
  padding: 8px 16px;
3
3
  border-radius: 6px;
4
4
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[500]};
@@ -101,7 +101,7 @@ import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useEffect
101
101
  white-space: pre-wrap;
102
102
  user-select: text;
103
103
  `,pr=({isOpen:o,regex:n,onClose:i,initialTestString:l=""})=>{const[s,c]=r(l),d=a(()=>((e,t)=>{if(!e)return{ok:!0,isMatch:!1,message:Z.RESULT_EMPTY_REGEX};if(!t)return{ok:!0,isMatch:!1,message:Z.RESULT_EMPTY_INPUT};let o;try{o=new RegExp(e)}catch(e){return{ok:!1,message:e instanceof Error?e.message:Z.RESULT_INVALID_REGEX_FALLBACK}}const n=o.exec(t);return n?{ok:!0,isMatch:!0,message:n.length>1?n[1]:n[0]}:{ok:!0,isMatch:!1,message:Z.RESULT_NO_MATCH}})(n,s),[n,s]),u=d.ok?d.isMatch?"match":"neutral":"error";return t(q,{isOpen:o,header:{title:Z.TITLE,onClose:()=>{c(""),i()}},children:t(cr,{children:e(dr,{children:[e(V,{$gap:6,children:[t(U,{label:Z.REGEX_LABEL}),t(tr,{pattern:n,"data-id":"regex-tester-regex"}),!n&&t(Q,{size:te.XXS,color:ee.Secondary,children:Z.REGEX_EMPTY_HINT})]}),e(V,{$gap:6,children:[e(oe,{$width:"100%",$justifyContent:"space-between",$alignItems:"center",children:[t(U,{label:Z.TEST_STRING_LABEL}),t(ne,{"data-id":"regex-tester-unescape",label:Z.UNESCAPE_LABEL,tooltip:Z.UNESCAPE_TOOLTIP,variant:ie.Secondary,size:ae.S,onClick:()=>c(e=>(e=>{let t="";for(let o=0;o<e.length;o++){if("\\"===e[o]&&o+1<e.length){const n=e[o+1],a="n"===n?"\n":"t"===n?"\t":"r"===n?"\r":'"'===n?'"':"'"===n?"'":"\\"===n?"\\":null;if(null!=a){t+=a,o++;continue}}t+=e[o]}return t})(e)),disabled:(p=s,!/\\["'\\nrt]/.test(p))})]}),t(sr,{name:"regex-tester-test-string","data-id":"regex-tester-test-string",placeholder:Z.TEST_STRING_PLACEHOLDER,regex:n,value:s,onChange:c,minHeight:240}),t(G,{helpMessage:Z.TEST_STRING_HELP})]}),e(V,{$gap:8,children:[t(U,{label:Z.RESULT_LABEL}),t(ur,{$tone:u,"data-id":"regex-tester-result",children:d.message}),d.ok&&d.isMatch&&t(Q,{size:te.XXS,color:ee.Secondary,children:Z.RESULT_CAPTURE_HINT})]})]})})});var p},hr=X.ExtractAttribute;var gr;!function(e){e.Preset="preset",e.Regex="regex"}(gr||(gr={}));const mr=[se.JSON,se.SQL,se.ResourcePath],fr=(e=se.JSON)=>({targetAttributeName:"",lookupKey:"",dataFormat:e,regex:""}),br=e=>!!e.regex&&!e.lookupKey&&!e.dataFormat,vr=m.div`
104
- width: calc(100% - 16px);
104
+ width: 100%;
105
105
  background: ${({theme:e})=>e.v2.colors.silver[800]};
106
106
  border-radius: 8px;
107
107
  padding: 8px;
@@ -188,7 +188,7 @@ import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useEffect
188
188
  ${Es}:hover & {
189
189
  visibility: visible;
190
190
  }
191
- `,Ns=({clusterId:o,namespaceName:n,checkbox:a,isFutureApps:i,selectedCounts:l,isActive:r,onActive:s,handleSourceChange:c})=>{const{isVm:d}=y(),u=e=>{s(),c({clusterId:o,workloadId:{namespace:n},auto:e.auto,selected:e.all})};return t(Es,{children:t(Qr,{dataId:`namespace-${n}`,withCarret:!0,title:n,isSelected:r,onClick:s,isPartiallyChecked:a.partial,isChecked:a.all,onCheckboxChange:e=>u({auto:e,all:e}),children:e(oe,{$gap:12,children:[!d&&t(Is,{$visible:r||i,children:t(Ie,{text:ws,children:t(K,{label:Ss,labelAlign:Y.Left,size:gt.S,value:i,onChange:e=>u({auto:e,all:e||void 0})})})}),e(oe,{$gap:8,children:[t(Q,{variant:mt.Span,size:te.XXXS,color:ee.Secondary,align:"right",children:Cs}),t(Fe,{label:`${l.sourced}/${l.total}`,status:r?we.Default:pt.Unknown,minWidth:"42px"})]})]})})})},As=({withCollapse:e,clusterId:o,clusterName:n,namespaces:i,selectedArea:l,setSelectedArea:r,handleSourceChange:s})=>{const c=a(()=>i.map(({name:e,totalWorkloads:a,selectedCount:i,isAllSourced:c,isSomeSourced:d,isFutureApps:u})=>t(Ns,{clusterId:o,namespaceName:e,isFutureApps:u,checkbox:{all:c||u,partial:d},selectedCounts:{sourced:i,total:a},isActive:l.clusterId===o&&l.namespaceName===e,onActive:()=>r({clusterId:o,clusterName:n,namespaceName:e}),handleSourceChange:s},`${o}#${e}`)),[o,n,i,l]);return e?t(as,{title:n,list:c,noBgColor:!0}):c},Os=({onClose:o,onBack:i,onNext:l,selectedConnectionIds:s,setSelectedConnectionIds:c,persistSources:d,getAllClusterSnapshots:u,fetchNamespacesWithWorkloads:p,withOverlay:h,disableAnimation:g})=>{const{isVm:m}=y(),f=gs(m),{selectedStreamName:b}=Me(),{progress:v,resetProgress:C}=ft(),{isFetching:S,setIsFetching:w,setSnapshots:x,formData:k,handleSourceChange:T,handleSelectAll:$,formDiff:E,isFormDirty:I}=Fl();n(()=>{let e=!1;w(!0);return(async()=>{try{if(u){const t=await u();!e&&t&&x(t)}else if(p){const t=await p();if(!e&&t.data?.length){const e={clusters:[{clusterId:yt,clusterName:vt,namespaces:t.data.map(e=>({name:e.name,selected:e.markedForInstrumentation&&e.dataStreamNames.includes(b),workloads:e.workloads?.map(e=>({namespace:e.id.namespace,name:e.id.name,kind:e.id.kind,selected:e.markedForInstrumentation?.markedForInstrumentation??!1}))||[]}))}]};x(e)}}}catch(e){}finally{e||w(!1)}})(),()=>{e=!0}},[b]);const[N,A]=r(""),[O,D]=r(ut.Namespace),[R,P]=r({showOnlySelected:!1}),[F,L]=r({clusterId:"",clusterName:"",namespaceName:""}),_=(({isFetching:o,formData:n,handleSourceChange:i,handleSelectAll:l,selectedArea:r,setSelectedArea:s,searchText:c,searchBy:d,filters:u})=>{const{isVm:p}=y(),h=gs(p),g=a(()=>n.map(e=>{const t=[...e.namespaces].sort((e,t)=>e.name.localeCompare(t.name)).filter(e=>Rl(e,c,u)).map(e=>({name:e.name,totalWorkloads:e.workloads.length,...Pl(e)}));return{clusterId:e.clusterId,clusterName:e.clusterName,visibleNamespaces:t}}),[n,c,u]),m=a(()=>{let e=!1;for(const{visibleNamespaces:t}of g)for(const{totalWorkloads:o,selectedCount:n}of t)if(e=!0,n!==o)return!1;return e},[g]),{list:f,withFilterCount:b,filteredCount:v,totalCount:C}=a(()=>{const e=g.map(({clusterId:e,clusterName:o,visibleNamespaces:n})=>n.length?t(As,{withCollapse:g.length>1,clusterId:e,clusterName:o,namespaces:n,selectedArea:r,setSelectedArea:s,handleSourceChange:i},e):null),o=e.filter(e=>null!==e);return{list:o,withFilterCount:o.length!==e.length,filteredCount:o.length,totalCount:e.length}},[g,r]);return{width:"60%",header:e(oe,{$width:"100%",$gap:12,$justifyContent:"space-between",children:[e(oe,{$gap:8,children:[t(Q,{size:te.XS,nowrap:!0,children:h.groupColumnHeader}),t(Ie,{text:b?Be.FILTERED_COUNT_TOOLTIP:void 0,children:t(Fe,{label:`${b?`${v} / ${C}`:C}`,status:pt.Unknown})})]}),t(Q,{"data-id":"namespaces-select-all",onClick:()=>l({boolean:!m,searchText:c,searchBy:d,filters:u}),disabled:!f.length,size:te.XS,children:vs(m)})]}),list:f.length?f:o?[t(Qe,{$height:"100%",children:t(at,{title:h.fetchingGroups.title,subTitle:h.fetchingGroups.subTitle,withSpinner:!0})},"loading")]:[t(Qe,{$height:"100%",children:t(me,c?{icon:ki,title:ms,subTitle:h.noGroupMatchedFilter(c)}:{icon:ki,title:h.noGroups.title,subTitle:h.noGroups.subTitle})},"no-data")]}})({isFetching:S,formData:k,handleSourceChange:T,handleSelectAll:$,selectedArea:F,setSelectedArea:L,searchText:O===ut.Namespace?N:"",searchBy:O,filters:R}),z=(({formData:o,handleSourceChange:n,handleSelectAll:i,selectedArea:l,searchText:r,searchBy:s,filters:c})=>{const{tier:d,isVm:u}=y(),p=gs(u),h=d===ht.Onprem,g=a(()=>l.value.namespaceName?o.find(({clusterId:e})=>e===l.value.clusterId)?.namespaces.find(({name:e})=>e===l.value.namespaceName):void 0,[o,l.value.clusterId,l.value.namespaceName]),m=a(()=>g?[...g.workloads].sort((e,t)=>e.name.localeCompare(t.name)).filter(e=>Ol(e,r,c)):[],[g,r,c]),f=a(()=>!!m.length&&m.every(({selected:e})=>e),[m]),b=a(()=>{if(!g)return[];const{clusterId:e}=l.value,{name:o}=g;return m.map(({name:a,selected:i,kind:l})=>{const r=!u&&!h&&Dl.has(l);return t($s,{workloadName:a,workloadKind:l,isChecked:!r&&(i||!1),onToggle:()=>n({clusterId:e,workloadId:{namespace:o,name:a,kind:l}}),disabled:r,disabledReason:xs},`${e}#${o}#${a}#${l}`)})},[m,g,l.value.clusterId]),{withFilterCount:v,filteredCount:C,totalCount:S}=a(()=>{const e=g?.workloads.length??0;return{withFilterCount:m.length!==e,filteredCount:m.length,totalCount:e}},[m,g]);return{width:"40%",header:e(oe,{$width:"100%",$gap:12,$justifyContent:"space-between",children:[e(oe,{$gap:8,children:[t(Q,{size:te.XS,nowrap:!0,children:l.value.namespaceName?`${l.value.namespaceName} > ${p.itemColumnHeader}`:p.itemColumnHeader}),t(Ie,{text:v?Be.FILTERED_COUNT_TOOLTIP:void 0,children:t(Fe,{label:`${v?`${C} / ${S}`:S}`,status:pt.Unknown})})]}),t(Q,{"data-id":"workloads-select-all",onClick:()=>i({clusterId:l.value.clusterId,namespaceName:l.value.namespaceName,boolean:!f,searchText:r,searchBy:s,filters:c}),disabled:!b.length,size:te.XS,children:vs(f)})]}),list:b.length?b:[t(Qe,{$height:"100%",children:t(me,g?r?{icon:xi,title:ms,subTitle:bs(r)}:{icon:xi,title:fs,subTitle:p.noItemsInGroupSubTitle}:{icon:xi,title:p.selectGroupPrompt.title,subTitle:p.selectGroupPrompt.subTitle})},"no-data")]}})({formData:k,handleSourceChange:T,handleSelectAll:$,selectedArea:{value:F},searchText:O===ut.Source?N:"",searchBy:O,filters:R});return t(bl,{isOpen:!0,withOverlay:h,disableAnimation:g,onClose:o?()=>{C(bt.BulkInstrumenting),o()}:void 0,onBack:i?()=>i(E):void 0,onNext:l?()=>l(E):void 0,nextIsSkip:!I,onSave:()=>d(E),header:{icon:xi,title:Be.ADD_SOURCE,subTitle:Be.ADD_SOURCES_DESCRIPTION},connectionIds:s&&c?{value:s,setValue:c}:void 0,search:{value:N,onChange:e=>{A(e),O===ut.Namespace&&L({clusterId:"",clusterName:"",namespaceName:""})},placeholder:f.searchPlaceholder(O),segment:{options:[{label:f.groupSegmentLabel,value:ut.Namespace},{label:f.itemSegmentLabel,value:ut.Source}],selected:O,setSelected:D}},filters:e(oe,{$gap:8,children:[t(Q,{size:te.XXXS,color:ee.Secondary,nowrap:!0,children:ys}),t(K,{name:"filter-selected",size:gt.S,label:Cs,value:R.showOnlySelected,onChange:e=>P(t=>({...t,showOnlySelected:e}))})]}),isFormDirty:I,isFetching:S,progress:{title:Be.CREATING_SOURCES,subTitle:Be.CREATING_SOURCES_SUBTITLE,percentage:v[bt.BulkInstrumenting]?.percentage||0},leftColumn:_,rightColumn:z})},Ds=(e,t)=>{const o=[{id:"type",title:Be.TYPE,label:t.label},{id:"status",title:Be.STATUS,badge:{status:e.disabled?pt.Unknown:we.Success,label:e.disabled?Be.DISABLED:Be.ENABLED}}],n=e.signals?.map(e=>{let t=e.toLowerCase();return t=`${t.charAt(0).toUpperCase()}${t.slice(1)}`,t}).join(", ");return n&&o.push({id:"signals",title:Be.SIGNALS_FOR_PROCESSING,label:n}),e.name&&o.push({id:"name",title:Be.NAME,label:e.name}),e.notes&&o.push({id:"notes",title:Be.NOTES,label:e.notes}),o},Rs=({onClose:i,actionId:s,updateAction:c,deleteAction:d})=>{const u=f(),{actions:p}=ct(),{selectedOption:h,loadAction:g,validateFormData:m,genericForm:b}=kl(),[v,y]=r(!1),[C,S]=r(!1),[w,x]=r(null),k=v&&!!b?.isFormDirty,T=a(()=>p?.find(e=>Ct(e)===s),[s,p]),$=a(()=>Ze.find(({type:e})=>e===T?.type)??null,[T?.type]);n(()=>{T&&g(T)},[T]);const E=l(()=>{T&&y(!0)},[T]),I=l(()=>{T&&(g(T),y(!1))},[T,g]),N=l(()=>{k?x("close"):i()},[k,i]),A=l(()=>{k?x("cancel"):I()},[k,I]),O=l(()=>{const e=w;x(null),"close"===e?(I(),i()):I()},[w,I,i]),D=l(async()=>{if(T){const{errorMessage:e,preparedFormData:t}=m();e||(await c(T.id,t),y(!1))}},[T,m,c]),R=l(()=>{T&&S(!0)},[T]),P=l(async()=>{T&&(await d(T.id,T.type),i())},[T,d,i]);if(!T||!$)return null;const F=(e=>{const t=[],{type:o,fields:n}=e,a=e=>({status:e?we.Success:pt.Unknown,label:e?"True":"False",invertColors:!0});if(o===ge.K8sAttributes&&(t.push({id:"collectContainerAttributes",title:"Collect Container Attributes",badge:a(n.collectContainerAttributes)}),t.push({id:"collectReplicaSetAttributes",title:"Collect ReplicaSet Attributes",badge:a(n.collectReplicaSetAttributes)}),t.push({id:"collectWorkloadId",title:"Collect Workload ID",badge:a(n.collectWorkloadId)}),t.push({id:"collectClusterId",title:"Collect Cluster ID",badge:a(n.collectClusterId)}),n.labelsAttributes?.forEach(({labelKey:e,attributeKey:o,from:a,fromSources:i},l)=>{const r=i?.length?i.join(", "):a||W.Pod,s=(n.labelsAttributes?.length??0)>1?`Label #${l+1} `:"Label ";t.push({id:`label-${l}-key`,title:`${s}Key`,label:e}),t.push({id:`label-${l}-attr`,title:`${s}Attribute Key`,label:o}),t.push({id:`label-${l}-from`,title:`${s}From`,label:r})}),n.annotationsAttributes?.forEach(({annotationKey:e,attributeKey:o,from:a,fromSources:i},l)=>{const r=i?.length?i.join(", "):a||W.Pod,s=(n.annotationsAttributes?.length??0)>1?`Annotation #${l+1} `:"Annotation ";t.push({id:`annotation-${l}-key`,title:`${s}Key`,label:e}),t.push({id:`annotation-${l}-attr`,title:`${s}Attribute Key`,label:o}),t.push({id:`annotation-${l}-from`,title:`${s}From`,label:r})})),o===ge.AddClusterInfo&&(t.push({id:"overwriteExistingValues",title:"Overwrite Existing Values",badge:a(n.overwriteExistingValues)}),n.clusterAttributes?.forEach(({attributeName:e,attributeStringValue:o},n)=>{t.push({id:`cluster-attr-${n}`,title:e,label:o})})),o===ge.DeleteAttributes&&n.attributeNamesToDelete?.forEach((e,o)=>{t.push({id:`del-attr-${o}`,title:"Attribute"+((n.attributeNamesToDelete?.length??0)>1?` #${o+1}`:""),label:e})}),o===ge.RenameAttributes&&Object.entries(n.renames||{}).forEach(([e,o],n)=>{t.push({id:`rename-${n}`,title:e,label:o})}),o===ge.PiiMasking&&n.piiCategories?.forEach((e,o)=>{t.push({id:`pii-${o}`,title:"Category"+((n.piiCategories?.length??0)>1?` #${o+1}`:""),label:e})}),o===ge.ExtractAttribute){const e=n.extractAttribute?.extractions??[];e.forEach(({targetAttributeName:o,lookupKey:n,dataFormat:a,regex:i},l)=>{const r=e.length>1?`Extraction #${l+1} `:"Extraction ";t.push({id:`extract-${l}-target`,title:`${r}New Attribute Name`,label:o||"-"}),n&&t.push({id:`extract-${l}-lookupKey`,title:`${r}Lookup Key`,label:n}),a&&t.push({id:`extract-${l}-format`,title:`${r}Data Format`,label:a}),i&&t.push({id:`extract-${l}-regex`,title:`${r}Regex`,label:i})})}return o===ge.URLTemplatization&&n.urlTemplatizationRulesGroups?.forEach((e,o)=>{const a=(n.urlTemplatizationRulesGroups?.length??0)>1?`Group #${o+1} `:"Group ";e.filterK8sNamespace&&t.push({id:`group-${o}-ns`,title:`${a}Namespace`,label:e.filterK8sNamespace}),e.workloadFilters?.forEach((n,i)=>{const l=[n.kind,n.name].filter(Boolean).join("/");l&&t.push({id:`group-${o}-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-${o}-templates`,title:`${a}Templates`,label:i}),e.notes&&t.push({id:`group-${o}-notes`,title:`${a}Notes`,label:e.notes})}),t})(T);return e(o,{children:[t(q,{isOpen:!0,header:{icon:Tt(T.type),title:$.label,onClose:N,actions:[{id:"edit-action-btn-edit",label:St.EDIT,icon:pi,active:v,onClick:E},{id:"edit-action-btn-delete",label:St.DELETE,icon:ii,color:u.v2.colors.red[500],active:C,onClick:R}]},footer:{actions:v?[{"data-id":"edit-action-btn-cancel",label:St.CANCEL,variant:ie.Secondary,onClick:A},{"data-id":"edit-action-btn-save",label:St.SAVE,variant:ie.Primary,onClick:D}]:[]},children:t(wt,{$padding:"4px 12px 12px",children:v&&h?t(Er,{}):t(V,{$gap:16,children:e(xt,{bgTint:"1000",children:[e(xt,{bgTint:"900",children:[t(kt,{conditions:T.conditions||[]}),t(xt,{bgTint:"800",cellsPerRow:2,items:Ds(T,$)})]}),!!F?.length&&t(xt,{bgTint:"900",richTitle:{title:"Configuration"},withCollapse:!0,collapseIsDefaultOpen:!0,children:t(xt,{bgTint:"800",cellsPerRow:2,items:F})})]})})})}),t(vl,{target:"action",isOpen:C,onClose:()=>S(!1),onApprove:P}),t(yl,{isOpen:null!==w,onClose:()=>x(null),onApprove:O})]})},Ps=({onClose:o,connections:i,selectedConnectionIds:l,setSelectedConnectionIds:s,getEffectiveConfig:c,onApply:d})=>{const[u,p]=r(""),[h,g]=r({showOnlySelected:!1}),m=a(()=>i.filter(e=>{const t=!u||e.name.toLowerCase().includes(u.toLowerCase()),o=!h.showOnlySelected||h.showOnlySelected&&l.includes(e.id);return t&&o}),[i.length,l.length,u,h]),f=e=>{s(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[b,v]=r(!1),[y,C]=r(void 0),{formData:S,handleFormChange:w,areFormValuesEqual:x,resetFormData:k}=$t(y||{rollout:{automaticRolloutDisabled:!1}}),T=a(()=>l.length>1||void 0!==y&&!x(y,S),[l.length,y,S]);return n(()=>{1===l.length?(async e=>{if(b)return;v(!0);const t=await c(e);if(t){const e={rollout:{automaticRolloutDisabled:t.rollout?.automaticRolloutDisabled??!1}};C(e),k(e)}v(!1)})(l[0]):C(void 0)},[l.length]),t(bl,{isOpen:!0,onClose:o,onSave:()=>d(S,l),header:{icon:Ti,title:"Cluster Configuration"},connectionIds:{value:l,setValue:s},search:{placeholder:"Search by cluster name",value:u,onChange:p},filters:e(oe,{$gap:8,children:[t(Q,{size:te.XXXS,color:ee.Secondary,nowrap:!0,children:"Show only:"}),t(K,{size:gt.S,label:"Selected",value:h.showOnlySelected,onChange:e=>g(t=>({...t,showOnlySelected:e}))})]}),isFormDirty:T,isFetching:b,leftColumn:{width:"35%",header:e(oe,{$width:"100%",$gap:12,$justifyContent:"space-between",children:[e(oe,{$gap:8,children:[t(Q,{size:te.XS,children:"Clusters"}),t(Fe,{label:m.length,status:pt.Unknown})]}),e(oe,{$gap:8,children:[t(Q,{size:te.XXXS,color:ee.Secondary,align:"right",children:"Selected clusters"}),t(Fe,{label:`${l.length}/${m.length}`,status:pt.Unknown})]})]}),list:m.map(e=>t(Qr,{title:e.name,isChecked:l.includes(e.id),onClick:()=>f(e.id),onCheckboxChange:()=>f(e.id)},e.id))},rightColumn:{width:"65%",header:t(Q,{size:te.XS,children:"Configurations"}),list:[t(K,{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")]}})},Fs=e=>{const t=[{id:"type",title:Be.TYPE,label:e.destinationType.displayName},{id:"status",title:Be.STATUS,badge:{status:e.disabled?pt.Unknown:we.Success,label:e.disabled?Be.DISABLED:Be.ENABLED}}],o=ke(e.exportedSignals).map(e=>{let t=e.toLowerCase();return t=`${t.charAt(0).toUpperCase()}${t.slice(1)}`,t}).join(", ");return o&&t.push({id:"monitors",title:Be.MONITORS,label:o}),e.name&&t.push({id:"name",title:Be.NAME,label:e.name}),t},Ls=({onClose:s,destinationId:c,getDestinationCategories:d,testConnection:u,updateDestination:p,deleteDestination:h})=>{const g=f(),{isVm:m}=y(),{destinations:b}=ct(),{selectedStreamName:v}=Me(),{activeForm:C,loadDestination:S,validateFormData:w,genericForm:x}=Tl(),k=i(null),[T,$]=r(!1),[E,I]=r(!1),[N,A]=r(null),[O,D]=r(!0),[R,P]=r(null),F=T&&!!x?.isFormDirty,L=a(()=>Nt(b,v),[b,v]),_=a(()=>L?.find(e=>Ct(e)===c),[c,L]);n(()=>{let e=!1;return D(!0),d().then(t=>{e||A(t?.destinationCategories.categories??[])}).catch(t=>{e||A([])}).finally(()=>{e||D(!1)}),()=>{e=!0}},[]),n(()=>{_&&N&&S(_,N)},[_,N]);const z=a(()=>_&&N?At(N,_):[],[_,N]),B=l(()=>{_&&$(!0)},[_]),M=l(()=>{_&&N&&(S(_,N),$(!1))},[_,N,S]),X=l(()=>{F?P("close"):s()},[F,s]),U=l(()=>{F?P("cancel"):M()},[F,M]),H=l(()=>{const e=R;P(null),"close"===e?(M(),s()):M()},[R,M,s]),G=l(async()=>{if(_){const{errorMessage:e,preparedFormData:t}=w();e||(await p(_.id,$e(t)),$(!1))}},[_,w,p]),j=l(()=>{_&&I(!0)},[_]),W=l(async()=>{_&&(await h(_.id),s())},[_,h,s]);if(!_)return null;const{icon:K,iconSrc:Y}=lt(_.destinationType.type),J=((e,t)=>{const o=[],n=Et(e,t),a=n.map(e=>({name:e.key,value:e.value})),i=ke(e.exportedSignals);let l=[];const r=()=>{l.length&&(o.push({kind:"cells",id:`cells-${o.length}`,items:l}),l=[])};return n.forEach(({key:e,name:n,value:s})=>{const c=t.find(t=>t.name===e),{secret:d,componentType:u,componentProperties:p,hideFromReadData:h,customReadDataLabels:g}=c||{};if(h?.length&&Ce(h,i,a))return;const{type:m}=st(p,{type:""}),f=d||"password"===m;if(g?.length)g.forEach(({condition:t,...o},n)=>{t==s&&l.push({id:`${e}-custom-${n}`,title:o.title,label:o.value})});else if(s)if(f)l.push({id:e,title:n,label:new Array(10).fill("•").join("")});else{if(u===It.MultiInput){const t=st(s,null);if(Array.isArray(t)&&t.length)return r(),void o.push({kind:"list",id:e,title:n,items:t.map((t,o)=>({id:`${e}-${o}`,label:String(t)}))})}if(u===It.KeyValuePair){const t=st(s,null);if(Array.isArray(t)&&t.length)return r(),void o.push({kind:"pairs",id:e,title:n,items:t.map((t,o)=>{const n=t&&"object"==typeof t?t:{};return{id:`${e}-${o}`,title:null!=n.key?String(n.key):"",label:null!=n.value?String(n.value):""}})})}l.push({id:e,title:n,label:s})}else l.push({id:e,title:n,label:"-"})}),r(),o})(_,z);return e(o,{children:[t(q,{isOpen:!0,header:{icon:K,iconSrc:Y,title:_.name||_.destinationType.displayName,onClose:X,actions:[{id:"edit-destination-btn-edit",label:St.EDIT,icon:pi,active:T,onClick:B},{id:"edit-destination-btn-delete",label:St.DELETE,icon:ii,color:g.v2.colors.red[500],active:E,onClick:j}]},footer:{actions:T?[{"data-id":"edit-destination-btn-cancel",label:St.CANCEL,variant:ie.Secondary,onClick:U},...C?.option.testConnectionSupported&&!m?[{"data-id":"edit-destination-btn-test-connection",label:St.TEST_CONNECTION,variant:ie.Secondary,onClick:()=>k.current?.testConnection()}]:[],{"data-id":"edit-destination-btn-save",label:St.SAVE,variant:ie.Primary,onClick:G}]:[]},children:t(wt,{$padding:"4px 12px 12px",children:O?t(Qe,{$height:"50vh",children:t(at,{withSpinner:!0})}):T&&C?t(Ar,{ref:k,isEdit:!0,testConnection:u}):t(V,{$gap:16,children:e(xt,{bgTint:"1000",children:[e(xt,{bgTint:"900",children:[!m&&t(kt,{conditions:_.conditions||[]}),t(xt,{bgTint:"800",cellsPerRow:2,items:Fs(_)})]}),!!J.length&&t(xt,{bgTint:"900",richTitle:{title:"Configuration"},withCollapse:!0,collapseIsDefaultOpen:!0,children:J.map(e=>"cells"===e.kind?t(xt,{bgTint:"800",cellsPerRow:2,items:e.items},e.id):(e.kind,t(xt,{bgTint:"800",richTitle:{title:e.title},cellsPerRow:2,items:e.items},e.id)))})]})})})}),t(vl,{target:"destination",isOpen:E,onClose:()=>I(!1),onApprove:W}),t(yl,{isOpen:null!==R,onClose:()=>P(null),onApprove:H})]})},_s=(e,t)=>{const o=[{id:"type",title:Be.TYPE,label:t.label},{id:"status",title:Be.STATUS,badge:{status:e.disabled?pt.Unknown:we.Success,label:e.disabled?Be.DISABLED:Be.ENABLED}}];return e.ruleName&&o.push({id:"name",title:Be.NAME,label:e.ruleName}),e.profileName&&o.push({id:"profile",title:Be.MANAGED_BY_PROFILE,label:e.profileName}),e.notes&&o.push({id:"notes",title:Be.NOTES,label:e.notes}),o},zs=({onClose:i,ruleId:s,updateInstrumentationRule:c,deleteInstrumentationRule:d})=>{const u=f(),{instrumentationRules:p}=ct(),{addNotification:h}=Dt(),{selectedOption:g,loadRule:m,validateFormData:b,genericForm:v}=$l(),[y,C]=r(!1),[S,w]=r(!1),[x,k]=r(null),T=y&&!!v?.isFormDirty,$=a(()=>p?.find(e=>Ct(e)===s),[s,p]),E=a(()=>dt.find(({type:e})=>e===$?.type)??null,[$?.type]);n(()=>{$&&m($)},[$]);const I=l(()=>{if($){if(!$.mutable)return void h({type:we.Warning,title:Rt.FORBIDDEN,message:Rt.CANNOT_EDIT_RULE,crdType:ut.InstrumentationRule,target:$.ruleId,hideFromHistory:!0});C(!0)}},[$,h]),N=l(()=>{$&&(m($),C(!1))},[$,m]),A=l(()=>{T?k("close"):i()},[T,i]),O=l(()=>{T?k("cancel"):N()},[T,N]),D=l(()=>{const e=x;k(null),"close"===e?(N(),i()):N()},[x,N,i]),R=l(async()=>{if($){const{errorMessage:e,preparedFormData:t}=b();e||(await c($.ruleId,t),C(!1))}},[$,b,c]),P=l(()=>{if($){if(!$.mutable)return void h({type:we.Warning,title:Rt.FORBIDDEN,message:Rt.CANNOT_DELETE_RULE,crdType:ut.InstrumentationRule,target:$.ruleId,hideFromHistory:!0});w(!0)}},[$,h]),F=l(async()=>{$&&(await d($.ruleId),i())},[$,d,i]);if(!$||!E)return null;const L=((e,o)=>{const n=[];return e.payloadCollection&&Object.entries(e.payloadCollection).forEach(([e,o])=>{o&&n.push(t(Q,{size:te.XS,children:`• ${Ot(e).toLowerCase()}`},e))}),e.codeAttributes&&Object.entries(e.codeAttributes).forEach(([e,o])=>{o&&n.push(t(Q,{size:te.XS,children:`• ${Ot(e).toLowerCase()}`},e))}),e.headersCollection?.[Ne.HeaderKeys]?.length&&e.headersCollection[Ne.HeaderKeys].forEach(e=>{e&&n.push(t(Q,{size:te.XS,children:e},e))}),e.customInstrumentations&&(e.customInstrumentations[Re.Java]?.forEach((e,a)=>{const i=new De(e.className,e.methodName);if(i.Verify()){0===a&&n.push(t(Q,{size:te.XS,children:"Java Custom Probes:"},"java-custom-probes"));const e=i.toString();n.push(t(Q,{size:te.XXS,color:o.v2.colors.grey[200],children:`• ${e}`},e))}}),e.customInstrumentations[Re.Golang]?.forEach((e,a)=>{const i=new Oe(e.packageName,e.functionName,e.receiverName,e.receiverMethodName);if(i.Verify()){0===a&&n.push(t(Q,{size:te.XS,children:"Golang Custom Probes:"},"golang-custom-probes"));const e=i.toString();n.push(t(Q,{size:te.XXS,color:o.v2.colors.grey[200],children:`• ${e}`},e))}})),n})($,u);return e(o,{children:[t(q,{isOpen:!0,header:{icon:Ft($.type),title:E.label,onClose:A,actions:[{id:"edit-rule-btn-edit",label:St.EDIT,icon:pi,active:y,onClick:I},{id:"edit-rule-btn-delete",label:St.DELETE,icon:ii,color:u.v2.colors.red[500],active:S,onClick:P}]},footer:{actions:y?[{"data-id":"edit-rule-btn-cancel",label:St.CANCEL,variant:ie.Secondary,onClick:O},{"data-id":"edit-rule-btn-save",label:St.SAVE,variant:ie.Primary,onClick:R}]:[]},children:t(wt,{$padding:"4px 12px 12px",children:y&&g?t(zr,{}):t(V,{$gap:16,children:e(xt,{bgTint:"1000",children:[e(xt,{bgTint:"900",children:[t(kt,{conditions:$.conditions||[]}),t(xt,{bgTint:"800",cellsPerRow:2,items:_s($,E)})]}),t(rl,{readOnly:!0,scopes:$.sourceScopes??null}),!!L.length&&t(xt,{bgTint:"900",richTitle:{title:"Collect"},withCollapse:!0,collapseIsDefaultOpen:!0,children:t(xt,{bgTint:"800",children:L})}),!!E.supportedLanguages.length&&t(xt,{bgTint:"900",richTitle:{title:"Supported languages"},withCollapse:!0,collapseIsDefaultOpen:!0,children:t(xt,{bgTint:"800",children:t(oe,{$gap:12,$wrap:"wrap",children:E.supportedLanguages.map(e=>t(Pt,{label:Le[e],leftIcon:_e(e),flex:"0.5"},e))})})})]})})})}),t(vl,{target:"instrumentation rule",isOpen:S,onClose:()=>w(!1),onApprove:F}),t(yl,{isOpen:null!==x,onClose:()=>k(null),onApprove:D})]})};var Bs;!function(e){e.Overview="overview",e.Pods="pods",e.PeerSources="peer-sources",e.Profiling="profiling",e.Debug="debug"}(Bs||(Bs={}));const Ms=({collapseIsDefaultOpen:e,isJumpToTarget:o,onClickRestartPod:n,namespace:i,podName:l,nodeName:r,startTime:s,agentInjectedStatus:c,odigosHealthStatus:d,k8sHealthStatus:u,children:p})=>{const{formatDurationAgo:h}=Lt(),g=_t(!!o),m=a(()=>({title:l,icon:$i,withCopy:!0}),[l]),f=a(()=>{const e=[],t=zt(c);t&&e.push(t);const o=zt(d,Ei,"health");o&&e.push(o);const n=zt(u,Ii,"health");return n&&e.push(n),e},[c,d,u]),b=a(()=>n?[{id:`restart-pod-${l}`,icon:Ni,label:St.RESTART_POD,onClick:()=>n(i,l)}]:void 0,[n,i,l]),v=a(()=>[{id:"nodeName",title:Be.NODE,label:r,withCopy:!0},{id:"age",title:Be.AGE,label:s?h(s,{style:"short"}):Be.NOT_RUNNING,labelTooltip:s}],[r,s,h]);return t("div",{ref:g,children:t(xt,{bgTint:"900",richTitle:m,badges:f,dropDataActions:b,items:v,withCollapse:!0,collapseIsDefaultOpen:e,children:p})})},Xs=m.div`
191
+ `,Ns=({clusterId:o,namespaceName:n,checkbox:a,isFutureApps:i,selectedCounts:l,isActive:r,onActive:s,handleSourceChange:c})=>{const{isVm:d}=y(),u=e=>{s(),c({clusterId:o,workloadId:{namespace:n},auto:e.auto,selected:e.all})};return t(Es,{children:t(Qr,{dataId:`namespace-${n}`,withCarret:!0,title:n,isSelected:r,onClick:s,isPartiallyChecked:a.partial,isChecked:a.all,onCheckboxChange:e=>u({auto:e,all:e}),children:e(oe,{$gap:12,children:[!d&&t(Is,{$visible:r||i,children:t(Ie,{text:ws,children:t(K,{label:Ss,labelAlign:Y.Left,size:gt.S,value:i,onChange:e=>u({auto:e,all:e||void 0})})})}),e(oe,{$gap:8,children:[t(Q,{variant:mt.Span,size:te.XXXS,color:ee.Secondary,align:"right",children:Cs}),t(Fe,{label:`${l.sourced}/${l.total}`,status:r?we.Default:pt.Unknown,minWidth:"42px"})]})]})})})},As=({withCollapse:e,clusterId:o,clusterName:n,namespaces:i,selectedArea:l,setSelectedArea:r,handleSourceChange:s})=>{const c=a(()=>i.map(({name:e,totalWorkloads:a,selectedCount:i,isAllSourced:c,isSomeSourced:d,isFutureApps:u})=>t(Ns,{clusterId:o,namespaceName:e,isFutureApps:u,checkbox:{all:c||u,partial:d},selectedCounts:{sourced:i,total:a},isActive:l.clusterId===o&&l.namespaceName===e,onActive:()=>r({clusterId:o,clusterName:n,namespaceName:e}),handleSourceChange:s},`${o}#${e}`)),[o,n,i,l]);return e?t(as,{title:n,list:c,noBgColor:!0}):c},Os=({onClose:o,onBack:i,onNext:l,selectedConnectionIds:s,setSelectedConnectionIds:c,persistSources:d,getAllClusterSnapshots:u,fetchNamespacesWithWorkloads:p,withOverlay:h,disableAnimation:g})=>{const{isVm:m}=y(),f=gs(m),{selectedStreamName:b}=Me(),{progress:v,resetProgress:C}=ft(),{isFetching:S,setIsFetching:w,setSnapshots:x,formData:k,handleSourceChange:T,handleSelectAll:$,formDiff:E,isFormDirty:I}=Fl();n(()=>{let e=!1;w(!0);return(async()=>{try{if(u){const t=await u();!e&&t&&x(t)}else if(p){const t=await p();if(!e&&t.data?.length){const e={clusters:[{clusterId:yt,clusterName:vt,namespaces:t.data.map(e=>({name:e.name,selected:e.markedForInstrumentation&&e.dataStreamNames.includes(b),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(b)??!1)}))||[]}))}]};x(e)}}}catch(e){}finally{e||w(!1)}})(),()=>{e=!0}},[b]);const[N,A]=r(""),[O,D]=r(ut.Namespace),[R,P]=r({showOnlySelected:!1}),[F,L]=r({clusterId:"",clusterName:"",namespaceName:""}),_=(({isFetching:o,formData:n,handleSourceChange:i,handleSelectAll:l,selectedArea:r,setSelectedArea:s,searchText:c,searchBy:d,filters:u})=>{const{isVm:p}=y(),h=gs(p),g=a(()=>n.map(e=>{const t=[...e.namespaces].sort((e,t)=>e.name.localeCompare(t.name)).filter(e=>Rl(e,c,u)).map(e=>({name:e.name,totalWorkloads:e.workloads.length,...Pl(e)}));return{clusterId:e.clusterId,clusterName:e.clusterName,visibleNamespaces:t}}),[n,c,u]),m=a(()=>{let e=!1;for(const{visibleNamespaces:t}of g)for(const{totalWorkloads:o,selectedCount:n}of t)if(e=!0,n!==o)return!1;return e},[g]),{list:f,withFilterCount:b,filteredCount:v,totalCount:C}=a(()=>{const e=g.map(({clusterId:e,clusterName:o,visibleNamespaces:n})=>n.length?t(As,{withCollapse:g.length>1,clusterId:e,clusterName:o,namespaces:n,selectedArea:r,setSelectedArea:s,handleSourceChange:i},e):null),o=e.filter(e=>null!==e);return{list:o,withFilterCount:o.length!==e.length,filteredCount:o.length,totalCount:e.length}},[g,r]);return{width:"60%",header:e(oe,{$width:"100%",$gap:12,$justifyContent:"space-between",children:[e(oe,{$gap:8,children:[t(Q,{size:te.XS,nowrap:!0,children:h.groupColumnHeader}),t(Ie,{text:b?Be.FILTERED_COUNT_TOOLTIP:void 0,children:t(Fe,{label:`${b?`${v} / ${C}`:C}`,status:pt.Unknown})})]}),t(Q,{"data-id":"namespaces-select-all",onClick:()=>l({boolean:!m,searchText:c,searchBy:d,filters:u}),disabled:!f.length,size:te.XS,children:vs(m)})]}),list:f.length?f:o?[t(Qe,{$height:"100%",children:t(at,{title:h.fetchingGroups.title,subTitle:h.fetchingGroups.subTitle,withSpinner:!0})},"loading")]:[t(Qe,{$height:"100%",children:t(me,c?{icon:ki,title:ms,subTitle:h.noGroupMatchedFilter(c)}:{icon:ki,title:h.noGroups.title,subTitle:h.noGroups.subTitle})},"no-data")]}})({isFetching:S,formData:k,handleSourceChange:T,handleSelectAll:$,selectedArea:F,setSelectedArea:L,searchText:O===ut.Namespace?N:"",searchBy:O,filters:R}),z=(({formData:o,handleSourceChange:n,handleSelectAll:i,selectedArea:l,searchText:r,searchBy:s,filters:c})=>{const{tier:d,isVm:u}=y(),p=gs(u),h=d===ht.Onprem,g=a(()=>l.value.namespaceName?o.find(({clusterId:e})=>e===l.value.clusterId)?.namespaces.find(({name:e})=>e===l.value.namespaceName):void 0,[o,l.value.clusterId,l.value.namespaceName]),m=a(()=>g?[...g.workloads].sort((e,t)=>e.name.localeCompare(t.name)).filter(e=>Ol(e,r,c)):[],[g,r,c]),f=a(()=>!!m.length&&m.every(({selected:e})=>e),[m]),b=a(()=>{if(!g)return[];const{clusterId:e}=l.value,{name:o}=g;return m.map(({name:a,selected:i,kind:l})=>{const r=!u&&!h&&Dl.has(l);return t($s,{workloadName:a,workloadKind:l,isChecked:!r&&(i||!1),onToggle:()=>n({clusterId:e,workloadId:{namespace:o,name:a,kind:l}}),disabled:r,disabledReason:xs},`${e}#${o}#${a}#${l}`)})},[m,g,l.value.clusterId]),{withFilterCount:v,filteredCount:C,totalCount:S}=a(()=>{const e=g?.workloads.length??0;return{withFilterCount:m.length!==e,filteredCount:m.length,totalCount:e}},[m,g]);return{width:"40%",header:e(oe,{$width:"100%",$gap:12,$justifyContent:"space-between",children:[e(oe,{$gap:8,children:[t(Q,{size:te.XS,nowrap:!0,children:l.value.namespaceName?`${l.value.namespaceName} > ${p.itemColumnHeader}`:p.itemColumnHeader}),t(Ie,{text:v?Be.FILTERED_COUNT_TOOLTIP:void 0,children:t(Fe,{label:`${v?`${C} / ${S}`:S}`,status:pt.Unknown})})]}),t(Q,{"data-id":"workloads-select-all",onClick:()=>i({clusterId:l.value.clusterId,namespaceName:l.value.namespaceName,boolean:!f,searchText:r,searchBy:s,filters:c}),disabled:!b.length,size:te.XS,children:vs(f)})]}),list:b.length?b:[t(Qe,{$height:"100%",children:t(me,g?r?{icon:xi,title:ms,subTitle:bs(r)}:{icon:xi,title:fs,subTitle:p.noItemsInGroupSubTitle}:{icon:xi,title:p.selectGroupPrompt.title,subTitle:p.selectGroupPrompt.subTitle})},"no-data")]}})({formData:k,handleSourceChange:T,handleSelectAll:$,selectedArea:{value:F},searchText:O===ut.Source?N:"",searchBy:O,filters:R});return t(bl,{isOpen:!0,withOverlay:h,disableAnimation:g,onClose:o?()=>{C(bt.BulkInstrumenting),o()}:void 0,onBack:i?()=>i(E):void 0,onNext:l?()=>l(E):void 0,nextIsSkip:!I,onSave:()=>d(E),header:{icon:xi,title:Be.ADD_SOURCE,subTitle:Be.ADD_SOURCES_DESCRIPTION},connectionIds:s&&c?{value:s,setValue:c}:void 0,search:{value:N,onChange:e=>{A(e),O===ut.Namespace&&L({clusterId:"",clusterName:"",namespaceName:""})},placeholder:f.searchPlaceholder(O),segment:{options:[{label:f.groupSegmentLabel,value:ut.Namespace},{label:f.itemSegmentLabel,value:ut.Source}],selected:O,setSelected:D}},filters:e(oe,{$gap:8,children:[t(Q,{size:te.XXXS,color:ee.Secondary,nowrap:!0,children:ys}),t(K,{name:"filter-selected",size:gt.S,label:Cs,value:R.showOnlySelected,onChange:e=>P(t=>({...t,showOnlySelected:e}))})]}),isFormDirty:I,isFetching:S,progress:{title:Be.CREATING_SOURCES,subTitle:Be.CREATING_SOURCES_SUBTITLE,percentage:v[bt.BulkInstrumenting]?.percentage||0},leftColumn:_,rightColumn:z})},Ds=(e,t)=>{const o=[{id:"type",title:Be.TYPE,label:t.label},{id:"status",title:Be.STATUS,badge:{status:e.disabled?pt.Unknown:we.Success,label:e.disabled?Be.DISABLED:Be.ENABLED}}],n=e.signals?.map(e=>{let t=e.toLowerCase();return t=`${t.charAt(0).toUpperCase()}${t.slice(1)}`,t}).join(", ");return n&&o.push({id:"signals",title:Be.SIGNALS_FOR_PROCESSING,label:n}),e.name&&o.push({id:"name",title:Be.NAME,label:e.name}),e.notes&&o.push({id:"notes",title:Be.NOTES,label:e.notes}),o},Rs=({onClose:i,actionId:s,updateAction:c,deleteAction:d})=>{const u=f(),{actions:p}=ct(),{selectedOption:h,loadAction:g,validateFormData:m,genericForm:b}=kl(),[v,y]=r(!1),[C,S]=r(!1),[w,x]=r(null),k=v&&!!b?.isFormDirty,T=a(()=>p?.find(e=>Ct(e)===s),[s,p]),$=a(()=>Ze.find(({type:e})=>e===T?.type)??null,[T?.type]);n(()=>{T&&g(T)},[T]);const E=l(()=>{T&&y(!0)},[T]),I=l(()=>{T&&(g(T),y(!1))},[T,g]),N=l(()=>{k?x("close"):i()},[k,i]),A=l(()=>{k?x("cancel"):I()},[k,I]),O=l(()=>{const e=w;x(null),"close"===e?(I(),i()):I()},[w,I,i]),D=l(async()=>{if(T){const{errorMessage:e,preparedFormData:t}=m();e||(await c(T.id,t),y(!1))}},[T,m,c]),R=l(()=>{T&&S(!0)},[T]),P=l(async()=>{T&&(await d(T.id,T.type),i())},[T,d,i]);if(!T||!$)return null;const F=(e=>{const t=[],{type:o,fields:n}=e,a=e=>({status:e?we.Success:pt.Unknown,label:e?"True":"False",invertColors:!0});if(o===ge.K8sAttributes&&(t.push({id:"collectContainerAttributes",title:"Collect Container Attributes",badge:a(n.collectContainerAttributes)}),t.push({id:"collectReplicaSetAttributes",title:"Collect ReplicaSet Attributes",badge:a(n.collectReplicaSetAttributes)}),t.push({id:"collectWorkloadId",title:"Collect Workload ID",badge:a(n.collectWorkloadId)}),t.push({id:"collectClusterId",title:"Collect Cluster ID",badge:a(n.collectClusterId)}),n.labelsAttributes?.forEach(({labelKey:e,attributeKey:o,from:a,fromSources:i},l)=>{const r=i?.length?i.join(", "):a||W.Pod,s=(n.labelsAttributes?.length??0)>1?`Label #${l+1} `:"Label ";t.push({id:`label-${l}-key`,title:`${s}Key`,label:e}),t.push({id:`label-${l}-attr`,title:`${s}Attribute Key`,label:o}),t.push({id:`label-${l}-from`,title:`${s}From`,label:r})}),n.annotationsAttributes?.forEach(({annotationKey:e,attributeKey:o,from:a,fromSources:i},l)=>{const r=i?.length?i.join(", "):a||W.Pod,s=(n.annotationsAttributes?.length??0)>1?`Annotation #${l+1} `:"Annotation ";t.push({id:`annotation-${l}-key`,title:`${s}Key`,label:e}),t.push({id:`annotation-${l}-attr`,title:`${s}Attribute Key`,label:o}),t.push({id:`annotation-${l}-from`,title:`${s}From`,label:r})})),o===ge.AddClusterInfo&&(t.push({id:"overwriteExistingValues",title:"Overwrite Existing Values",badge:a(n.overwriteExistingValues)}),n.clusterAttributes?.forEach(({attributeName:e,attributeStringValue:o},n)=>{t.push({id:`cluster-attr-${n}`,title:e,label:o})})),o===ge.DeleteAttributes&&n.attributeNamesToDelete?.forEach((e,o)=>{t.push({id:`del-attr-${o}`,title:"Attribute"+((n.attributeNamesToDelete?.length??0)>1?` #${o+1}`:""),label:e})}),o===ge.RenameAttributes&&Object.entries(n.renames||{}).forEach(([e,o],n)=>{t.push({id:`rename-${n}`,title:e,label:o})}),o===ge.PiiMasking&&n.piiCategories?.forEach((e,o)=>{t.push({id:`pii-${o}`,title:"Category"+((n.piiCategories?.length??0)>1?` #${o+1}`:""),label:e})}),o===ge.ExtractAttribute){const e=n.extractAttribute?.extractions??[];e.forEach(({targetAttributeName:o,lookupKey:n,dataFormat:a,regex:i},l)=>{const r=e.length>1?`Extraction #${l+1} `:"Extraction ";t.push({id:`extract-${l}-target`,title:`${r}New Attribute Name`,label:o||"-"}),n&&t.push({id:`extract-${l}-lookupKey`,title:`${r}Lookup Key`,label:n}),a&&t.push({id:`extract-${l}-format`,title:`${r}Data Format`,label:a}),i&&t.push({id:`extract-${l}-regex`,title:`${r}Regex`,label:i})})}return o===ge.URLTemplatization&&n.urlTemplatizationRulesGroups?.forEach((e,o)=>{const a=(n.urlTemplatizationRulesGroups?.length??0)>1?`Group #${o+1} `:"Group ";e.filterK8sNamespace&&t.push({id:`group-${o}-ns`,title:`${a}Namespace`,label:e.filterK8sNamespace}),e.workloadFilters?.forEach((n,i)=>{const l=[n.kind,n.name].filter(Boolean).join("/");l&&t.push({id:`group-${o}-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-${o}-templates`,title:`${a}Templates`,label:i}),e.notes&&t.push({id:`group-${o}-notes`,title:`${a}Notes`,label:e.notes})}),t})(T);return e(o,{children:[t(q,{isOpen:!0,header:{icon:Tt(T.type),title:$.label,onClose:N,actions:[{id:"edit-action-btn-edit",label:St.EDIT,icon:pi,active:v,onClick:E},{id:"edit-action-btn-delete",label:St.DELETE,icon:ii,color:u.v2.colors.red[500],active:C,onClick:R}]},footer:{actions:v?[{"data-id":"edit-action-btn-cancel",label:St.CANCEL,variant:ie.Secondary,onClick:A},{"data-id":"edit-action-btn-save",label:St.SAVE,variant:ie.Primary,onClick:D}]:[]},children:t(wt,{$padding:"4px 12px 12px",children:v&&h?t(Er,{}):t(V,{$gap:16,children:e(xt,{bgTint:"1000",children:[e(xt,{bgTint:"900",children:[t(kt,{conditions:T.conditions||[]}),t(xt,{bgTint:"800",cellsPerRow:2,items:Ds(T,$)})]}),!!F?.length&&t(xt,{bgTint:"900",richTitle:{title:"Configuration"},withCollapse:!0,collapseIsDefaultOpen:!0,children:t(xt,{bgTint:"800",cellsPerRow:2,items:F})})]})})})}),t(vl,{target:"action",isOpen:C,onClose:()=>S(!1),onApprove:P}),t(yl,{isOpen:null!==w,onClose:()=>x(null),onApprove:O})]})},Ps=({onClose:o,connections:i,selectedConnectionIds:l,setSelectedConnectionIds:s,getEffectiveConfig:c,onApply:d})=>{const[u,p]=r(""),[h,g]=r({showOnlySelected:!1}),m=a(()=>i.filter(e=>{const t=!u||e.name.toLowerCase().includes(u.toLowerCase()),o=!h.showOnlySelected||h.showOnlySelected&&l.includes(e.id);return t&&o}),[i.length,l.length,u,h]),f=e=>{s(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[b,v]=r(!1),[y,C]=r(void 0),{formData:S,handleFormChange:w,areFormValuesEqual:x,resetFormData:k}=$t(y||{rollout:{automaticRolloutDisabled:!1}}),T=a(()=>l.length>1||void 0!==y&&!x(y,S),[l.length,y,S]);return n(()=>{1===l.length?(async e=>{if(b)return;v(!0);const t=await c(e);if(t){const e={rollout:{automaticRolloutDisabled:t.rollout?.automaticRolloutDisabled??!1}};C(e),k(e)}v(!1)})(l[0]):C(void 0)},[l.length]),t(bl,{isOpen:!0,onClose:o,onSave:()=>d(S,l),header:{icon:Ti,title:"Cluster Configuration"},connectionIds:{value:l,setValue:s},search:{placeholder:"Search by cluster name",value:u,onChange:p},filters:e(oe,{$gap:8,children:[t(Q,{size:te.XXXS,color:ee.Secondary,nowrap:!0,children:"Show only:"}),t(K,{size:gt.S,label:"Selected",value:h.showOnlySelected,onChange:e=>g(t=>({...t,showOnlySelected:e}))})]}),isFormDirty:T,isFetching:b,leftColumn:{width:"35%",header:e(oe,{$width:"100%",$gap:12,$justifyContent:"space-between",children:[e(oe,{$gap:8,children:[t(Q,{size:te.XS,children:"Clusters"}),t(Fe,{label:m.length,status:pt.Unknown})]}),e(oe,{$gap:8,children:[t(Q,{size:te.XXXS,color:ee.Secondary,align:"right",children:"Selected clusters"}),t(Fe,{label:`${l.length}/${m.length}`,status:pt.Unknown})]})]}),list:m.map(e=>t(Qr,{title:e.name,isChecked:l.includes(e.id),onClick:()=>f(e.id),onCheckboxChange:()=>f(e.id)},e.id))},rightColumn:{width:"65%",header:t(Q,{size:te.XS,children:"Configurations"}),list:[t(K,{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")]}})},Fs=e=>{const t=[{id:"type",title:Be.TYPE,label:e.destinationType.displayName},{id:"status",title:Be.STATUS,badge:{status:e.disabled?pt.Unknown:we.Success,label:e.disabled?Be.DISABLED:Be.ENABLED}}],o=ke(e.exportedSignals).map(e=>{let t=e.toLowerCase();return t=`${t.charAt(0).toUpperCase()}${t.slice(1)}`,t}).join(", ");return o&&t.push({id:"monitors",title:Be.MONITORS,label:o}),e.name&&t.push({id:"name",title:Be.NAME,label:e.name}),t},Ls=({onClose:s,destinationId:c,getDestinationCategories:d,testConnection:u,updateDestination:p,deleteDestination:h})=>{const g=f(),{isVm:m}=y(),{destinations:b}=ct(),{selectedStreamName:v}=Me(),{activeForm:C,loadDestination:S,validateFormData:w,genericForm:x}=Tl(),k=i(null),[T,$]=r(!1),[E,I]=r(!1),[N,A]=r(null),[O,D]=r(!0),[R,P]=r(null),F=T&&!!x?.isFormDirty,L=a(()=>Nt(b,v),[b,v]),_=a(()=>L?.find(e=>Ct(e)===c),[c,L]);n(()=>{let e=!1;return D(!0),d().then(t=>{e||A(t?.destinationCategories.categories??[])}).catch(t=>{e||A([])}).finally(()=>{e||D(!1)}),()=>{e=!0}},[]),n(()=>{_&&N&&S(_,N)},[_,N]);const z=a(()=>_&&N?At(N,_):[],[_,N]),B=l(()=>{_&&$(!0)},[_]),M=l(()=>{_&&N&&(S(_,N),$(!1))},[_,N,S]),X=l(()=>{F?P("close"):s()},[F,s]),U=l(()=>{F?P("cancel"):M()},[F,M]),H=l(()=>{const e=R;P(null),"close"===e?(M(),s()):M()},[R,M,s]),G=l(async()=>{if(_){const{errorMessage:e,preparedFormData:t}=w();e||(await p(_.id,$e(t)),$(!1))}},[_,w,p]),j=l(()=>{_&&I(!0)},[_]),W=l(async()=>{_&&(await h(_.id),s())},[_,h,s]);if(!_)return null;const{icon:K,iconSrc:Y}=lt(_.destinationType.type),J=((e,t)=>{const o=[],n=Et(e,t),a=n.map(e=>({name:e.key,value:e.value})),i=ke(e.exportedSignals);let l=[];const r=()=>{l.length&&(o.push({kind:"cells",id:`cells-${o.length}`,items:l}),l=[])};return n.forEach(({key:e,name:n,value:s})=>{const c=t.find(t=>t.name===e),{secret:d,componentType:u,componentProperties:p,hideFromReadData:h,customReadDataLabels:g}=c||{};if(h?.length&&Ce(h,i,a))return;const{type:m}=st(p,{type:""}),f=d||"password"===m;if(g?.length)g.forEach(({condition:t,...o},n)=>{t==s&&l.push({id:`${e}-custom-${n}`,title:o.title,label:o.value})});else if(s)if(f)l.push({id:e,title:n,label:new Array(10).fill("•").join("")});else{if(u===It.MultiInput){const t=st(s,null);if(Array.isArray(t)&&t.length)return r(),void o.push({kind:"list",id:e,title:n,items:t.map((t,o)=>({id:`${e}-${o}`,label:String(t)}))})}if(u===It.KeyValuePair){const t=st(s,null);if(Array.isArray(t)&&t.length)return r(),void o.push({kind:"pairs",id:e,title:n,items:t.map((t,o)=>{const n=t&&"object"==typeof t?t:{};return{id:`${e}-${o}`,title:null!=n.key?String(n.key):"",label:null!=n.value?String(n.value):""}})})}l.push({id:e,title:n,label:s})}else l.push({id:e,title:n,label:"-"})}),r(),o})(_,z);return e(o,{children:[t(q,{isOpen:!0,header:{icon:K,iconSrc:Y,title:_.name||_.destinationType.displayName,onClose:X,actions:[{id:"edit-destination-btn-edit",label:St.EDIT,icon:pi,active:T,onClick:B},{id:"edit-destination-btn-delete",label:St.DELETE,icon:ii,color:g.v2.colors.red[500],active:E,onClick:j}]},footer:{actions:T?[{"data-id":"edit-destination-btn-cancel",label:St.CANCEL,variant:ie.Secondary,onClick:U},...C?.option.testConnectionSupported&&!m?[{"data-id":"edit-destination-btn-test-connection",label:St.TEST_CONNECTION,variant:ie.Secondary,onClick:()=>k.current?.testConnection()}]:[],{"data-id":"edit-destination-btn-save",label:St.SAVE,variant:ie.Primary,onClick:G}]:[]},children:t(wt,{$padding:"4px 12px 12px",children:O?t(Qe,{$height:"50vh",children:t(at,{withSpinner:!0})}):T&&C?t(Ar,{ref:k,isEdit:!0,testConnection:u}):t(V,{$gap:16,children:e(xt,{bgTint:"1000",children:[e(xt,{bgTint:"900",children:[!m&&t(kt,{conditions:_.conditions||[]}),t(xt,{bgTint:"800",cellsPerRow:2,items:Fs(_)})]}),!!J.length&&t(xt,{bgTint:"900",richTitle:{title:"Configuration"},withCollapse:!0,collapseIsDefaultOpen:!0,children:J.map(e=>"cells"===e.kind?t(xt,{bgTint:"800",cellsPerRow:2,items:e.items},e.id):(e.kind,t(xt,{bgTint:"800",richTitle:{title:e.title},cellsPerRow:2,items:e.items},e.id)))})]})})})}),t(vl,{target:"destination",isOpen:E,onClose:()=>I(!1),onApprove:W}),t(yl,{isOpen:null!==R,onClose:()=>P(null),onApprove:H})]})},_s=(e,t)=>{const o=[{id:"type",title:Be.TYPE,label:t.label},{id:"status",title:Be.STATUS,badge:{status:e.disabled?pt.Unknown:we.Success,label:e.disabled?Be.DISABLED:Be.ENABLED}}];return e.ruleName&&o.push({id:"name",title:Be.NAME,label:e.ruleName}),e.profileName&&o.push({id:"profile",title:Be.MANAGED_BY_PROFILE,label:e.profileName}),e.notes&&o.push({id:"notes",title:Be.NOTES,label:e.notes}),o},zs=({onClose:i,ruleId:s,updateInstrumentationRule:c,deleteInstrumentationRule:d})=>{const u=f(),{instrumentationRules:p}=ct(),{addNotification:h}=Dt(),{selectedOption:g,loadRule:m,validateFormData:b,genericForm:v}=$l(),[y,C]=r(!1),[S,w]=r(!1),[x,k]=r(null),T=y&&!!v?.isFormDirty,$=a(()=>p?.find(e=>Ct(e)===s),[s,p]),E=a(()=>dt.find(({type:e})=>e===$?.type)??null,[$?.type]);n(()=>{$&&m($)},[$]);const I=l(()=>{if($){if(!$.mutable)return void h({type:we.Warning,title:Rt.FORBIDDEN,message:Rt.CANNOT_EDIT_RULE,crdType:ut.InstrumentationRule,target:$.ruleId,hideFromHistory:!0});C(!0)}},[$,h]),N=l(()=>{$&&(m($),C(!1))},[$,m]),A=l(()=>{T?k("close"):i()},[T,i]),O=l(()=>{T?k("cancel"):N()},[T,N]),D=l(()=>{const e=x;k(null),"close"===e?(N(),i()):N()},[x,N,i]),R=l(async()=>{if($){const{errorMessage:e,preparedFormData:t}=b();e||(await c($.ruleId,t),C(!1))}},[$,b,c]),P=l(()=>{if($){if(!$.mutable)return void h({type:we.Warning,title:Rt.FORBIDDEN,message:Rt.CANNOT_DELETE_RULE,crdType:ut.InstrumentationRule,target:$.ruleId,hideFromHistory:!0});w(!0)}},[$,h]),F=l(async()=>{$&&(await d($.ruleId),i())},[$,d,i]);if(!$||!E)return null;const L=((e,o)=>{const n=[];return e.payloadCollection&&Object.entries(e.payloadCollection).forEach(([e,o])=>{o&&n.push(t(Q,{size:te.XS,children:`• ${Ot(e).toLowerCase()}`},e))}),e.codeAttributes&&Object.entries(e.codeAttributes).forEach(([e,o])=>{o&&n.push(t(Q,{size:te.XS,children:`• ${Ot(e).toLowerCase()}`},e))}),e.headersCollection?.[Ne.HeaderKeys]?.length&&e.headersCollection[Ne.HeaderKeys].forEach(e=>{e&&n.push(t(Q,{size:te.XS,children:e},e))}),e.customInstrumentations&&(e.customInstrumentations[Re.Java]?.forEach((e,a)=>{const i=new De(e.className,e.methodName);if(i.Verify()){0===a&&n.push(t(Q,{size:te.XS,children:"Java Custom Probes:"},"java-custom-probes"));const e=i.toString();n.push(t(Q,{size:te.XXS,color:o.v2.colors.grey[200],children:`• ${e}`},e))}}),e.customInstrumentations[Re.Golang]?.forEach((e,a)=>{const i=new Oe(e.packageName,e.functionName,e.receiverName,e.receiverMethodName);if(i.Verify()){0===a&&n.push(t(Q,{size:te.XS,children:"Golang Custom Probes:"},"golang-custom-probes"));const e=i.toString();n.push(t(Q,{size:te.XXS,color:o.v2.colors.grey[200],children:`• ${e}`},e))}})),n})($,u);return e(o,{children:[t(q,{isOpen:!0,header:{icon:Ft($.type),title:E.label,onClose:A,actions:[{id:"edit-rule-btn-edit",label:St.EDIT,icon:pi,active:y,onClick:I},{id:"edit-rule-btn-delete",label:St.DELETE,icon:ii,color:u.v2.colors.red[500],active:S,onClick:P}]},footer:{actions:y?[{"data-id":"edit-rule-btn-cancel",label:St.CANCEL,variant:ie.Secondary,onClick:O},{"data-id":"edit-rule-btn-save",label:St.SAVE,variant:ie.Primary,onClick:R}]:[]},children:t(wt,{$padding:"4px 12px 12px",children:y&&g?t(zr,{}):t(V,{$gap:16,children:e(xt,{bgTint:"1000",children:[e(xt,{bgTint:"900",children:[t(kt,{conditions:$.conditions||[]}),t(xt,{bgTint:"800",cellsPerRow:2,items:_s($,E)})]}),t(rl,{readOnly:!0,scopes:$.sourceScopes??null}),!!L.length&&t(xt,{bgTint:"900",richTitle:{title:"Collect"},withCollapse:!0,collapseIsDefaultOpen:!0,children:t(xt,{bgTint:"800",children:L})}),!!E.supportedLanguages.length&&t(xt,{bgTint:"900",richTitle:{title:"Supported languages"},withCollapse:!0,collapseIsDefaultOpen:!0,children:t(xt,{bgTint:"800",children:t(oe,{$gap:12,$wrap:"wrap",children:E.supportedLanguages.map(e=>t(Pt,{label:Le[e],leftIcon:_e(e),flex:"0.5"},e))})})})]})})})}),t(vl,{target:"instrumentation rule",isOpen:S,onClose:()=>w(!1),onApprove:F}),t(yl,{isOpen:null!==x,onClose:()=>k(null),onApprove:D})]})};var Bs;!function(e){e.Overview="overview",e.Pods="pods",e.PeerSources="peer-sources",e.Profiling="profiling",e.Debug="debug"}(Bs||(Bs={}));const Ms=({collapseIsDefaultOpen:e,isJumpToTarget:o,onClickRestartPod:n,namespace:i,podName:l,nodeName:r,startTime:s,agentInjectedStatus:c,odigosHealthStatus:d,k8sHealthStatus:u,children:p})=>{const{formatDurationAgo:h}=Lt(),g=_t(!!o),m=a(()=>({title:l,icon:$i,withCopy:!0}),[l]),f=a(()=>{const e=[],t=zt(c);t&&e.push(t);const o=zt(d,Ei,"health");o&&e.push(o);const n=zt(u,Ii,"health");return n&&e.push(n),e},[c,d,u]),b=a(()=>n?[{id:`restart-pod-${l}`,icon:Ni,label:St.RESTART_POD,onClick:()=>n(i,l)}]:void 0,[n,i,l]),v=a(()=>[{id:"nodeName",title:Be.NODE,label:r,withCopy:!0},{id:"age",title:Be.AGE,label:s?h(s,{style:"short"}):Be.NOT_RUNNING,labelTooltip:s}],[r,s,h]);return t("div",{ref:g,children:t(xt,{bgTint:"900",richTitle:m,badges:f,dropDataActions:b,items:v,withCollapse:!0,collapseIsDefaultOpen:e,children:p})})},Xs=m.div`
192
192
  display: flex;
193
193
  align-items: center;
194
194
  justify-content: space-between;
@@ -281,7 +281,7 @@ import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useEffect
281
281
  border-radius: 8px;
282
282
  background-color: ${({theme:e,$isExpanded:t})=>t?e.v2.colors.silver[800]:"transparent"};
283
283
  padding-bottom: ${({$isExpanded:e})=>e?"12px":"0"};
284
- `,Dc=({pod:o})=>{const[n,i]=r(!1),{jumpToPod:l}=lc(),s=o.containers??[],c=s.length>0,d=a(()=>{const e=[],t=zt(o.agentInjectedStatus);t&&e.push(t);const n=zt(o.odigosHealthStatus,Ei,"health");n&&e.push(n);const a=zt(o.k8sHealthStatus,Ii,"health");return a&&e.push(a),e},[o.k8sHealthStatus,o.odigosHealthStatus,o.agentInjectedStatus]);return e(Oc,{$isExpanded:n,children:[t($c,{chevron:c?n?yi:mi:void 0,onClick:c?()=>i(e=>!e):void 0,label:Be.POD,name:o.podName,paddingLeft:Ws+(c?0:24),action:{icon:Li,onClick:()=>l(o),tooltip:Be.OPEN_IN_POD_TAB},badges:d}),n&&c&&t(V,{$gap:0,$padding:`0 ${Gs}px`,children:s.map(e=>t(Ac,{pod:o,container:e},`pod-${o.podName}-container-${e.containerName}`))})]})},Rc=({pods:e})=>e?.length?t(V,{$gap:4,children:e.map(e=>t(Dc,{pod:e},`pod-${e.podName}`))}):t(Qe,{children:t(me,{title:Be.NO_RUNNING_PODS,subTitle:Be.NO_RUNNING_PODS_SUBTITLE})}),Pc=({source:o})=>t(xt,{bgTint:"1000",richTitle:{title:Be.PODS,badge:{label:o.pods?.length||0}},withCollapse:!0,collapseIsDefaultOpen:!0,children:e(xt,{bgTint:"900",children:[t(Vs,{podsOdigosHealthStatus:o.podsOdigosHealthStatus,pods:o.pods,noPadding:!0}),t(Rc,{pods:o.pods})]})}),Fc=({source:e})=>{const o=a(()=>e.workloadOdigosHealthStatus?{status:e.workloadOdigosHealthStatus.status?lo(e.workloadOdigosHealthStatus.status):pt.Unknown,title:Ot(e.workloadOdigosHealthStatus.reasonEnum),subTitle:e.workloadOdigosHealthStatus.message}:null,[e]);return o?t(Mt,{...o,width:"calc(100% - 32px)"}):null},Lc="calc(50% - 6px)",_c=({source:o,onClickRollout:n,onClickRollback:i})=>{const l=a(()=>{const{status:e,reasonEnum:t,message:a}=o.conditions?.rollout||{},i=Xt(e);if(!i)return null;return{status:i,title:t?.toLowerCase().includes("rollout")?Ot(t):`${Be.ROLLOUT} ${Ot(t)}`,subTitle:a,action:i!==we.Success?{icon:Ni,tooltip:Be.ROLLOUT_RESTART,onClick:n}:void 0}},[o]),r=a(()=>{const{status:e,reasonEnum:t,message:n}=o.autoRollback?.autoRollbackStatus||{},a=Xt(e);if(!a)return null;return{status:a,title:t?.toLowerCase().includes("rollback")?Ot(t):`${Be.ROLLBACK} ${Ot(t)}`,subTitle:n,action:a!==we.Success?{icon:Ni,tooltip:Be.ROLLBACK_RECOVER,onClick:i}:void 0}},[o]);return l||r?t(xt,{bgTint:"1000",children:e(oe,{$gap:12,$alignItems:"stretch",children:[l&&t(Mt,{invertColors:!0,slim:!0,width:r?Lc:"100%",...l}),r&&t(Mt,{invertColors:!0,slim:!0,width:Lc,...r})]})}):null},zc=p(null),Bc=m.div`
284
+ `,Dc=({pod:o})=>{const[n,i]=r(!1),{jumpToPod:l}=lc(),s=o.containers??[],c=s.length>0,d=a(()=>{const e=[],t=zt(o.agentInjectedStatus);t&&e.push(t);const n=zt(o.odigosHealthStatus,Ei,"health");n&&e.push(n);const a=zt(o.k8sHealthStatus,Ii,"health");return a&&e.push(a),e},[o.k8sHealthStatus,o.odigosHealthStatus,o.agentInjectedStatus]);return e(Oc,{$isExpanded:n,children:[t($c,{chevron:c?n?yi:mi:void 0,onClick:c?()=>i(e=>!e):void 0,label:Be.POD,name:o.podName,paddingLeft:Ws+(c?0:24),action:{icon:Li,onClick:()=>l(o),tooltip:Be.OPEN_IN_POD_TAB},badges:d}),n&&c&&t(V,{$gap:0,$padding:`0 ${Gs}px`,children:s.map(e=>t(Ac,{pod:o,container:e},`pod-${o.podName}-container-${e.containerName}`))})]})},Rc=({pods:e})=>e?.length?t(V,{$gap:4,children:e.map(e=>t(Dc,{pod:e},`pod-${e.podName}`))}):t(Qe,{children:t(me,{title:Be.NO_RUNNING_PODS,subTitle:Be.NO_RUNNING_PODS_SUBTITLE})}),Pc=({source:o})=>t(xt,{bgTint:"1000",richTitle:{title:Be.PODS,badge:{label:o.pods?.length||0}},withCollapse:!0,collapseIsDefaultOpen:!0,children:e(xt,{bgTint:"900",children:[t(Vs,{podsOdigosHealthStatus:o.podsOdigosHealthStatus,pods:o.pods,noPadding:!0}),t(Rc,{pods:o.pods})]})}),Fc=({source:e})=>{const o=a(()=>e.workloadOdigosHealthStatus?{status:e.workloadOdigosHealthStatus.status?lo(e.workloadOdigosHealthStatus.status):pt.Unknown,title:Ot(e.workloadOdigosHealthStatus.reasonEnum),subTitle:e.workloadOdigosHealthStatus.message}:null,[e]);return o?t(Mt,{...o,width:"100%"}):null},Lc="calc(50% - 6px)",_c=({source:o,onClickRollout:n,onClickRollback:i})=>{const l=a(()=>{const{status:e,reasonEnum:t,message:a}=o.conditions?.rollout||{},i=Xt(e);if(!i)return null;return{status:i,title:t?.toLowerCase().includes("rollout")?Ot(t):`${Be.ROLLOUT} ${Ot(t)}`,subTitle:a,action:i!==we.Success?{icon:Ni,tooltip:Be.ROLLOUT_RESTART,onClick:n}:void 0}},[o]),r=a(()=>{const{status:e,reasonEnum:t,message:n}=o.autoRollback?.autoRollbackStatus||{},a=Xt(e);if(!a)return null;return{status:a,title:t?.toLowerCase().includes("rollback")?Ot(t):`${Be.ROLLBACK} ${Ot(t)}`,subTitle:n,action:a!==we.Success?{icon:Ni,tooltip:Be.ROLLBACK_RECOVER,onClick:i}:void 0}},[o]);return l||r?t(xt,{bgTint:"1000",children:e(oe,{$gap:12,$alignItems:"stretch",children:[l&&t(Mt,{invertColors:!0,slim:!0,width:r?Lc:"100%",...l}),r&&t(Mt,{invertColors:!0,slim:!0,width:Lc,...r})]})}):null},zc=p(null),Bc=m.div`
285
285
  position: relative;
286
286
  `,Mc=({children:e})=>{const o=i(null);return t(Bc,{ref:o,children:t(zc.Provider,{value:o,children:e})})},Xc=m.div`
287
287
  position: fixed;
@@ -407,7 +407,7 @@ import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useEffect
407
407
  gap: 8px;
408
408
  padding: 4px 8px;
409
409
  border-radius: 8px;
410
- width: calc(100% - 16px);
410
+ width: 100%;
411
411
  `,du=m.div`
412
412
  white-space: pre;
413
413
  overflow-x: auto;
@@ -463,7 +463,7 @@ import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useEffect
463
463
  margin-top: 6px;
464
464
  }
465
465
  `,ku=({items:e,color:o})=>{const n=f(),a=o||n.v2.colors.silver[200];return t(wu,{children:e.map((e,o)=>t(xu,{style:{color:a},children:t(Q,{size:te.XXS,color:a,children:e})},o))})},Tu=({items:o})=>{const n=f();return t(V,{$gap:16,children:o.map((o,a)=>e(oe,{$gap:8,$alignItems:"flex-start",children:[e(Q,{size:te.XS,color:n.v2.colors.silver[200],weight:400,children:[a+1,"."]}),e(V,{$gap:2,children:[t(Q,{size:te.XS,color:n.v2.colors.white[500],weight:500,children:o.title}),t(Q,{size:te.XS,color:n.v2.colors.silver[200],children:o.description})]})]},a))})},$u=({message:e})=>t(Se,{status:we.Default,message:e,fullWidth:!0,smallIcon:!0}),Eu=m.div`
466
- width: calc(100% - 16px);
466
+ width: 100%;
467
467
  padding: 8px;
468
468
  display: flex;
469
469
  flex-direction: column;
@@ -476,7 +476,7 @@ import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useEffect
476
476
  gap: 8px;
477
477
  padding: 4px 8px 12px 8px;
478
478
  `,Nu=m.div`
479
- width: calc(100% - 16px);
479
+ width: 100%;
480
480
  display: flex;
481
481
  flex-direction: column;
482
482
  gap: 8px;
@@ -565,7 +565,7 @@ import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useEffect
565
565
  justify-content: space-between;
566
566
  gap: 8px;
567
567
  padding: 16px;
568
- width: calc(100% - 32px);
568
+ width: 100%;
569
569
  border-radius: 16px;
570
570
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
571
571
  `,dp=m.div`
@@ -578,8 +578,8 @@ import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useEffect
578
578
  `,up=({setStep:o,onSave:n,sourcesPayload:i,destinationsPayload:l,disableAnimation:r})=>{const s=f(),c=()=>o(2),d=()=>o(3),u=a(()=>Object.values(i||{}).flatMap((o,n)=>o.map((o,a)=>{if(!o.selected)return null;const i=o.kind||ut.Namespace,l=i===ut.Namespace?o.namespace:`${o.namespace} → ${o.name}`;return e(cp,{children:[t(Q,{nowrap:!0,children:l}),t(Fe,{label:i,status:we.Info,backgroundColor:s.v2.colors.blue[900]})]},`source-${n}-${a}`)})).filter(Boolean),[i]),p=a(()=>l?.map((o,n)=>{const a=lt(o.option.type).icon;return e(cp,{children:[e(oe,{$gap:8,children:[a&&t(dp,{children:t(a,{size:24})}),t(Q,{nowrap:!0,children:o.formData.name||o.option.displayName})]}),void 0!==o.testResult&&t(Fe,{status:o.testResult.succeeded?we.Success:we.Error,leftIcon:o.testResult.succeeded?Ci:Si})]},`destination-${n}`)})||[],[l]);return t(bl,{isOpen:!0,disableAnimation:r,onBack:()=>o(3),onSave:n,header:{icon:Ei,title:Be.SUMMARY,subTitle:Be.REVIEW_SETUP},leftColumn:{width:"50%",header:e(oe,{$width:"100%",$gap:12,$justifyContent:"space-between",children:[e(oe,{$gap:8,children:[t(xi,{size:24}),t(Q,{nowrap:!0,children:Be.SELECTED_SOURCES}),t(Fe,{label:u.length})]}),t(ne,{"data-id":"summary-edit-sources",leftIcon:pi,variant:ie.Secondary,size:ae.S,onClick:c})]}),list:u.length?u:[t(Qe,{$height:"100%",children:t(me,{icon:xi,title:Be.NO_SOURCES_SELECTED,subTitle:Be.ADD_SOURCE_PROMPT,button:{leftIcon:li,label:Be.ADD_SOURCE,onClick:c}})},"no-sources-data")]},rightColumn:{width:"50%",header:e(oe,{$width:"100%",$gap:12,$justifyContent:"space-between",children:[e(oe,{$gap:8,children:[t(bi,{size:24}),t(Q,{nowrap:!0,children:Be.SELECTED_DESTINATIONS}),t(Fe,{label:p.length})]}),t(ne,{"data-id":"summary-edit-destinations",leftIcon:pi,variant:ie.Secondary,size:ae.S,onClick:d})]}),list:p.length?p:[t(Qe,{"data-id":"summary-no-destinations",$height:"100%",children:t(me,{icon:bi,title:Be.NO_DESTINATIONS_SELECTED,subTitle:Be.ADD_DESTINATION_PROMPT,button:{leftIcon:li,label:Be.ADD_DESTINATIONS,onClick:d}})},"no-destinations-data")]}})},pp=m.div`
579
579
  position: relative;
580
580
  overflow: hidden;
581
- width: calc(100vw - ${({$paddingXAxis:e})=>e});
582
- height: calc(100vh - ${({$paddingYAxis:e})=>e});
581
+ width: 100vw;
582
+ height: 100vh;
583
583
  box-sizing: border-box;
584
584
  `,hp=m.svg`
585
585
  position: absolute;
@@ -725,7 +725,7 @@ import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useEffect
725
725
  justify-content: center !important;
726
726
  align-self: stretch;
727
727
  min-height: 80px;
728
- width: calc(100% - 32px);
728
+ width: 100%;
729
729
  padding: 16px;
730
730
  gap: 4px;
731
731
  border-radius: 12px;
@@ -885,7 +885,7 @@ import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useEffect
885
885
  display: flex;
886
886
  align-items: center;
887
887
  justify-content: space-evenly;
888
- width: calc(100% - 4px);
888
+ width: 100%;
889
889
  min-height: 12px;
890
890
  padding: 2px;
891
891
  border-radius: 12px;
@@ -917,7 +917,7 @@ import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useEffect
917
917
  gap: 6px;
918
918
  align-items: center;
919
919
  min-height: 22px;
920
- `;const og=[{key:"content",label:"Content",noSort:!0,noFilter:!0},{key:"badges",label:"Type",noSort:!0,noFilter:!0,flex:"0 0 128px"}],ng=[{value:"all",label:Ua},{value:"Relevance",label:"Relevance"},{value:"Duration",label:"Duration"},{value:"Error",label:"Error"}],ag=({title:o,items:n,isLoading:i,showTypeFilter:s,onRuleClick:c,onCreateRule:d,onEditRule:u,onDeleteRule:p})=>{const h=f(),[g,m]=r(""),[b,v]=r("all"),y=a(()=>{let e=function(e,t,o){return o&&"all"!==t?e.filter(e=>e.typeBadge===t):e}(n,b,s);return e=function(e,t){if(!t.trim())return e;const o=t.toLowerCase();return e.filter(e=>{const t=e.name?.toLowerCase().includes(o),n=e.summary.map(e=>e.text).join("").toLowerCase();return t||n.includes(o)})}(e,g),e},[n,b,s,g]),C=a(()=>y.map(o=>{const n=o.typeBadge?function(e,t){const o=e.v2.colors;switch(t){case"Relevance":return{bg:o.blue[700],text:o.white[500]};case"Duration":return{bg:o.purple[700],text:o.white[500]};case"Error":return{bg:o.red[500],text:o.black[500]}}}(h,o.typeBadge):void 0;return{cells:[{key:"content",rawValue:o.summary.map(e=>e.text).join(""),component:()=>e(eg,{$disabled:o.disabled,children:[t(Qh,{children:t(S,{parts:o.summary})}),o.name&&t(Q,{size:te.XXS,color:ee.Secondary,nowrap:!0,children:o.name})]})},{key:"badges",rawValue:o.typeBadge||"",component:()=>e(tg,{children:[o.disabled&&t(Fe,{label:Va,textSize:te.XXXS,backgroundColor:h.v2.colors.grey[700],textColor:h.v2.colors.grey[300]}),o.typeBadge&&n&&t(Fe,{label:o.typeBadge,textSize:te.XXXS,backgroundColor:n.bg,textColor:n.text})]})}],onClick:()=>c(o)}}),[y,h,c]),w=a(()=>{const e=e=>t(ui,{...e,fill:h.v2.colors.red[500]});return e.displayName="RedDeleteIcon",e},[h]),x=l(e=>{const t=C.indexOf(e);if(t<0)return[];const o=y[t];return o?[{id:"edit","data-id":"sampling-rule-action-edit",label:Co,leftIcon:pi,onClick:()=>u(o.ruleId,o.samplingId)},{id:"delete","data-id":"sampling-rule-action-delete",label:"",leftIcon:w,onClick:()=>p(o.ruleId,o.samplingId)}]:[]},[C,y,u,p,w]);return t(Ye,{fullHeight:!0,richTitle:{icon:Hi,title:o,badge:{label:n.length,backgroundColor:h.v2.colors.silver[600],textColor:h.v2.colors.white[500]}},search:{"data-id":"sampling-search-rules",value:g,onChange:m,placeholder:"Search..",width:"500px",...s?{segment:{"data-id":"sampling-segment-type-filter",options:ng,selected:b,setSelected:v}}:{}},children:t(mo,{variant:fo.Pretty,hideHeader:!0,isLoading:i,noDataProps:g.trim()?{hideIcon:!0,title:Ha,subTitle:Wa(g)}:{hideIcon:!0,title:ja,button:{label:Ga,onClick:d}},columns:og,rows:C,getRowActions:x})})},ig=({workloads:o,samplingRules:s,k8sHealthProbesConfig:c,loading:d,docsUrl:u,fetchSamplingRules:p,createNoisyOperationRule:h,updateNoisyOperationRule:g,createHighlyRelevantOperationRule:m,updateHighlyRelevantOperationRule:f,createCostReductionRule:b,updateCostReductionRule:v,deleteSamplingRule:y,updateK8sHealthProbesConfig:C})=>{const S=a(()=>o.map(({id:e})=>({id:`${e.namespace}/${e.kind}/${e.name}`,label:`${e.namespace} / ${e.kind} / ${e.name}`})),[o]),k=a(()=>Array.from(new Set(o.map(({id:e})=>e.namespace))).sort().map(e=>({id:e,label:e})),[o]),[X,U]=r(T.Noisy),[H,G]=r(null),[j,W]=r(!1),[K,Y]=r(!1),[J,q]=r(null),[Z,Q]=r(!1),[ee,te]=r(!1),[re,se]=r(!1),[ce,de]=r(!1),ue=i(!1);n(()=>{ue.current||d||(ue.current=!0,0===s.length&&de(!0))},[d,s]);const pe=a(()=>w(c),[c]),he=a(()=>$(s),[s]),ge=a(()=>x(he?.rule??null),[he]),me=a(()=>E(s),[s]),fe=a(()=>I(me?.rule??null),[me]),ve=i(H);ve.current=H,n(()=>{const e=ve.current;if(!e)return;const t=N(s,e);t?G(t):(G(null),W(!1))},[s]);const ye=a(()=>{const e=new Set;return he&&e.add(he.rule.ruleId),me&&e.add(me.rule.ruleId),e},[he,me]),Ce=a(()=>A(s,X,ye),[s,X,ye]),xe=l(()=>Y(!0),[]),ke=l(()=>Y(!1),[]),Te=l(()=>de(!1),[]),$e=l(async e=>{const t=s[0]?.id??"default";switch(L[X]){case"noisy":await h(t,R(e));break;case"highlyRelevant":await m(t,D(e));break;case"costReduction":await b(t,O(e))}Y(!1)},[s,X,h,m,b]),Ee=l(e=>{const t=P(s,e);t&&(W(!1),G(t))},[s]),Ie=l(()=>{G(null),W(!1)},[]),Ne=l((e,t)=>{const o=H;if(o&&o.rule.ruleId===e&&o.samplingId===t)W(!0),G({...o});else for(const o of s){if(o.id!==t)continue;const n=[...o.noisyOperations.map(e=>({category:"noisy",rule:e})),...o.highlyRelevantOperations.map(e=>({category:"highlyRelevant",rule:e})),...o.costReductionRules.map(e=>({category:"costReduction",rule:e}))].find(t=>t.rule.ruleId===e);if(n)return W(!0),void G({category:n.category,rule:n.rule,samplingId:t,summary:F(n.category,n.rule)})}},[H,s]),Ae=l(async(e,t,o)=>{const n=H?.category;if(n){switch(n){case"noisy":await g(o,t,R(e));break;case"highlyRelevant":await f(o,t,D(e));break;case"costReduction":await v(o,t,O(e))}W(!1)}},[H,g,f,v]),Oe=l((e,t)=>{q({ruleId:e,samplingId:t})},[]),De=l(async()=>{if(!J)return;const{ruleId:e,samplingId:t}=J,o=H?.category||L[X];await y(t,e,o),G(null),W(!1),q(null)},[J,H,X,y]),Re=l(()=>q(null),[]),Pe=l(async(e,t)=>{await C(e,t),Q(!1)},[C]),Fe=l(async e=>{const t=s[0]?.id??"default",o=he;o?await f(o.samplingId,o.rule.ruleId,{name:o.rule.name,disabled:!e,error:!0,sourceScopes:null,operation:null,percentageAtLeast:null,notes:o.rule.notes}):e&&await m(t,{name:"Auto - Keep All Error Traces",disabled:!1,error:!0,sourceScopes:null,operation:null,percentageAtLeast:null}),te(!1)},[s,he,m,f]),Le=l(async(e,t)=>{const o=s[0]?.id??"default",n=me;n?await v(n.samplingId,n.rule.ruleId,{name:n.rule.name,disabled:!e,sourceScopes:null,operation:null,percentageAtMost:t,notes:n.rule.notes}):e&&await b(o,{name:"Auto - Drop Traces Cluster-Wide",disabled:!1,sourceScopes:null,operation:null,percentageAtMost:t}),se(!1)},[s,me,b,v]),_e=l(e=>{const t=L[X];let o=null;switch(t){case"noisy":{const n=R(e);o=_(s,t,{sourceScopes:n.sourceScopes,operation:n.operation});break}case"highlyRelevant":{const n=D(e);o=_(s,t,{sourceScopes:n.sourceScopes,operation:n.operation,error:n.error??!1,durationAtLeastMs:n.durationAtLeastMs});break}case"costReduction":{const n=O(e);o=_(s,t,{sourceScopes:n.sourceScopes,operation:n.operation});break}}return o?{message:Ka,ruleId:o}:null},[s,X]),Be=l(e=>{const t=H?.category,o=H?.rule.ruleId;if(!t)return null;let n=null;switch(t){case"noisy":{const a=R(e);n=_(s,t,{sourceScopes:a.sourceScopes,operation:a.operation},o);break}case"highlyRelevant":{const a=D(e);n=_(s,t,{sourceScopes:a.sourceScopes,operation:a.operation,error:a.error??!1,durationAtLeastMs:a.durationAtLeastMs},o);break}case"costReduction":{const a=O(e);n=_(s,t,{sourceScopes:a.sourceScopes,operation:a.operation},o);break}}return n?{message:Ka,ruleId:n}:null},[s,H]),Me=l(e=>{Y(!1);for(const t of s){const o=[...t.noisyOperations.map(e=>({category:"noisy",rule:e})),...t.highlyRelevantOperations.map(e=>({category:"highlyRelevant",rule:e})),...t.costReductionRules.map(e=>({category:"costReduction",rule:e}))].find(t=>t.rule.ruleId===e);if(o)return W(!0),void G({category:o.category,rule:o.rule,samplingId:t.id,summary:F(o.category,o.rule)})}},[s]),Ve=a(()=>{const e=[];return u&&e.push({id:Mo(),type:Wt.Button,buttonProps:{"data-id":"sampling-btn-docs",label:Ya,leftIcon:di,size:ae.S,variant:ie.Text,onClick:()=>window.open(u,"_blank")}}),e.push({id:Mo(),type:Wt.Button,buttonProps:{"data-id":"sampling-btn-refresh",label:Ja,leftIcon:Ni,size:ae.S,variant:ie.Text,onClick:p,loading:d}}),e.push({id:Mo(),type:Wt.Button,buttonProps:{"data-id":"sampling-btn-create-rule",label:qa,rightIcon:li,size:ae.S,variant:ie.Primary,onClick:xe}}),e},[u,p,d,xe]);return e(ua,{children:[e(oe,{$gap:12,$justifyContent:"space-between",children:[t(Pa,{icon:Hi,title:Qa,subTitle:Za}),t(Fa,{actions:Ve})]}),e(V,{$gap:12,$fullHeight:!0,children:[t(le,{variant:ho.Underline,size:be.L,options:z,selected:X,setSelected:U}),e(oe,{$justifyContent:"space-between",children:[t(Se,{status:we.Default,message:B[X]}),u&&t(ne,{"data-id":"sampling-btn-docs-banner",label:"Docs",leftIcon:di,size:ae.S,variant:ie.Text,onClick:()=>window.open(u,"_blank")})]}),X===T.Noisy?t(sl,{title:je,summary:pe,onEdit:()=>Q(!0)}):X===T.HighlyRelevant?t(sl,{title:Xe,summary:ge,onEdit:()=>te(!0)}):X===T.CostReduction?t(sl,{title:He,summary:fe,onEdit:()=>se(!0)}):null,t(ag,{title:M[X],items:Ce,isLoading:d,showTypeFilter:X===T.HighlyRelevant,onRuleClick:Ee,onCreateRule:xe,onEditRule:Ne,onDeleteRule:Oe})]}),t(Wd,{formType:Al.View,data:H,defaultEditMode:j,onClose:Ie,onDelete:Oe,onSaveEdit:Ae,sourceOptions:S,namespaceOptions:k,validateForm:Be,onNavigateToDuplicate:Me}),t(Wd,{formType:Al.Create,isOpen:K,category:L[X],onClose:ke,onSubmit:$e,sourceOptions:S,namespaceOptions:k,validateForm:_e,onNavigateToDuplicate:Me}),t(Wd,{formType:Al.EditAutoNoisy,isOpen:Z,enabled:c?.enabled??!1,keepPercentage:c?.keepPercentage??0,onClose:()=>Q(!1),onSave:Pe}),t(Wd,{formType:Al.EditAutoHighlyRelevant,isOpen:ee,enabled:!!he&&!he.rule.disabled,onClose:()=>te(!1),onSave:Fe}),t(Wd,{formType:Al.EditAutoCostReduction,isOpen:re,enabled:!!me&&!me.rule.disabled,dropPercentage:me?.rule.percentageAtMost??25,onClose:()=>se(!1),onSave:Le}),t(ze,{title:ni,description:oi,isOpen:!!J,onClose:Re,denyButton:{label:ti,variant:ie.Secondary,onClick:Re},approveButton:{label:ei,variant:ie.Primary,onClick:()=>{De(),Re()}}}),t(op,{isOpen:ce,onClose:Te,k8sHealthProbesConfig:c,samplingId:s[0]?.id,docsUrl:u,updateK8sHealthProbesConfig:C,createHighlyRelevantOperationRule:m,createCostReductionRule:b})]})},lg=m.div`
920
+ `;const og=[{key:"content",label:"Content",noSort:!0,noFilter:!0,flex:1},{key:"badges",label:"Type",noSort:!0,noFilter:!0,flex:"0 0 128px"}],ng=[{value:"all",label:Ua},{value:"Relevance",label:"Relevance"},{value:"Duration",label:"Duration"},{value:"Error",label:"Error"}],ag=({title:o,items:n,isLoading:i,showTypeFilter:s,onRuleClick:c,onCreateRule:d,onEditRule:u,onDeleteRule:p})=>{const h=f(),[g,m]=r(""),[b,v]=r("all"),y=a(()=>{let e=function(e,t,o){return o&&"all"!==t?e.filter(e=>e.typeBadge===t):e}(n,b,s);return e=function(e,t){if(!t.trim())return e;const o=t.toLowerCase();return e.filter(e=>{const t=e.name?.toLowerCase().includes(o),n=e.summary.map(e=>e.text).join("").toLowerCase();return t||n.includes(o)})}(e,g),e},[n,b,s,g]),C=a(()=>y.map(o=>{const n=o.typeBadge?function(e,t){const o=e.v2.colors;switch(t){case"Relevance":return{bg:o.blue[700],text:o.white[500]};case"Duration":return{bg:o.purple[700],text:o.white[500]};case"Error":return{bg:o.red[500],text:o.black[500]}}}(h,o.typeBadge):void 0;return{cells:[{key:"content",rawValue:o.summary.map(e=>e.text).join(""),component:()=>e(eg,{$disabled:o.disabled,children:[t(Qh,{children:t(S,{parts:o.summary})}),o.name&&t(Q,{size:te.XXS,color:ee.Secondary,nowrap:!0,children:o.name})]})},{key:"badges",rawValue:o.typeBadge||"",component:()=>e(tg,{children:[o.disabled&&t(Fe,{label:Va,textSize:te.XXXS,backgroundColor:h.v2.colors.grey[700],textColor:h.v2.colors.grey[300]}),o.typeBadge&&n&&t(Fe,{label:o.typeBadge,textSize:te.XXXS,backgroundColor:n.bg,textColor:n.text})]})}],onClick:()=>c(o)}}),[y,h,c]),w=a(()=>{const e=e=>t(ui,{...e,fill:h.v2.colors.red[500]});return e.displayName="RedDeleteIcon",e},[h]),x=l(e=>{const t=C.indexOf(e);if(t<0)return[];const o=y[t];return o?[{id:"edit","data-id":"sampling-rule-action-edit",label:Co,leftIcon:pi,onClick:()=>u(o.ruleId,o.samplingId)},{id:"delete","data-id":"sampling-rule-action-delete",label:"",leftIcon:w,onClick:()=>p(o.ruleId,o.samplingId)}]:[]},[C,y,u,p,w]);return t(Ye,{fullHeight:!0,richTitle:{icon:Hi,title:o,badge:{label:n.length,backgroundColor:h.v2.colors.silver[600],textColor:h.v2.colors.white[500]}},search:{"data-id":"sampling-search-rules",value:g,onChange:m,placeholder:"Search..",width:"500px",...s?{segment:{"data-id":"sampling-segment-type-filter",options:ng,selected:b,setSelected:v}}:{}},children:t(mo,{variant:fo.Pretty,hideHeader:!0,isLoading:i,noDataProps:g.trim()?{hideIcon:!0,title:Ha,subTitle:Wa(g)}:{hideIcon:!0,title:ja,button:{label:Ga,onClick:d}},columns:og,rows:C,getRowActions:x})})},ig=({workloads:o,samplingRules:s,k8sHealthProbesConfig:c,loading:d,docsUrl:u,fetchSamplingRules:p,createNoisyOperationRule:h,updateNoisyOperationRule:g,createHighlyRelevantOperationRule:m,updateHighlyRelevantOperationRule:f,createCostReductionRule:b,updateCostReductionRule:v,deleteSamplingRule:y,updateK8sHealthProbesConfig:C})=>{const S=a(()=>o.map(({id:e})=>({id:`${e.namespace}/${e.kind}/${e.name}`,label:`${e.namespace} / ${e.kind} / ${e.name}`})),[o]),k=a(()=>Array.from(new Set(o.map(({id:e})=>e.namespace))).sort().map(e=>({id:e,label:e})),[o]),[X,U]=r(T.Noisy),[H,G]=r(null),[j,W]=r(!1),[K,Y]=r(!1),[J,q]=r(null),[Z,Q]=r(!1),[ee,te]=r(!1),[re,se]=r(!1),[ce,de]=r(!1),ue=i(!1);n(()=>{ue.current||d||(ue.current=!0,0===s.length&&de(!0))},[d,s]);const pe=a(()=>w(c),[c]),he=a(()=>$(s),[s]),ge=a(()=>x(he?.rule??null),[he]),me=a(()=>E(s),[s]),fe=a(()=>I(me?.rule??null),[me]),ve=i(H);ve.current=H,n(()=>{const e=ve.current;if(!e)return;const t=N(s,e);t?G(t):(G(null),W(!1))},[s]);const ye=a(()=>{const e=new Set;return he&&e.add(he.rule.ruleId),me&&e.add(me.rule.ruleId),e},[he,me]),Ce=a(()=>A(s,X,ye),[s,X,ye]),xe=l(()=>Y(!0),[]),ke=l(()=>Y(!1),[]),Te=l(()=>de(!1),[]),$e=l(async e=>{const t=s[0]?.id??"default";switch(L[X]){case"noisy":await h(t,R(e));break;case"highlyRelevant":await m(t,D(e));break;case"costReduction":await b(t,O(e))}Y(!1)},[s,X,h,m,b]),Ee=l(e=>{const t=P(s,e);t&&(W(!1),G(t))},[s]),Ie=l(()=>{G(null),W(!1)},[]),Ne=l((e,t)=>{const o=H;if(o&&o.rule.ruleId===e&&o.samplingId===t)W(!0),G({...o});else for(const o of s){if(o.id!==t)continue;const n=[...o.noisyOperations.map(e=>({category:"noisy",rule:e})),...o.highlyRelevantOperations.map(e=>({category:"highlyRelevant",rule:e})),...o.costReductionRules.map(e=>({category:"costReduction",rule:e}))].find(t=>t.rule.ruleId===e);if(n)return W(!0),void G({category:n.category,rule:n.rule,samplingId:t,summary:F(n.category,n.rule)})}},[H,s]),Ae=l(async(e,t,o)=>{const n=H?.category;if(n){switch(n){case"noisy":await g(o,t,R(e));break;case"highlyRelevant":await f(o,t,D(e));break;case"costReduction":await v(o,t,O(e))}W(!1)}},[H,g,f,v]),Oe=l((e,t)=>{q({ruleId:e,samplingId:t})},[]),De=l(async()=>{if(!J)return;const{ruleId:e,samplingId:t}=J,o=H?.category||L[X];await y(t,e,o),G(null),W(!1),q(null)},[J,H,X,y]),Re=l(()=>q(null),[]),Pe=l(async(e,t)=>{await C(e,t),Q(!1)},[C]),Fe=l(async e=>{const t=s[0]?.id??"default",o=he;o?await f(o.samplingId,o.rule.ruleId,{name:o.rule.name,disabled:!e,error:!0,sourceScopes:null,operation:null,percentageAtLeast:null,notes:o.rule.notes}):e&&await m(t,{name:"Auto - Keep All Error Traces",disabled:!1,error:!0,sourceScopes:null,operation:null,percentageAtLeast:null}),te(!1)},[s,he,m,f]),Le=l(async(e,t)=>{const o=s[0]?.id??"default",n=me;n?await v(n.samplingId,n.rule.ruleId,{name:n.rule.name,disabled:!e,sourceScopes:null,operation:null,percentageAtMost:t,notes:n.rule.notes}):e&&await b(o,{name:"Auto - Drop Traces Cluster-Wide",disabled:!1,sourceScopes:null,operation:null,percentageAtMost:t}),se(!1)},[s,me,b,v]),_e=l(e=>{const t=L[X];let o=null;switch(t){case"noisy":{const n=R(e);o=_(s,t,{sourceScopes:n.sourceScopes,operation:n.operation});break}case"highlyRelevant":{const n=D(e);o=_(s,t,{sourceScopes:n.sourceScopes,operation:n.operation,error:n.error??!1,durationAtLeastMs:n.durationAtLeastMs});break}case"costReduction":{const n=O(e);o=_(s,t,{sourceScopes:n.sourceScopes,operation:n.operation});break}}return o?{message:Ka,ruleId:o}:null},[s,X]),Be=l(e=>{const t=H?.category,o=H?.rule.ruleId;if(!t)return null;let n=null;switch(t){case"noisy":{const a=R(e);n=_(s,t,{sourceScopes:a.sourceScopes,operation:a.operation},o);break}case"highlyRelevant":{const a=D(e);n=_(s,t,{sourceScopes:a.sourceScopes,operation:a.operation,error:a.error??!1,durationAtLeastMs:a.durationAtLeastMs},o);break}case"costReduction":{const a=O(e);n=_(s,t,{sourceScopes:a.sourceScopes,operation:a.operation},o);break}}return n?{message:Ka,ruleId:n}:null},[s,H]),Me=l(e=>{Y(!1);for(const t of s){const o=[...t.noisyOperations.map(e=>({category:"noisy",rule:e})),...t.highlyRelevantOperations.map(e=>({category:"highlyRelevant",rule:e})),...t.costReductionRules.map(e=>({category:"costReduction",rule:e}))].find(t=>t.rule.ruleId===e);if(o)return W(!0),void G({category:o.category,rule:o.rule,samplingId:t.id,summary:F(o.category,o.rule)})}},[s]),Ve=a(()=>{const e=[];return u&&e.push({id:Mo(),type:Wt.Button,buttonProps:{"data-id":"sampling-btn-docs",label:Ya,leftIcon:di,size:ae.S,variant:ie.Text,onClick:()=>window.open(u,"_blank")}}),e.push({id:Mo(),type:Wt.Button,buttonProps:{"data-id":"sampling-btn-refresh",label:Ja,leftIcon:Ni,size:ae.S,variant:ie.Text,onClick:p,loading:d}}),e.push({id:Mo(),type:Wt.Button,buttonProps:{"data-id":"sampling-btn-create-rule",label:qa,rightIcon:li,size:ae.S,variant:ie.Primary,onClick:xe}}),e},[u,p,d,xe]);return e(ua,{children:[e(oe,{$gap:12,$justifyContent:"space-between",children:[t(Pa,{icon:Hi,title:Qa,subTitle:Za}),t(Fa,{actions:Ve})]}),e(V,{$gap:12,$fullHeight:!0,children:[t(le,{variant:ho.Underline,size:be.L,options:z,selected:X,setSelected:U}),e(oe,{$justifyContent:"space-between",children:[t(Se,{status:we.Default,message:B[X]}),u&&t(ne,{"data-id":"sampling-btn-docs-banner",label:"Docs",leftIcon:di,size:ae.S,variant:ie.Text,onClick:()=>window.open(u,"_blank")})]}),X===T.Noisy?t(sl,{title:je,summary:pe,onEdit:()=>Q(!0)}):X===T.HighlyRelevant?t(sl,{title:Xe,summary:ge,onEdit:()=>te(!0)}):X===T.CostReduction?t(sl,{title:He,summary:fe,onEdit:()=>se(!0)}):null,t(ag,{title:M[X],items:Ce,isLoading:d,showTypeFilter:X===T.HighlyRelevant,onRuleClick:Ee,onCreateRule:xe,onEditRule:Ne,onDeleteRule:Oe})]}),t(Wd,{formType:Al.View,data:H,defaultEditMode:j,onClose:Ie,onDelete:Oe,onSaveEdit:Ae,sourceOptions:S,namespaceOptions:k,validateForm:Be,onNavigateToDuplicate:Me}),t(Wd,{formType:Al.Create,isOpen:K,category:L[X],onClose:ke,onSubmit:$e,sourceOptions:S,namespaceOptions:k,validateForm:_e,onNavigateToDuplicate:Me}),t(Wd,{formType:Al.EditAutoNoisy,isOpen:Z,enabled:c?.enabled??!1,keepPercentage:c?.keepPercentage??0,onClose:()=>Q(!1),onSave:Pe}),t(Wd,{formType:Al.EditAutoHighlyRelevant,isOpen:ee,enabled:!!he&&!he.rule.disabled,onClose:()=>te(!1),onSave:Fe}),t(Wd,{formType:Al.EditAutoCostReduction,isOpen:re,enabled:!!me&&!me.rule.disabled,dropPercentage:me?.rule.percentageAtMost??25,onClose:()=>se(!1),onSave:Le}),t(ze,{title:ni,description:oi,isOpen:!!J,onClose:Re,denyButton:{label:ti,variant:ie.Secondary,onClick:Re},approveButton:{label:ei,variant:ie.Primary,onClick:()=>{De(),Re()}}}),t(op,{isOpen:ce,onClose:Te,k8sHealthProbesConfig:c,samplingId:s[0]?.id,docsUrl:u,updateK8sHealthProbesConfig:C,createHighlyRelevantOperationRule:m,createCostReductionRule:b})]})},lg=m.div`
921
921
  display: flex;
922
922
  align-items: center;
923
923
  justify-content: space-between;
@@ -932,4 +932,10 @@ import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import{useEffect
932
932
  min-height: 0;
933
933
  height: 100%;
934
934
  overflow-y: auto;
935
- `,dg=e=>"general"===e.name?0:"advanced"===e.name?2:1,ug=({minSupportedVersion:o=0,configYamls:i,configYamlsLoading:l,effectiveConfig:s,effectiveConfigLoading:c,refetch:d,factoryReset:u,onSave:p,saveLoading:h})=>{const{isVersionSupported:g,version:m,isEnterprise:f}=y(o),b=a(()=>{if(!s)return{};const{manifestYAML:e,provenance:t,...o}=s;return o},[s]),{formData:v,handleFormChange:C,getNestedValue:S,getFormDiff:w,isFormDirty:x}=$t(b);n(()=>{"{}"!==JSON.stringify(b)&&"{}"===JSON.stringify(v)&&C(void 0,void 0,b)},[b,v]);const k=a(()=>[...i].sort((e,t)=>dg(e)-dg(t)),[i]),T=a(()=>(e=>{if(!e)return{};const t={};for(const o of e)t[o.helmPath]=o.reconciledFrom;return t})(s?.provenance),[s?.provenance]),$=a(()=>{const e=new Set;for(const t of i)for(const o of t.fields)o.componentType===It.Dropdown&&e.add(o.helmValuePath);return e},[i]),E=a(()=>i.flatMap(e=>e.fields.map(e=>({name:e.helmValuePath,value:S("formData",e.helmValuePath)}))),[i,v,S]),[I,N]=r(!1),A=async()=>{const e=((e,t)=>{const o=(e,t,o)=>{for(let o=0;o<t.length-1;o++){const n=t[o];n in e&&"object"==typeof e[n]&&null!==e[n]||(e[n]={}),e=e[n]}e[t[t.length-1]]=o},n=JSON.parse(JSON.stringify(e));for(const e of t){const t=e.split(".");let a=n;for(const e of t){if(null==a||"object"!=typeof a){a=void 0;break}a=a[e]}"string"==typeof a&&o(n,t,a.replaceAll("-","_"))}return n})(w(b,v),$);await(p?.(e)),C(void 0,void 0,{})},O=a(()=>[{id:Mo(),type:Wt.Button,buttonProps:{"data-id":"settings-save",variant:ie.Primary,size:ae.S,label:"Save Changes",leftIcon:Ci,loading:h,onClick:()=>N(!0)}},{id:Mo(),type:Wt.Button,buttonProps:{"data-id":"settings-cancel",variant:ie.Secondary,size:ae.S,label:"Cancel",leftIcon:Si,onClick:()=>C(void 0,void 0,b)}}],[h,w,b,v,C]),D=a(()=>k.map(e=>({id:e.name,label:e.displayName})),[k]),R=a(()=>k.map(e=>e.name),[k]),{selectedSection:P,setSelectedSection:F,setSectionRef:L,setScrollContainerRef:_}=ai({sectionNames:R});return e(ua,{$gap:12,children:[t(rg,{disabled:!g,loading:l||c,tabs:D,selectedTab:P,setSelectedTab:F,onClickReset:u?()=>u().then(()=>d?.()):void 0,onClickRefresh:d?()=>d():void 0}),e(Xa,{children:[!g&&t(xl,{minSupportedVersion:o,currentVersion:m||""}),t(pa,{isOpen:x,richTitle:{icon:Ti,title:"Config Settings"},actions:O}),t(ze,{isOpen:I,title:"Save Changes via UI?",description:"We recommend updating via your Helm values.yaml to ensure changes are version-controlled and go through a proper review process.",onClose:()=>N(!1),denyButton:{label:"Keep editing",variant:ie.Secondary,onClick:()=>N(!1)},approveButton:{label:"Save changes",variant:ie.Primary,onClick:()=>{A(),N(!1)}}}),e(sg,{$gap:24,$alignItems:"stretch",children:[t(cg,{ref:_,$gap:24,$width:"100%",children:i.length?k.map(o=>t(Ye,{id:o.name,ref:e=>L(o.name,e),richTitle:{icon:Ti,title:o.displayName},children:o.fields.map(o=>{if(o.isEnterpriseOnly&&!f)return null;if(o.renderCondition&&!Ce(o.renderCondition,[],E))return null;const n=st(o.componentProps||"{}",{}),a=T[o.helmValuePath];return e(V,{$gap:4,children:[t(il,{componentType:o.componentType,inputType:n.type,name:o.helmValuePath,label:o.displayName,tooltip:o.description,badge:a?{status:"odigos-local-ui-config"===a?we.Warning:pt.Unknown,label:a,tooltip:`This field is reconciled from the following resource: ${a}`}:void 0,disabled:o.isHelmOnly||h,value:S("formData",o.helmValuePath),setValue:e=>C(o.helmValuePath,e),dropdownOptions:n.options?.map(e=>({id:e,label:e})),dropdownNoSearch:!0,dropdownNoCheckbox:!0},o.helmValuePath),o.isHelmOnly?t(Se,{status:we.Info,smallIcon:!0,message:"This field can only be updated via Helm values.yaml file"}):null]},o.helmValuePath)})},o.name)):l?t(Qe,{$height:"30vh",children:t(at,{withSpinner:!0})}):t(Ye,{richTitle:{icon:Ti,title:"Config Settings"},children:t(me,{title:"YAML not found",subTitle:"The YAML for this resource is not available"})})}),t(cg,{children:c&&!s?.manifestYAML?t(Qe,{$height:"30vh",children:t(at,{withSpinner:!0})}):t(Cl,{title:"Effective Config YAML",yaml:s?.manifestYAML?.replaceAll(" |",""),defaultOpen:!0,fullHeight:!0})})]})]})]})};export{es as AddActionDrawer,Er as AddActionForm,nu as AddDataStreamModal,ds as AddDestinationDrawer,Ar as AddDestinationForm,us as AddRuleDrawer,zr as AddRuleForm,Os as AddSourceDrawer,sp as CentralConnections,Mr as DataStreamForm,Br as DataStreamMergeWarning,Rs as EditActionDrawer,Ps as EditConfigDrawer,au as EditDataStreamModal,Ls as EditDestinationDrawer,zs as EditRuleDrawer,Pd as EditSourceDrawer,Xr as EditSourceForm,ru as ONBOARDING_DONE_MODAL_ID,wp as Onboarding,su as OnboardingDone,Bh as Overview,Zh as PipelineCollectors,pr as RegexTesterDrawer,op as SamplingOnboardingModal,Wd as SamplingRuleDrawer,Wr as SamplingRuleForm,ig as SamplingRules,ug as Settings,ou as SystemDrawer,qh as TABS};
935
+ `,dg=m(cg)`
936
+ > section {
937
+ min-height: 100%;
938
+ box-sizing: border-box;
939
+ flex-shrink: 0;
940
+ }
941
+ `,ug=e=>"general"===e.name?0:"advanced"===e.name?2:1,pg=({minSupportedVersion:o=0,configYamls:i,configYamlsLoading:l,effectiveConfig:s,effectiveConfigLoading:c,refetch:d,factoryReset:u,onSave:p,saveLoading:h})=>{const{isVersionSupported:g,version:m,isEnterprise:f}=y(o),b=a(()=>{if(!s)return{};const{manifestYAML:e,provenance:t,...o}=s;return o},[s]),{formData:v,handleFormChange:C,getNestedValue:S,getFormDiff:w,isFormDirty:x}=$t(b);n(()=>{"{}"!==JSON.stringify(b)&&"{}"===JSON.stringify(v)&&C(void 0,void 0,b)},[b,v]);const k=a(()=>[...i].sort((e,t)=>ug(e)-ug(t)),[i]),T=a(()=>(e=>{if(!e)return{};const t={};for(const o of e)t[o.helmPath]=o.reconciledFrom;return t})(s?.provenance),[s?.provenance]),$=a(()=>{const e=new Set;for(const t of i)for(const o of t.fields)o.componentType===It.Dropdown&&e.add(o.helmValuePath);return e},[i]),E=a(()=>i.flatMap(e=>e.fields.map(e=>({name:e.helmValuePath,value:S("formData",e.helmValuePath)}))),[i,v,S]),[I,N]=r(!1),A=async()=>{const e=((e,t)=>{const o=(e,t,o)=>{for(let o=0;o<t.length-1;o++){const n=t[o];n in e&&"object"==typeof e[n]&&null!==e[n]||(e[n]={}),e=e[n]}e[t[t.length-1]]=o},n=JSON.parse(JSON.stringify(e));for(const e of t){const t=e.split(".");let a=n;for(const e of t){if(null==a||"object"!=typeof a){a=void 0;break}a=a[e]}"string"==typeof a&&o(n,t,a.replaceAll("-","_"))}return n})(w(b,v),$);await(p?.(e)),C(void 0,void 0,{})},O=a(()=>[{id:Mo(),type:Wt.Button,buttonProps:{"data-id":"settings-save",variant:ie.Primary,size:ae.S,label:"Save Changes",leftIcon:Ci,loading:h,onClick:()=>N(!0)}},{id:Mo(),type:Wt.Button,buttonProps:{"data-id":"settings-cancel",variant:ie.Secondary,size:ae.S,label:"Cancel",leftIcon:Si,onClick:()=>C(void 0,void 0,b)}}],[h,w,b,v,C]),D=a(()=>k.map(e=>({id:e.name,label:e.displayName})),[k]),R=a(()=>k.map(e=>e.name),[k]),{selectedSection:P,setSelectedSection:F,setSectionRef:L,setScrollContainerRef:_}=ai({sectionNames:R});return e(ua,{$gap:12,children:[t(rg,{disabled:!g,loading:l||c,tabs:D,selectedTab:P,setSelectedTab:F,onClickReset:u?()=>u().then(()=>d?.()):void 0,onClickRefresh:d?()=>d():void 0}),e(Xa,{children:[!g&&t(xl,{minSupportedVersion:o,currentVersion:m||""}),t(pa,{isOpen:x,richTitle:{icon:Ti,title:"Config Settings"},actions:O}),t(ze,{isOpen:I,title:"Save Changes via UI?",description:"We recommend updating via your Helm values.yaml to ensure changes are version-controlled and go through a proper review process.",onClose:()=>N(!1),denyButton:{label:"Keep editing",variant:ie.Secondary,onClick:()=>N(!1)},approveButton:{label:"Save changes",variant:ie.Primary,onClick:()=>{A(),N(!1)}}}),e(sg,{$gap:24,$alignItems:"stretch",children:[t(cg,{ref:_,$gap:24,$width:"100%",children:i.length?k.map(o=>t(Ye,{id:o.name,ref:e=>L(o.name,e),richTitle:{icon:Ti,title:o.displayName},children:o.fields.map(o=>{if(o.isEnterpriseOnly&&!f)return null;if(o.renderCondition&&!Ce(o.renderCondition,[],E))return null;const n=st(o.componentProps||"{}",{}),a=T[o.helmValuePath];return e(V,{$gap:4,children:[t(il,{componentType:o.componentType,inputType:n.type,name:o.helmValuePath,label:o.displayName,tooltip:o.description,badge:a?{status:"odigos-local-ui-config"===a?we.Warning:pt.Unknown,label:a,tooltip:`This field is reconciled from the following resource: ${a}`}:void 0,disabled:o.isHelmOnly||h,value:S("formData",o.helmValuePath),setValue:e=>C(o.helmValuePath,e),dropdownOptions:n.options?.map(e=>({id:e,label:e})),dropdownNoSearch:!0,dropdownNoCheckbox:!0},o.helmValuePath),o.isHelmOnly?t(Se,{status:we.Info,smallIcon:!0,message:"This field can only be updated via Helm values.yaml file"}):null]},o.helmValuePath)})},o.name)):l?t(Qe,{$height:"30vh",children:t(at,{withSpinner:!0})}):t(Ye,{richTitle:{icon:Ti,title:"Config Settings"},children:t(me,{title:"YAML not found",subTitle:"The YAML for this resource is not available"})})}),t(dg,{children:c&&!s?.manifestYAML?t(Qe,{$height:"30vh",children:t(at,{withSpinner:!0})}):t(Cl,{title:"Effective Config YAML",yaml:s?.manifestYAML?.replaceAll(" |",""),defaultOpen:!0})})]})]})]})};export{es as AddActionDrawer,Er as AddActionForm,nu as AddDataStreamModal,ds as AddDestinationDrawer,Ar as AddDestinationForm,us as AddRuleDrawer,zr as AddRuleForm,Os as AddSourceDrawer,sp as CentralConnections,Mr as DataStreamForm,Br as DataStreamMergeWarning,Rs as EditActionDrawer,Ps as EditConfigDrawer,au as EditDataStreamModal,Ls as EditDestinationDrawer,zs as EditRuleDrawer,Pd as EditSourceDrawer,Xr as EditSourceForm,ru as ONBOARDING_DONE_MODAL_ID,wp as Onboarding,su as OnboardingDone,Bh as Overview,Zh as PipelineCollectors,pr as RegexTesterDrawer,op as SamplingOnboardingModal,Wd as SamplingRuleDrawer,Wr as SamplingRuleForm,ig as SamplingRules,pg as Settings,ou as SystemDrawer,qh as TABS};
package/lib/containers.js CHANGED
@@ -1,4 +1,4 @@
1
- import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import{useState as n,useRef as i,useCallback as a,useEffect as o}from"react";import{MarkerType as s,useNodesState as c,useEdgesState as d}from"@xyflow/react";import{N as l,D as p,E as u,g,d as h,e as m,S as y,f,h as v,i as x,F as S,j as N,k as b,l as K,m as w,n as k}from"./chunks/ui-components-DNrEjxrR.js";import{UserIcon as T,ImageErrorIcon as M,ChevronDownIcon as $,ChevronRightIcon as C}from"./icons.js";import I,{useTheme as z}from"styled-components";import{E}from"./chunks/vendor-Be0cOokr.js";import{Flow as G}from"./snippets.js";import"zustand";import"javascript-time-ago";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";const V=e=>`${u.Source}-${e}-${l.MapItem}`,D=(e,t,r)=>{const n=e.isVirtual,i=r?[T]:n?[g(e)]:t?h(t):[M],{priorotizedStatus:a}=n?{priorotizedStatus:void 0}:m(t?.conditions||[]);return{id:e.graphKey,title:e.serviceName,icons:i,isVirtual:n,status:a,aggService:e}},R=e=>!(!e||"user"!==e.serviceName||e.id.namespace||e.id.name||e.id.kind),A=({theme:e,nodes:t,aggregatedServiceMap:r})=>{const n=[],i=new Map(t.map(e=>[e.id,e]));for(const t of r){const r=V(t.graphKey),a=i.get(r);if(!a)continue;const o=a.data?.status===y.Error;for(const a of t.connections){const c=V(a.targetGraphKey);i.has(c)&&n.push({id:`${r}-to-${c}`,type:"smoothstep",source:r,target:c,data:{sourceGraphKey:t.graphKey,targetGraphKey:a.targetGraphKey},markerEnd:{type:s.ArrowClosed},style:{stroke:o?e?.colors.dark_red:e?.colors.border}})}}return n},j=e=>{const t=e.lastIndexOf("|");return-1===t?{graphKey:e,detail:""}:{graphKey:e.substring(0,t),detail:e.substring(t+1)}},O=new E,_=`${u.Source}-user-${l.MapItem}`,q={"elk.algorithm":"layered","elk.direction":"RIGHT","elk.layered.spacing.nodeNodeBetweenLayers":"150","elk.spacing.nodeNode":"120","elk.layered.nodePlacement.strategy":"NETWORK_SIMPLEX","elk.layered.spacing.edgeEdgeBetweenLayers":"30","elk.layered.spacing.edgeNodeBetweenLayers":"40"},B=I.div`
1
+ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import{useState as n,useRef as i,useCallback as a,useEffect as o}from"react";import{MarkerType as s,useNodesState as c,useEdgesState as d}from"@xyflow/react";import{N as l,D as p,E as u,g,d as h,e as m,S as y,f,h as v,i as x,F as S,j as N,k as b,l as K,m as w,n as k}from"./chunks/ui-components-DNIrc4p5.js";import{UserIcon as T,ImageErrorIcon as M,ChevronDownIcon as $,ChevronRightIcon as C}from"./icons.js";import I,{useTheme as z}from"styled-components";import{E}from"./chunks/vendor-Be0cOokr.js";import{Flow as G}from"./snippets.js";import"zustand";import"javascript-time-ago";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";const V=e=>`${u.Source}-${e}-${l.MapItem}`,D=(e,t,r)=>{const n=e.isVirtual,i=r?[T]:n?[g(e)]:t?h(t):[M],{priorotizedStatus:a}=n?{priorotizedStatus:void 0}:m(t?.conditions||[]);return{id:e.graphKey,title:e.serviceName,icons:i,isVirtual:n,status:a,aggService:e}},R=e=>!(!e||"user"!==e.serviceName||e.id.namespace||e.id.name||e.id.kind),A=({theme:e,nodes:t,aggregatedServiceMap:r})=>{const n=[],i=new Map(t.map(e=>[e.id,e]));for(const t of r){const r=V(t.graphKey),a=i.get(r);if(!a)continue;const o=a.data?.status===y.Error;for(const a of t.connections){const c=V(a.targetGraphKey);i.has(c)&&n.push({id:`${r}-to-${c}`,type:"smoothstep",source:r,target:c,data:{sourceGraphKey:t.graphKey,targetGraphKey:a.targetGraphKey},markerEnd:{type:s.ArrowClosed},style:{stroke:o?e?.colors.dark_red:e?.colors.border}})}}return n},j=e=>{const t=e.lastIndexOf("|");return-1===t?{graphKey:e,detail:""}:{graphKey:e.substring(0,t),detail:e.substring(t+1)}},O=new E,_=`${u.Source}-user-${l.MapItem}`,q={"elk.algorithm":"layered","elk.direction":"RIGHT","elk.layered.spacing.nodeNodeBetweenLayers":"150","elk.spacing.nodeNode":"120","elk.layered.nodePlacement.strategy":"NETWORK_SIMPLEX","elk.layered.spacing.edgeEdgeBetweenLayers":"30","elk.layered.spacing.edgeNodeBetweenLayers":"40"},B=I.div`
2
2
  padding: 8px 0;
3
3
  `,F=I.div`
4
4
  display: flex;
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-n8N3zC_-.js";export{O as OdigosProvider,c as checkVersionSupport,u as useOdigos}from"./chunks/helpers-BFZzc68M.js";import{jsx as r}from"react/jsx-runtime";import{useMemo as o,useContext as t,createContext as s}from"react";import"./chunks/ui-components-DNrEjxrR.js";import"styled-components";import"./icons.js";import"zustand";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";const m=s({formType:void 0}),n=({children:e,formType:t})=>{const s=o(()=>({formType:t}),[t]);return r(m.Provider,{value:s,children:e})},p=()=>t(m);export{n as StorybookProvider,p 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-BlL_U41q.js";export{O as OdigosProvider,c as checkVersionSupport,u as useOdigos}from"./chunks/helpers-LpbP8L0p.js";import{jsx as r}from"react/jsx-runtime";import{useMemo as o,useContext as t,createContext as s}from"react";import"./chunks/ui-components-DNIrc4p5.js";import"styled-components";import"./icons.js";import"zustand";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";const m=s({formType:void 0}),n=({children:e,formType:t})=>{const s=o(()=>({formType:t}),[t]);return r(m.Provider,{value:s,children:e})},p=()=>t(m);export{n as StorybookProvider,p as useStorybook};
package/lib/functions.js CHANGED
@@ -1 +1 @@
1
- export{fb as adaptInstrumentationRuleFromWire,fc as adaptInstrumentationRuleInputForWire,b1 as buildBadgeForDesiredStatus,fd as capitalizeFirstLetter,fe as cleanObjectEmptyStringsValues,ah as compareCondition,ff as decimalsOnly,p as deepClone,di as entityIdKey,dm as filterActions,dl as filterDestinations,aW as filterDestinationsByStream,dk as filterSources,d7 as filterSourcesByStream,fg as flattenObjectKeys,bh as formatBytes,fh as formatDuration,bR as generateId,aU as getActionIcon,e as getConditionsBooleans,bu as getContainersIcons,fi as getContainersInstrumentedCount,fj as getDeepValue,aH as getDestinationIcon,fk as getDetectedLanguageIcons,b6 as getEffectiveLanguage,bp as getEffectiveRuntimeVersion,dd as getEntityIcon,aP as getEntityId,dh as getEntityIdKey,dc as getEntityLabel,bj as getHealthBadgeLabel,fl as getIdFromSseTarget,a_ as getInstrumentationRuleIcon,fm as getMainContainerLanguage,fn as getMetricForEntity,fo as getMonitorIcon,fp as getPlatformIcon,fq as getPlatformLabel,ao as getProgrammingLanguageIcon,fr as getRecursiveValues,d as getSourceLanguageIcons,fs as getSseTargetFromId,ft as getStatusColor,ds as getStatusFromPodStatus,dg as getStatusIcon,bk as getStatusTypeFromOdigosHealth,fu as getValueForRange,g as getVirtualServiceIcon,be as getWorkloadId,aX as getYamlFieldsForDestination,fv as hasUnhealthyInstances,fw as instrumentationRuleSourceScopesFromWire,fx as instrumentationRuleSourceScopesToWire,s as isEmpty,x as isLegalK8sLabel,bN as isOverTime,fy as isStringABoolean,fz as isTimeElapsed,bo as isValidVersion,fA as mapConditions,b4 as mapDesiredStatusToConditionStatus,aV as mapDestinationFieldsForDisplay,G as mapExportedSignals,z as mapSupportedSignals,fB as numbersOnly,fC as parseBooleanFromString,fD as parseJsonStringToPrettyString,ai as prepareDestinationFormData,fE as removeEmptyValuesFromObject,C as safeJsonParse,fF as safeJsonStringify,fG as setDeepValue,fH as sleep,aY as splitCamelString,fI as stringifyNonStringValues,t as trimVersion}from"./chunks/ui-components-DNrEjxrR.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{fb as adaptInstrumentationRuleFromWire,fc as adaptInstrumentationRuleInputForWire,b1 as buildBadgeForDesiredStatus,fd as capitalizeFirstLetter,fe as cleanObjectEmptyStringsValues,ah as compareCondition,ff as decimalsOnly,p as deepClone,di as entityIdKey,dm as filterActions,dl as filterDestinations,aW as filterDestinationsByStream,dk as filterSources,d7 as filterSourcesByStream,fg as flattenObjectKeys,bh as formatBytes,fh as formatDuration,bR as generateId,aU as getActionIcon,e as getConditionsBooleans,bu as getContainersIcons,fi as getContainersInstrumentedCount,fj as getDeepValue,aH as getDestinationIcon,fk as getDetectedLanguageIcons,b6 as getEffectiveLanguage,bp as getEffectiveRuntimeVersion,dd as getEntityIcon,aP as getEntityId,dh as getEntityIdKey,dc as getEntityLabel,bj as getHealthBadgeLabel,fl as getIdFromSseTarget,a_ as getInstrumentationRuleIcon,fm as getMainContainerLanguage,fn as getMetricForEntity,fo as getMonitorIcon,fp as getPlatformIcon,fq as getPlatformLabel,ao as getProgrammingLanguageIcon,fr as getRecursiveValues,d as getSourceLanguageIcons,fs as getSseTargetFromId,ft as getStatusColor,ds as getStatusFromPodStatus,dg as getStatusIcon,bk as getStatusTypeFromOdigosHealth,fu as getValueForRange,g as getVirtualServiceIcon,be as getWorkloadId,aX as getYamlFieldsForDestination,fv as hasUnhealthyInstances,fw as instrumentationRuleSourceScopesFromWire,fx as instrumentationRuleSourceScopesToWire,s as isEmpty,x as isLegalK8sLabel,bN as isOverTime,fy as isStringABoolean,fz as isTimeElapsed,bo as isValidVersion,fA as mapConditions,b4 as mapDesiredStatusToConditionStatus,aV as mapDestinationFieldsForDisplay,G as mapExportedSignals,z as mapSupportedSignals,fB as numbersOnly,fC as parseBooleanFromString,fD as parseJsonStringToPrettyString,ai as prepareDestinationFormData,fE as removeEmptyValuesFromObject,C as safeJsonParse,fF as safeJsonStringify,fG as setDeepValue,fH as sleep,aY as splitCamelString,fI as stringifyNonStringValues,t as trimVersion}from"./chunks/ui-components-DNIrc4p5.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
package/lib/hooks.js CHANGED
@@ -1 +1 @@
1
- export{fT as IGNORE_OUTSIDE_CLICK_ATTR,fU as useActionFormData,fV as useBodyScroll,db as useClickNode,m as useClickNotification,dj as useContainerSize,bi as useCopy,fW as useDataStreamFormData,fX as useDestinationFormData,o as useGenericForm,fY as useInstrumentationRuleFormData,bM as useKeyDown,bl as useOnClickOutside,fZ as useOverflow,u as usePopup,b0 as useScrollIntoViewWhen,dO as useScrollTo,da as useSessionStorage,f_ as useSourceFormData,a$ as useTimeAgo}from"./chunks/ui-components-DNrEjxrR.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{fT as IGNORE_OUTSIDE_CLICK_ATTR,fU as useActionFormData,fV as useBodyScroll,db as useClickNode,m as useClickNotification,dj as useContainerSize,bi as useCopy,fW as useDataStreamFormData,fX as useDestinationFormData,o as useGenericForm,fY as useInstrumentationRuleFormData,bM as useKeyDown,bl as useOnClickOutside,fZ as useOverflow,u as usePopup,b0 as useScrollIntoViewWhen,dO as useScrollTo,da as useSessionStorage,f_ as useSourceFormData,a$ as useTimeAgo}from"./chunks/ui-components-DNIrc4p5.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
@@ -1 +1 @@
1
- export{ba as ActionType,dr as Actions,dq as RichTitle}from"../chunks/ui-components-DNrEjxrR.js";export{C as CancelModal,j as DURATION_OPTIONS,g as DeleteModal,e as DurationErrorsSection,D as DynamicField,I as InstrumentationPreviewSection,N as NOISY_PERCENTAGE_OPTIONS,h as OdigosLogoTextByTier,O as OperationSection,b as PERCENTAGE_OPTIONS,f as PercentageSection,P as PresetWithCustomInput,R as RuleInfoSection,d as RuleTypeSection,c as SamplingPreviewSection,S as SignalsCheckboxList,a as SourceScopeSection,U as UpgradeModal,i as WIDE_DRAWER_WIDTH,W as WideDrawer,Y as YamlSectionCard}from"../chunks/index-BrSebk-Z.js";export{C as ColoredSpan,y as ColoredSpanVariant}from"../chunks/helpers-BFZzc68M.js";import"react/jsx-runtime";import"styled-components";import"../icons.js";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{ba as ActionType,dr as Actions,dq as RichTitle}from"../chunks/ui-components-DNIrc4p5.js";export{C as CancelModal,j as DURATION_OPTIONS,g as DeleteModal,e as DurationErrorsSection,D as DynamicField,I as InstrumentationPreviewSection,N as NOISY_PERCENTAGE_OPTIONS,h as OdigosLogoTextByTier,O as OperationSection,b as PERCENTAGE_OPTIONS,f as PercentageSection,P as PresetWithCustomInput,R as RuleInfoSection,d as RuleTypeSection,c as SamplingPreviewSection,S as SignalsCheckboxList,a as SourceScopeSection,U as UpgradeModal,i as WIDE_DRAWER_WIDTH,W as WideDrawer,Y as YamlSectionCard}from"../chunks/index-BuxeIAvf.js";export{C as ColoredSpan,y as ColoredSpanVariant}from"../chunks/helpers-LpbP8L0p.js";import"react/jsx-runtime";import"styled-components";import"../icons.js";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
package/lib/snippets.js CHANGED
@@ -1,4 +1,4 @@
1
- import{jsx as e,jsxs as o,Fragment as t}from"react/jsx-runtime";import{memo as r,useRef as i,useEffect as n}from"react";import"./chunks/vendor-Be0cOokr.js";import d,{useTheme as s}from"styled-components";import{ac as a,R as l,eK as c,h as p,S as m,dg as u,db as h,k as g,N as b}from"./chunks/ui-components-DNrEjxrR.js";import{Handle as x,Position as f,ReactFlowProvider as v,ReactFlow as y,Controls as w,ControlButton as N,useReactFlow as k}from"@xyflow/react";import{RefreshIcon as $}from"./icons.js";import"javascript-time-ago";import"zustand";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";const C=d(l)`
1
+ import{jsx as e,jsxs as o,Fragment as t}from"react/jsx-runtime";import{memo as r,useRef as i,useEffect as n}from"react";import"./chunks/vendor-Be0cOokr.js";import d,{useTheme as s}from"styled-components";import{ac as a,R as l,eK as c,h as p,S as m,dg as u,db as h,k as g,N as b}from"./chunks/ui-components-DNIrc4p5.js";import{Handle as x,Position as f,ReactFlowProvider as v,ReactFlow as y,Controls as w,ControlButton as N,useReactFlow as k}from"@xyflow/react";import{RefreshIcon as $}from"./icons.js";import"javascript-time-ago";import"zustand";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";const C=d(l)`
2
2
  max-width: 300px;
3
3
  padding: 12px;
4
4
  border-radius: 12px;
package/lib/store.js CHANGED
@@ -1 +1 @@
1
- export{aM as ProgressKeys,k as useActiveNodeStore,fS as useDarkMode,w as useDataStreamStore,bd as useDrawerStore,j as useEntityStore,d6 as useFilterStore,bS as useModalStore,l as useNotificationStore,aL as useProgressStore,df as useSelectedStore,dn as useSetupStore}from"./chunks/ui-components-DNrEjxrR.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{aM as ProgressKeys,k as useActiveNodeStore,fS as useDarkMode,w as useDataStreamStore,bd as useDrawerStore,j as useEntityStore,d6 as useFilterStore,bS as useModalStore,l as useNotificationStore,aL as useProgressStore,df as useSelectedStore,dn as useSetupStore}from"./chunks/ui-components-DNIrc4p5.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
package/lib/theme.js CHANGED
@@ -1 +1 @@
1
- export{f$ as Provider,g0 as animations,g1 as opacity,g2 as palettes}from"./chunks/ui-components-DNrEjxrR.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{f$ as Provider,g0 as animations,g1 as opacity,g2 as palettes}from"./chunks/ui-components-DNIrc4p5.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
package/lib/types.js CHANGED
@@ -1 +1 @@
1
- export{q as ActionKeyTypes,r as ActionType,eL as AddNodeTypes,eM as AgentInjectedReason,eN as BooleanOperation,aj as CodeAttributesKeyTypes,eO as ConditionType,eP as Crud,K as CustomInstrumentationsKeyTypes,b2 as DesiredStateProgress,eQ as DestinationTypes,eR as EdgeTypes,E as EntityTypes,a7 as ExtractionDataFormat,H as FieldTypes,L as GolangCustomProbe,J as HeadersCollectionKeyTypes,dQ as InputTypes,eS as InstallationMethod,O as InstrumentationRuleType,eT as IntrumentationStatus,M as JavaCustomProbe,eU as JsonOperation,Y as K8sAttributesFrom,Q as K8sResourceKind,eV as K8sWorkloadContainerAgentConfigTracesHeadSamplingCheckConditionOperator,eW as ListDirection,N as NodeTypes,eX as NumberOperation,eY as OtelDistroName,eZ as OtherEntityTypes,b7 as OtherStatus,aI as OtherStatusType,al as PayloadCollectionKeyTypes,P as PlatformType,e_ as PodContainerLifecycleStatus,e$ as PodContainerStatus,f0 as PodPhase,f1 as Profile,br as ProgrammingLanguages,f2 as SIGNAL_KEY_TO_TYPE,f3 as SIGNAL_TYPE_TO_KEY,f4 as SignalKey,B as SignalType,f5 as SortDirection,S as StatusType,f6 as StringOperation,T as Tier,f7 as WorkloadRolloutReason,dt as WorkloadRolloutStatus}from"./chunks/ui-components-DNrEjxrR.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{q as ActionKeyTypes,r as ActionType,eL as AddNodeTypes,eM as AgentInjectedReason,eN as BooleanOperation,aj as CodeAttributesKeyTypes,eO as ConditionType,eP as Crud,K as CustomInstrumentationsKeyTypes,b2 as DesiredStateProgress,eQ as DestinationTypes,eR as EdgeTypes,E as EntityTypes,a7 as ExtractionDataFormat,H as FieldTypes,L as GolangCustomProbe,J as HeadersCollectionKeyTypes,dQ as InputTypes,eS as InstallationMethod,O as InstrumentationRuleType,eT as IntrumentationStatus,M as JavaCustomProbe,eU as JsonOperation,Y as K8sAttributesFrom,Q as K8sResourceKind,eV as K8sWorkloadContainerAgentConfigTracesHeadSamplingCheckConditionOperator,eW as ListDirection,N as NodeTypes,eX as NumberOperation,eY as OtelDistroName,eZ as OtherEntityTypes,b7 as OtherStatus,aI as OtherStatusType,al as PayloadCollectionKeyTypes,P as PlatformType,e_ as PodContainerLifecycleStatus,e$ as PodContainerStatus,f0 as PodPhase,f1 as Profile,br as ProgrammingLanguages,f2 as SIGNAL_KEY_TO_TYPE,f3 as SIGNAL_TYPE_TO_KEY,f4 as SignalKey,B as SignalType,f5 as SortDirection,S as StatusType,f6 as StringOperation,T as Tier,f7 as WorkloadRolloutReason,dt as WorkloadRolloutStatus}from"./chunks/ui-components-DNIrc4p5.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
package/lib/visuals.js CHANGED
@@ -1 +1 @@
1
- export{f8 as VISUAL_ODIGOS_LOGO_HEIGHT,f9 as VISUAL_ODIGOS_LOGO_WIDTH,eI as VisualGreenRings,fa as VisualOdigosLogo,c1 as VisualPurpleRings}from"./chunks/ui-components-DNrEjxrR.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
1
+ export{f8 as VISUAL_ODIGOS_LOGO_HEIGHT,f9 as VISUAL_ODIGOS_LOGO_WIDTH,eI as VisualGreenRings,fa as VisualOdigosLogo,c1 as VisualPurpleRings}from"./chunks/ui-components-DNIrc4p5.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odigos/ui-kit",
3
- "version": "0.0.246",
3
+ "version": "0.0.248",
4
4
  "author": "Odigos",
5
5
  "license": "MIT",
6
6
  "repository": {