@burdenoff/microfe-labsofscience 2026.626.2 → 2026.628.1

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 (172) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/labsofscience/LabsOfScienceRoot.js +68 -124
  3. package/dist/labsofscience/LabsOfScienceRoot.js.map +1 -1
  4. package/dist/labsofscience/LabsOfScienceRoutes.js +61 -185
  5. package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
  6. package/dist/labsofscience/components/QueryStates.js +40 -0
  7. package/dist/labsofscience/components/QueryStates.js.map +1 -0
  8. package/dist/labsofscience/components/StatusBadge.js +40 -23
  9. package/dist/labsofscience/components/StatusBadge.js.map +1 -1
  10. package/dist/labsofscience/context/LabsOfScienceContext.js +22 -30
  11. package/dist/labsofscience/context/LabsOfScienceContext.js.map +1 -1
  12. package/dist/labsofscience/hooks/useLabsOfScienceApi.js +500 -172
  13. package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
  14. package/dist/labsofscience/pages/OverviewPage.js +195 -0
  15. package/dist/labsofscience/pages/OverviewPage.js.map +1 -0
  16. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js +162 -0
  17. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js.map +1 -0
  18. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js +137 -0
  19. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js.map +1 -0
  20. package/dist/labsofscience/pages/datasets/DatasetsListPage.js +155 -0
  21. package/dist/labsofscience/pages/datasets/DatasetsListPage.js.map +1 -0
  22. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +220 -0
  23. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js.map +1 -0
  24. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js +170 -0
  25. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js.map +1 -0
  26. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +134 -0
  27. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js.map +1 -0
  28. package/dist/labsofscience/pages/experiments/RunDialogs.js +180 -0
  29. package/dist/labsofscience/pages/experiments/RunDialogs.js.map +1 -0
  30. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +130 -0
  31. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js.map +1 -0
  32. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js +132 -0
  33. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js.map +1 -0
  34. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +126 -0
  35. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js.map +1 -0
  36. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js +89 -0
  37. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js.map +1 -0
  38. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js +138 -0
  39. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js.map +1 -0
  40. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js +211 -0
  41. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js.map +1 -0
  42. package/dist/labsofscience/pages/inventory/InventoryListPage.js +178 -0
  43. package/dist/labsofscience/pages/inventory/InventoryListPage.js.map +1 -0
  44. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js +118 -0
  45. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js.map +1 -0
  46. package/dist/labsofscience/pages/notebook/NotebookListPage.js +144 -0
  47. package/dist/labsofscience/pages/notebook/NotebookListPage.js.map +1 -0
  48. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js +146 -0
  49. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js.map +1 -0
  50. package/dist/labsofscience/pages/pipelines/PipelinesPage.js +212 -0
  51. package/dist/labsofscience/pages/pipelines/PipelinesPage.js.map +1 -0
  52. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js +109 -0
  53. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js.map +1 -0
  54. package/dist/labsofscience/pages/projects/ProjectDetailPage.js +174 -0
  55. package/dist/labsofscience/pages/projects/ProjectDetailPage.js.map +1 -0
  56. package/dist/labsofscience/pages/projects/ProjectFormDialog.js +169 -0
  57. package/dist/labsofscience/pages/projects/ProjectFormDialog.js.map +1 -0
  58. package/dist/labsofscience/pages/projects/ProjectsListPage.js +141 -0
  59. package/dist/labsofscience/pages/projects/ProjectsListPage.js.map +1 -0
  60. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js +133 -0
  61. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js.map +1 -0
  62. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js +151 -0
  63. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js.map +1 -0
  64. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js +140 -0
  65. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js.map +1 -0
  66. package/dist/labsofscience/pages/shared/DetailComponents.js +64 -0
  67. package/dist/labsofscience/pages/shared/DetailComponents.js.map +1 -0
  68. package/dist/labsofscience/pages/shared/tags.js +16 -0
  69. package/dist/labsofscience/pages/shared/tags.js.map +1 -0
  70. package/dist/labsofscience/store/labsofscienceStore.js +6 -11
  71. package/dist/labsofscience/store/labsofscienceStore.js.map +1 -1
  72. package/dist/labsofscience/utils/formatters.js +28 -13
  73. package/dist/labsofscience/utils/formatters.js.map +1 -1
  74. package/package.json +1 -1
  75. package/dist/labsofscience/components/InvestmentCard.js +0 -98
  76. package/dist/labsofscience/components/InvestmentCard.js.map +0 -1
  77. package/dist/labsofscience/components/RatingDisplay.js +0 -35
  78. package/dist/labsofscience/components/RatingDisplay.js.map +0 -1
  79. package/dist/labsofscience/mocks/data.js +0 -1517
  80. package/dist/labsofscience/mocks/data.js.map +0 -1
  81. package/dist/labsofscience/mocks/users.js +0 -34
  82. package/dist/labsofscience/mocks/users.js.map +0 -1
  83. package/dist/labsofscience/pages/HomePage.js +0 -940
  84. package/dist/labsofscience/pages/HomePage.js.map +0 -1
  85. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +0 -651
  86. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +0 -1
  87. package/dist/labsofscience/pages/admin/AdminDashboard.js +0 -672
  88. package/dist/labsofscience/pages/admin/AdminDashboard.js.map +0 -1
  89. package/dist/labsofscience/pages/admin/AdminFinancialPage.js +0 -427
  90. package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +0 -1
  91. package/dist/labsofscience/pages/admin/AdminOrdersPage.js +0 -665
  92. package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +0 -1
  93. package/dist/labsofscience/pages/admin/AdminProfilePage.js +0 -261
  94. package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +0 -1
  95. package/dist/labsofscience/pages/admin/AdminSettingsPage.js +0 -651
  96. package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +0 -1
  97. package/dist/labsofscience/pages/admin/CartManagementPage.js +0 -874
  98. package/dist/labsofscience/pages/admin/CartManagementPage.js.map +0 -1
  99. package/dist/labsofscience/pages/admin/UserManagementPage.js +0 -898
  100. package/dist/labsofscience/pages/admin/UserManagementPage.js.map +0 -1
  101. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +0 -839
  102. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
  103. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +0 -705
  104. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
  105. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +0 -791
  106. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
  107. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +0 -891
  108. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
  109. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +0 -636
  110. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
  111. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +0 -911
  112. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +0 -1
  113. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +0 -879
  114. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +0 -1
  115. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +0 -839
  116. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +0 -1
  117. package/dist/labsofscience/pages/common/HelpSupportPage.js +0 -1324
  118. package/dist/labsofscience/pages/common/HelpSupportPage.js.map +0 -1
  119. package/dist/labsofscience/pages/common/NotificationCenterPage.js +0 -672
  120. package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +0 -1
  121. package/dist/labsofscience/pages/common/SettingsPage.js +0 -973
  122. package/dist/labsofscience/pages/common/SettingsPage.js.map +0 -1
  123. package/dist/labsofscience/pages/customer/BookingDetailsPage.js +0 -637
  124. package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +0 -1
  125. package/dist/labsofscience/pages/customer/CartDetailPage.js +0 -653
  126. package/dist/labsofscience/pages/customer/CartDetailPage.js.map +0 -1
  127. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +0 -559
  128. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +0 -1
  129. package/dist/labsofscience/pages/customer/CheckoutPage.js +0 -530
  130. package/dist/labsofscience/pages/customer/CheckoutPage.js.map +0 -1
  131. package/dist/labsofscience/pages/customer/CustomerDashboard.js +0 -531
  132. package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +0 -1
  133. package/dist/labsofscience/pages/customer/CustomerProfilePage.js +0 -658
  134. package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +0 -1
  135. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +0 -633
  136. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +0 -1
  137. package/dist/labsofscience/pages/customer/FavoritesPage.js +0 -484
  138. package/dist/labsofscience/pages/customer/FavoritesPage.js.map +0 -1
  139. package/dist/labsofscience/pages/customer/OrderHistoryPage.js +0 -445
  140. package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +0 -1
  141. package/dist/labsofscience/pages/customer/OrderTrackingPage.js +0 -425
  142. package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +0 -1
  143. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +0 -495
  144. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +0 -1
  145. package/dist/labsofscience/pages/customer/ReviewsPage.js +0 -613
  146. package/dist/labsofscience/pages/customer/ReviewsPage.js.map +0 -1
  147. package/dist/labsofscience/pages/customer/SavedAddressesPage.js +0 -450
  148. package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +0 -1
  149. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +0 -881
  150. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +0 -1
  151. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +0 -946
  152. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
  153. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +0 -687
  154. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +0 -1
  155. package/dist/labsofscience/pages/investor/InvestorDashboard.js +0 -455
  156. package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +0 -1
  157. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +0 -406
  158. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +0 -1
  159. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +0 -575
  160. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +0 -1
  161. package/dist/labsofscience/pages/investor/InvestorProfilePage.js +0 -1070
  162. package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +0 -1
  163. package/dist/labsofscience/pages/worker/TaskDetailsPage.js +0 -537
  164. package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +0 -1
  165. package/dist/labsofscience/pages/worker/WorkerDashboard.js +0 -665
  166. package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +0 -1
  167. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +0 -681
  168. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +0 -1
  169. package/dist/labsofscience/pages/worker/WorkerProfilePage.js +0 -692
  170. package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +0 -1
  171. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +0 -588
  172. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { LabsOfScienceProvider as e, useLabsOfScience as t } from "./labsofscience/context/LabsOfScienceContext.js";
