@odigos/ui-kit 0.0.241 → 0.0.242

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.242](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.241...ui-kit-v0.0.242) (2026-06-02)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * text nits ([#966](https://github.com/odigos-io/ui-kit/issues/966)) ([5dc0bea](https://github.com/odigos-io/ui-kit/commit/5dc0bead95b82b41c5ea854e38194b3ddd808d61))
9
+ * update pod status messages and improve no data handling ([#964](https://github.com/odigos-io/ui-kit/issues/964)) ([0b83dc2](https://github.com/odigos-io/ui-kit/commit/0b83dc2c75cd8386b7dde4444094bff059359beb))
10
+
3
11
  ## [0.0.241](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.240...ui-kit-v0.0.241) (2026-06-01)
4
12
 
5
13
 
@@ -1,4 +1,4 @@
1
- import{jsx as e,Fragment as t,jsxs as r}from"react/jsx-runtime";import{useMemo as n,useContext as o,createContext as a,Fragment as s}from"react";import{t as i,T as u,P as l,u as c,a as p,b as d,c as f}from"./ui-components-DeKNGyn7.js";import h from"styled-components";const m=a({platformType:l.K8s,tier:u.Community,version:"v0.0.0"}),v=({children:t,platformType:r,tier:o,version:a})=>{const s=n(()=>({platformType:r,tier:o,version:a}),[r,o,a]);return e(m.Provider,{value:s,children:t})},g=(e,t)=>!t||i(e)>=i(t),y=e=>{const t=o(m),r=g(t.version,e),n=t.platformType===l.Vm;return{...t,isVersionSupported:r,isVm:n,isEnterprise:t.tier===u.Onprem}};function x(e){return!e||!e.sources?.length&&!e.namespaces?.length&&!e.languages?.length}function k(e){return e?{sources:e.sources?[...e.sources]:[],namespaces:e.namespaces?[...e.namespaces]:[],languages:e.languages?[...e.languages]:[]}:{sources:[],namespaces:[],languages:[]}}function S(e){return null==e||0===e}function A(e){return{name:"",notes:"",disabled:!1,ruleType:"Relevance",sourceScopes:{sources:[],namespaces:[],languages:[]},operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:"",durationPreset:"500",customDurationMs:"",keepErrors:!1,percentageMode:"costReduction"===e?"sample":"all",percentagePreset:"0",customPercentage:""}}function T(e){return x(e.sourceScopes)?null:e.sourceScopes}function P(e){return T(e)}function R(e){if("all"===e.percentageMode)return null;if("custom"===e.percentagePreset){const t=parseFloat(e.customPercentage);return isNaN(t)?null:t}return parseFloat(e.percentagePreset)}function b(e){if("custom"===e.durationPreset){const t=parseFloat(e.customDurationMs);return isNaN(t)?null:t}return parseInt(e.durationPreset,10)}function M(e){return{httpServer:{[e.routeType]:e.route||null,method:e.method||null}}}function D(e){return"all"===e.operationType?null:"httpServer"===e.operationType?M(e):"httpClient"===e.operationType?{httpClient:{serverAddress:e.serverAddress||null,["route"===e.routeType?"templatedPath":"templatedPathPrefix"]:e.route||null,method:e.method||null}}:null}function I(e){return"all"===e.operationType?null:"httpServer"===e.operationType?M(e):"kafkaConsumer"===e.operationType?{kafkaConsumer:{kafkaTopic:e.kafkaTopic||null}}:"kafkaProducer"===e.operationType?{kafkaProducer:{kafkaTopic:e.kafkaTopic||null}}:null}function $(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:T(e),percentageAtMost:R(e),operation:D(e)}}function C(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:T(e),error:e.keepErrors,durationAtLeastMs:"Duration"===e.ruleType?b(e):null,percentageAtLeast:R(e),operation:I(e)}}function E(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:T(e),percentageAtMost:R(e)??0,operation:I(e)}}function w(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:P(e),operation:D(e),percentageAtMost:R(e),notes:e.notes||null}}function L(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:P(e),error:"Error"===e.ruleType,durationAtLeastMs:"Duration"===e.ruleType?b(e):null,operation:I(e),percentageAtLeast:R(e),notes:e.notes||null}}function O(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:P(e),operation:I(e),percentageAtMost:R(e)??0,notes:e.notes||null}}const N=["5000","1000","500","100","50"],H=["50","25","10","1","0.5","0.1","0"];function K(e){if(null==e)return{percentageMode:"all",percentagePreset:"0",customPercentage:""};const t=H.find(t=>Number(t)===e);return t?{percentageMode:"sample",percentagePreset:t,customPercentage:""}:{percentageMode:"sample",percentagePreset:"custom",customPercentage:String(e)}}function j(e){if(!e)return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""};const t=e;if(t.httpServer){return{operationType:"httpServer",routeType:t.httpServer.routePrefix?"routePrefix":"route",route:t.httpServer.route||t.httpServer.routePrefix||"",serverAddress:"",method:t.httpServer.method||"",kafkaTopic:""}}return t.kafkaConsumer?{operationType:"kafkaConsumer",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:t.kafkaConsumer.kafkaTopic||""}:t.kafkaProducer?{operationType:"kafkaProducer",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:t.kafkaProducer.kafkaTopic||""}:{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""}}function z(e){const t=A(),r=k(e.rule.sourceScopes);const n=function(e){return"highlyRelevant"!==e.category?"Relevance":e.rule.error?"Error":null!=e.rule.durationAtLeastMs?"Duration":"Relevance"}(e);let o,a,s={durationPreset:"500",customDurationMs:""},i=!1;switch(e.category){case"noisy":o=function(e){const t=e.rule.operation;if(!t)return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""};if(t.httpServer)return{operationType:"httpServer",routeType:t.httpServer.routePrefix?"routePrefix":"route",route:t.httpServer.route||t.httpServer.routePrefix||"",serverAddress:"",method:t.httpServer.method||"",kafkaTopic:""};if(t.httpClient)return{operationType:"httpClient",routeType:t.httpClient.templatedPathPrefix?"routePrefix":"route",route:t.httpClient.templatedPath||t.httpClient.templatedPathPrefix||"",serverAddress:t.httpClient.serverAddress||"",method:t.httpClient.method||"",kafkaTopic:""};return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""}}(e),a=S(u=e.rule.percentageAtMost)?{percentageMode:"all",percentagePreset:"0",customPercentage:""}:K(u);break;case"highlyRelevant":o=j(e.rule.operation),a=K(e.rule.percentageAtLeast),s=function(e){if(null==e)return{durationPreset:"500",customDurationMs:""};const t=N.find(t=>Number(t)===e);return t?{durationPreset:t,customDurationMs:""}:{durationPreset:"custom",customDurationMs:String(e)}}(e.rule.durationAtLeastMs),i=e.rule.error;break;case"costReduction":o=j(e.rule.operation),a=K(e.rule.percentageAtMost)}var u;return{...t,name:e.rule.name||"",notes:e.rule.notes||"",disabled:e.rule.disabled,ruleType:n,sourceScopes:r,...o,...s,keepErrors:i,...a}}var F;!function(e){e.Default="default",e.Action="action",e.Endpoint="endpoint",e.Scope="scope",e.Duration="duration"}(F||(F={}));const X=[F.Action,F.Endpoint,F.Scope,F.Duration],J=h.span`
1
+ import{jsx as e,Fragment as t,jsxs as r}from"react/jsx-runtime";import{useMemo as n,useContext as o,createContext as a,Fragment as s}from"react";import{t as i,T as u,P as l,u as c,a as p,b as d,c as f}from"./ui-components-DofONrt0.js";import h from"styled-components";const m=a({platformType:l.K8s,tier:u.Community,version:"v0.0.0"}),v=({children:t,platformType:r,tier:o,version:a})=>{const s=n(()=>({platformType:r,tier:o,version:a}),[r,o,a]);return e(m.Provider,{value:s,children:t})},g=(e,t)=>!t||i(e)>=i(t),y=e=>{const t=o(m),r=g(t.version,e),n=t.platformType===l.Vm;return{...t,isVersionSupported:r,isVm:n,isEnterprise:t.tier===u.Onprem}};function x(e){return!e||!e.sources?.length&&!e.namespaces?.length&&!e.languages?.length}function k(e){return e?{sources:e.sources?[...e.sources]:[],namespaces:e.namespaces?[...e.namespaces]:[],languages:e.languages?[...e.languages]:[]}:{sources:[],namespaces:[],languages:[]}}function S(e){return null==e||0===e}function A(e){return{name:"",notes:"",disabled:!1,ruleType:"Relevance",sourceScopes:{sources:[],namespaces:[],languages:[]},operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:"",durationPreset:"500",customDurationMs:"",keepErrors:!1,percentageMode:"costReduction"===e?"sample":"all",percentagePreset:"0",customPercentage:""}}function T(e){return x(e.sourceScopes)?null:e.sourceScopes}function P(e){return T(e)}function R(e){if("all"===e.percentageMode)return null;if("custom"===e.percentagePreset){const t=parseFloat(e.customPercentage);return isNaN(t)?null:t}return parseFloat(e.percentagePreset)}function b(e){if("custom"===e.durationPreset){const t=parseFloat(e.customDurationMs);return isNaN(t)?null:t}return parseInt(e.durationPreset,10)}function M(e){return{httpServer:{[e.routeType]:e.route||null,method:e.method||null}}}function D(e){return"all"===e.operationType?null:"httpServer"===e.operationType?M(e):"httpClient"===e.operationType?{httpClient:{serverAddress:e.serverAddress||null,["route"===e.routeType?"templatedPath":"templatedPathPrefix"]:e.route||null,method:e.method||null}}:null}function I(e){return"all"===e.operationType?null:"httpServer"===e.operationType?M(e):"kafkaConsumer"===e.operationType?{kafkaConsumer:{kafkaTopic:e.kafkaTopic||null}}:"kafkaProducer"===e.operationType?{kafkaProducer:{kafkaTopic:e.kafkaTopic||null}}:null}function $(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:T(e),percentageAtMost:R(e),operation:D(e)}}function C(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:T(e),error:e.keepErrors,durationAtLeastMs:"Duration"===e.ruleType?b(e):null,percentageAtLeast:R(e),operation:I(e)}}function E(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:T(e),percentageAtMost:R(e)??0,operation:I(e)}}function w(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:P(e),operation:D(e),percentageAtMost:R(e),notes:e.notes||null}}function L(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:P(e),error:"Error"===e.ruleType,durationAtLeastMs:"Duration"===e.ruleType?b(e):null,operation:I(e),percentageAtLeast:R(e),notes:e.notes||null}}function O(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:P(e),operation:I(e),percentageAtMost:R(e)??0,notes:e.notes||null}}const N=["5000","1000","500","100","50"],H=["50","25","10","1","0.5","0.1","0"];function K(e){if(null==e)return{percentageMode:"all",percentagePreset:"0",customPercentage:""};const t=H.find(t=>Number(t)===e);return t?{percentageMode:"sample",percentagePreset:t,customPercentage:""}:{percentageMode:"sample",percentagePreset:"custom",customPercentage:String(e)}}function j(e){if(!e)return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""};const t=e;if(t.httpServer){return{operationType:"httpServer",routeType:t.httpServer.routePrefix?"routePrefix":"route",route:t.httpServer.route||t.httpServer.routePrefix||"",serverAddress:"",method:t.httpServer.method||"",kafkaTopic:""}}return t.kafkaConsumer?{operationType:"kafkaConsumer",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:t.kafkaConsumer.kafkaTopic||""}:t.kafkaProducer?{operationType:"kafkaProducer",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:t.kafkaProducer.kafkaTopic||""}:{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""}}function z(e){const t=A(),r=k(e.rule.sourceScopes);const n=function(e){return"highlyRelevant"!==e.category?"Relevance":e.rule.error?"Error":null!=e.rule.durationAtLeastMs?"Duration":"Relevance"}(e);let o,a,s={durationPreset:"500",customDurationMs:""},i=!1;switch(e.category){case"noisy":o=function(e){const t=e.rule.operation;if(!t)return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""};if(t.httpServer)return{operationType:"httpServer",routeType:t.httpServer.routePrefix?"routePrefix":"route",route:t.httpServer.route||t.httpServer.routePrefix||"",serverAddress:"",method:t.httpServer.method||"",kafkaTopic:""};if(t.httpClient)return{operationType:"httpClient",routeType:t.httpClient.templatedPathPrefix?"routePrefix":"route",route:t.httpClient.templatedPath||t.httpClient.templatedPathPrefix||"",serverAddress:t.httpClient.serverAddress||"",method:t.httpClient.method||"",kafkaTopic:""};return{operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:""}}(e),a=S(u=e.rule.percentageAtMost)?{percentageMode:"all",percentagePreset:"0",customPercentage:""}:K(u);break;case"highlyRelevant":o=j(e.rule.operation),a=K(e.rule.percentageAtLeast),s=function(e){if(null==e)return{durationPreset:"500",customDurationMs:""};const t=N.find(t=>Number(t)===e);return t?{durationPreset:t,customDurationMs:""}:{durationPreset:"custom",customDurationMs:String(e)}}(e.rule.durationAtLeastMs),i=e.rule.error;break;case"costReduction":o=j(e.rule.operation),a=K(e.rule.percentageAtMost)}var u;return{...t,name:e.rule.name||"",notes:e.rule.notes||"",disabled:e.rule.disabled,ruleType:n,sourceScopes:r,...o,...s,keepErrors:i,...a}}var F;!function(e){e.Default="default",e.Action="action",e.Endpoint="endpoint",e.Scope="scope",e.Duration="duration"}(F||(F={}));const X=[F.Action,F.Endpoint,F.Scope,F.Duration],J=h.span`
2
2
  font-family: ${({theme:e,$isMono:t})=>t?e.font_family.secondary:e.font_family.primary};
3
3
  font-size: ${({theme:e})=>e.v2.text.size.xxs}px;
4
4
  line-height: 20px;
