@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,20 +1,20 @@
1
- import { cn as e } from "../utils/cn.js";
1
+ import { Thumbnail as e } from "./Thumbnail.js";
2
2
  import { StatusBadge as t } from "./StatusBadge.js";
3
- import { Thumbnail as n } from "./Thumbnail.js";
3
+ import { categoryIcon as n } from "../utils/icons.js";
4
4
  import { formatPrice as r, formatRelativeTime as i, titleCase as a } from "../utils/formatters.js";
5
- import { categoryIcon as o } from "../utils/icons.js";
5
+ import { cn as o } from "../utils/cn.js";
6
6
  import { CheckCircle2 as s, Loader2 as c, Trash2 as l } from "lucide-react";
7
7
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
8
- //#region src/coolandlovely/components/WardrobeItemCard.tsx
8
+ // src/coolandlovely/components/WardrobeItemCard.tsx
9
9
  var f = ({ item: f, onLogWear: p, onRemove: m, isLoggingWear: h, isRemoving: g, className: _, retailerPrice: v }) => {
10
10
  let y = f.brandName || f.colour || a(f.category);
11
11
  return /* @__PURE__ */ d("div", {
12
- className: e("group flex flex-col overflow-hidden rounded-xl border border-border-seam bg-bg-surface shadow-sm transition-shadow hover:shadow-lg", _),
12
+ className: o("group flex flex-col overflow-hidden rounded-xl border border-border-seam bg-bg-surface shadow-sm transition-shadow hover:shadow-lg", _),
13
13
  children: [/* @__PURE__ */ d("div", {
14
14
  className: "relative",
15
15
  children: [
16
- /* @__PURE__ */ u(n, {
17
- icon: o(f.category, 40),
16
+ /* @__PURE__ */ u(e, {
17
+ icon: n(f.category, 40),
18
18
  seed: f.id,
19
19
  fileId: f.image?.id,
20
20
  alt: f.name,
@@ -87,5 +87,4 @@ var f = ({ item: f, onLogWear: p, onRemove: m, isLoggingWear: h, isRemoving: g,
87
87
  })]
88
88
  });
89
89
  };
90
- //#endregion
91
90
  export { f as WardrobeItemCard };
@@ -1,29 +1,28 @@
1
1
  import "./PageLayout.js";
2
2
  import "./MetricsCard.js";
3
3
  import "./StatusBadge.js";
4
- import "./StateViews.js";
5
- import "./FileImage.js";
6
- import "./Thumbnail.js";
7
- import "./AddToLookbookButton.js";
8
- import "./LookCard.js";
9
4
  import "./EmptyState.js";
10
- import "./Field.js";
5
+ import "./Thumbnail.js";
6
+ import "./FileImage.js";
11
7
  import "./ImageUploadField.js";
12
8
  import "./TagList.js";
9
+ import "./StateViews.js";
10
+ import "./Field.js";
13
11
  import "./ActorName.js";
14
12
  import "./Comments.js";
15
13
  import "./ActivityTrail.js";
16
14
  import "./FollowButton.js";
17
- import "./BrandCover.js";
15
+ import "./AddToLookbookButton.js";
16
+ import "./LookCard.js";
18
17
  import "./BrandCard.js";
18
+ import "./BrandCover.js";
19
19
  import "./CollectionCard.js";
20
- import "./VisibilityChip.js";
21
20
  import "./LookbookCard.js";
22
21
  import "./WardrobeItemCard.js";
23
22
  import "./StepTracker.js";
24
23
  import "./BrandCreatorAvatars.js";
25
24
  import "./ShopItemCard.js";
26
25
  import "./ColourSwatchRow.js";
27
- import { FeedbackWidget as e } from "./FeedbackWidget.js";
26
+ import "./VisibilityChip.js";
27
+ export { FeedbackWidget } from "./FeedbackWidget.js";
28
28
  import "./StoreListingCard.js";
29
- export { e as FeedbackWidget };
@@ -1,6 +1,6 @@
1
1
  import { formatRetailerPrice as e } from "./money.js";
2
2
  import { jsxs as t } from "react/jsx-runtime";
3
- //#region src/coolandlovely/components/prices/BestPriceBadge.tsx
3
+ // src/coolandlovely/components/prices/BestPriceBadge.tsx
4
4
  function n({ summary: n, onOpen: r }) {
5
5
  return n?.lowestPriceMinor == null ? null : /* @__PURE__ */ t("button", {
6
6
  type: "button",
@@ -16,5 +16,4 @@ function n({ summary: n, onOpen: r }) {
16
16
  ]
17
17
  });
18
18
  }
19
- //#endregion
20
19
  export { n as BestPriceBadge };
@@ -1,19 +1,19 @@
1
- import { Thumbnail as e } from "../Thumbnail.js";
2
- import { useContextNavigation as t } from "../../hooks/useContextNavigation.js";
3
- import { useBestPrices as n } from "../../hooks/usePriceApi.js";
1
+ import { useContextNavigation as e } from "../../hooks/useContextNavigation.js";
2
+ import { useBestPrices as t } from "../../hooks/usePriceApi.js";
3
+ import { Thumbnail as n } from "../Thumbnail.js";
4
4
  import { BestPriceBadge as r } from "./BestPriceBadge.js";
5
5
  import { PriceCurrencySelect as i } from "./PriceCurrencySelect.js";
6
6
  import { useMemo as a, useState as o } from "react";
7
7
  import { Loader2 as s, Sparkles as c, Tag as l, X as u } from "lucide-react";
8
8
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
9
- //#region src/coolandlovely/components/prices/LookbookPriceBoard.tsx
9
+ // src/coolandlovely/components/prices/LookbookPriceBoard.tsx
10
10
  var p = [
11
11
  "aspect-[3/4]",
12
12
  "aspect-square",
13
13
  "aspect-[4/5]"
14
14
  ];
15
15
  function m({ entries: m, looks: h, items: g, removingEntryId: _, onRemove: v }) {
16
- let y = t(), [b, x] = o("USD"), S = a(() => new Map(h.map((e) => [e.id, e])), [h]), C = a(() => new Map(g.map((e) => [e.id, e])), [g]), w = a(() => [...new Set(m.map((e) => e.styleItemId).filter((e) => !!e))], [m]), T = n(w.slice(0, 100), b), E = a(() => new Map(T.data?.map((e) => [e.styleItemId, e])), [T.data]);
16
+ let y = e(), [b, x] = o("USD"), S = a(() => new Map(h.map((e) => [e.id, e])), [h]), C = a(() => new Map(g.map((e) => [e.id, e])), [g]), w = a(() => [...new Set(m.map((e) => e.styleItemId).filter((e) => !!e))], [m]), T = t(w.slice(0, 100), b), E = a(() => new Map(T.data?.map((e) => [e.styleItemId, e])), [T.data]);
17
17
  return /* @__PURE__ */ f("section", {
18
18
  className: "mt-6",
19
19
  children: [
@@ -58,9 +58,9 @@ function m({ entries: m, looks: h, items: g, removingEntryId: _, onRemove: v })
58
58
  children: "This lookbook has no entries yet. Clip a catalogue piece or save a look to add one."
59
59
  }) : /* @__PURE__ */ d("div", {
60
60
  className: "columns-2 gap-4 md:columns-3",
61
- children: m.map((t, n) => {
62
- let i = !!t.lookId, a = t.lookId ? S.get(t.lookId) : void 0, o = t.styleItemId ? C.get(t.styleItemId) : void 0, m = i ? a?.title ?? "Saved look" : o?.name ?? "Clipped piece", h = i ? a?.image?.id : o?.image?.id, g = _ === t.id, b = () => {
63
- i && t.lookId ? y(`/looks/${t.lookId}`) : t.styleItemId && y(`/items/${t.styleItemId}`);
61
+ children: m.map((e, t) => {
62
+ let i = !!e.lookId, a = e.lookId ? S.get(e.lookId) : void 0, o = e.styleItemId ? C.get(e.styleItemId) : void 0, m = i ? a?.title ?? "Saved look" : o?.name ?? "Clipped piece", h = i ? a?.image?.id : o?.image?.id, g = _ === e.id, b = () => {
63
+ i && e.lookId ? y(`/looks/${e.lookId}`) : e.styleItemId && y(`/items/${e.styleItemId}`);
64
64
  };
65
65
  return /* @__PURE__ */ f("div", {
66
66
  className: "group relative mb-4 break-inside-avoid overflow-hidden rounded-xl border border-border-seam bg-bg-surface shadow-sm transition-shadow hover:shadow-lg",
@@ -70,19 +70,19 @@ function m({ entries: m, looks: h, items: g, removingEntryId: _, onRemove: v })
70
70
  onClick: b,
71
71
  "aria-label": `Open ${m}`,
72
72
  className: "block w-full text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--color-focus-ring)]",
73
- children: /* @__PURE__ */ d(e, {
73
+ children: /* @__PURE__ */ d(n, {
74
74
  icon: d(i ? c : l, { className: "h-8 w-8" }),
75
- seed: t.id,
75
+ seed: e.id,
76
76
  fileId: h,
77
77
  alt: m,
78
- className: `w-full rounded-none ${p[n % p.length]}`,
78
+ className: `w-full rounded-none ${p[t % p.length]}`,
79
79
  overlay: /* @__PURE__ */ f("div", {
80
80
  className: "pointer-events-none absolute inset-x-0 bottom-0 flex flex-col gap-1.5 bg-gradient-to-t from-bg-canvas/90 via-bg-canvas/40 to-transparent p-3 pt-10",
81
- children: [t.note && /* @__PURE__ */ d("span", {
81
+ children: [e.note && /* @__PURE__ */ d("span", {
82
82
  className: "inline-flex w-fit max-w-full items-center rounded-md bg-bg-canvas/80 px-2 py-0.5 text-[11px] font-medium text-text-primary backdrop-blur",
83
83
  children: /* @__PURE__ */ d("span", {
84
84
  className: "truncate",
85
- children: t.note
85
+ children: e.note
86
86
  })
87
87
  }), /* @__PURE__ */ d("p", {
88
88
  className: "truncate text-sm font-semibold text-text-primary",
@@ -91,27 +91,26 @@ function m({ entries: m, looks: h, items: g, removingEntryId: _, onRemove: v })
91
91
  })
92
92
  })
93
93
  }),
94
- t.styleItemId && /* @__PURE__ */ d("div", {
94
+ e.styleItemId && /* @__PURE__ */ d("div", {
95
95
  className: "px-3 pb-3",
96
96
  children: /* @__PURE__ */ d(r, {
97
- summary: E.get(t.styleItemId),
97
+ summary: E.get(e.styleItemId),
98
98
  onOpen: b
99
99
  })
100
100
  }),
101
101
  /* @__PURE__ */ d("button", {
102
102
  type: "button",
103
103
  disabled: !!_,
104
- onClick: () => v(t.id),
104
+ onClick: () => v(e.id),
105
105
  "aria-label": `Remove ${m}`,
106
106
  className: "absolute right-2 top-2 z-10 inline-flex h-7 w-7 items-center justify-center rounded-full bg-bg-surface/90 text-text-secondary opacity-100 shadow-sm backdrop-blur transition-opacity hover:text-status-error-text sm:opacity-0 sm:focus-visible:opacity-100 sm:group-hover:opacity-100 disabled:opacity-60",
107
107
  children: g ? /* @__PURE__ */ d(s, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ d(u, { className: "h-3.5 w-3.5" })
108
108
  })
109
109
  ]
110
- }, t.id);
110
+ }, e.id);
111
111
  })
112
112
  })
113
113
  ]
114
114
  });
115
115
  }
116
- //#endregion
117
116
  export { m as LookbookPriceBoard };
@@ -3,13 +3,13 @@ import { formatRetailerPrice as t } from "./money.js";
3
3
  import { RetailerOfferLink as n } from "./RetailerOfferLink.js";
4
4
  import { useState as r } from "react";
5
5
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
- //#region src/coolandlovely/components/prices/PriceComparison.tsx
6
+ // src/coolandlovely/components/prices/PriceComparison.tsx
7
7
  function o({ styleItemId: o, currency: s }) {
8
8
  let [c] = r(() => {
9
9
  let e = /* @__PURE__ */ new Date();
10
10
  return {
11
11
  end: e.toISOString(),
12
- start: (/* @__PURE__ */ new Date(e.getTime() - 30 * 864e5)).toISOString()
12
+ start: (/* @__PURE__ */ new Date(e.getTime() - 2592e6)).toISOString()
13
13
  };
14
14
  }), l = e(o, s, c.start, c.end, !0);
15
15
  return l.isPending ? /* @__PURE__ */ i("p", {
@@ -89,5 +89,4 @@ function o({ styleItemId: o, currency: s }) {
89
89
  ]
90
90
  });
91
91
  }
92
- //#endregion
93
92
  export { o as PriceComparison };
@@ -1,6 +1,6 @@
1
1
  import { useId as e } from "react";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- //#region src/coolandlovely/components/prices/PriceCurrencySelect.tsx
3
+ // src/coolandlovely/components/prices/PriceCurrencySelect.tsx
4
4
  function r({ value: r, onChange: i, currencies: a = [] }) {
5
5
  let o = e(), s = [.../* @__PURE__ */ new Set([
6
6
  r,
@@ -32,5 +32,4 @@ function r({ value: r, onChange: i, currencies: a = [] }) {
32
32
  })]
33
33
  });
34
34
  }
35
- //#endregion
36
35
  export { r as PriceCurrencySelect };
@@ -4,7 +4,7 @@ import { PriceComparison as n } from "./PriceComparison.js";
4
4
  import { PriceWatchForm as r } from "./PriceWatchForm.js";
5
5
  import { useId as i, useState as a } from "react";
6
6
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
- //#region src/coolandlovely/components/prices/PricePanel.tsx
7
+ // src/coolandlovely/components/prices/PricePanel.tsx
8
8
  var c = "rounded-lg border border-border-seam px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-50";
9
9
  function l({ styleItemId: l, currency: u }) {
10
10
  let [d, f] = a(u), [p, m] = a(!1), h = i(), g = e([l], d), _ = g.data?.[0];
@@ -99,5 +99,4 @@ function l({ styleItemId: l, currency: u }) {
99
99
  ]
100
100
  });
101
101
  }
102
- //#endregion
103
102
  export { l as PricePanel };
@@ -1,6 +1,6 @@
1
1
  import { Suspense as e, lazy as t, useState as n } from "react";
2
2
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
3
- //#region src/coolandlovely/components/prices/PriceWatchDisclosure.tsx
3
+ // src/coolandlovely/components/prices/PriceWatchDisclosure.tsx
4
4
  var a = t(() => import("./PriceWatches.js").then((e) => ({ default: e.PriceWatches })));
5
5
  function o() {
6
6
  let [t, o] = n(!1);
@@ -22,5 +22,4 @@ function o() {
22
22
  })]
23
23
  });
24
24
  }
25
- //#endregion
26
25
  export { o as PriceWatchDisclosure };
@@ -1,24 +1,24 @@
1
- import { usePriceWatchAction as e } from "../../hooks/usePriceApi.js";
2
- import { retailerTargetExample as t, retailerTargetMinor as n } from "./money.js";
3
- import { CooPriceAlertKind as r } from "../../../generated/wspace-types.js";
1
+ import { CooPriceAlertKind as e } from "../../../generated/wspace-types.js";
2
+ import { usePriceWatchAction as t } from "../../hooks/usePriceApi.js";
3
+ import { retailerTargetExample as n, retailerTargetMinor as r } from "./money.js";
4
4
  import { useId as i, useState as a } from "react";
5
5
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
- //#region src/coolandlovely/components/prices/PriceWatchForm.tsx
6
+ // src/coolandlovely/components/prices/PriceWatchForm.tsx
7
7
  var c = "rounded-lg border border-border-seam px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-50";
8
8
  function l({ styleItemId: l, currency: u }) {
9
- let [d, f] = a(""), [p, m] = a(""), [h, g] = a(""), _ = i(), v = e(), y = async (e) => {
9
+ let [d, f] = a(""), [p, m] = a(""), [h, g] = a(""), _ = i(), v = t(), y = async (t) => {
10
10
  g(""), m("");
11
11
  try {
12
- let t = e === r.PriceDrop && d ? n(d, u) : null;
12
+ let n = t === e.PriceDrop && d ? r(d, u) : null;
13
13
  await v.mutateAsync({
14
14
  kind: "save",
15
15
  input: {
16
16
  styleItemId: l,
17
17
  currency: u,
18
- kind: e,
19
- targetPriceMinor: t
18
+ kind: t,
19
+ targetPriceMinor: n
20
20
  }
21
- }), m(e === r.PriceDrop ? "Price watch saved. Monitoring starts after an initial check." : "Stock watch saved. You will be notified when fresh reports show a return from out of stock.");
21
+ }), m(t === e.PriceDrop ? "Price watch saved. Monitoring starts after an initial check." : "Stock watch saved. You will be notified when fresh reports show a return from out of stock.");
22
22
  } catch (e) {
23
23
  g(e instanceof Error ? e.message : "The price watch could not be saved.");
24
24
  }
@@ -50,7 +50,7 @@ function l({ styleItemId: l, currency: u }) {
50
50
  className: "rounded-lg border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
51
51
  value: d,
52
52
  onChange: (e) => f(e.target.value),
53
- placeholder: t(u)
53
+ placeholder: n(u)
54
54
  })
55
55
  ]
56
56
  }),
@@ -58,14 +58,14 @@ function l({ styleItemId: l, currency: u }) {
58
58
  type: "button",
59
59
  className: c,
60
60
  disabled: v.isPending,
61
- onClick: () => void y(r.PriceDrop),
61
+ onClick: () => void y(e.PriceDrop),
62
62
  children: "Watch price drops"
63
63
  }),
64
64
  /* @__PURE__ */ o("button", {
65
65
  type: "button",
66
66
  className: c,
67
67
  disabled: v.isPending,
68
- onClick: () => void y(r.BackInStock),
68
+ onClick: () => void y(e.BackInStock),
69
69
  children: "Watch restocks"
70
70
  })
71
71
  ]
@@ -83,5 +83,4 @@ function l({ styleItemId: l, currency: u }) {
83
83
  ]
84
84
  });
