@genispace/geniapp 0.3.0 → 0.5.0

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 (712) hide show
  1. package/README.md +36 -11
  2. package/dist/{CrossAppRecordPicker-CQVmirWD.js → CrossAppRecordPicker-BRpqAjd7.js} +189 -253
  3. package/dist/CrossAppRecordPicker-BRpqAjd7.js.map +1 -0
  4. package/dist/MultiPageRenderer-B4G9Oswj.js +535 -0
  5. package/dist/MultiPageRenderer-B4G9Oswj.js.map +1 -0
  6. package/dist/Sidebar-DdSOXqnC.js +260 -0
  7. package/dist/Sidebar-DdSOXqnC.js.map +1 -0
  8. package/dist/ai/adopt/AiSuggestionPanel.d.ts +1 -1
  9. package/dist/ai/components/AgentJobProgress.d.ts +1 -1
  10. package/dist/ai/components/BulkActionBar.d.ts +1 -1
  11. package/dist/ai/integrations/partner/createPartnerRecordPickerHook.d.ts +1 -1
  12. package/dist/case-workspace/domain.d.ts +1 -1
  13. package/dist/components/adapters/host.d.ts +4 -0
  14. package/dist/components/adapters/host.js +12 -0
  15. package/dist/components/adapters/host.js.map +1 -0
  16. package/dist/components/adapters/platform.d.ts +16 -0
  17. package/dist/components/app/context/DeploymentContext.d.ts +24 -0
  18. package/dist/components/app/context/PermissionContext.d.ts +32 -0
  19. package/dist/components/app/context/SubscriptionContext.d.ts +9 -0
  20. package/dist/components/app/context/UserContext.d.ts +22 -0
  21. package/dist/components/app/services/apiKey.d.ts +96 -0
  22. package/dist/components/app/services/auth.d.ts +1 -0
  23. package/dist/components/app/services/configMap.d.ts +94 -0
  24. package/dist/components/app/services/task.d.ts +42 -0
  25. package/dist/components/app/services/workbenchApi.d.ts +495 -0
  26. package/dist/components/app/types/agent.d.ts +100 -0
  27. package/dist/components/app/types/api.d.ts +9 -0
  28. package/dist/components/app/types/knowledge.d.ts +10 -0
  29. package/dist/components/app/types/model.d.ts +23 -0
  30. package/dist/components/app/types/task.d.ts +64 -0
  31. package/dist/components/app/types/taskExecution.d.ts +26 -0
  32. package/dist/components/assets/maps/bundledMapGeo.d.ts +4 -0
  33. package/dist/components/config/communicationIcons.d.ts +23 -0
  34. package/dist/components/config/componentTriggers.d.ts +70 -0
  35. package/dist/components/constants/tableActionButtonStyle.d.ts +15 -0
  36. package/dist/components/contexts/PageFullscreenContext.d.ts +4 -0
  37. package/dist/components/contexts/ParameterContext.d.ts +18 -0
  38. package/dist/components/contexts/TabActivityContext.d.ts +2 -0
  39. package/dist/components/contexts/ViewportContext.d.ts +19 -0
  40. package/dist/components/contexts/WorkbenchConfigLocaleContext.d.ts +23 -0
  41. package/dist/components/contexts/WorkbenchGlobalSpaceContext.d.ts +10 -0
  42. package/dist/components/contexts/WorkbenchThemeContext.d.ts +23 -0
  43. package/dist/components/dialogs/TaskParamsDialog.d.ts +18 -0
  44. package/dist/components/dialogs/TreeFormDialog.d.ts +23 -0
  45. package/dist/components/hooks/index.d.ts +6 -0
  46. package/dist/components/hooks/useComponentCommunication.d.ts +27 -0
  47. package/dist/components/hooks/useConditionMapper.d.ts +17 -0
  48. package/dist/components/hooks/useCurrentUser.d.ts +10 -0
  49. package/dist/components/hooks/useDatabaseDataSource.d.ts +8 -0
  50. package/dist/components/hooks/useDatasourceVersionBindings.d.ts +24 -0
  51. package/dist/components/hooks/useEnhancedDataSource.d.ts +40 -0
  52. package/dist/components/hooks/useMobileViewport.d.ts +18 -0
  53. package/dist/components/hooks/usePageAutoRefresh.d.ts +9 -0
  54. package/dist/components/hooks/useParameterHandler.d.ts +27 -0
  55. package/dist/components/hooks/useReleaseNotesPrompt.d.ts +38 -0
  56. package/dist/components/hooks/useSpaceSwitchHandler.d.ts +7 -0
  57. package/dist/components/hooks/useTaskInputDataSourceCache.d.ts +24 -0
  58. package/dist/components/hooks/useVisibleWhenContext.d.ts +3 -0
  59. package/dist/components/hooks/useWaitForParameters.d.ts +9 -0
  60. package/dist/components/hooks/useWorkbenchAppAccess.d.ts +16 -0
  61. package/dist/components/hooks/useWorkbenchHeaderNavApps.d.ts +7 -0
  62. package/dist/components/hooks/useWorkbenchPreview.d.ts +24 -0
  63. package/dist/components/index.d.ts +23 -0
  64. package/dist/components/inputs/ArrayInput.d.ts +14 -0
  65. package/dist/components/inputs/ObjectArrayInput.d.ts +15 -0
  66. package/dist/components/layout/Grid24Renderer.d.ts +23 -0
  67. package/dist/components/layout/grid24CellContext.d.ts +2 -0
  68. package/dist/components/layout/index.d.ts +6 -0
  69. package/dist/components/layout.js +43 -0
  70. package/dist/components/layout.js.map +1 -0
  71. package/dist/components/lib/api/apiClient.d.ts +22 -0
  72. package/dist/components/lib/api/baseApiClient.d.ts +21 -0
  73. package/dist/components/lib/api/hostAdapterBridge.d.ts +21 -0
  74. package/dist/components/lib/api.d.ts +1 -0
  75. package/dist/components/lib/auth/permissionManager.d.ts +67 -0
  76. package/dist/components/lib/config/deployment.d.ts +33 -0
  77. package/dist/components/lib/config.d.ts +45 -0
  78. package/dist/components/lib/hooks/use-mobile.d.ts +1 -0
  79. package/dist/components/lib/hooks/useOperator.d.ts +11 -0
  80. package/dist/components/lib/services/agentService.d.ts +77 -0
  81. package/dist/components/lib/services/applicationService.d.ts +111 -0
  82. package/dist/components/lib/theme/themeUtils.d.ts +13 -0
  83. package/dist/components/lib/theme/useWorkbenchTheme.d.ts +1 -0
  84. package/dist/components/lib/types/api.d.ts +113 -0
  85. package/dist/components/lib/utils/avatar.d.ts +7 -0
  86. package/dist/components/lib/utils/cn.d.ts +3 -0
  87. package/dist/components/lib/utils/color.d.ts +1 -0
  88. package/dist/components/lib/utils/debounce.d.ts +1 -0
  89. package/dist/components/lib/utils/formatting.d.ts +4 -0
  90. package/dist/components/lib/utils/icon.d.ts +1 -0
  91. package/dist/components/lib/utils.d.ts +7 -0
  92. package/dist/components/locales/i18n.d.ts +10 -0
  93. package/dist/components/locales/routeNamespaces.d.ts +4 -0
  94. package/dist/components/mobile/components/BottomTabNavigation.d.ts +11 -0
  95. package/dist/components/mobile/components/ComponentAdapter.d.ts +9 -0
  96. package/dist/components/mobile/components/MobileFloatingBackButton.d.ts +23 -0
  97. package/dist/components/mobile/components/adaptive/MobileCardView.d.ts +6 -0
  98. package/dist/components/mobile/components/adaptive/MobileChartView.d.ts +9 -0
  99. package/dist/components/mobile/components/adaptive/MobileDateRangeFilterField.d.ts +16 -0
  100. package/dist/components/mobile/components/adaptive/MobileEChartsView.d.ts +10 -0
  101. package/dist/components/mobile/components/adaptive/MobileFormView.d.ts +6 -0
  102. package/dist/components/mobile/components/adaptive/MobileListView.d.ts +6 -0
  103. package/dist/components/mobile/components/adaptive/MobileStatCard.d.ts +13 -0
  104. package/dist/components/mobile/components/adaptive/MobileTableView.d.ts +9 -0
  105. package/dist/components/mobile/components/adaptive/MobileTabsView.d.ts +6 -0
  106. package/dist/components/mobile/components/adaptive/index.d.ts +4 -0
  107. package/dist/components/mobile/components/adaptive/mobileFilterFieldStyles.d.ts +19 -0
  108. package/dist/components/mobile/hooks/useMobileNavigationCanGoBack.d.ts +1 -0
  109. package/dist/components/mobile/hooks/useMobileTabTransitionDirection.d.ts +1 -0
  110. package/dist/components/mobile/index.d.ts +4 -0
  111. package/dist/components/mobile/mobileFlowLayoutContext.d.ts +2 -0
  112. package/dist/components/mobile/runtime-index.d.ts +3 -0
  113. package/dist/components/mobile/utils/fetchUserCurrentSpaceId.d.ts +15 -0
  114. package/dist/components/mobile/utils/getMobileViewportState.d.ts +25 -0
  115. package/dist/components/mobile/utils/mobileBottomNav.d.ts +13 -0
  116. package/dist/components/mobile/utils/mobileBottomNavInset.d.ts +4 -0
  117. package/dist/components/mobile/utils/mobileComponentProps.d.ts +44 -0
  118. package/dist/components/mobile/utils/mobileFormDisplayUtils.d.ts +4 -0
  119. package/dist/components/mobile/utils/mobileNavigationStore.d.ts +35 -0
  120. package/dist/components/mobile/utils/mobileToolbarNav.d.ts +13 -0
  121. package/dist/components/mobile/utils/mobileUA.d.ts +1 -0
  122. package/dist/components/mobile/utils/mobileWorkbenchSpaceSync.d.ts +60 -0
  123. package/dist/components/mobile/utils/wecomDetector.d.ts +9 -0
  124. package/dist/components/mobile/utils/workbenchSpaceSyncGate.d.ts +7 -0
  125. package/dist/components/mobile.js +25 -0
  126. package/dist/components/mobile.js.map +1 -0
  127. package/dist/components/mocks/index.d.ts +13 -0
  128. package/dist/components/mocks/templateRegistry.d.ts +16 -0
  129. package/dist/components/mocks/types.d.ts +1 -0
  130. package/dist/components/renderers/analytics-table/AnalyticsTableRenderer.d.ts +125 -0
  131. package/dist/components/renderers/analytics-table/index.d.ts +1 -0
  132. package/dist/components/renderers/analytics-table.js +5 -0
  133. package/dist/components/renderers/analytics-table.js.map +1 -0
  134. package/dist/components/renderers/base/BaseRenderers.d.ts +7 -0
  135. package/dist/components/renderers/base/LoadingRenderer.d.ts +14 -0
  136. package/dist/components/renderers/card/CardRenderer.d.ts +24 -0
  137. package/dist/components/renderers/card/index.d.ts +1 -0
  138. package/dist/components/renderers/card.js +5 -0
  139. package/dist/components/renderers/card.js.map +1 -0
  140. package/dist/components/renderers/cells/swCells.d.ts +49 -0
  141. package/dist/components/renderers/chart/ChartRenderer.d.ts +167 -0
  142. package/dist/components/renderers/chart/index.d.ts +1 -0
  143. package/dist/components/renderers/chart.js +5 -0
  144. package/dist/components/renderers/chart.js.map +1 -0
  145. package/dist/components/renderers/collapse-panel/CollapsePanelRenderer.d.ts +28 -0
  146. package/dist/components/renderers/collapse-panel/index.d.ts +1 -0
  147. package/dist/components/renderers/collapse-panel.js +5 -0
  148. package/dist/components/renderers/collapse-panel.js.map +1 -0
  149. package/dist/components/renderers/container/ContainerRenderers.d.ts +44 -0
  150. package/dist/components/renderers/container/index.d.ts +1 -0
  151. package/dist/components/renderers/container.js +5 -0
  152. package/dist/components/renderers/container.js.map +1 -0
  153. package/dist/components/renderers/custom-content/CustomContentRenderer.d.ts +20 -0
  154. package/dist/components/renderers/custom-content/index.d.ts +1 -0
  155. package/dist/components/renderers/custom-content.js +6 -0
  156. package/dist/components/renderers/custom-content.js.map +1 -0
  157. package/dist/components/renderers/data/useBoundRows.d.ts +9 -0
  158. package/dist/components/renderers/data-grid-card/DataGridCard.d.ts +46 -0
  159. package/dist/components/renderers/data-grid-card/index.d.ts +1 -0
  160. package/dist/components/renderers/data-grid-card.js +5 -0
  161. package/dist/components/renderers/data-grid-card.js.map +1 -0
  162. package/dist/components/renderers/echarts/EChartsChartRenderer.d.ts +178 -0
  163. package/dist/components/renderers/echarts/index.d.ts +1 -0
  164. package/dist/components/renderers/echarts/shared/colors.d.ts +56 -0
  165. package/dist/components/renderers/echarts/shared/index.d.ts +1 -0
  166. package/dist/components/renderers/echarts.js +5 -0
  167. package/dist/components/renderers/echarts.js.map +1 -0
  168. package/dist/components/renderers/editable-table/EditableTable.types.d.ts +27 -0
  169. package/dist/components/renderers/editable-table/EditableTableController.d.ts +44 -0
  170. package/dist/components/renderers/editable-table/EditableTableRenderer.d.ts +38 -0
  171. package/dist/components/renderers/editable-table/cell-editors/ColorEditor.d.ts +11 -0
  172. package/dist/components/renderers/editable-table/cell-editors/DateEditor.d.ts +11 -0
  173. package/dist/components/renderers/editable-table/cell-editors/FileEditor.d.ts +9 -0
  174. package/dist/components/renderers/editable-table/cell-editors/NumberEditor.d.ts +10 -0
  175. package/dist/components/renderers/editable-table/cell-editors/SelectEditor.d.ts +19 -0
  176. package/dist/components/renderers/editable-table/cell-editors/SwitchEditor.d.ts +13 -0
  177. package/dist/components/renderers/editable-table/cell-editors/TextEditor.d.ts +11 -0
  178. package/dist/components/renderers/editable-table/cell-editors/index.d.ts +7 -0
  179. package/dist/components/renderers/editable-table/editableTableApiErrors.d.ts +3 -0
  180. package/dist/components/renderers/editable-table/editableTableDictionary.d.ts +13 -0
  181. package/dist/components/renderers/editable-table/editableTableFormatters.d.ts +11 -0
  182. package/dist/components/renderers/editable-table/editableTableWriteDatasourceId.d.ts +8 -0
  183. package/dist/components/renderers/editable-table/index.d.ts +4 -0
  184. package/dist/components/renderers/editable-table.js +6 -0
  185. package/dist/components/renderers/editable-table.js.map +1 -0
  186. package/dist/components/renderers/filter-panel/FilterPanelRenderer.d.ts +275 -0
  187. package/dist/components/renderers/filter-panel/filterOptionCache.d.ts +33 -0
  188. package/dist/components/renderers/filter-panel/filterSelectionMemory.d.ts +11 -0
  189. package/dist/components/renderers/filter-panel/index.d.ts +1 -0
  190. package/dist/components/renderers/filter-panel.js +5 -0
  191. package/dist/components/renderers/filter-panel.js.map +1 -0
  192. package/dist/components/renderers/form/FileUploadDropzone.d.ts +24 -0
  193. package/dist/components/renderers/form/FormRenderer.d.ts +30 -0
  194. package/dist/components/renderers/form/formSizing.d.ts +14 -0
  195. package/dist/components/renderers/form/index.d.ts +2 -0
  196. package/dist/components/renderers/form.js +6 -0
  197. package/dist/components/renderers/form.js.map +1 -0
  198. package/dist/components/renderers/hero-card/HeroCardRenderer.d.ts +18 -0
  199. package/dist/components/renderers/hero-card/heroCardRows.d.ts +30 -0
  200. package/dist/components/renderers/hero-card/heroCardUtils.d.ts +164 -0
  201. package/dist/components/renderers/hero-card/index.d.ts +1 -0
  202. package/dist/components/renderers/hero-card.js +5 -0
  203. package/dist/components/renderers/hero-card.js.map +1 -0
  204. package/dist/components/renderers/identity/AppIdentityListRenderer.d.ts +60 -0
  205. package/dist/components/renderers/identity/IdentityAttributeAssignRenderer.d.ts +44 -0
  206. package/dist/components/renderers/identity/index.d.ts +2 -0
  207. package/dist/components/renderers/identity.js +6 -0
  208. package/dist/components/renderers/identity.js.map +1 -0
  209. package/dist/components/renderers/index.d.ts +1 -0
  210. package/dist/components/renderers/list/ListActionButton.d.ts +11 -0
  211. package/dist/components/renderers/list/ListDataTable.d.ts +13 -0
  212. package/dist/components/renderers/list/ListProgressBar.d.ts +12 -0
  213. package/dist/components/renderers/list/ListRenderers.d.ts +19 -0
  214. package/dist/components/renderers/list/ListTaskExecuteDialog.d.ts +17 -0
  215. package/dist/components/renderers/list/index.d.ts +1 -0
  216. package/dist/components/renderers/list/listActionUtils.d.ts +18 -0
  217. package/dist/components/renderers/list/listCellRender.d.ts +9 -0
  218. package/dist/components/renderers/list/listConfig.d.ts +67 -0
  219. package/dist/components/renderers/list/listCsvExport.d.ts +4 -0
  220. package/dist/components/renderers/list/listFormatUtils.d.ts +13 -0
  221. package/dist/components/renderers/list/listItemTemplates.d.ts +32 -0
  222. package/dist/components/renderers/list/listViewToggleUtils.d.ts +5 -0
  223. package/dist/components/renderers/list/useListActions.d.ts +38 -0
  224. package/dist/components/renderers/list/useListDataSource.d.ts +58 -0
  225. package/dist/components/renderers/list/useListSelectionEmit.d.ts +22 -0
  226. package/dist/components/renderers/list.js +5 -0
  227. package/dist/components/renderers/list.js.map +1 -0
  228. package/dist/components/renderers/map-chart/MapChartRenderer.d.ts +42 -0
  229. package/dist/components/renderers/map-chart/index.d.ts +1 -0
  230. package/dist/components/renderers/map-chart.js +5 -0
  231. package/dist/components/renderers/map-chart.js.map +1 -0
  232. package/dist/components/renderers/metric-carousel/MetricCarouselRenderer.d.ts +26 -0
  233. package/dist/components/renderers/metric-carousel/index.d.ts +1 -0
  234. package/dist/components/renderers/metric-carousel.js +5 -0
  235. package/dist/components/renderers/metric-carousel.js.map +1 -0
  236. package/dist/components/renderers/navigation/NavTileRenderer.d.ts +13 -0
  237. package/dist/components/renderers/navigation/index.d.ts +1 -0
  238. package/dist/components/renderers/navigation/navTileUtils.d.ts +46 -0
  239. package/dist/components/renderers/navigation.js +5 -0
  240. package/dist/components/renderers/navigation.js.map +1 -0
  241. package/dist/components/renderers/product-detail/ProductDetailRenderer.d.ts +23 -0
  242. package/dist/components/renderers/product-detail/index.d.ts +1 -0
  243. package/dist/components/renderers/product-detail/productCellRender.d.ts +25 -0
  244. package/dist/components/renderers/product-detail.js +5 -0
  245. package/dist/components/renderers/product-detail.js.map +1 -0
  246. package/dist/components/renderers/product-report/ProductReportRenderer.d.ts +21 -0
  247. package/dist/components/renderers/product-report/index.d.ts +1 -0
  248. package/dist/components/renderers/product-report.js +5 -0
  249. package/dist/components/renderers/product-report.js.map +1 -0
  250. package/dist/components/renderers/publish/PublishHistoryRenderer.d.ts +21 -0
  251. package/dist/components/renderers/publish/PublishPreviewEntryRenderer.d.ts +16 -0
  252. package/dist/components/renderers/publish/index.d.ts +2 -0
  253. package/dist/components/renderers/publish/publishHistoryHelpers.d.ts +41 -0
  254. package/dist/components/renderers/publish/publishPreviewEntryHelpers.d.ts +50 -0
  255. package/dist/components/renderers/publish.js +6 -0
  256. package/dist/components/renderers/publish.js.map +1 -0
  257. package/dist/components/renderers/radar-chart/RadarChartRenderer.d.ts +40 -0
  258. package/dist/components/renderers/radar-chart/index.d.ts +1 -0
  259. package/dist/components/renderers/radar-chart.js +5 -0
  260. package/dist/components/renderers/radar-chart.js.map +1 -0
  261. package/dist/components/renderers/registry.d.ts +38 -0
  262. package/dist/components/renderers/ring-stat/RingStatRenderer.d.ts +66 -0
  263. package/dist/components/renderers/ring-stat/index.d.ts +1 -0
  264. package/dist/components/renderers/ring-stat.js +5 -0
  265. package/dist/components/renderers/ring-stat.js.map +1 -0
  266. package/dist/components/renderers/runtime-DX1LfmqO.js +206944 -0
  267. package/dist/components/renderers/runtime-DX1LfmqO.js.map +1 -0
  268. package/dist/components/renderers/service-desk/ServiceDeskReporterRenderer.d.ts +48 -0
  269. package/dist/components/renderers/service-desk/index.d.ts +1 -0
  270. package/dist/components/renderers/service-desk.js +5 -0
  271. package/dist/components/renderers/service-desk.js.map +1 -0
  272. package/dist/components/renderers/shared/TableEmptyStateWithChromeInsets.d.ts +12 -0
  273. package/dist/components/renderers/shared/ViewToggleButton.d.ts +13 -0
  274. package/dist/components/renderers/shared/useEscapedStickyPanel.d.ts +6 -0
  275. package/dist/components/renderers/shared/useMobileChromeInsets.d.ts +18 -0
  276. package/dist/components/renderers/shared/useStickyHeaderClone.d.ts +31 -0
  277. package/dist/components/renderers/statistics/StatisticGroup.d.ts +77 -0
  278. package/dist/components/renderers/statistics/index.d.ts +1 -0
  279. package/dist/components/renderers/statistics.js +5 -0
  280. package/dist/components/renderers/statistics.js.map +1 -0
  281. package/dist/components/renderers/table/TableRenderer.d.ts +5 -0
  282. package/dist/components/renderers/table/index.d.ts +1 -0
  283. package/dist/components/renderers/table/tableFilterPanelGridClass.d.ts +15 -0
  284. package/dist/components/renderers/table.js +5 -0
  285. package/dist/components/renderers/table.js.map +1 -0
  286. package/dist/components/renderers/tabs/TabsRenderer.d.ts +63 -0
  287. package/dist/components/renderers/tabs/index.d.ts +1 -0
  288. package/dist/components/renderers/tabs/tabVariantStyles.d.ts +50 -0
  289. package/dist/components/renderers/tabs/tabsItemMapping.d.ts +26 -0
  290. package/dist/components/renderers/tabs.js +5 -0
  291. package/dist/components/renderers/tabs.js.map +1 -0
  292. package/dist/components/renderers/task-input/ExecutionHistoryModal.d.ts +9 -0
  293. package/dist/components/renderers/task-input/TaskExecutionOutputs.d.ts +15 -0
  294. package/dist/components/renderers/task-input/TaskInputField.d.ts +54 -0
  295. package/dist/components/renderers/task-input/TaskInputRenderer.d.ts +68 -0
  296. package/dist/components/renderers/task-input/index.d.ts +1 -0
  297. package/dist/components/renderers/task-input.js +5 -0
  298. package/dist/components/renderers/task-input.js.map +1 -0
  299. package/dist/components/renderers/tile-grid/TileGridRenderer.d.ts +41 -0
  300. package/dist/components/renderers/tile-grid/index.d.ts +1 -0
  301. package/dist/components/renderers/tile-grid.js +5 -0
  302. package/dist/components/renderers/tile-grid.js.map +1 -0
  303. package/dist/components/renderers/tree/SimpleTreeRenderer.d.ts +47 -0
  304. package/dist/components/renderers/tree/index.d.ts +1 -0
  305. package/dist/components/renderers/tree.js +5 -0
  306. package/dist/components/renderers/tree.js.map +1 -0
  307. package/dist/components/renderers/types.d.ts +682 -0
  308. package/dist/components/renderers/typography/TypographyRenderer.d.ts +17 -0
  309. package/dist/components/renderers/typography/index.d.ts +1 -0
  310. package/dist/components/renderers/typography.js +8 -0
  311. package/dist/components/renderers/typography.js.map +1 -0
  312. package/dist/components/renderers/workflow/SimpleSchemaForm.d.ts +12 -0
  313. package/dist/components/renderers/workflow/WorkflowComponent.d.ts +5 -0
  314. package/dist/components/renderers/workflow/index.d.ts +1 -0
  315. package/dist/components/renderers/workflow/renderers/ProposalRendererFactory.d.ts +15 -0
  316. package/dist/components/renderers/workflow/runtime-index.d.ts +9 -0
  317. package/dist/components/renderers/workflow/steps/ProposalStep.d.ts +21 -0
  318. package/dist/components/renderers/workflow/steps/ResultStep.d.ts +13 -0
  319. package/dist/components/renderers/workflow/steps/UploadStep.d.ts +15 -0
  320. package/dist/components/renderers/workflow/types.d.ts +185 -0
  321. package/dist/components/renderers/workflow.js +5 -0
  322. package/dist/components/renderers/workflow.js.map +1 -0
  323. package/dist/components/renderers.js +41 -0
  324. package/dist/components/renderers.js.map +1 -0
  325. package/dist/components/runtime/ComponentRenderer.d.ts +34 -0
  326. package/dist/components/runtime/GeniAppComponentProvider.d.ts +24 -0
  327. package/dist/components/runtime/GeniAppWorkbench.d.ts +20 -0
  328. package/dist/components/runtime/Loading.d.ts +9 -0
  329. package/dist/components/runtime/MultiPageRenderer.d.ts +15 -0
  330. package/dist/components/runtime/PageComingSoonOverlay.d.ts +11 -0
  331. package/dist/components/runtime/PageRenderer.d.ts +36 -0
  332. package/dist/components/runtime/TabManager.d.ts +39 -0
  333. package/dist/components/runtime/componentTypes.d.ts +70 -0
  334. package/dist/components/runtime/i18n.d.ts +5 -0
  335. package/dist/components/runtime/runtime-mode.d.ts +40 -0
  336. package/dist/components/shared/TitleManager.d.ts +8 -0
  337. package/dist/components/shared/platform-api/auth/platformRefreshResponse.d.ts +3 -0
  338. package/dist/components/shared/platform-api/auth/setupAuthInterceptors.d.ts +18 -0
  339. package/dist/components/shared/platform-api/auth/tokenStorage.d.ts +4 -0
  340. package/dist/components/shared/platform-api/index.d.ts +4 -0
  341. package/dist/components/shared/platform-types/index.d.ts +1 -0
  342. package/dist/components/shared/platform-types/types/json-schema.d.ts +50 -0
  343. package/dist/components/shared/platform-ui/components/ai/index.d.ts +2 -0
  344. package/dist/components/shared/platform-ui/components/ai/message.d.ts +6 -0
  345. package/dist/components/shared/platform-ui/components/ai/suggestion.d.ts +10 -0
  346. package/dist/components/shared/platform-ui/components/features/agent/AgentIdentity.d.ts +10 -0
  347. package/dist/components/shared/platform-ui/components/features/agent/agentIdentityUtils.d.ts +4 -0
  348. package/dist/components/shared/platform-ui/components/features/agent/index.d.ts +2 -0
  349. package/dist/components/shared/platform-ui/components/features/app/AppCheckboxInput.d.ts +9 -0
  350. package/dist/components/shared/platform-ui/components/features/app/AppConfirmDialog.d.ts +12 -0
  351. package/dist/components/shared/platform-ui/components/features/app/AppDashboardSkeleton.d.ts +9 -0
  352. package/dist/components/shared/platform-ui/components/features/app/AppDatePicker.d.ts +69 -0
  353. package/dist/components/shared/platform-ui/components/features/app/AppModal.d.ts +27 -0
  354. package/dist/components/shared/platform-ui/components/features/app/AppPageStates.d.ts +17 -0
  355. package/dist/components/shared/platform-ui/components/features/app/AppSelectInput.d.ts +10 -0
  356. package/dist/components/shared/platform-ui/components/features/app/AppTemporalInput.d.ts +19 -0
  357. package/dist/components/shared/platform-ui/components/features/app/Page.d.ts +14 -0
  358. package/dist/components/shared/platform-ui/components/features/app/QueryErrorAlert.d.ts +7 -0
  359. package/dist/components/shared/platform-ui/components/features/app/Sidebar.d.ts +47 -0
  360. package/dist/components/shared/platform-ui/components/features/app/index.d.ts +17 -0
  361. package/dist/components/shared/platform-ui/components/features/auth/AuthControlButtons.d.ts +8 -0
  362. package/dist/components/shared/platform-ui/components/features/auth/ForgotPassword.d.ts +9 -0
  363. package/dist/components/shared/platform-ui/components/features/auth/LogoutNotificationPage.d.ts +8 -0
  364. package/dist/components/shared/platform-ui/components/features/auth/Privacy.d.ts +8 -0
  365. package/dist/components/shared/platform-ui/components/features/auth/RequireAuth.d.ts +31 -0
  366. package/dist/components/shared/platform-ui/components/features/auth/Terms.d.ts +8 -0
  367. package/dist/components/shared/platform-ui/components/features/auth/VerifyEmail.d.ts +9 -0
  368. package/dist/components/shared/platform-ui/components/features/auth/application/index.d.ts +1 -0
  369. package/dist/components/shared/platform-ui/components/features/auth/index.d.ts +13 -0
  370. package/dist/components/shared/platform-ui/components/features/avatar/AvatarPickerModal.d.ts +30 -0
  371. package/dist/components/shared/platform-ui/components/features/avatar/generateAvatarUrl.d.ts +9 -0
  372. package/dist/components/shared/platform-ui/components/features/avatar/index.d.ts +2 -0
  373. package/dist/components/shared/platform-ui/components/features/chat/index.d.ts +1 -0
  374. package/dist/components/shared/platform-ui/components/features/data/index.d.ts +1 -0
  375. package/dist/components/shared/platform-ui/components/features/feedback/FeedbackMenu.d.ts +8 -0
  376. package/dist/components/shared/platform-ui/components/features/feedback/index.d.ts +1 -0
  377. package/dist/components/shared/platform-ui/components/features/home/Background.d.ts +4 -0
  378. package/dist/components/shared/platform-ui/components/features/home/index.d.ts +2 -0
  379. package/dist/components/shared/platform-ui/components/features/index.d.ts +22 -0
  380. package/dist/components/shared/platform-ui/components/features/knowledge/EvidenceCitation.d.ts +30 -0
  381. package/dist/components/shared/platform-ui/components/features/knowledge/HighlightedSnippet.d.ts +14 -0
  382. package/dist/components/shared/platform-ui/components/features/knowledge/index.d.ts +2 -0
  383. package/dist/components/shared/platform-ui/components/features/notification/NotificationBell.d.ts +14 -0
  384. package/dist/components/shared/platform-ui/components/features/notification/NotificationList.d.ts +41 -0
  385. package/dist/components/shared/platform-ui/components/features/notification/index.d.ts +2 -0
  386. package/dist/components/shared/platform-ui/components/features/operator/index.d.ts +1 -0
  387. package/dist/components/shared/platform-ui/components/features/rbac/index.d.ts +1 -0
  388. package/dist/components/shared/platform-ui/components/features/rich-text/RichTextField.d.ts +13 -0
  389. package/dist/components/shared/platform-ui/components/features/space/SpaceContext.d.ts +121 -0
  390. package/dist/components/shared/platform-ui/components/features/space/SpaceSwitcher.d.ts +13 -0
  391. package/dist/components/shared/platform-ui/components/features/space/index.d.ts +2 -0
  392. package/dist/components/shared/platform-ui/components/features/subscription/SubscriptionContext.d.ts +26 -0
  393. package/dist/components/shared/platform-ui/components/features/subscription/SubscriptionGuard.d.ts +35 -0
  394. package/dist/components/shared/platform-ui/components/features/subscription/constants.d.ts +126 -0
  395. package/dist/components/shared/platform-ui/components/features/subscription/createSubscriptionService.d.ts +34 -0
  396. package/dist/components/shared/platform-ui/components/features/subscription/index.d.ts +7 -0
  397. package/dist/components/shared/platform-ui/components/features/subscription/types.d.ts +161 -0
  398. package/dist/components/shared/platform-ui/components/features/subscription/useSubscription.d.ts +20 -0
  399. package/dist/components/shared/platform-ui/components/features/subscription/utils.d.ts +18 -0
  400. package/dist/components/shared/platform-ui/components/features/task/index.d.ts +1 -0
  401. package/dist/components/shared/platform-ui/components/features/team/index.d.ts +4 -0
  402. package/dist/components/shared/platform-ui/components/features/user/UserAvatar.d.ts +17 -0
  403. package/dist/components/shared/platform-ui/components/features/user/UserDisplay.d.ts +10 -0
  404. package/dist/components/shared/platform-ui/components/features/user/UserSelect.d.ts +14 -0
  405. package/dist/components/shared/platform-ui/components/features/user/useUserDirectory.d.ts +13 -0
  406. package/dist/components/shared/platform-ui/components/features/user/userDirectoryTypes.d.ts +18 -0
  407. package/dist/components/shared/platform-ui/components/icons/alipay-pay-mark.d.ts +2 -0
  408. package/dist/components/shared/platform-ui/components/icons/bank-transfer-mark.d.ts +2 -0
  409. package/dist/components/shared/platform-ui/components/icons/stripe-payment-mark.d.ts +2 -0
  410. package/dist/components/shared/platform-ui/components/icons/wechat-pay-mark.d.ts +2 -0
  411. package/dist/components/shared/platform-ui/components/index.d.ts +3 -0
  412. package/dist/components/shared/platform-ui/components/patterns/entity-patterns.d.ts +3 -0
  413. package/dist/components/shared/platform-ui/components/patterns/form-section.d.ts +11 -0
  414. package/dist/components/shared/platform-ui/components/patterns/record-list-frame.d.ts +12 -0
  415. package/dist/components/shared/platform-ui/components/patterns/status-stepper.d.ts +13 -0
  416. package/dist/components/shared/platform-ui/components/primitives/data-display/ApiErrorState.d.ts +10 -0
  417. package/dist/components/shared/platform-ui/components/primitives/data-display/FilePreviewDialog.d.ts +18 -0
  418. package/dist/components/shared/platform-ui/components/primitives/data-display/index.d.ts +4 -0
  419. package/dist/components/shared/platform-ui/components/primitives/feedback/index.d.ts +2 -0
  420. package/dist/components/shared/platform-ui/components/primitives/feedback/toaster.d.ts +1 -0
  421. package/dist/components/shared/platform-ui/components/primitives/feedback/use-toast.d.ts +46 -0
  422. package/dist/components/shared/platform-ui/components/primitives/forms/CountryCodeSelect.d.ts +16 -0
  423. package/dist/components/shared/platform-ui/components/primitives/forms/index.d.ts +1 -0
  424. package/dist/components/shared/platform-ui/components/primitives/index.d.ts +5 -0
  425. package/dist/components/shared/platform-ui/components/primitives/layout/AppHeader.d.ts +111 -0
  426. package/dist/components/shared/platform-ui/components/primitives/layout/AppWatermark.d.ts +7 -0
  427. package/dist/components/shared/platform-ui/components/primitives/layout/PublicFooter.d.ts +6 -0
  428. package/dist/components/shared/platform-ui/components/primitives/layout/PublicHeader.d.ts +39 -0
  429. package/dist/components/shared/platform-ui/components/primitives/layout/PublicLayout.d.ts +6 -0
  430. package/dist/components/shared/platform-ui/components/primitives/layout/ThemeToggle.d.ts +33 -0
  431. package/dist/components/shared/platform-ui/components/primitives/layout/WatermarkOverlay.d.ts +9 -0
  432. package/dist/components/shared/platform-ui/components/primitives/layout/brandAssets.d.ts +11 -0
  433. package/dist/components/shared/platform-ui/components/primitives/layout/index.d.ts +6 -0
  434. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/ChartAreaSkeleton.d.ts +13 -0
  435. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/ChartEmptyState.d.ts +14 -0
  436. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/ComponentSkeletonShell.d.ts +16 -0
  437. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/ConfigEditorSkeleton.d.ts +5 -0
  438. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/DetailTabsSkeleton.d.ts +6 -0
  439. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/EmptyStateBadge.d.ts +13 -0
  440. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/FormCardSkeleton.d.ts +7 -0
  441. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/FormFieldSkeleton.d.ts +6 -0
  442. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/FormPageSkeleton.d.ts +6 -0
  443. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/GridCardsSkeleton.d.ts +6 -0
  444. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/ListSkeleton.d.ts +26 -0
  445. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/PageHeaderSkeleton.d.ts +6 -0
  446. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/SplitPaneSkeleton.d.ts +4 -0
  447. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/StatsRowSkeleton.d.ts +5 -0
  448. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/TableEmptyState.d.ts +27 -0
  449. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/TablePageSkeleton.d.ts +8 -0
  450. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/TabsBarSkeleton.d.ts +6 -0
  451. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/index.d.ts +24 -0
  452. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/skeletonMetrics.d.ts +9 -0
  453. package/dist/components/shared/platform-ui/components/primitives/page-skeleton/useVisibleCenter.d.ts +34 -0
  454. package/dist/components/shared/platform-ui/components/ui/accordion.d.ts +7 -0
  455. package/dist/components/shared/platform-ui/components/ui/ai-draft-banner.d.ts +21 -0
  456. package/dist/components/shared/platform-ui/components/ui/alert-dialog.d.ts +48 -0
  457. package/dist/components/shared/platform-ui/components/ui/alert.d.ts +8 -0
  458. package/dist/components/shared/platform-ui/components/ui/avatar.d.ts +6 -0
  459. package/dist/components/shared/platform-ui/components/ui/badge.d.ts +9 -0
  460. package/dist/components/shared/platform-ui/components/ui/breadcrumb.d.ts +19 -0
  461. package/dist/components/shared/platform-ui/components/ui/button.d.ts +11 -0
  462. package/dist/components/shared/platform-ui/components/ui/calendar.d.ts +8 -0
  463. package/dist/components/shared/platform-ui/components/ui/card.d.ts +8 -0
  464. package/dist/components/shared/platform-ui/components/ui/chart.d.ts +16 -0
  465. package/dist/components/shared/platform-ui/components/ui/checkbox.d.ts +4 -0
  466. package/dist/components/shared/platform-ui/components/ui/collapsible.d.ts +5 -0
  467. package/dist/components/shared/platform-ui/components/ui/column-config.d.ts +42 -0
  468. package/dist/components/shared/platform-ui/components/ui/date-picker.d.ts +9 -0
  469. package/dist/components/shared/platform-ui/components/ui/date-range-filter.d.ts +32 -0
  470. package/dist/components/shared/platform-ui/components/ui/date-range-picker.d.ts +11 -0
  471. package/dist/components/shared/platform-ui/components/ui/dialog-input.d.ts +17 -0
  472. package/dist/components/shared/platform-ui/components/ui/dialog-safe-select.d.ts +13 -0
  473. package/dist/components/shared/platform-ui/components/ui/dialog.d.ts +25 -0
  474. package/dist/components/shared/platform-ui/components/ui/dropdown-menu.d.ts +27 -0
  475. package/dist/components/shared/platform-ui/components/ui/feature-guide.d.ts +43 -0
  476. package/dist/components/shared/platform-ui/components/ui/form.d.ts +23 -0
  477. package/dist/components/shared/platform-ui/components/ui/help-tip.d.ts +29 -0
  478. package/dist/components/shared/platform-ui/components/ui/hint-notice.d.ts +22 -0
  479. package/dist/components/shared/platform-ui/components/ui/index.d.ts +6 -0
  480. package/dist/components/shared/platform-ui/components/ui/input.d.ts +3 -0
  481. package/dist/components/shared/platform-ui/components/ui/label.d.ts +5 -0
  482. package/dist/components/shared/platform-ui/components/ui/modal-container.d.ts +56 -0
  483. package/dist/components/shared/platform-ui/components/ui/modal-templates.d.ts +46 -0
  484. package/dist/components/shared/platform-ui/components/ui/multi-select.d.ts +20 -0
  485. package/dist/components/shared/platform-ui/components/ui/pagination.d.ts +28 -0
  486. package/dist/components/shared/platform-ui/components/ui/popover.d.ts +7 -0
  487. package/dist/components/shared/platform-ui/components/ui/progress.d.ts +7 -0
  488. package/dist/components/shared/platform-ui/components/ui/radio-button-group.d.ts +18 -0
  489. package/dist/components/shared/platform-ui/components/ui/radio-group.d.ts +5 -0
  490. package/dist/components/shared/platform-ui/components/ui/scroll-area.d.ts +5 -0
  491. package/dist/components/shared/platform-ui/components/ui/select.d.ts +16 -0
  492. package/dist/components/shared/platform-ui/components/ui/separator.d.ts +7 -0
  493. package/dist/components/shared/platform-ui/components/ui/sheet.d.ts +25 -0
  494. package/dist/components/shared/platform-ui/components/ui/sidebar-rail.d.ts +9 -0
  495. package/dist/components/shared/platform-ui/components/ui/skeleton.d.ts +2 -0
  496. package/dist/components/shared/platform-ui/components/ui/slider.d.ts +13 -0
  497. package/dist/components/shared/platform-ui/components/ui/switch.d.ts +4 -0
  498. package/dist/components/shared/platform-ui/components/ui/table.d.ts +10 -0
  499. package/dist/components/shared/platform-ui/components/ui/tabs.d.ts +10 -0
  500. package/dist/components/shared/platform-ui/components/ui/textarea.d.ts +3 -0
  501. package/dist/components/shared/platform-ui/components/ui/toast.d.ts +21 -0
  502. package/dist/components/shared/platform-ui/components/ui/toggle-group.d.ts +12 -0
  503. package/dist/components/shared/platform-ui/components/ui/toggle.d.ts +12 -0
  504. package/dist/components/shared/platform-ui/components/ui/tooltip.d.ts +7 -0
  505. package/dist/components/shared/platform-ui/components/ui/typography.d.ts +15 -0
  506. package/dist/components/shared/platform-ui/components/ui/underline-tabs.d.ts +13 -0
  507. package/dist/components/shared/platform-ui/components/ui/view-mode-toggle.d.ts +9 -0
  508. package/dist/components/shared/platform-ui/context/AppHostContext.d.ts +16 -0
  509. package/dist/components/shared/platform-ui/contexts/UserSettingsContext.d.ts +23 -0
  510. package/dist/components/shared/platform-ui/hooks/builtInApps.d.ts +91 -0
  511. package/dist/components/shared/platform-ui/hooks/pinnedBuiltInNavApps.d.ts +13 -0
  512. package/dist/components/shared/platform-ui/hooks/shellNavLucideIcon.d.ts +6 -0
  513. package/dist/components/shared/platform-ui/hooks/useAppSettings.d.ts +21 -0
  514. package/dist/components/shared/platform-ui/hooks/useAuthTokenSync.d.ts +3 -0
  515. package/dist/components/shared/platform-ui/hooks/useBuiltInApps.d.ts +6 -0
  516. package/dist/components/shared/platform-ui/hooks/useChatEntryTarget.d.ts +35 -0
  517. package/dist/components/shared/platform-ui/hooks/useIsMobile.d.ts +16 -0
  518. package/dist/components/shared/platform-ui/hooks/useLanguage.d.ts +11 -0
  519. package/dist/components/shared/platform-ui/hooks/useLockBodyScroll.d.ts +1 -0
  520. package/dist/components/shared/platform-ui/hooks/usePageState/index.d.ts +4 -0
  521. package/dist/components/shared/platform-ui/hooks/usePageState/types.d.ts +13 -0
  522. package/dist/components/shared/platform-ui/hooks/useTheme.d.ts +11 -0
  523. package/dist/components/shared/platform-ui/hooks/useUserSettings.d.ts +39 -0
  524. package/dist/components/shared/platform-ui/hooks/useWorkflowCanvas.d.ts +36 -0
  525. package/dist/components/shared/platform-ui/hooks/userPreferencesPinnedNav.d.ts +2 -0
  526. package/dist/components/shared/platform-ui/index.d.ts +127 -0
  527. package/dist/components/shared/platform-ui/kit/ai/conversation.d.ts +16 -0
  528. package/dist/components/shared/platform-ui/kit/ai/index.d.ts +11 -0
  529. package/dist/components/shared/platform-ui/kit/ai/loader.d.ts +6 -0
  530. package/dist/components/shared/platform-ui/kit/ai/message.d.ts +14 -0
  531. package/dist/components/shared/platform-ui/kit/ai/prompt-input.d.ts +18 -0
  532. package/dist/components/shared/platform-ui/kit/ai/suggestion.d.ts +11 -0
  533. package/dist/components/shared/platform-ui/kit/ai/tool.d.ts +28 -0
  534. package/dist/components/shared/platform-ui/kit.d.ts +5 -0
  535. package/dist/components/shared/platform-ui/platform/index.d.ts +38 -0
  536. package/dist/components/shared/platform-ui/platform/types.d.ts +1 -0
  537. package/dist/components/shared/platform-ui/styles/design-tokens.d.ts +189 -0
  538. package/dist/components/shared/platform-ui/styles/z-index-layers.d.ts +46 -0
  539. package/dist/components/shared/platform-ui/utils/unknownError.d.ts +2 -0
  540. package/dist/components/shared/platform-utils/cookieSettings.d.ts +12 -0
  541. package/dist/components/shared/platform-utils/data/countryCodes.d.ts +26 -0
  542. package/dist/components/shared/platform-utils/index.d.ts +18 -0
  543. package/dist/components/shared/platform-utils/utils/appPath.d.ts +5 -0
  544. package/dist/components/shared/platform-utils/utils/chunkLoadRecovery.d.ts +7 -0
  545. package/dist/components/shared/platform-utils/utils/cn.d.ts +3 -0
  546. package/dist/components/shared/platform-utils/utils/crossApp.d.ts +71 -0
  547. package/dist/components/shared/platform-utils/utils/debounce.d.ts +1 -0
  548. package/dist/components/shared/platform-utils/utils/formatUserLabel.d.ts +8 -0
  549. package/dist/components/shared/platform-utils/utils/formatting.d.ts +18 -0
  550. package/dist/components/shared/platform-utils/utils/logoutNotification.d.ts +28 -0
  551. package/dist/components/shared/platform-utils/utils/operatorLocale.d.ts +32 -0
  552. package/dist/components/shared/platform-utils/utils/routeLocalePrefetch.d.ts +5 -0
  553. package/dist/components/shared/platform-utils/utils/shellIframeUrl.d.ts +20 -0
  554. package/dist/components/shared/platform-utils/utils/spaceSettings.d.ts +20 -0
  555. package/dist/components/shared/platform-utils/utils/sso.d.ts +42 -0
  556. package/dist/components/shared/platform-utils/utils/throttle.d.ts +1 -0
  557. package/dist/components/shared/platform-utils/utils/timezones.d.ts +14 -0
  558. package/dist/components/shared/platform-utils/utils/toDateInputValue.d.ts +5 -0
  559. package/dist/components/shared/platform-utils/utils/watermark.d.ts +1 -0
  560. package/dist/components/shared/templates/index.d.ts +3 -0
  561. package/dist/components/shared/templates/slugify.d.ts +1 -0
  562. package/dist/components/shared/templates/templateRegistry.d.ts +18 -0
  563. package/dist/components/shared/templates/types.d.ts +42 -0
  564. package/dist/components/skeleton/ComponentSkeleton.d.ts +9 -0
  565. package/dist/components/skeleton/HeroCardSkeleton.d.ts +11 -0
  566. package/dist/components/skeleton/TileGridSkeleton.d.ts +11 -0
  567. package/dist/components/skeleton/WorkbenchSkeletonTokens.d.ts +1 -0
  568. package/dist/components/skeleton/index.d.ts +4 -0
  569. package/dist/components/standalone.css +2 -0
  570. package/dist/components/standalone.d.ts +21 -0
  571. package/dist/components/standalone.js +358805 -0
  572. package/dist/components/styles/grid24.css +359 -0
  573. package/dist/components/styles/layoutSystem.css +773 -0
  574. package/dist/components/styles.css +3 -0
  575. package/dist/components/testing/index.d.ts +2 -0
  576. package/dist/components/testing.js +5 -0
  577. package/dist/components/testing.js.map +1 -0
  578. package/dist/components/themes/classic.d.ts +7 -0
  579. package/dist/components/themes/index.d.ts +15 -0
  580. package/dist/components/themes/inkOnyx.d.ts +3 -0
  581. package/dist/components/themes/types.d.ts +36 -0
  582. package/dist/components/types/application.d.ts +37 -0
  583. package/dist/components/types/communication.d.ts +94 -0
  584. package/dist/components/types/components.d.ts +346 -0
  585. package/dist/components/types/conditionMapperTypes.d.ts +60 -0
  586. package/dist/components/types/databaseDataSource.d.ts +120 -0
  587. package/dist/components/types/datasource.d.ts +117 -0
  588. package/dist/components/types/editor.d.ts +4 -0
  589. package/dist/components/types/editors.d.ts +91 -0
  590. package/dist/components/types/host-adapters.d.ts +35 -0
  591. package/dist/components/types/index.d.ts +7 -0
  592. package/dist/components/types/parameters.d.ts +59 -0
  593. package/dist/components/types/productReport.d.ts +272 -0
  594. package/dist/components/types/renderers.d.ts +645 -0
  595. package/dist/components/types.d.ts +649 -0
  596. package/dist/components/ui/ActionFormDialog.d.ts +19 -0
  597. package/dist/components/ui/ConfirmDialog.d.ts +17 -0
  598. package/dist/components/ui/FormFieldRenderer.d.ts +51 -0
  599. package/dist/components/ui/IconSelector.d.ts +10 -0
  600. package/dist/components/ui/RecordDetailDialog.d.ts +15 -0
  601. package/dist/components/ui/StructuredValueField.d.ts +16 -0
  602. package/dist/components/ui/date-picker.d.ts +7 -0
  603. package/dist/components/ui/date-range-picker.d.ts +11 -0
  604. package/dist/components/ui/dialog-safe-select.d.ts +13 -0
  605. package/dist/components/ui/dialog-tag-input.d.ts +18 -0
  606. package/dist/components/ui/dialog.d.ts +22 -0
  607. package/dist/components/ui/dropdown-menu.d.ts +27 -0
  608. package/dist/components/ui/pagination.d.ts +28 -0
  609. package/dist/components/ui/select.d.ts +13 -0
  610. package/dist/components/ui/sidebar-rail.d.ts +9 -0
  611. package/dist/components/ui/sidebar.d.ts +65 -0
  612. package/dist/components/ui/table.d.ts +10 -0
  613. package/dist/components/ui/tag-input.d.ts +23 -0
  614. package/dist/components/utils/actionFormValidation.d.ts +34 -0
  615. package/dist/components/utils/autoIdUtils.d.ts +2 -0
  616. package/dist/components/utils/chartGradientStops.d.ts +14 -0
  617. package/dist/components/utils/chinaProvinceMap.d.ts +8 -0
  618. package/dist/components/utils/colors.d.ts +84 -0
  619. package/dist/components/utils/componentUtils.d.ts +4 -0
  620. package/dist/components/utils/conditionMapperUtils.d.ts +59 -0
  621. package/dist/components/utils/cssParser.d.ts +7 -0
  622. package/dist/components/utils/currencySymbol.d.ts +10 -0
  623. package/dist/components/utils/dataConfigUtils.d.ts +80 -0
  624. package/dist/components/utils/databaseDatasourceColumnValue.d.ts +8 -0
  625. package/dist/components/utils/databaseDatasourceParams.d.ts +44 -0
  626. package/dist/components/utils/datasetOperationUtils.d.ts +48 -0
  627. package/dist/components/utils/datasourceVersion.d.ts +61 -0
  628. package/dist/components/utils/debugUtils.d.ts +34 -0
  629. package/dist/components/utils/errorFilter.d.ts +1 -0
  630. package/dist/components/utils/errorHandler.d.ts +10 -0
  631. package/dist/components/utils/expressionUtils.d.ts +13 -0
  632. package/dist/components/utils/extensionErrorHandler.d.ts +4 -0
  633. package/dist/components/utils/filterPanelDateRangeUtils.d.ts +34 -0
  634. package/dist/components/utils/filterPanelMobileDateRangeUtils.d.ts +17 -0
  635. package/dist/components/utils/formActionVisibility.d.ts +21 -0
  636. package/dist/components/utils/grid24LayoutSystem.d.ts +108 -0
  637. package/dist/components/utils/iconUtils.d.ts +22 -0
  638. package/dist/components/utils/layoutContainerNesting.d.ts +5 -0
  639. package/dist/components/utils/layoutSystem.d.ts +189 -0
  640. package/dist/components/utils/navigationUtils.d.ts +70 -0
  641. package/dist/components/utils/navigationVisibleWhenEditor.d.ts +37 -0
  642. package/dist/components/utils/parameterUtils.d.ts +52 -0
  643. package/dist/components/utils/redirectToAppHome.d.ts +4 -0
  644. package/dist/components/utils/resolveComponentMockFields.d.ts +28 -0
  645. package/dist/components/utils/resolveDatabaseDataSourceConfig.d.ts +9 -0
  646. package/dist/components/utils/safeMessaging.d.ts +16 -0
  647. package/dist/components/utils/statisticColors.d.ts +11 -0
  648. package/dist/components/utils/statisticIcons.d.ts +5 -0
  649. package/dist/components/utils/styleUtils.d.ts +35 -0
  650. package/dist/components/utils/systemParameters.d.ts +8 -0
  651. package/dist/components/utils/tabIsolation.d.ts +34 -0
  652. package/dist/components/utils/tableActionButtonRender.d.ts +12 -0
  653. package/dist/components/utils/taskUtils.d.ts +37 -0
  654. package/dist/components/utils/treeFormUtils.d.ts +41 -0
  655. package/dist/components/utils/visibleWhen.d.ts +31 -0
  656. package/dist/components/utils/visibleWhenFormat.d.ts +32 -0
  657. package/dist/components/utils/workbenchConfigLocale.d.ts +44 -0
  658. package/dist/components/utils/workbenchDisplayLocale.d.ts +33 -0
  659. package/dist/components/utils/workbenchPathUtils.d.ts +8 -0
  660. package/dist/components/utils/workflowTransformsUtils.d.ts +3 -0
  661. package/dist/components.js +841 -0
  662. package/dist/components.js.map +1 -0
  663. package/dist/dashboard/src/ChartTooltip.d.ts +1 -1
  664. package/dist/hooks/access/AppAccessNotice.d.ts +1 -1
  665. package/dist/hooks/picker/managedAppPicker.d.ts +1 -1
  666. package/dist/hooks.js +28 -27
  667. package/dist/hooks.js.map +1 -1
  668. package/dist/i18n-DojjvBZv.js +19013 -0
  669. package/dist/i18n-DojjvBZv.js.map +1 -0
  670. package/dist/index.js +61 -59
  671. package/dist/index.js.map +1 -1
  672. package/dist/kit.js +57 -56
  673. package/dist/kit.js.map +1 -1
  674. package/dist/resolveApiRoot-Dzg1R1PS.js +68 -0
  675. package/dist/resolveApiRoot-Dzg1R1PS.js.map +1 -0
  676. package/dist/shell.d.ts +1 -1
  677. package/dist/storage/components/CopyStorageLinkButton.d.ts +1 -1
  678. package/dist/storage/components/StorageImage.d.ts +1 -1
  679. package/dist/storage/components/StorageVideo.d.ts +1 -1
  680. package/dist/style.css +1 -1
  681. package/dist/task-workspace/domain.d.ts +1 -1
  682. package/dist/ui/components/features/app/AppModal.d.ts +2 -2
  683. package/dist/ui/components/primitives/page-skeleton/index.d.ts +1 -1
  684. package/dist/ui/components/ui/alert.d.ts +3 -3
  685. package/dist/ui/components/ui/badge.d.ts +3 -3
  686. package/dist/ui/components/ui/button.d.ts +4 -4
  687. package/dist/ui/components/ui/chart.d.ts +1 -1
  688. package/dist/ui/components/ui/form.d.ts +3 -5
  689. package/dist/ui/components/ui/hint-notice.d.ts +3 -3
  690. package/dist/ui/components/ui/label.d.ts +1 -1
  691. package/dist/ui/components/ui/select.d.ts +1 -1
  692. package/dist/ui/components/ui/sheet.d.ts +3 -3
  693. package/dist/ui/components/ui/tabs.d.ts +1 -1
  694. package/dist/ui/components/ui/toast.d.ts +3 -3
  695. package/dist/ui/components/ui/toggle-group.d.ts +8 -8
  696. package/dist/ui/components/ui/toggle.d.ts +8 -8
  697. package/dist/ui/components/ui/underline-tabs.d.ts +6 -6
  698. package/dist/ui.js +23 -22
  699. package/dist/ui.js.map +1 -1
  700. package/dist/useUserDirectory-GU8imJ0T.js +2124 -0
  701. package/dist/useUserDirectory-GU8imJ0T.js.map +1 -0
  702. package/dist/vite.d.ts +1 -1
  703. package/package.json +217 -31
  704. package/dist/CrossAppRecordPicker-CQVmirWD.js.map +0 -1
  705. package/dist/useUserDirectory-CqkyCQoR.js +0 -2377
  706. package/dist/useUserDirectory-CqkyCQoR.js.map +0 -1
  707. package/dist/workbench/runtime.d.ts +0 -3
  708. package/dist/workbench/styles.css +0 -197
  709. package/dist/workbench/types.d.ts +0 -48
  710. package/dist/workbench.d.ts +0 -8
  711. package/dist/workbench.js +0 -356
  712. package/dist/workbench.js.map +0 -1
