@plumile/backoffice-react 0.1.103 → 0.1.105

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 (228) hide show
  1. package/lib/esm/{AcceptInvitationScreen-B1IPafwD.js → AcceptInvitationScreen-VaWXQPHp.js} +4 -4
  2. package/lib/esm/AcceptInvitationScreen-VaWXQPHp.js.map +1 -0
  3. package/lib/esm/{BackofficeAcceptInvitationPage-BfRsORii.js → BackofficeAcceptInvitationPage-tpfBfhT9.js} +4 -4
  4. package/lib/esm/{BackofficeAcceptInvitationPage-BfRsORii.js.map → BackofficeAcceptInvitationPage-tpfBfhT9.js.map} +1 -1
  5. package/lib/esm/BackofficeDashboardPage-D5W36DY-.js +329 -0
  6. package/lib/esm/BackofficeDashboardPage-D5W36DY-.js.map +1 -0
  7. package/lib/esm/BackofficeDetailPayload-CZcsDv2w.js +98 -0
  8. package/lib/esm/BackofficeDetailPayload-CZcsDv2w.js.map +1 -0
  9. package/lib/esm/BackofficeEntityActionFormDialog-DrZxuytz.js +589 -0
  10. package/lib/esm/BackofficeEntityActionFormDialog-DrZxuytz.js.map +1 -0
  11. package/lib/esm/{BackofficeEntityDetailLayoutContext-DeuH5PCW.js → BackofficeEntityDetailLayoutContext-C5G-PH28.js} +1 -1
  12. package/lib/esm/{BackofficeEntityDetailLayoutContext-DeuH5PCW.js.map → BackofficeEntityDetailLayoutContext-C5G-PH28.js.map} +1 -1
  13. package/lib/esm/{BackofficeEntityDetailLayoutPage-Duc_DcIV.js → BackofficeEntityDetailLayoutPage-BSgGBzSL.js} +2 -2
  14. package/lib/esm/{BackofficeEntityDetailLayoutPage-Duc_DcIV.js.map → BackofficeEntityDetailLayoutPage-BSgGBzSL.js.map} +1 -1
  15. package/lib/esm/{BackofficeEntityDetailPage-ChxBrqz8.js → BackofficeEntityDetailPage-LB1uEJVM.js} +366 -358
  16. package/lib/esm/BackofficeEntityDetailPage-LB1uEJVM.js.map +1 -0
  17. package/lib/esm/{BackofficeEntityDetailUnknownPageRedirect-xupMeril.js → BackofficeEntityDetailUnknownPageRedirect-Iu4R3WvX.js} +3 -3
  18. package/lib/esm/{BackofficeEntityDetailUnknownPageRedirect-xupMeril.js.map → BackofficeEntityDetailUnknownPageRedirect-Iu4R3WvX.js.map} +1 -1
  19. package/lib/esm/BackofficeEntityListPage-D_zL-qRb.js +432 -0
  20. package/lib/esm/BackofficeEntityListPage-D_zL-qRb.js.map +1 -0
  21. package/lib/esm/BackofficeHubPage-DOePQ8Fc.js +121 -0
  22. package/lib/esm/BackofficeHubPage-DOePQ8Fc.js.map +1 -0
  23. package/lib/esm/BackofficeHubTemplate-C6K55egX.js +82 -0
  24. package/lib/esm/BackofficeHubTemplate-C6K55egX.js.map +1 -0
  25. package/lib/esm/{BackofficeLayoutPage-r6dXo9SI.js → BackofficeLayoutPage-Bq2bKkYF.js} +301 -217
  26. package/lib/esm/BackofficeLayoutPage-Bq2bKkYF.js.map +1 -0
  27. package/lib/esm/BackofficeListToolbar-loFfIPtP.js +109 -0
  28. package/lib/esm/BackofficeListToolbar-loFfIPtP.js.map +1 -0
  29. package/lib/esm/{BackofficeLoginPage-BMPhO1cr.js → BackofficeLoginPage-DIlcOueK.js} +5 -5
  30. package/lib/esm/{BackofficeLoginPage-BMPhO1cr.js.map → BackofficeLoginPage-DIlcOueK.js.map} +1 -1
  31. package/lib/esm/{BackofficePasswordResetCompletePage-OApMUiOi.js → BackofficePasswordResetCompletePage-Cit5sdDm.js} +6 -7
  32. package/lib/esm/{BackofficePasswordResetCompletePage-OApMUiOi.js.map → BackofficePasswordResetCompletePage-Cit5sdDm.js.map} +1 -1
  33. package/lib/esm/{BackofficePasswordResetRequestPage-DPDImb37.js → BackofficePasswordResetRequestPage-B_TurHev.js} +5 -6
  34. package/lib/esm/{BackofficePasswordResetRequestPage-DPDImb37.js.map → BackofficePasswordResetRequestPage-B_TurHev.js.map} +1 -1
  35. package/lib/esm/{BackofficePermissionsContext-CmWwudBU.js → BackofficePermissionsContext-C2bdxy2z.js} +1 -1
  36. package/lib/esm/{BackofficePermissionsContext-CmWwudBU.js.map → BackofficePermissionsContext-C2bdxy2z.js.map} +1 -1
  37. package/lib/esm/BackofficeRightPageLayout-CfNkrMvH.js +83 -0
  38. package/lib/esm/BackofficeRightPageLayout-CfNkrMvH.js.map +1 -0
  39. package/lib/esm/{BackofficeTopbarPortalContext-CphoSrZD.js → BackofficeTopbarPortalContext-Da5XFatM.js} +1 -1
  40. package/lib/esm/BackofficeTopbarPortalContext-Da5XFatM.js.map +1 -0
  41. package/lib/esm/{BackofficeVerifyEmailPage-DHuSOxDf.js → BackofficeVerifyEmailPage-DQbFIob1.js} +6 -7
  42. package/lib/esm/{BackofficeVerifyEmailPage-DHuSOxDf.js.map → BackofficeVerifyEmailPage-DQbFIob1.js.map} +1 -1
  43. package/lib/esm/EntityIdPickerDialog-BSn0v3bv.js +340 -0
  44. package/lib/esm/EntityIdPickerDialog-BSn0v3bv.js.map +1 -0
  45. package/lib/esm/LazyBackofficeEntityActionFormDialog-oRd_WHAK.js +670 -0
  46. package/lib/esm/LazyBackofficeEntityActionFormDialog-oRd_WHAK.js.map +1 -0
  47. package/lib/esm/backoffice-react.js +553 -315
  48. package/lib/esm/backoffice-react.js.map +1 -1
  49. package/lib/esm/{backofficeAuthPaths-2KMmkBLv.js → backofficeAuthPaths-2hHNn8D3.js} +1 -1
  50. package/lib/esm/{backofficeAuthPaths-2KMmkBLv.js.map → backofficeAuthPaths-2hHNn8D3.js.map} +1 -1
  51. package/lib/esm/backofficeEntityActionFormDialog.css-DJgEKwaA.js +6 -0
  52. package/lib/esm/backofficeEntityActionFormDialog.css-DJgEKwaA.js.map +1 -0
  53. package/lib/esm/{buildBreadcrumbs-C9cyiXb7.js → buildBreadcrumbs-C5St167Y.js} +1 -1
  54. package/lib/esm/buildBreadcrumbs-C5St167Y.js.map +1 -0
  55. package/lib/esm/{buildDataTableColumns-DGPjPK4N.js → buildDataTableColumns-DdmF-EYq.js} +1 -1
  56. package/lib/esm/{buildDataTableColumns-DGPjPK4N.js.map → buildDataTableColumns-DdmF-EYq.js.map} +1 -1
  57. package/lib/esm/{mutationResult-CcQMY13J.js → mutationResult-C2Vb_vPt.js} +1 -1
  58. package/lib/esm/{mutationResult-CcQMY13J.js.map → mutationResult-C2Vb_vPt.js.map} +1 -1
  59. package/lib/esm/{pageResolution-hAQA5C6S.js → pageResolution-CUaTq4Ql.js} +1 -1
  60. package/lib/esm/{pageResolution-hAQA5C6S.js.map → pageResolution-CUaTq4Ql.js.map} +1 -1
  61. package/lib/esm/{sidebarUtils-BZETlHea.js → sidebarUtils-BgCBLJLv.js} +20 -6
  62. package/lib/esm/sidebarUtils-BgCBLJLv.js.map +1 -0
  63. package/lib/esm/style.css +1 -1
  64. package/lib/esm/{synchronizeAuthStatusQuery-BoPKMrP1.js → synchronizeAuthStatusQuery-DNJR5MfH.js} +8 -9
  65. package/lib/esm/synchronizeAuthStatusQuery-DNJR5MfH.js.map +1 -0
  66. package/lib/esm/{toastViewAction-DJkv_4p9.js → toastViewAction-DQYlcGOL.js} +1 -1
  67. package/lib/esm/{toastViewAction-DJkv_4p9.js.map → toastViewAction-DQYlcGOL.js.map} +1 -1
  68. package/lib/esm/{useAuth-CheTnq60.js → useAuth-CWf8ZspF.js} +70 -66
  69. package/lib/esm/useAuth-CWf8ZspF.js.map +1 -0
  70. package/lib/esm/{useBackofficeAuth-DVAXNAjP.js → useBackofficeAuth-Da7FPNys.js} +2 -2
  71. package/lib/esm/{useBackofficeAuth-DVAXNAjP.js.map → useBackofficeAuth-Da7FPNys.js.map} +1 -1
  72. package/lib/esm/{useBackofficeLazyValue-CoIAK-5N.js → useBackofficeLazyValue-CW9xfRzQ.js} +1 -1
  73. package/lib/esm/{useBackofficeLazyValue-CoIAK-5N.js.map → useBackofficeLazyValue-CW9xfRzQ.js.map} +1 -1
  74. package/lib/esm/{useBackofficeListUrlState-D4fx5O7u.js → useBackofficeListUrlState-Ca6d7uIN.js} +1 -1
  75. package/lib/esm/useBackofficeListUrlState-Ca6d7uIN.js.map +1 -0
  76. package/lib/types/auth/login/LoginFlow.d.ts.map +1 -1
  77. package/lib/types/auth/login/MfaChallengeForm.d.ts.map +1 -1
  78. package/lib/types/auth/login/PasskeyLoginForm.d.ts.map +1 -1
  79. package/lib/types/auth/pages/AcceptInvitationScreen.d.ts.map +1 -1
  80. package/lib/types/components/backoffice/actions/BackofficeEntityActionFormDialog.d.ts.map +1 -1
  81. package/lib/types/components/backoffice/actions/LazyBackofficeEntityActionFormDialog.d.ts.map +1 -1
  82. package/lib/types/components/backoffice/actions/backofficeEntityActionFormDialog.css.d.ts +4 -0
  83. package/lib/types/components/backoffice/actions/backofficeEntityActionFormDialog.css.d.ts.map +1 -1
  84. package/lib/types/components/backoffice/detail/BackofficeDetailRelationLink.d.ts +3 -5
  85. package/lib/types/components/backoffice/detail/BackofficeDetailRelationLink.d.ts.map +1 -1
  86. package/lib/types/components/backoffice/detail/BackofficeDetailRelationListBlock.d.ts +3 -4
  87. package/lib/types/components/backoffice/detail/BackofficeDetailRelationListBlock.d.ts.map +1 -1
  88. package/lib/types/components/backoffice/detail/BackofficeDetailSection.d.ts.map +1 -1
  89. package/lib/types/components/backoffice/detail/backofficeDetailField.css.d.ts +1 -0
  90. package/lib/types/components/backoffice/detail/backofficeDetailField.css.d.ts.map +1 -1
  91. package/lib/types/components/backoffice/detail/backofficeDetailLayout.css.d.ts.map +1 -1
  92. package/lib/types/components/backoffice/detail/backofficeDetailRelationLink.css.d.ts +2 -0
  93. package/lib/types/components/backoffice/detail/backofficeDetailRelationLink.css.d.ts.map +1 -1
  94. package/lib/types/components/backoffice/filters/BackofficeFilterAction.d.ts +4 -4
  95. package/lib/types/components/backoffice/filters/BackofficeFilterAction.d.ts.map +1 -1
  96. package/lib/types/components/backoffice/filters/DeferredFilterSearchInput.d.ts +13 -0
  97. package/lib/types/components/backoffice/filters/DeferredFilterSearchInput.d.ts.map +1 -0
  98. package/lib/types/components/backoffice/filters/EntityIdFilterField.d.ts +4 -0
  99. package/lib/types/components/backoffice/filters/EntityIdFilterField.d.ts.map +1 -1
  100. package/lib/types/components/backoffice/filters/deferredFilterSearchInput.css.d.ts +3 -0
  101. package/lib/types/components/backoffice/filters/deferredFilterSearchInput.css.d.ts.map +1 -0
  102. package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts +3 -0
  103. package/lib/types/components/backoffice/filters/entityIdFilterField.css.d.ts.map +1 -1
  104. package/lib/types/components/backoffice/hub/BackofficeHubTemplate.d.ts +36 -0
  105. package/lib/types/components/backoffice/hub/BackofficeHubTemplate.d.ts.map +1 -0
  106. package/lib/types/{pages/backofficeHubPage.css.d.ts → components/backoffice/hub/backofficeHubTemplate.css.d.ts} +5 -3
  107. package/lib/types/components/backoffice/hub/backofficeHubTemplate.css.d.ts.map +1 -0
  108. package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.d.ts.map +1 -1
  109. package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.d.ts +2 -0
  110. package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarPortalContext.d.ts.map +1 -1
  111. package/lib/types/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.d.ts +3 -0
  112. package/lib/types/components/backoffice/layout/breadcrumb/backofficeTopbarBreadcrumb.css.d.ts.map +1 -1
  113. package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts +2 -2
  114. package/lib/types/components/backoffice/layout/breadcrumb/buildBreadcrumbs.d.ts.map +1 -1
  115. package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts +1 -0
  116. package/lib/types/components/backoffice/layout/buildSidebarSections.d.ts.map +1 -1
  117. package/lib/types/components/backoffice/layout/sidebarUtils.d.ts +2 -1
  118. package/lib/types/components/backoffice/layout/sidebarUtils.d.ts.map +1 -1
  119. package/lib/types/components/backoffice/lists/BackofficeListToolbar.d.ts +16 -0
  120. package/lib/types/components/backoffice/lists/BackofficeListToolbar.d.ts.map +1 -0
  121. package/lib/types/components/backoffice/lists/backofficeListToolbar.css.d.ts +16 -0
  122. package/lib/types/components/backoffice/lists/backofficeListToolbar.css.d.ts.map +1 -0
  123. package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts +1 -1
  124. package/lib/types/components/backoffice/pickers/EntityIdPickerDialog.d.ts.map +1 -1
  125. package/lib/types/components/backoffice/pickers/entityIdPickerDialog.css.d.ts +2 -0
  126. package/lib/types/components/backoffice/pickers/entityIdPickerDialog.css.d.ts.map +1 -1
  127. package/lib/types/components/backoffice/pickers/shared/EntityPickerList.d.ts.map +1 -1
  128. package/lib/types/components/backoffice/pickers/shared/EntityPickerShell.d.ts.map +1 -1
  129. package/lib/types/components/backoffice/pickers/types.d.ts +1 -1
  130. package/lib/types/components/backoffice/pickers/types.d.ts.map +1 -1
  131. package/lib/types/components/backoffice/refs/BackofficeEntityIdRef.d.ts +4 -4
  132. package/lib/types/components/backoffice/refs/BackofficeEntityIdRef.d.ts.map +1 -1
  133. package/lib/types/components/backoffice/refs/BackofficeRelatedCountLink.d.ts.map +1 -1
  134. package/lib/types/components/backoffice/refs/backofficeRelatedCountLink.css.d.ts +2 -0
  135. package/lib/types/components/backoffice/refs/backofficeRelatedCountLink.css.d.ts.map +1 -1
  136. package/lib/types/components/backoffice/routing/BackofficeContentError.d.ts +1 -1
  137. package/lib/types/components/backoffice/routing/BackofficeContentError.d.ts.map +1 -1
  138. package/lib/types/components/backoffice/routing/BackofficeRouteFallback.d.ts +4 -0
  139. package/lib/types/components/backoffice/routing/BackofficeRouteFallback.d.ts.map +1 -1
  140. package/lib/types/components/backoffice/scaffolds/BackofficeEntityDetailScaffold.d.ts.map +1 -1
  141. package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts +10 -6
  142. package/lib/types/components/backoffice/scaffolds/BackofficeEntityListScaffold.d.ts.map +1 -1
  143. package/lib/types/components/backoffice/scaffolds/BackofficeListFilterContext.d.ts +3 -3
  144. package/lib/types/components/backoffice/scaffolds/BackofficeListFilterContext.d.ts.map +1 -1
  145. package/lib/types/components/backoffice/scaffolds/backofficeEntityListScaffold.css.d.ts.map +1 -1
  146. package/lib/types/components/backoffice/shared/BackofficeFilterableCell.d.ts +13 -0
  147. package/lib/types/components/backoffice/shared/BackofficeFilterableCell.d.ts.map +1 -0
  148. package/lib/types/components/backoffice/shared/backofficeFilterableCell.css.d.ts +12 -0
  149. package/lib/types/components/backoffice/shared/backofficeFilterableCell.css.d.ts.map +1 -0
  150. package/lib/types/components/backoffice/shared/backofficeInlineFilterRow.css.d.ts.map +1 -1
  151. package/lib/types/filters/filterHelpers.d.ts +3 -3
  152. package/lib/types/filters/filterHelpers.d.ts.map +1 -1
  153. package/lib/types/hooks/useAuth.d.ts.map +1 -1
  154. package/lib/types/hooks/useBackofficeInfiniteScrollSentinel.d.ts.map +1 -1
  155. package/lib/types/hooks/useBackofficeListRefetch.d.ts +7 -3
  156. package/lib/types/hooks/useBackofficeListRefetch.d.ts.map +1 -1
  157. package/lib/types/hooks/useBackofficeListUrlState.d.ts +2 -2
  158. package/lib/types/hooks/useBackofficeListUrlState.d.ts.map +1 -1
  159. package/lib/types/i18n/resources.d.ts +84 -7
  160. package/lib/types/i18n/resources.d.ts.map +1 -1
  161. package/lib/types/index.d.ts +3 -0
  162. package/lib/types/index.d.ts.map +1 -1
  163. package/lib/types/pages/BackofficeDashboardPage.d.ts.map +1 -1
  164. package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
  165. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts +3 -8
  166. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts.map +1 -1
  167. package/lib/types/pages/BackofficeEntityListPage.d.ts +2 -2
  168. package/lib/types/pages/BackofficeEntityListPage.d.ts.map +1 -1
  169. package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts +8 -4
  170. package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts.map +1 -1
  171. package/lib/types/pages/BackofficeHubPage.d.ts.map +1 -1
  172. package/lib/types/pages/BackofficeLayoutPage.d.ts.map +1 -1
  173. package/lib/types/pages/BackofficePasswordResetCompletePage.d.ts.map +1 -1
  174. package/lib/types/pages/BackofficePasswordResetRequestPage.d.ts.map +1 -1
  175. package/lib/types/pages/BackofficeVerifyEmailPage.d.ts.map +1 -1
  176. package/lib/types/pages/backofficeDashboardPage.css.d.ts +1 -14
  177. package/lib/types/pages/backofficeDashboardPage.css.d.ts.map +1 -1
  178. package/lib/types/pages/backofficeEntityDetailPage.css.d.ts +2 -0
  179. package/lib/types/pages/backofficeEntityDetailPage.css.d.ts.map +1 -1
  180. package/lib/types/pages/dashboard/DashboardMetricGroup.d.ts +14 -0
  181. package/lib/types/pages/dashboard/DashboardMetricGroup.d.ts.map +1 -0
  182. package/lib/types/pages/dashboard/DashboardPanel.d.ts +9 -0
  183. package/lib/types/pages/dashboard/DashboardPanel.d.ts.map +1 -0
  184. package/lib/types/pages/dashboard/DashboardQuickActions.d.ts +13 -0
  185. package/lib/types/pages/dashboard/DashboardQuickActions.d.ts.map +1 -0
  186. package/lib/types/pages/dashboard/DashboardStatusList.d.ts +13 -0
  187. package/lib/types/pages/dashboard/DashboardStatusList.d.ts.map +1 -0
  188. package/lib/types/pages/dashboard/dashboardMetricGroup.css.d.ts +4 -0
  189. package/lib/types/pages/dashboard/dashboardMetricGroup.css.d.ts.map +1 -0
  190. package/lib/types/pages/dashboard/dashboardPanel.css.d.ts +2 -0
  191. package/lib/types/pages/dashboard/dashboardPanel.css.d.ts.map +1 -0
  192. package/lib/types/pages/dashboard/dashboardQuickActions.css.d.ts +5 -0
  193. package/lib/types/pages/dashboard/dashboardQuickActions.css.d.ts.map +1 -0
  194. package/lib/types/pages/dashboard/dashboardStatusList.css.d.ts +6 -0
  195. package/lib/types/pages/dashboard/dashboardStatusList.css.d.ts.map +1 -0
  196. package/lib/types/provider/BackofficeProvider.d.ts.map +1 -1
  197. package/lib/types/provider/types.d.ts +5 -1
  198. package/lib/types/provider/types.d.ts.map +1 -1
  199. package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
  200. package/package.json +5 -5
  201. package/lib/esm/AcceptInvitationScreen-B1IPafwD.js.map +0 -1
  202. package/lib/esm/BackofficeDashboardPage-C0zP0QO7.js +0 -344
  203. package/lib/esm/BackofficeDashboardPage-C0zP0QO7.js.map +0 -1
  204. package/lib/esm/BackofficeDetailPayload-P61MDRLE.js +0 -94
  205. package/lib/esm/BackofficeDetailPayload-P61MDRLE.js.map +0 -1
  206. package/lib/esm/BackofficeEntityActionFormDialog-BgMuhyU8.js +0 -512
  207. package/lib/esm/BackofficeEntityActionFormDialog-BgMuhyU8.js.map +0 -1
  208. package/lib/esm/BackofficeEntityDetailPage-ChxBrqz8.js.map +0 -1
  209. package/lib/esm/BackofficeEntityListPage-BACvfX6c.js +0 -404
  210. package/lib/esm/BackofficeEntityListPage-BACvfX6c.js.map +0 -1
  211. package/lib/esm/BackofficeHubPage-BsUXulN0.js +0 -136
  212. package/lib/esm/BackofficeHubPage-BsUXulN0.js.map +0 -1
  213. package/lib/esm/BackofficeLayoutPage-r6dXo9SI.js.map +0 -1
  214. package/lib/esm/BackofficeRightPageLayout-BZb7LhT-.js +0 -53
  215. package/lib/esm/BackofficeRightPageLayout-BZb7LhT-.js.map +0 -1
  216. package/lib/esm/BackofficeTopbarPortalContext-CphoSrZD.js.map +0 -1
  217. package/lib/esm/EntityFilterValue-BWUdPBwp.js +0 -78
  218. package/lib/esm/EntityFilterValue-BWUdPBwp.js.map +0 -1
  219. package/lib/esm/EntityIdPickerDialog-Yhmr-WsV.js +0 -308
  220. package/lib/esm/EntityIdPickerDialog-Yhmr-WsV.js.map +0 -1
  221. package/lib/esm/LazyBackofficeEntityActionFormDialog-uyYFFJGM.js +0 -522
  222. package/lib/esm/LazyBackofficeEntityActionFormDialog-uyYFFJGM.js.map +0 -1
  223. package/lib/esm/buildBreadcrumbs-C9cyiXb7.js.map +0 -1
  224. package/lib/esm/sidebarUtils-BZETlHea.js.map +0 -1
  225. package/lib/esm/synchronizeAuthStatusQuery-BoPKMrP1.js.map +0 -1
  226. package/lib/esm/useAuth-CheTnq60.js.map +0 -1
  227. package/lib/esm/useBackofficeListUrlState-D4fx5O7u.js.map +0 -1
  228. package/lib/types/pages/backofficeHubPage.css.d.ts.map +0 -1