2
2
  import { cn as n } from "./labsofscience/utils/cn.js";
3
- import { formatCurrency as r, formatDate as i, formatNumber as a, formatRelativeTime as o } from "./labsofscience/utils/formatters.js";
4
- import { LabsOfScienceRoot as s } from "./labsofscience/LabsOfScienceRoot.js";
5
- import { useLabsOfScienceStore as c } from "./labsofscience/store/labsofscienceStore.js";
3
+ import { formatDate as r, formatNumber as i, formatRelativeTime as a } from "./labsofscience/utils/formatters.js";
4
+ import { LabsOfScienceRoot as o } from "./labsofscience/LabsOfScienceRoot.js";
5
+ import { useLabsOfScienceStore as s } from "./labsofscience/store/labsofscienceStore.js";
6
6
  import "./labsofscience/index.js";
7
- export { e as LabsOfScienceProvider, s as LabsOfScienceRoot, n as cn, r as formatCurrency, i as formatDate, a as formatNumber, o as formatRelativeTime, t as useLabsOfScience, c as useLabsOfScienceStore };
7
+ export { e as LabsOfScienceProvider, o as LabsOfScienceRoot, n as cn, r as formatDate, i as formatNumber, a as formatRelativeTime, t as useLabsOfScience, s as useLabsOfScienceStore };
@@ -3,175 +3,119 @@ import { LabsOfScienceRoutes as t } from "./LabsOfScienceRoutes.js";
3
3
  import { useCallback as n, useEffect as r } from "react";
4
4
  import { QueryClient as i, QueryClientProvider as a } from "@tanstack/react-query";
5
5
  import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
6
- import { BarChart3 as s, ClipboardList as c, FileText as l, Heart as u, Home as d, LineChart as f, Package as p, PieChart as m, Search as h, Settings as g, ShoppingBag as _, ShoppingCart as v, Store as y, TrendingUp as b, Users as x, Wallet as S } from "lucide-react";
7
- import { jsx as C } from "react/jsx-runtime";
8
- import { FeatureFlagProvider as w } from "@burdenoff/fe-libs/shared/feature-flags";
6
+ import { BookOpen as s, Boxes as c, Cpu as l, Database as u, FlaskConical as d, FolderKanban as f, GitBranch as p, LayoutDashboard as m, Microscope as h } from "lucide-react";
7
+ import { jsx as g } from "react/jsx-runtime";
8
+ import { FeatureFlagProvider as _ } from "@burdenoff/fe-libs/shared/feature-flags";
9
9
  //#region src/labsofscience/LabsOfScienceRoot.tsx
