@plumile/backoffice-react 0.1.154 → 0.1.157

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 (72) hide show
  1. package/lib/esm/auth/login/synchronizeAuthStatusQuery.js.map +1 -1
  2. package/lib/esm/components/backoffice/actions/BackofficeEntityActionFormDialog.js.map +1 -1
  3. package/lib/esm/components/backoffice/columns/buildDataTableColumns.js +1 -0
  4. package/lib/esm/components/backoffice/columns/buildDataTableColumns.js.map +1 -1
  5. package/lib/esm/components/backoffice/detail/BackofficeDetailRelationListBlock.js +1 -1
  6. package/lib/esm/components/backoffice/detail/BackofficeDetailRelationListBlock.js.map +1 -1
  7. package/lib/esm/components/backoffice/detail/BackofficeRelationsSummaryGrid.js +1 -0
  8. package/lib/esm/components/backoffice/detail/BackofficeRelationsSummaryGrid.js.map +1 -1
  9. package/lib/esm/components/backoffice/detail/backofficeDetailRelationLink.css.js +0 -1
  10. package/lib/esm/components/backoffice/filters/BackofficeFilterAction.js +1 -0
  11. package/lib/esm/components/backoffice/filters/BackofficeFilterAction.js.map +1 -1
  12. package/lib/esm/components/backoffice/hub/BackofficeHubTemplate.js +1 -0
  13. package/lib/esm/components/backoffice/hub/BackofficeHubTemplate.js.map +1 -1
  14. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js +1 -0
  15. package/lib/esm/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.js.map +1 -1
  16. package/lib/esm/components/backoffice/links/BackofficeInlineLink.js +15 -14
  17. package/lib/esm/components/backoffice/links/BackofficeInlineLink.js.map +1 -1
  18. package/lib/esm/components/backoffice/links/BackofficeLink.js +9 -8
  19. package/lib/esm/components/backoffice/links/BackofficeLink.js.map +1 -1
  20. package/lib/esm/components/backoffice/list/RowFlagsCell.css.js +1 -0
  21. package/lib/esm/components/backoffice/refs/BackofficeLazyEntityCount.js +31 -0
  22. package/lib/esm/components/backoffice/refs/BackofficeLazyEntityCount.js.map +1 -0
  23. package/lib/esm/components/backoffice/refs/BackofficeRelatedCountLink.js +36 -32
  24. package/lib/esm/components/backoffice/refs/BackofficeRelatedCountLink.js.map +1 -1
  25. package/lib/esm/i18n/locales/en/backofficeReact.js +0 -1
  26. package/lib/esm/i18n/locales/en/backofficeReact.js.map +1 -1
  27. package/lib/esm/i18n/locales/fr/backofficeReact.js +0 -1
  28. package/lib/esm/i18n/locales/fr/backofficeReact.js.map +1 -1
  29. package/lib/esm/index.js +33 -32
  30. package/lib/esm/pages/BackofficeEntityDetailLayoutPage.js +110 -10
  31. package/lib/esm/pages/BackofficeEntityDetailLayoutPage.js.map +1 -1
  32. package/lib/esm/pages/BackofficeEntityDetailPage.js +220 -283
  33. package/lib/esm/pages/BackofficeEntityDetailPage.js.map +1 -1
  34. package/lib/esm/pages/BackofficeEntityDetailPage.view-helpers.js +0 -1
  35. package/lib/esm/pages/BackofficeEntityDetailPage.view-helpers.js.map +1 -1
  36. package/lib/esm/pages/BackofficeEntityListPage.helpers.js +2 -2
  37. package/lib/esm/pages/BackofficeEntityListPage.helpers.js.map +1 -1
  38. package/lib/esm/pages/BackofficeEntityListPage.js +78 -267
  39. package/lib/esm/pages/BackofficeEntityListPage.js.map +1 -1
  40. package/lib/esm/pages/detail/BackofficeEntityDetailLayoutContext.js.map +1 -1
  41. package/lib/esm/pages/detail/buildTabsItems.js +1 -0
  42. package/lib/esm/pages/detail/buildTabsItems.js.map +1 -1
  43. package/lib/types/components/backoffice/columns/buildDataTableColumns.d.ts.map +1 -1
  44. package/lib/types/components/backoffice/detail/BackofficeDetailRelationListBlock.d.ts.map +1 -1
  45. package/lib/types/components/backoffice/detail/BackofficeRelationsSummaryGrid.d.ts +1 -1
  46. package/lib/types/components/backoffice/detail/BackofficeRelationsSummaryGrid.d.ts.map +1 -1
  47. package/lib/types/components/backoffice/filters/BackofficeFilterAction.d.ts.map +1 -1
  48. package/lib/types/components/backoffice/hub/BackofficeHubTemplate.d.ts.map +1 -1
  49. package/lib/types/components/backoffice/layout/breadcrumb/BackofficeTopbarBreadcrumb.d.ts.map +1 -1
  50. package/lib/types/components/backoffice/links/BackofficeInlineLink.d.ts +2 -1
  51. package/lib/types/components/backoffice/links/BackofficeInlineLink.d.ts.map +1 -1
  52. package/lib/types/components/backoffice/links/BackofficeLink.d.ts +2 -1
  53. package/lib/types/components/backoffice/links/BackofficeLink.d.ts.map +1 -1
  54. package/lib/types/components/backoffice/refs/BackofficeLazyEntityCount.d.ts +8 -0
  55. package/lib/types/components/backoffice/refs/BackofficeLazyEntityCount.d.ts.map +1 -0
  56. package/lib/types/components/backoffice/refs/BackofficeRelatedCountLink.d.ts +1 -1
  57. package/lib/types/components/backoffice/refs/BackofficeRelatedCountLink.d.ts.map +1 -1
  58. package/lib/types/i18n/resources.d.ts +0 -2
  59. package/lib/types/i18n/resources.d.ts.map +1 -1
  60. package/lib/types/index.d.ts +1 -0
  61. package/lib/types/index.d.ts.map +1 -1
  62. package/lib/types/pages/BackofficeEntityDetailLayoutPage.d.ts.map +1 -1
  63. package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
  64. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts +2 -3
  65. package/lib/types/pages/BackofficeEntityDetailPage.view-helpers.d.ts.map +1 -1
  66. package/lib/types/pages/BackofficeEntityListPage.d.ts.map +1 -1
  67. package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts +1 -6
  68. package/lib/types/pages/BackofficeEntityListPage.helpers.d.ts.map +1 -1
  69. package/lib/types/pages/detail/BackofficeEntityDetailLayoutContext.d.ts +7 -0
  70. package/lib/types/pages/detail/BackofficeEntityDetailLayoutContext.d.ts.map +1 -1
  71. package/lib/types/pages/detail/buildTabsItems.d.ts.map +1 -1
  72. package/package.json +11 -11
