@nextblock-cms/ecom 0.17.2 → 0.17.4

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 (186) hide show
  1. package/lib/CurrencyProvider.cjs.js +1 -1
  2. package/lib/CurrencyProvider.d.ts +1 -1
  3. package/lib/CurrencyProvider.es.js +5 -5
  4. package/lib/PaymentReadinessProvider.cjs.js +1 -1
  5. package/lib/PaymentReadinessProvider.d.ts +1 -1
  6. package/lib/PaymentReadinessProvider.es.js +7 -7
  7. package/lib/components/AccountNavigationMenu.cjs.js +1 -1
  8. package/lib/components/AccountNavigationMenu.d.ts +1 -1
  9. package/lib/components/AccountNavigationMenu.es.js +23 -23
  10. package/lib/components/AddToCartButton.cjs.js +1 -1
  11. package/lib/components/AddToCartButton.d.ts +1 -1
  12. package/lib/components/AddToCartButton.es.js +29 -29
  13. package/lib/components/Cart.cjs.js +1 -1
  14. package/lib/components/Cart.d.ts +1 -1
  15. package/lib/components/Cart.es.js +129 -129
  16. package/lib/components/CartDrawer.cjs.js +1 -1
  17. package/lib/components/CartDrawer.d.ts +1 -1
  18. package/lib/components/CartDrawer.es.js +85 -85
  19. package/lib/components/CartIcon.cjs.js +1 -1
  20. package/lib/components/CartIcon.d.ts +1 -1
  21. package/lib/components/CartIcon.es.js +17 -17
  22. package/lib/components/Checkout.cjs.js +1 -1
  23. package/lib/components/Checkout.d.ts +1 -1
  24. package/lib/components/Checkout.es.js +561 -561
  25. package/lib/components/CouponForm.cjs.js +1 -1
  26. package/lib/components/CouponForm.d.ts +1 -1
  27. package/lib/components/CouponForm.es.js +62 -62
  28. package/lib/components/CurrencySwitcher.cjs.js +1 -1
  29. package/lib/components/CurrencySwitcher.d.ts +1 -1
  30. package/lib/components/CurrencySwitcher.es.js +12 -12
  31. package/lib/components/CustomerProfileForm.cjs.js +1 -1
  32. package/lib/components/CustomerProfileForm.d.ts +1 -1
  33. package/lib/components/CustomerProfileForm.es.js +238 -238
  34. package/lib/components/FeaturedProduct.cjs.js +1 -1
  35. package/lib/components/FeaturedProduct.d.ts +1 -1
  36. package/lib/components/FeaturedProduct.es.js +39 -39
  37. package/lib/components/FreemiusLicensePanel.cjs.js +1 -1
  38. package/lib/components/FreemiusLicensePanel.d.ts +1 -1
  39. package/lib/components/FreemiusLicensePanel.es.js +46 -46
  40. package/lib/components/InvoiceDocument.cjs.js +1 -1
  41. package/lib/components/InvoiceDocument.d.ts +1 -2
  42. package/lib/components/InvoiceDocument.es.js +144 -144
  43. package/lib/components/InvoiceViewerShell.cjs.js +2 -2
  44. package/lib/components/InvoiceViewerShell.d.ts +1 -1
  45. package/lib/components/InvoiceViewerShell.es.js +47 -47
  46. package/lib/components/ProductCard.cjs.js +1 -1
  47. package/lib/components/ProductCard.d.ts +1 -1
  48. package/lib/components/ProductCard.es.js +84 -84
  49. package/lib/components/ProductDetailsLayout.cjs.js +1 -1
  50. package/lib/components/ProductDetailsLayout.es.js +201 -201
  51. package/lib/components/ProductGallery.cjs.js +1 -1
  52. package/lib/components/ProductGallery.d.ts +1 -1
  53. package/lib/components/ProductGallery.es.js +21 -21
  54. package/lib/components/ProductGrid.cjs.js +1 -1
  55. package/lib/components/ProductGrid.d.ts +1 -1
  56. package/lib/components/ProductGrid.es.js +10 -10
  57. package/lib/components/ShippingEstimator.cjs.js +1 -1
  58. package/lib/components/ShippingEstimator.d.ts +1 -1
  59. package/lib/components/ShippingEstimator.es.js +71 -71
  60. package/lib/components/SimpleTiptapRenderer.cjs.js +1 -1
  61. package/lib/components/SimpleTiptapRenderer.es.js +133 -133
  62. package/lib/components/SubscriptionSelector.cjs.js +1 -1
  63. package/lib/components/SubscriptionSelector.d.ts +1 -2
  64. package/lib/components/SubscriptionSelector.es.js +74 -74
  65. package/lib/components/media/MediaPickerDialog.d.ts +1 -2
  66. package/lib/components/media/MediaUploadForm.d.ts +1 -2
  67. package/lib/components/media/UploadFolderContext.d.ts +1 -1
  68. package/lib/pages/cms/coupons/CouponEditorForm.cjs.js +1 -1
  69. package/lib/pages/cms/coupons/CouponEditorForm.d.ts +1 -1
  70. package/lib/pages/cms/coupons/CouponEditorForm.es.js +96 -96
  71. package/lib/pages/cms/coupons/CouponsPage.cjs.js +2 -2
  72. package/lib/pages/cms/coupons/CouponsPage.d.ts +1 -1
  73. package/lib/pages/cms/coupons/CouponsPage.es.js +83 -83
  74. package/lib/pages/cms/coupons/CreateCouponDialog.cjs.js +1 -1
  75. package/lib/pages/cms/coupons/CreateCouponDialog.d.ts +1 -1
  76. package/lib/pages/cms/coupons/CreateCouponDialog.es.js +22 -22
  77. package/lib/pages/cms/coupons/EditCouponPage.cjs.js +1 -1
  78. package/lib/pages/cms/coupons/EditCouponPage.d.ts +1 -1
  79. package/lib/pages/cms/coupons/EditCouponPage.es.js +25 -25
  80. package/lib/pages/cms/coupons/ProductScopePicker.cjs.js +1 -1
  81. package/lib/pages/cms/coupons/ProductScopePicker.d.ts +1 -1
  82. package/lib/pages/cms/coupons/ProductScopePicker.es.js +48 -48
  83. package/lib/pages/cms/orders/ExportReportsDialog.cjs.js +1 -1
  84. package/lib/pages/cms/orders/ExportReportsDialog.d.ts +1 -2
  85. package/lib/pages/cms/orders/ExportReportsDialog.es.js +73 -73
  86. package/lib/pages/cms/orders/MarkPaidButton.d.ts +1 -1
  87. package/lib/pages/cms/orders/OrderDetailPage.cjs.js +1 -1
  88. package/lib/pages/cms/orders/OrderDetailPage.d.ts +1 -1
  89. package/lib/pages/cms/orders/OrderDetailPage.es.js +95 -95
  90. package/lib/pages/cms/orders/OrderPrintButton.cjs.js +1 -1
  91. package/lib/pages/cms/orders/OrderPrintButton.d.ts +1 -1
  92. package/lib/pages/cms/orders/OrderPrintButton.es.js +2 -2
  93. package/lib/pages/cms/orders/OrderStatusForm.cjs.js +1 -1
  94. package/lib/pages/cms/orders/OrderStatusForm.d.ts +1 -1
  95. package/lib/pages/cms/orders/OrderStatusForm.es.js +33 -33
  96. package/lib/pages/cms/orders/OrdersPage.cjs.js +1 -1
  97. package/lib/pages/cms/orders/OrdersPage.d.ts +1 -1
  98. package/lib/pages/cms/orders/OrdersPage.es.js +68 -68
  99. package/lib/pages/cms/payments/PaymentsClient.cjs.js +1 -1
  100. package/lib/pages/cms/payments/PaymentsClient.d.ts +1 -1
  101. package/lib/pages/cms/payments/PaymentsClient.es.js +120 -120
  102. package/lib/pages/cms/payments/PaymentsPage.cjs.js +1 -1
  103. package/lib/pages/cms/payments/PaymentsPage.d.ts +1 -1
  104. package/lib/pages/cms/payments/PaymentsPage.es.js +5 -5
  105. package/lib/pages/cms/products/ProductsPage.cjs.js +1 -1
  106. package/lib/pages/cms/products/ProductsPage.d.ts +1 -1
  107. package/lib/pages/cms/products/ProductsPage.es.js +32 -32
  108. package/lib/pages/cms/products/[id]/edit/EditProductPage.d.ts +1 -1
  109. package/lib/pages/cms/products/_id_/edit/EditProductPage.cjs.js +1 -1
  110. package/lib/pages/cms/products/_id_/edit/EditProductPage.es.js +38 -38
  111. package/lib/pages/cms/products/attributes/AttributeManagementPage.cjs.js +1 -1
  112. package/lib/pages/cms/products/attributes/AttributeManagementPage.d.ts +1 -1
  113. package/lib/pages/cms/products/attributes/AttributeManagementPage.es.js +32 -32
  114. package/lib/pages/cms/products/attributes/components/AttributeManager.cjs.js +1 -1
  115. package/lib/pages/cms/products/attributes/components/AttributeManager.d.ts +1 -1
  116. package/lib/pages/cms/products/attributes/components/AttributeManager.es.js +173 -173
  117. package/lib/pages/cms/products/categories/CategoryManagementPage.cjs.js +1 -1
  118. package/lib/pages/cms/products/categories/CategoryManagementPage.d.ts +1 -1
  119. package/lib/pages/cms/products/categories/CategoryManagementPage.es.js +16 -16
  120. package/lib/pages/cms/products/categories/components/CategoryManager.cjs.js +1 -1
  121. package/lib/pages/cms/products/categories/components/CategoryManager.d.ts +1 -2
  122. package/lib/pages/cms/products/categories/components/CategoryManager.es.js +102 -102
  123. package/lib/pages/cms/products/components/CopyProductFromLanguage.cjs.js +1 -1
  124. package/lib/pages/cms/products/components/CopyProductFromLanguage.d.ts +1 -2
  125. package/lib/pages/cms/products/components/CopyProductFromLanguage.es.js +45 -45
  126. package/lib/pages/cms/products/components/CurrencyPriceFields.cjs.js +1 -1
  127. package/lib/pages/cms/products/components/CurrencyPriceFields.d.ts +1 -1
  128. package/lib/pages/cms/products/components/CurrencyPriceFields.es.js +45 -45
  129. package/lib/pages/cms/products/components/DeleteProductButton.cjs.js +1 -1
  130. package/lib/pages/cms/products/components/DeleteProductButton.d.ts +1 -1
  131. package/lib/pages/cms/products/components/DeleteProductButton.es.js +14 -14
  132. package/lib/pages/cms/products/components/FreemiusPricingDashboard.cjs.js +1 -1
  133. package/lib/pages/cms/products/components/FreemiusPricingDashboard.d.ts +1 -1
  134. package/lib/pages/cms/products/components/FreemiusPricingDashboard.es.js +45 -45
  135. package/lib/pages/cms/products/components/ProductCategorySelector.cjs.js +1 -1
  136. package/lib/pages/cms/products/components/ProductCategorySelector.d.ts +1 -2
  137. package/lib/pages/cms/products/components/ProductCategorySelector.es.js +84 -84
  138. package/lib/pages/cms/products/components/ProductForm.cjs.js +1 -1
  139. package/lib/pages/cms/products/components/ProductForm.d.ts +1 -1
  140. package/lib/pages/cms/products/components/ProductForm.es.js +224 -224
  141. package/lib/pages/cms/products/components/ProductMediaManager.cjs.js +1 -1
  142. package/lib/pages/cms/products/components/ProductMediaManager.d.ts +1 -1
  143. package/lib/pages/cms/products/components/ProductMediaManager.es.js +42 -42
  144. package/lib/pages/cms/products/components/ProductsBulkTable.cjs.js +1 -1
  145. package/lib/pages/cms/products/components/ProductsBulkTable.d.ts +1 -1
  146. package/lib/pages/cms/products/components/ProductsBulkTable.es.js +133 -133
  147. package/lib/pages/cms/products/components/SaleScheduleFields.cjs.js +1 -1
  148. package/lib/pages/cms/products/components/SaleScheduleFields.d.ts +1 -1
  149. package/lib/pages/cms/products/components/SaleScheduleFields.es.js +43 -43
  150. package/lib/pages/cms/products/components/SyncFreemiusButton.cjs.js +1 -1
  151. package/lib/pages/cms/products/components/SyncFreemiusButton.d.ts +1 -1
  152. package/lib/pages/cms/products/components/SyncFreemiusButton.es.js +9 -9
  153. package/lib/pages/cms/products/components/SyncFreemiusPricingButton.cjs.js +2 -2
  154. package/lib/pages/cms/products/components/SyncFreemiusPricingButton.d.ts +1 -1
  155. package/lib/pages/cms/products/components/SyncFreemiusPricingButton.es.js +15 -15
  156. package/lib/pages/cms/products/components/SyncProductForm.d.ts +1 -1
  157. package/lib/pages/cms/products/components/VariationsEditor.cjs.js +1 -1
  158. package/lib/pages/cms/products/components/VariationsEditor.d.ts +1 -1
  159. package/lib/pages/cms/products/components/VariationsEditor.es.js +104 -104
  160. package/lib/pages/cms/products/inventory/InventoryPage.cjs.js +1 -1
  161. package/lib/pages/cms/products/inventory/InventoryPage.d.ts +1 -1
  162. package/lib/pages/cms/products/inventory/InventoryPage.es.js +10 -10
  163. package/lib/pages/cms/products/inventory/InventoryTableClient.cjs.js +2 -2
  164. package/lib/pages/cms/products/inventory/InventoryTableClient.d.ts +1 -1
  165. package/lib/pages/cms/products/inventory/InventoryTableClient.es.js +139 -139
  166. package/lib/pages/cms/products/new/NewProductPage.cjs.js +1 -1
  167. package/lib/pages/cms/products/new/NewProductPage.d.ts +1 -1
  168. package/lib/pages/cms/products/new/NewProductPage.es.js +19 -19
  169. package/lib/pages/cms/shipping/ShippingPage.cjs.js +2 -2
  170. package/lib/pages/cms/shipping/ShippingPage.d.ts +1 -2
  171. package/lib/pages/cms/shipping/ShippingPage.es.js +123 -123
  172. package/lib/pages/cms/shipping/components/RateForm.cjs.js +1 -1
  173. package/lib/pages/cms/shipping/components/RateForm.d.ts +1 -1
  174. package/lib/pages/cms/shipping/components/RateForm.es.js +217 -217
  175. package/lib/pages/cms/shipping/components/ZoneForm.cjs.js +1 -1
  176. package/lib/pages/cms/shipping/components/ZoneForm.d.ts +1 -2
  177. package/lib/pages/cms/shipping/components/ZoneForm.es.js +98 -98
  178. package/lib/pages/cms/taxes/TaxesPage.cjs.js +1 -1
  179. package/lib/pages/cms/taxes/TaxesPage.d.ts +1 -1
  180. package/lib/pages/cms/taxes/TaxesPage.es.js +120 -120
  181. package/lib/pages/cms/taxes/components/TaxRateForm.cjs.js +1 -1
  182. package/lib/pages/cms/taxes/components/TaxRateForm.d.ts +1 -1
  183. package/lib/pages/cms/taxes/components/TaxRateForm.es.js +34 -34
  184. package/lib/product-context.cjs.js +1 -1
  185. package/lib/product-context.es.js +3 -3
  186. package/package.json +4 -4
