@odigos/ui-kit 0.0.263 → 0.0.265
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 +28 -0
- package/docs/api-context.md +1 -1
- package/lib/chunks/index-BMLDblot.js +155 -0
- package/lib/chunks/odigos-context-Dq_yIuDF.js +9 -0
- package/lib/chunks/source-instrument-form-context-D1tB6ZAx.js +5 -0
- package/lib/chunks/ui-components-CoDVeDqt.js +1581 -0
- package/lib/components/{_v2/cards → _cards}/data-card/index.d.ts +3 -3
- package/lib/components/{_v2/cards → _cards}/section-card/index.d.ts +2 -2
- package/lib/components/{_v2/cards → _cards}/status-card/index.d.ts +1 -1
- package/lib/components/{_v2/autocomplete → autocomplete}/index.d.ts +1 -1
- package/lib/components/{_v2/badge → badge}/index.d.ts +1 -1
- package/lib/components/{_v2/button → button}/index.d.ts +1 -1
- package/lib/components/{_v2/button-tab → button-tab}/index.d.ts +1 -1
- package/lib/components/{_v2/checkbox → checkbox}/index.d.ts +1 -1
- package/lib/components/code/index.d.ts +3 -4
- package/lib/components/code/toggle-code-component/index.d.ts +2 -3
- package/lib/components/{_v2/condition → condition}/index.d.ts +1 -1
- package/lib/components/{_v2/conditions → conditions}/index.d.ts +1 -1
- package/lib/components/divider/index.d.ts +4 -5
- package/lib/components/{_v2/drawer → drawer}/header/index.d.ts +1 -1
- package/lib/components/{_v2/drop-data → drop-data}/index.d.ts +1 -1
- package/lib/components/error-boundary/index.d.ts +2 -3
- package/lib/components/icon-button/index.d.ts +15 -11
- package/lib/components/icon-group/index.d.ts +6 -7
- package/lib/components/index.d.ts +39 -8
- package/lib/components/{_v2/input → input}/index.d.ts +1 -1
- package/lib/components/{_v2/input-table → input-table}/types.d.ts +1 -1
- package/lib/components/{_v2/island → island}/index.d.ts +2 -2
- package/lib/components/{_v2/loader → loader}/index.d.ts +1 -1
- package/lib/components/{_v2/navbar → navbar}/index.d.ts +1 -1
- package/lib/components/{_v2/no-data → no-data}/index.d.ts +1 -1
- package/lib/components/{_v2/note → note}/index.d.ts +1 -1
- package/lib/components/{_v2/radio → radio}/index.d.ts +1 -1
- package/lib/components/radio-card/index.d.ts +16 -0
- package/lib/components/scroll-y/index.d.ts +2 -3
- package/lib/components/{_v2/segment → segment}/index.d.ts +1 -1
- package/lib/components/skeleton-loader/index.d.ts +2 -3
- package/lib/components/{_v2/table → table}/table-columns/index.d.ts +1 -1
- package/lib/components/{_v2/table → table}/table-columns/sort/index.d.ts +1 -1
- package/lib/components/{_v2/tag → tag}/index.d.ts +1 -1
- package/lib/components/{_v2/toggle → toggle}/index.d.ts +1 -1
- package/lib/components/tooltip/index.d.ts +9 -5
- package/lib/components.js +1 -1
- package/lib/constants/actions/index.d.ts +1 -1
- package/lib/constants/instrumentation-rules/index.d.ts +1 -1
- package/lib/constants/regex.d.ts +1 -1
- package/lib/constants/sampling/index.d.ts +1 -1
- package/lib/constants/signals/index.d.ts +1 -1
- package/lib/constants/sources/index.d.ts +2 -2
- package/lib/constants/strings/index.d.ts +74 -0
- package/lib/constants.js +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/add-action-drawer/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/add-destination-drawer/form-column/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/add-destination-drawer/helpers.d.ts +2 -2
- package/lib/containers/{_v2/_drawers → _drawers}/add-destination-drawer/index.d.ts +2 -2
- package/lib/containers/{_v2/_drawers → _drawers}/add-destination-drawer/lists-column/index.d.ts +3 -3
- package/lib/containers/{_v2/_drawers → _drawers}/add-destination-drawer/lists-filters/index.d.ts +2 -2
- package/lib/containers/{_v2/_drawers → _drawers}/add-destination-drawer/types.d.ts +2 -2
- package/lib/containers/{_v2/_drawers → _drawers}/add-rule-drawer/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/add-source-drawer/index.d.ts +2 -2
- package/lib/containers/{_v2/_drawers → _drawers}/add-source-drawer/namespaces-column/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/add-source-drawer/strings.d.ts +10 -7
- package/lib/containers/{_v2/_drawers → _drawers}/add-source-drawer/types.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/add-source-drawer/utils.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/add-source-drawer/workloads-column/index.d.ts +1 -1
- package/lib/containers/_drawers/create-cloud-connector-drawer/index.d.ts +15 -0
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/select-provider/custom-resource-table.d.ts +9 -0
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/select-provider/helpers.d.ts +5 -0
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/select-provider/index.d.ts +2 -0
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/select-provider/permission-list.d.ts +12 -0
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/select-provider/permissions.d.ts +25 -0
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/select-provider/policy-preview.d.ts +5 -0
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/select-provider/provider-list.d.ts +8 -0
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/setup-credentials/create-role-section.d.ts +6 -0
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/setup-credentials/enter-arn-section.d.ts +5 -0
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/setup-credentials/index.d.ts +5 -0
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/setup-credentials/methods.d.ts +30 -0
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/setup-credentials/section.d.ts +9 -0
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/validate-connection/index.d.ts +8 -0
- package/lib/containers/{_v2/_drawers → _drawers}/edit-action-drawer/helpers.d.ts +2 -2
- package/lib/containers/{_v2/_drawers → _drawers}/edit-config-drawer/index.d.ts +2 -2
- package/lib/containers/{_v2/_drawers → _drawers}/edit-destination-drawer/helpers.d.ts +2 -2
- package/lib/containers/{_v2/_drawers → _drawers}/edit-rule-drawer/helpers.d.ts +2 -2
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/common/pods-header.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/debug/index.d.ts +1 -1
- package/lib/containers/_drawers/edit-source-drawer/helpers.d.ts +16 -0
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/jump-to-target-context.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/containers-card/distro-override.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/containers-card/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/containers-card/runtime-override.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/health-card.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/main-card.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/pods-card/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/pods-card/pods-list/container-row.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/pods-card/pods-list/helpers.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/pods-card/pods-list/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/pods-card/pods-list/pod-row.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/pods-card/pods-list/process-row.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/pods-card/pods-list/row-header.d.ts +2 -2
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/pods-card/pods-list/types.d.ts +1 -1
- package/lib/containers/_drawers/edit-source-drawer/overview/runtime-card.d.ts +12 -0
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/statuses-card.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/peers/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/pods/containers-card/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/pods/containers-card/process-card.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/pods/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/pods/pod-card.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/profiling/flamebearer.d.ts +18 -0
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/profiling/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/profiling/symbol-table/index.d.ts +2 -2
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/profiling/symbol-table/symbol-instrumentation.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/profiling/symbol-table/use-symbol-instrumentation.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/sampling/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/sampling/rule-row.d.ts +2 -1
- package/lib/containers/{_v2/_drawers → _drawers}/index.d.ts +1 -0
- package/lib/containers/{_v2/_drawers → _drawers}/sampling-rule-drawer/index.d.ts +2 -2
- package/lib/containers/{_v2/_drawers → _drawers}/sampling-rule-drawer/view-footer.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/system-drawer/index.d.ts +2 -2
- package/lib/containers/{_v2/_drawers → _drawers}/system-drawer/tokens/index.d.ts +1 -1
- package/lib/containers/{_v2/_drawers → _drawers}/system-drawer/tokens/token-value.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-action-form/custom-fields/add-cluster-info/index.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-action-form/custom-fields/delete-attributes/index.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-action-form/custom-fields/extract-attribute/index.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-action-form/custom-fields/index.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-action-form/custom-fields/k8s-attributes/index.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-action-form/custom-fields/pii-masking/index.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-action-form/custom-fields/rename-attributes/index.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-action-form/custom-fields/url-templatization/index.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-action-form/dynamic-fields/index.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-destination-form/dynamic-fields/index.d.ts +2 -2
- package/lib/containers/{_v2/_forms → _forms}/add-destination-form/index.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-rule-form/custom-fields/code-attributes/index.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-rule-form/custom-fields/custom-instrumentation/index.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-rule-form/custom-fields/headers-collection/index.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-rule-form/custom-fields/index.d.ts +1 -1
- package/lib/containers/{_v2/_forms → _forms}/add-rule-form/custom-fields/payload-collection/index.d.ts +1 -1
- package/lib/containers/{_v2/_modals → _modals}/onboarding-done/index.d.ts +0 -1
- package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/preset-row.d.ts +1 -1
- package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/types.d.ts +1 -1
- package/lib/containers/{_v2/central-connections → central-connections}/helpers.d.ts +15 -5
- package/lib/containers/central-connections/index.d.ts +16 -0
- package/lib/containers/index.d.ts +9 -0
- package/lib/containers/{_v2/onboarding → onboarding}/summary/index.d.ts +2 -2
- package/lib/containers/{_v2/overview → overview}/columns/column/empty-add.d.ts +1 -1
- package/lib/containers/{_v2/overview → overview}/columns/column/head.d.ts +1 -1
- package/lib/containers/{_v2/overview → overview}/columns/column/index.d.ts +1 -1
- package/lib/containers/{_v2/overview → overview}/columns/column/list-item.d.ts +1 -1
- package/lib/containers/{_v2/overview → overview}/columns/column/source-visual-state.d.ts +1 -1
- package/lib/containers/{_v2/overview → overview}/search/builder.d.ts +2 -2
- package/lib/containers/{_v2/pipeline-collectors → pipeline-collectors}/general-info/helpers/get-general-badge.d.ts +3 -3
- package/lib/containers/{_v2/pipeline-collectors → pipeline-collectors}/general-info/helpers/get-general-gauge-cards.d.ts +2 -2
- package/lib/containers/{_v2/pipeline-collectors → pipeline-collectors}/general-info/helpers/get-general-status-card.d.ts +2 -2
- package/lib/containers/{_v2/pipeline-collectors → pipeline-collectors}/general-info/helpers/get-general-text-cards.d.ts +2 -2
- package/lib/containers/{_v2/pipeline-collectors → pipeline-collectors}/general-info/index.d.ts +1 -1
- package/lib/containers/{_v2/pipeline-collectors → pipeline-collectors}/general-info/yaml-drawer/index.d.ts +2 -2
- package/lib/containers/{_v2/pipeline-collectors → pipeline-collectors}/index.d.ts +2 -1
- package/lib/containers/{_v2/pipeline-collectors → pipeline-collectors}/pods-info/index.d.ts +1 -1
- package/lib/containers/{_v2/pipeline-collectors → pipeline-collectors}/pods-info/pod-drawer/index.d.ts +2 -2
- package/lib/containers/{_v2/sampling-rules → sampling-rules}/auto-rule-card/index.d.ts +1 -1
- package/lib/containers/{_v2/sampling-rules → sampling-rules}/converters.d.ts +1 -1
- package/lib/containers/{_v2/sampling-rules → sampling-rules}/helpers.d.ts +3 -3
- package/lib/containers/{_v2/sampling-rules → sampling-rules}/rules-table/index.d.ts +1 -1
- package/lib/containers/{_v2/sampling-rules → sampling-rules}/toolbar/index.d.ts +1 -1
- package/lib/containers/{_v2/sampling-rules → sampling-rules}/types.d.ts +1 -1
- package/lib/containers/service-map/helpers/aggregate-service-map.d.ts +1 -1
- package/lib/containers/service-map/helpers/build-edges.d.ts +1 -1
- package/lib/containers/service-map/helpers/build-map-nodes.d.ts +1 -1
- package/lib/containers/service-map/helpers/types.d.ts +2 -2
- package/lib/containers/service-map/service-map-context.d.ts +1 -1
- package/lib/containers/{_v2/settings → settings}/index.d.ts +2 -1
- package/lib/containers.js +1440 -16
- package/lib/contexts/action-form-context.d.ts +2 -2
- package/lib/contexts/cloud-connector-form-context.d.ts +35 -0
- package/lib/contexts/data-stream-form-context.d.ts +2 -2
- package/lib/contexts/destination-form-context.d.ts +3 -3
- package/lib/contexts/index.d.ts +1 -0
- package/lib/contexts/odigos-api/capabilities.d.ts +5 -1
- package/lib/contexts/odigos-api/client.d.ts +1 -1
- package/lib/contexts/odigos-api/hooks/use-actions-api.d.ts +1 -1
- package/lib/contexts/odigos-api/hooks/use-collectors-api.d.ts +1 -1
- package/lib/contexts/odigos-api/hooks/use-config-api.d.ts +1 -1
- package/lib/contexts/odigos-api/hooks/use-data-streams-api.d.ts +1 -1
- package/lib/contexts/odigos-api/hooks/use-describe-api.d.ts +1 -1
- package/lib/contexts/odigos-api/hooks/use-destinations-api.d.ts +1 -1
- package/lib/contexts/odigos-api/hooks/use-instrumentation-rules-api.d.ts +1 -1
- package/lib/contexts/odigos-api/hooks/use-namespace-api.d.ts +1 -1
- package/lib/contexts/odigos-api/hooks/use-profiling-api.d.ts +1 -1
- package/lib/contexts/odigos-api/hooks/use-sampling-api.d.ts +1 -1
- package/lib/contexts/odigos-api/hooks/use-service-map-api.d.ts +1 -1
- package/lib/contexts/odigos-api/hooks/use-snapshots-api.d.ts +1 -1
- package/lib/contexts/odigos-api/hooks/use-sources-api.d.ts +3 -2
- package/lib/contexts/odigos-api/hooks/use-tokens-api.d.ts +1 -1
- package/lib/contexts/odigos-api/index.d.ts +2 -4
- package/lib/contexts/odigos-api/internal/notify.d.ts +2 -2
- package/lib/contexts/odigos-api/internal/source-payloads.d.ts +2 -2
- package/lib/contexts/odigos-api/platform-helpers.d.ts +2 -2
- package/lib/contexts/odigos-api/runner.d.ts +3 -3
- package/lib/contexts/odigos-api/types.d.ts +8 -13
- package/lib/contexts/odigos-api/use-api-query.d.ts +11 -10
- package/lib/contexts/odigos-context.d.ts +7 -3
- package/lib/contexts/rule-form-context.d.ts +3 -3
- package/lib/contexts/sampling-rules-form-context.d.ts +2 -2
- package/lib/contexts/source-edit-form-context.d.ts +2 -2
- package/lib/contexts/source-instrument-form-context.d.ts +2 -2
- package/lib/contexts.js +1 -1
- package/lib/functions/build-badge-for-desired-status/index.d.ts +2 -2
- package/lib/functions/clean-object-empty-strings-values/index.d.ts +1 -1
- package/lib/functions/compare-condition/index.d.ts +1 -1
- package/lib/functions/filter-actions/index.d.ts +2 -2
- package/lib/functions/filter-destinations/index.d.ts +2 -2
- package/lib/functions/filter-destinations-by-stream/index.d.ts +1 -1
- package/lib/functions/filter-sources/index.d.ts +2 -2
- package/lib/functions/filter-sources-by-stream/index.d.ts +1 -1
- package/lib/functions/flatten-object-keys/index.d.ts +1 -1
- package/lib/functions/get-action-icon/index.d.ts +1 -1
- package/lib/functions/get-conditions-booleans/index.d.ts +1 -1
- package/lib/functions/get-containers-counts/index.d.ts +1 -1
- package/lib/functions/get-containers-icons/index.d.ts +1 -1
- package/lib/functions/get-destination-icon/index.d.ts +1 -1
- package/lib/functions/get-entity-icon/index.d.ts +1 -1
- package/lib/functions/get-entity-id/index.d.ts +1 -1
- package/lib/functions/get-entity-label/index.d.ts +1 -1
- package/lib/functions/get-health-badge-label/index.d.ts +1 -1
- package/lib/functions/get-id-from-sse-target/index.d.ts +1 -1
- package/lib/functions/get-instrumentation-rule-icon/index.d.ts +1 -1
- package/lib/functions/get-main-container-language/index.d.ts +1 -1
- package/lib/functions/get-metric-for-entity/index.d.ts +1 -1
- package/lib/functions/get-monitor-icon/index.d.ts +1 -1
- package/lib/functions/get-nearest-typography-size/index.d.ts +1 -1
- package/lib/functions/get-platform-icon/index.d.ts +1 -1
- package/lib/functions/get-platform-label/index.d.ts +1 -1
- package/lib/functions/get-programming-language-icon/index.d.ts +1 -1
- package/lib/functions/get-source-kind-label/index.d.ts +8 -0
- package/lib/functions/get-sse-target-from-id/index.d.ts +1 -1
- package/lib/functions/get-status-color/index.d.ts +1 -1
- package/lib/functions/get-status-from-pod-status/index.d.ts +1 -1
- package/lib/functions/get-status-icon/index.d.ts +1 -1
- package/lib/functions/get-status-type-from-odigos-health/index.d.ts +1 -1
- package/lib/functions/get-virtual-service-icon/index.d.ts +1 -1
- package/lib/functions/get-workload-id/index.d.ts +1 -1
- package/lib/functions/get-yaml-fields-for-destination/index.d.ts +1 -1
- package/lib/functions/has-unhealthy-instances/index.d.ts +1 -1
- package/lib/functions/index.d.ts +1 -0
- package/lib/functions/instrumentation-rule-source-scopes/index.d.ts +1 -1
- package/lib/functions/map-conditions/index.d.ts +1 -1
- package/lib/functions/map-desired-status-to-condition-status/index.d.ts +1 -1
- package/lib/functions/map-destination-fields-for-display/index.d.ts +1 -1
- package/lib/functions/map-signals/index.d.ts +1 -1
- package/lib/functions/prepare-destination-form-data/index.d.ts +1 -1
- package/lib/functions/remove-empty-values-from-object/index.d.ts +1 -1
- package/lib/functions/safe-json-parse/index.d.ts +1 -1
- package/lib/functions/safe-json-stringify/index.d.ts +1 -1
- package/lib/functions/stringify-non-string-values/index.d.ts +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks/index.d.ts +0 -2
- package/lib/hooks/useActionFormData.d.ts +2 -2
- package/lib/hooks/useCopy.d.ts +1 -1
- package/lib/hooks/useDataStreamFormData.d.ts +1 -1
- package/lib/hooks/useDestinationFormData.d.ts +1 -1
- package/lib/hooks/useGenericForm.d.ts +1 -1
- package/lib/hooks/useInstrumentationRuleFormData.d.ts +2 -2
- package/lib/hooks/usePopup.d.ts +1 -1
- package/lib/hooks/useSourceFormData.d.ts +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons/actions/add-cluster-info-icon/index.d.ts +1 -1
- package/lib/icons/actions/delete-attribute-icon/index.d.ts +1 -1
- package/lib/icons/actions/pii-masking-icon/index.d.ts +1 -1
- package/lib/icons/actions/rename-attribute-icon/index.d.ts +1 -1
- package/lib/icons/actions/sampler-icon/index.d.ts +1 -1
- package/lib/icons/arrows/arrow-down-icon/index.d.ts +1 -1
- package/lib/icons/arrows/arrow-down-square-icon/index.d.ts +1 -1
- package/lib/icons/arrows/arrow-left-icon/index.d.ts +1 -1
- package/lib/icons/arrows/arrow-left-square-icon/index.d.ts +1 -1
- package/lib/icons/arrows/arrow-right-icon/index.d.ts +1 -1
- package/lib/icons/arrows/arrow-right-square-icon/index.d.ts +1 -1
- package/lib/icons/arrows/arrow-up-icon/index.d.ts +1 -1
- package/lib/icons/arrows/arrow-up-square-icon/index.d.ts +1 -1
- package/lib/icons/arrows/chevron-down-circle-icon/index.d.ts +1 -1
- package/lib/icons/arrows/chevron-down-icon/index.d.ts +1 -1
- package/lib/icons/arrows/chevron-down-square-icon/index.d.ts +1 -1
- package/lib/icons/arrows/chevron-left-circle-icon/index.d.ts +1 -1
- package/lib/icons/arrows/chevron-left-icon/index.d.ts +1 -1
- package/lib/icons/arrows/chevron-left-square-icon/index.d.ts +1 -1
- package/lib/icons/arrows/chevron-right-circle-icon/index.d.ts +1 -1
- package/lib/icons/arrows/chevron-right-icon/index.d.ts +1 -1
- package/lib/icons/arrows/chevron-right-square-icon/index.d.ts +1 -1
- package/lib/icons/arrows/chevron-up-circle-icon/index.d.ts +1 -1
- package/lib/icons/arrows/chevron-up-icon/index.d.ts +1 -1
- package/lib/icons/arrows/chevron-up-square-icon/index.d.ts +1 -1
- package/lib/icons/auth/okta-icon/index.d.ts +1 -1
- package/lib/icons/brand/odigos-logo/index.d.ts +1 -1
- package/lib/icons/brand/odigos-logo-text/index.d.ts +1 -1
- package/lib/icons/brand/odigos-logo-text-central/index.d.ts +1 -1
- package/lib/icons/brand/odigos-logo-text-colored-central/index.d.ts +1 -1
- package/lib/icons/brand/odigos-logo-text-colored-community/index.d.ts +1 -1
- package/lib/icons/brand/odigos-logo-text-colored-enterprise/index.d.ts +1 -1
- package/lib/icons/brand/odigos-logo-text-community/index.d.ts +1 -1
- package/lib/icons/brand/odigos-logo-text-enterprise/index.d.ts +1 -1
- package/lib/icons/common/arrow-icon/index.d.ts +1 -1
- package/lib/icons/common/avatar-icon/index.d.ts +1 -1
- package/lib/icons/common/book-icon/index.d.ts +1 -1
- package/lib/icons/common/code-brackets-icon/index.d.ts +1 -1
- package/lib/icons/common/code-icon/index.d.ts +1 -1
- package/lib/icons/common/command-icon/index.d.ts +1 -1
- package/lib/icons/common/copy-icon/index.d.ts +1 -1
- package/lib/icons/common/delete-icon/index.d.ts +1 -1
- package/lib/icons/common/diagnose-icon/index.d.ts +1 -1
- package/lib/icons/common/dot-icon/index.d.ts +1 -1
- package/lib/icons/common/dots-horizontal-icon/index.d.ts +1 -1
- package/lib/icons/common/dots-vertical-icon/index.d.ts +1 -1
- package/lib/icons/common/download-icon/index.d.ts +1 -1
- package/lib/icons/common/edit-icon/index.d.ts +1 -1
- package/lib/icons/common/edited-icon/index.d.ts +1 -1
- package/lib/icons/common/exclamation-circle-icon/index.d.ts +1 -1
- package/lib/icons/common/exclamation-triangle-icon/index.d.ts +1 -1
- package/lib/icons/common/expand-icon/index.d.ts +1 -1
- package/lib/icons/common/extend-arrow-icon/index.d.ts +1 -1
- package/lib/icons/common/filter-icon/index.d.ts +1 -1
- package/lib/icons/common/folder-icon/index.d.ts +1 -1
- package/lib/icons/common/gear-icon/index.d.ts +1 -1
- package/lib/icons/common/home-icon/index.d.ts +1 -1
- package/lib/icons/common/i-square-icon/index.d.ts +1 -1
- package/lib/icons/common/image-error-icon/index.d.ts +1 -1
- package/lib/icons/common/inbound-icon/index.d.ts +1 -1
- package/lib/icons/common/key-icon/index.d.ts +1 -1
- package/lib/icons/common/list-icon/index.d.ts +1 -1
- package/lib/icons/common/lock-icon/index.d.ts +1 -1
- package/lib/icons/common/minus-circled-icon/index.d.ts +1 -1
- package/lib/icons/common/minus-icon/index.d.ts +1 -1
- package/lib/icons/common/no-data-icon/index.d.ts +1 -1
- package/lib/icons/common/notebook-icon/index.d.ts +1 -1
- package/lib/icons/common/notification-icon/index.d.ts +1 -1
- package/lib/icons/common/outbound-icon/index.d.ts +1 -1
- package/lib/icons/common/plus-circled-icon/index.d.ts +1 -1
- package/lib/icons/common/plus-icon/index.d.ts +1 -1
- package/lib/icons/common/question-circle-icon/index.d.ts +1 -1
- package/lib/icons/common/refresh-icon/index.d.ts +1 -1
- package/lib/icons/common/refresh-left-arrow-icon/index.d.ts +1 -1
- package/lib/icons/common/refresh-right-arrow-icon/index.d.ts +1 -1
- package/lib/icons/common/role-icon/index.d.ts +1 -1
- package/lib/icons/common/rotate-arrows-icon/index.d.ts +1 -1
- package/lib/icons/common/search-icon/index.d.ts +1 -1
- package/lib/icons/common/server-disconnected-icon/index.d.ts +1 -1
- package/lib/icons/common/settings-icon/index.d.ts +1 -1
- package/lib/icons/common/sort-arrows-icon/index.d.ts +1 -1
- package/lib/icons/common/star-icon/index.d.ts +1 -1
- package/lib/icons/common/terminal-icon/index.d.ts +1 -1
- package/lib/icons/common/trash-icon/index.d.ts +1 -1
- package/lib/icons/common/user-circle-icon/index.d.ts +1 -1
- package/lib/icons/common/user-group-icon/index.d.ts +1 -1
- package/lib/icons/common/user-icon/index.d.ts +1 -1
- package/lib/icons/common/user-settings-icon/index.d.ts +1 -1
- package/lib/icons/common/v-icon/index.d.ts +1 -1
- package/lib/icons/common/v-square-icon/index.d.ts +1 -1
- package/lib/icons/common/x-icon/index.d.ts +1 -1
- package/lib/icons/common/x-square-icon/index.d.ts +1 -1
- package/lib/icons/compute-platform/cloud-connector-icon/index.d.ts +2 -0
- package/lib/icons/compute-platform/cloud-connector-policy-icon/index.d.ts +2 -0
- package/lib/icons/compute-platform/index.d.ts +2 -0
- package/lib/icons/compute-platform/k8s-logo/index.d.ts +1 -1
- package/lib/icons/compute-platform/vm-logo/index.d.ts +1 -1
- package/lib/icons/destinations/alauda-logo/index.d.ts +1 -1
- package/lib/icons/destinations/alibaba-cloud-logo/index.d.ts +1 -1
- package/lib/icons/destinations/app-dynamics-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-api-gateway-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-bedrock-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-cloudwatch-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-dynamodb-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-ec2-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-eventbridge-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-kinesis-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-lambda-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-s3-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-secrets-manager-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-sns-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-sqs-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-step-functions-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-sts-logo/index.d.ts +1 -1
- package/lib/icons/destinations/aws-xray-logo/index.d.ts +1 -1
- package/lib/icons/destinations/axiom-logo/index.d.ts +1 -1
- package/lib/icons/destinations/azure-blob-logo/index.d.ts +1 -1
- package/lib/icons/destinations/azure-monitor-logo/index.d.ts +1 -1
- package/lib/icons/destinations/better-stack-logo/index.d.ts +1 -1
- package/lib/icons/destinations/bonree-logo/index.d.ts +1 -1
- package/lib/icons/destinations/causely-logo/index.d.ts +1 -1
- package/lib/icons/destinations/checkly-logo/index.d.ts +1 -1
- package/lib/icons/destinations/chronosphere-logo/index.d.ts +1 -1
- package/lib/icons/destinations/clickhouse-logo/index.d.ts +1 -1
- package/lib/icons/destinations/coralogix-logo/index.d.ts +1 -1
- package/lib/icons/destinations/dash0-logo/index.d.ts +1 -1
- package/lib/icons/destinations/datadog-logo/index.d.ts +1 -1
- package/lib/icons/destinations/dynatrace-logo/index.d.ts +1 -1
- package/lib/icons/destinations/elastic-apm-logo/index.d.ts +1 -1
- package/lib/icons/destinations/elastic-search-logo/index.d.ts +1 -1
- package/lib/icons/destinations/gigapipe-logo/index.d.ts +1 -1
- package/lib/icons/destinations/google-cloud-platform-logo/index.d.ts +1 -1
- package/lib/icons/destinations/google-cloud-storage-logo/index.d.ts +1 -1
- package/lib/icons/destinations/grafana-logo/index.d.ts +1 -1
- package/lib/icons/destinations/greptime-logo/index.d.ts +1 -1
- package/lib/icons/destinations/groundcover-logo/index.d.ts +1 -1
- package/lib/icons/destinations/honeycomb-logo/index.d.ts +1 -1
- package/lib/icons/destinations/hyperdx-logo/index.d.ts +1 -1
- package/lib/icons/destinations/instana-logo/index.d.ts +1 -1
- package/lib/icons/destinations/jaeger-logo/index.d.ts +1 -1
- package/lib/icons/destinations/kafka-logo/index.d.ts +1 -1
- package/lib/icons/destinations/kloudmate-logo/index.d.ts +1 -1
- package/lib/icons/destinations/last9-logo/index.d.ts +1 -1
- package/lib/icons/destinations/lightstep-logo/index.d.ts +1 -1
- package/lib/icons/destinations/logzio-logo/index.d.ts +1 -1
- package/lib/icons/destinations/loki-logo/index.d.ts +1 -1
- package/lib/icons/destinations/lumigo-logo/index.d.ts +1 -1
- package/lib/icons/destinations/middleware-logo/index.d.ts +1 -1
- package/lib/icons/destinations/new-relic-logo/index.d.ts +1 -1
- package/lib/icons/destinations/observe-logo/index.d.ts +1 -1
- package/lib/icons/destinations/odigos-destination-logo/index.d.ts +1 -1
- package/lib/icons/destinations/one-uptime-logo/index.d.ts +1 -1
- package/lib/icons/destinations/open-observe-logo/index.d.ts +1 -1
- package/lib/icons/destinations/open-telemetry-logo/index.d.ts +1 -1
- package/lib/icons/destinations/ops-verse-logo/index.d.ts +1 -1
- package/lib/icons/destinations/oracle-logo/index.d.ts +1 -1
- package/lib/icons/destinations/prometheus-logo/index.d.ts +1 -1
- package/lib/icons/destinations/pyroscope-logo/index.d.ts +1 -1
- package/lib/icons/destinations/qryn-logo/index.d.ts +1 -1
- package/lib/icons/destinations/quickwit-logo/index.d.ts +1 -1
- package/lib/icons/destinations/sentry-logo/index.d.ts +1 -1
- package/lib/icons/destinations/seq-logo/index.d.ts +1 -1
- package/lib/icons/destinations/signoz-logo/index.d.ts +1 -1
- package/lib/icons/destinations/splunk-logo/index.d.ts +1 -1
- package/lib/icons/destinations/sumo-logic-logo/index.d.ts +1 -1
- package/lib/icons/destinations/telemetry-hub-logo/index.d.ts +1 -1
- package/lib/icons/destinations/tempo-logo/index.d.ts +1 -1
- package/lib/icons/destinations/tingyun-logo/index.d.ts +1 -1
- package/lib/icons/destinations/traceloop-logo/index.d.ts +1 -1
- package/lib/icons/destinations/uptrace-logo/index.d.ts +1 -1
- package/lib/icons/destinations/victoria-metrics-logo/index.d.ts +1 -1
- package/lib/icons/instrumentation-rules/code-attributes-icon/index.d.ts +1 -1
- package/lib/icons/instrumentation-rules/custom-instrumentation-icon/index.d.ts +1 -1
- package/lib/icons/instrumentation-rules/headers-collection-icon/index.d.ts +1 -1
- package/lib/icons/instrumentation-rules/payload-collection-icon/index.d.ts +1 -1
- package/lib/icons/monitors/logs-icon/index.d.ts +1 -1
- package/lib/icons/monitors/metrics-icon/index.d.ts +1 -1
- package/lib/icons/monitors/traces-icon/index.d.ts +1 -1
- package/lib/icons/on-off/eye-closed-icon/index.d.ts +1 -1
- package/lib/icons/on-off/eye-open-icon/index.d.ts +1 -1
- package/lib/icons/on-off/light-off-icon/index.d.ts +1 -1
- package/lib/icons/on-off/light-on-icon/index.d.ts +1 -1
- package/lib/icons/on-off/moon-icon/index.d.ts +1 -1
- package/lib/icons/on-off/sound-off-icon/index.d.ts +1 -1
- package/lib/icons/on-off/sound-on-icon/index.d.ts +1 -1
- package/lib/icons/on-off/sun-icon/index.d.ts +1 -1
- package/lib/icons/overview/action-icon/index.d.ts +1 -1
- package/lib/icons/overview/connections-icon/index.d.ts +1 -1
- package/lib/icons/overview/data-stream-icon/index.d.ts +1 -1
- package/lib/icons/overview/destination-icon/index.d.ts +1 -1
- package/lib/icons/overview/gateway-icon/index.d.ts +1 -1
- package/lib/icons/overview/instrumentation-rule-icon/index.d.ts +1 -1
- package/lib/icons/overview/log-icon/index.d.ts +1 -1
- package/lib/icons/overview/namespaces-icon/index.d.ts +1 -1
- package/lib/icons/overview/overview-icon/index.d.ts +1 -1
- package/lib/icons/overview/pipeline-collector-icon/index.d.ts +1 -1
- package/lib/icons/overview/pod-icon/index.d.ts +1 -1
- package/lib/icons/overview/replica-icon/index.d.ts +1 -1
- package/lib/icons/overview/sampling-icon/index.d.ts +1 -1
- package/lib/icons/overview/service-map-icon/index.d.ts +1 -1
- package/lib/icons/overview/source-icon/index.d.ts +1 -1
- package/lib/icons/overview/trace-view-icon/index.d.ts +1 -1
- package/lib/icons/overview/yaml-icon/index.d.ts +1 -1
- package/lib/icons/programming-languages/aws-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/c-plus-plus-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/c-sharp-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/dotnet-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/elixir-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/go-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/java-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/mysql-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/nginx-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/nodejs-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/php-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/postgres-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/python-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/redis-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/ruby-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/rust-logo/index.d.ts +1 -1
- package/lib/icons/programming-languages/swift-logo/index.d.ts +1 -1
- package/lib/icons/social/slack-logo/index.d.ts +1 -1
- package/lib/icons.js +1 -1
- package/lib/snippets/{_v2/actions → actions}/index.d.ts +2 -2
- package/lib/snippets/{_v2/cancel-modal → cancel-modal}/index.d.ts +1 -1
- package/lib/snippets/connector-created-modal/index.d.ts +7 -0
- package/lib/snippets/{_v2/delete-modal → delete-modal}/index.d.ts +1 -1
- package/lib/snippets/{_v2/dynamic-field → dynamic-field}/index.d.ts +6 -2
- package/lib/snippets/index.d.ts +14 -1
- package/lib/snippets/{_v2/instrumentation-rule-form-sections → instrumentation-rule-form-sections}/instrumentation-preview.d.ts +1 -1
- package/lib/snippets/{_v2/rich-title → rich-title}/index.d.ts +3 -3
- package/lib/snippets/{_v2/sampling-rule-form-sections → sampling-rule-form-sections}/duration-errors.d.ts +2 -2
- package/lib/snippets/{_v2/sampling-rule-form-sections → sampling-rule-form-sections}/operation.d.ts +1 -1
- package/lib/snippets/{_v2/sampling-rule-form-sections → sampling-rule-form-sections}/percentage.d.ts +1 -1
- package/lib/snippets/{_v2/sampling-rule-form-sections → sampling-rule-form-sections}/preset-with-custom-input.d.ts +1 -1
- package/lib/snippets/{_v2/sampling-rule-form-sections → sampling-rule-form-sections}/rule-info.d.ts +1 -1
- package/lib/snippets/{_v2/sampling-rule-form-sections → sampling-rule-form-sections}/rule-type.d.ts +1 -1
- package/lib/snippets/{_v2/sampling-rule-form-sections → sampling-rule-form-sections}/sampling-preview.d.ts +2 -2
- package/lib/snippets/{_v2/sampling-rule-form-sections → sampling-rule-form-sections}/source-scope.d.ts +2 -2
- package/lib/snippets/{_v2/signals-checkbox-list → signals-checkbox-list}/index.d.ts +1 -1
- package/lib/snippets/{_v2/wide-drawer → wide-drawer}/column-list-item/index.d.ts +1 -1
- package/lib/snippets/{_v2/wide-drawer → wide-drawer}/index.d.ts +6 -3
- package/lib/snippets/{_v2/yaml-section-card → yaml-section-card}/index.d.ts +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store/index.d.ts +0 -1
- package/lib/store/useDataStreamStore.d.ts +1 -1
- package/lib/store/useDrawerStore.d.ts +16 -3
- package/lib/store/useFilterStore.d.ts +1 -1
- package/lib/store/useNotificationStore.d.ts +1 -1
- package/lib/store/useProgressStore.d.ts +1 -1
- package/lib/store/useSelectedStore.d.ts +1 -1
- package/lib/store/useSetupStore.d.ts +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/actions/index.d.ts +2 -5
- package/lib/types/cloud-connectors/index.d.ts +88 -0
- package/lib/types/common/index.d.ts +12 -1
- package/lib/types/destinations/index.d.ts +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/sampling.d.ts +1 -1
- package/lib/types/snapshot/index.d.ts +1 -0
- package/lib/types/sources/index.d.ts +1 -0
- package/lib/types/workload/index.d.ts +38 -0
- package/lib/types.js +1 -1
- package/lib/visuals/visual-green-rings/index.d.ts +1 -1
- package/lib/visuals/visual-purple-rings/index.d.ts +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +19 -39
- package/lib/chunks/connections-scope-JSsSeaII.js +0 -1
- package/lib/chunks/consts-D6GCMJ6c.js +0 -1
- package/lib/chunks/index-CpvWOJm_.js +0 -155
- package/lib/chunks/odigos-context-DGZO6Njm.js +0 -18
- package/lib/chunks/source-instrument-form-context-FYKFdAII.js +0 -1
- package/lib/chunks/ui-components-D1ehQI2Z.js +0 -1704
- package/lib/chunks/use-odigos-api-Ptz3Kdno.js +0 -5
- package/lib/chunks/vendor-BFqT13Me.js +0 -1
- package/lib/components/_v2/icon-button/index.d.ts +0 -16
- package/lib/components/_v2/icon-group/index.d.ts +0 -11
- package/lib/components/_v2/index.d.ts +0 -40
- package/lib/components/fade-loader/helpers/animation.d.ts +0 -1
- package/lib/components/fade-loader/helpers/unitConverter.d.ts +0 -22
- package/lib/components/fade-loader/index.d.ts +0 -10
- package/lib/components/icon-wrapped/index.d.ts +0 -11
- package/lib/components/image-controlled/index.d.ts +0 -8
- package/lib/components/loading-text/index.d.ts +0 -9
- package/lib/components/notification-note/index.d.ts +0 -22
- package/lib/components/popup/index.d.ts +0 -18
- package/lib/components/scroll-x/index.d.ts +0 -10
- package/lib/components/text/index.d.ts +0 -26
- package/lib/components/v2.js +0 -1
- package/lib/containers/_v2/_drawers/edit-source-drawer/helpers.d.ts +0 -12
- package/lib/containers/_v2/central-connections/index.d.ts +0 -11
- package/lib/containers/_v2/index.d.ts +0 -9
- package/lib/containers/v2.js +0 -990
- package/lib/contexts/odigos-api.js +0 -1
- package/lib/hooks/useClickNode.d.ts +0 -6
- package/lib/hooks/useClickNotification.d.ts +0 -7
- package/lib/snippets/_v2/index.d.ts +0 -13
- package/lib/snippets/v2.js +0 -1
- package/lib/store/useModalStore.d.ts +0 -6
- /package/lib/components/{_v2/cards → _cards}/index.d.ts +0 -0
- /package/lib/components/{_v2/cards → _cards}/text-card/index.d.ts +0 -0
- /package/lib/components/{_v2/charts → charts}/gauge-chart/index.d.ts +0 -0
- /package/lib/components/{_v2/charts → charts}/index.d.ts +0 -0
- /package/lib/components/{_v2/cli-command → cli-command}/index.d.ts +0 -0
- /package/lib/components/{_v2/drawer → drawer}/footer/index.d.ts +0 -0
- /package/lib/components/{_v2/drawer → drawer}/index.d.ts +0 -0
- /package/lib/components/{_v2/drop-down → drop-down}/index.d.ts +0 -0
- /package/lib/components/{_v2/field-message → field-message}/index.d.ts +0 -0
- /package/lib/components/{_v2/field-title → field-title}/index.d.ts +0 -0
- /package/lib/components/{_v2/header → header}/index.d.ts +0 -0
- /package/lib/components/{_v2/hover-actions → hover-actions}/index.d.ts +0 -0
- /package/lib/components/{_v2/input-list → input-list}/index.d.ts +0 -0
- /package/lib/components/{_v2/input-table → input-table}/card-table.d.ts +0 -0
- /package/lib/components/{_v2/input-table → input-table}/dynamic-field/index.d.ts +0 -0
- /package/lib/components/{_v2/input-table → input-table}/index.d.ts +0 -0
- /package/lib/components/{_v2/loader → loader}/spinner/index.d.ts +0 -0
- /package/lib/components/{_v2/loader → loader}/spinner-old/helpers/animation.d.ts +0 -0
- /package/lib/components/{_v2/loader → loader}/spinner-old/helpers/unitConverter.d.ts +0 -0
- /package/lib/components/{_v2/loader → loader}/spinner-old/index.d.ts +0 -0
- /package/lib/components/{_v2/modal → modal}/index.d.ts +0 -0
- /package/lib/components/{_v2/search → search}/index.d.ts +0 -0
- /package/lib/components/{_v2/stepper → stepper}/index.d.ts +0 -0
- /package/lib/components/{_v2/table → table}/index.d.ts +0 -0
- /package/lib/components/{_v2/table → table}/styled.d.ts +0 -0
- /package/lib/components/{_v2/table → table}/table-columns/filter/index.d.ts +0 -0
- /package/lib/components/{_v2/table → table}/table-rows/index.d.ts +0 -0
- /package/lib/components/{_v2/table → table}/types.d.ts +0 -0
- /package/lib/components/{_v2/textarea → textarea}/index.d.ts +0 -0
- /package/lib/components/{_v2/time-input → time-input}/index.d.ts +0 -0
- /package/lib/components/{_v2/typography → typography}/index.d.ts +0 -0
- /package/lib/components/{_v2/typography-truncatable → typography-truncatable}/index.d.ts +0 -0
- /package/lib/components/{_v2/warning-modal → warning-modal}/index.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/add-source-drawer/namespaces-column/list/index.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/add-source-drawer/namespaces-column/list/list-item/index.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/edit-action-drawer/index.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/edit-destination-drawer/index.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/edit-rule-drawer/index.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/common/index.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/overview/containers-card/popup-form.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/pods/pod-debug-commands.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/profiling/flame-graph-canvas.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/profiling/symbol-table/modify-rules-modal.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/edit-source-drawer/tabs.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/regex-tester-drawer/highlighter.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/regex-tester-drawer/index.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/system-drawer/describe/index.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/system-drawer/diagnose/index.d.ts +0 -0
- /package/lib/containers/{_v2/_drawers → _drawers}/system-drawer/tokens/token-expires-at.d.ts +0 -0
- /package/lib/containers/{_v2/_forms → _forms}/add-action-form/index.d.ts +0 -0
- /package/lib/containers/{_v2/_forms → _forms}/add-rule-form/index.d.ts +0 -0
- /package/lib/containers/{_v2/_forms → _forms}/data-stream-form/index.d.ts +0 -0
- /package/lib/containers/{_v2/_forms → _forms}/data-stream-form/merge-warning.d.ts +0 -0
- /package/lib/containers/{_v2/_forms → _forms}/edit-source-form/index.d.ts +0 -0
- /package/lib/containers/{_v2/_forms → _forms}/index.d.ts +0 -0
- /package/lib/containers/{_v2/_forms → _forms}/sampling-rule-form/index.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/add-data-stream-modal/index.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/edit-data-stream-modal/index.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/index.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/onboarding-done/background.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/common/chrome.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/common/footer.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/common/header.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/common/index.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/common/info-card.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/common/lists.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/common/primary-banner.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/common/section.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/common/sub-title.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/index.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/steps/step-advanced.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/steps/step-drop-list.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/steps/step-keep-list.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/steps/step-noisy.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/steps/step-strategy.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/steps/step-success.d.ts +0 -0
- /package/lib/containers/{_v2/_modals → _modals}/sampling-onboarding-modal/steps/step-welcome.d.ts +0 -0
- /package/lib/containers/{_v2/onboarding → onboarding}/background/index.d.ts +0 -0
- /package/lib/containers/{_v2/onboarding → onboarding}/get-started/index.d.ts +0 -0
- /package/lib/containers/{_v2/onboarding → onboarding}/index.d.ts +0 -0
- /package/lib/containers/{_v2/overview → overview}/columns/column/namespace-divider.d.ts +0 -0
- /package/lib/containers/{_v2/overview → overview}/columns/index.d.ts +0 -0
- /package/lib/containers/{_v2/overview → overview}/data-stream-select/index.d.ts +0 -0
- /package/lib/containers/{_v2/overview → overview}/drawers/index.d.ts +0 -0
- /package/lib/containers/{_v2/overview → overview}/filters/index.d.ts +0 -0
- /package/lib/containers/{_v2/overview → overview}/index.d.ts +0 -0
- /package/lib/containers/{_v2/overview → overview}/multi-source-control/index.d.ts +0 -0
- /package/lib/containers/{_v2/overview → overview}/search/index.d.ts +0 -0
- /package/lib/containers/{_v2/pipeline-collectors → pipeline-collectors}/enum.d.ts +0 -0
- /package/lib/containers/{_v2/pipeline-collectors → pipeline-collectors}/general-info/helpers/get-general-title.d.ts +0 -0
- /package/lib/containers/{_v2/pipeline-collectors → pipeline-collectors}/general-info/helpers/index.d.ts +0 -0
- /package/lib/containers/{_v2/pipeline-collectors → pipeline-collectors}/toolbar/index.d.ts +0 -0
- /package/lib/containers/{_v2/sampling-rules → sampling-rules}/index.d.ts +0 -0
- /package/lib/containers/{_v2/settings → settings}/side-menu/index.d.ts +0 -0
- /package/lib/containers/{_v2/settings → settings}/toolbar/index.d.ts +0 -0
- /package/lib/snippets/{_v2/colored-span → colored-span}/index.d.ts +0 -0
- /package/lib/snippets/{_v2/instrumentation-rule-form-sections → instrumentation-rule-form-sections}/index.d.ts +0 -0
- /package/lib/snippets/{_v2/odigos-logo-text-by-tier → odigos-logo-text-by-tier}/index.d.ts +0 -0
- /package/lib/snippets/{_v2/sampling-rule-form-sections → sampling-rule-form-sections}/index.d.ts +0 -0
- /package/lib/snippets/{_v2/sampling-rule-form-sections → sampling-rule-form-sections}/styled.d.ts +0 -0
- /package/lib/snippets/{_v2/upgrade-modal → upgrade-modal}/index.d.ts +0 -0
- /package/lib/snippets/{_v2/wide-drawer → wide-drawer}/column/index.d.ts +0 -0
- /package/lib/snippets/{_v2/wide-drawer → wide-drawer}/column-list-collapse/index.d.ts +0 -0
|
@@ -1,1704 +0,0 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import o,{css as r,useTheme as i,keyframes as a,ThemeProvider as s}from"styled-components";import{VSquareIcon as l,XSquareIcon as c,ActionIcon as d,RenameAttributeIcon as u,PiiMaskingIcon as p,DeleteAttributeIcon as h,AddClusterInfoIcon as g,K8sLogo as m,ImageErrorIcon as f,KafkaLogo as y,RedisLogo as b,PostgresLogo as $,NginxLogo as v,MysqlLogo as x,ElixirLogo as S,SwiftLogo as w,RustLogo as E,RubyLogo as C,PhpLogo as T,CPlusPlusLogo as A,CSharpLogo as k,DotnetLogo as I,PythonLogo as N,NodejsLogo as R,GoLogo as O,JavaLogo as D,PyroscopeLogo as _,AwsXrayLogo as L,VictoriaMetricsLogo as P,UptraceLogo as F,TraceloopLogo as M,TingyunLogo as z,TempoLogo as U,TelemetryHubLogo as B,SumoLogicLogo as j,SplunkLogo as W,SignozLogo as H,SeqLogo as G,AwsS3Logo as X,QuickwitLogo as K,GigapipeLogo as V,QrynLogo as J,PrometheusLogo as Y,OpenTelemetryLogo as q,OracleLogo as Q,OpsVerseLogo as Z,OpenObserveLogo as ee,OneUptimeLogo as te,OdigosLogo as ne,ObserveLogo as oe,NewRelicLogo as re,MiddlewareLogo as ie,LumigoLogo as ae,LokiLogo as se,LogzioLogo as le,LightstepLogo as ce,Last9Logo as de,KloudmateLogo as ue,JaegerLogo as pe,InstanaLogo as he,HyperDxLogo as ge,HoneycombLogo as me,GroundcoverLogo as fe,GreptimeLogo as ye,GrafanaLogo as be,GoogleCloudPlatformLogo as $e,ElasticSearchLogo as ve,ElasticApmLogo as xe,DynatraceLogo as Se,DatadogLogo as we,Dash0Logo as Ee,CoralogixLogo as Ce,AwsCloudwatchLogo as Te,ClickhouseLogo as Ae,ChronosphereLogo as ke,ChecklyLogo as Ie,CauselyLogo as Ne,BonreeLogo as Re,BetterStackLogo as Oe,AzureMonitorLogo as De,AzureBlobLogo as _e,AxiomLogo as Le,AppDynamicsLogo as Pe,AlibabaCloudLogo as Fe,AlaudaLogo as Me,SamplingIcon as ze,InstrumentationRuleIcon as Ue,DestinationIcon as Be,SourceIcon as je,NamespacesIcon as We,PayloadCollectionIcon as He,HeadersCollectionIcon as Ge,CustomInstrumentationIcon as Xe,CodeAttributesIcon as Ke,TracesIcon as Ve,MetricsIcon as Je,LogsIcon as Ye,VmLogo as qe,DotsHorizontalIcon as Qe,QuestionCircleIcon as Ze,ExclamationTriangleIcon as et,ExclamationCircleIcon as tt,ISquareIcon as nt,AwsLogo as ot,AwsSecretsManagerLogo as rt,AwsStepFunctionsLogo as it,AwsEventBridgeLogo as at,AwsBedrockLogo as st,AwsApiGatewayLogo as lt,AwsEc2Logo as ct,AwsKinesisLogo as dt,AwsLambdaLogo as ut,AwsSnsLogo as pt,AwsSqsLogo as ht,AwsDynamoDbLogo as gt,AwsStsLogo as mt,OpenTelemetryLogoStripped as ft,VIcon as yt,CopyIcon as bt,ListIcon as $t,CodeIcon as vt,XIcon as xt,EyeClosedIcon as St,EyeOpenIcon as wt,SearchIcon as Et,MinusIcon as Ct,ChevronUpIcon as Tt,ChevronDownIcon as At,ArrowIcon as kt,DotsVerticalIcon as It,PlusIcon as Nt,TrashIcon as Rt,DotIcon as Ot,ArrowRightIcon as Dt,FilterIcon as _t}from"../icons.js";import{create as Lt}from"zustand";import{forwardRef as Pt,Fragment as Ft,useState as Mt,useEffect as zt,useMemo as Ut,useCallback as Bt,useRef as jt,useLayoutEffect as Wt,createElement as Ht}from"react";import Gt from"javascript-time-ago";import Xt from"javascript-time-ago/locale/en";import{Highlight as Kt,themes as Vt}from"prism-react-renderer";import{s as Jt}from"./vendor-BFqT13Me.js";import{persist as Yt,createJSONStorage as qt}from"zustand/middleware";import{ErrorBoundary as Qt}from"react-error-boundary";import Zt,{createPortal as en}from"react-dom";import{VList as tn}from"virtua";const nn=e=>e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"";var on,rn,an;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.P="p",e.Span="span"}(on||(on={})),function(e){e.XXXS="xxxs",e.XXS="xxs",e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e.XXL="xxl",e.XXXL="xxxl"}(rn||(rn={})),function(e){e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Disable="disable",e.Error="error",e.Mandatory="mandatory",e.Link="link",e.Success="success"}(an||(an={}));const sn=new Set(Object.values(an)),ln=(e,t)=>{if("string"!=typeof(n=t)||!sn.has(n))return t;var n;switch(t){case an.Primary:return e.v2.colors.white[500];case an.Secondary:return e.v2.colors.silver[200];case an.Tertiary:return e.v2.colors.black[500];case an.Disable:return e.v2.colors.grey[400];case an.Error:return e.v2.colors.red[500];case an.Mandatory:return e.v2.colors.red[600];case an.Link:return e.v2.colors.purple[400];case an.Success:return e.v2.colors.green[400];default:return}},cn=o.p`
|
|
2
|
-
margin: 0;
|
|
3
|
-
color: ${({$color:e,theme:t})=>ln(t,e)||t.v2.colors.grey[50]};
|
|
4
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
5
|
-
font-size: ${({theme:e,$size:t})=>e.v2.text.size[t]}px;
|
|
6
|
-
font-weight: ${({$weight:e})=>e};
|
|
7
|
-
text-align: ${({$align:e})=>e};
|
|
8
|
-
text-transform: ${({$transform:e})=>e};
|
|
9
|
-
line-height: ${({theme:e,$lineHeight:t,$size:n})=>t||`${e.v2.text.size[n]+2}px`};
|
|
10
|
-
opacity: ${({$opacity:e})=>e};
|
|
11
|
-
|
|
12
|
-
${({$nowrap:e})=>e?r`
|
|
13
|
-
text-wrap: nowrap;
|
|
14
|
-
white-space: nowrap;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
text-overflow: ellipsis;
|
|
17
|
-
`:r`
|
|
18
|
-
flex: 0 1 auto;
|
|
19
|
-
min-width: 0;
|
|
20
|
-
overflow-wrap: anywhere;
|
|
21
|
-
`}
|
|
22
|
-
|
|
23
|
-
${({$maxLines:e})=>!!e&&e>0&&r`
|
|
24
|
-
display: -webkit-box;
|
|
25
|
-
-webkit-box-orient: vertical;
|
|
26
|
-
-webkit-line-clamp: ${e};
|
|
27
|
-
line-clamp: ${e};
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
`}
|
|
30
|
-
|
|
31
|
-
${({$underline:e})=>e&&r`
|
|
32
|
-
text-decoration: underline;
|
|
33
|
-
`}
|
|
34
|
-
|
|
35
|
-
${({$withClick:e})=>e&&r`
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
&:hover {
|
|
38
|
-
text-decoration: underline;
|
|
39
|
-
}
|
|
40
|
-
`}
|
|
41
|
-
`,dn=Pt(({children:n,variant:o=on.P,color:r,size:i=rn.S,weight:a=400,opacity:s=1,align:l="left",lineHeight:c,transform:d,nowrap:u,underline:p,onClick:h,disabled:g,maxLines:m,...f},y)=>{const b=n?.toString().split("\n")||[];return e(cn,{ref:y,as:o,$color:r,$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.map((n,o)=>t(Ft,{children:[n,o!==b.length-1&&e("br",{})]},`typography-${o}-${n}`))})});var un,pn,hn,gn,mn,fn,yn,bn,$n,vn,xn,Sn,wn,En,Cn,Tn,An,kn,In,Nn,Rn,On,Dn,_n,Ln,Pn,Fn,Mn,zn,Un,Bn,jn,Wn,Hn,Gn,Xn,Kn,Vn,Jn,Yn,qn;dn.displayName="Typography",function(e){e.K8sAttributes="K8sAttributesResolver",e.AddClusterInfo="AddClusterInfo",e.DeleteAttributes="DeleteAttribute",e.RenameAttributes="RenameAttribute",e.PiiMasking="PiiMasking",e.URLTemplatization="URLTemplatization",e.ExtractAttribute="ExtractAttribute"}(un||(un={})),function(e){e.CollectContainerAttributes="collectContainerAttributes",e.CollectReplicaSetAttributes="collectReplicaSetAttributes",e.CollectWorkloadId="collectWorkloadId",e.CollectClusterId="collectClusterId",e.LabelsAttributes="labelsAttributes",e.AnnotationsAttributes="annotationsAttributes",e.ClusterAttributes="clusterAttributes",e.OverwriteExistingValues="overwriteExistingValues",e.AttributeNamesToDelete="attributeNamesToDelete",e.Renames="renames",e.PiiCategories="piiCategories",e.UrlTemplatizationRulesGroups="urlTemplatizationRulesGroups",e.ExtractAttribute="extractAttribute"}(pn||(pn={})),function(e){e.Pod="pod",e.Namespace="namespace",e.Node="node"}(hn||(hn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.CONTAINS="contains",e.NOT_CONTAINS="not_contains",e.REGEX="regex"}(gn||(gn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.GREATER_THAN="greater_than",e.LESS_THAN="less_than",e.GREATER_THAN_OR_EQUAL="greater_than_or_equal",e.LESS_THAN_OR_EQUAL="less_than_or_equal"}(mn||(mn={})),function(e){e.EXISTS="exists",e.EQUALS="equals"}(fn||(fn={})),function(e){e.EXISTS="exists",e.EQUALS="equals",e.NOT_EQUALS="not_equals",e.IS_VALID_JSON="is_valid_json",e.IS_INVALID_JSON="is_invalid_json",e.JSONPATH_EXISTS="jsonpath_exists",e.KEY_EQUALS="key_equals",e.KEY_NOT_EQUALS="key_not_equals"}(yn||(yn={})),function(e){e.JSON="json",e.SQL="sql",e.ResourcePath="resource_path"}(bn||(bn={})),function(e){e.Horizontal="horizontal",e.Vertical="vertical"}($n||($n={})),function(e){e.Ascending="ascending",e.Descending="descending"}(vn||(vn={})),function(e){e.Community="community",e.Onprem="onprem"}(xn||(xn={})),function(e){e.K8s="k8s",e.Vm="vm"}(Sn||(Sn={})),function(e){e.Cli="odigos-cli",e.Helm="helm",e.Operator="odigos-operator"}(wn||(wn={})),function(e){e.New="NEW",e.AppsSelected="APPS_SELECTED",e.Finished="FINISHED"}(En||(En={})),function(e){e.Go="go",e.JavaScript="javascript",e.Python="python",e.Java="java",e.DotNet="dotnet",e.CSharp="csharp",e.CPlusPlus="cplusplus",e.Php="php",e.Ruby="ruby",e.Rust="rust",e.Swift="swift",e.Elixir="elixir",e.MySql="mysql",e.Nginx="nginx",e.Postgres="postgres",e.Redis="redis",e.Kafka="kafka",e.Ignored="ignored",e.Unknown="unknown",e.Processing="processing",e.NoContainers="no containers",e.NoRunningPods="no running pods"}(Cn||(Cn={})),function(e){e.Create="Create",e.Read="Read",e.Update="Update",e.Delete="Delete"}(Tn||(Tn={})),function(e){e.Namespace="Namespace",e.Source="Source",e.Destination="Destination",e.Action="Action",e.InstrumentationRule="InstrumentationRule",e.SamplingRule="SamplingRule"}(An||(An={})),function(e){e.DataStream="DataStream"}(kn||(kn={})),function(e){e.Input="input",e.MultiInput="multiInput",e.MultiTabledInput="multiTabledInput",e.KeyValuePair="keyValuePairs",e.TextArea="textarea",e.Dropdown="dropdown",e.Checkbox="checkbox",e.CheckboxList="checkboxList",e.Toggle="toggle",e.Time="time",e.FieldGroup="fieldGroup"}(In||(In={})),function(e){e.Text="text",e.Password="password",e.Number="number",e.Decimal="decimal"}(Nn||(Nn={})),function(e){e.Warning="warning",e.Error="error",e.Success="success",e.Info="info",e.Default="default",e.Loading="loading",e.Disabled="disabled",e.Unknown="unknown"}(Rn||(Rn={})),function(e){e.INSTRUMENTED="Instrumented",e.INSTRUMENTING="Instrumenting",e.UNINSTRUMENTED="Uninstrumented",e.NOT_INSTRUMENTED="Not Instrumented"}(On||(On={})),function(e){e.MarkedForInstrumentation="MarkedForInstrumentation",e.RuntimeDetection="RuntimeDetection",e.AgentEnabled="AgentEnabled",e.AgentInjected="AgentInjected",e.WorkloadRollout="WorkloadRollout",e.ProcessesHealthStatus="ProcessesHealthStatus",e.ExpectingTelemetry="ExpectingTelemetry",e.WorkloadOdigosHealth="WorkloadOdigosHealth"}(Dn||(Dn={})),function(e){e.TriggeredSuccessfully="RolloutTriggeredSuccessfully",e.RolloutFinished="RolloutFinished",e.PreviousRolloutOngoing="PreviousRolloutOngoing",e.Disabled="Disabled",e.NotRequired="NotRequired",e.WaitingForRestart="WaitingForRestart",e.WorkloadNotSupporting="WorkloadNotSupporting",e.WaitingInQueue="WaitingInQueue",e.FailedToPatch="FailedToPatch"}(_n||(_n={})),function(e){e.SuccessfullyInjected="SuccessfullyInjected",e.NoAgentInjected="NoAgentInjected",e.SomePodsAgentNotInjectedRolloutNeeded="SomePodsAgentNotInjectedRolloutNeeded",e.AgentInjectedAndDataSent="AgentInjectedAndDataSent"}(Ln||(Ln={})),function(e){e.CodeAttributes="code-attributes",e.FullPayloadCollection="full-payload-collection",e.DbPayloadCollection="db-payload-collection",e.QueryOperationDetector="query-operation-detector",e.AllowConcurrentAgents="allow_concurrent_agents",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.JavaNativeInstrumentations="java-native-instrumentations",e.SizeS="size_s",e.SizeM="size_m",e.SizeL="size_l"}(Pn||(Pn={})),function(e){e.Alauda="alauda",e.AlibabaCloud="alibabacloud",e.AppDynamics="appdynamics",e.Axiom="axiom",e.AzureBlob="azureblob",e.AzureMonitor="azuremonitor",e.BetterStack="betterstack",e.Bonree="bonree",e.Causely="causely",e.Checkly="checkly",e.Chronosphere="chronosphere",e.ClickHouse="clickhouse",e.CloudWatch="cloudwatch",e.Coralogix="coralogix",e.Dash0="dash0",e.Datadog="datadog",e.Dynamic="dynamic",e.Dynatrace="dynatrace",e.ElasticApm="elasticapm",e.ElasticSearch="elasticsearch",e.GoogleCloud="googlecloud",e.GoogleCloudOTLP="googlecloudotlp",e.GrafanaCloudLoki="grafanacloudloki",e.GrafanaCloudPrometheus="grafanacloudprometheus",e.GrafanaCloudTempo="grafanacloudtempo",e.Greptime="greptime",e.Groundcover="groundcover",e.Honeycomb="honeycomb",e.HyperDX="hyperdx",e.Instana="instana",e.Jaeger="jaeger",e.Kafka="kafka",e.Kloudmate="kloudmate",e.Last9="last9",e.Lightstep="lightstep",e.LogzIo="logzio",e.Loki="loki",e.Lumigo="lumigo",e.Middleware="middleware",e.NewRelic="newrelic",e.Observe="observe",e.Odigos="odigos",e.OneUptime="oneuptime",e.OpenObserve="openobserve",e.Opsverse="opsverse",e.Oracle="oracle",e.OTLP="otlp",e.OTLPHttp="otlphttp",e.Prometheus="prometheus",e.Qryn="qryn",e.QrynOss="qryn-oss",e.Quickwit="quickwit",e.S3="s3",e.Seq="seq",e.Signalfx="signalfx",e.Signoz="signoz",e.Splunk="splunk",e.SplunkSapm="splunksapm",e.SplunkOtlp="splunkotlp",e.SumoLogic="sumologic",e.TelemetryHub="telemetryhub",e.Tempo="tempo",e.Tingyun="tingyun",e.Traceloop="traceloop",e.Uptrace="uptrace",e.VictoriaMetrics="victoriametrics",e.VictoriaMetricsCloud="victoriametricscloud",e.XRay="xray",e.Pyroscope="pyroscope"}(Fn||(Fn={})),function(e){e.Deployment="Deployment",e.DaemonSet="DaemonSet",e.StatefulSet="StatefulSet",e.CronJob="CronJob",e.Pod="Pod",e.StaticPod="StaticPod",e.Rollout="Rollout",e.ConfigMap="ConfigMap",e.DeploymentConfig="DeploymentConfig",e.InstrumentationConfig="InstrumentationConfig"}(Mn||(Mn={})),function(e){e.GolangCommunity="golang-community",e.NodejsCommunity="nodejs-community",e.PythonCommunity="python-community",e.JavaCommunity="java-community",e.DotNetCommunity="dotnet-community",e.RubyCommunity="ruby-community",e.PhpCommunity="php-community",e.GolangEnterprise="golang-enterprise",e.NodejsEnterprise="nodejs-enterprise",e.PythonEnterprise="python-enterprise",e.JavaEnterprise="java-enterprise",e.JavaEbpfInstrumentations="java-ebpf-instrumentations",e.OpentelemetryEbpfInstrumentation="opentelemetry-ebpf-instrumentation",e.DotNetLegacy="dotnet-legacy",e.DotNetEnterprise="dotnet-enterprise",e.RubyEnterprise="ruby-enterprise",e.CPlusPlusEnterprise="cplusplus-enterprise",e.MySqlEnterprise="mysql-enterprise"}(zn||(zn={})),function(e){e.Error="Error",e.Failure="Failure",e.Notice="Notice",e.Pending="Pending",e.Waiting="Waiting",e.Unsupported="Unsupported",e.Disabled="Disabled",e.Success="Success",e.Irrelevant="Irrelevant",e.Unknown="Unknown"}(Un||(Un={})),function(e){e.CodeAttributes="CodeAttributes",e.HeadersCollection="HeadersCollection",e.PayloadCollection="PayloadCollection",e.CustomInstrumentation="CustomInstrumentation",e.UnknownType="UnknownType"}(Bn||(Bn={})),function(e){e.Column="column",e.FilePath="filePath",e.Function="function",e.LineNumber="lineNumber",e.Namespace="namespace",e.StackTrace="stacktrace"}(jn||(jn={})),function(e){e.HeaderKeys="headerKeys"}(Wn||(Wn={})),function(e){e.Java="java",e.Golang="golang"}(Hn||(Hn={}));class Qn{className;methodName;constructor(e,t){this.className=e,this.methodName=t}Verify(){return!!this.className&&!!this.methodName}toString(){return this.Verify()?`${this.className}.${this.methodName}`:"[Faulty Java Probe]"}}class Zn{packageName;functionName;receiverName;receiverMethodName;constructor(e,t,n,o){this.packageName=e,this.functionName=t||"",this.receiverName=n||"",this.receiverMethodName=o||""}Verify(){return!!this.packageName&&(this.functionName?!(this.receiverMethodName||this.receiverName):!(!this.receiverMethodName||!this.receiverName))}toString(){return this.Verify()?this.functionName?`${this.packageName}.${this.functionName}`:this.receiverName&&this.receiverMethodName?`${this.packageName}.(${this.receiverName}).${this.receiverMethodName}`:"":"[Faulty Golang Probe]"}}!function(e){e.HttpRequest="httpRequest",e.HttpResponse="httpResponse",e.DbQuery="dbQuery",e.Messaging="messaging"}(Gn||(Gn={})),function(e){e.Healthy="Healthy",e.Updating="Updating",e.Degraded="Degraded",e.Failed="Failed",e.Down="Down",e.Unknown="Unknown"}(Xn||(Xn={})),function(e){e.Pending="Pending",e.Running="Running",e.Succeeded="Succeeded",e.Failed="Failed",e.Unknown="Unknown"}(Kn||(Kn={})),function(e){e.ContainerCreating="ContainerCreating",e.CrashLoopBackOff="CrashLoopBackOff",e.CreateContainerError="CreateContainerError",e.CreateContainerConfigError="CreateContainerConfigError",e.ErrImagePull="ErrImagePull",e.ErrImageNeverPull="ErrImageNeverPull",e.ImagePullBackOff="ImagePullBackOff",e.InvalidImageName="InvalidImageName",e.RegistryUnavailable="RegistryUnavailable",e.NetworkNotReady="NetworkNotReady",e.Running="Running",e.Completed="Completed",e.Error="Error",e.OOMKilled="OOMKilled",e.ContainerCannotRun="ContainerCannotRun",e.DeadlineExceeded="DeadlineExceeded",e.StartError="StartError"}(Vn||(Vn={})),function(e){e.Running="Running",e.Waiting="Waiting",e.Terminated="Terminated"}(Jn||(Jn={})),function(e){e.Logs="LOGS",e.Metrics="METRICS",e.Traces="TRACES",e.Profiles="PROFILES"}(Yn||(Yn={})),function(e){e.Logs="logs",e.Metrics="metrics",e.Traces="traces",e.Profiles="profiles"}(qn||(qn={}));const eo={[Yn.Logs]:qn.Logs,[Yn.Metrics]:qn.Metrics,[Yn.Traces]:qn.Traces,[Yn.Profiles]:qn.Profiles},to={[qn.Logs]:Yn.Logs,[qn.Metrics]:Yn.Metrics,[qn.Traces]:Yn.Traces,[qn.Profiles]:Yn.Profiles};var no;!function(e){e.SampledSpansOnly="sampled_spans_only",e.AllSpans="all_spans"}(no||(no={}));const oo="https://docs.odigos.io",ro="default",io="this-cluster",ao="This Cluster",so={SELECTED_DATA_STREAM:"SELECTED_DATA_STREAM",SELECTED_DATA_STREAM_WITH_PROXY:e=>`SELECTED_DATA_STREAM_${e}`,OVERVIEW_FILTERS:"OVERVIEW_FILTERS",DARK_MODE:"DARK_MODE"},lo={REQUIRED_FIELDS:"Required fields are missing",FIELD_IS_REQUIRED:"This field is required",FORBIDDEN:"Forbidden",ENTERPRISE_ONLY:(e="This")=>`${e} is an Enterprise feature. Please upgrade your plan.`,DEFINED_FOR_ALL_STREAMS:e=>`${e} are defined for all Data Streams.`,CANNOT_EDIT_RULE:"Cannot edit a system-managed instrumentation rule",CANNOT_DELETE_RULE:"Cannot delete a system-managed instrumentation rule",LATENCY_HTTP_ROUTE:'HTTP route must start with a forward slash "/"',READONLY_WARNING:"You're not allowed to create/update/delete in readonly mode",ILLEGAL_K8S_LABEL:'Must be 63 characters or less, must consist of alphanumeric characters, "-", "_", or ".", and must start & end with an alphanumeric character (e.g., my-name, 123.abc).',INVALID_VERSION:'Invalid version format, must be in the format of "major.minor.patch" (e.g. 1.0.0)'},co={NAMESPACE:"Namespace",NAME:"Name",KIND:"Kind",CONNECTION:"Connection",CONNECTIONS:"Connections",DATA_STREAM:"Data Stream",DATA_STREAMS:"Data Streams",STREAM_NAME:"Data Stream name",NAME_YOUR_STREAM:"Name your Data Stream",NAME_YOUR_STREAM_PLACEHOLDER:"e.g. Highest priority",STREAM_DESCRIPTION:"Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.",STREAM_CONFIRM:"Confirm your new Data Stream",RENAME_STREAM:e=>`Rename "${e}"`,DATA_STREAM_EXISTS_WARNING:(e,t)=>`A Data Stream with this name already exists, you can still rename the current "${e}", but it will merge into the existing "${t}".`,DATA_STREAM_MERGE_WARNING:(e,t)=>e?`A Data Stream named "${t}" already exists. Saving will merge "${e}" into "${t}" - both streams will share the same configuration going forward.`:`A Data Stream named "${t}" already exists. Saving will merge into "${t}" - the new stream will share the existing configuration going forward.`,ACTION:"Action",ACTIONS:"Actions",ADD_ACTION:"Add Action",ACTION_DETAILS:"Action Details",INSTRUMENTATION_RULE:"Instrumentation Rule",INSTRUMENTATION_RULES:"Instrumentation Rules",ADD_INSTRUMENTATION_RULE:"Add Instrumentation Rule",INSTRUMENTATION_RULE_DETAILS:"Instrumentation Rule Details",DESTINATION:"Destination",DESTINATIONS:"Destinations",ADD_DESTINATION:"Add Destination",ADD_DESTINATIONS:"Add Destinations",ADD_DESTINATION_DESCRIPTION:"Add a destination to send your telemetry data to. You can add multiple destinations.",DESTINATION_DETAILS:"Destination Details",SELECTED_DESTINATIONS:"Selected Destinations",SOURCE:"Source",SOURCES:"Sources",ADD_SOURCE:"Add Source",SOURCE_DETAILS:"Source Details",SELECT_SOURCES:"Select Sources",SELECTED_SOURCES:"Selected Sources",SELECT_SOURCES_DESCRIPTION:"Choose which sources to monitor in your pipeline.",NO_SOURCES:"No sources",NO_SOURCES_GO_BACK:"No sources selected. Please go back to select sources.",PLEASE_ADD_SOURCE:"Please add a source",NO_SOURCES_NAMESPACE:"No sources available in this namespace",TRY_SEARCH_OR_OTHER_NAMESPACE:"Try searching again or select another namespace.",PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES:"Please make sure your cluster has unignored namespaces",INSTALLATION:"Installation",SOURCES_SETUP:"Sources setup",DESTINATIONS_SETUP:"Destinations setup",SUMMARY:"Summary",REVIEW_SETUP:"Review your setup and confirm your choices.",NO_SOURCES_SELECTED:"No sources selected",ADD_SOURCE_PROMPT:"Add at least one source to start collecting data",NO_DESTINATIONS_SELECTED:"No destinations selected",ADD_DESTINATION_PROMPT:"Add destination so your data has somewhere to go",GET_STARTED_WITH:"Get started with",GET_STARTED_DESCRIPTION:"First, select the sources you want Odigos to monitor. Next, choose where your data should be sent by configuring destinations.",TYPE:"Type",NOTES:"Notes",STATUS:"Status",READONLY:"Readonly",LANGUAGE:"Language",VERSION:"Version",RUNTIME_VERSION:"Runtime Version",VERSION_PLACEHOLDER:"1.0.0",MONITORS:"Monitors",SIGNALS_FOR_PROCESSING:"Signals for Processing",MANAGED_BY_PROFILE:"Managed by Profile",TIER:"Tier",ENTERPRISE:"Enterprise",ENTERPRISE_TIER:"Enterprise Tier",COMMUNITY:"Community",COMMUNITY_TIER:"Community Tier",API_TOKEN:"API Token",API_TOKENS:"API Tokens",DESCRIBE_ODIGOS:"Describe Odigos",DESCRIBE_SOURCE:"Describe Source",OVERVIEW:"Overview",LIBRARIES:"Libraries",STANDARD_LIBRARY:"Standard Library",STANDARD:"Standard",PEER_SOURCES:"Peer Sources",PROFILING:"Profiling",INBOUND:"Inbound",OUTBOUND:"Outbound",INBOUND_DESCRIPTION:e=>`Services that send requests to ${e}`,OUTBOUND_DESCRIPTION:e=>`Services that ${e} sends requests to`,NO_INBOUND_CONNECTIONS_DESCRIPTION:"No services are currently sending requests to this source.",NO_OUTBOUND_CONNECTIONS_DESCRIPTION:"This source hasn't sent requests to other services yet.",NO_INBOUND_CONNECTIONS:"No inbound connections",NO_OUTBOUND_CONNECTIONS:"No outbound connections",COULD_NOT_FETCH_PEER_SOURCES:"Could not fetch peer sources",VIRTUAL:"Virtual",VIRTUAL_TOOLTIP:"This service is not instrumented/injected with Odigos, but we can still see it in the service map because it is connected to other services.",NO_RESULTS:"No results",NO_RESULTS_FOR_FILTER:e=>`No results matched the filter '${e}'`,POD:"Pod",PODS:"Pods",PODS_HEALTHY:"Pods are healthy",PODS_NOT_HEALTHY:"Pods are not healthy",NO_RUNNING_PODS:"No running pods",NO_RUNNING_PODS_SUBTITLE:"Check if you have any running pods and try again",AGENT_INJECTED:"Agent injected",INJECTIONS_AS_EXPECTED:"Injections as expected",AGENT_NOT_INJECTED:"Agent not injected",KUBERNETES_HEALTHY:"Kubernetes healthy",ODIGOS_HEALTHY:"Odigos healthy",HEALTHY:"Healthy",UNHEALTHY:"Unhealthy",NOT_HEALTHY:"Not Healthy",NODE:"Node",AGE:"Age",RUNNING_TIME:"Running Time",RUNNING_TIME_TOOLTIP:"Time elapsed since the container was last started and entered the Running state",NOT_RUNNING:"Not Running",RESTARTS:"Restarts",LATEST_REVISION:"Latest Revision",OLD_REVISION:"Old Revision",READY:"Ready",NOT_READY:"Not Ready",STARTED:"Started",NOT_STARTED:"Not Started",CRASHLOOP:"Crashloop",NO_CRASHLOOP:"No Crashloop",CRASHLOOP_BACKOFF:"Crashloop backoff",CANNOT_POOL_IMAGE:"Cannot pool image",DEVICE_NAME:"Device Name",INSTRUMENTED:"Instrumented",UNINSTRUMENTED:"Uninstrumented",INSTRUMENTED_WITH_DISTRO:e=>`Instrumented | ${e}`,DEBUG_COMMANDS:"Debug Commands",YAML:"YAML",YAML_FILES:"YAML Files",GET_POD_YAML:"Get Pod YAML",GET_POD_LOGS:"Get Pod Logs",DESCRIBE_POD:"Describe Pod",CONTAINER:"Container",CONTAINERS:"Containers",DETECTED_CONTAINERS:"Detected Containers",DETECTED_CONTAINERS_DESCRIPTION:"The system automatically instruments the containers it detects with a supported programming language.",NO_CONTAINERS_DETECTED:"No containers detected",DETECTED_PROCESSES:"Detected Processes",DETECTED_PROCESSES_DESCRIPTION:"The system automatically instruments the processes it detects with a supported programming language.",NO_PROCESSES_DETECTED:"No processes detected",CONTAINER_NAME:"Container Name",PROCESS:"Process",PROCESSES:"Processes",PROCESS_FALLBACK_NAME:"process",OPEN_IN_POD_TAB:"Open in 'Pod' tab",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",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",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"},uo={GET_STARTED:"Get started",ADD:"Add",ADD_NEW:"Add New",NEW:"New",SELECT:"Select",CREATE:"Create",UPDATE:"Update",EDIT:"Edit",DELETE:"Delete",RESTART:"Restart",RESTART_POD:"Restart pod",REFRESH:"Refresh",CANCEL:"Cancel",DONE:"Done",SAVE:"Save",BACK:"Back",CONFIRM:"Confirm",NEXT:"Next",TEST:"Test",TEST_CONNECTION:"Test Connection",INSTRUMENT:"Instrument",UNINSTRUMENT:"Uninstrument"},po=(e,t)=>e===Rn.Success?co.HEALTHY:e===Rn.Error?co.NOT_HEALTHY:nn(t),ho=e=>{if(!e)return null;switch(e){case Un.Irrelevant:return null;case Un.Failure:case Un.Error:return Rn.Error;case Un.Notice:return Rn.Warning;case Un.Pending:case Un.Waiting:return Rn.Loading;case Un.Unsupported:case Un.Disabled:return Rn.Disabled;case Un.Success:return Rn.Success;case Un.Unknown:default:return Rn.Info}},go=(e,t,n="reason",o)=>{const r=ho(e?.status);return r?{key:`desired-status-${e?.name}`,status:r,leftIcon:t||(r===Rn.Success?l:c),label:o||("reason"===n?nn(e?.reasonEnum):po(r,e?.reasonEnum)),tooltip:e?.message,textSize:rn.XXXS,invertColors:!0,useSecondaryTone:!0}:null},mo=e=>e.charAt(0).toUpperCase()+e.slice(1),fo=e=>{const t=e=>e.filter(e=>"object"==typeof e&&null!==e?""!==e.key&&""!==e.value:""!==e),n=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>""!==e&&""!==t).map(([e,o])=>Array.isArray(o)?[e,t(o)]:"object"==typeof o&&null!==o?[e,n(o)]:[e,o]));return Object.entries(e).reduce((e,[o,r])=>{try{const i=JSON.parse(r);Array.isArray(i)?e[o]=JSON.stringify(t(i)):e[o]="object"==typeof i&&null!==i?JSON.stringify(n(i)):r}catch(i){"object"==typeof r&&null!==r?Array.isArray(r)?e[o]=JSON.stringify(t(r)):e[o]=JSON.stringify(n(r)):e[o]=r}return e},{})};var yo;!function(e){e.SIGNALS="SIGNALS"}(yo||(yo={}));const bo=(e,t,n)=>{if(!e||!e.length)return!0;if(1===e.length)return"true"==e[0];const[o,r,i]=e;if(o===yo.SIGNALS)switch(r){case"INCLUDES":return t?.includes(i);case"EXCLUDES":return!t?.includes(i);default:return!0}const a=n.find(e=>e.name===o||e.key===o);if(!a)return!1;const s=null==a.value?"":String(a.value);switch(r){case"===":case"==":return s===i;case"!==":case"!=":return s!==i;case">":return Number(s)>Number(i);case"<":return Number(s)<Number(i);case">=":return Number(s)>=Number(i);case"<=":return Number(s)<=Number(i);default:return!0}},$o=e=>JSON.parse(JSON.stringify(e)),vo=(e,t)=>t.split(".").reduce((e,t)=>e?.[t],e),xo=(e,t,n)=>{const o=t.split(".");let r=e;for(let e=0;e<o.length-1;e++)o[e]in r&&"object"==typeof r[o[e]]||(r[o[e]]={}),r=r[o[e]];r[o[o.length-1]]=n},So=(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},wo=(e,t)=>{let n=[...e];return t.monitors?.length&&(n=n.filter(e=>!!t.monitors?.find(t=>e.exportedSignals[t.id]))),n},Eo=(e,t)=>t?e.filter(e=>e.dataStreamNames.includes(t)||!e.dataStreamNames.length):[],Co=(e,t)=>{let n=e;if(t.namespaces?.length){const e=new Set(t.namespaces.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.namespace))}if(t.kinds?.length){const e=new Set(t.kinds.map(({id:e})=>e));n=n.filter(({id:t})=>e.has(t.kind))}if(t.languages?.length){const e=new Set(t.languages.map(({id:e})=>e));n=n.filter(({runtimeInfo:t,containers:n})=>t?.detectedLanguages?.some(t=>e.has(t))||n?.some(t=>{const n=t.overrides?.runtimeInfo?.language??t.runtimeInfo?.language;return!!n&&e.has(n)}))}if(t.podsAgentInjectionStatus?.length){const e=new Set(t.podsAgentInjectionStatus.map(({id:e})=>e));n=n.filter(({podsAgentInjectionStatus:t})=>e.has(t?.reasonEnum??"")||e.has(t?.message??""))}return t.onlyErrors&&(n=n.filter(e=>ho(e.workloadOdigosHealthStatus?.status)===Rn.Error)),n},To=(e,t)=>t?e.filter(e=>e.dataStreamNames?.includes(t)||t===ro&&!e.dataStreamNames?.length):[],Ao=(e,t="",n={})=>{for(const o in e)if(e.hasOwnProperty(o)){const r=e[o],i=t?`${t}.${o}`:o;null===r||"object"!=typeof r||Array.isArray(r)?Array.isArray(r)?r.forEach((e,t)=>{const o=`${i}[${t}]`;null!==e&&"object"==typeof e?Ao(e,o,n):n[o]=e}):n[i]=r:Ao(r,i,n)}return n},ko=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]}`},Io=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 o=e[t%16];t++;return("1"===n?o:"0"===n?63&o|128:15&o|64).toString(16)})},Ro=e=>({[un.K8sAttributes]:m,[un.AddClusterInfo]:g,[un.DeleteAttributes]:h,[un.PiiMasking]:p,[un.RenameAttributes]:u,[un.ExtractAttribute]:d,[un.URLTemplatization]:d}[e]||f),Oo=e=>{if(!e)return Do([]);if(Array.isArray(e))return Do(e);const t=Object.values(e).reduce((e,t)=>{if(null!=t){const n=ho(t.status);n&&e.push({status:n,type:t.name??"",reason:t.reasonEnum??null,message:t.message??null})}return e},[]);return Do(t)},Do=e=>{const t=e?.filter(({status:e})=>e===Rn.Error),n=e?.filter(({status:e})=>e===Rn.Warning),o=e?.filter(({status:e})=>e===Rn.Disabled),r=e?.filter(({status:e})=>e===Rn.Loading),i=t.length>0,a=n.length>0,s=o.length>0;return{errors:t,hasErrors:i,warnings:n,hasWarnings:a,disableds:o,hasDisableds:s,loadings:r,hasLoadings:r.length>0,priorotizedStatus:i?Rn.Error:a?Rn.Warning:s?Rn.Info:void 0}},_o=e=>{const t=e?.reduce((e,t)=>t.agentEnabled?.agentEnabled?e+1:e,0);return`${t}/${e?.length||0} instrumented`},Lo=e=>({[Cn.Java]:D,[Cn.Go]:O,[Cn.JavaScript]:R,[Cn.Python]:N,[Cn.DotNet]:I,[Cn.CSharp]:k,[Cn.CPlusPlus]:A,[Cn.Php]:T,[Cn.Ruby]:C,[Cn.Rust]:E,[Cn.Swift]:w,[Cn.Elixir]:S,[Cn.MySql]:x,[Cn.Nginx]:v,[Cn.Postgres]:$,[Cn.Redis]:b,[Cn.Kafka]:y,[Cn.Ignored]:f,[Cn.Unknown]:f,[Cn.Processing]:f,[Cn.NoContainers]:f,[Cn.NoRunningPods]:f}[e]||f),Po=e=>e?e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Cn.Unknown:Cn.Unknown,Fo=e=>e?e.overrides?.runtimeInfo?.runtimeVersion??e.runtimeInfo?.runtimeVersion??null:null,Mo=e=>e?.map(e=>Lo(Po(e)))||[],zo=e=>e?.map(e=>Lo(e))||[],Uo=e=>e.runtimeInfo?.detectedLanguages?.length?zo(e.runtimeInfo?.detectedLanguages):Mo(e.containers),Bo=(e,t)=>{const n={[Fn.Alauda]:Me,[Fn.AlibabaCloud]:Fe,[Fn.AppDynamics]:Pe,[Fn.Axiom]:Le,[Fn.AzureBlob]:_e,[Fn.AzureMonitor]:De,[Fn.BetterStack]:Oe,[Fn.Bonree]:Re,[Fn.Causely]:Ne,[Fn.Checkly]:Ie,[Fn.Chronosphere]:ke,[Fn.ClickHouse]:Ae,[Fn.CloudWatch]:Te,[Fn.Coralogix]:Ce,[Fn.Dash0]:Ee,[Fn.Datadog]:we,[Fn.Dynamic]:q,[Fn.Dynatrace]:Se,[Fn.ElasticApm]:xe,[Fn.ElasticSearch]:ve,[Fn.GoogleCloud]:$e,[Fn.GoogleCloudOTLP]:$e,[Fn.GrafanaCloudLoki]:be,[Fn.GrafanaCloudPrometheus]:be,[Fn.GrafanaCloudTempo]:be,[Fn.Greptime]:ye,[Fn.Groundcover]:fe,[Fn.Honeycomb]:me,[Fn.HyperDX]:ge,[Fn.Instana]:he,[Fn.Jaeger]:pe,[Fn.Kafka]:y,[Fn.Kloudmate]:ue,[Fn.Last9]:de,[Fn.Lightstep]:ce,[Fn.LogzIo]:le,[Fn.Loki]:se,[Fn.Lumigo]:ae,[Fn.Middleware]:ie,[Fn.NewRelic]:re,[Fn.Observe]:oe,[Fn.Odigos]:ne,[Fn.OneUptime]:te,[Fn.OpenObserve]:ee,[Fn.Opsverse]:Z,[Fn.Oracle]:Q,[Fn.OTLP]:q,[Fn.OTLPHttp]:q,[Fn.Prometheus]:Y,[Fn.Qryn]:J,[Fn.QrynOss]:V,[Fn.Quickwit]:K,[Fn.S3]:X,[Fn.Seq]:G,[Fn.Signalfx]:W,[Fn.Signoz]:H,[Fn.Splunk]:W,[Fn.SplunkSapm]:W,[Fn.SplunkOtlp]:W,[Fn.SumoLogic]:j,[Fn.TelemetryHub]:B,[Fn.Tempo]:U,[Fn.Tingyun]:z,[Fn.Traceloop]:M,[Fn.Uptrace]:F,[Fn.VictoriaMetrics]:P,[Fn.VictoriaMetricsCloud]:P,[Fn.XRay]:L,[Fn.Pyroscope]:_}[e];return n&&!t?{icon:n}:{iconSrc:`https://d15jtxgb40qetw.cloudfront.net/${e}.svg`}},jo=e=>({[An.Namespace]:We,[An.Source]:je,[An.Destination]:Be,[An.Action]:d,[An.InstrumentationRule]:Ue,[An.SamplingRule]:ze}[e]),Wo=e=>"ruleId"in e&&e.ruleId?e.ruleId:"id"in e&&"string"==typeof e.id&&e.id||"id"in e&&"object"==typeof e.id&&e.id.namespace&&e.id.kind&&e.id.name?e.id:"namespace"in e&&e.namespace&&"kind"in e&&e.kind&&"name"in e&&e.name?{namespace:e.namespace,name:e.name,kind:e.kind}:"name"in e&&e.name?e.name:void 0,Ho=e=>e?"string"==typeof e?e:`${e.namespace}/${e.kind}/${e.name}`:"",Go=e=>Ho(Wo(e)),Xo=(e,t,n)=>{const{extended:o,prioritizeDisplayName:r}=n||{};let i="",a="";switch(t){case An.InstrumentationRule:const t=e;i=t.type,a=t.ruleName;break;case An.Source:const n=e;i=n.id.name,a=n.serviceName||"";break;case An.Action:const o=e;i=o.type,a=o.name||"";break;case An.Destination:const r=e;i=r.destinationType.displayName,a=r.name;break;case An.Namespace:const s=e;i=s.name,a=s.name}return o?i+(a&&a!==i?` (${a})`:""):r&&a||i},Ko=(e,t)=>{if(t===An.Source){const t={namespace:"",name:"",kind:""};return e.split("&").forEach(e=>{const[n,o]=e.split("=");t[n]=o}),t}return e},Vo=e=>({[Bn.CodeAttributes]:Ke,[Bn.CustomInstrumentation]:Xe,[Bn.HeadersCollection]:Ge,[Bn.PayloadCollection]:He,[Bn.UnknownType]:f}[e]||f),Jo=e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??Cn.Unknown,Yo=e=>{const{numberOfInstances:t,containers:n}=e;if(!n)return t&&t>0?Cn.Processing:Cn.NoRunningPods;const o=n?.filter(e=>Jo(e)!==Cn.Ignored);if(!o.length)return Cn.NoContainers;const r=o.find(e=>Jo(e)!==Cn.Unknown);return r?Jo(r):Cn.Unknown},qo=(e,t,n)=>(t===An.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},Qo=e=>({[Yn.Logs]:Ye,[Yn.Metrics]:Je,[Yn.Traces]:Ve,[Yn.Profiles]:ne}[e]),Zo=(e,t)=>Object.values(rn).reduce((n,o)=>Math.abs(t[o]-e)<Math.abs(t[n]-e)?o:n),er=e=>{if(!e)return ne;return{[Sn.K8s]:m,[Sn.Vm]:qe}[e]},tr=e=>{if(!e)return"Unknown";return{[Sn.K8s]:"Kubernetes Cluster",[Sn.Vm]:"Virtual Machine"}[e]},nr=(e,t,n)=>{const o=e[t];return o?o.flatMap(e=>{const o=e[n],r=[];return void 0!==o&&(Array.isArray(o)?r.push(...o):r.push(o)),r.push(...nr(e,t,n)),r}):[]},or=(e,t)=>{if(t===An.Source){let t="";return Object.entries(e).forEach(([e,n])=>{t+=`${e}=${n}&`}),t.slice(0,-1),t}return e},rr=(e,t,n)=>{switch(n=n??"500",t){case Rn.Default:return e.v2.colors.purple[n];case Rn.Info:return e.v2.colors.blue[n];case Rn.Error:return e.v2.colors.red[n];case Rn.Warning:return e.v2.colors.yellow[n];case Rn.Success:return e.v2.colors.green[n];case Rn.Loading:case Rn.Disabled:case Rn.Unknown:return e.v2.colors.silver[n];default:return e.v2.colors.white[500]}},ir=e=>{switch(e){case Xn.Updating:case Kn.Pending:case Vn.ContainerCreating:case Jn.Waiting:return Rn.Info;case Xn.Healthy:case Kn.Succeeded:case Kn.Running:case Vn.Running:case Jn.Running:return Rn.Success;case Xn.Degraded:return Rn.Warning;case Xn.Failed:case Kn.Failed:case Vn.Error:case Vn.CrashLoopBackOff:case Vn.CreateContainerError:case Vn.CreateContainerConfigError:case Vn.ErrImagePull:case Vn.ErrImageNeverPull:case Vn.ImagePullBackOff:case Vn.InvalidImageName:case Vn.RegistryUnavailable:case Vn.NetworkNotReady:case Vn.OOMKilled:case Vn.ContainerCannotRun:case Jn.Terminated:case Vn.DeadlineExceeded:case Vn.StartError:return Rn.Error;case Xn.Down:case Vn.Completed:return Rn.Disabled;case Xn.Unknown:case Kn.Unknown:default:return Rn.Unknown}},ar=o.div`
|
|
42
|
-
border-radius: 100%;
|
|
43
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
44
|
-
position: relative;
|
|
45
|
-
`,sr=o.div`
|
|
46
|
-
width: 80px;
|
|
47
|
-
height: 80px;
|
|
48
|
-
border-radius: 100%;
|
|
49
|
-
border: 4px solid ${({theme:e})=>e.v2.colors.green[300]};
|
|
50
|
-
border-right-color: transparent;
|
|
51
|
-
border-left-color: transparent;
|
|
52
|
-
border-bottom-color: transparent;
|
|
53
|
-
animation: spin 1s linear infinite;
|
|
54
|
-
@keyframes spin {
|
|
55
|
-
to {
|
|
56
|
-
transform: rotate(360deg);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
`,lr=o(dn)`
|
|
60
|
-
position: absolute;
|
|
61
|
-
top: 50%;
|
|
62
|
-
left: 50%;
|
|
63
|
-
transform: translate(-50%, -50%);
|
|
64
|
-
`,cr=({percentage:n})=>t(ar,{children:[e(sr,{}),"number"==typeof n?e(lr,{size:rn.M,weight:500,nowrap:!0,children:`${n}%`}):null]}),dr={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 ur(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 o=(e.match(/[^0-9]*$/)||"").toString();return dr[o]?{value:t,unit:o}:{value:t,unit:"px"}}function pr(e){const t=ur(e);return`${t.value}${t.unit}`}const hr=((e,t,n)=>{const o=`react-spinners-${e}-${n}`;if("undefined"==typeof window||!window.document)return o;const r=document.createElement("style");document.head.appendChild(r);const i=r.sheet,a=`\n @keyframes ${o} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),o})("SpinnerOld","50% {opacity: 0.3} 100% {opacity: 1}","fade"),gr=({loading:n=!0,color:o,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),u=o||d.text.secondary;if(!n)return null;const{value:p}=ur(2),h=p+4.2,g=h/2+h/5.5,m=4*h*r,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:r,...l,...s},y=(e,t)=>({position:"absolute",width:pr(1.5),height:pr(4),borderRadius:pr(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${hr} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return t("span",{style:f,...c,children:[e("span",{style:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...y(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...y(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...y(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),e("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...y(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},mr=o.div`
|
|
65
|
-
width: ${({$size:e})=>e}px;
|
|
66
|
-
height: ${({$size:e})=>e}px;
|
|
67
|
-
border-radius: 100%;
|
|
68
|
-
background: ${({$color:e})=>e};
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
justify-content: center;
|
|
72
|
-
`,fr=({scale:t,icon:n})=>{const o=i();return e(mr,{$size:45*t,$color:"rgba(80, 246, 232, 0.10)",children:e(mr,{$size:43*t,$color:"rgba(80, 246, 232, 0.20)",children:e(mr,{$size:39*t,$color:"rgba(80, 246, 232, 0.40)",children:e(mr,{$size:33*t,$color:"rgba(80, 246, 232, 0.60)",children:e(mr,{$size:23*t,$color:"#50F6E8",children:e(n,{size:16*t,fill:o.v2.colors.black[500]})})})})})})},yr=434,br=635,$r=o.div`
|
|
73
|
-
width: ${434}px;
|
|
74
|
-
height: ${635}px;
|
|
75
|
-
display: flex;
|
|
76
|
-
flex-direction: column;
|
|
77
|
-
align-items: center;
|
|
78
|
-
justify-content: center;
|
|
79
|
-
padding: 16px;
|
|
80
|
-
background: linear-gradient(180deg, #0b0517 2.82%, #190d31 100%);
|
|
81
|
-
position: relative;
|
|
82
|
-
`,vr=o.div`
|
|
83
|
-
position: absolute;
|
|
84
|
-
top: 50%;
|
|
85
|
-
left: 50%;
|
|
86
|
-
transform: translate(-50%, -50%);
|
|
87
|
-
`,xr=()=>t($r,{children:[e(vr,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"464",height:"464",viewBox:"0 0 464 464",fill:"none",children:[e("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)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65835",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(201.232 229.641) scale(231.217)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.41",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.13"}),e("stop",{offset:"0.67",stopColor:"#7C3BFF",stopOpacity:"0.18"}),e("stop",{offset:"0.75",stopColor:"#7C3BFF",stopOpacity:"0.25"}),e("stop",{offset:"0.83",stopColor:"#7C3BFF",stopOpacity:"0.33"}),e("stop",{offset:"0.89",stopColor:"#7C3BFF",stopOpacity:"0.44"}),e("stop",{offset:"0.95",stopColor:"#7C3BFF",stopOpacity:"0.56"}),e("stop",{offset:"1",stopColor:"#7C3BFF",stopOpacity:"0.7"})]})})]})}),e(vr,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"432",height:"432",viewBox:"0 0 432 432",fill:"none",children:[e("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)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65836",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(204.229 214.376) scale(216.276)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.38",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.52",stopColor:"#7C3BFF",stopOpacity:"0.13"}),e("stop",{offset:"0.62",stopColor:"#7C3BFF",stopOpacity:"0.18"}),e("stop",{offset:"0.69",stopColor:"#7C3BFF",stopOpacity:"0.25"}),e("stop",{offset:"0.76",stopColor:"#7C3BFF",stopOpacity:"0.33"}),e("stop",{offset:"0.82",stopColor:"#7C3BFF",stopOpacity:"0.44"}),e("stop",{offset:"0.88",stopColor:"#7C3BFF",stopOpacity:"0.57"}),e("stop",{offset:"0.93",stopColor:"#7C3BFF",stopOpacity:"0.72"}),e("stop",{offset:"0.97",stopColor:"#7C3BFF",stopOpacity:"0.88"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(vr,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"374",height:"374",viewBox:"0 0 374 374",fill:"none",children:[e("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)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65837",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(166.792 184.246) scale(186.963)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),e("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),e("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),e("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),e("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),e("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),e("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(vr,{children:t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"257",height:"257",viewBox:"0 0 257 257",fill:"none",children:[e("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)"}),e("defs",{children:t("radialGradient",{id:"paint0_radial_164_65838",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(113.263 126.219) scale(128.08)",children:[e("stop",{stopColor:"#7C3BFF",stopOpacity:"0.1"}),e("stop",{offset:"0.31",stopColor:"#7C3BFF",stopOpacity:"0.11"}),e("stop",{offset:"0.45",stopColor:"#7C3BFF",stopOpacity:"0.14"}),e("stop",{offset:"0.56",stopColor:"#7C3BFF",stopOpacity:"0.19"}),e("stop",{offset:"0.65",stopColor:"#7C3BFF",stopOpacity:"0.26"}),e("stop",{offset:"0.73",stopColor:"#7C3BFF",stopOpacity:"0.35"}),e("stop",{offset:"0.8",stopColor:"#7C3BFF",stopOpacity:"0.46"}),e("stop",{offset:"0.86",stopColor:"#7C3BFF",stopOpacity:"0.6"}),e("stop",{offset:"0.92",stopColor:"#7C3BFF",stopOpacity:"0.76"}),e("stop",{offset:"0.98",stopColor:"#7C3BFF",stopOpacity:"0.93"}),e("stop",{offset:"1",stopColor:"#7C3BFF"})]})})]})}),e(vr,{children:e(ne,{size:112})})]}),Sr=o.div`
|
|
88
|
-
width: ${({$size:e})=>e}px;
|
|
89
|
-
height: ${({$size:e})=>e}px;
|
|
90
|
-
border-radius: 100%;
|
|
91
|
-
background: ${({$color:e})=>e};
|
|
92
|
-
display: flex;
|
|
93
|
-
align-items: center;
|
|
94
|
-
justify-content: center;
|
|
95
|
-
`,wr=({scale:t=1,icon:n})=>{const o=i();return e(Sr,{$size:73*t,$color:"rgba(106, 42, 255, 0.10)",children:e(Sr,{$size:71*t,$color:"rgba(106, 42, 255, 0.20)",children:e(Sr,{$size:65*t,$color:"rgba(106, 42, 255, 0.40)",children:e(Sr,{$size:56*t,$color:"rgba(106, 42, 255, 0.60)",children:e(Sr,{$size:39*t,$color:o.v2.colors.purple[500],children:e(n,{size:32*t,fill:o.v2.colors.white[500]})})})})})})},Er=o.div`
|
|
96
|
-
flex: 1;
|
|
97
|
-
align-self: stretch;
|
|
98
|
-
min-height: 0;
|
|
99
|
-
display: flex;
|
|
100
|
-
flex-direction: column;
|
|
101
|
-
gap: ${({$gap:e=24})=>e}px;
|
|
102
|
-
overflow-y: auto;
|
|
103
|
-
overflow-x: auto;
|
|
104
|
-
padding: 12px;
|
|
105
|
-
`,Cr=o.div`
|
|
106
|
-
position: relative;
|
|
107
|
-
|
|
108
|
-
// inherit all the properties of the parent (PageContent)
|
|
109
|
-
flex: inherit;
|
|
110
|
-
align-self: inherit;
|
|
111
|
-
min-height: inherit;
|
|
112
|
-
display: inherit;
|
|
113
|
-
flex-direction: inherit;
|
|
114
|
-
gap: inherit;
|
|
115
|
-
`,Tr=o.div`
|
|
116
|
-
padding: ${({$padding:e})=>e||"12px"};
|
|
117
|
-
`,Ar=o.div`
|
|
118
|
-
display: flex;
|
|
119
|
-
flex-direction: row;
|
|
120
|
-
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
121
|
-
align-items: ${({$alignItems:e="center"})=>e};
|
|
122
|
-
justify-content: ${({$justifyContent:e="unset"})=>e};
|
|
123
|
-
gap: ${({$gap:e=2})=>e}px;
|
|
124
|
-
width: ${({$width:e})=>e||"unset"};
|
|
125
|
-
height: ${({$height:e})=>e||"unset"};
|
|
126
|
-
margin: ${({$margin:e="unset"})=>e};
|
|
127
|
-
padding: ${({$padding:e="unset"})=>e};
|
|
128
|
-
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
129
|
-
`,kr=o.div`
|
|
130
|
-
display: flex;
|
|
131
|
-
flex-direction: column;
|
|
132
|
-
flex-wrap: ${({$wrap:e="unset"})=>e};
|
|
133
|
-
align-items: ${({$alignItems:e="unset"})=>e};
|
|
134
|
-
justify-content: ${({$justifyContent:e="unset"})=>e};
|
|
135
|
-
gap: ${({$gap:e=2})=>e}px;
|
|
136
|
-
width: ${({$width:e})=>e||"unset"};
|
|
137
|
-
height: ${({$height:e})=>e||"unset"};
|
|
138
|
-
margin: ${({$margin:e="unset"})=>e};
|
|
139
|
-
padding: ${({$padding:e="unset"})=>e};
|
|
140
|
-
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
141
|
-
`,Ir=o(kr)`
|
|
142
|
-
width: ${({$width:e})=>e||"100%"};
|
|
143
|
-
height: ${({$height:e})=>e||"unset"};
|
|
144
|
-
padding: ${({$padding:e})=>e||"unset"};
|
|
145
|
-
align-items: center;
|
|
146
|
-
justify-content: center;
|
|
147
|
-
`,Nr=o.div`
|
|
148
|
-
display: flex;
|
|
149
|
-
flex-direction: column;
|
|
150
|
-
padding: 12px;
|
|
151
|
-
overflow-y: scroll;
|
|
152
|
-
`,Rr=o.div`
|
|
153
|
-
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
154
|
-
top: 0;
|
|
155
|
-
left: 0;
|
|
156
|
-
right: 0;
|
|
157
|
-
bottom: 0;
|
|
158
|
-
// Sits at the modal/drawer layer; rendered before the surface in JSX so the surface
|
|
159
|
-
// visually stacks above it via DOM order while sharing the same z-index level.
|
|
160
|
-
z-index: ${({theme:e})=>e.v2.zIndex.modal};
|
|
161
|
-
background: rgba(0, 0, 0, 0.6);
|
|
162
|
-
backdrop-filter: blur(2px);
|
|
163
|
-
`,Or=o.div`
|
|
164
|
-
width: 800px;
|
|
165
|
-
min-height: ${({$minHeight:e})=>e||"unset"};
|
|
166
|
-
height: ${({$isNotModal:e})=>e?"fit-content":"calc(100vh - 350px)"};
|
|
167
|
-
margin: ${({$isNotModal:e})=>e?"64px 0 0 0":"64px 7vw 32px 7vw"};
|
|
168
|
-
padding: 0 2px;
|
|
169
|
-
overflow-y: scroll;
|
|
170
|
-
`,Dr=o(kr)`
|
|
171
|
-
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
172
|
-
width: 100%;
|
|
173
|
-
`,_r=o(Ar)`
|
|
174
|
-
gap: 16px;
|
|
175
|
-
padding: 16px;
|
|
176
|
-
`,Lr=o.div`
|
|
177
|
-
width: 100%;
|
|
178
|
-
max-height: ${({$maxHeight:e})=>e||"unset"};
|
|
179
|
-
overflow-y: auto;
|
|
180
|
-
`,Pr=a`
|
|
181
|
-
0% {
|
|
182
|
-
background-position: 0% 50%;
|
|
183
|
-
}
|
|
184
|
-
100% {
|
|
185
|
-
background-position: 100% 50%;
|
|
186
|
-
}
|
|
187
|
-
`,Fr=o(dn)`
|
|
188
|
-
background: ${({$titleColor:e,$gradientColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
189
|
-
background-size: 250% 100%; /* Expand background to allow movement */
|
|
190
|
-
background-clip: text;
|
|
191
|
-
color: transparent;
|
|
192
|
-
animation: ${Pr} 1s reverse linear infinite;
|
|
193
|
-
`,Mr=e=>{const t=Math.max(0,Date.now()-e),n=Math.floor(t/1e3),o=Math.floor(n/60),r=n%60;return`${String(o).padStart(2,"0")}:${String(r).padStart(2,"0")}`},zr=({icon:n,title:o,titleColor:r,titleSize:a=rn.S,subTitle:s,subTitleColor:l,subTitleSize:c=rn.XXXS,startedAt:d,withGradient:u,gradientColor:p,withSpinner:h,withSpinnerOld:g,scaleSpinnerOld:m=1,percentage:f,withVisual:y,visualIcon:b=Qe})=>{const $=i(),[v,x]=Mt(()=>d?Mr(d):"");zt(()=>{if(!d)return;x(Mr(d));const e=setInterval(()=>x(Mr(d)),1e3);return()=>clearInterval(e)},[d]);const S=r||$.v2.colors.white[500],w=l||$.v2.colors.silver[200],E=p||$.v2.colors.black[500];return t(kr,{$gap:16,$alignItems:"center",children:[y?e(fr,{scale:1.7,icon:b}):h?e(cr,{percentage:f}):g?e(gr,{scale:m}):null,(o||s||d||n)&&t(kr,{$gap:8,$alignItems:"center",children:[t(Ar,{$gap:4,children:[n&&e(n,{}),u?e(Fr,{align:"center",size:a,$titleColor:S,$gradientColor:E,children:o}):e(dn,{align:"center",size:a,color:S,children:o})]}),s?e(dn,{align:"center",size:c,color:w,children:s}):null,v?e(dn,{align:"center",size:c,color:S,children:v}):null]})]})},Ur=(e,t)=>({[Rn.Default]:n=>ne({fill:rr(t,e,"300"),...n}),[Rn.Info]:n=>nt({fill:rr(t,e,"400"),...n}),[Rn.Error]:n=>tt({fill:rr(t,e,"500"),...n}),[Rn.Warning]:n=>et({fill:rr(t,e,"500"),...n}),[Rn.Success]:n=>l({fill:rr(t,e,"500"),...n}),[Rn.Loading]:e=>zr({withSpinnerOld:!0,...e}),[Rn.Disabled]:n=>c({fill:rr(t,e,"400"),...n}),[Rn.Unknown]:n=>Ze({fill:rr(t,e,"300"),...n})}[e]),Br=e=>{switch(e){case Un.Success:return Rn.Success;case Un.Error:case Un.Failure:return Rn.Error;case Un.Notice:return Rn.Warning;case Un.Unsupported:case Un.Unknown:return Rn.Info;case Un.Irrelevant:case Un.Disabled:return Rn.Disabled;case Un.Waiting:return Rn.Loading;case Un.Pending:default:return Rn.Default}},jr=(e,t)=>{const n=t.find(([t,n])=>e>=t&&(null===n||e<=n));return n?.[2]||null},Wr={redis:b,mysql:x,postgresql:$,postgres:$,kafka:y,elasticsearch:ve,clickhouse:Ae,oracle:Q,aws:ot},Hr={sts:mt,dynamodb:gt,s3:X,sqs:ht,sns:pt,lambda:ut,kinesis:dt,ec2:ct,apigateway:lt,apigatewayv2:lt,bedrock:st,bedrockruntime:st,eventbridge:at,sfn:it,stepfunctions:it,secretsmanager:rt,cloudwatch:Te},Gr=e=>{const t=e.attributes,n=t["db.system"];if(n){const e=Wr[n.toLowerCase()];if(e)return e}const o=t["messaging.system"];if(o){const e=Wr[o.toLowerCase()];if(e)return e}const r=t["rpc.system"];if(r?.toLowerCase().includes("aws")){const e=t["rpc.service"]?.toLowerCase();if(e){const t=Hr[e];if(t)return t}return ot}const i=e.serviceName.toLowerCase();for(const[e,t]of Object.entries(Wr))if(i.includes(e))return t;return Be},Xr=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};const{namespace:t,name:n,kind:o}=e;return{namespace:t,name:n,kind:o}};function Kr(e,t){if(!e)return t;if("object"==typeof e)return e;try{return JSON.parse(e)}catch(e){return t}}const Vr=(e,t)=>{const n=[],o=JSON.parse(JSON.stringify(e));for(const e of o){const o=Kr(t.fields,{}),r=e.items.findIndex(e=>e.type===t.destinationType.type);-1!==r&&n.push(...e.items[r].fields.map(e=>({...e,initialValue:o[e.name]})))}return n},Jr=(e,t)=>{const n=e=>e?.some(({healthy:e})=>e.status!==Rn.Success);return e?.length?e.some(({instrumentationInstances:e})=>n(e)):n(t)??!1};function Yr(e){if(!e||0===e.length)return null;const t=[],n=[],o=[];for(const r of e){if(!r)continue;const e=r.workloadName??"",i=r.workloadKind??"",a=r.workloadNamespace??"",s=r.workloadLanguage??"";e||i?t.push({namespace:a,kind:i,name:e}):a&&n.push(a),s&&o.push(s)}return 0===t.length&&0===n.length&&0===o.length?null:{sources:t,namespaces:n,languages:o}}function qr(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 Qr(e){const{sourcesScopes:t,...n}=e;return{...n,sourceScopes:Yr(t??null)}}function Zr(e){const{sourceScopes:t,...n}=e;return{...n,sourcesScopes:qr(t??null)}}const ei=e=>Array.isArray(e)?!e?.length:"object"==typeof e?!Object.keys(e||{}).length:[void 0,null,""].includes(e),ti=e=>{if(!e)return!1;if(e.length>63)return!1;return/^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/.test(e)},ni=(e,t=0)=>{const n=(new Date).getTime();return new Date(e).getTime()-n<=t},oi=e=>{const t=String(e).trim().toLowerCase();return["true","false","1","0"].includes(t)},ri=(e,t=0)=>(new Date).getTime()-new Date(e).getTime()>=t,ii=/^(\d+\.)?(\d+\.)?(\*|\d+)$/,ai=e=>ii.test(e),si=e=>e?.map(({status:e,type:t,reason:n,message:o})=>({status:e?.toLowerCase(),type:nn(t),reason:n?nn(n):"",message:o}))||[],li=(e,t)=>{const n=Kr(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}))},ci=e=>e?Object.keys(e).filter(t=>e[t]).map(e=>to[e]):[],di=e=>e?Object.keys(e).filter(t=>e[t].supported).map(e=>to[e]):[],ui=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},pi=e=>e.replace(/[^\d]/g,""),hi=e=>{const t=String(e).trim().toLowerCase();return"true"===t||"1"===t},gi=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},mi=e=>{const t=e.fields.reduce((e,{key:t,value:n})=>{const o=(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!==o&&e.push({key:t,value:o}),e},[]);return{...e,fields:t}},fi=e=>{if("object"!=typeof e)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const o=e[n];if(Array.isArray(o)){const e=o.filter(e=>null!=e&&""!==e);e.length>0&&(t[n]=e.map(e=>fi(e)))}else if("object"==typeof o&&null!==o){const e=fi(o);Object.keys(e).length>0&&(t[n]=e)}else[void 0,null,""].includes(o)||(t[n]=o)}),t},yi=(e,t=2)=>JSON.stringify(e||{},null,t),bi=async(e=1e3)=>new Promise(t=>setTimeout(t,e)),$i=e=>Object.entries(e).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),vi=e=>{let t=e.toString().replace("v","").split("-")[0];t=t.match(/[\d.]+/)?.[0]||"";const n=t.split(".");return 1e4*parseInt(n[0]||"0",10)+parseInt(n[1]||"0",10)},xi=o.div`
|
|
194
|
-
/* Portal: viewport coords (usePopup positionMode viewport). Non-portal: offset-parent coords, absolute. */
|
|
195
|
-
position: ${({$asPortal:e})=>e?"fixed":"absolute"};
|
|
196
|
-
${({$top:e})=>void 0!==e&&`top: ${e}px;`}
|
|
197
|
-
${({$bottom:e})=>void 0!==e&&`bottom: ${e}px;`}
|
|
198
|
-
${({$left:e})=>void 0!==e&&`left: ${e}px;`}
|
|
199
|
-
${({$right:e})=>void 0!==e&&`right: ${e}px;`}
|
|
200
|
-
z-index: 9999;
|
|
201
|
-
|
|
202
|
-
background-color: ${({theme:e})=>e.colors.info};
|
|
203
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
204
|
-
border-radius: ${({$borderRadius:e})=>void 0!==e?e:"24px"};
|
|
205
|
-
max-width: ${({$maxWidth:e})=>void 0!==e?e:"unset"};
|
|
206
|
-
width: ${({$width:e})=>void 0!==e?e:"unset"};
|
|
207
|
-
|
|
208
|
-
${({$asPortal:e,$withPointerEvents:t})=>e&&!t&&"pointer-events: none;"}
|
|
209
|
-
`,Si=o.div`
|
|
210
|
-
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
211
|
-
border-bottom: 1px solid ${({theme:e})=>e.colors.border};
|
|
212
|
-
`,wi=o.div`
|
|
213
|
-
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
214
|
-
`,Ei=o.div`
|
|
215
|
-
padding: ${({$padding:e})=>void 0!==e?e:"12px"};
|
|
216
|
-
border-top: 1px solid ${({theme:e})=>e.colors.border};
|
|
217
|
-
`,Ci=Pt(({isOpen:n,asPortal:o,...r},i)=>{const a=Ut(()=>{const{children:n,top:a,bottom:s,left:l,right:c,borderRadius:d,padding:u,maxWidth:p,width:h,header:g,footer:m,withPointerEvents:f,...y}=r;return t(xi,{ref:i,$top:a,$bottom:s,$left:l,$right:c,$borderRadius:d,$padding:u,$maxWidth:p,$width:h,$asPortal:o,$withPointerEvents:f,...y,children:[g&&e(Si,{$padding:u,children:g}),e(wi,{$padding:u,children:n}),m&&e(Ei,{$padding:u,children:m})]})},[i,r,o]);return n?o?Zt.createPortal(a,document.body):a:null});Ci.displayName=Ci.name;const Ti=[{type:un.K8sAttributes,icon:Ro(un.K8sAttributes),label:"Kubernetes Attributes",description:"This action adds kubernetes related resource attributes to spans, metrics data points and log records.",allowedSignals:[Yn.Traces,Yn.Metrics,Yn.Logs,Yn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/k8sattributes",supportedPlatforms:[Sn.K8s]},{type:un.AddClusterInfo,icon:Ro(un.AddClusterInfo),label:"Add Cluster Info",description:"This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals.",allowedSignals:[Yn.Traces,Yn.Metrics,Yn.Logs,Yn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/addclusterinfo",supportedPlatforms:[Sn.K8s]},{type:un.DeleteAttributes,icon:Ro(un.DeleteAttributes),label:"Delete Attribute",description:"This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition.",allowedSignals:[Yn.Traces,Yn.Metrics,Yn.Logs,Yn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/deleteattribute",supportedPlatforms:[Sn.K8s]},{type:un.RenameAttributes,icon:Ro(un.RenameAttributes),label:"Rename Attribute",description:"This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition.",allowedSignals:[Yn.Traces,Yn.Metrics,Yn.Logs,Yn.Profiles],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/renameattribute",supportedPlatforms:[Sn.K8s]},{type:un.PiiMasking,icon:Ro(un.PiiMasking),label:"PII Masking",description:"This action processes a list of PII categories to be masked from the traces.",allowedSignals:[Yn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/piimasking",supportedPlatforms:[Sn.K8s]},{type:un.URLTemplatization,icon:Ro(un.URLTemplatization),label:"URL Templatization",description:"Normalizes HTTP URL paths by replacing dynamic segments (IDs, UUIDs, dates) with named placeholders (e.g. /user/1234 → /user/{id}). Reduces cardinality of http.route and span names, improving usability in telemetry backends.",allowedSignals:[Yn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/urltemplatization",minVersion:{[Sn.K8s]:vi("v1.21.0")},supportedPlatforms:[Sn.K8s,Sn.Vm]},{type:un.ExtractAttribute,icon:Ro(un.ExtractAttribute),label:"Extract Attribute",description:"Extracts a value from an existing span attribute into a new attribute on the same span. The value can be located by combining a lookup key with a pre-set data format (JSON, SQL, or resource path), or by supplying a custom regular expression that uses a single capture group.",allowedSignals:[Yn.Traces],docsUrl:"https://docs.odigos.io/pipeline/actions/attributes/extractattribute",minVersion:{[Sn.K8s]:vi("v1.29.0")},supportedPlatforms:[Sn.K8s]}],Ai=(e,t)=>!e.supportedPlatforms||e.supportedPlatforms.includes(t),ki=(e,t,n)=>{const o=e.minVersion?.[t];return!o||vi(n)>=o},Ii=(e,t)=>Ti.filter(n=>Ai(n,e)&&ki(n,e,t)),Ni=e=>{const t=e?.actionTypes;return t?.length?t.map(e=>({type:e.type,icon:Ro(e.type),label:e.displayName,description:e.description,allowedSignals:e.allowedSignals,docsUrl:e.docsUrl,fields:e.fields})):[]};var Ri;!function(e){e.ALL="all",e.UNSAVED="unsaved",e.EXISTS="exists",e.DETECTED="detected",e.SELF_HOSTED="self-hosted",e.MANAGED="managed"}(Ri||(Ri={}));const Oi={[Ri.ALL]:{TITLE:"All",DESCRIPTION:"All destinations"},[Ri.UNSAVED]:{TITLE:"Selected",DESCRIPTION:"These are destinations that you have not yet saved."},[Ri.EXISTS]:{TITLE:"Already configured",DESCRIPTION:"These are destinations that you have already configured in other data-streams and can reuse them."},[Ri.DETECTED]:{TITLE:"Suggested",DESCRIPTION:"Odigos found these destinations in your cluster and pre-filled their details. Review and enable them to start sending data."},[Ri.SELF_HOSTED]:{TITLE:"Self hosted",DESCRIPTION:"Full control and customization for advanced application monitoring."},[Ri.MANAGED]:{TITLE:"Managed",DESCRIPTION:"Effortless monitoring with scalable performance management."}},Di=[{type:Bn.CodeAttributes,icon:Vo(Bn.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:[Cn.Go,Cn.Python,Cn.JavaScript]},{type:Bn.CustomInstrumentation,icon:Vo(Bn.CustomInstrumentation),label:"Custom Instrumentation",description:'The "Custom Instrumentation" rule can be used to instrument a specific symbol (i.e. for Golang), or a class and method combination (i.e. for Java) for detailed tracing.',docsUrl:"https://docs.odigos.io/pipeline/rules/custominstrumentation",supportedLanguages:[Cn.Go,Cn.Java]},{type:Bn.HeadersCollection,icon:Vo(Bn.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:[Cn.Go,Cn.Java,Cn.JavaScript]},{type:Bn.PayloadCollection,icon:Vo(Bn.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:[Cn.Go,Cn.JavaScript]}],_i=e=>{const t=e?.instrumentationRuleTypes;return t?.length?t.map(e=>({type:e.type,icon:Vo(e.type),label:e.displayName,description:e.description,docsUrl:e.docsUrl,supportedLanguages:e.supportedLanguages,fields:e.fields})):[]},Li={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.'},Pi={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."},Fi={[bn.JSON]:{label:"JSON",keyLabel:"JSON key",placeholder:"e.g. customer_id",helpMessage:"Type the JSON key containing the value to extract."},[bn.SQL]:{label:"SQL",keyLabel:"SQL key",placeholder:"e.g. invoice_id",helpMessage:"Type the SQL key containing the value to extract."},[bn.ResourcePath]:{label:"Resource path",keyLabel:"Resource path key",placeholder:"e.g. tenants",helpMessage:"Type the resource name containing the value to extract."}},Mi="Cancel",zi="Save",Ui="Edit rule",Bi="Edit auto rule",ji="Create rule",Wi="Delete rule",Hi="Save",Gi="Create your first rule",Xi="No Rules Exist",Ki="No Results",Vi=e=>`No rules match the search term "${e}"`,Ji="Rule name",Yi="Rule type",qi="Select the type of condition that makes a trace highly relevant.",Qi="Rule Enabled",Zi="Rule Disabled",ea="Enabled",ta="Disabled",na="Note",oa="HTTP route",ra="Method",ia="Keep Percentage",aa="Keep traces with duration larger than",sa="Keep traces with errors",la="Keep at least this percentage of matching traces. A higher rate from another matching rule may apply instead.",ca="Keep at most this percentage of matching traces. A lower rate from another matching rule may apply instead.",da="Custom percentage",ua="Disabled rule",pa="Sample",ha="Keep all",ga="Drop all",ma="Operation type",fa="HTTP route prefix",ya="Templated path",ba="Templated path prefix",$a="Kafka topic",va="Custom duration (ms)",xa="No preview available",Sa="Server address",wa="Drop at most this percentage of matching traces",Ea="Unnamed rule",Ca="Sampling Preview",Ta="Source Scope",Aa="Unknown source",ka="Operation",Ia="Duration",Na="Errors",Ra="Keep Percentage",Oa="Define which sources this rule applies to. You can target specific services, namespaces, or apply the rule to the entire cluster.",Da="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.",_a="Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.",La="Retain traces with errors from the selected services and operations.",Pa="Use Keep All to retain every matching trace, or Sample when keeping everything is too expensive. 100% means keep all",Fa="Use Drop All to discard every matching trace, or Sample to keep some examples. 0% means drop all.",Ma={highlyRelevant:Pa,noisy:Fa,costReduction:void 0},za="Type rule name",Ua="Add note here...",Ba="Type here",ja="Search source name",Wa="e.g. collector.my.vendor.com",Ha="Optional notes (not used by the system). Add any context or details for this sampling rule.",Ga="Rule will apply to all sources in the cluster",Xa="If multiple source scopes are set, they must all match simultaneously.",Ka="All sources",Va="-",Ja="All",Ya="Sources",qa="Namespaces",Qa="Languages",Za="any of",es="AND",ts="All operations",ns="HTTP server endpoint",os="HTTP client endpoint",rs="Kafka consumer",is="Kafka producer",as="Sampling Rules",ss='Control how traces are categorized based on "Importance" and potential value, for fine grain control of what is kept and what is dropped.',ls="Refresh",cs="Create rule",ds="Sampling docs",us="75vw",ps="Delete rule?",hs="Are you sure you want to delete this sampling rule?",gs="Delete",ms="Cancel",fs="Kubernetes Health Probes",ys="Keep All Error Traces",bs="Drop Traces Cluster-Wide",$s="A rule with the same matching conditions already exists.",vs="Create this rule as-is?",xs="This rule still uses the default configuration.\nDo you want to create it anyway?",Ss="Rule preview",ws="Continue editing",Es="Create 'Noisy Operation Kubernetes Health Probes' rule",Cs="Edit 'Noisy Operation Kubernetes Health Probes' rule",Ts="Automatically detect and sample health probe traces across the cluster.",As="Create 'Highly Relevant Operations' rule",ks="Edit 'Highly Relevant Operations' rule",Is="Automatically keep all error traces across the entire cluster.",Ns="Create 'Cost Reduction' rule",Rs="Edit 'Cost Reduction' rule",Os="Automatically drop a percentage of traces across the entire cluster.",Ds="Skip setup",_s="Start setup",Ls="Next",Ps="Go to Sampling",Fs="Read more",Ms="Welcome to Sampling",zs="Cut costs without losing what matters",Us="Odigos sampling works in three stages:",Bs="Filter noisy traffic",js="Remove non-actionable traces like health checks.",Ws="Guarantee highly relevance operations",Hs="Keep traces with errors, high latency, or mission-critical endpoints/services.",Gs="Reduce cost",Xs="Sample routine traffic using percentages.",Ks="Sampling does not drop individual spans - it keeps or drops the entire trace.",Vs="Filter noisy operations",Js="Cut traces with little or no observability value (health-checks, metric scarping, etc)",Ys="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.",qs="Preset Rules",Qs="Kubernetes Health Probes",Zs="Automatically ignore health checks",el="You can review, adjust, and add additional custom rules later.",tl="Choose your sampling strategy",nl="Pick the approach that best fits your balance of cost vs data-completeness",ol="Keep List",rl="Budget Friendly",il="Define which traces must be kept, while all others are sampled by default to minimize cost.",al="Cost-oriented - keeps only what you explicitly select.",sl="Best for very large clusters with high volumes of traces and high costs.",ll="Higher risk of missing important traces without ongoing review.",cl="Drop List",dl="Safe Choice",ul="Define which traces must be aggressively dropped, while all others are kept by default.",pl="Preserves most data unless explicitly filtered.",hl="Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.",gl="Advanced",ml="Maximum Flexibility",fl="Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.",yl="'Keep List' profile",bl="Protect important traces",$l="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:",vl="Traces with errors",xl="Slow requests (duration above threshold)",Sl="Mission-Critical endpoints or services",wl="Services under test or evaluation",El="New deployments",Cl="You can review, adjust, and add rules once onboarding is complete.",Tl="Common Rules",Al="Preset Rules",kl="Error collection - entire cluster",Il="Keep all traces with errors",Nl="Ambient sampling percentage",Rl="'Drop List' profile",Ol="Reduce high-volume traffic",Dl="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.",_l="Advanced Configuration",Ll="Configure sampling rules",Pl="Advanced mode allows you to configure all sampling categories:",Fl="Noise Filtering - remove non-actionable traces",Ml="Highly Relevance - guarantee important traces are kept",zl='Cost Control - drop traces for "Normal" operations',Ul="Rules can target:",Bl="Services",jl="HTTP Endpoints",Wl="DB Operations",Hl="Errors",Gl="Latency and more...",Xl="Sampling configured successfully!",Kl="Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.",Vl="Odigos will now:",Jl="Filter noisy operations",Yl="Guarantee important traces",ql="Reduce cost using controlled sampling",Ql="Recommended",Zl={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."},ec={noisy:Es,highlyRelevant:As,costReduction:Ns},tc={noisy:Cs,highlyRelevant:ks,costReduction:Rs},nc={noisy:"Noisy Operation",highlyRelevant:"Highly Relevant",costReduction:"Cost Reduction"},oc=[{id:Yn.Logs,value:"Logs"},{id:Yn.Metrics,value:"Metrics"},{id:Yn.Traces,value:"Traces"},{id:Yn.Profiles,value:"Profiles"}],rc={PID:"process.pid",VPID:"process.vpid"},ic={[Cn.Go]:"Go",[Cn.Java]:"Java",[Cn.JavaScript]:"Node.js",[Cn.Python]:"Python",[Cn.DotNet]:".NET",[Cn.CSharp]:"C#",[Cn.CPlusPlus]:"C++",[Cn.Php]:"PHP",[Cn.Ruby]:"Ruby",[Cn.Rust]:"Rust",[Cn.Swift]:"Swift",[Cn.Elixir]:"Elixir",[Cn.MySql]:"MySQL",[Cn.Nginx]:"Nginx",[Cn.Postgres]:"PostgreSQL",[Cn.Redis]:"Redis",[Cn.Kafka]:"Kafka",[Cn.Ignored]:"Ignored",[Cn.Unknown]:"Unknown",[Cn.Processing]:"Processing",[Cn.NoContainers]:"No Containers",[Cn.NoRunningPods]:"No Running Pods"},ac=[{id:Cn.Go,label:ic[Cn.Go],icon:Lo(Cn.Go)},{id:Cn.Java,label:ic[Cn.Java],icon:Lo(Cn.Java)},{id:Cn.JavaScript,label:ic[Cn.JavaScript],icon:Lo(Cn.JavaScript)},{id:Cn.Python,label:ic[Cn.Python],icon:Lo(Cn.Python)},{id:Cn.Php,label:ic[Cn.Php],icon:Lo(Cn.Php)},{id:Cn.Ruby,label:ic[Cn.Ruby],icon:Lo(Cn.Ruby)},{id:Cn.Rust,label:ic[Cn.Rust],icon:Lo(Cn.Rust)},{id:Cn.DotNet,label:ic[Cn.DotNet],icon:Lo(Cn.DotNet)},{id:Cn.CSharp,label:ic[Cn.CSharp],icon:Lo(Cn.CSharp)},{id:Cn.CPlusPlus,label:ic[Cn.CPlusPlus],icon:Lo(Cn.CPlusPlus)},{id:Cn.Swift,label:ic[Cn.Swift],icon:Lo(Cn.Swift)},{id:Cn.Elixir,label:ic[Cn.Elixir],icon:Lo(Cn.Elixir)}],sc={id:zn.OpentelemetryEbpfInstrumentation,label:zn.OpentelemetryEbpfInstrumentation,icon:ft},lc={[Cn.Go]:{community:[{id:zn.GolangCommunity,label:zn.GolangCommunity,icon:Lo(Cn.Go)},sc],enterprise:[{id:zn.GolangEnterprise,label:zn.GolangEnterprise,icon:Lo(Cn.Go)}]},[Cn.JavaScript]:{community:[{id:zn.NodejsCommunity,label:zn.NodejsCommunity,icon:Lo(Cn.JavaScript)},sc],enterprise:[{id:zn.NodejsEnterprise,label:zn.NodejsEnterprise,icon:Lo(Cn.JavaScript)}]},[Cn.Python]:{community:[{id:zn.PythonCommunity,label:zn.PythonCommunity,icon:Lo(Cn.Python)},sc],enterprise:[{id:zn.PythonEnterprise,label:zn.PythonEnterprise,icon:Lo(Cn.Python)}]},[Cn.Java]:{community:[{id:zn.JavaCommunity,label:zn.JavaCommunity,icon:Lo(Cn.Java)},sc],enterprise:[{id:zn.JavaEnterprise,label:zn.JavaEnterprise,icon:Lo(Cn.Java)},{id:zn.JavaEbpfInstrumentations,label:zn.JavaEbpfInstrumentations,icon:Lo(Cn.Java)}]},[Cn.DotNet]:{community:[{id:zn.DotNetCommunity,label:zn.DotNetCommunity,icon:Lo(Cn.DotNet)},sc],enterprise:[{id:zn.DotNetEnterprise,label:zn.DotNetEnterprise,icon:Lo(Cn.DotNet)}]},[Cn.Ruby]:{community:[{id:zn.RubyCommunity,label:zn.RubyCommunity,icon:Lo(Cn.Ruby)},sc],enterprise:[{id:zn.RubyEnterprise,label:zn.RubyEnterprise,icon:Lo(Cn.Ruby)}]},[Cn.Php]:{community:[{id:zn.PhpCommunity,label:zn.PhpCommunity,icon:Lo(Cn.Php)},sc],enterprise:[]},[Cn.CSharp]:{community:[],enterprise:[{id:zn.CPlusPlusEnterprise,label:zn.CPlusPlusEnterprise,icon:Lo(Cn.CSharp)}]},[Cn.MySql]:{community:[],enterprise:[{id:zn.MySqlEnterprise,label:zn.MySqlEnterprise,icon:Lo(Cn.MySql)}]},[Cn.CPlusPlus]:{community:[sc],enterprise:[]},[Cn.Rust]:{community:[sc],enterprise:[]},[Cn.Swift]:{community:[sc],enterprise:[]},[Cn.Elixir]:{community:[sc],enterprise:[]},[Cn.Nginx]:{community:[sc],enterprise:[]},[Cn.Postgres]:{community:[sc],enterprise:[]},[Cn.Redis]:{community:[sc],enterprise:[]},[Cn.Kafka]:{community:[sc],enterprise:[]},[Cn.Ignored]:{community:[],enterprise:[]},[Cn.Unknown]:{community:[sc],enterprise:[]},[Cn.Processing]:{community:[],enterprise:[]},[Cn.NoContainers]:{community:[],enterprise:[]},[Cn.NoRunningPods]:{community:[],enterprise:[]}},cc=6048e5,dc=Lt()(Yt(e=>({darkMode:!0,setDarkMode:t=>e({darkMode:t})}),{name:so.DARK_MODE,storage:"undefined"!=typeof window?qt(()=>localStorage):void 0})),uc={dataStreamsLoading:!1,dataStreams:[],selectedStreamName:ro},pc=Lt(e=>({...uc,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(uc)})),hc=Lt(e=>({drawerType:null,drawerEntityId:null,pendingViewSamplingRule:null,setDrawerType:t=>e({drawerType:t}),setDrawerEntityId:t=>e({drawerEntityId:t}),setPendingViewSamplingRule:t=>e({pendingViewSamplingRule:t})})),gc=()=>({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),mc=Lt(e=>({searchText:"",setSearchText:t=>e({searchText:t}),statuses:[],setStatuses:t=>e({statuses:t}),platformTypes:[],setPlatformTypes:t=>e({platformTypes:t}),namespaces:[],setNamespaces:t=>e({namespaces:t}),kinds:[],setKinds:t=>e({kinds:t}),monitors:[],setMonitors:t=>e({monitors:t}),languages:[],setLanguages:t=>e({languages:t}),podsAgentInjectionStatus:[],setPodsAgentInjectionStatus:t=>e({podsAgentInjectionStatus:t}),onlyErrors:!1,setOnlyErrors:t=>e({onlyErrors:t}),setAll:t=>e(t),clearAll:()=>e({searchText:"",statuses:[],platformTypes:[],namespaces:[],kinds:[],monitors:[],languages:[],podsAgentInjectionStatus:[],onlyErrors:!1}),getEmptyState:gc})),fc=Lt(e=>({currentModal:"",setCurrentModal:t=>e({currentModal:t})})),yc=Lt((e,t)=>({notifications:[],addNotification:n=>{const o=new Date,r=`${o.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:r,time:o.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 bc;!function(e){e.Instrumenting="instrumenting",e.Uninstrumenting="uninstrumenting",e.BulkInstrumenting="bulk-instrumenting",e.BulkUninstrumenting="bulk-uninstrumenting",e.DownloadingDiagnose="downloading-diagnose"}(bc||(bc={}));const $c=(e,t)=>({...t?.[e]||{total:0,current:0,percentage:0}}),vc=e=>(e.total<e.current&&(e.total=e.current+1),e.percentage=Math.round(e.current/e.total*100),e),xc=Lt((e,t)=>({progress:{},setProgress:(n,o)=>{const r=t(),i=$c();return"number"==typeof o.total&&(i.total=o.total),"number"==typeof o.current&&(i.current=o.current),Array.isArray(o.list)&&(i.list=o.list),e({progress:{...r.progress,[n]:vc(i)}})},addProgress:(n,o,r)=>{const i=t(),a=$c(n,i.progress);return a.current+=o,r&&(a.list=a.list?.map(e=>e.label===r.label?{...e,status:r.status}:e)),e({progress:{...i.progress,[n]:vc(a)}})},resetProgress:t=>e({progress:{[t]:void 0}})})),Sc=Lt(e=>({selectedSources:{},setSelectedSources:t=>e({selectedSources:t}),resetSelectedState:()=>e(()=>({selectedSources:{},selectedConnection:null}))})),wc={configuredSources:{},configuredFutureApps:{},configuredDestinations:[],configuredDestinationsUpdateOnly:[]},Ec=(e,t)=>e.destinationType.type!==t.destinationType.type,Cc=Lt(e=>({...wc,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=>Ec(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=>Ec(e,t))})),clearStore:()=>e(()=>({...wc}))})),Tc=e=>{function t(){return void 0===e?{}:$o(e)}const[n,o]=Mt(t()),[r,i]=Mt({}),[a,s]=Mt(t()),l=Bt((e,t)=>{const n={};if(!t||"object"!=typeof t)return e?{...e}:n;for(const[o,r]of Object.entries(e)){const e=o;if(Array.isArray(r)){const o=t[e];Array.isArray(o)&&r.length===o.length&&r.every((e,t)=>"object"==typeof e&&null!==e?0===Object.keys(l(e,o[t])).length:e===o[t])||(n[e]=t[e])}else if("object"==typeof r&&null!==r)if(null==t[e]||"object"!=typeof t[e])n[e]=t[e];else{const o=l(r,t[e]);Object.keys(o).length>0&&(n[e]=o)}else r!==t[e]&&(n[e]=t[e])}for(const o of Object.keys(t))o in e||(n[o]=t[o]);return n},[]),c=(e,t)=>0===Object.keys(l(e,t)).length,d=Ut(()=>!c(a,n),[a,n]);zt(()=>{const r=t();void 0!==e&&"{}"===JSON.stringify(n)&&"{}"!==JSON.stringify(r)&&(o(r),s(r))},[e,n]);const u=Bt((e,t)=>vo("formData"===e?n:r,t.toString()),[n,r]);return{formData:n,formErrors:r,getFormDiff:l,areFormValuesEqual:c,isFormDirty:d,handleFormChange:(e,t,n)=>{if(e){const n=e.toString(),r=n.split(".");1===r.length?o(n=>({...n,[e]:t})):o(e=>{const n=$o(e);let o=n;for(let e=0;e<r.length-1;e++){const t=r[e];o[t]&&"object"==typeof o[t]||(o[t]={}),o=o[t]}return o[r[r.length-1]]=t,n}),i(e=>{const t=n,o=r[r.length-1],i=void 0!==e[t],a=o!==t&&void 0!==e[o];if(!i&&!a)return e;const s={...e};return i&&delete s[t],a&&delete s[o],s})}else n&&o({...n})},handleErrorChange:(e,t,n)=>{if(e){const n=e.toString().split(".");1===n.length?i(n=>({...n,[e]:t})):i(e=>{const o=$o(e);let r=o;for(let e=0;e<n.length-1;e++){const t=n[e];r[t]&&"object"==typeof r[t]||(r[t]={}),r=r[t]}return r[n[n.length-1]]=t,o})}else n&&i({...n})},resetFormData:e=>{const n=e||t();o(n),s(n),i({})},getNestedValue:u}},Ac={type:"",name:"",notes:"",signals:[],disabled:!1,fields:{clusterAttributes:null,overwriteExistingValues:null,renames:null,attributeNamesToDelete:null,piiCategories:null,urlTemplatizationRulesGroups:null,extractAttribute:null}},kc=()=>{const{addNotification:e}=yc(),{formData:t,formErrors:n,handleFormChange:o,handleErrorChange:r,resetFormData:i}=Tc(Ac),a=e=>e&&Array.isArray(e)?e.map(e=>!e.fromSources?.length&&e.from?{...e,fromSources:[e.from]}:e):e;return{formData:t,formErrors:n,handleFormChange:o,resetFormData:i,validateForm:n=>{const o={};let i=!0;if(Object.entries(t).forEach(([e,t])=>{switch(e){case"type":case"signals":ei(t)&&(o[e]=lo.FIELD_IS_REQUIRED)}}),t.type===un.URLTemplatization){const e=t.fields?.urlTemplatizationRulesGroups;if(e)for(const t of e)if(t.templatizationRules?.some(e=>!e.template?.trim())){o.fields=lo.FIELD_IS_REQUIRED;break}}return i=!Object.values(o).length,!i&&n?.withAlert&&e({type:Rn.Warning,title:n.alertTitle,message:lo.REQUIRED_FIELDS,hideFromHistory:!0}),r(void 0,void 0,o),i},loadFormWithDrawerItem:({type:e,signals:t,name:n,notes:r,disabled:i,fields:s})=>{const l={...$o(Ac),type:e,signals:t,name:n,notes:r,disabled:i};Object.entries(s).forEach(([e,t])=>{if(t)switch(e){case pn.LabelsAttributes:case pn.AnnotationsAttributes:l.fields||(l.fields={}),l.fields[e]=a(t);break;case pn.CollectContainerAttributes:case pn.CollectReplicaSetAttributes:case pn.CollectWorkloadId:case pn.CollectClusterId:case pn.ClusterAttributes:case pn.OverwriteExistingValues:case pn.AttributeNamesToDelete:case pn.Renames:case pn.PiiCategories:case pn.ExtractAttribute:case pn.UrlTemplatizationRulesGroups:l.fields||(l.fields={}),l.fields[e]=t}}),o(void 0,void 0,l)}}},Ic=e=>{zt(()=>{if(e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])},Nc=()=>{const{setDrawerType:e,setDrawerEntityId:t}=hc();return{onClickNode:(n,o)=>{const{data:{id:r,type:i}}=o;switch(i){case An.Source:case An.Destination:case An.Action:case An.InstrumentationRule:e(i),t(r)}}}},Rc=()=>{const{setDrawerType:e,setDrawerEntityId:t}=hc(),{markAsDismissed:n,markAsSeen:o}=yc();return{onClickNotification:(r,i)=>{const{id:a,crdType:s,target:l}=r,{dismissToast:c}=i||{};if(s&&l)switch(s){case An.InstrumentationRule:e(An.InstrumentationRule),t(Ko(l,An.InstrumentationRule));break;case An.Source:case"InstrumentationConfig":case"InstrumentationInstance":e(An.Source),t(Ko(l,An.Source));break;case An.Action:e(An.Action),t(Ko(l,An.Action));break;case An.Destination:case"Destination":e(An.Destination),t(Ko(l,An.Destination))}o(a),c&&n(a)}}},Oc=()=>{const e=jt(null),[t,n]=Mt(0),[o,r]=Mt(0);return zt(()=>{const t=()=>{if(e.current){const{width:t,height:o}=e.current.getBoundingClientRect();n(t),r(o)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{containerRef:e,containerWidth:t,containerHeight:o}};var Dc;!function(e){e[e.XS=16]="XS",e[e.S=18]="S",e[e.M=24]="M",e[e.L=32]="L"}(Dc||(Dc={}));const _c=o.div`
|
|
218
|
-
width: ${({$size:e})=>1.5*e}px;
|
|
219
|
-
height: ${({$size:e})=>1.5*e}px;
|
|
220
|
-
display: flex;
|
|
221
|
-
align-items: center;
|
|
222
|
-
justify-content: center;
|
|
223
|
-
border-radius: 100%;
|
|
224
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
225
|
-
&:hover {
|
|
226
|
-
background: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
227
|
-
}
|
|
228
|
-
`,Lc=({"data-id":t,icon:n,size:o=Dc.S,onClick:r,disabled:i})=>e(_c,{"data-id":t,$size:o,$disabled:i,onClick:e=>{r&&!i&&(e.stopPropagation(),r(e))},children:e(n,{size:o})}),Pc=({onDone:t}={})=>{const[n,o]=Mt(!1),[r,i]=Mt(-1),a=Bt(async(e,r)=>{if(!n){if(o(!0),void 0!==r&&i(r),navigator?.clipboard&&navigator.clipboard.writeText)try{await navigator.clipboard.writeText(e)}catch(e){}else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch(e){}document.body.removeChild(t)}t?.(),setTimeout(()=>{o(!1),i(-1)},1e3)}},[n,t]);return{CopyButton:Bt(({value:t,size:o})=>e(Lc,{icon:n?yt:bt,size:o,onClick:()=>a(t)}),[n]),isCopied:n,copiedIndex:r,clickCopy:a}},Fc=e=>{const{addNotification:t}=yc(),{formData:n,handleFormChange:o,formErrors:r,handleErrorChange:i,resetFormData:a}=Tc(e);return{formData:n,formErrors:r,handleFormChange:o,resetFormData:a,validateForm:e=>{const o={};let r=!0;return n.name?ti(n.name)?o.name=void 0:(r=!1,o.name=lo.ILLEGAL_K8S_LABEL):(r=!1,o.name=lo.FIELD_IS_REQUIRED),!r&&e?.withAlert&&t({type:Rn.Warning,title:e.alertTitle,message:lo.REQUIRED_FIELDS,hideFromHistory:!0}),i(void 0,void 0,o),r},loadFormWithDrawerItem:({name:t})=>{const n={...$o(e),name:t};o(void 0,void 0,n)}}},Mc={type:"",name:"",exportedSignals:{logs:!1,metrics:!1,traces:!1,profiles:!1},fields:[],disabled:!1},zc=e=>{const{supportedSignals:t,preLoadedFields:n}=e||{},{addNotification:o}=yc(),{formData:r,formErrors:i,handleFormChange:a,handleErrorChange:s,resetFormData:l}=Tc(Mc),[c,d]=Mt([]),[u,p]=Mt([]);zt(()=>{var e;p(c?(e=c,e.filter(e=>!!e).map(e=>{const{name:t,componentType:n,componentProperties:o,displayName:r,initialValue:i,renderCondition:a}=e;if(n===In.Dropdown){const e=Kr(o,{}),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:r,value:i,placeholder:e.placeholder||"Select an option",options:s,renderCondition:a,...e}}return{name:t,componentType:n,title:r,value:i,renderCondition:a,...Kr(o,{})}})).map(e=>{if(n){const t="string"==typeof n?Kr(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===ci(r.exportedSignals).length){const{logs:e,metrics:n,traces:o}=t;a("exportedSignals",{logs:e.supported,metrics:n.supported,traces:o.supported})}},[t,r.exportedSignals]);return{formData:r,formErrors:i,handleFormChange:a,resetFormData:l,validateForm:e=>{const t={};let n=!0;return u.forEach(({name:e,value:o,required:r})=>{r&&!o&&(n=!1,t[e]=lo.FIELD_IS_REQUIRED)}),!n&&e?.withAlert&&o({type:Rn.Warning,title:e.alertTitle,message:lo.REQUIRED_FIELDS,hideFromHistory:!0}),s(void 0,void 0,t),n},loadFormWithDrawerItem:({destinationType:{type:e},name:t,disabled:n,exportedSignals:o,fields:r})=>{const i={...$o(Mc),type:e,name:t,disabled:n,exportedSignals:o,fields:Object.entries(Kr(r,{})).map(([e,t])=>({key:e,value:t}))};return a(void 0,void 0,i),i},yamlFields:c,setYamlFields:d,dynamicFields:u,setDynamicFields:p}},Uc={ruleName:"",notes:"",disabled:!1,workloads:null,sourceScopes:null,instrumentationLibraries:null,payloadCollection:{[Gn.HttpRequest]:null,[Gn.HttpResponse]:null,[Gn.DbQuery]:null,[Gn.Messaging]:null},codeAttributes:{[jn.Column]:null,[jn.FilePath]:null,[jn.Function]:null,[jn.LineNumber]:null,[jn.Namespace]:null,[jn.StackTrace]:null},headersCollection:null,customInstrumentations:{[Hn.Java]:null,[Hn.Golang]:null}},Bc=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=Tc(Uc);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:r,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({ruleName:e,notes:t,disabled:o,sourceScopes:r,payloadCollection:i,codeAttributes:a,headersCollection:s,customInstrumentations:l})=>{const c={...$o(Uc),ruleName:e,notes:t,disabled:o,sourceScopes:r??null};i&&(c.payloadCollection={[Gn.HttpRequest]:i[Gn.HttpRequest]?{}:null,[Gn.HttpResponse]:i[Gn.HttpResponse]?{}:null,[Gn.DbQuery]:i[Gn.DbQuery]?{}:null,[Gn.Messaging]:i[Gn.Messaging]?{}:null}),a&&(c.codeAttributes={[jn.Column]:a[jn.Column]||null,[jn.FilePath]:a[jn.FilePath]||null,[jn.Function]:a[jn.Function]||null,[jn.LineNumber]:a[jn.LineNumber]||null,[jn.Namespace]:a[jn.Namespace]||null,[jn.StackTrace]:a[jn.StackTrace]||null}),s&&(c.headersCollection=s),l&&(c.customInstrumentations={[Hn.Java]:l[Hn.Java]||null,[Hn.Golang]:l[Hn.Golang]||null}),n(void 0,void 0,c)}}},jc=({active:e,key:t,withAltKey:n,withCtrlKey:o,withShiftKey:r,withMetaKey:i},a)=>(zt(()=>{const s=s=>{e&&t===s.key&&(!n||n&&s.altKey)&&(!o||o&&s.ctrlKey)&&(!r||r&&s.shiftKey)&&(!i||i&&s.metaKey)&&(s.preventDefault(),s.stopPropagation(),a(s))};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[t,e,n,o,r,i,a]),null),Wc="data-ignore-outside-click",Hc=(e,t)=>{const n=jt(t);n.current=t,zt(()=>{const t=t=>{const o=t.target;e.current&&!e.current.contains(o)&&((e=>{let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute(Wc))return!0;t=t.parentNode}return!1})(o)||n.current())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e])},Gc=(e,{axis:t="horizontal",deps:n=[]}={})=>{const[o,r]=Mt(!1),i=e=>{const n="vertical"===t?e.scrollHeight>e.clientHeight+1:e.scrollWidth>e.clientWidth+1;r(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]),o},Xc=(e,{behavior:t="smooth",block:n="center",inline:o,delayMs:r=50}={})=>{const i=jt(null);return zt(()=>{if(!e)return;const a=window.setTimeout(()=>{i.current?.scrollIntoView({behavior:t,block:n,inline:o})},r);return()=>window.clearTimeout(a)},[e,t,n,o,r]),i},Kc=({sectionNames:e,threshold:t=.4})=>{const[n,o]=Mt(e[0]||""),[r,i]=Mt(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,o(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&&o(e);break}},{threshold:t,root:r});return i.forEach(e=>l.observe(e)),()=>l.disconnect()},[e,t,r]),{selectedSection:n,setSelectedSection:u,setSectionRef:c,setScrollContainerRef:d}},Vc=({defaultClientHeight:e=0,defaultClientwidth:t=0,onClickOutside:n,positionMode:o="local"}={})=>{const r=jt(null),[i,a]=Mt(!1),[s,l]=Mt({top:0,left:0}),[c,d]=Mt({edge:"top",align:"left"});Hc(r,()=>{i&&(a(!1),n?.())});return{popupRef:r,popupOpen:i,setPopupOpen:a,popupPosition:s,arrowPlacement:c,handlePosition:(n,i)=>{if("local"===o)return void l({top:i,left:n});const{innerWidth:a,innerHeight:s}=window,c=r.current?.clientWidth||t,u=r.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})}}},Jc=()=>({getItemSS:(e,t)=>{const n=sessionStorage.getItem(e);return n?Kr(n,t):t},setItemSS:(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},removeItemSS:e=>{sessionStorage.removeItem(e)}}),Yc={otelServiceName:"",currentStreamName:""},qc=()=>{const{formData:e,formErrors:t,handleFormChange:n,handleErrorChange:o,resetFormData:r}=Tc(Yc);return{formData:e,formErrors:t,handleFormChange:n,resetFormData:r,validateForm:()=>(o(void 0,void 0,{}),!0),loadFormWithDrawerItem:({serviceName:e,id:t})=>{const o={...$o(Yc),otelServiceName:e||t.name||""};n(void 0,void 0,o)}}};try{Gt.addDefaultLocale(Xt)}catch(e){}const Qc=new Gt(Xt.locale),Zc=[{ms:31536e6,long:["year","years"],short:"y"},{ms:2592e6,long:["month","months"],short:"mo"},{ms:864e5,long:["day","days"],short:"d"},{ms:36e5,long:["hour","hours"],short:"h"},{ms:6e4,long:["minute","minutes"],short:"m"},{ms:1e3,long:["second","seconds"],short:"s"}],ed=e=>"string"==typeof e?new Date(e.replace("t","T").replace("z","Z")):new Date(e),td=()=>{const[e,t]=Mt(0);zt(()=>{const e=setInterval(()=>{t(e=>(e+1)%Number.MAX_SAFE_INTEGER)},1e3);return()=>clearInterval(e)},[]);return{formatTimeAgo:Bt(e=>{try{return Qc.format(ed(e))}catch(e){return"-"}},[e]),formatDurationAgo:Bt((e,{units:t=2,style:n="long",suffix:o=!0}={})=>{try{const r=ed(e);let i=Math.max(0,Date.now()-r.getTime());if(i<1e3)return"short"===n?"0s":o?"just now":"0 seconds";const a=[];for(const e of Zc){if(a.length===t)break;const o=Math.floor(i/e.ms);if(!(o<=0&&0===a.length)){if(o<=0)break;i-=o*e.ms,a.push("short"===n?`${o}${e.short}`:`${o} ${1===o?e.long[0]:e.long[1]}`)}}const s="short"===n?a.join(""):a.join(" ");return o&&"long"===n?`${s} ago`:s}catch(e){return"-"}},[e])}},nd=o.div`
|
|
229
|
-
color: ${({$color:e,theme:t})=>e||t.text.secondary};
|
|
230
|
-
font-size: ${({$size:e})=>void 0!==e?e:16}px;
|
|
231
|
-
font-weight: ${({$weight:e})=>void 0!==e?e:300};
|
|
232
|
-
text-align: ${({$align:e})=>e||"left"};
|
|
233
|
-
opacity: ${({$opacity:e})=>void 0!==e?e:1};
|
|
234
|
-
text-decoration: ${({$decoration:e})=>e||"none"};
|
|
235
|
-
text-transform: ${({$transform:e,$family:t})=>e||("secondary"===t?"uppercase":"none")};
|
|
236
|
-
font-family: ${({theme:e,$family:t="primary"})=>e.font_family[t]};
|
|
237
|
-
white-space: ${({$nowrap:e})=>e?"nowrap":"unset"};
|
|
238
|
-
text-wrap: ${({$nowrap:e})=>e?"nowrap":"unset"};
|
|
239
|
-
`,od=e=>{const t=e.match(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/g);return t?.map(e=>{const[t,n,o]=e.split('"');return{original:e,href:n,label:o.replace("</a>","").replace(">","")}})},rd=e=>{const t=e.match(/<strong[^>]*>(.*?)<\/strong>/g);return t?.map(e=>{const t=e.replace(/<strong[^>]*>/,"").replace(/<\/strong>/,"");return{original:e,label:t}})},id=(n,o)=>{const r=od(n);r?.forEach((e,t)=>{n=n.replace(e.original,`LINK-${t}###`)});const i=rd(n);i?.forEach((e,t)=>{n=n.replace(e.original,`STRONG-${t}###`)});return n.split(" ").map(n=>{if(n.includes("LINK-")){const[i,a]=n.split("###"),s=r?.[parseInt(i.replace("LINK-",""))];return t(Ft,{children:[e("a",{href:s?.href,target:"_blank",rel:"noreferrer",style:{color:o.colors.majestic_blue_soft},children:s?.label}),a?`${a} `:" "]},n)}if(n.includes("STRONG-")){const[o,r]=n.split("###"),a=i?.[parseInt(o.replace("STRONG-",""))];return t(Ft,{children:[e("strong",{style:{fontWeight:600},children:a?.label}),r?`${r} `:" "]},n)}return n+" "})},ad=({children:n,color:o,size:r,weight:a,align:s,family:l,opacity:c,decoration:d,transform:u,nowrap:p,...h})=>{const g=i(),m=Ut(()=>(n?["string","number"].includes(typeof n)?n.toString():Array.isArray(n)?n.map(e=>"object"==typeof e&&Object.hasOwn(e,"props")?e.props.children:e).filter(e=>e&&["string","number"].includes(typeof e)).join(" "):"":"").split("\n"),[n]);return e(nd,{$color:o,$size:r,$weight:a,$align:s,$family:l,$opacity:c,$decoration:d,$transform:u,$nowrap:p,...h,children:m.length?m.map((n,o)=>t(Ft,{children:[id(n,g),o!==m.length-1?e("br",{}):null]},`text-${o}-${n}`)):n})},sd=o.div`
|
|
240
|
-
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
241
|
-
position: relative;
|
|
242
|
-
display: flex;
|
|
243
|
-
align-items: center;
|
|
244
|
-
gap: 4px;
|
|
245
|
-
|
|
246
|
-
${({$ellipsis:e})=>e&&r`
|
|
247
|
-
overflow: hidden;
|
|
248
|
-
text-overflow: ellipsis;
|
|
249
|
-
white-space: nowrap;
|
|
250
|
-
`}
|
|
251
|
-
`,ld=o.div`
|
|
252
|
-
display: flex;
|
|
253
|
-
flex-direction: column;
|
|
254
|
-
align-items: flex-start;
|
|
255
|
-
gap: 8px;
|
|
256
|
-
width: 100%;
|
|
257
|
-
`,cd=o.div`
|
|
258
|
-
display: flex;
|
|
259
|
-
width: 100%;
|
|
260
|
-
flex-shrink: 0;
|
|
261
|
-
box-sizing: border-box;
|
|
262
|
-
line-height: 0;
|
|
263
|
-
|
|
264
|
-
${({$align:e})=>"left"===e&&"\n justify-content: flex-start;\n padding-left: 20px;\n padding-right: 10px;\n "}
|
|
265
|
-
${({$align:e})=>"right"===e&&"\n justify-content: flex-end;\n padding-left: 10px;\n padding-right: 20px;\n "}
|
|
266
|
-
${({$align:e})=>"center"===e&&"\n justify-content: center;\n align-items: center;\n min-height: 8px;\n "}
|
|
267
|
-
`,dd=o.div`
|
|
268
|
-
width: 0;
|
|
269
|
-
height: 0;
|
|
270
|
-
border-style: solid;
|
|
271
|
-
border-left: 6.5px solid transparent;
|
|
272
|
-
border-right: 6.5px solid transparent;
|
|
273
|
-
flex-shrink: 0;
|
|
274
|
-
|
|
275
|
-
${({$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 `}
|
|
276
|
-
`,ud=o.div`
|
|
277
|
-
display: flex;
|
|
278
|
-
flex-direction: column;
|
|
279
|
-
align-items: stretch;
|
|
280
|
-
min-width: 0;
|
|
281
|
-
`,pd=o.div`
|
|
282
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
283
|
-
border-radius: 4px;
|
|
284
|
-
padding: 8px;
|
|
285
|
-
box-sizing: border-box;
|
|
286
|
-
min-width: 0;
|
|
287
|
-
`,hd=({withIcon:o,titleIcon:r,title:a,text:s,timestamp:l,children:c,fullWidth:d=!1,keepAlive:u=!1,ellipsis:p=!1})=>{const h=i(),{popupRef:g,popupOpen:m,setPopupOpen:f,popupPosition:y,arrowPlacement:b,handlePosition:$}=Vc({positionMode:"viewport",defaultClientHeight:48,defaultClientwidth:Math.min(7.5*(s?.length||0),300)}),v=Ut(()=>!!od(s||"")?.length,[s]),x=e=>{const{type:t,clientX:n,clientY:o}=e;v?$(y.left||n,y.top||o):$(n,o),f("mouseleave"!==t)};return s||u?t(sd,{$fullWidth:d,$ellipsis:p,onMouseEnter:x,onMouseMove:x,onMouseLeave:x,children:[c,o&&e(Ze,{fill:h.v2.colors.white[500]}),e(Ci,{ref:g,isOpen:m&&!!s,top:y.top,left:y.left,asPortal:!0,withPointerEvents:v,onMouseEnter:v?x:void 0,style:{backgroundColor:"transparent",border:"none"},maxWidth:"270px",borderRadius:"0",padding:"0",children:t(ud,{children:["top"===b.edge&&e(cd,{$align:b.align,children:e(dd,{$pointsUp:!0})}),e(pd,{children:t(ld,{children:[(!!r||!!a)&&t(Ar,{$gap:4,style:{alignItems:"center"},children:[r&&e(r,{size:16},"icon"),a&&e(dn,{size:rn.XS,children:a},"title")]}),!!s&&e(dn,{size:rn.XXXS,children:s}),!!l&&e(dn,{size:rn.XXXS,color:an.Secondary,children:new Date(l).toLocaleString()})]})}),"bottom"===b.edge&&e(cd,{$align:b.align,children:e(dd,{$pointsUp:!1})})]})})]}):e(n,{children:c})},gd=o(Ar)`
|
|
288
|
-
gap: 0;
|
|
289
|
-
`,md=o.button`
|
|
290
|
-
padding: 4px 8px;
|
|
291
|
-
background-color: ${({theme:e,$selected:t})=>t?e.colors.dropdown_bg_2:"transparent"};
|
|
292
|
-
border-radius: ${({$position:e})=>"left"===e?"32px 0px 0px 32px":"right"===e?"0px 32px 32px 0px":"0"};
|
|
293
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
294
|
-
display: flex;
|
|
295
|
-
align-items: center;
|
|
296
|
-
justify-content: center;
|
|
297
|
-
cursor: pointer;
|
|
298
|
-
&:hover {
|
|
299
|
-
border: 1px solid ${({theme:e})=>e.colors.secondary};
|
|
300
|
-
}
|
|
301
|
-
`,fd=({isPrettyMode:n,setIsPrettyMode:o})=>t(gd,{children:[e(md,{$position:"left",$selected:n,onClick:()=>o(!0),children:e($t,{})}),e(md,{$position:"right",$selected:!n,onClick:()=>o(!1),children:e(vt,{})})]}),yd=o.table`
|
|
302
|
-
border-collapse: collapse;
|
|
303
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
304
|
-
`,bd=o.tbody``,$d=o.tr`
|
|
305
|
-
td:first-child {
|
|
306
|
-
padding-left: 0 !important;
|
|
307
|
-
}
|
|
308
|
-
td:last-child {
|
|
309
|
-
padding-right: 0 !important;
|
|
310
|
-
}
|
|
311
|
-
`,vd=o.td`
|
|
312
|
-
vertical-align: top;
|
|
313
|
-
padding: 4px 6px;
|
|
314
|
-
`,xd=o(ad)`
|
|
315
|
-
white-space: nowrap;
|
|
316
|
-
`,Sd=o.span`
|
|
317
|
-
white-space: ${({$noWrap:e})=>e?"nowrap":"pre-wrap"};
|
|
318
|
-
overflow-wrap: break-word;
|
|
319
|
-
word-break: break-word;
|
|
320
|
-
word-wrap: break-word;
|
|
321
|
-
/* Fallback for older browsers */
|
|
322
|
-
-ms-word-break: break-all;
|
|
323
|
-
font-size: 12px;
|
|
324
|
-
`,wd=({language:t,code:n,theme:o,flatten:r,pretty:a})=>{const{darkMode:s}=i(),l=o?Vt[o]:s?Vt.palenight:Vt.vsLight;let c="";if("json"===t){const e=Kr(n,{}),t=fi(e);c=yi(r?Ao(t):t)}else c=n;return a&&"json"===t?e(Ed,{darkMode:s,str:c}):e(Kt,{theme:l||(s?Vt.palenight:Vt.vsLight),language:t,code:c,children:({getLineProps:t,getTokenProps:n,tokens:o})=>e("pre",{children:o.map((o,r)=>e("div",{...t({line:o}),children:o.map((t,o)=>e(Sd,{...n({token:t})},`line-${r}-token-${o}`))},`line-${r}`))})})},Ed=({darkMode:n,str:o})=>{const r=i(),a=(n,o)=>{const i=new Array(n).fill(n=>t($d,{...n,children:[e(vd,{}),e(vd,{})]}));return e(Ft,{children:i.map((t,n)=>e(t,{style:0===n?{borderBottom:`1px solid ${r.colors.border}`}:{}},`empty-row-${o}-${n}`))})};return e(Kt,{theme:n?Vt.palenight:Vt.vsLight,language:"json",code:o,children:({getLineProps:n,getTokenProps:o,tokens:i})=>e(yd,{children:e(bd,{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],o=["property","string"].includes(n[0])?t.replace(/"/g,""):t;return"string"===n[0]&&(["true","false"].includes(o.split("@")[0])&&(n[0]="boolean"),o.split("@")[0].match(/^[0-9]+$/)&&(n[0]="number")),{types:n,content:o}})})(i),c=n({line:l});return 1===l.length&&"property"===l[0].types[0]?t(Ft,{children:[a(2,s),t($d,{...c,children:[e(vd,{children:e(xd,{children:l[0].content})}),e(vd,{})]})]},`line-${s}`):2===l.length?e($d,{...c,children:l.map((n,i)=>{const{text:a,components:l}=((t,n)=>{const[o,...r]=t.split("@");return{text:o,components:r?.map((t,o)=>{if(!t.includes("="))return null;const[r,i]=t.split("=");switch(r){case"tooltip":return e(hd,{withIcon:!0,text:i},`${r}-${i}-${o}`);case"status":if("none"===i)return e("div",{style:{width:16,height:16}},`${r}-${i}-${o}`);let t=Ur(i,n);return t||(t=Ur(Rn.Warning,n)),e(t,{},`${r}-${i}-${o}`);default:return null}})?.filter(e=>!!e)||[]}})(n.content,r),c=0===i;return e(vd,{children:t(Ar,{children:[e(Ar,{children:l}),e(Sd,{$noWrap:c,...o({token:n}),children:a})]})},`line-${s}-token-${i}`)})},`line-${s}`):(l.length,null)})})})})},Cd={v2:{text:{size:{xxxs:10,xxs:12,xs:14,s:16,m:20,l:24,xl:32,xxl:40,xxxl:48}},colors:{black:{500:"#151618"},white:{500:"#FFFFFF"},purple:{100:"#E1D4FF",200:"#C3AAFF",300:"#A57FFF",400:"#8855FF",500:"#6A2AFF",600:"#5925D0",700:"#4822A2",800:"#371E73",900:"#271A45"},green:{100:"#DCFDFA",200:"#B9FBF6",300:"#96FAF1",400:"#73F8ED",500:"#50F6E8",600:"#44C9BE",700:"#399D94",800:"#2D6F6A",900:"#224340"},grey:{25:"#F6F6F6",50:"#ECECED",100:"#DADADB",150:"#B8B8B8",200:"#B4B5B7",300:"#8F9093",400:"#696B6F",500:"#44464B",600:"#3A3C40",700:"#313236",800:"#282A2E",900:"#1B1B1C"},silver:{25:"#F6F6F7",50:"#EDEDEE",100:"#DADCDE",200:"#B6B8BD",300:"#91959C",400:"#6D717B",500:"#484E5A",600:"#3E424C",700:"#34383F",750:"#2C2F36",800:"#26292F",900:"#1F2125",1e3:"#1B1C1D"},red:{100:"#FFE5E7",200:"#FFCBD0",300:"#FFB0B8",400:"#FF96A1",500:"#FF7C89",600:"#D06772",700:"#A2535B",800:"#733F44",900:"#452B2D",1e3:"#2E2022"},blue:{100:"#EBF0FA",200:"#D6E1F4",300:"#ADC3EA",400:"#84A4DF",500:"#5C86D5",600:"#3368CA",700:"#2D57A6",800:"#274782",900:"#21375E",1e3:"#1C273A"},yellow:{100:"#FFFBF1",200:"#FFF7E2",300:"#FFEFC6",400:"#FFE7A9",500:"#FFDF8D",600:"#FFD770",700:"#D0B05E",800:"#A28A4C",900:"#73633A",1e3:"#453D28"},beige:{600:"#EEC990"},pink:{500:"#FF7CC8",600:"#FF7CA9"},orange:{600:"#F29142"}},zIndex:{base:1,island:100,drawer:1e3,modal:1e3,dropdown:1100,popover:1100,tooltip:1200}},colors:{majestic_blue:"#444AD9",majestic_blue_soft:"#6C7AE8",orange_og:"#FE9239",orange_soft:"#FFB160",dark_red:"#802828",darker_red:"#611F1F",darkest_red:"#281515",darkest_red_hover:"#351515",dark_green:"#2D4323"},text:{},font_family:{primary:"Inter, sans-serif",secondary:"Kode Mono, sans-serif",code:"IBM Plex Mono, monospace"}},Td={v2:Cd.v2,darkMode:!0,colors:{...Cd.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:Cd.font_family},Ad={v2:Cd.v2,darkMode:!1,colors:{...Cd.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:Cd.font_family},kd=e=>e?Td:Ad;var Id=Object.freeze({__proto__:null,baseTheme:Cd,darkModeTheme:Td,getTheme:kd,lightModeTheme:Ad});Jt('@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 Nd=({children:t})=>{const{darkMode:n}=dc();return e(s,{theme:kd(n),children:t})},Rd={100:"FF","099":"FC","098":"FA","097":"F7","096":"F5","095":"F2","094":"F0","093":"ED","092":"EB","091":"E8","090":"E6","089":"E3","088":"E0","087":"DE","086":"DB","085":"D9","084":"D6","083":"D4","082":"D1","081":"CF","080":"CC","079":"C9","078":"C7","077":"C4","076":"C2","075":"BF","074":"BD","073":"BA","072":"B8","071":"B5","070":"B3","069":"B0","068":"AD","067":"AB","066":"A8","065":"A6","064":"A3","063":"A1","062":"9E","061":"9C","060":"99","059":"96","058":"94","057":"91","056":"8F","055":"8C","054":"8A","053":"87","052":"85","051":"82","050":"80","049":"7D","048":"7A","047":"78","046":"75","045":"73","044":"70","043":"6E","042":"6B","041":"69","040":"66","039":"63","038":"61","037":"5E","036":"5C","035":"59","034":"57","033":"54","032":"52","031":"4F","030":"4D","029":"4A","028":"47","027":"45","026":"42","025":"40","024":"3D","023":"3B","022":"38","021":"36","020":"33","019":"30","018":"2E","017":"2B","016":"29","015":"26","014":"24","013":"21","012":"1F","011":"1C","010":"1A","009":"17","008":"14","007":"12","006":"0F","005":"0D","004":"0A","003":"08","002":"05","001":"03","000":"00"};var Od=Object.freeze({__proto__:null,hex:Rd});const Dd={in:{left:a`
|
|
325
|
-
from { transform: translateX(-100%); }
|
|
326
|
-
to { transform: translateX(0); }
|
|
327
|
-
`,right:a`
|
|
328
|
-
from { transform: translateX(100%); }
|
|
329
|
-
to { transform: translateX(0); }
|
|
330
|
-
`,top:a`
|
|
331
|
-
from { transform: translateY(-100%); }
|
|
332
|
-
to { transform: translateY(0); }
|
|
333
|
-
`,bottom:a`
|
|
334
|
-
from { transform: translateY(100%); }
|
|
335
|
-
to { transform: translateY(0); }
|
|
336
|
-
`,center:a`
|
|
337
|
-
from { transform: translate(-50%, 100%); }
|
|
338
|
-
to { transform: translate(-50%, -50%); }
|
|
339
|
-
`},out:{left:a`
|
|
340
|
-
from { transform: translateX(0); }
|
|
341
|
-
to { transform: translateX(-100%); }
|
|
342
|
-
`,right:a`
|
|
343
|
-
from { transform: translateX(0); }
|
|
344
|
-
to { transform: translateX(100%); }
|
|
345
|
-
`,top:a`
|
|
346
|
-
from { transform: translateY(0); }
|
|
347
|
-
to { transform: translateY(-100%); }
|
|
348
|
-
`,bottom:a`
|
|
349
|
-
from { transform: translateY(0); }
|
|
350
|
-
to { transform: translateY(100%); }
|
|
351
|
-
`,center:a`
|
|
352
|
-
from { transform: translate(-50%, -50%); }
|
|
353
|
-
to { transform: translate(-50%, 100%); }
|
|
354
|
-
`}},_d={in:a`
|
|
355
|
-
from {
|
|
356
|
-
width: 0%;
|
|
357
|
-
}
|
|
358
|
-
to {
|
|
359
|
-
width: 100%;
|
|
360
|
-
}
|
|
361
|
-
`,out:a`
|
|
362
|
-
from {
|
|
363
|
-
width: 100%;
|
|
364
|
-
}
|
|
365
|
-
to {
|
|
366
|
-
width: 0%;
|
|
367
|
-
}
|
|
368
|
-
`},Ld=a`
|
|
369
|
-
0% {
|
|
370
|
-
transform: scale(1);
|
|
371
|
-
opacity: 1;
|
|
372
|
-
}
|
|
373
|
-
75%, 100% {
|
|
374
|
-
transform: scale(2);
|
|
375
|
-
opacity: 0;
|
|
376
|
-
}
|
|
377
|
-
`,Pd=a`
|
|
378
|
-
0% {
|
|
379
|
-
background-position: -500px 0;
|
|
380
|
-
}
|
|
381
|
-
100% {
|
|
382
|
-
background-position: 500px 0;
|
|
383
|
-
}
|
|
384
|
-
`,Fd={in:a`
|
|
385
|
-
from {
|
|
386
|
-
opacity: 0;
|
|
387
|
-
}
|
|
388
|
-
to {
|
|
389
|
-
opacity: 1;
|
|
390
|
-
}
|
|
391
|
-
`,out:a`
|
|
392
|
-
from {
|
|
393
|
-
opacity: 1;
|
|
394
|
-
}
|
|
395
|
-
to {
|
|
396
|
-
opacity: 0;
|
|
397
|
-
}
|
|
398
|
-
`};var Md=Object.freeze({__proto__:null,fade:Fd,ping:Ld,progress:_d,shimmer:Pd,slide:Dd});const zd=o.div`
|
|
399
|
-
width: ${({$orientation:e,$thickness:t,$length:n})=>"vertical"===e?`${t}px`:n||"100%"};
|
|
400
|
-
height: ${({$orientation:e,$thickness:t,$length:n})=>"horizontal"===e?`${t}px`:n||"100%"};
|
|
401
|
-
margin: ${({$orientation:e,$margin:t})=>t||("horizontal"===e?"8px 0":"0 8px")};
|
|
402
|
-
background-color: ${({$type:e,theme:t})=>(e?rr(t,e):t.v2.colors.grey[400])+Rd["050"]};
|
|
403
|
-
opacity: ${({$opacity:e})=>e||1};
|
|
404
|
-
`,Ud=({orientation:t="horizontal",type:n,thickness:o=1,length:r,margin:i,opacity:a})=>e(zd,{$orientation:t,$type:n,$thickness:o,$length:r,$margin:i,$opacity:a}),Bd={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 jd(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 o=(e.match(/[^0-9]*$/)||"").toString();return Bd[o]?{value:t,unit:o}:{value:t,unit:"px"}}function Wd(e){const t=jd(e);return`${t.value}${t.unit}`}const Hd=((e,t,n)=>{const o=`react-spinners-${e}-${n}`;if("undefined"==typeof window||!window.document)return o;const r=document.createElement("style");document.head.appendChild(r);const i=r.sheet,a=`\n @keyframes ${o} {\n ${t}\n }\n `;return i&&i.insertRule(a,0),o})("FadeLoader","50% {opacity: 0.3} 100% {opacity: 1}","fade"),Gd=({loading:n=!0,color:o,scale:r=1,speedMultiplier:a=1,cssOverride:s={},style:l={},...c})=>{const d=i(),u=o||d.text.secondary;if(!n)return null;const{value:p}=jd(2),h=p+4.2,g=h/2+h/5.5,m=4*h*r,f={position:"relative",width:`${m}px`,height:`${m}px`,scale:r,...l,...s},y=(e,t)=>({position:"absolute",width:Wd(1.5),height:Wd(4),borderRadius:Wd(2),backgroundColor:u,transition:"2s",animationFillMode:"both",animation:`${Hd} ${1.2/a}s ${.12*e}s infinite ease-in-out`,transform:`translate(-50%, -50%) rotate(${t}deg)`});return t("span",{style:f,...c,children:[e("span",{style:{...y(1,0),top:`calc(50% + ${h}px)`,left:"50%"}}),e("span",{style:{...y(2,-45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...y(3,90),top:"50%",left:`calc(50% + ${h}px)`}}),e("span",{style:{...y(4,45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${g}px)`}}),e("span",{style:{...y(5,0),top:`calc(50% + ${-1*h}px)`,left:"50%"}}),e("span",{style:{...y(6,-45),top:`calc(50% + ${-1*g}px)`,left:`calc(50% + ${-1*g}px)`}}),e("span",{style:{...y(7,90),top:"50%",left:`calc(50% + ${-1*h}px)`}}),e("span",{style:{...y(8,45),top:`calc(50% + ${g}px)`,left:`calc(50% + ${-1*g}px)`}})]})},Xd=a`
|
|
405
|
-
0% {
|
|
406
|
-
background-position: 0% 50%;
|
|
407
|
-
}
|
|
408
|
-
100% {
|
|
409
|
-
background-position: 100% 50%;
|
|
410
|
-
}
|
|
411
|
-
`,Kd=o(ad)`
|
|
412
|
-
background: ${({$textColor:e,$stripColor:t})=>`linear-gradient(45deg, ${e} 0%, ${e} 40%, ${t} 50%, ${e} 60%, ${e} 100%)`};
|
|
413
|
-
background-size: 250% 100%; /* Expand background to allow movement */
|
|
414
|
-
background-clip: text;
|
|
415
|
-
color: transparent;
|
|
416
|
-
animation: ${Xd} 1s reverse linear infinite;
|
|
417
|
-
`,Vd=({children:t="Loading...",textColor:n,stripColor:o,...r})=>{const a=i(),s=n||a.v2.colors.white[500],l=o||a.v2.colors.black[500];return e(Kd,{$textColor:s,$stripColor:l,...r,children:t})};var Jd,Yd;!function(e){e.Primary="primary",e.Secondary="secondary",e.Text="text"}(Jd||(Jd={})),function(e){e.S="small",e.M="medium",e.L="large"}(Yd||(Yd={}));const qd=o.button`
|
|
418
|
-
display: flex;
|
|
419
|
-
align-items: center;
|
|
420
|
-
justify-content: center;
|
|
421
|
-
gap: 8px;
|
|
422
|
-
${({$fullWidth:e})=>e&&r`
|
|
423
|
-
width: 100%;
|
|
424
|
-
`}
|
|
425
|
-
border: none;
|
|
426
|
-
border-radius: 6px;
|
|
427
|
-
${({$size:e,$hasLabel:t})=>e===Yd.S?r`
|
|
428
|
-
height: 32px;
|
|
429
|
-
${t?r`
|
|
430
|
-
padding: 8px 16px;
|
|
431
|
-
`:r`
|
|
432
|
-
width: 32px;
|
|
433
|
-
`}
|
|
434
|
-
`:e===Yd.M?r`
|
|
435
|
-
height: 38px;
|
|
436
|
-
${t?r`
|
|
437
|
-
padding: 8px 18px;
|
|
438
|
-
`:r`
|
|
439
|
-
width: 38px;
|
|
440
|
-
`}
|
|
441
|
-
`:r`
|
|
442
|
-
height: 44px;
|
|
443
|
-
${t?r`
|
|
444
|
-
padding: 8px 22px;
|
|
445
|
-
`:r`
|
|
446
|
-
width: 44px;
|
|
447
|
-
`}
|
|
448
|
-
`}
|
|
449
|
-
|
|
450
|
-
cursor: pointer;
|
|
451
|
-
&:disabled {
|
|
452
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
453
|
-
cursor: not-allowed;
|
|
454
|
-
}
|
|
455
|
-
&:enabled {
|
|
456
|
-
${({$withShadow:e})=>e?r`
|
|
457
|
-
box-shadow: 0 0 11px 0 rgba(0, 0, 0, 0.32);
|
|
458
|
-
`:""}
|
|
459
|
-
${({$variant:e})=>e===Jd.Primary?r`
|
|
460
|
-
background-color: ${({theme:e})=>e.v2.colors.purple[500]};
|
|
461
|
-
&:hover {
|
|
462
|
-
background-color: ${({theme:e})=>e.v2.colors.purple[600]};
|
|
463
|
-
}
|
|
464
|
-
&:active {
|
|
465
|
-
background-color: ${({theme:e})=>e.v2.colors.purple[700]};
|
|
466
|
-
}
|
|
467
|
-
`:e===Jd.Secondary?r`
|
|
468
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
469
|
-
&:hover {
|
|
470
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
471
|
-
}
|
|
472
|
-
&:active {
|
|
473
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
474
|
-
}
|
|
475
|
-
`:e===Jd.Text?r`
|
|
476
|
-
background-color: transparent;
|
|
477
|
-
&:hover {
|
|
478
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
479
|
-
}
|
|
480
|
-
&:active {
|
|
481
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
482
|
-
}
|
|
483
|
-
`:""}
|
|
484
|
-
}
|
|
485
|
-
`,Qd=Pt(({"data-id":o,label:r,tooltip:a,hideTooltipIcon:s,leftIcon:l,rightIcon:c,variant:d=Jd.Primary,size:u=Yd.M,iconSize:p,loading:h,fullWidth:g,withShadow:m,textColor:f,disabled:y,onClick:b,...$},v)=>{const x=i(),S=p||(u===Yd.L?18:16),w=u===Yd.L?rn.S:rn.XS,E=f||(y?x.v2.colors.grey[400]:x.v2.colors.white[500]),[C,T]=Mt(!1),A=Bt(async e=>{e.stopPropagation(),T(!0),await(b?.(e)),T(!1)},[b]);return e(qd,{ref:v,"data-id":o,$variant:d,$size:u,$fullWidth:g,$withShadow:m,$hasLabel:!!r,disabled:y,onClick:h||C?void 0:A,...$,children:e(hd,{text:a,withIcon:!s,children:h||C?r?e(Vd,{size:x.v2.text.size[w],textColor:E}):e(Gd,{}):t(n,{children:[l&&e(Ir,{$width:"fit-content",children:e(l,{size:S,fill:E})}),r?e(dn,{size:w,weight:500,color:E,nowrap:!0,children:r}):null,c&&e(Ir,{$width:"fit-content",children:e(c,{size:S,fill:E})})]})})})});Qd.displayName=Qd.name;const Zd=({error:n})=>{const o=i(),r={container:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",color:o.text.error,fontFamily:o.font_family.primary},errorMessage:{padding:10,borderRadius:5,whiteSpace:"pre-wrap",background:o.colors.error},errorStack:{whiteSpace:"pre-wrap",fontSize:"12px"},errorStackWrapper:{textAlign:"left",marginTop:10},infoText:{marginTop:100,color:o.text.secondary,fontSize:"14px"}};return t("div",{style:r.container,children:[e("h2",{children:"Something went wrong!"}),e("pre",{style:r.errorMessage,children:n?.message||"Unknown Error"}),t("details",{style:r.errorStackWrapper,children:[e("summary",{children:"Stack Trace"}),e("pre",{style:r.errorStack,children:n?.stack||"Unknown Stack"})]}),e("p",{style:r.infoText,children:"Try refreshing the page or contact support"}),e(Qd,{variant:Jd.Secondary,onClick:()=>window.location.reload(),label:"Reload Page"})]})},eu=({children:t})=>e(Qt,{FallbackComponent:({error:t,...n})=>e(Nd,{children:e(Zd,{...n,error:t})}),children:t}),tu=o.button`
|
|
486
|
-
position: relative;
|
|
487
|
-
width: ${({$size:e})=>e}px;
|
|
488
|
-
height: ${({$size:e})=>e}px;
|
|
489
|
-
border: ${({theme:e,$withBorder:t})=>t?`1px solid ${e.colors.border}`:"none"};
|
|
490
|
-
border-radius: 100%;
|
|
491
|
-
background-color: ${({$backgroundColor:e})=>e||"transparent"};
|
|
492
|
-
display: flex;
|
|
493
|
-
align-items: center;
|
|
494
|
-
justify-content: center;
|
|
495
|
-
cursor: pointer;
|
|
496
|
-
&:hover {
|
|
497
|
-
background-color: ${({theme:e,$backgroundColor:t})=>t?t+Rd["070"]:e.colors.dropdown_bg_2};
|
|
498
|
-
}
|
|
499
|
-
`,nu=o.div`
|
|
500
|
-
position: absolute;
|
|
501
|
-
top: ${({$size:e})=>e/5}px;
|
|
502
|
-
right: ${({$size:e})=>e/5}px;
|
|
503
|
-
width: 6px;
|
|
504
|
-
height: 6px;
|
|
505
|
-
border-radius: 100%;
|
|
506
|
-
background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
|
|
507
|
-
|
|
508
|
-
&::after {
|
|
509
|
-
content: '';
|
|
510
|
-
position: absolute;
|
|
511
|
-
inset: 0;
|
|
512
|
-
border-radius: 100%;
|
|
513
|
-
background-color: ${({theme:e,$color:t})=>t||e.colors.secondary};
|
|
514
|
-
animation: ${Ld} 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
515
|
-
}
|
|
516
|
-
`,ou=({children:n,onClick:o,tooltip:r,size:i=36,withPing:a,pingColor:s,withBorder:l,backgroundColor:c,...d})=>e(hd,{text:r,children:t(tu,{$size:i,$withBorder:l,$backgroundColor:c,onClick:o,...d,children:[a&&e(nu,{$size:i,$color:s}),n]})}),ru=({src:t="",alt:n="",size:o=16})=>{const[r,i]=Mt(!1);return t&&!r?e("img",{src:t,alt:n,width:o,height:o,onError:()=>i(!0)}):e(f,{size:o})},iu=o.div`
|
|
517
|
-
display: flex;
|
|
518
|
-
align-items: center;
|
|
519
|
-
justify-content: center;
|
|
520
|
-
width: ${({$size:e})=>e}px;
|
|
521
|
-
height: ${({$size:e})=>e}px;
|
|
522
|
-
border-radius: 8px;
|
|
523
|
-
background: ${({$status:e,theme:t})=>{const n=e?rr(t,e):t.v2.colors.grey[500];return`linear-gradient(180deg, ${n} 0%, ${n+Rd["030"]} 100%)`}};
|
|
524
|
-
`,au=({icon:t,src:n="",alt:o="",status:r,size:i=36})=>e(iu,{$status:r,$size:i,children:n?e(ru,{src:n,alt:o,size:i-12}):e(t||f,{size:i-12})}),su=o.div`
|
|
525
|
-
position: relative;
|
|
526
|
-
display: flex;
|
|
527
|
-
flex-wrap: wrap;
|
|
528
|
-
align-items: center;
|
|
529
|
-
justify-content: center;
|
|
530
|
-
width: ${({$size:e})=>e}px;
|
|
531
|
-
height: ${({$size:e})=>e}px;
|
|
532
|
-
`,lu=o.div`
|
|
533
|
-
position: absolute;
|
|
534
|
-
top: ${({$top:e})=>e}px;
|
|
535
|
-
left: ${({$left:e})=>e}px;
|
|
536
|
-
z-index: ${({$zIndex:e})=>e};
|
|
537
|
-
display: flex;
|
|
538
|
-
align-items: center;
|
|
539
|
-
justify-content: center;
|
|
540
|
-
width: ${({$size:e})=>e}px;
|
|
541
|
-
height: ${({$size:e})=>e}px;
|
|
542
|
-
border-radius: 100%;
|
|
543
|
-
border: 1px solid ${({theme:e,$status:t})=>(t?rr(e,t):e.v2.colors.grey[400])+Rd["030"]};
|
|
544
|
-
background: ${({$status:e,theme:t})=>{const n=e?rr(t,e):t.v2.colors.grey[500];return`linear-gradient(180deg, ${n} 0%, ${n+Rd["030"]} 100%)`}};
|
|
545
|
-
`,cu=({icons:n=[],iconSrcs:o=[],status:r,size:a=36,id:s})=>{const l=i(),c=1===n.length||1===o.length?a-12:a/2.7;if(o.length>0)return e(cu,{icons:o.map(t=>()=>e(ru,{src:t,size:c})),status:r,size:a,id:s});if(1===n.length)return e(au,{icon:n[0],status:r,size:a});const d=e=>n.length<=2?.5*c:0===e||1===e?0:1.15*c,u=e=>0===e?0:1===e?1.15*c:1.15*c*.5;return e(su,{$status:r,$size:a,children:n.map((o,i)=>i>2?null:e(lu,{$status:r,$size:1.5*c,$top:d(i),$left:u(i),$zIndex:i+1,children:2===i&&n.length>3?t(ad,{family:"secondary",color:l.text.dark_grey,size:.8*c,children:["+",n.length-2]}):e(o,{size:c})},`icon-${s}-${i}`))})},du=o.div`
|
|
546
|
-
position: relative;
|
|
547
|
-
&.animated {
|
|
548
|
-
overflow: hidden;
|
|
549
|
-
padding-bottom: 1px;
|
|
550
|
-
border-radius: 32px;
|
|
551
|
-
animation: ${({$isLeaving:e})=>e?Dd.out.bottom:Dd.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
552
|
-
}
|
|
553
|
-
`,uu=o.div`
|
|
554
|
-
position: absolute;
|
|
555
|
-
bottom: -1px;
|
|
556
|
-
left: 0;
|
|
557
|
-
z-index: -1;
|
|
558
|
-
width: 100%;
|
|
559
|
-
height: 100%;
|
|
560
|
-
border-radius: 32px;
|
|
561
|
-
background-color: ${({$type:e,theme:t})=>rr(t,e)};
|
|
562
|
-
animation: ${_d.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
563
|
-
`,pu=o.div`
|
|
564
|
-
display: flex;
|
|
565
|
-
align-items: center;
|
|
566
|
-
flex: 1;
|
|
567
|
-
gap: 8px;
|
|
568
|
-
padding: 0 12px;
|
|
569
|
-
border-radius: 32px;
|
|
570
|
-
background-color: ${({$type:e,theme:t})=>rr(t,e)};
|
|
571
|
-
`,hu=o.div`
|
|
572
|
-
display: flex;
|
|
573
|
-
align-items: center;
|
|
574
|
-
margin: 0 auto 0 0;
|
|
575
|
-
padding: 8px 0;
|
|
576
|
-
max-width: ${({$withAction:e,$overrideMaxWidth:t})=>t||(e?"400px":"500px")};
|
|
577
|
-
min-height: 12px;
|
|
578
|
-
`,gu=o(ad)`
|
|
579
|
-
font-size: 14px;
|
|
580
|
-
color: ${({$type:e,theme:t})=>rr(t,e)};
|
|
581
|
-
`,mu=o(ad)`
|
|
582
|
-
color: ${({$type:e,theme:t})=>rr(t,e)};
|
|
583
|
-
font-size: 12px;
|
|
584
|
-
`,fu=o(Ar)``,yu=o(ad)`
|
|
585
|
-
text-transform: uppercase;
|
|
586
|
-
text-decoration: underline;
|
|
587
|
-
font-size: 12px;
|
|
588
|
-
font-family: ${({theme:e})=>e.font_family.secondary};
|
|
589
|
-
white-space: nowrap;
|
|
590
|
-
cursor: pointer;
|
|
591
|
-
&:hover {
|
|
592
|
-
transform: scale(1.1);
|
|
593
|
-
transition: transform 0.3s;
|
|
594
|
-
}
|
|
595
|
-
`,bu=({type:n,icon:o,title:r,message:a,action:s,onClose:l,duration:c=5e3,overrideMaxWidth:d,style:u})=>{const p=i(),[h,g]=Mt(!1),m=jt(null),f=jt(null),y=e=>{l&&(g(!0),l({asSeen:e?.asSeen}))};zt(()=>(m.current=setTimeout(()=>y({asSeen:!1}),c),()=>{m.current&&clearTimeout(m.current)}),[c]);const b=o||Ur(n,p);return t(du,{className:l?"animated":"",$duration:c,$isLeaving:h,onMouseEnter:()=>{m.current&&clearTimeout(m.current),f.current&&(f.current.style.animationPlayState="paused")},onMouseLeave:()=>{if(f.current){const e=f.current.offsetWidth/f.current.parentElement.offsetWidth*c;m.current=setTimeout(()=>y({asSeen:!1}),e),f.current.style.animationPlayState="running"}},children:[t(pu,{"data-id":"toast",$type:n,style:u,children:[e(b,{fill:rr(p,n)}),t(hu,{$withAction:!!s,$overrideMaxWidth:d,children:[r&&e(gu,{$type:n,children:r}),r&&a&&e(Ud,{orientation:"vertical",type:n}),a&&e(mu,{$type:n,children:a})]}),(!!s||!!l)&&t(fu,{children:[s&&e(yu,{"data-id":"toast-action",onClick:s.onClick,children:s.label}),l&&e(ou,{"data-id":"toast-close",onClick:()=>y({asSeen:!0}),children:e(xt,{size:12})})]})]}),l&&e(uu,{ref:f,$duration:c,$type:n})]})},$u=o(ad)`
|
|
596
|
-
max-width: ${({$maxWidth:e})=>e?`${e}px`:"unset"};
|
|
597
|
-
white-space: nowrap;
|
|
598
|
-
overflow-x: auto;
|
|
599
|
-
|
|
600
|
-
&::after {
|
|
601
|
-
// This is to prevent the "browser default tooltip" from appearing when the title is too long
|
|
602
|
-
content: '';
|
|
603
|
-
display: block;
|
|
604
|
-
}
|
|
605
|
-
`,vu=({maxWidth:n,text:o,textSize:r=16,textColor:i})=>{const[a,s]=Mt(!1),l=jt(null);return zt(()=>{if(l.current){const{clientWidth:e}=l.current;s(e<1.05*(n-r)&&e>.95*(n-r))}},[n,r,o]),t(Ar,{$gap:0,children:[o&&e(hd,{text:a?o:void 0,children:e($u,{ref:l,$maxWidth:n-r,size:r,color:i,children:o})}),a&&e($u,{$maxWidth:r,size:r,color:i,children:"..."})]})},xu=o.div`
|
|
606
|
-
width: 100%;
|
|
607
|
-
height: 100%;
|
|
608
|
-
|
|
609
|
-
* {
|
|
610
|
-
animation: none !important;
|
|
611
|
-
transition: none !important;
|
|
612
|
-
}
|
|
613
|
-
`,Su=({width:t="100%",height:n="100%",gap:o=0,elements:r,noAnimation:i=!1,onTopIndexChange:a,scrollToIndex:s,scrollSignal:l})=>{const c=jt(null),d=Ut(()=>o?r.map((t,n)=>e("div",{style:{paddingBottom:o},children:t},`scroll-y-item-${n}`)):r,[r,o]),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=e(tn,{ref:c,style:{width:t,height:n},onScroll:a?u:void 0,children:d});return i?e(xu,{children:p}):p},wu=o.div`
|
|
614
|
-
display: flex;
|
|
615
|
-
flex-direction: column;
|
|
616
|
-
gap: 16px;
|
|
617
|
-
${({$maxWidth:e})=>e&&`max-width: ${e};`}
|
|
618
|
-
`,Eu=o.div`
|
|
619
|
-
display: flex;
|
|
620
|
-
align-items: center;
|
|
621
|
-
gap: 16px;
|
|
622
|
-
`,Cu=o.div`
|
|
623
|
-
width: 50px;
|
|
624
|
-
height: 50px;
|
|
625
|
-
border-radius: 8px;
|
|
626
|
-
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
627
|
-
background-size: 200% 100%;
|
|
628
|
-
animation: ${Pd} 10s infinite linear;
|
|
629
|
-
`,Tu=o(kr)`
|
|
630
|
-
flex: 1;
|
|
631
|
-
gap: 12px;
|
|
632
|
-
`,Au=o.div`
|
|
633
|
-
width: ${({$width:e})=>e};
|
|
634
|
-
height: 16px;
|
|
635
|
-
background: ${({theme:e})=>`linear-gradient(90deg, ${e.v2.colors.grey[600]} 25%, ${e.v2.colors.grey[600]} 50%, ${e.v2.colors.silver[500]} 75%)`};
|
|
636
|
-
background-size: 200% 100%;
|
|
637
|
-
animation: ${Pd} 1.5s infinite linear;
|
|
638
|
-
border-radius: 4px;
|
|
639
|
-
`,ku=({size:n=5,maxWidth:o})=>e(wu,{$maxWidth:o,children:[...Array(n)].map((n,o)=>t(Eu,{children:[e(Cu,{}),t(Tu,{children:[e(Au,{$width:"80%"}),e(Au,{$width:"100%"})]})]},o))}),Iu=o.div`
|
|
640
|
-
display: flex;
|
|
641
|
-
align-items: center;
|
|
642
|
-
justify-content: center;
|
|
643
|
-
gap: 4px;
|
|
644
|
-
min-width: ${({$minWidth:e})=>e};
|
|
645
|
-
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
646
|
-
padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
|
|
647
|
-
border-radius: 100px;
|
|
648
|
-
background-color: ${({$backgroundColor:e})=>e};
|
|
649
|
-
`,Nu=({label:n,leftIcon:o,rightIcon:r,tooltip:a,status:s=Rn.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=Rn.Loading===s,b=s?[Rn.Disabled,Rn.Loading].includes(s)?rr(m,s,c?"400":"700"):[Rn.Unknown].includes(s)?rr(m,s,"600"):rr(m,s,c?l?"500":"300":l?"700":"500"):m.v2.colors.grey[200],$=u||(c&&![Rn.Unknown].includes(s)?b:[Rn.Disabled,Rn.Loading].includes(s)?m.v2.colors.grey[400]:[Rn.Error,Rn.Warning,Rn.Success].includes(s)?m.v2.colors.black[500]:m.v2.colors.white[500]),v=p||(c&&![Rn.Unknown].includes(s)?[Rn.Disabled,Rn.Loading].includes(s)?m.v2.colors.grey[700]:m.v2.colors.silver[700]:b);return e(hd,{text:a,fullWidth:g,children:t(Iu,{$backgroundColor:v,$minWidth:h,$fullWidth:g,$hasLabel:!!f,children:[!y||f&&o?o?e(o,{fill:$,size:d?m.v2.text.size[d]+2:14}):null:e(zr,{withSpinnerOld:!0,scaleSpinnerOld:.5}),f?y?e(zr,{withGradient:!0,title:f,titleSize:d||rn.XXS}):e(dn,{color:$,size:d||rn.XXS,nowrap:!0,children:f}):null,r&&e(r,{fill:$,size:d?m.v2.text.size[d]+2:14})]})})},Ru=o.span`
|
|
650
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
651
|
-
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
652
|
-
font-weight: 400;
|
|
653
|
-
color: ${({theme:e,$smallAndDark:t})=>t?e.v2.colors.grey[400]:e.v2.colors.silver[200]};
|
|
654
|
-
`,Ou=o.span`
|
|
655
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
656
|
-
font-size: 14px;
|
|
657
|
-
font-weight: 400;
|
|
658
|
-
color: ${({theme:e})=>e.v2.colors.red[500]};
|
|
659
|
-
`,Du=({label:n,tooltip:o,required:r,badge:i,width:a,smallAndDark:s})=>n||o||r?t(Ar,{$width:a,$justifyContent:"space-between",children:[n&&e(Ru,{$smallAndDark:s,children:n}),t(Ar,{$gap:4,children:[i&&e(Nu,{...i,textSize:rn.XXXS}),r&&e(Ou,{children:"*"}),o&&e(hd,{text:o,withIcon:!0})]})]}):null,_u=({errorMessage:n,warnMessage:o,helpMessage:r})=>{const a=i(),s=n?a.v2.colors.red[500]:o?a.v2.colors.yellow[500]:a.v2.colors.silver[200],l=e(nt,{size:12,fill:s});return n||o||r?t(Ar,{$alignItems:"center",children:[l&&e(kr,{children:l}),e(dn,{size:rn.XXXS,weight:400,color:s,children:n||o||r})]}):null},Lu=o.div`
|
|
660
|
-
padding: ${({$small:e})=>e?"4px":"6px 12px"};
|
|
661
|
-
|
|
662
|
-
display: flex;
|
|
663
|
-
align-self: stretch;
|
|
664
|
-
align-items: center;
|
|
665
|
-
gap: 8px;
|
|
666
|
-
border-radius: 6px;
|
|
667
|
-
cursor: ${({$clickable:e})=>e?"pointer":"inherit"};
|
|
668
|
-
|
|
669
|
-
border: 1px solid ${({theme:e,$disabled:t,$error:n})=>t?e.v2.colors.grey[600]:n?e.v2.colors.red[500]:e.v2.colors.silver[500]};
|
|
670
|
-
background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
|
|
671
|
-
${({$disabled:e,$error:t})=>!e&&!t&&r`
|
|
672
|
-
&:hover,
|
|
673
|
-
&:active,
|
|
674
|
-
&:focus-within {
|
|
675
|
-
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
676
|
-
}
|
|
677
|
-
`}
|
|
678
|
-
`,Pu=o.input`
|
|
679
|
-
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
680
|
-
width: ${({$width:e})=>e||"unset"};
|
|
681
|
-
|
|
682
|
-
flex: 1;
|
|
683
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
684
|
-
font-size: ${({$small:e})=>e?"12px":"14px"};
|
|
685
|
-
font-weight: 400;
|
|
686
|
-
|
|
687
|
-
cursor: text;
|
|
688
|
-
color: ${({theme:e})=>e.v2.colors.white[500]};
|
|
689
|
-
&::placeholder {
|
|
690
|
-
color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
&:disabled {
|
|
694
|
-
cursor: not-allowed;
|
|
695
|
-
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
696
|
-
&::placeholder {
|
|
697
|
-
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
overflow: hidden;
|
|
702
|
-
text-overflow: ellipsis;
|
|
703
|
-
white-space: nowrap;
|
|
704
|
-
|
|
705
|
-
&:read-only {
|
|
706
|
-
cursor: pointer;
|
|
707
|
-
pointer-events: none;
|
|
708
|
-
user-select: none;
|
|
709
|
-
}
|
|
710
|
-
`,Fu=o.div`
|
|
711
|
-
display: flex;
|
|
712
|
-
align-items: center;
|
|
713
|
-
justify-content: center;
|
|
714
|
-
cursor: pointer;
|
|
715
|
-
`,Mu=({label:n,required:o,tooltip:r,badge:a,leftIcon:s,rightIcon:l,hasError:c,errorMessage:d,warnMessage:u,helpMessage:p,type:h=Nn.Text,name:g,value:m,onChange:f,disabled:y,maxWidth:b,width:$,small:v=!1,onClick:x,...S})=>{const w=i(),E=h===Nn.Password,[C,T]=Mt(!1),[A,k]=Mt(null),I=c||!!d||!!A,N=m?w.v2.colors.white[500]:y?w.v2.colors.grey[400]:w.v2.colors.silver[200],R=v?14:18,O=jt(null),D=Gc(O,{deps:[m]}),_=S.readOnly&&D&&null!=m&&""!==m?String(m):"";return t(kr,{$width:$,$gap:6,children:[e(Du,{label:n,tooltip:r,required:o,badge:a}),e(Lu,{$small:v,$disabled:y,$error:I,$clickable:!!x&&!y,onClick:y?void 0:x,children:t(hd,{text:_,fullWidth:!0,keepAlive:!0,children:[s?e(s,{size:R,fill:N}):null,e(Pu,{"data-id":g,type:C||h===Nn.Number||h===Nn.Decimal?Nn.Text:h,name:g,value:m,onChange:e=>{e.stopPropagation();const t=e.target.value;if(h===Nn.Number||h===Nn.Decimal){const n=h===Nn.Number?pi(t):ui(t),o=null!=S.min?Number(S.min):void 0,r=null!=S.max?Number(S.max):void 0,i=h===Nn.Decimal&&n.endsWith(".");let a=n,s=!1;if(n&&!i){const e=parseFloat(n);isNaN(e)||(null!=r&&e>r?(a=String(r),s=!0):null!=o&&e<o&&(a=String(o),s=!0))}if(e.target.value=a,t&&t!==n)k("Please enter a valid number");else if(s){k(`Value must be ${null!=o&&null!=r?`between ${o} and ${r}`:null!=r?`at most ${r}`:`at least ${o}`}`)}else k(null)}f?.(e)},onKeyDown:e=>{["Enter"].includes(e.key)||e.stopPropagation()},disabled:y,$maxWidth:b,$width:$,$small:v,...S,ref:O}),E?e(Fu,{onClick:()=>T(e=>!e),children:e(C?St:wt,{size:R,fill:N})}):l?e(l,{size:R,fill:N}):null]})}),e(_u,{errorMessage:A||d,warnMessage:u,helpMessage:p})]})};var zu,Uu;!function(e){e.S="s",e.L="l"}(zu||(zu={})),function(e){e.Filled="filled",e.Underline="underline"}(Uu||(Uu={}));const Bu=o.div`
|
|
716
|
-
display: flex;
|
|
717
|
-
align-items: center;
|
|
718
|
-
gap: 2px;
|
|
719
|
-
padding: 3px;
|
|
720
|
-
border-radius: 8px;
|
|
721
|
-
border: 1px solid ${({theme:e})=>e.v2.colors.grey[500]};
|
|
722
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
723
|
-
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
724
|
-
`,ju=o.button`
|
|
725
|
-
flex: 1;
|
|
726
|
-
display: flex;
|
|
727
|
-
align-items: center;
|
|
728
|
-
justify-content: center;
|
|
729
|
-
gap: 8px;
|
|
730
|
-
padding: ${({$size:e})=>e===zu.S?"4px 8px":"8px 16px"};
|
|
731
|
-
border-radius: 6px;
|
|
732
|
-
border: 1px solid ${({$isSelected:e,$selectedBorderColor:t})=>e&&t?t:"transparent"};
|
|
733
|
-
box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
|
|
734
|
-
|
|
735
|
-
${({$disabled:e,$isSelected:t,$selectedBgColor:n,theme:o})=>e?r`
|
|
736
|
-
cursor: not-allowed;
|
|
737
|
-
background-color: ${t?(n||o.v2.colors.black[500])+Rd["040"]:"transparent"};
|
|
738
|
-
`:r`
|
|
739
|
-
cursor: pointer;
|
|
740
|
-
background-color: ${t?n||o.v2.colors.black[500]:"transparent"};
|
|
741
|
-
&:hover {
|
|
742
|
-
background-color: ${t?n||o.v2.colors.black[500]:o.v2.colors.silver[800]};
|
|
743
|
-
}
|
|
744
|
-
`}
|
|
745
|
-
`,Wu=o.div`
|
|
746
|
-
display: flex;
|
|
747
|
-
align-items: stretch;
|
|
748
|
-
width: ${({$fullWidth:e})=>e?"100%":"fit-content"};
|
|
749
|
-
`,Hu=o.button`
|
|
750
|
-
display: flex;
|
|
751
|
-
height: 34px;
|
|
752
|
-
padding: 8px 12px 8px 16px;
|
|
753
|
-
justify-content: center;
|
|
754
|
-
align-items: center;
|
|
755
|
-
gap: 8px;
|
|
756
|
-
border: none;
|
|
757
|
-
border-bottom: 2px solid ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:"transparent"};
|
|
758
|
-
border-radius: ${({$isSelected:e})=>e?"6px 6px 0 0":"0"};
|
|
759
|
-
background-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.silver[1e3]:"transparent"};
|
|
760
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
761
|
-
transition:
|
|
762
|
-
border-color 0.2s,
|
|
763
|
-
background-color 0.2s,
|
|
764
|
-
border-radius 0.2s;
|
|
765
|
-
&:hover {
|
|
766
|
-
border-bottom-color: ${({theme:e,$isSelected:t})=>t?e.v2.colors.white[500]:e.v2.colors.grey[500]};
|
|
767
|
-
}
|
|
768
|
-
`,Gu=({"data-id":o,size:r=zu.S,variant:a=Uu.Filled,options:s=[],selected:l,setSelected:c,disabled:d,fullWidth:u=!1})=>{const p=i(),h=a===Uu.Underline,g=h?Hu:ju;return e(h?Wu:Bu,{"data-id":o,$fullWidth:u,children:s.map(({value:o,label:i,icon:a,badge:s,tooltip:u,selectedBgColor:m,selectedBorderColor:f,disabled:y},b)=>{const $=l===o,v=y||d,x=v?p.v2.colors.grey[400]:h||$?p.v2.colors.white[500]:p.v2.colors.grey[300],S=r===zu.S?rn.XXS:rn.XS,w=$?500:400,E=t(n,{children:[a&&e(a,{fill:x}),i&&e(dn,{size:S,weight:w,color:x,nowrap:!0,children:i}),s&&e(Nu,{...s})]});return e(g,{onClick:()=>!v&&c(o),$disabled:v,$isSelected:$,$size:r,...!h&&{$selectedBgColor:m,$selectedBorderColor:f},children:u?e(hd,{text:u,withIcon:!0,children:E}):E},`segment-${b}-${i}-${o}`)})})},Xu=o.div`
|
|
769
|
-
box-sizing: border-box !important;
|
|
770
|
-
width: ${({$width:e})=>e??"fit-content"};
|
|
771
|
-
padding: ${({$withSegment:e})=>e?"2px 2px 2px 12px":"6px 12px"};
|
|
772
|
-
display: flex;
|
|
773
|
-
align-self: stretch;
|
|
774
|
-
align-items: center;
|
|
775
|
-
gap: 8px;
|
|
776
|
-
overflow: hidden;
|
|
777
|
-
border-radius: 6px;
|
|
778
|
-
|
|
779
|
-
border: none;
|
|
780
|
-
border-radius: 6px;
|
|
781
|
-
background: ${({$isHovered:e,$isActive:t,$idleBackgroundColor:n,$emphasizeBackgroundColor:o,theme:r})=>{const i=n??r.v2.colors.silver[800],a=o??r.v2.colors.silver[700];return e||t?a:i}};
|
|
782
|
-
`,Ku=o.input`
|
|
783
|
-
min-width: 0;
|
|
784
|
-
flex: 1;
|
|
785
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
786
|
-
font-size: 14px;
|
|
787
|
-
font-weight: 400;
|
|
788
|
-
line-height: 20px;
|
|
789
|
-
|
|
790
|
-
cursor: text;
|
|
791
|
-
color: ${({$textColor:e})=>e};
|
|
792
|
-
&::placeholder {
|
|
793
|
-
color: ${({$textColor:e})=>e};
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
overflow: hidden;
|
|
797
|
-
text-overflow: ellipsis;
|
|
798
|
-
white-space: nowrap;
|
|
799
|
-
`,Vu=({"data-id":n,value:o,onChange:r,onFocus:a,onBlur:s,placeholder:l,width:c,segment:d,idleBackgroundColor:u,emphasizeBackgroundColor:p})=>{const h=i(),[g,m]=Mt(!1),[f,y]=Mt(!1),[b,$]=Mt(!1),v=g?h.v2.colors.white[500]:h.v2.colors.silver[200],x=!!d?.options?.length,S=Ut(()=>{if(x)return d?.options.find(e=>e.value===d.selected)?.label},[x,d?.options,d?.selected]),w=Ut(()=>l||(x&&S?`Search by ${S.toLowerCase()}`:"Search..."),[l,x,S]);return t(Xu,{$width:c,$withSegment:x,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),$isHovered:f&&!b,$isActive:g,$idleBackgroundColor:u,$emphasizeBackgroundColor:p,children:[e(Et,{size:18,fill:v}),e(Ku,{"data-id":n??"search",name:"search",type:"text",placeholder:w,value:o,onChange:e=>{e.stopPropagation(),r(e.target.value)},onFocus:()=>{m(!0),a?.()},onBlur:()=>{m(!1),s?.()},$textColor:v}),x&&e("div",{style:{flexShrink:0},onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1),children:e(Gu,{"data-id":d["data-id"],options:d.options,selected:d.selected,setSelected:d.setSelected})})]})},Ju=o.div`
|
|
800
|
-
display: flex;
|
|
801
|
-
align-items: center;
|
|
802
|
-
justify-content: center;
|
|
803
|
-
width: fit-content;
|
|
804
|
-
height: fit-content;
|
|
805
|
-
padding: 8px;
|
|
806
|
-
border-radius: 100%;
|
|
807
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
808
|
-
`,Yu=({icon:n=xt,hideIcon:o=!1,title:r="No data",subTitle:a,button:s})=>{const l=i().v2.colors.silver[200];return t(kr,{$gap:12,$alignItems:"center",children:[!o&&e(Ju,{children:e(n,{size:32,fill:l})}),t(kr,{$gap:4,$alignItems:"center",children:[e(dn,{size:rn.S,align:"center",children:r}),a&&e(dn,{size:rn.XXS,align:"center",color:l,children:a})]}),s&&e(Qd,{variant:Jd.Secondary,...s})]})};var qu;!function(e){e.S="small",e.L="large"}(qu||(qu={}));const Qu=o.div`
|
|
809
|
-
width: fit-content;
|
|
810
|
-
display: flex;
|
|
811
|
-
align-items: center;
|
|
812
|
-
gap: 8px;
|
|
813
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
814
|
-
`,Zu=o.div`
|
|
815
|
-
width: ${({$size:e})=>e===qu.S?"16px":"20px"};
|
|
816
|
-
height: ${({$size:e})=>e===qu.S?"16px":"20px"};
|
|
817
|
-
display: flex;
|
|
818
|
-
align-items: center;
|
|
819
|
-
justify-content: center;
|
|
820
|
-
border-radius: 4px;
|
|
821
|
-
border: 1px solid ${({$borderColor:e})=>e};
|
|
822
|
-
background-color: ${({$backgroundColor:e})=>e};
|
|
823
|
-
`,ep=({name:n,label:o,tooltip:r,badge:a,size:s=qu.L,disabled:l,partiallyChecked:c,value:d,onChange:u,errorMessage:p,warnMessage:h,helpMessage:g})=>{const m=i(),[f,y]=Mt(!1),b=c||d,$=s===qu.S?12:16,v=l?m.v2.colors.grey[400]:m.v2.colors.white[500],x=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 t(kr,{$gap:4,children:[t(Ar,{$justifyContent:"space-between",children:[t(Qu,{"data-id":n||"checkbox"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),l||u(!!c||!d)},$disabled:l,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[e(Zu,{$size:s,$borderColor:x,$backgroundColor:S,children:c?e(Ct,{size:$,fill:v}):d?e(yt,{size:$,fill:v}):null}),o&&e(dn,{size:s===qu.S?rn.XXS:rn.XS,nowrap:!0,children:o})]}),e(Du,{tooltip:r,badge:a})]}),e(_u,{errorMessage:p,warnMessage:h,helpMessage:g})]})},tp=o.div`
|
|
824
|
-
display: flex;
|
|
825
|
-
flex-direction: ${({$direction:e})=>e===$n.Horizontal?"row":"column"};
|
|
826
|
-
gap: ${({$direction:e})=>e===$n.Horizontal?16:8}px;
|
|
827
|
-
`,np=({direction:n=$n.Vertical,title:o,size:r,disabled:i,withSelectAll:a,options:s,values:l,setValues:c})=>{const d=r===qu.S?rn.XXS:rn.XS,u=Ut(()=>s.every(e=>l[e.id]),[s,l]),p=Ut(()=>s.some(e=>l[e.id])&&s.some(e=>!l[e.id]),[s,l]),h=(e,t)=>{c(n=>{const o={...n};return e?o[e]=t:s.forEach(e=>o[e.id]=t),o})};return t(tp,{$direction:n,children:[o&&a?e(ep,{label:o,partiallyChecked:p,value:u,onChange:e=>h("",e),size:r}):o&&!a?e(dn,{size:d,children:o}):null,s.map(t=>e(ep,{...t,value:l[t.id],onChange:e=>h(t.id,e),disabled:i,size:r},`${o}-checkbox-${t.id}`))]})};var op,rp;!function(e){e.Left="left",e.Right="right"}(op||(op={})),function(e){e.Top="top",e.Bottom="bottom"}(rp||(rp={}));const ip=o.div`
|
|
828
|
-
position: relative;
|
|
829
|
-
display: flex;
|
|
830
|
-
flex-direction: column;
|
|
831
|
-
gap: 4px;
|
|
832
|
-
`,ap=o.div`
|
|
833
|
-
position: fixed;
|
|
834
|
-
${({$coords:e})=>null!=e.top?`top: ${e.top}px;`:""}
|
|
835
|
-
${({$coords:e})=>null!=e.bottom?`bottom: ${e.bottom}px;`:""}
|
|
836
|
-
${({$coords:e})=>null!=e.left?`left: ${e.left}px;`:""}
|
|
837
|
-
${({$coords:e})=>null!=e.right?`right: ${e.right}px;`:""}
|
|
838
|
-
${({$coords:e})=>null!=e.width?`width: ${e.width-16}px;`:""}
|
|
839
|
-
z-index: ${({theme:e})=>e.v2.zIndex.dropdown};
|
|
840
|
-
|
|
841
|
-
display: flex;
|
|
842
|
-
flex-direction: column;
|
|
843
|
-
gap: 0;
|
|
844
|
-
|
|
845
|
-
min-width: 120px;
|
|
846
|
-
padding: 8px;
|
|
847
|
-
border-radius: 6px;
|
|
848
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
849
|
-
box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.3);
|
|
850
|
-
`,sp=o.div`
|
|
851
|
-
display: flex;
|
|
852
|
-
flex-direction: column;
|
|
853
|
-
gap: 0;
|
|
854
|
-
|
|
855
|
-
width: 100%;
|
|
856
|
-
max-height: ${({$maxHeight:e})=>e||"230px"};
|
|
857
|
-
overflow-y: auto;
|
|
858
|
-
`,lp=o.div`
|
|
859
|
-
display: flex;
|
|
860
|
-
align-items: center;
|
|
861
|
-
gap: 8px;
|
|
862
|
-
width: 100%;
|
|
863
|
-
padding: 8px;
|
|
864
|
-
border-radius: 6px;
|
|
865
|
-
cursor: pointer;
|
|
866
|
-
${({$selected:e})=>e?r`
|
|
867
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
868
|
-
`:r`
|
|
869
|
-
background-color: transparent;
|
|
870
|
-
&:hover {
|
|
871
|
-
background-color: ${({theme:e})=>e.v2.colors.grey[700]};
|
|
872
|
-
}
|
|
873
|
-
`}
|
|
874
|
-
`,cp=o.div`
|
|
875
|
-
display: flex;
|
|
876
|
-
align-items: center;
|
|
877
|
-
gap: 8px;
|
|
878
|
-
flex: 1;
|
|
879
|
-
min-width: 0;
|
|
880
|
-
`,dp=o.div`
|
|
881
|
-
flex: 0 1 auto;
|
|
882
|
-
min-width: 0;
|
|
883
|
-
overflow: hidden;
|
|
884
|
-
text-overflow: ellipsis;
|
|
885
|
-
white-space: nowrap;
|
|
886
|
-
`,up=o.span`
|
|
887
|
-
flex-shrink: 0;
|
|
888
|
-
width: 88px;
|
|
889
|
-
display: inline-flex;
|
|
890
|
-
justify-content: center;
|
|
891
|
-
padding: 1px 6px;
|
|
892
|
-
border-radius: 4px;
|
|
893
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
894
|
-
border: 1px solid ${({theme:e})=>e.v2.colors.silver[600]};
|
|
895
|
-
`,pp=o.div`
|
|
896
|
-
flex-shrink: 0;
|
|
897
|
-
display: inline-flex;
|
|
898
|
-
align-items: center;
|
|
899
|
-
gap: 4px;
|
|
900
|
-
`,hp=({defaultOpen:n,open:o,onOpenChange:r,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:$,children:v})=>{const x=i(),S=void 0!==o,w=!!f||!!y||!!v,[E,C]=Mt(n??!w),T=S?o:E,A=Bt(e=>{S||C(e),r?.(e)},[S,r]),[k,I]=Mt({x:a||op.Left,y:s||rp.Bottom}),N=jt(null);Hc(N,()=>A(!1));const[R,O]=Mt({}),D=Bt((e,t)=>{const n=N.current?.getBoundingClientRect();if(!n)return;const o=w?8:0;O({top:t===rp.Bottom?w?n.bottom+o:n.top:void 0,bottom:t===rp.Top?w?window.innerHeight-n.top+o:window.innerHeight-n.bottom:void 0,left:e===op.Left?n.left:void 0,right:e===op.Right?window.innerWidth-n.right:void 0,width:g?n.width:void 0})},[w,g]),_=e=>{const t=!T;if(A(t),!t)return;const n={x:a||(e.clientX>window.innerWidth/2?op.Right:op.Left),y:s||(e.clientY>window.innerHeight/2?rp.Top:rp.Bottom)};I(n),D(n.x,n.y)};Wt(()=>{T&&D(k.x,k.y)},[T,k.x,k.y,D]);const L=e=>{d(p?c.includes(e)?c.filter(t=>t!==e):[...c,e]:[e]),w&&!p&&A(!1)},[P,F]=Mt(""),M=Ut(()=>P?l.filter(e=>e?.label?.toLowerCase().includes(P.toLowerCase())):l,[l.length,P]);return t(ip,{ref:N,children:[u&&e(Du,{label:u}),f&&e(Qd,{...f,fullWidth:g,rightIcon:T?Tt:At,onClick:_}),y&&e(Qd,{variant:Jd.Text,size:Yd.S,...y,onClick:_}),"function"==typeof v?v({ChevronIcon:T?Tt:At,handleClick:_}):v,T&&en(t(ap,{$coords:R,"data-ignore-outside-click":"true",children:[h&&e(Vu,{value:P,onChange:F,width:"100%"}),b?e(zr,{withSpinner:!0,title:"Loading...",titleSize:rn.XS}):M.length?e(sp,{$maxHeight:m,children:M.map(n=>{if(!n)return null;const{id:o,label:r,icon:i,withCheckbox:a,badge:s,secondaryLabel:l}=n,d=c.includes(o);return t(lp,{"data-id":`option-${o}`,$selected:d&&!a,onClick:()=>L(o),title:l?`${r} — ${l}`:r,children:[a&&e(ep,{value:d,onChange:()=>L(o)}),i&&e(i,{size:14,fill:n.color||x.v2.colors.white[500]}),s&&e(up,{children:e(dn,{size:rn.XXS,nowrap:!0,color:an.Secondary,children:s})}),t(cp,{children:[e(dp,{children:e(dn,{size:rn.XS,nowrap:!0,color:n.color||an.Primary,children:r})}),l&&t(pp,{children:[e(We,{size:12,fill:x.v2.colors.silver[200]}),e(dn,{size:rn.XS,nowrap:!0,color:an.Secondary,children:l})]})]})]},o)})}):e(Tr,{$padding:"6px 0",children:e(Yu,{hideIcon:!0,title:"No results",subTitle:$})}),p&&!!M.length&&e(Qd,{label:"Done",onClick:()=>A(!1)})]}),document.body)]})},gp=t=>{const{"data-id":n,options:o,placeholder:r="Search...",isLoading:i}=t,a=!0===t.multiple,[s,l]=Mt(""),[c,d]=Mt(!1),u=Ut(()=>a?t.value:t.value?[t.value]:[],[a,t.value]),p=Ut(()=>{if(a){const e=u.length;return e?1===e?o.find(e=>e.id===u[0])?.label??"":`${e} selected`:""}return t.value?o.find(e=>e.id===t.value)?.label??"":""},[a,t,o,u]),h=c?s:p,g=Ut(()=>{const e=a?o.map(e=>({...e,withCheckbox:!0})):o;if(!s)return e;const t=s.toLowerCase();return e.filter(e=>[e.label,e.badge,e.secondaryLabel].some(e=>e?.toLowerCase().includes(t)))},[a,o,s]),m=Bt(()=>{l(""),d(!0)},[]),f=Bt(e=>{l(e.target.value),c||d(!0),a||e.target.value||!t.value||t.onSelect(null)},[c,a,t]),y=Bt(e=>{d(e),e||l("")},[]),b=Bt(e=>{if(a)return void t.onSelect(e);const n=o.find(t=>t.id===e[0]);n&&(t.onSelect(n),l(""),d(!1))},[a,t,o]),$=c&&(i||g.length>0||s.length>0);return e(hp,{open:$,onOpenChange:y,items:g,selectedIds:u,setSelectedIds:b,withMultiSelect:a,isLoading:i,emptyMessage:`No results matched the filter '${s}'`,fullWidth:!0,alignY:rp.Bottom,children:e(Mu,{name:n,leftIcon:Et,placeholder:r,value:h,onChange:f,onFocus:m})})},mp=o.button`
|
|
901
|
-
width: 100%;
|
|
902
|
-
padding: 0;
|
|
903
|
-
padding-right: 12px;
|
|
904
|
-
display: flex;
|
|
905
|
-
align-items: center;
|
|
906
|
-
justify-content: flex-start;
|
|
907
|
-
gap: 12px;
|
|
908
|
-
border-radius: 8px;
|
|
909
|
-
border: none;
|
|
910
|
-
${({$hovered:e})=>e?r`
|
|
911
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
912
|
-
`:r`
|
|
913
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
914
|
-
`}
|
|
915
|
-
overflow: hidden;
|
|
916
|
-
cursor: pointer;
|
|
917
|
-
&:disabled {
|
|
918
|
-
cursor: not-allowed;
|
|
919
|
-
opacity: 0.5;
|
|
920
|
-
}
|
|
921
|
-
`,fp=o.div`
|
|
922
|
-
width: ${({$hasIcon:e})=>e?"56px":"0"};
|
|
923
|
-
height: 56px;
|
|
924
|
-
display: flex;
|
|
925
|
-
align-items: center;
|
|
926
|
-
justify-content: center;
|
|
927
|
-
${({$hovered:e})=>e?r`
|
|
928
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
929
|
-
`:r`
|
|
930
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
931
|
-
`}
|
|
932
|
-
`,yp=o.div`
|
|
933
|
-
width: ${({$hasIcon:e})=>e?"calc(100% - 56px)":"100%"};
|
|
934
|
-
display: flex;
|
|
935
|
-
justify-content: space-between;
|
|
936
|
-
align-items: center;
|
|
937
|
-
gap: 8px;
|
|
938
|
-
`,bp=({label:n,icon:o,loading:r,disabled:i,onClick:a})=>{const[s,l]=Mt(!1);return t(mp,{$hovered:s,type:"button",disabled:i||r,onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[e(fp,{$hovered:s,$hasIcon:!!o,children:o&&e(o,{size:36})}),t(yp,{$hasIcon:!!o,children:[r?e(Vd,{size:16}):e(dn,{variant:on.Span,align:"center",children:n}),e(kt,{rotate:90,size:24})]})]})},$p=({buttons:t})=>e(kr,{$gap:12,children:t.map((t,n)=>e(bp,{...t},`${t.label}-${n}`))});var vp;!function(e){e.Button="button",e.ButtonDropData="button-drop-data"}(vp||(vp={}));const xp=({onAnyClick:t,actions:n})=>e(Ar,{$gap:8,$alignItems:"center",children:n?.map(n=>{if(!n)return null;switch(n.type){case vp.Button:return e(Qd,{...n.buttonProps,onClick:e=>{n.buttonProps?.onClick?.(e),t?.()}},n.id);case vp.ButtonDropData:return e(hp,{...n.dropDataProps,items:n.dropDataProps?.items??[],withMultiSelect:!1,selectedIds:[],setSelectedIds:e=>{n.buttonProps?.onClick?.(e[0]),t?.()},buttonProps:n.buttonProps},n.id);default:return null}})}),Sp=({children:t,fullText:n,fullWidth:o=!0,...r})=>{const i=jt(null),a=!!r.maxLines&&r.maxLines>0,s=Gc(i,{axis:a?"vertical":"horizontal",deps:[t]})?n??(null==t?"":String(t)):"";return e(hd,{text:s,fullWidth:o,ellipsis:!a,keepAlive:!0,children:e(dn,{ref:i,...r,children:t})})},wp=o.div`
|
|
939
|
-
display: flex;
|
|
940
|
-
align-items: center;
|
|
941
|
-
justify-content: center;
|
|
942
|
-
padding: 8px;
|
|
943
|
-
border-radius: 8px;
|
|
944
|
-
background-color: ${({theme:e})=>e.v2.colors.white[500]+Rd["004"]};
|
|
945
|
-
`,Ep=({icon:n,iconWithWrapper:o=!1,title:r,titleSize:i=rn.S,titleColor:a=an.Primary,titleWrap:s=!1,subTitle:l,subTitleSize:c=rn.XXS,subTitleColor:d=an.Secondary,subTitleWrap:u=!1,tooltip:p,withCopy:h,badge:g,gap:m,children:f})=>{const{CopyButton:y}=Pc();return t(Ar,{$gap:l?8:6,$alignItems:"center",children:[n&&(o||l?e(wp,{children:e(n,{size:24})}):e(n,{size:24})),r||g||l?t(kr,{children:[r||g?t(Ar,{$gap:6,$alignItems:"center",children:[r&&e(dn,{size:i,color:a,nowrap:!s,children:r}),h&&r&&e(y,{value:r,size:Dc.XS}),p&&e(hd,{text:p,withIcon:!0}),g&&e(Nu,{...g})]}):null,l&&e(dn,{size:c,color:d,nowrap:!u,children:l})]}):null,e(Ar,{$gap:m,$margin:`0 0 0 ${m??0}px`,$alignItems:"center",children:f})]})},Cp=o.section`
|
|
946
|
-
display: flex;
|
|
947
|
-
flex-direction: column;
|
|
948
|
-
gap: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
949
|
-
width: ${({$width:e="100%"})=>e};
|
|
950
|
-
align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
|
|
951
|
-
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
952
|
-
padding: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
953
|
-
border-radius: ${({$moreSpacing:e})=>e?"16px":"12px"};
|
|
954
|
-
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t]};
|
|
955
|
-
`,Tp=o(Ar)`
|
|
956
|
-
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
957
|
-
user-select: ${({$clickable:e})=>e?"none":"auto"};
|
|
958
|
-
`,Ap=o.div`
|
|
959
|
-
display: flex;
|
|
960
|
-
align-items: flex-end;
|
|
961
|
-
flex-wrap: wrap;
|
|
962
|
-
width: 100%;
|
|
963
|
-
`,kp=o.div`
|
|
964
|
-
width: ${({$cellsPerRow:e})=>e?`calc(${100/e}% - 16px)`:"unset"};
|
|
965
|
-
margin: 8px;
|
|
966
|
-
display: flex;
|
|
967
|
-
flex-direction: column;
|
|
968
|
-
gap: 4px;
|
|
969
|
-
min-width: 0;
|
|
970
|
-
`,Ip=({item:n,cellsPerRow:o})=>{const{CopyButton:r}=Pc(),{spacer:i,title:a,titleTooltip:s,label:l,labelTooltip:c,withCopy:d,badge:u}=n;return i?e("div",{style:{flex:1}}):t(kp,{$cellsPerRow:o,children:[!!a&&e(hd,{text:s,children:e(Sp,{size:rn.XXXS,color:an.Secondary,nowrap:!0,children:a})}),t(Ar,{$gap:4,children:[u&&e(Nu,{...u}),l&&e(hd,{text:c,children:e(Sp,{size:rn.XS,nowrap:!0,children:l})}),d&&e(r,{value:l||u?.label?.toString()||"",size:Dc.XS})]})]})},Np=({bgTint:n="900",width:o,fullHeight:r=!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]=Mt(l||!1),b=()=>y(e=>!e),$=!s||s&&f,v=!!d.length,x=!!u.length,S=!!c.length;return t(Cp,{$width:o,$bgTint:n,$fullHeight:r,$moreSpacing:i,children:[(a||s)&&t(Tp,{$gap:16,$justifyContent:"space-between",$clickable:!!s,onClick:e=>{s&&e.target.closest("section")&&b()},children:[a?e(Ep,{...a}):e("div",{}),t(Ar,{$gap:12,children:[p,v&&$&&e(xp,{actions:d}),S&&e(Ar,{$gap:8,children:c.map((e,t)=>Ht(Nu,{...e,key:e.key||`${e.label}-${t}`}))}),(x||s)&&t(Ar,{$gap:2,children:[x&&e(hp,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:It},items:u,selectedIds:[],setSelectedIds:e=>u?.find(t=>t?.id===e[0])?.onClick?.()}),s&&e(Qd,{variant:Jd.Text,size:Yd.S,leftIcon:f?Tt:At,onClick:b})]})]})]}),$&&g?e(Ap,{children:g.map(t=>e(Ip,{item:t,cellsPerRow:h&&h<=g.length?h:void 0},t.id))}):null,$&&m]})};var Rp;!function(e){e.S="small",e.M="medium"}(Rp||(Rp={}));const Op=o.div`
|
|
971
|
-
display: flex;
|
|
972
|
-
flex-direction: column;
|
|
973
|
-
gap: ${({$gap:e})=>e}px;
|
|
974
|
-
width: 100%;
|
|
975
|
-
align-self: ${({$fullHeight:e})=>e?"stretch":"auto"};
|
|
976
|
-
${({$fullHeight:e})=>e?"\n flex: 1;\n min-height: 0;\n ":""}
|
|
977
|
-
padding: ${({$padding:e})=>e}px;
|
|
978
|
-
border-radius: 16px;
|
|
979
|
-
background-color: ${({theme:e,$backgroundColor:t,$bordered:n})=>t??(n?"transparent":e.v2.colors.silver[1e3])};
|
|
980
|
-
${({theme:e,$bordered:t})=>t?`border: 1px solid ${e.v2.colors.silver[500]};`:""}
|
|
981
|
-
`,Dp=Pt(({id:n,size:o=Rp.M,fullHeight:r=!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=o===Rp.S?4:16,y="number"==typeof h?h:o===Rp.S?12:16,b=a??(i?e(Ep,{...i}):null),$=l??(s?e(Vu,{...s}):null),v=!!b||!!$,x=!!d&&d.length>0;return t(Op,{ref:m,id:n,"data-section-name":n,$padding:y,$gap:f,$fullHeight:r,$backgroundColor:p,$bordered:g,children:[v||x?t(Ar,{$gap:f,$justifyContent:"space-between",children:[v?t(Ar,{$gap:f,$alignItems:"center",children:[b,$,c]}):null,x&&e(xp,{actions:d??[]})]}):null,u]})});Dp.displayName="SectionCard";const _p=o.div`
|
|
982
|
-
flex: 1;
|
|
983
|
-
align-self: stretch;
|
|
984
|
-
display: flex;
|
|
985
|
-
align-items: center;
|
|
986
|
-
gap: 8px;
|
|
987
|
-
padding: 16px;
|
|
988
|
-
border-radius: 12px;
|
|
989
|
-
background-color: ${({theme:e,$status:t})=>rr(e,t,t===Rn.Unknown?"750":"500")};
|
|
990
|
-
`,Lp=o.div`
|
|
991
|
-
display: flex;
|
|
992
|
-
align-items: center;
|
|
993
|
-
justify-content: center;
|
|
994
|
-
width: fit-content;
|
|
995
|
-
height: fit-content;
|
|
996
|
-
padding: 8px;
|
|
997
|
-
border-radius: 12px;
|
|
998
|
-
background-color: ${({theme:e,$status:t})=>t===Rn.Unknown?rr(e,t,"800"):rr(e,t,"900")+Rd["015"]};
|
|
999
|
-
`,Pp=({status:n,icon:o,title:r,description:a})=>{const s=i(),l=o??Ur(n,s),c=[Rn.Default,Rn.Info,Rn.Disabled,Rn.Unknown].includes(n)?s.v2.colors.white[500]:s.v2.colors.black[500];return t(_p,{$status:n,children:[e(Lp,{$status:n,children:e(l,{size:32,fill:c})}),t(kr,{$gap:2,$justifyContent:"center",children:[e(dn,{size:rn.M,weight:500,color:c,nowrap:!0,children:r}),e(dn,{size:rn.XXS,weight:300,color:c,nowrap:!0,children:a})]})]})},Fp=o.div`
|
|
1000
|
-
flex: 0.5;
|
|
1001
|
-
display: flex;
|
|
1002
|
-
flex-direction: column;
|
|
1003
|
-
gap: 12px;
|
|
1004
|
-
padding: 12px;
|
|
1005
|
-
border-radius: 12px;
|
|
1006
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1007
|
-
`,Mp=["-","N/A","undefined","null","undefined/undefined","null/null"],zp=({title:n,cells:o})=>{const r=i();return t(Fp,{children:[e(dn,{size:rn.XXS,color:r.v2.colors.grey[150],children:n}),e(Ar,{$gap:32,children:o.map((o,r)=>t(kr,{$gap:2,children:[!o.isLoading||o.value&&!Mp.includes(o.value)?e(dn,{size:o.label?rn.M:rn.L,children:o.value}):e(Gd,{scale:.9}),o.label&&e(dn,{size:rn.XXS,children:o.label})]},`${n}-${r}-${o.label}-${o.value}`))})]})};var Up;!function(e){e.CurrentOfMax="currentOfMax",e.GoodAgainstBad="goodAgainstBad"}(Up||(Up={}));const Bp=o.div`
|
|
1008
|
-
display: flex;
|
|
1009
|
-
align-items: flex-end;
|
|
1010
|
-
justify-content: space-between;
|
|
1011
|
-
gap: 24px;
|
|
1012
|
-
width: fit-content;
|
|
1013
|
-
`,jp=o.div`
|
|
1014
|
-
position: relative;
|
|
1015
|
-
display: flex;
|
|
1016
|
-
flex-direction: column;
|
|
1017
|
-
align-items: center;
|
|
1018
|
-
width: ${({$width:e})=>e??150}px;
|
|
1019
|
-
flex-shrink: 0;
|
|
1020
|
-
`,Wp=o.svg`
|
|
1021
|
-
display: block;
|
|
1022
|
-
width: 100%;
|
|
1023
|
-
height: auto;
|
|
1024
|
-
overflow: visible;
|
|
1025
|
-
`,Hp=o(kr)`
|
|
1026
|
-
position: absolute;
|
|
1027
|
-
left: 0;
|
|
1028
|
-
right: 0;
|
|
1029
|
-
bottom: 4px;
|
|
1030
|
-
align-items: center;
|
|
1031
|
-
gap: 2px;
|
|
1032
|
-
pointer-events: none;
|
|
1033
|
-
`,Gp=o.span`
|
|
1034
|
-
display: inline-block;
|
|
1035
|
-
flex-shrink: 0;
|
|
1036
|
-
width: 9px;
|
|
1037
|
-
height: 9px;
|
|
1038
|
-
border-radius: 50%;
|
|
1039
|
-
background-color: ${({$color:e})=>e};
|
|
1040
|
-
`,Xp=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:""}},Kp=10,Vp=(e,t,n,o)=>{const r=o*Math.PI/180;return{x:e+n*Math.cos(r),y:t-n*Math.sin(r)}},Jp=(e,t,n,o,r)=>{const i=Vp(e,t,n,o),a=Vp(e,t,n,r),s=o>r?1:0,l=Math.abs(o-r)>180?1:0;return`M ${i.x} ${i.y} A ${n} ${n} 0 ${l} ${s} ${a.x} ${a.y}`},Yp=({variant:n=Up.CurrentOfMax,gaugeWidth:o,title:r,min:a=0,max:s,current:l,primaryLabel:c,primaryColor:d,secondaryLabel:u,secondaryColor:p})=>{const{number:h}=Xp(a),{number:g}=Xp(s),{number:m,prefix:f,suffix:y}=Xp(l),b=i(),$=((e,t,n)=>Math.min(Math.max(e,t),n))((m-h)/Math.max(g-h,1),0,1),v=180-180*$,x=$>0?Jp(60,60,55,180,v):null,S=$<1?Jp(60,60,55,v,0):null,w=Vp(60,60,55,180),E=Vp(60,60,55,0),C=d??(n===Up.GoodAgainstBad?b.v2.colors.green[500]:b.v2.colors.purple[400]),T=p??(n===Up.GoodAgainstBad?b.v2.colors.red[500]:b.v2.colors.silver[500]),[A,k]=Mt(null),I=e=>`${f}${e}${y}`,N=n===Up.GoodAgainstBad?Math.max(g-m,0):g,R="primary"===A?c:"secondary"===A?u:"",O="primary"===A?I(m):"secondary"===A?I(N):"",D=()=>k("primary"),_=()=>k("secondary"),L=()=>k(null);return t(Bp,{children:[t(jp,{$width:o,children:[e(hd,{keepAlive:!0,fullWidth:!0,title:R,text:O,children:t(Wp,{viewBox:"0 0 120 65",role:"img","aria-label":`${r}: ${m} of ${g}`,children:[x&&e("path",{d:x,fill:"none",stroke:C,strokeWidth:Kp,strokeLinecap:1===$?"round":"butt",onMouseEnter:D,onMouseLeave:L}),S&&e("path",{d:S,fill:"none",stroke:T,strokeWidth:Kp,strokeLinecap:0===$?"round":"butt",onMouseEnter:_,onMouseLeave:L}),$>0&&e("circle",{cx:w.x,cy:w.y,r:5,fill:C,onMouseEnter:D,onMouseLeave:L}),$<1&&e("circle",{cx:E.x,cy:E.y,r:5,fill:T,onMouseEnter:_,onMouseLeave:L})]})}),r&&t(Hp,{children:[e(dn,{size:rn.XXXS,color:b.v2.colors.grey[150],align:"center",children:r}),e(dn,{size:rn.L,weight:500,align:"center",children:`${f}${m}${y}`})]})]}),t(kr,{$gap:7,children:[t(Ar,{$gap:8,$alignItems:"center",children:[e(Gp,{$color:C}),e(dn,{size:rn.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:c})]}),t(Ar,{$gap:8,$alignItems:"center",children:[e(Gp,{$color:T}),e(dn,{size:rn.XXXS,color:b.v2.colors.grey[150],nowrap:!0,children:u})]})]})]})},qp=o(Ar)`
|
|
1041
|
-
width: 100%;
|
|
1042
|
-
padding: 8px 12px;
|
|
1043
|
-
border-radius: 6px;
|
|
1044
|
-
background-color: ${({theme:e,$bgTint:t})=>e.v2.colors.silver[t||"800"]};
|
|
1045
|
-
display: flex;
|
|
1046
|
-
align-items: center;
|
|
1047
|
-
justify-content: space-between;
|
|
1048
|
-
gap: 12px;
|
|
1049
|
-
`,Qp=o.div`
|
|
1050
|
-
position: relative;
|
|
1051
|
-
width: ${({$hideCopy:e})=>e?"100%":"calc(100% - 24px - 12px)"};
|
|
1052
|
-
display: flex;
|
|
1053
|
-
align-items: center;
|
|
1054
|
-
gap: 4px;
|
|
1055
|
-
`,Zp=o.pre`
|
|
1056
|
-
flex: 1;
|
|
1057
|
-
margin: 0;
|
|
1058
|
-
padding: 0;
|
|
1059
|
-
font-size: 12px;
|
|
1060
|
-
color: #5ffb98; // TODO: add to theme
|
|
1061
|
-
overflow-x: auto;
|
|
1062
|
-
`,eh=o.span`
|
|
1063
|
-
flex-shrink: 0;
|
|
1064
|
-
font-size: 14px;
|
|
1065
|
-
color: #5ffb98; // TODO: add to theme
|
|
1066
|
-
`,th=({bgTint:n,label:o,value:r,hideCopy:i=!1,onDone:a})=>{const{CopyButton:s}=Pc({onDone:a}),l=jt(null),[c,d]=Mt(!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()}},[r]),t(kr,{$gap:4,children:[o&&e(dn,{size:rn.XXXS,color:an.Secondary,children:o}),t(qp,{$bgTint:n,children:[t(Qp,{$hideCopy:i,children:[e(Zp,{ref:l,children:r.toLowerCase()}),c&&e(eh,{children:"..."})]}),!i&&e(s,{value:r.toLowerCase(),size:Dc.XS})]})]})},nh=o.div`
|
|
1067
|
-
display: flex;
|
|
1068
|
-
align-items: center;
|
|
1069
|
-
gap: 8px;
|
|
1070
|
-
padding: ${({$hideBackground:e,$slim:t})=>e?"0":t?"8px":"16px"};
|
|
1071
|
-
width: ${({$width:e})=>e||"auto"};
|
|
1072
|
-
border-radius: ${({$isExtended:e})=>e?"12px 12px 0 0":"12px"};
|
|
1073
|
-
background-color: ${({$hideBackground:e,$backgroundColor:t})=>e?"transparent":t};
|
|
1074
|
-
|
|
1075
|
-
${({$withHover:e,$hideBackground:t,$hoverBackgroundColor:n})=>e&&r`
|
|
1076
|
-
cursor: pointer;
|
|
1077
|
-
transition: background 0.2s;
|
|
1078
|
-
&:hover {
|
|
1079
|
-
background-color: ${t?"transparent":n};
|
|
1080
|
-
}
|
|
1081
|
-
`}
|
|
1082
|
-
`,oh=o.div`
|
|
1083
|
-
display: flex;
|
|
1084
|
-
align-items: center;
|
|
1085
|
-
justify-content: center;
|
|
1086
|
-
flex-shrink: 0;
|
|
1087
|
-
width: ${({$slim:e})=>e?"32px":"42px"};
|
|
1088
|
-
height: ${({$slim:e})=>e?"32px":"42px"};
|
|
1089
|
-
border-radius: 11px;
|
|
1090
|
-
background-color: ${({$backgroundColor:e,$slim:t})=>t?"transparent":e};
|
|
1091
|
-
${({$withClick:e})=>e&&r`
|
|
1092
|
-
cursor: pointer;
|
|
1093
|
-
& * {
|
|
1094
|
-
cursor: pointer;
|
|
1095
|
-
}
|
|
1096
|
-
&:hover {
|
|
1097
|
-
transform: scale(1.2);
|
|
1098
|
-
}
|
|
1099
|
-
`}
|
|
1100
|
-
`,rh=o(kr)`
|
|
1101
|
-
flex: 1;
|
|
1102
|
-
min-width: 0;
|
|
1103
|
-
`,ih=o.div`
|
|
1104
|
-
display: flex;
|
|
1105
|
-
align-items: center;
|
|
1106
|
-
justify-content: center;
|
|
1107
|
-
flex-shrink: 0;
|
|
1108
|
-
width: 24px;
|
|
1109
|
-
height: 24px;
|
|
1110
|
-
`,ah=({status:n,title:o,subTitle:r,badgeLabel:a,loading:s,action:l,isExtended:c=!1,toggleExtended:d,invertColors:u=!1,hideIcon:p=!1,hideBackground:h=!1,width:g,slim:m=!1})=>{const f=i(),y=Ur(n,f),b=d?c?Tt:At:void 0,$=n===Rn.Unknown,v=n===Rn.Disabled,x=n===Rn.Loading||s,S=[Rn.Error,Rn.Warning,Rn.Success].includes(n),w=rr(f,n,v?u?"400":"700":$?"600":u?"300":"500"),E=v?f.v2.colors.grey[400]:u?f.v2.colors.white[500]:S?f.v2.colors.black[500]:f.v2.colors.white[500],C=u&&!$?w:E,T=!u||$||v?"rgba(0, 0, 0, 0.13)":rr(f,n,"800"),A=v?f.v2.colors.grey[900]:u||$?f.v2.colors.silver[800]:w,k=v?f.v2.colors.grey[800]:u||$?f.v2.colors.silver[700]:rr(f,n,"600");return t(nh,{$width:g,$withHover:!!d,$isExtended:c,$hideBackground:h,$backgroundColor:A,$hoverBackgroundColor:k,$slim:m,onClick:d,children:[!p&&e(oh,{$backgroundColor:T,$slim:m,children:x?e(zr,{withSpinnerOld:!0,scaleSpinnerOld:1.2}):e(y,{size:32,fill:C})}),t(rh,{$gap:4,$justifyContent:"center",children:[t(Ar,{$gap:10,$alignItems:"center",children:[e(dn,{size:m?rn.XS:rn.S,weight:500,color:C,children:o}),a&&e(Nu,{label:a,backgroundColor:f.v2.colors.silver[600],textColor:f.v2.colors.white[500],textSize:rn.XXXS})]}),r&&e(dn,{size:rn.XXXS,color:E,children:r})]}),l&&e(oh,{"data-id":l["data-id"],$backgroundColor:f.v2.colors.silver[750],$slim:m,$withClick:!!l.onClick,onClick:l.onClick,children:e(hd,{text:l.tooltip,children:e(l.icon,{size:32,fill:E})})}),b&&e(ih,{children:e(b,{size:24,fill:E})})]})},sh=o.div`
|
|
1111
|
-
display: flex;
|
|
1112
|
-
flex-direction: column;
|
|
1113
|
-
width: 100%;
|
|
1114
|
-
border-radius: 12px;
|
|
1115
|
-
overflow: hidden;
|
|
1116
|
-
`,lh=o.div`
|
|
1117
|
-
display: flex;
|
|
1118
|
-
flex-direction: column;
|
|
1119
|
-
gap: 8px;
|
|
1120
|
-
padding: 8px 12px 16px 12px;
|
|
1121
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
1122
|
-
`,ch=o.div`
|
|
1123
|
-
display: flex;
|
|
1124
|
-
align-items: center;
|
|
1125
|
-
gap: 8px;
|
|
1126
|
-
`,dh=o.div`
|
|
1127
|
-
display: flex;
|
|
1128
|
-
align-items: center;
|
|
1129
|
-
justify-content: center;
|
|
1130
|
-
flex-shrink: 0;
|
|
1131
|
-
width: 18px;
|
|
1132
|
-
height: 18px;
|
|
1133
|
-
`,uh=({conditions:n,title:o,subTitle:r})=>{const a=i(),[s,l]=Mt(!1),c=Bt(()=>l(e=>!e),[]),d=Ut(()=>si(n),[n]),{errors:u,hasErrors:p,warnings:h,hasWarnings:g,hasDisableds:m,hasLoadings:f}=Ut(()=>Oo(d),[d]);zt(()=>{l(p||g||m)},[p,g,m]);const y=Ut(()=>(!d.length||f)&&!p&&!g&&!m,[d.length,f,p,g,m]),b=Ut(()=>p?Rn.Error:g?Rn.Warning:m?Rn.Info:Rn.Success,[p,g,m]),$=Ut(()=>o||(1===d.length?nn(d[0].reason||d[0].type):void 0)||(({hasErrors:e,hasWarnings:t,hasDisableds:n,loading:o})=>{const r="Something isn't right";return e?"Something Failed":t||n?r:o?"Loading...":"Everything Successful"})({hasErrors:p,hasWarnings:g,hasDisableds:m,loading:y}),[o,d,p,g,m,y]),v=Ut(()=>r||1===d.length&&d[0].message||void 0,[r,d]),x=Ut(()=>`${p?u.length:g?h.length:d.length}/${d.length}`,[p,u.length,g,h.length,d.length]);return t(sh,{children:[e(ah,{status:b,invertColors:!0,title:$,subTitle:v,badgeLabel:x,loading:y,isExtended:s,toggleExtended:c}),s&&e(lh,{children:d.map(({status:n,type:o,reason:r,message:i},s)=>{const l=n===Rn.Loading,c=n===Rn.Disabled?Rn.Info:n,d=l?null:Ur(c,a),u=n===Rn.Error?rr(a,Rn.Error,"500"):n===Rn.Warning?rr(a,Rn.Warning,"500"):a.v2.colors.white[500],p=[o,i||r].filter(Boolean).join(" - ");return t(ch,{children:[e(dh,{children:l||!d?e(zr,{withSpinnerOld:!0,scaleSpinnerOld:.8}):e(d,{size:18})}),e(dn,{size:rn.XXXS,color:u,lineHeight:"16px",children:p})]},`condition-${s}`)})})]})};var ph,hh,gh;!function(e){e.Default="default",e.SuccessError="successError"}(ph||(ph={})),function(e){e.S="small",e.L="large"}(hh||(hh={})),function(e){e.Left="left",e.Right="right"}(gh||(gh={}));const mh=o.div`
|
|
1134
|
-
display: flex;
|
|
1135
|
-
align-items: center;
|
|
1136
|
-
gap: ${({$gap:e})=>e}px;
|
|
1137
|
-
`,fh=o.div`
|
|
1138
|
-
position: relative;
|
|
1139
|
-
display: flex;
|
|
1140
|
-
align-items: center;
|
|
1141
|
-
justify-content: space-between;
|
|
1142
|
-
box-sizing: content-box;
|
|
1143
|
-
|
|
1144
|
-
width: ${({$size:e})=>2*e+2}px;
|
|
1145
|
-
height: ${({$size:e})=>e}px;
|
|
1146
|
-
padding: ${4}px;
|
|
1147
|
-
border-radius: ${({$size:e})=>2*e}px;
|
|
1148
|
-
background-color: ${({$disabled:e,$onBgColor:t,$offBgColor:n,$variant:o,$value:r,theme:i})=>{if(e)return i.v2.colors.grey[800];if(t&&r)return t;if(n&&!r)return n;switch(o){case ph.SuccessError:return r?i.v2.colors.green[500]:i.v2.colors.red[500];case ph.Default:default:return r?i.v2.colors.purple[500]:i.v2.colors.grey[400]}}};
|
|
1149
|
-
|
|
1150
|
-
border: 1px solid ${({$disabled:e,theme:t})=>e?t.v2.colors.grey[600]:"transparent"};
|
|
1151
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1152
|
-
`,yh=o.div`
|
|
1153
|
-
position: absolute;
|
|
1154
|
-
top: 50%;
|
|
1155
|
-
left: ${({$value:e,$size:t})=>e?`calc(100% - ${t}px - 4px)`:"4px"};
|
|
1156
|
-
transform: translateY(-50%);
|
|
1157
|
-
width: ${({$size:e})=>e}px;
|
|
1158
|
-
height: ${({$size:e})=>e}px;
|
|
1159
|
-
border-radius: 100%;
|
|
1160
|
-
background-color: ${({$color:e})=>e};
|
|
1161
|
-
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)"};
|
|
1162
|
-
`,bh=({variant:o=ph.Default,size:r=hh.L,name:a,label:s,labelAlign:l=gh.Right,labelColor:c,tooltip:d,badge:u,value:p,onChange:h,disabled:g,withIcon:m,onIcon:f=yt,offIcon:y=xt,onBgColor:b,offBgColor:$,errorMessage:v,warnMessage:x,helpMessage:S})=>{const w=i(),E=g?w.v2.colors.grey[400]:w.v2.colors.white[500],C=r===hh.S?10:16,T=c||w.v2.colors.silver[200],A=r===hh.S?rn.XXXS:rn.XS,k=r===hh.S?8:12;return t(kr,{$gap:4,children:[t(Ar,{$justifyContent:"space-between",children:[t(mh,{"data-id":a||"toggle"+(s?`-${s}`:""),"data-toggle-value":p?"true":"false",$gap:k,children:[s&&l===gh.Left&&e(dn,{color:T,size:A,nowrap:!0,children:s}),t(fh,{$onBgColor:b,$offBgColor:$,$variant:o,$size:C,$value:p,$disabled:g,onClick:e=>{e.stopPropagation(),g||h(!p)},children:[e(yh,{$color:E,$size:C,$value:p,$disabled:g}),m&&t(n,{children:[e(f,{size:C,fill:E}),e(y,{size:C,fill:E})]})]}),s&&l===gh.Right&&e(dn,{color:T,size:A,nowrap:!0,children:s})]}),e(Du,{tooltip:d,badge:u})]}),e(_u,{errorMessage:v,warnMessage:x,helpMessage:S})]})},$h=o.div`
|
|
1163
|
-
display: flex;
|
|
1164
|
-
flex-direction: ${({$direction:e})=>e===$n.Horizontal?"row":"column"};
|
|
1165
|
-
gap: ${({$direction:e})=>e===$n.Horizontal?16:8}px;
|
|
1166
|
-
`,vh=({direction:n=$n.Vertical,title:o,size:r,disabled:i,options:a,values:s,setValues:l})=>{const c=r===hh.S?rn.XS:rn.S;return t($h,{$direction:n,children:[o&&e(dn,{size:c,children:o}),a.map(t=>e(bh,{...t,labelAlign:gh.Right,value:s[t.id],onChange:e=>{return n=t.id,o=e,void l(e=>{const t={...e};return n?t[n]=o:a.forEach(e=>t[e.id]=o),t});var n,o},disabled:i,size:r},`${o}-toggle-${t.id}`))]})},xh=o.div`
|
|
1167
|
-
display: flex;
|
|
1168
|
-
align-items: center;
|
|
1169
|
-
justify-content: space-between;
|
|
1170
|
-
width: 100%;
|
|
1171
|
-
overflow: hidden;
|
|
1172
|
-
`,Sh=o.div`
|
|
1173
|
-
display: flex;
|
|
1174
|
-
align-items: center;
|
|
1175
|
-
gap: 16px;
|
|
1176
|
-
padding: 6px 0;
|
|
1177
|
-
min-width: 0;
|
|
1178
|
-
flex: 1;
|
|
1179
|
-
overflow: hidden;
|
|
1180
|
-
`,wh=o.div`
|
|
1181
|
-
display: flex;
|
|
1182
|
-
align-items: center;
|
|
1183
|
-
justify-content: center;
|
|
1184
|
-
flex: 0 0 36px;
|
|
1185
|
-
width: 36px;
|
|
1186
|
-
height: 36px;
|
|
1187
|
-
border-radius: 8px;
|
|
1188
|
-
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1189
|
-
`,Eh=o.img`
|
|
1190
|
-
width: 24px;
|
|
1191
|
-
height: 24px;
|
|
1192
|
-
`,Ch=o.div`
|
|
1193
|
-
display: flex;
|
|
1194
|
-
align-items: center;
|
|
1195
|
-
gap: 16px;
|
|
1196
|
-
flex-shrink: 0;
|
|
1197
|
-
`,Th=({icon:n,iconSrc:o,title:r,titleBadges:i,subTitle:a,toggleProps:s,actions:l,onClose:c,onCloseDisabled:d})=>t(xh,{children:[t(Sh,{children:[n?e(wh,{children:e(n,{size:24})}):o?e(wh,{children:e(Eh,{src:o,alt:r||"icon"})}):null,(r||i?.length||a)&&t(kr,{$gap:6,children:[(r||i?.length)&&t(Ar,{$gap:16,children:[r&&e(dn,{size:rn.S,weight:500,children:r}),i?.length&&e(Ar,{$gap:4,children:i?.map((t,n)=>e(Nu,{...t},`${t.label}-${n}`))})]}),a&&e(dn,{size:rn.XXS,children:a})]})]}),t(Ch,{children:[s&&e(bh,{...s}),l?.length?e(hp,{iconButtonProps:{"data-id":"drawer-actions",leftIcon:It},items:l,selectedIds:l?.filter(e=>e?.active)?.map(e=>e?.id)??[],setSelectedIds:e=>l?.find(t=>t?.id===e[0])?.onClick?.()}):null,c&&e(Lc,{"data-id":"drawer-close",icon:xt,size:Dc.M,onClick:c,disabled:d})]})]}),Ah=o.div`
|
|
1198
|
-
position: relative;
|
|
1199
|
-
&.animated {
|
|
1200
|
-
overflow: hidden;
|
|
1201
|
-
padding-bottom: 1px;
|
|
1202
|
-
border-radius: 8px;
|
|
1203
|
-
animation: ${({$isLeaving:e})=>e?Dd.out.bottom:Dd.in.bottom} ${({$duration:e})=>e/10}ms forwards;
|
|
1204
|
-
}
|
|
1205
|
-
`,kh=o.div`
|
|
1206
|
-
position: absolute;
|
|
1207
|
-
bottom: -1px;
|
|
1208
|
-
left: 0;
|
|
1209
|
-
z-index: -1;
|
|
1210
|
-
width: 100%;
|
|
1211
|
-
height: 100%;
|
|
1212
|
-
border-radius: 8px;
|
|
1213
|
-
background-color: ${({theme:e,$status:t})=>rr(e,t,t===Rn.Default?"300":t===Rn.Info?"400":"500")};
|
|
1214
|
-
animation: ${_d.out} ${({$duration:e})=>""+(e-e/10)}ms forwards;
|
|
1215
|
-
`,Ih=o.div`
|
|
1216
|
-
display: flex;
|
|
1217
|
-
align-items: center;
|
|
1218
|
-
gap: 10px;
|
|
1219
|
-
${({$fullWidth:e})=>e&&r`
|
|
1220
|
-
width: 100%;
|
|
1221
|
-
`}
|
|
1222
|
-
padding: 4px 12px 4px 4px;
|
|
1223
|
-
border-radius: 8px;
|
|
1224
|
-
background-color: ${({theme:e,$status:t})=>rr(e,t,[Rn.Info,Rn.Warning].includes(t)?"1000":"900")};
|
|
1225
|
-
`,Nh=o.div`
|
|
1226
|
-
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1227
|
-
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
1228
|
-
display: flex;
|
|
1229
|
-
align-items: center;
|
|
1230
|
-
justify-content: center;
|
|
1231
|
-
border-radius: 6px;
|
|
1232
|
-
background-color: ${({theme:e,$status:t})=>rr(e,t,[Rn.Info].includes(t)?"900":"800")};
|
|
1233
|
-
`,Rh=o.div`
|
|
1234
|
-
margin-left: auto;
|
|
1235
|
-
display: flex;
|
|
1236
|
-
align-items: center;
|
|
1237
|
-
gap: 4px;
|
|
1238
|
-
`,Oh=o.div`
|
|
1239
|
-
margin-right: 8px;
|
|
1240
|
-
cursor: pointer;
|
|
1241
|
-
&:hover {
|
|
1242
|
-
transform: scale(1.2);
|
|
1243
|
-
}
|
|
1244
|
-
`,Dh=({status:n,message:o,action:r,fullWidth:a,smallIcon:s,onClose:l,duration:c=5e3,zIndex:d})=>{const u=i(),p=Ur(n,u),h=rr(u,n,n===Rn.Default?"300":n===Rn.Info?"400":"500"),[g,m]=Mt(!1),f=jt(null),y=jt(null),b=c/10,$=c-b,v=e=>{l&&(f.current&&clearTimeout(f.current),m(!0),setTimeout(()=>l({asSeen:e?.asSeen}),b))};zt(()=>{if(l)return f.current=setTimeout(()=>v({asSeen:!1}),$),()=>{f.current&&clearTimeout(f.current)}},[c]);return t(Ah,{className:l?"animated":"",$duration:c,$isLeaving:g,onMouseEnter:()=>{l&&(f.current&&clearTimeout(f.current),y.current&&(y.current.style.animationPlayState="paused"))},onMouseLeave:()=>{if(l&&y.current){const e=y.current.offsetWidth/y.current.parentElement.offsetWidth*$;f.current=setTimeout(()=>v({asSeen:!1}),e),y.current.style.animationPlayState="running"}},style:{zIndex:d},children:[t(Ih,{$status:n,$fullWidth:a,children:[e("div",{children:e(Nh,{$status:n,$smallIcon:s,children:e(p,{size:s?18:24})})}),e(dn,{color:h,size:rn.XXXS,weight:400,children:o}),(r||l)&&t(Rh,{children:[r&&e(Oh,{"data-id":r["data-id"],onClick:r.onClick,children:e(dn,{color:h,size:rn.XXS,weight:500,underline:!0,nowrap:!0,children:r.label})}),l&&e(Lc,{"data-id":"note-close",icon:xt,size:Dc.XS,onClick:()=>v({asSeen:!0})})]})]}),l&&e(kh,{ref:y,$status:n,$duration:c})]})},_h=o.div`
|
|
1245
|
-
display: flex;
|
|
1246
|
-
align-items: center;
|
|
1247
|
-
gap: 8px;
|
|
1248
|
-
padding: 4px 12px;
|
|
1249
|
-
`,Lh=o.div`
|
|
1250
|
-
flex: 1;
|
|
1251
|
-
`,Ph=o.div`
|
|
1252
|
-
width: 150px;
|
|
1253
|
-
`,Fh=({note:n,actions:o,children:r})=>r?e(_h,{children:r}):t(_h,{children:[n&&e(Dh,{...n}),e(Lh,{}),o?.map((t,n)=>e(Ph,{children:e(Qd,{fullWidth:!0,...t})},t["data-id"]||`drawer-footer-button-${n}`))]}),Mh=o.div`
|
|
1254
|
-
position: fixed;
|
|
1255
|
-
top: 0;
|
|
1256
|
-
bottom: 0;
|
|
1257
|
-
${({$position:e})=>e}: 0;
|
|
1258
|
-
z-index: ${({theme:e})=>e.v2.zIndex.drawer};
|
|
1259
|
-
|
|
1260
|
-
display: flex;
|
|
1261
|
-
flex-direction: column;
|
|
1262
|
-
gap: 12px;
|
|
1263
|
-
|
|
1264
|
-
width: ${({$width:e})=>e};
|
|
1265
|
-
min-width: ${({$minWidth:e})=>e||"unset"};
|
|
1266
|
-
padding: 12px;
|
|
1267
|
-
border-radius: ${({$position:e})=>"left"===e?"0 20px 20px 0":"20px 0 0 20px"};
|
|
1268
|
-
background: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1269
|
-
box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
|
|
1270
|
-
overflow: hidden;
|
|
1271
|
-
|
|
1272
|
-
${({$disableAnimation:e,$position:t})=>!e&&r`
|
|
1273
|
-
animation-name: ${Dd.in[t]};
|
|
1274
|
-
`}
|
|
1275
|
-
`,zh=o.div`
|
|
1276
|
-
display: flex;
|
|
1277
|
-
flex-direction: column;
|
|
1278
|
-
gap: 12px;
|
|
1279
|
-
|
|
1280
|
-
height: calc(100% - ${56}px);
|
|
1281
|
-
overflow-y: auto;
|
|
1282
|
-
`,Uh=({isOpen:o,hideOverlay:r=!1,disableAnimation:i=!1,position:a="right",width:s="600px",minWidth:l,header:c,footer:d,children:u})=>(Ic(o),o?en(t(n,{children:[!r&&e(Rr,{onClick:c?.onCloseDisabled?void 0:c?.onClose}),t(Mh,{"data-id":"drawer",$position:a,$width:s,$minWidth:l,$disableAnimation:i,children:[c&&e(Th,{...c}),e(zh,{children:u}),d&&e(Fh,{...d})]})]}),document.body):null),Bh=({options:t,values:n,setValues:o,withMultiSelect:r,withSearch:i,...a})=>{const s=Ut(()=>t.filter(e=>n.includes(e.id)),[t,n]),l=Ut(()=>s.map(e=>e.label).join(", "),[s]);return e(hp,{withMultiSelect:r,withSearch:i,fullWidth:!0,alignX:op.Left,items:t,selectedIds:n,setSelectedIds:o,children:({ChevronIcon:t,handleClick:n})=>e(Mu,{placeholder:"Select options...",width:"100%",...a,rightIcon:t,leftIcon:1===s.length?s[0].icon:void 0,value:l,onChange:()=>{},onClick:n,readOnly:!0,tabIndex:-1})})},jh=o.header`
|
|
1283
|
-
position: relative;
|
|
1284
|
-
width: 100%;
|
|
1285
|
-
padding: 12px 18px;
|
|
1286
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1287
|
-
display: flex;
|
|
1288
|
-
align-items: center;
|
|
1289
|
-
justify-content: space-between;
|
|
1290
|
-
`,Wh=o(Ar)`
|
|
1291
|
-
position: absolute;
|
|
1292
|
-
left: 50%;
|
|
1293
|
-
transform: translateX(-50%);
|
|
1294
|
-
gap: 16px;
|
|
1295
|
-
`,Hh=({left:n=[],center:o=[],right:r=[]})=>t(jh,{children:[e(Ar,{$gap:16,children:n}),e(Wh,{children:o}),e(Ar,{$gap:16,children:r})]}),Gh=o.div`
|
|
1296
|
-
display: flex;
|
|
1297
|
-
align-items: center;
|
|
1298
|
-
gap: 2px;
|
|
1299
|
-
width: fit-content;
|
|
1300
|
-
padding: 4px;
|
|
1301
|
-
border-radius: 8px;
|
|
1302
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
1303
|
-
box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
|
|
1304
|
-
|
|
1305
|
-
position: absolute;
|
|
1306
|
-
right: ${({$right:e,$left:t})=>e||(t?"unset":"12px")};
|
|
1307
|
-
left: ${({$left:e})=>e||"unset"};
|
|
1308
|
-
top: 50%;
|
|
1309
|
-
transform: translateY(-50%);
|
|
1310
|
-
`,Xh=({isOpen:t,actions:n,positionRight:o,positionLeft:r})=>t?e(Gh,{$right:o,$left:r,children:n.map(t=>{if(!t)return null;const{tooltip:n,...o}=t;return e(hd,{text:n||"",children:e(Qd,{...o,variant:Jd.Secondary,size:Yd.S})},o.id)})}):null,Kh=o.div`
|
|
1311
|
-
display: flex;
|
|
1312
|
-
align-items: center;
|
|
1313
|
-
justify-content: center;
|
|
1314
|
-
width: ${({$size:e,$padding:t})=>e+t}px;
|
|
1315
|
-
height: ${({$size:e,$padding:t})=>e+t}px;
|
|
1316
|
-
aspect-ratio: 1 / 1;
|
|
1317
|
-
border-radius: 8px;
|
|
1318
|
-
background-color: ${({theme:e,$noBackground:t,$status:n})=>t?"transparent":n?rr(e,n,n===Rn.Warning?"1000":"900"):e.v2.colors.silver[800]};
|
|
1319
|
-
`,Vh=({icons:n,icon:o,iconSrc:r,status:a,size:s=28,padding:l=4})=>{const c=i(),d=s/2.7,u=s/1.3,p=Zo(d,c.v2.text.size);if(n&&n.length>1){const o=n.slice(0,3),r=n.length-o.length,i=o.slice(0,2),c=o.slice(2),u=c.length>0,h=Math.round(s/16);return e("div",{style:{width:"fit-content"},children:e(Kh,{$size:s,$padding:l,$status:a,children:t(kr,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[e(Ar,{$gap:h,$alignItems:"center",$justifyContent:"center",children:i.map((t,n)=>e(t,{size:d},`top-${n}`))}),u&&t(Ar,{$gap:h,$alignItems:"center",$justifyContent:"center",children:[c.map((t,n)=>e(t,{size:d},`bottom-${n}`)),r>0&&e(dn,{size:p,weight:500,children:`+${r}`})]})]})})})}const h=n?.[0]||o;return e("div",{style:{width:"fit-content"},children:e(Kh,{$size:s,$padding:l,$status:a,children:h?e(h,{size:u}):e("img",{src:r,alt:"",width:u,height:u})})})},Jh=o.div`
|
|
1320
|
-
width: 100%;
|
|
1321
|
-
border-radius: 8px;
|
|
1322
|
-
padding: ${({$plain:e})=>e?"4px 0":"4px 8px"};
|
|
1323
|
-
background: ${({theme:e,$plain:t})=>t?"transparent":e.v2.colors.silver[800]};
|
|
1324
|
-
`,Yh=({values:n,setValues:o,name:r,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,$=g||y&&b,v=n.length?n:[""];return e(Jh,{$plain:m,children:t(kr,{"data-id":r,$gap:6,children:[e(Du,{label:a,tooltip:s,required:c,badge:l}),e(kr,{$gap:8,children:v.map((r,i)=>{const a=i===v.length-1;return t(Ar,{$gap:8,$alignItems:"center",children:[e(Mu,{width:"100%",autoFocus:ei(r)&&!y&&a,value:r,onChange:e=>((e,t)=>{const r=[...n||[]];r[t]=e,o(r)})(e.target.value,i),disabled:g,placeholder:h,hasError:!!d}),a&&e(Qd,{leftIcon:Nt,variant:Jd.Secondary,size:Yd.S,disabled:b,onClick:()=>(()=>{const e=n.length?$o(n):[$o("")];e.push(""),o(e)})()}),e(Qd,{leftIcon:$?Rt:()=>e(Rt,{fill:f.v2.colors.red[500]}),variant:Jd.Secondary,size:Yd.S,disabled:$,onClick:()=>(e=>{const t=[...n||[]].filter((t,n)=>n!==e);t.length||t.push(""),o(t)})(i)})]},`input-list-${i}`)})}),e(_u,{errorMessage:d,warnMessage:u,helpMessage:p})]})})};var qh;!function(e){e.S="small",e.L="large"}(qh||(qh={}));const Qh=o.div`
|
|
1325
|
-
width: fit-content;
|
|
1326
|
-
display: flex;
|
|
1327
|
-
align-items: center;
|
|
1328
|
-
gap: 8px;
|
|
1329
|
-
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
1330
|
-
`,Zh=o.div`
|
|
1331
|
-
width: ${({$size:e})=>e===qh.S?"16px":"20px"};
|
|
1332
|
-
height: ${({$size:e})=>e===qh.S?"16px":"20px"};
|
|
1333
|
-
display: flex;
|
|
1334
|
-
align-items: center;
|
|
1335
|
-
justify-content: center;
|
|
1336
|
-
border-radius: 100%;
|
|
1337
|
-
border: 1px solid ${({$borderColor:e})=>e};
|
|
1338
|
-
background-color: ${({$backgroundColor:e})=>e};
|
|
1339
|
-
`,eg=({"data-id":n,label:o,value:r,onChange:a,disabled:s,size:l=qh.L})=>{const c=i(),[d,u]=Mt(!1),p=r,h=l===qh.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 t(Qh,{"data-id":n??"radio"+(o?`-${o}`:""),onClick:e=>{e.stopPropagation(),s||a(!r)},$disabled:s,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[e(Zh,{$size:l,$borderColor:m,$backgroundColor:f,children:r?e(Ot,{size:h,fill:g}):null}),o&&e(dn,{size:l===qh.S?rn.XXS:rn.XS,children:o})]})},tg=o.div`
|
|
1340
|
-
display: flex;
|
|
1341
|
-
flex-direction: ${({$flexDirection:e})=>e};
|
|
1342
|
-
gap: ${({$gap:e})=>e}px;
|
|
1343
|
-
`,ng=({label:n,direction:o,disabled:r,size:i,options:a,values:s,setValues:l})=>t(tg,{$flexDirection:o===$n.Horizontal?"row":"column",$gap:o===$n.Horizontal?16:8,children:[n&&e(dn,{children:n}),a.map(t=>e(eg,{...t,value:s[t.id],onChange:e=>{return n=t.id,o=e,void l(e=>{const t={...e};return Object.keys(t).forEach(e=>t[e]=!1),t[n]=o,t});var n,o},disabled:r,size:i},`${n}-radio-${t.id}`))]}),og=({col:n,colIdx:o,row:r,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:$,min:v,max:x}=n,S=r[p];if(b&&!b(r))return null;const w=d?void 0:m||void 0,E=f;switch(h){case"radioGroup":{const t=null!=S?String(S):"",n=Object.fromEntries((y||[]).map(e=>[e.id,e.id===t]));return e(ng,{direction:$n.Horizontal,options:(y||[]).map(e=>({id:e.id,label:e.label})),values:n,setValues:e=>{const t="function"==typeof e?e(n):e,o=Object.keys(t).find(e=>t[e])??"";s(p,o,i)},disabled:c},p)}case In.Dropdown:case"multi-dropdown":{const t="multi-dropdown"===h,n=Array.isArray(S)?S:null!=S&&""!==S?[String(S)]:[],o=y?.filter(e=>n.includes(e.id)).map(e=>e.id)||[];return e(Bh,{name:p,label:w,placeholder:E,options:y||[],withMultiSelect:t,withSearch:t,values:o,setValues:e=>s(p,t?e:e[0]??"",i),disabled:c,hasError:!!l},p)}default:const r=a>1&&0===i&&0===o&&ei(S),d=e(Mu,{name:p,label:w,placeholder:E,autoFocus:r,type:g,min:v,max:x,value:S,onChange:({target:{value:e}})=>s(p,e,i),disabled:c,hasError:!!l,helpMessage:$,width:n.withRegexTester?"100%":void 0});return n.withRegexTester?t(Ar,{$gap:8,$alignItems:"center",$width:"100%",children:[e("div",{style:{flex:1,minWidth:0},children:d}),e(Qd,{variant:Jd.Secondary,size:Yd.S,label:"Test",disabled:c||!String(S??"").trim(),onClick:()=>u?.(String(S??""))})]}):d}},rg=o.div`
|
|
1344
|
-
width: 100%;
|
|
1345
|
-
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1346
|
-
border-radius: 8px;
|
|
1347
|
-
padding: 8px;
|
|
1348
|
-
display: flex;
|
|
1349
|
-
flex-direction: column;
|
|
1350
|
-
gap: 8px;
|
|
1351
|
-
`,ig=o.div`
|
|
1352
|
-
flex: 1;
|
|
1353
|
-
min-width: 0;
|
|
1354
|
-
`,ag=o.div`
|
|
1355
|
-
padding-top: 24px;
|
|
1356
|
-
`,sg=({columns:n,values:o,setValues:r,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},$=m?.defaultValue||y[0]?.id||"",v=o.length?o:[b($)],x=(f?v[0]?.[f]:"")||$,S=(e,t,n)=>{r(v.map((o,r)=>r===e?{...o,[t]:n}:o))},w=()=>r([...v,b(x)]),E=y.find(e=>e.id===x);return t(kr,{"data-id":a,$gap:16,$width:"100%",children:[s&&e(Du,{label:s,tooltip:l,required:c}),m&&e(Gu,{"data-id":`${a}-mode`,size:zu.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:x,setSelected:e=>!d&&(e=>r([b(e)]))(String(e))}),t(kr,{$gap:8,$width:"100%",children:[v.map((o,i)=>{const s=i===v.length-1,l=f?{...o,[f]:x}:o,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),$=c.find(e=>e.withRegexTester),C=((e,t)=>{const n=t||e.length||1,o=[];let r=[];const i=()=>{r.length&&(o.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return i(),void o.push([e]);r.push(e),r.length>=n&&i()}),i(),o})(y,h),T=E?.rowTitle?`${E.rowTitle} ${i+1}`:void 0;return t(rg,{"data-id":`${a}-card-${i}`,children:[t(Ar,{$gap:10,$alignItems:"flex-start",$width:"100%",$justifyContent:"space-between",children:[t(kr,{$gap:10,children:[T&&e(Du,{label:T}),m.map(t=>e(Ar,{$gap:24,children:(t.options??[]).map(n=>e(eg,{size:qh.L,label:n.label,value:String(o[t.keyName]??"")===String(n.id),disabled:d,onChange:e=>e&&S(i,t.keyName,n.id)},`${a}-card-${i}-${t.keyName}-${n.id}`))},`${a}-card-${i}-${t.keyName}`))]}),t(Ar,{$gap:4,$alignItems:"center",children:[$&&e(Qd,{"data-id":`${a}-card-${i}-test-regex`,label:"Test Regex",variant:Jd.Secondary,size:Yd.S,disabled:d||!String(o[$.keyName]??"").trim(),onClick:()=>p?.(String(o[$.keyName]??""))}),e(Qd,{"data-id":`${a}-card-${i}-delete`,leftIcon:d?Rt:()=>e(Rt,{fill:g.v2.colors.red[500]}),variant:Jd.Secondary,size:Yd.S,disabled:d,onClick:()=>(e=>{const t=v.filter((t,n)=>n!==e);r(t.length?t:[b(x)])})(i)}),s&&e(Qd,{"data-id":`${a}-card-${i}-add`,leftIcon:Nt,variant:Jd.Secondary,size:Yd.S,disabled:d,onClick:w})]})]}),C.map((n,r)=>e(Ar,{$gap:8,$alignItems:"flex-start",$width:"100%",children:n.map((n,r)=>{const s=((e,t)=>{let{label:n,placeholder:o,helpMessage:r}=e;if(e.copyByColumn){const i=e.copyByColumn.map?.[String(t?.[e.copyByColumn.column]??"")];i&&(n=i.label??n,o=i.placeholder??o,r=i.helpMessage??r)}return{label:n,placeholder:o,helpMessage:r}})(n,o);return t(Ft,{children:["arrow"===n.separator&&r>0&&e(ag,{children:e(Dt,{size:24,fill:g.v2.colors.silver[200]})}),e(ig,{children:e(Mu,{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:o[n.keyName]??"",disabled:d,hasError:!!u,onChange:e=>S(i,n.keyName,e.target.value)})})]},`${a}-card-${i}-${n.keyName}`)})},`${a}-card-${i}-row-${r}`))]},`${a}-card-${i}`)}),e(_u,{errorMessage:u})]})]})},lg=o.div`
|
|
1357
|
-
width: 100%;
|
|
1358
|
-
background: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
1359
|
-
border-radius: 8px;
|
|
1360
|
-
padding: 4px 8px;
|
|
1361
|
-
`,cg=o.table`
|
|
1362
|
-
width: 100%;
|
|
1363
|
-
border-collapse: separate;
|
|
1364
|
-
border-spacing: 0 8px;
|
|
1365
|
-
`,dg=o.td`
|
|
1366
|
-
padding: 0 8px 0 0;
|
|
1367
|
-
vertical-align: top;
|
|
1368
|
-
`,ug=o.td`
|
|
1369
|
-
width: 72px;
|
|
1370
|
-
vertical-align: ${({$center:e})=>e?"middle":"top"};
|
|
1371
|
-
padding-top: ${({$center:e,$topOffset:t})=>e?0:t}px;
|
|
1372
|
-
`,pg=({columns:n,values:o,setValues:r,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=Ut(()=>{const e={};return n.forEach(({keyName:t,defaultValue:n})=>e[t]=n??""),e},[n]),$=(e,t,n)=>{const i=o.length?$o(o):[$o(b)];i[n][e]=t,r(i)},v=o.length?o:[b];return e(lg,{children:t(kr,{"data-id":a,$gap:0,children:[e(Du,{label:s,tooltip:l,required:d,badge:c}),e(cg,{children:e("tbody",{children:v.map((i,a)=>{const s=a===v.length-1,l=((e,t)=>{const n=t||e.length||1,o=[];let r=[];const i=()=>{r.length&&(o.push(r),r=[])};return e.forEach(e=>{if(e.fullRow)return i(),void o.push([e]);r.push(e),r.length>=n&&i()}),i(),o})(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 t(Ft,{children:[l.length>1&&a>0?e("tr",{children:e(dg,{colSpan:d+1})}):null,l.map((n,l)=>{const g=c[l],m=g?22:0;return t("tr",{children:[n.map((o,r)=>{if(o.renderCondition&&!o.renderCondition(i))return null;const s=r===n.length-1,c=0===l&&s?d-n.length+1:1;return e(dg,{colSpan:c>1?c:void 0,children:t(kr,{$gap:6,children:[g&&(o.label?e(Du,{label:o.label,tooltip:o.tooltip}):e(Du,{label:"\\u00A0"})),e(og,{col:o,colIdx:r,row:i,rowIdx:a,rowsLength:v.length,handleChange:$,disabled:u,errorMessage:p,hideLabel:g,onTestRegex:f})]})},`input-table-row-${a}-col-${l}-${r}`)}),0===l&&e(ug,{$topOffset:m,$center:h,children:t(Ar,{$gap:8,$justifyContent:"flex-end",$alignItems:"center",children:[s&&e(Qd,{leftIcon:Nt,variant:Jd.Secondary,size:Yd.S,disabled:u,onClick:()=>(()=>{const e=o.length?$o(o):[$o(b)];e.push($o(b)),r(e)})()}),e(Qd,{leftIcon:u?Rt:()=>e(Rt,{fill:y.v2.colors.red[500]}),variant:Jd.Secondary,size:Yd.S,disabled:u,onClick:()=>(e=>{const t=o.filter((t,n)=>n!==e);t.length||t.push($o(b)),r(t)})(a)})]})})]},`input-table-matrix-${a}-${l}`)})]},`input-table-row-${a}`)})})}),e(_u,{errorMessage:p,warnMessage:h,helpMessage:g})]})})},hg=o.div`
|
|
1373
|
-
display: flex;
|
|
1374
|
-
align-items: center;
|
|
1375
|
-
justify-content: space-between;
|
|
1376
|
-
gap: 32px;
|
|
1377
|
-
|
|
1378
|
-
padding: 18px 16px;
|
|
1379
|
-
border-radius: 18px;
|
|
1380
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]+Rd["095"]};
|
|
1381
|
-
box-shadow: 0 4px 16.7px 0 rgba(0, 0, 0, 0.83);
|
|
1382
|
-
|
|
1383
|
-
position: fixed;
|
|
1384
|
-
bottom: 0;
|
|
1385
|
-
left: 50%;
|
|
1386
|
-
z-index: ${({theme:e})=>e.v2.zIndex.island};
|
|
1387
|
-
animation-name: ${Dd.in.center};
|
|
1388
|
-
`,gg=({isOpen:n,onClose:o,richTitle:r,actions:i})=>n?t(hg,{children:[e(Ep,{...r}),e(xp,{onAnyClick:o,actions:i})]}):null,mg=o.div`
|
|
1389
|
-
position: ${({$relativeToParent:e})=>e?"absolute":"fixed"};
|
|
1390
|
-
top: 50%;
|
|
1391
|
-
left: 50%;
|
|
1392
|
-
transform: translate(-50%, -50%);
|
|
1393
|
-
z-index: ${({theme:e})=>e.v2.zIndex.modal};
|
|
1394
|
-
width: fit-content;
|
|
1395
|
-
border-radius: 20px;
|
|
1396
|
-
background: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1397
|
-
box-shadow: 0 0 34px 0 rgba(0, 0, 0, 0.7);
|
|
1398
|
-
overflow: hidden;
|
|
1399
|
-
|
|
1400
|
-
/* Promote to its own composited layer and isolate paint/layout so descendant
|
|
1401
|
-
re-renders during the slide animation can't trigger reflows of the rest of
|
|
1402
|
-
the page. Without this, the global \`* { transition: all 300ms }\` rule plus
|
|
1403
|
-
a heavy modal body (forms, etc.) make the close visibly stutter. */
|
|
1404
|
-
will-change: transform;
|
|
1405
|
-
contain: layout paint;
|
|
1406
|
-
|
|
1407
|
-
animation-name: ${({$closing:e})=>e?Dd.out.center:Dd.in.center};
|
|
1408
|
-
/* Snappier close: shorter duration with an ease-in curve. The slide-in keeps
|
|
1409
|
-
the global 300ms default which pairs with the fade-in for a soft entrance. */
|
|
1410
|
-
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1411
|
-
animation-timing-function: ${({$closing:e})=>e?"cubic-bezier(0.4, 0, 1, 1)":"cubic-bezier(0, 0, 0.2, 1)"};
|
|
1412
|
-
|
|
1413
|
-
/* Block hover/click work on form children mid-close so their transitions
|
|
1414
|
-
don't compete with the slide-out. */
|
|
1415
|
-
${({$closing:e})=>e&&"pointer-events: none;"}
|
|
1416
|
-
`,fg=o(Rr)`
|
|
1417
|
-
will-change: opacity;
|
|
1418
|
-
animation-name: ${({$closing:e})=>e?Fd.out:Fd.in};
|
|
1419
|
-
animation-duration: ${({$closing:e})=>e?"180ms":"300ms"};
|
|
1420
|
-
|
|
1421
|
-
/* The blurred backdrop is the most expensive thing on screen during the close
|
|
1422
|
-
— animating opacity on a backdrop-filtered element forces a full GPU
|
|
1423
|
-
recomposite per frame. Drop the blur while closing; visually identical
|
|
1424
|
-
because the overlay is fading to 0. */
|
|
1425
|
-
${({$closing:e})=>e&&"backdrop-filter: none; pointer-events: none;"}
|
|
1426
|
-
`,yg=o.div`
|
|
1427
|
-
position: relative;
|
|
1428
|
-
`,bg=o.div`
|
|
1429
|
-
position: absolute;
|
|
1430
|
-
top: 16px;
|
|
1431
|
-
left: 16px;
|
|
1432
|
-
`,$g=({isOpen:o,hideOverlay:r=!1,relativeToParent:i=!1,onBack:a,onClose:s,onCloseEnd:l,children:c})=>{const[d,u]=Mt(o),[p,h]=Mt(!1);if(zt(()=>{o?(u(!0),h(!1)):d&&h(!0)},[o]),Ic(d),!d)return null;const g=t(n,{children:[!r&&e(fg,{$relativeToParent:i,$closing:p,onClick:p?void 0:s}),e(mg,{"data-id":"modal",$relativeToParent:i,$closing:p,onAnimationEnd:e=>{e.target===e.currentTarget&&p&&(u(!1),h(!1),l?.())},children:t(yg,{children:[a&&e(bg,{children:e(Lc,{icon:t=>e(kt,{rotate:-90,...t}),size:Dc.L,onClick:a})}),c]})})]});return i?g:en(g,document.body)},vg=o.div`
|
|
1433
|
-
position: relative;
|
|
1434
|
-
width: ${64}px;
|
|
1435
|
-
height: ${({$height:e})=>e};
|
|
1436
|
-
flex-shrink: 0;
|
|
1437
|
-
`,xg=o.aside`
|
|
1438
|
-
position: absolute;
|
|
1439
|
-
top: 0;
|
|
1440
|
-
left: 0;
|
|
1441
|
-
bottom: 0;
|
|
1442
|
-
display: flex;
|
|
1443
|
-
flex-direction: column;
|
|
1444
|
-
gap: 8px;
|
|
1445
|
-
width: ${({$expanded:e})=>e?"220px":"64px"};
|
|
1446
|
-
padding: 16px ${12}px;
|
|
1447
|
-
box-sizing: border-box;
|
|
1448
|
-
background-color: ${({theme:e})=>e.v2.colors.black[500]};
|
|
1449
|
-
overflow-x: hidden;
|
|
1450
|
-
overflow-y: auto;
|
|
1451
|
-
z-index: 10;
|
|
1452
|
-
transition:
|
|
1453
|
-
width 200ms ease,
|
|
1454
|
-
padding 200ms ease;
|
|
1455
|
-
`,Sg=o.button`
|
|
1456
|
-
display: flex;
|
|
1457
|
-
align-items: center;
|
|
1458
|
-
width: 100%;
|
|
1459
|
-
min-width: 0;
|
|
1460
|
-
height: ${40}px;
|
|
1461
|
-
padding: 0;
|
|
1462
|
-
margin: 0;
|
|
1463
|
-
border: none;
|
|
1464
|
-
border-radius: 6px;
|
|
1465
|
-
box-sizing: border-box;
|
|
1466
|
-
cursor: pointer;
|
|
1467
|
-
font: inherit;
|
|
1468
|
-
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[500]:"transparent"};
|
|
1469
|
-
&:hover {
|
|
1470
|
-
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[600]:e.v2.colors.silver[800]};
|
|
1471
|
-
}
|
|
1472
|
-
&:active {
|
|
1473
|
-
background-color: ${({theme:e,$selected:t})=>t?e.v2.colors.purple[700]:e.v2.colors.silver[900]};
|
|
1474
|
-
}
|
|
1475
|
-
`,wg=o.div`
|
|
1476
|
-
width: ${40}px;
|
|
1477
|
-
height: ${40}px;
|
|
1478
|
-
display: flex;
|
|
1479
|
-
align-items: center;
|
|
1480
|
-
justify-content: center;
|
|
1481
|
-
flex-shrink: 0;
|
|
1482
|
-
`,Eg=o.div`
|
|
1483
|
-
flex: 1 1 0;
|
|
1484
|
-
min-width: 0;
|
|
1485
|
-
overflow: hidden;
|
|
1486
|
-
padding-right: 12px;
|
|
1487
|
-
pointer-events: none;
|
|
1488
|
-
`,Cg=({height:n,icons:o})=>{const r=i(),[a,s]=Mt(!1);return e(vg,{$height:n,children:e(xg,{$expanded:a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:o.map(({id:n,label:o,selected:i,icon:s,onClick:l})=>t(Sg,{$selected:i,onClick:l,"aria-label":o,title:a?void 0:o,children:[e(wg,{children:e(s,{size:24,fill:r.v2.colors.white[500]})}),a&&e(Eg,{children:e(dn,{size:rn.S,weight:500,color:an.Primary,nowrap:!0,children:o})})]},n))})})},Tg=({currentStep:n,data:o,gap:r=12})=>e(kr,{$gap:r,children:o.map(o=>{const r=o.step<n,i=o.step===n;return t(Ar,{$gap:8,children:[r||o.forceDoneBadge?e(Nu,{status:Rn.Success,label:"",leftIcon:yt}):e(Nu,{status:Rn.Default,label:o.step.toString()}),e(dn,{size:i?rn.M:rn.XS,weight:i?500:400,opacity:i?1:.7,children:o.label})]},`stepper-item-${o.step}`)})});var Ag;!function(e){e.Data="data",e.Pretty="pretty"}(Ag||(Ag={}));const kg=o.div`
|
|
1489
|
-
${({$maxHeight:e})=>e?`\n height: ${e};\n flex: 0 0 auto;\n `:"\n flex: 1;\n min-height: 0;\n height: 100%;\n "}
|
|
1490
|
-
width: 100%;
|
|
1491
|
-
display: flex;
|
|
1492
|
-
flex-direction: column;
|
|
1493
|
-
overflow: hidden;
|
|
1494
|
-
`,Ig=o.div`
|
|
1495
|
-
width: 100%;
|
|
1496
|
-
flex: 1;
|
|
1497
|
-
display: flex;
|
|
1498
|
-
flex-direction: column;
|
|
1499
|
-
`,Ng=o.div`
|
|
1500
|
-
flex-shrink: 0;
|
|
1501
|
-
position: relative;
|
|
1502
|
-
z-index: 2;
|
|
1503
|
-
`,Rg=o.div`
|
|
1504
|
-
position: relative;
|
|
1505
|
-
display: flex;
|
|
1506
|
-
width: 100%;
|
|
1507
|
-
`,Og=o.div`
|
|
1508
|
-
position: relative;
|
|
1509
|
-
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1510
|
-
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
|
|
1511
|
-
|
|
1512
|
-
/* See the matching rule on Td below for the full explanation. The header
|
|
1513
|
-
* needs the same flex-grow override so its column shares any empty row
|
|
1514
|
-
* width even when the caller wrote 'flex: 0 0 Xpx'. */
|
|
1515
|
-
${({$autoWidth:e,$resolvedWidth:t})=>!e&&null==t&&r`
|
|
1516
|
-
flex-grow: 1;
|
|
1517
|
-
`}
|
|
1518
|
-
|
|
1519
|
-
padding: 18px 24px;
|
|
1520
|
-
border: none;
|
|
1521
|
-
border-radius: ${({$isFirst:e,$isLast:t})=>e?"4px 0 0 0":t?"0 4px 0 0":"0"};
|
|
1522
|
-
box-sizing: border-box;
|
|
1523
|
-
|
|
1524
|
-
${({$variant:e,$backgroundColor:t})=>{if(t)return r`
|
|
1525
|
-
background-color: ${t};
|
|
1526
|
-
`;switch(e){case Ag.Data:return r`
|
|
1527
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[750]};
|
|
1528
|
-
`;case Ag.Pretty:return r`
|
|
1529
|
-
background-color: transparent;
|
|
1530
|
-
`;default:return""}}}
|
|
1531
|
-
`,Dg=o.div`
|
|
1532
|
-
position: absolute;
|
|
1533
|
-
top: 50%;
|
|
1534
|
-
right: 0;
|
|
1535
|
-
transform: translateY(-50%);
|
|
1536
|
-
width: 1px;
|
|
1537
|
-
height: 18px;
|
|
1538
|
-
background: ${({theme:e})=>e.v2.colors.silver[500]};
|
|
1539
|
-
`,_g=o.div`
|
|
1540
|
-
min-width: ${({$minWidth:e})=>e?`${e}px`:"auto"};
|
|
1541
|
-
flex: ${({$flex:e,$autoWidth:t,$resolvedWidth:n})=>null!=n?`0 0 ${n}px`:e??(t?"0 0 auto":1)};
|
|
1542
|
-
|
|
1543
|
-
/* Always let text columns grow into empty row space, even when the caller
|
|
1544
|
-
* wrote an explicit flex value with grow=0 (e.g. 'flex: 0 0 160px'). The
|
|
1545
|
-
* 'flex' shorthand above sets all three flex sub-properties from the
|
|
1546
|
-
* caller's value; this longhand 'flex-grow: 1' is declared after it so it
|
|
1547
|
-
* wins and the column still consumes any leftover width.
|
|
1548
|
-
*
|
|
1549
|
-
* Without this, a column pinned with 'flex: 0 0 160px' stays at 160px even
|
|
1550
|
-
* when the row has hundreds of pixels of empty space — and the text inside
|
|
1551
|
-
* gets ellipsised (or in extreme cases clipped without indication) when it
|
|
1552
|
-
* could comfortably fit a few more pixels. Combined with the cell's
|
|
1553
|
-
* 'overflow: hidden', a column that's STILL too narrow after consuming all
|
|
1554
|
-
* available space then truncates cleanly via TruncatableTypography's
|
|
1555
|
-
* ellipsis + tooltip.
|
|
1556
|
-
*
|
|
1557
|
-
* Component (auto-width) columns and JS-measured columns
|
|
1558
|
-
* ('resolvedColumnWidths') keep their exact pixel width — they're already
|
|
1559
|
-
* sized to fit their content and shouldn't steal leftover space from text
|
|
1560
|
-
* columns. The withCheckboxes column passes 'flex' via an inline style,
|
|
1561
|
-
* which takes precedence over class styles, so it stays pinned too. */
|
|
1562
|
-
${({$autoWidth:e,$resolvedWidth:t})=>!e&&null==t&&r`
|
|
1563
|
-
flex-grow: 1;
|
|
1564
|
-
`}
|
|
1565
|
-
|
|
1566
|
-
overflow: ${({$autoWidth:e})=>e?"visible":"hidden"};
|
|
1567
|
-
display: flex;
|
|
1568
|
-
align-items: center;
|
|
1569
|
-
|
|
1570
|
-
padding: 18px 24px;
|
|
1571
|
-
cursor: ${({$withClick:e})=>e?"pointer":"default"};
|
|
1572
|
-
box-sizing: border-box;
|
|
1573
|
-
|
|
1574
|
-
${({$variant:e,$selected:t,$highlighted:n,$hovered:o,$isLastRow:i,$isFirstCell:a,$isLastCell:s})=>{switch(e){case Ag.Data:return r`
|
|
1575
|
-
border-bottom: ${({theme:e})=>i?"none":`1px solid ${e.v2.colors.silver[500]}`};
|
|
1576
|
-
border-radius: ${i?a?"0 0 0 4px":s?"0 0 4px 0":"0":"0"};
|
|
1577
|
-
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[800]};
|
|
1578
|
-
`;case Ag.Pretty:return r`
|
|
1579
|
-
border: none;
|
|
1580
|
-
border-radius: ${a?"12px 0 0 12px":s?"0 12px 12px 0":"0"};
|
|
1581
|
-
background-color: ${({theme:e})=>t?e.v2.colors.blue[1e3]:n||o?e.v2.colors.silver[700]:e.v2.colors.silver[900]};
|
|
1582
|
-
`;default:return""}}}
|
|
1583
|
-
`,Lg=o.div`
|
|
1584
|
-
position: absolute;
|
|
1585
|
-
top: 0;
|
|
1586
|
-
left: 0;
|
|
1587
|
-
visibility: hidden;
|
|
1588
|
-
pointer-events: none;
|
|
1589
|
-
height: 0;
|
|
1590
|
-
overflow: hidden;
|
|
1591
|
-
white-space: nowrap;
|
|
1592
|
-
`,Pg=o.div`
|
|
1593
|
-
display: inline-flex;
|
|
1594
|
-
align-items: center;
|
|
1595
|
-
padding: 18px 24px;
|
|
1596
|
-
box-sizing: border-box;
|
|
1597
|
-
white-space: nowrap;
|
|
1598
|
-
`,Fg=o.div`
|
|
1599
|
-
display: inline-flex;
|
|
1600
|
-
align-items: center;
|
|
1601
|
-
gap: 4px;
|
|
1602
|
-
white-space: nowrap;
|
|
1603
|
-
`,Mg=o.div`
|
|
1604
|
-
width: 100%;
|
|
1605
|
-
height: 100%;
|
|
1606
|
-
display: flex;
|
|
1607
|
-
align-items: center;
|
|
1608
|
-
justify-content: ${({$textAlign:e})=>"right"===e?"flex-end":"left"===e?"flex-start":"center"===e?"center":"unset"};
|
|
1609
|
-
gap: 4px;
|
|
1610
|
-
text-align: ${({$textAlign:e})=>e||"left"};
|
|
1611
|
-
`,zg=({variant:n,columns:o,rows:r,autoWidthColumnKeys:i,resolvedColumnWidths:a,getRowActions:s,rowActionsPushRightPosition:l,rowActionsPushLeftPosition:c,withCheckboxes:d,activeRowId:u,scrollToIndex:p,scrollSignal:h})=>{const[g,m]=Mt(null),f=Ut(()=>r.map((p,h)=>{const{cells:f,onClick:y,isSelected:b=!1,onSelect:$,onDeselect:v,hideCheckbox:x,checkboxDisabled:S,checkboxTooltip:w}=p,E=g===h,C=null!=u&&p.id===u,T=s(p),A=(e,t)=>({$isLastRow:h===r.length-1,$isFirstCell:e,$isLastCell:t,$selected:b,$highlighted:C,$withClick:!!y,onClick:()=>y?.(),$hovered:!!y&&E,onMouseEnter:()=>m(h),onMouseLeave:()=>m(null)});return t(Rg,{children:[d&&e(_g,{$variant:n,style:{flex:"0 0 68px"},...A(!0,!1),children:!x&&(w?e(hd,{text:w,children:e(ep,{value:b,disabled:S,onChange:()=>b?v?.():$?.()})}):e(ep,{value:b,disabled:S,onChange:()=>b?v?.():$?.()}))},"checkbox-column"),o.map(({key:r,withTooltip:s,textAlign:u,flex:p,minWidth:g},m)=>{const y=f.find(e=>e.key===r),b=0===m&&!d,$=m===o.length-1,v=T.length&&(l&&$||c&&b||!l&&!c&&$),x="right"===u?"flex-end":"center"===u?"center":"flex-start",S=y?.component?e(y.component,{}):s?e(dn,{size:rn.XS,align:u,nowrap:!0,children:y?.rawValue||"-"}):e(Sp,{size:rn.XS,align:u,nowrap:!0,fullWidth:!1,children:y?.rawValue||"-"}),w=e(Ar,{$width:"100%",$justifyContent:x,children:S});return t(_g,{$variant:n,$flex:p,$minWidth:g,$autoWidth:i.has(r),$resolvedWidth:a[r],...A(b,$),children:[s?e(hd,{text:y?.rawValue?.toString()||"",ellipsis:!0,children:w}):w,v?e(Xh,{isOpen:E,actions:T,positionRight:l,positionLeft:c}):null]},`row-${h}-cell-${m}`)})]},`row-${h}`)}),[r,g,u,s,l,c,d,o,i,a]);return e(Su,{gap:n===Ag.Pretty?8:0,elements:f,scrollToIndex:p,scrollSignal:h})},Ug=({columnKey:t,sortDirection:n,sortByKey:o,onSort:r})=>{const a=i(),s=o===t?a.v2.colors.white[500]:a.v2.colors.grey[400],l=n===vn.Ascending?0:180;return e(Qd,{variant:Jd.Text,size:Yd.S,leftIcon:()=>e(kt,{fill:s,rotate:l}),onClick:()=>r(t)})},Bg=({columnKey:t,filters:n,onFilter:o,rowsUnfiltered:r,filterOverride:a})=>{const s=i(),l=n[t]?.length?s.v2.colors.white[500]:s.v2.colors.grey[400],c=Ut(()=>{if(a)return a.options.map(({id:e,label:t})=>({id:e,label:t,withCheckbox:!0}));return Array.from(new Set(r.map(e=>e.cells.find(e=>e.key===t)?.rawValue?.toString()).filter(e=>!!e))).sort((e,t)=>e.localeCompare(t)).map(e=>({id:e,label:e,withCheckbox:!0}))},[r,t,a]);return e(hp,{items:c,withMultiSelect:!0,selectedIds:n[t]?.map(e=>e.toString())??[],setSelectedIds:e=>o(t,e),defaultOpen:!1,iconButtonProps:{leftIcon:t=>e(_t,{fill:l,...t})}})},jg=({variant:n,backgroundColor:o,columns:r,rowsUnfiltered:i,autoWidthColumnKeys:a,resolvedColumnWidths:s,sortDirection:l,sortByKey:c,onSort:d,filters:u,onFilter:p,withCheckboxes:h,partiallySelected:g,allSelected:m,onSelectAll:f})=>t(Rg,{children:[h&&e(Og,{$variant:n,$backgroundColor:o,$isFirst:!0,$isLast:!1,style:{flex:"0 0 68px",display:"flex",alignItems:"center"},children:e(ep,{partiallyChecked:g&&!m,value:m||!1,onChange:f})},"checkbox-column"),r.map(({key:g,label:m,withTooltip:f,tooltip:y,noSort:b,noFilter:$,filterOverride:v,flex:x,minWidth:S,textAlign:w},E)=>{const C=0===E&&!h,T=E===r.length-1,A=!(!y&&!f),k=A?e(dn,{size:rn.XS,align:w,nowrap:!0,children:m}):e(Sp,{size:rn.XS,align:w,nowrap:!0,fullWidth:!1,children:m});return t(Og,{$variant:n,$backgroundColor:o,$flex:x,$minWidth:S,$isFirst:C,$isLast:T,$autoWidth:a.has(g),$resolvedWidth:s[g],children:[t(Mg,{$textAlign:w,children:[A?e(hd,{text:y||m,children:k}):k,!b&&e(Ug,{columnKey:g,sortDirection:l,sortByKey:c,onSort:d}),!$&&e(Bg,{columnKey:g,filters:u,onFilter:p,rowsUnfiltered:i,filterOverride:v})]}),!T&&n===Ag.Data&&e(Dg,{})]},`column-${g}`)})]}),Wg=()=>{},Hg={},Gg=[],Xg=({variant:n,maxHeight:o,headerBackgroundColor:r,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,$]=Mt(vn.Ascending),[v,x]=Mt(""),[S,w]=Mt({}),E=g??S,C=Bt(e=>{x(e),$(e=>e===vn.Ascending?vn.Descending:vn.Ascending)},[]),T=Bt((e,t)=>{const n={...E,[e]:t};m&&m(n),void 0===g&&w(n)},[E,m,g]),A=Ut(()=>{const e=(e,t)=>{const n=e.cells.find(e=>e.key===t);return n&&(n.rawValue?.toString()||n.component?.({})?.props?.children?.toString())||""};return(v?[...c].sort((t,n)=>{const o=e(t,v),r=e(n,v);return(b===vn.Ascending?1:-1)*((e,t)=>"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"number"==typeof e&&"number"==typeof t?e-t:"boolean"==typeof e&&"boolean"==typeof t?e===t?0:e?1:-1:String(e).localeCompare(String(t)))(o,r)}):c).filter(t=>{for(const[n,o]of Object.entries(E)){if(!o.length)continue;const r=l.find(e=>e.key===n)?.filterOverride;if(r){if(!r.filterRow(t,o))return!1}else if(!o.includes(e(t,n)))return!1}return!0})},[c,v,b,E,l]),k=Ut(()=>null==f?-1:A.findIndex(e=>e.id===f),[A,f]),{partiallySelected:I,allSelected:N}=Ut(()=>{const e=A.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)}},[A]),R=Ut(()=>{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 o of n.cells)o.component&&!e.has(o.key)&&t.add(o.key);return t},[c,l]),O=jt(null),[D,_]=Mt({}),L=Ut(()=>0===R.size?[]:l.filter(e=>R.has(e.key)).map(n=>{const o=[t(Fg,{children:[e(dn,{size:rn.XS,align:n.textAlign,children:n.label}),!n.noSort&&e(Ug,{columnKey:n.key,sortDirection:vn.Ascending,sortByKey:"",onSort:Wg}),!n.noFilter&&e(Bg,{columnKey:n.key,filters:Hg,onFilter:Wg,rowsUnfiltered:Gg,filterOverride:n.filterOverride})]},`mw-${n.key}-header`)];return c.forEach((t,r)=>{const i=t.cells.find(e=>e.key===n.key);i&&o.push(i.component?e(i.component,{},`mw-${n.key}-${r}`):e(dn,{size:rn.XS,children:i.rawValue||"-"},`mw-${n.key}-${r}`))}),{key:n.key,nodes:o}}),[l,c,R]);return Wt(()=>{if(!O.current||0===R.size)return void _(e=>0===Object.keys(e).length?e:{});const e={};O.current.querySelectorAll("[data-mw-key]").forEach(t=>{const n=t.dataset.mwKey;if(!n)return;const o=Math.ceil(t.getBoundingClientRect().width);(!e[n]||o>e[n])&&(e[n]=o)}),_(t=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])?t:e)},[L,R]),t(kg,{$maxHeight:o,children:[L.length>0&&e(Lg,{ref:O,"aria-hidden":!0,children:L.flatMap(({key:t,nodes:n})=>n.map((n,o)=>e(Pg,{"data-mw-key":t,children:n},`mw-${t}-${o}`)))}),t(Ig,{$variant:n,children:[!i&&e(Ng,{children:e(jg,{variant:n,backgroundColor:r,columns:l,rowsUnfiltered:c,autoWidthColumnKeys:R,resolvedColumnWidths:D,sortDirection:b,sortByKey:v,onSort:C,filters:E,onFilter:T,withCheckboxes:h,partiallySelected:I,allSelected:N,onSelectAll:e=>{e?A.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onSelect?.()):A.forEach(e=>!e.hideCheckbox&&!e.checkboxDisabled&&e.onDeselect?.())}})}),A.length?e(zg,{variant:n,columns:l,rows:A,autoWidthColumnKeys:R,resolvedColumnWidths:D,getRowActions:d||(()=>[]),rowActionsPushRightPosition:u,rowActionsPushLeftPosition:p,withCheckboxes:h,activeRowId:f,scrollToIndex:k,scrollSignal:y}):e(Ir,{$height:o,$fullHeight:!o,children:a?e(zr,{withSpinner:!0}):e(Yu,{...s})})]})]})};var Kg;!function(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 Vg=(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=o.div`
|
|
1612
|
-
display: flex;
|
|
1613
|
-
align-items: center;
|
|
1614
|
-
justify-content: center;
|
|
1615
|
-
gap: 8px;
|
|
1616
|
-
padding: 4px 8px;
|
|
1617
|
-
border-radius: 6px;
|
|
1618
|
-
border: 1px solid transparent;
|
|
1619
|
-
|
|
1620
|
-
${({$flex:e})=>e?r`
|
|
1621
|
-
flex: ${e};
|
|
1622
|
-
`:r`
|
|
1623
|
-
width: fit-content;
|
|
1624
|
-
`}
|
|
1625
|
-
|
|
1626
|
-
${({$disabled:e,$variant:t,$withClick:n})=>e?r`
|
|
1627
|
-
background-color: ${({theme:e})=>e.v2.colors.grey[800]};
|
|
1628
|
-
cursor: not-allowed;
|
|
1629
|
-
`:r`
|
|
1630
|
-
background-color: ${({theme:e})=>Vg(e,t)};
|
|
1631
|
-
${n&&r`
|
|
1632
|
-
cursor: pointer;
|
|
1633
|
-
&:hover,
|
|
1634
|
-
&:active {
|
|
1635
|
-
border: 1px solid ${({theme:e})=>Vg(e,t,!0)};
|
|
1636
|
-
}
|
|
1637
|
-
`}
|
|
1638
|
-
`}
|
|
1639
|
-
`,Yg=({variant:n=Kg.Default,label:o,leftIcon:r,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]:Vg(d,n,!0),p=n===Kg.Loader;return t(Jg,{$variant:n,$disabled:l,$withClick:!!s,onClick:()=>!l&&s?.(),$flex:c,children:[r&&e(r,{fill:u,size:16}),p?e(zr,{withGradient:!0,title:o,titleSize:rn.XXS}):e(dn,{color:u,size:rn.XXS,nowrap:!0,children:o}),a&&e(a,{fill:u,size:16})]})},qg=o.div`
|
|
1640
|
-
padding: 6px 12px;
|
|
1641
|
-
|
|
1642
|
-
display: flex;
|
|
1643
|
-
align-self: stretch;
|
|
1644
|
-
align-items: flex-start;
|
|
1645
|
-
gap: 8px;
|
|
1646
|
-
border-radius: 6px;
|
|
1647
|
-
|
|
1648
|
-
border: 1px solid ${({theme:e,$disabled:t,$error:n})=>t?e.v2.colors.grey[600]:n?e.v2.colors.red[500]:e.v2.colors.silver[500]};
|
|
1649
|
-
background: ${({theme:e,$disabled:t})=>t?e.v2.colors.grey[800]:e.v2.colors.black[500]};
|
|
1650
|
-
${({$disabled:e,$error:t})=>!e&&!t&&r`
|
|
1651
|
-
&:hover,
|
|
1652
|
-
&:active,
|
|
1653
|
-
&:focus-within {
|
|
1654
|
-
border: 1px solid ${({theme:e})=>e.v2.colors.silver[300]};
|
|
1655
|
-
}
|
|
1656
|
-
`}
|
|
1657
|
-
`,Qg=o.textarea`
|
|
1658
|
-
max-width: ${({$maxWidth:e})=>e||"unset"};
|
|
1659
|
-
min-height: ${({$minHeight:e})=>e||"50px"};
|
|
1660
|
-
flex: 1;
|
|
1661
|
-
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1662
|
-
font-size: 14px;
|
|
1663
|
-
font-weight: 400;
|
|
1664
|
-
resize: none;
|
|
1665
|
-
|
|
1666
|
-
background: transparent;
|
|
1667
|
-
border: none;
|
|
1668
|
-
outline: none;
|
|
1669
|
-
cursor: text;
|
|
1670
|
-
color: ${({theme:e})=>e.v2.colors.white[500]};
|
|
1671
|
-
&::placeholder {
|
|
1672
|
-
color: ${({theme:e})=>e.v2.colors.silver[600]};
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
&:disabled {
|
|
1676
|
-
cursor: not-allowed;
|
|
1677
|
-
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1678
|
-
&::placeholder {
|
|
1679
|
-
color: ${({theme:e})=>e.v2.colors.grey[400]};
|
|
1680
|
-
}
|
|
1681
|
-
}
|
|
1682
|
-
`,Zg=({label:n,required:o,tooltip:r,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 t(kr,{$gap:6,children:[e(Du,{label:n,tooltip:r,required:o,badge:i}),e(qg,{$disabled:p,$error:!!a,children:e(Qg,{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})}),e(_u,{errorMessage:a,warnMessage:s,helpMessage:l})]})},em=[{id:"ms",label:"milliseconds"},{id:"s",label:"seconds"},{id:"m",label:"minutes"},{id:"h",label:"hours"}],tm=o.div`
|
|
1683
|
-
flex: 1;
|
|
1684
|
-
min-width: 0;
|
|
1685
|
-
`,nm=o.div`
|
|
1686
|
-
flex: 0 0 auto;
|
|
1687
|
-
min-width: 140px;
|
|
1688
|
-
`,om=({name:n,label:o,tooltip:r,badge:i,placeholder:a,required:s,disabled:l,value:c,setValue:d,units:u=em,defaultUnit:p,errorMessage:h,warnMessage:g,helpMessage:m,hasError:f,width:y})=>{const b=Ut(()=>p&&u.some(e=>e.id===p)?p:u[0]?.id||"s",[p,u]),{num:$,unit:v}=Ut(()=>((e,t,n)=>{if(null==e||""===e)return{num:"",unit:n};const o=[...t.map(e=>e.id)].sort((e,t)=>t.length-e.length),r=new RegExp(`^\\s*(\\d+)\\s*(${o.join("|")})\\s*$`,"i"),i=String(e).match(r);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]),x=(e,t)=>{d(""!==e?`${e}${t}`:"")};return t(kr,{$width:y,$gap:6,children:[e(Du,{label:o,tooltip:r,required:s,badge:i}),t(Ar,{$gap:8,$alignItems:"center",children:[e(tm,{children:e(Mu,{name:n,placeholder:a,disabled:l,hasError:f||!!h,inputMode:"numeric",value:$,onChange:e=>x(pi(e.target.value),v)})}),e(nm,{children:e(Bh,{name:`${n}-unit`,disabled:l,hasError:f||!!h,withSearch:!1,options:u,values:[v],setValues:e=>x($,e[0]||v)})})]}),e(_u,{errorMessage:h,warnMessage:g,helpMessage:m})]})},rm=o.div`
|
|
1689
|
-
min-width: 500px;
|
|
1690
|
-
`,im=o.div`
|
|
1691
|
-
display: flex;
|
|
1692
|
-
flex-direction: column;
|
|
1693
|
-
align-items: center;
|
|
1694
|
-
gap: 16px;
|
|
1695
|
-
padding: 24px;
|
|
1696
|
-
width: 100%;
|
|
1697
|
-
`,am=o.div`
|
|
1698
|
-
display: flex;
|
|
1699
|
-
justify-content: center;
|
|
1700
|
-
gap: 16px;
|
|
1701
|
-
padding: 16px 24px;
|
|
1702
|
-
width: 100%;
|
|
1703
|
-
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
1704
|
-
`,sm=({visual:n,title:o,description:r,isOpen:i,onClose:a,denyButton:s,approveButton:l,children:c,...d})=>e($g,{isOpen:i,onClose:a,...d,children:t(rm,{children:[t(im,{children:[n&&e(n,{}),e(dn,{size:rn.M,weight:500,color:an.Primary,children:o}),e(kr,{$alignItems:"center",$gap:4,children:r.split("\n").map(t=>e(dn,{size:rn.XS,weight:400,color:an.Secondary,children:t},t))}),c]}),(s||l)&&t(am,{children:[s&&e(Qd,{"data-id":"deny",...s}),l&&e(Qd,{"data-id":"approve",...l})]})]})});export{xc as $,Ti as A,Qd as B,Hn as C,Ri as D,An as E,lo as F,Zn as G,Wn as H,Di as I,Qn as J,Mn as K,Jd as L,Gu as M,Yu as N,an as O,Ci as P,Su as Q,Nu as R,Yn as S,dn as T,Vu as U,ep as V,yc as W,Rc as X,Dh as Y,or as Z,Tn as _,rn as a,uo as a$,Cc as a0,bc as a1,Ko as a2,Ni as a3,Wo as a4,Zr as a5,_i as a6,Qr as a7,kr as a8,Du as a9,Lo as aA,sm as aB,ys as aC,wa as aD,Ra as aE,bs as aF,Fa as aG,fs as aH,ea as aI,ta as aJ,Dp as aK,da as aL,Rd as aM,Ii as aN,Tr as aO,ku as aP,Ir as aQ,Bh as aR,Lc as aS,Dc as aT,zr as aU,Oi as aV,Bo as aW,hh as aX,on as aY,ao as aZ,io as a_,_u as aa,pg as ab,hn as ac,bh as ad,gh as ae,Yh as af,Uh as ag,Li as ah,Pi as ai,bn as aj,eg as ak,Fi as al,qh as am,Mu as an,Ud as ao,bo as ap,hd as aq,sg as ar,Sp as as,zu as at,Zg as au,oo as av,mi as aw,jn as ax,Gn as ay,ic as az,xn as b,fc as b$,Np as b0,uh as b1,Ro as b2,li as b3,Eo as b4,Vr as b5,nn as b6,Yg as b7,Vo as b8,td as b9,Mo as bA,Mi as bB,Hi as bC,Ui as bD,Wi as bE,Zl as bF,tc as bG,Ea as bH,ec as bI,ws as bJ,xs as bK,vs as bL,Ss as bM,Is as bN,ks as bO,Os as bP,Rs as bQ,Ts as bR,Cs as bS,zi as bT,us as bU,jc as bV,ni as bW,hp as bX,rp as bY,op as bZ,No as b_,Xc as ba,go as bb,Un as bc,ah as bd,ho as be,rc as bf,Po as bg,Kg as bh,th as bi,vp as bj,hc as bk,Xr as bl,ko as bm,Pc as bn,Br as bo,Hc as bp,lc as bq,ac as br,ai as bs,Fo as bt,Uu as bu,Cn as bv,Xg as bw,Ag as bx,gg as by,ji as bz,Sn as c,Al as c$,$g as c0,Ql as c1,Ls as c2,Vs as c3,Js as c4,Ys as c5,qs as c6,Zs as c7,Qs as c8,el as c9,il as cA,ol as cB,pl as cC,hl as cD,dl as cE,ul as cF,cl as cG,ml as cH,fl as cI,gl as cJ,Fs as cK,Fl as cL,Ml as cM,zl as cN,Pl as cO,Bl as cP,jl as cQ,Wl as cR,Hl as cS,Gl as cT,Ul as cU,_l as cV,Ll as cW,Cl as cX,Rl as cY,Ol as cZ,Dl as c_,wr as ca,Xl as cb,Kl as cc,Vl as cd,Jl as ce,Yl as cf,ql as cg,Ps as ch,Ms as ci,zs as cj,Us as ck,js as cl,Bs as cm,Hs as cn,Ws as co,Xs as cp,Gs as cq,Ks as cr,Ds as cs,_s as ct,tl as cu,nl as cv,ll as cw,al as cx,sl as cy,rl as cz,Tc as d,Ia as d$,Il as d0,kl as d1,yl as d2,bl as d3,$l as d4,vl as d5,xl as d6,Sl as d7,wl as d8,El as d9,Pp as dA,Yp as dB,zp as dC,Cr as dD,ua as dE,Ja as dF,Ki as dG,Gi as dH,Xi as dI,Vi as dJ,$s as dK,ds as dL,ls as dM,cs as dN,ss as dO,as as dP,gs as dQ,ms as dR,hs as dS,ps as dT,Kc as dU,om as dV,Nn as dW,Bi as dX,xa as dY,Na as dZ,sa as d_,Tl as da,Nl as db,Er as dc,Tg as dd,mc as de,To as df,so as dg,oc as dh,Jc as di,qu as dj,Sc as dk,Go as dl,Xo as dm,Ho as dn,jo as dp,Oc as dq,Co as dr,wo as ds,So as dt,Nc as du,ro as dv,Ep as dw,xp as dx,ir as dy,Xn as dz,$o as e,kn as e$,aa as e0,_a as e1,va as e2,ka as e3,Da as e4,Wa as e5,Sa as e6,Ba as e7,ya as e8,oa as e9,Ca as eA,Ga as eB,Ya as eC,Aa as eD,qa as eE,Qa as eF,Xa as eG,Oa as eH,gp as eI,ja as eJ,Za as eK,es as eL,Ta as eM,fr as eN,wd as eO,Ln as eP,fn as eQ,Dn as eR,Fn as eS,wn as eT,En as eU,On as eV,yn as eW,no as eX,$n as eY,mn as eZ,zn as e_,ba as ea,fa as eb,ra as ec,$a as ed,ns as ee,ma as ef,Va as eg,os as eh,ts as ei,rs as ej,is as ek,Ma as el,ia as em,la as en,ca as eo,pa as ep,ga as eq,ha as er,Ji as es,Yi as et,na as eu,za as ev,Ua as ew,Ha as ex,nc as ey,qi as ez,pn as f,Bc as f$,Jn as f0,Vn as f1,Kn as f2,Pn as f3,to as f4,eo as f5,qn as f6,vn as f7,gn as f8,_n as f9,si as fA,pi as fB,hi as fC,gi as fD,fi as fE,yi as fF,xo as fG,bi as fH,$i as fI,Ka as fJ,Ns as fK,As as fL,Es as fM,La as fN,Pa as fO,Zi as fP,Qi as fQ,sc as fR,cc as fS,Ai as fT,ki as fU,dc as fV,Wc as fW,kc as fX,Ic as fY,Fc as fZ,zc as f_,br as fa,yr as fb,xr as fc,mo as fd,fo as fe,ui as ff,Ao as fg,Io as fh,_o as fi,vo as fj,zo as fk,po as fl,Yo as fm,qo as fn,Qo as fo,Zo as fp,er as fq,tr as fr,nr as fs,rr as ft,jr as fu,Jr as fv,Yr as fw,qr as fx,oi as fy,ri as fz,un as g,Gc as g0,qc as g1,Nd as g2,Md as g3,Od as g4,Id as g5,eu as g6,Gd as g7,ou as g8,cu as g9,vh as gA,ph as gB,ln as gC,au as ga,ru as gb,Vd as gc,Or as gd,bu as ge,Rr as gf,vu as gg,Dr as gh,_r as gi,Lr as gj,ad as gk,fd as gl,Nr as gm,od as gn,rd as go,id as gp,bp as gq,$p as gr,np as gs,em as gt,Up as gu,Hh as gv,Xh as gw,Cg as gx,ng as gy,Rp as gz,pc as h,ei as i,ti as j,ci as k,In as l,di as m,Bn as n,Rn as o,co as p,Gr as q,Uo as r,Kr as s,vi as t,Vc as u,Oo as v,Vh as w,Ur as x,Ar as y,Yd as z};
|