@burdenoff/microfe-coolandlovely 2026.1109.10 → 2026.1110.2

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 (147) hide show
  1. package/dist/coolandlovely/CoolAndLovelyRoot.js +1 -2
  2. package/dist/coolandlovely/CoolAndLovelyRoutes.js +10 -7
  3. package/dist/coolandlovely/api/creatorMarketplaceRequest.js +9 -10
  4. package/dist/coolandlovely/api/resaleTransport.js +1 -2
  5. package/dist/coolandlovely/components/ActivityTrail.js +11 -12
  6. package/dist/coolandlovely/components/ActorName.js +6 -7
  7. package/dist/coolandlovely/components/AddToCartPanel.js +10 -11
  8. package/dist/coolandlovely/components/AddToLookbookButton.js +5 -6
  9. package/dist/coolandlovely/components/BrandCard.js +9 -10
  10. package/dist/coolandlovely/components/BrandCover.js +6 -7
  11. package/dist/coolandlovely/components/BrandCreatorAvatars.js +18 -19
  12. package/dist/coolandlovely/components/CollaborationFeeCard.js +11 -12
  13. package/dist/coolandlovely/components/CollectionCard.js +7 -8
  14. package/dist/coolandlovely/components/ColourSwatchRow.js +1 -2
  15. package/dist/coolandlovely/components/Comments.js +12 -13
  16. package/dist/coolandlovely/components/EmptyState.js +1 -2
  17. package/dist/coolandlovely/components/FeedbackWidget.js +15 -16
  18. package/dist/coolandlovely/components/Field.js +1 -2
  19. package/dist/coolandlovely/components/FileImage.js +5 -6
  20. package/dist/coolandlovely/components/FollowButton.js +6 -7
  21. package/dist/coolandlovely/components/FulfilmentTimeline.js +28 -29
  22. package/dist/coolandlovely/components/ImageUploadField.js +9 -10
  23. package/dist/coolandlovely/components/LookCard.js +37 -38
  24. package/dist/coolandlovely/components/LookbookCard.js +9 -10
  25. package/dist/coolandlovely/components/MetricsCard.js +6 -7
  26. package/dist/coolandlovely/components/PageLayout.js +6 -5
  27. package/dist/coolandlovely/components/PayForOrder.js +3 -4
  28. package/dist/coolandlovely/components/RefundPanel.js +10 -11
  29. package/dist/coolandlovely/components/ResaleListingActions.js +1 -2
  30. package/dist/coolandlovely/components/ResaleListingEditor.js +1 -2
  31. package/dist/coolandlovely/components/ResalePhotoPicker.js +8 -9
  32. package/dist/coolandlovely/components/ResalePhotoUpload.js +16 -17
  33. package/dist/coolandlovely/components/ReturnRequests.js +35 -36
  34. package/dist/coolandlovely/components/ShopItemCard.js +7 -8
  35. package/dist/coolandlovely/components/StateViews.js +1 -2
  36. package/dist/coolandlovely/components/StatusBadge.js +1 -2
  37. package/dist/coolandlovely/components/StepTracker.js +1 -2
  38. package/dist/coolandlovely/components/StockEditor.js +1 -2
  39. package/dist/coolandlovely/components/StoreListingCard.js +7 -8
  40. package/dist/coolandlovely/components/TagList.js +1 -2
  41. package/dist/coolandlovely/components/Thumbnail.js +1 -2
  42. package/dist/coolandlovely/components/VisibilityChip.js +2 -3
  43. package/dist/coolandlovely/components/WardrobeItemCard.js +7 -8
  44. package/dist/coolandlovely/components/index.js +9 -10
  45. package/dist/coolandlovely/components/prices/BestPriceBadge.js +1 -2
  46. package/dist/coolandlovely/components/prices/LookbookPriceBoard.js +17 -18
  47. package/dist/coolandlovely/components/prices/PriceComparison.js +2 -3
  48. package/dist/coolandlovely/components/prices/PriceCurrencySelect.js +1 -2
  49. package/dist/coolandlovely/components/prices/PricePanel.js +1 -2
  50. package/dist/coolandlovely/components/prices/PriceWatchDisclosure.js +1 -2
  51. package/dist/coolandlovely/components/prices/PriceWatchForm.js +12 -13
  52. package/dist/coolandlovely/components/prices/PriceWatches.js +1 -2
  53. package/dist/coolandlovely/components/prices/RetailerOfferLink.js +1 -2
  54. package/dist/coolandlovely/components/prices/money.js +1 -2
  55. package/dist/coolandlovely/context/CoolAndLovelyContext.js +1 -2
  56. package/dist/coolandlovely/context/QueryScope.js +2 -3
  57. package/dist/coolandlovely/context/index.js +1 -2
  58. package/dist/coolandlovely/context/queryScopeKey.js +1 -2
  59. package/dist/coolandlovely/hooks/contextNavigationTarget.js +1 -2
  60. package/dist/coolandlovely/hooks/useActivity.js +1 -2
  61. package/dist/coolandlovely/hooks/useAssistantEntity.js +2 -3
  62. package/dist/coolandlovely/hooks/useBrandOrdersApi.js +62 -63
  63. package/dist/coolandlovely/hooks/useCatalogImport.js +5 -4
  64. package/dist/coolandlovely/hooks/useComments.js +1 -2
  65. package/dist/coolandlovely/hooks/useCommerceApi.js +5 -6
  66. package/dist/coolandlovely/hooks/useContextNavigation.js +1 -2
  67. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js +1 -2
  68. package/dist/coolandlovely/hooks/useCreatorAnalytics.d.ts +1 -2
  69. package/dist/coolandlovely/hooks/useCreatorAnalytics.js +4 -5
  70. package/dist/coolandlovely/hooks/useCreatorMarketplace.d.ts +28 -40
  71. package/dist/coolandlovely/hooks/useCreatorMarketplace.js +26 -27
  72. package/dist/coolandlovely/hooks/useEditorialApi.js +1 -2
  73. package/dist/coolandlovely/hooks/useFiles.js +2 -3
  74. package/dist/coolandlovely/hooks/useInventoryApi.js +1 -2
  75. package/dist/coolandlovely/hooks/usePriceApi.d.ts +8 -15
  76. package/dist/coolandlovely/hooks/usePriceApi.js +42 -43
  77. package/dist/coolandlovely/hooks/useResale.js +28 -29
  78. package/dist/coolandlovely/hooks/useResaleModeration.d.ts +22 -0
  79. package/dist/coolandlovely/hooks/useResaleModeration.js +79 -0
  80. package/dist/coolandlovely/hooks/useTr.js +1 -2
  81. package/dist/coolandlovely/index.js +3 -3
  82. package/dist/coolandlovely/pages/HomePage.js +26 -27
  83. package/dist/coolandlovely/pages/admin/AdminBrandsPage.js +28 -29
  84. package/dist/coolandlovely/pages/admin/AdminCollaborationsPage.js +37 -38
  85. package/dist/coolandlovely/pages/admin/AdminFeaturedItemsPage.js +43 -44
  86. package/dist/coolandlovely/pages/brands/BrandDetailPage.js +45 -46
  87. package/dist/coolandlovely/pages/brands/BrandFormPage.js +26 -27
  88. package/dist/coolandlovely/pages/brands/BrandsListPage.js +16 -17
  89. package/dist/coolandlovely/pages/brands/ImportCatalogPage.js +25 -26
  90. package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.js +26 -27
  91. package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.js +44 -51
  92. package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.js +21 -22
  93. package/dist/coolandlovely/pages/collections/CollectionDetailPage.js +28 -29
  94. package/dist/coolandlovely/pages/collections/CollectionFormPage.js +28 -29
  95. package/dist/coolandlovely/pages/collections/CollectionsListPage.js +12 -13
  96. package/dist/coolandlovely/pages/commerce/BrandOrdersPage.js +117 -118
  97. package/dist/coolandlovely/pages/commerce/CartPage.js +28 -29
  98. package/dist/coolandlovely/pages/commerce/CreatorAnalyticsSection.js +11 -12
  99. package/dist/coolandlovely/pages/commerce/CreatorEarningsPage.js +43 -44
  100. package/dist/coolandlovely/pages/commerce/OrdersPage.js +84 -85
  101. package/dist/coolandlovely/pages/discover/DiscoverPage.js +196 -197
  102. package/dist/coolandlovely/pages/editorial/EditorialPage.js +2 -3
  103. package/dist/coolandlovely/pages/items/StoreListedPieceView.js +90 -91
  104. package/dist/coolandlovely/pages/items/StyleItemDetailPage.js +26 -27
  105. package/dist/coolandlovely/pages/items/StyleItemFormPage.js +45 -46
  106. package/dist/coolandlovely/pages/items/StyleItemsListPage.js +26 -27
  107. package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.js +16 -17
  108. package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.js +24 -29
  109. package/dist/coolandlovely/pages/looks/LookDetailPage.js +50 -51
  110. package/dist/coolandlovely/pages/looks/LookFormPage.js +80 -81
  111. package/dist/coolandlovely/pages/looks/LooksListPage.js +18 -19
  112. package/dist/coolandlovely/pages/marketplace/CreatorMarketplacePage.js +139 -139
  113. package/dist/coolandlovely/pages/profile/StyleProfilePage.js +228 -229
  114. package/dist/coolandlovely/pages/resale/ResaleBrowsePage.js +92 -85
  115. package/dist/coolandlovely/pages/resale/ResaleListingPage.js +20 -27
  116. package/dist/coolandlovely/pages/resale/ResaleModerationPage.d.ts +1 -0
  117. package/dist/coolandlovely/pages/resale/ResaleModerationPage.js +425 -0
  118. package/dist/coolandlovely/pages/resale/ResaleReportsPage.js +11 -12
  119. package/dist/coolandlovely/pages/resale/ResaleSellerPage.js +57 -64
  120. package/dist/coolandlovely/pages/trends/TrendsPage.js +52 -53
  121. package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.js +28 -29
  122. package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js +31 -32
  123. package/dist/coolandlovely/store/coolandlovelyStore.d.ts +1 -1
  124. package/dist/coolandlovely/store/coolandlovelyStore.js +1 -2
  125. package/dist/coolandlovely/store/index.js +1 -2
  126. package/dist/coolandlovely/utils/cn.js +1 -2
  127. package/dist/coolandlovely/utils/formatters.js +1 -2
  128. package/dist/coolandlovely/utils/icons.js +1 -2
  129. package/dist/coolandlovely/utils/index.js +1 -2
  130. package/dist/coolandlovely/utils/navigation.js +1 -2
  131. package/dist/coolandlovely/utils/paymentProviders.js +1 -2
  132. package/dist/coolandlovely/utils/resaleCreateIntent.js +1 -2
  133. package/dist/coolandlovely/utils/resalePhotoUpload.js +2 -3
  134. package/dist/coolandlovely/utils/resalePhotoUploadIntent.js +3 -4
  135. package/dist/coolandlovely/utils/resalePresentation.js +1 -2
  136. package/dist/coolandlovely/utils/sparkline.js +0 -1
  137. package/dist/generated/global-operations.d.ts +4 -1
  138. package/dist/generated/global-types.d.ts +2 -21
  139. package/dist/generated/wspace-operations.d.ts +261 -297
  140. package/dist/generated/wspace-operations.js +12 -13
  141. package/dist/generated/wspace-types.d.ts +4 -23
  142. package/dist/generated/wspace-types.js +1 -2
  143. package/dist/node_modules/clsx/dist/clsx.js +7 -6
  144. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +4 -21
  145. package/dist/services/createSandboxAssistantTransport.js +1 -2
  146. package/dist/utils/pageContext.js +2 -3
  147. package/package.json +86 -55