@@ -1,206 +1,177 @@
1
1
  import { useBackofficeReactTranslation as e } from "../i18n/useBackofficeReactTranslation.js";
2
2
  import { resolveMutationOutcome as t } from "../relay/mutationResult.js";
3
3
  import { useBackofficeConfig as n } from "../provider/BackofficeConfigContext.js";
4
- import { BackofficeErrorBoundary as r } from "../components/backoffice/errors/BackofficeErrorBoundary.js";
5
- import { resolveToastSpec as i, resolveToastViewActions as a } from "../components/backoffice/actions/toastViewAction.js";
6
- import { LazyBackofficeEntityActionFormDialog as o } from "../components/backoffice/actions/LazyBackofficeEntityActionFormDialog.js";
7
- import { buildDataTableColumns as s } from "../components/backoffice/columns/buildDataTableColumns.js";
8
- import { BackofficeDetailBadgeRow as c } from "../components/backoffice/detail/BackofficeDetailBadgeRow.js";
9
- import { BackofficeDetailFlagTag as l } from "../components/backoffice/detail/BackofficeDetailFlagTag.js";
10
- import { BackofficeDetailTaggedValue as u } from "../components/backoffice/detail/BackofficeDetailTaggedValue.js";
11
- import { BackofficeLifecycleTimelineSection as d } from "../components/backoffice/detail/BackofficeLifecycleTimelineSection.js";
12
- import { BackofficeRelationsSummaryGrid as f } from "../components/backoffice/detail/BackofficeRelationsSummaryGrid.js";
13
- import { BackofficeRightPageLayout as ee } from "../components/backoffice/layout/breadcrumb/BackofficeRightPageLayout.js";
14
- import { buildEntityDetailBreadcrumb as te } from "../components/backoffice/layout/breadcrumb/buildBreadcrumbs.js";
15
- import { BackofficeEntityDetailScaffold as p } from "../components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js";
16
- import { useBackofficeFormats as m } from "../i18n/useBackofficeFormats.js";
17
- import { useRelayEnvironment as ne } from "../relay/useRelayEnvironment.js";
4
+ import { resolveToastSpec as r, resolveToastViewActions as i } from "../components/backoffice/actions/toastViewAction.js";
5
+ import { LazyBackofficeEntityActionFormDialog as a } from "../components/backoffice/actions/LazyBackofficeEntityActionFormDialog.js";
6
+ import { buildDataTableColumns as o } from "../components/backoffice/columns/buildDataTableColumns.js";
7
+ import { BackofficeDetailBadgeRow as s } from "../components/backoffice/detail/BackofficeDetailBadgeRow.js";
8
+ import { BackofficeDetailFlagTag as c } from "../components/backoffice/detail/BackofficeDetailFlagTag.js";
9
+ import { BackofficeDetailTaggedValue as l } from "../components/backoffice/detail/BackofficeDetailTaggedValue.js";
10
+ import { BackofficeLifecycleTimelineSection as u } from "../components/backoffice/detail/BackofficeLifecycleTimelineSection.js";
11
+ import { BackofficeRelationsSummaryGrid as d } from "../components/backoffice/detail/BackofficeRelationsSummaryGrid.js";
12
+ import { layout as ee, primary as te, secondary as ne, stacked as re } from "../components/backoffice/detail/backofficeDetailLayout.css.js";
13
+ import { BackofficeLazyEntityCount as ie } from "../components/backoffice/refs/BackofficeLazyEntityCount.js";
14
+ import { BackofficeEntityDetailScaffold as f } from "../components/backoffice/scaffolds/BackofficeEntityDetailScaffold.js";
15
+ import { useBackofficeFormats as p } from "../i18n/useBackofficeFormats.js";
16
+ import { useRelayEnvironment as m } from "../relay/useRelayEnvironment.js";
18
17
  import { resolveVisibleDetailPages as h } from "./detail/pageResolution.js";