@@ -1,180 +1,188 @@
1
1
  import { t as e } from "./useRelayEnvironment-vQ86aW-n.js";
2
2
  import { r as t, t as n } from "./useBackofficeReactTranslation-Btt58EIo.js";
3
3
  import { t as r } from "./BackofficeErrorBoundary-BwRVSDHU.js";
4
- import { n as i } from "./EntityIdPickerDialog-Yhmr-WsV.js";
5
- import { a, n as o, r as s, t as c } from "./BackofficeDetailPayload-P61MDRLE.js";
6
- import { i as l } from "./mutationResult-CcQMY13J.js";
7
- import { t as u } from "./pageResolution-hAQA5C6S.js";
8
- import { t as d } from "./buildDataTableColumns-DGPjPK4N.js";
9
- import { t as f } from "./BackofficeRightPageLayout-BZb7LhT-.js";
10
- import { n as p, t as m } from "./toastViewAction-DJkv_4p9.js";
11
- import { n as h } from "./buildBreadcrumbs-C9cyiXb7.js";
12
- import { n as g } from "./BackofficeEntityDetailLayoutContext-DeuH5PCW.js";
13
- import { i as _, n as ee, r as v, t as y } from "./LazyBackofficeEntityActionFormDialog-uyYFFJGM.js";
14
- import { Fragment as b, Suspense as x, createElement as S, useCallback as C, useContext as w, useMemo as T, useState as E } from "react";
15
- import { useTranslation as D } from "react-i18next";
16
- import { HttpRedirect as O, Link as k, RoutingContext as A } from "@plumile/router";
17
- import { BackofficeKeyValueList as j, BackofficePageHeader as te, BackofficeRelationsMenu as ne, BackofficeTableSkeleton as M, BackofficeTabs as re, Button as N, ChatCheckSvg as ie, DataTable as ae, DetailPageTemplate as oe, FormattedDate as se, HighlightCode as ce, KeyOffSvg as P, KeySvg as le, LazyBackofficeJsonViewer as ue, LazyMarkdownRenderer as F, LinkButton as de, LockOpenSvg as fe, LockSvg as I, RobotCheckSvg as L, RobotXSvg as R, RocketOffSvg as z, RocketSvg as B, SettingsCheckSvg as V, SettingsXSvg as H, ShieldLockSvg as U, ShieldOffSvg as W, Tag as G, XBadgeSvg as pe, cx as me, useToast as he } from "@plumile/ui";
18
- import * as ge from "react-relay";
19
- import { commitMutation as _e, useFragment as K, usePreloadedQuery as ve } from "react-relay";
20
- import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
21
- import { BACKOFFICE_DATE_TIME_OPTIONS as ye, BACKOFFICE_LIST_REFETCH_POLICY as be, BACKOFFICE_RELATED_TAB_PAGE_SIZE as xe } from "@plumile/backoffice-core/constants.js";
22
- import { buildBackofficeFallbackListHref as Se, buildBackofficeListHref as Ce, buildBackofficeListLink as we } from "@plumile/backoffice-core/state/buildListHref.js";
23
- import { setWhereValue as Te } from "@plumile/backoffice-core/filters/where.js";
4
+ import { n as i } from "./EntityIdPickerDialog-BSn0v3bv.js";
5
+ import { a, n as o, r as s, t as c } from "./BackofficeDetailPayload-CZcsDv2w.js";
6
+ import { i as l } from "./mutationResult-C2Vb_vPt.js";
7
+ import { t as u } from "./pageResolution-CUaTq4Ql.js";
8
+ import { t as d } from "./buildDataTableColumns-DdmF-EYq.js";
9
+ import { t as f } from "./BackofficeRightPageLayout-CfNkrMvH.js";
10
+ import { n as p, t as m } from "./toastViewAction-DQYlcGOL.js";
11
+ import { n as h } from "./buildBreadcrumbs-C5St167Y.js";
12
+ import { n as g } from "./BackofficeEntityDetailLayoutContext-C5G-PH28.js";
13
+ import { i as _, n as v, r as y, t as b } from "./LazyBackofficeEntityActionFormDialog-oRd_WHAK.js";
14
+ import { Fragment as x, Suspense as S, createElement as C, useCallback as w, useContext as T, useMemo as E, useState as D } from "react";
15
+ import { useTranslation as O } from "react-i18next";
16
+ import { HttpRedirect as k, Link as A, RoutingContext as j } from "@plumile/router";
17
+ import { BackofficeEmptyState as M, BackofficeKeyValueList as N, BackofficePageHeader as ee, BackofficeRelationsMenu as te, BackofficeTableSkeleton as P, BackofficeTabs as ne, Button as re, ChatCheckSvg as F, DataTable as ie, DetailPageTemplate as ae, FormattedDate as oe, HighlightCode as se, InlineBanner as ce, KeyOffSvg as I, KeySvg as le, LazyBackofficeJsonViewer as ue, LazyMarkdownRenderer as L, LinkButton as de, LockOpenSvg as R, LockSvg as z, RobotCheckSvg as B, RobotXSvg as V, RocketOffSvg as H, RocketSvg as U, SettingsCheckSvg as W, SettingsXSvg as G, ShieldLockSvg as K, ShieldOffSvg as fe, Tag as q, XBadgeSvg as pe, cx as me, useToast as J } from "@plumile/ui";
18
+ import * as he from "react-relay";
19
+ import { commitMutation as ge, useFragment as _e, usePreloadedQuery as ve } from "react-relay";
20
+ import { Fragment as ye, jsx as Y, jsxs as X } from "react/jsx-runtime";
21
+ import { BACKOFFICE_DATE_TIME_OPTIONS as be, BACKOFFICE_LIST_REFETCH_POLICY as xe, BACKOFFICE_RELATED_TAB_PAGE_SIZE as Se } from "@plumile/backoffice-core/constants.js";
22
+ import { buildBackofficeFallbackListHref as Ce, buildBackofficeListHref as we, buildBackofficeListLink as Te } from "@plumile/backoffice-core/state/buildListHref.js";
23
+ import { setWhereValue as Ee } from "@plumile/backoffice-core/filters/where.js";
24
24
  //#region src/components/backoffice/scaffolds/BackofficeEntityDetailScaffold.tsx