@@ -1,11 +1,11 @@
1
1
  import { useTr as e } from "../hooks/useTr.js";
2
- import "../hooks/index.js";
3
2
  import { formatPrice as t } from "../utils/formatters.js";
4
3
  import { loadStripe as n, openRazorpayCheckout as r } from "../utils/paymentProviders.js";
4
+ import "../hooks/index.js";
5
5
  import { useEffect as i, useRef as a, useState as o } from "react";
6
6
  import { CreditCard as s, Loader2 as c, Lock as l } from "lucide-react";
7
7
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
8
- //#region src/coolandlovely/components/PayForOrder.tsx
8
+ // src/coolandlovely/components/PayForOrder.tsx
9
9
  var f = "inline-flex items-center justify-center gap-2 rounded-lg bg-action-primary-bg px-4 py-2.5 text-sm font-semibold text-action-primary-text transition-colors hover:bg-action-primary-bg/90 disabled:opacity-50";
10
10
  function p(e) {
11
11
  return window.getComputedStyle(document.documentElement).getPropertyValue(e).trim() || void 0;
@@ -37,7 +37,7 @@ var m = ({ checkout: r, onSettle: s, publishableKey: m, clientSecret: h }) => {
37
37
  }, [m]);
38
38
  let O = async () => {
39
39
  let e = v.current, t = y.current;
40
- if (!(!e || !t)) {
40
+ if (e && t) {
41
41
  T(!0), D(null);
42
42
  try {
43
43
  let n = await e.confirmCardPayment(h, { payment_method: { card: t } });
@@ -112,5 +112,4 @@ var m = ({ checkout: r, onSettle: s, publishableKey: m, clientSecret: h }) => {
112
112
  children: l ?? p("coolandlovely.checkout.providerUnavailable", "Online payment is not available for this order right now. Your order is saved — try again from My Orders.")
113
113
  });
114
114
  };
115
- //#endregion
116
115
  export { h as PayForOrder };
@@ -1,14 +1,14 @@
1
- import { cn as e } from "../utils/cn.js";
2
- import { useTr as t } from "../hooks/useTr.js";
3
1
  import "../hooks/index.js";
4
- import { StatusBadge as n } from "./StatusBadge.js";
2
+ import { useTr as e } from "../hooks/useTr.js";
3
+ import { useRefundBrandOrder as t } from "../hooks/useBrandOrdersApi.js";
4
+ import { cn as n } from "../utils/cn.js";
5
5
  import { formatDate as r, formatPrice as i } from "../utils/formatters.js";
6
6
  import { TextAreaField as a, ToggleField as o } from "./Field.js";
7
- import { useRefundBrandOrder as s } from "../hooks/useBrandOrdersApi.js";
7
+ import { StatusBadge as s } from "./StatusBadge.js";
8
8
  import { useState as c } from "react";
9
9
  import { Loader2 as l, PackagePlus as u, RotateCcw as d } from "lucide-react";
10
10
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
11
- //#region src/coolandlovely/components/RefundPanel.tsx
11
+ // src/coolandlovely/components/RefundPanel.tsx
12
12
  var m = 3, h = 1e3, g = "inline-flex w-full items-center justify-center gap-2 rounded-lg border border-status-error-text px-4 py-2.5 text-sm font-semibold text-status-error-text transition-colors hover:bg-status-error-bg-subtle disabled:opacity-50", _ = "inline-flex w-full items-center justify-center gap-1.5 rounded-lg border border-border-seam px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken disabled:opacity-50";
13
13
  function v(e) {
14
14
  let t = e.refund?.status;
@@ -20,8 +20,8 @@ function y(e) {
20
20
  function b(e) {
21
21
  return e.refund?.status === "COMPLETED" && e.refund.restockStatus === "NONE" && y(e) > 0;
22
22
  }
23
- function x({ order: e }) {
24
- let n = t(), i = e.refund;
23
+ function x({ order: t }) {
24
+ let n = e(), i = t.refund;
25
25
  return !i || i.restockStatus === "NONE" ? null : i.restockStatus === "RESTOCKED" ? /* @__PURE__ */ f("p", {
26
26
  className: "text-xs text-status-success-text",
27
27
  "data-testid": "brand-refund-restock-status",
@@ -40,7 +40,7 @@ function x({ order: e }) {
40
40
  });
41
41
  }
42
42
  function S({ order: S }) {
43
- let C = t(), w = s(), [T, E] = c(!1), [D, O] = c(""), [k, A] = c(!1), j = S.refund, M = y(S), N = D.trim(), P = N.length >= m && N.length <= h;
43
+ let C = e(), w = t(), [T, E] = c(!1), [D, O] = c(""), [k, A] = c(!1), j = S.refund, M = y(S), N = D.trim(), P = N.length >= m && N.length <= h;
44
44
  return /* @__PURE__ */ p("div", {
45
45
  className: "space-y-3 border-t border-border-seam pt-4",
46
46
  "data-testid": "brand-refund-panel",
@@ -55,7 +55,7 @@ function S({ order: S }) {
55
55
  children: C("coolandlovely.refund.label", "Refund")
56
56
  }), /* @__PURE__ */ f("span", {
57
57
  "data-testid": "brand-refund-status",
58
- children: /* @__PURE__ */ f(n, { status: j.status })
58
+ children: /* @__PURE__ */ f(s, { status: j.status })
59
59
  })]
60
60
  }),
61
61
  /* @__PURE__ */ p("div", {
@@ -166,12 +166,11 @@ function S({ order: S }) {
166
166
  }) : /* @__PURE__ */ p("button", {
167
167
  type: "button",
168
168
  onClick: () => E(!0),
169
- className: e(_),
169
+ className: n(_),
170
170
  "data-testid": "brand-refund-open",
171
171
  children: [/* @__PURE__ */ f(d, { className: "h-4 w-4" }), j?.status === "FAILED" ? C("coolandlovely.refund.retry", "Retry refund") : C("coolandlovely.refund.start", "Refund this order")]
172
172
  }))
173
173
  ]
174
174
  });
175
175
  }
176
- //#endregion
177
176
  export { S as RefundPanel, v as canRefund, b as canRestockLater, y as restockableUnits };
@@ -5,7 +5,7 @@ import { ResaleListingEditor as a } from "./ResaleListingEditor.js";
5
5
  import { useEffect as o, useState as s } from "react";
6
6
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
7
  import { Button as u } from "@burdenoff/fe-libs/ui";
8
- //#region src/coolandlovely/components/ResaleListingActions.tsx
8
+ // src/coolandlovely/components/ResaleListingActions.tsx
9
9
  function d({ listing: d, shopApproved: f, onRefresh: p, onEditingChange: m }) {
10
10
  let h = e(), [g, _] = s(null);
11
11
  o(() => () => m?.(d.id, !1), [d.id, m]);
@@ -126,5 +126,4 @@ function d({ listing: d, shopApproved: f, onRefresh: p, onEditingChange: m }) {
126
126
  ]
127
127
  });
