@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.
- package/dist/coolandlovely/CoolAndLovelyRoot.js +66 -122
- package/dist/coolandlovely/CoolAndLovelyRoot.js.map +1 -1
- package/dist/coolandlovely/CoolAndLovelyRoutes.js +87 -175
- package/dist/coolandlovely/CoolAndLovelyRoutes.js.map +1 -1
- package/dist/coolandlovely/components/Field.js +81 -0
- package/dist/coolandlovely/components/Field.js.map +1 -0
- package/dist/coolandlovely/components/StateViews.js +34 -0
- package/dist/coolandlovely/components/StateViews.js.map +1 -0
- package/dist/coolandlovely/components/StatusBadge.js +25 -22
- package/dist/coolandlovely/components/StatusBadge.js.map +1 -1
- package/dist/coolandlovely/components/TagList.js +21 -0
- package/dist/coolandlovely/components/TagList.js.map +1 -0
- package/dist/coolandlovely/components/Thumbnail.js +29 -0
- package/dist/coolandlovely/components/Thumbnail.js.map +1 -0
- package/dist/coolandlovely/context/CoolAndLovelyContext.js +10 -10
- package/dist/coolandlovely/context/CoolAndLovelyContext.js.map +1 -1
- package/dist/coolandlovely/hooks/index.js +1 -0
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js +462 -169
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js.map +1 -1
- package/dist/coolandlovely/pages/HomePage.js +251 -845
- package/dist/coolandlovely/pages/HomePage.js.map +1 -1
- package/dist/coolandlovely/pages/brands/BrandDetailPage.js +319 -0
- package/dist/coolandlovely/pages/brands/BrandDetailPage.js.map +1 -0
- package/dist/coolandlovely/pages/brands/BrandFormPage.js +190 -0
- package/dist/coolandlovely/pages/brands/BrandFormPage.js.map +1 -0
- package/dist/coolandlovely/pages/brands/BrandsListPage.js +158 -0
- package/dist/coolandlovely/pages/brands/BrandsListPage.js.map +1 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.js +253 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.js.map +1 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.js +206 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.js.map +1 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.js +129 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.js.map +1 -0
- package/dist/coolandlovely/pages/collections/CollectionDetailPage.js +217 -0
- package/dist/coolandlovely/pages/collections/CollectionDetailPage.js.map +1 -0
- package/dist/coolandlovely/pages/collections/CollectionFormPage.js +217 -0
- package/dist/coolandlovely/pages/collections/CollectionFormPage.js.map +1 -0
- package/dist/coolandlovely/pages/collections/CollectionsListPage.js +122 -0
- package/dist/coolandlovely/pages/collections/CollectionsListPage.js.map +1 -0
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.js +230 -0
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.js.map +1 -0
- package/dist/coolandlovely/pages/items/StyleItemFormPage.js +276 -0
- package/dist/coolandlovely/pages/items/StyleItemFormPage.js.map +1 -0
- package/dist/coolandlovely/pages/items/StyleItemsListPage.js +170 -0
- package/dist/coolandlovely/pages/items/StyleItemsListPage.js.map +1 -0
- package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.js +124 -0
- package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.js.map +1 -0
- package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.js +156 -0
- package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.js.map +1 -0
- package/dist/coolandlovely/pages/looks/LookDetailPage.js +238 -0
- package/dist/coolandlovely/pages/looks/LookDetailPage.js.map +1 -0
- package/dist/coolandlovely/pages/looks/LookFormPage.js +209 -0
- package/dist/coolandlovely/pages/looks/LookFormPage.js.map +1 -0
- package/dist/coolandlovely/pages/looks/LooksListPage.js +181 -0
- package/dist/coolandlovely/pages/looks/LooksListPage.js.map +1 -0
- package/dist/coolandlovely/pages/profile/StyleProfilePage.js +224 -0
- package/dist/coolandlovely/pages/profile/StyleProfilePage.js.map +1 -0
- package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.js +173 -0
- package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.js.map +1 -0
- package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js +172 -0
- package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js.map +1 -0
- package/dist/coolandlovely/store/coolandlovelyStore.js +2 -6
- package/dist/coolandlovely/store/coolandlovelyStore.js.map +1 -1
- package/dist/coolandlovely/utils/formatters.js +31 -23
- package/dist/coolandlovely/utils/formatters.js.map +1 -1
- package/dist/coolandlovely/utils/icons.js +34 -0
- package/dist/coolandlovely/utils/icons.js.map +1 -0
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/coolandlovely/components/InvestmentCard.js +0 -98
- package/dist/coolandlovely/components/InvestmentCard.js.map +0 -1
- package/dist/coolandlovely/components/RatingDisplay.js +0 -35
- package/dist/coolandlovely/components/RatingDisplay.js.map +0 -1
- package/dist/coolandlovely/mocks/data.js +0 -1517
- package/dist/coolandlovely/mocks/data.js.map +0 -1
- package/dist/coolandlovely/mocks/users.js +0 -34
- package/dist/coolandlovely/mocks/users.js.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +0 -651
- package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminDashboard.js +0 -673
- package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +0 -427
- package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +0 -665
- package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js +0 -264
- package/dist/coolandlovely/pages/admin/AdminProfilePage.js.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js +0 -654
- package/dist/coolandlovely/pages/admin/AdminSettingsPage.js.map +0 -1
- package/dist/coolandlovely/pages/admin/CartManagementPage.js +0 -874
- package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +0 -1
- package/dist/coolandlovely/pages/admin/UserManagementPage.js +0 -898
- package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +0 -842
- package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +0 -705
- package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +0 -802
- package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +0 -891
- package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +0 -639
- package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +0 -914
- package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +0 -882
- package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +0 -1
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +0 -831
- package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +0 -1
- package/dist/coolandlovely/pages/common/HelpSupportPage.js +0 -1325
- package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +0 -1
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js +0 -671
- package/dist/coolandlovely/pages/common/NotificationCenterPage.js.map +0 -1
- package/dist/coolandlovely/pages/common/SettingsPage.js +0 -973
- package/dist/coolandlovely/pages/common/SettingsPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js +0 -630
- package/dist/coolandlovely/pages/customer/BookingDetailsPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/CartDetailPage.js +0 -623
- package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +0 -558
- package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/CheckoutPage.js +0 -529
- package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js +0 -538
- package/dist/coolandlovely/pages/customer/CustomerDashboard.js.map +0 -1
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js +0 -658
- package/dist/coolandlovely/pages/customer/CustomerProfilePage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js +0 -632
- package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/FavoritesPage.js +0 -487
- package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +0 -447
- package/dist/coolandlovely/pages/customer/OrderHistoryPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js +0 -425
- package/dist/coolandlovely/pages/customer/OrderTrackingPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js +0 -494
- package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/ReviewsPage.js +0 -616
- package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +0 -1
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +0 -449
- package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +0 -1
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +0 -887
- package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +0 -1
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +0 -945
- package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +0 -687
- package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +0 -1
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js +0 -455
- package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +0 -1
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +0 -405
- package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +0 -1
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +0 -602
- package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +0 -1
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +0 -1070
- package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +0 -1
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +0 -533
- package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +0 -1
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js +0 -671
- package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +0 -1
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +0 -680
- package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +0 -1
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +0 -692
- package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +0 -1
- package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +0 -583
- 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 {
|
|
7
|
-
import { jsx as
|
|
8
|
-
import { FeatureFlagProvider as
|
|
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
|
|
10
|
+
var v = new i({ defaultOptions: { queries: {
|
|
11
11
|
staleTime: 300 * 1e3,
|
|
12
12
|
retry: 1
|
|
13
|
-
} } }),
|
|
14
|
-
let { registerNavItems:
|
|
15
|
-
let n =
|
|
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
|
-
}, [
|
|
17
|
+
}, [S]), w = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
|
|
18
18
|
return r(() => {
|
|
19
|
-
if (
|
|
19
|
+
if (y) return y([
|
|
20
20
|
{
|
|
21
|
-
id: "coolandlovely-
|
|
22
|
-
label:
|
|
23
|
-
path:
|
|
24
|
-
icon: /* @__PURE__ */
|
|
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-
|
|
30
|
-
label:
|
|
31
|
-
path:
|
|
32
|
-
icon: /* @__PURE__ */
|
|
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: "
|
|
34
|
+
group: "catalog"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
id: "coolandlovely-
|
|
38
|
-
label:
|
|
39
|
-
path:
|
|
40
|
-
icon: /* @__PURE__ */
|
|
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: "
|
|
42
|
+
group: "catalog"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
id: "coolandlovely-
|
|
46
|
-
label:
|
|
47
|
-
path:
|
|
48
|
-
icon: /* @__PURE__ */
|
|
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: "
|
|
50
|
+
group: "catalog"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
id: "coolandlovely-
|
|
54
|
-
label:
|
|
55
|
-
path:
|
|
56
|
-
icon: /* @__PURE__ */
|
|
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: "
|
|
58
|
+
group: "social"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
|
-
id: "coolandlovely-
|
|
62
|
-
label:
|
|
63
|
-
path:
|
|
64
|
-
icon: /* @__PURE__ */
|
|
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: "
|
|
66
|
+
group: "social"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
id: "coolandlovely-
|
|
70
|
-
label:
|
|
71
|
-
path:
|
|
72
|
-
icon: /* @__PURE__ */
|
|
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: "
|
|
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-
|
|
134
|
-
label:
|
|
135
|
-
path:
|
|
136
|
-
icon: /* @__PURE__ */
|
|
137
|
-
order:
|
|
138
|
-
group: "
|
|
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-
|
|
142
|
-
label:
|
|
143
|
-
path:
|
|
144
|
-
icon: /* @__PURE__ */
|
|
145
|
-
order:
|
|
146
|
-
group: "
|
|
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
|
-
|
|
151
|
-
|
|
152
|
-
|
|
94
|
+
y,
|
|
95
|
+
x,
|
|
96
|
+
C
|
|
153
97
|
]), r(() => {
|
|
154
|
-
if (
|
|
98
|
+
if (b) return b([{
|
|
155
99
|
id: "coolandlovely-status",
|
|
156
|
-
label:
|
|
100
|
+
label: C("coolandlovely.footer.ready", "CoolAndLovely"),
|
|
157
101
|
type: "status",
|
|
158
102
|
order: 10,
|
|
159
103
|
section: "left"
|
|
160
104
|
}]);
|
|
161
|
-
}, [
|
|
162
|
-
client:
|
|
163
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
111
|
+
children: /* @__PURE__ */ g(e, {
|
|
168
112
|
...i,
|
|
169
|
-
children: /* @__PURE__ */
|
|
113
|
+
children: /* @__PURE__ */ g(t, {})
|
|
170
114
|
})
|
|
171
115
|
})
|
|
172
116
|
});
|
|
173
117
|
};
|
|
174
118
|
//#endregion
|
|
175
|
-
export {
|
|
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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AM,CAAA;IACzB,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAE,+BAA+B,YAAY;IACpD,MAAM,EAAS,GAAU,kBAAkB;IAC3C,MAAM,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA;IAC7B,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAE,+BAA+B,YAAY;IACpD,MAAM,EAAS,GAAU,kBAAkB;IAC3C,MAAM,kBAAC,GAAD,EAAQ,MAAM,IAAM,CAAA;IAC1B,OAAO;IACP,OAAO;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":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,GAAD,EAAU,MAAM,IAAM,CAAA;IAC5B,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAE,oCAAoC,iBAAiB;IAC9D,MAAM,EAAS,GAAU,iBAAiB;IAC1C,MAAM,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA;IAC7B,OAAO;IACP,OAAO;IACR;GAED;IACE,IAAI;IACJ,OAAO,EAAE,8BAA8B,cAAc;IACrD,MAAM,EAAS,GAAU,WAAW;IACpC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;IACzB,OAAO;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
|
|
5
|
-
import { jsx as
|
|
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
|
|
8
|
-
className: "flex items-center justify-center
|
|
9
|
-
children: /* @__PURE__ */
|
|
10
|
-
}),
|
|
11
|
-
let { basePath: r, isStandalone:
|
|
12
|
-
return
|
|
13
|
-
className: "flex
|
|
14
|
-
children: /* @__PURE__ */
|
|
15
|
-
fallback: /* @__PURE__ */
|
|
16
|
-
children: /* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
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__ */
|
|
19
|
+
element: /* @__PURE__ */ c(t, {})
|
|
20
20
|
}),
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
path: "
|
|
23
|
-
element: /* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ c(a, {
|
|
22
|
+
path: "brands",
|
|
23
|
+
element: /* @__PURE__ */ c(u, {})
|
|
24
24
|
}),
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
path: "
|
|
27
|
-
element: /* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ c(a, {
|
|
26
|
+
path: "brands/new",
|
|
27
|
+
element: /* @__PURE__ */ c(f, {})
|
|
28
28
|
}),
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
path: "
|
|
31
|
-
element: /* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ c(a, {
|
|
30
|
+
path: "brands/:brandId",
|
|
31
|
+
element: /* @__PURE__ */ c(d, {})
|
|
32
32
|
}),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
path: "
|
|
35
|
-
element: /* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ c(a, {
|
|
34
|
+
path: "brands/:brandId/edit",
|
|
35
|
+
element: /* @__PURE__ */ c(f, {})
|
|
36
36
|
}),
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
path: "
|
|
39
|
-
element: /* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ c(a, {
|
|
38
|
+
path: "collections",
|
|
39
|
+
element: /* @__PURE__ */ c(p, {})
|
|
40
40
|
}),
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
path: "
|
|
43
|
-
element: /* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ c(a, {
|
|
42
|
+
path: "collections/new",
|
|
43
|
+
element: /* @__PURE__ */ c(h, {})
|
|
44
44
|
}),
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
path: "
|
|
47
|
-
element: /* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ c(a, {
|
|
46
|
+
path: "collections/:collectionId",
|
|
47
|
+
element: /* @__PURE__ */ c(m, {})
|
|
48
48
|
}),
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
path: "
|
|
51
|
-
element: /* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ c(a, {
|
|
50
|
+
path: "collections/:collectionId/edit",
|
|
51
|
+
element: /* @__PURE__ */ c(h, {})
|
|
52
52
|
}),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
path: "
|
|
55
|
-
element: /* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ c(a, {
|
|
54
|
+
path: "items",
|
|
55
|
+
element: /* @__PURE__ */ c(g, {})
|
|
56
56
|
}),
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
path: "
|
|
59
|
-
element: /* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ c(a, {
|
|
58
|
+
path: "items/new",
|
|
59
|
+
element: /* @__PURE__ */ c(v, {})
|
|
60
60
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
path: "
|
|
63
|
-
element: /* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ c(a, {
|
|
62
|
+
path: "items/:itemId",
|
|
63
|
+
element: /* @__PURE__ */ c(_, {})
|
|
64
64
|
}),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
path: "
|
|
67
|
-
element: /* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ c(a, {
|
|
66
|
+
path: "items/:itemId/edit",
|
|
67
|
+
element: /* @__PURE__ */ c(v, {})
|
|
68
68
|
}),
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
path: "
|
|
71
|
-
element: /* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ c(a, {
|
|
70
|
+
path: "looks",
|
|
71
|
+
element: /* @__PURE__ */ c(y, {})
|
|
72
72
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
path: "
|
|
75
|
-
element: /* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ c(a, {
|
|
74
|
+
path: "looks/new",
|
|
75
|
+
element: /* @__PURE__ */ c(x, {})
|
|
76
76
|
}),
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
path: "
|
|
79
|
-
element: /* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ c(a, {
|
|
78
|
+
path: "looks/:lookId",
|
|
79
|
+
element: /* @__PURE__ */ c(b, {})
|
|
80
80
|
}),
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
path: "
|
|
83
|
-
element: /* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ c(a, {
|
|
82
|
+
path: "collaborations",
|
|
83
|
+
element: /* @__PURE__ */ c(S, {})
|
|
84
84
|
}),
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
path: "
|
|
87
|
-
element: /* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ c(a, {
|
|
86
|
+
path: "collaborations/new",
|
|
87
|
+
element: /* @__PURE__ */ c(w, {})
|
|
88
88
|
}),
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
path: "
|
|
91
|
-
element: /* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ c(a, {
|
|
90
|
+
path: "collaborations/:collaborationId",
|
|
91
|
+
element: /* @__PURE__ */ c(C, {})
|
|
92
92
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
path: "
|
|
95
|
-
element: /* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ c(a, {
|
|
94
|
+
path: "wardrobe",
|
|
95
|
+
element: /* @__PURE__ */ c(T, {})
|
|
96
96
|
}),
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
path: "
|
|
99
|
-
element: /* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ c(a, {
|
|
98
|
+
path: "wardrobe/new",
|
|
99
|
+
element: /* @__PURE__ */ c(E, {})
|
|
100
100
|
}),
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
path: "
|
|
103
|
-
element: /* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ c(a, {
|
|
102
|
+
path: "lookbooks",
|
|
103
|
+
element: /* @__PURE__ */ c(D, {})
|
|
104
104
|
}),
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
path: "
|
|
107
|
-
element: /* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ c(a, {
|
|
106
|
+
path: "lookbooks/:lookbookId",
|
|
107
|
+
element: /* @__PURE__ */ c(O, {})
|
|
108
108
|
}),
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
path: "
|
|
111
|
-
element: /* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ c(a, {
|
|
110
|
+
path: "profile",
|
|
111
|
+
element: /* @__PURE__ */ c(k, {})
|
|
112
112
|
}),
|
|
113
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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 {
|
|
125
|
+
export { j as CoolAndLovelyRoutes };
|
|
214
126
|
|
|
215
127
|
//# sourceMappingURL=CoolAndLovelyRoutes.js.map
|