@pautena/react-design-system 0.14.8 → 0.16.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 (428) hide show
  1. package/README.md +2 -2
  2. package/action/action-header.d.ts +1 -1
  3. package/action/action.d.ts +1 -1
  4. package/action/cjs/index.js +1 -1
  5. package/action/cjs/index.js.map +1 -1
  6. package/action/cjs/package.json +3 -4
  7. package/action/index.js +1 -1
  8. package/action/index.js.map +1 -1
  9. package/action/package.json +3 -4
  10. package/autocomplete/autocomplete.d.ts +1 -1
  11. package/autocomplete/cjs/index.js +1 -1
  12. package/autocomplete/cjs/index.js.map +1 -1
  13. package/autocomplete/cjs/package.json +2 -2
  14. package/autocomplete/index.js +1 -1
  15. package/autocomplete/index.js.map +1 -1
  16. package/autocomplete/package.json +2 -2
  17. package/board/board.d.ts +2 -3
  18. package/board/cjs/index.js +1 -1
  19. package/board/cjs/index.js.map +1 -1
  20. package/board/cjs/package.json +3 -4
  21. package/board/index.js +1 -1
  22. package/board/index.js.map +1 -1
  23. package/board/package.json +3 -4
  24. package/bootstrap-dialog/bootstrap-dialog.d.ts +1 -1
  25. package/bootstrap-dialog/cjs/index.js +1 -1
  26. package/bootstrap-dialog/cjs/index.js.map +1 -1
  27. package/bootstrap-dialog/cjs/package.json +3 -4
  28. package/bootstrap-dialog/index.js +1 -1
  29. package/bootstrap-dialog/index.js.map +1 -1
  30. package/bootstrap-dialog/package.json +3 -4
  31. package/bullet/bullet.d.ts +1 -1
  32. package/bullet/cjs/index.js +1 -1
  33. package/bullet/cjs/index.js.map +1 -1
  34. package/bullet/cjs/package.json +2 -2
  35. package/bullet/package.json +2 -2
  36. package/center-container/center-container.d.ts +1 -1
  37. package/center-container/cjs/index.js +1 -1
  38. package/center-container/cjs/index.js.map +1 -1
  39. package/center-container/cjs/package.json +2 -2
  40. package/center-container/package.json +2 -2
  41. package/cjs/index.js +1 -23
  42. package/cjs/index.js.map +1 -1
  43. package/confirm-dialog/cjs/index.js +1 -1
  44. package/confirm-dialog/cjs/index.js.map +1 -1
  45. package/confirm-dialog/cjs/package.json +3 -4
  46. package/confirm-dialog/confirm-dialog.d.ts +1 -1
  47. package/confirm-dialog/index.js +1 -1
  48. package/confirm-dialog/index.js.map +1 -1
  49. package/confirm-dialog/package.json +3 -4
  50. package/content/cjs/index.js +1 -1
  51. package/content/cjs/index.js.map +1 -1
  52. package/content/cjs/package.json +2 -2
  53. package/content/content.d.ts +1 -1
  54. package/content/package.json +2 -2
  55. package/content-placeholder/cjs/index.js +1 -1
  56. package/content-placeholder/cjs/index.js.map +1 -1
  57. package/content-placeholder/cjs/package.json +2 -2
  58. package/content-placeholder/content-placeholder.d.ts +1 -1
  59. package/content-placeholder/package.json +2 -2
  60. package/date-range-calendar/cjs/index.js +1 -1
  61. package/date-range-calendar/cjs/index.js.map +1 -1
  62. package/date-range-calendar/cjs/package.json +4 -4
  63. package/date-range-calendar/date-range-calendar.d.ts +1 -1
  64. package/date-range-calendar/index.js +1 -1
  65. package/date-range-calendar/index.js.map +1 -1
  66. package/date-range-calendar/package.json +4 -4
  67. package/date-range-picker/cjs/index.js +1 -1
  68. package/date-range-picker/cjs/index.js.map +1 -1
  69. package/date-range-picker/cjs/package.json +5 -5
  70. package/date-range-picker/date-range-picker.d.ts +1 -1
  71. package/date-range-picker/index.js +1 -1
  72. package/date-range-picker/index.js.map +1 -1
  73. package/date-range-picker/package.json +5 -5
  74. package/dialog/cjs/index.js +1 -1
  75. package/dialog/cjs/index.js.map +1 -1
  76. package/dialog/cjs/package.json +1 -1
  77. package/dialog/package.json +1 -1
  78. package/dialog/use-dialog.d.ts +0 -1
  79. package/drawer/cjs/index.js +1 -1
  80. package/drawer/cjs/index.js.map +1 -1
  81. package/drawer/cjs/package.json +3 -3
  82. package/drawer/drawer.d.ts +0 -1
  83. package/drawer/index.js.map +1 -1
  84. package/drawer/package.json +3 -3
  85. package/drawer-app-bar/cjs/index.js +1 -1
  86. package/drawer-app-bar/cjs/index.js.map +1 -1
  87. package/drawer-app-bar/cjs/package.json +3 -3
  88. package/drawer-app-bar/drawer-app-bar.d.ts +1 -1
  89. package/drawer-app-bar/index.js.map +1 -1
  90. package/drawer-app-bar/package.json +3 -3
  91. package/drawer-content/cjs/index.js +1 -1
  92. package/drawer-content/cjs/index.js.map +1 -1
  93. package/drawer-content/cjs/package.json +3 -4
  94. package/drawer-content/index.js +1 -1
  95. package/drawer-content/index.js.map +1 -1
  96. package/drawer-content/package.json +3 -4
  97. package/drawer-item/cjs/index.js +1 -1
  98. package/drawer-item/cjs/index.js.map +1 -1
  99. package/drawer-item/cjs/package.json +3 -4
  100. package/drawer-item/drawer-item-link.d.ts +1 -1
  101. package/drawer-item/drawer-item.d.ts +1 -1
  102. package/drawer-item/drawer-menu-item.d.ts +1 -1
  103. package/drawer-item/index.js +1 -1
  104. package/drawer-item/index.js.map +1 -1
  105. package/drawer-item/package.json +3 -4
  106. package/drawer-layout/cjs/index.js +1 -1
  107. package/drawer-layout/cjs/index.js.map +1 -1
  108. package/drawer-layout/cjs/package.json +3 -3
  109. package/drawer-layout/drawer-layout.d.ts +1 -1
  110. package/drawer-layout/index.js.map +1 -1
  111. package/drawer-layout/package.json +3 -3
  112. package/drawer-main/cjs/index.js +1 -1
  113. package/drawer-main/cjs/index.js.map +1 -1
  114. package/drawer-main/cjs/package.json +3 -3
  115. package/drawer-main/drawer-main.d.ts +1 -1
  116. package/drawer-main/index.js.map +1 -1
  117. package/drawer-main/package.json +3 -3
  118. package/drawer-provider/cjs/index.js +1 -1
  119. package/drawer-provider/cjs/index.js.map +1 -1
  120. package/drawer-provider/cjs/package.json +3 -3
  121. package/drawer-provider/drawer-context.d.ts +0 -1
  122. package/drawer-provider/drawer.provider.d.ts +1 -1
  123. package/drawer-provider/index.js.map +1 -1
  124. package/drawer-provider/package.json +3 -3
  125. package/drawer-section/cjs/index.js +1 -1
  126. package/drawer-section/cjs/index.js.map +1 -1
  127. package/drawer-section/cjs/package.json +3 -4
  128. package/drawer-section/drawer-section.d.ts +1 -1
  129. package/drawer-section/index.js +1 -1
  130. package/drawer-section/index.js.map +1 -1
  131. package/drawer-section/package.json +3 -4
  132. package/drawer-subheader/cjs/index.js +1 -1
  133. package/drawer-subheader/cjs/index.js.map +1 -1
  134. package/drawer-subheader/cjs/package.json +1 -1
  135. package/drawer-subheader/drawer-subheader.d.ts +1 -12
  136. package/drawer-subheader/package.json +1 -1
  137. package/enhanced-remote-table/cjs/index.js +1 -23
  138. package/enhanced-remote-table/cjs/index.js.map +1 -1
  139. package/enhanced-remote-table/cjs/package.json +3 -3
  140. package/enhanced-remote-table/enhanced-remote-table.d.ts +1 -1
  141. package/enhanced-remote-table/enhanced-remote-table.mock.d.ts +1 -1
  142. package/enhanced-remote-table/index.js +1 -23
  143. package/enhanced-remote-table/index.js.map +1 -1
  144. package/enhanced-remote-table/package.json +3 -3
  145. package/enhanced-table/cjs/index.js +1 -23
  146. package/enhanced-table/cjs/index.js.map +1 -1
  147. package/enhanced-table/cjs/package.json +3 -3
  148. package/enhanced-table/enhanced-table-head.d.ts +1 -1
  149. package/enhanced-table/enhanced-table.d.ts +1 -1
  150. package/enhanced-table/enhanced-table.mock.d.ts +1 -1
  151. package/enhanced-table/index.js +1 -23
  152. package/enhanced-table/index.js.map +1 -1
  153. package/enhanced-table/package.json +3 -3
  154. package/expandable-alert/cjs/index.js +1 -1
  155. package/expandable-alert/cjs/index.js.map +1 -1
  156. package/expandable-alert/cjs/package.json +3 -4
  157. package/expandable-alert/index.js +1 -1
  158. package/expandable-alert/index.js.map +1 -1
  159. package/expandable-alert/package.json +3 -4
  160. package/form-dialog/cjs/index.js +1 -1
  161. package/form-dialog/cjs/index.js.map +1 -1
  162. package/form-dialog/cjs/package.json +3 -4
  163. package/form-dialog/form-dialog.d.ts +1 -1
  164. package/form-dialog/index.js +1 -1
  165. package/form-dialog/index.js.map +1 -1
  166. package/form-dialog/package.json +3 -4
  167. package/generators/cjs/index.js +1 -1
  168. package/generators/cjs/index.js.map +1 -1
  169. package/generators/index.js.map +1 -1
  170. package/group-value-card/cjs/index.js +1 -1
  171. package/group-value-card/cjs/index.js.map +1 -1
  172. package/group-value-card/cjs/package.json +2 -2
  173. package/group-value-card/group-value-card.d.ts +1 -1
  174. package/group-value-card/group-value-card.mock.d.ts +2 -2
  175. package/group-value-card/index.js.map +1 -1
  176. package/group-value-card/package.json +2 -2
  177. package/header/cjs/index.js +1 -1
  178. package/header/cjs/index.js.map +1 -1
  179. package/header/cjs/package.json +2 -3
  180. package/header/header-title.d.ts +2 -2
  181. package/header/index.js +1 -1
  182. package/header/index.js.map +1 -1
  183. package/header/package.json +2 -3
  184. package/header-layout/cjs/index.js +1 -1
  185. package/header-layout/cjs/index.js.map +1 -1
  186. package/header-layout/cjs/package.json +3 -3
  187. package/header-layout/header-layout.d.ts +1 -1
  188. package/header-layout/index.js.map +1 -1
  189. package/header-layout/package.json +3 -3
  190. package/index.d.ts +0 -2
  191. package/index.js +1 -23
  192. package/index.js.map +1 -1
  193. package/label/cjs/index.js +1 -1
  194. package/label/cjs/index.js.map +1 -1
  195. package/label/cjs/package.json +2 -2
  196. package/label/index.js.map +1 -1
  197. package/label/label.d.ts +1 -1
  198. package/label/package.json +2 -2
  199. package/link-card/cjs/index.js +1 -1
  200. package/link-card/cjs/index.js.map +1 -1
  201. package/link-card/cjs/package.json +2 -3
  202. package/link-card/index.js +1 -1
  203. package/link-card/index.js.map +1 -1
  204. package/link-card/link-card.d.ts +1 -1
  205. package/link-card/package.json +2 -3
  206. package/list-panel/cjs/index.js +1 -1
  207. package/list-panel/cjs/index.js.map +1 -1
  208. package/list-panel/cjs/package.json +2 -3
  209. package/list-panel/index.js +1 -1
  210. package/list-panel/index.js.map +1 -1
  211. package/list-panel/list-panel-panel.d.ts +1 -1
  212. package/list-panel/list-panel.context.d.ts +0 -1
  213. package/list-panel/list-panel.d.ts +1 -1
  214. package/list-panel/list-panel.mocks.d.ts +1 -1
  215. package/list-panel/package.json +2 -3
  216. package/loading-area/cjs/index.js +1 -1
  217. package/loading-area/cjs/index.js.map +1 -1
  218. package/loading-area/cjs/package.json +2 -2
  219. package/loading-area/loading-area.d.ts +1 -1
  220. package/loading-area/package.json +2 -2
  221. package/markdown/cjs/index.js +1 -1
  222. package/markdown/cjs/index.js.map +1 -1
  223. package/markdown/cjs/package.json +1 -3
  224. package/markdown/index.js +1 -1
  225. package/markdown/index.js.map +1 -1
  226. package/markdown/markdown.d.ts +45 -7
  227. package/markdown/package.json +1 -3
  228. package/model-form/cjs/index.js +1 -1
  229. package/model-form/cjs/index.js.map +1 -1
  230. package/model-form/cjs/package.json +3 -3
  231. package/model-form/index.js.map +1 -1
  232. package/model-form/model-form-field.d.ts +1 -1
  233. package/model-form/model-form.d.ts +1 -1
  234. package/model-form/package.json +3 -3
  235. package/notification-center/cjs/index.js +1 -1
  236. package/notification-center/cjs/index.js.map +1 -1
  237. package/notification-center/cjs/package.json +2 -2
  238. package/notification-center/index.js +1 -1
  239. package/notification-center/index.js.map +1 -1
  240. package/notification-center/notification-center.context.d.ts +0 -1
  241. package/notification-center/notification-center.provider.d.ts +1 -1
  242. package/notification-center/package.json +2 -2
  243. package/object-details/cjs/index.js +1 -1
  244. package/object-details/cjs/index.js.map +1 -1
  245. package/object-details/cjs/package.json +6 -6
  246. package/object-details/index.js.map +1 -1
  247. package/object-details/object-details.d.ts +1 -1
  248. package/object-details/package.json +6 -6
  249. package/package.json +23 -33
  250. package/placeholder/cjs/index.js +1 -1
  251. package/placeholder/cjs/index.js.map +1 -1
  252. package/placeholder/cjs/package.json +2 -2
  253. package/placeholder/package.json +2 -2
  254. package/placeholder/placeholder.d.ts +1 -1
  255. package/query-container/cjs/index.js +1 -1
  256. package/query-container/cjs/index.js.map +1 -1
  257. package/query-container/cjs/package.json +2 -2
  258. package/query-container/index.js.map +1 -1
  259. package/query-container/package.json +2 -2
  260. package/query-container/query-container.d.ts +1 -1
  261. package/search-input/cjs/index.js +1 -1
  262. package/search-input/cjs/index.js.map +1 -1
  263. package/search-input/cjs/package.json +4 -4
  264. package/search-input/index.js.map +1 -1
  265. package/search-input/package.json +4 -4
  266. package/search-input/search-input.d.ts +1 -1
  267. package/select/cjs/index.js +1 -1
  268. package/select/cjs/index.js.map +1 -1
  269. package/select/cjs/package.json +2 -2
  270. package/select/index.js.map +1 -1
  271. package/select/package.json +2 -2
  272. package/select/select.d.ts +1 -1
  273. package/sign-in/cjs/index.js +1 -1
  274. package/sign-in/cjs/index.js.map +1 -1
  275. package/sign-in/cjs/package.json +2 -3
  276. package/sign-in/index.js +1 -1
  277. package/sign-in/index.js.map +1 -1
  278. package/sign-in/package.json +2 -3
  279. package/sign-in/sign-in.d.ts +1 -1
  280. package/skeleton-card/cjs/index.js +1 -1
  281. package/skeleton-card/cjs/index.js.map +1 -1
  282. package/skeleton-card/cjs/package.json +2 -2
  283. package/skeleton-card/package.json +2 -2
  284. package/skeleton-card/skeleton-card.d.ts +1 -1
  285. package/skeleton-grid/cjs/index.js +1 -1
  286. package/skeleton-grid/cjs/index.js.map +1 -1
  287. package/skeleton-grid/cjs/package.json +2 -2
  288. package/skeleton-grid/package.json +2 -2
  289. package/skeleton-grid/skeleton-grid.d.ts +1 -1
  290. package/tab-card/cjs/index.js +1 -1
  291. package/tab-card/cjs/index.js.map +1 -1
  292. package/tab-card/cjs/package.json +2 -2
  293. package/tab-card/index.js.map +1 -1
  294. package/tab-card/package.json +2 -2
  295. package/tab-card/tab-card-panel.d.ts +1 -1
  296. package/tab-card/tab-card.d.ts +1 -1
  297. package/tab-card/tab-card.dummy.d.ts +2 -2
  298. package/tab-panel/cjs/index.js +1 -1
  299. package/tab-panel/cjs/index.js.map +1 -1
  300. package/tab-panel/cjs/package.json +2 -2
  301. package/tab-panel/package.json +2 -2
  302. package/tab-panel/tab-panel.d.ts +1 -2
  303. package/tab-provider/cjs/index.js +1 -1
  304. package/tab-provider/cjs/index.js.map +1 -1
  305. package/tab-provider/cjs/package.json +1 -1
  306. package/tab-provider/package.json +1 -1
  307. package/tab-provider/tab-provider.provider.d.ts +1 -1
  308. package/table-list/cjs/index.js +1 -23
  309. package/table-list/cjs/index.js.map +1 -1
  310. package/table-list/cjs/package.json +3 -3
  311. package/table-list/index.js +1 -23
  312. package/table-list/index.js.map +1 -1
  313. package/table-list/package.json +3 -3
  314. package/table-list/table-list.d.ts +1 -1
  315. package/text-field/cjs/index.js +1 -1
  316. package/text-field/cjs/index.js.map +1 -1
  317. package/text-field/cjs/package.json +2 -2
  318. package/text-field/index.js +1 -1
  319. package/text-field/index.js.map +1 -1
  320. package/text-field/package.json +2 -2
  321. package/text-field/text-field.d.ts +1 -1
  322. package/utils/cjs/index.js +1 -1
  323. package/utils/cjs/index.js.map +1 -1
  324. package/utils/cjs/package.json +1 -1
  325. package/utils/index.js.map +1 -1
  326. package/utils/package.json +1 -1
  327. package/utils/theme.d.ts +2 -2
  328. package/value-base/cjs/index.js +1 -1
  329. package/value-base/cjs/index.js.map +1 -1
  330. package/value-base/cjs/package.json +3 -3
  331. package/value-base/index.js.map +1 -1
  332. package/value-base/package.json +3 -3
  333. package/value-base/value-edit.d.ts +3 -4
  334. package/value-boolean/cjs/index.js +1 -1
  335. package/value-boolean/cjs/index.js.map +1 -1
  336. package/value-boolean/cjs/package.json +3 -3
  337. package/value-boolean/index.js.map +1 -1
  338. package/value-boolean/package.json +3 -3
  339. package/value-boolean/value-boolean.d.ts +1 -1
  340. package/value-card/cjs/index.js +1 -1
  341. package/value-card/cjs/index.js.map +1 -1
  342. package/value-card/cjs/package.json +2 -2
  343. package/value-card/package.json +2 -2
  344. package/value-card/value-card.d.ts +1 -1
  345. package/value-content/cjs/index.js +1 -1
  346. package/value-content/cjs/index.js.map +1 -1
  347. package/value-content/cjs/package.json +2 -2
  348. package/value-content/index.js.map +1 -1
  349. package/value-content/package.json +2 -2
  350. package/value-content/value-content.d.ts +1 -2
  351. package/value-datetime/cjs/index.js +1 -1
  352. package/value-datetime/cjs/index.js.map +1 -1
  353. package/value-datetime/cjs/package.json +5 -5
  354. package/value-datetime/index.js.map +1 -1
  355. package/value-datetime/package.json +5 -5
  356. package/value-datetime/value-datetime.d.ts +1 -1
  357. package/value-image/cjs/index.js +1 -1
  358. package/value-image/cjs/index.js.map +1 -1
  359. package/value-image/cjs/package.json +2 -2
  360. package/value-image/index.js.map +1 -1
  361. package/value-image/package.json +2 -2
  362. package/value-image/value-image.d.ts +1 -1
  363. package/value-item/cjs/index.js +1 -1
  364. package/value-item/cjs/index.js.map +1 -1
  365. package/value-item/cjs/package.json +2 -2
  366. package/value-item/index.js.map +1 -1
  367. package/value-item/package.json +2 -2
  368. package/value-label/cjs/index.js +1 -1
  369. package/value-label/cjs/index.js.map +1 -1
  370. package/value-label/cjs/package.json +3 -3
  371. package/value-label/index.js +1 -1
  372. package/value-label/index.js.map +1 -1
  373. package/value-label/package.json +3 -3
  374. package/value-label/value-label.d.ts +1 -1
  375. package/value-rating/cjs/index.js +1 -1
  376. package/value-rating/cjs/index.js.map +1 -1
  377. package/value-rating/cjs/package.json +3 -3
  378. package/value-rating/index.js +1 -1
  379. package/value-rating/index.js.map +1 -1
  380. package/value-rating/package.json +3 -3
  381. package/value-rating/value-rating.d.ts +1 -1
  382. package/value-text/cjs/index.js +1 -1
  383. package/value-text/cjs/index.js.map +1 -1
  384. package/value-text/cjs/package.json +3 -3
  385. package/value-text/index.js.map +1 -1
  386. package/value-text/package.json +3 -3
  387. package/value-text/value-text.d.ts +1 -1
  388. package/hooks/cjs/index.js +0 -2
  389. package/hooks/cjs/index.js.map +0 -1
  390. package/hooks/cjs/package.json +0 -11
  391. package/hooks/index.d.ts +0 -1
  392. package/hooks/index.js +0 -2
  393. package/hooks/index.js.map +0 -1
  394. package/hooks/package.json +0 -11
  395. package/hooks/routing/index.d.ts +0 -1
  396. package/hooks/routing/routing.hooks.d.ts +0 -6
  397. package/link/cjs/index.js +0 -2
  398. package/link/cjs/index.js.map +0 -1
  399. package/link/cjs/package.json +0 -12
  400. package/link/index.d.ts +0 -1
  401. package/link/index.js +0 -2
  402. package/link/index.js.map +0 -1
  403. package/link/link.d.ts +0 -7
  404. package/link/package.json +0 -12
  405. package/lorem-ipsum-placeholder/cjs/index.js +0 -2
  406. package/lorem-ipsum-placeholder/cjs/index.js.map +0 -1
  407. package/lorem-ipsum-placeholder/cjs/package.json +0 -12
  408. package/lorem-ipsum-placeholder/index.d.ts +0 -1
  409. package/lorem-ipsum-placeholder/index.js +0 -2
  410. package/lorem-ipsum-placeholder/index.js.map +0 -1
  411. package/lorem-ipsum-placeholder/lorem-ipsum-placeholder.d.ts +0 -8
  412. package/lorem-ipsum-placeholder/package.json +0 -12
  413. package/model-router/cjs/index.js +0 -24
  414. package/model-router/cjs/index.js.map +0 -1
  415. package/model-router/cjs/package.json +0 -16
  416. package/model-router/index.d.ts +0 -2
  417. package/model-router/index.js +0 -24
  418. package/model-router/index.js.map +0 -1
  419. package/model-router/model-router.d.ts +0 -4
  420. package/model-router/model-router.types.d.ts +0 -9
  421. package/model-router/package.json +0 -16
  422. package/model-router/screens/add-screen.d.ts +0 -16
  423. package/model-router/screens/details-screen.d.ts +0 -20
  424. package/model-router/screens/index.d.ts +0 -4
  425. package/model-router/screens/list-screen.d.ts +0 -30
  426. package/model-router/screens/screens.types.d.ts +0 -31
  427. package/model-router/screens/update-screen.d.ts +0 -29
  428. package/model-router/stories/templates.d.ts +0 -21
