@burdenoff/microfe-coolandlovely 2026.625.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 (165) hide show
  1. package/dist/coolandlovely/CoolAndLovelyRoot.js +66 -122
  2. package/dist/coolandlovely/CoolAndLovelyRoot.js.map +1 -1
  3. package/dist/coolandlovely/CoolAndLovelyRoutes.js +87 -175
  4. package/dist/coolandlovely/CoolAndLovelyRoutes.js.map +1 -1
  5. package/dist/coolandlovely/components/Field.js +81 -0
  6. package/dist/coolandlovely/components/Field.js.map +1 -0
  7. package/dist/coolandlovely/components/StateViews.js +34 -0
  8. package/dist/coolandlovely/components/StateViews.js.map +1 -0
  9. package/dist/coolandlovely/components/StatusBadge.js +25 -22
  10. package/dist/coolandlovely/components/StatusBadge.js.map +1 -1
  11. package/dist/coolandlovely/components/TagList.js +21 -0
  12. package/dist/coolandlovely/components/TagList.js.map +1 -0
  13. package/dist/coolandlovely/components/Thumbnail.js +29 -0
  14. package/dist/coolandlovely/components/Thumbnail.js.map +1 -0
  15. package/dist/coolandlovely/context/CoolAndLovelyContext.js +10 -10
  16. package/dist/coolandlovely/context/CoolAndLovelyContext.js.map +1 -1
  17. package/dist/coolandlovely/hooks/index.js +1 -0
  18. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js +462 -169
  19. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js.map +1 -1
  20. package/dist/coolandlovely/pages/HomePage.js +251 -845
  21. package/dist/coolandlovely/pages/HomePage.js.map +1 -1
  22. package/dist/coolandlovely/pages/brands/BrandDetailPage.js +319 -0
  23. package/dist/coolandlovely/pages/brands/BrandDetailPage.js.map +1 -0
  24. package/dist/coolandlovely/pages/brands/BrandFormPage.js +190 -0
  25. package/dist/coolandlovely/pages/brands/BrandFormPage.js.map +1 -0
  26. package/dist/coolandlovely/pages/brands/BrandsListPage.js +158 -0
  27. package/dist/coolandlovely/pages/brands/BrandsListPage.js.map +1 -0
  28. package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.js +253 -0
  29. package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.js.map +1 -0
  30. package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.js +206 -0
  31. package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.js.map +1 -0
  32. package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.js +129 -0
  33. package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.js.map +1 -0
  34. package/dist/coolandlovely/pages/collections/CollectionDetailPage.js +217 -0
  35. package/dist/coolandlovely/pages/collections/CollectionDetailPage.js.map +1 -0
  36. package/dist/coolandlovely/pages/collections/CollectionFormPage.js +217 -0
  37. package/dist/coolandlovely/pages/collections/CollectionFormPage.js.map +1 -0
  38. package/dist/coolandlovely/pages/collections/CollectionsListPage.js +122 -0
  39. package/dist/coolandlovely/pages/collections/CollectionsListPage.js.map +1 -0
  40. package/dist/coolandlovely/pages/items/StyleItemDetailPage.js +230 -0
  41. package/dist/coolandlovely/pages/items/StyleItemDetailPage.js.map +1 -0
  42. package/dist/coolandlovely/pages/items/StyleItemFormPage.js +276 -0
  43. package/dist/coolandlovely/pages/items/StyleItemFormPage.js.map +1 -0
  44. package/dist/coolandlovely/pages/items/StyleItemsListPage.js +170 -0
  45. package/dist/coolandlovely/pages/items/StyleItemsListPage.js.map +1 -0
  46. package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.js +124 -0
  47. package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.js.map +1 -0
  48. package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.js +156 -0
  49. package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.js.map +1 -0
  50. package/dist/coolandlovely/pages/looks/LookDetailPage.js +238 -0
  51. package/dist/coolandlovely/pages/looks/LookDetailPage.js.map +1 -0
  52. package/dist/coolandlovely/pages/looks/LookFormPage.js +209 -0
  53. package/dist/coolandlovely/pages/looks/LookFormPage.js.map +1 -0
  54. package/dist/coolandlovely/pages/looks/LooksListPage.js +181 -0
  55. package/dist/coolandlovely/pages/looks/LooksListPage.js.map +1 -0
  56. package/dist/coolandlovely/pages/profile/StyleProfilePage.js +224 -0
  57. package/dist/coolandlovely/pages/profile/StyleProfilePage.js.map +1 -0
  58. package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.js +173 -0
  59. package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.js.map +1 -0
  60. package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js +172 -0
  61. package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js.map +1 -0
  62. package/dist/coolandlovely/store/coolandlovelyStore.js +2 -6
  63. package/dist/coolandlovely/store/coolandlovelyStore.js.map +1 -1
  64. package/dist/coolandlovely/utils/formatters.js +31 -23
  65. package/dist/coolandlovely/utils/formatters.js.map +1 -1
  66. package/dist/coolandlovely/utils/icons.js +34 -0
  67. package/dist/coolandlovely/utils/icons.js.map +1 -0
  68. package/dist/index.js +4 -4
  69. package/package.json +1 -1
  70. package/dist/coolandlovely/components/InvestmentCard.js +0 -98
  71. package/dist/coolandlovely/components/InvestmentCard.js.map +0 -1
  72. package/dist/coolandlovely/components/RatingDisplay.js +0 -35
  73. package/dist/coolandlovely/components/RatingDisplay.js.map +0 -1
  74. package/dist/coolandlovely/mocks/data.js +0 -1517
  75. package/dist/coolandlovely/mocks/data.js.map +0 -1
  76. package/dist/coolandlovely/mocks/users.js +0 -34
  77. package/dist/coolandlovely/mocks/users.js.map +0 -1
  78. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +0 -651
  79. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +0 -1
  80. package/dist/coolandlovely/pages/admin/AdminDashboard.js +0 -673
  81. package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +0 -1
  82. package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +0 -427
  83. package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +0 -1
  84. package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +0 -665
  85. package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +0 -1
  86. package/dist/coolandlovely/pages/admin/AdminProfilePage.js +0 -264
  87. package/dist/coolandlovely/pages/admin/AdminProfilePage.js.map +0 -1
  88. package/dist/coolandlovely/pages/admin/AdminSettingsPage.js +0 -654
  89. package/dist/coolandlovely/pages/admin/AdminSettingsPage.js.map +0 -1
  90. package/dist/coolandlovely/pages/admin/CartManagementPage.js +0 -874
  91. package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +0 -1
  92. package/dist/coolandlovely/pages/admin/UserManagementPage.js +0 -898
  93. package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +0 -1
  94. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +0 -842
  95. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
  96. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +0 -705
  97. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
  98. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +0 -802
  99. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
  100. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +0 -891
  101. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
  102. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +0 -639
  103. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
  104. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +0 -914
  105. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +0 -1
  106. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +0 -882
  107. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +0 -1
  108. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +0 -831
  109. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +0 -1
  110. package/dist/coolandlovely/pages/common/HelpSupportPage.js +0 -1325
  111. package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +0 -1
  112. package/dist/coolandlovely/pages/common/NotificationCenterPage.js +0 -671
  113. package/dist/coolandlovely/pages/common/NotificationCenterPage.js.map +0 -1
  114. package/dist/coolandlovely/pages/common/SettingsPage.js +0 -973
  115. package/dist/coolandlovely/pages/common/SettingsPage.js.map +0 -1
  116. package/dist/coolandlovely/pages/customer/BookingDetailsPage.js +0 -630
  117. package/dist/coolandlovely/pages/customer/BookingDetailsPage.js.map +0 -1
  118. package/dist/coolandlovely/pages/customer/CartDetailPage.js +0 -623
  119. package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +0 -1
  120. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +0 -558
  121. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +0 -1
  122. package/dist/coolandlovely/pages/customer/CheckoutPage.js +0 -529
  123. package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +0 -1
  124. package/dist/coolandlovely/pages/customer/CustomerDashboard.js +0 -538
  125. package/dist/coolandlovely/pages/customer/CustomerDashboard.js.map +0 -1
  126. package/dist/coolandlovely/pages/customer/CustomerProfilePage.js +0 -658
  127. package/dist/coolandlovely/pages/customer/CustomerProfilePage.js.map +0 -1
  128. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js +0 -632
  129. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js.map +0 -1
  130. package/dist/coolandlovely/pages/customer/FavoritesPage.js +0 -487
  131. package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +0 -1
  132. package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +0 -447
  133. package/dist/coolandlovely/pages/customer/OrderHistoryPage.js.map +0 -1
  134. package/dist/coolandlovely/pages/customer/OrderTrackingPage.js +0 -425
  135. package/dist/coolandlovely/pages/customer/OrderTrackingPage.js.map +0 -1
  136. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js +0 -494
  137. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +0 -1
  138. package/dist/coolandlovely/pages/customer/ReviewsPage.js +0 -616
  139. package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +0 -1
  140. package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +0 -449
  141. package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +0 -1
  142. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +0 -887
  143. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +0 -1
  144. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +0 -945
  145. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
  146. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +0 -687
  147. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +0 -1
  148. package/dist/coolandlovely/pages/investor/InvestorDashboard.js +0 -455
  149. package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +0 -1
  150. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +0 -405
  151. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +0 -1
  152. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +0 -602
  153. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +0 -1
  154. package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +0 -1070
  155. package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +0 -1
  156. package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +0 -533
  157. package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +0 -1
  158. package/dist/coolandlovely/pages/worker/WorkerDashboard.js +0 -671
  159. package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +0 -1
  160. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +0 -680
  161. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +0 -1
  162. package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +0 -692
  163. package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +0 -1
  164. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +0 -583
  165. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js.map +0 -1
