dstack 0.19.26__py3-none-any.whl → 0.19.27__py3-none-any.whl

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.

Potentially problematic release.


This version of dstack might be problematic. Click here for more details.

Files changed (68) hide show
  1. dstack/_internal/cli/commands/init.py +2 -2
  2. dstack/_internal/cli/services/configurators/run.py +114 -16
  3. dstack/_internal/cli/services/repos.py +1 -18
  4. dstack/_internal/core/backends/amddevcloud/__init__.py +1 -0
  5. dstack/_internal/core/backends/amddevcloud/backend.py +16 -0
  6. dstack/_internal/core/backends/amddevcloud/compute.py +5 -0
  7. dstack/_internal/core/backends/amddevcloud/configurator.py +29 -0
  8. dstack/_internal/core/backends/aws/compute.py +6 -1
  9. dstack/_internal/core/backends/base/compute.py +33 -5
  10. dstack/_internal/core/backends/base/offers.py +2 -0
  11. dstack/_internal/core/backends/configurators.py +15 -0
  12. dstack/_internal/core/backends/digitalocean/__init__.py +1 -0
  13. dstack/_internal/core/backends/digitalocean/backend.py +16 -0
  14. dstack/_internal/core/backends/digitalocean/compute.py +5 -0
  15. dstack/_internal/core/backends/digitalocean/configurator.py +31 -0
  16. dstack/_internal/core/backends/digitalocean_base/__init__.py +1 -0
  17. dstack/_internal/core/backends/digitalocean_base/api_client.py +104 -0
  18. dstack/_internal/core/backends/digitalocean_base/backend.py +5 -0
  19. dstack/_internal/core/backends/digitalocean_base/compute.py +173 -0
  20. dstack/_internal/core/backends/digitalocean_base/configurator.py +57 -0
  21. dstack/_internal/core/backends/digitalocean_base/models.py +43 -0
  22. dstack/_internal/core/backends/gcp/compute.py +32 -8
  23. dstack/_internal/core/backends/hotaisle/api_client.py +25 -33
  24. dstack/_internal/core/backends/hotaisle/compute.py +1 -6
  25. dstack/_internal/core/backends/models.py +7 -0
  26. dstack/_internal/core/backends/nebius/compute.py +0 -7
  27. dstack/_internal/core/backends/oci/compute.py +4 -5
  28. dstack/_internal/core/backends/vultr/compute.py +1 -5
  29. dstack/_internal/core/compatibility/fleets.py +5 -0
  30. dstack/_internal/core/compatibility/runs.py +8 -1
  31. dstack/_internal/core/models/backends/base.py +5 -1
  32. dstack/_internal/core/models/configurations.py +21 -7
  33. dstack/_internal/core/models/files.py +1 -1
  34. dstack/_internal/core/models/fleets.py +75 -2
  35. dstack/_internal/core/models/runs.py +24 -5
  36. dstack/_internal/core/services/repos.py +85 -80
  37. dstack/_internal/server/background/tasks/process_fleets.py +109 -13
  38. dstack/_internal/server/background/tasks/process_instances.py +12 -71
  39. dstack/_internal/server/background/tasks/process_running_jobs.py +2 -0
  40. dstack/_internal/server/background/tasks/process_runs.py +2 -0
  41. dstack/_internal/server/background/tasks/process_submitted_jobs.py +18 -6
  42. dstack/_internal/server/migrations/versions/2498ab323443_add_fleetmodel_consolidation_attempt_.py +44 -0
  43. dstack/_internal/server/models.py +5 -2
  44. dstack/_internal/server/schemas/runner.py +1 -0
  45. dstack/_internal/server/services/fleets.py +23 -25
  46. dstack/_internal/server/services/instances.py +3 -3
  47. dstack/_internal/server/services/jobs/configurators/base.py +46 -6
  48. dstack/_internal/server/services/jobs/configurators/dev.py +4 -4
  49. dstack/_internal/server/services/jobs/configurators/extensions/cursor.py +3 -5
  50. dstack/_internal/server/services/jobs/configurators/extensions/vscode.py +4 -6
  51. dstack/_internal/server/services/jobs/configurators/service.py +0 -3
  52. dstack/_internal/server/services/jobs/configurators/task.py +0 -3
  53. dstack/_internal/server/services/runs.py +16 -0
  54. dstack/_internal/server/statics/index.html +1 -1
  55. dstack/_internal/server/statics/{main-d151b300fcac3933213d.js → main-4eecc75fbe64067eb1bc.js} +1146 -899
  56. dstack/_internal/server/statics/{main-d151b300fcac3933213d.js.map → main-4eecc75fbe64067eb1bc.js.map} +1 -1
  57. dstack/_internal/server/statics/{main-aec4762350e34d6fbff9.css → main-56191c63d516fd0041c4.css} +1 -1
  58. dstack/_internal/server/testing/common.py +6 -3
  59. dstack/_internal/utils/path.py +8 -1
  60. dstack/_internal/utils/ssh.py +7 -0
  61. dstack/api/_public/repos.py +41 -6
  62. dstack/api/_public/runs.py +14 -1
  63. dstack/version.py +1 -1
  64. {dstack-0.19.26.dist-info → dstack-0.19.27.dist-info}/METADATA +2 -2
  65. {dstack-0.19.26.dist-info → dstack-0.19.27.dist-info}/RECORD +68 -53
  66. {dstack-0.19.26.dist-info → dstack-0.19.27.dist-info}/WHEEL +0 -0
  67. {dstack-0.19.26.dist-info → dstack-0.19.27.dist-info}/entry_points.txt +0 -0
  68. {dstack-0.19.26.dist-info → dstack-0.19.27.dist-info}/licenses/LICENSE.md +0 -0
@@ -89426,6 +89426,1109 @@ function src_Spinner(_a) {
89426
89426
  }
89427
89427
  src_applyDisplayName(src_Spinner, 'Spinner');
89428
89428
  //# sourceMappingURL=index.js.map
