@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,19 +1,19 @@
1
1
  import { o as e } from "./environment-DQfVyWHJ.js";
2
2
  import { t } from "./useRelayEnvironment-vQ86aW-n.js";
3
3
  import { r as n, t as r } from "./useBackofficeReactTranslation-Btt58EIo.js";
4
- import { a as i, c as a, i as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./sidebarUtils-BZETlHea.js";
4
+ import { a as i, c as a, i as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./sidebarUtils-BgCBLJLv.js";
5
5
  import { t as p } from "./BackofficeErrorBoundary-BwRVSDHU.js";
6
- import { t as m } from "./BackofficeTopbarPortalContext-CphoSrZD.js";
7
- import { t as h } from "./backofficeAuthPaths-2KMmkBLv.js";
8
- import { t as g } from "./BackofficePermissionsContext-CmWwudBU.js";
9
- import { Suspense as _, useCallback as v, useContext as y, useEffect as b, useMemo as x, useState as S } from "react";
10
- import { useTranslation as C } from "react-i18next";
11
- import { RoutingContext as ee, useLocation as te } from "@plumile/router";
12
- import { AdminShellLayout as ne, BackofficeSidebarProfileMenu as re, Button as w, EnvironmentBadge as T, GlobalSearchInput as E, GripDotsSvg as D, InlineBanner as O, PinFilledSvg as k, PinSvg as A, SidebarHomeSvg as j, SidebarTasksSvg as M, Skeleton as N, ToastProvider as ie } from "@plumile/ui";
13
- import { commitMutation as P, usePreloadedQuery as F } from "react-relay";
14
- import { jsx as I, jsxs as L } from "react/jsx-runtime";
6
+ import { t as m } from "./BackofficeTopbarPortalContext-Da5XFatM.js";
7
+ import { t as h } from "./backofficeAuthPaths-2hHNn8D3.js";
8
+ import { t as g } from "./BackofficePermissionsContext-C2bdxy2z.js";
9
+ import { Suspense as _, useCallback as v, useContext as ee, useEffect as y, useMemo as b, useState as x } from "react";
10
+ import { useTranslation as S } from "react-i18next";
11
+ import { RoutingContext as te, useLocation as ne } from "@plumile/router";
12
+ import { AdminShellLayout as re, BackofficeSidebarHistorySvg as C, BackofficeSidebarProfileMenu as w, Button as T, EnvironmentBadge as E, GlobalSearchInput as D, GripDotsSvg as O, InlineBanner as k, PinFilledSvg as A, PinSvg as j, SidebarHomeSvg as ie, SidebarTasksSvg as M, Skeleton as N, ToastProvider as P } from "@plumile/ui";
13
+ import { commitMutation as F, usePreloadedQuery as I } from "react-relay";
14
+ import { jsx as L, jsxs as R } from "react/jsx-runtime";
15
15
  //#region src/hooks/useBackofficeSidebarPins.ts
16
- var ae = "backoffice.sidebar.pins.v1", R = (e) => {
16
+ var z = "backoffice.sidebar.pins.v1", B = (e) => {
17
17
  if (typeof window > "u") return [];
18
18
  try {
19
19
  let t = window.localStorage.getItem(e);
@@ -23,20 +23,20 @@ var ae = "backoffice.sidebar.pins.v1", R = (e) => {
23
23
  } catch {
24
24
  return [];
25
25
  }
26
- }, z = (e, t) => {
26
+ }, V = (e, t) => {
27
27
  let n = [], r = /* @__PURE__ */ new Set();
28
28
  return e.forEach((e) => {
29
29
  t.has(e) && (r.has(e) || (r.add(e), n.push(e)));
30
30
  }), n;
31
- }, oe = (e) => {
32
- let { enabled: t = !0, storageKey: n = ae, visibleEntityIds: r } = e, i = x(() => new Set(r), [r]), [a, o] = S(() => t ? z(R(n), i) : []);
33
- b(() => {
31
+ }, ae = (e) => {
32
+ let { enabled: t = !0, storageKey: n = z, visibleEntityIds: r } = e, i = b(() => new Set(r), [r]), [a, o] = x(() => t ? V(B(n), i) : []);
33
+ y(() => {
34
34
  if (!t) {
35
35
  o([]);
36
36
  return;
37
37
  }
38
38
  o((e) => {
39
- let t = z(e, i);
39
+ let t = V(e, i);
40
40
  if (t.length === e.length) {
41
41
  let n = !0;
42
42
  for (let r = 0; r < t.length; r += 1) if (t[r] !== e[r]) {
@@ -47,17 +47,17 @@ var ae = "backoffice.sidebar.pins.v1", R = (e) => {
47
47
  }
48
48
  return t;
49
49
  });
50
- }, [t, i]), b(() => {
50
+ }, [t, i]), y(() => {
51
51
  if (!t) {
52
52
  o([]);
53
53
  return;
54
54
  }
55
- o(z(R(n), i));
55
+ o(V(B(n), i));
56
56
  }, [
57
57
  t,
58
58
  n,
59
59
  i
60
- ]), b(() => {
60
+ ]), y(() => {
61
61
  if (!(!t || typeof window > "u")) try {
62
62
  window.localStorage.setItem(n, JSON.stringify(a));
63
63
  } catch {}
@@ -66,7 +66,7 @@ var ae = "backoffice.sidebar.pins.v1", R = (e) => {
66
66
  a,
67
67
  n
68
68
  ]);
69
- let s = x(() => new Set(a), [a]), c = v((e) => {
69
+ let s = b(() => new Set(a), [a]), c = v((e) => {
70
70
  t && i.has(e) && o((t) => t.includes(e) ? t : [...t, e]);
71
71
  }, [t, i]), l = v((e) => {
72
72
  t && o((t) => t.filter((t) => t !== e));
@@ -92,7 +92,7 @@ var ae = "backoffice.sidebar.pins.v1", R = (e) => {
92
92
  toggle: u,
93
93
  reorder: d
94
94
  };
95
- }, B = (e) => {
95
+ }, oe = (e) => {
96
96
  if (e == null || typeof window > "u") return null;
97
97
  try {
98
98
  let t = window.localStorage.getItem(e);
@@ -106,23 +106,23 @@ var ae = "backoffice.sidebar.pins.v1", R = (e) => {
106
106
  } catch {
107
107
  return null;
108
108
  }
109
- }, V = (e, t, n) => {
109
+ }, H = (e, t, n) => {
110
110
  let r = {};
111
111
  return e.forEach((e) => {
112
112
  r[e] = n?.[e] ?? !0;
113
113
  }), t != null && e.includes(t) && (r[t] = !1), r;
114
114
  }, se = (e) => {
115
- let { activeGroupId: t, defaultCollapsedByGroupId: n, groupIds: r, persist: i = !1, storageKey: a } = e, o = x(() => [...r], [r]), [s, c] = S(() => {
115
+ let { activeGroupId: t, defaultCollapsedByGroupId: n, groupIds: r, persist: i = !1, storageKey: a } = e, o = b(() => [...r], [r]), [s, c] = x(() => {
116
116
  if (i) {
117
- let e = B(a);
117
+ let e = oe(a);
118
118
  if (e != null) return {
119
- ...V(o, t, n),
119
+ ...H(o, t, n),
120
120
  ...e
121
121
  };
122
122
  }
123
- return V(o, t, n);
123
+ return H(o, t, n);
124
124
  });
125
- return b(() => {
125
+ return y(() => {
126
126
  c((e) => {
127
127
  let r = {};
128
128
  return o.forEach((t) => {
@@ -133,7 +133,7 @@ var ae = "backoffice.sidebar.pins.v1", R = (e) => {
133
133
  t,
134
134
  n,
135
135
  o
136
- ]), b(() => {
136
+ ]), y(() => {
137
137
  if (!(!i || a == null || typeof window > "u")) try {
138
138
  window.localStorage.setItem(a, JSON.stringify(s));
139
139
  } catch {}
@@ -141,7 +141,7 @@ var ae = "backoffice.sidebar.pins.v1", R = (e) => {
141
141
  s,
142
142
  i,
143
143
  a
144
- ]), b(() => {
144
+ ]), y(() => {
145
145
  t != null && c((e) => e[t] === !1 ? e : {
146
146
  ...e,
147
147
  [t]: !1
@@ -155,31 +155,54 @@ var ae = "backoffice.sidebar.pins.v1", R = (e) => {
155
155
  });
156
156
  }, [])
157
157
  };
158
- }, H = "_1xws1b00 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqb1rg txvbqb12g txvbqb1py txvbqblag txvbqbv0t txvbqbva1 txvbqbv txvbqb78 txvbqb6x txvbqb7k", U = (e, t) => e == null ? t ?? null : /* @__PURE__ */ I(e, {
159
- width: 18,
160
- height: 18,
158
+ }, U = "_1xws1b00 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqb1rg txvbqb12g txvbqb1py txvbqblag txvbqbv0t txvbqbva1 txvbqbv txvbqb78 txvbqb6x txvbqb7k", W = (e, t, n = 18) => e == null ? t ?? null : /* @__PURE__ */ L(e, {
159
+ width: n,
160
+ height: n,
161
161
  "aria-hidden": "true"
162
162
  });
163
163
  function ce(e) {
164
- let { basePath: t, pathname: n, entities: r, sidebar: l, permissions: f, searchQuery: p, tApp: m, t: h, pinnedEntityIds: g = [], recentItems: _ = [], onTogglePin: v, onReorderPin: y, collapsedByGroupId: b, onGroupCollapsedChange: x } = e, S = u(r, l), C = Object.entries(S), ee = new Set(g), te = h("sidebar.actions.pin"), ne = h("sidebar.actions.unpin"), re = h("sidebar.actions.reorder"), w = d(S, l), T = p?.trim().toLowerCase() ?? "", E = (e) => T === "" || e.toLowerCase().includes(T), O = (e) => {
164
+ let { basePath: t, pathname: n, entities: r, sidebar: l, permissions: f, searchQuery: p, tApp: m, t: h, pinnedEntityIds: g = [], recentItems: _ = [], onTogglePin: v, onReorderPin: ee, collapsedByGroupId: y, onGroupCollapsedChange: b, sidebarCollapsed: x = !1 } = e, S = u(r, l), te = Object.entries(S), ne = new Set(g), re = h("sidebar.actions.pin"), w = h("sidebar.actions.unpin"), T = h("sidebar.actions.reorder"), E = d(S, l), D = p?.trim().toLowerCase() ?? "", k = (e) => D === "" || e.toLowerCase().includes(D), N = (e) => {
165
165
  if (v == null) return null;
166
- let t = ee.has(e), n = te, r = A;
167
- return t && (n = ne, r = k), /* @__PURE__ */ I("button", {
166
+ let t = ne.has(e), n = re, r = j;
167
+ return t && (n = w, r = A), /* @__PURE__ */ L("button", {
168
168
  type: "button",
169
- className: H,
169
+ className: U,
170
170
  "aria-pressed": t,
171
171
  "aria-label": n,
172
172
  title: n,
173
173
  onClick: (t) => {
174
174
  t.preventDefault(), t.stopPropagation(), v(e);
175
175
  },
176
- children: /* @__PURE__ */ I(r, {
176
+ children: /* @__PURE__ */ L(r, {
177
177
  width: 14,
178
178
  height: 14,
179
179
  "aria-hidden": "true"
180
180
  })
181
181
  });
182
- }, N = (e) => {
182
+ }, P = (e) => {
183
+ if (l?.isItemVisible?.({
184
+ kind: "dashboard",
185
+ id: "dashboard"
186
+ }, f) === !1) return null;
187
+ let r = h("sidebar.items.dashboard");
188
+ return k(r) ? {
189
+ id: "dashboard",
190
+ data: {
191
+ kind: "dashboard",
192
+ id: "dashboard",
193
+ groupId: e
194
+ },
195
+ label: r,
196
+ href: t,
197
+ icon: W(void 0, /* @__PURE__ */ L(ie, {
198
+ width: 18,
199
+ height: 18,
200
+ "aria-hidden": "true"
201
+ })),
202
+ isActive: s(n, t),
203
+ ariaLabel: r
204
+ } : null;
205
+ }, F = (e) => {
183
206
  let { entityId: t, groupId: i, groupIcon: a, itemIcon: o, itemLabel: u, enableReorder: d } = e, p = r[t];
184
207
  if (p == null) return null;
185
208
  let h = {
@@ -192,7 +215,7 @@ function ce(e) {
192
215
  }), l?.isItemVisible?.(h, f) === !1) return null;
193
216
  if (p.kind === "tool") {
194
217
  let e = u ?? c(p.label, m);
195
- return T !== "" && !e.toLowerCase().includes(T) ? null : {
218
+ return D !== "" && !e.toLowerCase().includes(D) ? null : {
196
219
  id: `tool-${t}`,
197
220
  data: {
198
221
  kind: "tool",
@@ -201,38 +224,38 @@ function ce(e) {
201
224
  },
202
225
  label: e,
203
226
  href: p.routes.list,
204
- icon: U(o ?? a, /* @__PURE__ */ I(M, {
227
+ icon: W(o ?? a, /* @__PURE__ */ L(M, {
205
228
  width: 18,
206
229
  height: 18,
207
230
  "aria-hidden": "true"
208
231
  })),
209
232
  isActive: s(n, p.routes.list),
210
233
  ariaLabel: e,
211
- actionSlot: O(t)
234
+ actionSlot: N(t)
212
235
  };
213
236
  }
214
237
  if (!p.hasList) return null;
215
238
  let g = u ?? c(p.label, m);
216
- if (T !== "" && !g.toLowerCase().includes(T)) return null;
217
- let _, v, b, x, S = !1;
218
- d === !0 && y != null && (S = !0, _ = /* @__PURE__ */ I(D, {
239
+ if (D !== "" && !g.toLowerCase().includes(D)) return null;
240
+ let _, v, y, b, x = !1;
241
+ d === !0 && ee != null && (x = !0, _ = /* @__PURE__ */ L(O, {
219
242
  width: 14,
220
243
  height: 14,
221
244
  "aria-hidden": "true"
222
245
  }), v = (e) => {
223
246
  let { dataTransfer: n } = e;
224
247
  n.effectAllowed = "move", n.setData("text/plain", t);
225
- }, b = (e) => {
248
+ }, y = (e) => {
226
249
  e.preventDefault();
227
250
  let { dataTransfer: t } = e;
228
251
  t.dropEffect = "move";
229
- }, x = (e) => {
252
+ }, b = (e) => {
230
253
  e.preventDefault();
231
254
  let n = e.dataTransfer.getData("text/plain");
232
- n === "" || n === t || y(n, t);
255
+ n === "" || n === t || ee(n, t);
233
256
  });
234
- let C;
235
- return _ != null && (C = re), {
257
+ let S;
258
+ return _ != null && (S = T), {
236
259
  id: t,
237
260
  data: {
238
261
  kind: "entity",
@@ -241,22 +264,22 @@ function ce(e) {
241
264
  },
242
265
  label: g,
243
266
  href: p.routes.list,
244
- icon: U(o ?? a, /* @__PURE__ */ I(M, {
267
+ icon: W(o ?? a, /* @__PURE__ */ L(M, {
245
268
  width: 18,
246
269
  height: 18,
247
270
  "aria-hidden": "true"
248
271
  })),
249
272
  isActive: s(n, p.routes.list),
250
273
  ariaLabel: g,
251
- actionSlot: O(t),
274
+ actionSlot: N(t),
252
275
  dragHandleSlot: _,
253
- dragHandleLabel: C,
254
- draggable: S,
276
+ dragHandleLabel: S,
277
+ draggable: x,
255
278
  onDragStart: v,
256
- onDragOver: b,
257
- onDrop: x
279
+ onDragOver: y,
280
+ onDrop: b
258
281
  };
259
- }, ie = (e) => {
282
+ }, I = (e) => {
260
283
  let { hub: t, groupId: a, icon: o } = e, u = {
261
284
  kind: "hub",
262
285
  id: t.id
@@ -273,7 +296,7 @@ function ce(e) {
273
296
  return !(l?.isItemVisible?.(n, f) === !1 || e.kind !== "tool" && !e.hasList);
274
297
  });
275
298
  if (d.length > 0 && p.length === 0) return null;
276
- let h = c(t.title, m), g = E(h), _ = p.some((e) => E(c(e.label, m)));
299
+ let h = c(t.title, m), g = k(h), _ = p.some((e) => k(c(e.label, m)));
277
300
  if (!g && !_) return null;
278
301
  let v = s(n, t.href) || p.some((e) => s(n, e.routes.list));
279
302
  return {
@@ -285,7 +308,7 @@ function ce(e) {
285
308
  },
286
309
  label: h,
287
310
  href: t.href,
288
- icon: U(o, /* @__PURE__ */ I(M, {
311
+ icon: W(o, /* @__PURE__ */ L(M, {
289
312
  width: 18,
290
313
  height: 18,
291
314
  "aria-hidden": "true"
@@ -293,20 +316,46 @@ function ce(e) {
293
316
  isActive: v,
294
317
  ariaLabel: h
295
318
  };
296
- }, P = [];
319
+ }, R = [], z = l?.primaryItems ?? [];
320
+ if (z.length > 0) {
321
+ let e = z.map((e) => {
322
+ if (e.kind === "dashboard") return P();
323
+ if (e.kind === "hub") return I({
324
+ hub: a(e, l),
325
+ icon: e.icon
326
+ });
327
+ let t;
328
+ return e.label != null && (t = c(e.label, m)), F({
329
+ entityId: e.id,
330
+ itemIcon: e.icon,
331
+ itemLabel: t
332
+ });
333
+ }).filter((e) => e != null);
334
+ e.length > 0 && R.push({
335
+ id: "primary",
336
+ items: e,
337
+ collapsible: !1
338
+ });
339
+ }
297
340
  if (g.length > 0) {
298
341
  let e = g.map((e) => {
299
- let t = w.get(e);
300
- return N({
342
+ let t = E.get(e);
343
+ return F({
301
344
  entityId: e,
302
345
  groupId: t?.groupId,
303
- groupIcon: t?.icon,
346
+ groupIcon: t?.groupIcon,
347
+ itemIcon: t?.itemIcon,
304
348
  enableReorder: !0
305
349
  });
306
350
  }).filter((e) => e != null);
307
- e.length > 0 && P.push({
351
+ e.length > 0 && R.push({
308
352
  id: "pinned",
309
353
  title: h("sidebar.sections.pinned"),
354
+ icon: W(void 0, /* @__PURE__ */ L(j, {
355
+ width: 16,
356
+ height: 16,
357
+ "aria-hidden": "true"
358
+ })),
310
359
  items: e,
311
360
  collapsible: !1
312
361
  });
@@ -318,8 +367,8 @@ function ce(e) {
318
367
  kind: e.kind,
319
368
  id: e.id
320
369
  };
321
- if (l?.isItemVisible?.(t, f) === !1 || T !== "" && !e.label.toLowerCase().includes(T)) return null;
322
- let i = w.get(e.id);
370
+ if (l?.isItemVisible?.(t, f) === !1 || D !== "" && !e.label.toLowerCase().includes(D)) return null;
371
+ let i = E.get(e.id);
323
372
  return {
324
373
  id: `recent-${e.kind}-${e.id}`,
325
374
  data: {
@@ -329,7 +378,7 @@ function ce(e) {
329
378
  },
330
379
  label: e.label,
331
380
  href: e.href,
332
- icon: U(i?.icon, /* @__PURE__ */ I(M, {
381
+ icon: W(i?.itemIcon ?? i?.groupIcon, /* @__PURE__ */ L(M, {
333
382
  width: 18,
334
383
  height: 18,
335
384
  "aria-hidden": "true"
@@ -338,138 +387,115 @@ function ce(e) {
338
387
  ariaLabel: e.label
339
388
  };
340
389
  }).filter((e) => e != null);
341
- e.length > 0 && P.push({
390
+ e.length > 0 && R.push({
342
391
  id: "recent",
343
392
  title: h("sidebar.sections.recent"),
393
+ icon: W(void 0, /* @__PURE__ */ L(C, {
394
+ width: 16,
395
+ height: 16,
396
+ "aria-hidden": "true"
397
+ })),
344
398
  items: e,
345
399
  collapsible: !1
346
400
  });
347
401
  }
348
- return C.forEach(([e, r], i) => {
349
- if (r.isVisible != null && !r.isVisible(f)) return;
350
- let u = [];
351
- if (i === 0 && l?.isItemVisible?.({
352
- kind: "dashboard",
353
- id: "dashboard"
354
- }, f) !== !1) {
355
- let r = h("sidebar.items.dashboard");
356
- T !== "" && !r.toLowerCase().includes(T) || u.push({
357
- id: "dashboard",
358
- data: {
359
- kind: "dashboard",
360
- id: "dashboard",
361
- groupId: e
362
- },
363
- label: r,
364
- href: t,
365
- icon: U(void 0, /* @__PURE__ */ I(j, {
366
- width: 18,
367
- height: 18,
368
- "aria-hidden": "true"
369
- })),
370
- isActive: s(n, t),
371
- ariaLabel: h("sidebar.items.dashboard")
372
- });
373
- }
374
- let d = o(r);
375
- if (d.length > 0 && d.forEach((t) => {
376
- if (t.kind === "dashboard") return;
377
- if (t.kind === "hub") {
378
- let n = ie({
379
- hub: a(t, l),
402
+ return te.forEach(([e, t]) => {
403
+ if (t.isVisible != null && !t.isVisible(f)) return;
404
+ let n = [], r = o(t);
405
+ r.length > 0 && r.forEach((r) => {
406
+ if (r.kind === "dashboard") {
407
+ let t = P(e);
408
+ t != null && n.push(t);
409
+ return;
410
+ }
411
+ if (r.kind === "hub") {
412
+ let i = I({
413
+ hub: a(r, l),
380
414
  groupId: e,
381
- icon: t.icon ?? r.icon
415
+ icon: r.icon ?? t.icon
382
416
  });
383
- n != null && u.push(n);
417
+ i != null && n.push(i);
384
418
  return;
385
419
  }
386
- let n;
387
- t.label != null && (n = c(t.label, m));
388
- let i = N({
389
- entityId: t.id,
420
+ let i;
421
+ r.label != null && (i = c(r.label, m));
422
+ let o = F({
423
+ entityId: r.id,
390
424
  groupId: e,
391
- groupIcon: r.icon,
392
- itemIcon: t.icon,
393
- itemLabel: n
425
+ groupIcon: t.icon,
426
+ itemIcon: r.icon,
427
+ itemLabel: i
394
428
  });
395
- i != null && u.push(i);
396
- }), u.length === 0) return;
397
- let p;
398
- r.title != null && (p = c(r.title, m));
399
- let g = b?.[e], _;
400
- x != null && (_ = (t) => {
401
- x(e, t);
402
- }), P.push({
429
+ o != null && n.push(o);
430
+ });
431
+ let i = n;
432
+ if (x && t.behavior?.showInCollapsedRail !== !0 && (i = n.filter((e) => e.id === "dashboard" || e.isActive === !0)), i.length === 0) return;
433
+ let s;
434
+ t.title != null && (s = c(t.title, m));
435
+ let u = y?.[e], d;
436
+ b != null && (d = (t) => {
437
+ b(e, t);
438
+ }), R.push({
403
439
  id: e,
404
- title: p,
405
- items: u,
406
- collapsible: r.behavior?.collapsible ?? !0,
407
- defaultCollapsed: r.behavior?.defaultCollapsed ?? !0,
408
- isCollapsed: g,
409
- onCollapsedChange: _
440
+ title: s,
441
+ icon: W(t.icon, void 0, 16),
442
+ items: i,
443
+ collapsible: t.behavior?.collapsible ?? !0,
444
+ defaultCollapsed: t.behavior?.defaultCollapsed ?? !0,
445
+ isCollapsed: u,
446
+ onCollapsedChange: d
410
447
  });
411
- }), P;
448
+ }), R;
412
449
  }
413
450
  //#endregion
414
451
  //#region src/components/backoffice/routing/backofficeContentError.css.ts
415
- var W = "txvbqb9ip txvbqbai7 txvbqbu7g", G = "txvbqbwy", K = (e) => {
416
- if (e instanceof Error) {
417
- let t = e.message.trim();
418
- return t.length > 0 ? t : null;
419
- }
420
- if (typeof e == "string") {
421
- let t = e.trim();
422
- return t.length > 0 ? t : null;
423
- }
424
- return null;
425
- }, le = ({ error: e, onRetry: t }) => {
426
- let { t: n } = r(), i = K(e);
427
- return /* @__PURE__ */ I("div", {
428
- className: W,
429
- role: "alert",
430
- children: /* @__PURE__ */ I(O, {
452
+ var G = "txvbqb9ip txvbqbai7 txvbqbu7g", K = "txvbqbwy", le = ({ onRetry: e }) => {
453
+ let { t } = r();
454
+ return /* @__PURE__ */ L("div", {
455
+ className: G,
456
+ children: /* @__PURE__ */ L(k, {
431
457
  tone: "danger",
432
- className: G,
433
- actions: /* @__PURE__ */ I(w, {
458
+ className: K,
459
+ actions: /* @__PURE__ */ L(T, {
434
460
  type: "button",
435
461
  variant: "secondary",
436
462
  size: "small",
437
- onClick: t,
438
- children: n("common.actions.retry")
463
+ onClick: e,
464
+ children: t("common.actions.retry")
439
465
  }),
440
- children: i
466
+ children: t("common.errors.unexpected")
441
467
  })
442
468
  });
443
- }, q = "txvbqb9ip txvbqbai7 txvbqbaop txvbqbu7g txvbqbjs7", ue = "txvbqbjfg", de = "txvbqb9iy txvbqbaop txvbqbc17", fe = "txvbqb9ip txvbqbai7 txvbqbaog txvbqblbg txvbqbjny txvbqb1ry txvbqb1cp txvbqb1qg txvbqbwp txvbqbv45", J = () => /* @__PURE__ */ L("div", {
469
+ }, q = "txvbqb9ip txvbqbai7 txvbqbaop txvbqbu7g txvbqbjs7", ue = "txvbqbjfg", de = "txvbqb9iy txvbqbaop txvbqbc17", fe = "txvbqb9ip txvbqbai7 txvbqbaog txvbqblbg txvbqbjny txvbqb1ry txvbqb1cp txvbqb1qg txvbqbwp txvbqbv45", J = () => /* @__PURE__ */ R("div", {
444
470
  className: q,
445
471
  role: "status",
446
472
  "aria-live": "polite",
447
473
  "aria-busy": "true",
448
474
  children: [
449
- /* @__PURE__ */ I(N, {
475
+ /* @__PURE__ */ L(N, {
450
476
  variant: "text",
451
477
  width: "38%",
452
478
  className: ue
453
479
  }),
454
- /* @__PURE__ */ I(N, {
480
+ /* @__PURE__ */ L(N, {
455
481
  variant: "text",
456
482
  width: "62%"
457
483
  }),
458
- /* @__PURE__ */ I("div", {
484
+ /* @__PURE__ */ L("div", {
459
485
  className: de,
460
- children: Array.from({ length: 4 }, (e, t) => /* @__PURE__ */ L("div", {
486
+ children: Array.from({ length: 4 }, (e, t) => /* @__PURE__ */ R("div", {
461
487
  className: fe,
462
488
  children: [
463
- /* @__PURE__ */ I(N, {
489
+ /* @__PURE__ */ L(N, {
464
490
  variant: "text",
465
491
  width: "46%"
466
492
  }),
467
- /* @__PURE__ */ I(N, {
493
+ /* @__PURE__ */ L(N, {
468
494
  variant: "text",
469
495
  width: "82%",
470
496
  lines: 2
471
497
  }),
472
- /* @__PURE__ */ I(N, {
498
+ /* @__PURE__ */ L(N, {
473
499
  variant: "block",
474
500
  width: "100%",
475
501
  height: 120
@@ -478,15 +504,15 @@ var W = "txvbqb9ip txvbqbai7 txvbqbu7g", G = "txvbqbwy", K = (e) => {
478
504
  }, `content-skeleton-${t}`))
479
505
  })
480
506
  ]
481
- }), Y = "txvbqb9ip txvbqbai7 txvbqbjs7 txvbqbu7g txvbqbk5y", pe = ({ children: e }) => /* @__PURE__ */ I("div", {
507
+ }), Y = "txvbqb9ip txvbqbai7 txvbqbjs7 txvbqbu7g txvbqbk5y", pe = ({ children: e }) => /* @__PURE__ */ L("div", {
482
508
  className: Y,
483
- children: /* @__PURE__ */ I(p, {
484
- fallback: ({ error: e, reset: t }) => /* @__PURE__ */ I(le, {
509
+ children: /* @__PURE__ */ L(p, {
510
+ fallback: ({ error: e, reset: t }) => /* @__PURE__ */ L(le, {
485
511
  error: e,
486
512
  onRetry: t
487
513
  }),
488
- children: /* @__PURE__ */ I(_, {
489
- fallback: /* @__PURE__ */ I(J, {}),
514
+ children: /* @__PURE__ */ L(_, {
515
+ fallback: /* @__PURE__ */ L(J, {}),
490
516
  children: e
491
517
  })
492
518
  })
@@ -521,30 +547,30 @@ var W = "txvbqb9ip txvbqbai7 txvbqbu7g", G = "txvbqbwy", K = (e) => {
521
547
  window.localStorage.setItem(e, JSON.stringify(t));
522
548
  } catch {}
523
549
  }, Z = ({ children: i, permissions: a, authStatus: o, activeGroupId: s }) => {
524
- let { t: c } = C(), { t: d } = r(), { pathname: p } = te(), _ = y(ee), w = t(), { auth: D, basePath: O, entities: k, sidebar: A } = n(), [j, M] = S(""), N = A?.preferences?.storageKey ?? ge, F = A?.preferences?.persistCollapsed === !0, [L, ae] = S(() => {
525
- if (!F || typeof window > "u") return !1;
550
+ let { t: c } = S(), { t: d } = r(), { pathname: p } = ne(), _ = ee(te), C = t(), { auth: T, basePath: O, entities: k, sidebar: A } = n(), [j, ie] = x(""), M = A?.preferences?.storageKey ?? ge, N = A?.preferences?.persistCollapsed === !0, [I, R] = x(() => {
551
+ if (!N || typeof window > "u") return !1;
526
552
  try {
527
- return window.localStorage.getItem(`${N}:collapsed`) === "true";
553
+ return window.localStorage.getItem(`${M}:collapsed`) === "true";
528
554
  } catch {
529
555
  return !1;
530
556
  }
531
- }), [R, z] = S(!1), [B, V] = S(null), H = A?.recentItems, U = H?.enabled === !0, W = H?.storageKey ?? he, G = H?.maxItems ?? 8, [K, le] = S(() => U ? _e(W) : []);
532
- b(() => {
533
- if (!(!F || typeof window > "u")) try {
534
- window.localStorage.setItem(`${N}:collapsed`, String(L));
557
+ }), [z, B] = x(!1), [V, oe] = x(null), H = A?.recentItems, U = H?.enabled === !0, W = H?.storageKey ?? he, G = H?.maxItems ?? 8, [K, le] = x(() => U ? _e(W) : []);
558
+ y(() => {
559
+ if (!(!N || typeof window > "u")) try {
560
+ window.localStorage.setItem(`${M}:collapsed`, String(I));
535
561
  } catch {}
536
562
  }, [
537
- L,
538
- F,
539
- N
563
+ I,
564
+ N,
565
+ M
540
566
  ]);
541
- let q = x(() => u(k, A), [k, A]), ue = x(() => Object.keys(q), [q]), de = x(() => Object.fromEntries(Object.entries(q).map(([e, t]) => [e, t.behavior?.defaultCollapsed ?? !0])), [q]), fe = x(() => f(q, k, A, a), [
567
+ let q = b(() => u(k, A), [k, A]), ue = b(() => Object.keys(q), [q]), de = b(() => Object.fromEntries(Object.entries(q).map(([e, t]) => [e, t.behavior?.defaultCollapsed ?? !0])), [q]), fe = b(() => f(q, k, A, a), [
542
568
  k,
543
569
  q,
544
570
  a,
545
571
  A
546
- ]), J = x(() => l(p, k), [k, p]);
547
- b(() => {
572
+ ]), J = b(() => l(p, k), [k, p]);
573
+ y(() => {
548
574
  if (!U || J == null) return;
549
575
  let e = k[J];
550
576
  if (e == null || e.kind !== "tool" && !e.hasList) return;
@@ -569,19 +595,19 @@ var W = "txvbqb9ip txvbqbai7 txvbqbu7g", G = "txvbqbwy", K = (e) => {
569
595
  W,
570
596
  c
571
597
  ]);
572
- let { pins: Y, toggle: X, reorder: Z } = oe({
598
+ let { pins: Y, toggle: X, reorder: Z } = ae({
573
599
  enabled: A?.pinnedItems?.enabled === !0,
574
600
  storageKey: A?.pinnedItems?.storageKey,
575
601
  visibleEntityIds: fe
576
- }), Q;
577
- A?.preferences?.storageKey != null && (Q = `${A.preferences.storageKey}:groups`);
578
- let { collapsedByGroupId: $, setCollapsed: ye } = se({
602
+ }), ye;
603
+ A?.preferences?.storageKey != null && (ye = `${A.preferences.storageKey}:groups`);
604
+ let { collapsedByGroupId: Q, setCollapsed: $ } = se({
579
605
  groupIds: ue,
580
606
  activeGroupId: s,
581
607
  defaultCollapsedByGroupId: de,
582
608
  persist: A?.preferences?.persistGroups === !0,
583
- storageKey: Q
584
- }), be = x(() => ce({
609
+ storageKey: ye
610
+ }), be = b(() => ce({
585
611
  basePath: O,
586
612
  pathname: p,
587
613
  entities: k,
@@ -594,29 +620,61 @@ var W = "txvbqb9ip txvbqbai7 txvbqbu7g", G = "txvbqbwy", K = (e) => {
594
620
  recentItems: K,
595
621
  onTogglePin: X,
596
622
  onReorderPin: Z,
597
- collapsedByGroupId: $,
598
- onGroupCollapsedChange: ye
623
+ collapsedByGroupId: Q,
624
+ onGroupCollapsedChange: $,
625
+ sidebarCollapsed: !1
599
626
  }), [
600
627
  O,
628
+ Q,
629
+ k,
630
+ p,
631
+ a,
632
+ Y,
633
+ K,
634
+ Z,
601
635
  $,
636
+ A,
637
+ j,
638
+ d,
639
+ c,
640
+ X
641
+ ]), xe = b(() => ce({
642
+ basePath: O,
643
+ pathname: p,
644
+ entities: k,
645
+ sidebar: A,
646
+ permissions: a,
647
+ searchQuery: j,
648
+ tApp: c,
649
+ t: d,
650
+ pinnedEntityIds: Y,
651
+ recentItems: K,
652
+ onTogglePin: X,
653
+ onReorderPin: Z,
654
+ collapsedByGroupId: Q,
655
+ onGroupCollapsedChange: $,
656
+ sidebarCollapsed: !1
657
+ }), [
658
+ O,
659
+ Q,
602
660
  k,
603
661
  p,
604
662
  a,
605
663
  Y,
606
664
  K,
607
665
  Z,
608
- ye,
666
+ $,
609
667
  A,
610
668
  j,
611
669
  d,
612
670
  c,
613
671
  X
614
- ]), xe = x(() => import.meta.env?.DEV === !0 ? "dev" : "prod", []), Se = v(() => {
615
- R || (z(!0), (async () => {
672
+ ]), Se = b(() => import.meta.env?.DEV === !0 ? "dev" : "prod", []), Ce = v(() => {
673
+ z || (B(!0), (async () => {
616
674
  try {
617
- let t = await D.logout.load();
675
+ let t = await T.logout.load();
618
676
  await new Promise((e, n) => {
619
- P(w, {
677
+ F(C, {
620
678
  mutation: t.logoutMutation,
621
679
  variables: {},
622
680
  onCompleted: () => {
@@ -628,72 +686,98 @@ var W = "txvbqb9ip txvbqbai7 txvbqbu7g", G = "txvbqbwy", K = (e) => {
628
686
  });
629
687
  }), localStorage.removeItem("auth_token"), localStorage.removeItem("remember_me"), e(), _?.history.push({ pathname: h(O) });
630
688
  } finally {
631
- z(!1);
689
+ B(!1);
632
690
  }
633
691
  })().catch(() => {}));
634
692
  }, [
635
- D.logout,
693
+ T.logout,
636
694
  O,
637
- R,
638
- w,
695
+ z,
696
+ C,
639
697
  _
640
- ]), Ce = o?.me ?? null, we = /* @__PURE__ */ I(re, {
641
- collapsed: L,
642
- viewer: x(() => me({
643
- viewer: Ce,
644
- unknownUserLabel: d("sidebar.profile.unknownUser")
645
- }), [d, Ce]),
698
+ ]), we = o?.me ?? null, Te = b(() => me({
699
+ viewer: we,
700
+ unknownUserLabel: d("sidebar.profile.unknownUser")
701
+ }), [d, we]), Ee = /* @__PURE__ */ L(w, {
702
+ collapsed: !1,
703
+ viewer: Te,
646
704
  labels: {
647
705
  sectionTitle: d("sidebar.profile.title"),
648
706
  menuAriaLabel: d("sidebar.profile.menuAriaLabel"),
649
707
  signOut: d("sidebar.profile.actions.signOut")
650
708
  },
651
- onSignOut: Se,
652
- isSigningOut: R
653
- }), Te = null;
654
- B != null && (Te = /* @__PURE__ */ I(pe, { children: i }));
655
- let Ee = null;
656
- return L || (Ee = /* @__PURE__ */ I(E, {
709
+ onSignOut: Ce,
710
+ isSigningOut: z
711
+ }), De = /* @__PURE__ */ L(w, {
712
+ collapsed: !1,
713
+ viewer: Te,
714
+ labels: {
715
+ sectionTitle: d("sidebar.profile.title"),
716
+ menuAriaLabel: d("sidebar.profile.menuAriaLabel"),
717
+ signOut: d("sidebar.profile.actions.signOut")
718
+ },
719
+ onSignOut: Ce,
720
+ isSigningOut: z
721
+ }), Oe = null;
722
+ V != null && (Oe = /* @__PURE__ */ L(pe, { children: i }));
723
+ let ke = /* @__PURE__ */ L(D, {
657
724
  value: j,
658
- onChange: M,
725
+ onChange: ie,
659
726
  placeholder: d("sidebar.search.placeholder"),
660
727
  ariaLabel: d("sidebar.search.placeholder")
661
- })), /* @__PURE__ */ I(ie, { children: /* @__PURE__ */ I(ne, {
728
+ });
729
+ return /* @__PURE__ */ L(P, { children: /* @__PURE__ */ L(re, {
662
730
  sidebar: {
663
731
  sections: be,
664
- header: /* @__PURE__ */ I(T, { environment: xe }),
665
- search: Ee,
666
- footer: we,
667
- isCollapsed: L,
668
- onCollapsedChange: ae
732
+ header: /* @__PURE__ */ L(E, { environment: Se }),
733
+ search: ke,
734
+ footer: Ee,
735
+ isCollapsed: I,
736
+ onCollapsedChange: R,
737
+ collapseToggleLabel: d("sidebar.actions.collapseSidebar"),
738
+ expandToggleLabel: d("sidebar.actions.expandSidebar"),
739
+ navigationAriaLabel: d("sidebar.navigationAriaLabel")
669
740
  },
670
- topbar: { breadcrumb: /* @__PURE__ */ I("div", { ref: V }) },
671
- children: /* @__PURE__ */ I(g, {
741
+ mobileSidebar: {
742
+ sections: xe,
743
+ header: /* @__PURE__ */ L(E, { environment: Se }),
744
+ search: ke,
745
+ footer: De,
746
+ isCollapsed: !1,
747
+ hideCollapseToggle: !0,
748
+ navigationAriaLabel: d("sidebar.navigationAriaLabel")
749
+ },
750
+ topbar: { breadcrumb: /* @__PURE__ */ L("div", { ref: oe }) },
751
+ children: /* @__PURE__ */ L(g, {
672
752
  permissions: a,
673
- children: /* @__PURE__ */ I(m, {
674
- value: { target: B },
675
- children: Te
753
+ children: /* @__PURE__ */ L(m, {
754
+ value: {
755
+ target: V,
756
+ dashboardHref: O,
757
+ dashboardLabel: d("sidebar.items.dashboard")
758
+ },
759
+ children: Oe
676
760
  })
677
761
  })
678
762
  }) });
679
- }, Q = ({ children: e, permissionsQuery: t, prepared: n, authStatus: r, activeGroupId: i }) => /* @__PURE__ */ I(Z, {
680
- permissions: F(t, n),
763
+ }, ye = ({ children: e, permissionsQuery: t, prepared: n, authStatus: r, activeGroupId: i }) => /* @__PURE__ */ L(Z, {
764
+ permissions: I(t, n),
681
765
  authStatus: r,
682
766
  activeGroupId: i,
683
767
  children: e
684
- }), $ = ({ children: e, permissionsQuery: t, prepared: n, authStatus: r, activeGroupId: i }) => t != null && n != null ? /* @__PURE__ */ I(Q, {
768
+ }), Q = ({ children: e, permissionsQuery: t, prepared: n, authStatus: r, activeGroupId: i }) => t != null && n != null ? /* @__PURE__ */ L(ye, {
685
769
  permissionsQuery: t,
686
770
  prepared: n,
687
771
  authStatus: r,
688
772
  activeGroupId: i,
689
773
  children: e
690
- }) : /* @__PURE__ */ I(Z, {
774
+ }) : /* @__PURE__ */ L(Z, {
691
775
  permissions: null,
692
776
  authStatus: r,
693
777
  activeGroupId: i,
694
778
  children: e
695
779
  });
696
780
  //#endregion
697
- export { $ as BackofficeLayoutPage, $ as default };
781
+ export { Q as BackofficeLayoutPage, Q as default };
698
782
 
699
- //# sourceMappingURL=BackofficeLayoutPage-r6dXo9SI.js.map
783
+ //# sourceMappingURL=BackofficeLayoutPage-Bq2bKkYF.js.map