@odigos/ui-kit 0.0.283 → 0.0.284
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/lib/chunks/{helpers-BfXS2wve.js → helpers-DqYXvhEu.js} +1 -1
- package/lib/chunks/{index--HGLHoM2.js → index-DxXpZafj.js} +1 -1
- package/lib/chunks/{source-instrument-form-context-CNsR2QcD.js → source-instrument-form-context-BPXm6ufr.js} +1 -1
- package/lib/chunks/{ui-components-DLU_wMXv.js → ui-components-M0c3qdR2.js} +207 -207
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_modals/sampling-onboarding-modal/common/chrome.d.ts +10 -6
- package/lib/containers/_modals/sampling-onboarding-modal/common/section.d.ts +3 -3
- package/lib/containers.js +134 -134
- package/lib/contexts.js +1 -1
- package/lib/functions/index.d.ts +0 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets/sampling-rule-form-sections/styled.d.ts +2 -2
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +18 -18
|
@@ -38,11 +38,11 @@ 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=Ft(({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(Mt,{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",$r="this-cluster",Sr="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},Ir=e=>e.charAt(0).toUpperCase()+e.slice(1);var _r;(e=>{e.SIGNALS="SIGNALS"})(_r||(_r={}));const Rr=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[r,o,i]=e;if(r===_r.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 Dr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const kr=e=>({status:e?Tn.Success:Tn.Unknown,label:e?"True":"False",invertColors:!0}),Lr=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Pr=e=>{if(null==e||""===e)return"-";if("boolean"==typeof e)return e?"True":"False";if("number"==typeof e)return String(e);if("string"==typeof e)return e||"-";if(Array.isArray(e)){const t=e.map(e=>null==e||""===e?"":"string"==typeof e||"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)).filter(Boolean);return t.length?t.join(", "):"-"}return JSON.stringify(e)},Fr=e=>"string"==typeof e?{id:e,label:e}:e??{},Mr=(e,t)=>e.label||e.displayName||t,Ur=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const n=t.map(t=>{const n=String(t??"");if(!n)return"";const r=e.options?.find(e=>String(e.id??"")===n);return r?Mr(r,n):n}).filter(Boolean);return n.join(", ")}const n=String(t),r=e.options?.find(e=>String(e.id??"")===n);return r?Mr(r,n):Pr(t)},zr=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const n=Lr(e.componentProps)?e.componentProps:void 0;return{name:t,displayName:e.displayName||t,componentType:e.componentType,componentProperties:"string"==typeof e.componentProperties?e.componentProperties:n?JSON.stringify(n):void 0,initialValue:e.initialValue,renderCondition:e.renderCondition}},Br=e=>{const t=[];return e.forEach(e=>{"cells"!==e.kind&&"list"!==e.kind&&"pairs"!==e.kind?(e.items?.length&&t.push(...e.items),e.segments?.length&&t.push(...Br(e.segments))):t.push(...e.items)}),t},Hr=(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}));let s=[];const l=()=>{s.length&&(r.push({kind:"cells",id:`cells-${r.length}`,items:s}),s=[])};return t.forEach((t,c)=>{if(!t?.name||i.has(t.componentType))return;if(t.renderCondition?.length&&!Rr(t.renderCondition,o,a))return;const d=t.displayName||t.name,u=`${t.name}-${c}`,p=e[t.name],h=Dr(t.componentProperties,{});switch(t.componentType){case xn.Toggle:case xn.Checkbox:return void s.push({id:u,title:d,badge:kr(!!p)});case xn.CheckboxList:{const t=h.valueMode||"object";if("array"===t){const e=Array.isArray(p)?p.map(String).filter(Boolean):[],t=Array.isArray(h.options)?h.options:[],n=e.map(e=>{const n=t.map(Fr).find(t=>String(t.id??"")===e);return n?Mr(n,e):e});return l(),void r.push({kind:"list",id:u,title:d,items:n.length?n.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}if("flatFields"===t)return void(Array.isArray(h.options)?h.options:[]).forEach((t,n)=>{const r=Fr(t),o=String(r.id??"");o&&s.push({id:`${u}-${n}-${o}`,title:Mr(r,o),badge:kr(!0===e[o])})});const n=Lr(p)?p:{},o=Array.isArray(h.options)?h.options:[];let i=[];return i=o.length?o.map(e=>{const t=Fr(e),r=String(t.id??"");return r&&n[r]?Mr(t,r):null}).filter(Boolean):Object.entries(n).filter(([,e])=>!!e).map(([e])=>e),l(),void r.push({kind:"list",id:u,title:d,items:i.length?i.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case xn.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,n=e&&Lr(p)?p[e]:p,o=Array.isArray(n)&&n.length?n.map(e=>t&&Lr(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];return l(),void r.push({kind:"list",id:u,title:d,items:o.length?o.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case xn.KeyValuePair:return l(),Lr(p)&&Object.keys(p).length?void r.push({kind:"pairs",id:u,title:d,items:Object.entries(p).map(([e,t],n)=>({id:`${u}-${n}`,title:e,label:String(t??"")}))}):Array.isArray(p)&&p.length?void r.push({kind:"pairs",id:u,title:d,items:p.map((e,t)=>{const n=Lr(e)?e:{};return{id:`${u}-${t}`,title:String(n.key??""),label:String(n.value??"")}})}):void r.push({kind:"pairs",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]});case xn.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&Lr(p)?p[e]:p)?e&&Lr(p)?p[e]:p:[],n=(g=h.columns,Array.isArray(g)?g.map(e=>{const t=e&&"object"==typeof e?e:{},n=t.options??t.values,r=Array.isArray(n)?n.map(Fr):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:r,componentType:t.componentType,renderCondition:Array.isArray(t.renderCondition)&&t.renderCondition.length>=3?t.renderCondition:void 0}}).filter(e=>!!e.keyName):[]);return l(),t.length?void t.forEach((e,o)=>{const i=t.length>1?`${d} #${o+1}`:d,a=[],s=Lr(e)?{...e}:{};null!=s.method&&""!==s.method||!n.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(s.method=String(s.regex??"").trim()?"regex":"preset"),n.length?n.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[n,r,o]=t,i=null==e?.[n]?"":String(e[n]);switch(r){case"=":case"==":case"===":return i===o;case"!=":case"!==":return i!==o;default:return!0}})(s,e.renderCondition))return;let t=s[e.keyName];(null==t||""===t||Array.isArray(t)&&!t.length)&&"fromSources"===e.keyName&&null!=s.from&&""!==s.from&&(t=[s.from]),null==t||""===t||Array.isArray(t)&&!t.length||"segment"!==e.componentType&&a.push({id:`${u}-${o}-${e.keyName}`,title:e.label||Ir(ur(e.keyName))||e.keyName,label:Ur(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${o}-${e}`,title:e,label:Pr(t)})}),r.push({kind:"group",id:`${u}-${o}`,title:i,items:a.length?a:[{id:`${u}-${o}-empty`,label:"-"}]})}):void r.push({kind:"group",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]})}case xn.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(zr).filter(Boolean),o=h.itemLabel||d;return l(),e.length?void e.forEach((i,a)=>{const s=e.length>1?`${o} ${a+1}`:o,l=Lr(i)?i:{},c=t.length?Hr(l,t,n):[{kind:"cells",id:`${u}-${a}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],n)=>({id:`${u}-${a}-${n}-${e}`,title:e,label:Pr(t)}))}];r.push({kind:"group",id:`${u}-${a}`,title:s,segments:c.length?c:void 0,items:c.length?void 0:[{id:`${u}-${a}-empty`,label:"-"}]})}):void r.push({kind:"group",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]})}default:s.push({id:u,title:d,label:Pr(p)})}var g}),l(),r},jr=(e,t,n={})=>Br(Hr(e,t,n)),Wr=e=>e.map(e=>"cells"===e.kind?t(Yu,{bgTint:"800",cellsPerRow:2,items:e.items},e.id):"list"===e.kind||"pairs"===e.kind?t(Yu,{bgTint:"800",richTitle:{title:e.title},cellsPerRow:2,items:e.items},e.id):t(Yu,{bgTint:"800",richTitle:{title:e.title},cellsPerRow:e.items?.length?2:void 0,items:e.items,children:e.segments?.length?Wr(e.segments):null},e.id)),Gr=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},{})},Xr=e=>JSON.parse(JSON.stringify(e)),Vr=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Kr=(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},Yr=(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},Jr=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},qr=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Qr=(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},Zr=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Er&&!e.dataStreamNames?.length):[],eo=(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?eo(e,r,n):n[r]=e}):n[i]=o:eo(o,i,n)}return n},to=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]}`},no=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`}},ro=()=>{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)})},oo=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},[]):[],io=e=>Array.isArray(e?.statuses)?oo(e.statuses):e?.conditions??[],ao=e=>e?Array.isArray(e)?so(e):so(oo(Object.values(e))):so([]),so=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}},lo=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},co=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]:S,[En.Swift]:$,[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),uo=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown:En.Unknown,po=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,ho=e=>e?.map(e=>co(uo(e)))||[],go=e=>e?.map(e=>co(e))||[],mo=e=>e.runtimeInfo?.detectedLanguages?.length?go(e.runtimeInfo?.detectedLanguages):ho(e.containers),fo=(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]:Se,[Dn.Datadog]:$e,[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]:U,[Dn.Tempo]:M,[Dn.Tingyun]:F,[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`}},yo=e=>({[Sn.Namespace]:Be,[Sn.Source]:ze,[Sn.Destination]:Ue,[Sn.Action]:u,[Sn.InstrumentationRule]:Me,[Sn.SamplingRule]:Fe}[e]),bo=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,vo=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},Eo=e=>vo(bo(e)),$o=(e,t,n)=>{const{extended:r,prioritizeDisplayName:o}=n||{};let i="",a="";switch(t){case Sn.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case Sn.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case Sn.Action:const r=e;i=r.type,a=r.name||"";break;case Sn.Destination:const o=e;i=o.destinationType.displayName,a=o.name;break;case Sn.Namespace:const s=e;i=s.name,a=s.name}return r?i+(a&&a!==i?` (${a})`:""):o&&a||i},So=(e,t)=>{if(t===Sn.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,r]=e.split("=");t[n]=r}),t}return e},Co=e=>({[Fn.CodeAttributes]:Ge,[Fn.CustomInstrumentation]:We,[Fn.HeadersCollection]:je,[Fn.PayloadCollection]:He,[Fn.UnknownType]:g}[e]||g),xo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown,wo=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?En.Processing:En.NoRunningPods;const r=n?.filter(e=>xo(e)!==En.Ignored);if(!r.length)return En.NoContainers;const o=r.find(e=>xo(e)!==En.Unknown);return o?xo(o):En.Unknown},To=(e,t,n)=>(t===Sn.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},Oo=e=>({[Xn.Logs]:Ke,[Xn.Metrics]:Ve,[Xn.Traces]:Xe,[Xn.Profiles]:ee}[e]),No=(e,t)=>Object.values(hr).reduce((n,r)=>Math.abs(t[r]-e)<Math.abs(t[n]-e)?r:n),Ao=e=>e&&{[yn.K8s]:Qe,[yn.Vm]:qe,[yn.Connector]:Je,[yn.AwsEcs]:Ye}[e]||ee,Io=e=>e?{[yn.K8s]:"Kubernetes Cluster",[yn.Vm]:"Virtual Machine",[yn.Connector]:"Cloud Connector",[yn.AwsEcs]:"AWS ECS"}[e]:"Unknown",_o=(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(..._o(e,t,n)),o}):[]},Ro={"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"},Do=e=>{if(!e)return"";if(Ro[e])return Ro[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},ko=(e,t)=>{if(t===Sn.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},Lo=(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]}},Po=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}},Fo=r.div`
|
|
41
|
+
`,br=Ft(({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(Mt,{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",$r="this-cluster",Sr="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},Ir=e=>e.charAt(0).toUpperCase()+e.slice(1);var _r;(e=>{e.SIGNALS="SIGNALS"})(_r||(_r={}));const Rr=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[r,o,i]=e;if(r===_r.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 Dr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const kr=e=>({status:e?Tn.Success:Tn.Unknown,label:e?"True":"False",invertColors:!0}),Lr=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),Pr=e=>{if(null==e||""===e)return"-";if("boolean"==typeof e)return e?"True":"False";if("number"==typeof e)return String(e);if("string"==typeof e)return e||"-";if(Array.isArray(e)){const t=e.map(e=>null==e||""===e?"":"string"==typeof e||"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)).filter(Boolean);return t.length?t.join(", "):"-"}return JSON.stringify(e)},Fr=e=>"string"==typeof e?{id:e,label:e}:e??{},Mr=(e,t)=>e.label||e.displayName||t,Ur=(e,t)=>{if(null==t||""===t)return"";if(Array.isArray(t)){const n=t.map(t=>{const n=String(t??"");if(!n)return"";const r=e.options?.find(e=>String(e.id??"")===n);return r?Mr(r,n):n}).filter(Boolean);return n.join(", ")}const n=String(t),r=e.options?.find(e=>String(e.id??"")===n);return r?Mr(r,n):Pr(t)},zr=e=>{const t=String(e.name??"");if(!t||!e.componentType)return null;const n=Lr(e.componentProps)?e.componentProps:void 0;return{name:t,displayName:e.displayName||t,componentType:e.componentType,componentProperties:"string"==typeof e.componentProperties?e.componentProperties:n?JSON.stringify(n):void 0,initialValue:e.initialValue,renderCondition:e.renderCondition}},Br=e=>{const t=[];return e.forEach(e=>{"cells"!==e.kind&&"list"!==e.kind&&"pairs"!==e.kind?(e.items?.length&&t.push(...e.items),e.segments?.length&&t.push(...Br(e.segments))):t.push(...e.items)}),t},Hr=(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}));let s=[];const l=()=>{s.length&&(r.push({kind:"cells",id:`cells-${r.length}`,items:s}),s=[])};return t.forEach((t,c)=>{if(!t?.name||i.has(t.componentType))return;if(t.renderCondition?.length&&!Rr(t.renderCondition,o,a))return;const d=t.displayName||t.name,u=`${t.name}-${c}`,p=e[t.name],h=Dr(t.componentProperties,{});switch(t.componentType){case xn.Toggle:case xn.Checkbox:return void s.push({id:u,title:d,badge:kr(!!p)});case xn.CheckboxList:{const t=h.valueMode||"object";if("array"===t){const e=Array.isArray(p)?p.map(String).filter(Boolean):[],t=Array.isArray(h.options)?h.options:[],n=e.map(e=>{const n=t.map(Fr).find(t=>String(t.id??"")===e);return n?Mr(n,e):e});return l(),void r.push({kind:"list",id:u,title:d,items:n.length?n.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}if("flatFields"===t)return void(Array.isArray(h.options)?h.options:[]).forEach((t,n)=>{const r=Fr(t),o=String(r.id??"");o&&s.push({id:`${u}-${n}-${o}`,title:Mr(r,o),badge:kr(!0===e[o])})});const n=Lr(p)?p:{},o=Array.isArray(h.options)?h.options:[];let i=[];return i=o.length?o.map(e=>{const t=Fr(e),r=String(t.id??"");return r&&n[r]?Mr(t,r):null}).filter(Boolean):Object.entries(n).filter(([,e])=>!!e).map(([e])=>e),l(),void r.push({kind:"list",id:u,title:d,items:i.length?i.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case xn.MultiInput:{const e=h.wrapKey,t=h.itemWrapperKey,n=e&&Lr(p)?p[e]:p,o=Array.isArray(n)&&n.length?n.map(e=>t&&Lr(e)?String(e[t]??""):String(e??"")).filter(Boolean):[];return l(),void r.push({kind:"list",id:u,title:d,items:o.length?o.map((e,t)=>({id:`${u}-${t}`,label:e})):[{id:`${u}-empty`,label:"-"}]})}case xn.KeyValuePair:return l(),Lr(p)&&Object.keys(p).length?void r.push({kind:"pairs",id:u,title:d,items:Object.entries(p).map(([e,t],n)=>({id:`${u}-${n}`,title:e,label:String(t??"")}))}):Array.isArray(p)&&p.length?void r.push({kind:"pairs",id:u,title:d,items:p.map((e,t)=>{const n=Lr(e)?e:{};return{id:`${u}-${t}`,title:String(n.key??""),label:String(n.value??"")}})}):void r.push({kind:"pairs",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]});case xn.MultiTabledInput:{const e=h.wrapKey,t=Array.isArray(e&&Lr(p)?p[e]:p)?e&&Lr(p)?p[e]:p:[],n=(g=h.columns,Array.isArray(g)?g.map(e=>{const t=e&&"object"==typeof e?e:{},n=t.options??t.values,r=Array.isArray(n)?n.map(Fr):void 0;return{keyName:String(t.keyName??t.name??""),label:t.label??t.displayName,options:r,componentType:t.componentType,renderCondition:Array.isArray(t.renderCondition)&&t.renderCondition.length>=3?t.renderCondition:void 0}}).filter(e=>!!e.keyName):[]);return l(),t.length?void t.forEach((e,o)=>{const i=t.length>1?`${d} #${o+1}`:d,a=[],s=Lr(e)?{...e}:{};null!=s.method&&""!==s.method||!n.some(e=>"method"===e.keyName||"method"===e.renderCondition?.[0])||(s.method=String(s.regex??"").trim()?"regex":"preset"),n.length?n.forEach(e=>{if(!((e,t)=>{if(!t)return!0;const[n,r,o]=t,i=null==e?.[n]?"":String(e[n]);switch(r){case"=":case"==":case"===":return i===o;case"!=":case"!==":return i!==o;default:return!0}})(s,e.renderCondition))return;let t=s[e.keyName];(null==t||""===t||Array.isArray(t)&&!t.length)&&"fromSources"===e.keyName&&null!=s.from&&""!==s.from&&(t=[s.from]),null==t||""===t||Array.isArray(t)&&!t.length||"segment"!==e.componentType&&a.push({id:`${u}-${o}-${e.keyName}`,title:e.label||Ir(ur(e.keyName))||e.keyName,label:Ur(e,t)||"-"})}):Object.entries(s).forEach(([e,t])=>{null!=t&&""!==t&&"method"!==e&&a.push({id:`${u}-${o}-${e}`,title:e,label:Pr(t)})}),r.push({kind:"group",id:`${u}-${o}`,title:i,items:a.length?a:[{id:`${u}-${o}-empty`,label:"-"}]})}):void r.push({kind:"group",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]})}case xn.FieldGroup:{const e=Array.isArray(p)?p:[],t=(Array.isArray(h.fields)?h.fields:[]).map(zr).filter(Boolean),o=h.itemLabel||d;return l(),e.length?void e.forEach((i,a)=>{const s=e.length>1?`${o} ${a+1}`:o,l=Lr(i)?i:{},c=t.length?Hr(l,t,n):[{kind:"cells",id:`${u}-${a}-raw`,items:Object.entries(l).filter(([,e])=>null!=e&&""!==e).map(([e,t],n)=>({id:`${u}-${a}-${n}-${e}`,title:e,label:Pr(t)}))}];r.push({kind:"group",id:`${u}-${a}`,title:s,segments:c.length?c:void 0,items:c.length?void 0:[{id:`${u}-${a}-empty`,label:"-"}]})}):void r.push({kind:"group",id:u,title:d,items:[{id:`${u}-empty`,label:"-"}]})}default:s.push({id:u,title:d,label:Pr(p)})}var g}),l(),r},jr=(e,t,n={})=>Br(Hr(e,t,n)),Wr=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},{})},Gr=e=>JSON.parse(JSON.stringify(e)),Xr=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),Vr=(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},Kr=(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},Yr=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Jr=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],qr=(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},Qr=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===Er&&!e.dataStreamNames?.length):[],Zr=(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?Zr(e,r,n):n[r]=e}):n[i]=o:Zr(o,i,n)}return n},eo=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]}`},to=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`}},no=()=>{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)})},ro=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},[]):[],oo=e=>Array.isArray(e?.statuses)?ro(e.statuses):e?.conditions??[],io=e=>e?Array.isArray(e)?ao(e):ao(ro(Object.values(e))):ao([]),ao=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}},so=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},lo=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]:S,[En.Swift]:$,[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),co=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown:En.Unknown,uo=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,po=e=>e?.map(e=>lo(co(e)))||[],ho=e=>e?.map(e=>lo(e))||[],go=e=>e.runtimeInfo?.detectedLanguages?.length?ho(e.runtimeInfo?.detectedLanguages):po(e.containers),mo=(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]:Se,[Dn.Datadog]:$e,[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]:U,[Dn.Tempo]:M,[Dn.Tingyun]:F,[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`}},fo=e=>({[Sn.Namespace]:Be,[Sn.Source]:ze,[Sn.Destination]:Ue,[Sn.Action]:u,[Sn.InstrumentationRule]:Me,[Sn.SamplingRule]:Fe}[e]),yo=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,bo=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},vo=e=>bo(yo(e)),Eo=(e,t,n)=>{const{extended:r,prioritizeDisplayName:o}=n||{};let i="",a="";switch(t){case Sn.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case Sn.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case Sn.Action:const r=e;i=r.type,a=r.name||"";break;case Sn.Destination:const o=e;i=o.destinationType.displayName,a=o.name;break;case Sn.Namespace:const s=e;i=s.name,a=s.name}return r?i+(a&&a!==i?` (${a})`:""):o&&a||i},$o=(e,t)=>{if(t===Sn.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,r]=e.split("=");t[n]=r}),t}return e},So=e=>({[Fn.CodeAttributes]:Ge,[Fn.CustomInstrumentation]:We,[Fn.HeadersCollection]:je,[Fn.PayloadCollection]:He,[Fn.UnknownType]:g}[e]||g),Co=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??En.Unknown,xo=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?En.Processing:En.NoRunningPods;const r=n?.filter(e=>Co(e)!==En.Ignored);if(!r.length)return En.NoContainers;const o=r.find(e=>Co(e)!==En.Unknown);return o?Co(o):En.Unknown},wo=(e,t,n)=>(t===Sn.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},To=e=>({[Xn.Logs]:Ke,[Xn.Metrics]:Ve,[Xn.Traces]:Xe,[Xn.Profiles]:ee}[e]),Oo=(e,t)=>Object.values(hr).reduce((n,r)=>Math.abs(t[r]-e)<Math.abs(t[n]-e)?r:n),No=e=>e&&{[yn.K8s]:Qe,[yn.Vm]:qe,[yn.Connector]:Je,[yn.AwsEcs]:Ye}[e]||ee,Ao=e=>e?{[yn.K8s]:"Kubernetes Cluster",[yn.Vm]:"Virtual Machine",[yn.Connector]:"Cloud Connector",[yn.AwsEcs]:"AWS ECS"}[e]:"Unknown",Io=(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(...Io(e,t,n)),o}):[]},_o={"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"},Ro=e=>{if(!e)return"";if(_o[e])return _o[e];if(e.includes(".")){return e.slice(e.indexOf(".")+1).split(/[-_]/).map(e=>e?e[0].toUpperCase()+e.slice(1):e).join(" ")}return e},Do=(e,t)=>{if(t===Sn.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},ko=(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]}},Lo=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}},Po=r.div`
|
|
42
42
|
border-radius: 100%;
|
|
43
43
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
44
|
position: relative;
|
|
45
|
-
`,
|
|
45
|
+
`,Fo=r.div`
|
|
46
46
|
width: 80px;
|
|
47
47
|
height: 80px;
|
|
48
48
|
border-radius: 100%;
|
|
@@ -56,12 +56,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
56
56
|
transform: rotate(360deg);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,Mo=r(br)`
|
|
60
60
|
position: absolute;
|
|
61
61
|
top: 50%;
|
|
62
62
|
left: 50%;
|
|
63
63
|
transform: translate(-50%, -50%);
|
|
64
|
-
`,
|
|
64
|
+
`,Uo=({percentage:n})=>e(Po,{children:[t(Fo,{}),"number"==typeof n?t(Mo,{size:hr.M,weight:500,nowrap:!0,children:`${n}%`}):null]}),zo={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function Bo(e){if("number"==typeof e)return{value:e,unit:"px"};let t;const n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);const r=(e.match(/[^0-9]*$/)||"").toString();return zo[r]?{value:t,unit:r}:{value:t,unit:"px"}}function Ho(e){const t=Bo(e);return`${t.value}${t.unit}`}const jo=(()=>{const e="react-spinners-SpinnerOld-fade";if("undefined"==typeof window||!window.document)return e;const t=document.createElement("style");document.head.appendChild(t);const n=t.sheet,r=`\n @keyframes ${e} {\n 50% {opacity: 0.3} 100% {opacity: 1}\n }\n `;return n&&n.insertRule(r,0),e})(),Wo=({loading:n=!0,color:r,scale:o=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),u=r||d.text.secondary;if(!n)return null;const{value:p}=Bo(2),h=p+4.2,g=h/2+h/5.5,m=4*h*o,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:o,...l,...s},y=(e,t)=>({position:"absolute",width:Ho(1.5),height:Ho(4),borderRadius:Ho(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${jo} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return e("span",{style:f,...c,children:[t("span",{style:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),t("span",{style:{...y(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),t("span",{style:{...y(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),t("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),t("span",{style:{...y(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),t("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),t("span",{style:{...y(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},Go=r.div`
|
|
65
65
|
width: ${({$size:e})=>e}px;
|
|
66
66
|
height: ${({$size:e})=>e}px;
|
|
67
67
|
border-radius: 100%;
|
|
@@ -69,7 +69,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: center;
|
|
71
71
|
justify-content: center;
|
|
72
|
-
`,
|
|
72
|
+
`,Xo=({scale:e,icon:n})=>{const r=i();return t(Go,{$size:45*e,$color:"rgba(80, 246, 232, 0.10)",children:t(Go,{$size:43*e,$color:"rgba(80, 246, 232, 0.20)",children:t(Go,{$size:39*e,$color:"rgba(80, 246, 232, 0.40)",children:t(Go,{$size:33*e,$color:"rgba(80, 246, 232, 0.60)",children:t(Go,{$size:23*e,$color:"#50F6E8",children:t(n,{size:16*e,fill:r.v2.colors.black[500]})})})})})})},Vo=434,Ko=635,Yo=r.div`
|
|
73
73
|
width: ${434}px;
|
|
74
74
|
height: ${635}px;
|
|
75
75
|
display: flex;
|
|
@@ -79,12 +79,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
79
79
|
padding: 16px;
|
|
80
80
|
background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
|
|
81
81
|
position: relative;
|
|
82
|
-
`,
|
|
82
|
+
`,Jo=r.div`
|
|
83
83
|
position: absolute;
|
|
84
84
|
top: 50%;
|
|
85
85
|
left: 50%;
|
|
86
86
|
transform: translate(-50%, -50%);
|
|
87
|
-
`,
|
|
87
|
+
`,qo=()=>e(Yo,{children:[t(Jo,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[t("path",{opacity:"0.1",d:"M231.567 463.134C359.458 463.134 463.134 359.458 463.134 231.567C463.134 103.676 359.458 0 231.567 0C103.676 0 0 103.676 0 231.567C0 359.458 103.676 463.134 231.567 463.134Z",fill:"url(#paint0_radial_164_65835)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),t("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),t(Jo,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[t("path",{opacity:"0.3",d:"M215.921 431.841C335.17 431.841 431.841 335.17 431.841 215.921C431.841 96.6709 335.17 0 215.921 0C96.6709 0 0 96.6709 0 215.921C0 335.17 96.6709 431.841 215.921 431.841Z",fill:"url(#paint0_radial_164_65836)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),t("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),t("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),t("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),t("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),t("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),t("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),t("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(Jo,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[t("path",{opacity:"0.5",d:"M186.963 373.927C290.22 373.927 373.927 290.22 373.927 186.963C373.927 83.7063 290.22 0 186.963 0C83.7063 0 0 83.7063 0 186.963C0 290.22 83.7063 373.927 186.963 373.927Z",fill:"url(#paint0_radial_164_65837)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(Jo,{children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[t("path",{opacity:"0.7",d:"M128.193 256.387C198.992 256.387 256.387 198.992 256.387 128.193C256.387 57.3941 198.992 0 128.193 0C57.3941 0 0 57.3941 0 128.193C0 198.992 57.3941 256.387 128.193 256.387Z",fill:"url(#paint0_radial_164_65838)"}),t("defs",{children:e("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[t("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),t("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),t("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),t("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),t("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),t("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),t("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),t("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),t("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),t("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),t("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),t(Jo,{children:t(ee,{size:112})})]}),Qo=r.div`
|
|
88
88
|
width: ${({$size:e})=>e}px;
|
|
89
89
|
height: ${({$size:e})=>e}px;
|
|
90
90
|
border-radius: 100%;
|
|
@@ -92,7 +92,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
92
92
|
display: flex;
|
|
93
93
|
align-items: center;
|
|
94
94
|
justify-content: center;
|
|
95
|
-
`,
|
|
95
|
+
`,Zo=({scale:e=1,icon:n})=>{const r=i();return t(Qo,{$size:73*e,$color:"rgba(106, 42, 255, 0.10)",children:t(Qo,{$size:71*e,$color:"rgba(106, 42, 255, 0.20)",children:t(Qo,{$size:65*e,$color:"rgba(106, 42, 255, 0.40)",children:t(Qo,{$size:56*e,$color:"rgba(106, 42, 255, 0.60)",children:t(Qo,{$size:39*e,$color:r.v2.colors.purple[500],children:t(n,{size:32*e,fill:r.v2.colors.white[500]})})})})})})},ei=r.div`
|
|
96
96
|
flex: 1;
|
|
97
97
|
align-self: stretch;
|
|
98
98
|
min-height: 0;
|
|
@@ -102,7 +102,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
102
102
|
overflow-y: auto;
|
|
103
103
|
overflow-x: auto;
|
|
104
104
|
padding: 12px;
|
|
105
|
-
`,
|
|
105
|
+
`,ti=r.div`
|
|
106
106
|
position: relative;
|
|
107
107
|
|
|
108
108
|
// inherit all the properties of the parent (PageContent)
|
|
@@ -112,9 +112,9 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
112
112
|
display: inherit;
|
|
113
113
|
flex-direction: inherit;
|
|
114
114
|
gap: inherit;
|
|
115
|
-
`,
|
|
115
|
+
`,ni=r.div`
|
|
116
116
|
padding: ${({$padding:e})=>e||"12px"};
|
|
117
|
-
`,
|
|
117
|
+
`,ri=r.div`
|
|
118
118
|
display: flex;
|
|
119
119
|
flex-direction: row;
|
|
120
120
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -126,7 +126,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
126
126
|
margin: ${({$margin:e="unset"})=>e};
|
|
127
127
|
padding: ${({$padding:e="unset"})=>e};
|
|
128
128
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
129
|
-
`,
|
|
129
|
+
`,oi=r.div`
|
|
130
130
|
display: flex;
|
|
131
131
|
flex-direction: column;
|
|
132
132
|
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
@@ -138,18 +138,18 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
138
138
|
margin: ${({$margin:e="unset"})=>e};
|
|
139
139
|
padding: ${({$padding:e="unset"})=>e};
|
|
140
140
|
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
141
|
-
`,
|
|
141
|
+
`,ii=r(oi)`
|
|
142
142
|
width: ${({$width:e})=>e||"100%"};
|
|
143
143
|
height: ${({$height:e})=>e||"unset"};
|
|
144
144
|
padding: ${({$padding:e})=>e||"unset"};
|
|
145
145
|
align-items: center;
|
|
146
146
|
justify-content: center;
|
|
147
|
-
`,
|
|
147
|
+
`,ai=r.div`
|
|
148
148
|
display: flex;
|
|
149
149
|
flex-direction: column;
|
|
150
150
|
padding: 12px;
|
|
151
151
|
overflow-y: scroll;
|
|
152
|
-
`,
|
|
152
|
+
`,si=r.div`
|
|
153
153
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
154
154
|
top: 0;
|
|
155
155
|
left: 0;
|
|
@@ -162,37 +162,37 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
162
162
|
z-index: ${({theme:e,$relativeToParent:t})=>t?e.v2.zIndex.island:e.v2.zIndex.modal};
|
|
163
163
|
background: rgba(0, 0, 0, 0.6);
|
|
164
164
|
backdrop-filter: blur(2px);
|
|
165
|
-
`,
|
|
165
|
+
`,li=r.div`
|
|
166
166
|
width: 800px;
|
|
167
167
|
min-height: ${({$minHeight:e})=>e||"unset"};
|
|
168
168
|
height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
|
|
169
169
|
margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
|
|
170
170
|
padding: 0 2px;
|
|
171
171
|
overflow-y: scroll;
|
|
172
|
-
`,
|
|
172
|
+
`,ci=r(oi)`
|
|
173
173
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
174
174
|
width: 100%;
|
|
175
|
-
`,
|
|
175
|
+
`,di=r(ri)`
|
|
176
176
|
gap: 16px;
|
|
177
177
|
padding: 16px;
|
|
178
|
-
`,
|
|
178
|
+
`,ui=r.div`
|
|
179
179
|
width: 100%;
|
|
180
180
|
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
181
181
|
overflow-y: auto;
|
|
182
|
-
`,
|
|
182
|
+
`,pi=a`
|
|
183
183
|
0% {
|
|
184
184
|
background-position: 0% 50%;
|
|
185
185
|
}
|
|
186
186
|
100% {
|
|
187
187
|
background-position: 100% 50%;
|
|
188
188
|
}
|
|
189
|
-
`,
|
|
189
|
+
`,hi=r(br)`
|
|
190
190
|
background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
191
191
|
background-size: 250% 100%; /* Expand background to allow movement */
|
|
192
192
|
background-clip: text;
|
|
193
193
|
color: transparent;
|
|
194
|
-
animation: ${
|
|
195
|
-
`,mi=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")}`},fi=({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,$]=Ut(()=>d?mi(d):"");zt(()=>{if(!d)return;$(mi(d));const e=setInterval(()=>$(mi(d)),1e3);return()=>clearInterval(e)},[d]);const S=o||v.v2.colors.white[500],C=l||v.v2.colors.silver[200],x=p||v.v2.colors.black[500];return e(ii,{$gap:16,$alignItems:"center",children:[y?t(Vo,{scale:1.7,icon:b}):h?t(zo,{percentage:f}):g?t(Go,{scale:m}):null,(r||s||d||n||u)&&e(ii,{$gap:8,$alignItems:"center",children:[e(oi,{$gap:4,children:[n&&t(n,{}),u?t(gi,{align:"center",size:a,$titleColor:S,$gradientColor:x,nowrap:!0,children:r||"Loading..."}):r?t(br,{align:"center",size:a,color:S,children:r}):null]}),s?t(br,{align:"center",size:c,color:C,children:s}):null,E?t(br,{align:"center",size:c,color:S,children:E}):null]})]})},yi=(e,t)=>({[Tn.Default]:n=>ee({fill:Lo(t,e,"300"),...n}),[Tn.Info]:n=>rt({fill:Lo(t,e,"400"),...n}),[Tn.Error]:n=>nt({fill:Lo(t,e,"500"),...n}),[Tn.Warning]:n=>tt({fill:Lo(t,e,"500"),...n}),[Tn.Success]:n=>p({fill:Lo(t,e,"500"),...n}),[Tn.Loading]:e=>fi({withSpinnerOld:!0,...e}),[Tn.Disabled]:n=>h({fill:Lo(t,e,"400"),...n}),[Tn.Unknown]:n=>et({fill:Lo(t,e,"300"),...n})}[e]),bi=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}},vi=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},Ei={redis:f,mysql:v,postgresql:y,postgres:y,kafka:m,elasticsearch:be,clickhouse:we,oracle:J,aws:ot},$i={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},Si=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=Ei[n.toLowerCase()];if(e)return e}const r=t["messaging.system"];if(r){const e=Ei[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=$i[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Ei))if(i.includes(e))return t;return Ue},Ci=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}},xi=(e,t)=>{const n=[],r=JSON.parse(JSON.stringify(e));for(const e of r){const r=Dr(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},wi=(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 Ti(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 Oi(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 Ni(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:Ti(t??null)}}function Ai(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:Oi(t??null)}}const Ii=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),_i=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),Ri=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},Di=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ki=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,Li=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,Pi=e=>Li.test(e),Fi=e=>e?.map(({status:e,type:t,reason:n,message:r})=>({status:e?.toLowerCase(),type:ur(t),reason:n?ur(n):"",message:r}))||[],Mi=(e,t)=>{const n=Dr(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}))},Ui=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Qn[e]):[],zi=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Qn[e]):[],Bi=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},Hi=e=>e.replace(/[^\d]/g,""),ji=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},Wi=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},Gi=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}},Xi=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=>Xi(e)))}else if("object"==typeof r&&null!==r){const e=Xi(r);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(r)||(t[n]=r)}),t},Vi=(e,t=2)=>JSON.stringify(e||{},null,t),Ki=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Yi=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Ji=nn("v1.33"),qi=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],Qi=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return n>0&&n<Ji},Zi=nn("v1.20"),ea=(e,t)=>{if(e!==yn.K8s)return!0;const n=nn(t);return!(n>0)||n>=Zi},ta=e=>e?qi.map(t=>e[t]??null):[],na={PID:"process.pid",VPID:"process.vpid"},ra={[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"},oa=[{id:En.Go,label:ra[En.Go],icon:co(En.Go)},{id:En.Java,label:ra[En.Java],icon:co(En.Java)},{id:En.JavaScript,label:ra[En.JavaScript],icon:co(En.JavaScript)},{id:En.Python,label:ra[En.Python],icon:co(En.Python)},{id:En.Php,label:ra[En.Php],icon:co(En.Php)},{id:En.Ruby,label:ra[En.Ruby],icon:co(En.Ruby)},{id:En.Rust,label:ra[En.Rust],icon:co(En.Rust)},{id:En.DotNet,label:ra[En.DotNet],icon:co(En.DotNet)},{id:En.CSharp,label:ra[En.CSharp],icon:co(En.CSharp)},{id:En.CPlusPlus,label:ra[En.CPlusPlus],icon:co(En.CPlusPlus)},{id:En.Swift,label:ra[En.Swift],icon:co(En.Swift)},{id:En.Elixir,label:ra[En.Elixir],icon:co(En.Elixir)}],ia={id:Ln.OpentelemetryEbpfInstrumentation,label:Ln.OpentelemetryEbpfInstrumentation,icon:yt},aa={[En.Go]:{community:[{id:Ln.GolangCommunity,label:Ln.GolangCommunity,icon:co(En.Go)},ia],enterprise:[{id:Ln.GolangEnterprise,label:Ln.GolangEnterprise,icon:co(En.Go)}]},[En.JavaScript]:{community:[{id:Ln.NodejsCommunity,label:Ln.NodejsCommunity,icon:co(En.JavaScript)},ia],enterprise:[{id:Ln.NodejsEnterprise,label:Ln.NodejsEnterprise,icon:co(En.JavaScript)}]},[En.Python]:{community:[{id:Ln.PythonCommunity,label:Ln.PythonCommunity,icon:co(En.Python)},ia],enterprise:[{id:Ln.PythonEnterprise,label:Ln.PythonEnterprise,icon:co(En.Python)}]},[En.Java]:{community:[{id:Ln.JavaCommunity,label:Ln.JavaCommunity,icon:co(En.Java)},ia],enterprise:[{id:Ln.JavaEnterprise,label:Ln.JavaEnterprise,icon:co(En.Java)},{id:Ln.JavaEbpfInstrumentations,label:Ln.JavaEbpfInstrumentations,icon:co(En.Java)}]},[En.DotNet]:{community:[{id:Ln.DotNetCommunity,label:Ln.DotNetCommunity,icon:co(En.DotNet)},ia],enterprise:[{id:Ln.DotNetEnterprise,label:Ln.DotNetEnterprise,icon:co(En.DotNet)}]},[En.Ruby]:{community:[{id:Ln.RubyCommunity,label:Ln.RubyCommunity,icon:co(En.Ruby)},ia],enterprise:[{id:Ln.RubyEnterprise,label:Ln.RubyEnterprise,icon:co(En.Ruby)}]},[En.Php]:{community:[{id:Ln.PhpCommunity,label:Ln.PhpCommunity,icon:co(En.Php)},ia],enterprise:[]},[En.CSharp]:{community:[],enterprise:[{id:Ln.CPlusPlusEnterprise,label:Ln.CPlusPlusEnterprise,icon:co(En.CSharp)}]},[En.MySql]:{community:[],enterprise:[{id:Ln.MySqlEnterprise,label:Ln.MySqlEnterprise,icon:co(En.MySql)}]},[En.CPlusPlus]:{community:[ia],enterprise:[]},[En.Rust]:{community:[ia],enterprise:[]},[En.Swift]:{community:[ia],enterprise:[]},[En.Elixir]:{community:[ia],enterprise:[]},[En.Nginx]:{community:[ia],enterprise:[]},[En.Postgres]:{community:[ia],enterprise:[]},[En.Redis]:{community:[ia],enterprise:[]},[En.Kafka]:{community:[ia],enterprise:[]},[En.Ignored]:{community:[],enterprise:[]},[En.Unknown]:{community:[ia],enterprise:[]},[En.Processing]:{community:[],enterprise:[]},[En.NoContainers]:{community:[],enterprise:[]},[En.NoRunningPods]:{community:[],enterprise:[]}},sa="*",la=e=>!!e?.includes(sa),ca=e=>e?.length?la(e)?[sa]:e:[],da=e=>{if(e?.length&&!la(e))return e.filter(e=>e!==sa)},ua=e=>e===sa?"All languages":ra[e]??e,pa=e=>e===sa?bt:co(e),ha=nn("v1.26"),ga=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return!(n>0)||n>=ha},ma=[{type:Fn.CodeAttributes,icon:Co(Fn.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:Fn.CustomInstrumentation,icon:Co(Fn.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:Fn.HeadersCollection,icon:Co(Fn.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:Fn.PayloadCollection,icon:Co(Fn.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]}],fa=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Co(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},ya={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.'},ba={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."},va={[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."}},Ea="Cancel",$a="Save",Sa="Edit rule",Ca="Edit auto rule",xa="Create rule",wa="Delete rule",Ta="Save",Oa="Create your first rule",Na="No Rules Exist",Aa="No Results",Ia=e=>`No rules match the search term "${e}"`,_a="Rule name",Ra="Rule type",Da="Select the type of condition that makes a trace highly relevant.",ka="Rule Enabled",La="Rule Disabled",Pa="Enabled",Fa="Disabled",Ma="Note",Ua="HTTP route",za="Method",Ba="Keep Percentage",Ha="Keep traces with duration larger than",ja="Keep traces with errors",Wa="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",Ga="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",Xa="Custom percentage",Va="Disabled rule",Ka="Sample",Ya="Keep all",Ja="Drop all",qa="Operation type",Qa="HTTP route prefix",Za="Templated path",es="Templated path prefix",ts="Kafka topic",ns="Custom duration (ms)",rs="No preview available",os="Server address",is="Drop at most this percentage of matching traces",as="Unnamed rule",ss="Sampling Preview",ls="Source Scope",cs="Unknown source",ds="Operation",us="Duration",ps="Errors",hs="Keep Percentage",gs="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",ms="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.",fs="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",ys="Retain traces with errors from the selected services and operations.",bs="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",vs="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Es={highlyRelevant:bs,noisy:vs,costReduction:void 0},$s="Type rule name",Ss="Add note here...",Cs="Type here",xs="Search source name",ws="e.g. collector.my.vendor.com",Ts="Optional notes (not used by the system). Add any context or details for this sampling rule.",Os="Rule will apply to all sources in the cluster",Ns="If multiple source scopes are set, they must all match simultaneously.",As="All sources",Is="-",_s="All",Rs="Sources",Ds="Namespaces",ks="Languages",Ls="any of",Ps="AND",Fs="All operations",Ms="HTTP server endpoint",Us="HTTP client endpoint",zs="Kafka consumer",Bs="Kafka producer",Hs="Sampling Rules",js='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',Ws="Refresh",Gs="Create rule",Xs="Sampling docs",Vs="75vw",Ks="Delete rule?",Ys="Are you sure you want to delete this sampling rule?",Js="Delete",qs="Cancel",Qs="Kubernetes Health Probes",Zs="Keep All Error Traces",el="Drop Traces Cluster-Wide",tl="A rule with the same matching conditions already exists.",nl="Create this rule as-is?",rl="This rule still uses the default configuration.\nDo you want to create it anyway?",ol="Rule preview",il="Continue editing",al="Create 'Noisy Operation Kubernetes Health Probes' rule",sl="Edit 'Noisy Operation Kubernetes Health Probes' rule",ll="Automatically detect and sample health probe traces across the cluster.",cl="Create 'Highly Relevant Operations' rule",dl="Edit 'Highly Relevant Operations' rule",ul="Automatically keep all error traces across the entire cluster.",pl="Create 'Cost Reduction' rule",hl="Edit 'Cost Reduction' rule",gl="Automatically drop a percentage of traces across the entire cluster.",ml="Skip setup",fl="Start setup",yl="Next",bl="Go to Sampling",vl="Read more",El="Welcome to Sampling",$l="Cut costs without losing what matters",Sl="Odigos sampling works in three stages:",Cl="Filter noisy traffic",xl="Remove non-actionable traces like health checks.",wl="Guarantee highly relevance operations",Tl="Keep traces with errors, high latency, or mission-critical endpoints/services.",Ol="Reduce cost",Nl="Sample routine traffic using percentages.",Al="Sampling does not drop individual spans - it keeps or drops the entire trace.",Il="Filter noisy operations",_l="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Rl="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.",Dl="Preset Rules",kl="Kubernetes Health Probes",Ll="Automatically ignore health checks",Pl="You can review, adjust, and add additional custom rules later.",Fl="Choose your sampling strategy",Ml="Pick the approach that best fits your balance of cost vs data-completeness",Ul="Keep List",zl="Budget Friendly",Bl="Define which traces must be kept, while all others are sampled by default to minimize cost.",Hl="Cost-oriented - keeps only what you explicitly select.",jl="Best for very large clusters with high volumes of traces and high costs.",Wl="Higher risk of missing important traces without ongoing review.",Gl="Drop List",Xl="Safe Choice",Vl="Define which traces must be aggressively dropped, while all others are kept by default.",Kl="Preserves most data unless explicitly filtered.",Yl="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Jl="Advanced",ql="Maximum Flexibility",Ql="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Zl="'Keep List' profile",ec="Protect important traces",tc="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:",nc="Traces with errors",rc="Slow requests (duration above threshold)",oc="Mission-Critical endpoints or services",ic="Services under test or evaluation",ac="New deployments",sc="You can review, adjust, and add rules once onboarding is complete.",lc="Common Rules",cc="Preset Rules",dc="Error collection - entire cluster",uc="Keep all traces with errors",pc="Ambient sampling percentage",hc="'Drop List' profile",gc="Reduce high-volume traffic",mc="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.",fc="Advanced Configuration",yc="Configure sampling rules",bc="Advanced mode allows you to configure all sampling categories:",vc="Noise Filtering - remove non-actionable traces",Ec="Highly Relevance - guarantee important traces are kept",$c='Cost Control - drop traces for "Normal" operations',Sc="Rules can target:",Cc="Services",xc="HTTP Endpoints",wc="DB Operations",Tc="Errors",Oc="Latency and more...",Nc="Sampling configured successfully!",Ac="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Ic="Odigos will now:",_c="Filter noisy operations",Rc="Guarantee important traces",Dc="Reduce cost using controlled sampling",kc="Recommended",Lc={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."},Pc={noisy:al,highlyRelevant:cl,costReduction:pl},Fc={noisy:sl,highlyRelevant:dl,costReduction:hl},Mc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Uc=[{id:Xn.Logs,value:"Logs"},{id:Xn.Metrics,value:"Metrics"},{id:Xn.Traces,value:"Traces"},{id:Xn.Profiles,value:"Profiles"}],zc=6048e5,Bc=Pt()(Qt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Cr.DARK_MODE,storage:"undefined"!=typeof window?Zt(()=>localStorage):void 0})),Hc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Er},jc=Pt(e=>({...Hc,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(Hc)}));var Wc;(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"})(Wc||(Wc={}));const Gc=e=>`add-${ur(e).replaceAll(" ","-").toLowerCase()}`,Xc=e=>`edit-${ur(e).replaceAll(" ","-").toLowerCase()}`,Vc=Pt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Kc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Yc=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:Kc})),Jc=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 qc;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(qc||(qc={}));const Qc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Zc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),ed=Pt((e,t)=>({progress:{},setProgress:(n,r)=>{const o=t(),i=Qc();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]:Zc(i)}})},addProgress:(n,r,o)=>{const i=t(),a=Qc(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]:Zc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),td=Pt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),nd={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},rd=(e,t)=>e.destinationType.type!==t.destinationType.type,od=Pt(e=>({...nd,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=>rd(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=>rd(e,t))})),clearStore:()=>e(()=>({...nd}))})),id=e=>{function t(){return void 0===e?{}:Xr(e)}const[n,r]=Ut(t()),[o,i]=Ut({}),[a,s]=Ut(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)=>Vr("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=Xr(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=Xr(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}},ad={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},sd=()=>{const{addNotification:e}=Jc(),{formData:t,formErrors:n,handleFormChange:r,handleErrorChange:o,resetFormData:i}=id(ad);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":Ii(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={...Xr(ad),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.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(r=t,r?.length?r.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):r);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:s.fields||(s.fields={}),s.fields[e]=t}var n,r}),r(void 0,void 0,s)}}},ld=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},cd=()=>{const e=jt(null),[t,n]=Ut(0),[r,o]=Ut(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 dd;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(dd||(dd={}));const ud=r.div`
|
|
194
|
+
animation: ${pi} 1s reverse linear infinite;
|
|
195
|
+
`,gi=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")}`},mi=({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,$]=Ut(()=>d?gi(d):"");zt(()=>{if(!d)return;$(gi(d));const e=setInterval(()=>$(gi(d)),1e3);return()=>clearInterval(e)},[d]);const S=o||v.v2.colors.white[500],C=l||v.v2.colors.silver[200],x=p||v.v2.colors.black[500];return e(oi,{$gap:16,$alignItems:"center",children:[y?t(Xo,{scale:1.7,icon:b}):h?t(Uo,{percentage:f}):g?t(Wo,{scale:m}):null,(r||s||d||n||u)&&e(oi,{$gap:8,$alignItems:"center",children:[e(ri,{$gap:4,children:[n&&t(n,{}),u?t(hi,{align:"center",size:a,$titleColor:S,$gradientColor:x,nowrap:!0,children:r||"Loading..."}):r?t(br,{align:"center",size:a,color:S,children:r}):null]}),s?t(br,{align:"center",size:c,color:C,children:s}):null,E?t(br,{align:"center",size:c,color:S,children:E}):null]})]})},fi=(e,t)=>({[Tn.Default]:n=>ee({fill:ko(t,e,"300"),...n}),[Tn.Info]:n=>rt({fill:ko(t,e,"400"),...n}),[Tn.Error]:n=>nt({fill:ko(t,e,"500"),...n}),[Tn.Warning]:n=>tt({fill:ko(t,e,"500"),...n}),[Tn.Success]:n=>p({fill:ko(t,e,"500"),...n}),[Tn.Loading]:e=>mi({withSpinnerOld:!0,...e}),[Tn.Disabled]:n=>h({fill:ko(t,e,"400"),...n}),[Tn.Unknown]:n=>et({fill:ko(t,e,"300"),...n})}[e]),yi=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}},bi=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},vi={redis:f,mysql:v,postgresql:y,postgres:y,kafka:m,elasticsearch:be,clickhouse:we,oracle:J,aws:ot},Ei={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},$i=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=vi[n.toLowerCase()];if(e)return e}const r=t["messaging.system"];if(r){const e=vi[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=Ei[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(vi))if(i.includes(e))return t;return Ue},Si=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}},Ci=(e,t)=>{const n=[],r=JSON.parse(JSON.stringify(e));for(const e of r){const r=Dr(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},xi=(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 wi(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 Ti(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 Oi(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:wi(t??null)}}function Ni(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:Ti(t??null)}}const Ai=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),Ii=e=>!!e&&(!(e.length>63)&&/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)),_i=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},Ri=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},Di=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,ki=/^v?\d+(\.\d+)*(-[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?(\+[0-9A-Za-z\-~][0-9A-Za-z\-~.]*)?$/,Li=e=>ki.test(e),Pi=e=>e?.map(({status:e,type:t,reason:n,message:r})=>({status:e?.toLowerCase(),type:ur(t),reason:n?ur(n):"",message:r}))||[],Fi=(e,t)=>{const n=Dr(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}))},Mi=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>Qn[e]):[],Ui=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>Qn[e]):[],zi=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},Bi=e=>e.replace(/[^\d]/g,""),Hi=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},ji=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},Wi=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}},Gi=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=>Gi(e)))}else if("object"==typeof r&&null!==r){const e=Gi(r);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(r)||(t[n]=r)}),t},Xi=(e,t=2)=>JSON.stringify(e||{},null,t),Vi=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),Ki=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),Yi=nn("v1.33"),Ji=["runtimeDetection","agentInjectionEnabled","podsManifestInjection","agentInjected","processesAgentHealth","expectingTelemetry"],qi=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return n>0&&n<Yi},Qi=nn("v1.20"),Zi=(e,t)=>{if(e!==yn.K8s)return!0;const n=nn(t);return!(n>0)||n>=Qi},ea=e=>e?Ji.map(t=>e[t]??null):[],ta={PID:"process.pid",VPID:"process.vpid"},na={[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"},ra=[{id:En.Go,label:na[En.Go],icon:lo(En.Go)},{id:En.Java,label:na[En.Java],icon:lo(En.Java)},{id:En.JavaScript,label:na[En.JavaScript],icon:lo(En.JavaScript)},{id:En.Python,label:na[En.Python],icon:lo(En.Python)},{id:En.Php,label:na[En.Php],icon:lo(En.Php)},{id:En.Ruby,label:na[En.Ruby],icon:lo(En.Ruby)},{id:En.Rust,label:na[En.Rust],icon:lo(En.Rust)},{id:En.DotNet,label:na[En.DotNet],icon:lo(En.DotNet)},{id:En.CSharp,label:na[En.CSharp],icon:lo(En.CSharp)},{id:En.CPlusPlus,label:na[En.CPlusPlus],icon:lo(En.CPlusPlus)},{id:En.Swift,label:na[En.Swift],icon:lo(En.Swift)},{id:En.Elixir,label:na[En.Elixir],icon:lo(En.Elixir)}],oa={id:Ln.OpentelemetryEbpfInstrumentation,label:Ln.OpentelemetryEbpfInstrumentation,icon:yt},ia={[En.Go]:{community:[{id:Ln.GolangCommunity,label:Ln.GolangCommunity,icon:lo(En.Go)},oa],enterprise:[{id:Ln.GolangEnterprise,label:Ln.GolangEnterprise,icon:lo(En.Go)}]},[En.JavaScript]:{community:[{id:Ln.NodejsCommunity,label:Ln.NodejsCommunity,icon:lo(En.JavaScript)},oa],enterprise:[{id:Ln.NodejsEnterprise,label:Ln.NodejsEnterprise,icon:lo(En.JavaScript)}]},[En.Python]:{community:[{id:Ln.PythonCommunity,label:Ln.PythonCommunity,icon:lo(En.Python)},oa],enterprise:[{id:Ln.PythonEnterprise,label:Ln.PythonEnterprise,icon:lo(En.Python)}]},[En.Java]:{community:[{id:Ln.JavaCommunity,label:Ln.JavaCommunity,icon:lo(En.Java)},oa],enterprise:[{id:Ln.JavaEnterprise,label:Ln.JavaEnterprise,icon:lo(En.Java)},{id:Ln.JavaEbpfInstrumentations,label:Ln.JavaEbpfInstrumentations,icon:lo(En.Java)}]},[En.DotNet]:{community:[{id:Ln.DotNetCommunity,label:Ln.DotNetCommunity,icon:lo(En.DotNet)},oa],enterprise:[{id:Ln.DotNetEnterprise,label:Ln.DotNetEnterprise,icon:lo(En.DotNet)}]},[En.Ruby]:{community:[{id:Ln.RubyCommunity,label:Ln.RubyCommunity,icon:lo(En.Ruby)},oa],enterprise:[{id:Ln.RubyEnterprise,label:Ln.RubyEnterprise,icon:lo(En.Ruby)}]},[En.Php]:{community:[{id:Ln.PhpCommunity,label:Ln.PhpCommunity,icon:lo(En.Php)},oa],enterprise:[]},[En.CSharp]:{community:[],enterprise:[{id:Ln.CPlusPlusEnterprise,label:Ln.CPlusPlusEnterprise,icon:lo(En.CSharp)}]},[En.MySql]:{community:[],enterprise:[{id:Ln.MySqlEnterprise,label:Ln.MySqlEnterprise,icon:lo(En.MySql)}]},[En.CPlusPlus]:{community:[oa],enterprise:[]},[En.Rust]:{community:[oa],enterprise:[]},[En.Swift]:{community:[oa],enterprise:[]},[En.Elixir]:{community:[oa],enterprise:[]},[En.Nginx]:{community:[oa],enterprise:[]},[En.Postgres]:{community:[oa],enterprise:[]},[En.Redis]:{community:[oa],enterprise:[]},[En.Kafka]:{community:[oa],enterprise:[]},[En.Ignored]:{community:[],enterprise:[]},[En.Unknown]:{community:[oa],enterprise:[]},[En.Processing]:{community:[],enterprise:[]},[En.NoContainers]:{community:[],enterprise:[]},[En.NoRunningPods]:{community:[],enterprise:[]}},aa="*",sa=e=>!!e?.includes(aa),la=e=>e?.length?sa(e)?[aa]:e:[],ca=e=>{if(e?.length&&!sa(e))return e.filter(e=>e!==aa)},da=e=>e===aa?"All languages":na[e]??e,ua=e=>e===aa?bt:lo(e),pa=nn("v1.26"),ha=(e,t)=>{if(e!==yn.K8s)return!1;const n=nn(t);return!(n>0)||n>=pa},ga=[{type:Fn.CodeAttributes,icon:So(Fn.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:Fn.CustomInstrumentation,icon:So(Fn.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:Fn.HeadersCollection,icon:So(Fn.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:Fn.PayloadCollection,icon:So(Fn.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]}],ma=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:So(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages??[],fields:e.fields})):[]},fa={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.'},ya={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."},ba={[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."}},va="Cancel",Ea="Save",$a="Edit rule",Sa="Edit auto rule",Ca="Create rule",xa="Delete rule",wa="Save",Ta="Create your first rule",Oa="No Rules Exist",Na="No Results",Aa=e=>`No rules match the search term "${e}"`,Ia="Rule name",_a="Rule type",Ra="Select the type of condition that makes a trace highly relevant.",Da="Rule Enabled",ka="Rule Disabled",La="Enabled",Pa="Disabled",Fa="Note",Ma="HTTP route",Ua="Method",za="Keep Percentage",Ba="Keep traces with duration larger than",Ha="Keep traces with errors",ja="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",Wa="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",Ga="Custom percentage",Xa="Disabled rule",Va="Sample",Ka="Keep all",Ya="Drop all",Ja="Operation type",qa="HTTP route prefix",Qa="Templated path",Za="Templated path prefix",es="Kafka topic",ts="Custom duration (ms)",ns="No preview available",rs="Server address",os="Drop at most this percentage of matching traces",is="Unnamed rule",as="Sampling Preview",ss="Source Scope",ls="Unknown source",cs="Operation",ds="Duration",us="Errors",ps="Keep Percentage",hs="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",gs="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.",ms="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",fs="Retain traces with errors from the selected services and operations.",ys="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",bs="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",vs={highlyRelevant:ys,noisy:bs,costReduction:void 0},Es="Type rule name",$s="Add note here...",Ss="Type here",Cs="Search source name",xs="e.g. collector.my.vendor.com",ws="Optional notes (not used by the system). Add any context or details for this sampling rule.",Ts="Rule will apply to all sources in the cluster",Os="If multiple source scopes are set, they must all match simultaneously.",Ns="All sources",As="-",Is="All",_s="Sources",Rs="Namespaces",Ds="Languages",ks="any of",Ls="AND",Ps="All operations",Fs="HTTP server endpoint",Ms="HTTP client endpoint",Us="Kafka consumer",zs="Kafka producer",Bs="Sampling Rules",Hs='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',js="Refresh",Ws="Create rule",Gs="Sampling docs",Xs="75vw",Vs="Delete rule?",Ks="Are you sure you want to delete this sampling rule?",Ys="Delete",Js="Cancel",qs="Kubernetes Health Probes",Qs="Keep All Error Traces",Zs="Drop Traces Cluster-Wide",el="A rule with the same matching conditions already exists.",tl="Create this rule as-is?",nl="This rule still uses the default configuration.\nDo you want to create it anyway?",rl="Rule preview",ol="Continue editing",il="Create 'Noisy Operation Kubernetes Health Probes' rule",al="Edit 'Noisy Operation Kubernetes Health Probes' rule",sl="Automatically detect and sample health probe traces across the cluster.",ll="Create 'Highly Relevant Operations' rule",cl="Edit 'Highly Relevant Operations' rule",dl="Automatically keep all error traces across the entire cluster.",ul="Create 'Cost Reduction' rule",pl="Edit 'Cost Reduction' rule",hl="Automatically drop a percentage of traces across the entire cluster.",gl="Skip setup",ml="Start setup",fl="Next",yl="Go to Sampling",bl="Read more",vl="Welcome to Sampling",El="Cut costs without losing what matters",$l="Odigos sampling works in three stages:",Sl="Filter noisy traffic",Cl="Remove non-actionable traces like health checks.",xl="Guarantee highly relevance operations",wl="Keep traces with errors, high latency, or mission-critical endpoints/services.",Tl="Reduce cost",Ol="Sample routine traffic using percentages.",Nl="Sampling does not drop individual spans - it keeps or drops the entire trace.",Al="Filter noisy operations",Il="Cut traces with little or no observability value (health-checks, metric scarping, etc)",_l="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.",Rl="Preset Rules",Dl="Kubernetes Health Probes",kl="Automatically ignore health checks",Ll="You can review, adjust, and add additional custom rules later.",Pl="Choose your sampling strategy",Fl="Pick the approach that best fits your balance of cost vs data-completeness",Ml="Keep List",Ul="Budget Friendly",zl="Define which traces must be kept, while all others are sampled by default to minimize cost.",Bl="Cost-oriented - keeps only what you explicitly select.",Hl="Best for very large clusters with high volumes of traces and high costs.",jl="Higher risk of missing important traces without ongoing review.",Wl="Drop List",Gl="Safe Choice",Xl="Define which traces must be aggressively dropped, while all others are kept by default.",Vl="Preserves most data unless explicitly filtered.",Kl="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",Yl="Advanced",Jl="Maximum Flexibility",ql="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",Ql="'Keep List' profile",Zl="Protect important traces",ec="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:",tc="Traces with errors",nc="Slow requests (duration above threshold)",rc="Mission-Critical endpoints or services",oc="Services under test or evaluation",ic="New deployments",ac="You can review, adjust, and add rules once onboarding is complete.",sc="Common Rules",lc="Preset Rules",cc="Error collection - entire cluster",dc="Keep all traces with errors",uc="Ambient sampling percentage",pc="'Drop List' profile",hc="Reduce high-volume traffic",gc="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.",mc="Advanced Configuration",fc="Configure sampling rules",yc="Advanced mode allows you to configure all sampling categories:",bc="Noise Filtering - remove non-actionable traces",vc="Highly Relevance - guarantee important traces are kept",Ec='Cost Control - drop traces for "Normal" operations',$c="Rules can target:",Sc="Services",Cc="HTTP Endpoints",xc="DB Operations",wc="Errors",Tc="Latency and more...",Oc="Sampling configured successfully!",Nc="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Ac="Odigos will now:",Ic="Filter noisy operations",_c="Guarantee important traces",Rc="Reduce cost using controlled sampling",Dc="Recommended",kc={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."},Lc={noisy:il,highlyRelevant:ll,costReduction:ul},Pc={noisy:al,highlyRelevant:cl,costReduction:pl},Fc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},Mc=[{id:Xn.Logs,value:"Logs"},{id:Xn.Metrics,value:"Metrics"},{id:Xn.Traces,value:"Traces"},{id:Xn.Profiles,value:"Profiles"}],Uc=6048e5,zc=Pt()(Qt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:Cr.DARK_MODE,storage:"undefined"!=typeof window?Zt(()=>localStorage):void 0})),Bc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:Er},Hc=Pt(e=>({...Bc,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(Bc)}));var jc;(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"})(jc||(jc={}));const Wc=e=>`add-${ur(e).replaceAll(" ","-").toLowerCase()}`,Gc=e=>`edit-${ur(e).replaceAll(" ","-").toLowerCase()}`,Xc=Pt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),Vc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],regions:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],enabledStatuses:[],onlyErrors:!1}),Kc=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:Vc})),Yc=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 Jc;(e=>{e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"})(Jc||(Jc={}));const qc=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),Qc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),Zc=Pt((e,t)=>({progress:{},setProgress:(n,r)=>{const o=t(),i=qc();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]:Qc(i)}})},addProgress:(n,r,o)=>{const i=t(),a=qc(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]:Qc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),ed=Pt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),td={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},nd=(e,t)=>e.destinationType.type!==t.destinationType.type,rd=Pt(e=>({...td,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=>nd(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=>nd(e,t))})),clearStore:()=>e(()=>({...td}))})),od=e=>{function t(){return void 0===e?{}:Gr(e)}const[n,r]=Ut(t()),[o,i]=Ut({}),[a,s]=Ut(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)=>Xr("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=Gr(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=Gr(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}},id={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},ad=()=>{const{addNotification:e}=Yc(),{formData:t,formErrors:n,handleFormChange:r,handleErrorChange:o,resetFormData:i}=od(id);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":Ai(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={...Gr(id),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.UrlTemplatizationRulesGroups:s.fields||(s.fields={}),s.fields[e]=(r=t,r?.length?r.map(e=>e.workloadFilters?.length||!e.filterK8sWorkloadKind&&!e.filterK8sWorkloadName?e:{...e,workloadFilters:[{kind:e.filterK8sWorkloadKind,name:e.filterK8sWorkloadName||void 0}]}):r);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:s.fields||(s.fields={}),s.fields[e]=t}var n,r}),r(void 0,void 0,s)}}},sd=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},ld=()=>{const e=jt(null),[t,n]=Ut(0),[r,o]=Ut(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 cd;(e=>{e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"})(cd||(cd={}));const dd=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
|
-
`,
|
|
206
|
+
`,ud=({"data-id":e,icon:n,size:r=cd.S,onClick:o,disabled:i})=>t(dd,{"data-id":e,$size:r,$disabled:i,onClick:e=>{o&&!i&&(e.stopPropagation(),o(e))},children:t(n,{size:r})}),pd=({onDone:e}={})=>{const[n,r]=Ut(!1),[o,i]=Ut(-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(ud,{icon:n?vt:Et,size:r,onClick:()=>a(e)}),[n]),isCopied:n,copiedIndex:o,clickCopy:a}},hd=e=>{const{addNotification:t}=Yc(),{formData:n,handleFormChange:r,formErrors:o,handleErrorChange:i,resetFormData:a}=od(e);return{formData:n,formErrors:o,handleFormChange:r,resetFormData:a,validateForm:e=>{const r={};let o=!0;return n.name?Ii(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={...Gr(e),name:t};r(void 0,void 0,n)}}},gd={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},md=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:r}=Yc(),{formData:o,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=od(gd),[c,d]=Ut([]),[u,p]=Ut([]);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=Dr(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,...Dr(r,{})}})).map(e=>{if(n){const t="string"==typeof n?Dr(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===Mi(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={...Gr(gd),type:e,name:t,disabled:n,exportedSignals:r,fields:Object.entries(Dr(o,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},fd={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Bn.HttpRequest]:null,[Bn.HttpResponse]:null,[Bn.DbQuery]:null,[Bn.Messaging]:null},codeAttributes:{[Mn.Column]:null,[Mn.FilePath]:null,[Mn.Function]:null,[Mn.LineNumber]:null,[Mn.Namespace]:null,[Mn.StackTrace]:null},headersCollection:null,customInstrumentations:{[zn.Java]:null,[zn.Golang]:null,[zn.Php]:null},networkMetrics:null},yd=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:r,resetFormData:o}=od(fd);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={...Gr(fd),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={[Mn.Column]:a[Mn.Column]||null,[Mn.FilePath]:a[Mn.FilePath]||null,[Mn.Function]:a[Mn.Function]||null,[Mn.LineNumber]:a[Mn.LineNumber]||null,[Mn.Namespace]:a[Mn.Namespace]||null,[Mn.StackTrace]:a[Mn.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)}}},bd=({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),vd="data-ignore-outside-click",Ed=(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(vd))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])},$d=(e,{axis:t="horizontal",deps:n=[]}={})=>{const[r,o]=Ut(!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},Sd=(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},Cd=({sectionNames:e,threshold:t=.4})=>{const[n,r]=Ut(e[0]||""),[o,i]=Ut(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}},xd=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n,positionMode:r="local"}={})=>{const o=jt(null),[i,a]=Ut(!1),[s,l]=Ut({top:0,left:0}),[c,d]=Ut({edge:"top",align:"left"});return Ed(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})}}},wd=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?Dr(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Td={otelServiceName:"",currentStreamName:""},Od=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:r,resetFormData:o}=od(Td);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:o,validateForm:()=>(r(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const r={...Gr(Td),otelServiceName:e||t.name||""};n(void 0,void 0,r)}}};try{Xt.addDefaultLocale(Vt)}catch(e){}const Nd=new Xt(Vt.locale),Ad=[{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"}],Id=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),_d=()=>{const[e,t]=Ut(0);return zt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]),{formatTimeAgo:Bt(e=>{try{return Nd.format(Id(e))}catch(e){return"-"}},[e]),formatDurationAgo:Bt((e,{units:t=2,style:n="long",suffix:r=!0}={})=>{try{const o=Id(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 Ad){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])}},Rd=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
|
-
`,
|
|
218
|
+
`,Dd=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
|
-
`,
|
|
230
|
+
`,kd=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
|
-
`,
|
|
237
|
+
`,Ld=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
|
-
`,
|
|
244
|
+
`,Pd=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
|
-
`,
|
|
254
|
+
`,Fd=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
|
-
`,
|
|
263
|
+
`,Md=({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:$,arrowPlacement:S,handlePosition:C}=xd({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($.left||n,$.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(Rd,{$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(Dd,{ref:b,$top:$.top,$left:$.left,$withPointerEvents:x,onMouseEnter:x?w:void 0,children:["top"===S.edge&&t(Pd,{$align:S.align,children:t(Fd,{$pointsUp:!0})}),t(kd,{$maxWidth:p,children:e(Ld,{children:[(!!o||!!a)&&e(ri,{$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"===S.edge&&t(Pd,{$align:S.align,children:t(Fd,{$pointsUp:!1})})]}),document.body)]})},Ud=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
|
-
`,
|
|
273
|
+
`,zd=({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)?ko(m,s,c?"400":"700"):[Tn.Unknown].includes(s)?ko(m,s,"600"):ko(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(Md,{text:a,fullWidth:g,children:e(Ud,{$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(mi,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?y?t(mi,{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 Bd,Hd;(e=>{e.Primary="primary",e.Secondary="secondary",e.Text="text"})(Bd||(Bd={})),(e=>{e.S="small",e.M="medium",e.L="large"})(Hd||(Hd={}));const jd=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===
|
|
283
|
+
${({$size:e,$hasLabel:t})=>e===Hd.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===
|
|
290
|
+
`:e===Hd.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===
|
|
315
|
+
${({$variant:e})=>e===Bd.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===
|
|
323
|
+
`:e===Bd.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===
|
|
331
|
+
`:e===Bd.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
|
-
`,
|
|
341
|
+
`,Wd=Ft(({"data-id":r,label:o,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=Bd.Primary,size:u=Hd.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:y,onClick:b,...v},E)=>{const $=i(),S=p||(u===Hd.L?18:16),C=u===Hd.L?hr.S:hr.XS,x=f||(y?$.v2.colors.grey[400]:$.v2.colors.white[500]),[w,T]=Ut(!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(jd,{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(Md,{text:a,withIcon:!s,children:O?t(mi,o?{withGradient:!0,titleColor:x,titleSize:C}:{withSpinnerOld:!0}):e(n,{children:[l&&t(ii,{$width:"fit-content",children:t(l,{size:S,fill:x})}),o?t(br,{size:C,weight:500,color:x,nowrap:!0,children:o}):null,c&&t(ii,{$width:"fit-content",children:t(c,{size:S,fill:x})})]})})})});Wd.displayName=Wd.name;const Gd={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",1e3:"#0C2F2C"},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"}},Xd={v2:Gd.v2,darkMode:!0,colors:{...Gd.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:Gd.font_family},Vd={v2:Gd.v2,darkMode:!1,colors:{...Gd.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:Gd.font_family},Kd=e=>e?Xd:Vd,Yd=Object.freeze(Object.defineProperty({__proto__:null,baseTheme:Gd,darkModeTheme:Xd,getTheme:Kd,lightModeTheme:Vd},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 Jd=({children:e})=>{const{darkMode:n}=zc();return t(s,{theme:Kd(n),children:e})},qd={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"},Qd=Object.freeze(Object.defineProperty({__proto__:null,hex:qd},Symbol.toStringTag,{value:"Module"})),Zd={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
|
-
`}},
|
|
371
|
+
`}},eu={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
|
-
`},
|
|
385
|
+
`},tu=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
|
-
`,
|
|
394
|
+
`,nu=a`
|
|
395
395
|
0% {
|
|
396
396
|
background-position: -500px 0;
|
|
397
397
|
}
|
|
398
398
|
100% {
|
|
399
399
|
background-position: 500px 0;
|
|
400
400
|
}
|
|
401
|
-
`,
|
|
401
|
+
`,ru={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
|
-
`},
|
|
415
|
+
`},ou=Object.freeze(Object.defineProperty({__proto__:null,fade:ru,ping:tu,progress:eu,shimmer:nu,slide:Zd},Symbol.toStringTag,{value:"Module"}));var iu,au;(e=>{e.S="s",e.L="l"})(iu||(iu={})),(e=>{e.Filled="filled",e.Underline="underline"})(au||(au={}));const su=r.div`
|
|
416
416
|
display: flex;
|
|
417
417
|
align-items: center;
|
|
418
418
|
gap: 2px;
|
|
@@ -420,19 +420,19 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
420
420
|
border-radius: 6px;
|
|
421
421
|
border: none;
|
|
422
422
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
423
|
-
`,
|
|
423
|
+
`,lu=r.button`
|
|
424
424
|
flex: 1;
|
|
425
425
|
display: flex;
|
|
426
426
|
align-items: center;
|
|
427
427
|
justify-content: center;
|
|
428
|
-
gap: ${({$size:e})=>e===
|
|
429
|
-
padding: ${({$size:e})=>e===
|
|
428
|
+
gap: ${({$size:e})=>e===iu.S?"4px":"8px"};
|
|
429
|
+
padding: ${({$size:e})=>e===iu.S?"4px 6px":"8px 12px"};
|
|
430
430
|
border-radius: ${({$isFirstOption:e,$isLastOption:t,$isFirstAndLastOption:n})=>n?"6px":e?"6px 0 0 6px":t?"0 6px 6px 0":"0"};
|
|
431
431
|
border: 1px solid transparent;
|
|
432
432
|
|
|
433
433
|
${({$disabled:e,$isSelected:t,$selectedBgColor:n,$selectedBorderColor:r,theme:i})=>e?o`
|
|
434
434
|
cursor: not-allowed;
|
|
435
|
-
background-color: ${t?(n||i.v2.colors.purple[900])+
|
|
435
|
+
background-color: ${t?(n||i.v2.colors.purple[900])+qd["050"]:"transparent"};
|
|
436
436
|
`:t?o`
|
|
437
437
|
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
438
438
|
border: 1px solid ${r||i.v2.colors.purple[400]};
|
|
@@ -447,11 +447,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
447
447
|
background-color: ${i.v2.colors.silver[600]};
|
|
448
448
|
}
|
|
449
449
|
`}
|
|
450
|
-
`,
|
|
450
|
+
`,cu=r.div`
|
|
451
451
|
display: flex;
|
|
452
452
|
align-items: stretch;
|
|
453
453
|
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
454
|
-
`,
|
|
454
|
+
`,du=r.button`
|
|
455
455
|
display: flex;
|
|
456
456
|
height: 34px;
|
|
457
457
|
padding: 8px 12px 8px 16px;
|
|
@@ -470,7 +470,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
470
470
|
&:hover {
|
|
471
471
|
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
472
472
|
}
|
|
473
|
-
`,
|
|
473
|
+
`,uu=({"data-id":r,size:o=iu.S,variant:a=au.Filled,options:s=[],selected:l,setSelected:c,disabled:d,fullWidth:u=!1})=>{const p=i(),h=a===au.Underline,g=h?du:lu;return t(h?cu:su,{"data-id":r,$fullWidth:u,children:s.map(({value:r,label:i,icon:a,badge:u,tooltip:m,selectedBgColor:f,selectedBorderColor:y,selectedTextColor:b,disabled:v},E)=>{const $=0===E,S=E===s.length-1,C=l===r,x=v||d,w=x?p.v2.colors.grey[400]:h?p.v2.colors.white[500]:C?b||p.v2.colors.white[500]:p.v2.colors.grey[300],T=o===iu.S?hr.XXS:hr.XS,O=C?500:400,N=e(n,{children:[a&&t(a,{fill:w}),i&&t(br,{size:T,weight:O,color:w,nowrap:!0,children:i}),u&&t(zd,{...u})]});return t(g,{onClick:()=>!x&&c(r),$isFirstOption:$,$isLastOption:S,$isFirstAndLastOption:$&&S,$disabled:x,$isSelected:C,$size:o,...!h&&{$selectedBgColor:f,$selectedBorderColor:y},children:m?t(Md,{text:m,withIcon:!0,children:N}):N},`segment-${E}-${i}-${r}`)})})},pu=r.div`
|
|
474
474
|
box-sizing: border-box !important;
|
|
475
475
|
width: ${({$width:e})=>e??"fit-content"};
|
|
476
476
|
padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
|
|
@@ -484,7 +484,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
484
484
|
border: none;
|
|
485
485
|
border-radius: 6px;
|
|
486
486
|
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}};
|
|
487
|
-
`,
|
|
487
|
+
`,hu=r.input`
|
|
488
488
|
min-width: 0;
|
|
489
489
|
flex: 1;
|
|
490
490
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
@@ -501,7 +501,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
501
501
|
overflow: hidden;
|
|
502
502
|
text-overflow: ellipsis;
|
|
503
503
|
white-space: nowrap;
|
|
504
|
-
`,
|
|
504
|
+
`,gu=({"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]=Ut(!1),[f,y]=Ut(!1),[b,v]=Ut(!1),E=g?h.v2.colors.white[500]:h.v2.colors.silver[200],$=!!d?.options?.length,S=Ht(()=>{if($)return d?.options.find(e=>e.value===d.selected)?.label},[$,d?.options,d?.selected]),C=Ht(()=>l||($&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,$,S]);return e(pu,{$width:c,$withSegment:$,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!b,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[t($t,{size:18,fill:E}),t(hu,{"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}),$&&t("div",{style:{flexShrink:0},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:t(uu,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected})})]})},mu=r.div`
|
|
505
505
|
display: flex;
|
|
506
506
|
align-items: center;
|
|
507
507
|
justify-content: center;
|
|
@@ -510,41 +510,41 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
510
510
|
padding: 8px;
|
|
511
511
|
border-radius: 100%;
|
|
512
512
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
513
|
-
`,
|
|
513
|
+
`,fu=({icon:n=St,hideIcon:r=!1,title:o="No data",subTitle:a,button:s,action:l})=>{const c=i().v2.colors.silver[200];return e(oi,{$gap:12,$alignItems:"center",children:[!r&&t(mu,{children:t(n,{size:32,fill:c})}),e(oi,{$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(Wd,{variant:Bd.Secondary,...s}),l]})},yu=r.span`
|
|
514
514
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
515
515
|
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
516
516
|
font-weight: 400;
|
|
517
517
|
color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
|
|
518
|
-
`,
|
|
518
|
+
`,bu=r.span`
|
|
519
519
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
520
520
|
font-size: 14px;
|
|
521
521
|
font-weight: 400;
|
|
522
522
|
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
523
|
-
`,
|
|
523
|
+
`,vu=({label:n,tooltip:r,required:o,badge:i,width:a,smallAndDark:s})=>n||r||o?e(ri,{$width:a,$justifyContent:"space-between",children:[n&&t(yu,{$smallAndDark:s,children:n}),e(ri,{$gap:4,children:[i&&t(zd,{...i,textSize:hr.XXXS}),o&&t(bu,{children:"*"}),r&&t(Md,{text:r,withIcon:!0})]})]}):null,Eu=({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(ri,{$alignItems:"center",children:[l&&t(oi,{children:l}),t(br,{size:hr.XXXS,weight:400,color:s,children:n||r||o})]}):null};var $u;(e=>{e.S="small",e.L="large"})($u||($u={}));const Su=r.div`
|
|
524
524
|
width: fit-content;
|
|
525
525
|
display: flex;
|
|
526
526
|
align-items: center;
|
|
527
527
|
gap: 8px;
|
|
528
528
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
529
|
-
`,
|
|
530
|
-
width: ${({$size:e})=>e
|
|
531
|
-
height: ${({$size:e})=>e
|
|
529
|
+
`,Cu=r.div`
|
|
530
|
+
width: ${({$size:e})=>e===$u.S?"16px":"20px"};
|
|
531
|
+
height: ${({$size:e})=>e===$u.S?"16px":"20px"};
|
|
532
532
|
display: flex;
|
|
533
533
|
align-items: center;
|
|
534
534
|
justify-content: center;
|
|
535
535
|
border-radius: 4px;
|
|
536
536
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
537
537
|
background-color: ${({$backgroundColor:e})=>e};
|
|
538
|
-
`,
|
|
538
|
+
`,xu=({name:n,label:r,tooltip:o,badge:a,size:s=$u.L,disabled:l,partiallyChecked:c,value:d,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=i(),[f,y]=Ut(!1),b=c||d,v=s===$u.S?12:16,E=l?m.v2.colors.grey[400]:m.v2.colors.white[500],$=b?"transparent":l?m.v2.colors.grey[700]:f?m.v2.colors.silver[400]:m.v2.colors.silver[600],S=l?m.v2.colors.grey[600]:b?m.v2.colors.purple[500]:m.v2.colors.silver[900];return e(oi,{$gap:4,children:[e(ri,{$justifyContent:"space-between",children:[e(Su,{"data-id":n||"checkbox"+(r?`-${r}`:""),onClick:e=>{e.stopPropagation(),l||u(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[t(Cu,{$size:s,$borderColor:$,$backgroundColor:S,children:c?t(Ct,{size:v,fill:E}):d?t(vt,{size:v,fill:E}):null}),r&&t(br,{size:s===$u.S?hr.XXS:hr.XS,nowrap:!0,children:r})]}),t(vu,{tooltip:o,badge:a})]}),t(Eu,{errorMessage:p,warnMessage:h,helpMessage:g})]})},wu=r.div`
|
|
539
539
|
display: flex;
|
|
540
540
|
flex-direction: ${({$direction:e})=>e===gn.Horizontal?"row":"column"};
|
|
541
541
|
gap: ${({$direction:e})=>e===gn.Horizontal?16:8}px;
|
|
542
|
-
`,
|
|
542
|
+
`,Tu=({direction:n=gn.Vertical,title:r,size:o,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=o===$u.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(wu,{$direction:n,children:[r&&a?t(xu,{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(xu,{...e,value:l[e.id],onChange:t=>h(e.id,t),disabled:i,size:o},`${r}-checkbox-${e.id}`))]})};var Ou,Nu;(e=>{e.Left="left",e.Right="right"})(Ou||(Ou={})),(e=>{e.Top="top",e.Bottom="bottom"})(Nu||(Nu={}));const Au=r.div`
|
|
543
543
|
position: relative;
|
|
544
544
|
display: flex;
|
|
545
545
|
flex-direction: column;
|
|
546
546
|
gap: 4px;
|
|
547
|
-
`,
|
|
547
|
+
`,Iu=r.div`
|
|
548
548
|
position: fixed;
|
|
549
549
|
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
550
550
|
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
@@ -562,7 +562,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
562
562
|
border-radius: 6px;
|
|
563
563
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
564
564
|
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
565
|
-
`,
|
|
565
|
+
`,_u=r.div`
|
|
566
566
|
display: flex;
|
|
567
567
|
flex-direction: column;
|
|
568
568
|
gap: 0;
|
|
@@ -570,7 +570,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
570
570
|
width: 100%;
|
|
571
571
|
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
572
572
|
overflow-y: auto;
|
|
573
|
-
`,
|
|
573
|
+
`,Ru=r.div`
|
|
574
574
|
display: flex;
|
|
575
575
|
align-items: center;
|
|
576
576
|
gap: 8px;
|
|
@@ -586,19 +586,19 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
586
586
|
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
587
587
|
}
|
|
588
588
|
`}
|
|
589
|
-
`,
|
|
589
|
+
`,Du=r.div`
|
|
590
590
|
display: flex;
|
|
591
591
|
align-items: center;
|
|
592
592
|
gap: 8px;
|
|
593
593
|
flex: 1;
|
|
594
594
|
min-width: 0;
|
|
595
|
-
`,
|
|
595
|
+
`,ku=r.div`
|
|
596
596
|
flex: 0 1 auto;
|
|
597
597
|
min-width: 0;
|
|
598
598
|
overflow: hidden;
|
|
599
599
|
text-overflow: ellipsis;
|
|
600
600
|
white-space: nowrap;
|
|
601
|
-
`,
|
|
601
|
+
`,Lu=r.span`
|
|
602
602
|
flex-shrink: 0;
|
|
603
603
|
width: 88px;
|
|
604
604
|
display: inline-flex;
|
|
@@ -607,19 +607,19 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
607
607
|
border-radius: 4px;
|
|
608
608
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
609
609
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
|
|
610
|
-
`,
|
|
610
|
+
`,Pu=r.div`
|
|
611
611
|
flex-shrink: 0;
|
|
612
612
|
display: inline-flex;
|
|
613
613
|
align-items: center;
|
|
614
614
|
gap: 4px;
|
|
615
|
-
`,
|
|
615
|
+
`,Fu=({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 $=i(),S=void 0!==r,C=!!f||!!y||!!E,[x,w]=Ut(n??!C),T=S?r:x,O=Bt(e=>{S||w(e),o?.(e)},[S,o]),[N,A]=Ut({x:a||Ou.Left,y:s||Nu.Bottom}),I=jt(null);Ed(I,()=>O(!1));const[_,R]=Ut({}),D=Bt((e,t)=>{const n=I.current?.getBoundingClientRect();if(!n)return;const r=C?8:0;R({top:t===Nu.Bottom?C?n.bottom+r:n.top:void 0,bottom:t===Nu.Top?C?window.innerHeight-n.top+r:window.innerHeight-n.bottom:void 0,left:e===Ou.Left?n.left:void 0,right:e===Ou.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?Ou.Right:Ou.Left),y:s||(e.clientY>window.innerHeight/2?Nu.Top:Nu.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,F]=Ut(""),M=Ht(()=>P?l.filter(e=>e?.label?.toLowerCase().includes(P.toLowerCase())):l,[l.length,P]);return e(Au,{ref:I,children:[u&&t(vu,{label:u}),f&&t(Wd,{...f,fullWidth:g,rightIcon:T?xt:wt,onClick:k}),y&&t(Wd,{variant:Bd.Text,size:Hd.S,...y,onClick:k}),"function"==typeof E?E({ChevronIcon:T?xt:wt,handleClick:k}):E,T&&Yt(e(Iu,{$coords:_,"data-ignore-outside-click":"true",children:[h&&t(gu,{value:P,onChange:F,width:"100%"}),b?t(mi,{withSpinner:!0,title:"Loading...",titleSize:hr.XS}):M.length?t(_u,{$maxHeight:m,children:M.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(Ru,{"data-id":`option-${r}`,$selected:d&&!a,onClick:()=>L(r),title:l?`${o} — ${l}`:o,children:[a&&t(xu,{value:d,onChange:()=>L(r)}),i&&t(i,{size:14,fill:n.color||$.v2.colors.white[500]}),s&&t(Lu,{children:t(br,{size:hr.XXS,nowrap:!0,color:gr.Secondary,children:s})}),e(Du,{children:[t(ku,{children:t(br,{size:hr.XS,nowrap:!0,color:n.color||gr.Primary,children:o})}),l&&e(Pu,{children:[t(Be,{size:12,fill:$.v2.colors.silver[200]}),t(br,{size:hr.XS,nowrap:!0,color:gr.Secondary,children:l})]})]})]},r)})}):t(ni,{$padding:"6px 0",children:t(fu,{hideIcon:!0,title:"No results",subTitle:v})}),p&&!!M.length&&t(Wd,{label:"Done",onClick:()=>O(!1)})]}),document.body)]})};var Mu;(e=>{e.Button="button",e.ButtonDropData="button-drop-data"})(Mu||(Mu={}));const Uu=({onAnyClick:e,actions:n})=>t(ri,{$gap:8,$alignItems:"center",children:n?.map(n=>{if(!n)return null;switch(n.type){case Mu.Button:return t(Wd,{...n.buttonProps,onClick:t=>{n.buttonProps?.onClick?.(t),e?.()}},n.id);case Mu.ButtonDropData:return t(Fu,{...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}})}),zu=r.div`
|
|
616
616
|
display: flex;
|
|
617
617
|
align-items: center;
|
|
618
618
|
justify-content: center;
|
|
619
619
|
padding: 8px;
|
|
620
620
|
border-radius: 8px;
|
|
621
|
-
background-color: ${({theme:e})=>e.v2.colors.white[500]+
|
|
622
|
-
`,
|
|
621
|
+
background-color: ${({theme:e})=>e.v2.colors.white[500]+qd["004"]};
|
|
622
|
+
`,Bu=({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}=pd();return e(ri,{$gap:l?8:6,$alignItems:"center",children:[n&&(r||l?t(zu,{children:t(n,{size:24})}):t(n,{size:24})),o||g||l?e(oi,{children:[o||g?e(ri,{$gap:6,$alignItems:"center",children:[o&&t(br,{size:i,color:a,nowrap:!s,children:o}),h&&o&&t(y,{value:o,size:cd.XS}),p&&t(Md,{text:p,withIcon:!0}),g&&t(zd,{...g})]}):null,l&&t(br,{size:c,color:d,nowrap:!u,children:l})]}):null,t(ri,{$gap:m,$margin:`0 0 0 ${m??0}px`,$alignItems:"center",children:f})]})},Hu=({children:e,fullText:n,fullWidth:r=!0,...o})=>{const i=jt(null),a=!!o.maxLines&&o.maxLines>0,s=$d(i,{axis:a?"vertical":"horizontal",deps:[e]})?n??(null==e?"":String(e)):"";return t(Md,{text:s,fullWidth:r,ellipsis:!a,keepAlive:!0,children:t(br,{ref:i,...o,children:e})})},ju=r.section`
|
|
623
623
|
display: flex;
|
|
624
624
|
flex-direction: column;
|
|
625
625
|
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
@@ -629,22 +629,22 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
629
629
|
padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
630
630
|
border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
631
631
|
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
|
|
632
|
-
`,
|
|
632
|
+
`,Wu=r(ri)`
|
|
633
633
|
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
634
634
|
user-select: ${({$clickable:e})=>e?"none":"auto"};
|
|
635
|
-
`,
|
|
635
|
+
`,Gu=r.div`
|
|
636
636
|
display: flex;
|
|
637
637
|
align-items: flex-end;
|
|
638
638
|
flex-wrap: wrap;
|
|
639
639
|
width: 100%;
|
|
640
|
-
`,
|
|
640
|
+
`,Xu=r.div`
|
|
641
641
|
width: ${({$cellsPerRow:e})=>e?`calc(${100/e}% - 16px)`:"unset"};
|
|
642
642
|
margin: 8px;
|
|
643
643
|
display: flex;
|
|
644
644
|
flex-direction: column;
|
|
645
645
|
gap: 4px;
|
|
646
646
|
min-width: 0;
|
|
647
|
-
`,
|
|
647
|
+
`,Vu=({item:n,cellsPerRow:r})=>{const{CopyButton:o}=pd(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=n;return i?t("div",{style:{flex:1}}):e(Xu,{$cellsPerRow:r,children:[!!a&&t(Md,{text:s,children:t(Hu,{size:hr.XXXS,color:gr.Secondary,nowrap:!0,children:a})}),e(ri,{$gap:4,children:[u&&t(zd,{...u}),l&&t(Md,{text:c,children:t(Hu,{size:hr.XS,nowrap:!0,children:l})}),d&&t(o,{value:l||u?.label?.toString()||"",size:cd.XS})]})]})},Ku=({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]=Ut(l||!1),b=()=>y(e=>!e),v=!s||s&&f,E=!!d.length,$=!!u.length,S=!!c.length;return e(ju,{$width:r,$bgTint:n,$fullHeight:o,$moreSpacing:i,children:[(a||s)&&e(Wu,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?t(Bu,{...a}):t("div",{}),e(ri,{$gap:12,children:[p,E&&v&&t(Uu,{actions:d}),S&&t(ri,{$gap:8,children:c.map((e,t)=>Gt(zd,{...e,key:e.key||`${e.label}-${t}`}))}),($||s)&&e(ri,{$gap:2,children:[$&&t(Fu,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:Tt},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&t(Wd,{variant:Bd.Text,size:Hd.S,leftIcon:f?xt:wt,onClick:b})]})]})]}),v&&g?t(Gu,{children:g.map(e=>t(Vu,{item:e,cellsPerRow:h&&h<=g.length?h:void 0},e.id))}):null,v&&m]})};var Yu;(e=>{e.S="small",e.M="medium"})(Yu||(Yu={}));const Ju=r.div`
|
|
648
648
|
display: flex;
|
|
649
649
|
flex-direction: column;
|
|
650
650
|
gap: ${({$gap:e})=>e}px;
|
|
@@ -655,7 +655,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
655
655
|
border-radius: 16px;
|
|
656
656
|
background-color: ${({theme:e,$backgroundColor:t,$bordered:n})=>t??(n?"transparent":e.v2.colors.silver[1e3])};
|
|
657
657
|
${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
|
|
658
|
-
`,
|
|
658
|
+
`,qu=Ft(({id:n,size:r=Yu.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===Yu.S?4:16,y="number"==typeof h?h:r===Yu.S?12:16,b=a??(i?t(Bu,{...i}):null),v=l??(s?t(gu,{...s}):null),E=!!b||!!v,$=!!d&&d.length>0;return e(Ju,{ref:m,id:n,"data-section-name":n,$padding:y,$gap:f,$fullHeight:o,$backgroundColor:p,$bordered:g,children:[E||$?e(ri,{$gap:f,$justifyContent:"space-between",children:[E?e(ri,{$gap:f,$alignItems:"center",children:[b,v,c]}):null,$&&t(Uu,{actions:d??[]})]}):null,u]})});qu.displayName="SectionCard";const Qu=r.div`
|
|
659
659
|
flex: 1;
|
|
660
660
|
align-self: stretch;
|
|
661
661
|
display: flex;
|
|
@@ -663,8 +663,8 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
663
663
|
gap: 8px;
|
|
664
664
|
padding: 16px;
|
|
665
665
|
border-radius: 12px;
|
|
666
|
-
background-color: ${({theme:e,$status:t})=>
|
|
667
|
-
`,
|
|
666
|
+
background-color: ${({theme:e,$status:t})=>ko(e,t,t===Tn.Unknown?"750":"500")};
|
|
667
|
+
`,Zu=r.div`
|
|
668
668
|
display: flex;
|
|
669
669
|
align-items: center;
|
|
670
670
|
justify-content: center;
|
|
@@ -672,8 +672,8 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
672
672
|
height: fit-content;
|
|
673
673
|
padding: 8px;
|
|
674
674
|
border-radius: 12px;
|
|
675
|
-
background-color: ${({theme:e,$status:t})=>t===Tn.Unknown?
|
|
676
|
-
`,
|
|
675
|
+
background-color: ${({theme:e,$status:t})=>t===Tn.Unknown?ko(e,t,"800"):ko(e,t,"900")+qd["015"]};
|
|
676
|
+
`,ep=({status:n,icon:r,title:o,description:a})=>{const s=i(),l=r??fi(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(Qu,{$status:n,children:[t(Zu,{$status:n,children:t(l,{size:32,fill:c})}),e(oi,{$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})]})]})},tp=r.div`
|
|
677
677
|
flex: 0.5;
|
|
678
678
|
display: flex;
|
|
679
679
|
flex-direction: column;
|
|
@@ -681,7 +681,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
681
681
|
padding: 12px;
|
|
682
682
|
border-radius: 12px;
|
|
683
683
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
684
|
-
`,
|
|
684
|
+
`,np=["-","N/A","undefined","null","undefined/undefined","null/null"],rp=({title:n,cells:r})=>{const o=i();return e(tp,{children:[t(br,{size:hr.XXS,color:o.v2.colors.grey[150],children:n}),t(ri,{$gap:32,children:r.map((r,o)=>e(oi,{$gap:2,children:[!r.isLoading||r.value&&!np.includes(r.value)?t(br,{size:r.label?hr.M:hr.L,children:r.value}):t(mi,{withSpinnerOld:!0,scaleSpinnerOld:.9}),r.label&&t(br,{size:hr.XXS,children:r.label})]},`${n}-${o}-${r.label}-${r.value}`))})]})},op=r.div`
|
|
685
685
|
padding: ${({$small:e})=>e?"4px":"6px 12px"};
|
|
686
686
|
|
|
687
687
|
display: flex;
|
|
@@ -700,7 +700,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
700
700
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
701
701
|
}
|
|
702
702
|
`}
|
|
703
|
-
`,
|
|
703
|
+
`,ip=r.input`
|
|
704
704
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
705
705
|
width: ${({$width:e})=>e||"unset"};
|
|
706
706
|
|
|
@@ -732,12 +732,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
732
732
|
pointer-events: none;
|
|
733
733
|
user-select: none;
|
|
734
734
|
}
|
|
735
|
-
`,
|
|
735
|
+
`,ap=r.div`
|
|
736
736
|
display: flex;
|
|
737
737
|
align-items: center;
|
|
738
738
|
justify-content: center;
|
|
739
739
|
cursor: pointer;
|
|
740
|
-
`,
|
|
740
|
+
`,sp=({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]=Ut(!1),[O,N]=Ut(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=$d(R,{deps:[m]}),k=S.readOnly&&D&&null!=m&&""!==m?String(m):"";return e(oi,{$width:v,$gap:6,children:[t(vu,{label:n,tooltip:o,required:r,badge:a}),t(op,{$small:E,$disabled:y,$error:A,$clickable:!!$&&!y,onClick:y?void 0:$,children:e(Md,{text:k,fullWidth:!0,keepAlive:!0,children:[s?t(s,{size:_,fill:I}):null,t(ip,{"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?Bi(t):zi(t),r=null!=S.min?Number(S.min):void 0,o=null!=S.max?Number(S.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,...S,ref:R}),x?t(ap,{onClick:()=>T(e=>!e),children:t(w?Ot:Nt,{size:_,fill:I})}):l?t(l,{size:_,fill:I}):null]})}),t(Eu,{errorMessage:O||d,warnMessage:u,helpMessage:p})]})},lp=e=>{const{"data-id":n,options:r,placeholder:o="Search...",isLoading:i,disabled:a}=e,s=!0===e.multiple,[l,c]=Ut(""),[d,u]=Ut(!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(Fu,{open:E,onOpenChange:b,items:m,selectedIds:p,setSelectedIds:v,withMultiSelect:s,isLoading:i,emptyMessage:`No results matched the filter '${l}'`,fullWidth:!0,alignY:Nu.Bottom,children:t(sp,{name:n,leftIcon:$t,placeholder:o,value:g,onChange:y,onFocus:f,disabled:a})})},cp=r.button`
|
|
741
741
|
width: 100%;
|
|
742
742
|
padding: 0;
|
|
743
743
|
padding-right: 12px;
|
|
@@ -758,7 +758,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
758
758
|
cursor: not-allowed;
|
|
759
759
|
opacity: 0.5;
|
|
760
760
|
}
|
|
761
|
-
`,
|
|
761
|
+
`,dp=r.div`
|
|
762
762
|
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
763
763
|
height: 56px;
|
|
764
764
|
display: flex;
|
|
@@ -769,31 +769,31 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
769
769
|
`:o`
|
|
770
770
|
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
771
771
|
`}
|
|
772
|
-
`,
|
|
772
|
+
`,up=r.div`
|
|
773
773
|
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
774
774
|
display: flex;
|
|
775
775
|
justify-content: space-between;
|
|
776
776
|
align-items: center;
|
|
777
777
|
gap: 8px;
|
|
778
|
-
`,
|
|
778
|
+
`,pp=({label:n,icon:r,loading:o,disabled:i,onClick:a})=>{const[s,l]=Ut(!1);return e(cp,{$hovered:s,type:"button",disabled:i||o,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[t(dp,{$hovered:s,$hasIcon:!!r,children:r&&t(r,{size:36})}),e(up,{$hasIcon:!!r,children:[o?t(mi,{withGradient:!0,titleSize:hr.S}):t(br,{variant:pr.Span,align:"center",children:n}),t(At,{rotate:90,size:24})]})]})},hp=({buttons:e})=>t(oi,{$gap:12,children:e.map((e,n)=>t(pp,{...e},`${e.label}-${n}`))});var gp;(e=>{e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"})(gp||(gp={}));const mp=r.div`
|
|
779
779
|
display: flex;
|
|
780
780
|
align-items: flex-end;
|
|
781
781
|
justify-content: space-between;
|
|
782
782
|
gap: 24px;
|
|
783
783
|
width: fit-content;
|
|
784
|
-
`,
|
|
784
|
+
`,fp=r.div`
|
|
785
785
|
position: relative;
|
|
786
786
|
display: flex;
|
|
787
787
|
flex-direction: column;
|
|
788
788
|
align-items: center;
|
|
789
789
|
width: ${({$width:e})=>e??150}px;
|
|
790
790
|
flex-shrink: 0;
|
|
791
|
-
`,
|
|
791
|
+
`,yp=r.svg`
|
|
792
792
|
display: block;
|
|
793
793
|
width: 100%;
|
|
794
794
|
height: auto;
|
|
795
795
|
overflow: visible;
|
|
796
|
-
`,
|
|
796
|
+
`,bp=r(oi)`
|
|
797
797
|
position: absolute;
|
|
798
798
|
left: 0;
|
|
799
799
|
right: 0;
|
|
@@ -801,14 +801,14 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
801
801
|
align-items: center;
|
|
802
802
|
gap: 2px;
|
|
803
803
|
pointer-events: none;
|
|
804
|
-
`,
|
|
804
|
+
`,vp=r.span`
|
|
805
805
|
display: inline-block;
|
|
806
806
|
flex-shrink: 0;
|
|
807
807
|
width: 9px;
|
|
808
808
|
height: 9px;
|
|
809
809
|
border-radius: 50%;
|
|
810
810
|
background-color: ${({$color:e})=>e};
|
|
811
|
-
|
|
811
|
+
`,Ep=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:""}},$p=(e,t,n,r)=>{const o=r*Math.PI/180;return{x:e+n*Math.cos(o),y:t-n*Math.sin(o)}},Sp=(e,t,n,r,o)=>{const i=$p(e,t,n,r),a=$p(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}`},Cp=({variant:n=gp.CurrentOfMax,gaugeWidth:r,title:o,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=Ep(a),{number:g}=Ep(s),{number:m,prefix:f,suffix:y}=Ep(l),b=i(),v=(P=(m-h)/Math.max(g-h,1),Math.min(Math.max(P,0),1)),E=180-180*v,$=v>0?Sp(60,60,55,180,E):null,S=v<1?Sp(60,60,55,E,0):null,C=$p(60,60,55,180),x=$p(60,60,55,0),w=d??(n===gp.GoodAgainstBad?b.v2.colors.green[500]:b.v2.colors.purple[400]),T=p??(n===gp.GoodAgainstBad?b.v2.colors.red[500]:b.v2.colors.silver[500]),[O,N]=Ut(null),A=e=>`${f}${e}${y}`,I=n===gp.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(mp,{children:[e(fp,{$width:r,children:[t(Md,{keepAlive:!0,fullWidth:!0,title:_,text:R,children:e(yp,{viewBox:"0 0 120 65",role:"img","aria-label":`${o}: ${m} of ${g}`,children:[$&&t("path",{d:$,fill:"none",stroke:w,strokeWidth:10,strokeLinecap:1===v?"round":"butt",onMouseEnter:D,onMouseLeave:L}),S&&t("path",{d:S,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(bp,{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(oi,{$gap:7,children:[e(ri,{$gap:8,$alignItems:"center",children:[t(vp,{$color:w}),t(br,{size:hr.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:c})]}),e(ri,{$gap:8,$alignItems:"center",children:[t(vp,{$color:T}),t(br,{size:hr.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},xp=r(ri)`
|
|
812
812
|
width: 100%;
|
|
813
813
|
padding: 8px 12px;
|
|
814
814
|
border-radius: 6px;
|
|
@@ -817,26 +817,26 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
817
817
|
align-items: center;
|
|
818
818
|
justify-content: space-between;
|
|
819
819
|
gap: 12px;
|
|
820
|
-
`,
|
|
820
|
+
`,wp=r.div`
|
|
821
821
|
position: relative;
|
|
822
822
|
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
823
823
|
display: flex;
|
|
824
824
|
align-items: center;
|
|
825
825
|
gap: 4px;
|
|
826
|
-
`,
|
|
826
|
+
`,Tp=r.pre`
|
|
827
827
|
flex: 1;
|
|
828
828
|
margin: 0;
|
|
829
829
|
padding: 0;
|
|
830
830
|
font-size: 12px;
|
|
831
831
|
color: #5ffb98; // TODO: add to theme
|
|
832
832
|
overflow-x: auto;
|
|
833
|
-
`,
|
|
833
|
+
`,Op=r.span`
|
|
834
834
|
flex-shrink: 0;
|
|
835
835
|
font-size: 14px;
|
|
836
836
|
color: #5ffb98; // TODO: add to theme
|
|
837
|
-
`,
|
|
837
|
+
`,Np=({bgTint:n,label:r,value:o,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=pd({onDone:a}),l=jt(null),[c,d]=Ut(!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(oi,{$gap:4,children:[r&&t(br,{size:hr.XXXS,color:gr.Secondary,children:r}),e(xp,{$bgTint:n,children:[e(wp,{$hideCopy:i,children:[t(Tp,{ref:l,children:o}),c&&t(Op,{children:"..."})]}),!i&&t(s,{value:o,size:cd.XS})]})]})},Ap=r(ri)`
|
|
838
838
|
gap: 0;
|
|
839
|
-
`,
|
|
839
|
+
`,Ip=r.button`
|
|
840
840
|
padding: 4px 8px;
|
|
841
841
|
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
842
842
|
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
@@ -848,20 +848,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
848
848
|
&:hover {
|
|
849
849
|
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
850
850
|
}
|
|
851
|
-
`,
|
|
851
|
+
`,_p=({isPrettyMode:n,setIsPrettyMode:r})=>e(Ap,{children:[t(Ip,{$position:"left",$selected:n,onClick:()=>r(!0),children:t(It,{})}),t(Ip,{$position:"right",$selected:!n,onClick:()=>r(!1),children:t(bt,{})})]}),Rp=r.table`
|
|
852
852
|
border-collapse: collapse;
|
|
853
853
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
854
|
-
`,
|
|
854
|
+
`,Dp=r.tbody``,kp=r.tr`
|
|
855
855
|
td:first-child {
|
|
856
856
|
padding-left: 0 !important;
|
|
857
857
|
}
|
|
858
858
|
td:last-child {
|
|
859
859
|
padding-right: 0 !important;
|
|
860
860
|
}
|
|
861
|
-
`,
|
|
861
|
+
`,Lp=r.td`
|
|
862
862
|
vertical-align: top;
|
|
863
863
|
padding: 4px 6px;
|
|
864
|
-
`,
|
|
864
|
+
`,Pp=r.span`
|
|
865
865
|
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
866
866
|
overflow-wrap: break-word;
|
|
867
867
|
word-break: break-word;
|
|
@@ -869,7 +869,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
869
869
|
/* Fallback for older browsers */
|
|
870
870
|
-ms-word-break: break-all;
|
|
871
871
|
font-size: 12px;
|
|
872
|
-
`,
|
|
872
|
+
`,Fp=({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=Dr(n,{}),t=Gi(e);c=Xi(o?Zr(t):t)}else c=n;return a&&"json"===e?t(Mp,{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(Pp,{...n({token:e})},`line-${o}-token-${r}`))},`line-${o}`))})})},Mp=({darkMode:n,str:r})=>{const o=i(),a=(n,r)=>{const i=new Array(n).fill(n=>e(kp,{...n,children:[t(Lp,{}),t(Lp,{})]}));return t(Mt,{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(Rp,{children:t(Dp,{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(Mt,{children:[a(2,s),e(kp,{...c,children:[t(Lp,{children:t(br,{nowrap:!0,children:l[0].content})}),t(Lp,{})]})]},`line-${s}`):2===l.length?t(kp,{...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(Md,{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=fi(i,n);return e||(e=fi(Tn.Warning,n)),t(e,{},`${o}-${i}-${r}`);default:return null}})?.filter(e=>!!e)||[]}})(n.content,o),c=0===i;return t(Lp,{children:e(ri,{children:[t(ri,{children:l}),t(Pp,{$noWrap:c,...r({token:n}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},Up=r.div`
|
|
873
873
|
display: flex;
|
|
874
874
|
align-items: ${({$slim:e})=>e?"flex-start":"center"};
|
|
875
875
|
gap: 8px;
|
|
@@ -885,7 +885,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
885
885
|
background-color: ${t?"transparent":n};
|
|
886
886
|
}
|
|
887
887
|
`}
|
|
888
|
-
`,
|
|
888
|
+
`,zp=r.div`
|
|
889
889
|
display: flex;
|
|
890
890
|
align-items: center;
|
|
891
891
|
justify-content: center;
|
|
@@ -904,54 +904,54 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
904
904
|
transform: scale(1.2);
|
|
905
905
|
}
|
|
906
906
|
`}
|
|
907
|
-
`,
|
|
907
|
+
`,Bp=r(oi)`
|
|
908
908
|
flex: 1;
|
|
909
909
|
align-self: ${({$slim:e})=>e?"flex-start":"center"};
|
|
910
910
|
min-width: 0;
|
|
911
|
-
`,
|
|
911
|
+
`,Hp=r(oi)`
|
|
912
912
|
align-self: stretch;
|
|
913
913
|
flex-shrink: 0;
|
|
914
|
-
`,
|
|
914
|
+
`,jp=r.div`
|
|
915
915
|
display: flex;
|
|
916
916
|
align-items: center;
|
|
917
917
|
justify-content: center;
|
|
918
918
|
flex-shrink: 0;
|
|
919
919
|
width: 24px;
|
|
920
920
|
height: 24px;
|
|
921
|
-
`,
|
|
921
|
+
`,Wp=({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=fi(n,b),E=p?u?xt:wt:void 0,$=n===Tn.Unknown,S=n===Tn.Disabled,C=n===Tn.Loading||c,x=[Tn.Error,Tn.Warning,Tn.Success].includes(n),w=ko(b,n,S?h?"400":"700":$?"600":h?"300":"500"),T=S?b.v2.colors.grey[400]:h?b.v2.colors.white[500]:x?b.v2.colors.black[500]:b.v2.colors.white[500],O=h&&!$?w:T,N=!h||$||S?"rgba(0, 0, 0, 0.13)":ko(b,n,"800"),A=S?b.v2.colors.grey[900]:h||$?b.v2.colors.silver[800]:w,I=S?b.v2.colors.grey[800]:h||$?b.v2.colors.silver[700]:ko(b,n,"600");return e(Up,{$width:f,$withHover:!!p,$isExtended:u,$hideBackground:m,$backgroundColor:A,$hoverBackgroundColor:I,$slim:y,onClick:p,children:[!g&&t(zp,{$backgroundColor:N,$slim:y,children:C?t(mi,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):t(v,{size:32,fill:O})}),e(Bp,{$gap:4,$justifyContent:"center",$slim:y,children:[e(ri,{$gap:10,$alignItems:"center",children:[t(br,{size:y?hr.XS:hr.S,weight:500,color:O,children:r}),l&&t(zd,{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(Hp,{$gap:8,$alignItems:"flex-end",$justifyContent:s?"space-between":"center",children:[!!d?.length&&t(ri,{$gap:8,children:d.map(e=>t(Wd,{...e,variant:Bd.Secondary,size:Hd.S},e["data-id"]??e.label))}),s]}),E&&t(jp,{children:t(E,{size:24,fill:T})})]})},Gp=r.div`
|
|
922
922
|
display: flex;
|
|
923
923
|
flex-direction: column;
|
|
924
924
|
width: 100%;
|
|
925
925
|
border-radius: 12px;
|
|
926
926
|
overflow: hidden;
|
|
927
|
-
`,
|
|
927
|
+
`,Xp=r.div`
|
|
928
928
|
display: flex;
|
|
929
929
|
flex-direction: column;
|
|
930
930
|
gap: 8px;
|
|
931
931
|
padding: 8px 12px 16px 12px;
|
|
932
932
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
933
|
-
`,
|
|
933
|
+
`,Vp=r.div`
|
|
934
934
|
display: flex;
|
|
935
935
|
align-items: center;
|
|
936
936
|
gap: 8px;
|
|
937
|
-
`,
|
|
937
|
+
`,Kp=r.div`
|
|
938
938
|
display: flex;
|
|
939
939
|
align-items: center;
|
|
940
940
|
justify-content: center;
|
|
941
941
|
flex-shrink: 0;
|
|
942
942
|
width: 18px;
|
|
943
943
|
height: 18px;
|
|
944
|
-
`,
|
|
944
|
+
`,Yp=({conditions:n,title:r,subTitle:o})=>{const a=i(),[s,l]=Ut(!1),c=Bt(()=>l(e=>!e),[]),d=Ht(()=>Pi(n),[n]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Ht(()=>io(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]),$=Ht(()=>`${p?u.length:g?h.length:d.length}/${d.length}`,[p,u.length,g,h.length,d.length]);return e(Gp,{children:[t(Wp,{status:b,invertColors:!0,title:v,subTitle:E,badgeLabel:$,loading:y,isExtended:s,toggleExtended:c}),s&&t(Xp,{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:fi(c,a),u=n===Tn.Error?ko(a,Tn.Error,"500"):n===Tn.Warning?ko(a,Tn.Warning,"500"):a.v2.colors.white[500],p=[r,i||o].filter(Boolean).join(" - ");return e(Vp,{children:[t(Kp,{children:l||!d?t(mi,{withSpinnerOld:!0,scaleSpinnerOld:.8}):t(d,{size:18})}),t(br,{size:hr.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})},Jp=r.div`
|
|
945
945
|
width: ${({$orientation:e,$thickness:t,$length:n})=>e===gn.Vertical?`${t}px`:n||"100%"};
|
|
946
946
|
height: ${({$orientation:e,$thickness:t,$length:n})=>e===gn.Horizontal?`${t}px`:n||"100%"};
|
|
947
947
|
margin: ${({$orientation:e,$margin:t})=>t||(e===gn.Horizontal?"8px 0":"0 8px")};
|
|
948
|
-
background-color: ${({$type:e,theme:t})=>(e?
|
|
948
|
+
background-color: ${({$type:e,theme:t})=>(e?ko(t,e):t.v2.colors.grey[400])+qd["050"]};
|
|
949
949
|
opacity: ${({$opacity:e})=>e||1};
|
|
950
|
-
`,
|
|
950
|
+
`,qp=({orientation:e=gn.Horizontal,type:n,thickness:r=1,length:o,margin:i,opacity:a})=>t(Jp,{$orientation:e,$type:n,$thickness:r,$length:o,$margin:i,$opacity:a});var Qp,Zp,eh;(e=>{e.Default="default",e.SuccessError="successError"})(Qp||(Qp={})),(e=>{e.S="small",e.L="large"})(Zp||(Zp={})),(e=>{e.Left="left",e.Right="right"})(eh||(eh={}));const th=r.div`
|
|
951
951
|
display: flex;
|
|
952
952
|
align-items: center;
|
|
953
953
|
gap: ${({$gap:e})=>e}px;
|
|
954
|
-
`,
|
|
954
|
+
`,nh=r.div`
|
|
955
955
|
position: relative;
|
|
956
956
|
display: flex;
|
|
957
957
|
align-items: center;
|
|
@@ -962,11 +962,11 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
962
962
|
height: ${({$size:e})=>e}px;
|
|
963
963
|
padding: ${4}px;
|
|
964
964
|
border-radius: ${({$size:e})=>2*e}px;
|
|
965
|
-
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
|
|
965
|
+
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 Qp.SuccessError:return o?i.v2.colors.green[500]:i.v2.colors.red[500];case Qp.Default:default:return o?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
|
|
966
966
|
|
|
967
967
|
border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
|
|
968
968
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
969
|
-
`,
|
|
969
|
+
`,rh=r.div`
|
|
970
970
|
position: absolute;
|
|
971
971
|
top: 50%;
|
|
972
972
|
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
@@ -976,17 +976,17 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
976
976
|
border-radius: 100%;
|
|
977
977
|
background-color: ${({$color:e})=>e};
|
|
978
978
|
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)"};
|
|
979
|
-
`,
|
|
979
|
+
`,oh=({variant:r=Qp.Default,size:o=Zp.L,name:a,label:s,labelAlign:l=eh.Right,labelColor:c,tooltip:d,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=vt,offIcon:y=St,onBgColor:b,offBgColor:v,errorMessage:E,warnMessage:$,helpMessage:S})=>{const C=i(),x=g?C.v2.colors.grey[400]:C.v2.colors.white[500],w=o===Zp.S?10:16,T=c||C.v2.colors.silver[200],O=o===Zp.S?hr.XXXS:hr.XS,N=o===Zp.S?8:12;return e(oi,{$gap:4,children:[e(ri,{$justifyContent:"space-between",children:[e(th,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:N,children:[s&&l===eh.Left&&t(br,{color:T,size:O,nowrap:!0,children:s}),e(nh,{$onBgColor:b,$offBgColor:v,$variant:r,$size:w,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[t(rh,{$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===eh.Right&&t(br,{color:T,size:O,nowrap:!0,children:s})]}),t(vu,{tooltip:d,badge:u})]}),t(Eu,{errorMessage:E,warnMessage:$,helpMessage:S})]})},ih=r.div`
|
|
980
980
|
display: flex;
|
|
981
981
|
flex-direction: ${({$direction:e})=>e===gn.Horizontal?"row":"column"};
|
|
982
982
|
gap: ${({$direction:e})=>e===gn.Horizontal?16:8}px;
|
|
983
|
-
`,
|
|
983
|
+
`,ah=({direction:n=gn.Vertical,title:r,size:o,disabled:i,options:a,values:s,setValues:l})=>{const c=o===Zp.S?hr.XS:hr.S;return e(ih,{$direction:n,children:[r&&t(br,{size:c,children:r}),a.map(e=>t(oh,{...e,labelAlign:eh.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}`))]})},sh=r.div`
|
|
984
984
|
display: flex;
|
|
985
985
|
align-items: center;
|
|
986
986
|
justify-content: space-between;
|
|
987
987
|
width: 100%;
|
|
988
988
|
overflow: hidden;
|
|
989
|
-
`,
|
|
989
|
+
`,lh=r.div`
|
|
990
990
|
display: flex;
|
|
991
991
|
align-items: center;
|
|
992
992
|
gap: 16px;
|
|
@@ -994,7 +994,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
994
994
|
min-width: 0;
|
|
995
995
|
flex: 1;
|
|
996
996
|
overflow: hidden;
|
|
997
|
-
`,
|
|
997
|
+
`,ch=r.div`
|
|
998
998
|
display: flex;
|
|
999
999
|
align-items: center;
|
|
1000
1000
|
justify-content: center;
|
|
@@ -1003,23 +1003,23 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1003
1003
|
height: 36px;
|
|
1004
1004
|
border-radius: 8px;
|
|
1005
1005
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1006
|
-
`,
|
|
1006
|
+
`,dh=r.img`
|
|
1007
1007
|
width: 24px;
|
|
1008
1008
|
height: 24px;
|
|
1009
|
-
`,
|
|
1009
|
+
`,uh=r.div`
|
|
1010
1010
|
display: flex;
|
|
1011
1011
|
align-items: center;
|
|
1012
1012
|
gap: 16px;
|
|
1013
1013
|
flex-shrink: 0;
|
|
1014
|
-
`,
|
|
1014
|
+
`,ph=({icon:n,iconSrc:r,title:o,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>e(sh,{children:[e(lh,{children:[n?t(ch,{children:t(n,{size:24})}):r?t(ch,{children:t(dh,{src:r,alt:o||"icon"})}):null,(o||i?.length||a)&&e(oi,{$gap:6,children:[(o||i?.length)&&e(ri,{$gap:16,children:[o&&t(br,{size:hr.S,weight:500,children:o}),i?.length&&t(ri,{$gap:4,children:i?.map((e,n)=>t(zd,{...e},`${e.label}-${n}`))})]}),a&&t(br,{size:hr.XXS,children:a})]})]}),e(uh,{children:[s&&t(oh,{...s}),l?.length?t(Fu,{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(ud,{"data-id":"drawer-close",icon:St,size:cd.M,onClick:c,disabled:d})]})]}),hh=r.div`
|
|
1015
1015
|
position: relative;
|
|
1016
1016
|
&.animated {
|
|
1017
1017
|
overflow: hidden;
|
|
1018
1018
|
padding-bottom: 1px;
|
|
1019
1019
|
border-radius: 8px;
|
|
1020
|
-
animation: ${({$isLeaving:e})=>e?
|
|
1020
|
+
animation: ${({$isLeaving:e})=>e?Zd.out.bottom:Zd.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
1021
1021
|
}
|
|
1022
|
-
`,
|
|
1022
|
+
`,gh=r.div`
|
|
1023
1023
|
position: absolute;
|
|
1024
1024
|
bottom: -1px;
|
|
1025
1025
|
left: 0;
|
|
@@ -1027,9 +1027,9 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1027
1027
|
width: 100%;
|
|
1028
1028
|
height: 100%;
|
|
1029
1029
|
border-radius: 8px;
|
|
1030
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1031
|
-
animation: ${
|
|
1032
|
-
`,
|
|
1030
|
+
background-color: ${({theme:e,$status:t})=>ko(e,t,t===Tn.Default?"300":t===Tn.Info?"400":"500")};
|
|
1031
|
+
animation: ${eu.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
1032
|
+
`,mh=r.div`
|
|
1033
1033
|
display: flex;
|
|
1034
1034
|
align-items: center;
|
|
1035
1035
|
gap: 10px;
|
|
@@ -1038,37 +1038,37 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1038
1038
|
`}
|
|
1039
1039
|
padding: 8px 12px 8px 8px;
|
|
1040
1040
|
border-radius: 8px;
|
|
1041
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1042
|
-
`,
|
|
1041
|
+
background-color: ${({theme:e,$status:t})=>ko(e,t,[Tn.Info,Tn.Warning].includes(t)?"1000":"900")};
|
|
1042
|
+
`,fh=r.div`
|
|
1043
1043
|
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1044
1044
|
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1045
1045
|
display: flex;
|
|
1046
1046
|
align-items: center;
|
|
1047
1047
|
justify-content: center;
|
|
1048
1048
|
border-radius: 6px;
|
|
1049
|
-
background-color: ${({theme:e,$status:t})=>
|
|
1050
|
-
`,
|
|
1049
|
+
background-color: ${({theme:e,$status:t})=>ko(e,t,[Tn.Info].includes(t)?"900":"800")};
|
|
1050
|
+
`,yh=r.div`
|
|
1051
1051
|
margin-left: auto;
|
|
1052
1052
|
display: flex;
|
|
1053
1053
|
align-items: center;
|
|
1054
1054
|
gap: 4px;
|
|
1055
|
-
`,
|
|
1055
|
+
`,bh=r.div`
|
|
1056
1056
|
margin-right: 8px;
|
|
1057
1057
|
cursor: pointer;
|
|
1058
1058
|
&:hover {
|
|
1059
1059
|
transform: scale(1.2);
|
|
1060
1060
|
}
|
|
1061
|
-
`,
|
|
1061
|
+
`,vh=({status:n,message:r,action:o,fullWidth:a,maxWidth:s,smallIcon:l,onClose:c,duration:d=5e3,zIndex:u})=>{const p=i(),h=fi(n,p),g=ko(p,n,n===Tn.Default?"300":n===Tn.Info?"400":"500"),[m,f]=Ut(!1),y=jt(null),b=jt(null),v=d/10,E=d-v,$=e=>{c&&(y.current&&clearTimeout(y.current),f(!0),setTimeout(()=>c({asSeen:e?.asSeen}),v))};return zt(()=>{if(c)return y.current=setTimeout(()=>$({asSeen:!1}),E),()=>{y.current&&clearTimeout(y.current)}},[d]),e(hh,{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(()=>$({asSeen:!1}),e),b.current.style.animationPlayState="running"}},style:{zIndex:u,maxWidth:s},children:[e(mh,{$status:n,$fullWidth:a,children:[t("div",{children:t(fh,{$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(yh,{children:[o&&t(bh,{"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(ud,{"data-id":"note-close",icon:St,size:cd.XS,onClick:()=>$({asSeen:!0})})]})]}),c&&t(gh,{ref:b,$status:n,$duration:d})]})},Eh=r.div`
|
|
1062
1062
|
display: flex;
|
|
1063
1063
|
align-items: center;
|
|
1064
1064
|
gap: 8px;
|
|
1065
1065
|
padding: 4px 12px;
|
|
1066
|
-
|
|
1066
|
+
`,$h=r.div`
|
|
1067
1067
|
flex: 1;
|
|
1068
|
-
`,
|
|
1068
|
+
`,Sh=r.div`
|
|
1069
1069
|
min-width: 150px;
|
|
1070
1070
|
width: fit-content;
|
|
1071
|
-
`,
|
|
1071
|
+
`,Ch=({note:n,actions:r,children:o})=>o?t(Eh,{children:o}):e(Eh,{children:[n&&t(vh,{...n}),t($h,{}),r?.map((e,n)=>t(Sh,{children:t(Wd,{fullWidth:!0,...e})},e["data-id"]||`drawer-footer-button-${n}`))]}),xh=r.div`
|
|
1072
1072
|
position: fixed;
|
|
1073
1073
|
top: 0;
|
|
1074
1074
|
bottom: 0;
|
|
@@ -1088,16 +1088,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1088
1088
|
overflow: hidden;
|
|
1089
1089
|
|
|
1090
1090
|
${({$disableAnimation:e,$position:t})=>!e&&o`
|
|
1091
|
-
animation-name: ${
|
|
1091
|
+
animation-name: ${Zd.in[t]};
|
|
1092
1092
|
`}
|
|
1093
|
-
`,
|
|
1093
|
+
`,wh=r.div`
|
|
1094
1094
|
display: flex;
|
|
1095
1095
|
flex-direction: column;
|
|
1096
1096
|
gap: 12px;
|
|
1097
1097
|
|
|
1098
1098
|
height: calc(100% - ${56}px);
|
|
1099
1099
|
overflow-y: auto;
|
|
1100
|
-
`,
|
|
1100
|
+
`,Th=({isOpen:r,hideOverlay:o=!1,disableAnimation:i=!1,position:a="right",width:s="600px",minWidth:l,header:c,footer:d,children:u})=>(sd(r),r?Yt(e(n,{children:[!o&&t(si,{onClick:c?.onCloseDisabled?void 0:c?.onClose}),e(xh,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[c&&t(ph,{...c}),t(wh,{children:u}),d&&t(Ch,{...d})]})]}),document.body):null),Oh=({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(Fu,{withMultiSelect:o,withSearch:i,fullWidth:!0,alignX:Ou.Left,items:e,selectedIds:n,setSelectedIds:r,children:({ChevronIcon:e,handleClick:n})=>t(sp,{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})})},Nh=({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(Wd,{variant:Bd.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},Ah=({children:e})=>t(en,{FallbackComponent:({error:e,...n})=>t(Jd,{children:t(Nh,{...n,error:e})}),children:e}),Ih=r.header`
|
|
1101
1101
|
position: relative;
|
|
1102
1102
|
width: 100%;
|
|
1103
1103
|
padding: 12px 18px;
|
|
@@ -1105,12 +1105,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1105
1105
|
display: flex;
|
|
1106
1106
|
align-items: center;
|
|
1107
1107
|
justify-content: space-between;
|
|
1108
|
-
`,
|
|
1108
|
+
`,_h=r(ri)`
|
|
1109
1109
|
position: absolute;
|
|
1110
1110
|
left: 50%;
|
|
1111
1111
|
transform: translateX(-50%);
|
|
1112
1112
|
gap: 16px;
|
|
1113
|
-
`,
|
|
1113
|
+
`,Rh=({left:n=[],center:r=[],right:o=[]})=>e(Ih,{children:[t(ri,{$gap:16,children:n}),t(_h,{children:r}),t(ri,{$gap:16,children:o})]}),Dh=r.div`
|
|
1114
1114
|
display: flex;
|
|
1115
1115
|
align-items: center;
|
|
1116
1116
|
gap: 2px;
|
|
@@ -1125,7 +1125,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1125
1125
|
left: ${({$left:e})=>e||"unset"};
|
|
1126
1126
|
top: 50%;
|
|
1127
1127
|
transform: translateY(-50%);
|
|
1128
|
-
`,
|
|
1128
|
+
`,kh=({isOpen:e,actions:n,positionRight:r,positionLeft:o})=>e?t(Dh,{$right:r,$left:o,children:n.map(e=>{if(!e)return null;const{tooltip:n,...r}=e;return t(Md,{text:n||"",children:t(Wd,{...r,variant:Bd.Secondary,size:Hd.S})},r.id)})}):null,Lh=r.div`
|
|
1129
1129
|
display: flex;
|
|
1130
1130
|
align-items: center;
|
|
1131
1131
|
justify-content: center;
|
|
@@ -1133,32 +1133,32 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1133
1133
|
height: ${({$size:e,$padding:t})=>e+t}px;
|
|
1134
1134
|
aspect-ratio: 1 / 1;
|
|
1135
1135
|
border-radius: 8px;
|
|
1136
|
-
background-color: ${({theme:e,$noBackground:t,$status:n})=>t?"transparent":n?
|
|
1137
|
-
`,
|
|
1136
|
+
background-color: ${({theme:e,$noBackground:t,$status:n})=>t?"transparent":n?ko(e,n,n===Tn.Warning?"1000":"900"):e.v2.colors.silver[800]};
|
|
1137
|
+
`,Ph=({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=Oo(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(Lh,{$size:s,$padding:l,$status:a,children:e(oi,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[t(ri,{$gap:h,$alignItems:"center",$justifyContent:"center",children:i.map((e,n)=>t(e,{size:d},`top-${n}`))}),u&&e(ri,{$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(Lh,{$size:s,$padding:l,$status:a,children:h?t(h,{size:u}):t("img",{src:o,alt:"",width:u,height:u})})})},Fh=r.div`
|
|
1138
1138
|
width: 100%;
|
|
1139
1139
|
border-radius: 8px;
|
|
1140
1140
|
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1141
1141
|
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
1142
|
-
`,
|
|
1142
|
+
`,Mh=({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(Fh,{$plain:m,children:e(oi,{"data-id":o,$gap:6,children:[t(vu,{label:a,tooltip:s,required:c,badge:l}),t(oi,{$gap:8,children:E.map((o,i)=>{const a=i===E.length-1;return e(ri,{$gap:8,$alignItems:"center",children:[t(sp,{width:"100%",autoFocus:Ai(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(Wd,{leftIcon:_t,variant:Bd.Secondary,size:Hd.S,disabled:b,onClick:()=>(()=>{const e=n.length?Gr(n):[Gr("")];e.push(""),r(e)})()}),t(Wd,{leftIcon:v?Rt:()=>t(Rt,{fill:f.v2.colors.red[500]}),variant:Bd.Secondary,size:Hd.S,disabled:v,onClick:()=>(e=>{const t=[...n||[]].filter((t,n)=>n!==e);t.length||t.push(""),r(t)})(i)})]},`input-list-${i}`)})}),t(Eu,{errorMessage:d,warnMessage:u,helpMessage:p})]})})};var Uh;(e=>{e.S="small",e.L="large"})(Uh||(Uh={}));const zh=r.div`
|
|
1143
1143
|
width: fit-content;
|
|
1144
1144
|
display: flex;
|
|
1145
1145
|
align-items: center;
|
|
1146
1146
|
gap: 8px;
|
|
1147
1147
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1148
|
-
`,
|
|
1149
|
-
width: ${({$size:e})=>e===
|
|
1150
|
-
height: ${({$size:e})=>e===
|
|
1148
|
+
`,Bh=r.div`
|
|
1149
|
+
width: ${({$size:e})=>e===Uh.S?"16px":"20px"};
|
|
1150
|
+
height: ${({$size:e})=>e===Uh.S?"16px":"20px"};
|
|
1151
1151
|
display: flex;
|
|
1152
1152
|
align-items: center;
|
|
1153
1153
|
justify-content: center;
|
|
1154
1154
|
border-radius: 100%;
|
|
1155
1155
|
border: 1px solid ${({$borderColor:e})=>e};
|
|
1156
1156
|
background-color: ${({$backgroundColor:e})=>e};
|
|
1157
|
-
`,
|
|
1157
|
+
`,Hh=({"data-id":n,label:r,value:o,onChange:a,disabled:s,size:l=Uh.L})=>{const c=i(),[d,u]=Ut(!1),p=o,h=l===Uh.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(zh,{"data-id":n??"radio"+(r?`-${r}`:""),onClick:e=>{e.stopPropagation(),s||a(!o)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t(Bh,{$size:l,$borderColor:m,$backgroundColor:f,children:o?t(Dt,{size:h,fill:g}):null}),r&&t(br,{size:l===Uh.S?hr.XXS:hr.XS,children:r})]})},jh=r.div`
|
|
1158
1158
|
display: flex;
|
|
1159
1159
|
flex-direction: ${({$flexDirection:e})=>e};
|
|
1160
1160
|
gap: ${({$gap:e})=>e}px;
|
|
1161
|
-
`,
|
|
1161
|
+
`,Wh=({label:n,direction:r,disabled:o,size:i,options:a,values:s,setValues:l})=>e(jh,{$flexDirection:r===gn.Horizontal?"row":"column",$gap:r===gn.Horizontal?16:8,children:[n&&t(br,{children:n}),a.map(e=>t(Hh,{...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}`))]}),Gh=({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:$}=n,S=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!=S?String(S):"",n=Object.fromEntries((y||[]).map(t=>[t.id,t.id===e]));return t(Wh,{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(S)?S:null!=S&&""!==S?[String(S)]:[],r=y?.filter(e=>n.includes(e.id)).map(e=>e.id)||[];return t(Oh,{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&&Ai(S),d=t(sp,{name:p,label:C,placeholder:x,autoFocus:o,type:g,min:E,max:$,value:S,onChange:({target:{value:e}})=>s(p,e,i),disabled:c,hasError:!!l,helpMessage:v,width:n.withRegexTester?"100%":void 0});return n.withRegexTester?e(ri,{$gap:8,$alignItems:"center",$width:"100%",children:[t("div",{style:{flex:1,minWidth:0},children:d}),t(Wd,{variant:Bd.Secondary,size:Hd.S,label:"Test",disabled:c||!String(S??"").trim(),onClick:()=>u?.(String(S??""))})]}):d}},Xh=r.div`
|
|
1162
1162
|
width: 100%;
|
|
1163
1163
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1164
1164
|
border-radius: 8px;
|
|
@@ -1166,28 +1166,28 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1166
1166
|
display: flex;
|
|
1167
1167
|
flex-direction: column;
|
|
1168
1168
|
gap: 8px;
|
|
1169
|
-
`,
|
|
1169
|
+
`,Vh=r.div`
|
|
1170
1170
|
flex: 1;
|
|
1171
1171
|
min-width: 0;
|
|
1172
|
-
`,
|
|
1172
|
+
`,Kh=r.div`
|
|
1173
1173
|
padding-top: 24px;
|
|
1174
|
-
`,
|
|
1174
|
+
`,Yh=({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)],$=(f?E[0]?.[f]:"")||v,S=(e,t,n)=>{o(E.map((r,o)=>o===e?{...r,[t]:n}:r))},C=()=>o([...E,b($)]),x=y.find(e=>e.id===$);return e(oi,{"data-id":a,$gap:16,$width:"100%",children:[s&&t(vu,{label:s,tooltip:l,required:c}),m&&t(uu,{"data-id":`${a}-mode`,size:iu.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:$,setSelected:e=>!d&&(e=>o([b(e)]))(String(e))}),e(oi,{$gap:8,$width:"100%",children:[E.map((r,i)=>{const s=i===E.length-1,l=f?{...r,[f]:$}: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(Xh,{"data-id":`${a}-card-${i}`,children:[e(ri,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[e(oi,{$gap:10,children:[T&&t(vu,{label:T}),m.map(e=>t(ri,{$gap:24,children:(e.options??[]).map(n=>t(Hh,{size:Uh.L,label:n.label,value:String(r[e.keyName]??"")===String(n.id),disabled:d,onChange:t=>t&&S(i,e.keyName,n.id)},`${a}-card-${i}-${e.keyName}-${n.id}`))},`${a}-card-${i}-${e.keyName}`))]}),e(ri,{$gap:4,$alignItems:"center",children:[v&&t(Wd,{"data-id":`${a}-card-${i}-test-regex`,label:"Test Regex",variant:Bd.Secondary,size:Hd.S,disabled:d||!String(r[v.keyName]??"").trim(),onClick:()=>p?.(String(r[v.keyName]??""))}),t(Wd,{"data-id":`${a}-card-${i}-delete`,leftIcon:d?Rt:()=>t(Rt,{fill:g.v2.colors.red[500]}),variant:Bd.Secondary,size:Hd.S,disabled:d,onClick:()=>(e=>{const t=E.filter((t,n)=>n!==e);o(t.length?t:[b($)])})(i)}),s&&t(Wd,{"data-id":`${a}-card-${i}-add`,leftIcon:_t,variant:Bd.Secondary,size:Hd.S,disabled:d,onClick:C})]})]}),w.map((n,o)=>t(ri,{$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(Mt,{children:["arrow"===n.separator&&o>0&&t(Kh,{children:t(kt,{size:24,fill:g.v2.colors.silver[200]})}),t(Vh,{children:t(sp,{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=>S(i,n.keyName,e.target.value)})})]},`${a}-card-${i}-${n.keyName}`)})},`${a}-card-${i}-row-${o}`))]},`${a}-card-${i}`)}),t(Eu,{errorMessage:u})]})]})},Jh=r.div`
|
|
1175
1175
|
width: 100%;
|
|
1176
1176
|
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1177
1177
|
border-radius: 8px;
|
|
1178
1178
|
padding: 4px 8px;
|
|
1179
|
-
`,
|
|
1179
|
+
`,qh=r.table`
|
|
1180
1180
|
width: 100%;
|
|
1181
1181
|
border-collapse: separate;
|
|
1182
1182
|
border-spacing: 0 8px;
|
|
1183
|
-
`,
|
|
1183
|
+
`,Qh=r.td`
|
|
1184
1184
|
padding: 0 8px 0 0;
|
|
1185
1185
|
vertical-align: top;
|
|
1186
|
-
`,
|
|
1186
|
+
`,Zh=r.td`
|
|
1187
1187
|
width: 72px;
|
|
1188
1188
|
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1189
1189
|
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
1190
|
-
`,
|
|
1190
|
+
`,eg=({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?Gr(r):[Gr(b)];i[n][e]=t,o(i)},E=r.length?r:[b];return t(Jh,{children:e(oi,{"data-id":a,$gap:0,children:[t(vu,{label:s,tooltip:l,required:d,badge:c}),t(qh,{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(Mt,{children:[l.length>1&&a>0?t("tr",{children:t(Qh,{colSpan:d+1})}):null,l.map((l,g)=>{const m=c[g],$=m?22:0;return e("tr",{children:[l.map((n,r)=>{if(n.renderCondition&&!n.renderCondition(i))return null;const o=r===l.length-1,s=0===g&&o?d-l.length+1:1;return t(Qh,{colSpan:s>1?s:void 0,children:e(oi,{$gap:6,children:[m&&(n.label?t(vu,{label:n.label,tooltip:n.tooltip}):t(vu,{label:"\\u00A0"})),t(Gh,{col:n,colIdx:r,row:i,rowIdx:a,rowsLength:E.length,handleChange:v,disabled:u,errorMessage:p,hideLabel:m,onTestRegex:f})]})},`input-table-row-${a}-col-${g}-${r}`)}),0===g&&t(Zh,{$topOffset:$,$center:h,children:e(ri,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&t(Wd,{leftIcon:_t,variant:Bd.Secondary,size:Hd.S,disabled:u,onClick:()=>(()=>{const e=r.length?Gr(r):[Gr(b)],t=Gr(b),i=e[e.length-1];n.forEach(e=>{"dropdown"!==e.componentType&&"multi-dropdown"!==e.componentType||null!=t[e.keyName]&&""!==t[e.keyName]||null!=i?.[e.keyName]&&""!==i[e.keyName]&&(t[e.keyName]=Gr(i[e.keyName]))}),e.push(t),o(e)})()}),t(Wd,{leftIcon:u?Rt:()=>t(Rt,{fill:y.v2.colors.red[500]}),variant:Bd.Secondary,size:Hd.S,disabled:u,onClick:()=>(e=>{const t=r.filter((t,n)=>n!==e);t.length||t.push(Gr(b)),o(t)})(a)})]})})]},`input-table-matrix-${a}-${g}`)})]},`input-table-row-${a}`)})})}),t(Eu,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},tg=r.div`
|
|
1191
1191
|
display: flex;
|
|
1192
1192
|
align-items: center;
|
|
1193
1193
|
justify-content: space-between;
|
|
@@ -1195,15 +1195,15 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1195
1195
|
|
|
1196
1196
|
padding: 18px 16px;
|
|
1197
1197
|
border-radius: 18px;
|
|
1198
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]+
|
|
1198
|
+
background-color: ${({theme:e})=>e.v2.colors.black[500]+qd["095"]};
|
|
1199
1199
|
box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
|
|
1200
1200
|
|
|
1201
1201
|
position: fixed;
|
|
1202
1202
|
bottom: 0;
|
|
1203
1203
|
left: 50%;
|
|
1204
1204
|
z-index: ${({theme:e})=>e.v2.zIndex.island};
|
|
1205
|
-
animation-name: ${
|
|
1206
|
-
`,
|
|
1205
|
+
animation-name: ${Zd.in.center};
|
|
1206
|
+
`,ng=({isOpen:n,onClose:r,richTitle:o,actions:i})=>n?e(tg,{children:[t(Bu,{...o}),t(Uu,{onAnyClick:r,actions:i})]}):null,rg=r.div`
|
|
1207
1207
|
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
1208
1208
|
top: 50%;
|
|
1209
1209
|
left: 50%;
|
|
@@ -1224,7 +1224,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1224
1224
|
will-change: transform;
|
|
1225
1225
|
contain: layout paint;
|
|
1226
1226
|
|
|
1227
|
-
animation-name: ${({$closing:e})=>e?
|
|
1227
|
+
animation-name: ${({$closing:e})=>e?Zd.out.center:Zd.in.center};
|
|
1228
1228
|
/* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
|
|
1229
1229
|
the global 300ms default which pairs with the fade-in for a soft entrance. */
|
|
1230
1230
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
@@ -1233,9 +1233,9 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1233
1233
|
/* Block hover/click work on form children mid-close so their transitions
|
|
1234
1234
|
don't compete with the slide-out. */
|
|
1235
1235
|
${({$closing:e})=>e&&"pointer-events: none;"}
|
|
1236
|
-
`,
|
|
1236
|
+
`,og=r(si)`
|
|
1237
1237
|
will-change: opacity;
|
|
1238
|
-
animation-name: ${({$closing:e})=>e?
|
|
1238
|
+
animation-name: ${({$closing:e})=>e?ru.out:ru.in};
|
|
1239
1239
|
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1240
1240
|
|
|
1241
1241
|
/* The blurred backdrop is the most expensive thing on screen during the close
|
|
@@ -1243,18 +1243,18 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1243
1243
|
recomposite per frame. Drop the blur while closing; visually identical
|
|
1244
1244
|
because the overlay is fading to 0. */
|
|
1245
1245
|
${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
|
|
1246
|
-
`,
|
|
1246
|
+
`,ig=r.div`
|
|
1247
1247
|
position: relative;
|
|
1248
|
-
`,
|
|
1248
|
+
`,ag=r.div`
|
|
1249
1249
|
position: absolute;
|
|
1250
1250
|
top: 16px;
|
|
1251
1251
|
left: 16px;
|
|
1252
|
-
`,
|
|
1252
|
+
`,sg=({isOpen:r,hideOverlay:o=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,u]=Ut(r),[p,h]=Ut(!1);if(zt(()=>{r?(u(!0),h(!1)):d&&h(!0)},[r]),sd(d),!d)return null;const g=e(n,{children:[!o&&t(og,{$relativeToParent:i,$closing:p,onClick:p?void 0:s}),t(rg,{"data-id":"modal",$relativeToParent:i,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:e(ig,{children:[a&&t(ag,{children:t(ud,{icon:e=>t(At,{rotate:-90,...e}),size:cd.L,onClick:a})}),c]})})]});return i?g:Yt(g,document.body)},lg=r.div`
|
|
1253
1253
|
position: relative;
|
|
1254
1254
|
width: ${64}px;
|
|
1255
1255
|
height: ${({$height:e})=>e};
|
|
1256
1256
|
flex-shrink: 0;
|
|
1257
|
-
`,
|
|
1257
|
+
`,cg=r.aside`
|
|
1258
1258
|
position: absolute;
|
|
1259
1259
|
top: 0;
|
|
1260
1260
|
left: 0;
|
|
@@ -1274,7 +1274,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1274
1274
|
transition:
|
|
1275
1275
|
width 200ms ease,
|
|
1276
1276
|
padding 200ms ease;
|
|
1277
|
-
`,
|
|
1277
|
+
`,dg=r.button`
|
|
1278
1278
|
display: flex;
|
|
1279
1279
|
align-items: center;
|
|
1280
1280
|
width: 100%;
|
|
@@ -1294,20 +1294,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1294
1294
|
&:active {
|
|
1295
1295
|
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
|
|
1296
1296
|
}
|
|
1297
|
-
`,
|
|
1297
|
+
`,ug=r.div`
|
|
1298
1298
|
width: ${40}px;
|
|
1299
1299
|
height: ${40}px;
|
|
1300
1300
|
display: flex;
|
|
1301
1301
|
align-items: center;
|
|
1302
1302
|
justify-content: center;
|
|
1303
1303
|
flex-shrink: 0;
|
|
1304
|
-
`,
|
|
1304
|
+
`,pg=r.div`
|
|
1305
1305
|
flex: 1 1 0;
|
|
1306
1306
|
min-width: 0;
|
|
1307
1307
|
overflow: hidden;
|
|
1308
1308
|
padding-right: 12px;
|
|
1309
1309
|
pointer-events: none;
|
|
1310
|
-
`,
|
|
1310
|
+
`,hg=({height:n,icons:r})=>{const o=i(),[a,s]=Ut(!1);return t(lg,{$height:n,children:t(cg,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:r.map(({id:n,label:r,selected:i,icon:s,onClick:l})=>e(dg,{$selected:i,onClick:l,"aria-label":r,title:a?void 0:r,children:[t(ug,{children:t(s,{size:24,fill:o.v2.colors.white[500]})}),a&&t(pg,{children:t(br,{size:hr.S,weight:500,color:gr.Primary,nowrap:!0,children:r})})]},n))})})},gg=r.div`
|
|
1311
1311
|
display: flex;
|
|
1312
1312
|
flex-direction: column;
|
|
1313
1313
|
gap: 16px;
|
|
@@ -1331,20 +1331,20 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1331
1331
|
}
|
|
1332
1332
|
`}
|
|
1333
1333
|
`}
|
|
1334
|
-
`,
|
|
1334
|
+
`,mg=r.div`
|
|
1335
1335
|
display: flex;
|
|
1336
1336
|
align-items: center;
|
|
1337
1337
|
gap: 16px;
|
|
1338
1338
|
width: 100%;
|
|
1339
|
-
`,
|
|
1339
|
+
`,fg=r.div`
|
|
1340
1340
|
display: flex;
|
|
1341
1341
|
flex-direction: column;
|
|
1342
1342
|
gap: 4px;
|
|
1343
1343
|
flex: 1;
|
|
1344
1344
|
min-width: 0;
|
|
1345
|
-
`,
|
|
1345
|
+
`,yg=r.div`
|
|
1346
1346
|
width: 100%;
|
|
1347
|
-
`,
|
|
1347
|
+
`,bg=({"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(gg,{"data-id":p,$selected:l,$disabled:d,onClick:h,children:[e(mg,{children:[t(Hh,{"data-id":`${p}-radio`,value:l,onChange:h,size:Uh.L,disabled:d}),e(fg,{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(yg,{children:a}),s&&t(yg,{children:s})]})},vg=r.div`
|
|
1348
1348
|
width: 100%;
|
|
1349
1349
|
height: 100%;
|
|
1350
1350
|
|
|
@@ -1352,7 +1352,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1352
1352
|
animation: none !important;
|
|
1353
1353
|
transition: none !important;
|
|
1354
1354
|
}
|
|
1355
|
-
|
|
1355
|
+
`,Eg=({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(vg,{children:p}):p},$g=r.div`
|
|
1356
1356
|
display: flex;
|
|
1357
1357
|
flex-direction: column;
|
|
1358
1358
|
gap: 16px;
|
|
@@ -1361,47 +1361,47 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1361
1361
|
${({$maxHeight:e})=>e&&`max-height: ${e};`}
|
|
1362
1362
|
width: 100%;
|
|
1363
1363
|
height: 100%;
|
|
1364
|
-
`,
|
|
1364
|
+
`,Sg=r.div`
|
|
1365
1365
|
display: flex;
|
|
1366
1366
|
align-items: center;
|
|
1367
1367
|
gap: 16px;
|
|
1368
|
-
`,
|
|
1368
|
+
`,Cg=r.div`
|
|
1369
1369
|
width: 50px;
|
|
1370
1370
|
height: 50px;
|
|
1371
1371
|
border-radius: 8px;
|
|
1372
1372
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1373
1373
|
background-size: 200% 100%;
|
|
1374
|
-
animation: ${
|
|
1375
|
-
`,
|
|
1374
|
+
animation: ${nu} 10s infinite linear;
|
|
1375
|
+
`,xg=r(oi)`
|
|
1376
1376
|
flex: 1;
|
|
1377
1377
|
gap: 12px;
|
|
1378
|
-
`,
|
|
1378
|
+
`,wg=r.div`
|
|
1379
1379
|
width: ${({$width:e})=>e};
|
|
1380
1380
|
height: 16px;
|
|
1381
1381
|
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
1382
1382
|
background-size: 200% 100%;
|
|
1383
|
-
animation: ${
|
|
1383
|
+
animation: ${nu} 1.5s infinite linear;
|
|
1384
1384
|
border-radius: 4px;
|
|
1385
|
-
`,
|
|
1385
|
+
`,Tg=({size:n=5,maxWidth:r,maxHeight:o})=>t($g,{$maxWidth:r,$maxHeight:o,children:[...Array(n)].map((n,r)=>e(Sg,{children:[t(Cg,{}),e(xg,{children:[t(wg,{$width:"80%"}),t(wg,{$width:"100%"})]})]},r))}),Og=({currentStep:n,data:r,gap:o=12})=>t(oi,{$gap:o,children:r.map(r=>{const o=r.step<n,i=r.step===n;return e(ri,{$gap:8,children:[o||r.forceDoneBadge?t(zd,{status:Tn.Success,label:"",leftIcon:vt}):t(zd,{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 Ng;(e=>{e.Data="data",e.Pretty="pretty"})(Ng||(Ng={}));const Ag=r.div`
|
|
1386
1386
|
${({$maxHeight:e})=>e?`\n height: ${e};\n flex: 0 0 auto;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n "}
|
|
1387
1387
|
width: 100%;
|
|
1388
1388
|
display: flex;
|
|
1389
1389
|
flex-direction: column;
|
|
1390
1390
|
overflow: hidden;
|
|
1391
|
-
`,
|
|
1391
|
+
`,Ig=r.div`
|
|
1392
1392
|
width: 100%;
|
|
1393
1393
|
flex: 1;
|
|
1394
1394
|
display: flex;
|
|
1395
1395
|
flex-direction: column;
|
|
1396
|
-
`,
|
|
1396
|
+
`,_g=r.div`
|
|
1397
1397
|
flex-shrink: 0;
|
|
1398
1398
|
position: relative;
|
|
1399
1399
|
z-index: 2;
|
|
1400
|
-
`,
|
|
1400
|
+
`,Rg=r.div`
|
|
1401
1401
|
position: relative;
|
|
1402
1402
|
display: flex;
|
|
1403
1403
|
width: 100%;
|
|
1404
|
-
`,
|
|
1404
|
+
`,Dg=r.div`
|
|
1405
1405
|
position: relative;
|
|
1406
1406
|
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1407
1407
|
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
|
|
@@ -1420,12 +1420,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1420
1420
|
|
|
1421
1421
|
${({$variant:e,$backgroundColor:t})=>{if(t)return o`
|
|
1422
1422
|
background-color: ${t};
|
|
1423
|
-
`;switch(e){case
|
|
1423
|
+
`;switch(e){case Ng.Data:return o`
|
|
1424
1424
|
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1425
|
-
`;case
|
|
1425
|
+
`;case Ng.Pretty:return o`
|
|
1426
1426
|
background-color: transparent;
|
|
1427
1427
|
`;default:return""}}}
|
|
1428
|
-
`,
|
|
1428
|
+
`,kg=r.div`
|
|
1429
1429
|
position: absolute;
|
|
1430
1430
|
top: 50%;
|
|
1431
1431
|
right: 0;
|
|
@@ -1433,7 +1433,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1433
1433
|
width: 1px;
|
|
1434
1434
|
height: 18px;
|
|
1435
1435
|
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1436
|
-
`,
|
|
1436
|
+
`,Lg=r.div`
|
|
1437
1437
|
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1438
1438
|
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
|
|
1439
1439
|
|
|
@@ -1468,16 +1468,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1468
1468
|
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
1469
1469
|
box-sizing: border-box;
|
|
1470
1470
|
|
|
1471
|
-
${({$variant:e,$selected:t,$highlighted:n,$hovered:r,$isLastRow:i,$isFirstCell:a,$isLastCell:s})=>{switch(e){case
|
|
1471
|
+
${({$variant:e,$selected:t,$highlighted:n,$hovered:r,$isLastRow:i,$isFirstCell:a,$isLastCell:s})=>{switch(e){case Ng.Data:return o`
|
|
1472
1472
|
border-bottom: ${({theme:e})=>i?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1473
1473
|
border-radius: ${i?a?"0 0 0 4px":s?"0 0 4px 0":"0":"0"};
|
|
1474
1474
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n||r?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
1475
|
-
`;case
|
|
1475
|
+
`;case Ng.Pretty:return o`
|
|
1476
1476
|
border: none;
|
|
1477
1477
|
border-radius: ${a?"12px 0 0 12px":s?"0 12px 12px 0":"0"};
|
|
1478
1478
|
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n||r?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1479
1479
|
`;default:return""}}}
|
|
1480
|
-
`,
|
|
1480
|
+
`,Pg=r.div`
|
|
1481
1481
|
position: absolute;
|
|
1482
1482
|
top: 0;
|
|
1483
1483
|
left: 0;
|
|
@@ -1486,18 +1486,18 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1486
1486
|
height: 0;
|
|
1487
1487
|
overflow: hidden;
|
|
1488
1488
|
white-space: nowrap;
|
|
1489
|
-
`,
|
|
1489
|
+
`,Fg=r.div`
|
|
1490
1490
|
display: inline-flex;
|
|
1491
1491
|
align-items: center;
|
|
1492
1492
|
padding: 18px 24px;
|
|
1493
1493
|
box-sizing: border-box;
|
|
1494
1494
|
white-space: nowrap;
|
|
1495
|
-
`,
|
|
1495
|
+
`,Mg=r.div`
|
|
1496
1496
|
display: inline-flex;
|
|
1497
1497
|
align-items: center;
|
|
1498
1498
|
gap: 4px;
|
|
1499
1499
|
white-space: nowrap;
|
|
1500
|
-
`,
|
|
1500
|
+
`,Ug=r.div`
|
|
1501
1501
|
width: 100%;
|
|
1502
1502
|
height: 100%;
|
|
1503
1503
|
display: flex;
|
|
@@ -1505,7 +1505,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1505
1505
|
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1506
1506
|
gap: 4px;
|
|
1507
1507
|
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1508
|
-
`,
|
|
1508
|
+
`,zg=({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]=Ut(null),f=Ht(()=>o.map((p,h)=>{const{cells:f,onClick:y,isSelected:b=!1,onSelect:v,onDeselect:E,hideCheckbox:$,checkboxDisabled:S,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(Rg,{children:[d&&t(Lg,{$variant:n,style:{flex:"0 0 68px"},...O(!0,!1),children:!$&&(C?t(Md,{text:C,children:t(xu,{value:b,disabled:S,onChange:()=>b?E?.():v?.()})}):t(xu,{value:b,disabled:S,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),$="right"===u?"flex-end":"center"===u?"center":"flex-start",S=y?.component?t(y.component,{}):s?t(br,{size:hr.XS,align:u,nowrap:!0,children:y?.rawValue||"-"}):t(Hu,{size:hr.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),C=t(ri,{$width:"100%",$justifyContent:$,children:S});return e(Lg,{$variant:n,$flex:p,$minWidth:g,$autoWidth:i.has(o),$resolvedWidth:a[o],...O(b,v),children:[s?t(Md,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:C}):C,E?t(kh,{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(Eg,{gap:n===Ng.Pretty?8:0,elements:f,scrollToIndex:p,scrollSignal:h})},Bg=({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(Wd,{variant:Bd.Text,size:Hd.S,leftIcon:()=>t(At,{fill:s,rotate:l}),onClick:()=>o(e)})},Hg=({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(Fu,{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})}})},jg=({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(Rg,{children:[h&&t(Dg,{$variant:n,$backgroundColor:r,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:t(xu,{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:$,minWidth:S,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(Hu,{size:hr.XS,align:C,nowrap:!0,fullWidth:!1,children:m});return e(Dg,{$variant:n,$backgroundColor:r,$flex:$,$minWidth:S,$isFirst:w,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[e(Ug,{$textAlign:C,children:[O?t(Md,{text:y||m,children:N}):N,!b&&t(Bg,{columnKey:g,sortDirection:l,sortByKey:c,onSort:d}),!v&&t(Hg,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:E})]}),!T&&n===Ng.Data&&t(kg,{})]},`column-${g}`)})]}),Wg=()=>{},Gg={},Xg=[],Vg=({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]=Ut(mn.Ascending),[E,$]=Ut(""),[S,C]=Ut({}),x=g??S,w=Bt(e=>{$(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]=Ut({}),L=Ht(()=>0===_.size?[]:l.filter(e=>_.has(e.key)).map(n=>{const r=[e(Mg,{children:[t(br,{size:hr.XS,align:n.textAlign,children:n.label}),!n.noSort&&t(Bg,{columnKey:n.key,sortDirection:mn.Ascending,sortByKey:"",onSort:Wg}),!n.noFilter&&t(Hg,{columnKey:n.key,filters:Gg,onFilter:Wg,rowsUnfiltered:Xg,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(Ag,{$maxHeight:r,children:[L.length>0&&t(Pg,{ref:R,"aria-hidden":!0,children:L.flatMap(({key:e,nodes:n})=>n.map((n,r)=>t(Fg,{"data-mw-key":e,children:n},`mw-${e}-${r}`)))}),e(Ig,{$variant:n,children:[!i&&t(_g,{children:t(jg,{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(zg,{variant:n,columns:l,rows:O,autoWidthColumnKeys:_,resolvedColumnWidths:D,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:f,scrollToIndex:N,scrollSignal:y}):t(ii,{$height:r,children:a?t(Tg,{size:3,maxHeight:r}):t(fu,{...s})})]})]})};var Kg;(e=>{e.Default="default",e.Purple="purple",e.Yellow="yellow",e.Blue="blue",e.Pink="pink",e.Green="green",e.Loader="loader"})(Kg||(Kg={}));const Yg=(e,t,n)=>{switch(t){case Kg.Purple:return e.v2.colors.purple[n?"300":"900"];case Kg.Yellow:return e.v2.colors.yellow[n?"300":"1000"];case Kg.Blue:return e.v2.colors.blue[n?"300":"1000"];case Kg.Pink:return e.v2.colors.red[n?"300":"1000"];case Kg.Green:return e.v2.colors.green[n?"300":"900"];case Kg.Loader:return e.v2.colors.grey[n?"600":"800"];default:return e.v2.colors.grey[n?"300":"500"]}},Jg=r.div`
|
|
1509
1509
|
display: flex;
|
|
1510
1510
|
align-items: center;
|
|
1511
1511
|
justify-content: center;
|
|
@@ -1524,16 +1524,16 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1524
1524
|
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
1525
1525
|
cursor: not-allowed;
|
|
1526
1526
|
`:o`
|
|
1527
|
-
background-color: ${({theme:e})=>
|
|
1527
|
+
background-color: ${({theme:e})=>Yg(e,t)};
|
|
1528
1528
|
${n&&o`
|
|
1529
1529
|
cursor: pointer;
|
|
1530
1530
|
&:hover,
|
|
1531
1531
|
&:active {
|
|
1532
|
-
border: 1px solid ${({theme:e})=>
|
|
1532
|
+
border: 1px solid ${({theme:e})=>Yg(e,t,!0)};
|
|
1533
1533
|
}
|
|
1534
1534
|
`}
|
|
1535
1535
|
`}
|
|
1536
|
-
`,
|
|
1536
|
+
`,qg=({variant:n=Kg.Default,label:r,leftIcon:o,rightIcon:a,onClick:s,disabled:l,flex:c})=>{const d=i(),u=l?d.v2.colors.grey[400]:n===Kg.Default?d.v2.colors.white[500]:Yg(d,n,!0),p=n===Kg.Loader;return e(Jg,{$variant:n,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:c,children:[o&&t(o,{fill:u,size:16}),p?t(mi,{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})]})},Qg=r.div`
|
|
1537
1537
|
padding: 6px 12px;
|
|
1538
1538
|
|
|
1539
1539
|
display: flex;
|
|
@@ -1551,7 +1551,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1551
1551
|
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1552
1552
|
}
|
|
1553
1553
|
`}
|
|
1554
|
-
`,
|
|
1554
|
+
`,Zg=r.textarea`
|
|
1555
1555
|
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
1556
1556
|
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
1557
1557
|
flex: 1;
|
|
@@ -1576,26 +1576,26 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
1576
1576
|
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
|
-
`,
|
|
1579
|
+
`,em=({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(oi,{$gap:6,children:[t(vu,{label:n,tooltip:o,required:r,badge:i}),t(Qg,{$disabled:p,$error:!!a,children:t(Zg,{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(Eu,{errorMessage:a,warnMessage:s,helpMessage:l})]})},tm=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],nm=r.div`
|
|
1580
1580
|
flex: 1;
|
|
1581
1581
|
min-width: 0;
|
|
1582
|
-
`,
|
|
1582
|
+
`,rm=r.div`
|
|
1583
1583
|
flex: 0 0 auto;
|
|
1584
1584
|
min-width: 140px;
|
|
1585
|
-
`,
|
|
1585
|
+
`,om=({name:n,label:r,tooltip:o,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:u=tm,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]),$=(e,t)=>{d(""!==e?`${e}${t}`:"")};return e(oi,{$width:y,$gap:6,children:[t(vu,{label:r,tooltip:o,required:s,badge:i}),e(ri,{$gap:8,$alignItems:"center",children:[t(nm,{children:t(sp,{name:n,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:v,onChange:e=>$(Bi(e.target.value),E)})}),t(rm,{children:t(Oh,{name:`${n}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[E],setValues:e=>$(v,e[0]||E)})})]}),t(Eu,{errorMessage:h,warnMessage:g,helpMessage:m})]})},im=r.div`
|
|
1586
1586
|
min-width: 500px;
|
|
1587
|
-
`,
|
|
1587
|
+
`,am=r.div`
|
|
1588
1588
|
display: flex;
|
|
1589
1589
|
flex-direction: column;
|
|
1590
1590
|
align-items: center;
|
|
1591
1591
|
gap: 16px;
|
|
1592
1592
|
padding: 24px;
|
|
1593
1593
|
width: 100%;
|
|
1594
|
-
`,
|
|
1594
|
+
`,sm=r.div`
|
|
1595
1595
|
display: flex;
|
|
1596
1596
|
justify-content: center;
|
|
1597
1597
|
gap: 16px;
|
|
1598
1598
|
padding: 16px 24px;
|
|
1599
1599
|
width: 100%;
|
|
1600
1600
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1601
|
-
`,
|
|
1601
|
+
`,lm=({visual:n,title:r,description:o,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>t(sg,{isOpen:i,onClose:a,...d,children:e(im,{children:[e(am,{children:[n&&t(n,{}),t(br,{size:hr.M,weight:500,color:gr.Primary,children:r}),t(oi,{$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(sm,{children:[s&&t(Wd,{"data-id":"deny",...s}),l&&t(Wd,{"data-id":"approve",...l})]})]})});export{$u as $,Mu as A,Wd as B,xu as C,Th as D,Ts as E,oi as F,_s as G,qg as H,eg as I,Rs as J,Ds as K,Os as L,En as M,vh as N,lo as O,yn as P,qu as Q,Bu as R,Tn as S,Md as T,ls as U,Xo as V,lm as W,hs as X,uu as Y,lp as Z,Cs as _,Uu as a,Eg as a$,ks as a0,Ls as a1,ss as a2,Rr as a3,qp as a4,Yh as a5,iu as a6,Sa as a7,ns as a8,Fn as a9,es as aA,Fs as aB,Ja as aC,As as aD,Ms as aE,Ps as aF,Us as aG,zs as aH,vs as aI,za as aJ,ja as aK,Wa as aL,Va as aM,Ya as aN,Ka as aO,is as aP,Ia as aQ,_a as aR,Fa as aS,Es as aT,$s as aU,ws as aV,Fc as aW,Ra as aX,as as aY,Gr as aZ,Mc as a_,zn as aa,Kn as ab,Yn as ac,Jn as ad,Un as ae,Bn as af,Mn as ag,ur as ah,us as ai,Ha as aj,ds as ak,Ba as al,ms as am,ts as an,cs as ao,gs as ap,xs as aq,rs as ar,Hh as as,Ss as at,Qa as au,Ma as av,Za as aw,qa as ax,Fu as ay,Ua as az,fn as b,ud as b$,ii as b0,fu as b1,mi as b2,gu as b3,pd as b4,no as b5,Fp as b6,Yc as b7,xr as b8,Do as b9,Tg as bA,er as bB,zd as bC,sn as bD,ya as bE,pn as bF,ba as bG,Uh as bH,Hu as bI,vr as bJ,Wi as bK,ha as bL,la as bM,ca as bN,ua as bO,da as bP,Qs as bQ,os as bR,ps as bS,Zs as bT,bs as bU,qs as bV,La as bW,Pa as bX,Ga as bY,sr as bZ,on as b_,$n as ba,Sn as bb,Hc as bc,Zc as bd,rd as be,Jc as bf,$o as bg,lr as bh,yo as bi,Ni as bj,ma as bk,Oi as bl,od as bm,rr as bn,an as bo,rn as bp,Ai as bq,Ii as br,cr as bs,Ui as bt,Xn as bu,Mi as bv,ga as bw,kn as bx,qd as by,ni as bz,fa as c,tl as c$,cd as c0,dr as c1,mo as c2,pr as c3,Sr as c4,$r as c5,hn as c6,bg as c7,ro as c8,Wp as c9,Ed as cA,ia as cB,ra as cC,Li as cD,ko as cE,fi as cF,uo as cG,Nn as cH,qi as cI,ea as cJ,au as cK,Vg as cL,Ng as cM,ng as cN,Xa as cO,Ca as cP,No as cQ,po as cR,va as cS,wa as cT,$a as cU,xa as cV,kc as cW,Pc as cX,Lc as cY,ol as cZ,nl as c_,Hr as ca,Yp as cb,nr as cc,Fi as cd,Jr as ce,Ci as cf,So as cg,_d as ch,Zi as ci,Sd as cj,Ar as ck,Pn as cl,Nr as cm,ta as cn,co,Kg as cp,Np as cq,Xc as cr,Si as cs,$i as ct,go as cu,Ph as cv,Gc as cw,Ro as cx,eo as cy,yi as cz,vu as d,vc as d$,rl as d0,dl as d1,cl as d2,hl as d3,pl as d4,sl as d5,al as d6,Ea as d7,Xs as d8,bd as d9,Cl as dA,Sl as dB,wl as dC,xl as dD,Ol as dE,Tl as dF,Nl as dG,gl as dH,ml as dI,Pl as dJ,Fl as dK,jl as dL,Bl as dM,Hl as dN,Ul as dO,zl as dP,Ml as dQ,Vl as dR,Kl as dS,Gl as dT,Xl as dU,Wl as dV,Jl as dW,ql as dX,Yl as dY,bl as dZ,bc as d_,_i as da,Nu as db,Ou as dc,sg as dd,jc as de,Dc as df,fl as dg,Al as dh,Il as di,_l as dj,Rl as dk,kl as dl,Dl as dm,Ll as dn,Zo as dp,Oc as dq,Nc as dr,Ac as ds,Ic as dt,_c as du,Rc as dv,yl as dw,vl as dx,El as dy,$l as dz,br as e,Hs as e$,Ec as e0,yc as e1,Sc as e2,Cc as e3,xc as e4,wc as e5,Tc as e6,$c as e7,mc as e8,fc as e9,ed as eA,vo as eB,oo as eC,io as eD,Eo as eE,bo as eF,fo as eG,ld as eH,qr as eI,Yr as eJ,Kr as eK,Er as eL,Lo as eM,Hn as eN,ep as eO,Cp as eP,rp as eQ,ti as eR,Is as eS,Na as eT,Ta as eU,Oa as eV,Aa as eW,el as eX,Gs as eY,js as eZ,Ws as e_,ac as ea,pc as eb,hc as ec,gc as ed,lc as ee,dc as ef,cc as eg,Ql as eh,Zl as ei,ec as ej,tc as ek,nc as el,rc as em,oc as en,ic as eo,sc as ep,uc as eq,Ao as er,ei as es,Og as et,Kc as eu,Qr as ev,Cr as ew,na as ex,wd as ey,Wc as ez,gr as f,aa as f$,Bs as f0,Ys as f1,Js as f2,Ks as f3,Vs as f4,Cd as f5,_n as f6,dn as f7,An as f8,Dn as f9,Zr as fA,to as fB,so as fC,Xr as fD,ho as fE,Or as fF,xo as fG,wo as fH,To as fI,Oo as fJ,Io as fK,bi as fL,xi as fM,wi as fN,Ti as fO,Ri as fP,Di as fQ,Pi as fR,Bi as fS,Hi as fT,ji as fU,Gi as fV,Xi as fW,Vr as fX,Vi as fY,Ki as fZ,tr 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,Ko as ft,Vo as fu,qo as fv,jr as fw,Ir as fx,Wr as fy,zi as fz,hr as g,Ns as g0,ul as g1,ll as g2,il as g3,fs as g4,ys as g5,ka as g6,Da as g7,oa as g8,Uc as g9,hg as gA,si as gB,Wh as gC,Yu as gD,ci as gE,di as gF,ui as gG,_p as gH,ah as gI,Qp as gJ,ai as gK,fr as gL,ir as ga,ar as gb,sa as gc,zc as gd,vd as ge,ad as gf,sd as gg,hd as gh,md as gi,yd as gj,$d as gk,xd as gl,Od as gm,Jd as gn,ou as go,Qd as gp,Yd as gq,pp as gr,hp as gs,Tu as gt,tm as gu,Ah as gv,gp as gw,Rh as gx,kh as gy,li as gz,ri as h,Hd as i,Bd as j,Eu as k,Tr as l,wr as m,xn as n,oh as o,eh as p,Zp as q,om as r,Oh as s,nn as t,em as u,Dr as v,Mh as w,sp as x,wn as y,Ku as z};
|