@@ -1,18 +1,18 @@
1
1
  'use client';
2
2
  import { jsxDEV as e, Fragment as Z } from "react/jsx-dev-runtime";
3
3
  import ee, { useState as j, useEffect as C, useMemo as E } from "react";
4
- import { Download as te, Package as se, ShieldCheck as oe } from "lucide-react";
4
+ import { Download as te, Package as oe, ShieldCheck as ie } from "lucide-react";
5
5
  import { Badge as R } from "@nextblock-cms/ui/badge";
6
- import { Button as ie } from "@nextblock-cms/ui/button";
7
- import { Label as ne } from "@nextblock-cms/ui/label";
8
- import { Separator as le } from "@nextblock-cms/ui/separator";
9
- import { useTranslations as ce, cn as re, formatPrice as $ } from "@nextblock-cms/utils";
6
+ import { Button as se } from "@nextblock-cms/ui/button";
7
+ import { Label as ce } from "@nextblock-cms/ui/label";
8
+ import { Separator as re } from "@nextblock-cms/ui/separator";
9
+ import { useTranslations as ne, cn as le, formatPrice as $ } from "@nextblock-cms/utils";
10
10
  import { useProduct as ae } from "../product-context.es.js";
11
11
  import { ProductGallery as me } from "./ProductGallery.es.js";
