@odigos/ui-kit 0.0.232 → 0.0.233

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/chunks/{index-Bbukn13F.js → index-BaKzgedB.js} +1 -1
  3. package/lib/chunks/{index-Cw4LkdaE.js → index-D65aqUr3.js} +1 -1
  4. package/lib/chunks/{index-D7sjsMOG.js → index-Di5tcvgi.js} +10 -10
  5. package/lib/chunks/{ui-components-of0mjGMv.js → ui-components-DD1EWBzE.js} +403 -378
  6. package/lib/components/_v2/modal/index.d.ts +6 -0
  7. package/lib/components/v2.js +1 -1
  8. package/lib/components.js +1 -1
  9. package/lib/constants/sampling/index.d.ts +74 -0
  10. package/lib/constants.js +1 -1
  11. package/lib/containers/_v2/_modals/add-data-stream-modal/index.d.ts +7 -0
  12. package/lib/containers/_v2/_modals/edit-data-stream-modal/index.d.ts +7 -0
  13. package/lib/containers/_v2/_modals/index.d.ts +1 -0
  14. package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/chrome.d.ts +8 -0
  15. package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/footer.d.ts +13 -0
  16. package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/header.d.ts +6 -0
  17. package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/index.d.ts +8 -0
  18. package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/info-card.d.ts +7 -0
  19. package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/lists.d.ts +11 -0
  20. package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/primary-banner.d.ts +4 -0
  21. package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/section.d.ts +3 -0
  22. package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/sub-title.d.ts +4 -0
  23. package/lib/containers/_v2/_modals/sampling-onboarding-modal/index.d.ts +4 -0
  24. package/lib/containers/_v2/_modals/sampling-onboarding-modal/preset-row.d.ts +19 -0
  25. package/lib/containers/_v2/_modals/sampling-onboarding-modal/steps/step-advanced.d.ts +7 -0
  26. package/lib/containers/_v2/_modals/sampling-onboarding-modal/steps/step-drop-list.d.ts +9 -0
  27. package/lib/containers/_v2/_modals/sampling-onboarding-modal/steps/step-keep-list.d.ts +19 -0
  28. package/lib/containers/_v2/_modals/sampling-onboarding-modal/steps/step-noisy.d.ts +8 -0
  29. package/lib/containers/_v2/_modals/sampling-onboarding-modal/steps/step-strategy.d.ts +10 -0
  30. package/lib/containers/_v2/_modals/sampling-onboarding-modal/steps/step-success.d.ts +5 -0
  31. package/lib/containers/_v2/_modals/sampling-onboarding-modal/steps/step-welcome.d.ts +6 -0
  32. package/lib/containers/_v2/_modals/sampling-onboarding-modal/types.d.ts +29 -0
  33. package/lib/containers/_v2/sampling-rules/types.d.ts +8 -8
  34. package/lib/containers/v2.js +228 -70
  35. package/lib/containers.js +19 -19
  36. package/lib/contexts.js +1 -1
  37. package/lib/functions.js +1 -1
  38. package/lib/hooks.js +1 -1
  39. package/lib/snippets/v2.js +1 -1
  40. package/lib/snippets.js +1 -1
  41. package/lib/store.js +1 -1
  42. package/lib/theme.js +1 -1
  43. package/lib/types.js +1 -1
  44. package/lib/visuals.js +1 -1
  45. package/package.json +1 -1
@@ -283,7 +283,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
283
283
  margin: 4px 0 0 0;
284
284
  list-style: none;
285
285
  width: 100%;
286
- `,Hi=(e,t)=>t?e.reduce((e,r)=>{if(r.items){const o=Hi(r.items,t);o.length&&e.push({...r,items:o})}else r.label.toLowerCase().includes(t.toLowerCase())&&e.push(r);return e},[]):e,Xi=({placeholder:r="Type to search...",options:o,selectedOption:n,onOptionSelect:i,defaultText:a,onTextChange:s,style:l,disabled:c,errorMessage:d,...p})=>{const[u,h]=Wt(n?.label||a||""),[m,g]=Wt(Hi(o,u)),[f,y]=Wt(!1);Wt(-1),Ht(()=>g(Hi(o,u)),[o]);const x=n?.icon,b=e=>{e&&(h(e.label),s?.(e.label)),y(!e),i?.(e)};return t(Ri,{style:l,children:[t(Oi,{$hasError:!!d,children:[x&&e(x,{}),e(_i,{type:"text",value:u,placeholder:r,onChange:e=>{e.stopPropagation();const t=e.target.value,r=Hi(o,t),n=1===r.length&&r[0].label===t?r[0]:void 0;h(t),s?.(t),g(r),b(n)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:c,onBlur:()=>!c&&y(!1),onFocus:()=>!c&&y(!0),...p})]}),f&&m.length?e(Fi,{children:m.map(t=>e(Gi,{option:t,onClick:b},t.type||t.label))}):null,d&&e(Ni,{children:d})]})},Gi=({option:r,renderIcon:o=!0,onClick:n})=>{const i=!!r.items&&r.items.length>0,a=r.icon;return t(Pi,{"data-id":`option-${r.type||r.label}`,$isList:i,onMouseDown:()=>i?null:n(r),children:[a&&o&&e(a,{}),t(Li,{children:[t(Bi,{children:[e(Ui,{children:r.label}),e(ji,{children:r.description})]}),i&&e(Wi,{children:r.items?.map(r=>t(zi,{children:[e(Mi,{}),e(Gi,{option:r,renderIcon:!1,onClick:n})]},r.type||r.label))})]})]})},Vi=Bt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),Ki=[{type:Dr.K8sAttributes,icon:_o(Dr.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[mo.Traces,mo.Metrics,mo.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Dr.AddClusterInfo,icon:_o(Dr.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[mo.Traces,mo.Metrics,mo.Logs],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals."},{type:Dr.DeleteAttributes,icon:_o(Dr.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[mo.Traces,mo.Metrics,mo.Logs],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:Dr.RenameAttributes,icon:_o(Dr.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[mo.Traces,mo.Metrics,mo.Logs],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:Dr.PiiMasking,icon:_o(Dr.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:Dr.URLTemplatization,icon:_o(Dr.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/attributes/urltemplatization",docsDescription:"Normalizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",minVersion:Si("v1.21.0")}],qi=[{type:Dr.ErrorSampler,icon:_o(Ar.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Dr.LatencySampler,icon:_o(Ar.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/latencysampler",docsDescription:"This action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter."},{type:Dr.ProbabilisticSampler,icon:_o(Ar.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Dr.ServiceNameSampler,icon:_o(Ar.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Dr.SpanAttributeSampler,icon:_o(Ar.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/spanattributesampler",docsDescription:"This action supports service name sampling based on the presence or value of specific attributes within a trace."}],Ji=[{label:"Attributes",icon:_o(Ar.Attributes),items:Ki},{label:"Samplers",icon:_o(Ar.Samplers),items:qi}];var Yi;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Yi||(Yi={}));const Qi={[Yi.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Yi.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Yi.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Yi.DETECTED]:{TITLE:"Detected by system",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Yi.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Yi.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Zi=[{type:no.CodeAttributes,icon:Ko(no.CodeAttributes),label:"Code Attributes",description:"Collect code attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/codeattributes",docsDescription:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',supportedLanguages:[Br.Go,Br.Python]},{type:no.CustomInstrumentation,icon:Ko(no.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods (i.e. for Java) or explicit symbol (i.e. for Golang).",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',supportedLanguages:[Br.Go,Br.Java]},{type:no.HeadersCollection,icon:Ko(no.HeadersCollection),label:"Headers Collection",description:"Collect span attributes containing HTTP Headers data to traces.",docsEndpoint:"/pipeline/rules/headerscollection",docsDescription:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',supportedLanguages:[Br.Go,Br.Java,Br.JavaScript]},{type:no.PayloadCollection,icon:Ko(no.PayloadCollection),label:"Payload Collection",description:"Collect span attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/payloadcollection",docsDescription:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',supportedLanguages:[Br.Go,Br.JavaScript]}],ea="Cancel",ta="Save",ra="Edit rule",oa="Edit auto rule",na="Create rule",ia="Delete rule",aa="Save",sa="Create your first rule",la="No Rules Exist",ca="No Results",da=e=>`No rules match the search term "${e}"`,pa="Rule name",ua="Rule type",ha="Select the type of condition that makes a trace highly relevant.",ma="Rule Enabled",ga="Rule Disabled",fa="Enabled",ya="Disabled",xa="Note",ba="HTTP route",va="Method",$a="Keep Percentage",wa="Drop Percentage",Sa="Keep traces with duration larger than",ka="Keep traces with errors",Ca="Keep at least this percentage of matching traces",Ea="Keep at most this percentage of matching traces",Aa="Custom percentage",Da="Disabled rule",Ta="Sample",Ia="Keep all",Na="Drop all",Ra="Operation type",Oa="HTTP route prefix",_a="Templated path",Fa="Templated path prefix",Pa="Kafka topic",La="Custom duration (ms)",za="No preview available",Ma="Server address",Ba="Drop at most this percentage of matching traces",Ua="Unnamed rule",ja="Sampling Preview",Wa="Source Scope",Ha="Operation",Xa="Duration",Ga="Errors",Va="Keep Percentage",Ka="Drop Percentage",qa="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Ja="Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.",Ya="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Qa="Retain traces with errors from the selected services and operations.",Za="Specify the exact percentage of matching traces to keep",es="Specify the exact percentage of matching traces to drop",ts="Type rule name",rs="Add note here...",os="Type here",ns="Search source name",is="e.g. collector.my.vendor.com",as="Optional notes (not used by the system). Add any context or details for this sampling rule.",ss="Rule will apply to all sources in the cluster",ls="If multiple source scopes are set, they must all match simultaneously.",cs="All sources",ds="-",ps="All",us="All operations",hs="HTTP server endpoint",ms="HTTP client endpoint",gs="Kafka consumer",fs="Kafka producer",ys="Sampling Rules",xs='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',bs="Refresh",vs="Create rule",$s="Sampling docs",ws="75vw",Ss="Delete rule?",ks="Are you sure you want to delete this sampling rule?",Cs="Delete",Es="Cancel",As="Kubernetes Health Probes",Ds="Keep All Error Traces",Ts="Drop Traces Cluster-Wide",Is="A rule with the same matching conditions already exists.",Ns="Create 'Noisy Operation Kubernetes Health Probes' rule",Rs="Edit 'Noisy Operation Kubernetes Health Probes' rule",Os="Automatically detect and sample health probe traces across the cluster.",_s="Create 'Highly Relevant Operations' rule",Fs="Edit 'Highly Relevant Operations' rule",Ps="Automatically keep all error traces across the entire cluster.",Ls="Create 'Cost Reduction' rule",zs="Edit 'Cost Reduction' rule",Ms="Automatically drop a percentage of traces across the entire cluster.",Bs={noisy:"Rules that reduce noise from high-volume, low-value operations using Head Sampling.",highlyRelevant:"Add a rule to identify highly relevant operations. Traces with errors, long duration, or from critical endpoints and key workflows will be retained so important transactions are always available for analysis.",costReduction:"Rules that optimize costs by sampling less critical data using Tail Sampling."},Us={noisy:Ns,highlyRelevant:_s,costReduction:Ls},js={noisy:Rs,highlyRelevant:Fs,costReduction:zs},Ws={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Hs=[{id:mo.Logs,value:"Logs"},{id:mo.Metrics,value:"Metrics"},{id:mo.Traces,value:"Traces"}],Xs={[Br.Go]:"Go",[Br.Java]:"Java",[Br.JavaScript]:"Node.js",[Br.Python]:"Python",[Br.DotNet]:".NET",[Br.CSharp]:"C#",[Br.CPlusPlus]:"C++",[Br.Php]:"PHP",[Br.Ruby]:"Ruby",[Br.Rust]:"Rust",[Br.Swift]:"Swift",[Br.Elixir]:"Elixir",[Br.MySql]:"MySQL",[Br.Nginx]:"Nginx",[Br.Postgres]:"PostgreSQL",[Br.Redis]:"Redis",[Br.Kafka]:"Kafka",[Br.Ignored]:"Ignored",[Br.Unknown]:"Unknown",[Br.Processing]:"Processing",[Br.NoContainers]:"No Containers",[Br.NoRunningPods]:"No Running Pods"},Gs=[{id:Br.Go,value:Xs[Br.Go],icon:Lo(Br.Go)},{id:Br.Java,value:Xs[Br.Java],icon:Lo(Br.Java)},{id:Br.JavaScript,value:Xs[Br.JavaScript],icon:Lo(Br.JavaScript)},{id:Br.Python,value:Xs[Br.Python],icon:Lo(Br.Python)},{id:Br.Php,value:Xs[Br.Php],icon:Lo(Br.Php)},{id:Br.Ruby,value:Xs[Br.Ruby],icon:Lo(Br.Ruby)},{id:Br.Rust,value:Xs[Br.Rust],icon:Lo(Br.Rust)},{id:Br.DotNet,value:Xs[Br.DotNet],icon:Lo(Br.DotNet)},{id:Br.CSharp,value:Xs[Br.CSharp],icon:Lo(Br.CSharp)},{id:Br.CPlusPlus,value:Xs[Br.CPlusPlus],icon:Lo(Br.CPlusPlus)},{id:Br.Swift,value:Xs[Br.Swift],icon:Lo(Br.Swift)},{id:Br.Elixir,value:Xs[Br.Elixir],icon:Lo(Br.Elixir)}],Vs={id:ro.OpentelemetryEbpfInstrumentation,value:ro.OpentelemetryEbpfInstrumentation,icon:q},Ks={[Br.Go]:{community:[{id:ro.GolangCommunity,value:ro.GolangCommunity,icon:Lo(Br.Go)},Vs],enterprise:[{id:ro.GolangEnterprise,value:ro.GolangEnterprise,icon:Lo(Br.Go)}]},[Br.JavaScript]:{community:[{id:ro.NodejsCommunity,value:ro.NodejsCommunity,icon:Lo(Br.JavaScript)},Vs],enterprise:[{id:ro.NodejsEnterprise,value:ro.NodejsEnterprise,icon:Lo(Br.JavaScript)}]},[Br.Python]:{community:[{id:ro.PythonCommunity,value:ro.PythonCommunity,icon:Lo(Br.Python)},Vs],enterprise:[{id:ro.PythonEnterprise,value:ro.PythonEnterprise,icon:Lo(Br.Python)}]},[Br.Java]:{community:[{id:ro.JavaCommunity,value:ro.JavaCommunity,icon:Lo(Br.Java)},Vs],enterprise:[{id:ro.JavaEnterprise,value:ro.JavaEnterprise,icon:Lo(Br.Java)},{id:ro.JavaEbpfInstrumentations,value:ro.JavaEbpfInstrumentations,icon:Lo(Br.Java)}]},[Br.DotNet]:{community:[{id:ro.DotNetCommunity,value:ro.DotNetCommunity,icon:Lo(Br.DotNet)},Vs],enterprise:[{id:ro.DotNetEnterprise,value:ro.DotNetEnterprise,icon:Lo(Br.DotNet)}]},[Br.Ruby]:{community:[{id:ro.RubyCommunity,value:ro.RubyCommunity,icon:Lo(Br.Ruby)},Vs],enterprise:[{id:ro.RubyEnterprise,value:ro.RubyEnterprise,icon:Lo(Br.Ruby)}]},[Br.Php]:{community:[{id:ro.PhpCommunity,value:ro.PhpCommunity,icon:Lo(Br.Php)},Vs],enterprise:[]},[Br.CSharp]:{community:[],enterprise:[{id:ro.CPlusPlusEnterprise,value:ro.CPlusPlusEnterprise,icon:Lo(Br.CSharp)}]},[Br.MySql]:{community:[],enterprise:[{id:ro.MySqlEnterprise,value:ro.MySqlEnterprise,icon:Lo(Br.MySql)}]},[Br.CPlusPlus]:{community:[Vs],enterprise:[]},[Br.Rust]:{community:[Vs],enterprise:[]},[Br.Swift]:{community:[Vs],enterprise:[]},[Br.Elixir]:{community:[Vs],enterprise:[]},[Br.Nginx]:{community:[Vs],enterprise:[]},[Br.Postgres]:{community:[Vs],enterprise:[]},[Br.Redis]:{community:[Vs],enterprise:[]},[Br.Kafka]:{community:[Vs],enterprise:[]},[Br.Ignored]:{community:[],enterprise:[]},[Br.Unknown]:{community:[],enterprise:[]},[Br.Processing]:{community:[],enterprise:[]},[Br.NoContainers]:{community:[],enterprise:[]},[Br.NoRunningPods]:{community:[],enterprise:[]}},qs=6048e5,Js=Bt()(Zt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Co.DARK_MODE,storage:"undefined"!=typeof window?er(()=>localStorage):void 0})),Ys={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:wo},Qs=Bt(e=>({...Ys,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const r=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(r).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Ys)})),Zs=Bt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),el=Bt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,r)=>{const o=t===jr.Namespace?"namespacesLoading":t===jr.Source?"sourcesLoading":t===jr.Destination?"destinationsLoading":t===jr.Action?"actionsLoading":t===jr.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==o&&e({[o]:r})},setEntities:(t,r)=>{const o=t===jr.Namespace?"namespaces":t===jr.Source?"sources":t===jr.Destination?"destinations":t===jr.Action?"actions":t===jr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e({[o]:r})},addEntities:(t,r)=>{const o=t===jr.Namespace?"namespaces":t===jr.Source?"sources":t===jr.Destination?"destinations":t===jr.Action?"actions":t===jr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=[...e[o]],n=new Map;return t.forEach((e,t)=>{n.set(Xo(e),t)}),r.forEach(e=>{const r=Xo(e),o=n.get(r);void 0!==o?t[o]={...t[o],...e}:(n.set(r,t.length),t.push(e))}),{[o]:t}})},removeEntities:(t,r)=>{const o=t===jr.Namespace?"namespaces":t===jr.Source?"sources":t===jr.Destination?"destinations":t===jr.Action?"actions":t===jr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=new Set(r.map(e=>Ho(e))),n=e[o].filter(e=>!t.has(Xo(e)));return{[o]:n}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),tl=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),rl=Bt(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),conditions:[],setConditions:t=>e({conditions:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),errors:[],setErrors:t=>e({errors:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),getEmptyState:tl})),ol=Bt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),nl=Bt((e,t)=>({notifications:[],addNotification:r=>{const o=new Date,n=`${o.getTime().toString()}${r.target?`#${r.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===r.type&&e.title===r.title&&e.message===r.message&&!e.dismissed)||e(e=>({notifications:[{...r,id:n,time:o.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&e.notifications.splice(r,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var il;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(il||(il={}));const al=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),sl=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),ll=Bt((e,t)=>({progress:{},setProgress:(r,o)=>{const n=t(),i=al();return"number"==typeof o.total&&(i.total=o.total),"number"==typeof o.current&&(i.current=o.current),Array.isArray(o.list)&&(i.list=o.list),e({progress:{...n.progress,[r]:sl(i)}})},addProgress:(r,o,n)=>{const i=t(),a=al(r,i.progress);return a.current+=o,n&&(a.list=a.list?.map(e=>e.label===n.label?{...e,status:n.status}:e)),e({progress:{...i.progress,[r]:sl(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),cl=Bt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),dl={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},pl=(e,t)=>e.destinationType.type!==t.destinationType.type,ul=Bt(e=>({...dl,setConfiguredSources:t=>e({configuredSources:t}),setConfiguredFutureApps:t=>e({configuredFutureApps:t}),setConfiguredDestinations:t=>e({configuredDestinations:t}),addConfiguredDestination:t=>e(e=>({configuredDestinations:[...e.configuredDestinations,t]})),removeConfiguredDestination:t=>e(e=>({configuredDestinations:e.configuredDestinations.filter(e=>pl(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const r=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(r).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>pl(e,t))})),clearStore:()=>e(()=>({...dl}))})),hl={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8855FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D06772",700:"#A2535B",800:"#733F44",900:"#452B2D",1e3:"#2E2022"},blue:{100:"#EBF0FA",200:"#D6E1F4",300:"#ADC3EA",400:"#84A4DF",500:"#5C86D5",600:"#3368CA",700:"#2D57A6",800:"#274782",900:"#21375E",1e3:"#1C273A"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9"},orange:{600:"#F29142"}},zIndex:{base:1,island:100,drawer:1e3,modal:1e3,dropdown:1100,popover:1100,tooltip:1200}},colors:{majestic_blue:"#444AD9",majestic_blue_soft:"#6C7AE8",orange_og:"#FE9239",orange_soft:"#FFB160",dark_red:"#802828",darker_red:"#611F1F",darkest_red:"#281515",darkest_red_hover:"#351515",dark_green:"#2D4323"},text:{},font_family:{primary:"Inter, sans-serif",secondary:"Kode Mono, sans-serif",code:"IBM Plex Mono, monospace"}},ml={v2:hl.v2,darkMode:!0,colors:{...hl.colors,primary:"#111111",secondary:"#F9F9F9",border:"#525252",dark_grey:"#151515",translucent_bg:"#1A1A1A",dropdown_bg:"#242424",dropdown_bg_2:"#333333",warning:"#472300",error:"#431919",success:"#172013",info:"#242424",default:"#181944"},text:{white:"#FFFFFF",primary:"#111111",secondary:"#F9F9F9",grey:"#B8B8B8",dark_grey:"#8F8F8F",darker_grey:"#7A7A7A",light_grey:"#CCD0D2",dark_button:"#0A1824",warning:"#E9CF35",warning_secondary:"#FFA349",error:"#EF7676",error_secondary:"#DB5151",success:"#81AF65",success_secondary:"#51DB51",info:"#B8B8B8",info_secondary:"#CCDDDD",default:"#AABEF7",default_secondary:"#8CBEFF"},font_family:hl.font_family},gl={v2:hl.v2,darkMode:!1,colors:{...hl.colors,primary:"#EEEEEE",secondary:"#060606",border:"#ADADAD",dark_grey:"#EAEAEA",translucent_bg:"#E5E5E5",dropdown_bg:"#DBDBDB",dropdown_bg_2:"#CCCCCC",warning:"#F6F092",error:"#FACECE",success:"#C8DEB8",info:"#E0E0E0",default:"#CAD9FB"},text:{white:"#FFFFFF",primary:"#EEEEEE",secondary:"#060606",grey:"#474747",dark_grey:"#707070",darker_grey:"#858585",light_grey:"#332F2D",dark_button:"#F5E7DB",warning:"#A56F12",warning_secondary:"#CA9416",error:"#B63A3A",error_secondary:"#DB5151",success:"#4E763A",success_secondary:"#67964C",info:"#525252",info_secondary:"#7A7A7A",default:"#444AD9",default_secondary:"#6C7AE8"},font_family:hl.font_family},fl=e=>e?ml:gl;var yl=Object.freeze({__proto__:null,baseTheme:hl,darkModeTheme:ml,getTheme:fl,lightModeTheme:gl});tr('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const xl=({children:t})=>{const{darkMode:r}=Js();return e(s,{theme:fl(r),children:t})},bl={100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"};var vl=Object.freeze({__proto__:null,hex:bl});const $l={in:{left:a`
286
+ `,Hi=(e,t)=>t?e.reduce((e,r)=>{if(r.items){const o=Hi(r.items,t);o.length&&e.push({...r,items:o})}else r.label.toLowerCase().includes(t.toLowerCase())&&e.push(r);return e},[]):e,Xi=({placeholder:r="Type to search...",options:o,selectedOption:n,onOptionSelect:i,defaultText:a,onTextChange:s,style:l,disabled:c,errorMessage:d,...p})=>{const[u,h]=Wt(n?.label||a||""),[m,g]=Wt(Hi(o,u)),[f,y]=Wt(!1);Wt(-1),Ht(()=>g(Hi(o,u)),[o]);const x=n?.icon,b=e=>{e&&(h(e.label),s?.(e.label)),y(!e),i?.(e)};return t(Ri,{style:l,children:[t(Oi,{$hasError:!!d,children:[x&&e(x,{}),e(_i,{type:"text",value:u,placeholder:r,onChange:e=>{e.stopPropagation();const t=e.target.value,r=Hi(o,t),n=1===r.length&&r[0].label===t?r[0]:void 0;h(t),s?.(t),g(r),b(n)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:c,onBlur:()=>!c&&y(!1),onFocus:()=>!c&&y(!0),...p})]}),f&&m.length?e(Fi,{children:m.map(t=>e(Gi,{option:t,onClick:b},t.type||t.label))}):null,d&&e(Ni,{children:d})]})},Gi=({option:r,renderIcon:o=!0,onClick:n})=>{const i=!!r.items&&r.items.length>0,a=r.icon;return t(Pi,{"data-id":`option-${r.type||r.label}`,$isList:i,onMouseDown:()=>i?null:n(r),children:[a&&o&&e(a,{}),t(Li,{children:[t(Bi,{children:[e(Ui,{children:r.label}),e(ji,{children:r.description})]}),i&&e(Wi,{children:r.items?.map(r=>t(zi,{children:[e(Mi,{}),e(Gi,{option:r,renderIcon:!1,onClick:n})]},r.type||r.label))})]})]})},Vi=Bt(e=>({activeNodeType:null,activeNodeId:null,setActiveNodeType:t=>e({activeNodeType:t}),setActiveNodeId:t=>e({activeNodeId:t})})),Ki=[{type:Dr.K8sAttributes,icon:_o(Dr.K8sAttributes),label:"Kubernetes Attributes",description:"Add dynamic k8s resource attributes to your data.",allowedSignals:[mo.Traces,mo.Metrics,mo.Logs],docsEndpoint:"/pipeline/actions/attributes/k8sattributes",docsDescription:"This action adds kubernetes related resource attributes to spans, metrics data points and log records."},{type:Dr.AddClusterInfo,icon:_o(Dr.AddClusterInfo),label:"Add Cluster Info",description:"Add static cluster-scoped attributes to your data.",allowedSignals:[mo.Traces,mo.Metrics,mo.Logs],docsEndpoint:"/pipeline/actions/attributes/addclusterinfo",docsDescription:"This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals."},{type:Dr.DeleteAttributes,icon:_o(Dr.DeleteAttributes),label:"Delete Attribute",description:"Delete attributes from logs, metrics, and traces.",allowedSignals:[mo.Traces,mo.Metrics,mo.Logs],docsEndpoint:"/pipeline/actions/attributes/deleteattribute",docsDescription:"This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:Dr.RenameAttributes,icon:_o(Dr.RenameAttributes),label:"Rename Attribute",description:"Rename attributes in logs, metrics, and traces.",allowedSignals:[mo.Traces,mo.Metrics,mo.Logs],docsEndpoint:"/pipeline/actions/attributes/renameattribute",docsDescription:"This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition."},{type:Dr.PiiMasking,icon:_o(Dr.PiiMasking),label:"PII Masking",description:"Mask PII data in your traces.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/attributes/piimasking",docsDescription:"This action processes a list of PII categories to be masked from the traces."},{type:Dr.URLTemplatization,icon:_o(Dr.URLTemplatization),label:"URL Templatization",description:"Replace dynamic URL path segments with named placeholders to reduce span cardinality.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/attributes/urltemplatization",docsDescription:"Normalizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",minVersion:Si("v1.21.0")}],qi=[{type:Dr.ErrorSampler,icon:_o(Ar.Samplers),label:"Error Sampler",description:"Sample errors based on percentage.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/errorsampler",docsDescription:"This action is a Global Action that supports error sampling by filtering out non-error traces."},{type:Dr.LatencySampler,icon:_o(Ar.Samplers),label:"Latency Sampler",description:"Add latency to your traces.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/latencysampler",docsDescription:"This action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter."},{type:Dr.ProbabilisticSampler,icon:_o(Ar.Samplers),label:"Probabilistic Sampler",description:"Sample traces based on percentage.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/probabilisticsampler",docsDescription:"This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID."},{type:Dr.ServiceNameSampler,icon:_o(Ar.Samplers),label:"Service Name Sampler",description:"Sample traces based on the presence of specified services within a trace.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/servicenamesampler",docsDescription:"This action supports service name sampling based on the presence of specified services within a trace."},{type:Dr.SpanAttributeSampler,icon:_o(Ar.Samplers),label:"Span Attributes Sampler",description:"Sample traces based on the presence or value of specific attributes within a trace.",allowedSignals:[mo.Traces],docsEndpoint:"/pipeline/actions/sampling/spanattributesampler",docsDescription:"This action supports service name sampling based on the presence or value of specific attributes within a trace."}],Ji=[{label:"Attributes",icon:_o(Ar.Attributes),items:Ki},{label:"Samplers",icon:_o(Ar.Samplers),items:qi}];var Yi;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Yi||(Yi={}));const Qi={[Yi.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Yi.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Yi.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Yi.DETECTED]:{TITLE:"Detected by system",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Yi.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Yi.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Zi=[{type:no.CodeAttributes,icon:Ko(no.CodeAttributes),label:"Code Attributes",description:"Collect code attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/codeattributes",docsDescription:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',supportedLanguages:[Br.Go,Br.Python]},{type:no.CustomInstrumentation,icon:Ko(no.CustomInstrumentation),label:"Custom Instrumentation",description:"Define custom instrumentation for specific class and methods (i.e. for Java) or explicit symbol (i.e. for Golang).",docsEndpoint:"/pipeline/rules/custominstrumentation",docsDescription:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',supportedLanguages:[Br.Go,Br.Java]},{type:no.HeadersCollection,icon:Ko(no.HeadersCollection),label:"Headers Collection",description:"Collect span attributes containing HTTP Headers data to traces.",docsEndpoint:"/pipeline/rules/headerscollection",docsDescription:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',supportedLanguages:[Br.Go,Br.Java,Br.JavaScript]},{type:no.PayloadCollection,icon:Ko(no.PayloadCollection),label:"Payload Collection",description:"Collect span attributes containing payload data to traces.",docsEndpoint:"/pipeline/rules/payloadcollection",docsDescription:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',supportedLanguages:[Br.Go,Br.JavaScript]}],ea="Cancel",ta="Save",ra="Edit rule",oa="Edit auto rule",na="Create rule",ia="Delete rule",aa="Save",sa="Create your first rule",la="No Rules Exist",ca="No Results",da=e=>`No rules match the search term "${e}"`,pa="Rule name",ua="Rule type",ha="Select the type of condition that makes a trace highly relevant.",ma="Rule Enabled",ga="Rule Disabled",fa="Enabled",ya="Disabled",xa="Note",ba="HTTP route",va="Method",$a="Keep Percentage",wa="Drop Percentage",Sa="Keep traces with duration larger than",ka="Keep traces with errors",Ca="Keep at least this percentage of matching traces",Ea="Keep at most this percentage of matching traces",Aa="Custom percentage",Da="Disabled rule",Ta="Sample",Ia="Keep all",Na="Drop all",Ra="Operation type",Oa="HTTP route prefix",_a="Templated path",Fa="Templated path prefix",Pa="Kafka topic",La="Custom duration (ms)",za="No preview available",Ma="Server address",Ba="Drop at most this percentage of matching traces",Ua="Unnamed rule",ja="Sampling Preview",Wa="Source Scope",Ha="Operation",Xa="Duration",Ga="Errors",Va="Keep Percentage",Ka="Drop Percentage",qa="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Ja="Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.",Ya="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",Qa="Retain traces with errors from the selected services and operations.",Za="Specify the exact percentage of matching traces to keep",es="Specify the exact percentage of matching traces to drop",ts="Type rule name",rs="Add note here...",os="Type here",ns="Search source name",is="e.g. collector.my.vendor.com",as="Optional notes (not used by the system). Add any context or details for this sampling rule.",ss="Rule will apply to all sources in the cluster",ls="If multiple source scopes are set, they must all match simultaneously.",cs="All sources",ds="-",ps="All",us="All operations",hs="HTTP server endpoint",ms="HTTP client endpoint",gs="Kafka consumer",fs="Kafka producer",ys="Sampling Rules",xs='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',bs="Refresh",vs="Create rule",$s="Sampling docs",ws="75vw",Ss="Delete rule?",ks="Are you sure you want to delete this sampling rule?",Cs="Delete",Es="Cancel",As="Kubernetes Health Probes",Ds="Keep All Error Traces",Ts="Drop Traces Cluster-Wide",Is="A rule with the same matching conditions already exists.",Ns="Create 'Noisy Operation Kubernetes Health Probes' rule",Rs="Edit 'Noisy Operation Kubernetes Health Probes' rule",Os="Automatically detect and sample health probe traces across the cluster.",_s="Create 'Highly Relevant Operations' rule",Fs="Edit 'Highly Relevant Operations' rule",Ps="Automatically keep all error traces across the entire cluster.",Ls="Create 'Cost Reduction' rule",zs="Edit 'Cost Reduction' rule",Ms="Automatically drop a percentage of traces across the entire cluster.",Bs="Skip setup",Us="Start setup",js="Next",Ws="Go to Sampling",Hs="Read more",Xs="Welcome to Sampling",Gs="Cut costs without losing what matters",Vs="Odigos sampling works in three stages:",Ks="Filter noisy traffic",qs="Remove non-actionable traces like health checks.",Js="Guarantee highly relevance operations",Ys="Keep traces with errors, high latency, or mission-critical endpoints/services.",Qs="Reduce cost",Zs="Sample routine traffic using percentages.",el="Sampling does not drop individual spans - it keeps or drops the entire trace.",tl="Filter noisy operations",rl="Cut traces with little or no observability value (health-checks, metric scarping, etc)",ol="Odigos filters these efficiently, dropping them early with almost no resource cost.\n\nSampling happens at request start, so only root span attributes available at that moment can be used. Later insights about the trace (errors, latency) - aren’t available.",nl="Preset Rules",il="Kubernetes Health Probes",al="Automatically ignore health checks",sl="You can review, adjust, and add additional custom rules later.",ll="Choose your sampling strategy",cl="Pick the approach that best fits your balance of cost vs data-completeness",dl="Keep List",pl="Budget Friendly",ul="Define which traces must be kept, while all others are sampled by default to minimize cost.",hl="Cost-oriented - keeps only what you explicitly select.",ml="Best for very large clusters with high volumes of traces and high costs.",gl="Higher risk of missing important traces without ongoing review.",fl="Drop List",yl="Safe Choice",xl="Define which traces must be aggressively dropped, while all others are kept by default.",bl="Preserves most data unless explicitly filtered.",vl="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",$l="Advanced",wl="Maximum Flexibility",Sl="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",kl="'Keep List' profile",Cl="Protect important traces",El="Start by setting the default sampling rate for all traces.\nThen define rules to exclude highly relevant traces so they are guaranteed to be kept\n\nCommon use-cases include:",Al="Traces with errors",Dl="Slow requests (duration above threshold)",Tl="Mission-Critical endpoints or services",Il="Services under test or evaluation",Nl="New deployments",Rl="You can review, adjust, and add rules once onboarding is complete.",Ol="Common Rules",_l="Preset Rules",Fl="Error collection - entire cluster",Pl="Keep all traces with errors",Ll="Ambient sampling percentage",zl="'Drop List' profile",Ml="Reduce high-volume traffic",Bl="Start by keeping all traces by default. Then define rules to drop high-volume or low-value traces to reduce overall volume and cost.\n\nIn many systems, a small number of endpoints generate most of the trace volume.\nTargeting these high-volume sources can significantly reduce overall data.",Ul="Advanced Configuration",jl="Configure sampling rules",Wl="Advanced mode allows you to configure all sampling categories:",Hl="Noise Filtering - remove non-actionable traces",Xl="Highly Relevance - guarantee important traces are kept",Gl='Cost Control - drop traces for "Normal" operations',Vl="Rules can target:",Kl="Services",ql="HTTP Endpoints",Jl="DB Operations",Yl="Errors",Ql="Latency and more...",Zl="Sampling configured successfully!",ec="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",tc="Odigos will now:",rc="Filter noisy operations",oc="Guarantee important traces",nc="Reduce cost using controlled sampling",ic="Recommended",ac={noisy:"Rules that reduce noise from high-volume, low-value operations using Head Sampling.",highlyRelevant:"Add a rule to identify highly relevant operations. Traces with errors, long duration, or from critical endpoints and key workflows will be retained so important transactions are always available for analysis.",costReduction:"Rules that optimize costs by sampling less critical data using Tail Sampling."},sc={noisy:Ns,highlyRelevant:_s,costReduction:Ls},lc={noisy:Rs,highlyRelevant:Fs,costReduction:zs},cc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},dc=[{id:mo.Logs,value:"Logs"},{id:mo.Metrics,value:"Metrics"},{id:mo.Traces,value:"Traces"}],pc={[Br.Go]:"Go",[Br.Java]:"Java",[Br.JavaScript]:"Node.js",[Br.Python]:"Python",[Br.DotNet]:".NET",[Br.CSharp]:"C#",[Br.CPlusPlus]:"C++",[Br.Php]:"PHP",[Br.Ruby]:"Ruby",[Br.Rust]:"Rust",[Br.Swift]:"Swift",[Br.Elixir]:"Elixir",[Br.MySql]:"MySQL",[Br.Nginx]:"Nginx",[Br.Postgres]:"PostgreSQL",[Br.Redis]:"Redis",[Br.Kafka]:"Kafka",[Br.Ignored]:"Ignored",[Br.Unknown]:"Unknown",[Br.Processing]:"Processing",[Br.NoContainers]:"No Containers",[Br.NoRunningPods]:"No Running Pods"},uc=[{id:Br.Go,value:pc[Br.Go],icon:Lo(Br.Go)},{id:Br.Java,value:pc[Br.Java],icon:Lo(Br.Java)},{id:Br.JavaScript,value:pc[Br.JavaScript],icon:Lo(Br.JavaScript)},{id:Br.Python,value:pc[Br.Python],icon:Lo(Br.Python)},{id:Br.Php,value:pc[Br.Php],icon:Lo(Br.Php)},{id:Br.Ruby,value:pc[Br.Ruby],icon:Lo(Br.Ruby)},{id:Br.Rust,value:pc[Br.Rust],icon:Lo(Br.Rust)},{id:Br.DotNet,value:pc[Br.DotNet],icon:Lo(Br.DotNet)},{id:Br.CSharp,value:pc[Br.CSharp],icon:Lo(Br.CSharp)},{id:Br.CPlusPlus,value:pc[Br.CPlusPlus],icon:Lo(Br.CPlusPlus)},{id:Br.Swift,value:pc[Br.Swift],icon:Lo(Br.Swift)},{id:Br.Elixir,value:pc[Br.Elixir],icon:Lo(Br.Elixir)}],hc={id:ro.OpentelemetryEbpfInstrumentation,value:ro.OpentelemetryEbpfInstrumentation,icon:q},mc={[Br.Go]:{community:[{id:ro.GolangCommunity,value:ro.GolangCommunity,icon:Lo(Br.Go)},hc],enterprise:[{id:ro.GolangEnterprise,value:ro.GolangEnterprise,icon:Lo(Br.Go)}]},[Br.JavaScript]:{community:[{id:ro.NodejsCommunity,value:ro.NodejsCommunity,icon:Lo(Br.JavaScript)},hc],enterprise:[{id:ro.NodejsEnterprise,value:ro.NodejsEnterprise,icon:Lo(Br.JavaScript)}]},[Br.Python]:{community:[{id:ro.PythonCommunity,value:ro.PythonCommunity,icon:Lo(Br.Python)},hc],enterprise:[{id:ro.PythonEnterprise,value:ro.PythonEnterprise,icon:Lo(Br.Python)}]},[Br.Java]:{community:[{id:ro.JavaCommunity,value:ro.JavaCommunity,icon:Lo(Br.Java)},hc],enterprise:[{id:ro.JavaEnterprise,value:ro.JavaEnterprise,icon:Lo(Br.Java)},{id:ro.JavaEbpfInstrumentations,value:ro.JavaEbpfInstrumentations,icon:Lo(Br.Java)}]},[Br.DotNet]:{community:[{id:ro.DotNetCommunity,value:ro.DotNetCommunity,icon:Lo(Br.DotNet)},hc],enterprise:[{id:ro.DotNetEnterprise,value:ro.DotNetEnterprise,icon:Lo(Br.DotNet)}]},[Br.Ruby]:{community:[{id:ro.RubyCommunity,value:ro.RubyCommunity,icon:Lo(Br.Ruby)},hc],enterprise:[{id:ro.RubyEnterprise,value:ro.RubyEnterprise,icon:Lo(Br.Ruby)}]},[Br.Php]:{community:[{id:ro.PhpCommunity,value:ro.PhpCommunity,icon:Lo(Br.Php)},hc],enterprise:[]},[Br.CSharp]:{community:[],enterprise:[{id:ro.CPlusPlusEnterprise,value:ro.CPlusPlusEnterprise,icon:Lo(Br.CSharp)}]},[Br.MySql]:{community:[],enterprise:[{id:ro.MySqlEnterprise,value:ro.MySqlEnterprise,icon:Lo(Br.MySql)}]},[Br.CPlusPlus]:{community:[hc],enterprise:[]},[Br.Rust]:{community:[hc],enterprise:[]},[Br.Swift]:{community:[hc],enterprise:[]},[Br.Elixir]:{community:[hc],enterprise:[]},[Br.Nginx]:{community:[hc],enterprise:[]},[Br.Postgres]:{community:[hc],enterprise:[]},[Br.Redis]:{community:[hc],enterprise:[]},[Br.Kafka]:{community:[hc],enterprise:[]},[Br.Ignored]:{community:[],enterprise:[]},[Br.Unknown]:{community:[],enterprise:[]},[Br.Processing]:{community:[],enterprise:[]},[Br.NoContainers]:{community:[],enterprise:[]},[Br.NoRunningPods]:{community:[],enterprise:[]}},gc=6048e5,fc=Bt()(Zt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Co.DARK_MODE,storage:"undefined"!=typeof window?er(()=>localStorage):void 0})),yc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:wo},xc=Bt(e=>({...yc,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const r=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(r).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(yc)})),bc=Bt(e=>({drawerType:null,drawerEntityId:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t})})),vc=Bt(e=>({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[],setEntitiesLoading:(t,r)=>{const o=t===jr.Namespace?"namespacesLoading":t===jr.Source?"sourcesLoading":t===jr.Destination?"destinationsLoading":t===jr.Action?"actionsLoading":t===jr.InstrumentationRule?"instrumentationRulesLoading":"NONE";"NONE"!==o&&e({[o]:r})},setEntities:(t,r)=>{const o=t===jr.Namespace?"namespaces":t===jr.Source?"sources":t===jr.Destination?"destinations":t===jr.Action?"actions":t===jr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e({[o]:r})},addEntities:(t,r)=>{const o=t===jr.Namespace?"namespaces":t===jr.Source?"sources":t===jr.Destination?"destinations":t===jr.Action?"actions":t===jr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=[...e[o]],n=new Map;return t.forEach((e,t)=>{n.set(Xo(e),t)}),r.forEach(e=>{const r=Xo(e),o=n.get(r);void 0!==o?t[o]={...t[o],...e}:(n.set(r,t.length),t.push(e))}),{[o]:t}})},removeEntities:(t,r)=>{const o=t===jr.Namespace?"namespaces":t===jr.Source?"sources":t===jr.Destination?"destinations":t===jr.Action?"actions":t===jr.InstrumentationRule?"instrumentationRules":"NONE";"NONE"!==o&&e(e=>{const t=new Set(r.map(e=>Ho(e))),n=e[o].filter(e=>!t.has(Xo(e)));return{[o]:n}})},resetEntityStore:()=>{e({namespacesLoading:!1,namespaces:[],sourcesLoading:!1,sources:[],destinationsLoading:!1,destinations:[],actionsLoading:!1,actions:[],instrumentationRulesLoading:!1,instrumentationRules:[]})}})),$c=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),wc=Bt(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),conditions:[],setConditions:t=>e({conditions:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),errors:[],setErrors:t=>e({errors:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],conditions:[],podsAgentInjectionStatus:[],errors:[],onlyErrors:!1}),getEmptyState:$c})),Sc=Bt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),kc=Bt((e,t)=>({notifications:[],addNotification:r=>{const o=new Date,n=`${o.getTime().toString()}${r.target?`#${r.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===r.type&&e.title===r.title&&e.message===r.message&&!e.dismissed)||e(e=>({notifications:[{...r,id:n,time:o.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&(e.notifications[r].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const r=e.notifications.findIndex(e=>e.id===t);return-1!==r&&e.notifications.splice(r,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Cc;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(Cc||(Cc={}));const Ec=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Ac=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Dc=Bt((e,t)=>({progress:{},setProgress:(r,o)=>{const n=t(),i=Ec();return"number"==typeof o.total&&(i.total=o.total),"number"==typeof o.current&&(i.current=o.current),Array.isArray(o.list)&&(i.list=o.list),e({progress:{...n.progress,[r]:Ac(i)}})},addProgress:(r,o,n)=>{const i=t(),a=Ec(r,i.progress);return a.current+=o,n&&(a.list=a.list?.map(e=>e.label===n.label?{...e,status:n.status}:e)),e({progress:{...i.progress,[r]:Ac(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Tc=Bt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Ic={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Nc=(e,t)=>e.destinationType.type!==t.destinationType.type,Rc=Bt(e=>({...Ic,setConfiguredSources:t=>e({configuredSources:t}),setConfiguredFutureApps:t=>e({configuredFutureApps:t}),setConfiguredDestinations:t=>e({configuredDestinations:t}),addConfiguredDestination:t=>e(e=>({configuredDestinations:[...e.configuredDestinations,t]})),removeConfiguredDestination:t=>e(e=>({configuredDestinations:e.configuredDestinations.filter(e=>Nc(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const r=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(r).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Nc(e,t))})),clearStore:()=>e(()=>({...Ic}))})),Oc={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8855FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D06772",700:"#A2535B",800:"#733F44",900:"#452B2D",1e3:"#2E2022"},blue:{100:"#EBF0FA",200:"#D6E1F4",300:"#ADC3EA",400:"#84A4DF",500:"#5C86D5",600:"#3368CA",700:"#2D57A6",800:"#274782",900:"#21375E",1e3:"#1C273A"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9"},orange:{600:"#F29142"}},zIndex:{base:1,island:100,drawer:1e3,modal:1e3,dropdown:1100,popover:1100,tooltip:1200}},colors:{majestic_blue:"#444AD9",majestic_blue_soft:"#6C7AE8",orange_og:"#FE9239",orange_soft:"#FFB160",dark_red:"#802828",darker_red:"#611F1F",darkest_red:"#281515",darkest_red_hover:"#351515",dark_green:"#2D4323"},text:{},font_family:{primary:"Inter, sans-serif",secondary:"Kode Mono, sans-serif",code:"IBM Plex Mono, monospace"}},_c={v2:Oc.v2,darkMode:!0,colors:{...Oc.colors,primary:"#111111",secondary:"#F9F9F9",border:"#525252",dark_grey:"#151515",translucent_bg:"#1A1A1A",dropdown_bg:"#242424",dropdown_bg_2:"#333333",warning:"#472300",error:"#431919",success:"#172013",info:"#242424",default:"#181944"},text:{white:"#FFFFFF",primary:"#111111",secondary:"#F9F9F9",grey:"#B8B8B8",dark_grey:"#8F8F8F",darker_grey:"#7A7A7A",light_grey:"#CCD0D2",dark_button:"#0A1824",warning:"#E9CF35",warning_secondary:"#FFA349",error:"#EF7676",error_secondary:"#DB5151",success:"#81AF65",success_secondary:"#51DB51",info:"#B8B8B8",info_secondary:"#CCDDDD",default:"#AABEF7",default_secondary:"#8CBEFF"},font_family:Oc.font_family},Fc={v2:Oc.v2,darkMode:!1,colors:{...Oc.colors,primary:"#EEEEEE",secondary:"#060606",border:"#ADADAD",dark_grey:"#EAEAEA",translucent_bg:"#E5E5E5",dropdown_bg:"#DBDBDB",dropdown_bg_2:"#CCCCCC",warning:"#F6F092",error:"#FACECE",success:"#C8DEB8",info:"#E0E0E0",default:"#CAD9FB"},text:{white:"#FFFFFF",primary:"#EEEEEE",secondary:"#060606",grey:"#474747",dark_grey:"#707070",darker_grey:"#858585",light_grey:"#332F2D",dark_button:"#F5E7DB",warning:"#A56F12",warning_secondary:"#CA9416",error:"#B63A3A",error_secondary:"#DB5151",success:"#4E763A",success_secondary:"#67964C",info:"#525252",info_secondary:"#7A7A7A",default:"#444AD9",default_secondary:"#6C7AE8"},font_family:Oc.font_family},Pc=e=>e?_c:Fc;var Lc=Object.freeze({__proto__:null,baseTheme:Oc,darkModeTheme:_c,getTheme:Pc,lightModeTheme:Fc});tr('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const zc=({children:t})=>{const{darkMode:r}=fc();return e(s,{theme:Pc(r),children:t})},Mc={100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"};var Bc=Object.freeze({__proto__:null,hex:Mc});const Uc={in:{left:a`
287
287
  from { transform: translateX(-100%); }
288
288
  to { transform: translateX(0); }
289
289
  `,right:a`
@@ -313,7 +313,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
313
313
  `,center:a`
314
314
  from { transform: translate(-50%, -50%); }
315
315
  to { transform: translate(-50%, 100%); }
316
- `}},wl={in:a`
316
+ `}},jc={in:a`
317
317
  from {
318
318
  width: 0%;
319
319
  }
@@ -327,7 +327,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
327
327
  to {
328
328
  width: 0%;
329
329
  }
330
- `},Sl=a`
330
+ `},Wc=a`
331
331
  0% {
332
332
  transform: scale(1);
333
333
  opacity: 1;
@@ -336,14 +336,14 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
336
336
  transform: scale(2);
337
337
  opacity: 0;
338
338
  }
339
- `,kl=a`
339
+ `,Hc=a`
340
340
  0% {
341
341
  background-position: -500px 0;
342
342
  }
343
343
  100% {
344
344
  background-position: 500px 0;
345
345
  }
346
- `,Cl={in:a`
346
+ `,Xc={in:a`
347
347
  from {
348
348
  opacity: 0;
349
349
  }
@@ -357,7 +357,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
357
357
  to {
358
358
  opacity: 0;
359
359
  }
360
- `};var El=Object.freeze({__proto__:null,fade:Cl,ping:Sl,progress:wl,shimmer:kl,slide:$l});const Al=o.span`
360
+ `};var Gc=Object.freeze({__proto__:null,fade:Xc,ping:Wc,progress:jc,shimmer:Hc,slide:Uc});const Vc=o.span`
361
361
  display: flex;
362
362
  align-items: center;
363
363
  justify-content: center;
@@ -369,15 +369,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
369
369
  gap: 2px;
370
370
 
371
371
  border-radius: 50px;
372
- border: 1px solid ${({theme:e,$filled:t,$status:r})=>r?e.text[r]+(t?"":bl["050"]):t?"transparent":e.colors.border};
372
+ border: 1px solid ${({theme:e,$filled:t,$status:r})=>r?e.text[r]+(t?"":Mc["050"]):t?"transparent":e.colors.border};
373
373
  background-color: ${({theme:e,$filled:t,$status:r})=>t?r?e.colors[r]:e.colors.majestic_blue:"transparent"};
374
374
  color: ${({theme:e,$filled:t,$status:r})=>t&&r?e.text.secondary:t?e.text.white:r?e.text[r]:e.text.grey};
375
375
  font-family: ${({theme:e})=>e.font_family.secondary};
376
376
  font-size: 12px;
377
377
  white-space: nowrap;
378
378
 
379
- ${({theme:e,$filled:t,$status:r,$clickable:o})=>o&&`&:hover {\n cursor: pointer;\n background-color: ${r?e.colors[r]+bl["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+bl["020"]};\n }`}
380
- `,Dl=({label:r,filled:o,status:n,withIcon:a,onClick:s})=>{const l=i(),c=n&&a?Vn(n,l):null;return t(Al,{$filled:o,$status:n,$clickable:!!s,onClick:s,children:[!!c&&e(c,{}),r]})},Tl=o.div`
379
+ ${({theme:e,$filled:t,$status:r,$clickable:o})=>o&&`&:hover {\n cursor: pointer;\n background-color: ${r?e.colors[r]+Mc["020"]:t?e.colors.majestic_blue_soft:e.colors.secondary+Mc["020"]};\n }`}
380
+ `,Kc=({label:r,filled:o,status:n,withIcon:a,onClick:s})=>{const l=i(),c=n&&a?Vn(n,l):null;return t(Vc,{$filled:o,$status:n,$clickable:!!s,onClick:s,children:[!!c&&e(c,{}),r]})},qc=o.div`
381
381
  height: fit-content;
382
382
  border: 2px solid transparent;
383
383
  padding: 2px;
@@ -387,15 +387,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
387
387
  &:focus-within {
388
388
  border-color: ${({theme:e})=>e.colors.secondary};
389
389
  }
390
- `,Il={primary:n`
391
- border: 1px solid ${({theme:e})=>e.text.secondary+bl["024"]};
390
+ `,Jc={primary:n`
391
+ border: 1px solid ${({theme:e})=>e.text.secondary+Mc["024"]};
392
392
  background: ${({theme:e})=>e.colors.secondary};
393
393
  color: ${({theme:e})=>e.colors.primary};
394
394
  &:hover {
395
- background: ${({theme:e})=>e.colors.secondary+bl["080"]};
395
+ background: ${({theme:e})=>e.colors.secondary+Mc["080"]};
396
396
  }
397
397
  &:active {
398
- background: ${({theme:e})=>e.text.secondary+bl["060"]};
398
+ background: ${({theme:e})=>e.text.secondary+Mc["060"]};
399
399
  }
400
400
  `,secondary:n`
401
401
  border: 1px solid ${({theme:e})=>e.colors.border};
@@ -403,17 +403,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
403
403
  color: ${({theme:e})=>e.colors.secondary};
404
404
  &:hover {
405
405
  border: 1px solid ${({theme:e})=>e.text.darker_grey};
406
- background: ${({theme:e})=>e.colors.secondary+bl["010"]};
406
+ background: ${({theme:e})=>e.colors.secondary+Mc["010"]};
407
407
  }
408
408
  &:active {
409
409
  border: 1px solid ${({theme:e})=>e.text.dark_grey};
410
- background: ${({theme:e})=>e.colors.secondary+bl["015"]};
410
+ background: ${({theme:e})=>e.colors.secondary+Mc["015"]};
411
411
  }
412
412
  `,tertiary:n`
413
413
  border-color: transparent;
414
414
  background: transparent;
415
415
  &:hover {
416
- background: ${({theme:e})=>e.colors.dropdown_bg_2+bl["040"]};
416
+ background: ${({theme:e})=>e.colors.dropdown_bg_2+Mc["040"]};
417
417
  }
418
418
  &:active {
419
419
  background: ${({theme:e})=>e.colors.dropdown_bg_2};
@@ -422,21 +422,21 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
422
422
  border-color: transparent;
423
423
  background: ${({theme:e})=>e.text.error};
424
424
  &:hover {
425
- background: ${({theme:e})=>e.text.error+bl["090"]};
425
+ background: ${({theme:e})=>e.text.error+Mc["090"]};
426
426
  }
427
427
  &:active {
428
- background: ${({theme:e})=>e.text.error+bl["080"]};
428
+ background: ${({theme:e})=>e.text.error+Mc["080"]};
429
429
  }
430
430
  `,warning:n`
431
431
  border-color: transparent;
432
432
  background: ${({theme:e})=>e.text.warning};
433
433
  &:hover {
434
- background: ${({theme:e})=>e.text.warning+bl["090"]};
434
+ background: ${({theme:e})=>e.text.warning+Mc["090"]};
435
435
  }
436
436
  &:active {
437
- background: ${({theme:e})=>e.text.warning+bl["080"]};
437
+ background: ${({theme:e})=>e.text.warning+Mc["080"]};
438
438
  }
439
- `},Nl=o.button`
439
+ `},Yc=o.button`
440
440
  height: 36px;
441
441
  border-radius: 32px;
442
442
  cursor: pointer;
@@ -450,20 +450,20 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
450
450
  text-decoration: underline;
451
451
  font-weight: 600;
452
452
  outline: none;
453
- ${({$variant:e})=>e&&Il[e]}
453
+ ${({$variant:e})=>e&&Jc[e]}
454
454
  ${({disabled:e,$variant:t})=>e&&n`
455
455
  opacity: 0.5;
456
456
  cursor: not-allowed;
457
457
 
458
458
  ${"primary"===t?n`
459
459
  color: ${({theme:e})=>e.colors.secondary};
460
- background: ${({theme:e})=>e.text.secondary+bl["010"]};
460
+ background: ${({theme:e})=>e.text.secondary+Mc["010"]};
461
461
  &:hover {
462
- background: ${({theme:e})=>e.text.secondary+bl["015"]};
462
+ background: ${({theme:e})=>e.text.secondary+Mc["015"]};
463
463
  }
464
464
  `:""}
465
465
  `}
466
- `,Rl=({children:t,variant:r="primary",onClick:o,...n})=>{const i=Gt(null);return e(Tl,{$variant:r,children:e(Nl,{ref:i,$variant:r,onClick:e=>{o&&o(e),i.current?.blur()},...n,children:t})})},Ol=e=>{function t(){return void 0===e?{}:$r(e)}const[r,o]=Wt(t()),[n,i]=Wt({}),[a,s]=Wt(t()),l=Vt((e,t)=>{const r={};if(!t||"object"!=typeof t)return e?{...e}:r;for(const[o,n]of Object.entries(e)){const e=o;if(Array.isArray(n)){const o=t[e];Array.isArray(o)&&n.length===o.length&&n.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,o[t])).length:e===o[t])||(r[e]=t[e])}else if("object"==typeof n&&null!==n)if(null==t[e]||"object"!=typeof t[e])r[e]=t[e];else{const o=l(n,t[e]);Object.keys(o).length>0&&(r[e]=o)}else n!==t[e]&&(r[e]=t[e])}for(const o of Object.keys(t))o in e||(r[o]=t[o]);return r},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Xt(()=>!c(a,r),[a,r]);Ht(()=>{const n=t();void 0!==e&&"{}"===JSON.stringify(r)&&"{}"!==JSON.stringify(n)&&(o(n),s(n))},[e,r]);const p=Vt((e,t)=>wr("formData"===e?r:n,t.toString()),[r,n]);return{formData:r,formErrors:n,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?o(r=>({...r,[e]:t})):o(e=>{const o=$r(e);let n=o;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,o})}else r&&o({...r})},handleErrorChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?i(r=>({...r,[e]:t})):i(e=>{const o=$r(e);let n=o;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,o})}else r&&i({...r})},resetFormData:e=>{const r=e||t();o(r),s(r),i({})},getNestedValue:p}},_l={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,fallbackSamplingRatio:null,samplingPercentage:null,endpointsFilters:null,servicesNameFilters:null,attributeFilters:null,urlTemplatizationRulesGroups:null}},Fl=()=>{const{addNotification:e}=nl(),{formData:t,formErrors:r,handleFormChange:o,handleErrorChange:n,resetFormData:i}=Ol(_l),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;return{formData:t,formErrors:r,handleFormChange:o,resetFormData:i,validateForm:r=>{const o={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":oi(t)&&(o[e]=Eo.FIELD_IS_REQUIRED)}}),t.type===Dr.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=Eo.FIELD_IS_REQUIRED;break}}return i=!Object.values(o).length,!i&&r?.withAlert&&e({type:Gr.Warning,title:r.alertTitle,message:Eo.REQUIRED_FIELDS,hideFromHistory:!0}),n(void 0,void 0,o),i},loadFormWithDrawerItem:({type:e,signals:t,name:r,notes:n,disabled:i,fields:s})=>{const l={...$r(_l),type:e,signals:t,name:r,notes:n,disabled:i};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case Tr.LabelsAttributes:case Tr.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case Tr.CollectContainerAttributes:case Tr.CollectReplicaSetAttributes:case Tr.CollectWorkloadId:case Tr.CollectClusterId:case Tr.ClusterAttributes:case Tr.OverwriteExistingValues:case Tr.AttributeNamesToDelete:case Tr.Renames:case Tr.PiiCategories:case Tr.FallbackSamplingRatio:case Tr.SamplingPercentage:case Tr.EndpointsFilters:case Tr.ServicesNameFilters:case Tr.AttributeFilters:case Tr.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),o(void 0,void 0,l)}}},Pl=e=>{Ht(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Ll=()=>{const{setCurrentModal:e}=ol(),{setDrawerType:t,setDrawerEntityId:r}=Zs(),{setActiveNodeType:o,setActiveNodeId:n,activeNodeId:i}=Vi();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(i===l?(o(null),n(null)):(o(c),n(l)),p){case jr.Source:case jr.Destination:case jr.Action:case jr.InstrumentationRule:t(p),r(d);break;case Zr.AddSource:e(jr.Source);break;case Zr.AddDestination:e(jr.Destination);break;case Zr.AddAction:e(jr.Action);break;case Zr.AddRule:e(jr.InstrumentationRule)}}}},zl=()=>{const{setDrawerType:e,setDrawerEntityId:t}=Zs(),{markAsDismissed:r,markAsSeen:o}=nl();return{onClickNotification:(n,i)=>{const{id:a,crdType:s,target:l}=n,{dismissToast:c}=i||{};if(s&&l)switch(s){case jr.InstrumentationRule:e(jr.InstrumentationRule),t(Vo(l,jr.InstrumentationRule));break;case jr.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(jr.Source),t(Vo(l,jr.Source));break;case jr.Action:e(jr.Action),t(Vo(l,jr.Action));break;case jr.Destination:case"Destination":e(jr.Destination),t(Vo(l,jr.Destination))}o(a),c&&r(a)}}},Ml=()=>{const e=Gt(null),[t,r]=Wt(0),[o,n]=Wt(0);return Ht(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();r(t),n(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}};var Bl;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Bl||(Bl={}));const Ul=o.div`
466
+ `,Qc=({children:t,variant:r="primary",onClick:o,...n})=>{const i=Gt(null);return e(qc,{$variant:r,children:e(Yc,{ref:i,$variant:r,onClick:e=>{o&&o(e),i.current?.blur()},...n,children:t})})},Zc=e=>{function t(){return void 0===e?{}:$r(e)}const[r,o]=Wt(t()),[n,i]=Wt({}),[a,s]=Wt(t()),l=Vt((e,t)=>{const r={};if(!t||"object"!=typeof t)return e?{...e}:r;for(const[o,n]of Object.entries(e)){const e=o;if(Array.isArray(n)){const o=t[e];Array.isArray(o)&&n.length===o.length&&n.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,o[t])).length:e===o[t])||(r[e]=t[e])}else if("object"==typeof n&&null!==n)if(null==t[e]||"object"!=typeof t[e])r[e]=t[e];else{const o=l(n,t[e]);Object.keys(o).length>0&&(r[e]=o)}else n!==t[e]&&(r[e]=t[e])}for(const o of Object.keys(t))o in e||(r[o]=t[o]);return r},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Xt(()=>!c(a,r),[a,r]);Ht(()=>{const n=t();void 0!==e&&"{}"===JSON.stringify(r)&&"{}"!==JSON.stringify(n)&&(o(n),s(n))},[e,r]);const p=Vt((e,t)=>wr("formData"===e?r:n,t.toString()),[r,n]);return{formData:r,formErrors:n,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?o(r=>({...r,[e]:t})):o(e=>{const o=$r(e);let n=o;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,o})}else r&&o({...r})},handleErrorChange:(e,t,r)=>{if(e){const r=e.toString().split(".");1===r.length?i(r=>({...r,[e]:t})):i(e=>{const o=$r(e);let n=o;for(let e=0;e<r.length-1;e++){const t=r[e];n[t]&&"object"==typeof n[t]||(n[t]={}),n=n[t]}return n[r[r.length-1]]=t,o})}else r&&i({...r})},resetFormData:e=>{const r=e||t();o(r),s(r),i({})},getNestedValue:p}},ed={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,fallbackSamplingRatio:null,samplingPercentage:null,endpointsFilters:null,servicesNameFilters:null,attributeFilters:null,urlTemplatizationRulesGroups:null}},td=()=>{const{addNotification:e}=kc(),{formData:t,formErrors:r,handleFormChange:o,handleErrorChange:n,resetFormData:i}=Zc(ed),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;return{formData:t,formErrors:r,handleFormChange:o,resetFormData:i,validateForm:r=>{const o={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":oi(t)&&(o[e]=Eo.FIELD_IS_REQUIRED)}}),t.type===Dr.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=Eo.FIELD_IS_REQUIRED;break}}return i=!Object.values(o).length,!i&&r?.withAlert&&e({type:Gr.Warning,title:r.alertTitle,message:Eo.REQUIRED_FIELDS,hideFromHistory:!0}),n(void 0,void 0,o),i},loadFormWithDrawerItem:({type:e,signals:t,name:r,notes:n,disabled:i,fields:s})=>{const l={...$r(ed),type:e,signals:t,name:r,notes:n,disabled:i};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case Tr.LabelsAttributes:case Tr.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case Tr.CollectContainerAttributes:case Tr.CollectReplicaSetAttributes:case Tr.CollectWorkloadId:case Tr.CollectClusterId:case Tr.ClusterAttributes:case Tr.OverwriteExistingValues:case Tr.AttributeNamesToDelete:case Tr.Renames:case Tr.PiiCategories:case Tr.FallbackSamplingRatio:case Tr.SamplingPercentage:case Tr.EndpointsFilters:case Tr.ServicesNameFilters:case Tr.AttributeFilters:case Tr.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),o(void 0,void 0,l)}}},rd=e=>{Ht(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},od=()=>{const{setCurrentModal:e}=Sc(),{setDrawerType:t,setDrawerEntityId:r}=bc(),{setActiveNodeType:o,setActiveNodeId:n,activeNodeId:i}=Vi();return{onClickNode:(a,s)=>{const{id:l,type:c,data:{id:d,type:p}}=s;switch(i===l?(o(null),n(null)):(o(c),n(l)),p){case jr.Source:case jr.Destination:case jr.Action:case jr.InstrumentationRule:t(p),r(d);break;case Zr.AddSource:e(jr.Source);break;case Zr.AddDestination:e(jr.Destination);break;case Zr.AddAction:e(jr.Action);break;case Zr.AddRule:e(jr.InstrumentationRule)}}}},nd=()=>{const{setDrawerType:e,setDrawerEntityId:t}=bc(),{markAsDismissed:r,markAsSeen:o}=kc();return{onClickNotification:(n,i)=>{const{id:a,crdType:s,target:l}=n,{dismissToast:c}=i||{};if(s&&l)switch(s){case jr.InstrumentationRule:e(jr.InstrumentationRule),t(Vo(l,jr.InstrumentationRule));break;case jr.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(jr.Source),t(Vo(l,jr.Source));break;case jr.Action:e(jr.Action),t(Vo(l,jr.Action));break;case jr.Destination:case"Destination":e(jr.Destination),t(Vo(l,jr.Destination))}o(a),c&&r(a)}}},id=()=>{const e=Gt(null),[t,r]=Wt(0),[o,n]=Wt(0);return Ht(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();r(t),n(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}};var ad;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(ad||(ad={}));const sd=o.div`
467
467
  width: ${({$size:e})=>1.5*e}px;
468
468
  height: ${({$size:e})=>1.5*e}px;
469
469
  display: flex;
@@ -474,7 +474,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
474
474
  &:hover {
475
475
  background: ${({theme:e})=>e.v2.colors.silver[900]};
476
476
  }
477
- `,jl=({"data-id":t,icon:r,size:o=Bl.S,onClick:n,disabled:i})=>e(Ul,{"data-id":t,$size:o,$disabled:i,onClick:e=>{n&&!i&&(e.stopPropagation(),n(e))},children:e(r,{size:o})}),Wl=({onDone:t}={})=>{const[r,o]=Wt(!1),[n,i]=Wt(-1),a=Vt(async(e,n)=>{if(!r){if(o(!0),void 0!==n&&i(n),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(e)}catch(e){}else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(t)}t?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[r,t]);return{CopyButton:Vt(({value:t,size:o})=>e(jl,{icon:r?ft:yt,size:o,onClick:()=>a(t)}),[r]),isCopied:r,copiedIndex:n,clickCopy:a}},Hl=e=>{const{addNotification:t}=nl(),{formData:r,handleFormChange:o,formErrors:n,handleErrorChange:i,resetFormData:a}=Ol(e);return{formData:r,formErrors:n,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let n=!0;return r.name?ni(r.name)?o.name=void 0:(n=!1,o.name=Eo.ILLEGAL_K8S_LABEL):(n=!1,o.name=Eo.FIELD_IS_REQUIRED),!n&&e?.withAlert&&t({type:Gr.Warning,title:e.alertTitle,message:Eo.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),n},loadFormWithDrawerItem:({name:t})=>{const r={...$r(e),name:t};o(void 0,void 0,r)}}},Xl={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},Gl=e=>{const{supportedSignals:t,preLoadedFields:r}=e||{},{addNotification:o}=nl(),{formData:n,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Ol(Xl),[c,d]=Wt([]),[p,u]=Wt([]);Ht(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:o,displayName:n,initialValue:i,renderCondition:a}=e;if(r===Hr.Dropdown){const e=ei(o,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:r,title:n,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:r,title:n,value:i,renderCondition:a,...ei(o,{})}})).map(e=>{if(r){const t="string"==typeof r?ei(r,{}):r;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,r]),Ht(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),Ht(()=>{if(t&&0===hi(n.exportedSignals).length){const{logs:e,metrics:r,traces:o}=t;a("exportedSignals",{logs:e.supported,metrics:r.supported,traces:o.supported})}},[t,n.exportedSignals]);return{formData:n,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let r=!0;return p.forEach(({name:e,value:o,required:n})=>{n&&!o&&(r=!1,t[e]=Eo.FIELD_IS_REQUIRED)}),!r&&e?.withAlert&&o({type:Gr.Warning,title:e.alertTitle,message:Eo.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),r},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:r,exportedSignals:o,fields:n})=>{const i={...$r(Xl),type:e,name:t,disabled:r,exportedSignals:o,fields:Object.entries(ei(n,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},Vl={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[lo.HttpRequest]:null,[lo.HttpResponse]:null,[lo.DbQuery]:null,[lo.Messaging]:null},codeAttributes:{[io.Column]:null,[io.FilePath]:null,[io.Function]:null,[io.LineNumber]:null,[io.Namespace]:null,[io.StackTrace]:null},headersCollection:null,customInstrumentations:{[so.Java]:null,[so.Golang]:null}},Kl=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:o,resetFormData:n}=Ol(Vl);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:n,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,payloadCollection:n,codeAttributes:i,headersCollection:a,customInstrumentations:s})=>{const l={...$r(Vl),ruleName:e,notes:t,disabled:o};n&&(l.payloadCollection={[lo.HttpRequest]:n[lo.HttpRequest]?{}:null,[lo.HttpResponse]:n[lo.HttpResponse]?{}:null,[lo.DbQuery]:n[lo.DbQuery]?{}:null,[lo.Messaging]:n[lo.Messaging]?{}:null}),i&&(l.codeAttributes={[io.Column]:i[io.Column]||null,[io.FilePath]:i[io.FilePath]||null,[io.Function]:i[io.Function]||null,[io.LineNumber]:i[io.LineNumber]||null,[io.Namespace]:i[io.Namespace]||null,[io.StackTrace]:i[io.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[so.Java]:s[so.Java]||null,[so.Golang]:s[so.Golang]||null}),r(void 0,void 0,l)}}},ql=({active:e,key:t,withAltKey:r,withCtrlKey:o,withShiftKey:n,withMetaKey:i},a)=>(Ht(()=>{const s=s=>{e&&t===s.key&&(!r||r&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!n||n&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,r,o,n,i,a]),null),Jl="data-ignore-outside-click",Yl=(e,t)=>{const r=Gt(t);r.current=t,Ht(()=>{const t=t=>{const o=t.target;e.current&&!e.current.contains(o)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Jl))return!0;t=t.parentNode}return!1})(o)||r.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Ql=({sectionNames:e,threshold:t=.4})=>{const[r,o]=Wt(e[0]||""),[n,i]=Wt(null),a=Gt({}),s=Gt(!1),l=Gt(!1),c=Vt((e,t)=>{a.current[e]=t},[]),d=Vt(e=>{i(e)},[]),p=Vt(e=>{l.current=!0,o(e)},[]);return Ht(()=>{if(!l.current)return;l.current=!1;const e=a.current[r];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[r]),Ht(()=>{const r=a.current,i=e.map(e=>r[e]).filter(Boolean);if(!i.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&o(e);break}},{threshold:t,root:n});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,n]),{selectedSection:r,setSelectedSection:p,setSectionRef:c,setScrollContainerRef:d}},Zl=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:r,positionMode:o="local"}={})=>{const n=Gt(null),[i,a]=Wt(!1),[s,l]=Wt({top:0,left:0}),[c,d]=Wt({edge:"top",align:"left"});Yl(n,()=>{i&&(a(!1),r?.())});return{popupRef:n,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(r,i)=>{if("local"===o)return void l({top:i,left:r});const{innerWidth:a,innerHeight:s}=window,c=n.current?.clientWidth||t,p=n.current?.clientHeight||e,u=r/a,h=u<1/3?"left":u>2/3?"right":"center";d({edge:i<s/2?"top":"bottom",align:h});let m=i,g=r;if(m>=s/2&&(m+=-p),"center"===h){g=r-c/2;const e=8;g=Math.max(e,Math.min(g,a-c-e))}else g>=a/2&&(g=r-c);l({top:m,left:g})}}},ec=()=>({getItemSS:(e,t)=>{const r=sessionStorage.getItem(e);return r?ei(r,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),tc={otelServiceName:"",currentStreamName:""},rc=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:o,resetFormData:n}=Ol(tc);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:n,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const o={...$r(tc),otelServiceName:e||t||""};r(void 0,void 0,o)}}},oc=qt({platformType:zr.K8s,tier:Lr.Community,version:"v0.0.0"}),nc=({children:t,platformType:r,tier:o,version:n})=>{const i=Xt(()=>({platformType:r,tier:o,version:n}),[r,o,n]);return e(oc.Provider,{value:i,children:t})},ic=(e,t)=>!t||Si(e)>=Si(t),ac=e=>{const t=Kt(oc),r=ic(t.version,e),o=t.platformType===zr.Vm;return{...t,isVersionSupported:r,isVm:o,isEnterprise:t.tier===Lr.Onprem}},sc=new Set([to.StaticPod]),lc=e=>{const t=e.workloads.filter(({selected:e})=>e).length,r=e.workloads.length;return{selectedCount:t,isAllSourced:t>0&&t===r,isSomeSourced:t>0&&t<r,isFutureApps:e.selected||!1}},cc=(e,t,r)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(r.showOnlySelected){const{isAllSourced:t,isSomeSourced:r,isFutureApps:o}=lc(e);return t||r||o}return!0},dc=(e,t,r)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!r.showOnlySelected||e.selected),pc=(e,t,r)=>{const o=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,n=o&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,i=e.selected&&(!o||n)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:i,numberOfInstances:e.numberOfInstances}},uc=(e,t,r)=>({...pc(e,t),currentStreamName:t}),hc=(e,t,r)=>{const o="boolean"==typeof r,n=e.dataStreamNames?.includes(t),i=(o?r:e.selected)||!1;return{namespace:e.name,selected:!(!n&&!o)&&i,currentStreamName:t}},mc=e=>{const{fetchNamespacesWithWorkloads:t}=e,{tier:r}=ac(),o=e=>r!==Lr.Onprem&&sc.has(e),{selectedStreamName:n}=Qs(),{namespaces:i,addEntities:a}=el(),[s,l]=Wt(!1),[c,d]=Wt({}),[p,u]=Wt(!1),[h,m]=Wt(""),[g,f]=Wt({}),[y,x]=Wt({}),[b,v]=Wt(""),[$,w]=Wt(jr.Source),[S,k]=Wt(!1),[C,E]=Wt(!1),A=Xt(()=>{const e=(e,t)=>!b||$!==t||$===t&&e.toLowerCase().includes(b),t={};return Object.entries(y).filter(([t])=>e(t,jr.Namespace)).forEach(([r,o])=>{const n=o.filter(t=>{return e(t.name,jr.Source)&&(r=t,!S||r.selected)&&(e=>!C||(e.numberOfInstances||0)>0)(t);var r});(!b||b&&($===jr.Namespace||$===jr.Source&&n.length))&&(t[r]=n)}),t},[y,b,$,S,C]);return Ht(()=>{(async()=>{l(!0);const e=await t();l(!1);const r=e.data;if(!r?.length)return;const o=[...r].sort((e,t)=>e.name.localeCompare(t.name)),i={},s={},c={};for(const e of o){const t=[...e.sources||[]].sort((e,t)=>e.name.localeCompare(t.name));i[e.name]=t.map(e=>pc(e,n)),s[e.name]=t.map(e=>uc(e,n)),c[e.name]=hc(e,n)}a(jr.Namespace,r.map(({sources:e,...t})=>t));const{configuredSources:p,configuredFutureApps:u}=ul.getState();Object.entries(p).forEach(([e,t])=>{s[e]&&t.forEach(t=>{const r=s[e].findIndex(e=>e.name===t.name&&e.kind===t.kind);-1!==r&&(s[e][r]={...s[e][r],selected:t.selected,currentStreamName:t.currentStreamName})})}),Object.entries(u).forEach(([e,t])=>{c[e]&&(c[e]=t)}),d(i),x(s),f(c)})()},[n]),{loading:s,availableSources:c,filteredNamespacesAndSources:A,getApiSourcesPayload:()=>{const e={};return Object.entries(y).forEach(([t,r])=>{r.forEach(r=>{const o=c[t]?.find(e=>e.name===r.name&&e.kind===r.kind);o?.selected!==r.selected&&(e[t]||(e[t]=[]),e[t].push(r))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(g).forEach(([t,r])=>{const o=i?.find(e=>e.name===t);(r.selected&&!o?.dataStreamNames?.includes(n)||!r.selected&&o?.dataStreamNames?.includes(n))&&(e[t]=r)}),e},selectedNamespace:h,onSelectNamespace:(e,t)=>{if(i.find(t=>t.name===e)){const r="boolean"==typeof t;m(t=>t!==e||r?e:""),r&&(x(r=>({...r,[e]:(r[e]||[]).map(e=>t&&o(e.kind)?e:{...e,selected:t,currentStreamName:n})})),u(!1))}},selectedAllNamespaces:p,onSelectAllNamespaces:e=>{u(e),x(t=>{const r={};for(const[i,a]of Object.entries(t))r[i]=a.map(t=>e&&o(t.kind)?t:{...t,selected:e,currentStreamName:n});return r})},selectedSources:y,onSelectSource:(e,t)=>{const r=t||h;if(!r)return;if(o(e.kind))return;const i=[...y[r]||[]],a=i.findIndex(({name:t,kind:r})=>t===e.name&&r===e.kind);if(-1!==a){const e={...i[a],selected:!i[a].selected,currentStreamName:n};i[a]=e}else i.push({...e,selected:!0,currentStreamName:n});x(e=>({...e,[r]:i})),u(!1)},selectedFutureApps:g,onSelectFutureApps:(e,t)=>{const r=t||h;if(!r)return;const o=i.find(e=>e.name===t);o&&f(t=>({...t,[r]:hc(o,n,e)}))},searchText:b,setSearchText:v,searchBy:$,setSearchBy:w,showSelectedOnly:S,setShowSelectedOnly:k,showRunningOnly:C,setShowRunningOnly:E}};try{Qt.addDefaultLocale(rr)}catch(e){}const gc=()=>{const e=Gt(new Qt(rr.locale));return{formatTimeAgo:Vt(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},fc=o.div`
477
+ `,ld=({"data-id":t,icon:r,size:o=ad.S,onClick:n,disabled:i})=>e(sd,{"data-id":t,$size:o,$disabled:i,onClick:e=>{n&&!i&&(e.stopPropagation(),n(e))},children:e(r,{size:o})}),cd=({onDone:t}={})=>{const[r,o]=Wt(!1),[n,i]=Wt(-1),a=Vt(async(e,n)=>{if(!r){if(o(!0),void 0!==n&&i(n),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(e)}catch(e){}else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(t)}t?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[r,t]);return{CopyButton:Vt(({value:t,size:o})=>e(ld,{icon:r?ft:yt,size:o,onClick:()=>a(t)}),[r]),isCopied:r,copiedIndex:n,clickCopy:a}},dd=e=>{const{addNotification:t}=kc(),{formData:r,handleFormChange:o,formErrors:n,handleErrorChange:i,resetFormData:a}=Zc(e);return{formData:r,formErrors:n,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let n=!0;return r.name?ni(r.name)?o.name=void 0:(n=!1,o.name=Eo.ILLEGAL_K8S_LABEL):(n=!1,o.name=Eo.FIELD_IS_REQUIRED),!n&&e?.withAlert&&t({type:Gr.Warning,title:e.alertTitle,message:Eo.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),n},loadFormWithDrawerItem:({name:t})=>{const r={...$r(e),name:t};o(void 0,void 0,r)}}},pd={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[],disabled:!1},ud=e=>{const{supportedSignals:t,preLoadedFields:r}=e||{},{addNotification:o}=kc(),{formData:n,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Zc(pd),[c,d]=Wt([]),[p,u]=Wt([]);Ht(()=>{var e;u(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:o,displayName:n,initialValue:i,renderCondition:a}=e;if(r===Hr.Dropdown){const e=ei(o,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,value:e})):Object.entries(e.values).map(([e,t])=>({id:e,value:t}));return{name:t,componentType:r,title:n,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:r,title:n,value:i,renderCondition:a,...ei(o,{})}})).map(e=>{if(r){const t="string"==typeof r?ei(r,{}):r;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,r]),Ht(()=>{if(p){const e=p.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[p]),Ht(()=>{if(t&&0===hi(n.exportedSignals).length){const{logs:e,metrics:r,traces:o}=t;a("exportedSignals",{logs:e.supported,metrics:r.supported,traces:o.supported})}},[t,n.exportedSignals]);return{formData:n,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let r=!0;return p.forEach(({name:e,value:o,required:n})=>{n&&!o&&(r=!1,t[e]=Eo.FIELD_IS_REQUIRED)}),!r&&e?.withAlert&&o({type:Gr.Warning,title:e.alertTitle,message:Eo.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),r},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:r,exportedSignals:o,fields:n})=>{const i={...$r(pd),type:e,name:t,disabled:r,exportedSignals:o,fields:Object.entries(ei(n,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:p,setDynamicFields:u}},hd={ruleName:"",notes:"",disabled:!1,workloads:null,instrumentationLibraries:null,payloadCollection:{[lo.HttpRequest]:null,[lo.HttpResponse]:null,[lo.DbQuery]:null,[lo.Messaging]:null},codeAttributes:{[io.Column]:null,[io.FilePath]:null,[io.Function]:null,[io.LineNumber]:null,[io.Namespace]:null,[io.StackTrace]:null},headersCollection:null,customInstrumentations:{[so.Java]:null,[so.Golang]:null}},md=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:o,resetFormData:n}=Zc(hd);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:n,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,payloadCollection:n,codeAttributes:i,headersCollection:a,customInstrumentations:s})=>{const l={...$r(hd),ruleName:e,notes:t,disabled:o};n&&(l.payloadCollection={[lo.HttpRequest]:n[lo.HttpRequest]?{}:null,[lo.HttpResponse]:n[lo.HttpResponse]?{}:null,[lo.DbQuery]:n[lo.DbQuery]?{}:null,[lo.Messaging]:n[lo.Messaging]?{}:null}),i&&(l.codeAttributes={[io.Column]:i[io.Column]||null,[io.FilePath]:i[io.FilePath]||null,[io.Function]:i[io.Function]||null,[io.LineNumber]:i[io.LineNumber]||null,[io.Namespace]:i[io.Namespace]||null,[io.StackTrace]:i[io.StackTrace]||null}),a&&(l.headersCollection=a),s&&(l.customInstrumentations={[so.Java]:s[so.Java]||null,[so.Golang]:s[so.Golang]||null}),r(void 0,void 0,l)}}},gd=({active:e,key:t,withAltKey:r,withCtrlKey:o,withShiftKey:n,withMetaKey:i},a)=>(Ht(()=>{const s=s=>{e&&t===s.key&&(!r||r&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!n||n&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,r,o,n,i,a]),null),fd="data-ignore-outside-click",yd=(e,t)=>{const r=Gt(t);r.current=t,Ht(()=>{const t=t=>{const o=t.target;e.current&&!e.current.contains(o)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(fd))return!0;t=t.parentNode}return!1})(o)||r.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},xd=({sectionNames:e,threshold:t=.4})=>{const[r,o]=Wt(e[0]||""),[n,i]=Wt(null),a=Gt({}),s=Gt(!1),l=Gt(!1),c=Vt((e,t)=>{a.current[e]=t},[]),d=Vt(e=>{i(e)},[]),p=Vt(e=>{l.current=!0,o(e)},[]);return Ht(()=>{if(!l.current)return;l.current=!1;const e=a.current[r];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[r]),Ht(()=>{const r=a.current,i=e.map(e=>r[e]).filter(Boolean);if(!i.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&o(e);break}},{threshold:t,root:n});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,n]),{selectedSection:r,setSelectedSection:p,setSectionRef:c,setScrollContainerRef:d}},bd=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:r,positionMode:o="local"}={})=>{const n=Gt(null),[i,a]=Wt(!1),[s,l]=Wt({top:0,left:0}),[c,d]=Wt({edge:"top",align:"left"});yd(n,()=>{i&&(a(!1),r?.())});return{popupRef:n,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(r,i)=>{if("local"===o)return void l({top:i,left:r});const{innerWidth:a,innerHeight:s}=window,c=n.current?.clientWidth||t,p=n.current?.clientHeight||e,u=r/a,h=u<1/3?"left":u>2/3?"right":"center";d({edge:i<s/2?"top":"bottom",align:h});let m=i,g=r;if(m>=s/2&&(m+=-p),"center"===h){g=r-c/2;const e=8;g=Math.max(e,Math.min(g,a-c-e))}else g>=a/2&&(g=r-c);l({top:m,left:g})}}},vd=()=>({getItemSS:(e,t)=>{const r=sessionStorage.getItem(e);return r?ei(r,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),$d={otelServiceName:"",currentStreamName:""},wd=()=>{const{formData:e,formErrors:t,handleFormChange:r,handleErrorChange:o,resetFormData:n}=Zc($d);return{formData:e,formErrors:t,handleFormChange:r,resetFormData:n,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({otelServiceName:e,name:t})=>{const o={...$r($d),otelServiceName:e||t||""};r(void 0,void 0,o)}}},Sd=qt({platformType:zr.K8s,tier:Lr.Community,version:"v0.0.0"}),kd=({children:t,platformType:r,tier:o,version:n})=>{const i=Xt(()=>({platformType:r,tier:o,version:n}),[r,o,n]);return e(Sd.Provider,{value:i,children:t})},Cd=(e,t)=>!t||Si(e)>=Si(t),Ed=e=>{const t=Kt(Sd),r=Cd(t.version,e),o=t.platformType===zr.Vm;return{...t,isVersionSupported:r,isVm:o,isEnterprise:t.tier===Lr.Onprem}},Ad=new Set([to.StaticPod]),Dd=e=>{const t=e.workloads.filter(({selected:e})=>e).length,r=e.workloads.length;return{selectedCount:t,isAllSourced:t>0&&t===r,isSomeSourced:t>0&&t<r,isFutureApps:e.selected||!1}},Td=(e,t,r)=>{if(t&&!e.name.toLowerCase().includes(t.toLowerCase()))return!1;if(r.showOnlySelected){const{isAllSourced:t,isSomeSourced:r,isFutureApps:o}=Dd(e);return t||r||o}return!0},Id=(e,t,r)=>!(t&&!e.name.toLowerCase().includes(t.toLowerCase()))&&(!r.showOnlySelected||e.selected),Nd=(e,t,r)=>{const o=!!e.dataStreamNames?.length||!!e.currentStreamName?.length,n=o&&e.dataStreamNames?.includes(t)||e.currentStreamName===t,i=e.selected&&(!o||n)||!1;return{namespace:e.namespace,name:e.name,kind:e.kind,selected:i,numberOfInstances:e.numberOfInstances}},Rd=(e,t,r)=>({...Nd(e,t),currentStreamName:t}),Od=(e,t,r)=>{const o="boolean"==typeof r,n=e.dataStreamNames?.includes(t),i=(o?r:e.selected)||!1;return{namespace:e.name,selected:!(!n&&!o)&&i,currentStreamName:t}},_d=e=>{const{fetchNamespacesWithWorkloads:t}=e,{tier:r}=Ed(),o=e=>r!==Lr.Onprem&&Ad.has(e),{selectedStreamName:n}=xc(),{namespaces:i,addEntities:a}=vc(),[s,l]=Wt(!1),[c,d]=Wt({}),[p,u]=Wt(!1),[h,m]=Wt(""),[g,f]=Wt({}),[y,x]=Wt({}),[b,v]=Wt(""),[$,w]=Wt(jr.Source),[S,k]=Wt(!1),[C,E]=Wt(!1),A=Xt(()=>{const e=(e,t)=>!b||$!==t||$===t&&e.toLowerCase().includes(b),t={};return Object.entries(y).filter(([t])=>e(t,jr.Namespace)).forEach(([r,o])=>{const n=o.filter(t=>{return e(t.name,jr.Source)&&(r=t,!S||r.selected)&&(e=>!C||(e.numberOfInstances||0)>0)(t);var r});(!b||b&&($===jr.Namespace||$===jr.Source&&n.length))&&(t[r]=n)}),t},[y,b,$,S,C]);return Ht(()=>{(async()=>{l(!0);const e=await t();l(!1);const r=e.data;if(!r?.length)return;const o=[...r].sort((e,t)=>e.name.localeCompare(t.name)),i={},s={},c={};for(const e of o){const t=[...e.sources||[]].sort((e,t)=>e.name.localeCompare(t.name));i[e.name]=t.map(e=>Nd(e,n)),s[e.name]=t.map(e=>Rd(e,n)),c[e.name]=Od(e,n)}a(jr.Namespace,r.map(({sources:e,...t})=>t));const{configuredSources:p,configuredFutureApps:u}=Rc.getState();Object.entries(p).forEach(([e,t])=>{s[e]&&t.forEach(t=>{const r=s[e].findIndex(e=>e.name===t.name&&e.kind===t.kind);-1!==r&&(s[e][r]={...s[e][r],selected:t.selected,currentStreamName:t.currentStreamName})})}),Object.entries(u).forEach(([e,t])=>{c[e]&&(c[e]=t)}),d(i),x(s),f(c)})()},[n]),{loading:s,availableSources:c,filteredNamespacesAndSources:A,getApiSourcesPayload:()=>{const e={};return Object.entries(y).forEach(([t,r])=>{r.forEach(r=>{const o=c[t]?.find(e=>e.name===r.name&&e.kind===r.kind);o?.selected!==r.selected&&(e[t]||(e[t]=[]),e[t].push(r))})}),e},getApiFutureAppsPayload:()=>{const e={};return Object.entries(g).forEach(([t,r])=>{const o=i?.find(e=>e.name===t);(r.selected&&!o?.dataStreamNames?.includes(n)||!r.selected&&o?.dataStreamNames?.includes(n))&&(e[t]=r)}),e},selectedNamespace:h,onSelectNamespace:(e,t)=>{if(i.find(t=>t.name===e)){const r="boolean"==typeof t;m(t=>t!==e||r?e:""),r&&(x(r=>({...r,[e]:(r[e]||[]).map(e=>t&&o(e.kind)?e:{...e,selected:t,currentStreamName:n})})),u(!1))}},selectedAllNamespaces:p,onSelectAllNamespaces:e=>{u(e),x(t=>{const r={};for(const[i,a]of Object.entries(t))r[i]=a.map(t=>e&&o(t.kind)?t:{...t,selected:e,currentStreamName:n});return r})},selectedSources:y,onSelectSource:(e,t)=>{const r=t||h;if(!r)return;if(o(e.kind))return;const i=[...y[r]||[]],a=i.findIndex(({name:t,kind:r})=>t===e.name&&r===e.kind);if(-1!==a){const e={...i[a],selected:!i[a].selected,currentStreamName:n};i[a]=e}else i.push({...e,selected:!0,currentStreamName:n});x(e=>({...e,[r]:i})),u(!1)},selectedFutureApps:g,onSelectFutureApps:(e,t)=>{const r=t||h;if(!r)return;const o=i.find(e=>e.name===t);o&&f(t=>({...t,[r]:Od(o,n,e)}))},searchText:b,setSearchText:v,searchBy:$,setSearchBy:w,showSelectedOnly:S,setShowSelectedOnly:k,showRunningOnly:C,setShowRunningOnly:E}};try{Qt.addDefaultLocale(rr)}catch(e){}const Fd=()=>{const e=Gt(new Qt(rr.locale));return{formatTimeAgo:Vt(t=>{try{return"string"==typeof t&&(t=t.replace("t","T").replace("z","Z")),e.current.format(new Date(t))}catch(e){return"-"}},[])}},Pd=o.div`
478
478
  position: fixed;
479
479
  top: 50%;
480
480
  left: 50%;
@@ -484,28 +484,28 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
484
484
  background: ${({theme:e})=>e.colors.translucent_bg};
485
485
  border: ${({theme:e})=>`1px solid ${e.colors.border}`};
486
486
  border-radius: 40px;
487
- box-shadow: ${({theme:e})=>{const t=e.colors.primary+bl["010"];return`0px 1px 1px 0px ${t}, 0px 2px 2px 0px ${t}, 0px 5px 5px 0px ${t}, 0px 10px 10px 0px ${t}, 0px 0px 8px 0px ${t}`}};
488
- animation-name: ${$l.in.center};
489
- `,yc=o.div`
487
+ box-shadow: ${({theme:e})=>{const t=e.colors.primary+Mc["010"];return`0px 1px 1px 0px ${t}, 0px 2px 2px 0px ${t}, 0px 5px 5px 0px ${t}, 0px 10px 10px 0px ${t}, 0px 0px 8px 0px ${t}`}};
488
+ animation-name: ${Uc.in.center};
489
+ `,Ld=o.div`
490
490
  display: flex;
491
491
  justify-content: space-between;
492
492
  align-items: center;
493
493
  height: 80px;
494
494
  border-bottom: 1px solid ${({theme:e})=>e.colors.border};
495
495
  padding: 0 24px;
496
- `,xc=o.div`
496
+ `,zd=o.div`
497
497
  cursor: pointer;
498
498
  display: flex;
499
499
  align-items: center;
500
500
  gap: 8px;
501
- `,bc=o.div`
501
+ `,Md=o.div`
502
502
  display: flex;
503
503
  align-items: center;
504
504
  gap: 8px;
505
- `,vc=o(Pn)`
505
+ `,Bd=o(Pn)`
506
506
  min-width: 350px;
507
507
  min-height: 150px;
508
- `,$c=o.div`
508
+ `,Ud=o.div`
509
509
  position: absolute;
510
510
  left: 50%;
511
511
  transform: translateX(-50%);
@@ -514,24 +514,24 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
514
514
  justify-content: center;
515
515
  width: 100%;
516
516
  pointer-events: none;
517
- `,wc=o(Di)`
517
+ `,jd=o(Di)`
518
518
  text-transform: uppercase;
519
519
  font-family: ${({theme:e})=>e.font_family.secondary};
520
520
  pointer-events: auto;
521
- `,Sc=o(Di)`
521
+ `,Wd=o(Di)`
522
522
  text-transform: uppercase;
523
523
  font-weight: 500;
524
524
  font-size: 14px;
525
525
  font-family: ${({theme:e})=>e.font_family.secondary};
526
526
  text-decoration: underline;
527
527
  cursor: pointer;
528
- `,kc=({isOpen:o,noOverlay:n,header:i,actionComponent:a,onClose:s,children:l,closeOnEscape:c=!0})=>(ql({key:"Escape",active:o&&c},()=>s()),Pl(o),o?dr.createPortal(t(r,{children:[e(zn,{hidden:!o,onClick:s,style:{opacity:n?0:1}}),t(fc,{"data-id":"modal"+(i?`-${i.title.replaceAll(" ","-")}`:""),children:[i&&t(yc,{children:[t(xc,{onClick:s,children:[e(xt,{}),e(Sc,{children:"Cancel"})]}),e($c,{children:e(wc,{children:i.title})}),e(bc,{children:a})]}),e(vc,{children:l})]})]}),document.body):null),Cc=o.div`
528
+ `,Hd=({isOpen:o,noOverlay:n,header:i,actionComponent:a,onClose:s,children:l,closeOnEscape:c=!0})=>(gd({key:"Escape",active:o&&c},()=>s()),rd(o),o?dr.createPortal(t(r,{children:[e(zn,{hidden:!o,onClick:s,style:{opacity:n?0:1}}),t(Pd,{"data-id":"modal"+(i?`-${i.title.replaceAll(" ","-")}`:""),children:[i&&t(Ld,{children:[t(zd,{onClick:s,children:[e(xt,{}),e(Wd,{children:"Cancel"})]}),e(Ud,{children:e(jd,{children:i.title})}),e(Md,{children:a})]}),e(Bd,{children:l})]})]}),document.body):null),Xd=o.div`
529
529
  width: ${({$orientation:e,$thickness:t,$length:r})=>"vertical"===e?`${t}px`:r||"100%"};
530
530
  height: ${({$orientation:e,$thickness:t,$length:r})=>"horizontal"===e?`${t}px`:r||"100%"};
531
531
  margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
532
- background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+bl["050"]};
532
+ background-color: ${({$type:e,theme:t})=>(e?t.text[e]:t.colors.border)+Mc["050"]};
533
533
  opacity: ${({$opacity:e})=>e||1};
534
- `,Ec=({orientation:t="horizontal",type:r,thickness:o=1,length:n,margin:i,opacity:a})=>e(Cc,{$orientation:t,$type:r,$thickness:o,$length:n,$margin:i,$opacity:a}),Ac=o.div`
534
+ `,Gd=({orientation:t="horizontal",type:r,thickness:o=1,length:n,margin:i,opacity:a})=>e(Xd,{$orientation:t,$type:r,$thickness:o,$length:n,$margin:i,$opacity:a}),Vd=o.div`
535
535
  /* Portal: viewport coords (usePopup positionMode viewport). Non-portal: offset-parent coords, absolute. */
536
536
  position: ${({$asPortal:e})=>e?"fixed":"absolute"};
537
537
  ${({$top:e})=>void 0!==e&&`top: ${e}px;`}
@@ -547,15 +547,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
547
547
  width: ${({$width:e})=>void 0!==e?e:"unset"};
548
548
 
549
549
  ${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
550
- `,Dc=o.div`
550
+ `,Kd=o.div`
551
551
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
552
552
  border-bottom: 1px solid ${({theme:e})=>e.colors.border};
553
- `,Tc=o.div`
553
+ `,qd=o.div`
554
554
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
555
- `,Ic=o.div`
555
+ `,Jd=o.div`
556
556
  padding: ${({$padding:e})=>void 0!==e?e:"12px"};
557
557
  border-top: 1px solid ${({theme:e})=>e.colors.border};
558
- `,Nc=Ut(({isOpen:r,asPortal:o,...n},i)=>{const a=Xt(()=>{const{children:r,top:a,bottom:s,left:l,right:c,borderRadius:d,padding:p,maxWidth:u,width:h,header:m,footer:g,withPointerEvents:f,...y}=n;return t(Ac,{ref:i,$top:a,$bottom:s,$left:l,$right:c,$borderRadius:d,$padding:p,$maxWidth:u,$width:h,$asPortal:o,$withPointerEvents:f,...y,children:[m&&e(Dc,{$padding:p,children:m}),e(Tc,{$padding:p,children:r}),g&&e(Ic,{$padding:p,children:g})]})},[i,n,o]);return r?o?dr.createPortal(a,document.body):a:null});Nc.displayName=Nc.name;const Rc=o.div`
558
+ `,Yd=Ut(({isOpen:r,asPortal:o,...n},i)=>{const a=Xt(()=>{const{children:r,top:a,bottom:s,left:l,right:c,borderRadius:d,padding:p,maxWidth:u,width:h,header:m,footer:g,withPointerEvents:f,...y}=n;return t(Vd,{ref:i,$top:a,$bottom:s,$left:l,$right:c,$borderRadius:d,$padding:p,$maxWidth:u,$width:h,$asPortal:o,$withPointerEvents:f,...y,children:[m&&e(Kd,{$padding:p,children:m}),e(qd,{$padding:p,children:r}),g&&e(Jd,{$padding:p,children:g})]})},[i,n,o]);return r?o?dr.createPortal(a,document.body):a:null});Yd.displayName=Yd.name;const Qd=o.div`
559
559
  width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
560
560
  position: relative;
561
561
  display: flex;
@@ -569,13 +569,13 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
569
569
  text-overflow: ellipsis;
570
570
  white-space: nowrap;
571
571
  `}
572
- `,Oc=o.div`
572
+ `,Zd=o.div`
573
573
  display: flex;
574
574
  flex-direction: column;
575
575
  align-items: flex-start;
576
576
  gap: 8px;
577
577
  width: 100%;
578
- `,_c=o.div`
578
+ `,ep=o.div`
579
579
  display: flex;
580
580
  width: 100%;
581
581
  flex-shrink: 0;
@@ -585,7 +585,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
585
585
  ${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
586
586
  ${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
587
587
  ${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
588
- `,Fc=o.div`
588
+ `,tp=o.div`
589
589
  width: 0;
590
590
  height: 0;
591
591
  border-style: solid;
@@ -594,18 +594,18 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
594
594
  flex-shrink: 0;
595
595
 
596
596
  ${({$pointsUp:e,theme:t})=>e?`\n border-bottom: 8px solid ${t.v2.colors.black[500]};\n border-top-width: 0;\n `:`\n border-top: 8px solid ${t.v2.colors.black[500]};\n border-bottom-width: 0;\n `}
597
- `,Pc=o.div`
597
+ `,rp=o.div`
598
598
  display: flex;
599
599
  flex-direction: column;
600
600
  align-items: stretch;
601
601
  min-width: 0;
602
- `,Lc=o.div`
602
+ `,op=o.div`
603
603
  background-color: ${({theme:e})=>e.v2.colors.black[500]};
604
604
  border-radius: 4px;
605
605
  padding: 8px;
606
606
  box-sizing: border-box;
607
607
  min-width: 0;
608
- `,zc=({withIcon:o,titleIcon:n,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,keepAlive:p=!1,ellipsis:u=!1})=>{const h=i(),{popupRef:m,popupOpen:g,setPopupOpen:f,popupPosition:y,arrowPlacement:x,handlePosition:b}=Zl({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(s?.length||0),300)}),v=Xt(()=>!!Ci(s||"")?.length,[s]),$=e=>{const{type:t,clientX:r,clientY:o}=e;v?b(y.left||r,y.top||o):b(r,o),f("mouseleave"!==t)};return s||p?t(Rc,{$fullWidth:d,$ellipsis:u,$hasText:!!s,onMouseEnter:$,onMouseMove:$,onMouseLeave:$,children:[c,o&&e(Ye,{fill:h.v2.colors.white[500]}),e(Nc,{ref:m,isOpen:g&&!!s,top:y.top,left:y.left,asPortal:!0,withPointerEvents:v,onMouseEnter:v?$:void 0,style:{backgroundColor:"transparent",border:"none"},maxWidth:"270px",borderRadius:"0",padding:"0",children:t(Pc,{children:["top"===x.edge&&e(_c,{$align:x.align,children:e(Fc,{$pointsUp:!0})}),e(Lc,{children:t(Oc,{children:[(!!n||!!a)&&t(_n,{$gap:4,style:{alignItems:"center"},children:[n&&e(n,{size:16},"icon"),a&&e(un,{size:sn.XS,children:a},"title")]}),!!s&&e(un,{size:sn.XXXS,children:s}),!!l&&e(un,{size:sn.XXXS,color:ln.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===x.edge&&e(_c,{$align:x.align,children:e(Fc,{$pointsUp:!1})})]})})]}):e(r,{children:c})},Mc=o.button`
608
+ `,np=({withIcon:o,titleIcon:n,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,keepAlive:p=!1,ellipsis:u=!1})=>{const h=i(),{popupRef:m,popupOpen:g,setPopupOpen:f,popupPosition:y,arrowPlacement:x,handlePosition:b}=bd({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(s?.length||0),300)}),v=Xt(()=>!!Ci(s||"")?.length,[s]),$=e=>{const{type:t,clientX:r,clientY:o}=e;v?b(y.left||r,y.top||o):b(r,o),f("mouseleave"!==t)};return s||p?t(Qd,{$fullWidth:d,$ellipsis:u,$hasText:!!s,onMouseEnter:$,onMouseMove:$,onMouseLeave:$,children:[c,o&&e(Ye,{fill:h.v2.colors.white[500]}),e(Yd,{ref:m,isOpen:g&&!!s,top:y.top,left:y.left,asPortal:!0,withPointerEvents:v,onMouseEnter:v?$:void 0,style:{backgroundColor:"transparent",border:"none"},maxWidth:"270px",borderRadius:"0",padding:"0",children:t(rp,{children:["top"===x.edge&&e(ep,{$align:x.align,children:e(tp,{$pointsUp:!0})}),e(op,{children:t(Zd,{children:[(!!n||!!a)&&t(_n,{$gap:4,style:{alignItems:"center"},children:[n&&e(n,{size:16},"icon"),a&&e(un,{size:sn.XS,children:a},"title")]}),!!s&&e(un,{size:sn.XXXS,children:s}),!!l&&e(un,{size:sn.XXXS,color:ln.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===x.edge&&e(ep,{$align:x.align,children:e(tp,{$pointsUp:!1})})]})})]}):e(r,{children:c})},ip=o.button`
609
609
  position: relative;
610
610
  width: ${({$size:e})=>e}px;
611
611
  height: ${({$size:e})=>e}px;
@@ -617,9 +617,9 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
617
617
  justify-content: center;
618
618
  cursor: pointer;
619
619
  &:hover {
620
- background-color: ${({theme:e,$backgroundColor:t})=>t?t+bl["070"]:e.colors.dropdown_bg_2};
620
+ background-color: ${({theme:e,$backgroundColor:t})=>t?t+Mc["070"]:e.colors.dropdown_bg_2};
621
621
  }
622
- `,Bc=o.div`
622
+ `,ap=o.div`
623
623
  position: absolute;
624
624
  top: ${({$size:e})=>e/5}px;
625
625
  right: ${({$size:e})=>e/5}px;
@@ -634,17 +634,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
634
634
  inset: 0;
635
635
  border-radius: 100%;
636
636
  background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
637
- animation: ${Sl} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
637
+ animation: ${Wc} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
638
638
  }
639
- `,Uc=({children:r,onClick:o,tooltip:n,size:i=36,withPing:a,pingColor:s,withBorder:l,backgroundColor:c,...d})=>e(zc,{text:n,children:t(Mc,{$size:i,$withBorder:l,$backgroundColor:c,onClick:o,...d,children:[a&&e(Bc,{$size:i,$color:s}),r]})}),jc=o.div`
639
+ `,sp=({children:r,onClick:o,tooltip:n,size:i=36,withPing:a,pingColor:s,withBorder:l,backgroundColor:c,...d})=>e(np,{text:n,children:t(ip,{$size:i,$withBorder:l,$backgroundColor:c,onClick:o,...d,children:[a&&e(ap,{$size:i,$color:s}),r]})}),lp=o.div`
640
640
  position: relative;
641
641
  &.animated {
642
642
  overflow: hidden;
643
643
  padding-bottom: 1px;
644
644
  border-radius: 32px;
645
- animation: ${({$isLeaving:e})=>e?$l.out.bottom:$l.in.bottom} ${({$duration:e})=>e/10}ms forwards;
645
+ animation: ${({$isLeaving:e})=>e?Uc.out.bottom:Uc.in.bottom} ${({$duration:e})=>e/10}ms forwards;
646
646
  }
647
- `,Wc=o.div`
647
+ `,cp=o.div`
648
648
  position: absolute;
649
649
  bottom: -1px;
650
650
  left: 0;
@@ -653,8 +653,8 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
653
653
  height: 100%;
654
654
  border-radius: 32px;
655
655
  background-color: ${({$type:e,theme:t})=>t.text[e]};
656
- animation: ${wl.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
657
- `,Hc=o.div`
656
+ animation: ${jc.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
657
+ `,dp=o.div`
658
658
  display: flex;
659
659
  align-items: center;
660
660
  flex: 1;
@@ -662,20 +662,20 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
662
662
  padding: 0 12px;
663
663
  border-radius: 32px;
664
664
  background-color: ${({$type:e,theme:t})=>t.colors[e]};
665
- `,Xc=o.div`
665
+ `,pp=o.div`
666
666
  display: flex;
667
667
  align-items: center;
668
668
  margin: 0 auto 0 0;
669
669
  padding: 8px 0;
670
670
  max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
671
671
  min-height: 12px;
672
- `,Gc=o(Di)`
672
+ `,up=o(Di)`
673
673
  font-size: 14px;
674
674
  color: ${({$type:e,theme:t})=>t.text[e]};
675
- `,Vc=o(Di)`
675
+ `,hp=o(Di)`
676
676
  color: ${({$type:e,theme:t})=>t.text[e]};
677
677
  font-size: 12px;
678
- `,Kc=o(_n)``,qc=o(Di)`
678
+ `,mp=o(_n)``,gp=o(Di)`
679
679
  text-transform: uppercase;
680
680
  text-decoration: underline;
681
681
  font-size: 12px;
@@ -686,34 +686,34 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
686
686
  transform: scale(1.1);
687
687
  transition: transform 0.3s;
688
688
  }
689
- `,Jc=({type:r,icon:o,title:n,message:a,action:s,onClose:l,duration:c=5e3,overrideMaxWidth:d,style:p})=>{const u=i(),[h,m]=Wt(!1),g=Gt(null),f=Gt(null),y=e=>{l&&(m(!0),l({asSeen:e?.asSeen}))};Ht(()=>(g.current=setTimeout(()=>y({asSeen:!1}),c),()=>{g.current&&clearTimeout(g.current)}),[c]);const x=o||Vn(r,u);return t(jc,{className:l?"animated":"",$duration:c,$isLeaving:h,onMouseEnter:()=>{g.current&&clearTimeout(g.current),f.current&&(f.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(f.current){const e=f.current.offsetWidth/f.current.parentElement.offsetWidth*c;g.current=setTimeout(()=>y({asSeen:!1}),e),f.current.style.animationPlayState="running"}},children:[t(Hc,{"data-id":"toast",$type:r,style:p,children:[e(x,{fill:u.text[r]}),t(Xc,{$withAction:!!s,$overrideMaxWidth:d,children:[n&&e(Gc,{$type:r,children:n}),n&&a&&e(Ec,{orientation:"vertical",type:r}),a&&e(Vc,{$type:r,children:a})]}),(!!s||!!l)&&t(Kc,{children:[s&&e(qc,{"data-id":"toast-action",onClick:s.onClick,children:s.label}),l&&e(Uc,{"data-id":"toast-close",onClick:()=>y({asSeen:!0}),children:e(xt,{size:12})})]})]}),l&&e(Wc,{ref:f,$duration:c,$type:r})]})},Yc=o.div`
689
+ `,fp=({type:r,icon:o,title:n,message:a,action:s,onClose:l,duration:c=5e3,overrideMaxWidth:d,style:p})=>{const u=i(),[h,m]=Wt(!1),g=Gt(null),f=Gt(null),y=e=>{l&&(m(!0),l({asSeen:e?.asSeen}))};Ht(()=>(g.current=setTimeout(()=>y({asSeen:!1}),c),()=>{g.current&&clearTimeout(g.current)}),[c]);const x=o||Vn(r,u);return t(lp,{className:l?"animated":"",$duration:c,$isLeaving:h,onMouseEnter:()=>{g.current&&clearTimeout(g.current),f.current&&(f.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(f.current){const e=f.current.offsetWidth/f.current.parentElement.offsetWidth*c;g.current=setTimeout(()=>y({asSeen:!1}),e),f.current.style.animationPlayState="running"}},children:[t(dp,{"data-id":"toast",$type:r,style:p,children:[e(x,{fill:u.text[r]}),t(pp,{$withAction:!!s,$overrideMaxWidth:d,children:[n&&e(up,{$type:r,children:n}),n&&a&&e(Gd,{orientation:"vertical",type:r}),a&&e(hp,{$type:r,children:a})]}),(!!s||!!l)&&t(mp,{children:[s&&e(gp,{"data-id":"toast-action",onClick:s.onClick,children:s.label}),l&&e(sp,{"data-id":"toast-close",onClick:()=>y({asSeen:!0}),children:e(xt,{size:12})})]})]}),l&&e(cp,{ref:f,$duration:c,$type:r})]})},yp=o.div`
690
690
  padding: 24px 32px;
691
- `,Qc=o.div`
691
+ `,xp=o.div`
692
692
  padding: ${({$withNote:e})=>e?"12px 0px":"12px 0px 32px 0"};
693
- `,Zc=o(Di)`
693
+ `,bp=o(Di)`
694
694
  font-size: 20px;
695
695
  line-height: 28px;
696
- `,ed=o(Di)`
696
+ `,vp=o(Di)`
697
697
  color: ${({theme:e})=>e.text.grey};
698
698
  width: 416px;
699
699
  font-style: normal;
700
700
  font-weight: 300;
701
701
  line-height: 24px;
702
- `,td=o.div`
702
+ `,$p=o.div`
703
703
  display: flex;
704
704
  justify-content: space-between;
705
705
  gap: 12px;
706
- `,rd=o(Rl)`
706
+ `,wp=o(Qc)`
707
707
  width: 250px;
708
- `,od=o.div`
708
+ `,Sp=o.div`
709
709
  margin-bottom: 12px;
710
- `,nd=({isOpen:r,noOverlay:o,title:n="",description:i="",note:a,approveButton:s,denyButton:l,closeOnEscape:c=!0})=>{ql({key:"Enter",active:r&&c},()=>s.onClick());const d=()=>l.onClick();return e(kc,{isOpen:r,noOverlay:o,onClose:d,children:t(Yc,{children:[e(Zc,{children:n}),e(Qc,{$withNote:!!a,children:e(ed,{children:i})}),!!a&&e(od,{children:e(Jc,{type:a.type,title:a.title,message:a.message})}),t(td,{children:[e(rd,{"data-id":"approve",variant:s.variant||"primary",onClick:()=>s.onClick(),children:s.text}),e(rd,{"data-id":"deny",variant:l.variant||"secondary",onClick:d,children:l.text})]})]})})},id=({isOpen:t,noOverlay:r,name:o,onApprove:n,onDeny:i})=>e(nd,{isOpen:t,noOverlay:r,title:"Cancel"+(o?` ${o}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Gr.Warning,onClick:n},denyButton:{text:"Go Back",onClick:i}}),ad=o.div`
710
+ `,kp=({isOpen:r,noOverlay:o,title:n="",description:i="",note:a,approveButton:s,denyButton:l,closeOnEscape:c=!0})=>{gd({key:"Enter",active:r&&c},()=>s.onClick());const d=()=>l.onClick();return e(Hd,{isOpen:r,noOverlay:o,onClose:d,children:t(yp,{children:[e(bp,{children:n}),e(xp,{$withNote:!!a,children:e(vp,{children:i})}),!!a&&e(Sp,{children:e(fp,{type:a.type,title:a.title,message:a.message})}),t($p,{children:[e(wp,{"data-id":"approve",variant:s.variant||"primary",onClick:()=>s.onClick(),children:s.text}),e(wp,{"data-id":"deny",variant:l.variant||"secondary",onClick:d,children:l.text})]})]})})},Cp=({isOpen:t,noOverlay:r,name:o,onApprove:n,onDeny:i})=>e(kp,{isOpen:t,noOverlay:r,title:"Cancel"+(o?` ${o}`:""),description:"Are you sure you want to cancel?",approveButton:{text:"Confirm",variant:Gr.Warning,onClick:n},denyButton:{text:"Go Back",onClick:i}}),Ep=o.div`
711
711
  display: flex;
712
712
  align-items: center;
713
713
  gap: 8px;
714
714
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
715
715
  opacity: ${({$disabled:e})=>e?.6:1};
716
- `,sd=o.div`
716
+ `,Ap=o.div`
717
717
  width: 18px;
718
718
  height: 18px;
719
719
  border-radius: 6px;
@@ -721,15 +721,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
721
721
  display: flex;
722
722
  align-items: center;
723
723
  justify-content: center;
724
- background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:r})=>e?r.colors.majestic_blue:t?r.colors.majestic_blue_soft:r.colors.secondary+bl["020"]};
724
+ background-color: ${({$isChecked:e,$isPartiallyChecked:t,theme:r})=>e?r.colors.majestic_blue:t?r.colors.majestic_blue_soft:r.colors.secondary+Mc["020"]};
725
725
  pointer-events: ${({$disabled:e})=>e?"none":"auto"};
726
726
  transition: border 0.3s;
727
727
  &:hover {
728
728
  border: 1px solid ${({theme:e})=>e.colors.secondary};
729
729
  }
730
- `,ld=({title:r,titleColor:o,tooltip:n,value:a=!1,partiallyChecked:s=!1,onChange:l,disabled:c,style:d,errorMessage:p,allowPropagation:u=!1})=>{const h=i(),[m,g]=Wt(a);Ht(()=>g(a),[a]);return t(Fn,{children:[t(ad,{"data-id":"checkbox"+(r?`-${r}`:""),$disabled:c,onClick:e=>{c||(u||e.stopPropagation(),l?l(!!s||!m):g(e=>!!s||!e))},style:d,children:[e(sd,{$isChecked:m,$isPartiallyChecked:s,$disabled:c,children:s?e(bt,{fill:h.text.white}):m?e(ft,{fill:h.text.white}):null}),r&&e(zc,{text:n,withIcon:!0,children:e(Di,{size:12,color:o||h.text.grey,style:{maxWidth:"90%"},children:r})})]}),!!p&&e(Ni,{children:p})]})},cd=o(_n)`
730
+ `,Dp=({title:r,titleColor:o,tooltip:n,value:a=!1,partiallyChecked:s=!1,onChange:l,disabled:c,style:d,errorMessage:p,allowPropagation:u=!1})=>{const h=i(),[m,g]=Wt(a);Ht(()=>g(a),[a]);return t(Fn,{children:[t(Ep,{"data-id":"checkbox"+(r?`-${r}`:""),$disabled:c,onClick:e=>{c||(u||e.stopPropagation(),l?l(!!s||!m):g(e=>!!s||!e))},style:d,children:[e(Ap,{$isChecked:m,$isPartiallyChecked:s,$disabled:c,children:s?e(bt,{fill:h.text.white}):m?e(ft,{fill:h.text.white}):null}),r&&e(np,{text:n,withIcon:!0,children:e(Di,{size:12,color:o||h.text.grey,style:{maxWidth:"90%"},children:r})})]}),!!p&&e(Ni,{children:p})]})},Tp=o(_n)`
731
731
  gap: 0;
732
- `,dd=o.button`
732
+ `,Ip=o.button`
733
733
  padding: 4px 8px;
734
734
  background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
735
735
  border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
@@ -741,22 +741,22 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
741
741
  &:hover {
742
742
  border: 1px solid ${({theme:e})=>e.colors.secondary};
743
743
  }
744
- `,pd=({isPrettyMode:r,setIsPrettyMode:o})=>t(cd,{children:[e(dd,{$position:"left",$selected:r,onClick:()=>o(!0),children:e(vt,{})}),e(dd,{$position:"right",$selected:!r,onClick:()=>o(!1),children:e($t,{})})]}),ud=o.table`
744
+ `,Np=({isPrettyMode:r,setIsPrettyMode:o})=>t(Tp,{children:[e(Ip,{$position:"left",$selected:r,onClick:()=>o(!0),children:e(vt,{})}),e(Ip,{$position:"right",$selected:!r,onClick:()=>o(!1),children:e($t,{})})]}),Rp=o.table`
745
745
  border-collapse: collapse;
746
746
  font-family: ${({theme:e})=>e.font_family.primary};
747
- `,hd=o.tbody``,md=o.tr`
747
+ `,Op=o.tbody``,_p=o.tr`
748
748
  td:first-child {
749
749
  padding-left: 0 !important;
750
750
  }
751
751
  td:last-child {
752
752
  padding-right: 0 !important;
753
753
  }
754
- `,gd=o.td`
754
+ `,Fp=o.td`
755
755
  vertical-align: top;
756
756
  padding: 4px 6px;
757
- `,fd=o(Di)`
757
+ `,Pp=o(Di)`
758
758
  white-space: nowrap;
759
- `,yd=o.span`
759
+ `,Lp=o.span`
760
760
  white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
761
761
  overflow-wrap: break-word;
762
762
  word-break: break-word;
@@ -764,56 +764,56 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
764
764
  /* Fallback for older browsers */
765
765
  -ms-word-break: break-all;
766
766
  font-size: 12px;
767
- `,xd=({language:t,code:r,theme:o,flatten:n,pretty:a})=>{const{darkMode:s}=i(),l=o?hr[o]:s?hr.palenight:hr.vsLight;let c="";if("json"===t){const e=ei(r,{}),t=bi(e);c=vi(n?Io(t):t)}else c=r;return a&&"json"===t?e(bd,{darkMode:s,str:c}):e(ur,{theme:l||(s?hr.palenight:hr.vsLight),language:t,code:c,children:({getLineProps:t,getTokenProps:r,tokens:o})=>e("pre",{children:o.map((o,n)=>e("div",{...t({line:o}),children:o.map((t,o)=>e(yd,{...r({token:t})},`line-${n}-token-${o}`))},`line-${n}`))})})},bd=({darkMode:r,str:o})=>{const n=i(),a=(r,o)=>{const i=new Array(r).fill(r=>t(md,{...r,children:[e(gd,{}),e(gd,{})]}));return e(jt,{children:i.map((t,r)=>e(t,{style:0===r?{borderBottom:`1px solid ${n.colors.border}`}:{}},`empty-row-${o}-${r}`))})};return e(ur,{theme:r?hr.palenight:hr.vsLight,language:"json",code:o,children:({getLineProps:r,getTokenProps:o,tokens:i})=>e(ud,{children:e(hd,{children:i.map((i,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const r=[...e],o=["property","string"].includes(r[0])?t.replace(/"/g,""):t;return"string"===r[0]&&(["true","false"].includes(o.split("@")[0])&&(r[0]="boolean"),o.split("@")[0].match(/^[0-9]+$/)&&(r[0]="number")),{types:r,content:o}})})(i),c=r({line:l});return 1===l.length&&"property"===l[0].types[0]?t(jt,{children:[a(2,s),t(md,{...c,children:[e(gd,{children:e(fd,{children:l[0].content})}),e(gd,{})]})]},`line-${s}`):2===l.length?e(md,{...c,children:l.map((r,i)=>{const{text:a,components:l}=((t,r)=>{const[o,...n]=t.split("@");return{text:o,components:n?.map((t,o)=>{if(!t.includes("="))return null;const[n,i]=t.split("=");switch(n){case"tooltip":return e(zc,{withIcon:!0,text:i},`${n}-${i}-${o}`);case"status":if("none"===i)return e("div",{style:{width:16,height:16}},`${n}-${i}-${o}`);let t=Vn(i,r);return t||(t=Vn(Gr.Warning,r)),e(t,{},`${n}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(r.content,n),c=0===i;return e(gd,{children:t(_n,{children:[e(_n,{children:l}),e(yd,{$noWrap:c,...o({token:r}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},vd={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function $d(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);const o=(e.match(/[^0-9]*$/)||"").toString();return vd[o]?{value:t,unit:o}:{value:t,unit:"px"}}function wd(e){const t=$d(e);return`${t.value}${t.unit}`}const Sd=((e,t,r)=>{const o=`react-spinners-${e}-${r}`;if("undefined"==typeof window||!window.document)return o;const n=document.createElement("style");document.head.appendChild(n);const i=n.sheet,a=`\n @keyframes ${o} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),o})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),kd=({loading:r=!0,color:o,scale:n=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),p=o||d.text.secondary;if(!r)return null;const{value:u}=$d(2),h=u+4.2,m=h/2+h/5.5,g=4*h*n,f={position:"relative",width:`${g}px`,height:`${g}px`,scale:n,...l,...s},y=(e,t)=>({position:"absolute",width:wd(1.5),height:wd(4),borderRadius:wd(2),backgroundColor:p,transition:"2s",animationFillMode:"both",animation:`${Sd} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return t("span",{style:f,...c,children:[e("span",{style:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...y(2,-45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...y(4,45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...y(6,-45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${-1*m}px)`}}),e("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...y(8,45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${-1*m}px)`}})]})},Cd=o.div`
767
+ `,zp=({language:t,code:r,theme:o,flatten:n,pretty:a})=>{const{darkMode:s}=i(),l=o?hr[o]:s?hr.palenight:hr.vsLight;let c="";if("json"===t){const e=ei(r,{}),t=bi(e);c=vi(n?Io(t):t)}else c=r;return a&&"json"===t?e(Mp,{darkMode:s,str:c}):e(ur,{theme:l||(s?hr.palenight:hr.vsLight),language:t,code:c,children:({getLineProps:t,getTokenProps:r,tokens:o})=>e("pre",{children:o.map((o,n)=>e("div",{...t({line:o}),children:o.map((t,o)=>e(Lp,{...r({token:t})},`line-${n}-token-${o}`))},`line-${n}`))})})},Mp=({darkMode:r,str:o})=>{const n=i(),a=(r,o)=>{const i=new Array(r).fill(r=>t(_p,{...r,children:[e(Fp,{}),e(Fp,{})]}));return e(jt,{children:i.map((t,r)=>e(t,{style:0===r?{borderBottom:`1px solid ${n.colors.border}`}:{}},`empty-row-${o}-${r}`))})};return e(ur,{theme:r?hr.palenight:hr.vsLight,language:"json",code:o,children:({getLineProps:r,getTokenProps:o,tokens:i})=>e(Rp,{children:e(Op,{children:i.map((i,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const r=[...e],o=["property","string"].includes(r[0])?t.replace(/"/g,""):t;return"string"===r[0]&&(["true","false"].includes(o.split("@")[0])&&(r[0]="boolean"),o.split("@")[0].match(/^[0-9]+$/)&&(r[0]="number")),{types:r,content:o}})})(i),c=r({line:l});return 1===l.length&&"property"===l[0].types[0]?t(jt,{children:[a(2,s),t(_p,{...c,children:[e(Fp,{children:e(Pp,{children:l[0].content})}),e(Fp,{})]})]},`line-${s}`):2===l.length?e(_p,{...c,children:l.map((r,i)=>{const{text:a,components:l}=((t,r)=>{const[o,...n]=t.split("@");return{text:o,components:n?.map((t,o)=>{if(!t.includes("="))return null;const[n,i]=t.split("=");switch(n){case"tooltip":return e(np,{withIcon:!0,text:i},`${n}-${i}-${o}`);case"status":if("none"===i)return e("div",{style:{width:16,height:16}},`${n}-${i}-${o}`);let t=Vn(i,r);return t||(t=Vn(Gr.Warning,r)),e(t,{},`${n}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(r.content,n),c=0===i;return e(Fp,{children:t(_n,{children:[e(_n,{children:l}),e(Lp,{$noWrap:c,...o({token:r}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},Bp={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function Up(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);const o=(e.match(/[^0-9]*$/)||"").toString();return Bp[o]?{value:t,unit:o}:{value:t,unit:"px"}}function jp(e){const t=Up(e);return`${t.value}${t.unit}`}const Wp=((e,t,r)=>{const o=`react-spinners-${e}-${r}`;if("undefined"==typeof window||!window.document)return o;const n=document.createElement("style");document.head.appendChild(n);const i=n.sheet,a=`\n @keyframes ${o} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),o})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),Hp=({loading:r=!0,color:o,scale:n=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),p=o||d.text.secondary;if(!r)return null;const{value:u}=Up(2),h=u+4.2,m=h/2+h/5.5,g=4*h*n,f={position:"relative",width:`${g}px`,height:`${g}px`,scale:n,...l,...s},y=(e,t)=>({position:"absolute",width:jp(1.5),height:jp(4),borderRadius:jp(2),backgroundColor:p,transition:"2s",animationFillMode:"both",animation:`${Wp} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return t("span",{style:f,...c,children:[e("span",{style:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...y(2,-45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...y(4,45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${m}px)`}}),e("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...y(6,-45),top:`calc(50% + ${-1*m}px)`,left:`calc(50% + ${-1*m}px)`}}),e("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...y(8,45),top:`calc(50% + ${m}px)`,left:`calc(50% + ${-1*m}px)`}})]})},Xp=o.div`
768
768
  margin: ${({$align:e})=>"right"===e?"auto 6px auto auto":"left"===e?"auto auto auto 6px":"auto"};
769
769
  display: flex;
770
770
  align-items: center;
771
771
  justify-content: center;
772
- `,Ed=({extend:t,size:r=14,align:o="center"})=>e(Cd,{$align:o,children:e(wt,{size:r,rotate:t?180:0})}),Ad=o.div`
772
+ `,Gp=({extend:t,size:r=14,align:o="center"})=>e(Xp,{$align:o,children:e(wt,{size:r,rotate:t?180:0})}),Vp=o.div`
773
773
  border-radius: 24px;
774
- background-color: ${({theme:e,$status:t})=>t===Gr.Error?e.text.error+bl["010"]:t===Gr.Warning?e.text.warning+bl["010"]:e.colors.secondary+bl["005"]};
774
+ background-color: ${({theme:e,$status:t})=>t===Gr.Error?e.text.error+Mc["010"]:t===Gr.Warning?e.text.warning+Mc["010"]:e.colors.secondary+Mc["005"]};
775
775
  &:hover {
776
- background-color: ${({theme:e,$status:t})=>t===Gr.Error?e.text.error+bl["020"]:t===Gr.Warning?e.text.warning+bl["020"]:e.colors.secondary+bl["010"]};
776
+ background-color: ${({theme:e,$status:t})=>t===Gr.Error?e.text.error+Mc["020"]:t===Gr.Warning?e.text.warning+Mc["020"]:e.colors.secondary+Mc["010"]};
777
777
  }
778
778
  cursor: pointer;
779
779
  transition: background 0.3s;
780
- `,Dd=o.div`
780
+ `,Kp=o.div`
781
781
  display: flex;
782
782
  align-items: center;
783
783
  gap: 12px;
784
784
  padding: 12px 18px;
785
- `,Td=o.div`
785
+ `,qp=o.div`
786
786
  display: flex;
787
787
  flex-direction: column;
788
788
  gap: 8px;
789
789
  padding: 6px 18px 12px 18px;
790
- `,Id=o.div`
790
+ `,Jp=o.div`
791
791
  display: flex;
792
792
  align-items: center;
793
793
  gap: 12px;
794
- `,Nd=o(Di)`
794
+ `,Yp=o(Di)`
795
795
  white-space: nowrap;
796
- `,Rd=o(Fn)`
796
+ `,Qp=o(Fn)`
797
797
  width: 16px;
798
- `,Od=({conditions:r,headerLabelError:o="Something Failed",headerLabelWarning:n="Something isn't right",headerLabelSuccess:a="Everything Successful"})=>{const s=i(),[l,c]=Wt(!1),d=Xt(()=>pi(r),[r]),{errors:p,hasErrors:u,warnings:h,hasWarnings:m,hasDisableds:g,hasLoadings:f}=Xt(()=>Fo(d),[d]);Ht(()=>{c(u||m||g)},[u,m,g]);const y=(!d.length||f)&&!u&&!m&&!g,x=u?Gr.Error:m?Gr.Warning:g?Gr.Info:Gr.Success,b=Vn(x,s),v=u?o:m||g?n:y?"Loading...":a,$=u?s.text.error:m?s.text.warning:s.text.info,w=`(${u?p.length:m?h.length:d.length}/${d.length})`,S=u?s.text.error_secondary:m?s.text.warning_secondary:s.text.info_secondary,k=Vt(()=>c(e=>!e),[]);return t(Ad,{onClick:k,$status:x,children:[t(Dd,{children:[e(y?kd:b,{}),e(Di,{color:$,size:14,children:v}),e(Di,{color:S,size:12,family:"secondary",children:w}),e(Ed,{extend:l,align:"right"})]}),l&&e(Td,{children:d.map(({status:r,type:o,reason:n,message:i},a)=>{const l=r===Kr.Loading?()=>e(kd,{scale:.8}):r===Kr.Disabled?Vn(Gr.Info,s):Vn(r,s),c=r===Kr.Disabled?s.text.info:r===Gr.Error?s.text.error:r===Gr.Warning?s.text.warning:s.text.info,d=r===Kr.Disabled?s.text.info_secondary:r===Gr.Error?s.text.error_secondary:r===Gr.Warning?s.text.warning_secondary:s.text.info_secondary;return t(Id,{children:[e(Rd,{children:e(l,{})}),t(Di,{color:c,size:12,children:[e(Nd,{color:d,size:12,weight:700,children:o}),i||n]})]},`condition-${a}`)})})]})},_d=o.div`
798
+ `,Zp=({conditions:r,headerLabelError:o="Something Failed",headerLabelWarning:n="Something isn't right",headerLabelSuccess:a="Everything Successful"})=>{const s=i(),[l,c]=Wt(!1),d=Xt(()=>pi(r),[r]),{errors:p,hasErrors:u,warnings:h,hasWarnings:m,hasDisableds:g,hasLoadings:f}=Xt(()=>Fo(d),[d]);Ht(()=>{c(u||m||g)},[u,m,g]);const y=(!d.length||f)&&!u&&!m&&!g,x=u?Gr.Error:m?Gr.Warning:g?Gr.Info:Gr.Success,b=Vn(x,s),v=u?o:m||g?n:y?"Loading...":a,$=u?s.text.error:m?s.text.warning:s.text.info,w=`(${u?p.length:m?h.length:d.length}/${d.length})`,S=u?s.text.error_secondary:m?s.text.warning_secondary:s.text.info_secondary,k=Vt(()=>c(e=>!e),[]);return t(Vp,{onClick:k,$status:x,children:[t(Kp,{children:[e(y?Hp:b,{}),e(Di,{color:$,size:14,children:v}),e(Di,{color:S,size:12,family:"secondary",children:w}),e(Gp,{extend:l,align:"right"})]}),l&&e(qp,{children:d.map(({status:r,type:o,reason:n,message:i},a)=>{const l=r===Kr.Loading?()=>e(Hp,{scale:.8}):r===Kr.Disabled?Vn(Gr.Info,s):Vn(r,s),c=r===Kr.Disabled?s.text.info:r===Gr.Error?s.text.error:r===Gr.Warning?s.text.warning:s.text.info,d=r===Kr.Disabled?s.text.info_secondary:r===Gr.Error?s.text.error_secondary:r===Gr.Warning?s.text.warning_secondary:s.text.info_secondary;return t(Jp,{children:[e(Qp,{children:e(l,{})}),t(Di,{color:c,size:12,children:[e(Yp,{color:d,size:12,weight:700,children:o}),i||n]})]},`condition-${a}`)})})]})},eu=o.div`
799
799
  display: flex;
800
800
  align-items: center;
801
801
  gap: ${({$size:e})=>e/3}px;
802
802
  padding: ${({$size:e,$withBorder:t,$withBackground:r})=>t||r?`${e/(t?3:2)}px ${e/(t?1.5:1)}px`:"0"};
803
803
  width: ${({$width:e})=>e||"fit-content"};
804
804
  border-radius: 360px;
805
- border: ${({$withBorder:e,$status:t,theme:r})=>e?`1px solid ${r.text[t]+bl["050"]}`:"none"};
806
- background: ${({$withBackground:e,$status:t,theme:r})=>e?`linear-gradient(90deg, transparent 0%, ${r.text[t]+bl["030"]} 100%)`:"transparent"};
807
- `,Fd=o.div`
805
+ border: ${({$withBorder:e,$status:t,theme:r})=>e?`1px solid ${r.text[t]+Mc["050"]}`:"none"};
806
+ background: ${({$withBackground:e,$status:t,theme:r})=>e?`linear-gradient(90deg, transparent 0%, ${r.text[t]+Mc["030"]} 100%)`:"transparent"};
807
+ `,tu=o.div`
808
808
  display: flex;
809
809
  align-items: center;
810
- `,Pd=o.div`
810
+ `,ru=o.div`
811
811
  display: flex;
812
812
  align-items: center;
813
- `,Ld=({title:r,subtitle:o,status:n=Gr.Default,forceIcon:a,withIcon:s,withBorder:l,withBackground:c,width:d,size:p=12,family:u="secondary",nowrap:h=!1})=>{const m=i(),g=[Kr.Loading,Kr.Disabled].includes(n)?Gr.Info:n,f=a?()=>e(a,{size:p+2,fill:m.text[g]}):n===Kr.Loading?()=>e(kd,{scale:.8}):()=>Vn(g,m)?.({size:p+2});return t(_d,{$status:g,$width:d,$size:p,$withIcon:s,$withBorder:l,$withBackground:c,children:[s&&e(Fd,{children:e(f,{})}),(!!r||!!o)&&t(Pd,{children:[!!r&&e(Di,{size:p,family:u,color:m.text[g],nowrap:h,children:r}),!!r&&!!o&&e(Ec,{orientation:"vertical",length:p-2+"px",type:g}),!!o&&e(Di,{size:p-2,family:u,color:m.text[`${g}_secondary`],nowrap:h,children:o})]})]})},zd=({label:r,onClick:o,variant:n="tertiary",textProps:a,...s})=>{const l=i();return t(Rl,{onClick:o,variant:n,...s,children:[e(St,{fill:"primary"===n?l.text.primary:l.text.info}),e(Di,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?l.text.primary:void 0,...a,children:r||Do.ADD})]})},Md=o(_n)`
813
+ `,ou=({title:r,subtitle:o,status:n=Gr.Default,forceIcon:a,withIcon:s,withBorder:l,withBackground:c,width:d,size:p=12,family:u="secondary",nowrap:h=!1})=>{const m=i(),g=[Kr.Loading,Kr.Disabled].includes(n)?Gr.Info:n,f=a?()=>e(a,{size:p+2,fill:m.text[g]}):n===Kr.Loading?()=>e(Hp,{scale:.8}):()=>Vn(g,m)?.({size:p+2});return t(eu,{$status:g,$width:d,$size:p,$withIcon:s,$withBorder:l,$withBackground:c,children:[s&&e(tu,{children:e(f,{})}),(!!r||!!o)&&t(ru,{children:[!!r&&e(Di,{size:p,family:u,color:m.text[g],nowrap:h,children:r}),!!r&&!!o&&e(Gd,{orientation:"vertical",length:p-2+"px",type:g}),!!o&&e(Di,{size:p-2,family:u,color:m.text[`${g}_secondary`],nowrap:h,children:o})]})]})},nu=({label:r,onClick:o,variant:n="tertiary",textProps:a,...s})=>{const l=i();return t(Qc,{onClick:o,variant:n,...s,children:[e(St,{fill:"primary"===n?l.text.primary:l.text.info}),e(Di,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?l.text.primary:void 0,...a,children:r||Do.ADD})]})},iu=o(_n)`
814
814
  width: 100%;
815
815
  border-radius: 8px;
816
- background-color: ${({theme:e})=>e.colors.secondary+bl["010"]};
816
+ background-color: ${({theme:e})=>e.colors.secondary+Mc["010"]};
817
817
  pre {
818
818
  color: ${({theme:e})=>e.text.default};
819
819
  font-size: 12px;
@@ -821,7 +821,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
821
821
  width: 100%;
822
822
  padding-left: 12px;
823
823
  }
824
- `,Bd=({value:r,callbackCopyDone:o})=>{const{clickCopy:n,isCopied:i}=Wl();return t(Md,{children:[e("pre",{children:r}),e(Uc,{onClick:e=>{e.stopPropagation(),n(r),o?.()},tooltip:i?"Copied!":"Copy",children:e(i?ft:yt,{})})]})},Ud=({label:r,onClick:o,variant:n="tertiary",...a})=>{const s=i();return t(Rl,{onClick:o,variant:n,...a,children:[e(kt,{fill:"primary"===n?s.text.primary:s.text.info}),e(Di,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?s.text.primary:void 0,children:r||Do.EDIT})]})},jd=({onClick:t})=>e(Jc,{type:Gr.Default,icon:rt,message:Ao.QUICK_BACK_TO_SUMMARY,action:{label:Ao.GO_TO_SUMMARY,onClick:t}}),Wd=o(Di)`
824
+ `,au=({value:r,callbackCopyDone:o})=>{const{clickCopy:n,isCopied:i}=cd();return t(iu,{children:[e("pre",{children:r}),e(sp,{onClick:e=>{e.stopPropagation(),n(r),o?.()},tooltip:i?"Copied!":"Copy",children:e(i?ft:yt,{})})]})},su=({label:r,onClick:o,variant:n="tertiary",...a})=>{const s=i();return t(Qc,{onClick:o,variant:n,...a,children:[e(kt,{fill:"primary"===n?s.text.primary:s.text.info}),e(Di,{size:14,family:"secondary",decoration:"underline",color:"primary"===n?s.text.primary:void 0,children:r||Do.EDIT})]})},lu=({onClick:t})=>e(fp,{type:Gr.Default,icon:rt,message:Ao.QUICK_BACK_TO_SUMMARY,action:{label:Ao.GO_TO_SUMMARY,onClick:t}}),cu=o(Di)`
825
825
  max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
826
826
  white-space: nowrap;
827
827
  overflow-x: auto;
@@ -831,15 +831,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
831
831
  content: '';
832
832
  display: block;
833
833
  }
834
- `,Hd=({maxWidth:r,text:o,textSize:n=16,textColor:i})=>{const[a,s]=Wt(!1),l=Gt(null);return Ht(()=>{if(l.current){const{clientWidth:e}=l.current;s(e<1.05*(r-n)&&e>.95*(r-n))}},[r,n,o]),t(_n,{$gap:0,children:[o&&e(zc,{text:a?o:void 0,children:e(Wd,{ref:l,$maxWidth:r-n,size:n,color:i,children:o})}),a&&e(Wd,{$maxWidth:n,size:n,color:i,children:"..."})]})},Xd=({src:t="",alt:r="",size:o=16})=>{const[n,i]=Wt(!1);return t&&!n?e("img",{src:t,alt:r,width:o,height:o,onError:()=>i(!0)}):e(g,{size:o})},Gd=o.div`
834
+ `,du=({maxWidth:r,text:o,textSize:n=16,textColor:i})=>{const[a,s]=Wt(!1),l=Gt(null);return Ht(()=>{if(l.current){const{clientWidth:e}=l.current;s(e<1.05*(r-n)&&e>.95*(r-n))}},[r,n,o]),t(_n,{$gap:0,children:[o&&e(np,{text:a?o:void 0,children:e(cu,{ref:l,$maxWidth:r-n,size:n,color:i,children:o})}),a&&e(cu,{$maxWidth:n,size:n,color:i,children:"..."})]})},pu=({src:t="",alt:r="",size:o=16})=>{const[n,i]=Wt(!1);return t&&!n?e("img",{src:t,alt:r,width:o,height:o,onError:()=>i(!0)}):e(g,{size:o})},uu=o.div`
835
835
  display: flex;
836
836
  align-items: center;
837
837
  justify-content: center;
838
838
  width: ${({$size:e})=>e}px;
839
839
  height: ${({$size:e})=>e}px;
840
840
  border-radius: 8px;
841
- background: ${({$status:e,theme:t})=>{const r=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${r} 0%, ${r+bl["030"]} 100%)`}};
842
- `,Vd=({icon:t,src:r="",alt:o="",status:n,size:i=36})=>e(Gd,{$status:n,$size:i,children:r?e(Xd,{src:r,alt:o,size:i-12}):e(t||g,{size:i-12})}),Kd=o.div`
841
+ background: ${({$status:e,theme:t})=>{const r=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${r} 0%, ${r+Mc["030"]} 100%)`}};
842
+ `,hu=({icon:t,src:r="",alt:o="",status:n,size:i=36})=>e(uu,{$status:n,$size:i,children:r?e(pu,{src:r,alt:o,size:i-12}):e(t||g,{size:i-12})}),mu=o.div`
843
843
  position: relative;
844
844
  display: flex;
845
845
  flex-wrap: wrap;
@@ -847,7 +847,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
847
847
  justify-content: center;
848
848
  width: ${({$size:e})=>e}px;
849
849
  height: ${({$size:e})=>e}px;
850
- `,qd=o.div`
850
+ `,gu=o.div`
851
851
  position: absolute;
852
852
  top: ${({$top:e})=>e}px;
853
853
  left: ${({$left:e})=>e}px;
@@ -858,73 +858,73 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
858
858
  width: ${({$size:e})=>e}px;
859
859
  height: ${({$size:e})=>e}px;
860
860
  border-radius: 100%;
861
- border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+bl["030"]};
862
- background: ${({$status:e,theme:t})=>{const r=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${r} 0%, ${r+bl["030"]} 100%)`}};
863
- `,Jd=({icons:r=[],iconSrcs:o=[],status:n,size:a=36,id:s})=>{const l=i(),c=1===r.length||1===o.length?a-12:a/2.7;if(o.length>0)return e(Jd,{icons:o.map(t=>()=>e(Xd,{src:t,size:c})),status:n,size:a,id:s});if(1===r.length)return e(Vd,{icon:r[0],status:n,size:a});const d=e=>r.length<=2?.5*c:0===e||1===e?0:1.15*c,p=e=>0===e?0:1===e?1.15*c:1.15*c*.5;return e(Kd,{$status:n,$size:a,children:r.map((o,i)=>i>2?null:e(qd,{$status:n,$size:1.5*c,$top:d(i),$left:p(i),$zIndex:i+1,children:2===i&&r.length>3?t(Di,{family:"secondary",color:l.text.dark_grey,size:.8*c,children:["+",r.length-2]}):e(o,{size:c})},`icon-${s}-${i}`))})},Yd=Hs.map(({id:e})=>e),Qd=({monitors:r=Yd,withTooltips:o,withLabels:n,size:a=12,color:s})=>{const l=i(),c=s||l.text.grey;return e(_n,{$gap:n?a:a/2,children:r.map(r=>{const i=yr(r.toLowerCase()),s=Qo(r);return s?e(zc,{text:o?i:"",children:t(_n,{$gap:a/3,children:[e(s,{size:n?a+2:a,fill:c}),n&&e(Di,{size:a,color:c,children:i})]})},r):null})})},Zd=o.div`
861
+ border: 1px solid ${({theme:e,$status:t})=>(t?e.text[t]:e.colors.border)+Mc["030"]};
862
+ background: ${({$status:e,theme:t})=>{const r=t.colors[e||"dropdown_bg_2"];return`linear-gradient(180deg, ${r} 0%, ${r+Mc["030"]} 100%)`}};
863
+ `,fu=({icons:r=[],iconSrcs:o=[],status:n,size:a=36,id:s})=>{const l=i(),c=1===r.length||1===o.length?a-12:a/2.7;if(o.length>0)return e(fu,{icons:o.map(t=>()=>e(pu,{src:t,size:c})),status:n,size:a,id:s});if(1===r.length)return e(hu,{icon:r[0],status:n,size:a});const d=e=>r.length<=2?.5*c:0===e||1===e?0:1.15*c,p=e=>0===e?0:1===e?1.15*c:1.15*c*.5;return e(mu,{$status:n,$size:a,children:r.map((o,i)=>i>2?null:e(gu,{$status:n,$size:1.5*c,$top:d(i),$left:p(i),$zIndex:i+1,children:2===i&&r.length>3?t(Di,{family:"secondary",color:l.text.dark_grey,size:.8*c,children:["+",r.length-2]}):e(o,{size:c})},`icon-${s}-${i}`))})},yu=dc.map(({id:e})=>e),xu=({monitors:r=yu,withTooltips:o,withLabels:n,size:a=12,color:s})=>{const l=i(),c=s||l.text.grey;return e(_n,{$gap:n?a:a/2,children:r.map(r=>{const i=yr(r.toLowerCase()),s=Qo(r);return s?e(np,{text:o?i:"",children:t(_n,{$gap:a/3,children:[e(s,{size:n?a+2:a,fill:c}),n&&e(Di,{size:a,color:c,children:i})]})},r):null})})},bu=o.div`
864
864
  visibility: hidden;
865
- `,ep=o.div`
865
+ `,vu=o.div`
866
866
  display: flex;
867
867
  flex-direction: column;
868
868
  align-self: stretch;
869
869
  padding: 16px;
870
870
  width: calc(100% - 32px);
871
871
  border-radius: 16px;
872
- background-color: ${({theme:e,$status:t,$bgColor:r})=>r||(t?e.text[t]+bl["010"]:e.colors.secondary+bl["005"])};
872
+ background-color: ${({theme:e,$status:t,$bgColor:r})=>r||(t?e.text[t]+Mc["010"]:e.colors.secondary+Mc["005"])};
873
873
  opacity: ${({$faded:e})=>e?.5:1};
874
874
 
875
875
  ${({theme:e,$status:t,$bgColorHover:r,$withClick:o})=>o?n`
876
876
  &:hover {
877
877
  cursor: pointer;
878
- background-color: ${r||(t?e.text[t]+bl["020"]:e.colors.secondary+bl["010"])};
879
- ${Zd} {
878
+ background-color: ${r||(t?e.text[t]+Mc["020"]:e.colors.secondary+Mc["010"])};
879
+ ${bu} {
880
880
  visibility: visible;
881
881
  }
882
882
  }
883
- `:`\n &:hover {\n ${Zd} {\n visibility: visible;\n }\n }\n `}
884
- `,tp=o.div`
883
+ `:`\n &:hover {\n ${bu} {\n visibility: visible;\n }\n }\n `}
884
+ `,$u=o.div`
885
885
  display: flex;
886
886
  align-items: center;
887
887
  gap: 8px;
888
888
  margin-left: auto;
889
- `,rp=o(Di)`
889
+ `,wu=o(Di)`
890
890
  margin-right: 16px;
891
- `,op=o(Di)`
891
+ `,Su=o(Di)`
892
892
  font-size: 10px;
893
893
  color: ${({theme:e})=>e.text.grey};
894
- `,np=({title:r,subTitle:o,hoverText:n,onClick:a,renderActions:s,iconProps:{icon:l,icons:c,iconSrc:d,iconSrcs:p}={},visualProps:{status:u,faded:h,bgColor:m,bgColorHover:g,monitors:f,monitorsWithLabels:y,componentsUnderTitles:x}={},checkboxProps:{withCheckbox:b,isCheckboxDisabled:v,isChecked:$,isLoading:w,onCheckboxChange:S}={},extendableProps:{withExtend:k,isExtended:C,renderExtended:E}={},...A})=>{const D=i(),[T,I]=Wt(C||!1),[N,R]=Wt(0),O=Gt(null),_=Gt(null),F=Gt(null);return Ht(()=>{if(O.current){const e=O.current.clientWidth,t=_.current?.clientWidth||0;R(e-((b?125:85)+t))}},[b]),t(ep,{ref:O,$status:u,$faded:h,$bgColor:m,$bgColorHover:g,$withClick:!!a,onClick:a,...A,children:[t(_n,{$gap:8,children:[t(_n,{$gap:16,children:[w?e(kd,{}):b?e(ld,{value:$,onChange:S,disabled:v}):null,c?.length||p?.length?e(Jd,{icons:c,iconSrcs:p,status:u,id:`${r}-${o}`}):l||d?e(Vd,{icon:l,src:d,status:u}):null]}),t(Fn,{$gap:4,children:[r&&e(Hd,{maxWidth:N,text:r,textSize:14}),t(_n,{$gap:4,children:[o&&e(Hd,{maxWidth:N-(F.current?.clientWidth||0),text:o,textSize:10,textColor:D.text.grey}),f&&f.length>0&&t(_n,{$gap:4,ref:F,children:[o&&e(op,{children:"•"}),e(Qd,{monitors:f,withLabels:y,size:10})]})]}),x&&x.length>0?e(_n,{$gap:4,children:x?.map((t,r)=>e(jt,{children:t},`componentsUnderTitles-${r}`))}):null]}),t(tp,{ref:_,children:[!!n&&e(Zd,{children:e(rp,{size:14,family:"secondary",children:n})}),s&&s(),k&&t(jt,{children:[e(Ec,{orientation:"vertical",length:"16px",margin:"0 2px"}),e(Uc,{onClick:()=>I(e=>!e),children:e(Ed,{extend:T})})]})]})]}),T&&E&&t(Fn,{children:[e(Ec,{margin:"16px 0"}),E()]})]})},ip=o(_n)`
894
+ `,ku=({title:r,subTitle:o,hoverText:n,onClick:a,renderActions:s,iconProps:{icon:l,icons:c,iconSrc:d,iconSrcs:p}={},visualProps:{status:u,faded:h,bgColor:m,bgColorHover:g,monitors:f,monitorsWithLabels:y,componentsUnderTitles:x}={},checkboxProps:{withCheckbox:b,isCheckboxDisabled:v,isChecked:$,isLoading:w,onCheckboxChange:S}={},extendableProps:{withExtend:k,isExtended:C,renderExtended:E}={},...A})=>{const D=i(),[T,I]=Wt(C||!1),[N,R]=Wt(0),O=Gt(null),_=Gt(null),F=Gt(null);return Ht(()=>{if(O.current){const e=O.current.clientWidth,t=_.current?.clientWidth||0;R(e-((b?125:85)+t))}},[b]),t(vu,{ref:O,$status:u,$faded:h,$bgColor:m,$bgColorHover:g,$withClick:!!a,onClick:a,...A,children:[t(_n,{$gap:8,children:[t(_n,{$gap:16,children:[w?e(Hp,{}):b?e(Dp,{value:$,onChange:S,disabled:v}):null,c?.length||p?.length?e(fu,{icons:c,iconSrcs:p,status:u,id:`${r}-${o}`}):l||d?e(hu,{icon:l,src:d,status:u}):null]}),t(Fn,{$gap:4,children:[r&&e(du,{maxWidth:N,text:r,textSize:14}),t(_n,{$gap:4,children:[o&&e(du,{maxWidth:N-(F.current?.clientWidth||0),text:o,textSize:10,textColor:D.text.grey}),f&&f.length>0&&t(_n,{$gap:4,ref:F,children:[o&&e(Su,{children:"•"}),e(xu,{monitors:f,withLabels:y,size:10})]})]}),x&&x.length>0?e(_n,{$gap:4,children:x?.map((t,r)=>e(jt,{children:t},`componentsUnderTitles-${r}`))}):null]}),t($u,{ref:_,children:[!!n&&e(bu,{children:e(wu,{size:14,family:"secondary",children:n})}),s&&s(),k&&t(jt,{children:[e(Gd,{orientation:"vertical",length:"16px",margin:"0 2px"}),e(sp,{onClick:()=>I(e=>!e),children:e(Gp,{extend:T})})]})]})]}),T&&E&&t(Fn,{children:[e(Gd,{margin:"16px 0"}),E()]})]})},Cu=o(_n)`
895
895
  width: 100%;
896
896
  justify-content: space-between;
897
- `,ap=o(Di)`
897
+ `,Eu=o(Di)`
898
898
  font-size: 12px;
899
899
  color: ${({theme:e})=>e.text.grey};
900
- `,sp=o(Di)`
900
+ `,Au=o(Di)`
901
901
  font-size: 10px;
902
902
  color: ${({theme:e})=>e.text.darker_grey};
903
- `,lp=o.div`
903
+ `,Du=o.div`
904
904
  display: flex;
905
905
  align-items: center;
906
906
  gap: 8px;
907
907
  margin-left: auto;
908
- `,cp=o(Di)`
908
+ `,Tu=o(Di)`
909
909
  font-size: 12px;
910
910
  text-align: right;
911
- `,dp=({title:r,subTitle:o,tooltip:n,value:i})=>t(ip,{children:[e(Fn,{$gap:4,children:t(zc,{text:n||"",children:[r&&e(ap,{children:r},"title"),o&&e(sp,{children:o},"subtitle")]})}),e(lp,{children:i?.status?e(Ld,{status:"transitioning"===i.status?Kr.Loading:i.status,title:i.text||i.status,withBorder:!0,withIcon:!0}):e(cp,{children:i?.text||"-"})})]}),pp=o(Fn)`
911
+ `,Iu=({title:r,subTitle:o,tooltip:n,value:i})=>t(Cu,{children:[e(Fn,{$gap:4,children:t(np,{text:n||"",children:[r&&e(Eu,{children:r},"title"),o&&e(Au,{children:o},"subtitle")]})}),e(Du,{children:i?.status?e(ou,{status:"transitioning"===i.status?Kr.Loading:i.status,title:i.text||i.status,withBorder:!0,withIcon:!0}):e(Tu,{children:i?.text||"-"})})]}),Nu=o(Fn)`
912
912
  width: 100%;
913
- `,up=({containerName:r,actualDevices:o,started:n,ready:i,instrumentationInstances:a})=>{const s=Xt(()=>{const t=[];return n?.name&&t.push(e(Ld,{status:ai(n.value)?fi(n.value)?Gr.Success:Gr.Error:Gr.Default,title:n.name,withIcon:!0,withBorder:!0,size:8},"started")),i?.name&&t.push(e(Ld,{status:ai(i.value)?fi(i.value)?Gr.Success:Gr.Error:Gr.Default,title:i.name,withIcon:!0,withBorder:!0,size:8},"ready")),t},[n?.name,n?.value,i?.name,i?.value]);return e(np,{title:r.value,subTitle:a.length?`${a.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:s},renderActions:()=>e(Ld,{status:Gr.Info,title:"Instrumentation Device",subtitle:o.value&&"[]"!==o.value?o.value:"none",withBorder:!0}),extendableProps:{isExtended:!!a.length,renderExtended:()=>e(pp,{$gap:24,children:a.map((r,o)=>t(pp,{$gap:8,children:[e(dp,{title:`Instrumented Process #${o+1}`,subTitle:r.message?.value||"",value:{status:r.healthy.status,text:r.healthy.status===Gr.Success?"healthy":"unhealthy"}}),r.identifyingAttributes?.map(({name:t,value:r})=>e(dp,{title:t,subTitle:"",value:{text:r,status:void 0}},`describe-${t}-${r}`))]},`process-${o}`))})}})},hp=({title:r="Data not found",subTitle:o})=>{const n=i().v2.colors.grey[400];return t(Pn,{children:[t(_n,{$gap:8,children:[e(Ct,{fill:n}),e(un,{size:sn.XS,color:n,align:"center",children:r})]}),o&&e(un,{size:sn.XXS,color:n,align:"center",children:o})]})},mp=o(Fn)`
913
+ `,Ru=({containerName:r,actualDevices:o,started:n,ready:i,instrumentationInstances:a})=>{const s=Xt(()=>{const t=[];return n?.name&&t.push(e(ou,{status:ai(n.value)?fi(n.value)?Gr.Success:Gr.Error:Gr.Default,title:n.name,withIcon:!0,withBorder:!0,size:8},"started")),i?.name&&t.push(e(ou,{status:ai(i.value)?fi(i.value)?Gr.Success:Gr.Error:Gr.Default,title:i.name,withIcon:!0,withBorder:!0,size:8},"ready")),t},[n?.name,n?.value,i?.name,i?.value]);return e(ku,{title:r.value,subTitle:a.length?`${a.length} Instrumented Processes`:void 0,visualProps:{componentsUnderTitles:s},renderActions:()=>e(ou,{status:Gr.Info,title:"Instrumentation Device",subtitle:o.value&&"[]"!==o.value?o.value:"none",withBorder:!0}),extendableProps:{isExtended:!!a.length,renderExtended:()=>e(Nu,{$gap:24,children:a.map((r,o)=>t(Nu,{$gap:8,children:[e(Iu,{title:`Instrumented Process #${o+1}`,subTitle:r.message?.value||"",value:{status:r.healthy.status,text:r.healthy.status===Gr.Success?"healthy":"unhealthy"}}),r.identifyingAttributes?.map(({name:t,value:r})=>e(Iu,{title:t,subTitle:"",value:{text:r,status:void 0}},`describe-${t}-${r}`))]},`process-${o}`))})}})},Ou=({title:r="Data not found",subTitle:o})=>{const n=i().v2.colors.grey[400];return t(Pn,{children:[t(_n,{$gap:8,children:[e(Ct,{fill:n}),e(un,{size:sn.XS,color:n,align:"center",children:r})]}),o&&e(un,{size:sn.XXS,color:n,align:"center",children:o})]})},_u=o(Fn)`
914
914
  max-width: 300px;
915
915
  padding: 12px;
916
916
  border-radius: 12px;
917
917
  background-color: ${({theme:e})=>e.colors.dropdown_bg};
918
918
  justify-content: center;
919
- `,gp=Jt(({id:t,data:r})=>{const{title:o,subTitle:n}=r;return e(mp,{"data-id":t,children:e(hp,{title:o,subTitle:n})})});gp.displayName=gp.name;const fp=o.div`
919
+ `,Fu=Jt(({id:t,data:r})=>{const{title:o,subTitle:n}=r;return e(_u,{"data-id":t,children:e(Ou,{title:o,subTitle:n})})});Fu.displayName=Fu.name;const Pu=o.div`
920
920
  padding: 6px;
921
921
  border-radius: 12px;
922
922
  background-color: ${({theme:e})=>e.colors.dropdown_bg};
923
923
  cursor: pointer;
924
924
  ${({$isVirtual:e,theme:t})=>e&&`\n border: 1px dashed ${t.colors.border};\n opacity: 0.8;\n `}
925
- `,yp=o.div`
925
+ `,Lu=o.div`
926
926
  position: relative;
927
- `,xp=o.div`
927
+ `,zu=o.div`
928
928
  position: absolute;
929
929
  top: 100%;
930
930
  margin-top: 4px;
@@ -936,12 +936,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
936
936
  gap: 2px;
937
937
  width: 140px;
938
938
  text-align: center;
939
- `,bp=Jt(({id:o,data:n})=>{const{id:a,status:s,title:l,icons:c,isVirtual:d}=n,p=i(),u=d||s!==Gr.Error?null:Vn(s,p);return t(r,{children:[e(or,{type:"source",position:nr.Right,style:{visibility:"hidden"}}),e(or,{type:"target",position:nr.Left,style:{visibility:"hidden"}}),t(yp,{"data-id":o,children:[e(fp,{$isVirtual:d,children:e(Jd,{id:a,icons:c,status:d?void 0:s})}),t(xp,{children:[u&&e(u,{}),e(Di,{size:12,style:{textAlign:"center",wordBreak:"break-word",lineHeight:"1.3"},children:l})]})]})]})});bp.displayName=bp.name;const vp={duration:300,padding:.1,includeHiddenNodes:!0},$p=o.div`
939
+ `,Mu=Jt(({id:o,data:n})=>{const{id:a,status:s,title:l,icons:c,isVirtual:d}=n,p=i(),u=d||s!==Gr.Error?null:Vn(s,p);return t(r,{children:[e(or,{type:"source",position:nr.Right,style:{visibility:"hidden"}}),e(or,{type:"target",position:nr.Left,style:{visibility:"hidden"}}),t(Lu,{"data-id":o,children:[e(Pu,{$isVirtual:d,children:e(fu,{id:a,icons:c,status:d?void 0:s})}),t(zu,{children:[u&&e(u,{}),e(Di,{size:12,style:{textAlign:"center",wordBreak:"break-word",lineHeight:"1.3"},children:l})]})]})]})});Mu.displayName=Mu.name;const Bu={duration:300,padding:.1,includeHiddenNodes:!0},Uu=o.div`
940
940
  height: 100%;
941
941
  .react-flow__attribution {
942
942
  visibility: hidden;
943
943
  }
944
- `,wp=o.div`
944
+ `,ju=o.div`
945
945
  button {
946
946
  padding: 8px;
947
947
  margin: 8px;
@@ -958,17 +958,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
958
958
  transform: scale(1.4);
959
959
  }
960
960
  }
961
- `,Sp={[Yr.MapItem]:bp,[Yr.NoData]:gp},kp=({trigger:e})=>{const{fitView:t}=cr(),r=Gt(!0);return Ht(()=>{r.current?r.current=!1:e>0&&requestAnimationFrame(()=>t(vp))},[e,t]),null},Cp=({nodes:r,edges:o,onNodesChange:n,onEdgesChange:i,fitViewTrigger:a=0,zoomOnScroll:s=!1,onEdgeClick:l,onNodeMouseEnter:c,onNodeMouseLeave:d,onRefresh:p})=>{const{onClickNode:u}=Ll(),{setActiveNodeType:h,setActiveNodeId:m}=Vi();return t(ar,{zoomOnScroll:s,nodes:r,nodeTypes:Sp,edges:o,onNodeClick:u,onEdgeClick:l,onNodeMouseEnter:c,onNodeMouseLeave:d,onNodesChange:n,onEdgesChange:i,onBlur:()=>{h(null),m(null)},children:[e(kp,{trigger:a}),e(wp,{children:e(sr,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:vp,children:p&&e(lr,{onClick:p,children:e(Et,{size:20})})})})]})},Ep=t=>e($p,{children:e(ir,{children:e(Cp,{...t})})}),Ap={type:"",disabled:!1,name:"",notes:"",signals:[],fields:{}},Dp=qt(null),Tp="All row fields are required",Ip="At least one row is required",Np=Eo.LATENCY_HTTP_ROUTE,Rp=e=>"string"==typeof e?!e.trim():oi(e),Op=(e,t)=>!!e&&t.every(t=>{const r=e[t];return Array.isArray(r)?r.length>0:!Rp(r)}),_p=({children:t})=>{const[r,o]=Wt(null),[n,i]=Wt(void 0),a=Ol(Ap),s=Vt(e=>{a.resetFormData(),a.handleErrorChange(void 0,void 0,{}),i(void 0),e?.type&&a.handleFormChange("type",e.type),o(e)},[]),l=Vt(e=>{var t;a.resetFormData((({type:e,name:t,notes:r,disabled:o,signals:n,fields:i})=>({type:e,name:t||"",notes:r||"",disabled:!!o,signals:n??[],fields:i??{}}))(e)),a.handleErrorChange(void 0,void 0,{}),i(void 0),o((t=e.type,Ki.find(e=>e.type===t)??qi.find(e=>e.type===t)??null))},[]),c=Vt(()=>{if(!r)return{errorMessage:"No action type selected",preparedFormData:$r(Ap)};const e=(e=>{const t=$r(e),r=t.fields||{},o=r[Tr.UrlTemplatizationRulesGroups];o?.length&&(r[Tr.UrlTemplatizationRulesGroups]=o.map(e=>({...e,templatizationRules:(e.templatizationRules||[]).filter(e=>!!e.template?.trim())})));const n=r[Tr.AttributeNamesToDelete];n?.length&&(r[Tr.AttributeNamesToDelete]=n.filter(e=>!!e?.trim()));const i=r[Tr.Renames];return i&&(r[Tr.Renames]=Object.fromEntries(Object.entries(i).filter(([e,t])=>!!e?.trim()&&!!t?.trim()))),t.fields=r,t})(a.formData),t={};oi(e.signals)&&(t.signals=Eo.FIELD_IS_REQUIRED),r.type&&Object.assign(t,((e,t,r)=>{const o={},n=t.fields||{},i=r.fields||{};switch(e){case Dr.K8sAttributes:{const e=!(n[Tr.CollectContainerAttributes]||n[Tr.CollectReplicaSetAttributes]||n[Tr.CollectWorkloadId]||n[Tr.CollectClusterId]),t=!n[Tr.LabelsAttributes]?.length,r=!n[Tr.AnnotationsAttributes]?.length;e&&t&&r&&(o[Tr.CollectContainerAttributes]="Enable at least one option or add a label/annotation row");const i=n[Tr.LabelsAttributes];i?.some(e=>!Op(e,["labelKey","attributeKey","fromSources"]))&&(o[Tr.LabelsAttributes]=Tp);const a=n[Tr.AnnotationsAttributes];a?.some(e=>!Op(e,["annotationKey","attributeKey","fromSources"]))&&(o[Tr.AnnotationsAttributes]=Tp);break}case Dr.AddClusterInfo:{const e=n[Tr.ClusterAttributes];e?.length?e.some(e=>!Op(e,["attributeName","attributeStringValue"]))&&(o[Tr.ClusterAttributes]=Tp):o[Tr.ClusterAttributes]=Ip;break}case Dr.DeleteAttributes:{const e=i[Tr.AttributeNamesToDelete]||[],t=n[Tr.AttributeNamesToDelete]||[];t.length?e.length>t.length&&(o[Tr.AttributeNamesToDelete]=Tp):o[Tr.AttributeNamesToDelete]=e.length?Tp:Ip;break}case Dr.RenameAttributes:{const e=Object.entries(i[Tr.Renames]||{}),t=Object.entries(n[Tr.Renames]||{}),r=e.some(([e,t])=>!e?.trim()||!t?.trim());t.length?r&&(o[Tr.Renames]=Tp):o[Tr.Renames]=e.length?Tp:Ip;break}case Dr.PiiMasking:{const e=n[Tr.PiiCategories];e?.length||(o[Tr.PiiCategories]="Select at least one attribute to mask");break}case Dr.ErrorSampler:Rp(n[Tr.FallbackSamplingRatio])&&(o[Tr.FallbackSamplingRatio]=Eo.FIELD_IS_REQUIRED);break;case Dr.ProbabilisticSampler:Rp(n[Tr.SamplingPercentage])&&(o[Tr.SamplingPercentage]=Eo.FIELD_IS_REQUIRED);break;case Dr.LatencySampler:{const e=n[Tr.EndpointsFilters];e?.length?e.some(e=>!Op(e,["serviceName","httpRoute","minimumLatencyThreshold","fallbackSamplingRatio"]))?o[Tr.EndpointsFilters]=Tp:e.some(e=>!!e.httpRoute&&!e.httpRoute.startsWith("/"))&&(o[Tr.EndpointsFilters]=Np):o[Tr.EndpointsFilters]=Ip;break}case Dr.ServiceNameSampler:{const e=n[Tr.ServicesNameFilters];e?.length?e.some(e=>!Op(e,["serviceName","samplingRatio","fallbackSamplingRatio"]))&&(o[Tr.ServicesNameFilters]=Tp):o[Tr.ServicesNameFilters]=Ip;break}case Dr.SpanAttributeSampler:{const e=n[Tr.AttributeFilters],t=["stringCondition","numberCondition","booleanCondition","jsonCondition"],r=new Set(["exists","is_valid_json","is_invalid_json","jsonpath_exists"]);e?.length?e.some(e=>{if(!Op(e,["serviceName","attributeKey","fallbackSamplingRatio"]))return!0;const o=e.condition||{},n=t.find(e=>!!o[e]);if(!n)return!0;const i=o[n]||{},a=i.operation;return!a||!(r.has(a)||!Rp(i.expectedValue))})&&(o[Tr.AttributeFilters]=Tp):o[Tr.AttributeFilters]=Ip;break}case Dr.URLTemplatization:{const e=n[Tr.UrlTemplatizationRulesGroups];(!e?.length||e.some(e=>!e.templatizationRules?.length))&&(o[Tr.UrlTemplatizationRulesGroups]="Each rule group needs at least one non-blank template");break}}return o})(r.type,e,a.formData)),a.handleErrorChange(void 0,void 0,t);const o=Object.keys(t).length>0?"Invalid form values":void 0;return i(o),{errorMessage:o,preparedFormData:e}},[a,r]),d=Xt(()=>({selectedOption:r,onSelectOption:s,loadAction:l,genericForm:a,validateFormData:c,errorMessage:n}),[r,s,l,a,c,n]);return e(Dp.Provider,{value:d,children:t})},Fp=()=>{const e=Kt(Dp);if(!e)throw new Error("useActionFormContext must be used within an ActionFormContextProvider");return e},Pp={name:""},Lp=qt(null),zp=({children:t,defaultExcludeName:r=""})=>{const{dataStreams:o}=Qs(),[n,i]=Wt(void 0),[a,s]=Wt(r),[l,c]=Wt(void 0),[d,p]=Wt(null),u=Gt(null),h=Ol(Pp),m=Vt(e=>{h.resetFormData({name:e}),h.handleErrorChange(void 0,void 0,{}),i(void 0),s(e),c(e),p(null),u.current=null},[]),g=Vt(()=>{const e=$r(h.formData),t=(e=>{const t={};return e.name?ni(e.name)||(t.name=Eo.ILLEGAL_K8S_LABEL):t.name=Eo.FIELD_IS_REQUIRED,t})(e);h.handleErrorChange(void 0,void 0,t);const r=Object.keys(t).length>0?Eo.REQUIRED_FIELDS:void 0;return i(r),{errorMessage:r,preparedFormData:e}},[h]),f=Vt(async e=>{const{errorMessage:t,preparedFormData:r}=g();if(t)return;const n=o.find(e=>e.name===r.name&&e.name!==a);if(n)return u.current=e,void p({preparedFormData:r,existingName:n.name,editingName:l});await e(r)},[g,o,a,l]),y=Vt(async()=>{const e=u.current,t=d?.preparedFormData;u.current=null,p(null),e&&t&&await e(t)},[d]),x=Vt(()=>{u.current=null,p(null)},[]),b=Xt(()=>({genericForm:h,loadDataStream:m,editingName:l,validateFormData:g,requestSubmit:f,pendingMerge:d,confirmMerge:y,cancelMerge:x,errorMessage:n,excludeName:a,setExcludeName:s}),[h,m,l,g,f,d,y,x,n,a]);return e(Lp.Provider,{value:b,children:t})},Mp=()=>{const e=Kt(Lp);if(!e)throw new Error("useDataStreamFormContext must be used within a DataStreamFormContextProvider");return e},Bp={type:"",name:"",currentStreamName:"",disabled:!1,exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[]},Up={activeForm:null,onChangeActiveForm:()=>{},loadDestination:()=>{},genericForm:void 0,formErrorMessage:void 0,validateFormData:()=>({isOk:!1,preparedFormData:$r(Bp)}),unsavedDestinations:[],thisUnsavedDestination:void 0,setUnsavedDestinations:()=>{},addUnsavedDestination:()=>{},updateUnsavedDestination:()=>{},deleteUnsavedDestination:()=>{}},jp=qt(Up),Wp=e=>e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:o,displayName:n,initialValue:i,renderCondition:a}=e,s=r===Hr.Dropdown,l=ei(o,{});return{componentType:r,renderCondition:a,name:t,title:n,value:i,placeholder:l.placeholder||(s?"Select an option":void 0),options:s&&Array.isArray(l.values)?l.values.map(e=>({id:e,value:e})):void 0,...l}}),Hp=({children:t})=>{const{selectedStreamName:r}=Qs(),o=el(e=>e.destinations),[n,i]=Wt(null),[a,s]=Wt(),[l,c]=Wt(Up.unsavedDestinations),d=Xt(()=>"number"==typeof n?.unsavedIdx?l[n.unsavedIdx]:void 0,[n,l]),p=Vt((e,t)=>{n&&(c(t=>[...t,{...e,option:n.option}]),i(t?e=>e?{...e,listType:Yi.UNSAVED,unsavedIdx:l.length}:null:null))},[n,l.length]),u=Vt((e,t,r)=>{n&&(c(r=>r.map((r,o)=>o===e?{...r,...t,option:n.option}:r)),i(r?e=>e?{...e,listType:Yi.UNSAVED}:null:null))},[n]),h=Vt(e=>{c(t=>t.filter((t,r)=>r!==e)),i(null)},[]),m=Ol({...Bp,currentStreamName:r});Ht(()=>{if(!n)return;if(d)return void m.resetFormData({...d.formData});if(n.listType===Yi.EXISTS&&n.option.id){const e=o.find(e=>e.id===n.option.id);if(e)return void m.resetFormData({type:e.destinationType.type,name:e.name||e.destinationType.displayName,currentStreamName:r,disabled:!!e.disabled,exportedSignals:{logs:!!e.exportedSignals?.logs,metrics:!!e.exportedSignals?.metrics,traces:!!e.exportedSignals?.traces},fields:n.dynamicFields.map(e=>({key:e.name,value:e.value}))})}const e=mi(n.option.supportedSignals);m.resetFormData({type:n.option.type,name:n.option.displayName,currentStreamName:r,disabled:!1,exportedSignals:{logs:e.includes(mo.Logs),metrics:e.includes(mo.Metrics),traces:e.includes(mo.Traces)},fields:n.dynamicFields.map(e=>({key:e.name,value:e.value}))})},[n,d]);const g=Vt(e=>{m.resetFormData(),m.handleErrorChange(void 0,void 0,{}),s(void 0),i(e?{...e,dynamicFields:e.option?.fields?Wp(e.option.fields):[]}:null)},[]),f=Vt((e,t)=>{let r;for(const o of t){const t=o.items.find(t=>t.type===e.destinationType.type);if(t){r=t;break}}const o=ei(e.fields,{}),n={id:e.id,type:e.destinationType.type,displayName:e.name||e.destinationType.displayName,selected:!0,testConnectionSupported:r?.testConnectionSupported??!1,supportedSignals:e.destinationType.supportedSignals,fields:r?r.fields.map(e=>({...e,initialValue:o[e.name]??e.initialValue})):[]},a=Wp(n.fields);i({listType:Yi.EXISTS,option:n,dynamicFields:a}),s(void 0)},[]),y=Vt(()=>{const e=$r(m.formData),t={};n?.dynamicFields.forEach(({name:r,required:o})=>{if(o){const o=e.fields.find(e=>e.key===r)?.value;oi(o)&&(t[r]=Eo.FIELD_IS_REQUIRED)}});hi(e.exportedSignals).length||(t.exportedSignals=Eo.FIELD_IS_REQUIRED);const r=0===Object.keys(t).length?void 0:"Invalid form values";return m.handleErrorChange(void 0,void 0,t),s(r),{errorMessage:r,preparedFormData:e}},[m,n]);return e(jp.Provider,{value:{activeForm:n,onChangeActiveForm:g,loadDestination:f,genericForm:m,formErrorMessage:a,validateFormData:y,unsavedDestinations:l,thisUnsavedDestination:d,setUnsavedDestinations:c,addUnsavedDestination:p,updateUnsavedDestination:u,deleteUnsavedDestination:h},children:t})},Xp=()=>Kt(jp),Gp={disabled:!1,ruleName:"",notes:"",workloads:null,instrumentationLibraries:null,payloadCollection:null,codeAttributes:null,headersCollection:null,customInstrumentations:null},Vp=qt(null),Kp=({children:t})=>{const[r,o]=Wt(null),[n,i]=Wt(void 0),a=Ol(Gp),s=Vt(e=>{a.resetFormData(),a.handleErrorChange(void 0,void 0,{}),i(void 0),o(e)},[]),l=Vt(e=>{var t;a.resetFormData((({ruleName:e,notes:t,disabled:r,workloads:o,instrumentationLibraries:n,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l})=>({ruleName:e||"",notes:t||"",disabled:!!r,workloads:o??null,instrumentationLibraries:n??null,payloadCollection:i??null,codeAttributes:a??null,headersCollection:s??null,customInstrumentations:l??null}))(e)),a.handleErrorChange(void 0,void 0,{}),i(void 0),o((t=e.type,Zi.find(e=>e.type===t)??null))},[]),c=Vt(()=>{if(!r)return{errorMessage:"No rule type selected",preparedFormData:$r(Gp)};const e=(e=>{const t=$r(e);return t.headersCollection?.[ao.HeaderKeys]?.length&&(t.headersCollection[ao.HeaderKeys]=t.headersCollection[ao.HeaderKeys].map(e=>e.trim()).filter(e=>e)),t.customInstrumentations?.[so.Golang]?.length&&(t.customInstrumentations[so.Golang]=t.customInstrumentations[so.Golang].map(e=>new yo(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?.[so.Java]?.length&&(t.customInstrumentations[so.Java]=t.customInstrumentations[so.Java].map(e=>new fo(e.className,e.methodName)).filter(e=>{return t=e,!(!t.className?.trim()&&!t.methodName?.trim());var t})),t})(a.formData),t=((e,t)=>{const r={};switch(e){case no.CodeAttributes:Object.values(t.codeAttributes||{}).some(e=>null!=e)||(r.codeAttributes="Code attributes are required");break;case no.PayloadCollection:Object.values(t.payloadCollection||{}).some(e=>null!=e)||(r.payloadCollection="Payload collection are required");break;case no.HeadersCollection:t.headersCollection?.[ao.HeaderKeys]?.length||(r.headersCollection="Header keys are required");break;case no.CustomInstrumentation:{const e=t.customInstrumentations?.[so.Golang]||[],o=t.customInstrumentations?.[so.Java]||[];if(!e.length&&!o.length){r.customInstrumentations="Custom instrumentation are required";break}const n=e.findIndex(e=>!new yo(e.packageName,e.functionName,e.receiverName,e.receiverMethodName).Verify());if(-1!==n){r.customInstrumentations=`Golang probe #${n+1} is invalid: provide a package name plus either a function name OR both a receiver name and receiver method name`;break}const i=o.findIndex(e=>!new fo(e.className,e.methodName).Verify());if(-1!==i){r.customInstrumentations=`Java probe #${i+1} is invalid: both class name and method name are required`;break}break}}return r})(r.type,e);a.handleErrorChange(void 0,void 0,t);const o=Object.keys(t).length>0?"Invalid form values":void 0;return i(o),{errorMessage:o,preparedFormData:e}},[a,r]),d=Xt(()=>({selectedOption:r,onSelectOption:s,loadRule:l,genericForm:a,validateFormData:c,errorMessage:n}),[r,s,l,a,c,n]);return e(Vp.Provider,{value:d,children:t})},qp=()=>{const e=Kt(Vp);if(!e)throw new Error("useRuleFormContext must be used within a RuleFormContextProvider");return e};function Jp(e){return{name:"",notes:"",disabled:!1,ruleType:"Relevance",sourceScopes:[],operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:"",durationPreset:"500",customDurationMs:"",keepErrors:!1,percentageMode:"costReduction"===e?"sample":"all",percentagePreset:"0",customPercentage:""}}function Yp(e){if(!e.sourceScopes.length)return null;const t=[];for(const r of e.sourceScopes)if("source"===r.scopeType&&r.workloadName){const e={workloadName:r.workloadName};r.workloadKind&&(e.workloadKind=r.workloadKind),r.workloadNamespace&&(e.workloadNamespace=r.workloadNamespace),t.push(e)}else"namespace"===r.scopeType&&r.workloadNamespace?t.push({workloadNamespace:r.workloadNamespace}):"language"===r.scopeType&&r.workloadLanguage&&t.push({workloadLanguage:r.workloadLanguage});return t.length?t:null}function Qp(e){return Yp(e)}function Zp(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 eu(e){if("custom"===e.durationPreset){const t=parseFloat(e.customDurationMs);return isNaN(t)?null:t}return parseInt(e.durationPreset,10)}function tu(e){return{httpServer:{[e.routeType]:e.route||null,method:e.method||null}}}function ru(e){return"all"===e.operationType?null:"httpServer"===e.operationType?tu(e):"httpClient"===e.operationType?{httpClient:{serverAddress:e.serverAddress||null,["route"===e.routeType?"templatedPath":"templatedPathPrefix"]:e.route||null,method:e.method||null}}:null}function ou(e){return"all"===e.operationType?null:"httpServer"===e.operationType?tu(e):"kafkaConsumer"===e.operationType?{kafkaConsumer:{kafkaTopic:e.kafkaTopic||null}}:"kafkaProducer"===e.operationType?{kafkaProducer:{kafkaTopic:e.kafkaTopic||null}}:null}function nu(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:Yp(e),percentageAtMost:Zp(e),operation:ru(e)}}function iu(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:Yp(e),error:e.keepErrors,durationAtLeastMs:"Duration"===e.ruleType?eu(e):null,percentageAtLeast:Zp(e),operation:ou(e)}}function au(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:Yp(e),percentageAtMost:Zp(e)??0,operation:ou(e)}}function su(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:Qp(e),operation:ru(e),percentageAtMost:Zp(e),notes:e.notes||null}}function lu(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:Qp(e),error:"Error"===e.ruleType,durationAtLeastMs:"Duration"===e.ruleType?eu(e):null,operation:ou(e),percentageAtLeast:Zp(e),notes:e.notes||null}}function cu(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:Qp(e),operation:ou(e),percentageAtMost:Zp(e)??0,notes:e.notes||null}}const du=["5000","1000","500","100","50"],pu=["50","25","10","1","0.5","0.1","0"];function uu(e){if(null==e)return{percentageMode:"all",percentagePreset:"0",customPercentage:""};const t=pu.find(t=>Number(t)===e);return t?{percentageMode:"sample",percentagePreset:t,customPercentage:""}:{percentageMode:"sample",percentagePreset:"custom",customPercentage:String(e)}}function hu(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 mu(e){const t=Jp(),r=(o=e.rule.sourceScopes,o?.length?o.map(e=>e.workloadLanguage?{scopeType:"language",workloadName:"",workloadKind:"",workloadNamespace:"",workloadLanguage:e.workloadLanguage}:e.workloadName?{scopeType:"source",workloadName:e.workloadName,workloadKind:e.workloadKind??"",workloadNamespace:e.workloadNamespace??"",workloadLanguage:""}:e.workloadNamespace?{scopeType:"namespace",workloadName:"",workloadKind:"",workloadNamespace:e.workloadNamespace,workloadLanguage:""}:{scopeType:"all",workloadName:"",workloadKind:"",workloadNamespace:"",workloadLanguage:""}).filter(e=>"all"!==e.scopeType):[]);var o;const n=function(e){return"highlyRelevant"!==e.category?"Relevance":e.rule.error?"Error":null!=e.rule.durationAtLeastMs?"Duration":"Relevance"}(e);let i,a,s={durationPreset:"500",customDurationMs:""},l=!1;switch(e.category){case"noisy":i=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=uu(e.rule.percentageAtMost);break;case"highlyRelevant":i=hu(e.rule.operation),a=uu(e.rule.percentageAtLeast),s=function(e){if(null==e)return{durationPreset:"500",customDurationMs:""};const t=du.find(t=>Number(t)===e);return t?{durationPreset:t,customDurationMs:""}:{durationPreset:"custom",customDurationMs:String(e)}}(e.rule.durationAtLeastMs),l=e.rule.error;break;case"costReduction":i=hu(e.rule.operation),a=uu(e.rule.percentageAtMost)}return{...t,name:e.rule.name||"",notes:e.rule.notes||"",disabled:e.rule.disabled,ruleType:n,sourceScopes:r,...i,...s,keepErrors:l,...a}}var gu;!function(e){e.Default="default",e.Action="action",e.Endpoint="endpoint",e.Scope="scope",e.Duration="duration"}(gu||(gu={}));const fu=[gu.Action,gu.Endpoint,gu.Scope,gu.Duration],yu=o.span`
961
+ `,Wu={[Yr.MapItem]:Mu,[Yr.NoData]:Fu},Hu=({trigger:e})=>{const{fitView:t}=cr(),r=Gt(!0);return Ht(()=>{r.current?r.current=!1:e>0&&requestAnimationFrame(()=>t(Bu))},[e,t]),null},Xu=({nodes:r,edges:o,onNodesChange:n,onEdgesChange:i,fitViewTrigger:a=0,zoomOnScroll:s=!1,onEdgeClick:l,onNodeMouseEnter:c,onNodeMouseLeave:d,onRefresh:p})=>{const{onClickNode:u}=od(),{setActiveNodeType:h,setActiveNodeId:m}=Vi();return t(ar,{zoomOnScroll:s,nodes:r,nodeTypes:Wu,edges:o,onNodeClick:u,onEdgeClick:l,onNodeMouseEnter:c,onNodeMouseLeave:d,onNodesChange:n,onEdgesChange:i,onBlur:()=>{h(null),m(null)},children:[e(Hu,{trigger:a}),e(ju,{children:e(sr,{position:"bottom-right",orientation:"horizontal",showInteractive:!1,showZoom:!0,showFitView:!0,fitViewOptions:Bu,children:p&&e(lr,{onClick:p,children:e(Et,{size:20})})})})]})},Gu=t=>e(Uu,{children:e(ir,{children:e(Xu,{...t})})}),Vu={type:"",disabled:!1,name:"",notes:"",signals:[],fields:{}},Ku=qt(null),qu="All row fields are required",Ju="At least one row is required",Yu=Eo.LATENCY_HTTP_ROUTE,Qu=e=>"string"==typeof e?!e.trim():oi(e),Zu=(e,t)=>!!e&&t.every(t=>{const r=e[t];return Array.isArray(r)?r.length>0:!Qu(r)}),eh=({children:t})=>{const[r,o]=Wt(null),[n,i]=Wt(void 0),a=Zc(Vu),s=Vt(e=>{a.resetFormData(),a.handleErrorChange(void 0,void 0,{}),i(void 0),e?.type&&a.handleFormChange("type",e.type),o(e)},[]),l=Vt(e=>{var t;a.resetFormData((({type:e,name:t,notes:r,disabled:o,signals:n,fields:i})=>({type:e,name:t||"",notes:r||"",disabled:!!o,signals:n??[],fields:i??{}}))(e)),a.handleErrorChange(void 0,void 0,{}),i(void 0),o((t=e.type,Ki.find(e=>e.type===t)??qi.find(e=>e.type===t)??null))},[]),c=Vt(()=>{if(!r)return{errorMessage:"No action type selected",preparedFormData:$r(Vu)};const e=(e=>{const t=$r(e),r=t.fields||{},o=r[Tr.UrlTemplatizationRulesGroups];o?.length&&(r[Tr.UrlTemplatizationRulesGroups]=o.map(e=>({...e,templatizationRules:(e.templatizationRules||[]).filter(e=>!!e.template?.trim())})));const n=r[Tr.AttributeNamesToDelete];n?.length&&(r[Tr.AttributeNamesToDelete]=n.filter(e=>!!e?.trim()));const i=r[Tr.Renames];return i&&(r[Tr.Renames]=Object.fromEntries(Object.entries(i).filter(([e,t])=>!!e?.trim()&&!!t?.trim()))),t.fields=r,t})(a.formData),t={};oi(e.signals)&&(t.signals=Eo.FIELD_IS_REQUIRED),r.type&&Object.assign(t,((e,t,r)=>{const o={},n=t.fields||{},i=r.fields||{};switch(e){case Dr.K8sAttributes:{const e=!(n[Tr.CollectContainerAttributes]||n[Tr.CollectReplicaSetAttributes]||n[Tr.CollectWorkloadId]||n[Tr.CollectClusterId]),t=!n[Tr.LabelsAttributes]?.length,r=!n[Tr.AnnotationsAttributes]?.length;e&&t&&r&&(o[Tr.CollectContainerAttributes]="Enable at least one option or add a label/annotation row");const i=n[Tr.LabelsAttributes];i?.some(e=>!Zu(e,["labelKey","attributeKey","fromSources"]))&&(o[Tr.LabelsAttributes]=qu);const a=n[Tr.AnnotationsAttributes];a?.some(e=>!Zu(e,["annotationKey","attributeKey","fromSources"]))&&(o[Tr.AnnotationsAttributes]=qu);break}case Dr.AddClusterInfo:{const e=n[Tr.ClusterAttributes];e?.length?e.some(e=>!Zu(e,["attributeName","attributeStringValue"]))&&(o[Tr.ClusterAttributes]=qu):o[Tr.ClusterAttributes]=Ju;break}case Dr.DeleteAttributes:{const e=i[Tr.AttributeNamesToDelete]||[],t=n[Tr.AttributeNamesToDelete]||[];t.length?e.length>t.length&&(o[Tr.AttributeNamesToDelete]=qu):o[Tr.AttributeNamesToDelete]=e.length?qu:Ju;break}case Dr.RenameAttributes:{const e=Object.entries(i[Tr.Renames]||{}),t=Object.entries(n[Tr.Renames]||{}),r=e.some(([e,t])=>!e?.trim()||!t?.trim());t.length?r&&(o[Tr.Renames]=qu):o[Tr.Renames]=e.length?qu:Ju;break}case Dr.PiiMasking:{const e=n[Tr.PiiCategories];e?.length||(o[Tr.PiiCategories]="Select at least one attribute to mask");break}case Dr.ErrorSampler:Qu(n[Tr.FallbackSamplingRatio])&&(o[Tr.FallbackSamplingRatio]=Eo.FIELD_IS_REQUIRED);break;case Dr.ProbabilisticSampler:Qu(n[Tr.SamplingPercentage])&&(o[Tr.SamplingPercentage]=Eo.FIELD_IS_REQUIRED);break;case Dr.LatencySampler:{const e=n[Tr.EndpointsFilters];e?.length?e.some(e=>!Zu(e,["serviceName","httpRoute","minimumLatencyThreshold","fallbackSamplingRatio"]))?o[Tr.EndpointsFilters]=qu:e.some(e=>!!e.httpRoute&&!e.httpRoute.startsWith("/"))&&(o[Tr.EndpointsFilters]=Yu):o[Tr.EndpointsFilters]=Ju;break}case Dr.ServiceNameSampler:{const e=n[Tr.ServicesNameFilters];e?.length?e.some(e=>!Zu(e,["serviceName","samplingRatio","fallbackSamplingRatio"]))&&(o[Tr.ServicesNameFilters]=qu):o[Tr.ServicesNameFilters]=Ju;break}case Dr.SpanAttributeSampler:{const e=n[Tr.AttributeFilters],t=["stringCondition","numberCondition","booleanCondition","jsonCondition"],r=new Set(["exists","is_valid_json","is_invalid_json","jsonpath_exists"]);e?.length?e.some(e=>{if(!Zu(e,["serviceName","attributeKey","fallbackSamplingRatio"]))return!0;const o=e.condition||{},n=t.find(e=>!!o[e]);if(!n)return!0;const i=o[n]||{},a=i.operation;return!a||!(r.has(a)||!Qu(i.expectedValue))})&&(o[Tr.AttributeFilters]=qu):o[Tr.AttributeFilters]=Ju;break}case Dr.URLTemplatization:{const e=n[Tr.UrlTemplatizationRulesGroups];(!e?.length||e.some(e=>!e.templatizationRules?.length))&&(o[Tr.UrlTemplatizationRulesGroups]="Each rule group needs at least one non-blank template");break}}return o})(r.type,e,a.formData)),a.handleErrorChange(void 0,void 0,t);const o=Object.keys(t).length>0?"Invalid form values":void 0;return i(o),{errorMessage:o,preparedFormData:e}},[a,r]),d=Xt(()=>({selectedOption:r,onSelectOption:s,loadAction:l,genericForm:a,validateFormData:c,errorMessage:n}),[r,s,l,a,c,n]);return e(Ku.Provider,{value:d,children:t})},th=()=>{const e=Kt(Ku);if(!e)throw new Error("useActionFormContext must be used within an ActionFormContextProvider");return e},rh={name:""},oh=qt(null),nh=({children:t,defaultExcludeName:r=""})=>{const{dataStreams:o}=xc(),[n,i]=Wt(void 0),[a,s]=Wt(r),[l,c]=Wt(void 0),[d,p]=Wt(null),u=Gt(null),h=Zc(rh),m=Vt(e=>{h.resetFormData({name:e}),h.handleErrorChange(void 0,void 0,{}),i(void 0),s(e),c(e),p(null),u.current=null},[]),g=Vt(()=>{const e=$r(h.formData),t=(e=>{const t={};return e.name?ni(e.name)||(t.name=Eo.ILLEGAL_K8S_LABEL):t.name=Eo.FIELD_IS_REQUIRED,t})(e);h.handleErrorChange(void 0,void 0,t);const r=Object.keys(t).length>0?Eo.REQUIRED_FIELDS:void 0;return i(r),{errorMessage:r,preparedFormData:e}},[h]),f=Vt(async e=>{const{errorMessage:t,preparedFormData:r}=g();if(t)return;const n=o.find(e=>e.name===r.name&&e.name!==a);if(n)return u.current=e,void p({preparedFormData:r,existingName:n.name,editingName:l});await e(r)},[g,o,a,l]),y=Vt(async()=>{const e=u.current,t=d?.preparedFormData;u.current=null,p(null),e&&t&&await e(t)},[d]),x=Vt(()=>{u.current=null,p(null)},[]),b=Xt(()=>({genericForm:h,loadDataStream:m,editingName:l,validateFormData:g,requestSubmit:f,pendingMerge:d,confirmMerge:y,cancelMerge:x,errorMessage:n,excludeName:a,setExcludeName:s}),[h,m,l,g,f,d,y,x,n,a]);return e(oh.Provider,{value:b,children:t})},ih=()=>{const e=Kt(oh);if(!e)throw new Error("useDataStreamFormContext must be used within a DataStreamFormContextProvider");return e},ah={type:"",name:"",currentStreamName:"",disabled:!1,exportedSignals:{logs:!1,metrics:!1,traces:!1},fields:[]},sh={activeForm:null,onChangeActiveForm:()=>{},loadDestination:()=>{},genericForm:void 0,formErrorMessage:void 0,validateFormData:()=>({isOk:!1,preparedFormData:$r(ah)}),unsavedDestinations:[],thisUnsavedDestination:void 0,setUnsavedDestinations:()=>{},addUnsavedDestination:()=>{},updateUnsavedDestination:()=>{},deleteUnsavedDestination:()=>{}},lh=qt(sh),ch=e=>e.filter(e=>!!e).map(e=>{const{name:t,componentType:r,componentProperties:o,displayName:n,initialValue:i,renderCondition:a}=e,s=r===Hr.Dropdown,l=ei(o,{});return{componentType:r,renderCondition:a,name:t,title:n,value:i,placeholder:l.placeholder||(s?"Select an option":void 0),options:s&&Array.isArray(l.values)?l.values.map(e=>({id:e,value:e})):void 0,...l}}),dh=({children:t})=>{const{selectedStreamName:r}=xc(),o=vc(e=>e.destinations),[n,i]=Wt(null),[a,s]=Wt(),[l,c]=Wt(sh.unsavedDestinations),d=Xt(()=>"number"==typeof n?.unsavedIdx?l[n.unsavedIdx]:void 0,[n,l]),p=Vt((e,t)=>{n&&(c(t=>[...t,{...e,option:n.option}]),i(t?e=>e?{...e,listType:Yi.UNSAVED,unsavedIdx:l.length}:null:null))},[n,l.length]),u=Vt((e,t,r)=>{n&&(c(r=>r.map((r,o)=>o===e?{...r,...t,option:n.option}:r)),i(r?e=>e?{...e,listType:Yi.UNSAVED}:null:null))},[n]),h=Vt(e=>{c(t=>t.filter((t,r)=>r!==e)),i(null)},[]),m=Zc({...ah,currentStreamName:r});Ht(()=>{if(!n)return;if(d)return void m.resetFormData({...d.formData});if(n.listType===Yi.EXISTS&&n.option.id){const e=o.find(e=>e.id===n.option.id);if(e)return void m.resetFormData({type:e.destinationType.type,name:e.name||e.destinationType.displayName,currentStreamName:r,disabled:!!e.disabled,exportedSignals:{logs:!!e.exportedSignals?.logs,metrics:!!e.exportedSignals?.metrics,traces:!!e.exportedSignals?.traces},fields:n.dynamicFields.map(e=>({key:e.name,value:e.value}))})}const e=mi(n.option.supportedSignals);m.resetFormData({type:n.option.type,name:n.option.displayName,currentStreamName:r,disabled:!1,exportedSignals:{logs:e.includes(mo.Logs),metrics:e.includes(mo.Metrics),traces:e.includes(mo.Traces)},fields:n.dynamicFields.map(e=>({key:e.name,value:e.value}))})},[n,d]);const g=Vt(e=>{m.resetFormData(),m.handleErrorChange(void 0,void 0,{}),s(void 0),i(e?{...e,dynamicFields:e.option?.fields?ch(e.option.fields):[]}:null)},[]),f=Vt((e,t)=>{let r;for(const o of t){const t=o.items.find(t=>t.type===e.destinationType.type);if(t){r=t;break}}const o=ei(e.fields,{}),n={id:e.id,type:e.destinationType.type,displayName:e.name||e.destinationType.displayName,selected:!0,testConnectionSupported:r?.testConnectionSupported??!1,supportedSignals:e.destinationType.supportedSignals,fields:r?r.fields.map(e=>({...e,initialValue:o[e.name]??e.initialValue})):[]},a=ch(n.fields);i({listType:Yi.EXISTS,option:n,dynamicFields:a}),s(void 0)},[]),y=Vt(()=>{const e=$r(m.formData),t={};n?.dynamicFields.forEach(({name:r,required:o})=>{if(o){const o=e.fields.find(e=>e.key===r)?.value;oi(o)&&(t[r]=Eo.FIELD_IS_REQUIRED)}});hi(e.exportedSignals).length||(t.exportedSignals=Eo.FIELD_IS_REQUIRED);const r=0===Object.keys(t).length?void 0:"Invalid form values";return m.handleErrorChange(void 0,void 0,t),s(r),{errorMessage:r,preparedFormData:e}},[m,n]);return e(lh.Provider,{value:{activeForm:n,onChangeActiveForm:g,loadDestination:f,genericForm:m,formErrorMessage:a,validateFormData:y,unsavedDestinations:l,thisUnsavedDestination:d,setUnsavedDestinations:c,addUnsavedDestination:p,updateUnsavedDestination:u,deleteUnsavedDestination:h},children:t})},ph=()=>Kt(lh),uh={disabled:!1,ruleName:"",notes:"",workloads:null,instrumentationLibraries:null,payloadCollection:null,codeAttributes:null,headersCollection:null,customInstrumentations:null},hh=qt(null),mh=({children:t})=>{const[r,o]=Wt(null),[n,i]=Wt(void 0),a=Zc(uh),s=Vt(e=>{a.resetFormData(),a.handleErrorChange(void 0,void 0,{}),i(void 0),o(e)},[]),l=Vt(e=>{var t;a.resetFormData((({ruleName:e,notes:t,disabled:r,workloads:o,instrumentationLibraries:n,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l})=>({ruleName:e||"",notes:t||"",disabled:!!r,workloads:o??null,instrumentationLibraries:n??null,payloadCollection:i??null,codeAttributes:a??null,headersCollection:s??null,customInstrumentations:l??null}))(e)),a.handleErrorChange(void 0,void 0,{}),i(void 0),o((t=e.type,Zi.find(e=>e.type===t)??null))},[]),c=Vt(()=>{if(!r)return{errorMessage:"No rule type selected",preparedFormData:$r(uh)};const e=(e=>{const t=$r(e);return t.headersCollection?.[ao.HeaderKeys]?.length&&(t.headersCollection[ao.HeaderKeys]=t.headersCollection[ao.HeaderKeys].map(e=>e.trim()).filter(e=>e)),t.customInstrumentations?.[so.Golang]?.length&&(t.customInstrumentations[so.Golang]=t.customInstrumentations[so.Golang].map(e=>new yo(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?.[so.Java]?.length&&(t.customInstrumentations[so.Java]=t.customInstrumentations[so.Java].map(e=>new fo(e.className,e.methodName)).filter(e=>{return t=e,!(!t.className?.trim()&&!t.methodName?.trim());var t})),t})(a.formData),t=((e,t)=>{const r={};switch(e){case no.CodeAttributes:Object.values(t.codeAttributes||{}).some(e=>null!=e)||(r.codeAttributes="Code attributes are required");break;case no.PayloadCollection:Object.values(t.payloadCollection||{}).some(e=>null!=e)||(r.payloadCollection="Payload collection are required");break;case no.HeadersCollection:t.headersCollection?.[ao.HeaderKeys]?.length||(r.headersCollection="Header keys are required");break;case no.CustomInstrumentation:{const e=t.customInstrumentations?.[so.Golang]||[],o=t.customInstrumentations?.[so.Java]||[];if(!e.length&&!o.length){r.customInstrumentations="Custom instrumentation are required";break}const n=e.findIndex(e=>!new yo(e.packageName,e.functionName,e.receiverName,e.receiverMethodName).Verify());if(-1!==n){r.customInstrumentations=`Golang probe #${n+1} is invalid: provide a package name plus either a function name OR both a receiver name and receiver method name`;break}const i=o.findIndex(e=>!new fo(e.className,e.methodName).Verify());if(-1!==i){r.customInstrumentations=`Java probe #${i+1} is invalid: both class name and method name are required`;break}break}}return r})(r.type,e);a.handleErrorChange(void 0,void 0,t);const o=Object.keys(t).length>0?"Invalid form values":void 0;return i(o),{errorMessage:o,preparedFormData:e}},[a,r]),d=Xt(()=>({selectedOption:r,onSelectOption:s,loadRule:l,genericForm:a,validateFormData:c,errorMessage:n}),[r,s,l,a,c,n]);return e(hh.Provider,{value:d,children:t})},gh=()=>{const e=Kt(hh);if(!e)throw new Error("useRuleFormContext must be used within a RuleFormContextProvider");return e};function fh(e){return{name:"",notes:"",disabled:!1,ruleType:"Relevance",sourceScopes:[],operationType:"all",routeType:"route",route:"",serverAddress:"",method:"",kafkaTopic:"",durationPreset:"500",customDurationMs:"",keepErrors:!1,percentageMode:"costReduction"===e?"sample":"all",percentagePreset:"0",customPercentage:""}}function yh(e){if(!e.sourceScopes.length)return null;const t=[];for(const r of e.sourceScopes)if("source"===r.scopeType&&r.workloadName){const e={workloadName:r.workloadName};r.workloadKind&&(e.workloadKind=r.workloadKind),r.workloadNamespace&&(e.workloadNamespace=r.workloadNamespace),t.push(e)}else"namespace"===r.scopeType&&r.workloadNamespace?t.push({workloadNamespace:r.workloadNamespace}):"language"===r.scopeType&&r.workloadLanguage&&t.push({workloadLanguage:r.workloadLanguage});return t.length?t:null}function xh(e){return yh(e)}function bh(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 vh(e){if("custom"===e.durationPreset){const t=parseFloat(e.customDurationMs);return isNaN(t)?null:t}return parseInt(e.durationPreset,10)}function $h(e){return{httpServer:{[e.routeType]:e.route||null,method:e.method||null}}}function wh(e){return"all"===e.operationType?null:"httpServer"===e.operationType?$h(e):"httpClient"===e.operationType?{httpClient:{serverAddress:e.serverAddress||null,["route"===e.routeType?"templatedPath":"templatedPathPrefix"]:e.route||null,method:e.method||null}}:null}function Sh(e){return"all"===e.operationType?null:"httpServer"===e.operationType?$h(e):"kafkaConsumer"===e.operationType?{kafkaConsumer:{kafkaTopic:e.kafkaTopic||null}}:"kafkaProducer"===e.operationType?{kafkaProducer:{kafkaTopic:e.kafkaTopic||null}}:null}function kh(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:yh(e),percentageAtMost:bh(e),operation:wh(e)}}function Ch(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:yh(e),error:e.keepErrors,durationAtLeastMs:"Duration"===e.ruleType?vh(e):null,percentageAtLeast:bh(e),operation:Sh(e)}}function Eh(e){return{ruleId:"",name:e.name||null,disabled:!1,notes:e.notes||null,sourceScopes:yh(e),percentageAtMost:bh(e)??0,operation:Sh(e)}}function Ah(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:xh(e),operation:wh(e),percentageAtMost:bh(e),notes:e.notes||null}}function Dh(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:xh(e),error:"Error"===e.ruleType,durationAtLeastMs:"Duration"===e.ruleType?vh(e):null,operation:Sh(e),percentageAtLeast:bh(e),notes:e.notes||null}}function Th(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:xh(e),operation:Sh(e),percentageAtMost:bh(e)??0,notes:e.notes||null}}const Ih=["5000","1000","500","100","50"],Nh=["50","25","10","1","0.5","0.1","0"];function Rh(e){if(null==e)return{percentageMode:"all",percentagePreset:"0",customPercentage:""};const t=Nh.find(t=>Number(t)===e);return t?{percentageMode:"sample",percentagePreset:t,customPercentage:""}:{percentageMode:"sample",percentagePreset:"custom",customPercentage:String(e)}}function Oh(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 _h(e){const t=fh(),r=(o=e.rule.sourceScopes,o?.length?o.map(e=>e.workloadLanguage?{scopeType:"language",workloadName:"",workloadKind:"",workloadNamespace:"",workloadLanguage:e.workloadLanguage}:e.workloadName?{scopeType:"source",workloadName:e.workloadName,workloadKind:e.workloadKind??"",workloadNamespace:e.workloadNamespace??"",workloadLanguage:""}:e.workloadNamespace?{scopeType:"namespace",workloadName:"",workloadKind:"",workloadNamespace:e.workloadNamespace,workloadLanguage:""}:{scopeType:"all",workloadName:"",workloadKind:"",workloadNamespace:"",workloadLanguage:""}).filter(e=>"all"!==e.scopeType):[]);var o;const n=function(e){return"highlyRelevant"!==e.category?"Relevance":e.rule.error?"Error":null!=e.rule.durationAtLeastMs?"Duration":"Relevance"}(e);let i,a,s={durationPreset:"500",customDurationMs:""},l=!1;switch(e.category){case"noisy":i=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=Rh(e.rule.percentageAtMost);break;case"highlyRelevant":i=Oh(e.rule.operation),a=Rh(e.rule.percentageAtLeast),s=function(e){if(null==e)return{durationPreset:"500",customDurationMs:""};const t=Ih.find(t=>Number(t)===e);return t?{durationPreset:t,customDurationMs:""}:{durationPreset:"custom",customDurationMs:String(e)}}(e.rule.durationAtLeastMs),l=e.rule.error;break;case"costReduction":i=Oh(e.rule.operation),a=Rh(e.rule.percentageAtMost)}return{...t,name:e.rule.name||"",notes:e.rule.notes||"",disabled:e.rule.disabled,ruleType:n,sourceScopes:r,...i,...s,keepErrors:l,...a}}var Fh;!function(e){e.Default="default",e.Action="action",e.Endpoint="endpoint",e.Scope="scope",e.Duration="duration"}(Fh||(Fh={}));const Ph=[Fh.Action,Fh.Endpoint,Fh.Scope,Fh.Duration],Lh=o.span`
962
962
  font-family: ${({theme:e,$isMono:t})=>t?e.font_family.secondary:e.font_family.primary};
963
963
  font-size: ${({theme:e})=>e.v2.text.size.xxs}px;
964
964
  line-height: 20px;
965
965
  color: ${({theme:e,$variant:t})=>{const r=e.v2.colors;switch(t){case"action":return r.green[400];case"endpoint":return r.purple[300];case"scope":return r.yellow[400];case"duration":return r.orange[600];default:return r.white[500]}}};
966
- `,xu=o.span`
966
+ `,zh=o.span`
967
967
  display: inline;
968
968
  cursor: help;
969
969
  text-decoration: underline dotted;
970
970
  text-underline-offset: 3px;
971
- `,bu=o.div`
971
+ `,Mh=o.div`
972
972
  display: flex;
973
973
  flex-direction: column;
974
974
  gap: 4px;
@@ -976,13 +976,13 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
976
976
  border-radius: 4px;
977
977
  padding: 8px;
978
978
  max-width: 300px;
979
- `,vu=({items:r,children:o})=>{const{popupRef:n,popupOpen:i,setPopupOpen:a,popupPosition:s,handlePosition:l}=Zl({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:240}),c=e=>{l(e.clientX,e.clientY),a("mouseleave"!==e.type)};return t(xu,{onMouseEnter:c,onMouseMove:c,onMouseLeave:c,children:[o,e(Nc,{ref:n,isOpen:i,top:s.top,left:s.left,asPortal:!0,style:{backgroundColor:"transparent",border:"none"},borderRadius:"0",padding:"0",maxWidth:"300px",children:e(bu,{children:r.map((t,r)=>e(un,{size:sn.XXXS,children:t},r))})})]})},$u=({parts:o})=>e(r,{children:o.map((o,n)=>{const i=e(yu,{$variant:o.variant,$isMono:fu.includes(o.variant),children:o.text});return t(jt,{children:[0!==n&&e(r,{children:" "}),o.tooltipItems?.length?e(vu,{items:o.tooltipItems,children:i}):i]},`${o.variant}-${n}`)})});var wu;!function(e){e.Noisy="noisy",e.HighlyRelevant="highly-relevant",e.CostReduction="cost-reduction"}(wu||(wu={}));const Su=[{value:wu.Noisy,label:"1. Noisy Operations",tooltip:"Rules that reduce noise from high-volume, low-value operations"},{value:wu.HighlyRelevant,label:"2. Highly Relevant Operations",tooltip:"Rules that prioritize important traces for retention"},{value:wu.CostReduction,label:"3. Cost Reduction",tooltip:"Rules that optimize costs by sampling less critical data"}],ku={[wu.Noisy]:"This is the most efficient way to sample (with Head Sampling). Prefer to use it where possible.",[wu.HighlyRelevant]:'Any trace from the "Noisy Operations" category is sampled prior to checking highly relevance.',[wu.CostReduction]:"Cost reduction rules use Tail Sampling to drop traces that are unlikely to be useful for debugging or monitoring."},Cu={[wu.Noisy]:"Noisy Operations rules list",[wu.HighlyRelevant]:"Highly Relevant Operations rules list",[wu.CostReduction]:"Cost Reduction rules list"},Eu={[wu.Noisy]:"noisy",[wu.HighlyRelevant]:"highlyRelevant",[wu.CostReduction]:"costReduction"};function Au(e){if(e.workloadName){const t=e.workloadKind?.toLowerCase()||"deployment";return e.workloadNamespace?`${t} '${e.workloadName}' in namespace '${e.workloadNamespace}'`:`${t} '${e.workloadName}'`}return e.workloadNamespace?`namespace '${e.workloadNamespace}'`:e.workloadLanguage?`${e.workloadLanguage} services`:""}function Du(e){if(!e?.length)return[{text:" for ",variant:gu.Default},{text:"all services in the cluster",variant:gu.Scope}];const t=e.map(Au).filter(Boolean);if(!t.length)return[{text:" for ",variant:gu.Default},{text:"all services in the cluster",variant:gu.Scope}];const r=[{text:" for ",variant:gu.Default}],o=t.slice(0,2),n=t.slice(2);return o.forEach((e,t)=>{t>0&&r.push({text:", ",variant:gu.Default}),r.push({text:e,variant:gu.Scope})}),n.length>0&&r.push({text:` + ${n.length} more`,variant:gu.Default,tooltipItems:n}),r}function Tu(e,t){if(!e)return[];const r=(o=e).startsWith("/")?o.slice(1):o;var o;const n=[{text:" starting at ",variant:gu.Default}];return t?n.push({text:`${t} /${r}`,variant:gu.Endpoint}):n.push({text:`endpoint /${r}`,variant:gu.Endpoint}),n}function Iu(e){const t=[];if(null!=e.percentageAtMost?(t.push({text:`Drop ${100-e.percentageAtMost}%`,variant:gu.Action}),t.push({text:" of traces",variant:gu.Default})):t.push({text:"Drop all traces",variant:gu.Action}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method||e.operation.httpClient?.method;t.push(...Tu(r,o));const n=e.operation.httpClient,i=n?.templatedPath||n?.templatedPathPrefix,a=n?.serverAddress;if((i||a)&&!r){const e=i&&a?`${a}/${i}`:i||a;t.push({text:" to ",variant:gu.Default}),o?t.push({text:`${o} /${e}`,variant:gu.Endpoint}):t.push({text:`/${e}`,variant:gu.Endpoint})}}else t.push({text:" on ",variant:gu.Default}),t.push({text:"any operation",variant:gu.Endpoint});return t.push(...Du(e.sourceScopes)),t}function Nu(e){const t=[];if(null!=e.percentageAtLeast?(t.push({text:`Keep at least ${e.percentageAtLeast}%`,variant:gu.Action}),t.push({text:" of traces",variant:gu.Default})):t.push({text:"Keep all traces",variant:gu.Action}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method;t.push(...Tu(r,o))}else t.push({text:" on ",variant:gu.Default}),t.push({text:"any operation",variant:gu.Endpoint});return t.push(...Du(e.sourceScopes)),!e.error&&null!=e.durationAtLeastMs&&e.durationAtLeastMs>0&&(t.push({text:" with duration > ",variant:gu.Default}),t.push({text:`${e.durationAtLeastMs}ms`,variant:gu.Duration})),t}function Ru(e){const t=[];if(t.push({text:`Drop ${100-e.percentageAtMost}%`,variant:gu.Action}),t.push({text:" of traces",variant:gu.Default}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method;t.push(...Tu(r,o));const n=e.operation.kafkaConsumer?.kafkaTopic;n&&!r&&(t.push({text:" from ",variant:gu.Default}),t.push({text:`topic '${n}'`,variant:gu.Endpoint}))}else t.push({text:" on ",variant:gu.Default}),t.push({text:"any operation",variant:gu.Endpoint});return t.push(...Du(e.sourceScopes)),t}function Ou(e){return e.error?"Error":null!=e.durationAtLeastMs?"Duration":"Relevance"}function _u(e,t,r){const o=Eu[t],n=[];for(const i of e)switch(t){case wu.Noisy:for(const e of i.noisyOperations)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Iu(e),category:o});break;case wu.HighlyRelevant:for(const e of i.highlyRelevantOperations)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Nu(e),category:o,typeBadge:Ou(e)});break;case wu.CostReduction:for(const e of i.costReductionRules)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Ru(e),category:o})}return n}function Fu(e,t){switch(e){case"noisy":return Iu(t);case"highlyRelevant":return Nu(t);case"costReduction":return Ru(t)}}function Pu(e,t,r,o){for(const n of e)if(n.id===t)switch(o){case"noisy":{const e=n.noisyOperations.find(e=>e.ruleId===r);if(e)return{category:"noisy",samplingId:n.id,rule:e};break}case"highlyRelevant":{const e=n.highlyRelevantOperations.find(e=>e.ruleId===r);if(e)return{category:"highlyRelevant",samplingId:n.id,rule:e};break}case"costReduction":{const e=n.costReductionRules.find(e=>e.ruleId===r);if(e)return{category:"costReduction",samplingId:n.id,rule:e};break}}return null}function Lu(e,t){const r=Pu(e,t.samplingId,t.rule.ruleId,t.category);return r?{...r,summary:Fu(r.category,r.rule)}:null}function zu(e,t){const r=Pu(e,t.samplingId,t.ruleId,t.category);return r?{...r,summary:t.summary}:null}function Mu(e){return null==e||Array.isArray(e)&&0===e.length?null:e}function Bu(e,t){return JSON.stringify({sourceScopes:Mu(e),operation:Mu(t)})}function Uu(e,t,r,o){return JSON.stringify({sourceScopes:Mu(e),error:t??!1,durationAtLeastMs:Mu(r),operation:Mu(o)})}function ju(e,t){return JSON.stringify({sourceScopes:Mu(e),operation:Mu(t)})}function Wu(e,t,r,o){switch(t){case"noisy":{const t=Bu(r.sourceScopes,r.operation);for(const r of e)for(const e of r.noisyOperations)if((!o||e.ruleId!==o)&&Bu(e.sourceScopes,e.operation)===t)return e.ruleId;return null}case"highlyRelevant":{const t=Uu(r.sourceScopes,r.error,r.durationAtLeastMs,r.operation);for(const r of e)for(const e of r.highlyRelevantOperations)if((!o||e.ruleId!==o)&&Uu(e.sourceScopes,e.error,e.durationAtLeastMs,e.operation)===t)return e.ruleId;return null}case"costReduction":{const t=ju(r.sourceScopes,r.operation);for(const r of e)for(const e of r.costReductionRules)if((!o||e.ruleId!==o)&&ju(e.sourceScopes,e.operation)===t)return e.ruleId;return null}}}function Hu(e){if(!e||!e.enabled)return[{text:"Auto rule is ",variant:gu.Default},{text:"disabled",variant:gu.Action}];return[{text:`Keep ${e.keepPercentage??0}%`,variant:gu.Action},{text:" of ",variant:gu.Default},{text:"traces for kubelet health probes in the entire cluster",variant:gu.Scope}]}function Xu(e){return!(!0!==e.error||e.sourceScopes&&0!==e.sourceScopes.length||e.operation||null!=e.percentageAtLeast&&100!==e.percentageAtLeast)}function Gu(e){for(const t of e){const e=t.highlyRelevantOperations.find(Xu);if(e)return{rule:e,samplingId:t.id}}return null}function Vu(e){return!e||e.disabled?[{text:"Auto rule is ",variant:gu.Default},{text:"disabled",variant:gu.Action}]:[{text:"Keep all traces",variant:gu.Action},{text:" of ",variant:gu.Default},{text:"error traces across the entire cluster",variant:gu.Scope}]}function Ku(e){return!(e.sourceScopes&&0!==e.sourceScopes.length||e.operation)}function qu(e){for(const t of e){const e=t.costReductionRules.find(Ku);if(e)return{rule:e,samplingId:t.id}}return null}function Ju(e){return!e||e.disabled?[{text:" is ",variant:gu.Default},{text:"disabled",variant:gu.Action}]:[{text:`Drop ${100-e.percentageAtMost}%`,variant:gu.Action},{text:" of ",variant:gu.Default},{text:"traces across the entire cluster",variant:gu.Scope}]}var Yu;!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"}(Yu||(Yu={}));const Qu=qt(null),Zu=["50","25","10","1"];function eh(e){const t=String(e);return Zu.includes(t)?t:"custom"}const th=({category:t,sourceOptions:r=[],namespaceOptions:o=[],children:n})=>{const{formData:i,handleFormChange:a,resetFormData:s}=Ol(Jp(t)),[l,c]=Wt(null);Ht(()=>{s(Jp(t)),c(null)},[t]);const d=Vt(e=>{c(null),a(void 0,void 0,{...i,...e})},[i,a]),p=Vt(()=>{s(Jp(t)),c(null)},[t,s]),u=Xt(()=>({formType:Yu.Create,category:t,formData:i,handleChange:d,resetForm:p,duplicateWarning:l,setDuplicateWarning:c,sourceOptions:r,namespaceOptions:o}),[t,i,d,p,l,r,o]);return e(Qu.Provider,{value:u,children:n})},rh=({data:t,defaultEditMode:r,sourceOptions:o=[],namespaceOptions:n=[],children:i})=>{const[a,s]=Wt(!1),{formData:l,handleFormChange:c,resetFormData:d}=Ol(void 0),p=Gt(null),[u,h]=Wt(null);Ht(()=>{t!==p.current&&(p.current=t,t&&r?(d(mu(t)),h(null),s(!0)):(s(!1),h(null)))},[t,r]);const m=Vt(e=>{h(null),c(void 0,void 0,{...l,...e})},[l,c]),g=Vt(()=>{t&&(d(mu(t)),h(null),s(!0))},[t,d]),f=Vt(()=>{s(!1),h(null)},[]),y=Xt(()=>({formType:Yu.View,data:t,isEditing:a,formData:l,handleChange:m,handleEdit:g,handleCancelEdit:f,duplicateWarning:u,setDuplicateWarning:h,sourceOptions:o,namespaceOptions:n}),[t,a,l,m,g,f,u,o,n]);return e(Qu.Provider,{value:y,children:i})};function oh(e){const[t,r]=Wt(()=>0===e?"all":"sample"),[o,n]=Wt(()=>eh(e)),[i,a]=Wt(()=>"custom"===eh(e)?String(e):"");Ht(()=>{r(0===e?"all":"sample");const t=eh(e);n(t),a("custom"===t?String(e):"")},[e]);const s=Xt(()=>"all"===t?0:"custom"===o?Number(i)||0:Number(o),[t,o,i]);return{percentageMode:t,setPercentageMode:r,percentagePreset:o,setPercentagePreset:n,customPercentage:i,setCustomPercentage:a,resolvedPercentage:s}}const nh=({enabled:t,keepPercentage:r,children:o})=>{const[n,i]=Wt(t),a=oh(r);Ht(()=>{i(t)},[t]);const s=Xt(()=>Hu({enabled:n,keepPercentage:a.resolvedPercentage}),[n,a.resolvedPercentage]),l=Xt(()=>({formType:Yu.EditAutoNoisy,localEnabled:n,setLocalEnabled:i,...a,summary:s}),[n,a,s]);return e(Qu.Provider,{value:l,children:o})},ih=({enabled:t,dropPercentage:r,children:o})=>{const[n,i]=Wt(t),a=oh(r);Ht(()=>{i(t)},[t]);const s=Xt(()=>Ju(n?{disabled:!1,percentageAtMost:a.resolvedPercentage}:null),[n,a.resolvedPercentage]),l=Xt(()=>({formType:Yu.EditAutoCostReduction,localEnabled:n,setLocalEnabled:i,...a,summary:s}),[n,a,s]);return e(Qu.Provider,{value:l,children:o})},ah=({enabled:t,children:r})=>{const[o,n]=Wt(t);Ht(()=>{n(t)},[t]);const i=Xt(()=>Vu(o?{disabled:!1}:null),[o]),a=Xt(()=>({formType:Yu.EditAutoHighlyRelevant,localEnabled:o,setLocalEnabled:n,summary:i}),[o,i]);return e(Qu.Provider,{value:a,children:r})},sh=t=>{switch(t.formType){case Yu.Create:return e(th,{...t});case Yu.View:return e(rh,{...t});case Yu.EditAutoNoisy:return e(nh,{...t});case Yu.EditAutoCostReduction:return e(ih,{...t});case Yu.EditAutoHighlyRelevant:return e(ah,{...t})}};function lh(e){const t=Kt(Qu);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 ch=qt({snapshots:null,setSnapshots:()=>{},isFetching:!1,setIsFetching:()=>{},formData:[],handleSourceChange:()=>{},handleSelectAll:()=>{},formDiff:{},isFormDirty:!1}),dh=({children:t,selectedConnectionIds:r,initialInputs:o})=>{const{tier:n}=ac(),i=n===Lr.Onprem,{selectedStreamName:a}=Qs(),[s,l]=Wt(!1),[c,d]=Wt(null),[p,u]=Wt([]);Ht(()=>{c&&u(e=>{const t=((e,t)=>$r(((e,t)=>e.clusters.filter(({clusterId:e})=>!t||t.includes(e)))(e,t)))(c,r);return t.map(t=>{const r=e?.find(e=>e.clusterId===t.clusterId),n=r??t;if(o?.[t.clusterId]){const e=o[t.clusterId],r=$r(n);return e.forEach(e=>{const t=r.namespaces.find(t=>t.name===e.namespace);if(t)if(e.name&&e.kind){const r=t.workloads.find(t=>t.name===e.name&&t.kind===e.kind);r&&(r.selected=e.selected)}else t.selected=e.selected,e.selected&&t.workloads.forEach(e=>{sc.has(e.kind)&&!i||(e.selected=!0)})}),r}return n})})},[c,r,o]);const{formDiff:h,isFormDirty:m}=Xt(()=>{const e=((e,t,r)=>{const o={};return e.forEach(e=>{e.namespaces.forEach(n=>{const i=t.find(t=>t.clusterId===e.clusterId)?.namespaces.find(e=>e.name===n.name),a=n.selected||!1;if(a!==i?.selected)o[e.clusterId]||(o[e.clusterId]=[]),o[e.clusterId].push({namespace:n.name,selected:a,currentStreamName:r}),a?o[e.clusterId]=o[e.clusterId].filter(e=>e.namespace!==n.name||e.namespace===n.name&&(!e.name||!e.kind)):n.workloads.forEach(t=>{t.selected&&o[e.clusterId].push({namespace:n.name,name:t.name,kind:t.kind,selected:!0,currentStreamName:r})});else{const t=((e,t,r)=>{const o=[];return t.workloads.forEach(n=>{const i=e?.workloads.find(e=>e.name===n.name&&e.kind===n.kind);n.selected!==i?.selected&&o.push({namespace:t.name,name:n.name,kind:n.kind,selected:n.selected||!1,currentStreamName:r})}),o})(i,n,r);t.length>0&&(o[e.clusterId]||(o[e.clusterId]=[]),o[e.clusterId].push(...t))}})}),o})(p,c?.clusters||[],a);return{formDiff:e,isFormDirty:Object.keys(e).length>0}},[p,c,a]),g=Vt(e=>!i&&sc.has(e),[i]),f=Vt(({clusterId:e,workloadId:t,selected:r,auto:o})=>{u(n=>{const i=$r(n),a=i.findIndex(t=>t.clusterId===e);if(-1===a)return i;const s=i[a].namespaces.findIndex(e=>e.name===t.namespace);if(-1===s)return i;if(t.kind&&t.name){const e=i[a].namespaces[s].workloads.findIndex(e=>e.name===t.name&&e.kind===t.kind);if(-1===e)return i;const o="boolean"==typeof r?r:!i[a].namespaces[s].workloads[e].selected;if(i[a].namespaces[s].workloads[e].selected=o,o){const e=i[a].namespaces[s].workloads.filter(e=>!g(e.kind));e.every(e=>e.selected)&&(i[a].namespaces[s].selected=!0)}else i[a].namespaces[s].selected=!1}else{const e="boolean"==typeof o?o:!i[a].namespaces[s].selected;i[a].namespaces[s].selected=e,e?i[a].namespaces[s].workloads.forEach(e=>{g(e.kind)||(e.selected=!0)}):"boolean"!=typeof r||r||i[a].namespaces[s].workloads.forEach(e=>{e.selected=!1})}return i})},[g]),y=Vt(({clusterId:e,namespaceName:t,boolean:r,searchText:o="",searchBy:n="",filters:i})=>{u(a=>{const s=$r(a),l=n===jr.Namespace?o:"",c=n===jr.Source?o:"",d=!!l||!!c||!!i?.showOnlySelected;return s.forEach((o,n)=>{e&&o.clusterId!==e||o.namespaces.forEach(({name:e,workloads:o},a)=>{if(!t||e===t)if(d)if(t){o.forEach((e,t)=>{r&&g(e.kind)||dc(e,c,i||{showOnlySelected:!1})&&(s[n].namespaces[a].workloads[t].selected=r)});const e=s[n].namespaces[a].workloads.filter(e=>!g(e.kind)),t=e.every(e=>e.selected);s[n].namespaces[a].selected=t}else{if(!cc(s[n].namespaces[a],l,i||{showOnlySelected:!1}))return;s[n].namespaces[a].selected=r,o.forEach((e,t)=>{r&&g(e.kind)||(s[n].namespaces[a].workloads[t].selected=r)})}else s[n].namespaces[a].selected=r,o.forEach((e,t)=>{r&&g(e.kind)||(s[n].namespaces[a].workloads[t].selected=r)})})}),s})},[g]);return e(ch.Provider,{value:{snapshots:c,setSnapshots:d,isFetching:s,setIsFetching:l,formData:p,handleSourceChange:f,handleSelectAll:y,formDiff:h,isFormDirty:m},children:t})},ph=()=>Kt(ch),uh=qt({formType:void 0}),hh=({children:t,formType:r})=>{const o=Xt(()=>({formType:r}),[r]);return e(uh.Provider,{value:o,children:t})},mh=()=>Kt(uh),gh=o.div`
979
+ `,Bh=({items:r,children:o})=>{const{popupRef:n,popupOpen:i,setPopupOpen:a,popupPosition:s,handlePosition:l}=bd({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:240}),c=e=>{l(e.clientX,e.clientY),a("mouseleave"!==e.type)};return t(zh,{onMouseEnter:c,onMouseMove:c,onMouseLeave:c,children:[o,e(Yd,{ref:n,isOpen:i,top:s.top,left:s.left,asPortal:!0,style:{backgroundColor:"transparent",border:"none"},borderRadius:"0",padding:"0",maxWidth:"300px",children:e(Mh,{children:r.map((t,r)=>e(un,{size:sn.XXXS,children:t},r))})})]})},Uh=({parts:o})=>e(r,{children:o.map((o,n)=>{const i=e(Lh,{$variant:o.variant,$isMono:Ph.includes(o.variant),children:o.text});return t(jt,{children:[0!==n&&e(r,{children:" "}),o.tooltipItems?.length?e(Bh,{items:o.tooltipItems,children:i}):i]},`${o.variant}-${n}`)})});var jh;!function(e){e.Noisy="noisy",e.HighlyRelevant="highly-relevant",e.CostReduction="cost-reduction"}(jh||(jh={}));const Wh=[{value:jh.Noisy,label:"1. Noisy Operations",tooltip:"Rules that reduce noise from high-volume, low-value operations"},{value:jh.HighlyRelevant,label:"2. Highly Relevant Operations",tooltip:"Rules that prioritize important traces for retention"},{value:jh.CostReduction,label:"3. Cost Reduction",tooltip:"Rules that optimize costs by sampling less critical data"}],Hh={[jh.Noisy]:"This is the most efficient way to sample (with Head Sampling). Prefer to use it where possible.",[jh.HighlyRelevant]:'Any trace from the "Noisy Operations" category is sampled prior to checking highly relevance.',[jh.CostReduction]:"Cost reduction rules use Tail Sampling to drop traces that are unlikely to be useful for debugging or monitoring."},Xh={[jh.Noisy]:"Noisy Operations rules list",[jh.HighlyRelevant]:"Highly Relevant Operations rules list",[jh.CostReduction]:"Cost Reduction rules list"},Gh={[jh.Noisy]:"noisy",[jh.HighlyRelevant]:"highlyRelevant",[jh.CostReduction]:"costReduction"};function Vh(e){if(e.workloadName){const t=e.workloadKind?.toLowerCase()||"deployment";return e.workloadNamespace?`${t} '${e.workloadName}' in namespace '${e.workloadNamespace}'`:`${t} '${e.workloadName}'`}return e.workloadNamespace?`namespace '${e.workloadNamespace}'`:e.workloadLanguage?`${e.workloadLanguage} services`:""}function Kh(e){if(!e?.length)return[{text:" for ",variant:Fh.Default},{text:"all services in the cluster",variant:Fh.Scope}];const t=e.map(Vh).filter(Boolean);if(!t.length)return[{text:" for ",variant:Fh.Default},{text:"all services in the cluster",variant:Fh.Scope}];const r=[{text:" for ",variant:Fh.Default}],o=t.slice(0,2),n=t.slice(2);return o.forEach((e,t)=>{t>0&&r.push({text:", ",variant:Fh.Default}),r.push({text:e,variant:Fh.Scope})}),n.length>0&&r.push({text:` + ${n.length} more`,variant:Fh.Default,tooltipItems:n}),r}function qh(e,t){if(!e)return[];const r=(o=e).startsWith("/")?o.slice(1):o;var o;const n=[{text:" starting at ",variant:Fh.Default}];return t?n.push({text:`${t} /${r}`,variant:Fh.Endpoint}):n.push({text:`endpoint /${r}`,variant:Fh.Endpoint}),n}function Jh(e){const t=[];if(null!=e.percentageAtMost?(t.push({text:`Drop ${100-e.percentageAtMost}%`,variant:Fh.Action}),t.push({text:" of traces",variant:Fh.Default})):t.push({text:"Drop all traces",variant:Fh.Action}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method||e.operation.httpClient?.method;t.push(...qh(r,o));const n=e.operation.httpClient,i=n?.templatedPath||n?.templatedPathPrefix,a=n?.serverAddress;if((i||a)&&!r){const e=i&&a?`${a}/${i}`:i||a;t.push({text:" to ",variant:Fh.Default}),o?t.push({text:`${o} /${e}`,variant:Fh.Endpoint}):t.push({text:`/${e}`,variant:Fh.Endpoint})}}else t.push({text:" on ",variant:Fh.Default}),t.push({text:"any operation",variant:Fh.Endpoint});return t.push(...Kh(e.sourceScopes)),t}function Yh(e){const t=[];if(null!=e.percentageAtLeast?(t.push({text:`Keep at least ${e.percentageAtLeast}%`,variant:Fh.Action}),t.push({text:" of traces",variant:Fh.Default})):t.push({text:"Keep all traces",variant:Fh.Action}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method;t.push(...qh(r,o))}else t.push({text:" on ",variant:Fh.Default}),t.push({text:"any operation",variant:Fh.Endpoint});return t.push(...Kh(e.sourceScopes)),!e.error&&null!=e.durationAtLeastMs&&e.durationAtLeastMs>0&&(t.push({text:" with duration > ",variant:Fh.Default}),t.push({text:`${e.durationAtLeastMs}ms`,variant:Fh.Duration})),t}function Qh(e){const t=[];if(t.push({text:`Drop ${100-e.percentageAtMost}%`,variant:Fh.Action}),t.push({text:" of traces",variant:Fh.Default}),e.operation){const r=e.operation.httpServer?.route||e.operation.httpServer?.routePrefix,o=e.operation.httpServer?.method;t.push(...qh(r,o));const n=e.operation.kafkaConsumer?.kafkaTopic;n&&!r&&(t.push({text:" from ",variant:Fh.Default}),t.push({text:`topic '${n}'`,variant:Fh.Endpoint}))}else t.push({text:" on ",variant:Fh.Default}),t.push({text:"any operation",variant:Fh.Endpoint});return t.push(...Kh(e.sourceScopes)),t}function Zh(e){return e.error?"Error":null!=e.durationAtLeastMs?"Duration":"Relevance"}function em(e,t,r){const o=Gh[t],n=[];for(const i of e)switch(t){case jh.Noisy:for(const e of i.noisyOperations)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Jh(e),category:o});break;case jh.HighlyRelevant:for(const e of i.highlyRelevantOperations)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Yh(e),category:o,typeBadge:Zh(e)});break;case jh.CostReduction:for(const e of i.costReductionRules)r?.has(e.ruleId)||n.push({ruleId:e.ruleId,samplingId:i.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Qh(e),category:o})}return n}function tm(e,t){switch(e){case"noisy":return Jh(t);case"highlyRelevant":return Yh(t);case"costReduction":return Qh(t)}}function rm(e,t,r,o){for(const n of e)if(n.id===t)switch(o){case"noisy":{const e=n.noisyOperations.find(e=>e.ruleId===r);if(e)return{category:"noisy",samplingId:n.id,rule:e};break}case"highlyRelevant":{const e=n.highlyRelevantOperations.find(e=>e.ruleId===r);if(e)return{category:"highlyRelevant",samplingId:n.id,rule:e};break}case"costReduction":{const e=n.costReductionRules.find(e=>e.ruleId===r);if(e)return{category:"costReduction",samplingId:n.id,rule:e};break}}return null}function om(e,t){const r=rm(e,t.samplingId,t.rule.ruleId,t.category);return r?{...r,summary:tm(r.category,r.rule)}:null}function nm(e,t){const r=rm(e,t.samplingId,t.ruleId,t.category);return r?{...r,summary:t.summary}:null}function im(e){return null==e||Array.isArray(e)&&0===e.length?null:e}function am(e,t){return JSON.stringify({sourceScopes:im(e),operation:im(t)})}function sm(e,t,r,o){return JSON.stringify({sourceScopes:im(e),error:t??!1,durationAtLeastMs:im(r),operation:im(o)})}function lm(e,t){return JSON.stringify({sourceScopes:im(e),operation:im(t)})}function cm(e,t,r,o){switch(t){case"noisy":{const t=am(r.sourceScopes,r.operation);for(const r of e)for(const e of r.noisyOperations)if((!o||e.ruleId!==o)&&am(e.sourceScopes,e.operation)===t)return e.ruleId;return null}case"highlyRelevant":{const t=sm(r.sourceScopes,r.error,r.durationAtLeastMs,r.operation);for(const r of e)for(const e of r.highlyRelevantOperations)if((!o||e.ruleId!==o)&&sm(e.sourceScopes,e.error,e.durationAtLeastMs,e.operation)===t)return e.ruleId;return null}case"costReduction":{const t=lm(r.sourceScopes,r.operation);for(const r of e)for(const e of r.costReductionRules)if((!o||e.ruleId!==o)&&lm(e.sourceScopes,e.operation)===t)return e.ruleId;return null}}}function dm(e){if(!e||!e.enabled)return[{text:"Auto rule is ",variant:Fh.Default},{text:"disabled",variant:Fh.Action}];return[{text:`Keep ${e.keepPercentage??0}%`,variant:Fh.Action},{text:" of ",variant:Fh.Default},{text:"traces for kubelet health probes in the entire cluster",variant:Fh.Scope}]}function pm(e){return!(!0!==e.error||e.sourceScopes&&0!==e.sourceScopes.length||e.operation||null!=e.percentageAtLeast&&100!==e.percentageAtLeast)}function um(e){for(const t of e){const e=t.highlyRelevantOperations.find(pm);if(e)return{rule:e,samplingId:t.id}}return null}function hm(e){return!e||e.disabled?[{text:"Auto rule is ",variant:Fh.Default},{text:"disabled",variant:Fh.Action}]:[{text:"Keep all traces",variant:Fh.Action},{text:" of ",variant:Fh.Default},{text:"error traces across the entire cluster",variant:Fh.Scope}]}function mm(e){return!(e.sourceScopes&&0!==e.sourceScopes.length||e.operation)}function gm(e){for(const t of e){const e=t.costReductionRules.find(mm);if(e)return{rule:e,samplingId:t.id}}return null}function fm(e){return!e||e.disabled?[{text:" is ",variant:Fh.Default},{text:"disabled",variant:Fh.Action}]:[{text:`Drop ${100-e.percentageAtMost}%`,variant:Fh.Action},{text:" of ",variant:Fh.Default},{text:"traces across the entire cluster",variant:Fh.Scope}]}var ym;!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"}(ym||(ym={}));const xm=qt(null),bm=["50","25","10","1"];function vm(e){const t=String(e);return bm.includes(t)?t:"custom"}const $m=({category:t,sourceOptions:r=[],namespaceOptions:o=[],children:n})=>{const{formData:i,handleFormChange:a,resetFormData:s}=Zc(fh(t)),[l,c]=Wt(null);Ht(()=>{s(fh(t)),c(null)},[t]);const d=Vt(e=>{c(null),a(void 0,void 0,{...i,...e})},[i,a]),p=Vt(()=>{s(fh(t)),c(null)},[t,s]),u=Xt(()=>({formType:ym.Create,category:t,formData:i,handleChange:d,resetForm:p,duplicateWarning:l,setDuplicateWarning:c,sourceOptions:r,namespaceOptions:o}),[t,i,d,p,l,r,o]);return e(xm.Provider,{value:u,children:n})},wm=({data:t,defaultEditMode:r,sourceOptions:o=[],namespaceOptions:n=[],children:i})=>{const[a,s]=Wt(!1),{formData:l,handleFormChange:c,resetFormData:d}=Zc(void 0),p=Gt(null),[u,h]=Wt(null);Ht(()=>{t!==p.current&&(p.current=t,t&&r?(d(_h(t)),h(null),s(!0)):(s(!1),h(null)))},[t,r]);const m=Vt(e=>{h(null),c(void 0,void 0,{...l,...e})},[l,c]),g=Vt(()=>{t&&(d(_h(t)),h(null),s(!0))},[t,d]),f=Vt(()=>{s(!1),h(null)},[]),y=Xt(()=>({formType:ym.View,data:t,isEditing:a,formData:l,handleChange:m,handleEdit:g,handleCancelEdit:f,duplicateWarning:u,setDuplicateWarning:h,sourceOptions:o,namespaceOptions:n}),[t,a,l,m,g,f,u,o,n]);return e(xm.Provider,{value:y,children:i})};function Sm(e){const[t,r]=Wt(()=>0===e?"all":"sample"),[o,n]=Wt(()=>vm(e)),[i,a]=Wt(()=>"custom"===vm(e)?String(e):"");Ht(()=>{r(0===e?"all":"sample");const t=vm(e);n(t),a("custom"===t?String(e):"")},[e]);const s=Xt(()=>"all"===t?0:"custom"===o?Number(i)||0:Number(o),[t,o,i]);return{percentageMode:t,setPercentageMode:r,percentagePreset:o,setPercentagePreset:n,customPercentage:i,setCustomPercentage:a,resolvedPercentage:s}}const km=({enabled:t,keepPercentage:r,children:o})=>{const[n,i]=Wt(t),a=Sm(r);Ht(()=>{i(t)},[t]);const s=Xt(()=>dm({enabled:n,keepPercentage:a.resolvedPercentage}),[n,a.resolvedPercentage]),l=Xt(()=>({formType:ym.EditAutoNoisy,localEnabled:n,setLocalEnabled:i,...a,summary:s}),[n,a,s]);return e(xm.Provider,{value:l,children:o})},Cm=({enabled:t,dropPercentage:r,children:o})=>{const[n,i]=Wt(t),a=Sm(r);Ht(()=>{i(t)},[t]);const s=Xt(()=>fm(n?{disabled:!1,percentageAtMost:a.resolvedPercentage}:null),[n,a.resolvedPercentage]),l=Xt(()=>({formType:ym.EditAutoCostReduction,localEnabled:n,setLocalEnabled:i,...a,summary:s}),[n,a,s]);return e(xm.Provider,{value:l,children:o})},Em=({enabled:t,children:r})=>{const[o,n]=Wt(t);Ht(()=>{n(t)},[t]);const i=Xt(()=>hm(o?{disabled:!1}:null),[o]),a=Xt(()=>({formType:ym.EditAutoHighlyRelevant,localEnabled:o,setLocalEnabled:n,summary:i}),[o,i]);return e(xm.Provider,{value:a,children:r})},Am=t=>{switch(t.formType){case ym.Create:return e($m,{...t});case ym.View:return e(wm,{...t});case ym.EditAutoNoisy:return e(km,{...t});case ym.EditAutoCostReduction:return e(Cm,{...t});case ym.EditAutoHighlyRelevant:return e(Em,{...t})}};function Dm(e){const t=Kt(xm);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 Tm=qt({snapshots:null,setSnapshots:()=>{},isFetching:!1,setIsFetching:()=>{},formData:[],handleSourceChange:()=>{},handleSelectAll:()=>{},formDiff:{},isFormDirty:!1}),Im=({children:t,selectedConnectionIds:r,initialInputs:o})=>{const{tier:n}=Ed(),i=n===Lr.Onprem,{selectedStreamName:a}=xc(),[s,l]=Wt(!1),[c,d]=Wt(null),[p,u]=Wt([]);Ht(()=>{c&&u(e=>{const t=((e,t)=>$r(((e,t)=>e.clusters.filter(({clusterId:e})=>!t||t.includes(e)))(e,t)))(c,r);return t.map(t=>{const r=e?.find(e=>e.clusterId===t.clusterId),n=r??t;if(o?.[t.clusterId]){const e=o[t.clusterId],r=$r(n);return e.forEach(e=>{const t=r.namespaces.find(t=>t.name===e.namespace);if(t)if(e.name&&e.kind){const r=t.workloads.find(t=>t.name===e.name&&t.kind===e.kind);r&&(r.selected=e.selected)}else t.selected=e.selected,e.selected&&t.workloads.forEach(e=>{Ad.has(e.kind)&&!i||(e.selected=!0)})}),r}return n})})},[c,r,o]);const{formDiff:h,isFormDirty:m}=Xt(()=>{const e=((e,t,r)=>{const o={};return e.forEach(e=>{e.namespaces.forEach(n=>{const i=t.find(t=>t.clusterId===e.clusterId)?.namespaces.find(e=>e.name===n.name),a=n.selected||!1;if(a!==i?.selected)o[e.clusterId]||(o[e.clusterId]=[]),o[e.clusterId].push({namespace:n.name,selected:a,currentStreamName:r}),a?o[e.clusterId]=o[e.clusterId].filter(e=>e.namespace!==n.name||e.namespace===n.name&&(!e.name||!e.kind)):n.workloads.forEach(t=>{t.selected&&o[e.clusterId].push({namespace:n.name,name:t.name,kind:t.kind,selected:!0,currentStreamName:r})});else{const t=((e,t,r)=>{const o=[];return t.workloads.forEach(n=>{const i=e?.workloads.find(e=>e.name===n.name&&e.kind===n.kind);n.selected!==i?.selected&&o.push({namespace:t.name,name:n.name,kind:n.kind,selected:n.selected||!1,currentStreamName:r})}),o})(i,n,r);t.length>0&&(o[e.clusterId]||(o[e.clusterId]=[]),o[e.clusterId].push(...t))}})}),o})(p,c?.clusters||[],a);return{formDiff:e,isFormDirty:Object.keys(e).length>0}},[p,c,a]),g=Vt(e=>!i&&Ad.has(e),[i]),f=Vt(({clusterId:e,workloadId:t,selected:r,auto:o})=>{u(n=>{const i=$r(n),a=i.findIndex(t=>t.clusterId===e);if(-1===a)return i;const s=i[a].namespaces.findIndex(e=>e.name===t.namespace);if(-1===s)return i;if(t.kind&&t.name){const e=i[a].namespaces[s].workloads.findIndex(e=>e.name===t.name&&e.kind===t.kind);if(-1===e)return i;const o="boolean"==typeof r?r:!i[a].namespaces[s].workloads[e].selected;if(i[a].namespaces[s].workloads[e].selected=o,o){const e=i[a].namespaces[s].workloads.filter(e=>!g(e.kind));e.every(e=>e.selected)&&(i[a].namespaces[s].selected=!0)}else i[a].namespaces[s].selected=!1}else{const e="boolean"==typeof o?o:!i[a].namespaces[s].selected;i[a].namespaces[s].selected=e,e?i[a].namespaces[s].workloads.forEach(e=>{g(e.kind)||(e.selected=!0)}):"boolean"!=typeof r||r||i[a].namespaces[s].workloads.forEach(e=>{e.selected=!1})}return i})},[g]),y=Vt(({clusterId:e,namespaceName:t,boolean:r,searchText:o="",searchBy:n="",filters:i})=>{u(a=>{const s=$r(a),l=n===jr.Namespace?o:"",c=n===jr.Source?o:"",d=!!l||!!c||!!i?.showOnlySelected;return s.forEach((o,n)=>{e&&o.clusterId!==e||o.namespaces.forEach(({name:e,workloads:o},a)=>{if(!t||e===t)if(d)if(t){o.forEach((e,t)=>{r&&g(e.kind)||Id(e,c,i||{showOnlySelected:!1})&&(s[n].namespaces[a].workloads[t].selected=r)});const e=s[n].namespaces[a].workloads.filter(e=>!g(e.kind)),t=e.every(e=>e.selected);s[n].namespaces[a].selected=t}else{if(!Td(s[n].namespaces[a],l,i||{showOnlySelected:!1}))return;s[n].namespaces[a].selected=r,o.forEach((e,t)=>{r&&g(e.kind)||(s[n].namespaces[a].workloads[t].selected=r)})}else s[n].namespaces[a].selected=r,o.forEach((e,t)=>{r&&g(e.kind)||(s[n].namespaces[a].workloads[t].selected=r)})})}),s})},[g]);return e(Tm.Provider,{value:{snapshots:c,setSnapshots:d,isFetching:s,setIsFetching:l,formData:p,handleSourceChange:f,handleSelectAll:y,formDiff:h,isFormDirty:m},children:t})},Nm=()=>Kt(Tm),Rm=qt({formType:void 0}),Om=({children:t,formType:r})=>{const o=Xt(()=>({formType:r}),[r]);return e(Rm.Provider,{value:o,children:t})},_m=()=>Kt(Rm),Fm=o.div`
980
980
  display: flex;
981
981
 
982
982
  align-items: center;
983
983
  gap: 6px;
984
984
  margin-bottom: 4px;
985
- `,fh=o(Di)`
985
+ `,Pm=o(Di)`
986
986
  font-size: 14px;
987
987
  opacity: 0.8;
988
988
  line-height: 22px;
@@ -990,16 +990,16 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
990
990
  white-space: nowrap;
991
991
  text-overflow: ellipsis;
992
992
  color: ${({$status:e,theme:t})=>e?t.text[e]:t.text.secondary};
993
- `,yh=o(Di)`
993
+ `,Lm=o(Di)`
994
994
  font-size: 12px;
995
995
  color: ${({theme:e})=>e.text.darker_grey};
996
996
  opacity: 0.8;
997
- `,xh=({title:r,required:o,tooltip:n,style:i,status:a})=>r?e(gh,{style:i,children:t(zc,{text:n,withIcon:!0,children:[e(fh,{$status:a,children:r}),!o&&e(yh,{children:"(optional)"})]})}):null,bh=o.div`
997
+ `,zm=({title:r,required:o,tooltip:n,style:i,status:a})=>r?e(Fm,{style:i,children:t(np,{text:n,withIcon:!0,children:[e(Pm,{$status:a,children:r}),!o&&e(Lm,{children:"(optional)"})]})}):null,Mm=o.div`
998
998
  display: flex;
999
999
  flex-direction: column;
1000
1000
  position: relative;
1001
1001
  width: 100%;
1002
- `,vh=o.div`
1002
+ `,Bm=o.div`
1003
1003
  width: 100%;
1004
1004
  display: flex;
1005
1005
  align-items: center;
@@ -1025,7 +1025,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1025
1025
  &:focus-within {
1026
1026
  border-color: ${({theme:e})=>e.colors.secondary};
1027
1027
  }
1028
- `,$h=o.input`
1028
+ `,Um=o.input`
1029
1029
  padding-left: ${({$hasIcon:e})=>e?"0":"16px"};
1030
1030
  flex: 1;
1031
1031
  min-width: 150px;
@@ -1054,13 +1054,13 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1054
1054
  -webkit-appearance: none;
1055
1055
  margin: 0;
1056
1056
  }
1057
- `,wh=o.div`
1057
+ `,jm=o.div`
1058
1058
  display: flex;
1059
1059
  align-items: center;
1060
1060
  margin-left: 12px;
1061
- `,Sh=o(wh)`
1061
+ `,Wm=o(jm)`
1062
1062
  cursor: pointer;
1063
- `,kh=o.button`
1063
+ `,Hm=o.button`
1064
1064
  background-color: ${({theme:e})=>e.colors.primary};
1065
1065
  border: none;
1066
1066
  color: ${({theme:e})=>e.text.secondary};
@@ -1075,15 +1075,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1075
1075
  background-color: ${({theme:e})=>e.colors.border};
1076
1076
  cursor: not-allowed;
1077
1077
  }
1078
- `,Ch=({icon:r,buttonLabel:o,onButtonClick:n,hasError:a,errorMessage:s,title:l,tooltip:c,required:d,value:p,onChange:u,type:h=Xr.Text,name:m,status:g,...f})=>{const y=i(),x=h===Xr.Password,[b,v]=Wt(!1);return t(bh,{children:[e(xh,{title:l,required:d,tooltip:c,status:g}),t(vh,{$disabled:f.disabled,$hasError:a||!!s,$isActive:!!f.autoFocus,$status:g,children:[x?e(Sh,{onClick:()=>v(e=>!e),children:e(b?At:Dt,{size:14,fill:y.text.grey})}):r?e(wh,{children:e(r,{size:14,fill:y.text.grey})}):null,e($h,{"data-id":m,type:b||h===Xr.Number?Xr.Text:h,$hasIcon:!!r||x,name:m,value:p,onChange:e=>{e.stopPropagation(),h===Xr.Number&&(e.target.value=gi(e.target.value)),u?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...f}),o&&n&&e(kh,{onClick:n,disabled:f.disabled,children:o})]}),!!s&&e(Ni,{children:s})]})},Eh=o.div`
1078
+ `,Xm=({icon:r,buttonLabel:o,onButtonClick:n,hasError:a,errorMessage:s,title:l,tooltip:c,required:d,value:p,onChange:u,type:h=Xr.Text,name:m,status:g,...f})=>{const y=i(),x=h===Xr.Password,[b,v]=Wt(!1);return t(Mm,{children:[e(zm,{title:l,required:d,tooltip:c,status:g}),t(Bm,{$disabled:f.disabled,$hasError:a||!!s,$isActive:!!f.autoFocus,$status:g,children:[x?e(Wm,{onClick:()=>v(e=>!e),children:e(b?At:Dt,{size:14,fill:y.text.grey})}):r?e(jm,{children:e(r,{size:14,fill:y.text.grey})}):null,e(Um,{"data-id":m,type:b||h===Xr.Number?Xr.Text:h,$hasIcon:!!r||x,name:m,value:p,onChange:e=>{e.stopPropagation(),h===Xr.Number&&(e.target.value=gi(e.target.value)),u?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},...f}),o&&n&&e(Hm,{onClick:n,disabled:f.disabled,children:o})]}),!!s&&e(Ni,{children:s})]})},Gm=o.div`
1079
1079
  display: flex;
1080
1080
  flex-direction: column;
1081
1081
  min-width: 120px;
1082
1082
  width: 100%;
1083
1083
  opacity: ${({$disabled:e})=>e?.5:1};
1084
- `,Ah=o.div`
1084
+ `,Vm=o.div`
1085
1085
  position: relative;
1086
- `,Dh=o.div`
1086
+ `,Km=o.div`
1087
1087
  display: flex;
1088
1088
  align-items: center;
1089
1089
  justify-content: space-between;
@@ -1109,14 +1109,14 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1109
1109
  &:hover {
1110
1110
  border-color: ${({$isMulti:e,$hasSelections:t,$disabled:r,theme:o})=>r?"auto":e&&t?o.colors.border:o.colors.secondary};
1111
1111
  }
1112
- `,Th=o.div`
1112
+ `,qm=o.div`
1113
1113
  display: flex;
1114
1114
  align-items: center;
1115
1115
  gap: 4px;
1116
- `,Ih=({options:r,value:o,onSelect:n,onDeselect:i,title:a,tooltip:s,placeholder:l,disabled:c=!1,isMulti:d=!1,showSearch:p=!1,required:u=!1,errorMessage:h,hasError:m=!1,status:g})=>{const[f,y]=Wt(!1),[x,b]=Wt(!1),v=Gt(null);Yl(v,()=>y(!1));const $=()=>{(()=>{if(v.current){const e=v.current.getBoundingClientRect().bottom+300>window.innerHeight;b(e)}})(),y(e=>!e)},w=Array.isArray(o)?o.length:0;return t(Eh,{$disabled:c,children:[e(xh,{title:a,required:u,tooltip:s,status:g}),t(Ah,{ref:v,children:[t(Dh,{$isOpen:f,$isMulti:d,$hasSelections:!!Array.isArray(o)&&!!o.length,$hasError:!!h||m,$status:g,$disabled:c,onClick:()=>!c&&$(),children:[e(_h,{value:o,placeholder:l,onDeselect:i}),t(Th,{children:[d&&e(Dl,{label:w,filled:!!w}),e(Ed,{extend:f})]})]}),f&&e(Lh,{openUpwards:x,options:r,value:o,onSelect:e=>{n?.(e),d||$()},onDeselect:e=>{i?.(e),d||$()},isMulti:d,showSearch:p})]}),!!h&&e(Ni,{children:h})]})},Nh=o(Th)`
1116
+ `,Jm=({options:r,value:o,onSelect:n,onDeselect:i,title:a,tooltip:s,placeholder:l,disabled:c=!1,isMulti:d=!1,showSearch:p=!1,required:u=!1,errorMessage:h,hasError:m=!1,status:g})=>{const[f,y]=Wt(!1),[x,b]=Wt(!1),v=Gt(null);yd(v,()=>y(!1));const $=()=>{(()=>{if(v.current){const e=v.current.getBoundingClientRect().bottom+300>window.innerHeight;b(e)}})(),y(e=>!e)},w=Array.isArray(o)?o.length:0;return t(Gm,{$disabled:c,children:[e(zm,{title:a,required:u,tooltip:s,status:g}),t(Vm,{ref:v,children:[t(Km,{$isOpen:f,$isMulti:d,$hasSelections:!!Array.isArray(o)&&!!o.length,$hasError:!!h||m,$status:g,$disabled:c,onClick:()=>!c&&$(),children:[e(eg,{value:o,placeholder:l,onDeselect:i}),t(qm,{children:[d&&e(Kc,{label:w,filled:!!w}),e(Gp,{extend:f})]})]}),f&&e(og,{openUpwards:x,options:r,value:o,onSelect:e=>{n?.(e),d||$()},onDeselect:e=>{i?.(e),d||$()},isMulti:d,showSearch:p})]}),!!h&&e(Ni,{children:h})]})},Ym=o(qm)`
1117
1117
  max-width: calc(100% - 50px);
1118
1118
  overflow-x: auto;
1119
- `,Rh=o(Di)`
1119
+ `,Qm=o(Di)`
1120
1120
  display: flex;
1121
1121
  align-items: center;
1122
1122
  gap: 2px;
@@ -1131,7 +1131,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1131
1131
  transition: transform 0.3s;
1132
1132
  }
1133
1133
  }
1134
- `,Oh=o(Di)``,_h=({value:r,placeholder:o,onDeselect:n})=>{const a=i();return Array.isArray(r)?r.length?e(Nh,{children:r.map(r=>t(Rh,{size:14,children:[r.value,e(Ec,{orientation:"vertical",length:"10px",margin:"0 4px"}),e(xt,{size:12,onClick:e=>{e.stopPropagation(),n?.(r)}})]},`multi-label-${r.id}`))}):e(Oh,{size:14,color:a.text.darker_grey,children:o}):e(Oh,{size:14,color:r?.value?void 0:a.text.darker_grey,children:r?.value||o})},Fh=o.div`
1134
+ `,Zm=o(Di)``,eg=({value:r,placeholder:o,onDeselect:n})=>{const a=i();return Array.isArray(r)?r.length?e(Ym,{children:r.map(r=>t(Qm,{size:14,children:[r.value,e(Gd,{orientation:"vertical",length:"10px",margin:"0 4px"}),e(xt,{size:12,onClick:e=>{e.stopPropagation(),n?.(r)}})]},`multi-label-${r.id}`))}):e(Zm,{size:14,color:a.text.darker_grey,children:o}):e(Zm,{size:14,color:r?.value?void 0:a.text.darker_grey,children:r?.value||o})},tg=o.div`
1135
1135
  position: absolute;
1136
1136
  ${({$openUpwards:e})=>e?"bottom":"top"}: calc(100% + 8px);
1137
1137
  left: 0;
@@ -1146,11 +1146,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1146
1146
  background-color: ${({theme:e})=>e.colors.dropdown_bg_2};
1147
1147
  border: 1px solid ${({theme:e})=>e.colors.border};
1148
1148
  border-radius: 24px;
1149
- `,Ph=o.div`
1149
+ `,rg=o.div`
1150
1150
  display: flex;
1151
1151
  flex-direction: column;
1152
1152
  align-items: center;
1153
- `,Lh=({openUpwards:r,options:o,value:n,onSelect:i,onDeselect:a,isMulti:s,showSearch:l})=>{const[c,d]=Wt(""),p=o.filter(e=>e.value?.toLowerCase().includes(c?.toLowerCase()));return t(Fh,{$openUpwards:r,children:[l&&t(Ph,{children:[e(Ch,{placeholder:"Search...",icon:Tt,value:c,onChange:e=>d(e.target.value)}),e(Ec,{thickness:1,margin:"8px 0 0 0"})]}),0===p.length?e(hp,{subTitle:l&&c?void 0:" "}):p.map((t,r)=>e(Mh,{option:t,value:n,isMulti:s,onSelect:i,onDeselect:a},`dropdown-option-${t.id||r}`))]})},zh=o.div`
1153
+ `,og=({openUpwards:r,options:o,value:n,onSelect:i,onDeselect:a,isMulti:s,showSearch:l})=>{const[c,d]=Wt(""),p=o.filter(e=>e.value?.toLowerCase().includes(c?.toLowerCase()));return t(tg,{$openUpwards:r,children:[l&&t(rg,{children:[e(Xm,{placeholder:"Search...",icon:Tt,value:c,onChange:e=>d(e.target.value)}),e(Gd,{thickness:1,margin:"8px 0 0 0"})]}),0===p.length?e(Ou,{subTitle:l&&c?void 0:" "}):p.map((t,r)=>e(ig,{option:t,value:n,isMulti:s,onSelect:i,onDeselect:a},`dropdown-option-${t.id||r}`))]})},ng=o.div`
1154
1154
  padding: 8px 12px;
1155
1155
  cursor: pointer;
1156
1156
  display: flex;
@@ -1159,23 +1159,23 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1159
1159
  border-radius: 32px;
1160
1160
  &:hover,
1161
1161
  &.selected {
1162
- background: ${({theme:e})=>e.colors.majestic_blue+bl["024"]};
1162
+ background: ${({theme:e})=>e.colors.majestic_blue+Mc["024"]};
1163
1163
  }
1164
- `,Mh=({option:r,value:o,isMulti:n,onSelect:a,onDeselect:s})=>{const l=i(),c=Array.isArray(o)?!!o?.find(e=>e.id===r.id):o?.id===r.id,d=e=>e?a?.(r):s?.(r);return n?e(zh,{className:c?"selected":"",onClick:()=>d(!c),children:e(ld,{title:r.value||"",titleColor:l.text.secondary,value:c,onChange:d,style:{width:"100%"}})}):t(zh,{className:c?"selected":"",onClick:()=>c?s?.(r):a?.(r),children:[t(_n,{$gap:8,children:[r.icon&&e(r.icon,{}),e(Di,{size:14,children:r.value})]}),c&&e(ft,{})]})},Bh=o(Fn)`
1164
+ `,ig=({option:r,value:o,isMulti:n,onSelect:a,onDeselect:s})=>{const l=i(),c=Array.isArray(o)?!!o?.find(e=>e.id===r.id):o?.id===r.id,d=e=>e?a?.(r):s?.(r);return n?e(ng,{className:c?"selected":"",onClick:()=>d(!c),children:e(Dp,{title:r.value||"",titleColor:l.text.secondary,value:c,onChange:d,style:{width:"100%"}})}):t(ng,{className:c?"selected":"",onClick:()=>c?s?.(r):a?.(r),children:[t(_n,{$gap:8,children:[r.icon&&e(r.icon,{}),e(Di,{size:14,children:r.value})]}),c&&e(ft,{})]})},ag=o(Fn)`
1165
1165
  gap: 12px;
1166
- `,Uh=o(_n)`
1166
+ `,sg=o(_n)`
1167
1167
  width: 100%;
1168
1168
  gap: 12px;
1169
1169
  align-items: flex-end;
1170
- `,jh=({clientX:r=0,flipX:o,clientY:n=0,flipY:a,isOpen:s,onClose:l,onSave:c,withDelete:d,onDelete:p,title:u,titleTooltip:h,warning:m,children:g})=>{const f=i(),{popupRef:y,popupPosition:x,handlePosition:b}=Zl({onClickOutside:l});return ql({key:"Enter",active:s},c),Ht(()=>b(r,n),[r,n]),0===x.top&&0!==n||0===x.left&&0!==r?null:e(Nc,{ref:y,isOpen:s,top:a?void 0:x.top,bottom:a?x.top:void 0,left:o?void 0:x.left,right:o?x.left:void 0,padding:"24px",children:t(Bh,{children:[e(zc,{text:h,withIcon:!0,children:e(Di,{size:14,children:u})}),t(Uh,{children:[g,t(_n,{$gap:6,children:[e(Uc,{withBorder:!0,onClick:l,tooltip:"Cancel",children:e(xt,{})}),e(Uc,{withBorder:!0,backgroundColor:f.colors.secondary,onClick:c,tooltip:"Save",children:e(ft,{fill:f.text.primary})}),d&&e(Uc,{onClick:p,tooltip:"Undo",children:e(It,{})})]})]}),m&&e(Jc,{type:Gr.Warning,message:m})]})})},Wh=o.div`
1170
+ `,lg=({clientX:r=0,flipX:o,clientY:n=0,flipY:a,isOpen:s,onClose:l,onSave:c,withDelete:d,onDelete:p,title:u,titleTooltip:h,warning:m,children:g})=>{const f=i(),{popupRef:y,popupPosition:x,handlePosition:b}=bd({onClickOutside:l});return gd({key:"Enter",active:s},c),Ht(()=>b(r,n),[r,n]),0===x.top&&0!==n||0===x.left&&0!==r?null:e(Yd,{ref:y,isOpen:s,top:a?void 0:x.top,bottom:a?x.top:void 0,left:o?void 0:x.left,right:o?x.left:void 0,padding:"24px",children:t(ag,{children:[e(np,{text:h,withIcon:!0,children:e(Di,{size:14,children:u})}),t(sg,{children:[g,t(_n,{$gap:6,children:[e(sp,{withBorder:!0,onClick:l,tooltip:"Cancel",children:e(xt,{})}),e(sp,{withBorder:!0,backgroundColor:f.colors.secondary,onClick:c,tooltip:"Save",children:e(ft,{fill:f.text.primary})}),d&&e(sp,{onClick:p,tooltip:"Undo",children:e(It,{})})]})]}),m&&e(fp,{type:Gr.Warning,message:m})]})})},cg=o.div`
1171
1171
  position: relative;
1172
- `,Hh=({defaultLanguage:r=Br.Unknown,defaultVersion:o="",defaultOtelDistroName:n=null,handleSave:i})=>{const{tier:a}=ac(),{addNotification:s}=nl(),{formData:l,handleFormChange:c,resetFormData:d}=Ol({language:r,version:o,otelDistroName:n}),[p,u]=Wt(!1),h=()=>{u(!1),d()},m=Xt(()=>{if(!l.language)return[];const e=Ks[l.language].community,t=a===Lr.Onprem?Ks[l.language].enterprise:[];return e.concat(t)},[l.language,a]);return t(Wh,{children:[e(Uc,{tooltip:Ao.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{u(!0)},children:e(kt,{})}),e(jh,{flipX:!0,clientX:36,isOpen:p,onClose:h,onSave:async()=>{!l.version||ci(l.version)?(await i({...l}),h()):s({type:Gr.Warning,message:Eo.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await i({language:null,version:"",otelDistroName:null}),h()},title:Ao.OVERRIDE_RUNTIME_DETAILS,warning:Ao.OVERRIDE_RUNTIME_WARNING,children:t(Fn,{$gap:12,children:[t(_n,{$gap:12,children:[e(Ih,{title:Ao.LANGUAGE,options:Gs,value:Gs.find(e=>e.id===l.language),onSelect:e=>{c("language",e.id),c("version",""),c("otelDistroName",null)},required:!0}),e(Ch,{title:Ao.RUNTIME_VERSION,placeholder:Ao.VERSION_PLACEHOLDER,value:l.version,onChange:e=>c("version",e.target.value),required:!1})]}),l.language&&e(Ih,{title:"Otel Distro Name",options:m,value:m.find(e=>e.id===l.otelDistroName),onSelect:e=>c("otelDistroName",e.id),required:!1})]})})]})},Xh=o(_n)`
1172
+ `,dg=({defaultLanguage:r=Br.Unknown,defaultVersion:o="",defaultOtelDistroName:n=null,handleSave:i})=>{const{tier:a}=Ed(),{addNotification:s}=kc(),{formData:l,handleFormChange:c,resetFormData:d}=Zc({language:r,version:o,otelDistroName:n}),[p,u]=Wt(!1),h=()=>{u(!1),d()},m=Xt(()=>{if(!l.language)return[];const e=mc[l.language].community,t=a===Lr.Onprem?mc[l.language].enterprise:[];return e.concat(t)},[l.language,a]);return t(cg,{children:[e(sp,{tooltip:Ao.OVERRIDE_RUNTIME_DETAILS,size:32,onClick:()=>{u(!0)},children:e(kt,{})}),e(lg,{flipX:!0,clientX:36,isOpen:p,onClose:h,onSave:async()=>{!l.version||ci(l.version)?(await i({...l}),h()):s({type:Gr.Warning,message:Eo.INVALID_VERSION,hideFromHistory:!0})},withDelete:!0,onDelete:async()=>{await i({language:null,version:"",otelDistroName:null}),h()},title:Ao.OVERRIDE_RUNTIME_DETAILS,warning:Ao.OVERRIDE_RUNTIME_WARNING,children:t(Fn,{$gap:12,children:[t(_n,{$gap:12,children:[e(Jm,{title:Ao.LANGUAGE,options:uc,value:uc.find(e=>e.id===l.language),onSelect:e=>{c("language",e.id),c("version",""),c("otelDistroName",null)},required:!0}),e(Xm,{title:Ao.RUNTIME_VERSION,placeholder:Ao.VERSION_PLACEHOLDER,value:l.version,onChange:e=>c("version",e.target.value),required:!1})]}),l.language&&e(Jm,{title:"Otel Distro Name",options:m,value:m.find(e=>e.id===l.otelDistroName),onSelect:e=>c("otelDistroName",e.id),required:!1})]})})]})},pg=o(_n)`
1173
1173
  width: 100%;
1174
1174
  justify-content: center;
1175
- `,Gh=({containerName:o,runtimeInfo:n,agentEnabled:a,overrides:s,callbackRuntimeOverride:l})=>{const c=i(),d=s?.runtimeInfo??n,p=d?.language??Br.Unknown,u=d?.runtimeVersion??"",h=null!=s?.runtimeInfo,m=a?.agentEnabled??!1,g=a?.agentEnabledStatus?.message??"",f=a?.otelDistroName??null,y=m?Gr.Success:g?Gr.Info:Gr.Warning,x=m?Vr.INSTRUMENTED:g?Vr.NOT_INSTRUMENTED:Vr.INSTRUMENTING;return e(np,{title:o,subTitle:`${p?Xs[p]:"no runtime info"}`+(u?` • Runtime Version: ${u}`:""),iconProps:{icon:Lo(p)},extendableProps:{isExtended:!!g,renderExtended:()=>e(Xh,{children:e(Di,{size:12,family:"secondary",color:c.text.info,children:di(g)})})},renderActions:()=>t(r,{children:[e(Ld,{status:y,title:x,subtitle:f||void 0,withIcon:!0,withBorder:!0}),h&&e(Ld,{status:Gr.Default,forceIcon:Nt,title:Ao.OVERIDDEN,withIcon:!0,withBorder:!0}),l&&e(Hh,{defaultLanguage:p,defaultVersion:u??"",defaultOtelDistroName:f,handleSave:e=>l({...e,containerName:o})})]})})},Vh=o.tr`
1175
+ `,ug=({containerName:o,runtimeInfo:n,agentEnabled:a,overrides:s,callbackRuntimeOverride:l})=>{const c=i(),d=s?.runtimeInfo??n,p=d?.language??Br.Unknown,u=d?.runtimeVersion??"",h=null!=s?.runtimeInfo,m=a?.agentEnabled??!1,g=a?.agentEnabledStatus?.message??"",f=a?.otelDistroName??null,y=m?Gr.Success:g?Gr.Info:Gr.Warning,x=m?Vr.INSTRUMENTED:g?Vr.NOT_INSTRUMENTED:Vr.INSTRUMENTING;return e(ku,{title:o,subTitle:`${p?pc[p]:"no runtime info"}`+(u?` • Runtime Version: ${u}`:""),iconProps:{icon:Lo(p)},extendableProps:{isExtended:!!g,renderExtended:()=>e(pg,{children:e(Di,{size:12,family:"secondary",color:c.text.info,children:di(g)})})},renderActions:()=>t(r,{children:[e(ou,{status:y,title:x,subtitle:f||void 0,withIcon:!0,withBorder:!0}),h&&e(ou,{status:Gr.Default,forceIcon:Nt,title:Ao.OVERIDDEN,withIcon:!0,withBorder:!0}),l&&e(dg,{defaultLanguage:p,defaultVersion:u??"",defaultOtelDistroName:f,handleSave:e=>l({...e,containerName:o})})]})})},hg=o.tr`
1176
1176
  cursor: ${({$withHover:e})=>e?"pointer":"default"};
1177
1177
  opacity: ${({$faded:e})=>e?.5:1};
1178
- `,Kh=o.td`
1178
+ `,mg=o.td`
1179
1179
  position: relative;
1180
1180
  width: fit-content;
1181
1181
  padding: 16px 8px 16px ${({$isFirst:e})=>e?"16px":"8px"};
@@ -1183,7 +1183,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1183
1183
  font-family: ${({theme:e})=>e.font_family.primary};
1184
1184
  font-size: 14px;
1185
1185
  white-space: nowrap;
1186
- `,qh=o(Di)`
1186
+ `,gg=o(Di)`
1187
1187
  font-size: 14px;
1188
1188
  color: ${({$color:e,theme:t})=>e??t.text.secondary};
1189
1189
  line-height: 16px;
@@ -1196,7 +1196,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1196
1196
  display: -webkit-box;
1197
1197
  -webkit-line-clamp: 2;
1198
1198
  -webkit-box-orient: vertical;
1199
- `,Jh=o.div`
1199
+ `,fg=o.div`
1200
1200
  position: absolute;
1201
1201
  top: 0;
1202
1202
  left: 0;
@@ -1204,57 +1204,57 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1204
1204
  width: ${({$width:e})=>e}px;
1205
1205
  height: ${({$height:e})=>e}px;
1206
1206
  border-radius: 16px;
1207
- background-color: ${({theme:e,$hovered:t,$status:r})=>t?r?e.text[r]+bl["020"]:e.colors.majestic_blue+bl["030"]:r?e.text[r]+bl["010"]:e.colors.secondary+bl["005"]};
1208
- `,Yh=({index:r,columns:o,cells:n,onClick:i,status:a,faded:s})=>{const{containerRef:l,containerHeight:c,containerWidth:d}=Ml(),[p,u]=Wt(!1);return e(Vh,{ref:l,onMouseEnter:()=>!!i&&u(!0),onMouseLeave:()=>!!i&&u(!1),onClick:()=>!!i&&i(),$withHover:!!i,$faded:s,children:o.map(({key:o},i)=>{const s=n.find(({columnKey:e})=>e===o);if(!s)return null;const{value:l,textColor:u,withTooltip:h,icon:m,component:g}=s;return t(Kh,{$isFirst:0===i,children:[m?e(Vd,{icon:m}):g?e(g,{}):e(zc,{text:h&&l?String(l):"",children:e(qh,{$color:u,children:oi(l)?"-":l})}),0===i&&e(Jh,{$height:c,$width:d,$top:c*r,$hovered:p,$status:a})]},`table-row-${o}-${l}-${r}-${i}`)})})},Qh=o.div`
1207
+ background-color: ${({theme:e,$hovered:t,$status:r})=>t?r?e.text[r]+Mc["020"]:e.colors.majestic_blue+Mc["030"]:r?e.text[r]+Mc["010"]:e.colors.secondary+Mc["005"]};
1208
+ `,yg=({index:r,columns:o,cells:n,onClick:i,status:a,faded:s})=>{const{containerRef:l,containerHeight:c,containerWidth:d}=id(),[p,u]=Wt(!1);return e(hg,{ref:l,onMouseEnter:()=>!!i&&u(!0),onMouseLeave:()=>!!i&&u(!1),onClick:()=>!!i&&i(),$withHover:!!i,$faded:s,children:o.map(({key:o},i)=>{const s=n.find(({columnKey:e})=>e===o);if(!s)return null;const{value:l,textColor:u,withTooltip:h,icon:m,component:g}=s;return t(mg,{$isFirst:0===i,children:[m?e(hu,{icon:m}):g?e(g,{}):e(np,{text:h&&l?String(l):"",children:e(gg,{$color:u,children:oi(l)?"-":l})}),0===i&&e(fg,{$height:c,$width:d,$top:c*r,$hovered:p,$status:a})]},`table-row-${o}-${l}-${r}-${i}`)})})},xg=o.div`
1209
1209
  width: 100%;
1210
- `,Zh=o.table`
1210
+ `,bg=o.table`
1211
1211
  position: relative;
1212
1212
  z-index: 0;
1213
1213
  width: 100%;
1214
1214
  border-collapse: separate;
1215
1215
  border-spacing: 0 12px;
1216
- `,em=o.thead`
1216
+ `,vg=o.thead`
1217
1217
  // only supported with "border-collapse: collapse;"
1218
1218
  // border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1219
1219
  // border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1220
- `,tm=o.th`
1220
+ `,$g=o.th`
1221
1221
  // only required with "border-collapse: separate;"
1222
1222
  border-top: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1223
1223
  border-bottom: 1px solid ${({theme:e})=>e.colors.dropdown_bg_2};
1224
1224
 
1225
1225
  padding: 8px;
1226
- `,rm=o(_n)`
1226
+ `,wg=o(_n)`
1227
1227
  cursor: pointer;
1228
1228
  &:hover {
1229
1229
  * {
1230
1230
  color: ${({theme:e})=>e.text.secondary};
1231
1231
  }
1232
1232
  }
1233
- `,om=o(Di)`
1233
+ `,Sg=o(Di)`
1234
1234
  color: ${({theme:e})=>e.text.darker_grey};
1235
1235
  font-family: ${({theme:e})=>e.font_family.secondary};
1236
1236
  text-transform: uppercase;
1237
1237
  font-size: 12px;
1238
1238
  font-weight: 500;
1239
1239
  text-wrap: nowrap;
1240
- `,nm=o.tbody``,im=({columns:r,rows:o})=>{const[n,i]=Wt(Pr.Ascending),[a,s]=Wt("name"),l=Vt(e=>{a===e?i(e=>e===Pr.Ascending?Pr.Descending:Pr.Ascending):(s(e),i(Pr.Ascending))},[a]),c=Xt(()=>{const t=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(a?[...o].sort((e,r)=>{const o=t(e,a),i=t(r,a);return(n===Pr.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,i)}):o).map(({status:t,faded:o,cells:n,onClick:i},a)=>e(Yh,{index:a,columns:r,cells:n,onClick:i,status:t,faded:o},`row-${a}`))},[r,o,a,n]);return e(Qh,{children:t(Zh,{children:[e(em,{children:e("tr",{children:r.map(({key:r,title:o,sortable:n})=>e(tm,{children:n?t(rm,{onClick:()=>l(r),children:[e(Rt,{}),e(om,{children:o})]}):e(om,{children:o})},`column-${r}`))})}),e(nm,{children:c})]})})};var am;!function(e){e.Code="code",e.Table="table",e.Badge="badge",e.Loader="loader",e.Divider="divider",e.Monitors="monitors",e.CopyText="copy-text",e.ActiveStatus="active-status"}(am||(am={}));const sm=o.div`
1240
+ `,kg=o.tbody``,Cg=({columns:r,rows:o})=>{const[n,i]=Wt(Pr.Ascending),[a,s]=Wt("name"),l=Vt(e=>{a===e?i(e=>e===Pr.Ascending?Pr.Descending:Pr.Ascending):(s(e),i(Pr.Ascending))},[a]),c=Xt(()=>{const t=(e,t)=>e.cells.find(({columnKey:e})=>e===t)?.value??null;return(a?[...o].sort((e,r)=>{const o=t(e,a),i=t(r,a);return(n===Pr.Ascending?1:-1)*((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,i)}):o).map(({status:t,faded:o,cells:n,onClick:i},a)=>e(yg,{index:a,columns:r,cells:n,onClick:i,status:t,faded:o},`row-${a}`))},[r,o,a,n]);return e(xg,{children:t(bg,{children:[e(vg,{children:e("tr",{children:r.map(({key:r,title:o,sortable:n})=>e($g,{children:n?t(wg,{onClick:()=>l(r),children:[e(Rt,{}),e(Sg,{children:o})]}):e(Sg,{children:o})},`column-${r}`))})}),e(kg,{children:c})]})})};var Eg;!function(e){e.Code="code",e.Table="table",e.Badge="badge",e.Loader="loader",e.Divider="divider",e.Monitors="monitors",e.CopyText="copy-text",e.ActiveStatus="active-status"}(Eg||(Eg={}));const Ag=o.div`
1241
1241
  display: flex;
1242
1242
  flex-wrap: wrap;
1243
1243
  gap: 16px 32px;
1244
1244
  width: 100%;
1245
- `,lm=o.div`
1245
+ `,Dg=o.div`
1246
1246
  display: flex;
1247
1247
  flex-direction: column;
1248
1248
  gap: 2px;
1249
1249
  width: ${({$width:e})=>e};
1250
- `,cm=o(Di)`
1250
+ `,Tg=o(Di)`
1251
1251
  color: ${({theme:e})=>e.text.grey};
1252
1252
  font-size: 10px;
1253
1253
  line-height: 16px;
1254
- `,dm=o(Di)`
1254
+ `,Ig=o(Di)`
1255
1255
  font-size: 12px;
1256
1256
  white-space: pre-wrap;
1257
- `,pm=({data:r})=>e(sm,{children:r?.map(({type:r,title:o,titleIcon:n,tooltip:i,value:a},s)=>t(lm,{$width:r&&[am.Code,am.Table].includes(r)?"inherit":r&&[am.Loader,am.Divider,am.CopyText].includes(r)?"100%":"unset",children:[e(zc,{text:i,withIcon:!0,children:t(_n,{$alignItems:"center",$gap:4,children:[n&&e(n,{size:14}),!!o&&e(cm,{transform:"capitalize",children:o})]})}),e(um,{type:r,value:a})]},`data-field-${o||(a?JSON.stringify(a):s)}`))}),um=({type:t,value:r})=>{const o=i();switch(t){case am.Divider:return e(Ec,{length:"100%",margin:"0"});case am.Loader:return e(Pn,{children:e(kd,{scale:1.2})});case am.Monitors:return e(Qd,{monitors:r?.split(", ")||[],withLabels:!0,color:o.colors.secondary});case am.Badge:{const{label:t,filled:o,...n}=ei(r,{label:"-",filled:!1});return e(Dl,{label:t,filled:o,...n})}case am.Code:{const{language:t,code:o,...n}=ei(r,{language:"",code:""});return e(xd,{language:t,code:o,...n})}case am.Table:{const{columns:t,rows:o,...n}=ei(r,{columns:[],rows:[{status:void 0,cells:[]}]});return e(im,{columns:t,rows:o,...n})}case am.ActiveStatus:return e(Ld,{status:"true"==r?Gr.Success:Gr.Error,title:"true"==r?Ao.ENABLED:Ao.DISABLED,size:10,withIcon:!0,withBorder:!0});case am.CopyText:{const t="string"==typeof r?r:JSON.stringify(r);return e(Bd,{value:t})}default:return e(dm,{children:yi("string"==typeof r?r||"-":"")})}},hm=o.div`
1257
+ `,Ng=({data:r})=>e(Ag,{children:r?.map(({type:r,title:o,titleIcon:n,tooltip:i,value:a},s)=>t(Dg,{$width:r&&[Eg.Code,Eg.Table].includes(r)?"inherit":r&&[Eg.Loader,Eg.Divider,Eg.CopyText].includes(r)?"100%":"unset",children:[e(np,{text:i,withIcon:!0,children:t(_n,{$alignItems:"center",$gap:4,children:[n&&e(n,{size:14}),!!o&&e(Tg,{transform:"capitalize",children:o})]})}),e(Rg,{type:r,value:a})]},`data-field-${o||(a?JSON.stringify(a):s)}`))}),Rg=({type:t,value:r})=>{const o=i();switch(t){case Eg.Divider:return e(Gd,{length:"100%",margin:"0"});case Eg.Loader:return e(Pn,{children:e(Hp,{scale:1.2})});case Eg.Monitors:return e(xu,{monitors:r?.split(", ")||[],withLabels:!0,color:o.colors.secondary});case Eg.Badge:{const{label:t,filled:o,...n}=ei(r,{label:"-",filled:!1});return e(Kc,{label:t,filled:o,...n})}case Eg.Code:{const{language:t,code:o,...n}=ei(r,{language:"",code:""});return e(zp,{language:t,code:o,...n})}case Eg.Table:{const{columns:t,rows:o,...n}=ei(r,{columns:[],rows:[{status:void 0,cells:[]}]});return e(Cg,{columns:t,rows:o,...n})}case Eg.ActiveStatus:return e(ou,{status:"true"==r?Gr.Success:Gr.Error,title:"true"==r?Ao.ENABLED:Ao.DISABLED,size:10,withIcon:!0,withBorder:!0});case Eg.CopyText:{const t="string"==typeof r?r:JSON.stringify(r);return e(au,{value:t})}default:return e(Ig,{children:yi("string"==typeof r?r||"-":"")})}},Og=o.div`
1258
1258
  display: flex;
1259
1259
  flex-direction: column;
1260
1260
  align-items: flex-start;
@@ -1263,90 +1263,90 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1263
1263
  padding: 24px;
1264
1264
  border-radius: 24px;
1265
1265
  border: 1px solid ${({theme:e})=>e.colors.border};
1266
- background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+bl["010"]:"transparent"};
1266
+ background-color: ${({theme:e,$hovered:t})=>t?e.colors.secondary+Mc["010"]:"transparent"};
1267
1267
  transition: background-color 0.3s;
1268
- `,mm=o.div`
1268
+ `,_g=o.div`
1269
1269
  width: 100%;
1270
1270
  display: flex;
1271
1271
  flex-direction: column;
1272
1272
  gap: 4px;
1273
1273
  cursor: ${({$clickable:e})=>e?"pointer":"default"};
1274
- `,gm=o(Di)`
1274
+ `,Fg=o(Di)`
1275
1275
  width: 100%;
1276
1276
  display: flex;
1277
1277
  align-items: center;
1278
1278
  gap: 8px;
1279
1279
  font-size: 16px;
1280
- `,fm=o(Di)`
1280
+ `,Pg=o(Di)`
1281
1281
  font-size: 12px;
1282
1282
  color: ${({theme:e})=>e.text.grey};
1283
- `,ym=o(_n)`
1283
+ `,Lg=o(_n)`
1284
1284
  margin-left: auto;
1285
1285
  gap: 8px;
1286
- `,xm=({title:r="Details",titleBadge:o,titleIcon:n,description:i,action:a,withExtend:s,initialExtended:l=!1,data:c,children:d})=>{const[p,u]=Wt(l),[h,m]=Wt(!1);return t(hm,{$hovered:h,children:[r||n||i||a?t(mm,{$clickable:s||!1,onClick:()=>s&&u(e=>!e),onMouseEnter:()=>s&&m(!0),onMouseLeave:()=>s&&m(!1),children:[t(_n,{children:[t(_n,{$alignItems:"center",$gap:8,children:[n&&e(_n,{$alignItems:"center",children:e(n,{size:20})}),!!r&&e(gm,{transform:"capitalize",children:r}),o===Kr.Loading?e(kd,{}):void 0!==o&&e(Dl,{label:o})]}),(!!a||s)&&t(ym,{children:["function"==typeof a?e(a,{hovered:h}):a,s&&e(Ed,{extend:p})]})]}),!!i&&e(fm,{children:i})]}):null,(!s||s&&p)&&(d||e(pm,{data:c}))]})},bm=o.div`
1286
+ `,zg=({title:r="Details",titleBadge:o,titleIcon:n,description:i,action:a,withExtend:s,initialExtended:l=!1,data:c,children:d})=>{const[p,u]=Wt(l),[h,m]=Wt(!1);return t(Og,{$hovered:h,children:[r||n||i||a?t(_g,{$clickable:s||!1,onClick:()=>s&&u(e=>!e),onMouseEnter:()=>s&&m(!0),onMouseLeave:()=>s&&m(!1),children:[t(_n,{children:[t(_n,{$alignItems:"center",$gap:8,children:[n&&e(_n,{$alignItems:"center",children:e(n,{size:20})}),!!r&&e(Fg,{transform:"capitalize",children:r}),o===Kr.Loading?e(Hp,{}):void 0!==o&&e(Kc,{label:o})]}),(!!a||s)&&t(Lg,{children:["function"==typeof a?e(a,{hovered:h}):a,s&&e(Gp,{extend:p})]})]}),!!i&&e(Pg,{children:i})]}):null,(!s||s&&p)&&(d||e(Ng,{data:c}))]})},Mg=o.div`
1287
1287
  visibility: hidden;
1288
- `,vm=o(_n)`
1288
+ `,Bg=o(_n)`
1289
1289
  align-self: stretch;
1290
1290
  width: calc(100% - 32px);
1291
1291
  padding: 16px;
1292
1292
  border-radius: 16px;
1293
- background-color: ${({theme:e})=>e.colors.secondary+bl["005"]};
1293
+ background-color: ${({theme:e})=>e.colors.secondary+Mc["005"]};
1294
1294
  ${({theme:e,$withClick:t})=>t?n`
1295
1295
  &:hover {
1296
1296
  cursor: pointer;
1297
- background-color: ${e.colors.secondary+bl["010"]};
1298
- ${bm} {
1297
+ background-color: ${e.colors.secondary+Mc["010"]};
1298
+ ${Mg} {
1299
1299
  visibility: visible;
1300
1300
  }
1301
1301
  }
1302
- `:`\n &:hover {\n ${bm} {\n visibility: visible;\n }\n }\n `}
1303
- `,$m=o(_n)`
1302
+ `:`\n &:hover {\n ${Mg} {\n visibility: visible;\n }\n }\n `}
1303
+ `,Ug=o(_n)`
1304
1304
  margin-left: auto;
1305
1305
  gap: 8px;
1306
- `,wm=o(Di)`
1306
+ `,jg=o(Di)`
1307
1307
  font-size: 10px;
1308
1308
  color: ${({theme:e})=>e.text.grey};
1309
- `,Sm=({title:o,subTitle:n,icons:a,iconSrcs:s,onClick:l,renderActions:c})=>{const d=i(),[p,u]=Wt(0),h=Gt(null),m=Gt(null);return Ht(()=>{if(h.current){const e=h.current.clientWidth,t=m.current?.clientWidth||0;u(e-(85+t))}},[]),t(vm,{ref:h,$gap:8,$withClick:!!l,onClick:l,children:[e(Jd,{id:`${o}-${n}`,icons:a,iconSrcs:s}),o&&e(Hd,{maxWidth:p/2,text:o,textSize:14}),o&&n&&e(wm,{children:"•"}),n&&e(Hd,{maxWidth:p/2,text:n,textSize:10,textColor:d.text.grey}),e($m,{ref:m,children:c&&t(r,{children:[e(Ec,{orientation:"vertical",length:"24px",margin:"0"}),c()]})})]})},km=({isOpen:t,noOverlay:r,name:o,type:n,isLastItem:i,onApprove:a,onDeny:s})=>{const l=n===jr.Source?"uninstrument":"delete";return e(nd,{isOpen:t,noOverlay:r,title:`${l.charAt(0).toUpperCase()+l.substring(1)}${o?` ${o}`:""}`,description:`Are you sure you want to ${l}?`,note:i?{type:Gr.Warning,title:`You're about to ${l} the last ${n||o}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:a},denyButton:{text:"Go Back",onClick:s}})},Cm=o(Rl)`
1309
+ `,Wg=({title:o,subTitle:n,icons:a,iconSrcs:s,onClick:l,renderActions:c})=>{const d=i(),[p,u]=Wt(0),h=Gt(null),m=Gt(null);return Ht(()=>{if(h.current){const e=h.current.clientWidth,t=m.current?.clientWidth||0;u(e-(85+t))}},[]),t(Bg,{ref:h,$gap:8,$withClick:!!l,onClick:l,children:[e(fu,{id:`${o}-${n}`,icons:a,iconSrcs:s}),o&&e(du,{maxWidth:p/2,text:o,textSize:14}),o&&n&&e(jg,{children:"•"}),n&&e(du,{maxWidth:p/2,text:n,textSize:10,textColor:d.text.grey}),e(Ug,{ref:m,children:c&&t(r,{children:[e(Gd,{orientation:"vertical",length:"24px",margin:"0"}),c()]})})]})},Hg=({isOpen:t,noOverlay:r,name:o,type:n,isLastItem:i,onApprove:a,onDeny:s})=>{const l=n===jr.Source?"uninstrument":"delete";return e(kp,{isOpen:t,noOverlay:r,title:`${l.charAt(0).toUpperCase()+l.substring(1)}${o?` ${o}`:""}`,description:`Are you sure you want to ${l}?`,note:i?{type:Gr.Warning,title:`You're about to ${l} the last ${n||o}`,message:""}:void 0,approveButton:{text:"Confirm",variant:"danger",onClick:a},denyButton:{text:"Go Back",onClick:s}})},Xg=o(Qc)`
1310
1310
  display: flex;
1311
1311
  align-items: center;
1312
1312
  justify-content: center;
1313
1313
  font-size: 14px;
1314
1314
  gap: 6px;
1315
1315
  min-width: 100px;
1316
- `,Em=({endpoint:r="/",variant:o="secondary"})=>t(Cm,{variant:o,onClick:()=>window.open(`https://docs.odigos.io${r}`,"_blank","noopener noreferrer"),children:[e(Ot,{size:18}),"Docs"]}),Am=o(_n)`
1316
+ `,Gg=({endpoint:r="/",variant:o="secondary"})=>t(Xg,{variant:o,onClick:()=>window.open(`https://docs.odigos.io${r}`,"_blank","noopener noreferrer"),children:[e(Ot,{size:18}),"Docs"]}),Vg=o(_n)`
1317
1317
  border-bottom: ${({$hideBorder:e,theme:t})=>e?"none":`1px solid ${t.colors.border}`};
1318
- `,Dm=o.div`
1318
+ `,Kg=o.div`
1319
1319
  display: flex;
1320
1320
  align-items: center;
1321
1321
  border-bottom: 2px solid ${({theme:e,$selected:t})=>t?e.colors.majestic_blue:"transparent"};
1322
1322
  cursor: pointer;
1323
- `,Tm=o(Di)`
1323
+ `,qg=o(Di)`
1324
1324
  padding: 12px;
1325
1325
  font-size: 14px;
1326
1326
  color: ${({theme:e,$selected:t})=>t?e.text.secondary:e.text.grey};
1327
- `,Im=({tabs:r,hideBorder:o=!1})=>r?.length?e(Am,{$hideBorder:o,children:r.map(({label:r,icon:o,onClick:n,selected:i})=>t(Dm,{onClick:n,$selected:i,children:[e(Tm,{$selected:i,children:r}),o&&e(o,{})]},`tab-${r}`))}):null,Nm=o.section`
1327
+ `,Jg=({tabs:r,hideBorder:o=!1})=>r?.length?e(Vg,{$hideBorder:o,children:r.map(({label:r,icon:o,onClick:n,selected:i})=>t(Kg,{onClick:n,$selected:i,children:[e(qg,{$selected:i,children:r}),o&&e(o,{})]},`tab-${r}`))}):null,Yg=o.section`
1328
1328
  padding: 0px 32px;
1329
1329
  border-bottom: 1px solid ${({theme:e})=>e.colors.border};
1330
- `,Rm=o.div`
1330
+ `,Qg=o.div`
1331
1331
  height: 76px;
1332
1332
  display: flex;
1333
1333
  justify-content: space-between;
1334
1334
  flex-shrink: 0;
1335
1335
  align-self: stretch;
1336
- `,Om=o.div`
1336
+ `,Zg=o.div`
1337
1337
  display: flex;
1338
1338
  align-items: center;
1339
1339
  gap: ${({$gap:e})=>e||16}px;
1340
- `,_m=o(Di)`
1340
+ `,ef=o(Di)`
1341
1341
  font-size: 18px;
1342
1342
  line-height: 26px;
1343
1343
  max-width: ${({$maxWidth:e})=>e};
1344
1344
  overflow: hidden;
1345
1345
  white-space: nowrap;
1346
1346
  text-overflow: ellipsis;
1347
- `,Fm=o(Rl)`
1347
+ `,tf=o(Qc)`
1348
1348
  gap: 8px;
1349
- `,Pm=o(Rl)``,Lm=({onClose:r,width:o,icons:n,iconSrcs:i,title:a,titleTooltip:s,replaceTitleWith:l,actions:c,actionButtons:d=[],tabs:p})=>t(Nm,{children:[t(Rm,{children:[t(Om,{children:[n?.length||i?.length?e(Jd,{icons:n,iconSrcs:i,id:`drawer-header-${a}`}):null,("function"==typeof l?e(l,{}):l||null)||e(zc,{text:s||a,withIcon:!!s,children:a&&e(_m,{$maxWidth:`calc(${o} ${c||d.length?"/ 5":"- 192px"})`,children:a})})]}),t(Om,{$gap:2,children:[c,d.map((t,r)=>e(Fm,{...t},`header-action-button-${r}`)),e(Pm,{"data-id":"drawer-close",variant:"secondary",onClick:r,children:e(xt,{size:12})})]})]}),e(Im,{tabs:p,hideBorder:!0})]}),zm=o.div`
1349
+ `,rf=o(Qc)``,of=({onClose:r,width:o,icons:n,iconSrcs:i,title:a,titleTooltip:s,replaceTitleWith:l,actions:c,actionButtons:d=[],tabs:p})=>t(Yg,{children:[t(Qg,{children:[t(Zg,{children:[n?.length||i?.length?e(fu,{icons:n,iconSrcs:i,id:`drawer-header-${a}`}):null,("function"==typeof l?e(l,{}):l||null)||e(np,{text:s||a,withIcon:!!s,children:a&&e(ef,{$maxWidth:`calc(${o} ${c||d.length?"/ 5":"- 192px"})`,children:a})})]}),t(Zg,{$gap:2,children:[c,d.map((t,r)=>e(tf,{...t},`header-action-button-${r}`)),e(rf,{"data-id":"drawer-close",variant:"secondary",onClick:r,children:e(xt,{size:12})})]})]}),e(Jg,{tabs:p,hideBorder:!0})]}),nf=o.div`
1350
1350
  display: flex;
1351
1351
  justify-content: space-between;
1352
1352
  gap: 8px;
@@ -1354,17 +1354,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1354
1354
  border-top: 1px solid ${({theme:e})=>e.colors.border};
1355
1355
  background-color: ${({theme:e})=>e.colors.translucent_bg};
1356
1356
  transform: translateY(100%);
1357
- animation-name: ${$l.in.bottom};
1358
- `,Mm=o(_n)`
1357
+ animation-name: ${Uc.in.bottom};
1358
+ `,af=o(_n)`
1359
1359
  margin-right: auto;
1360
- `,Bm=o(_n)`
1360
+ `,sf=o(_n)`
1361
1361
  margin: 0 auto;
1362
- `,Um=o(_n)`
1362
+ `,lf=o(_n)`
1363
1363
  margin-left: auto;
1364
- `,jm=o(Rl)`
1364
+ `,cf=o(Qc)`
1365
1365
  min-width: 140px;
1366
1366
  font-size: 14px;
1367
- `,Wm=({isOpen:r,leftButtons:o=[],centerButtons:n=[],rightButtons:i=[]})=>r?t(zm,{children:[e(Mm,{children:o.map((t,r)=>e(jm,{...t},`footer-left-button-${r}`))}),e(Bm,{children:n.map((t,r)=>e(jm,{...t},`footer-center-button-${r}`))}),e(Um,{children:i.map((t,r)=>e(jm,{...t},`footer-right-button-${r}`))})]}):null,Hm=o.div`
1367
+ `,df=({isOpen:r,leftButtons:o=[],centerButtons:n=[],rightButtons:i=[]})=>r?t(nf,{children:[e(af,{children:o.map((t,r)=>e(cf,{...t},`footer-left-button-${r}`))}),e(sf,{children:n.map((t,r)=>e(cf,{...t},`footer-center-button-${r}`))}),e(lf,{children:i.map((t,r)=>e(cf,{...t},`footer-right-button-${r}`))})]}):null,pf=o.div`
1368
1368
  position: fixed;
1369
1369
  top: 0;
1370
1370
  bottom: 0;
@@ -1372,56 +1372,56 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1372
1372
  z-index: 1000;
1373
1373
  width: ${({$width:e})=>e};
1374
1374
  background: ${({theme:e})=>e.colors.translucent_bg};
1375
- box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+bl["010"]};
1375
+ box-shadow: 0 2px 10px ${({theme:e})=>e.colors.primary+Mc["010"]};
1376
1376
  overflow-y: auto;
1377
- animation-name: ${({$position:e})=>$l.in[e]};
1378
- `,Xm=o.div`
1377
+ animation-name: ${({$position:e})=>Uc.in[e]};
1378
+ `,uf=o.div`
1379
1379
  display: flex;
1380
1380
  flex-direction: column;
1381
1381
  height: 100%;
1382
- `,Gm=o.div`
1382
+ `,hf=o.div`
1383
1383
  flex-grow: 1;
1384
1384
  padding: 24px 32px;
1385
1385
  overflow-y: auto;
1386
- `,Vm=({isOpen:o,onClose:n,closeOnEscape:i=!0,position:a="right",width:s="300px",children:l,header:c,footer:d})=>(ql({key:"Escape",active:o&&i},()=>n()),Pl(o),o?dr.createPortal(t(r,{children:[e(zn,{hidden:!o,onClick:n}),e(Hm,{"data-id":"drawer",$position:a,$width:s,children:t(Xm,{children:[e(Lm,{onClose:n,width:s,...c}),e(Gm,{children:l}),e(Wm,{...d})]})})]}),document.body):null),Km=({error:r})=>{const o=i(),n={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:o.text.error,fontFamily:o.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:o.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:o.text.secondary,fontSize:"14px"}};return t("div",{style:n.container,children:[e("h2",{children:"Something went wrong!"}),e("pre",{style:n.errorMessage,children:r?.message||"Unknown Error"}),t("details",{style:n.errorStackWrapper,children:[e("summary",{children:"Stack Trace"}),e("pre",{style:n.errorStack,children:r?.stack||"Unknown Stack"})]}),e("p",{style:n.infoText,children:"Try refreshing the page or contact support"}),e(Rl,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},qm=({children:t})=>e(mr,{FallbackComponent:({error:t,...r})=>e(xl,{children:e(Km,{...r,error:t})}),children:t}),Jm=o(_n)`
1386
+ `,mf=({isOpen:o,onClose:n,closeOnEscape:i=!0,position:a="right",width:s="300px",children:l,header:c,footer:d})=>(gd({key:"Escape",active:o&&i},()=>n()),rd(o),o?dr.createPortal(t(r,{children:[e(zn,{hidden:!o,onClick:n}),e(pf,{"data-id":"drawer",$position:a,$width:s,children:t(uf,{children:[e(of,{onClose:n,width:s,...c}),e(hf,{children:l}),e(df,{...d})]})})]}),document.body):null),gf=({error:r})=>{const o=i(),n={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:o.text.error,fontFamily:o.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:o.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:o.text.secondary,fontSize:"14px"}};return t("div",{style:n.container,children:[e("h2",{children:"Something went wrong!"}),e("pre",{style:n.errorMessage,children:r?.message||"Unknown Error"}),t("details",{style:n.errorStackWrapper,children:[e("summary",{children:"Stack Trace"}),e("pre",{style:n.errorStack,children:r?.stack||"Unknown Stack"})]}),e("p",{style:n.infoText,children:"Try refreshing the page or contact support"}),e(Qc,{variant:"secondary",onClick:()=>window.location.reload(),style:{fontSize:"1rem"},children:"Reload"})]})},ff=({children:t})=>e(mr,{FallbackComponent:({error:t,...r})=>e(zc,{children:e(gf,{...r,error:t})}),children:t}),yf=o(_n)`
1387
1387
  position: relative;
1388
1388
  width: calc(100% - 24px);
1389
1389
  padding: 12px;
1390
1390
  background-color: ${({theme:e})=>e.colors.dark_grey};
1391
- border-bottom: 1px solid ${({theme:e})=>e.colors.border+bl["050"]};
1392
- `,Ym=o(_n)`
1391
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border+Mc["050"]};
1392
+ `,xf=o(_n)`
1393
1393
  margin-right: auto;
1394
1394
  margin-left: 32px;
1395
1395
  gap: 12px;
1396
- `,Qm=o(_n)`
1396
+ `,bf=o(_n)`
1397
1397
  margin-left: auto;
1398
1398
  margin-right: 32px;
1399
1399
  gap: 12px;
1400
- `,Zm=o(_n)`
1400
+ `,vf=o(_n)`
1401
1401
  position: absolute;
1402
1402
  left: 50%;
1403
1403
  transform: translateX(-50%);
1404
1404
  gap: 12px;
1405
- `,eg=({left:r=[],center:o=[],right:n=[]})=>t(Jm,{children:[e(Ym,{children:r.map((t,r)=>t&&e(jt,{children:t},r))}),e(Zm,{children:o.map((t,r)=>t&&e(jt,{children:t},r))}),e(Qm,{children:n.map((t,r)=>t&&e(jt,{children:t},r))})]}),tg=o(Di)`
1405
+ `,$f=({left:r=[],center:o=[],right:n=[]})=>t(yf,{children:[e(xf,{children:r.map((t,r)=>t&&e(jt,{children:t},r))}),e(vf,{children:o.map((t,r)=>t&&e(jt,{children:t},r))}),e(bf,{children:n.map((t,r)=>t&&e(jt,{children:t},r))})]}),wf=o(Di)`
1406
1406
  color: ${({theme:e})=>e.text.grey};
1407
- `,rg=({icon:r,title:o,badge:n,badgeTooltip:i,loading:a})=>t(_n,{$gap:6,children:[r&&e(r,{}),e(tg,{size:14,children:o}),void 0!==n&&e(zc,{text:i,children:e(Dl,{label:n})}),a&&e(kd,{})]}),og=o.div`
1407
+ `,Sf=({icon:r,title:o,badge:n,badgeTooltip:i,loading:a})=>t(_n,{$gap:6,children:[r&&e(r,{}),e(wf,{size:14,children:o}),void 0!==n&&e(np,{text:i,children:e(Kc,{label:n})}),a&&e(Hp,{})]}),kf=o.div`
1408
1408
  width: fit-content;
1409
1409
  height: fit-content;
1410
1410
  padding: 4px;
1411
1411
  gap: 4px;
1412
1412
  border-radius: 32px;
1413
- border: 1px solid ${({theme:e})=>e.colors.border+bl["070"]};
1413
+ border: 1px solid ${({theme:e})=>e.colors.border+Mc["070"]};
1414
1414
 
1415
1415
  display: flex;
1416
1416
  flex-direction: ${({$orientation:e,$flip:t})=>("horizontal"===e?"row":"column")+(t?"-reverse":"")};
1417
1417
  align-items: center;
1418
1418
  justify-content: center;
1419
- `,ng=o.div`
1419
+ `,Cf=o.div`
1420
1420
  width: 32px;
1421
1421
  height: 32px;
1422
1422
 
1423
1423
  border-radius: 100%;
1424
- background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+bl["070"]:e.colors.secondary+bl["012"]};
1424
+ background-color: ${({theme:e,$selected:t})=>t?e.colors.majestic_blue+Mc["070"]:e.colors.secondary+Mc["012"]};
1425
1425
  transition: background-color 0.3s;
1426
1426
 
1427
1427
  display: flex;
@@ -1429,63 +1429,63 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1429
1429
  justify-content: center;
1430
1430
 
1431
1431
  cursor: pointer;
1432
- `,ig=({orientation:r="vertical",flip:o,mainIcons:n,subIcons:i})=>t(og,{$orientation:r,$flip:o,children:[n.map(({icon:t,selected:r,onClick:o,tooltip:n},i)=>e(zc,{text:n,children:e(ng,{$selected:r,onClick:o,children:e(t,{size:20})})},`main-nav-icon-${i}`)),!!n.length&&!!i.length&&e(Ec,{orientation:"vertical"===r?"horizontal":"vertical",margin:"0",length:"20px"}),i.map(({icon:t,selected:r,onClick:o,tooltip:n},i)=>e(zc,{text:n,children:e(ng,{$selected:r,onClick:o,children:e(t,{size:20})})},`sub-nav-icon-${i}`))]}),ag=o.div`
1432
+ `,Ef=({orientation:r="vertical",flip:o,mainIcons:n,subIcons:i})=>t(kf,{$orientation:r,$flip:o,children:[n.map(({icon:t,selected:r,onClick:o,tooltip:n},i)=>e(np,{text:n,children:e(Cf,{$selected:r,onClick:o,children:e(t,{size:20})})},`main-nav-icon-${i}`)),!!n.length&&!!i.length&&e(Gd,{orientation:"vertical"===r?"horizontal":"vertical",margin:"0",length:"20px"}),i.map(({icon:t,selected:r,onClick:o,tooltip:n},i)=>e(np,{text:n,children:e(Cf,{$selected:r,onClick:o,children:e(t,{size:20})})},`sub-nav-icon-${i}`))]}),Af=o.div`
1433
1433
  display: flex;
1434
1434
  flex-direction: column;
1435
1435
  width: 100%;
1436
- `,sg=o.div`
1436
+ `,Df=o.div`
1437
1437
  display: flex;
1438
1438
  flex-direction: column;
1439
1439
  gap: 8px;
1440
- `,lg=o.div`
1440
+ `,Tf=o.div`
1441
1441
  display: flex;
1442
1442
  align-items: center;
1443
1443
  gap: 16px;
1444
- `,cg=o(Uc)`
1444
+ `,If=o(sp)`
1445
1445
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1446
1446
  opacity: ${({$disabled:e})=>e?.5:1};
1447
- `,dg=({initialValues:r=[],value:o,onChange:n,title:i,tooltip:a,required:s,errorMessage:l})=>{const[c,d]=Wt(o||r);Ht(()=>{c.length||d([""])},[]);const p=c.filter(e=>!!e.trim()),u=Gt(JSON.stringify(p));Ht(()=>{const e=JSON.stringify(p);u.current!==e&&(u.current=e,n&&n(p))},[p]);const h=(e,t)=>{d(r=>{const o=[...r];return o[t]=e,o})},m=c.length<=1,g=c.some(e=>""===e.trim()),f=m&&g;return t(ag,{children:[e(xh,{title:i,required:s,tooltip:a}),e(sg,{children:c.map((r,o)=>{const n=o===c.length-1;return t(lg,{children:[e(Ch,{value:r,onChange:e=>h(e.target.value,o),hasError:!!l,autoFocus:oi(r)&&!m&&n}),o===c.length-1&&e(cg,{withBorder:!0,size:30,$disabled:g,onClick:g?void 0:()=>{d(e=>{const t=[...e];return t.push(""),t})},children:e(St,{})}),e(cg,{size:30,$disabled:f,onClick:f?void 0:()=>(e=>{m?h("",e):d(t=>t.filter((t,r)=>r!==e))})(o),children:e(It,{})})]},`input-list-${o}`)})}),!!l&&e(Ni,{children:l})]})},pg=({col:t,colIdx:r,row:o,rowIdx:n,rowsLength:i,maxWidth:a,handleChange:s,errorMessage:l,limitFieldsPerRow:c})=>{const{keyName:d,title:p,tooltip:u,placeholder:h,required:m,type:g,componentType:f,options:y,renderCondition:x}=t,b=o[d];if(x&&!x(o))return null;return e("td",{style:{maxWidth:a,padding:"4px 6px 4px 0"},children:(()=>{switch(f){case Hr.Dropdown:const t=y?.find(e=>e.id===b);return e(Ih,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,required:m,options:y||[],value:t,onSelect:e=>s(d,e.id,n),onDeselect:()=>s(d,"",n),hasError:!!l&&(!m||m&&oi(b))});case"multi-dropdown":const o=Array.isArray(b)&&y?.filter(e=>b.includes(e.id))||[];return e(Ih,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,required:m,options:y||[],value:o,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(b)?b:[],e.id];s(d,t,n)},onDeselect:e=>{const t=(Array.isArray(b)?b:[]).filter(t=>t!==e.id);s(d,t,n)},hasError:!!l&&(!m||m&&oi(b))});default:const f=i>1&&n===i-1&&0===r&&oi(b);return e(Ch,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,type:g,required:m,autoFocus:f,value:b,onChange:({target:{value:e}})=>s(d,e,n),style:{maxWidth:a,paddingLeft:10},hasError:!!l&&(!m||m&&oi(b))})}})()},`input-table-${n}-${d}`)},ug=o.div`
1447
+ `,Nf=({initialValues:r=[],value:o,onChange:n,title:i,tooltip:a,required:s,errorMessage:l})=>{const[c,d]=Wt(o||r);Ht(()=>{c.length||d([""])},[]);const p=c.filter(e=>!!e.trim()),u=Gt(JSON.stringify(p));Ht(()=>{const e=JSON.stringify(p);u.current!==e&&(u.current=e,n&&n(p))},[p]);const h=(e,t)=>{d(r=>{const o=[...r];return o[t]=e,o})},m=c.length<=1,g=c.some(e=>""===e.trim()),f=m&&g;return t(Af,{children:[e(zm,{title:i,required:s,tooltip:a}),e(Df,{children:c.map((r,o)=>{const n=o===c.length-1;return t(Tf,{children:[e(Xm,{value:r,onChange:e=>h(e.target.value,o),hasError:!!l,autoFocus:oi(r)&&!m&&n}),o===c.length-1&&e(If,{withBorder:!0,size:30,$disabled:g,onClick:g?void 0:()=>{d(e=>{const t=[...e];return t.push(""),t})},children:e(St,{})}),e(If,{size:30,$disabled:f,onClick:f?void 0:()=>(e=>{m?h("",e):d(t=>t.filter((t,r)=>r!==e))})(o),children:e(It,{})})]},`input-list-${o}`)})}),!!l&&e(Ni,{children:l})]})},Rf=({col:t,colIdx:r,row:o,rowIdx:n,rowsLength:i,maxWidth:a,handleChange:s,errorMessage:l,limitFieldsPerRow:c})=>{const{keyName:d,title:p,tooltip:u,placeholder:h,required:m,type:g,componentType:f,options:y,renderCondition:x}=t,b=o[d];if(x&&!x(o))return null;return e("td",{style:{maxWidth:a,padding:"4px 6px 4px 0"},children:(()=>{switch(f){case Hr.Dropdown:const t=y?.find(e=>e.id===b);return e(Jm,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,required:m,options:y||[],value:t,onSelect:e=>s(d,e.id,n),onDeselect:()=>s(d,"",n),hasError:!!l&&(!m||m&&oi(b))});case"multi-dropdown":const o=Array.isArray(b)&&y?.filter(e=>b.includes(e.id))||[];return e(Jm,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,required:m,options:y||[],value:o,isMulti:!0,onSelect:e=>{const t=[...Array.isArray(b)?b:[],e.id];s(d,t,n)},onDeselect:e=>{const t=(Array.isArray(b)?b:[]).filter(t=>t!==e.id);s(d,t,n)},hasError:!!l&&(!m||m&&oi(b))});default:const f=i>1&&n===i-1&&0===r&&oi(b);return e(Xm,{title:c?p:void 0,tooltip:c?u:void 0,placeholder:h,type:g,required:m,autoFocus:f,value:b,onChange:({target:{value:e}})=>s(d,e,n),style:{maxWidth:a,paddingLeft:10},hasError:!!l&&(!m||m&&oi(b))})}})()},`input-table-${n}-${d}`)},Of=o.div`
1448
1448
  display: flex;
1449
1449
  flex-direction: column;
1450
1450
  width: 100%;
1451
- `,hg=o.button`
1451
+ `,_f=o.button`
1452
1452
  margin-top: ${({$marginTop:e})=>e};
1453
1453
  background: none;
1454
1454
  border: none;
1455
1455
  cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
1456
1456
  opacity: ${({disabled:e})=>e?.5:1};
1457
- `,mg=({columns:r,initialValues:o=[],value:n,onChange:i,errorMessage:a,limitFieldsPerRow:s,title:l=""})=>{const[c,d]=Wt({}),[p,u]=Wt(n||o),h=Xt(()=>new Map(r.map(e=>[e.keyName,e])),[r]);Ht(()=>{if(!p.length){const e={};r.forEach(({keyName:t})=>e[t]=""),d(e),u([e])}},[]);const m=p.filter(e=>{for(const[t,r]of Object.entries(e)){const o=h.get(t);if((!o?.renderCondition||o.renderCondition(e))&&(o?.required&&oi(r)))return!1}return!0}),g=Gt(JSON.stringify(m)),f=m.length!==p.length,y=`${Math.floor(640/((s||r.length)+.4))}px`;Ht(()=>{const e=JSON.stringify(m);g.current!==e&&(g.current=e,i&&i(m))},[m]);const x=(e,t,r)=>{u(o=>{const n=$r(o);return n[r][e]=t,n})},b=Xt(()=>{if(s){const e=[];for(let t=0;;t+=s){const o=r.slice(t,t+s);if(!o.length)break;e.push(o)}return e}return[r]},[s,r]);return t(ug,{children:[e(xh,{title:l}),t("table",{style:{borderCollapse:"collapse"},children:[!s&&e("thead",{children:t("tr",{children:[r.map(({title:t,tooltip:r,required:o})=>e("th",{style:{maxWidth:y},children:e(xh,{title:t,required:o,tooltip:r})},`input-table-head-${t}`)),e("th",{})]})}),e("tbody",{children:p.map((o,n)=>t(jt,{children:[s&&n>0?e("tr",{children:e("td",{colSpan:b.length,children:e(Ec,{})})}):null,b.map((i,l)=>t("tr",{children:[i.map((t,r)=>e(pg,{col:t,colIdx:r,row:o,rowIdx:n,rowsLength:p.length,maxWidth:y,limitFieldsPerRow:s,errorMessage:a,handleChange:x},`input-table-row-${n}-col-${r}`)),0===l&&e("td",{children:e(hg,{$marginTop:s?"24px":"0",onClick:()=>{return e=n,void(p.length>1?u(t=>t.filter((t,r)=>r!==e)):r.forEach(({keyName:t,type:r})=>x(t,r===Xr.Number?"0":"",e)));var e},children:e(It,{})})})]},`input-table-matrix-${n}-${l}`))]},`input-table-row-${n}`))})]}),!!a&&e(Ni,{children:a}),e(zd,{onClick:()=>{u(e=>{const t=$r(e);return t.push($r(c)),t})},disabled:f})]})},gg=o.div`
1457
+ `,Ff=({columns:r,initialValues:o=[],value:n,onChange:i,errorMessage:a,limitFieldsPerRow:s,title:l=""})=>{const[c,d]=Wt({}),[p,u]=Wt(n||o),h=Xt(()=>new Map(r.map(e=>[e.keyName,e])),[r]);Ht(()=>{if(!p.length){const e={};r.forEach(({keyName:t})=>e[t]=""),d(e),u([e])}},[]);const m=p.filter(e=>{for(const[t,r]of Object.entries(e)){const o=h.get(t);if((!o?.renderCondition||o.renderCondition(e))&&(o?.required&&oi(r)))return!1}return!0}),g=Gt(JSON.stringify(m)),f=m.length!==p.length,y=`${Math.floor(640/((s||r.length)+.4))}px`;Ht(()=>{const e=JSON.stringify(m);g.current!==e&&(g.current=e,i&&i(m))},[m]);const x=(e,t,r)=>{u(o=>{const n=$r(o);return n[r][e]=t,n})},b=Xt(()=>{if(s){const e=[];for(let t=0;;t+=s){const o=r.slice(t,t+s);if(!o.length)break;e.push(o)}return e}return[r]},[s,r]);return t(Of,{children:[e(zm,{title:l}),t("table",{style:{borderCollapse:"collapse"},children:[!s&&e("thead",{children:t("tr",{children:[r.map(({title:t,tooltip:r,required:o})=>e("th",{style:{maxWidth:y},children:e(zm,{title:t,required:o,tooltip:r})},`input-table-head-${t}`)),e("th",{})]})}),e("tbody",{children:p.map((o,n)=>t(jt,{children:[s&&n>0?e("tr",{children:e("td",{colSpan:b.length,children:e(Gd,{})})}):null,b.map((i,l)=>t("tr",{children:[i.map((t,r)=>e(Rf,{col:t,colIdx:r,row:o,rowIdx:n,rowsLength:p.length,maxWidth:y,limitFieldsPerRow:s,errorMessage:a,handleChange:x},`input-table-row-${n}-col-${r}`)),0===l&&e("td",{children:e(_f,{$marginTop:s?"24px":"0",onClick:()=>{return e=n,void(p.length>1?u(t=>t.filter((t,r)=>r!==e)):r.forEach(({keyName:t,type:r})=>x(t,r===Xr.Number?"0":"",e)));var e},children:e(It,{})})})]},`input-table-matrix-${n}-${l}`))]},`input-table-row-${n}`))})]}),!!a&&e(Ni,{children:a}),e(nu,{onClick:()=>{u(e=>{const t=$r(e);return t.push($r(c)),t})},disabled:f})]})},Pf=o.div`
1458
1458
  display: flex;
1459
1459
  flex-direction: column;
1460
1460
  width: 100%;
1461
- `,fg=o.div`
1461
+ `,Lf=o.div`
1462
1462
  display: flex;
1463
1463
  flex-direction: column;
1464
1464
  gap: 8px;
1465
- `,yg=o.div`
1465
+ `,zf=o.div`
1466
1466
  display: flex;
1467
1467
  align-items: center;
1468
1468
  gap: 8px;
1469
- `,xg=o.div`
1469
+ `,Mf=o.div`
1470
1470
  width: 100%;
1471
1471
  max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
1472
- `,bg=o(Uc)`
1472
+ `,Bf=o(sp)`
1473
1473
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1474
1474
  opacity: ${({$disabled:e})=>e?.5:1};
1475
- `,vg={key:"",value:""},$g=({initialKeyValuePairs:r=[],value:o,onChange:n,title:i,tooltip:a,disabled:s,required:l,errorMessage:c,keyPlaceholder:d="Key",valuePlaceholder:p="Value",inputMaxWidth:u=300})=>{const[h,m]=Wt(o||r);Ht(()=>{h.length||m([{...vg}])},[]);const g=h.filter(({key:e,value:t})=>!oi(e.trim())&&!oi(t.trim())),f=Gt(JSON.stringify(g));Ht(()=>{const e=JSON.stringify(g);f.current!==e&&(f.current=e,n&&n(g))},[g]);const y=(e,t,r)=>{m(o=>{const n=[...o];return n[r][e]=t,n})},x=h.length<=1,b=s||h.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),v=s||x&&b;return t(gg,{children:[e(xh,{title:i,required:l,tooltip:a}),e(fg,{children:h.map(({key:r,value:o},n)=>t(yg,{children:[e(xg,{$maxWidth:u,children:e(Ch,{placeholder:d,disabled:s,value:r,onChange:e=>y("key",e.target.value,n),hasError:!!c&&(!l||l&&!r),autoFocus:oi(o)&&!x&&n===h.length-1})}),e(xg,{$maxWidth:n===h.length-1?u-38:u,children:e(Ch,{placeholder:p,disabled:s,value:o,onChange:e=>y("value",e.target.value,n),hasError:!!c&&(!l||l&&oi(o)),autoFocus:!1})}),n===h.length-1&&e(bg,{withBorder:!0,size:30,$disabled:b,onClick:b?void 0:()=>{m(e=>{const t=[...e];return t.push({...vg}),t})},children:e(St,{})}),e(bg,{size:30,$disabled:v,onClick:v?void 0:()=>(e=>{x?(y("key","",e),y("value","",e)):m(t=>t.filter((t,r)=>r!==e))})(n),children:e(It,{})})]},`key-value-input-list-${n}`))}),!!c&&e(Ni,{children:c})]})},wg=a`
1475
+ `,Uf={key:"",value:""},jf=({initialKeyValuePairs:r=[],value:o,onChange:n,title:i,tooltip:a,disabled:s,required:l,errorMessage:c,keyPlaceholder:d="Key",valuePlaceholder:p="Value",inputMaxWidth:u=300})=>{const[h,m]=Wt(o||r);Ht(()=>{h.length||m([{...Uf}])},[]);const g=h.filter(({key:e,value:t})=>!oi(e.trim())&&!oi(t.trim())),f=Gt(JSON.stringify(g));Ht(()=>{const e=JSON.stringify(g);f.current!==e&&(f.current=e,n&&n(g))},[g]);const y=(e,t,r)=>{m(o=>{const n=[...o];return n[r][e]=t,n})},x=h.length<=1,b=s||h.some(({key:e,value:t})=>""===e.trim()||""===t.trim()),v=s||x&&b;return t(Pf,{children:[e(zm,{title:i,required:l,tooltip:a}),e(Lf,{children:h.map(({key:r,value:o},n)=>t(zf,{children:[e(Mf,{$maxWidth:u,children:e(Xm,{placeholder:d,disabled:s,value:r,onChange:e=>y("key",e.target.value,n),hasError:!!c&&(!l||l&&!r),autoFocus:oi(o)&&!x&&n===h.length-1})}),e(Mf,{$maxWidth:n===h.length-1?u-38:u,children:e(Xm,{placeholder:p,disabled:s,value:o,onChange:e=>y("value",e.target.value,n),hasError:!!c&&(!l||l&&oi(o)),autoFocus:!1})}),n===h.length-1&&e(Bf,{withBorder:!0,size:30,$disabled:b,onClick:b?void 0:()=>{m(e=>{const t=[...e];return t.push({...Uf}),t})},children:e(St,{})}),e(Bf,{size:30,$disabled:v,onClick:v?void 0:()=>(e=>{x?(y("key","",e),y("value","",e)):m(t=>t.filter((t,r)=>r!==e))})(n),children:e(It,{})})]},`key-value-input-list-${n}`))}),!!c&&e(Ni,{children:c})]})},Wf=a`
1476
1476
  0% {
1477
1477
  background-position: 0% 50%;
1478
1478
  }
1479
1479
  100% {
1480
1480
  background-position: 100% 50%;
1481
1481
  }
1482
- `,Sg=o(Di)`
1482
+ `,Hf=o(Di)`
1483
1483
  background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
1484
1484
  background-size: 250% 100%; /* Expand background to allow movement */
1485
1485
  background-clip: text;
1486
1486
  color: transparent;
1487
- animation: ${wg} 1s reverse linear infinite;
1488
- `,kg=({children:t="Loading...",textColor:r,stripColor:o,...n})=>{const a=i(),s=r||a.v2.colors.white[500],l=o||a.v2.colors.black[500];return e(Sg,{$textColor:s,$stripColor:l,...n,children:t})},Cg=o.div`
1487
+ animation: ${Wf} 1s reverse linear infinite;
1488
+ `,Xf=({children:t="Loading...",textColor:r,stripColor:o,...n})=>{const a=i(),s=r||a.v2.colors.white[500],l=o||a.v2.colors.black[500];return e(Hf,{$textColor:s,$stripColor:l,...n,children:t})},Gf=o.div`
1489
1489
  display: flex;
1490
1490
  flex-direction: ${({$isVertical:e})=>e?"column":"row"};
1491
1491
  gap: ${({$isVertical:e})=>e?"12px":"24px"};
@@ -1494,17 +1494,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1494
1494
  border-radius: 32px;
1495
1495
  padding: 8px;
1496
1496
  `}
1497
- `,Eg=(e,t)=>!t?.length||!!t?.find(t=>t===e),Ag=({isVertical:r,title:o="Monitors",required:n,errorMessage:i,allowedSignals:a,selectedSignals:s,setSelectedSignals:l})=>{const[c,d]=Wt(1===s.length),p=Gt(JSON.stringify(s));Ht(()=>{const e=s;e.length||Hs.forEach(({id:t})=>{Eg(t,a)&&e.push(t)});const t=JSON.stringify(e);return p.current!==t&&(p.current=t,l(e),d(1===e.length)),()=>{p.current=""}},[a]);return t("div",{children:[o&&e(xh,{title:o,required:n}),e(Cg,{$isVertical:r,$hasError:!!i,children:Hs.map(t=>{const r=Eg(t.id,a),o=((e,t)=>!!t?.find(t=>t===e))(t.id,s);return r?e(ld,{title:t.value,disabled:!r||c&&o,value:o,onChange:e=>((e,t)=>{const r=e,o=t?[...s,r]:s.filter(e=>e!==r);l(o),d(1===o.length)})(t.id,e)},t.id):null})}),!!i&&e(Ni,{children:i})]})},Dg=o.div`
1497
+ `,Vf=(e,t)=>!t?.length||!!t?.find(t=>t===e),Kf=({isVertical:r,title:o="Monitors",required:n,errorMessage:i,allowedSignals:a,selectedSignals:s,setSelectedSignals:l})=>{const[c,d]=Wt(1===s.length),p=Gt(JSON.stringify(s));Ht(()=>{const e=s;e.length||dc.forEach(({id:t})=>{Vf(t,a)&&e.push(t)});const t=JSON.stringify(e);return p.current!==t&&(p.current=t,l(e),d(1===e.length)),()=>{p.current=""}},[a]);return t("div",{children:[o&&e(zm,{title:o,required:n}),e(Gf,{$isVertical:r,$hasError:!!i,children:dc.map(t=>{const r=Vf(t.id,a),o=((e,t)=>!!t?.find(t=>t===e))(t.id,s);return r?e(Dp,{title:t.value,disabled:!r||c&&o,value:o,onChange:e=>((e,t)=>{const r=e,o=t?[...s,r]:s.filter(e=>e!==r);l(o),d(1===o.length)})(t.id,e)},t.id):null})}),!!i&&e(Ni,{children:i})]})},qf=o.div`
1498
1498
  display: flex;
1499
1499
  gap: 8px;
1500
1500
  align-items: center;
1501
- `,Tg=o(Rl)`
1501
+ `,Jf=o(Qc)`
1502
1502
  display: flex;
1503
1503
  align-items: center;
1504
1504
  justify-content: center;
1505
1505
  gap: 8px;
1506
1506
  min-width: 90px;
1507
- `,Ig=({buttons:r})=>{const o=i(),n=({button:e,index:t})=>r.length>1&&0===t&&(e.icon||e.iconSrc),a=({button:t,rotate:r})=>t.icon?e(t.icon,{size:14,rotate:r,fill:o.text[t.variant||"secondary"]}):t.iconSrc?e("img",{src:t.iconSrc,alt:t.label,width:8,height:12}):null;return e(Dg,{children:r.map((r,o)=>e(zc,{text:r.tooltip||"",children:t(Tg,{variant:r.variant||"secondary",onClick:r.onClick,disabled:r.disabled,children:[n({button:r,index:o})&&a({button:r,rotate:0}),r.label,!n({button:r,index:o})&&a({button:r,rotate:180})]},o)},o))})},Ng=o.div`
1507
+ `,Yf=({buttons:r})=>{const o=i(),n=({button:e,index:t})=>r.length>1&&0===t&&(e.icon||e.iconSrc),a=({button:t,rotate:r})=>t.icon?e(t.icon,{size:14,rotate:r,fill:o.text[t.variant||"secondary"]}):t.iconSrc?e("img",{src:t.iconSrc,alt:t.label,width:8,height:12}):null;return e(qf,{children:r.map((r,o)=>e(np,{text:r.tooltip||"",children:t(Jf,{variant:r.variant||"secondary",onClick:r.onClick,disabled:r.disabled,children:[n({button:r,index:o})&&a({button:r,rotate:0}),r.label,!n({button:r,index:o})&&a({button:r,rotate:180})]},o)},o))})},Qf=o.div`
1508
1508
  width: 100%;
1509
1509
  height: 100%;
1510
1510
 
@@ -1512,26 +1512,26 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1512
1512
  animation: none !important;
1513
1513
  transition: none !important;
1514
1514
  }
1515
- `,Rg=({width:t="100%",height:r="100%",gap:o=0,elements:n,noAnimation:i=!1,onTopIndexChange:a})=>{const s=Gt(null),l=Xt(()=>o?n.map((t,r)=>e("div",{style:{paddingBottom:o},children:t},`scroll-y-item-${r}`)):n,[n,o]),c=Vt(e=>{if(!a||!s.current)return;const t=s.current.findItemIndex(e);a(t)},[a]),d=e(fr,{ref:s,style:{width:t,height:r},onScroll:a?c:void 0,children:l});return i?e(Ng,{children:d}):d},Og=o.div`
1515
+ `,Zf=({width:t="100%",height:r="100%",gap:o=0,elements:n,noAnimation:i=!1,onTopIndexChange:a})=>{const s=Gt(null),l=Xt(()=>o?n.map((t,r)=>e("div",{style:{paddingBottom:o},children:t},`scroll-y-item-${r}`)):n,[n,o]),c=Vt(e=>{if(!a||!s.current)return;const t=s.current.findItemIndex(e);a(t)},[a]),d=e(fr,{ref:s,style:{width:t,height:r},onScroll:a?c:void 0,children:l});return i?e(Qf,{children:d}):d},ey=o.div`
1516
1516
  display: flex;
1517
1517
  justify-content: space-between;
1518
1518
  align-items: center;
1519
1519
  gap: 16px;
1520
- `,_g=o.div`
1520
+ `,ty=o.div`
1521
1521
  display: flex;
1522
1522
  flex-direction: column;
1523
1523
  gap: 4px;
1524
- `,Fg=o.div`
1524
+ `,ry=o.div`
1525
1525
  display: flex;
1526
1526
  align-items: center;
1527
1527
  gap: 8px;
1528
- `,Pg=o(Di)``,Lg=o(Di)``,zg=({title:r,description:o,badgeLabel:n,icon:i,actionButton:a,size:s="medium"})=>{const l="small"===s?16:"medium"===s?20:24,c="small"===s?12:"medium"===s?14:16;return t(Og,{children:[t(_g,{children:[t(Fg,{children:[i&&e(i,{size:l}),e(Pg,{weight:300,size:l,children:r}),void 0!==n&&e(Dl,{label:n,filled:!!n})]}),e(Lg,{weight:200,opacity:.8,size:c,children:o})]}),a&&e("div",{children:a})]})},Mg=o.div`
1528
+ `,oy=o(Di)``,ny=o(Di)``,iy=({title:r,description:o,badgeLabel:n,icon:i,actionButton:a,size:s="medium"})=>{const l="small"===s?16:"medium"===s?20:24,c="small"===s?12:"medium"===s?14:16;return t(ey,{children:[t(ty,{children:[t(ry,{children:[i&&e(i,{size:l}),e(oy,{weight:300,size:l,children:r}),void 0!==n&&e(Kc,{label:n,filled:!!n})]}),e(ny,{weight:200,opacity:.8,size:c,children:o})]}),a&&e("div",{children:a})]})},ay=o.div`
1529
1529
  position: relative;
1530
1530
  gap: 0;
1531
1531
  z-index: 0;
1532
1532
  display: grid;
1533
1533
  grid-template-columns: repeat(${({$count:e})=>e}, 1fr);
1534
- `,Bg=o.button`
1534
+ `,sy=o.button`
1535
1535
  flex: 1;
1536
1536
  display: flex;
1537
1537
  align-items: center;
@@ -1545,7 +1545,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1545
1545
  &:hover {
1546
1546
  border: 1px solid ${({theme:e})=>e.colors.secondary};
1547
1547
  }
1548
- `,Ug=o.div`
1548
+ `,ly=o.div`
1549
1549
  position: absolute;
1550
1550
  top: ${({$y:e})=>e}px;
1551
1551
  left: ${({$x:e})=>e}px;
@@ -1555,85 +1555,85 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1555
1555
  background-color: ${({theme:e,$bgColor:t})=>t||e.colors.dropdown_bg_2};
1556
1556
  border-radius: ${({$isFirstItem:e,$isLastItem:t})=>e?"32px 0px 0px 32px":t?"0px 32px 32px 0px":"0"};
1557
1557
  transition: all 0.3s;
1558
- `,jg=({options:r=[],selected:o,setSelected:n})=>{const i=r.findIndex(e=>e.value===o),[a,s]=Wt(r[i]?.selectedBgColor||""),[l,c]=Wt({width:0,height:0}),[d,p]=Wt({x:0,y:0}),u=Gt(null);return Ht(()=>{u.current&&(c({width:u.current.offsetWidth,height:u.current.offsetHeight}),p({x:u.current.offsetWidth*i,y:0}))},[o,i]),t(Mg,{$count:r.length,children:[r.map(({icon:i,label:a,value:l,selectedBgColor:c,selectedTextColor:d},p)=>{const h=o===l;return t(Bg,{ref:h?u:void 0,$isFirstItem:0===p,$isLastItem:p===r.length-1,onClick:()=>{n(l),s(c||"")},children:[i&&e(i,{}),a&&e(Di,{size:12,family:"secondary",decoration:"underline",color:h?d:void 0,children:a})]},`segment-${a||p}-${l}`)}),e(Ug,{$bgColor:a,$width:l.width,$height:l.height,$x:d.x,$y:d.y,$isFirstItem:0===i,$isLastItem:i===r.length-1})]})},Wg=o(Rl)`
1558
+ `,cy=({options:r=[],selected:o,setSelected:n})=>{const i=r.findIndex(e=>e.value===o),[a,s]=Wt(r[i]?.selectedBgColor||""),[l,c]=Wt({width:0,height:0}),[d,p]=Wt({x:0,y:0}),u=Gt(null);return Ht(()=>{u.current&&(c({width:u.current.offsetWidth,height:u.current.offsetHeight}),p({x:u.current.offsetWidth*i,y:0}))},[o,i]),t(ay,{$count:r.length,children:[r.map(({icon:i,label:a,value:l,selectedBgColor:c,selectedTextColor:d},p)=>{const h=o===l;return t(sy,{ref:h?u:void 0,$isFirstItem:0===p,$isLastItem:p===r.length-1,onClick:()=>{n(l),s(c||"")},children:[i&&e(i,{}),a&&e(Di,{size:12,family:"secondary",decoration:"underline",color:h?d:void 0,children:a})]},`segment-${a||p}-${l}`)}),e(ly,{$bgColor:a,$width:l.width,$height:l.height,$x:d.x,$y:d.y,$isFirstItem:0===i,$isLastItem:i===r.length-1})]})},dy=o(Qc)`
1559
1559
  gap: 8px;
1560
1560
  text-transform: none;
1561
1561
  text-decoration: none;
1562
1562
  border: ${({theme:e,$withBorder:t})=>`1px solid ${t?e.colors.border:"transparent"}`};
1563
1563
  &.not-selected {
1564
- background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+bl["060"]};
1564
+ background-color: ${({theme:e,$color:t})=>t||e.colors.dropdown_bg_2+Mc["060"]};
1565
1565
  &:hover {
1566
1566
  background-color: ${({theme:e,$hoverColor:t})=>t||e.colors.dropdown_bg_2};
1567
1567
  }
1568
1568
  }
1569
1569
  &.selected {
1570
- background-color: ${({theme:e})=>e.colors.majestic_blue+bl["030"]};
1570
+ background-color: ${({theme:e})=>e.colors.majestic_blue+Mc["030"]};
1571
1571
  }
1572
- `,Hg=o(Di)`
1572
+ `,py=o(Di)`
1573
1573
  white-space: nowrap;
1574
1574
  overflow: hidden;
1575
1575
  text-overflow: ellipsis;
1576
1576
  font-size: 14px;
1577
- `,Xg=({label:r,onClick:o,icon:n,iconSrc:a,badgeLabel:s,badgeFilled:l,isSelected:c,withBorder:d,color:p,hoverColor:u,style:h})=>{const m=i();return t(Wg,{onClick:o,className:c?"selected":"not-selected",$withBorder:d,$color:p,$hoverColor:u,style:h,children:[n&&e("div",{children:e(n,{fill:m.text.info})}),a&&e("div",{children:e("img",{src:a,alt:"",width:16,height:16})}),e(Hg,{children:r}),c&&e("div",{children:e(ft,{fill:m.colors.majestic_blue_soft})}),void 0!==s&&e(Dl,{label:s,filled:l||c})]})},Gg=o.div`
1577
+ `,uy=({label:r,onClick:o,icon:n,iconSrc:a,badgeLabel:s,badgeFilled:l,isSelected:c,withBorder:d,color:p,hoverColor:u,style:h})=>{const m=i();return t(dy,{onClick:o,className:c?"selected":"not-selected",$withBorder:d,$color:p,$hoverColor:u,style:h,children:[n&&e("div",{children:e(n,{fill:m.text.info})}),a&&e("div",{children:e("img",{src:a,alt:"",width:16,height:16})}),e(py,{children:r}),c&&e("div",{children:e(ft,{fill:m.colors.majestic_blue_soft})}),void 0!==s&&e(Kc,{label:s,filled:l||c})]})},hy=o.div`
1578
1578
  display: flex;
1579
1579
  flex-direction: column;
1580
1580
  gap: 16px;
1581
1581
  ${({$maxWidth:e})=>e&&`max-width: ${e};`}
1582
- `,Vg=o.div`
1582
+ `,my=o.div`
1583
1583
  display: flex;
1584
1584
  align-items: center;
1585
1585
  gap: 16px;
1586
- `,Kg=o.div`
1586
+ `,gy=o.div`
1587
1587
  width: 50px;
1588
1588
  height: 50px;
1589
1589
  border-radius: 8px;
1590
1590
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1591
1591
  background-size: 200% 100%;
1592
- animation: ${kl} 10s infinite linear;
1593
- `,qg=o(Fn)`
1592
+ animation: ${Hc} 10s infinite linear;
1593
+ `,fy=o(Fn)`
1594
1594
  flex: 1;
1595
1595
  gap: 12px;
1596
- `,Jg=o.div`
1596
+ `,yy=o.div`
1597
1597
  width: ${({$width:e})=>e};
1598
1598
  height: 16px;
1599
1599
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1600
1600
  background-size: 200% 100%;
1601
- animation: ${kl} 1.5s infinite linear;
1601
+ animation: ${Hc} 1.5s infinite linear;
1602
1602
  border-radius: 4px;
1603
- `,Yg=({size:r=5,maxWidth:o})=>e(Gg,{$maxWidth:o,children:[...Array(r)].map((r,o)=>t(Vg,{children:[e(Kg,{}),t(qg,{children:[e(Jg,{$width:"80%"}),e(Jg,{$width:"100%"})]})]},o))});var Qg;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(Qg||(Qg={}));const Zg=o.div`
1603
+ `,xy=({size:r=5,maxWidth:o})=>e(hy,{$maxWidth:o,children:[...Array(r)].map((r,o)=>t(my,{children:[e(gy,{}),t(fy,{children:[e(yy,{$width:"80%"}),e(yy,{$width:"100%"})]})]},o))});var by;!function(e){e.Active="active",e.Disabled="disabled",e.Finished="finish"}(by||(by={}));const vy=o.div`
1604
1604
  display: flex;
1605
1605
  flex-direction: column;
1606
1606
  gap: 32px;
1607
- `,ef=o.div`
1607
+ `,$y=o.div`
1608
1608
  display: flex;
1609
1609
  gap: 16px;
1610
1610
  padding: 8px;
1611
- opacity: ${({$state:e})=>e===Qg.Active?1:e===Qg.Disabled?.5:.8};
1611
+ opacity: ${({$state:e})=>e===by.Active?1:e===by.Disabled?.5:.8};
1612
1612
  transition: all 0.3s;
1613
- `,tf=o(_n)`
1613
+ `,wy=o(_n)`
1614
1614
  justify-content: center;
1615
1615
  width: 24px;
1616
1616
  height: 24px;
1617
1617
  border-radius: 32px;
1618
- border: ${({theme:e,$state:t})=>t===Qg.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
1619
- opacity: ${({$state:e})=>e===Qg.Finished?.8:1};
1620
- `,rf=o(Fn)`
1618
+ border: ${({theme:e,$state:t})=>t===by.Disabled?`1px dashed ${e.text.dark_grey}`:`1px solid ${e.colors.secondary}`};
1619
+ opacity: ${({$state:e})=>e===by.Finished?.8:1};
1620
+ `,Sy=o(Fn)`
1621
1621
  justify-content: center;
1622
1622
  gap: 8px;
1623
- `,of=o(Di)``,nf=o(Di)``,af=({data:r,currentStep:o=0})=>{const[n,i]=Wt([]);return Ht(()=>{i(r.map((e,t)=>t<o-1?{...e,state:Qg.Finished,subtitle:e.subtitle||Gr.Success}:t===o-1?{...e,state:Qg.Active,subtitle:""}:{...e,state:Qg.Disabled,subtitle:""}))},[o,r]),e(Zg,{children:n.map((r,o)=>t(ef,{$state:r.state,children:[e(tf,{$state:r.state,children:[Qg.Active,Qg.Disabled].includes(r.state)?e(Di,{size:12,children:r.stepNumber}):r.state===Qg.Finished?e(ft,{size:20}):null}),t(rf,{children:[e(of,{family:"secondary",children:r.title}),r.subtitle&&e(nf,{size:10,weight:300,children:r.subtitle})]})]},o))})},sf=o(_n)`
1623
+ `,ky=o(Di)``,Cy=o(Di)``,Ey=({data:r,currentStep:o=0})=>{const[n,i]=Wt([]);return Ht(()=>{i(r.map((e,t)=>t<o-1?{...e,state:by.Finished,subtitle:e.subtitle||Gr.Success}:t===o-1?{...e,state:by.Active,subtitle:""}:{...e,state:by.Disabled,subtitle:""}))},[o,r]),e(vy,{children:n.map((r,o)=>t($y,{$state:r.state,children:[e(wy,{$state:r.state,children:[by.Active,by.Disabled].includes(r.state)?e(Di,{size:12,children:r.stepNumber}):r.state===by.Finished?e(ft,{size:20}):null}),t(Sy,{children:[e(ky,{family:"secondary",children:r.title}),r.subtitle&&e(Cy,{size:10,weight:300,children:r.subtitle})]})]},o))})},Ay=o(_n)`
1624
1624
  width: fit-content;
1625
1625
  gap: 6px;
1626
1626
  padding: 6px 12px;
1627
1627
  border-radius: 360px;
1628
1628
  background-color: ${({$type:e,theme:t})=>t.colors[e]};
1629
- `,lf=o(Di)`
1629
+ `,Dy=o(Di)`
1630
1630
  color: ${({$type:e,theme:t})=>t.text[e]};
1631
- `,cf=({type:r=Gr.Info,icon:o,title:n,size:i,family:a,children:s,...l})=>t(sf,{$type:r,children:[o&&e(o,{}),e(lf,{$type:r,size:i||12,family:a||"secondary",...l,children:s||n})]}),df=o.div`
1631
+ `,Ty=({type:r=Gr.Info,icon:o,title:n,size:i,family:a,children:s,...l})=>t(Ay,{$type:r,children:[o&&e(o,{}),e(Dy,{$type:r,size:i||12,family:a||"secondary",...l,children:s||n})]}),Iy=o.div`
1632
1632
  display: flex;
1633
1633
  flex-direction: column;
1634
1634
  position: relative;
1635
1635
  width: 100%;
1636
- `,pf=o.div`
1636
+ `,Ny=o.div`
1637
1637
  width: 100%;
1638
1638
  display: flex;
1639
1639
  align-items: center;
@@ -1661,7 +1661,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1661
1661
  &:focus-within {
1662
1662
  border-color: ${({theme:e})=>e.colors.secondary};
1663
1663
  }
1664
- `,uf=o.textarea`
1664
+ `,Ry=o.textarea`
1665
1665
  flex: 1;
1666
1666
  border: none;
1667
1667
  outline: none;
@@ -1685,13 +1685,13 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1685
1685
  background-color: ${({theme:e})=>e.colors.border};
1686
1686
  cursor: not-allowed;
1687
1687
  }
1688
- `,hf=({errorMessage:r,title:o,tooltip:n,required:i,onChange:a,name:s,...l})=>{const c=Gt(null),d=e=>{c.current&&(c.current.style.height="auto",e&&(c.current.style.height=`${c.current.scrollHeight}px`))};return t(df,{children:[e(xh,{title:o,required:i,tooltip:n}),e(pf,{$disabled:l.disabled,$hasError:!!r,$isActive:!!l.autoFocus,children:e(uf,{ref:c,"data-id":s,name:s,onFocus:()=>d(!0),onBlur:()=>d(!1),onChange:e=>{e.stopPropagation(),d(!0),a?.(e)},onKeyDown:e=>{e.stopPropagation()},...l})}),!!r&&e(Ni,{children:r})]})},mf=o.div`
1688
+ `,Oy=({errorMessage:r,title:o,tooltip:n,required:i,onChange:a,name:s,...l})=>{const c=Gt(null),d=e=>{c.current&&(c.current.style.height="auto",e&&(c.current.style.height=`${c.current.scrollHeight}px`))};return t(Iy,{children:[e(zm,{title:o,required:i,tooltip:n}),e(Ny,{$disabled:l.disabled,$hasError:!!r,$isActive:!!l.autoFocus,children:e(Ry,{ref:c,"data-id":s,name:s,onFocus:()=>d(!0),onBlur:()=>d(!1),onChange:e=>{e.stopPropagation(),d(!0),a?.(e)},onKeyDown:e=>{e.stopPropagation()},...l})}),!!r&&e(Ni,{children:r})]})},_y=o.div`
1689
1689
  display: flex;
1690
1690
  align-items: center;
1691
1691
  gap: 12px;
1692
1692
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1693
1693
  opacity: ${({$disabled:e})=>e?.6:1};
1694
- `,gf=o.div`
1694
+ `,Fy=o.div`
1695
1695
  width: 24px;
1696
1696
  height: 12px;
1697
1697
  border: 1px ${({$isActive:e,theme:t})=>e?`solid ${t.colors.majestic_blue}`:`dashed ${t.text.grey}`};
@@ -1713,11 +1713,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1713
1713
  transform: ${({$isActive:e})=>e?"translateX(12px)":"translateX(0)"};
1714
1714
  transition: background-color 0.3s, transform 0.3s;
1715
1715
  }
1716
- `,ff=({title:r,tooltip:o,initialValue:n=!1,onChange:i,disabled:a,allowPropagation:s=!1,flipHorizontally:l})=>{const[c,d]=Wt(n);Ht(()=>d(n),[n]);return t(mf,{$disabled:a,onClick:e=>{a||(s||e.stopPropagation(),i?i(!c):d(e=>!e))},children:[!l&&e(gf,{$disabled:a,$isActive:c}),(r||o)&&e(zc,{text:o,withIcon:!0,children:r&&e(Di,{size:14,children:r})}),l&&e(gf,{$disabled:a,$isActive:c})]})};var yf={v:"5.12.1",fr:60,ip:0,op:80,w:220,h:620,nm:"Odigos - Trace Loader",ddd:0,assets:[{id:"comp_0",nm:"moving lines-5",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[6.097,.571,0],ix:2,l:2},a:{a:0,k:[-.046,-149.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-.055,-173.88],[.095,546.629]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:2.4,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:18.172,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:36.174,s:[85.889]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:12.174,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:30.174,s:[85.889]},{t:45,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:51,st:-26,ct:1,bm:0}]},{id:"comp_1",nm:"moving lines-4",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.475,.571,0],ix:2,l:2},a:{a:0,k:[.144,-156.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.167,-182.047],[.314,547.797]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:17.9,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:38.055,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:61.053,s:[85.889]},{t:80,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:15.553,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:38.555,s:[85.889]},{t:57.5,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:80,st:-26,ct:1,bm:0}]},{id:"comp_2",nm:"moving lines-3",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.841,.571,0],ix:2,l:2},a:{a:0,k:[.324,-150.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.382,-175.047],[-.051,538.464]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:6,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:23.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:43.525,s:[85.889]},{t:60,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:13.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:33.525,s:[85.889]},{t:50,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:60,st:-26,ct:1,bm:0}]}],layers:[{ddd:0,ind:1,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:-22,op:29,st:-22,ct:1,bm:0},{ddd:0,ind:2,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:56,op:107,st:56,ct:1,bm:0},{ddd:0,ind:3,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:22,op:73,st:22,ct:1,bm:0},{ddd:0,ind:4,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:-65,op:15,st:-65,ct:1,bm:0},{ddd:0,ind:5,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:14,op:94,st:14,ct:1,bm:0},{ddd:0,ind:6,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:2,op:62,st:2,ct:1,bm:0},{ddd:0,ind:7,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:-36,op:20,st:-40,ct:1,bm:0},{ddd:0,ind:8,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:39,op:99,st:39,ct:1,bm:0},{ddd:0,ind:9,ty:4,nm:"Vector :M",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110,309.736,0],ix:2,l:2},a:{a:0,k:[308.5,313.236,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[205.677,618.844],[205.677,4.807]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[411.428,618.822],[411.333,4.99]],c:!1},ix:2},nm:"Path 6",mn:"ADBE Vector Shape - Group",hd:!1},{ind:2,ty:"sh",ix:3,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[308.5,618.796],[308.5,5.145]],c:!1},ix:2},nm:"Path 7",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.975244164467,.975244164467,.975244164467,.639999985695],ix:3},o:{a:0,k:64,ix:4},w:{a:0,k:1,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 7",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:0,op:684,st:0,ct:1,bm:0}],markers:[],props:{}};const xf=o.div`
1716
+ `,Py=({title:r,tooltip:o,initialValue:n=!1,onChange:i,disabled:a,allowPropagation:s=!1,flipHorizontally:l})=>{const[c,d]=Wt(n);Ht(()=>d(n),[n]);return t(_y,{$disabled:a,onClick:e=>{a||(s||e.stopPropagation(),i?i(!c):d(e=>!e))},children:[!l&&e(Fy,{$disabled:a,$isActive:c}),(r||o)&&e(np,{text:o,withIcon:!0,children:r&&e(Di,{size:14,children:r})}),l&&e(Fy,{$disabled:a,$isActive:c})]})};var Ly={v:"5.12.1",fr:60,ip:0,op:80,w:220,h:620,nm:"Odigos - Trace Loader",ddd:0,assets:[{id:"comp_0",nm:"moving lines-5",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[6.097,.571,0],ix:2,l:2},a:{a:0,k:[-.046,-149.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-.055,-173.88],[.095,546.629]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:2.4,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:18.172,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:36.174,s:[85.889]},{t:51,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:12.174,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:30.174,s:[85.889]},{t:45,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:51,st:-26,ct:1,bm:0}]},{id:"comp_1",nm:"moving lines-4",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.475,.571,0],ix:2,l:2},a:{a:0,k:[.144,-156.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.167,-182.047],[.314,547.797]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:17.9,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:38.055,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:61.053,s:[85.889]},{t:80,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:15.553,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:38.555,s:[85.889]},{t:57.5,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:80,st:-26,ct:1,bm:0}]},{id:"comp_2",nm:"moving lines-3",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"moving lines-3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[5.841,.571,0],ix:2,l:2},a:{a:0,k:[.324,-150.04,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.382,-175.047],[-.051,538.464]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.976470588235,.976470588235,.976470588235,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:6,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[85.714,85.714],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.757],y:[.459]},o:{x:[.441],y:[0]},t:6,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:23.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:43.525,s:[85.889]},{t:60,s:[100]}],ix:1},e:{a:1,k:[{i:{x:[.757],y:[.582]},o:{x:[.441],y:[0]},t:0,s:[0]},{i:{x:[.574],y:[.569]},o:{x:[.451],y:[.436]},t:13.525,s:[23.624]},{i:{x:[.571],y:[1]},o:{x:[.173],y:[.635]},t:33.525,s:[85.889]},{t:50,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:60,st:-26,ct:1,bm:0}]}],layers:[{ddd:0,ind:1,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:-22,op:29,st:-22,ct:1,bm:0},{ddd:0,ind:2,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:56,op:107,st:56,ct:1,bm:0},{ddd:0,ind:3,ty:0,nm:"moving lines-5",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[213,1,0],ix:2,l:2},a:{a:0,k:[6,0,0],ix:1,l:2},s:{a:0,k:[100,99.4,100],ix:6,l:2}},ao:0,w:12,h:619,ip:22,op:73,st:22,ct:1,bm:0},{ddd:0,ind:4,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:-65,op:15,st:-65,ct:1,bm:0},{ddd:0,ind:5,ty:0,nm:"moving lines-4",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110.5,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,98.2,100],ix:6,l:2}},ao:0,w:11,h:627,ip:14,op:94,st:14,ct:1,bm:0},{ddd:0,ind:6,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:2,op:62,st:2,ct:1,bm:0},{ddd:0,ind:7,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:-36,op:20,st:-40,ct:1,bm:0},{ddd:0,ind:8,ty:0,nm:"moving lines-3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[7,1,0],ix:2,l:2},a:{a:0,k:[5.5,0,0],ix:1,l:2},s:{a:0,k:[100,100.4,100],ix:6,l:2}},ao:0,w:11,h:613,ip:39,op:99,st:39,ct:1,bm:0},{ddd:0,ind:9,ty:4,nm:"Vector :M",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[110,309.736,0],ix:2,l:2},a:{a:0,k:[308.5,313.236,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[205.677,618.844],[205.677,4.807]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[411.428,618.822],[411.333,4.99]],c:!1},ix:2},nm:"Path 6",mn:"ADBE Vector Shape - Group",hd:!1},{ind:2,ty:"sh",ix:3,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[308.5,618.796],[308.5,5.145]],c:!1},ix:2},nm:"Path 7",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.975244164467,.975244164467,.975244164467,.639999985695],ix:3},o:{a:0,k:64,ix:4},w:{a:0,k:1,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 7",mn:"ADBE Vector Graphic - Stroke",hd:!1}],ip:0,op:684,st:0,ct:1,bm:0}],markers:[],props:{}};const zy=o.div`
1717
1717
  width: ${({$width:e})=>e}px;
1718
1718
  height: ${({$height:e})=>e}px;
1719
1719
  position: relative;
1720
- `,bf=({width:t=620})=>{const{darkMode:r}=i(),o=t/(620/220);return e(xf,{$width:t,$height:o,children:e(gr,{autoplay:!0,loop:!0,animationData:yf,style:{width:o,height:t,transform:"rotate(-90deg)",position:"absolute",top:-(o-o/10),left:o-o/10,filter:r?"invert(0)":"invert(1)"}})})},vf=o.div`
1720
+ `,My=({width:t=620})=>{const{darkMode:r}=i(),o=t/(620/220);return e(zy,{$width:t,$height:o,children:e(gr,{autoplay:!0,loop:!0,animationData:Ly,style:{width:o,height:t,transform:"rotate(-90deg)",position:"absolute",top:-(o-o/10),left:o-o/10,filter:r?"invert(0)":"invert(1)"}})})},By=o.div`
1721
1721
  display: flex;
1722
1722
  align-items: center;
1723
1723
  justify-content: center;
@@ -1727,17 +1727,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1727
1727
  padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
1728
1728
  border-radius: 100px;
1729
1729
  background-color: ${({$backgroundColor:e})=>e};
1730
- `,$f=({label:r,leftIcon:o,rightIcon:n,tooltip:a,status:s=qr.Unknown,useSecondaryTone:l=!1,invertColors:c=!1,textSize:d,textColor:p,backgroundColor:u,minWidth:h="unset",fullWidth:m=!1})=>{const g=i(),f=r?.toString(),y=s?[qr.Disabled].includes(s)?on(g,s,c?"400":"700"):[qr.Unknown].includes(s)?on(g,s,"600"):on(g,s,c?l?"400":"300":l?"700":"500"):g.v2.colors.grey[200],x=p||(c&&![qr.Unknown].includes(s)?y:[qr.Disabled].includes(s)?g.v2.colors.grey[400]:[Gr.Error,Gr.Warning,Gr.Success].includes(s)?g.v2.colors.black[500]:g.v2.colors.white[500]),b=u||(c&&![qr.Unknown].includes(s)?[qr.Disabled].includes(s)?g.v2.colors.grey[700]:g.v2.colors.silver[600]:y);return e(zc,{text:a,fullWidth:m,children:t(vf,{$backgroundColor:b,$minWidth:h,$fullWidth:m,$hasLabel:!!f,children:[o&&e(o,{fill:x,size:14}),f&&e(un,{color:x,size:d||sn.XXS,nowrap:!0,children:f}),n&&e(n,{fill:x,size:14})]})})},wf=o.span`
1730
+ `,Uy=({label:r,leftIcon:o,rightIcon:n,tooltip:a,status:s=qr.Unknown,useSecondaryTone:l=!1,invertColors:c=!1,textSize:d,textColor:p,backgroundColor:u,minWidth:h="unset",fullWidth:m=!1})=>{const g=i(),f=r?.toString(),y=s?[qr.Disabled].includes(s)?on(g,s,c?"400":"700"):[qr.Unknown].includes(s)?on(g,s,"600"):on(g,s,c?l?"400":"300":l?"700":"500"):g.v2.colors.grey[200],x=p||(c&&![qr.Unknown].includes(s)?y:[qr.Disabled].includes(s)?g.v2.colors.grey[400]:[Gr.Error,Gr.Warning,Gr.Success].includes(s)?g.v2.colors.black[500]:g.v2.colors.white[500]),b=u||(c&&![qr.Unknown].includes(s)?[qr.Disabled].includes(s)?g.v2.colors.grey[700]:g.v2.colors.silver[600]:y);return e(np,{text:a,fullWidth:m,children:t(By,{$backgroundColor:b,$minWidth:h,$fullWidth:m,$hasLabel:!!f,children:[o&&e(o,{fill:x,size:14}),f&&e(un,{color:x,size:d||sn.XXS,nowrap:!0,children:f}),n&&e(n,{fill:x,size:14})]})})},jy=o.span`
1731
1731
  font-family: ${({theme:e})=>e.font_family.primary};
1732
1732
  font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
1733
1733
  font-weight: 400;
1734
1734
  color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
1735
- `,Sf=o.span`
1735
+ `,Wy=o.span`
1736
1736
  font-family: ${({theme:e})=>e.font_family.primary};
1737
1737
  font-size: 14px;
1738
1738
  font-weight: 400;
1739
1739
  color: ${({theme:e})=>e.v2.colors.red[500]};
1740
- `,kf=({label:r,tooltip:o,required:n,badge:i,width:a,smallAndDark:s})=>r||o||n?t(_n,{$width:a,$justifyContent:"space-between",children:[r&&e(wf,{$smallAndDark:s,children:r}),t(_n,{$gap:4,children:[i&&e($f,{...i,textSize:sn.XXXS}),n&&e(Sf,{children:"*"}),o&&e(zc,{text:o,withIcon:!0})]})]}):null,Cf=({errorMessage:r,warnMessage:o,helpMessage:n})=>{const a=i(),s=r?a.v2.colors.red[500]:o?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=e(rt,{size:12,fill:s});return r||o||n?t(_n,{$alignItems:"center",children:[l&&e(Fn,{children:l}),e(un,{size:sn.XXS,weight:400,color:s,children:r||o||n})]}):null},Ef=o.div`
1740
+ `,Hy=({label:r,tooltip:o,required:n,badge:i,width:a,smallAndDark:s})=>r||o||n?t(_n,{$width:a,$justifyContent:"space-between",children:[r&&e(jy,{$smallAndDark:s,children:r}),t(_n,{$gap:4,children:[i&&e(Uy,{...i,textSize:sn.XXXS}),n&&e(Wy,{children:"*"}),o&&e(np,{text:o,withIcon:!0})]})]}):null,Xy=({errorMessage:r,warnMessage:o,helpMessage:n})=>{const a=i(),s=r?a.v2.colors.red[500]:o?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=e(rt,{size:12,fill:s});return r||o||n?t(_n,{$alignItems:"center",children:[l&&e(Fn,{children:l}),e(un,{size:sn.XXS,weight:400,color:s,children:r||o||n})]}):null},Gy=o.div`
1741
1741
  padding: ${({$small:e})=>e?"4px":"6px 12px"};
1742
1742
 
1743
1743
  display: flex;
@@ -1755,7 +1755,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1755
1755
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1756
1756
  }
1757
1757
  `}
1758
- `,Af=o.input`
1758
+ `,Vy=o.input`
1759
1759
  max-width: ${({$maxWidth:e})=>e||"unset"};
1760
1760
  width: ${({$width:e})=>e||"unset"};
1761
1761
 
@@ -1781,12 +1781,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1781
1781
  overflow: hidden;
1782
1782
  text-overflow: ellipsis;
1783
1783
  white-space: nowrap;
1784
- `,Df=o.div`
1784
+ `,Ky=o.div`
1785
1785
  display: flex;
1786
1786
  align-items: center;
1787
1787
  justify-content: center;
1788
1788
  cursor: pointer;
1789
- `,Tf=({label:r,required:o,tooltip:n,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:p,helpMessage:u,type:h=Xr.Text,name:m,value:g,onChange:f,disabled:y,maxWidth:x,width:b,small:v=!1,onClick:$,...w})=>{const S=i(),k=h===Xr.Password,[C,E]=Wt(!1),[A,D]=Wt(null),T=c||!!d||!!A,I=g?S.v2.colors.white[500]:y?S.v2.colors.grey[400]:S.v2.colors.silver[200],N=v?14:18;return t(Fn,{$width:b,$gap:6,children:[e(kf,{label:r,tooltip:n,required:o,badge:a}),t(Ef,{$small:v,$disabled:y,$error:T,onClick:y?void 0:$,children:[s?e(s,{size:N,fill:I}):null,e(Af,{"data-id":m,type:C||h===Xr.Number?Xr.Text:h,name:m,value:g,onChange:e=>{e.stopPropagation();const t=e.target.value;h===Xr.Number&&(e.target.value=gi(t),t&&t!==e.target.value?D("Please enter a valid number"):D(null)),f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:y,$maxWidth:x,$width:b,$small:v,...w}),k?e(Df,{onClick:()=>E(e=>!e),children:e(C?At:Dt,{size:N,fill:I})}):l?e(l,{size:N,fill:I}):null]}),e(Cf,{errorMessage:A||d,warnMessage:p,helpMessage:u})]})};var If,Nf;!function(e){e.S="s",e.L="l"}(If||(If={})),function(e){e.Filled="filled",e.Underline="underline"}(Nf||(Nf={}));const Rf=o.div`
1789
+ `,qy=({label:r,required:o,tooltip:n,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:p,helpMessage:u,type:h=Xr.Text,name:m,value:g,onChange:f,disabled:y,maxWidth:x,width:b,small:v=!1,onClick:$,...w})=>{const S=i(),k=h===Xr.Password,[C,E]=Wt(!1),[A,D]=Wt(null),T=c||!!d||!!A,I=g?S.v2.colors.white[500]:y?S.v2.colors.grey[400]:S.v2.colors.silver[200],N=v?14:18;return t(Fn,{$width:b,$gap:6,children:[e(Hy,{label:r,tooltip:n,required:o,badge:a}),t(Gy,{$small:v,$disabled:y,$error:T,onClick:y?void 0:$,children:[s?e(s,{size:N,fill:I}):null,e(Vy,{"data-id":m,type:C||h===Xr.Number?Xr.Text:h,name:m,value:g,onChange:e=>{e.stopPropagation();const t=e.target.value;h===Xr.Number&&(e.target.value=gi(t),t&&t!==e.target.value?D("Please enter a valid number"):D(null)),f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:y,$maxWidth:x,$width:b,$small:v,...w}),k?e(Ky,{onClick:()=>E(e=>!e),children:e(C?At:Dt,{size:N,fill:I})}):l?e(l,{size:N,fill:I}):null]}),e(Xy,{errorMessage:A||d,warnMessage:p,helpMessage:u})]})};var Jy,Yy;!function(e){e.S="s",e.L="l"}(Jy||(Jy={})),function(e){e.Filled="filled",e.Underline="underline"}(Yy||(Yy={}));const Qy=o.div`
1790
1790
  display: flex;
1791
1791
  align-items: center;
1792
1792
  gap: 2px;
@@ -1794,20 +1794,20 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1794
1794
  border-radius: 8px;
1795
1795
  border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
1796
1796
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1797
- `,Of=o.button`
1797
+ `,Zy=o.button`
1798
1798
  flex: 1;
1799
1799
  display: flex;
1800
1800
  align-items: center;
1801
1801
  justify-content: center;
1802
1802
  gap: 8px;
1803
- padding: ${({$size:e})=>e===If.S?"4px 8px":"8px 16px"};
1803
+ padding: ${({$size:e})=>e===Jy.S?"4px 8px":"8px 16px"};
1804
1804
  border-radius: 6px;
1805
1805
  border: 1px solid ${({$isSelected:e,$selectedBorderColor:t})=>e&&t?t:"transparent"};
1806
1806
  box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
1807
1807
 
1808
1808
  ${({$disabled:e,$isSelected:t,$selectedBgColor:r,theme:o})=>e?n`
1809
1809
  cursor: not-allowed;
1810
- background-color: ${t?(r||o.v2.colors.black[500])+bl["040"]:"transparent"};
1810
+ background-color: ${t?(r||o.v2.colors.black[500])+Mc["040"]:"transparent"};
1811
1811
  `:n`
1812
1812
  cursor: pointer;
1813
1813
  background-color: ${t?r||o.v2.colors.black[500]:"transparent"};
@@ -1815,10 +1815,10 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1815
1815
  background-color: ${t?r||o.v2.colors.black[500]:o.v2.colors.silver[800]};
1816
1816
  }
1817
1817
  `}
1818
- `,_f=o.div`
1818
+ `,ex=o.div`
1819
1819
  display: flex;
1820
1820
  align-items: stretch;
1821
- `,Ff=o.button`
1821
+ `,tx=o.button`
1822
1822
  display: flex;
1823
1823
  height: 34px;
1824
1824
  padding: 8px 12px 8px 16px;
@@ -1837,7 +1837,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1837
1837
  &:hover {
1838
1838
  border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
1839
1839
  }
1840
- `,Pf=({"data-id":o,size:n=If.L,variant:a=Nf.Filled,options:s=[],selected:l,setSelected:c,disabled:d})=>{const p=i(),u=a===Nf.Underline,h=u?Ff:Of;return e(u?_f:Rf,{"data-id":o,children:s.map(({value:o,label:i,icon:a,tooltip:s,selectedBgColor:m,selectedBorderColor:g,disabled:f},y)=>{const x=l===o,b=f||d,v=b?p.v2.colors.grey[400]:u||x?p.v2.colors.white[500]:p.v2.colors.grey[300],$=n===If.S?sn.XXS:sn.XS,w=x?500:400,S=t(r,{children:[a&&e(a,{fill:v}),i&&e(un,{size:$,weight:w,color:v,nowrap:!0,children:i})]});return e(h,{onClick:()=>!b&&c(o),$disabled:b,$isSelected:x,$size:n,...!u&&{$selectedBgColor:m,$selectedBorderColor:g},children:s?e(zc,{text:s,withIcon:!0,children:S}):S},`segment-${i||y}-${o}`)})})},Lf=o.div`
1840
+ `,rx=({"data-id":o,size:n=Jy.L,variant:a=Yy.Filled,options:s=[],selected:l,setSelected:c,disabled:d})=>{const p=i(),u=a===Yy.Underline,h=u?tx:Zy;return e(u?ex:Qy,{"data-id":o,children:s.map(({value:o,label:i,icon:a,tooltip:s,selectedBgColor:m,selectedBorderColor:g,disabled:f},y)=>{const x=l===o,b=f||d,v=b?p.v2.colors.grey[400]:u||x?p.v2.colors.white[500]:p.v2.colors.grey[300],$=n===Jy.S?sn.XXS:sn.XS,w=x?500:400,S=t(r,{children:[a&&e(a,{fill:v}),i&&e(un,{size:$,weight:w,color:v,nowrap:!0,children:i})]});return e(h,{onClick:()=>!b&&c(o),$disabled:b,$isSelected:x,$size:n,...!u&&{$selectedBgColor:m,$selectedBorderColor:g},children:s?e(np,{text:s,withIcon:!0,children:S}):S},`segment-${i||y}-${o}`)})})},ox=o.div`
1841
1841
  box-sizing: border-box !important;
1842
1842
  width: ${({$width:e})=>e??"fit-content"};
1843
1843
  padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
@@ -1851,7 +1851,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1851
1851
  border: none;
1852
1852
  border-radius: 6px;
1853
1853
  background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:r,$emphasizeBackgroundColor:o,theme:n})=>{const i=r??n.v2.colors.silver[800],a=o??n.v2.colors.silver[700];return e||t?a:i}};
1854
- `,zf=o.input`
1854
+ `,nx=o.input`
1855
1855
  min-width: 0;
1856
1856
  flex: 1;
1857
1857
  font-family: ${({theme:e})=>e.font_family.primary};
@@ -1868,7 +1868,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1868
1868
  overflow: hidden;
1869
1869
  text-overflow: ellipsis;
1870
1870
  white-space: nowrap;
1871
- `,Mf=({"data-id":r,value:o,onChange:n,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:p,emphasizeBackgroundColor:u})=>{const h=i(),[m,g]=Wt(!1),[f,y]=Wt(!1),[x,b]=Wt(!1),v=m?h.v2.colors.white[500]:h.v2.colors.silver[200],$=!!d?.options?.length,w=Xt(()=>{if($)return d?.options.find(e=>e.value===d.selected)?.label},[$,d?.options,d?.selected]),S=Xt(()=>l||($&&w?`Search by ${w.toLowerCase()}`:"Search..."),[l,$,w]);return t(Lf,{$width:c,$withSegment:$,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!x,$isActive:m,$idleBackgroundColor:p,$emphasizeBackgroundColor:u,children:[e(Tt,{size:18,fill:v}),e(zf,{"data-id":r??"search",name:"search",type:"text",placeholder:S,value:o,onChange:e=>{e.stopPropagation(),n(e.target.value)},onFocus:()=>{g(!0),a?.()},onBlur:()=>{g(!1),s?.()},$textColor:v}),$&&e("div",{style:{flexShrink:0},onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:e(Pf,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected,size:If.S})})]})};var Bf,Uf;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(Bf||(Bf={})),function(e){e.S="small",e.M="medium",e.L="large"}(Uf||(Uf={}));const jf=o.button`
1871
+ `,ix=({"data-id":r,value:o,onChange:n,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:p,emphasizeBackgroundColor:u})=>{const h=i(),[m,g]=Wt(!1),[f,y]=Wt(!1),[x,b]=Wt(!1),v=m?h.v2.colors.white[500]:h.v2.colors.silver[200],$=!!d?.options?.length,w=Xt(()=>{if($)return d?.options.find(e=>e.value===d.selected)?.label},[$,d?.options,d?.selected]),S=Xt(()=>l||($&&w?`Search by ${w.toLowerCase()}`:"Search..."),[l,$,w]);return t(ox,{$width:c,$withSegment:$,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!x,$isActive:m,$idleBackgroundColor:p,$emphasizeBackgroundColor:u,children:[e(Tt,{size:18,fill:v}),e(nx,{"data-id":r??"search",name:"search",type:"text",placeholder:S,value:o,onChange:e=>{e.stopPropagation(),n(e.target.value)},onFocus:()=>{g(!0),a?.()},onBlur:()=>{g(!1),s?.()},$textColor:v}),$&&e("div",{style:{flexShrink:0},onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),children:e(rx,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected,size:Jy.S})})]})};var ax,sx;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(ax||(ax={})),function(e){e.S="small",e.M="medium",e.L="large"}(sx||(sx={}));const lx=o.button`
1872
1872
  display: flex;
1873
1873
  align-items: center;
1874
1874
  justify-content: center;
@@ -1878,14 +1878,14 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1878
1878
  `}
1879
1879
  border: none;
1880
1880
  border-radius: 6px;
1881
- ${({$size:e,$hasLabel:t})=>e===Uf.S?n`
1881
+ ${({$size:e,$hasLabel:t})=>e===sx.S?n`
1882
1882
  height: 32px;
1883
1883
  ${t?n`
1884
1884
  padding: 8px 16px;
1885
1885
  `:n`
1886
1886
  width: 32px;
1887
1887
  `}
1888
- `:e===Uf.M?n`
1888
+ `:e===sx.M?n`
1889
1889
  height: 38px;
1890
1890
  ${t?n`
1891
1891
  padding: 8px 18px;
@@ -1910,7 +1910,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1910
1910
  ${({$withShadow:e})=>e?n`
1911
1911
  box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
1912
1912
  `:""}
1913
- ${({$variant:e})=>e===Bf.Primary?n`
1913
+ ${({$variant:e})=>e===ax.Primary?n`
1914
1914
  background-color: ${({theme:e})=>e.v2.colors.purple[500]};
1915
1915
  &:hover {
1916
1916
  background-color: ${({theme:e})=>e.v2.colors.purple[600]};
@@ -1918,7 +1918,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1918
1918
  &:active {
1919
1919
  background-color: ${({theme:e})=>e.v2.colors.purple[700]};
1920
1920
  }
1921
- `:e===Bf.Secondary?n`
1921
+ `:e===ax.Secondary?n`
1922
1922
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1923
1923
  &:hover {
1924
1924
  background-color: ${({theme:e})=>e.v2.colors.silver[600]};
@@ -1926,7 +1926,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1926
1926
  &:active {
1927
1927
  background-color: ${({theme:e})=>e.v2.colors.silver[500]};
1928
1928
  }
1929
- `:e===Bf.Text?n`
1929
+ `:e===ax.Text?n`
1930
1930
  background-color: transparent;
1931
1931
  &:hover {
1932
1932
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
@@ -1936,7 +1936,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1936
1936
  }
1937
1937
  `:""}
1938
1938
  }
1939
- `,Wf=Ut(({"data-id":o,label:n,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=Bf.Primary,size:p=Uf.M,iconSize:u,loading:h,fullWidth:m,withShadow:g,textColor:f,disabled:y,onClick:x,...b},v)=>{const $=i(),w=u||(p===Uf.L?18:16),S=p===Uf.L?sn.S:sn.XS,k=f||(y?$.v2.colors.grey[400]:$.v2.colors.white[500]),[C,E]=Wt(!1),A=Vt(async e=>{e.stopPropagation(),E(!0),await(x?.(e)),E(!1)},[x]);return e(jf,{ref:v,"data-id":o,$variant:d,$size:p,$fullWidth:m,$withShadow:g,$hasLabel:!!n,disabled:y,onClick:h||C?void 0:A,...b,children:e(zc,{text:a,withIcon:!s,children:h||C?n?e(kg,{size:$.v2.text.size[S],textColor:k}):e(kd,{}):t(r,{children:[l&&e(l,{size:w,fill:k}),n?e(un,{size:S,weight:500,color:k,nowrap:!0,children:n}):null,c&&e(c,{size:w,fill:k})]})})})});Wf.displayName=Wf.name;const Hf=o.div`
1939
+ `,cx=Ut(({"data-id":o,label:n,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=ax.Primary,size:p=sx.M,iconSize:u,loading:h,fullWidth:m,withShadow:g,textColor:f,disabled:y,onClick:x,...b},v)=>{const $=i(),w=u||(p===sx.L?18:16),S=p===sx.L?sn.S:sn.XS,k=f||(y?$.v2.colors.grey[400]:$.v2.colors.white[500]),[C,E]=Wt(!1),A=Vt(async e=>{e.stopPropagation(),E(!0),await(x?.(e)),E(!1)},[x]);return e(lx,{ref:v,"data-id":o,$variant:d,$size:p,$fullWidth:m,$withShadow:g,$hasLabel:!!n,disabled:y,onClick:h||C?void 0:A,...b,children:e(np,{text:a,withIcon:!s,children:h||C?n?e(Xf,{size:$.v2.text.size[S],textColor:k}):e(Hp,{}):t(r,{children:[l&&e(l,{size:w,fill:k}),n?e(un,{size:S,weight:500,color:k,nowrap:!0,children:n}):null,c&&e(c,{size:w,fill:k})]})})})});cx.displayName=cx.name;const dx=o.div`
1940
1940
  display: flex;
1941
1941
  align-items: center;
1942
1942
  justify-content: center;
@@ -1945,31 +1945,31 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1945
1945
  padding: 8px;
1946
1946
  border-radius: 100%;
1947
1947
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
1948
- `,Xf=({icon:r=xt,hideIcon:o=!1,title:n="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(Fn,{$gap:12,$alignItems:"center",children:[!o&&e(Hf,{children:e(r,{size:32,fill:l})}),t(Fn,{$gap:4,$alignItems:"center",children:[e(un,{size:sn.S,align:"center",children:n}),a&&e(un,{size:sn.XXS,align:"center",color:l,children:a})]}),s&&e(Wf,{variant:Bf.Secondary,...s})]})};var Gf;!function(e){e.S="small",e.L="large"}(Gf||(Gf={}));const Vf=o.div`
1948
+ `,px=({icon:r=xt,hideIcon:o=!1,title:n="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(Fn,{$gap:12,$alignItems:"center",children:[!o&&e(dx,{children:e(r,{size:32,fill:l})}),t(Fn,{$gap:4,$alignItems:"center",children:[e(un,{size:sn.S,align:"center",children:n}),a&&e(un,{size:sn.XXS,align:"center",color:l,children:a})]}),s&&e(cx,{variant:ax.Secondary,...s})]})};var ux;!function(e){e.S="small",e.L="large"}(ux||(ux={}));const hx=o.div`
1949
1949
  width: fit-content;
1950
1950
  display: flex;
1951
1951
  align-items: center;
1952
1952
  gap: 8px;
1953
1953
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1954
- `,Kf=o.div`
1955
- width: ${({$size:e})=>e===Gf.S?"16px":"20px"};
1956
- height: ${({$size:e})=>e===Gf.S?"16px":"20px"};
1954
+ `,mx=o.div`
1955
+ width: ${({$size:e})=>e===ux.S?"16px":"20px"};
1956
+ height: ${({$size:e})=>e===ux.S?"16px":"20px"};
1957
1957
  display: flex;
1958
1958
  align-items: center;
1959
1959
  justify-content: center;
1960
1960
  border-radius: 4px;
1961
1961
  border: 1px solid ${({$borderColor:e})=>e};
1962
1962
  background-color: ${({$backgroundColor:e})=>e};
1963
- `,qf=({name:r,label:o,tooltip:n,badge:a,size:s=Gf.L,disabled:l,partiallyChecked:c,value:d,onChange:p,errorMessage:u,warnMessage:h,helpMessage:m})=>{const g=i(),[f,y]=Wt(!1),x=c||d,b=s===Gf.S?12:16,v=l?g.v2.colors.grey[400]:g.v2.colors.white[500],$=x?"transparent":l?g.v2.colors.grey[700]:f?g.v2.colors.silver[400]:g.v2.colors.silver[600],w=l?g.v2.colors.grey[600]:x?g.v2.colors.purple[500]:g.v2.colors.silver[900];return t(Fn,{$gap:4,children:[t(_n,{$justifyContent:"space-between",children:[t(Vf,{"data-id":r||"checkbox"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),l||p(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[e(Kf,{$size:s,$borderColor:$,$backgroundColor:w,children:c?e(bt,{size:b,fill:v}):d?e(ft,{size:b,fill:v}):null}),o&&e(un,{size:s===Gf.S?sn.XXS:sn.XS,nowrap:!0,children:o})]}),e(kf,{tooltip:n,badge:a})]}),e(Cf,{errorMessage:u,warnMessage:h,helpMessage:m})]})},Jf=o.div`
1963
+ `,gx=({name:r,label:o,tooltip:n,badge:a,size:s=ux.L,disabled:l,partiallyChecked:c,value:d,onChange:p,errorMessage:u,warnMessage:h,helpMessage:m})=>{const g=i(),[f,y]=Wt(!1),x=c||d,b=s===ux.S?12:16,v=l?g.v2.colors.grey[400]:g.v2.colors.white[500],$=x?"transparent":l?g.v2.colors.grey[700]:f?g.v2.colors.silver[400]:g.v2.colors.silver[600],w=l?g.v2.colors.grey[600]:x?g.v2.colors.purple[500]:g.v2.colors.silver[900];return t(Fn,{$gap:4,children:[t(_n,{$justifyContent:"space-between",children:[t(hx,{"data-id":r||"checkbox"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),l||p(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[e(mx,{$size:s,$borderColor:$,$backgroundColor:w,children:c?e(bt,{size:b,fill:v}):d?e(ft,{size:b,fill:v}):null}),o&&e(un,{size:s===ux.S?sn.XXS:sn.XS,nowrap:!0,children:o})]}),e(Hy,{tooltip:n,badge:a})]}),e(Xy,{errorMessage:u,warnMessage:h,helpMessage:m})]})},fx=o.div`
1964
1964
  display: flex;
1965
1965
  flex-direction: ${({$direction:e})=>e===Fr.Horizontal?"row":"column"};
1966
1966
  gap: ${({$direction:e})=>e===Fr.Horizontal?16:8}px;
1967
- `,Yf=({direction:r=Fr.Vertical,title:o,size:n,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=n===Gf.S?sn.XXS:sn.XS,p=Xt(()=>s.every(e=>l[e.id]),[s,l]),u=Xt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(r=>{const o={...r};return e?o[e]=t:s.forEach(e=>o[e.id]=t),o})};return t(Jf,{$direction:r,children:[o&&a?e(qf,{label:o,partiallyChecked:u,value:p,onChange:e=>h("",e),size:n}):o&&!a?e(un,{size:d,children:o}):null,s.map(t=>e(qf,{...t,value:l[t.id],onChange:e=>h(t.id,e),disabled:i,size:n},`${o}-checkbox-${t.id}`))]})};var Qf,Zf;!function(e){e.Left="left",e.Right="right"}(Qf||(Qf={})),function(e){e.Top="top",e.Bottom="bottom"}(Zf||(Zf={}));const ey=o.div`
1967
+ `,yx=({direction:r=Fr.Vertical,title:o,size:n,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=n===ux.S?sn.XXS:sn.XS,p=Xt(()=>s.every(e=>l[e.id]),[s,l]),u=Xt(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(r=>{const o={...r};return e?o[e]=t:s.forEach(e=>o[e.id]=t),o})};return t(fx,{$direction:r,children:[o&&a?e(gx,{label:o,partiallyChecked:u,value:p,onChange:e=>h("",e),size:n}):o&&!a?e(un,{size:d,children:o}):null,s.map(t=>e(gx,{...t,value:l[t.id],onChange:e=>h(t.id,e),disabled:i,size:n},`${o}-checkbox-${t.id}`))]})};var xx,bx;!function(e){e.Left="left",e.Right="right"}(xx||(xx={})),function(e){e.Top="top",e.Bottom="bottom"}(bx||(bx={}));const vx=o.div`
1968
1968
  position: relative;
1969
1969
  display: flex;
1970
1970
  flex-direction: column;
1971
1971
  gap: 4px;
1972
- `,ty=o.div`
1972
+ `,$x=o.div`
1973
1973
  position: fixed;
1974
1974
  ${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
1975
1975
  ${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
@@ -1987,7 +1987,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1987
1987
  border-radius: 6px;
1988
1988
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
1989
1989
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
1990
- `,ry=o.div`
1990
+ `,wx=o.div`
1991
1991
  display: flex;
1992
1992
  flex-direction: column;
1993
1993
  gap: 0;
@@ -1995,7 +1995,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
1995
1995
  width: 100%;
1996
1996
  max-height: ${({$maxHeight:e})=>e||"230px"};
1997
1997
  overflow-y: auto;
1998
- `,oy=o.div`
1998
+ `,Sx=o.div`
1999
1999
  display: flex;
2000
2000
  align-items: center;
2001
2001
  gap: 8px;
@@ -2011,7 +2011,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2011
2011
  background-color: ${({theme:e})=>e.v2.colors.grey[700]};
2012
2012
  }
2013
2013
  `}
2014
- `,ny=({defaultOpen:r,open:o,onOpenChange:n,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:p,withMultiSelect:u,withSearch:h,fullWidth:m,maxHeight:g,buttonProps:f,iconButtonProps:y,isLoading:x,emptyMessage:b,children:v})=>{const $=i(),w=void 0!==o,S=!!f||!!y||!!v,[k,C]=Wt(r??!S),E=w?o:k,A=Vt(e=>{w||C(e),n?.(e)},[w,n]),[D,T]=Wt({x:a||Qf.Left,y:s||Zf.Bottom}),I=Gt(null),N=Gt(null),[R,O]=Wt({}),_=Vt((e,t)=>{const r=I.current?.getBoundingClientRect();if(!r)return;const o=S?8:0;O({top:t===Zf.Bottom?S?r.bottom+o:r.top:void 0,bottom:t===Zf.Top?S?window.innerHeight-r.top+o:window.innerHeight-r.bottom:void 0,left:e===Qf.Left?r.left:void 0,right:e===Qf.Right?window.innerWidth-r.right:void 0,width:m?r.width:void 0})},[S,m]),F=e=>{const t=!E;if(A(t),!t)return;const r={x:a||(e.clientX>window.innerWidth/2?Qf.Right:Qf.Left),y:s||(e.clientY>window.innerHeight/2?Zf.Top:Zf.Bottom)};T(r),_(r.x,r.y)};Yt(()=>{E&&_(D.x,D.y)},[E,D.x,D.y,_]),Ht(()=>{if(!E)return;const e=e=>{const t=e.target;I.current?.contains(t)||N.current?.contains(t)||A(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[E,A]),Ht(()=>{if(!E)return;const e=()=>A(!1),t=()=>A(!1);return document.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{document.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[E,A]);const P=e=>{d(u?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),S&&!u&&A(!1)},[L,z]=Wt(""),M=Xt(()=>L?l.filter(e=>e?.label?.toLowerCase().includes(L.toLowerCase())):l,[l.length,L]);return t(ey,{ref:I,children:[p&&e(kf,{label:p}),f&&e(Wf,{...f,fullWidth:m,rightIcon:E?_t:Ft,onClick:F}),y&&e(jl,{...y,onClick:F}),"function"==typeof v?v({ChevronIcon:E?_t:Ft,handleClick:F}):v,E&&pr(t(ty,{ref:N,$coords:R,"data-ignore-outside-click":"true",children:[h&&e(Mf,{value:L,onChange:z,width:"100%"}),x?e(Gn,{withSpinner:!0,title:"Loading...",titleSize:sn.XS}):M.length?e(ry,{$maxHeight:g,children:M.map(r=>{if(!r)return null;const{id:o,label:n,icon:i,withCheckbox:a}=r,s=c.includes(o);return t(oy,{"data-id":`option-${o}`,$selected:s&&!a,onClick:()=>P(o),children:[a&&e(qf,{value:s,onChange:()=>P(o)}),i&&e(i,{size:14,fill:r.color||$.v2.colors.white[500]}),e(un,{size:sn.XS,nowrap:!0,color:r.color||ln.Primary,children:n})]},o)})}):e(On,{$padding:"6px 0",children:e(Xf,{hideIcon:!0,title:"No results",subTitle:b})}),u&&!!M.length&&e(Wf,{label:"Done",onClick:()=>A(!1)})]}),document.body)]})},iy=t=>{const{"data-id":r,options:o,placeholder:n="Search...",isLoading:i}=t,a=!0===t.multiple,[s,l]=Wt(""),[c,d]=Wt(!1),p=Xt(()=>a?t.value:t.value?[t.value]:[],[a,t.value]),u=Xt(()=>{if(a){const e=p.length;return e?1===e?o.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return t.value?o.find(e=>e.id===t.value)?.label??"":""},[a,t,o,p]),h=c?s:u,m=Xt(()=>{const e=a?o.map(e=>({...e,withCheckbox:!0})):o;if(!s)return e;const t=s.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(t))},[a,o,s]),g=Vt(()=>{l(""),d(!0)},[]),f=Vt(e=>{l(e.target.value),c||d(!0),a||e.target.value||!t.value||t.onSelect(null)},[c,a,t]),y=Vt(e=>{d(e),e||l("")},[]),x=Vt(e=>{if(a)return void t.onSelect(e);const r=o.find(t=>t.id===e[0]);r&&(t.onSelect(r),l(""),d(!1))},[a,t,o]),b=c&&(i||m.length>0||s.length>0);return e(ny,{open:b,onOpenChange:y,items:m,selectedIds:p,setSelectedIds:x,withMultiSelect:a,isLoading:i,emptyMessage:`No results matched the filter '${s}'`,fullWidth:!0,alignY:Zf.Bottom,children:e(Tf,{name:r,leftIcon:Tt,placeholder:n,value:h,onChange:f,onFocus:g})})},ay=o.button`
2014
+ `,kx=({defaultOpen:r,open:o,onOpenChange:n,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:p,withMultiSelect:u,withSearch:h,fullWidth:m,maxHeight:g,buttonProps:f,iconButtonProps:y,isLoading:x,emptyMessage:b,children:v})=>{const $=i(),w=void 0!==o,S=!!f||!!y||!!v,[k,C]=Wt(r??!S),E=w?o:k,A=Vt(e=>{w||C(e),n?.(e)},[w,n]),[D,T]=Wt({x:a||xx.Left,y:s||bx.Bottom}),I=Gt(null),N=Gt(null),[R,O]=Wt({}),_=Vt((e,t)=>{const r=I.current?.getBoundingClientRect();if(!r)return;const o=S?8:0;O({top:t===bx.Bottom?S?r.bottom+o:r.top:void 0,bottom:t===bx.Top?S?window.innerHeight-r.top+o:window.innerHeight-r.bottom:void 0,left:e===xx.Left?r.left:void 0,right:e===xx.Right?window.innerWidth-r.right:void 0,width:m?r.width:void 0})},[S,m]),F=e=>{const t=!E;if(A(t),!t)return;const r={x:a||(e.clientX>window.innerWidth/2?xx.Right:xx.Left),y:s||(e.clientY>window.innerHeight/2?bx.Top:bx.Bottom)};T(r),_(r.x,r.y)};Yt(()=>{E&&_(D.x,D.y)},[E,D.x,D.y,_]),Ht(()=>{if(!E)return;const e=e=>{const t=e.target;I.current?.contains(t)||N.current?.contains(t)||A(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[E,A]),Ht(()=>{if(!E)return;const e=()=>A(!1),t=()=>A(!1);return document.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{document.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[E,A]);const P=e=>{d(u?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),S&&!u&&A(!1)},[L,z]=Wt(""),M=Xt(()=>L?l.filter(e=>e?.label?.toLowerCase().includes(L.toLowerCase())):l,[l.length,L]);return t(vx,{ref:I,children:[p&&e(Hy,{label:p}),f&&e(cx,{...f,fullWidth:m,rightIcon:E?_t:Ft,onClick:F}),y&&e(ld,{...y,onClick:F}),"function"==typeof v?v({ChevronIcon:E?_t:Ft,handleClick:F}):v,E&&pr(t($x,{ref:N,$coords:R,"data-ignore-outside-click":"true",children:[h&&e(ix,{value:L,onChange:z,width:"100%"}),x?e(Gn,{withSpinner:!0,title:"Loading...",titleSize:sn.XS}):M.length?e(wx,{$maxHeight:g,children:M.map(r=>{if(!r)return null;const{id:o,label:n,icon:i,withCheckbox:a}=r,s=c.includes(o);return t(Sx,{"data-id":`option-${o}`,$selected:s&&!a,onClick:()=>P(o),children:[a&&e(gx,{value:s,onChange:()=>P(o)}),i&&e(i,{size:14,fill:r.color||$.v2.colors.white[500]}),e(un,{size:sn.XS,nowrap:!0,color:r.color||ln.Primary,children:n})]},o)})}):e(On,{$padding:"6px 0",children:e(px,{hideIcon:!0,title:"No results",subTitle:b})}),u&&!!M.length&&e(cx,{label:"Done",onClick:()=>A(!1)})]}),document.body)]})},Cx=t=>{const{"data-id":r,options:o,placeholder:n="Search...",isLoading:i}=t,a=!0===t.multiple,[s,l]=Wt(""),[c,d]=Wt(!1),p=Xt(()=>a?t.value:t.value?[t.value]:[],[a,t.value]),u=Xt(()=>{if(a){const e=p.length;return e?1===e?o.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return t.value?o.find(e=>e.id===t.value)?.label??"":""},[a,t,o,p]),h=c?s:u,m=Xt(()=>{const e=a?o.map(e=>({...e,withCheckbox:!0})):o;if(!s)return e;const t=s.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(t))},[a,o,s]),g=Vt(()=>{l(""),d(!0)},[]),f=Vt(e=>{l(e.target.value),c||d(!0),a||e.target.value||!t.value||t.onSelect(null)},[c,a,t]),y=Vt(e=>{d(e),e||l("")},[]),x=Vt(e=>{if(a)return void t.onSelect(e);const r=o.find(t=>t.id===e[0]);r&&(t.onSelect(r),l(""),d(!1))},[a,t,o]),b=c&&(i||m.length>0||s.length>0);return e(kx,{open:b,onOpenChange:y,items:m,selectedIds:p,setSelectedIds:x,withMultiSelect:a,isLoading:i,emptyMessage:`No results matched the filter '${s}'`,fullWidth:!0,alignY:bx.Bottom,children:e(qy,{name:r,leftIcon:Tt,placeholder:n,value:h,onChange:f,onFocus:g})})},Ex=o.button`
2015
2015
  width: 100%;
2016
2016
  padding: 0;
2017
2017
  padding-right: 12px;
@@ -2032,7 +2032,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2032
2032
  cursor: not-allowed;
2033
2033
  opacity: 0.5;
2034
2034
  }
2035
- `,sy=o.div`
2035
+ `,Ax=o.div`
2036
2036
  width: ${({$hasIcon:e})=>e?"56px":"0"};
2037
2037
  height: 56px;
2038
2038
  display: flex;
@@ -2043,20 +2043,20 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2043
2043
  `:n`
2044
2044
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
2045
2045
  `}
2046
- `,ly=o.div`
2046
+ `,Dx=o.div`
2047
2047
  width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
2048
2048
  display: flex;
2049
2049
  justify-content: space-between;
2050
2050
  align-items: center;
2051
2051
  gap: 8px;
2052
- `,cy=({label:r,icon:o,loading:n,disabled:i,onClick:a})=>{const[s,l]=Wt(!1);return t(ay,{$hovered:s,type:"button",disabled:i||n,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(sy,{$hovered:s,$hasIcon:!!o,children:o&&e(o,{size:36})}),t(ly,{$hasIcon:!!o,children:[n?e(kg,{size:16}):e(un,{variant:an.Span,align:"center",children:r}),e(Pt,{rotate:90,size:24})]})]})},dy=({buttons:t})=>e(Fn,{$gap:12,children:t.map(t=>e(cy,{...t},t.label))});var py;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(py||(py={}));const uy=({onAnyClick:t,actions:r})=>e(_n,{$gap:8,$alignItems:"center",children:r?.map(r=>{if(!r)return null;switch(r.type){case py.Button:return e(Wf,{...r.buttonProps,onClick:e=>{r.buttonProps?.onClick?.(e),t?.()}},r.id);case py.ButtonDropData:return e(ny,{...r.dropDataProps,items:r.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:e=>{r.buttonProps?.onClick?.(e[0]),t?.()},buttonProps:r.buttonProps},r.id);default:return null}})}),hy=({children:t,fullText:r,...o})=>{const n=Gt(null),[i,a]=Wt(!1);Yt(()=>{const e=n.current;if(!e)return;const t=()=>{a(e.scrollWidth>e.clientWidth+1)};t();const r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[t]),Ht(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let e=!1;return document.fonts.ready.then(()=>{const t=n.current;!e&&t&&a(t.scrollWidth>t.clientWidth+1)}),()=>{e=!0}},[t]);const s=i?r??(null==t?"":String(t)):"";return e(zc,{text:s,fullWidth:!0,ellipsis:!0,keepAlive:!0,children:e(un,{ref:n,...o,children:t})})},my=o.div`
2052
+ `,Tx=({label:r,icon:o,loading:n,disabled:i,onClick:a})=>{const[s,l]=Wt(!1);return t(Ex,{$hovered:s,type:"button",disabled:i||n,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(Ax,{$hovered:s,$hasIcon:!!o,children:o&&e(o,{size:36})}),t(Dx,{$hasIcon:!!o,children:[n?e(Xf,{size:16}):e(un,{variant:an.Span,align:"center",children:r}),e(Pt,{rotate:90,size:24})]})]})},Ix=({buttons:t})=>e(Fn,{$gap:12,children:t.map(t=>e(Tx,{...t},t.label))});var Nx;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(Nx||(Nx={}));const Rx=({onAnyClick:t,actions:r})=>e(_n,{$gap:8,$alignItems:"center",children:r?.map(r=>{if(!r)return null;switch(r.type){case Nx.Button:return e(cx,{...r.buttonProps,onClick:e=>{r.buttonProps?.onClick?.(e),t?.()}},r.id);case Nx.ButtonDropData:return e(kx,{...r.dropDataProps,items:r.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:e=>{r.buttonProps?.onClick?.(e[0]),t?.()},buttonProps:r.buttonProps},r.id);default:return null}})}),Ox=({children:t,fullText:r,...o})=>{const n=Gt(null),[i,a]=Wt(!1);Yt(()=>{const e=n.current;if(!e)return;const t=()=>{a(e.scrollWidth>e.clientWidth+1)};t();const r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[t]),Ht(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let e=!1;return document.fonts.ready.then(()=>{const t=n.current;!e&&t&&a(t.scrollWidth>t.clientWidth+1)}),()=>{e=!0}},[t]);const s=i?r??(null==t?"":String(t)):"";return e(np,{text:s,fullWidth:!0,ellipsis:!0,keepAlive:!0,children:e(un,{ref:n,...o,children:t})})},_x=o.div`
2053
2053
  display: flex;
2054
2054
  align-items: center;
2055
2055
  justify-content: center;
2056
2056
  padding: 8px;
2057
2057
  border-radius: 8px;
2058
2058
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
2059
- `,gy=({icon:r,title:o,subTitle:n,withCopy:i,badge:a,gap:s,children:l})=>{const{CopyButton:c}=Wl();return t(_n,{$gap:n?8:6,$alignItems:"center",children:[r&&(n?e(my,{children:e(r,{size:24})}):e(r,{size:24})),o||a||n?t(Fn,{children:[o||a?t(_n,{$gap:6,$alignItems:"center",children:[o&&e(un,{nowrap:!0,children:o}),i&&o&&e(c,{value:o,size:Bl.XS}),a&&e($f,{...a})]}):null,n&&e(un,{size:sn.XXS,color:ln.Secondary,nowrap:!0,children:n})]}):null,e(_n,{$gap:s,$margin:`0 0 0 ${s??0}px`,$alignItems:"center",children:l})]})},fy=o.div`
2059
+ `,Fx=({icon:r,title:o,subTitle:n,withCopy:i,badge:a,gap:s,children:l})=>{const{CopyButton:c}=cd();return t(_n,{$gap:n?8:6,$alignItems:"center",children:[r&&(n?e(_x,{children:e(r,{size:24})}):e(r,{size:24})),o||a||n?t(Fn,{children:[o||a?t(_n,{$gap:6,$alignItems:"center",children:[o&&e(un,{nowrap:!0,children:o}),i&&o&&e(c,{value:o,size:ad.XS}),a&&e(Uy,{...a})]}):null,n&&e(un,{size:sn.XXS,color:ln.Secondary,nowrap:!0,children:n})]}):null,e(_n,{$gap:s,$margin:`0 0 0 ${s??0}px`,$alignItems:"center",children:l})]})},Px=o.div`
2060
2060
  display: flex;
2061
2061
  flex-direction: column;
2062
2062
  gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
@@ -2065,19 +2065,19 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2065
2065
  padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
2066
2066
  border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
2067
2067
  background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
2068
- `,yy=o.div`
2068
+ `,Lx=o.div`
2069
2069
  display: flex;
2070
2070
  align-items: center;
2071
2071
  flex-wrap: wrap;
2072
2072
  width: 100%;
2073
- `,xy=o.div`
2073
+ `,zx=o.div`
2074
2074
  width: calc(${({$cellsPerRow:e})=>100/e+"%"} - 16px);
2075
2075
  margin: 8px;
2076
2076
  display: flex;
2077
2077
  flex-direction: column;
2078
2078
  gap: 4px;
2079
2079
  min-width: 0;
2080
- `,by=({item:r,cellsPerRow:o})=>{const{CopyButton:n}=Wl(),{title:i,label:a,withCopy:s,badge:l}=r;return t(xy,{$cellsPerRow:o,children:[!!i&&e(hy,{size:sn.XXXS,color:ln.Secondary,nowrap:!0,children:i}),t(_n,{$gap:4,children:[l&&e($f,{...l}),a&&e(hy,{size:sn.XS,nowrap:!0,children:a}),s&&e(n,{value:a||l?.label?.toString()||"",size:Bl.XS})]})]})},vy=({bgTint:r="900",fullHeight:o=!1,moreSpacing:n=!1,richTitle:i,withCollapse:a,collapseIsDefaultOpen:s,actions:l=[],cellsPerRow:c,items:d,children:p})=>{const[u,h]=Wt(s||!1),m=!a||a&&u;return t(fy,{$bgTint:r,$fullHeight:o,$moreSpacing:n,children:[(i||a)&&t(_n,{$gap:16,$justifyContent:"space-between",children:[i?e(gy,{...i}):e("div",{}),t(_n,{children:[m&&e(uy,{actions:l}),a&&e(_n,{$gap:8,$alignItems:"center",children:e(Wf,{variant:Bf.Text,size:Uf.S,leftIcon:u?_t:Ft,onClick:()=>h(e=>!e)})})]})]}),m&&d?e(yy,{children:d.map(t=>e(by,{item:t,cellsPerRow:c&&c<d.length?c:d.length},t.id))}):null,m&&p]})};var $y;!function(e){e.S="small",e.M="medium"}($y||($y={}));const wy=o.div`
2080
+ `,Mx=({item:r,cellsPerRow:o})=>{const{CopyButton:n}=cd(),{title:i,label:a,withCopy:s,badge:l}=r;return t(zx,{$cellsPerRow:o,children:[!!i&&e(Ox,{size:sn.XXXS,color:ln.Secondary,nowrap:!0,children:i}),t(_n,{$gap:4,children:[l&&e(Uy,{...l}),a&&e(Ox,{size:sn.XS,nowrap:!0,children:a}),s&&e(n,{value:a||l?.label?.toString()||"",size:ad.XS})]})]})},Bx=({bgTint:r="900",fullHeight:o=!1,moreSpacing:n=!1,richTitle:i,withCollapse:a,collapseIsDefaultOpen:s,actions:l=[],cellsPerRow:c,items:d,children:p})=>{const[u,h]=Wt(s||!1),m=!a||a&&u;return t(Px,{$bgTint:r,$fullHeight:o,$moreSpacing:n,children:[(i||a)&&t(_n,{$gap:16,$justifyContent:"space-between",children:[i?e(Fx,{...i}):e("div",{}),t(_n,{children:[m&&e(Rx,{actions:l}),a&&e(_n,{$gap:8,$alignItems:"center",children:e(cx,{variant:ax.Text,size:sx.S,leftIcon:u?_t:Ft,onClick:()=>h(e=>!e)})})]})]}),m&&d?e(Lx,{children:d.map(t=>e(Mx,{item:t,cellsPerRow:c&&c<d.length?c:d.length},t.id))}):null,m&&p]})};var Ux;!function(e){e.S="small",e.M="medium"}(Ux||(Ux={}));const jx=o.div`
2081
2081
  display: flex;
2082
2082
  flex-direction: column;
2083
2083
  gap: ${({$gap:e})=>e}px;
@@ -2086,7 +2086,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2086
2086
  padding: ${({$padding:e})=>e}px;
2087
2087
  border-radius: 16px;
2088
2088
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2089
- `,Sy=Ut(({id:r,size:o=$y.M,fullHeight:n=!1,richTitle:i,customTitle:a,search:s,customSearch:l,filters:c,actions:d,children:p},u)=>{const h=o===$y.S?4:16,m=o===$y.S?12:16,g=a??(i?e(gy,{...i}):null),f=l??(s?e(Mf,{...s}):null),y=!!g||!!f,x=!!d&&d.length>0;return t(wy,{ref:u,id:r,"data-section-name":r,$padding:m,$gap:h,$fullHeight:n,children:[y||x?t(_n,{$gap:h,$justifyContent:"space-between",children:[y?t(_n,{$gap:h,$alignItems:"center",children:[g,f,c]}):null,x&&e(uy,{actions:d??[]})]}):null,p]})});Sy.displayName="SectionCard";const ky=o.div`
2089
+ `,Wx=Ut(({id:r,size:o=Ux.M,fullHeight:n=!1,richTitle:i,customTitle:a,search:s,customSearch:l,filters:c,actions:d,children:p},u)=>{const h=o===Ux.S?4:16,m=o===Ux.S?12:16,g=a??(i?e(Fx,{...i}):null),f=l??(s?e(ix,{...s}):null),y=!!g||!!f,x=!!d&&d.length>0;return t(jx,{ref:u,id:r,"data-section-name":r,$padding:m,$gap:h,$fullHeight:n,children:[y||x?t(_n,{$gap:h,$justifyContent:"space-between",children:[y?t(_n,{$gap:h,$alignItems:"center",children:[g,f,c]}):null,x&&e(Rx,{actions:d??[]})]}):null,p]})});Wx.displayName="SectionCard";const Hx=o.div`
2090
2090
  flex: 1;
2091
2091
  align-self: stretch;
2092
2092
  display: flex;
@@ -2095,7 +2095,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2095
2095
  padding: 16px;
2096
2096
  border-radius: 12px;
2097
2097
  background-color: ${({theme:e,$status:t})=>on(e,t,t===qr.Unknown?"750":"500")};
2098
- `,Cy=o.div`
2098
+ `,Xx=o.div`
2099
2099
  display: flex;
2100
2100
  align-items: center;
2101
2101
  justify-content: center;
@@ -2103,8 +2103,8 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2103
2103
  height: fit-content;
2104
2104
  padding: 8px;
2105
2105
  border-radius: 12px;
2106
- background-color: ${({theme:e,$status:t})=>t===qr.Unknown?on(e,t,"800"):on(e,t,"900")+bl["015"]};
2107
- `,Ey=({status:r,icon:o,title:n,description:a})=>{const s=i(),l=o??Vn(r,s),c=[Gr.Default,Gr.Info,qr.Disabled,qr.Unknown].includes(r)?s.v2.colors.white[500]:s.v2.colors.black[500];return t(ky,{$status:r,children:[e(Cy,{$status:r,children:e(l,{size:32,fill:c})}),t(Fn,{$gap:2,$justifyContent:"center",children:[e(un,{size:sn.M,weight:500,color:c,nowrap:!0,children:n}),e(un,{size:sn.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},Ay=o.div`
2106
+ background-color: ${({theme:e,$status:t})=>t===qr.Unknown?on(e,t,"800"):on(e,t,"900")+Mc["015"]};
2107
+ `,Gx=({status:r,icon:o,title:n,description:a})=>{const s=i(),l=o??Vn(r,s),c=[Gr.Default,Gr.Info,qr.Disabled,qr.Unknown].includes(r)?s.v2.colors.white[500]:s.v2.colors.black[500];return t(Hx,{$status:r,children:[e(Xx,{$status:r,children:e(l,{size:32,fill:c})}),t(Fn,{$gap:2,$justifyContent:"center",children:[e(un,{size:sn.M,weight:500,color:c,nowrap:!0,children:n}),e(un,{size:sn.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},Vx=o.div`
2108
2108
  flex: 0.5;
2109
2109
  display: flex;
2110
2110
  flex-direction: column;
@@ -2112,25 +2112,25 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2112
2112
  padding: 12px;
2113
2113
  border-radius: 12px;
2114
2114
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
2115
- `,Dy=["-","N/A","undefined","null","undefined/undefined","null/null"],Ty=({title:r,cells:o})=>{const n=i();return t(Ay,{children:[e(un,{size:sn.XXS,color:n.v2.colors.grey[150],children:r}),e(_n,{$gap:32,children:o.map(o=>t(Fn,{$gap:2,children:[!o.isLoading||o.value&&!Dy.includes(o.value)?e(un,{size:o.label?sn.M:sn.L,children:o.value}):e(kd,{scale:.9}),o.label&&e(un,{size:sn.XXS,children:o.label})]},`${r}-${o.label}-${o.value}`))})]})};var Iy;!function(e){e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"}(Iy||(Iy={}));const Ny=o.div`
2115
+ `,Kx=["-","N/A","undefined","null","undefined/undefined","null/null"],qx=({title:r,cells:o})=>{const n=i();return t(Vx,{children:[e(un,{size:sn.XXS,color:n.v2.colors.grey[150],children:r}),e(_n,{$gap:32,children:o.map(o=>t(Fn,{$gap:2,children:[!o.isLoading||o.value&&!Kx.includes(o.value)?e(un,{size:o.label?sn.M:sn.L,children:o.value}):e(Hp,{scale:.9}),o.label&&e(un,{size:sn.XXS,children:o.label})]},`${r}-${o.label}-${o.value}`))})]})};var Jx;!function(e){e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"}(Jx||(Jx={}));const Yx=o.div`
2116
2116
  display: flex;
2117
2117
  align-items: flex-end;
2118
2118
  justify-content: space-between;
2119
2119
  gap: 24px;
2120
2120
  width: fit-content;
2121
- `,Ry=o.div`
2121
+ `,Qx=o.div`
2122
2122
  position: relative;
2123
2123
  display: flex;
2124
2124
  flex-direction: column;
2125
2125
  align-items: center;
2126
2126
  width: ${({$width:e})=>e??150}px;
2127
2127
  flex-shrink: 0;
2128
- `,Oy=o.svg`
2128
+ `,Zx=o.svg`
2129
2129
  display: block;
2130
2130
  width: 100%;
2131
2131
  height: auto;
2132
2132
  overflow: visible;
2133
- `,_y=o(Fn)`
2133
+ `,eb=o(Fn)`
2134
2134
  position: absolute;
2135
2135
  left: 0;
2136
2136
  right: 0;
@@ -2138,14 +2138,14 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2138
2138
  align-items: center;
2139
2139
  gap: 2px;
2140
2140
  pointer-events: none;
2141
- `,Fy=o.span`
2141
+ `,tb=o.span`
2142
2142
  display: inline-block;
2143
2143
  flex-shrink: 0;
2144
2144
  width: 9px;
2145
2145
  height: 9px;
2146
2146
  border-radius: 50%;
2147
2147
  background-color: ${({$color:e})=>e};
2148
- `,Py=e=>{if(null==e||""===e)return{number:0,prefix:"",suffix:""};if("number"==typeof e)return{number:e,prefix:"",suffix:""};const t=e.match(/^(\D*)(-?\d*\.?\d+)(.*)$/);return t?{number:parseFloat(t[2]),prefix:t[1]??"",suffix:(t[3]??"").trim()}:{number:0,prefix:"",suffix:""}},Ly=10,zy=(e,t,r,o)=>{const n=o*Math.PI/180;return{x:e+r*Math.cos(n),y:t-r*Math.sin(n)}},My=(e,t,r,o,n)=>{const i=zy(e,t,r,o),a=zy(e,t,r,n),s=o>n?1:0,l=Math.abs(o-n)>180?1:0;return`M ${i.x} ${i.y} A ${r} ${r} 0 ${l} ${s} ${a.x} ${a.y}`},By=({variant:r=Iy.CurrentOfMax,gaugeWidth:o,title:n,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:p,secondaryColor:u})=>{const{number:h}=Py(a),{number:m}=Py(s),{number:g,prefix:f,suffix:y}=Py(l),x=i(),b=((e,t,r)=>Math.min(Math.max(e,t),r))((g-h)/Math.max(m-h,1),0,1),v=180-180*b,$=b>0?My(60,60,55,180,v):null,w=b<1?My(60,60,55,v,0):null,S=zy(60,60,55,180),k=zy(60,60,55,0),C=d??(r===Iy.GoodAgainstBad?x.v2.colors.green[500]:x.v2.colors.purple[400]),E=u??(r===Iy.GoodAgainstBad?x.v2.colors.red[500]:x.v2.colors.silver[500]),[A,D]=Wt(null),T=e=>`${f}${e}${y}`,I=r===Iy.GoodAgainstBad?Math.max(m-g,0):m,N="primary"===A?c:"secondary"===A?p:"",R="primary"===A?T(g):"secondary"===A?T(I):"",O=()=>D("primary"),_=()=>D("secondary"),F=()=>D(null);return t(Ny,{children:[t(Ry,{$width:o,children:[e(zc,{keepAlive:!0,fullWidth:!0,title:N,text:R,children:t(Oy,{viewBox:"0 0 120 65",role:"img","aria-label":`${n}: ${g} of ${m}`,children:[$&&e("path",{d:$,fill:"none",stroke:C,strokeWidth:Ly,strokeLinecap:1===b?"round":"butt",onMouseEnter:O,onMouseLeave:F}),w&&e("path",{d:w,fill:"none",stroke:E,strokeWidth:Ly,strokeLinecap:0===b?"round":"butt",onMouseEnter:_,onMouseLeave:F}),b>0&&e("circle",{cx:S.x,cy:S.y,r:5,fill:C,onMouseEnter:O,onMouseLeave:F}),b<1&&e("circle",{cx:k.x,cy:k.y,r:5,fill:E,onMouseEnter:_,onMouseLeave:F})]})}),n&&t(_y,{children:[e(un,{size:sn.XXXS,color:x.v2.colors.grey[150],align:"center",children:n}),e(un,{size:sn.L,weight:500,align:"center",children:`${f}${g}${y}`})]})]}),t(Fn,{$gap:7,children:[t(_n,{$gap:8,$alignItems:"center",children:[e(Fy,{$color:C}),e(un,{size:sn.XXXS,color:x.v2.colors.grey[150],nowrap:!0,children:c})]}),t(_n,{$gap:8,$alignItems:"center",children:[e(Fy,{$color:E}),e(un,{size:sn.XXXS,color:x.v2.colors.grey[150],nowrap:!0,children:p})]})]})]})},Uy=o(_n)`
2148
+ `,rb=e=>{if(null==e||""===e)return{number:0,prefix:"",suffix:""};if("number"==typeof e)return{number:e,prefix:"",suffix:""};const t=e.match(/^(\D*)(-?\d*\.?\d+)(.*)$/);return t?{number:parseFloat(t[2]),prefix:t[1]??"",suffix:(t[3]??"").trim()}:{number:0,prefix:"",suffix:""}},ob=10,nb=(e,t,r,o)=>{const n=o*Math.PI/180;return{x:e+r*Math.cos(n),y:t-r*Math.sin(n)}},ib=(e,t,r,o,n)=>{const i=nb(e,t,r,o),a=nb(e,t,r,n),s=o>n?1:0,l=Math.abs(o-n)>180?1:0;return`M ${i.x} ${i.y} A ${r} ${r} 0 ${l} ${s} ${a.x} ${a.y}`},ab=({variant:r=Jx.CurrentOfMax,gaugeWidth:o,title:n,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:p,secondaryColor:u})=>{const{number:h}=rb(a),{number:m}=rb(s),{number:g,prefix:f,suffix:y}=rb(l),x=i(),b=((e,t,r)=>Math.min(Math.max(e,t),r))((g-h)/Math.max(m-h,1),0,1),v=180-180*b,$=b>0?ib(60,60,55,180,v):null,w=b<1?ib(60,60,55,v,0):null,S=nb(60,60,55,180),k=nb(60,60,55,0),C=d??(r===Jx.GoodAgainstBad?x.v2.colors.green[500]:x.v2.colors.purple[400]),E=u??(r===Jx.GoodAgainstBad?x.v2.colors.red[500]:x.v2.colors.silver[500]),[A,D]=Wt(null),T=e=>`${f}${e}${y}`,I=r===Jx.GoodAgainstBad?Math.max(m-g,0):m,N="primary"===A?c:"secondary"===A?p:"",R="primary"===A?T(g):"secondary"===A?T(I):"",O=()=>D("primary"),_=()=>D("secondary"),F=()=>D(null);return t(Yx,{children:[t(Qx,{$width:o,children:[e(np,{keepAlive:!0,fullWidth:!0,title:N,text:R,children:t(Zx,{viewBox:"0 0 120 65",role:"img","aria-label":`${n}: ${g} of ${m}`,children:[$&&e("path",{d:$,fill:"none",stroke:C,strokeWidth:ob,strokeLinecap:1===b?"round":"butt",onMouseEnter:O,onMouseLeave:F}),w&&e("path",{d:w,fill:"none",stroke:E,strokeWidth:ob,strokeLinecap:0===b?"round":"butt",onMouseEnter:_,onMouseLeave:F}),b>0&&e("circle",{cx:S.x,cy:S.y,r:5,fill:C,onMouseEnter:O,onMouseLeave:F}),b<1&&e("circle",{cx:k.x,cy:k.y,r:5,fill:E,onMouseEnter:_,onMouseLeave:F})]})}),n&&t(eb,{children:[e(un,{size:sn.XXXS,color:x.v2.colors.grey[150],align:"center",children:n}),e(un,{size:sn.L,weight:500,align:"center",children:`${f}${g}${y}`})]})]}),t(Fn,{$gap:7,children:[t(_n,{$gap:8,$alignItems:"center",children:[e(tb,{$color:C}),e(un,{size:sn.XXXS,color:x.v2.colors.grey[150],nowrap:!0,children:c})]}),t(_n,{$gap:8,$alignItems:"center",children:[e(tb,{$color:E}),e(un,{size:sn.XXXS,color:x.v2.colors.grey[150],nowrap:!0,children:p})]})]})]})},sb=o(_n)`
2149
2149
  width: calc(100% - 20px);
2150
2150
  padding: 10px;
2151
2151
  border-radius: 6px;
@@ -2154,24 +2154,24 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2154
2154
  align-items: center;
2155
2155
  justify-content: space-between;
2156
2156
  gap: 12px;
2157
- `,jy=o.div`
2157
+ `,lb=o.div`
2158
2158
  position: relative;
2159
2159
  width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
2160
2160
  display: flex;
2161
2161
  align-items: center;
2162
2162
  gap: 4px;
2163
- `,Wy=o.pre`
2163
+ `,cb=o.pre`
2164
2164
  flex: 1;
2165
2165
  margin: 0;
2166
2166
  padding: 0;
2167
2167
  font-size: 14px;
2168
2168
  color: #5ffb98; // TODO: add to theme
2169
2169
  overflow-x: auto;
2170
- `,Hy=o.span`
2170
+ `,db=o.span`
2171
2171
  flex-shrink: 0;
2172
2172
  font-size: 14px;
2173
2173
  color: #5ffb98; // TODO: add to theme
2174
- `,Xy=({value:r,hideCopy:o=!1,onDone:n})=>{const{CopyButton:i}=Wl({onDone:n}),a=Gt(null),[s,l]=Wt(!1);return Ht(()=>{const e=()=>{if(a.current){const{scrollWidth:e,clientWidth:t}=a.current;l(e>t)}};e();const t=new ResizeObserver(e);return a.current&&t.observe(a.current),()=>{t.disconnect()}},[r]),t(Uy,{children:[t(jy,{$hideCopy:o,children:[e(Wy,{ref:a,children:r}),s&&e(Hy,{children:"..."})]}),!o&&e(i,{value:r,size:Bl.XS})]})},Gy=o.div`
2174
+ `,pb=({value:r,hideCopy:o=!1,onDone:n})=>{const{CopyButton:i}=cd({onDone:n}),a=Gt(null),[s,l]=Wt(!1);return Ht(()=>{const e=()=>{if(a.current){const{scrollWidth:e,clientWidth:t}=a.current;l(e>t)}};e();const t=new ResizeObserver(e);return a.current&&t.observe(a.current),()=>{t.disconnect()}},[r]),t(sb,{children:[t(lb,{$hideCopy:o,children:[e(cb,{ref:a,children:r}),s&&e(db,{children:"..."})]}),!o&&e(i,{value:r,size:ad.XS})]})},ub=o.div`
2175
2175
  display: flex;
2176
2176
  align-items: center;
2177
2177
  gap: 8px;
@@ -2186,7 +2186,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2186
2186
  background-color: ${t};
2187
2187
  }
2188
2188
  `}
2189
- `,Vy=o.div`
2189
+ `,hb=o.div`
2190
2190
  display: flex;
2191
2191
  align-items: center;
2192
2192
  justify-content: center;
@@ -2195,44 +2195,44 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2195
2195
  height: 42px;
2196
2196
  border-radius: 11px;
2197
2197
  background-color: ${({$backgroundColor:e})=>e};
2198
- `,Ky=o(Fn)`
2198
+ `,mb=o(Fn)`
2199
2199
  flex: 1;
2200
2200
  min-width: 0;
2201
- `,qy=o.div`
2201
+ `,gb=o.div`
2202
2202
  display: flex;
2203
2203
  align-items: center;
2204
2204
  justify-content: center;
2205
2205
  flex-shrink: 0;
2206
2206
  width: 24px;
2207
2207
  height: 24px;
2208
- `,Jy=({status:r,title:o,subTitle:n,badgeLabel:a,loading:s,isExtended:l=!1,toggleExtended:c,invertColors:d=!1})=>{const p=i(),u=Vn(r,p),h=c?l?_t:Ft:void 0,m=r===qr.Unknown,g=r===qr.Disabled,f=[Gr.Error,Gr.Warning,Gr.Success].includes(r),y=on(p,r,g?d?"400":"700":m?"600":d?"300":"500"),x=g?p.v2.colors.grey[400]:d?p.v2.colors.white[500]:f?p.v2.colors.black[500]:p.v2.colors.white[500],b=d&&!m?y:x,v=d&&!m?g?p.v2.colors.grey[700]:l?p.v2.colors.silver[500]:p.v2.colors.silver[600]:"rgba(21, 22, 24, 0.1)",$=d||m?l?p.v2.colors.silver[700]:p.v2.colors.silver[800]:g?l?p.v2.colors.grey[800]:p.v2.colors.grey[900]:on(p,r,l?"400":"500"),w=d||m?l?p.v2.colors.silver[600]:p.v2.colors.silver[700]:g?l?p.v2.colors.grey[700]:p.v2.colors.grey[800]:on(p,r,l?"700":"800");return t(Gy,{$withHover:!!c,$isExtended:l,$backgroundColor:$,$hoverBackgroundColor:w,onClick:c,children:[e(Vy,{$backgroundColor:v,children:s?e(kd,{scale:1.2}):e(u,{size:32,fill:b})}),t(Ky,{$gap:4,$justifyContent:"center",children:[t(_n,{$gap:10,$alignItems:"center",children:[e(un,{size:sn.S,weight:500,color:x,children:o}),a&&e($f,{label:a,backgroundColor:p.v2.colors.silver[600],textColor:p.v2.colors.white[500],textSize:sn.XXXS})]}),n&&e(un,{size:sn.XXXS,color:x,children:n})]}),h&&e(qy,{children:e(h,{size:24,fill:x})})]})},Yy=o.div`
2208
+ `,fb=({status:r,title:o,subTitle:n,badgeLabel:a,loading:s,isExtended:l=!1,toggleExtended:c,invertColors:d=!1})=>{const p=i(),u=Vn(r,p),h=c?l?_t:Ft:void 0,m=r===qr.Unknown,g=r===qr.Disabled,f=[Gr.Error,Gr.Warning,Gr.Success].includes(r),y=on(p,r,g?d?"400":"700":m?"600":d?"300":"500"),x=g?p.v2.colors.grey[400]:d?p.v2.colors.white[500]:f?p.v2.colors.black[500]:p.v2.colors.white[500],b=d&&!m?y:x,v=d&&!m?g?p.v2.colors.grey[700]:l?p.v2.colors.silver[500]:p.v2.colors.silver[600]:"rgba(21, 22, 24, 0.1)",$=d||m?l?p.v2.colors.silver[700]:p.v2.colors.silver[800]:g?l?p.v2.colors.grey[800]:p.v2.colors.grey[900]:on(p,r,l?"400":"500"),w=d||m?l?p.v2.colors.silver[600]:p.v2.colors.silver[700]:g?l?p.v2.colors.grey[700]:p.v2.colors.grey[800]:on(p,r,l?"700":"800");return t(ub,{$withHover:!!c,$isExtended:l,$backgroundColor:$,$hoverBackgroundColor:w,onClick:c,children:[e(hb,{$backgroundColor:v,children:s?e(Hp,{scale:1.2}):e(u,{size:32,fill:b})}),t(mb,{$gap:4,$justifyContent:"center",children:[t(_n,{$gap:10,$alignItems:"center",children:[e(un,{size:sn.S,weight:500,color:x,children:o}),a&&e(Uy,{label:a,backgroundColor:p.v2.colors.silver[600],textColor:p.v2.colors.white[500],textSize:sn.XXXS})]}),n&&e(un,{size:sn.XXXS,color:x,children:n})]}),h&&e(gb,{children:e(h,{size:24,fill:x})})]})},yb=o.div`
2209
2209
  display: flex;
2210
2210
  flex-direction: column;
2211
2211
  width: 100%;
2212
2212
  border-radius: 12px;
2213
2213
  overflow: hidden;
2214
- `,Qy=o.div`
2214
+ `,xb=o.div`
2215
2215
  display: flex;
2216
2216
  flex-direction: column;
2217
2217
  gap: 8px;
2218
2218
  padding: 8px 12px 16px 12px;
2219
2219
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
2220
- `,Zy=o.div`
2220
+ `,bb=o.div`
2221
2221
  display: flex;
2222
2222
  align-items: center;
2223
2223
  gap: 8px;
2224
- `,ex=o.div`
2224
+ `,vb=o.div`
2225
2225
  display: flex;
2226
2226
  align-items: center;
2227
2227
  justify-content: center;
2228
2228
  flex-shrink: 0;
2229
2229
  width: 18px;
2230
2230
  height: 18px;
2231
- `,tx=({conditions:r,title:o,subTitle:n})=>{const a=i(),[s,l]=Wt(!1),c=Vt(()=>l(e=>!e),[]),d=Xt(()=>pi(r),[r]),{errors:p,hasErrors:u,warnings:h,hasWarnings:m,hasDisableds:g,hasLoadings:f}=Xt(()=>Fo(d),[d]);Ht(()=>{l(u||m||g)},[u,m,g]);const y=Xt(()=>(!d.length||f)&&!u&&!m&&!g,[d.length,f,u,m,g]),x=Xt(()=>u?Gr.Error:m?Gr.Warning:g?Gr.Info:Gr.Success,[u,m,g]),b=Xt(()=>o||(1===d.length?di(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:r,loading:o})=>{const n="Something isn't right";return e?"Something Failed":t||r?n:o?"Loading...":"Everything Successful"})({hasErrors:u,hasWarnings:m,hasDisableds:g,loading:y}),[o,d,u,m,g,y]),v=Xt(()=>n||1===d.length&&d[0].message||void 0,[n,d]),$=Xt(()=>`${u?p.length:m?h.length:d.length}/${d.length}`,[u,p.length,m,h.length,d.length]);return t(Yy,{children:[e(Jy,{status:x,invertColors:!0,title:b,subTitle:v,badgeLabel:$,loading:y,isExtended:s,toggleExtended:c}),s&&e(Qy,{children:d.map(({status:r,type:o,reason:n,message:i},s)=>{const l=r===Kr.Loading,c=r===Kr.Disabled?Gr.Info:r,d=l?null:Vn(c,a),p=r===Gr.Error?on(a,Gr.Error,"500"):r===Gr.Warning?on(a,Gr.Warning,"500"):a.v2.colors.white[500],u=[o,i||n].filter(Boolean).join(" - ");return t(Zy,{children:[e(ex,{children:l||!d?e(Gn,{withSpinnerOld:!0}):e(d,{size:18})}),e(un,{size:sn.XXXS,color:p,lineHeight:"16px",children:u})]},`condition-${s}`)})})]})};var rx,ox,nx;!function(e){e.Default="default",e.SuccessError="successError"}(rx||(rx={})),function(e){e.S="small",e.L="large"}(ox||(ox={})),function(e){e.Left="left",e.Right="right"}(nx||(nx={}));const ix=o.div`
2231
+ `,$b=({conditions:r,title:o,subTitle:n})=>{const a=i(),[s,l]=Wt(!1),c=Vt(()=>l(e=>!e),[]),d=Xt(()=>pi(r),[r]),{errors:p,hasErrors:u,warnings:h,hasWarnings:m,hasDisableds:g,hasLoadings:f}=Xt(()=>Fo(d),[d]);Ht(()=>{l(u||m||g)},[u,m,g]);const y=Xt(()=>(!d.length||f)&&!u&&!m&&!g,[d.length,f,u,m,g]),x=Xt(()=>u?Gr.Error:m?Gr.Warning:g?Gr.Info:Gr.Success,[u,m,g]),b=Xt(()=>o||(1===d.length?di(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:r,loading:o})=>{const n="Something isn't right";return e?"Something Failed":t||r?n:o?"Loading...":"Everything Successful"})({hasErrors:u,hasWarnings:m,hasDisableds:g,loading:y}),[o,d,u,m,g,y]),v=Xt(()=>n||1===d.length&&d[0].message||void 0,[n,d]),$=Xt(()=>`${u?p.length:m?h.length:d.length}/${d.length}`,[u,p.length,m,h.length,d.length]);return t(yb,{children:[e(fb,{status:x,invertColors:!0,title:b,subTitle:v,badgeLabel:$,loading:y,isExtended:s,toggleExtended:c}),s&&e(xb,{children:d.map(({status:r,type:o,reason:n,message:i},s)=>{const l=r===Kr.Loading,c=r===Kr.Disabled?Gr.Info:r,d=l?null:Vn(c,a),p=r===Gr.Error?on(a,Gr.Error,"500"):r===Gr.Warning?on(a,Gr.Warning,"500"):a.v2.colors.white[500],u=[o,i||n].filter(Boolean).join(" - ");return t(bb,{children:[e(vb,{children:l||!d?e(Gn,{withSpinnerOld:!0}):e(d,{size:18})}),e(un,{size:sn.XXXS,color:p,lineHeight:"16px",children:u})]},`condition-${s}`)})})]})};var wb,Sb,kb;!function(e){e.Default="default",e.SuccessError="successError"}(wb||(wb={})),function(e){e.S="small",e.L="large"}(Sb||(Sb={})),function(e){e.Left="left",e.Right="right"}(kb||(kb={}));const Cb=o.div`
2232
2232
  display: flex;
2233
2233
  align-items: center;
2234
2234
  gap: ${({$gap:e})=>e}px;
2235
- `,ax=o.div`
2235
+ `,Eb=o.div`
2236
2236
  position: relative;
2237
2237
  display: flex;
2238
2238
  align-items: center;
@@ -2242,11 +2242,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2242
2242
  height: ${({$size:e})=>e}px;
2243
2243
  padding: ${4}px;
2244
2244
  border-radius: ${({$size:e})=>2*e}px;
2245
- background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:r,$variant:o,$value:n,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&n)return t;if(r&&!n)return r;switch(o){case rx.SuccessError:return n?i.v2.colors.green[500]:i.v2.colors.red[500];case rx.Default:default:return n?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
2245
+ background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:r,$variant:o,$value:n,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&n)return t;if(r&&!n)return r;switch(o){case wb.SuccessError:return n?i.v2.colors.green[500]:i.v2.colors.red[500];case wb.Default:default:return n?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
2246
2246
 
2247
2247
  border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
2248
2248
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2249
- `,sx=o.div`
2249
+ `,Ab=o.div`
2250
2250
  position: absolute;
2251
2251
  top: 50%;
2252
2252
  left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
@@ -2256,17 +2256,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2256
2256
  border-radius: 100%;
2257
2257
  background-color: ${({$color:e})=>e};
2258
2258
  box-shadow: ${({$disabled:e})=>e?"0 0 40px 0 rgba(0, 0, 0, 0.07)":"0 0 10px 0 rgba(0, 0, 0, 0.50)"};
2259
- `,lx=({variant:o=rx.Default,size:n=ox.L,name:a,label:s,labelAlign:l=nx.Right,labelColor:c,tooltip:d,badge:p,value:u,onChange:h,disabled:m,withIcon:g,onIcon:f=ft,offIcon:y=xt,onBgColor:x,offBgColor:b,errorMessage:v,warnMessage:$,helpMessage:w})=>{const S=i(),k=m?S.v2.colors.grey[400]:S.v2.colors.white[500],C=n===ox.S?10:16,E=c||S.v2.colors.silver[200],A=n===ox.S?sn.XXXS:sn.XS,D=n===ox.S?8:12;return t(Fn,{$gap:4,children:[t(_n,{$justifyContent:"space-between",children:[t(ix,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":u?"true":"false",$gap:D,children:[s&&l===nx.Left&&e(un,{color:E,size:A,nowrap:!0,children:s}),t(ax,{$onBgColor:x,$offBgColor:b,$variant:o,$size:C,$value:u,$disabled:m,onClick:e=>{e.stopPropagation(),m||h(!u)},children:[e(sx,{$color:k,$size:C,$value:u,$disabled:m}),g&&t(r,{children:[e(f,{size:C,fill:k}),e(y,{size:C,fill:k})]})]}),s&&l===nx.Right&&e(un,{color:E,size:A,nowrap:!0,children:s})]}),e(kf,{tooltip:d,badge:p})]}),e(Cf,{errorMessage:v,warnMessage:$,helpMessage:w})]})},cx=o.div`
2259
+ `,Db=({variant:o=wb.Default,size:n=Sb.L,name:a,label:s,labelAlign:l=kb.Right,labelColor:c,tooltip:d,badge:p,value:u,onChange:h,disabled:m,withIcon:g,onIcon:f=ft,offIcon:y=xt,onBgColor:x,offBgColor:b,errorMessage:v,warnMessage:$,helpMessage:w})=>{const S=i(),k=m?S.v2.colors.grey[400]:S.v2.colors.white[500],C=n===Sb.S?10:16,E=c||S.v2.colors.silver[200],A=n===Sb.S?sn.XXXS:sn.XS,D=n===Sb.S?8:12;return t(Fn,{$gap:4,children:[t(_n,{$justifyContent:"space-between",children:[t(Cb,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":u?"true":"false",$gap:D,children:[s&&l===kb.Left&&e(un,{color:E,size:A,nowrap:!0,children:s}),t(Eb,{$onBgColor:x,$offBgColor:b,$variant:o,$size:C,$value:u,$disabled:m,onClick:e=>{e.stopPropagation(),m||h(!u)},children:[e(Ab,{$color:k,$size:C,$value:u,$disabled:m}),g&&t(r,{children:[e(f,{size:C,fill:k}),e(y,{size:C,fill:k})]})]}),s&&l===kb.Right&&e(un,{color:E,size:A,nowrap:!0,children:s})]}),e(Hy,{tooltip:d,badge:p})]}),e(Xy,{errorMessage:v,warnMessage:$,helpMessage:w})]})},Tb=o.div`
2260
2260
  display: flex;
2261
2261
  flex-direction: ${({$direction:e})=>e===Fr.Horizontal?"row":"column"};
2262
2262
  gap: ${({$direction:e})=>e===Fr.Horizontal?16:8}px;
2263
- `,dx=({direction:r=Fr.Vertical,title:o,size:n,disabled:i,options:a,values:s,setValues:l})=>{const c=n===ox.S?sn.XS:sn.S;return t(cx,{$direction:r,children:[o&&e(un,{size:c,children:o}),a.map(t=>e(lx,{...t,labelAlign:nx.Right,value:s[t.id],onChange:e=>{return r=t.id,o=e,void l(e=>{const t={...e};return r?t[r]=o:a.forEach(e=>t[e.id]=o),t});var r,o},disabled:i,size:n},`${o}-toggle-${t.id}`))]})},px=o.div`
2263
+ `,Ib=({direction:r=Fr.Vertical,title:o,size:n,disabled:i,options:a,values:s,setValues:l})=>{const c=n===Sb.S?sn.XS:sn.S;return t(Tb,{$direction:r,children:[o&&e(un,{size:c,children:o}),a.map(t=>e(Db,{...t,labelAlign:kb.Right,value:s[t.id],onChange:e=>{return r=t.id,o=e,void l(e=>{const t={...e};return r?t[r]=o:a.forEach(e=>t[e.id]=o),t});var r,o},disabled:i,size:n},`${o}-toggle-${t.id}`))]})},Nb=o.div`
2264
2264
  display: flex;
2265
2265
  align-items: center;
2266
2266
  justify-content: space-between;
2267
2267
  width: 100%;
2268
2268
  overflow: hidden;
2269
- `,ux=o.div`
2269
+ `,Rb=o.div`
2270
2270
  display: flex;
2271
2271
  align-items: center;
2272
2272
  gap: 16px;
@@ -2274,7 +2274,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2274
2274
  min-width: 0;
2275
2275
  flex: 1;
2276
2276
  overflow: hidden;
2277
- `,hx=o.div`
2277
+ `,Ob=o.div`
2278
2278
  display: flex;
2279
2279
  align-items: center;
2280
2280
  justify-content: center;
@@ -2283,15 +2283,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2283
2283
  height: 36px;
2284
2284
  border-radius: 8px;
2285
2285
  background: ${({theme:e})=>e.v2.colors.silver[800]};
2286
- `,mx=o.img`
2286
+ `,_b=o.img`
2287
2287
  width: 24px;
2288
2288
  height: 24px;
2289
- `,gx=o.div`
2289
+ `,Fb=o.div`
2290
2290
  display: flex;
2291
2291
  align-items: center;
2292
2292
  gap: 16px;
2293
2293
  flex-shrink: 0;
2294
- `,fx=({icon:r,iconSrc:o,title:n,subTitle:i,toggleProps:a,actions:s,onClose:l,onCloseDisabled:c})=>t(px,{children:[t(ux,{children:[r?e(hx,{children:e(r,{size:24})}):o?e(hx,{children:e(mx,{src:o,alt:n||"icon"})}):null,(n||i)&&t(Fn,{$gap:6,children:[n&&e(un,{size:sn.S,weight:500,children:n}),i&&e(un,{size:sn.XXS,children:i})]})]}),t(gx,{children:[a&&e(lx,{...a}),s?.length?e(ny,{iconButtonProps:{"data-id":"drawer-actions",icon:Lt},items:s,selectedIds:s?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>s?.find(t=>t?.id===e[0])?.onClick?.()}):null,l&&e(jl,{"data-id":"drawer-close",icon:xt,size:Bl.M,onClick:l,disabled:c})]})]}),yx=o.div`
2294
+ `,Pb=({icon:r,iconSrc:o,title:n,subTitle:i,toggleProps:a,actions:s,onClose:l,onCloseDisabled:c})=>t(Nb,{children:[t(Rb,{children:[r?e(Ob,{children:e(r,{size:24})}):o?e(Ob,{children:e(_b,{src:o,alt:n||"icon"})}):null,(n||i)&&t(Fn,{$gap:6,children:[n&&e(un,{size:sn.S,weight:500,children:n}),i&&e(un,{size:sn.XXS,children:i})]})]}),t(Fb,{children:[a&&e(Db,{...a}),s?.length?e(kx,{iconButtonProps:{"data-id":"drawer-actions",icon:Lt},items:s,selectedIds:s?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>s?.find(t=>t?.id===e[0])?.onClick?.()}):null,l&&e(ld,{"data-id":"drawer-close",icon:xt,size:ad.M,onClick:l,disabled:c})]})]}),Lb=o.div`
2295
2295
  display: flex;
2296
2296
  align-items: center;
2297
2297
  gap: 10px;
@@ -2301,7 +2301,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2301
2301
  padding: 4px 12px 4px 4px;
2302
2302
  border-radius: 8px;
2303
2303
  background-color: ${({theme:e,$status:t})=>on(e,t,[Gr.Info,Gr.Warning].includes(t)?"1000":"900")};
2304
- `,xx=o.div`
2304
+ `,zb=o.div`
2305
2305
  width: ${({$smallIcon:e})=>e?"24px":"32px"};
2306
2306
  height: ${({$smallIcon:e})=>e?"24px":"32px"};
2307
2307
  display: flex;
@@ -2309,23 +2309,23 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2309
2309
  justify-content: center;
2310
2310
  border-radius: 6px;
2311
2311
  background-color: ${({theme:e,$status:t})=>on(e,t,[Gr.Info].includes(t)?"900":"800")};
2312
- `,bx=o.div`
2312
+ `,Mb=o.div`
2313
2313
  margin-left: auto;
2314
2314
  margin-right: 8px;
2315
2315
  cursor: pointer;
2316
2316
  &:hover {
2317
2317
  transform: scale(1.2);
2318
2318
  }
2319
- `,vx=({status:r,message:o,action:n,fullWidth:a,smallIcon:s})=>{const l=i(),c=Vn(r,l),d=on(l,r,r===Gr.Default?"300":r===Gr.Info?"400":"500");return t(yx,{$status:r,$fullWidth:a,children:[e("div",{children:e(xx,{$status:r,$smallIcon:s,children:e(c,{size:s?18:24})})}),e(un,{color:d,size:sn.XXXS,weight:400,children:o}),n&&e(bx,{"data-id":n["data-id"],onClick:n.onClick,children:e(un,{color:d,size:sn.XXS,weight:500,underline:!0,children:n.label})})]})},$x=o.div`
2319
+ `,Bb=({status:r,message:o,action:n,fullWidth:a,smallIcon:s})=>{const l=i(),c=Vn(r,l),d=on(l,r,r===Gr.Default?"300":r===Gr.Info?"400":"500");return t(Lb,{$status:r,$fullWidth:a,children:[e("div",{children:e(zb,{$status:r,$smallIcon:s,children:e(c,{size:s?18:24})})}),e(un,{color:d,size:sn.XXXS,weight:400,children:o}),n&&e(Mb,{"data-id":n["data-id"],onClick:n.onClick,children:e(un,{color:d,size:sn.XXS,weight:500,underline:!0,children:n.label})})]})},Ub=o.div`
2320
2320
  display: flex;
2321
2321
  align-items: center;
2322
2322
  gap: 8px;
2323
2323
  padding: 4px 12px;
2324
- `,wx=o.div`
2324
+ `,jb=o.div`
2325
2325
  flex: 1;
2326
- `,Sx=o.div`
2326
+ `,Wb=o.div`
2327
2327
  width: 150px;
2328
- `,kx=({note:r,actions:o,children:n})=>n?e($x,{children:n}):t($x,{children:[r&&e(vx,{...r}),e(wx,{}),o?.map((t,r)=>e(Sx,{children:e(Wf,{fullWidth:!0,...t})},t["data-id"]||`drawer-footer-button-${r}`))]}),Cx=o.div`
2328
+ `,Hb=({note:r,actions:o,children:n})=>n?e(Ub,{children:n}):t(Ub,{children:[r&&e(Bb,{...r}),e(jb,{}),o?.map((t,r)=>e(Wb,{children:e(cx,{fullWidth:!0,...t})},t["data-id"]||`drawer-footer-button-${r}`))]}),Xb=o.div`
2329
2329
  position: fixed;
2330
2330
  top: 0;
2331
2331
  bottom: 0;
@@ -2344,16 +2344,16 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2344
2344
  overflow: hidden;
2345
2345
 
2346
2346
  ${({$disableAnimation:e,$position:t})=>!e&&n`
2347
- animation-name: ${$l.in[t]};
2347
+ animation-name: ${Uc.in[t]};
2348
2348
  `}
2349
- `,Ex=o.div`
2349
+ `,Gb=o.div`
2350
2350
  display: flex;
2351
2351
  flex-direction: column;
2352
2352
  gap: 12px;
2353
2353
 
2354
2354
  height: calc(100% - ${56}px);
2355
2355
  overflow-y: auto;
2356
- `,Ax=({isOpen:o,hideOverlay:n=!1,disableAnimation:i=!1,position:a="right",width:s="600px",header:l,footer:c,children:d})=>(Pl(o),o?pr(t(r,{children:[!n&&e(zn,{onClick:l?.onCloseDisabled?void 0:l?.onClose}),t(Cx,{"data-id":"drawer",$position:a,$width:s,$disableAnimation:i,children:[l&&e(fx,{...l}),e(Ex,{children:d}),c&&e(kx,{...c})]})]}),document.body):null),Dx=({options:t,values:r,setValues:o,withMultiSelect:n,withSearch:i,...a})=>{const s=Xt(()=>r?.length?`Selected: ${t.filter(e=>r.includes(e.id)).map(e=>e.label).join(", ")||"none"}`:"",[t,r]);return e(ny,{withMultiSelect:n,withSearch:i,alignX:Qf.Left,items:t,selectedIds:r,setSelectedIds:o,children:({ChevronIcon:t,handleClick:r})=>e(Tf,{placeholder:"Select options...",...a,rightIcon:t,value:s,onChange:()=>{},onClick:r})})},Tx=o.header`
2356
+ `,Vb=({isOpen:o,hideOverlay:n=!1,disableAnimation:i=!1,position:a="right",width:s="600px",header:l,footer:c,children:d})=>(rd(o),o?pr(t(r,{children:[!n&&e(zn,{onClick:l?.onCloseDisabled?void 0:l?.onClose}),t(Xb,{"data-id":"drawer",$position:a,$width:s,$disableAnimation:i,children:[l&&e(Pb,{...l}),e(Gb,{children:d}),c&&e(Hb,{...c})]})]}),document.body):null),Kb=({options:t,values:r,setValues:o,withMultiSelect:n,withSearch:i,...a})=>{const s=Xt(()=>r?.length?`Selected: ${t.filter(e=>r.includes(e.id)).map(e=>e.label).join(", ")||"none"}`:"",[t,r]);return e(kx,{withMultiSelect:n,withSearch:i,alignX:xx.Left,items:t,selectedIds:r,setSelectedIds:o,children:({ChevronIcon:t,handleClick:r})=>e(qy,{placeholder:"Select options...",...a,rightIcon:t,value:s,onChange:()=>{},onClick:r})})},qb=o.header`
2357
2357
  position: relative;
2358
2358
  width: calc(100% - 36px);
2359
2359
  padding: 12px 18px;
@@ -2361,12 +2361,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2361
2361
  display: flex;
2362
2362
  align-items: center;
2363
2363
  justify-content: space-between;
2364
- `,Ix=o(_n)`
2364
+ `,Jb=o(_n)`
2365
2365
  position: absolute;
2366
2366
  left: 50%;
2367
2367
  transform: translateX(-50%);
2368
2368
  gap: 16px;
2369
- `,Nx=({left:r=[],center:o=[],right:n=[]})=>t(Tx,{children:[e(_n,{$gap:16,children:r}),e(Ix,{children:o}),e(_n,{$gap:16,children:n})]}),Rx=o.div`
2369
+ `,Yb=({left:r=[],center:o=[],right:n=[]})=>t(qb,{children:[e(_n,{$gap:16,children:r}),e(Jb,{children:o}),e(_n,{$gap:16,children:n})]}),Qb=o.div`
2370
2370
  display: flex;
2371
2371
  align-items: center;
2372
2372
  gap: 2px;
@@ -2381,17 +2381,17 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2381
2381
  left: ${({$left:e})=>e||"unset"};
2382
2382
  top: 50%;
2383
2383
  transform: translateY(-50%);
2384
- `,Ox=({isOpen:t,actions:r,positionRight:o,positionLeft:n})=>t?e(Rx,{$right:o,$left:n,children:r.map(t=>{if(!t)return null;const{tooltip:r,...o}=t;return e(zc,{text:r||"",children:e(Wf,{...o,variant:Bf.Secondary,size:Uf.S})},o.id)})}):null,_x=({values:r,setValues:o,name:n,label:a,tooltip:s,badge:l,required:c,errorMessage:d,warnMessage:p,helpMessage:u,placeholder:h,disabled:m})=>{const g=i(),f=r.length<=1,y=m,x=m||f&&y,b=r.length?r:[""];return t(Fn,{"data-id":n,$gap:6,children:[e(kf,{label:a,tooltip:s,required:c,badge:l}),e(Fn,{$gap:8,children:b.map((n,i)=>{const a=i===b.length-1;return t(_n,{$gap:8,$alignItems:"center",children:[e(Tf,{width:"100%",autoFocus:oi(n)&&!f&&a,value:n,onChange:e=>((e,t)=>{const n=[...r||[]];n[t]=e,o(n)})(e.target.value,i),disabled:m,placeholder:h,hasError:!!d}),a&&e(Wf,{leftIcon:St,variant:Bf.Secondary,size:Uf.S,disabled:y,onClick:()=>(()=>{const e=[...r||[]];e.push(""),o(e)})()}),e(Wf,{leftIcon:x?It:()=>e(It,{fill:g.v2.colors.red[500]}),variant:Bf.Secondary,size:Uf.S,disabled:x,onClick:()=>(e=>{const t=[...r||[]].filter((t,r)=>r!==e);t.length||t.push(""),o(t)})(i)})]},`input-list-${i}`)})}),e(Cf,{errorMessage:d,warnMessage:p,helpMessage:u})]})},Fx=({col:t,colIdx:r,row:o,rowIdx:n,rowsLength:i,handleChange:a,errorMessage:s,disabled:l})=>{const{keyName:c,componentType:d,inputType:p,label:u,placeholder:h,options:m,renderCondition:g}=t,f=o[c];if(g&&!g(o))return null;switch(d){case Hr.Dropdown:case"multi-dropdown":{const t="multi-dropdown"===d,r=Array.isArray(f)?f:null!=f&&""!==f?[String(f)]:[],o=m?.filter(e=>r.includes(e.id)).map(e=>e.id)||[];return e(Dx,{name:c,label:h?u:void 0,placeholder:h||u,options:m||[],withMultiSelect:t,withSearch:t,values:o,setValues:e=>a(c,t?e:e[0]??"",n),disabled:l,hasError:!!s},c)}default:const t=i>1&&0===n&&0===r&&oi(f);return e(Tf,{name:c,label:h?u:void 0,placeholder:h||u,autoFocus:t,type:p,value:f,onChange:({target:{value:e}})=>a(c,e,n),disabled:l,hasError:!!s})}},Px=o.table`
2384
+ `,Zb=({isOpen:t,actions:r,positionRight:o,positionLeft:n})=>t?e(Qb,{$right:o,$left:n,children:r.map(t=>{if(!t)return null;const{tooltip:r,...o}=t;return e(np,{text:r||"",children:e(cx,{...o,variant:ax.Secondary,size:sx.S})},o.id)})}):null,ev=({values:r,setValues:o,name:n,label:a,tooltip:s,badge:l,required:c,errorMessage:d,warnMessage:p,helpMessage:u,placeholder:h,disabled:m})=>{const g=i(),f=r.length<=1,y=m,x=m||f&&y,b=r.length?r:[""];return t(Fn,{"data-id":n,$gap:6,children:[e(Hy,{label:a,tooltip:s,required:c,badge:l}),e(Fn,{$gap:8,children:b.map((n,i)=>{const a=i===b.length-1;return t(_n,{$gap:8,$alignItems:"center",children:[e(qy,{width:"100%",autoFocus:oi(n)&&!f&&a,value:n,onChange:e=>((e,t)=>{const n=[...r||[]];n[t]=e,o(n)})(e.target.value,i),disabled:m,placeholder:h,hasError:!!d}),a&&e(cx,{leftIcon:St,variant:ax.Secondary,size:sx.S,disabled:y,onClick:()=>(()=>{const e=[...r||[]];e.push(""),o(e)})()}),e(cx,{leftIcon:x?It:()=>e(It,{fill:g.v2.colors.red[500]}),variant:ax.Secondary,size:sx.S,disabled:x,onClick:()=>(e=>{const t=[...r||[]].filter((t,r)=>r!==e);t.length||t.push(""),o(t)})(i)})]},`input-list-${i}`)})}),e(Xy,{errorMessage:d,warnMessage:p,helpMessage:u})]})},tv=({col:t,colIdx:r,row:o,rowIdx:n,rowsLength:i,handleChange:a,errorMessage:s,disabled:l})=>{const{keyName:c,componentType:d,inputType:p,label:u,placeholder:h,options:m,renderCondition:g}=t,f=o[c];if(g&&!g(o))return null;switch(d){case Hr.Dropdown:case"multi-dropdown":{const t="multi-dropdown"===d,r=Array.isArray(f)?f:null!=f&&""!==f?[String(f)]:[],o=m?.filter(e=>r.includes(e.id)).map(e=>e.id)||[];return e(Kb,{name:c,label:h?u:void 0,placeholder:h||u,options:m||[],withMultiSelect:t,withSearch:t,values:o,setValues:e=>a(c,t?e:e[0]??"",n),disabled:l,hasError:!!s},c)}default:const t=i>1&&0===n&&0===r&&oi(f);return e(qy,{name:c,label:h?u:void 0,placeholder:h||u,autoFocus:t,type:p,value:f,onChange:({target:{value:e}})=>a(c,e,n),disabled:l,hasError:!!s})}},rv=o.table`
2385
2385
  width: 100%;
2386
2386
  border-collapse: separate;
2387
2387
  border-spacing: 0 8px;
2388
- `,Lx=o.td`
2388
+ `,ov=o.td`
2389
2389
  padding: 0 8px 0 0;
2390
- `,zx=o.td`
2390
+ `,nv=o.td`
2391
2391
  width: 72px;
2392
2392
  padding-bottom: 2px;
2393
2393
  vertical-align: bottom;
2394
- `,Mx=({columns:r,values:o,setValues:n,name:a,label:s,tooltip:l,badge:c,required:d,disabled:p,errorMessage:u,warnMessage:h,helpMessage:m,limitFieldsPerRow:g})=>{const f=i(),y=Xt(()=>{const e={};return r.forEach(({keyName:t})=>e[t]=""),e},[r]),x=(e,t,r)=>{const i=o.length?$r(o):[$r(y)];i[r][e]=t,n(i)},b=Xt(()=>{if(g){const e=[];for(let t=0;;t+=g){const o=r.slice(t,t+g);if(!o.length)break;e.push(o)}return e}return[r]},[g,r]),v=o.length?o:[y];return t(Fn,{"data-id":a,$gap:0,children:[e(kf,{label:s,tooltip:l,required:d,badge:c}),e(Px,{children:e("tbody",{children:v.map((r,i)=>{const a=i===v.length-1;return t(jt,{children:[g&&i>0?e("tr",{children:e(Lx,{colSpan:b.length})}):null,b.map((s,l)=>t("tr",{children:[s.map((t,o)=>t.renderCondition&&!t.renderCondition(r)?null:e(Lx,{children:e(Fx,{col:t,colIdx:o,row:r,rowIdx:i,rowsLength:v.length,handleChange:x,disabled:p,errorMessage:u})},`input-table-row-${i}-col-${l}-${o}`)),0===l&&e(zx,{children:t(_n,{$gap:8,$justifyContent:"flex-end",children:[a&&e(Wf,{leftIcon:St,variant:Bf.Secondary,size:Uf.S,disabled:p,onClick:()=>(()=>{const e=$r(o);e.push($r(y)),n(e)})()}),e(Wf,{leftIcon:p?It:()=>e(It,{fill:f.v2.colors.red[500]}),variant:Bf.Secondary,size:Uf.S,disabled:p,onClick:()=>(e=>{const t=o.filter((t,r)=>r!==e);t.length||t.push($r(y)),n(t)})(i)})]})})]},`input-table-matrix-${i}-${l}`))]},`input-table-row-${i}`)})})}),e(Cf,{errorMessage:u,warnMessage:h,helpMessage:m})]})},Bx=o.div`
2394
+ `,iv=({columns:r,values:o,setValues:n,name:a,label:s,tooltip:l,badge:c,required:d,disabled:p,errorMessage:u,warnMessage:h,helpMessage:m,limitFieldsPerRow:g})=>{const f=i(),y=Xt(()=>{const e={};return r.forEach(({keyName:t})=>e[t]=""),e},[r]),x=(e,t,r)=>{const i=o.length?$r(o):[$r(y)];i[r][e]=t,n(i)},b=Xt(()=>{if(g){const e=[];for(let t=0;;t+=g){const o=r.slice(t,t+g);if(!o.length)break;e.push(o)}return e}return[r]},[g,r]),v=o.length?o:[y];return t(Fn,{"data-id":a,$gap:0,children:[e(Hy,{label:s,tooltip:l,required:d,badge:c}),e(rv,{children:e("tbody",{children:v.map((r,i)=>{const a=i===v.length-1;return t(jt,{children:[g&&i>0?e("tr",{children:e(ov,{colSpan:b.length})}):null,b.map((s,l)=>t("tr",{children:[s.map((t,o)=>t.renderCondition&&!t.renderCondition(r)?null:e(ov,{children:e(tv,{col:t,colIdx:o,row:r,rowIdx:i,rowsLength:v.length,handleChange:x,disabled:p,errorMessage:u})},`input-table-row-${i}-col-${l}-${o}`)),0===l&&e(nv,{children:t(_n,{$gap:8,$justifyContent:"flex-end",children:[a&&e(cx,{leftIcon:St,variant:ax.Secondary,size:sx.S,disabled:p,onClick:()=>(()=>{const e=$r(o);e.push($r(y)),n(e)})()}),e(cx,{leftIcon:p?It:()=>e(It,{fill:f.v2.colors.red[500]}),variant:ax.Secondary,size:sx.S,disabled:p,onClick:()=>(e=>{const t=o.filter((t,r)=>r!==e);t.length||t.push($r(y)),n(t)})(i)})]})})]},`input-table-matrix-${i}-${l}`))]},`input-table-row-${i}`)})})}),e(Xy,{errorMessage:u,warnMessage:h,helpMessage:m})]})},av=o.div`
2395
2395
  display: flex;
2396
2396
  align-items: center;
2397
2397
  justify-content: space-between;
@@ -2399,15 +2399,15 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2399
2399
 
2400
2400
  padding: 18px 16px;
2401
2401
  border-radius: 18px;
2402
- background-color: ${({theme:e})=>e.v2.colors.black[500]+bl["095"]};
2402
+ background-color: ${({theme:e})=>e.v2.colors.black[500]+Mc["095"]};
2403
2403
  box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
2404
2404
 
2405
2405
  position: fixed;
2406
2406
  bottom: 0;
2407
2407
  left: 50%;
2408
2408
  z-index: ${({theme:e})=>e.v2.zIndex.island};
2409
- animation-name: ${$l.in.center};
2410
- `,Ux=({isOpen:r,onClose:o,richTitle:n,actions:i})=>r?t(Bx,{children:[e(gy,{...n}),e(uy,{onAnyClick:o,actions:i})]}):null,jx=o.div`
2409
+ animation-name: ${Uc.in.center};
2410
+ `,sv=({isOpen:r,onClose:o,richTitle:n,actions:i})=>r?t(av,{children:[e(Fx,{...n}),e(Rx,{onAnyClick:o,actions:i})]}):null,lv=o.div`
2411
2411
  position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
2412
2412
  top: 50%;
2413
2413
  left: 50%;
@@ -2419,19 +2419,44 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2419
2419
  box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
2420
2420
  overflow: hidden;
2421
2421
 
2422
- animation-name: ${$l.in.center};
2423
- `,Wx=o.div`
2422
+ /* Promote to its own composited layer and isolate paint/layout so descendant
2423
+ re-renders during the slide animation can't trigger reflows of the rest of
2424
+ the page. Without this, the global \`* { transition: all 300ms }\` rule plus
2425
+ a heavy modal body (forms, etc.) make the close visibly stutter. */
2426
+ will-change: transform;
2427
+ contain: layout paint;
2428
+
2429
+ animation-name: ${({$closing:e})=>e?Uc.out.center:Uc.in.center};
2430
+ /* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
2431
+ the global 300ms default which pairs with the fade-in for a soft entrance. */
2432
+ animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
2433
+ animation-timing-function: ${({$closing:e})=>e?"cubic-bezier(0.4, 0, 1, 1)":"cubic-bezier(0, 0, 0.2, 1)"};
2434
+
2435
+ /* Block hover/click work on form children mid-close so their transitions
2436
+ don't compete with the slide-out. */
2437
+ ${({$closing:e})=>e&&"pointer-events: none;"}
2438
+ `,cv=o(zn)`
2439
+ will-change: opacity;
2440
+ animation-name: ${({$closing:e})=>e?Xc.out:Xc.in};
2441
+ animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
2442
+
2443
+ /* The blurred backdrop is the most expensive thing on screen during the close
2444
+ — animating opacity on a backdrop-filtered element forces a full GPU
2445
+ recomposite per frame. Drop the blur while closing; visually identical
2446
+ because the overlay is fading to 0. */
2447
+ ${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
2448
+ `,dv=o.div`
2424
2449
  position: relative;
2425
- `,Hx=o.div`
2450
+ `,pv=o.div`
2426
2451
  position: absolute;
2427
2452
  top: 16px;
2428
2453
  left: 16px;
2429
- `,Xx=({isOpen:o,hideOverlay:n=!1,relativeToParent:i=!1,onBack:a,onClose:s,children:l})=>{if(Pl(o),!o)return null;const c=t(r,{children:[!n&&e(zn,{$relativeToParent:i,onClick:s}),e(jx,{"data-id":"modal",$relativeToParent:i,children:t(Wx,{children:[a&&e(Hx,{children:e(jl,{icon:t=>e(Pt,{rotate:-90,...t}),size:Bl.L,onClick:a})}),l]})})]});return i?c:pr(c,document.body)},Gx=o.div`
2454
+ `,uv=({isOpen:o,hideOverlay:n=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,p]=Wt(o),[u,h]=Wt(!1);if(Ht(()=>{o?(p(!0),h(!1)):d&&h(!0)},[o]),rd(d),!d)return null;const m=t(r,{children:[!n&&e(cv,{$relativeToParent:i,$closing:u,onClick:u?void 0:s}),e(lv,{"data-id":"modal",$relativeToParent:i,$closing:u,onAnimationEnd:e=>{e.target===e.currentTarget&&u&&(p(!1),h(!1),l?.())},children:t(dv,{children:[a&&e(pv,{children:e(ld,{icon:t=>e(Pt,{rotate:-90,...t}),size:ad.L,onClick:a})}),c]})})]});return i?m:pr(m,document.body)},hv=o.div`
2430
2455
  position: relative;
2431
2456
  width: ${64}px;
2432
2457
  height: ${({$height:e})=>e};
2433
2458
  flex-shrink: 0;
2434
- `,Vx=o.aside`
2459
+ `,mv=o.aside`
2435
2460
  position: absolute;
2436
2461
  top: 0;
2437
2462
  left: 0;
@@ -2449,7 +2474,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2449
2474
  transition:
2450
2475
  width 200ms ease,
2451
2476
  padding 200ms ease;
2452
- `,Kx=o.button`
2477
+ `,gv=o.button`
2453
2478
  display: flex;
2454
2479
  align-items: center;
2455
2480
  width: 100%;
@@ -2469,58 +2494,58 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2469
2494
  &:active {
2470
2495
  background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
2471
2496
  }
2472
- `,qx=o.div`
2497
+ `,fv=o.div`
2473
2498
  width: ${40}px;
2474
2499
  height: ${40}px;
2475
2500
  display: flex;
2476
2501
  align-items: center;
2477
2502
  justify-content: center;
2478
2503
  flex-shrink: 0;
2479
- `,Jx=o.div`
2504
+ `,yv=o.div`
2480
2505
  flex: 1 1 0;
2481
2506
  min-width: 0;
2482
2507
  overflow: hidden;
2483
2508
  padding-right: 12px;
2484
2509
  pointer-events: none;
2485
- `,Yx=({height:r,icons:o})=>{const n=i(),[a,s]=Wt(!1);return e(Gx,{$height:r,children:e(Vx,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:o.map(({id:r,label:o,selected:i,icon:s,onClick:l})=>t(Kx,{$selected:i,onClick:l,"aria-label":o,title:a?void 0:o,children:[e(qx,{children:e(s,{size:24,fill:n.v2.colors.white[500]})}),a&&e(Jx,{children:e(un,{size:sn.S,weight:500,color:ln.Primary,nowrap:!0,children:o})})]},r))})})};var Qx;!function(e){e.S="small",e.L="large"}(Qx||(Qx={}));const Zx=o.div`
2510
+ `,xv=({height:r,icons:o})=>{const n=i(),[a,s]=Wt(!1);return e(hv,{$height:r,children:e(mv,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:o.map(({id:r,label:o,selected:i,icon:s,onClick:l})=>t(gv,{$selected:i,onClick:l,"aria-label":o,title:a?void 0:o,children:[e(fv,{children:e(s,{size:24,fill:n.v2.colors.white[500]})}),a&&e(yv,{children:e(un,{size:sn.S,weight:500,color:ln.Primary,nowrap:!0,children:o})})]},r))})})};var bv;!function(e){e.S="small",e.L="large"}(bv||(bv={}));const vv=o.div`
2486
2511
  width: fit-content;
2487
2512
  display: flex;
2488
2513
  align-items: center;
2489
2514
  gap: 8px;
2490
2515
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2491
- `,eb=o.div`
2492
- width: ${({$size:e})=>e===Qx.S?"16px":"20px"};
2493
- height: ${({$size:e})=>e===Qx.S?"16px":"20px"};
2516
+ `,$v=o.div`
2517
+ width: ${({$size:e})=>e===bv.S?"16px":"20px"};
2518
+ height: ${({$size:e})=>e===bv.S?"16px":"20px"};
2494
2519
  display: flex;
2495
2520
  align-items: center;
2496
2521
  justify-content: center;
2497
2522
  border-radius: 100%;
2498
2523
  border: 1px solid ${({$borderColor:e})=>e};
2499
2524
  background-color: ${({$backgroundColor:e})=>e};
2500
- `,tb=({"data-id":r,label:o,value:n,onChange:a,disabled:s,size:l=Qx.L})=>{const c=i(),[d,p]=Wt(!1),u=n,h=l===Qx.S?6:8,m=s?c.v2.colors.grey[400]:c.v2.colors.white[500],g=u?"transparent":s?c.v2.colors.grey[700]:d?c.v2.colors.silver[400]:c.v2.colors.silver[600],f=s?c.v2.colors.grey[600]:u?c.v2.colors.purple[500]:c.v2.colors.silver[900];return t(Zx,{"data-id":r??"radio"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),s||a(!n)},$disabled:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:[e(eb,{$size:l,$borderColor:g,$backgroundColor:f,children:n?e(zt,{size:h,fill:m}):null}),o&&e(un,{size:l===Qx.S?sn.XXS:sn.XS,children:o})]})},rb=o.div`
2525
+ `,wv=({"data-id":r,label:o,value:n,onChange:a,disabled:s,size:l=bv.L})=>{const c=i(),[d,p]=Wt(!1),u=n,h=l===bv.S?6:8,m=s?c.v2.colors.grey[400]:c.v2.colors.white[500],g=u?"transparent":s?c.v2.colors.grey[700]:d?c.v2.colors.silver[400]:c.v2.colors.silver[600],f=s?c.v2.colors.grey[600]:u?c.v2.colors.purple[500]:c.v2.colors.silver[900];return t(vv,{"data-id":r??"radio"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),s||a(!n)},$disabled:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:[e($v,{$size:l,$borderColor:g,$backgroundColor:f,children:n?e(zt,{size:h,fill:m}):null}),o&&e(un,{size:l===bv.S?sn.XXS:sn.XS,children:o})]})},Sv=o.div`
2501
2526
  display: flex;
2502
2527
  flex-direction: ${({$flexDirection:e})=>e};
2503
2528
  gap: ${({$gap:e})=>e}px;
2504
- `,ob=({label:r,direction:o,disabled:n,size:i,options:a,values:s,setValues:l})=>t(rb,{$flexDirection:o===Fr.Horizontal?"row":"column",$gap:o===Fr.Horizontal?16:8,children:[r&&e(un,{children:r}),a.map(t=>e(tb,{...t,value:s[t.id],onChange:e=>{return r=t.id,o=e,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[r]=o,t});var r,o},disabled:n,size:i},`${r}-radio-${t.id}`))]}),nb=({currentStep:r,data:o,gap:n=12})=>e(Fn,{$gap:n,children:o.map(o=>{const n=o.step<r,i=o.step===r;return t(_n,{$gap:8,children:[n||o.forceDoneBadge?e($f,{status:Gr.Success,label:"",leftIcon:ft}):e($f,{status:Gr.Default,label:o.step.toString()}),e(un,{size:i?sn.M:sn.XS,weight:i?500:400,opacity:i?1:.7,children:o.label})]},`stepper-item-${o.step}`)})});var ib;!function(e){e.Data="data",e.Pretty="pretty"}(ib||(ib={}));const ab=o.div`
2529
+ `,kv=({label:r,direction:o,disabled:n,size:i,options:a,values:s,setValues:l})=>t(Sv,{$flexDirection:o===Fr.Horizontal?"row":"column",$gap:o===Fr.Horizontal?16:8,children:[r&&e(un,{children:r}),a.map(t=>e(wv,{...t,value:s[t.id],onChange:e=>{return r=t.id,o=e,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[r]=o,t});var r,o},disabled:n,size:i},`${r}-radio-${t.id}`))]}),Cv=({currentStep:r,data:o,gap:n=12})=>e(Fn,{$gap:n,children:o.map(o=>{const n=o.step<r,i=o.step===r;return t(_n,{$gap:8,children:[n||o.forceDoneBadge?e(Uy,{status:Gr.Success,label:"",leftIcon:ft}):e(Uy,{status:Gr.Default,label:o.step.toString()}),e(un,{size:i?sn.M:sn.XS,weight:i?500:400,opacity:i?1:.7,children:o.label})]},`stepper-item-${o.step}`)})});var Ev;!function(e){e.Data="data",e.Pretty="pretty"}(Ev||(Ev={}));const Av=o.div`
2505
2530
  height: ${({$maxHeight:e})=>e};
2506
2531
  width: 100%;
2507
2532
  display: flex;
2508
2533
  flex-direction: column;
2509
2534
  overflow: hidden;
2510
- `,sb=o.div`
2535
+ `,Dv=o.div`
2511
2536
  width: 100%;
2512
2537
  flex: 1;
2513
2538
  display: flex;
2514
2539
  flex-direction: column;
2515
- `,lb=o.div`
2540
+ `,Tv=o.div`
2516
2541
  flex-shrink: 0;
2517
2542
  position: relative;
2518
2543
  z-index: 2;
2519
- `,cb=o.div`
2544
+ `,Iv=o.div`
2520
2545
  position: relative;
2521
2546
  display: flex;
2522
2547
  width: 100%;
2523
- `,db=o.div`
2548
+ `,Nv=o.div`
2524
2549
  position: relative;
2525
2550
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2526
2551
  flex: ${({$flex:e})=>e??1};
@@ -2531,12 +2556,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2531
2556
 
2532
2557
  ${({$variant:e,$backgroundColor:t})=>{if(t)return n`
2533
2558
  background-color: ${t};
2534
- `;switch(e){case ib.Data:return n`
2559
+ `;switch(e){case Ev.Data:return n`
2535
2560
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2536
- `;case ib.Pretty:return n`
2561
+ `;case Ev.Pretty:return n`
2537
2562
  background-color: transparent;
2538
2563
  `;default:return""}}}
2539
- `,pb=o.div`
2564
+ `,Rv=o.div`
2540
2565
  position: absolute;
2541
2566
  top: 50%;
2542
2567
  right: 0;
@@ -2544,7 +2569,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2544
2569
  width: 1px;
2545
2570
  height: 18px;
2546
2571
  background: ${({theme:e})=>e.v2.colors.silver[500]};
2547
- `,ub=o.div`
2572
+ `,Ov=o.div`
2548
2573
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
2549
2574
  flex: ${({$flex:e})=>e??1};
2550
2575
  overflow: hidden;
@@ -2555,23 +2580,23 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2555
2580
  cursor: ${({$withClick:e})=>e?"pointer":"default"};
2556
2581
  box-sizing: border-box;
2557
2582
 
2558
- ${({$variant:e,$selected:t,$hovered:r,$isLastRow:o,$isFirstCell:i,$isLastCell:a})=>{switch(e){case ib.Data:return n`
2583
+ ${({$variant:e,$selected:t,$hovered:r,$isLastRow:o,$isFirstCell:i,$isLastCell:a})=>{switch(e){case Ev.Data:return n`
2559
2584
  border-bottom: ${({theme:e})=>o?"none":`1px solid ${e.v2.colors.silver[500]}`};
2560
2585
  border-radius: ${o?i?"0 0 0 4px":a?"0 0 4px 0":"0":"0"};
2561
2586
  background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:r?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
2562
- `;case ib.Pretty:return n`
2587
+ `;case Ev.Pretty:return n`
2563
2588
  border: none;
2564
2589
  border-radius: ${i?"12px 0 0 12px":a?"0 12px 12px 0":"0"};
2565
2590
  background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:r?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
2566
2591
  `;default:return""}}}
2567
- `,hb=o.div`
2592
+ `,_v=o.div`
2568
2593
  width: 100%;
2569
2594
  display: flex;
2570
2595
  align-items: center;
2571
2596
  justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
2572
2597
  gap: 4px;
2573
2598
  text-align: ${({$textAlign:e})=>e||"left"};
2574
- `,mb=({variant:r,columns:o,rows:n,getRowActions:i,rowActionsPushRightPosition:a,rowActionsPushLeftPosition:s,withCheckboxes:l})=>{const[c,d]=Wt(null),p=Xt(()=>n.map((p,u)=>{const{cells:h,onClick:m,isSelected:g=!1,onSelect:f,onDeselect:y,hideCheckbox:x}=p,b=c===u,v=i(p),$=(e,t)=>({$isLastRow:u===n.length-1,$isFirstCell:e,$isLastCell:t,$selected:g,$withClick:!!m,onClick:()=>m?.(),$hovered:!!m&&b,onMouseEnter:()=>d(u),onMouseLeave:()=>d(null)});return t(cb,{children:[l&&e(ub,{$variant:r,style:{flex:"0 0 68px"},...$(!0,!1),children:!x&&e(qf,{value:g,onChange:()=>g?y?.():f?.()})},"checkbox-column"),o.map(({key:n,withTooltip:i,textAlign:c,flex:d,minWidth:p},m)=>{const g=h.find(e=>e.key===n),f=0===m&&!l,y=m===o.length-1,x=v.length&&(a&&y||s&&f||!a&&!s&&y),w=e(_n,{$width:"100%",$justifyContent:"right"===c?"flex-end":"center"===c?"center":"flex-start",children:g?.component?e(g.component,{}):e(un,{size:sn.XS,children:g?.rawValue||"-"})});return t(ub,{$variant:r,$flex:d,$minWidth:p,...$(f,y),children:[i?e(zc,{text:g?.rawValue?.toString()||"",ellipsis:!0,children:w}):w,x?e(Ox,{isOpen:b,actions:v,positionRight:a,positionLeft:s}):null]},`row-${u}-cell-${m}`)})]},`row-${u}`)}),[n,c,i,a,s,l,o]);return e(Rg,{gap:r===ib.Pretty?8:0,elements:p})},gb=({columnKey:t,sortDirection:r,sortByKey:o,onSort:n})=>{const a=i(),s=o===t?a.v2.colors.white[500]:a.v2.colors.grey[400],l=r===Pr.Ascending?0:180;return e(jl,{icon:t=>e(Pt,{fill:s,rotate:l,...t}),onClick:()=>n(t)})},fb=({columnKey:t,filters:r,onFilter:o,rowsUnfiltered:n,filterOverride:a})=>{const s=i(),l=r[t]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=Xt(()=>{if(a)return a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0}));return Array.from(new Set(n.map(e=>e.cells.find(e=>e.key===t)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0}))},[n,t,a]);return e(ny,{items:c,withMultiSelect:!0,selectedIds:r[t]?.map(e=>e.toString())??[],setSelectedIds:e=>o(t,e),defaultOpen:!1,iconButtonProps:{icon:t=>e(Mt,{fill:l,...t})}})},yb=({variant:r,backgroundColor:o,columns:n,rowsUnfiltered:i,sortDirection:a,sortByKey:s,onSort:l,filters:c,onFilter:d,withCheckboxes:p,partiallySelected:u,allSelected:h,onSelectAll:m})=>t(cb,{children:[p&&e(db,{$variant:r,$backgroundColor:o,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:e(qf,{partiallyChecked:u&&!h,value:h||!1,onChange:m})},"checkbox-column"),n.map(({key:u,label:h,withTooltip:m,tooltip:g,noSort:f,noFilter:y,filterOverride:x,flex:b,minWidth:v,textAlign:$},w)=>{const S=0===w&&!p,k=w===n.length-1,C=e(un,{size:sn.XS,align:$,children:h});return t(db,{$variant:r,$backgroundColor:o,$flex:b,$minWidth:v,$isFirst:S,$isLast:k,children:[t(hb,{$textAlign:$,children:[g||m?e(zc,{text:g||h,children:C}):C,!f&&e(gb,{columnKey:u,sortDirection:a,sortByKey:s,onSort:l}),!y&&e(fb,{columnKey:u,filters:c,onFilter:d,rowsUnfiltered:i,filterOverride:x})]}),!k&&r===ib.Data&&e(pb,{})]},`column-${u}`)})]}),xb=({variant:r,maxHeight:o="256px",headerBackgroundColor:n,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:u,withCheckboxes:h,filters:m,onFiltersChange:g})=>{const[f,y]=Wt(Pr.Ascending),[x,b]=Wt(""),[v,$]=Wt({}),w=m??v,S=Vt(e=>{b(e),y(e=>e===Pr.Ascending?Pr.Descending:Pr.Ascending)},[]),k=Vt((e,t)=>{const r={...w,[e]:t};g&&g(r),void 0===m&&$(r)},[w,g,m]),C=Xt(()=>{const e=(e,t)=>{const r=e.cells.find(e=>e.key===t);return r&&(r.rawValue?.toString()||r.component?.({})?.props?.children?.toString())||""};return(x?[...c].sort((t,r)=>{const o=e(t,x),n=e(r,x);return(f===Pr.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,n)}):c).filter(t=>{for(const[r,o]of Object.entries(w)){if(!o.length)continue;const n=l.find(e=>e.key===r)?.filterOverride;if(n){if(!n.filterRow(t,o))return!1}else if(!o.includes(e(t,r)))return!1}return!0})},[c,x,f,w,l]),{partiallySelected:E,allSelected:A}=Xt(()=>{const e=C.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[C]);return e(ab,{$maxHeight:o,children:t(sb,{$variant:r,children:[!i&&e(lb,{children:e(yb,{variant:r,backgroundColor:n,columns:l,rowsUnfiltered:c,sortDirection:f,sortByKey:x,onSort:S,filters:w,onFilter:k,withCheckboxes:h,partiallySelected:E,allSelected:A,onSelectAll:e=>{e?C.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):C.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),C.length?e(mb,{variant:r,columns:l,rows:C,getRowActions:d||(()=>[]),rowActionsPushRightPosition:p,rowActionsPushLeftPosition:u,withCheckboxes:h}):e(Pn,{style:{height:o},children:a?e(Gn,{withSpinner:!0}):e(Xf,{...s})})]})})},bb=o.div`
2599
+ `,Fv=({variant:r,columns:o,rows:n,getRowActions:i,rowActionsPushRightPosition:a,rowActionsPushLeftPosition:s,withCheckboxes:l})=>{const[c,d]=Wt(null),p=Xt(()=>n.map((p,u)=>{const{cells:h,onClick:m,isSelected:g=!1,onSelect:f,onDeselect:y,hideCheckbox:x}=p,b=c===u,v=i(p),$=(e,t)=>({$isLastRow:u===n.length-1,$isFirstCell:e,$isLastCell:t,$selected:g,$withClick:!!m,onClick:()=>m?.(),$hovered:!!m&&b,onMouseEnter:()=>d(u),onMouseLeave:()=>d(null)});return t(Iv,{children:[l&&e(Ov,{$variant:r,style:{flex:"0 0 68px"},...$(!0,!1),children:!x&&e(gx,{value:g,onChange:()=>g?y?.():f?.()})},"checkbox-column"),o.map(({key:n,withTooltip:i,textAlign:c,flex:d,minWidth:p},m)=>{const g=h.find(e=>e.key===n),f=0===m&&!l,y=m===o.length-1,x=v.length&&(a&&y||s&&f||!a&&!s&&y),w=e(_n,{$width:"100%",$justifyContent:"right"===c?"flex-end":"center"===c?"center":"flex-start",children:g?.component?e(g.component,{}):e(un,{size:sn.XS,children:g?.rawValue||"-"})});return t(Ov,{$variant:r,$flex:d,$minWidth:p,...$(f,y),children:[i?e(np,{text:g?.rawValue?.toString()||"",ellipsis:!0,children:w}):w,x?e(Zb,{isOpen:b,actions:v,positionRight:a,positionLeft:s}):null]},`row-${u}-cell-${m}`)})]},`row-${u}`)}),[n,c,i,a,s,l,o]);return e(Zf,{gap:r===Ev.Pretty?8:0,elements:p})},Pv=({columnKey:t,sortDirection:r,sortByKey:o,onSort:n})=>{const a=i(),s=o===t?a.v2.colors.white[500]:a.v2.colors.grey[400],l=r===Pr.Ascending?0:180;return e(ld,{icon:t=>e(Pt,{fill:s,rotate:l,...t}),onClick:()=>n(t)})},Lv=({columnKey:t,filters:r,onFilter:o,rowsUnfiltered:n,filterOverride:a})=>{const s=i(),l=r[t]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=Xt(()=>{if(a)return a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0}));return Array.from(new Set(n.map(e=>e.cells.find(e=>e.key===t)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0}))},[n,t,a]);return e(kx,{items:c,withMultiSelect:!0,selectedIds:r[t]?.map(e=>e.toString())??[],setSelectedIds:e=>o(t,e),defaultOpen:!1,iconButtonProps:{icon:t=>e(Mt,{fill:l,...t})}})},zv=({variant:r,backgroundColor:o,columns:n,rowsUnfiltered:i,sortDirection:a,sortByKey:s,onSort:l,filters:c,onFilter:d,withCheckboxes:p,partiallySelected:u,allSelected:h,onSelectAll:m})=>t(Iv,{children:[p&&e(Nv,{$variant:r,$backgroundColor:o,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px"},children:e(gx,{partiallyChecked:u&&!h,value:h||!1,onChange:m})},"checkbox-column"),n.map(({key:u,label:h,withTooltip:m,tooltip:g,noSort:f,noFilter:y,filterOverride:x,flex:b,minWidth:v,textAlign:$},w)=>{const S=0===w&&!p,k=w===n.length-1,C=e(un,{size:sn.XS,align:$,children:h});return t(Nv,{$variant:r,$backgroundColor:o,$flex:b,$minWidth:v,$isFirst:S,$isLast:k,children:[t(_v,{$textAlign:$,children:[g||m?e(np,{text:g||h,children:C}):C,!f&&e(Pv,{columnKey:u,sortDirection:a,sortByKey:s,onSort:l}),!y&&e(Lv,{columnKey:u,filters:c,onFilter:d,rowsUnfiltered:i,filterOverride:x})]}),!k&&r===Ev.Data&&e(Rv,{})]},`column-${u}`)})]}),Mv=({variant:r,maxHeight:o="256px",headerBackgroundColor:n,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:p,rowActionsPushLeftPosition:u,withCheckboxes:h,filters:m,onFiltersChange:g})=>{const[f,y]=Wt(Pr.Ascending),[x,b]=Wt(""),[v,$]=Wt({}),w=m??v,S=Vt(e=>{b(e),y(e=>e===Pr.Ascending?Pr.Descending:Pr.Ascending)},[]),k=Vt((e,t)=>{const r={...w,[e]:t};g&&g(r),void 0===m&&$(r)},[w,g,m]),C=Xt(()=>{const e=(e,t)=>{const r=e.cells.find(e=>e.key===t);return r&&(r.rawValue?.toString()||r.component?.({})?.props?.children?.toString())||""};return(x?[...c].sort((t,r)=>{const o=e(t,x),n=e(r,x);return(f===Pr.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,n)}):c).filter(t=>{for(const[r,o]of Object.entries(w)){if(!o.length)continue;const n=l.find(e=>e.key===r)?.filterOverride;if(n){if(!n.filterRow(t,o))return!1}else if(!o.includes(e(t,r)))return!1}return!0})},[c,x,f,w,l]),{partiallySelected:E,allSelected:A}=Xt(()=>{const e=C.filter(e=>!e.hideCheckbox);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[C]);return e(Av,{$maxHeight:o,children:t(Dv,{$variant:r,children:[!i&&e(Tv,{children:e(zv,{variant:r,backgroundColor:n,columns:l,rowsUnfiltered:c,sortDirection:f,sortByKey:x,onSort:S,filters:w,onFilter:k,withCheckboxes:h,partiallySelected:E,allSelected:A,onSelectAll:e=>{e?C.forEach(e=>!e.hideCheckbox&&e.onSelect?.()):C.forEach(e=>!e.hideCheckbox&&e.onDeselect?.())}})}),C.length?e(Fv,{variant:r,columns:l,rows:C,getRowActions:d||(()=>[]),rowActionsPushRightPosition:p,rowActionsPushLeftPosition:u,withCheckboxes:h}):e(Pn,{style:{height:o},children:a?e(Gn,{withSpinner:!0}):e(px,{...s})})]})})},Bv=o.div`
2575
2600
  display: flex;
2576
2601
  align-items: center;
2577
2602
  justify-content: center;
@@ -2603,7 +2628,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2603
2628
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
2604
2629
  border: 1px solid transparent;
2605
2630
  `}
2606
- `,vb=({label:r,leftIcon:o,rightIcon:n,onClick:a,disabled:s,flex:l})=>{const c=i(),d=s?c.v2.colors.grey[400]:c.v2.colors.white[500];return t(bb,{$disabled:s,$withClick:!!a,onClick:()=>!s&&a?.(),$flex:l,children:[o&&e(o,{fill:d,size:16}),e(un,{color:d,size:sn.XS,nowrap:!0,children:r}),n&&e(n,{fill:d,size:16})]})},$b=o.div`
2631
+ `,Uv=({label:r,leftIcon:o,rightIcon:n,onClick:a,disabled:s,flex:l})=>{const c=i(),d=s?c.v2.colors.grey[400]:c.v2.colors.white[500];return t(Bv,{$disabled:s,$withClick:!!a,onClick:()=>!s&&a?.(),$flex:l,children:[o&&e(o,{fill:d,size:16}),e(un,{color:d,size:sn.XS,nowrap:!0,children:r}),n&&e(n,{fill:d,size:16})]})},jv=o.div`
2607
2632
  padding: 6px 12px;
2608
2633
 
2609
2634
  display: flex;
@@ -2621,7 +2646,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2621
2646
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
2622
2647
  }
2623
2648
  `}
2624
- `,wb=o.textarea`
2649
+ `,Wv=o.textarea`
2625
2650
  max-width: ${({$maxWidth:e})=>e||"unset"};
2626
2651
  min-height: ${({$minHeight:e})=>e||"50px"};
2627
2652
  flex: 1;
@@ -2646,26 +2671,26 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{css as
2646
2671
  color: ${({theme:e})=>e.v2.colors.grey[400]};
2647
2672
  }
2648
2673
  }
2649
- `,Sb=({label:r,required:o,tooltip:n,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:c,value:d,onChange:p,disabled:u,maxWidth:h,minHeight:m,...g})=>{const f=Gt(null),y=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return t(Fn,{$gap:6,children:[e(kf,{label:r,tooltip:n,required:o,badge:i}),e($b,{$disabled:u,$error:!!a,children:e(wb,{ref:f,"data-id":c,name:c,value:d,onChange:e=>{e.stopPropagation(),y(),p?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:y,onBlur:y,disabled:u,$maxWidth:h,$minHeight:m,...g})}),e(Cf,{errorMessage:a,warnMessage:s,helpMessage:l})]})},kb=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],Cb=o.div`
2674
+ `,Hv=({label:r,required:o,tooltip:n,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:c,value:d,onChange:p,disabled:u,maxWidth:h,minHeight:m,...g})=>{const f=Gt(null),y=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return t(Fn,{$gap:6,children:[e(Hy,{label:r,tooltip:n,required:o,badge:i}),e(jv,{$disabled:u,$error:!!a,children:e(Wv,{ref:f,"data-id":c,name:c,value:d,onChange:e=>{e.stopPropagation(),y(),p?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:y,onBlur:y,disabled:u,$maxWidth:h,$minHeight:m,...g})}),e(Xy,{errorMessage:a,warnMessage:s,helpMessage:l})]})},Xv=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],Gv=o.div`
2650
2675
  flex: 1;
2651
2676
  min-width: 0;
2652
- `,Eb=o.div`
2677
+ `,Vv=o.div`
2653
2678
  flex: 0 0 auto;
2654
2679
  min-width: 140px;
2655
- `,Ab=({name:r,label:o,tooltip:n,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:p=kb,defaultUnit:u,errorMessage:h,warnMessage:m,helpMessage:g,hasError:f,width:y})=>{const x=Xt(()=>u&&p.some(e=>e.id===u)?u:p[0]?.id||"s",[u,p]),{num:b,unit:v}=Xt(()=>((e,t,r)=>{if(null==e||""===e)return{num:"",unit:r};const o=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),n=new RegExp(`^\\s*(\\d+)\\s*(${o.join("|")})\\s*$`,"i"),i=String(e).match(n);if(i)return{num:i[1],unit:i[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:r}:{num:"",unit:r}})(c,p,x),[c,p,x]),$=(e,t)=>{d(""!==e?`${e}${t}`:"")};return t(Fn,{$width:y,$gap:6,children:[e(kf,{label:o,tooltip:n,required:s,badge:i}),t(_n,{$gap:8,$alignItems:"center",children:[e(Cb,{children:e(Tf,{name:r,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:b,onChange:e=>$(gi(e.target.value),v)})}),e(Eb,{children:e(Dx,{name:`${r}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:p,values:[v],setValues:e=>$(b,e[0]||v)})})]}),e(Cf,{errorMessage:h,warnMessage:m,helpMessage:g})]})},Db=o.div`
2680
+ `,Kv=({name:r,label:o,tooltip:n,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:p=Xv,defaultUnit:u,errorMessage:h,warnMessage:m,helpMessage:g,hasError:f,width:y})=>{const x=Xt(()=>u&&p.some(e=>e.id===u)?u:p[0]?.id||"s",[u,p]),{num:b,unit:v}=Xt(()=>((e,t,r)=>{if(null==e||""===e)return{num:"",unit:r};const o=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),n=new RegExp(`^\\s*(\\d+)\\s*(${o.join("|")})\\s*$`,"i"),i=String(e).match(n);if(i)return{num:i[1],unit:i[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:r}:{num:"",unit:r}})(c,p,x),[c,p,x]),$=(e,t)=>{d(""!==e?`${e}${t}`:"")};return t(Fn,{$width:y,$gap:6,children:[e(Hy,{label:o,tooltip:n,required:s,badge:i}),t(_n,{$gap:8,$alignItems:"center",children:[e(Gv,{children:e(qy,{name:r,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:b,onChange:e=>$(gi(e.target.value),v)})}),e(Vv,{children:e(Kb,{name:`${r}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:p,values:[v],setValues:e=>$(b,e[0]||v)})})]}),e(Xy,{errorMessage:h,warnMessage:m,helpMessage:g})]})},qv=o.div`
2656
2681
  min-width: 500px;
2657
- `,Tb=o.div`
2682
+ `,Jv=o.div`
2658
2683
  display: flex;
2659
2684
  flex-direction: column;
2660
2685
  align-items: center;
2661
2686
  gap: 16px;
2662
2687
  padding: 24px;
2663
2688
  width: calc(100% - 48px);
2664
- `,Ib=o.div`
2689
+ `,Yv=o.div`
2665
2690
  display: flex;
2666
2691
  justify-content: center;
2667
2692
  gap: 16px;
2668
2693
  padding: 16px 24px;
2669
2694
  width: calc(100% - 48px);
2670
2695
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
2671
- `,Nb=({visual:r,title:o,description:n,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e(Xx,{isOpen:i,onClose:a,...d,children:t(Db,{children:[t(Tb,{children:[r&&e(r,{}),e(un,{size:sn.M,weight:500,color:ln.Primary,children:o}),e(Fn,{$alignItems:"center",$gap:4,children:n.split("\n").map(t=>e(un,{size:sn.XS,weight:400,color:ln.Secondary,children:t},t))}),c]}),(s||l)&&t(Ib,{children:[s&&e(Wf,{"data-id":"deny",...s}),l&&e(Wf,{"data-id":"approve",...l})]})]})});export{$r as $,py as A,Uf as B,xd as C,vy as D,jr as E,_n as F,am as G,di as H,Ch as I,Ld as J,Kn as K,Gn as L,kd as M,Xf as N,Kr as O,Br as P,hp as Q,Gr as R,Pf as S,Di as T,ri as U,Bd as V,Ec as W,dp as X,up as Y,xm as Z,Ox as _,Bf as a,Yi as a$,Jc as a0,ai as a1,fi as a2,el as a3,ac as a4,Qs as a5,To as a6,rc as a7,Zn as a8,to as a9,io as aA,ao as aB,lo as aC,yo as aD,fo as aE,so as aF,no as aG,qp as aH,Xs as aI,Lo as aJ,Mp as aK,Nb as aL,lh as aM,Yu as aN,Ds as aO,Ba as aP,es as aQ,Ka as aR,Ts as aS,As as aT,fa as aU,ya as aV,Sy as aW,Aa as aX,bl as aY,Ki as aZ,qi as a_,Od as aa,Gh as ab,nd as ac,zo as ad,Tr as ae,kf as af,qf as ag,Cf as ah,Tf as ai,Xr as aj,oi as ak,Mx as al,Ir as am,_x as an,Hr as ao,Dr as ap,Fp as aq,$o as ar,Sb as as,vr as at,Xp as au,vx as av,mo as aw,hi as ax,mi as ay,xi as az,Pn as b,rl as b$,Dx as b0,jl as b1,Bl as b2,Qi as b3,Uo as b4,ei as b5,Zi as b6,dc as b7,sc as b8,qr as b9,sh as bA,Bs as bB,js as bC,Ua as bD,na as bE,Us as bF,Ps as bG,Fs as bH,Ms as bI,zs as bJ,Os as bK,Rs as bL,ta as bM,ws as bN,gc as bO,ii as bP,ny as bQ,Zf as bR,Qf as bS,ic as bT,Nn as bU,dh as bV,Hp as bW,_p as bX,Kp as bY,Ux as bZ,nb as b_,Lr as ba,an as bb,cc as bc,lc as bd,ll as be,ph as bf,il as bg,ko as bh,So as bi,Wo as bj,Ax as bk,On as bl,tx as bm,_o as bn,Ol as bo,ui as bp,Er as bq,ti as br,nl as bs,Eo as bt,vb as bu,Ko as bv,ea as bw,aa as bx,ra as by,ia as bz,Zs as c,ys as c$,Co as c0,Yl as c1,Hs as c2,ec as c3,Ll as c4,Go as c5,jo as c6,ol as c7,Gf as c8,cl as c9,$u as cA,Da as cB,ps as cC,ca as cD,sa as cE,la as cF,da as cG,wu as cH,Hu as cI,Gu as cJ,Vu as cK,qu as cL,Ju as cM,Lu as cN,_u as cO,cu as cP,lu as cQ,su as cR,zu as cS,Fu as cT,Eu as cU,Wu as cV,Is as cW,$s as cX,bs as cY,vs as cZ,xs as c_,hy as ca,Vn as cb,oo as cc,Xo as cd,Rg as ce,Yg as cf,Fo as cg,Ho as ch,No as ci,Bo as cj,Ml as ck,vo as cl,Cr as cm,kr as cn,ul as co,zp as cp,wo as cq,gy as cr,uy as cs,nn as ct,Xy as cu,co as cv,Ey as cw,By as cx,Ty as cy,Rn as cz,ql as d,Yr as d$,Su as d0,ku as d1,Cu as d2,Cs as d3,Es as d4,ks as d5,Ss as d6,Ql as d7,xh as d8,ld as d9,rg as dA,jn as dB,im as dC,bf as dD,Dl as dE,$i as dF,Rl as dG,np as dH,Zl as dI,Nc as dJ,Ln as dK,Xg as dL,Ih as dM,Hl as dN,Ed as dO,jd as dP,Wr as dQ,Gl as dR,yr as dS,xo as dT,af as dU,pm as dV,Yo as dW,cf as dX,Kl as dY,$l as dZ,zl as d_,Ni as da,mg as db,ff as dc,$g as dd,dg as de,Uc as df,zd as dg,jg as dh,zg as di,Em as dj,Ag as dk,hf as dl,Fl as dm,Ji as dn,Ur as dp,Si as dq,kc as dr,Mn as ds,Xi as dt,Ig as du,pi as dv,Vd as dw,Qd as dx,Bn as dy,Un as dz,Do as e,Iu as e$,Qn as e0,Vi as e1,Ep as e2,Ud as e3,ig as e4,mc as e5,Jd as e6,Po as e7,jh as e8,Js as e9,ds as eA,ms as eB,us as eC,gs as eD,fs as eE,Za as eF,$a as eG,wa as eH,Ca as eI,Ea as eJ,Ta as eK,Na as eL,Ia as eM,pa as eN,ua as eO,xa as eP,ts as eQ,rs as eR,as as eS,Ws as eT,ha as eU,gu as eV,oa as eW,Ru as eX,au as eY,Nu as eZ,iu as e_,Ro as ea,pd as eb,tn as ec,Hd as ed,Ab as ee,Ga as ef,ka as eg,Xa as eh,Sa as ei,Qa as ej,Ya as ek,La as el,Ha as em,Ja as en,is as eo,Ma as ep,tb as eq,os as er,_a as es,ba as et,Fa as eu,Oa as ev,va as ew,Pa as ex,hs as ey,Ra as ez,Vm as f,Ks as f$,nu as f0,ja as f1,za as f2,Wa as f3,ss as f4,qa as f5,ls as f6,iy as f7,ns as f8,Sn as f9,wr as fA,Mo as fB,Vo as fC,Jo as fD,Qo as fE,Zo as fF,en as fG,rn as fH,on as fI,qn as fJ,ni as fK,si as fL,ci as fM,gi as fN,yi as fO,bi as fP,vi as fQ,Sr as fR,wi as fS,cs as fT,Ls as fU,_s as fV,Ns as fW,ga as fX,ma as fY,Gs as fZ,Vs as f_,Ar as fa,Zr as fb,Or as fc,eo as fd,Qr as fe,Mr as ff,Vr as fg,_r as fh,Fr as fi,Rr as fj,ro as fk,zr as fl,ho as fm,uo as fn,po as fo,Jr as fp,bo as fq,go as fr,Pr as fs,Nr as ft,Cn as fu,kn as fv,Dn as fw,In as fx,xr as fy,Io as fz,Oo as g,Va as g0,qs as g1,xl as g2,El as g3,vl as g4,yl as g5,Jl as g6,Pl as g7,nc as g8,hh as g9,$y as gA,dx as gB,rx as gC,mh as ga,bp as gb,gp as gc,Sm as gd,Wm as ge,Lm as gf,qm as gg,eg as gh,Xd as gi,kg as gj,zn as gk,Im as gl,Ci as gm,Ei as gn,Ai as go,cy as gp,dy as gq,Yf as gr,Jy as gs,kb as gt,Iy as gu,Nx as gv,Xx as gw,Yx as gx,ob as gy,Qx as gz,km as h,id as i,lx as j,ox as k,nx as l,Wf as m,un as n,ln as o,sn as p,zc as q,Nf as r,If as s,xb as t,Wl as u,ib as v,Mf as w,$f as x,Fn as y,Ao as z};
2696
+ `,Qv=({visual:r,title:o,description:n,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e(uv,{isOpen:i,onClose:a,...d,children:t(qv,{children:[t(Jv,{children:[r&&e(r,{}),e(un,{size:sn.M,weight:500,color:ln.Primary,children:o}),e(Fn,{$alignItems:"center",$gap:4,children:n.split("\n").map(t=>e(un,{size:sn.XS,weight:400,color:ln.Secondary,children:t},t))}),c]}),(s||l)&&t(Yv,{children:[s&&e(cx,{"data-id":"deny",...s}),l&&e(cx,{"data-id":"approve",...l})]})]})});export{$r as $,Nx as A,sx as B,zp as C,Bx as D,jr as E,_n as F,Eg as G,di as H,Xm as I,ou as J,Kn as K,Gn as L,Hp as M,px as N,Kr as O,Br as P,Ou as Q,Gr as R,rx as S,Di as T,ri as U,au as V,Gd as W,Iu as X,Ru as Y,zg as Z,Zb as _,ax as a,$i as a$,fp as a0,ai as a1,fi as a2,vc as a3,Ed as a4,xc as a5,To as a6,wd as a7,Zn as a8,to as a9,Wo as aA,Ji as aB,_o as aC,Ur as aD,Sc as aE,Si as aF,Hd as aG,Mn as aH,Eo as aI,Xi as aJ,Yf as aK,Fo as aL,pi as aM,Vn as aN,wc as aO,kr as aP,hu as aQ,Go as aR,xu as aS,Bn as aT,Un as aU,Sf as aV,jo as aW,jn as aX,Cg as aY,My as aZ,Kc as a_,Zp as aa,ug as ab,kp as ac,zo as ad,Dr as ae,Ir as af,Tr as ag,zm as ah,Dp as ai,Ni as aj,Xr as ak,oi as al,Ff as am,Py as an,jf as ao,Nf as ap,sp as aq,nu as ar,Hr as as,cy as at,Mc as au,iy as av,Gg as aw,Kf as ax,Oy as ay,td as az,Pn as b,Uc as b$,Qc as b0,Tc as b1,ku as b2,oo as b3,Xo as b4,Ho as b5,Zf as b6,hi as b7,No as b8,Ko as b9,ui as bA,vr as bB,ei as bC,mo as bD,ud as bE,ti as bF,yr as bG,mi as bH,Yi as bI,Qi as bJ,xo as bK,Ey as bL,Ng as bM,Yo as bN,ao as bO,fo as bP,so as bQ,yo as bR,io as bS,lo as bT,no as bU,Ty as bV,Lo as bW,kc as bX,md as bY,Zi as bZ,Lr as b_,Uo as ba,Bo as bb,Dc as bc,Cc as bd,xy as be,id as bf,Er as bg,vo as bh,Cr as bi,od as bj,bd as bk,Yd as bl,Ln as bm,uy as bn,yd as bo,Jm as bp,pc as bq,dc as br,Co as bs,vd as bt,dd as bu,Rc as bv,wo as bw,Gp as bx,lu as by,Wr as bz,bc as c,Uv as c$,Fd as c0,nd as c1,Yr as c2,Qn as c3,Vb as c4,Vi as c5,Gu as c6,Ad as c7,su as c8,Ef as c9,Qv as cA,Dm as cB,ym as cC,Ds as cD,Ba as cE,es as cF,Ka as cG,Ts as cH,As as cI,fa as cJ,ya as cK,Wx as cL,Aa as cM,Ki as cN,qi as cO,Kb as cP,ld as cQ,Id as cR,qr as cS,an as cT,Td as cU,Dd as cV,Nm as cW,ko as cX,So as cY,On as cZ,$b as c_,_d as ca,fu as cb,Po as cc,ii as cd,Zc as ce,ad as cf,lg as cg,fc as ch,Ro as ci,Np as cj,tn as ck,du as cl,Hy as cm,gx as cn,Xy as co,qy as cp,iv as cq,ev as cr,th as cs,$o as ct,Hv as cu,ph as cv,Bb as cw,xi as cx,gh as cy,ih as cz,gd as d,yl as d$,ea as d0,aa as d1,ra as d2,ia as d3,Am as d4,ac as d5,lc as d6,Ua as d7,na as d8,sc as d9,tc as dA,rc as dB,oc as dC,nc as dD,Ws as dE,Xs as dF,Gs as dG,Vs as dH,qs as dI,Ks as dJ,Ys as dK,Js as dL,Zs as dM,Qs as dN,el as dO,Bs as dP,Us as dQ,ll as dR,cl as dS,gl as dT,hl as dU,ml as dV,pl as dW,ul as dX,dl as dY,bl as dZ,vl as d_,Ps as da,Fs as db,Ms as dc,zs as dd,Os as de,Rs as df,ta as dg,ws as dh,kx as di,bx as dj,xx as dk,ic as dl,Uh as dm,js as dn,dm as dp,tl as dq,rl as dr,ol as ds,nl as dt,al as du,il as dv,sl as dw,In as dx,Zl as dy,ec as dz,Do as e,la as e$,xl as e0,fl as e1,wl as e2,Sl as e3,$l as e4,wv as e5,bv as e6,Hs as e7,Hl as e8,Xl as e9,Ol as eA,Ll as eB,uv as eC,Cd as eD,Nn as eE,Im as eF,dh as eG,eh as eH,mh as eI,sv as eJ,Cv as eK,ux as eL,Ox as eM,nh as eN,Fx as eO,Rx as eP,nn as eQ,pb as eR,co as eS,Gx as eT,ab as eU,qx as eV,Rn as eW,Da as eX,ps as eY,ca as eZ,sa as e_,Gl as ea,Wl as eb,Kl as ec,ql as ed,Jl as ee,Yl as ef,Ql as eg,Vl as eh,Ul as ei,jl as ej,Rl as ek,hm as el,zl as em,Ml as en,Bl as eo,_l as ep,Pl as eq,Fl as er,kl as es,Cl as et,El as eu,Al as ev,Dl as ew,Tl as ex,Il as ey,Nl as ez,mf as f,ua as f$,da as f0,jh as f1,um as f2,gm as f3,fm as f4,om as f5,em as f6,Th as f7,Dh as f8,Ah as f9,Ha as fA,Ja as fB,is as fC,Ma as fD,os as fE,_a as fF,ba as fG,Fa as fH,Oa as fI,va as fJ,Pa as fK,hs as fL,Ra as fM,ds as fN,ms as fO,us as fP,gs as fQ,fs as fR,Za as fS,$a as fT,wa as fU,Ca as fV,Ea as fW,Ta as fX,Na as fY,Ia as fZ,pa as f_,nm as fa,tm as fb,Gh as fc,cm as fd,Is as fe,$s as ff,bs as fg,vs as fh,xs as fi,ys as fj,Wh as fk,Hh as fl,Xh as fm,Cs as fn,Es as fo,ks as fp,Ss as fq,xd as fr,Kv as fs,Ga as ft,ka as fu,Xa as fv,Sa as fw,Qa as fx,Ya as fy,La as fz,Oo as g,bi as g$,xa as g0,ts as g1,rs as g2,as as g3,cc as g4,ha as g5,Fh as g6,oa as g7,Qh as g8,Eh as g9,uo as gA,po as gB,Jr as gC,bo as gD,go as gE,Pr as gF,Nr as gG,Cn as gH,kn as gI,Dn as gJ,xr as gK,Io as gL,wr as gM,Mo as gN,Vo as gO,Jo as gP,Qo as gQ,Zo as gR,en as gS,rn as gT,on as gU,qn as gV,ni as gW,si as gX,ci as gY,gi as gZ,yi as g_,Yh as ga,Ch as gb,Jh as gc,kh as gd,ja as ge,za as gf,Wa as gg,ss as gh,qa as gi,ls as gj,Cx as gk,ns as gl,Sn as gm,Ar as gn,Zr as go,Or as gp,eo as gq,Qr as gr,Mr as gs,Vr as gt,_r as gu,Fr as gv,Rr as gw,ro as gx,zr as gy,ho as gz,Hg as h,vi as h0,Sr as h1,wi as h2,cs as h3,Ls as h4,_s as h5,Ns as h6,ga as h7,ma as h8,uc as h9,Ai as hA,Tx as hB,Ix as hC,yx as hD,fb as hE,Xv as hF,Jx as hG,Yb as hH,xv as hI,kv as hJ,Ux as hK,Ib as hL,wb as hM,hc as ha,mc as hb,Va as hc,gc as hd,zc as he,Gc as hf,Bc as hg,Lc as hh,fd as hi,rd as hj,kd as hk,Om as hl,_m as hm,Mu as hn,Fu as ho,Wg as hp,df as hq,of as hr,ff as hs,$f as ht,pu as hu,Xf as hv,zn as hw,Jg as hx,Ci as hy,Ei as hz,Cp as i,Db as j,Sb as k,kb as l,cx as m,un as n,ln as o,sn as p,np as q,Yy as r,Jy as s,Mv as t,cd as u,Ev as v,ix as w,Uy as x,Fn as y,Ao as z};