@burdenoff/microfe-coolandlovely 2026.1113.1 → 2026.1123.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 (24) hide show
  1. package/dist/coolandlovely/CoolAndLovelyRoot.js +111 -87
  2. package/dist/coolandlovely/CoolAndLovelyRoutes.js +57 -45
  3. package/dist/coolandlovely/components/ImageUploadField.js +126 -89
  4. package/dist/coolandlovely/components/ResaleListingEditor.js +114 -68
  5. package/dist/coolandlovely/hooks/useDirectMessages.d.ts +83 -0
  6. package/dist/coolandlovely/hooks/useDirectMessages.js +152 -0
  7. package/dist/coolandlovely/hooks/useFulfilmentMonetizationApi.d.ts +288 -0
  8. package/dist/coolandlovely/hooks/useFulfilmentMonetizationApi.js +287 -0
  9. package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.js +233 -134
  10. package/dist/coolandlovely/pages/commerce/BrandAdsPage.d.ts +7 -0
  11. package/dist/coolandlovely/pages/commerce/BrandAdsPage.js +264 -0
  12. package/dist/coolandlovely/pages/commerce/BrandOrdersPage.js +225 -156
  13. package/dist/coolandlovely/pages/commerce/CartPage.js +161 -136
  14. package/dist/coolandlovely/pages/commerce/CreatorEarningsPage.js +254 -137
  15. package/dist/coolandlovely/pages/commerce/OrdersPage.js +186 -131
  16. package/dist/coolandlovely/pages/commerce/TryAtHomePage.d.ts +8 -0
  17. package/dist/coolandlovely/pages/commerce/TryAtHomePage.js +336 -0
  18. package/dist/coolandlovely/pages/messages/DirectMessagesPage.d.ts +9 -0
  19. package/dist/coolandlovely/pages/messages/DirectMessagesPage.js +282 -0
  20. package/dist/coolandlovely/pages/profile/StyleProfilePage.js +10 -1
  21. package/dist/coolandlovely/pages/resale/ResaleListingPage.js +189 -79
  22. package/dist/coolandlovely/pages/resale/ResaleSellerPage.js +224 -105
  23. package/dist/coolandlovely/types/commerce.d.ts +1 -0
  24. package/package.json +4 -4
@@ -7,216 +7,240 @@ import "./components/index.js";
7
7
  import { useCallback as a, useEffect as o } from "react";
8
8
  import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
9
  import { useQuotaErrorToast as c } from "@burdenoff/fe-libs/shared/hooks";
10
- import { BookHeart as l, Compass as u, Handshake as d, Heart as f, Home as p, Package as m, Shapes as h, Shield as g, Shirt as _, ShoppingBag as v, Sparkles as y, Store as b, TrendingUp as x, UserCircle as S, Wallet as C } from "lucide-react";
11
- import { jsx as w, jsxs as T } from "react/jsx-runtime";
12
- import { FeatureFlagProvider as E } from "@burdenoff/fe-libs/shared/feature-flags";
13
- import { useFeatureFlag as D } from "@burdenoff/fe-libs/shared/feature-flags/useFeatureFlag";
10
+ import { BookHeart as l, Compass as u, Handshake as d, Heart as f, Home as p, Megaphone as m, MessageSquare as h, Package as g, Shapes as _, Shield as v, Shirt as y, ShoppingBag as b, Sparkles as x, Store as S, TrendingUp as C, UserCircle as w, Wallet as T } from "lucide-react";
11
+ import { jsx as E, jsxs as D } from "react/jsx-runtime";
12
+ import { FeatureFlagProvider as O } from "@burdenoff/fe-libs/shared/feature-flags";
13
+ import { useFeatureFlag as k } from "@burdenoff/fe-libs/shared/feature-flags/useFeatureFlag";
14
14
  // src/coolandlovely/CoolAndLovelyRoot.tsx