85
85
  }
86
- //#endregion
87
86
  export { l as PriceWatchForm };
@@ -3,7 +3,7 @@ import { usePriceWatchAction as t, usePriceWatchDeliveries as n, usePriceWatches
3
3
  import { formatRetailerPrice as i } from "./money.js";
4
4
  import { useState as a } from "react";
5
5
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
- //#region src/coolandlovely/components/prices/PriceWatches.tsx
6
+ // src/coolandlovely/components/prices/PriceWatches.tsx
7
7
  var c = {
8
8
  DELIVERED: "Sent",
9
9
  PENDING: "Waiting",
@@ -182,5 +182,4 @@ function d() {
182
182
  ]
183
183
  });
184
184
  }
185
- //#endregion
186
185
  export { d as PriceWatches };
@@ -1,6 +1,6 @@
1
1
  import { formatRetailerPrice as e } from "./money.js";
2
2
  import { jsxs as t } from "react/jsx-runtime";
3
- //#region src/coolandlovely/components/prices/RetailerOfferLink.tsx
3
+ // src/coolandlovely/components/prices/RetailerOfferLink.tsx
4
4
  function n(e) {
5
5
  try {
6
6
  let t = new URL(e);
@@ -22,5 +22,4 @@ function r({ url: r, priceMinor: i, currency: a }) {
22
22
  children: [s, " · Retailer link unavailable"]
23
23
  });
24
24
  }