@@ -1,4 +1,4 @@
1
- import{ap as e,ab as a,R as t,a6 as l,a7 as r,dP as i,a0 as n,aB as s,ae as o,a4 as d,O as c,a8 as u,a2 as p,a3 as h,T as g,h as m,F as v,$ as b,ad as f,ay as y,dQ as x,dR as S,aI as C,dS as k,b as T,dT as w,ai as $,c as P,dU as A,dV as M,dW as O,dX as L,dY as z,dZ as D,d_ as I,cx as R,d$ as X,e0 as N,e1 as B,e2 as E,e3 as H,bK as V,aa as j,e4 as q,e5 as U,e6 as G,e7 as K,e8 as J,e9 as W,ea as F,eb as Y,ec as Z,ed as Q,ee as _,az as ee,ef as ae,eg as te,eh as le,ei as re,ej as ie,bx as ne,ek as se,el as oe,em as de,en as ce,eo as ue,ep as pe,eq as he,er as ge,a9 as me,es as ve,et as be,eu as fe,ev as ye,ag as xe,ew as Se,S as Ce,ex as ke,ey as Te,ez as we,eA as $e,eB as Pe,dc as Ae,ao as Me,bn as Oe,w as Le,d7 as ze,a1 as De,eC as Ie,b9 as Re,aA as Xe,N as Ne,o as Be,aE as Ee,dp as He,b8 as Ve,be as je,b7 as qe,bN as Ue,aR as Ge,eD as Ke}from"./ui-components-DeKNGyn7.js";import{jsx as Je,jsxs as We,Fragment as Fe}from"react/jsx-runtime";import{u as Ye,w as Ze,x as Qe,C as _e,y as ea,z as aa,A as ta,B as la,D as ra,E as ia,F as na}from"./helpers-L572q0MU.js";import{OdigosLogoTextCentral as sa,OdigosLogoTextEnterprise as oa,OdigosLogoTextCommunity as da,OdigosLogoTextColoredCentral as ca,OdigosLogoTextColoredEnterprise as ua,OdigosLogoTextColoredCommunity as pa,EditIcon as ha,ArrowLeftIcon as ga,ArrowRightIcon as ma,VSquareIcon as va,VIcon as ba,CopyIcon as fa,YamlIcon as ya}from"../icons.js";import{useCallback as xa,useMemo as Sa,useState as Ca,useRef as ka,useEffect as Ta,forwardRef as wa,useImperativeHandle as $a}from"react";import Pa from"styled-components";const Aa=({isOpen:t,onClose:l,onDeny:r,onApprove:i})=>Je(e,{title:"Discard changes?",description:"You have unsaved changes.\nIf you cancel now, your changes won't be saved.",isOpen:t,onClose:l,denyButton:{label:"Keep editing",variant:a.Secondary,onClick:()=>{r?.(),l()}},approveButton:{label:"Discard changes",variant:a.Primary,onClick:()=>{i?.(),l()}}}),Ma=({isOpen:t,onClose:l,onDeny:r,onApprove:i,action:n="delete",target:s,description:o,overrideApproveButtonLabel:d,overrideDenyButtonLabel:c})=>{const u=n.charAt(0).toUpperCase()+n.substring(1),p=s?.endsWith("s")?"these":"this";return Je(e,{title:`${u}${s?` ${s}`:""}?`,description:o??`Are you sure you want to ${n}${s?` ${p} ${s}`:""}?`,isOpen:t,onClose:l,denyButton:{label:c??"Go back",variant:a.Secondary,onClick:()=>{r?.(),l()}},approveButton:{label:d??u,variant:a.Primary,onClick:()=>{i?.(),l()}}})},Oa=({componentType:e,inputType:a,name:g,label:m,tooltip:v,badge:b,placeholder:f,required:y,disabled:x,value:S,setValue:C,errorMessage:k,warnMessage:T,helpMessage:w,dropdownOptions:$,dropdownNoSearch:P,dropdownNoCheckbox:A,timeUnits:M,timeDefaultUnit:O})=>{switch(e){case t.Input:return Je(p,{name:g,type:a,label:m,tooltip:v,badge:b,placeholder:f,required:y,disabled:x,value:S??"",onChange:e=>{const t=e.target.value;C(a===h.Number?""===t?null:Number(t):t)},errorMessage:k,warnMessage:T,helpMessage:w},g);case t.MultiInput:return Je(u,{name:g,label:m,tooltip:v,badge:b,placeholder:f,required:y,disabled:x,values:Array.isArray(S)?S:c(S,[]),setValues:e=>C(e),errorMessage:k,warnMessage:T,helpMessage:w},g);case t.KeyValuePair:return Je(d,{name:g,label:m,tooltip:v,badge:b,required:y,disabled:x,limitFieldsPerRow:2,columns:[{keyName:"key",label:"Key"},{keyName:"value",label:"Value"}],values:Array.isArray(S)?S:c(S,[]),setValues:e=>C(e),errorMessage:k,warnMessage:T,helpMessage:w},g);case t.TextArea:return Je(o,{name:g,label:m,tooltip:v,badge:b,required:y,disabled:x,placeholder:f,value:S??"",onChange:e=>C(e.target.value),errorMessage:k,warnMessage:T,helpMessage:w},g);case t.Dropdown:return Je(s,{name:g,label:m,tooltip:v,badge:b,placeholder:f,required:y,disabled:x,withSearch:!P,options:$?.map(e=>({id:e.id||"",label:e.label||"",withCheckbox:!A}))||[],values:S?[String(S)]:[],setValues:e=>C(e[0]),errorMessage:k,warnMessage:T,helpMessage:w},g);case t.Checkbox:return Je(n,{name:g,label:m,tooltip:v,badge:b,value:!0===S||"true"===S,onChange:e=>C(e),disabled:x,errorMessage:k,warnMessage:T,helpMessage:w},g);case t.Time:return Je(i,{name:g,label:m,tooltip:v,badge:b,placeholder:f,required:y,disabled:x,value:S??"",setValue:e=>C(e),units:M,defaultUnit:O,errorMessage:k,warnMessage:T,helpMessage:w},g);case t.Toggle:return Je(l,{name:g,labelAlign:r.Right,label:m,tooltip:v,badge:b,value:!0===S||"true"===S,onChange:e=>C(e),disabled:x,errorMessage:k,warnMessage:T,helpMessage:w},g);default:return null}},La=({size:e=200,central:a=!1,useInline:t=!1})=>{const{tier:l}=Ye();if(t){if(a)return Je(sa,{size:e});switch(l){case g.Community:return Je(da,{size:e});case g.Onprem:return Je(oa,{size:e});default:return null}}if(a)return Je(ca,{size:e});switch(l){case g.Community:return Je(pa,{size:e});case g.Onprem:return Je(ua,{size:e});default:return null}},za=[{value:"50",label:"50%"},{value:"25",label:"25%"},{value:"10",label:"10%"},{value:"1",label:"1%"},{value:"custom",label:"Custom"}],Da=[{value:"10",label:"10%"},{value:"1",label:"1%"},{value:"0.5",label:"0.5%"},{value:"0.1",label:"0.1%"},{value:"custom",label:"Custom"}],Ia=[{value:"5000",label:"5s"},{value:"1000",label:"1s"},{value:"500",label:"500ms"},{value:"100",label:"100ms"},{value:"50",label:"50ms"},{value:"custom",label:"Custom"}],Ra=({description:e,options:a,selected:t,onSelect:l,customName:r,customLabel:i,customPlaceholder:n,customValue:s,onCustomChange:o,customInputType:d=h.Number,customMin:c,customMax:u})=>We(m,{$gap:16,$alignItems:"flex-end",children:[We(v,{$gap:6,children:[Je(b,{label:e}),Je(f,{options:a,selected:t,setSelected:l})]}),"custom"===t&&Je(p,{name:r,label:i,placeholder:n,type:d,value:s,onChange:o,width:160,min:c,max:u})]}),Xa=()=>{},Na=e=>e.readOnly?Je(Ba,{rule:e.rule}):Je(Ea,{ruleType:e.ruleType,formState:e.formState,onChange:e.onChange}),Ba=({rule:e})=>{const a=null!=e.durationAtLeastMs;return e.error?Je(y,{richTitle:{title:x},children:Je(l,{name:"sampling-view-toggle-keep-errors",onChange:Xa,value:!0,size:C.S,label:S,labelAlign:r.Right})}):a?Je(y,{richTitle:{title:k},children:We("div",{children:[Je(T,{size:P.XXXS,color:$.Secondary,children:w}),Je(T,{size:P.XS,children:`${e.durationAtLeastMs}ms`})]})}):null},Ea=({ruleType:e,formState:a,onChange:t})=>{const i=xa(e=>t({durationPreset:e}),[t]),n=xa(e=>t({customDurationMs:e.target.value}),[t]);return"Error"===e?Je(y,{richTitle:{title:x,subTitle:A},children:Je(l,{name:"sampling-toggle-keep-errors",value:!0,onChange:Xa,size:C.S,label:S,labelAlign:r.Right})}):"Duration"===e?Je(y,{richTitle:{title:k,subTitle:M},children:Je(Ra,{description:w,options:Ia,selected:a.durationPreset,onSelect:i,customName:"sampling-input-custom-duration",customLabel:O,customPlaceholder:"200ms",customValue:a.customDurationMs,onCustomChange:n})}):null},Ha=Pa.div`
1
+ import{ap as e,ab as a,R as t,a6 as l,a7 as r,dP as i,a0 as n,aB as s,ae as o,a4 as d,O as c,a8 as u,a2 as p,a3 as h,T as g,h as m,F as v,$ as b,ad as f,ay as y,dQ as x,dR as S,aI as C,dS as k,b as T,dT as w,ai as $,c as P,dU as A,dV as M,dW as O,dX as L,dY as z,dZ as D,d_ as I,cx as R,d$ as X,e0 as N,e1 as B,e2 as E,e3 as H,bK as V,aa as j,e4 as q,e5 as U,e6 as G,e7 as K,e8 as J,e9 as W,ea as F,eb as Y,ec as Z,ed as Q,ee as _,az as ee,ef as ae,eg as te,eh as le,ei as re,ej as ie,bx as ne,ek as se,el as oe,em as de,en as ce,eo as ue,ep as pe,eq as he,er as ge,a9 as me,es as ve,et as be,eu as fe,ev as ye,ag as xe,ew as Se,S as Ce,ex as ke,ey as Te,ez as we,eA as $e,eB as Pe,dc as Ae,ao as Me,bn as Oe,w as Le,d7 as ze,a1 as De,eC as Ie,b9 as Re,aA as Xe,N as Ne,o as Be,aE as Ee,dp as He,b8 as Ve,be as je,b7 as qe,bN as Ue,aR as Ge,eD as Ke}from"./ui-components-DofONrt0.js";import{jsx as Je,jsxs as We,Fragment as Fe}from"react/jsx-runtime";import{u as Ye,w as Ze,x as Qe,C as _e,y as ea,z as aa,A as ta,B as la,D as ra,E as ia,F as na}from"./helpers-flEStb5l.js";import{OdigosLogoTextCentral as sa,OdigosLogoTextEnterprise as oa,OdigosLogoTextCommunity as da,OdigosLogoTextColoredCentral as ca,OdigosLogoTextColoredEnterprise as ua,OdigosLogoTextColoredCommunity as pa,EditIcon as ha,ArrowLeftIcon as ga,ArrowRightIcon as ma,VSquareIcon as va,VIcon as ba,CopyIcon as fa,YamlIcon as ya}from"../icons.js";import{useCallback as xa,useMemo as Sa,useState as Ca,useRef as ka,useEffect as Ta,forwardRef as wa,useImperativeHandle as $a}from"react";import Pa from"styled-components";const Aa=({isOpen:t,onClose:l,onDeny:r,onApprove:i})=>Je(e,{title:"Discard changes?",description:"You have unsaved changes.\nIf you cancel now, your changes won't be saved.",isOpen:t,onClose:l,denyButton:{label:"Keep editing",variant:a.Secondary,onClick:()=>{r?.(),l()}},approveButton:{label:"Discard changes",variant:a.Primary,onClick:()=>{i?.(),l()}}}),Ma=({isOpen:t,onClose:l,onDeny:r,onApprove:i,action:n="delete",target:s,description:o,overrideApproveButtonLabel:d,overrideDenyButtonLabel:c})=>{const u=n.charAt(0).toUpperCase()+n.substring(1),p=s?.endsWith("s")?"these":"this";return Je(e,{title:`${u}${s?` ${s}`:""}?`,description:o??`Are you sure you want to ${n}${s?` ${p} ${s}`:""}?`,isOpen:t,onClose:l,denyButton:{label:c??"Go back",variant:a.Secondary,onClick:()=>{r?.(),l()}},approveButton:{label:d??u,variant:a.Primary,onClick:()=>{i?.(),l()}}})},Oa=({componentType:e,inputType:a,name:g,label:m,tooltip:v,badge:b,placeholder:f,required:y,disabled:x,value:S,setValue:C,errorMessage:k,warnMessage:T,helpMessage:w,dropdownOptions:$,dropdownNoSearch:P,dropdownNoCheckbox:A,timeUnits:M,timeDefaultUnit:O})=>{switch(e){case t.Input:return Je(p,{name:g,type:a,label:m,tooltip:v,badge:b,placeholder:f,required:y,disabled:x,value:S??"",onChange:e=>{const t=e.target.value;C(a===h.Number?""===t?null:Number(t):t)},errorMessage:k,warnMessage:T,helpMessage:w},g);case t.MultiInput:return Je(u,{name:g,label:m,tooltip:v,badge:b,placeholder:f,required:y,disabled:x,values:Array.isArray(S)?S:c(S,[]),setValues:e=>C(e),errorMessage:k,warnMessage:T,helpMessage:w},g);case t.KeyValuePair:return Je(d,{name:g,label:m,tooltip:v,badge:b,required:y,disabled:x,limitFieldsPerRow:2,columns:[{keyName:"key",label:"Key"},{keyName:"value",label:"Value"}],values:Array.isArray(S)?S:c(S,[]),setValues:e=>C(e),errorMessage:k,warnMessage:T,helpMessage:w},g);case t.TextArea:return Je(o,{name:g,label:m,tooltip:v,badge:b,required:y,disabled:x,placeholder:f,value:S??"",onChange:e=>C(e.target.value),errorMessage:k,warnMessage:T,helpMessage:w},g);case t.Dropdown:return Je(s,{name:g,label:m,tooltip:v,badge:b,placeholder:f,required:y,disabled:x,withSearch:!P,options:$?.map(e=>({id:e.id||"",label:e.label||"",withCheckbox:!A}))||[],values:S?[String(S)]:[],setValues:e=>C(e[0]),errorMessage:k,warnMessage:T,helpMessage:w},g);case t.Checkbox:return Je(n,{name:g,label:m,tooltip:v,badge:b,value:!0===S||"true"===S,onChange:e=>C(e),disabled:x,errorMessage:k,warnMessage:T,helpMessage:w},g);case t.Time:return Je(i,{name:g,label:m,tooltip:v,badge:b,placeholder:f,required:y,disabled:x,value:S??"",setValue:e=>C(e),units:M,defaultUnit:O,errorMessage:k,warnMessage:T,helpMessage:w},g);case t.Toggle:return Je(l,{name:g,labelAlign:r.Right,label:m,tooltip:v,badge:b,value:!0===S||"true"===S,onChange:e=>C(e),disabled:x,errorMessage:k,warnMessage:T,helpMessage:w},g);default:return null}},La=({size:e=200,central:a=!1,useInline:t=!1})=>{const{tier:l}=Ye();if(t){if(a)return Je(sa,{size:e});switch(l){case g.Community:return Je(da,{size:e});case g.Onprem:return Je(oa,{size:e});default:return null}}if(a)return Je(ca,{size:e});switch(l){case g.Community:return Je(pa,{size:e});case g.Onprem:return Je(ua,{size:e});default:return null}},za=[{value:"50",label:"50%"},{value:"25",label:"25%"},{value:"10",label:"10%"},{value:"1",label:"1%"},{value:"custom",label:"Custom"}],Da=[{value:"10",label:"10%"},{value:"1",label:"1%"},{value:"0.5",label:"0.5%"},{value:"0.1",label:"0.1%"},{value:"custom",label:"Custom"}],Ia=[{value:"5000",label:"5s"},{value:"1000",label:"1s"},{value:"500",label:"500ms"},{value:"100",label:"100ms"},{value:"50",label:"50ms"},{value:"custom",label:"Custom"}],Ra=({description:e,options:a,selected:t,onSelect:l,customName:r,customLabel:i,customPlaceholder:n,customValue:s,onCustomChange:o,customInputType:d=h.Number,customMin:c,customMax:u})=>We(m,{$gap:16,$alignItems:"flex-end",children:[We(v,{$gap:6,children:[Je(b,{label:e}),Je(f,{options:a,selected:t,setSelected:l})]}),"custom"===t&&Je(p,{name:r,label:i,placeholder:n,type:d,value:s,onChange:o,width:160,min:c,max:u})]}),Xa=()=>{},Na=e=>e.readOnly?Je(Ba,{rule:e.rule}):Je(Ea,{ruleType:e.ruleType,formState:e.formState,onChange:e.onChange}),Ba=({rule:e})=>{const a=null!=e.durationAtLeastMs;return e.error?Je(y,{richTitle:{title:x},children:Je(l,{name:"sampling-view-toggle-keep-errors",onChange:Xa,value:!0,size:C.S,label:S,labelAlign:r.Right})}):a?Je(y,{richTitle:{title:k},children:We("div",{children:[Je(T,{size:P.XXXS,color:$.Secondary,children:w}),Je(T,{size:P.XS,children:`${e.durationAtLeastMs}ms`})]})}):null},Ea=({ruleType:e,formState:a,onChange:t})=>{const i=xa(e=>t({durationPreset:e}),[t]),n=xa(e=>t({customDurationMs:e.target.value}),[t]);return"Error"===e?Je(y,{richTitle:{title:x,subTitle:A},children:Je(l,{name:"sampling-toggle-keep-errors",value:!0,onChange:Xa,size:C.S,label:S,labelAlign:r.Right})}):"Duration"===e?Je(y,{richTitle:{title:k,subTitle:M},children:Je(Ra,{description:w,options:Ia,selected:a.durationPreset,onSelect:i,customName:"sampling-input-custom-duration",customLabel:O,customPlaceholder:"200ms",customValue:a.customDurationMs,onCustomChange:n})}):null},Ha=Pa.div`
2
2
  display: flex;
3
3
  gap: 32px;
