@slotted/react 0.1.0-beta.2 → 0.1.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/dist/{action-bar-C7cGnEyJ.js → action-bar-OACchRZw.js} +1 -1
  2. package/dist/action-bar.js +1 -1
  3. package/dist/{action-sheet-DgwzC3iY.js → action-sheet-C60BWUW8.js} +1 -1
  4. package/dist/action-sheet.js +1 -1
  5. package/dist/{app-shell-CXwma4XA.js → app-shell-CmYvnu_7.js} +310 -310
  6. package/dist/app-shell.js +1 -1
  7. package/dist/button-Db9f3Bxn.js +99 -0
  8. package/dist/button.js +2 -2
  9. package/dist/cascader-D1AhTyBL.js +1097 -0
  10. package/dist/cascader.js +1 -1
  11. package/dist/{chart-Gb_P3Kdq.js → chart-O0ZhkzJe.js} +381 -374
  12. package/dist/chart.js +1 -1
  13. package/dist/{checkbox-CwUOc-3u.js → checkbox-DfxFHZaU.js} +3 -3
  14. package/dist/{checkbox-group-BYTjgAcX.js → checkbox-group-9sDgrV5Z.js} +2 -2
  15. package/dist/checkbox-group.js +1 -1
  16. package/dist/checkbox.js +1 -1
  17. package/dist/{color-picker-BlPR4g4H.js → color-picker-CwbWzCKg.js} +4 -4
  18. package/dist/color-picker.js +1 -1
  19. package/dist/{column-manager-B7_a_jDK.js → column-manager-CTtizVhm.js} +6 -6
  20. package/dist/column-manager.js +1 -1
  21. package/dist/{combobox-C66dNlMR.js → combobox-BVMI9lg8.js} +266 -266
  22. package/dist/combobox.js +1 -1
  23. package/dist/{command-palette-BqRyNR9Y.js → command-palette-DFLbSOiv.js} +1 -1
  24. package/dist/command-palette.js +1 -1
  25. package/dist/{context-menu-DMiHdggw.js → context-menu-BuST6W94.js} +1 -1
  26. package/dist/context-menu.js +1 -1
  27. package/dist/currency-field-DD9A5U3D.js +455 -0
  28. package/dist/currency-field.js +1 -1
  29. package/dist/{dashboard-grid-CKdyO4j6.js → dashboard-grid-CBMP_-JV.js} +2 -2
  30. package/dist/dashboard-grid.js +1 -1
  31. package/dist/{data-grid-rWMDNl-6.js → data-grid-BKaGMqIm.js} +19 -19
  32. package/dist/data-grid.js +1 -1
  33. package/dist/{data-list-2xfDpHVC.js → data-list-oICmxGkA.js} +5 -5
  34. package/dist/data-list.js +1 -1
  35. package/dist/{date-field-D_kLLTfL.js → date-field-CYcN6diW.js} +1 -1
  36. package/dist/date-field.js +1 -1
  37. package/dist/date-picker-4X-_2ltN.js +264 -0
  38. package/dist/date-picker.js +1 -1
  39. package/dist/date-range-picker-CNOAtHwU.js +471 -0
  40. package/dist/date-range-picker.js +1 -1
  41. package/dist/{datetime-field-T1gNdJ7t.js → datetime-field-B8TrmsDK.js} +1 -1
  42. package/dist/datetime-field.js +1 -1
  43. package/dist/datetime-picker-HDVlUhzy.js +629 -0
  44. package/dist/datetime-picker.js +1 -1
  45. package/dist/datetime-range-picker-IqOFJtdW.js +994 -0
  46. package/dist/datetime-range-picker.js +1 -1
  47. package/dist/{dialog-Dmy-m_pe.js → dialog-BHYDDj1S.js} +112 -113
  48. package/dist/dialog.js +1 -1
  49. package/dist/docs/app-shell.json +1 -1
  50. package/dist/docs/button-group.json +1 -0
  51. package/dist/docs/button-group.md +1 -1
  52. package/dist/docs/button.json +45 -11
  53. package/dist/docs/button.md +10 -6
  54. package/dist/docs/chart.json +7 -0
  55. package/dist/docs/chart.md +1 -0
  56. package/dist/docs/currency-field.json +32 -1
  57. package/dist/docs/currency-field.md +4 -1
  58. package/dist/docs/dialog.examples.md +26 -0
  59. package/dist/docs/dialog.json +14 -2
  60. package/dist/docs/dialog.md +1 -1
  61. package/dist/docs/list.json +26 -1
  62. package/dist/docs/list.md +4 -1
  63. package/dist/docs/popover.json +1 -1
  64. package/dist/docs/segmented-control.json +29 -1
  65. package/dist/docs/segmented-control.md +17 -1
  66. package/dist/docs/side-navigation.json +2 -2
  67. package/dist/docs/side-navigation.md +19 -4
  68. package/dist/docs/skills/theme-app/SKILL.md +5 -0
  69. package/dist/docs/split-button.json +1 -0
  70. package/dist/docs/split-button.md +1 -1
  71. package/dist/docs/stat-card.json +1 -0
  72. package/dist/docs/stat-card.md +1 -1
  73. package/dist/docs/table.examples.md +1 -1
  74. package/dist/docs/table.json +78 -2
  75. package/dist/docs/table.md +12 -1
  76. package/dist/docs/tabs.examples.md +1 -1
  77. package/dist/docs/tabs.json +1 -1
  78. package/dist/docs/toggle-group.json +14 -3
  79. package/dist/docs/toggle-group.md +3 -3
  80. package/dist/docs/toggle.json +12 -3
  81. package/dist/docs/toggle.md +3 -3
  82. package/dist/docs/tokens.md +25 -1
  83. package/dist/docs/top-navigation.examples.md +23 -5
  84. package/dist/docs/top-navigation.json +2 -2
  85. package/dist/docs/tour.json +1 -1
  86. package/dist/drawer-LXM44eso.js +757 -0
  87. package/dist/drawer.js +1 -1
  88. package/dist/entity-picker-CPDd73JR.js +1110 -0
  89. package/dist/entity-picker.js +1 -1
  90. package/dist/{event-calendar-DYjVwTI6.js → event-calendar-CnF3iIZD.js} +5 -5
  91. package/dist/event-calendar.js +1 -1
  92. package/dist/{field-BJh5HI7w.js → field-NJaCxl2h.js} +1 -1
  93. package/dist/{field-group-BDaspQPh.js → field-group-hAzVa2O9.js} +1 -1
  94. package/dist/field-group.js +1 -1
  95. package/dist/field.js +1 -1
  96. package/dist/{filter-bar-Bh7cbqDE.js → filter-bar-D_xDcAp2.js} +20 -20
  97. package/dist/filter-bar.js +1 -1
  98. package/dist/{hover-card-CSDbA6zd.js → hover-card-BJE5dtaQ.js} +1 -1
  99. package/dist/hover-card.js +1 -1
  100. package/dist/{icon-button-TnvMhK4o.js → icon-button-CCWkCDMs.js} +26 -24
  101. package/dist/import-export-center-DpY2DGBZ.js +813 -0
  102. package/dist/import-export-center.js +1 -1
  103. package/dist/index.js +85 -84
  104. package/dist/{list-C1Y8MWp2.js → list-WsQ6ZzCa.js} +16 -12
  105. package/dist/{list-item-DN_mcouU.js → list-item-DpCwZIrd.js} +1 -1
  106. package/dist/list-item.js +1 -1
  107. package/dist/list.js +1 -1
  108. package/dist/{listbox-4WvqR0JF.js → listbox-Dv856z9I.js} +1 -1
  109. package/dist/listbox.js +1 -1
  110. package/dist/{loading-overlay-B83XFctM.js → loading-overlay-COfnckse.js} +73 -73
  111. package/dist/loading-overlay.js +1 -1
  112. package/dist/{markdown-CpfDn1LF.js → markdown-CeG8mUbI.js} +2 -2
  113. package/dist/markdown.js +1 -1
  114. package/dist/menu-parts-W58pVNUt.js +786 -0
  115. package/dist/menu.js +1 -1
  116. package/dist/{menubar-CtGavUTO.js → menubar-b2CruimJ.js} +1 -1
  117. package/dist/menubar.js +1 -1
  118. package/dist/{multi-select-B-tuIwAu.js → multi-select-DQ5ds0fX.js} +390 -390
  119. package/dist/multi-select.js +1 -1
  120. package/dist/{notification-center-C4pEHJ3h.js → notification-center-Sz54IziY.js} +2 -2
  121. package/dist/notification-center.js +1 -1
  122. package/dist/{number-field-J_koud1r.js → number-field-BFIAmv-z.js} +1 -1
  123. package/dist/number-field.js +1 -1
  124. package/dist/{otp-input-Bf8JUiVR.js → otp-input-BNQhuKaT.js} +1 -1
  125. package/dist/otp-input.js +1 -1
  126. package/dist/popover-Be7JWbGJ.js +475 -0
  127. package/dist/popover.js +1 -1
  128. package/dist/press-selection-DjOllE2B.js +29 -0
  129. package/dist/press-selection.js +2 -0
  130. package/dist/{prompt-composer-B7MMcER0.js → prompt-composer-BxpdkTpZ.js} +1 -1
  131. package/dist/prompt-composer.js +1 -1
  132. package/dist/{radio-group-BFpjhDkV.js → radio-group-BaVIP9UH.js} +2 -2
  133. package/dist/radio-group.js +1 -1
  134. package/dist/{rating-D1EsADFM.js → rating-DYBQBzwB.js} +1 -1
  135. package/dist/rating.js +1 -1
  136. package/dist/{saved-views-BueW-Lyb.js → saved-views-DlE_--Z9.js} +5 -5
  137. package/dist/saved-views.js +1 -1
  138. package/dist/{segmented-control-Cy_5D3Nj.js → segmented-control-DmuOGiu6.js} +28 -24
  139. package/dist/segmented-control.js +1 -1
  140. package/dist/{select-hRFp8nCj.js → select-DOFqPy26.js} +273 -273
  141. package/dist/select.js +1 -1
  142. package/dist/{side-navigation-YUiJRpng.js → side-navigation-CBLtCzuJ.js} +186 -187
  143. package/dist/side-navigation.js +1 -1
  144. package/dist/{slider-B432T6nD.js → slider-DTes4HLF.js} +1 -1
  145. package/dist/slider.js +1 -1
  146. package/dist/{split-button-DHF3v3PJ.js → split-button-CPgHiy9G.js} +2 -2
  147. package/dist/split-button.js +1 -1
  148. package/dist/styles.css +1 -1
  149. package/dist/{switch-4MHwKmkz.js → switch-DQzuIhPX.js} +1 -1
  150. package/dist/switch.js +1 -1
  151. package/dist/{table-Bd79IwDC.js → table-Cipi2c5X.js} +206 -173
  152. package/dist/table.js +2 -2
  153. package/dist/{tags-input-DLdHLWrH.js → tags-input-CcOkm0AW.js} +1 -1
  154. package/dist/tags-input.js +1 -1
  155. package/dist/{text-field-BktZbmzD.js → text-field-DLfIZ0fk.js} +1 -1
  156. package/dist/text-field.js +1 -1
  157. package/dist/{textarea-JAK2RJl0.js → textarea-CBJBJBi6.js} +1 -1
  158. package/dist/textarea.js +1 -1
  159. package/dist/{time-field-DCG_VtGO.js → time-field-DrhiCtUl.js} +1 -1
  160. package/dist/time-field.js +1 -1
  161. package/dist/{time-picker-DuT1tf5-.js → time-picker-CRQsMJbQ.js} +102 -102
  162. package/dist/time-picker.js +1 -1
  163. package/dist/{time-range-picker-HwBvrrXN.js → time-range-picker-DlZJsj1e.js} +202 -202
  164. package/dist/time-range-picker.js +1 -1
  165. package/dist/{toast-wI8BtPY5.js → toast-Bf3e0AgC.js} +157 -157
  166. package/dist/toast.js +1 -1
  167. package/dist/toggle-group-7iBR9Rn1.js +142 -0
  168. package/dist/toggle-group.js +1 -1
  169. package/dist/{toolbar-CDQTydDx.js → toolbar-DDZpEftQ.js} +1 -1
  170. package/dist/toolbar.js +1 -1
  171. package/dist/{tooltip-BggqPDcW.js → tooltip-DbKTPe_i.js} +108 -109
  172. package/dist/tooltip.js +1 -1
  173. package/dist/{top-navigation-COQZsNqW.js → top-navigation-e-tWMGNr.js} +255 -256
  174. package/dist/top-navigation.js +1 -1
  175. package/dist/{tour-C11DmYTC.js → tour-BTdt716T.js} +180 -180
  176. package/dist/tour.js +1 -1
  177. package/dist/{transfer-JA9TWjAw.js → transfer-CqZOTLMP.js} +6 -6
  178. package/dist/transfer.js +1 -1
  179. package/dist/types/app-shell/app-shell.d.ts.map +1 -1
  180. package/dist/types/button/button-link.d.ts +1 -1
  181. package/dist/types/button/button-link.d.ts.map +1 -1
  182. package/dist/types/button/button-root.d.ts +5 -3
  183. package/dist/types/button/button-root.d.ts.map +1 -1
  184. package/dist/types/button/button.constants.d.ts +2 -1
  185. package/dist/types/button/button.constants.d.ts.map +1 -1
  186. package/dist/types/button/button.d.ts +1 -1
  187. package/dist/types/button/button.d.ts.map +1 -1
  188. package/dist/types/button/button.types.d.ts +9 -2
  189. package/dist/types/button/button.types.d.ts.map +1 -1
  190. package/dist/types/button/index.d.ts +1 -1
  191. package/dist/types/button/index.d.ts.map +1 -1
  192. package/dist/types/button/toggle-button.d.ts +1 -1
  193. package/dist/types/button/toggle-button.d.ts.map +1 -1
  194. package/dist/types/chart/chart.d.ts.map +1 -1
  195. package/dist/types/currency-field/currency-field.d.ts +1 -1
  196. package/dist/types/currency-field/currency-field.d.ts.map +1 -1
  197. package/dist/types/currency-field/currency-field.types.d.ts +14 -0
  198. package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
  199. package/dist/types/currency-field/index.d.ts +1 -1
  200. package/dist/types/currency-field/index.d.ts.map +1 -1
  201. package/dist/types/dialog/dialog-demo.d.ts +8 -0
  202. package/dist/types/dialog/dialog-demo.d.ts.map +1 -1
  203. package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
  204. package/dist/types/index.d.ts +1 -0
  205. package/dist/types/index.d.ts.map +1 -1
  206. package/dist/types/list/index.d.ts +1 -1
  207. package/dist/types/list/index.d.ts.map +1 -1
  208. package/dist/types/list/list-parts.d.ts +1 -1
  209. package/dist/types/list/list-parts.d.ts.map +1 -1
  210. package/dist/types/list/list.types.d.ts +12 -0
  211. package/dist/types/list/list.types.d.ts.map +1 -1
  212. package/dist/types/press-selection/index.d.ts +3 -0
  213. package/dist/types/press-selection/index.d.ts.map +1 -0
  214. package/dist/types/press-selection/press-selection.d.ts +23 -0
  215. package/dist/types/press-selection/press-selection.d.ts.map +1 -0
  216. package/dist/types/segmented-control/index.d.ts +1 -1
  217. package/dist/types/segmented-control/index.d.ts.map +1 -1
  218. package/dist/types/segmented-control/segmented-control-defaults.d.ts.map +1 -1
  219. package/dist/types/segmented-control/segmented-control.d.ts +1 -1
  220. package/dist/types/segmented-control/segmented-control.d.ts.map +1 -1
  221. package/dist/types/segmented-control/segmented-control.types.d.ts +10 -0
  222. package/dist/types/segmented-control/segmented-control.types.d.ts.map +1 -1
  223. package/dist/types/table/index.d.ts +2 -2
  224. package/dist/types/table/index.d.ts.map +1 -1
  225. package/dist/types/table/table-parts.d.ts +8 -2
  226. package/dist/types/table/table-parts.d.ts.map +1 -1
  227. package/dist/types/table/table.types.d.ts +28 -1
  228. package/dist/types/table/table.types.d.ts.map +1 -1
  229. package/dist/types/toggle/toggle.types.d.ts +1 -1
  230. package/dist/types/toggle/toggle.types.d.ts.map +1 -1
  231. package/dist/types/toggle-group/toggle-group.d.ts.map +1 -1
  232. package/dist/types/toggle-group/toggle-group.types.d.ts +6 -1
  233. package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
  234. package/dist/{upload-Bq_UiyMr.js → upload-DjnlVR8y.js} +2 -2
  235. package/dist/upload.js +1 -1
  236. package/dist/{wizard-B4GrlEqh.js → wizard-BxA08vXt.js} +1 -1
  237. package/dist/wizard.js +1 -1
  238. package/package.json +12 -7
  239. package/dist/button-DakQ-7Tm.js +0 -97
  240. package/dist/cascader-CARCYdHh.js +0 -1097
  241. package/dist/currency-field-B7OZ0hk7.js +0 -436
  242. package/dist/date-picker-DQ5SIhdA.js +0 -264
  243. package/dist/date-range-picker-lpB08hK_.js +0 -471
  244. package/dist/datetime-picker-0F0kDW-8.js +0 -629
  245. package/dist/datetime-range-picker-ClnEleth.js +0 -994
  246. package/dist/drawer-Dtospdqk.js +0 -758
  247. package/dist/entity-picker-Dm-y0RNE.js +0 -1111
  248. package/dist/import-export-center-CkZ_Ar9w.js +0 -813
  249. package/dist/menu-parts-BQej6eU9.js +0 -787
  250. package/dist/popover-DE22lSpV.js +0 -476
  251. package/dist/react-dom-DzrKNxo6.js +0 -273
  252. package/dist/toggle-group-DQBlI1TV.js +0 -140