89429
+ ;// ./node_modules/@cloudscape-design/components/internal/hooks/use-mouse-down-target.js
89430
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
89431
+ // SPDX-License-Identifier: Apache-2.0
89432
+
89433
+
89434
+ const src_useEventListenersSingleton = src_createSingletonHandler(setTarget => {
89435
+ function handleMouseDown(event) {
89436
+ setTarget(event.target);
89437
+ }
89438
+ function handleKeyDown() {
89439
+ setTarget(null);
89440
+ }
89441
+ window.addEventListener('mousedown', handleMouseDown);
89442
+ window.addEventListener('keydown', handleKeyDown);
89443
+ return () => {
89444
+ window.removeEventListener('mousedown', handleMouseDown);
89445
+ window.removeEventListener('keydown', handleKeyDown);
89446
+ };
89447
+ });
89448
+ /**
89449
+ * Captures last mouse down target and clears it on keydown.
89450
+ * @returns a callback to get the last detected mouse down target.
89451
+ */
89452
+ function src_useMouseDownTarget() {
89453
+ const mouseDownTargetRef = (0,src_react.useRef)(null);
89454
+ src_useEventListenersSingleton(target => {
89455
+ mouseDownTargetRef.current = target;
89456
+ });
89457
+ return () => mouseDownTargetRef.current;
89458
+ }
89459
+ //# sourceMappingURL=use-mouse-down-target.js.map
89460
+ ;// ./node_modules/@cloudscape-design/components/status-indicator/styles.scoped.css
89461
+ // extracted by mini-css-extract-plugin
89462
+
89463
+ ;// ./node_modules/@cloudscape-design/components/status-indicator/styles.css.js
89464
+
89465
+
89466
+ /* harmony default export */ const src_status_indicator_styles_css = ({
89467
+ "icon-shake": "awsui_icon-shake_1cbgc_1n36j_153",
89468
+ "awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-horizontally_1cbgc_1n36j_1",
89469
+ "container-fade-in": "awsui_container-fade-in_1cbgc_1n36j_181",
89470
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1cbgc_1n36j_1",
89471
+ "root": "awsui_root_1cbgc_1n36j_203",
89472
+ "status-error": "awsui_status-error_1cbgc_1n36j_212",
89473
+ "status-warning": "awsui_status-warning_1cbgc_1n36j_215",
89474
+ "status-success": "awsui_status-success_1cbgc_1n36j_218",
89475
+ "status-info": "awsui_status-info_1cbgc_1n36j_221",
89476
+ "status-stopped": "awsui_status-stopped_1cbgc_1n36j_224",
89477
+ "status-pending": "awsui_status-pending_1cbgc_1n36j_227",
89478
+ "status-in-progress": "awsui_status-in-progress_1cbgc_1n36j_230",
89479
+ "status-loading": "awsui_status-loading_1cbgc_1n36j_233",
89480
+ "color-override-red": "awsui_color-override-red_1cbgc_1n36j_236",
89481
+ "color-override-grey": "awsui_color-override-grey_1cbgc_1n36j_239",
89482
+ "color-override-blue": "awsui_color-override-blue_1cbgc_1n36j_242",
89483
+ "color-override-green": "awsui_color-override-green_1cbgc_1n36j_245",
89484
+ "color-override-yellow": "awsui_color-override-yellow_1cbgc_1n36j_248",
89485
+ "container": "awsui_container_1cbgc_1n36j_181",
89486
+ "display-inline": "awsui_display-inline_1cbgc_1n36j_252",
89487
+ "icon": "awsui_icon_1cbgc_1n36j_153",
89488
+ "display-inline-block": "awsui_display-inline-block_1cbgc_1n36j_260",
89489
+ "overflow-ellipsis": "awsui_overflow-ellipsis_1cbgc_1n36j_269"
89490
+ });
89491
+
89492
+ ;// ./node_modules/@cloudscape-design/components/status-indicator/internal.js
89493
+
89494
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
89495
+ // SPDX-License-Identifier: Apache-2.0
89496
+
89497
+
89498
+
89499
+
89500
+
89501
+
89502
+ const src_typeToIcon = size => ({
89503
+ error: src_react.createElement(src_internal, { name: "status-negative", size: size }),
89504
+ warning: src_react.createElement(src_internal, { name: "status-warning", size: size }),
89505
+ success: src_react.createElement(src_internal, { name: "status-positive", size: size }),
89506
+ info: src_react.createElement(src_internal, { name: "status-info", size: size }),
89507
+ stopped: src_react.createElement(src_internal, { name: "status-stopped", size: size }),
89508
+ pending: src_react.createElement(src_internal, { name: "status-pending", size: size }),
89509
+ 'in-progress': src_react.createElement(src_internal, { name: "status-in-progress", size: size }),
89510
+ loading: src_react.createElement(src_InternalSpinner, null),
89511
+ });
89512
+ function src_internal_StatusIndicator(_a) {
89513
+ var { type, children, iconAriaLabel, colorOverride, wrapText = true, __animate = false, __internalRootRef, __size = 'normal', __display = 'inline-block' } = _a, rest = src_rest(_a, ["type", "children", "iconAriaLabel", "colorOverride", "wrapText", "__animate", "__internalRootRef", "__size", "__display"]);
89514
+ const baseProps = src_getBaseProps(rest);
89515
+ return (src_react.createElement("span", Object.assign({}, baseProps, { className: src_clsx_m(src_status_indicator_styles_css.root, src_status_indicator_styles_css[`status-${type}`], {
89516
+ [src_status_indicator_styles_css[`color-override-${colorOverride}`]]: colorOverride,
89517
+ }, baseProps.className), ref: __internalRootRef }),
89518
+ src_react.createElement("span", { className: src_clsx_m(src_status_indicator_styles_css.container, src_status_indicator_styles_css[`display-${__display}`], wrapText === false && src_status_indicator_styles_css['overflow-ellipsis'], __animate && src_status_indicator_styles_css['container-fade-in']) },
89519
+ src_react.createElement("span", { className: src_clsx_m(src_status_indicator_styles_css.icon, __animate && src_status_indicator_styles_css['icon-shake']), "aria-label": iconAriaLabel, role: iconAriaLabel ? 'img' : undefined },
89520
+ src_typeToIcon(__size)[type],
89521
+ __display === 'inline' && src_react.createElement(src_react.Fragment, null, "\u00A0")),
89522
+ children)));
89523
+ }
89524
+ //# sourceMappingURL=internal.js.map
89525
+ ;// ./node_modules/@cloudscape-design/components/table/utils.js
89526
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
89527
+ // SPDX-License-Identifier: Apache-2.0
89528
+
89529
+ const src_applyTrackBy = (trackBy, item) => {
89530
+ if (typeof trackBy === 'function') {
89531
+ return trackBy(item);
89532
+ }
89533
+ return item[trackBy];
89534
+ };
89535
+ const src_getItemKey = (trackBy, item, index) => {
89536
+ if (!trackBy) {
89537
+ return index;
89538
+ }
89539
+ return src_applyTrackBy(trackBy, item);
89540
+ };
89541
+ const src_getTrackableValue = (trackBy, item) => {
89542
+ if (!trackBy) {
89543
+ return item;
89544
+ }
89545
+ return src_applyTrackBy(trackBy, item);
89546
+ };
89547
+ const src_getColumnKey = (column, index) => {
89548
+ return column.id || index;
89549
+ };
89550
+ const src_toContainerVariant = (variant) => {
89551
+ const isDefaultVariant = !variant || variant === 'container';
89552
+ return isDefaultVariant ? 'default' : variant === 'borderless' ? 'embedded' : variant;
89553
+ };
89554
+ function src_checkSortingState(columnDefinitions, sortingComparator) {
89555
+ const matchedColumn = columnDefinitions.filter(column => column.sortingComparator === sortingComparator)[0];
89556
+ if (!matchedColumn) {
89557
+ src_logging_warnOnce('Table', 'Currently active sorting comparator was not found in any columns. Make sure to provide the same comparator function instance on each render.');
89558
+ }
89559
+ }
89560
+ function src_getVisibleColumnDefinitions({ columnDisplay, visibleColumns, columnDefinitions, }) {
89561
+ // columnsDisplay has a precedence over visibleColumns.
89562
+ if (columnDisplay) {
89563
+ return src_getVisibleColumnDefinitionsFromColumnDisplay({ columnDisplay, columnDefinitions });
89564
+ }
89565
+ else if (visibleColumns) {
89566
+ return src_getVisibleColumnDefinitionsFromVisibleColumns({ visibleColumns, columnDefinitions });
89567
+ }
89568
+ else {
89569
+ return columnDefinitions;
89570
+ }
89571
+ }
89572
+ function src_getVisibleColumnDefinitionsFromColumnDisplay({ columnDisplay, columnDefinitions, }) {
89573
+ const columnDefinitionsById = columnDefinitions.reduce((accumulator, item) => (item.id === undefined ? accumulator : Object.assign(Object.assign({}, accumulator), { [item.id]: item })), {});
89574
+ return columnDisplay
89575
+ .filter(item => item.visible)
89576
+ .map(item => columnDefinitionsById[item.id])
89577
+ .filter(Boolean);
89578
+ }
89579
+ function src_getVisibleColumnDefinitionsFromVisibleColumns({ visibleColumns, columnDefinitions, }) {
89580
+ const ids = new Set(visibleColumns);
89581
+ return columnDefinitions.filter(({ id }) => id !== undefined && ids.has(id));
89582
+ }
89583
+ function src_getStickyClassNames(styles, props) {
89584
+ return {
89585
+ [styles['sticky-cell']]: !!props,
89586
+ [styles['sticky-cell-pad-inline-start']]: !!(props === null || props === void 0 ? void 0 : props.padInlineStart),
89587
+ [styles['sticky-cell-last-inline-start']]: !!(props === null || props === void 0 ? void 0 : props.lastInsetInlineStart),
89588
+ [styles['sticky-cell-last-inline-end']]: !!(props === null || props === void 0 ? void 0 : props.lastInsetInlineEnd),
89589
+ };
89590
+ }
89591
+ //# sourceMappingURL=utils.js.map
89592
+ ;// ./node_modules/@cloudscape-design/components/table/selection/utils.js
89593
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
89594
+ // SPDX-License-Identifier: Apache-2.0
89595
+
89596
+ const src_SELECTION_ITEM = 'selection-item';
89597
+ const src_SELECTION_ROOT = 'selection-root';
89598
+ // A set, that compares items by their "trackables" (the results of applying `trackBy` to them)
89599
+ class src_ItemSet {
89600
+ constructor(trackBy, items) {
89601
+ this.map = new Map();
89602
+ this.put = (item) => this.map.set.call(this.map, src_getTrackableValue(this.trackBy, item), item);
89603
+ this.has = (item) => this.map.has.call(this.map, src_getTrackableValue(this.trackBy, item));
89604
+ this.forEach = this.map.forEach.bind(this.map);
89605
+ this.trackBy = trackBy;
89606
+ items.forEach(this.put);
89607
+ }
89608
+ }
89609
+ const src_focusMarkers = {
89610
+ item: { ['data-' + src_SELECTION_ITEM]: 'item' },
89611
+ all: { ['data-' + src_SELECTION_ITEM]: 'all' },
89612
+ root: { ['data-' + src_SELECTION_ROOT]: 'true' },
89613
+ };
89614
+ //# sourceMappingURL=utils.js.map
89615
+ ;// ./node_modules/@cloudscape-design/components/table/selection/use-selection.js
89616
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
89617
+ // SPDX-License-Identifier: Apache-2.0
89618
+
89619
+
89620
+
89621
+
89622
+
89623
+
89624
+ function src_useSelection(options) {
89625
+ const singleSelectionProps = src_useSingleSelection(options);
89626
+ const multiSelectionProps = src_useMultiSelection(options);
89627
+ return options.selectionType === 'single' ? singleSelectionProps : multiSelectionProps;
89628
+ }
89629
+ function src_useSingleSelection({ ariaLabels, isItemDisabled = () => false, onSelectionChange, selectedItems = [], selectionType, trackBy, }) {
89630
+ // The name assigned to all controls to combine them in a single group.
89631
+ const selectionControlName = src_useUniqueId();
89632
+ if (selectionType !== 'single') {
89633
+ return { isItemSelected: () => false };
89634
+ }
89635
+ // Selection state for individual items.
89636
+ const selectedSet = new src_ItemSet(trackBy, selectedItems.slice(0, 1));
89637
+ const isItemSelected = selectedSet.has.bind(selectedSet);
89638
+ const handleToggleItem = (item) => {
89639
+ if (!isItemDisabled(item) && !isItemSelected(item)) {
89640
+ src_fireNonCancelableEvent(onSelectionChange, { selectedItems: [item] });
89641
+ }
89642
+ };
89643
+ return {
89644
+ isItemSelected,
89645
+ getItemSelectionProps: (item) => {
89646
+ var _a;
89647
+ return ({
89648
+ name: selectionControlName,
89649
+ selectionType: 'single',
89650
+ disabled: isItemDisabled(item),
89651
+ checked: isItemSelected(item),
89652
+ onChange: () => handleToggleItem(item),
89653
+ ariaLabel: src_joinStrings(ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.selectionGroupLabel, (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.itemSelectionLabel) === null || _a === void 0 ? void 0 : _a.call(ariaLabels, { selectedItems }, item)),
89654
+ });
89655
+ },
89656
+ };
89657
+ }
89658
+ function src_useMultiSelection({ ariaLabels, isItemDisabled = () => false, items, loading, onSelectionChange, selectedItems = [], selectionType, trackBy, }) {
89659
+ // The name assigned to all controls to combine them in a single group.
89660
+ const selectionControlName = src_useUniqueId();
89661
+ const [shiftPressed, setShiftPressed] = (0,src_react.useState)(false);
89662
+ const [lastClickedItem, setLastClickedItem] = (0,src_react.useState)(null);
89663
+ if (selectionType !== 'multi') {
89664
+ return { isItemSelected: () => false };
89665
+ }
89666
+ // Selection state for individual items.
89667
+ const selectedSet = new src_ItemSet(trackBy, selectedItems);
89668
+ const isItemSelected = selectedSet.has.bind(selectedSet);
89669
+ // Derived selection state for all-items checkbox.
89670
+ let allItemsDisabled = true;
89671
+ let allEnabledItemsSelected = true;
89672
+ for (const item of items) {
89673
+ allItemsDisabled = allItemsDisabled && isItemDisabled(item);
89674
+ allEnabledItemsSelected = allEnabledItemsSelected && (isItemSelected(item) || isItemDisabled(item));
89675
+ }
89676
+ const allItemsCheckboxSelected = selectedItems.length > 0 && allEnabledItemsSelected;
89677
+ const allItemsCheckboxIndeterminate = selectedItems.length > 0 && !allEnabledItemsSelected;
89678
+ // Shift-selection helpers.
89679
+ const itemIndexesMap = new Map();
89680
+ items.forEach((item, i) => itemIndexesMap.set(src_getTrackableValue(trackBy, item), i));
89681
+ const getShiftSelectedItems = (item) => {
89682
+ const lastClickedItemIndex = lastClickedItem
89683
+ ? itemIndexesMap.get(src_getTrackableValue(trackBy, lastClickedItem))
89684
+ : undefined;
89685
+ // We use lastClickedItemIndex to determine if filtering/sorting/pagination
89686
+ // made previously selected item invisible, therefore we reset state for shift-select.
89687
+ if (lastClickedItemIndex !== undefined) {
89688
+ const currentItemIndex = itemIndexesMap.get(src_getTrackableValue(trackBy, item));
89689
+ const start = Math.min(currentItemIndex, lastClickedItemIndex);
89690
+ const end = Math.max(currentItemIndex, lastClickedItemIndex);
89691
+ return items.slice(start, end + 1);
89692
+ }
89693
+ return [item];
89694
+ };
89695
+ // Select items that are not already selected or disabled.
89696
+ const selectItems = (requestedItems) => {
89697
+ const newSelectedItems = [...selectedItems];
89698
+ requestedItems.forEach(newItem => {
89699
+ if (!isItemSelected(newItem) && !isItemDisabled(newItem)) {
89700
+ newSelectedItems.push(newItem);
89701
+ }
89702
+ });
89703
+ return newSelectedItems;
89704
+ };
89705
+ // Unselect items unless they are disabled.
89706
+ const deselectItems = (requestedItems) => {
89707
+ const requestedItemsSet = new src_ItemSet(trackBy, requestedItems);
89708
+ const newSelectedItems = [];
89709
+ selectedItems.forEach(selectedItem => {
89710
+ const shouldUnselect = requestedItemsSet.has(selectedItem);
89711
+ if (!shouldUnselect || isItemDisabled(selectedItem)) {
89712
+ newSelectedItems.push(selectedItem);
89713
+ }
89714
+ });
89715
+ return newSelectedItems;
89716
+ };
89717
+ const handleToggleAll = () => {
89718
+ const newSelectedItems = allEnabledItemsSelected ? deselectItems(items) : selectItems(items);
89719
+ src_fireNonCancelableEvent(onSelectionChange, { selectedItems: newSelectedItems });
89720
+ };
89721
+ const handleToggleItem = (item) => {
89722
+ if (!isItemDisabled(item)) {
89723
+ const requestedItems = shiftPressed ? getShiftSelectedItems(item) : [item];
89724
+ const selectedItems = isItemSelected(item) ? deselectItems(requestedItems) : selectItems(requestedItems);
89725
+ src_fireNonCancelableEvent(onSelectionChange, { selectedItems });
89726
+ setLastClickedItem(item);
89727
+ }
89728
+ };
89729
+ return {
89730
+ isItemSelected,
89731
+ getSelectAllProps: () => {
89732
+ var _a;
89733
+ return ({
89734
+ name: selectionControlName,
89735
+ selectionType: 'multi',
89736
+ disabled: allItemsDisabled || !!loading,
89737
+ checked: allItemsCheckboxSelected,
89738
+ indeterminate: allItemsCheckboxIndeterminate,
89739
+ onChange: handleToggleAll,
89740
+ ariaLabel: src_joinStrings(ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.selectionGroupLabel, (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.allItemsSelectionLabel) === null || _a === void 0 ? void 0 : _a.call(ariaLabels, { selectedItems })),
89741
+ selectionGroupLabel: ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.selectionGroupLabel,
89742
+ });
89743
+ },
89744
+ getItemSelectionProps: (item) => {
89745
+ var _a;
89746
+ return ({
89747
+ name: selectionControlName,
89748
+ selectionType: 'multi',
89749
+ disabled: isItemDisabled(item),
89750
+ checked: isItemSelected(item),
89751
+ onChange: () => handleToggleItem(item),
89752
+ onShiftToggle: (value) => setShiftPressed(value),
89753
+ ariaLabel: src_joinStrings(ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.selectionGroupLabel, (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.itemSelectionLabel) === null || _a === void 0 ? void 0 : _a.call(ariaLabels, { selectedItems }, item)),
89754
+ });
89755
+ },
89756
+ };
89757
+ }
89758
+ //# sourceMappingURL=use-selection.js.map
89759
+ ;// ./node_modules/@cloudscape-design/components/table/selection/styles.scoped.css
89760
+ // extracted by mini-css-extract-plugin
89761
+
89762
+ ;// ./node_modules/@cloudscape-design/components/table/selection/styles.css.js
89763
+
89764
+
89765
+ /* harmony default export */ const src_selection_styles_css = ({
89766
+ "root": "awsui_root_1s55x_1sxg8_145",
89767
+ "label": "awsui_label_1s55x_1sxg8_149",
89768
+ "stud": "awsui_stud_1s55x_1sxg8_163"
89769
+ });
89770
+
89771
+ ;// ./node_modules/@cloudscape-design/components/table/selection/use-selection-focus-move.js
89772
+
89773
+
89774
+
89775
+ // The hooks moves focus between multi-selection checkboxes.
89776
+ // Not eligible for tables with grid navigation.
89777
+ function src_useSelectionFocusMove(selectionType, totalItems) {
89778
+ if (selectionType !== 'multi') {
89779
+ return {};
89780
+ }
89781
+ function moveFocus(sourceElement, fromIndex, direction) {
89782
+ let index = fromIndex;
89783
+ const rootContainer = src_findRootContainer(sourceElement);
89784
+ while (index >= -1 && index < totalItems) {
89785
+ index += direction;
89786
+ const control = src_findSelectionControlByIndex(rootContainer, index);
89787
+ if (control && !control.disabled) {
89788
+ control.focus();
89789
+ break;
89790
+ }
89791
+ }
89792
+ }
89793
+ const [moveFocusDown, moveFocusUp] = [1, -1].map(direction => {
89794
+ return (event) => {
89795
+ const target = event.currentTarget;
89796
+ const itemNode = src_findUpUntil(target, node => node.dataset.selectionItem === 'item');
89797
+ const fromIndex = Array.prototype.indexOf.call(itemNode.parentElement.children, itemNode);
89798
+ moveFocus(target, fromIndex, direction);
89799
+ };
89800
+ });
89801
+ return {
89802
+ moveFocusDown,
89803
+ moveFocusUp,
89804
+ moveFocus,
89805
+ };
89806
+ }
89807
+ function src_findSelectionControlByIndex(rootContainer, index) {
89808
+ if (index === -1) {
89809
+ // find "select all" checkbox
89810
+ return rootContainer.querySelector(`[data-${src_SELECTION_ITEM}="all"] .${src_selection_styles_css.root} input`);
89811
+ }
89812
+ return rootContainer.querySelectorAll(`[data-${src_SELECTION_ITEM}="item"] .${src_selection_styles_css.root} input`)[index];
89813
+ }
89814
+ function src_findRootContainer(element) {
89815
+ return src_findUpUntil(element, node => node.dataset.selectionRoot === 'true');
89816
+ }
89817
+ //# sourceMappingURL=use-selection-focus-move.js.map
89818
+ ;// ./node_modules/@cloudscape-design/components/internal/components/abstract-switch/analytics-metadata/styles.scoped.css
89819
+ // extracted by mini-css-extract-plugin
89820
+
89821
+ ;// ./node_modules/@cloudscape-design/components/internal/components/abstract-switch/analytics-metadata/styles.css.js
89822
+
89823
+
89824
+ /* harmony default export */ const src_abstract_switch_analytics_metadata_styles_css = ({
89825
+ "label": "awsui_label_13tpe_9w8pd_5",
89826
+ "native-input": "awsui_native-input_13tpe_9w8pd_6"
89827
+ });
89828
+
89829
+ ;// ./node_modules/@cloudscape-design/components/internal/components/abstract-switch/styles.scoped.css
89830
+ // extracted by mini-css-extract-plugin
89831
+
89832
+ ;// ./node_modules/@cloudscape-design/components/internal/components/abstract-switch/styles.css.js
89833
+
89834
+
89835
+ /* harmony default export */ const src_abstract_switch_styles_css = ({
89836
+ "content": "awsui_content_1wepg_1qvhh_145",
89837
+ "description": "awsui_description_1wepg_1qvhh_146",
89838
+ "label": "awsui_label_1wepg_1qvhh_147",
89839
+ "outline": "awsui_outline_1wepg_1qvhh_155",
89840
+ "show-outline": "awsui_show-outline_1wepg_1qvhh_158",
89841
+ "native-input": "awsui_native-input_1wepg_1qvhh_162",
89842
+ "wrapper": "awsui_wrapper_1wepg_1qvhh_166",
89843
+ "label-wrapper": "awsui_label-wrapper_1wepg_1qvhh_172",
89844
+ "empty-content": "awsui_empty-content_1wepg_1qvhh_183",
89845
+ "description-bottom-padding": "awsui_description-bottom-padding_1wepg_1qvhh_193",
89846
+ "label-disabled": "awsui_label-disabled_1wepg_1qvhh_201",
89847
+ "description-disabled": "awsui_description-disabled_1wepg_1qvhh_202",
89848
+ "control": "awsui_control_1wepg_1qvhh_206"
89849
+ });
89850
+
89851
+ ;// ./node_modules/@cloudscape-design/components/internal/components/abstract-switch/index.js
89852
+
89853
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
89854
+ // SPDX-License-Identifier: Apache-2.0
89855
+
89856
+
89857
+
89858
+
89859
+
89860
+
89861
+ function src_joinString(values) {
89862
+ return values.filter((value) => !!value).join(' ');
89863
+ }
89864
+ function src_AbstractSwitch(_a) {
89865
+ var { controlId, controlClassName, outlineClassName, showOutline, disabled, readOnly, nativeControl, styledControl, label, description, descriptionBottomPadding, ariaLabel, ariaLabelledby, ariaDescribedby, ariaControls, onClick, __internalRootRef } = _a, rest = src_rest(_a, ["controlId", "controlClassName", "outlineClassName", "showOutline", "disabled", "readOnly", "nativeControl", "styledControl", "label", "description", "descriptionBottomPadding", "ariaLabel", "ariaLabelledby", "ariaDescribedby", "ariaControls", "onClick", "__internalRootRef"]);
89866
+ const uniqueId = src_useUniqueId();
89867
+ const id = controlId || uniqueId;
89868
+ const labelId = `${id}-label`;
89869
+ const descriptionId = `${id}-description`;
89870
+ const ariaLabelledByIds = [];
89871
+ if (label && !ariaLabel) {
89872
+ ariaLabelledByIds.push(labelId);
89873
+ }
89874
+ if (ariaLabelledby) {
89875
+ ariaLabelledByIds.push(ariaLabelledby);
89876
+ }
89877
+ const ariaDescriptions = [];
89878
+ if (ariaDescribedby) {
89879
+ ariaDescriptions.push(ariaDescribedby);
89880
+ }
89881
+ if (description) {
89882
+ ariaDescriptions.push(descriptionId);
89883
+ }
89884
+ return (src_react.createElement("span", Object.assign({}, rest, { className: src_clsx_m(src_abstract_switch_styles_css.wrapper, rest.className), ref: __internalRootRef }, src_getAnalyticsLabelAttribute(label ? `.${src_abstract_switch_analytics_metadata_styles_css.label}` : `.${src_abstract_switch_analytics_metadata_styles_css['native-input']}`)),
89885
+ src_react.createElement("span", Object.assign({ className: src_abstract_switch_styles_css['label-wrapper'], "aria-disabled": disabled ? 'true' : undefined, onClick: disabled || readOnly ? undefined : onClick }, src_getAnalyticsMetadataAttribute(disabled || readOnly
89886
+ ? {}
89887
+ : {
89888
+ action: 'select',
89889
+ detail: {
89890
+ label: label ? `.${src_abstract_switch_analytics_metadata_styles_css.label}` : `.${src_abstract_switch_analytics_metadata_styles_css['native-input']}`,
89891
+ },
89892
+ })),
89893
+ src_react.createElement("span", { className: src_clsx_m(src_abstract_switch_styles_css.control, controlClassName) },
89894
+ styledControl,
89895
+ nativeControl({
89896
+ id,
89897
+ disabled,
89898
+ className: src_clsx_m(src_abstract_switch_styles_css['native-input'], src_abstract_switch_analytics_metadata_styles_css['native-input']),
89899
+ 'aria-describedby': ariaDescriptions.length ? src_joinString(ariaDescriptions) : undefined,
89900
+ 'aria-labelledby': ariaLabelledByIds.length ? src_joinString(ariaLabelledByIds) : undefined,
89901
+ 'aria-label': ariaLabel,
89902
+ 'aria-controls': ariaControls,
89903
+ }),
89904
+ src_react.createElement("span", { className: src_clsx_m(src_abstract_switch_styles_css.outline, outlineClassName, showOutline && src_abstract_switch_styles_css['show-outline']) })),
89905
+ src_react.createElement("span", { className: src_clsx_m(src_abstract_switch_styles_css.content, !label && !description && src_abstract_switch_styles_css['empty-content']) },
89906
+ label && (src_react.createElement("span", { id: labelId, className: src_clsx_m(src_abstract_switch_styles_css.label, src_abstract_switch_analytics_metadata_styles_css.label, { [src_abstract_switch_styles_css['label-disabled']]: disabled }) }, label)),
89907
+ description && (src_react.createElement("span", { id: descriptionId, className: src_clsx_m(src_abstract_switch_styles_css.description, {
89908
+ [src_abstract_switch_styles_css['description-disabled']]: disabled,
89909
+ [src_abstract_switch_styles_css['description-bottom-padding']]: descriptionBottomPadding,
89910
+ }) }, description))))));
89911
+ }
89912
+ //# sourceMappingURL=index.js.map
89913
+ ;// ./node_modules/@cloudscape-design/components/internal/components/checkbox-icon/styles.scoped.css
89914
+ // extracted by mini-css-extract-plugin
89915
+
89916
+ ;// ./node_modules/@cloudscape-design/components/internal/components/checkbox-icon/styles.css.js
89917
+
89918
+
89919
+ /* harmony default export */ const src_checkbox_icon_styles_css = ({
89920
+ "root": "awsui_root_1fn7j_cme8a_145",
89921
+ "styled-box": "awsui_styled-box_1fn7j_cme8a_152",
89922
+ "styled-box-checked": "awsui_styled-box-checked_1fn7j_cme8a_168",
89923
+ "styled-box-indeterminate": "awsui_styled-box-indeterminate_1fn7j_cme8a_168",
89924
+ "styled-box-disabled": "awsui_styled-box-disabled_1fn7j_cme8a_172",
89925
+ "styled-box-readonly": "awsui_styled-box-readonly_1fn7j_cme8a_172",
89926
+ "styled-line": "awsui_styled-line_1fn7j_cme8a_176",
89927
+ "styled-line-disabled": "awsui_styled-line-disabled_1fn7j_cme8a_181",
89928
+ "styled-line-readonly": "awsui_styled-line-readonly_1fn7j_cme8a_184"
89929
+ });
89930
+
89931
+ ;// ./node_modules/@cloudscape-design/components/internal/components/checkbox-icon/index.js
89932
+
89933
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
89934
+ // SPDX-License-Identifier: Apache-2.0
89935
+
89936
+
89937
+
89938
+
89939
+
89940
+ // Can't use css variables for svg attributes
89941
+ const src_dimensionsByTheme = {
89942
+ default: {
89943
+ viewBox: '0 0 14 14',
89944
+ indeterminate: '2.5,7 11.5,7',
89945
+ checked: '2.5,7 6,10 11,3',
89946
+ xy: 0.5,
89947
+ r: 1.5,
89948
+ size: 13,
89949
+ },
89950
+ refresh: {
89951
+ viewBox: '0 0 16 16',
89952
+ indeterminate: '3.5,8 12.5,8',
89953
+ checked: '3.5,8 7,11 12,4',
89954
+ xy: 1,
89955
+ r: 2,
89956
+ size: 14,
89957
+ },
89958
+ };
89959
+ const src_CheckboxIcon = (_a) => {
89960
+ var { checked, indeterminate, disabled = false, readOnly = false } = _a, restProps = src_rest(_a, ["checked", "indeterminate", "disabled", "readOnly"]);
89961
+ const baseProps = src_getBaseProps(restProps);
89962
+ const theme = src_useVisualRefresh() ? 'refresh' : 'default';
89963
+ const dimensions = src_dimensionsByTheme[theme];
89964
+ return (src_react.createElement("svg", Object.assign({ className: src_checkbox_icon_styles_css.root, viewBox: dimensions.viewBox, "aria-hidden": "true", focusable: "false" }, baseProps),
89965
+ src_react.createElement("rect", { className: src_clsx_m(src_checkbox_icon_styles_css['styled-box'], {
89966
+ [src_checkbox_icon_styles_css['styled-box-checked']]: checked,
89967
+ [src_checkbox_icon_styles_css['styled-box-indeterminate']]: indeterminate,
89968
+ [src_checkbox_icon_styles_css['styled-box-disabled']]: disabled,
89969
+ [src_checkbox_icon_styles_css['styled-box-readonly']]: readOnly,
89970
+ }), x: dimensions.xy, y: dimensions.xy, rx: dimensions.r, ry: dimensions.r, width: dimensions.size, height: dimensions.size }),
89971
+ checked || indeterminate ? (src_react.createElement("polyline", { className: src_clsx_m(src_checkbox_icon_styles_css['styled-line'], {
89972
+ [src_checkbox_icon_styles_css['styled-line-disabled']]: disabled,
89973
+ [src_checkbox_icon_styles_css['styled-line-readonly']]: readOnly,
89974
+ }), points: indeterminate ? dimensions.indeterminate : dimensions.checked })) : null));
89975
+ };
89976
+ /* harmony default export */ const src_checkbox_icon = (src_CheckboxIcon);
89977
+ //# sourceMappingURL=index.js.map
89978
+ ;// ./node_modules/@cloudscape-design/components/internal/context/form-field-context.js
89979
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
89980
+ // SPDX-License-Identifier: Apache-2.0
89981
+
89982
+ const src_FormFieldContext = (0,src_react.createContext)({});
89983
+ function src_applyDefault(fields, defaults, keys) {
89984
+ const result = {};
89985
+ keys.forEach(key => {
89986
+ result[key] = fields[key] === undefined ? defaults[key] : fields[key];
89987
+ });
89988
+ return result;
89989
+ }
89990
+ function src_useFormFieldContext(props) {
89991
+ const context = (0,src_react.useContext)(src_FormFieldContext);
89992
+ return src_applyDefault(props, context, ['invalid', 'warning', 'controlId', 'ariaLabelledby', 'ariaDescribedby']);
89993
+ }
89994
+ //# sourceMappingURL=form-field-context.js.map
89995
+ ;// ./node_modules/@cloudscape-design/components/checkbox/styles.scoped.css
89996
+ // extracted by mini-css-extract-plugin
89997
+
89998
+ ;// ./node_modules/@cloudscape-design/components/checkbox/styles.css.js
89999
+
90000
+
90001
+ /* harmony default export */ const src_checkbox_styles_css = ({
90002
+ "root": "awsui_root_k2y2q_71dt1_145",
90003
+ "checkbox-control": "awsui_checkbox-control_k2y2q_71dt1_178",
90004
+ "outline": "awsui_outline_k2y2q_71dt1_186"
90005
+ });
90006
+
90007
+ ;// ./node_modules/@cloudscape-design/components/checkbox/internal.js
90008
+
90009
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
90010
+ // SPDX-License-Identifier: Apache-2.0
90011
+
90012
+
90013
+
90014
+
90015
+
90016
+
90017
+
90018
+
90019
+
90020
+
90021
+
90022
+ const src_InternalCheckbox = src_react.forwardRef((_a, ref) => {
90023
+ var { controlId, name, checked, disabled, readOnly, ariaRequired, indeterminate, children, description, ariaLabel, onFocus, onBlur, onChange, tabIndex: explicitTabIndex, showOutline, ariaControls, __internalRootRef, __injectAnalyticsComponentMetadata = false } = _a, rest = src_rest(_a, ["controlId", "name", "checked", "disabled", "readOnly", "ariaRequired", "indeterminate", "children", "description", "ariaLabel", "onFocus", "onBlur", "onChange", "tabIndex", "showOutline", "ariaControls", "__internalRootRef", "__injectAnalyticsComponentMetadata"]);
90024
+ const { ariaDescribedby, ariaLabelledby } = src_useFormFieldContext(rest);
90025
+ const baseProps = src_getBaseProps(rest);
90026
+ const checkboxRef = (0,src_react.useRef)(null);
90027
+ src_useForwardFocus(ref, checkboxRef);
90028
+ (0,src_react.useEffect)(() => {
90029
+ if (checkboxRef.current) {
90030
+ checkboxRef.current.indeterminate = Boolean(indeterminate);
90031
+ }
90032
+ });
90033
+ const { tabIndex } = src_useSingleTabStopNavigation(checkboxRef, { tabIndex: explicitTabIndex });
90034
+ const analyticsMetadata = {};
90035
+ const analyticsComponentMetadata = {
90036
+ name: 'awsui.Checkbox',
90037
+ label: { root: 'self' },
90038
+ };
90039
+ if (__injectAnalyticsComponentMetadata) {
90040
+ analyticsMetadata.component = analyticsComponentMetadata;
90041
+ }
90042
+ if (!disabled && !readOnly) {
90043
+ analyticsMetadata.detail = {
90044
+ selected: `${!checked}`,
90045
+ };
90046
+ }
90047
+ return (src_react.createElement(src_AbstractSwitch, Object.assign({}, baseProps, { className: src_clsx_m(src_checkbox_styles_css.root, baseProps.className), controlClassName: src_checkbox_styles_css['checkbox-control'], outlineClassName: src_checkbox_styles_css.outline, controlId: controlId, disabled: disabled, readOnly: readOnly, label: children, description: description, descriptionBottomPadding: true, ariaLabel: ariaLabel, ariaLabelledby: ariaLabelledby, ariaDescribedby: ariaDescribedby, ariaControls: ariaControls, showOutline: showOutline, nativeControl: nativeControlProps => (src_react.createElement("input", Object.assign({}, nativeControlProps, { ref: checkboxRef, type: "checkbox", checked: checked, name: name, "aria-required": ariaRequired ? 'true' : undefined, "aria-disabled": readOnly && !disabled ? 'true' : undefined, tabIndex: tabIndex, onFocus: () => src_fireNonCancelableEvent(onFocus), onBlur: () => src_fireNonCancelableEvent(onBlur),
90048
+ // empty handler to suppress React controllability warning
90049
+ onChange: () => { } }))), onClick: () => {
90050
+ var _a;
90051
+ (_a = checkboxRef.current) === null || _a === void 0 ? void 0 : _a.focus();
90052
+ src_fireNonCancelableEvent(onChange,
90053
+ // for deterministic transitions "indeterminate" -> "checked" -> "unchecked"
90054
+ indeterminate ? { checked: true, indeterminate: false } : { checked: !checked, indeterminate: false });
90055
+ }, styledControl: src_react.createElement(src_checkbox_icon, { checked: checked, indeterminate: indeterminate, disabled: disabled, readOnly: readOnly }), __internalRootRef: __internalRootRef }, src_getAnalyticsMetadataAttribute(analyticsMetadata))));
90056
+ });
90057
+ /* harmony default export */ const src_checkbox_internal = (src_InternalCheckbox);
90058
+ //# sourceMappingURL=internal.js.map
90059
+ ;// ./node_modules/@cloudscape-design/components/radio-group/styles.scoped.css
90060
+ // extracted by mini-css-extract-plugin
90061
+
90062
+ ;// ./node_modules/@cloudscape-design/components/radio-group/styles.css.js
90063
+
90064
+
90065
+ /* harmony default export */ const src_radio_group_styles_css = ({
90066
+ "root": "awsui_root_1mabk_16xu4_145",
90067
+ "radio": "awsui_radio_1mabk_16xu4_178",
90068
+ "radio--has-description": "awsui_radio--has-description_1mabk_16xu4_186",
90069
+ "radio-control": "awsui_radio-control_1mabk_16xu4_190",
90070
+ "outline": "awsui_outline_1mabk_16xu4_198",
90071
+ "styled-circle-border": "awsui_styled-circle-border_1mabk_16xu4_220",
90072
+ "styled-circle-disabled": "awsui_styled-circle-disabled_1mabk_16xu4_224",
90073
+ "styled-circle-readonly": "awsui_styled-circle-readonly_1mabk_16xu4_224",
90074
+ "styled-circle-fill": "awsui_styled-circle-fill_1mabk_16xu4_229",
90075
+ "styled-circle-checked": "awsui_styled-circle-checked_1mabk_16xu4_245"
90076
+ });
90077
+
90078
+ ;// ./node_modules/@cloudscape-design/components/radio-group/radio-button.js
90079
+
90080
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
90081
+ // SPDX-License-Identifier: Apache-2.0
90082
+
90083
+
90084
+
90085
+
90086
+
90087
+
90088
+
90089
+
90090
+
90091
+ /* harmony default export */ const src_radio_button = (src_react.forwardRef(function RadioButton(_a, ref) {
90092
+ var { name, label, value, checked, description, disabled, controlId, onChange, readOnly, className } = _a, rest = src_rest(_a, ["name", "label", "value", "checked", "description", "disabled", "controlId", "onChange", "readOnly", "className"]);
90093
+ const isVisualRefresh = src_useVisualRefresh();
90094
+ const radioButtonRef = (0,src_react.useRef)(null);
90095
+ const mergedRefs = src_useMergeRefs(radioButtonRef, ref);
90096
+ const { tabIndex } = src_useSingleTabStopNavigation(radioButtonRef);
90097
+ return (src_react.createElement(src_AbstractSwitch, Object.assign({ className: src_clsx_m(src_radio_group_styles_css.radio, description && src_radio_group_styles_css['radio--has-description'], className), controlClassName: src_radio_group_styles_css['radio-control'], outlineClassName: src_radio_group_styles_css.outline, label: label, description: description, disabled: disabled, readOnly: readOnly, controlId: controlId }, src_copyAnalyticsMetadataAttribute(rest), { nativeControl: nativeControlProps => (src_react.createElement("input", Object.assign({}, nativeControlProps, { tabIndex: tabIndex, type: "radio", ref: mergedRefs, name: name, value: value, checked: checked, "aria-disabled": readOnly && !disabled ? 'true' : undefined,
90098
+ // empty handler to suppress React controllability warning
90099
+ onChange: () => { } }))), onClick: () => {
90100
+ var _a;
90101
+ (_a = radioButtonRef.current) === null || _a === void 0 ? void 0 : _a.focus();
90102
+ if (checked) {
90103
+ return;
90104
+ }
90105
+ src_fireNonCancelableEvent(onChange, { value });
90106
+ }, styledControl: src_react.createElement("svg", { viewBox: "0 0 100 100", focusable: "false", "aria-hidden": "true" },
90107
+ src_react.createElement("circle", { className: src_clsx_m(src_radio_group_styles_css['styled-circle-border'], {
90108
+ [src_radio_group_styles_css['styled-circle-disabled']]: disabled,
90109
+ [src_radio_group_styles_css['styled-circle-readonly']]: readOnly,
90110
+ }), strokeWidth: isVisualRefresh ? 12 : 8, cx: 50, cy: 50, r: isVisualRefresh ? 44 : 46 }),
90111
+ src_react.createElement("circle", { className: src_clsx_m(src_radio_group_styles_css['styled-circle-fill'], {
90112
+ [src_radio_group_styles_css['styled-circle-disabled']]: disabled,
90113
+ [src_radio_group_styles_css['styled-circle-checked']]: checked,
90114
+ [src_radio_group_styles_css['styled-circle-readonly']]: readOnly,
90115
+ }), strokeWidth: 30, cx: 50, cy: 50, r: 35 })) })));
90116
+ }));
90117
+ //# sourceMappingURL=radio-button.js.map
90118
+ ;// ./node_modules/@cloudscape-design/components/table/selection/selection-control.js
90119
+
90120
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
90121
+ // SPDX-License-Identifier: Apache-2.0
90122
+
90123
+
90124
+
90125
+
90126
+
90127
+
90128
+
90129
+
90130
+
90131
+ function src_SelectionControl(_a) {
90132
+ var { selectionType, indeterminate = false, onShiftToggle, onFocusUp, onFocusDown, name, ariaLabel, focusedComponent, rowIndex, itemKey } = _a, sharedProps = src_rest(_a, ["selectionType", "indeterminate", "onShiftToggle", "onFocusUp", "onFocusDown", "name", "ariaLabel", "focusedComponent", "rowIndex", "itemKey"]);
90133
+ const controlId = src_useUniqueId();
90134
+ const isMultiSelection = selectionType === 'multi';
90135
+ const { navigationActive } = (0,src_react.useContext)(src_SingleTabStopNavigationContext);
90136
+ const setShiftState = (event) => {
90137
+ if (isMultiSelection) {
90138
+ onShiftToggle && onShiftToggle(event.shiftKey);
90139
+ }
90140
+ };
90141
+ const onMouseDownHandler = (event) => {
90142
+ setShiftState(event);
90143
+ if (isMultiSelection) {
90144
+ // To overcome an issue
90145
+ // If you shift+click or ctrl+click on a label for a checkbox, checkbox is not checked.
90146
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=559506
90147
+ event.preventDefault();
90148
+ }
90149
+ };
90150
+ // native checkboxes do not have focus move via keyboard, we implement it here programmatically
90151
+ const handleKeyDown = (event) => {
90152
+ setShiftState(event);
90153
+ if (isMultiSelection && !navigationActive) {
90154
+ if (event.keyCode === src_keycode_KeyCode.up) {
90155
+ event.preventDefault();
90156
+ onFocusUp && onFocusUp(event);
90157
+ }
90158
+ if (event.keyCode === src_keycode_KeyCode.down) {
90159
+ event.preventDefault();
90160
+ onFocusDown && onFocusDown(event);
90161
+ }
90162
+ }
90163
+ };
90164
+ const handleClick = (event) => {
90165
+ const target = event.currentTarget;
90166
+ const nativeInput = (target.tagName === 'INPUT' ? target : target.querySelector('input'));
90167
+ // Clicking on input, does not focus it on Firefox (AWSUI-11345)
90168
+ nativeInput === null || nativeInput === void 0 ? void 0 : nativeInput.focus();
90169
+ };
90170
+ const selector = isMultiSelection ? (src_react.createElement(src_checkbox_internal, Object.assign({}, sharedProps, { showOutline: focusedComponent === 'selection-control', controlId: controlId, "data-focus-id": "selection-control", indeterminate: indeterminate }))) : (src_react.createElement(src_radio_button, Object.assign({}, sharedProps, { controlId: controlId, name: name, value: '', label: '' })));
90171
+ return (src_react.createElement(src_react.Fragment, null,
90172
+ src_react.createElement("label", Object.assign({ onKeyDown: handleKeyDown, onKeyUp: setShiftState, onMouseDown: onMouseDownHandler, onMouseUp: setShiftState, onClick: handleClick, htmlFor: controlId, className: src_clsx_m(src_selection_styles_css.label, src_selection_styles_css.root), "aria-label": ariaLabel, title: ariaLabel }, (rowIndex !== undefined && !sharedProps.disabled
90173
+ ? src_getAnalyticsMetadataAttribute({
90174
+ detail: {
90175
+ position: `${rowIndex + 1}`,
90176
+ item: itemKey || '',
90177
+ },
90178
+ })
90179
+ : {})), selector),
90180
+ src_react.createElement("span", { className: src_selection_styles_css.stud, "aria-hidden": true }, "\u00A0")));
90181
+ }
90182
+ //# sourceMappingURL=selection-control.js.map
90183
+ ;// ./node_modules/@cloudscape-design/components/table/sticky-scrolling.js
90184
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
90185
+ // SPDX-License-Identifier: Apache-2.0
90186
+
90187
+
90188
+ /**
90189
+ * @param containerRef ref to surrounding container with sticky element
90190
+ * @param stickyRef ref to sticky element scrolled inside of containerRef
90191
+ * @param containerOffset offset between header and container
90192
+ * originating borders or paddings
90193
+ */
90194
+ function src_stickyScrolling(containerRef, stickyRef) {
90195
+ const scrollToTop = () => {
90196
+ if (!containerRef.current || !stickyRef.current) {
90197
+ return;
90198
+ }
90199
+ const scrollingOffset = src_calculateScrollingOffset(containerRef.current, stickyRef.current);
90200
+ if (scrollingOffset > 0) {
90201
+ src_scrollUpBy(scrollingOffset, containerRef.current);
90202
+ }
90203
+ };
90204
+ const scrollToItem = (item) => {
90205
+ if (!item || !containerRef.current || !stickyRef.current) {
90206
+ return;
90207
+ }
90208
+ const stickyBottom = src_getLogicalBoundingClientRect(stickyRef.current).insetBlockEnd;
90209
+ const scrollingOffset = stickyBottom - src_getLogicalBoundingClientRect(item).insetBlockStart;
90210
+ if (scrollingOffset > 0) {
90211
+ src_scrollUpBy(scrollingOffset, containerRef.current);
90212
+ }
90213
+ };
90214
+ return {
90215
+ scrollToTop,
90216
+ scrollToItem,
90217
+ };
90218
+ }
90219
+ /**
90220
+ * Calculates the scrolling offset between container and
90221
+ * sticky element with container offset caused by border
90222
+ * or padding
90223
+ * @param container
90224
+ * @param sticky element inside of container
90225
+ * @param containerOffset caused by borders or paddings
90226
+ */
90227
+ function src_calculateScrollingOffset(container, sticky) {
90228
+ const stickyRect = src_getLogicalBoundingClientRect(sticky);
90229
+ const containerRect = src_getLogicalBoundingClientRect(container);
90230
+ return stickyRect.insetBlockStart - containerRect.insetBlockStart;
90231
+ }
90232
+ /**
90233
+ * Scrolls suitable parent of container up by amount of pixels
90234
+ * @param amount pixels to be scrolled up
90235
+ * @param container used to determine next parent element for scrolling
90236
+ */
90237
+ function src_scrollUpBy(amount, container) {
90238
+ const parent = src_getOverflowParents(container);
90239
+ if (parent.length) {
90240
+ // Take next overflow parent in stack
90241
+ parent[0].scrollTop -= amount;
90242
+ }
90243
+ else {
90244
+ window.scrollTo({ top: window.pageYOffset - amount });
90245
+ }
90246
+ }
90247
+ //# sourceMappingURL=sticky-scrolling.js.map
90248
+ ;// ./node_modules/@cloudscape-design/components/table/styles.scoped.css
90249
+ // extracted by mini-css-extract-plugin
90250
+
90251
+ ;// ./node_modules/@cloudscape-design/components/table/styles.css.js
90252
+
90253
+
90254
+ /* harmony default export */ const src_table_styles_css = ({
90255
+ "root": "awsui_root_wih1l_g0tym_153",
90256
+ "tools": "awsui_tools_wih1l_g0tym_164",
90257
+ "tools-filtering": "awsui_tools-filtering_wih1l_g0tym_172",
90258
+ "tools-align-right": "awsui_tools-align-right_wih1l_g0tym_186",
90259
+ "tools-pagination": "awsui_tools-pagination_wih1l_g0tym_190",
90260
+ "tools-preferences": "awsui_tools-preferences_wih1l_g0tym_190",
90261
+ "tools-small": "awsui_tools-small_wih1l_g0tym_196",
90262
+ "table": "awsui_table_wih1l_g0tym_202",
90263
+ "table-layout-fixed": "awsui_table-layout-fixed_wih1l_g0tym_209",
90264
+ "wrapper": "awsui_wrapper_wih1l_g0tym_213",
90265
+ "variant-stacked": "awsui_variant-stacked_wih1l_g0tym_220",
90266
+ "wrapper-content-measure": "awsui_wrapper-content-measure_wih1l_g0tym_220",
90267
+ "variant-container": "awsui_variant-container_wih1l_g0tym_220",
90268
+ "has-footer": "awsui_has-footer_wih1l_g0tym_223",
90269
+ "has-header": "awsui_has-header_wih1l_g0tym_226",
90270
+ "cell-merged": "awsui_cell-merged_wih1l_g0tym_243",
90271
+ "cell-merged-content": "awsui_cell-merged-content_wih1l_g0tym_255",
90272
+ "empty": "awsui_empty_wih1l_g0tym_271",
90273
+ "loading": "awsui_loading_wih1l_g0tym_275",
90274
+ "selection-control": "awsui_selection-control_wih1l_g0tym_284",
90275
+ "selection-control-header": "awsui_selection-control-header_wih1l_g0tym_291",
90276
+ "header-secondary": "awsui_header-secondary_wih1l_g0tym_297",
90277
+ "variant-full-page": "awsui_variant-full-page_wih1l_g0tym_309",
90278
+ "table-has-header": "awsui_table-has-header_wih1l_g0tym_315",
90279
+ "header-controls": "awsui_header-controls_wih1l_g0tym_326",
90280
+ "variant-embedded": "awsui_variant-embedded_wih1l_g0tym_335",
90281
+ "variant-borderless": "awsui_variant-borderless_wih1l_g0tym_335",
90282
+ "footer-wrapper": "awsui_footer-wrapper_wih1l_g0tym_340",
90283
+ "footer": "awsui_footer_wih1l_g0tym_340",
90284
+ "footer-with-pagination": "awsui_footer-with-pagination_wih1l_g0tym_348",
90285
+ "footer-pagination": "awsui_footer-pagination_wih1l_g0tym_356",
90286
+ "thead-active": "awsui_thead-active_wih1l_g0tym_360",
90287
+ "row": "awsui_row_wih1l_g0tym_361",
90288
+ "row-selected": "awsui_row-selected_wih1l_g0tym_362"
90289
+ });
90290
+
90291
+ ;// ./node_modules/@cloudscape-design/components/table/tools-header.js
90292
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
90293
+ // SPDX-License-Identifier: Apache-2.0
90294
+
90295
+
90296
+
90297
+
90298
+
90299
+
90300
+ function src_ToolsHeader({ header, filter, pagination, preferences, setLastUserAction }) {
90301
+ const [breakpoint, ref] = src_useContainerBreakpoints(['xs']);
90302
+ const isHeaderString = typeof header === 'string';
90303
+ const assignHeaderId = (0,src_react.useContext)(src_CollectionLabelContext).assignId;
90304
+ const headingId = src_useUniqueId('heading');
90305
+ if (assignHeaderId !== undefined && isHeaderString) {
90306
+ assignHeaderId(headingId);
90307
+ }
90308
+ const isSmall = breakpoint === 'default';
90309
+ const hasTools = filter || pagination || preferences;
90310
+ return (src_react.createElement(src_react.Fragment, null,
90311
+ isHeaderString ? src_react.createElement("span", { id: headingId }, header) : header,
90312
+ hasTools && (src_react.createElement("div", { ref: ref, className: src_clsx_m(src_table_styles_css.tools, isSmall && src_table_styles_css['tools-small']) },
90313
+ filter && (src_react.createElement("div", { className: src_table_styles_css['tools-filtering'], onClickCapture: () => setLastUserAction === null || setLastUserAction === void 0 ? void 0 : setLastUserAction('filter'), onKeyDownCapture: () => setLastUserAction === null || setLastUserAction === void 0 ? void 0 : setLastUserAction('filter') }, filter)),
90314
+ src_react.createElement("div", { className: src_table_styles_css['tools-align-right'] },
90315
+ pagination && (src_react.createElement("div", { className: src_table_styles_css['tools-pagination'], onClickCapture: () => setLastUserAction === null || setLastUserAction === void 0 ? void 0 : setLastUserAction('pagination') }, pagination)),
90316
+ preferences && (src_react.createElement("div", { className: src_table_styles_css['tools-preferences'], onClickCapture: () => setLastUserAction === null || setLastUserAction === void 0 ? void 0 : setLastUserAction('preferences') }, preferences)))))));
90317
+ }
90318
+ //# sourceMappingURL=tools-header.js.map
90319
+ ;// ./node_modules/@cloudscape-design/components/cards/cards-layout-helper.js
90320
+ const src_WIDTHS = [1920, 1400, 1200, 992, 768];
90321
+ // Transform the array of widths into a valid cardsPerRow property that is used as default
90322
+ const src_defaultCardsPerRow = src_WIDTHS.map((value, index, widths) => ({
90323
+ minWidth: value,
90324
+ cards: widths.length + 1 - index,
90325
+ }));
90326
+ const src_getCardsPerRow = (width, config) => {
90327
+ if (config.length === 0) {
90328
+ config = src_defaultCardsPerRow;
90329
+ }
90330
+ let cardsPerRow = 1;
90331
+ // sort them by descending order of minWidth
90332
+ const sortedConfig = config
90333
+ .slice()
90334
+ .map(value => ({
90335
+ minWidth: value.minWidth || 0,
90336
+ cards: value.cards,
90337
+ }))
90338
+ .sort((a, b) => b.minWidth - a.minWidth);
90339
+ sortedConfig.some(layout => {
90340
+ if (width >= layout.minWidth) {
90341
+ cardsPerRow = layout.cards;
90342
+ return true;
90343
+ }
90344
+ });
90345
+ return cardsPerRow;
90346
+ };
90347
+ //# sourceMappingURL=cards-layout-helper.js.map
90348
+ ;// ./node_modules/@cloudscape-design/components/cards/styles.scoped.css
90349
+ // extracted by mini-css-extract-plugin
90350
+
90351
+ ;// ./node_modules/@cloudscape-design/components/cards/styles.css.js
90352
+
90353
+
90354
+ /* harmony default export */ const src_cards_styles_css = ({
90355
+ "card-inner": "awsui_card-inner_p8a6i_g1lwj_161",
90356
+ "root": "awsui_root_p8a6i_g1lwj_193",
90357
+ "header-variant-full-page": "awsui_header-variant-full-page_p8a6i_g1lwj_232",
90358
+ "header-refresh": "awsui_header-refresh_p8a6i_g1lwj_232",
90359
+ "list": "awsui_list_p8a6i_g1lwj_239",
90360
+ "list-grid-1": "awsui_list-grid-1_p8a6i_g1lwj_250",
90361
+ "card": "awsui_card_p8a6i_g1lwj_161",
90362
+ "list-grid-2": "awsui_list-grid-2_p8a6i_g1lwj_253",
90363
+ "list-grid-3": "awsui_list-grid-3_p8a6i_g1lwj_256",
90364
+ "list-grid-4": "awsui_list-grid-4_p8a6i_g1lwj_259",
90365
+ "list-grid-5": "awsui_list-grid-5_p8a6i_g1lwj_262",
90366
+ "list-grid-6": "awsui_list-grid-6_p8a6i_g1lwj_265",
90367
+ "list-grid-7": "awsui_list-grid-7_p8a6i_g1lwj_268",
90368
+ "list-grid-8": "awsui_list-grid-8_p8a6i_g1lwj_271",
90369
+ "list-grid-9": "awsui_list-grid-9_p8a6i_g1lwj_274",
90370
+ "list-grid-10": "awsui_list-grid-10_p8a6i_g1lwj_277",
90371
+ "list-grid-11": "awsui_list-grid-11_p8a6i_g1lwj_280",
90372
+ "list-grid-12": "awsui_list-grid-12_p8a6i_g1lwj_283",
90373
+ "list-grid-13": "awsui_list-grid-13_p8a6i_g1lwj_286",
90374
+ "list-grid-14": "awsui_list-grid-14_p8a6i_g1lwj_289",
90375
+ "list-grid-15": "awsui_list-grid-15_p8a6i_g1lwj_292",
90376
+ "list-grid-16": "awsui_list-grid-16_p8a6i_g1lwj_295",
90377
+ "list-grid-17": "awsui_list-grid-17_p8a6i_g1lwj_298",
90378
+ "list-grid-18": "awsui_list-grid-18_p8a6i_g1lwj_301",
90379
+ "list-grid-19": "awsui_list-grid-19_p8a6i_g1lwj_304",
90380
+ "list-grid-20": "awsui_list-grid-20_p8a6i_g1lwj_307",
90381
+ "selection-control": "awsui_selection-control_p8a6i_g1lwj_311",
90382
+ "loading": "awsui_loading_p8a6i_g1lwj_321",
90383
+ "empty": "awsui_empty_p8a6i_g1lwj_322",
90384
+ "has-header": "awsui_has-header_p8a6i_g1lwj_329",
90385
+ "refresh": "awsui_refresh_p8a6i_g1lwj_332",
90386
+ "card-header": "awsui_card-header_p8a6i_g1lwj_403",
90387
+ "card-header-inner": "awsui_card-header-inner_p8a6i_g1lwj_411",
90388
+ "card-selectable": "awsui_card-selectable_p8a6i_g1lwj_415",
90389
+ "card-selected": "awsui_card-selected_p8a6i_g1lwj_418",
90390
+ "section": "awsui_section_p8a6i_g1lwj_426",
90391
+ "section-header": "awsui_section-header_p8a6i_g1lwj_434",
90392
+ "section-content": "awsui_section-content_p8a6i_g1lwj_440",
90393
+ "footer-pagination": "awsui_footer-pagination_p8a6i_g1lwj_450"
90394
+ });
90395
+
90396
+ ;// ./node_modules/@cloudscape-design/components/cards/index.js
90397
+
90398
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
90399
+ // SPDX-License-Identifier: Apache-2.0
90400
+
90401
+
90402
+
90403
+
90404
+
90405
+
90406
+
90407
+
90408
+
90409
+
90410
+
90411
+
90412
+
90413
+
90414
+
90415
+
90416
+
90417
+
90418
+
90419
+
90420
+
90421
+
90422
+
90423
+ const src_Cards = src_react.forwardRef(function (_a, ref) {
90424
+ var { items = [], cardDefinition, cardsPerRow = [], header, filter, pagination, preferences, empty, loading, loadingText, trackBy, selectedItems, selectionType, isItemDisabled, onSelectionChange, ariaLabels, visibleSections, stickyHeader, stickyHeaderVerticalOffset, variant = 'container', renderAriaLive, firstIndex = 1, totalItemsCount, entireCardClickable } = _a, rest = src_rest(_a, ["items", "cardDefinition", "cardsPerRow", "header", "filter", "pagination", "preferences", "empty", "loading", "loadingText", "trackBy", "selectedItems", "selectionType", "isItemDisabled", "onSelectionChange", "ariaLabels", "visibleSections", "stickyHeader", "stickyHeaderVerticalOffset", "variant", "renderAriaLive", "firstIndex", "totalItemsCount", "entireCardClickable"]);
90425
+ const { __internalRootRef } = src_useBaseComponent('Cards', {
90426
+ props: { entireCardClickable, selectionType, stickyHeader, variant },
90427
+ metadata: { usesVisibleSections: !!visibleSections },
90428
+ });
90429
+ const baseProps = src_getBaseProps(rest);
90430
+ const isRefresh = src_useVisualRefresh();
90431
+ const isMobile = src_useMobile();
90432
+ const computedVariant = isRefresh ? variant : 'container';
90433
+ const headerIdRef = (0,src_react.useRef)(undefined);
90434
+ const setHeaderRef = (0,src_react.useCallback)((id) => {
90435
+ headerIdRef.current = id;
90436
+ }, []);
90437
+ const isLabelledByHeader = !(ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.cardsLabel) && !!header;
90438
+ const [columns, measureRef] = src_useContainerQuery(({ contentBoxWidth }) => src_getCardsPerRow(contentBoxWidth, cardsPerRow), [cardsPerRow]);
90439
+ const refObject = (0,src_react.useRef)(null);
90440
+ const mergedRef = src_useMergeRefs(measureRef, refObject, __internalRootRef);
90441
+ const getMouseDownTarget = src_useMouseDownTarget();
90442
+ const i18n = src_useInternalI18n('cards');
90443
+ const { isItemSelected, getItemSelectionProps } = src_useSelection({
90444
+ items,
90445
+ trackBy,
90446
+ selectedItems,
90447
+ selectionType,
90448
+ isItemDisabled,
90449
+ onSelectionChange,
90450
+ ariaLabels: {
90451
+ itemSelectionLabel: ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.itemSelectionLabel,
90452
+ selectionGroupLabel: i18n('ariaLabels.selectionGroupLabel', ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.selectionGroupLabel),
90453
+ },
90454
+ });
90455
+ const hasToolsHeader = header || filter || pagination || preferences;
90456
+ const hasFooterPagination = isMobile && variant === 'full-page' && !!pagination;
90457
+ const headerRef = (0,src_react.useRef)(null);
90458
+ const { scrollToTop, scrollToItem } = src_stickyScrolling(refObject, headerRef);
90459
+ stickyHeader = !isMobile && stickyHeader;
90460
+ const onCardFocus = event => {
90461
+ // When an element inside card receives focus we want to adjust the scroll.
90462
+ // However, that behavior is unwanted when the focus is received as result of a click
90463
+ // as it causes the click to never reach the target element.
90464
+ if (stickyHeader && !event.currentTarget.contains(getMouseDownTarget())) {
90465
+ scrollToItem(event.currentTarget);
90466
+ }
90467
+ };
90468
+ (0,src_react.useImperativeHandle)(ref, () => ({
90469
+ scrollToTop: () => {
90470
+ if (stickyHeader) {
90471
+ scrollToTop();
90472
+ }
90473
+ },
90474
+ }), [stickyHeader, scrollToTop]);
90475
+ let status;
90476
+ if (loading) {
90477
+ status = (src_react.createElement("div", { className: src_cards_styles_css.loading },
90478
+ src_react.createElement(src_internal_StatusIndicator, { type: "loading" },
90479
+ src_react.createElement(src_live_region_internal, { tagName: "span" }, loadingText))));
90480
+ }
90481
+ else if (empty && !items.length) {
90482
+ status = src_react.createElement("div", { className: src_cards_styles_css.empty }, empty);
90483
+ }
90484
+ return (src_react.createElement(src_LinkDefaultVariantContext.Provider, { value: { defaultVariant: 'primary' } },
90485
+ src_react.createElement(src_AnalyticsFunnelSubStep, null,
90486
+ src_react.createElement("div", Object.assign({}, baseProps, { className: src_clsx_m(baseProps.className, src_cards_styles_css.root), ref: mergedRef }),
90487
+ src_react.createElement(src_InternalContainerAsSubstep, { header: hasToolsHeader && (src_react.createElement("div", { className: src_clsx_m(src_cards_styles_css.header, isRefresh && src_cards_styles_css['header-refresh'], src_cards_styles_css[`header-variant-${computedVariant}`]) },
90488
+ src_react.createElement(src_CollectionLabelContext.Provider, { value: { assignId: setHeaderRef } },
90489
+ src_react.createElement(src_ToolsHeader, { header: header, filter: filter, pagination: pagination, preferences: preferences })))), footer: hasFooterPagination && src_react.createElement("div", { className: src_cards_styles_css['footer-pagination'] }, pagination), disableContentPaddings: true, disableHeaderPaddings: computedVariant === 'full-page', variant: computedVariant === 'container' ? 'cards' : computedVariant, __stickyHeader: stickyHeader, __stickyOffset: stickyHeaderVerticalOffset, __headerRef: headerRef, __fullPage: computedVariant === 'full-page', __disableFooterDivider: true },
90490
+ src_react.createElement("div", { className: src_clsx_m(hasToolsHeader && src_cards_styles_css['has-header'], isRefresh && src_cards_styles_css.refresh, src_cards_styles_css[`header-variant-${computedVariant}`]) },
90491
+ !!renderAriaLive && !!firstIndex && (src_react.createElement(src_live_region_internal, { hidden: true, tagName: "span" },
90492
+ src_react.createElement("span", null, renderAriaLive({ totalItemsCount, firstIndex, lastIndex: firstIndex + items.length - 1 })))), status !== null && status !== void 0 ? status : (src_react.createElement(src_CardsList, { items: items, cardDefinition: cardDefinition, trackBy: trackBy, selectionType: selectionType, columns: columns, isItemSelected: isItemSelected, getItemSelectionProps: getItemSelectionProps, visibleSections: visibleSections, onFocus: onCardFocus, ariaLabel: ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.cardsLabel, ariaLabelledby: isLabelledByHeader && headerIdRef.current ? headerIdRef.current : undefined, entireCardClickable: entireCardClickable }))))))));
90493
+ });
90494
+ /* harmony default export */ const src_cards = (src_Cards);
90495
+ const src_CardsList = ({ items, cardDefinition, trackBy, selectionType, columns, isItemSelected, getItemSelectionProps, visibleSections, onFocus, ariaLabelledby, ariaLabel, entireCardClickable, }) => {
90496
+ const selectable = !!selectionType;
90497
+ const canClickEntireCard = selectable && entireCardClickable;
90498
+ const isRefresh = src_useVisualRefresh();
90499
+ const { moveFocusDown, moveFocusUp } = src_useSelectionFocusMove(selectionType, items.length);
90500
+ let visibleSectionsDefinition = cardDefinition.sections || [];
90501
+ visibleSectionsDefinition = visibleSections
90502
+ ? visibleSectionsDefinition.filter((section) => section.id && visibleSections.indexOf(section.id) !== -1)
90503
+ : visibleSectionsDefinition;
90504
+ let listRole = undefined;
90505
+ let listItemRole = undefined;
90506
+ if (selectable) {
90507
+ listRole = 'group';
90508
+ listItemRole = 'presentation';
90509
+ }
90510
+ return (src_react.createElement("ol", Object.assign({ className: src_clsx_m(src_cards_styles_css.list, src_cards_styles_css[`list-grid-${columns || 1}`]), role: listRole, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel }, (src_focusMarkers && src_focusMarkers.root)), items.map((item, index) => (src_react.createElement("li", Object.assign({ className: src_clsx_m(src_cards_styles_css.card, {
90511
+ [src_cards_styles_css['card-selectable']]: selectable,
90512
+ [src_cards_styles_css['card-selected']]: selectable && isItemSelected(item),
90513
+ }), key: src_getItemKey(trackBy, item, index), onFocus: onFocus }, (src_focusMarkers && src_focusMarkers.item), { role: listItemRole }),
90514
+ src_react.createElement("div", { className: src_clsx_m(src_cards_styles_css['card-inner'], isRefresh && src_cards_styles_css.refresh), onClick: canClickEntireCard
90515
+ ? event => {
90516
+ var _a;
90517
+ getItemSelectionProps === null || getItemSelectionProps === void 0 ? void 0 : getItemSelectionProps(item).onChange();
90518
+ // Manually move focus to the native input (checkbox or radio button)
90519
+ (_a = event.currentTarget.querySelector('input')) === null || _a === void 0 ? void 0 : _a.focus();
90520
+ }
90521
+ : undefined },
90522
+ src_react.createElement("div", { className: src_cards_styles_css['card-header'] },
90523
+ src_react.createElement("div", { className: src_cards_styles_css['card-header-inner'] }, cardDefinition.header ? cardDefinition.header(item) : ''),
90524
+ getItemSelectionProps && (src_react.createElement("div", { className: src_cards_styles_css['selection-control'] },
90525
+ src_react.createElement(src_SelectionControl, Object.assign({ onFocusDown: moveFocusDown, onFocusUp: moveFocusUp }, getItemSelectionProps(item)))))),
90526
+ visibleSectionsDefinition.map(({ width = 100, header, content, id }, index) => (src_react.createElement("div", { key: id || index, className: src_cards_styles_css.section, style: { width: `${width}%` } },
90527
+ header ? src_react.createElement("div", { className: src_cards_styles_css['section-header'] }, header) : '',
90528
+ content ? src_react.createElement("div", { className: src_cards_styles_css['section-content'] }, content(item)) : '')))))))));
90529
+ };
90530
+ src_applyDisplayName(src_Cards, 'Cards');
90531
+ //# sourceMappingURL=index.js.map
89429
90532
  ;// ./node_modules/@cloudscape-design/components/header/index.js