25
- //#endregion
26
25
  export { r as RetailerOfferLink };
@@ -1,4 +1,4 @@
1
- //#region src/coolandlovely/components/prices/money.ts
1
+ // src/coolandlovely/components/prices/money.ts
2
2
  var e = /* @__PURE__ */ new Map();
3
3
  function t(t, n) {
4
4
  let r = `${n ?? "browser"}:${t}`, i = e.get(r);
@@ -36,5 +36,4 @@ function i(e, n, i) {
36
36
  if (!Number.isSafeInteger(p) || p < 1 || p > 2147483647) throw Error("Enter a positive amount within the supported price range.");
37
37
  return p;
38
38
  }
39
- //#endregion
40
39
  export { n as formatRetailerPrice, r as retailerTargetExample, i as retailerTargetMinor };
@@ -2,7 +2,7 @@ import { joinPath as e } from "../utils/navigation.js";
2
2
  import { createContext as t, useCallback as n, useContext as r, useMemo as i } from "react";
3
3
  import { MemoryRouter as a, useNavigate as o } from "react-router";
4
4
  import { jsx as s } from "react/jsx-runtime";
5
- //#region src/coolandlovely/context/CoolAndLovelyContext.tsx
5
+ // src/coolandlovely/context/CoolAndLovelyContext.tsx
6
6
  var c = t(null);
7
7
  function l() {
8
8
  let e = r(c);
@@ -92,5 +92,4 @@ var u = ({ children: t, basePath: r, currentUser: a, tenantId: l, workspaceId: u
92
92
  children: t
93
93
  }) });