package/index.d.ts CHANGED
@@ -33,7 +33,6 @@ export * from "./placeholder";
33
33
  export * from "./skeleton-grid";
34
34
  export * from "./skeleton-card";
35
35
  export * from "./content-placeholder";
36
- export * from "./lorem-ipsum-placeholder";
37
36
  export * from "./enhanced-table";
38
37
  export * from "./enhanced-remote-table";
39
38
  export * from "./value-text";
@@ -51,7 +50,6 @@ export * from "./header-layout";
51
50
  export * from "./notification-center";
52
51
  export * from "./tab-provider";
53
52
  export * from "./object-details";
54
- export * from "./model-router";
55
53
  export * from "./generators";
56
54
  export * from "./model-form";
57
55
  export * from "./table-list";
package/index.js CHANGED
@@ -1,24 +1,2 @@
1
- import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{alertClasses as i}from"@mui/material/Alert";import o from"@mui/material/Box";import a from"@mui/material/Collapse";import l,{iconButtonClasses as c}from"@mui/material/IconButton";import s from"@mui/material/AlertTitle";import d from"@mui/icons-material/ExpandMore";import u from"@mui/icons-material/ExpandLess";import p from"@mui/icons-material/Close";import*as m from"react";import{forwardRef as f,useState as h,createContext as y,useContext as g,useRef as b,useEffect as v,createElement as x,useId as C,useMemo as S}from"react";import w,{paperClasses as $}from"@mui/material/Paper";import T from"@mui/material/Tooltip";import k from"@mui/material/Typography";import{useTheme as E,styled as I}from"@mui/material/styles";import{blueGrey as P,grey as O}from"@mui/material/colors";import z from"@mui/material/Link";import R from"markdown-to-jsx";import A from"@mui/icons-material/ContentCopy";import j from"@mui/material/Container";import W from"@mui/material/Grid";import D from"@mui/material/List";import M from"@mui/material/ListItemButton";import N from"@mui/material/ListItemText";import{useTheme as V}from"@mui/material";import{Link as B,useLocation as L,matchPath as F,useNavigate as _,useParams as q,Routes as H,Route as U}from"react-router-dom";import Y from"@mui/material/Badge";import J from"@mui/material/Breadcrumbs";import X from"@mui/material/Tabs";import G from"@mui/material/Tab";import K from"@mui/material/Button";import Q,{circularProgressClasses as Z}from"@mui/material/CircularProgress";import ee from"@mui/material/Dialog";import te from"@mui/material/DialogTitle";import re from"@mui/material/DialogActions";import ne from"@mui/material/DialogContent";import ie from"@mui/lab/LoadingButton";import oe from"@mui/material/TextField";import ae,{drawerClasses as le}from"@mui/material/Drawer";import ce from"@mui/material/Divider";import se from"@mui/icons-material/ChevronLeft";import de from"@mui/material/ListSubheader";import ue from"@mui/material/ListItemIcon";import pe from"@mui/material/Popover";import me from"@mui/icons-material/ChevronRight";import fe from"@mui/material/Avatar";import he from"@mui/material/ListItemAvatar";import ye from"@mui/material/AppBar";import ge from"@mui/material/Toolbar";import be from"@mui/icons-material/Menu";import ve,{linearProgressClasses as xe}from"@mui/material/LinearProgress";import Ce from"@mui/material/FormControl";import Se,{inputLabelClasses as we}from"@mui/material/InputLabel";import $e from"@mui/material/Select";import Te from"@mui/material/Stack";import ke,{autocompleteClasses as Ee}from"@mui/material/Autocomplete";import Ie from"@mui/material/FormHelperText";import Pe,{outlinedInputClasses as Oe}from"@mui/material/OutlinedInput";import ze from"@mui/material/InputAdornment";import{isAfter as Re,isSameDay as Ae,startOfWeek as je,endOfWeek as We,format as De}from"date-fns";import Me from"@mui/icons-material/Event";import{DateCalendar as Ne,PickersDay as Ve,DesktopDatePicker as Be,TimePicker as Le,DateTimePicker as Fe}from"@mui/x-date-pickers";import{isBefore as _e}from"date-fns/esm";import qe from"@mui/material/DialogContentText";import He from"@mui/material/Skeleton";import{loremIpsum as Ue}from"lorem-ipsum";import Ye from"@mui/material/TableContainer";import Je from"@mui/material/TableBody";import Xe from"@mui/material/Table";import Ge from"@mui/material/TableCell";import Ke from"@mui/material/TableRow";import Qe from"@mui/icons-material/Search";import Ze from"@mui/material/TableSortLabel";import et from"@mui/material/TableHead";import tt from"@mui/icons-material/Check";import rt from"@mui/icons-material/Clear";import nt from"@mui/icons-material/Edit";import it from"@mui/material/Switch";import{DatePicker as ot}from"@mui/x-date-pickers/DatePicker";import{DateTimePicker as at}from"@mui/x-date-pickers/DateTimePicker";import{TimePicker as lt}from"@mui/x-date-pickers/TimePicker";import ct from"@mui/material/Rating";import st from"@mui/icons-material/ReportProblem";import dt from"@mui/material/Snackbar";import{DataGrid as ut}from"@mui/x-data-grid";import pt from"@mui/material/FormControlLabel";import mt from"@mui/material/Checkbox";import ft from"@mui/material/MenuItem";import ht from"@mui/material/Menu";import yt from"@mui/icons-material/MoreVert";const gt={overrides:{h1:{component:k,props:{gutterBottom:!0,variant:"h5"}},h2:{component:k,props:{gutterBottom:!0,variant:"h6"}},h3:{component:k,props:{gutterBottom:!0,variant:"subtitle1"}},h4:{component:k,props:{gutterBottom:!0,variant:"caption",paragraph:!0}},p:{component:k,props:{paragraph:!0}},a:{component:z},li:{component:"li"}}},bt=({content:t,options:r=gt})=>e(R,{options:r,children:t}),vt=({markdown:r,content:n,spacing:i=0,children:a,sx:c})=>{const{spacing:s,typography:d}=E();let u,p;r?u=r||"":Array.isArray(n)?(p=n.map(((t,r)=>e(k,{sx:{pb:i},children:t},r))),u=n.join("\n")):(p=e(k,{children:n}),u=n||"");const m=r&&e(bt,{content:r});return e(w,{sx:{position:"relative",pl:2,pr:4,py:1,backgroundColor:P[800],color:"white",...c},children:t(o,{display:"flex",flexDirection:"row",children:[e(o,{width:1,children:a||m||p}),e(o,{sx:{position:"absolute",top:s(.5),right:s(.5)},children:u&&e(l,{"aria-label":"copy board content",color:"inherit",onClick:()=>navigator.clipboard.writeText(u),children:e(T,{title:"Copy",children:e(A,{sx:{fontSize:d.pxToRem(18)}})})})})]})})},xt={[`& .${i.message}`]:{width:1}},Ct=f((({severity:r,iconMapping:i,title:c,message:m,metadata:f,metadataComponent:y,onClose:g,sx:b={}},v)=>{const[x,C]=h(!1);return e(n,{ref:v,severity:r,iconMapping:i,onClose:g,action:t(o,{display:"flex",flexDirection:"column",children:[e(l,{color:"inherit",onClick:g,children:e(p,{fontSize:"small"})}),f&&e(l,{color:"inherit",onClick:()=>C((e=>!e)),children:e(x?u:d,{fontSize:"small"})})]}),sx:{...xt,...b},children:t(o,{sx:{w:1},children:[c&&e(s,{children:c}),m,f&&e(a,{in:x,sx:{mt:2},children:e(vt,{content:f,children:y})})]})})})),St=({children:t})=>e(j,{component:"main",sx:{py:3,flexGrow:1},children:t});function wt({children:t,centerVertical:r=!0,centerHorizontal:n=!0,sx:i}){return e(o,{width:1,height:1,sx:{...i,display:"flex",flexDirection:"column",justifyContent:r?"center":"flex-start",alignItems:n?"center":"flex-start"},children:t})}const $t=(e,t)=>new Array(e).fill(t),Tt=e=>{const t=Math.floor(Math.random()*e.length);return{index:t,item:e[t]}},kt=({lightWeight:e=100,darkWeight:t=900}={})=>{const{palette:r}=V();return"light"===r.mode?r.grey[e]:r.grey[t]},Et=(e=12)=>{const t=(t,r,n)=>{const i=t[r];return t[r]+=n,t[r]>e?(t[r]=n,!1):(t[r]==e&&(t[r]=0),i>0)};return{xs:0,sm:0,md:0,lg:0,xl:0,increment:function({xs:e=0,sm:r=0,md:n=0,lg:i=0,xl:o=0}){const a=r||e,l=n||a,c=i||l,s=o||c;return{xs:t(this,"xs",e),sm:t(this,"sm",a),md:t(this,"md",l),lg:t(this,"lg",c),xl:t(this,"xl",s)}}}},It=e=>{const t=new FormData(e.currentTarget),r={};return t.forEach(((e,t)=>{r[t]=e})),r},Pt=y(void 0),Ot=Pt.Provider,zt=()=>g(Pt),Rt=f(((t,r)=>{const{href:n,...i}=t;return e(B,{ref:r,to:n,...i})})),At=f(((t,r)=>e(z,{...t,component:Rt}))),jt=(e,t,{from:r,to:n})=>{const i=b(),o=_();v((()=>{i.current===r&&t===n&&o(e),i.current=t}),[t])},Wt=e=>{const{pathname:t}=L();for(let r=0;r<e.length;r+=1){const n=e[r],i=F(n,t);if(null!==i)return i}return null},Dt=({items:r,defaultSelectedItem:n,colBreakpoint:i=3,listMode:o="panel",children:a,onSelectedItemChange:l=(()=>null)})=>{const c=r.map((e=>e.path)).filter(Boolean),s=Wt(c),d=kt(),{palette:u,typography:p}=V(),[m,f]=h(n);return e(Ot,{value:m,children:t(W,{container:!0,bgcolor:d,height:1,children:[e(W,{item:!0,xs:i,pl:1,height:1,children:e(D,{sx:{height:1,overflowY:"auto"},children:r.map((({id:t,text:r,tooltip:n,path:i,href:a})=>{const c="panel"===o?t===m:s?.pattern?.path===i,d=x(M,{..."navigation"===o?{component:At,href:a}:{},key:t,dense:!0,selected:c,onClick:()=>(e=>{f(e),l(e)})(t),"aria-label":r,sx:{backgroundColor:c?`${u.grey[300]} !important`:void 0}},e(N,{primary:r,primaryTypographyProps:{fontWeight:c?p.fontWeightMedium:void 0,color:c?p.body1.color:O[600]}}));return n?e(T,{title:n,enterDelay:1500,placement:"right",children:d},t):d}))})}),e(W,{item:!0,xs:12-i,pl:1,py:1,pr:1,children:e(w,{elevation:0,sx:{width:1,height:1,backgroundColor:u.background.paper},children:a})})]})})},Mt={root:"RdsBullet-root"},Nt=({variant:t="primary",sx:r})=>e(Y,{color:t,variant:"dot",className:Mt.root,role:"bullet","aria-describedby":t,sx:r}),Vt={root:"RdsLabel-root"},Bt=({text:t,color:r,variant:n="default",textTransform:i="capitalize",sx:a})=>{const{palette:l,typography:c}=E(),s={default:"light"===l.mode?l.grey[100]:l.grey[900],primary:l.primary.light,secondary:l.secondary.light,info:l.info.light,warning:l.warning.light,error:l.error.light,success:l.success.light},d={default:l.getContrastText(s.default),primary:l.primary.contrastText,secondary:l.secondary.contrastText,info:l.info.contrastText,warning:l.warning.contrastText,error:l.error.contrastText,success:l.success.contrastText},u=r||s[n],p=r?l.getContrastText(r):d[n];return e(o,{height:24,minWidth:22,display:"inline-flex",justifyContent:"center",alignItems:"center",bgcolor:u,color:p,fontSize:c.caption.fontSize,fontWeight:c.fontWeightBold,lineHeight:0,textTransform:i,whiteSpace:"nowrap",borderRadius:2,role:"label","aria-label":`${t} ${n} label`,py:0,px:1,sx:{cursor:"default",...a},children:t})},Lt=y([0,()=>null]),Ft=Lt.Provider,_t=()=>g(Lt),qt=({children:t,initialValue:r=0})=>{const n=h(r);return e(Ft,{value:n,children:t})},Ht=({loading:t,children:n})=>{const{typography:i}=E();return t?e(Q,{color:"inherit",size:i.h4.fontSize,"aria-label":"title loading"}):"string"==typeof n?e(k,{variant:"h4",role:"heading","aria-level":1,children:n}):e(r,{children:n})},Ut=({loading:t,children:n})=>{const{typography:i}=E();return t?e(Q,{color:"inherit",size:i.body1.fontSize,"aria-label":"subtitle loading"}):"string"==typeof n?e(k,{variant:"body1",role:"heading","aria-level":2,children:n}):e(r,{children:n})},Yt=({title:r="",loadingTitle:n,subtitle:i,loadingSubtitle:a,preset:l="default",actionsVariant:c="outlined",breadcrumbs:s,actions:d,tabs:u,tabsMode:p="panel",navigationButton:m})=>{const f=(u||[]).map((e=>e.path)).filter(Boolean),{palette:h}=E(),y=kt(),[g,b]=_t(),v=Wt(f),x={default:y,primary:h.primary.main,secondary:h.secondary.main,inherit:"inherit",transparent:"transparent"},C=x[l],S={default:h.getContrastText(x.default),primary:h.primary.contrastText,secondary:h.secondary.contrastText,inherit:"inherit",transparent:h.text.primary}[l],w="panel"===p?g:v?.pattern?.path;return e(o,{bgcolor:C,color:S,children:t(j,{children:[t(o,{sx:{py:3,display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[t(o,{children:[m&&e(K,{href:m.href,size:"small",color:"inherit",LinkComponent:At,startIcon:m.icon,sx:{mb:1},children:m.text}),s?.length&&e(J,{color:"inherit",separator:"›","aria-label":"breadcrumb",sx:{marginTop:1},children:s.map((({id:t,link:r,text:n})=>e(At,{underline:"hover",color:"inherit",href:r,variant:"body2",role:"link",children:n},t)))}),e(Ht,{loading:n,children:r}),(i||a)&&e(Ut,{loading:a,children:i})]}),d&&e(o,{children:d.map((({disabled:t,id:r,href:n,onClick:i,text:o},a)=>e(K,{component:n?At:"button",role:"button",color:"inherit",disabled:t,variant:c,size:"small",href:n,onClick:i,sx:{mr:a!=d.length-1?1:0},children:o},r)))})]}),u&&e(X,{value:w,textColor:"inherit",onChange:"panel"===p?(e,t)=>b(t):void 0,children:u.map((({id:t,label:r,disabled:n,path:i,href:o})=>{const a={label:r,disabled:n};return e(G,"panel"===p?{...a}:{...a,component:At,href:o,value:i},t)}))})]})})},Jt=({open:r,title:n,component:i,componentProps:a={},disabled:c,disableAccept:s,disableCancel:d,actions:u=[],children:m,loading:f,cancelable:h,callCloseWhenCancel:y=!0,acceptable:g,acceptText:b="Accept",cancelText:v="Cancel",onAccept:x,onCancel:C=(()=>null),onClose:S,acceptType:w="button"})=>{const $=u.length>0||g||h;return t(ee,{open:r,onClose:S,children:[t(te,{sx:{display:"flex",alignItems:"center"},children:[n,f&&!g&&e(Q,{size:20,sx:{ml:2,color:e=>e.palette.grey[500]}}),e(l,{disabled:c,"aria-label":"close",onClick:S,sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:e(p,{})})]}),t(o,{component:i,...a,children:[e(ne,{dividers:!0,children:m}),$&&t(re,{children:[u.map((({id:t,text:r,type:n="button",onClick:i,color:o="primary"})=>e(K,{type:n,disabled:c,onClick:i,color:o,children:r},t))),h&&e(K,{color:"error",disabled:c||d,onClick:()=>{C(),y&&S()},children:v}),g&&e(ie,{type:w,loading:f,disabled:c||s,onClick:x,children:b})]})]})]})},Xt=({open:r,title:n,loading:i,disabled:o,confirmText:a="Confirm",cancelText:l="Cancel",passphrase:c,children:s,onConfirm:d,onCancel:u})=>{const[p,m]=h("");return t(Jt,{title:n,loading:i,disabled:i||o,disableAccept:!(!c||p===c),open:r,onClose:u,acceptable:!0,cancelable:!0,callCloseWhenCancel:!1,acceptText:a,cancelText:l,onCancel:u,onAccept:d,children:[s,c&&e(oe,{size:"small",fullWidth:!0,value:p,onChange:e=>m(e.target.value),placeholder:c})]})},Gt=({open:t,title:r,loading:n,disabled:i,submitText:o="Submit",cancelText:a="Cancel",children:l,onSubmit:c,onCancel:s})=>e(Jt,{component:"form",componentProps:{onSubmit:e=>{e.preventDefault(),c(It(e))}},title:r,loading:n,disabled:n||i,open:t,onClose:s,callCloseWhenCancel:!1,cancelable:!0,acceptable:!0,cancelText:a,onCancel:s,acceptText:o,acceptType:"submit",children:l}),Kt=(e=!1)=>{const[t,r]=h(e);return{isOpen:t,open:()=>r(!0),close:()=>r(!1),setIsOpen:r}},Qt=y(void 0),Zt=new Error("DrawerContext.Provider is required and was undefined"),er=()=>{const e=g(Qt);if(void 0===e)throw Zt;return e},tr=e=>({width:240,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),rr=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(7)} + 1px)`,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(8)} + 1px)`}}),nr=I("div")((({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",padding:e.spacing(0,1),...e.mixins.toolbar}))),ir={temporary:!0,mini:!0,persistent:!0,clipped:!1},or={temporary:"temporary",mini:"permanent",clipped:"permanent",persistent:"persistent"},ar=()=>({}),lr={mini:(e,t)=>({boxSizing:"border-box",[`& .${$.root}`]:{zIndex:t.zIndex.drawer-1}}),temporary:ar,clipped:ar,persistent:ar},cr=({children:r,...n})=>{const i=E(),{state:o,switchState:a,underAppBar:c,close:s,drawerWidth:d,variant:u}=er(),p={width:d,flexShrink:0,whiteSpace:"nowrap",..."open"===o&&{...tr(i),[`& .${le.paper}`]:tr(i)},..."open"!==o&&{...rr(i),[`& .${le.paper}`]:rr(i)},...lr[u](o,i)};return t(ae,{open:"open"===o,variant:or[u],role:"menu","aria-hidden":"close"===o,onClose:s,sx:p,...n,children:[e(nr,{children:!c&&ir[u]&&e(l,{onClick:a,children:e(se,{})})}),e(ce,{}),r]})},sr={temporary:"close",mini:"collapse",clipped:"open",persistent:"close"},dr={temporary:["close","open"],mini:["collapse","open"],clipped:["open","open"],persistent:["close","open"]},ur=({children:t,initialState:r,variant:n="temporary",drawerWidth:i=240,underAppBar:o=!1,selectedItemId:a,onStateChange:l=(()=>null)})=>{const[c,s]=h(r||sr[n]),d=e=>{l(e),s(e)};return e(Qt.Provider,{value:{state:c,variant:n,selectedItemId:a,underAppBar:o,drawerWidth:i,switchState:()=>d(dr[n]["open"===c?0:1]),collapse:()=>d("collapse"),close:()=>d("close"),open:()=>d("open"),setState:s},children:t})},pr=I(de,{shouldForwardProp:e=>"size"!==e})((({size:e,theme:t})=>({lineHeight:"small"===e?t.typography.pxToRem(40):void 0}))),mr=(e,t)=>({color:t?e.palette.primary.main:void 0,fontWeight:t?e.typography.fontWeightBold:e.typography.fontWeightMedium}),fr=I(At)((({theme:e})=>({color:e.palette.text.primary}))),hr={minWidth:0,justifyContent:"center",marginRight:"auto"},yr=({text:r,icon:n,avatar:i,label:o,bullet:a,href:l,selected:c,size:s="medium",level:d,sx:u})=>{const{state:p}=er(),m=E(),{color:f,fontWeight:h}=mr(m,c);return t(M,{LinkComponent:fr,dense:"small"===s,"aria-label":r,href:l,selected:c,sx:{...u,pl:"open"===p?m.spacing(2+1.5*d):void 0,..."collapse"===p&&{paddingHorizontal:m.spacing(2.5),justifyContent:"center"}},children:[n&&e(ue,{sx:{color:f,..."collapse"===p&&0===d&&hr},children:n}),i&&e(he,{sx:{..."collapse"===p&&0===d&&hr},children:e(fe,{alt:i.alt,src:i.src,sx:{..."small"===s&&{width:24,height:24},..."collapse"===p&&{width:30,height:30}}})}),e(N,{disableTypography:!0,primary:r,sx:{color:f,fontWeight:h,opacity:"collapse"===p&&0===d?0:void 0}}),o&&"open"===p&&e(Bt,{text:o.text,variant:o.variant,sx:{ml:2}}),a&&"open"===p&&e(Nt,{variant:a.variant,sx:{ml:2}})]})},gr=({item:t,size:r="medium",level:n=0})=>{const{selectedItemId:i}=er();if("items"in t){const{id:o,text:a,icon:l,items:c}=t,s=c.some((e=>e.id===i));return e(br,{size:r,selected:o===i||s,text:a,icon:l,items:c,level:n})}{const{id:o,text:a,icon:l,avatar:c,label:s,bullet:d,href:u}=t;return e(yr,{selected:o===i,size:r,text:a,icon:l,avatar:c,label:s,bullet:d,href:u,level:n})}},br=({text:n,icon:i,selected:o,items:l,size:c="medium",level:s,sx:u={}})=>{const{state:p}=er(),m=b(null),{palette:f,spacing:y}=E(),[g,v]=h(!1),{color:x,fontWeight:C}=mr(E(),o),S=e(D,{component:"div",disablePadding:!0,children:l.map((t=>e(gr,{level:s+1,item:t,size:c},t.id)))}),w="collapse"===p&&0===s?{position:"absolute",right:0}:{};return t(r,{children:[t(M,{ref:m,selected:o,"aria-label":n,onClick:()=>v((e=>!e)),dense:"small"===c,sx:{...u,pl:"open"===p?y(2+1.5*s):void 0,backgroundColor:g?f.action.hover:void 0},children:[i&&e(ue,{sx:{color:x},children:i}),e(N,{disableTypography:!0,primary:n,sx:{color:x,fontWeight:C,opacity:"collapse"===p&&0===s?0:void 0}}),e(g&&"open"===p?d:me,{sx:[{color:x,ml:2},w]})]}),"open"===p?e(a,{in:g,timeout:"auto",unmountOnExit:!0,"aria-label":`${n} collapse submenu`,children:S}):e(pe,{open:g,PaperProps:{elevation:0,variant:"outlined"},"aria-label":`${n} popover submenu`,anchorEl:m.current,onClose:()=>v(!1),anchorOrigin:{vertical:"top",horizontal:"right"},children:S})]})},vr=({title:n,items:i,size:o="medium"})=>{const{state:a}=er(),{spacing:l}=E();return t(r,{children:[n&&"open"===a&&e(pr,{size:o,role:"heading",children:n}),e(D,{sx:{paddingTop:"small"===o?l(0):void 0,paddingY:"collapse"===a?0:void 0},children:i.map((t=>e(gr,{item:t,size:o},t.id)))})]})},xr=({nav:{items:t},size:n="medium"})=>e(r,{children:t.map((({title:t,items:r},i)=>e(vr,{title:t,items:r,size:n},i)))}),Cr={temporary:!1,mini:!0,persistent:!0,clipped:!0},Sr={temporary:()=>!0,mini:e=>"open"!==e,persistent:()=>!0,clipped:()=>!1},wr=({title:r,sx:n,children:i,...o})=>{const a=E(),{state:c,variant:s,switchState:d,drawerWidth:u,underAppBar:p}=er(),m=Cr[s]&&!p&&{transition:a.transitions.create(["width","margin"],{easing:a.transitions.easing.sharp,duration:a.transitions.duration.leavingScreen}),..."open"===c&&{marginLeft:u,width:`calc(100% - ${u}px)`,transition:a.transitions.create(["width","margin"],{easing:a.transitions.easing.sharp,duration:a.transitions.duration.enteringScreen})}}||{};return e(ye,{position:p?"fixed":void 0,...o,sx:{...n,...m,zIndex:e=>e.zIndex.drawer+(p?1:0)},children:t(ge,{children:[e(l,{color:"inherit","aria-label":"open drawer",onClick:d,edge:"start",sx:{marginRight:5,display:Sr[s](c)?void 0:"none"},children:e(be,{})}),r&&e(k,{variant:"h6",component:"h1",role:"heading","aria-level":1,noWrap:!0,children:r}),i]})})},$r={temporary:!1,mini:!0,clipped:!0,persistent:!0},Tr=I("div")((({theme:e})=>{const{spacing:t}=E(),{drawerWidth:r,state:n,variant:i}=er();return{marginLeft:$r[i]?"open"===n?r:"collapse"===n?t(8):0:0,transition:e.transitions.create("margin",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})}})),kr=({children:r})=>t(Tr,{children:[e(nr,{}),r]}),Er=()=>e(o,{width:1,height:1,display:"flex",justifyContent:"center",alignItems:"center",children:e(Q,{})});function Ir({fetching:r=!1,loading:i=!1,error:a,success:l,children:c}){const d=Array.isArray(r)?r.some((e=>e)):r;return(Array.isArray(i)?i.some((e=>e)):i)?e(Er,{}):a?t(n,{severity:"error",role:"alert","aria-describedby":"error",children:[a.name&&e(s,{role:"heading",children:a.name}),a.message]}):t(o,{children:[l&&t(n,{severity:"success",role:"alert","aria-describedby":"success",sx:{mb:2},children:[l.name&&e(s,{role:"heading",children:l.name}),l.message]}),d&&e(ve,{sx:{width:1,mb:1}}),c]})}const Pr={small:15,medium:20},Or=({label:r,value:n,loading:i=!1,fetching:a=!1,size:l="medium",fullWidth:c=!1,color:s,children:d,onChange:u})=>{const p=C(),m=I(Ce)((()=>s?{label:{color:s},".MuiOutlinedInput-notchedOutline":{borderColor:`${s} !important`},".MuiInputBase-root":{color:s},".MuiSelect-icon":{fill:s}}:{}));return t(m,{fullWidth:c,children:[e(Se,{id:p,children:r}),e($e,{labelId:p,id:p,value:n,label:r,onChange:u,disabled:a,size:l,renderValue:r=>a?e(wt,{centerVertical:!0,centerHorizontal:!0,children:e(Q,{color:"inherit",size:Pr[l]})}):i?t(o,{display:"flex",flexDirection:"column",children:[r,e(ve,{color:"inherit",sx:{position:"absolute",left:0,right:0,bottom:0}})]}):r,children:d})]})},zr=({title:i,subtitle:a,loading:l,error:c,onSubmitSignIn:s})=>{const[d,u]=h(""),[p,m]=h("");return t(r,{children:[t(o,{marginBottom:2,children:[e(k,{component:"h1",variant:"h4",children:i}),e(k,{variant:"body1",children:a})]}),t(o,{component:"form",onSubmit:function(e){e.preventDefault(),u(""),m("");const t=new FormData(e.currentTarget),r=t.get("email")?.toString(),n=t.get("password")?.toString();r||u("Please fill out this field"),n||m("Please fill out this field"),r&&n&&s(r,n)},children:[c&&e(Te,{width:"100%",marginTop:1,children:e(n,{variant:"filled",severity:"error",children:c.message})}),e(oe,{margin:"normal",fullWidth:!0,id:"email",label:"Email Address",name:"email",autoComplete:"email",autoFocus:!0,disabled:l,type:"email",inputProps:{role:"input"},error:!!d,helperText:d}),e(oe,{margin:"normal",fullWidth:!0,role:"input",name:"password",label:"Password",type:"password",id:"password",disabled:l,autoComplete:"current-password",inputProps:{role:"input"},error:!!p,helperText:p}),e(ie,{type:"submit",fullWidth:!0,variant:"contained",loading:l,disabled:l,role:"button",sx:{mt:2},children:"Sign In"})]})]})};let Rr=0;const Ar=m["useId".toString()];function jr(e){if(void 0!==Ar){const t=Ar();return null!=e?e:t}return function(e){const[t,r]=m.useState(e),n=e||t;return m.useEffect((()=>{null==t&&(Rr+=1,r(`mui-${Rr}`))}),[t]),n}(e)}const Wr=({id:r,label:n,InputLabelProps:i,InputProps:o,fetching:a,loading:l,helperText:s,hexColor:d,size:u,fullWidth:p,sx:m,...f})=>{const h=jr(r),y=s&&h?`${h}-helper-text`:void 0,g=n&&h?`${h}-label`:void 0,b=d?{[`& .${Oe.notchedOutline}`]:{borderColor:`${d} !important`},[`& .${we.root}`]:{color:d},[`& .${Oe.input}`]:{color:d},[`& .${Z.root}`]:{color:d},[`& .${xe.bar}`]:{backgroundColor:d},[`& .${Ee.endAdornment} .${c.root}`]:{color:d}}:{};return t(Ce,{sx:b,fullWidth:p,children:[e(Se,{size:"small"===u?"small":"normal",id:g,htmlFor:h,...i,children:n}),e(Pe,{...o,id:h,label:n,size:u,fullWidth:p,endAdornment:t(ze,{position:"end",children:[o?.endAdornment,l?e(Q,{color:"inherit",size:20,sx:{ml:1}}):null]}),sx:m,...f}),a&&!l&&e(ve,{color:"inherit",sx:{position:"absolute",left:0,right:0,bottom:0}}),s&&e(Ie,{id:y,children:s})]})},Dr=t=>{const{label:r,loading:n,fetching:i,options:o,helperText:a,color:l,onChangeValue:c=(()=>null),sx:s,...d}=t;return e(ke,{loading:n||i,options:i?[]:o,onChange:(e,t)=>c(t),...d,renderInput:t=>e(Wr,{...t,label:r,fullWidth:!0,fetching:i,loading:n,hexColor:l,helperText:a}),sx:s})},Mr=I(o,{shouldForwardProp:e=>"dayIsBetween"!==e&&"isFirstDay"!==e&&"isLastDay"!==e&&"isStartOfWeek"!==e&&"isEndOfWeek"!==e})((({theme:e,dayIsBetween:t,isFirstDay:r,isLastDay:n})=>({...(r||n||t)&&{borderRadius:0,backgroundColor:`${e.palette.primary.light}40`,margin:0},...r&&{borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%"},...n&&{borderTopRightRadius:"50%",borderBottomRightRadius:"50%"}}))),Nr=t=>{const{day:r,dateRange:n,...i}=t;if(null==n)return e(Ve,{day:r,...i});const[o,a]=n,l=!!a&&Re(r,o)&&_e(r,a),c=Ae(r,o),s=!!a&&Ae(r,a),d=Ae(r,je(r)),u=Ae(r,We(r));return e(Mr,{dayIsBetween:l,isFirstDay:c||l&&d,isLastDay:s||l&&u,"aria-label":De(r,"yyyy-MM-dd"),"aria-selected":l||c||s,role:"gridcell",children:e(Ve,{...i,day:r,selected:c||s})})},Vr=({defaultValue:t,onValueChange:r})=>{const[n,i]=h(t),[o,a]=h(0),l=(e,t,n)=>{i(e),r(e,t),a(n)};return e(Ne,{value:null,onChange:e=>{if(e)return 1===o&&e<n[0]||0===o&&n[1]&&e>n[1]?l([e,void 0],0,1):void l([0===o?e:n[0],1===o?e:n[1]],o,0===o?1:0)},slots:{day:Nr},slotProps:{day:{dateRange:n}},"aria-label":"calendar range picker"})},Br=({defaultValue:n,format:i,label:o,fullWidth:c,onValueChange:s,size:d="medium"})=>{const[u,p]=h(!1),[m,f]=h(n);return t(r,{children:[e(oe,{label:o,fullWidth:c,size:d,value:`${De(m[0],i)} - ${m[1]?De(m[1],i):i.toUpperCase()}`,InputProps:{endAdornment:e(ze,{position:"end",children:e(l,{onClick:()=>p((e=>!e)),"aria-label":"open calendar",children:e(Me,{})})})}}),e(w,{children:e(a,{in:u,"aria-label":"calendar collapse",children:e(Vr,{defaultValue:n,onValueChange:(e,t)=>{f(e),s(e,t),p(t<1)}})})})]})},Lr=({title:t,titleVariant:r="h4",variant:n="primary"})=>{const{palette:i}=E(),o={primary:void 0,error:"error",warning:i.warning.main,success:i.success.main};return e(k,{color:o[n],variant:r,pb:1,borderBottom:1,borderColor:"grey.300",children:t})},Fr=({variant:n="primary",title:i,titleVariant:o="h4",description:a,descriptionVariant:l="body2",buttonText:c,helperText:s,helperTextVariant:d="caption",confirmable:u,passphrase:p,confirmTitle:m="",confirmDescription:f="",onAction:h})=>{const{isOpen:y,open:g,close:b}=Kt();return t(r,{children:[t(W,{container:!0,spacing:1,children:[e(W,{item:!0,xs:12,mb:2,children:e(Lr,{title:i,titleVariant:o})}),a&&e(W,{item:!0,xs:12,children:e(k,{variant:l,children:a})}),e(W,{item:!0,xs:12,mt:1,children:e(K,{color:n,variant:"contained",onClick:()=>{u?g():h()},children:c})}),s&&e(W,{item:!0,xs:12,children:e(k,{variant:d,children:s})})]}),e(Xt,{open:y,title:m,passphrase:p,onCancel:b,onConfirm:()=>{h()},children:e(qe,{children:f})})]})},_r=y([0,()=>null]),qr=_r.Provider,Hr=I((t=>e(X,{...t,TabIndicatorProps:{children:e("span",{className:"MuiTabs-indicatorSpan"})}})))((({theme:e})=>({minHeight:e.spacing(5),"& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{maxWidth:40,width:"100%",backgroundColor:e.palette.primary.main}}))),Ur=I(G)((({theme:e})=>({textTransform:"none",fontWeight:e.typography.fontWeightRegular,marginRight:e.spacing(1),color:e.palette.text.secondary,paddingTop:0,paddingBottom:0,minHeight:e.spacing(5),"&.Mui-selected":{color:e.palette.text.secondary,fontWeight:e.typography.fontWeightBold}}))),Yr=({children:r,tabs:n,initialTab:i=0,onChangeTab:a=(()=>null)})=>{const l=kt(),[c,s]=h(i);return e(qr,{value:[c,s],children:t(w,{variant:"outlined",children:[e(o,{bgcolor:l,children:e(Hr,{value:c,onChange:(e,t)=>{s(t),a(n[t],t)},children:n.map((({text:t,icon:r})=>e(Ur,{iconPosition:"start",disableRipple:!0,label:t,icon:r},t)))})}),r]})})},Jr=({index:t,children:r,sx:n})=>{const[i]=g(_r);let a=i===t;return Array.isArray(t)&&(a=t.includes(i)),a?e(o,{sx:n,children:r}):null};function Xr({children:t,index:r}){const[n]=_t();let i=n===r;return Array.isArray(r)&&(i=r.includes(n)),e("div",{role:"tabpanel",hidden:!i,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,children:i&&e(o,{sx:{p:3},children:t})})}const Gr=({title:r,subtitle:n,icon:i,iconSize:a=200,actions:l})=>t(o,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",children:[i&&i({size:a,color:"primary"}),e(k,{variant:"h4",role:"heading","aria-level":1,children:r}),e(k,{variant:"subtitle1",role:"heading","aria-level":2,sx:{mt:2},children:n}),l&&e(o,{sx:{pt:2},children:l.map((({id:t,text:r,href:n,onClick:i},o)=>e(K,{role:"button",variant:"contained",href:n,onClick:i,sx:{mr:o<l.length-1?2:0},children:r},t)))})]}),Kr=({width:r="100%",animation:n=!1})=>t(o,{width:r,children:[e(He,{animation:n,variant:"rectangular",height:118}),e(He,{animation:n,variant:"rectangular",height:16,sx:{my:1}}),e(He,{animation:n,variant:"rectangular",width:"80%",height:16})]}),Qr=({size:t=20})=>e(W,{container:!0,spacing:2,children:$t(t,0).map(((t,r)=>e(W,{item:!0,xs:4,children:e(Kr,{width:1})},r)))}),Zr=({size:r=20,children:n,p:i})=>t(j,{component:"main",sx:{p:i},"data-testid":"content-placeholder-test",children:[n,e(Qr,{size:r})]}),en=({count:t=3,units:r="paragraph",variant:n="body1"})=>e(k,{variant:n,children:Ue({count:t,units:r})});function tn(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...r){return e(...r)||t(...r)}}var rn,nn={exports:{}},on={exports:{}},an={};var ln,cn,sn,dn,un,pn,mn,fn,hn,yn,gn,bn,vn,xn,Cn={};
2
- /** @license React v16.13.1
3
- * react-is.development.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */function Sn(){return cn||(cn=1,e=on,"production"===process.env.NODE_ENV?e.exports=function(){if(rn)return an;rn=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case c:case s:case n:case o:case i:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case f:case m:case a:return e;default:return p}}case r:return p}}}function x(e){return v(e)===s}return an.AsyncMode=c,an.ConcurrentMode=s,an.ContextConsumer=l,an.ContextProvider=a,an.Element=t,an.ForwardRef=d,an.Fragment=n,an.Lazy=f,an.Memo=m,an.Portal=r,an.Profiler=o,an.StrictMode=i,an.Suspense=u,an.isAsyncMode=function(e){return x(e)||v(e)===c},an.isConcurrentMode=x,an.isContextConsumer=function(e){return v(e)===l},an.isContextProvider=function(e){return v(e)===a},an.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},an.isForwardRef=function(e){return v(e)===d},an.isFragment=function(e){return v(e)===n},an.isLazy=function(e){return v(e)===f},an.isMemo=function(e){return v(e)===m},an.isPortal=function(e){return v(e)===r},an.isProfiler=function(e){return v(e)===o},an.isStrictMode=function(e){return v(e)===i},an.isSuspense=function(e){return v(e)===u},an.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===s||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===g||e.$$typeof===b||e.$$typeof===h)},an.typeOf=v,an}():e.exports=(ln||(ln=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var h=e.type;switch(h){case c:case s:case n:case o:case i:case u:return h;default:var y=h&&h.$$typeof;switch(y){case l:case d:case f:case m:case a:return y;default:return p}}case r:return p}}}var x=c,C=s,S=l,w=a,$=t,T=d,k=n,E=f,I=m,P=r,O=o,z=i,R=u,A=!1;function j(e){return v(e)===s}Cn.AsyncMode=x,Cn.ConcurrentMode=C,Cn.ContextConsumer=S,Cn.ContextProvider=w,Cn.Element=$,Cn.ForwardRef=T,Cn.Fragment=k,Cn.Lazy=E,Cn.Memo=I,Cn.Portal=P,Cn.Profiler=O,Cn.StrictMode=z,Cn.Suspense=R,Cn.isAsyncMode=function(e){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(e)||v(e)===c},Cn.isConcurrentMode=j,Cn.isContextConsumer=function(e){return v(e)===l},Cn.isContextProvider=function(e){return v(e)===a},Cn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Cn.isForwardRef=function(e){return v(e)===d},Cn.isFragment=function(e){return v(e)===n},Cn.isLazy=function(e){return v(e)===f},Cn.isMemo=function(e){return v(e)===m},Cn.isPortal=function(e){return v(e)===r},Cn.isProfiler=function(e){return v(e)===o},Cn.isStrictMode=function(e){return v(e)===i},Cn.isSuspense=function(e){return v(e)===u},Cn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===s||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===g||e.$$typeof===b||e.$$typeof===h)},Cn.typeOf=v}()),Cn)),on.exports;var e}
10
- /*
11
- object-assign
12
- (c) Sindre Sorhus
13
- @license MIT
14
- */function wn(){if(dn)return sn;dn=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return sn=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(n,i){for(var o,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),c=1;c<arguments.length;c++){for(var s in o=Object(arguments[c]))t.call(o,s)&&(l[s]=o[s]);if(e){a=e(o);for(var d=0;d<a.length;d++)r.call(o,a[d])&&(l[a[d]]=o[a[d]])}}return l},sn}function $n(){if(pn)return un;pn=1;return un="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Tn(){return fn?mn:(fn=1,mn=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var kn=Sn();nn.exports=function(){if(bn)return gn;bn=1;var e=Sn(),t=wn(),r=$n(),n=Tn(),i=function(){if(yn)return hn;yn=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=$n(),r={},n=Tn();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,o,a,l,c){if("production"!==process.env.NODE_ENV)for(var s in i)if(n(i,s)){var d;try{if("function"!=typeof i[s]){var u=Error((l||"React class")+": "+a+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[s](o,s,l,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+a+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var p=c?c():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},hn=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),gn=function(l,c){var s="function"==typeof Symbol&&Symbol.iterator,d="@@iterator",u="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:h(a),arrayOf:function(e){return h((function(t,n,i,o,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var l=t[n];if(!Array.isArray(l))return new f("Invalid "+o+" `"+a+"` of type `"+v(l)+"` supplied to `"+i+"`, expected an array.");for(var c=0;c<l.length;c++){var s=e(l,c,i,o,a+"["+c+"]",r);if(s instanceof Error)return s}return null}))},element:h((function(e,t,r,n,i){var o=e[t];return l(o)?null:new f("Invalid "+n+" `"+i+"` of type `"+v(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:h((function(t,r,n,i,o){var a=t[r];return e.isValidElementType(a)?null:new f("Invalid "+i+" `"+o+"` of type `"+v(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,r,n,i,o){if(!(t[r]instanceof e)){var a=e.name||u;return new f("Invalid "+i+" `"+o+"` of type `"+((l=t[r]).constructor&&l.constructor.name?l.constructor.name:u)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var l;return null}))},node:h((function(e,t,r,n,i){return b(e[t])?null:new f("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,i,o,a,l){if("function"!=typeof e)return new f("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var c=t[i],s=v(c);if("object"!==s)return new f("Invalid "+a+" `"+l+"` of type `"+s+"` supplied to `"+o+"`, expected an object.");for(var d in c)if(n(c,d)){var u=e(c,d,o,a,l+"."+d,r);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,r,n,i,o){for(var a=t[r],l=0;l<e.length;l++)if(m(a,e[l]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===x(t)?String(t):t}));return new f("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+c+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+C(i)+" at index "+t+"."),a}return h((function(t,i,o,a,l){for(var c=[],s=0;s<e.length;s++){var d=(0,e[s])(t,i,o,a,l,r);if(null==d)return null;d.data&&n(d.data,"expectedType")&&c.push(d.data.expectedType)}return new f("Invalid "+a+" `"+l+"` supplied to `"+o+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,n,i,o,a){var l=t[n],c=v(l);if("object"!==c)return new f("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+i+"`, expected `object`.");for(var s in e){var d=e[s];if("function"!=typeof d)return g(i,o,a,s,x(d));var u=d(l,s,i,o,a+"."+s,r);if(u)return u}return null}))},exact:function(e){return h((function(i,o,a,l,c){var s=i[o],d=v(s);if("object"!==d)return new f("Invalid "+l+" `"+c+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},i[o],e);for(var p in u){var m=e[p];if(n(e,p)&&"function"!=typeof m)return g(a,l,c,p,x(m));if(!m)return new f("Invalid "+l+" `"+c+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(s,p,a,l,c+"."+p,r);if(h)return h}return null}))}};function m(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function i(i,a,l,s,d,p,m){if(s=s||u,p=p||l,m!==r){if(c){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=s+":"+l;!t[y]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[y]=!0,n++)}}return null==a[l]?i?null===a[l]?new f("The "+d+" `"+p+"` is marked as required in `"+s+"`, but its value is `null`."):new f("The "+d+" `"+p+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(a,l,s,d,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function y(e){return h((function(t,r,n,i,o,a){var l=t[r];return v(l)!==e?new f("Invalid "+i+" `"+o+"` of type `"+x(l)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,r,n,i){return new f((e||"React class")+": "+t+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||l(e))return!0;var t=function(e){var t=e&&(s&&e[s]||e[d]);if("function"==typeof t)return t}(e);if(!t)return!1;var r,n=t.call(e);if(t!==e.entries){for(;!(r=n.next()).done;)if(!b(r.value))return!1}else for(;!(r=n.next()).done;){var i=r.value;if(i&&!b(i[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function x(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function C(e){var t=x(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},gn}()(kn.isElement,!0)}else nn.exports=function(){if(xn)return vn;xn=1;var e=$n();function t(){}function r(){}return r.resetWarningCache=t,vn=function(){function n(t,r,n,i,o,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function i(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o}}()();function En(e,t,r,n,i){const o=e[t],a=i||t;if(null==o||"undefined"==typeof window)return null;let l;const c=o.type;return"function"!=typeof c||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(c)||(l="Did you accidentally use a plain function component for an element instead?"),void 0!==l?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}tn(nn.exports.element,En).isRequired=tn(nn.exports.element.isRequired,En),tn(nn.exports.elementType,(function(e,t,r,n,i){const o=e[t],a=i||t;if(null==o||"undefined"==typeof window)return null;let l;return"function"!=typeof o||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(o)||(l="Did you accidentally provide a plain function component instead?"),void 0!==l?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}));var In,Pn={};var On,zn,Rn={};
15
- /**
16
- * @license React
17
- * react-is.development.js
18
- *
19
- * Copyright (c) Facebook, Inc. and its affiliates.
20
- *
21
- * This source code is licensed under the MIT license found in the
22
- * LICENSE file in the root directory of this source tree.
23
- */zn={exports:{}},"production"===process.env.NODE_ENV?zn.exports=function(){if(In)return Pn;In=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case n:case o:case i:case d:case u:return e;default:switch(e=e&&e.$$typeof){case c:case l:case s:case m:case p:case a:return e;default:return f}}case r:return f}}}return e=Symbol.for("react.module.reference"),Pn.ContextConsumer=l,Pn.ContextProvider=a,Pn.Element=t,Pn.ForwardRef=s,Pn.Fragment=n,Pn.Lazy=m,Pn.Memo=p,Pn.Portal=r,Pn.Profiler=o,Pn.StrictMode=i,Pn.Suspense=d,Pn.SuspenseList=u,Pn.isAsyncMode=function(){return!1},Pn.isConcurrentMode=function(){return!1},Pn.isContextConsumer=function(e){return h(e)===l},Pn.isContextProvider=function(e){return h(e)===a},Pn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Pn.isForwardRef=function(e){return h(e)===s},Pn.isFragment=function(e){return h(e)===n},Pn.isLazy=function(e){return h(e)===m},Pn.isMemo=function(e){return h(e)===p},Pn.isPortal=function(e){return h(e)===r},Pn.isProfiler=function(e){return h(e)===o},Pn.isStrictMode=function(e){return h(e)===i},Pn.isSuspense=function(e){return h(e)===d},Pn.isSuspenseList=function(e){return h(e)===u},Pn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===o||t===i||t===d||t===u||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===p||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},Pn.typeOf=h,Pn}():zn.exports=(On||(On=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var h=e.type;switch(h){case n:case o:case i:case d:case u:return h;default:var y=h&&h.$$typeof;switch(y){case c:case l:case s:case m:case p:case a:return y;default:return f}}case r:return f}}}e=Symbol.for("react.module.reference");var y=l,g=a,b=t,v=s,x=n,C=m,S=p,w=r,$=o,T=i,k=d,E=u,I=!1,P=!1;Rn.ContextConsumer=y,Rn.ContextProvider=g,Rn.Element=b,Rn.ForwardRef=v,Rn.Fragment=x,Rn.Lazy=C,Rn.Memo=S,Rn.Portal=w,Rn.Profiler=$,Rn.StrictMode=T,Rn.Suspense=k,Rn.SuspenseList=E,Rn.isAsyncMode=function(e){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Rn.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Rn.isContextConsumer=function(e){return h(e)===l},Rn.isContextProvider=function(e){return h(e)===a},Rn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Rn.isForwardRef=function(e){return h(e)===s},Rn.isFragment=function(e){return h(e)===n},Rn.isLazy=function(e){return h(e)===m},Rn.isMemo=function(e){return h(e)===p},Rn.isPortal=function(e){return h(e)===r},Rn.isProfiler=function(e){return h(e)===o},Rn.isStrictMode=function(e){return h(e)===i},Rn.isSuspense=function(e){return h(e)===d},Rn.isSuspenseList=function(e){return h(e)===u},Rn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===o||t===i||t===d||t===u||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===p||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},Rn.typeOf=h}()),Rn),"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),nn.exports.oneOfType([nn.exports.func,nn.exports.object]);const An={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};const jn=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function Wn(e,t,r,n){const i=e[t];if(null==i||!jn(i)){const e=function(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return null===e?"null":e.constructor.name;default:return t}}(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${e}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function Dn(e,t,...r){return void 0===e[t]?null:Wn(e,t,...r)}function Mn(){return null}Dn.isRequired=Wn,Mn.isRequired=Mn,process.env.NODE_ENV;const Nn=({order:r,orderBy:n,headCells:i,onRequestSort:a})=>e(et,{children:e(Ke,{children:i.map((i=>{return e(Ge,{variant:"head",padding:i.disablePadding?"none":"normal",sortDirection:n===i.id&&r,sx:{fontWeight:"bold"},children:i.sort?t(Ze,{active:n===i.id,direction:n===i.id?r:"asc",onClick:(l=i.id,()=>{a(l)}),children:[i.label,n===i.id?e(o,{component:"span",sx:An,children:"desc"===r?"sorted descending":"sorted ascending"}):null]}):i.label},String(i.id));var l}))})});function Vn(e,t,r){return t[r]<e[r]?-1:t[r]>e[r]?1:0}const Bn=({children:n,data:i,search:a,columns:l,defaultSort:c,defaultOrder:s="asc",loading:d=!1})=>{const[u,p]=h(""),[m,f]=h(s),[y,g]=h(c),b=i.slice().filter(function(e,t){return r=>!t||e.some((e=>{let n=r[e.id];return n?.toLowerCase&&(n=n.toLowerCase()),n?.toString().includes(t.toLowerCase())}))}(l,u)).sort(function(e,t){return"desc"===e?(e,r)=>Vn(e,r,t):(e,r)=>-Vn(e,r,t)}(m,y));return e(r,{children:t(o,{sx:{paddingX:1,paddingBottom:2},children:[a&&e(o,{paddingY:2,children:e(oe,{fullWidth:!0,placeholder:"Search",InputProps:{role:"search",startAdornment:e(ze,{position:"start",children:e(Qe,{})})},onChange:e=>p(e.target.value)})}),e(Ye,{children:t(Xe,{children:[e(Nn,{order:m,orderBy:y,headCells:l,onRequestSort:e=>{f(y===e&&"asc"===m?"desc":"asc"),g(e)}}),e(Je,{children:d?e(Ke,{children:e(Ge,{colSpan:l.length,sx:{textAlign:"center"},children:e(Q,{})})}):0===b.length?e(Ke,{children:e(Ge,{colSpan:l.length,sx:{textAlign:"center"},children:"No data"})}):n(b)})]})})]})})};Bn.defaultProps={defaultOrder:"asc"};const Ln=({children:n,data:i,loading:o,columns:a,defaultSort:l,defaultOrder:c,onRequestSort:s})=>{const[d,u]=h({orderBy:l,order:c||"asc"});return e(r,{children:e(Ye,{children:t(Xe,{children:[e(Nn,{order:d.order,orderBy:d.orderBy,headCells:a,onRequestSort:e=>{u((({orderBy:t,order:r})=>{const n=t===e&&"asc"===r?"desc":"asc";return s(e,n),{orderBy:e,order:n}}))}}),e(Je,{children:o?e(Ke,{children:e(Ge,{colSpan:a.length,sx:{textAlign:"center"},children:e(Q,{})})}):i.map(((e,t)=>n(e,t)))})]})})})},Fn=({onClickCancel:r,onClickSubmit:n,sx:i})=>t(ze,{position:"end",sx:i,children:[e(K,{variant:"contained",size:"small",color:"error","aria-label":"cancel button",startIcon:e(rt,{sx:{fontSize:12}}),onClick:r,sx:{paddingRight:0,minWidth:0,marginRight:1}}),e(K,{variant:"contained",size:"small",color:"primary","aria-label":"submit button",startIcon:e(tt,{sx:{fontSize:12}}),onClick:n,sx:{paddingRight:0,minWidth:0}})]}),_n=(e,t)=>{const[r,n]=h(!1),[i,o]=h(e),a=()=>{n(!1),o(e)};return{isEditing:r,cancelEdit:a,editValue:i,setEditValue:o,startEdit:()=>{n(!0)},submitEdit:()=>{t(i),a()}}},qn=({dense:t,onClick:r})=>{const{typography:n}=E();return e(l,{size:"small",onClick:r,sx:{ml:t?.5:1},"aria-label":"edit button",children:e(nt,{sx:{fontSize:n.pxToRem(t?18:24)}})})},Hn="-",Un=e=>`label-${e.replace(/ /g,"-")}`,Yn=({label:r,hideLabel:n,tooltip:i,tooltipEnterDelay:a=2e3,children:l,dense:c,sx:s})=>{const{typography:d}=E(),u=Un(r);return t(o,{width:1,lineHeight:c?0:void 0,sx:s,children:[!n&&e(k,{variant:c?"caption":"subtitle2",role:"label",id:u,lineHeight:c?d.pxToRem(15):void 0,children:r}),i?e(T,{title:i,placement:"top",enterDelay:a,children:l}):l]})},Jn=({label:r,value:n,placeholder:i=Hn,editable:a,dense:l,onEdit:c=(()=>null)})=>{const s=b(null),{isEditing:d,editValue:u,startEdit:p,cancelEdit:m,setEditValue:f,submitEdit:h}=_n(n?.toString(),c),y=Un(r),g=n?.toString()||i,x=e=>{"Enter"===e.key&&c(e.target.value)};return v((()=>(s.current?.addEventListener("keypress",x),()=>s.current?.removeEventListener("keypress",x))),[s.current]),e(Yn,{hideLabel:d,label:r,tooltip:g,dense:l,children:d?e(oe,{inputRef:s,value:u,label:r,size:"small",onChange:e=>f(e.target.value),InputProps:{endAdornment:e(Fn,{onClickCancel:m,onClickSubmit:h})},sx:{marginY:l?0:1}}):t(o,{display:"flex","aria-labelledby":y,children:[e(k,{variant:l?"body1":"h5",noWrap:!0,children:g}),a&&e(qn,{dense:l,onClick:p})]})})},Xn=({children:t})=>e(w,{sx:{p:2},children:t}),Gn=({label:r,value:n,placeholder:i=Hn,editable:a,dense:l,onEdit:c=(()=>null)})=>{const s=Un(r),{typography:d}=E(),{isEditing:u,editValue:m,startEdit:f,cancelEdit:h,setEditValue:y,submitEdit:g}=_n(n,c),b={fontSize:l?d.h6.fontSize:d.h5.fontSize};return e(Yn,{label:r,dense:l,children:t(o,u?{display:"flex",alignItems:"center",children:[e(it,{size:l?"small":"medium",checked:m,onChange:e=>y(e.target.checked)}),e(Fn,{onClickCancel:h,onClickSubmit:g})]}:{display:"flex",alignItems:"center","aria-labelledby":s,role:"checkbox","aria-checked":n,children:[void 0===n?e(k,{variant:"h5",children:i}):n?e(tt,{color:"success",sx:b}):e(p,{color:"error",sx:b}),a&&e(qn,{dense:l,onClick:f})]})})},Kn=({label:n,value:i,format:a,placeholder:l=Hn,editable:c,editInputType:s="datetime",dense:d,onEdit:u=(()=>null)})=>{const{isEditing:p,editValue:m,startEdit:f,cancelEdit:h,setEditValue:y,submitEdit:g}=_n(i,u),b=Un(n),v=i&&De(i,a)||l;return e(Yn,{label:n,hideLabel:p,tooltip:v,dense:d,sx:{display:"flex",flexDirection:"column"},children:p?e("datetime"===s?at:"time"===s?lt:ot,{value:m,format:a,label:n,onChange:e=>y(e||void 0),slots:{textField:n=>e(oe,{...n,size:"small",InputProps:{...n.InputProps,endAdornment:t(r,{children:[n.InputProps?.endAdornment,e(Fn,{onClickCancel:h,onClickSubmit:g,sx:{ml:2}})]}),sx:{marginY:d?.2:1}}})}}):t(o,{display:"flex",alignItems:"center","aria-labelledby":b,children:[e(k,{variant:d?"body1":"h5",noWrap:!0,children:v}),c&&e(qn,{dense:d,onClick:f})]})})},Qn=({title:r,subtitle:n,centered:i,children:a,dense:l})=>{const{typography:c}=E(),s=kt({lightWeight:200,darkWeight:800});return t(w,{sx:{paddingBottom:l?0:1},children:[t(o,{bgcolor:s,px:l?1:2,py:l?.5:1,lineHeight:l?0:void 0,children:[e(k,{variant:l?"body1":"h6",role:"heading","aria-level":1,children:r}),n&&e(k,{variant:l?"caption":"body2",role:"heading","aria-level":2,lineHeight:l?c.pxToRem(15):void 0,children:n})]}),e(W,{container:!0,padding:1,rowSpacing:l?1:2,justifyContent:i?"center":"flex-start",children:a})]})},Zn=({label:r,value:n=0,maxRating:i=5,editable:a,dense:l,onEdit:c=(()=>null)})=>{const{isEditing:s,editValue:d,startEdit:u,cancelEdit:p,setEditValue:m,submitEdit:f}=_n(n,c),h=Un(r);return e(Yn,{label:r,tooltip:n.toString(),dense:l,children:t(o,{display:"flex",alignItems:"center","aria-labelledby":h,children:[e(ct,{readOnly:!s,max:i,size:l?"small":"medium",value:s?d:n,onChange:(e,t)=>{Number.isNaN(t)&&e.currentTarget.value?m(parseInt(e.currentTarget.value,10)):t&&m(t)}}),a&&!s&&e(qn,{dense:l,onClick:u}),s&&e(Fn,{onClickCancel:p,onClickSubmit:f})]})})},ei={root:"RdsValueItem-root",content:"RdsValueItem-content"},ti=({children:t,bordered:r=!0,...n})=>{const i=((e,t)=>{const r=`solid ${t} 1px`,n="none";if(e){if(Array.isArray(e))return e.map((e=>e?r:n));if("object"==typeof e){const t={};return Object.entries(e).forEach((([e,i])=>{t[e]=i?r:n})),t}return r}})(r,kt({lightWeight:200,darkWeight:800}));return e(W,{item:!0,className:ei.root,...n,children:e(o,{className:ei.content,px:1,borderLeft:i,children:t})})},ri=({label:t,value:r,placeholder:n=Hn,color:i,variant:o})=>{const a=Un(t);let l;return l=Array.isArray(r)?r.map(((t,r)=>e(Bt,{text:t.toString()||n,variant:Array.isArray(o)?o[r]:o,color:Array.isArray(i)?i[r]:i},r))):e(Bt,{text:r?.toString()||n,variant:Array.isArray(o)?o[0]:o,color:Array.isArray(i)?i[0]:i}),e(Yn,{label:t,children:e(W,{container:!0,gap:1,"aria-labelledby":a,children:l})})},ni=({drawerProviderProps:r,children:n})=>{const[i,o,a]=n;return t(ur,{...r,children:[i,o,e(kr,{children:a})]})},ii=()=>e(st,{color:"error",sx:{width:200,height:200}}),oi=({loading:r,children:n,fetching:i,error:a})=>{const[l,c]=n;return e(qt,{children:t(o,{display:"flex",flexDirection:"column",height:1,children:[l,i&&e(o,{width:1,children:e(ve,{})}),r&&e(Er,{}),a&&e(o,{mt:4,children:e(Gr,{icon:a.icon||ii,title:a.title||"There has been an error",subtitle:a.message})}),!r&&!a&&c]})})},ai=new Error("NotificationCenterContext.Provider is required and was undefined"),li=y(void 0),ci=()=>{const e=g(li);if(void 0===e)throw ai;return e},si=({children:r,autoHideDuration:i=6e3})=>{const[o,a]=h(void 0),[l,c]=h(!1),d=()=>{c(!1)};return t(li.Provider,{value:{show:e=>{a(e),c(!0)},hide:d},children:[e(dt,{open:l,autoHideDuration:i,onClose:d,anchorOrigin:{vertical:"top",horizontal:"right"},children:t(n,{onClose:d,severity:o?.severity,"aria-label":o?.severity,sx:{width:"100%"},children:[o?.title&&e(s,{children:o?.title}),o?.message]})}),r]})},di=(e,t,{from:r,to:n})=>{const i=b(),{show:o}=ci();v((()=>{i.current===r&&t===n&&o(e),i.current=t}),[t])},ui=(t,r,{dense:n}={})=>{const{id:i,name:o,type:a}=t,l=r[i];return"boolean"===a?e(Gn,{dense:n,label:o,value:l}):"date"===a||"time"===a||"datetime"===a?e(Kn,{dense:n,label:o,value:l,format:t.format}):"object"!=typeof l||Array.isArray(l)?e(Jn,{dense:n,label:o,value:l?.toString()}):e(Jn,{dense:n,label:o,value:JSON.stringify(l)})},pi=({field:{name:t,description:r,value:n},instance:i,dense:o})=>{const a=[{field:"id",headerName:"ID",width:70}];n.forEach((e=>{a.push({field:e.id,headerName:e.name})}));const l=i.map(((e,t)=>({id:t,...e})));return e(Qn,{title:t,subtitle:r,dense:o,children:e(W,{item:!0,xs:12,children:e(ut,{rows:l,columns:a,density:o?"compact":"standard",disableRowSelectionOnClick:!0,pageSizeOptions:[5],initialState:{pagination:{paginationModel:{pageSize:5}}},sx:{height:400}})})})},mi=({field:{name:t,description:r,value:n},instance:i,dense:o})=>{const a=Et();return e(Qn,{title:t,subtitle:r,dense:o,children:n.map((t=>{const{id:r,xs:n,sm:l,md:c,lg:s,xl:d}=t,u=a.increment(t);return e(ti,{xs:n,sm:l,md:c,lg:s,xl:d,bordered:u,children:ui(t,i,{dense:o})},r)}))})},fi=({model:t,instance:r,dense:n})=>{const i=Et();return e(W,{container:!0,spacing:n?1:2,children:t.fields.map((t=>{const{id:o,type:a,xs:l=3,sm:c=0,md:s=0,lg:d=0,xl:u=0}=t;if("group"===a)return i.increment({xs:12}),e(W,{item:!0,xs:12,children:e(mi,{field:t,instance:r[o],dense:n})},o);if("group[]"===a)return i.increment({xs:12}),e(W,{item:!0,xs:12,children:e(pi,{field:t,instance:r[o],dense:n})},o);const p=i.increment(t);return e(ti,{xs:l,sm:c,md:s,lg:d,xl:u,bordered:p,children:ui(t,r,{dense:n})},o)}))})},hi={string:"",number:0,boolean:!1,enum:"",multienum:[],date:new Date(1970,0,1,0,0),time:new Date(1970,0,1,0,0),datetime:new Date(1970,0,1,0,0),group:{},"group[]":[],"string[]":[],"number[]":[]},yi=(e,t)=>t&&t[e.id]||"default"in e&&e.default||hi[e.type],gi=(e,t=undefined)=>{const r={};return e.fields.forEach((e=>{if("group"===e.type){const n={};e.value.forEach((r=>{n[r.id]=yi(r,t&&t[e.id])})),r[e.id]=n}else r[e.id]=yi(e,t)})),r},bi=({field:r,path:n=[],value:i,dense:a,update:l,onChangeValue:c})=>{const s=e=>{e.preventDefault(),c([...n,e.target.name],e.target.checked)},d=e=>{e.preventDefault(),c([...n,e.target.name],e.target.value)},u=e=>{e.preventDefault();const{value:t}=e.target,r="string"==typeof t?t.split(","):t;c([...n,e.target.name],r)},p=(e,t)=>{e.preventDefault();let r=e.target.value;"number"===t&&"string"==typeof r?r=parseInt(e.target.value,10):t.includes("[]")&&(r=e.target.value.split(",")),c([...n,e.target.name],r)},m=(e,t)=>{c([...n,t],e)};kt({lightWeight:200,darkWeight:800});const{id:f,type:h,name:y,description:g,updatable:b=!0,required:v=!0,xs:x,sm:C,md:S,lg:w,xl:$}=r,T=!b&&l;let k;const E=a?"small":"medium";if("group"===h)k=e(Qn,{title:y,subtitle:g,dense:a,children:e(W,{container:!0,spacing:2,sx:{p:2},children:r.value.map((t=>e(bi,{field:t,dense:a,path:[...n,f],value:i[t.id],update:l,onChangeValue:c},t.id)))})});else if("boolean"===h)k=e(o,{sx:{height:1,display:"flex",alignItems:"center"},children:e(pt,{control:e(mt,{name:f,size:E,onChange:s,checked:i,disabled:T}),label:y})});else if("enum"===h)k=t(Ce,{fullWidth:!0,children:[e(Se,{id:`${f}-select-label`,children:y}),e($e,{labelId:`${f}-select-label`,id:`${f}-select`,value:i,label:y,name:f,size:E,onChange:d,required:v,disabled:T,children:r.value.map((t=>e(ft,{value:t,children:t},t)))})]});else if("multienum"===h)k=t(Ce,{fullWidth:!0,children:[e(Se,{id:`${f}-select-label`,children:y}),e($e,{labelId:`${f}-select-label`,id:`${f}-select`,value:i||[],renderValue:e=>e.join(", "),label:y,name:f,size:E,onChange:u,required:v,disabled:T,multiple:!0,children:r.value.map((r=>t(ft,{value:r,children:[e(mt,{checked:(i||[]).includes(r)}),e(N,{primary:r})]},r)))})]});else if("date"===h)k=e(Be,{label:y,format:r.format,value:i,slotProps:{field:{size:E}},disabled:T,onChange:e=>m(e,f)});else if("time"===h)k=e(Le,{label:y,format:r.format,value:i,slotProps:{field:{size:E}},disabled:T,onChange:e=>m(e,f)});else if("datetime"===h)k=e(Fe,{label:y,format:r.format,value:i,slotProps:{field:{size:E}},disabled:T,onChange:e=>m(e,f)});else{if("group[]"===h)return null;k=h.includes("[]")?e(oe,{required:v,type:"text",label:y,name:f,size:E,variant:"outlined",helperText:"Use comas to separate multiple values",fullWidth:!0,disabled:T,value:i.join(","),onChange:e=>p(e,h)}):e(oe,{required:v,type:h,label:y,size:E,name:f,variant:"outlined",fullWidth:!0,value:i,disabled:T,onChange:e=>p(e,h)})}return e(W,{item:!0,xs:x,sm:C,md:S,lg:w,xl:$,children:k},f)};function vi(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function xi(e){return function t(r){return 0===arguments.length||vi(r)?t:e.apply(this,arguments)}}function Ci(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return vi(r)?t:xi((function(t){return e(r,t)}));default:return vi(r)&&vi(n)?t:vi(r)?xi((function(t){return e(t,n)})):vi(n)?xi((function(t){return e(r,t)})):e(r,n)}}}function Si(e){return function t(r,n,i){switch(arguments.length){case 0:return t;case 1:return vi(r)?t:Ci((function(t,n){return e(r,t,n)}));case 2:return vi(r)&&vi(n)?t:vi(r)?Ci((function(t,r){return e(t,n,r)})):vi(n)?Ci((function(t,n){return e(r,t,n)})):xi((function(t){return e(r,n,t)}));default:return vi(r)&&vi(n)&&vi(i)?t:vi(r)&&vi(n)?Ci((function(t,r){return e(t,r,i)})):vi(r)&&vi(i)?Ci((function(t,r){return e(t,n,r)})):vi(n)&&vi(i)?Ci((function(t,n){return e(r,t,n)})):vi(r)?xi((function(t){return e(t,n,i)})):vi(n)?xi((function(t){return e(r,t,i)})):vi(i)?xi((function(t){return e(r,n,t)})):e(r,n,i)}}}var wi=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};var $i=Number.isInteger||function(e){return e<<0===e};var Ti=xi((function(e){return null==e})),ki=Si((function e(t,r,n){if(0===t.length)return r;var i=t[0];if(t.length>1){var o=!Ti(n)&&function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}(i,n)&&"object"==typeof n[i]?n[i]:$i(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,o)}return function(e,t,r){if($i(e)&&wi(r)){var n=[].concat(r);return n[e]=t,n}var i={};for(var o in r)i[o]=r[o];return i[e]=t,i}(i,r,n)}));const Ei=({model:r,saveButtonText:n,dense:i,onSubmit:o,initialValues:a})=>{const l=S((()=>gi(r,a)),[r,a]),[c,s]=h(l),d=(e,t)=>{s((r=>ki(e,t,r)))};return t(W,{container:!0,component:"form",spacing:2,onSubmit:e=>{e.preventDefault(),o(c)},children:[r.fields.map((t=>e(bi,{dense:i,field:t,value:c[t.id],update:!!a,onChangeValue:d},t.id))),e(W,{item:!0,xs:12,children:e(K,{type:"submit",variant:"contained",size:i?"small":"medium",children:n})})]})},Ii=({model:r,modelName:n,basePath:i="",submitUpdateItemRequest:o,updateItemRequest:a,updateItem:l,onSubmitUpdateItem:c,onRequestUpdateItem:s})=>{const{id:d=""}=q(),u=a.loading||o.loading;return v((()=>{s(d)}),[d]),di({title:"Item updated",message:`The item ${d} has been updated successfully`,severity:"success"},!!o.success,{from:!1,to:!0}),jt(`${i}/`,!!o.success,{from:!1,to:!0}),di({title:"We had an error",message:o.error||"",severity:"error"},!!o.error,{from:!1,to:!0}),t(oi,{loading:u,children:[e(Yt,{title:`Edit ${d}`,preset:"default",breadcrumbs:[{id:"list",text:n,link:`${i}/`},{id:"update",text:`Edit ${d}`,link:`${i}/${d}/update`}]}),e(St,{children:e(Ei,{model:r,initialValues:l,saveButtonText:"Save",onSubmit:c})})]})},Pi=({columns:n,options:i,data:o,onClick:a,search:c,defaultSort:s,defaultOrder:d,loading:u})=>{const p=[...n,{id:"__options",label:"",disablePadding:!1,numeric:!1,sort:!1}],[m,f]=h(null);return t(r,{children:[e(Bn,{columns:p,data:o,search:c,defaultSort:s,defaultOrder:d,loading:u,children:r=>r.map(((r,n)=>t(Ke,{onClick:()=>a&&a(r),role:"row","aria-rowindex":n,sx:{cursor:a&&"pointer"},children:[p.map((({id:t},i)=>e(Ge,{role:"cell",scope:"row","aria-rowindex":n,"aria-colindex":i,children:r[t]},t.toString()))),i&&e(Ge,{children:e(l,{"data-testid":`options-${r.id}`,onClick:e=>{e.stopPropagation(),f({item:r,anchor:e.currentTarget})},children:e(yt,{})})})]},r.id)))}),i&&e(ht,{anchorEl:m?.anchor,open:!!m,onClose:()=>f(null),anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:i.map((({id:t,label:r,onClick:n})=>e(ft,{onClick:()=>{m&&n(m?.item),f(null)},children:r},t)))})]})},Oi=({model:r,modelName:n,listData:i,listRequest:o,deleteRequest:a,basePath:l="",deleteFeature:c=!0,updateFeature:s=!0,addFeature:d=!0,detailsFeature:u=!0,onRequestList:p,onClickDeleteItem:m})=>{const f=_();v((()=>{p()}),[]),di({title:"Item deleted",message:"The item has been deleted successfully",severity:"success"},!!a.success,{from:!1,to:!0}),di({title:"We had an error",message:a.error||"",severity:"error"},!!a.error,{from:!1,to:!0});const h=u?e=>{f(`${l}/${e.id}`)}:void 0,y=(e,t)=>{"edit"===e?f(`${l}/${t.id}/update`):m(t)},g=[];s&&g.push({id:"edit",label:"Edit",onClick:e=>y("edit",e)}),c&&g.push({id:"remove",label:"Remove",onClick:e=>y("remove",e)});const b=[];return d&&b.push({id:"add",text:"Add",href:`${l}/add`}),t(oi,{loading:o.loading||a.loading,children:[e(Yt,{title:n,preset:"default",actions:b.length>0?b:void 0}),e(St,{children:e(Pi,{columns:r.fields.filter((({listable:e})=>e)).map((({id:e,name:t,type:r})=>({disablePadding:!1,id:e,label:t,numeric:"number"===r,sort:!1}))),data:i,defaultSort:r.fields[0].id,onClick:h,options:g.length>0?g:void 0})})]})},zi=({model:r,modelName:n,basePath:i="",onSubmitNewItem:o,newItemRequest:a})=>(di({message:"Item added successfully",severity:"success"},!!a.success,{from:!1,to:!0}),jt(`${i}/`,!!a.success,{from:!1,to:!0}),di({title:"We had an error",message:a.error||"",severity:"error"},!!a.error,{from:!1,to:!0}),t(oi,{loading:a.loading,children:[e(Yt,{title:`Add ${n}`,preset:"default",breadcrumbs:[{id:"list",text:n,link:`${i}/`},{id:"add",text:`Add new ${n}`,link:`${i}/add`}]}),e(St,{children:e(Ei,{model:r,saveButtonText:"Save",onSubmit:o})})]})),Ri=({model:r,modelName:n,basePath:i="",onRequestItem:o,itemRequest:a,detailsItem:l})=>{const{id:c=""}=q();return v((()=>{o(c)}),[c]),t(oi,{loading:a.loading,children:[e(Yt,{title:c,preset:"default",breadcrumbs:[{id:"list",text:n,link:`${i}/`},{id:"detail",text:c,link:`${i}/${c}`}]}),e(St,{children:l&&e(fi,{model:r,instance:l})})]})},Ai=r=>{const{updateFeature:n=!0,addFeature:i=!0,detailsFeature:o=!0}=r;return t(H,{children:[e(U,{path:"",element:e(Oi,{...r})}),o&&e(U,{path:":id",element:e(Ri,{...r})}),i&&e(U,{path:"add",element:e(zi,{...r})}),n&&e(U,{path:":id/update",element:e(Ii,{...r})})]})},ji={idle:!0},Wi={loading:!0},Di={success:!0};export{Fr as Action,Lr as ActionHeader,Dr as Autocomplete,vt as Board,Jt as BootstrapDialog,Nt as Bullet,wt as CenterContainer,Xt as ConfirmDialog,St as Content,Zr as ContentPlaceholder,Vr as DateRangeCalendar,Br as DateRangePicker,Hn as DefaultPlaceholder,cr as Drawer,wr as DrawerAppBar,xr as DrawerContent,Qt as DrawerContext,nr as DrawerHeader,ni as DrawerLayout,kr as DrawerMain,ur as DrawerProvider,vr as DrawerSection,pr as DrawerSubheader,Ln as EnhancedRemoteTable,Bn as EnhancedTable,Nn as EnhancedTableHead,Ct as ExpandableAlert,Gt as FormDialog,Qn as GroupValueCard,Yt as Header,oi as HeaderLayout,Ut as HeaderSubtitle,Ht as HeaderTitle,ji as IdleRequest,Bt as Label,Dt as ListPanel,Pt as ListPanelContext,Ot as ListPanelContextProvider,Er as LoadingArea,Wi as LoadingRequest,en as LoremIpsumPlaceholder,bt as Markdown,Ei as ModelForm,Ai as ModelRouter,li as NotificationCenterContext,si as NotificationCenterProvider,ai as NotificationCenterProviderUndefinedError,fi as ObjectDetails,Gr as Placeholder,Ir as QueryContainer,Or as Select,zr as SignIn,Kr as SkeletonCard,Qr as SkeletonGrid,Di as SuccessRequest,Yr as TabCard,Jr as TabCardPanel,Lt as TabContext,Ft as TabContextProvider,Xr as TabPanel,qt as TabProvider,Pi as TableList,Wr as TextField,Zt as UndefinedProvider,Gn as ValueBoolean,Xn as ValueCard,Kn as ValueDatetime,qn as ValueEditButton,Fn as ValueEditButtons,ti as ValueItem,ri as ValueLabel,Zn as ValueRating,Jn as ValueText,Mt as bulletClasses,mr as getDrawerItemColors,It as getFormData,Tt as getRandomItem,Vt as labelClasses,gt as markdownDefaultOptions,$t as newArrayWithSize,Et as newBreakpointsCounter,gi as newInstanceFromValuesOrZeroValue,Kt as useDialog,er as useDrawer,_n as useEditableValueDisplay,kt as useGetDefaultThemeColor,zt as useListPanel,ci as useNotificationCenter,di as useNotifyWhenValueChanges,_t as useTab,ei as valueItemClasses};
1
+ import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import r,{alertClasses as n}from"@mui/material/Alert";import a from"@mui/material/Box";import l from"@mui/material/Collapse";import o,{iconButtonClasses as d}from"@mui/material/IconButton";import c from"@mui/material/AlertTitle";import s from"@mui/icons-material/ExpandMore";import m from"@mui/icons-material/ExpandLess";import p from"@mui/icons-material/Close";import*as u from"react";import{forwardRef as h,useState as g,createContext as f,useContext as b,createElement as x,useRef as y,useId as v,useEffect as C,useMemo as w}from"react";import k,{paperClasses as S}from"@mui/material/Paper";import T from"@mui/material/Tooltip";import z from"@mui/material/Typography";import{useTheme as I,styled as A}from"@mui/material/styles";import{blueGrey as W,grey as P}from"@mui/material/colors";import E from"@mui/icons-material/ContentCopy";import D from"@mui/material/Container";import B from"@mui/material/Grid";import R from"@mui/material/List";import $ from"@mui/material/ListItemButton";import V from"@mui/material/ListItemText";import{useTheme as L,Link as O}from"@mui/material";import j from"@mui/material/Badge";import M from"@mui/material/Breadcrumbs";import H from"@mui/material/Tabs";import F from"@mui/material/Tab";import N from"@mui/material/Button";import q,{circularProgressClasses as Y}from"@mui/material/CircularProgress";import X from"@mui/material/Link";import G from"@mui/material/Dialog";import U from"@mui/material/DialogTitle";import _ from"@mui/material/DialogActions";import J from"@mui/material/DialogContent";import K from"@mui/material/TextField";import Q,{drawerClasses as Z}from"@mui/material/Drawer";import ee from"@mui/material/Divider";import te from"@mui/icons-material/ChevronLeft";import ie from"@mui/material/ListSubheader";import re from"@mui/material/ListItemIcon";import ne from"@mui/material/Popover";import ae from"@mui/icons-material/ChevronRight";import le from"@mui/material/Avatar";import oe from"@mui/material/ListItemAvatar";import de from"@mui/material/AppBar";import ce from"@mui/material/Toolbar";import se from"@mui/icons-material/Menu";import me,{linearProgressClasses as pe}from"@mui/material/LinearProgress";import ue from"@mui/material/FormControl";import he,{inputLabelClasses as ge}from"@mui/material/InputLabel";import fe from"@mui/material/Select";import be from"@mui/material/Stack";import xe,{autocompleteClasses as ye}from"@mui/material/Autocomplete";import ve from"@mui/material/FormHelperText";import Ce,{outlinedInputClasses as we}from"@mui/material/OutlinedInput";import ke from"@mui/material/InputAdornment";import{isAfter as Se,isBefore as Te,isSameDay as ze,startOfWeek as Ie,endOfWeek as Ae,format as We}from"date-fns";import Pe from"@mui/icons-material/Event";import{DateCalendar as Ee,PickersDay as De,DesktopDatePicker as Be,TimePicker as Re,DateTimePicker as $e}from"@mui/x-date-pickers";import Ve from"@mui/material/DialogContentText";import Le from"@mui/material/Skeleton";import Oe from"@mui/material/TableContainer";import je from"@mui/material/TableBody";import Me from"@mui/material/Table";import He from"@mui/material/TableCell";import Fe from"@mui/material/TableRow";import Ne from"@mui/icons-material/Search";import qe from"@mui/material/TableSortLabel";import Ye from"@mui/material/TableHead";import Xe from"@mui/icons-material/Check";import Ge from"@mui/icons-material/Clear";import Ue from"@mui/icons-material/Edit";import _e from"@mui/material/Switch";import{DatePicker as Je}from"@mui/x-date-pickers/DatePicker";import{DateTimePicker as Ke}from"@mui/x-date-pickers/DateTimePicker";import{TimePicker as Qe}from"@mui/x-date-pickers/TimePicker";import Ze from"@mui/material/Rating";import et from"@mui/icons-material/ReportProblem";import tt from"@mui/material/Snackbar";import{DataGrid as it}from"@mui/x-data-grid";import rt from"@mui/material/FormControlLabel";import nt from"@mui/material/Checkbox";import at from"@mui/material/MenuItem";import lt from"@mui/material/Menu";import ot from"@mui/icons-material/MoreVert";const dt=({content:i,spacing:r=0,children:n,sx:l})=>{const{spacing:d,typography:c}=I();let s,m;return Array.isArray(i)?(m=i.map(((t,i)=>e(z,{sx:{pb:r},children:t},i))),s=i.join("\n")):(m=e(z,{children:i}),s=i||""),e(k,{sx:{position:"relative",pl:2,pr:4,py:1,backgroundColor:W[800],color:"white",...l},children:t(a,{display:"flex",flexDirection:"row",children:[e(a,{width:1,children:n||m}),e(a,{sx:{position:"absolute",top:d(.5),right:d(.5)},children:s&&e(o,{"aria-label":"copy board content",color:"inherit",onClick:()=>navigator.clipboard.writeText(s),children:e(T,{title:"Copy",children:e(E,{sx:{fontSize:c.pxToRem(18)}})})})})]})})},ct={[`& .${n.message}`]:{width:1}},st=h((({severity:i,iconMapping:n,title:d,message:u,metadata:h,metadataComponent:f,onClose:b,sx:x={}},y)=>{const[v,C]=g(!1);return e(r,{ref:y,severity:i,iconMapping:n,onClose:b,action:t(a,{display:"flex",flexDirection:"column",children:[e(o,{color:"inherit",onClick:b,children:e(p,{fontSize:"small"})}),h&&e(o,{color:"inherit",onClick:()=>C((e=>!e)),children:e(v?m:s,{fontSize:"small"})})]}),sx:{...ct,...x},children:t(a,{sx:{w:1},children:[d&&e(c,{children:d}),u,h&&e(l,{in:v,sx:{mt:2},children:e(dt,{content:h,children:f})})]})})})),mt=({children:t})=>e(D,{component:"main",sx:{py:3,flexGrow:1},children:t});function pt({children:t,centerVertical:i=!0,centerHorizontal:r=!0,sx:n}){return e(a,{width:1,height:1,sx:{...n,display:"flex",flexDirection:"column",justifyContent:i?"center":"flex-start",alignItems:r?"center":"flex-start"},children:t})}const ut=(e,t)=>new Array(e).fill(t),ht=e=>{const t=Math.floor(Math.random()*e.length);return{index:t,item:e[t]}},gt=({lightWeight:e=100,darkWeight:t=900}={})=>{const{palette:i}=L();return"light"===i.mode?i.grey[e]:i.grey[t]},ft=(e=12)=>{const t=(t,i,r)=>{const n=t[i];return t[i]+=r,t[i]>e?(t[i]=r,!1):(t[i]==e&&(t[i]=0),n>0)};return{xs:0,sm:0,md:0,lg:0,xl:0,increment:function({xs:e=0,sm:i=0,md:r=0,lg:n=0,xl:a=0}){const l=i||e,o=r||l,d=n||o,c=a||d;return{xs:t(this,"xs",e),sm:t(this,"sm",l),md:t(this,"md",o),lg:t(this,"lg",d),xl:t(this,"xl",c)}}}},bt=e=>{const t=new FormData(e.currentTarget),i={};return t.forEach(((e,t)=>{i[t]=e})),i},xt=f(void 0),yt=xt.Provider,vt=()=>b(xt),Ct=({items:i,defaultSelectedItem:r,colBreakpoint:n=3,listMode:a="panel",children:l,onSelectedItemChange:o=(()=>null)})=>{i.map((e=>e.path)).filter(Boolean);const d=gt(),{palette:c,typography:s}=L(),[m,p]=g(r);return e(yt,{value:m,children:t(B,{container:!0,bgcolor:d,height:1,children:[e(B,{item:!0,xs:n,pl:1,height:1,children:e(R,{sx:{height:1,overflowY:"auto"},children:i.map((({id:t,text:i,tooltip:r,path:n,href:l})=>{const d=x($,{..."navigation"===a?{component:O,href:l}:{},key:t,dense:!0,onClick:()=>(e=>{p(e),o(e)})(t),"aria-label":i},e(V,{primary:i,primaryTypographyProps:{color:P[600]}}));return r?e(T,{title:r,enterDelay:1500,placement:"right",children:d},t):d}))})}),e(B,{item:!0,xs:12-n,pl:1,py:1,pr:1,children:e(k,{elevation:0,sx:{width:1,height:1,backgroundColor:c.background.paper},children:l})})]})})},wt={root:"RdsBullet-root"},kt=({variant:t="primary",sx:i})=>e(j,{color:t,variant:"dot",className:wt.root,role:"bullet","aria-describedby":t,sx:i}),St={root:"RdsLabel-root"},Tt=({text:t,color:i,variant:r="default",textTransform:n="capitalize",sx:l})=>{const{palette:o,typography:d}=I(),c={default:"light"===o.mode?o.grey[100]:o.grey[900],primary:o.primary.light,secondary:o.secondary.light,info:o.info.light,warning:o.warning.light,error:o.error.light,success:o.success.light},s={default:o.getContrastText(c.default),primary:o.primary.contrastText,secondary:o.secondary.contrastText,info:o.info.contrastText,warning:o.warning.contrastText,error:o.error.contrastText,success:o.success.contrastText},m=i||c[r],p=i?o.getContrastText(i):s[r];return e(a,{height:24,minWidth:22,display:"inline-flex",justifyContent:"center",alignItems:"center",bgcolor:m,color:p,fontSize:d.caption.fontSize,fontWeight:d.fontWeightBold,lineHeight:0,textTransform:n,whiteSpace:"nowrap",borderRadius:2,role:"label","aria-label":`${t} ${r} label`,py:0,px:1,sx:{cursor:"default",...l},children:t})},zt=f([0,()=>null]),It=zt.Provider,At=()=>b(zt),Wt=({children:t,initialValue:i=0})=>{const r=g(i);return e(It,{value:r,children:t})},Pt=({loading:t,children:r})=>{const{typography:n}=I();return t?e(q,{color:"inherit",size:n.h4.fontSize,"aria-label":"title loading"}):"string"==typeof r?e(z,{variant:"h4",role:"heading","aria-level":1,children:r}):e(i,{children:r})},Et=({loading:t,children:r})=>{const{typography:n}=I();return t?e(q,{color:"inherit",size:n.body1.fontSize,"aria-label":"subtitle loading"}):"string"==typeof r?e(z,{variant:"body1",role:"heading","aria-level":2,children:r}):e(i,{children:r})},Dt=({title:i="",loadingTitle:r,subtitle:n,loadingSubtitle:l,preset:o="default",actionsVariant:d="outlined",breadcrumbs:c,actions:s,tabs:m,tabsMode:p="panel",navigationButton:u})=>{const{palette:h}=I(),g=gt(),[f,b]=At(),x={default:g,primary:h.primary.main,secondary:h.secondary.main,inherit:"inherit",transparent:"transparent"},y=x[o],v={default:h.getContrastText(x.default),primary:h.primary.contrastText,secondary:h.secondary.contrastText,inherit:"inherit",transparent:h.text.primary},C=f;return e(a,{bgcolor:y,color:v[o],children:t(D,{children:[t(a,{sx:{py:3,display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[t(a,{children:[u&&e(N,{href:u.href,size:"small",color:"inherit",LinkComponent:X,startIcon:u.icon,sx:{mb:1},children:u.text}),c?.length&&e(M,{color:"inherit",separator:"›","aria-label":"breadcrumb",sx:{marginTop:1},children:c.map((({id:t,link:i,text:r})=>e(X,{underline:"hover",color:"inherit",href:i,variant:"body2",role:"link",children:r},t)))}),e(Pt,{loading:r,children:i}),(n||l)&&e(Et,{loading:l,children:n})]}),s&&e(a,{children:s.map((({disabled:t,id:i,href:r,onClick:n,text:a},l)=>e(N,{component:r?X:"button",role:"button",color:"inherit",disabled:t,variant:d,size:"small",href:r,onClick:n,sx:{mr:l!=s.length-1?1:0},children:a},i)))})]}),m&&e(H,{value:C,textColor:"inherit",onChange:"panel"===p?(e,t)=>b(t):void 0,children:m.map((({id:t,label:i,disabled:r,path:n,href:a})=>{const l={label:i,disabled:r};return e(F,"panel"===p?{...l}:{...l,component:X,href:a,value:n},t)}))})]})})},Bt={overrides:{h1:{component:z,props:{gutterBottom:!0,variant:"h5"}},h2:{component:z,props:{gutterBottom:!0,variant:"h6"}},h3:{component:z,props:{gutterBottom:!0,variant:"subtitle1"}},h4:{component:z,props:{gutterBottom:!0,variant:"caption",paragraph:!0}},p:{component:z,props:{paragraph:!0}},a:{component:X},li:{component:"li"}}},Rt=({open:i,title:r,component:n,componentProps:l={},disabled:d,disableAccept:c,disableCancel:s,actions:m=[],children:u,loading:h,cancelable:g,callCloseWhenCancel:f=!0,acceptable:b,acceptText:x="Accept",cancelText:y="Cancel",onAccept:v,onCancel:C=(()=>null),onClose:w,acceptType:k="button"})=>{const S=m.length>0||b||g;return t(G,{open:i,onClose:w,children:[t(U,{sx:{display:"flex",alignItems:"center"},children:[r,h&&!b&&e(q,{size:20,sx:{ml:2,color:e=>e.palette.grey[500]}}),e(o,{disabled:d,"aria-label":"close",onClick:w,sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:e(p,{})})]}),t(a,{component:n,...l,children:[e(J,{dividers:!0,children:u}),S&&t(_,{children:[m.map((({id:t,text:i,type:r="button",onClick:n,color:a="primary"})=>e(N,{type:r,disabled:d,onClick:n,color:a,children:i},t))),g&&e(N,{color:"error",disabled:d||s,onClick:()=>{C(),f&&w()},children:y}),b&&e(N,{type:k,loading:h,disabled:d||c,onClick:v,children:x})]})]})]})},$t=({open:i,title:r,loading:n,disabled:a,confirmText:l="Confirm",cancelText:o="Cancel",passphrase:d,children:c,onConfirm:s,onCancel:m})=>{const[p,u]=g("");return t(Rt,{title:r,loading:n,disabled:n||a,disableAccept:!(!d||p===d),open:i,onClose:m,acceptable:!0,cancelable:!0,callCloseWhenCancel:!1,acceptText:l,cancelText:o,onCancel:m,onAccept:s,children:[c,d&&e(K,{size:"small",fullWidth:!0,value:p,onChange:e=>u(e.target.value),placeholder:d})]})},Vt=({open:t,title:i,loading:r,disabled:n,submitText:a="Submit",cancelText:l="Cancel",children:o,onSubmit:d,onCancel:c})=>e(Rt,{component:"form",componentProps:{onSubmit:e=>{e.preventDefault(),d(bt(e))}},title:i,loading:r,disabled:r||n,open:t,onClose:c,callCloseWhenCancel:!1,cancelable:!0,acceptable:!0,cancelText:l,onCancel:c,acceptText:a,acceptType:"submit",children:o}),Lt=(e=!1)=>{const[t,i]=g(e);return{isOpen:t,open:()=>i(!0),close:()=>i(!1),setIsOpen:i}},Ot=f(void 0),jt=new Error("DrawerContext.Provider is required and was undefined"),Mt=()=>{const e=b(Ot);if(void 0===e)throw jt;return e},Ht=e=>({width:240,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),Ft=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(7)} + 1px)`,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(8)} + 1px)`}}),Nt=A("div")((({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",padding:e.spacing(0,1),...e.mixins.toolbar}))),qt={temporary:!0,mini:!0,persistent:!0,clipped:!1},Yt={temporary:"temporary",mini:"permanent",clipped:"permanent",persistent:"persistent"},Xt=()=>({}),Gt={mini:(e,t)=>({boxSizing:"border-box",[`& .${S.root}`]:{zIndex:t.zIndex.drawer-1}}),temporary:Xt,clipped:Xt,persistent:Xt},Ut=({children:i,...r})=>{const n=I(),{state:a,switchState:l,underAppBar:d,close:c,drawerWidth:s,variant:m}=Mt(),p={width:s,flexShrink:0,whiteSpace:"nowrap",..."open"===a&&{...Ht(n),[`& .${Z.paper}`]:Ht(n)},..."open"!==a&&{...Ft(n),[`& .${Z.paper}`]:Ft(n)},...Gt[m](a,n)};return t(Q,{open:"open"===a,variant:Yt[m],role:"menu","aria-hidden":"close"===a,onClose:c,sx:p,...r,children:[e(Nt,{children:!d&&qt[m]&&e(o,{onClick:l,children:e(te,{})})}),e(ee,{}),i]})},_t={temporary:"close",mini:"collapse",clipped:"open",persistent:"close"},Jt={temporary:["close","open"],mini:["collapse","open"],clipped:["open","open"],persistent:["close","open"]},Kt=({children:t,initialState:i,variant:r="temporary",drawerWidth:n=240,underAppBar:a=!1,selectedItemId:l,onStateChange:o=(()=>null)})=>{const[d,c]=g(i||_t[r]),s=e=>{o(e),c(e)};return e(Ot.Provider,{value:{state:d,variant:r,selectedItemId:l,underAppBar:a,drawerWidth:n,switchState:()=>s(Jt[r]["open"===d?0:1]),collapse:()=>s("collapse"),close:()=>s("close"),open:()=>s("open"),setState:c},children:t})},Qt=A(ie,{shouldForwardProp:e=>"size"!==e})((({size:e,theme:t})=>({lineHeight:"small"===e?t.typography.pxToRem(40):void 0}))),Zt=(e,t)=>({color:t?e.palette.primary.main:void 0,fontWeight:t?e.typography.fontWeightBold:e.typography.fontWeightMedium}),ei=A(X)((({theme:e})=>({color:e.palette.text.primary}))),ti={minWidth:0,justifyContent:"center",marginRight:"auto"},ii=({text:i,icon:r,avatar:n,label:a,bullet:l,href:o,selected:d,size:c="medium",level:s,sx:m})=>{const{state:p}=Mt(),u=I(),{color:h,fontWeight:g}=Zt(u,d);return t($,{LinkComponent:ei,dense:"small"===c,"aria-label":i,href:o,selected:d,sx:{...m,pl:"open"===p?u.spacing(2+1.5*s):void 0,..."collapse"===p&&{paddingHorizontal:u.spacing(2.5),justifyContent:"center"}},children:[r&&e(re,{sx:{color:h,..."collapse"===p&&0===s&&ti},children:r}),n&&e(oe,{sx:{..."collapse"===p&&0===s&&ti},children:e(le,{alt:n.alt,src:n.src,sx:{..."small"===c&&{width:24,height:24},..."collapse"===p&&{width:30,height:30}}})}),e(V,{disableTypography:!0,primary:i,sx:{color:h,fontWeight:g,opacity:"collapse"===p&&0===s?0:void 0}}),a&&"open"===p&&e(Tt,{text:a.text,variant:a.variant,sx:{ml:2}}),l&&"open"===p&&e(kt,{variant:l.variant,sx:{ml:2}})]})},ri=({item:t,size:i="medium",level:r=0})=>{const{selectedItemId:n}=Mt();if("items"in t){const{id:a,text:l,icon:o,items:d}=t,c=d.some((e=>e.id===n));return e(ni,{size:i,selected:a===n||c,text:l,icon:o,items:d,level:r})}{const{id:a,text:l,icon:o,avatar:d,label:c,bullet:s,href:m}=t;return e(ii,{selected:a===n,size:i,text:l,icon:o,avatar:d,label:c,bullet:s,href:m,level:r})}},ni=({text:r,icon:n,selected:a,items:o,size:d="medium",level:c,sx:m={}})=>{const{state:p}=Mt(),u=y(null),{palette:h,spacing:f}=I(),[b,x]=g(!1),{color:v,fontWeight:C}=Zt(I(),a),w=e(R,{component:"div",disablePadding:!0,children:o.map((t=>e(ri,{level:c+1,item:t,size:d},t.id)))}),k="collapse"===p&&0===c?{position:"absolute",right:0}:{};return t(i,{children:[t($,{ref:u,selected:a,"aria-label":r,onClick:()=>x((e=>!e)),dense:"small"===d,sx:{...m,pl:"open"===p?f(2+1.5*c):void 0,backgroundColor:b?h.action.hover:void 0},children:[n&&e(re,{sx:{color:v},children:n}),e(V,{disableTypography:!0,primary:r,sx:{color:v,fontWeight:C,opacity:"collapse"===p&&0===c?0:void 0}}),e(b&&"open"===p?s:ae,{sx:[{color:v,ml:2},k]})]}),"open"===p?e(l,{in:b,timeout:"auto",unmountOnExit:!0,"aria-label":`${r} collapse submenu`,children:w}):e(ne,{open:b,PaperProps:{elevation:0,variant:"outlined"},"aria-label":`${r} popover submenu`,anchorEl:u.current,onClose:()=>x(!1),anchorOrigin:{vertical:"top",horizontal:"right"},children:w})]})},ai=({title:r,items:n,size:a="medium"})=>{const{state:l}=Mt(),{spacing:o}=I();return t(i,{children:[r&&"open"===l&&e(Qt,{size:a,role:"heading",children:r}),e(R,{sx:{paddingTop:"small"===a?o(0):void 0,paddingY:"collapse"===l?0:void 0},children:n.map((t=>e(ri,{item:t,size:a},t.id)))})]})},li=({nav:{items:t},size:r="medium"})=>e(i,{children:t.map((({title:t,items:i},n)=>e(ai,{title:t,items:i,size:r},n)))}),oi={temporary:!1,mini:!0,persistent:!0,clipped:!0},di={temporary:()=>!0,mini:e=>"open"!==e,persistent:()=>!0,clipped:()=>!1},ci=({title:i,sx:r,children:n,...a})=>{const l=I(),{state:d,variant:c,switchState:s,drawerWidth:m,underAppBar:p}=Mt(),u=oi[c]&&!p&&{transition:l.transitions.create(["width","margin"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.leavingScreen}),..."open"===d&&{marginLeft:m,width:`calc(100% - ${m}px)`,transition:l.transitions.create(["width","margin"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.enteringScreen})}}||{};return e(de,{position:p?"fixed":void 0,...a,sx:{...r,...u,zIndex:e=>e.zIndex.drawer+(p?1:0)},children:t(ce,{children:[e(o,{color:"inherit","aria-label":"open drawer",onClick:s,edge:"start",sx:{marginRight:5,display:di[c](d)?void 0:"none"},children:e(se,{})}),i&&e(z,{variant:"h6",component:"h1",role:"heading","aria-level":1,noWrap:!0,children:i}),n]})})},si={temporary:!1,mini:!0,clipped:!0,persistent:!0},mi=A("div")((({theme:e})=>{const{spacing:t}=I(),{drawerWidth:i,state:r,variant:n}=Mt();return{marginLeft:si[n]?"open"===r?i:"collapse"===r?t(8):0:0,transition:e.transitions.create("margin",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})}})),pi=({children:i})=>t(mi,{children:[e(Nt,{}),i]}),ui=()=>e(a,{width:1,height:1,display:"flex",justifyContent:"center",alignItems:"center",children:e(q,{})});function hi({fetching:i=!1,loading:n=!1,error:l,success:o,children:d}){const s=Array.isArray(i)?i.some((e=>e)):i;return(Array.isArray(n)?n.some((e=>e)):n)?e(ui,{}):l?t(r,{severity:"error",role:"alert","aria-describedby":"error",children:[l.name&&e(c,{role:"heading",children:l.name}),l.message]}):t(a,{children:[o&&t(r,{severity:"success",role:"alert","aria-describedby":"success",sx:{mb:2},children:[o.name&&e(c,{role:"heading",children:o.name}),o.message]}),s&&e(me,{sx:{width:1,mb:1}}),d]})}const gi={small:15,medium:20},fi=({label:i,value:r,loading:n=!1,fetching:l=!1,size:o="medium",fullWidth:d=!1,color:c,children:s,onChange:m})=>{const p=v(),u=A(ue)((()=>c?{label:{color:c},".MuiOutlinedInput-notchedOutline":{borderColor:`${c} !important`},".MuiInputBase-root":{color:c},".MuiSelect-icon":{fill:c}}:{}));return t(u,{fullWidth:d,children:[e(he,{id:p,children:i}),e(fe,{labelId:p,id:p,value:r,label:i,onChange:m,disabled:l,size:o,renderValue:i=>l?e(pt,{centerVertical:!0,centerHorizontal:!0,children:e(q,{color:"inherit",size:gi[o]})}):n?t(a,{display:"flex",flexDirection:"column",children:[i,e(me,{color:"inherit",sx:{position:"absolute",left:0,right:0,bottom:0}})]}):i,children:s})]})},bi=({title:n,subtitle:l,loading:o,error:d,onSubmitSignIn:c})=>{const[s,m]=g(""),[p,u]=g("");return t(i,{children:[t(a,{marginBottom:2,children:[e(z,{component:"h1",variant:"h4",children:n}),e(z,{variant:"body1",children:l})]}),t(a,{component:"form",onSubmit:function(e){e.preventDefault(),m(""),u("");const t=new FormData(e.currentTarget),i=t.get("email")?.toString(),r=t.get("password")?.toString();i||m("Please fill out this field"),r||u("Please fill out this field"),i&&r&&c(i,r)},children:[d&&e(be,{width:"100%",marginTop:1,children:e(r,{variant:"filled",severity:"error",children:d.message})}),e(K,{margin:"normal",fullWidth:!0,id:"email",label:"Email Address",name:"email",autoComplete:"email",autoFocus:!0,disabled:o,type:"email",inputProps:{role:"input"},error:!!s,helperText:s}),e(K,{margin:"normal",fullWidth:!0,role:"input",name:"password",label:"Password",type:"password",id:"password",disabled:o,autoComplete:"current-password",inputProps:{role:"input"},error:!!p,helperText:p}),e(N,{type:"submit",fullWidth:!0,variant:"contained",loading:o,disabled:o,role:"button",sx:{mt:2},children:"Sign In"})]})]})};let xi=0;const yi={...u}.useId;function vi(e){if(void 0!==yi){const t=yi();return e??t}return function(e){const[t,i]=u.useState(e),r=e||t;return u.useEffect((()=>{null==t&&(xi+=1,i(`mui-${xi}`))}),[t]),r}(e)}const Ci=({id:i,label:r,InputLabelProps:n,InputProps:a,fetching:l,loading:o,helperText:c,hexColor:s,size:m,fullWidth:p,sx:u,...h})=>{const g=vi(i),f=c&&g?`${g}-helper-text`:void 0,b=r&&g?`${g}-label`:void 0,x=s?{[`& .${we.notchedOutline}`]:{borderColor:`${s} !important`},[`& .${ge.root}`]:{color:s},[`& .${we.input}`]:{color:s},[`& .${Y.root}`]:{color:s},[`& .${pe.bar}`]:{backgroundColor:s},[`& .${ye.endAdornment} .${d.root}`]:{color:s}}:{};return t(ue,{sx:x,fullWidth:p,children:[e(he,{size:"small"===m?"small":"normal",id:b,htmlFor:g,...n,children:r}),e(Ce,{...a,id:g,label:r,size:m,fullWidth:p,endAdornment:t(ke,{position:"end",children:[a?.endAdornment,o?e(q,{color:"inherit",size:20,sx:{ml:1}}):null]}),sx:u,...h}),l&&!o&&e(me,{color:"inherit",sx:{position:"absolute",left:0,right:0,bottom:0}}),c&&e(ve,{id:f,children:c})]})},wi=t=>{const{label:i,loading:r,fetching:n,options:a,helperText:l,color:o,onChangeValue:d=(()=>null),sx:c,...s}=t;return e(xe,{loading:r||n,options:n?[]:a,onChange:(e,t)=>d(t),...s,renderInput:t=>e(Ci,{...t,label:i,fullWidth:!0,fetching:n,loading:r,hexColor:o,helperText:l}),sx:c})},ki=A(a,{shouldForwardProp:e=>"dayIsBetween"!==e&&"isFirstDay"!==e&&"isLastDay"!==e&&"isStartOfWeek"!==e&&"isEndOfWeek"!==e})((({theme:e,dayIsBetween:t,isFirstDay:i,isLastDay:r})=>({...(i||r||t)&&{borderRadius:0,backgroundColor:`${e.palette.primary.light}40`,margin:0},...i&&{borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%"},...r&&{borderTopRightRadius:"50%",borderBottomRightRadius:"50%"}}))),Si=t=>{const{day:i,dateRange:r,...n}=t;if(null==r)return e(De,{day:i,...n});const[a,l]=r,o=!!l&&Se(i,a)&&Te(i,l),d=ze(i,a),c=!!l&&ze(i,l),s=ze(i,Ie(i)),m=ze(i,Ae(i));return e(ki,{dayIsBetween:o,isFirstDay:d||o&&s,isLastDay:c||o&&m,"aria-label":We(i,"yyyy-MM-dd"),"aria-selected":o||d||c,role:"gridcell",children:e(De,{...n,day:i,selected:d||c})})},Ti=({defaultValue:t,onValueChange:i})=>{const[r,n]=g(t),[a,l]=g(0),o=(e,t,r)=>{n(e),i(e,t),l(r)};return e(Ee,{value:null,onChange:e=>{if(e)return 1===a&&e<r[0]||0===a&&r[1]&&e>r[1]?o([e,void 0],0,1):void o([0===a?e:r[0],1===a?e:r[1]],a,0===a?1:0)},slots:{day:Si},slotProps:{day:{dateRange:r}},"aria-label":"calendar range picker"})},zi=({defaultValue:r,format:n,label:a,fullWidth:d,onValueChange:c,size:s="medium"})=>{const[m,p]=g(!1),[u,h]=g(r);return t(i,{children:[e(K,{label:a,fullWidth:d,size:s,value:`${We(u[0],n)} - ${u[1]?We(u[1],n):n.toUpperCase()}`,InputProps:{endAdornment:e(ke,{position:"end",children:e(o,{onClick:()=>p((e=>!e)),"aria-label":"open calendar",children:e(Pe,{})})})}}),e(k,{children:e(l,{in:m,"aria-label":"calendar collapse",children:e(Ti,{defaultValue:r,onValueChange:(e,t)=>{h(e),c(e,t),p(t<1)}})})})]})},Ii=({title:t,titleVariant:i="h4",variant:r="primary"})=>{const{palette:n}=I(),a={primary:void 0,error:"error",warning:n.warning.main,success:n.success.main};return e(z,{color:a[r],variant:i,pb:1,borderBottom:1,borderColor:"grey.300",children:t})},Ai=({variant:r="primary",title:n,titleVariant:a="h4",description:l,descriptionVariant:o="body2",buttonText:d,helperText:c,helperTextVariant:s="caption",confirmable:m,passphrase:p,confirmTitle:u="",confirmDescription:h="",onAction:g})=>{const{isOpen:f,open:b,close:x}=Lt();return t(i,{children:[t(B,{container:!0,spacing:1,children:[e(B,{item:!0,xs:12,mb:2,children:e(Ii,{title:n,titleVariant:a})}),l&&e(B,{item:!0,xs:12,children:e(z,{variant:o,children:l})}),e(B,{item:!0,xs:12,mt:1,children:e(N,{color:r,variant:"contained",onClick:()=>{m?b():g()},children:d})}),c&&e(B,{item:!0,xs:12,children:e(z,{variant:s,children:c})})]}),e($t,{open:f,title:u,passphrase:p,onCancel:x,onConfirm:()=>{g(),x()},children:e(Ve,{children:h})})]})},Wi=f([0,()=>null]),Pi=Wi.Provider,Ei=A((t=>e(H,{...t,TabIndicatorProps:{children:e("span",{className:"MuiTabs-indicatorSpan"})}})))((({theme:e})=>({minHeight:e.spacing(5),"& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{maxWidth:40,width:"100%",backgroundColor:e.palette.primary.main}}))),Di=A(F)((({theme:e})=>({textTransform:"none",fontWeight:e.typography.fontWeightRegular,marginRight:e.spacing(1),color:e.palette.text.secondary,paddingTop:0,paddingBottom:0,minHeight:e.spacing(5),"&.Mui-selected":{color:e.palette.text.secondary,fontWeight:e.typography.fontWeightBold}}))),Bi=({children:i,tabs:r,initialTab:n=0,onChangeTab:l=(()=>null)})=>{const o=gt(),[d,c]=g(n);return e(Pi,{value:[d,c],children:t(k,{variant:"outlined",children:[e(a,{bgcolor:o,children:e(Ei,{value:d,onChange:(e,t)=>{c(t),l(r[t],t)},children:r.map((({text:t,icon:i})=>e(Di,{iconPosition:"start",disableRipple:!0,label:t,icon:i},t)))})}),i]})})},Ri=({index:t,children:i,sx:r})=>{const[n]=b(Wi);let l=n===t;return Array.isArray(t)&&(l=t.includes(n)),l?e(a,{sx:r,children:i}):null};function $i({children:t,index:i}){const[r]=At();let n=r===i;return Array.isArray(i)&&(n=i.includes(r)),e("div",{role:"tabpanel",hidden:!n,id:`simple-tabpanel-${i}`,"aria-labelledby":`simple-tab-${i}`,children:n&&e(a,{sx:{p:3},children:t})})}const Vi=({title:i,subtitle:r,icon:n,iconSize:l=200,actions:o})=>t(a,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",children:[n&&n({size:l,color:"primary"}),e(z,{variant:"h4",role:"heading","aria-level":1,children:i}),e(z,{variant:"subtitle1",role:"heading","aria-level":2,sx:{mt:2},children:r}),o&&e(a,{sx:{pt:2},children:o.map((({id:t,text:i,href:r,onClick:n},a)=>e(N,{role:"button",variant:"contained",href:r,onClick:n,sx:{mr:a<o.length-1?2:0},children:i},t)))})]}),Li=({width:i="100%",animation:r=!1})=>t(a,{width:i,children:[e(Le,{animation:r,variant:"rectangular",height:118}),e(Le,{animation:r,variant:"rectangular",height:16,sx:{my:1}}),e(Le,{animation:r,variant:"rectangular",width:"80%",height:16})]}),Oi=({size:t=20})=>e(B,{container:!0,spacing:2,children:ut(t,0).map(((t,i)=>e(B,{item:!0,xs:4,children:e(Li,{width:1})},i)))}),ji=({size:i=20,children:r,p:n})=>t(D,{component:"main",sx:{p:n},"data-testid":"content-placeholder-test",children:[r,e(Oi,{size:i})]}),Mi={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Hi=({order:i,orderBy:r,headCells:n,onRequestSort:l})=>e(Ye,{children:e(Fe,{children:n.map((n=>{return e(He,{variant:"head",padding:n.disablePadding?"none":"normal",sortDirection:r===n.id&&i,sx:{fontWeight:"bold"},children:n.sort?t(qe,{active:r===n.id,direction:r===n.id?i:"asc",onClick:(o=n.id,()=>{l(o)}),children:[n.label,r===n.id?e(a,{component:"span",sx:Mi,children:"desc"===i?"sorted descending":"sorted ascending"}):null]}):n.label},String(n.id));var o}))})});function Fi(e,t,i){return t[i]<e[i]?-1:t[i]>e[i]?1:0}const Ni=({children:r,data:n,search:l,columns:o,defaultSort:d,defaultOrder:c="asc",loading:s=!1})=>{const[m,p]=g(""),[u,h]=g(c),[f,b]=g(d),x=n.slice().filter(function(e,t){return i=>!t||e.some((e=>{let r=i[e.id];return r?.toLowerCase&&(r=r.toLowerCase()),r?.toString().includes(t.toLowerCase())}))}(o,m)).sort(function(e,t){return"desc"===e?(e,i)=>Fi(e,i,t):(e,i)=>-Fi(e,i,t)}(u,f));return e(i,{children:t(a,{sx:{paddingX:1,paddingBottom:2},children:[l&&e(a,{paddingY:2,children:e(K,{fullWidth:!0,placeholder:"Search",InputProps:{role:"search",startAdornment:e(ke,{position:"start",children:e(Ne,{})})},onChange:e=>p(e.target.value)})}),e(Oe,{children:t(Me,{children:[e(Hi,{order:u,orderBy:f,headCells:o,onRequestSort:e=>{h(f===e&&"asc"===u?"desc":"asc"),b(e)}}),e(je,{children:s?e(Fe,{children:e(He,{colSpan:o.length,sx:{textAlign:"center"},children:e(q,{})})}):0===x.length?e(Fe,{children:e(He,{colSpan:o.length,sx:{textAlign:"center"},children:"No data"})}):r(x)})]})})]})})};Ni.defaultProps={defaultOrder:"asc"};const qi=({children:r,data:n,loading:a,columns:l,defaultSort:o,defaultOrder:d,onRequestSort:c})=>{const[s,m]=g({orderBy:o,order:d||"asc"});return e(i,{children:e(Oe,{children:t(Me,{children:[e(Hi,{order:s.order,orderBy:s.orderBy,headCells:l,onRequestSort:e=>{m((({orderBy:t,order:i})=>{const r=t===e&&"asc"===i?"desc":"asc";return c(e,r),{orderBy:e,order:r}}))}}),e(je,{children:a?e(Fe,{children:e(He,{colSpan:l.length,sx:{textAlign:"center"},children:e(q,{})})}):n.map(((e,t)=>r(e,t)))})]})})})},Yi=({onClickCancel:i,onClickSubmit:r,sx:n})=>t(ke,{position:"end",sx:n,children:[e(N,{variant:"contained",size:"small",color:"error","aria-label":"cancel button",startIcon:e(Ge,{sx:{fontSize:12}}),onClick:i,sx:{paddingRight:0,minWidth:0,marginRight:1}}),e(N,{variant:"contained",size:"small",color:"primary","aria-label":"submit button",startIcon:e(Xe,{sx:{fontSize:12}}),onClick:r,sx:{paddingRight:0,minWidth:0}})]}),Xi=(e,t)=>{const[i,r]=g(!1),[n,a]=g(e),l=()=>{r(!1),a(e)};return{isEditing:i,cancelEdit:l,editValue:n,setEditValue:a,startEdit:()=>{r(!0)},submitEdit:()=>{t(n),l()}}},Gi=({dense:t,onClick:i})=>{const{typography:r}=I();return e(o,{size:"small",onClick:i,sx:{ml:t?.5:1},"aria-label":"edit button",children:e(Ue,{sx:{fontSize:r.pxToRem(t?18:24)}})})},Ui="-",_i=e=>`label-${e.replace(/ /g,"-")}`,Ji=({label:i,hideLabel:r,tooltip:n,tooltipEnterDelay:l=2e3,children:o,dense:d,sx:c})=>{const{typography:s}=I(),m=_i(i);return t(a,{width:1,lineHeight:d?0:void 0,sx:c,children:[!r&&e(z,{variant:d?"caption":"subtitle2",role:"label",id:m,lineHeight:d?s.pxToRem(15):void 0,children:i}),n?e(T,{title:n,placement:"top",enterDelay:l,children:o}):o]})},Ki=({label:i,value:r,placeholder:n=Ui,editable:l,dense:o,onEdit:d=(()=>null)})=>{const c=y(null),{isEditing:s,editValue:m,startEdit:p,cancelEdit:u,setEditValue:h,submitEdit:g}=Xi(r?.toString(),d),f=_i(i),b=r?.toString()||n,x=e=>{"Enter"===e.key&&d(e.target.value)};return C((()=>(c.current?.addEventListener("keypress",x),()=>c.current?.removeEventListener("keypress",x))),[c.current]),e(Ji,{hideLabel:s,label:i,tooltip:b,dense:o,children:s?e(K,{inputRef:c,value:m,label:i,size:"small",onChange:e=>h(e.target.value),InputProps:{endAdornment:e(Yi,{onClickCancel:u,onClickSubmit:g})},sx:{marginY:o?0:1}}):t(a,{display:"flex","aria-labelledby":f,children:[e(z,{variant:o?"body1":"h5",noWrap:!0,children:b}),l&&e(Gi,{dense:o,onClick:p})]})})},Qi=({children:t})=>e(k,{sx:{p:2},children:t}),Zi=({label:i,value:r,placeholder:n=Ui,editable:l,dense:o,onEdit:d=(()=>null)})=>{const c=_i(i),{typography:s}=I(),{isEditing:m,editValue:u,startEdit:h,cancelEdit:g,setEditValue:f,submitEdit:b}=Xi(r,d),x={fontSize:o?s.h6.fontSize:s.h5.fontSize};return e(Ji,{label:i,dense:o,children:t(a,m?{display:"flex",alignItems:"center",children:[e(_e,{size:o?"small":"medium",checked:u,onChange:e=>f(e.target.checked)}),e(Yi,{onClickCancel:g,onClickSubmit:b})]}:{display:"flex",alignItems:"center","aria-labelledby":c,role:"checkbox","aria-checked":r,children:[void 0===r?e(z,{variant:"h5",children:n}):r?e(Xe,{color:"success",sx:x}):e(p,{color:"error",sx:x}),l&&e(Gi,{dense:o,onClick:h})]})})},er=({label:r,value:n,format:l,placeholder:o=Ui,editable:d,editInputType:c="datetime",dense:s,onEdit:m=(()=>null)})=>{const{isEditing:p,editValue:u,startEdit:h,cancelEdit:g,setEditValue:f,submitEdit:b}=Xi(n,m),x=_i(r),y=n&&We(n,l)||o;return e(Ji,{label:r,hideLabel:p,tooltip:y,dense:s,sx:{display:"flex",flexDirection:"column"},children:p?e("datetime"===c?Ke:"time"===c?Qe:Je,{value:u,format:l,label:r,onChange:e=>f(e||void 0),slots:{textField:r=>e(K,{...r,size:"small",InputProps:{...r.InputProps,endAdornment:t(i,{children:[r.InputProps?.endAdornment,e(Yi,{onClickCancel:g,onClickSubmit:b,sx:{ml:2}})]}),sx:{marginY:s?.2:1}}})}}):t(a,{display:"flex",alignItems:"center","aria-labelledby":x,children:[e(z,{variant:s?"body1":"h5",noWrap:!0,children:y}),d&&e(Gi,{dense:s,onClick:h})]})})},tr=({title:i,subtitle:r,centered:n,children:l,dense:o})=>{const{typography:d}=I(),c=gt({lightWeight:200,darkWeight:800});return t(k,{sx:{paddingBottom:o?0:1},children:[t(a,{bgcolor:c,px:o?1:2,py:o?.5:1,lineHeight:o?0:void 0,children:[e(z,{variant:o?"body1":"h6",role:"heading","aria-level":1,children:i}),r&&e(z,{variant:o?"caption":"body2",role:"heading","aria-level":2,lineHeight:o?d.pxToRem(15):void 0,children:r})]}),e(B,{container:!0,padding:1,rowSpacing:o?1:2,justifyContent:n?"center":"flex-start",children:l})]})},ir=({label:i,value:r=0,maxRating:n=5,editable:l,dense:o,onEdit:d=(()=>null)})=>{const{isEditing:c,editValue:s,startEdit:m,cancelEdit:p,setEditValue:u,submitEdit:h}=Xi(r,d),g=_i(i);return e(Ji,{label:i,tooltip:r.toString(),dense:o,children:t(a,{display:"flex",alignItems:"center","aria-labelledby":g,children:[e(Ze,{readOnly:!c,max:n,size:o?"small":"medium",value:c?s:r,onChange:(e,t)=>{Number.isNaN(t)&&e.currentTarget.value?u(parseInt(e.currentTarget.value,10)):t&&u(t)}}),l&&!c&&e(Gi,{dense:o,onClick:m}),c&&e(Yi,{onClickCancel:p,onClickSubmit:h})]})})},rr={root:"RdsValueItem-root",content:"RdsValueItem-content"},nr=({children:t,bordered:i=!0,...r})=>{const n=((e,t)=>{const i=`solid ${t} 1px`,r="none";if(e){if(Array.isArray(e))return e.map((e=>e?i:r));if("object"==typeof e){const t={};return Object.entries(e).forEach((([e,n])=>{t[e]=n?i:r})),t}return i}})(i,gt({lightWeight:200,darkWeight:800}));return e(B,{item:!0,className:rr.root,...r,children:e(a,{className:rr.content,px:1,borderLeft:n,children:t})})},ar=({label:t,value:i,placeholder:r=Ui,color:n,variant:a})=>{const l=_i(t),o=Array.isArray(i)?i.map(((t,i)=>e(Tt,{text:t.toString()||r,variant:Array.isArray(a)?a[i]:a,color:Array.isArray(n)?n[i]:n},i))):e(Tt,{text:i?.toString()||r,variant:Array.isArray(a)?a[0]:a,color:Array.isArray(n)?n[0]:n});return e(Ji,{label:t,children:e(B,{container:!0,gap:1,"aria-labelledby":l,children:o})})},lr=({drawerProviderProps:i,children:r})=>{const[n,a,l]=r;return t(Kt,{...i,children:[n,a,e(pi,{children:l})]})},or=()=>e(et,{color:"error",sx:{width:200,height:200}}),dr=({loading:i,children:r,fetching:n,error:l})=>{const[o,d]=r;return e(Wt,{children:t(a,{display:"flex",flexDirection:"column",height:1,children:[o,n&&e(a,{width:1,children:e(me,{})}),i&&e(ui,{}),l&&e(a,{mt:4,children:e(Vi,{icon:l.icon||or,title:l.title||"There has been an error",subtitle:l.message})}),!i&&!l&&d]})})},cr=new Error("NotificationCenterContext.Provider is required and was undefined"),sr=f(void 0),mr=()=>{const e=b(sr);if(void 0===e)throw cr;return e},pr=({children:i,autoHideDuration:n=6e3})=>{const[a,l]=g(void 0),[o,d]=g(!1),s=()=>{d(!1)};return t(sr.Provider,{value:{show:e=>{l(e),d(!0)},hide:s},children:[e(tt,{open:o,autoHideDuration:n,onClose:s,anchorOrigin:{vertical:"top",horizontal:"right"},children:t(r,{onClose:s,severity:a?.severity,"aria-label":a?.severity,sx:{width:"100%"},children:[a?.title&&e(c,{children:a?.title}),a?.message]})}),i]})},ur=(e,t,{from:i,to:r})=>{const n=y(void 0),{show:a}=mr();C((()=>{n.current===i&&t===r&&a(e),n.current=t}),[t])},hr=(t,i,{dense:r}={})=>{const{id:n,name:a,type:l}=t,o=i[n];return"boolean"===l?e(Zi,{dense:r,label:a,value:o}):"date"===l||"time"===l||"datetime"===l?e(er,{dense:r,label:a,value:o,format:t.format}):"object"!=typeof o||Array.isArray(o)?e(Ki,{dense:r,label:a,value:o?.toString()}):e(Ki,{dense:r,label:a,value:JSON.stringify(o)})},gr=({field:{name:t,description:i,value:r},instance:n,dense:a})=>{const l=[{field:"id",headerName:"ID",width:70}];r.forEach((e=>{l.push({field:e.id,headerName:e.name})}));const o=n.map(((e,t)=>({id:t,...e})));return e(tr,{title:t,subtitle:i,dense:a,children:e(B,{item:!0,xs:12,children:e(it,{rows:o,columns:l,density:a?"compact":"standard",disableRowSelectionOnClick:!0,pageSizeOptions:[5],initialState:{pagination:{paginationModel:{pageSize:5}}},sx:{height:400}})})})},fr=({field:{name:t,description:i,value:r},instance:n,dense:a})=>{const l=ft();return e(tr,{title:t,subtitle:i,dense:a,children:r.map((t=>{const{id:i,xs:r,sm:o,md:d,lg:c,xl:s}=t,m=l.increment(t);return e(nr,{xs:r,sm:o,md:d,lg:c,xl:s,bordered:m,children:hr(t,n,{dense:a})},i)}))})},br=({model:t,instance:i,dense:r})=>{const n=ft();return e(B,{container:!0,spacing:r?1:2,children:t.fields.map((t=>{const{id:a,type:l,xs:o=3,sm:d=0,md:c=0,lg:s=0,xl:m=0}=t;if("group"===l)return n.increment({xs:12}),e(B,{item:!0,xs:12,children:e(fr,{field:t,instance:i[a],dense:r})},a);if("group[]"===l)return n.increment({xs:12}),e(B,{item:!0,xs:12,children:e(gr,{field:t,instance:i[a],dense:r})},a);const p=n.increment(t);return e(nr,{xs:o,sm:d,md:c,lg:s,xl:m,bordered:p,children:hr(t,i,{dense:r})},a)}))})},xr={string:"",number:0,boolean:!1,enum:"",multienum:[],date:new Date(1970,0,1,0,0),time:new Date(1970,0,1,0,0),datetime:new Date(1970,0,1,0,0),group:{},"group[]":[],"string[]":[],"number[]":[]},yr=(e,t)=>t&&t[e.id]||"default"in e&&e.default||xr[e.type],vr=(e,t=undefined)=>{const i={};return e.fields.forEach((e=>{if("group"===e.type){const r={};e.value.forEach((i=>{r[i.id]=yr(i,t&&t[e.id])})),i[e.id]=r}else i[e.id]=yr(e,t)})),i},Cr=({field:i,path:r=[],value:n,dense:l,update:o,onChangeValue:d})=>{const c=e=>{e.preventDefault(),d([...r,e.target.name],e.target.checked)},s=e=>{e.preventDefault(),d([...r,e.target.name],e.target.value)},m=e=>{e.preventDefault();const{value:t}=e.target,i="string"==typeof t?t.split(","):t;d([...r,e.target.name],i)},p=(e,t)=>{e.preventDefault();let i=e.target.value;"number"===t&&"string"==typeof i?i=parseInt(e.target.value,10):t.includes("[]")&&(i=e.target.value.split(",")),d([...r,e.target.name],i)},u=(e,t)=>{d([...r,t],e)};gt({lightWeight:200,darkWeight:800});const{id:h,type:g,name:f,description:b,updatable:x=!0,required:y=!0,xs:v,sm:C,md:w,lg:k,xl:S}=i,T=!x&&o;let z;const I=l?"small":"medium";if("group"===g)z=e(tr,{title:f,subtitle:b,dense:l,children:e(B,{container:!0,spacing:2,sx:{p:2},children:i.value.map((t=>e(Cr,{field:t,dense:l,path:[...r,h],value:n[t.id],update:o,onChangeValue:d},t.id)))})});else if("boolean"===g)z=e(a,{sx:{height:1,display:"flex",alignItems:"center"},children:e(rt,{control:e(nt,{name:h,size:I,onChange:c,checked:n,disabled:T}),label:f})});else if("enum"===g)z=t(ue,{fullWidth:!0,children:[e(he,{id:`${h}-select-label`,children:f}),e(fe,{labelId:`${h}-select-label`,id:`${h}-select`,value:n,label:f,name:h,size:I,onChange:s,required:y,disabled:T,children:i.value.map((t=>e(at,{value:t,children:t},t)))})]});else if("multienum"===g)z=t(ue,{fullWidth:!0,children:[e(he,{id:`${h}-select-label`,children:f}),e(fe,{labelId:`${h}-select-label`,id:`${h}-select`,value:n||[],renderValue:e=>e.join(", "),label:f,name:h,size:I,onChange:m,required:y,disabled:T,multiple:!0,children:i.value.map((i=>t(at,{value:i,children:[e(nt,{checked:(n||[]).includes(i)}),e(V,{primary:i})]},i)))})]});else if("date"===g)z=e(Be,{label:f,format:i.format,value:n,slotProps:{field:{size:I}},disabled:T,onChange:e=>u(e,h)});else if("time"===g)z=e(Re,{label:f,format:i.format,value:n,slotProps:{field:{size:I}},disabled:T,onChange:e=>u(e,h)});else if("datetime"===g)z=e($e,{label:f,format:i.format,value:n,slotProps:{field:{size:I}},disabled:T,onChange:e=>u(e,h)});else{if("group[]"===g)return null;z=g.includes("[]")?e(K,{required:y,type:"text",label:f,name:h,size:I,variant:"outlined",helperText:"Use comas to separate multiple values",fullWidth:!0,disabled:T,value:n.join(","),onChange:e=>p(e,g)}):e(K,{required:y,type:g,label:f,size:I,name:h,variant:"outlined",fullWidth:!0,value:n,disabled:T,onChange:e=>p(e,g)})}return e(B,{item:!0,xs:v,sm:C,md:w,lg:k,xl:S,children:z},h)};function wr(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function kr(e){return function t(i){return 0===arguments.length||wr(i)?t:e.apply(this,arguments)}}function Sr(e){return function t(i,r){switch(arguments.length){case 0:return t;case 1:return wr(i)?t:kr((function(t){return e(i,t)}));default:return wr(i)&&wr(r)?t:wr(i)?kr((function(t){return e(t,r)})):wr(r)?kr((function(t){return e(i,t)})):e(i,r)}}}function Tr(e){return function t(i,r,n){switch(arguments.length){case 0:return t;case 1:return wr(i)?t:Sr((function(t,r){return e(i,t,r)}));case 2:return wr(i)&&wr(r)?t:wr(i)?Sr((function(t,i){return e(t,r,i)})):wr(r)?Sr((function(t,r){return e(i,t,r)})):kr((function(t){return e(i,r,t)}));default:return wr(i)&&wr(r)&&wr(n)?t:wr(i)&&wr(r)?Sr((function(t,i){return e(t,i,n)})):wr(i)&&wr(n)?Sr((function(t,i){return e(t,r,i)})):wr(r)&&wr(n)?Sr((function(t,r){return e(i,t,r)})):wr(i)?kr((function(t){return e(t,r,n)})):wr(r)?kr((function(t){return e(i,t,n)})):wr(n)?kr((function(t){return e(i,r,t)})):e(i,r,n)}}}var zr=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};var Ir=Number.isInteger||function(e){return e<<0===e};var Ar=kr((function(e){return null==e})),Wr=Tr((function e(t,i,r){if(0===t.length)return i;var n=t[0];if(t.length>1){var a=!Ar(r)&&function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}(n,r)&&"object"==typeof r[n]?r[n]:Ir(t[1])?[]:{};i=e(Array.prototype.slice.call(t,1),i,a)}return function(e,t,i){if(Ir(e)&&zr(i)){var r=[].concat(i);return r[e]=t,r}var n={};for(var a in i)n[a]=i[a];return n[e]=t,n}(n,i,r)}));const Pr=({model:i,saveButtonText:r,dense:n,onSubmit:a,initialValues:l})=>{const o=w((()=>vr(i,l)),[i,l]),[d,c]=g(o),s=(e,t)=>{c((i=>Wr(e,t,i)))};return t(B,{container:!0,component:"form",spacing:2,onSubmit:e=>{e.preventDefault(),a(d)},children:[i.fields.map((t=>e(Cr,{dense:n,field:t,value:d[t.id],update:!!l,onChangeValue:s},t.id))),e(B,{item:!0,xs:12,children:e(N,{type:"submit",variant:"contained",size:n?"small":"medium",children:r})})]})},Er=({columns:r,options:n,data:a,onClick:l,search:d,defaultSort:c,defaultOrder:s,loading:m})=>{const p=[...r,{id:"__options",label:"",disablePadding:!1,numeric:!1,sort:!1}],[u,h]=g(null);return t(i,{children:[e(Ni,{columns:p,data:a,search:d,defaultSort:c,defaultOrder:s,loading:m,children:i=>i.map(((i,r)=>t(Fe,{onClick:()=>l&&l(i),role:"row","aria-rowindex":r,sx:{cursor:l&&"pointer"},children:[p.map((({id:t},n)=>e(He,{role:"cell",scope:"row","aria-rowindex":r,"aria-colindex":n,children:i[t]},t.toString()))),n&&e(He,{children:e(o,{"data-testid":`options-${i.id}`,onClick:e=>{e.stopPropagation(),h({item:i,anchor:e.currentTarget})},children:e(ot,{})})})]},i.id)))}),n&&e(lt,{anchorEl:u?.anchor,open:!!u,onClose:()=>h(null),anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:n.map((({id:t,label:i,onClick:r})=>e(at,{onClick:()=>{u&&r(u?.item),h(null)},children:i},t)))})]})};export{Ai as Action,Ii as ActionHeader,wi as Autocomplete,dt as Board,Rt as BootstrapDialog,kt as Bullet,pt as CenterContainer,$t as ConfirmDialog,mt as Content,ji as ContentPlaceholder,Ti as DateRangeCalendar,zi as DateRangePicker,Ui as DefaultPlaceholder,Ut as Drawer,ci as DrawerAppBar,li as DrawerContent,Ot as DrawerContext,Nt as DrawerHeader,lr as DrawerLayout,pi as DrawerMain,Kt as DrawerProvider,ai as DrawerSection,Qt as DrawerSubheader,qi as EnhancedRemoteTable,Ni as EnhancedTable,Hi as EnhancedTableHead,st as ExpandableAlert,Vt as FormDialog,tr as GroupValueCard,Dt as Header,dr as HeaderLayout,Et as HeaderSubtitle,Pt as HeaderTitle,Tt as Label,Ct as ListPanel,xt as ListPanelContext,yt as ListPanelContextProvider,ui as LoadingArea,Pr as ModelForm,sr as NotificationCenterContext,pr as NotificationCenterProvider,cr as NotificationCenterProviderUndefinedError,br as ObjectDetails,Vi as Placeholder,hi as QueryContainer,fi as Select,bi as SignIn,Li as SkeletonCard,Oi as SkeletonGrid,Bi as TabCard,Ri as TabCardPanel,zt as TabContext,It as TabContextProvider,$i as TabPanel,Wt as TabProvider,Er as TableList,Ci as TextField,jt as UndefinedProvider,Zi as ValueBoolean,Qi as ValueCard,er as ValueDatetime,Gi as ValueEditButton,Yi as ValueEditButtons,nr as ValueItem,ar as ValueLabel,ir as ValueRating,Ki as ValueText,wt as bulletClasses,Zt as getDrawerItemColors,bt as getFormData,ht as getRandomItem,St as labelClasses,Bt as markdownMuiOptions,ut as newArrayWithSize,ft as newBreakpointsCounter,vr as newInstanceFromValuesOrZeroValue,Lt as useDialog,Mt as useDrawer,Xi as useEditableValueDisplay,gt as useGetDefaultThemeColor,vt as useListPanel,mr as useNotificationCenter,ur as useNotifyWhenValueChanges,At as useTab,rr as valueItemClasses};
24
2
  //# sourceMappingURL=index.js.map