89430
90533
 
89431
90534
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
@@ -89477,23 +90580,6 @@ const src_link_Link = src_react.forwardRef((_a, ref) => {
89477
90580
  src_applyDisplayName(src_link_Link, 'Link');
89478
90581
  /* harmony default export */ const src_components_link = (src_link_Link);
89479
90582
  //# sourceMappingURL=index.js.map
89480
- ;// ./node_modules/@cloudscape-design/components/internal/context/form-field-context.js
89481
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
89482
- // SPDX-License-Identifier: Apache-2.0
89483
-
89484
- const src_FormFieldContext = (0,src_react.createContext)({});
89485
- function src_applyDefault(fields, defaults, keys) {
89486
- const result = {};
89487
- keys.forEach(key => {
89488
- result[key] = fields[key] === undefined ? defaults[key] : fields[key];
89489
- });
89490
- return result;
89491
- }
89492
- function src_useFormFieldContext(props) {
89493
- const context = (0,src_react.useContext)(src_FormFieldContext);
89494
- return src_applyDefault(props, context, ['invalid', 'warning', 'controlId', 'ariaLabelledby', 'ariaDescribedby']);
89495
- }
89496
- //# sourceMappingURL=form-field-context.js.map
89497
90583
  ;// ./node_modules/@cloudscape-design/components/input/utils.js
89498
90584
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
89499
90585
  // SPDX-License-Identifier: Apache-2.0
@@ -90018,37 +91104,6 @@ const src_getSortingColumnId = (columnDefinitions = [], sortingColumn) => {
90018
91104
  return null;
90019
91105
  };
90020
91106
  //# sourceMappingURL=utils.js.map
90021
- ;// ./node_modules/@cloudscape-design/components/internal/hooks/use-mouse-down-target.js
90022
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
90023
- // SPDX-License-Identifier: Apache-2.0
90024
-
90025
-
90026
- const src_useEventListenersSingleton = src_createSingletonHandler(setTarget => {
90027
- function handleMouseDown(event) {
90028
- setTarget(event.target);
90029
- }
90030
- function handleKeyDown() {
90031
- setTarget(null);
90032
- }
90033
- window.addEventListener('mousedown', handleMouseDown);
90034
- window.addEventListener('keydown', handleKeyDown);
90035
- return () => {
90036
- window.removeEventListener('mousedown', handleMouseDown);
90037
- window.removeEventListener('keydown', handleKeyDown);
90038
- };
90039
- });
90040
- /**
90041
- * Captures last mouse down target and clears it on keydown.
90042
- * @returns a callback to get the last detected mouse down target.
90043
- */
90044
- function src_useMouseDownTarget() {
90045
- const mouseDownTargetRef = (0,src_react.useRef)(null);
90046
- src_useEventListenersSingleton(target => {
90047
- mouseDownTargetRef.current = target;
90048
- });
90049
- return () => mouseDownTargetRef.current;
90050
- }
90051
- //# sourceMappingURL=use-mouse-down-target.js.map
90052
91107
  ;// ./node_modules/@cloudscape-design/components/internal/hooks/use-previous/index.js
90053
91108
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
90054
91109
  // SPDX-License-Identifier: Apache-2.0
@@ -90664,116 +91719,6 @@ function src_getTableCellRoleProps(options) {
90664
91719
  return nativeProps;
90665
91720
  }
90666
91721
  //# sourceMappingURL=table-role-helper.js.map
90667
- ;// ./node_modules/@cloudscape-design/components/table/utils.js
90668
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
90669
- // SPDX-License-Identifier: Apache-2.0
90670
-
90671
- const src_applyTrackBy = (trackBy, item) => {
90672
- if (typeof trackBy === 'function') {
90673
- return trackBy(item);
90674
- }
90675
- return item[trackBy];
90676
- };
90677
- const src_getItemKey = (trackBy, item, index) => {
90678
- if (!trackBy) {
90679
- return index;
90680
- }
90681
- return src_applyTrackBy(trackBy, item);
90682
- };
90683
- const src_getTrackableValue = (trackBy, item) => {
90684
- if (!trackBy) {
90685
- return item;
90686
- }
90687
- return src_applyTrackBy(trackBy, item);
90688
- };
90689
- const src_getColumnKey = (column, index) => {
90690
- return column.id || index;
90691
- };
90692
- const src_toContainerVariant = (variant) => {
90693
- const isDefaultVariant = !variant || variant === 'container';
90694
- return isDefaultVariant ? 'default' : variant === 'borderless' ? 'embedded' : variant;
90695
- };
90696
- function src_checkSortingState(columnDefinitions, sortingComparator) {
90697
- const matchedColumn = columnDefinitions.filter(column => column.sortingComparator === sortingComparator)[0];
90698
- if (!matchedColumn) {
90699
- src_logging_warnOnce('Table', 'Currently active sorting comparator was not found in any columns. Make sure to provide the same comparator function instance on each render.');
90700
- }
90701
- }
90702
- function src_getVisibleColumnDefinitions({ columnDisplay, visibleColumns, columnDefinitions, }) {
90703
- // columnsDisplay has a precedence over visibleColumns.
90704
- if (columnDisplay) {
90705
- return src_getVisibleColumnDefinitionsFromColumnDisplay({ columnDisplay, columnDefinitions });
90706
- }
90707
- else if (visibleColumns) {
90708
- return src_getVisibleColumnDefinitionsFromVisibleColumns({ visibleColumns, columnDefinitions });
90709
- }
90710
- else {
90711
- return columnDefinitions;
90712
- }
90713
- }
90714
- function src_getVisibleColumnDefinitionsFromColumnDisplay({ columnDisplay, columnDefinitions, }) {
90715
- const columnDefinitionsById = columnDefinitions.reduce((accumulator, item) => (item.id === undefined ? accumulator : Object.assign(Object.assign({}, accumulator), { [item.id]: item })), {});
90716
- return columnDisplay
90717
- .filter(item => item.visible)
90718
- .map(item => columnDefinitionsById[item.id])
90719
- .filter(Boolean);
90720
- }
90721
- function src_getVisibleColumnDefinitionsFromVisibleColumns({ visibleColumns, columnDefinitions, }) {
90722
- const ids = new Set(visibleColumns);
90723
- return columnDefinitions.filter(({ id }) => id !== undefined && ids.has(id));
90724
- }
90725
- function src_getStickyClassNames(styles, props) {
90726
- return {
90727
- [styles['sticky-cell']]: !!props,
90728
- [styles['sticky-cell-pad-inline-start']]: !!(props === null || props === void 0 ? void 0 : props.padInlineStart),
90729
- [styles['sticky-cell-last-inline-start']]: !!(props === null || props === void 0 ? void 0 : props.lastInsetInlineStart),
90730
- [styles['sticky-cell-last-inline-end']]: !!(props === null || props === void 0 ? void 0 : props.lastInsetInlineEnd),
90731
- };
90732
- }
90733
- //# sourceMappingURL=utils.js.map
90734
- ;// ./node_modules/@cloudscape-design/components/table/styles.scoped.css
90735
- // extracted by mini-css-extract-plugin
90736
-
90737
- ;// ./node_modules/@cloudscape-design/components/table/styles.css.js
90738
-
90739
-
90740
- /* harmony default export */ const src_table_styles_css = ({
90741
- "root": "awsui_root_wih1l_g0tym_153",
90742
- "tools": "awsui_tools_wih1l_g0tym_164",
90743
- "tools-filtering": "awsui_tools-filtering_wih1l_g0tym_172",
90744
- "tools-align-right": "awsui_tools-align-right_wih1l_g0tym_186",
90745
- "tools-pagination": "awsui_tools-pagination_wih1l_g0tym_190",
90746
- "tools-preferences": "awsui_tools-preferences_wih1l_g0tym_190",
90747
- "tools-small": "awsui_tools-small_wih1l_g0tym_196",
90748
- "table": "awsui_table_wih1l_g0tym_202",
90749
- "table-layout-fixed": "awsui_table-layout-fixed_wih1l_g0tym_209",
90750
- "wrapper": "awsui_wrapper_wih1l_g0tym_213",
90751
- "variant-stacked": "awsui_variant-stacked_wih1l_g0tym_220",
90752
- "wrapper-content-measure": "awsui_wrapper-content-measure_wih1l_g0tym_220",
90753
- "variant-container": "awsui_variant-container_wih1l_g0tym_220",
90754
- "has-footer": "awsui_has-footer_wih1l_g0tym_223",
90755
- "has-header": "awsui_has-header_wih1l_g0tym_226",
90756
- "cell-merged": "awsui_cell-merged_wih1l_g0tym_243",
90757
- "cell-merged-content": "awsui_cell-merged-content_wih1l_g0tym_255",
90758
- "empty": "awsui_empty_wih1l_g0tym_271",
90759
- "loading": "awsui_loading_wih1l_g0tym_275",
90760
- "selection-control": "awsui_selection-control_wih1l_g0tym_284",
90761
- "selection-control-header": "awsui_selection-control-header_wih1l_g0tym_291",
90762
- "header-secondary": "awsui_header-secondary_wih1l_g0tym_297",
90763
- "variant-full-page": "awsui_variant-full-page_wih1l_g0tym_309",
90764
- "table-has-header": "awsui_table-has-header_wih1l_g0tym_315",
90765
- "header-controls": "awsui_header-controls_wih1l_g0tym_326",
90766
- "variant-embedded": "awsui_variant-embedded_wih1l_g0tym_335",
90767
- "variant-borderless": "awsui_variant-borderless_wih1l_g0tym_335",
90768
- "footer-wrapper": "awsui_footer-wrapper_wih1l_g0tym_340",
90769
- "footer": "awsui_footer_wih1l_g0tym_340",
90770
- "footer-with-pagination": "awsui_footer-with-pagination_wih1l_g0tym_348",
90771
- "footer-pagination": "awsui_footer-pagination_wih1l_g0tym_356",
90772
- "thead-active": "awsui_thead-active_wih1l_g0tym_360",
90773
- "row": "awsui_row_wih1l_g0tym_361",
90774
- "row-selected": "awsui_row-selected_wih1l_g0tym_362"
90775
- });
90776
-
90777
91722
  ;// ./node_modules/@cloudscape-design/components/table/body-cell/styles.scoped.css
90778
91723
  // extracted by mini-css-extract-plugin
90779
91724
 
@@ -91461,29 +92406,6 @@ function src_checkProperty(column, name) {
91461
92406
  }
91462
92407
  }
91463
92408
  //# sourceMappingURL=column-widths-utils.js.map
91464
- ;// ./node_modules/@cloudscape-design/components/table/selection/utils.js
91465
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91466
- // SPDX-License-Identifier: Apache-2.0
91467
-
91468
- const src_SELECTION_ITEM = 'selection-item';
91469
- const src_SELECTION_ROOT = 'selection-root';
91470
- // A set, that compares items by their "trackables" (the results of applying `trackBy` to them)
91471
- class src_ItemSet {
91472
- constructor(trackBy, items) {
91473
- this.map = new Map();
91474
- this.put = (item) => this.map.set.call(this.map, src_getTrackableValue(this.trackBy, item), item);
91475
- this.has = (item) => this.map.has.call(this.map, src_getTrackableValue(this.trackBy, item));
91476
- this.forEach = this.map.forEach.bind(this.map);
91477
- this.trackBy = trackBy;
91478
- items.forEach(this.put);
91479
- }
91480
- }
91481
- const src_focusMarkers = {
91482
- item: { ['data-' + src_SELECTION_ITEM]: 'item' },
91483
- all: { ['data-' + src_SELECTION_ITEM]: 'all' },
91484
- root: { ['data-' + src_SELECTION_ROOT]: 'true' },
91485
- };
91486
- //# sourceMappingURL=utils.js.map
91487
92409
  ;// ./node_modules/@cloudscape-design/components/table/expandable-rows/expandable-rows-utils.js
91488
92410
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91489
92411
  // SPDX-License-Identifier: Apache-2.0
@@ -91543,71 +92465,6 @@ function src_useExpandableTableProps({ items, expandableRows, trackBy, ariaLabel
91543
92465
  return { isExpandable, allItems, getExpandableItemProps };
91544
92466
  }
91545
92467
  //# sourceMappingURL=expandable-rows-utils.js.map
91546
- ;// ./node_modules/@cloudscape-design/components/status-indicator/styles.scoped.css
91547
- // extracted by mini-css-extract-plugin
91548
-
91549
- ;// ./node_modules/@cloudscape-design/components/status-indicator/styles.css.js
91550
-
91551
-
91552
- /* harmony default export */ const src_status_indicator_styles_css = ({
91553
- "icon-shake": "awsui_icon-shake_1cbgc_1n36j_153",
91554
- "awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-horizontally_1cbgc_1n36j_1",
91555
- "container-fade-in": "awsui_container-fade-in_1cbgc_1n36j_181",
91556
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1cbgc_1n36j_1",
91557
- "root": "awsui_root_1cbgc_1n36j_203",
91558
- "status-error": "awsui_status-error_1cbgc_1n36j_212",
91559
- "status-warning": "awsui_status-warning_1cbgc_1n36j_215",
91560
- "status-success": "awsui_status-success_1cbgc_1n36j_218",
91561
- "status-info": "awsui_status-info_1cbgc_1n36j_221",
91562
- "status-stopped": "awsui_status-stopped_1cbgc_1n36j_224",
91563
- "status-pending": "awsui_status-pending_1cbgc_1n36j_227",
91564
- "status-in-progress": "awsui_status-in-progress_1cbgc_1n36j_230",
91565
- "status-loading": "awsui_status-loading_1cbgc_1n36j_233",
91566
- "color-override-red": "awsui_color-override-red_1cbgc_1n36j_236",
91567
- "color-override-grey": "awsui_color-override-grey_1cbgc_1n36j_239",
91568
- "color-override-blue": "awsui_color-override-blue_1cbgc_1n36j_242",
91569
- "color-override-green": "awsui_color-override-green_1cbgc_1n36j_245",
91570
- "color-override-yellow": "awsui_color-override-yellow_1cbgc_1n36j_248",
91571
- "container": "awsui_container_1cbgc_1n36j_181",
91572
- "display-inline": "awsui_display-inline_1cbgc_1n36j_252",
91573
- "icon": "awsui_icon_1cbgc_1n36j_153",
91574
- "display-inline-block": "awsui_display-inline-block_1cbgc_1n36j_260",
91575
- "overflow-ellipsis": "awsui_overflow-ellipsis_1cbgc_1n36j_269"
91576
- });
91577
-
91578
- ;// ./node_modules/@cloudscape-design/components/status-indicator/internal.js
91579
-
91580
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91581
- // SPDX-License-Identifier: Apache-2.0
91582
-
91583
-
91584
-
91585
-
91586
-
91587
-
91588
- const src_typeToIcon = size => ({
91589
- error: src_react.createElement(src_internal, { name: "status-negative", size: size }),
91590
- warning: src_react.createElement(src_internal, { name: "status-warning", size: size }),
91591
- success: src_react.createElement(src_internal, { name: "status-positive", size: size }),
91592
- info: src_react.createElement(src_internal, { name: "status-info", size: size }),
91593
- stopped: src_react.createElement(src_internal, { name: "status-stopped", size: size }),
91594
- pending: src_react.createElement(src_internal, { name: "status-pending", size: size }),
91595
- 'in-progress': src_react.createElement(src_internal, { name: "status-in-progress", size: size }),
91596
- loading: src_react.createElement(src_InternalSpinner, null),
91597
- });
91598
- function src_internal_StatusIndicator(_a) {
91599
- var { type, children, iconAriaLabel, colorOverride, wrapText = true, __animate = false, __internalRootRef, __size = 'normal', __display = 'inline-block' } = _a, rest = src_rest(_a, ["type", "children", "iconAriaLabel", "colorOverride", "wrapText", "__animate", "__internalRootRef", "__size", "__display"]);
91600
- const baseProps = src_getBaseProps(rest);
91601
- return (src_react.createElement("span", Object.assign({}, baseProps, { className: src_clsx_m(src_status_indicator_styles_css.root, src_status_indicator_styles_css[`status-${type}`], {
91602
- [src_status_indicator_styles_css[`color-override-${colorOverride}`]]: colorOverride,
91603
- }, baseProps.className), ref: __internalRootRef }),
91604
- src_react.createElement("span", { className: src_clsx_m(src_status_indicator_styles_css.container, src_status_indicator_styles_css[`display-${__display}`], wrapText === false && src_status_indicator_styles_css['overflow-ellipsis'], __animate && src_status_indicator_styles_css['container-fade-in']) },
91605
- src_react.createElement("span", { className: src_clsx_m(src_status_indicator_styles_css.icon, __animate && src_status_indicator_styles_css['icon-shake']), "aria-label": iconAriaLabel, role: iconAriaLabel ? 'img' : undefined },
91606
- src_typeToIcon(__size)[type],
91607
- __display === 'inline' && src_react.createElement(src_react.Fragment, null, "\u00A0")),
91608
- children)));
91609
- }
91610
- //# sourceMappingURL=internal.js.map
91611
92468
  ;// ./node_modules/@cloudscape-design/components/table/no-data-cell.js
91612
92469
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91613
92470
  // SPDX-License-Identifier: Apache-2.0
@@ -92132,209 +92989,6 @@ function src_ResizeTracker() {
92132
92989
  return src_react.createElement("span", { className: src_resizer_styles_css.tracker });
92133
92990
  }
92134
92991
  //# sourceMappingURL=index.js.map
92135
- ;// ./node_modules/@cloudscape-design/components/table/selection/styles.scoped.css
92136
- // extracted by mini-css-extract-plugin
92137
-
92138
- ;// ./node_modules/@cloudscape-design/components/table/selection/styles.css.js
92139
-
92140
-
92141
- /* harmony default export */ const src_selection_styles_css = ({
92142
- "root": "awsui_root_1s55x_1sxg8_145",
92143
- "label": "awsui_label_1s55x_1sxg8_149",
92144
- "stud": "awsui_stud_1s55x_1sxg8_163"
92145
- });
92146
-
92147
- ;// ./node_modules/@cloudscape-design/components/table/selection/use-selection-focus-move.js
92148
-
92149
-
92150
-
92151
- // The hooks moves focus between multi-selection checkboxes.
92152
- // Not eligible for tables with grid navigation.
92153
- function src_useSelectionFocusMove(selectionType, totalItems) {
92154
- if (selectionType !== 'multi') {
92155
- return {};
92156
- }
92157
- function moveFocus(sourceElement, fromIndex, direction) {
92158
- let index = fromIndex;
92159
- const rootContainer = src_findRootContainer(sourceElement);
92160
- while (index >= -1 && index < totalItems) {
92161
- index += direction;
92162
- const control = src_findSelectionControlByIndex(rootContainer, index);
92163
- if (control && !control.disabled) {
92164
- control.focus();
92165
- break;
92166
- }
92167
- }
92168
- }
92169
- const [moveFocusDown, moveFocusUp] = [1, -1].map(direction => {
92170
- return (event) => {
92171
- const target = event.currentTarget;
92172
- const itemNode = src_findUpUntil(target, node => node.dataset.selectionItem === 'item');
92173
- const fromIndex = Array.prototype.indexOf.call(itemNode.parentElement.children, itemNode);
92174
- moveFocus(target, fromIndex, direction);
92175
- };
92176
- });
92177
- return {
92178
- moveFocusDown,
92179
- moveFocusUp,
92180
- moveFocus,
92181
- };
92182
- }
92183
- function src_findSelectionControlByIndex(rootContainer, index) {
92184
- if (index === -1) {
92185
- // find "select all" checkbox
92186
- return rootContainer.querySelector(`[data-${src_SELECTION_ITEM}="all"] .${src_selection_styles_css.root} input`);
92187
- }
92188
- return rootContainer.querySelectorAll(`[data-${src_SELECTION_ITEM}="item"] .${src_selection_styles_css.root} input`)[index];
92189
- }
92190
- function src_findRootContainer(element) {
92191
- return src_findUpUntil(element, node => node.dataset.selectionRoot === 'true');
92192
- }
92193
- //# sourceMappingURL=use-selection-focus-move.js.map
92194
- ;// ./node_modules/@cloudscape-design/components/table/selection/use-selection.js
92195
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
92196
- // SPDX-License-Identifier: Apache-2.0
92197
-
92198
-
92199
-
92200
-
92201
-
92202
-
92203
- function src_useSelection(options) {
92204
- const singleSelectionProps = src_useSingleSelection(options);
92205
- const multiSelectionProps = src_useMultiSelection(options);
92206
- return options.selectionType === 'single' ? singleSelectionProps : multiSelectionProps;
92207
- }
92208
- function src_useSingleSelection({ ariaLabels, isItemDisabled = () => false, onSelectionChange, selectedItems = [], selectionType, trackBy, }) {
92209
- // The name assigned to all controls to combine them in a single group.
92210
- const selectionControlName = src_useUniqueId();
92211
- if (selectionType !== 'single') {
92212
- return { isItemSelected: () => false };
92213
- }
92214
- // Selection state for individual items.
92215
- const selectedSet = new src_ItemSet(trackBy, selectedItems.slice(0, 1));
92216
- const isItemSelected = selectedSet.has.bind(selectedSet);
92217
- const handleToggleItem = (item) => {
92218
- if (!isItemDisabled(item) && !isItemSelected(item)) {
92219
- src_fireNonCancelableEvent(onSelectionChange, { selectedItems: [item] });
92220
- }
92221
- };
92222
- return {
92223
- isItemSelected,
92224
- getItemSelectionProps: (item) => {
92225
- var _a;
92226
- return ({
92227
- name: selectionControlName,
92228
- selectionType: 'single',
92229
- disabled: isItemDisabled(item),
92230
- checked: isItemSelected(item),
92231
- onChange: () => handleToggleItem(item),
92232
- ariaLabel: src_joinStrings(ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.selectionGroupLabel, (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.itemSelectionLabel) === null || _a === void 0 ? void 0 : _a.call(ariaLabels, { selectedItems }, item)),
92233
- });
92234
- },
92235
- };
92236
- }
92237
- function src_useMultiSelection({ ariaLabels, isItemDisabled = () => false, items, loading, onSelectionChange, selectedItems = [], selectionType, trackBy, }) {
92238
- // The name assigned to all controls to combine them in a single group.
92239
- const selectionControlName = src_useUniqueId();
92240
- const [shiftPressed, setShiftPressed] = (0,src_react.useState)(false);
92241
- const [lastClickedItem, setLastClickedItem] = (0,src_react.useState)(null);
92242
- if (selectionType !== 'multi') {
92243
- return { isItemSelected: () => false };
92244
- }
92245
- // Selection state for individual items.
92246
- const selectedSet = new src_ItemSet(trackBy, selectedItems);
92247
- const isItemSelected = selectedSet.has.bind(selectedSet);
92248
- // Derived selection state for all-items checkbox.
92249
- let allItemsDisabled = true;
92250
- let allEnabledItemsSelected = true;
92251
- for (const item of items) {
92252
- allItemsDisabled = allItemsDisabled && isItemDisabled(item);
92253
- allEnabledItemsSelected = allEnabledItemsSelected && (isItemSelected(item) || isItemDisabled(item));
92254
- }
92255
- const allItemsCheckboxSelected = selectedItems.length > 0 && allEnabledItemsSelected;
92256
- const allItemsCheckboxIndeterminate = selectedItems.length > 0 && !allEnabledItemsSelected;
92257
- // Shift-selection helpers.
92258
- const itemIndexesMap = new Map();
92259
- items.forEach((item, i) => itemIndexesMap.set(src_getTrackableValue(trackBy, item), i));
92260
- const getShiftSelectedItems = (item) => {
92261
- const lastClickedItemIndex = lastClickedItem
92262
- ? itemIndexesMap.get(src_getTrackableValue(trackBy, lastClickedItem))
92263
- : undefined;
92264
- // We use lastClickedItemIndex to determine if filtering/sorting/pagination
92265
- // made previously selected item invisible, therefore we reset state for shift-select.
92266
- if (lastClickedItemIndex !== undefined) {
92267
- const currentItemIndex = itemIndexesMap.get(src_getTrackableValue(trackBy, item));
92268
- const start = Math.min(currentItemIndex, lastClickedItemIndex);
92269
- const end = Math.max(currentItemIndex, lastClickedItemIndex);
92270
- return items.slice(start, end + 1);
92271
- }
92272
- return [item];
92273
- };
92274
- // Select items that are not already selected or disabled.
92275
- const selectItems = (requestedItems) => {
92276
- const newSelectedItems = [...selectedItems];
92277
- requestedItems.forEach(newItem => {
92278
- if (!isItemSelected(newItem) && !isItemDisabled(newItem)) {
92279
- newSelectedItems.push(newItem);
92280
- }
92281
- });
92282
- return newSelectedItems;
92283
- };
92284
- // Unselect items unless they are disabled.
92285
- const deselectItems = (requestedItems) => {
92286
- const requestedItemsSet = new src_ItemSet(trackBy, requestedItems);
92287
- const newSelectedItems = [];
92288
- selectedItems.forEach(selectedItem => {
92289
- const shouldUnselect = requestedItemsSet.has(selectedItem);
92290
- if (!shouldUnselect || isItemDisabled(selectedItem)) {
92291
- newSelectedItems.push(selectedItem);
92292
- }
92293
- });
92294
- return newSelectedItems;
92295
- };
92296
- const handleToggleAll = () => {
92297
- const newSelectedItems = allEnabledItemsSelected ? deselectItems(items) : selectItems(items);
92298
- src_fireNonCancelableEvent(onSelectionChange, { selectedItems: newSelectedItems });
92299
- };
92300
- const handleToggleItem = (item) => {
92301
- if (!isItemDisabled(item)) {
92302
- const requestedItems = shiftPressed ? getShiftSelectedItems(item) : [item];
92303
- const selectedItems = isItemSelected(item) ? deselectItems(requestedItems) : selectItems(requestedItems);
92304
- src_fireNonCancelableEvent(onSelectionChange, { selectedItems });
92305
- setLastClickedItem(item);
92306
- }
92307
- };
92308
- return {
92309
- isItemSelected,
92310
- getSelectAllProps: () => {
92311
- var _a;
92312
- return ({
92313
- name: selectionControlName,
92314
- selectionType: 'multi',
92315
- disabled: allItemsDisabled || !!loading,
92316
- checked: allItemsCheckboxSelected,
92317
- indeterminate: allItemsCheckboxIndeterminate,
92318
- onChange: handleToggleAll,
92319
- ariaLabel: src_joinStrings(ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.selectionGroupLabel, (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.allItemsSelectionLabel) === null || _a === void 0 ? void 0 : _a.call(ariaLabels, { selectedItems })),
92320
- selectionGroupLabel: ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.selectionGroupLabel,
92321
- });
92322
- },
92323
- getItemSelectionProps: (item) => {
92324
- var _a;
92325
- return ({
92326
- name: selectionControlName,
92327
- selectionType: 'multi',
92328
- disabled: isItemDisabled(item),
92329
- checked: isItemSelected(item),
92330
- onChange: () => handleToggleItem(item),
92331
- onShiftToggle: (value) => setShiftPressed(value),
92332
- ariaLabel: src_joinStrings(ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.selectionGroupLabel, (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.itemSelectionLabel) === null || _a === void 0 ? void 0 : _a.call(ariaLabels, { selectedItems }, item)),
92333
- });
92334
- },
92335
- };
92336
- }
92337
- //# sourceMappingURL=use-selection.js.map
92338
92992
  ;// ./node_modules/@cloudscape-design/components/table/header-cell/styles.scoped.css
92339
92993
  // extracted by mini-css-extract-plugin
92340
92994
 
@@ -92407,354 +93061,6 @@ function src_TableThElement(_a) {
92407
93061
  }, stickyStyles.className), style: Object.assign(Object.assign({}, resizableStyle), stickyStyles.style), ref: mergedRef }, src_getTableColHeaderRoleProps({ tableRole, sortingStatus, colIndex }), { tabIndex: cellTabIndex === -1 ? undefined : cellTabIndex }, src_copyAnalyticsMetadataAttribute(props), (ariaLabel ? { 'aria-label': ariaLabel } : {})), children));