@@ -0,0 +1,2124 @@
1
+ import { jsx as e, jsxs as l, Fragment as ye } from "react/jsx-runtime";
2
+ import { cn as c, formatUserLabel as ke } from "@genispace/geniapp/utils";
3
+ import * as h from "react";
4
+ import { useEffect as Se, Children as fe, isValidElement as De, useState as ie, useRef as sa, useCallback as we, useMemo as oa } from "react";
5
+ import * as k from "@radix-ui/react-dialog";
6
+ import { X as Q, ChevronRight as ia, ChevronLeft as da, CalendarDays as he, Clock3 as ca, Check as Ce, ChevronDown as Ae, ChevronUp as ma } from "lucide-react";
7
+ import { cva as _e } from "class-variance-authority";
8
+ import { createPortal as ua } from "react-dom";
9
+ import { format as fa } from "date-fns";
10
+ import { zhCN as X, enUS as J } from "date-fns/locale";
11
+ import { useTranslation as ha } from "react-i18next";
12
+ import { Slot as pa } from "@radix-ui/react-slot";
13
+ import { DayPicker as ba } from "react-day-picker";
14
+ import * as $ from "@radix-ui/react-popover";
15
+ import * as D from "@radix-ui/react-select";
16
+ import * as de from "@radix-ui/react-checkbox";
17
+ import * as F from "@radix-ui/react-avatar";
18
+ function s({
19
+ className: a,
20
+ ...t
21
+ }) {
22
+ return /* @__PURE__ */ e(
23
+ "div",
24
+ {
25
+ className: c(
26
+ "relative overflow-hidden rounded-md bg-primary/10",
27
+ "before:pointer-events-none before:absolute before:inset-0 before:-translate-x-full before:animate-shimmer before:content-['']",
28
+ "before:bg-gradient-to-r before:from-transparent before:via-white/50 before:to-transparent",
29
+ "dark:before:via-white/[0.14]",
30
+ a
31
+ ),
32
+ ...t
33
+ }
34
+ );
35
+ }
36
+ function Te({
37
+ count: a = 4,
38
+ variant: t = "segmented",
39
+ className: r
40
+ }) {
41
+ return t === "pill" ? /* @__PURE__ */ e("div", { className: c("flex flex-wrap gap-4 mb-6", r), children: Array.from({ length: a }).map((n, o) => /* @__PURE__ */ e(s, { className: "h-10 w-24 rounded-xl" }, o)) }) : /* @__PURE__ */ e(
42
+ "div",
43
+ {
44
+ className: c(
45
+ "mb-6 flex h-auto w-full flex-wrap items-stretch gap-1 rounded-xl border border-neutral-200/80 dark:border-neutral-800",
46
+ "bg-neutral-100/80 dark:bg-neutral-900/50 p-1",
47
+ r
48
+ ),
49
+ children: Array.from({ length: a }).map((n, o) => /* @__PURE__ */ e(
50
+ s,
51
+ {
52
+ className: "h-9 min-w-[5.5rem] flex-1 rounded-lg sm:flex-initial sm:min-w-[7rem]"
53
+ },
54
+ o
55
+ ))
56
+ }
57
+ );
58
+ }
59
+ function M({
60
+ labelWidth: a = "w-24",
61
+ inputHeight: t = "h-10",
62
+ className: r
63
+ }) {
64
+ return /* @__PURE__ */ l("div", { className: c("space-y-2", r), children: [
65
+ /* @__PURE__ */ e(s, { className: c("h-4", a) }),
66
+ /* @__PURE__ */ e(s, { className: c("w-full rounded-md", t) })
67
+ ] });
68
+ }
69
+ function G({
70
+ titleWidth: a = "w-36",
71
+ fieldCount: t = 2,
72
+ showTextarea: r = !1,
73
+ className: n
74
+ }) {
75
+ return /* @__PURE__ */ l("div", { className: c("card p-6 space-y-6", n), children: [
76
+ /* @__PURE__ */ e(s, { className: c("h-6", a) }),
77
+ Array.from({ length: t }).map((o, i) => /* @__PURE__ */ e(
78
+ M,
79
+ {
80
+ labelWidth: i === 0 ? "w-24" : "w-28",
81
+ inputHeight: r && i === t - 1 ? "h-[120px]" : "h-10"
82
+ },
83
+ i
84
+ ))
85
+ ] });
86
+ }
87
+ function ga({ tabCount: a = 4, className: t }) {
88
+ return /* @__PURE__ */ l("div", { className: c("space-y-6", t), children: [
89
+ /* @__PURE__ */ e(Te, { count: a, variant: "segmented" }),
90
+ /* @__PURE__ */ l("div", { className: "grid lg:grid-cols-3 gap-8", children: [
91
+ /* @__PURE__ */ l("div", { className: "lg:col-span-2 space-y-8", children: [
92
+ /* @__PURE__ */ e(G, { titleWidth: "w-36", fieldCount: 2, showTextarea: !0 }),
93
+ /* @__PURE__ */ l("div", { className: "card p-6 space-y-4", children: [
94
+ /* @__PURE__ */ e(s, { className: "h-6 w-40" }),
95
+ /* @__PURE__ */ e(s, { className: "h-10 w-full rounded-md" }),
96
+ /* @__PURE__ */ e(M, { labelWidth: "w-16" })
97
+ ] }),
98
+ /* @__PURE__ */ l("div", { className: "card p-6 space-y-4", children: [
99
+ /* @__PURE__ */ e(s, { className: "h-6 w-24" }),
100
+ /* @__PURE__ */ e(s, { className: "h-4 w-full max-w-xl" }),
101
+ /* @__PURE__ */ e(s, { className: "h-4 w-3/4 max-w-lg" }),
102
+ /* @__PURE__ */ l("div", { className: "space-y-3 pt-2", children: [
103
+ /* @__PURE__ */ e(s, { className: "h-10 w-full rounded-md" }),
104
+ /* @__PURE__ */ e(s, { className: "h-10 w-full rounded-md" })
105
+ ] })
106
+ ] }),
107
+ /* @__PURE__ */ l("div", { className: "card p-6 space-y-4", children: [
108
+ /* @__PURE__ */ e(s, { className: "h-6 w-32" }),
109
+ /* @__PURE__ */ e(s, { className: "h-4 w-full max-w-md" }),
110
+ /* @__PURE__ */ e(s, { className: "h-12 w-full rounded-md" })
111
+ ] }),
112
+ /* @__PURE__ */ l("div", { className: "card p-6 space-y-6", children: [
113
+ /* @__PURE__ */ e(s, { className: "h-6 w-44" }),
114
+ /* @__PURE__ */ l("div", { className: "space-y-2", children: [
115
+ /* @__PURE__ */ e(s, { className: "h-4 w-28" }),
116
+ /* @__PURE__ */ e(s, { className: "h-[300px] w-full rounded-md" })
117
+ ] }),
118
+ /* @__PURE__ */ e(M, { labelWidth: "w-32" }),
119
+ /* @__PURE__ */ l("div", { className: "grid md:grid-cols-2 gap-6", children: [
120
+ /* @__PURE__ */ e(M, { labelWidth: "w-24" }),
121
+ /* @__PURE__ */ e(M, { labelWidth: "w-24" })
122
+ ] })
123
+ ] })
124
+ ] }),
125
+ /* @__PURE__ */ l("aside", { className: "lg:col-span-1 space-y-4", children: [
126
+ /* @__PURE__ */ l("div", { className: "card p-5 space-y-3", children: [
127
+ /* @__PURE__ */ e(s, { className: "h-5 w-40" }),
128
+ /* @__PURE__ */ e(s, { className: "h-4 w-full" }),
129
+ /* @__PURE__ */ e(s, { className: "h-4 w-full" }),
130
+ /* @__PURE__ */ e(s, { className: "h-4 w-5/6" })
131
+ ] }),
132
+ /* @__PURE__ */ l("div", { className: "card p-5 space-y-3", children: [
133
+ /* @__PURE__ */ e(s, { className: "h-5 w-36" }),
134
+ /* @__PURE__ */ e(s, { className: "h-4 w-full" }),
135
+ /* @__PURE__ */ e(s, { className: "h-4 w-4/5" })
136
+ ] })
137
+ ] })
138
+ ] })
139
+ ] });
140
+ }
141
+ function pe({
142
+ showBack: a = !0,
143
+ showActions: t = !0,
144
+ className: r
145
+ }) {
146
+ return /* @__PURE__ */ l("div", { className: c("flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-6 sm:mb-8", r), children: [
147
+ /* @__PURE__ */ l("div", { className: "flex items-center gap-3 sm:gap-4 min-w-0", children: [
148
+ a ? /* @__PURE__ */ e(s, { className: "h-10 w-10 shrink-0 rounded-md" }) : null,
149
+ /* @__PURE__ */ l("div", { className: "min-w-0 flex-1 space-y-2", children: [
150
+ /* @__PURE__ */ e(s, { className: "h-8 w-48 max-w-full" }),
151
+ /* @__PURE__ */ e(s, { className: "h-4 w-64 max-w-full" })
152
+ ] })
153
+ ] }),
154
+ t ? /* @__PURE__ */ l("div", { className: "flex flex-wrap items-center gap-3 shrink-0", children: [
155
+ /* @__PURE__ */ e(s, { className: "h-10 w-32 rounded-md" }),
156
+ /* @__PURE__ */ e(s, { className: "h-10 w-36 rounded-md" })
157
+ ] }) : null
158
+ ] });
159
+ }
160
+ function wa({
161
+ tabCount: a = 5,
162
+ showHeader: t = !0,
163
+ className: r
164
+ }) {
165
+ return /* @__PURE__ */ l("div", { className: c("space-y-6", r), children: [
166
+ t ? /* @__PURE__ */ l("div", { className: "flex flex-col md:flex-row md:items-start gap-6", children: [
167
+ /* @__PURE__ */ e(s, { className: "h-16 w-16 rounded-xl shrink-0" }),
168
+ /* @__PURE__ */ l("div", { className: "flex-1 min-w-0 space-y-3", children: [
169
+ /* @__PURE__ */ e(s, { className: "h-8 w-56 max-w-full" }),
170
+ /* @__PURE__ */ e(s, { className: "h-4 w-full max-w-2xl" }),
171
+ /* @__PURE__ */ l("div", { className: "flex flex-wrap gap-2 pt-1", children: [
172
+ /* @__PURE__ */ e(s, { className: "h-6 w-20 rounded-full" }),
173
+ /* @__PURE__ */ e(s, { className: "h-6 w-24 rounded-full" }),
174
+ /* @__PURE__ */ e(s, { className: "h-6 w-16 rounded-full" })
175
+ ] })
176
+ ] }),
177
+ /* @__PURE__ */ l("div", { className: "flex gap-2 shrink-0", children: [
178
+ /* @__PURE__ */ e(s, { className: "h-10 w-28 rounded-md" }),
179
+ /* @__PURE__ */ e(s, { className: "h-10 w-10 rounded-md" })
180
+ ] })
181
+ ] }) : /* @__PURE__ */ e(pe, { showBack: !1 }),
182
+ /* @__PURE__ */ e(Te, { count: a, variant: "pill" }),
183
+ /* @__PURE__ */ l("div", { className: "card p-6 space-y-6", children: [
184
+ /* @__PURE__ */ e(s, { className: "h-6 w-40" }),
185
+ /* @__PURE__ */ e("div", { className: "grid md:grid-cols-2 gap-6", children: Array.from({ length: 4 }).map((n, o) => /* @__PURE__ */ l("div", { className: "space-y-2", children: [
186
+ /* @__PURE__ */ e(s, { className: "h-4 w-24" }),
187
+ /* @__PURE__ */ e(s, { className: "h-10 w-full rounded-md" })
188
+ ] }, o)) }),
189
+ /* @__PURE__ */ e(s, { className: "h-[200px] w-full rounded-md" })
190
+ ] })
191
+ ] });
192
+ }
193
+ function xe({
194
+ rowCount: a = 8,
195
+ columnCount: t = 6,
196
+ showSearch: r = !0,
197
+ showFilters: n = !1,
198
+ className: o
199
+ }) {
200
+ return /* @__PURE__ */ l("div", { className: c("space-y-4", o), children: [
201
+ r ? /* @__PURE__ */ l("div", { className: "flex flex-col sm:flex-row gap-3", children: [
202
+ /* @__PURE__ */ e(s, { className: "h-10 flex-1 rounded-md" }),
203
+ n ? /* @__PURE__ */ e(s, { className: "h-10 w-32 rounded-md" }) : null
204
+ ] }) : null,
205
+ /* @__PURE__ */ e("div", { className: "card overflow-hidden", children: /* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ l("table", { className: "w-full min-w-[640px]", children: [
206
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { className: "border-b", children: Array.from({ length: t }).map((i, d) => /* @__PURE__ */ e("th", { className: "py-3 px-4 text-left", children: /* @__PURE__ */ e(s, { className: "h-4 w-16" }) }, d)) }) }),
207
+ /* @__PURE__ */ e("tbody", { children: Array.from({ length: a }).map((i, d) => /* @__PURE__ */ e("tr", { className: "border-b", children: Array.from({ length: t }).map((m, u) => /* @__PURE__ */ e("td", { className: "py-3 px-4", children: u === 0 ? /* @__PURE__ */ l("div", { className: "space-y-2", children: [
208
+ /* @__PURE__ */ e(s, { className: "h-4 w-32" }),
209
+ /* @__PURE__ */ e(s, { className: "h-3 w-48" })
210
+ ] }) : /* @__PURE__ */ e(s, { className: "h-4 w-20" }) }, u)) }, d)) })
211
+ ] }) }) })
212
+ ] });
213
+ }
214
+ const xa = {
215
+ 2: "md:grid-cols-2",
216
+ 3: "md:grid-cols-2 lg:grid-cols-3",
217
+ 4: "md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"
218
+ };
219
+ function va({
220
+ count: a = 8,
221
+ columns: t = "4",
222
+ className: r
223
+ }) {
224
+ return /* @__PURE__ */ e("div", { className: c("grid gap-4", xa[t], r), children: Array.from({ length: a }).map((n, o) => /* @__PURE__ */ l(
225
+ "div",
226
+ {
227
+ className: "card p-4 border border-neutral-200 dark:border-neutral-700 bg-white dark:bg-neutral-800 flex flex-col h-full",
228
+ children: [
229
+ /* @__PURE__ */ l("div", { className: "flex items-start justify-between mb-3", children: [
230
+ /* @__PURE__ */ l("div", { className: "flex items-start gap-3 flex-1 min-w-0", children: [
231
+ /* @__PURE__ */ e(s, { className: "w-10 h-10 rounded-lg shrink-0" }),
232
+ /* @__PURE__ */ l("div", { className: "flex-1 space-y-2 min-w-0", children: [
233
+ /* @__PURE__ */ e(s, { className: "h-4 w-32" }),
234
+ /* @__PURE__ */ e(s, { className: "h-3 w-full" }),
235
+ /* @__PURE__ */ e(s, { className: "h-3 w-3/4" })
236
+ ] })
237
+ ] }),
238
+ /* @__PURE__ */ e(s, { className: "w-4 h-4 shrink-0" })
239
+ ] }),
240
+ /* @__PURE__ */ l("div", { className: "space-y-3 flex-grow", children: [
241
+ /* @__PURE__ */ l("div", { className: "grid grid-cols-2 gap-2", children: [
242
+ /* @__PURE__ */ e(s, { className: "h-12 rounded-md" }),
243
+ /* @__PURE__ */ e(s, { className: "h-12 rounded-md" })
244
+ ] }),
245
+ /* @__PURE__ */ l("div", { className: "flex gap-2", children: [
246
+ /* @__PURE__ */ e(s, { className: "h-6 w-16 rounded-md" }),
247
+ /* @__PURE__ */ e(s, { className: "h-6 w-20 rounded-md" })
248
+ ] })
249
+ ] }),
250
+ /* @__PURE__ */ l("div", { className: "flex items-center justify-between pt-3 mt-3 border-t border-neutral-200/80 dark:border-neutral-800", children: [
251
+ /* @__PURE__ */ e(s, { className: "h-3 w-24" }),
252
+ /* @__PURE__ */ l("div", { className: "flex gap-2", children: [
253
+ /* @__PURE__ */ e(s, { className: "h-8 w-8 rounded-md" }),
254
+ /* @__PURE__ */ e(s, { className: "h-8 w-8 rounded-md" })
255
+ ] })
256
+ ] })
257
+ ]
258
+ },
259
+ o
260
+ )) });
261
+ }
262
+ function Na({ className: a }) {
263
+ return /* @__PURE__ */ l("div", { className: c("flex flex-col lg:grid lg:grid-cols-12 gap-4 sm:gap-6 min-h-0", a), children: [
264
+ /* @__PURE__ */ e("div", { className: "lg:col-span-3 flex flex-col min-h-0", children: /* @__PURE__ */ l("div", { className: "card border border-neutral-200 dark:border-neutral-800 overflow-hidden flex flex-col h-full min-h-[320px]", children: [
265
+ /* @__PURE__ */ e("div", { className: "p-4 border-b border-neutral-200 dark:border-neutral-800", children: /* @__PURE__ */ e(s, { className: "h-6 w-24" }) }),
266
+ /* @__PURE__ */ l("div", { className: "p-4 sm:p-6 space-y-4 flex-1", children: [
267
+ /* @__PURE__ */ e(M, { labelWidth: "w-20" }),
268
+ /* @__PURE__ */ e(M, { labelWidth: "w-16", inputHeight: "h-24" }),
269
+ /* @__PURE__ */ e(M, { labelWidth: "w-12" }),
270
+ /* @__PURE__ */ l("div", { className: "pt-4 border-t border-neutral-200 dark:border-neutral-800 space-y-3", children: [
271
+ /* @__PURE__ */ e(s, { className: "h-5 w-20" }),
272
+ /* @__PURE__ */ e(s, { className: "h-10 w-full rounded-md" }),
273
+ /* @__PURE__ */ e(s, { className: "h-10 w-full rounded-md" })
274
+ ] })
275
+ ] })
276
+ ] }) }),
277
+ /* @__PURE__ */ e("div", { className: "lg:col-span-9 flex flex-col min-h-0", children: /* @__PURE__ */ l("div", { className: "card border border-neutral-200 dark:border-neutral-800 flex flex-col flex-1 min-h-[320px]", children: [
278
+ /* @__PURE__ */ l("div", { className: "p-4 border-b border-neutral-200 dark:border-neutral-800 flex items-center justify-between gap-3", children: [
279
+ /* @__PURE__ */ e(s, { className: "h-6 w-32" }),
280
+ /* @__PURE__ */ e(s, { className: "h-9 w-28 rounded-md" })
281
+ ] }),
282
+ /* @__PURE__ */ e("div", { className: "p-4 sm:p-6 flex-1 space-y-4", children: Array.from({ length: 5 }).map((t, r) => /* @__PURE__ */ l("div", { className: "flex items-center gap-3 p-3 rounded-lg border border-neutral-200/80 dark:border-neutral-800", children: [
283
+ /* @__PURE__ */ e(s, { className: "h-5 w-5 rounded shrink-0" }),
284
+ /* @__PURE__ */ l("div", { className: "flex-1 space-y-2", children: [
285
+ /* @__PURE__ */ e(s, { className: "h-4 w-40" }),
286
+ /* @__PURE__ */ e(s, { className: "h-3 w-full max-w-md" })
287
+ ] })
288
+ ] }, r)) })
289
+ ] }) })
290
+ ] });
291
+ }
292
+ function ya({ count: a = 4, className: t }) {
293
+ return /* @__PURE__ */ e("div", { className: c("grid grid-cols-2 lg:grid-cols-4 gap-4", t), children: Array.from({ length: a }).map((r, n) => /* @__PURE__ */ l(
294
+ "div",
295
+ {
296
+ className: "card p-4 border border-neutral-200 dark:border-neutral-700 space-y-3",
297
+ children: [
298
+ /* @__PURE__ */ e(s, { className: "h-4 w-20" }),
299
+ /* @__PURE__ */ e(s, { className: "h-8 w-16" }),
300
+ /* @__PURE__ */ e(s, { className: "h-3 w-24" })
301
+ ]
302
+ },
303
+ n
304
+ )) });
305
+ }
306
+ function ka({
307
+ fieldCount: a = 4,
308
+ showSecondCard: t = !1,
309
+ className: r
310
+ }) {
311
+ return /* @__PURE__ */ l("div", { className: c("space-y-6", r), children: [
312
+ /* @__PURE__ */ e(pe, { showBack: !0, showActions: !1 }),
313
+ /* @__PURE__ */ e(G, { fieldCount: a }),
314
+ t ? /* @__PURE__ */ e(G, { fieldCount: Math.max(2, a - 2) }) : null
315
+ ] });
316
+ }
317
+ const T = {
318
+ STICKY_HEADER: "z-10",
319
+ SIDEBAR: "z-20",
320
+ TOOLTIP: "z-[150]",
321
+ POPOVER: "z-[250]",
322
+ MODAL_BACKDROP: "z-[500]",
323
+ MODAL: "z-[10000]",
324
+ NESTED_MODAL: "z-[10002]",
325
+ DATE_PICKER_POPOVER: "z-[10003]",
326
+ OVERLAY_POPOVER: "z-[10003]",
327
+ TOAST: "z-[100000]"
328
+ };
329
+ function Sa({ preset: a, className: t }) {
330
+ switch (a) {
331
+ case "config-editor":
332
+ return /* @__PURE__ */ e(ga, { className: t });
333
+ case "detail-tabs":
334
+ return /* @__PURE__ */ e(wa, { className: t });
335
+ case "table-page":
336
+ return /* @__PURE__ */ e(xe, { className: t });
337
+ case "grid-cards":
338
+ return /* @__PURE__ */ e(va, { className: t });
339
+ case "split-pane":
340
+ return /* @__PURE__ */ e(Na, { className: t });
341
+ case "profile":
342
+ return /* @__PURE__ */ l("div", { className: t, children: [
343
+ /* @__PURE__ */ e(pe, { showBack: !1, showActions: !1 }),
344
+ /* @__PURE__ */ l("div", { className: "space-y-8", children: [
345
+ /* @__PURE__ */ e("div", { className: "card p-6", children: /* @__PURE__ */ l("div", { className: "flex flex-col md:flex-row items-start gap-6", children: [
346
+ /* @__PURE__ */ e(s, { className: "size-20 rounded-full shrink-0" }),
347
+ /* @__PURE__ */ l("div", { className: "flex-1 w-full space-y-4", children: [
348
+ /* @__PURE__ */ e(M, { labelWidth: "w-20" }),
349
+ /* @__PURE__ */ e(M, { labelWidth: "w-24" }),
350
+ /* @__PURE__ */ e(M, { labelWidth: "w-28" })
351
+ ] })
352
+ ] }) }),
353
+ /* @__PURE__ */ e(G, { fieldCount: 4 })
354
+ ] })
355
+ ] });
356
+ case "dashboard":
357
+ return /* @__PURE__ */ l("div", { className: c("space-y-6", t), children: [
358
+ /* @__PURE__ */ e(ya, {}),
359
+ /* @__PURE__ */ l("div", { className: "grid lg:grid-cols-2 gap-6", children: [
360
+ /* @__PURE__ */ e(s, { className: "h-64 w-full rounded-xl" }),
361
+ /* @__PURE__ */ e(s, { className: "h-64 w-full rounded-xl" })
362
+ ] }),
363
+ /* @__PURE__ */ e(xe, { rowCount: 5, showSearch: !1 })
364
+ ] });
365
+ case "form-page":
366
+ return /* @__PURE__ */ e(ka, { className: t });
367
+ default:
368
+ return null;
369
+ }
370
+ }
371
+ function Da({
372
+ message: a,
373
+ onRetry: t,
374
+ retryLabel: r = "Retry",
375
+ className: n
376
+ }) {
377
+ return /* @__PURE__ */ l(
378
+ "div",
379
+ {
380
+ className: c(
381
+ "mb-6 flex flex-col gap-3 rounded-lg border border-destructive/40 bg-destructive/10 px-4 py-3 text-sm text-destructive dark:border-destructive/50 dark:bg-destructive/20 sm:flex-row sm:items-center sm:justify-between",
382
+ n
383
+ ),
384
+ role: "alert",
385
+ children: [
386
+ /* @__PURE__ */ e("span", { className: "min-w-0 break-words", children: a }),
387
+ t ? /* @__PURE__ */ e(
388
+ "button",
389
+ {
390
+ type: "button",
391
+ onClick: t,
392
+ className: "shrink-0 rounded-lg border border-destructive/50 bg-background px-3 py-1.5 text-xs font-medium text-destructive hover:bg-destructive/10 dark:hover:bg-destructive/30",
393
+ children: r
394
+ }
395
+ ) : null
396
+ ]
397
+ }
398
+ );
399
+ }
400
+ function yt({
401
+ loading: a,
402
+ error: t,
403
+ onRetry: r,
404
+ retryLabel: n,
405
+ preset: o = "table-page",
406
+ loadingFallback: i,
407
+ className: d,
408
+ children: m
409
+ }) {
410
+ return a ? /* @__PURE__ */ e("div", { className: d, role: "status", "aria-busy": "true", children: i ?? /* @__PURE__ */ e(Sa, { preset: o }) }) : t ? /* @__PURE__ */ e(
411
+ Da,
412
+ {
413
+ message: t,
414
+ onRetry: r,
415
+ retryLabel: n,
416
+ className: d
417
+ }
418
+ ) : /* @__PURE__ */ e(ye, { children: m });
419
+ }
420
+ function q({ meta: a = !1 }) {
421
+ return /* @__PURE__ */ l("div", { className: "flex min-h-14 items-center justify-between gap-3 border-b border-border px-4 py-3 sm:px-5", children: [
422
+ /* @__PURE__ */ e(s, { className: "h-4 w-28" }),
423
+ a ? /* @__PURE__ */ e(s, { className: "h-3 w-16" }) : null
424
+ ] });
425
+ }
426
+ function Ca({ index: a }) {
427
+ return /* @__PURE__ */ l("article", { className: "rounded-2xl border border-border bg-card p-4 shadow-sm sm:p-5", children: [
428
+ /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-4", children: [
429
+ /* @__PURE__ */ e(s, { className: "h-3 w-24" }),
430
+ /* @__PURE__ */ e(s, { className: "h-4 w-4 rounded" })
431
+ ] }),
432
+ /* @__PURE__ */ e(s, { className: "mt-3 h-9 w-20" }),
433
+ /* @__PURE__ */ e(s, { className: c("mt-2 h-3 max-w-full", ["w-40", "w-16", "w-36", "w-32"][a] ?? "w-28") })
434
+ ] });
435
+ }
436
+ function Aa() {
437
+ return /* @__PURE__ */ l("section", { className: "min-w-0 overflow-hidden rounded-2xl border border-border bg-card shadow-sm", children: [
438
+ /* @__PURE__ */ e(q, { meta: !0 }),
439
+ /* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ l("div", { className: "min-w-[780px]", children: [
440
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-[1.05fr_1.55fr_.75fr_.7fr_1fr] gap-4 border-b border-border bg-muted/40 px-5 py-3", children: [20, 28, 16, 16, 20].map((a, t) => /* @__PURE__ */ e(s, { className: "h-3", style: { width: `${a * 4}px` } }, t)) }),
441
+ Array.from({ length: 5 }).map((a, t) => /* @__PURE__ */ l("div", { className: "grid min-h-[55px] grid-cols-[1.05fr_1.55fr_.75fr_.7fr_1fr] items-center gap-4 border-b border-border px-5 py-3 last:border-b-0", children: [
442
+ /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
443
+ /* @__PURE__ */ e(s, { className: "h-2.5 w-2.5 rounded-full" }),
444
+ /* @__PURE__ */ e(s, { className: "h-4 w-28" })
445
+ ] }),
446
+ /* @__PURE__ */ l("div", { className: "space-y-2", children: [
447
+ /* @__PURE__ */ e(s, { className: c("h-3.5", t % 2 ? "w-44" : "w-52") }),
448
+ /* @__PURE__ */ e(s, { className: "h-3 w-32" })
449
+ ] }),
450
+ /* @__PURE__ */ e(s, { className: "h-4 w-20" }),
451
+ /* @__PURE__ */ e(s, { className: "h-7 w-16 rounded-full" }),
452
+ /* @__PURE__ */ e(s, { className: "h-3.5 w-28" })
453
+ ] }, t))
454
+ ] }) })
455
+ ] });
456
+ }
457
+ function _a() {
458
+ return /* @__PURE__ */ l("section", { className: "overflow-hidden rounded-2xl border border-border bg-card shadow-sm", children: [
459
+ /* @__PURE__ */ e(q, { meta: !0 }),
460
+ /* @__PURE__ */ e("div", { className: "space-y-5 p-5", children: [88, 72, 80].map((a, t) => /* @__PURE__ */ l("div", { children: [
461
+ /* @__PURE__ */ l("div", { className: "mb-2 flex items-center justify-between gap-4", children: [
462
+ /* @__PURE__ */ e(s, { className: "h-3.5", style: { width: `${a}%` } }),
463
+ /* @__PURE__ */ e(s, { className: "h-3.5 w-4" })
464
+ ] }),
465
+ /* @__PURE__ */ e(s, { className: "h-1.5 w-full rounded-full" })
466
+ ] }, t)) })
467
+ ] });
468
+ }
469
+ function Ta() {
470
+ return /* @__PURE__ */ l("section", { className: "overflow-hidden rounded-2xl border border-border bg-card shadow-sm", children: [
471
+ /* @__PURE__ */ e(q, { meta: !0 }),
472
+ /* @__PURE__ */ e("div", { className: "flex h-64 items-end justify-around gap-5 px-6 pb-5 pt-8", children: [58, 82, 68].map((a, t) => /* @__PURE__ */ l("div", { className: "flex h-full flex-1 items-end justify-center gap-2 border-b border-border", children: [
473
+ /* @__PURE__ */ e(s, { className: "w-[26%] max-w-12 rounded-b-none rounded-t-md", style: { height: `${a}%` } }),
474
+ /* @__PURE__ */ e(s, { className: "w-[20%] max-w-9 rounded-b-none rounded-t-md", style: { height: `${Math.max(24, a - 28)}%` } })
475
+ ] }, t)) })
476
+ ] });
477
+ }
478
+ function Ea() {
479
+ return /* @__PURE__ */ l("section", { className: "overflow-hidden rounded-2xl border border-border bg-card shadow-sm", children: [
480
+ /* @__PURE__ */ e(q, { meta: !0 }),
481
+ /* @__PURE__ */ l("div", { className: "space-y-5 p-5", children: [
482
+ Array.from({ length: 3 }).map((a, t) => /* @__PURE__ */ l("div", { children: [
483
+ /* @__PURE__ */ l("div", { className: "mb-2 flex justify-between", children: [
484
+ /* @__PURE__ */ e(s, { className: "h-3 w-24" }),
485
+ /* @__PURE__ */ e(s, { className: "h-3 w-10" })
486
+ ] }),
487
+ /* @__PURE__ */ e(s, { className: "h-1.5 w-full rounded-full" })
488
+ ] }, t)),
489
+ /* @__PURE__ */ l("div", { className: "rounded-xl border border-border bg-muted/30 p-4", children: [
490
+ /* @__PURE__ */ e(s, { className: "h-3 w-24" }),
491
+ /* @__PURE__ */ e(s, { className: "mt-3 h-8 w-12" }),
492
+ /* @__PURE__ */ e(s, { className: "mt-2 h-3 w-28" })
493
+ ] })
494
+ ] })
495
+ ] });
496
+ }
497
+ function kt({ className: a }) {
498
+ return /* @__PURE__ */ l(
499
+ "div",
500
+ {
501
+ className: c("relative w-full min-w-0 max-w-full px-4 py-4 sm:px-6 sm:py-6 lg:px-8", a),
502
+ "data-app-dashboard-skeleton": !0,
503
+ children: [
504
+ /* @__PURE__ */ l("div", { className: "mb-6 flex min-h-[52px] w-full min-w-0 flex-col items-stretch justify-between gap-3 sm:min-h-[60px] sm:flex-row sm:items-center sm:gap-4", children: [
505
+ /* @__PURE__ */ l("div", { className: "min-w-0 flex-1 space-y-2", children: [
506
+ /* @__PURE__ */ e(s, { className: "h-7 w-56 max-w-full sm:h-8" }),
507
+ /* @__PURE__ */ e(s, { className: "hidden h-4 w-[28rem] max-w-full sm:block" })
508
+ ] }),
509
+ /* @__PURE__ */ e(s, { className: "h-11 w-24 rounded-xl" })
510
+ ] }),
511
+ /* @__PURE__ */ l("div", { className: "w-full min-w-0 space-y-6", children: [
512
+ /* @__PURE__ */ e("div", { className: "grid gap-3 sm:grid-cols-2 xl:grid-cols-4", children: Array.from({ length: 4 }).map((t, r) => /* @__PURE__ */ e(Ca, { index: r }, r)) }),
513
+ /* @__PURE__ */ l("div", { className: "grid min-w-0 gap-4 xl:grid-cols-[1.45fr_.75fr]", children: [
514
+ /* @__PURE__ */ e(Aa, {}),
515
+ /* @__PURE__ */ e(_a, {})
516
+ ] }),
517
+ /* @__PURE__ */ l("div", { className: "grid min-w-0 gap-4 xl:grid-cols-[1.45fr_.75fr]", children: [
518
+ /* @__PURE__ */ e(Ta, {}),
519
+ /* @__PURE__ */ e(Ea, {})
520
+ ] })
521
+ ] })
522
+ ]
523
+ }
524
+ );
525
+ }
526
+ const Pa = k.Root, St = k.Trigger, Ra = k.Portal, Dt = k.Close, Ee = h.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
527
+ k.Overlay,
528
+ {
529
+ ref: r,
530
+ className: c(
531
+ `fixed inset-0 ${T.MODAL_BACKDROP} bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,
532
+ a
533
+ ),
534
+ ...t
535
+ }
536
+ ));
537
+ Ee.displayName = k.Overlay.displayName;
538
+ const Pe = h.forwardRef(({ className: a, children: t, nested: r, showCloseButton: n = !0, closeLabel: o = "Close dialog", ...i }, d) => {
539
+ const m = r ? T.NESTED_MODAL : T.MODAL;
540
+ return /* @__PURE__ */ l(Ra, { children: [
541
+ /* @__PURE__ */ e(Ee, { className: r ? m : void 0 }),
542
+ /* @__PURE__ */ l(
543
+ k.Content,
544
+ {
545
+ ref: d,
546
+ className: c(
547
+ `fixed left-[50%] top-[50%] ${m} grid w-[calc(100%-2rem)] max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-4 shadow-lg duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:p-6`,
548
+ a
549
+ ),
550
+ ...i,
551
+ children: [
552
+ t,
553
+ n ? /* @__PURE__ */ l(k.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
554
+ /* @__PURE__ */ e(Q, { className: "h-4 w-4" }),
555
+ /* @__PURE__ */ e("span", { className: "sr-only", children: o })
556
+ ] }) : null
557
+ ]
558
+ }
559
+ )
560
+ ] });
561
+ });
562
+ Pe.displayName = k.Content.displayName;
563
+ const Re = ({
564
+ className: a,
565
+ ...t
566
+ }) => /* @__PURE__ */ e(
567
+ "div",
568
+ {
569
+ className: c(
570
+ "flex flex-col space-y-1.5 text-center sm:text-left",
571
+ a
572
+ ),
573
+ ...t
574
+ }
575
+ );
576
+ Re.displayName = "DialogHeader";
577
+ const Oe = ({
578
+ className: a,
579
+ ...t
580
+ }) => /* @__PURE__ */ e(
581
+ "div",
582
+ {
583
+ className: c(
584
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
585
+ a
586
+ ),
587
+ ...t
588
+ }
589
+ );
590
+ Oe.displayName = "DialogFooter";
591
+ const Me = h.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
592
+ k.Title,
593
+ {
594
+ ref: r,
595
+ className: c(
596
+ "text-lg font-semibold leading-none tracking-tight",
597
+ a
598
+ ),
599
+ ...t
600
+ }
601
+ ));
602
+ Me.displayName = k.Title.displayName;
603
+ const ze = h.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
604
+ k.Description,
605
+ {
606
+ ref: r,
607
+ className: c("text-sm text-muted-foreground", a),
608
+ ...t
609
+ }
610
+ ));
611
+ ze.displayName = k.Description.displayName;
612
+ const Oa = k.Root, Ct = k.Trigger, At = k.Close, Ma = k.Portal, Le = h.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
613
+ k.Overlay,
614
+ {
615
+ className: c(
616
+ `fixed inset-0 ${T.MODAL_BACKDROP} bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,
617
+ a
618
+ ),
619
+ ...t,
620
+ ref: r
621
+ }
622
+ ));
623
+ Le.displayName = k.Overlay.displayName;
624
+ const za = _e(
625
+ `fixed ${T.MODAL} gap-4 overflow-visible bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out`,
626
+ {
627
+ variants: {
628
+ side: {
629
+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
630
+ bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
631
+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
632
+ right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
633
+ }
634
+ },
635
+ defaultVariants: {
636
+ side: "right"
637
+ }
638
+ }
639
+ ), Ie = h.forwardRef(({ side: a = "right", className: t, children: r, ...n }, o) => /* @__PURE__ */ l(Ma, { children: [
640
+ /* @__PURE__ */ e(Le, {}),
641
+ /* @__PURE__ */ l(
642
+ k.Content,
643
+ {
644
+ ref: o,
645
+ className: c(za({ side: a }), t),
646
+ onPointerDownOutside: (i) => i.preventDefault(),
647
+ onInteractOutside: (i) => {
648
+ const d = i.target;
649
+ d.closest("[data-app-date-picker-popover]") && i.preventDefault(), d.closest("[data-radix-dialog-content]") && i.preventDefault(), d.closest("[data-radix-select-content]") && i.preventDefault();
650
+ },
651
+ onFocusOutside: (i) => {
652
+ const d = i.target;
653
+ d.closest("[data-app-date-picker-popover]") && i.preventDefault(), d.closest("[data-radix-dialog-content]") && i.preventDefault(), d.closest("[data-radix-select-content]") && i.preventDefault();
654
+ },
655
+ onEscapeKeyDown: (i) => i.preventDefault(),
656
+ ...n,
657
+ children: [
658
+ /* @__PURE__ */ l(k.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
659
+ /* @__PURE__ */ e(Q, { className: "h-4 w-4" }),
660
+ /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
661
+ ] }),
662
+ r
663
+ ]
664
+ }
665
+ )
666
+ ] }));
667
+ Ie.displayName = k.Content.displayName;
668
+ const je = ({
669
+ className: a,
670
+ ...t
671
+ }) => /* @__PURE__ */ e(
672
+ "div",
673
+ {
674
+ className: c(
675
+ "flex flex-col space-y-2 text-center sm:text-left",
676
+ a
677
+ ),
678
+ ...t
679
+ }
680
+ );
681
+ je.displayName = "SheetHeader";
682
+ const La = ({
683
+ className: a,
684
+ ...t
685
+ }) => /* @__PURE__ */ e(
686
+ "div",
687
+ {
688
+ className: c(
689
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
690
+ a
691
+ ),
692
+ ...t
693
+ }
694
+ );
695
+ La.displayName = "SheetFooter";
696
+ const $e = h.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
697
+ k.Title,
698
+ {
699
+ ref: r,
700
+ className: c("text-lg font-semibold text-foreground", a),
701
+ ...t
702
+ }
703
+ ));
704
+ $e.displayName = k.Title.displayName;
705
+ const Ve = h.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
706
+ k.Description,
707
+ {
708
+ ref: r,
709
+ className: c("text-sm text-muted-foreground", a),
710
+ ...t
711
+ }
712
+ ));
713
+ Ve.displayName = k.Description.displayName;
714
+ const Ia = {
715
+ sm: "sm:max-w-md",
716
+ md: "sm:max-w-xl",
717
+ lg: "sm:max-w-2xl",
718
+ xl: "sm:max-w-4xl",
719
+ wide: "sm:max-w-6xl"
720
+ }, Fe = typeof process < "u" && process.env.NODE_ENV === "test";
721
+ function _t({
722
+ open: a,
723
+ onClose: t,
724
+ title: r,
725
+ description: n,
726
+ children: o,
727
+ footer: i,
728
+ size: d = "md",
729
+ contentClassName: m,
730
+ bodyClassName: u,
731
+ closeLabel: f,
732
+ closeOnOutside: S = !1
733
+ }) {
734
+ if (Fe)
735
+ return a ? /* @__PURE__ */ l("div", { role: "dialog", "aria-modal": "true", "aria-label": r, className: m, children: [
736
+ /* @__PURE__ */ l("header", { children: [
737
+ /* @__PURE__ */ e("h2", { children: r }),
738
+ n ? /* @__PURE__ */ e("p", { children: n }) : null
739
+ ] }),
740
+ /* @__PURE__ */ e("div", { className: u, children: o }),
741
+ i ? /* @__PURE__ */ e("footer", { children: i }) : null,
742
+ /* @__PURE__ */ e("button", { type: "button", "aria-label": f || "Close", onClick: t, children: f || "Close" })
743
+ ] }) : null;
744
+ const g = (typeof window > "u" ? "" : window.localStorage.getItem("i18nextLng") || document.documentElement.lang).toLowerCase().startsWith("zh");
745
+ return /* @__PURE__ */ e(Pa, { open: a, onOpenChange: (p) => {
746
+ p || t();
747
+ }, children: /* @__PURE__ */ l(
748
+ Pe,
749
+ {
750
+ closeLabel: f || (g ? "关闭对话框" : "Close dialog"),
751
+ className: c(
752
+ "max-h-[calc(100dvh-1rem)] gap-0 overflow-hidden p-0 sm:max-h-[calc(100dvh-3rem)]",
753
+ "max-sm:bottom-0 max-sm:left-0 max-sm:top-auto max-sm:w-full max-sm:max-w-none max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-b-none max-sm:rounded-t-2xl",
754
+ Ia[d],
755
+ m
756
+ ),
757
+ onPointerDownOutside: (p) => {
758
+ S || p.preventDefault();
759
+ },
760
+ children: [
761
+ /* @__PURE__ */ l(Re, { className: "shrink-0 border-b border-border px-5 py-4 pr-12 text-left sm:px-6", children: [
762
+ /* @__PURE__ */ e(Me, { className: "text-lg leading-6", children: r }),
763
+ n ? /* @__PURE__ */ e(ze, { children: n }) : null
764
+ ] }),
765
+ /* @__PURE__ */ e("div", { className: c("min-h-0 flex-1 overflow-y-auto overscroll-contain px-5 py-4 sm:px-6", u), children: o }),
766
+ i ? /* @__PURE__ */ e(Oe, { className: "shrink-0 border-t border-border bg-background px-5 py-4 sm:px-6", children: i }) : null
767
+ ]
768
+ }
769
+ ) });
770
+ }
771
+ function Tt({ open: a, onClose: t, title: r, description: n, children: o, side: i = "right", className: d }) {
772
+ return Fe ? a ? /* @__PURE__ */ l("div", { role: "dialog", "aria-modal": "true", "aria-label": r, className: d, children: [
773
+ /* @__PURE__ */ l("header", { children: [
774
+ /* @__PURE__ */ e("h2", { children: r }),
775
+ n ? /* @__PURE__ */ e("p", { children: n }) : null
776
+ ] }),
777
+ /* @__PURE__ */ e("div", { children: o }),
778
+ /* @__PURE__ */ e("button", { type: "button", "aria-label": "Close", onClick: t, children: "Close" })
779
+ ] }) : null : /* @__PURE__ */ e(Oa, { open: a, onOpenChange: (m) => {
780
+ m || t();
781
+ }, children: /* @__PURE__ */ l(Ie, { side: i, className: c("w-full overflow-y-auto sm:max-w-md", d), children: [
782
+ /* @__PURE__ */ l(je, { className: "text-left", children: [
783
+ /* @__PURE__ */ e($e, { children: r }),
784
+ n ? /* @__PURE__ */ e(Ve, { children: n }) : null
785
+ ] }),
786
+ /* @__PURE__ */ e("div", { className: "mt-6 space-y-5 text-sm leading-6 text-muted-foreground", children: o })
787
+ ] }) });
788
+ }
789
+ let Y = 0, H = null;
790
+ function ja() {
791
+ const a = document.documentElement;
792
+ H = {
793
+ htmlOverflow: a.style.overflow,
794
+ bodyOverflow: document.body.style.overflow
795
+ }, a.style.overflow = "hidden", document.body.style.overflow = "hidden";
796
+ }
797
+ function $a() {
798
+ if (!H) return;
799
+ const a = document.documentElement;
800
+ a.style.overflow = H.htmlOverflow, document.body.style.overflow = H.bodyOverflow, H = null;
801
+ }
802
+ function Va(a) {
803
+ Se(() => typeof document > "u" || !a ? void 0 : (Y === 0 && ja(), Y++, () => {
804
+ Y--, Y === 0 && $a();
805
+ }), [a]);
806
+ }
807
+ const I = {
808
+ sm: { width: "480px", maxHeight: "90vh" },
809
+ md: { width: "640px", maxHeight: "90vh" },
810
+ lg: { width: "896px", maxHeight: "90vh" },
811
+ xl: { width: "1000px", maxHeight: "90vh" },
812
+ wide: { width: "min(1152px, 95vw)", maxHeight: "90vh" },
813
+ full: { width: "95vw", maxHeight: "95vh" }
814
+ }, Fa = {
815
+ sm: I.sm,
816
+ md: I.md,
817
+ lg: I.lg,
818
+ xl: I.xl,
819
+ wide: I.wide,
820
+ full: I.full,
821
+ STANDARD: I.lg,
822
+ LARGE: I.wide
823
+ }, Be = ({
824
+ size: a = "STANDARD",
825
+ isOpen: t,
826
+ onClose: r,
827
+ title: n,
828
+ showCloseButton: o = !0,
829
+ closeOnOverlayClick: i = !1,
830
+ className: d,
831
+ contentClassName: m,
832
+ usePortal: u = !0,
833
+ children: f
834
+ }) => {
835
+ Va(t), h.useEffect(() => {
836
+ const p = (b) => {
837
+ b.key === "Escape" && t && r();
838
+ };
839
+ return t && document.addEventListener("keydown", p), () => {
840
+ document.removeEventListener("keydown", p);
841
+ };
842
+ }, [t, r]);
843
+ const S = (p) => {
844
+ i && p.target === p.currentTarget && r();
845
+ }, v = Fa[a], g = /* @__PURE__ */ e(
846
+ "div",
847
+ {
848
+ className: c(
849
+ "fixed inset-0 flex items-start sm:items-center justify-center p-4 sm:p-6 overflow-y-auto bg-black/50 backdrop-blur-sm",
850
+ T.MODAL,
851
+ d
852
+ ),
853
+ onClick: S,
854
+ style: {
855
+ opacity: t ? 1 : 0,
856
+ visibility: t ? "visible" : "hidden",
857
+ transition: "opacity 200ms ease-in-out, visibility 200ms ease-in-out"
858
+ },
859
+ children: /* @__PURE__ */ l(
860
+ "div",
861
+ {
862
+ className: c(
863
+ "w-full rounded-lg shadow-xl border bg-white dark:bg-surface-darker flex flex-col overflow-hidden my-auto sm:my-4",
864
+ "border-surface-darker/10 dark:border-surface/20",
865
+ "animate-in fade-in-0 zoom-in-95 duration-300",
866
+ "mx-auto sm:mx-4 md:mx-6 lg:mx-8",
867
+ "max-h-[calc(100dvh-2rem)]",
868
+ m
869
+ ),
870
+ style: {
871
+ maxWidth: v.width,
872
+ maxHeight: `min(${v.maxHeight}, calc(100dvh - 2rem))`
873
+ },
874
+ onClick: (p) => p.stopPropagation(),
875
+ children: [
876
+ (n || o) && /* @__PURE__ */ l("div", { className: "flex items-center justify-between p-6 border-b border-neutral-200 dark:border-neutral-700 flex-shrink-0", children: [
877
+ n && /* @__PURE__ */ e("div", { className: "flex-1 min-w-0", children: typeof n == "string" ? /* @__PURE__ */ e("h2", { className: "text-xl font-semibold text-neutral-900 dark:text-white", children: n }) : n }),
878
+ o && /* @__PURE__ */ e(
879
+ "button",
880
+ {
881
+ onClick: r,
882
+ className: "p-2 hover:bg-neutral-100 dark:hover:bg-neutral-700 rounded-lg transition-colors",
883
+ "aria-label": "Close dialog",
884
+ children: /* @__PURE__ */ e(Q, { className: "w-5 h-5 text-neutral-500 dark:text-neutral-400" })
885
+ }
886
+ )
887
+ ] }),
888
+ /* @__PURE__ */ e("div", { className: "flex min-h-0 flex-1 flex-col overflow-hidden", children: f })
889
+ ]
890
+ }
891
+ )
892
+ }
893
+ );
894
+ return t ? u ? ua(g, document.body) : g : null;
895
+ }, ce = _e(
896
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-medium transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 dark:focus-visible:ring-offset-neutral-950 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
897
+ {
898
+ variants: {
899
+ variant: {
900
+ default: "bg-blue-500 dark:bg-neutral-50 text-white dark:text-neutral-950 shadow-sm hover:shadow-md hover:bg-blue-600 dark:hover:bg-white active:bg-blue-700 dark:active:bg-neutral-100",
901
+ destructive: "bg-red-600 dark:bg-red-700 text-white shadow-sm hover:shadow-md hover:bg-red-700 dark:hover:bg-red-600 active:bg-red-800 dark:active:bg-red-800",
902
+ outline: "border border-neutral-300 dark:border-neutral-700 text-neutral-700 dark:text-neutral-300 hover:bg-neutral-100 dark:hover:bg-neutral-800 active:bg-neutral-200 dark:active:bg-neutral-700",
903
+ secondary: "bg-neutral-100 dark:bg-neutral-800 text-neutral-800 dark:text-neutral-50 shadow-sm hover:shadow-md hover:bg-neutral-200 dark:hover:bg-neutral-700 active:bg-neutral-300 dark:active:bg-neutral-900 hover:text-neutral-900 dark:hover:text-neutral-50 active:text-neutral-950 dark:active:text-neutral-50",
904
+ ghost: "bg-transparent text-neutral-700 dark:text-neutral-400 hover:bg-neutral-100 dark:hover:bg-neutral-800 active:bg-neutral-200 dark:active:bg-neutral-900 hover:text-neutral-900 dark:hover:text-neutral-200 active:text-neutral-950 dark:active:text-neutral-100",
905
+ subtle: "bg-transparent text-neutral-600 dark:text-neutral-400 hover:bg-neutral-50 dark:hover:bg-neutral-800/50 active:bg-neutral-100 dark:active:bg-neutral-700/50",
906
+ link: "bg-transparent text-blue-600 dark:text-blue-400 underline-offset-4 hover:underline"
907
+ },
908
+ size: {
909
+ default: "h-9 px-4 py-2",
910
+ sm: "h-8 rounded-lg px-3 text-xs",
911
+ lg: "h-10 rounded-xl px-8",
912
+ icon: "h-9 w-9 p-0"
913
+ }
914
+ },
915
+ defaultVariants: {
916
+ variant: "default",
917
+ size: "default"
918
+ }
919
+ }
920
+ ), C = h.forwardRef(
921
+ ({ className: a, variant: t, size: r, asChild: n = !1, ...o }, i) => /* @__PURE__ */ e(
922
+ n ? pa : "button",
923
+ {
924
+ className: c(ce({ variant: t, size: r, className: a })),
925
+ ref: i,
926
+ ...o
927
+ }
928
+ )
929
+ );
930
+ C.displayName = "Button";
931
+ const He = ({
932
+ size: a = "STANDARD",
933
+ isOpen: t,
934
+ onClose: r,
935
+ title: n,
936
+ className: o,
937
+ children: i,
938
+ footer: d,
939
+ showCloseButton: m = !0,
940
+ closeOnOverlayClick: u = !1
941
+ }) => /* @__PURE__ */ l(
942
+ Be,
943
+ {
944
+ size: a,
945
+ isOpen: t,
946
+ onClose: r,
947
+ title: n,
948
+ showCloseButton: m,
949
+ closeOnOverlayClick: u,
950
+ className: o,
951
+ children: [
952
+ /* @__PURE__ */ e("div", { className: "min-h-0 flex-1 overflow-y-auto overscroll-contain custom-scrollbar", children: i }),
953
+ d && /* @__PURE__ */ e("div", { className: "flex-shrink-0 border-t border-neutral-200 dark:border-neutral-700 bg-neutral-50 dark:bg-neutral-800", children: d })
954
+ ]
955
+ }
956
+ ), Et = ({
957
+ onSubmit: a,
958
+ onCancel: t,
959
+ submitText: r = "OK",
960
+ cancelText: n = "Cancel",
961
+ submitDisabled: o = !1,
962
+ submitLoading: i = !1,
963
+ showFooter: d = !0,
964
+ customFooter: m,
965
+ ...u
966
+ }) => /* @__PURE__ */ e(He, { ...u, footer: d ? m || /* @__PURE__ */ l("div", { className: "flex items-center justify-end gap-3 p-6", children: [
967
+ /* @__PURE__ */ e(C, { type: "button", variant: "secondary", onClick: () => {
968
+ t?.(), u.onClose();
969
+ }, children: n }),
970
+ a && /* @__PURE__ */ l(
971
+ C,
972
+ {
973
+ type: "button",
974
+ variant: "default",
975
+ onClick: () => {
976
+ a?.();
977
+ },
978
+ disabled: o || i,
979
+ className: "gap-2",
980
+ children: [
981
+ i && /* @__PURE__ */ e("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-white/30 border-t-white" }),
982
+ r
983
+ ]
984
+ }
985
+ )
986
+ ] }) : void 0 }), Ba = ({
987
+ isOpen: a,
988
+ onClose: t,
989
+ onConfirm: r,
990
+ title: n = "Confirm",
991
+ message: o,
992
+ confirmText: i = "Confirm",
993
+ cancelText: d = "Cancel",
994
+ danger: m = !1,
995
+ loading: u = !1
996
+ }) => /* @__PURE__ */ e(
997
+ Be,
998
+ {
999
+ size: "STANDARD",
1000
+ isOpen: a,
1001
+ onClose: t,
1002
+ title: n,
1003
+ contentClassName: "max-w-4xl",
1004
+ children: /* @__PURE__ */ l("div", { className: "p-6", children: [
1005
+ /* @__PURE__ */ e("p", { className: "text-neutral-700 dark:text-neutral-300 mb-6", children: o }),
1006
+ /* @__PURE__ */ l("div", { className: "flex items-center justify-end gap-3", children: [
1007
+ /* @__PURE__ */ e(C, { type: "button", variant: "secondary", onClick: t, disabled: u, children: d }),
1008
+ /* @__PURE__ */ l(
1009
+ C,
1010
+ {
1011
+ type: "button",
1012
+ variant: m ? "destructive" : "default",
1013
+ onClick: () => {
1014
+ r();
1015
+ },
1016
+ disabled: u,
1017
+ className: "gap-2",
1018
+ children: [
1019
+ u && /* @__PURE__ */ e("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-white/30 border-t-white" }),
1020
+ i
1021
+ ]
1022
+ }
1023
+ )
1024
+ ] })
1025
+ ] })
1026
+ }
1027
+ ), Pt = ({
1028
+ searchable: a = !1,
1029
+ searchPlaceholder: t = "Search...",
1030
+ onSearch: r,
1031
+ emptyMessage: n = "No data",
1032
+ loading: o = !1,
1033
+ children: i,
1034
+ title: d,
1035
+ ...m
1036
+ }) => {
1037
+ const [u, f] = h.useState("");
1038
+ return /* @__PURE__ */ l(He, { ...m, title: d, children: [
1039
+ a && /* @__PURE__ */ e("div", { className: "p-4 border-b border-neutral-200 dark:border-neutral-700", children: /* @__PURE__ */ e(
1040
+ "input",
1041
+ {
1042
+ type: "text",
1043
+ placeholder: t,
1044
+ value: u,
1045
+ onChange: (v) => {
1046
+ const g = v.target.value;
1047
+ f(g), r?.(g);
1048
+ },
1049
+ className: "w-full px-3 py-2 border border-neutral-300 dark:border-neutral-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-brand-primary bg-white dark:bg-neutral-700 text-neutral-900 dark:text-white"
1050
+ }
1051
+ ) }),
1052
+ /* @__PURE__ */ e("div", { className: "min-h-0 flex-1 overflow-y-auto overscroll-contain custom-scrollbar", children: o ? /* @__PURE__ */ l("div", { className: "flex items-center justify-center py-12", children: [
1053
+ /* @__PURE__ */ e("div", { className: "w-8 h-8 border-2 border-brand-primary/30 border-t-blue-600 rounded-full animate-spin" }),
1054
+ /* @__PURE__ */ e("span", { className: "ml-3 text-neutral-600 dark:text-neutral-400", children: "Loading..." })
1055
+ ] }) : i || /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center py-12 text-center", children: /* @__PURE__ */ e("p", { className: "text-neutral-500 dark:text-neutral-400", children: n }) }) })
1056
+ ] });
1057
+ };
1058
+ function Rt({
1059
+ open: a,
1060
+ title: t,
1061
+ message: r,
1062
+ confirmLabel: n = "Confirm",
1063
+ cancelLabel: o = "Cancel",
1064
+ onConfirm: i,
1065
+ onCancel: d,
1066
+ danger: m = !1,
1067
+ loading: u = !1
1068
+ }) {
1069
+ return /* @__PURE__ */ e(
1070
+ Ba,
1071
+ {
1072
+ isOpen: a,
1073
+ onClose: d,
1074
+ onConfirm: i,
1075
+ title: t,
1076
+ message: r,
1077
+ confirmText: n,
1078
+ cancelText: o,
1079
+ danger: m,
1080
+ loading: u
1081
+ }
1082
+ );
1083
+ }
1084
+ function ee({
1085
+ className: a,
1086
+ classNames: t,
1087
+ showOutsideDays: r = !0,
1088
+ components: n,
1089
+ ...o
1090
+ }) {
1091
+ return /* @__PURE__ */ e(
1092
+ ba,
1093
+ {
1094
+ showOutsideDays: r,
1095
+ className: c(
1096
+ "p-3",
1097
+ o.mode === "range" ? "gs-calendar-range" : "gs-calendar-single",
1098
+ a
1099
+ ),
1100
+ classNames: {
1101
+ months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
1102
+ month: "space-y-4 min-w-[280px]",
1103
+ caption: "flex justify-center pt-1 relative items-center w-full",
1104
+ caption_label: "text-sm font-medium",
1105
+ nav: "space-x-1 flex items-center",
1106
+ nav_button: c(
1107
+ ce({ variant: "outline" }),
1108
+ "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
1109
+ ),
1110
+ nav_button_previous: "absolute left-0",
1111
+ nav_button_next: "absolute right-0",
1112
+ table: "w-full border-collapse space-y-1",
1113
+ head_row: "flex w-full",
1114
+ head_cell: "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem]",
1115
+ row: "flex w-full mt-2",
1116
+ cell: c(
1117
+ `relative p-0 text-center text-sm flex-1 focus-within:relative focus-within:${T.SIDEBAR} has-[[aria-selected]]:bg-accent has-[[aria-selected].day-outside]:bg-accent/50 has-[[aria-selected].day-range-end]:rounded-r-md`,
1118
+ o.mode === "range" ? "has-[>.day-range-end]:rounded-r-md has-[>.day-range-start]:rounded-l-md first:has-[[aria-selected]]:rounded-l-md last:has-[[aria-selected]]:rounded-r-md" : void 0
1119
+ ),
1120
+ day: c(
1121
+ ce({ variant: "ghost" }),
1122
+ "h-8 w-8 p-0 font-normal aria-selected:opacity-100"
1123
+ ),
1124
+ day_range_start: "day-range-start",
1125
+ day_range_end: "day-range-end",
1126
+ day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
1127
+ day_today: "bg-accent text-accent-foreground",
1128
+ day_outside: "day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",
1129
+ day_disabled: "text-muted-foreground opacity-50",
1130
+ day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
1131
+ day_hidden: "invisible",
1132
+ ...t
1133
+ },
1134
+ components: {
1135
+ IconLeft: ({ className: i, ...d }) => /* @__PURE__ */ e(da, { className: c("h-4 w-4", i), ...d }),
1136
+ IconRight: ({ className: i, ...d }) => /* @__PURE__ */ e(ia, { className: c("h-4 w-4", i), ...d }),
1137
+ // Consumer overrides (e.g. a custom DayContent) merge in without dropping
1138
+ // the nav chevrons above.
1139
+ ...n
1140
+ },
1141
+ ...o
1142
+ }
1143
+ );
1144
+ }
1145
+ ee.displayName = "Calendar";
1146
+ function Ha() {
1147
+ const [a, t] = h.useState("hsl(0 0% 100%)");
1148
+ return h.useEffect(() => {
1149
+ const r = () => {
1150
+ if (typeof window > "u") return;
1151
+ const o = document.documentElement, i = getComputedStyle(o).getPropertyValue("--popover").trim(), d = o.classList.contains("dark");
1152
+ t(i ? `hsl(${i})` : d ? "hsl(0 0% 3.9%)" : "hsl(0 0% 100%)");
1153
+ };
1154
+ r();
1155
+ const n = new MutationObserver(r);
1156
+ return n.observe(document.documentElement, {
1157
+ attributes: !0,
1158
+ attributeFilter: ["class"]
1159
+ }), () => n.disconnect();
1160
+ }, []), a;
1161
+ }
1162
+ const ae = $.Root, te = $.Trigger, Ot = $.Anchor, K = h.forwardRef(({ className: a, align: t = "center", sideOffset: r = 4, style: n, ...o }, i) => {
1163
+ const d = Ha();
1164
+ return /* @__PURE__ */ e($.Portal, { children: /* @__PURE__ */ e(
1165
+ $.Content,
1166
+ {
1167
+ ref: i,
1168
+ align: t,
1169
+ sideOffset: r,
1170
+ className: c(
1171
+ `${T.OVERLAY_POPOVER} w-72 rounded-md border p-4 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]`,
1172
+ "text-popover-foreground border-border",
1173
+ a
1174
+ ),
1175
+ style: {
1176
+ backgroundColor: d,
1177
+ ...n
1178
+ },
1179
+ ...o
1180
+ }
1181
+ ) });
1182
+ });
1183
+ K.displayName = $.Content.displayName;
1184
+ const re = typeof process < "u" && process.env.NODE_ENV === "test", Ua = {
1185
+ en: {
1186
+ chooseDate: "Select date",
1187
+ chooseDateTime: "Select date and time",
1188
+ chooseTime: "Select time",
1189
+ clear: "Clear",
1190
+ today: "Today",
1191
+ previousYear: "Previous year",
1192
+ nextYear: "Next year",
1193
+ hour: "Hour",
1194
+ minute: "Minute",
1195
+ apply: "Apply"
1196
+ },
1197
+ zh: {
1198
+ chooseDate: "选择日期",
1199
+ chooseDateTime: "选择日期和时间",
1200
+ chooseTime: "选择时间",
1201
+ clear: "清除",
1202
+ today: "今天",
1203
+ previousYear: "上一年",
1204
+ nextYear: "下一年",
1205
+ hour: "小时",
1206
+ minute: "分钟",
1207
+ apply: "应用"
1208
+ }
1209
+ };
1210
+ function Ue(a) {
1211
+ return String(a || "").toLowerCase().startsWith("zh") ? "zh" : "en";
1212
+ }
1213
+ function le(a, t) {
1214
+ return { ...Ua[Ue(a)], ...t };
1215
+ }
1216
+ function z(a) {
1217
+ const t = String(a || "").trim().match(/^(\d{4})-(\d{2})-(\d{2})/) ?? [];
1218
+ if (!t[1]) return;
1219
+ const r = new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]));
1220
+ if (!(r.getFullYear() !== Number(t[1]) || r.getMonth() !== Number(t[2]) - 1 || r.getDate() !== Number(t[3])))
1221
+ return r;
1222
+ }
1223
+ function W(a) {
1224
+ return `${a.getFullYear()}-${String(a.getMonth() + 1).padStart(2, "0")}-${String(a.getDate()).padStart(2, "0")}`;
1225
+ }
1226
+ function V(a) {
1227
+ const t = String(a || "").match(/(?:T|^)(\d{2}):(\d{2})/), r = Math.min(23, Math.max(0, Number(t?.[1] || 9))), n = Math.min(59, Math.max(0, Number(t?.[2] || 0)));
1228
+ return { hour: r, minute: n };
1229
+ }
1230
+ function Z(a, t) {
1231
+ const r = z(a);
1232
+ return r ? fa(r, t === "zh" ? "yyyy年M月d日" : "MMM d, yyyy", {
1233
+ locale: t === "zh" ? X : J
1234
+ }) : "";
1235
+ }
1236
+ function Wa(a, t) {
1237
+ const r = Z(a, t);
1238
+ if (!r) return "";
1239
+ const n = V(a);
1240
+ return `${r} ${String(n.hour).padStart(2, "0")}:${String(n.minute).padStart(2, "0")}`;
1241
+ }
1242
+ function Ka(a) {
1243
+ if (!a) return "";
1244
+ const t = V(a);
1245
+ return `${String(t.hour).padStart(2, "0")}:${String(t.minute).padStart(2, "0")}`;
1246
+ }
1247
+ function ne(a) {
1248
+ const { i18n: t } = ha();
1249
+ return Ue(a || t.resolvedLanguage || t.language);
1250
+ }
1251
+ function se({ label: a, onClear: t }) {
1252
+ return /* @__PURE__ */ e(
1253
+ C,
1254
+ {
1255
+ type: "button",
1256
+ variant: "ghost",
1257
+ size: "icon",
1258
+ "aria-label": a,
1259
+ className: "h-9 w-9 shrink-0 rounded-l-none border-l border-border text-muted-foreground",
1260
+ onClick: t,
1261
+ children: /* @__PURE__ */ e(Q, { className: "h-4 w-4", "aria-hidden": "true" })
1262
+ }
1263
+ );
1264
+ }
1265
+ function oe({ icon: a, value: t, placeholder: r }) {
1266
+ return /* @__PURE__ */ l(ye, { children: [
1267
+ a,
1268
+ /* @__PURE__ */ e("span", { className: c("min-w-0 flex-1 truncate text-left", !t && "text-muted-foreground"), children: t || r })
1269
+ ] });
1270
+ }
1271
+ function Ya({
1272
+ id: a,
1273
+ value: t,
1274
+ onChange: r,
1275
+ disabled: n,
1276
+ placeholder: o,
1277
+ className: i,
1278
+ triggerClassName: d,
1279
+ min: m,
1280
+ max: u,
1281
+ locale: f,
1282
+ labels: S,
1283
+ clearable: v = !0,
1284
+ "aria-label": g,
1285
+ popoverLayer: p = "aboveModal",
1286
+ disabledDays: b,
1287
+ presets: N = []
1288
+ }) {
1289
+ const x = ne(f), w = le(x, S), _ = z(t), A = z(m), E = z(u), [O, P] = h.useState(!1), R = Z(t, x);
1290
+ return /* @__PURE__ */ l("div", { className: c("flex min-w-0 items-stretch rounded-md border border-input bg-background shadow-sm focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2", i), children: [
1291
+ /* @__PURE__ */ l(ae, { open: O, onOpenChange: P, modal: !0, children: [
1292
+ /* @__PURE__ */ e(te, { asChild: !0, children: /* @__PURE__ */ e(
1293
+ C,
1294
+ {
1295
+ id: a,
1296
+ type: "button",
1297
+ variant: "ghost",
1298
+ disabled: n,
1299
+ "aria-label": g || o || w.chooseDate,
1300
+ className: c("h-10 min-w-0 flex-1 justify-start gap-2 rounded-r-none px-3 font-normal hover:bg-accent/60", d),
1301
+ children: /* @__PURE__ */ e(oe, { icon: /* @__PURE__ */ e(he, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }), value: R, placeholder: o || w.chooseDate })
1302
+ }
1303
+ ) }),
1304
+ /* @__PURE__ */ l(
1305
+ K,
1306
+ {
1307
+ align: "start",
1308
+ className: c("w-auto max-w-[calc(100vw-1.5rem)] p-0", p === "aboveModal" ? T.DATE_PICKER_POPOVER : T.POPOVER),
1309
+ children: [
1310
+ /* @__PURE__ */ e(
1311
+ ee,
1312
+ {
1313
+ mode: "single",
1314
+ selected: _,
1315
+ defaultMonth: _ || A || /* @__PURE__ */ new Date(),
1316
+ onSelect: (y) => {
1317
+ y && (r(W(y)), P(!1));
1318
+ },
1319
+ disabled: [{ before: A || new Date(100, 0, 1), after: E || new Date(9999, 11, 31) }, ...Array.isArray(b) ? b : b ? [b] : []],
1320
+ locale: x === "zh" ? X : J,
1321
+ captionLayout: "dropdown-buttons",
1322
+ fromDate: A || new Date(1900, 0, 1),
1323
+ toDate: E || new Date((/* @__PURE__ */ new Date()).getFullYear() + 20, 11, 31),
1324
+ initialFocus: !0
1325
+ }
1326
+ ),
1327
+ N.length > 0 ? /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1 border-t border-border px-3 py-2", children: N.map((y) => /* @__PURE__ */ e(C, { type: "button", variant: "ghost", size: "sm", onClick: () => {
1328
+ r(y.value), P(!1);
1329
+ }, children: y.label }, `${y.label}-${y.value}`)) }) : null,
1330
+ /* @__PURE__ */ l("div", { className: "flex items-center justify-between border-t border-border px-3 py-2", children: [
1331
+ /* @__PURE__ */ e(
1332
+ C,
1333
+ {
1334
+ type: "button",
1335
+ variant: "ghost",
1336
+ size: "sm",
1337
+ onClick: () => {
1338
+ const y = W(/* @__PURE__ */ new Date()), L = A && new Date(y) < A, j = E && new Date(y) > E;
1339
+ !L && !j && r(y), P(!1);
1340
+ },
1341
+ children: w.today
1342
+ }
1343
+ ),
1344
+ v && t ? /* @__PURE__ */ e(C, { type: "button", variant: "ghost", size: "sm", onClick: () => {
1345
+ r(""), P(!1);
1346
+ }, children: w.clear }) : null
1347
+ ] })
1348
+ ]
1349
+ }
1350
+ )
1351
+ ] }),
1352
+ v && t && !n ? /* @__PURE__ */ e(se, { label: w.clear, onClear: () => r("") }) : null
1353
+ ] });
1354
+ }
1355
+ function Ga(a) {
1356
+ return re ? /* @__PURE__ */ e("input", { id: a.id, type: "date", value: a.value, onChange: (t) => a.onChange(t.currentTarget.value), disabled: a.disabled, min: a.min, max: a.max, "aria-label": a["aria-label"] || a.placeholder, className: a.className }) : /* @__PURE__ */ e(Ya, { ...a });
1357
+ }
1358
+ function Za({
1359
+ id: a,
1360
+ value: t,
1361
+ onChange: r,
1362
+ disabled: n,
1363
+ placeholder: o,
1364
+ className: i,
1365
+ triggerClassName: d,
1366
+ min: m,
1367
+ max: u,
1368
+ locale: f,
1369
+ labels: S,
1370
+ clearable: v = !0,
1371
+ "aria-label": g,
1372
+ popoverLayer: p = "aboveModal",
1373
+ disabledDays: b,
1374
+ presets: N = []
1375
+ }) {
1376
+ const x = ne(f), w = le(x, S), _ = z(m), A = z(u), E = { from: z(t.from), to: z(t.to) }, [O, P] = h.useState(!1), R = t.from ? `${Z(t.from, x)}${t.to ? ` – ${Z(t.to, x)}` : ""}` : "";
1377
+ return /* @__PURE__ */ l("div", { className: c("flex min-w-0 items-stretch rounded-md border border-input bg-background shadow-sm focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2", i), children: [
1378
+ /* @__PURE__ */ l(ae, { open: O, onOpenChange: P, modal: !0, children: [
1379
+ /* @__PURE__ */ e(te, { asChild: !0, children: /* @__PURE__ */ e(C, { id: a, type: "button", variant: "ghost", disabled: n, "aria-label": g || o || w.chooseDate, className: c("h-10 min-w-0 flex-1 justify-start gap-2 rounded-r-none px-3 font-normal", d), children: /* @__PURE__ */ e(oe, { icon: /* @__PURE__ */ e(he, { className: "h-4 w-4 shrink-0", "aria-hidden": !0 }), value: R, placeholder: o || w.chooseDate }) }) }),
1380
+ /* @__PURE__ */ l(K, { align: "start", className: c("w-auto max-w-[calc(100vw-1.5rem)] p-0", p === "aboveModal" ? T.DATE_PICKER_POPOVER : T.POPOVER), children: [
1381
+ /* @__PURE__ */ e(ee, { mode: "range", selected: E, onSelect: (y) => r({ from: y?.from ? W(y.from) : "", to: y?.to ? W(y.to) : "" }), numberOfMonths: 2, disabled: [{ before: _ || new Date(100, 0, 1), after: A || new Date(9999, 11, 31) }, ...Array.isArray(b) ? b : b ? [b] : []], locale: x === "zh" ? X : J, captionLayout: "dropdown-buttons", fromDate: _ || new Date(1900, 0, 1), toDate: A || new Date((/* @__PURE__ */ new Date()).getFullYear() + 20, 11, 31), initialFocus: !0 }),
1382
+ N.length > 0 ? /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1 border-t border-border px-3 py-2", children: N.map((y) => /* @__PURE__ */ e(C, { type: "button", variant: "ghost", size: "sm", onClick: () => {
1383
+ r(y.value), P(!1);
1384
+ }, children: y.label }, y.label)) }) : null,
1385
+ /* @__PURE__ */ e("div", { className: "flex justify-end border-t border-border px-3 py-2", children: v && t.from ? /* @__PURE__ */ e(C, { type: "button", variant: "ghost", size: "sm", onClick: () => r({ from: "", to: "" }), children: w.clear }) : null })
1386
+ ] })
1387
+ ] }),
1388
+ v && t.from && !n ? /* @__PURE__ */ e(se, { label: w.clear, onClear: () => r({ from: "", to: "" }) }) : null
1389
+ ] });
1390
+ }
1391
+ function Mt(a) {
1392
+ return re ? /* @__PURE__ */ l("div", { className: a.className, children: [
1393
+ /* @__PURE__ */ e("input", { id: a.id, type: "date", value: a.value.from, onChange: (t) => a.onChange({ ...a.value, from: t.currentTarget.value }), disabled: a.disabled, min: a.min, max: a.max, "aria-label": a["aria-label"] || a.placeholder }),
1394
+ /* @__PURE__ */ e("input", { type: "date", value: a.value.to, onChange: (t) => a.onChange({ ...a.value, to: t.currentTarget.value }), disabled: a.disabled, min: a.min, max: a.max, "aria-label": `${a["aria-label"] || a.placeholder || "Date"} end` })
1395
+ ] }) : /* @__PURE__ */ e(Za, { ...a });
1396
+ }
1397
+ function We({
1398
+ hour: a,
1399
+ minute: t,
1400
+ minuteStep: r,
1401
+ labels: n,
1402
+ onHour: o,
1403
+ onMinute: i
1404
+ }) {
1405
+ const d = Array.from({ length: Math.ceil(60 / r) }, (m, u) => Math.min(59, u * r));
1406
+ return /* @__PURE__ */ l("div", { className: "grid grid-cols-2 gap-3 border-t border-border p-3", children: [
1407
+ /* @__PURE__ */ l("fieldset", { children: [
1408
+ /* @__PURE__ */ e("legend", { className: "mb-2 text-xs font-medium text-muted-foreground", children: n.hour }),
1409
+ /* @__PURE__ */ e("div", { className: "grid max-h-36 grid-cols-4 gap-1 overflow-y-auto pr-1", children: Array.from({ length: 24 }, (m, u) => /* @__PURE__ */ e(C, { type: "button", size: "sm", variant: a === u ? "default" : "ghost", className: "h-8 px-1 tabular-nums", onClick: () => o(u), children: String(u).padStart(2, "0") }, u)) })
1410
+ ] }),
1411
+ /* @__PURE__ */ l("fieldset", { children: [
1412
+ /* @__PURE__ */ e("legend", { className: "mb-2 text-xs font-medium text-muted-foreground", children: n.minute }),
1413
+ /* @__PURE__ */ e("div", { className: "grid max-h-36 grid-cols-3 gap-1 overflow-y-auto pr-1", children: d.map((m) => /* @__PURE__ */ e(C, { type: "button", size: "sm", variant: t === m ? "default" : "ghost", className: "h-8 px-1 tabular-nums", onClick: () => i(m), children: String(m).padStart(2, "0") }, m)) })
1414
+ ] })
1415
+ ] });
1416
+ }
1417
+ function Qa({
1418
+ id: a,
1419
+ value: t,
1420
+ onChange: r,
1421
+ disabled: n,
1422
+ placeholder: o,
1423
+ className: i,
1424
+ triggerClassName: d,
1425
+ min: m,
1426
+ max: u,
1427
+ locale: f,
1428
+ labels: S,
1429
+ clearable: v = !0,
1430
+ minuteStep: g = 5,
1431
+ "aria-label": p,
1432
+ popoverLayer: b = "aboveModal"
1433
+ }) {
1434
+ const N = ne(f), x = le(N, S), w = z(t), _ = z(m), A = z(u), E = V(t), [O, P] = h.useState(!1), [R, y] = h.useState(w || /* @__PURE__ */ new Date()), [L, j] = h.useState(E.hour), [be, ge] = h.useState(E.minute);
1435
+ h.useEffect(() => {
1436
+ if (!O) return;
1437
+ y(w || /* @__PURE__ */ new Date());
1438
+ const B = V(t);
1439
+ j(B.hour), ge(B.minute);
1440
+ }, [O, w?.getTime(), t]);
1441
+ const na = () => {
1442
+ r(`${W(R)}T${String(L).padStart(2, "0")}:${String(be).padStart(2, "0")}`), P(!1);
1443
+ };
1444
+ return /* @__PURE__ */ l("div", { className: c("flex min-w-0 items-stretch rounded-md border border-input bg-background shadow-sm focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2", i), children: [
1445
+ /* @__PURE__ */ l(ae, { open: O, onOpenChange: P, modal: !0, children: [
1446
+ /* @__PURE__ */ e(te, { asChild: !0, children: /* @__PURE__ */ e(C, { id: a, type: "button", variant: "ghost", disabled: n, "aria-label": p || o || x.chooseDateTime, className: c("h-10 min-w-0 flex-1 justify-start gap-2 rounded-r-none px-3 font-normal hover:bg-accent/60", d), children: /* @__PURE__ */ e(oe, { icon: /* @__PURE__ */ e(he, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }), value: Wa(t, N), placeholder: o || x.chooseDateTime }) }) }),
1447
+ /* @__PURE__ */ l(K, { align: "start", className: c("w-auto max-w-[calc(100vw-1.5rem)] p-0", b === "aboveModal" ? T.DATE_PICKER_POPOVER : T.POPOVER), children: [
1448
+ /* @__PURE__ */ e(ee, { mode: "single", selected: R, onSelect: (B) => B && y(B), disabled: { before: _ || new Date(100, 0, 1), after: A || new Date(9999, 11, 31) }, locale: N === "zh" ? X : J, initialFocus: !0 }),
1449
+ /* @__PURE__ */ e(We, { hour: L, minute: be, minuteStep: Math.max(1, Math.min(30, g)), labels: x, onHour: j, onMinute: ge }),
1450
+ /* @__PURE__ */ l("div", { className: "flex items-center justify-between border-t border-border px-3 py-2", children: [
1451
+ v && t ? /* @__PURE__ */ e(C, { type: "button", variant: "ghost", size: "sm", onClick: () => {
1452
+ r(""), P(!1);
1453
+ }, children: x.clear }) : /* @__PURE__ */ e("span", {}),
1454
+ /* @__PURE__ */ e(C, { type: "button", size: "sm", onClick: na, children: x.apply })
1455
+ ] })
1456
+ ] })
1457
+ ] }),
1458
+ v && t && !n ? /* @__PURE__ */ e(se, { label: x.clear, onClear: () => r("") }) : null
1459
+ ] });
1460
+ }
1461
+ function Xa(a) {
1462
+ return re ? /* @__PURE__ */ e("input", { id: a.id, type: "datetime-local", value: a.value, onChange: (t) => a.onChange(t.currentTarget.value), disabled: a.disabled, min: a.min, max: a.max, "aria-label": a["aria-label"] || a.placeholder, className: a.className }) : /* @__PURE__ */ e(Qa, { ...a });
1463
+ }
1464
+ function Ja({
1465
+ id: a,
1466
+ value: t,
1467
+ onChange: r,
1468
+ disabled: n,
1469
+ placeholder: o,
1470
+ className: i,
1471
+ triggerClassName: d,
1472
+ locale: m,
1473
+ labels: u,
1474
+ clearable: f = !0,
1475
+ minuteStep: S = 5,
1476
+ "aria-label": v,
1477
+ popoverLayer: g = "aboveModal"
1478
+ }) {
1479
+ const p = ne(m), b = le(p, u), N = V(t), [x, w] = h.useState(!1), [_, A] = h.useState(N.hour), [E, O] = h.useState(N.minute);
1480
+ h.useEffect(() => {
1481
+ if (!x) return;
1482
+ const R = V(t);
1483
+ A(R.hour), O(R.minute);
1484
+ }, [x, t]);
1485
+ const P = () => {
1486
+ r(`${String(_).padStart(2, "0")}:${String(E).padStart(2, "0")}`), w(!1);
1487
+ };
1488
+ return /* @__PURE__ */ l("div", { className: c("flex min-w-0 items-stretch rounded-md border border-input bg-background shadow-sm focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2", i), children: [
1489
+ /* @__PURE__ */ l(ae, { open: x, onOpenChange: w, modal: !0, children: [
1490
+ /* @__PURE__ */ e(te, { asChild: !0, children: /* @__PURE__ */ e(C, { id: a, type: "button", variant: "ghost", disabled: n, "aria-label": v || o || b.chooseTime, className: c("h-10 min-w-0 flex-1 justify-start gap-2 rounded-r-none px-3 font-normal hover:bg-accent/60", d), children: /* @__PURE__ */ e(oe, { icon: /* @__PURE__ */ e(ca, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }), value: Ka(t), placeholder: o || b.chooseTime }) }) }),
1491
+ /* @__PURE__ */ l(K, { align: "start", className: c("w-[320px] max-w-[calc(100vw-1.5rem)] p-0", g === "aboveModal" ? T.DATE_PICKER_POPOVER : T.POPOVER), children: [
1492
+ /* @__PURE__ */ e(We, { hour: _, minute: E, minuteStep: Math.max(1, Math.min(30, S)), labels: b, onHour: A, onMinute: O }),
1493
+ /* @__PURE__ */ l("div", { className: "flex items-center justify-between border-t border-border px-3 py-2", children: [
1494
+ f && t ? /* @__PURE__ */ e(C, { type: "button", variant: "ghost", size: "sm", onClick: () => {
1495
+ r(""), w(!1);
1496
+ }, children: b.clear }) : /* @__PURE__ */ e("span", {}),
1497
+ /* @__PURE__ */ e(C, { type: "button", size: "sm", onClick: P, children: b.apply })
1498
+ ] })
1499
+ ] })
1500
+ ] }),
1501
+ f && t && !n ? /* @__PURE__ */ e(se, { label: b.clear, onClear: () => r("") }) : null
1502
+ ] });
1503
+ }
1504
+ function qa(a) {
1505
+ return re ? /* @__PURE__ */ e("input", { id: a.id, type: "time", value: a.value, onChange: (t) => a.onChange(t.currentTarget.value), disabled: a.disabled, "aria-label": a["aria-label"] || a.placeholder, className: a.className }) : /* @__PURE__ */ e(Ja, { ...a });
1506
+ }
1507
+ const Ke = h.forwardRef(
1508
+ ({ className: a, type: t, ...r }, n) => /* @__PURE__ */ e(
1509
+ "input",
1510
+ {
1511
+ type: t,
1512
+ className: c(
1513
+ "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1514
+ a
1515
+ ),
1516
+ ref: n,
1517
+ ...r
1518
+ }
1519
+ )
1520
+ );
1521
+ Ke.displayName = "Input";
1522
+ const et = typeof process < "u" && process.env.NODE_ENV === "test";
1523
+ function at(a) {
1524
+ return a === "date" || a === "datetime-local" || a === "time";
1525
+ }
1526
+ const zt = h.forwardRef(function({
1527
+ type: t = "text",
1528
+ value: r,
1529
+ defaultValue: n,
1530
+ onChange: o,
1531
+ onValueChange: i,
1532
+ min: d,
1533
+ max: m,
1534
+ locale: u,
1535
+ labels: f,
1536
+ clearable: S,
1537
+ minuteStep: v,
1538
+ popoverLayer: g,
1539
+ className: p,
1540
+ id: b,
1541
+ disabled: N,
1542
+ placeholder: x,
1543
+ "aria-label": w,
1544
+ name: _,
1545
+ ...A
1546
+ }, E) {
1547
+ if (et)
1548
+ return /* @__PURE__ */ e("input", { ...A, ref: E, id: b, name: _, type: t, value: r, defaultValue: n, onChange: o, min: d, max: m, disabled: N, placeholder: x, "aria-label": w, className: p });
1549
+ if (!at(t))
1550
+ return /* @__PURE__ */ e(
1551
+ Ke,
1552
+ {
1553
+ ...A,
1554
+ ref: E,
1555
+ id: b,
1556
+ name: _,
1557
+ type: t,
1558
+ value: r,
1559
+ defaultValue: n,
1560
+ onChange: o,
1561
+ min: d,
1562
+ max: m,
1563
+ disabled: N,
1564
+ placeholder: x,
1565
+ "aria-label": w,
1566
+ className: p
1567
+ }
1568
+ );
1569
+ const O = String(r ?? n ?? ""), R = {
1570
+ id: b,
1571
+ value: O,
1572
+ onChange: (y) => {
1573
+ if (i?.(y), o) {
1574
+ const L = { value: y, name: _ || "", type: t };
1575
+ o({ target: L, currentTarget: L });
1576
+ }
1577
+ },
1578
+ disabled: N,
1579
+ placeholder: x,
1580
+ className: p,
1581
+ min: d == null ? void 0 : String(d),
1582
+ max: m == null ? void 0 : String(m),
1583
+ locale: u,
1584
+ labels: f,
1585
+ clearable: S,
1586
+ popoverLayer: g,
1587
+ "aria-label": w
1588
+ };
1589
+ if (t === "datetime-local") return /* @__PURE__ */ e(Xa, { ...R, minuteStep: v });
1590
+ if (t === "time") {
1591
+ const { min: y, max: L, ...j } = R;
1592
+ return /* @__PURE__ */ e(qa, { ...j, minuteStep: v });
1593
+ }
1594
+ return /* @__PURE__ */ e(Ga, { ...R });
1595
+ });
1596
+ function Ye({
1597
+ onValueChange: a,
1598
+ ...t
1599
+ }) {
1600
+ return /* @__PURE__ */ e(
1601
+ D.Root,
1602
+ {
1603
+ ...t,
1604
+ onValueChange: a ? (r) => {
1605
+ h.startTransition(() => {
1606
+ a(r);
1607
+ });
1608
+ } : void 0
1609
+ }
1610
+ );
1611
+ }
1612
+ Ye.displayName = D.Root.displayName;
1613
+ const tt = D.Group, rt = D.Value, Ge = h.forwardRef(({ className: a, children: t, ...r }, n) => /* @__PURE__ */ l(
1614
+ D.Trigger,
1615
+ {
1616
+ ref: n,
1617
+ className: c(
1618
+ "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
1619
+ a
1620
+ ),
1621
+ ...r,
1622
+ children: [
1623
+ t,
1624
+ /* @__PURE__ */ e(D.Icon, { asChild: !0, children: /* @__PURE__ */ e(Ae, { className: "h-4 w-4 opacity-50" }) })
1625
+ ]
1626
+ }
1627
+ ));
1628
+ Ge.displayName = D.Trigger.displayName;
1629
+ const Ze = h.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
1630
+ D.ScrollUpButton,
1631
+ {
1632
+ ref: r,
1633
+ className: c(
1634
+ "flex cursor-default items-center justify-center py-1",
1635
+ a
1636
+ ),
1637
+ ...t,
1638
+ children: /* @__PURE__ */ e(ma, { className: "h-4 w-4" })
1639
+ }
1640
+ ));
1641
+ Ze.displayName = D.ScrollUpButton.displayName;
1642
+ const Qe = h.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
1643
+ D.ScrollDownButton,
1644
+ {
1645
+ ref: r,
1646
+ className: c(
1647
+ "flex cursor-default items-center justify-center py-1",
1648
+ a
1649
+ ),
1650
+ ...t,
1651
+ children: /* @__PURE__ */ e(Ae, { className: "h-4 w-4" })
1652
+ }
1653
+ ));
1654
+ Qe.displayName = D.ScrollDownButton.displayName;
1655
+ const Xe = h.forwardRef(({ className: a, children: t, position: r = "popper", ...n }, o) => /* @__PURE__ */ e(D.Portal, { children: /* @__PURE__ */ l(
1656
+ D.Content,
1657
+ {
1658
+ ref: o,
1659
+ className: c(
1660
+ `relative ${T.OVERLAY_POPOVER} max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden custom-scrollbar rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]`,
1661
+ r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
1662
+ a
1663
+ ),
1664
+ position: r,
1665
+ onCloseAutoFocus: (i) => {
1666
+ i.preventDefault();
1667
+ },
1668
+ onEscapeKeyDown: (i) => {
1669
+ i.stopPropagation();
1670
+ },
1671
+ ...n,
1672
+ children: [
1673
+ /* @__PURE__ */ e(Ze, {}),
1674
+ /* @__PURE__ */ e(
1675
+ D.Viewport,
1676
+ {
1677
+ className: c(
1678
+ "p-1",
1679
+ r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
1680
+ ),
1681
+ children: t
1682
+ }
1683
+ ),
1684
+ /* @__PURE__ */ e(Qe, {})
1685
+ ]
1686
+ }
1687
+ ) }));
1688
+ Xe.displayName = D.Content.displayName;
1689
+ const Je = h.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
1690
+ D.Label,
1691
+ {
1692
+ ref: r,
1693
+ className: c("px-2 py-1.5 text-sm font-semibold", a),
1694
+ ...t
1695
+ }
1696
+ ));
1697
+ Je.displayName = D.Label.displayName;
1698
+ const qe = h.forwardRef(({ className: a, children: t, ...r }, n) => /* @__PURE__ */ l(
1699
+ D.Item,
1700
+ {
1701
+ ref: n,
1702
+ className: c(
1703
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1704
+ a
1705
+ ),
1706
+ ...r,
1707
+ children: [
1708
+ /* @__PURE__ */ e("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(D.ItemIndicator, { children: /* @__PURE__ */ e(Ce, { className: "h-4 w-4" }) }) }),
1709
+ /* @__PURE__ */ e(D.ItemText, { children: t })
1710
+ ]
1711
+ }
1712
+ ));
1713
+ qe.displayName = D.Item.displayName;
1714
+ const lt = h.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
1715
+ D.Separator,
1716
+ {
1717
+ ref: r,
1718
+ className: c("-mx-1 my-1 h-px bg-muted", a),
1719
+ ...t
1720
+ }
1721
+ ));
1722
+ lt.displayName = D.Separator.displayName;
1723
+ const U = "__genispace_empty_selection__", nt = typeof process < "u" && process.env.NODE_ENV === "test";
1724
+ function me(a) {
1725
+ const t = a.props.value ?? a.key ?? "";
1726
+ return String(t) || U;
1727
+ }
1728
+ function st(a) {
1729
+ return fe.toArray(a).join("");
1730
+ }
1731
+ function ue(a) {
1732
+ const t = [];
1733
+ return fe.toArray(a).forEach((r, n) => {
1734
+ if (De(r)) {
1735
+ if (r.type === "option") {
1736
+ const o = r;
1737
+ t.push(
1738
+ /* @__PURE__ */ e(qe, { value: me(o), disabled: o.props.disabled, children: o.props.label || o.props.children }, r.key ?? `${me(o)}-${n}`)
1739
+ );
1740
+ return;
1741
+ }
1742
+ if (r.type === "optgroup") {
1743
+ const o = r;
1744
+ t.push(
1745
+ /* @__PURE__ */ l(tt, { children: [
1746
+ o.props.label ? /* @__PURE__ */ e(Je, { children: o.props.label }) : null,
1747
+ ue(o.props.children)
1748
+ ] }, r.key ?? `group-${n}`)
1749
+ );
1750
+ return;
1751
+ }
1752
+ t.push(...ue(r.props.children));
1753
+ }
1754
+ }), t;
1755
+ }
1756
+ function ea(a, t) {
1757
+ let r;
1758
+ return fe.forEach(a, (n) => {
1759
+ if (!(!De(n) || r)) {
1760
+ if (n.type === "option") {
1761
+ const o = n;
1762
+ me(o) === (t || U) && (r = o.props.label || st(o.props.children));
1763
+ return;
1764
+ }
1765
+ r = ea(n.props.children, t);
1766
+ }
1767
+ }), r;
1768
+ }
1769
+ function ve(a) {
1770
+ return Array.isArray(a) ? a[0] : a;
1771
+ }
1772
+ function Lt({
1773
+ value: a,
1774
+ defaultValue: t,
1775
+ onChange: r,
1776
+ children: n,
1777
+ className: o,
1778
+ contentClassName: i,
1779
+ disabled: d,
1780
+ required: m,
1781
+ name: u,
1782
+ id: f,
1783
+ placeholder: S,
1784
+ "aria-label": v,
1785
+ "aria-describedby": g
1786
+ }) {
1787
+ if (nt)
1788
+ return /* @__PURE__ */ e(
1789
+ "select",
1790
+ {
1791
+ id: f,
1792
+ name: u,
1793
+ value: a,
1794
+ defaultValue: t,
1795
+ onChange: r,
1796
+ disabled: d,
1797
+ required: m,
1798
+ "aria-label": v,
1799
+ "aria-describedby": g,
1800
+ className: o,
1801
+ children: n
1802
+ }
1803
+ );
1804
+ const p = ve(a), b = ve(t), N = p == null ? void 0 : String(p) || U, x = b == null ? void 0 : String(b) || U, w = ea(n, N ?? x ?? "");
1805
+ return /* @__PURE__ */ l(
1806
+ Ye,
1807
+ {
1808
+ value: N,
1809
+ defaultValue: x,
1810
+ disabled: d,
1811
+ required: m,
1812
+ name: u,
1813
+ onValueChange: (_) => {
1814
+ const A = _ === U ? "" : _;
1815
+ r?.({ target: { value: A, name: u || "" }, currentTarget: { value: A, name: u || "" } });
1816
+ },
1817
+ children: [
1818
+ /* @__PURE__ */ e(Ge, { id: f, "aria-label": v, "aria-describedby": g, className: c("min-h-10", o), children: /* @__PURE__ */ e(rt, { placeholder: S || w, children: w }) }),
1819
+ /* @__PURE__ */ e(Xe, { className: i, children: ue(n) })
1820
+ ]
1821
+ }
1822
+ );
1823
+ }
1824
+ const aa = h.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
1825
+ de.Root,
1826
+ {
1827
+ ref: r,
1828
+ className: c(
1829
+ "peer h-4 w-4 shrink-0 rounded-sm border border-neutral-300 dark:border-neutral-700 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
1830
+ a
1831
+ ),
1832
+ ...t,
1833
+ children: /* @__PURE__ */ e(
1834
+ de.Indicator,
1835
+ {
1836
+ className: c("flex items-center justify-center text-current"),
1837
+ children: /* @__PURE__ */ e(Ce, { className: "h-3.5 w-3.5" })
1838
+ }
1839
+ )
1840
+ }
1841
+ ));
1842
+ aa.displayName = de.Root.displayName;
1843
+ const ot = typeof process < "u" && process.env.NODE_ENV === "test";
1844
+ function It({ checked: a, defaultChecked: t, onChange: r, className: n, disabled: o, required: i, name: d, value: m, id: u, "aria-label": f, "aria-describedby": S }) {
1845
+ return ot ? /* @__PURE__ */ e("input", { id: u, type: "checkbox", checked: a, defaultChecked: t, onChange: r, className: n, disabled: o, required: i, name: d, value: m, "aria-label": f, "aria-describedby": S }) : /* @__PURE__ */ e(
1846
+ aa,
1847
+ {
1848
+ id: u,
1849
+ checked: a,
1850
+ defaultChecked: t,
1851
+ disabled: o,
1852
+ required: i,
1853
+ name: d,
1854
+ value: m,
1855
+ "aria-label": f,
1856
+ "aria-describedby": S,
1857
+ className: n,
1858
+ onCheckedChange: (v) => {
1859
+ const g = v === !0;
1860
+ r?.({ target: { checked: g, name: d || "", value: String(m ?? "on") }, currentTarget: { checked: g, name: d || "", value: String(m ?? "on") } });
1861
+ }
1862
+ }
1863
+ );
1864
+ }
1865
+ const ta = h.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
1866
+ F.Root,
1867
+ {
1868
+ ref: r,
1869
+ className: c(
1870
+ "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
1871
+ a
1872
+ ),
1873
+ ...t
1874
+ }
1875
+ ));
1876
+ ta.displayName = F.Root.displayName;
1877
+ const ra = h.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
1878
+ F.Image,
1879
+ {
1880
+ ref: r,
1881
+ className: c("aspect-square h-full w-full", a),
1882
+ ...t
1883
+ }
1884
+ ));
1885
+ ra.displayName = F.Image.displayName;
1886
+ const la = h.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
1887
+ F.Fallback,
1888
+ {
1889
+ ref: r,
1890
+ className: c(
1891
+ "flex h-full w-full items-center justify-center rounded-full bg-muted",
1892
+ a
1893
+ ),
1894
+ ...t
1895
+ }
1896
+ ));
1897
+ la.displayName = F.Fallback.displayName;
1898
+ const Ne = /[\u4e00-\u9fff]/;
1899
+ function it(a, t) {
1900
+ const r = (a || "").trim(), n = (t || "").trim(), o = r || n;
1901
+ if (!o) return "?";
1902
+ const i = r && Ne.test(r) ? r : n && Ne.test(n) ? n : "";
1903
+ if (i)
1904
+ return Array.from(i.trim()).slice(0, 2).join("");
1905
+ const d = o.split(/\s+/).filter(Boolean);
1906
+ return d.length >= 2 ? (d[0].slice(0, 1) + d[1].slice(0, 1)).toUpperCase() : o.slice(0, 2).toUpperCase();
1907
+ }
1908
+ function dt({
1909
+ name: a,
1910
+ email: t,
1911
+ avatarUrl: r,
1912
+ sizeClassName: n = "size-6",
1913
+ className: o,
1914
+ variant: i = "default",
1915
+ shape: d = "circle"
1916
+ }) {
1917
+ const m = r != null ? String(r).trim() : "", u = !!m, f = d === "rounded" ? "rounded-lg" : "rounded-full";
1918
+ return /* @__PURE__ */ l(
1919
+ ta,
1920
+ {
1921
+ className: c(
1922
+ "shrink-0 overflow-hidden",
1923
+ f,
1924
+ i === "default" && "border border-border/50",
1925
+ i === "chatUser" && "ring-1 ring-border/50 bg-gradient-to-br from-blue-500 to-indigo-500 text-white font-semibold",
1926
+ n,
1927
+ o
1928
+ ),
1929
+ children: [
1930
+ u ? /* @__PURE__ */ e(ra, { src: m, alt: "", className: "object-cover" }) : null,
1931
+ /* @__PURE__ */ e(
1932
+ la,
1933
+ {
1934
+ className: c(
1935
+ f,
1936
+ "text-xs font-medium",
1937
+ i === "default" && "bg-accent/10",
1938
+ i === "chatUser" && "bg-transparent text-white font-semibold"
1939
+ ),
1940
+ children: it(a, t)
1941
+ }
1942
+ )
1943
+ ]
1944
+ }
1945
+ );
1946
+ }
1947
+ function jt({
1948
+ userId: a,
1949
+ profile: t,
1950
+ showAvatar: r = !1,
1951
+ className: n = "",
1952
+ emptyLabel: o = "—"
1953
+ }) {
1954
+ const i = ke(t, a, o);
1955
+ return r ? /* @__PURE__ */ l("span", { className: `inline-flex items-center gap-2 ${n}`.trim(), children: [
1956
+ /* @__PURE__ */ e(
1957
+ dt,
1958
+ {
1959
+ name: t?.name || i,
1960
+ email: t?.email,
1961
+ avatarUrl: t?.avatarUrl,
1962
+ sizeClassName: "size-6"
1963
+ }
1964
+ ),
1965
+ /* @__PURE__ */ e("span", { title: a || void 0, children: i })
1966
+ ] }) : /* @__PURE__ */ e("span", { className: n, title: a || void 0, children: i });
1967
+ }
1968
+ const ct = "w-full rounded-lg border border-neutral-200 bg-white px-3 py-2 text-sm text-neutral-900 shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500/40 dark:border-neutral-600 dark:bg-neutral-950 dark:text-neutral-50 disabled:cursor-not-allowed disabled:opacity-50";
1969
+ function $t({
1970
+ value: a,
1971
+ onChange: t,
1972
+ members: r,
1973
+ allowEmpty: n = !0,
1974
+ emptyLabel: o = "—",
1975
+ placeholder: i,
1976
+ disabled: d = !1,
1977
+ className: m,
1978
+ id: u
1979
+ }) {
1980
+ return /* @__PURE__ */ l(
1981
+ "select",
1982
+ {
1983
+ id: u,
1984
+ className: m ?? ct,
1985
+ value: a,
1986
+ disabled: d,
1987
+ onChange: (f) => t(f.target.value),
1988
+ children: [
1989
+ n ? /* @__PURE__ */ e("option", { value: "", children: i ?? o }) : null,
1990
+ r.map((f) => /* @__PURE__ */ e("option", { value: f.id, children: ke(f) }, f.id))
1991
+ ]
1992
+ }
1993
+ );
1994
+ }
1995
+ function Vt(a, t) {
1996
+ const r = t?.memberStatus ?? "ACTIVE", [n, o] = ie([]), [i, d] = ie(!!a), [m, u] = ie(null), f = sa(/* @__PURE__ */ new Map());
1997
+ Se(() => {
1998
+ if (!a) {
1999
+ d(!1);
2000
+ return;
2001
+ }
2002
+ let g = !1;
2003
+ return d(!0), u(null), f.current.clear(), a.spaces.listMemberProfiles({ status: r }).then((p) => {
2004
+ if (g) return;
2005
+ o(p);
2006
+ const b = f.current;
2007
+ for (const N of p)
2008
+ b.set(N.id, N);
2009
+ }).catch((p) => {
2010
+ g || u(p instanceof Error ? p.message : "Failed to load team members");
2011
+ }).finally(() => {
2012
+ g || d(!1);
2013
+ }), () => {
2014
+ g = !0;
2015
+ };
2016
+ }, [a, r]);
2017
+ const S = we((g) => {
2018
+ if (g)
2019
+ return f.current.get(g);
2020
+ }, []), v = we(
2021
+ async (g) => {
2022
+ if (!a) return;
2023
+ const p = [...new Set(g.filter((b) => b && !f.current.has(b)))];
2024
+ if (p.length)
2025
+ try {
2026
+ const b = await a.users.getPublicProfiles(p);
2027
+ for (const N of b)
2028
+ f.current.set(N.id, N);
2029
+ o((N) => {
2030
+ const x = new Map(N.map((w) => [w.id, w]));
2031
+ for (const w of b)
2032
+ x.set(w.id, w);
2033
+ return [...x.values()];
2034
+ });
2035
+ } catch {
2036
+ }
2037
+ },
2038
+ [a]
2039
+ );
2040
+ return oa(
2041
+ () => ({
2042
+ loading: i,
2043
+ error: m,
2044
+ members: n,
2045
+ getProfile: S,
2046
+ resolveMany: v
2047
+ }),
2048
+ [i, m, n, S, v]
2049
+ );
2050
+ }
2051
+ export {
2052
+ Et as $,
2053
+ It as A,
2054
+ C as B,
2055
+ ga as C,
2056
+ wa as D,
2057
+ Ve as E,
2058
+ ka as F,
2059
+ va as G,
2060
+ He as H,
2061
+ ee as I,
2062
+ Ba as J,
2063
+ Pa as K,
2064
+ Dt as L,
2065
+ Be as M,
2066
+ Pe as N,
2067
+ ze as O,
2068
+ Sa as P,
2069
+ Da as Q,
2070
+ Oe as R,
2071
+ s as S,
2072
+ xe as T,
2073
+ jt as U,
2074
+ Re as V,
2075
+ Ee as W,
2076
+ Ra as X,
2077
+ Me as Y,
2078
+ T as Z,
2079
+ St as _,
2080
+ Rt as a,
2081
+ Ke as a0,
2082
+ Pt as a1,
2083
+ Ot as a2,
2084
+ Ye as a3,
2085
+ Xe as a4,
2086
+ tt as a5,
2087
+ qe as a6,
2088
+ Je as a7,
2089
+ Qe as a8,
2090
+ Ze as a9,
2091
+ lt as aa,
2092
+ Ge as ab,
2093
+ rt as ac,
2094
+ At as ad,
2095
+ La as ae,
2096
+ Ct as af,
2097
+ ce as ag,
2098
+ kt as b,
2099
+ Ga as c,
2100
+ Mt as d,
2101
+ Xa as e,
2102
+ Tt as f,
2103
+ _t as g,
2104
+ yt as h,
2105
+ Lt as i,
2106
+ zt as j,
2107
+ qa as k,
2108
+ ya as l,
2109
+ $t as m,
2110
+ W as n,
2111
+ at as o,
2112
+ z as p,
2113
+ ae as q,
2114
+ te as r,
2115
+ K as s,
2116
+ le as t,
2117
+ Vt as u,
2118
+ aa as v,
2119
+ Oa as w,
2120
+ Ie as x,
2121
+ je as y,
2122
+ $e as z
2123
+ };
2124
+ //# sourceMappingURL=useUserDirectory-GU8imJ0T.js.map