12
- import { AddToCartButton as de } from "./AddToCartButton.es.js";
13
- import { SubscriptionSelector as ue } from "./SubscriptionSelector.es.js";
14
- import { toNoCookieEmbedSrc as be, SimpleTiptapRenderer as xe } from "./SimpleTiptapRenderer.es.js";
15
- import { chooseInitialVariantSelections as B, normalizeSelectionsToAvailableVariants as F, findMatchingVariant as fe, resolveTranslatedText as pe, getAvailableTermIdsForAttribute as Ne } from "../variation-utils.es.js";
12
+ import { AddToCartButton as ue } from "./AddToCartButton.es.js";
13
+ import { SubscriptionSelector as de } from "./SubscriptionSelector.es.js";
14
+ import { toNoCookieEmbedSrc as be, SimpleTiptapRenderer as pe } from "./SimpleTiptapRenderer.es.js";
15
+ import { chooseInitialVariantSelections as B, normalizeSelectionsToAvailableVariants as F, findMatchingVariant as fe, resolveTranslatedText as Ne, getAvailableTermIdsForAttribute as xe } from "../variation-utils.es.js";
16
16
  import { useCurrency as ve } from "../CurrencyProvider.es.js";
17
17
  import { resolveEffectivePriceForCurrency as M } from "../currency.es.js";
18
18
  import { isDigitalProduct as De } from "../types.es.js";
@@ -24,13 +24,13 @@ function T(a, f, k, L) {
24
24
  input: k,
25
25
  label: L
26
26
  }, t = typeof window < "u" ? window.location.origin : process.env.NEXT_PUBLIC_URL || process.env.TARGET_URL || (process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : "") || "http://localhost:3000";
27
- let u = (typeof window < "u" ? window.location.origin : process.env.NEXT_PUBLIC_URL || process.env.TARGET_URL || (process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : "") || "http://localhost:3000").replace(/\/+$/, "");
27
+ let d = (typeof window < "u" ? window.location.origin : process.env.NEXT_PUBLIC_URL || process.env.TARGET_URL || (process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : "") || "http://localhost:3000").replace(/\/+$/, "");
28
28
  try {
29
- (u.startsWith("http://") || u.startsWith("https://")) && (u = new URL(u).hostname);
29
+ (d.startsWith("http://") || d.startsWith("https://")) && (d = new URL(d).hostname);
30
30
  } catch {
31
31
  }