128
128
  }
129
- //#endregion
130
129
  export { d as ResaleListingActions };
@@ -7,7 +7,7 @@ import { ResalePhotoPicker as te } from "./ResalePhotoPicker.js";
7
7
  import { useEffect as ne, useRef as re, useState as p } from "react";
8
8
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
9
9
  import { Button as g } from "@burdenoff/fe-libs/ui";
10
- //#region src/coolandlovely/components/ResaleListingEditor.tsx
10
+ // src/coolandlovely/components/ResaleListingEditor.tsx
11
11
  var _ = "w-full rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-text-primary";
12
12
  function v({ listing: v, onClose: y, changed: b = !1 }) {
13
13
  let x = e(), { key: S } = ee(), C = f(S), [w, T] = p(v?.title ?? ""), [E, D] = p(v?.description ?? ""), [O, k] = p(v?.size ?? ""), [A, j] = p(v?.category ?? "TOPS"), [M, N] = p(v?.condition ?? "GOOD"), [P, F] = p(v?.currency ?? "USD"), [I, L] = p(v ? s(v.priceMinor, v.currency) : ""), [R, z] = p(v?.photoFileIds ?? []), [B, V] = p(null), [H, U] = p(!1), W = re(!1), [G, K] = p(!1), [q, J] = p(null), [Y, ie] = p(!v), X = q?.phase === "dispatched", Z = v?.id;
@@ -270,5 +270,4 @@ function v({ listing: v, onClose: y, changed: b = !1 }) {
270
270
  ]
271
271
  });