4
4
  `,Va=Pa.div`
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{useState as t,useCallback as a,useMemo as n,useContext as r,createContext as s,useRef as o,useEffect as i}from"react";import{v as l,w as d,A as c,x as m,y as u,z as p,B as h,G as f,H as g,J as v,q as b,K as y,L as S,M as D,O as E,Q as k,R as F,U as C,V as I,W as N,X as A,Y as w,Z as R,_ as P,T,E as x}from"./ui-components-DeKNGyn7.js";import{b as O,a as L,d as U,v as M,g as _,u as j}from"./helpers-L572q0MU.js";const V={type:"",disabled:!1,name:"",notes:"",signals:[],fields:{}},K=s(null),G="All row fields are required",H="At least one row is required",q=h.LATENCY_HTTP_ROUTE,z=e=>"string"==typeof e?!e.trim():f(e),Q=(e,t)=>!!e&&t.every(t=>{const a=e[t];return Array.isArray(a)?a.length>0:!z(a)}),W=({children:r})=>{const[s,o]=t(null),i=l(V),g=a(e=>{i.resetFormData(),i.handleErrorChange(void 0,void 0,{}),e?.type&&i.handleFormChange("type",e.type),o(e)},[]),v=a(e=>{var t;i.resetFormData((({type:e,name:t,notes:a,disabled:n,signals:r,fields:s})=>({type:e,name:t||"",notes:a||"",disabled:!!n,signals:r??[],fields:s??{}}))(e)),i.handleErrorChange(void 0,void 0,{}),o((t=e.type,c.find(e=>e.type===t)??m.find(e=>e.type===t)??null))},[]),b=a(()=>{if(!s)return{errorMessage:"No action type selected",preparedFormData:d(V)};const e=(e=>{const t=d(e),a=t.fields||{},n=a[u.UrlTemplatizationRulesGroups];n?.length&&(a[u.UrlTemplatizationRulesGroups]=n.map(e=>({...e,templatizationRules:(e.templatizationRules||[]).filter(e=>!!e.template?.trim())})));const r=a[u.AttributeNamesToDelete];r?.length&&(a[u.AttributeNamesToDelete]=r.filter(e=>!!e?.trim()));const s=a[u.Renames];return s&&(a[u.Renames]=Object.fromEntries(Object.entries(s).filter(([e,t])=>!!e?.trim()&&!!t?.trim()))),t.fields=a,t})(i.formData),t={};f(e.signals)&&(t.signals=h.FIELD_IS_REQUIRED),s.type&&Object.assign(t,((e,t,a)=>{const n={},r=t.fields||{},s=a.fields||{};switch(e){case p.K8sAttributes:{const e=!(r[u.CollectContainerAttributes]||r[u.CollectReplicaSetAttributes]||r[u.CollectWorkloadId]||r[u.CollectClusterId]),t=!r[u.LabelsAttributes]?.length,a=!r[u.AnnotationsAttributes]?.length;e&&t&&a&&(n[u.CollectContainerAttributes]="Enable at least one option or add a label/annotation row");const s=r[u.LabelsAttributes];s?.some(e=>!Q(e,["labelKey","attributeKey","fromSources"]))&&(n[u.LabelsAttributes]=G);const o=r[u.AnnotationsAttributes];o?.some(e=>!Q(e,["annotationKey","attributeKey","fromSources"]))&&(n[u.AnnotationsAttributes]=G);break}case p.AddClusterInfo:{const e=r[u.ClusterAttributes];e?.length?e.some(e=>!Q(e,["attributeName","attributeStringValue"]))&&(n[u.ClusterAttributes]=G):n[u.ClusterAttributes]=H;break}case p.DeleteAttributes:{const e=s[u.AttributeNamesToDelete]||[],t=r[u.AttributeNamesToDelete]||[];t.length?e.length>t.length&&(n[u.AttributeNamesToDelete]=G):n[u.AttributeNamesToDelete]=e.length?G:H;break}case p.RenameAttributes:{const e=Object.entries(s[u.Renames]||{}),t=Object.entries(r[u.Renames]||{}),a=e.some(([e,t])=>!e?.trim()||!t?.trim());t.length?a&&(n[u.Renames]=G):n[u.Renames]=e.length?G:H;break}case p.PiiMasking:{const e=r[u.PiiCategories];e?.length||(n[u.PiiCategories]="Select at least one attribute to mask");break}case p.ErrorSampler:z(r[u.FallbackSamplingRatio])&&(n[u.FallbackSamplingRatio]=h.FIELD_IS_REQUIRED);break;case p.ProbabilisticSampler:z(r[u.SamplingPercentage])&&(n[u.SamplingPercentage]=h.FIELD_IS_REQUIRED);break;case p.LatencySampler:{const e=r[u.EndpointsFilters];e?.length?e.some(e=>!Q(e,["serviceName","httpRoute","minimumLatencyThreshold","fallbackSamplingRatio"]))?n[u.EndpointsFilters]=G:e.some(e=>!!e.httpRoute&&!e.httpRoute.startsWith("/"))&&(n[u.EndpointsFilters]=q):n[u.EndpointsFilters]=H;break}case p.ServiceNameSampler:{const e=r[u.ServicesNameFilters];e?.length?e.some(e=>!Q(e,["serviceName","samplingRatio","fallbackSamplingRatio"]))&&(n[u.ServicesNameFilters]=G):n[u.ServicesNameFilters]=H;break}case p.SpanAttributeSampler:{const e=r[u.AttributeFilters],t=["stringCondition","numberCondition","booleanCondition","jsonCondition"],a=new Set(["exists","is_valid_json","is_invalid_json","jsonpath_exists"]);e?.length?e.some(e=>{if(!Q(e,["serviceName","attributeKey","fallbackSamplingRatio"]))return!0;const n=e.condition||{},r=t.find(e=>!!n[e]);if(!r)return!0;const s=n[r]||{},o=s.operation;return!o||!(a.has(o)||!z(s.expectedValue))})&&(n[u.AttributeFilters]=G):n[u.AttributeFilters]=H;break}case p.URLTemplatization:{const e=r[u.UrlTemplatizationRulesGroups];(!e?.length||e.some(e=>!e.templatizationRules?.length))&&(n[u.UrlTemplatizationRulesGroups]="Each rule group needs at least one non-blank template");break}}return n})(s.type,e,i.formData)),i.handleErrorChange(void 0,void 0,t);return{errorMessage:Object.keys(t).length>0?"Invalid form values":void 0,preparedFormData:e}},[i,s]),y=n(()=>({selectedOption:s,onSelectOption:g,loadAction:v,genericForm:i,validateFormData:b}),[s,g,v,i,b]);return e(K.Provider,{value:y,children:r})},J=()=>{const e=r(K);if(!e)throw new Error("useActionFormContext must be used within an ActionFormContextProvider");return e},$={name:""},B=s(null),X=({children:r,defaultExcludeName:s=""})=>{const{dataStreams:i}=g(),[c,m]=t(void 0),[u,p]=t(s),[f,b]=t(void 0),[y,S]=t(null),D=o(null),E=l($),k=a(e=>{E.resetFormData({name:e}),E.handleErrorChange(void 0,void 0,{}),m(void 0),p(e),b(e),S(null),D.current=null},[]),F=a(()=>{const e=d(E.formData),t=(e=>{const t={};return e.name?v(e.name)||(t.name=h.ILLEGAL_K8S_LABEL):t.name=h.FIELD_IS_REQUIRED,t})(e);E.handleErrorChange(void 0,void 0,t);const a=Object.keys(t).length>0?h.REQUIRED_FIELDS:void 0;return m(a),{errorMessage:a,preparedFormData:e}},[E]),C=a(async e=>{const{errorMessage:t,preparedFormData:a}=F();if(t)return;const n=i.find(e=>e.name===a.name&&e.name!==u);if(n)return D.current=e,void S({preparedFormData:a,existingName:n.name,editingName:f});await e(a)},[F,i,u,f]),I=a(async()=>{const e=D.current,t=y?.preparedFormData;D.current=null,S(null),e&&t&&await e(t)},[y]),N=a(()=>{D.current=null,S(null)},[]),A=n(()=>({genericForm:E,loadDataStream:k,editingName:f,validateFormData:F,requestSubmit:C,pendingMerge:y,confirmMerge:I,cancelMerge:N,errorMessage:c,excludeName:u,setExcludeName:p}),[E,k,f,F,C,y,I,N,c,u]);return e(B.Provider,{value:A,children:r})},Y=()=>{const e=r(B);if(!e)throw new Error("useDataStreamFormContext must be used within a DataStreamFormContextProvider");return e},Z={type:"",name:"",currentStreamName:"",disabled:!1,exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[]},ee={activeForm:null,onChangeActiveForm:()=>{},loadDestination:()=>{},genericForm:void 0,validateFormData:()=>({isOk:!1,preparedFormData:d(Z)}),unsavedDestinations:[],thisUnsavedDestination:void 0,setUnsavedDestinations:()=>{},addUnsavedDestination:()=>{},updateUnsavedDestination:()=>{},deleteUnsavedDestination:()=>{}},te=s(ee),ae=e=>e.filter(e=>!!e).map(e=>{const{name:t,componentType:a,componentProperties:n,displayName:r,initialValue:s,renderCondition:o}=e,i=a===F.Dropdown,l=E(n,{});return{componentType:a,renderCondition:o,name:t,title:r,value:s,placeholder:l.placeholder||(i?"Select an option":void 0),options:i&&Array.isArray(l.values)?l.values.map(e=>({id:e,label:e})):void 0,...l}}),ne=({children:r})=>{const{selectedStreamName:s}=g(),o=b(e=>e.destinations),[c,m]=t(null),[u,p]=t(ee.unsavedDestinations),v=n(()=>"number"==typeof c?.unsavedIdx?u[c.unsavedIdx]:void 0,[c,u]),F=a((e,t)=>{c&&(p(t=>[...t,{...e,option:c.option}]),m(t?e=>e?{...e,listType:y.UNSAVED,unsavedIdx:u.length}:null:null))},[c,u.length]),C=a((e,t,a)=>{c&&(p(a=>a.map((a,n)=>n===e?{...a,...t,option:c.option}:a)),m(a?e=>e?{...e,listType:y.UNSAVED}:null:null))},[c]),I=a(e=>{p(t=>t.filter((t,a)=>a!==e)),m(null)},[]),N=l({...Z,currentStreamName:s});i(()=>{if(!c)return;if(v)return void N.resetFormData({...v.formData});if(c.listType===y.EXISTS&&c.option.id){const e=o.find(e=>e.id===c.option.id);if(e)return void N.resetFormData({type:e.destinationType.type,name:e.name||e.destinationType.displayName,currentStreamName:s,disabled:!!e.disabled,exportedSignals:{logs:!!e.exportedSignals?.logs,metrics:!!e.exportedSignals?.metrics,traces:!!e.exportedSignals?.traces,profiles:!!e.exportedSignals?.profiles},fields:c.dynamicFields.map(e=>({key:e.name,value:e.value}))})}const e=S(c.option.supportedSignals);N.resetFormData({type:c.option.type,name:c.option.displayName,currentStreamName:s,disabled:!1,exportedSignals:{logs:e.includes(D.Logs),metrics:e.includes(D.Metrics),traces:e.includes(D.Traces),profiles:e.includes(D.Profiles)},fields:c.dynamicFields.map(e=>({key:e.name,value:e.value}))})},[c,v]);const A=a(e=>{N.resetFormData(),N.handleErrorChange(void 0,void 0,{}),m(e?{...e,dynamicFields:e.option?.fields?ae(e.option.fields):[]}:null)},[]),w=a((e,t)=>{let a;for(const n of t){const t=n.items.find(t=>t.type===e.destinationType.type);if(t){a=t;break}}const n=E(e.fields,{}),r={id:e.id,type:e.destinationType.type,displayName:e.name||e.destinationType.displayName,selected:!0,testConnectionSupported:a?.testConnectionSupported??!1,supportedSignals:e.destinationType.supportedSignals,fields:a?a.fields.map(e=>({...e,initialValue:n[e.name]??e.initialValue})):[]},s=ae(r.fields);m({listType:y.EXISTS,option:r,dynamicFields:s})},[]),R=a(()=>{const e=d(N.formData),t={};c?.dynamicFields.forEach(({name:a,required:n})=>{if(n){const n=e.fields.find(e=>e.key===a)?.value;f(n)&&(t[a]=h.FIELD_IS_REQUIRED)}});return k(e.exportedSignals).length||(t.exportedSignals=h.FIELD_IS_REQUIRED),N.handleErrorChange(void 0,void 0,t),{errorMessage:0===Object.keys(t).length?void 0:"Invalid form values",preparedFormData:e}},[N,c]);return e(te.Provider,{value:{activeForm:c,onChangeActiveForm:A,loadDestination:w,genericForm:N,validateFormData:R,unsavedDestinations:u,thisUnsavedDestination:v,setUnsavedDestinations:p,addUnsavedDestination:F,updateUnsavedDestination:C,deleteUnsavedDestination:I},children:r})},re=()=>r(te),se={disabled:!1,ruleName:"",notes:"",workloads:null,instrumentationLibraries:null,payloadCollection:null,codeAttributes:null,headersCollection:null,customInstrumentations:null},oe=s(null),ie=({children:r})=>{const[s,o]=t(null),i=l(se),c=a(e=>{i.resetFormData(),i.handleErrorChange(void 0,void 0,{}),o(e)},[]),m=a(e=>{var t;i.resetFormData((({ruleName:e,notes:t,disabled:a,workloads:n,instrumentationLibraries:r,payloadCollection:s,codeAttributes:o,headersCollection:i,customInstrumentations:l})=>({ruleName:e||"",notes:t||"",disabled:!!a,workloads:n??null,instrumentationLibraries:r??null,payloadCollection:s??null,codeAttributes:o??null,headersCollection:i??null,customInstrumentations:l??null}))(e)),i.handleErrorChange(void 0,void 0,{}),o((t=e.type,C.find(e=>e.type===t)??null))},[]),u=a(()=>{if(!s)return{errorMessage:"No rule type selected",preparedFormData:d(se)};const e=(e=>{const t=d(e);return t.headersCollection?.[I.HeaderKeys]?.length&&(t.headersCollection[I.HeaderKeys]=t.headersCollection[I.HeaderKeys].map(e=>e.trim()).filter(e=>e)),t.customInstrumentations?.[N.Golang]?.length&&(t.customInstrumentations[N.Golang]=t.customInstrumentations[N.Golang].map(e=>new A(e.packageName,e.functionName,e.receiverName,e.receiverMethodName)).filter(e=>{return t=e,!!(t.packageName?.trim()||t.functionName?.trim()||t.receiverName?.trim()||t.receiverMethodName?.trim());var t})),t.customInstrumentations?.[N.Java]?.length&&(t.customInstrumentations[N.Java]=t.customInstrumentations[N.Java].map(e=>new w(e.className,e.methodName)).filter(e=>{return t=e,!(!t.className?.trim()&&!t.methodName?.trim());var t})),t})(i.formData),t=((e,t)=>{const a={};switch(e){case R.CodeAttributes:Object.values(t.codeAttributes||{}).some(e=>null!=e)||(a.codeAttributes="Code attributes are required");break;case R.PayloadCollection:Object.values(t.payloadCollection||{}).some(e=>null!=e)||(a.payloadCollection="Payload collection are required");break;case R.HeadersCollection:t.headersCollection?.[I.HeaderKeys]?.length||(a.headersCollection="Header keys are required");break;case R.CustomInstrumentation:{const e=t.customInstrumentations?.[N.Golang]||[],n=t.customInstrumentations?.[N.Java]||[];if(!e.length&&!n.length){a.customInstrumentations="Custom instrumentation are required";break}const r=e.findIndex(e=>!new A(e.packageName,e.functionName,e.receiverName,e.receiverMethodName).Verify());if(-1!==r){a.customInstrumentations=`Golang probe #${r+1} is invalid: provide a package name plus either a function name OR both a receiver name and receiver method name`;break}const s=n.findIndex(e=>!new w(e.className,e.methodName).Verify());if(-1!==s){a.customInstrumentations=`Java probe #${s+1} is invalid: both class name and method name are required`;break}break}}return a})(s.type,e);return i.handleErrorChange(void 0,void 0,t),{errorMessage:Object.keys(t).length>0?"Invalid form values":void 0,preparedFormData:e}},[i,s]),p=n(()=>({selectedOption:s,onSelectOption:c,loadRule:m,genericForm:i,validateFormData:u}),[s,c,m,i,u]);return e(oe.Provider,{value:p,children:r})},le=()=>{const e=r(oe);if(!e)throw new Error("useRuleFormContext must be used within a RuleFormContextProvider");return e};var de;!function(e){e.Create="create",e.View="view",e.EditAutoNoisy="edit-auto-noisy",e.EditAutoCostReduction="edit-auto-cost-reduction",e.EditAutoHighlyRelevant="edit-auto-highly-relevant"}(de||(de={}));const ce=s(null),me=["50","25","10","1"];function ue(e){const t=String(e);return me.includes(t)?t:"custom"}const pe=({category:r,sourceOptions:s=[],namespaceOptions:o=[],children:d})=>{const{formData:c,handleFormChange:m,resetFormData:u}=l(_(r)),[p,h]=t(null);i(()=>{u(_(r)),h(null)},[r]);const f=a(e=>{h(null),m(void 0,void 0,{...c,...e})},[c,m]),g=a(()=>{u(_(r)),h(null)},[r,u]),v=n(()=>({formType:de.Create,category:r,formData:c,handleChange:f,resetForm:g,duplicateWarning:p,setDuplicateWarning:h,sourceOptions:s,namespaceOptions:o}),[r,c,f,g,p,s,o]);return e(ce.Provider,{value:v,children:d})},he=({data:r,defaultEditMode:s,sourceOptions:d=[],namespaceOptions:c=[],children:m})=>{const[u,p]=t(!1),{formData:h,handleFormChange:f,resetFormData:g}=l(void 0),v=o(null),[b,y]=t(null);i(()=>{r!==v.current&&(v.current=r,r&&s?(g(M(r)),y(null),p(!0)):(p(!1),y(null)))},[r,s]);const S=a(e=>{y(null),f(void 0,void 0,{...h,...e})},[h,f]),D=a(()=>{r&&(g(M(r)),y(null),p(!0))},[r,g]),E=a(()=>{p(!1),y(null)},[]),k=n(()=>({formType:de.View,data:r,isEditing:u,formData:h,handleChange:S,handleEdit:D,handleCancelEdit:E,duplicateWarning:b,setDuplicateWarning:y,sourceOptions:d,namespaceOptions:c}),[r,u,h,S,D,E,b,d,c]);return e(ce.Provider,{value:k,children:m})};function fe(e){const[a,r]=t(()=>0===e?"all":"sample"),[s,o]=t(()=>ue(e)),[l,d]=t(()=>"custom"===ue(e)?String(e):"");i(()=>{r(0===e?"all":"sample");const t=ue(e);o(t),d("custom"===t?String(e):"")},[e]);const c=n(()=>"all"===a?0:"custom"===s?Number(l)||0:Number(s),[a,s,l]);return{percentageMode:a,setPercentageMode:r,percentagePreset:s,setPercentagePreset:o,customPercentage:l,setCustomPercentage:d,resolvedPercentage:c}}const ge=({enabled:a,keepPercentage:r,children:s})=>{const[o,l]=t(a),d=fe(r);i(()=>{l(a)},[a]);const c=n(()=>U({enabled:o,keepPercentage:d.resolvedPercentage}),[o,d.resolvedPercentage]),m=n(()=>({formType:de.EditAutoNoisy,localEnabled:o,setLocalEnabled:l,...d,summary:c}),[o,d,c]);return e(ce.Provider,{value:m,children:s})},ve=({enabled:a,dropPercentage:r,children:s})=>{const[o,l]=t(a),d=fe(r);i(()=>{l(a)},[a]);const c=n(()=>L(o?{disabled:!1,percentageAtMost:d.resolvedPercentage}:null),[o,d.resolvedPercentage]),m=n(()=>({formType:de.EditAutoCostReduction,localEnabled:o,setLocalEnabled:l,...d,summary:c}),[o,d,c]);return e(ce.Provider,{value:m,children:s})},be=({enabled:a,children:r})=>{const[s,o]=t(a);i(()=>{o(a)},[a]);const l=n(()=>O(s?{disabled:!1}:null),[s]),d=n(()=>({formType:de.EditAutoHighlyRelevant,localEnabled:s,setLocalEnabled:o,summary:l}),[s,l]);return e(ce.Provider,{value:d,children:r})},ye=t=>{switch(t.formType){case de.Create:return e(pe,{...t});case de.View:return e(he,{...t});case de.EditAutoNoisy:return e(ge,{...t});case de.EditAutoCostReduction:return e(ve,{...t});case de.EditAutoHighlyRelevant:return e(be,{...t})}};function Se(e){const t=r(ce);if(!t)throw new Error("useSamplingRulesFormContext must be used within a SamplingRulesFormProvider");if(e&&t.formType!==e)throw new Error(`Expected formType "${e}" but found "${t.formType}"`);return t}const De={otelServiceName:"",currentStreamName:""},Ee=s(null),ke=({children:r})=>{const[s,o]=t(void 0),i=l(De),c=a(e=>{i.resetFormData((({serviceName:e,id:t})=>({otelServiceName:e||t.name||"",currentStreamName:""}))(e)),i.handleErrorChange(void 0,void 0,{}),o(void 0)},[]),m=a(()=>{const e=d(i.formData);return i.handleErrorChange(void 0,void 0,{}),o(void 0),{errorMessage:void 0,preparedFormData:e}},[i]),u=n(()=>({loadSource:c,genericForm:i,validateFormData:m,errorMessage:s}),[c,i,m,s]);return e(Ee.Provider,{value:u,children:r})},Fe=()=>{const e=r(Ee);if(!e)throw new Error("useSourceEditFormContext must be used within a SourceEditFormContextProvider");return e},Ce=new Set([P.StaticPod]),Ie=e=>{const t=e.workloads.filter(({selected:e})=>e).length,a=e.workloads.length;return{selectedCount:t,isAllSourced:t>0&&t===a,isSomeSourced:t>0&&t<a,isFutureApps:e.selected||!1}},Ne=(e,t,a)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(a.showOnlySelected){const{isAllSourced:t,isSomeSourced:a,isFutureApps:n}=Ie(e);return t||a||n}return!0},Ae=(e,t,a)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!a.showOnlySelected||e.selected),we=s({snapshots:null,setSnapshots:()=>{},isFetching:!1,setIsFetching:()=>{},formData:[],handleSourceChange:()=>{},handleSelectAll:()=>{},formDiff:{},isFormDirty:!1}),Re=({children:r,selectedConnectionIds:s,initialInputs:o})=>{const{tier:l}=j(),c=l===T.Onprem,{selectedStreamName:m}=g(),[u,p]=t(!1),[h,f]=t(null),[v,b]=t([]);i(()=>{h&&b(e=>{const t=((e,t)=>d(((e,t)=>e.clusters.filter(({clusterId:e})=>!t||t.includes(e)))(e,t)))(h,s);return t.map(t=>{const a=e?.find(e=>e.clusterId===t.clusterId),n=a??t;if(o?.[t.clusterId]){const e=o[t.clusterId],a=d(n);return e.forEach(e=>{const t=a.namespaces.find(t=>t.name===e.namespace);if(t)if(e.name&&e.kind){const a=t.workloads.find(t=>t.name===e.name&&t.kind===e.kind);a&&(a.selected=e.selected)}else t.selected=e.selected,e.selected&&t.workloads.forEach(e=>{Ce.has(e.kind)&&!c||(e.selected=!0)})}),a}return n})})},[h,s,o]);const{formDiff:y,isFormDirty:S}=n(()=>{const e=((e,t,a)=>{const n={};return e.forEach(e=>{e.namespaces.forEach(r=>{const s=t.find(t=>t.clusterId===e.clusterId)?.namespaces.find(e=>e.name===r.name),o=r.selected||!1;if(o!==s?.selected)n[e.clusterId]||(n[e.clusterId]=[]),n[e.clusterId].push({namespace:r.name,selected:o,currentStreamName:a}),o?n[e.clusterId]=n[e.clusterId].filter(e=>e.namespace!==r.name||e.namespace===r.name&&(!e.name||!e.kind)):r.workloads.forEach(t=>{t.selected&&n[e.clusterId].push({namespace:r.name,name:t.name,kind:t.kind,selected:!0,currentStreamName:a})});else{const t=((e,t,a)=>{const n=[];return t.workloads.forEach(r=>{const s=e?.workloads.find(e=>e.name===r.name&&e.kind===r.kind);r.selected!==s?.selected&&n.push({namespace:t.name,name:r.name,kind:r.kind,selected:r.selected||!1,currentStreamName:a})}),n})(s,r,a);t.length>0&&(n[e.clusterId]||(n[e.clusterId]=[]),n[e.clusterId].push(...t))}})}),n})(v,h?.clusters||[],m);return{formDiff:e,isFormDirty:Object.keys(e).length>0}},[v,h,m]),D=a(e=>!c&&Ce.has(e),[c]),E=a(({clusterId:e,workloadId:t,selected:a,auto:n})=>{b(r=>{const s=d(r),o=s.findIndex(t=>t.clusterId===e);if(-1===o)return s;const i=s[o].namespaces.findIndex(e=>e.name===t.namespace);if(-1===i)return s;if(t.kind&&t.name){const e=s[o].namespaces[i].workloads.findIndex(e=>e.name===t.name&&e.kind===t.kind);if(-1===e)return s;const n="boolean"==typeof a?a:!s[o].namespaces[i].workloads[e].selected;if(s[o].namespaces[i].workloads[e].selected=n,n){s[o].namespaces[i].workloads.filter(e=>!D(e.kind)).every(e=>e.selected)&&(s[o].namespaces[i].selected=!0)}else s[o].namespaces[i].selected=!1}else{const e="boolean"==typeof n?n:!s[o].namespaces[i].selected;s[o].namespaces[i].selected=e,e?s[o].namespaces[i].workloads.forEach(e=>{D(e.kind)||(e.selected=!0)}):"boolean"!=typeof a||a||s[o].namespaces[i].workloads.forEach(e=>{e.selected=!1})}return s})},[D]),k=a(({clusterId:e,namespaceName:t,boolean:a,searchText:n="",searchBy:r="",filters:s})=>{b(o=>{const i=d(o),l=r===x.Namespace?n:"",c=r===x.Source?n:"",m=!!l||!!c||!!s?.showOnlySelected;return i.forEach((n,r)=>{e&&n.clusterId!==e||n.namespaces.forEach(({name:e,workloads:n},o)=>{if(!t||e===t)if(m)if(t){n.forEach((e,t)=>{a&&D(e.kind)||Ae(e,c,s||{showOnlySelected:!1})&&(i[r].namespaces[o].workloads[t].selected=a)});const e=i[r].namespaces[o].workloads.filter(e=>!D(e.kind)).every(e=>e.selected);i[r].namespaces[o].selected=e}else{if(!Ne(i[r].namespaces[o],l,s||{showOnlySelected:!1}))return;i[r].namespaces[o].selected=a,n.forEach((e,t)=>{a&&D(e.kind)||(i[r].namespaces[o].workloads[t].selected=a)})}else i[r].namespaces[o].selected=a,n.forEach((e,t)=>{a&&D(e.kind)||(i[r].namespaces[o].workloads[t].selected=a)})})}),i})},[D]);return e(we.Provider,{value:{snapshots:h,setSnapshots:f,isFetching:u,setIsFetching:p,formData:v,handleSourceChange:E,handleSelectAll:k,formDiff:y,isFormDirty:S},children:r})},Pe=()=>r(we);export{W as A,X as D,Ce as E,ie as R,de as S,ne as a,ye as b,ke as c,Re as d,Y as e,re as f,le as g,Se as h,Fe as i,Pe as j,Ae as k,Ne as l,Ie as m,J as u};
1
+ import{jsx as e}from"react/jsx-runtime";import{useState as t,useCallback as a,useMemo as n,useContext as r,createContext as s,useRef as o,useEffect as i}from"react";import{v as l,w as d,A as c,x as m,y as u,z as p,B as h,G as f,H as g,J as v,q as b,K as y,L as S,M as D,O as E,Q as k,R as F,U as C,V as I,W as N,X as A,Y as w,Z as R,_ as P,T,E as x}from"./ui-components-DofONrt0.js";import{b as O,a as L,d as U,v as M,g as _,u as j}from"./helpers-flEStb5l.js";const V={type:"",disabled:!1,name:"",notes:"",signals:[],fields:{}},K=s(null),G="All row fields are required",H="At least one row is required",q=h.LATENCY_HTTP_ROUTE,z=e=>"string"==typeof e?!e.trim():f(e),Q=(e,t)=>!!e&&t.every(t=>{const a=e[t];return Array.isArray(a)?a.length>0:!z(a)}),W=({children:r})=>{const[s,o]=t(null),i=l(V),g=a(e=>{i.resetFormData(),i.handleErrorChange(void 0,void 0,{}),e?.type&&i.handleFormChange("type",e.type),o(e)},[]),v=a(e=>{var t;i.resetFormData((({type:e,name:t,notes:a,disabled:n,signals:r,fields:s})=>({type:e,name:t||"",notes:a||"",disabled:!!n,signals:r??[],fields:s??{}}))(e)),i.handleErrorChange(void 0,void 0,{}),o((t=e.type,c.find(e=>e.type===t)??m.find(e=>e.type===t)??null))},[]),b=a(()=>{if(!s)return{errorMessage:"No action type selected",preparedFormData:d(V)};const e=(e=>{const t=d(e),a=t.fields||{},n=a[u.UrlTemplatizationRulesGroups];n?.length&&(a[u.UrlTemplatizationRulesGroups]=n.map(e=>({...e,templatizationRules:(e.templatizationRules||[]).filter(e=>!!e.template?.trim())})));const r=a[u.AttributeNamesToDelete];r?.length&&(a[u.AttributeNamesToDelete]=r.filter(e=>!!e?.trim()));const s=a[u.Renames];return s&&(a[u.Renames]=Object.fromEntries(Object.entries(s).filter(([e,t])=>!!e?.trim()&&!!t?.trim()))),t.fields=a,t})(i.formData),t={};f(e.signals)&&(t.signals=h.FIELD_IS_REQUIRED),s.type&&Object.assign(t,((e,t,a)=>{const n={},r=t.fields||{},s=a.fields||{};switch(e){case p.K8sAttributes:{const e=!(r[u.CollectContainerAttributes]||r[u.CollectReplicaSetAttributes]||r[u.CollectWorkloadId]||r[u.CollectClusterId]),t=!r[u.LabelsAttributes]?.length,a=!r[u.AnnotationsAttributes]?.length;e&&t&&a&&(n[u.CollectContainerAttributes]="Enable at least one option or add a label/annotation row");const s=r[u.LabelsAttributes];s?.some(e=>!Q(e,["labelKey","attributeKey","fromSources"]))&&(n[u.LabelsAttributes]=G);const o=r[u.AnnotationsAttributes];o?.some(e=>!Q(e,["annotationKey","attributeKey","fromSources"]))&&(n[u.AnnotationsAttributes]=G);break}case p.AddClusterInfo:{const e=r[u.ClusterAttributes];e?.length?e.some(e=>!Q(e,["attributeName","attributeStringValue"]))&&(n[u.ClusterAttributes]=G):n[u.ClusterAttributes]=H;break}case p.DeleteAttributes:{const e=s[u.AttributeNamesToDelete]||[],t=r[u.AttributeNamesToDelete]||[];t.length?e.length>t.length&&(n[u.AttributeNamesToDelete]=G):n[u.AttributeNamesToDelete]=e.length?G:H;break}case p.RenameAttributes:{const e=Object.entries(s[u.Renames]||{}),t=Object.entries(r[u.Renames]||{}),a=e.some(([e,t])=>!e?.trim()||!t?.trim());t.length?a&&(n[u.Renames]=G):n[u.Renames]=e.length?G:H;break}case p.PiiMasking:{const e=r[u.PiiCategories];e?.length||(n[u.PiiCategories]="Select at least one attribute to mask");break}case p.ErrorSampler:z(r[u.FallbackSamplingRatio])&&(n[u.FallbackSamplingRatio]=h.FIELD_IS_REQUIRED);break;case p.ProbabilisticSampler:z(r[u.SamplingPercentage])&&(n[u.SamplingPercentage]=h.FIELD_IS_REQUIRED);break;case p.LatencySampler:{const e=r[u.EndpointsFilters];e?.length?e.some(e=>!Q(e,["serviceName","httpRoute","minimumLatencyThreshold","fallbackSamplingRatio"]))?n[u.EndpointsFilters]=G:e.some(e=>!!e.httpRoute&&!e.httpRoute.startsWith("/"))&&(n[u.EndpointsFilters]=q):n[u.EndpointsFilters]=H;break}case p.ServiceNameSampler:{const e=r[u.ServicesNameFilters];e?.length?e.some(e=>!Q(e,["serviceName","samplingRatio","fallbackSamplingRatio"]))&&(n[u.ServicesNameFilters]=G):n[u.ServicesNameFilters]=H;break}case p.SpanAttributeSampler:{const e=r[u.AttributeFilters],t=["stringCondition","numberCondition","booleanCondition","jsonCondition"],a=new Set(["exists","is_valid_json","is_invalid_json","jsonpath_exists"]);e?.length?e.some(e=>{if(!Q(e,["serviceName","attributeKey","fallbackSamplingRatio"]))return!0;const n=e.condition||{},r=t.find(e=>!!n[e]);if(!r)return!0;const s=n[r]||{},o=s.operation;return!o||!(a.has(o)||!z(s.expectedValue))})&&(n[u.AttributeFilters]=G):n[u.AttributeFilters]=H;break}case p.URLTemplatization:{const e=r[u.UrlTemplatizationRulesGroups];(!e?.length||e.some(e=>!e.templatizationRules?.length))&&(n[u.UrlTemplatizationRulesGroups]="Each rule group needs at least one non-blank template");break}}return n})(s.type,e,i.formData)),i.handleErrorChange(void 0,void 0,t);return{errorMessage:Object.keys(t).length>0?"Invalid form values":void 0,preparedFormData:e}},[i,s]),y=n(()=>({selectedOption:s,onSelectOption:g,loadAction:v,genericForm:i,validateFormData:b}),[s,g,v,i,b]);return e(K.Provider,{value:y,children:r})},J=()=>{const e=r(K);if(!e)throw new Error("useActionFormContext must be used within an ActionFormContextProvider");return e},$={name:""},B=s(null),X=({children:r,defaultExcludeName:s=""})=>{const{dataStreams:i}=g(),[c,m]=t(void 0),[u,p]=t(s),[f,b]=t(void 0),[y,S]=t(null),D=o(null),E=l($),k=a(e=>{E.resetFormData({name:e}),E.handleErrorChange(void 0,void 0,{}),m(void 0),p(e),b(e),S(null),D.current=null},[]),F=a(()=>{const e=d(E.formData),t=(e=>{const t={};return e.name?v(e.name)||(t.name=h.ILLEGAL_K8S_LABEL):t.name=h.FIELD_IS_REQUIRED,t})(e);E.handleErrorChange(void 0,void 0,t);const a=Object.keys(t).length>0?h.REQUIRED_FIELDS:void 0;return m(a),{errorMessage:a,preparedFormData:e}},[E]),C=a(async e=>{const{errorMessage:t,preparedFormData:a}=F();if(t)return;const n=i.find(e=>e.name===a.name&&e.name!==u);if(n)return D.current=e,void S({preparedFormData:a,existingName:n.name,editingName:f});await e(a)},[F,i,u,f]),I=a(async()=>{const e=D.current,t=y?.preparedFormData;D.current=null,S(null),e&&t&&await e(t)},[y]),N=a(()=>{D.current=null,S(null)},[]),A=n(()=>({genericForm:E,loadDataStream:k,editingName:f,validateFormData:F,requestSubmit:C,pendingMerge:y,confirmMerge:I,cancelMerge:N,errorMessage:c,excludeName:u,setExcludeName:p}),[E,k,f,F,C,y,I,N,c,u]);return e(B.Provider,{value:A,children:r})},Y=()=>{const e=r(B);if(!e)throw new Error("useDataStreamFormContext must be used within a DataStreamFormContextProvider");return e},Z={type:"",name:"",currentStreamName:"",disabled:!1,exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[]},ee={activeForm:null,onChangeActiveForm:()=>{},loadDestination:()=>{},genericForm:void 0,validateFormData:()=>({isOk:!1,preparedFormData:d(Z)}),unsavedDestinations:[],thisUnsavedDestination:void 0,setUnsavedDestinations:()=>{},addUnsavedDestination:()=>{},updateUnsavedDestination:()=>{},deleteUnsavedDestination:()=>{}},te=s(ee),ae=e=>e.filter(e=>!!e).map(e=>{const{name:t,componentType:a,componentProperties:n,displayName:r,initialValue:s,renderCondition:o}=e,i=a===F.Dropdown,l=E(n,{});return{componentType:a,renderCondition:o,name:t,title:r,value:s,placeholder:l.placeholder||(i?"Select an option":void 0),options:i&&Array.isArray(l.values)?l.values.map(e=>({id:e,label:e})):void 0,...l}}),ne=({children:r})=>{const{selectedStreamName:s}=g(),o=b(e=>e.destinations),[c,m]=t(null),[u,p]=t(ee.unsavedDestinations),v=n(()=>"number"==typeof c?.unsavedIdx?u[c.unsavedIdx]:void 0,[c,u]),F=a((e,t)=>{c&&(p(t=>[...t,{...e,option:c.option}]),m(t?e=>e?{...e,listType:y.UNSAVED,unsavedIdx:u.length}:null:null))},[c,u.length]),C=a((e,t,a)=>{c&&(p(a=>a.map((a,n)=>n===e?{...a,...t,option:c.option}:a)),m(a?e=>e?{...e,listType:y.UNSAVED}:null:null))},[c]),I=a(e=>{p(t=>t.filter((t,a)=>a!==e)),m(null)},[]),N=l({...Z,currentStreamName:s});i(()=>{if(!c)return;if(v)return void N.resetFormData({...v.formData});if(c.listType===y.EXISTS&&c.option.id){const e=o.find(e=>e.id===c.option.id);if(e)return void N.resetFormData({type:e.destinationType.type,name:e.name||e.destinationType.displayName,currentStreamName:s,disabled:!!e.disabled,exportedSignals:{logs:!!e.exportedSignals?.logs,metrics:!!e.exportedSignals?.metrics,traces:!!e.exportedSignals?.traces,profiles:!!e.exportedSignals?.profiles},fields:c.dynamicFields.map(e=>({key:e.name,value:e.value}))})}const e=S(c.option.supportedSignals);N.resetFormData({type:c.option.type,name:c.option.displayName,currentStreamName:s,disabled:!1,exportedSignals:{logs:e.includes(D.Logs),metrics:e.includes(D.Metrics),traces:e.includes(D.Traces),profiles:e.includes(D.Profiles)},fields:c.dynamicFields.map(e=>({key:e.name,value:e.value}))})},[c,v]);const A=a(e=>{N.resetFormData(),N.handleErrorChange(void 0,void 0,{}),m(e?{...e,dynamicFields:e.option?.fields?ae(e.option.fields):[]}:null)},[]),w=a((e,t)=>{let a;for(const n of t){const t=n.items.find(t=>t.type===e.destinationType.type);if(t){a=t;break}}const n=E(e.fields,{}),r={id:e.id,type:e.destinationType.type,displayName:e.name||e.destinationType.displayName,selected:!0,testConnectionSupported:a?.testConnectionSupported??!1,supportedSignals:e.destinationType.supportedSignals,fields:a?a.fields.map(e=>({...e,initialValue:n[e.name]??e.initialValue})):[]},s=ae(r.fields);m({listType:y.EXISTS,option:r,dynamicFields:s})},[]),R=a(()=>{const e=d(N.formData),t={};c?.dynamicFields.forEach(({name:a,required:n})=>{if(n){const n=e.fields.find(e=>e.key===a)?.value;f(n)&&(t[a]=h.FIELD_IS_REQUIRED)}});return k(e.exportedSignals).length||(t.exportedSignals=h.FIELD_IS_REQUIRED),N.handleErrorChange(void 0,void 0,t),{errorMessage:0===Object.keys(t).length?void 0:"Invalid form values",preparedFormData:e}},[N,c]);return e(te.Provider,{value:{activeForm:c,onChangeActiveForm:A,loadDestination:w,genericForm:N,validateFormData:R,unsavedDestinations:u,thisUnsavedDestination:v,setUnsavedDestinations:p,addUnsavedDestination:F,updateUnsavedDestination:C,deleteUnsavedDestination:I},children:r})},re=()=>r(te),se={disabled:!1,ruleName:"",notes:"",workloads:null,instrumentationLibraries:null,payloadCollection:null,codeAttributes:null,headersCollection:null,customInstrumentations:null},oe=s(null),ie=({children:r})=>{const[s,o]=t(null),i=l(se),c=a(e=>{i.resetFormData(),i.handleErrorChange(void 0,void 0,{}),o(e)},[]),m=a(e=>{var t;i.resetFormData((({ruleName:e,notes:t,disabled:a,workloads:n,instrumentationLibraries:r,payloadCollection:s,codeAttributes:o,headersCollection:i,customInstrumentations:l})=>({ruleName:e||"",notes:t||"",disabled:!!a,workloads:n??null,instrumentationLibraries:r??null,payloadCollection:s??null,codeAttributes:o??null,headersCollection:i??null,customInstrumentations:l??null}))(e)),i.handleErrorChange(void 0,void 0,{}),o((t=e.type,C.find(e=>e.type===t)??null))},[]),u=a(()=>{if(!s)return{errorMessage:"No rule type selected",preparedFormData:d(se)};const e=(e=>{const t=d(e);return t.headersCollection?.[I.HeaderKeys]?.length&&(t.headersCollection[I.HeaderKeys]=t.headersCollection[I.HeaderKeys].map(e=>e.trim()).filter(e=>e)),t.customInstrumentations?.[N.Golang]?.length&&(t.customInstrumentations[N.Golang]=t.customInstrumentations[N.Golang].map(e=>new A(e.packageName,e.functionName,e.receiverName,e.receiverMethodName)).filter(e=>{return t=e,!!(t.packageName?.trim()||t.functionName?.trim()||t.receiverName?.trim()||t.receiverMethodName?.trim());var t})),t.customInstrumentations?.[N.Java]?.length&&(t.customInstrumentations[N.Java]=t.customInstrumentations[N.Java].map(e=>new w(e.className,e.methodName)).filter(e=>{return t=e,!(!t.className?.trim()&&!t.methodName?.trim());var t})),t})(i.formData),t=((e,t)=>{const a={};switch(e){case R.CodeAttributes:Object.values(t.codeAttributes||{}).some(e=>null!=e)||(a.codeAttributes="Code attributes are required");break;case R.PayloadCollection:Object.values(t.payloadCollection||{}).some(e=>null!=e)||(a.payloadCollection="Payload collection are required");break;case R.HeadersCollection:t.headersCollection?.[I.HeaderKeys]?.length||(a.headersCollection="Header keys are required");break;case R.CustomInstrumentation:{const e=t.customInstrumentations?.[N.Golang]||[],n=t.customInstrumentations?.[N.Java]||[];if(!e.length&&!n.length){a.customInstrumentations="Custom instrumentation are required";break}const r=e.findIndex(e=>!new A(e.packageName,e.functionName,e.receiverName,e.receiverMethodName).Verify());if(-1!==r){a.customInstrumentations=`Golang probe #${r+1} is invalid: provide a package name plus either a function name OR both a receiver name and receiver method name`;break}const s=n.findIndex(e=>!new w(e.className,e.methodName).Verify());if(-1!==s){a.customInstrumentations=`Java probe #${s+1} is invalid: both class name and method name are required`;break}break}}return a})(s.type,e);return i.handleErrorChange(void 0,void 0,t),{errorMessage:Object.keys(t).length>0?"Invalid form values":void 0,preparedFormData:e}},[i,s]),p=n(()=>({selectedOption:s,onSelectOption:c,loadRule:m,genericForm:i,validateFormData:u}),[s,c,m,i,u]);return e(oe.Provider,{value:p,children:r})},le=()=>{const e=r(oe);if(!e)throw new Error("useRuleFormContext must be used within a RuleFormContextProvider");return e};var de;!function(e){e.Create="create",e.View="view",e.EditAutoNoisy="edit-auto-noisy",e.EditAutoCostReduction="edit-auto-cost-reduction",e.EditAutoHighlyRelevant="edit-auto-highly-relevant"}(de||(de={}));const ce=s(null),me=["50","25","10","1"];function ue(e){const t=String(e);return me.includes(t)?t:"custom"}const pe=({category:r,sourceOptions:s=[],namespaceOptions:o=[],children:d})=>{const{formData:c,handleFormChange:m,resetFormData:u}=l(_(r)),[p,h]=t(null);i(()=>{u(_(r)),h(null)},[r]);const f=a(e=>{h(null),m(void 0,void 0,{...c,...e})},[c,m]),g=a(()=>{u(_(r)),h(null)},[r,u]),v=n(()=>({formType:de.Create,category:r,formData:c,handleChange:f,resetForm:g,duplicateWarning:p,setDuplicateWarning:h,sourceOptions:s,namespaceOptions:o}),[r,c,f,g,p,s,o]);return e(ce.Provider,{value:v,children:d})},he=({data:r,defaultEditMode:s,sourceOptions:d=[],namespaceOptions:c=[],children:m})=>{const[u,p]=t(!1),{formData:h,handleFormChange:f,resetFormData:g}=l(void 0),v=o(null),[b,y]=t(null);i(()=>{r!==v.current&&(v.current=r,r&&s?(g(M(r)),y(null),p(!0)):(p(!1),y(null)))},[r,s]);const S=a(e=>{y(null),f(void 0,void 0,{...h,...e})},[h,f]),D=a(()=>{r&&(g(M(r)),y(null),p(!0))},[r,g]),E=a(()=>{p(!1),y(null)},[]),k=n(()=>({formType:de.View,data:r,isEditing:u,formData:h,handleChange:S,handleEdit:D,handleCancelEdit:E,duplicateWarning:b,setDuplicateWarning:y,sourceOptions:d,namespaceOptions:c}),[r,u,h,S,D,E,b,d,c]);return e(ce.Provider,{value:k,children:m})};function fe(e){const[a,r]=t(()=>0===e?"all":"sample"),[s,o]=t(()=>ue(e)),[l,d]=t(()=>"custom"===ue(e)?String(e):"");i(()=>{r(0===e?"all":"sample");const t=ue(e);o(t),d("custom"===t?String(e):"")},[e]);const c=n(()=>"all"===a?0:"custom"===s?Number(l)||0:Number(s),[a,s,l]);return{percentageMode:a,setPercentageMode:r,percentagePreset:s,setPercentagePreset:o,customPercentage:l,setCustomPercentage:d,resolvedPercentage:c}}const ge=({enabled:a,keepPercentage:r,children:s})=>{const[o,l]=t(a),d=fe(r);i(()=>{l(a)},[a]);const c=n(()=>U({enabled:o,keepPercentage:d.resolvedPercentage}),[o,d.resolvedPercentage]),m=n(()=>({formType:de.EditAutoNoisy,localEnabled:o,setLocalEnabled:l,...d,summary:c}),[o,d,c]);return e(ce.Provider,{value:m,children:s})},ve=({enabled:a,dropPercentage:r,children:s})=>{const[o,l]=t(a),d=fe(r);i(()=>{l(a)},[a]);const c=n(()=>L(o?{disabled:!1,percentageAtMost:d.resolvedPercentage}:null),[o,d.resolvedPercentage]),m=n(()=>({formType:de.EditAutoCostReduction,localEnabled:o,setLocalEnabled:l,...d,summary:c}),[o,d,c]);return e(ce.Provider,{value:m,children:s})},be=({enabled:a,children:r})=>{const[s,o]=t(a);i(()=>{o(a)},[a]);const l=n(()=>O(s?{disabled:!1}:null),[s]),d=n(()=>({formType:de.EditAutoHighlyRelevant,localEnabled:s,setLocalEnabled:o,summary:l}),[s,l]);return e(ce.Provider,{value:d,children:r})},ye=t=>{switch(t.formType){case de.Create:return e(pe,{...t});case de.View:return e(he,{...t});case de.EditAutoNoisy:return e(ge,{...t});case de.EditAutoCostReduction:return e(ve,{...t});case de.EditAutoHighlyRelevant:return e(be,{...t})}};function Se(e){const t=r(ce);if(!t)throw new Error("useSamplingRulesFormContext must be used within a SamplingRulesFormProvider");if(e&&t.formType!==e)throw new Error(`Expected formType "${e}" but found "${t.formType}"`);return t}const De={otelServiceName:"",currentStreamName:""},Ee=s(null),ke=({children:r})=>{const[s,o]=t(void 0),i=l(De),c=a(e=>{i.resetFormData((({serviceName:e,id:t})=>({otelServiceName:e||t.name||"",currentStreamName:""}))(e)),i.handleErrorChange(void 0,void 0,{}),o(void 0)},[]),m=a(()=>{const e=d(i.formData);return i.handleErrorChange(void 0,void 0,{}),o(void 0),{errorMessage:void 0,preparedFormData:e}},[i]),u=n(()=>({loadSource:c,genericForm:i,validateFormData:m,errorMessage:s}),[c,i,m,s]);return e(Ee.Provider,{value:u,children:r})},Fe=()=>{const e=r(Ee);if(!e)throw new Error("useSourceEditFormContext must be used within a SourceEditFormContextProvider");return e},Ce=new Set([P.StaticPod]),Ie=e=>{const t=e.workloads.filter(({selected:e})=>e).length,a=e.workloads.length;return{selectedCount:t,isAllSourced:t>0&&t===a,isSomeSourced:t>0&&t<a,isFutureApps:e.selected||!1}},Ne=(e,t,a)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(a.showOnlySelected){const{isAllSourced:t,isSomeSourced:a,isFutureApps:n}=Ie(e);return t||a||n}return!0},Ae=(e,t,a)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!a.showOnlySelected||e.selected),we=s({snapshots:null,setSnapshots:()=>{},isFetching:!1,setIsFetching:()=>{},formData:[],handleSourceChange:()=>{},handleSelectAll:()=>{},formDiff:{},isFormDirty:!1}),Re=({children:r,selectedConnectionIds:s,initialInputs:o})=>{const{tier:l}=j(),c=l===T.Onprem,{selectedStreamName:m}=g(),[u,p]=t(!1),[h,f]=t(null),[v,b]=t([]);i(()=>{h&&b(e=>{const t=((e,t)=>d(((e,t)=>e.clusters.filter(({clusterId:e})=>!t||t.includes(e)))(e,t)))(h,s);return t.map(t=>{const a=e?.find(e=>e.clusterId===t.clusterId),n=a??t;if(o?.[t.clusterId]){const e=o[t.clusterId],a=d(n);return e.forEach(e=>{const t=a.namespaces.find(t=>t.name===e.namespace);if(t)if(e.name&&e.kind){const a=t.workloads.find(t=>t.name===e.name&&t.kind===e.kind);a&&(a.selected=e.selected)}else t.selected=e.selected,e.selected&&t.workloads.forEach(e=>{Ce.has(e.kind)&&!c||(e.selected=!0)})}),a}return n})})},[h,s,o]);const{formDiff:y,isFormDirty:S}=n(()=>{const e=((e,t,a)=>{const n={};return e.forEach(e=>{e.namespaces.forEach(r=>{const s=t.find(t=>t.clusterId===e.clusterId)?.namespaces.find(e=>e.name===r.name),o=r.selected||!1;if(o!==s?.selected)n[e.clusterId]||(n[e.clusterId]=[]),n[e.clusterId].push({namespace:r.name,selected:o,currentStreamName:a}),o?n[e.clusterId]=n[e.clusterId].filter(e=>e.namespace!==r.name||e.namespace===r.name&&(!e.name||!e.kind)):r.workloads.forEach(t=>{t.selected&&n[e.clusterId].push({namespace:r.name,name:t.name,kind:t.kind,selected:!0,currentStreamName:a})});else{const t=((e,t,a)=>{const n=[];return t.workloads.forEach(r=>{const s=e?.workloads.find(e=>e.name===r.name&&e.kind===r.kind);r.selected!==s?.selected&&n.push({namespace:t.name,name:r.name,kind:r.kind,selected:r.selected||!1,currentStreamName:a})}),n})(s,r,a);t.length>0&&(n[e.clusterId]||(n[e.clusterId]=[]),n[e.clusterId].push(...t))}})}),n})(v,h?.clusters||[],m);return{formDiff:e,isFormDirty:Object.keys(e).length>0}},[v,h,m]),D=a(e=>!c&&Ce.has(e),[c]),E=a(({clusterId:e,workloadId:t,selected:a,auto:n})=>{b(r=>{const s=d(r),o=s.findIndex(t=>t.clusterId===e);if(-1===o)return s;const i=s[o].namespaces.findIndex(e=>e.name===t.namespace);if(-1===i)return s;if(t.kind&&t.name){const e=s[o].namespaces[i].workloads.findIndex(e=>e.name===t.name&&e.kind===t.kind);if(-1===e)return s;const n="boolean"==typeof a?a:!s[o].namespaces[i].workloads[e].selected;if(s[o].namespaces[i].workloads[e].selected=n,n){s[o].namespaces[i].workloads.filter(e=>!D(e.kind)).every(e=>e.selected)&&(s[o].namespaces[i].selected=!0)}else s[o].namespaces[i].selected=!1}else{const e="boolean"==typeof n?n:!s[o].namespaces[i].selected;s[o].namespaces[i].selected=e,e?s[o].namespaces[i].workloads.forEach(e=>{D(e.kind)||(e.selected=!0)}):"boolean"!=typeof a||a||s[o].namespaces[i].workloads.forEach(e=>{e.selected=!1})}return s})},[D]),k=a(({clusterId:e,namespaceName:t,boolean:a,searchText:n="",searchBy:r="",filters:s})=>{b(o=>{const i=d(o),l=r===x.Namespace?n:"",c=r===x.Source?n:"",m=!!l||!!c||!!s?.showOnlySelected;return i.forEach((n,r)=>{e&&n.clusterId!==e||n.namespaces.forEach(({name:e,workloads:n},o)=>{if(!t||e===t)if(m)if(t){n.forEach((e,t)=>{a&&D(e.kind)||Ae(e,c,s||{showOnlySelected:!1})&&(i[r].namespaces[o].workloads[t].selected=a)});const e=i[r].namespaces[o].workloads.filter(e=>!D(e.kind)).every(e=>e.selected);i[r].namespaces[o].selected=e}else{if(!Ne(i[r].namespaces[o],l,s||{showOnlySelected:!1}))return;i[r].namespaces[o].selected=a,n.forEach((e,t)=>{a&&D(e.kind)||(i[r].namespaces[o].workloads[t].selected=a)})}else i[r].namespaces[o].selected=a,n.forEach((e,t)=>{a&&D(e.kind)||(i[r].namespaces[o].workloads[t].selected=a)})})}),i})},[D]);return e(we.Provider,{value:{snapshots:h,setSnapshots:f,isFetching:u,setIsFetching:p,formData:v,handleSourceChange:E,handleSelectAll:k,formDiff:y,isFormDirty:S},children:r})},Pe=()=>r(we);export{W as A,X as D,Ce as E,ie as R,de as S,ne as a,ye as b,ke as c,Re as d,Y as e,re as f,le as g,Se as h,Fe as i,Pe as j,Ae as k,Ne as l,Ie as m,J as u};
@@ -26,7 +26,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
26
26
  text-decoration: underline;