19
- import { useBackofficeEntityDetailLayoutContext as g } from "./detail/BackofficeEntityDetailLayoutContext.js";
20
- import { BackofficeRedirect as _ } from "./BackofficeRedirect.js";
21
- import { extractMutationPayload as re, isFormMutationAction as v, isMutationAction as ie, isRouteAction as ae, resolveLabel as y } from "./BackofficeEntityDetailPage.helpers.js";
22
- import { headerActions as oe, headerBlock as se, headerMeta as ce, headerMetaList as le } from "./backofficeEntityDetailPage.css.js";
23
- import { buildTabsItems as ue } from "./detail/buildTabsItems.js";
24
- import { buildFieldItems as de, renderBlocks as fe, resolveHeaderItems as pe } from "./BackofficeEntityDetailPage.view-helpers.js";
25
- import { Suspense as b, useContext as x, useMemo as S, useState as C } from "react";
26
- import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
27
- import { useTranslation as D } from "react-i18next";
28
- import { Button as O } from "@plumile/ui/atomic/atoms/button/Button.js";
29
- import { commitMutation as me, useFragment as k, useLazyLoadQuery as A, usePreloadedQuery as j } from "react-relay";
30
- import { useToast as M } from "@plumile/ui/atomic/molecules/toast/ToastProvider.js";
31
- import N from "@plumile/router/routing/RoutingContext.js";
32
- import { FormattedDate as P } from "@plumile/ui/atomic/atoms/formatted-date/FormattedDate.js";
33
- import { BACKOFFICE_DATE_TIME_OPTIONS as F } from "@plumile/backoffice-core/constants.js";
34
- import I from "@plumile/router/routing/Link.js";
35
- import { Tag as L } from "@plumile/ui/backoffice/atoms/tag/Tag.js";
36
- import { buildBackofficeFallbackListHref as he, buildBackofficeListHref as ge, buildBackofficeListLink as _e } from "@plumile/backoffice-core/state/buildListHref.js";
37
- import { BackofficeDetailSection as R } from "@plumile/ui/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.js";
38
- import { BackofficePayloadViewer as ve } from "@plumile/ui/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.js";
39
- import { setWhereValue as ye } from "@plumile/backoffice-core/filters/where.js";
40
- import { BackofficePageHeader as be } from "@plumile/ui/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js";
41
- import { AuditTimeline as xe } from "@plumile/ui/backoffice/organisms/audit_timeline/AuditTimeline.js";
42
- import { MetricCard as Se } from "@plumile/ui/components/dashboard/metric_card/MetricCard.js";
43
- import { MetricTileGroup as Ce } from "@plumile/ui/components/dashboard/metric_tile_group/MetricTileGroup.js";
44
- import { Tabs as we } from "@plumile/ui/atomic/molecules/tabs/Tabs.js";
45
- import { DetailPageTemplate as Te } from "@plumile/ui/backoffice/templates/detail_page_template/DetailPageTemplate.js";
46
- import { DataTable as Ee } from "@plumile/ui/components/data-table/DataTable.js";
47
- import { LinkButton as De } from "@plumile/ui/atomic/atoms/button/LinkButton.js";
48
- import { BackofficeKeyValueList as z } from "@plumile/ui/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js";
49
- import { BackofficeRelationsMenu as Oe } from "@plumile/ui/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js";
50
- import { BackofficeScopeStack as ke } from "@plumile/ui/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.js";
51
- import { ChatCheckSvg as B } from "@plumile/ui/icons/ChatCheckSvg.js";
52
- import { KeyOffSvg as Ae } from "@plumile/ui/icons/KeyOffSvg.js";
53
- import { KeySvg as je } from "@plumile/ui/icons/KeySvg.js";
54
- import { LockOpenSvg as Me } from "@plumile/ui/icons/LockOpenSvg.js";
55
- import { LockSvg as Ne } from "@plumile/ui/icons/LockSvg.js";
18
+ import { headerActions as ae } from "./backofficeEntityDetailPage.css.js";
19
+ import { extractMutationPayload as oe, isFormMutationAction as g, isMutationAction as se, isRouteAction as ce, resolveLabel as _ } from "./BackofficeEntityDetailPage.helpers.js";
20
+ import { buildFieldItems as le, renderBlocks as ue } from "./BackofficeEntityDetailPage.view-helpers.js";
21
+ import { useBackofficeEntityDetailLayoutContext as v } from "./detail/BackofficeEntityDetailLayoutContext.js";
22
+ import { BackofficeRedirect as y } from "./BackofficeRedirect.js";
23
+ import { useContext as b, useMemo as x, useState as S } from "react";
24
+ import { Fragment as de, jsx as C, jsxs as w } from "react/jsx-runtime";
25
+ import { useTranslation as T } from "react-i18next";
26
+ import { Button as E } from "@plumile/ui/atomic/atoms/button/Button.js";
27
+ import { commitMutation as fe, useFragment as pe, usePreloadedQuery as me } from "react-relay";
28
+ import { useToast as he } from "@plumile/ui/atomic/molecules/toast/ToastProvider.js";
29
+ import ge from "@plumile/router/routing/RoutingContext.js";
30
+ import { FormattedDate as D } from "@plumile/ui/atomic/atoms/formatted-date/FormattedDate.js";
31
+ import { BACKOFFICE_DATE_TIME_OPTIONS as O } from "@plumile/backoffice-core/constants.js";
32
+ import k from "@plumile/router/routing/Link.js";
33
+ import { Tag as A } from "@plumile/ui/backoffice/atoms/tag/Tag.js";
34
+ import { buildBackofficeFallbackListHref as _e, buildBackofficeListHref as ve, buildBackofficeListLink as ye } from "@plumile/backoffice-core/state/buildListHref.js";
35
+ import { BackofficeDetailSection as j } from "@plumile/ui/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.js";
36
+ import { BackofficePayloadViewer as M } from "@plumile/ui/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.js";
37
+ import { setWhereValue as N } from "@plumile/backoffice-core/filters/where.js";
38
+ import { AuditTimeline as P } from "@plumile/ui/backoffice/organisms/audit_timeline/AuditTimeline.js";
39
+ import { MetricCard as be } from "@plumile/ui/components/dashboard/metric_card/MetricCard.js";
40
+ import { MetricTileGroup as xe } from "@plumile/ui/components/dashboard/metric_tile_group/MetricTileGroup.js";
41
+ import { DataTable as Se } from "@plumile/ui/components/data-table/DataTable.js";
42
+ import { BackofficeKeyValueList as Ce } from "@plumile/ui/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js";
43
+ import { LinkButton as F } from "@plumile/ui/atomic/atoms/button/LinkButton.js";
44
+ import { BackofficeRelationsMenu as we } from "@plumile/ui/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js";
45
+ import { BackofficeScopeStack as Te } from "@plumile/ui/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.js";
46
+ import { ChatCheckSvg as I } from "@plumile/ui/icons/ChatCheckSvg.js";
47
+ import { KeyOffSvg as L } from "@plumile/ui/icons/KeyOffSvg.js";
48
+ import { KeySvg as R } from "@plumile/ui/icons/KeySvg.js";
49
+ import { LockOpenSvg as z } from "@plumile/ui/icons/LockOpenSvg.js";
50
+ import { LockSvg as B } from "@plumile/ui/icons/LockSvg.js";
56
51
  import { RobotCheckSvg as V } from "@plumile/ui/icons/RobotCheckSvg.js";
57
52
  import { RobotXSvg as H } from "@plumile/ui/icons/RobotXSvg.js";
58
53
  import { RocketOffSvg as U } from "@plumile/ui/icons/RocketOffSvg.js";
59
54
  import { RocketSvg as W } from "@plumile/ui/icons/RocketSvg.js";
60
- import { SettingsCheckSvg as Pe } from "@plumile/ui/icons/SettingsCheckSvg.js";
61
- import { SettingsXSvg as G } from "@plumile/ui/icons/SettingsXSvg.js";
62
- import { ShieldLockSvg as Fe } from "@plumile/ui/icons/ShieldLockSvg.js";
63
- import { ShieldOffSvg as K } from "@plumile/ui/icons/ShieldOffSvg.js";
64
- import { XBadgeSvg as Ie } from "@plumile/ui/icons/XBadgeSvg.js";
55
+ import { SettingsCheckSvg as G } from "@plumile/ui/icons/SettingsCheckSvg.js";
56
+ import { SettingsXSvg as K } from "@plumile/ui/icons/SettingsXSvg.js";
57
+ import { ShieldLockSvg as q } from "@plumile/ui/icons/ShieldLockSvg.js";
58
+ import { ShieldOffSvg as J } from "@plumile/ui/icons/ShieldOffSvg.js";
59
+ import { XBadgeSvg as Y } from "@plumile/ui/icons/XBadgeSvg.js";
65
60
  //#region src/pages/BackofficeEntityDetailPage.tsx