25
- var Ee = ({ node: e, render: t, notFound: r }) => {
25
+ var De = ({ node: e, render: t, notFound: r }) => {
26
26
  let { t: i } = n(), a = r ?? i("detail.notFound");
27
- return e == null ? /* @__PURE__ */ J(q, { children: a }) : t(e) ?? /* @__PURE__ */ J(q, { children: a });
28
- }, De = "txvbqb9ip txvbqbcp txvbqbao7", Oe = "_1lzrtns0 txvbqb9ip txvbqbcp", ke = "_1lzrtns1", Ae = ({ tone: e, icon: t, label: n }) => {
27
+ return e == null ? /* @__PURE__ */ Y(M, { title: a }) : t(e) ?? /* @__PURE__ */ Y(M, { title: a });
28
+ }, Oe = "txvbqb9ip txvbqbcp txvbqbao7", ke = "_1lzrtns0 txvbqb9ip txvbqbcp", Ae = "_1lzrtns1", je = ({ tone: e, icon: t, label: n }) => {
29
29
  let r = t != null, i = null;
30
- return r && (i = /* @__PURE__ */ J("span", {
31
- className: Oe,
30
+ return r && (i = /* @__PURE__ */ Y("span", {
31
+ className: ke,
32
32
  children: t
33
- })), /* @__PURE__ */ J(G, {
33
+ })), /* @__PURE__ */ Y(q, {
34
34
  tone: e,
35
- children: /* @__PURE__ */ Y("span", {
36
- className: De,
37
- children: [i, /* @__PURE__ */ J("span", {
38
- className: ke,
35
+ children: /* @__PURE__ */ X("span", {
36
+ className: Oe,
37
+ children: [i, /* @__PURE__ */ Y("span", {
38
+ className: Ae,
39
39
  children: n
40
40
  })]
41
41
  })
42
42
  });
43
- }, je = "txvbqb9jg txvbqbcp txvbqbao7 txvbqbajy", Me = "txvbqb9jg txvbqbcp txvbqbany", Ne = ({ tag: e, value: t }) => /* @__PURE__ */ Y("span", {
44
- className: je,
45
- children: [e != null && /* @__PURE__ */ J(G, {
43
+ }, Me = "txvbqb9jg txvbqbcp txvbqbao7 txvbqbajy", Ne = "txvbqb9jg txvbqbcp txvbqbany", Pe = ({ tag: e, value: t }) => /* @__PURE__ */ X("span", {
44
+ className: Me,
45
+ children: [e != null && /* @__PURE__ */ Y(q, {
46
46
  tone: e.tone,
47
47
  children: e.label
48
- }), /* @__PURE__ */ J("span", {
49
- className: Me,
48
+ }), /* @__PURE__ */ Y("span", {
49
+ className: Ne,
50
50
  children: t
51
51
  })]
52
- }), Pe = "txvbqb9ip txvbqbai7 txvbqbaop", Fe = "txvbqb9ip txvbqbai7 txvbqbao7 txvbqblb7 txvbqb1ry", Ie = "txvbqb1cp txvbqb1qg txvbqbwp txvbqbv45", Le = "txvbqb9ip txvbqbai7 txvbqbany", Re = "txvbqbal7 txvbqb8y txvbqbva3", ze = "txvbqbamp", Be = "txvbqb8y", Ve = ({ title: e, description: t, items: r }) => {
52
+ }), Fe = "txvbqb9ip txvbqbai7 txvbqbaop", Ie = "txvbqb9ip txvbqbai7 txvbqbao7 txvbqblb7 txvbqb1ry", Le = "txvbqb1cp txvbqb1qg txvbqbwp txvbqbv45", Re = "txvbqb9ip txvbqbai7 txvbqbany", ze = "txvbqbal7 txvbqb8y txvbqbva3", Be = "txvbqbamp", Ve = "txvbqb8y", He = ({ title: e, description: t, items: r }) => {
53
53
  let { t: i } = n();
54
- return r.length === 0 ? null : /* @__PURE__ */ J(s, {
54
+ return r.length === 0 ? null : /* @__PURE__ */ Y(s, {
55
55
  title: e,
56
56
  description: t,
57
- children: /* @__PURE__ */ J("div", {
58
- className: Pe,
57
+ children: /* @__PURE__ */ Y("div", {
58
+ className: Fe,
59
59
  children: r.map((e, t) => {
60
60
  let n = i("common.notAvailable");
61
- return e.details != null && (n = o(e.details)), /* @__PURE__ */ Y("div", {
62
- className: me(Fe, Ie),
63
- children: [/* @__PURE__ */ Y("div", {
64
- className: Le,
65
- children: [/* @__PURE__ */ J("span", {
66
- className: Re,
67
- children: e.code
68
- }), /* @__PURE__ */ J("span", {
61
+ return e.details != null && (n = o(e.details)), /* @__PURE__ */ X("div", {
62
+ className: me(Ie, Le),
63
+ children: [/* @__PURE__ */ X("div", {
64
+ className: Re,
65
+ children: [/* @__PURE__ */ Y("span", {
69
66
  className: ze,
67
+ children: e.code
68
+ }), /* @__PURE__ */ Y("span", {
69
+ className: Be,
70
70
  children: e.message
71
71
  })]
72
- }), /* @__PURE__ */ J("div", {
73
- className: Be,
74
- children: /* @__PURE__ */ J(F, { content: n })
72
+ }), /* @__PURE__ */ Y("div", {
73
+ className: Ve,
74
+ children: /* @__PURE__ */ Y(L, { content: n })
75
75
  })]
76
76
  }, `${e.code}-${t}`);
77
77
  })
78
78
  })
79
79
  });
80
- }, { useLazyLoadQuery: He, usePaginationFragment: Ue } = ge, We = ({ title: e, config: t, entities: r, whereKey: i, value: a, path: o }) => {
81
- let { t: s } = D(), { t: c } = n();
82
- if (t.list.kind === "records") return null;
83
- let l = t.list, u = t.listDefaults ?? l.defaultState ?? {
80
+ }, { useLazyLoadQuery: Ue, usePaginationFragment: We } = he, Ge = () => {
81
+ let { t: e } = n();
82
+ return /* @__PURE__ */ Y(P, {
83
+ rows: 6,
84
+ ariaLabel: e("common.loading")
85
+ });
86
+ }, Ke = ({ title: e, config: t, entities: r, relation: i, value: a }) => {
87
+ let { t: o } = O(), { t: s } = n(), c = t.list, l = t.listDefaults ?? c.defaultState ?? {
84
88
  where: null,
85
89
  sort: null
86
- }, [f, p] = E({
87
- where: u.where,
88
- sort: u.sort ?? null
89
- }), m = T(() => a == null || a.trim() === "" ? null : Te(f.where, i, a, o), [
90
- o,
91
- f.where,
92
- a,
93
- i
94
- ]), h = m ?? f.where, g = f.sort ?? u.sort, y = T(() => ({
95
- where: h,
96
- sort: g,
97
- count: xe,
90
+ }, [u, f] = D({
91
+ where: l.where,
92
+ sort: l.sort ?? null
93
+ }), p = E(() => a == null || a.trim() === "" ? null : Ee(u.where, i.whereKey, a, i.path), [
94
+ i.path,
95
+ i.whereKey,
96
+ u.where,
97
+ a
98
+ ]), m = p ?? u.where, h = u.sort ?? l.sort, g = E(() => ({
99
+ where: m,
100
+ sort: h,
101
+ count: Se,
98
102
  cursor: null
99
- }), [h, g]), b = T(() => l.buildVariables == null ? y : l.buildVariables(y), [l, y]), x = He(l.query, b, { fetchPolicy: "store-or-network" }), { data: S, loadNext: w, hasNext: O, isLoadingNext: k, refetch: A } = Ue(l.fragment, x), j = l.getConnection(S), te = T(() => j.edges.map((e) => l.toRow(e.node)), [j.edges, l]), ne = T(() => d(l.columns, {
100
- tApp: s,
101
- t: c,
103
+ }), [m, h]), b = E(() => c.buildQueryVariables(g), [c, g]), x = Ue(c.query, b, { fetchPolicy: "store-or-network" }), { data: S, loadNext: C, hasNext: T, isLoadingNext: k, refetch: A } = We(c.fragment, x), j = c.getConnection(S), M = E(() => j.edges.map((e) => c.toRow(e.node)), [j.edges, c]), N = E(() => d(c.columns, {
104
+ tApp: o,
105
+ t: s,
102
106
  resolveEntityHref: (e, t) => {
103
107
  let n = r[e];
104
108
  return n == null ? null : n.routes.detail(t);
105
109
  }
106
110
  }), [
107
111
  r,
108
- l.columns,
109
- c,
110
- s
111
- ]), M = C((e) => l.getRowId(e), [l]), { onRefresh: re } = v({
112
+ c.columns,
113
+ s,
114
+ o
115
+ ]), ee = w((e) => c.getRowId(e), [c]), { onRefresh: te } = y({
112
116
  refetch: A,
113
- variables: y,
114
- defaults: T(() => ({
115
- where: m ?? u.where,
116
- sort: u.sort,
117
- count: xe,
117
+ variables: g,
118
+ defaults: E(() => ({
119
+ where: p ?? l.where,
120
+ sort: l.sort,
121
+ count: Se,
118
122
  cursor: null
119
123
  }), [
120
- u.sort,
121
- u.where,
122
- m
124
+ l.sort,
125
+ l.where,
126
+ p
123
127
  ]),
124
- fetchPolicy: be,
125
- buildVariables: l.buildVariables
126
- }), N = _({
127
- hasNext: O,
128
+ fetchPolicy: xe,
129
+ buildQueryVariables: c.buildQueryVariables
130
+ }), P = _({
131
+ hasNext: T,
128
132
  isLoadingNext: k,
129
- loadNext: w,
130
- count: xe
133
+ loadNext: C,
134
+ count: Se
131
135
  });
132
- return /* @__PURE__ */ J(ee, {
136
+ return /* @__PURE__ */ Y(v, {
133
137
  config: t,
134
- state: f,
138
+ state: u,
135
139
  pushState: (e) => {
136
- p(e);
140
+ f(e);
137
141
  },
138
142
  header: { title: e },
139
- rows: te,
140
- columns: ne,
141
- getRowId: M,
142
- hasNextPage: O,
143
+ rows: M,
144
+ columns: N,
145
+ getRowId: ee,
146
+ hasNextPage: T,
143
147
  isLoadingMore: k,
144
- onLoadMore: N,
145
- onRefresh: re,
148
+ onLoadMore: P,
149
+ onRefresh: te,
146
150
  totalCount: j.totalCount ?? null,
147
151
  variant: "embedded"
148
152
  });
149
- }, Ge = ({ title: e, targetId: n, whereKey: r, value: a, path: o }) => {
150
- let { entities: s } = t(), c = i(T(() => [n], [n]));
151
- if (c.status === "loading") return /* @__PURE__ */ J(M, { rows: 6 });
152
- if (c.status === "error") return null;
153
- let l = c.modules[n]?.config;
154
- return l == null ? null : /* @__PURE__ */ J(We, {
153
+ }, qe = ({ title: e, relation: r, value: a }) => {
154
+ let { t: o } = n(), { entities: s } = t(), c = i(E(() => [r.target], [r.target]));
155
+ if (c.status === "loading") return /* @__PURE__ */ Y(P, {
156
+ rows: 6,
157
+ ariaLabel: o("common.loading")
158
+ });
159
+ if (c.status === "error") return /* @__PURE__ */ Y(ce, {
160
+ tone: "warning",
161
+ title: o("relations.unavailable.title"),
162
+ children: o("relations.unavailable.description")
163
+ });
164
+ let l = c.modules[r.target]?.config;
165
+ return l == null || l.list.kind === "records" ? null : /* @__PURE__ */ Y(Ke, {
155
166
  title: e,
156
167
  config: l,
157
168
  entities: s,
158
- whereKey: r,
159
- value: a,
160
- path: o
169
+ relation: r,
170
+ value: a
161
171
  });
162
- }, Ke = ({ title: e, target: t, whereKey: n, value: i, path: a }) => /* @__PURE__ */ J(r, {
163
- fallback: () => /* @__PURE__ */ J(M, { rows: 6 }),
164
- children: /* @__PURE__ */ J(x, {
165
- fallback: /* @__PURE__ */ J(M, { rows: 6 }),
166
- children: /* @__PURE__ */ J(Ge, {
172
+ }, Je = ({ title: e, relation: t, value: n }) => /* @__PURE__ */ Y(r, {
173
+ fallback: () => /* @__PURE__ */ Y(Ge, {}),
174
+ children: /* @__PURE__ */ Y(S, {
175
+ fallback: /* @__PURE__ */ Y(Ge, {}),
176
+ children: /* @__PURE__ */ Y(qe, {
167
177
  title: e,
168
- targetId: t,
169
- whereKey: n,
170
- value: i,
171
- path: a
178
+ relation: t,
179
+ value: n
172
180
  })
173
181
  })
174
- }), qe = "txvbqb9ip txvbqbcp txvbqbao7 txvbqbajy", Je = "txvbqb9ip txvbqbai7 txvbqbaog", Ye = "txvbqb9ip txvbqbcp txvbqbao7 txvbqbajy", Xe = "txvbqb9ip txvbqbai7 txvbqbao7";
182
+ }), Ye = "txvbqb9ip txvbqbcp txvbqbdp7 txvbqbao7 txvbqbajy txvbqbk5y", Xe = "txvbqb9ip txvbqbai7 txvbqbaog", Ze = "txvbqb9ip txvbqbcp txvbqbao7 txvbqbajy", Qe = "txvbqb9ip txvbqbai7 txvbqbao7";
175
183
  //#endregion
176
184
  //#region src/i18n/useBackofficeFormats.ts
177
- function Ze() {
185
+ function $e() {
178
186
  let { t: e } = n();
179
187
  function t(t) {
180
188
  return e("format.number", { value: t });
@@ -193,19 +201,19 @@ function Ze() {
193
201
  }
194
202
  //#endregion
195
203
  //#region src/pages/detail/buildTabsItems.ts
196
- var Qe = (e) => e.pages.map((t) => ({
204
+ var et = (e) => e.pages.map((t) => ({
197
205
  id: t.id,
198
206
  label: t.label(e.tApp),
199
207
  to: e.detailPageHref(e.id, t.id)
200
- })), X = (e, t) => e(t), $e = (e) => typeof e == "object" && !!e && !Array.isArray(e), et = (e) => {
201
- if (!$e(e)) return null;
202
- for (let t of Object.values(e)) if ($e(t) && ("status" in t || "result" in t)) return t;
208
+ })), Z = (e, t) => e(t), tt = (e) => typeof e == "object" && !!e && !Array.isArray(e), nt = (e) => {
209
+ if (!tt(e)) return null;
210
+ for (let t of Object.values(e)) if (tt(t) && ("status" in t || "result" in t)) return t;
203
211
  return null;
204
- }, tt = (e) => e.kind === "route", nt = (e) => e.kind === "mutation", rt = (e) => e.kind === "formMutation", Z = (e, t) => typeof e == "function" ? e(t) : e ?? null, it = (e) => {
212
+ }, rt = (e) => e.kind === "route", it = (e) => e.kind === "mutation", at = (e) => e.kind === "formMutation", Q = (e, t) => typeof e == "function" ? e(t) : e ?? null, ot = (e) => {
205
213
  if (e == null) return null;
206
214
  let t = e.trim();
207
215
  return t === "" ? null : t;
208
- }, Q = (e) => e == null ? !0 : typeof e == "string" ? e.trim() === "" : !1, $ = (e, t) => typeof e == "function" ? e(t) : e, at = (e, t, n) => {
216
+ }, $ = (e) => e == null ? !0 : typeof e == "string" ? e.trim() === "" : !1, st = (e, t) => typeof e == "function" ? e(t) : e, ct = (e, t, n) => {
209
217
  switch (e) {
210
218
  case "yesNo": return t ? {
211
219
  tone: "success",
@@ -293,45 +301,45 @@ var Qe = (e) => e.pages.map((t) => ({
293
301
  };
294
302
  default: throw Error(`Unsupported flag variant: ${String(e)}`);
295
303
  }
296
- }, ot = (e, t) => {
304
+ }, lt = (e, t) => {
297
305
  let { tApp: n, t: r, resolveEntityHref: i, renderLink: a } = t, o = r("common.notAvailable");
298
306
  if (e.type === "text") {
299
- let t = Z(e.value, n);
300
- return Q(t) ? o : t;
307
+ let t = Q(e.value, n);
308
+ return $(t) ? o : t;
301
309
  }
302
310
  if (e.type === "entityRef") {
303
311
  let { id: t } = e;
304
312
  if (t == null || t.trim() === "") return o;
305
- let r = Z(e.label, n), s = r != null && String(r).trim() !== "" ? r : null;
313
+ let r = Q(e.label, n), s = r != null && String(r).trim() !== "" ? r : null;
306
314
  if (s == null) return o;
307
315
  let c = i?.(e.entity, t) ?? null;
308
316
  return c == null ? s : a(c, s);
309
317
  }
310
318
  let { href: s } = e;
311
319
  if (s == null || s.trim() === "") return o;
312
- let c = Z(e.label, n);
313
- return Q(c) ? o : a(s, c);
314
- }, st = (e, t, n) => {
320
+ let c = Q(e.label, n);
321
+ return $(c) ? o : a(s, c);
322
+ }, ut = (e, t, n) => {
315
323
  let { tApp: r, t: i, resolveEntityHref: a, renderDate: o, renderLink: s } = n, c = i("common.notAvailable");
316
324
  if (e.type === "dateTime") return o(e.value(t), c);
317
325
  if (e.type === "entityRef") {
318
326
  let n = e.id(t);
319
327
  if (n == null || n.trim() === "") return c;
320
- let i = Z(e.value?.(t), r), o = i != null && String(i).trim() !== "" ? i : null;
328
+ let i = Q(e.value?.(t), r), o = i != null && String(i).trim() !== "" ? i : null;
321
329
  if (o == null) return c;
322
330
  let l = a?.(e.entity, n) ?? null;
323
331
  return l == null ? o : s(l, o);
324
332
  }
325
333
  if (e.type === "link") {
326
- let n = e.href(t), i = Z(e.value(t), r);
327
- return n == null || n.trim() === "" || Q(i) ? c : s(n, i);
334
+ let n = e.href(t), i = Q(e.value(t), r);
335
+ return n == null || n.trim() === "" || $(i) ? c : s(n, i);
328
336
  }
329
- let l = Z(e.value(t), r);
330
- return Q(l) ? c : l;
331
- }, ct = (e, t, n, r) => {
337
+ let l = Q(e.value(t), r);
338
+ return $(l) ? c : l;
339
+ }, dt = (e, t, n, r) => {
332
340
  if (e.type === "badgeRow") {
333
341
  let i = e.items(t).map((e) => {
334
- let t = Z(e.label, n), r = t == null ? "" : String(t);
342
+ let t = Q(e.label, n), r = t == null ? "" : String(t);
335
343
  return {
336
344
  ...e,
337
345
  label: r
@@ -339,20 +347,20 @@ var Qe = (e) => e.pages.map((t) => ({
339
347
  });
340
348
  return i.length === 0 ? void 0 : r.renderBadgeRow(i);
341
349
  }
342
- let i = Z(e.value(t), n), a = i == null ? "" : String(i);
350
+ let i = Q(e.value(t), n), a = i == null ? "" : String(i);
343
351
  if (a.trim() === "") return;
344
- let o = $(e.tone, t);
352
+ let o = st(e.tone, t);
345
353
  return r.renderTag(o, a);
346
- }, lt = (e, t, n) => {
347
- let { tApp: r, t: i, resolveEntityHref: a, formatNumber: o, formatCurrency: s, formatPercent: c, relationEntityListRoutes: l, resolveRelationItem: u, setWhereValue: d, renderTag: f, renderBadgeRow: p, renderDate: m, renderFlagTag: h, renderLink: g, renderTaggedValue: _, wrapCustomNode: ee } = n, v = [], y = [], b = [], x = i("common.notAvailable");
354
+ }, ft = (e, t, n) => {
355
+ let { tApp: r, t: i, resolveEntityHref: a, formatNumber: o, formatCurrency: s, formatPercent: c, relationEntityListRoutes: l, resolveRelationItem: u, setWhereValue: d, renderTag: f, renderBadgeRow: p, renderDate: m, renderFlagTag: h, renderLink: g, renderTaggedValue: _, wrapCustomNode: v } = n, y = [], b = [], x = [], S = i("common.notAvailable");
348
356
  return e.forEach((e, n) => {
349
- let S = `${e.type}-${n}`;
357
+ let C = `${e.type}-${n}`;
350
358
  switch (e.type) {
351
359
  case "text": {
352
- let n = Z(e.value(t), r);
353
- v.push({
354
- id: S,
355
- label: X(e.label, r),
360
+ let n = Q(e.value(t), r);
361
+ y.push({
362
+ id: C,
363
+ label: Z(e.label, r),
356
364
  size: e.size,
357
365
  value: n,
358
366
  copyValue: e.copyValue?.(t) ?? void 0,
@@ -361,10 +369,10 @@ var Qe = (e) => e.pages.map((t) => ({
361
369
  break;
362
370
  }
363
371
  case "badge": {
364
- let n = Z(e.value(t), r), i = n == null ? "" : String(n), a = $(e.tone, t);
365
- v.push({
366
- id: S,
367
- label: X(e.label, r),
372
+ let n = Q(e.value(t), r), i = n == null ? "" : String(n), a = st(e.tone, t);
373
+ y.push({
374
+ id: C,
375
+ label: Z(e.label, r),
368
376
  size: e.size,
369
377
  value: i.trim() === "" ? null : f(a, i)
370
378
  });
@@ -372,15 +380,15 @@ var Qe = (e) => e.pages.map((t) => ({
372
380
  }
373
381
  case "badgeRow": {
374
382
  let n = e.items(t).map((e) => {
375
- let t = Z(e.label, r), n = t == null ? "" : String(t);
383
+ let t = Q(e.label, r), n = t == null ? "" : String(t);
376
384
  return {
377
385
  ...e,
378
386
  label: n
379
387
  };
380
388
  });
381
- v.push({
382
- id: S,
383
- label: X(e.label, r),
389
+ y.push({
390
+ id: C,
391
+ label: Z(e.label, r),
384
392
  size: e.size,
385
393
  value: n.length > 0 ? p(n) : null,
386
394
  fullWidth: e.fullWidth
@@ -388,18 +396,18 @@ var Qe = (e) => e.pages.map((t) => ({
388
396
  break;
389
397
  }
390
398
  case "dateTime":
391
- v.push({
392
- id: S,
393
- label: X(e.label, r),
399
+ y.push({
400
+ id: C,
401
+ label: Z(e.label, r),
394
402
  size: e.size,
395
- value: m(e.value(t), x)
403
+ value: m(e.value(t), S)
396
404
  });
397
405
  break;
398
406
  case "number": {
399
407
  let n = e.value(t), i = null;
400
- n != null && (i = e.format === "currency" ? s(n) : e.format === "percent" ? c(n) : o(n)), v.push({
401
- id: S,
402
- label: X(e.label, r),
408
+ n != null && (i = e.format === "currency" ? s(n) : e.format === "percent" ? c(n) : o(n)), y.push({
409
+ id: C,
410
+ label: Z(e.label, r),
403
411
  size: e.size,
404
412
  value: i
405
413
  });
@@ -407,11 +415,11 @@ var Qe = (e) => e.pages.map((t) => ({
407
415
  }
408
416
  case "flag": {
409
417
  let n = e.value(t);
410
- v.push({
411
- id: S,
412
- label: X(e.label, r),
418
+ y.push({
419
+ id: C,
420
+ label: Z(e.label, r),
413
421
  size: e.size,
414
- value: n == null ? null : h(at(e.variant, n, i))
422
+ value: n == null ? null : h(ct(e.variant, n, i))
415
423
  });
416
424
  break;
417
425
  }
@@ -421,26 +429,26 @@ var Qe = (e) => e.pages.map((t) => ({
421
429
  let r = e.value?.(t), o = r != null && r.trim() !== "" ? r : null, s = a?.(e.entity, n) ?? null;
422
430
  o != null && (i = s == null ? o : g(s, o));
423
431
  }
424
- v.push({
425
- id: S,
426
- label: X(e.label, r),
432
+ y.push({
433
+ id: C,
434
+ label: Z(e.label, r),
427
435
  size: e.size,
428
- value: i ?? x
436
+ value: i ?? S
429
437
  });
430
438
  break;
431
439
  }
432
440
  case "link": {
433
441
  let n = e.href(t), i = e.value(t);
434
- v.push({
435
- id: S,
436
- label: X(e.label, r),
442
+ y.push({
443
+ id: C,
444
+ label: Z(e.label, r),
437
445
  size: e.size,
438
- value: n != null && n.trim() !== "" && !Q(i) ? g(n, i) : null
446
+ value: n != null && n.trim() !== "" && !$(i) ? g(n, i) : null
439
447
  });
440
448
  break;
441
449
  }
442
450
  case "taggedValue": {
443
- let n = e.tag(t), o = ot(e.value(t), {
451
+ let n = e.tag(t), o = lt(e.value(t), {
444
452
  tApp: r,
445
453
  t: i,
446
454
  resolveEntityHref: a,
@@ -448,13 +456,13 @@ var Qe = (e) => e.pages.map((t) => ({
448
456
  }), s = n == null ? null : {
449
457
  ...n,
450
458
  label: (() => {
451
- let e = Z(n.label, r);
459
+ let e = Q(n.label, r);
452
460
  return e == null ? "" : String(e);
453
461
  })()
454
462
  };
455
- v.push({
456
- id: S,
457
- label: X(e.label, r),
463
+ y.push({
464
+ id: C,
465
+ label: Z(e.label, r),
458
466
  size: e.size,
459
467
  value: s != null || o != null ? _(s, o) : null,
460
468
  fullWidth: e.fullWidth
@@ -462,23 +470,20 @@ var Qe = (e) => e.pages.map((t) => ({
462
470
  break;
463
471
  }
464
472
  case "relation": {
465
- let n = it(e.value(t));
473
+ let n = ot(e.value(t));
466
474
  if (n == null) break;
467
- let i = l[e.entity];
475
+ let i = l[e.relation.target];
468
476
  if (i == null) break;
469
- let a = d(null, e.whereKey, n, e.path);
477
+ let a = d(null, e.relation.whereKey, n, e.relation.path);
470
478
  if (a == null) break;
471
- y.push(u({
472
- id: S,
473
- label: X(e.label, r),
479
+ b.push(u({
480
+ id: C,
481
+ label: Z(e.label, r),
474
482
  count: e.count?.(t) ?? null,
475
- entityId: e.entity,
476
- filterId: e.filterId,
483
+ relation: e.relation,
477
484
  listRoute: i,
478
- path: e.path,
479
485
  value: n,
480
- where: a,
481
- whereKey: e.whereKey
486
+ where: a
482
487
  }));
483
488
  break;
484
489
  }
@@ -486,55 +491,55 @@ var Qe = (e) => e.pages.map((t) => ({
486
491
  let n = e.render(t);
487
492
  if (n == null) break;
488
493
  if (e.label != null) {
489
- v.push({
490
- id: S,
491
- label: X(e.label, r),
494
+ y.push({
495
+ id: C,
496
+ label: Z(e.label, r),
492
497
  size: e.size,
493
498
  value: n,
494
499
  fullWidth: e.fullWidth
495
500
  });
496
501
  break;
497
502
  }
498
- b.push(ee(S, n));
503
+ x.push(v(C, n));
499
504
  break;
500
505
  }
501
506
  default: break;
502
507
  }
503
508
  }), {
504
- items: v,
505
- relationItems: y,
506
- customNodes: b
509
+ items: y,
510
+ relationItems: b,
511
+ customNodes: x
507
512
  };
508
- }, ut = (e, t, n) => {
509
- let { tApp: r, t: i, resolveEntityHref: a, renderLink: o, renderDate: s, renderTag: c, renderBadgeRow: l } = n, u = e.titleValue?.(t, r) ?? X(e.title, r), d = u.trim() === "" ? X(e.title, r) : u, f;
513
+ }, pt = (e, t, n) => {
514
+ let { tApp: r, t: i, resolveEntityHref: a, renderLink: o, renderDate: s, renderTag: c, renderBadgeRow: l } = n, u = e.titleValue?.(t, r) ?? Z(e.title, r), d = u.trim() === "" ? Z(e.title, r) : u, f;
510
515
  if (e.subtitleItems != null && e.subtitleItems.length > 0) {
511
516
  let { subtitleItems: n } = e, s = e.subtitleSeparator ?? " / ", c = [];
512
517
  n.forEach((e, l) => {
513
- c.push(S("span", { key: e.id }, ot(e.value(t), {
518
+ c.push(C("span", { key: e.id }, lt(e.value(t), {
514
519
  tApp: r,
515
520
  t: i,
516
521
  resolveEntityHref: a,
517
522
  renderLink: o
518
- }))), l < n.length - 1 && c.push(S("span", { key: `${e.id}-sep` }, s));
519
- }), f = S("span", null, ...c);
523
+ }))), l < n.length - 1 && c.push(C("span", { key: `${e.id}-sep` }, s));
524
+ }), f = C("span", null, ...c);
520
525
  } else {
521
- let n = e.subtitleValue?.(t, r) ?? (e.subtitle == null ? null : X(e.subtitle, r));
526
+ let n = e.subtitleValue?.(t, r) ?? (e.subtitle == null ? null : Z(e.subtitle, r));
522
527
  f = n != null && n.trim() !== "" ? n : void 0;
523
528
  }
524
529
  let p = [];
525
530
  e.badges?.forEach((e, n) => {
526
- let i = X(e.label, r), a = Z(e.value(t), r), o = a == null ? "" : String(a);
527
- o.trim() !== "" && (p.push(c($(e.tone, t), `${i}: ${o}`)), typeof p[p.length - 1] == "object" && (p[p.length - 1] = S(b, { key: `${i}-${n}` }, p[p.length - 1])));
531
+ let i = Z(e.label, r), a = Q(e.value(t), r), o = a == null ? "" : String(a);
532
+ o.trim() !== "" && (p.push(c(st(e.tone, t), `${i}: ${o}`)), typeof p[p.length - 1] == "object" && (p[p.length - 1] = C(x, { key: `${i}-${n}` }, p[p.length - 1])));
528
533
  });
529
- let m = e.status == null ? void 0 : ct(e.status, t, r, {
534
+ let m = e.status == null ? void 0 : dt(e.status, t, r, {
530
535
  renderBadgeRow: l,
531
536
  renderTag: c
532
537
  }), h = e.meta?.map((e, n) => {
533
- let c = X(e.label, r);
538
+ let c = Z(e.label, r);
534
539
  return {
535
540
  id: `${c}-${n}`,
536
541
  label: c,
537
- value: st(e, t, {
542
+ value: ut(e, t, {
538
543
  tApp: r,
539
544
  t: i,
540
545
  resolveEntityHref: a,
@@ -546,26 +551,24 @@ var Qe = (e) => e.pages.map((t) => ({
546
551
  return {
547
552
  title: d,
548
553
  subtitle: f,
549
- badges: p.length > 0 ? S(b, null, ...p) : void 0,
554
+ badges: p.length > 0 ? C(x, null, ...p) : void 0,
550
555
  status: m,
551
556
  items: h
552
557
  };
553
- }, dt = (e, t, n) => {
558
+ }, mt = (e, t, n) => {
554
559
  let { tApp: r, t: i, keyPrefix: a } = n;
555
560
  return e == null || e.length === 0 ? [] : e.map((e, o) => {
556
561
  let s = a == null ? `${e.kind}-${o}` : `${a}-${e.kind}-${o}`;
557
562
  if (e.kind === "custom") {
558
563
  let i = e.render(t);
559
- return i == null ? null : e.label == null ? n.wrapCustomNode(s, i) : n.renderCustomSection(s, X(e.label, r), i);
564
+ return i == null ? null : e.label == null ? n.wrapCustomNode(s, i) : n.renderCustomSection(s, Z(e.label, r), i);
560
565
  }
561
- let c = X(e.label, r), l = e.description == null ? void 0 : X(e.description, r);
566
+ let c = Z(e.label, r), l = e.description == null ? void 0 : Z(e.description, r);
562
567
  if (e.kind === "relationList") return n.renderRelationList({
563
568
  key: s,
564
569
  title: c,
565
- target: e.target,
566
- whereKey: e.whereKey,
567
- value: e.value(t),
568
- path: e.path
570
+ relation: e.relation,
571
+ value: e.value(t)
569
572
  });
570
573
  if (e.kind === "table") return n.renderTable({
571
574
  key: s,
@@ -602,7 +605,7 @@ var Qe = (e) => e.pages.map((t) => ({
602
605
  items: e.errors(t)
603
606
  });
604
607
  let u = e.items.map((e, n) => {
605
- let a = X(e.label, r), o = Z(e.value(t), r);
608
+ let a = Z(e.label, r), o = Q(e.value(t), r);
606
609
  return {
607
610
  id: `${a}-${n}`,
608
611
  label: a,
@@ -616,129 +619,128 @@ var Qe = (e) => e.pages.map((t) => ({
616
619
  items: u
617
620
  });
618
621
  });
619
- }, ft = (e) => {
622
+ }, ht = (e) => {
620
623
  switch (e) {
621
- case "shield-lock": return /* @__PURE__ */ J(U, {
624
+ case "shield-lock": return /* @__PURE__ */ Y(K, {
622
625
  width: 14,
623
626
  height: 14,
624
627
  "aria-hidden": "true"
625
628
  });
626
- case "shield-off": return /* @__PURE__ */ J(W, {
629
+ case "shield-off": return /* @__PURE__ */ Y(fe, {
627
630
  width: 14,
628
631
  height: 14,
629
632
  "aria-hidden": "true"
630
633
  });
631
- case "settings-check": return /* @__PURE__ */ J(V, {
634
+ case "settings-check": return /* @__PURE__ */ Y(W, {
632
635
  width: 14,
633
636
  height: 14,
634
637
  "aria-hidden": "true"
635
638
  });
636
- case "settings-x": return /* @__PURE__ */ J(H, {
639
+ case "settings-x": return /* @__PURE__ */ Y(G, {
637
640
  width: 14,
638
641
  height: 14,
639
642
  "aria-hidden": "true"
640
643
  });
641
- case "x-badge": return /* @__PURE__ */ J(pe, {
644
+ case "x-badge": return /* @__PURE__ */ Y(pe, {
642
645
  width: 14,
643
646
  height: 14,
644
647
  "aria-hidden": "true"
645
648
  });
646
- case "chat-check": return /* @__PURE__ */ J(ie, {
649
+ case "chat-check": return /* @__PURE__ */ Y(F, {
647
650
  width: 14,
648
651
  height: 14,
649
652
  "aria-hidden": "true"
650
653
  });
651
- case "key": return /* @__PURE__ */ J(le, {
654
+ case "key": return /* @__PURE__ */ Y(le, {
652
655
  width: 14,
653
656
  height: 14,
654
657
  "aria-hidden": "true"
655
658
  });
656
- case "key-off": return /* @__PURE__ */ J(P, {
659
+ case "key-off": return /* @__PURE__ */ Y(I, {
657
660
  width: 14,
658
661
  height: 14,
659
662
  "aria-hidden": "true"
660
663
  });
661
- case "lock": return /* @__PURE__ */ J(I, {
664
+ case "lock": return /* @__PURE__ */ Y(z, {
662
665
  width: 14,
663
666
  height: 14,
664
667
  "aria-hidden": "true"
665
668
  });
666
- case "lock-open": return /* @__PURE__ */ J(fe, {
669
+ case "lock-open": return /* @__PURE__ */ Y(R, {
667
670
  width: 14,
668
671
  height: 14,
669
672
  "aria-hidden": "true"
670
673
  });
671
- case "robot-check": return /* @__PURE__ */ J(L, {
674
+ case "robot-check": return /* @__PURE__ */ Y(B, {
672
675
  width: 14,
673
676
  height: 14,
674
677
  "aria-hidden": "true"
675
678
  });
676
- case "robot-x": return /* @__PURE__ */ J(R, {
679
+ case "robot-x": return /* @__PURE__ */ Y(V, {
677
680
  width: 14,
678
681
  height: 14,
679
682
  "aria-hidden": "true"
680
683
  });
681
- case "rocket": return /* @__PURE__ */ J(B, {
684
+ case "rocket": return /* @__PURE__ */ Y(U, {
682
685
  width: 14,
683
686
  height: 14,
684
687
  "aria-hidden": "true"
685
688
  });
686
- case "rocket-off": return /* @__PURE__ */ J(z, {
689
+ case "rocket-off": return /* @__PURE__ */ Y(H, {
687
690
  width: 14,
688
691
  height: 14,
689
692
  "aria-hidden": "true"
690
693
  });
691
694
  default: throw Error(`Unsupported flag icon: ${String(e)}`);
692
695
  }
693
- }, pt = (e) => {
696
+ }, gt = (e) => {
694
697
  if (e.presentation?.desktop === "secondary" || e.presentation?.group === "scope" || e.presentation?.group === "status") return "secondary";
695
698
  let t = e.fields?.map((e) => e.presentation?.group) ?? [];
696
699
  return t.length > 0 && t.every((e) => e === "scope" || e === "status") ? "secondary" : e.placement ?? "primary";
697
- }, mt = ({ config: r, prepared: i }) => {
698
- let { t: o } = D(), { t: _ } = n(), { formatNumber: ee, formatCurrency: v, formatPercent: b } = Ze(), { entities: x, entityRegistry: S } = t(), { layoutView: C } = g(), M = w(A), ie = e(), P = he(), [le, F] = E({}), [fe, I] = E(null), L = u({
700
+ }, _t = ({ config: r, prepared: i }) => {
701
+ let { t: o } = O(), { t: _ } = n(), { formatNumber: v, formatCurrency: y, formatPercent: x } = $e(), { entities: S, entityRegistry: C } = t(), { layoutView: w } = g(), M = T(j), P = e(), F = J(), [ce, I] = D({}), [le, L] = D(null), R = u({
699
702
  mainPage: r.pages.mainPage,
700
703
  subPages: r.pages.subPages,
701
704
  activePagePath: i.pagePath,
702
- node: C
703
- }), R = L.activePage ?? r.pages.mainPage, z = L.pages.length > 0 ? L.pages : [r.pages.mainPage], B = (e, t) => {
704
- F((n) => n[e] === t ? n : {
705
+ node: w
706
+ }), z = R.activePage ?? r.pages.mainPage, B = R.pages.length > 0 ? R.pages : [r.pages.mainPage], V = (e, t) => {
707
+ I((n) => n[e] === t ? n : {
705
708
  ...n,
706
709
  [e]: t
707
710
  });
708
- }, { page: V } = r, H = ve(V.query, i.pageQuery), U = V.resolveNode(H, {
711
+ }, { page: H } = r, U = ve(H.query, i.pageQuery), W = H.resolveNode(U, {
709
712
  id: i.id,
710
713
  detailId: i.detailId
711
- });
712
- if (U == null) throw new O(r.routes.list);
713
- let W = K(V.fragment, U), pe = T(() => Object.fromEntries(V.content.flatMap((e) => e.kind === "section" ? e.fields.flatMap((e) => e.type === "relation" ? [e.entity] : []) : []).flatMap((e) => {
714
- let t = x[e];
714
+ }), G = W != null, K = _e(H.fragment, W), fe = E(() => Object.fromEntries(H.content.flatMap((e) => e.kind === "section" ? e.fields.flatMap((e) => e.type === "relation" ? [e.relation.target] : []) : []).flatMap((e) => {
715
+ let t = S[e];
715
716
  return t?.hasList === !0 ? [[e, t.routes.list]] : [];
716
- })), [x, V.content]);
717
- return /* @__PURE__ */ J(Ee, {
718
- node: W,
717
+ })), [S, H.content]);
718
+ if (!G) throw new k(r.routes.list);
719
+ return /* @__PURE__ */ Y(De, {
720
+ node: K,
719
721
  render: (e) => {
720
- let t = V.toView(e), n = Qe({
721
- pages: z,
722
+ let t = H.toView(e), n = et({
723
+ pages: B,
722
724
  id: i.id,
723
725
  tApp: o,
724
726
  detailPageHref: r.routes.detailPage
725
727
  }), u = (e, t) => {
726
- let n = x[e];
728
+ let n = S[e];
727
729
  return n == null ? null : n.routes.detail(t);
728
- }, g = ({ id: e, label: t, count: n, entityId: r, filterId: i, listRoute: a, path: o, value: s, where: c, whereKey: l }) => {
729
- let u = S.getLoadedListEntity(r);
730
+ }, g = ({ id: e, label: t, count: n, relation: r, listRoute: i, value: a, where: o }) => {
731
+ let { target: s, filterId: c, whereKey: l, path: u } = r, d = C.getLoadedListEntity(s);
730
732
  return {
731
733
  id: e,
732
734
  label: t,
733
735
  count: n,
734
- href: u == null ? Se(a, c, [{
735
- id: i ?? (o == null ? l : `${l}.${o.join(".")}`),
736
- value: s
737
- }]) : Ce(u.config, { where: c }),
736
+ href: d == null ? Ce(i, o, [{
737
+ id: c ?? (u == null ? l : `${l}.${u.join(".")}`),
738
+ value: a
739
+ }]) : we(d.config, { where: o }),
738
740
  onClick: async (e) => {
739
741
  if (M == null || e.defaultPrevented || e.button !== 0 || e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) return;
740
742
  e.preventDefault();
741
- let t = we((await S.loadListEntity(r)).config, { where: c });
743
+ let t = Te((await C.loadListEntity(s)).config, { where: o });
742
744
  M.history.push({
743
745
  pathname: t.pathname,
744
746
  search: t.search === "" ? "" : `?${t.search}`,
@@ -746,54 +748,54 @@ var Qe = (e) => e.pages.map((t) => ({
746
748
  });
747
749
  }
748
750
  };
749
- }, w = ut(r.header, C, {
751
+ }, T = pt(r.header, w, {
750
752
  tApp: o,
751
753
  t: _,
752
754
  resolveEntityHref: u,
753
- renderLink: (e, t) => /* @__PURE__ */ J(k, {
755
+ renderLink: (e, t) => /* @__PURE__ */ Y(A, {
754
756
  to: e,
755
757
  children: t
756
758
  }),
757
- renderDate: (e, t) => /* @__PURE__ */ J(se, {
759
+ renderDate: (e, t) => /* @__PURE__ */ Y(oe, {
758
760
  value: e,
759
- options: ye,
761
+ options: be,
760
762
  fallback: t
761
763
  }),
762
- renderTag: (e, t) => /* @__PURE__ */ J(G, {
764
+ renderTag: (e, t) => /* @__PURE__ */ Y(q, {
763
765
  tone: e,
764
766
  children: t
765
767
  }),
766
- renderBadgeRow: (e) => /* @__PURE__ */ J(a, { items: e })
767
- }), T = h({
768
+ renderBadgeRow: (e) => /* @__PURE__ */ Y(a, { items: e })
769
+ }), E = h({
768
770
  config: r,
769
771
  tApp: o,
770
772
  entityId: i.id,
771
- layoutView: C,
772
- pageLabel: R.label(o)
773
- }), E = V.actions ?? [], D = [];
774
- if (E.length > 0) {
775
- let e = E.filter((e) => e.isVisible == null ? !0 : e.isVisible(t));
776
- e.length > 0 && (D = e.map((e) => {
777
- let n = X(e.label, o), r = e.ariaLabel == null ? n : X(e.ariaLabel, o), i = e.variant ?? "secondary", a = e.size ?? "small", s = le[e.id] ?? !1, c = s || e.isDisabled?.(t) === !0;
778
- return tt(e) ? /* @__PURE__ */ J(de, {
773
+ layoutView: w,
774
+ pageLabel: z.label(o)
775
+ }), D = H.actions ?? [], O = [];
776
+ if (D.length > 0) {
777
+ let e = D.filter((e) => e.isVisible == null ? !0 : e.isVisible(t));
778
+ e.length > 0 && (O = e.map((e) => {
779
+ let n = Z(e.label, o), r = e.ariaLabel == null ? n : Z(e.ariaLabel, o), i = e.variant ?? "secondary", a = e.size ?? "small", s = ce[e.id] ?? !1, c = s || e.isDisabled?.(t) === !0;
780
+ return rt(e) ? /* @__PURE__ */ Y(de, {
779
781
  to: e.to(t),
780
782
  variant: i,
781
783
  size: a,
782
784
  isDisabled: c,
783
785
  "aria-label": r,
784
786
  children: n
785
- }, e.id) : rt(e) ? /* @__PURE__ */ J(N, {
787
+ }, e.id) : at(e) ? /* @__PURE__ */ Y(re, {
786
788
  type: "button",
787
789
  variant: i,
788
790
  size: a,
789
791
  isLoading: !1,
790
792
  disabled: c,
791
793
  onClick: () => {
792
- I(e.id);
794
+ L(e.id);
793
795
  },
794
796
  "aria-label": r,
795
797
  children: n
796
- }, e.id) : nt(e) ? /* @__PURE__ */ J(N, {
798
+ }, e.id) : it(e) ? /* @__PURE__ */ Y(re, {
797
799
  type: "button",
798
800
  variant: i,
799
801
  size: a,
@@ -802,30 +804,30 @@ var Qe = (e) => e.pages.map((t) => ({
802
804
  onClick: () => {
803
805
  if (s) return;
804
806
  let n = e.getVariables(t);
805
- B(e.id, !0), _e(ie, {
807
+ V(e.id, !0), ge(P, {
806
808
  mutation: e.mutation,
807
809
  variables: n,
808
810
  updater: (n) => {
809
811
  e.updater?.(n, t);
810
812
  },
811
813
  onCompleted: (n) => {
812
- B(e.id, !1);
813
- let r = et(n);
814
+ V(e.id, !1);
815
+ let r = nt(n);
814
816
  if (r != null) {
815
817
  let n = _("actions.form.errors.invalidPayload");
816
- e.toasts?.error?.message == null ? e.toasts?.error?.title != null && (n = X(e.toasts.error.title, o)) : n = X(e.toasts.error.message, o);
818
+ e.toasts?.error?.message == null ? e.toasts?.error?.title != null && (n = Z(e.toasts.error.title, o)) : n = Z(e.toasts.error.message, o);
817
819
  let i = l(r, {
818
820
  defaultErrorMessage: n,
819
821
  mapReason: (n) => {
820
822
  let r = e.mapErrorReason?.(n, t);
821
- return r == null ? null : typeof r == "function" ? X(r, o) : String(r);
823
+ return r == null ? null : typeof r == "function" ? Z(r, o) : String(r);
822
824
  }
823
825
  });
824
826
  if (!i.ok) {
825
827
  let n = Error(i.message);
826
828
  if (e.onError?.(n, t), e.toasts?.error != null) {
827
829
  let t = m(e.toasts.error, o);
828
- P.error(t.title, t.message);
830
+ F.error(t.title, t.message);
829
831
  }
830
832
  return;
831
833
  }
@@ -836,13 +838,13 @@ var Qe = (e) => e.pages.map((t) => ({
836
838
  response: n,
837
839
  node: t,
838
840
  tApp: o,
839
- entities: x,
841
+ entities: S,
840
842
  defaultLabel: _("actions.view"),
841
843
  navigateTo: (e) => {
842
844
  M?.history.push({ pathname: e });
843
845
  }
844
846
  });
845
- P.push({
847
+ F.push({
846
848
  kind: "info",
847
849
  title: r.title,
848
850
  message: r.message,
@@ -851,9 +853,9 @@ var Qe = (e) => e.pages.map((t) => ({
851
853
  }
852
854
  },
853
855
  onError: (n) => {
854
- if (B(e.id, !1), e.onError?.(n, t), e.toasts?.error != null) {
856
+ if (V(e.id, !1), e.onError?.(n, t), e.toasts?.error != null) {
855
857
  let t = m(e.toasts.error, o);
856
- P.error(t.title, t.message);
858
+ F.error(t.title, t.message);
857
859
  }
858
860
  }
859
861
  });
@@ -863,49 +865,49 @@ var Qe = (e) => e.pages.map((t) => ({
863
865
  }, e.id) : null;
864
866
  }));
865
867
  }
866
- let O = E.find((e) => e.id === fe), { content: A } = V, F = [], L = [], H = [];
867
- A.forEach((e, n) => {
868
- let r = pt(e) === "secondary" ? L : F;
868
+ let k = D.find((e) => e.id === le), { content: j } = H, I = [], R = [], U = [];
869
+ j.forEach((e, n) => {
870
+ let r = gt(e) === "secondary" ? R : I;
869
871
  if (e.kind === "section") {
870
- let i = X(e.title, o), c = e.description == null ? void 0 : X(e.description, o), { items: l, relationItems: d, customNodes: f } = lt(e.fields, t, {
872
+ let i = Z(e.title, o), c = e.description == null ? void 0 : Z(e.description, o), { items: l, relationItems: d, customNodes: f } = ft(e.fields, t, {
871
873
  tApp: o,
872
874
  t: _,
873
875
  resolveEntityHref: u,
874
- formatNumber: ee,
875
- formatCurrency: v,
876
- formatPercent: b,
877
- relationEntityListRoutes: pe,
876
+ formatNumber: v,
877
+ formatCurrency: y,
878
+ formatPercent: x,
879
+ relationEntityListRoutes: fe,
878
880
  resolveRelationItem: g,
879
- setWhereValue: Te,
880
- renderTag: (e, t) => /* @__PURE__ */ J(G, {
881
+ setWhereValue: Ee,
882
+ renderTag: (e, t) => /* @__PURE__ */ Y(q, {
881
883
  tone: e,
882
884
  children: t
883
885
  }),
884
- renderBadgeRow: (e) => /* @__PURE__ */ J(a, { items: e }),
885
- renderDate: (e, t) => /* @__PURE__ */ J(se, {
886
+ renderBadgeRow: (e) => /* @__PURE__ */ Y(a, { items: e }),
887
+ renderDate: (e, t) => /* @__PURE__ */ Y(oe, {
886
888
  value: e,
887
- options: ye,
889
+ options: be,
888
890
  fallback: t
889
891
  }),
890
- renderFlagTag: (e) => /* @__PURE__ */ J(Ae, {
892
+ renderFlagTag: (e) => /* @__PURE__ */ Y(je, {
891
893
  tone: e.tone,
892
- icon: e.iconName == null ? void 0 : ft(e.iconName),
894
+ icon: e.iconName == null ? void 0 : ht(e.iconName),
893
895
  label: e.label
894
896
  }),
895
- renderLink: (e, t) => /* @__PURE__ */ J(k, {
897
+ renderLink: (e, t) => /* @__PURE__ */ Y(A, {
896
898
  to: e,
897
899
  children: t
898
900
  }),
899
- renderTaggedValue: (e, t) => /* @__PURE__ */ J(Ne, {
901
+ renderTaggedValue: (e, t) => /* @__PURE__ */ Y(Pe, {
900
902
  tag: e,
901
903
  value: t
902
904
  }),
903
- wrapCustomNode: (e, t) => /* @__PURE__ */ J("div", { children: t }, e)
905
+ wrapCustomNode: (e, t) => /* @__PURE__ */ Y("div", { children: t }, e)
904
906
  });
905
907
  if (d.forEach((e) => {
906
- H.some((t) => t.id === e.id) || H.push(e);
908
+ U.some((t) => t.id === e.id) || U.push(e);
907
909
  }), !(l.length > 0 || f.length > 0)) return;
908
- r.push(/* @__PURE__ */ J(s, {
910
+ r.push(/* @__PURE__ */ Y(s, {
909
911
  title: i,
910
912
  description: c,
911
913
  items: l.length > 0 ? l : void 0,
@@ -913,32 +915,30 @@ var Qe = (e) => e.pages.map((t) => ({
913
915
  }, `${i}-${n}`));
914
916
  return;
915
917
  }
916
- let i = dt([e], t, {
918
+ let i = mt([e], t, {
917
919
  tApp: o,
918
920
  t: _,
919
921
  resolveEntityHref: u,
920
922
  keyPrefix: String(n),
921
- renderCustomSection: (e, t, n) => /* @__PURE__ */ J(s, {
923
+ renderCustomSection: (e, t, n) => /* @__PURE__ */ Y(s, {
922
924
  title: t,
923
925
  children: n
924
926
  }, e),
925
- wrapCustomNode: (e, t) => /* @__PURE__ */ J("div", { children: t }, e),
926
- renderRelationList: ({ key: e, title: t, target: n, whereKey: r, value: i, path: a }) => /* @__PURE__ */ J(Ke, {
927
+ wrapCustomNode: (e, t) => /* @__PURE__ */ Y("div", { children: t }, e),
928
+ renderRelationList: ({ key: e, title: t, relation: n, value: r }) => /* @__PURE__ */ Y(Je, {
927
929
  title: t,
928
- target: n,
929
- whereKey: r,
930
- value: i ?? null,
931
- path: a
930
+ relation: n,
931
+ value: r ?? null
932
932
  }, e),
933
933
  resolveTableColumns: (e) => d(e, {
934
934
  tApp: o,
935
935
  t: _,
936
936
  resolveEntityHref: u
937
937
  }),
938
- renderTable: ({ key: e, title: t, description: n, columns: r, rows: i }) => /* @__PURE__ */ J(s, {
938
+ renderTable: ({ key: e, title: t, description: n, columns: r, rows: i }) => /* @__PURE__ */ Y(s, {
939
939
  title: t,
940
940
  description: n,
941
- children: /* @__PURE__ */ J(ae, {
941
+ children: /* @__PURE__ */ Y(ie, {
942
942
  columns: r,
943
943
  rows: i,
944
944
  getRowId: (e, t) => {
@@ -951,103 +951,111 @@ var Qe = (e) => e.pages.map((t) => ({
951
951
  })
952
952
  }, e),
953
953
  renderJson: ({ key: e, title: t, description: n, value: r, defaultCollapsed: i }) => {
954
- let a = /* @__PURE__ */ J(s, {
954
+ let a = /* @__PURE__ */ Y(s, {
955
955
  title: t,
956
956
  description: n,
957
- children: /* @__PURE__ */ J(ue, {
957
+ children: /* @__PURE__ */ Y(ue, {
958
958
  value: r,
959
959
  title: t
960
960
  })
961
961
  }, e);
962
- return i === !0 ? /* @__PURE__ */ Y("details", { children: [/* @__PURE__ */ J("summary", { children: t }), a] }, e) : a;
962
+ return i === !0 ? /* @__PURE__ */ X("details", { children: [/* @__PURE__ */ Y("summary", { children: t }), a] }, e) : a;
963
963
  },
964
- renderCode: ({ key: e, title: t, description: n, value: r, outputLabel: i }) => /* @__PURE__ */ J(s, {
964
+ renderCode: ({ key: e, title: t, description: n, value: r, outputLabel: i }) => /* @__PURE__ */ Y(s, {
965
965
  title: t,
966
966
  description: n,
967
- children: /* @__PURE__ */ J(ce, {
967
+ children: /* @__PURE__ */ Y(se, {
968
968
  badgeLabel: i,
969
969
  copyCode: r,
970
970
  fallbackCodeText: r
971
971
  })
972
972
  }, e),
973
- renderPayload: ({ key: e, title: t, description: n, content: r, format: i }) => /* @__PURE__ */ J(c, {
973
+ renderPayload: ({ key: e, title: t, description: n, content: r, format: i }) => /* @__PURE__ */ Y(c, {
974
974
  title: t,
975
975
  description: n,
976
976
  content: r,
977
977
  format: i
978
978
  }, e),
979
- renderErrorList: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ J(Ve, {
979
+ renderErrorList: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ Y(He, {
980
980
  title: t,
981
981
  description: n,
982
982
  items: r
983
983
  }, e),
984
- renderKeyValueListSection: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ J(s, {
984
+ renderKeyValueListSection: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ Y(s, {
985
985
  title: t,
986
986
  description: n,
987
- children: /* @__PURE__ */ J(j, { items: r })
987
+ children: /* @__PURE__ */ Y(N, { items: r })
988
988
  }, e)
989
989
  })[0];
990
990
  i != null && r.push(i);
991
991
  });
992
- let U = H.length > 0 ? /* @__PURE__ */ J(ne, {
992
+ let W = U.length > 0 ? /* @__PURE__ */ Y(te, {
993
993
  label: _("relations.menu.label"),
994
- items: H
995
- }) : null, W = D.length > 0 || U != null ? /* @__PURE__ */ Y("div", {
996
- className: qe,
997
- children: [D, U]
998
- }) : void 0, me = w.status != null || w.badges != null ? /* @__PURE__ */ Y("div", {
994
+ items: U
995
+ }) : null, G = O.length > 0 || W != null ? /* @__PURE__ */ X("div", {
999
996
  className: Ye,
1000
- children: [w.status, w.badges]
1001
- }) : void 0, he = w.items != null && w.items.length > 0 ? /* @__PURE__ */ J("div", {
1002
- className: Xe,
1003
- children: /* @__PURE__ */ J(j, { items: w.items })
1004
- }) : null, ge = L.length > 0, K = null;
1005
- return z.length > 1 && (K = /* @__PURE__ */ J(re, {
997
+ children: [O.length > 0 && /* @__PURE__ */ Y("div", {
998
+ className: "txvbqb9ip txvbqbcp txvbqbdp7 txvbqbao7 txvbqbajy",
999
+ children: O
1000
+ }), W != null && /* @__PURE__ */ Y("div", {
1001
+ className: "_1i6bm7z0 txvbqb9ip txvbqbcp",
1002
+ children: W
1003
+ })]
1004
+ }) : void 0, K = T.status != null || T.badges != null ? /* @__PURE__ */ X("div", {
1005
+ className: Ze,
1006
+ children: [T.status, T.badges]
1007
+ }) : void 0, pe = T.items != null && T.items.length > 0 ? /* @__PURE__ */ Y("div", {
1008
+ className: Qe,
1009
+ children: /* @__PURE__ */ Y(N, { items: T.items })
1010
+ }) : null, me = R.length > 0, J = null;
1011
+ return B.length > 1 && (J = /* @__PURE__ */ Y(ne, {
1006
1012
  items: n,
1007
- activeId: R.id,
1008
- onChange: () => {}
1009
- })), /* @__PURE__ */ Y(f, {
1010
- breadcrumb: T,
1011
- children: [/* @__PURE__ */ J(oe, {
1012
- headerNode: /* @__PURE__ */ Y("div", {
1013
- className: Je,
1014
- children: [/* @__PURE__ */ J(te, {
1015
- title: w.title,
1016
- subtitle: w.subtitle,
1017
- actions: W,
1018
- meta: me
1019
- }), he]
1013
+ activeId: z.id,
1014
+ onChange: () => {},
1015
+ variant: "underline"
1016
+ })), /* @__PURE__ */ X(f, {
1017
+ breadcrumb: E,
1018
+ children: [/* @__PURE__ */ Y(ae, {
1019
+ headerNode: /* @__PURE__ */ X("div", {
1020
+ className: Xe,
1021
+ children: [/* @__PURE__ */ Y(ee, {
1022
+ title: T.title,
1023
+ subtitle: T.subtitle,
1024
+ actions: G,
1025
+ meta: K
1026
+ }), pe]
1020
1027
  }),
1021
- tabsNode: K,
1022
- sidePanel: ge ? /* @__PURE__ */ J(q, { children: L }) : void 0,
1028
+ tabsNode: J,
1029
+ sidePanel: me ? /* @__PURE__ */ Y(ye, { children: R }) : void 0,
1023
1030
  sidePanelVariant: "plain",
1024
- children: /* @__PURE__ */ J(q, { children: F })
1025
- }), O != null && rt(O) && /* @__PURE__ */ J(y, {
1031
+ headerDensity: "compact",
1032
+ children: /* @__PURE__ */ Y(ye, { children: I })
1033
+ }), k != null && at(k) && /* @__PURE__ */ Y(b, {
1026
1034
  isOpen: !0,
1027
- action: O,
1035
+ action: k,
1028
1036
  node: t,
1029
1037
  onClose: () => {
1030
- I(null);
1038
+ L(null);
1031
1039
  }
1032
1040
  })]
1033
1041
  });
1034
1042
  }
1035
1043
  });
1036
- }, ht = ({ config: e, prepared: t }) => {
1044
+ }, vt = ({ config: e, prepared: t }) => {
1037
1045
  let { layoutView: n } = g(), r = u({
1038
1046
  mainPage: e.pages.mainPage,
1039
1047
  subPages: e.pages.subPages,
1040
1048
  activePagePath: t.pagePath,
1041
1049
  node: n
1042
1050
  });
1043
- if (!r.hasVisiblePages || r.activePage == null) throw new O(e.routes.list);
1044
- if (r.activePage.id !== t.pageId) throw new O(e.routes.detailPage(t.id, r.activePage.id));
1045
- return /* @__PURE__ */ J(mt, {
1051
+ if (!r.hasVisiblePages || r.activePage == null) throw new k(e.routes.list);
1052
+ if (r.activePage.id !== t.pageId) throw new k(e.routes.detailPage(t.id, r.activePage.id));
1053
+ return /* @__PURE__ */ Y(_t, {
1046
1054
  config: t.pageConfig,
1047
1055
  prepared: t
1048
1056
  });
1049
1057
  };
1050
1058
  //#endregion
1051
- export { ht as BackofficeEntityDetailPage, ht as default };
1059
+ export { vt as BackofficeEntityDetailPage, vt as default };
1052
1060
 
1053
- //# sourceMappingURL=BackofficeEntityDetailPage-ChxBrqz8.js.map
1061
+ //# sourceMappingURL=BackofficeEntityDetailPage-LB1uEJVM.js.map