@@ -3,175 +3,119 @@ import { CoolAndLovelyRoutes as t } from "./CoolAndLovelyRoutes.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 { BookHeart as s, Handshake as c, Heart as l, Home as u, Shapes as d, Shirt as f, Sparkles as p, Store as m, UserCircle 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/coolandlovely/CoolAndLovelyRoot.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: "coolandlovely-home",
22
- label: A("coolandlovely.nav.home", "Home"),
23
- path: j(O, ""),
24
- icon: /* @__PURE__ */ C(d, { size: 20 }),
21
+ id: "coolandlovely-overview",
22
+ label: C("coolandlovely.nav.overview", "Overview"),
23
+ path: w(x, ""),
24
+ icon: /* @__PURE__ */ g(u, { size: 20 }),
25
25
  order: 1,
26
26
  group: "main"
27
27
  },
28
28
  {
29
- id: "coolandlovely-discover",
30
- label: A("coolandlovely.nav.discover", "Discover"),
31
- path: j(O, "customer/discover"),
32
- icon: /* @__PURE__ */ C(h, { size: 20 }),
29
+ id: "coolandlovely-brands",
30
+ label: C("coolandlovely.nav.brands", "Brands"),
31
+ path: w(x, "brands"),
32
+ icon: /* @__PURE__ */ g(m, { size: 20 }),
33
33
  order: 10,
34
- group: "customer"
34
+ group: "catalog"
35
35
  },