66
- var q = "store-or-network", J = ({ count: e, node: t, relationValue: n }) => {
67
- let r = A(e.query, e.getVariables(t, n), { fetchPolicy: q }), i = e.getCount(r);
68
- return i == null ? null : /* @__PURE__ */ T(w, { children: i });
69
- }, Le = ({ count: e, node: t, relationValue: n }) => e == null ? null : /* @__PURE__ */ T(r, {
70
- fallback: () => null,
71
- children: /* @__PURE__ */ T(b, {
72
- fallback: null,
73
- children: /* @__PURE__ */ T(J, {
74
- count: e,
75
- node: t,
76
- relationValue: n
77
- })
78
- })
79
- }), Re = (e) => {
61
+ var Ee = (e) => {
80
62
  switch (e) {
81
- case "shield-lock": return /* @__PURE__ */ T(Fe, {
63
+ case "shield-lock": return /* @__PURE__ */ C(q, {
82
64
  width: 14,
83
65
  height: 14,
84
66
  "aria-hidden": "true"
85
67
  });
86
- case "shield-off": return /* @__PURE__ */ T(K, {
68
+ case "shield-off": return /* @__PURE__ */ C(J, {
87
69
  width: 14,
88
70
  height: 14,
89
71
  "aria-hidden": "true"
90
72
  });
91
- case "settings-check": return /* @__PURE__ */ T(Pe, {
73
+ case "settings-check": return /* @__PURE__ */ C(G, {
92
74
  width: 14,
93
75
  height: 14,
94
76
  "aria-hidden": "true"
95
77
  });
96
- case "settings-x": return /* @__PURE__ */ T(G, {
78
+ case "settings-x": return /* @__PURE__ */ C(K, {
97
79
  width: 14,
98
80
  height: 14,
99
81
  "aria-hidden": "true"
100
82
  });
101
- case "x-badge": return /* @__PURE__ */ T(Ie, {
83
+ case "x-badge": return /* @__PURE__ */ C(Y, {
102
84
  width: 14,
103
85
  height: 14,
104
86
  "aria-hidden": "true"
105
87
  });
106
- case "chat-check": return /* @__PURE__ */ T(B, {
88
+ case "chat-check": return /* @__PURE__ */ C(I, {
107
89
  width: 14,
108
90
  height: 14,
109
91
  "aria-hidden": "true"
110
92
  });
111
- case "key": return /* @__PURE__ */ T(je, {
93
+ case "key": return /* @__PURE__ */ C(R, {
112
94
  width: 14,
113
95
  height: 14,
114
96
  "aria-hidden": "true"
115
97
  });
116
- case "key-off": return /* @__PURE__ */ T(Ae, {
98
+ case "key-off": return /* @__PURE__ */ C(L, {
117
99
  width: 14,
118
100
  height: 14,
119
101
  "aria-hidden": "true"
120
102
  });
121
- case "lock": return /* @__PURE__ */ T(Ne, {
103
+ case "lock": return /* @__PURE__ */ C(B, {
122
104
  width: 14,
123
105
  height: 14,
124
106
  "aria-hidden": "true"
125
107
  });
126
- case "lock-open": return /* @__PURE__ */ T(Me, {
108
+ case "lock-open": return /* @__PURE__ */ C(z, {
127
109
  width: 14,
128
110
  height: 14,
129
111
  "aria-hidden": "true"
130
112
  });
131
- case "robot-check": return /* @__PURE__ */ T(V, {
113
+ case "robot-check": return /* @__PURE__ */ C(V, {
132
114
  width: 14,
133
115
  height: 14,
134
116
  "aria-hidden": "true"
135
117
  });
136
- case "robot-x": return /* @__PURE__ */ T(H, {
118
+ case "robot-x": return /* @__PURE__ */ C(H, {
137
119
  width: 14,
138
120
  height: 14,
139
121
  "aria-hidden": "true"
140
122
  });
141
- case "rocket": return /* @__PURE__ */ T(W, {
123
+ case "rocket": return /* @__PURE__ */ C(W, {
142
124
  width: 14,
143
125
  height: 14,
144
126
  "aria-hidden": "true"
145
127
  });
146
- case "rocket-off": return /* @__PURE__ */ T(U, {
128
+ case "rocket-off": return /* @__PURE__ */ C(U, {
147
129
  width: 14,
148
130
  height: 14,
149
131
  "aria-hidden": "true"
150
132
  });
151
133
  default: throw Error(`Unsupported flag icon: ${String(e)}`);
152
134
  }
153
- }, ze = (e) => {
135
+ }, De = (e) => {
154
136
  if (e.presentation?.desktop === "secondary" || e.presentation?.group === "scope" || e.presentation?.group === "status") return "secondary";
155
137
  let t = e.fields?.map((e) => e.presentation?.group) ?? [];
156
138
  return t.length > 0 && t.every((e) => e === "scope" || e === "status") || e.placement === "side" || e.placement === "secondary" ? "secondary" : "primary";
157
- }, Y = ({ config: r, prepared: b }) => {
158
- let { t: A } = D(), { t: B } = e(), { formatNumber: Ae, formatCurrency: je, formatCurrencyTitle: Me, formatPercent: Ne } = m(), { entities: V, entityRegistry: H } = n(), { layoutView: U } = g(), W = x(N), Pe = ne(), G = M(), [Fe, K] = C({}), [Ie, q] = C(null), J = h({
159
- mainPage: r.pages.mainPage,
160
- subPages: r.pages.subPages,
161
- activePagePath: b.pagePath,
162
- node: U
163
- }), Y = J.activePage ?? r.pages.mainPage, X = J.pages.length > 0 ? J.pages : [r.pages.mainPage], Z = (e, t) => {
164
- K((n) => n[e] === t ? n : {
139
+ }, X = ({ config: h, prepared: v }) => {
140
+ let { t: I } = T(), { t: L } = e(), { formatNumber: R, formatCurrency: z, formatCurrencyTitle: B, formatPercent: V } = p(), { entities: H, entityRegistry: U } = n(), W = b(ge), G = m(), K = he(), [q, J] = S({}), [Y, X] = S(null), Z = (e, t) => {
141
+ J((n) => n[e] === t ? n : {
165
142
  ...n,
166
143
  [e]: t
167
144
  });
168
- }, { page: Q } = r, Be = j(Q.query, b.pageQuery), $ = Q.resolveNode(Be, {
169
- id: b.id,
170
- detailId: b.detailId
171
- }), Ve = $ != null, He = k(Q.fragment, $), Ue = S(() => Object.fromEntries(Q.content.flatMap((e) => e.kind === "fieldSet" ? e.fields.flatMap((e) => e.type === "relation" ? [e.relation.target] : []) : []).flatMap((e) => {
172
- let t = V[e];
145
+ }, { page: Q } = h, Oe = me(Q.query, v.pageQuery), $ = Q.resolveNode(Oe, {
146
+ id: v.id,
147
+ detailId: v.detailId
148
+ }), ke = $ != null, Ae = pe(Q.fragment, $), je = x(() => Object.fromEntries(Q.content.flatMap((e) => e.kind === "fieldSet" ? e.fields.flatMap((e) => e.type === "relation" ? [e.relation.target] : []) : []).flatMap((e) => {
149
+ let t = H[e];
173
150
  return t?.hasList === !0 ? [[e, t.routes.list]] : [];
174
- })), [V, Q.content]);
175
- return Ve ? /* @__PURE__ */ T(p, {
176
- node: He,
151
+ })), [H, Q.content]);
152
+ return ke ? /* @__PURE__ */ C(f, {
153
+ node: Ae,
177
154
  render: (e) => {
178
- let n = Q.toView(e), p = ue({
179
- pages: X,
180
- id: b.id,
181
- tApp: A,
182
- detailPageHref: r.routes.detailPage
183
- }), m = (e, t) => {
184
- let n = V[e];
155
+ let n = Q.toView(e), f = (e, t) => {
156
+ let n = H[e];
185
157
  return n == null ? null : n.routes.detail(t);
186
- }, ne = ({ id: e, label: t, count: r, relation: i, listRoute: a, value: o, where: s }) => {
187
- let { target: c, filterId: l, whereKey: u, path: d } = i, f = H.getLoadedListEntity(c);
158
+ }, p = ({ id: e, label: t, relation: n, listRoute: r, value: i, where: a }) => {
159
+ let { target: o, filterId: s, whereKey: c, path: l } = n, u = U.getLoadedListEntity(o);
188
160
  return {
189
161
  id: e,
190
162
  label: t,
191
- count: Le({
192
- count: r,
193
- node: n,
194
- relationValue: o
163
+ count: /* @__PURE__ */ C(ie, {
164
+ entity: o,
165
+ where: a
195
166
  }),
196
- href: f == null ? he(a, s, [{
197
- id: l ?? (d == null ? u : `${u}.${d.join(".")}`),
198
- value: o
199
- }]) : ge(f.config, { where: s }),
167
+ href: u == null ? _e(r, a, [{
168
+ id: s ?? (l == null ? c : `${c}.${l.join(".")}`),
169
+ value: i
170
+ }]) : ve(u.config, { where: a }),
200
171
  onClick: async (e) => {
201
172
  if (W == null || e.defaultPrevented || e.button !== 0 || e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) return;
202
173
  e.preventDefault();
203
- let t = _e((await H.loadListEntity(c)).config, { where: s });
174
+ let t = ye((await U.loadListEntity(o)).config, { where: a });
204
175
  W.history.push({
205
176
  pathname: t.pathname,
206
177
  search: t.search === "" ? "" : `?${t.search}`,
@@ -208,55 +179,31 @@ var q = "store-or-network", J = ({ count: e, node: t, relationValue: n }) => {
208
179
  });
209
180
  }
210
181
  };
211
- }, h = pe(r.header, U, {
212
- tApp: A,
213
- t: B,
214
- resolveEntityHref: m,
215
- renderLink: (e, t) => /* @__PURE__ */ T(I, {
216
- to: e,
217
- children: t
218
- }),
219
- renderDate: (e, t) => /* @__PURE__ */ T(P, {
220
- value: e,
221
- options: F,
222
- fallback: t
223
- }),
224
- renderTag: (e, t) => /* @__PURE__ */ T(L, {
225
- tone: e,
226
- children: t
227
- }),
228
- renderBadgeRow: (e) => /* @__PURE__ */ T(c, { items: e })
229
- }), g = te({
230
- config: r,
231
- tApp: A,
232
- entityId: b.id,
233
- layoutView: U,
234
- pageLabel: Y.label(A),
235
- pageId: Y.id
236
- }), _ = Q.actions ?? [], x = [];
237
- if (_.length > 0) {
238
- let e = _.filter((e) => e.isVisible == null ? !0 : e.isVisible(n));
239
- e.length > 0 && (x = e.map((e) => {
240
- let r = y(e.label, A), o = e.ariaLabel == null ? r : y(e.ariaLabel, A), s = e.variant ?? "secondary", c = e.size ?? "small", l = Fe[e.id] ?? !1, u = l || e.isDisabled?.(n) === !0;
241
- return ae(e) ? /* @__PURE__ */ T(De, {
182
+ }, m = Q.actions ?? [], h = [];
183
+ if (m.length > 0) {
184
+ let e = m.filter((e) => e.isVisible == null ? !0 : e.isVisible(n));
185
+ e.length > 0 && (h = e.map((e) => {
186
+ let a = _(e.label, I), o = e.ariaLabel == null ? a : _(e.ariaLabel, I), s = e.variant ?? "secondary", c = e.size ?? "small", l = q[e.id] ?? !1, u = l || e.isDisabled?.(n) === !0;
187
+ return ce(e) ? /* @__PURE__ */ C(F, {
242
188
  to: e.to(n),
243
189
  variant: s,
244
190
  size: c,
245
191
  isDisabled: u,
246
192
  "aria-label": o,
247
- children: r
248
- }, e.id) : v(e) ? /* @__PURE__ */ T(O, {
193
+ preloadOnMouseEnter: !0,
194
+ children: a
195
+ }, e.id) : g(e) ? /* @__PURE__ */ C(E, {
249
196
  type: "button",
250
197
  variant: s,
251
198
  size: c,
252
199
  isLoading: !1,
253
200
  disabled: u,
254
201
  onClick: () => {
255
- q(e.id);
202
+ X(e.id);
256
203
  },
257
204
  "aria-label": o,
258
- children: r
259
- }, e.id) : ie(e) ? /* @__PURE__ */ T(O, {
205
+ children: a
206
+ }, e.id) : se(e) ? /* @__PURE__ */ C(E, {
260
207
  type: "button",
261
208
  variant: s,
262
209
  size: c,
@@ -264,48 +211,48 @@ var q = "store-or-network", J = ({ count: e, node: t, relationValue: n }) => {
264
211
  disabled: u,
265
212
  onClick: () => {
266
213
  if (l) return;
267
- let r = e.getVariables(n);
268
- Z(e.id, !0), me(Pe, {
214
+ let a = e.getVariables(n);
215
+ Z(e.id, !0), fe(G, {
269
216
  mutation: e.mutation,
270
- variables: r,
217
+ variables: a,
271
218
  updater: (t) => {
272
219
  e.updater?.(t, n);
273
220
  },
274
- onCompleted: (r) => {
221
+ onCompleted: (a) => {
275
222
  Z(e.id, !1);
276
- let o = re(r);
223
+ let o = oe(a);
277
224
  if (o != null) {
278
- let r = B("actions.form.errors.invalidPayload");
279
- e.toasts?.error?.message == null ? e.toasts?.error?.title != null && (r = y(e.toasts.error.title, A)) : r = y(e.toasts.error.message, A);
225
+ let i = L("actions.form.errors.invalidPayload");
226
+ e.toasts?.error?.message == null ? e.toasts?.error?.title != null && (i = _(e.toasts.error.title, I)) : i = _(e.toasts.error.message, I);
280
227
  let a = t(o, {
281
- defaultErrorMessage: r,
228
+ defaultErrorMessage: i,
282
229
  mapReason: (t) => {
283
230
  let r = e.mapErrorReason?.(t, n);
284
- return r == null ? null : typeof r == "function" ? y(r, A) : String(r);
231
+ return r == null ? null : typeof r == "function" ? _(r, I) : String(r);
285
232
  }
286
233
  });
287
234
  if (!a.ok) {
288
235
  let t = Error(a.message);
289
236
  if (e.onError?.(t, n), e.toasts?.error != null) {
290
- let t = i(e.toasts.error, A);
291
- G.error(t.title, t.message);
237
+ let t = r(e.toasts.error, I);
238
+ K.error(t.title, t.message);
292
239
  }
293
240
  return;
294
241
  }
295
242
  }
296
- if (e.onCompleted?.(r, n), e.toasts?.success != null) {
297
- let t = i(e.toasts.success, A), o = a({
243
+ if (e.onCompleted?.(a, n), e.toasts?.success != null) {
244
+ let t = r(e.toasts.success, I), o = i({
298
245
  toast: e.toasts.success,
299
- response: r,
246
+ response: a,
300
247
  node: n,
301
- tApp: A,
302
- entities: V,
303
- defaultLabel: B("actions.view"),
248
+ tApp: I,
249
+ entities: H,
250
+ defaultLabel: L("actions.view"),
304
251
  navigateTo: (e) => {
305
252
  W?.history.push({ pathname: e });
306
253
  }
307
254
  });
308
- G.push({
255
+ K.push({
309
256
  kind: "info",
310
257
  title: t.title,
311
258
  message: t.message,
@@ -315,61 +262,62 @@ var q = "store-or-network", J = ({ count: e, node: t, relationValue: n }) => {
315
262
  },
316
263
  onError: (t) => {
317
264
  if (Z(e.id, !1), e.onError?.(t, n), e.toasts?.error != null) {
318
- let t = i(e.toasts.error, A);
319
- G.error(t.title, t.message);
265
+ let t = r(e.toasts.error, I);
266
+ K.error(t.title, t.message);
320
267
  }
321
268
  }
322
269
  });
323
270
  },
324
271
  "aria-label": o,
325
- children: r
272
+ children: a
326
273
  }, e.id) : null;
327
274
  }));
328
275
  }
329
- let S = _.find((e) => e.id === Ie), { content: C } = Q, D = [], k = [], j = [];
330
- C.forEach((e, t) => {
331
- let r = ze(e) === "secondary" ? k : D;
276
+ let v = m.find((e) => e.id === Y), { content: y } = Q, b = [], x = [], S = [];
277
+ y.forEach((e, t) => {
278
+ let r = De(e) === "secondary" ? x : b;
332
279
  if (e.kind === "fieldSet") {
333
- let i = y(e.title, A), a = e.description == null ? void 0 : y(e.description, A), { items: o, relationItems: s, customNodes: d } = de(e.fields, n, {
334
- tApp: A,
335
- t: B,
336
- resolveEntityHref: m,
337
- formatNumber: Ae,
338
- formatCurrency: je,
339
- formatCurrencyTitle: Me,
340
- formatPercent: Ne,
341
- relationEntityListRoutes: Ue,
342
- resolveRelationItem: ne,
343
- setWhereValue: ye,
344
- renderTag: (e, t) => /* @__PURE__ */ T(L, {
280
+ let i = _(e.title, I), a = e.description == null ? void 0 : _(e.description, I), { items: o, relationItems: u, customNodes: d } = le(e.fields, n, {
281
+ tApp: I,
282
+ t: L,
283
+ resolveEntityHref: f,
284
+ formatNumber: R,
285
+ formatCurrency: z,
286
+ formatCurrencyTitle: B,
287
+ formatPercent: V,
288
+ relationEntityListRoutes: je,
289
+ resolveRelationItem: p,
290
+ setWhereValue: N,
291
+ renderTag: (e, t) => /* @__PURE__ */ C(A, {
345
292
  tone: e,
346
293
  children: t
347
294
  }),
348
- renderBadgeRow: (e) => /* @__PURE__ */ T(c, { items: e }),
349
- renderDate: (e, t) => /* @__PURE__ */ T(P, {
295
+ renderBadgeRow: (e) => /* @__PURE__ */ C(s, { items: e }),
296
+ renderDate: (e, t) => /* @__PURE__ */ C(D, {
350
297
  value: e,
351
- options: F,
298
+ options: O,
352
299
  fallback: t
353
300
  }),
354
- renderFlagTag: (e) => /* @__PURE__ */ T(l, {
301
+ renderFlagTag: (e) => /* @__PURE__ */ C(c, {
355
302
  tone: e.tone,
356
- icon: e.iconName == null ? void 0 : Re(e.iconName),
303
+ icon: e.iconName == null ? void 0 : Ee(e.iconName),
357
304
  label: e.label
358
305
  }),
359
- renderLink: (e, t) => /* @__PURE__ */ T(I, {
306
+ renderLink: (e, t) => /* @__PURE__ */ C(k, {
360
307
  to: e,
308
+ preloadOnMouseEnter: !0,
361
309
  children: t
362
310
  }),
363
- renderTaggedValue: (e, t) => /* @__PURE__ */ T(u, {
311
+ renderTaggedValue: (e, t) => /* @__PURE__ */ C(l, {
364
312
  tag: e,
365
313
  value: t
366
314
  }),
367
- wrapCustomNode: (e, t) => /* @__PURE__ */ T("div", { children: t }, e)
315
+ wrapCustomNode: (e, t) => /* @__PURE__ */ C("div", { children: t }, e)
368
316
  });
369
- if (s.forEach((e) => {
370
- j.some((t) => t.id === e.id) || j.push(e);
317
+ if (u.forEach((e) => {
318
+ S.some((t) => t.id === e.id) || S.push(e);
371
319
  }), !(o.length > 0 || d.length > 0)) return;
372
- r.push(/* @__PURE__ */ T(R, {
320
+ r.push(/* @__PURE__ */ C(j, {
373
321
  title: i,
374
322
  description: a,
375
323
  items: o.length > 0 ? o : void 0,
@@ -377,73 +325,74 @@ var q = "store-or-network", J = ({ count: e, node: t, relationValue: n }) => {
377
325
  }, `${i}-${t}`));
378
326
  return;
379
327
  }
380
- let i = fe([e], n, {
381
- tApp: A,
382
- t: B,
383
- resolveEntityHref: m,
328
+ let i = ue([e], n, {
329
+ tApp: I,
330
+ t: L,
331
+ resolveEntityHref: f,
384
332
  keyPrefix: String(t),
385
- renderLink: (e, t) => /* @__PURE__ */ T(I, {
333
+ renderLink: (e, t) => /* @__PURE__ */ C(k, {
386
334
  to: e,
335
+ preloadOnMouseEnter: !0,
387
336
  children: t
388
337
  }),
389
- renderDate: (e, t) => /* @__PURE__ */ T(P, {
338
+ renderDate: (e, t) => /* @__PURE__ */ C(D, {
390
339
  value: e,
391
- options: F,
340
+ options: O,
392
341
  fallback: t
393
342
  }),
394
- renderTag: (e, t) => /* @__PURE__ */ T(L, {
343
+ renderTag: (e, t) => /* @__PURE__ */ C(A, {
395
344
  tone: e,
396
345
  children: t
397
346
  }),
398
- renderMetricGroup: ({ key: e, title: t, description: n, density: r, items: i }) => /* @__PURE__ */ T(R, {
347
+ renderMetricGroup: ({ key: e, title: t, description: n, density: r, items: i }) => /* @__PURE__ */ C(j, {
399
348
  title: t,
400
349
  description: n,
401
- children: i.length > 0 && /* @__PURE__ */ T(Ce, {
350
+ children: i.length > 0 && /* @__PURE__ */ C(xe, {
402
351
  density: r ?? "comfortable",
403
352
  minColumn: "180",
404
- children: i.map((e) => /* @__PURE__ */ T(Se, {
353
+ children: i.map((e) => /* @__PURE__ */ C(be, {
405
354
  label: e.label,
406
355
  value: e.value,
407
356
  hint: e.hint,
408
357
  tone: e.tone ?? "neutral",
409
358
  density: r ?? "comfortable",
410
359
  copyValue: e.copyValue,
411
- copyLabel: B("common.actions.copy"),
412
- copiedLabel: B("common.actions.copied")
360
+ copyLabel: L("common.actions.copy"),
361
+ copiedLabel: L("common.actions.copied")
413
362
  }, e.id))
414
363
  })
415
364
  }, e),
416
- renderTimeline: ({ key: e, title: t, description: n, events: r }) => /* @__PURE__ */ T(d, {
365
+ renderTimeline: ({ key: e, title: t, description: n, events: r }) => /* @__PURE__ */ C(u, {
417
366
  title: t,
418
367
  description: n,
419
368
  events: r
420
369
  }, e),
421
- renderAuditTimeline: ({ key: e, title: t, description: n, events: r }) => /* @__PURE__ */ T(R, {
370
+ renderAuditTimeline: ({ key: e, title: t, description: n, events: r }) => /* @__PURE__ */ C(j, {
422
371
  title: t,
423
372
  description: n,
424
- children: /* @__PURE__ */ T(xe, { events: r })
373
+ children: /* @__PURE__ */ C(P, { events: r })
425
374
  }, e),
426
- renderRelations: ({ key: e, title: t, items: n }) => /* @__PURE__ */ T(f, {
375
+ renderRelations: ({ key: e, title: t, items: n }) => /* @__PURE__ */ C(d, {
427
376
  title: t,
428
377
  items: n
429
378
  }, e),
430
- renderContextStack: ({ key: e, title: t, items: n }) => /* @__PURE__ */ T(ke, {
379
+ renderContextStack: ({ key: e, title: t, items: n }) => /* @__PURE__ */ C(Te, {
431
380
  title: t,
432
381
  items: n
433
382
  }, e),
434
- renderCustomSection: (e, t, n) => /* @__PURE__ */ T(R, {
383
+ renderCustomSection: (e, t, n) => /* @__PURE__ */ C(j, {
435
384
  title: t,
436
385
  children: n
437
386
  }, e),
438
- wrapCustomNode: (e, t) => /* @__PURE__ */ T("div", { children: t }, e),
439
- resolveTableColumns: (e) => s(e, {
440
- tApp: A,
441
- t: B
387
+ wrapCustomNode: (e, t) => /* @__PURE__ */ C("div", { children: t }, e),
388
+ resolveTableColumns: (e) => o(e, {
389
+ tApp: I,
390
+ t: L
442
391
  }),
443
- renderTable: ({ key: e, title: t, description: n, columns: r, rows: i }) => /* @__PURE__ */ T(R, {
392
+ renderTable: ({ key: e, title: t, description: n, columns: r, rows: i }) => /* @__PURE__ */ C(j, {
444
393
  title: t,
445
394
  description: n,
446
- children: /* @__PURE__ */ T(Ee, {
395
+ children: /* @__PURE__ */ C(Se, {
447
396
  columns: r,
448
397
  rows: i,
449
398
  getRowId: (e, t) => {
@@ -455,87 +404,75 @@ var q = "store-or-network", J = ({ count: e, node: t, relationValue: n }) => {
455
404
  }
456
405
  })
457
406
  }, e),
458
- renderPayload: ({ key: e, title: t, description: n, content: r, format: i }) => /* @__PURE__ */ T(R, {
407
+ renderPayload: ({ key: e, title: t, description: n, content: r, format: i }) => /* @__PURE__ */ C(j, {
459
408
  title: t,
460
409
  description: n,
461
- children: /* @__PURE__ */ T(ve, {
410
+ children: /* @__PURE__ */ C(M, {
462
411
  content: r,
463
412
  format: i,
464
- emptyState: B("common.notAvailable")
413
+ emptyState: L("common.notAvailable")
465
414
  })
466
415
  }, e),
467
- renderKeyValueListSection: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ T(R, {
416
+ renderKeyValueListSection: ({ key: e, title: t, description: n, items: r }) => /* @__PURE__ */ C(j, {
468
417
  title: t,
469
418
  description: n,
470
- children: /* @__PURE__ */ T(z, { items: r })
419
+ children: /* @__PURE__ */ C(Ce, { items: r })
471
420
  }, e)
472
421
  })[0];
473
422
  i != null && r.push(i);
474
423
  });
475
- let M = j.length > 0 ? /* @__PURE__ */ T(Oe, {
476
- label: B("relations.menu.label"),
477
- items: j
478
- }) : null, N = x.length > 0 || M != null ? /* @__PURE__ */ E("div", {
479
- className: oe,
480
- children: [x.length > 0 && /* @__PURE__ */ T("div", {
481
- className: "txvbqbfpn txvbqbey txvbqblsh txvbqbhdl txvbqbh7g",
482
- children: x
483
- }), M != null && /* @__PURE__ */ T("div", {
484
- className: "txvbqbfpn txvbqbey txvbqb10mr txvbqbb49 txvbqbbkc txvbqb2sj txvbqb7tt",
485
- children: M
486
- })]
487
- }) : void 0, K = h.status != null || h.badges != null ? /* @__PURE__ */ E("div", {
488
- className: ce,
489
- children: [h.status, h.badges]
490
- }) : void 0, J = h.items != null && h.items.length > 0 ? /* @__PURE__ */ T("div", {
491
- className: le,
492
- children: /* @__PURE__ */ T(z, { items: h.items })
493
- }) : null, Be = k.length > 0, $ = null;
494
- return X.length > 1 && ($ = /* @__PURE__ */ T(we, {
495
- items: p,
496
- activeId: Y.id,
497
- variant: "underline"
498
- })), /* @__PURE__ */ E(ee, {
499
- breadcrumb: g,
500
- children: [/* @__PURE__ */ T(Te, {
501
- headerNode: /* @__PURE__ */ E("div", {
502
- className: se,
503
- children: [/* @__PURE__ */ T(be, {
504
- title: h.title,
505
- subtitle: h.subtitle,
506
- actions: N,
507
- meta: K
508
- }), J]
509
- }),
510
- tabsNode: $,
511
- sidePanel: Be ? /* @__PURE__ */ T(w, { children: k }) : void 0,
512
- sidePanelVariant: "plain",
513
- headerDensity: "compact",
514
- children: /* @__PURE__ */ T(w, { children: D })
515
- }), S != null && v(S) && /* @__PURE__ */ T(o, {
424
+ let T = S.length > 0 ? /* @__PURE__ */ C(we, {
425
+ label: L("relations.menu.label"),
426
+ items: S
427
+ }) : null;
428
+ return /* @__PURE__ */ w(de, { children: [
429
+ h.length > 0 || T != null ? /* @__PURE__ */ w("div", {
430
+ className: ae,
431
+ children: [h.length > 0 && /* @__PURE__ */ C("div", {
432
+ className: "txvbqbfpn txvbqbey txvbqblsh txvbqbhdl txvbqbh7g",
433
+ children: h
434
+ }), T != null && /* @__PURE__ */ C("div", {
435
+ className: "txvbqbfpn txvbqbey txvbqb10mr txvbqbb49 txvbqbbkc txvbqb2sj txvbqb7tt",
436
+ children: T
437
+ })]
438
+ }) : null,
439
+ x.length > 0 ? /* @__PURE__ */ w("div", {
440
+ className: ee,
441
+ children: [/* @__PURE__ */ C("div", {
442
+ className: te,
443
+ children: b
444
+ }), /* @__PURE__ */ C("aside", {
445
+ className: ne,
446
+ children: x
447
+ })]
448
+ }) : /* @__PURE__ */ C("div", {
449
+ className: re,
450
+ children: b
451
+ }),
452
+ v != null && g(v) && /* @__PURE__ */ C(a, {
516
453
  isOpen: !0,
517
- action: S,
454
+ action: v,
518
455
  node: n,
519
456
  onClose: () => {
520
- q(null);
457
+ X(null);
521
458
  }
522
- })]
523
- });
459
+ })
460
+ ] });
524
461
  }
525
- }) : /* @__PURE__ */ T(_, { to: r.routes.list });
526
- }, X = ({ config: e, prepared: t }) => {
527
- let { layoutView: n } = g(), r = h({
462
+ }) : /* @__PURE__ */ C(y, { to: h.routes.list });
463
+ }, Z = ({ config: e, prepared: t }) => {
464
+ let { layoutView: n } = v(), r = h({
528
465
  mainPage: e.pages.mainPage,
529
466
  subPages: e.pages.subPages,
530
467
  activePagePath: t.pagePath,
531
468
  node: n
532
469
  });
533
- return !r.hasVisiblePages || r.activePage == null ? /* @__PURE__ */ T(_, { to: e.routes.list }) : r.activePage.id === t.pageId ? /* @__PURE__ */ T(Y, {
470
+ return !r.hasVisiblePages || r.activePage == null ? /* @__PURE__ */ C(y, { to: e.routes.list }) : r.activePage.id === t.pageId ? /* @__PURE__ */ C(X, {
534
471
  config: t.pageConfig,
535
472
  prepared: t
536
- }) : /* @__PURE__ */ T(_, { to: e.routes.detailPage(t.id, r.activePage.id) });
473
+ }) : /* @__PURE__ */ C(y, { to: e.routes.detailPage(t.id, r.activePage.id) });
537
474
  };
538
475
  //#endregion
539
- export { X as BackofficeEntityDetailPage, X as default };
476
+ export { Z as BackofficeEntityDetailPage, Z as default };
540
477
 
541
478
  //# sourceMappingURL=BackofficeEntityDetailPage.js.map