272
272
  }
273
- //#endregion
274
273
  export { v as ResaleListingEditor };
@@ -1,12 +1,12 @@
1
1
  import { useTr as e } from "../hooks/useTr.js";
2
- import { refreshResaleRead as t, useResaleOwnedPhotos as n } from "../hooks/useResale.js";
3
- import { ResalePhotoUpload as r } from "./ResalePhotoUpload.js";
2
+ import { ResalePhotoUpload as t } from "./ResalePhotoUpload.js";
3
+ import { refreshResaleRead as n, useResaleOwnedPhotos as r } from "../hooks/useResale.js";
4
4
  import { useState as i } from "react";
5
5
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
6
  import { Button as s, Pagination as c } from "@burdenoff/fe-libs/ui";
7
- //#region src/coolandlovely/components/ResalePhotoPicker.tsx
7
+ // src/coolandlovely/components/ResalePhotoPicker.tsx
8
8
  function l({ selected: l, onChange: u, disabled: d }) {
9
- let f = e(), [p, m] = i(0), [h, g] = i(0), [_, v] = i([]), y = new Set(l), b = n(p, h, _.at(-1)?.id), x = (b.data?.getFoldersInFolder.folders ?? []).filter((e) => e.workspaceId === b.workspaceId && e.status === "ACTIVE" && e.canRead === !0), S = (b.data?.getFiles.files ?? []).filter((e) => {
9
+ let f = e(), [p, m] = i(0), [h, g] = i(0), [_, v] = i([]), y = new Set(l), b = r(p, h, _.at(-1)?.id), x = (b.data?.getFoldersInFolder.folders ?? []).filter((e) => e.workspaceId === b.workspaceId && e.status === "ACTIVE" && e.canRead === !0), S = (b.data?.getFiles.files ?? []).filter((e) => {
10
10
  if (e.workspaceId !== b.workspaceId || e.uploadedById !== b.actorId || e.status !== "ACTIVE" || e.visibility !== "PUBLIC" || e.canRead !== !0 || ![
11
11
  "image/jpeg",
12
12
  "image/png",
@@ -32,13 +32,13 @@ function l({ selected: l, onChange: u, disabled: d }) {
32
32
  className: "text-sm text-text-secondary",
33
33
  children: f("coolandlovely.resale.editor.publicPhotoNotice", "Choose photos you uploaded as PUBLIC in Files for this workspace. Public photos can be viewed without signing in. Private files are never made public by this form.")
34
34
  }),
35
- /* @__PURE__ */ a(r, {
35
+ /* @__PURE__ */ a(t, {
36
36
  disabled: d,
37
37
  canAdd: l.length < 10,
38
38
  onUploaded: (e) => {
39
39
  v([]), m(0), g(0), u((t) => t.includes(e) || t.length >= 10 ? t : [...t, e]);
40
40
  },
41
- onSettled: () => t(b.refetch)
41
+ onSettled: () => n(b.refetch)
42
42
  }),
43
43
  /* @__PURE__ */ o("nav", {
44
44
  "aria-label": "Photo folders",
@@ -89,7 +89,7 @@ function l({ selected: l, onChange: u, disabled: d }) {
89
89
  type: "button",
90
90
  variant: "outline",
91
91
  disabled: b.isFetching,
92
- onClick: () => void t(b.refetch),
92
+ onClick: () => void n(b.refetch),
93
93
  children: f("coolandlovely.resale.editor.refreshPhotoLibrary", "Refresh photo library")
94
94
  }),
95
95
  l.length > 0 && /* @__PURE__ */ a(s, {
@@ -110,7 +110,7 @@ function l({ selected: l, onChange: u, disabled: d }) {
110
110
  /* @__PURE__ */ a(s, {
111
111
  type: "button",
112
112
  variant: "outline",
113
- onClick: () => void t(b.refetch),
113
+ onClick: () => void n(b.refetch),
114
114
  children: f("coolandlovely.resale.editor.refreshPhotos", "Refresh photos")
115
115
  })
116
116
  ]
@@ -156,5 +156,4 @@ function l({ selected: l, onChange: u, disabled: d }) {
156
156
  ]
157
157
  });
158
158
  }
159
- //#endregion
160
159
  export { l as ResalePhotoPicker };
@@ -1,16 +1,16 @@
1
1
  import { useCoolAndLovely as e } from "../context/CoolAndLovelyContext.js";
2
2
  import "../context/index.js";
3
- import { useTr as t } from "../hooks/useTr.js";
3
+ import { createResalePhotoUpload as t } from "../utils/resalePhotoUpload.js";
4
4
  import { readResalePhotoUpload as n, resalePhotoUploadKey as r } from "../utils/resalePhotoUploadIntent.js";
5
- import { createResalePhotoUpload as i } from "../utils/resalePhotoUpload.js";
5
+ import { useTr as i } from "../hooks/useTr.js";
6
6
  import { useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
7
7
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
8
8
  import { Button as f } from "@burdenoff/fe-libs/ui";
9
9
  import { clearGraphqlFetchResponseCache as p } from "@burdenoff/fe-libs/shared/graphql/fetch";
10
10
  import { createPinnedFilesPort as m } from "@burdenoff/fe-libs/storage";
11
- //#region src/coolandlovely/components/ResalePhotoUpload.tsx
11
+ // src/coolandlovely/components/ResalePhotoUpload.tsx
12
12
  function h({ disabled: h, canAdd: g = !0, onUploaded: _, onSettled: v }) {
13
- let y = t(), b = e(), { apiGatewayUrl: x, authToken: S, workspaceId: C, organizationId: w, tenantId: T, projectId: E } = b, D = b.currentUser?.id, O = o(() => {
13
+ let y = i(), b = e(), { apiGatewayUrl: x, authToken: S, workspaceId: C, organizationId: w, tenantId: T, projectId: E } = b, D = b.currentUser?.id, O = o(() => {
14
14
  if (!x || !S || !C || !D) return null;
15
15
  let e = {
16
16
  apiGatewayUrl: x,
@@ -55,35 +55,35 @@ function h({ disabled: h, canAdd: g = !0, onUploaded: _, onSettled: v }) {
55
55
  z(!0);
56
56
  return;
57
57
  }
58
- let t = O.controller.signal;
58
+ let r = O.controller.signal;
59
59
  F(!0), z(!1);
60
60
  try {
61
61
  await navigator.locks.request(O.key, {
62
62
  mode: "exclusive",
63
63
  ifAvailable: !0
64
64
  }, async (n) => {
65
- if (!n || t.aborted) throw Error("The upload is busy or its context changed.");
66
- let r = i({
65
+ if (!n || r.aborted) throw Error("The upload is busy or its context changed.");
66
+ let i = t({
67
67
  storage: localStorage,
68
68
  key: O.key,
69
- port: m(O.scope, { signal: t }),
70
- signal: t
69
+ port: m(O.scope, { signal: r }),
70
+ signal: r
71
71
  }), a;
72
72
  if (e === "upload") {
73
73
  if (!A || !M) throw Error("Select a photo and confirm public visibility.");
74
- a = await r.upload(A);
75
- } else a = e === "stop" ? await r.stop() : e === "dismiss" ? r.dismissUnstarted() : await r.reconcile();
76
- t.aborted || (V(a.status), a.status === "complete" && (_(a.fileId), j(null), k.current && (k.current.value = ""), N(!1)));
74
+ a = await i.upload(A);
75
+ } else a = e === "stop" ? await i.stop() : e === "dismiss" ? i.dismissUnstarted() : await i.reconcile();
76
+ r.aborted || (V(a.status), a.status === "complete" && (_(a.fileId), j(null), k.current && (k.current.value = ""), N(!1)));
77
77
  });
78
78
  } catch {
79
- t.aborted || z(!0);
79
+ r.aborted || z(!0);
80
80
  } finally {
81
- if (p(), !t.aborted) try {
81
+ if (p(), !r.aborted) try {
82
82
  L(n(localStorage, O.key)), await v();
83
83
  } catch {
84
- t.aborted || z(!0);
84
+ r.aborted || z(!0);
85
85
  } finally {
86
- t.aborted || F(!1);
86
+ r.aborted || F(!1);
87
87
  }
88
88
  }
89
89
  };
@@ -174,5 +174,4 @@ function h({ disabled: h, canAdd: g = !0, onUploaded: _, onSettled: v }) {
174
174
  ]
175
175
  });
176
176
  }
177
- //#endregion
178
177
  export { h as ResalePhotoUpload };
@@ -1,15 +1,15 @@
1
1
  import { useTr as e } from "../hooks/useTr.js";
2
2
  import "../hooks/index.js";
3
- import { StatusBadge as t } from "./StatusBadge.js";
4
- import { formatDate as n } from "../utils/formatters.js";
5
- import { TextAreaField as r } from "./Field.js";
6
- import { useRequestReturn as i } from "../hooks/useCommerceApi.js";
7
- import { useApproveReturnRequest as a, useDeclineReturnRequest as o } from "../hooks/useBrandOrdersApi.js";
3
+ import { useApproveReturnRequest as t, useDeclineReturnRequest as n } from "../hooks/useBrandOrdersApi.js";
4
+ import { useRequestReturn as r } from "../hooks/useCommerceApi.js";
5
+ import { formatDate as i } from "../utils/formatters.js";
6
+ import { TextAreaField as a } from "./Field.js";
7
+ import { StatusBadge as o } from "./StatusBadge.js";
8
8
  import { useState as s } from "react";
9
9
  import { CheckCircle2 as c, Loader2 as l, Undo2 as u, XCircle as d } from "lucide-react";
10
10
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
11
11
  import { GlassCard as m } from "@burdenoff/fe-libs/ui";
12
- //#region src/coolandlovely/components/ReturnRequests.tsx
12
+ // src/coolandlovely/components/ReturnRequests.tsx
13
13
  var h = 3, g = 1e3, _ = ["PAID", "PARTIALLY_REFUNDED"], v = (e) => {
14
14
  let t = e.trim();
15
15
  return t.length >= h && t.length <= g;
@@ -23,29 +23,29 @@ function S(e, t, n = Date.now()) {
23
23
  return r && (r.status === "COMPLETED" || r.status === "PENDING") ? !1 : x(e, n);
24
24
  }
25
25
  function C({ request: t }) {
26
- let r = e();
26
+ let n = e();
27
27
  return /* @__PURE__ */ p("div", {
28
28
  className: "space-y-1 text-xs text-text-secondary",
29
29
  children: [
30
- /* @__PURE__ */ f("p", { children: r("coolandlovely.returns.reasonShown", "Reason: {{reason}}", { reason: t.reason }) }),
31
- t.status === "REQUESTED" && /* @__PURE__ */ f("p", { children: r("coolandlovely.returns.awaitingBrand", "Asked {{date}}. The brand will approve or decline it.", { date: n(t.createdAt) }) }),
30
+ /* @__PURE__ */ f("p", { children: n("coolandlovely.returns.reasonShown", "Reason: {{reason}}", { reason: t.reason }) }),
31
+ t.status === "REQUESTED" && /* @__PURE__ */ f("p", { children: n("coolandlovely.returns.awaitingBrand", "Asked {{date}}. The brand will approve or decline it.", { date: i(t.createdAt) }) }),
32
32
  t.status !== "REQUESTED" && t.decisionNote && /* @__PURE__ */ f("p", {
33
33
  "data-testid": "return-decision-note",
34
- children: r("coolandlovely.returns.brandNote", "Brand’s note: {{note}}", { note: t.decisionNote })
34
+ children: n("coolandlovely.returns.brandNote", "Brand’s note: {{note}}", { note: t.decisionNote })
35
35
  }),
36
- t.status !== "REQUESTED" && t.decidedAt && /* @__PURE__ */ f("p", { children: t.status === "APPROVED" ? r("coolandlovely.returns.approvedOn", "Approved {{date}}. The pieces were refunded.", { date: n(t.decidedAt) }) : r("coolandlovely.returns.declinedOn", "Declined {{date}}.", { date: n(t.decidedAt) }) })
36
+ t.status !== "REQUESTED" && t.decidedAt && /* @__PURE__ */ f("p", { children: t.status === "APPROVED" ? n("coolandlovely.returns.approvedOn", "Approved {{date}}. The pieces were refunded.", { date: i(t.decidedAt) }) : n("coolandlovely.returns.declinedOn", "Declined {{date}}.", { date: i(t.decidedAt) }) })
37
37
  ]
38
38
  });
39
39
  }
40
40
  function w({ orderId: t, brandId: n }) {
41
- let a = e(), o = i(), [c, d] = s(!1), [m, h] = s("");
41
+ let i = e(), o = r(), [c, d] = s(!1), [m, h] = s("");
42
42
  return c ? /* @__PURE__ */ p("div", {
43
43
  className: "space-y-2",
44
44
  children: [
45
- /* @__PURE__ */ f(r, {
45
+ /* @__PURE__ */ f(a, {
46
46
  id: `coo-return-reason-${n}`,
47
- label: a("coolandlovely.returns.reason", "Why are you returning these pieces?"),
48
- hint: a("coolandlovely.returns.reasonHint", "Shown to the brand."),
47
+ label: i("coolandlovely.returns.reason", "Why are you returning these pieces?"),
48
+ hint: i("coolandlovely.returns.reasonHint", "Shown to the brand."),
49
49
  value: m,
50
50
  onChange: h,
51
51
  rows: 3
@@ -67,13 +67,13 @@ function w({ orderId: t, brandId: n }) {
67
67
  }, { onSuccess: () => d(!1) }),
68
68
  className: y,
69
69
  "data-testid": "order-return-submit",
70
- children: [o.isPending && /* @__PURE__ */ f(l, { className: "h-4 w-4 animate-spin" }), a("coolandlovely.returns.send", "Send return request")]
70
+ children: [o.isPending && /* @__PURE__ */ f(l, { className: "h-4 w-4 animate-spin" }), i("coolandlovely.returns.send", "Send return request")]
71
71
  }), /* @__PURE__ */ f("button", {
72
72
  type: "button",
73
73
  disabled: o.isPending,
74
74
  onClick: () => d(!1),
75
75
  className: b,
76
- children: a("coolandlovely.common.cancel", "Cancel")
76
+ children: i("coolandlovely.common.cancel", "Cancel")
77
77
  })]
78
78
  })
79
79
  ]
@@ -82,13 +82,13 @@ function w({ orderId: t, brandId: n }) {
82
82
  onClick: () => d(!0),
83
83
  className: b,
84
84
  "data-testid": "order-return-open",
85
- children: [/* @__PURE__ */ f(u, { className: "h-4 w-4" }), a("coolandlovely.returns.request", "Request a return")]
85
+ children: [/* @__PURE__ */ f(u, { className: "h-4 w-4" }), i("coolandlovely.returns.request", "Request a return")]
86
86
  });
87
87
  }
88
- function T({ order: r }) {
89
- let i = e(), a = r.status === "PAID" || r.status === "PARTIALLY_REFUNDED", o = r.returnRequests ?? [];
90
- if (!a && o.length === 0) return null;
91
- let s = [...new Set(r.items.map((e) => e.brandId))], c = (e) => o.find((t) => t.brandId === e)?.brandName ?? r.fulfilments?.find((t) => t.brandId === e)?.brandName ?? r.refunds?.find((t) => t.brandId === e)?.brandName ?? i("coolandlovely.orders.brand", "Brand"), l = x(r);
88
+ function T({ order: t }) {
89
+ let n = e(), r = t.status === "PAID" || t.status === "PARTIALLY_REFUNDED", a = t.returnRequests ?? [];
90
+ if (!r && a.length === 0) return null;
91
+ let s = [...new Set(t.items.map((e) => e.brandId))], c = (e) => a.find((t) => t.brandId === e)?.brandName ?? t.fulfilments?.find((t) => t.brandId === e)?.brandName ?? t.refunds?.find((t) => t.brandId === e)?.brandName ?? n("coolandlovely.orders.brand", "Brand"), l = x(t);
92
92
  return /* @__PURE__ */ p(m, {
93
93
  treatment: "plain",
94
94
  className: "space-y-4 p-4",
@@ -97,15 +97,15 @@ function T({ order: r }) {
97
97
  className: "space-y-1",
98
98
  children: [/* @__PURE__ */ f("p", {
99
99
  className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
100
- children: i("coolandlovely.returns.title", "Returns")
101
- }), a && r.returnWindowEndsAt && /* @__PURE__ */ f("p", {
100
+ children: n("coolandlovely.returns.title", "Returns")
101
+ }), r && t.returnWindowEndsAt && /* @__PURE__ */ f("p", {
102
102
  className: "text-xs text-text-secondary",
103
103
  "data-testid": "order-return-window",
104
- children: l ? i("coolandlovely.returns.windowOpen", "You can ask a brand to take back its pieces until {{date}}.", { date: n(r.returnWindowEndsAt) }) : i("coolandlovely.returns.windowClosed", "The return window closed on {{date}}.", { date: n(r.returnWindowEndsAt) })
104
+ children: l ? n("coolandlovely.returns.windowOpen", "You can ask a brand to take back its pieces until {{date}}.", { date: i(t.returnWindowEndsAt) }) : n("coolandlovely.returns.windowClosed", "The return window closed on {{date}}.", { date: i(t.returnWindowEndsAt) })
105
105
  })]
106
106
  }), s.map((e) => {
107
- let n = o.find((t) => t.brandId === e), i = S(r, e);
108
- return !n && !i ? null : /* @__PURE__ */ p("div", {
107
+ let n = a.find((t) => t.brandId === e), r = S(t, e);
108
+ return !n && !r ? null : /* @__PURE__ */ p("div", {
109
109
  className: "space-y-2",
110
110
  "data-testid": "order-return",
111
111
  children: [/* @__PURE__ */ p("div", {
@@ -115,18 +115,18 @@ function T({ order: r }) {
115
115
  children: c(e)
116
116
  }), n && /* @__PURE__ */ f("span", {
117
117
  "data-testid": "order-return-status",
118
- children: /* @__PURE__ */ f(t, { status: n.status })
118
+ children: /* @__PURE__ */ f(o, { status: n.status })
119
119
  })]
120
120
  }), n ? /* @__PURE__ */ f(C, { request: n }) : /* @__PURE__ */ f(w, {
121
- orderId: r.id,
121
+ orderId: t.id,
122
122
  brandId: e
123
123
  })]
124
124
  }, e);
125
125
  })]
126
126
  });
127
127
  }
128
- function E({ order: n }) {
129
- let i = e(), u = a(), m = o(), [h, g] = s("idle"), [_, x] = s(""), S = n.returnRequest;
128
+ function E({ order: r }) {
129
+ let i = e(), u = t(), m = n(), [h, g] = s("idle"), [_, x] = s(""), S = r.returnRequest;
130
130
  if (!S) return null;
131
131
  let w = u.isPending || m.isPending, T = u.error ?? m.error, E = h === "approve" && _.trim() === "" || v(_), D = () => {
132
132
  g("idle"), x("");
@@ -142,7 +142,7 @@ function E({ order: n }) {
142
142
  children: i("coolandlovely.returns.brandTitle", "Return request")
143
143
  }), /* @__PURE__ */ f("span", {
144
144
  "data-testid": "brand-return-status",
145
- children: /* @__PURE__ */ f(t, { status: S.status })
145
+ children: /* @__PURE__ */ f(o, { status: S.status })
146
146
  })]
147
147
  }),
148
148
  /* @__PURE__ */ f(C, { request: S }),
@@ -168,7 +168,7 @@ function E({ order: n }) {
168
168
  className: "text-sm text-text-secondary",
169
169
  children: h === "approve" ? i("coolandlovely.returns.approveExplain", "Approving refunds all of your pieces in this order to the shopper, with their share of tax, and reverses the creator commissions on them. This cannot be undone.") : i("coolandlovely.returns.declineExplain", "The shopper sees your note. A declined return cannot be reopened.")
170
170
  }),
171
- /* @__PURE__ */ f(r, {
171
+ /* @__PURE__ */ f(a, {
172
172
  id: "coo-return-decision-note",
173
173
  label: h === "approve" ? i("coolandlovely.returns.approveNote", "Note to the shopper (optional)") : i("coolandlovely.returns.declineNote", "Why are you declining?"),
174
174
  value: _,
@@ -185,8 +185,8 @@ function E({ order: n }) {
185
185
  disabled: w || !E,
186
186
  onClick: () => {
187
187
  let e = {
188
- brandId: n.brandId,
189
- orderId: n.id
188
+ brandId: r.brandId,
189
+ orderId: r.id
190
190
  };
191
191
  h === "approve" ? u.mutate({
192
192
  ...e,
@@ -212,5 +212,4 @@ function E({ order: n }) {
212
212
  ]
213
213
  });
214
214
  }
215
- //#endregion
216
215
  export { T as OrderReturns, E as ReturnRequestPanel, S as canRequestReturn, x as isReturnWindowOpen };
@@ -1,15 +1,15 @@
1
- import { cn as e } from "../utils/cn.js";
2
- import { Thumbnail as t } from "./Thumbnail.js";
3
- import { formatPrice as n } from "../utils/formatters.js";
1
+ import { Thumbnail as e } from "./Thumbnail.js";
2
+ import { formatPrice as t } from "../utils/formatters.js";
3
+ import { cn as n } from "../utils/cn.js";
4
4
  import { ChevronRight as r, ShoppingBag as i } from "lucide-react";
5
5
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
- //#region src/coolandlovely/components/ShopItemCard.tsx
6
+ // src/coolandlovely/components/ShopItemCard.tsx
7
7
  var s = ({ id: s, name: c, brandName: l, price: u, currency: d, imageFileId: f, onOpen: p, className: m }) => /* @__PURE__ */ o("button", {
8
8
  type: "button",
9
9
  onClick: p,
10
10
  "aria-label": `Shop ${c}`,
11
- className: e("group flex w-full flex-col overflow-hidden rounded-xl border border-border-seam bg-bg-surface text-left transition-shadow hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", m),
12
- children: [/* @__PURE__ */ a(t, {
11
+ className: n("group flex w-full flex-col overflow-hidden rounded-xl border border-border-seam bg-bg-surface text-left transition-shadow hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", m),
12
+ children: [/* @__PURE__ */ a(e, {
13
13
  icon: /* @__PURE__ */ a(i, { className: "h-7 w-7" }),
14
14
  seed: s,
15
15
  fileId: f,
@@ -30,7 +30,7 @@ var s = ({ id: s, name: c, brandName: l, price: u, currency: d, imageFileId: f,
30
30
  className: "mt-2 flex items-center justify-between gap-2",
31
31
  children: [/* @__PURE__ */ a("span", {
32
32
  className: "text-sm font-semibold text-text-primary tabular-nums",
33
- children: n(u, d)
33
+ children: t(u, d)
34
34
  }), /* @__PURE__ */ o("span", {
35
35
  className: "inline-flex items-center gap-0.5 text-xs font-semibold text-accent-primary",
36
36
  children: ["Shop", /* @__PURE__ */ a(r, { className: "h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5" })]
@@ -39,5 +39,4 @@ var s = ({ id: s, name: c, brandName: l, price: u, currency: d, imageFileId: f,
39
39
  ]
40
40
  })]
41
41
  });
42
- //#endregion
43
42
  export { s as ShopItemCard };
@@ -3,7 +3,7 @@ import { useTr as t } from "../hooks/useTr.js";
3
3
  import "../hooks/index.js";
4
4
  import { AlertCircle as n, Loader2 as r, RotateCw as i } from "lucide-react";
5
5
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
- //#region src/coolandlovely/components/StateViews.tsx
6
+ // src/coolandlovely/components/StateViews.tsx
7
7
  var s = ({ label: t = "Loading…", className: n }) => /* @__PURE__ */ o("div", {
8
8
  className: e("flex min-h-[40vh] flex-col items-center justify-center gap-3", n),
9
9
  children: [/* @__PURE__ */ a(r, { className: "h-8 w-8 animate-spin text-primary" }), /* @__PURE__ */ a("p", {
@@ -37,5 +37,4 @@ var s = ({ label: t = "Loading…", className: n }) => /* @__PURE__ */ o("div",
37
37
  ]
38
38
  });
39
39
  };
40
- //#endregion
41
40
  export { c as ErrorView, s as LoadingView };
@@ -2,7 +2,7 @@ import { cn as e } from "../utils/cn.js";
2
2
  import { useTr as t } from "../hooks/useTr.js";
3
3
  import "../hooks/index.js";
4
4
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
- //#region src/coolandlovely/components/StatusBadge.tsx
5
+ // src/coolandlovely/components/StatusBadge.tsx
6
6
  var i = {
7
7
  success: "bg-status-success-bg-subtle text-status-success-text",
8
8
  warning: "bg-status-warning-bg-subtle text-status-warning-text",
@@ -118,5 +118,4 @@ var u = ({ status: u, className: d }) => {
118
118
  }), _]
119
119
  });
120
120
  };
121
- //#endregion
122
121
  export { u as StatusBadge };
@@ -2,7 +2,7 @@ import { cn as e } from "../utils/cn.js";
2
2
  import { titleCase as t } from "../utils/formatters.js";
3
3
  import { Check as n } from "lucide-react";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/coolandlovely/components/StepTracker.tsx
5
+ // src/coolandlovely/components/StepTracker.tsx
6
6
  var a = ({ steps: a, current: o, className: s }) => {
7
7
  let c = a.findIndex((e) => e === o), l = c === -1 ? 0 : c;
8
8
  return /* @__PURE__ */ r("ol", {
@@ -29,5 +29,4 @@ var a = ({ steps: a, current: o, className: s }) => {
29
29
  })
30
30
  });
31
31
  };
32
- //#endregion
33
32
  export { a as StepTracker };
@@ -5,7 +5,7 @@ import { useEffect as r, useMemo as i, useState as a } from "react";
5
5
  import { Boxes as o, Loader2 as s, Save as c } from "lucide-react";
6
6
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
7
7
  import { GlassCard as d } from "@burdenoff/fe-libs/ui";
8
- //#region src/coolandlovely/components/StockEditor.tsx
8
+ // src/coolandlovely/components/StockEditor.tsx
9
9
  var f = (e, t) => `${e ?? ""}\u0000${t ?? ""}`, p = 1e5, m = ({ styleItemId: m }) => {
10
10
  let h = e(), g = n(m), _ = t(), [v, y] = a(!1), [b, x] = a({});
11
11
  r(() => {
@@ -141,5 +141,4 @@ var f = (e, t) => `${e ?? ""}\u0000${t ?? ""}`, p = 1e5, m = ({ styleItemId: m }
141
141
  })
142
142
  });
143
143
  };
144
- //#endregion
145
144
  export { m as StockEditor };
@@ -1,19 +1,19 @@
1
- import { cn as e } from "../utils/cn.js";
2
- import { useSyncStyleItemStoreListing as t } from "../hooks/useCoolAndLovelyApi.js";
3
- import { useTr as n } from "../hooks/useTr.js";
4
1
  import "../hooks/index.js";
2
+ import { useSyncStyleItemStoreListing as e } from "../hooks/useCoolAndLovelyApi.js";
3
+ import { useTr as t } from "../hooks/useTr.js";
4
+ import { cn as n } from "../utils/cn.js";
5
5
  import { formatDate as r } from "../utils/formatters.js";
6
6
  import { AlertTriangle as i, CheckCircle2 as a, EyeOff as o, Loader2 as s, RefreshCw as c, Store as l } from "lucide-react";
7
7
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
8
8
  import { GlassCard as f } from "@burdenoff/fe-libs/ui";
9
- //#region src/coolandlovely/components/StoreListingCard.tsx
9
+ // src/coolandlovely/components/StoreListingCard.tsx
10
10
  var p = {
11
11
  success: "bg-status-success-bg-subtle text-status-success-text",
12
12
  warning: "bg-status-warning-bg-subtle text-status-warning-text",
13
13
  error: "bg-status-error-bg-subtle text-status-error-text",
14
14
  neutral: "bg-bg-sunken text-text-secondary"
15
15
  }, m = ({ item: m }) => {
16
- let h = n(), g = t(), _ = m.storeSyncStatus === "FAILED", v = m.storeSyncStatus === "PENDING", y, b, x;
16
+ let h = t(), g = e(), _ = m.storeSyncStatus === "FAILED", v = m.storeSyncStatus === "PENDING", y, b, x;
17
17
  _ ? (y = "error", b = h("coolandlovely.storeListing.failed", "Sync failed"), x = h("coolandlovely.storeListing.failedHint", "The latest changes could not be sent to the Burdenoff store. Sync now, or they are sent again with the next change to this piece.")) : v ? (y = "neutral", b = h("coolandlovely.storeListing.pending", "Syncing with the Burdenoff store"), x = h("coolandlovely.storeListing.pendingHint", "The listing is being updated. Refresh in a moment to see the result.")) : m.storeListingStatus === "PUBLISHED" ? (y = "success", b = h("coolandlovely.storeListing.published", "Listed in the Burdenoff store"), x = h("coolandlovely.storeListing.publishedHint", "Shoppers can find this piece in the store. Its listing links back here, and CoolAndLovely handles checkout.")) : m.storeListingStatus === "UNLISTED" ? (y = "warning", b = h("coolandlovely.storeListing.unlisted", "Hidden while out of stock"), x = h("coolandlovely.storeListing.unlistedHint", "The listing is kept but hidden from the store until the piece is back in stock.")) : m.storeListingStatus === "ARCHIVED" ? (y = "neutral", b = h("coolandlovely.storeListing.archived", "Taken down from the Burdenoff store"), x = h("coolandlovely.storeListing.archivedHint", "Only pieces that are on sale, with a price, in a live brand storefront are listed.")) : (y = "neutral", b = h("coolandlovely.storeListing.notListed", "Not listed in the Burdenoff store"), x = h("coolandlovely.storeListing.notListedHint", "Pieces that are on sale, with a price, in a live brand storefront are listed automatically."));
18
18
  let S = _ ? i : v ? s : y === "success" ? a : y === "warning" ? o : l;
19
19
  return /* @__PURE__ */ d(f, {
@@ -26,10 +26,10 @@ var p = {
26
26
  children: h("coolandlovely.storeListing.title", "Burdenoff store")
27
27
  }),
28
28
  /* @__PURE__ */ d("span", {
29
- className: e("inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-xs font-medium", p[y]),
29
+ className: n("inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-xs font-medium", p[y]),
30
30
  "data-testid": "coo-store-listing-status",
31
31
  children: [/* @__PURE__ */ u(S, {
32
- className: e("h-3.5 w-3.5", v && "animate-spin"),
32
+ className: n("h-3.5 w-3.5", v && "animate-spin"),
33
33
  "aria-hidden": "true"
34
34
  }), b]
35
35
  }),
@@ -57,5 +57,4 @@ var p = {
57
57
  ]
58
58
  });
59
59
  };
60
- //#endregion
61
60
  export { m as StoreListingCard };
@@ -1,6 +1,6 @@
1
1
  import { cn as e } from "../utils/cn.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- //#region src/coolandlovely/components/TagList.tsx
3
+ // src/coolandlovely/components/TagList.tsx
4
4
  var r = ({ tags: r, max: i = 6, className: a, tone: o = "default" }) => {
5
5
  if (!r.length) return null;
6
6
  let s = r.slice(0, i), c = r.length - s.length, l = o === "accent" ? "bg-accent-purple-subtle text-text-primary" : "bg-bg-sunken text-text-secondary";
@@ -15,5 +15,4 @@ var r = ({ tags: r, max: i = 6, className: a, tone: o = "default" }) => {
15
15
  })]
16
16
  });
17
17
  };
18
- //#endregion
19
18
  export { r as TagList };
@@ -1,7 +1,7 @@
1
1
  import { cn as e } from "../utils/cn.js";
2
2
  import { FileImage as t } from "./FileImage.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
- //#region src/coolandlovely/components/Thumbnail.tsx
4
+ // src/coolandlovely/components/Thumbnail.tsx
5
5
  var i = [
6
6
  "from-accent-purple-subtle to-bg-sunken",
7
7
  "from-accent-blue-subtle to-bg-sunken",
@@ -34,5 +34,4 @@ var o = ({ icon: i, seed: o, className: s, label: c, fileId: l, alt: u, overlay:
34
34
  d
35
35
  ]
36
36
  });
37
- //#endregion
38
37
  export { o as Thumbnail };
@@ -1,10 +1,10 @@
1
1
  import { cn as e } from "../utils/cn.js";
2
2
  import { useTr as t } from "../hooks/useTr.js";
3
- import "../hooks/index.js";
4
3
  import { titleCase as n } from "../utils/formatters.js";
4
+ import "../hooks/index.js";
5
5
  import { Globe as r, Lock as i, Users as a } from "lucide-react";
6
6
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
- //#region src/coolandlovely/components/VisibilityChip.tsx
7
+ // src/coolandlovely/components/VisibilityChip.tsx
8
8
  var c = {
9
9
  public: {
10
10
  icon: r,
@@ -31,5 +31,4 @@ var c = {
31
31
  }), f]
32
32
  });
33
33
  };
34
- //#endregion
35
34
  export { l as VisibilityChip };