92408
93062
  }
92409
93063
  //# sourceMappingURL=th-element.js.map
92410
- ;// ./node_modules/@cloudscape-design/components/internal/components/abstract-switch/analytics-metadata/styles.scoped.css
92411
- // extracted by mini-css-extract-plugin
92412
-
92413
- ;// ./node_modules/@cloudscape-design/components/internal/components/abstract-switch/analytics-metadata/styles.css.js
92414
-
92415
-
92416
- /* harmony default export */ const src_abstract_switch_analytics_metadata_styles_css = ({
92417
- "label": "awsui_label_13tpe_9w8pd_5",
92418
- "native-input": "awsui_native-input_13tpe_9w8pd_6"
92419
- });
92420
-
92421
- ;// ./node_modules/@cloudscape-design/components/internal/components/abstract-switch/styles.scoped.css
92422
- // extracted by mini-css-extract-plugin
92423
-
92424
- ;// ./node_modules/@cloudscape-design/components/internal/components/abstract-switch/styles.css.js
92425
-
92426
-
92427
- /* harmony default export */ const src_abstract_switch_styles_css = ({
92428
- "content": "awsui_content_1wepg_1qvhh_145",
92429
- "description": "awsui_description_1wepg_1qvhh_146",
92430
- "label": "awsui_label_1wepg_1qvhh_147",
92431
- "outline": "awsui_outline_1wepg_1qvhh_155",
92432
- "show-outline": "awsui_show-outline_1wepg_1qvhh_158",
92433
- "native-input": "awsui_native-input_1wepg_1qvhh_162",
92434
- "wrapper": "awsui_wrapper_1wepg_1qvhh_166",
92435
- "label-wrapper": "awsui_label-wrapper_1wepg_1qvhh_172",
92436
- "empty-content": "awsui_empty-content_1wepg_1qvhh_183",
92437
- "description-bottom-padding": "awsui_description-bottom-padding_1wepg_1qvhh_193",
92438
- "label-disabled": "awsui_label-disabled_1wepg_1qvhh_201",
92439
- "description-disabled": "awsui_description-disabled_1wepg_1qvhh_202",
92440
- "control": "awsui_control_1wepg_1qvhh_206"
92441
- });
92442
-
92443
- ;// ./node_modules/@cloudscape-design/components/internal/components/abstract-switch/index.js
92444
-
92445
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
92446
- // SPDX-License-Identifier: Apache-2.0
92447
-
92448
-
92449
-
92450
-
92451
-
92452
-
92453
- function src_joinString(values) {
92454
- return values.filter((value) => !!value).join(' ');
92455
- }
92456
- function src_AbstractSwitch(_a) {
92457
- var { controlId, controlClassName, outlineClassName, showOutline, disabled, readOnly, nativeControl, styledControl, label, description, descriptionBottomPadding, ariaLabel, ariaLabelledby, ariaDescribedby, ariaControls, onClick, __internalRootRef } = _a, rest = src_rest(_a, ["controlId", "controlClassName", "outlineClassName", "showOutline", "disabled", "readOnly", "nativeControl", "styledControl", "label", "description", "descriptionBottomPadding", "ariaLabel", "ariaLabelledby", "ariaDescribedby", "ariaControls", "onClick", "__internalRootRef"]);
92458
- const uniqueId = src_useUniqueId();
92459
- const id = controlId || uniqueId;
92460
- const labelId = `${id}-label`;
92461
- const descriptionId = `${id}-description`;
92462
- const ariaLabelledByIds = [];
92463
- if (label && !ariaLabel) {
92464
- ariaLabelledByIds.push(labelId);
92465
- }
92466
- if (ariaLabelledby) {
92467
- ariaLabelledByIds.push(ariaLabelledby);
92468
- }
92469
- const ariaDescriptions = [];
92470
- if (ariaDescribedby) {
92471
- ariaDescriptions.push(ariaDescribedby);
92472
- }
92473
- if (description) {
92474
- ariaDescriptions.push(descriptionId);
92475
- }
92476
- return (src_react.createElement("span", Object.assign({}, rest, { className: src_clsx_m(src_abstract_switch_styles_css.wrapper, rest.className), ref: __internalRootRef }, src_getAnalyticsLabelAttribute(label ? `.${src_abstract_switch_analytics_metadata_styles_css.label}` : `.${src_abstract_switch_analytics_metadata_styles_css['native-input']}`)),
92477
- src_react.createElement("span", Object.assign({ className: src_abstract_switch_styles_css['label-wrapper'], "aria-disabled": disabled ? 'true' : undefined, onClick: disabled || readOnly ? undefined : onClick }, src_getAnalyticsMetadataAttribute(disabled || readOnly
92478
- ? {}
92479
- : {
92480
- action: 'select',
92481
- detail: {
92482
- label: label ? `.${src_abstract_switch_analytics_metadata_styles_css.label}` : `.${src_abstract_switch_analytics_metadata_styles_css['native-input']}`,
92483
- },
92484
- })),
92485
- src_react.createElement("span", { className: src_clsx_m(src_abstract_switch_styles_css.control, controlClassName) },
92486
- styledControl,
92487
- nativeControl({
92488
- id,
92489
- disabled,
92490
- className: src_clsx_m(src_abstract_switch_styles_css['native-input'], src_abstract_switch_analytics_metadata_styles_css['native-input']),
92491
- 'aria-describedby': ariaDescriptions.length ? src_joinString(ariaDescriptions) : undefined,
92492
- 'aria-labelledby': ariaLabelledByIds.length ? src_joinString(ariaLabelledByIds) : undefined,
92493
- 'aria-label': ariaLabel,
92494
- 'aria-controls': ariaControls,
92495
- }),
92496
- src_react.createElement("span", { className: src_clsx_m(src_abstract_switch_styles_css.outline, outlineClassName, showOutline && src_abstract_switch_styles_css['show-outline']) })),
92497
- src_react.createElement("span", { className: src_clsx_m(src_abstract_switch_styles_css.content, !label && !description && src_abstract_switch_styles_css['empty-content']) },
92498
- label && (src_react.createElement("span", { id: labelId, className: src_clsx_m(src_abstract_switch_styles_css.label, src_abstract_switch_analytics_metadata_styles_css.label, { [src_abstract_switch_styles_css['label-disabled']]: disabled }) }, label)),
92499
- description && (src_react.createElement("span", { id: descriptionId, className: src_clsx_m(src_abstract_switch_styles_css.description, {
92500
- [src_abstract_switch_styles_css['description-disabled']]: disabled,
92501
- [src_abstract_switch_styles_css['description-bottom-padding']]: descriptionBottomPadding,
92502
- }) }, description))))));
92503
- }
92504
- //# sourceMappingURL=index.js.map
92505
- ;// ./node_modules/@cloudscape-design/components/internal/components/checkbox-icon/styles.scoped.css
92506
- // extracted by mini-css-extract-plugin
92507
-
92508
- ;// ./node_modules/@cloudscape-design/components/internal/components/checkbox-icon/styles.css.js
92509
-
92510
-
92511
- /* harmony default export */ const src_checkbox_icon_styles_css = ({
92512
- "root": "awsui_root_1fn7j_cme8a_145",
92513
- "styled-box": "awsui_styled-box_1fn7j_cme8a_152",
92514
- "styled-box-checked": "awsui_styled-box-checked_1fn7j_cme8a_168",
92515
- "styled-box-indeterminate": "awsui_styled-box-indeterminate_1fn7j_cme8a_168",
92516
- "styled-box-disabled": "awsui_styled-box-disabled_1fn7j_cme8a_172",
92517
- "styled-box-readonly": "awsui_styled-box-readonly_1fn7j_cme8a_172",
92518
- "styled-line": "awsui_styled-line_1fn7j_cme8a_176",
92519
- "styled-line-disabled": "awsui_styled-line-disabled_1fn7j_cme8a_181",
92520
- "styled-line-readonly": "awsui_styled-line-readonly_1fn7j_cme8a_184"
92521
- });
92522
-
92523
- ;// ./node_modules/@cloudscape-design/components/internal/components/checkbox-icon/index.js
92524
-
92525
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
92526
- // SPDX-License-Identifier: Apache-2.0
92527
-
92528
-
92529
-
92530
-
92531
-
92532
- // Can't use css variables for svg attributes
92533
- const src_dimensionsByTheme = {
92534
- default: {
92535
- viewBox: '0 0 14 14',
92536
- indeterminate: '2.5,7 11.5,7',
92537
- checked: '2.5,7 6,10 11,3',
92538
- xy: 0.5,
92539
- r: 1.5,
92540
- size: 13,
92541
- },
92542
- refresh: {
92543
- viewBox: '0 0 16 16',
92544
- indeterminate: '3.5,8 12.5,8',
92545
- checked: '3.5,8 7,11 12,4',
92546
- xy: 1,
92547
- r: 2,
92548
- size: 14,
92549
- },
92550
- };
92551
- const src_CheckboxIcon = (_a) => {
92552
- var { checked, indeterminate, disabled = false, readOnly = false } = _a, restProps = src_rest(_a, ["checked", "indeterminate", "disabled", "readOnly"]);
92553
- const baseProps = src_getBaseProps(restProps);
92554
- const theme = src_useVisualRefresh() ? 'refresh' : 'default';
92555
- const dimensions = src_dimensionsByTheme[theme];
92556
- return (src_react.createElement("svg", Object.assign({ className: src_checkbox_icon_styles_css.root, viewBox: dimensions.viewBox, "aria-hidden": "true", focusable: "false" }, baseProps),
92557
- src_react.createElement("rect", { className: src_clsx_m(src_checkbox_icon_styles_css['styled-box'], {
92558
- [src_checkbox_icon_styles_css['styled-box-checked']]: checked,
92559
- [src_checkbox_icon_styles_css['styled-box-indeterminate']]: indeterminate,
92560
- [src_checkbox_icon_styles_css['styled-box-disabled']]: disabled,
92561
- [src_checkbox_icon_styles_css['styled-box-readonly']]: readOnly,
92562
- }), x: dimensions.xy, y: dimensions.xy, rx: dimensions.r, ry: dimensions.r, width: dimensions.size, height: dimensions.size }),
92563
- checked || indeterminate ? (src_react.createElement("polyline", { className: src_clsx_m(src_checkbox_icon_styles_css['styled-line'], {
92564
- [src_checkbox_icon_styles_css['styled-line-disabled']]: disabled,
92565
- [src_checkbox_icon_styles_css['styled-line-readonly']]: readOnly,
92566
- }), points: indeterminate ? dimensions.indeterminate : dimensions.checked })) : null));
92567
- };
92568
- /* harmony default export */ const src_checkbox_icon = (src_CheckboxIcon);
92569
- //# sourceMappingURL=index.js.map
92570
- ;// ./node_modules/@cloudscape-design/components/checkbox/styles.scoped.css
92571
- // extracted by mini-css-extract-plugin
92572
-
92573
- ;// ./node_modules/@cloudscape-design/components/checkbox/styles.css.js
92574
-
92575
-
92576
- /* harmony default export */ const src_checkbox_styles_css = ({
92577
- "root": "awsui_root_k2y2q_71dt1_145",
92578
- "checkbox-control": "awsui_checkbox-control_k2y2q_71dt1_178",
92579
- "outline": "awsui_outline_k2y2q_71dt1_186"
92580
- });
92581
-
92582
- ;// ./node_modules/@cloudscape-design/components/checkbox/internal.js
92583
-
92584
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
92585
- // SPDX-License-Identifier: Apache-2.0
92586
-
92587
-
92588
-
92589
-
92590
-
92591
-
92592
-
92593
-
92594
-
92595
-
92596
-
92597
- const src_InternalCheckbox = src_react.forwardRef((_a, ref) => {
92598
- var { controlId, name, checked, disabled, readOnly, ariaRequired, indeterminate, children, description, ariaLabel, onFocus, onBlur, onChange, tabIndex: explicitTabIndex, showOutline, ariaControls, __internalRootRef, __injectAnalyticsComponentMetadata = false } = _a, rest = src_rest(_a, ["controlId", "name", "checked", "disabled", "readOnly", "ariaRequired", "indeterminate", "children", "description", "ariaLabel", "onFocus", "onBlur", "onChange", "tabIndex", "showOutline", "ariaControls", "__internalRootRef", "__injectAnalyticsComponentMetadata"]);
92599
- const { ariaDescribedby, ariaLabelledby } = src_useFormFieldContext(rest);
92600
- const baseProps = src_getBaseProps(rest);
92601
- const checkboxRef = (0,src_react.useRef)(null);
92602
- src_useForwardFocus(ref, checkboxRef);
92603
- (0,src_react.useEffect)(() => {
92604
- if (checkboxRef.current) {
92605
- checkboxRef.current.indeterminate = Boolean(indeterminate);
92606
- }
92607
- });
92608
- const { tabIndex } = src_useSingleTabStopNavigation(checkboxRef, { tabIndex: explicitTabIndex });
92609
- const analyticsMetadata = {};
92610
- const analyticsComponentMetadata = {
92611
- name: 'awsui.Checkbox',
92612
- label: { root: 'self' },
92613
- };
92614
- if (__injectAnalyticsComponentMetadata) {
92615
- analyticsMetadata.component = analyticsComponentMetadata;
92616
- }
92617
- if (!disabled && !readOnly) {
92618
- analyticsMetadata.detail = {
92619
- selected: `${!checked}`,
92620
- };
92621
- }
92622
- return (src_react.createElement(src_AbstractSwitch, Object.assign({}, baseProps, { className: src_clsx_m(src_checkbox_styles_css.root, baseProps.className), controlClassName: src_checkbox_styles_css['checkbox-control'], outlineClassName: src_checkbox_styles_css.outline, controlId: controlId, disabled: disabled, readOnly: readOnly, label: children, description: description, descriptionBottomPadding: true, ariaLabel: ariaLabel, ariaLabelledby: ariaLabelledby, ariaDescribedby: ariaDescribedby, ariaControls: ariaControls, showOutline: showOutline, nativeControl: nativeControlProps => (src_react.createElement("input", Object.assign({}, nativeControlProps, { ref: checkboxRef, type: "checkbox", checked: checked, name: name, "aria-required": ariaRequired ? 'true' : undefined, "aria-disabled": readOnly && !disabled ? 'true' : undefined, tabIndex: tabIndex, onFocus: () => src_fireNonCancelableEvent(onFocus), onBlur: () => src_fireNonCancelableEvent(onBlur),
92623
- // empty handler to suppress React controllability warning
92624
- onChange: () => { } }))), onClick: () => {
92625
- var _a;
92626
- (_a = checkboxRef.current) === null || _a === void 0 ? void 0 : _a.focus();
92627
- src_fireNonCancelableEvent(onChange,
92628
- // for deterministic transitions "indeterminate" -> "checked" -> "unchecked"
92629
- indeterminate ? { checked: true, indeterminate: false } : { checked: !checked, indeterminate: false });
92630
- }, styledControl: src_react.createElement(src_checkbox_icon, { checked: checked, indeterminate: indeterminate, disabled: disabled, readOnly: readOnly }), __internalRootRef: __internalRootRef }, src_getAnalyticsMetadataAttribute(analyticsMetadata))));
92631
- });
92632
- /* harmony default export */ const src_checkbox_internal = (src_InternalCheckbox);
92633
- //# sourceMappingURL=internal.js.map
92634
- ;// ./node_modules/@cloudscape-design/components/radio-group/styles.scoped.css
92635
- // extracted by mini-css-extract-plugin
92636
-
92637
- ;// ./node_modules/@cloudscape-design/components/radio-group/styles.css.js
92638
-
92639
-
92640
- /* harmony default export */ const src_radio_group_styles_css = ({
92641
- "root": "awsui_root_1mabk_16xu4_145",
92642
- "radio": "awsui_radio_1mabk_16xu4_178",
92643
- "radio--has-description": "awsui_radio--has-description_1mabk_16xu4_186",
92644
- "radio-control": "awsui_radio-control_1mabk_16xu4_190",
92645
- "outline": "awsui_outline_1mabk_16xu4_198",
92646
- "styled-circle-border": "awsui_styled-circle-border_1mabk_16xu4_220",
92647
- "styled-circle-disabled": "awsui_styled-circle-disabled_1mabk_16xu4_224",
92648
- "styled-circle-readonly": "awsui_styled-circle-readonly_1mabk_16xu4_224",
92649
- "styled-circle-fill": "awsui_styled-circle-fill_1mabk_16xu4_229",
92650
- "styled-circle-checked": "awsui_styled-circle-checked_1mabk_16xu4_245"
92651
- });
92652
-
92653
- ;// ./node_modules/@cloudscape-design/components/radio-group/radio-button.js
92654
-
92655
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
92656
- // SPDX-License-Identifier: Apache-2.0
92657
-
92658
-
92659
-
92660
-
92661
-
92662
-
92663
-
92664
-
92665
-
92666
- /* harmony default export */ const src_radio_button = (src_react.forwardRef(function RadioButton(_a, ref) {
92667
- var { name, label, value, checked, description, disabled, controlId, onChange, readOnly, className } = _a, rest = src_rest(_a, ["name", "label", "value", "checked", "description", "disabled", "controlId", "onChange", "readOnly", "className"]);
92668
- const isVisualRefresh = src_useVisualRefresh();
92669
- const radioButtonRef = (0,src_react.useRef)(null);
92670
- const mergedRefs = src_useMergeRefs(radioButtonRef, ref);
92671
- const { tabIndex } = src_useSingleTabStopNavigation(radioButtonRef);
92672
- return (src_react.createElement(src_AbstractSwitch, Object.assign({ className: src_clsx_m(src_radio_group_styles_css.radio, description && src_radio_group_styles_css['radio--has-description'], className), controlClassName: src_radio_group_styles_css['radio-control'], outlineClassName: src_radio_group_styles_css.outline, label: label, description: description, disabled: disabled, readOnly: readOnly, controlId: controlId }, src_copyAnalyticsMetadataAttribute(rest), { nativeControl: nativeControlProps => (src_react.createElement("input", Object.assign({}, nativeControlProps, { tabIndex: tabIndex, type: "radio", ref: mergedRefs, name: name, value: value, checked: checked, "aria-disabled": readOnly && !disabled ? 'true' : undefined,
92673
- // empty handler to suppress React controllability warning
92674
- onChange: () => { } }))), onClick: () => {
92675
- var _a;
92676
- (_a = radioButtonRef.current) === null || _a === void 0 ? void 0 : _a.focus();
92677
- if (checked) {
92678
- return;
92679
- }
92680
- src_fireNonCancelableEvent(onChange, { value });
92681
- }, styledControl: src_react.createElement("svg", { viewBox: "0 0 100 100", focusable: "false", "aria-hidden": "true" },
92682
- src_react.createElement("circle", { className: src_clsx_m(src_radio_group_styles_css['styled-circle-border'], {
92683
- [src_radio_group_styles_css['styled-circle-disabled']]: disabled,
92684
- [src_radio_group_styles_css['styled-circle-readonly']]: readOnly,
92685
- }), strokeWidth: isVisualRefresh ? 12 : 8, cx: 50, cy: 50, r: isVisualRefresh ? 44 : 46 }),
92686
- src_react.createElement("circle", { className: src_clsx_m(src_radio_group_styles_css['styled-circle-fill'], {
92687
- [src_radio_group_styles_css['styled-circle-disabled']]: disabled,
92688
- [src_radio_group_styles_css['styled-circle-checked']]: checked,
92689
- [src_radio_group_styles_css['styled-circle-readonly']]: readOnly,
92690
- }), strokeWidth: 30, cx: 50, cy: 50, r: 35 })) })));
92691
- }));
92692
- //# sourceMappingURL=radio-button.js.map
92693
- ;// ./node_modules/@cloudscape-design/components/table/selection/selection-control.js
92694
-
92695
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
92696
- // SPDX-License-Identifier: Apache-2.0
92697
-
92698
-
92699
-
92700
-
92701
-
92702
-
92703
-
92704
-
92705
-
92706
- function src_SelectionControl(_a) {
92707
- var { selectionType, indeterminate = false, onShiftToggle, onFocusUp, onFocusDown, name, ariaLabel, focusedComponent, rowIndex, itemKey } = _a, sharedProps = src_rest(_a, ["selectionType", "indeterminate", "onShiftToggle", "onFocusUp", "onFocusDown", "name", "ariaLabel", "focusedComponent", "rowIndex", "itemKey"]);
92708
- const controlId = src_useUniqueId();
92709
- const isMultiSelection = selectionType === 'multi';
92710
- const { navigationActive } = (0,src_react.useContext)(src_SingleTabStopNavigationContext);
92711
- const setShiftState = (event) => {
92712
- if (isMultiSelection) {
92713
- onShiftToggle && onShiftToggle(event.shiftKey);
92714
- }
92715
- };
92716
- const onMouseDownHandler = (event) => {
92717
- setShiftState(event);
92718
- if (isMultiSelection) {
92719
- // To overcome an issue
92720
- // If you shift+click or ctrl+click on a label for a checkbox, checkbox is not checked.
92721
- // https://bugzilla.mozilla.org/show_bug.cgi?id=559506
92722
- event.preventDefault();
92723
- }
92724
- };
92725
- // native checkboxes do not have focus move via keyboard, we implement it here programmatically
92726
- const handleKeyDown = (event) => {
92727
- setShiftState(event);
92728
- if (isMultiSelection && !navigationActive) {
92729
- if (event.keyCode === src_keycode_KeyCode.up) {
92730
- event.preventDefault();
92731
- onFocusUp && onFocusUp(event);
92732
- }
92733
- if (event.keyCode === src_keycode_KeyCode.down) {
92734
- event.preventDefault();
92735
- onFocusDown && onFocusDown(event);
92736
- }
92737
- }
92738
- };
92739
- const handleClick = (event) => {
92740
- const target = event.currentTarget;
92741
- const nativeInput = (target.tagName === 'INPUT' ? target : target.querySelector('input'));
92742
- // Clicking on input, does not focus it on Firefox (AWSUI-11345)
92743
- nativeInput === null || nativeInput === void 0 ? void 0 : nativeInput.focus();
92744
- };
92745
- const selector = isMultiSelection ? (src_react.createElement(src_checkbox_internal, Object.assign({}, sharedProps, { showOutline: focusedComponent === 'selection-control', controlId: controlId, "data-focus-id": "selection-control", indeterminate: indeterminate }))) : (src_react.createElement(src_radio_button, Object.assign({}, sharedProps, { controlId: controlId, name: name, value: '', label: '' })));
92746
- return (src_react.createElement(src_react.Fragment, null,
92747
- src_react.createElement("label", Object.assign({ onKeyDown: handleKeyDown, onKeyUp: setShiftState, onMouseDown: onMouseDownHandler, onMouseUp: setShiftState, onClick: handleClick, htmlFor: controlId, className: src_clsx_m(src_selection_styles_css.label, src_selection_styles_css.root), "aria-label": ariaLabel, title: ariaLabel }, (rowIndex !== undefined && !sharedProps.disabled
92748
- ? src_getAnalyticsMetadataAttribute({
92749
- detail: {
92750
- position: `${rowIndex + 1}`,
92751
- item: itemKey || '',
92752
- },
92753
- })
92754
- : {})), selector),
92755
- src_react.createElement("span", { className: src_selection_styles_css.stud, "aria-hidden": true }, "\u00A0")));
92756
- }
92757
- //# sourceMappingURL=selection-control.js.map
92758
93064
  ;// ./node_modules/@cloudscape-design/components/table/selection/selection-cell.js
