@odigos/ui-kit 0.0.279 → 0.0.280

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.
@@ -38,7 +38,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
38
38
  text-decoration: underline;
39
39
  }
40
40
  `}
41
- `,br=Mt(({children:n,variant:r=pr.P,color:o,size:i=hr.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},y)=>{const b="string"==typeof n?n.split("\n").map((n,r,o)=>e(Ut,{children:[n,r!==o.length-1&&t("br",{})]},`typography-${r}-${n}`)):n;return t(yr,{ref:y,as:r,$color:o,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:b})});br.displayName="Typography";const vr="https://docs.odigos.io",Er="default",Sr="this-cluster",$r="This Cluster",Cr={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},xr={REQUIRED_FIELDS:"Required fields are missing",FIELD_IS_REQUIRED:"This field is required",FORBIDDEN:"Forbidden",ENTERPRISE_ONLY:(e="This")=>`${e} is an Enterprise feature. Please upgrade your plan.`,DEFINED_FOR_ALL_STREAMS:e=>`${e} are defined for all Data Streams.`,CANNOT_EDIT_RULE:"Cannot edit a system-managed instrumentation rule",CANNOT_DELETE_RULE:"Cannot delete a system-managed instrumentation rule",LATENCY_HTTP_ROUTE:'HTTP route must start with a forward slash "/"',READONLY_WARNING:"You're not allowed to create/update/delete in readonly mode",ILLEGAL_K8S_LABEL:'Must be 63 characters or less, must consist of alphanumeric characters, "-", "_", or ".", and must start & end with an alphanumeric character (e.g., my-name, 123.abc).',INVALID_VERSION:'Invalid version format, must be in the format of "major.minor.patch" (e.g. 1.0.0)',PHP_CUSTOM_INSTRUMENTATION_RESTART:"PHP custom instrumentation is applied via environment variables. After creating or updating this rule, please rollout restart your PHP workloads for the probes to take effect."},wr={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",NO_CONNECTIONS:"No connections",CLOUD_CONNECTOR:"Cloud Connector",CREATE_CLOUD_CONNECTOR:"Create Cloud Connector",CLOUD_CONNECTOR_SELECT_PROVIDER_TITLE:"Connect a cloud or SaaS account to Odigos Central",CLOUD_CONNECTOR_SELECT_PROVIDER_SUBTITLE:"Choose a provider and decide how much access Odigos should have in your account.",CLOUD_CONNECTOR_PERMISSIONS_NOTE:"Cloud connectors require a platform account with cross-account IAM trust and scoped permissions for Odigos Central (e.g. sts:AssumeRole plus discovery/instrumentation policies). Organizations without these privileges cannot complete this workflow.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_TITLE:"Discovery only",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_DESC:"Odigos detects workloads in your account but can't change them. Pick this to evaluate before granting write access.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_TITLE:"Discovery + instrumentation",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_DESC:"Odigos detects workloads and applies instrumentation automatically — the fastest way to start collecting telemetry.",CLOUD_CONNECTOR_PERMISSION_CUSTOM_TITLE:"Custom",CLOUD_CONNECTOR_PERMISSION_CUSTOM_DESC:"Choose exactly which resource types Odigos can discover and instrument.",CLOUD_CONNECTOR_POLICY_PREVIEW:"Policy preview",CLOUD_CONNECTOR_POLICY_NOTE:"The IAM policy below grants the permissions required to discover and instrument supported workloads.",CLOUD_CONNECTOR_POLICY_NOTE_CUSTOM:"The IAM policy below is generated from the resource types you selected.",CLOUD_CONNECTOR_CUSTOM_COL_TYPE:"Type",CLOUD_CONNECTOR_CUSTOM_COL_DISCOVERY:"Discovery",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION:"Instrumentation",CLOUD_CONNECTOR_SETUP_CREDENTIALS_TITLE:"Setup credentials",CLOUD_CONNECTOR_SETUP_CREDENTIALS_SUBTITLE:"Apply the selected IAM policy in AWS account.",CLOUD_CONNECTOR_AUTH_TITLE:"Choose Authentication method",CLOUD_CONNECTOR_AUTH_SUBTITLE:"Decide how Odigos authenticates with your AWS account.",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE:"Assume Role",CLOUD_CONNECTOR_AUTH_STATIC_KEYS:"Static keys",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE_NOTE:"Odigos assumes a scoped IAM role. No long-lived secrets are stored.",CLOUD_CONNECTOR_AUTH_STATIC_KEYS_NOTE:"Odigos uses long-lived access keys you provide. Rotate them regularly to keep your account secure.",CLOUD_CONNECTOR_SETUP_METHOD_TITLE:"Choose setup method",CLOUD_CONNECTOR_SETUP_METHOD_SUBTITLE:"Use the tool that best fits your workflow. The result is the same IAM role either way.",CLOUD_CONNECTOR_SETUP_METHOD_CLOUDFORMATION:"CloudFormation",CLOUD_CONNECTOR_SETUP_METHOD_TERRAFORM:"Terraform",CLOUD_CONNECTOR_SETUP_METHOD_AWS_CLI:"AWS CLI",CLOUD_CONNECTOR_SETUP_METHOD_MANUAL:"Manual",CLOUD_CONNECTOR_CREATE_ROLE_TITLE:"Create IAM role",CLOUD_CONNECTOR_CREATE_ROLE_STEPS_HEADING:"Follow these steps to create the role:",CLOUD_CONNECTOR_ENTER_ARN_TITLE:"Enter Role ARN",CLOUD_CONNECTOR_ENTER_ARN_SUBTITLE:"Paste the generated Role ARN into Odigos.",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_LABEL:"AWS Account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_PLACEHOLDER:"Insert AWS account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_HELP:"The 12-digit account ID where the IAM role or user lives.",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_LABEL:"Access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_PLACEHOLDER:"Insert access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_FIELD_SECRET_ID_LABEL:"Secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_PLACEHOLDER:"Insert secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_VALIDATE_TITLE:"Validate connection",CLOUD_CONNECTOR_VALIDATE_SUBTITLE:"Odigos ran read-only checks against your AWS account.",CLOUD_CONNECTOR_VALIDATE_SUCCESS:"All checks passed. Your connection is ready.",CLOUD_CONNECTOR_VALIDATE_FAILURE:"Some checks failed. Review the details below and go back to fix your credentials or permissions.",CLOUD_CONNECTOR_VALIDATE_EMPTY:"No validation results yet.",CLOUD_CONNECTOR_VALIDATE_ACCOUNT:"Account",CLOUD_CONNECTOR_VALIDATE_IDENTITY:"Identity",CLOUD_CONNECTOR_TESTING_TITLE:"Verifying & creating connector...",CLOUD_CONNECTOR_CONNECTION_FAILED_TITLE:"Connection Failed",CLOUD_CONNECTOR_CONNECTION_FAILED_DEFAULT:"Odigos could not validate the connection. Review the error details below and retry.",CLOUD_CONNECTOR_CREATED_SUCCESS:"Connector created. It will appear in your connections list.",CLOUD_CONNECTOR_CREATED_MODAL_TITLE:"Connector created successfully!",CLOUD_CONNECTOR_CREATED_MODAL_DESC:"Your connector has been created and is now ready to start discovering workloads.",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",RENAME_STREAM:e=>`Rename "${e}"`,DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",INSTRUMENTATION_STATUS:"Instrumentation Status",INSTRUMENTATION:"Instrumentation",INSTRUMENTATION_DESCRIPTION:"Detected runtime and instrumentation applied to this source.",PROGRESS:"Progress",RUNTIME:"Runtime",LAST_UPDATED:"Last updated",ISSUES:"Issues",WAITING_FOR:"Waiting for",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",OVERVIEW:"Overview",LIBRARIES:"Libraries",STANDARD_LIBRARY:"Standard Library",STANDARD:"Standard",PEER_SOURCES:"Peer Sources",PROFILING:"Profiling",INBOUND:"Inbound",OUTBOUND:"Outbound",INBOUND_DESCRIPTION:e=>`Services that send requests to ${e}`,OUTBOUND_DESCRIPTION:e=>`Services that ${e} sends requests to`,NO_INBOUND_CONNECTIONS_DESCRIPTION:"No services are currently sending requests to this source.",NO_OUTBOUND_CONNECTIONS_DESCRIPTION:"This source hasn't sent requests to other services yet.",NO_INBOUND_CONNECTIONS:"No inbound connections",NO_OUTBOUND_CONNECTIONS:"No outbound connections",COULD_NOT_FETCH_PEER_SOURCES:"Could not fetch peer sources",VIRTUAL:"Virtual",VIRTUAL_TOOLTIP:"This service is not instrumented/injected with Odigos, but we can still see it in the service map because it is connected to other services.",NO_RESULTS:"No results",NO_RESULTS_FOR_FILTER:e=>`No results matched the filter '${e}'`,POD:"Pod",PODS:"Pods",PODS_HEALTHY:"Pods are healthy",PODS_NOT_HEALTHY:"Pods are not healthy",NO_RUNNING_PODS:"No running pods",NO_RUNNING_PODS_SUBTITLE:"Check if you have any running pods and try again",AGENT_INJECTED:"Agent injected",AGENT_NOT_INJECTED:"Agent not injected",KUBERNETES_HEALTHY:"Kubernetes healthy",ODIGOS_HEALTHY:"Odigos healthy",HEALTHY:"Healthy",UNHEALTHY:"Unhealthy",NOT_HEALTHY:"Not Healthy",NODE:"Node",AGE:"Age",RUNNING_TIME:"Running Time",RUNNING_TIME_TOOLTIP:"Time elapsed since the container was last started and entered the Running state",NOT_RUNNING:"Not Running",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",CRASHLOOP_BACKOFF:"Crashloop backoff",CANNOT_POOL_IMAGE:"Cannot pool image",DEVICE_NAME:"Device Name",INSTRUMENTED:"Instrumented",UNINSTRUMENTED:"Uninstrumented",INSTRUMENTED_WITH_DISTRO:e=>`Instrumented | ${e}`,DEBUG_COMMANDS:"Debug Commands",YAML:"YAML",YAML_FILES:"YAML Files",GET_POD_YAML:"Get Pod YAML",GET_POD_LOGS:"Get Pod Logs",DESCRIBE_POD:"Describe Pod",CONTAINER:"Container",CONTAINERS:"Containers",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",NO_CONTAINERS_DETECTED:"No containers detected",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",NO_PROCESSES_DETECTED:"No processes detected",CONTAINER_NAME:"Container Name",PROCESS:"Process",PROCESSES:"Processes",PROCESS_FALLBACK_NAME:"process",PROCESS_PID:"PID",EXECUTABLE:"Executable",COMMAND:"Command",OPEN_IN_POD_TAB:"Open in 'Pod' tab",OPEN_IN_SAMPLING_PAGE:"Open in 'Sampling' page",ALL_CONTAINERS_HEALTHY:e=>`All ${e} containers are healthy`,ALL_PROCESSES_HEALTHY:e=>`All ${e} processes are healthy`,PID:e=>`#${e}`,IDENTIFYING_ATTRIBUTES:"Identifying Attributes",INSTRUMENTATION_LIBRARIES:"Instrumentation Libraries",INSTRUMENTED_LIBRARIES:"Instrumented Libraries",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select all",UNSELECT_ALL:"Unselect all",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",NO_DATA_INSTRUMENTATION_RULES:"To configure how telemetry is collected",NO_DATA_SOURCES:"To start collecting telemetry from a Kubernetes workload",NO_DATA_ACTIONS:"To process telemetry before export",NO_DATA_DESTINATIONS:"To send telemetry to an observability backend",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_DETAILS_SUBTITLE:"Use when multiple languages exist in the same container or when Odigos is unable to detect the application language",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME:"Override OpenTelemetry distro name",OVERRIDE_OTEL_DISTRO_NAME_SUBTITLE:"Use to set a specific Odigos OpenTelemetry distribution",OVERRIDE_OTEL_DISTRO_NAME_WARNING:"This is an advanced configuration. If the selected OpenTelemetry distro name is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME_SAVE_TOOLTIP:"Use the provided OpenTelemetry distro name to instrument this container",OVERRIDE_OTEL_DISTRO_NAME_DELETE_TOOLTIP:"Remove manual override of OpenTelemetry distro name, and use Odigos automatic detection OpenTelemetry distro name for instrumentation",OVERRIDE_RUNTIME_DETAILS_SAVE_TOOLTIP:"Use the provided runtime details to instrument this container",OVERRIDE_RUNTIME_DETAILS_DELETE_TOOLTIP:"Remove manual override of runtime details, and use Odigos automatic detection runtime details for instrumentation",OTEL_DISTRO_NAME:"OpenTelemetry distro name",WAITING_FOR_RUNTIME_DETECTION:"Waiting for runtime detection...",DETECTING_RUNTIME_INFO:"Detecting runtime info",NO_AVAILABLE_AGENT:"No available agent",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",PHP_CUSTOM_PROBES:"PHP Custom Probes",ROLLOUT:"Rollout",ROLLOUT_RESTART:"Rollout Restart",ROLLOUT_RESTART_WORKLOADS_DESCRIPTION:"Are you sure you want to rollout restart these workloads?",ROLLOUT_NOT_REQUIRED:"Rollout Not Required",ROLLOUT_NOT_REQUIRED_MESSAGE:"This source is instrumented with eBPF and does not require a restart.",ROLLOUT_FAILED:"Rollout Failed",ROLLOUT_PREVIOUS_ONGOING:"Previous Rollout Ongoing",ROLLOUT_PREVIOUS_ONGOING_MESSAGE:"A previous rollout is ongoing. Please wait for it to finish before triggering a new one.",ROLLOUT_AUTO_DISABLED:"Auto Rollout Disabled",ROLLOUT_AUTO_DISABLED_MESSAGE:"Trigger a manual rollout to inject the agent.",ROLLOUT_FINISHED:"Rollout Finished",ROLLOUT_FINISHED_MESSAGE:"All pods have been updated and are healthy.",ROLLBACK:"Rollback",ROLLBACK_OCCURRED:"Rollback Occurred",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_SUCCESS:"Rollback Success",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos.",THROUGHPUT_LAST_10_SECONDS:"Throughput (last 10 seconds)",DELETE_POD_TO_RESTART:"Delete Pod to Restart",DEBUG:"Debug",SAMPLING:"Sampling",HEAD_SAMPLING:"Head Sampling",TAIL_SAMPLING:"Tail Sampling",NOISY_OPERATIONS:"Noisy Operations",HIGHLY_RELEVANT_OPERATIONS:"Highly Relevant Operations",COST_REDUCTION_OPERATIONS:"Cost Reduction Operations"},Tr={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",CREATE_NEW:"Create new",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",CLOSE:"Close",DONE:"Done",SAVE:"Save",BACK:"Back",CONFIRM:"Confirm",NEXT:"Next",VERIFY:"Verify",VERIFY_AND_CREATE_CONNECTOR:"Verify & Create Connector",STAY_ON_CONNECTIONS:"Stay on connections page",GO_TO_CONNECTOR_OVERVIEW:"Go to connector overview",RETRY:"Retry",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},Or=(e,t)=>e===Tn.Success?wr.HEALTHY:e===Tn.Error?wr.NOT_HEALTHY:ur(t),Nr=e=>{if(!e)return null;switch(e){case Pn.Irrelevant:return null;case Pn.Failure:case Pn.Error:return Tn.Error;case Pn.Notice:return Tn.Warning;case Pn.Pending:case Pn.Waiting:return Tn.Loading;case Pn.Unsupported:case Pn.Disabled:return Tn.Disabled;case Pn.Success:return Tn.Success;case Pn.Unknown:default:return Tn.Info}},Ar=(e,t,n="reason",r)=>{const o=Nr(e?.status);return o?{key:`desired-status-${e?.name}`,status:o,leftIcon:t||(o===Tn.Success?p:h),label:r||("reason"===n?ur(e?.reasonEnum):Or(o,e?.reasonEnum)),tooltip:e?.message,textSize:hr.XXXS,invertColors:!0,useSecondaryTone:!0}:null};var Ir;(e=>{e.SIGNALS="SIGNALS"})(Ir||(Ir={}));const _r=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[r,o,i]=e;if(r===Ir.SIGNALS)switch(o){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=n.find(e=>e.name===r||e.key===r);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(o){case"===":case"==":return s===i;case"!==":case"!=":return s!==i;case">":return Number(s)>Number(i);case"<":return Number(s)<Number(i);case">=":return Number(s)>=Number(i);case"<=":return Number(s)<=Number(i);default:return!0}};function Rr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Dr=e=>({status:e?Tn.Success:Tn.Unknown,label:e?"True":"False",invertColors:!0}),kr=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Lr=e=>null==e||""===e?"-":"boolean"==typeof e?e?"True":"False":"number"==typeof e?String(e):"string"==typeof e?e||"-":JSON.stringify(e),Pr=e=>"string"==typeof e?{id:e,label:e}:e??{},Mr=(e,t)=>e.label||e.displayName||t,Ur=(e,t,n={})=>{const r=[],o=n.signals||[],i=new Set(n.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));return t.forEach((t,n)=>{if(!t?.name||i.has(t.componentType))return;if(t.renderCondition?.length&&!_r(t.renderCondition,o,a))return;const s=t.displayName||t.name,l=`${t.name}-${n}`,c=e[t.name],d=Rr(t.componentProperties,{});switch(t.componentType){case xn.Toggle:case xn.Checkbox:return void r.push({id:l,title:s,badge:Dr(!!c)});case xn.CheckboxList:{const t=d.valueMode||"object";if("array"===t){const e=Array.isArray(c)?c.map(String):[];return void r.push({id:l,title:s,label:e.length?e.join(", "):"-"})}if("flatFields"===t)return void(Array.isArray(d.options)?d.options:[]).forEach((t,n)=>{const o=Pr(t),i=String(o.id??"");i&&r.push({id:`${l}-${n}-${i}`,title:Mr(o,i),badge:Dr(!0===e[i])})});const n=kr(c)?c:{},o=Array.isArray(d.options)?d.options:[];if(o.length){const e=o.map(e=>{const t=Pr(e),r=String(t.id??"");return r&&n[r]?Mr(t,r):null}).filter(Boolean);return void r.push({id:l,title:s,label:e.length?e.join(", "):"-"})}const i=Object.entries(n).filter(([,e])=>!!e).map(([e])=>e);return void r.push({id:l,title:s,label:i.length?i.join(", "):"-"})}case xn.MultiInput:{const e=d.wrapKey,t=d.itemWrapperKey,n=e&&kr(c)?c[e]:c;if(Array.isArray(n)&&n.length){const e=n.map(e=>t&&kr(e)?String(e[t]??""):String(e??""));return void r.push({id:l,title:s,label:e.filter(Boolean).join(", ")||"-"})}return void r.push({id:l,title:s,label:"-"})}case xn.KeyValuePair:return kr(c)&&Object.keys(c).length?void Object.entries(c).forEach(([e,t],n)=>{r.push({id:`${l}-${n}`,title:e,label:String(t??"")})}):Array.isArray(c)&&c.length?void c.forEach((e,t)=>{const n=kr(e)?e:{};r.push({id:`${l}-${t}`,title:String(n.key??""),label:String(n.value??"")})}):void r.push({id:l,title:s,label:"-"});case xn.MultiTabledInput:{const e=d.wrapKey,t=Array.isArray(e&&kr(c)?c[e]:c)?e&&kr(c)?c[e]:c:[],n=Array.isArray(d.columns)?d.columns:[],o=e=>{const t=n.find(t=>kr(t)&&t.keyName===e);return t?.label||e};return t.length?void t.forEach((e,n)=>{const i=t.length>1?`${s} #${n+1} `:`${s} `;Object.entries(e||{}).forEach(([e,t])=>{null!=t&&""!==t&&r.push({id:`${l}-${n}-${e}`,title:`${i}${o(e)}`,label:Lr(t)})})}):void r.push({id:l,title:s,label:"-"})}case xn.FieldGroup:{const e=Array.isArray(c)?c:[];return e.length?void e.forEach((t,n)=>{const o=e.length>1?`${s} #${n+1} `:`${s} `;Object.entries(t||{}).forEach(([e,t])=>{null!=t&&""!==t&&r.push({id:`${l}-${n}-${e}`,title:`${o}${e}`,label:Lr(t)})})}):void r.push({id:l,title:s,label:"-"})}default:r.push({id:l,title:s,label:Lr(c)})}}),r},Fr=e=>e.charAt(0).toUpperCase()+e.slice(1),zr=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,r])=>Array.isArray(r)?[e,t(r)]:"object"==typeof r&&null!==r?[e,n(r)]:[e,r]));return Object.entries(e).reduce((e,[r,o])=>{try{const i=JSON.parse(o);Array.isArray(i)?e[r]=JSON.stringify(t(i)):e[r]="object"==typeof i&&null!==i?JSON.stringify(n(i)):o}catch(i){"object"==typeof o&&null!==o?Array.isArray(o)?e[r]=JSON.stringify(t(o)):e[r]=JSON.stringify(n(o)):e[r]=o}return e},{})},Br=e=>JSON.parse(JSON.stringify(e)),Hr=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),jr=(e,t,n)=>{const r=t.split(".");let o=e;for(let e=0;e<r.length-1;e++)r[e]in o&&"object"==typeof o[r[e]]||(o[r[e]]={}),o=o[r[e]];o[r[r.length-1]]=n},Wr=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),n},Gr=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Xr=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Vr=(e,t)=>{let n=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));n=n.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));n=n.filter(({runtimeInfo:t,containers:n})=>t?.detectedLanguages?.some(t=>e.has(t))||n?.some(t=>{const n=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!n&&e.has(n)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));n=n.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}if(t.statuses?.length){const e=new Set(t.statuses.map(({id:e})=>e));n=n.filter(({instrumentationReport:t})=>{const n=t?.state||t?.progressStage;return!!n&&e.has(n)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));n=n.filter(t=>{const n=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(n)})}return t.onlyErrors&&(n=n.filter(e=>Nr(e.workloadOdigosHealthStatus?.status)===Tn.Error)),n},Kr=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Er&&!e.dataStreamNames?.length):[],Yr=(e,t="",n={})=>{for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],i=t?`${t}.${r}`:r;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const r=`${i}[${t}]`;null!==e&&"object"==typeof e?Yr(e,r,n):n[r]=e}):n[i]=o:Yr(o,i,n)}return n},Jr=e=>{if(!e)return"0 KB/s";const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(0===t?0:1)} ${["Bytes/s","KB/s","MB/s","GB/s","TB/s"][t]}`},qr=e=>{if(!e)return"0 ns";if(e<1e3)return`${e.toFixed(0)} ns`;if(e<1e6){const t=e/1e3;return`${t.toFixed(t<10?2:0)} μs`}if(e<1e9){const t=e/1e6;return`${t.toFixed(t<10?2:0)} ms`}if(e<6e10){const t=e/1e9;return`${t.toFixed(t<10?2:0)} s`}if(e<36e11){const t=e/6e10;return`${t.toFixed(t<10?2:0)} m`}if(e<864e11){const t=e/36e11;return`${t.toFixed(t<10?2:0)} h`}{const t=e/864e11;return`${t.toFixed(t<10?2:0)} d`}},Qr=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const r=e[t%16];return t++,("1"===n?r:"0"===n?63&r|128:15&r|64).toString(16)})},Zr=e=>e?e.reduce((e,t)=>{if(null!=t){const n=Nr(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],eo=e=>Array.isArray(e?.statuses)?Zr(e.statuses):e?.conditions??[],to=e=>e?Array.isArray(e)?no(e):no(Zr(Object.values(e))):no([]),no=e=>{const t=e?.filter(({status:e})=>e===Tn.Error),n=e?.filter(({status:e})=>e===Tn.Warning),r=e?.filter(({status:e})=>e===Tn.Disabled),o=e?.filter(({status:e})=>e===Tn.Loading),i=t.length>0,a=n.length>0,s=r.length>0;return{errors:t,hasErrors:i,warnings:n,hasWarnings:a,disableds:r,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:i?Tn.Error:a?Tn.Warning:s?Tn.Info:void 0}},ro=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},oo=e=>({[En.Java]:_,[En.Go]:I,[En.JavaScript]:A,[En.Python]:N,[En.DotNet]:O,[En.CSharp]:T,[En.CPlusPlus]:w,[En.Php]:x,[En.Ruby]:C,[En.Rust]:$,[En.Swift]:S,[En.Elixir]:E,[En.MySql]:v,[En.Nginx]:b,[En.Postgres]:y,[En.Redis]:f,[En.Kafka]:m,[En.Ignored]:g,[En.Unknown]:g,[En.Processing]:g,[En.NoContainers]:g,[En.NoRunningPods]:g}[e]||g),io=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown:En.Unknown,ao=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,so=e=>e?.map(e=>oo(io(e)))||[],lo=e=>e?.map(e=>oo(e))||[],co=e=>e.runtimeInfo?.detectedLanguages?.length?lo(e.runtimeInfo?.detectedLanguages):so(e.containers),uo=(e,t)=>{const n={[Dn.Alauda]:Pe,[Dn.AlibabaCloud]:Le,[Dn.AppDynamics]:ke,[Dn.Axiom]:De,[Dn.AzureBlob]:Re,[Dn.AzureMonitor]:_e,[Dn.BetterStack]:Ie,[Dn.Bonree]:Ae,[Dn.Causely]:Ne,[Dn.Checkly]:Oe,[Dn.Chronosphere]:Te,[Dn.ClickHouse]:we,[Dn.CloudWatch]:xe,[Dn.Coralogix]:Ce,[Dn.Dash0]:$e,[Dn.Datadog]:Se,[Dn.Dynamic]:Y,[Dn.Dynatrace]:Ee,[Dn.ElasticApm]:ve,[Dn.ElasticSearch]:be,[Dn.GoogleCloud]:ye,[Dn.GoogleCloudOTLP]:ye,[Dn.GrafanaCloudLoki]:fe,[Dn.GrafanaCloudPrometheus]:fe,[Dn.GrafanaCloudTempo]:fe,[Dn.Greptime]:me,[Dn.Groundcover]:ge,[Dn.Honeycomb]:he,[Dn.HyperDX]:pe,[Dn.Instana]:ue,[Dn.Jaeger]:de,[Dn.Kafka]:m,[Dn.Kloudmate]:ce,[Dn.Last9]:le,[Dn.Lightstep]:se,[Dn.LogzIo]:ae,[Dn.Loki]:ie,[Dn.Lumigo]:oe,[Dn.Middleware]:re,[Dn.NewRelic]:ne,[Dn.Observe]:te,[Dn.Odigos]:ee,[Dn.OneUptime]:Z,[Dn.OpenObserve]:Q,[Dn.Opsverse]:q,[Dn.Oracle]:J,[Dn.OTLP]:Y,[Dn.OTLPHttp]:Y,[Dn.Prometheus]:K,[Dn.Qryn]:V,[Dn.QrynOss]:X,[Dn.Quickwit]:G,[Dn.S3]:W,[Dn.Seq]:j,[Dn.Signalfx]:B,[Dn.Signoz]:H,[Dn.Splunk]:B,[Dn.SplunkSapm]:B,[Dn.SplunkOtlp]:B,[Dn.SumoLogic]:z,[Dn.TelemetryHub]:F,[Dn.Tempo]:U,[Dn.Tingyun]:M,[Dn.Traceloop]:P,[Dn.Uptrace]:L,[Dn.VictoriaMetrics]:k,[Dn.VictoriaMetricsCloud]:k,[Dn.XRay]:D,[Dn.Pyroscope]:R}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},po=e=>({[$n.Namespace]:Be,[$n.Source]:ze,[$n.Destination]:Fe,[$n.Action]:u,[$n.InstrumentationRule]:Ue,[$n.SamplingRule]:Me}[e]),ho=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&"string"==typeof e.id&&e.id||"id"in e&&"object"==typeof e.id&&e.id.namespace&&e.id.kind&&e.id.name?e.id:"namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name?{namespace:e.namespace,name:e.name,kind:e.kind,..."region"in e&&e.region?{region:e.region}:{}}:"name"in e&&e.name?e.name:void 0,go=e=>{if(!e)return"";if("string"==typeof e)return e;const t=`${e.namespace}/${e.kind}/${e.name}`;return e.region?`${t}/${e.region}`:t},mo=e=>go(ho(e)),fo=(e,t,n)=>{const{extended:r,prioritizeDisplayName:o}=n||{};let i="",a="";switch(t){case $n.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case $n.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case $n.Action:const r=e;i=r.type,a=r.name||"";break;case $n.Destination:const o=e;i=o.destinationType.displayName,a=o.name;break;case $n.Namespace:const s=e;i=s.name,a=s.name}return r?i+(a&&a!==i?` (${a})`:""):o&&a||i},yo=(e,t)=>{if(t===$n.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,r]=e.split("=");t[n]=r}),t}return e},bo=e=>({[Mn.CodeAttributes]:Ge,[Mn.CustomInstrumentation]:We,[Mn.HeadersCollection]:je,[Mn.PayloadCollection]:He,[Mn.UnknownType]:g}[e]||g),vo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown,Eo=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?En.Processing:En.NoRunningPods;const r=n?.filter(e=>vo(e)!==En.Ignored);if(!r.length)return En.NoContainers;const o=r.find(e=>vo(e)!==En.Unknown);return o?vo(o):En.Unknown},So=(e,t,n)=>(t===$n.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},$o=e=>({[Xn.Logs]:Ke,[Xn.Metrics]:Ve,[Xn.Traces]:Xe,[Xn.Profiles]:ee}[e]),Co=(e,t)=>Object.values(hr).reduce((n,r)=>Math.abs(t[r]-e)<Math.abs(t[n]-e)?r:n),xo=e=>e&&{[yn.K8s]:Qe,[yn.Vm]:qe,[yn.Connector]:Je,[yn.AwsEcs]:Ye}[e]||ee,wo=e=>e?{[yn.K8s]:"Kubernetes Cluster",[yn.Vm]:"Virtual Machine",[yn.Connector]:"Cloud Connector",[yn.AwsEcs]:"AWS ECS"}[e]:"Unknown",To=(e,t,n)=>{const r=e[t];return r?r.flatMap(e=>{const r=e[n],o=[];return void 0!==r&&(Array.isArray(r)?o.push(...r):o.push(r)),o.push(...To(e,t,n)),o}):[]},Oo={"aws.lambda":"AWS Lambda","aws.fargate-task":"ECS Fargate Task","aws.fargate-cluster":"ECS Fargate Cluster","aws.ecs-cluster":"ECS Cluster","aws.eks":"Amazon EKS","aws.ec2":"Amazon EC2"},No=e=>{if(!e)return"";if(Oo[e])return Oo[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},Ao=(e,t)=>{if(t===$n.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},Io=(e,t,n)=>{switch(n=n??"500",t){case Tn.Default:return e.v2.colors.purple[n];case Tn.Info:return e.v2.colors.blue[n];case Tn.Error:return e.v2.colors.red[n];case Tn.Warning:return e.v2.colors.yellow[n];case Tn.Success:return e.v2.colors.green[n];case Tn.Loading:case Tn.Disabled:case Tn.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},_o=e=>{switch(e){case Hn.Updating:case jn.Pending:case Wn.ContainerCreating:case Gn.Waiting:return Tn.Info;case Hn.Healthy:case jn.Succeeded:case jn.Running:case Wn.Running:case Gn.Running:return Tn.Success;case Hn.Degraded:return Tn.Warning;case Hn.Failed:case jn.Failed:case Wn.Error:case Wn.CrashLoopBackOff:case Wn.CreateContainerError:case Wn.CreateContainerConfigError:case Wn.ErrImagePull:case Wn.ErrImageNeverPull:case Wn.ImagePullBackOff:case Wn.InvalidImageName:case Wn.RegistryUnavailable:case Wn.NetworkNotReady:case Wn.OOMKilled:case Wn.ContainerCannotRun:case Gn.Terminated:case Wn.DeadlineExceeded:case Wn.StartError:return Tn.Error;case Hn.Down:case Wn.Completed:return Tn.Disabled;case Hn.Unknown:case jn.Unknown:default:return Tn.Unknown}},Ro=r.div`
41
+ `,br=Mt(({children:n,variant:r=pr.P,color:o,size:i=hr.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},y)=>{const b="string"==typeof n?n.split("\n").map((n,r,o)=>e(Ut,{children:[n,r!==o.length-1&&t("br",{})]},`typography-${r}-${n}`)):n;return t(yr,{ref:y,as:r,$color:o,$size:i,$weight:a,$opacity:s,$align:l,$lineHeight:c,$transform:d,$nowrap:u,$underline:p,$maxLines:m,$withClick:!!h&&!g,onClick:g?void 0:h,...f,children:b})});br.displayName="Typography";const vr="https://docs.odigos.io",Er="default",Sr="this-cluster",$r="This Cluster",Cr={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},xr={REQUIRED_FIELDS:"Required fields are missing",FIELD_IS_REQUIRED:"This field is required",FORBIDDEN:"Forbidden",ENTERPRISE_ONLY:(e="This")=>`${e} is an Enterprise feature. Please upgrade your plan.`,DEFINED_FOR_ALL_STREAMS:e=>`${e} are defined for all Data Streams.`,CANNOT_EDIT_RULE:"Cannot edit a system-managed instrumentation rule",CANNOT_DELETE_RULE:"Cannot delete a system-managed instrumentation rule",LATENCY_HTTP_ROUTE:'HTTP route must start with a forward slash "/"',READONLY_WARNING:"You're not allowed to create/update/delete in readonly mode",ILLEGAL_K8S_LABEL:'Must be 63 characters or less, must consist of alphanumeric characters, "-", "_", or ".", and must start & end with an alphanumeric character (e.g., my-name, 123.abc).',INVALID_VERSION:"Invalid version format, must start with a number and may include a build or prerelease suffix (e.g. 1.0.0, 21.0.11+10)",PHP_CUSTOM_INSTRUMENTATION_RESTART:"PHP custom instrumentation is applied via environment variables. After creating or updating this rule, please rollout restart your PHP workloads for the probes to take effect."},wr={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",REGION:"Region",SERVICE_NAME:"Service Name",CONNECTION:"Connection",CONNECTIONS:"Connections",NO_CONNECTIONS:"No connections",CLOUD_CONNECTOR:"Cloud Connector",CREATE_CLOUD_CONNECTOR:"Create Cloud Connector",CLOUD_CONNECTOR_SELECT_PROVIDER_TITLE:"Connect a cloud or SaaS account to Odigos Central",CLOUD_CONNECTOR_SELECT_PROVIDER_SUBTITLE:"Choose a provider and decide how much access Odigos should have in your account.",CLOUD_CONNECTOR_PERMISSIONS_NOTE:"Cloud connectors require a platform account with cross-account IAM trust and scoped permissions for Odigos Central (e.g. sts:AssumeRole plus discovery/instrumentation policies). Organizations without these privileges cannot complete this workflow.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_TITLE:"Discovery only",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_ONLY_DESC:"Odigos detects workloads in your account but can't change them. Pick this to evaluate before granting write access.",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_TITLE:"Discovery + instrumentation",CLOUD_CONNECTOR_PERMISSION_DISCOVERY_INSTRUMENTATION_DESC:"Odigos detects workloads and applies instrumentation automatically — the fastest way to start collecting telemetry.",CLOUD_CONNECTOR_PERMISSION_CUSTOM_TITLE:"Custom",CLOUD_CONNECTOR_PERMISSION_CUSTOM_DESC:"Choose exactly which resource types Odigos can discover and instrument.",CLOUD_CONNECTOR_POLICY_PREVIEW:"Policy preview",CLOUD_CONNECTOR_POLICY_NOTE:"The IAM policy below grants the permissions required to discover and instrument supported workloads.",CLOUD_CONNECTOR_POLICY_NOTE_CUSTOM:"The IAM policy below is generated from the resource types you selected.",CLOUD_CONNECTOR_CUSTOM_COL_TYPE:"Type",CLOUD_CONNECTOR_CUSTOM_COL_DISCOVERY:"Discovery",CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION:"Instrumentation",CLOUD_CONNECTOR_SETUP_CREDENTIALS_TITLE:"Setup credentials",CLOUD_CONNECTOR_SETUP_CREDENTIALS_SUBTITLE:"Apply the selected IAM policy in AWS account.",CLOUD_CONNECTOR_AUTH_TITLE:"Choose Authentication method",CLOUD_CONNECTOR_AUTH_SUBTITLE:"Decide how Odigos authenticates with your AWS account.",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE:"Assume Role",CLOUD_CONNECTOR_AUTH_STATIC_KEYS:"Static keys",CLOUD_CONNECTOR_AUTH_ASSUME_ROLE_NOTE:"Odigos assumes a scoped IAM role. No long-lived secrets are stored.",CLOUD_CONNECTOR_AUTH_STATIC_KEYS_NOTE:"Odigos uses long-lived access keys you provide. Rotate them regularly to keep your account secure.",CLOUD_CONNECTOR_SETUP_METHOD_TITLE:"Choose setup method",CLOUD_CONNECTOR_SETUP_METHOD_SUBTITLE:"Use the tool that best fits your workflow. The result is the same IAM role either way.",CLOUD_CONNECTOR_SETUP_METHOD_CLOUDFORMATION:"CloudFormation",CLOUD_CONNECTOR_SETUP_METHOD_TERRAFORM:"Terraform",CLOUD_CONNECTOR_SETUP_METHOD_AWS_CLI:"AWS CLI",CLOUD_CONNECTOR_SETUP_METHOD_MANUAL:"Manual",CLOUD_CONNECTOR_CREATE_ROLE_TITLE:"Create IAM role",CLOUD_CONNECTOR_CREATE_ROLE_STEPS_HEADING:"Follow these steps to create the role:",CLOUD_CONNECTOR_ENTER_ARN_TITLE:"Enter Role ARN",CLOUD_CONNECTOR_ENTER_ARN_SUBTITLE:"Paste the generated Role ARN into Odigos.",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_LABEL:"AWS Account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_PLACEHOLDER:"Insert AWS account ID",CLOUD_CONNECTOR_FIELD_ACCOUNT_ID_HELP:"The 12-digit account ID where the IAM role or user lives.",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_LABEL:"Access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_PLACEHOLDER:"Insert access token",CLOUD_CONNECTOR_FIELD_ACCESS_TOKEN_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_FIELD_SECRET_ID_LABEL:"Secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_PLACEHOLDER:"Insert secret ID",CLOUD_CONNECTOR_FIELD_SECRET_ID_HELP:"Paste the ARN of the IAM role you created.",CLOUD_CONNECTOR_VALIDATE_TITLE:"Validate connection",CLOUD_CONNECTOR_VALIDATE_SUBTITLE:"Odigos ran read-only checks against your AWS account.",CLOUD_CONNECTOR_VALIDATE_SUCCESS:"All checks passed. Your connection is ready.",CLOUD_CONNECTOR_VALIDATE_FAILURE:"Some checks failed. Review the details below and go back to fix your credentials or permissions.",CLOUD_CONNECTOR_VALIDATE_EMPTY:"No validation results yet.",CLOUD_CONNECTOR_VALIDATE_ACCOUNT:"Account",CLOUD_CONNECTOR_VALIDATE_IDENTITY:"Identity",CLOUD_CONNECTOR_TESTING_TITLE:"Verifying & creating connector...",CLOUD_CONNECTOR_CONNECTION_FAILED_TITLE:"Connection Failed",CLOUD_CONNECTOR_CONNECTION_FAILED_DEFAULT:"Odigos could not validate the connection. Review the error details below and retry.",CLOUD_CONNECTOR_CREATED_SUCCESS:"Connector created. It will appear in your connections list.",CLOUD_CONNECTOR_CREATED_MODAL_TITLE:"Connector created successfully!",CLOUD_CONNECTOR_CREATED_MODAL_DESC:"Your connector has been created and is now ready to start discovering workloads.",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",RENAME_STREAM:e=>`Rename "${e}"`,DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",INSTRUMENTATION_STATUS:"Instrumentation Status",INSTRUMENTATION:"Instrumentation",INSTRUMENTATION_DESCRIPTION:"Detected runtime and instrumentation applied to this source.",PROGRESS:"Progress",RUNTIME:"Runtime",LAST_UPDATED:"Last updated",ISSUES:"Issues",WAITING_FOR:"Waiting for",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",OVERVIEW:"Overview",LIBRARIES:"Libraries",STANDARD_LIBRARY:"Standard Library",STANDARD:"Standard",PEER_SOURCES:"Peer Sources",PROFILING:"Profiling",INBOUND:"Inbound",OUTBOUND:"Outbound",INBOUND_DESCRIPTION:e=>`Services that send requests to ${e}`,OUTBOUND_DESCRIPTION:e=>`Services that ${e} sends requests to`,NO_INBOUND_CONNECTIONS_DESCRIPTION:"No services are currently sending requests to this source.",NO_OUTBOUND_CONNECTIONS_DESCRIPTION:"This source hasn't sent requests to other services yet.",NO_INBOUND_CONNECTIONS:"No inbound connections",NO_OUTBOUND_CONNECTIONS:"No outbound connections",COULD_NOT_FETCH_PEER_SOURCES:"Could not fetch peer sources",VIRTUAL:"Virtual",VIRTUAL_TOOLTIP:"This service is not instrumented/injected with Odigos, but we can still see it in the service map because it is connected to other services.",NO_RESULTS:"No results",NO_RESULTS_FOR_FILTER:e=>`No results matched the filter '${e}'`,POD:"Pod",PODS:"Pods",PODS_HEALTHY:"Pods are healthy",PODS_NOT_HEALTHY:"Pods are not healthy",NO_RUNNING_PODS:"No running pods",NO_RUNNING_PODS_SUBTITLE:"Check if you have any running pods and try again",AGENT_INJECTED:"Agent injected",AGENT_NOT_INJECTED:"Agent not injected",KUBERNETES_HEALTHY:"Kubernetes healthy",ODIGOS_HEALTHY:"Odigos healthy",HEALTHY:"Healthy",UNHEALTHY:"Unhealthy",NOT_HEALTHY:"Not Healthy",NODE:"Node",AGE:"Age",RUNNING_TIME:"Running Time",RUNNING_TIME_TOOLTIP:"Time elapsed since the container was last started and entered the Running state",NOT_RUNNING:"Not Running",UNKNOWN_VALUE:"—",START_TIME_UNAVAILABLE:"This agent version does not report pod start times",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",CRASHLOOP_BACKOFF:"Crashloop backoff",CANNOT_POOL_IMAGE:"Cannot pool image",DEVICE_NAME:"Device Name",INSTRUMENTED:"Instrumented",UNINSTRUMENTED:"Uninstrumented",INSTRUMENTED_WITH_DISTRO:e=>`Instrumented | ${e}`,DEBUG_COMMANDS:"Debug Commands",YAML:"YAML",YAML_FILES:"YAML Files",GET_POD_YAML:"Get Pod YAML",GET_POD_LOGS:"Get Pod Logs",DESCRIBE_POD:"Describe Pod",CONTAINER:"Container",CONTAINERS:"Containers",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",NO_CONTAINERS_DETECTED:"No containers detected",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",NO_PROCESSES_DETECTED:"No processes detected",CONTAINER_NAME:"Container Name",PROCESS:"Process",PROCESSES:"Processes",PROCESS_FALLBACK_NAME:"process",PROCESS_PID:"PID",EXECUTABLE:"Executable",COMMAND:"Command",OPEN_IN_POD_TAB:"Open in 'Pod' tab",OPEN_IN_SAMPLING_PAGE:"Open in 'Sampling' page",ALL_CONTAINERS_HEALTHY:e=>`All ${e} containers are healthy`,ALL_PROCESSES_HEALTHY:e=>`All ${e} processes are healthy`,PID:e=>`#${e}`,IDENTIFYING_ATTRIBUTES:"Identifying Attributes",INSTRUMENTATION_LIBRARIES:"Instrumentation Libraries",INSTRUMENTED_LIBRARIES:"Instrumented Libraries",INSTRUMENTATION_LIFECYCLE:"Instrumentation Lifecycle",FILTERED_COUNT_TOOLTIP:"Represents filtered amount, out of total amount",SEARCH_NAMESPACES:"Search Namespaces",SEARCH_SOURCES:"Search Sources",SELECT_ALL:"Select all",UNSELECT_ALL:"Unselect all",ONLY_SELECTED:"Only selected",ONLY_RUNNING_INSTANCES:"Only running instances",TO_COLLECT_OTEL_DATA:"To collect OpenTelemetry data",TO_MONITOR_OTEL_DATA:"To monitor OpenTelemetry data",TO_MODIFY_OTEL_DATA:"To modify OpenTelemetry data",NO_DATA_INSTRUMENTATION_RULES:"To configure how telemetry is collected",NO_DATA_SOURCES:"To start collecting telemetry from a Kubernetes workload",NO_DATA_ACTIONS:"To process telemetry before export",NO_DATA_DESTINATIONS:"To send telemetry to an observability backend",QUICK_BACK_TO_SUMMARY:"When you finish editing you can quickly go back to the summary.",GO_TO_SUMMARY:"Go to summary",FUTURE_APPS_TITLE:"Instrument entire namespace",FUTURE_APPS_DESCRIPTION:"When enabled, all applications in the namespace and new applications will be instrumented automatically and included in the current data stream using a Namespace Source.",OVERIDE:"Override",OVERIDDEN:"Overridden",OVERRIDE_RUNTIME_DETAILS:"Override Runtime Details",OVERRIDE_RUNTIME_DETAILS_SUBTITLE:"Use when multiple languages exist in the same container or when Odigos is unable to detect the application language",OVERRIDE_RUNTIME_WARNING:"This is an advanced configuration. If the selected programming language is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME:"Override OpenTelemetry distro name",OVERRIDE_OTEL_DISTRO_NAME_SUBTITLE:"Use to set a specific Odigos OpenTelemetry distribution",OVERRIDE_OTEL_DISTRO_NAME_WARNING:"This is an advanced configuration. If the selected OpenTelemetry distro name is incorrect, data collection may be incomplete or may not occur at all.",OVERRIDE_OTEL_DISTRO_NAME_SAVE_TOOLTIP:"Use the provided OpenTelemetry distro name to instrument this container",OVERRIDE_OTEL_DISTRO_NAME_DELETE_TOOLTIP:"Remove manual override of OpenTelemetry distro name, and use Odigos automatic detection OpenTelemetry distro name for instrumentation",OVERRIDE_RUNTIME_DETAILS_SAVE_TOOLTIP:"Use the provided runtime details to instrument this container",OVERRIDE_RUNTIME_DETAILS_DELETE_TOOLTIP:"Remove manual override of runtime details, and use Odigos automatic detection runtime details for instrumentation",OTEL_DISTRO_NAME:"OpenTelemetry distro name",WAITING_FOR_RUNTIME_DETECTION:"Waiting for runtime detection...",DETECTING_RUNTIME_INFO:"Detecting runtime info",NO_AVAILABLE_AGENT:"No available agent",ACTIVE:"Active",INACTIVE:"Inactive",ENABLED:"Enabled",DISABLED:"Disabled",NO_TRACES_FOUND:"No traces found",ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC:"Are your services instrumented & producing traffic?",JAVA_CUSTOM_PROBES:"Java Custom Probes",GOLANG_CUSTOM_PROBES:"Golang Custom Probes",PHP_CUSTOM_PROBES:"PHP Custom Probes",ROLLOUT:"Rollout",ROLLOUT_RESTART:"Rollout Restart",ROLLOUT_RESTART_WORKLOADS_DESCRIPTION:"Are you sure you want to rollout restart these workloads?",ROLLOUT_NOT_REQUIRED:"Rollout Not Required",ROLLOUT_NOT_REQUIRED_MESSAGE:"This source is instrumented with eBPF and does not require a restart.",ROLLOUT_FAILED:"Rollout Failed",ROLLOUT_PREVIOUS_ONGOING:"Previous Rollout Ongoing",ROLLOUT_PREVIOUS_ONGOING_MESSAGE:"A previous rollout is ongoing. Please wait for it to finish before triggering a new one.",ROLLOUT_AUTO_DISABLED:"Auto Rollout Disabled",ROLLOUT_AUTO_DISABLED_MESSAGE:"Trigger a manual rollout to inject the agent.",ROLLOUT_FINISHED:"Rollout Finished",ROLLOUT_FINISHED_MESSAGE:"All pods have been updated and are healthy.",ROLLBACK:"Rollback",ROLLBACK_OCCURRED:"Rollback Occurred",ROLLBACK_OCCURRED_MESSAGE:"Odigos detected a crash and rolled back instrumentation to protect your workload.",ROLLBACK_SUCCESS:"Rollback Success",ROLLBACK_RECOVER:"Recover",FETCHING_NAMESPACES:"Fetching namespaces",FETCHING_NAMESPACES_SUBTITLE:"Please wait while we fetch the namespaces",ADD_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",CREATING_SOURCES:"Creating Sources...",CREATING_SOURCES_SUBTITLE:"This may take a few moments while sources are being created.",SELECT_NAMESPACE:"Select namespace from the list",SELECT_NAMESPACE_SUBTITLE:"Add namespace so you can select workloads from it.",CREATING_ACTION:"Creating action",CREATING_ACTION_SUBTITLE:"Please wait while we create the action",ADD_ACTION_DESCRIPTION:"Select an action to modify telemetry data before it's sent to destinations. Choose an action type and configure its details.",CREATING_INSTRUMENTATION_RULE:"Creating instrumentation rule",CREATING_INSTRUMENTATION_RULE_SUBTITLE:"Please wait while we create the instrumentation rule",ADD_INSTRUMENTATION_RULE_DESCRIPTION:"Define how telemetry is recorded from your application. Choose a rule type and configure the details.",CREATING_DESTINATION:"Creating destination",CREATING_DESTINATION_SUBTITLE:"Please wait while we create the destination",ADD_DESTINATION_DRAWER_DESCRIPTION:"Add backend destination you want to connect with Odigos.",THROUGHPUT_LAST_10_SECONDS:"Throughput (last 10 seconds)",DELETE_POD_TO_RESTART:"Delete Pod to Restart",DEBUG:"Debug",SAMPLING:"Sampling",HEAD_SAMPLING:"Head Sampling",TAIL_SAMPLING:"Tail Sampling",NOISY_OPERATIONS:"Noisy Operations",HIGHLY_RELEVANT_OPERATIONS:"Highly Relevant Operations",COST_REDUCTION_OPERATIONS:"Cost Reduction Operations"},Tr={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",CREATE_NEW:"Create new",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",CLOSE:"Close",DONE:"Done",SAVE:"Save",BACK:"Back",CONFIRM:"Confirm",NEXT:"Next",VERIFY:"Verify",VERIFY_AND_CREATE_CONNECTOR:"Verify & Create Connector",STAY_ON_CONNECTIONS:"Stay on connections page",GO_TO_CONNECTOR_OVERVIEW:"Go to connector overview",RETRY:"Retry",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},Or=(e,t)=>e===Tn.Success?wr.HEALTHY:e===Tn.Error?wr.NOT_HEALTHY:ur(t),Nr=e=>{if(!e)return null;switch(e){case Pn.Irrelevant:return null;case Pn.Failure:case Pn.Error:return Tn.Error;case Pn.Notice:return Tn.Warning;case Pn.Pending:case Pn.Waiting:return Tn.Loading;case Pn.Unsupported:case Pn.Disabled:return Tn.Disabled;case Pn.Success:return Tn.Success;case Pn.Unknown:default:return Tn.Info}},Ar=(e,t,n="reason",r)=>{const o=Nr(e?.status);return o?{key:`desired-status-${e?.name}`,status:o,leftIcon:t||(o===Tn.Success?p:h),label:r||("reason"===n?ur(e?.reasonEnum):Or(o,e?.reasonEnum)),tooltip:e?.message,textSize:hr.XXXS,invertColors:!0,useSecondaryTone:!0}:null};var Ir;(e=>{e.SIGNALS="SIGNALS"})(Ir||(Ir={}));const _r=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[r,o,i]=e;if(r===Ir.SIGNALS)switch(o){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=n.find(e=>e.name===r||e.key===r);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(o){case"===":case"==":return s===i;case"!==":case"!=":return s!==i;case">":return Number(s)>Number(i);case"<":return Number(s)<Number(i);case">=":return Number(s)>=Number(i);case"<=":return Number(s)<=Number(i);default:return!0}};function Rr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Dr=e=>({status:e?Tn.Success:Tn.Unknown,label:e?"True":"False",invertColors:!0}),kr=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Lr=e=>null==e||""===e?"-":"boolean"==typeof e?e?"True":"False":"number"==typeof e?String(e):"string"==typeof e?e||"-":JSON.stringify(e),Pr=e=>"string"==typeof e?{id:e,label:e}:e??{},Mr=(e,t)=>e.label||e.displayName||t,Ur=(e,t,n={})=>{const r=[],o=n.signals||[],i=new Set(n.skipComponentTypes||[]),a=Object.entries(e).map(([e,t])=>({name:e,key:e,value:t}));return t.forEach((t,n)=>{if(!t?.name||i.has(t.componentType))return;if(t.renderCondition?.length&&!_r(t.renderCondition,o,a))return;const s=t.displayName||t.name,l=`${t.name}-${n}`,c=e[t.name],d=Rr(t.componentProperties,{});switch(t.componentType){case xn.Toggle:case xn.Checkbox:return void r.push({id:l,title:s,badge:Dr(!!c)});case xn.CheckboxList:{const t=d.valueMode||"object";if("array"===t){const e=Array.isArray(c)?c.map(String):[];return void r.push({id:l,title:s,label:e.length?e.join(", "):"-"})}if("flatFields"===t)return void(Array.isArray(d.options)?d.options:[]).forEach((t,n)=>{const o=Pr(t),i=String(o.id??"");i&&r.push({id:`${l}-${n}-${i}`,title:Mr(o,i),badge:Dr(!0===e[i])})});const n=kr(c)?c:{},o=Array.isArray(d.options)?d.options:[];if(o.length){const e=o.map(e=>{const t=Pr(e),r=String(t.id??"");return r&&n[r]?Mr(t,r):null}).filter(Boolean);return void r.push({id:l,title:s,label:e.length?e.join(", "):"-"})}const i=Object.entries(n).filter(([,e])=>!!e).map(([e])=>e);return void r.push({id:l,title:s,label:i.length?i.join(", "):"-"})}case xn.MultiInput:{const e=d.wrapKey,t=d.itemWrapperKey,n=e&&kr(c)?c[e]:c;if(Array.isArray(n)&&n.length){const e=n.map(e=>t&&kr(e)?String(e[t]??""):String(e??""));return void r.push({id:l,title:s,label:e.filter(Boolean).join(", ")||"-"})}return void r.push({id:l,title:s,label:"-"})}case xn.KeyValuePair:return kr(c)&&Object.keys(c).length?void Object.entries(c).forEach(([e,t],n)=>{r.push({id:`${l}-${n}`,title:e,label:String(t??"")})}):Array.isArray(c)&&c.length?void c.forEach((e,t)=>{const n=kr(e)?e:{};r.push({id:`${l}-${t}`,title:String(n.key??""),label:String(n.value??"")})}):void r.push({id:l,title:s,label:"-"});case xn.MultiTabledInput:{const e=d.wrapKey,t=Array.isArray(e&&kr(c)?c[e]:c)?e&&kr(c)?c[e]:c:[],n=Array.isArray(d.columns)?d.columns:[],o=e=>{const t=n.find(t=>kr(t)&&t.keyName===e);return t?.label||e};return t.length?void t.forEach((e,n)=>{const i=t.length>1?`${s} #${n+1} `:`${s} `;Object.entries(e||{}).forEach(([e,t])=>{null!=t&&""!==t&&r.push({id:`${l}-${n}-${e}`,title:`${i}${o(e)}`,label:Lr(t)})})}):void r.push({id:l,title:s,label:"-"})}case xn.FieldGroup:{const e=Array.isArray(c)?c:[];return e.length?void e.forEach((t,n)=>{const o=e.length>1?`${s} #${n+1} `:`${s} `;Object.entries(t||{}).forEach(([e,t])=>{null!=t&&""!==t&&r.push({id:`${l}-${n}-${e}`,title:`${o}${e}`,label:Lr(t)})})}):void r.push({id:l,title:s,label:"-"})}default:r.push({id:l,title:s,label:Lr(c)})}}),r},Fr=e=>e.charAt(0).toUpperCase()+e.slice(1),zr=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,r])=>Array.isArray(r)?[e,t(r)]:"object"==typeof r&&null!==r?[e,n(r)]:[e,r]));return Object.entries(e).reduce((e,[r,o])=>{try{const i=JSON.parse(o);Array.isArray(i)?e[r]=JSON.stringify(t(i)):e[r]="object"==typeof i&&null!==i?JSON.stringify(n(i)):o}catch(i){"object"==typeof o&&null!==o?Array.isArray(o)?e[r]=JSON.stringify(t(o)):e[r]=JSON.stringify(n(o)):e[r]=o}return e},{})},Br=e=>JSON.parse(JSON.stringify(e)),Hr=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),jr=(e,t,n)=>{const r=t.split(".");let o=e;for(let e=0;e<r.length-1;e++)r[e]in o&&"object"==typeof o[r[e]]||(o[r[e]]={}),o=o[r[e]];o[r[r.length-1]]=n},Wr=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.signals?.find(e=>e.toLowerCase()===t.id)))),n},Gr=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Xr=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Vr=(e,t)=>{let n=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.namespace))}if(t.regions?.length){const e=new Set(t.regions.map(({id:e})=>e));n=n.filter(({id:t})=>!!t.region&&e.has(t.region))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));n=n.filter(({runtimeInfo:t,containers:n})=>t?.detectedLanguages?.some(t=>e.has(t))||n?.some(t=>{const n=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!n&&e.has(n)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));n=n.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}if(t.statuses?.length){const e=new Set(t.statuses.map(({id:e})=>e));n=n.filter(({instrumentationReport:t})=>{const n=t?.state||t?.progressStage;return!!n&&e.has(n)})}if(t.enabledStatuses?.length){const e=new Set(t.enabledStatuses.map(({id:e})=>e));n=n.filter(t=>{const n=!1===t.markedForInstrumentation?.markedForInstrumentation?"disabled":"enabled";return e.has(n)})}return t.onlyErrors&&(n=n.filter(e=>Nr(e.workloadOdigosHealthStatus?.status)===Tn.Error)),n},Kr=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Er&&!e.dataStreamNames?.length):[],Yr=(e,t="",n={})=>{for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],i=t?`${t}.${r}`:r;null===o||"object"!=typeof o||Array.isArray(o)?Array.isArray(o)?o.forEach((e,t)=>{const r=`${i}[${t}]`;null!==e&&"object"==typeof e?Yr(e,r,n):n[r]=e}):n[i]=o:Yr(o,i,n)}return n},Jr=e=>{if(!e)return"0 KB/s";const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(0===t?0:1)} ${["Bytes/s","KB/s","MB/s","GB/s","TB/s"][t]}`},qr=e=>{if(!e)return"0 ns";if(e<1e3)return`${e.toFixed(0)} ns`;if(e<1e6){const t=e/1e3;return`${t.toFixed(t<10?2:0)} μs`}if(e<1e9){const t=e/1e6;return`${t.toFixed(t<10?2:0)} ms`}if(e<6e10){const t=e/1e9;return`${t.toFixed(t<10?2:0)} s`}if(e<36e11){const t=e/6e10;return`${t.toFixed(t<10?2:0)} m`}if(e<864e11){const t=e/36e11;return`${t.toFixed(t<10?2:0)} h`}{const t=e/864e11;return`${t.toFixed(t<10?2:0)} d`}},Qr=()=>{const e=crypto.getRandomValues(new Uint8Array(16));let t=0;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>{const r=e[t%16];return t++,("1"===n?r:"0"===n?63&r|128:15&r|64).toString(16)})},Zr=e=>e?e.reduce((e,t)=>{if(null!=t){const n=Nr(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]):[],eo=e=>Array.isArray(e?.statuses)?Zr(e.statuses):e?.conditions??[],to=e=>e?Array.isArray(e)?no(e):no(Zr(Object.values(e))):no([]),no=e=>{const t=e?.filter(({status:e})=>e===Tn.Error),n=e?.filter(({status:e})=>e===Tn.Warning),r=e?.filter(({status:e})=>e===Tn.Disabled),o=e?.filter(({status:e})=>e===Tn.Loading),i=t.length>0,a=n.length>0,s=r.length>0;return{errors:t,hasErrors:i,warnings:n,hasWarnings:a,disableds:r,hasDisableds:s,loadings:o,hasLoadings:o.length>0,priorotizedStatus:i?Tn.Error:a?Tn.Warning:s?Tn.Info:void 0}},ro=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},oo=e=>({[En.Java]:_,[En.Go]:I,[En.JavaScript]:A,[En.Python]:N,[En.DotNet]:O,[En.CSharp]:T,[En.CPlusPlus]:w,[En.Php]:x,[En.Ruby]:C,[En.Rust]:$,[En.Swift]:S,[En.Elixir]:E,[En.MySql]:v,[En.Nginx]:b,[En.Postgres]:y,[En.Redis]:f,[En.Kafka]:m,[En.Ignored]:g,[En.Unknown]:g,[En.Processing]:g,[En.NoContainers]:g,[En.NoRunningPods]:g}[e]||g),io=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown:En.Unknown,ao=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,so=e=>e?.map(e=>oo(io(e)))||[],lo=e=>e?.map(e=>oo(e))||[],co=e=>e.runtimeInfo?.detectedLanguages?.length?lo(e.runtimeInfo?.detectedLanguages):so(e.containers),uo=(e,t)=>{const n={[Dn.Alauda]:Pe,[Dn.AlibabaCloud]:Le,[Dn.AppDynamics]:ke,[Dn.Axiom]:De,[Dn.AzureBlob]:Re,[Dn.AzureMonitor]:_e,[Dn.BetterStack]:Ie,[Dn.Bonree]:Ae,[Dn.Causely]:Ne,[Dn.Checkly]:Oe,[Dn.Chronosphere]:Te,[Dn.ClickHouse]:we,[Dn.CloudWatch]:xe,[Dn.Coralogix]:Ce,[Dn.Dash0]:$e,[Dn.Datadog]:Se,[Dn.Dynamic]:Y,[Dn.Dynatrace]:Ee,[Dn.ElasticApm]:ve,[Dn.ElasticSearch]:be,[Dn.GoogleCloud]:ye,[Dn.GoogleCloudOTLP]:ye,[Dn.GrafanaCloudLoki]:fe,[Dn.GrafanaCloudPrometheus]:fe,[Dn.GrafanaCloudTempo]:fe,[Dn.Greptime]:me,[Dn.Groundcover]:ge,[Dn.Honeycomb]:he,[Dn.HyperDX]:pe,[Dn.Instana]:ue,[Dn.Jaeger]:de,[Dn.Kafka]:m,[Dn.Kloudmate]:ce,[Dn.Last9]:le,[Dn.Lightstep]:se,[Dn.LogzIo]:ae,[Dn.Loki]:ie,[Dn.Lumigo]:oe,[Dn.Middleware]:re,[Dn.NewRelic]:ne,[Dn.Observe]:te,[Dn.Odigos]:ee,[Dn.OneUptime]:Z,[Dn.OpenObserve]:Q,[Dn.Opsverse]:q,[Dn.Oracle]:J,[Dn.OTLP]:Y,[Dn.OTLPHttp]:Y,[Dn.Prometheus]:K,[Dn.Qryn]:V,[Dn.QrynOss]:X,[Dn.Quickwit]:G,[Dn.S3]:W,[Dn.Seq]:j,[Dn.Signalfx]:B,[Dn.Signoz]:H,[Dn.Splunk]:B,[Dn.SplunkSapm]:B,[Dn.SplunkOtlp]:B,[Dn.SumoLogic]:z,[Dn.TelemetryHub]:F,[Dn.Tempo]:U,[Dn.Tingyun]:M,[Dn.Traceloop]:P,[Dn.Uptrace]:L,[Dn.VictoriaMetrics]:k,[Dn.VictoriaMetricsCloud]:k,[Dn.XRay]:D,[Dn.Pyroscope]:R}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},po=e=>({[$n.Namespace]:Be,[$n.Source]:ze,[$n.Destination]:Fe,[$n.Action]:u,[$n.InstrumentationRule]:Ue,[$n.SamplingRule]:Me}[e]),ho=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&"string"==typeof e.id&&e.id||"id"in e&&"object"==typeof e.id&&e.id.namespace&&e.id.kind&&e.id.name?e.id:"namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name?{namespace:e.namespace,name:e.name,kind:e.kind,..."region"in e&&e.region?{region:e.region}:{}}:"name"in e&&e.name?e.name:void 0,go=e=>{if(!e)return"";if("string"==typeof e)return e;const t=`${e.namespace}/${e.kind}/${e.name}`;return e.region?`${t}/${e.region}`:t},mo=e=>go(ho(e)),fo=(e,t,n)=>{const{extended:r,prioritizeDisplayName:o}=n||{};let i="",a="";switch(t){case $n.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case $n.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case $n.Action:const r=e;i=r.type,a=r.name||"";break;case $n.Destination:const o=e;i=o.destinationType.displayName,a=o.name;break;case $n.Namespace:const s=e;i=s.name,a=s.name}return r?i+(a&&a!==i?` (${a})`:""):o&&a||i},yo=(e,t)=>{if(t===$n.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,r]=e.split("=");t[n]=r}),t}return e},bo=e=>({[Mn.CodeAttributes]:Ge,[Mn.CustomInstrumentation]:We,[Mn.HeadersCollection]:je,[Mn.PayloadCollection]:He,[Mn.UnknownType]:g}[e]||g),vo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown,Eo=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?En.Processing:En.NoRunningPods;const r=n?.filter(e=>vo(e)!==En.Ignored);if(!r.length)return En.NoContainers;const o=r.find(e=>vo(e)!==En.Unknown);return o?vo(o):En.Unknown},So=(e,t,n)=>(t===$n.Source?e?.sources.find(e=>e.kind===n.kind&&e.name===n.name&&e.namespace===n.namespace):e?.destinations.find(e=>e.id===n))||{throughput:0},$o=e=>({[Xn.Logs]:Ke,[Xn.Metrics]:Ve,[Xn.Traces]:Xe,[Xn.Profiles]:ee}[e]),Co=(e,t)=>Object.values(hr).reduce((n,r)=>Math.abs(t[r]-e)<Math.abs(t[n]-e)?r:n),xo=e=>e&&{[yn.K8s]:Qe,[yn.Vm]:qe,[yn.Connector]:Je,[yn.AwsEcs]:Ye}[e]||ee,wo=e=>e?{[yn.K8s]:"Kubernetes Cluster",[yn.Vm]:"Virtual Machine",[yn.Connector]:"Cloud Connector",[yn.AwsEcs]:"AWS ECS"}[e]:"Unknown",To=(e,t,n)=>{const r=e[t];return r?r.flatMap(e=>{const r=e[n],o=[];return void 0!==r&&(Array.isArray(r)?o.push(...r):o.push(r)),o.push(...To(e,t,n)),o}):[]},Oo={"aws.lambda":"AWS Lambda","aws.fargate-task":"ECS Fargate Task","aws.fargate-cluster":"ECS Fargate Cluster","aws.ecs-cluster":"ECS Cluster","aws.eks":"Amazon EKS","aws.ec2":"Amazon EC2"},No=e=>{if(!e)return"";if(Oo[e])return Oo[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},Ao=(e,t)=>{if(t===$n.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},Io=(e,t,n)=>{switch(n=n??"500",t){case Tn.Default:return e.v2.colors.purple[n];case Tn.Info:return e.v2.colors.blue[n];case Tn.Error:return e.v2.colors.red[n];case Tn.Warning:return e.v2.colors.yellow[n];case Tn.Success:return e.v2.colors.green[n];case Tn.Loading:case Tn.Disabled:case Tn.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},_o=e=>{switch(e){case Hn.Updating:case jn.Pending:case Wn.ContainerCreating:case Gn.Waiting:return Tn.Info;case Hn.Healthy:case jn.Succeeded:case jn.Running:case Wn.Running:case Gn.Running:return Tn.Success;case Hn.Degraded:return Tn.Warning;case Hn.Failed:case jn.Failed:case Wn.Error:case Wn.CrashLoopBackOff:case Wn.CreateContainerError:case Wn.CreateContainerConfigError:case Wn.ErrImagePull:case Wn.ErrImageNeverPull:case Wn.ImagePullBackOff:case Wn.InvalidImageName:case Wn.RegistryUnavailable:case Wn.NetworkNotReady:case Wn.OOMKilled:case Wn.ContainerCannotRun:case Gn.Terminated:case Wn.DeadlineExceeded:case Wn.StartError:return Tn.Error;case Hn.Down:case Wn.Completed:return Tn.Disabled;case Hn.Unknown:case jn.Unknown:default:return Tn.Unknown}},Ro=r.div`
42
42
  border-radius: 100%;
43
43
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
44
44
  position: relative;
@@ -192,7 +192,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
192
192
  background-clip: text;
193
193
  color: transparent;
194
194
  animation: ${li} 1s reverse linear infinite;
195
- `,di=e=>{const t=Math.max(0,Date.now()-e),n=Math.floor(t/1e3),r=Math.floor(n/60),o=n%60;return`${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`},ui=({icon:n,title:r,titleColor:o,titleSize:a=hr.S,subTitle:s,subTitleColor:l,subTitleSize:c=hr.XXXS,startedAt:d,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:y,visualIcon:b=Ze})=>{const v=i(),[E,S]=Ft(()=>d?di(d):"");zt(()=>{if(!d)return;S(di(d));const e=setInterval(()=>S(di(d)),1e3);return()=>clearInterval(e)},[d]);const $=o||v.v2.colors.white[500],C=l||v.v2.colors.silver[200],x=p||v.v2.colors.black[500];return e(ei,{$gap:16,$alignItems:"center",children:[y?t(Ho,{scale:1.7,icon:b}):h?t(Lo,{percentage:f}):g?t(zo,{scale:m}):null,(r||s||d||n||u)&&e(ei,{$gap:8,$alignItems:"center",children:[e(Zo,{$gap:4,children:[n&&t(n,{}),u?t(ci,{align:"center",size:a,$titleColor:$,$gradientColor:x,nowrap:!0,children:r||"Loading..."}):r?t(br,{align:"center",size:a,color:$,children:r}):null]}),s?t(br,{align:"center",size:c,color:C,children:s}):null,E?t(br,{align:"center",size:c,color:$,children:E}):null]})]})},pi=(e,t)=>({[Tn.Default]:n=>ee({fill:Io(t,e,"300"),...n}),[Tn.Info]:n=>rt({fill:Io(t,e,"400"),...n}),[Tn.Error]:n=>nt({fill:Io(t,e,"500"),...n}),[Tn.Warning]:n=>tt({fill:Io(t,e,"500"),...n}),[Tn.Success]:n=>p({fill:Io(t,e,"500"),...n}),[Tn.Loading]:e=>ui({withSpinnerOld:!0,...e}),[Tn.Disabled]:n=>h({fill:Io(t,e,"400"),...n}),[Tn.Unknown]:n=>et({fill:Io(t,e,"300"),...n})}[e]),hi=e=>{switch(e){case Pn.Success:return Tn.Success;case Pn.Error:case Pn.Failure:return Tn.Error;case Pn.Notice:return Tn.Warning;case Pn.Unsupported:case Pn.Unknown:return Tn.Info;case Pn.Irrelevant:case Pn.Disabled:return Tn.Disabled;case Pn.Waiting:return Tn.Loading;case Pn.Pending:default:return Tn.Default}},gi=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},mi={redis:f,mysql:v,postgresql:y,postgres:y,kafka:m,elasticsearch:be,clickhouse:we,oracle:J,aws:ot},fi={sts:ft,dynamodb:mt,s3:W,sqs:gt,sns:ht,lambda:pt,kinesis:ut,ec2:dt,apigateway:ct,apigatewayv2:ct,bedrock:lt,bedrockruntime:lt,eventbridge:st,sfn:at,stepfunctions:at,secretsmanager:it,cloudwatch:xe},yi=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=mi[n.toLowerCase()];if(e)return e}const r=t["messaging.system"];if(r){const e=mi[r.toLowerCase()];if(e)return e}const o=t["rpc.system"];if(o?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=fi[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(mi))if(i.includes(e))return t;return Fe},bi=e=>{if(!e)return{namespace:"",name:"",kind:""};if("id"in e&&"object"==typeof e.id)return{namespace:e.id.namespace,name:e.id.name,kind:e.id.kind,region:e.id.region||void 0};const{namespace:t,name:n,kind:r,region:o}=e;return{namespace:t,name:n,kind:r,region:o||void 0}},vi=(e,t)=>{const n=[],r=JSON.parse(JSON.stringify(e));for(const e of r){const r=Rr(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&n.push(...e.items[o].fields.map(e=>({...e,initialValue:r[e.name]})))}return n},Ei=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==Tn.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1};function Si(e){if(!e||0===e.length)return null;const t=[],n=[],r=[];for(const o of e){if(!o)continue;const e=o.workloadName??"",i=o.workloadKind??"",a=o.workloadNamespace??"",s=o.workloadLanguage??"";e||i?t.push({namespace:a,kind:i,name:e}):a&&n.push(a),s&&r.push(s)}return 0===t.length&&0===n.length&&0===r.length?null:{sources:t,namespaces:n,languages:r}}function $i(e){if(!e)return null;const t=[];for(const n of e.sources??[])t.push({workloadName:n.name||null,workloadKind:n.kind||null,workloadNamespace:n.namespace||null});for(const n of e.namespaces??[])t.push({workloadNamespace:n});for(const n of e.languages??[])t.push({workloadLanguage:n});return t.length?t:null}function Ci(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:Si(t??null)}}function xi(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:$i(t??null)}}const wi=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Ti=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Oi=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},Ni=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Ai=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Ii=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,_i=e=>Ii.test(e),Ri=e=>e?.map(({status:e,type:t,reason:n,message:r})=>({status:e?.toLowerCase(),type:ur(t),reason:n?ur(n):"",message:r}))||[],Di=(e,t)=>{const n=Rr(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:n[e.name]??null})).filter(e=>null!==e.value):Object.entries(n).map(([e,t])=>({key:e,name:e,value:t}))},ki=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Qn[e]):[],Li=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Qn[e]):[],Pi=e=>{let t=e.replace(/[^\d.]/g,"");const n=t.indexOf(".");return-1!==n&&(t=t.slice(0,n+1)+t.slice(n+1).replace(/\./g,"")),t},Mi=e=>e.replace(/[^\d]/g,""),Ui=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Fi=e=>{let t="";try{const n=JSON.parse(e);t=Array.isArray(n)?n.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof n&&null!==n?Object.entries(n).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(n){t=e}return t},zi=e=>{const t=e.fields.reduce((e,{key:t,value:n})=>{const r=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(n);return void 0!==r&&e.push({key:t,value:r}),e},[]);return{...e,fields:t}},Bi=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const r=e[n];if(Array.isArray(r)){const e=r.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>Bi(e)))}else if("object"==typeof r&&null!==r){const e=Bi(r);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(r)||(t[n]=r)}),t},Hi=(e,t=2)=>JSON.stringify(e||{},null,t),ji=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Wi=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Gi={PID:"process.pid",VPID:"process.vpid"},Xi={[En.Go]:"Go",[En.Java]:"Java",[En.JavaScript]:"Node.js",[En.Python]:"Python",[En.DotNet]:".NET",[En.CSharp]:"C#",[En.CPlusPlus]:"C++",[En.Php]:"PHP",[En.Ruby]:"Ruby",[En.Rust]:"Rust",[En.Swift]:"Swift",[En.Elixir]:"Elixir",[En.MySql]:"MySQL",[En.Nginx]:"Nginx",[En.Postgres]:"PostgreSQL",[En.Redis]:"Redis",[En.Kafka]:"Kafka",[En.Ignored]:"Ignored",[En.Unknown]:"Unknown",[En.Processing]:"Processing",[En.NoContainers]:"No Containers",[En.NoRunningPods]:"No Running Pods"},Vi=[{id:En.Go,label:Xi[En.Go],icon:oo(En.Go)},{id:En.Java,label:Xi[En.Java],icon:oo(En.Java)},{id:En.JavaScript,label:Xi[En.JavaScript],icon:oo(En.JavaScript)},{id:En.Python,label:Xi[En.Python],icon:oo(En.Python)},{id:En.Php,label:Xi[En.Php],icon:oo(En.Php)},{id:En.Ruby,label:Xi[En.Ruby],icon:oo(En.Ruby)},{id:En.Rust,label:Xi[En.Rust],icon:oo(En.Rust)},{id:En.DotNet,label:Xi[En.DotNet],icon:oo(En.DotNet)},{id:En.CSharp,label:Xi[En.CSharp],icon:oo(En.CSharp)},{id:En.CPlusPlus,label:Xi[En.CPlusPlus],icon:oo(En.CPlusPlus)},{id:En.Swift,label:Xi[En.Swift],icon:oo(En.Swift)},{id:En.Elixir,label:Xi[En.Elixir],icon:oo(En.Elixir)}],Ki={id:Ln.OpentelemetryEbpfInstrumentation,label:Ln.OpentelemetryEbpfInstrumentation,icon:yt},Yi={[En.Go]:{community:[{id:Ln.GolangCommunity,label:Ln.GolangCommunity,icon:oo(En.Go)},Ki],enterprise:[{id:Ln.GolangEnterprise,label:Ln.GolangEnterprise,icon:oo(En.Go)}]},[En.JavaScript]:{community:[{id:Ln.NodejsCommunity,label:Ln.NodejsCommunity,icon:oo(En.JavaScript)},Ki],enterprise:[{id:Ln.NodejsEnterprise,label:Ln.NodejsEnterprise,icon:oo(En.JavaScript)}]},[En.Python]:{community:[{id:Ln.PythonCommunity,label:Ln.PythonCommunity,icon:oo(En.Python)},Ki],enterprise:[{id:Ln.PythonEnterprise,label:Ln.PythonEnterprise,icon:oo(En.Python)}]},[En.Java]:{community:[{id:Ln.JavaCommunity,label:Ln.JavaCommunity,icon:oo(En.Java)},Ki],enterprise:[{id:Ln.JavaEnterprise,label:Ln.JavaEnterprise,icon:oo(En.Java)},{id:Ln.JavaEbpfInstrumentations,label:Ln.JavaEbpfInstrumentations,icon:oo(En.Java)}]},[En.DotNet]:{community:[{id:Ln.DotNetCommunity,label:Ln.DotNetCommunity,icon:oo(En.DotNet)},Ki],enterprise:[{id:Ln.DotNetEnterprise,label:Ln.DotNetEnterprise,icon:oo(En.DotNet)}]},[En.Ruby]:{community:[{id:Ln.RubyCommunity,label:Ln.RubyCommunity,icon:oo(En.Ruby)},Ki],enterprise:[{id:Ln.RubyEnterprise,label:Ln.RubyEnterprise,icon:oo(En.Ruby)}]},[En.Php]:{community:[{id:Ln.PhpCommunity,label:Ln.PhpCommunity,icon:oo(En.Php)},Ki],enterprise:[]},[En.CSharp]:{community:[],enterprise:[{id:Ln.CPlusPlusEnterprise,label:Ln.CPlusPlusEnterprise,icon:oo(En.CSharp)}]},[En.MySql]:{community:[],enterprise:[{id:Ln.MySqlEnterprise,label:Ln.MySqlEnterprise,icon:oo(En.MySql)}]},[En.CPlusPlus]:{community:[Ki],enterprise:[]},[En.Rust]:{community:[Ki],enterprise:[]},[En.Swift]:{community:[Ki],enterprise:[]},[En.Elixir]:{community:[Ki],enterprise:[]},[En.Nginx]:{community:[Ki],enterprise:[]},[En.Postgres]:{community:[Ki],enterprise:[]},[En.Redis]:{community:[Ki],enterprise:[]},[En.Kafka]:{community:[Ki],enterprise:[]},[En.Ignored]:{community:[],enterprise:[]},[En.Unknown]:{community:[Ki],enterprise:[]},[En.Processing]:{community:[],enterprise:[]},[En.NoContainers]:{community:[],enterprise:[]},[En.NoRunningPods]:{community:[],enterprise:[]}},Ji="*",qi=e=>!!e?.includes(Ji),Qi=e=>e?.length?qi(e)?[Ji]:e:[],Zi=e=>{if(e?.length&&!qi(e))return e.filter(e=>e!==Ji)},ea=e=>e===Ji?"All languages":Xi[e]??e,ta=e=>e===Ji?bt:oo(e),na=nn("v1.26"),ra=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return!(n>0)||n>=na},oa=[{type:Mn.CodeAttributes,icon:bo(Mn.CodeAttributes),label:"Code Attributes",description:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/codeattributes",supportedLanguages:[En.Go,En.Python,En.JavaScript]},{type:Mn.CustomInstrumentation,icon:bo(Mn.CustomInstrumentation),label:"Custom Instrumentation",description:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), a class and method combination (i.e. for Java), or a class and function combination (i.e. for PHP) for detailed tracing.',docsUrl:"https://docs.odigos.io/pipeline/rules/custominstrumentation",supportedLanguages:[En.Go,En.Java,En.Php]},{type:Mn.HeadersCollection,icon:bo(Mn.HeadersCollection),label:"Headers Collection",description:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/headerscollection",supportedLanguages:[En.Go,En.Java,En.JavaScript]},{type:Mn.PayloadCollection,icon:bo(Mn.PayloadCollection),label:"Payload Collection",description:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/payloadcollection",supportedLanguages:[En.Go,En.JavaScript]}],ia=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:bo(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},aa={TITLE:"Regex Testing",REGEX_LABEL:"Regex",REGEX_EMPTY_HINT:"No regex to test - fill in the regex field on the row first.",TEST_STRING_LABEL:"Test string",TEST_STRING_PLACEHOLDER:"Paste a span attribute payload to test the regex against...",TEST_STRING_HELP:'The regex runs verbatim against this string. Paste the actual attribute value the processor will see - if your sample came from a log dump with JSON-escaped quotes (\\"), click Unescape first.',RESULT_LABEL:"Result",RESULT_CAPTURE_HINT:"This is the value that will be written to the new span attribute.",RESULT_EMPTY_REGEX:"Enter a regex to test.",RESULT_EMPTY_INPUT:"Enter a test string to see the result.",RESULT_NO_MATCH:"No match found.",RESULT_INVALID_REGEX_FALLBACK:"Invalid regex pattern.",UNESCAPE_LABEL:"Unescape",UNESCAPE_TOOLTIP:'Convert escape sequences (\\", \\n, \\t, \\\\) into their literal characters. Useful when pasting log output that JSON-escapes attribute values.'},sa={SEGMENT_PRESET_LABEL:"Preset extract",SEGMENT_PRESET_TOOLTIP:"Extract a value from an existing attribute using a pre-set pattern (JSON, SQL, or Resource path).",SEGMENT_REGEX_LABEL:"Custom Regex",SEGMENT_REGEX_TOOLTIP:"Extract a value using your own regular expression with a single capture group.",PRESET_ROW_TITLE:e=>`Data format ${e+1}`,REGEX_ROW_TITLE:e=>`Custom Regex ${e+1}`,TEST_REGEX_LABEL:"Test Regex",REGEX_LABEL:"Regex",REGEX_PLACEHOLDER:"e.g. (?:^|[\\s,{(\"'])[\"']?study_id[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,;)}]+)",REGEX_HELP:"A regex with a single capture group; the captured value becomes the new attribute.",TARGET_LABEL:"New span attribute name",TARGET_PLACEHOLDER:"e.g. customerId",TARGET_HELP:"The name of the new extracted attribute."},la={[pn.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[pn.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[pn.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},ca="Cancel",da="Save",ua="Edit rule",pa="Edit auto rule",ha="Create rule",ga="Delete rule",ma="Save",fa="Create your first rule",ya="No Rules Exist",ba="No Results",va=e=>`No rules match the search term "${e}"`,Ea="Rule name",Sa="Rule type",$a="Select the type of condition that makes a trace highly relevant.",Ca="Rule Enabled",xa="Rule Disabled",wa="Enabled",Ta="Disabled",Oa="Note",Na="HTTP route",Aa="Method",Ia="Keep Percentage",_a="Keep traces with duration larger than",Ra="Keep traces with errors",Da="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",ka="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",La="Custom percentage",Pa="Disabled rule",Ma="Sample",Ua="Keep all",Fa="Drop all",za="Operation type",Ba="HTTP route prefix",Ha="Templated path",ja="Templated path prefix",Wa="Kafka topic",Ga="Custom duration (ms)",Xa="No preview available",Va="Server address",Ka="Drop at most this percentage of matching traces",Ya="Unnamed rule",Ja="Sampling Preview",qa="Source Scope",Qa="Unknown source",Za="Operation",es="Duration",ts="Errors",ns="Keep Percentage",rs="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",os="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.",is="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",as="Retain traces with errors from the selected services and operations.",ss="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",ls="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",cs={highlyRelevant:ss,noisy:ls,costReduction:void 0},ds="Type rule name",us="Add note here...",ps="Type here",hs="Search source name",gs="e.g. collector.my.vendor.com",ms="Optional notes (not used by the system). Add any context or details for this sampling rule.",fs="Rule will apply to all sources in the cluster",ys="If multiple source scopes are set, they must all match simultaneously.",bs="All sources",vs="-",Es="All",Ss="Sources",$s="Namespaces",Cs="Languages",xs="any of",ws="AND",Ts="All operations",Os="HTTP server endpoint",Ns="HTTP client endpoint",As="Kafka consumer",Is="Kafka producer",_s="Sampling Rules",Rs='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',Ds="Refresh",ks="Create rule",Ls="Sampling docs",Ps="75vw",Ms="Delete rule?",Us="Are you sure you want to delete this sampling rule?",Fs="Delete",zs="Cancel",Bs="Kubernetes Health Probes",Hs="Keep All Error Traces",js="Drop Traces Cluster-Wide",Ws="A rule with the same matching conditions already exists.",Gs="Create this rule as-is?",Xs="This rule still uses the default configuration.\nDo you want to create it anyway?",Vs="Rule preview",Ks="Continue editing",Ys="Create 'Noisy Operation Kubernetes Health Probes' rule",Js="Edit 'Noisy Operation Kubernetes Health Probes' rule",qs="Automatically detect and sample health probe traces across the cluster.",Qs="Create 'Highly Relevant Operations' rule",Zs="Edit 'Highly Relevant Operations' rule",el="Automatically keep all error traces across the entire cluster.",tl="Create 'Cost Reduction' rule",nl="Edit 'Cost Reduction' rule",rl="Automatically drop a percentage of traces across the entire cluster.",ol="Skip setup",il="Start setup",al="Next",sl="Go to Sampling",ll="Read more",cl="Welcome to Sampling",dl="Cut costs without losing what matters",ul="Odigos sampling works in three stages:",pl="Filter noisy traffic",hl="Remove non-actionable traces like health checks.",gl="Guarantee highly relevance operations",ml="Keep traces with errors, high latency, or mission-critical endpoints/services.",fl="Reduce cost",yl="Sample routine traffic using percentages.",bl="Sampling does not drop individual spans - it keeps or drops the entire trace.",vl="Filter noisy operations",El="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Sl="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.",$l="Preset Rules",Cl="Kubernetes Health Probes",xl="Automatically ignore health checks",wl="You can review, adjust, and add additional custom rules later.",Tl="Choose your sampling strategy",Ol="Pick the approach that best fits your balance of cost vs data-completeness",Nl="Keep List",Al="Budget Friendly",Il="Define which traces must be kept, while all others are sampled by default to minimize cost.",_l="Cost-oriented - keeps only what you explicitly select.",Rl="Best for very large clusters with high volumes of traces and high costs.",Dl="Higher risk of missing important traces without ongoing review.",kl="Drop List",Ll="Safe Choice",Pl="Define which traces must be aggressively dropped, while all others are kept by default.",Ml="Preserves most data unless explicitly filtered.",Ul="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Fl="Advanced",zl="Maximum Flexibility",Bl="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Hl="'Keep List' profile",jl="Protect important traces",Wl="Start by setting the default sampling rate for all traces.\nThen define rules to exclude highly relevant traces so they are guaranteed to be kept\n\nCommon use-cases include:",Gl="Traces with errors",Xl="Slow requests (duration above threshold)",Vl="Mission-Critical endpoints or services",Kl="Services under test or evaluation",Yl="New deployments",Jl="You can review, adjust, and add rules once onboarding is complete.",ql="Common Rules",Ql="Preset Rules",Zl="Error collection - entire cluster",ec="Keep all traces with errors",tc="Ambient sampling percentage",nc="'Drop List' profile",rc="Reduce high-volume traffic",oc="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.",ic="Advanced Configuration",ac="Configure sampling rules",sc="Advanced mode allows you to configure all sampling categories:",lc="Noise Filtering - remove non-actionable traces",cc="Highly Relevance - guarantee important traces are kept",dc='Cost Control - drop traces for "Normal" operations',uc="Rules can target:",pc="Services",hc="HTTP Endpoints",gc="DB Operations",mc="Errors",fc="Latency and more...",yc="Sampling configured successfully!",bc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",vc="Odigos will now:",Ec="Filter noisy operations",Sc="Guarantee important traces",$c="Reduce cost using controlled sampling",Cc="Recommended",xc={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."},wc={noisy:Ys,highlyRelevant:Qs,costReduction:tl},Tc={noisy:Js,highlyRelevant:Zs,costReduction:nl},Oc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Nc=[{id:Xn.Logs,value:"Logs"},{id:Xn.Metrics,value:"Metrics"},{id:Xn.Traces,value:"Traces"},{id:Xn.Profiles,value:"Profiles"}],Ac=6048e5,Ic=Pt()(Qt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Cr.DARK_MODE,storage:"undefined"!=typeof window?Zt(()=>localStorage):void 0})),_c={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Er},Rc=Pt(e=>({..._c,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const n=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(n).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(_c)}));var Dc;(e=>{e.AddSource="add-source",e.EditSource="edit-source",e.AddDestination="add-destination",e.EditDestination="edit-destination",e.AddAction="add-action",e.EditAction="edit-action",e.AddInstrumentationRule="add-instrumentation-rule",e.EditInstrumentationRule="edit-instrumentation-rule",e.OnboardingDone="onboarding-done"})(Dc||(Dc={}));const kc=e=>`add-${ur(e).replaceAll(" ","-").toLowerCase()}`,Lc=e=>`edit-${ur(e).replaceAll(" ","-").toLowerCase()}`,Pc=Pt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Mc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Uc=Pt(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}),regions:[],setRegions:t=>e({regions:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),enabledStatuses:[],setEnabledStatuses:t=>e({enabledStatuses:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),clearFilters:()=>e({statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),getEmptyState:Mc})),Fc=Pt((e,t)=>({notifications:[],addNotification:n=>{const r=new Date,o=`${r.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:o,time:r.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&e.notifications.splice(n,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var zc;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(zc||(zc={}));const Bc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Hc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),jc=Pt((e,t)=>({progress:{},setProgress:(n,r)=>{const o=t(),i=Bc();return"number"==typeof r.total&&(i.total=r.total),"number"==typeof r.current&&(i.current=r.current),Array.isArray(r.list)&&(i.list=r.list),e({progress:{...o.progress,[n]:Hc(i)}})},addProgress:(n,r,o)=>{const i=t(),a=Bc(n,i.progress);return a.current+=r,o&&(a.list=a.list?.map(e=>e.label===o.label?{...e,status:o.status}:e)),e({progress:{...i.progress,[n]:Hc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Wc=Pt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),Gc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Xc=(e,t)=>e.destinationType.type!==t.destinationType.type,Vc=Pt(e=>({...Gc,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=>Xc(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const n=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(n).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Xc(e,t))})),clearStore:()=>e(()=>({...Gc}))})),Kc=e=>{function t(){return void 0===e?{}:Br(e)}const[n,r]=Ft(t()),[o,i]=Ft({}),[a,s]=Ft(t()),l=Bt((e,t)=>{const n={};if(!t||"object"!=typeof t)return e?{...e}:n;for(const[r,o]of Object.entries(e)){const e=r;if(Array.isArray(o)){const r=t[e];Array.isArray(r)&&o.length===r.length&&o.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,r[t])).length:e===r[t])||(n[e]=t[e])}else if("object"==typeof o&&null!==o)if(null==t[e]||"object"!=typeof t[e])n[e]=t[e];else{const r=l(o,t[e]);Object.keys(r).length>0&&(n[e]=r)}else o!==t[e]&&(n[e]=t[e])}for(const r of Object.keys(t))r in e||(n[r]=t[r]);return n},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Ht(()=>!c(a,n),[a,n]);zt(()=>{const o=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(o)&&(r(o),s(o))},[e,n]);const u=Bt((e,t)=>Hr("formData"===e?n:o,t.toString()),[n,o]);return{formData:n,formErrors:o,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,n)=>{if(e){const n=e.toString(),o=n.split(".");1===o.length?r(n=>({...n,[e]:t})):r(e=>{const n=Br(e);let r=n;for(let e=0;e<o.length-1;e++){const t=o[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[o[o.length-1]]=t,n}),i(e=>{const t=n,r=o[o.length-1],i=void 0!==e[t],a=r!==t&&void 0!==e[r];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[r],s})}else n&&r({...n})},handleErrorChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?i(n=>({...n,[e]:t})):i(e=>{const r=Br(e);let o=r;for(let e=0;e<n.length-1;e++){const t=n[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[n[n.length-1]]=t,r})}else n&&i({...n})},resetFormData:e=>{const n=e||t();r(n),s(n),i({})},getNestedValue:u}},Yc={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},Jc=()=>{const{addNotification:e}=Fc(),{formData:t,formErrors:n,handleFormChange:r,handleErrorChange:o,resetFormData:i}=Kc(Yc);return{formData:t,formErrors:n,handleFormChange:r,resetFormData:i,validateForm:n=>{const r={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":wi(t)&&(r[e]=xr.FIELD_IS_REQUIRED)}}),t.type===rn.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){r.fields=xr.FIELD_IS_REQUIRED;break}}return i=!Object.values(r).length,!i&&n?.withAlert&&e({type:Tn.Warning,title:n.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,r),i},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:o,disabled:i,fields:a})=>{const s={...Br(Yc),type:e,signals:t,name:n,notes:o,disabled:i};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case an.LabelsAttributes:case an.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(n=t)&&Array.isArray(n)?n.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):n;break;case an.CollectContainerAttributes:case an.CollectReplicaSetAttributes:case an.CollectWorkloadId:case an.CollectClusterId:case an.ClusterAttributes:case an.OverwriteExistingValues:case an.AttributeNamesToDelete:case an.Renames:case an.PiiCategories:case an.ExtractAttribute:case an.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=t}var n}),r(void 0,void 0,s)}}},qc=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Qc=()=>{const e=jt(null),[t,n]=Ft(0),[r,o]=Ft(0);return zt(()=>{const t=()=>{if(e.current){const{width:t,height:r}=e.current.getBoundingClientRect();n(t),o(r)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:r}};var Zc;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(Zc||(Zc={}));const ed=r.div`
195
+ `,di=e=>{const t=Math.max(0,Date.now()-e),n=Math.floor(t/1e3),r=Math.floor(n/60),o=n%60;return`${String(r).padStart(2,"0")}:${String(o).padStart(2,"0")}`},ui=({icon:n,title:r,titleColor:o,titleSize:a=hr.S,subTitle:s,subTitleColor:l,subTitleSize:c=hr.XXXS,startedAt:d,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:y,visualIcon:b=Ze})=>{const v=i(),[E,S]=Ft(()=>d?di(d):"");zt(()=>{if(!d)return;S(di(d));const e=setInterval(()=>S(di(d)),1e3);return()=>clearInterval(e)},[d]);const $=o||v.v2.colors.white[500],C=l||v.v2.colors.silver[200],x=p||v.v2.colors.black[500];return e(ei,{$gap:16,$alignItems:"center",children:[y?t(Ho,{scale:1.7,icon:b}):h?t(Lo,{percentage:f}):g?t(zo,{scale:m}):null,(r||s||d||n||u)&&e(ei,{$gap:8,$alignItems:"center",children:[e(Zo,{$gap:4,children:[n&&t(n,{}),u?t(ci,{align:"center",size:a,$titleColor:$,$gradientColor:x,nowrap:!0,children:r||"Loading..."}):r?t(br,{align:"center",size:a,color:$,children:r}):null]}),s?t(br,{align:"center",size:c,color:C,children:s}):null,E?t(br,{align:"center",size:c,color:$,children:E}):null]})]})},pi=(e,t)=>({[Tn.Default]:n=>ee({fill:Io(t,e,"300"),...n}),[Tn.Info]:n=>rt({fill:Io(t,e,"400"),...n}),[Tn.Error]:n=>nt({fill:Io(t,e,"500"),...n}),[Tn.Warning]:n=>tt({fill:Io(t,e,"500"),...n}),[Tn.Success]:n=>p({fill:Io(t,e,"500"),...n}),[Tn.Loading]:e=>ui({withSpinnerOld:!0,...e}),[Tn.Disabled]:n=>h({fill:Io(t,e,"400"),...n}),[Tn.Unknown]:n=>et({fill:Io(t,e,"300"),...n})}[e]),hi=e=>{switch(e){case Pn.Success:return Tn.Success;case Pn.Error:case Pn.Failure:return Tn.Error;case Pn.Notice:return Tn.Warning;case Pn.Unsupported:case Pn.Unknown:return Tn.Info;case Pn.Irrelevant:case Pn.Disabled:return Tn.Disabled;case Pn.Waiting:return Tn.Loading;case Pn.Pending:default:return Tn.Default}},gi=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},mi={redis:f,mysql:v,postgresql:y,postgres:y,kafka:m,elasticsearch:be,clickhouse:we,oracle:J,aws:ot},fi={sts:ft,dynamodb:mt,s3:W,sqs:gt,sns:ht,lambda:pt,kinesis:ut,ec2:dt,apigateway:ct,apigatewayv2:ct,bedrock:lt,bedrockruntime:lt,eventbridge:st,sfn:at,stepfunctions:at,secretsmanager:it,cloudwatch:xe},yi=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=mi[n.toLowerCase()];if(e)return e}const r=t["messaging.system"];if(r){const e=mi[r.toLowerCase()];if(e)return e}const o=t["rpc.system"];if(o?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=fi[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(mi))if(i.includes(e))return t;return Fe},bi=e=>{if(!e)return{namespace:"",name:"",kind:""};if("id"in e&&"object"==typeof e.id)return{namespace:e.id.namespace,name:e.id.name,kind:e.id.kind,region:e.id.region||void 0};const{namespace:t,name:n,kind:r,region:o}=e;return{namespace:t,name:n,kind:r,region:o||void 0}},vi=(e,t)=>{const n=[],r=JSON.parse(JSON.stringify(e));for(const e of r){const r=Rr(t.fields,{}),o=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==o&&n.push(...e.items[o].fields.map(e=>({...e,initialValue:r[e.name]})))}return n},Ei=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==Tn.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1};function Si(e){if(!e||0===e.length)return null;const t=[],n=[],r=[];for(const o of e){if(!o)continue;const e=o.workloadName??"",i=o.workloadKind??"",a=o.workloadNamespace??"",s=o.workloadLanguage??"";e||i?t.push({namespace:a,kind:i,name:e}):a&&n.push(a),s&&r.push(s)}return 0===t.length&&0===n.length&&0===r.length?null:{sources:t,namespaces:n,languages:r}}function $i(e){if(!e)return null;const t=[];for(const n of e.sources??[])t.push({workloadName:n.name||null,workloadKind:n.kind||null,workloadNamespace:n.namespace||null});for(const n of e.namespaces??[])t.push({workloadNamespace:n});for(const n of e.languages??[])t.push({workloadLanguage:n});return t.length?t:null}function Ci(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:Si(t??null)}}function xi(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:$i(t??null)}}const wi=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Ti=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Oi=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},Ni=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Ai=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Ii=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,_i=e=>Ii.test(e),Ri=e=>e?.map(({status:e,type:t,reason:n,message:r})=>({status:e?.toLowerCase(),type:ur(t),reason:n?ur(n):"",message:r}))||[],Di=(e,t)=>{const n=Rr(e.fields,{});return t.length?t.map(e=>({key:e.name,name:e.displayName||e.name,value:n[e.name]??null})).filter(e=>null!==e.value):Object.entries(n).map(([e,t])=>({key:e,name:e,value:t}))},ki=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Qn[e]):[],Li=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Qn[e]):[],Pi=e=>{let t=e.replace(/[^\d.]/g,"");const n=t.indexOf(".");return-1!==n&&(t=t.slice(0,n+1)+t.slice(n+1).replace(/\./g,"")),t},Mi=e=>e.replace(/[^\d]/g,""),Ui=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Fi=e=>{let t="";try{const n=JSON.parse(e);t=Array.isArray(n)?n.map(e=>"object"==typeof e&&null!==e?`${e.key}: ${e.value}`:e).join(", "):"object"==typeof n&&null!==n?Object.entries(n).map(([e,t])=>`${e}: ${t}`).join(", "):e}catch(n){t=e}return t},zi=e=>{const t=e.fields.reduce((e,{key:t,value:n})=>{const r=(e=>{if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return}}})(n);return void 0!==r&&e.push({key:t,value:r}),e},[]);return{...e,fields:t}},Bi=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const r=e[n];if(Array.isArray(r)){const e=r.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>Bi(e)))}else if("object"==typeof r&&null!==r){const e=Bi(r);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(r)||(t[n]=r)}),t},Hi=(e,t=2)=>JSON.stringify(e||{},null,t),ji=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Wi=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Gi=nn("v1.33"),Xi=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Vi=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return n>0&&n<Gi},Ki=nn("v1.20"),Yi=(e,t)=>{if(e!==yn.K8s)return!0;const n=nn(t);return!(n>0)||n>=Ki},Ji=e=>e?Xi.map(t=>e[t]??null):[],qi={PID:"process.pid",VPID:"process.vpid"},Qi={[En.Go]:"Go",[En.Java]:"Java",[En.JavaScript]:"Node.js",[En.Python]:"Python",[En.DotNet]:".NET",[En.CSharp]:"C#",[En.CPlusPlus]:"C++",[En.Php]:"PHP",[En.Ruby]:"Ruby",[En.Rust]:"Rust",[En.Swift]:"Swift",[En.Elixir]:"Elixir",[En.MySql]:"MySQL",[En.Nginx]:"Nginx",[En.Postgres]:"PostgreSQL",[En.Redis]:"Redis",[En.Kafka]:"Kafka",[En.Ignored]:"Ignored",[En.Unknown]:"Unknown",[En.Processing]:"Processing",[En.NoContainers]:"No Containers",[En.NoRunningPods]:"No Running Pods"},Zi=[{id:En.Go,label:Qi[En.Go],icon:oo(En.Go)},{id:En.Java,label:Qi[En.Java],icon:oo(En.Java)},{id:En.JavaScript,label:Qi[En.JavaScript],icon:oo(En.JavaScript)},{id:En.Python,label:Qi[En.Python],icon:oo(En.Python)},{id:En.Php,label:Qi[En.Php],icon:oo(En.Php)},{id:En.Ruby,label:Qi[En.Ruby],icon:oo(En.Ruby)},{id:En.Rust,label:Qi[En.Rust],icon:oo(En.Rust)},{id:En.DotNet,label:Qi[En.DotNet],icon:oo(En.DotNet)},{id:En.CSharp,label:Qi[En.CSharp],icon:oo(En.CSharp)},{id:En.CPlusPlus,label:Qi[En.CPlusPlus],icon:oo(En.CPlusPlus)},{id:En.Swift,label:Qi[En.Swift],icon:oo(En.Swift)},{id:En.Elixir,label:Qi[En.Elixir],icon:oo(En.Elixir)}],ea={id:Ln.OpentelemetryEbpfInstrumentation,label:Ln.OpentelemetryEbpfInstrumentation,icon:yt},ta={[En.Go]:{community:[{id:Ln.GolangCommunity,label:Ln.GolangCommunity,icon:oo(En.Go)},ea],enterprise:[{id:Ln.GolangEnterprise,label:Ln.GolangEnterprise,icon:oo(En.Go)}]},[En.JavaScript]:{community:[{id:Ln.NodejsCommunity,label:Ln.NodejsCommunity,icon:oo(En.JavaScript)},ea],enterprise:[{id:Ln.NodejsEnterprise,label:Ln.NodejsEnterprise,icon:oo(En.JavaScript)}]},[En.Python]:{community:[{id:Ln.PythonCommunity,label:Ln.PythonCommunity,icon:oo(En.Python)},ea],enterprise:[{id:Ln.PythonEnterprise,label:Ln.PythonEnterprise,icon:oo(En.Python)}]},[En.Java]:{community:[{id:Ln.JavaCommunity,label:Ln.JavaCommunity,icon:oo(En.Java)},ea],enterprise:[{id:Ln.JavaEnterprise,label:Ln.JavaEnterprise,icon:oo(En.Java)},{id:Ln.JavaEbpfInstrumentations,label:Ln.JavaEbpfInstrumentations,icon:oo(En.Java)}]},[En.DotNet]:{community:[{id:Ln.DotNetCommunity,label:Ln.DotNetCommunity,icon:oo(En.DotNet)},ea],enterprise:[{id:Ln.DotNetEnterprise,label:Ln.DotNetEnterprise,icon:oo(En.DotNet)}]},[En.Ruby]:{community:[{id:Ln.RubyCommunity,label:Ln.RubyCommunity,icon:oo(En.Ruby)},ea],enterprise:[{id:Ln.RubyEnterprise,label:Ln.RubyEnterprise,icon:oo(En.Ruby)}]},[En.Php]:{community:[{id:Ln.PhpCommunity,label:Ln.PhpCommunity,icon:oo(En.Php)},ea],enterprise:[]},[En.CSharp]:{community:[],enterprise:[{id:Ln.CPlusPlusEnterprise,label:Ln.CPlusPlusEnterprise,icon:oo(En.CSharp)}]},[En.MySql]:{community:[],enterprise:[{id:Ln.MySqlEnterprise,label:Ln.MySqlEnterprise,icon:oo(En.MySql)}]},[En.CPlusPlus]:{community:[ea],enterprise:[]},[En.Rust]:{community:[ea],enterprise:[]},[En.Swift]:{community:[ea],enterprise:[]},[En.Elixir]:{community:[ea],enterprise:[]},[En.Nginx]:{community:[ea],enterprise:[]},[En.Postgres]:{community:[ea],enterprise:[]},[En.Redis]:{community:[ea],enterprise:[]},[En.Kafka]:{community:[ea],enterprise:[]},[En.Ignored]:{community:[],enterprise:[]},[En.Unknown]:{community:[ea],enterprise:[]},[En.Processing]:{community:[],enterprise:[]},[En.NoContainers]:{community:[],enterprise:[]},[En.NoRunningPods]:{community:[],enterprise:[]}},na="*",ra=e=>!!e?.includes(na),oa=e=>e?.length?ra(e)?[na]:e:[],ia=e=>{if(e?.length&&!ra(e))return e.filter(e=>e!==na)},aa=e=>e===na?"All languages":Qi[e]??e,sa=e=>e===na?bt:oo(e),la=nn("v1.26"),ca=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return!(n>0)||n>=la},da=[{type:Mn.CodeAttributes,icon:bo(Mn.CodeAttributes),label:"Code Attributes",description:'The "Code Attributes" rule can be used to add code attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/codeattributes",supportedLanguages:[En.Go,En.Python,En.JavaScript]},{type:Mn.CustomInstrumentation,icon:bo(Mn.CustomInstrumentation),label:"Custom Instrumentation",description:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), a class and method combination (i.e. for Java), or a class and function combination (i.e. for PHP) for detailed tracing.',docsUrl:"https://docs.odigos.io/pipeline/rules/custominstrumentation",supportedLanguages:[En.Go,En.Java,En.Php]},{type:Mn.HeadersCollection,icon:bo(Mn.HeadersCollection),label:"Headers Collection",description:'The "Headers Collection" rule can be used to add span attributes containing HTTP Headers data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/headerscollection",supportedLanguages:[En.Go,En.Java,En.JavaScript]},{type:Mn.PayloadCollection,icon:bo(Mn.PayloadCollection),label:"Payload Collection",description:'The "Payload Collection" rule can be used to add span attributes containing payload data to traces.',docsUrl:"https://docs.odigos.io/pipeline/rules/payloadcollection",supportedLanguages:[En.Go,En.JavaScript]}],ua=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:bo(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},pa={TITLE:"Regex Testing",REGEX_LABEL:"Regex",REGEX_EMPTY_HINT:"No regex to test - fill in the regex field on the row first.",TEST_STRING_LABEL:"Test string",TEST_STRING_PLACEHOLDER:"Paste a span attribute payload to test the regex against...",TEST_STRING_HELP:'The regex runs verbatim against this string. Paste the actual attribute value the processor will see - if your sample came from a log dump with JSON-escaped quotes (\\"), click Unescape first.',RESULT_LABEL:"Result",RESULT_CAPTURE_HINT:"This is the value that will be written to the new span attribute.",RESULT_EMPTY_REGEX:"Enter a regex to test.",RESULT_EMPTY_INPUT:"Enter a test string to see the result.",RESULT_NO_MATCH:"No match found.",RESULT_INVALID_REGEX_FALLBACK:"Invalid regex pattern.",UNESCAPE_LABEL:"Unescape",UNESCAPE_TOOLTIP:'Convert escape sequences (\\", \\n, \\t, \\\\) into their literal characters. Useful when pasting log output that JSON-escapes attribute values.'},ha={SEGMENT_PRESET_LABEL:"Preset extract",SEGMENT_PRESET_TOOLTIP:"Extract a value from an existing attribute using a pre-set pattern (JSON, SQL, or Resource path).",SEGMENT_REGEX_LABEL:"Custom Regex",SEGMENT_REGEX_TOOLTIP:"Extract a value using your own regular expression with a single capture group.",PRESET_ROW_TITLE:e=>`Data format ${e+1}`,REGEX_ROW_TITLE:e=>`Custom Regex ${e+1}`,TEST_REGEX_LABEL:"Test Regex",REGEX_LABEL:"Regex",REGEX_PLACEHOLDER:"e.g. (?:^|[\\s,{(\"'])[\"']?study_id[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,;)}]+)",REGEX_HELP:"A regex with a single capture group; the captured value becomes the new attribute.",TARGET_LABEL:"New span attribute name",TARGET_PLACEHOLDER:"e.g. customerId",TARGET_HELP:"The name of the new extracted attribute."},ga={[pn.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[pn.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[pn.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},ma="Cancel",fa="Save",ya="Edit rule",ba="Edit auto rule",va="Create rule",Ea="Delete rule",Sa="Save",$a="Create your first rule",Ca="No Rules Exist",xa="No Results",wa=e=>`No rules match the search term "${e}"`,Ta="Rule name",Oa="Rule type",Na="Select the type of condition that makes a trace highly relevant.",Aa="Rule Enabled",Ia="Rule Disabled",_a="Enabled",Ra="Disabled",Da="Note",ka="HTTP route",La="Method",Pa="Keep Percentage",Ma="Keep traces with duration larger than",Ua="Keep traces with errors",Fa="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",za="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",Ba="Custom percentage",Ha="Disabled rule",ja="Sample",Wa="Keep all",Ga="Drop all",Xa="Operation type",Va="HTTP route prefix",Ka="Templated path",Ya="Templated path prefix",Ja="Kafka topic",qa="Custom duration (ms)",Qa="No preview available",Za="Server address",es="Drop at most this percentage of matching traces",ts="Unnamed rule",ns="Sampling Preview",rs="Source Scope",os="Unknown source",is="Operation",as="Duration",ss="Errors",ls="Keep Percentage",cs="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",ds="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.",us="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",ps="Retain traces with errors from the selected services and operations.",hs="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",gs="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",ms={highlyRelevant:hs,noisy:gs,costReduction:void 0},fs="Type rule name",ys="Add note here...",bs="Type here",vs="Search source name",Es="e.g. collector.my.vendor.com",Ss="Optional notes (not used by the system). Add any context or details for this sampling rule.",$s="Rule will apply to all sources in the cluster",Cs="If multiple source scopes are set, they must all match simultaneously.",xs="All sources",ws="-",Ts="All",Os="Sources",Ns="Namespaces",As="Languages",Is="any of",_s="AND",Rs="All operations",Ds="HTTP server endpoint",ks="HTTP client endpoint",Ls="Kafka consumer",Ps="Kafka producer",Ms="Sampling Rules",Us='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',Fs="Refresh",zs="Create rule",Bs="Sampling docs",Hs="75vw",js="Delete rule?",Ws="Are you sure you want to delete this sampling rule?",Gs="Delete",Xs="Cancel",Vs="Kubernetes Health Probes",Ks="Keep All Error Traces",Ys="Drop Traces Cluster-Wide",Js="A rule with the same matching conditions already exists.",qs="Create this rule as-is?",Qs="This rule still uses the default configuration.\nDo you want to create it anyway?",Zs="Rule preview",el="Continue editing",tl="Create 'Noisy Operation Kubernetes Health Probes' rule",nl="Edit 'Noisy Operation Kubernetes Health Probes' rule",rl="Automatically detect and sample health probe traces across the cluster.",ol="Create 'Highly Relevant Operations' rule",il="Edit 'Highly Relevant Operations' rule",al="Automatically keep all error traces across the entire cluster.",sl="Create 'Cost Reduction' rule",ll="Edit 'Cost Reduction' rule",cl="Automatically drop a percentage of traces across the entire cluster.",dl="Skip setup",ul="Start setup",pl="Next",hl="Go to Sampling",gl="Read more",ml="Welcome to Sampling",fl="Cut costs without losing what matters",yl="Odigos sampling works in three stages:",bl="Filter noisy traffic",vl="Remove non-actionable traces like health checks.",El="Guarantee highly relevance operations",Sl="Keep traces with errors, high latency, or mission-critical endpoints/services.",$l="Reduce cost",Cl="Sample routine traffic using percentages.",xl="Sampling does not drop individual spans - it keeps or drops the entire trace.",wl="Filter noisy operations",Tl="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",Al="Kubernetes Health Probes",Il="Automatically ignore health checks",_l="You can review, adjust, and add additional custom rules later.",Rl="Choose your sampling strategy",Dl="Pick the approach that best fits your balance of cost vs data-completeness",kl="Keep List",Ll="Budget Friendly",Pl="Define which traces must be kept, while all others are sampled by default to minimize cost.",Ml="Cost-oriented - keeps only what you explicitly select.",Ul="Best for very large clusters with high volumes of traces and high costs.",Fl="Higher risk of missing important traces without ongoing review.",zl="Drop List",Bl="Safe Choice",Hl="Define which traces must be aggressively dropped, while all others are kept by default.",jl="Preserves most data unless explicitly filtered.",Wl="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Gl="Advanced",Xl="Maximum Flexibility",Vl="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Kl="'Keep List' profile",Yl="Protect important traces",Jl="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:",ql="Traces with errors",Ql="Slow requests (duration above threshold)",Zl="Mission-Critical endpoints or services",ec="Services under test or evaluation",tc="New deployments",nc="You can review, adjust, and add rules once onboarding is complete.",rc="Common Rules",oc="Preset Rules",ic="Error collection - entire cluster",ac="Keep all traces with errors",sc="Ambient sampling percentage",lc="'Drop List' profile",cc="Reduce high-volume traffic",dc="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.",uc="Advanced Configuration",pc="Configure sampling rules",hc="Advanced mode allows you to configure all sampling categories:",gc="Noise Filtering - remove non-actionable traces",mc="Highly Relevance - guarantee important traces are kept",fc='Cost Control - drop traces for "Normal" operations',yc="Rules can target:",bc="Services",vc="HTTP Endpoints",Ec="DB Operations",Sc="Errors",$c="Latency and more...",Cc="Sampling configured successfully!",xc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",wc="Odigos will now:",Tc="Filter noisy operations",Oc="Guarantee important traces",Nc="Reduce cost using controlled sampling",Ac="Recommended",Ic={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."},_c={noisy:tl,highlyRelevant:ol,costReduction:sl},Rc={noisy:nl,highlyRelevant:il,costReduction:ll},Dc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},kc=[{id:Xn.Logs,value:"Logs"},{id:Xn.Metrics,value:"Metrics"},{id:Xn.Traces,value:"Traces"},{id:Xn.Profiles,value:"Profiles"}],Lc=6048e5,Pc=Pt()(Qt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Cr.DARK_MODE,storage:"undefined"!=typeof window?Zt(()=>localStorage):void 0})),Mc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Er},Uc=Pt(e=>({...Mc,setDataStreamsLoading:t=>e({dataStreamsLoading:t}),setDataStreams:t=>e({dataStreams:t}),addDataStreams:t=>e(e=>{const n=[...e.dataStreams,...t].map(e=>[e.name,e]);return{dataStreams:Array.from(new Map(n).values())}}),removeDataStreams:t=>e(e=>({dataStreams:e.dataStreams.filter(e=>!t.find(t=>t.name===e.name))})),setSelectedStreamName:t=>e({selectedStreamName:t}),resetDataStreamStore:()=>e(Mc)}));var Fc;(e=>{e.AddSource="add-source",e.EditSource="edit-source",e.AddDestination="add-destination",e.EditDestination="edit-destination",e.AddAction="add-action",e.EditAction="edit-action",e.AddInstrumentationRule="add-instrumentation-rule",e.EditInstrumentationRule="edit-instrumentation-rule",e.OnboardingDone="onboarding-done"})(Fc||(Fc={}));const zc=e=>`add-${ur(e).replaceAll(" ","-").toLowerCase()}`,Bc=e=>`edit-${ur(e).replaceAll(" ","-").toLowerCase()}`,Hc=Pt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),jc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Wc=Pt(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}),regions:[],setRegions:t=>e({regions:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),enabledStatuses:[],setEnabledStatuses:t=>e({enabledStatuses:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),clearFilters:()=>e({statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),getEmptyState:jc})),Gc=Pt((e,t)=>({notifications:[],addNotification:n=>{const r=new Date,o=`${r.getTime().toString()}${n.target?`#${n.target}`:""}`,{notifications:i}=t();i.some(e=>e.type===n.type&&e.title===n.title&&e.message===n.message&&!e.dismissed)||e(e=>({notifications:[{...n,id:o,time:r.toISOString(),dismissed:!1,seen:!1},...e.notifications]}))},markAsDismissed:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].dismissed=!0),{notifications:e.notifications}})},markAsSeen:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&(e.notifications[n].seen=!0),{notifications:e.notifications}})},removeNotification:t=>{e(e=>{const n=e.notifications.findIndex(e=>e.id===t);return-1!==n&&e.notifications.splice(n,1),{notifications:e.notifications}})},removeNotifications:t=>{t&&e(e=>({notifications:e.notifications.filter(e=>e.id.split("#")[1]!==t)}))}}));var Xc;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Xc||(Xc={}));const Vc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Kc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Yc=Pt((e,t)=>({progress:{},setProgress:(n,r)=>{const o=t(),i=Vc();return"number"==typeof r.total&&(i.total=r.total),"number"==typeof r.current&&(i.current=r.current),Array.isArray(r.list)&&(i.list=r.list),e({progress:{...o.progress,[n]:Kc(i)}})},addProgress:(n,r,o)=>{const i=t(),a=Vc(n,i.progress);return a.current+=r,o&&(a.list=a.list?.map(e=>e.label===o.label?{...e,status:o.status}:e)),e({progress:{...i.progress,[n]:Kc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Jc=Pt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),qc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Qc=(e,t)=>e.destinationType.type!==t.destinationType.type,Zc=Pt(e=>({...qc,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=>Qc(e,t))})),setConfiguredDestinationsUpdateOnly:t=>e({configuredDestinationsUpdateOnly:t}),addConfiguredDestinationUpdateOnly:t=>e(e=>{const n=[...e.configuredDestinationsUpdateOnly,t].map(e=>[e.id,e]);return{configuredDestinationsUpdateOnly:Array.from(new Map(n).values())}}),removeConfiguredDestinationUpdateOnly:t=>e(e=>({configuredDestinationsUpdateOnly:e.configuredDestinationsUpdateOnly.filter(e=>Qc(e,t))})),clearStore:()=>e(()=>({...qc}))})),ed=e=>{function t(){return void 0===e?{}:Br(e)}const[n,r]=Ft(t()),[o,i]=Ft({}),[a,s]=Ft(t()),l=Bt((e,t)=>{const n={};if(!t||"object"!=typeof t)return e?{...e}:n;for(const[r,o]of Object.entries(e)){const e=r;if(Array.isArray(o)){const r=t[e];Array.isArray(r)&&o.length===r.length&&o.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,r[t])).length:e===r[t])||(n[e]=t[e])}else if("object"==typeof o&&null!==o)if(null==t[e]||"object"!=typeof t[e])n[e]=t[e];else{const r=l(o,t[e]);Object.keys(r).length>0&&(n[e]=r)}else o!==t[e]&&(n[e]=t[e])}for(const r of Object.keys(t))r in e||(n[r]=t[r]);return n},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Ht(()=>!c(a,n),[a,n]);zt(()=>{const o=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(o)&&(r(o),s(o))},[e,n]);const u=Bt((e,t)=>Hr("formData"===e?n:o,t.toString()),[n,o]);return{formData:n,formErrors:o,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,n)=>{if(e){const n=e.toString(),o=n.split(".");1===o.length?r(n=>({...n,[e]:t})):r(e=>{const n=Br(e);let r=n;for(let e=0;e<o.length-1;e++){const t=o[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[o[o.length-1]]=t,n}),i(e=>{const t=n,r=o[o.length-1],i=void 0!==e[t],a=r!==t&&void 0!==e[r];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[r],s})}else n&&r({...n})},handleErrorChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?i(n=>({...n,[e]:t})):i(e=>{const r=Br(e);let o=r;for(let e=0;e<n.length-1;e++){const t=n[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[n[n.length-1]]=t,r})}else n&&i({...n})},resetFormData:e=>{const n=e||t();r(n),s(n),i({})},getNestedValue:u}},td={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},nd=()=>{const{addNotification:e}=Gc(),{formData:t,formErrors:n,handleFormChange:r,handleErrorChange:o,resetFormData:i}=ed(td);return{formData:t,formErrors:n,handleFormChange:r,resetFormData:i,validateForm:n=>{const r={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":wi(t)&&(r[e]=xr.FIELD_IS_REQUIRED)}}),t.type===rn.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){r.fields=xr.FIELD_IS_REQUIRED;break}}return i=!Object.values(r).length,!i&&n?.withAlert&&e({type:Tn.Warning,title:n.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),o(void 0,void 0,r),i},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:o,disabled:i,fields:a})=>{const s={...Br(td),type:e,signals:t,name:n,notes:o,disabled:i};Object.entries(a).forEach(([e,t])=>{if(t)switch(e){case an.LabelsAttributes:case an.AnnotationsAttributes:s.fields||(s.fields={}),s.fields[e]=(n=t)&&Array.isArray(n)?n.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):n;break;case an.CollectContainerAttributes:case an.CollectReplicaSetAttributes:case an.CollectWorkloadId:case an.CollectClusterId:case an.ClusterAttributes:case an.OverwriteExistingValues:case an.AttributeNamesToDelete:case an.Renames:case an.PiiCategories:case an.ExtractAttribute:case an.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=t}var n}),r(void 0,void 0,s)}}},rd=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},od=()=>{const e=jt(null),[t,n]=Ft(0),[r,o]=Ft(0);return zt(()=>{const t=()=>{if(e.current){const{width:t,height:r}=e.current.getBoundingClientRect();n(t),o(r)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:r}};var id;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(id||(id={}));const ad=r.div`
196
196
  width: ${({$size:e})=>1.5*e}px;
197
197
  height: ${({$size:e})=>1.5*e}px;
198
198
  display: flex;
@@ -203,7 +203,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
203
203
  &:hover {
204
204
  background: ${({theme:e})=>e.v2.colors.silver[900]};
205
205
  }
206
- `,td=({"data-id":e,icon:n,size:r=Zc.S,onClick:o,disabled:i})=>t(ed,{"data-id":e,$size:r,$disabled:i,onClick:e=>{o&&!i&&(e.stopPropagation(),o(e))},children:t(n,{size:r})}),nd=({onDone:e}={})=>{const[n,r]=Ft(!1),[o,i]=Ft(-1),a=Bt(async(t,o)=>{if(!n){if(r(!0),void 0!==o&&i(o),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(t)}catch(e){}else{const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{r(!1),i(-1)},1e3)}},[n,e]);return{CopyButton:Bt(({value:e,size:r})=>t(td,{icon:n?vt:Et,size:r,onClick:()=>a(e)}),[n]),isCopied:n,copiedIndex:o,clickCopy:a}},rd=e=>{const{addNotification:t}=Fc(),{formData:n,handleFormChange:r,formErrors:o,handleErrorChange:i,resetFormData:a}=Kc(e);return{formData:n,formErrors:o,handleFormChange:r,resetFormData:a,validateForm:e=>{const r={};let o=!0;return n.name?Ti(n.name)?r.name=void 0:(o=!1,r.name=xr.ILLEGAL_K8S_LABEL):(o=!1,r.name=xr.FIELD_IS_REQUIRED),!o&&e?.withAlert&&t({type:Tn.Warning,title:e.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,r),o},loadFormWithDrawerItem:({name:t})=>{const n={...Br(e),name:t};r(void 0,void 0,n)}}},od={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},id=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:r}=Fc(),{formData:o,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Kc(od),[c,d]=Ft([]),[u,p]=Ft([]);return zt(()=>{var e;p(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:r,displayName:o,initialValue:i,renderCondition:a}=e;if(n===xn.Dropdown){const e=Rr(r,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,label:e})):Object.entries(e.values).map(([e,t])=>({id:e,label:t}));return{name:t,componentType:n,title:o,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:n,title:o,value:i,renderCondition:a,...Rr(r,{})}})).map(e=>{if(n){const t="string"==typeof n?Rr(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,n]),zt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),zt(()=>{if(t&&0===ki(o.exportedSignals).length){const{logs:e,metrics:n,traces:r}=t;a("exportedSignals",{logs:e.supported,metrics:n.supported,traces:r.supported})}},[t,o.exportedSignals]),{formData:o,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let n=!0;return u.forEach(({name:e,value:r,required:o})=>{o&&!r&&(n=!1,t[e]=xr.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&r({type:Tn.Warning,title:e.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:r,fields:o})=>{const i={...Br(od),type:e,name:t,disabled:n,exportedSignals:r,fields:Object.entries(Rr(o,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},ad={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Bn.HttpRequest]:null,[Bn.HttpResponse]:null,[Bn.DbQuery]:null,[Bn.Messaging]:null},codeAttributes:{[Un.Column]:null,[Un.FilePath]:null,[Un.Function]:null,[Un.LineNumber]:null,[Un.Namespace]:null,[Un.StackTrace]:null},headersCollection:null,customInstrumentations:{[zn.Java]:null,[zn.Golang]:null,[zn.Php]:null},networkMetrics:null},sd=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:r,resetFormData:o}=Kc(ad);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:o,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:r,sourceScopes:o,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:c})=>{const d={...Br(ad),ruleName:e,notes:t,disabled:r,sourceScopes:o??null,networkMetrics:c??null};i&&(d.payloadCollection={[Bn.HttpRequest]:i[Bn.HttpRequest]?{}:null,[Bn.HttpResponse]:i[Bn.HttpResponse]?{}:null,[Bn.DbQuery]:i[Bn.DbQuery]?{}:null,[Bn.Messaging]:i[Bn.Messaging]?{}:null}),a&&(d.codeAttributes={[Un.Column]:a[Un.Column]||null,[Un.FilePath]:a[Un.FilePath]||null,[Un.Function]:a[Un.Function]||null,[Un.LineNumber]:a[Un.LineNumber]||null,[Un.Namespace]:a[Un.Namespace]||null,[Un.StackTrace]:a[Un.StackTrace]||null}),s&&(d.headersCollection=s),l&&(d.customInstrumentations={[zn.Java]:l[zn.Java]||null,[zn.Golang]:l[zn.Golang]||null,[zn.Php]:l[zn.Php]||null}),n(void 0,void 0,d)}}},ld=({active:e,key:t,withAltKey:n,withCtrlKey:r,withShiftKey:o,withMetaKey:i},a)=>(zt(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!r||r&&s.ctrlKey)&&(!o||o&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,n,r,o,i,a]),null),cd="data-ignore-outside-click",dd=(e,t)=>{const n=jt(t);n.current=t,zt(()=>{const t=t=>{const r=t.target;e.current&&!e.current.contains(r)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(cd))return!0;t=t.parentNode}return!1})(r)||n.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},ud=(e,{axis:t="horizontal",deps:n=[]}={})=>{const[r,o]=Ft(!1),i=e=>{const n="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;o(n)};return Wt(()=>{const t=e.current;if(!t)return;i(t);const n=new ResizeObserver(()=>i(t));return n.observe(t),()=>n.disconnect()},[t,...n]),zt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const n=e.current;!t&&n&&i(n)}),()=>{t=!0}},[t,...n]),r},pd=(e,{behavior:t="smooth",block:n="center",inline:r,delayMs:o=50}={})=>{const i=jt(null);return zt(()=>{if(!e)return;const a=window.setTimeout(()=>{i.current?.scrollIntoView({behavior:t,block:n,inline:r})},o);return()=>window.clearTimeout(a)},[e,t,n,r,o]),i},hd=({sectionNames:e,threshold:t=.4})=>{const[n,r]=Ft(e[0]||""),[o,i]=Ft(null),a=jt({}),s=jt(!1),l=jt(!1),c=Bt((e,t)=>{a.current[e]=t},[]),d=Bt(e=>{i(e)},[]),u=Bt(e=>{l.current=!0,r(e)},[]);return zt(()=>{if(!l.current)return;l.current=!1;const e=a.current[n];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[n]),zt(()=>{const n=a.current,i=e.map(e=>n[e]).filter(Boolean);if(!i.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&r(e);break}},{threshold:t,root:o});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,o]),{selectedSection:n,setSelectedSection:u,setSectionRef:c,setScrollContainerRef:d}},gd=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n,positionMode:r="local"}={})=>{const o=jt(null),[i,a]=Ft(!1),[s,l]=Ft({top:0,left:0}),[c,d]=Ft({edge:"top",align:"left"});return dd(o,()=>{i&&(a(!1),n?.())}),{popupRef:o,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(n,i)=>{if("local"===r)return void l({top:i,left:n});const{innerWidth:a,innerHeight:s}=window,c=o.current?.clientWidth||t,u=o.current?.clientHeight||e,p=n/a,h=p<1/3?"left":p>2/3?"right":"center";d({edge:i<s/2?"top":"bottom",align:h});let g=i,m=n;if(g>=s/2&&(g+=-u),"center"===h){m=n-c/2;const e=8;m=Math.max(e,Math.min(m,a-c-e))}else m>=a/2&&(m=n-c);l({top:g,left:m})}}},md=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?Rr(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),fd={otelServiceName:"",currentStreamName:""},yd=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:r,resetFormData:o}=Kc(fd);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:o,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const r={...Br(fd),otelServiceName:e||t.name||""};n(void 0,void 0,r)}}};try{Xt.addDefaultLocale(Vt)}catch(e){}const bd=new Xt(Vt.locale),vd=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:864e5,long:["day","days"],short:"d"},{ms:36e5,long:["hour","hours"],short:"h"},{ms:6e4,long:["minute","minutes"],short:"m"},{ms:1e3,long:["second","seconds"],short:"s"}],Ed=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Sd=()=>{const[e,t]=Ft(0);return zt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Bt(e=>{try{return bd.format(Ed(e))}catch(e){return"-"}},[e]),formatDurationAgo:Bt((e,{units:t=2,style:n="long",suffix:r=!0}={})=>{try{const o=Ed(e);let i=Math.max(0,Date.now()-o.getTime());if(i<1e3)return"short"===n?"0s":r?"just now":"0 seconds";const a=[];for(const e of vd){if(a.length===t)break;const r=Math.floor(i/e.ms);if(!(r<=0&&0===a.length)){if(r<=0)break;i-=r*e.ms,a.push("short"===n?`${r}${e.short}`:`${r} ${1===r?e.long[0]:e.long[1]}`)}}const s="short"===n?a.join(""):a.join(" ");return r&&"long"===n?`${s} ago`:s}catch(e){return"-"}},[e])}},$d=r.div`
206
+ `,sd=({"data-id":e,icon:n,size:r=id.S,onClick:o,disabled:i})=>t(ad,{"data-id":e,$size:r,$disabled:i,onClick:e=>{o&&!i&&(e.stopPropagation(),o(e))},children:t(n,{size:r})}),ld=({onDone:e}={})=>{const[n,r]=Ft(!1),[o,i]=Ft(-1),a=Bt(async(t,o)=>{if(!n){if(r(!0),void 0!==o&&i(o),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(t)}catch(e){}else{const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(e)}e?.(),setTimeout(()=>{r(!1),i(-1)},1e3)}},[n,e]);return{CopyButton:Bt(({value:e,size:r})=>t(sd,{icon:n?vt:Et,size:r,onClick:()=>a(e)}),[n]),isCopied:n,copiedIndex:o,clickCopy:a}},cd=e=>{const{addNotification:t}=Gc(),{formData:n,handleFormChange:r,formErrors:o,handleErrorChange:i,resetFormData:a}=ed(e);return{formData:n,formErrors:o,handleFormChange:r,resetFormData:a,validateForm:e=>{const r={};let o=!0;return n.name?Ti(n.name)?r.name=void 0:(o=!1,r.name=xr.ILLEGAL_K8S_LABEL):(o=!1,r.name=xr.FIELD_IS_REQUIRED),!o&&e?.withAlert&&t({type:Tn.Warning,title:e.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,r),o},loadFormWithDrawerItem:({name:t})=>{const n={...Br(e),name:t};r(void 0,void 0,n)}}},dd={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},ud=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:r}=Gc(),{formData:o,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=ed(dd),[c,d]=Ft([]),[u,p]=Ft([]);return zt(()=>{var e;p(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:r,displayName:o,initialValue:i,renderCondition:a}=e;if(n===xn.Dropdown){const e=Rr(r,{}),s=Array.isArray(e.values)?e.values.map(e=>({id:e,label:e})):Object.entries(e.values).map(([e,t])=>({id:e,label:t}));return{name:t,componentType:n,title:o,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:n,title:o,value:i,renderCondition:a,...Rr(r,{})}})).map(e=>{if(n){const t="string"==typeof n?Rr(n,{}):n;if(e.name in t)return{...e,value:t[e.name]}}return e}):[])},[c,n]),zt(()=>{if(u){const e=u.map(e=>({key:e.name,value:e.value}));a("fields",e)}},[u]),zt(()=>{if(t&&0===ki(o.exportedSignals).length){const{logs:e,metrics:n,traces:r}=t;a("exportedSignals",{logs:e.supported,metrics:n.supported,traces:r.supported})}},[t,o.exportedSignals]),{formData:o,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let n=!0;return u.forEach(({name:e,value:r,required:o})=>{o&&!r&&(n=!1,t[e]=xr.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&r({type:Tn.Warning,title:e.alertTitle,message:xr.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:r,fields:o})=>{const i={...Br(dd),type:e,name:t,disabled:n,exportedSignals:r,fields:Object.entries(Rr(o,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},pd={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Bn.HttpRequest]:null,[Bn.HttpResponse]:null,[Bn.DbQuery]:null,[Bn.Messaging]:null},codeAttributes:{[Un.Column]:null,[Un.FilePath]:null,[Un.Function]:null,[Un.LineNumber]:null,[Un.Namespace]:null,[Un.StackTrace]:null},headersCollection:null,customInstrumentations:{[zn.Java]:null,[zn.Golang]:null,[zn.Php]:null},networkMetrics:null},hd=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:r,resetFormData:o}=ed(pd);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:o,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:r,sourceScopes:o,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l,networkMetrics:c})=>{const d={...Br(pd),ruleName:e,notes:t,disabled:r,sourceScopes:o??null,networkMetrics:c??null};i&&(d.payloadCollection={[Bn.HttpRequest]:i[Bn.HttpRequest]?{}:null,[Bn.HttpResponse]:i[Bn.HttpResponse]?{}:null,[Bn.DbQuery]:i[Bn.DbQuery]?{}:null,[Bn.Messaging]:i[Bn.Messaging]?{}:null}),a&&(d.codeAttributes={[Un.Column]:a[Un.Column]||null,[Un.FilePath]:a[Un.FilePath]||null,[Un.Function]:a[Un.Function]||null,[Un.LineNumber]:a[Un.LineNumber]||null,[Un.Namespace]:a[Un.Namespace]||null,[Un.StackTrace]:a[Un.StackTrace]||null}),s&&(d.headersCollection=s),l&&(d.customInstrumentations={[zn.Java]:l[zn.Java]||null,[zn.Golang]:l[zn.Golang]||null,[zn.Php]:l[zn.Php]||null}),n(void 0,void 0,d)}}},gd=({active:e,key:t,withAltKey:n,withCtrlKey:r,withShiftKey:o,withMetaKey:i},a)=>(zt(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!r||r&&s.ctrlKey)&&(!o||o&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,n,r,o,i,a]),null),md="data-ignore-outside-click",fd=(e,t)=>{const n=jt(t);n.current=t,zt(()=>{const t=t=>{const r=t.target;e.current&&!e.current.contains(r)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(md))return!0;t=t.parentNode}return!1})(r)||n.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},yd=(e,{axis:t="horizontal",deps:n=[]}={})=>{const[r,o]=Ft(!1),i=e=>{const n="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;o(n)};return Wt(()=>{const t=e.current;if(!t)return;i(t);const n=new ResizeObserver(()=>i(t));return n.observe(t),()=>n.disconnect()},[t,...n]),zt(()=>{if("undefined"==typeof document||!document.fonts?.ready)return;let t=!1;return document.fonts.ready.then(()=>{const n=e.current;!t&&n&&i(n)}),()=>{t=!0}},[t,...n]),r},bd=(e,{behavior:t="smooth",block:n="center",inline:r,delayMs:o=50}={})=>{const i=jt(null);return zt(()=>{if(!e)return;const a=window.setTimeout(()=>{i.current?.scrollIntoView({behavior:t,block:n,inline:r})},o);return()=>window.clearTimeout(a)},[e,t,n,r,o]),i},vd=({sectionNames:e,threshold:t=.4})=>{const[n,r]=Ft(e[0]||""),[o,i]=Ft(null),a=jt({}),s=jt(!1),l=jt(!1),c=Bt((e,t)=>{a.current[e]=t},[]),d=Bt(e=>{i(e)},[]),u=Bt(e=>{l.current=!0,r(e)},[]);return zt(()=>{if(!l.current)return;l.current=!1;const e=a.current[n];if(!e)return;s.current=!0,e.scrollIntoView({behavior:"smooth",block:"start"});const t=setTimeout(()=>{s.current=!1},600);return()=>clearTimeout(t)},[n]),zt(()=>{const n=a.current,i=e.map(e=>n[e]).filter(Boolean);if(!i.length)return;const l=new IntersectionObserver(e=>{if(!s.current)for(const t of e)if(t.isIntersecting){const e=t.target.getAttribute("data-section-name");e&&r(e);break}},{threshold:t,root:o});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,o]),{selectedSection:n,setSelectedSection:u,setSectionRef:c,setScrollContainerRef:d}},Ed=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n,positionMode:r="local"}={})=>{const o=jt(null),[i,a]=Ft(!1),[s,l]=Ft({top:0,left:0}),[c,d]=Ft({edge:"top",align:"left"});return fd(o,()=>{i&&(a(!1),n?.())}),{popupRef:o,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(n,i)=>{if("local"===r)return void l({top:i,left:n});const{innerWidth:a,innerHeight:s}=window,c=o.current?.clientWidth||t,u=o.current?.clientHeight||e,p=n/a,h=p<1/3?"left":p>2/3?"right":"center";d({edge:i<s/2?"top":"bottom",align:h});let g=i,m=n;if(g>=s/2&&(g+=-u),"center"===h){m=n-c/2;const e=8;m=Math.max(e,Math.min(m,a-c-e))}else m>=a/2&&(m=n-c);l({top:g,left:m})}}},Sd=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?Rr(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),$d={otelServiceName:"",currentStreamName:""},Cd=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:r,resetFormData:o}=ed($d);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:o,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const r={...Br($d),otelServiceName:e||t.name||""};n(void 0,void 0,r)}}};try{Xt.addDefaultLocale(Vt)}catch(e){}const xd=new Xt(Vt.locale),wd=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:864e5,long:["day","days"],short:"d"},{ms:36e5,long:["hour","hours"],short:"h"},{ms:6e4,long:["minute","minutes"],short:"m"},{ms:1e3,long:["second","seconds"],short:"s"}],Td=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),Od=()=>{const[e,t]=Ft(0);return zt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Bt(e=>{try{return xd.format(Td(e))}catch(e){return"-"}},[e]),formatDurationAgo:Bt((e,{units:t=2,style:n="long",suffix:r=!0}={})=>{try{const o=Td(e);let i=Math.max(0,Date.now()-o.getTime());if(i<1e3)return"short"===n?"0s":r?"just now":"0 seconds";const a=[];for(const e of wd){if(a.length===t)break;const r=Math.floor(i/e.ms);if(!(r<=0&&0===a.length)){if(r<=0)break;i-=r*e.ms,a.push("short"===n?`${r}${e.short}`:`${r} ${1===r?e.long[0]:e.long[1]}`)}}const s="short"===n?a.join(""):a.join(" ");return r&&"long"===n?`${s} ago`:s}catch(e){return"-"}},[e])}},Nd=r.div`
207
207
  width: ${({$fullWidth:e,$inline:t})=>e?"100%":t?void 0:"fit-content"};
208
208
  position: relative;
209
209
  display: ${({$inline:e})=>e?"inline":"flex"};
@@ -215,7 +215,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
215
215
  text-overflow: ellipsis;
216
216
  white-space: nowrap;
217
217
  `}
218
- `,Cd=r.div`
218
+ `,Ad=r.div`
219
219
  position: fixed;
220
220
  top: ${({$top:e})=>e}px;
221
221
  left: ${({$left:e})=>e}px;
@@ -227,21 +227,21 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
227
227
  min-width: 0;
228
228
 
229
229
  ${({$withPointerEvents:e})=>!e&&"pointer-events: none;"}
230
- `,xd=r.div`
230
+ `,Id=r.div`
231
231
  background-color: ${({theme:e})=>e.v2.colors.black[500]};
232
232
  border-radius: 4px;
233
233
  padding: 8px;
234
234
  max-width: ${({$maxWidth:e})=>void 0!==e?e:"270px"};
235
235
  box-sizing: border-box;
236
236
  min-width: 0;
237
- `,wd=r.div`
237
+ `,_d=r.div`
238
238
  display: flex;
239
239
  flex-direction: column;
240
240
  align-items: flex-start;
241
241
  gap: 8px;
242
242
  width: 100%;
243
243
  min-width: 0;
244
- `,Td=r.div`
244
+ `,Rd=r.div`
245
245
  display: flex;
246
246
  width: 100%;
247
247
  flex-shrink: 0;
@@ -251,7 +251,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
251
251
  ${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
252
252
  ${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
253
253
  ${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
254
- `,Od=r.div`
254
+ `,Dd=r.div`
255
255
  width: 0;
256
256
  height: 0;
257
257
  border-style: solid;
@@ -260,7 +260,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
260
260
  flex-shrink: 0;
261
261
 
262
262
  ${({$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 `}
263
- `,Nd=({withIcon:r,titleIcon:o,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,inline:u=!1,maxWidth:p="270px",keepAlive:h=!1,ellipsis:g=!1})=>{const m=i(),f=Ht(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),y=f.join(" "),{popupRef:b,popupOpen:v,setPopupOpen:E,popupPosition:S,arrowPlacement:$,handlePosition:C}=gd({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*y.length,300)}),x=Ht(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,n,r]=e.split('"');return{original:e,href:n,label:r.replace("</a>","").replace(">","")}})})(e)?.length),[f]),w=e=>{const{type:t,clientX:n,clientY:r}=e;x?C(S.left||n,S.top||r):C(n,r),E("mouseleave"!==t)};if(!f.length&&!h)return t(n,{children:c});const T=v&&f.length>0;return e($d,{$fullWidth:d,$ellipsis:g,$inline:u,onMouseEnter:w,onMouseMove:w,onMouseLeave:w,children:[c,r&&t(et,{fill:m.v2.colors.white[500]}),T&&Kt.createPortal(e(Cd,{ref:b,$top:S.top,$left:S.left,$withPointerEvents:x,onMouseEnter:x?w:void 0,children:["top"===$.edge&&t(Td,{$align:$.align,children:t(Od,{$pointsUp:!0})}),t(xd,{$maxWidth:p,children:e(wd,{children:[(!!o||!!a)&&e(Zo,{$gap:4,style:{alignItems:"center"},children:[o&&t(o,{size:16},"icon"),a&&t(br,{size:hr.XS,children:a},"title")]}),f.map((e,n)=>t(br,{size:hr.XXXS,children:e},n)),!!l&&t(br,{size:hr.XXXS,color:gr.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===$.edge&&t(Td,{$align:$.align,children:t(Od,{$pointsUp:!1})})]}),document.body)]})},Ad=r.div`
263
+ `,kd=({withIcon:r,titleIcon:o,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,inline:u=!1,maxWidth:p="270px",keepAlive:h=!1,ellipsis:g=!1})=>{const m=i(),f=Ht(()=>(e=>void 0===e?[]:Array.isArray(e)?e.filter(Boolean):e?[e]:[])(s),[s]),y=f.join(" "),{popupRef:b,popupOpen:v,setPopupOpen:E,popupPosition:S,arrowPlacement:$,handlePosition:C}=Ed({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*y.length,300)}),x=Ht(()=>f.some(e=>!!(e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,n,r]=e.split('"');return{original:e,href:n,label:r.replace("</a>","").replace(">","")}})})(e)?.length),[f]),w=e=>{const{type:t,clientX:n,clientY:r}=e;x?C(S.left||n,S.top||r):C(n,r),E("mouseleave"!==t)};if(!f.length&&!h)return t(n,{children:c});const T=v&&f.length>0;return e(Nd,{$fullWidth:d,$ellipsis:g,$inline:u,onMouseEnter:w,onMouseMove:w,onMouseLeave:w,children:[c,r&&t(et,{fill:m.v2.colors.white[500]}),T&&Kt.createPortal(e(Ad,{ref:b,$top:S.top,$left:S.left,$withPointerEvents:x,onMouseEnter:x?w:void 0,children:["top"===$.edge&&t(Rd,{$align:$.align,children:t(Dd,{$pointsUp:!0})}),t(Id,{$maxWidth:p,children:e(_d,{children:[(!!o||!!a)&&e(Zo,{$gap:4,style:{alignItems:"center"},children:[o&&t(o,{size:16},"icon"),a&&t(br,{size:hr.XS,children:a},"title")]}),f.map((e,n)=>t(br,{size:hr.XXXS,children:e},n)),!!l&&t(br,{size:hr.XXXS,color:gr.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===$.edge&&t(Rd,{$align:$.align,children:t(Dd,{$pointsUp:!1})})]}),document.body)]})},Ld=r.div`
264
264
  display: flex;
265
265
  align-items: center;
266
266
  justify-content: center;
@@ -270,7 +270,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
270
270
  padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
271
271
  border-radius: 100px;
272
272
  background-color: ${({$backgroundColor:e})=>e};
273
- `,Id=({label:n,leftIcon:r,rightIcon:o,tooltip:a,status:s=Tn.Unknown,useSecondaryTone:l=!1,invertColors:c=!1,textSize:d,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=i(),f=n?.toString(),y=Tn.Loading===s,b=s?[Tn.Disabled,Tn.Loading].includes(s)?Io(m,s,c?"400":"700"):[Tn.Unknown].includes(s)?Io(m,s,"600"):Io(m,s,c?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(c&&![Tn.Unknown].includes(s)?b:[Tn.Disabled,Tn.Loading].includes(s)?m.v2.colors.grey[400]:[Tn.Error,Tn.Warning,Tn.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),E=p||(c&&![Tn.Unknown].includes(s)?[Tn.Disabled,Tn.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:b);return t(Nd,{text:a,fullWidth:g,children:e(Ad,{$backgroundColor:E,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!y||f&&r?r?t(r,{fill:v,size:d?m.v2.text.size[d]+2:14}):null:t(ui,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?y?t(ui,{withGradient:!0,title:f,titleSize:d||hr.XXS}):t(br,{color:v,size:d||hr.XXS,nowrap:!0,children:f}):null,o&&t(o,{fill:v,size:d?m.v2.text.size[d]+2:14})]})})};var _d,Rd;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(_d||(_d={})),(e=>{e.S="small",e.M="medium",e.L="large"})(Rd||(Rd={}));const Dd=r.button`
273
+ `,Pd=({label:n,leftIcon:r,rightIcon:o,tooltip:a,status:s=Tn.Unknown,useSecondaryTone:l=!1,invertColors:c=!1,textSize:d,textColor:u,backgroundColor:p,minWidth:h="unset",fullWidth:g=!1})=>{const m=i(),f=n?.toString(),y=Tn.Loading===s,b=s?[Tn.Disabled,Tn.Loading].includes(s)?Io(m,s,c?"400":"700"):[Tn.Unknown].includes(s)?Io(m,s,"600"):Io(m,s,c?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],v=u||(c&&![Tn.Unknown].includes(s)?b:[Tn.Disabled,Tn.Loading].includes(s)?m.v2.colors.grey[400]:[Tn.Error,Tn.Warning,Tn.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),E=p||(c&&![Tn.Unknown].includes(s)?[Tn.Disabled,Tn.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:b);return t(kd,{text:a,fullWidth:g,children:e(Ld,{$backgroundColor:E,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!y||f&&r?r?t(r,{fill:v,size:d?m.v2.text.size[d]+2:14}):null:t(ui,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?y?t(ui,{withGradient:!0,title:f,titleSize:d||hr.XXS}):t(br,{color:v,size:d||hr.XXS,nowrap:!0,children:f}):null,o&&t(o,{fill:v,size:d?m.v2.text.size[d]+2:14})]})})};var Md,Ud;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(Md||(Md={})),(e=>{e.S="small",e.M="medium",e.L="large"})(Ud||(Ud={}));const Fd=r.button`
274
274
  display: flex;
275
275
  align-items: center;
276
276
  justify-content: center;
@@ -280,14 +280,14 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
280
280
  `}
281
281
  border: none;
282
282
  border-radius: 6px;
283
- ${({$size:e,$hasLabel:t})=>e===Rd.S?o`
283
+ ${({$size:e,$hasLabel:t})=>e===Ud.S?o`
284
284
  height: 32px;
285
285
  ${t?o`
286
286
  padding: 8px 16px;
287
287
  `:o`
288
288
  width: 32px;
289
289
  `}
290
- `:e===Rd.M?o`
290
+ `:e===Ud.M?o`
291
291
  height: 38px;
292
292
  ${t?o`
293
293
  padding: 8px 18px;
@@ -312,7 +312,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
312
312
  ${({$withShadow:e})=>e?o`
313
313
  box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
314
314
  `:""}
315
- ${({$variant:e})=>e===_d.Primary?o`
315
+ ${({$variant:e})=>e===Md.Primary?o`
316
316
  background-color: ${({theme:e})=>e.v2.colors.purple[500]};
317
317
  &:hover {
318
318
  background-color: ${({theme:e})=>e.v2.colors.purple[600]};
@@ -320,7 +320,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
320
320
  &:active {
321
321
  background-color: ${({theme:e})=>e.v2.colors.purple[700]};
322
322
  }
323
- `:e===_d.Secondary?o`
323
+ `:e===Md.Secondary?o`
324
324
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
325
325
  &:hover {
326
326
  background-color: ${({theme:e})=>e.v2.colors.silver[600]};
@@ -328,7 +328,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
328
328
  &:active {
329
329
  background-color: ${({theme:e})=>e.v2.colors.silver[500]};
330
330
  }
331
- `:e===_d.Text?o`
331
+ `:e===Md.Text?o`
332
332
  background-color: transparent;
333
333
  &:hover {
334
334
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
@@ -338,7 +338,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
338
338
  }
339
339
  `:""}
340
340
  }
341
- `,kd=Mt(({"data-id":r,label:o,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=_d.Primary,size:u=Rd.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:y,onClick:b,...v},E)=>{const S=i(),$=p||(u===Rd.L?18:16),C=u===Rd.L?hr.S:hr.XS,x=f||(y?S.v2.colors.grey[400]:S.v2.colors.white[500]),[w,T]=Ft(!1),O=!(!h&&!w),N=!(!y&&!O),A=Bt(async e=>{e.stopPropagation(),T(!0);try{await(b?.(e))}finally{T(!1)}},[b]);return t(Dd,{ref:E,"data-id":r,$variant:d,$size:u,$fullWidth:g,$withShadow:m,$hasLabel:!!o,...v,disabled:N,onClick:N?void 0:A,children:t(Nd,{text:a,withIcon:!s,children:O?t(ui,o?{withGradient:!0,titleColor:x,titleSize:C}:{withSpinnerOld:!0}):e(n,{children:[l&&t(ti,{$width:"fit-content",children:t(l,{size:$,fill:x})}),o?t(br,{size:C,weight:500,color:x,nowrap:!0,children:o}):null,c&&t(ti,{$width:"fit-content",children:t(c,{size:$,fill:x})})]})})})});kd.displayName=kd.name;const Ld={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:"#D15965",700:"#962531",800:"#7B242D",900:"#4C1318",1e3:"#20060A"},blue:{100:"#BED4FF",200:"#87B1F8",300:"#6094F1",400:"#457DE3",500:"#396CCD",600:"#3368CA",700:"#154297",800:"#163C81",900:"#0F2A5A",1e3:"#0A1B38"},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,sidebar:500,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"}},Pd={v2:Ld.v2,darkMode:!0,colors:{...Ld.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:Ld.font_family},Md={v2:Ld.v2,darkMode:!1,colors:{...Ld.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:Ld.font_family},Ud=e=>e?Pd:Md,Fd=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Ld,darkModeTheme:Pd,getTheme:Ud,lightModeTheme:Md},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}})('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");*,:after,:before{box-sizing:border-box}*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const zd=({children:e})=>{const{darkMode:n}=Ic();return t(s,{theme:Ud(n),children:e})},Bd={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"},Hd=Object.freeze(Object.defineProperty({__proto__:null,hex:Bd},Symbol.toStringTag,{value:"Module"})),jd={in:{left:a`
341
+ `,zd=Mt(({"data-id":r,label:o,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=Md.Primary,size:u=Ud.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:y,onClick:b,...v},E)=>{const S=i(),$=p||(u===Ud.L?18:16),C=u===Ud.L?hr.S:hr.XS,x=f||(y?S.v2.colors.grey[400]:S.v2.colors.white[500]),[w,T]=Ft(!1),O=!(!h&&!w),N=!(!y&&!O),A=Bt(async e=>{e.stopPropagation(),T(!0);try{await(b?.(e))}finally{T(!1)}},[b]);return t(Fd,{ref:E,"data-id":r,$variant:d,$size:u,$fullWidth:g,$withShadow:m,$hasLabel:!!o,...v,disabled:N,onClick:N?void 0:A,children:t(kd,{text:a,withIcon:!s,children:O?t(ui,o?{withGradient:!0,titleColor:x,titleSize:C}:{withSpinnerOld:!0}):e(n,{children:[l&&t(ti,{$width:"fit-content",children:t(l,{size:$,fill:x})}),o?t(br,{size:C,weight:500,color:x,nowrap:!0,children:o}):null,c&&t(ti,{$width:"fit-content",children:t(c,{size:$,fill:x})})]})})})});zd.displayName=zd.name;const Bd={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:"#D15965",700:"#962531",800:"#7B242D",900:"#4C1318",1e3:"#20060A"},blue:{100:"#BED4FF",200:"#87B1F8",300:"#6094F1",400:"#457DE3",500:"#396CCD",600:"#3368CA",700:"#154297",800:"#163C81",900:"#0F2A5A",1e3:"#0A1B38"},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,sidebar:500,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"}},Hd={v2:Bd.v2,darkMode:!0,colors:{...Bd.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:Bd.font_family},jd={v2:Bd.v2,darkMode:!1,colors:{...Bd.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:Bd.font_family},Wd=e=>e?Hd:jd,Gd=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Bd,darkModeTheme:Hd,getTheme:Wd,lightModeTheme:jd},Symbol.toStringTag,{value:"Module"}));((e,t)=>{void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}})('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap");@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");*,:after,:before{box-sizing:border-box}*{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{display:none}*{animation-duration:.3s;animation-fill-mode:forwards;transition:all .3s}input{all:unset}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{-webkit-transition:all 50000s ease-in-out 0s;transition:all 50000s ease-in-out 0s}');const Xd=({children:e})=>{const{darkMode:n}=Pc();return t(s,{theme:Wd(n),children:e})},Vd={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"},Kd=Object.freeze(Object.defineProperty({__proto__:null,hex:Vd},Symbol.toStringTag,{value:"Module"})),Yd={in:{left:a`
342
342
  from { transform: translateX(-100%); }
343
343
  to { transform: translateX(0); }
344
344
  `,right:a`
@@ -368,7 +368,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
368
368
  `,center:a`
369
369
  from { transform: translate(-50%, -50%); }
370
370
  to { transform: translate(-50%, 100%); }
371
- `}},Wd={in:a`
371
+ `}},Jd={in:a`
372
372
  from {
373
373
  width: 0%;
374
374
  }
@@ -382,7 +382,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
382
382
  to {
383
383
  width: 0%;
384
384
  }
385
- `},Gd=a`
385
+ `},qd=a`
386
386
  0% {
387
387
  transform: scale(1);
388
388
  opacity: 1;
@@ -391,14 +391,14 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
391
391
  transform: scale(2);
392
392
  opacity: 0;
393
393
  }
394
- `,Xd=a`
394
+ `,Qd=a`
395
395
  0% {
396
396
  background-position: -500px 0;
397
397
  }
398
398
  100% {
399
399
  background-position: 500px 0;
400
400
  }
401
- `,Vd={in:a`
401
+ `,Zd={in:a`
402
402
  from {
403
403
  opacity: 0;
404
404
  }
@@ -412,7 +412,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
412
412
  to {
413
413
  opacity: 0;
414
414
  }
415
- `},Kd=Object.freeze(Object.defineProperty({__proto__:null,fade:Vd,ping:Gd,progress:Wd,shimmer:Xd,slide:jd},Symbol.toStringTag,{value:"Module"}));var Yd,Jd;(e=>{e.S="s",e.L="l"})(Yd||(Yd={})),(e=>{e.Filled="filled",e.Underline="underline"})(Jd||(Jd={}));const qd=r.div`
415
+ `},eu=Object.freeze(Object.defineProperty({__proto__:null,fade:Zd,ping:qd,progress:Jd,shimmer:Qd,slide:Yd},Symbol.toStringTag,{value:"Module"}));var tu,nu;(e=>{e.S="s",e.L="l"})(tu||(tu={})),(e=>{e.Filled="filled",e.Underline="underline"})(nu||(nu={}));const ru=r.div`
416
416
  display: flex;
417
417
  align-items: center;
418
418
  gap: 2px;
@@ -421,20 +421,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
421
421
  border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
422
422
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
423
423
  width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
424
- `,Qd=r.button`
424
+ `,ou=r.button`
425
425
  flex: 1;
426
426
  display: flex;
427
427
  align-items: center;
428
428
  justify-content: center;
429
429
  gap: 8px;
430
- padding: ${({$size:e})=>e===Yd.S?"4px 8px":"8px 16px"};
430
+ padding: ${({$size:e})=>e===tu.S?"4px 8px":"8px 16px"};
431
431
  border-radius: 6px;
432
432
  border: 1px solid ${({$isSelected:e,$selectedBorderColor:t})=>e&&t?t:"transparent"};
433
433
  box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
434
434
 
435
435
  ${({$disabled:e,$isSelected:t,$selectedBgColor:n,theme:r})=>e?o`
436
436
  cursor: not-allowed;
437
- background-color: ${t?(n||r.v2.colors.black[500])+Bd["040"]:"transparent"};
437
+ background-color: ${t?(n||r.v2.colors.black[500])+Vd["040"]:"transparent"};
438
438
  `:o`
439
439
  cursor: pointer;
440
440
  background-color: ${t?n||r.v2.colors.black[500]:"transparent"};
@@ -442,11 +442,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
442
442
  background-color: ${t?n||r.v2.colors.black[500]:r.v2.colors.silver[800]};
443
443
  }
444
444
  `}
445
- `,Zd=r.div`
445
+ `,iu=r.div`
446
446
  display: flex;
447
447
  align-items: stretch;
448
448
  width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
449
- `,eu=r.button`
449
+ `,au=r.button`
450
450
  display: flex;
451
451
  height: 34px;
452
452
  padding: 8px 12px 8px 16px;
@@ -465,7 +465,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
465
465
  &:hover {
466
466
  border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
467
467
  }
468
- `,tu=({"data-id":r,size:o=Yd.S,variant:a=Jd.Filled,options:s=[],selected:l,setSelected:c,disabled:d,fullWidth:u=!1})=>{const p=i(),h=a===Jd.Underline,g=h?eu:Qd;return t(h?Zd:qd,{"data-id":r,$fullWidth:u,children:s.map(({value:r,label:i,icon:a,badge:s,tooltip:u,selectedBgColor:m,selectedBorderColor:f,disabled:y},b)=>{const v=l===r,E=y||d,S=E?p.v2.colors.grey[400]:h||v?p.v2.colors.white[500]:p.v2.colors.grey[300],$=o===Yd.S?hr.XXS:hr.XS,C=v?500:400,x=e(n,{children:[a&&t(a,{fill:S}),i&&t(br,{size:$,weight:C,color:S,nowrap:!0,children:i}),s&&t(Id,{...s})]});return t(g,{onClick:()=>!E&&c(r),$disabled:E,$isSelected:v,$size:o,...!h&&{$selectedBgColor:m,$selectedBorderColor:f},children:u?t(Nd,{text:u,withIcon:!0,children:x}):x},`segment-${b}-${i}-${r}`)})})},nu=r.div`
468
+ `,su=({"data-id":r,size:o=tu.S,variant:a=nu.Filled,options:s=[],selected:l,setSelected:c,disabled:d,fullWidth:u=!1})=>{const p=i(),h=a===nu.Underline,g=h?au:ou;return t(h?iu:ru,{"data-id":r,$fullWidth:u,children:s.map(({value:r,label:i,icon:a,badge:s,tooltip:u,selectedBgColor:m,selectedBorderColor:f,disabled:y},b)=>{const v=l===r,E=y||d,S=E?p.v2.colors.grey[400]:h||v?p.v2.colors.white[500]:p.v2.colors.grey[300],$=o===tu.S?hr.XXS:hr.XS,C=v?500:400,x=e(n,{children:[a&&t(a,{fill:S}),i&&t(br,{size:$,weight:C,color:S,nowrap:!0,children:i}),s&&t(Pd,{...s})]});return t(g,{onClick:()=>!E&&c(r),$disabled:E,$isSelected:v,$size:o,...!h&&{$selectedBgColor:m,$selectedBorderColor:f},children:u?t(kd,{text:u,withIcon:!0,children:x}):x},`segment-${b}-${i}-${r}`)})})},lu=r.div`
469
469
  box-sizing: border-box !important;
470
470
  width: ${({$width:e})=>e??"fit-content"};
471
471
  padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
@@ -479,7 +479,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
479
479
  border: none;
480
480
  border-radius: 6px;
481
481
  background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:n,$emphasizeBackgroundColor:r,theme:o})=>{const i=n??o.v2.colors.silver[800],a=r??o.v2.colors.silver[700];return e||t?a:i}};
482
- `,ru=r.input`
482
+ `,cu=r.input`
483
483
  min-width: 0;
484
484
  flex: 1;
485
485
  font-family: ${({theme:e})=>e.font_family.primary};
@@ -496,7 +496,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
496
496
  overflow: hidden;
497
497
  text-overflow: ellipsis;
498
498
  white-space: nowrap;
499
- `,ou=({"data-id":n,value:r,onChange:o,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=i(),[g,m]=Ft(!1),[f,y]=Ft(!1),[b,v]=Ft(!1),E=g?h.v2.colors.white[500]:h.v2.colors.silver[200],S=!!d?.options?.length,$=Ht(()=>{if(S)return d?.options.find(e=>e.value===d.selected)?.label},[S,d?.options,d?.selected]),C=Ht(()=>l||(S&&$?`Search by ${$.toLowerCase()}`:"Search..."),[l,S,$]);return e(nu,{$width:c,$withSegment:S,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!b,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t(St,{size:18,fill:E}),t(ru,{"data-id":n??"search",name:"search",type:"text",placeholder:C,value:r,onChange:e=>{e.stopPropagation(),o(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:E}),S&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(tu,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected})})]})},iu=r.div`
499
+ `,du=({"data-id":n,value:r,onChange:o,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=i(),[g,m]=Ft(!1),[f,y]=Ft(!1),[b,v]=Ft(!1),E=g?h.v2.colors.white[500]:h.v2.colors.silver[200],S=!!d?.options?.length,$=Ht(()=>{if(S)return d?.options.find(e=>e.value===d.selected)?.label},[S,d?.options,d?.selected]),C=Ht(()=>l||(S&&$?`Search by ${$.toLowerCase()}`:"Search..."),[l,S,$]);return e(lu,{$width:c,$withSegment:S,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!b,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t(St,{size:18,fill:E}),t(cu,{"data-id":n??"search",name:"search",type:"text",placeholder:C,value:r,onChange:e=>{e.stopPropagation(),o(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:E}),S&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(su,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected})})]})},uu=r.div`
500
500
  display: flex;
501
501
  align-items: center;
502
502
  justify-content: center;
@@ -505,41 +505,41 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
505
505
  padding: 8px;
506
506
  border-radius: 100%;
507
507
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
508
- `,au=({icon:n=$t,hideIcon:r=!1,title:o="No data",subTitle:a,button:s,action:l})=>{const c=i().v2.colors.silver[200];return e(ei,{$gap:12,$alignItems:"center",children:[!r&&t(iu,{children:t(n,{size:32,fill:c})}),e(ei,{$gap:4,$alignItems:"center",children:[t(br,{size:hr.S,align:"center",children:o}),a&&t(br,{size:hr.XXS,align:"center",color:c,children:a})]}),s&&t(kd,{variant:_d.Secondary,...s}),l]})},su=r.span`
508
+ `,pu=({icon:n=$t,hideIcon:r=!1,title:o="No data",subTitle:a,button:s,action:l})=>{const c=i().v2.colors.silver[200];return e(ei,{$gap:12,$alignItems:"center",children:[!r&&t(uu,{children:t(n,{size:32,fill:c})}),e(ei,{$gap:4,$alignItems:"center",children:[t(br,{size:hr.S,align:"center",children:o}),a&&t(br,{size:hr.XXS,align:"center",color:c,children:a})]}),s&&t(zd,{variant:Md.Secondary,...s}),l]})},hu=r.span`
509
509
  font-family: ${({theme:e})=>e.font_family.primary};
510
510
  font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
511
511
  font-weight: 400;
512
512
  color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
513
- `,lu=r.span`
513
+ `,gu=r.span`
514
514
  font-family: ${({theme:e})=>e.font_family.primary};
515
515
  font-size: 14px;
516
516
  font-weight: 400;
517
517
  color: ${({theme:e})=>e.v2.colors.red[500]};
518
- `,cu=({label:n,tooltip:r,required:o,badge:i,width:a,smallAndDark:s})=>n||r||o?e(Zo,{$width:a,$justifyContent:"space-between",children:[n&&t(su,{$smallAndDark:s,children:n}),e(Zo,{$gap:4,children:[i&&t(Id,{...i,textSize:hr.XXXS}),o&&t(lu,{children:"*"}),r&&t(Nd,{text:r,withIcon:!0})]})]}):null,du=({errorMessage:n,warnMessage:r,helpMessage:o})=>{const a=i(),s=n?a.v2.colors.red[500]:r?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=t(rt,{size:12,fill:s});return n||r||o?e(Zo,{$alignItems:"center",children:[l&&t(ei,{children:l}),t(br,{size:hr.XXXS,weight:400,color:s,children:n||r||o})]}):null};var uu;(e=>{e.S="small",e.L="large"})(uu||(uu={}));const pu=r.div`
518
+ `,mu=({label:n,tooltip:r,required:o,badge:i,width:a,smallAndDark:s})=>n||r||o?e(Zo,{$width:a,$justifyContent:"space-between",children:[n&&t(hu,{$smallAndDark:s,children:n}),e(Zo,{$gap:4,children:[i&&t(Pd,{...i,textSize:hr.XXXS}),o&&t(gu,{children:"*"}),r&&t(kd,{text:r,withIcon:!0})]})]}):null,fu=({errorMessage:n,warnMessage:r,helpMessage:o})=>{const a=i(),s=n?a.v2.colors.red[500]:r?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=t(rt,{size:12,fill:s});return n||r||o?e(Zo,{$alignItems:"center",children:[l&&t(ei,{children:l}),t(br,{size:hr.XXXS,weight:400,color:s,children:n||r||o})]}):null};var yu;(e=>{e.S="small",e.L="large"})(yu||(yu={}));const bu=r.div`
519
519
  width: fit-content;
520
520
  display: flex;
521
521
  align-items: center;
522
522
  gap: 8px;
523
523
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
524
- `,hu=r.div`
525
- width: ${({$size:e})=>e===uu.S?"16px":"20px"};
526
- height: ${({$size:e})=>e===uu.S?"16px":"20px"};
524
+ `,vu=r.div`
525
+ width: ${({$size:e})=>e===yu.S?"16px":"20px"};
526
+ height: ${({$size:e})=>e===yu.S?"16px":"20px"};
527
527
  display: flex;
528
528
  align-items: center;
529
529
  justify-content: center;
530
530
  border-radius: 4px;
531
531
  border: 1px solid ${({$borderColor:e})=>e};
532
532
  background-color: ${({$backgroundColor:e})=>e};
533
- `,gu=({name:n,label:r,tooltip:o,badge:a,size:s=uu.L,disabled:l,partiallyChecked:c,value:d,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=i(),[f,y]=Ft(!1),b=c||d,v=s===uu.S?12:16,E=l?m.v2.colors.grey[400]:m.v2.colors.white[500],S=b?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],$=l?m.v2.colors.grey[600]:b?m.v2.colors.purple[500]:m.v2.colors.silver[900];return e(ei,{$gap:4,children:[e(Zo,{$justifyContent:"space-between",children:[e(pu,{"data-id":n||"checkbox"+(r?`-${r}`:""),onClick:e=>{e.stopPropagation(),l||u(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t(hu,{$size:s,$borderColor:S,$backgroundColor:$,children:c?t(Ct,{size:v,fill:E}):d?t(vt,{size:v,fill:E}):null}),r&&t(br,{size:s===uu.S?hr.XXS:hr.XS,nowrap:!0,children:r})]}),t(cu,{tooltip:o,badge:a})]}),t(du,{errorMessage:p,warnMessage:h,helpMessage:g})]})},mu=r.div`
533
+ `,Eu=({name:n,label:r,tooltip:o,badge:a,size:s=yu.L,disabled:l,partiallyChecked:c,value:d,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=i(),[f,y]=Ft(!1),b=c||d,v=s===yu.S?12:16,E=l?m.v2.colors.grey[400]:m.v2.colors.white[500],S=b?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],$=l?m.v2.colors.grey[600]:b?m.v2.colors.purple[500]:m.v2.colors.silver[900];return e(ei,{$gap:4,children:[e(Zo,{$justifyContent:"space-between",children:[e(bu,{"data-id":n||"checkbox"+(r?`-${r}`:""),onClick:e=>{e.stopPropagation(),l||u(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t(vu,{$size:s,$borderColor:S,$backgroundColor:$,children:c?t(Ct,{size:v,fill:E}):d?t(vt,{size:v,fill:E}):null}),r&&t(br,{size:s===yu.S?hr.XXS:hr.XS,nowrap:!0,children:r})]}),t(mu,{tooltip:o,badge:a})]}),t(fu,{errorMessage:p,warnMessage:h,helpMessage:g})]})},Su=r.div`
534
534
  display: flex;
535
535
  flex-direction: ${({$direction:e})=>e===gn.Horizontal?"row":"column"};
536
536
  gap: ${({$direction:e})=>e===gn.Horizontal?16:8}px;
537
- `,fu=({direction:n=gn.Vertical,title:r,size:o,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=o===uu.S?hr.XXS:hr.XS,u=Ht(()=>s.every(e=>l[e.id]),[s,l]),p=Ht(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(n=>{const r={...n};return e?r[e]=t:s.forEach(e=>r[e.id]=t),r})};return e(mu,{$direction:n,children:[r&&a?t(gu,{label:r,partiallyChecked:p,value:u,onChange:e=>h("",e),size:o}):r&&!a?t(br,{size:d,children:r}):null,s.map(e=>t(gu,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:i,size:o},`${r}-checkbox-${e.id}`))]})};var yu,bu;(e=>{e.Left="left",e.Right="right"})(yu||(yu={})),(e=>{e.Top="top",e.Bottom="bottom"})(bu||(bu={}));const vu=r.div`
537
+ `,$u=({direction:n=gn.Vertical,title:r,size:o,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=o===yu.S?hr.XXS:hr.XS,u=Ht(()=>s.every(e=>l[e.id]),[s,l]),p=Ht(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(n=>{const r={...n};return e?r[e]=t:s.forEach(e=>r[e.id]=t),r})};return e(Su,{$direction:n,children:[r&&a?t(Eu,{label:r,partiallyChecked:p,value:u,onChange:e=>h("",e),size:o}):r&&!a?t(br,{size:d,children:r}):null,s.map(e=>t(Eu,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:i,size:o},`${r}-checkbox-${e.id}`))]})};var Cu,xu;(e=>{e.Left="left",e.Right="right"})(Cu||(Cu={})),(e=>{e.Top="top",e.Bottom="bottom"})(xu||(xu={}));const wu=r.div`
538
538
  position: relative;
539
539
  display: flex;
540
540
  flex-direction: column;
541
541
  gap: 4px;
542
- `,Eu=r.div`
542
+ `,Tu=r.div`
543
543
  position: fixed;
544
544
  ${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
545
545
  ${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
@@ -557,7 +557,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
557
557
  border-radius: 6px;
558
558
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
559
559
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
560
- `,Su=r.div`
560
+ `,Ou=r.div`
561
561
  display: flex;
562
562
  flex-direction: column;
563
563
  gap: 0;
@@ -565,7 +565,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
565
565
  width: 100%;
566
566
  max-height: ${({$maxHeight:e})=>e||"230px"};
567
567
  overflow-y: auto;
568
- `,$u=r.div`
568
+ `,Nu=r.div`
569
569
  display: flex;
570
570
  align-items: center;
571
571
  gap: 8px;
@@ -581,19 +581,19 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
581
581
  background-color: ${({theme:e})=>e.v2.colors.grey[700]};
582
582
  }
583
583
  `}
584
- `,Cu=r.div`
584
+ `,Au=r.div`
585
585
  display: flex;
586
586
  align-items: center;
587
587
  gap: 8px;
588
588
  flex: 1;
589
589
  min-width: 0;
590
- `,xu=r.div`
590
+ `,Iu=r.div`
591
591
  flex: 0 1 auto;
592
592
  min-width: 0;
593
593
  overflow: hidden;
594
594
  text-overflow: ellipsis;
595
595
  white-space: nowrap;
596
- `,wu=r.span`
596
+ `,_u=r.span`
597
597
  flex-shrink: 0;
598
598
  width: 88px;
599
599
  display: inline-flex;
@@ -602,19 +602,19 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
602
602
  border-radius: 4px;
603
603
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
604
604
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
605
- `,Tu=r.div`
605
+ `,Ru=r.div`
606
606
  flex-shrink: 0;
607
607
  display: inline-flex;
608
608
  align-items: center;
609
609
  gap: 4px;
610
- `,Ou=({defaultOpen:n,open:r,onOpenChange:o,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:y,isLoading:b,emptyMessage:v,children:E})=>{const S=i(),$=void 0!==r,C=!!f||!!y||!!E,[x,w]=Ft(n??!C),T=$?r:x,O=Bt(e=>{$||w(e),o?.(e)},[$,o]),[N,A]=Ft({x:a||yu.Left,y:s||bu.Bottom}),I=jt(null);dd(I,()=>O(!1));const[_,R]=Ft({}),D=Bt((e,t)=>{const n=I.current?.getBoundingClientRect();if(!n)return;const r=C?8:0;R({top:t===bu.Bottom?C?n.bottom+r:n.top:void 0,bottom:t===bu.Top?C?window.innerHeight-n.top+r:window.innerHeight-n.bottom:void 0,left:e===yu.Left?n.left:void 0,right:e===yu.Right?window.innerWidth-n.right:void 0,width:g?n.width:void 0})},[C,g]),k=e=>{const t=!T;if(O(t),!t)return;const n={x:a||(e.clientX>window.innerWidth/2?yu.Right:yu.Left),y:s||(e.clientY>window.innerHeight/2?bu.Top:bu.Bottom)};A(n),D(n.x,n.y)};Wt(()=>{T&&D(N.x,N.y)},[T,N.x,N.y,D]);const L=e=>{d(p?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),C&&!p&&O(!1)},[P,M]=Ft(""),U=Ht(()=>P?l.filter(e=>e?.label?.toLowerCase().includes(P.toLowerCase())):l,[l.length,P]);return e(vu,{ref:I,children:[u&&t(cu,{label:u}),f&&t(kd,{...f,fullWidth:g,rightIcon:T?xt:wt,onClick:k}),y&&t(kd,{variant:_d.Text,size:Rd.S,...y,onClick:k}),"function"==typeof E?E({ChevronIcon:T?xt:wt,handleClick:k}):E,T&&Yt(e(Eu,{$coords:_,"data-ignore-outside-click":"true",children:[h&&t(ou,{value:P,onChange:M,width:"100%"}),b?t(ui,{withSpinner:!0,title:"Loading...",titleSize:hr.XS}):U.length?t(Su,{$maxHeight:m,children:U.map(n=>{if(!n)return null;const{id:r,label:o,icon:i,withCheckbox:a,badge:s,secondaryLabel:l}=n,d=c.includes(r);return e($u,{"data-id":`option-${r}`,$selected:d&&!a,onClick:()=>L(r),title:l?`${o} — ${l}`:o,children:[a&&t(gu,{value:d,onChange:()=>L(r)}),i&&t(i,{size:14,fill:n.color||S.v2.colors.white[500]}),s&&t(wu,{children:t(br,{size:hr.XXS,nowrap:!0,color:gr.Secondary,children:s})}),e(Cu,{children:[t(xu,{children:t(br,{size:hr.XS,nowrap:!0,color:n.color||gr.Primary,children:o})}),l&&e(Tu,{children:[t(Be,{size:12,fill:S.v2.colors.silver[200]}),t(br,{size:hr.XS,nowrap:!0,color:gr.Secondary,children:l})]})]})]},r)})}):t(Qo,{$padding:"6px 0",children:t(au,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!U.length&&t(kd,{label:"Done",onClick:()=>O(!1)})]}),document.body)]})};var Nu;(e=>{e.Button="button",e.ButtonDropData="button-drop-data"})(Nu||(Nu={}));const Au=({onAnyClick:e,actions:n})=>t(Zo,{$gap:8,$alignItems:"center",children:n?.map(n=>{if(!n)return null;switch(n.type){case Nu.Button:return t(kd,{...n.buttonProps,onClick:t=>{n.buttonProps?.onClick?.(t),e?.()}},n.id);case Nu.ButtonDropData:return t(Ou,{...n.dropDataProps,items:n.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n.buttonProps?.onClick?.(t[0]),e?.()},buttonProps:n.buttonProps},n.id);default:return null}})}),Iu=r.div`
610
+ `,Du=({defaultOpen:n,open:r,onOpenChange:o,alignX:a,alignY:s,items:l,selectedIds:c,setSelectedIds:d,label:u,withMultiSelect:p,withSearch:h,fullWidth:g,maxHeight:m,buttonProps:f,iconButtonProps:y,isLoading:b,emptyMessage:v,children:E})=>{const S=i(),$=void 0!==r,C=!!f||!!y||!!E,[x,w]=Ft(n??!C),T=$?r:x,O=Bt(e=>{$||w(e),o?.(e)},[$,o]),[N,A]=Ft({x:a||Cu.Left,y:s||xu.Bottom}),I=jt(null);fd(I,()=>O(!1));const[_,R]=Ft({}),D=Bt((e,t)=>{const n=I.current?.getBoundingClientRect();if(!n)return;const r=C?8:0;R({top:t===xu.Bottom?C?n.bottom+r:n.top:void 0,bottom:t===xu.Top?C?window.innerHeight-n.top+r:window.innerHeight-n.bottom:void 0,left:e===Cu.Left?n.left:void 0,right:e===Cu.Right?window.innerWidth-n.right:void 0,width:g?n.width:void 0})},[C,g]),k=e=>{const t=!T;if(O(t),!t)return;const n={x:a||(e.clientX>window.innerWidth/2?Cu.Right:Cu.Left),y:s||(e.clientY>window.innerHeight/2?xu.Top:xu.Bottom)};A(n),D(n.x,n.y)};Wt(()=>{T&&D(N.x,N.y)},[T,N.x,N.y,D]);const L=e=>{d(p?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),C&&!p&&O(!1)},[P,M]=Ft(""),U=Ht(()=>P?l.filter(e=>e?.label?.toLowerCase().includes(P.toLowerCase())):l,[l.length,P]);return e(wu,{ref:I,children:[u&&t(mu,{label:u}),f&&t(zd,{...f,fullWidth:g,rightIcon:T?xt:wt,onClick:k}),y&&t(zd,{variant:Md.Text,size:Ud.S,...y,onClick:k}),"function"==typeof E?E({ChevronIcon:T?xt:wt,handleClick:k}):E,T&&Yt(e(Tu,{$coords:_,"data-ignore-outside-click":"true",children:[h&&t(du,{value:P,onChange:M,width:"100%"}),b?t(ui,{withSpinner:!0,title:"Loading...",titleSize:hr.XS}):U.length?t(Ou,{$maxHeight:m,children:U.map(n=>{if(!n)return null;const{id:r,label:o,icon:i,withCheckbox:a,badge:s,secondaryLabel:l}=n,d=c.includes(r);return e(Nu,{"data-id":`option-${r}`,$selected:d&&!a,onClick:()=>L(r),title:l?`${o} — ${l}`:o,children:[a&&t(Eu,{value:d,onChange:()=>L(r)}),i&&t(i,{size:14,fill:n.color||S.v2.colors.white[500]}),s&&t(_u,{children:t(br,{size:hr.XXS,nowrap:!0,color:gr.Secondary,children:s})}),e(Au,{children:[t(Iu,{children:t(br,{size:hr.XS,nowrap:!0,color:n.color||gr.Primary,children:o})}),l&&e(Ru,{children:[t(Be,{size:12,fill:S.v2.colors.silver[200]}),t(br,{size:hr.XS,nowrap:!0,color:gr.Secondary,children:l})]})]})]},r)})}):t(Qo,{$padding:"6px 0",children:t(pu,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!U.length&&t(zd,{label:"Done",onClick:()=>O(!1)})]}),document.body)]})};var ku;(e=>{e.Button="button",e.ButtonDropData="button-drop-data"})(ku||(ku={}));const Lu=({onAnyClick:e,actions:n})=>t(Zo,{$gap:8,$alignItems:"center",children:n?.map(n=>{if(!n)return null;switch(n.type){case ku.Button:return t(zd,{...n.buttonProps,onClick:t=>{n.buttonProps?.onClick?.(t),e?.()}},n.id);case ku.ButtonDropData:return t(Du,{...n.dropDataProps,items:n.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:t=>{n.buttonProps?.onClick?.(t[0]),e?.()},buttonProps:n.buttonProps},n.id);default:return null}})}),Pu=r.div`
611
611
  display: flex;
612
612
  align-items: center;
613
613
  justify-content: center;
614
614
  padding: 8px;
615
615
  border-radius: 8px;
616
- background-color: ${({theme:e})=>e.v2.colors.white[500]+Bd["004"]};
617
- `,_u=({icon:n,iconWithWrapper:r=!1,title:o,titleSize:i=hr.S,titleColor:a=gr.Primary,titleWrap:s=!1,subTitle:l,subTitleSize:c=hr.XXS,subTitleColor:d=gr.Secondary,subTitleWrap:u=!1,tooltip:p,withCopy:h,badge:g,gap:m,children:f})=>{const{CopyButton:y}=nd();return e(Zo,{$gap:l?8:6,$alignItems:"center",children:[n&&(r||l?t(Iu,{children:t(n,{size:24})}):t(n,{size:24})),o||g||l?e(ei,{children:[o||g?e(Zo,{$gap:6,$alignItems:"center",children:[o&&t(br,{size:i,color:a,nowrap:!s,children:o}),h&&o&&t(y,{value:o,size:Zc.XS}),p&&t(Nd,{text:p,withIcon:!0}),g&&t(Id,{...g})]}):null,l&&t(br,{size:c,color:d,nowrap:!u,children:l})]}):null,t(Zo,{$gap:m,$margin:`0 0 0 ${m??0}px`,$alignItems:"center",children:f})]})},Ru=({children:e,fullText:n,fullWidth:r=!0,...o})=>{const i=jt(null),a=!!o.maxLines&&o.maxLines>0,s=ud(i,{axis:a?"vertical":"horizontal",deps:[e]})?n??(null==e?"":String(e)):"";return t(Nd,{text:s,fullWidth:r,ellipsis:!a,keepAlive:!0,children:t(br,{ref:i,...o,children:e})})},Du=r.section`
616
+ background-color: ${({theme:e})=>e.v2.colors.white[500]+Vd["004"]};
617
+ `,Mu=({icon:n,iconWithWrapper:r=!1,title:o,titleSize:i=hr.S,titleColor:a=gr.Primary,titleWrap:s=!1,subTitle:l,subTitleSize:c=hr.XXS,subTitleColor:d=gr.Secondary,subTitleWrap:u=!1,tooltip:p,withCopy:h,badge:g,gap:m,children:f})=>{const{CopyButton:y}=ld();return e(Zo,{$gap:l?8:6,$alignItems:"center",children:[n&&(r||l?t(Pu,{children:t(n,{size:24})}):t(n,{size:24})),o||g||l?e(ei,{children:[o||g?e(Zo,{$gap:6,$alignItems:"center",children:[o&&t(br,{size:i,color:a,nowrap:!s,children:o}),h&&o&&t(y,{value:o,size:id.XS}),p&&t(kd,{text:p,withIcon:!0}),g&&t(Pd,{...g})]}):null,l&&t(br,{size:c,color:d,nowrap:!u,children:l})]}):null,t(Zo,{$gap:m,$margin:`0 0 0 ${m??0}px`,$alignItems:"center",children:f})]})},Uu=({children:e,fullText:n,fullWidth:r=!0,...o})=>{const i=jt(null),a=!!o.maxLines&&o.maxLines>0,s=yd(i,{axis:a?"vertical":"horizontal",deps:[e]})?n??(null==e?"":String(e)):"";return t(kd,{text:s,fullWidth:r,ellipsis:!a,keepAlive:!0,children:t(br,{ref:i,...o,children:e})})},Fu=r.section`
618
618
  display: flex;
619
619
  flex-direction: column;
620
620
  gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
@@ -624,22 +624,22 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
624
624
  padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
625
625
  border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
626
626
  background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
627
- `,ku=r(Zo)`
627
+ `,zu=r(Zo)`
628
628
  cursor: ${({$clickable:e})=>e?"pointer":"default"};
629
629
  user-select: ${({$clickable:e})=>e?"none":"auto"};
630
- `,Lu=r.div`
630
+ `,Bu=r.div`
631
631
  display: flex;
632
632
  align-items: flex-end;
633
633
  flex-wrap: wrap;
634
634
  width: 100%;
635
- `,Pu=r.div`
635
+ `,Hu=r.div`
636
636
  width: ${({$cellsPerRow:e})=>e?`calc(${100/e}% - 16px)`:"unset"};
637
637
  margin: 8px;
638
638
  display: flex;
639
639
  flex-direction: column;
640
640
  gap: 4px;
641
641
  min-width: 0;
642
- `,Mu=({item:n,cellsPerRow:r})=>{const{CopyButton:o}=nd(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=n;return i?t("div",{style:{flex:1}}):e(Pu,{$cellsPerRow:r,children:[!!a&&t(Nd,{text:s,children:t(Ru,{size:hr.XXXS,color:gr.Secondary,nowrap:!0,children:a})}),e(Zo,{$gap:4,children:[u&&t(Id,{...u}),l&&t(Nd,{text:c,children:t(Ru,{size:hr.XS,nowrap:!0,children:l})}),d&&t(o,{value:l||u?.label?.toString()||"",size:Zc.XS})]})]})},Uu=({bgTint:n="900",width:r,fullHeight:o=!1,moreSpacing:i=!1,richTitle:a,withCollapse:s,collapseIsDefaultOpen:l,badges:c=[],actions:d=[],dropDataActions:u=[],renderOnRightSide:p,cellsPerRow:h,items:g,children:m})=>{const[f,y]=Ft(l||!1),b=()=>y(e=>!e),v=!s||s&&f,E=!!d.length,S=!!u.length,$=!!c.length;return e(Du,{$width:r,$bgTint:n,$fullHeight:o,$moreSpacing:i,children:[(a||s)&&e(ku,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?t(_u,{...a}):t("div",{}),e(Zo,{$gap:12,children:[p,E&&v&&t(Au,{actions:d}),$&&t(Zo,{$gap:8,children:c.map((e,t)=>Gt(Id,{...e,key:e.key||`${e.label}-${t}`}))}),(S||s)&&e(Zo,{$gap:2,children:[S&&t(Ou,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&t(kd,{variant:_d.Text,size:Rd.S,leftIcon:f?xt:wt,onClick:b})]})]})]}),v&&g?t(Lu,{children:g.map(e=>t(Mu,{item:e,cellsPerRow:h&&h<=g.length?h:void 0},e.id))}):null,v&&m]})};var Fu;(e=>{e.S="small",e.M="medium"})(Fu||(Fu={}));const zu=r.div`
642
+ `,ju=({item:n,cellsPerRow:r})=>{const{CopyButton:o}=ld(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=n;return i?t("div",{style:{flex:1}}):e(Hu,{$cellsPerRow:r,children:[!!a&&t(kd,{text:s,children:t(Uu,{size:hr.XXXS,color:gr.Secondary,nowrap:!0,children:a})}),e(Zo,{$gap:4,children:[u&&t(Pd,{...u}),l&&t(kd,{text:c,children:t(Uu,{size:hr.XS,nowrap:!0,children:l})}),d&&t(o,{value:l||u?.label?.toString()||"",size:id.XS})]})]})},Wu=({bgTint:n="900",width:r,fullHeight:o=!1,moreSpacing:i=!1,richTitle:a,withCollapse:s,collapseIsDefaultOpen:l,badges:c=[],actions:d=[],dropDataActions:u=[],renderOnRightSide:p,cellsPerRow:h,items:g,children:m})=>{const[f,y]=Ft(l||!1),b=()=>y(e=>!e),v=!s||s&&f,E=!!d.length,S=!!u.length,$=!!c.length;return e(Fu,{$width:r,$bgTint:n,$fullHeight:o,$moreSpacing:i,children:[(a||s)&&e(zu,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?t(Mu,{...a}):t("div",{}),e(Zo,{$gap:12,children:[p,E&&v&&t(Lu,{actions:d}),$&&t(Zo,{$gap:8,children:c.map((e,t)=>Gt(Pd,{...e,key:e.key||`${e.label}-${t}`}))}),(S||s)&&e(Zo,{$gap:2,children:[S&&t(Du,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&t(zd,{variant:Md.Text,size:Ud.S,leftIcon:f?xt:wt,onClick:b})]})]})]}),v&&g?t(Bu,{children:g.map(e=>t(ju,{item:e,cellsPerRow:h&&h<=g.length?h:void 0},e.id))}):null,v&&m]})};var Gu;(e=>{e.S="small",e.M="medium"})(Gu||(Gu={}));const Xu=r.div`
643
643
  display: flex;
644
644
  flex-direction: column;
645
645
  gap: ${({$gap:e})=>e}px;
@@ -650,7 +650,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
650
650
  border-radius: 16px;
651
651
  background-color: ${({theme:e,$backgroundColor:t,$bordered:n})=>t??(n?"transparent":e.v2.colors.silver[1e3])};
652
652
  ${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
653
- `,Bu=Mt(({id:n,size:r=Fu.M,fullHeight:o=!1,richTitle:i,customTitle:a,search:s,customSearch:l,filters:c,actions:d,children:u,backgroundColor:p,padding:h,bordered:g=!1},m)=>{const f=r===Fu.S?4:16,y="number"==typeof h?h:r===Fu.S?12:16,b=a??(i?t(_u,{...i}):null),v=l??(s?t(ou,{...s}):null),E=!!b||!!v,S=!!d&&d.length>0;return e(zu,{ref:m,id:n,"data-section-name":n,$padding:y,$gap:f,$fullHeight:o,$backgroundColor:p,$bordered:g,children:[E||S?e(Zo,{$gap:f,$justifyContent:"space-between",children:[E?e(Zo,{$gap:f,$alignItems:"center",children:[b,v,c]}):null,S&&t(Au,{actions:d??[]})]}):null,u]})});Bu.displayName="SectionCard";const Hu=r.div`
653
+ `,Vu=Mt(({id:n,size:r=Gu.M,fullHeight:o=!1,richTitle:i,customTitle:a,search:s,customSearch:l,filters:c,actions:d,children:u,backgroundColor:p,padding:h,bordered:g=!1},m)=>{const f=r===Gu.S?4:16,y="number"==typeof h?h:r===Gu.S?12:16,b=a??(i?t(Mu,{...i}):null),v=l??(s?t(du,{...s}):null),E=!!b||!!v,S=!!d&&d.length>0;return e(Xu,{ref:m,id:n,"data-section-name":n,$padding:y,$gap:f,$fullHeight:o,$backgroundColor:p,$bordered:g,children:[E||S?e(Zo,{$gap:f,$justifyContent:"space-between",children:[E?e(Zo,{$gap:f,$alignItems:"center",children:[b,v,c]}):null,S&&t(Lu,{actions:d??[]})]}):null,u]})});Vu.displayName="SectionCard";const Ku=r.div`
654
654
  flex: 1;
655
655
  align-self: stretch;
656
656
  display: flex;
@@ -659,7 +659,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
659
659
  padding: 16px;
660
660
  border-radius: 12px;
661
661
  background-color: ${({theme:e,$status:t})=>Io(e,t,t===Tn.Unknown?"750":"500")};
662
- `,ju=r.div`
662
+ `,Yu=r.div`
663
663
  display: flex;
664
664
  align-items: center;
665
665
  justify-content: center;
@@ -667,8 +667,8 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
667
667
  height: fit-content;
668
668
  padding: 8px;
669
669
  border-radius: 12px;
670
- background-color: ${({theme:e,$status:t})=>t===Tn.Unknown?Io(e,t,"800"):Io(e,t,"900")+Bd["015"]};
671
- `,Wu=({status:n,icon:r,title:o,description:a})=>{const s=i(),l=r??pi(n,s),c=[Tn.Default,Tn.Info,Tn.Disabled,Tn.Unknown].includes(n)?s.v2.colors.white[500]:s.v2.colors.black[500];return e(Hu,{$status:n,children:[t(ju,{$status:n,children:t(l,{size:32,fill:c})}),e(ei,{$gap:2,$justifyContent:"center",children:[t(br,{size:hr.M,weight:500,color:c,nowrap:!0,children:o}),t(br,{size:hr.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},Gu=r.div`
670
+ background-color: ${({theme:e,$status:t})=>t===Tn.Unknown?Io(e,t,"800"):Io(e,t,"900")+Vd["015"]};
671
+ `,Ju=({status:n,icon:r,title:o,description:a})=>{const s=i(),l=r??pi(n,s),c=[Tn.Default,Tn.Info,Tn.Disabled,Tn.Unknown].includes(n)?s.v2.colors.white[500]:s.v2.colors.black[500];return e(Ku,{$status:n,children:[t(Yu,{$status:n,children:t(l,{size:32,fill:c})}),e(ei,{$gap:2,$justifyContent:"center",children:[t(br,{size:hr.M,weight:500,color:c,nowrap:!0,children:o}),t(br,{size:hr.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},qu=r.div`
672
672
  flex: 0.5;
673
673
  display: flex;
674
674
  flex-direction: column;
@@ -676,7 +676,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
676
676
  padding: 12px;
677
677
  border-radius: 12px;
678
678
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
679
- `,Xu=["-","N/A","undefined","null","undefined/undefined","null/null"],Vu=({title:n,cells:r})=>{const o=i();return e(Gu,{children:[t(br,{size:hr.XXS,color:o.v2.colors.grey[150],children:n}),t(Zo,{$gap:32,children:r.map((r,o)=>e(ei,{$gap:2,children:[!r.isLoading||r.value&&!Xu.includes(r.value)?t(br,{size:r.label?hr.M:hr.L,children:r.value}):t(ui,{withSpinnerOld:!0,scaleSpinnerOld:.9}),r.label&&t(br,{size:hr.XXS,children:r.label})]},`${n}-${o}-${r.label}-${r.value}`))})]})},Ku=r.div`
679
+ `,Qu=["-","N/A","undefined","null","undefined/undefined","null/null"],Zu=({title:n,cells:r})=>{const o=i();return e(qu,{children:[t(br,{size:hr.XXS,color:o.v2.colors.grey[150],children:n}),t(Zo,{$gap:32,children:r.map((r,o)=>e(ei,{$gap:2,children:[!r.isLoading||r.value&&!Qu.includes(r.value)?t(br,{size:r.label?hr.M:hr.L,children:r.value}):t(ui,{withSpinnerOld:!0,scaleSpinnerOld:.9}),r.label&&t(br,{size:hr.XXS,children:r.label})]},`${n}-${o}-${r.label}-${r.value}`))})]})},ep=r.div`
680
680
  padding: ${({$small:e})=>e?"4px":"6px 12px"};
681
681
 
682
682
  display: flex;
@@ -695,7 +695,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
695
695
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
696
696
  }
697
697
  `}
698
- `,Yu=r.input`
698
+ `,tp=r.input`
699
699
  max-width: ${({$maxWidth:e})=>e||"unset"};
700
700
  width: ${({$width:e})=>e||"unset"};
701
701
 
@@ -727,12 +727,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
727
727
  pointer-events: none;
728
728
  user-select: none;
729
729
  }
730
- `,Ju=r.div`
730
+ `,np=r.div`
731
731
  display: flex;
732
732
  align-items: center;
733
733
  justify-content: center;
734
734
  cursor: pointer;
735
- `,qu=({label:n,required:r,tooltip:o,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:u,helpMessage:p,type:h=wn.Text,name:g,value:m,onChange:f,disabled:y,maxWidth:b,width:v,small:E=!1,onClick:S,...$})=>{const C=i(),x=h===wn.Password,[w,T]=Ft(!1),[O,N]=Ft(null),A=c||!!d||!!O,I=m?C.v2.colors.white[500]:y?C.v2.colors.grey[400]:C.v2.colors.silver[200],_=E?14:18,R=jt(null),D=ud(R,{deps:[m]}),k=$.readOnly&&D&&null!=m&&""!==m?String(m):"";return e(ei,{$width:v,$gap:6,children:[t(cu,{label:n,tooltip:o,required:r,badge:a}),t(Ku,{$small:E,$disabled:y,$error:A,$clickable:!!S&&!y,onClick:y?void 0:S,children:e(Nd,{text:k,fullWidth:!0,keepAlive:!0,children:[s?t(s,{size:_,fill:I}):null,t(Yu,{"data-id":g,type:w||h===wn.Number||h===wn.Decimal?wn.Text:h,name:g,value:m,onChange:e=>{e.stopPropagation();const t=e.target.value;if(h===wn.Number||h===wn.Decimal){const n=h===wn.Number?Mi(t):Pi(t),r=null!=$.min?Number($.min):void 0,o=null!=$.max?Number($.max):void 0,i=h===wn.Decimal&&n.endsWith(".");let a=n,s=!1;if(n&&!i){const e=parseFloat(n);isNaN(e)||(null!=o&&e>o?(a=String(o),s=!0):null!=r&&e<r&&(a=String(r),s=!0))}e.target.value=a,N(t&&t!==n?"Please enter a valid number":s?"Value must be "+(null!=r&&null!=o?`between ${r} and ${o}`:null!=o?`at most ${o}`:`at least ${r}`):null)}f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:y,$maxWidth:b,$width:v,$small:E,...$,ref:R}),x?t(Ju,{onClick:()=>T(e=>!e),children:t(w?Ot:Nt,{size:_,fill:I})}):l?t(l,{size:_,fill:I}):null]})}),t(du,{errorMessage:O||d,warnMessage:u,helpMessage:p})]})},Qu=e=>{const{"data-id":n,options:r,placeholder:o="Search...",isLoading:i,disabled:a}=e,s=!0===e.multiple,[l,c]=Ft(""),[d,u]=Ft(!1),p=Ht(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Ht(()=>{if(s){const e=p.length;return e?1===e?r.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return e.value?r.find(t=>t.id===e.value)?.label??"":""},[s,e,r,p]),g=d?l:h,m=Ht(()=>{const e=s?r.map(e=>({...e,withCheckbox:!0})):r;if(!l)return e;const t=l.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[s,r,l]),f=Bt(()=>{c(""),u(!0)},[]),y=Bt(t=>{c(t.target.value),d||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[d,s,e]),b=Bt(e=>{u(e),e||c("")},[]),v=Bt(t=>{if(s)return void e.onSelect(t);const n=r.find(e=>e.id===t[0]);n&&(e.onSelect(n),c(""),u(!1))},[s,e,r]),E=d&&(i||m.length>0||l.length>0);return t(Ou,{open:E,onOpenChange:b,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:i,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:bu.Bottom,children:t(qu,{name:n,leftIcon:St,placeholder:o,value:g,onChange:y,onFocus:f,disabled:a})})},Zu=r.button`
735
+ `,rp=({label:n,required:r,tooltip:o,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:u,helpMessage:p,type:h=wn.Text,name:g,value:m,onChange:f,disabled:y,maxWidth:b,width:v,small:E=!1,onClick:S,...$})=>{const C=i(),x=h===wn.Password,[w,T]=Ft(!1),[O,N]=Ft(null),A=c||!!d||!!O,I=m?C.v2.colors.white[500]:y?C.v2.colors.grey[400]:C.v2.colors.silver[200],_=E?14:18,R=jt(null),D=yd(R,{deps:[m]}),k=$.readOnly&&D&&null!=m&&""!==m?String(m):"";return e(ei,{$width:v,$gap:6,children:[t(mu,{label:n,tooltip:o,required:r,badge:a}),t(ep,{$small:E,$disabled:y,$error:A,$clickable:!!S&&!y,onClick:y?void 0:S,children:e(kd,{text:k,fullWidth:!0,keepAlive:!0,children:[s?t(s,{size:_,fill:I}):null,t(tp,{"data-id":g,type:w||h===wn.Number||h===wn.Decimal?wn.Text:h,name:g,value:m,onChange:e=>{e.stopPropagation();const t=e.target.value;if(h===wn.Number||h===wn.Decimal){const n=h===wn.Number?Mi(t):Pi(t),r=null!=$.min?Number($.min):void 0,o=null!=$.max?Number($.max):void 0,i=h===wn.Decimal&&n.endsWith(".");let a=n,s=!1;if(n&&!i){const e=parseFloat(n);isNaN(e)||(null!=o&&e>o?(a=String(o),s=!0):null!=r&&e<r&&(a=String(r),s=!0))}e.target.value=a,N(t&&t!==n?"Please enter a valid number":s?"Value must be "+(null!=r&&null!=o?`between ${r} and ${o}`:null!=o?`at most ${o}`:`at least ${r}`):null)}f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:y,$maxWidth:b,$width:v,$small:E,...$,ref:R}),x?t(np,{onClick:()=>T(e=>!e),children:t(w?Ot:Nt,{size:_,fill:I})}):l?t(l,{size:_,fill:I}):null]})}),t(fu,{errorMessage:O||d,warnMessage:u,helpMessage:p})]})},op=e=>{const{"data-id":n,options:r,placeholder:o="Search...",isLoading:i,disabled:a}=e,s=!0===e.multiple,[l,c]=Ft(""),[d,u]=Ft(!1),p=Ht(()=>s?e.value:e.value?[e.value]:[],[s,e.value]),h=Ht(()=>{if(s){const e=p.length;return e?1===e?r.find(e=>e.id===p[0])?.label??"":`${e} selected`:""}return e.value?r.find(t=>t.id===e.value)?.label??"":""},[s,e,r,p]),g=d?l:h,m=Ht(()=>{const e=s?r.map(e=>({...e,withCheckbox:!0})):r;if(!l)return e;const t=l.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[s,r,l]),f=Bt(()=>{c(""),u(!0)},[]),y=Bt(t=>{c(t.target.value),d||u(!0),s||t.target.value||!e.value||e.onSelect(null)},[d,s,e]),b=Bt(e=>{u(e),e||c("")},[]),v=Bt(t=>{if(s)return void e.onSelect(t);const n=r.find(e=>e.id===t[0]);n&&(e.onSelect(n),c(""),u(!1))},[s,e,r]),E=d&&(i||m.length>0||l.length>0);return t(Du,{open:E,onOpenChange:b,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:i,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:xu.Bottom,children:t(rp,{name:n,leftIcon:St,placeholder:o,value:g,onChange:y,onFocus:f,disabled:a})})},ip=r.button`
736
736
  width: 100%;
737
737
  padding: 0;
738
738
  padding-right: 12px;
@@ -753,7 +753,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
753
753
  cursor: not-allowed;
754
754
  opacity: 0.5;
755
755
  }
756
- `,ep=r.div`
756
+ `,ap=r.div`
757
757
  width: ${({$hasIcon:e})=>e?"56px":"0"};
758
758
  height: 56px;
759
759
  display: flex;
@@ -764,31 +764,31 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
764
764
  `:o`
765
765
  background-color: ${({theme:e})=>e.v2.colors.silver[700]};
766
766
  `}
767
- `,tp=r.div`
767
+ `,sp=r.div`
768
768
  width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
769
769
  display: flex;
770
770
  justify-content: space-between;
771
771
  align-items: center;
772
772
  gap: 8px;
773
- `,np=({label:n,icon:r,loading:o,disabled:i,onClick:a})=>{const[s,l]=Ft(!1);return e(Zu,{$hovered:s,type:"button",disabled:i||o,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(ep,{$hovered:s,$hasIcon:!!r,children:r&&t(r,{size:36})}),e(tp,{$hasIcon:!!r,children:[o?t(ui,{withGradient:!0,titleSize:hr.S}):t(br,{variant:pr.Span,align:"center",children:n}),t(At,{rotate:90,size:24})]})]})},rp=({buttons:e})=>t(ei,{$gap:12,children:e.map((e,n)=>t(np,{...e},`${e.label}-${n}`))});var op;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(op||(op={}));const ip=r.div`
773
+ `,lp=({label:n,icon:r,loading:o,disabled:i,onClick:a})=>{const[s,l]=Ft(!1);return e(ip,{$hovered:s,type:"button",disabled:i||o,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(ap,{$hovered:s,$hasIcon:!!r,children:r&&t(r,{size:36})}),e(sp,{$hasIcon:!!r,children:[o?t(ui,{withGradient:!0,titleSize:hr.S}):t(br,{variant:pr.Span,align:"center",children:n}),t(At,{rotate:90,size:24})]})]})},cp=({buttons:e})=>t(ei,{$gap:12,children:e.map((e,n)=>t(lp,{...e},`${e.label}-${n}`))});var dp;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(dp||(dp={}));const up=r.div`
774
774
  display: flex;
775
775
  align-items: flex-end;
776
776
  justify-content: space-between;
777
777
  gap: 24px;
778
778
  width: fit-content;
779
- `,ap=r.div`
779
+ `,pp=r.div`
780
780
  position: relative;
781
781
  display: flex;
782
782
  flex-direction: column;
783
783
  align-items: center;
784
784
  width: ${({$width:e})=>e??150}px;
785
785
  flex-shrink: 0;
786
- `,sp=r.svg`
786
+ `,hp=r.svg`
787
787
  display: block;
788
788
  width: 100%;
789
789
  height: auto;
790
790
  overflow: visible;
791
- `,lp=r(ei)`
791
+ `,gp=r(ei)`
792
792
  position: absolute;
793
793
  left: 0;
794
794
  right: 0;
@@ -796,14 +796,14 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
796
796
  align-items: center;
797
797
  gap: 2px;
798
798
  pointer-events: none;
799
- `,cp=r.span`
799
+ `,mp=r.span`
800
800
  display: inline-block;
801
801
  flex-shrink: 0;
802
802
  width: 9px;
803
803
  height: 9px;
804
804
  border-radius: 50%;
805
805
  background-color: ${({$color:e})=>e};
806
- `,dp=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:""}},up=(e,t,n,r)=>{const o=r*Math.PI/180;return{x:e+n*Math.cos(o),y:t-n*Math.sin(o)}},pp=(e,t,n,r,o)=>{const i=up(e,t,n,r),a=up(e,t,n,o),s=r>o?1:0,l=Math.abs(r-o)>180?1:0;return`M ${i.x} ${i.y} A ${n} ${n} 0 ${l} ${s} ${a.x} ${a.y}`},hp=({variant:n=op.CurrentOfMax,gaugeWidth:r,title:o,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=dp(a),{number:g}=dp(s),{number:m,prefix:f,suffix:y}=dp(l),b=i(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),E=180-180*v,S=v>0?pp(60,60,55,180,E):null,$=v<1?pp(60,60,55,E,0):null,C=up(60,60,55,180),x=up(60,60,55,0),w=d??(n===op.GoodAgainstBad?b.v2.colors.green[500]:b.v2.colors.purple[400]),T=p??(n===op.GoodAgainstBad?b.v2.colors.red[500]:b.v2.colors.silver[500]),[O,N]=Ft(null),A=e=>`${f}${e}${y}`,I=n===op.GoodAgainstBad?Math.max(g-m,0):g,_="primary"===O?c:"secondary"===O?u:"",R="primary"===O?A(m):"secondary"===O?A(I):"",D=()=>N("primary"),k=()=>N("secondary"),L=()=>N(null);var P;return e(ip,{children:[e(ap,{$width:r,children:[t(Nd,{keepAlive:!0,fullWidth:!0,title:_,text:R,children:e(sp,{viewBox:"0 0 120 65",role:"img","aria-label":`${o}: ${m} of ${g}`,children:[S&&t("path",{d:S,fill:"none",stroke:w,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),$&&t("path",{d:$,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:k,onMouseLeave:L}),v>0&&t("circle",{cx:C.x,cy:C.y,r:5,fill:w,onMouseEnter:D,onMouseLeave:L}),v<1&&t("circle",{cx:x.x,cy:x.y,r:5,fill:T,onMouseEnter:k,onMouseLeave:L})]})}),o&&e(lp,{children:[t(br,{size:hr.XXXS,color:b.v2.colors.grey[150],align:"center",children:o}),t(br,{size:hr.L,weight:500,align:"center",children:`${f}${m}${y}`})]})]}),e(ei,{$gap:7,children:[e(Zo,{$gap:8,$alignItems:"center",children:[t(cp,{$color:w}),t(br,{size:hr.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:c})]}),e(Zo,{$gap:8,$alignItems:"center",children:[t(cp,{$color:T}),t(br,{size:hr.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},gp=r(Zo)`
806
+ `,fp=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:""}},yp=(e,t,n,r)=>{const o=r*Math.PI/180;return{x:e+n*Math.cos(o),y:t-n*Math.sin(o)}},bp=(e,t,n,r,o)=>{const i=yp(e,t,n,r),a=yp(e,t,n,o),s=r>o?1:0,l=Math.abs(r-o)>180?1:0;return`M ${i.x} ${i.y} A ${n} ${n} 0 ${l} ${s} ${a.x} ${a.y}`},vp=({variant:n=dp.CurrentOfMax,gaugeWidth:r,title:o,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=fp(a),{number:g}=fp(s),{number:m,prefix:f,suffix:y}=fp(l),b=i(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),E=180-180*v,S=v>0?bp(60,60,55,180,E):null,$=v<1?bp(60,60,55,E,0):null,C=yp(60,60,55,180),x=yp(60,60,55,0),w=d??(n===dp.GoodAgainstBad?b.v2.colors.green[500]:b.v2.colors.purple[400]),T=p??(n===dp.GoodAgainstBad?b.v2.colors.red[500]:b.v2.colors.silver[500]),[O,N]=Ft(null),A=e=>`${f}${e}${y}`,I=n===dp.GoodAgainstBad?Math.max(g-m,0):g,_="primary"===O?c:"secondary"===O?u:"",R="primary"===O?A(m):"secondary"===O?A(I):"",D=()=>N("primary"),k=()=>N("secondary"),L=()=>N(null);var P;return e(up,{children:[e(pp,{$width:r,children:[t(kd,{keepAlive:!0,fullWidth:!0,title:_,text:R,children:e(hp,{viewBox:"0 0 120 65",role:"img","aria-label":`${o}: ${m} of ${g}`,children:[S&&t("path",{d:S,fill:"none",stroke:w,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),$&&t("path",{d:$,fill:"none",stroke:T,strokeWidth:10,strokeLinecap:0===v?"round":"butt",onMouseEnter:k,onMouseLeave:L}),v>0&&t("circle",{cx:C.x,cy:C.y,r:5,fill:w,onMouseEnter:D,onMouseLeave:L}),v<1&&t("circle",{cx:x.x,cy:x.y,r:5,fill:T,onMouseEnter:k,onMouseLeave:L})]})}),o&&e(gp,{children:[t(br,{size:hr.XXXS,color:b.v2.colors.grey[150],align:"center",children:o}),t(br,{size:hr.L,weight:500,align:"center",children:`${f}${m}${y}`})]})]}),e(ei,{$gap:7,children:[e(Zo,{$gap:8,$alignItems:"center",children:[t(mp,{$color:w}),t(br,{size:hr.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:c})]}),e(Zo,{$gap:8,$alignItems:"center",children:[t(mp,{$color:T}),t(br,{size:hr.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},Ep=r(Zo)`
807
807
  width: 100%;
808
808
  padding: 8px 12px;
809
809
  border-radius: 6px;
@@ -812,26 +812,26 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
812
812
  align-items: center;
813
813
  justify-content: space-between;
814
814
  gap: 12px;
815
- `,mp=r.div`
815
+ `,Sp=r.div`
816
816
  position: relative;
817
817
  width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
818
818
  display: flex;
819
819
  align-items: center;
820
820
  gap: 4px;
821
- `,fp=r.pre`
821
+ `,$p=r.pre`
822
822
  flex: 1;
823
823
  margin: 0;
824
824
  padding: 0;
825
825
  font-size: 12px;
826
826
  color: #5ffb98; // TODO: add to theme
827
827
  overflow-x: auto;
828
- `,yp=r.span`
828
+ `,Cp=r.span`
829
829
  flex-shrink: 0;
830
830
  font-size: 14px;
831
831
  color: #5ffb98; // TODO: add to theme
832
- `,bp=({bgTint:n,label:r,value:o,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=nd({onDone:a}),l=jt(null),[c,d]=Ft(!1);return zt(()=>{const e=()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;d(e>t)}};e();const t=new ResizeObserver(e);return l.current&&t.observe(l.current),()=>{t.disconnect()}},[o]),e(ei,{$gap:4,children:[r&&t(br,{size:hr.XXXS,color:gr.Secondary,children:r}),e(gp,{$bgTint:n,children:[e(mp,{$hideCopy:i,children:[t(fp,{ref:l,children:o}),c&&t(yp,{children:"..."})]}),!i&&t(s,{value:o,size:Zc.XS})]})]})},vp=r(Zo)`
832
+ `,xp=({bgTint:n,label:r,value:o,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=ld({onDone:a}),l=jt(null),[c,d]=Ft(!1);return zt(()=>{const e=()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;d(e>t)}};e();const t=new ResizeObserver(e);return l.current&&t.observe(l.current),()=>{t.disconnect()}},[o]),e(ei,{$gap:4,children:[r&&t(br,{size:hr.XXXS,color:gr.Secondary,children:r}),e(Ep,{$bgTint:n,children:[e(Sp,{$hideCopy:i,children:[t($p,{ref:l,children:o}),c&&t(Cp,{children:"..."})]}),!i&&t(s,{value:o,size:id.XS})]})]})},wp=r(Zo)`
833
833
  gap: 0;
834
- `,Ep=r.button`
834
+ `,Tp=r.button`
835
835
  padding: 4px 8px;
836
836
  background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
837
837
  border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
@@ -843,20 +843,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
843
843
  &:hover {
844
844
  border: 1px solid ${({theme:e})=>e.colors.secondary};
845
845
  }
846
- `,Sp=({isPrettyMode:n,setIsPrettyMode:r})=>e(vp,{children:[t(Ep,{$position:"left",$selected:n,onClick:()=>r(!0),children:t(It,{})}),t(Ep,{$position:"right",$selected:!n,onClick:()=>r(!1),children:t(bt,{})})]}),$p=r.table`
846
+ `,Op=({isPrettyMode:n,setIsPrettyMode:r})=>e(wp,{children:[t(Tp,{$position:"left",$selected:n,onClick:()=>r(!0),children:t(It,{})}),t(Tp,{$position:"right",$selected:!n,onClick:()=>r(!1),children:t(bt,{})})]}),Np=r.table`
847
847
  border-collapse: collapse;
848
848
  font-family: ${({theme:e})=>e.font_family.primary};
849
- `,Cp=r.tbody``,xp=r.tr`
849
+ `,Ap=r.tbody``,Ip=r.tr`
850
850
  td:first-child {
851
851
  padding-left: 0 !important;
852
852
  }
853
853
  td:last-child {
854
854
  padding-right: 0 !important;
855
855
  }
856
- `,wp=r.td`
856
+ `,_p=r.td`
857
857
  vertical-align: top;
858
858
  padding: 4px 6px;
859
- `,Tp=r.span`
859
+ `,Rp=r.span`
860
860
  white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
861
861
  overflow-wrap: break-word;
862
862
  word-break: break-word;
@@ -864,7 +864,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
864
864
  /* Fallback for older browsers */
865
865
  -ms-word-break: break-all;
866
866
  font-size: 12px;
867
- `,Op=({language:e,code:n,theme:r,flatten:o,pretty:a})=>{const{darkMode:s}=i(),l=r?qt[r]:s?qt.palenight:qt.vsLight;let c="";if("json"===e){const e=Rr(n,{}),t=Bi(e);c=Hi(o?Yr(t):t)}else c=n;return a&&"json"===e?t(Np,{darkMode:s,str:c}):t(Jt,{theme:l||(s?qt.palenight:qt.vsLight),language:e,code:c,children:({getLineProps:e,getTokenProps:n,tokens:r})=>t("pre",{children:r.map((r,o)=>t("div",{...e({line:r}),children:r.map((e,r)=>t(Tp,{...n({token:e})},`line-${o}-token-${r}`))},`line-${o}`))})})},Np=({darkMode:n,str:r})=>{const o=i(),a=(n,r)=>{const i=new Array(n).fill(n=>e(xp,{...n,children:[t(wp,{}),t(wp,{})]}));return t(Ut,{children:i.map((e,n)=>t(e,{style:0===n?{borderBottom:`1px solid ${o.colors.border}`}:{}},`empty-row-${r}-${n}`))})};return t(Jt,{theme:n?qt.palenight:qt.vsLight,language:"json",code:r,children:({getLineProps:n,getTokenProps:r,tokens:i})=>t($p,{children:t(Cp,{children:i.map((i,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const n=[...e],r=["property","string"].includes(n[0])?t.replace(/"/g,""):t;return"string"===n[0]&&(["true","false"].includes(r.split("@")[0])&&(n[0]="boolean"),r.split("@")[0].match(/^[0-9]+$/)&&(n[0]="number")),{types:n,content:r}})})(i),c=n({line:l});return 1===l.length&&"property"===l[0].types[0]?e(Ut,{children:[a(2,s),e(xp,{...c,children:[t(wp,{children:t(br,{nowrap:!0,children:l[0].content})}),t(wp,{})]})]},`line-${s}`):2===l.length?t(xp,{...c,children:l.map((n,i)=>{const{text:a,components:l}=((e,n)=>{const[r,...o]=e.split("@");return{text:r,components:o?.map((e,r)=>{if(!e.includes("="))return null;const[o,i]=e.split("=");switch(o){case"tooltip":return t(Nd,{withIcon:!0,text:i},`${o}-${i}-${r}`);case"status":if("none"===i)return t("div",{style:{width:16,height:16}},`${o}-${i}-${r}`);let e=pi(i,n);return e||(e=pi(Tn.Warning,n)),t(e,{},`${o}-${i}-${r}`);default:return null}})?.filter(e=>!!e)||[]}})(n.content,o),c=0===i;return t(wp,{children:e(Zo,{children:[t(Zo,{children:l}),t(Tp,{$noWrap:c,...r({token:n}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},Ap=r.div`
867
+ `,Dp=({language:e,code:n,theme:r,flatten:o,pretty:a})=>{const{darkMode:s}=i(),l=r?qt[r]:s?qt.palenight:qt.vsLight;let c="";if("json"===e){const e=Rr(n,{}),t=Bi(e);c=Hi(o?Yr(t):t)}else c=n;return a&&"json"===e?t(kp,{darkMode:s,str:c}):t(Jt,{theme:l||(s?qt.palenight:qt.vsLight),language:e,code:c,children:({getLineProps:e,getTokenProps:n,tokens:r})=>t("pre",{children:r.map((r,o)=>t("div",{...e({line:r}),children:r.map((e,r)=>t(Rp,{...n({token:e})},`line-${o}-token-${r}`))},`line-${o}`))})})},kp=({darkMode:n,str:r})=>{const o=i(),a=(n,r)=>{const i=new Array(n).fill(n=>e(Ip,{...n,children:[t(_p,{}),t(_p,{})]}));return t(Ut,{children:i.map((e,n)=>t(e,{style:0===n?{borderBottom:`1px solid ${o.colors.border}`}:{}},`empty-row-${r}-${n}`))})};return t(Jt,{theme:n?qt.palenight:qt.vsLight,language:"json",code:r,children:({getLineProps:n,getTokenProps:r,tokens:i})=>t(Np,{children:t(Ap,{children:i.map((i,s)=>{const l=(e=>{const t=["punctuation","plain","operator"];return e.filter(e=>!t.includes(e.types[0])).map(({types:e,content:t})=>{const n=[...e],r=["property","string"].includes(n[0])?t.replace(/"/g,""):t;return"string"===n[0]&&(["true","false"].includes(r.split("@")[0])&&(n[0]="boolean"),r.split("@")[0].match(/^[0-9]+$/)&&(n[0]="number")),{types:n,content:r}})})(i),c=n({line:l});return 1===l.length&&"property"===l[0].types[0]?e(Ut,{children:[a(2,s),e(Ip,{...c,children:[t(_p,{children:t(br,{nowrap:!0,children:l[0].content})}),t(_p,{})]})]},`line-${s}`):2===l.length?t(Ip,{...c,children:l.map((n,i)=>{const{text:a,components:l}=((e,n)=>{const[r,...o]=e.split("@");return{text:r,components:o?.map((e,r)=>{if(!e.includes("="))return null;const[o,i]=e.split("=");switch(o){case"tooltip":return t(kd,{withIcon:!0,text:i},`${o}-${i}-${r}`);case"status":if("none"===i)return t("div",{style:{width:16,height:16}},`${o}-${i}-${r}`);let e=pi(i,n);return e||(e=pi(Tn.Warning,n)),t(e,{},`${o}-${i}-${r}`);default:return null}})?.filter(e=>!!e)||[]}})(n.content,o),c=0===i;return t(_p,{children:e(Zo,{children:[t(Zo,{children:l}),t(Rp,{$noWrap:c,...r({token:n}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},Lp=r.div`
868
868
  display: flex;
869
869
  align-items: ${({$slim:e})=>e?"flex-start":"center"};
870
870
  gap: 8px;
@@ -880,7 +880,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
880
880
  background-color: ${t?"transparent":n};
881
881
  }
882
882
  `}
883
- `,Ip=r.div`
883
+ `,Pp=r.div`
884
884
  display: flex;
885
885
  align-items: center;
886
886
  justify-content: center;
@@ -899,54 +899,54 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
899
899
  transform: scale(1.2);
900
900
  }
901
901
  `}
902
- `,_p=r(ei)`
902
+ `,Mp=r(ei)`
903
903
  flex: 1;
904
904
  align-self: ${({$slim:e})=>e?"flex-start":"center"};
905
905
  min-width: 0;
906
- `,Rp=r(ei)`
906
+ `,Up=r(ei)`
907
907
  align-self: stretch;
908
908
  flex-shrink: 0;
909
- `,Dp=r.div`
909
+ `,Fp=r.div`
910
910
  display: flex;
911
911
  align-items: center;
912
912
  justify-content: center;
913
913
  flex-shrink: 0;
914
914
  width: 24px;
915
915
  height: 24px;
916
- `,kp=({status:n,title:r,subTitle:o,details:a,actionDetails:s,badgeLabel:l,loading:c,actionButtons:d,isExtended:u=!1,toggleExtended:p,invertColors:h=!1,hideIcon:g=!1,hideBackground:m=!1,width:f,slim:y=!1})=>{const b=i(),v=pi(n,b),E=p?u?xt:wt:void 0,S=n===Tn.Unknown,$=n===Tn.Disabled,C=n===Tn.Loading||c,x=[Tn.Error,Tn.Warning,Tn.Success].includes(n),w=Io(b,n,$?h?"400":"700":S?"600":h?"300":"500"),T=$?b.v2.colors.grey[400]:h?b.v2.colors.white[500]:x?b.v2.colors.black[500]:b.v2.colors.white[500],O=h&&!S?w:T,N=!h||S||$?"rgba(0, 0, 0, 0.13)":Io(b,n,"800"),A=$?b.v2.colors.grey[900]:h||S?b.v2.colors.silver[800]:w,I=$?b.v2.colors.grey[800]:h||S?b.v2.colors.silver[700]:Io(b,n,"600");return e(Ap,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:I,$slim:y,onClick:p,children:[!g&&t(Ip,{$backgroundColor:N,$slim:y,children:C?t(ui,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(_p,{$gap:4,$justifyContent:"center",$slim:y,children:[e(Zo,{$gap:10,$alignItems:"center",children:[t(br,{size:y?hr.XS:hr.S,weight:500,color:O,children:r}),l&&t(Id,{label:l,backgroundColor:b.v2.colors.silver[600],textColor:b.v2.colors.white[500],textSize:hr.XXXS})]}),o&&t(br,{size:hr.XXXS,color:T,children:o}),a]}),(!!d?.length||s)&&e(Rp,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!d?.length&&t(Zo,{$gap:8,children:d.map(e=>t(kd,{...e,variant:_d.Secondary,size:Rd.S},e["data-id"]??e.label))}),s]}),E&&t(Dp,{children:t(E,{size:24,fill:T})})]})},Lp=r.div`
916
+ `,zp=({status:n,title:r,subTitle:o,details:a,actionDetails:s,badgeLabel:l,loading:c,actionButtons:d,isExtended:u=!1,toggleExtended:p,invertColors:h=!1,hideIcon:g=!1,hideBackground:m=!1,width:f,slim:y=!1})=>{const b=i(),v=pi(n,b),E=p?u?xt:wt:void 0,S=n===Tn.Unknown,$=n===Tn.Disabled,C=n===Tn.Loading||c,x=[Tn.Error,Tn.Warning,Tn.Success].includes(n),w=Io(b,n,$?h?"400":"700":S?"600":h?"300":"500"),T=$?b.v2.colors.grey[400]:h?b.v2.colors.white[500]:x?b.v2.colors.black[500]:b.v2.colors.white[500],O=h&&!S?w:T,N=!h||S||$?"rgba(0, 0, 0, 0.13)":Io(b,n,"800"),A=$?b.v2.colors.grey[900]:h||S?b.v2.colors.silver[800]:w,I=$?b.v2.colors.grey[800]:h||S?b.v2.colors.silver[700]:Io(b,n,"600");return e(Lp,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:I,$slim:y,onClick:p,children:[!g&&t(Pp,{$backgroundColor:N,$slim:y,children:C?t(ui,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(Mp,{$gap:4,$justifyContent:"center",$slim:y,children:[e(Zo,{$gap:10,$alignItems:"center",children:[t(br,{size:y?hr.XS:hr.S,weight:500,color:O,children:r}),l&&t(Pd,{label:l,backgroundColor:b.v2.colors.silver[600],textColor:b.v2.colors.white[500],textSize:hr.XXXS})]}),o&&t(br,{size:hr.XXXS,color:T,children:o}),a]}),(!!d?.length||s)&&e(Up,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!d?.length&&t(Zo,{$gap:8,children:d.map(e=>t(zd,{...e,variant:Md.Secondary,size:Ud.S},e["data-id"]??e.label))}),s]}),E&&t(Fp,{children:t(E,{size:24,fill:T})})]})},Bp=r.div`
917
917
  display: flex;
918
918
  flex-direction: column;
919
919
  width: 100%;
920
920
  border-radius: 12px;
921
921
  overflow: hidden;
922
- `,Pp=r.div`
922
+ `,Hp=r.div`
923
923
  display: flex;
924
924
  flex-direction: column;
925
925
  gap: 8px;
926
926
  padding: 8px 12px 16px 12px;
927
927
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
928
- `,Mp=r.div`
928
+ `,jp=r.div`
929
929
  display: flex;
930
930
  align-items: center;
931
931
  gap: 8px;
932
- `,Up=r.div`
932
+ `,Wp=r.div`
933
933
  display: flex;
934
934
  align-items: center;
935
935
  justify-content: center;
936
936
  flex-shrink: 0;
937
937
  width: 18px;
938
938
  height: 18px;
939
- `,Fp=({conditions:n,title:r,subTitle:o})=>{const a=i(),[s,l]=Ft(!1),c=Bt(()=>l(e=>!e),[]),d=Ht(()=>Ri(n),[n]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Ht(()=>to(d),[d]);zt(()=>{l(p||g||m)},[p,g,m]);const y=Ht(()=>(!d.length||f)&&!p&&!g&&!m,[d.length,f,p,g,m]),b=Ht(()=>p?Tn.Error:g?Tn.Warning:m?Tn.Info:Tn.Success,[p,g,m]),v=Ht(()=>r||(1===d.length?ur(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:n,loading:r})=>e?"Something Failed":t||n?"Something isn't right":r?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:y}),[r,d,p,g,m,y]),E=Ht(()=>o||1===d.length&&d[0].message||void 0,[o,d]),S=Ht(()=>`${p?u.length:g?h.length:d.length}/${d.length}`,[p,u.length,g,h.length,d.length]);return e(Lp,{children:[t(kp,{status:b,invertColors:!0,title:v,subTitle:E,badgeLabel:S,loading:y,isExtended:s,toggleExtended:c}),s&&t(Pp,{children:d.map(({status:n,type:r,reason:o,message:i},s)=>{const l=n===Tn.Loading,c=n===Tn.Disabled?Tn.Info:n,d=l?null:pi(c,a),u=n===Tn.Error?Io(a,Tn.Error,"500"):n===Tn.Warning?Io(a,Tn.Warning,"500"):a.v2.colors.white[500],p=[r,i||o].filter(Boolean).join(" - ");return e(Mp,{children:[t(Up,{children:l||!d?t(ui,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(d,{size:18})}),t(br,{size:hr.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},zp=r.div`
939
+ `,Gp=({conditions:n,title:r,subTitle:o})=>{const a=i(),[s,l]=Ft(!1),c=Bt(()=>l(e=>!e),[]),d=Ht(()=>Ri(n),[n]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Ht(()=>to(d),[d]);zt(()=>{l(p||g||m)},[p,g,m]);const y=Ht(()=>(!d.length||f)&&!p&&!g&&!m,[d.length,f,p,g,m]),b=Ht(()=>p?Tn.Error:g?Tn.Warning:m?Tn.Info:Tn.Success,[p,g,m]),v=Ht(()=>r||(1===d.length?ur(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:n,loading:r})=>e?"Something Failed":t||n?"Something isn't right":r?"Loading...":"Everything Successful")({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:y}),[r,d,p,g,m,y]),E=Ht(()=>o||1===d.length&&d[0].message||void 0,[o,d]),S=Ht(()=>`${p?u.length:g?h.length:d.length}/${d.length}`,[p,u.length,g,h.length,d.length]);return e(Bp,{children:[t(zp,{status:b,invertColors:!0,title:v,subTitle:E,badgeLabel:S,loading:y,isExtended:s,toggleExtended:c}),s&&t(Hp,{children:d.map(({status:n,type:r,reason:o,message:i},s)=>{const l=n===Tn.Loading,c=n===Tn.Disabled?Tn.Info:n,d=l?null:pi(c,a),u=n===Tn.Error?Io(a,Tn.Error,"500"):n===Tn.Warning?Io(a,Tn.Warning,"500"):a.v2.colors.white[500],p=[r,i||o].filter(Boolean).join(" - ");return e(jp,{children:[t(Wp,{children:l||!d?t(ui,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(d,{size:18})}),t(br,{size:hr.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},Xp=r.div`
940
940
  width: ${({$orientation:e,$thickness:t,$length:n})=>e===gn.Vertical?`${t}px`:n||"100%"};
941
941
  height: ${({$orientation:e,$thickness:t,$length:n})=>e===gn.Horizontal?`${t}px`:n||"100%"};
942
942
  margin: ${({$orientation:e,$margin:t})=>t||(e===gn.Horizontal?"8px 0":"0 8px")};
943
- background-color: ${({$type:e,theme:t})=>(e?Io(t,e):t.v2.colors.grey[400])+Bd["050"]};
943
+ background-color: ${({$type:e,theme:t})=>(e?Io(t,e):t.v2.colors.grey[400])+Vd["050"]};
944
944
  opacity: ${({$opacity:e})=>e||1};
945
- `,Bp=({orientation:e=gn.Horizontal,type:n,thickness:r=1,length:o,margin:i,opacity:a})=>t(zp,{$orientation:e,$type:n,$thickness:r,$length:o,$margin:i,$opacity:a});var Hp,jp,Wp;(e=>{e.Default="default",e.SuccessError="successError"})(Hp||(Hp={})),(e=>{e.S="small",e.L="large"})(jp||(jp={})),(e=>{e.Left="left",e.Right="right"})(Wp||(Wp={}));const Gp=r.div`
945
+ `,Vp=({orientation:e=gn.Horizontal,type:n,thickness:r=1,length:o,margin:i,opacity:a})=>t(Xp,{$orientation:e,$type:n,$thickness:r,$length:o,$margin:i,$opacity:a});var Kp,Yp,Jp;(e=>{e.Default="default",e.SuccessError="successError"})(Kp||(Kp={})),(e=>{e.S="small",e.L="large"})(Yp||(Yp={})),(e=>{e.Left="left",e.Right="right"})(Jp||(Jp={}));const qp=r.div`
946
946
  display: flex;
947
947
  align-items: center;
948
948
  gap: ${({$gap:e})=>e}px;
949
- `,Xp=r.div`
949
+ `,Qp=r.div`
950
950
  position: relative;
951
951
  display: flex;
952
952
  align-items: center;
@@ -957,11 +957,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
957
957
  height: ${({$size:e})=>e}px;
958
958
  padding: ${4}px;
959
959
  border-radius: ${({$size:e})=>2*e}px;
960
- background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:n,$variant:r,$value:o,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&o)return t;if(n&&!o)return n;switch(r){case Hp.SuccessError:return o?i.v2.colors.green[500]:i.v2.colors.red[500];case Hp.Default:default:return o?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
960
+ background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:n,$variant:r,$value:o,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&o)return t;if(n&&!o)return n;switch(r){case Kp.SuccessError:return o?i.v2.colors.green[500]:i.v2.colors.red[500];case Kp.Default:default:return o?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
961
961
 
962
962
  border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
963
963
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
964
- `,Vp=r.div`
964
+ `,Zp=r.div`
965
965
  position: absolute;
966
966
  top: 50%;
967
967
  left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
@@ -971,17 +971,17 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
971
971
  border-radius: 100%;
972
972
  background-color: ${({$color:e})=>e};
973
973
  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)"};
974
- `,Kp=({variant:r=Hp.Default,size:o=jp.L,name:a,label:s,labelAlign:l=Wp.Right,labelColor:c,tooltip:d,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=vt,offIcon:y=$t,onBgColor:b,offBgColor:v,errorMessage:E,warnMessage:S,helpMessage:$})=>{const C=i(),x=g?C.v2.colors.grey[400]:C.v2.colors.white[500],w=o===jp.S?10:16,T=c||C.v2.colors.silver[200],O=o===jp.S?hr.XXXS:hr.XS,N=o===jp.S?8:12;return e(ei,{$gap:4,children:[e(Zo,{$justifyContent:"space-between",children:[e(Gp,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===Wp.Left&&t(br,{color:T,size:O,nowrap:!0,children:s}),e(Xp,{$onBgColor:b,$offBgColor:v,$variant:r,$size:w,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(Vp,{$color:x,$size:w,$value:p,$disabled:g}),m&&e(n,{children:[t(f,{size:w,fill:x}),t(y,{size:w,fill:x})]})]}),s&&l===Wp.Right&&t(br,{color:T,size:O,nowrap:!0,children:s})]}),t(cu,{tooltip:d,badge:u})]}),t(du,{errorMessage:E,warnMessage:S,helpMessage:$})]})},Yp=r.div`
974
+ `,eh=({variant:r=Kp.Default,size:o=Yp.L,name:a,label:s,labelAlign:l=Jp.Right,labelColor:c,tooltip:d,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=vt,offIcon:y=$t,onBgColor:b,offBgColor:v,errorMessage:E,warnMessage:S,helpMessage:$})=>{const C=i(),x=g?C.v2.colors.grey[400]:C.v2.colors.white[500],w=o===Yp.S?10:16,T=c||C.v2.colors.silver[200],O=o===Yp.S?hr.XXXS:hr.XS,N=o===Yp.S?8:12;return e(ei,{$gap:4,children:[e(Zo,{$justifyContent:"space-between",children:[e(qp,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===Jp.Left&&t(br,{color:T,size:O,nowrap:!0,children:s}),e(Qp,{$onBgColor:b,$offBgColor:v,$variant:r,$size:w,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(Zp,{$color:x,$size:w,$value:p,$disabled:g}),m&&e(n,{children:[t(f,{size:w,fill:x}),t(y,{size:w,fill:x})]})]}),s&&l===Jp.Right&&t(br,{color:T,size:O,nowrap:!0,children:s})]}),t(mu,{tooltip:d,badge:u})]}),t(fu,{errorMessage:E,warnMessage:S,helpMessage:$})]})},th=r.div`
975
975
  display: flex;
976
976
  flex-direction: ${({$direction:e})=>e===gn.Horizontal?"row":"column"};
977
977
  gap: ${({$direction:e})=>e===gn.Horizontal?16:8}px;
978
- `,Jp=({direction:n=gn.Vertical,title:r,size:o,disabled:i,options:a,values:s,setValues:l})=>{const c=o===jp.S?hr.XS:hr.S;return e(Yp,{$direction:n,children:[r&&t(br,{size:c,children:r}),a.map(e=>t(Kp,{...e,labelAlign:Wp.Right,value:s[e.id],onChange:t=>{return n=e.id,r=t,void l(e=>{const t={...e};return n?t[n]=r:a.forEach(e=>t[e.id]=r),t});var n,r},disabled:i,size:o},`${r}-toggle-${e.id}`))]})},qp=r.div`
978
+ `,nh=({direction:n=gn.Vertical,title:r,size:o,disabled:i,options:a,values:s,setValues:l})=>{const c=o===Yp.S?hr.XS:hr.S;return e(th,{$direction:n,children:[r&&t(br,{size:c,children:r}),a.map(e=>t(eh,{...e,labelAlign:Jp.Right,value:s[e.id],onChange:t=>{return n=e.id,r=t,void l(e=>{const t={...e};return n?t[n]=r:a.forEach(e=>t[e.id]=r),t});var n,r},disabled:i,size:o},`${r}-toggle-${e.id}`))]})},rh=r.div`
979
979
  display: flex;
980
980
  align-items: center;
981
981
  justify-content: space-between;
982
982
  width: 100%;
983
983
  overflow: hidden;
984
- `,Qp=r.div`
984
+ `,oh=r.div`
985
985
  display: flex;
986
986
  align-items: center;
987
987
  gap: 16px;
@@ -989,7 +989,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
989
989
  min-width: 0;
990
990
  flex: 1;
991
991
  overflow: hidden;
992
- `,Zp=r.div`
992
+ `,ih=r.div`
993
993
  display: flex;
994
994
  align-items: center;
995
995
  justify-content: center;
@@ -998,23 +998,23 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
998
998
  height: 36px;
999
999
  border-radius: 8px;
1000
1000
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1001
- `,eh=r.img`
1001
+ `,ah=r.img`
1002
1002
  width: 24px;
1003
1003
  height: 24px;
1004
- `,th=r.div`
1004
+ `,sh=r.div`
1005
1005
  display: flex;
1006
1006
  align-items: center;
1007
1007
  gap: 16px;
1008
1008
  flex-shrink: 0;
1009
- `,nh=({icon:n,iconSrc:r,title:o,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>e(qp,{children:[e(Qp,{children:[n?t(Zp,{children:t(n,{size:24})}):r?t(Zp,{children:t(eh,{src:r,alt:o||"icon"})}):null,(o||i?.length||a)&&e(ei,{$gap:6,children:[(o||i?.length)&&e(Zo,{$gap:16,children:[o&&t(br,{size:hr.S,weight:500,children:o}),i?.length&&t(Zo,{$gap:4,children:i?.map((e,n)=>t(Id,{...e},`${e.label}-${n}`))})]}),a&&t(br,{size:hr.XXS,children:a})]})]}),e(th,{children:[s&&t(Kp,{...s}),l?.length?t(Ou,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:l,selectedIds:l?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>l?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&t(td,{"data-id":"drawer-close",icon:$t,size:Zc.M,onClick:c,disabled:d})]})]}),rh=r.div`
1009
+ `,lh=({icon:n,iconSrc:r,title:o,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>e(rh,{children:[e(oh,{children:[n?t(ih,{children:t(n,{size:24})}):r?t(ih,{children:t(ah,{src:r,alt:o||"icon"})}):null,(o||i?.length||a)&&e(ei,{$gap:6,children:[(o||i?.length)&&e(Zo,{$gap:16,children:[o&&t(br,{size:hr.S,weight:500,children:o}),i?.length&&t(Zo,{$gap:4,children:i?.map((e,n)=>t(Pd,{...e},`${e.label}-${n}`))})]}),a&&t(br,{size:hr.XXS,children:a})]})]}),e(sh,{children:[s&&t(eh,{...s}),l?.length?t(Du,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:l,selectedIds:l?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>l?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&t(sd,{"data-id":"drawer-close",icon:$t,size:id.M,onClick:c,disabled:d})]})]}),ch=r.div`
1010
1010
  position: relative;
1011
1011
  &.animated {
1012
1012
  overflow: hidden;
1013
1013
  padding-bottom: 1px;
1014
1014
  border-radius: 8px;
1015
- animation: ${({$isLeaving:e})=>e?jd.out.bottom:jd.in.bottom} ${({$duration:e})=>e/10}ms forwards;
1015
+ animation: ${({$isLeaving:e})=>e?Yd.out.bottom:Yd.in.bottom} ${({$duration:e})=>e/10}ms forwards;
1016
1016
  }
1017
- `,oh=r.div`
1017
+ `,dh=r.div`
1018
1018
  position: absolute;
1019
1019
  bottom: -1px;
1020
1020
  left: 0;
@@ -1023,8 +1023,8 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1023
1023
  height: 100%;
1024
1024
  border-radius: 8px;
1025
1025
  background-color: ${({theme:e,$status:t})=>Io(e,t,t===Tn.Default?"300":t===Tn.Info?"400":"500")};
1026
- animation: ${Wd.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
1027
- `,ih=r.div`
1026
+ animation: ${Jd.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
1027
+ `,uh=r.div`
1028
1028
  display: flex;
1029
1029
  align-items: center;
1030
1030
  gap: 10px;
@@ -1034,7 +1034,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1034
1034
  padding: 8px 12px 8px 8px;
1035
1035
  border-radius: 8px;
1036
1036
  background-color: ${({theme:e,$status:t})=>Io(e,t,[Tn.Info,Tn.Warning].includes(t)?"1000":"900")};
1037
- `,ah=r.div`
1037
+ `,ph=r.div`
1038
1038
  width: ${({$smallIcon:e})=>e?"24px":"32px"};
1039
1039
  height: ${({$smallIcon:e})=>e?"24px":"32px"};
1040
1040
  display: flex;
@@ -1042,28 +1042,28 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1042
1042
  justify-content: center;
1043
1043
  border-radius: 6px;
1044
1044
  background-color: ${({theme:e,$status:t})=>Io(e,t,[Tn.Info].includes(t)?"900":"800")};
1045
- `,sh=r.div`
1045
+ `,hh=r.div`
1046
1046
  margin-left: auto;
1047
1047
  display: flex;
1048
1048
  align-items: center;
1049
1049
  gap: 4px;
1050
- `,lh=r.div`
1050
+ `,gh=r.div`
1051
1051
  margin-right: 8px;
1052
1052
  cursor: pointer;
1053
1053
  &:hover {
1054
1054
  transform: scale(1.2);
1055
1055
  }
1056
- `,ch=({status:n,message:r,action:o,fullWidth:a,maxWidth:s,smallIcon:l,onClose:c,duration:d=5e3,zIndex:u})=>{const p=i(),h=pi(n,p),g=Io(p,n,n===Tn.Default?"300":n===Tn.Info?"400":"500"),[m,f]=Ft(!1),y=jt(null),b=jt(null),v=d/10,E=d-v,S=e=>{c&&(y.current&&clearTimeout(y.current),f(!0),setTimeout(()=>c({asSeen:e?.asSeen}),v))};return zt(()=>{if(c)return y.current=setTimeout(()=>S({asSeen:!1}),E),()=>{y.current&&clearTimeout(y.current)}},[d]),e(rh,{className:c?"animated":"",$duration:d,$isLeaving:m,onMouseEnter:()=>{c&&(y.current&&clearTimeout(y.current),b.current&&(b.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(c&&b.current){const e=b.current.offsetWidth/b.current.parentElement.offsetWidth*E;y.current=setTimeout(()=>S({asSeen:!1}),e),b.current.style.animationPlayState="running"}},style:{zIndex:u,maxWidth:s},children:[e(ih,{$status:n,$fullWidth:a,children:[t("div",{children:t(ah,{$status:n,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(br,{color:g,size:hr.XXXS,weight:400,children:r}),(o||c)&&e(sh,{children:[o&&t(lh,{"data-id":o["data-id"],onClick:o.onClick,children:t(br,{color:g,size:hr.XXS,weight:500,underline:!0,nowrap:!0,children:o.label})}),c&&t(td,{"data-id":"note-close",icon:$t,size:Zc.XS,onClick:()=>S({asSeen:!0})})]})]}),c&&t(oh,{ref:b,$status:n,$duration:d})]})},dh=r.div`
1056
+ `,mh=({status:n,message:r,action:o,fullWidth:a,maxWidth:s,smallIcon:l,onClose:c,duration:d=5e3,zIndex:u})=>{const p=i(),h=pi(n,p),g=Io(p,n,n===Tn.Default?"300":n===Tn.Info?"400":"500"),[m,f]=Ft(!1),y=jt(null),b=jt(null),v=d/10,E=d-v,S=e=>{c&&(y.current&&clearTimeout(y.current),f(!0),setTimeout(()=>c({asSeen:e?.asSeen}),v))};return zt(()=>{if(c)return y.current=setTimeout(()=>S({asSeen:!1}),E),()=>{y.current&&clearTimeout(y.current)}},[d]),e(ch,{className:c?"animated":"",$duration:d,$isLeaving:m,onMouseEnter:()=>{c&&(y.current&&clearTimeout(y.current),b.current&&(b.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(c&&b.current){const e=b.current.offsetWidth/b.current.parentElement.offsetWidth*E;y.current=setTimeout(()=>S({asSeen:!1}),e),b.current.style.animationPlayState="running"}},style:{zIndex:u,maxWidth:s},children:[e(uh,{$status:n,$fullWidth:a,children:[t("div",{children:t(ph,{$status:n,$smallIcon:l,children:t(h,{size:l?18:24})})}),t(br,{color:g,size:hr.XXXS,weight:400,children:r}),(o||c)&&e(hh,{children:[o&&t(gh,{"data-id":o["data-id"],onClick:o.onClick,children:t(br,{color:g,size:hr.XXS,weight:500,underline:!0,nowrap:!0,children:o.label})}),c&&t(sd,{"data-id":"note-close",icon:$t,size:id.XS,onClick:()=>S({asSeen:!0})})]})]}),c&&t(dh,{ref:b,$status:n,$duration:d})]})},fh=r.div`
1057
1057
  display: flex;
1058
1058
  align-items: center;
1059
1059
  gap: 8px;
1060
1060
  padding: 4px 12px;
1061
- `,uh=r.div`
1061
+ `,yh=r.div`
1062
1062
  flex: 1;
1063
- `,ph=r.div`
1063
+ `,bh=r.div`
1064
1064
  min-width: 150px;
1065
1065
  width: fit-content;
1066
- `,hh=({note:n,actions:r,children:o})=>o?t(dh,{children:o}):e(dh,{children:[n&&t(ch,{...n}),t(uh,{}),r?.map((e,n)=>t(ph,{children:t(kd,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${n}`))]}),gh=r.div`
1066
+ `,vh=({note:n,actions:r,children:o})=>o?t(fh,{children:o}):e(fh,{children:[n&&t(mh,{...n}),t(yh,{}),r?.map((e,n)=>t(bh,{children:t(zd,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${n}`))]}),Eh=r.div`
1067
1067
  position: fixed;
1068
1068
  top: 0;
1069
1069
  bottom: 0;
@@ -1083,16 +1083,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1083
1083
  overflow: hidden;
1084
1084
 
1085
1085
  ${({$disableAnimation:e,$position:t})=>!e&&o`
1086
- animation-name: ${jd.in[t]};
1086
+ animation-name: ${Yd.in[t]};
1087
1087
  `}
1088
- `,mh=r.div`
1088
+ `,Sh=r.div`
1089
1089
  display: flex;
1090
1090
  flex-direction: column;
1091
1091
  gap: 12px;
1092
1092
 
1093
1093
  height: calc(100% - ${56}px);
1094
1094
  overflow-y: auto;
1095
- `,fh=({isOpen:r,hideOverlay:o=!1,disableAnimation:i=!1,position:a="right",width:s="600px",minWidth:l,header:c,footer:d,children:u})=>(qc(r),r?Yt(e(n,{children:[!o&&t(ri,{onClick:c?.onCloseDisabled?void 0:c?.onClose}),e(gh,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[c&&t(nh,{...c}),t(mh,{children:u}),d&&t(hh,{...d})]})]}),document.body):null),yh=({options:e,values:n,setValues:r,withMultiSelect:o,withSearch:i,...a})=>{const s=Ht(()=>e.filter(e=>n.includes(e.id)),[e,n]),l=Ht(()=>s.map(e=>e.label).join(", "),[s]);return t(Ou,{withMultiSelect:o,withSearch:i,fullWidth:!0,alignX:yu.Left,items:e,selectedIds:n,setSelectedIds:r,children:({ChevronIcon:e,handleClick:n})=>t(qu,{placeholder:"Select options...",width:"100%",...a,rightIcon:e,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:n,readOnly:!0,tabIndex:-1})})},bh=({error:n})=>{const r=i(),o={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:r.text.error,fontFamily:r.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:r.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:r.text.secondary,fontSize:"14px"}};return e("div",{style:o.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:o.errorMessage,children:n?.message||"Unknown Error"}),e("details",{style:o.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:o.errorStack,children:n?.stack||"Unknown Stack"})]}),t("p",{style:o.infoText,children:"Try refreshing the page or contact support"}),t(kd,{variant:_d.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},vh=({children:e})=>t(en,{FallbackComponent:({error:e,...n})=>t(zd,{children:t(bh,{...n,error:e})}),children:e}),Eh=r.header`
1095
+ `,$h=({isOpen:r,hideOverlay:o=!1,disableAnimation:i=!1,position:a="right",width:s="600px",minWidth:l,header:c,footer:d,children:u})=>(rd(r),r?Yt(e(n,{children:[!o&&t(ri,{onClick:c?.onCloseDisabled?void 0:c?.onClose}),e(Eh,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[c&&t(lh,{...c}),t(Sh,{children:u}),d&&t(vh,{...d})]})]}),document.body):null),Ch=({options:e,values:n,setValues:r,withMultiSelect:o,withSearch:i,...a})=>{const s=Ht(()=>e.filter(e=>n.includes(e.id)),[e,n]),l=Ht(()=>s.map(e=>e.label).join(", "),[s]);return t(Du,{withMultiSelect:o,withSearch:i,fullWidth:!0,alignX:Cu.Left,items:e,selectedIds:n,setSelectedIds:r,children:({ChevronIcon:e,handleClick:n})=>t(rp,{placeholder:"Select options...",width:"100%",...a,rightIcon:e,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:n,readOnly:!0,tabIndex:-1})})},xh=({error:n})=>{const r=i(),o={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:r.text.error,fontFamily:r.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:r.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:r.text.secondary,fontSize:"14px"}};return e("div",{style:o.container,children:[t("h2",{children:"Something went wrong!"}),t("pre",{style:o.errorMessage,children:n?.message||"Unknown Error"}),e("details",{style:o.errorStackWrapper,children:[t("summary",{children:"Stack Trace"}),t("pre",{style:o.errorStack,children:n?.stack||"Unknown Stack"})]}),t("p",{style:o.infoText,children:"Try refreshing the page or contact support"}),t(zd,{variant:Md.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},wh=({children:e})=>t(en,{FallbackComponent:({error:e,...n})=>t(Xd,{children:t(xh,{...n,error:e})}),children:e}),Th=r.header`
1096
1096
  position: relative;
1097
1097
  width: 100%;
1098
1098
  padding: 12px 18px;
@@ -1100,12 +1100,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1100
1100
  display: flex;
1101
1101
  align-items: center;
1102
1102
  justify-content: space-between;
1103
- `,Sh=r(Zo)`
1103
+ `,Oh=r(Zo)`
1104
1104
  position: absolute;
1105
1105
  left: 50%;
1106
1106
  transform: translateX(-50%);
1107
1107
  gap: 16px;
1108
- `,$h=({left:n=[],center:r=[],right:o=[]})=>e(Eh,{children:[t(Zo,{$gap:16,children:n}),t(Sh,{children:r}),t(Zo,{$gap:16,children:o})]}),Ch=r.div`
1108
+ `,Nh=({left:n=[],center:r=[],right:o=[]})=>e(Th,{children:[t(Zo,{$gap:16,children:n}),t(Oh,{children:r}),t(Zo,{$gap:16,children:o})]}),Ah=r.div`
1109
1109
  display: flex;
1110
1110
  align-items: center;
1111
1111
  gap: 2px;
@@ -1120,7 +1120,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1120
1120
  left: ${({$left:e})=>e||"unset"};
1121
1121
  top: 50%;
1122
1122
  transform: translateY(-50%);
1123
- `,xh=({isOpen:e,actions:n,positionRight:r,positionLeft:o})=>e?t(Ch,{$right:r,$left:o,children:n.map(e=>{if(!e)return null;const{tooltip:n,...r}=e;return t(Nd,{text:n||"",children:t(kd,{...r,variant:_d.Secondary,size:Rd.S})},r.id)})}):null,wh=r.div`
1123
+ `,Ih=({isOpen:e,actions:n,positionRight:r,positionLeft:o})=>e?t(Ah,{$right:r,$left:o,children:n.map(e=>{if(!e)return null;const{tooltip:n,...r}=e;return t(kd,{text:n||"",children:t(zd,{...r,variant:Md.Secondary,size:Ud.S})},r.id)})}):null,_h=r.div`
1124
1124
  display: flex;
1125
1125
  align-items: center;
1126
1126
  justify-content: center;
@@ -1129,31 +1129,31 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1129
1129
  aspect-ratio: 1 / 1;
1130
1130
  border-radius: 8px;
1131
1131
  background-color: ${({theme:e,$noBackground:t,$status:n})=>t?"transparent":n?Io(e,n,n===Tn.Warning?"1000":"900"):e.v2.colors.silver[800]};
1132
- `,Th=({icons:n,icon:r,iconSrc:o,status:a,size:s=28,padding:l=4})=>{const c=i(),d=s/2.7,u=s/1.3,p=Co(d,c.v2.text.size);if(n&&n.length>1){const r=n.slice(0,3),o=n.length-r.length,i=r.slice(0,2),c=r.slice(2),u=c.length>0,h=Math.round(s/16);return t("div",{style:{width:"fit-content"},children:t(wh,{$size:s,$padding:l,$status:a,children:e(ei,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(Zo,{$gap:h,$alignItems:"center",$justifyContent:"center",children:i.map((e,n)=>t(e,{size:d},`top-${n}`))}),u&&e(Zo,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[c.map((e,n)=>t(e,{size:d},`bottom-${n}`)),o>0&&t(br,{size:p,weight:500,children:`+${o}`})]})]})})})}const h=n?.[0]||r;return t("div",{style:{width:"fit-content"},children:t(wh,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:o,alt:"",width:u,height:u})})})},Oh=r.div`
1132
+ `,Rh=({icons:n,icon:r,iconSrc:o,status:a,size:s=28,padding:l=4})=>{const c=i(),d=s/2.7,u=s/1.3,p=Co(d,c.v2.text.size);if(n&&n.length>1){const r=n.slice(0,3),o=n.length-r.length,i=r.slice(0,2),c=r.slice(2),u=c.length>0,h=Math.round(s/16);return t("div",{style:{width:"fit-content"},children:t(_h,{$size:s,$padding:l,$status:a,children:e(ei,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(Zo,{$gap:h,$alignItems:"center",$justifyContent:"center",children:i.map((e,n)=>t(e,{size:d},`top-${n}`))}),u&&e(Zo,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[c.map((e,n)=>t(e,{size:d},`bottom-${n}`)),o>0&&t(br,{size:p,weight:500,children:`+${o}`})]})]})})})}const h=n?.[0]||r;return t("div",{style:{width:"fit-content"},children:t(_h,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:o,alt:"",width:u,height:u})})})},Dh=r.div`
1133
1133
  width: 100%;
1134
1134
  border-radius: 8px;
1135
1135
  padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
1136
1136
  background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
1137
- `,Nh=({values:n,setValues:r,name:o,label:a,tooltip:s,badge:l,required:c,errorMessage:d,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,plain:m})=>{const f=i(),y=n.length<=1,b=g,v=g||y&&b,E=n.length?n:[""];return t(Oh,{$plain:m,children:e(ei,{"data-id":o,$gap:6,children:[t(cu,{label:a,tooltip:s,required:c,badge:l}),t(ei,{$gap:8,children:E.map((o,i)=>{const a=i===E.length-1;return e(Zo,{$gap:8,$alignItems:"center",children:[t(qu,{width:"100%",autoFocus:wi(o)&&!y&&a,value:o,onChange:e=>((e,t)=>{const o=[...n||[]];o[t]=e,r(o)})(e.target.value,i),disabled:g,placeholder:h,hasError:!!d}),a&&t(kd,{leftIcon:_t,variant:_d.Secondary,size:Rd.S,disabled:b,onClick:()=>(()=>{const e=n.length?Br(n):[Br("")];e.push(""),r(e)})()}),t(kd,{leftIcon:v?Rt:()=>t(Rt,{fill:f.v2.colors.red[500]}),variant:_d.Secondary,size:Rd.S,disabled:v,onClick:()=>(e=>{const t=[...n||[]].filter((t,n)=>n!==e);t.length||t.push(""),r(t)})(i)})]},`input-list-${i}`)})}),t(du,{errorMessage:d,warnMessage:u,helpMessage:p})]})})};var Ah;(e=>{e.S="small",e.L="large"})(Ah||(Ah={}));const Ih=r.div`
1137
+ `,kh=({values:n,setValues:r,name:o,label:a,tooltip:s,badge:l,required:c,errorMessage:d,warnMessage:u,helpMessage:p,placeholder:h,disabled:g,plain:m})=>{const f=i(),y=n.length<=1,b=g,v=g||y&&b,E=n.length?n:[""];return t(Dh,{$plain:m,children:e(ei,{"data-id":o,$gap:6,children:[t(mu,{label:a,tooltip:s,required:c,badge:l}),t(ei,{$gap:8,children:E.map((o,i)=>{const a=i===E.length-1;return e(Zo,{$gap:8,$alignItems:"center",children:[t(rp,{width:"100%",autoFocus:wi(o)&&!y&&a,value:o,onChange:e=>((e,t)=>{const o=[...n||[]];o[t]=e,r(o)})(e.target.value,i),disabled:g,placeholder:h,hasError:!!d}),a&&t(zd,{leftIcon:_t,variant:Md.Secondary,size:Ud.S,disabled:b,onClick:()=>(()=>{const e=n.length?Br(n):[Br("")];e.push(""),r(e)})()}),t(zd,{leftIcon:v?Rt:()=>t(Rt,{fill:f.v2.colors.red[500]}),variant:Md.Secondary,size:Ud.S,disabled:v,onClick:()=>(e=>{const t=[...n||[]].filter((t,n)=>n!==e);t.length||t.push(""),r(t)})(i)})]},`input-list-${i}`)})}),t(fu,{errorMessage:d,warnMessage:u,helpMessage:p})]})})};var Lh;(e=>{e.S="small",e.L="large"})(Lh||(Lh={}));const Ph=r.div`
1138
1138
  width: fit-content;
1139
1139
  display: flex;
1140
1140
  align-items: center;
1141
1141
  gap: 8px;
1142
1142
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1143
- `,_h=r.div`
1144
- width: ${({$size:e})=>e===Ah.S?"16px":"20px"};
1145
- height: ${({$size:e})=>e===Ah.S?"16px":"20px"};
1143
+ `,Mh=r.div`
1144
+ width: ${({$size:e})=>e===Lh.S?"16px":"20px"};
1145
+ height: ${({$size:e})=>e===Lh.S?"16px":"20px"};
1146
1146
  display: flex;
1147
1147
  align-items: center;
1148
1148
  justify-content: center;
1149
1149
  border-radius: 100%;
1150
1150
  border: 1px solid ${({$borderColor:e})=>e};
1151
1151
  background-color: ${({$backgroundColor:e})=>e};
1152
- `,Rh=({"data-id":n,label:r,value:o,onChange:a,disabled:s,size:l=Ah.L})=>{const c=i(),[d,u]=Ft(!1),p=o,h=l===Ah.S?6:8,g=s?c.v2.colors.grey[400]:c.v2.colors.white[500],m=p?"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]:p?c.v2.colors.purple[500]:c.v2.colors.silver[900];return e(Ih,{"data-id":n??"radio"+(r?`-${r}`:""),onClick:e=>{e.stopPropagation(),s||a(!o)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(_h,{$size:l,$borderColor:m,$backgroundColor:f,children:o?t(Dt,{size:h,fill:g}):null}),r&&t(br,{size:l===Ah.S?hr.XXS:hr.XS,children:r})]})},Dh=r.div`
1152
+ `,Uh=({"data-id":n,label:r,value:o,onChange:a,disabled:s,size:l=Lh.L})=>{const c=i(),[d,u]=Ft(!1),p=o,h=l===Lh.S?6:8,g=s?c.v2.colors.grey[400]:c.v2.colors.white[500],m=p?"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]:p?c.v2.colors.purple[500]:c.v2.colors.silver[900];return e(Ph,{"data-id":n??"radio"+(r?`-${r}`:""),onClick:e=>{e.stopPropagation(),s||a(!o)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(Mh,{$size:l,$borderColor:m,$backgroundColor:f,children:o?t(Dt,{size:h,fill:g}):null}),r&&t(br,{size:l===Lh.S?hr.XXS:hr.XS,children:r})]})},Fh=r.div`
1153
1153
  display: flex;
1154
1154
  flex-direction: ${({$flexDirection:e})=>e};
1155
1155
  gap: ${({$gap:e})=>e}px;
1156
- `,kh=({label:n,direction:r,disabled:o,size:i,options:a,values:s,setValues:l})=>e(Dh,{$flexDirection:r===gn.Horizontal?"row":"column",$gap:r===gn.Horizontal?16:8,children:[n&&t(br,{children:n}),a.map(e=>t(Rh,{...e,value:s[e.id],onChange:t=>{return n=e.id,r=t,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[n]=r,t});var n,r},disabled:o,size:i},`${n}-radio-${e.id}`))]}),Lh=({col:n,colIdx:r,row:o,rowIdx:i,rowsLength:a,handleChange:s,errorMessage:l,disabled:c,hideLabel:d,onTestRegex:u})=>{const{keyName:p,componentType:h,inputType:g,label:m,placeholder:f,options:y,renderCondition:b,helpMessage:v,min:E,max:S}=n,$=o[p];if(b&&!b(o))return null;const C=d?void 0:m||void 0,x=f;switch(h){case"radioGroup":{const e=null!=$?String($):"",n=Object.fromEntries((y||[]).map(t=>[t.id,t.id===e]));return t(kh,{direction:gn.Horizontal,options:(y||[]).map(e=>({id:e.id,label:e.label})),values:n,setValues:e=>{const t="function"==typeof e?e(n):e,r=Object.keys(t).find(e=>t[e])??"";s(p,r,i)},disabled:c},p)}case xn.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===h,n=Array.isArray($)?$:null!=$&&""!==$?[String($)]:[],r=y?.filter(e=>n.includes(e.id)).map(e=>e.id)||[];return t(yh,{name:p,label:C,placeholder:x,options:y||[],withMultiSelect:e,withSearch:e,values:r,setValues:t=>s(p,e?t:t[0]??"",i),disabled:c,hasError:!!l},p)}default:const o=a>1&&0===i&&0===r&&wi($),d=t(qu,{name:p,label:C,placeholder:x,autoFocus:o,type:g,min:E,max:S,value:$,onChange:({target:{value:e}})=>s(p,e,i),disabled:c,hasError:!!l,helpMessage:v,width:n.withRegexTester?"100%":void 0});return n.withRegexTester?e(Zo,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:d}),t(kd,{variant:_d.Secondary,size:Rd.S,label:"Test",disabled:c||!String($??"").trim(),onClick:()=>u?.(String($??""))})]}):d}},Ph=r.div`
1156
+ `,zh=({label:n,direction:r,disabled:o,size:i,options:a,values:s,setValues:l})=>e(Fh,{$flexDirection:r===gn.Horizontal?"row":"column",$gap:r===gn.Horizontal?16:8,children:[n&&t(br,{children:n}),a.map(e=>t(Uh,{...e,value:s[e.id],onChange:t=>{return n=e.id,r=t,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[n]=r,t});var n,r},disabled:o,size:i},`${n}-radio-${e.id}`))]}),Bh=({col:n,colIdx:r,row:o,rowIdx:i,rowsLength:a,handleChange:s,errorMessage:l,disabled:c,hideLabel:d,onTestRegex:u})=>{const{keyName:p,componentType:h,inputType:g,label:m,placeholder:f,options:y,renderCondition:b,helpMessage:v,min:E,max:S}=n,$=o[p];if(b&&!b(o))return null;const C=d?void 0:m||void 0,x=f;switch(h){case"radioGroup":{const e=null!=$?String($):"",n=Object.fromEntries((y||[]).map(t=>[t.id,t.id===e]));return t(zh,{direction:gn.Horizontal,options:(y||[]).map(e=>({id:e.id,label:e.label})),values:n,setValues:e=>{const t="function"==typeof e?e(n):e,r=Object.keys(t).find(e=>t[e])??"";s(p,r,i)},disabled:c},p)}case xn.Dropdown:case"multi-dropdown":{const e="multi-dropdown"===h,n=Array.isArray($)?$:null!=$&&""!==$?[String($)]:[],r=y?.filter(e=>n.includes(e.id)).map(e=>e.id)||[];return t(Ch,{name:p,label:C,placeholder:x,options:y||[],withMultiSelect:e,withSearch:e,values:r,setValues:t=>s(p,e?t:t[0]??"",i),disabled:c,hasError:!!l},p)}default:const o=a>1&&0===i&&0===r&&wi($),d=t(rp,{name:p,label:C,placeholder:x,autoFocus:o,type:g,min:E,max:S,value:$,onChange:({target:{value:e}})=>s(p,e,i),disabled:c,hasError:!!l,helpMessage:v,width:n.withRegexTester?"100%":void 0});return n.withRegexTester?e(Zo,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:d}),t(zd,{variant:Md.Secondary,size:Ud.S,label:"Test",disabled:c||!String($??"").trim(),onClick:()=>u?.(String($??""))})]}):d}},Hh=r.div`
1157
1157
  width: 100%;
1158
1158
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1159
1159
  border-radius: 8px;
@@ -1161,28 +1161,28 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1161
1161
  display: flex;
1162
1162
  flex-direction: column;
1163
1163
  gap: 8px;
1164
- `,Mh=r.div`
1164
+ `,jh=r.div`
1165
1165
  flex: 1;
1166
1166
  min-width: 0;
1167
- `,Uh=r.div`
1167
+ `,Wh=r.div`
1168
1168
  padding-top: 24px;
1169
- `,Fh=({columns:n,values:r,setValues:o,name:a,label:s,tooltip:l,required:c,disabled:d,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=i(),m=n.find(e=>"segment"===e.componentType),f=m?.keyName,y=m?.options??[],b=e=>{const t={};return n.forEach(({keyName:e,defaultValue:n})=>t[e]=n??""),f&&(t[f]=e),t},v=m?.defaultValue||y[0]?.id||"",E=r.length?r:[b(v)],S=(f?E[0]?.[f]:"")||v,$=(e,t,n)=>{o(E.map((r,o)=>o===e?{...r,[t]:n}:r))},C=()=>o([...E,b(S)]),x=y.find(e=>e.id===S);return e(ei,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(cu,{label:s,tooltip:l,required:c}),m&&t(tu,{"data-id":`${a}-mode`,size:Yd.S,fullWidth:!0,options:y.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:S,setSelected:e=>!d&&(e=>o([b(e)]))(String(e))}),e(ei,{$gap:8,$width:"100%",children:[E.map((r,i)=>{const s=i===E.length-1,l=f?{...r,[f]:S}:r,c=n.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(l))),m=c.filter(e=>"radioGroup"===e.componentType),y=c.filter(e=>"radioGroup"!==e.componentType),v=c.find(e=>e.withRegexTester),w=((e,t)=>{const n=t||e.length||1,r=[];let o=[];const i=()=>{o.length&&(r.push(o),o=[])};return e.forEach(e=>{if(e.fullRow)return i(),void r.push([e]);o.push(e),o.length>=n&&i()}),i(),r})(y,h),T=x?.rowTitle?`${x.rowTitle} ${i+1}`:void 0;return e(Ph,{"data-id":`${a}-card-${i}`,children:[e(Zo,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(ei,{$gap:10,children:[T&&t(cu,{label:T}),m.map(e=>t(Zo,{$gap:24,children:(e.options??[]).map(n=>t(Rh,{size:Ah.L,label:n.label,value:String(r[e.keyName]??"")===String(n.id),disabled:d,onChange:t=>t&&$(i,e.keyName,n.id)},`${a}-card-${i}-${e.keyName}-${n.id}`))},`${a}-card-${i}-${e.keyName}`))]}),e(Zo,{$gap:4,$alignItems:"center",children:[v&&t(kd,{"data-id":`${a}-card-${i}-test-regex`,label:"Test Regex",variant:_d.Secondary,size:Rd.S,disabled:d||!String(r[v.keyName]??"").trim(),onClick:()=>p?.(String(r[v.keyName]??""))}),t(kd,{"data-id":`${a}-card-${i}-delete`,leftIcon:d?Rt:()=>t(Rt,{fill:g.v2.colors.red[500]}),variant:_d.Secondary,size:Rd.S,disabled:d,onClick:()=>(e=>{const t=E.filter((t,n)=>n!==e);o(t.length?t:[b(S)])})(i)}),s&&t(kd,{"data-id":`${a}-card-${i}-add`,leftIcon:_t,variant:_d.Secondary,size:Rd.S,disabled:d,onClick:C})]})]}),w.map((n,o)=>t(Zo,{$gap:8,$alignItems:"flex-start",$width:"100%",children:n.map((n,o)=>{const s=((e,t)=>{let{label:n,placeholder:r,helpMessage:o}=e;if(e.copyByColumn){const i=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];i&&(n=i.label??n,r=i.placeholder??r,o=i.helpMessage??o)}return{label:n,placeholder:r,helpMessage:o}})(n,r);return e(Ut,{children:["arrow"===n.separator&&o>0&&t(Uh,{children:t(kt,{size:24,fill:g.v2.colors.silver[200]})}),t(Mh,{children:t(qu,{name:`${a}-card-${i}-${n.keyName}`,label:s.label,placeholder:s.placeholder,helpMessage:s.helpMessage,type:n.inputType,min:n.min,max:n.max,width:"100%",value:r[n.keyName]??"",disabled:d,hasError:!!u,onChange:e=>$(i,n.keyName,e.target.value)})})]},`${a}-card-${i}-${n.keyName}`)})},`${a}-card-${i}-row-${o}`))]},`${a}-card-${i}`)}),t(du,{errorMessage:u})]})]})},zh=r.div`
1169
+ `,Gh=({columns:n,values:r,setValues:o,name:a,label:s,tooltip:l,required:c,disabled:d,errorMessage:u,onTestRegex:p,limitFieldsPerRow:h})=>{const g=i(),m=n.find(e=>"segment"===e.componentType),f=m?.keyName,y=m?.options??[],b=e=>{const t={};return n.forEach(({keyName:e,defaultValue:n})=>t[e]=n??""),f&&(t[f]=e),t},v=m?.defaultValue||y[0]?.id||"",E=r.length?r:[b(v)],S=(f?E[0]?.[f]:"")||v,$=(e,t,n)=>{o(E.map((r,o)=>o===e?{...r,[t]:n}:r))},C=()=>o([...E,b(S)]),x=y.find(e=>e.id===S);return e(ei,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(mu,{label:s,tooltip:l,required:c}),m&&t(su,{"data-id":`${a}-mode`,size:tu.S,fullWidth:!0,options:y.map(e=>({value:e.id,label:e.label,tooltip:e.tooltip,selectedBgColor:e.selectedBgColor||g.v2.colors.purple[500]})),selected:S,setSelected:e=>!d&&(e=>o([b(e)]))(String(e))}),e(ei,{$gap:8,$width:"100%",children:[E.map((r,i)=>{const s=i===E.length-1,l=f?{...r,[f]:S}:r,c=n.filter(e=>"segment"!==e.componentType&&(!e.renderCondition||e.renderCondition(l))),m=c.filter(e=>"radioGroup"===e.componentType),y=c.filter(e=>"radioGroup"!==e.componentType),v=c.find(e=>e.withRegexTester),w=((e,t)=>{const n=t||e.length||1,r=[];let o=[];const i=()=>{o.length&&(r.push(o),o=[])};return e.forEach(e=>{if(e.fullRow)return i(),void r.push([e]);o.push(e),o.length>=n&&i()}),i(),r})(y,h),T=x?.rowTitle?`${x.rowTitle} ${i+1}`:void 0;return e(Hh,{"data-id":`${a}-card-${i}`,children:[e(Zo,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(ei,{$gap:10,children:[T&&t(mu,{label:T}),m.map(e=>t(Zo,{$gap:24,children:(e.options??[]).map(n=>t(Uh,{size:Lh.L,label:n.label,value:String(r[e.keyName]??"")===String(n.id),disabled:d,onChange:t=>t&&$(i,e.keyName,n.id)},`${a}-card-${i}-${e.keyName}-${n.id}`))},`${a}-card-${i}-${e.keyName}`))]}),e(Zo,{$gap:4,$alignItems:"center",children:[v&&t(zd,{"data-id":`${a}-card-${i}-test-regex`,label:"Test Regex",variant:Md.Secondary,size:Ud.S,disabled:d||!String(r[v.keyName]??"").trim(),onClick:()=>p?.(String(r[v.keyName]??""))}),t(zd,{"data-id":`${a}-card-${i}-delete`,leftIcon:d?Rt:()=>t(Rt,{fill:g.v2.colors.red[500]}),variant:Md.Secondary,size:Ud.S,disabled:d,onClick:()=>(e=>{const t=E.filter((t,n)=>n!==e);o(t.length?t:[b(S)])})(i)}),s&&t(zd,{"data-id":`${a}-card-${i}-add`,leftIcon:_t,variant:Md.Secondary,size:Ud.S,disabled:d,onClick:C})]})]}),w.map((n,o)=>t(Zo,{$gap:8,$alignItems:"flex-start",$width:"100%",children:n.map((n,o)=>{const s=((e,t)=>{let{label:n,placeholder:r,helpMessage:o}=e;if(e.copyByColumn){const i=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];i&&(n=i.label??n,r=i.placeholder??r,o=i.helpMessage??o)}return{label:n,placeholder:r,helpMessage:o}})(n,r);return e(Ut,{children:["arrow"===n.separator&&o>0&&t(Wh,{children:t(kt,{size:24,fill:g.v2.colors.silver[200]})}),t(jh,{children:t(rp,{name:`${a}-card-${i}-${n.keyName}`,label:s.label,placeholder:s.placeholder,helpMessage:s.helpMessage,type:n.inputType,min:n.min,max:n.max,width:"100%",value:r[n.keyName]??"",disabled:d,hasError:!!u,onChange:e=>$(i,n.keyName,e.target.value)})})]},`${a}-card-${i}-${n.keyName}`)})},`${a}-card-${i}-row-${o}`))]},`${a}-card-${i}`)}),t(fu,{errorMessage:u})]})]})},Xh=r.div`
1170
1170
  width: 100%;
1171
1171
  background: ${({theme:e})=>e.v2.colors.silver[800]};
1172
1172
  border-radius: 8px;
1173
1173
  padding: 4px 8px;
1174
- `,Bh=r.table`
1174
+ `,Vh=r.table`
1175
1175
  width: 100%;
1176
1176
  border-collapse: separate;
1177
1177
  border-spacing: 0 8px;
1178
- `,Hh=r.td`
1178
+ `,Kh=r.td`
1179
1179
  padding: 0 8px 0 0;
1180
1180
  vertical-align: top;
1181
- `,jh=r.td`
1181
+ `,Yh=r.td`
1182
1182
  width: 72px;
1183
1183
  vertical-align: ${({$center:e})=>e?"middle":"top"};
1184
1184
  padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
1185
- `,Wh=({columns:n,values:r,setValues:o,name:a,label:s,tooltip:l,badge:c,required:d,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m,onTestRegex:f})=>{const y=i(),b=Ht(()=>{const e={};return n.forEach(({keyName:t,defaultValue:n})=>e[t]=n??""),e},[n]),v=(e,t,n)=>{const i=r.length?Br(r):[Br(b)];i[n][e]=t,o(i)},E=r.length?r:[b];return t(zh,{children:e(ei,{"data-id":a,$gap:0,children:[t(cu,{label:s,tooltip:l,required:d,badge:c}),t(Bh,{children:t("tbody",{children:E.map((i,a)=>{const s=a===E.length-1,l=((e,t)=>{const n=t||e.length||1,r=[];let o=[];const i=()=>{o.length&&(r.push(o),o=[])};return e.forEach(e=>{if(e.fullRow)return i(),void r.push([e]);o.push(e),o.length>=n&&i()}),i(),r})(n.filter(e=>!e.renderCondition||e.renderCondition(i)),m),c=l.map(e=>e.some(e=>!!e.label)),d=l.reduce((e,t)=>Math.max(e,t.length),1),h=1===l[0]?.length&&!!l[0][0]?.fullRow;return e(Ut,{children:[l.length>1&&a>0?t("tr",{children:t(Hh,{colSpan:d+1})}):null,l.map((n,l)=>{const g=c[l],m=g?22:0;return e("tr",{children:[n.map((r,o)=>{if(r.renderCondition&&!r.renderCondition(i))return null;const s=o===n.length-1,c=0===l&&s?d-n.length+1:1;return t(Hh,{colSpan:c>1?c:void 0,children:e(ei,{$gap:6,children:[g&&(r.label?t(cu,{label:r.label,tooltip:r.tooltip}):t(cu,{label:"\\u00A0"})),t(Lh,{col:r,colIdx:o,row:i,rowIdx:a,rowsLength:E.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:g,onTestRegex:f})]})},`input-table-row-${a}-col-${l}-${o}`)}),0===l&&t(jh,{$topOffset:m,$center:h,children:e(Zo,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(kd,{leftIcon:_t,variant:_d.Secondary,size:Rd.S,disabled:u,onClick:()=>(()=>{const e=r.length?Br(r):[Br(b)];e.push(Br(b)),o(e)})()}),t(kd,{leftIcon:u?Rt:()=>t(Rt,{fill:y.v2.colors.red[500]}),variant:_d.Secondary,size:Rd.S,disabled:u,onClick:()=>(e=>{const t=r.filter((t,n)=>n!==e);t.length||t.push(Br(b)),o(t)})(a)})]})})]},`input-table-matrix-${a}-${l}`)})]},`input-table-row-${a}`)})})}),t(du,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},Gh=r.div`
1185
+ `,Jh=({columns:n,values:r,setValues:o,name:a,label:s,tooltip:l,badge:c,required:d,disabled:u,errorMessage:p,warnMessage:h,helpMessage:g,limitFieldsPerRow:m,onTestRegex:f})=>{const y=i(),b=Ht(()=>{const e={};return n.forEach(({keyName:t,defaultValue:n})=>e[t]=n??""),e},[n]),v=(e,t,n)=>{const i=r.length?Br(r):[Br(b)];i[n][e]=t,o(i)},E=r.length?r:[b];return t(Xh,{children:e(ei,{"data-id":a,$gap:0,children:[t(mu,{label:s,tooltip:l,required:d,badge:c}),t(Vh,{children:t("tbody",{children:E.map((i,a)=>{const s=a===E.length-1,l=((e,t)=>{const n=t||e.length||1,r=[];let o=[];const i=()=>{o.length&&(r.push(o),o=[])};return e.forEach(e=>{if(e.fullRow)return i(),void r.push([e]);o.push(e),o.length>=n&&i()}),i(),r})(n.filter(e=>!e.renderCondition||e.renderCondition(i)),m),c=l.map(e=>e.some(e=>!!e.label)),d=l.reduce((e,t)=>Math.max(e,t.length),1),h=1===l[0]?.length&&!!l[0][0]?.fullRow;return e(Ut,{children:[l.length>1&&a>0?t("tr",{children:t(Kh,{colSpan:d+1})}):null,l.map((n,l)=>{const g=c[l],m=g?22:0;return e("tr",{children:[n.map((r,o)=>{if(r.renderCondition&&!r.renderCondition(i))return null;const s=o===n.length-1,c=0===l&&s?d-n.length+1:1;return t(Kh,{colSpan:c>1?c:void 0,children:e(ei,{$gap:6,children:[g&&(r.label?t(mu,{label:r.label,tooltip:r.tooltip}):t(mu,{label:"\\u00A0"})),t(Bh,{col:r,colIdx:o,row:i,rowIdx:a,rowsLength:E.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:g,onTestRegex:f})]})},`input-table-row-${a}-col-${l}-${o}`)}),0===l&&t(Yh,{$topOffset:m,$center:h,children:e(Zo,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(zd,{leftIcon:_t,variant:Md.Secondary,size:Ud.S,disabled:u,onClick:()=>(()=>{const e=r.length?Br(r):[Br(b)];e.push(Br(b)),o(e)})()}),t(zd,{leftIcon:u?Rt:()=>t(Rt,{fill:y.v2.colors.red[500]}),variant:Md.Secondary,size:Ud.S,disabled:u,onClick:()=>(e=>{const t=r.filter((t,n)=>n!==e);t.length||t.push(Br(b)),o(t)})(a)})]})})]},`input-table-matrix-${a}-${l}`)})]},`input-table-row-${a}`)})})}),t(fu,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},qh=r.div`
1186
1186
  display: flex;
1187
1187
  align-items: center;
1188
1188
  justify-content: space-between;
@@ -1190,15 +1190,15 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1190
1190
 
1191
1191
  padding: 18px 16px;
1192
1192
  border-radius: 18px;
1193
- background-color: ${({theme:e})=>e.v2.colors.black[500]+Bd["095"]};
1193
+ background-color: ${({theme:e})=>e.v2.colors.black[500]+Vd["095"]};
1194
1194
  box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
1195
1195
 
1196
1196
  position: fixed;
1197
1197
  bottom: 0;
1198
1198
  left: 50%;
1199
1199
  z-index: ${({theme:e})=>e.v2.zIndex.island};
1200
- animation-name: ${jd.in.center};
1201
- `,Xh=({isOpen:n,onClose:r,richTitle:o,actions:i})=>n?e(Gh,{children:[t(_u,{...o}),t(Au,{onAnyClick:r,actions:i})]}):null,Vh=r.div`
1200
+ animation-name: ${Yd.in.center};
1201
+ `,Qh=({isOpen:n,onClose:r,richTitle:o,actions:i})=>n?e(qh,{children:[t(Mu,{...o}),t(Lu,{onAnyClick:r,actions:i})]}):null,Zh=r.div`
1202
1202
  position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
1203
1203
  top: 50%;
1204
1204
  left: 50%;
@@ -1219,7 +1219,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1219
1219
  will-change: transform;
1220
1220
  contain: layout paint;
1221
1221
 
1222
- animation-name: ${({$closing:e})=>e?jd.out.center:jd.in.center};
1222
+ animation-name: ${({$closing:e})=>e?Yd.out.center:Yd.in.center};
1223
1223
  /* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
1224
1224
  the global 300ms default which pairs with the fade-in for a soft entrance. */
1225
1225
  animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
@@ -1228,9 +1228,9 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1228
1228
  /* Block hover/click work on form children mid-close so their transitions
1229
1229
  don't compete with the slide-out. */
1230
1230
  ${({$closing:e})=>e&&"pointer-events: none;"}
1231
- `,Kh=r(ri)`
1231
+ `,eg=r(ri)`
1232
1232
  will-change: opacity;
1233
- animation-name: ${({$closing:e})=>e?Vd.out:Vd.in};
1233
+ animation-name: ${({$closing:e})=>e?Zd.out:Zd.in};
1234
1234
  animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
1235
1235
 
1236
1236
  /* The blurred backdrop is the most expensive thing on screen during the close
@@ -1238,18 +1238,18 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1238
1238
  recomposite per frame. Drop the blur while closing; visually identical
1239
1239
  because the overlay is fading to 0. */
1240
1240
  ${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
1241
- `,Yh=r.div`
1241
+ `,tg=r.div`
1242
1242
  position: relative;
1243
- `,Jh=r.div`
1243
+ `,ng=r.div`
1244
1244
  position: absolute;
1245
1245
  top: 16px;
1246
1246
  left: 16px;
1247
- `,qh=({isOpen:r,hideOverlay:o=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,u]=Ft(r),[p,h]=Ft(!1);if(zt(()=>{r?(u(!0),h(!1)):d&&h(!0)},[r]),qc(d),!d)return null;const g=e(n,{children:[!o&&t(Kh,{$relativeToParent:i,$closing:p,onClick:p?void 0:s}),t(Vh,{"data-id":"modal",$relativeToParent:i,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(Yh,{children:[a&&t(Jh,{children:t(td,{icon:e=>t(At,{rotate:-90,...e}),size:Zc.L,onClick:a})}),c]})})]});return i?g:Yt(g,document.body)},Qh=r.div`
1247
+ `,rg=({isOpen:r,hideOverlay:o=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,u]=Ft(r),[p,h]=Ft(!1);if(zt(()=>{r?(u(!0),h(!1)):d&&h(!0)},[r]),rd(d),!d)return null;const g=e(n,{children:[!o&&t(eg,{$relativeToParent:i,$closing:p,onClick:p?void 0:s}),t(Zh,{"data-id":"modal",$relativeToParent:i,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(tg,{children:[a&&t(ng,{children:t(sd,{icon:e=>t(At,{rotate:-90,...e}),size:id.L,onClick:a})}),c]})})]});return i?g:Yt(g,document.body)},og=r.div`
1248
1248
  position: relative;
1249
1249
  width: ${64}px;
1250
1250
  height: ${({$height:e})=>e};
1251
1251
  flex-shrink: 0;
1252
- `,Zh=r.aside`
1252
+ `,ig=r.aside`
1253
1253
  position: absolute;
1254
1254
  top: 0;
1255
1255
  left: 0;
@@ -1269,7 +1269,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1269
1269
  transition:
1270
1270
  width 200ms ease,
1271
1271
  padding 200ms ease;
1272
- `,eg=r.button`
1272
+ `,ag=r.button`
1273
1273
  display: flex;
1274
1274
  align-items: center;
1275
1275
  width: 100%;
@@ -1289,20 +1289,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1289
1289
  &:active {
1290
1290
  background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
1291
1291
  }
1292
- `,tg=r.div`
1292
+ `,sg=r.div`
1293
1293
  width: ${40}px;
1294
1294
  height: ${40}px;
1295
1295
  display: flex;
1296
1296
  align-items: center;
1297
1297
  justify-content: center;
1298
1298
  flex-shrink: 0;
1299
- `,ng=r.div`
1299
+ `,lg=r.div`
1300
1300
  flex: 1 1 0;
1301
1301
  min-width: 0;
1302
1302
  overflow: hidden;
1303
1303
  padding-right: 12px;
1304
1304
  pointer-events: none;
1305
- `,rg=({height:n,icons:r})=>{const o=i(),[a,s]=Ft(!1);return t(Qh,{$height:n,children:t(Zh,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:r.map(({id:n,label:r,selected:i,icon:s,onClick:l})=>e(eg,{$selected:i,onClick:l,"aria-label":r,title:a?void 0:r,children:[t(tg,{children:t(s,{size:24,fill:o.v2.colors.white[500]})}),a&&t(ng,{children:t(br,{size:hr.S,weight:500,color:gr.Primary,nowrap:!0,children:r})})]},n))})})},og=r.div`
1305
+ `,cg=({height:n,icons:r})=>{const o=i(),[a,s]=Ft(!1);return t(og,{$height:n,children:t(ig,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:r.map(({id:n,label:r,selected:i,icon:s,onClick:l})=>e(ag,{$selected:i,onClick:l,"aria-label":r,title:a?void 0:r,children:[t(sg,{children:t(s,{size:24,fill:o.v2.colors.white[500]})}),a&&t(lg,{children:t(br,{size:hr.S,weight:500,color:gr.Primary,nowrap:!0,children:r})})]},n))})})},dg=r.div`
1306
1306
  display: flex;
1307
1307
  flex-direction: column;
1308
1308
  gap: 16px;
@@ -1326,20 +1326,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1326
1326
  }
1327
1327
  `}
1328
1328
  `}
1329
- `,ig=r.div`
1329
+ `,ug=r.div`
1330
1330
  display: flex;
1331
1331
  align-items: center;
1332
1332
  gap: 16px;
1333
1333
  width: 100%;
1334
- `,ag=r.div`
1334
+ `,pg=r.div`
1335
1335
  display: flex;
1336
1336
  flex-direction: column;
1337
1337
  gap: 4px;
1338
1338
  flex: 1;
1339
1339
  min-width: 0;
1340
- `,sg=r.div`
1340
+ `,hg=r.div`
1341
1341
  width: 100%;
1342
- `,lg=({"data-id":n,title:r,description:o,body:a,footerNote:s,checked:l,onChange:c,disabled:d})=>{const u=i(),p=n??`radio-card-${r}`,h=()=>{d||c(!0)};return e(og,{"data-id":p,$selected:l,$disabled:d,onClick:h,children:[e(ig,{children:[t(Rh,{"data-id":`${p}-radio`,value:l,onChange:h,size:Ah.L,disabled:d}),e(ag,{children:[t(br,{size:hr.S,weight:500,lineHeight:"24px",color:gr.Primary,children:r}),o&&t(br,{size:hr.XXS,weight:400,lineHeight:"normal",color:l?u.v2.colors.purple[200]:gr.Secondary,children:o})]})]}),a&&t(sg,{children:a}),s&&t(sg,{children:s})]})},cg=r.div`
1342
+ `,gg=({"data-id":n,title:r,description:o,body:a,footerNote:s,checked:l,onChange:c,disabled:d})=>{const u=i(),p=n??`radio-card-${r}`,h=()=>{d||c(!0)};return e(dg,{"data-id":p,$selected:l,$disabled:d,onClick:h,children:[e(ug,{children:[t(Uh,{"data-id":`${p}-radio`,value:l,onChange:h,size:Lh.L,disabled:d}),e(pg,{children:[t(br,{size:hr.S,weight:500,lineHeight:"24px",color:gr.Primary,children:r}),o&&t(br,{size:hr.XXS,weight:400,lineHeight:"normal",color:l?u.v2.colors.purple[200]:gr.Secondary,children:o})]})]}),a&&t(hg,{children:a}),s&&t(hg,{children:s})]})},mg=r.div`
1343
1343
  width: 100%;
1344
1344
  height: 100%;
1345
1345
 
@@ -1347,7 +1347,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1347
1347
  animation: none !important;
1348
1348
  transition: none !important;
1349
1349
  }
1350
- `,dg=({width:e="100%",height:n="100%",gap:r=0,elements:o,noAnimation:i=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const c=jt(null),d=Ht(()=>r?o.map((e,n)=>t("div",{style:{paddingBottom:r},children:e},`scroll-y-item-${n}`)):o,[o,r]),u=Bt(e=>{if(!a||!c.current)return;const t=c.current.findItemIndex(e);a(t)},[a]);zt(()=>{null==s||s<0||!c.current||c.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=t(tn,{ref:c,style:{width:e,height:n},onScroll:a?u:void 0,children:d});return i?t(cg,{children:p}):p},ug=r.div`
1350
+ `,fg=({width:e="100%",height:n="100%",gap:r=0,elements:o,noAnimation:i=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const c=jt(null),d=Ht(()=>r?o.map((e,n)=>t("div",{style:{paddingBottom:r},children:e},`scroll-y-item-${n}`)):o,[o,r]),u=Bt(e=>{if(!a||!c.current)return;const t=c.current.findItemIndex(e);a(t)},[a]);zt(()=>{null==s||s<0||!c.current||c.current.scrollToIndex(s,{align:"center"})},[s,l]);const p=t(tn,{ref:c,style:{width:e,height:n},onScroll:a?u:void 0,children:d});return i?t(mg,{children:p}):p},yg=r.div`
1351
1351
  display: flex;
1352
1352
  flex-direction: column;
1353
1353
  gap: 16px;
@@ -1356,47 +1356,47 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1356
1356
  ${({$maxHeight:e})=>e&&`max-height: ${e};`}
1357
1357
  width: 100%;
1358
1358
  height: 100%;
1359
- `,pg=r.div`
1359
+ `,bg=r.div`
1360
1360
  display: flex;
1361
1361
  align-items: center;
1362
1362
  gap: 16px;
1363
- `,hg=r.div`
1363
+ `,vg=r.div`
1364
1364
  width: 50px;
1365
1365
  height: 50px;
1366
1366
  border-radius: 8px;
1367
1367
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1368
1368
  background-size: 200% 100%;
1369
- animation: ${Xd} 10s infinite linear;
1370
- `,gg=r(ei)`
1369
+ animation: ${Qd} 10s infinite linear;
1370
+ `,Eg=r(ei)`
1371
1371
  flex: 1;
1372
1372
  gap: 12px;
1373
- `,mg=r.div`
1373
+ `,Sg=r.div`
1374
1374
  width: ${({$width:e})=>e};
1375
1375
  height: 16px;
1376
1376
  background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
1377
1377
  background-size: 200% 100%;
1378
- animation: ${Xd} 1.5s infinite linear;
1378
+ animation: ${Qd} 1.5s infinite linear;
1379
1379
  border-radius: 4px;
1380
- `,fg=({size:n=5,maxWidth:r,maxHeight:o})=>t(ug,{$maxWidth:r,$maxHeight:o,children:[...Array(n)].map((n,r)=>e(pg,{children:[t(hg,{}),e(gg,{children:[t(mg,{$width:"80%"}),t(mg,{$width:"100%"})]})]},r))}),yg=({currentStep:n,data:r,gap:o=12})=>t(ei,{$gap:o,children:r.map(r=>{const o=r.step<n,i=r.step===n;return e(Zo,{$gap:8,children:[o||r.forceDoneBadge?t(Id,{status:Tn.Success,label:"",leftIcon:vt}):t(Id,{status:Tn.Default,label:r.step.toString()}),t(br,{size:i?hr.M:hr.XS,weight:i?500:400,opacity:i?1:.7,children:r.label})]},`stepper-item-${r.step}`)})});var bg;(e=>{e.Data="data",e.Pretty="pretty"})(bg||(bg={}));const vg=r.div`
1380
+ `,$g=({size:n=5,maxWidth:r,maxHeight:o})=>t(yg,{$maxWidth:r,$maxHeight:o,children:[...Array(n)].map((n,r)=>e(bg,{children:[t(vg,{}),e(Eg,{children:[t(Sg,{$width:"80%"}),t(Sg,{$width:"100%"})]})]},r))}),Cg=({currentStep:n,data:r,gap:o=12})=>t(ei,{$gap:o,children:r.map(r=>{const o=r.step<n,i=r.step===n;return e(Zo,{$gap:8,children:[o||r.forceDoneBadge?t(Pd,{status:Tn.Success,label:"",leftIcon:vt}):t(Pd,{status:Tn.Default,label:r.step.toString()}),t(br,{size:i?hr.M:hr.XS,weight:i?500:400,opacity:i?1:.7,children:r.label})]},`stepper-item-${r.step}`)})});var xg;(e=>{e.Data="data",e.Pretty="pretty"})(xg||(xg={}));const wg=r.div`
1381
1381
  ${({$maxHeight:e})=>e?`\n height: ${e};\n flex: 0 0 auto;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n "}
1382
1382
  width: 100%;
1383
1383
  display: flex;
1384
1384
  flex-direction: column;
1385
1385
  overflow: hidden;
1386
- `,Eg=r.div`
1386
+ `,Tg=r.div`
1387
1387
  width: 100%;
1388
1388
  flex: 1;
1389
1389
  display: flex;
1390
1390
  flex-direction: column;
1391
- `,Sg=r.div`
1391
+ `,Og=r.div`
1392
1392
  flex-shrink: 0;
1393
1393
  position: relative;
1394
1394
  z-index: 2;
1395
- `,$g=r.div`
1395
+ `,Ng=r.div`
1396
1396
  position: relative;
1397
1397
  display: flex;
1398
1398
  width: 100%;
1399
- `,Cg=r.div`
1399
+ `,Ag=r.div`
1400
1400
  position: relative;
1401
1401
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
1402
1402
  flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
@@ -1415,12 +1415,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1415
1415
 
1416
1416
  ${({$variant:e,$backgroundColor:t})=>{if(t)return o`
1417
1417
  background-color: ${t};
1418
- `;switch(e){case bg.Data:return o`
1418
+ `;switch(e){case xg.Data:return o`
1419
1419
  background-color: ${({theme:e})=>e.v2.colors.silver[750]};
1420
- `;case bg.Pretty:return o`
1420
+ `;case xg.Pretty:return o`
1421
1421
  background-color: transparent;
1422
1422
  `;default:return""}}}
1423
- `,xg=r.div`
1423
+ `,Ig=r.div`
1424
1424
  position: absolute;
1425
1425
  top: 50%;
1426
1426
  right: 0;
@@ -1428,7 +1428,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1428
1428
  width: 1px;
1429
1429
  height: 18px;
1430
1430
  background: ${({theme:e})=>e.v2.colors.silver[500]};
1431
- `,wg=r.div`
1431
+ `,_g=r.div`
1432
1432
  min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
1433
1433
  flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
1434
1434
 
@@ -1463,16 +1463,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1463
1463
  cursor: ${({$withClick:e})=>e?"pointer":"default"};
1464
1464
  box-sizing: border-box;
1465
1465
 
1466
- ${({$variant:e,$selected:t,$highlighted:n,$hovered:r,$isLastRow:i,$isFirstCell:a,$isLastCell:s})=>{switch(e){case bg.Data:return o`
1466
+ ${({$variant:e,$selected:t,$highlighted:n,$hovered:r,$isLastRow:i,$isFirstCell:a,$isLastCell:s})=>{switch(e){case xg.Data:return o`
1467
1467
  border-bottom: ${({theme:e})=>i?"none":`1px solid ${e.v2.colors.silver[500]}`};
1468
1468
  border-radius: ${i?a?"0 0 0 4px":s?"0 0 4px 0":"0":"0"};
1469
1469
  background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n||r?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
1470
- `;case bg.Pretty:return o`
1470
+ `;case xg.Pretty:return o`
1471
1471
  border: none;
1472
1472
  border-radius: ${a?"12px 0 0 12px":s?"0 12px 12px 0":"0"};
1473
1473
  background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n||r?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
1474
1474
  `;default:return""}}}
1475
- `,Tg=r.div`
1475
+ `,Rg=r.div`
1476
1476
  position: absolute;
1477
1477
  top: 0;
1478
1478
  left: 0;
@@ -1481,18 +1481,18 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1481
1481
  height: 0;
1482
1482
  overflow: hidden;
1483
1483
  white-space: nowrap;
1484
- `,Og=r.div`
1484
+ `,Dg=r.div`
1485
1485
  display: inline-flex;
1486
1486
  align-items: center;
1487
1487
  padding: 18px 24px;
1488
1488
  box-sizing: border-box;
1489
1489
  white-space: nowrap;
1490
- `,Ng=r.div`
1490
+ `,kg=r.div`
1491
1491
  display: inline-flex;
1492
1492
  align-items: center;
1493
1493
  gap: 4px;
1494
1494
  white-space: nowrap;
1495
- `,Ag=r.div`
1495
+ `,Lg=r.div`
1496
1496
  width: 100%;
1497
1497
  height: 100%;
1498
1498
  display: flex;
@@ -1500,7 +1500,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1500
1500
  justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
1501
1501
  gap: 4px;
1502
1502
  text-align: ${({$textAlign:e})=>e||"left"};
1503
- `,Ig=({variant:n,columns:r,rows:o,autoWidthColumnKeys:i,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d,activeRowId:u,scrollToIndex:p,scrollSignal:h})=>{const[g,m]=Ft(null),f=Ht(()=>o.map((p,h)=>{const{cells:f,onClick:y,isSelected:b=!1,onSelect:v,onDeselect:E,hideCheckbox:S,checkboxDisabled:$,checkboxTooltip:C}=p,x=g===h,w=null!=u&&p.id===u,T=s(p),O=(e,t)=>({$isLastRow:h===o.length-1,$isFirstCell:e,$isLastCell:t,$selected:b,$highlighted:w,$withClick:!!y,onClick:()=>y?.(),$hovered:!!y&&x,onMouseEnter:()=>m(h),onMouseLeave:()=>m(null)});return e($g,{children:[d&&t(wg,{$variant:n,style:{flex:"0 0 68px"},...O(!0,!1),children:!S&&(C?t(Nd,{text:C,children:t(gu,{value:b,disabled:$,onChange:()=>b?E?.():v?.()})}):t(gu,{value:b,disabled:$,onChange:()=>b?E?.():v?.()}))},"checkbox-column"),r.map(({key:o,withTooltip:s,textAlign:u,flex:p,minWidth:g},m)=>{const y=f.find(e=>e.key===o),b=0===m&&!d,v=m===r.length-1,E=T.length&&(l&&v||c&&b||!l&&!c&&v),S="right"===u?"flex-end":"center"===u?"center":"flex-start",$=y?.component?t(y.component,{}):s?t(br,{size:hr.XS,align:u,nowrap:!0,children:y?.rawValue||"-"}):t(Ru,{size:hr.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),C=t(Zo,{$width:"100%",$justifyContent:S,children:$});return e(wg,{$variant:n,$flex:p,$minWidth:g,$autoWidth:i.has(o),$resolvedWidth:a[o],...O(b,v),children:[s?t(Nd,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:C}):C,E?t(xh,{isOpen:x,actions:T,positionRight:l,positionLeft:c}):null]},`row-${h}-cell-${m}`)})]},`row-${h}`)}),[o,g,u,s,l,c,d,r,i,a]);return t(dg,{gap:n===bg.Pretty?8:0,elements:f,scrollToIndex:p,scrollSignal:h})},_g=({columnKey:e,sortDirection:n,sortByKey:r,onSort:o})=>{const a=i(),s=r===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=n===mn.Ascending?0:180;return t(kd,{variant:_d.Text,size:Rd.S,leftIcon:()=>t(At,{fill:s,rotate:l}),onClick:()=>o(e)})},Rg=({columnKey:e,filters:n,onFilter:r,rowsUnfiltered:o,filterOverride:a})=>{const s=i(),l=n[e]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=Ht(()=>a?a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(o.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[o,e,a]);return t(Ou,{items:c,withMultiSelect:!0,selectedIds:n[e]?.map(e=>e.toString())??[],setSelectedIds:t=>r(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Lt,{fill:l,...e})}})},Dg=({variant:n,backgroundColor:r,columns:o,rowsUnfiltered:i,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:c,onSort:d,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>e($g,{children:[h&&t(Cg,{$variant:n,$backgroundColor:r,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(gu,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),o.map(({key:g,label:m,withTooltip:f,tooltip:y,noSort:b,noFilter:v,filterOverride:E,flex:S,minWidth:$,textAlign:C},x)=>{const w=0===x&&!h,T=x===o.length-1,O=!(!y&&!f),N=O?t(br,{size:hr.XS,align:C,nowrap:!0,children:m}):t(Ru,{size:hr.XS,align:C,nowrap:!0,fullWidth:!1,children:m});return e(Cg,{$variant:n,$backgroundColor:r,$flex:S,$minWidth:$,$isFirst:w,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(Ag,{$textAlign:C,children:[O?t(Nd,{text:y||m,children:N}):N,!b&&t(_g,{columnKey:g,sortDirection:l,sortByKey:c,onSort:d}),!v&&t(Rg,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:E})]}),!T&&n===bg.Data&&t(xg,{})]},`column-${g}`)})]}),kg=()=>{},Lg={},Pg=[],Mg=({variant:n,maxHeight:r,headerBackgroundColor:o,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,filters:g,onFiltersChange:m,activeRowId:f,scrollSignal:y})=>{const[b,v]=Ft(mn.Ascending),[E,S]=Ft(""),[$,C]=Ft({}),x=g??$,w=Bt(e=>{S(e),v(e=>e===mn.Ascending?mn.Descending:mn.Ascending)},[]),T=Bt((e,t)=>{const n={...x,[e]:t};m&&m(n),void 0===g&&C(n)},[x,m,g]),O=Ht(()=>{const e=(e,t)=>{const n=e.cells.find(e=>e.key===t);return n&&(n.rawValue?.toString()||n.component?.({})?.props?.children?.toString())||""};return(E?[...c].sort((t,n)=>{const r=e(t,E),o=e(n,E);return(b===mn.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)))(r,o)}):c).filter(t=>{for(const[n,r]of Object.entries(x)){if(!r.length)continue;const o=l.find(e=>e.key===n)?.filterOverride;if(o){if(!o.filterRow(t,r))return!1}else if(!r.includes(e(t,n)))return!1}return!0})},[c,E,b,x,l]),N=Ht(()=>null==f?-1:O.findIndex(e=>e.id===f),[O,f]),{partiallySelected:A,allSelected:I}=Ht(()=>{const e=O.filter(e=>!e.hideCheckbox&&!e.checkboxDisabled);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[O]),_=Ht(()=>{const e=new Set;for(const t of l)null!=t.flex&&e.add(t.key);const t=new Set;for(const n of c)for(const r of n.cells)r.component&&!e.has(r.key)&&t.add(r.key);return t},[c,l]),R=jt(null),[D,k]=Ft({}),L=Ht(()=>0===_.size?[]:l.filter(e=>_.has(e.key)).map(n=>{const r=[e(Ng,{children:[t(br,{size:hr.XS,align:n.textAlign,children:n.label}),!n.noSort&&t(_g,{columnKey:n.key,sortDirection:mn.Ascending,sortByKey:"",onSort:kg}),!n.noFilter&&t(Rg,{columnKey:n.key,filters:Lg,onFilter:kg,rowsUnfiltered:Pg,filterOverride:n.filterOverride})]},`mw-${n.key}-header`)];return c.forEach((e,o)=>{const i=e.cells.find(e=>e.key===n.key);i&&r.push(i.component?t(i.component,{},`mw-${n.key}-${o}`):t(br,{size:hr.XS,children:i.rawValue||"-"},`mw-${n.key}-${o}`))}),{key:n.key,nodes:r}}),[l,c,_]);return Wt(()=>{if(!R.current||0===_.size)return void k(e=>0===Object.keys(e).length?e:{});const e={};R.current.querySelectorAll("[data-mw-key]").forEach(t=>{const n=t.dataset.mwKey;if(!n)return;const r=Math.ceil(t.getBoundingClientRect().width);(!e[n]||r>e[n])&&(e[n]=r)}),k(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])?t:e)},[L,_]),e(vg,{$maxHeight:r,children:[L.length>0&&t(Tg,{ref:R,"aria-hidden":!0,children:L.flatMap(({key:e,nodes:n})=>n.map((n,r)=>t(Og,{"data-mw-key":e,children:n},`mw-${e}-${r}`)))}),e(Eg,{$variant:n,children:[!i&&t(Sg,{children:t(Dg,{variant:n,backgroundColor:o,columns:l,rowsUnfiltered:c,autoWidthColumnKeys:_,resolvedColumnWidths:D,sortDirection:b,sortByKey:E,onSort:w,filters:x,onFilter:T,withCheckboxes:h,partiallySelected:A,allSelected:I,onSelectAll:e=>{e?O.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):O.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),O.length?t(Ig,{variant:n,columns:l,rows:O,autoWidthColumnKeys:_,resolvedColumnWidths:D,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:f,scrollToIndex:N,scrollSignal:y}):t(ti,{$height:r,children:a?t(fg,{size:3,maxHeight:r}):t(au,{...s})})]})]})};var Ug;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Ug||(Ug={}));const Fg=(e,t,n)=>{switch(t){case Ug.Purple:return e.v2.colors.purple[n?"300":"900"];case Ug.Yellow:return e.v2.colors.yellow[n?"300":"1000"];case Ug.Blue:return e.v2.colors.blue[n?"300":"1000"];case Ug.Pink:return e.v2.colors.red[n?"300":"1000"];case Ug.Green:return e.v2.colors.green[n?"300":"900"];case Ug.Loader:return e.v2.colors.grey[n?"600":"800"];default:return e.v2.colors.grey[n?"300":"500"]}},zg=r.div`
1503
+ `,Pg=({variant:n,columns:r,rows:o,autoWidthColumnKeys:i,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d,activeRowId:u,scrollToIndex:p,scrollSignal:h})=>{const[g,m]=Ft(null),f=Ht(()=>o.map((p,h)=>{const{cells:f,onClick:y,isSelected:b=!1,onSelect:v,onDeselect:E,hideCheckbox:S,checkboxDisabled:$,checkboxTooltip:C}=p,x=g===h,w=null!=u&&p.id===u,T=s(p),O=(e,t)=>({$isLastRow:h===o.length-1,$isFirstCell:e,$isLastCell:t,$selected:b,$highlighted:w,$withClick:!!y,onClick:()=>y?.(),$hovered:!!y&&x,onMouseEnter:()=>m(h),onMouseLeave:()=>m(null)});return e(Ng,{children:[d&&t(_g,{$variant:n,style:{flex:"0 0 68px"},...O(!0,!1),children:!S&&(C?t(kd,{text:C,children:t(Eu,{value:b,disabled:$,onChange:()=>b?E?.():v?.()})}):t(Eu,{value:b,disabled:$,onChange:()=>b?E?.():v?.()}))},"checkbox-column"),r.map(({key:o,withTooltip:s,textAlign:u,flex:p,minWidth:g},m)=>{const y=f.find(e=>e.key===o),b=0===m&&!d,v=m===r.length-1,E=T.length&&(l&&v||c&&b||!l&&!c&&v),S="right"===u?"flex-end":"center"===u?"center":"flex-start",$=y?.component?t(y.component,{}):s?t(br,{size:hr.XS,align:u,nowrap:!0,children:y?.rawValue||"-"}):t(Uu,{size:hr.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),C=t(Zo,{$width:"100%",$justifyContent:S,children:$});return e(_g,{$variant:n,$flex:p,$minWidth:g,$autoWidth:i.has(o),$resolvedWidth:a[o],...O(b,v),children:[s?t(kd,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:C}):C,E?t(Ih,{isOpen:x,actions:T,positionRight:l,positionLeft:c}):null]},`row-${h}-cell-${m}`)})]},`row-${h}`)}),[o,g,u,s,l,c,d,r,i,a]);return t(fg,{gap:n===xg.Pretty?8:0,elements:f,scrollToIndex:p,scrollSignal:h})},Mg=({columnKey:e,sortDirection:n,sortByKey:r,onSort:o})=>{const a=i(),s=r===e?a.v2.colors.white[500]:a.v2.colors.grey[400],l=n===mn.Ascending?0:180;return t(zd,{variant:Md.Text,size:Ud.S,leftIcon:()=>t(At,{fill:s,rotate:l}),onClick:()=>o(e)})},Ug=({columnKey:e,filters:n,onFilter:r,rowsUnfiltered:o,filterOverride:a})=>{const s=i(),l=n[e]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=Ht(()=>a?a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0})):Array.from(new Set(o.map(t=>t.cells.find(t=>t.key===e)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0})),[o,e,a]);return t(Du,{items:c,withMultiSelect:!0,selectedIds:n[e]?.map(e=>e.toString())??[],setSelectedIds:t=>r(e,t),defaultOpen:!1,iconButtonProps:{leftIcon:e=>t(Lt,{fill:l,...e})}})},Fg=({variant:n,backgroundColor:r,columns:o,rowsUnfiltered:i,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:c,onSort:d,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>e(Ng,{children:[h&&t(Ag,{$variant:n,$backgroundColor:r,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(Eu,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),o.map(({key:g,label:m,withTooltip:f,tooltip:y,noSort:b,noFilter:v,filterOverride:E,flex:S,minWidth:$,textAlign:C},x)=>{const w=0===x&&!h,T=x===o.length-1,O=!(!y&&!f),N=O?t(br,{size:hr.XS,align:C,nowrap:!0,children:m}):t(Uu,{size:hr.XS,align:C,nowrap:!0,fullWidth:!1,children:m});return e(Ag,{$variant:n,$backgroundColor:r,$flex:S,$minWidth:$,$isFirst:w,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(Lg,{$textAlign:C,children:[O?t(kd,{text:y||m,children:N}):N,!b&&t(Mg,{columnKey:g,sortDirection:l,sortByKey:c,onSort:d}),!v&&t(Ug,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:E})]}),!T&&n===xg.Data&&t(Ig,{})]},`column-${g}`)})]}),zg=()=>{},Bg={},Hg=[],jg=({variant:n,maxHeight:r,headerBackgroundColor:o,hideHeader:i=!1,isLoading:a,noDataProps:s,columns:l,rows:c,getRowActions:d,rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,filters:g,onFiltersChange:m,activeRowId:f,scrollSignal:y})=>{const[b,v]=Ft(mn.Ascending),[E,S]=Ft(""),[$,C]=Ft({}),x=g??$,w=Bt(e=>{S(e),v(e=>e===mn.Ascending?mn.Descending:mn.Ascending)},[]),T=Bt((e,t)=>{const n={...x,[e]:t};m&&m(n),void 0===g&&C(n)},[x,m,g]),O=Ht(()=>{const e=(e,t)=>{const n=e.cells.find(e=>e.key===t);return n&&(n.rawValue?.toString()||n.component?.({})?.props?.children?.toString())||""};return(E?[...c].sort((t,n)=>{const r=e(t,E),o=e(n,E);return(b===mn.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)))(r,o)}):c).filter(t=>{for(const[n,r]of Object.entries(x)){if(!r.length)continue;const o=l.find(e=>e.key===n)?.filterOverride;if(o){if(!o.filterRow(t,r))return!1}else if(!r.includes(e(t,n)))return!1}return!0})},[c,E,b,x,l]),N=Ht(()=>null==f?-1:O.findIndex(e=>e.id===f),[O,f]),{partiallySelected:A,allSelected:I}=Ht(()=>{const e=O.filter(e=>!e.hideCheckbox&&!e.checkboxDisabled);return{partiallySelected:e.length>0&&e.some(e=>e.isSelected),allSelected:e.length>0&&e.every(e=>e.isSelected)}},[O]),_=Ht(()=>{const e=new Set;for(const t of l)null!=t.flex&&e.add(t.key);const t=new Set;for(const n of c)for(const r of n.cells)r.component&&!e.has(r.key)&&t.add(r.key);return t},[c,l]),R=jt(null),[D,k]=Ft({}),L=Ht(()=>0===_.size?[]:l.filter(e=>_.has(e.key)).map(n=>{const r=[e(kg,{children:[t(br,{size:hr.XS,align:n.textAlign,children:n.label}),!n.noSort&&t(Mg,{columnKey:n.key,sortDirection:mn.Ascending,sortByKey:"",onSort:zg}),!n.noFilter&&t(Ug,{columnKey:n.key,filters:Bg,onFilter:zg,rowsUnfiltered:Hg,filterOverride:n.filterOverride})]},`mw-${n.key}-header`)];return c.forEach((e,o)=>{const i=e.cells.find(e=>e.key===n.key);i&&r.push(i.component?t(i.component,{},`mw-${n.key}-${o}`):t(br,{size:hr.XS,children:i.rawValue||"-"},`mw-${n.key}-${o}`))}),{key:n.key,nodes:r}}),[l,c,_]);return Wt(()=>{if(!R.current||0===_.size)return void k(e=>0===Object.keys(e).length?e:{});const e={};R.current.querySelectorAll("[data-mw-key]").forEach(t=>{const n=t.dataset.mwKey;if(!n)return;const r=Math.ceil(t.getBoundingClientRect().width);(!e[n]||r>e[n])&&(e[n]=r)}),k(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])?t:e)},[L,_]),e(wg,{$maxHeight:r,children:[L.length>0&&t(Rg,{ref:R,"aria-hidden":!0,children:L.flatMap(({key:e,nodes:n})=>n.map((n,r)=>t(Dg,{"data-mw-key":e,children:n},`mw-${e}-${r}`)))}),e(Tg,{$variant:n,children:[!i&&t(Og,{children:t(Fg,{variant:n,backgroundColor:o,columns:l,rowsUnfiltered:c,autoWidthColumnKeys:_,resolvedColumnWidths:D,sortDirection:b,sortByKey:E,onSort:w,filters:x,onFilter:T,withCheckboxes:h,partiallySelected:A,allSelected:I,onSelectAll:e=>{e?O.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):O.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),O.length?t(Pg,{variant:n,columns:l,rows:O,autoWidthColumnKeys:_,resolvedColumnWidths:D,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:f,scrollToIndex:N,scrollSignal:y}):t(ti,{$height:r,children:a?t($g,{size:3,maxHeight:r}):t(pu,{...s})})]})]})};var Wg;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Wg||(Wg={}));const Gg=(e,t,n)=>{switch(t){case Wg.Purple:return e.v2.colors.purple[n?"300":"900"];case Wg.Yellow:return e.v2.colors.yellow[n?"300":"1000"];case Wg.Blue:return e.v2.colors.blue[n?"300":"1000"];case Wg.Pink:return e.v2.colors.red[n?"300":"1000"];case Wg.Green:return e.v2.colors.green[n?"300":"900"];case Wg.Loader:return e.v2.colors.grey[n?"600":"800"];default:return e.v2.colors.grey[n?"300":"500"]}},Xg=r.div`
1504
1504
  display: flex;
1505
1505
  align-items: center;
1506
1506
  justify-content: center;
@@ -1519,16 +1519,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1519
1519
  background-color: ${({theme:e})=>e.v2.colors.grey[800]};
1520
1520
  cursor: not-allowed;
1521
1521
  `:o`
1522
- background-color: ${({theme:e})=>Fg(e,t)};
1522
+ background-color: ${({theme:e})=>Gg(e,t)};
1523
1523
  ${n&&o`
1524
1524
  cursor: pointer;
1525
1525
  &:hover,
1526
1526
  &:active {
1527
- border: 1px solid ${({theme:e})=>Fg(e,t,!0)};
1527
+ border: 1px solid ${({theme:e})=>Gg(e,t,!0)};
1528
1528
  }
1529
1529
  `}
1530
1530
  `}
1531
- `,Bg=({variant:n=Ug.Default,label:r,leftIcon:o,rightIcon:a,onClick:s,disabled:l,flex:c})=>{const d=i(),u=l?d.v2.colors.grey[400]:n===Ug.Default?d.v2.colors.white[500]:Fg(d,n,!0),p=n===Ug.Loader;return e(zg,{$variant:n,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:c,children:[o&&t(o,{fill:u,size:16}),p?t(ui,{withGradient:!0,title:r,titleSize:hr.XXS}):t(br,{color:u,size:hr.XXS,nowrap:!0,children:r}),a&&t(a,{fill:u,size:16})]})},Hg=r.div`
1531
+ `,Vg=({variant:n=Wg.Default,label:r,leftIcon:o,rightIcon:a,onClick:s,disabled:l,flex:c})=>{const d=i(),u=l?d.v2.colors.grey[400]:n===Wg.Default?d.v2.colors.white[500]:Gg(d,n,!0),p=n===Wg.Loader;return e(Xg,{$variant:n,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:c,children:[o&&t(o,{fill:u,size:16}),p?t(ui,{withGradient:!0,title:r,titleSize:hr.XXS}):t(br,{color:u,size:hr.XXS,nowrap:!0,children:r}),a&&t(a,{fill:u,size:16})]})},Kg=r.div`
1532
1532
  padding: 6px 12px;
1533
1533
 
1534
1534
  display: flex;
@@ -1546,7 +1546,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1546
1546
  border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
1547
1547
  }
1548
1548
  `}
1549
- `,jg=r.textarea`
1549
+ `,Yg=r.textarea`
1550
1550
  max-width: ${({$maxWidth:e})=>e||"unset"};
1551
1551
  min-height: ${({$minHeight:e})=>e||"50px"};
1552
1552
  flex: 1;
@@ -1571,26 +1571,26 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
1571
1571
  color: ${({theme:e})=>e.v2.colors.grey[400]};
1572
1572
  }
1573
1573
  }
1574
- `,Wg=({label:n,required:r,tooltip:o,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:c,value:d,onChange:u,disabled:p,maxWidth:h,minHeight:g,...m})=>{const f=jt(null),y=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return e(ei,{$gap:6,children:[t(cu,{label:n,tooltip:o,required:r,badge:i}),t(Hg,{$disabled:p,$error:!!a,children:t(jg,{ref:f,"data-id":c,name:c,value:d,onChange:e=>{e.stopPropagation(),y(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:y,onBlur:y,disabled:p,$maxWidth:h,$minHeight:g,...m})}),t(du,{errorMessage:a,warnMessage:s,helpMessage:l})]})},Gg=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],Xg=r.div`
1574
+ `,Jg=({label:n,required:r,tooltip:o,badge:i,errorMessage:a,warnMessage:s,helpMessage:l,name:c,value:d,onChange:u,disabled:p,maxWidth:h,minHeight:g,...m})=>{const f=jt(null),y=()=>{f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return e(ei,{$gap:6,children:[t(mu,{label:n,tooltip:o,required:r,badge:i}),t(Kg,{$disabled:p,$error:!!a,children:t(Yg,{ref:f,"data-id":c,name:c,value:d,onChange:e=>{e.stopPropagation(),y(),u?.(e)},onKeyDown:e=>{e.stopPropagation()},onFocus:y,onBlur:y,disabled:p,$maxWidth:h,$minHeight:g,...m})}),t(fu,{errorMessage:a,warnMessage:s,helpMessage:l})]})},qg=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],Qg=r.div`
1575
1575
  flex: 1;
1576
1576
  min-width: 0;
1577
- `,Vg=r.div`
1577
+ `,Zg=r.div`
1578
1578
  flex: 0 0 auto;
1579
1579
  min-width: 140px;
1580
- `,Kg=({name:n,label:r,tooltip:o,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:u=Gg,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:y})=>{const b=Ht(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:E}=Ht(()=>((e,t,n)=>{if(null==e||""===e)return{num:"",unit:n};const r=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),o=new RegExp(`^\\s*(\\d+)\\s*(${r.join("|")})\\s*$`,"i"),i=String(e).match(o);if(i)return{num:i[1],unit:i[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:n}:{num:"",unit:n}})(c,u,b),[c,u,b]),S=(e,t)=>{d(""!==e?`${e}${t}`:"")};return e(ei,{$width:y,$gap:6,children:[t(cu,{label:r,tooltip:o,required:s,badge:i}),e(Zo,{$gap:8,$alignItems:"center",children:[t(Xg,{children:t(qu,{name:n,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>S(Mi(e.target.value),E)})}),t(Vg,{children:t(yh,{name:`${n}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[E],setValues:e=>S(v,e[0]||E)})})]}),t(du,{errorMessage:h,warnMessage:g,helpMessage:m})]})},Yg=r.div`
1580
+ `,em=({name:n,label:r,tooltip:o,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:u=qg,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:y})=>{const b=Ht(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:v,unit:E}=Ht(()=>((e,t,n)=>{if(null==e||""===e)return{num:"",unit:n};const r=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),o=new RegExp(`^\\s*(\\d+)\\s*(${r.join("|")})\\s*$`,"i"),i=String(e).match(o);if(i)return{num:i[1],unit:i[2].toLowerCase()};const a=String(e).match(/^\s*(\d+)\s*$/);return a?{num:a[1],unit:n}:{num:"",unit:n}})(c,u,b),[c,u,b]),S=(e,t)=>{d(""!==e?`${e}${t}`:"")};return e(ei,{$width:y,$gap:6,children:[t(mu,{label:r,tooltip:o,required:s,badge:i}),e(Zo,{$gap:8,$alignItems:"center",children:[t(Qg,{children:t(rp,{name:n,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>S(Mi(e.target.value),E)})}),t(Zg,{children:t(Ch,{name:`${n}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[E],setValues:e=>S(v,e[0]||E)})})]}),t(fu,{errorMessage:h,warnMessage:g,helpMessage:m})]})},tm=r.div`
1581
1581
  min-width: 500px;
1582
- `,Jg=r.div`
1582
+ `,nm=r.div`
1583
1583
  display: flex;
1584
1584
  flex-direction: column;
1585
1585
  align-items: center;
1586
1586
  gap: 16px;
1587
1587
  padding: 24px;
1588
1588
  width: 100%;
1589
- `,qg=r.div`
1589
+ `,rm=r.div`
1590
1590
  display: flex;
1591
1591
  justify-content: center;
1592
1592
  gap: 16px;
1593
1593
  padding: 16px 24px;
1594
1594
  width: 100%;
1595
1595
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
1596
- `,Qg=({visual:n,title:r,description:o,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>t(qh,{isOpen:i,onClose:a,...d,children:e(Yg,{children:[e(Jg,{children:[n&&t(n,{}),t(br,{size:hr.M,weight:500,color:gr.Primary,children:r}),t(ei,{$alignItems:"center",$gap:4,children:o.split("\n").map(e=>t(br,{size:hr.XS,weight:400,color:gr.Secondary,children:e},e))}),c]}),(s||l)&&e(qg,{children:[s&&t(kd,{"data-id":"deny",...s}),l&&t(kd,{"data-id":"approve",...l})]})]})});export{uu as $,Nu as A,kd as B,gu as C,fh as D,fs as E,ei as F,Ss as G,Bg as H,Wh as I,$s as J,Cs as K,ys as L,En as M,ch as N,oo as O,yn as P,Bu as Q,_u as R,Tn as S,Nd as T,Qa as U,Ho as V,Qg as W,rs as X,tu as Y,Qu as Z,hs as _,Au as a,ti as a$,xs as a0,ws as a1,qa as a2,_r as a3,Bp as a4,Fh as a5,pa as a6,Xa as a7,Mn as a8,zn as a9,Os as aA,za as aB,vs as aC,Ns as aD,Ts as aE,As as aF,Is as aG,cs as aH,Ia as aI,Da as aJ,ka as aK,Ma as aL,Fa as aM,Ua as aN,Ya as aO,Ea as aP,Sa as aQ,Oa as aR,ds as aS,us as aT,ms as aU,Oc as aV,$a as aW,Ja as aX,Br as aY,Nc as aZ,dg as a_,Kn as aa,Yn as ab,Jn as ac,Fn as ad,Bn as ae,Un as af,ur as ag,ts as ah,Ra as ai,es as aj,_a as ak,is as al,Ga as am,Za as an,os as ao,gs as ap,Va as aq,Rh as ar,ps as as,Ha as at,Na as au,ja as av,Ba as aw,Ou as ax,Aa as ay,Wa as az,fn as b,td as b$,au as b0,ui as b1,ou as b2,nd as b3,Qr as b4,Op as b5,Fc as b6,xr as b7,Ao as b8,Sn as b9,er as bA,Id as bB,sn as bC,sa as bD,pn as bE,la as bF,Ah as bG,Ru as bH,Yd as bI,vr as bJ,zi as bK,ra as bL,Qi as bM,Zi as bN,ta as bO,ea as bP,Hs as bQ,Ka as bR,ns as bS,js as bT,ls as bU,Bs as bV,wa as bW,Ta as bX,La as bY,sr as bZ,on as b_,$n as ba,Rc as bb,jc as bc,Vc as bd,zc as be,yo as bf,lr as bg,ho as bh,xi as bi,ia as bj,Ci as bk,Kc as bl,rr as bm,an as bn,rn as bo,wi as bp,Ti as bq,cr as br,Li as bs,Xn as bt,ki as bu,oa as bv,kn as bw,Bd as bx,Qo as by,fg as bz,aa as c,rl as c$,Zc as c0,dr as c1,uo as c2,pr as c3,$r as c4,Sr as c5,hn as c6,lg as c7,Zr as c8,kp as c9,Yi as cA,Vi as cB,_i as cC,Io as cD,pi as cE,ao as cF,Jd as cG,Mg as cH,bg as cI,Xh as cJ,Pa as cK,ha as cL,xo as cM,so as cN,ca as cO,ma as cP,ua as cQ,ga as cR,xc as cS,Tc as cT,wc as cU,Ks as cV,Xs as cW,Gs as cX,Vs as cY,el as cZ,Zs as c_,Ur as ca,Fp as cb,nr as cc,Di as cd,Xr as ce,vi as cf,bo as cg,Sd as ch,pd as ci,Ar as cj,Pn as ck,Nr as cl,Gi as cm,io as cn,Ug as co,bp as cp,Pc as cq,bi as cr,yi as cs,co as ct,Th as cu,Lc as cv,No as cw,Jr as cx,hi as cy,dd as cz,cu as d,hc as d$,nl as d0,qs as d1,Js as d2,da as d3,Ps as d4,ld as d5,Oi as d6,bu as d7,yu as d8,qh as d9,yl as dA,fl as dB,bl as dC,ol as dD,il as dE,Tl as dF,Ol as dG,Dl as dH,_l as dI,Rl as dJ,Al as dK,Il as dL,Nl as dM,Ml as dN,Ul as dO,Ll as dP,Pl as dQ,kl as dR,zl as dS,Bl as dT,Fl as dU,ll as dV,lc as dW,cc as dX,dc as dY,sc as dZ,pc as d_,Dc as da,Cc as db,al as dc,vl as dd,El as de,Sl as df,$l as dg,xl as dh,Cl as di,wl as dj,Yo as dk,yc as dl,bc as dm,vc as dn,Ec as dp,Sc as dq,$c as dr,sl as ds,cl as dt,dl as du,ul as dv,hl as dw,pl as dx,ml as dy,gl as dz,br as e,Us as e$,gc as e0,mc as e1,fc as e2,uc as e3,ic as e4,ac as e5,Jl as e6,nc as e7,rc as e8,oc as e9,fo as eA,go as eB,po as eC,Qc as eD,Vr as eE,Gr as eF,Wr as eG,Er as eH,_o as eI,Hn as eJ,Wu as eK,hp as eL,Vu as eM,qo as eN,Es as eO,ba as eP,fa as eQ,ya as eR,va as eS,Ws as eT,Ls as eU,Ds as eV,ks as eW,Rs as eX,_s as eY,Fs as eZ,zs as e_,Ql as ea,ec as eb,Zl as ec,Hl as ed,jl as ee,Wl as ef,Gl as eg,Xl as eh,Vl as ei,Kl as ej,Yl as ek,ql as el,tc as em,wo as en,Jo as eo,yg as ep,Uc as eq,Kr as er,Cr as es,Xi as et,md as eu,kc as ev,Wc as ew,mo as ex,eo as ey,to as ez,gr as f,Ys as f$,Ms as f0,hd as f1,_n as f2,dn as f3,An as f4,Nn as f5,Dn as f6,bn as f7,vn as f8,On as f9,lo as fA,Or as fB,Eo as fC,So as fD,$o as fE,Co as fF,To as fG,gi as fH,Ei as fI,Si as fJ,$i as fK,Ni as fL,Ai as fM,Ri as fN,Mi as fO,Ui as fP,Fi as fQ,Bi as fR,Hi as fS,jr as fT,ji as fU,Wi as fV,tr as fW,Ji as fX,bs as fY,tl as fZ,Qs as f_,un as fa,Zn as fb,gn as fc,cn as fd,Ln as fe,Cn as ff,Gn as fg,Wn as fh,jn as fi,Rn as fj,Qn as fk,qn as fl,Vn as fm,mn as fn,ln as fo,In as fp,Wo as fq,jo as fr,Vo as fs,Fr as ft,zr as fu,Pi as fv,Yr as fw,qr as fx,ro as fy,Hr as fz,hr as g,as as g0,ss as g1,xa as g2,Ca as g3,Ki as g4,Ac as g5,ir as g6,ar as g7,qi as g8,Ic as g9,ii as gA,ai as gB,si as gC,Sp as gD,Jp as gE,Hp as gF,ni as gG,fr as gH,cd as ga,Jc as gb,qc as gc,rd as gd,id as ge,sd as gf,ud as gg,gd as gh,yd as gi,zd as gj,Kd as gk,Hd as gl,Fd as gm,np as gn,rp as go,fu as gp,Gg as gq,vh as gr,op as gs,$h as gt,xh as gu,oi as gv,rg as gw,ri as gx,kh as gy,Fu as gz,Zo as h,Rd as i,_d as j,du as k,Tr as l,wr as m,xn as n,Kp as o,Wp as p,jp as q,Kg as r,yh as s,nn as t,Wg as u,Rr as v,Nh as w,qu as x,wn as y,Uu as z};
1596
+ `,om=({visual:n,title:r,description:o,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>t(rg,{isOpen:i,onClose:a,...d,children:e(tm,{children:[e(nm,{children:[n&&t(n,{}),t(br,{size:hr.M,weight:500,color:gr.Primary,children:r}),t(ei,{$alignItems:"center",$gap:4,children:o.split("\n").map(e=>t(br,{size:hr.XS,weight:400,color:gr.Secondary,children:e},e))}),c]}),(s||l)&&e(rm,{children:[s&&t(zd,{"data-id":"deny",...s}),l&&t(zd,{"data-id":"approve",...l})]})]})});export{yu as $,ku as A,zd as B,Eu as C,$h as D,$s as E,ei as F,Os as G,Vg as H,Jh as I,Ns as J,As as K,Cs as L,En as M,mh as N,oo as O,yn as P,Vu as Q,Mu as R,Tn as S,kd as T,os as U,Ho as V,om as W,cs as X,su as Y,op as Z,vs as _,Lu as a,ti as a$,Is as a0,_s as a1,rs as a2,_r as a3,Vp as a4,Gh as a5,ba as a6,Qa as a7,Mn as a8,zn as a9,Ds as aA,Xa as aB,ws as aC,ks as aD,Rs as aE,Ls as aF,Ps as aG,ms as aH,Pa as aI,Fa as aJ,za as aK,ja as aL,Ga as aM,Wa as aN,ts as aO,Ta as aP,Oa as aQ,Da as aR,fs as aS,ys as aT,Ss as aU,Dc as aV,Na as aW,ns as aX,Br as aY,kc as aZ,fg as a_,Kn as aa,Yn as ab,Jn as ac,Fn as ad,Bn as ae,Un as af,ur as ag,ss as ah,Ua as ai,as as aj,Ma as ak,us as al,qa as am,is as an,ds as ao,Es as ap,Za as aq,Uh as ar,bs as as,Ka as at,ka as au,Ya as av,Va as aw,Du as ax,La as ay,Ja as az,fn as b,sd as b$,pu as b0,ui as b1,du as b2,ld as b3,Qr as b4,Dp as b5,Gc as b6,xr as b7,Ao as b8,Sn as b9,er as bA,Pd as bB,sn as bC,ha as bD,pn as bE,ga as bF,Lh as bG,Uu as bH,tu as bI,vr as bJ,zi as bK,ca as bL,oa as bM,ia as bN,sa as bO,aa as bP,Ks as bQ,es as bR,ls as bS,Ys as bT,gs as bU,Vs as bV,_a as bW,Ra as bX,Ba as bY,sr as bZ,on as b_,$n as ba,Uc as bb,Yc as bc,Zc as bd,Xc as be,yo as bf,lr as bg,ho as bh,xi as bi,ua as bj,Ci as bk,ed as bl,rr as bm,an as bn,rn as bo,wi as bp,Ti as bq,cr as br,Li as bs,Xn as bt,ki as bu,da as bv,kn as bw,Vd as bx,Qo as by,$g as bz,pa as c,Zs as c$,id as c0,dr as c1,uo as c2,pr as c3,$r as c4,Sr as c5,hn as c6,gg as c7,Zr as c8,zp as c9,fd as cA,ta as cB,Zi as cC,_i as cD,Io as cE,pi as cF,ao as cG,Vi as cH,Ji as cI,nu as cJ,jg as cK,xg as cL,Qh as cM,Ha as cN,va as cO,xo as cP,so as cQ,ma as cR,Sa as cS,ya as cT,Ea as cU,Ic as cV,Rc as cW,_c as cX,el as cY,Qs as cZ,qs as c_,Ur as ca,Gp as cb,nr as cc,Di as cd,Xr as ce,vi as cf,bo as cg,Od as ch,Yi as ci,bd as cj,Ar as ck,Pn as cl,Nr as cm,qi as cn,io as co,Wg as cp,xp as cq,Hc as cr,bi as cs,yi as ct,co as cu,Rh as cv,Bc as cw,No as cx,Jr as cy,hi as cz,mu as d,fc as d$,al as d0,il as d1,cl as d2,ll as d3,rl as d4,nl as d5,fa as d6,Hs as d7,gd as d8,Oi as d9,bl as dA,Sl as dB,El as dC,Cl as dD,$l as dE,xl as dF,dl as dG,ul as dH,Rl as dI,Dl as dJ,Fl as dK,Ml as dL,Ul as dM,Ll as dN,Pl as dO,kl as dP,jl as dQ,Wl as dR,Bl as dS,Hl as dT,zl as dU,Xl as dV,Vl as dW,Gl as dX,gl as dY,gc as dZ,mc as d_,xu as da,Cu as db,rg as dc,Fc as dd,Ac as de,pl as df,wl as dg,Tl as dh,Ol as di,Nl as dj,Il as dk,Al as dl,_l as dm,Yo as dn,Cc as dp,xc as dq,wc as dr,Tc as ds,Oc as dt,Nc as du,hl as dv,ml as dw,fl as dx,yl as dy,vl as dz,br as e,Ms as e$,hc as e0,bc as e1,vc as e2,Ec as e3,Sc as e4,$c as e5,yc as e6,uc as e7,pc as e8,nc as e9,mo as eA,eo as eB,to as eC,fo as eD,go as eE,po as eF,od as eG,Vr as eH,Gr as eI,Wr as eJ,Er as eK,_o as eL,Hn as eM,Ju as eN,vp as eO,Zu as eP,qo as eQ,Ts as eR,xa as eS,$a as eT,Ca as eU,wa as eV,Js as eW,Bs as eX,Fs as eY,zs as eZ,Us as e_,lc as ea,cc as eb,dc as ec,oc as ed,ac as ee,ic as ef,Kl as eg,Yl as eh,Jl as ei,ql as ej,Ql as ek,Zl as el,ec as em,tc as en,rc as eo,sc as ep,wo as eq,Jo as er,Cg as es,Wc as et,Kr as eu,Cr as ev,Qi as ew,Sd as ex,zc as ey,Jc as ez,gr as f,xs as f$,Gs as f0,Xs as f1,Ws as f2,js as f3,vd as f4,_n as f5,dn as f6,An as f7,Nn as f8,Dn as f9,qr as fA,ro as fB,Hr as fC,lo as fD,Or as fE,Eo as fF,So as fG,$o as fH,Co as fI,To as fJ,gi as fK,Ei as fL,Si as fM,$i as fN,Ni as fO,Ai as fP,Ri as fQ,Mi as fR,Ui as fS,Fi as fT,Bi as fU,Hi as fV,jr as fW,ji as fX,Wi as fY,tr as fZ,na as f_,bn as fa,vn as fb,On as fc,un as fd,Zn as fe,gn as ff,cn as fg,Ln as fh,Cn as fi,Gn as fj,Wn as fk,jn as fl,Rn as fm,Qn as fn,qn as fo,Vn as fp,mn as fq,ln as fr,In as fs,Wo as ft,jo as fu,Vo as fv,Fr as fw,zr as fx,Pi as fy,Yr as fz,hr as g,sl as g0,ol as g1,tl as g2,ps as g3,hs as g4,Ia as g5,Aa as g6,ea as g7,Lc as g8,ir as g9,ri as gA,zh as gB,Gu as gC,ii as gD,ai as gE,si as gF,Op as gG,nh as gH,Kp as gI,ni as gJ,fr as gK,ar as ga,ra as gb,Pc as gc,md as gd,nd as ge,rd as gf,cd as gg,ud as gh,hd as gi,yd as gj,Ed as gk,Cd as gl,Xd as gm,eu as gn,Kd as go,Gd as gp,lp as gq,cp as gr,$u as gs,qg as gt,wh as gu,dp as gv,Nh as gw,Ih as gx,oi as gy,cg as gz,Zo as h,Ud as i,Md as j,fu as k,Tr as l,wr as m,xn as n,eh as o,Jp as p,Yp as q,em as r,Ch as s,nn as t,Jg as u,Rr as v,kh as w,rp as x,wn as y,Wu as z};