36
36
  {
37
- id: "coolandlovely-orders",
38
- label: A("coolandlovely.nav.myOrders", "My Orders"),
39
- path: j(O, "customer/orders"),
40
- icon: /* @__PURE__ */ C(_, { size: 20 }),
37
+ id: "coolandlovely-collections",
38
+ label: C("coolandlovely.nav.collections", "Collections"),
39
+ path: w(x, "collections"),
40
+ icon: /* @__PURE__ */ g(d, { size: 20 }),
41
41
  order: 11,
42
- group: "customer"
42
+ group: "catalog"
43
43
  },
44
44
  {
45
- id: "coolandlovely-favorites",
46
- label: A("coolandlovely.nav.favorites", "Favorites"),
47
- path: j(O, "customer/favorites"),
48
- icon: /* @__PURE__ */ C(u, { size: 20 }),
45
+ id: "coolandlovely-items",
46
+ label: C("coolandlovely.nav.items", "Style Items"),
47
+ path: w(x, "items"),
48
+ icon: /* @__PURE__ */ g(f, { size: 20 }),
49
49
  order: 12,
50
- group: "customer"
50
+ group: "catalog"
51
51
  },
52
52
  {
53
- id: "coolandlovely-my-cart",
54
- label: A("coolandlovely.nav.myCart", "My Cart"),
55
- path: j(O, "cart-owner/dashboard"),
56
- icon: /* @__PURE__ */ C(y, { size: 20 }),
53
+ id: "coolandlovely-looks",
54
+ label: C("coolandlovely.nav.looks", "Looks"),
55
+ path: w(x, "looks"),
56
+ icon: /* @__PURE__ */ g(p, { size: 20 }),
57
57
  order: 20,
58
- group: "cart-owner"
58
+ group: "social"
59
59
  },