92759
93065
 
92760
93066
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
@@ -92927,71 +93233,6 @@ const src_Thead = src_react.forwardRef(({ selectionType, getSelectAllProps, colu
92927
93233
  });
92928
93234
  /* harmony default export */ const src_thead = (src_Thead);
92929
93235
  //# sourceMappingURL=thead.js.map
92930
- ;// ./node_modules/@cloudscape-design/components/table/sticky-scrolling.js
92931
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
92932
- // SPDX-License-Identifier: Apache-2.0
92933
-
92934
-
92935
- /**
92936
- * @param containerRef ref to surrounding container with sticky element
92937
- * @param stickyRef ref to sticky element scrolled inside of containerRef
92938
- * @param containerOffset offset between header and container
92939
- * originating borders or paddings
92940
- */
92941
- function src_stickyScrolling(containerRef, stickyRef) {
92942
- const scrollToTop = () => {
92943
- if (!containerRef.current || !stickyRef.current) {
92944
- return;
92945
- }
92946
- const scrollingOffset = src_calculateScrollingOffset(containerRef.current, stickyRef.current);
92947
- if (scrollingOffset > 0) {
92948
- src_scrollUpBy(scrollingOffset, containerRef.current);
92949
- }
92950
- };
92951
- const scrollToItem = (item) => {
92952
- if (!item || !containerRef.current || !stickyRef.current) {
92953
- return;
92954
- }
92955
- const stickyBottom = src_getLogicalBoundingClientRect(stickyRef.current).insetBlockEnd;
92956
- const scrollingOffset = stickyBottom - src_getLogicalBoundingClientRect(item).insetBlockStart;
92957
- if (scrollingOffset > 0) {
92958
- src_scrollUpBy(scrollingOffset, containerRef.current);
92959
- }
92960
- };
92961
- return {
92962
- scrollToTop,
92963
- scrollToItem,
92964
- };
92965
- }
92966
- /**
92967
- * Calculates the scrolling offset between container and
92968
- * sticky element with container offset caused by border
92969
- * or padding
92970
- * @param container
92971
- * @param sticky element inside of container
92972
- * @param containerOffset caused by borders or paddings
92973
- */
92974
- function src_calculateScrollingOffset(container, sticky) {
92975
- const stickyRect = src_getLogicalBoundingClientRect(sticky);
92976
- const containerRect = src_getLogicalBoundingClientRect(container);
92977
- return stickyRect.insetBlockStart - containerRect.insetBlockStart;
92978
- }
92979
- /**
92980
- * Scrolls suitable parent of container up by amount of pixels
92981
- * @param amount pixels to be scrolled up
92982
- * @param container used to determine next parent element for scrolling
92983
- */
92984
- function src_scrollUpBy(amount, container) {
92985
- const parent = src_getOverflowParents(container);
92986
- if (parent.length) {
92987
- // Take next overflow parent in stack
92988
- parent[0].scrollTop -= amount;
92989
- }
92990
- else {
92991
- window.scrollTo({ top: window.pageYOffset - amount });
92992
- }
92993
- }
92994
- //# sourceMappingURL=sticky-scrolling.js.map
92995
93236
  ;// ./node_modules/@cloudscape-design/components/table/use-sticky-header.js
92996
93237
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
92997
93238
  // SPDX-License-Identifier: Apache-2.0
@@ -93592,34 +93833,6 @@ class src_GridNavigationProcessor {
93592
93833
  }
93593
93834
  }
93594
93835
  //# sourceMappingURL=grid-navigation.js.map
93595
- ;// ./node_modules/@cloudscape-design/components/table/tools-header.js
93596
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
93597
- // SPDX-License-Identifier: Apache-2.0
93598
-
93599
-
93600
-
93601
-
93602
-
93603
-
93604
- function src_ToolsHeader({ header, filter, pagination, preferences, setLastUserAction }) {
93605
- const [breakpoint, ref] = src_useContainerBreakpoints(['xs']);
93606
- const isHeaderString = typeof header === 'string';
93607
- const assignHeaderId = (0,src_react.useContext)(src_CollectionLabelContext).assignId;
93608
- const headingId = src_useUniqueId('heading');
93609
- if (assignHeaderId !== undefined && isHeaderString) {
93610
- assignHeaderId(headingId);
93611
- }
93612
- const isSmall = breakpoint === 'default';
93613
- const hasTools = filter || pagination || preferences;
93614
- return (src_react.createElement(src_react.Fragment, null,
93615
- isHeaderString ? src_react.createElement("span", { id: headingId }, header) : header,
93616
- hasTools && (src_react.createElement("div", { ref: ref, className: src_clsx_m(src_table_styles_css.tools, isSmall && src_table_styles_css['tools-small']) },
93617
- filter && (src_react.createElement("div", { className: src_table_styles_css['tools-filtering'], onClickCapture: () => setLastUserAction === null || setLastUserAction === void 0 ? void 0 : setLastUserAction('filter'), onKeyDownCapture: () => setLastUserAction === null || setLastUserAction === void 0 ? void 0 : setLastUserAction('filter') }, filter)),
93618
- src_react.createElement("div", { className: src_table_styles_css['tools-align-right'] },
93619
- pagination && (src_react.createElement("div", { className: src_table_styles_css['tools-pagination'], onClickCapture: () => setLastUserAction === null || setLastUserAction === void 0 ? void 0 : setLastUserAction('pagination') }, pagination)),
93620
- preferences && (src_react.createElement("div", { className: src_table_styles_css['tools-preferences'], onClickCapture: () => setLastUserAction === null || setLastUserAction === void 0 ? void 0 : setLastUserAction('preferences') }, preferences)))))));
93621
- }
93622
- //# sourceMappingURL=tools-header.js.map
93623
93836
  ;// ./node_modules/@cloudscape-design/components/table/use-cell-editing.js
93624
93837
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
93625
93838
  // SPDX-License-Identifier: Apache-2.0
@@ -123696,7 +123909,7 @@ var src_Hotspot_excluded=["renderHotspot","children"];var src_Hotspot_Hotspot=fu
123696
123909
  ;// ./src/consts.ts
123697
123910
  var src_consts_DATE_TIME_FORMAT="MM/dd/yyyy HH:mm";var src_DISCORD_URL="https://discord.gg/u8SmfwPpMd";var src_QUICK_START_URL="https://dstack.ai/docs/quickstart/";var src_TALLY_FORM_ID="3xYlYG";var src_DOCS_URL="https://dstack.ai/docs/";var src_DEFAULT_TABLE_PAGE_SIZE=20;
123698
123911
  ;// ./src/routes.ts
123699
- var src_routes_ROUTES={BASE:"/",LOGOUT:"/logout",AUTH:{GITHUB_CALLBACK:"/auth/github/callback",OKTA_CALLBACK:"/auth/okta/callback",ENTRA_CALLBACK:"/auth/entra/callback",GOOGLE_CALLBACK:"/auth/google/callback",TOKEN:"/auth/token"},PROJECT:{LIST:"/projects",ADD:"/projects/add",DETAILS:{TEMPLATE:"/projects/:projectName",FORMAT:function(projectName){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.TEMPLATE,{projectName:projectName})},SETTINGS:{TEMPLATE:"/projects/:projectName",FORMAT:function(projectName){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.SETTINGS.TEMPLATE,{projectName:projectName})}},RUNS:{DETAILS:{TEMPLATE:"/projects/:projectName/runs/:runId",FORMAT:function(projectName,runId){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.TEMPLATE,{projectName:projectName,runId:runId})},METRICS:{TEMPLATE:"/projects/:projectName/runs/:runId/metrics",FORMAT:function(projectName,runId){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.METRICS.TEMPLATE,{projectName:projectName,runId:runId})}},LOGS:{TEMPLATE:"/projects/:projectName/runs/:runId/logs",FORMAT:function(projectName,runId){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.LOGS.TEMPLATE,{projectName:projectName,runId:runId})}},JOBS:{DETAILS:{TEMPLATE:"/projects/:projectName/runs/:runId/jobs/:jobName",FORMAT:function(projectName,runId,jobName){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.JOBS.DETAILS.TEMPLATE,{projectName:projectName,runId:runId,jobName:jobName})},METRICS:{TEMPLATE:"/projects/:projectName/runs/:runId/jobs/:jobName/metrics",FORMAT:function(projectName,runId,jobName){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.JOBS.DETAILS.METRICS.TEMPLATE,{projectName:projectName,runId:runId,jobName:jobName})}},LOGS:{TEMPLATE:"/projects/:projectName/runs/:runId/jobs/:jobName/logs",FORMAT:function(projectName,runId,jobName){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.JOBS.DETAILS.LOGS.TEMPLATE,{projectName:projectName,runId:runId,jobName:jobName})}}}}}}},BACKEND:{ADD:{TEMPLATE:"/projects/:projectName/backends/add",FORMAT:function(projectName){return src_buildRoute(src_routes_ROUTES.PROJECT.BACKEND.ADD.TEMPLATE,{projectName:projectName})}},EDIT:{TEMPLATE:"/projects/:projectName/backends/:backend",FORMAT:function(projectName,backendName){return src_buildRoute(src_routes_ROUTES.PROJECT.BACKEND.EDIT.TEMPLATE,{projectName:projectName,backend:backendName})}}},GATEWAY:{ADD:{TEMPLATE:"/projects/:projectName/gateways/add",FORMAT:function(projectName){return src_buildRoute(src_routes_ROUTES.PROJECT.GATEWAY.ADD.TEMPLATE,{projectName:projectName})}},EDIT:{TEMPLATE:"/projects/:projectName/gateways/:instance",FORMAT:function(projectName,instanceName){return src_buildRoute(src_routes_ROUTES.PROJECT.GATEWAY.EDIT.TEMPLATE,{projectName:projectName,instance:instanceName})}}}},RUNS:{LIST:"/runs"},MODELS:{LIST:"/models",DETAILS:{TEMPLATE:"/projects/:projectName/models/:runName",FORMAT:function(projectName,runName){return src_buildRoute(src_routes_ROUTES.MODELS.DETAILS.TEMPLATE,{projectName:projectName,runName:runName})}}},FLEETS:{LIST:"/fleets",DETAILS:{TEMPLATE:"/projects/:projectName/fleets/:fleetId",FORMAT:function(projectName,fleetId){return src_buildRoute(src_routes_ROUTES.FLEETS.DETAILS.TEMPLATE,{projectName:projectName,fleetId:fleetId})}}},INSTANCES:{LIST:"/instances"},VOLUMES:{LIST:"/volumes"},USER:{LIST:"/users",ADD:"/users/add",DETAILS:{TEMPLATE:"/users/:userName",FORMAT:function(userName){return src_buildRoute(src_routes_ROUTES.USER.DETAILS.TEMPLATE,{userName:userName})}},EDIT:{TEMPLATE:"/users/:userName/edit",FORMAT:function(userName){return src_buildRoute(src_routes_ROUTES.USER.EDIT.TEMPLATE,{userName:userName})}},PROJECTS:{TEMPLATE:"/users/:userName/projects",FORMAT:function(userName){return src_buildRoute(src_routes_ROUTES.USER.PROJECTS.TEMPLATE,{userName:userName})}},BILLING:{LIST:{TEMPLATE:"/users/:userName/billing",FORMAT:function(userName){return src_buildRoute(src_routes_ROUTES.USER.BILLING.LIST.TEMPLATE,{userName:userName})}},ADD_PAYMENT:{TEMPLATE:"/users/:userName/billing/payments/add",FORMAT:function(userName){return src_buildRoute(src_routes_ROUTES.USER.BILLING.ADD_PAYMENT.TEMPLATE,{userName:userName})}}}},BILLING:{BALANCE:"/billing"}};
123912
+ var src_routes_ROUTES={BASE:"/",LOGOUT:"/logout",AUTH:{GITHUB_CALLBACK:"/auth/github/callback",OKTA_CALLBACK:"/auth/okta/callback",ENTRA_CALLBACK:"/auth/entra/callback",GOOGLE_CALLBACK:"/auth/google/callback",TOKEN:"/auth/token"},PROJECT:{LIST:"/projects",ADD:"/projects/add",DETAILS:{TEMPLATE:"/projects/:projectName",FORMAT:function(projectName){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.TEMPLATE,{projectName:projectName})},SETTINGS:{TEMPLATE:"/projects/:projectName",FORMAT:function(projectName){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.SETTINGS.TEMPLATE,{projectName:projectName})}},RUNS:{DETAILS:{TEMPLATE:"/projects/:projectName/runs/:runId",FORMAT:function(projectName,runId){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.TEMPLATE,{projectName:projectName,runId:runId})},METRICS:{TEMPLATE:"/projects/:projectName/runs/:runId/metrics",FORMAT:function(projectName,runId){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.METRICS.TEMPLATE,{projectName:projectName,runId:runId})}},LOGS:{TEMPLATE:"/projects/:projectName/runs/:runId/logs",FORMAT:function(projectName,runId){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.LOGS.TEMPLATE,{projectName:projectName,runId:runId})}},JOBS:{DETAILS:{TEMPLATE:"/projects/:projectName/runs/:runId/jobs/:jobName",FORMAT:function(projectName,runId,jobName){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.JOBS.DETAILS.TEMPLATE,{projectName:projectName,runId:runId,jobName:jobName})},METRICS:{TEMPLATE:"/projects/:projectName/runs/:runId/jobs/:jobName/metrics",FORMAT:function(projectName,runId,jobName){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.JOBS.DETAILS.METRICS.TEMPLATE,{projectName:projectName,runId:runId,jobName:jobName})}},LOGS:{TEMPLATE:"/projects/:projectName/runs/:runId/jobs/:jobName/logs",FORMAT:function(projectName,runId,jobName){return src_buildRoute(src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.JOBS.DETAILS.LOGS.TEMPLATE,{projectName:projectName,runId:runId,jobName:jobName})}}}}}}},BACKEND:{ADD:{TEMPLATE:"/projects/:projectName/backends/add",FORMAT:function(projectName){return src_buildRoute(src_routes_ROUTES.PROJECT.BACKEND.ADD.TEMPLATE,{projectName:projectName})}},EDIT:{TEMPLATE:"/projects/:projectName/backends/:backend",FORMAT:function(projectName,backendName){return src_buildRoute(src_routes_ROUTES.PROJECT.BACKEND.EDIT.TEMPLATE,{projectName:projectName,backend:backendName})}}},GATEWAY:{ADD:{TEMPLATE:"/projects/:projectName/gateways/add",FORMAT:function(projectName){return src_buildRoute(src_routes_ROUTES.PROJECT.GATEWAY.ADD.TEMPLATE,{projectName:projectName})}},EDIT:{TEMPLATE:"/projects/:projectName/gateways/:instance",FORMAT:function(projectName,instanceName){return src_buildRoute(src_routes_ROUTES.PROJECT.GATEWAY.EDIT.TEMPLATE,{projectName:projectName,instance:instanceName})}}}},RUNS:{LIST:"/runs"},OFFERS:{LIST:"/offers"},MODELS:{LIST:"/models",DETAILS:{TEMPLATE:"/projects/:projectName/models/:runName",FORMAT:function(projectName,runName){return src_buildRoute(src_routes_ROUTES.MODELS.DETAILS.TEMPLATE,{projectName:projectName,runName:runName})}}},FLEETS:{LIST:"/fleets",DETAILS:{TEMPLATE:"/projects/:projectName/fleets/:fleetId",FORMAT:function(projectName,fleetId){return src_buildRoute(src_routes_ROUTES.FLEETS.DETAILS.TEMPLATE,{projectName:projectName,fleetId:fleetId})}}},INSTANCES:{LIST:"/instances"},VOLUMES:{LIST:"/volumes"},USER:{LIST:"/users",ADD:"/users/add",DETAILS:{TEMPLATE:"/users/:userName",FORMAT:function(userName){return src_buildRoute(src_routes_ROUTES.USER.DETAILS.TEMPLATE,{userName:userName})}},EDIT:{TEMPLATE:"/users/:userName/edit",FORMAT:function(userName){return src_buildRoute(src_routes_ROUTES.USER.EDIT.TEMPLATE,{userName:userName})}},PROJECTS:{TEMPLATE:"/users/:userName/projects",FORMAT:function(userName){return src_buildRoute(src_routes_ROUTES.USER.PROJECTS.TEMPLATE,{userName:userName})}},BILLING:{LIST:{TEMPLATE:"/users/:userName/billing",FORMAT:function(userName){return src_buildRoute(src_routes_ROUTES.USER.BILLING.LIST.TEMPLATE,{userName:userName})}},ADD_PAYMENT:{TEMPLATE:"/users/:userName/billing/payments/add",FORMAT:function(userName){return src_buildRoute(src_routes_ROUTES.USER.BILLING.ADD_PAYMENT.TEMPLATE,{userName:userName})}}}},BILLING:{BALANCE:"/billing"}};
123700
123913
  ;// ./src/api.ts
123701
123914
  var src_BASE_URL="/api";var src_API={BASE:function(){return"".concat(src_BASE_URL)},AUTH:{BASE:function(){return"".concat(src_API.BASE(),"/auth")},GITHUB:{BASE:function(){return"".concat(src_API.AUTH.BASE(),"/github")},AUTHORIZE:function(){return"".concat(src_API.AUTH.GITHUB.BASE(),"/authorize")},CALLBACK:function(){return"".concat(src_API.AUTH.GITHUB.BASE(),"/callback")}},OKTA:{BASE:function(){return"".concat(src_API.AUTH.BASE(),"/okta")},INFO:function(){return"".concat(src_API.AUTH.OKTA.BASE(),"/info")},AUTHORIZE:function(){return"".concat(src_API.AUTH.OKTA.BASE(),"/authorize")},CALLBACK:function(){return"".concat(src_API.AUTH.OKTA.BASE(),"/callback")}},ENTRA:{BASE:function(){return"".concat(src_API.AUTH.BASE(),"/entra")},INFO:function(){return"".concat(src_API.AUTH.ENTRA.BASE(),"/info")},AUTHORIZE:function(){return"".concat(src_API.AUTH.ENTRA.BASE(),"/authorize")},CALLBACK:function(){return"".concat(src_API.AUTH.ENTRA.BASE(),"/callback")}},GOOGLE:{BASE:function(){return"".concat(src_API.AUTH.BASE(),"/google")},INFO:function(){return"".concat(src_API.AUTH.GOOGLE.BASE(),"/info")},AUTHORIZE:function(){return"".concat(src_API.AUTH.GOOGLE.BASE(),"/authorize")},CALLBACK:function(){return"".concat(src_API.AUTH.GOOGLE.BASE(),"/callback")}}},USERS:{BASE:function(){return"".concat(src_API.BASE(),"/users")},LIST:function(){return"".concat(src_API.USERS.BASE(),"/list")},CREATE:function(){return"".concat(src_API.USERS.BASE(),"/create")},UPDATE:function(){return"".concat(src_API.USERS.BASE(),"/update")},DETAILS:function(){return"".concat(src_API.USERS.BASE(),"/get_user")},CURRENT_USER:function(){return"".concat(src_API.USERS.BASE(),"/get_my_user")},REFRESH_TOKEN:function(){return"".concat(src_API.USERS.BASE(),"/refresh_token")},DELETE:function(){return"".concat(src_API.USERS.BASE(),"/delete")}},USER_PAYMENTS:{BASE:function(username){return"".concat(src_API.BASE(),"/user/").concat(username,"/payments")},LIST:function(username){return"".concat(src_API.USER_PAYMENTS.BASE(username),"/list")},ADD:function(username){return"".concat(src_API.USER_PAYMENTS.BASE(username),"/add")}},USER_BILLING:{BASE:function(username){return"".concat(src_API.BASE(),"/user/").concat(username,"/billing")},INFO:function(username){return"".concat(src_API.USER_BILLING.BASE(username),"/info")},CHECKOUT_SESSION:function(username){return"".concat(src_API.USER_BILLING.BASE(username),"/checkout_session")},PORTAL_SESSION:function(username){return"".concat(src_API.USER_BILLING.BASE(username),"/portal_session")}},PROJECTS:{BASE:function(){return"".concat(src_API.BASE(),"/projects")},LIST:function(){return"".concat(src_API.PROJECTS.BASE(),"/list")},CREATE:function(){return"".concat(src_API.PROJECTS.BASE(),"/create")},DELETE:function(){return"".concat(src_API.PROJECTS.BASE(),"/delete")},DETAILS:function(name){return"".concat(src_API.PROJECTS.BASE(),"/").concat(name)},DETAILS_INFO:function(name){return"".concat(src_API.PROJECTS.DETAILS(name),"/get")},SET_MEMBERS:function(name){return"".concat(src_API.PROJECTS.DETAILS(name),"/set_members")},ADD_MEMBERS:function(name){return"".concat(src_API.PROJECTS.DETAILS(name),"/add_members")},REMOVE_MEMBERS:function(name){return"".concat(src_API.PROJECTS.DETAILS(name),"/remove_members")},UPDATE:function(name){return"".concat(src_API.PROJECTS.DETAILS(name),"/update")},// Repos
123702
123915
  REPOS:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/repos")},REPOS_LIST:function(projectName){return"".concat(src_API.PROJECTS.REPOS(projectName),"/list")},// Runs
@@ -123706,7 +123919,8 @@ ARTIFACTS:function(projectName){return"".concat(src_API.BASE(),"/project/").conc
123706
123919
  FLEETS:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/fleets/list")},FLEETS_DETAILS:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/fleets/get")},FLEETS_DELETE:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/fleets/delete")},FLEET_INSTANCES_DELETE:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/fleets/delete_instances")},// Fleets
123707
123920
  VOLUMES_DELETE:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/volumes/delete")},// METRICS
123708
123921
  JOB_METRICS:function(projectName,runName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/metrics/job/").concat(runName)},// SECRETS
123709
- SECRETS_LIST:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/secrets/list")},SECRET_GET:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/secrets/get")},SECRETS_UPDATE:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/secrets/create_or_update")},SECRETS_DELETE:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/secrets/delete")}},BACKENDS:{BASE:function(){return"".concat(src_API.BASE(),"/backends")},LIST_TYPES:function(){return"".concat(src_API.BACKENDS.BASE(),"/list_types")},CONFIG_VALUES:function(){return"".concat(src_API.BACKENDS.BASE(),"/config_values")}},PROJECT_BACKENDS:{BASE:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/backends")},LIST:function(projectName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/list")},CREATE:function(projectName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/create")},UPDATE:function(projectName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/update")},DELETE:function(projectName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/delete")},BACKEND_CONFIG_INFO:function(projectName,backendName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/").concat(backendName,"/config_info")},CREATE_YAML:function(projectName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/create_yaml")},UPDATE_YAML:function(projectName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/update_yaml")},GET_YAML:function(projectName,backendName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/").concat(backendName,"/get_yaml")}},PROJECT_GATEWAYS:{BASE:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/gateways")},LIST:function(projectName){return"".concat(src_API.PROJECT_GATEWAYS.BASE(projectName),"/list")},CREATE:function(projectName){return"".concat(src_API.PROJECT_GATEWAYS.BASE(projectName),"/create")},DELETE:function(projectName){return"".concat(src_API.PROJECT_GATEWAYS.BASE(projectName),"/delete")},DETAILS:function(projectName){return"".concat(src_API.PROJECT_GATEWAYS.BASE(projectName),"/get")},SET_DEFAULT:function(projectName){return"".concat(src_API.PROJECT_GATEWAYS.BASE(projectName),"/set_default")},SET_WILDCARD_DOMAIN:function(projectName){return"".concat(src_API.PROJECT_GATEWAYS.BASE(projectName),"/set_wildcard_domain")}// TEST_DOMAIN: (projectName: IProject['project_name'], instanceName: string) =>
123922
+ SECRETS_LIST:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/secrets/list")},SECRET_GET:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/secrets/get")},SECRETS_UPDATE:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/secrets/create_or_update")},SECRETS_DELETE:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/secrets/delete")},// GPUS
123923
+ GPUS_LIST:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/gpus/list")}},BACKENDS:{BASE:function(){return"".concat(src_API.BASE(),"/backends")},LIST_TYPES:function(){return"".concat(src_API.BACKENDS.BASE(),"/list_types")},CONFIG_VALUES:function(){return"".concat(src_API.BACKENDS.BASE(),"/config_values")}},PROJECT_BACKENDS:{BASE:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/backends")},LIST:function(projectName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/list")},CREATE:function(projectName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/create")},UPDATE:function(projectName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/update")},DELETE:function(projectName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/delete")},BACKEND_CONFIG_INFO:function(projectName,backendName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/").concat(backendName,"/config_info")},CREATE_YAML:function(projectName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/create_yaml")},UPDATE_YAML:function(projectName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/update_yaml")},GET_YAML:function(projectName,backendName){return"".concat(src_API.PROJECT_BACKENDS.BASE(projectName),"/").concat(backendName,"/get_yaml")}},PROJECT_GATEWAYS:{BASE:function(projectName){return"".concat(src_API.BASE(),"/project/").concat(projectName,"/gateways")},LIST:function(projectName){return"".concat(src_API.PROJECT_GATEWAYS.BASE(projectName),"/list")},CREATE:function(projectName){return"".concat(src_API.PROJECT_GATEWAYS.BASE(projectName),"/create")},DELETE:function(projectName){return"".concat(src_API.PROJECT_GATEWAYS.BASE(projectName),"/delete")},DETAILS:function(projectName){return"".concat(src_API.PROJECT_GATEWAYS.BASE(projectName),"/get")},SET_DEFAULT:function(projectName){return"".concat(src_API.PROJECT_GATEWAYS.BASE(projectName),"/set_default")},SET_WILDCARD_DOMAIN:function(projectName){return"".concat(src_API.PROJECT_GATEWAYS.BASE(projectName),"/set_wildcard_domain")}// TEST_DOMAIN: (projectName: IProject['project_name'], instanceName: string) =>
123710
123924
  // `${API.PROJECT_GATEWAYS.DETAILS(projectName, instanceName)}/test_domain`,
123711
123925
  },RUNS:{BASE:function(){return"".concat(src_API.BASE(),"/runs")},LIST:function(){return"".concat(src_API.RUNS.BASE(),"/list")}},FLEETS:{BASE:function(){return"".concat(src_API.BASE(),"/fleets")},LIST:function(){return"".concat(src_API.FLEETS.BASE(),"/list")}},INSTANCES:{BASE:function(){return"".concat(src_API.BASE(),"/instances")},LIST:function(){return"".concat(src_API.INSTANCES.BASE(),"/list")}},SERVER:{BASE:function(){return"".concat(src_API.BASE(),"/server")},INFO:function(){return"".concat(src_API.SERVER.BASE(),"/get_info")}},VOLUME:{BASE:function(){return"".concat(src_API.BASE(),"/volumes")},LIST:function(){return"".concat(src_API.VOLUME.BASE(),"/list")}}};