94
94
  };
95
- //#endregion
96
95
  export { f as CoolAndLovelyProvider, l as useCoolAndLovely };
@@ -1,10 +1,10 @@
1
1
  import { useEffect as e, useState as t } from "react";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
3
  import { QueryClient as r, QueryClientProvider as i } from "@tanstack/react-query";
4
- //#region src/coolandlovely/context/QueryScope.tsx
4
+ // src/coolandlovely/context/QueryScope.tsx
5
5
  function a({ children: a }) {
6
6
  let [o] = t(() => new r({ defaultOptions: { queries: {
7
- staleTime: 300 * 1e3,
7
+ staleTime: 3e5,
8
8
  retry: 1
9
9
  } } }));
10
10
  return e(() => () => o.clear(), [o]), /* @__PURE__ */ n(i, {
@@ -12,5 +12,4 @@ function a({ children: a }) {
12
12
  children: a
13
13
  });
14
14
  }
15
- //#endregion
16
15
  export { a as CoolAndLovelyQueryScope };
@@ -1,2 +1 @@
1
- import { CoolAndLovelyProvider as e, useCoolAndLovely as t } from "./CoolAndLovelyContext.js";
2
- export { e as CoolAndLovelyProvider, t as useCoolAndLovely };
1
+ export { CoolAndLovelyProvider, useCoolAndLovely } from "./CoolAndLovelyContext.js";
@@ -1,4 +1,4 @@
1
- //#region src/coolandlovely/context/queryScopeKey.ts
1
+ // src/coolandlovely/context/queryScopeKey.ts
2
2
  function e(e) {
3
3
  return JSON.stringify([
4
4
  e.apiGatewayUrl ?? null,
@@ -9,5 +9,4 @@ function e(e) {
9
9
  e.currentUser?.id ?? null
10
10
  ]);
11
11
  }
12
- //#endregion
13
12
  export { e as coolAndLovelyScopeKey };
@@ -1,4 +1,4 @@
1
- //#region src/coolandlovely/hooks/contextNavigationTarget.ts
1
+ // src/coolandlovely/hooks/contextNavigationTarget.ts
2
2
  var e = [
3
3
  "org",
4
4
  "workspace",
@@ -17,5 +17,4 @@ function t(t, n) {
17
17
  let d = u.toString();
18
18
  return `${s}${d ? `?${d}` : ""}${a === void 0 ? "" : `#${a}`}`;
19
19
  }
20
- //#endregion
21
20
  export { e as CONTEXT_QUERY_KEYS, t as buildContextNavigationTarget };
@@ -2,7 +2,7 @@ import { useCoolAndLovely as e } from "../context/CoolAndLovelyContext.js";
2
2
  import "../context/index.js";
3
3
  import { useQuery as t } from "@tanstack/react-query";
4
4
  import { graphqlFetch as n } from "@burdenoff/fe-libs/shared/graphql";
5
- //#region src/coolandlovely/hooks/useActivity.ts
5
+ // src/coolandlovely/hooks/useActivity.ts
6
6
  var r = "coolandlovely-activity", i = "\n query CooEntityActivity($filter: ActivityLogFilter) {\n getActivities(filter: $filter) {\n id\n action\n description\n resourceType\n resourceId\n userId\n timestamp\n }\n }\n", a = async (e, t, r) => {
7
7
  let i = await n({
8
8
  gateway: "workspace",
@@ -32,5 +32,4 @@ var r = "coolandlovely-activity", i = "\n query CooEntityActivity($filter: Acti
32
32
  } }, c)).getActivities].sort((e, t) => new Date(t.timestamp).getTime() - new Date(e.timestamp).getTime())
33
33
  });
34
34
  };
35
- //#endregion
36
35
  export { o as useEntityActivity };
@@ -1,10 +1,9 @@
1
1
  import { clearActiveEntityName as e, setActiveEntityName as t } from "../../utils/pageContext.js";
2
2
  import { useEffect as n } from "react";
3
- //#region src/coolandlovely/hooks/useAssistantEntity.ts
3
+ // src/coolandlovely/hooks/useAssistantEntity.ts
4
4
  function r(r, i) {
5
5
  n(() => {
6
- if (!(!r || !i)) return t(r, i), () => e(r);
6
+ if (r && i) return t(r, i), () => e(r);
7
7
  }, [r, i]);
8
8
  }
9
- //#endregion
10
9
  export { r as useAssistantEntityName };