@@ -0,0 +1,813 @@
1
+ import { n as e, t } from "./icon-T9Yt4tnm.js";
2
+ import { n, r } from "./i18n-DpW8lqJ1.js";
3
+ import { n as i } from "./progress-indicator-DwvUSFFs.js";
4
+ import { n as a } from "./icon-button-CCWkCDMs.js";
5
+ import { n as o } from "./button-Db9f3Bxn.js";
6
+ import { a as s, i as c, n as l, r as u } from "./tooltip-DbKTPe_i.js";
7
+ import { i as d, t as f } from "./skeleton-2LSpg84Z.js";
8
+ import { i as p, n as m, o as h, r as g, t as _ } from "./result-state-CZsQfdN4.js";
9
+ import { a as ee, r as te, t as v } from "./tabs-DQ36APY-.js";
10
+ import { A as y, O as ne, b, c as x, f as S, l as C, u as w, v as re } from "./table-Cipi2c5X.js";
11
+ import { v as T } from "./toast-Bf3e0AgC.js";
12
+ import { createControllable as ie } from "@slotted/core/state";
13
+ import { createContext as ae, useCallback as E, useContext as oe, useEffect as D, useId as se, useImperativeHandle as ce, useLayoutEffect as le, useMemo as ue, useRef as O, useState as k } from "react";
14
+ import { Fragment as de, jsx as A, jsxs as j } from "react/jsx-runtime";
15
+ import { importExportCenterMessages as fe } from "@slotted/core/i18n";
16
+ import { fileKind as M, formatBytes as pe, splitName as me } from "@slotted/core/upload";
17
+ import { getLiveAnnouncer as he } from "@slotted/core/live-announcer";
18
+ import { activeJobCount as ge, fileAvailability as _e, filterJobs as ve, focusDestination as ye, hasDetails as be, isFinishedJob as xe, jobAnnouncement as Se, jobControls as Ce, jobGlyph as we, jobNotice as Te, jobOutcome as Ee, jobProgressText as De, jobStatusText as Oe, jobSummaryText as ke, jobTransition as Ae, remainingSeconds as je } from "@slotted/core/import-export-center";
19
+ import { formatTimestamp as N } from "@slotted/core/timeline";
20
+ //#region src/import-export-center/import-export-center-defaults.tsx
21
+ var P = ae({
22
+ growing: "none",
23
+ level: "2",
24
+ size: "md",
25
+ timeFormat: "relative"
26
+ });
27
+ function Me() {
28
+ return oe(P);
29
+ }
30
+ function Ne({ children: e, ...t }) {
31
+ let n = Me();
32
+ return /* @__PURE__ */ A(P.Provider, {
33
+ value: {
34
+ growing: t.growing ?? n.growing,
35
+ level: t.level ?? n.level,
36
+ size: t.size ?? n.size,
37
+ timeFormat: t.timeFormat ?? n.timeFormat,
38
+ timeZone: t.timeZone ?? n.timeZone
39
+ },
40
+ children: e
41
+ });
42
+ }
43
+ //#endregion
44
+ //#region src/import-export-center/import-export-center.tsx
45
+ var F = {
46
+ pdf: "file-text",
47
+ document: "file-type",
48
+ spreadsheet: "file-spreadsheet",
49
+ presentation: "presentation",
50
+ image: "file-image",
51
+ video: "file-video",
52
+ audio: "file-audio",
53
+ archive: "file-archive",
54
+ other: "file"
55
+ }, Pe = [
56
+ "job-title",
57
+ "download",
58
+ "retry",
59
+ "cancel",
60
+ "toggle",
61
+ "remove"
62
+ ], Fe = 3, Ie = 12, Le = {
63
+ day: "numeric",
64
+ month: "short",
65
+ hour: "2-digit",
66
+ minute: "2-digit"
67
+ };
68
+ function I(e, t) {
69
+ let n = !1;
70
+ return {
71
+ reason: e,
72
+ source: t,
73
+ get cancelled() {
74
+ return n;
75
+ },
76
+ cancel() {
77
+ n = !0;
78
+ }
79
+ };
80
+ }
81
+ function L(e) {
82
+ return e.detail === 0 ? "keyboard" : "pointer";
83
+ }
84
+ function R(e) {
85
+ return e != null && e !== !1;
86
+ }
87
+ function Re(e) {
88
+ return e.replace(/[^\w-]/g, (e) => `-${e.charCodeAt(0).toString(16)}-`);
89
+ }
90
+ function ze(e, t) {
91
+ return e.length === t.length && e.every((e, n) => e === t[n]);
92
+ }
93
+ function Be(e) {
94
+ let t = e.result ?? e.source;
95
+ return t === void 0 ? e.format === void 0 ? "other" : M({
96
+ name: `job.${e.format.toLowerCase()}`,
97
+ type: ""
98
+ }) : M({
99
+ name: t.name,
100
+ type: t.type ?? ""
101
+ });
102
+ }
103
+ function z({ name: e }) {
104
+ let { stem: t, extension: n } = me(e);
105
+ return /* @__PURE__ */ j("span", {
106
+ "data-part": "file-name",
107
+ dir: "auto",
108
+ children: [/* @__PURE__ */ A("span", {
109
+ "data-part": "name",
110
+ children: t
111
+ }), n === "" ? null : /* @__PURE__ */ A("span", {
112
+ "data-part": "extension",
113
+ children: n
114
+ })]
115
+ });
116
+ }
117
+ function B({ label: n, describedBy: r, onPress: i }) {
118
+ return /* @__PURE__ */ j(s, {
119
+ openOn: "hover",
120
+ side: "bottom",
121
+ children: [/* @__PURE__ */ A(c, {
122
+ "aria-describedby": r,
123
+ "aria-label": n,
124
+ "data-part": "remove",
125
+ onClick: i,
126
+ children: /* @__PURE__ */ A(t, { children: /* @__PURE__ */ A(e, { name: "x" }) })
127
+ }), /* @__PURE__ */ A(u, { children: /* @__PURE__ */ A(l, { children: n }) })]
128
+ });
129
+ }
130
+ function V({ context: e, file: t, job: n, role: r, label: i, id: s, labelledBy: c, describedBy: l, variant: u }) {
131
+ let d = (t) => {
132
+ let i = I(L(t), t);
133
+ e.onDownload?.({
134
+ key: n.key,
135
+ file: r
136
+ }, i), i.cancelled && t.preventDefault();
137
+ }, f = {
138
+ ...s === void 0 ? {} : { id: s },
139
+ ...c === void 0 ? {} : { "aria-labelledby": c },
140
+ ...l === void 0 ? {} : { "aria-describedby": l }
141
+ };
142
+ return /* @__PURE__ */ A("span", {
143
+ "data-part": "download",
144
+ children: t.href === void 0 ? /* @__PURE__ */ A(a, {
145
+ ...f,
146
+ onClick: d,
147
+ size: "sm",
148
+ tone: "secondary",
149
+ variant: u,
150
+ children: i
151
+ }) : /* @__PURE__ */ A(o, {
152
+ ...f,
153
+ download: t.name,
154
+ href: t.href,
155
+ onClick: d,
156
+ size: "sm",
157
+ tone: "secondary",
158
+ variant: u,
159
+ children: i
160
+ })
161
+ });
162
+ }
163
+ function H(e, t) {
164
+ return N(e, {
165
+ absolute: Le,
166
+ format: "absolute",
167
+ locale: t.locale,
168
+ timeZone: t.timeZone
169
+ }).text;
170
+ }
171
+ function Ve(e, t) {
172
+ if (e.message !== void 0 && e.message !== "") return e.message;
173
+ let n = {
174
+ now: t.now,
175
+ timeZone: t.timeZone
176
+ }, r = e.result, i = _e(r, n);
177
+ return r === void 0 ? null : i === "denied" ? r.denied ?? null : r.expiresAt === void 0 ? null : i === "expired" ? t.t("expired", { date: H(r.expiresAt, t) }) : i === "expires" ? t.t("expires", { date: H(r.expiresAt, t) }) : null;
178
+ }
179
+ function He({ context: e, job: t }) {
180
+ let { t: n, locale: r } = e, i = e.ids(t.key), a = new Intl.NumberFormat(r), o = {
181
+ now: e.now,
182
+ timeZone: e.timeZone
183
+ }, s = t.counts ?? {}, c = [
184
+ "total",
185
+ "processed",
186
+ "created",
187
+ "updated",
188
+ "skipped",
189
+ "failed"
190
+ ].filter((e) => typeof s[e] == "number"), l = [
191
+ ["source", t.source],
192
+ ["result", t.result],
193
+ ["errors", t.errorsFile]
194
+ ].filter((e) => e[1] !== void 0), u = t.errors ?? [], d = Math.max(t.errorCount ?? 0, u.length);
195
+ return /* @__PURE__ */ j("div", {
196
+ "aria-labelledby": i.toggle,
197
+ "data-part": "details",
198
+ id: i.details,
199
+ role: "region",
200
+ children: [
201
+ c.length > 0 ? /* @__PURE__ */ A("dl", {
202
+ "data-part": "counts",
203
+ children: c.map((e) => /* @__PURE__ */ j("div", {
204
+ "data-count": e,
205
+ children: [/* @__PURE__ */ A("dt", { children: n(`countLabels.${e}`) }), /* @__PURE__ */ A("dd", { children: a.format(s[e] ?? 0) })]
206
+ }, e))
207
+ }) : null,
208
+ l.length > 0 ? /* @__PURE__ */ A("ul", {
209
+ "data-part": "files",
210
+ children: l.map(([i, a]) => {
211
+ let s = _e(a, o), c = s === "denied" ? a.denied : a.expiresAt === void 0 ? void 0 : n(s === "expired" ? "expired" : "expires", { date: H(a.expiresAt, e) }), l = s === "available" || s === "expires";
212
+ return /* @__PURE__ */ j("li", {
213
+ "data-part": "file",
214
+ "data-availability": s,
215
+ children: [/* @__PURE__ */ j("span", {
216
+ "data-part": "meta",
217
+ children: [
218
+ /* @__PURE__ */ A("strong", { children: n(`fileLabels.${i}`) }),
219
+ /* @__PURE__ */ A("span", { children: /* @__PURE__ */ A(z, { name: a.name }) }),
220
+ a.size === void 0 ? null : /* @__PURE__ */ A("span", { children: pe(a.size, r) }),
221
+ c === void 0 ? null : /* @__PURE__ */ A("span", { children: c })
222
+ ]
223
+ }), l ? /* @__PURE__ */ A(V, {
224
+ context: e,
225
+ file: a,
226
+ job: t,
227
+ label: n("download"),
228
+ role: i,
229
+ variant: "ghost"
230
+ }) : null]
231
+ }, i);
232
+ })
233
+ }) : null,
234
+ u.length > 0 ? /* @__PURE__ */ j("div", {
235
+ "data-part": "errors",
236
+ children: [/* @__PURE__ */ A(y, {
237
+ columns: 4,
238
+ variant: "framed",
239
+ children: /* @__PURE__ */ j(ne, { children: [
240
+ /* @__PURE__ */ A(C, { children: n("errorsCaption") }),
241
+ /* @__PURE__ */ A(re, { children: /* @__PURE__ */ j(b, { children: [
242
+ /* @__PURE__ */ A(S, {
243
+ numeric: !0,
244
+ children: n("errorColumns.row")
245
+ }),
246
+ /* @__PURE__ */ A(S, { children: n("errorColumns.message") }),
247
+ /* @__PURE__ */ A(S, { children: n("errorColumns.column") }),
248
+ /* @__PURE__ */ A(S, { children: n("errorColumns.value") })
249
+ ] }) }),
250
+ /* @__PURE__ */ A(x, { children: u.map((e, t) => /* @__PURE__ */ j(b, { children: [
251
+ /* @__PURE__ */ A(w, {
252
+ numeric: !0,
253
+ children: a.format(e.row)
254
+ }),
255
+ /* @__PURE__ */ A(w, { children: e.message }),
256
+ /* @__PURE__ */ A(w, { children: e.column ?? "" }),
257
+ /* @__PURE__ */ A(w, { children: e.value ?? "" })
258
+ ] }, `${e.row}-${t}`)) })
259
+ ] })
260
+ }), d > u.length ? /* @__PURE__ */ A("p", {
261
+ "data-part": "errors-note",
262
+ children: /* @__PURE__ */ A("span", { children: n("sample", {
263
+ shown: u.length,
264
+ total: d
265
+ }) })
266
+ }) : null]
267
+ }) : null
268
+ ]
269
+ });
270
+ }
271
+ function Ue({ context: n, job: r }) {
272
+ let { t: o, locale: s } = n, c = n.ids(r.key), l = {
273
+ now: n.now,
274
+ timeZone: n.timeZone
275
+ }, u = Ee(r), d = Ce(r, l), f = n.expanded.has(r.key) && d.controls.includes("toggle"), p = we(r), m = r.direction === "export" ? r.result ?? r.source : r.source ?? r.result, h = r.status === "succeeded" || r.status === "failed" ? r.finishedAt ?? r.createdAt : r.createdAt, g = h === void 0 ? null : N(h, {
276
+ format: n.timeFormat,
277
+ locale: s,
278
+ now: n.now,
279
+ timeZone: n.timeZone
280
+ }), _ = r.status === "running" ? De(r, {
281
+ locale: s,
282
+ t: o,
283
+ remaining: n.remaining.get(r.key)
284
+ }) : [], ee = ke(r, {
285
+ locale: s,
286
+ t: o
287
+ }), te = Ve(r, n), v = n.renderJobActions?.(r), y = (e) => `${c.control(e)} ${c.title}`, ne = (e) => {
288
+ let t = I(L(e), e);
289
+ n.onOpen?.(r.key, t), t.cancelled && e.preventDefault();
290
+ }, b = (i) => {
291
+ switch (i) {
292
+ case "download": {
293
+ let e = d.download ?? "result", t = e === "errors" ? r.errorsFile : r.result;
294
+ return t === void 0 ? null : /* @__PURE__ */ A(V, {
295
+ context: n,
296
+ describedBy: c.status,
297
+ file: t,
298
+ id: c.control("download"),
299
+ job: r,
300
+ label: o(e === "errors" ? "downloadErrors" : "download"),
301
+ labelledBy: y("download"),
302
+ role: e,
303
+ variant: "outline"
304
+ }, i);
305
+ }
306
+ case "cancel":
307
+ case "retry": return /* @__PURE__ */ A("span", {
308
+ "data-part": i,
309
+ children: /* @__PURE__ */ A(a, {
310
+ "aria-describedby": c.status,
311
+ "aria-labelledby": y(i),
312
+ id: c.control(i),
313
+ onClick: (e) => (i === "cancel" ? n.onCancel : n.onRetry)?.(r.key, I(L(e), e)),
314
+ size: "sm",
315
+ tone: "secondary",
316
+ variant: "outline",
317
+ children: i === "cancel" ? o("cancel") : d.retry === "regenerate" ? o("regenerate") : o("retry")
318
+ })
319
+ }, i);
320
+ case "toggle": return /* @__PURE__ */ A("span", {
321
+ "data-part": "toggle",
322
+ ...f ? { "data-expanded": "" } : {},
323
+ children: /* @__PURE__ */ A(a, {
324
+ "aria-controls": c.details,
325
+ "aria-expanded": f,
326
+ "aria-labelledby": `${c.toggle} ${c.title}`,
327
+ end: /* @__PURE__ */ A("span", {
328
+ "data-part": "chevron",
329
+ children: /* @__PURE__ */ A(t, { children: /* @__PURE__ */ A(e, { name: "chevron-down" }) })
330
+ }),
331
+ id: c.toggle,
332
+ onClick: (e) => n.onToggle(r.key, L(e), e),
333
+ size: "sm",
334
+ tone: "secondary",
335
+ variant: "ghost",
336
+ children: o("details")
337
+ })
338
+ }, i);
339
+ case "remove": return /* @__PURE__ */ A(B, {
340
+ describedBy: c.title,
341
+ label: o("remove"),
342
+ onPress: (e) => n.onRemove?.({ keys: [r.key] }, I(L(e), e))
343
+ }, i);
344
+ default: return null;
345
+ }
346
+ }, x = d.controls.filter((e) => e !== "remove");
347
+ return /* @__PURE__ */ j("li", {
348
+ "data-direction": r.direction,
349
+ "data-key": r.key,
350
+ "data-part": "job",
351
+ "data-status": r.status,
352
+ ...u === null ? {} : { "data-outcome": u },
353
+ ...d.expired ? { "data-expired": "" } : {},
354
+ ...f ? { "data-expanded": "" } : {},
355
+ children: [
356
+ /* @__PURE__ */ A("span", {
357
+ "aria-hidden": "true",
358
+ "data-kind": Be(r),
359
+ "data-part": "visual",
360
+ children: /* @__PURE__ */ A(t, { children: /* @__PURE__ */ A(e, { name: F[Be(r)] }) })
361
+ }),
362
+ /* @__PURE__ */ j("div", {
363
+ "data-part": "body",
364
+ children: [
365
+ /* @__PURE__ */ j("div", {
366
+ "data-part": "heading",
367
+ children: [r.href === void 0 ? /* @__PURE__ */ A("span", {
368
+ "data-part": "job-title",
369
+ id: c.title,
370
+ tabIndex: -1,
371
+ children: r.title
372
+ }) : /* @__PURE__ */ A("a", {
373
+ "data-part": "job-title",
374
+ href: r.href,
375
+ id: c.title,
376
+ onClick: ne,
377
+ children: r.title
378
+ }), /* @__PURE__ */ j("p", {
379
+ "data-part": "meta",
380
+ children: [
381
+ /* @__PURE__ */ A("span", { children: o(r.direction) }),
382
+ r.format === void 0 ? null : /* @__PURE__ */ A("span", { children: r.format }),
383
+ m === void 0 ? null : /* @__PURE__ */ A("span", { children: /* @__PURE__ */ A(z, { name: m.name }) }),
384
+ m?.size === void 0 ? null : /* @__PURE__ */ A("span", { children: pe(m.size, s) }),
385
+ r.actor === void 0 ? null : /* @__PURE__ */ A("span", { children: r.actor }),
386
+ g === null ? null : /* @__PURE__ */ A("time", {
387
+ "data-part": "time",
388
+ dateTime: g.dateTime,
389
+ ...g.title === null ? {} : { title: g.title },
390
+ children: g.text
391
+ })
392
+ ]
393
+ })]
394
+ }),
395
+ /* @__PURE__ */ j("div", {
396
+ "data-part": "status",
397
+ id: c.status,
398
+ children: [/* @__PURE__ */ A("span", {
399
+ "aria-hidden": "true",
400
+ "data-part": "mark",
401
+ children: p === "spinner" ? /* @__PURE__ */ A("span", { "data-ui": "spinner" }) : /* @__PURE__ */ A(t, { children: /* @__PURE__ */ A(e, { name: p }) })
402
+ }), /* @__PURE__ */ j("span", {
403
+ "data-part": "status-label",
404
+ children: [/* @__PURE__ */ A("span", { children: Oe(r, o) }), r.stage === void 0 || r.stage === "" ? null : /* @__PURE__ */ A("span", {
405
+ "data-part": "stage",
406
+ title: r.stage,
407
+ children: r.stage
408
+ })]
409
+ })]
410
+ }),
411
+ r.status === "running" ? /* @__PURE__ */ j("div", {
412
+ "data-part": "progress",
413
+ children: [/* @__PURE__ */ A(i, {
414
+ "aria-labelledby": c.title,
415
+ delay: 0,
416
+ hideLabel: !0,
417
+ max: r.progress?.max ?? 100,
418
+ size: "sm",
419
+ tone: "accent",
420
+ value: r.progress?.value ?? null,
421
+ ..._.length > 0 ? { valueText: _.join(", ") } : {}
422
+ }), _.length > 0 ? /* @__PURE__ */ A("span", {
423
+ "data-part": "progress-text",
424
+ children: _.map((e) => /* @__PURE__ */ A("span", { children: e }, e))
425
+ }) : null]
426
+ }) : null,
427
+ ee.length > 0 ? /* @__PURE__ */ A("p", {
428
+ "data-part": "summary",
429
+ children: ee.map((e) => /* @__PURE__ */ A("span", { children: e }, e))
430
+ }) : null,
431
+ te === null ? null : /* @__PURE__ */ A("p", {
432
+ "data-part": "message",
433
+ children: te
434
+ })
435
+ ]
436
+ }),
437
+ x.length > 0 || R(v) || d.controls.includes("remove") ? /* @__PURE__ */ j("div", {
438
+ "data-part": "controls",
439
+ children: [
440
+ x.map(b),
441
+ R(v) ? /* @__PURE__ */ A("span", {
442
+ "data-part": "job-actions",
443
+ children: v
444
+ }) : null,
445
+ d.controls.includes("remove") ? b("remove") : null
446
+ ]
447
+ }) : null,
448
+ f && be(r) ? /* @__PURE__ */ A(He, {
449
+ context: n,
450
+ job: r
451
+ }) : null
452
+ ]
453
+ });
454
+ }
455
+ function We({ actions: e, "aria-label": t, "aria-labelledby": i, className: o, defaultExpanded: s, defaultView: c, empty: l, expanded: u, footer: y, growing: ne, hasMore: b = !1, jobs: x, level: S, loading: C = !1, locale: w, messages: re, now: T, onCancel: ae, onDownload: oe, onExpandedChange: M, onLoadMore: pe, onOpen: me, onReload: _e, onRemove: be, onRetry: Ce, onViewChange: we, ref: Te, render: Ee, renderJobActions: De, size: Oe, status: ke = "ready", style: N, timeFormat: P, timeZone: Ne, view: F, views: Le, ...Be }) {
456
+ let z = Me(), B = `slotted-import-export-center-${se().replace(/[^\w-]/g, "")}`, V = `${B}-title`, H = `${B}-list`, Ve = ne ?? z.growing, He = S ?? z.level, We = n(), Ge = w ?? We, Ke = Oe ?? z.size, qe = P ?? z.timeFormat, Je = Ne ?? z.timeZone, U = r(fe, re), [Ye, Xe] = k(null), W = O(null), Ze = ue(() => Le ?? [
457
+ {
458
+ label: U("all"),
459
+ value: "all"
460
+ },
461
+ {
462
+ label: U("imports"),
463
+ value: "import"
464
+ },
465
+ {
466
+ label: U("exports"),
467
+ value: "export"
468
+ }
469
+ ], [Le, U]), [Qe, $e] = k(c), G = F ?? Qe ?? Ze[0]?.value ?? "all", [K, et] = k(s ?? []), tt = u ?? K, q = O({
470
+ currentExpanded: tt,
471
+ currentView: G,
472
+ expanded: u,
473
+ onExpandedChange: M,
474
+ onViewChange: we,
475
+ view: F
476
+ });
477
+ q.current = {
478
+ currentExpanded: tt,
479
+ currentView: G,
480
+ expanded: u,
481
+ onExpandedChange: M,
482
+ onViewChange: we,
483
+ view: F
484
+ };
485
+ let nt = E((e, t, n) => {
486
+ if (e === q.current.currentView) return;
487
+ let r = !1, i = ie({
488
+ controlled: q.current.view,
489
+ initial: q.current.currentView,
490
+ onRequest: (e) => {
491
+ q.current.onViewChange?.(e.value, e), r = e.cancelled;
492
+ }
493
+ }).request(e, t, n);
494
+ !r && i && $e(e);
495
+ }, []), J = E((e, t, n) => {
496
+ if (ze(e, q.current.currentExpanded)) return !0;
497
+ let r = !1, i = ie({
498
+ controlled: q.current.expanded,
499
+ equals: ze,
500
+ initial: q.current.currentExpanded,
501
+ onRequest: (e) => {
502
+ q.current.onExpandedChange?.(e.value, e), r = e.cancelled;
503
+ }
504
+ }).request(e, t, n);
505
+ return !r && i && et(e), !r;
506
+ }, []), rt = E((e, t, n) => {
507
+ let r = q.current.currentExpanded;
508
+ J(r.includes(e) ? r.filter((t) => t !== e) : [...r, e], t, n);
509
+ }, [J]);
510
+ D(() => {
511
+ if (u !== void 0) return;
512
+ let e = new Set(x.map((e) => e.key)), t = K.filter((t) => e.has(t));
513
+ t.length !== K.length && et(t);
514
+ }, [
515
+ x,
516
+ u,
517
+ K
518
+ ]);
519
+ let it = O(null);
520
+ D(() => {
521
+ let e = it.current;
522
+ if (it.current = new Map(x.map((e) => [e.key, e])), e !== null) for (let t of x) {
523
+ let n = Ae(e.get(t.key), t);
524
+ n !== null && he().announce(Se(n, t, U));
525
+ }
526
+ }, [x]);
527
+ let Y = O(/* @__PURE__ */ new Map()), [at, ot] = k(/* @__PURE__ */ new Map());
528
+ D(() => {
529
+ let e = T ?? Date.now(), t = /* @__PURE__ */ new Map();
530
+ for (let n of x) {
531
+ if (n.status !== "running") {
532
+ Y.current.delete(n.key);
533
+ continue;
534
+ }
535
+ let r = n.progress?.value, i = n.progress?.max, a = Y.current.get(n.key) ?? [];
536
+ r !== void 0 && i !== void 0 && a.at(-1)?.value !== r && (a.push({
537
+ at: Date.now(),
538
+ max: i,
539
+ value: r
540
+ }), a.length > Ie && a.shift(), Y.current.set(n.key, a)), t.set(n.key, je(n, a, {
541
+ now: e,
542
+ timeZone: Je
543
+ }));
544
+ }
545
+ ot(t);
546
+ }, [
547
+ x,
548
+ T,
549
+ Je
550
+ ]);
551
+ let X = O(null), st = (e) => {
552
+ let t = e.target, n = t.closest("[data-part=\"job\"]");
553
+ if (n === null || !W.current?.contains(n)) {
554
+ X.current = null;
555
+ return;
556
+ }
557
+ let r = [...W.current?.querySelectorAll(":scope > [data-part=\"job\"]") ?? []], i = "job-title";
558
+ for (let e = t; e !== null && e !== n; e = e.parentElement) {
559
+ let t = e.dataset.part;
560
+ if (t !== void 0 && Pe.includes(t)) {
561
+ i = t;
562
+ break;
563
+ }
564
+ }
565
+ X.current = {
566
+ element: t,
567
+ index: r.indexOf(n),
568
+ key: n.dataset.key ?? "",
569
+ part: i
570
+ };
571
+ }, ct = (e, t) => {
572
+ let n = (W.current?.querySelector(`:scope > [data-part="job"][data-key="${CSS.escape(e)}"]`))?.querySelector(`[data-part="${t}"]`), r = n == null ? null : n.matches("button, a, [tabindex]") ? n : n.querySelector("button, a");
573
+ return r !== null && (r.focus(), !0);
574
+ };
575
+ le(() => {
576
+ let e = X.current, t = W.current;
577
+ if (e === null || t === null || e.element.isConnected) return;
578
+ let n = t.ownerDocument.activeElement;
579
+ if (n !== null && n !== t.ownerDocument.body) return;
580
+ let r = [...t.querySelectorAll(":scope > [data-part=\"job\"][data-key]")].map((e) => ({
581
+ key: e.dataset.key ?? "",
582
+ parts: Pe.filter((t) => t !== "job-title" && e.querySelector(`[data-part="${t}"]`) !== null)
583
+ })), i = ye(e, r);
584
+ if (X.current = null, "list" in i) {
585
+ t.focus();
586
+ return;
587
+ }
588
+ ct(i.key, i.part);
589
+ });
590
+ let lt = O(null), ut = E((e) => {
591
+ if (!x.some((t) => t.key === e)) return;
592
+ let t = q.current.currentExpanded;
593
+ t.includes(e) || J([...t, e], "programmatic", void 0), lt.current = e;
594
+ let n = x.find((t) => t.key === e);
595
+ n !== void 0 && ve([n], q.current.currentView).length === 0 && nt("all", "programmatic", void 0);
596
+ }, [
597
+ x,
598
+ J,
599
+ nt
600
+ ]);
601
+ le(() => {
602
+ let e = lt.current;
603
+ if (e === null) return;
604
+ lt.current = null;
605
+ let t = W.current?.querySelector(`:scope > [data-part="job"][data-key="${CSS.escape(e)}"]`);
606
+ t != null && (t.scrollIntoView?.({ block: "nearest" }), t.querySelector("[data-part=\"job-title\"]")?.focus({ preventScroll: !0 }));
607
+ });
608
+ let Z = ue(() => ve(x, G), [x, G]), dt = E(() => {
609
+ (W.current?.querySelector(":scope > [data-part=\"job\"] :is(a[data-part=\"job-title\"], [data-part=\"controls\"] button, [data-part=\"controls\"] a)") ?? W.current)?.focus();
610
+ }, []);
611
+ ce(Te, () => ({
612
+ get element() {
613
+ return Ye;
614
+ },
615
+ focus: dt,
616
+ reveal: ut
617
+ }), [
618
+ Ye,
619
+ dt,
620
+ ut
621
+ ]);
622
+ let ft = E((e) => {
623
+ let t = `${B}-${Re(e)}`;
624
+ return {
625
+ control: (e) => `${t}-${e}`,
626
+ details: `${t}-details`,
627
+ status: `${t}-status`,
628
+ title: `${t}-title`,
629
+ toggle: `${t}-toggle`
630
+ };
631
+ }, [B]), pt = {
632
+ expanded: new Set(tt),
633
+ ids: ft,
634
+ locale: Ge,
635
+ now: T,
636
+ onCancel: ae,
637
+ onDownload: oe,
638
+ onOpen: me,
639
+ onRemove: be,
640
+ onRetry: Ce,
641
+ onToggle: rt,
642
+ remaining: at,
643
+ renderJobActions: De,
644
+ t: U,
645
+ timeFormat: qe,
646
+ timeZone: Je
647
+ }, mt = `h${He}`, ht = ge(x), gt = Z.filter((e) => xe(e) && e.removable !== !1), Q = C && Z.length === 0, $ = ke === "error", _t = !$ && !Q && Z.length === 0, vt = U(G === "import" ? "emptyImports" : G === "export" ? "emptyExports" : "empty"), yt = {
648
+ ...Be,
649
+ ...t === void 0 ? { "aria-labelledby": i ?? V } : { "aria-label": t },
650
+ children: /* @__PURE__ */ j(de, { children: [
651
+ /* @__PURE__ */ j("div", {
652
+ "data-part": "header",
653
+ children: [/* @__PURE__ */ j(mt, {
654
+ "data-part": "title",
655
+ id: V,
656
+ children: [U("title"), ht > 0 ? /* @__PURE__ */ j(de, { children: [" ", /* @__PURE__ */ A("span", {
657
+ "data-part": "count",
658
+ children: U("active", { count: ht })
659
+ })] }) : null]
660
+ }), gt.length > 0 || R(e) ? /* @__PURE__ */ j("div", {
661
+ "data-part": "tools",
662
+ children: [gt.length > 0 ? /* @__PURE__ */ A("span", {
663
+ "data-part": "clear",
664
+ children: /* @__PURE__ */ A(a, {
665
+ onClick: (e) => be?.({ keys: gt.map((e) => e.key) }, I("clear", e)),
666
+ size: "sm",
667
+ tone: "secondary",
668
+ variant: "ghost",
669
+ children: U("clear")
670
+ })
671
+ }) : null, R(e) ? /* @__PURE__ */ A("div", {
672
+ "data-part": "actions",
673
+ children: e
674
+ }) : null]
675
+ }) : null]
676
+ }),
677
+ Ze.length > 1 ? /* @__PURE__ */ A("div", {
678
+ "data-part": "views",
679
+ children: /* @__PURE__ */ A(ee, {
680
+ onValueChange: (e, t) => nt(e, t.reason, t.source),
681
+ size: Ke,
682
+ track: "none",
683
+ value: G,
684
+ children: /* @__PURE__ */ A(te, {
685
+ "aria-label": U("views"),
686
+ children: Ze.map((e) => /* @__PURE__ */ A(v, {
687
+ controls: H,
688
+ value: e.value,
689
+ children: e.label
690
+ }, e.value))
691
+ })
692
+ })
693
+ }) : null,
694
+ $ ? /* @__PURE__ */ A("div", {
695
+ "data-part": "error",
696
+ children: /* @__PURE__ */ j(_, {
697
+ live: "off",
698
+ reach: "section",
699
+ status: "error",
700
+ children: [/* @__PURE__ */ j(g, { children: [/* @__PURE__ */ A(h, { children: U("loadError") }), /* @__PURE__ */ A(p, { children: U("loadErrorDescription") })] }), /* @__PURE__ */ A(m, { children: /* @__PURE__ */ A(a, {
701
+ onClick: (e) => _e?.(I(L(e), e)),
702
+ size: "sm",
703
+ tone: "secondary",
704
+ variant: "outline",
705
+ children: U("reload")
706
+ }) })]
707
+ })
708
+ }) : _t ? /* @__PURE__ */ A("div", {
709
+ "data-part": "empty",
710
+ children: l ?? /* @__PURE__ */ A(_, {
711
+ live: "off",
712
+ reach: "section",
713
+ status: "empty",
714
+ children: /* @__PURE__ */ j(g, { children: [/* @__PURE__ */ A(h, { children: vt }), /* @__PURE__ */ A(p, { children: U("emptyDescription") })] })
715
+ })
716
+ }) : /* @__PURE__ */ A("ul", {
717
+ "aria-busy": C ? !0 : void 0,
718
+ "aria-labelledby": V,
719
+ "data-part": "list",
720
+ id: H,
721
+ onFocus: st,
722
+ ref: W,
723
+ tabIndex: -1,
724
+ children: Q ? Array.from({ length: Fe }, (e, t) => /* @__PURE__ */ j("li", {
725
+ "aria-hidden": "true",
726
+ "data-part": "job",
727
+ children: [/* @__PURE__ */ A("span", {
728
+ "data-part": "visual",
729
+ children: /* @__PURE__ */ A(d, { shape: "block" })
730
+ }), /* @__PURE__ */ j("div", {
731
+ "data-part": "body",
732
+ children: [/* @__PURE__ */ A(f, { lines: 2 }), /* @__PURE__ */ A(f, { lines: 1 })]
733
+ })]
734
+ }, t)) : Z.map((e) => /* @__PURE__ */ A(Ue, {
735
+ context: pt,
736
+ job: e
737
+ }, e.key))
738
+ }),
739
+ !$ && Ve === "button" && b && !Q ? /* @__PURE__ */ A("button", {
740
+ "aria-disabled": C ? !0 : void 0,
741
+ "data-part": "more",
742
+ ...C ? { "data-loading": "" } : {},
743
+ onClick: (e) => {
744
+ C || pe?.(I(L(e), e));
745
+ },
746
+ type: "button",
747
+ children: U(C ? "loading" : "loadMore")
748
+ }) : null,
749
+ R(y) ? /* @__PURE__ */ A("div", {
750
+ "data-part": "footer",
751
+ children: y
752
+ }) : null
753
+ ] }),
754
+ className: o,
755
+ "data-growing": Ve,
756
+ "data-level": He,
757
+ ...C ? { "data-loading": "" } : {},
758
+ "data-part": "root",
759
+ "data-size": Ke,
760
+ ...$ ? { "data-status": "error" } : {},
761
+ "data-time-format": qe,
762
+ "data-ui": "import-export-center",
763
+ "data-view": G,
764
+ style: N
765
+ };
766
+ return Ee === void 0 ? /* @__PURE__ */ A("section", {
767
+ ...yt,
768
+ ref: Xe
769
+ }) : Ee({
770
+ ...yt,
771
+ ref: Xe
772
+ });
773
+ }
774
+ //#endregion
775
+ //#region src/import-export-center/use-job-toasts.tsx
776
+ function Ge(e, { messages: t, onView: n, toaster: i } = {}) {
777
+ let o = T(), s = i ?? o, c = O(null), l = r(fe, t), u = O({
778
+ onView: n,
779
+ t: l,
780
+ target: s
781
+ });
782
+ u.current = {
783
+ onView: n,
784
+ t: l,
785
+ target: s
786
+ }, D(() => {
787
+ let t = c.current;
788
+ if (c.current = new Map(e.map((e) => [e.key, e])), t === null) return;
789
+ let { onView: n, t: r, target: i } = u.current;
790
+ for (let o of e) {
791
+ let e = Te(t.get(o.key), o, r);
792
+ e !== null && i.show({
793
+ actions: n === void 0 ? void 0 : /* @__PURE__ */ A(a, {
794
+ onClick: () => {
795
+ i.dismiss(e.id, "pointer"), n(e.key);
796
+ },
797
+ size: "sm",
798
+ tone: "secondary",
799
+ variant: "outline",
800
+ children: r("view")
801
+ }),
802
+ announcement: e.title,
803
+ description: e.description,
804
+ id: e.id,
805
+ loading: e.loading,
806
+ title: e.title,
807
+ tone: e.tone
808
+ });
809
+ }
810
+ }, [e]);
811
+ }
812
+ //#endregion
813
+ export { Me as i, We as n, Ne as r, Ge as t };