123712
123926
  ;// ./node_modules/reselect/es/defaultMemoize.js
@@ -126619,7 +126833,7 @@ var src_AWSCredentialTypeEnum=/*#__PURE__*/function(AWSCredentialTypeEnum){retur
126619
126833
  var src_user_excluded=["username"],src_user_excluded2=["username"];function src_user_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function src_user_objectSpread(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?src_user_ownKeys(Object(t),!0).forEach(function(r){src_defineProperty_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):src_user_ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var src_userApi=src_rtk_query_react_esm_createApi({reducerPath:"userApi",refetchOnMountOrArgChange:!0,baseQuery:src_fetchBaseQuery({prepareHeaders:src_fetchBaseQueryHeaders}),tagTypes:["User","Payments","Billing"],endpoints:function(builder){return{getUserData:builder.query({query:function(){return{url:src_API.USERS.CURRENT_USER(),method:"POST"}},transformResponse:function(userData){return src_user_objectSpread(src_user_objectSpread({},userData),{},{permissions:Object.keys(src_userPermissionMap).reduce(function(acc,key){var _userData$permissions;return null!==userData&&void 0!==userData&&null!==(_userData$permissions=userData.permissions)&&void 0!==_userData$permissions&&_userData$permissions[key]&&acc.push(src_UserPermission[src_userPermissionMap[key]]),acc},[])})}}),getUserList:builder.query({query:function(){return{url:src_API.USERS.LIST(),method:"POST"}},providesTags:function(result){return result?[].concat(src_toConsumableArray_toConsumableArray(result.map(function(_ref){var username=_ref.username;return{type:"User",id:username}})),["User"]):["User"]}}),getUser:builder.query({query:function(_ref2){var name=_ref2.name;return{url:src_API.USERS.DETAILS(),method:"POST",body:{username:name}}},providesTags:function(result){return result?[{type:"User",id:result.username}]:[]}}),checkAuthToken:builder.mutation({query:function(_ref3){var token=_ref3.token;return{url:src_API.USERS.CURRENT_USER(),method:"POST",headers:{Authorization:"Bearer ".concat(token)}}}}),createUser:builder.mutation({query:function(user){return{url:src_API.USERS.CREATE(),method:"POST",body:user}},invalidatesTags:function(result){return[{type:"User",id:null===result||void 0===result?void 0:result.username},"User"]}}),updateUser:builder.mutation({query:function(user){return{url:src_API.USERS.UPDATE(),method:"POST",body:user}},invalidatesTags:function(result){return[{type:"User",id:null===result||void 0===result?void 0:result.username}]}}),refreshToken:builder.mutation({query:function(_ref4){var username=_ref4.username;return{url:src_API.USERS.REFRESH_TOKEN(),method:"POST",body:{username:username}}},// invalidatesTags: (result, error, { username }) => [{ type: 'User' as const, id: username }],
126620
126834
  onQueryStarted:function(_ref5,_ref6){return src_asyncToGenerator_asyncToGenerator(/*#__PURE__*/src_regenerator_default().mark(function _callee(){var username,dispatch,queryFulfilled,_yield$queryFulfilled,data;return src_regenerator_default().wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:return username=_ref5.username,dispatch=_ref6.dispatch,queryFulfilled=_ref6.queryFulfilled,_context.prev=2,_context.next=5,queryFulfilled;case 5:_yield$queryFulfilled=_context.sent,data=_yield$queryFulfilled.data,dispatch(src_userApi.util.updateQueryData("getUser",{name:username},function(draft){Object.assign(draft,data)})),_context.next=13;break;case 10:_context.prev=10,_context.t0=_context["catch"](2),console.log(_context.t0);case 13:case"end":return _context.stop()}},_callee,null,[[2,10]])}))()}}),deleteUsers:builder.mutation({query:function(userNames){return{url:src_API.USERS.DELETE(),method:"POST",body:{users:userNames}}},invalidatesTags:["User"]}),getUserPayments:builder.query({query:function(_ref7){var username=_ref7.username;return{url:src_API.USER_PAYMENTS.LIST(username),method:"POST"}},providesTags:function(result){return result?[].concat(src_toConsumableArray_toConsumableArray(result.map(function(_ref8){var id=_ref8.id;return{type:"Payments",id:id}})),["Payments"]):["Payments"]}}),addUserPayment:builder.mutation({query:function(_ref9){var username=_ref9.username,body=src_objectWithoutProperties_objectWithoutProperties(_ref9,src_user_excluded);return{url:src_API.USER_PAYMENTS.ADD(username),method:"POST",body:body}},invalidatesTags:["Payments"]}),getUserBillingInfo:builder.query({query:function(_ref10){var username=_ref10.username;return{url:src_API.USER_BILLING.INFO(username),method:"POST"}},transformResponse:function(response){return src_user_objectSpread({},response)},providesTags:["Billing"]}),userBillingCheckoutSession:builder.mutation({query:function(_ref11){var username=_ref11.username,body=src_objectWithoutProperties_objectWithoutProperties(_ref11,src_user_excluded2);return{url:src_API.USER_BILLING.CHECKOUT_SESSION(username),method:"POST",body:body}},invalidatesTags:["Billing"]}),userBillingPortalSession:builder.mutation({query:function(_ref12){var username=_ref12.username;return{url:src_API.USER_BILLING.PORTAL_SESSION(username),method:"POST"}},invalidatesTags:["Billing"]})}}});var src_useGetUserDataQuery=src_userApi.useGetUserDataQuery,src_useGetUserListQuery=src_userApi.useGetUserListQuery,src_useGetUserQuery=src_userApi.useGetUserQuery,src_useCheckAuthTokenMutation=src_userApi.useCheckAuthTokenMutation,src_useCreateUserMutation=src_userApi.useCreateUserMutation,src_useDeleteUsersMutation=src_userApi.useDeleteUsersMutation,src_useUpdateUserMutation=src_userApi.useUpdateUserMutation,src_useRefreshTokenMutation=src_userApi.useRefreshTokenMutation,src_user_useGetUserPaymentsQuery=src_userApi.useGetUserPaymentsQuery,src_useAddUserPaymentMutation=src_userApi.useAddUserPaymentMutation,src_user_useGetUserBillingInfoQuery=src_userApi.useGetUserBillingInfoQuery,src_user_useUserBillingCheckoutSessionMutation=src_userApi.useUserBillingCheckoutSessionMutation,src_useUserBillingPortalSessionMutation=src_userApi.useUserBillingPortalSessionMutation;
126621
126835
  ;// ./src/layouts/AppLayout/hooks.ts
126622
- var src_useSideNavigation=function(){var _useAppSelector,_serverInfoData$serve,_useTranslation=src_useTranslation_useTranslation(),t=_useTranslation.t,userName=null!==(_useAppSelector=src_hooks_useAppSelector(src_slice_selectUserName))&&void 0!==_useAppSelector?_useAppSelector:"",_useLocation=src_dist_useLocation(),pathname=_useLocation.pathname,_usePermissionGuard=src_usePermissionGuard({allowedGlobalRoles:[src_types_GlobalUserRole.ADMIN]}),_usePermissionGuard2=src_slicedToArray_slicedToArray(_usePermissionGuard,1),isGlobalAdmin=_usePermissionGuard2[0],_useGetServerInfoQuer=src_useGetServerInfoQuery(),serverInfoData=_useGetServerInfoQuer.data,isPoolDetails=!!src_useMatch(src_routes_ROUTES.FLEETS.DETAILS.TEMPLATE),billingUrl=src_routes_ROUTES.USER.BILLING.LIST.FORMAT(userName),userProjectsUrl=src_routes_ROUTES.USER.PROJECTS.FORMAT(userName),generalLinks=[{type:"link",text:t("navigation.runs"),href:src_routes_ROUTES.RUNS.LIST},{type:"link",text:t("navigation.models"),href:src_routes_ROUTES.MODELS.LIST},{type:"link",text:t("navigation.fleets"),href:src_routes_ROUTES.FLEETS.LIST},{type:"link",text:t("navigation.instances"),href:src_routes_ROUTES.INSTANCES.LIST},{type:"link",text:t("navigation.volumes"),href:src_routes_ROUTES.VOLUMES.LIST},{type:"link",text:t("navigation.project_other"),href:src_routes_ROUTES.PROJECT.LIST},isGlobalAdmin&&{type:"link",text:t("navigation.users"),href:src_routes_ROUTES.USER.LIST}].filter(Boolean),userSettingsLinks=[{type:"link",text:t("navigation.settings"),href:src_routes_ROUTES.USER.DETAILS.FORMAT(userName)},{type:"link",text:t("users.projects"),href:userProjectsUrl}, false&&0].filter(Boolean),navLinks=[{type:"section-group",title:t("navigation.general"),items:generalLinks},{type:"divider"},{type:"section-group",title:t("navigation.account"),items:userSettingsLinks},{type:"divider"},{type:"link",href:"#version",text:"dstack version: ".concat(null!==(_serverInfoData$serve=null===serverInfoData||void 0===serverInfoData?void 0:serverInfoData.server_version)&&void 0!==_serverInfoData$serve?_serverInfoData$serve:"No version")}].filter(Boolean),activeHref=(0,src_react.useMemo)(function(){if(isPoolDetails)return src_routes_ROUTES.FLEETS.LIST;var generalActiveLink=generalLinks.find(function(linkItem){return 0===pathname.indexOf(linkItem.href)});if(generalActiveLink)return pathname;var settingsActiveLink=userSettingsLinks.find(function(linkItem){return linkItem.href===pathname});return settingsActiveLink?pathname:"/"+pathname.split("/")[1]},[pathname,userName]);return{navLinks:navLinks,activeHref:activeHref,billingUrl:billingUrl}};
126836
+ var src_useSideNavigation=function(){var _useAppSelector,_serverInfoData$serve,_useTranslation=src_useTranslation_useTranslation(),t=_useTranslation.t,userName=null!==(_useAppSelector=src_hooks_useAppSelector(src_slice_selectUserName))&&void 0!==_useAppSelector?_useAppSelector:"",_useLocation=src_dist_useLocation(),pathname=_useLocation.pathname,_usePermissionGuard=src_usePermissionGuard({allowedGlobalRoles:[src_types_GlobalUserRole.ADMIN]}),_usePermissionGuard2=src_slicedToArray_slicedToArray(_usePermissionGuard,1),isGlobalAdmin=_usePermissionGuard2[0],_useGetServerInfoQuer=src_useGetServerInfoQuery(),serverInfoData=_useGetServerInfoQuer.data,isPoolDetails=!!src_useMatch(src_routes_ROUTES.FLEETS.DETAILS.TEMPLATE),billingUrl=src_routes_ROUTES.USER.BILLING.LIST.FORMAT(userName),userProjectsUrl=src_routes_ROUTES.USER.PROJECTS.FORMAT(userName),generalLinks=[{type:"link",text:t("navigation.runs"),href:src_routes_ROUTES.RUNS.LIST},{type:"link",text:t("navigation.offers"),href:src_routes_ROUTES.OFFERS.LIST},{type:"link",text:t("navigation.models"),href:src_routes_ROUTES.MODELS.LIST},{type:"link",text:t("navigation.fleets"),href:src_routes_ROUTES.FLEETS.LIST},{type:"link",text:t("navigation.instances"),href:src_routes_ROUTES.INSTANCES.LIST},{type:"link",text:t("navigation.volumes"),href:src_routes_ROUTES.VOLUMES.LIST},{type:"link",text:t("navigation.project_other"),href:src_routes_ROUTES.PROJECT.LIST},isGlobalAdmin&&{type:"link",text:t("navigation.users"),href:src_routes_ROUTES.USER.LIST}].filter(Boolean),userSettingsLinks=[{type:"link",text:t("navigation.settings"),href:src_routes_ROUTES.USER.DETAILS.FORMAT(userName)},{type:"link",text:t("users.projects"),href:userProjectsUrl}, false&&0].filter(Boolean),navLinks=[{type:"section-group",title:t("navigation.general"),items:generalLinks},{type:"divider"},{type:"section-group",title:t("navigation.account"),items:userSettingsLinks},{type:"divider"},{type:"link",href:"#version",text:"dstack version: ".concat(null!==(_serverInfoData$serve=null===serverInfoData||void 0===serverInfoData?void 0:serverInfoData.server_version)&&void 0!==_serverInfoData$serve?_serverInfoData$serve:"No version")}].filter(Boolean),activeHref=(0,src_react.useMemo)(function(){if(isPoolDetails)return src_routes_ROUTES.FLEETS.LIST;var generalActiveLink=generalLinks.find(function(linkItem){return 0===pathname.indexOf(linkItem.href)});if(generalActiveLink)return pathname;var settingsActiveLink=userSettingsLinks.find(function(linkItem){return linkItem.href===pathname});return settingsActiveLink?pathname:"/"+pathname.split("/")[1]},[pathname,userName]);return{navLinks:navLinks,activeHref:activeHref,billingUrl:billingUrl}};
126623
126837
  ;// ./src/layouts/AppLayout/TutorialPanel/hooks.ts