32
32
  const m = process.env.NEXTBLOCK_VERCEL_PROJECT_ID || process.env.VERCEL_PROJECT_ID, v = process.env.NEXTBLOCK_VERCEL_WORKSPACE_ID || process.env.VERCEL_ORG_ID, D = {
33
- origin: u,
33
+ origin: d,
34
34
  editUrl: `${t}/cms/products/${a.id}/edit`,
35
35
  data: {
36
36
  parentType: "product",
@@ -54,7 +54,7 @@ const je = ({
54
54
  canPurchase: L = !0,
55
55
  purchaseFallbackNode: P
56
56
  }) => {
57
- const t = ae(), { t: r, lang: u } = ce(), { activeCurrencyCode: m, currencies: v } = ve(), D = a ? T(
57
+ const t = ae(), { t: l, lang: d } = ne(), { activeCurrencyCode: m, currencies: v } = ve(), D = a ? T(
58
58
  t,
59
59
  "title",
60
60
  "plain-text",
@@ -69,24 +69,24 @@ const je = ({
69
69
  "description_json",
70
70
  "tiptap",
71
71
  "Product description"
72
- ) : void 0, p = (o, c, n) => {
73
- const U = r(o, n);
74
- return U === o ? c : U;
75
- }, W = t.images && t.images.length > 0 ? t.images : t.image_url ? [{ url: t.image_url, alt: t.title }] : [], N = t.custom_props?.provider === "freemius" || De(t), I = he(t), i = !N && !!(t.has_variants && t.attributes?.length && t.variants?.length), b = t.attributes || [], d = t.variants || [], [h, w] = j(() => B(b, d)), [_, S] = j(1);
72
+ ) : void 0, N = (i, n, c) => {
73
+ const U = l(i, c);
74
+ return U === i ? n : U;
75
+ }, W = t.images && t.images.length > 0 ? t.images : t.image_url ? [{ url: t.image_url, alt: t.title }] : [], x = t.custom_props?.provider === "freemius" || De(t), I = he(t), s = !x && !!(t.has_variants && t.attributes?.length && t.variants?.length), b = t.attributes || [], u = t.variants || [], [h, w] = j(() => B(b, u)), [_, S] = j(1);
76
76
  C(() => {
77
77
  S(1);
78
78
  }, [t.id]), C(() => {
79
- i && w(B(b, d));
80
- }, [b, i, t.id, d]);
81
- const x = E(() => i ? F(
79
+ s && w(B(b, u));
80
+ }, [b, s, t.id, u]);
81
+ const p = E(() => s ? F(
82
82
  b,
83
- d,
83
+ u,
84
84
  h
85
- ) : h, [b, i, h, d]);
85
+ ) : h, [b, s, h, u]);
86
86
  C(() => {
87
- JSON.stringify(x) !== JSON.stringify(h) && w(x);
88
- }, [x, h]);
89
- const s = E(() => i ? fe(d, x) : null, [i, x, d]), A = M({
87
+ JSON.stringify(p) !== JSON.stringify(h) && w(p);
88
+ }, [p, h]);
89
+ const o = E(() => s ? fe(u, p) : null, [s, p, u]), A = M({
90
90
  prices: t.prices,
91
91
  salePrices: t.sale_prices,
92
92
  fallbackPrice: t.price,
@@ -98,75 +98,75 @@ const je = ({
98
98
  scheduledPriceAt: t.scheduled_price_at,
99
99
  currencyCode: m,
100
100
  currencies: v
101
- }), V = i && s ? M({
102
- prices: s.prices,
103
- salePrices: s.sale_prices,
104
- fallbackPrice: s.price,
105
- fallbackSalePrice: s.sale_price,
106
- saleStartAt: s.sale_start_at,
107
- saleEndAt: s.sale_end_at,
108
- scheduledPrice: s.scheduled_price,
109
- scheduledPrices: s.scheduled_prices,
110
- scheduledPriceAt: s.scheduled_price_at,
101
+ }), V = s && o ? M({
102
+ prices: o.prices,
103
+ salePrices: o.sale_prices,
104
+ fallbackPrice: o.price,
105
+ fallbackSalePrice: o.sale_price,
106
+ saleStartAt: o.sale_start_at,
107
+ saleEndAt: o.sale_end_at,
108
+ scheduledPrice: o.scheduled_price,
109
+ scheduledPrices: o.scheduled_prices,
110
+ scheduledPriceAt: o.scheduled_price_at,
111
111
  currencyCode: m,
112
112
  currencies: v
113
- }) : null, g = V?.price ?? A.price, y = V?.sale_price ?? A.sale_price, l = i ? s?.stock_quantity ?? 0 : t.stock ?? 0, K = E(() => {
114
- if (!s?.image_url)
113
+ }) : null, g = V?.price ?? A.price, y = V?.sale_price ?? A.sale_price, r = s ? o?.stock_quantity ?? 0 : t.stock ?? 0, K = E(() => {
114
+ if (!o?.image_url)
115
115
  return W;
116
- const o = {
117
- url: s.image_url,
118
- alt: `${t.title} ${s.label}`
119
- }, c = W.filter(
120
- (n) => n.url !== s.image_url
116
+ const i = {
117
+ url: o.image_url,
118
+ alt: `${t.title} ${o.label}`
119
+ }, n = W.filter(
120
+ (c) => c.url !== o.image_url
121
121
  );
122
- return [o, ...c];
123
- }, [W, t.title, s]), X = typeof y == "number" && g > 0 ? Math.round(
122
+ return [i, ...n];
123
+ }, [W, t.title, o]), X = typeof y == "number" && g > 0 ? Math.round(
124
124
  (g - y) / g * 100
125
- ) : 0, q = i && s ? {
125
+ ) : 0, q = s && o ? {
126
126
  ...t,
127
- sku: s.sku,
128
- price: s.price,
129
- prices: s.prices,
130
- sale_price: typeof s.sale_price == "number" ? s.sale_price : null,
131
- sale_prices: s.sale_prices,
132
- image_url: s.image_url || t.image_url,
133
- stock: s.stock_quantity,
134
- variant_id: s.id,
135
- variant_label: s.label,
136
- selected_options: s.selected_options,
127
+ sku: o.sku,
128
+ price: o.price,
129
+ prices: o.prices,
130
+ sale_price: typeof o.sale_price == "number" ? o.sale_price : null,
131
+ sale_prices: o.sale_prices,
132
+ image_url: o.image_url || t.image_url,
133
+ stock: o.stock_quantity,
134
+ variant_id: o.id,
135
+ variant_label: o.label,
136
+ selected_options: o.selected_options,
137
137
  currency_code: m
138
138
  } : {
139
139
  ...t,
140
140
  currency_code: m
141
- }, z = (o, c) => {
141
+ }, z = (i, n) => {
142
142
  w(
143
- (n) => F(b, d, {
144
- ...n,
145
- [o]: c
143
+ (c) => F(b, u, {
144
+ ...c,
145
+ [i]: n
146
146
  })
147
147
  );
148
- }, H = p(
148
+ }, H = N(
149
149
  "ecommerce.in_stock",
150
- `${l} in stock`,
151
- { count: String(l) }
152
- ), O = p(
150
+ `${r} in stock`,
151
+ { count: String(r) }
152
+ ), O = N(
153
153
  "ecommerce.out_of_stock",
154
154
  "Out of stock"
155
- ), Q = p(
155
+ ), Q = N(
156
156
  "ecommerce.select_options",
157
157
  "Select Options"
158
- ), Y = p(
158
+ ), Y = N(
159
159
  "ecommerce.variant_selection_required",
160
160
  "Select one term from every dropdown to resolve a variation."
161
161
  );
162
162
  return /* @__PURE__ */ e("div", { className: "w-full animate-in fade-in slide-in-from-bottom-4 duration-700 ease-out", children: [
163
163
  /* @__PURE__ */ e("div", { className: "container mx-auto px-4 md:px-6 py-12", children: /* @__PURE__ */ e("div", { className: "grid gap-12 lg:grid-cols-[2fr_3fr] items-start", children: [
164
164
  /* @__PURE__ */ e("div", { className: "w-full max-w-2xl mx-auto lg:max-w-none", children: /* @__PURE__ */ e(me, { images: K, className: "w-full" }, void 0, !1, {
165
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
165
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
166
166
  lineNumber: 343,
167
167
  columnNumber: 13
168
168
  }, void 0) }, void 0, !1, {
169
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
169
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
170
170
  lineNumber: 342,
171
171
  columnNumber: 11
172
172
  }, void 0),
@@ -182,7 +182,7 @@ const je = ({
182
182
  void 0,
183
183
  !1,
184
184
  {
185
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
185
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
186
186
  lineNumber: 351,
187
187
  columnNumber: 17
188
188
  },
@@ -194,55 +194,55 @@ const je = ({
194
194
  href: "#reviews-section",
195
195
  className: "flex items-center gap-1.5 group hover:opacity-85 transition-opacity",
196
196
  children: [
197
- /* @__PURE__ */ e("div", { className: "flex items-center text-amber-500", children: Array.from({ length: 5 }).map((o, c) => /* @__PURE__ */ e(
197
+ /* @__PURE__ */ e("div", { className: "flex items-center text-amber-500", children: Array.from({ length: 5 }).map((i, n) => /* @__PURE__ */ e(
198
198
  "svg",
199
199
  {
200
- className: re(
200
+ className: le(
201
201
  "h-4 w-4 fill-current",
202
- c < Math.round(t.average_rating || 0) ? "text-amber-500" : "text-slate-300 dark:text-slate-700"
202
+ n < Math.round(t.average_rating || 0) ? "text-amber-500" : "text-slate-300 dark:text-slate-700"
203
203
  ),
204
204
  viewBox: "0 0 20 20",
205
205
  fill: "currentColor",
206
206
  children: /* @__PURE__ */ e("path", { d: "M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" }, void 0, !1, {
207
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
207
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
208
208
  lineNumber: 377,
209
209
  columnNumber: 27
210
210
  }, void 0)
211
211
  },
212
- c,
212
+ n,
213
213
  !1,
214
214
  {
215
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
215
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
216
216
  lineNumber: 366,
217
217
  columnNumber: 25
218
218
  },
219
219
  void 0
220
220
  )) }, void 0, !1, {
221
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
221
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
222
222
  lineNumber: 364,
223
223
  columnNumber: 21
224
224
  }, void 0),
225
225
  t.total_reviews && t.total_reviews > 0 ? /* @__PURE__ */ e(Z, { children: [
226
226
  /* @__PURE__ */ e("span", { className: "text-sm font-semibold text-slate-700 dark:text-slate-300", children: t.average_rating?.toFixed(1) }, void 0, !1, {
227
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
227
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
228
228
  lineNumber: 383,
229
229
  columnNumber: 25
230
230
  }, void 0),
231
231
  /* @__PURE__ */ e("span", { className: "text-sm text-muted-foreground underline decoration-dotted group-hover:text-primary", children: [
232
232
  "(",
233
- t.total_reviews === 1 ? r("reviews.review_count_one", { count: t.total_reviews }) : r("reviews.review_count_other", { count: t.total_reviews }),
233
+ t.total_reviews === 1 ? l("reviews.review_count_one", { count: t.total_reviews }) : l("reviews.review_count_other", { count: t.total_reviews }),
234
234
  ")"
235
235
  ] }, void 0, !0, {
236
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
236
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
237
237
  lineNumber: 386,
238
238
  columnNumber: 25
239
239
  }, void 0)
240
240
  ] }, void 0, !0, {
241
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
241
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
242
242
  lineNumber: 382,
243
243
  columnNumber: 23
244
- }, void 0) : /* @__PURE__ */ e("span", { className: "text-xs text-muted-foreground group-hover:text-primary underline decoration-dotted", children: r("reviews.be_the_first") }, void 0, !1, {
245
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
244
+ }, void 0) : /* @__PURE__ */ e("span", { className: "text-xs text-muted-foreground group-hover:text-primary underline decoration-dotted", children: l("reviews.be_the_first") }, void 0, !1, {
245
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
246
246
  lineNumber: 393,
247
247
  columnNumber: 23
248
248
  }, void 0)
@@ -251,40 +251,40 @@ const je = ({
251
251
  void 0,
252
252
  !0,
253
253
  {
254
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
254
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
255
255
  lineNumber: 360,
256
256
  columnNumber: 19
257
257
  },
258
258
  void 0
259
259
  ) }, void 0, !1, {
260
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
260
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
261
261
  lineNumber: 359,
262
262
  columnNumber: 17
263
263
  }, void 0),
264
- t.categories && t.categories.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap items-center gap-1.5 text-xs font-bold uppercase tracking-widest text-amber-600 dark:text-amber-400", children: t.categories.map((o, c) => {
265
- const n = pe(
266
- o.name,
267
- o.name_translations,
268
- u
264
+ t.categories && t.categories.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap items-center gap-1.5 text-xs font-bold uppercase tracking-widest text-amber-600 dark:text-amber-400", children: t.categories.map((i, n) => {
265
+ const c = Ne(
266
+ i.name,
267
+ i.name_translations,
268
+ d
269
269
  );
270
270
  return /* @__PURE__ */ e(ee.Fragment, { children: [
271
- c > 0 && /* @__PURE__ */ e("span", { className: "text-muted-foreground/30", children: "•" }, void 0, !1, {
272
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
271
+ n > 0 && /* @__PURE__ */ e("span", { className: "text-muted-foreground/30", children: "•" }, void 0, !1, {
272
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
273
273
  lineNumber: 411,
274
274
  columnNumber: 29
275
275
  }, void 0),
276
- /* @__PURE__ */ e("span", { children: n }, void 0, !1, {
277
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
276
+ /* @__PURE__ */ e("span", { children: c }, void 0, !1, {
277
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
278
278
  lineNumber: 413,
279
279
  columnNumber: 27
280
280
  }, void 0)
281
- ] }, o.id, !0, {
282
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
281
+ ] }, i.id, !0, {
282
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
283
283
  lineNumber: 409,
284
284
  columnNumber: 25
285
285
  }, void 0);
286
286
  }) }, void 0, !1, {
287
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
287
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
288
288
  lineNumber: 401,
289
289
  columnNumber: 19
290
290
  }, void 0),
@@ -304,13 +304,13 @@ const je = ({
304
304
  void 0,
305
305
  !1,
306
306
  {
307
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
307
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
308
308
  lineNumber: 425,
309
309
  columnNumber: 21
310
310
  },
311
311
  void 0
312
312
  ) : a ? /* @__PURE__ */ e("p", { className: "text-lg mb-4 italic text-muted-foreground", children: "Add a short product description." }, void 0, !1, {
313
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
313
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
314
314
  lineNumber: 434,
315
315
  columnNumber: 21
316
316
  }, void 0) : null
@@ -318,7 +318,7 @@ const je = ({
318
318
  void 0,
319
319
  !1,
320
320
  {
321
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
321
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
322
322
  lineNumber: 420,
323
323
  columnNumber: 17
324
324
  },
@@ -330,32 +330,32 @@ const je = ({
330
330
  {
331
331
  variant: "destructive",
332
332
  className: "px-2.5 py-1 text-xs font-bold uppercase tracking-wide animate-pulse shadow-sm",
333
- children: r("ecommerce.sale_badge", {
333
+ children: l("ecommerce.sale_badge", {
334
334
  percent: String(X)
335
335
  })
336
336
  },
337
337
  void 0,
338
338
  !1,
339
339
  {
340
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
340
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
341
341
  lineNumber: 442,
342
342
  columnNumber: 21
343
343
  },
344
344
  void 0
345
345
  ),
346
- !N && l > 0 && l < 10 && /* @__PURE__ */ e(
346
+ !x && r > 0 && r < 10 && /* @__PURE__ */ e(
347
347
  R,
348
348
  {
349
349
  variant: "outline",
350
350
  className: "text-amber-600 border-amber-200 bg-amber-50",
351
- children: r("ecommerce.low_stock", {
352
- count: String(l)
351
+ children: l("ecommerce.low_stock", {
352
+ count: String(r)
353
353
  })
354
354
  },
355
355
  void 0,
356
356
  !1,
357
357
  {
358
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
358
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
359
359
  lineNumber: 452,
360
360
  columnNumber: 21
361
361
  },
@@ -371,36 +371,36 @@ const je = ({
371
371
  void 0,
372
372
  !1,
373
373
  {
374
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
374
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
375
375
  lineNumber: 462,
376
376
  columnNumber: 21
377
377
  },
378
378
  void 0
379
379
  )
380
380
  ] }, void 0, !0, {
381
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
381
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
382
382
  lineNumber: 440,
383
383
  columnNumber: 17
384
384
  }, void 0)
385
385
  ] }, void 0, !0, {
386
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
386
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
387
387
  lineNumber: 348,
388
388
  columnNumber: 15
389
389
  }, void 0) }, void 0, !1, {
390
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
390
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
391
391
  lineNumber: 347,
392
392
  columnNumber: 13
393
393
  }, void 0),
394
394
  /* @__PURE__ */ e("div", { className: "p-5 rounded-2xl bg-card/60 border border-border/80 shadow-md backdrop-blur-md space-y-4", children: [
395
- L ? N ? /* @__PURE__ */ e(ue, { product: t }, void 0, !1, {
396
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
395
+ L ? x ? /* @__PURE__ */ e(de, { product: t }, void 0, !1, {
396
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
397
397
  lineNumber: 478,
398
398
  columnNumber: 17
399
399
  }, void 0) : /* @__PURE__ */ e("div", { className: "space-y-3.5", children: [
400
400
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between gap-4", children: [
401
401
  /* @__PURE__ */ e("div", { className: "space-y-1", children: [
402
- /* @__PURE__ */ e("span", { className: "text-[10px] font-bold text-muted-foreground uppercase tracking-widest", children: p("ecommerce.price", "Price") }, void 0, !1, {
403
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
402
+ /* @__PURE__ */ e("span", { className: "text-[10px] font-bold text-muted-foreground uppercase tracking-widest", children: N("ecommerce.price", "Price") }, void 0, !1, {
403
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
404
404
  lineNumber: 484,
405
405
  columnNumber: 23
406
406
  }, void 0),
@@ -409,111 +409,111 @@ const je = ({
409
409
  y ?? g,
410
410
  m
411
411
  ) }, void 0, !1, {
412
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
412
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
413
413
  lineNumber: 488,
414
414
  columnNumber: 25
415
415
  }, void 0),
416
416
  typeof y == "number" && /* @__PURE__ */ e("span", { className: "text-lg text-muted-foreground line-through decoration-destructive/20 decoration-1", children: $(g, m) }, void 0, !1, {
417
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
417
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
418
418
  lineNumber: 495,
419
419
  columnNumber: 27
420
420
  }, void 0)
421
421
  ] }, void 0, !0, {
422
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
422
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
423
423
  lineNumber: 487,
424
424
  columnNumber: 23
425
425
  }, void 0)
426
426
  ] }, void 0, !0, {
427
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
427
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
428
428
  lineNumber: 483,
429
429
  columnNumber: 21
430
430
  }, void 0),
431
- !N && (s || !i) && /* @__PURE__ */ e("div", { className: "text-right space-y-1", children: [
431
+ !x && (o || !s) && /* @__PURE__ */ e("div", { className: "text-right space-y-1", children: [
432
432
  /* @__PURE__ */ e("span", { className: "text-[10px] font-bold text-muted-foreground uppercase tracking-widest block", children: [
433
- !i && t.sku && /* @__PURE__ */ e("span", { className: "mr-2 font-normal lowercase normal-case text-muted-foreground/70", children: [
433
+ !s && t.sku && /* @__PURE__ */ e("span", { className: "mr-2 font-normal lowercase normal-case text-muted-foreground/70", children: [
434
434
  "SKU: ",
435
435
  t.sku
436
436
  ] }, void 0, !0, {
437
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
437
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
438
438
  lineNumber: 506,
439
439
  columnNumber: 29
440
440
  }, void 0),
441
- p("ecommerce.status", "Status")
441
+ N("ecommerce.status", "Status")
442
442
  ] }, void 0, !0, {
443
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
443
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
444
444
  lineNumber: 504,
445
445
  columnNumber: 25
446
446
  }, void 0),
447
- /* @__PURE__ */ e("div", { className: (l ?? 0) > 0 ? "text-emerald-600 dark:text-emerald-400 font-semibold text-sm" : "text-destructive font-semibold text-sm", children: (l ?? 0) > 0 ? H : O }, void 0, !1, {
448
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
447
+ /* @__PURE__ */ e("div", { className: (r ?? 0) > 0 ? "text-emerald-600 dark:text-emerald-400 font-semibold text-sm" : "text-destructive font-semibold text-sm", children: (r ?? 0) > 0 ? H : O }, void 0, !1, {
448
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
449
449
  lineNumber: 512,
450
450
  columnNumber: 25
451
451
  }, void 0)
452
452
  ] }, void 0, !0, {
453
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
453
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
454
454
  lineNumber: 503,
455
455
  columnNumber: 23
456
456
  }, void 0)
457
457
  ] }, void 0, !0, {
458
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
458
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
459
459
  lineNumber: 482,
460
460
  columnNumber: 19
461
461
  }, void 0),
462
- i && /* @__PURE__ */ e("div", { className: "space-y-3", children: /* @__PURE__ */ e("div", { className: "grid gap-3 sm:grid-cols-2", children: b.map((o) => {
463
- const c = Ne(
464
- d,
465
- o.id,
466
- x
462
+ s && /* @__PURE__ */ e("div", { className: "space-y-3", children: /* @__PURE__ */ e("div", { className: "grid gap-3 sm:grid-cols-2", children: b.map((i) => {
463
+ const n = xe(
464
+ u,
465
+ i.id,
466
+ p
467
467
  );
468
468
  return /* @__PURE__ */ e("div", { className: "space-y-1", children: [
469
469
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: [
470
470
  /* @__PURE__ */ e(
471
- ne,
471
+ ce,
472
472
  {
473
- htmlFor: `attribute-${o.id}`,
473
+ htmlFor: `attribute-${i.id}`,
474
474
  className: "text-[11px] font-semibold text-muted-foreground uppercase tracking-wider",
475
- children: o.name
475
+ children: i.name
476
476
  },
477
477
  void 0,
478
478
  !1,
479
479
  {
480
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
480
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
481
481
  lineNumber: 534,
482
482
  columnNumber: 33
483
483
  },
484
484
  void 0
485
485
  ),
486
- s?.sku && /* @__PURE__ */ e("span", { className: "text-[10px] text-muted-foreground font-mono", children: s.sku }, void 0, !1, {
487
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
486
+ o?.sku && /* @__PURE__ */ e("span", { className: "text-[10px] text-muted-foreground font-mono", children: o.sku }, void 0, !1, {
487
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
488
488
  lineNumber: 541,
489
489
  columnNumber: 35
490
490
  }, void 0)
491
491
  ] }, void 0, !0, {
492
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
492
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
493
493
  lineNumber: 533,
494
494
  columnNumber: 31
495
495
  }, void 0),
496
496
  /* @__PURE__ */ e(
497
497
  "select",
498
498
  {
499
- id: `attribute-${o.id}`,
499
+ id: `attribute-${i.id}`,
500
500
  className: "flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
501
- value: x[o.id] || "",
502
- onChange: (n) => z(
503
- o.id,
504
- n.target.value
501
+ value: p[i.id] || "",
502
+ onChange: (c) => z(
503
+ i.id,
504
+ c.target.value
505
505
  ),
506
- children: o.terms.map((n) => /* @__PURE__ */ e(
506
+ children: i.terms.map((c) => /* @__PURE__ */ e(
507
507
  "option",
508
508
  {
509
- value: n.id,
510
- disabled: !c.has(n.id),
511
- children: n.value
509
+ value: c.id,
510
+ disabled: !n.has(c.id),
511
+ children: c.value
512
512
  },
513
- n.id,
513
+ c.id,
514
514
  !1,
515
515
  {
516
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
516
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
517
517
  lineNumber: 558,
518
518
  columnNumber: 35
519
519
  },
@@ -523,38 +523,38 @@ const je = ({
523
523
  void 0,
524
524
  !1,
525
525
  {
526
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
526
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
527
527
  lineNumber: 546,
528
528
  columnNumber: 31
529
529
  },
530
530
  void 0
531
531
  )
532
- ] }, o.id, !0, {
533
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
532
+ ] }, i.id, !0, {
533
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
534
534
  lineNumber: 532,
535
535
  columnNumber: 29
536
536
  }, void 0);
537
537
  }) }, void 0, !1, {
538
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
538
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
539
539
  lineNumber: 522,
540
540
  columnNumber: 23
541
541
  }, void 0) }, void 0, !1, {
542
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
542
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
543
543
  lineNumber: 521,
544
544
  columnNumber: 21
545
545
  }, void 0),
546
- i && !s && /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground italic pt-1", children: Y }, void 0, !1, {
547
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
546
+ s && !o && /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground italic pt-1", children: Y }, void 0, !1, {
547
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
548
548
  lineNumber: 575,
549
549
  columnNumber: 21
550
550
  }, void 0),
551
551
  /* @__PURE__ */ e("div", { className: "flex items-center gap-3 pt-1", children: [
552
- !N && (l ?? 0) > 0 && /* @__PURE__ */ e("div", { className: "flex items-center border rounded-lg h-12 bg-background border-input select-none", children: [
552
+ !x && (r ?? 0) > 0 && /* @__PURE__ */ e("div", { className: "flex items-center border rounded-lg h-12 bg-background border-input select-none", children: [
553
553
  /* @__PURE__ */ e(
554
554
  "button",
555
555
  {
556
556
  type: "button",
557
- onClick: () => S((o) => Math.max(1, o - 1)),
557
+ onClick: () => S((i) => Math.max(1, i - 1)),
558
558
  className: "px-3 h-full flex items-center justify-center text-muted-foreground hover:text-foreground active:scale-95 transition-all text-lg font-medium",
559
559
  disabled: _ <= 1,
560
560
  children: "-"
@@ -562,14 +562,14 @@ const je = ({
562
562
  void 0,
563
563
  !1,
564
564
  {
565
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
565
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
566
566
  lineNumber: 584,
567
567
  columnNumber: 25
568
568
  },
569
569
  void 0
570
570
  ),
571
571
  /* @__PURE__ */ e("span", { className: "w-8 text-center text-sm font-semibold", children: _ }, void 0, !1, {
572
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
572
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
573
573
  lineNumber: 592,
574
574
  columnNumber: 25
575
575
  }, void 0),
@@ -578,43 +578,43 @@ const je = ({
578
578
  {
579
579
  type: "button",
580
580
  onClick: () => S(
581
- (o) => l !== null && o >= l ? o : o + 1
581
+ (i) => r !== null && i >= r ? i : i + 1
582
582
  ),
583
583
  className: "px-3 h-full flex items-center justify-center text-muted-foreground hover:text-foreground active:scale-95 transition-all text-lg font-medium",
584
- disabled: l !== null && _ >= l,
584
+ disabled: r !== null && _ >= r,
585
585
  children: "+"
586
586
  },
587
587
  void 0,
588
588
  !1,
589
589
  {
590
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
590
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
591
591
  lineNumber: 595,
592
592
  columnNumber: 25
593
593
  },
594
594
  void 0
595
595
  )
596
596
  ] }, void 0, !0, {
597
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
597
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
598
598
  lineNumber: 583,
599
599
  columnNumber: 23
600
600
  }, void 0),
601
- i && (!s || (l ?? 0) <= 0) ? /* @__PURE__ */ e(
602
- ie,
601
+ s && (!o || (r ?? 0) <= 0) ? /* @__PURE__ */ e(
602
+ se,
603
603
  {
604
604
  disabled: !0,
605
605
  className: "flex-1 h-12 text-md font-bold shadow-md",
606
- children: s ? O : Q
606
+ children: o ? O : Q
607
607
  },
608
608
  void 0,
609
609
  !1,
610
610
  {
611
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
611
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
612
612
  lineNumber: 616,
613
613
  columnNumber: 23
614
614
  },
615
615
  void 0
616
616
  ) : /* @__PURE__ */ e(
617
- de,
617
+ ue,
618
618
  {
619
619
  product: q,
620
620
  quantity: _,
@@ -623,123 +623,123 @@ const je = ({
623
623
  void 0,
624
624
  !1,
625
625
  {
626
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
626
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
627
627
  lineNumber: 623,
628
628
  columnNumber: 23
629
629
  },
630
630
  void 0
631
631
  )
632
632
  ] }, void 0, !0, {
633
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
633
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
634
634
  lineNumber: 581,
635
635
  columnNumber: 19
636
636
  }, void 0)
637
637
  ] }, void 0, !0, {
638
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
638
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
639
639
  lineNumber: 480,
640
640
  columnNumber: 17
641
641
  }, void 0) : P,
642
- /* @__PURE__ */ e(le, { className: "opacity-60 my-0.5" }, void 0, !1, {
643
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
642
+ /* @__PURE__ */ e(re, { className: "opacity-60 my-0.5" }, void 0, !1, {
643
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
644
644
  lineNumber: 633,
645
645
  columnNumber: 15
646
646
  }, void 0),
647
647
  /* @__PURE__ */ e("div", { className: "grid grid-cols-2 gap-4 text-center text-[11px] font-medium text-muted-foreground pt-1", children: [
648
- /* @__PURE__ */ e("div", { className: "flex items-center justify-center gap-2", children: N ? /* @__PURE__ */ e("span", { className: "inline-flex items-center gap-1.5", children: [
648
+ /* @__PURE__ */ e("div", { className: "flex items-center justify-center gap-2", children: x ? /* @__PURE__ */ e("span", { className: "inline-flex items-center gap-1.5", children: [
649
649
  /* @__PURE__ */ e(te, { className: "h-3.5 w-3.5" }, void 0, !1, {
650
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
650
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
651
651
  lineNumber: 639,
652
652
  columnNumber: 23
653
653
  }, void 0),
654
- r("ecommerce.instant_digital_delivery")
654
+ l("ecommerce.instant_digital_delivery")
655
655
  ] }, void 0, !0, {
656
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
656
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
657
657
  lineNumber: 638,
658
658
  columnNumber: 21
659
659
  }, void 0) : /* @__PURE__ */ e("span", { className: "inline-flex items-center gap-1.5", children: [
660
- /* @__PURE__ */ e(se, { className: "h-3.5 w-3.5" }, void 0, !1, {
661
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
660
+ /* @__PURE__ */ e(oe, { className: "h-3.5 w-3.5" }, void 0, !1, {
661
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
662
662
  lineNumber: 644,
663
663
  columnNumber: 23
664
664
  }, void 0),
665
- r("ecommerce.free_shipping")
665
+ l("ecommerce.free_shipping")
666
666
  ] }, void 0, !0, {
667
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
667
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
668
668
  lineNumber: 643,
669
669
  columnNumber: 21
670
670
  }, void 0) }, void 0, !1, {
671
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
671
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
672
672
  lineNumber: 636,
673
673
  columnNumber: 17
674
674
  }, void 0),
675
675
  /* @__PURE__ */ e("div", { className: "flex items-center justify-center gap-2", children: /* @__PURE__ */ e("span", { className: "inline-flex items-center gap-1.5", children: [
676
- /* @__PURE__ */ e(oe, { className: "h-3.5 w-3.5" }, void 0, !1, {
677
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
676
+ /* @__PURE__ */ e(ie, { className: "h-3.5 w-3.5" }, void 0, !1, {
677
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
678
678
  lineNumber: 651,
679
679
  columnNumber: 21
680
680
  }, void 0),
681
- r("ecommerce.secure_checkout")
681
+ l("ecommerce.secure_checkout")
682
682
  ] }, void 0, !0, {
683
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
683
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
684
684
  lineNumber: 650,
685
685
  columnNumber: 19
686
686
  }, void 0) }, void 0, !1, {
687
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
687
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
688
688
  lineNumber: 649,
689
689
  columnNumber: 17
690
690
  }, void 0)
691
691
  ] }, void 0, !0, {
692
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
692
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
693
693
  lineNumber: 635,
694
694
  columnNumber: 15
695
695
  }, void 0)
696
696
  ] }, void 0, !0, {
697
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
697
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
698
698
  lineNumber: 474,
699
699
  columnNumber: 13
700
700
  }, void 0)
701
701
  ] }, void 0, !0, {
702
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
702
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
703
703
  lineNumber: 346,
704
704
  columnNumber: 11
705
705
  }, void 0)
706
706
  ] }, void 0, !0, {
707
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
707
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
708
708
  lineNumber: 341,
709
709
  columnNumber: 9
710
710
  }, void 0) }, void 0, !1, {
711
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
711
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
712
712
  lineNumber: 340,
713
713
  columnNumber: 7
714
714
  }, void 0),
715
- /* @__PURE__ */ e("div", { className: "min-w-0 w-full", ...f ? void 0 : G, children: f || (t.description_json ? /* @__PURE__ */ e("div", { className: "container mx-auto px-4 md:px-6 pb-12 prose prose-neutral dark:prose-invert max-w-none leading-relaxed", children: /* @__PURE__ */ e(xe, { content: t.description_json }, void 0, !1, {
716
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
715
+ /* @__PURE__ */ e("div", { className: "min-w-0 w-full", ...f ? void 0 : G, children: f || (t.description_json ? /* @__PURE__ */ e("div", { className: "container mx-auto px-4 md:px-6 pb-12 prose prose-neutral dark:prose-invert max-w-none leading-relaxed", children: /* @__PURE__ */ e(pe, { content: t.description_json }, void 0, !1, {
716
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
717
717
  lineNumber: 666,
718
718
  columnNumber: 13
719
719
  }, void 0) }, void 0, !1, {
720
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
720
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
721
721
  lineNumber: 665,
722
722
  columnNumber: 11
723
- }, void 0) : /* @__PURE__ */ e("div", { className: "container mx-auto px-4 md:px-6 pb-12", children: /* @__PURE__ */ e("p", { className: "italic text-sm text-muted-foreground", children: r("ecommerce.no_description") }, void 0, !1, {
724
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
723
+ }, void 0) : /* @__PURE__ */ e("div", { className: "container mx-auto px-4 md:px-6 pb-12", children: /* @__PURE__ */ e("p", { className: "italic text-sm text-muted-foreground", children: l("ecommerce.no_description") }, void 0, !1, {
724
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
725
725
  lineNumber: 670,
726
726
  columnNumber: 13
727
727
  }, void 0) }, void 0, !1, {
728
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
728
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
729
729
  lineNumber: 669,
730
730
  columnNumber: 11
731
731
  }, void 0)) }, void 0, !1, {
732
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
732
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
733
733
  lineNumber: 661,
734
734
  columnNumber: 7
735
735
  }, void 0),
736
736
  k && /* @__PURE__ */ e("div", { id: "reviews-section", className: "border-t border-border mt-12 pt-12", children: k }, void 0, !1, {
737
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
737
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
738
738
  lineNumber: 679,
739
739
  columnNumber: 9
740
740
  }, void 0)
741
741
  ] }, void 0, !0, {
742
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
742
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
743
743
  lineNumber: 339,
744
744
  columnNumber: 5
745
745
  }, void 0);