27
27
  }
28
28
  `}
29
- `,dn=Pt(({children:n,variant:o=on.P,color:r,size:i=rn.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:u,underline:p,onClick:h,disabled:g,...m},f)=>{const b=n?.toString().split("\n")||[];return e(cn,{ref:f,as:o,$color:r,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:u,$underline:p,$withClick:!!h&&!g,onClick:g?void 0:h,...m,children:b.map((n,o)=>t(Ft,{children:[n,o!==b.length-1&&e("br",{})]},`typography-${o}-${n}`))})});dn.displayName="Typography";const un="https://docs.odigos.io",pn="default",hn="this-cluster",gn="This Cluster",mn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},fn={REQUIRED_FIELDS:"Required fields are missing",FIELD_IS_REQUIRED:"This field is required",FORBIDDEN:"Forbidden",ENTERPRISE_ONLY:(e="This")=>`${e} is an Enterprise feature. Please upgrade your plan.`,DEFINED_FOR_ALL_STREAMS:e=>`${e} are defined for all Data Streams.`,CANNOT_EDIT_RULE:"Cannot edit a system-managed instrumentation rule",CANNOT_DELETE_RULE:"Cannot delete a system-managed instrumentation rule",LATENCY_HTTP_ROUTE:'HTTP route must start with a forward slash "/"',READONLY_WARNING:"You're not allowed to create/update/delete in readonly mode",ILLEGAL_K8S_LABEL:'Must be 63 characters or less, must consist of alphanumeric characters, "-", "_", or ".", and must start & end with an alphanumeric character (e.g., my-name, 123.abc).',INVALID_VERSION:'Invalid version format, must be in the format of "major.minor.patch" (e.g. 1.0.0)'},bn={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",RENAME_STREAM:e=>`Rename "${e}"`,DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",OVERVIEW:"Overview",LIBRARIES:"Libraries",STANDARD_LIBRARY:"Standard Library",STANDARD:"Standard",PEER_SOURCES:"Peer Sources",PROFILING:"Profiling",INBOUND:"Inbound",OUTBOUND:"Outbound",INBOUND_DESCRIPTION:e=>`Services that send requests to ${e}`,OUTBOUND_DESCRIPTION:e=>`Services that ${e} sends requests to`,NO_INBOUND_CONNECTIONS_DESCRIPTION:"No services are currently sending requests to this source.",NO_OUTBOUND_CONNECTIONS_DESCRIPTION:"This source hasn't sent requests to other services yet.",NO_INBOUND_CONNECTIONS:"No inbound connections",NO_OUTBOUND_CONNECTIONS:"No outbound connections",COULD_NOT_FETCH_PEER_SOURCES:"Could not fetch peer sources",VIRTUAL:"Virtual",VIRTUAL_TOOLTIP:"This service is not instrumented/injected with Odigos, but we can still see it in the service map because it is connected to other services.",NO_RESULTS:"No results",NO_RESULTS_FOR_FILTER:e=>`No results matched the filter '${e}'`,POD:"Pod",PODS:"Pods",PODS_HEALTHY:"Pods are healthy",PODS_NOT_HEALTHY:"Pods are not healthy",NO_RUNNING_PODS:"Check if you have any running pods and try again",AGENT_INJECTED:"Agent injected",INJECTIONS_HEALTHY:"Injections healthy",AGENT_NOT_INJECTED:"Agent not injected",KUBERNETES_HEALTHY:"Kubernetes healthy",ODIGOS_HEALTHY:"Odigos healthy",HEALTHY:"Healthy",UNHEALTHY:"Unhealthy",NOT_HEALTHY:"Not Healthy",NODE:"Node",START_TIME:"Start Time",NOT_RUNNING:"Not Running",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",NO_CRASHLOOP:"No Crashloop",CRASHLOOP_BACKOFF:"Crashloop backoff",CANNOT_POOL_IMAGE:"Cannot pool image",DEVICE_NAME:"Device Name",INSTRUMENTED:"Instrumented",UNINSTRUMENTED:"Uninstrumented",INSTRUMENTED_WITH_DISTRO:e=>`Instrumented | ${e}`,DEBUG_COMMANDS:"Debug Commands",YAML:"YAML",YAML_FILES:"YAML Files",GET_POD_YAML:"Get Pod YAML",GET_POD_LOGS:"Get Pod Logs",DESCRIBE_POD:"Describe Pod",CONTAINER:"Container",CONTAINERS:"Containers",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",NO_CONTAINERS_DETECTED:"No containers detected",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",NO_PROCESSES_DETECTED:"No processes detected",CONTAINER_NAME:"Container Name",PROCESS:"Process",PROCESSES:"Processes",PROCESS_FALLBACK_NAME:"process",OPEN_IN_POD_TAB:"Open in 'Pod' tab",ALL_CONTAINERS_HEALTHY:e=>`All ${e} containers are healthy`,ALL_PROCESSES_HEALTHY:e=>`All ${e} processes are healthy`,PID:e=>`#${e}`,IDENTIFYING_ATTRIBUTES:"Identifying Attributes",INSTRUMENTATION_LIBRARIES:"Instrumentation Libraries",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",NO_DATA_INSTRUMENTATION_RULES:"To configure how telemetry is collected",NO_DATA_SOURCES:"To start collecting telemetry from a Kubernetes workload",NO_DATA_ACTIONS:"To process telemetry before export",NO_DATA_DESTINATIONS:"To send telemetry to an observability backend",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_DETAILS_SUBTITLE:"Use when multiple languages exist in the same container or when Odigos is unable to detect the application language",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME:"Override OpenTelemetry distro name",OVERRIDE_OTEL_DISTRO_NAME_SUBTITLE:"Use to set a specific Odigos OpenTelemetry distribution",OVERRIDE_OTEL_DISTRO_NAME_WARNING:"This is an advanced configuration. If the selected OpenTelemetry distro name is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME_SAVE_TOOLTIP:"Use the provided OpenTelemetry distro name to instrument this container",OVERRIDE_OTEL_DISTRO_NAME_DELETE_TOOLTIP:"Remove manual override of OpenTelemetry distro name, and use Odigos automatic detection OpenTelemetry distro name for instrumentation",OVERRIDE_RUNTIME_DETAILS_SAVE_TOOLTIP:"Use the provided runtime details to instrument this container",OVERRIDE_RUNTIME_DETAILS_DELETE_TOOLTIP:"Remove manual override of runtime details, and use Odigos automatic detection runtime details for instrumentation",OTEL_DISTRO_NAME:"OpenTelemetry distro name",WAITING_FOR_RUNTIME_DETECTION:"Waiting for runtime detection...",DETECTING_RUNTIME_INFO:"Detecting runtime info",NO_AVAILABLE_AGENT:"No available agent",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",ROLLOUT:"Rollout",ROLLOUT_RESTART:"Rollout Restart",ROLLOUT_NOT_REQUIRED:"Rollout Not Required",ROLLOUT_NOT_REQUIRED_MESSAGE:"This source is instrumented with eBPF and does not require a restart.",ROLLOUT_FAILED:"Rollout Failed",ROLLOUT_PREVIOUS_ONGOING:"Previous Rollout Ongoing",ROLLOUT_PREVIOUS_ONGOING_MESSAGE:"A previous rollout is ongoing. Please wait for it to finish before triggering a new one.",ROLLOUT_AUTO_DISABLED:"Auto Rollout Disabled",ROLLOUT_AUTO_DISABLED_MESSAGE:"Trigger a manual rollout to inject the agent.",ROLLOUT_FINISHED:"Rollout Finished",ROLLOUT_FINISHED_MESSAGE:"All pods have been updated and are healthy.",ROLLBACK:"Rollback",ROLLBACK_OCCURRED:"Rollback Occurred",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_SUCCESS:"Rollback Success",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos.",THROUGHPUT_LAST_10_SECONDS:"Throughput (last 10 seconds)",DELETE_POD_TO_RESTART:"Delete Pod to Restart",RESTART_POD_DESCRIPTION:"Deleting a pod removes it and lets Kubernetes controllers recreate a new one.\nThe new pod starts fresh with the latest instrumentation agent and configuration.\nRecommended for non-production clusters only.",DEBUG:"Debug"},yn={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",DONE:"Done",SAVE:"Save",BACK:"Back",NEXT:"Next",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"};var $n,vn,Sn,xn,wn,En,Cn,Tn,An,In,Dn,Nn,kn,On,Rn,_n,Ln,Pn,Fn,Mn,zn,Un,Bn,jn,Hn,Wn,Gn,Xn,Kn,Vn,Jn,qn,Yn,Qn,Zn,eo,to,no,oo,ro,io,ao,so,lo,co;!function(e){e.Attributes="attributes",e.Samplers="samplers"}($n||($n={})),function(e){e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.ErrorSampler="ErrorSampler",e.ProbabilisticSampler="ProbabilisticSampler",e.LatencySampler="LatencySampler",e.ServiceNameSampler="ServiceNameSampler",e.SpanAttributeSampler="SpanAttributeSampler",e.URLTemplatization="URLTemplatization"}(vn||(vn={})),function(e){e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.FallbackSamplingRatio="fallbackSamplingRatio",e.SamplingPercentage="samplingPercentage",e.EndpointsFilters="endpointsFilters",e.ServicesNameFilters="servicesNameFilters",e.AttributeFilters="attributeFilters",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups"}(Sn||(Sn={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(xn||(xn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(wn||(wn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.GREATER_THAN="greater_than",e.LESS_THAN="less_than",e.GREATER_THAN_OR_EQUAL="greater_than_or_equal",e.LESS_THAN_OR_EQUAL="less_than_or_equal"}(En||(En={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(Cn||(Cn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.IS_VALID_JSON="is_valid_json",e.IS_INVALID_JSON="is_invalid_json",e.JSONPATH_EXISTS="jsonpath_exists",e.KEY_EQUALS="key_equals",e.KEY_NOT_EQUALS="key_not_equals"}(Tn||(Tn={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(An||(An={})),function(e){e.Ascending="ascending",e.Descending="descending"}(In||(In={})),function(e){e.Community="community",e.Onprem="onprem"}(Dn||(Dn={})),function(e){e.K8s="k8s",e.Vm="vm"}(Nn||(Nn={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(kn||(kn={})),function(e){e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"}(On||(On={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Rn||(Rn={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(_n||(_n={})),function(e){e.DataStream="DataStream"}(Ln||(Ln={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.Toggle="toggle",e.Time="time"}(Pn||(Pn={})),function(e){e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"}(Fn||(Fn={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Mn||(Mn={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(zn||(zn={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Un||(Un={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Bn||(Bn={})),function(e){e.MarkedForInstrumentation="MarkedForInstrumentation",e.RuntimeDetection="RuntimeDetection",e.AgentEnabled="AgentEnabled",e.AgentInjected="AgentInjected",e.WorkloadRollout="WorkloadRollout",e.ProcessesHealthStatus="ProcessesHealthStatus",e.ExpectingTelemetry="ExpectingTelemetry",e.WorkloadOdigosHealth="WorkloadOdigosHealth"}(jn||(jn={})),function(e){e.TriggeredSuccessfully="RolloutTriggeredSuccessfully",e.RolloutFinished="RolloutFinished",e.PreviousRolloutOngoing="PreviousRolloutOngoing",e.Disabled="Disabled",e.NotRequired="NotRequired",e.WaitingForRestart="WaitingForRestart",e.WorkloadNotSupporting="WorkloadNotSupporting",e.WaitingInQueue="WaitingInQueue",e.FailedToPatch="FailedToPatch"}(Hn||(Hn={})),function(e){e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"}(Wn||(Wn={})),function(e){e.CodeAttributes="code-attributes",e.FullPayloadCollection="full-payload-collection",e.DbPayloadCollection="db-payload-collection",e.QueryOperationDetector="query-operation-detector",e.AllowConcurrentAgents="allow_concurrent_agents",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.JavaNativeInstrumentations="java-native-instrumentations",e.SizeS="size_s",e.SizeM="size_m",e.SizeL="size_l"}(Gn||(Gn={})),function(e){e.Header="header",e.Add="add",e.Base="base",e.Edged="edged",e.Frame="frame",e.Scroll="scroll",e.Skeleton="skeleton",e.MapItem="map-item",e.NoData="no-data",e.OdiLogo="odilogo"}(Xn||(Xn={})),function(e){e.Labeled="labeled"}(Kn||(Kn={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Vn||(Vn={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray",e.Pyroscope="pyroscope"}(Jn||(Jn={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.Pod="Pod",e.StaticPod="StaticPod",e.Rollout="Rollout",e.ConfigMap="ConfigMap",e.DeploymentConfig="DeploymentConfig"}(qn||(qn={})),function(e){e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.OpentelemetryEbpfInstrumentation="opentelemetry-ebpf-instrumentation",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"}(Yn||(Yn={})),function(e){e.Error="Error",e.Failure="Failure",e.Notice="Notice",e.Pending="Pending",e.Waiting="Waiting",e.Unsupported="Unsupported",e.Disabled="Disabled",e.Success="Success",e.Irrelevant="Irrelevant",e.Unknown="Unknown"}(Qn||(Qn={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Zn||(Zn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(eo||(eo={})),function(e){e.HeaderKeys="headerKeys"}(to||(to={})),function(e){e.Java="java",e.Golang="golang"}(no||(no={}));class uo{className;methodName;constructor(e,t){this.className=e,this.methodName=t}Verify(){return!!this.className&&!!this.methodName}toString(){return this.Verify()?`${this.className}.${this.methodName}`:"[Faulty Java Probe]"}}class po{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,o){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=o||""}Verify(){return!!this.packageName&&(this.functionName?!(this.receiverMethodName||this.receiverName):!(!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(oo||(oo={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(ro||(ro={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(io||(io={})),function(e){e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"}(ao||(ao={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(so||(so={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"}(lo||(lo={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"}(co||(co={}));const ho={[lo.Logs]:co.Logs,[lo.Metrics]:co.Metrics,[lo.Traces]:co.Traces,[lo.Profiles]:co.Profiles},go={[co.Logs]:lo.Logs,[co.Metrics]:lo.Metrics,[co.Traces]:lo.Traces,[co.Profiles]:lo.Profiles};var mo;!function(e){e.Equals="equals",e.NotEquals="notEquals",e.EndWith="endWith",e.StartWith="startWith"}(mo||(mo={}));const fo=(e,t)=>e===Mn.Success?bn.HEALTHY:e===Mn.Error?bn.NOT_HEALTHY:nn(t),bo=e=>{if(!e)return null;switch(e){case Qn.Irrelevant:return null;case Qn.Failure:case Qn.Error:return Mn.Error;case Qn.Notice:return Mn.Warning;case Qn.Pending:case Qn.Waiting:return Un.Loading;case Qn.Unsupported:case Qn.Disabled:return Un.Disabled;case Qn.Success:return Mn.Success;case Qn.Unknown:default:return Mn.Info}},yo=(e,t,n="reason",o)=>{const r=bo(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Mn.Success?l:c),label:o||("reason"===n?nn(e?.reasonEnum):fo(r,e?.reasonEnum)),tooltip:e?.message,textSize:rn.XXXS,invertColors:!0,useSecondaryTone:!0}:null},$o=e=>e.charAt(0).toUpperCase()+e.slice(1),vo=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,n(o)]:[e,o]));return Object.entries(e).reduce((e,[o,r])=>{try{const i=JSON.parse(r);Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]="object"==typeof i&&null!==i?JSON.stringify(n(i)):r}catch(i){"object"==typeof r&&null!==r?Array.isArray(r)?e[o]=JSON.stringify(t(r)):e[o]=JSON.stringify(n(r)):e[o]=r}return e},{})};var So;!function(e){e.SIGNALS="SIGNALS"}(So||(So={}));const xo=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,r,i]=e;if(o===So.SIGNALS)switch(r){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=n.find(e=>e.name===o||e.key===o);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(r){case"===":case"==":return s===i;case"!==":case"!=":return s!==i;case">":return Number(s)>Number(i);case"<":return Number(s)<Number(i);case">=":return Number(s)>=Number(i);case"<=":return Number(s)<=Number(i);default:return!0}},wo=e=>JSON.parse(JSON.stringify(e)),Eo=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Co=(e,t,n)=>{const o=t.split(".");let r=e;for(let e=0;e<o.length-1;e++)o[e]in r&&"object"==typeof r[o[e]]||(r[o[e]]={}),r=r[o[e]];r[o[o.length-1]]=n},To=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),n},Ao=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Io=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Do=(e,t)=>{let n=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.namespace))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));n=n.filter(({runtimeInfo:t,containers:n})=>t?.detectedLanguages?.some(t=>e.has(t))||n?.some(t=>{const n=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!n&&e.has(n)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));n=n.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}return t.onlyErrors&&(n=n.filter(e=>bo(e.workloadOdigosHealthStatus?.status)===Mn.Error)),n},No=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===pn&&!e.dataStreamNames?.length):[],ko=(e,t="",n={})=>{for(const o in e)if(e.hasOwnProperty(o)){const r=e[o],i=t?`${t}.${o}`:o;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const o=`${i}[${t}]`;null!==e&&"object"==typeof e?ko(e,o,n):n[o]=e}):n[i]=r:ko(r,i,n)}return n},Oo=e=>{if(!e)return"0 KB/s";const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(0===t?0:1)} ${["Bytes/s","KB/s","MB/s","GB/s","TB/s"][t]}`},Ro=e=>{if(!e)return"0 ns";if(e<1e3)return`${e.toFixed(0)} ns`;if(e<1e6){const t=e/1e3;return`${t.toFixed(t<10?2:0)} μs`}if(e<1e9){const t=e/1e6;return`${t.toFixed(t<10?2:0)} ms`}if(e<6e10){const t=e/1e9;return`${t.toFixed(t<10?2:0)} s`}if(e<36e11){const t=e/6e10;return`${t.toFixed(t<10?2:0)} m`}if(e<864e11){const t=e/36e11;return`${t.toFixed(t<10?2:0)} h`}{const t=e/864e11;return`${t.toFixed(t<10?2:0)} d`}},_o=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const o=e[t%16];t++;return("1"===n?o:"0"===n?63&o|128:15&o|64).toString(16)})},Lo=e=>{const t=e?.toLowerCase(),n=t?.includes($n.Samplers),o=t===$n.Attributes;if(n)return d;if(o)return u;return{[vn.K8sAttributes]:f,[vn.AddClusterInfo]:m,[vn.DeleteAttributes]:g,[vn.PiiMasking]:u,[vn.RenameAttributes]:h,[vn.URLTemplatization]:p,[vn.ErrorSampler]:d,[vn.ProbabilisticSampler]:d,[vn.LatencySampler]:d,[vn.ServiceNameSampler]:d,[vn.SpanAttributeSampler]:d}[e]||b},Po=e=>{if(!e)return Fo([]);if(Array.isArray(e))return Fo(e);const t=Object.values(e).reduce((e,t)=>{if(null!=t){const n=bo(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]);return Fo(t)},Fo=e=>{const t=e?.filter(({status:e})=>e===Mn.Error),n=e?.filter(({status:e})=>e===Mn.Warning),o=e?.filter(({status:e})=>e===Un.Disabled),r=e?.filter(({status:e})=>e===Un.Loading),i=t.length>0,a=n.length>0,s=o.length>0;return{errors:t,hasErrors:i,warnings:n,hasWarnings:a,disableds:o,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:i?Mn.Error:a?Mn.Warning:s?Mn.Info:void 0}},Mo=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},zo=e=>({[On.Java]:_,[On.Go]:R,[On.JavaScript]:O,[On.Python]:k,[On.DotNet]:N,[On.CSharp]:D,[On.CPlusPlus]:I,[On.Php]:A,[On.Ruby]:T,[On.Rust]:C,[On.Swift]:E,[On.Elixir]:w,[On.MySql]:x,[On.Nginx]:S,[On.Postgres]:v,[On.Redis]:$,[On.Kafka]:y,[On.Ignored]:b,[On.Unknown]:b,[On.Processing]:b,[On.NoContainers]:b,[On.NoRunningPods]:b}[e]||b),Uo=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??On.Unknown:On.Unknown,Bo=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,jo=e=>e?.map(e=>zo(Uo(e)))||[],Ho=e=>e?.map(e=>zo(e))||[],Wo=e=>e.runtimeInfo?.detectedLanguages?.length?Ho(e.runtimeInfo?.detectedLanguages):jo(e.containers),Go=(e,t)=>{const n={[Jn.Alauda]:ze,[Jn.AlibabaCloud]:Me,[Jn.AppDynamics]:Fe,[Jn.Axiom]:Pe,[Jn.AzureBlob]:Le,[Jn.AzureMonitor]:_e,[Jn.BetterStack]:Re,[Jn.Bonree]:Oe,[Jn.Causely]:ke,[Jn.Checkly]:Ne,[Jn.Chronosphere]:De,[Jn.ClickHouse]:Ie,[Jn.CloudWatch]:Ae,[Jn.Coralogix]:Te,[Jn.Dash0]:Ce,[Jn.Datadog]:Ee,[Jn.Dynamic]:Q,[Jn.Dynatrace]:we,[Jn.ElasticApm]:xe,[Jn.ElasticSearch]:Se,[Jn.GoogleCloud]:ve,[Jn.GoogleCloudOTLP]:ve,[Jn.GrafanaCloudLoki]:$e,[Jn.GrafanaCloudPrometheus]:$e,[Jn.GrafanaCloudTempo]:$e,[Jn.Greptime]:ye,[Jn.Groundcover]:be,[Jn.Honeycomb]:fe,[Jn.HyperDX]:me,[Jn.Instana]:ge,[Jn.Jaeger]:he,[Jn.Kafka]:y,[Jn.Kloudmate]:pe,[Jn.Last9]:ue,[Jn.Lightstep]:de,[Jn.LogzIo]:ce,[Jn.Loki]:le,[Jn.Lumigo]:se,[Jn.Middleware]:ae,[Jn.NewRelic]:ie,[Jn.Observe]:re,[Jn.Odigos]:oe,[Jn.OneUptime]:ne,[Jn.OpenObserve]:te,[Jn.Opsverse]:ee,[Jn.Oracle]:Z,[Jn.OTLP]:Q,[Jn.OTLPHttp]:Q,[Jn.Prometheus]:Y,[Jn.Qryn]:q,[Jn.QrynOss]:J,[Jn.Quickwit]:V,[Jn.S3]:K,[Jn.Seq]:X,[Jn.Signalfx]:W,[Jn.Signoz]:G,[Jn.Splunk]:W,[Jn.SplunkSapm]:W,[Jn.SplunkOtlp]:W,[Jn.SumoLogic]:H,[Jn.TelemetryHub]:j,[Jn.Tempo]:B,[Jn.Tingyun]:U,[Jn.Traceloop]:z,[Jn.Uptrace]:M,[Jn.VictoriaMetrics]:F,[Jn.VictoriaMetricsCloud]:F,[Jn.XRay]:P,[Jn.Pyroscope]:L}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Xo=e=>({[_n.Namespace]:We,[_n.Source]:He,[_n.Destination]:je,[_n.Action]:p,[_n.InstrumentationRule]:Be,[_n.SamplingRule]:Ue}[e]),Ko=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&"string"==typeof e.id&&e.id||"id"in e&&"object"==typeof e.id&&e.id.namespace&&e.id.kind&&e.id.name?e.id:"namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name?{namespace:e.namespace,name:e.name,kind:e.kind}:"name"in e&&e.name?e.name:void 0,Vo=e=>e?"string"==typeof e?e:`${e.namespace}/${e.kind}/${e.name}`:"",Jo=e=>Vo(Ko(e)),qo=(e,t,n)=>{const{extended:o,prioritizeDisplayName:r}=n||{};let i="",a="";switch(t){case _n.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case _n.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case _n.Action:const o=e;i=o.type,a=o.name||"";break;case _n.Destination:const r=e;i=r.destinationType.displayName,a=r.name;break;case _n.Namespace:const s=e;i=s.name,a=s.name}return o?i+(a&&a!==i?` (${a})`:""):r&&a||i},Yo=(e,t)=>{if(t===_n.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},Qo=e=>({[Zn.CodeAttributes]:Ve,[Zn.CustomInstrumentation]:Ke,[Zn.HeadersCollection]:Xe,[Zn.PayloadCollection]:Ge,[Zn.UnknownType]:b}[e]||b),Zo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??On.Unknown,er=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?On.Processing:On.NoRunningPods;const o=n?.filter(e=>Zo(e)!==On.Ignored);if(!o.length)return On.NoContainers;const r=o.find(e=>Zo(e)!==On.Unknown);return r?Zo(r):On.Unknown},tr=(e,t,n)=>(t===_n.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},nr=e=>({[lo.Logs]:Ye,[lo.Metrics]:qe,[lo.Traces]:Je,[lo.Profiles]:oe}[e]),or=e=>{if(!e)return oe;return{[Nn.K8s]:f,[Nn.Vm]:Qe}[e]},rr=e=>{if(!e)return"Unknown";return{[Nn.K8s]:"Kubernetes Cluster",[Nn.Vm]:"Virtual Machine"}[e]},ir=(e,t,n)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[n],r=[];return void 0!==o&&(Array.isArray(o)?r.push(...o):r.push(o)),r.push(...ir(e,t,n)),r}):[]},ar=(e,t)=>{if(t===_n.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},sr=(e,t,n)=>{switch(t){case Mn.Default:return e.v2.colors.purple[n];case Mn.Info:return e.v2.colors.blue[n];case Mn.Error:return e.v2.colors.red[n];case Mn.Warning:return e.v2.colors.yellow[n];case Mn.Success:return e.v2.colors.green[n];case Un.Loading:case Bn.Disabled:case Bn.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},lr=e=>{switch(e){case ro.Updating:case io.Pending:case ao.ContainerCreating:case so.Waiting:return Mn.Info;case ro.Healthy:case io.Succeeded:case io.Running:case ao.Running:case so.Running:return Mn.Success;case ro.Degraded:return Mn.Warning;case ro.Failed:case io.Failed:case ao.Error:case ao.CrashLoopBackOff:case ao.CreateContainerError:case ao.CreateContainerConfigError:case ao.ErrImagePull:case ao.ErrImageNeverPull:case ao.ImagePullBackOff:case ao.InvalidImageName:case ao.RegistryUnavailable:case ao.NetworkNotReady:case ao.OOMKilled:case ao.ContainerCannotRun:case so.Terminated:case ao.DeadlineExceeded:case ao.StartError:return Mn.Error;case ro.Down:case ao.Completed:return Bn.Disabled;case ro.Unknown:case io.Unknown:default:return Bn.Unknown}},cr=o.div`
29
+ `,dn=Pt(({children:n,variant:o=on.P,color:r,size:i=rn.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:u,underline:p,onClick:h,disabled:g,...m},f)=>{const b=n?.toString().split("\n")||[];return e(cn,{ref:f,as:o,$color:r,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:u,$underline:p,$withClick:!!h&&!g,onClick:g?void 0:h,...m,children:b.map((n,o)=>t(Ft,{children:[n,o!==b.length-1&&e("br",{})]},`typography-${o}-${n}`))})});dn.displayName="Typography";const un="https://docs.odigos.io",pn="default",hn="this-cluster",gn="This Cluster",mn={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},fn={REQUIRED_FIELDS:"Required fields are missing",FIELD_IS_REQUIRED:"This field is required",FORBIDDEN:"Forbidden",ENTERPRISE_ONLY:(e="This")=>`${e} is an Enterprise feature. Please upgrade your plan.`,DEFINED_FOR_ALL_STREAMS:e=>`${e} are defined for all Data Streams.`,CANNOT_EDIT_RULE:"Cannot edit a system-managed instrumentation rule",CANNOT_DELETE_RULE:"Cannot delete a system-managed instrumentation rule",LATENCY_HTTP_ROUTE:'HTTP route must start with a forward slash "/"',READONLY_WARNING:"You're not allowed to create/update/delete in readonly mode",ILLEGAL_K8S_LABEL:'Must be 63 characters or less, must consist of alphanumeric characters, "-", "_", or ".", and must start & end with an alphanumeric character (e.g., my-name, 123.abc).',INVALID_VERSION:'Invalid version format, must be in the format of "major.minor.patch" (e.g. 1.0.0)'},bn={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",RENAME_STREAM:e=>`Rename "${e}"`,DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",OVERVIEW:"Overview",LIBRARIES:"Libraries",STANDARD_LIBRARY:"Standard Library",STANDARD:"Standard",PEER_SOURCES:"Peer Sources",PROFILING:"Profiling",INBOUND:"Inbound",OUTBOUND:"Outbound",INBOUND_DESCRIPTION:e=>`Services that send requests to ${e}`,OUTBOUND_DESCRIPTION:e=>`Services that ${e} sends requests to`,NO_INBOUND_CONNECTIONS_DESCRIPTION:"No services are currently sending requests to this source.",NO_OUTBOUND_CONNECTIONS_DESCRIPTION:"This source hasn't sent requests to other services yet.",NO_INBOUND_CONNECTIONS:"No inbound connections",NO_OUTBOUND_CONNECTIONS:"No outbound connections",COULD_NOT_FETCH_PEER_SOURCES:"Could not fetch peer sources",VIRTUAL:"Virtual",VIRTUAL_TOOLTIP:"This service is not instrumented/injected with Odigos, but we can still see it in the service map because it is connected to other services.",NO_RESULTS:"No results",NO_RESULTS_FOR_FILTER:e=>`No results matched the filter '${e}'`,POD:"Pod",PODS:"Pods",PODS_HEALTHY:"Pods are healthy",PODS_NOT_HEALTHY:"Pods are not healthy",NO_RUNNING_PODS:"No running pods",NO_RUNNING_PODS_SUBTITLE:"Check if you have any running pods and try again",AGENT_INJECTED:"Agent injected",INJECTIONS_AS_EXPECTED:"Injections as expected",AGENT_NOT_INJECTED:"Agent not injected",KUBERNETES_HEALTHY:"Kubernetes healthy",ODIGOS_HEALTHY:"Odigos healthy",HEALTHY:"Healthy",UNHEALTHY:"Unhealthy",NOT_HEALTHY:"Not Healthy",NODE:"Node",AGE:"Age",RUNNING_TIME:"Running Time",RUNNING_TIME_TOOLTIP:"Time elapsed since the container was last started and entered the Running state",NOT_RUNNING:"Not Running",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",NO_CRASHLOOP:"No Crashloop",CRASHLOOP_BACKOFF:"Crashloop backoff",CANNOT_POOL_IMAGE:"Cannot pool image",DEVICE_NAME:"Device Name",INSTRUMENTED:"Instrumented",UNINSTRUMENTED:"Uninstrumented",INSTRUMENTED_WITH_DISTRO:e=>`Instrumented | ${e}`,DEBUG_COMMANDS:"Debug Commands",YAML:"YAML",YAML_FILES:"YAML Files",GET_POD_YAML:"Get Pod YAML",GET_POD_LOGS:"Get Pod Logs",DESCRIBE_POD:"Describe Pod",CONTAINER:"Container",CONTAINERS:"Containers",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",NO_CONTAINERS_DETECTED:"No containers detected",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",NO_PROCESSES_DETECTED:"No processes detected",CONTAINER_NAME:"Container Name",PROCESS:"Process",PROCESSES:"Processes",PROCESS_FALLBACK_NAME:"process",OPEN_IN_POD_TAB:"Open in 'Pod' tab",ALL_CONTAINERS_HEALTHY:e=>`All ${e} containers are healthy`,ALL_PROCESSES_HEALTHY:e=>`All ${e} processes are healthy`,PID:e=>`#${e}`,IDENTIFYING_ATTRIBUTES:"Identifying Attributes",INSTRUMENTATION_LIBRARIES:"Instrumentation Libraries",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select All",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",NO_DATA_INSTRUMENTATION_RULES:"To configure how telemetry is collected",NO_DATA_SOURCES:"To start collecting telemetry from a Kubernetes workload",NO_DATA_ACTIONS:"To process telemetry before export",NO_DATA_DESTINATIONS:"To send telemetry to an observability backend",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_DETAILS_SUBTITLE:"Use when multiple languages exist in the same container or when Odigos is unable to detect the application language",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME:"Override OpenTelemetry distro name",OVERRIDE_OTEL_DISTRO_NAME_SUBTITLE:"Use to set a specific Odigos OpenTelemetry distribution",OVERRIDE_OTEL_DISTRO_NAME_WARNING:"This is an advanced configuration. If the selected OpenTelemetry distro name is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME_SAVE_TOOLTIP:"Use the provided OpenTelemetry distro name to instrument this container",OVERRIDE_OTEL_DISTRO_NAME_DELETE_TOOLTIP:"Remove manual override of OpenTelemetry distro name, and use Odigos automatic detection OpenTelemetry distro name for instrumentation",OVERRIDE_RUNTIME_DETAILS_SAVE_TOOLTIP:"Use the provided runtime details to instrument this container",OVERRIDE_RUNTIME_DETAILS_DELETE_TOOLTIP:"Remove manual override of runtime details, and use Odigos automatic detection runtime details for instrumentation",OTEL_DISTRO_NAME:"OpenTelemetry distro name",WAITING_FOR_RUNTIME_DETECTION:"Waiting for runtime detection...",DETECTING_RUNTIME_INFO:"Detecting runtime info",NO_AVAILABLE_AGENT:"No available agent",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",ROLLOUT:"Rollout",ROLLOUT_RESTART:"Rollout Restart",ROLLOUT_NOT_REQUIRED:"Rollout Not Required",ROLLOUT_NOT_REQUIRED_MESSAGE:"This source is instrumented with eBPF and does not require a restart.",ROLLOUT_FAILED:"Rollout Failed",ROLLOUT_PREVIOUS_ONGOING:"Previous Rollout Ongoing",ROLLOUT_PREVIOUS_ONGOING_MESSAGE:"A previous rollout is ongoing. Please wait for it to finish before triggering a new one.",ROLLOUT_AUTO_DISABLED:"Auto Rollout Disabled",ROLLOUT_AUTO_DISABLED_MESSAGE:"Trigger a manual rollout to inject the agent.",ROLLOUT_FINISHED:"Rollout Finished",ROLLOUT_FINISHED_MESSAGE:"All pods have been updated and are healthy.",ROLLBACK:"Rollback",ROLLBACK_OCCURRED:"Rollback Occurred",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_SUCCESS:"Rollback Success",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos.",THROUGHPUT_LAST_10_SECONDS:"Throughput (last 10 seconds)",DELETE_POD_TO_RESTART:"Delete Pod to Restart",RESTART_POD_DESCRIPTION:"Deleting a pod removes it and lets Kubernetes controllers recreate a new one.\nThe new pod starts fresh with the latest instrumentation agent and configuration.\nRecommended for non-production clusters only.",DEBUG:"Debug"},yn={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",DONE:"Done",SAVE:"Save",BACK:"Back",NEXT:"Next",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"};var $n,vn,Sn,xn,wn,En,Cn,Tn,An,In,Dn,Nn,kn,On,Rn,_n,Ln,Pn,Fn,Mn,zn,Un,Bn,jn,Hn,Wn,Gn,Xn,Kn,Vn,Jn,qn,Yn,Qn,Zn,eo,to,no,oo,ro,io,ao,so,lo,co;!function(e){e.Attributes="attributes",e.Samplers="samplers"}($n||($n={})),function(e){e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.ErrorSampler="ErrorSampler",e.ProbabilisticSampler="ProbabilisticSampler",e.LatencySampler="LatencySampler",e.ServiceNameSampler="ServiceNameSampler",e.SpanAttributeSampler="SpanAttributeSampler",e.URLTemplatization="URLTemplatization"}(vn||(vn={})),function(e){e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.FallbackSamplingRatio="fallbackSamplingRatio",e.SamplingPercentage="samplingPercentage",e.EndpointsFilters="endpointsFilters",e.ServicesNameFilters="servicesNameFilters",e.AttributeFilters="attributeFilters",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups"}(Sn||(Sn={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(xn||(xn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(wn||(wn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.GREATER_THAN="greater_than",e.LESS_THAN="less_than",e.GREATER_THAN_OR_EQUAL="greater_than_or_equal",e.LESS_THAN_OR_EQUAL="less_than_or_equal"}(En||(En={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(Cn||(Cn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.IS_VALID_JSON="is_valid_json",e.IS_INVALID_JSON="is_invalid_json",e.JSONPATH_EXISTS="jsonpath_exists",e.KEY_EQUALS="key_equals",e.KEY_NOT_EQUALS="key_not_equals"}(Tn||(Tn={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(An||(An={})),function(e){e.Ascending="ascending",e.Descending="descending"}(In||(In={})),function(e){e.Community="community",e.Onprem="onprem"}(Dn||(Dn={})),function(e){e.K8s="k8s",e.Vm="vm"}(Nn||(Nn={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(kn||(kn={})),function(e){e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"}(On||(On={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Rn||(Rn={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(_n||(_n={})),function(e){e.DataStream="DataStream"}(Ln||(Ln={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.Toggle="toggle",e.Time="time"}(Pn||(Pn={})),function(e){e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"}(Fn||(Fn={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default"}(Mn||(Mn={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(zn||(zn={})),function(e){e.Loading="loading",e.Disabled="disabled"}(Un||(Un={})),function(e){e.Disabled="disabled",e.Unknown="unknown"}(Bn||(Bn={})),function(e){e.MarkedForInstrumentation="MarkedForInstrumentation",e.RuntimeDetection="RuntimeDetection",e.AgentEnabled="AgentEnabled",e.AgentInjected="AgentInjected",e.WorkloadRollout="WorkloadRollout",e.ProcessesHealthStatus="ProcessesHealthStatus",e.ExpectingTelemetry="ExpectingTelemetry",e.WorkloadOdigosHealth="WorkloadOdigosHealth"}(jn||(jn={})),function(e){e.TriggeredSuccessfully="RolloutTriggeredSuccessfully",e.RolloutFinished="RolloutFinished",e.PreviousRolloutOngoing="PreviousRolloutOngoing",e.Disabled="Disabled",e.NotRequired="NotRequired",e.WaitingForRestart="WaitingForRestart",e.WorkloadNotSupporting="WorkloadNotSupporting",e.WaitingInQueue="WaitingInQueue",e.FailedToPatch="FailedToPatch"}(Hn||(Hn={})),function(e){e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"}(Wn||(Wn={})),function(e){e.CodeAttributes="code-attributes",e.FullPayloadCollection="full-payload-collection",e.DbPayloadCollection="db-payload-collection",e.QueryOperationDetector="query-operation-detector",e.AllowConcurrentAgents="allow_concurrent_agents",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.JavaNativeInstrumentations="java-native-instrumentations",e.SizeS="size_s",e.SizeM="size_m",e.SizeL="size_l"}(Gn||(Gn={})),function(e){e.Header="header",e.Add="add",e.Base="base",e.Edged="edged",e.Frame="frame",e.Scroll="scroll",e.Skeleton="skeleton",e.MapItem="map-item",e.NoData="no-data",e.OdiLogo="odilogo"}(Xn||(Xn={})),function(e){e.Labeled="labeled"}(Kn||(Kn={})),function(e){e.AddRule="addRule",e.AddSource="addSource",e.AddAction="addAction",e.AddDestination="addDestination"}(Vn||(Vn={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray",e.Pyroscope="pyroscope"}(Jn||(Jn={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.Pod="Pod",e.StaticPod="StaticPod",e.Rollout="Rollout",e.ConfigMap="ConfigMap",e.DeploymentConfig="DeploymentConfig"}(qn||(qn={})),function(e){e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.OpentelemetryEbpfInstrumentation="opentelemetry-ebpf-instrumentation",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"}(Yn||(Yn={})),function(e){e.Error="Error",e.Failure="Failure",e.Notice="Notice",e.Pending="Pending",e.Waiting="Waiting",e.Unsupported="Unsupported",e.Disabled="Disabled",e.Success="Success",e.Irrelevant="Irrelevant",e.Unknown="Unknown"}(Qn||(Qn={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Zn||(Zn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(eo||(eo={})),function(e){e.HeaderKeys="headerKeys"}(to||(to={})),function(e){e.Java="java",e.Golang="golang"}(no||(no={}));class uo{className;methodName;constructor(e,t){this.className=e,this.methodName=t}Verify(){return!!this.className&&!!this.methodName}toString(){return this.Verify()?`${this.className}.${this.methodName}`:"[Faulty Java Probe]"}}class po{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,o){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=o||""}Verify(){return!!this.packageName&&(this.functionName?!(this.receiverMethodName||this.receiverName):!(!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(oo||(oo={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(ro||(ro={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(io||(io={})),function(e){e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"}(ao||(ao={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(so||(so={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"}(lo||(lo={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"}(co||(co={}));const ho={[lo.Logs]:co.Logs,[lo.Metrics]:co.Metrics,[lo.Traces]:co.Traces,[lo.Profiles]:co.Profiles},go={[co.Logs]:lo.Logs,[co.Metrics]:lo.Metrics,[co.Traces]:lo.Traces,[co.Profiles]:lo.Profiles};var mo;!function(e){e.Equals="equals",e.NotEquals="notEquals",e.EndWith="endWith",e.StartWith="startWith"}(mo||(mo={}));const fo=(e,t)=>e===Mn.Success?bn.HEALTHY:e===Mn.Error?bn.NOT_HEALTHY:nn(t),bo=e=>{if(!e)return null;switch(e){case Qn.Irrelevant:return null;case Qn.Failure:case Qn.Error:return Mn.Error;case Qn.Notice:return Mn.Warning;case Qn.Pending:case Qn.Waiting:return Un.Loading;case Qn.Unsupported:case Qn.Disabled:return Un.Disabled;case Qn.Success:return Mn.Success;case Qn.Unknown:default:return Mn.Info}},yo=(e,t,n="reason",o)=>{const r=bo(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Mn.Success?l:c),label:o||("reason"===n?nn(e?.reasonEnum):fo(r,e?.reasonEnum)),tooltip:e?.message,textSize:rn.XXXS,invertColors:!0,useSecondaryTone:!0}:null},$o=e=>e.charAt(0).toUpperCase()+e.slice(1),vo=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,n(o)]:[e,o]));return Object.entries(e).reduce((e,[o,r])=>{try{const i=JSON.parse(r);Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]="object"==typeof i&&null!==i?JSON.stringify(n(i)):r}catch(i){"object"==typeof r&&null!==r?Array.isArray(r)?e[o]=JSON.stringify(t(r)):e[o]=JSON.stringify(n(r)):e[o]=r}return e},{})};var So;!function(e){e.SIGNALS="SIGNALS"}(So||(So={}));const xo=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,r,i]=e;if(o===So.SIGNALS)switch(r){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=n.find(e=>e.name===o||e.key===o);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(r){case"===":case"==":return s===i;case"!==":case"!=":return s!==i;case">":return Number(s)>Number(i);case"<":return Number(s)<Number(i);case">=":return Number(s)>=Number(i);case"<=":return Number(s)<=Number(i);default:return!0}},wo=e=>JSON.parse(JSON.stringify(e)),Eo=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Co=(e,t,n)=>{const o=t.split(".");let r=e;for(let e=0;e<o.length-1;e++)o[e]in r&&"object"==typeof r[o[e]]||(r[o[e]]={}),r=r[o[e]];r[o[o.length-1]]=n},To=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),n},Ao=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Io=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Do=(e,t)=>{let n=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.namespace))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));n=n.filter(({runtimeInfo:t,containers:n})=>t?.detectedLanguages?.some(t=>e.has(t))||n?.some(t=>{const n=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!n&&e.has(n)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));n=n.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}return t.onlyErrors&&(n=n.filter(e=>bo(e.workloadOdigosHealthStatus?.status)===Mn.Error)),n},No=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===pn&&!e.dataStreamNames?.length):[],ko=(e,t="",n={})=>{for(const o in e)if(e.hasOwnProperty(o)){const r=e[o],i=t?`${t}.${o}`:o;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const o=`${i}[${t}]`;null!==e&&"object"==typeof e?ko(e,o,n):n[o]=e}):n[i]=r:ko(r,i,n)}return n},Oo=e=>{if(!e)return"0 KB/s";const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(0===t?0:1)} ${["Bytes/s","KB/s","MB/s","GB/s","TB/s"][t]}`},Ro=e=>{if(!e)return"0 ns";if(e<1e3)return`${e.toFixed(0)} ns`;if(e<1e6){const t=e/1e3;return`${t.toFixed(t<10?2:0)} μs`}if(e<1e9){const t=e/1e6;return`${t.toFixed(t<10?2:0)} ms`}if(e<6e10){const t=e/1e9;return`${t.toFixed(t<10?2:0)} s`}if(e<36e11){const t=e/6e10;return`${t.toFixed(t<10?2:0)} m`}if(e<864e11){const t=e/36e11;return`${t.toFixed(t<10?2:0)} h`}{const t=e/864e11;return`${t.toFixed(t<10?2:0)} d`}},_o=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const o=e[t%16];t++;return("1"===n?o:"0"===n?63&o|128:15&o|64).toString(16)})},Lo=e=>{const t=e?.toLowerCase(),n=t?.includes($n.Samplers),o=t===$n.Attributes;if(n)return d;if(o)return u;return{[vn.K8sAttributes]:f,[vn.AddClusterInfo]:m,[vn.DeleteAttributes]:g,[vn.PiiMasking]:u,[vn.RenameAttributes]:h,[vn.URLTemplatization]:p,[vn.ErrorSampler]:d,[vn.ProbabilisticSampler]:d,[vn.LatencySampler]:d,[vn.ServiceNameSampler]:d,[vn.SpanAttributeSampler]:d}[e]||b},Po=e=>{if(!e)return Fo([]);if(Array.isArray(e))return Fo(e);const t=Object.values(e).reduce((e,t)=>{if(null!=t){const n=bo(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]);return Fo(t)},Fo=e=>{const t=e?.filter(({status:e})=>e===Mn.Error),n=e?.filter(({status:e})=>e===Mn.Warning),o=e?.filter(({status:e})=>e===Un.Disabled),r=e?.filter(({status:e})=>e===Un.Loading),i=t.length>0,a=n.length>0,s=o.length>0;return{errors:t,hasErrors:i,warnings:n,hasWarnings:a,disableds:o,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:i?Mn.Error:a?Mn.Warning:s?Mn.Info:void 0}},Mo=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},zo=e=>({[On.Java]:_,[On.Go]:R,[On.JavaScript]:O,[On.Python]:k,[On.DotNet]:N,[On.CSharp]:D,[On.CPlusPlus]:I,[On.Php]:A,[On.Ruby]:T,[On.Rust]:C,[On.Swift]:E,[On.Elixir]:w,[On.MySql]:x,[On.Nginx]:S,[On.Postgres]:v,[On.Redis]:$,[On.Kafka]:y,[On.Ignored]:b,[On.Unknown]:b,[On.Processing]:b,[On.NoContainers]:b,[On.NoRunningPods]:b}[e]||b),Uo=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??On.Unknown:On.Unknown,Bo=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,jo=e=>e?.map(e=>zo(Uo(e)))||[],Ho=e=>e?.map(e=>zo(e))||[],Wo=e=>e.runtimeInfo?.detectedLanguages?.length?Ho(e.runtimeInfo?.detectedLanguages):jo(e.containers),Go=(e,t)=>{const n={[Jn.Alauda]:ze,[Jn.AlibabaCloud]:Me,[Jn.AppDynamics]:Fe,[Jn.Axiom]:Pe,[Jn.AzureBlob]:Le,[Jn.AzureMonitor]:_e,[Jn.BetterStack]:Re,[Jn.Bonree]:Oe,[Jn.Causely]:ke,[Jn.Checkly]:Ne,[Jn.Chronosphere]:De,[Jn.ClickHouse]:Ie,[Jn.CloudWatch]:Ae,[Jn.Coralogix]:Te,[Jn.Dash0]:Ce,[Jn.Datadog]:Ee,[Jn.Dynamic]:Q,[Jn.Dynatrace]:we,[Jn.ElasticApm]:xe,[Jn.ElasticSearch]:Se,[Jn.GoogleCloud]:ve,[Jn.GoogleCloudOTLP]:ve,[Jn.GrafanaCloudLoki]:$e,[Jn.GrafanaCloudPrometheus]:$e,[Jn.GrafanaCloudTempo]:$e,[Jn.Greptime]:ye,[Jn.Groundcover]:be,[Jn.Honeycomb]:fe,[Jn.HyperDX]:me,[Jn.Instana]:ge,[Jn.Jaeger]:he,[Jn.Kafka]:y,[Jn.Kloudmate]:pe,[Jn.Last9]:ue,[Jn.Lightstep]:de,[Jn.LogzIo]:ce,[Jn.Loki]:le,[Jn.Lumigo]:se,[Jn.Middleware]:ae,[Jn.NewRelic]:ie,[Jn.Observe]:re,[Jn.Odigos]:oe,[Jn.OneUptime]:ne,[Jn.OpenObserve]:te,[Jn.Opsverse]:ee,[Jn.Oracle]:Z,[Jn.OTLP]:Q,[Jn.OTLPHttp]:Q,[Jn.Prometheus]:Y,[Jn.Qryn]:q,[Jn.QrynOss]:J,[Jn.Quickwit]:V,[Jn.S3]:K,[Jn.Seq]:X,[Jn.Signalfx]:W,[Jn.Signoz]:G,[Jn.Splunk]:W,[Jn.SplunkSapm]:W,[Jn.SplunkOtlp]:W,[Jn.SumoLogic]:H,[Jn.TelemetryHub]:j,[Jn.Tempo]:B,[Jn.Tingyun]:U,[Jn.Traceloop]:z,[Jn.Uptrace]:M,[Jn.VictoriaMetrics]:F,[Jn.VictoriaMetricsCloud]:F,[Jn.XRay]:P,[Jn.Pyroscope]:L}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},Xo=e=>({[_n.Namespace]:We,[_n.Source]:He,[_n.Destination]:je,[_n.Action]:p,[_n.InstrumentationRule]:Be,[_n.SamplingRule]:Ue}[e]),Ko=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&"string"==typeof e.id&&e.id||"id"in e&&"object"==typeof e.id&&e.id.namespace&&e.id.kind&&e.id.name?e.id:"namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name?{namespace:e.namespace,name:e.name,kind:e.kind}:"name"in e&&e.name?e.name:void 0,Vo=e=>e?"string"==typeof e?e:`${e.namespace}/${e.kind}/${e.name}`:"",Jo=e=>Vo(Ko(e)),qo=(e,t,n)=>{const{extended:o,prioritizeDisplayName:r}=n||{};let i="",a="";switch(t){case _n.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case _n.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case _n.Action:const o=e;i=o.type,a=o.name||"";break;case _n.Destination:const r=e;i=r.destinationType.displayName,a=r.name;break;case _n.Namespace:const s=e;i=s.name,a=s.name}return o?i+(a&&a!==i?` (${a})`:""):r&&a||i},Yo=(e,t)=>{if(t===_n.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},Qo=e=>({[Zn.CodeAttributes]:Ve,[Zn.CustomInstrumentation]:Ke,[Zn.HeadersCollection]:Xe,[Zn.PayloadCollection]:Ge,[Zn.UnknownType]:b}[e]||b),Zo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??On.Unknown,er=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?On.Processing:On.NoRunningPods;const o=n?.filter(e=>Zo(e)!==On.Ignored);if(!o.length)return On.NoContainers;const r=o.find(e=>Zo(e)!==On.Unknown);return r?Zo(r):On.Unknown},tr=(e,t,n)=>(t===_n.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},nr=e=>({[lo.Logs]:Ye,[lo.Metrics]:qe,[lo.Traces]:Je,[lo.Profiles]:oe}[e]),or=e=>{if(!e)return oe;return{[Nn.K8s]:f,[Nn.Vm]:Qe}[e]},rr=e=>{if(!e)return"Unknown";return{[Nn.K8s]:"Kubernetes Cluster",[Nn.Vm]:"Virtual Machine"}[e]},ir=(e,t,n)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[n],r=[];return void 0!==o&&(Array.isArray(o)?r.push(...o):r.push(o)),r.push(...ir(e,t,n)),r}):[]},ar=(e,t)=>{if(t===_n.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},sr=(e,t,n)=>{switch(t){case Mn.Default:return e.v2.colors.purple[n];case Mn.Info:return e.v2.colors.blue[n];case Mn.Error:return e.v2.colors.red[n];case Mn.Warning:return e.v2.colors.yellow[n];case Mn.Success:return e.v2.colors.green[n];case Un.Loading:case Bn.Disabled:case Bn.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},lr=e=>{switch(e){case ro.Updating:case io.Pending:case ao.ContainerCreating:case so.Waiting:return Mn.Info;case ro.Healthy:case io.Succeeded:case io.Running:case ao.Running:case so.Running:return Mn.Success;case ro.Degraded:return Mn.Warning;case ro.Failed:case io.Failed:case ao.Error:case ao.CrashLoopBackOff:case ao.CreateContainerError:case ao.CreateContainerConfigError:case ao.ErrImagePull:case ao.ErrImageNeverPull:case ao.ImagePullBackOff:case ao.InvalidImageName:case ao.RegistryUnavailable:case ao.NetworkNotReady:case ao.OOMKilled:case ao.ContainerCannotRun:case so.Terminated:case ao.DeadlineExceeded:case ao.StartError:return Mn.Error;case ro.Down:case ao.Completed:return Bn.Disabled;case ro.Unknown:case io.Unknown:default:return Bn.Unknown}},cr=o.div`
30
30
  border-radius: 100%;
31
31
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
32
32
  position: relative;
@@ -1567,4 +1567,4 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as
1567
1567
  padding: 16px 24px;
1568
1568
  width: calc(100% - 48px);
1569
1569
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
1570
- `,Ig=({visual:n,title:o,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e(Uh,{isOpen:i,onClose:a,...d,children:t(Cg,{children:[t(Tg,{children:[n&&e(n,{}),e(dn,{size:rn.M,weight:500,color:an.Primary,children:o}),e(kr,{$alignItems:"center",$gap:4,children:r.split("\n").map(t=>e(dn,{size:rn.XS,weight:400,color:an.Secondary,children:t},t))}),c]}),(s||l)&&t(Ag,{children:[s&&e(Fd,{"data-id":"deny",...s}),l&&e(Fd,{"data-id":"approve",...l})]})]})});export{yu as $,Ci as A,fn as B,Rn as C,bn as D,_n as E,kr as F,Zr as G,Yl as H,jd as I,ei as J,Ii as K,ci as L,lo as M,Lu as N,qr as O,Nn as P,li as Q,Pn as R,Mn as S,Dn as T,Ni as U,to as V,no as W,po as X,uo as Y,Zn as Z,qn as _,Ei as a,Qn as a$,zu as a0,$u as a1,wu as a2,Fn as a3,Rh as a4,xn as a5,Zp as a6,Jp as a7,Ih as a8,Fd as a9,Or as aA,$h as aB,xc as aC,vc as aD,jr as aE,Di as aF,Go as aG,Bn as aH,Vp as aI,on as aJ,lc as aK,ic as aL,gn as aM,hn as aN,Ko as aO,yn as aP,Dr as aQ,up as aR,Xp as aS,Lo as aT,si as aU,Io as aV,Yr as aW,nn as aX,bg as aY,Qo as aZ,yo as a_,Ld as aa,_d as ab,un as ac,Nu as ad,vg as ae,xo as af,uh as ag,gi as ah,an as ai,eo as aj,Qc as ak,oo as al,mu as am,Hl as an,zo as ao,Ig as ap,is as aq,fa as ar,Ea as as,as as at,Na as au,rs as av,Ki as aw,Vi as ax,gp as ay,oa as az,dn as b,kl as b$,bo as b0,Bp as b1,jl as b2,Uo as b3,Un as b4,gg as b5,Pp as b6,tp as b7,Ru as b8,su as b9,hs as bA,ps as bB,fs as bC,ms as bD,ds as bE,cs as bF,Oi as bG,Za as bH,Dc as bI,ti as bJ,Vu as bK,Hu as bL,ju as bM,_o as bN,oc as bO,Uh as bP,Pl as bQ,$s as bR,Os as bS,Rs as bT,_s as bU,Ls as bV,Fs as bW,Ps as bX,Ms as bY,Tr as bZ,Nl as b_,Ql as ba,Jr as bb,Ah as bc,Oo as bd,wc as be,fo as bf,Wr as bg,kc as bh,Xl as bi,Wl as bj,ii as bk,Bo as bl,Cu as bm,On as bn,hg as bo,eg as bp,jo as bq,ki as br,Fi as bs,Ri as bt,Pi as bu,Fl as bv,zl as bw,ba as bx,Li as by,Ml as bz,rn as c,dl as c$,Ol as c0,Rl as c1,_l as c2,Ll as c3,vs as c4,xs as c5,ws as c6,Es as c7,Ts as c8,Cs as c9,Sl as cA,xl as cB,wl as cC,vl as cD,Cl as cE,Tl as cF,Al as cG,Il as cH,Dl as cI,El as cJ,yl as cK,$l as cL,cl as cM,ml as cN,fl as cO,bl as cP,ul as cQ,hl as cR,pl as cS,tl as cT,nl as cU,ol as cV,rl as cW,il as cX,al as cY,sl as cZ,ll as c_,Is as ca,As as cb,Ns as cc,Ds as cd,ks as ce,bs as cf,ys as cg,zs as ch,Us as ci,Xs as cj,Ws as ck,Gs as cl,js as cm,Hs as cn,Bs as co,qs as cp,Ys as cq,Vs as cr,Js as cs,Ks as ct,Zs as cu,el as cv,Qs as cw,qh as cx,Kh as cy,Ss as cz,rc as d,_a as d$,gl as d0,Ar as d1,Lh as d2,Zh as d3,nc as d4,No as d5,mn as d6,Bl as d7,_c as d8,bc as d9,Ui as dA,Mi as dB,zi as dC,Bi as dD,ss as dE,Qa as dF,qa as dG,Ya as dH,Ja as dI,Va as dJ,ns as dK,os as dL,ts as dM,es as dN,Oc as dO,Eg as dP,wa as dQ,ea as dR,xa as dS,Zi as dT,Ia as dU,Aa as dV,ha as dW,Sa as dX,Ta as dY,Pa as dZ,ma as d_,qo as da,Xo as db,Pu as dc,cc as dd,op as de,Jo as df,hu as dg,Vo as dh,$c as di,Do as dj,Ao as dk,To as dl,pc as dm,pn as dn,ip as dp,np as dq,lr as dr,ro as ds,bp as dt,kp as du,vp as dv,Ir as dw,Eu as dx,ra as dy,ja as dz,Gc as e,In as e$,da as e0,qi as e1,ua as e2,ca as e3,Yi as e4,pa as e5,Wa as e6,la as e7,Ba as e8,Ga as e9,Ju as eA,La as eB,$r as eC,ld as eD,Vd as eE,$n as eF,Vn as eG,Wn as eH,Cn as eI,jn as eJ,Jn as eK,Kn as eL,kn as eM,zn as eN,Tn as eO,mo as eP,An as eQ,En as eR,Yn as eS,Ln as eT,so as eU,ao as eV,io as eW,Gn as eX,go as eY,ho as eZ,co as e_,Ha as ea,Xa as eb,Ka as ec,ka as ed,Qi as ee,ta as ef,na as eg,ia as eh,sa as ei,aa as ej,ji as ek,Hi as el,Ji as em,Oa as en,Ra as eo,Fa as ep,Ul as eq,Wi as er,_i as es,ya as et,ga as eu,$a as ev,Ma as ew,va as ex,Ca as ey,za as ez,Uc as f,_r as f$,wn as f0,Hn as f1,Sr as f2,vr as f3,Er as f4,$o as f5,vo as f6,di as f7,ko as f8,Ro as f9,Ua as fA,gs as fB,us as fC,ls as fD,Da as fE,Xi as fF,Gi as fG,Gl as fH,Kl as fI,Jl as fJ,Nc as fK,mc as fL,fc as fM,Ec as fN,Tc as fO,Ic as fP,Pc as fQ,md as fR,wd as fS,bd as fT,gd as fU,zd as fV,Nd as fW,Gd as fX,Hd as fY,Rd as fZ,Lr as f_,Mo as fa,Eo as fb,Ho as fc,Yo as fd,er as fe,tr as ff,nr as fg,or as fh,rr as fi,ir as fj,ar as fk,sr as fl,Gr as fm,Qr as fn,ni as fo,oi as fp,ai as fq,ui as fr,pi as fs,hi as ft,mi as fu,fi as fv,Co as fw,bi as fx,yi as fy,Ai as fz,yc as g,iu as g0,Pr as g1,Fr as g2,Mr as g3,td as g4,Rr as g5,jc as g6,Hc as g7,Wc as g8,Zu as g9,ep as ga,Bu as gb,Sg as gc,Sp as gd,xh as ge,Eh as gf,Xh as gg,Qh as gh,pp as gi,th as gj,Kp as gk,ln as gl,Nr as h,fd as i,Hr as j,Xn as k,Vr as l,Wo as m,Po as n,yh as o,Cd as p,ec as q,Vl as r,ou as s,$i as t,Rc as u,hc as v,wo as w,Ti as x,Sn as y,vn as z};
1570
+ `,Ig=({visual:n,title:o,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e(Uh,{isOpen:i,onClose:a,...d,children:t(Cg,{children:[t(Tg,{children:[n&&e(n,{}),e(dn,{size:rn.M,weight:500,color:an.Primary,children:o}),e(kr,{$alignItems:"center",$gap:4,children:r.split("\n").map(t=>e(dn,{size:rn.XS,weight:400,color:an.Secondary,children:t},t))}),c]}),(s||l)&&t(Ag,{children:[s&&e(Fd,{"data-id":"deny",...s}),l&&e(Fd,{"data-id":"approve",...l})]})]})});export{yu as $,Ci as A,fn as B,Rn as C,bn as D,_n as E,kr as F,Zr as G,Yl as H,jd as I,ei as J,Ii as K,ci as L,lo as M,Lu as N,qr as O,Nn as P,li as Q,Pn as R,Mn as S,Dn as T,Ni as U,to as V,no as W,po as X,uo as Y,Zn as Z,qn as _,Ei as a,Qn as a$,zu as a0,$u as a1,wu as a2,Fn as a3,Rh as a4,xn as a5,Zp as a6,Jp as a7,Ih as a8,Fd as a9,Or as aA,$h as aB,xc as aC,vc as aD,jr as aE,Di as aF,Go as aG,Bn as aH,Vp as aI,on as aJ,lc as aK,ic as aL,gn as aM,hn as aN,Ko as aO,yn as aP,Dr as aQ,up as aR,Xp as aS,Lo as aT,si as aU,Io as aV,Yr as aW,nn as aX,bg as aY,Qo as aZ,yo as a_,Ld as aa,_d as ab,un as ac,Nu as ad,vg as ae,xo as af,uh as ag,gi as ah,an as ai,eo as aj,Qc as ak,oo as al,mu as am,Hl as an,zo as ao,Ig as ap,is as aq,fa as ar,Ea as as,as as at,Na as au,rs as av,Ki as aw,Vi as ax,gp as ay,oa as az,dn as b,kl as b$,Bp as b0,bo as b1,jl as b2,Uo as b3,Un as b4,gg as b5,Pp as b6,tp as b7,Ru as b8,su as b9,hs as bA,ps as bB,fs as bC,ms as bD,ds as bE,cs as bF,Oi as bG,Za as bH,Dc as bI,ti as bJ,Vu as bK,Hu as bL,ju as bM,_o as bN,oc as bO,Uh as bP,Pl as bQ,$s as bR,Os as bS,Rs as bT,_s as bU,Ls as bV,Fs as bW,Ps as bX,Ms as bY,Tr as bZ,Nl as b_,Ql as ba,Jr as bb,Ah as bc,Oo as bd,wc as be,fo as bf,Wr as bg,kc as bh,Xl as bi,Wl as bj,ii as bk,Bo as bl,Cu as bm,On as bn,hg as bo,eg as bp,jo as bq,ki as br,Fi as bs,Ri as bt,Pi as bu,Fl as bv,zl as bw,ba as bx,Li as by,Ml as bz,rn as c,dl as c$,Ol as c0,Rl as c1,_l as c2,Ll as c3,vs as c4,xs as c5,ws as c6,Es as c7,Ts as c8,Cs as c9,Sl as cA,xl as cB,wl as cC,vl as cD,Cl as cE,Tl as cF,Al as cG,Il as cH,Dl as cI,El as cJ,yl as cK,$l as cL,cl as cM,ml as cN,fl as cO,bl as cP,ul as cQ,hl as cR,pl as cS,tl as cT,nl as cU,ol as cV,rl as cW,il as cX,al as cY,sl as cZ,ll as c_,Is as ca,As as cb,Ns as cc,Ds as cd,ks as ce,bs as cf,ys as cg,zs as ch,Us as ci,Xs as cj,Ws as ck,Gs as cl,js as cm,Hs as cn,Bs as co,qs as cp,Ys as cq,Vs as cr,Js as cs,Ks as ct,Zs as cu,el as cv,Qs as cw,qh as cx,Kh as cy,Ss as cz,rc as d,_a as d$,gl as d0,Ar as d1,Lh as d2,Zh as d3,nc as d4,No as d5,mn as d6,Bl as d7,_c as d8,bc as d9,Ui as dA,Mi as dB,zi as dC,Bi as dD,ss as dE,Qa as dF,qa as dG,Ya as dH,Ja as dI,Va as dJ,ns as dK,os as dL,ts as dM,es as dN,Oc as dO,Eg as dP,wa as dQ,ea as dR,xa as dS,Zi as dT,Ia as dU,Aa as dV,ha as dW,Sa as dX,Ta as dY,Pa as dZ,ma as d_,qo as da,Xo as db,Pu as dc,cc as dd,op as de,Jo as df,hu as dg,Vo as dh,$c as di,Do as dj,Ao as dk,To as dl,pc as dm,pn as dn,ip as dp,np as dq,lr as dr,ro as ds,bp as dt,kp as du,vp as dv,Ir as dw,Eu as dx,ra as dy,ja as dz,Gc as e,In as e$,da as e0,qi as e1,ua as e2,ca as e3,Yi as e4,pa as e5,Wa as e6,la as e7,Ba as e8,Ga as e9,Ju as eA,La as eB,$r as eC,ld as eD,Vd as eE,$n as eF,Vn as eG,Wn as eH,Cn as eI,jn as eJ,Jn as eK,Kn as eL,kn as eM,zn as eN,Tn as eO,mo as eP,An as eQ,En as eR,Yn as eS,Ln as eT,so as eU,ao as eV,io as eW,Gn as eX,go as eY,ho as eZ,co as e_,Ha as ea,Xa as eb,Ka as ec,ka as ed,Qi as ee,ta as ef,na as eg,ia as eh,sa as ei,aa as ej,ji as ek,Hi as el,Ji as em,Oa as en,Ra as eo,Fa as ep,Ul as eq,Wi as er,_i as es,ya as et,ga as eu,$a as ev,Ma as ew,va as ex,Ca as ey,za as ez,Uc as f,_r as f$,wn as f0,Hn as f1,Sr as f2,vr as f3,Er as f4,$o as f5,vo as f6,di as f7,ko as f8,Ro as f9,Ua as fA,gs as fB,us as fC,ls as fD,Da as fE,Xi as fF,Gi as fG,Gl as fH,Kl as fI,Jl as fJ,Nc as fK,mc as fL,fc as fM,Ec as fN,Tc as fO,Ic as fP,Pc as fQ,md as fR,wd as fS,bd as fT,gd as fU,zd as fV,Nd as fW,Gd as fX,Hd as fY,Rd as fZ,Lr as f_,Mo as fa,Eo as fb,Ho as fc,Yo as fd,er as fe,tr as ff,nr as fg,or as fh,rr as fi,ir as fj,ar as fk,sr as fl,Gr as fm,Qr as fn,ni as fo,oi as fp,ai as fq,ui as fr,pi as fs,hi as ft,mi as fu,fi as fv,Co as fw,bi as fx,yi as fy,Ai as fz,yc as g,iu as g0,Pr as g1,Fr as g2,Mr as g3,td as g4,Rr as g5,jc as g6,Hc as g7,Wc as g8,Zu as g9,ep as ga,Bu as gb,Sg as gc,Sp as gd,xh as ge,Eh as gf,Xh as gg,Qh as gh,pp as gi,th as gj,Kp as gk,ln as gl,Nr as h,fd as i,Hr as j,Xn as k,Vr as l,Wo as m,Po as n,yh as o,Cd as p,ec as q,Vl as r,ou as s,$i as t,Rc as u,hc as v,wo as w,Ti as x,Sn as y,vn as z};
@@ -1 +1 @@
1
- export{eA as Autocomplete,am as Badge,a9 as Button,aa as ButtonSize,g9 as ButtonTab,ga as ButtonTabList,ab as ButtonVariants,a0 as Checkbox,gb as CheckboxList,dc as CheckboxSize,b6 as CliCommand,b1 as Condition,aS as Conditions,gc as DEFAULT_TIME_UNITS,aR as DataCard,o as Drawer,bK as DropData,bM as DropDataAlignX,bL as DropDataAlignY,aB as DropDown,a1 as FieldMessage,$ as FieldTitle,du as GaugeChart,gd as GaugeChartVariant,ge as Header,gf as HoverActions,aC as IconButton,aD as IconButtonSize,bc as IconGroup,a2 as Input,a8 as InputList,a4 as InputTable,d2 as Island,aE as Loader,bP as Modal,gg as Navbar,N as NoData,ag as Note,cx as Radio,gh as RadioGroup,cy as RadioSize,b8 as Search,ay as SectionCard,gi as SectionCardSize,ad as Segment,dx as SegmentSize,bm as SegmentVariant,dt as StatusCard,d3 as Stepper,bo as Table,bp as TableVariant,aY as Tag,b5 as TagVariants,ae as TextArea,dv as TextCard,dP as TimeInput,a6 as Toggle,a7 as ToggleLabelAlign,gj as ToggleList,aI as ToggleSize,gk as ToggleVariant,de as TruncatableTypography,b as Typography,ai as TypographyColor,c as TypographySize,aJ as TypographyVariants,ap as WarningModal,gl as resolveTypographyColor}from"../chunks/ui-components-DeKNGyn7.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{eA as Autocomplete,am as Badge,a9 as Button,aa as ButtonSize,g9 as ButtonTab,ga as ButtonTabList,ab as ButtonVariants,a0 as Checkbox,gb as CheckboxList,dc as CheckboxSize,b6 as CliCommand,b0 as Condition,aS as Conditions,gc as DEFAULT_TIME_UNITS,aR as DataCard,o as Drawer,bK as DropData,bM as DropDataAlignX,bL as DropDataAlignY,aB as DropDown,a1 as FieldMessage,$ as FieldTitle,du as GaugeChart,gd as GaugeChartVariant,ge as Header,gf as HoverActions,aC as IconButton,aD as IconButtonSize,bc as IconGroup,a2 as Input,a8 as InputList,a4 as InputTable,d2 as Island,aE as Loader,bP as Modal,gg as Navbar,N as NoData,ag as Note,cx as Radio,gh as RadioGroup,cy as RadioSize,b8 as Search,ay as SectionCard,gi as SectionCardSize,ad as Segment,dx as SegmentSize,bm as SegmentVariant,dt as StatusCard,d3 as Stepper,bo as Table,bp as TableVariant,aY as Tag,b5 as TagVariants,ae as TextArea,dv as TextCard,dP as TimeInput,a6 as Toggle,a7 as ToggleLabelAlign,gj as ToggleList,aI as ToggleSize,gk as ToggleVariant,de as TruncatableTypography,b as Typography,ai as TypographyColor,c as TypographySize,aJ as TypographyVariants,ap as WarningModal,gl as resolveTypographyColor}from"../chunks/ui-components-DofONrt0.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{aA as CenterThis,eD as Code,p as Divider,fV as ErrorBoundary,fW as FadeLoader,F as FlexColumn,h as FlexRow,I as IconButton,eE as IconGroup,fX as IconWrapped,fY as ImageControlled,fZ as LoadingText,f_ as ModalBody,s as NotificationNote,f$ as Overlay,aQ as Padding,d1 as PageContent,a as Popup,g0 as ScrollX,b9 as ScrollY,dg as SkeletonLoader,g1 as TableContainer,g2 as TableTitleWrap,g3 as TableWrap,e as Text,g4 as ToggleCodeComponent,ak as Tooltip,dw as UpgradeRequiredWrapper,g5 as VerticalScroll,g6 as getLinksFromText,g7 as getStrongsFromText,g8 as renderText}from"./chunks/ui-components-DeKNGyn7.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{aA as CenterThis,eD as Code,p as Divider,fV as ErrorBoundary,fW as FadeLoader,F as FlexColumn,h as FlexRow,I as IconButton,eE as IconGroup,fX as IconWrapped,fY as ImageControlled,fZ as LoadingText,f_ as ModalBody,s as NotificationNote,f$ as Overlay,aQ as Padding,d1 as PageContent,a as Popup,g0 as ScrollX,b9 as ScrollY,dg as SkeletonLoader,g1 as TableContainer,g2 as TableTitleWrap,g3 as TableWrap,e as Text,g4 as ToggleCodeComponent,ak as Tooltip,dw as UpgradeRequiredWrapper,g5 as VerticalScroll,g6 as getLinksFromText,g7 as getStrongsFromText,g8 as renderText}from"./chunks/ui-components-DofONrt0.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";
@@ -120,8 +120,9 @@ export declare const DISPLAY_TITLES: {
120
120
  PODS_HEALTHY: string;
121
121
  PODS_NOT_HEALTHY: string;
122
122
  NO_RUNNING_PODS: string;
123
+ NO_RUNNING_PODS_SUBTITLE: string;
123
124
  AGENT_INJECTED: string;
124
- INJECTIONS_HEALTHY: string;
125
+ INJECTIONS_AS_EXPECTED: string;
125
126
  AGENT_NOT_INJECTED: string;
126
127
  KUBERNETES_HEALTHY: string;
127
128
  ODIGOS_HEALTHY: string;
@@ -129,7 +130,9 @@ export declare const DISPLAY_TITLES: {
129
130
  UNHEALTHY: string;
130
131
  NOT_HEALTHY: string;
131
132
  NODE: string;
132
- START_TIME: string;
133
+ AGE: string;
134
+ RUNNING_TIME: string;
135
+ RUNNING_TIME_TOOLTIP: string;
133
136
  NOT_RUNNING: string;
134
137
  RESTARTS: string;
135
138
  LATEST_REVISION: string;
package/lib/constants.js CHANGED
@@ -1 +1 @@
1
- export{A as ACTION_ATTRIBUTE_OPTIONS,fz as ACTION_OPTIONS,x as ACTION_SAMPLER_OPTIONS,fA as ALL_SOURCES,br as BTN_CANCEL,dB as BTN_CREATE_FIRST_RULE,by as BTN_CREATE_RULE,bu as BTN_DELETE_RULE,es as BTN_EDIT_AUTO_RULE,bt as BTN_EDIT_RULE,bG as BTN_SAVE,bs as BTN_SAVE_RULE,aP as BUTTON_TEXTS,bv as CATEGORY_DESCRIPTIONS,eq as CATEGORY_LABELS,bz as CATEGORY_TITLES,fB as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,fC as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,fD as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,aN as DEFAULT_CLUSTER_ID,aM as DEFAULT_CLUSTER_NAME,dn as DEFAULT_DATA_STREAM_NAME,dV as DESC_DURATION,dU as DESC_ERRORS,dY as DESC_OPERATION,fE as DESC_PERCENTAGE_HIGHLY_RELEVANT,au as DESC_PERCENTAGE_NOISY,er as DESC_RULE_TYPE,ey as DESC_SOURCE_SCOPE,aF as DESTINATION_CATEGORIES,an as DISPLAY_LANGUAGES,D as DISPLAY_TITLES,ac as DOCS_BASE_URL,K as DestinationCategoryTypes,bC as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,bD as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,bA as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,bB as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,bE as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,bF as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,bw as EDIT_TITLES,e8 as EMPTY_VALUE,dz as FILTER_TYPE_ALL,B as FORM_ALERTS,U as INSTRUMENTATION_RULE_OPTIONS,dW as LABEL_CUSTOM_DURATION,az as LABEL_CUSTOM_PERCENTAGE,ax as LABEL_DISABLED,dy as LABEL_DISABLED_RULE,ei as LABEL_DROP_ALL,ar as LABEL_DROP_AT_MOST,aw as LABEL_ENABLED,e1 as LABEL_HTTP_ROUTE,e3 as LABEL_HTTP_ROUTE_PREFIX,e5 as LABEL_KAFKA_TOPIC,ej as LABEL_KEEP_ALL,ef as LABEL_KEEP_AT_LEAST,eg as LABEL_KEEP_AT_MOST,ee as LABEL_KEEP_PERCENTAGE,dT as LABEL_KEEP_TRACES_DURATION,dR as LABEL_KEEP_TRACES_ERRORS,e4 as LABEL_METHOD,em as LABEL_NOTE,eu as LABEL_NO_PREVIEW,e7 as LABEL_OPERATION_TYPE,fF as LABEL_RULE_DISABLED,fG as LABEL_RULE_ENABLED,ek as LABEL_RULE_NAME,el as LABEL_RULE_TYPE,eh as LABEL_SAMPLE,d_ as LABEL_SERVER_ADDRESS,e0 as LABEL_TEMPLATED_PATH,e2 as LABEL_TEMPLATED_PATH_PREFIX,bj as LANGUAGE_OPTIONS,d7 as MONITORS_OPTIONS,ew as NOTE_ENTIRE_CLUSTER,ez as NOTE_SOURCE_SCOPE_LOGIC,fH as OPENTELEMETRY_EBPF_DISTRO_OPTION,ea as OPERATION_ALL,e9 as OPERATION_HTTP_CLIENT,e6 as OPERATION_HTTP_SERVER,eb as OPERATION_KAFKA_CONSUMER,ec as OPERATION_KAFKA_PRODUCER,bi as OTEL_DISTRO_NAME_OPTIONS,ed as PERCENTAGE_SECTION_DESCRIPTIONS,eo as PLACEHOLDER_NOTE,d$ as PLACEHOLDER_ROUTE,en as PLACEHOLDER_RULE_NAME,eB as PLACEHOLDER_SEARCH_SOURCE,dZ as PLACEHOLDER_SERVER_ADDRESS,b2 as PROCESS_ATTRIBUTE_NAMES,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,bH as SAMPLING_DRAWER_WIDTH,dE as SAMPLING_DUPLICATE_RULE_WARNING,aq as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,cA as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,cB as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,cC as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,cD as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,cE as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,cF as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,cG as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,cH as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,cI as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,cJ as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,cL as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,cK as SAMPLING_ONBOARDING_ADVANCED_TITLE,d0 as SAMPLING_ONBOARDING_AMBIENT_LABEL,c4 as SAMPLING_ONBOARDING_BTN_GO_TO,bR as SAMPLING_ONBOARDING_BTN_NEXT,cz as SAMPLING_ONBOARDING_BTN_READ_MORE,cf as SAMPLING_ONBOARDING_BTN_SKIP,cg as SAMPLING_ONBOARDING_BTN_START,cM as SAMPLING_ONBOARDING_COMMON_BANNER,c$ as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,cP as SAMPLING_ONBOARDING_DROP_DESCRIPTION,cO as SAMPLING_ONBOARDING_DROP_SUBTITLE,cN as SAMPLING_ONBOARDING_DROP_TITLE,cS as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,cR as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,cV as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,cU as SAMPLING_ONBOARDING_KEEP_SUBTITLE,cT as SAMPLING_ONBOARDING_KEEP_TITLE,cW as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,cX as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,cY as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,cZ as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,c_ as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,bY as SAMPLING_ONBOARDING_NOISY_BANNER,bU as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,bX as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,bV as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,bW as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,bT as SAMPLING_ONBOARDING_NOISY_SUBTITLE,bS as SAMPLING_ONBOARDING_NOISY_TITLE,cQ as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,bQ as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,cu as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,cv as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,cw as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,cr as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,cp as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,cq as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,cs as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,ct as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,cm as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,ck as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,cl as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,cn as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,co as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,cj as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,ci as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,ch as SAMPLING_ONBOARDING_STRATEGY_TITLE,c1 as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,c2 as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,c3 as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,c0 as SAMPLING_ONBOARDING_SUCCESS_INTRO,b$ as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,b_ as SAMPLING_ONBOARDING_SUCCESS_TITLE,ce as SAMPLING_ONBOARDING_WELCOME_BANNER,c7 as SAMPLING_ONBOARDING_WELCOME_INTRO,c8 as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,c9 as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,ca as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,cb as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,cc as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,cd as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,c6 as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,c5 as SAMPLING_ONBOARDING_WELCOME_TITLE,dI as SAMPLING_PAGE_DESCRIPTION,dJ as SAMPLING_PAGE_TITLE,dS as SECTION_DURATION,dQ as SECTION_ERRORS,as as SECTION_KEEP_PERCENTAGE,dX as SECTION_OPERATION,et as SECTION_SAMPLING_PREVIEW,ev as SECTION_SOURCE_SCOPE,d6 as STORAGE_KEYS,dA as TITLE_NO_RESULTS,dC as TITLE_NO_RULES,fI as TOKEN_ABOUT_TO_EXPIRE,ep as TOOLTIP_NOTE,ex as UNKNOWN_SOURCE_LABEL,bx as UNNAMED_RULE,dD as getNoResultsSubTitle}from"./chunks/ui-components-DeKNGyn7.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_ATTRIBUTE_OPTIONS,fz as ACTION_OPTIONS,x as ACTION_SAMPLER_OPTIONS,fA as ALL_SOURCES,br as BTN_CANCEL,dB as BTN_CREATE_FIRST_RULE,by as BTN_CREATE_RULE,bu as BTN_DELETE_RULE,es as BTN_EDIT_AUTO_RULE,bt as BTN_EDIT_RULE,bG as BTN_SAVE,bs as BTN_SAVE_RULE,aP as BUTTON_TEXTS,bv as CATEGORY_DESCRIPTIONS,eq as CATEGORY_LABELS,bz as CATEGORY_TITLES,fB as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,fC as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,fD as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,aN as DEFAULT_CLUSTER_ID,aM as DEFAULT_CLUSTER_NAME,dn as DEFAULT_DATA_STREAM_NAME,dV as DESC_DURATION,dU as DESC_ERRORS,dY as DESC_OPERATION,fE as DESC_PERCENTAGE_HIGHLY_RELEVANT,au as DESC_PERCENTAGE_NOISY,er as DESC_RULE_TYPE,ey as DESC_SOURCE_SCOPE,aF as DESTINATION_CATEGORIES,an as DISPLAY_LANGUAGES,D as DISPLAY_TITLES,ac as DOCS_BASE_URL,K as DestinationCategoryTypes,bC as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,bD as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,bA as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,bB as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,bE as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,bF as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,bw as EDIT_TITLES,e8 as EMPTY_VALUE,dz as FILTER_TYPE_ALL,B as FORM_ALERTS,U as INSTRUMENTATION_RULE_OPTIONS,dW as LABEL_CUSTOM_DURATION,az as LABEL_CUSTOM_PERCENTAGE,ax as LABEL_DISABLED,dy as LABEL_DISABLED_RULE,ei as LABEL_DROP_ALL,ar as LABEL_DROP_AT_MOST,aw as LABEL_ENABLED,e1 as LABEL_HTTP_ROUTE,e3 as LABEL_HTTP_ROUTE_PREFIX,e5 as LABEL_KAFKA_TOPIC,ej as LABEL_KEEP_ALL,ef as LABEL_KEEP_AT_LEAST,eg as LABEL_KEEP_AT_MOST,ee as LABEL_KEEP_PERCENTAGE,dT as LABEL_KEEP_TRACES_DURATION,dR as LABEL_KEEP_TRACES_ERRORS,e4 as LABEL_METHOD,em as LABEL_NOTE,eu as LABEL_NO_PREVIEW,e7 as LABEL_OPERATION_TYPE,fF as LABEL_RULE_DISABLED,fG as LABEL_RULE_ENABLED,ek as LABEL_RULE_NAME,el as LABEL_RULE_TYPE,eh as LABEL_SAMPLE,d_ as LABEL_SERVER_ADDRESS,e0 as LABEL_TEMPLATED_PATH,e2 as LABEL_TEMPLATED_PATH_PREFIX,bj as LANGUAGE_OPTIONS,d7 as MONITORS_OPTIONS,ew as NOTE_ENTIRE_CLUSTER,ez as NOTE_SOURCE_SCOPE_LOGIC,fH as OPENTELEMETRY_EBPF_DISTRO_OPTION,ea as OPERATION_ALL,e9 as OPERATION_HTTP_CLIENT,e6 as OPERATION_HTTP_SERVER,eb as OPERATION_KAFKA_CONSUMER,ec as OPERATION_KAFKA_PRODUCER,bi as OTEL_DISTRO_NAME_OPTIONS,ed as PERCENTAGE_SECTION_DESCRIPTIONS,eo as PLACEHOLDER_NOTE,d$ as PLACEHOLDER_ROUTE,en as PLACEHOLDER_RULE_NAME,eB as PLACEHOLDER_SEARCH_SOURCE,dZ as PLACEHOLDER_SERVER_ADDRESS,b2 as PROCESS_ATTRIBUTE_NAMES,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,bH as SAMPLING_DRAWER_WIDTH,dE as SAMPLING_DUPLICATE_RULE_WARNING,aq as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,cA as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,cB as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,cC as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,cD as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,cE as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,cF as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,cG as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,cH as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,cI as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,cJ as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,cL as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,cK as SAMPLING_ONBOARDING_ADVANCED_TITLE,d0 as SAMPLING_ONBOARDING_AMBIENT_LABEL,c4 as SAMPLING_ONBOARDING_BTN_GO_TO,bR as SAMPLING_ONBOARDING_BTN_NEXT,cz as SAMPLING_ONBOARDING_BTN_READ_MORE,cf as SAMPLING_ONBOARDING_BTN_SKIP,cg as SAMPLING_ONBOARDING_BTN_START,cM as SAMPLING_ONBOARDING_COMMON_BANNER,c$ as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,cP as SAMPLING_ONBOARDING_DROP_DESCRIPTION,cO as SAMPLING_ONBOARDING_DROP_SUBTITLE,cN as SAMPLING_ONBOARDING_DROP_TITLE,cS as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,cR as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,cV as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,cU as SAMPLING_ONBOARDING_KEEP_SUBTITLE,cT as SAMPLING_ONBOARDING_KEEP_TITLE,cW as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,cX as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,cY as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,cZ as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,c_ as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,bY as SAMPLING_ONBOARDING_NOISY_BANNER,bU as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,bX as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,bV as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,bW as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,bT as SAMPLING_ONBOARDING_NOISY_SUBTITLE,bS as SAMPLING_ONBOARDING_NOISY_TITLE,cQ as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,bQ as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,cu as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,cv as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,cw as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,cr as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,cp as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,cq as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,cs as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,ct as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,cm as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,ck as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,cl as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,cn as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,co as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,cj as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,ci as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,ch as SAMPLING_ONBOARDING_STRATEGY_TITLE,c1 as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,c2 as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,c3 as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,c0 as SAMPLING_ONBOARDING_SUCCESS_INTRO,b$ as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,b_ as SAMPLING_ONBOARDING_SUCCESS_TITLE,ce as SAMPLING_ONBOARDING_WELCOME_BANNER,c7 as SAMPLING_ONBOARDING_WELCOME_INTRO,c8 as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,c9 as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,ca as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,cb as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,cc as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,cd as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,c6 as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,c5 as SAMPLING_ONBOARDING_WELCOME_TITLE,dI as SAMPLING_PAGE_DESCRIPTION,dJ as SAMPLING_PAGE_TITLE,dS as SECTION_DURATION,dQ as SECTION_ERRORS,as as SECTION_KEEP_PERCENTAGE,dX as SECTION_OPERATION,et as SECTION_SAMPLING_PREVIEW,ev as SECTION_SOURCE_SCOPE,d6 as STORAGE_KEYS,dA as TITLE_NO_RESULTS,dC as TITLE_NO_RULES,fI as TOKEN_ABOUT_TO_EXPIRE,ep as TOOLTIP_NOTE,ex as UNKNOWN_SOURCE_LABEL,bx as UNNAMED_RULE,dD as getNoResultsSubTitle}from"./chunks/ui-components-DofONrt0.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";