126624
126838
  function src_hooks_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function src_hooks_objectSpread(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?src_hooks_ownKeys(Object(t),!0).forEach(function(r){src_defineProperty_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):src_hooks_ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var src_hooks_useTutorials=function(){var navigate=src_dist_useNavigate(),dispatch=src_hooks_useAppDispatch(),_useSideNavigation=src_useSideNavigation(),billingUrl=_useSideNavigation.billingUrl,useName=src_hooks_useAppSelector(src_slice_selectUserName),_useAppSelector=src_hooks_useAppSelector(src_slice_selectTutorialPanel),billingCompleted=_useAppSelector.billingCompleted,configureCLICompleted=_useAppSelector.configureCLICompleted,discordCompleted=_useAppSelector.discordCompleted,tallyCompleted=_useAppSelector.tallyCompleted,quickStartCompleted=_useAppSelector.quickStartCompleted,hideStartUp=_useAppSelector.hideStartUp,_useGetUserBillingInf=src_user_useGetUserBillingInfoQuery({username:null!==useName&&void 0!==useName?useName:""},{skip:!useName}),userBillingData=_useGetUserBillingInf.data,_useGetRunsQuery=src_useGetRunsQuery({limit:1}),runsData=_useGetRunsQuery.data,completeIsChecked=(0,src_react.useRef)(!1);(0,src_react.useEffect)(function(){if(userBillingData&&runsData&&!completeIsChecked.current){var _billingCompleted=0<userBillingData.balance,_configureCLICompleted=0<runsData.length,tempHideStartUp=hideStartUp;// Set hideStartUp without updating localstorage
126625
126839
  null===hideStartUp&&(tempHideStartUp=_billingCompleted&&_configureCLICompleted),dispatch(src_updateTutorialPanelState({billingCompleted:_billingCompleted,configureCLICompleted:_configureCLICompleted,hideStartUp:tempHideStartUp})),tempHideStartUp||"sky"!=="enterprise"||0,completeIsChecked.current=!0}},[userBillingData,runsData]);var startBillingTutorial=(0,src_react.useCallback)(function(){navigate(billingUrl)},[billingUrl]),finishBillingTutorial=(0,src_react.useCallback)(function(){dispatch(src_updateTutorialPanelState({billingCompleted:!0}))},[]),startConfigCliTutorial=(0,src_react.useCallback)(function(){},[billingUrl]),finishConfigCliTutorial=(0,src_react.useCallback)(function(){dispatch(src_updateTutorialPanelState({configureCLICompleted:!0}))},[]),startDiscordTutorial=(0,src_react.useCallback)(function(){src_libs_goToUrl(src_DISCORD_URL,!0),dispatch(src_updateTutorialPanelState({discordCompleted:!0}))},[]),startQuickStartTutorial=(0,src_react.useCallback)(function(){src_libs_goToUrl(src_QUICK_START_URL,!0),dispatch(src_updateTutorialPanelState({quickStartCompleted:!0}))},[]),tutorials=(0,src_react.useMemo)(function(){return[// {
@@ -129486,7 +129700,7 @@ var src_useLocalStorageState=function(key,defaultState){var storageItem=localSto
129486
129700
  ;// ./src/hooks/useProjectFilter.ts
129487
129701
  var src_useProjectFilter=function(_ref){var localStorePrefix=_ref.localStorePrefix,_useLocalStorageState=src_useLocalStorageState("".concat(localStorePrefix,"-project_name"),null),_useLocalStorageState2=src_slicedToArray_slicedToArray(_useLocalStorageState,2),selectedProject=_useLocalStorageState2[0],setSelectedProject=_useLocalStorageState2[1],_useGetProjectsQuery=src_useGetProjectsQuery(),projectsData=_useGetProjectsQuery.data,projectOptions=(0,src_react.useMemo)(function(){return null!==projectsData&&void 0!==projectsData&&projectsData.length?projectsData.map(function(project){return{label:project.project_name,value:project.project_name}}):[]},[projectsData]);return (0,src_react.useEffect)(function(){if(projectsData&&selectedProject){var hasSelectedProject=projectsData.some(function(_ref2){var project_name=_ref2.project_name;return(null===selectedProject||void 0===selectedProject?void 0:selectedProject.value)===project_name});hasSelectedProject||setSelectedProject(null)}},[projectsData]),{projectOptions:projectOptions,selectedProject:selectedProject,setSelectedProject:setSelectedProject}};
129488
129702
  ;// ./src/libs/filters.ts
129489
- function src_filters_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function src_filters_objectSpread(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?src_filters_ownKeys(Object(t),!0).forEach(function(r){src_defineProperty_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):src_filters_ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}function src_createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=src_filters_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function(){};return{s:F,n:function(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function src_filters_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return src_filters_arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?src_filters_arrayLikeToArray(r,a):void 0}}function src_filters_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var src_tokensToSearchParams=function(tokens,onlyActive){var params=new URLSearchParams;return tokens.forEach(function(token){token.propertyKey&&params.append(token.propertyKey,token.value)}),onlyActive&&params.append("only_active","true"),params};var src_tokensToRequestParams=function(_ref){var tokens=_ref.tokens,arrayFieldKeys=_ref.arrayFieldKeys;return tokens.reduce(function(acc,token){var propertyKey=token.propertyKey;return propertyKey?null!==arrayFieldKeys&&void 0!==arrayFieldKeys&&arrayFieldKeys.includes(propertyKey)?(Array.isArray(acc[propertyKey])?acc[propertyKey].push(token.value):acc[propertyKey]=[token.value],acc):(acc[propertyKey]=token.value,acc):acc},{})};var src_EMPTY_QUERY={tokens:[],operation:"and"};var src_requestParamsToTokens=function(_ref2){var _step,searchParams=_ref2.searchParams,filterKeys=_ref2.filterKeys,tokens=[],_iterator=src_createForOfIteratorHelper(searchParams.entries());// eslint-disable-next-line @typescript-eslint/ban-ts-comment
129703
+ function src_filters_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function src_filters_objectSpread(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?src_filters_ownKeys(Object(t),!0).forEach(function(r){src_defineProperty_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):src_filters_ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}function src_createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=src_filters_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function(){};return{s:F,n:function(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function src_filters_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return src_filters_arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?src_filters_arrayLikeToArray(r,a):void 0}}function src_filters_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var src_tokensToSearchParams=function(tokens,onlyActive){var params=new URLSearchParams;return tokens.forEach(function(token){token.propertyKey&&params.append(token.propertyKey,token.value)}),onlyActive&&params.append("only_active","true"),params};var src_convertTokenValueToRequestParam=function(token){var value=token.value,operator=token.operator;return">="===operator?{min:+value}:"<="===operator?{max:+value}:value};var src_tokensToRequestParams=function(_ref){var tokens=_ref.tokens,arrayFieldKeys=_ref.arrayFieldKeys;return tokens.reduce(function(acc,token){var propertyKey=token.propertyKey;if(!propertyKey)return acc;var convertedValue=src_convertTokenValueToRequestParam(token);return null!==arrayFieldKeys&&void 0!==arrayFieldKeys&&arrayFieldKeys.includes(propertyKey)?(Array.isArray(acc[propertyKey])?acc[propertyKey].push(convertedValue):acc[propertyKey]=[convertedValue],acc):(acc[propertyKey]=convertedValue,acc)},{})};var src_EMPTY_QUERY={tokens:[],operation:"and"};var src_requestParamsToTokens=function(_ref2){var _step,searchParams=_ref2.searchParams,filterKeys=_ref2.filterKeys,tokens=[],_iterator=src_createForOfIteratorHelper(searchParams.entries());// eslint-disable-next-line @typescript-eslint/ban-ts-comment
129490
129704
  // @ts-ignore
129491
129705
  try{for(_iterator.s();!(_step=_iterator.n()).done;){var _step$value=src_slicedToArray_slicedToArray(_step.value,2),paramKey=_step$value[0],paramValue=_step$value[1];Object.values(filterKeys).includes(paramKey)&&tokens.push({propertyKey:paramKey,operator:"=",value:paramValue})}}catch(err){_iterator.e(err)}finally{_iterator.f()}return tokens.length?src_filters_objectSpread(src_filters_objectSpread({},src_EMPTY_QUERY),{},{tokens:tokens}):src_EMPTY_QUERY};
129492
129706
  ;// ./src/libs/fleet.ts
@@ -129513,7 +129727,7 @@ var src_useColumnDefinitions_useColumnsDefinitions=function(){var _useTranslatio
129513
129727
  ;// ./src/pages/Instances/List/hooks/useEmptyMessage.tsx
129514
129728
  var src_useEmptyMessage_useEmptyMessages=function(_ref){var clearFilter=_ref.clearFilter,isDisabledClearFilter=_ref.isDisabledClearFilter,_useTranslation=src_useTranslation_useTranslation(),t=_useTranslation.t,renderEmptyMessage=(0,src_react.useCallback)(function(){return/*#__PURE__*/src_react.createElement(src_ListEmptyMessage_ListEmptyMessage,{title:t("fleets.instances.empty_message_title"),message:t("fleets.instances.empty_message_text")},/*#__PURE__*/src_react.createElement(src_Button_Button,{disabled:isDisabledClearFilter,onClick:clearFilter},t("common.clearFilter")))},[clearFilter,isDisabledClearFilter]),renderNoMatchMessage=(0,src_react.useCallback)(function(){return/*#__PURE__*/src_react.createElement(src_ListEmptyMessage_ListEmptyMessage,{title:t("fleets.instances.nomatch_message_title"),message:t("fleets.instances.nomatch_message_text")},/*#__PURE__*/src_react.createElement(src_Button_Button,{disabled:isDisabledClearFilter,onClick:clearFilter},t("common.clearFilter")))},[clearFilter,isDisabledClearFilter]);return{renderEmptyMessage:renderEmptyMessage,renderNoMatchMessage:renderNoMatchMessage}};
129515
129729
  ;// ./src/pages/Instances/List/hooks/useFilters.ts
129516
- function src_useFilters_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function src_useFilters_objectSpread(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?src_useFilters_ownKeys(Object(t),!0).forEach(function(r){src_defineProperty_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):src_useFilters_ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var src_useFilters_filterKeys={PROJECT_NAMES:"project_names",FLEET_IDS:"fleet_ids"};var src_useFilters_useFilters=function(){var localStorePrefix=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"instances-list-page",_useSearchParams=src_dist_useSearchParams(),_useSearchParams2=src_slicedToArray_slicedToArray(_useSearchParams,2),searchParams=_useSearchParams2[0],setSearchParams=_useSearchParams2[1],_useState=(0,src_react.useState)(function(){return"true"===searchParams.get("only_active")}),_useState2=src_slicedToArray_slicedToArray(_useState,2),onlyActive=_useState2[0],setOnlyActive=_useState2[1],_useProjectFilter=src_useProjectFilter({localStorePrefix:localStorePrefix}),projectOptions=_useProjectFilter.projectOptions,_useState3=(0,src_react.useState)(function(){return console.log(src_requestParamsToTokens({searchParams:searchParams,filterKeys:src_useFilters_filterKeys})),src_requestParamsToTokens({searchParams:searchParams,filterKeys:src_useFilters_filterKeys})}),_useState4=src_slicedToArray_slicedToArray(_useState3,2),propertyFilterQuery=_useState4[0],setPropertyFilterQuery=_useState4[1],filteringOptions=(0,src_react.useMemo)(function(){var options=[];return projectOptions.forEach(function(_ref){var value=_ref.value;value&&options.push({propertyKey:src_useFilters_filterKeys.PROJECT_NAMES,value:value})}),options},[projectOptions]),filteringProperties=[{key:src_useFilters_filterKeys.PROJECT_NAMES,operators:["="],propertyLabel:"Project",groupValuesLabel:"Project values"},{key:src_useFilters_filterKeys.FLEET_IDS,operators:["="],propertyLabel:"Fleet ID"}],filteringRequestParams=(0,src_react.useMemo)(function(){var params=src_tokensToRequestParams({tokens:propertyFilterQuery.tokens,arrayFieldKeys:[src_useFilters_filterKeys.PROJECT_NAMES,src_useFilters_filterKeys.FLEET_IDS]});return src_useFilters_objectSpread(src_useFilters_objectSpread({},params),{},{only_active:onlyActive})},[propertyFilterQuery,onlyActive]),isDisabledClearFilter=!propertyFilterQuery.tokens.length&&!onlyActive;return{filteringRequestParams:filteringRequestParams,clearFilter:function(){setSearchParams({}),setOnlyActive(!1),setPropertyFilterQuery(src_EMPTY_QUERY)},propertyFilterQuery:propertyFilterQuery,onChangePropertyFilter:function(_ref2){var detail=_ref2.detail,tokens=detail.tokens,operation=detail.operation;setSearchParams(src_tokensToSearchParams(tokens,onlyActive)),setPropertyFilterQuery({operation:operation,tokens:tokens})},filteringOptions:filteringOptions,filteringProperties:filteringProperties,onlyActive:onlyActive,onChangeOnlyActive:function(_ref3){var detail=_ref3.detail;setOnlyActive(detail.checked),setSearchParams(src_tokensToSearchParams(propertyFilterQuery.tokens,detail.checked))},isDisabledClearFilter:isDisabledClearFilter}};
129730
+ function src_useFilters_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function src_useFilters_objectSpread(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?src_useFilters_ownKeys(Object(t),!0).forEach(function(r){src_defineProperty_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):src_useFilters_ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var src_useFilters_filterKeys={PROJECT_NAMES:"project_names",FLEET_IDS:"fleet_ids"};var src_useFilters_useFilters=function(){var localStorePrefix=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"instances-list-page",_useSearchParams=src_dist_useSearchParams(),_useSearchParams2=src_slicedToArray_slicedToArray(_useSearchParams,2),searchParams=_useSearchParams2[0],setSearchParams=_useSearchParams2[1],_useState=(0,src_react.useState)(function(){return"true"===searchParams.get("only_active")}),_useState2=src_slicedToArray_slicedToArray(_useState,2),onlyActive=_useState2[0],setOnlyActive=_useState2[1],_useProjectFilter=src_useProjectFilter({localStorePrefix:localStorePrefix}),projectOptions=_useProjectFilter.projectOptions,_useState3=(0,src_react.useState)(function(){return src_requestParamsToTokens({searchParams:searchParams,filterKeys:src_useFilters_filterKeys})}),_useState4=src_slicedToArray_slicedToArray(_useState3,2),propertyFilterQuery=_useState4[0],setPropertyFilterQuery=_useState4[1],filteringOptions=(0,src_react.useMemo)(function(){var options=[];return projectOptions.forEach(function(_ref){var value=_ref.value;value&&options.push({propertyKey:src_useFilters_filterKeys.PROJECT_NAMES,value:value})}),options},[projectOptions]),filteringProperties=[{key:src_useFilters_filterKeys.PROJECT_NAMES,operators:["="],propertyLabel:"Project",groupValuesLabel:"Project values"},{key:src_useFilters_filterKeys.FLEET_IDS,operators:["="],propertyLabel:"Fleet ID"}],filteringRequestParams=(0,src_react.useMemo)(function(){var params=src_tokensToRequestParams({tokens:propertyFilterQuery.tokens,arrayFieldKeys:[src_useFilters_filterKeys.PROJECT_NAMES,src_useFilters_filterKeys.FLEET_IDS]});return src_useFilters_objectSpread(src_useFilters_objectSpread({},params),{},{only_active:onlyActive})},[propertyFilterQuery,onlyActive]),isDisabledClearFilter=!propertyFilterQuery.tokens.length&&!onlyActive;return{filteringRequestParams:filteringRequestParams,clearFilter:function(){setSearchParams({}),setOnlyActive(!1),setPropertyFilterQuery(src_EMPTY_QUERY)},propertyFilterQuery:propertyFilterQuery,onChangePropertyFilter:function(_ref2){var detail=_ref2.detail,tokens=detail.tokens,operation=detail.operation;setSearchParams(src_tokensToSearchParams(tokens,onlyActive)),setPropertyFilterQuery({operation:operation,tokens:tokens})},filteringOptions:filteringOptions,filteringProperties:filteringProperties,onlyActive:onlyActive,onChangeOnlyActive:function(_ref3){var detail=_ref3.detail;setOnlyActive(detail.checked),setSearchParams(src_tokensToSearchParams(propertyFilterQuery.tokens,detail.checked))},isDisabledClearFilter:isDisabledClearFilter}};
129517
129731
  ;// ./src/pages/Instances/List/styles.module.scss
129518
129732
  // extracted by mini-css-extract-plugin
129519
129733
  /* harmony default export */ const src_Instances_List_styles_module = ({"filters":"UkiJC","propertyFilter":"LpvFX","activeOnly":"YDM55"});
@@ -135920,6 +136134,38 @@ var src_Add_excluded=["value"];function src_Add_ownKeys(e,r){var t=Object.keys(e
135920
136134
  value:100*value,username:paramUserName})).unwrap().then(function(){pushNotification({type:"success",content:t("users.manual_payments.create.success_notification")}),navigate(src_routes_ROUTES.USER.DETAILS.FORMAT(paramUserName))}).catch(function(errorResponse){var errorRequestData=null===errorResponse||void 0===errorResponse?void 0:errorResponse.data;src_isResponseServerError(errorRequestData)?errorRequestData.detail.forEach(function(error){if(src_isResponseServerFormFieldError(error)){var _getFieldErrorFromSer=src_getFieldErrorFromServerResponse(error),fieldNamePath=_getFieldErrorFromSer.fieldNamePath,message=_getFieldErrorFromSer.message;setError(fieldNamePath,{type:"custom",message:message})}else pushNotification({type:"error",content:t("common.server_error",{error:error.msg})})}):pushNotification({type:"error",content:t("common.server_error",{error:src_serverErrors_getServerError(errorResponse)})})})})},/*#__PURE__*/src_react.createElement(src_form_Form,{actions:/*#__PURE__*/src_react.createElement(src_space_between_SpaceBetween,{direction:"horizontal",size:"xs"},/*#__PURE__*/src_react.createElement(src_Button_Button,{formAction:"none",disabled:isLoading,variant:"link",onClick:function(){navigate(src_routes_ROUTES.USER.DETAILS.FORMAT(paramUserName))}},t("common.cancel")),/*#__PURE__*/src_react.createElement(src_Button_Button,{loading:isLoading,disabled:isLoading,variant:"primary"},t("common.save")))},/*#__PURE__*/src_react.createElement(src_space_between_SpaceBetween,{size:"l"},/*#__PURE__*/src_react.createElement(src_Container,null,/*#__PURE__*/src_react.createElement(src_space_between_SpaceBetween,{size:"l"},/*#__PURE__*/src_react.createElement(src_AmountField_AmountField,{label:t("users.manual_payments.edit.value"),description:t("users.manual_payments.edit.value_description"),control:control,name:"value",disabled:isLoading,rules:{required:t("validation.required")}}),/*#__PURE__*/src_react.createElement(src_FormInput,{label:t("users.manual_payments.edit.description"),description:t("users.manual_payments.edit.description_description"),control:control,name:"description",disabled:isLoading})))))))};
135921
136135
  ;// ./src/pages/User/index.tsx
135922
136136
  var src_User=function(){return null};
136137
+ ;// ./src/services/gpu.ts
136138
+ var src_gpu_excluded=["project_name"];var src_gpuApi=src_rtk_query_react_esm_createApi({reducerPath:"gpuApi",baseQuery:src_fetchBaseQuery({prepareHeaders:src_fetchBaseQueryHeaders}),tagTypes:["Gpus"],endpoints:function(builder){return{getGpusList:builder.query({query:function(_ref){var project_name=_ref.project_name,body=src_objectWithoutProperties_objectWithoutProperties(_ref,src_gpu_excluded);return{url:src_API.PROJECTS.GPUS_LIST(project_name),method:"POST",body:body}},providesTags:["Gpus"]})}}});var src_useGetGpusListQuery=src_gpuApi.useGetGpusListQuery;
136139
+ ;// ./src/pages/Offers/List/hooks/useEmptyMessages.tsx
136140
+ var src_hooks_useEmptyMessages_useEmptyMessages=function(_ref){var clearFilter=_ref.clearFilter,isDisabledClearFilter=_ref.isDisabledClearFilter,projectNameSelected=_ref.projectNameSelected,_useTranslation=src_useTranslation_useTranslation(),t=_useTranslation.t,renderEmptyMessage=(0,src_react.useCallback)(function(){return projectNameSelected?/*#__PURE__*/src_react.createElement(src_ListEmptyMessage_ListEmptyMessage,{title:t("offer.empty_message_title"),message:t("offer.empty_message_text")},/*#__PURE__*/src_react.createElement(src_Button_Button,{disabled:isDisabledClearFilter,onClick:clearFilter},t("common.clearFilter"))):/*#__PURE__*/src_react.createElement(src_ListEmptyMessage_ListEmptyMessage,{title:t("offer.empty_message_title_select_project"),message:t("offer.empty_message_text_select_project")})},[clearFilter,isDisabledClearFilter]),renderNoMatchMessage=(0,src_react.useCallback)(function(){return/*#__PURE__*/src_react.createElement(src_ListEmptyMessage_ListEmptyMessage,{title:t("offer.nomatch_message_title"),message:t("offer.nomatch_message_text")},/*#__PURE__*/src_react.createElement(src_Button_Button,{disabled:isDisabledClearFilter,onClick:clearFilter},t("common.clearFilter")))},[clearFilter,isDisabledClearFilter]);return{renderEmptyMessage:renderEmptyMessage,renderNoMatchMessage:renderNoMatchMessage}};
136141
+ ;// ./src/pages/Offers/List/helpers.ts
136142
+ var src_rangeSeparator="..";function src_convertMiBToGB(mib){return mib/1024}var src_getPropertyFilterOptions=function(gpus){var names=new Set,backends=new Set,counts=new Set;return gpus.forEach(function(gp){var _gp$backends;names.add(gp.name),gp.backend&&backends.add(gp.backend),null!==(_gp$backends=gp.backends)&&void 0!==_gp$backends&&_gp$backends.length&&gp.backends.forEach(function(i){return backends.add(i)});var countRange=src_renderRange(gp.count);gp.count&&countRange&&counts.add(countRange)}),{names:names,backends:backends,counts:counts}};var src_round=function(number){return Math.round(100*number)/100};var src_renderRange=function(range){var _range$min$toString,_range$min,_range$max;return"number"==typeof range.min&&"number"==typeof range.max&&range.max!=range.min?"".concat(src_round(range.min)).concat(src_rangeSeparator).concat(src_round(range.max)):null!==(_range$min$toString=null===(_range$min=range.min)||void 0===_range$min?void 0:_range$min.toString())&&void 0!==_range$min$toString?_range$min$toString:null===(_range$max=range.max)||void 0===_range$max?void 0:_range$max.toString()};var src_rangeToObject=function(range){if(range){if("string"==typeof range){var _range$split=range.split(src_rangeSeparator),_range$split2=src_slicedToArray_slicedToArray(_range$split,2),minString=_range$split2[0],maxString=_range$split2[1],min=+minString,max=+maxString;if(!isNaN(min)&&!isNaN(max))return{min:min,max:max};if(!isNaN(min))return{min:min,max:min};if(!isNaN(max))return{min:max,max:max}}// eslint-disable-next-line @typescript-eslint/ban-ts-comment
136143
+ // @ts-expect-error
136144
+ return range}};
136145
+ ;// ./src/pages/Offers/List/hooks/useFilters.ts
136146
+ function src_List_hooks_useFilters_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function src_List_hooks_useFilters_objectSpread(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?src_List_hooks_useFilters_ownKeys(Object(t),!0).forEach(function(r){src_defineProperty_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):src_List_hooks_useFilters_ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var src_List_hooks_useFilters_filterKeys={PROJECT_NAME:"project_name",GPU_NAME:"gpu_name",GPU_COUNT:"gpu_count",GPU_MEMORY:"gpu_memory",BACKEND:"backend",SPOT_POLICY:"spot_policy"};var src_multipleChoiseKeys=["gpu_name","backend"],src_spotPolicyOptions=[{propertyKey:src_List_hooks_useFilters_filterKeys.SPOT_POLICY,value:"spot"},{propertyKey:src_List_hooks_useFilters_filterKeys.SPOT_POLICY,value:"on-demand"},{propertyKey:src_List_hooks_useFilters_filterKeys.SPOT_POLICY,value:"auto"}];var src_List_hooks_useFilters_useFilters=function(_ref){var gpus=_ref.gpus,_useSearchParams=src_dist_useSearchParams(),_useSearchParams2=src_slicedToArray_slicedToArray(_useSearchParams,2),searchParams=_useSearchParams2[0],setSearchParams=_useSearchParams2[1],_useProjectFilter=src_useProjectFilter({localStorePrefix:"offers-list-projects"}),projectOptions=_useProjectFilter.projectOptions,projectNameIsChecked=(0,src_react.useRef)(!1),_useState=(0,src_react.useState)(function(){return src_requestParamsToTokens({searchParams:searchParams,filterKeys:src_List_hooks_useFilters_filterKeys})}),_useState2=src_slicedToArray_slicedToArray(_useState,2),propertyFilterQuery=_useState2[0],setPropertyFilterQuery=_useState2[1],filteringOptions=(0,src_react.useMemo)(function(){var options=[].concat(src_spotPolicyOptions),_getPropertyFilterOpt=src_getPropertyFilterOptions(gpus),names=_getPropertyFilterOpt.names,backends=_getPropertyFilterOpt.backends;return projectOptions.forEach(function(_ref2){var value=_ref2.value;value&&options.push({propertyKey:src_List_hooks_useFilters_filterKeys.PROJECT_NAME,value:value})}),Array.from(names).forEach(function(name){options.push({propertyKey:src_List_hooks_useFilters_filterKeys.GPU_NAME,value:name})}),Array.from(backends).forEach(function(backend){options.push({propertyKey:src_List_hooks_useFilters_filterKeys.BACKEND,value:backend})}),options},[gpus]),filteringProperties=[{key:src_List_hooks_useFilters_filterKeys.PROJECT_NAME,operators:["="],propertyLabel:"Project"},{key:src_List_hooks_useFilters_filterKeys.GPU_NAME,operators:["="],propertyLabel:"GPU name"},{key:src_List_hooks_useFilters_filterKeys.GPU_COUNT,operators:["<=",">="],propertyLabel:"GPU count"},{key:src_List_hooks_useFilters_filterKeys.GPU_MEMORY,operators:["<=",">="],propertyLabel:"GPU memory"},{key:src_List_hooks_useFilters_filterKeys.BACKEND,operators:["="],propertyLabel:"Backend"},{key:src_List_hooks_useFilters_filterKeys.SPOT_POLICY,operators:["="],propertyLabel:"Spot policy"}],onChangePropertyFilterHandle=function(_ref3){var tokens=_ref3.tokens,operation=_ref3.operation,filteredTokens=tokens.filter(function(token,tokenIndex){return src_multipleChoiseKeys.includes(token.propertyKey)||!tokens.some(function(item,index){return token.propertyKey===item.propertyKey&&index>tokenIndex})});setSearchParams(src_tokensToSearchParams(filteredTokens)),setPropertyFilterQuery({operation:operation,tokens:filteredTokens})},filteringRequestParams=(0,src_react.useMemo)(function(){console.log({tokens:propertyFilterQuery.tokens});var params=src_tokensToRequestParams({tokens:propertyFilterQuery.tokens,arrayFieldKeys:src_multipleChoiseKeys});return src_List_hooks_useFilters_objectSpread({},params)},[propertyFilterQuery]);return (0,src_react.useEffect)(function(){!projectNameIsChecked.current&&projectOptions.length&&(projectNameIsChecked.current=!0,!filteringRequestParams.project_name&&onChangePropertyFilterHandle({tokens:[].concat(src_toConsumableArray_toConsumableArray(propertyFilterQuery.tokens),[{operator:"=",propertyKey:src_List_hooks_useFilters_filterKeys.PROJECT_NAME,value:projectOptions[0].value}]),operation:"and"}))},[projectOptions]),{filteringRequestParams:filteringRequestParams,clearFilter:function(){setSearchParams({}),setPropertyFilterQuery(src_EMPTY_QUERY)},propertyFilterQuery:propertyFilterQuery,onChangePropertyFilter:function(_ref4){var detail=_ref4.detail;onChangePropertyFilterHandle(detail)},filteringOptions:filteringOptions,filteringProperties:filteringProperties}};
136147
+ ;// ./src/pages/Offers/List/styles.module.scss
136148
+ // extracted by mini-css-extract-plugin
136149
+ /* harmony default export */ const src_Offers_List_styles_module = ({"selectFilters":"OCXuk","filterField":"tt1V1","propertyFilter":"jt7hh","greenText":"liq_G"});
136150
+ ;// ./src/pages/Offers/List/index.tsx
136151
+ function src_Offers_List_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function src_Offers_List_objectSpread(e){for(var t,r=1;r<arguments.length;r++)t=null==arguments[r]?{}:arguments[r],r%2?src_Offers_List_ownKeys(Object(t),!0).forEach(function(r){src_defineProperty_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):src_Offers_List_ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}var src_gpusFilterOption={label:"GPU",value:"gpu"},src_getRequestParams=function(_ref){var project_name=_ref.project_name,gpu_name=_ref.gpu_name,backend=_ref.backend,gpu_count=_ref.gpu_count,gpu_memory=_ref.gpu_memory,spot_policy=_ref.spot_policy,gpuCountMinMax=src_rangeToObject(null!==gpu_count&&void 0!==gpu_count?gpu_count:""),gpuMemoryMinMax=src_rangeToObject(null!==gpu_memory&&void 0!==gpu_memory?gpu_memory:"");return{project_name:project_name,run_spec:{configuration:src_Offers_List_objectSpread({nodes:1,ports:[],commands:[":"],type:"task",privileged:!1,home_dir:"/root",env:{},resources:{// cpu: { min: 2 },
136152
+ // memory: { min: 8.0 },
136153
+ // disk: { size: { min: 100.0 } },
136154
+ gpu:src_Offers_List_objectSpread(src_Offers_List_objectSpread(src_Offers_List_objectSpread({},null!==gpu_name&&void 0!==gpu_name&&gpu_name.length?{name:gpu_name}:{}),gpuCountMinMax?{count:gpuCountMinMax}:{}),gpuMemoryMinMax?{memory:gpuMemoryMinMax}:{})},spot_policy:spot_policy,volumes:[],files:[],setup:[]},null!==backend&&void 0!==backend&&backend.length?{backends:backend}:{}),profile:{name:"default",default:!1},ssh_key_pub:"(dummy)"}}};var src_OfferList=function(){var _data$gpus,_data$gpus2,_useTranslation=src_useTranslation_useTranslation(),t=_useTranslation.t,_useState=(0,src_react.useState)(),_useState2=src_slicedToArray_slicedToArray(_useState,2),requestParams=_useState2[0],setRequestParams=_useState2[1],_useGetGpusListQuery=src_useGetGpusListQuery(// eslint-disable-next-line @typescript-eslint/ban-ts-comment
136155
+ // @ts-expect-error
136156
+ requestParams,{skip:!requestParams||!requestParams.project_name}),data=_useGetGpusListQuery.data,isLoading=_useGetGpusListQuery.isLoading,isFetching=_useGetGpusListQuery.isFetching,_useFilters=src_List_hooks_useFilters_useFilters({gpus:null!==(_data$gpus=null===data||void 0===data?void 0:data.gpus)&&void 0!==_data$gpus?_data$gpus:[]}),filteringRequestParams=_useFilters.filteringRequestParams,clearFilter=_useFilters.clearFilter,propertyFilterQuery=_useFilters.propertyFilterQuery,onChangePropertyFilter=_useFilters.onChangePropertyFilter,filteringOptions=_useFilters.filteringOptions,filteringProperties=_useFilters.filteringProperties;(0,src_react.useEffect)(function(){// eslint-disable-next-line @typescript-eslint/ban-ts-comment
136157
+ // @ts-expect-error
136158
+ setRequestParams(src_getRequestParams(filteringRequestParams))},[JSON.stringify(filteringRequestParams)]);var _useEmptyMessages=src_hooks_useEmptyMessages_useEmptyMessages({clearFilter:clearFilter,projectNameSelected:!(!(null!==requestParams&&void 0!==requestParams)||!requestParams.project_name)}),renderEmptyMessage=_useEmptyMessages.renderEmptyMessage,renderNoMatchMessage=_useEmptyMessages.renderNoMatchMessage,_useCollection=src_use_collection_useCollection(null!==requestParams&&void 0!==requestParams&&requestParams.project_name?null!==(_data$gpus2=null===data||void 0===data?void 0:data.gpus)&&void 0!==_data$gpus2?_data$gpus2:[]:[],{filtering:{empty:renderEmptyMessage(),noMatch:renderNoMatchMessage()},selection:{}}),items=_useCollection.items,collectionProps=_useCollection.collectionProps;return/*#__PURE__*/src_react.createElement(src_cards,src_extends_extends({},collectionProps,{items:items,cardDefinition:{header:function(gpu){return/*#__PURE__*/src_react.createElement(src_components_link,null,gpu.name)},sections:[{id:"memory_mib",header:t("offer.memory_mib"),content:function(gpu){return"".concat(src_round(src_convertMiBToGB(gpu.memory_mib)),"GB")},width:50},{id:"price",header:t("offer.price"),content:function(gpu){var _renderRange;return/*#__PURE__*/src_react.createElement("span",{className:src_Offers_List_styles_module.greenText},null!==(_renderRange=src_renderRange(gpu.price))&&void 0!==_renderRange?_renderRange:"-")},width:50},{id:"count",header:t("offer.count"),content:function(gpu){var _renderRange2;return null!==(_renderRange2=src_renderRange(gpu.count))&&void 0!==_renderRange2?_renderRange2:"-"},width:50},{id:"backends",header:t("offer.backend_plural"),content:function(gpu){var _gpu$backends$join,_gpu$backends;return null!==(_gpu$backends$join=null===(_gpu$backends=gpu.backends)||void 0===_gpu$backends?void 0:_gpu$backends.join(", "))&&void 0!==_gpu$backends$join?_gpu$backends$join:"-"},width:50},// {
136159
+ // id: 'region',
136160
+ // header: t('offer.region'),
136161
+ // content: (gpu) => gpu.region ?? gpu.regions?.join(', ') ?? '-',
136162
+ // width: 50,
136163
+ // },
136164
+ {id:"spot",header:t("offer.spot"),content:function(gpu){var _gpu$spot$join;return null!==(_gpu$spot$join=gpu.spot.join(", "))&&void 0!==_gpu$spot$join?_gpu$spot$join:"-"},width:50},{id:"availability",content:function(gpu){// eslint-disable-next-line @typescript-eslint/ban-ts-comment
136165
+ // @ts-expect-error
136166
+ if("not_available"===gpu.availability)return/*#__PURE__*/src_react.createElement(src_status_indicator_StatusIndicator,{type:"warning"},"Not Available")},width:50}]},loading:isLoading||isFetching,loadingText:t("common.loading"),stickyHeader:!0,header:/*#__PURE__*/src_react.createElement(src_components_header_Header,{variant:"awsui-h1-sticky"},t("offer.title")),variant:"full-page",filter:/*#__PURE__*/src_react.createElement("div",{className:src_Offers_List_styles_module.selectFilters},/*#__PURE__*/src_react.createElement("div",{className:src_Offers_List_styles_module.propertyFilter},/*#__PURE__*/src_react.createElement(src_property_filter,{disabled:isLoading||isFetching,query:propertyFilterQuery,onChange:onChangePropertyFilter,expandToViewport:!0,hideOperations:!0,i18nStrings:{clearFiltersText:t("common.clearFilter"),filteringAriaLabel:t("offer.filter_property_placeholder"),filteringPlaceholder:t("offer.filter_property_placeholder"),operationAndText:"and"},filteringOptions:filteringOptions,filteringProperties:filteringProperties})),/*#__PURE__*/src_react.createElement("div",{className:src_Offers_List_styles_module.filterField},/*#__PURE__*/src_react.createElement(src_components_select,{inlineLabelText:t("offer.groupBy"),options:[src_gpusFilterOption],selectedOption:src_gpusFilterOption,expandToViewport:!0,disabled:!0})))}))};
136167
+ ;// ./src/pages/Offers/index.ts
136168
+
135923
136169
  ;// ./src/pages/Runs/Details/Jobs/Details/JobDetails/styles.module.scss
135924
136170
  // extracted by mini-css-extract-plugin
135925
136171
  /* harmony default export */ const src_JobDetails_styles_module = ({"details":"OBVS0","logs":"mMHsi"});
@@ -135942,7 +136188,8 @@ function src_Volumes_List_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnProp
135942
136188
  var src_router_router=src_createBrowserRouter([{path:"/",element:/*#__PURE__*/src_react.createElement(src_src_App,null),errorElement:/*#__PURE__*/src_react.createElement(src_AuthErrorMessage,{title:"Not Found",text:"Page not found"}),children:[// auth
135943
136189
  {path:src_routes_ROUTES.AUTH.GITHUB_CALLBACK,element:/*#__PURE__*/src_react.createElement(src_LoginByGithubCallback,null)},{path:src_routes_ROUTES.AUTH.OKTA_CALLBACK,element:/*#__PURE__*/src_react.createElement(src_LoginByOktaCallback,null)},{path:src_routes_ROUTES.AUTH.ENTRA_CALLBACK,element:/*#__PURE__*/src_react.createElement(src_LoginByEntraIDCallback,null)},{path:src_routes_ROUTES.AUTH.GOOGLE_CALLBACK,element:/*#__PURE__*/src_react.createElement(src_LoginByGoogleCallback,null)},{path:src_routes_ROUTES.AUTH.TOKEN,element:/*#__PURE__*/src_react.createElement(src_TokenLogin,null)},// hubs
135944
136190
  {path:src_routes_ROUTES.BASE,element:/*#__PURE__*/src_react.createElement(src_Navigate,{replace:!0,to:src_routes_ROUTES.RUNS.LIST})},{path:src_routes_ROUTES.PROJECT.LIST,element:/*#__PURE__*/src_react.createElement(src_ProjectList,null)},{path:src_routes_ROUTES.PROJECT.DETAILS.TEMPLATE,element:/*#__PURE__*/src_react.createElement(src_ProjectDetails,null),children:[{index:!0,element:/*#__PURE__*/src_react.createElement(src_ProjectSettings,null)},{path:src_routes_ROUTES.PROJECT.BACKEND.ADD.TEMPLATE,element:/*#__PURE__*/src_react.createElement(src_BackendAdd,null)},{path:src_routes_ROUTES.PROJECT.BACKEND.EDIT.TEMPLATE,element:/*#__PURE__*/src_react.createElement(src_BackendEdit,null)},{path:src_routes_ROUTES.PROJECT.GATEWAY.ADD.TEMPLATE,element:/*#__PURE__*/src_react.createElement(src_AddGateway,null)},{path:src_routes_ROUTES.PROJECT.GATEWAY.EDIT.TEMPLATE,element:/*#__PURE__*/src_react.createElement(src_EditGateway,null)}]},{path:src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.TEMPLATE,element:/*#__PURE__*/src_react.createElement(src_RunDetailsPage,null),children:[{index:!0,element:/*#__PURE__*/src_react.createElement(src_RunDetails,null)},{path:src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.METRICS.TEMPLATE,element:/*#__PURE__*/src_react.createElement(src_JobMetrics,null)},{path:src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.LOGS.TEMPLATE,element:/*#__PURE__*/src_react.createElement(src_JobLogs,null)}]},{path:src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.JOBS.DETAILS.TEMPLATE,element:/*#__PURE__*/src_react.createElement(src_JobDetailsPage,null),children:[{index:!0,element:/*#__PURE__*/src_react.createElement(src_JobDetails,null)},{path:src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.JOBS.DETAILS.METRICS.TEMPLATE,element:/*#__PURE__*/src_react.createElement(src_JobMetrics,null)},{path:src_routes_ROUTES.PROJECT.DETAILS.RUNS.DETAILS.JOBS.DETAILS.LOGS.TEMPLATE,element:/*#__PURE__*/src_react.createElement(src_JobLogs,null)}]},{path:src_routes_ROUTES.PROJECT.ADD,element:/*#__PURE__*/src_react.createElement(src_ProjectAdd,null)},// Runs
135945
- {path:src_routes_ROUTES.RUNS.LIST,element:/*#__PURE__*/src_react.createElement(src_RunList,null)},// Models
136191
+ {path:src_routes_ROUTES.RUNS.LIST,element:/*#__PURE__*/src_react.createElement(src_RunList,null)},// Offers
136192
+ {path:src_routes_ROUTES.OFFERS.LIST,element:/*#__PURE__*/src_react.createElement(src_OfferList,null)},// Models
135946
136193
  {path:src_routes_ROUTES.MODELS.LIST,element:/*#__PURE__*/src_react.createElement(src_List_List,null)},{path:src_routes_ROUTES.MODELS.DETAILS.TEMPLATE,element:/*#__PURE__*/src_react.createElement(src_ModelDetails,null)},// Fleets
135947
136194
  {path:src_routes_ROUTES.FLEETS.LIST,element:/*#__PURE__*/src_react.createElement(src_FleetList,null)},{path:src_routes_ROUTES.FLEETS.DETAILS.TEMPLATE,element:/*#__PURE__*/src_react.createElement(src_FleetDetails,null)},// Instances
135948
136195
  {path:src_routes_ROUTES.INSTANCES.LIST,element:/*#__PURE__*/src_react.createElement(src_List,null)},// Volumes
@@ -135952,7 +136199,7 @@ var src_router_router=src_createBrowserRouter([{path:"/",element:/*#__PURE__*/sr
135952
136199
  ;// ./src/services/mainApi.ts
135953
136200
  var src_mainApi=src_rtk_query_react_esm_createApi({baseQuery:src_fetchBaseQuery({prepareHeaders:src_fetchBaseQueryHeaders}),endpoints:function(){return{}}});
135954
136201
  ;// ./src/store.ts
135955
- var src_reducer_0;var src_store=src_redux_toolkit_esm_configureStore({reducer:(src_reducer_0={app:src_App_slice,notifications:src_Notifications_slice},src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_reducer_0,src_projectApi.reducerPath,src_projectApi.reducer),src_runApi.reducerPath,src_runApi.reducer),src_artifactApi.reducerPath,src_artifactApi.reducer),src_fleetApi.reducerPath,src_fleetApi.reducer),src_instanceApi.reducerPath,src_instanceApi.reducer),src_userApi.reducerPath,src_userApi.reducer),src_gatewayApi.reducerPath,src_gatewayApi.reducer),src_authApi.reducerPath,src_authApi.reducer),src_serverApi.reducerPath,src_serverApi.reducer),src_volumeApi.reducerPath,src_volumeApi.reducer),src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_reducer_0,src_secretApi.reducerPath,src_secretApi.reducer),src_mainApi.reducerPath,src_mainApi.reducer)),middleware:function(getDefaultMiddleware){return getDefaultMiddleware({serializableCheck:!1}).concat(src_projectApi.middleware).concat(src_runApi.middleware).concat(src_artifactApi.middleware).concat(src_fleetApi.middleware).concat(src_instanceApi.middleware).concat(src_gatewayApi.middleware).concat(src_userApi.middleware).concat(src_authApi.middleware).concat(src_serverApi.middleware).concat(src_volumeApi.middleware).concat(src_secretApi.middleware).concat(src_mainApi.middleware)}});
136202
+ var src_reducer_0;var src_store=src_redux_toolkit_esm_configureStore({reducer:(src_reducer_0={app:src_App_slice,notifications:src_Notifications_slice},src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_reducer_0,src_projectApi.reducerPath,src_projectApi.reducer),src_runApi.reducerPath,src_runApi.reducer),src_artifactApi.reducerPath,src_artifactApi.reducer),src_fleetApi.reducerPath,src_fleetApi.reducer),src_instanceApi.reducerPath,src_instanceApi.reducer),src_userApi.reducerPath,src_userApi.reducer),src_gatewayApi.reducerPath,src_gatewayApi.reducer),src_authApi.reducerPath,src_authApi.reducer),src_serverApi.reducerPath,src_serverApi.reducer),src_volumeApi.reducerPath,src_volumeApi.reducer),src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_defineProperty_defineProperty(src_reducer_0,src_secretApi.reducerPath,src_secretApi.reducer),src_gpuApi.reducerPath,src_gpuApi.reducer),src_mainApi.reducerPath,src_mainApi.reducer)),middleware:function(getDefaultMiddleware){return getDefaultMiddleware({serializableCheck:!1}).concat(src_projectApi.middleware).concat(src_runApi.middleware).concat(src_artifactApi.middleware).concat(src_fleetApi.middleware).concat(src_instanceApi.middleware).concat(src_gatewayApi.middleware).concat(src_userApi.middleware).concat(src_authApi.middleware).concat(src_serverApi.middleware).concat(src_volumeApi.middleware).concat(src_secretApi.middleware).concat(src_gpuApi.middleware).concat(src_mainApi.middleware)}});
135956
136203
  ;// ./node_modules/i18next/dist/esm/i18next.js
135957
136204
  const src_i18next_isString = obj => typeof obj === 'string';