60
60
  {
61
- id: "coolandlovely-inventory",
62
- label: A("coolandlovely.nav.inventory", "Inventory"),
63
- path: j(O, "cart-owner/inventory"),
64
- icon: /* @__PURE__ */ C(p, { size: 20 }),
61
+ id: "coolandlovely-collaborations",
62
+ label: C("coolandlovely.nav.collaborations", "Collaborations"),
63
+ path: w(x, "collaborations"),
64
+ icon: /* @__PURE__ */ g(c, { size: 20 }),
65
65
  order: 21,
66
- group: "cart-owner"
66
+ group: "social"
67
67
  },
68
68
  {
69
- id: "coolandlovely-cart-orders",
70
- label: A("coolandlovely.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"
75
- },
76
- {
77
- id: "coolandlovely-tasks",
78
- label: A("coolandlovely.nav.myTasks", "My Tasks"),
79
- path: j(O, "worker/dashboard"),
80
- icon: /* @__PURE__ */ C(c, { size: 20 }),
69
+ id: "coolandlovely-wardrobe",
70
+ label: C("coolandlovely.nav.wardrobe", "My Wardrobe"),
71
+ path: w(x, "wardrobe"),
72
+ icon: /* @__PURE__ */ g(l, { size: 20 }),
81
73
  order: 30,
82
- group: "worker"
83
- },
84
- {
85
- id: "coolandlovely-investments",
86
- label: A("coolandlovely.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: "coolandlovely-portfolio",
94
- label: A("coolandlovely.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: "coolandlovely-opportunities",
102
- label: A("coolandlovely.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: "coolandlovely-admin",
110
- label: A("coolandlovely.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: "coolandlovely-users",
118
- label: A("coolandlovely.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: "coolandlovely-analytics",
126
- label: A("coolandlovely.nav.analytics", "Analytics"),
127
- path: j(O, "admin/analytics"),
128
- icon: /* @__PURE__ */ C(s, { size: 20 }),
129
- order: 52,
130
- group: "admin"
74
+ group: "my-style"
131
75
  },
132
76
  {
133
- id: "coolandlovely-financial",
134
- label: A("coolandlovely.nav.financial", "Financial"),
135
- path: j(O, "admin/financial"),
136
- icon: /* @__PURE__ */ C(S, { size: 20 }),
137
- order: 53,
138
- group: "admin"
77
+ id: "coolandlovely-lookbooks",
78
+ label: C("coolandlovely.nav.lookbooks", "Lookbooks"),
79
+ path: w(x, "lookbooks"),
80
+ icon: /* @__PURE__ */ g(s, { size: 20 }),
81
+ order: 31,
82
+ group: "my-style"
139
83
  },
140
84
  {
141
- id: "coolandlovely-settings",
142
- label: A("coolandlovely.nav.settings", "Settings"),
143
- path: j(O, "settings"),
144
- icon: /* @__PURE__ */ C(l, { size: 20 }),
145
- order: 100,
146
- group: "system"
85
+ id: "coolandlovely-profile",
86
+ label: C("coolandlovely.nav.profile", "Style Profile"),
87
+ path: w(x, "profile"),
88
+ icon: /* @__PURE__ */ g(h, { size: 20 }),
89
+ order: 32,
90
+ group: "my-style"
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: "coolandlovely-status",
156
- label: A("coolandlovely.footer.ready", "CoolAndLovely Ready"),
100
+ label: C("coolandlovely.footer.ready", "CoolAndLovely"),
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 CoolAndLovelyRoot };
119
+ export { y as CoolAndLovelyRoot };
176
120
 
177
121
  //# sourceMappingURL=CoolAndLovelyRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CoolAndLovelyRoot.js","names":[],"sources":["../../src/coolandlovely/CoolAndLovelyRoot.tsx"],"sourcesContent":["/**\n * CoolAndLovely Root Component\n * @module coolandlovely\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 { CoolAndLovelyProvider } from './context/CoolAndLovelyContext';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { CoolAndLovelyRoutes } from './CoolAndLovelyRoutes';\nimport type { CoolAndLovelyRootProps, 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 CoolAndLovelyRoot: FC<CoolAndLovelyRootProps> = (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: 'coolandlovely-home',\n label: t('coolandlovely.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: 'coolandlovely-discover',\n label: t('coolandlovely.nav.discover', 'Discover'),\n path: joinPath(basePath, 'customer/discover'),\n icon: <Search size={20} />,\n order: 10,\n group: 'customer',\n },\n {\n id: 'coolandlovely-orders',\n label: t('coolandlovely.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: 'coolandlovely-favorites',\n label: t('coolandlovely.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: 'coolandlovely-my-cart',\n label: t('coolandlovely.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: 'coolandlovely-inventory',\n label: t('coolandlovely.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: 'coolandlovely-cart-orders',\n label: t('coolandlovely.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: 'coolandlovely-tasks',\n label: t('coolandlovely.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: 'coolandlovely-investments',\n label: t('coolandlovely.nav.investments', 'Investments'),\n path: joinPath(basePath, 'investor/dashboard'),\n icon: <TrendingUp size={20} />,\n order: 40,\n group: 'investor',\n },\n {\n id: 'coolandlovely-portfolio',\n label: t('coolandlovely.nav.portfolio', 'Portfolio'),\n path: joinPath(basePath, 'investor/portfolio'),\n icon: <PieChart size={20} />,\n order: 41,\n group: 'investor',\n },\n {\n id: 'coolandlovely-opportunities',\n label: t('coolandlovely.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: 'coolandlovely-admin',\n label: t('coolandlovely.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: 'coolandlovely-users',\n label: t('coolandlovely.nav.users', 'Users'),\n path: joinPath(basePath, 'admin/users'),\n icon: <Users size={20} />,\n order: 51,\n group: 'admin',\n },\n {\n id: 'coolandlovely-analytics',\n label: t('coolandlovely.nav.analytics', 'Analytics'),\n path: joinPath(basePath, 'admin/analytics'),\n icon: <BarChart3 size={20} />,\n order: 52,\n group: 'admin',\n },\n {\n id: 'coolandlovely-financial',\n label: t('coolandlovely.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: 'coolandlovely-settings',\n label: t('coolandlovely.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: 'coolandlovely-status',\n label: t('coolandlovely.footer.ready', 'CoolAndLovely 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 <CoolAndLovelyProvider {...props}>\n <CoolAndLovelyRoutes />\n </CoolAndLovelyProvider>\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,IAA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O;IACR;GAGD;IACE,IAAI;IACJ,OAAO,EAAE,8BAA8B,WAAW;IAClD,MAAM,EAAS,GAAU,WAAW;IACpC,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;IAC5B,OAAO;IACP,OAAO;IACR;GACF,CAEyC;IAEzC;EAAC;EAAkB;EAAU;EAAE,CAAC,EAGnC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO,EAAE,8BAA8B,sBAAsB;GAC7D,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,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
+ {"version":3,"file":"CoolAndLovelyRoot.js","names":[],"sources":["../../src/coolandlovely/CoolAndLovelyRoot.tsx"],"sourcesContent":["/**\n * CoolAndLovely Root Component\n * @module coolandlovely\n *\n * Single Root export consumed by host application shells. The export name and\n * prop contract (basePath / navigate / currentUser / apiGatewayUrl /\n * registerNavItems / registerFooterItems / workspace context) are stable — the\n * host imports `CoolAndLovelyRoot` the same way regardless of the internal UI.\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 Store,\n Shapes,\n Shirt,\n Sparkles,\n Handshake,\n Heart,\n BookHeart,\n UserCircle,\n} from 'lucide-react';\nimport { CoolAndLovelyProvider } from './context/CoolAndLovelyContext';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { CoolAndLovelyRoutes } from './CoolAndLovelyRoutes';\nimport type { CoolAndLovelyRootProps, 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 CoolAndLovelyRoot: FC<CoolAndLovelyRootProps> = (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 the shell on mount.\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'coolandlovely-overview',\n label: t('coolandlovely.nav.overview', 'Overview'),\n path: joinPath(basePath, ''),\n icon: <Home size={20} />,\n order: 1,\n group: 'main',\n },\n // Catalog\n {\n id: 'coolandlovely-brands',\n label: t('coolandlovely.nav.brands', 'Brands'),\n path: joinPath(basePath, 'brands'),\n icon: <Store size={20} />,\n order: 10,\n group: 'catalog',\n },\n {\n id: 'coolandlovely-collections',\n label: t('coolandlovely.nav.collections', 'Collections'),\n path: joinPath(basePath, 'collections'),\n icon: <Shapes size={20} />,\n order: 11,\n group: 'catalog',\n },\n {\n id: 'coolandlovely-items',\n label: t('coolandlovely.nav.items', 'Style Items'),\n path: joinPath(basePath, 'items'),\n icon: <Shirt size={20} />,\n order: 12,\n group: 'catalog',\n },\n // Social\n {\n id: 'coolandlovely-looks',\n label: t('coolandlovely.nav.looks', 'Looks'),\n path: joinPath(basePath, 'looks'),\n icon: <Sparkles size={20} />,\n order: 20,\n group: 'social',\n },\n {\n id: 'coolandlovely-collaborations',\n label: t('coolandlovely.nav.collaborations', 'Collaborations'),\n path: joinPath(basePath, 'collaborations'),\n icon: <Handshake size={20} />,\n order: 21,\n group: 'social',\n },\n // My style\n {\n id: 'coolandlovely-wardrobe',\n label: t('coolandlovely.nav.wardrobe', 'My Wardrobe'),\n path: joinPath(basePath, 'wardrobe'),\n icon: <Heart size={20} />,\n order: 30,\n group: 'my-style',\n },\n {\n id: 'coolandlovely-lookbooks',\n label: t('coolandlovely.nav.lookbooks', 'Lookbooks'),\n path: joinPath(basePath, 'lookbooks'),\n icon: <BookHeart size={20} />,\n order: 31,\n group: 'my-style',\n },\n {\n id: 'coolandlovely-profile',\n label: t('coolandlovely.nav.profile', 'Style Profile'),\n path: joinPath(basePath, 'profile'),\n icon: <UserCircle size={20} />,\n order: 32,\n group: 'my-style',\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: 'coolandlovely-status',\n label: t('coolandlovely.footer.ready', 'CoolAndLovely'),\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 <CoolAndLovelyProvider {...props}>\n <CoolAndLovelyRoutes />\n </CoolAndLovelyProvider>\n </FeatureFlagProvider>\n </QueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;AA+BA,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,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AAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAE,+BAA+B,YAAY;IACpD,MAAM,EAAS,GAAU,YAAY;IACrC,MAAM,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA;IAC7B,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAE,6BAA6B,gBAAgB;IACtD,MAAM,EAAS,GAAU,UAAU;IACnC,MAAM,kBAAC,GAAD,EAAY,MAAM,IAAM,CAAA;IAC9B,OAAO;IACP,OAAO;IACR;GACF,CAEyC;IAEzC;EAAC;EAAkB;EAAU;EAAE,CAAC,EAGnC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO,EAAE,8BAA8B,gBAAgB;GACvD,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,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,119 @@
1
1
  import { useCoolAndLovely as e } from "./context/CoolAndLovelyContext.js";
2
2
  import { HomePage as t } from "./pages/HomePage.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/coolandlovely/CoolAndLovelyRoutes.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/brands/BrandsListPage.js").then((e) => ({ default: e.BrandsListPage }))), d = r(() => import("./pages/brands/BrandDetailPage.js").then((e) => ({ default: e.BrandDetailPage }))), f = r(() => import("./pages/brands/BrandFormPage.js").then((e) => ({ default: e.BrandFormPage }))), p = r(() => import("./pages/collections/CollectionsListPage.js").then((e) => ({ default: e.CollectionsListPage }))), m = r(() => import("./pages/collections/CollectionDetailPage.js").then((e) => ({ default: e.CollectionDetailPage }))), h = r(() => import("./pages/collections/CollectionFormPage.js").then((e) => ({ default: e.CollectionFormPage }))), g = r(() => import("./pages/items/StyleItemsListPage.js").then((e) => ({ default: e.StyleItemsListPage }))), _ = r(() => import("./pages/items/StyleItemDetailPage.js").then((e) => ({ default: e.StyleItemDetailPage }))), v = r(() => import("./pages/items/StyleItemFormPage.js").then((e) => ({ default: e.StyleItemFormPage }))), y = r(() => import("./pages/looks/LooksListPage.js").then((e) => ({ default: e.LooksListPage }))), b = r(() => import("./pages/looks/LookDetailPage.js").then((e) => ({ default: e.LookDetailPage }))), x = r(() => import("./pages/looks/LookFormPage.js").then((e) => ({ default: e.LookFormPage }))), S = r(() => import("./pages/collaborations/CollaborationsListPage.js").then((e) => ({ default: e.CollaborationsListPage }))), C = r(() => import("./pages/collaborations/CollaborationDetailPage.js").then((e) => ({ default: e.CollaborationDetailPage }))), w = r(() => import("./pages/collaborations/CollaborationFormPage.js").then((e) => ({ default: e.CollaborationFormPage }))), T = r(() => import("./pages/wardrobe/WardrobeListPage.js").then((e) => ({ default: e.WardrobeListPage }))), E = r(() => import("./pages/wardrobe/WardrobeFormPage.js").then((e) => ({ default: e.WardrobeFormPage }))), D = r(() => import("./pages/lookbooks/LookbooksListPage.js").then((e) => ({ default: e.LookbooksListPage }))), O = r(() => import("./pages/lookbooks/LookbookDetailPage.js").then((e) => ({ default: e.LookbookDetailPage }))), k = r(() => import("./pages/profile/StyleProfilePage.js").then((e) => ({ default: e.StyleProfilePage }))), A = () => /* @__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
+ }), j = () => {
11
+ let { basePath: r, isStandalone: j } = e(), M = s(), N = r === "/" ? "" : (r ?? "").replace(/\/$/, "");
12
+ return N && !j && !(M.pathname === N || M.pathname.startsWith(N + "/")) ? null : /* @__PURE__ */ c("div", {
13
+ className: "flex min-h-full flex-col",
14
+ children: /* @__PURE__ */ c(n, {
15
+ fallback: /* @__PURE__ */ c(A, {}),
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: "brands",
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: "brands/new",
27
+ element: /* @__PURE__ */ c(f, {})
28
28
  }),
29
- /* @__PURE__ */ o(i, {
30
- path: "customer/cart/:cartId",
31
- element: /* @__PURE__ */ o(l, {})
29
+ /* @__PURE__ */ c(a, {
30
+ path: "brands/:brandId",
31
+ element: /* @__PURE__ */ c(d, {})
32
32
  }),
33
- /* @__PURE__ */ o(i, {
34
- path: "customer/cart/:cartId/direct-service",
35
- element: /* @__PURE__ */ o(v, {})
33
+ /* @__PURE__ */ c(a, {
34
+ path: "brands/:brandId/edit",
35
+ element: /* @__PURE__ */ c(f, {})
36
36
  }),
37
- /* @__PURE__ */ o(i, {
38
- path: "customer/checkout",
39
- element: /* @__PURE__ */ o(u, {})
37
+ /* @__PURE__ */ c(a, {
38
+ path: "collections",
39
+ element: /* @__PURE__ */ c(p, {})
40
40
  }),
41
- /* @__PURE__ */ o(i, {
42
- path: "customer/orders/:orderId/track",
43
- element: /* @__PURE__ */ o(d, {})
41
+ /* @__PURE__ */ c(a, {
42
+ path: "collections/new",
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: "collections/:collectionId",
47
+ element: /* @__PURE__ */ c(m, {})
48
48
  }),
49
- /* @__PURE__ */ o(i, {
50
- path: "customer/profile",
51
- element: /* @__PURE__ */ o(p, {})
49
+ /* @__PURE__ */ c(a, {
50
+ path: "collections/:collectionId/edit",
51
+ element: /* @__PURE__ */ c(h, {})
52
52
  }),
53
- /* @__PURE__ */ o(i, {
54
- path: "customer/addresses",
55
- element: /* @__PURE__ */ o(m, {})
53
+ /* @__PURE__ */ c(a, {
54
+ path: "items",
55
+ element: /* @__PURE__ */ c(g, {})
56
56
  }),
57
- /* @__PURE__ */ o(i, {
58
- path: "customer/favorites",
59
- element: /* @__PURE__ */ o(h, {})
57
+ /* @__PURE__ */ c(a, {
58
+ path: "items/new",
59
+ element: /* @__PURE__ */ c(v, {})
60
60
  }),
61
- /* @__PURE__ */ o(i, {
62
- path: "customer/reviews",
63
- element: /* @__PURE__ */ o(g, {})
61
+ /* @__PURE__ */ c(a, {
62
+ path: "items/:itemId",
63
+ element: /* @__PURE__ */ c(_, {})
64
64
  }),
65
- /* @__PURE__ */ o(i, {
66
- path: "customer/payment-methods",
67
- element: /* @__PURE__ */ o(_, {})
65
+ /* @__PURE__ */ c(a, {
66
+ path: "items/:itemId/edit",
67
+ element: /* @__PURE__ */ c(v, {})
68
68
  }),
69
- /* @__PURE__ */ o(i, {
70
- path: "customer/booking/:bookingId",
71
- element: /* @__PURE__ */ o(y, {})
69
+ /* @__PURE__ */ c(a, {
70
+ path: "looks",
71
+ element: /* @__PURE__ */ c(y, {})
72
72
  }),
73
- /* @__PURE__ */ o(i, {
74
- path: "cart-owner/dashboard",
75
- element: /* @__PURE__ */ o(b, {})
73
+ /* @__PURE__ */ c(a, {
74
+ path: "looks/new",
75
+ element: /* @__PURE__ */ c(x, {})
76
76
  }),
77
- /* @__PURE__ */ o(i, {
78
- path: "cart-owner/service-config",
79
- element: /* @__PURE__ */ o(x, {})
77
+ /* @__PURE__ */ c(a, {
78
+ path: "looks/:lookId",
79
+ element: /* @__PURE__ */ c(b, {})
80
80
  }),
81
- /* @__PURE__ */ o(i, {
82
- path: "cart-owner/inventory",
83
- element: /* @__PURE__ */ o(S, {})
81
+ /* @__PURE__ */ c(a, {
82
+ path: "collaborations",
83
+ element: /* @__PURE__ */ c(S, {})
84
84
  }),
85
- /* @__PURE__ */ o(i, {
86
- path: "cart-owner/orders",
87
- element: /* @__PURE__ */ o(C, {})
85
+ /* @__PURE__ */ c(a, {
86
+ path: "collaborations/new",
87
+ element: /* @__PURE__ */ c(w, {})
88
88
  }),
89
- /* @__PURE__ */ o(i, {
90
- path: "cart-owner/analytics",
91
- element: /* @__PURE__ */ o(w, {})
89
+ /* @__PURE__ */ c(a, {
90
+ path: "collaborations/:collaborationId",
91
+ element: /* @__PURE__ */ c(C, {})
92
92
  }),
93
- /* @__PURE__ */ o(i, {
94
- path: "cart-owner/staff",
95
- element: /* @__PURE__ */ o(T, {})
93
+ /* @__PURE__ */ c(a, {
94
+ path: "wardrobe",
95
+ element: /* @__PURE__ */ c(T, {})
96
96
  }),
97
- /* @__PURE__ */ o(i, {
98
- path: "cart-owner/settings",
99
- element: /* @__PURE__ */ o(E, {})
97
+ /* @__PURE__ */ c(a, {
98
+ path: "wardrobe/new",
99
+ element: /* @__PURE__ */ c(E, {})
100
100
  }),
101
- /* @__PURE__ */ o(i, {
102
- path: "cart-owner/profile",
103
- element: /* @__PURE__ */ o(D, {})
101
+ /* @__PURE__ */ c(a, {
102
+ path: "lookbooks",
103
+ element: /* @__PURE__ */ c(D, {})
104
104
  }),
105
- /* @__PURE__ */ o(i, {
106
- path: "worker/dashboard",
107
- element: /* @__PURE__ */ o(O, {})
105
+ /* @__PURE__ */ c(a, {
106
+ path: "lookbooks/:lookbookId",
107
+ element: /* @__PURE__ */ c(O, {})
108
108
  }),
109
- /* @__PURE__ */ o(i, {
110
- path: "worker/orders",
111
- element: /* @__PURE__ */ o(k, {})
109
+ /* @__PURE__ */ c(a, {
110
+ path: "profile",
111
+ element: /* @__PURE__ */ c(k, {})
112
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, {
113
+ /* @__PURE__ */ c(a, {
202
114
  path: "*",
203
- element: /* @__PURE__ */ o(ee, {
204
- to: "/",
115
+ element: /* @__PURE__ */ c(i, {
116
+ to: "",
205
117
  replace: !0
206
118
  })
207
119
  })
@@ -210,6 +122,6 @@ var s = r(() => import("./pages/customer/CustomerDashboard.js").then((e) => ({ d
210
122
  });
211
123
  };
212
124
  //#endregion
213
- export { Z as CoolAndLovelyRoutes };
125
+ export { j as CoolAndLovelyRoutes };
214
126
 
215
127
  //# sourceMappingURL=CoolAndLovelyRoutes.js.map