15
- var O = (O) => {
16
- let { registerNavItems: k, registerFooterItems: A, basePath: j = "/" } = O, { t: M } = s(), N = a((e, t) => {
17
- let n = M(e);
15
+ var A = (A) => {
16
+ let { registerNavItems: j, registerFooterItems: M, basePath: N = "/" } = A, { t: P } = s(), F = a((e, t) => {
17
+ let n = P(e);
18
18
  return n === e ? t : n;
19
- }, [M]), P = D("coolandlovely.admin.curation", !1);
19
+ }, [P]), I = k("coolandlovely.admin.curation", !1);
20
20
  c();
21
- let F = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
21
+ let L = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
22
22
  return o(() => {
23
- if (!k) return;
23
+ if (!j) return;
24
24
  let e = [
25
25
  {
26
26
  id: "coolandlovely-overview",
27
- label: N("coolandlovely.nav.overview", "Overview"),
28
- path: F(j, ""),
29
- icon: /* @__PURE__ */ w(p, { size: 20 }),
27
+ label: F("coolandlovely.nav.overview", "Overview"),
28
+ path: L(N, ""),
29
+ icon: /* @__PURE__ */ E(p, { size: 20 }),
30
30
  order: 1,
31
31
  group: "main"
32
32
  },
33
33
  {
34
34
  id: "coolandlovely-brands",
35
- label: N("coolandlovely.nav.brands", "Brands"),
36
- path: F(j, "brands"),
37
- icon: /* @__PURE__ */ w(b, { size: 20 }),
35
+ label: F("coolandlovely.nav.brands", "Brands"),
36
+ path: L(N, "brands"),
37
+ icon: /* @__PURE__ */ E(S, { size: 20 }),
38
38
  order: 10,
39
39
  group: "catalog"
40
40
  },
41
41
  {
42
42
  id: "coolandlovely-collections",
43
- label: N("coolandlovely.nav.collections", "Collections"),
44
- path: F(j, "collections"),
45
- icon: /* @__PURE__ */ w(h, { size: 20 }),
43
+ label: F("coolandlovely.nav.collections", "Collections"),
44
+ path: L(N, "collections"),
45
+ icon: /* @__PURE__ */ E(_, { size: 20 }),
46
46
  order: 11,
47
47
  group: "catalog"
48
48
  },
49
49
  {
50
50
  id: "coolandlovely-items",
51
- label: N("coolandlovely.nav.items", "Style Items"),
52
- path: F(j, "items"),
53
- icon: /* @__PURE__ */ w(_, { size: 20 }),
51
+ label: F("coolandlovely.nav.items", "Style Items"),
52
+ path: L(N, "items"),
53
+ icon: /* @__PURE__ */ E(y, { size: 20 }),
54
54
  order: 12,
55
55
  group: "catalog"
56
56
  },
57
57
  {
58
58
  id: "coolandlovely-looks",
59
- label: N("coolandlovely.nav.looks", "Looks"),
60
- path: F(j, "looks"),
61
- icon: /* @__PURE__ */ w(y, { size: 20 }),
59
+ label: F("coolandlovely.nav.looks", "Looks"),
60
+ path: L(N, "looks"),
61
+ icon: /* @__PURE__ */ E(x, { size: 20 }),
62
62
  order: 20,
63
63
  group: "social"
64
64
  },
65
65
  {
66
66
  id: "coolandlovely-collaborations",
67
- label: N("coolandlovely.nav.collaborations", "Collaborations"),
68
- path: F(j, "collaborations"),
69
- icon: /* @__PURE__ */ w(d, { size: 20 }),
67
+ label: F("coolandlovely.nav.collaborations", "Collaborations"),
68
+ path: L(N, "collaborations"),
69
+ icon: /* @__PURE__ */ E(d, { size: 20 }),
70
70
  order: 21,
71
71
  group: "social"
72
72
  },
73
73
  {
74
74
  id: "coolandlovely-wardrobe",
75
- label: N("coolandlovely.nav.wardrobe", "My Wardrobe"),
76
- path: F(j, "wardrobe"),
77
- icon: /* @__PURE__ */ w(f, { size: 20 }),
75
+ label: F("coolandlovely.nav.wardrobe", "My Wardrobe"),
76
+ path: L(N, "wardrobe"),
77
+ icon: /* @__PURE__ */ E(f, { size: 20 }),
78
78
  order: 30,
79
79
  group: "my-style"
80
80
  },
81
81
  {
82
82
  id: "coolandlovely-lookbooks",
83
- label: N("coolandlovely.nav.lookbooks", "Lookbooks"),
84
- path: F(j, "lookbooks"),
85
- icon: /* @__PURE__ */ w(l, { size: 20 }),
83
+ label: F("coolandlovely.nav.lookbooks", "Lookbooks"),
84
+ path: L(N, "lookbooks"),
85
+ icon: /* @__PURE__ */ E(l, { size: 20 }),
86
86
  order: 31,
87
87
  group: "my-style"
88
88
  },
89
89
  {
90
90
  id: "coolandlovely-profile",
91
- label: N("coolandlovely.nav.profile", "Style Profile"),
92
- path: F(j, "profile"),
93
- icon: /* @__PURE__ */ w(S, { size: 20 }),
91
+ label: F("coolandlovely.nav.profile", "Style Profile"),
92
+ path: L(N, "profile"),
93
+ icon: /* @__PURE__ */ E(w, { size: 20 }),
94
94
  order: 32,
95
95
  group: "my-style"
96
96
  },
97
97
  {
98
98
  id: "coolandlovely-cart",
99
- label: N("coolandlovely.nav.cart", "Cart"),
100
- path: F(j, "cart"),
101
- icon: /* @__PURE__ */ w(v, { size: 20 }),
99
+ label: F("coolandlovely.nav.cart", "Cart"),
100
+ path: L(N, "cart"),
101
+ icon: /* @__PURE__ */ E(b, { size: 20 }),
102
102
  order: 33,
103
103
  group: "my-style"
104
104
  },
105
105
  {
106
106
  id: "coolandlovely-orders",
107
- label: N("coolandlovely.nav.orders", "My Orders"),
108
- path: F(j, "orders"),
109
- icon: /* @__PURE__ */ w(m, { size: 20 }),
107
+ label: F("coolandlovely.nav.orders", "My Orders"),
108
+ path: L(N, "orders"),
109
+ icon: /* @__PURE__ */ E(g, { size: 20 }),
110
110
  order: 34,
111
111
  group: "my-style"
112
112
  },
113
113
  {
114
114
  id: "coolandlovely-earnings",
115
- label: N("coolandlovely.nav.earnings", "Creator Earnings"),
116
- path: F(j, "earnings"),
117
- icon: /* @__PURE__ */ w(C, { size: 20 }),
115
+ label: F("coolandlovely.nav.earnings", "Creator Earnings"),
116
+ path: L(N, "earnings"),
117
+ icon: /* @__PURE__ */ E(T, { size: 20 }),
118
118
  order: 35,
119
119
  group: "my-style"
120
120
  },
121
121
  {
122
122
  id: "coolandlovely-marketplace",
123
- label: N("coolandlovely.nav.marketplace", "Creator marketplace"),
124
- path: F(j, "creator-marketplace"),
125
- icon: /* @__PURE__ */ w(d, { size: 20 }),
123
+ label: F("coolandlovely.nav.marketplace", "Creator marketplace"),
124
+ path: L(N, "creator-marketplace"),
125
+ icon: /* @__PURE__ */ E(d, { size: 20 }),
126
126
  order: 36,
127
127
  group: "my-style"
128
128
  },
129
129
  {
130
130
  id: "coolandlovely-resale",
131
- label: N("coolandlovely.nav.resale", "Pre-loved marketplace"),
132
- path: F(j, "resale"),
133
- icon: /* @__PURE__ */ w(v, { size: 20 }),
131
+ label: F("coolandlovely.nav.resale", "Pre-loved marketplace"),
132
+ path: L(N, "resale"),
133
+ icon: /* @__PURE__ */ E(b, { size: 20 }),
134
134
  order: 37,
135
135
  group: "my-style"
136
136
  },
137
+ {
138
+ id: "coolandlovely-try-at-home",
139
+ label: F("coolandlovely.nav.tryAtHome", "Try at Home"),
140
+ path: L(N, "try-at-home"),
141
+ icon: /* @__PURE__ */ E(g, { size: 20 }),
142
+ order: 38,
143
+ group: "my-style"
144
+ },
145
+ {
146
+ id: "coolandlovely-messages",
147
+ label: F("coolandlovely.nav.messages", "Messages"),
148
+ path: L(N, "messages"),
149
+ icon: /* @__PURE__ */ E(h, { size: 20 }),
150
+ order: 22,
151
+ group: "social"
152
+ },
153
+ {
154
+ id: "coolandlovely-ads",
155
+ label: F("coolandlovely.nav.ads", "Ad Manager"),
156
+ path: L(N, "ads"),
157
+ icon: /* @__PURE__ */ E(m, { size: 20 }),
158
+ order: 39,
159
+ group: "my-style"
160
+ },
137
161
  {
138
162
  id: "coolandlovely-discover",
139
- label: N("coolandlovely.nav.discover", "Discover"),
140
- path: F(j, "discover"),
141
- icon: /* @__PURE__ */ w(u, { size: 20 }),
163
+ label: F("coolandlovely.nav.discover", "Discover"),
164
+ path: L(N, "discover"),
165
+ icon: /* @__PURE__ */ E(u, { size: 20 }),
142
166
  order: 40,
143
167
  group: "signals"
144
168
  },
145
169
  {
146
170
  id: "coolandlovely-trends",
147
- label: N("coolandlovely.nav.trends", "Trends"),
148
- path: F(j, "trends"),
149
- icon: /* @__PURE__ */ w(x, { size: 20 }),
171
+ label: F("coolandlovely.nav.trends", "Trends"),
172
+ path: L(N, "trends"),
173
+ icon: /* @__PURE__ */ E(C, { size: 20 }),
150
174
  order: 41,
151
175
  group: "signals"
152
176
  },
153
177
  {
154
178
  id: "coolandlovely-journal",
155
- label: N("coolandlovely.nav.journal", "Journal"),
156
- path: F(j, "journal"),
157
- icon: /* @__PURE__ */ w(x, { size: 20 }),
179
+ label: F("coolandlovely.nav.journal", "Journal"),
180
+ path: L(N, "journal"),
181
+ icon: /* @__PURE__ */ E(C, { size: 20 }),
158
182
  order: 42,
159
183
  group: "signals"
160
184
  },
161
- ...P ? [
185
+ ...I ? [
162
186
  {
163
187
  id: "coolandlovely-admin",
164
- label: N("coolandlovely.nav.admin", "Admin"),
165
- path: F(j, "admin/brands"),
166
- icon: /* @__PURE__ */ w(g, { size: 20 }),
188
+ label: F("coolandlovely.nav.admin", "Admin"),
189
+ path: L(N, "admin/brands"),
190
+ icon: /* @__PURE__ */ E(v, { size: 20 }),
167
191
  order: 50,
168
192
  group: "admin"
169
193
  },
170
194
  {
171
195
  id: "coolandlovely-admin-brands",
172
- label: N("coolandlovely.nav.adminBrands", "Brands"),
173
- path: F(j, "admin/brands"),
174
- icon: /* @__PURE__ */ w(b, { size: 20 }),
196
+ label: F("coolandlovely.nav.adminBrands", "Brands"),
197
+ path: L(N, "admin/brands"),
198
+ icon: /* @__PURE__ */ E(S, { size: 20 }),
175
199
  order: 51,
176
200
  group: "admin"
177
201
  },
178
202
  {
179
203
  id: "coolandlovely-admin-collaborations",
180
- label: N("coolandlovely.nav.adminCollaborations", "Collaborations"),
181
- path: F(j, "admin/collaborations"),
182
- icon: /* @__PURE__ */ w(d, { size: 20 }),
204
+ label: F("coolandlovely.nav.adminCollaborations", "Collaborations"),
205
+ path: L(N, "admin/collaborations"),
206
+ icon: /* @__PURE__ */ E(d, { size: 20 }),
183
207
  order: 52,
184
208
  group: "admin"
185
209
  },
186
210
  {
187
211
  id: "coolandlovely-admin-featured-items",
188
- label: N("coolandlovely.nav.adminFeaturedItems", "Featured Items"),
189
- path: F(j, "admin/featured-items"),
190
- icon: /* @__PURE__ */ w(_, { size: 20 }),
212
+ label: F("coolandlovely.nav.adminFeaturedItems", "Featured Items"),
213
+ path: L(N, "admin/featured-items"),
214
+ icon: /* @__PURE__ */ E(y, { size: 20 }),
191
215
  order: 53,
192
216
  group: "admin"
193
217
  }
194
218
  ] : []
195
219
  ];
196
- return k(e);
220
+ return j(e);
197
221
  }, [
198
- k,
199
222
  j,
200
223
  N,
201
- P
224
+ F,
225
+ I
202
226
  ]), o(() => {
203
- if (!A) return;
227
+ if (!M) return;
204
228
  let e = [{
205
229
  id: "coolandlovely-status",
206
- label: N("coolandlovely.footer.ready", "CoolAndLovely"),
230
+ label: F("coolandlovely.footer.ready", "CoolAndLovely"),
207
231
  type: "status",
208
232
  order: 10,
209
233
  section: "left"
210
234
  }];
211
- return A(e);
212
- }, [A, N]), /* @__PURE__ */ w(t, { children: /* @__PURE__ */ w(E, {
213
- workspaceId: O.workspaceId ?? null,
235
+ return M(e);
236
+ }, [M, F]), /* @__PURE__ */ E(t, { children: /* @__PURE__ */ E(O, {
237
+ workspaceId: A.workspaceId ?? null,
214
238
  gateway: "global",
215
239
  defaultEnabled: !0,
216
- children: /* @__PURE__ */ T(e, {
217
- ...O,
218
- children: [/* @__PURE__ */ w(r, {}), /* @__PURE__ */ w(i, {})]
240
+ children: /* @__PURE__ */ D(e, {
241
+ ...A,
242
+ children: [/* @__PURE__ */ E(r, {}), /* @__PURE__ */ E(i, {})]
219
243
  })
220
- }) }, n(O));
244
+ }) }, n(A));
221
245
  };
222
- export { O as CoolAndLovelyRoot };
246
+ export { A as CoolAndLovelyRoot };
@@ -4,15 +4,15 @@ import { Suspense as n, lazy as r } from "react";
4
4
  import { Navigate as i, Route as a, Routes as o, useLocation as s } from "react-router";
5
5
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
6
6
  // src/coolandlovely/CoolAndLovelyRoutes.tsx
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/brands/ImportCatalogPage.js").then((e) => ({ default: e.ImportCatalogPage }))), m = r(() => import("./pages/collections/CollectionsListPage.js").then((e) => ({ default: e.CollectionsListPage }))), h = r(() => import("./pages/collections/CollectionDetailPage.js").then((e) => ({ default: e.CollectionDetailPage }))), g = r(() => import("./pages/collections/CollectionFormPage.js").then((e) => ({ default: e.CollectionFormPage }))), _ = r(() => import("./pages/items/StyleItemsListPage.js").then((e) => ({ default: e.StyleItemsListPage }))), v = r(() => import("./pages/items/StyleItemDetailPage.js").then((e) => ({ default: e.StyleItemDetailPage }))), y = r(() => import("./pages/items/StyleItemFormPage.js").then((e) => ({ default: e.StyleItemFormPage }))), b = r(() => import("./pages/looks/LooksListPage.js").then((e) => ({ default: e.LooksListPage }))), x = r(() => import("./pages/looks/LookDetailPage.js").then((e) => ({ default: e.LookDetailPage }))), S = r(() => import("./pages/looks/LookFormPage.js").then((e) => ({ default: e.LookFormPage }))), C = r(() => import("./pages/collaborations/CollaborationsListPage.js").then((e) => ({ default: e.CollaborationsListPage }))), w = r(() => import("./pages/collaborations/CollaborationDetailPage.js").then((e) => ({ default: e.CollaborationDetailPage }))), T = r(() => import("./pages/collaborations/CollaborationFormPage.js").then((e) => ({ default: e.CollaborationFormPage }))), E = r(() => import("./pages/wardrobe/WardrobeListPage.js").then((e) => ({ default: e.WardrobeListPage }))), D = r(() => import("./pages/wardrobe/WardrobeFormPage.js").then((e) => ({ default: e.WardrobeFormPage }))), O = r(() => import("./pages/lookbooks/LookbooksListPage.js").then((e) => ({ default: e.LookbooksListPage }))), k = r(() => import("./pages/lookbooks/LookbookDetailPage.js").then((e) => ({ default: e.LookbookDetailPage }))), A = r(() => import("./pages/profile/StyleProfilePage.js").then((e) => ({ default: e.StyleProfilePage }))), j = r(() => import("./pages/discover/DiscoverPage.js").then((e) => ({ default: e.DiscoverPage }))), M = r(() => import("./pages/trends/TrendsPage.js").then((e) => ({ default: e.TrendsPage }))), N = r(() => import("./pages/editorial/EditorialPage.js").then((e) => ({ default: e.EditorialPage }))), ee = r(() => import("./pages/marketplace/CreatorMarketplacePage.js").then((e) => ({ default: e.CreatorMarketplacePage }))), P = r(() => import("./pages/resale/ResaleBrowsePage.js").then((e) => ({ default: e.ResaleBrowsePage }))), F = r(() => import("./pages/resale/ResaleListingPage.js").then((e) => ({ default: e.ResaleListingPage }))), I = r(() => import("./pages/resale/ResaleSellerPage.js").then((e) => ({ default: e.ResaleSellerPage }))), L = r(() => import("./pages/resale/ResaleReportsPage.js").then((e) => ({ default: e.ResaleReportsPage }))), R = r(() => import("./pages/resale/ResaleModerationPage.js").then((e) => ({ default: e.ResaleModerationPage }))), z = r(() => import("./pages/commerce/CartPage.js").then((e) => ({ default: e.CartPage }))), B = r(() => import("./pages/commerce/BrandOrdersPage.js").then((e) => ({ default: e.BrandOrdersPage }))), V = r(() => import("./pages/commerce/BrandOrdersPage.js").then((e) => ({ default: e.BrandOrderDetailPage }))), H = r(() => import("./pages/commerce/OrdersPage.js").then((e) => ({ default: e.OrdersPage }))), U = r(() => import("./pages/commerce/OrdersPage.js").then((e) => ({ default: e.OrderDetailPage }))), W = r(() => import("./pages/commerce/CreatorEarningsPage.js").then((e) => ({ default: e.CreatorEarningsPage }))), G = r(() => import("./pages/admin/AdminBrandsPage.js").then((e) => ({ default: e.AdminBrandsPage }))), K = r(() => import("./pages/admin/AdminCollaborationsPage.js").then((e) => ({ default: e.AdminCollaborationsPage }))), q = r(() => import("./pages/admin/AdminFeaturedItemsPage.js").then((e) => ({ default: e.AdminFeaturedItemsPage }))), J = () => /* @__PURE__ */ c("div", {
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 }))), ee = r(() => import("./pages/brands/ImportCatalogPage.js").then((e) => ({ default: e.ImportCatalogPage }))), te = r(() => import("./pages/collections/CollectionsListPage.js").then((e) => ({ default: e.CollectionsListPage }))), p = r(() => import("./pages/collections/CollectionDetailPage.js").then((e) => ({ default: e.CollectionDetailPage }))), m = r(() => import("./pages/collections/CollectionFormPage.js").then((e) => ({ default: e.CollectionFormPage }))), h = r(() => import("./pages/items/StyleItemsListPage.js").then((e) => ({ default: e.StyleItemsListPage }))), g = r(() => import("./pages/items/StyleItemDetailPage.js").then((e) => ({ default: e.StyleItemDetailPage }))), _ = r(() => import("./pages/items/StyleItemFormPage.js").then((e) => ({ default: e.StyleItemFormPage }))), v = r(() => import("./pages/looks/LooksListPage.js").then((e) => ({ default: e.LooksListPage }))), y = r(() => import("./pages/looks/LookDetailPage.js").then((e) => ({ default: e.LookDetailPage }))), b = r(() => import("./pages/looks/LookFormPage.js").then((e) => ({ default: e.LookFormPage }))), x = r(() => import("./pages/collaborations/CollaborationsListPage.js").then((e) => ({ default: e.CollaborationsListPage }))), S = r(() => import("./pages/collaborations/CollaborationDetailPage.js").then((e) => ({ default: e.CollaborationDetailPage }))), C = r(() => import("./pages/collaborations/CollaborationFormPage.js").then((e) => ({ default: e.CollaborationFormPage }))), w = r(() => import("./pages/wardrobe/WardrobeListPage.js").then((e) => ({ default: e.WardrobeListPage }))), T = r(() => import("./pages/wardrobe/WardrobeFormPage.js").then((e) => ({ default: e.WardrobeFormPage }))), E = r(() => import("./pages/lookbooks/LookbooksListPage.js").then((e) => ({ default: e.LookbooksListPage }))), D = r(() => import("./pages/lookbooks/LookbookDetailPage.js").then((e) => ({ default: e.LookbookDetailPage }))), O = r(() => import("./pages/profile/StyleProfilePage.js").then((e) => ({ default: e.StyleProfilePage }))), k = r(() => import("./pages/discover/DiscoverPage.js").then((e) => ({ default: e.DiscoverPage }))), A = r(() => import("./pages/trends/TrendsPage.js").then((e) => ({ default: e.TrendsPage }))), j = r(() => import("./pages/editorial/EditorialPage.js").then((e) => ({ default: e.EditorialPage }))), ne = r(() => import("./pages/marketplace/CreatorMarketplacePage.js").then((e) => ({ default: e.CreatorMarketplacePage }))), M = r(() => import("./pages/resale/ResaleBrowsePage.js").then((e) => ({ default: e.ResaleBrowsePage }))), N = r(() => import("./pages/resale/ResaleListingPage.js").then((e) => ({ default: e.ResaleListingPage }))), P = r(() => import("./pages/resale/ResaleSellerPage.js").then((e) => ({ default: e.ResaleSellerPage }))), F = r(() => import("./pages/resale/ResaleReportsPage.js").then((e) => ({ default: e.ResaleReportsPage }))), I = r(() => import("./pages/resale/ResaleModerationPage.js").then((e) => ({ default: e.ResaleModerationPage }))), L = r(() => import("./pages/messages/DirectMessagesPage.js").then((e) => ({ default: e.DirectMessagesPage }))), R = r(() => import("./pages/commerce/TryAtHomePage.js").then((e) => ({ default: e.TryAtHomePage }))), z = r(() => import("./pages/commerce/BrandAdsPage.js").then((e) => ({ default: e.BrandAdsPage }))), B = r(() => import("./pages/commerce/CartPage.js").then((e) => ({ default: e.CartPage }))), V = r(() => import("./pages/commerce/BrandOrdersPage.js").then((e) => ({ default: e.BrandOrdersPage }))), H = r(() => import("./pages/commerce/BrandOrdersPage.js").then((e) => ({ default: e.BrandOrderDetailPage }))), U = r(() => import("./pages/commerce/OrdersPage.js").then((e) => ({ default: e.OrdersPage }))), W = r(() => import("./pages/commerce/OrdersPage.js").then((e) => ({ default: e.OrderDetailPage }))), G = r(() => import("./pages/commerce/CreatorEarningsPage.js").then((e) => ({ default: e.CreatorEarningsPage }))), K = r(() => import("./pages/admin/AdminBrandsPage.js").then((e) => ({ default: e.AdminBrandsPage }))), q = r(() => import("./pages/admin/AdminCollaborationsPage.js").then((e) => ({ default: e.AdminCollaborationsPage }))), J = r(() => import("./pages/admin/AdminFeaturedItemsPage.js").then((e) => ({ default: e.AdminFeaturedItemsPage }))), Y = () => /* @__PURE__ */ c("div", {
8
8
  className: "flex min-h-[400px] items-center justify-center",
9
9
  children: /* @__PURE__ */ c("div", { className: "h-8 w-8 animate-spin rounded-full border-b-2 border-primary" })
10
- }), Y = () => {
11
- let { basePath: r, isStandalone: Y, workspaceId: X, currentUser: Z } = e(), Q = s(), $ = r === "/" ? "" : (r ?? "").replace(/\/$/, "");
12
- return $ && !Y && !(Q.pathname === $ || Q.pathname.startsWith($ + "/")) ? null : /* @__PURE__ */ c("div", {
10
+ }), X = () => {
11
+ let { basePath: r, isStandalone: X, workspaceId: Z, currentUser: re } = e(), Q = s(), $ = r === "/" ? "" : (r ?? "").replace(/\/$/, "");
12
+ return $ && !X && !(Q.pathname === $ || Q.pathname.startsWith($ + "/")) ? null : /* @__PURE__ */ c("div", {
13
13
  className: "flex min-h-full flex-col",
14
14
  children: /* @__PURE__ */ c(n, {
15
- fallback: /* @__PURE__ */ c(J, {}),
15
+ fallback: /* @__PURE__ */ c(Y, {}),
16
16
  children: /* @__PURE__ */ l(o, { children: [
17
17
  /* @__PURE__ */ c(a, {
18
18
  index: !0,
@@ -28,7 +28,7 @@ var u = r(() => import("./pages/brands/BrandsListPage.js").then((e) => ({ defaul
28
28
  }),
29
29
  /* @__PURE__ */ c(a, {
30
30
  path: "brands/import",
31
- element: /* @__PURE__ */ c(p, {})
31
+ element: /* @__PURE__ */ c(ee, {})
32
32
  }),
33
33
  /* @__PURE__ */ c(a, {
34
34
  path: "brands/:brandId",
@@ -40,147 +40,159 @@ var u = r(() => import("./pages/brands/BrandsListPage.js").then((e) => ({ defaul
40
40
  }),
41
41
  /* @__PURE__ */ c(a, {
42
42
  path: "collections",
43
- element: /* @__PURE__ */ c(m, {})
43
+ element: /* @__PURE__ */ c(te, {})
44
44
  }),
45
45
  /* @__PURE__ */ c(a, {
46
46
  path: "collections/new",
47
- element: /* @__PURE__ */ c(g, {})
47
+ element: /* @__PURE__ */ c(m, {})
48
48
  }),
49
49
  /* @__PURE__ */ c(a, {
50
50
  path: "collections/:collectionId",
51
- element: /* @__PURE__ */ c(h, {})
51
+ element: /* @__PURE__ */ c(p, {})
52
52
  }),
53
53
  /* @__PURE__ */ c(a, {
54
54
  path: "collections/:collectionId/edit",
55
- element: /* @__PURE__ */ c(g, {})
55
+ element: /* @__PURE__ */ c(m, {})
56
56
  }),
57
57
  /* @__PURE__ */ c(a, {
58
58
  path: "items",
59
- element: /* @__PURE__ */ c(_, {})
59
+ element: /* @__PURE__ */ c(h, {})
60
60
  }),
61
61
  /* @__PURE__ */ c(a, {
62
62
  path: "items/new",
63
- element: /* @__PURE__ */ c(y, {})
63
+ element: /* @__PURE__ */ c(_, {})
64
64
  }),
65
65
  /* @__PURE__ */ c(a, {
66
66
  path: "items/:itemId",
67
- element: /* @__PURE__ */ c(v, {})
67
+ element: /* @__PURE__ */ c(g, {})
68
68
  }),
69
69
  /* @__PURE__ */ c(a, {
70
70
  path: "items/:itemId/edit",
71
- element: /* @__PURE__ */ c(y, {})
71
+ element: /* @__PURE__ */ c(_, {})
72
72
  }),
73
73
  /* @__PURE__ */ c(a, {
74
74
  path: "looks",
75
- element: /* @__PURE__ */ c(b, {})
75
+ element: /* @__PURE__ */ c(v, {})
76
76
  }),
77
77
  /* @__PURE__ */ c(a, {
78
78
  path: "looks/new",
79
- element: /* @__PURE__ */ c(S, {})
79
+ element: /* @__PURE__ */ c(b, {})
80
80
  }),
81
81
  /* @__PURE__ */ c(a, {
82
82
  path: "looks/:lookId",
83
- element: /* @__PURE__ */ c(x, {})
83
+ element: /* @__PURE__ */ c(y, {})
84
84
  }),
85
85
  /* @__PURE__ */ c(a, {
86
86
  path: "collaborations",
87
- element: /* @__PURE__ */ c(C, {})
87
+ element: /* @__PURE__ */ c(x, {})
88
88
  }),
89
89
  /* @__PURE__ */ c(a, {
90
90
  path: "collaborations/new",
91
- element: /* @__PURE__ */ c(T, {})
91
+ element: /* @__PURE__ */ c(C, {})
92
92
  }),
93
93
  /* @__PURE__ */ c(a, {
94
94
  path: "collaborations/:collaborationId",
95
- element: /* @__PURE__ */ c(w, {})
95
+ element: /* @__PURE__ */ c(S, {})
96
96
  }),
97
97
  /* @__PURE__ */ c(a, {
98
98
  path: "collaborations/:collaborationId/edit",
99
- element: /* @__PURE__ */ c(T, {})
99
+ element: /* @__PURE__ */ c(C, {})
100
100
  }),
101
101
  /* @__PURE__ */ c(a, {
102
102
  path: "wardrobe",
103
- element: /* @__PURE__ */ c(E, {})
103
+ element: /* @__PURE__ */ c(w, {})
104
104
  }),
105
105
  /* @__PURE__ */ c(a, {
106
106
  path: "wardrobe/new",
107
- element: /* @__PURE__ */ c(D, {})
107
+ element: /* @__PURE__ */ c(T, {})
108
108
  }),
109
109
  /* @__PURE__ */ c(a, {
110
110
  path: "lookbooks",
111
- element: /* @__PURE__ */ c(O, {})
111
+ element: /* @__PURE__ */ c(E, {})
112
112
  }),
113
113
  /* @__PURE__ */ c(a, {
114
114
  path: "lookbooks/:lookbookId",
115
- element: /* @__PURE__ */ c(k, {})
115
+ element: /* @__PURE__ */ c(D, {})
116
116
  }),
117
117
  /* @__PURE__ */ c(a, {
118
118
  path: "profile",
119
- element: /* @__PURE__ */ c(A, {})
119
+ element: /* @__PURE__ */ c(O, {})
120
120
  }),
121
121
  /* @__PURE__ */ c(a, {
122
122
  path: "profile/:userId",
123
- element: /* @__PURE__ */ c(A, {})
123
+ element: /* @__PURE__ */ c(O, {})
124
124
  }),
125
125
  /* @__PURE__ */ c(a, {
126
126
  path: "discover",
127
- element: /* @__PURE__ */ c(j, {})
127
+ element: /* @__PURE__ */ c(k, {})
128
128
  }),
129
129
  /* @__PURE__ */ c(a, {
130
130
  path: "trends",
131
- element: /* @__PURE__ */ c(M, {})
131
+ element: /* @__PURE__ */ c(A, {})
132
132
  }),
133
133
  /* @__PURE__ */ c(a, {
134
134
  path: "journal",
135
- element: /* @__PURE__ */ c(N, {}, `${X ?? ""}:${Z?.id ?? ""}`)
135
+ element: /* @__PURE__ */ c(j, {}, `${Z ?? ""}:${re?.id ?? ""}`)
136
136
  }),
137
137
  /* @__PURE__ */ c(a, {
138
138
  path: "cart",
139
- element: /* @__PURE__ */ c(z, {})
139
+ element: /* @__PURE__ */ c(B, {})
140
140
  }),
141
141
  /* @__PURE__ */ c(a, {
142
142
  path: "orders",
143
- element: /* @__PURE__ */ c(H, {})
143
+ element: /* @__PURE__ */ c(U, {})
144
144
  }),
145
145
  /* @__PURE__ */ c(a, {
146
146
  path: "orders/:orderId",
147
- element: /* @__PURE__ */ c(U, {})
147
+ element: /* @__PURE__ */ c(W, {})
148
148
  }),
149
149
  /* @__PURE__ */ c(a, {
150
150
  path: "earnings",
151
- element: /* @__PURE__ */ c(W, {})
151
+ element: /* @__PURE__ */ c(G, {})
152
152
  }),
153
153
  /* @__PURE__ */ c(a, {
154
154
  path: "creator-marketplace",
155
- element: /* @__PURE__ */ c(ee, {})
155
+ element: /* @__PURE__ */ c(ne, {})
156
156
  }),
157
157
  /* @__PURE__ */ c(a, {
158
158
  path: "resale",
159
- element: /* @__PURE__ */ c(P, {})
159
+ element: /* @__PURE__ */ c(M, {})
160
160
  }),
161
161
  /* @__PURE__ */ c(a, {
162
162
  path: "resale/listings/:listingId",
163
- element: /* @__PURE__ */ c(F, {})
163
+ element: /* @__PURE__ */ c(N, {})
164
164
  }),
165
165
  /* @__PURE__ */ c(a, {
166
166
  path: "resale/seller",
167
- element: /* @__PURE__ */ c(I, {})
167
+ element: /* @__PURE__ */ c(P, {})
168
168
  }),
169
169
  /* @__PURE__ */ c(a, {
170
170
  path: "resale/reports",
171
- element: /* @__PURE__ */ c(L, {})
171
+ element: /* @__PURE__ */ c(F, {})
172
172
  }),
173
173
  /* @__PURE__ */ c(a, {
174
174
  path: "resale/moderation",
175
+ element: /* @__PURE__ */ c(I, {})
176
+ }),
177
+ /* @__PURE__ */ c(a, {
178
+ path: "messages",
179
+ element: /* @__PURE__ */ c(L, {})
180
+ }),
181
+ /* @__PURE__ */ c(a, {
182
+ path: "try-at-home",
175
183
  element: /* @__PURE__ */ c(R, {})
176
184
  }),
185
+ /* @__PURE__ */ c(a, {
186
+ path: "ads",
187
+ element: /* @__PURE__ */ c(z, {})
188
+ }),
177
189
  /* @__PURE__ */ c(a, {
178
190
  path: "brand-orders",
179
- element: /* @__PURE__ */ c(B, {})
191
+ element: /* @__PURE__ */ c(V, {})
180
192
  }),
181
193
  /* @__PURE__ */ c(a, {
182
194
  path: "brand-orders/:brandId/:orderId",
183
- element: /* @__PURE__ */ c(V, {})
195
+ element: /* @__PURE__ */ c(H, {})
184
196
  }),
185
197
  /* @__PURE__ */ c(a, {
186
198
  path: "admin",
@@ -191,15 +203,15 @@ var u = r(() => import("./pages/brands/BrandsListPage.js").then((e) => ({ defaul
191
203
  }),
192
204
  /* @__PURE__ */ c(a, {
193
205
  path: "admin/brands",
194
- element: /* @__PURE__ */ c(G, {})
206
+ element: /* @__PURE__ */ c(K, {})
195
207
  }),
196
208
  /* @__PURE__ */ c(a, {
197
209
  path: "admin/collaborations",
198
- element: /* @__PURE__ */ c(K, {})
210
+ element: /* @__PURE__ */ c(q, {})
199
211
  }),
200
212
  /* @__PURE__ */ c(a, {
201
213
  path: "admin/featured-items",
202
- element: /* @__PURE__ */ c(q, {})
214
+ element: /* @__PURE__ */ c(J, {})
203
215
  }),
204
216
  /* @__PURE__ */ c(a, {
205
217
  path: "*",
@@ -212,4 +224,4 @@ var u = r(() => import("./pages/brands/BrandsListPage.js").then((e) => ({ defaul
212
224
  })
213
225
  });
214
226
  };
215
- export { Y as CoolAndLovelyRoutes };
227
+ export { X as CoolAndLovelyRoutes };