135958
136205
  const src_i18next_defer = () => {
@@ -138150,7 +138397,7 @@ const src_i18next_loadLanguages = src_instance.loadLanguages;
138150
138397
 
138151
138398
 
138152
138399
  ;// ./src/locale/en.json
138153
- const src_en_namespaceObject = /*#__PURE__*/JSON.parse('{"dstack":"Dstack","common":{"loading":"Loading","add":"Add","yes":"Yes","no":"No","create":"Create {{text}}","edit":"Edit","delete":"Delete","remove":"Remove","apply":"Apply","settings":"Settings","match_count_with_value_one":"{{count}} match","match_count_with_value_other":"{{count}} matches","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","sign_out":"Sign out","cancel":"Cancel","save":"Save","send":"Send","profile":"Profile","copied":"Copied","copy":"Copy","info":"Info","stop":"Stop","abort":"Abort","close":"Close","clearFilter":"Clear filter","server_error":"Server error: {{error}}","login":"Sign in","login_github":"Sign in with GitHub","login_okta":"Sign in with Okta","login_entra":"Sign in with EntraID","login_google":"Sign in with Google","general":"General","test":"Test","local_storage_unavailable":"Local Storage is unavailable","local_storage_unavailable_message":"Your browser doesn\'t support local storage","object":"Object","objects_other":"Objects","continue":"Continue","select_visible_columns":"Select visible columns","tutorial":"Tutorials","tutorial_other":"Tour","docs":"Docs","discord":"Discord","danger_zone":"Danger Zone","control_plane":"Control plane","refresh":"Refresh","quickstart":"Quickstart","ask_ai":"Ask AI"},"auth":{"invalid_token":"Invalid token","you_are_not_logged_in":"You are not logged in","contact_to_administrator":"For getting the authorization token, contact to the administrator","sign_in_to_dstack":"Welcome to dstack Sky","sign_in_to_dstack_enterprise":"Welcome to dstack","authorization_failed":"Authorization is failed","try_again":"Please try again","login_by_token":"Sign in via a token","another_login_methods":"Other sign in options"},"navigation":{"settings":"Settings","runs":"Runs","models":"Models","fleets":"Fleets","project":"Project","project_other":"Projects","general":"General","users":"Users","user_settings":"User settings","account":"User","billing":"Billing","resources":"Resources","volumes":"Volumes","instances":"Instances"},"backend":{"page_title_one":"Backend","page_title_other":"Backends","add_backend":"Add backend","edit_backend":"Edit backend","empty_message_title":"No backends","empty_message_text":"No backends to display.","type":{"aws":"AWS","aws_description":"Run workflows and store data in Amazon Web Services ","gcp":"GCP","gcp_description":"Run workflows and store data in Google Cloud Platform","azure":"Azure","azure_description":"Run workflows and store data in Microsoft Azure","lambda":"Lambda","lambda_description":"Run workflows and store data in Lambda","local":"Local","local_description":"Run workflows and store data locally via Docker"},"table":{"region":"Region","bucket":"Storage"},"edit":{"success_notification":"Project updating is successful","delete_backend_confirm_title":"Delete backend","delete_backend_confirm_message":"Are you sure you want to delete this backend?","delete_backends_confirm_title":"Delete backends","delete_backends_confirm_message":"Are you sure you want to delete these backends?"},"create":{"success_notification":"Backend is created"}},"gateway":{"page_title_one":"Gateway","page_title_other":"Gateways","add_gateway":"Add gateway","edit_gateway":"Edit gateway","empty_message_title":"No gateways","empty_message_text":"No gateways to display.","edit":{"backend":"Backend","backend_description":"Select a backend","region":"Region","region_description":"Select a region","default":"Default","default_checkbox":"Turn on default","external_ip":"External IP","wildcard_domain":"Wildcard domain","wildcard_domain_description":"Specify the wildcard domain mapped to the external IP.","wildcard_domain_placeholder":"*.mydomain.com","delete_gateway_confirm_title":"Delete gateway","delete_gateway_confirm_message":"Are you sure you want to delete this gateway?","delete_gateways_confirm_title":"Delete gateways","delete_gateways_confirm_message":"Are you sure you want to delete these gateways?","validation":{"wildcard_domain_format":"Should use next format: {{pattern}}"}},"create":{"success_notification":"Gateway is created","creating_notification":"The gateway is creating. It may take some time"},"update":{"success_notification":"Gateway is updated"},"test_domain":{"success_notification":"Domain is valid"}},"projects":{"page_title":"Projects","search_placeholder":"Find projects","empty_message_title":"No projects","empty_message_text":"No projects to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","nomatch_message_button_label":"Clear filter","repositories":"Repositories","runs":"Runs","tags":"Tags","settings":"Settings","join":"Join","leave_confirm_title":"Leave project","leave_confirm_message":"Are you sure you want to leave this project?","leave":"Leave","join_success":"Successfully joined the project","leave_success":"Successfully left the project","join_error":"Failed to join project","leave_error":"Failed to leave project","card":{"backend":"Backend","settings":"Settings"},"edit":{"general":"General","project_name":"Project name","owner":"Owner","project_name_description":"Only latin characters, dashes, underscores, and digits","is_public":"Make project public","is_public_description":"Public projects can be accessed by any user without being a member","backend":"Backend","backend_config":"Backend config","backend_config_description":"Specify the backend config in the YAML format. Click Info for examples.","backend_type":"Type","backend_type_description":"Select a backend type","members_empty_message_title":"No members","members_empty_message_text":"Select project\'s members","update_members_success":"Members are updated","update_visibility_success":"Project visibility updated successfully","update_visibility_confirm_title":"Change project visibility","update_visibility_confirm_message":"Are you sure you want to change the project visibility? This will affect who can access this project.","change_visibility":"Change visibility","project_visibility":"Project visibility","project_visibility_description":"Control who can access this project","make_project_public":"Make project public","delete_project_confirm_title":"Delete project","delete_project_confirm_message":"Are you sure you want to delete this project?","delete_projects_confirm_title":"Delete projects","delete_projects_confirm_message":"Are you sure you want to delete these projects?","delete_this_project":"Delete this project","cli":"CLI","aws":{"authorization":"Authorization","authorization_default":"Default credentials","authorization_access_key":"Access key","access_key":"Access key","access_key_id":"Access key ID","access_key_id_description":"Specify the AWS access key ID","secret_key":"Secret key","secret_key_id":"Secret access key","secret_key_id_description":"Specify the AWS secret access key","regions":"Regions","regions_description":"Select regions to run workflows and store artifacts","regions_placeholder":"Select regions","s3_bucket_name":"Bucket","s3_bucket_name_description":"Select an S3 bucket to store artifacts","ec2_subnet_id":"Subnet","ec2_subnet_id_description":"Select a subnet to run workflows in","ec2_subnet_id_placeholder":"Not selected","vpc_name":"VPC","vpc_name_description":"Enter a vpc"},"azure":{"authorization":"Authorization","authorization_default":"Default credentials","authorization_client":"Client secret","tenant_id":"Tenant ID","tenant_id_description":"Specify an Azure tenant ID","tenant_id_placeholder":"Not selected","client_id":"Client ID","client_id_description":"Specify an Azure client (application) ID","client_secret":"Client secret","client_secret_description":"Specify an Azure client (application) secret","subscription_id":"Subscription ID","subscription_id_description":"Select an Azure subscription ID","subscription_id_placeholder":"Not selected","locations":"Locations","locations_description":"Select locations to run workflows","locations_placeholder":"Select locations","storage_account":"Storage account","storage_account_description":"Select an Azure storage account to store artifacts","storage_account_placeholder":"Not selected"},"gcp":{"authorization":"Authorization","authorization_default":"Default credentials","service_account":"Service account key","credentials_description":"Credentials description","credentials_placeholder":"Credentials placeholder","regions":"Regions","regions_description":"Select regions to run workflows and store artifacts","regions_placeholder":"Select regions","project_id":"Project Id","project_id_description":"Select a project id","project_id_placeholder":"Select a project Id"},"lambda":{"api_key":"API key","api_key_description":"Specify the Lambda API key","regions":"Regions","regions_description":"Select regions to run workflows","regions_placeholder":"Select regions","storage_backend":{"type":"Storage","type_description":"Select backend storage","type_placeholder":"Select type","credentials":{"access_key_id":"Access key ID","access_key_id_description":"Specify the AWS access key ID","secret_key_id":"Secret access key","secret_key_id_description":"Specify the AWS secret access key"},"s3_bucket_name":"Bucket","s3_bucket_name_description":"Select an S3 bucket to store artifacts"}},"local":{"path":"Files path"},"members":{"section_title":"Members","name":"User name","role":"Project role"},"secrets":{"section_title":"Secrets","empty_message_title":"No secrets","empty_message_text":"No secrets to display.","name":"Secret name","value":"Secret value","create_secret":"Create secret","update_secret":"Update secret","delete_confirm_title":"Delete secret","delete_confirm_message":"Are you sure you want to delete the {{name}} secret?","multiple_delete_confirm_title":"Delete secrets","multiple_delete_confirm_message":"Are you sure you want to delete {{count}} secrets?","not_permissions_title":"No permissions","not_permissions_description":"You don\'t have permissions for managing secrets","validation":{"secret_name_format":"Invalid secret name"}},"error_notification":"Update project error","validation":{"user_name_format":"Only letters, numbers, - or _"},"visibility":{"private":"Private","public":"Public"}},"create":{"page_title":"Create project","error_notification":"Create project error","success_notification":"Project is created"},"repo":{"search_placeholder":"Find repositories","empty_message_title":"No repositories","empty_message_text":"No repositories to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","card":{"owner":"Owner","last_run":"Last run","tags_count":"Tags count","directory":"Directory"},"secrets":{"table_title":"Secrets","add_modal_title":"Add secret","update_modal_title":"Update secret","name":"Secret name","name_description":"Secret name","value":"Secret value","value_description":"Secret value","search_placeholder":"Find secrets","empty_message_title":"No secrets","empty_message_text":"No secrets to display."}},"run":{"list_page_title":"Runs","search_placeholder":"Find runs","empty_message_title":"No runs","empty_message_text":"No runs to display.","quickstart_message_text":"Check out the quickstart guide to get started with dstack","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match. Try to change project or clear filter","filter_property_placeholder":"Filter runs by properties","project":"Project","project_placeholder":"Filtering by project","repo":"Repository","repo_placeholder":"Filtering by repository","user":"User","user_placeholder":"Filtering by user","active_only":"Active runs","log":"Logs","log_empty_message_title":"No logs","log_empty_message_text":"No logs to display.","run_name":"Name","workflow_name":"Workflow","configuration":"Configuration","instance":"Instance","priority":"Priority","provider_name":"Provider","status":"Status","submitted_at":"Submitted","finished_at":"Finished","metrics":{"title":"Metrics","show_metrics":"Show metrics","cpu_utilization":"CPU utilization %","memory_used":"System memory used","per_each_cpu_utilization":"GPU utilization %","per_each_memory_used":"GPU memory used"},"jobs":"Jobs","job_name":"Job Name","cost":"Cost","backend":"Backend","region":"Region","instance_id":"Instance ID","resources":"Resources","spot":"Spot","termination_reason":"Termination reason","price":"Price","error":"Error","artifacts":"Artifacts","artifacts_count":"Artifacts","hub_user_name":"User","service_url":"Service URL","statuses":{"pending":"Pending","submitted":"Submitted","provisioning":"Provisioning","pulling":"Pulling","downloading":"Downloading","running":"Running","uploading":"Uploading","stopping":"Stopping","stopped":"Stopped","terminating":"Terminating","terminated":"Terminated","aborting":"Aborting","aborted":"Aborted","failed":"Failed","done":"Done","building":"Building"}},"tag":{"list_page_title":"Artifacts","search_placeholder":"Find tags","empty_message_title":"No tags","empty_message_text":"No tags to display.","tag_name":"Tag","run_name":"Run","artifacts":"Files"},"artifact":{"list_page_title":"Artifacts","search_placeholder":"Find objects","empty_message_title":"No objects","empty_message_text":"No objects to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","name":"Name","type":"Type","size":"Size"}},"models":{"model_name":"Name","url":"URL","gateway":"Gateway","type":"Type","run":"Run","resources":"Resources","price":"Price","submitted_at":"Submitted","user":"User","repository":"Repository","backend":"Backend","code":"Code","empty_message_title":"No models","empty_message_text":"No models to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","nomatch_message_button_label":"Clear filter","details":{"instructions":"System","instructions_description":"Specify system","message_placeholder":"Enter your question","chat_empty_title":"No messages yet","chat_empty_message":"Please start a chat","run_name":"Run name","view_code":"View code","view_code_description":"You can use the following code to start integrating your current prompt and settings into your application."}},"fleets":{"fleet":"Fleet","fleet_placeholder":"Filtering by fleet","fleet_name":"Fleet name","total_instances":"Number of instances","empty_message_title":"No fleets","empty_message_text":"No fleets to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","nomatch_message_button_label":"Clear filter","active_only":"Active fleets","filter_property_placeholder":"Filter fleets by properties","statuses":{"active":"Active","submitted":"Submitted","failed":"Failed","terminating":"Terminating","terminated":"Terminated"},"instances":{"active_only":"Active instances","filter_property_placeholder":"Filter instances by properties","title":"Instances","empty_message_title":"No instances","empty_message_text":"No instances to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","instance_name":"Instance","instance_num":"Instance num","created":"Created","status":"Status","project":"Project","hostname":"Host name","instance_type":"Type","statuses":{"pending":"Pending","provisioning":"Provisioning","idle":"Idle","busy":"Busy","terminating":"Terminating","terminated":"Terminated"},"resources":"Resources","backend":"Backend","region":"Region","spot":"Spot","started":"Started","price":"Price"}},"volume":{"volumes":"Volumes","empty_message_title":"No volumes","empty_message_text":"No volumes to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","delete_volumes_confirm_title":"Delete volumes","delete_volumes_confirm_message":"Are you sure you want to delete these volumes?","active_only":"Active volumes","filter_property_placeholder":"Filter volumes by properties","name":"Name","project":"Project name","region":"Region","backend":"Backend","status":"Status","created":"Created","finished":"Finished","price":"Price (per month)","cost":"Cost","statuses":{"failed":"Failed","submitted":"Submitted","provisioning":"Provisioning","active":"Active","deleted":"Deleted"}},"users":{"page_title":"Users","search_placeholder":"Find members","empty_message_title":"No members","empty_message_text":"No members to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","user_name":"User name","user_name_description":"Only latin characters, dashes, underscores, and digits","global_role_description":"Whether the user is an administrator or not","email_description":"Enter user email","token":"Token","token_description":"Specify use your personal access token","global_role":"Global role","active":"Active","active_description":"Specify user activation","activated":"Activated","deactivated":"Deactivated","email":"Email","created_at":"Created at","account":"User","account_settings":"User settings","settings":"Settings","projects":"Projects","create":{"page_title":"Create user","error_notification":"Create user error","success_notification":"User is created"},"edit":{"error_notification":"Update user error","success_notification":"User updating is successful","refresh_token_success_notification":"Token rotating is successful","refresh_token_error_notification":"Token rotating error","refresh_token_confirm_title":"Rotate token","refresh_token_confirm_message":"Are you sure you want to rotate token?","refresh_token_button_label":"Rotate","validation":{"user_name_format":"Only letters, numbers, - or _","email_format":"Incorrect email"}},"manual_payments":{"title":"Credits history","add_payment":"Add payment","empty_message_title":"No payments","empty_message_text":"No payments to display.","create":{"success_notification":"Payment creating is successful"},"edit":{"value":"Amount","value_description":"Enter amount here","description":"Description","description_description":"Describe payment here","created_at":"Created at"}},"token_copied":"Token copied"},"billing":{"title":"Billing","balance":"Balance","billing_history":"Billing history","payment_method":"Payment method","no_payment_method":"No payment method attached","top_up_balance":"Top up balance","edit_payment_method":"Edit payment method","payment_amount":"Payment amount","amount_description":"Minimum: ${{value}}","make_payment":"Make a payment","min_amount_error_message":"The amount is allowed to be more than {{value}}","payment_success_message":"Payment succeeded. There can be a short delay before the balance is updated."},"validation":{"required":"This is required field"},"users_autosuggest":{"placeholder":"Enter username or email to add member","entered_text":"Add member","loading":"Loading users","no_match":"No matches found"},"roles":{"admin":"Admin","manager":"Manager","user":"User"},"confirm_dialog":{"title":"Confirm delete","message":"Are you sure you want to delete?"}}');
138400
+ const src_en_namespaceObject = /*#__PURE__*/JSON.parse('{"dstack":"Dstack","common":{"loading":"Loading","add":"Add","yes":"Yes","no":"No","create":"Create {{text}}","edit":"Edit","delete":"Delete","remove":"Remove","apply":"Apply","settings":"Settings","match_count_with_value_one":"{{count}} match","match_count_with_value_other":"{{count}} matches","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","sign_out":"Sign out","cancel":"Cancel","save":"Save","send":"Send","profile":"Profile","copied":"Copied","copy":"Copy","info":"Info","stop":"Stop","abort":"Abort","close":"Close","clearFilter":"Clear filter","server_error":"Server error: {{error}}","login":"Sign in","login_github":"Sign in with GitHub","login_okta":"Sign in with Okta","login_entra":"Sign in with EntraID","login_google":"Sign in with Google","general":"General","test":"Test","local_storage_unavailable":"Local Storage is unavailable","local_storage_unavailable_message":"Your browser doesn\'t support local storage","object":"Object","objects_other":"Objects","continue":"Continue","select_visible_columns":"Select visible columns","tutorial":"Tutorials","tutorial_other":"Tour","docs":"Docs","discord":"Discord","danger_zone":"Danger Zone","control_plane":"Control plane","refresh":"Refresh","quickstart":"Quickstart","ask_ai":"Ask AI"},"auth":{"invalid_token":"Invalid token","you_are_not_logged_in":"You are not logged in","contact_to_administrator":"For getting the authorization token, contact to the administrator","sign_in_to_dstack":"Welcome to dstack Sky","sign_in_to_dstack_enterprise":"Welcome to dstack","authorization_failed":"Authorization is failed","try_again":"Please try again","login_by_token":"Sign in via a token","another_login_methods":"Other sign in options"},"navigation":{"settings":"Settings","runs":"Runs","models":"Models","fleets":"Fleets","project":"Project","project_other":"Projects","general":"General","users":"Users","user_settings":"User settings","account":"User","billing":"Billing","resources":"Resources","volumes":"Volumes","instances":"Instances","offers":"Offers"},"backend":{"page_title_one":"Backend","page_title_other":"Backends","add_backend":"Add backend","edit_backend":"Edit backend","empty_message_title":"No backends","empty_message_text":"No backends to display.","type":{"aws":"AWS","aws_description":"Run workflows and store data in Amazon Web Services ","gcp":"GCP","gcp_description":"Run workflows and store data in Google Cloud Platform","azure":"Azure","azure_description":"Run workflows and store data in Microsoft Azure","lambda":"Lambda","lambda_description":"Run workflows and store data in Lambda","local":"Local","local_description":"Run workflows and store data locally via Docker"},"table":{"region":"Region","bucket":"Storage"},"edit":{"success_notification":"Project updating is successful","delete_backend_confirm_title":"Delete backend","delete_backend_confirm_message":"Are you sure you want to delete this backend?","delete_backends_confirm_title":"Delete backends","delete_backends_confirm_message":"Are you sure you want to delete these backends?"},"create":{"success_notification":"Backend is created"}},"gateway":{"page_title_one":"Gateway","page_title_other":"Gateways","add_gateway":"Add gateway","edit_gateway":"Edit gateway","empty_message_title":"No gateways","empty_message_text":"No gateways to display.","edit":{"backend":"Backend","backend_description":"Select a backend","region":"Region","region_description":"Select a region","default":"Default","default_checkbox":"Turn on default","external_ip":"External IP","wildcard_domain":"Wildcard domain","wildcard_domain_description":"Specify the wildcard domain mapped to the external IP.","wildcard_domain_placeholder":"*.mydomain.com","delete_gateway_confirm_title":"Delete gateway","delete_gateway_confirm_message":"Are you sure you want to delete this gateway?","delete_gateways_confirm_title":"Delete gateways","delete_gateways_confirm_message":"Are you sure you want to delete these gateways?","validation":{"wildcard_domain_format":"Should use next format: {{pattern}}"}},"create":{"success_notification":"Gateway is created","creating_notification":"The gateway is creating. It may take some time"},"update":{"success_notification":"Gateway is updated"},"test_domain":{"success_notification":"Domain is valid"}},"projects":{"page_title":"Projects","search_placeholder":"Find projects","empty_message_title":"No projects","empty_message_text":"No projects to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","nomatch_message_button_label":"Clear filter","repositories":"Repositories","runs":"Runs","tags":"Tags","settings":"Settings","join":"Join","leave_confirm_title":"Leave project","leave_confirm_message":"Are you sure you want to leave this project?","leave":"Leave","join_success":"Successfully joined the project","leave_success":"Successfully left the project","join_error":"Failed to join project","leave_error":"Failed to leave project","card":{"backend":"Backend","settings":"Settings"},"edit":{"general":"General","project_name":"Project name","owner":"Owner","project_name_description":"Only latin characters, dashes, underscores, and digits","is_public":"Make project public","is_public_description":"Public projects can be accessed by any user without being a member","backend":"Backend","backend_config":"Backend config","backend_config_description":"Specify the backend config in the YAML format. Click Info for examples.","backend_type":"Type","backend_type_description":"Select a backend type","members_empty_message_title":"No members","members_empty_message_text":"Select project\'s members","update_members_success":"Members are updated","update_visibility_success":"Project visibility updated successfully","update_visibility_confirm_title":"Change project visibility","update_visibility_confirm_message":"Are you sure you want to change the project visibility? This will affect who can access this project.","change_visibility":"Change visibility","project_visibility":"Project visibility","project_visibility_description":"Control who can access this project","make_project_public":"Make project public","delete_project_confirm_title":"Delete project","delete_project_confirm_message":"Are you sure you want to delete this project?","delete_projects_confirm_title":"Delete projects","delete_projects_confirm_message":"Are you sure you want to delete these projects?","delete_this_project":"Delete this project","cli":"CLI","aws":{"authorization":"Authorization","authorization_default":"Default credentials","authorization_access_key":"Access key","access_key":"Access key","access_key_id":"Access key ID","access_key_id_description":"Specify the AWS access key ID","secret_key":"Secret key","secret_key_id":"Secret access key","secret_key_id_description":"Specify the AWS secret access key","regions":"Regions","regions_description":"Select regions to run workflows and store artifacts","regions_placeholder":"Select regions","s3_bucket_name":"Bucket","s3_bucket_name_description":"Select an S3 bucket to store artifacts","ec2_subnet_id":"Subnet","ec2_subnet_id_description":"Select a subnet to run workflows in","ec2_subnet_id_placeholder":"Not selected","vpc_name":"VPC","vpc_name_description":"Enter a vpc"},"azure":{"authorization":"Authorization","authorization_default":"Default credentials","authorization_client":"Client secret","tenant_id":"Tenant ID","tenant_id_description":"Specify an Azure tenant ID","tenant_id_placeholder":"Not selected","client_id":"Client ID","client_id_description":"Specify an Azure client (application) ID","client_secret":"Client secret","client_secret_description":"Specify an Azure client (application) secret","subscription_id":"Subscription ID","subscription_id_description":"Select an Azure subscription ID","subscription_id_placeholder":"Not selected","locations":"Locations","locations_description":"Select locations to run workflows","locations_placeholder":"Select locations","storage_account":"Storage account","storage_account_description":"Select an Azure storage account to store artifacts","storage_account_placeholder":"Not selected"},"gcp":{"authorization":"Authorization","authorization_default":"Default credentials","service_account":"Service account key","credentials_description":"Credentials description","credentials_placeholder":"Credentials placeholder","regions":"Regions","regions_description":"Select regions to run workflows and store artifacts","regions_placeholder":"Select regions","project_id":"Project Id","project_id_description":"Select a project id","project_id_placeholder":"Select a project Id"},"lambda":{"api_key":"API key","api_key_description":"Specify the Lambda API key","regions":"Regions","regions_description":"Select regions to run workflows","regions_placeholder":"Select regions","storage_backend":{"type":"Storage","type_description":"Select backend storage","type_placeholder":"Select type","credentials":{"access_key_id":"Access key ID","access_key_id_description":"Specify the AWS access key ID","secret_key_id":"Secret access key","secret_key_id_description":"Specify the AWS secret access key"},"s3_bucket_name":"Bucket","s3_bucket_name_description":"Select an S3 bucket to store artifacts"}},"local":{"path":"Files path"},"members":{"section_title":"Members","name":"User name","role":"Project role"},"secrets":{"section_title":"Secrets","empty_message_title":"No secrets","empty_message_text":"No secrets to display.","name":"Secret name","value":"Secret value","create_secret":"Create secret","update_secret":"Update secret","delete_confirm_title":"Delete secret","delete_confirm_message":"Are you sure you want to delete the {{name}} secret?","multiple_delete_confirm_title":"Delete secrets","multiple_delete_confirm_message":"Are you sure you want to delete {{count}} secrets?","not_permissions_title":"No permissions","not_permissions_description":"You don\'t have permissions for managing secrets","validation":{"secret_name_format":"Invalid secret name"}},"error_notification":"Update project error","validation":{"user_name_format":"Only letters, numbers, - or _"},"visibility":{"private":"Private","public":"Public"}},"create":{"page_title":"Create project","error_notification":"Create project error","success_notification":"Project is created"},"repo":{"search_placeholder":"Find repositories","empty_message_title":"No repositories","empty_message_text":"No repositories to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","card":{"owner":"Owner","last_run":"Last run","tags_count":"Tags count","directory":"Directory"},"secrets":{"table_title":"Secrets","add_modal_title":"Add secret","update_modal_title":"Update secret","name":"Secret name","name_description":"Secret name","value":"Secret value","value_description":"Secret value","search_placeholder":"Find secrets","empty_message_title":"No secrets","empty_message_text":"No secrets to display."}},"run":{"list_page_title":"Runs","search_placeholder":"Find runs","empty_message_title":"No runs","empty_message_text":"No runs to display.","quickstart_message_text":"Check out the quickstart guide to get started with dstack","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match. Try to change project or clear filter","filter_property_placeholder":"Filter runs by properties","project":"Project","project_placeholder":"Filtering by project","repo":"Repository","repo_placeholder":"Filtering by repository","user":"User","user_placeholder":"Filtering by user","active_only":"Active runs","log":"Logs","log_empty_message_title":"No logs","log_empty_message_text":"No logs to display.","run_name":"Name","workflow_name":"Workflow","configuration":"Configuration","instance":"Instance","priority":"Priority","provider_name":"Provider","status":"Status","submitted_at":"Submitted","finished_at":"Finished","metrics":{"title":"Metrics","show_metrics":"Show metrics","cpu_utilization":"CPU utilization %","memory_used":"System memory used","per_each_cpu_utilization":"GPU utilization %","per_each_memory_used":"GPU memory used"},"jobs":"Jobs","job_name":"Job Name","cost":"Cost","backend":"Backend","region":"Region","instance_id":"Instance ID","resources":"Resources","spot":"Spot","termination_reason":"Termination reason","price":"Price","error":"Error","artifacts":"Artifacts","artifacts_count":"Artifacts","hub_user_name":"User","service_url":"Service URL","statuses":{"pending":"Pending","submitted":"Submitted","provisioning":"Provisioning","pulling":"Pulling","downloading":"Downloading","running":"Running","uploading":"Uploading","stopping":"Stopping","stopped":"Stopped","terminating":"Terminating","terminated":"Terminated","aborting":"Aborting","aborted":"Aborted","failed":"Failed","done":"Done","building":"Building"}},"tag":{"list_page_title":"Artifacts","search_placeholder":"Find tags","empty_message_title":"No tags","empty_message_text":"No tags to display.","tag_name":"Tag","run_name":"Run","artifacts":"Files"},"artifact":{"list_page_title":"Artifacts","search_placeholder":"Find objects","empty_message_title":"No objects","empty_message_text":"No objects to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","name":"Name","type":"Type","size":"Size"}},"offer":{"title":"Offers","filter_property_placeholder":"Filter offers by properties","backend":"Backend","backend_plural":"Backends","availability":"Availability","groupBy":"Group by","region":"Region","count":"Count","price":"$/GPU","memory_mib":"Memory","spot":"Spot policy","empty_message_title_select_project":"Select a project","empty_message_text_select_project":"Use the filter above to select a project","empty_message_title":"No offers","empty_message_text":"No offers to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match."},"models":{"model_name":"Name","url":"URL","gateway":"Gateway","type":"Type","run":"Run","resources":"Resources","price":"Price","submitted_at":"Submitted","user":"User","repository":"Repository","backend":"Backend","code":"Code","empty_message_title":"No models","empty_message_text":"No models to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","nomatch_message_button_label":"Clear filter","details":{"instructions":"System","instructions_description":"Specify system","message_placeholder":"Enter your question","chat_empty_title":"No messages yet","chat_empty_message":"Please start a chat","run_name":"Run name","view_code":"View code","view_code_description":"You can use the following code to start integrating your current prompt and settings into your application."}},"fleets":{"fleet":"Fleet","fleet_placeholder":"Filtering by fleet","fleet_name":"Fleet name","total_instances":"Number of instances","empty_message_title":"No fleets","empty_message_text":"No fleets to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","nomatch_message_button_label":"Clear filter","active_only":"Active fleets","filter_property_placeholder":"Filter fleets by properties","statuses":{"active":"Active","submitted":"Submitted","failed":"Failed","terminating":"Terminating","terminated":"Terminated"},"instances":{"active_only":"Active instances","filter_property_placeholder":"Filter instances by properties","title":"Instances","empty_message_title":"No instances","empty_message_text":"No instances to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","instance_name":"Instance","instance_num":"Instance num","created":"Created","status":"Status","project":"Project","hostname":"Host name","instance_type":"Type","statuses":{"pending":"Pending","provisioning":"Provisioning","idle":"Idle","busy":"Busy","terminating":"Terminating","terminated":"Terminated"},"resources":"Resources","backend":"Backend","region":"Region","spot":"Spot","started":"Started","price":"Price"}},"volume":{"volumes":"Volumes","empty_message_title":"No volumes","empty_message_text":"No volumes to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","delete_volumes_confirm_title":"Delete volumes","delete_volumes_confirm_message":"Are you sure you want to delete these volumes?","active_only":"Active volumes","filter_property_placeholder":"Filter volumes by properties","name":"Name","project":"Project name","region":"Region","backend":"Backend","status":"Status","created":"Created","finished":"Finished","price":"Price (per month)","cost":"Cost","statuses":{"failed":"Failed","submitted":"Submitted","provisioning":"Provisioning","active":"Active","deleted":"Deleted"}},"users":{"page_title":"Users","search_placeholder":"Find members","empty_message_title":"No members","empty_message_text":"No members to display.","nomatch_message_title":"No matches","nomatch_message_text":"We can\'t find a match.","user_name":"User name","user_name_description":"Only latin characters, dashes, underscores, and digits","global_role_description":"Whether the user is an administrator or not","email_description":"Enter user email","token":"Token","token_description":"Specify use your personal access token","global_role":"Global role","active":"Active","active_description":"Specify user activation","activated":"Activated","deactivated":"Deactivated","email":"Email","created_at":"Created at","account":"User","account_settings":"User settings","settings":"Settings","projects":"Projects","create":{"page_title":"Create user","error_notification":"Create user error","success_notification":"User is created"},"edit":{"error_notification":"Update user error","success_notification":"User updating is successful","refresh_token_success_notification":"Token rotating is successful","refresh_token_error_notification":"Token rotating error","refresh_token_confirm_title":"Rotate token","refresh_token_confirm_message":"Are you sure you want to rotate token?","refresh_token_button_label":"Rotate","validation":{"user_name_format":"Only letters, numbers, - or _","email_format":"Incorrect email"}},"manual_payments":{"title":"Credits history","add_payment":"Add payment","empty_message_title":"No payments","empty_message_text":"No payments to display.","create":{"success_notification":"Payment creating is successful"},"edit":{"value":"Amount","value_description":"Enter amount here","description":"Description","description_description":"Describe payment here","created_at":"Created at"}},"token_copied":"Token copied"},"billing":{"title":"Billing","balance":"Balance","billing_history":"Billing history","payment_method":"Payment method","no_payment_method":"No payment method attached","top_up_balance":"Top up balance","edit_payment_method":"Edit payment method","payment_amount":"Payment amount","amount_description":"Minimum: ${{value}}","make_payment":"Make a payment","min_amount_error_message":"The amount is allowed to be more than {{value}}","payment_success_message":"Payment succeeded. There can be a short delay before the balance is updated."},"validation":{"required":"This is required field"},"users_autosuggest":{"placeholder":"Enter username or email to add member","entered_text":"Add member","loading":"Loading users","no_match":"No matches found"},"roles":{"admin":"Admin","manager":"Manager","user":"User"},"confirm_dialog":{"title":"Confirm delete","message":"Are you sure you want to delete?"}}');
138154
138401
  ;// ./src/locale/index.ts
138155
138402
  src_instance.use(src_initReactI18next).init({returnNull:!1,resources:{en:{translation:src_en_namespaceObject}},fallbackLng:"en",interpolation:{escapeValue:!1}});
138156
138403
  ;// ./src/index.tsx
@@ -138159,4 +138406,4 @@ var src_container=document.getElementById("root"),src_src_theme={tokens:{fontFam
138159
138406
 
138160
138407
  /******/ })()
138161
138408
  ;
138162
- //# sourceMappingURL=main-d151b300fcac3933213d.js.map
138409
+ //# sourceMappingURL=main-4eecc75fbe64067eb1bc.js.map