@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.
- package/dist/coolandlovely/CoolAndLovelyRoot.js +111 -87
- package/dist/coolandlovely/CoolAndLovelyRoutes.js +57 -45
- package/dist/coolandlovely/components/ImageUploadField.js +126 -89
- package/dist/coolandlovely/components/ResaleListingEditor.js +114 -68
- package/dist/coolandlovely/hooks/useDirectMessages.d.ts +83 -0
- package/dist/coolandlovely/hooks/useDirectMessages.js +152 -0
- package/dist/coolandlovely/hooks/useFulfilmentMonetizationApi.d.ts +288 -0
- package/dist/coolandlovely/hooks/useFulfilmentMonetizationApi.js +287 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.js +233 -134
- package/dist/coolandlovely/pages/commerce/BrandAdsPage.d.ts +7 -0
- package/dist/coolandlovely/pages/commerce/BrandAdsPage.js +264 -0
- package/dist/coolandlovely/pages/commerce/BrandOrdersPage.js +225 -156
- package/dist/coolandlovely/pages/commerce/CartPage.js +161 -136
- package/dist/coolandlovely/pages/commerce/CreatorEarningsPage.js +254 -137
- package/dist/coolandlovely/pages/commerce/OrdersPage.js +186 -131
- package/dist/coolandlovely/pages/commerce/TryAtHomePage.d.ts +8 -0
- package/dist/coolandlovely/pages/commerce/TryAtHomePage.js +336 -0
- package/dist/coolandlovely/pages/messages/DirectMessagesPage.d.ts +9 -0
- package/dist/coolandlovely/pages/messages/DirectMessagesPage.js +282 -0
- package/dist/coolandlovely/pages/profile/StyleProfilePage.js +10 -1
- package/dist/coolandlovely/pages/resale/ResaleListingPage.js +189 -79
- package/dist/coolandlovely/pages/resale/ResaleSellerPage.js +224 -105
- package/dist/coolandlovely/types/commerce.d.ts +1 -0
- 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,
|
|
11
|
-
import { jsx as
|
|
12
|
-
import { FeatureFlagProvider as
|
|
13
|
-
import { useFeatureFlag as
|
|
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
|
|
16
|
-
let { registerNavItems:
|
|
17
|
-
let n =
|
|
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
|
-
}, [
|
|
19
|
+
}, [P]), I = k("coolandlovely.admin.curation", !1);
|
|
20
20
|
c();
|
|
21
|
-
let
|
|
21
|
+
let L = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
|
|
22
22
|
return o(() => {
|
|
23
|
-
if (!
|
|
23
|
+
if (!j) return;
|
|
24
24
|
let e = [
|
|
25
25
|
{
|
|
26
26
|
id: "coolandlovely-overview",
|
|
27
|
-
label:
|
|
28
|
-
path:
|
|
29
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
36
|
-
path:
|
|
37
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
44
|
-
path:
|
|
45
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
52
|
-
path:
|
|
53
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
60
|
-
path:
|
|
61
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
68
|
-
path:
|
|
69
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
76
|
-
path:
|
|
77
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
84
|
-
path:
|
|
85
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
92
|
-
path:
|
|
93
|
-
icon: /* @__PURE__ */ w
|
|
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:
|
|
100
|
-
path:
|
|
101
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
108
|
-
path:
|
|
109
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
116
|
-
path:
|
|
117
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
124
|
-
path:
|
|
125
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
132
|
-
path:
|
|
133
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
140
|
-
path:
|
|
141
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
148
|
-
path:
|
|
149
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
156
|
-
path:
|
|
157
|
-
icon: /* @__PURE__ */
|
|
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
|
-
...
|
|
185
|
+
...I ? [
|
|
162
186
|
{
|
|
163
187
|
id: "coolandlovely-admin",
|
|
164
|
-
label:
|
|
165
|
-
path:
|
|
166
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
173
|
-
path:
|
|
174
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
181
|
-
path:
|
|
182
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
189
|
-
path:
|
|
190
|
-
icon: /* @__PURE__ */
|
|
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
|
|
220
|
+
return j(e);
|
|
197
221
|
}, [
|
|
198
|
-
k,
|
|
199
222
|
j,
|
|
200
223
|
N,
|
|
201
|
-
|
|
224
|
+
F,
|
|
225
|
+
I
|
|
202
226
|
]), o(() => {
|
|
203
|
-
if (!
|
|
227
|
+
if (!M) return;
|
|
204
228
|
let e = [{
|
|
205
229
|
id: "coolandlovely-status",
|
|
206
|
-
label:
|
|
230
|
+
label: F("coolandlovely.footer.ready", "CoolAndLovely"),
|
|
207
231
|
type: "status",
|
|
208
232
|
order: 10,
|
|
209
233
|
section: "left"
|
|
210
234
|
}];
|
|
211
|
-
return
|
|
212
|
-
}, [
|
|
213
|
-
workspaceId:
|
|
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__ */
|
|
217
|
-
...
|
|
218
|
-
children: [/* @__PURE__ */
|
|
240
|
+
children: /* @__PURE__ */ D(e, {
|
|
241
|
+
...A,
|
|
242
|
+
children: [/* @__PURE__ */ E(r, {}), /* @__PURE__ */ E(i, {})]
|
|
219
243
|
})
|
|
220
|
-
}) }, n(
|
|
244
|
+
}) }, n(A));
|
|
221
245
|
};
|
|
222
|
-
export {
|
|
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 }))),
|
|
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
|
-
}),
|
|
11
|
-
let { basePath: r, isStandalone:
|
|
12
|
-
return $ && !
|
|
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(
|
|
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(
|
|
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(
|
|
43
|
+
element: /* @__PURE__ */ c(te, {})
|
|
44
44
|
}),
|
|
45
45
|
/* @__PURE__ */ c(a, {
|
|
46
46
|
path: "collections/new",
|
|
47
|
-
element: /* @__PURE__ */ c(
|
|
47
|
+
element: /* @__PURE__ */ c(m, {})
|
|
48
48
|
}),
|
|
49
49
|
/* @__PURE__ */ c(a, {
|
|
50
50
|
path: "collections/:collectionId",
|
|
51
|
-
element: /* @__PURE__ */ c(
|
|
51
|
+
element: /* @__PURE__ */ c(p, {})
|
|
52
52
|
}),
|
|
53
53
|
/* @__PURE__ */ c(a, {
|
|
54
54
|
path: "collections/:collectionId/edit",
|
|
55
|
-
element: /* @__PURE__ */ c(
|
|
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(
|
|
63
|
+
element: /* @__PURE__ */ c(_, {})
|
|
64
64
|
}),
|
|
65
65
|
/* @__PURE__ */ c(a, {
|
|
66
66
|
path: "items/:itemId",
|
|
67
|
-
element: /* @__PURE__ */ c(
|
|
67
|
+
element: /* @__PURE__ */ c(g, {})
|
|
68
68
|
}),
|
|
69
69
|
/* @__PURE__ */ c(a, {
|
|
70
70
|
path: "items/:itemId/edit",
|
|
71
|
-
element: /* @__PURE__ */ c(
|
|
71
|
+
element: /* @__PURE__ */ c(_, {})
|
|
72
72
|
}),
|
|
73
73
|
/* @__PURE__ */ c(a, {
|
|
74
74
|
path: "looks",
|
|
75
|
-
element: /* @__PURE__ */ c(
|
|
75
|
+
element: /* @__PURE__ */ c(v, {})
|
|
76
76
|
}),
|
|
77
77
|
/* @__PURE__ */ c(a, {
|
|
78
78
|
path: "looks/new",
|
|
79
|
-
element: /* @__PURE__ */ c(
|
|
79
|
+
element: /* @__PURE__ */ c(b, {})
|
|
80
80
|
}),
|
|
81
81
|
/* @__PURE__ */ c(a, {
|
|
82
82
|
path: "looks/:lookId",
|
|
83
|
-
element: /* @__PURE__ */ c(
|
|
83
|
+
element: /* @__PURE__ */ c(y, {})
|
|
84
84
|
}),
|
|
85
85
|
/* @__PURE__ */ c(a, {
|
|
86
86
|
path: "collaborations",
|
|
87
|
-
element: /* @__PURE__ */ c(
|
|
87
|
+
element: /* @__PURE__ */ c(x, {})
|
|
88
88
|
}),
|
|
89
89
|
/* @__PURE__ */ c(a, {
|
|
90
90
|
path: "collaborations/new",
|
|
91
|
-
element: /* @__PURE__ */ c(
|
|
91
|
+
element: /* @__PURE__ */ c(C, {})
|
|
92
92
|
}),
|
|
93
93
|
/* @__PURE__ */ c(a, {
|
|
94
94
|
path: "collaborations/:collaborationId",
|
|
95
|
-
element: /* @__PURE__ */ c(
|
|
95
|
+
element: /* @__PURE__ */ c(S, {})
|
|
96
96
|
}),
|
|
97
97
|
/* @__PURE__ */ c(a, {
|
|
98
98
|
path: "collaborations/:collaborationId/edit",
|
|
99
|
-
element: /* @__PURE__ */ c(
|
|
99
|
+
element: /* @__PURE__ */ c(C, {})
|
|
100
100
|
}),
|
|
101
101
|
/* @__PURE__ */ c(a, {
|
|
102
102
|
path: "wardrobe",
|
|
103
|
-
element: /* @__PURE__ */ c(
|
|
103
|
+
element: /* @__PURE__ */ c(w, {})
|
|
104
104
|
}),
|
|
105
105
|
/* @__PURE__ */ c(a, {
|
|
106
106
|
path: "wardrobe/new",
|
|
107
|
-
element: /* @__PURE__ */ c(
|
|
107
|
+
element: /* @__PURE__ */ c(T, {})
|
|
108
108
|
}),
|
|
109
109
|
/* @__PURE__ */ c(a, {
|
|
110
110
|
path: "lookbooks",
|
|
111
|
-
element: /* @__PURE__ */ c(
|
|
111
|
+
element: /* @__PURE__ */ c(E, {})
|
|
112
112
|
}),
|
|
113
113
|
/* @__PURE__ */ c(a, {
|
|
114
114
|
path: "lookbooks/:lookbookId",
|
|
115
|
-
element: /* @__PURE__ */ c(
|
|
115
|
+
element: /* @__PURE__ */ c(D, {})
|
|
116
116
|
}),
|
|
117
117
|
/* @__PURE__ */ c(a, {
|
|
118
118
|
path: "profile",
|
|
119
|
-
element: /* @__PURE__ */ c(
|
|
119
|
+
element: /* @__PURE__ */ c(O, {})
|
|
120
120
|
}),
|
|
121
121
|
/* @__PURE__ */ c(a, {
|
|
122
122
|
path: "profile/:userId",
|
|
123
|
-
element: /* @__PURE__ */ c(
|
|
123
|
+
element: /* @__PURE__ */ c(O, {})
|
|
124
124
|
}),
|
|
125
125
|
/* @__PURE__ */ c(a, {
|
|
126
126
|
path: "discover",
|
|
127
|
-
element: /* @__PURE__ */ c(
|
|
127
|
+
element: /* @__PURE__ */ c(k, {})
|
|
128
128
|
}),
|
|
129
129
|
/* @__PURE__ */ c(a, {
|
|
130
130
|
path: "trends",
|
|
131
|
-
element: /* @__PURE__ */ c(
|
|
131
|
+
element: /* @__PURE__ */ c(A, {})
|
|
132
132
|
}),
|
|
133
133
|
/* @__PURE__ */ c(a, {
|
|
134
134
|
path: "journal",
|
|
135
|
-
element: /* @__PURE__ */ c(
|
|
135
|
+
element: /* @__PURE__ */ c(j, {}, `${Z ?? ""}:${re?.id ?? ""}`)
|
|
136
136
|
}),
|
|
137
137
|
/* @__PURE__ */ c(a, {
|
|
138
138
|
path: "cart",
|
|
139
|
-
element: /* @__PURE__ */ c(
|
|
139
|
+
element: /* @__PURE__ */ c(B, {})
|
|
140
140
|
}),
|
|
141
141
|
/* @__PURE__ */ c(a, {
|
|
142
142
|
path: "orders",
|
|
143
|
-
element: /* @__PURE__ */ c(
|
|
143
|
+
element: /* @__PURE__ */ c(U, {})
|
|
144
144
|
}),
|
|
145
145
|
/* @__PURE__ */ c(a, {
|
|
146
146
|
path: "orders/:orderId",
|
|
147
|
-
element: /* @__PURE__ */ c(
|
|
147
|
+
element: /* @__PURE__ */ c(W, {})
|
|
148
148
|
}),
|
|
149
149
|
/* @__PURE__ */ c(a, {
|
|
150
150
|
path: "earnings",
|
|
151
|
-
element: /* @__PURE__ */ c(
|
|
151
|
+
element: /* @__PURE__ */ c(G, {})
|
|
152
152
|
}),
|
|
153
153
|
/* @__PURE__ */ c(a, {
|
|
154
154
|
path: "creator-marketplace",
|
|
155
|
-
element: /* @__PURE__ */ c(
|
|
155
|
+
element: /* @__PURE__ */ c(ne, {})
|
|
156
156
|
}),
|
|
157
157
|
/* @__PURE__ */ c(a, {
|
|
158
158
|
path: "resale",
|
|
159
|
-
element: /* @__PURE__ */ c(
|
|
159
|
+
element: /* @__PURE__ */ c(M, {})
|
|
160
160
|
}),
|
|
161
161
|
/* @__PURE__ */ c(a, {
|
|
162
162
|
path: "resale/listings/:listingId",
|
|
163
|
-
element: /* @__PURE__ */ c(
|
|
163
|
+
element: /* @__PURE__ */ c(N, {})
|
|
164
164
|
}),
|
|
165
165
|
/* @__PURE__ */ c(a, {
|
|
166
166
|
path: "resale/seller",
|
|
167
|
-
element: /* @__PURE__ */ c(
|
|
167
|
+
element: /* @__PURE__ */ c(P, {})
|
|
168
168
|
}),
|
|
169
169
|
/* @__PURE__ */ c(a, {
|
|
170
170
|
path: "resale/reports",
|
|
171
|
-
element: /* @__PURE__ */ c(
|
|
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(
|
|
191
|
+
element: /* @__PURE__ */ c(V, {})
|
|
180
192
|
}),
|
|
181
193
|
/* @__PURE__ */ c(a, {
|
|
182
194
|
path: "brand-orders/:brandId/:orderId",
|
|
183
|
-
element: /* @__PURE__ */ c(
|
|
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(
|
|
206
|
+
element: /* @__PURE__ */ c(K, {})
|
|
195
207
|
}),
|
|
196
208
|
/* @__PURE__ */ c(a, {
|
|
197
209
|
path: "admin/collaborations",
|
|
198
|
-
element: /* @__PURE__ */ c(
|
|
210
|
+
element: /* @__PURE__ */ c(q, {})
|
|
199
211
|
}),
|
|
200
212
|
/* @__PURE__ */ c(a, {
|
|
201
213
|
path: "admin/featured-items",
|
|
202
|
-
element: /* @__PURE__ */ c(
|
|
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 {
|
|
227
|
+
export { X as CoolAndLovelyRoutes };
|