@nextblock-cms/ecom 0.17.3 → 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,11 +1,11 @@
1
1
  'use client';
2
- import { jsxDEV as s } from "react/jsx-dev-runtime";
3
- import { useState as n } from "react";
2
+ import { jsxDEV as t } from "react/jsx-dev-runtime";
3
+ import { useState as c } from "react";
4
4
  import { useRouter as K } from "next/navigation";
5
- import { Label as m, Input as b, Button as c, Badge as O } from "@nextblock-cms/ui";
5
+ import { Label as a, Input as u, Button as o, Badge as O } from "@nextblock-cms/ui";
6
6
  import { Plus as C, Trash2 as I, ChevronUp as Q, ChevronDown as X } from "lucide-react";
7
7
  function re({
8
- attributes: l,
8
+ attributes: m,
9
9
  languages: F,
10
10
  createAttributeAction: S,
11
11
  deleteAttributeAction: z,
@@ -14,36 +14,36 @@ function re({
14
14
  reorderTermsAction: _,
15
15
  updateTranslationsAction: B
16
16
  }) {
17
- const o = K(), [u, g] = n(""), [h, f] = n(null), [L, v] = n(null), [A, D] = n(null), [k, M] = n(null), [d, W] = n({}), [w, R] = n(
18
- () => l.reduce((e, t) => (e[t.id] = t.name_translations || {}, e), {})
19
- ), [y, E] = n(
20
- () => l.reduce((e, t) => {
21
- for (const r of t.terms)
17
+ const n = K(), [b, h] = c(""), [f, x] = c(null), [L, v] = c(null), [A, D] = c(null), [k, M] = c(null), [d, W] = c({}), [w, R] = c(
18
+ () => m.reduce((e, s) => (e[s.id] = s.name_translations || {}, e), {})
19
+ ), [y, E] = c(
20
+ () => m.reduce((e, s) => {
21
+ for (const r of s.terms)
22
22
  e[r.id] = r.value_translations || {};
23
23
  return e;
24
24
  }, {})
25
25
  ), p = F.filter((e) => !e.is_default), U = async (e) => {
26
26
  e.preventDefault();
27
- const t = await S({ name: u });
28
- if (!t.success) {
29
- alert(t.error || "Failed to create attribute.");
27
+ const s = await S({ name: b });
28
+ if (!s.success) {
29
+ alert(s.error || "Failed to create attribute.");
30
30
  return;
31
31
  }
32
- g(""), o.refresh();
33
- }, V = async (e, t) => {
34
- e.preventDefault(), f(t);
32
+ h(""), n.refresh();
33
+ }, V = async (e, s) => {
34
+ e.preventDefault(), x(s);
35
35
  const r = await j({
36
- attributeId: t,
37
- value: d[t] || ""
36
+ attributeId: s,
37
+ value: d[s] || ""
38
38
  });
39
- if (f(null), !r.success) {
39
+ if (x(null), !r.success) {
40
40
  alert(r.error || "Failed to create term.");
41
41
  return;
42
42
  }
43
43
  W((i) => ({
44
44
  ...i,
45
- [t]: ""
46
- })), o.refresh();
45
+ [s]: ""
46
+ })), n.refresh();
47
47
  }, q = async (e) => {
48
48
  if (!window.confirm("Delete this attribute and all of its terms?"))
49
49
  return;
@@ -52,33 +52,33 @@ function re({
52
52
  alert(r.error || "Failed to delete attribute.");
53
53
  return;
54
54
  }
55
- o.refresh();
55
+ n.refresh();
56
56
  }, G = async (e) => {
57
57
  v(e);
58
- const t = await P(e);
59
- if (v(null), !t.success) {
60
- alert(t.error || "Failed to delete term.");
58
+ const s = await P(e);
59
+ if (v(null), !s.success) {
60
+ alert(s.error || "Failed to delete term.");
61
61
  return;
62
62
  }
63
- o.refresh();
64
- }, T = async (e, t, r) => {
65
- const i = e.terms.findIndex((x) => x.id === t), a = i + r;
66
- if (i === -1 || a < 0 || a >= e.terms.length)
63
+ n.refresh();
64
+ }, T = async (e, s, r) => {
65
+ const i = e.terms.findIndex((g) => g.id === s), l = i + r;
66
+ if (i === -1 || l < 0 || l >= e.terms.length)
67
67
  return;
68
68
  const N = [...e.terms], [J] = N.splice(i, 1);
69
- N.splice(a, 0, J), D(e.id);
69
+ N.splice(l, 0, J), D(e.id);
70
70
  const $ = await _({
71
71
  attributeId: e.id,
72
- orderedTermIds: N.map((x) => x.id)
72
+ orderedTermIds: N.map((g) => g.id)
73
73
  });
74
74
  if (D(null), !$.success) {
75
75
  alert($.error || "Failed to reorder terms.");
76
76
  return;
77
77
  }
78
- o.refresh();
78
+ n.refresh();
79
79
  }, H = async (e) => {
80
80
  M(e.id);
81
- const t = await B({
81
+ const s = await B({
82
82
  attributeId: e.id,
83
83
  nameTranslations: w[e.id] || {},
84
84
  termTranslations: e.terms.map((r) => ({
@@ -86,95 +86,95 @@ function re({
86
86
  valueTranslations: y[r.id] || {}
87
87
  }))
88
88
  });
89
- if (M(null), !t.success) {
90
- alert(t.error || "Failed to save translations.");
89
+ if (M(null), !s.success) {
90
+ alert(s.error || "Failed to save translations.");
91
91
  return;
92
92
  }
93
- o.refresh();
93
+ n.refresh();
94
94
  };
95
- return /* @__PURE__ */ s("div", { className: "space-y-6", children: [
96
- /* @__PURE__ */ s("form", { onSubmit: U, className: "rounded-lg border bg-card p-6 shadow-sm", children: /* @__PURE__ */ s("div", { className: "flex flex-wrap items-end gap-4", children: [
97
- /* @__PURE__ */ s("div", { className: "flex-1 min-w-[220px] space-y-2", children: [
98
- /* @__PURE__ */ s(m, { htmlFor: "attribute-name", children: "New Attribute" }, void 0, !1, {
99
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
95
+ return /* @__PURE__ */ t("div", { className: "space-y-6", children: [
96
+ /* @__PURE__ */ t("form", { onSubmit: U, className: "rounded-lg border bg-card p-6 shadow-sm", children: /* @__PURE__ */ t("div", { className: "flex flex-wrap items-end gap-4", children: [
97
+ /* @__PURE__ */ t("div", { className: "flex-1 min-w-[220px] space-y-2", children: [
98
+ /* @__PURE__ */ t(a, { htmlFor: "attribute-name", children: "New Attribute" }, void 0, !1, {
99
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
100
100
  lineNumber: 186,
101
101
  columnNumber: 13
102
102
  }, this),
103
- /* @__PURE__ */ s(
104
- b,
103
+ /* @__PURE__ */ t(
104
+ u,
105
105
  {
106
106
  id: "attribute-name",
107
- value: u,
108
- onChange: (e) => g(e.target.value),
107
+ value: b,
108
+ onChange: (e) => h(e.target.value),
109
109
  placeholder: "Material, Size, Color..."
110
110
  },
111
111
  void 0,
112
112
  !1,
113
113
  {
114
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
114
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
115
115
  lineNumber: 187,
116
116
  columnNumber: 13
117
117
  },
118
118
  this
119
119
  )
120
120
  ] }, void 0, !0, {
121
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
121
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
122
122
  lineNumber: 185,
123
123
  columnNumber: 11
124
124
  }, this),
125
- /* @__PURE__ */ s(c, { type: "submit", disabled: !u.trim(), children: [
126
- /* @__PURE__ */ s(C, { className: "mr-2 h-4 w-4" }, void 0, !1, {
127
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
125
+ /* @__PURE__ */ t(o, { type: "submit", disabled: !b.trim(), children: [
126
+ /* @__PURE__ */ t(C, { className: "mr-2 h-4 w-4" }, void 0, !1, {
127
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
128
128
  lineNumber: 195,
129
129
  columnNumber: 13
130
130
  }, this),
131
131
  "Create Attribute"
132
132
  ] }, void 0, !0, {
133
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
133
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
134
134
  lineNumber: 194,
135
135
  columnNumber: 11
136
136
  }, this)
137
137
  ] }, void 0, !0, {
138
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
138
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
139
139
  lineNumber: 184,
140
140
  columnNumber: 9
141
141
  }, this) }, void 0, !1, {
142
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
142
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
143
143
  lineNumber: 183,
144
144
  columnNumber: 7
145
145
  }, this),
146
- l.length === 0 ? /* @__PURE__ */ s("div", { className: "rounded-lg border border-dashed p-6 text-sm text-muted-foreground", children: "No global attributes have been created yet." }, void 0, !1, {
147
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
146
+ m.length === 0 ? /* @__PURE__ */ t("div", { className: "rounded-lg border border-dashed p-6 text-sm text-muted-foreground", children: "No global attributes have been created yet." }, void 0, !1, {
147
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
148
148
  lineNumber: 202,
149
149
  columnNumber: 9
150
- }, this) : /* @__PURE__ */ s("div", { className: "grid gap-6", children: l.map((e) => /* @__PURE__ */ s("div", { className: "rounded-lg border bg-card p-6 shadow-sm", children: [
151
- /* @__PURE__ */ s("div", { className: "flex flex-wrap items-start justify-between gap-4", children: [
152
- /* @__PURE__ */ s("div", { children: [
153
- /* @__PURE__ */ s("h2", { className: "text-lg font-semibold", children: e.name }, void 0, !1, {
154
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
150
+ }, this) : /* @__PURE__ */ t("div", { className: "grid gap-6", children: m.map((e) => /* @__PURE__ */ t("div", { className: "rounded-lg border bg-card p-6 shadow-sm", children: [
151
+ /* @__PURE__ */ t("div", { className: "flex flex-wrap items-start justify-between gap-4", children: [
152
+ /* @__PURE__ */ t("div", { children: [
153
+ /* @__PURE__ */ t("h2", { className: "text-lg font-semibold", children: e.name }, void 0, !1, {
154
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
155
155
  lineNumber: 211,
156
156
  columnNumber: 19
157
157
  }, this),
158
- /* @__PURE__ */ s("p", { className: "text-sm text-muted-foreground", children: e.slug }, void 0, !1, {
159
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
158
+ /* @__PURE__ */ t("p", { className: "text-sm text-muted-foreground", children: e.slug }, void 0, !1, {
159
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
160
160
  lineNumber: 212,
161
161
  columnNumber: 19
162
162
  }, this)
163
163
  ] }, void 0, !0, {
164
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
164
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
165
165
  lineNumber: 210,
166
166
  columnNumber: 17
167
167
  }, this),
168
- /* @__PURE__ */ s(
169
- c,
168
+ /* @__PURE__ */ t(
169
+ o,
170
170
  {
171
171
  type: "button",
172
172
  variant: "ghost",
173
173
  size: "icon",
174
174
  onClick: () => q(e.id),
175
175
  className: "text-muted-foreground hover:text-destructive",
176
- children: /* @__PURE__ */ s(I, { className: "h-4 w-4" }, void 0, !1, {
177
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
176
+ children: /* @__PURE__ */ t(I, { className: "h-4 w-4" }, void 0, !1, {
177
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
178
178
  lineNumber: 221,
179
179
  columnNumber: 19
180
180
  }, this)
@@ -182,53 +182,53 @@ function re({
182
182
  void 0,
183
183
  !1,
184
184
  {
185
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
185
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
186
186
  lineNumber: 214,
187
187
  columnNumber: 17
188
188
  },
189
189
  this
190
190
  )
191
191
  ] }, void 0, !0, {
192
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
192
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
193
193
  lineNumber: 209,
194
194
  columnNumber: 15
195
195
  }, this),
196
- /* @__PURE__ */ s("div", { className: "mt-4 space-y-2", children: e.terms.map((t, r) => /* @__PURE__ */ s(
196
+ /* @__PURE__ */ t("div", { className: "mt-4 space-y-2", children: e.terms.map((s, r) => /* @__PURE__ */ t(
197
197
  "div",
198
198
  {
199
199
  className: "flex flex-wrap items-center justify-between gap-3 rounded-lg border bg-muted/20 px-3 py-2",
200
200
  children: [
201
- /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
202
- /* @__PURE__ */ s(O, { variant: "secondary", className: "py-1.5", children: t.value }, void 0, !1, {
203
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
201
+ /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
202
+ /* @__PURE__ */ t(O, { variant: "secondary", className: "py-1.5", children: s.value }, void 0, !1, {
203
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
204
204
  lineNumber: 232,
205
205
  columnNumber: 23
206
206
  }, this),
207
- /* @__PURE__ */ s("span", { className: "text-xs text-muted-foreground", children: [
207
+ /* @__PURE__ */ t("span", { className: "text-xs text-muted-foreground", children: [
208
208
  "Position ",
209
209
  r + 1
210
210
  ] }, void 0, !0, {
211
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
211
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
212
212
  lineNumber: 235,
213
213
  columnNumber: 23
214
214
  }, this)
215
215
  ] }, void 0, !0, {
216
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
216
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
217
217
  lineNumber: 231,
218
218
  columnNumber: 21
219
219
  }, this),
220
- /* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
221
- /* @__PURE__ */ s(
222
- c,
220
+ /* @__PURE__ */ t("div", { className: "flex items-center gap-1", children: [
221
+ /* @__PURE__ */ t(
222
+ o,
223
223
  {
224
224
  type: "button",
225
225
  variant: "ghost",
226
226
  size: "icon",
227
227
  className: "h-8 w-8",
228
- onClick: () => T(e, t.id, -1),
228
+ onClick: () => T(e, s.id, -1),
229
229
  disabled: r === 0 || A === e.id,
230
- children: /* @__PURE__ */ s(Q, { className: "h-4 w-4" }, void 0, !1, {
231
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
230
+ children: /* @__PURE__ */ t(Q, { className: "h-4 w-4" }, void 0, !1, {
231
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
232
232
  lineNumber: 246,
233
233
  columnNumber: 25
234
234
  }, this)
@@ -236,23 +236,23 @@ function re({
236
236
  void 0,
237
237
  !1,
238
238
  {
239
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
239
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
240
240
  lineNumber: 238,
241
241
  columnNumber: 23
242
242
  },
243
243
  this
244
244
  ),
245
- /* @__PURE__ */ s(
246
- c,
245
+ /* @__PURE__ */ t(
246
+ o,
247
247
  {
248
248
  type: "button",
249
249
  variant: "ghost",
250
250
  size: "icon",
251
251
  className: "h-8 w-8",
252
- onClick: () => T(e, t.id, 1),
252
+ onClick: () => T(e, s.id, 1),
253
253
  disabled: r === e.terms.length - 1 || A === e.id,
254
- children: /* @__PURE__ */ s(X, { className: "h-4 w-4" }, void 0, !1, {
255
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
254
+ children: /* @__PURE__ */ t(X, { className: "h-4 w-4" }, void 0, !1, {
255
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
256
256
  lineNumber: 259,
257
257
  columnNumber: 25
258
258
  }, this)
@@ -260,23 +260,23 @@ function re({
260
260
  void 0,
261
261
  !1,
262
262
  {
263
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
263
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
264
264
  lineNumber: 248,
265
265
  columnNumber: 23
266
266
  },
267
267
  this
268
268
  ),
269
- /* @__PURE__ */ s(
270
- c,
269
+ /* @__PURE__ */ t(
270
+ o,
271
271
  {
272
272
  type: "button",
273
273
  variant: "ghost",
274
274
  size: "icon",
275
- onClick: () => G(t.id),
275
+ onClick: () => G(s.id),
276
276
  className: "h-8 w-8 text-muted-foreground hover:text-destructive",
277
- disabled: L === t.id,
278
- children: /* @__PURE__ */ s(I, { className: "h-4 w-4" }, void 0, !1, {
279
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
277
+ disabled: L === s.id,
278
+ children: /* @__PURE__ */ t(I, { className: "h-4 w-4" }, void 0, !1, {
279
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
280
280
  lineNumber: 269,
281
281
  columnNumber: 25
282
282
  }, this)
@@ -284,88 +284,88 @@ function re({
284
284
  void 0,
285
285
  !1,
286
286
  {
287
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
287
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
288
288
  lineNumber: 261,
289
289
  columnNumber: 23
290
290
  },
291
291
  this
292
292
  )
293
293
  ] }, void 0, !0, {
294
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
294
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
295
295
  lineNumber: 237,
296
296
  columnNumber: 21
297
297
  }, this)
298
298
  ]
299
299
  },
300
- t.id,
300
+ s.id,
301
301
  !0,
302
302
  {
303
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
303
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
304
304
  lineNumber: 227,
305
305
  columnNumber: 19
306
306
  },
307
307
  this
308
308
  )) }, void 0, !1, {
309
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
309
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
310
310
  lineNumber: 225,
311
311
  columnNumber: 15
312
312
  }, this),
313
- /* @__PURE__ */ s(
313
+ /* @__PURE__ */ t(
314
314
  "form",
315
315
  {
316
- onSubmit: (t) => V(t, e.id),
316
+ onSubmit: (s) => V(s, e.id),
317
317
  className: "mt-6 flex flex-wrap items-end gap-3",
318
318
  children: [
319
- /* @__PURE__ */ s("div", { className: "flex-1 min-w-[220px] space-y-2", children: [
320
- /* @__PURE__ */ s(m, { htmlFor: `term-input-${e.id}`, children: "Add Term" }, void 0, !1, {
321
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
319
+ /* @__PURE__ */ t("div", { className: "flex-1 min-w-[220px] space-y-2", children: [
320
+ /* @__PURE__ */ t(a, { htmlFor: `term-input-${e.id}`, children: "Add Term" }, void 0, !1, {
321
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
322
322
  lineNumber: 281,
323
323
  columnNumber: 19
324
324
  }, this),
325
- /* @__PURE__ */ s(
326
- b,
325
+ /* @__PURE__ */ t(
326
+ u,
327
327
  {
328
328
  id: `term-input-${e.id}`,
329
329
  value: d[e.id] || "",
330
- onChange: (t) => W((r) => ({
330
+ onChange: (s) => W((r) => ({
331
331
  ...r,
332
- [e.id]: t.target.value
332
+ [e.id]: s.target.value
333
333
  })),
334
334
  placeholder: `Add a term for ${e.name}`
335
335
  },
336
336
  void 0,
337
337
  !1,
338
338
  {
339
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
339
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
340
340
  lineNumber: 282,
341
341
  columnNumber: 19
342
342
  },
343
343
  this
344
344
  )
345
345
  ] }, void 0, !0, {
346
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
346
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
347
347
  lineNumber: 280,
348
348
  columnNumber: 17
349
349
  }, this),
350
- /* @__PURE__ */ s(
351
- c,
350
+ /* @__PURE__ */ t(
351
+ o,
352
352
  {
353
353
  type: "submit",
354
354
  variant: "outline",
355
- disabled: !d[e.id]?.trim() || h === e.id,
355
+ disabled: !d[e.id]?.trim() || f === e.id,
356
356
  children: [
357
- /* @__PURE__ */ s(C, { className: "mr-2 h-4 w-4" }, void 0, !1, {
358
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
357
+ /* @__PURE__ */ t(C, { className: "mr-2 h-4 w-4" }, void 0, !1, {
358
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
359
359
  lineNumber: 299,
360
360
  columnNumber: 19
361
361
  }, this),
362
- h === e.id ? "Saving..." : "Add Term"
362
+ f === e.id ? "Saving..." : "Add Term"
363
363
  ]
364
364
  },
365
365
  void 0,
366
366
  !0,
367
367
  {
368
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
368
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
369
369
  lineNumber: 294,
370
370
  columnNumber: 17
371
371
  },
@@ -376,32 +376,32 @@ function re({
376
376
  void 0,
377
377
  !0,
378
378
  {
379
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
379
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
380
380
  lineNumber: 276,
381
381
  columnNumber: 15
382
382
  },
383
383
  this
384
384
  ),
385
- p.length > 0 && /* @__PURE__ */ s("div", { className: "mt-6 border-t pt-6 space-y-4", children: [
386
- /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [
387
- /* @__PURE__ */ s("div", { children: [
388
- /* @__PURE__ */ s("h3", { className: "font-medium", children: "Translations" }, void 0, !1, {
389
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
385
+ p.length > 0 && /* @__PURE__ */ t("div", { className: "mt-6 border-t pt-6 space-y-4", children: [
386
+ /* @__PURE__ */ t("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [
387
+ /* @__PURE__ */ t("div", { children: [
388
+ /* @__PURE__ */ t("h3", { className: "font-medium", children: "Translations" }, void 0, !1, {
389
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
390
390
  lineNumber: 308,
391
391
  columnNumber: 23
392
392
  }, this),
393
- /* @__PURE__ */ s("p", { className: "text-sm text-muted-foreground", children: "Translate the attribute label and each term for every active site language." }, void 0, !1, {
394
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
393
+ /* @__PURE__ */ t("p", { className: "text-sm text-muted-foreground", children: "Translate the attribute label and each term for every active site language." }, void 0, !1, {
394
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
395
395
  lineNumber: 309,
396
396
  columnNumber: 23
397
397
  }, this)
398
398
  ] }, void 0, !0, {
399
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
399
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
400
400
  lineNumber: 307,
401
401
  columnNumber: 21
402
402
  }, this),
403
- /* @__PURE__ */ s(
404
- c,
403
+ /* @__PURE__ */ t(
404
+ o,
405
405
  {
406
406
  type: "button",
407
407
  variant: "outline",
@@ -412,37 +412,37 @@ function re({
412
412
  void 0,
413
413
  !1,
414
414
  {
415
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
415
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
416
416
  lineNumber: 313,
417
417
  columnNumber: 21
418
418
  },
419
419
  this
420
420
  )
421
421
  ] }, void 0, !0, {
422
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
422
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
423
423
  lineNumber: 306,
424
424
  columnNumber: 19
425
425
  }, this),
426
- /* @__PURE__ */ s("div", { className: "grid gap-4 md:grid-cols-2", children: p.map((t) => /* @__PURE__ */ s("div", { className: "space-y-2", children: [
427
- /* @__PURE__ */ s(m, { htmlFor: `attribute-translation-${e.id}-${t.code}`, children: [
426
+ /* @__PURE__ */ t("div", { className: "grid gap-4 md:grid-cols-2", children: p.map((s) => /* @__PURE__ */ t("div", { className: "space-y-2", children: [
427
+ /* @__PURE__ */ t(a, { htmlFor: `attribute-translation-${e.id}-${s.code}`, children: [
428
428
  "Attribute Name (",
429
- t.name,
429
+ s.name,
430
430
  ")"
431
431
  ] }, void 0, !0, {
432
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
432
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
433
433
  lineNumber: 326,
434
434
  columnNumber: 25
435
435
  }, this),
436
- /* @__PURE__ */ s(
437
- b,
436
+ /* @__PURE__ */ t(
437
+ u,
438
438
  {
439
- id: `attribute-translation-${e.id}-${t.code}`,
440
- value: w[e.id]?.[t.code] || "",
439
+ id: `attribute-translation-${e.id}-${s.code}`,
440
+ value: w[e.id]?.[s.code] || "",
441
441
  onChange: (r) => R((i) => ({
442
442
  ...i,
443
443
  [e.id]: {
444
444
  ...i[e.id] || {},
445
- [t.code]: r.target.value
445
+ [s.code]: r.target.value
446
446
  }
447
447
  })),
448
448
  placeholder: e.name
@@ -450,101 +450,101 @@ function re({
450
450
  void 0,
451
451
  !1,
452
452
  {
453
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
453
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
454
454
  lineNumber: 329,
455
455
  columnNumber: 25
456
456
  },
457
457
  this
458
458
  )
459
- ] }, `${e.id}-${t.code}`, !0, {
460
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
459
+ ] }, `${e.id}-${s.code}`, !0, {
460
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
461
461
  lineNumber: 325,
462
462
  columnNumber: 23
463
463
  }, this)) }, void 0, !1, {
464
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
464
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
465
465
  lineNumber: 323,
466
466
  columnNumber: 19
467
467
  }, this),
468
- /* @__PURE__ */ s("div", { className: "space-y-3", children: e.terms.map((t) => /* @__PURE__ */ s("div", { className: "rounded-lg border p-4 space-y-3", children: [
469
- /* @__PURE__ */ s("div", { children: [
470
- /* @__PURE__ */ s("p", { className: "font-medium", children: t.value }, void 0, !1, {
471
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
468
+ /* @__PURE__ */ t("div", { className: "space-y-3", children: e.terms.map((s) => /* @__PURE__ */ t("div", { className: "rounded-lg border p-4 space-y-3", children: [
469
+ /* @__PURE__ */ t("div", { children: [
470
+ /* @__PURE__ */ t("p", { className: "font-medium", children: s.value }, void 0, !1, {
471
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
472
472
  lineNumber: 351,
473
473
  columnNumber: 27
474
474
  }, this),
475
- /* @__PURE__ */ s("p", { className: "text-xs text-muted-foreground", children: "Translate this term for each language." }, void 0, !1, {
476
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
475
+ /* @__PURE__ */ t("p", { className: "text-xs text-muted-foreground", children: "Translate this term for each language." }, void 0, !1, {
476
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
477
477
  lineNumber: 352,
478
478
  columnNumber: 27
479
479
  }, this)
480
480
  ] }, void 0, !0, {
481
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
481
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
482
482
  lineNumber: 350,
483
483
  columnNumber: 25
484
484
  }, this),
485
- /* @__PURE__ */ s("div", { className: "grid gap-4 md:grid-cols-2", children: p.map((r) => /* @__PURE__ */ s("div", { className: "space-y-2", children: [
486
- /* @__PURE__ */ s(m, { htmlFor: `term-translation-${t.id}-${r.code}`, children: r.name }, void 0, !1, {
487
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
485
+ /* @__PURE__ */ t("div", { className: "grid gap-4 md:grid-cols-2", children: p.map((r) => /* @__PURE__ */ t("div", { className: "space-y-2", children: [
486
+ /* @__PURE__ */ t(a, { htmlFor: `term-translation-${s.id}-${r.code}`, children: r.name }, void 0, !1, {
487
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
488
488
  lineNumber: 357,
489
489
  columnNumber: 31
490
490
  }, this),
491
- /* @__PURE__ */ s(
492
- b,
491
+ /* @__PURE__ */ t(
492
+ u,
493
493
  {
494
- id: `term-translation-${t.id}-${r.code}`,
495
- value: y[t.id]?.[r.code] || "",
496
- onChange: (i) => E((a) => ({
497
- ...a,
498
- [t.id]: {
499
- ...a[t.id] || {},
494
+ id: `term-translation-${s.id}-${r.code}`,
495
+ value: y[s.id]?.[r.code] || "",
496
+ onChange: (i) => E((l) => ({
497
+ ...l,
498
+ [s.id]: {
499
+ ...l[s.id] || {},
500
500
  [r.code]: i.target.value
501
501
  }
502
502
  })),
503
- placeholder: t.value
503
+ placeholder: s.value
504
504
  },
505
505
  void 0,
506
506
  !1,
507
507
  {
508
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
508
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
509
509
  lineNumber: 360,
510
510
  columnNumber: 31
511
511
  },
512
512
  this
513
513
  )
514
- ] }, `${t.id}-${r.code}`, !0, {
515
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
514
+ ] }, `${s.id}-${r.code}`, !0, {
515
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
516
516
  lineNumber: 356,
517
517
  columnNumber: 29
518
518
  }, this)) }, void 0, !1, {
519
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
519
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
520
520
  lineNumber: 354,
521
521
  columnNumber: 25
522
522
  }, this)
523
- ] }, `translations-${t.id}`, !0, {
524
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
523
+ ] }, `translations-${s.id}`, !0, {
524
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
525
525
  lineNumber: 349,
526
526
  columnNumber: 23
527
527
  }, this)) }, void 0, !1, {
528
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
528
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
529
529
  lineNumber: 347,
530
530
  columnNumber: 19
531
531
  }, this)
532
532
  ] }, void 0, !0, {
533
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
533
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
534
534
  lineNumber: 305,
535
535
  columnNumber: 17
536
536
  }, this)
537
537
  ] }, e.id, !0, {
538
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
538
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
539
539
  lineNumber: 208,
540
540
  columnNumber: 13
541
541
  }, this)) }, void 0, !1, {
542
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
542
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
543
543
  lineNumber: 206,
544
544
  columnNumber: 9
545
545
  }, this)
546
546
  ] }, void 0, !0, {
547
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
547
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/pages/cms/products/attributes/components/AttributeManager.tsx",
548
548
  lineNumber: 182,
549
549
  columnNumber: 5
550
550
  }, this);