10
- var T = new i({ defaultOptions: { queries: {
10
+ var v = new i({ defaultOptions: { queries: {
11
11
  staleTime: 300 * 1e3,
12
12
  retry: 1
13
- } } }), E = (i) => {
14
- let { registerNavItems: E, registerFooterItems: D, basePath: O = "/" } = i, { t: k } = o(), A = n((e, t) => {
15
- let n = k(e);
13
+ } } }), y = (i) => {
14
+ let { registerNavItems: y, registerFooterItems: b, basePath: x = "/" } = i, { t: S } = o(), C = n((e, t) => {
15
+ let n = S(e);
16
16
  return n === e ? t : n;
17
- }, [k]), j = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
17
+ }, [S]), w = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
18
18
  return r(() => {
19
- if (E) return E([
19
+ if (y) return y([
20
20
  {
21
- id: "labsofscience-home",
22
- label: A("labsofscience.nav.home", "Home"),
23
- path: j(O, ""),
24
- icon: /* @__PURE__ */ C(d, { size: 20 }),
21
+ id: "labsofscience-overview",
22
+ label: C("labsofscience.nav.overview", "Overview"),
23
+ path: w(x, ""),
24
+ icon: /* @__PURE__ */ g(m, { size: 20 }),
25
25
  order: 1,
26
26
  group: "main"
27
27
  },
28
28
  {
29
- id: "labsofscience-discover",
30
- label: A("labsofscience.nav.discover", "Discover"),
31
- path: j(O, "customer/discover"),
32
- icon: /* @__PURE__ */ C(h, { size: 20 }),
29
+ id: "labsofscience-projects",
30
+ label: C("labsofscience.nav.projects", "Projects"),
31
+ path: w(x, "projects"),
32
+ icon: /* @__PURE__ */ g(f, { size: 20 }),
33
33
  order: 10,
34
- group: "customer"
34
+ group: "research"
35
35
  },
36
36
  {
37
- id: "labsofscience-orders",
38
- label: A("labsofscience.nav.myOrders", "My Orders"),
39
- path: j(O, "customer/orders"),
40
- icon: /* @__PURE__ */ C(_, { size: 20 }),
37
+ id: "labsofscience-experiments",
38
+ label: C("labsofscience.nav.experiments", "Experiments"),
39
+ path: w(x, "experiments"),
40
+ icon: /* @__PURE__ */ g(d, { size: 20 }),
41
41
  order: 11,
42
- group: "customer"
42
+ group: "research"
43
43
  },
44
44
  {
45
- id: "labsofscience-favorites",
46
- label: A("labsofscience.nav.favorites", "Favorites"),
47
- path: j(O, "customer/favorites"),
48
- icon: /* @__PURE__ */ C(u, { size: 20 }),
45
+ id: "labsofscience-notebook",
46
+ label: C("labsofscience.nav.notebook", "Notebook"),
47
+ path: w(x, "notebook"),
48
+ icon: /* @__PURE__ */ g(s, { size: 20 }),
49
49
  order: 12,
50
- group: "customer"
50
+ group: "research"
51
51
  },
52
52
  {
53
- id: "labsofscience-my-cart",
54
- label: A("labsofscience.nav.myCart", "My Cart"),
55
- path: j(O, "cart-owner/dashboard"),
56
- icon: /* @__PURE__ */ C(y, { size: 20 }),
57
- order: 20,
58
- group: "cart-owner"
53
+ id: "labsofscience-protocols",
54
+ label: C("labsofscience.nav.protocols", "Protocols"),
55
+ path: w(x, "protocols"),
56
+ icon: /* @__PURE__ */ g(h, { size: 20 }),
57
+ order: 13,
58
+ group: "research"
59
59
  },
60
60
  {
61
- id: "labsofscience-inventory",
62
- label: A("labsofscience.nav.inventory", "Inventory"),
63
- path: j(O, "cart-owner/inventory"),
64
- icon: /* @__PURE__ */ C(p, { size: 20 }),
65
- order: 21,
66
- group: "cart-owner"
61
+ id: "labsofscience-datasets",
62
+ label: C("labsofscience.nav.datasets", "Datasets"),
63
+ path: w(x, "datasets"),
64
+ icon: /* @__PURE__ */ g(u, { size: 20 }),
65
+ order: 20,
66
+ group: "data"
67
67
  },
68
68
  {
69
- id: "labsofscience-cart-orders",
70
- label: A("labsofscience.nav.cartOrders", "Cart Orders"),
71
- path: j(O, "cart-owner/orders"),
72
- icon: /* @__PURE__ */ C(v, { size: 20 }),
73
- order: 22,
74
- group: "cart-owner"
69
+ id: "labsofscience-pipelines",
70
+ label: C("labsofscience.nav.pipelines", "Pipelines"),
71
+ path: w(x, "pipelines"),
72
+ icon: /* @__PURE__ */ g(p, { size: 20 }),
73
+ order: 21,
74
+ group: "data"
75
75
  },
76
76
  {
77
- id: "labsofscience-tasks",
78
- label: A("labsofscience.nav.myTasks", "My Tasks"),
79
- path: j(O, "worker/dashboard"),
80
- icon: /* @__PURE__ */ C(c, { size: 20 }),
77
+ id: "labsofscience-inventory",
78
+ label: C("labsofscience.nav.inventory", "Inventory"),
79
+ path: w(x, "inventory"),
80
+ icon: /* @__PURE__ */ g(c, { size: 20 }),
81
81
  order: 30,
82
- group: "worker"
83
- },
84
- {
85
- id: "labsofscience-investments",
86
- label: A("labsofscience.nav.investments", "Investments"),
87
- path: j(O, "investor/dashboard"),
88
- icon: /* @__PURE__ */ C(b, { size: 20 }),
89
- order: 40,
90
- group: "investor"
91
- },
92
- {
93
- id: "labsofscience-portfolio",
94
- label: A("labsofscience.nav.portfolio", "Portfolio"),
95
- path: j(O, "investor/portfolio"),
96
- icon: /* @__PURE__ */ C(m, { size: 20 }),
97
- order: 41,
98
- group: "investor"
99
- },
100
- {
101
- id: "labsofscience-opportunities",
102
- label: A("labsofscience.nav.opportunities", "Opportunities"),
103
- path: j(O, "investor/opportunities"),
104
- icon: /* @__PURE__ */ C(f, { size: 20 }),
105
- order: 42,
106
- group: "investor"
107
- },
108
- {
109
- id: "labsofscience-admin",
110
- label: A("labsofscience.nav.adminPanel", "Admin Panel"),
111
- path: j(O, "admin/dashboard"),
112
- icon: /* @__PURE__ */ C(g, { size: 20 }),
113
- order: 50,
114
- group: "admin"
115
- },
116
- {
117
- id: "labsofscience-users",
118
- label: A("labsofscience.nav.users", "Users"),
119
- path: j(O, "admin/users"),
120
- icon: /* @__PURE__ */ C(x, { size: 20 }),
121
- order: 51,
122
- group: "admin"
123
- },
124
- {
125
- id: "labsofscience-analytics",
126
- label: A("labsofscience.nav.analytics", "Analytics"),
127
- path: j(O, "admin/analytics"),
128
- icon: /* @__PURE__ */ C(s, { size: 20 }),
129
- order: 52,
130
- group: "admin"
131
- },
132
- {
133
- id: "labsofscience-financial",
134
- label: A("labsofscience.nav.financial", "Financial"),
135
- path: j(O, "admin/financial"),
136
- icon: /* @__PURE__ */ C(S, { size: 20 }),
137
- order: 53,
138
- group: "admin"
82
+ group: "bench"
139
83
  },
140
84
  {
141
- id: "labsofscience-settings",
142
- label: A("labsofscience.nav.settings", "Settings"),
143
- path: j(O, "settings"),
144
- icon: /* @__PURE__ */ C(l, { size: 20 }),
145
- order: 100,
146
- group: "system"
85
+ id: "labsofscience-instruments",
86
+ label: C("labsofscience.nav.instruments", "Instruments"),
87
+ path: w(x, "instruments"),
88
+ icon: /* @__PURE__ */ g(l, { size: 20 }),
89
+ order: 31,
90
+ group: "bench"
147
91
  }
148
92
  ]);
149
93
  }, [
150
- E,
151
- O,
152
- A
94
+ y,
95
+ x,
96
+ C
153
97
  ]), r(() => {
154
- if (D) return D([{
98
+ if (b) return b([{
155
99
  id: "labsofscience-status",
156
- label: A("labsofscience.footer.ready", "LabsOfScience Ready"),
100
+ label: C("labsofscience.footer.ready", "LabsOfScience Ready"),
157
101
  type: "status",
158
102
  order: 10,
159
103
  section: "left"
160
104
  }]);
161
- }, [D, A]), /* @__PURE__ */ C(a, {
162
- client: T,
163
- children: /* @__PURE__ */ C(w, {
105
+ }, [b, C]), /* @__PURE__ */ g(a, {
106
+ client: v,
107
+ children: /* @__PURE__ */ g(_, {
164
108
  workspaceId: null,
165
109
  gateway: "global",
166
110
  defaultEnabled: !0,
167
- children: /* @__PURE__ */ C(e, {
111
+ children: /* @__PURE__ */ g(e, {
168
112
  ...i,
169
- children: /* @__PURE__ */ C(t, {})
113
+ children: /* @__PURE__ */ g(t, {})
170
114
  })
171
115
  })
172
116
  });
173
117
  };
174
118
  //#endregion
175
- export { E as LabsOfScienceRoot };
119
+ export { y as LabsOfScienceRoot };
176
120
 
177
121
  //# sourceMappingURL=LabsOfScienceRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LabsOfScienceRoot.js","names":[],"sources":["../../src/labsofscience/LabsOfScienceRoot.tsx"],"sourcesContent":["/**\n * LabsOfScience Root Component\n * @module labsofscience\n */\n\nimport type { FC } from 'react';\nimport { useCallback, useEffect } from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n Home,\n Search,\n ShoppingBag,\n Heart,\n Store,\n Package,\n ClipboardList,\n TrendingUp,\n PieChart,\n BarChart3,\n Settings,\n Users,\n ShoppingCart,\n LineChart,\n Wallet,\n FileText,\n} from 'lucide-react';\nimport { LabsOfScienceProvider } from './context/LabsOfScienceContext';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { LabsOfScienceRoutes } from './LabsOfScienceRoutes';\nimport type { LabsOfScienceRootProps, NavItem } from './types';\n\n// Create a query client for this microfrontend\nconst queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: 5 * 60 * 1000,\n retry: 1,\n },\n },\n});\n\nexport const LabsOfScienceRoot: FC<LabsOfScienceRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t: translate } = useI18n();\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n // Helper to join paths correctly\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with shell on mount\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n // Main\n {\n id: 'labsofscience-home',\n label: t('labsofscience.nav.home', 'Home'),\n path: joinPath(basePath, ''),\n icon: <Home size={20} />,\n order: 1,\n group: 'main',\n },\n\n // Customer Section\n {\n id: 'labsofscience-discover',\n label: t('labsofscience.nav.discover', 'Discover'),\n path: joinPath(basePath, 'customer/discover'),\n icon: <Search size={20} />,\n order: 10,\n group: 'customer',\n },\n {\n id: 'labsofscience-orders',\n label: t('labsofscience.nav.myOrders', 'My Orders'),\n path: joinPath(basePath, 'customer/orders'),\n icon: <ShoppingBag size={20} />,\n order: 11,\n group: 'customer',\n },\n {\n id: 'labsofscience-favorites',\n label: t('labsofscience.nav.favorites', 'Favorites'),\n path: joinPath(basePath, 'customer/favorites'),\n icon: <Heart size={20} />,\n order: 12,\n group: 'customer',\n },\n\n // Cart Owner Section\n {\n id: 'labsofscience-my-cart',\n label: t('labsofscience.nav.myCart', 'My Cart'),\n path: joinPath(basePath, 'cart-owner/dashboard'),\n icon: <Store size={20} />,\n order: 20,\n group: 'cart-owner',\n },\n {\n id: 'labsofscience-inventory',\n label: t('labsofscience.nav.inventory', 'Inventory'),\n path: joinPath(basePath, 'cart-owner/inventory'),\n icon: <Package size={20} />,\n order: 21,\n group: 'cart-owner',\n },\n {\n id: 'labsofscience-cart-orders',\n label: t('labsofscience.nav.cartOrders', 'Cart Orders'),\n path: joinPath(basePath, 'cart-owner/orders'),\n icon: <ShoppingCart size={20} />,\n order: 22,\n group: 'cart-owner',\n },\n\n // Worker Section\n {\n id: 'labsofscience-tasks',\n label: t('labsofscience.nav.myTasks', 'My Tasks'),\n path: joinPath(basePath, 'worker/dashboard'),\n icon: <ClipboardList size={20} />,\n order: 30,\n group: 'worker',\n },\n\n // Investor Section\n {\n id: 'labsofscience-investments',\n label: t('labsofscience.nav.investments', 'Investments'),\n path: joinPath(basePath, 'investor/dashboard'),\n icon: <TrendingUp size={20} />,\n order: 40,\n group: 'investor',\n },\n {\n id: 'labsofscience-portfolio',\n label: t('labsofscience.nav.portfolio', 'Portfolio'),\n path: joinPath(basePath, 'investor/portfolio'),\n icon: <PieChart size={20} />,\n order: 41,\n group: 'investor',\n },\n {\n id: 'labsofscience-opportunities',\n label: t('labsofscience.nav.opportunities', 'Opportunities'),\n path: joinPath(basePath, 'investor/opportunities'),\n icon: <LineChart size={20} />,\n order: 42,\n group: 'investor',\n },\n\n // Admin Section\n {\n id: 'labsofscience-admin',\n label: t('labsofscience.nav.adminPanel', 'Admin Panel'),\n path: joinPath(basePath, 'admin/dashboard'),\n icon: <Settings size={20} />,\n order: 50,\n group: 'admin',\n },\n {\n id: 'labsofscience-users',\n label: t('labsofscience.nav.users', 'Users'),\n path: joinPath(basePath, 'admin/users'),\n icon: <Users size={20} />,\n order: 51,\n group: 'admin',\n },\n {\n id: 'labsofscience-analytics',\n label: t('labsofscience.nav.analytics', 'Analytics'),\n path: joinPath(basePath, 'admin/analytics'),\n icon: <BarChart3 size={20} />,\n order: 52,\n group: 'admin',\n },\n {\n id: 'labsofscience-financial',\n label: t('labsofscience.nav.financial', 'Financial'),\n path: joinPath(basePath, 'admin/financial'),\n icon: <Wallet size={20} />,\n order: 53,\n group: 'admin',\n },\n\n // System\n {\n id: 'labsofscience-settings',\n label: t('labsofscience.nav.settings', 'Settings'),\n path: joinPath(basePath, 'settings'),\n icon: <FileText size={20} />,\n order: 100,\n group: 'system',\n },\n ];\n\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath, t]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'labsofscience-status',\n label: t('labsofscience.footer.ready', 'LabsOfScience Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, t]);\n\n return (\n <QueryClientProvider client={queryClient}>\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <LabsOfScienceProvider {...props}>\n <LabsOfScienceRoutes />\n </LabsOfScienceProvider>\n </FeatureFlagProvider>\n </QueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;AAiCA,IAAM,IAAc,IAAI,EAAY,EAClC,gBAAgB,EACd,SAAS;CACP,WAAW,MAAS;CACpB,OAAO;CACR,EACF,EACF,CAAC,EAEW,KAAiD,MAAU;CACtE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,EAAE,GAAG,MAAc,GAAS,EAC5B,IAAI,GACP,GAAa,MAA6B;EACzC,IAAM,IAAQ,EAAU,EAAI;AAC5B,SAAO,MAAU,IAAM,IAAW;IAEpC,CAAC,EAAU,CACZ,EAGK,KAAY,GAAc,OACZ,EAAK,SAAS,IAAI,GAAG,EAAK,MAAM,GAAG,GAAG,GAAG,MACzC,EAAK,WAAW,IAAI,GAAG,IAAO,IAAI;AA8KtD,QAzKA,QAAgB;AACT,QAmJL,QADgB,EAhJY;GAE1B;IACE,IAAI;IACJ,OAAO,EAAE,0BAA0B,OAAO;IAC1C,MAAM,EAAS,GAAU,GAAG;IAC5B,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;IACxB,OAAO;IACP,OAAO;IACR;GAGD;IACE,IAAI;IACJ,OAAO,EAAE,8BAA8B,WAAW;IAClD,MAAM,EAAS,GAAU,oBAAoB;IAC7C,MAAM,kBAAC,GAAD,EAAQ,MAAM,IAAM,CAAA;IAC1B,OA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AqB,EAAE,CAAC,EAG1B,kBAAC,GAAD;EAAqB,QAAQ;YAC3B,kBAAC,GAAD;GAAqB,aAAa;GAAM,SAAQ;GAAS,gBAAgB;aACvE,kBAAC,GAAD;IAAuB,GAAI;cACzB,kBAAC,GAAD,EAAuB,CAAA;IACD,CAAA;GACJ,CAAA;EACF,CAAA"}
1
+ {"version":3,"file":"LabsOfScienceRoot.js","names":[],"sources":["../../src/labsofscience/LabsOfScienceRoot.tsx"],"sourcesContent":["/**\n * LabsOfScience Root Component\n * @module labsofscience\n */\n\nimport type { FC } from 'react';\nimport { useCallback, useEffect } from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n LayoutDashboard,\n FolderKanban,\n FlaskConical,\n Database,\n Microscope,\n Cpu,\n Boxes,\n BookOpen,\n GitBranch,\n} from 'lucide-react';\nimport { LabsOfScienceProvider } from './context/LabsOfScienceContext';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { LabsOfScienceRoutes } from './LabsOfScienceRoutes';\nimport type { LabsOfScienceRootProps, NavItem } from './types';\n\n// Create a query client for this microfrontend\nconst queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: 5 * 60 * 1000,\n retry: 1,\n },\n },\n});\n\nexport const LabsOfScienceRoot: FC<LabsOfScienceRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t: translate } = useI18n();\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n // Helper to join paths correctly\n const joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith('/') ? path : `/${path}`;\n return cleanBase + cleanPath;\n };\n\n // Register navigation items with shell on mount\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n // Overview\n {\n id: 'labsofscience-overview',\n label: t('labsofscience.nav.overview', 'Overview'),\n path: joinPath(basePath, ''),\n icon: <LayoutDashboard size={20} />,\n order: 1,\n group: 'main',\n },\n\n // Research\n {\n id: 'labsofscience-projects',\n label: t('labsofscience.nav.projects', 'Projects'),\n path: joinPath(basePath, 'projects'),\n icon: <FolderKanban size={20} />,\n order: 10,\n group: 'research',\n },\n {\n id: 'labsofscience-experiments',\n label: t('labsofscience.nav.experiments', 'Experiments'),\n path: joinPath(basePath, 'experiments'),\n icon: <FlaskConical size={20} />,\n order: 11,\n group: 'research',\n },\n {\n id: 'labsofscience-notebook',\n label: t('labsofscience.nav.notebook', 'Notebook'),\n path: joinPath(basePath, 'notebook'),\n icon: <BookOpen size={20} />,\n order: 12,\n group: 'research',\n },\n {\n id: 'labsofscience-protocols',\n label: t('labsofscience.nav.protocols', 'Protocols'),\n path: joinPath(basePath, 'protocols'),\n icon: <Microscope size={20} />,\n order: 13,\n group: 'research',\n },\n\n // Data & analysis\n {\n id: 'labsofscience-datasets',\n label: t('labsofscience.nav.datasets', 'Datasets'),\n path: joinPath(basePath, 'datasets'),\n icon: <Database size={20} />,\n order: 20,\n group: 'data',\n },\n {\n id: 'labsofscience-pipelines',\n label: t('labsofscience.nav.pipelines', 'Pipelines'),\n path: joinPath(basePath, 'pipelines'),\n icon: <GitBranch size={20} />,\n order: 21,\n group: 'data',\n },\n\n // The bench\n {\n id: 'labsofscience-inventory',\n label: t('labsofscience.nav.inventory', 'Inventory'),\n path: joinPath(basePath, 'inventory'),\n icon: <Boxes size={20} />,\n order: 30,\n group: 'bench',\n },\n {\n id: 'labsofscience-instruments',\n label: t('labsofscience.nav.instruments', 'Instruments'),\n path: joinPath(basePath, 'instruments'),\n icon: <Cpu size={20} />,\n order: 31,\n group: 'bench',\n },\n ];\n\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath, t]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'labsofscience-status',\n label: t('labsofscience.footer.ready', 'LabsOfScience Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, t]);\n\n return (\n <QueryClientProvider client={queryClient}>\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <LabsOfScienceProvider {...props}>\n <LabsOfScienceRoutes />\n </LabsOfScienceProvider>\n </FeatureFlagProvider>\n </QueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;AA0BA,IAAM,IAAc,IAAI,EAAY,EAClC,gBAAgB,EACd,SAAS;CACP,WAAW,MAAS;CACpB,OAAO;CACR,EACF,EACF,CAAC,EAEW,KAAiD,MAAU;CACtE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,EAAE,GAAG,MAAc,GAAS,EAC5B,IAAI,GACP,GAAa,MAA6B;EACzC,IAAM,IAAQ,EAAU,EAAI;AAC5B,SAAO,MAAU,IAAM,IAAW;IAEpC,CAAC,EAAU,CACZ,EAGK,KAAY,GAAc,OACZ,EAAK,SAAS,IAAI,GAAG,EAAK,MAAM,GAAG,GAAG,GAAG,MACzC,EAAK,WAAW,IAAI,GAAG,IAAO,IAAI;AAgHtD,QA3GA,QAAgB;AACT,QAqFL,QADgB,EAlFY;GAE1B;IACE,IAAI;IACJ,OAAO,EAAE,8BAA8B,WAAW;IAClD,MAAM,EAAS,GAAU,GAAG;IAC5B,MAAM,kBAAC,GAAD,EAAiB,MAAM,IAAM,CAAA;IACnC,OAAO;IACP,OAAO;IACR;GAGD;IACE,IAAI;IACJ,OAAO,EAAE,8BAA8B,WAAW;IAClD,MAAM,EAAS,GAAU,WAAW;IACpC,MAAM,kBAAC,GAAD,EAAc,MAAM,IAAM,CAAA;IAChC,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAE,iCAAiC,cAAc;IACxD,MAAM,EAA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C,GAAqB,EAAE,CAAC,EAG1B,kBAAC,GAAD;EAAqB,QAAQ;YAC3B,kBAAC,GAAD;GAAqB,aAAa;GAAM,SAAQ;GAAS,gBAAgB;aACvE,kBAAC,GAAD;IAAuB,GAAI;cACzB,kBAAC,GAAD,EAAuB,CAAA;IACD,CAAA;GACJ,CAAA;EACF,CAAA"}
@@ -1,207 +1,83 @@
1
1
  import { useLabsOfScience as e } from "./context/LabsOfScienceContext.js";
2
- import { HomePage as t } from "./pages/HomePage.js";
2
+ import { OverviewPage as t } from "./pages/OverviewPage.js";
3
3
  import { Suspense as n, lazy as r } from "react";
4
- import { Navigate as ee, Route as i, Routes as a, useLocation as te } from "react-router-dom";
5
- import { jsx as o, jsxs as ne } from "react/jsx-runtime";
4
+ import { Navigate as i, Route as a, Routes as o, useLocation as s } from "react-router-dom";
5
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
6
6
  //#region src/labsofscience/LabsOfScienceRoutes.tsx
7
- var s = r(() => import("./pages/customer/CustomerDashboard.js").then((e) => ({ default: e.CustomerDashboard }))), c = r(() => import("./pages/customer/CartDiscoveryPage.js").then((e) => ({ default: e.CartDiscoveryPage }))), l = r(() => import("./pages/customer/CartDetailPage.js").then((e) => ({ default: e.CartDetailPage }))), u = r(() => import("./pages/customer/CheckoutPage.js").then((e) => ({ default: e.CheckoutPage }))), d = r(() => import("./pages/customer/OrderTrackingPage.js").then((e) => ({ default: e.OrderTrackingPage }))), f = r(() => import("./pages/customer/OrderHistoryPage.js").then((e) => ({ default: e.OrderHistoryPage }))), p = r(() => import("./pages/customer/CustomerProfilePage.js").then((e) => ({ default: e.CustomerProfilePage }))), m = r(() => import("./pages/customer/SavedAddressesPage.js").then((e) => ({ default: e.SavedAddressesPage }))), h = r(() => import("./pages/customer/FavoritesPage.js").then((e) => ({ default: e.FavoritesPage }))), g = r(() => import("./pages/customer/ReviewsPage.js").then((e) => ({ default: e.ReviewsPage }))), _ = r(() => import("./pages/customer/PaymentMethodsPage.js").then((e) => ({ default: e.PaymentMethodsPage }))), v = r(() => import("./pages/customer/DirectServiceBookingPage.js").then((e) => ({ default: e.DirectServiceBookingPage }))), y = r(() => import("./pages/customer/BookingDetailsPage.js").then((e) => ({ default: e.BookingDetailsPage }))), b = r(() => import("./pages/cart-owner/CartOwnerDashboard.js").then((e) => ({ default: e.CartOwnerDashboard }))), x = r(() => import("./pages/cart-owner/CartServiceConfigPage.js").then((e) => ({ default: e.CartServiceConfigPage }))), S = r(() => import("./pages/cart-owner/InventoryManagementPage.js").then((e) => ({ default: e.InventoryManagementPage }))), C = r(() => import("./pages/cart-owner/OrderManagementPage.js").then((e) => ({ default: e.OrderManagementPage }))), w = r(() => import("./pages/cart-owner/AnalyticsDashboard.js").then((e) => ({ default: e.AnalyticsDashboard }))), T = r(() => import("./pages/cart-owner/StaffManagementPage.js").then((e) => ({ default: e.StaffManagementPage }))), E = r(() => import("./pages/cart-owner/BusinessSettingsPage.js").then((e) => ({ default: e.BusinessSettingsPage }))), D = r(() => import("./pages/cart-owner/CartOwnerProfilePage.js").then((e) => ({ default: e.CartOwnerProfilePage }))), O = r(() => import("./pages/worker/WorkerDashboard.js").then((e) => ({ default: e.WorkerDashboard }))), k = r(() => import("./pages/worker/WorkerOrdersPage.js").then((e) => ({ default: e.WorkerOrdersPage }))), re = r(() => import("./pages/worker/WorkerSchedulePage.js").then((e) => ({ default: e.WorkerSchedulePage }))), A = r(() => import("./pages/worker/WorkerProfilePage.js").then((e) => ({ default: e.WorkerProfilePage }))), j = r(() => import("./pages/worker/TaskDetailsPage.js").then((e) => ({ default: e.TaskDetailsPage }))), M = r(() => import("./pages/investor/InvestorDashboard.js").then((e) => ({ default: e.InvestorDashboard }))), N = r(() => import("./pages/investor/InvestorPortfolioPage.js").then((e) => ({ default: e.InvestorPortfolioPage }))), P = r(() => import("./pages/investor/InvestmentOpportunitiesPage.js").then((e) => ({ default: e.InvestmentOpportunitiesPage }))), F = r(() => import("./pages/investor/InvestmentDetailsPage.js").then((e) => ({ default: e.InvestmentDetailsPage }))), I = r(() => import("./pages/investor/InvestorInvestmentsPage.js").then((e) => ({ default: e.InvestorInvestmentsPage }))), L = r(() => import("./pages/investor/InvestorAnalyticsPage.js").then((e) => ({ default: e.InvestorAnalyticsPage }))), R = r(() => import("./pages/investor/InvestorProfilePage.js").then((e) => ({ default: e.InvestorProfilePage }))), z = r(() => import("./pages/admin/AdminDashboard.js").then((e) => ({ default: e.AdminDashboard }))), B = r(() => import("./pages/admin/UserManagementPage.js").then((e) => ({ default: e.UserManagementPage }))), V = r(() => import("./pages/admin/CartManagementPage.js").then((e) => ({ default: e.CartManagementPage }))), H = r(() => import("./pages/admin/AdminAnalyticsPage.js").then((e) => ({ default: e.AdminAnalyticsPage }))), U = r(() => import("./pages/admin/AdminOrdersPage.js").then((e) => ({ default: e.AdminOrdersPage }))), W = r(() => import("./pages/admin/AdminProfilePage.js").then((e) => ({ default: e.AdminProfilePage }))), G = r(() => import("./pages/admin/AdminSettingsPage.js").then((e) => ({ default: e.AdminSettingsPage }))), K = r(() => import("./pages/admin/AdminFinancialPage.js").then((e) => ({ default: e.AdminFinancialPage }))), q = r(() => import("./pages/common/NotificationCenterPage.js").then((e) => ({ default: e.NotificationCenterPage }))), J = r(() => import("./pages/common/SettingsPage.js").then((e) => ({ default: e.SettingsPage }))), Y = r(() => import("./pages/common/HelpSupportPage.js").then((e) => ({ default: e.HelpSupportPage }))), X = () => /* @__PURE__ */ o("div", {
8
- className: "flex items-center justify-center min-h-[400px]",
9
- children: /* @__PURE__ */ o("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-primary" })
10
- }), Z = () => {
11
- let { basePath: r, isStandalone: Z } = e(), Q = te(), $ = r === "/" ? "" : (r ?? "").replace(/\/$/, "");
12
- return $ && !Z && !(Q.pathname === $ || Q.pathname.startsWith($ + "/")) ? null : /* @__PURE__ */ o("div", {
13
- className: "flex flex-col min-h-full",
14
- children: /* @__PURE__ */ o(n, {
15
- fallback: /* @__PURE__ */ o(X, {}),
16
- children: /* @__PURE__ */ ne(a, { children: [
17
- /* @__PURE__ */ o(i, {
7
+ var u = r(() => import("./pages/projects/ProjectsListPage.js").then((e) => ({ default: e.ProjectsListPage }))), d = r(() => import("./pages/projects/ProjectDetailPage.js").then((e) => ({ default: e.ProjectDetailPage }))), f = r(() => import("./pages/experiments/ExperimentsListPage.js").then((e) => ({ default: e.ExperimentsListPage }))), p = r(() => import("./pages/experiments/ExperimentDetailPage.js").then((e) => ({ default: e.ExperimentDetailPage }))), m = r(() => import("./pages/datasets/DatasetsListPage.js").then((e) => ({ default: e.DatasetsListPage }))), h = r(() => import("./pages/datasets/DatasetDetailPage.js").then((e) => ({ default: e.DatasetDetailPage }))), g = r(() => import("./pages/protocols/ProtocolsListPage.js").then((e) => ({ default: e.ProtocolsListPage }))), _ = r(() => import("./pages/protocols/ProtocolDetailPage.js").then((e) => ({ default: e.ProtocolDetailPage }))), v = r(() => import("./pages/instruments/InstrumentsListPage.js").then((e) => ({ default: e.InstrumentsListPage }))), y = r(() => import("./pages/instruments/InstrumentDetailPage.js").then((e) => ({ default: e.InstrumentDetailPage }))), b = r(() => import("./pages/inventory/InventoryListPage.js").then((e) => ({ default: e.InventoryListPage }))), x = r(() => import("./pages/inventory/InventoryDetailPage.js").then((e) => ({ default: e.InventoryDetailPage }))), S = r(() => import("./pages/notebook/NotebookListPage.js").then((e) => ({ default: e.NotebookListPage }))), C = r(() => import("./pages/pipelines/PipelinesPage.js").then((e) => ({ default: e.PipelinesPage }))), w = () => /* @__PURE__ */ c("div", {
8
+ className: "flex min-h-[400px] items-center justify-center",
9
+ children: /* @__PURE__ */ c("div", { className: "h-8 w-8 animate-spin rounded-full border-b-2 border-primary" })
10
+ }), T = () => {
11
+ let { basePath: r, isStandalone: T } = e(), E = s(), D = r === "/" ? "" : (r ?? "").replace(/\/$/, "");
12
+ return D && !T && !(E.pathname === D || E.pathname.startsWith(D + "/")) ? null : /* @__PURE__ */ c("div", {
13
+ className: "flex min-h-full flex-col",
14
+ children: /* @__PURE__ */ c(n, {
15
+ fallback: /* @__PURE__ */ c(w, {}),
16
+ children: /* @__PURE__ */ l(o, { children: [
17
+ /* @__PURE__ */ c(a, {
18
18
  index: !0,
19
- element: /* @__PURE__ */ o(t, {})
19
+ element: /* @__PURE__ */ c(t, {})
20
20
  }),
21
- /* @__PURE__ */ o(i, {
22
- path: "customer/dashboard",
23
- element: /* @__PURE__ */ o(s, {})
21
+ /* @__PURE__ */ c(a, {
22
+ path: "projects",
23
+ element: /* @__PURE__ */ c(u, {})
24
24
  }),
25
- /* @__PURE__ */ o(i, {
26
- path: "customer/discover",
27
- element: /* @__PURE__ */ o(c, {})
25
+ /* @__PURE__ */ c(a, {
26
+ path: "projects/:id",
27
+ element: /* @__PURE__ */ c(d, {})
28
28
  }),
29
- /* @__PURE__ */ o(i, {
30
- path: "customer/cart/:cartId",
31
- element: /* @__PURE__ */ o(l, {})
29
+ /* @__PURE__ */ c(a, {
30
+ path: "experiments",
31
+ element: /* @__PURE__ */ c(f, {})
32
32
  }),
33
- /* @__PURE__ */ o(i, {
34
- path: "customer/cart/:cartId/direct-service",
35
- element: /* @__PURE__ */ o(v, {})
33
+ /* @__PURE__ */ c(a, {
34
+ path: "experiments/:id",
35
+ element: /* @__PURE__ */ c(p, {})
36
36
  }),
37
- /* @__PURE__ */ o(i, {
38
- path: "customer/checkout",
39
- element: /* @__PURE__ */ o(u, {})
37
+ /* @__PURE__ */ c(a, {
38
+ path: "datasets",
39
+ element: /* @__PURE__ */ c(m, {})
40
40
  }),
41
- /* @__PURE__ */ o(i, {
42
- path: "customer/orders/:orderId/track",
43
- element: /* @__PURE__ */ o(d, {})
41
+ /* @__PURE__ */ c(a, {
42
+ path: "datasets/:id",
43
+ element: /* @__PURE__ */ c(h, {})
44
44
  }),
45
- /* @__PURE__ */ o(i, {
46
- path: "customer/orders",
47
- element: /* @__PURE__ */ o(f, {})
45
+ /* @__PURE__ */ c(a, {
46
+ path: "protocols",
47
+ element: /* @__PURE__ */ c(g, {})
48
48
  }),
49
- /* @__PURE__ */ o(i, {
50
- path: "customer/profile",
51
- element: /* @__PURE__ */ o(p, {})
49
+ /* @__PURE__ */ c(a, {
50
+ path: "protocols/:id",
51
+ element: /* @__PURE__ */ c(_, {})
52
52
  }),
53
- /* @__PURE__ */ o(i, {
54
- path: "customer/addresses",
55
- element: /* @__PURE__ */ o(m, {})
53
+ /* @__PURE__ */ c(a, {
54
+ path: "instruments",
55
+ element: /* @__PURE__ */ c(v, {})
56
56
  }),
57
- /* @__PURE__ */ o(i, {
58
- path: "customer/favorites",
59
- element: /* @__PURE__ */ o(h, {})
57
+ /* @__PURE__ */ c(a, {
58
+ path: "instruments/:id",
59
+ element: /* @__PURE__ */ c(y, {})
60
60
  }),
61
- /* @__PURE__ */ o(i, {
62
- path: "customer/reviews",
63
- element: /* @__PURE__ */ o(g, {})
61
+ /* @__PURE__ */ c(a, {
62
+ path: "inventory",
63
+ element: /* @__PURE__ */ c(b, {})
64
64
  }),
65
- /* @__PURE__ */ o(i, {
66
- path: "customer/payment-methods",
67
- element: /* @__PURE__ */ o(_, {})
65
+ /* @__PURE__ */ c(a, {
66
+ path: "inventory/:id",
67
+ element: /* @__PURE__ */ c(x, {})
68
68
  }),
69
- /* @__PURE__ */ o(i, {
70
- path: "customer/booking/:bookingId",
71
- element: /* @__PURE__ */ o(y, {})
69
+ /* @__PURE__ */ c(a, {
70
+ path: "notebook",
71
+ element: /* @__PURE__ */ c(S, {})
72
72
  }),
73
- /* @__PURE__ */ o(i, {
74
- path: "cart-owner/dashboard",
75
- element: /* @__PURE__ */ o(b, {})
73
+ /* @__PURE__ */ c(a, {
74
+ path: "pipelines",
75
+ element: /* @__PURE__ */ c(C, {})
76
76
  }),
77
- /* @__PURE__ */ o(i, {
78
- path: "cart-owner/service-config",
79
- element: /* @__PURE__ */ o(x, {})
80
- }),
81
- /* @__PURE__ */ o(i, {
82
- path: "cart-owner/inventory",
83
- element: /* @__PURE__ */ o(S, {})
84
- }),
85
- /* @__PURE__ */ o(i, {
86
- path: "cart-owner/orders",
87
- element: /* @__PURE__ */ o(C, {})
88
- }),
89
- /* @__PURE__ */ o(i, {
90
- path: "cart-owner/analytics",
91
- element: /* @__PURE__ */ o(w, {})
92
- }),
93
- /* @__PURE__ */ o(i, {
94
- path: "cart-owner/staff",
95
- element: /* @__PURE__ */ o(T, {})
96
- }),
97
- /* @__PURE__ */ o(i, {
98
- path: "cart-owner/settings",
99
- element: /* @__PURE__ */ o(E, {})
100
- }),
101
- /* @__PURE__ */ o(i, {
102
- path: "cart-owner/profile",
103
- element: /* @__PURE__ */ o(D, {})
104
- }),
105
- /* @__PURE__ */ o(i, {
106
- path: "worker/dashboard",
107
- element: /* @__PURE__ */ o(O, {})
108
- }),
109
- /* @__PURE__ */ o(i, {
110
- path: "worker/orders",
111
- element: /* @__PURE__ */ o(k, {})
112
- }),
113
- /* @__PURE__ */ o(i, {
114
- path: "worker/schedule",
115
- element: /* @__PURE__ */ o(re, {})
116
- }),
117
- /* @__PURE__ */ o(i, {
118
- path: "worker/profile",
119
- element: /* @__PURE__ */ o(A, {})
120
- }),
121
- /* @__PURE__ */ o(i, {
122
- path: "worker/task/:taskId",
123
- element: /* @__PURE__ */ o(j, {})
124
- }),
125
- /* @__PURE__ */ o(i, {
126
- path: "investor/dashboard",
127
- element: /* @__PURE__ */ o(M, {})
128
- }),
129
- /* @__PURE__ */ o(i, {
130
- path: "investor/portfolio",
131
- element: /* @__PURE__ */ o(N, {})
132
- }),
133
- /* @__PURE__ */ o(i, {
134
- path: "investor/opportunities",
135
- element: /* @__PURE__ */ o(P, {})
136
- }),
137
- /* @__PURE__ */ o(i, {
138
- path: "investor/opportunity/:id",
139
- element: /* @__PURE__ */ o(F, {})
140
- }),
141
- /* @__PURE__ */ o(i, {
142
- path: "investor/investments/:id",
143
- element: /* @__PURE__ */ o(F, {})
144
- }),
145
- /* @__PURE__ */ o(i, {
146
- path: "investor/investments",
147
- element: /* @__PURE__ */ o(I, {})
148
- }),
149
- /* @__PURE__ */ o(i, {
150
- path: "investor/analytics",
151
- element: /* @__PURE__ */ o(L, {})
152
- }),
153
- /* @__PURE__ */ o(i, {
154
- path: "investor/profile",
155
- element: /* @__PURE__ */ o(R, {})
156
- }),
157
- /* @__PURE__ */ o(i, {
158
- path: "admin/dashboard",
159
- element: /* @__PURE__ */ o(z, {})
160
- }),
161
- /* @__PURE__ */ o(i, {
162
- path: "admin/users",
163
- element: /* @__PURE__ */ o(B, {})
164
- }),
165
- /* @__PURE__ */ o(i, {
166
- path: "admin/carts",
167
- element: /* @__PURE__ */ o(V, {})
168
- }),
169
- /* @__PURE__ */ o(i, {
170
- path: "admin/analytics",
171
- element: /* @__PURE__ */ o(H, {})
172
- }),
173
- /* @__PURE__ */ o(i, {
174
- path: "admin/orders",
175
- element: /* @__PURE__ */ o(U, {})
176
- }),
177
- /* @__PURE__ */ o(i, {
178
- path: "admin/profile",
179
- element: /* @__PURE__ */ o(W, {})
180
- }),
181
- /* @__PURE__ */ o(i, {
182
- path: "admin/settings",
183
- element: /* @__PURE__ */ o(G, {})
184
- }),
185
- /* @__PURE__ */ o(i, {
186
- path: "admin/financial",
187
- element: /* @__PURE__ */ o(K, {})
188
- }),
189
- /* @__PURE__ */ o(i, {
190
- path: "notifications",
191
- element: /* @__PURE__ */ o(q, {})
192
- }),
193
- /* @__PURE__ */ o(i, {
194
- path: "settings",
195
- element: /* @__PURE__ */ o(J, {})
196
- }),
197
- /* @__PURE__ */ o(i, {
198
- path: "help",
199
- element: /* @__PURE__ */ o(Y, {})
200
- }),
201
- /* @__PURE__ */ o(i, {
77
+ /* @__PURE__ */ c(a, {
202
78
  path: "*",
203
- element: /* @__PURE__ */ o(ee, {
204
- to: "/",
79
+ element: /* @__PURE__ */ c(i, {
80
+ to: "",
205
81
  replace: !0
206
82
  })
207
83
  })
@@ -210,6 +86,6 @@ var s = r(() => import("./pages/customer/CustomerDashboard.js").then((e) => ({ d
210
86
  });
211
87
  };
212
88
  //#endregion
213
- export { Z as LabsOfScienceRoutes };
89
+ export { T as LabsOfScienceRoutes };
214
90
 
215
91
  //# sourceMappingURL=LabsOfScienceRoutes.js.map