@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,166 +1,166 @@
1
1
  'use client';
2
- import { jsxDEV as e, Fragment as ms } from "react/jsx-dev-runtime";
2
+ import { jsxDEV as e, Fragment as ro } from "react/jsx-dev-runtime";
3
3
  import { Badge as Ke } from "@nextblock-cms/ui/badge";
4
- import { Button as pe } from "@nextblock-cms/ui/button";
4
+ import { Button as he } from "@nextblock-cms/ui/button";
5
5
  import { Card as G, CardHeader as H, CardTitle as Q, CardContent as X } from "@nextblock-cms/ui/card";
6
- import { Checkbox as rs } from "@nextblock-cms/ui/checkbox";
6
+ import { Checkbox as mo } from "@nextblock-cms/ui/checkbox";
7
7
  import { Input as T } from "@nextblock-cms/ui/input";
8
8
  import { Label as g } from "@nextblock-cms/ui/label";
9
- import { Separator as us } from "@nextblock-cms/ui/separator";
10
- import { RadioGroup as bs, RadioGroupItem as Le } from "@nextblock-cms/ui/radio-group";
11
- import { Checkout as as } from "@freemius/checkout";
9
+ import { Separator as uo } from "@nextblock-cms/ui/separator";
10
+ import { RadioGroup as bo, RadioGroupItem as Le } from "@nextblock-cms/ui/radio-group";
11
+ import { Checkout as ao } from "@freemius/checkout";
12
12
  import { getCartItemActivePrice as ge } from "../cart-store.es.js";
13
- import { useCart as ds } from "../use-cart.es.js";
14
- import { useState as N, useMemo as F, useEffect as te } from "react";
15
- import { X as xs, FlaskConical as fs, CreditCard as Ns, ChevronRight as ps, Loader2 as he, Package as hs, Download as ks, MapPin as vs } from "lucide-react";
16
- import { useTranslations as Ue, formatPrice as p } from "@nextblock-cms/utils";
17
- import { normalizeCountryCode as gs, countries as Cs } from "../countries.es.js";
18
- import { usePaymentReadiness as _s } from "../PaymentReadinessProvider.es.js";
19
- import { getShippingEstimates as Ds } from "../server-actions/shipping-actions.es.js";
20
- import { getTaxEstimate as ys } from "../server-actions/tax-actions.es.js";
13
+ import { useCart as po } from "../use-cart.es.js";
14
+ import { useState as N, useMemo as F, useEffect as se } from "react";
15
+ import { X as fo, FlaskConical as No, CreditCard as ho, ChevronRight as xo, Loader2 as xe, Package as ko, Download as vo, MapPin as go } from "lucide-react";
16
+ import { useTranslations as Ue, formatPrice as h } from "@nextblock-cms/utils";
17
+ import { normalizeCountryCode as Co, countries as _o } from "../countries.es.js";
18
+ import { usePaymentReadiness as Do } from "../PaymentReadinessProvider.es.js";
19
+ import { getShippingEstimates as yo } from "../server-actions/shipping-actions.es.js";
20
+ import { getTaxEstimate as Wo } from "../server-actions/tax-actions.es.js";
21
21
  import { isDigitalItem as ke } from "../types.es.js";
22
22
  import { countryUsesStructuredStates as _e, getStatesForCountry as Re } from "../states.es.js";
23
- import { addressesMatch as Ws, emptyCustomerAddress as ws, normalizeCustomerAddress as Ce, isCustomerAddressComplete as ze } from "../customer.es.js";
24
- import { useCurrency as Ss } from "../CurrencyProvider.es.js";
23
+ import { addressesMatch as wo, emptyCustomerAddress as So, normalizeCustomerAddress as Ce, isCustomerAddressComplete as ze } from "../customer.es.js";
24
+ import { useCurrency as Fo } from "../CurrencyProvider.es.js";
25
25
  import { getTrialSummary as Be } from "../trials.es.js";
26
- import { CouponForm as Fs } from "./CouponForm.es.js";
27
- const Ts = process.env.NEXT_PUBLIC_IS_SANDBOX === "true", le = "nextblock-checkout-draft-v1";
28
- function me(n, h) {
26
+ import { CouponForm as To } from "./CouponForm.es.js";
27
+ const Ao = process.env.NEXT_PUBLIC_IS_SANDBOX === "true", le = "nextblock-checkout-draft-v1";
28
+ function re(c, x) {
29
29
  return {
30
- ...ws(),
31
- company_name: n?.company_name || "",
32
- recipient_name: n?.recipient_name || h || "",
33
- line1: n?.line1 || "",
34
- line2: n?.line2 || "",
35
- city: n?.city || "",
36
- state: n?.state || "",
37
- postal_code: n?.postal_code || "",
38
- country_code: gs(n?.country_code) || "CA"
30
+ ...So(),
31
+ company_name: c?.company_name || "",
32
+ recipient_name: c?.recipient_name || x || "",
33
+ line1: c?.line1 || "",
34
+ line2: c?.line2 || "",
35
+ city: c?.city || "",
36
+ state: c?.state || "",
37
+ postal_code: c?.postal_code || "",
38
+ country_code: Co(c?.country_code) || "CA"
39
39
  };
40
40
  }
41
- function As(n) {
42
- const h = Ce(n);
43
- return !(!h?.country_code || !h.postal_code || _e(h.country_code) && !h.state);
41
+ function $o(c) {
42
+ const x = Ce(c);
43
+ return !(!x?.country_code || !x.postal_code || _e(x.country_code) && !x.state);
44
44
  }
45
- function ve(n, h, A) {
46
- return n.reduce((i, x) => {
47
- const { price: d, sale_price: $ } = ge(x, {
48
- currencyCode: h,
45
+ function ve(c, x, A) {
46
+ return c.reduce((t, p) => {
47
+ const { price: a, sale_price: $ } = ge(p, {
48
+ currencyCode: x,
49
49
  currencies: A
50
50
  });
51
- return i + ($ ?? d) * x.quantity;
51
+ return t + ($ ?? a) * p.quantity;
52
52
  }, 0);
53
53
  }
54
54
  function Oe({
55
- idPrefix: n,
56
- title: h,
55
+ idPrefix: c,
56
+ title: x,
57
57
  description: A,
58
- value: i,
59
- onChange: x
58
+ value: t,
59
+ onChange: p
60
60
  }) {
61
- const { t: d } = Ue(), $ = d("company_name") === "company_name" ? "Company name" : d("company_name"), P = d("select_an_option") === "select_an_option" ? "Select an option" : d("select_an_option"), V = d("state_province") === "state_province" ? "State / Province" : d("state_province"), B = Re(i.country_code), O = _e(i.country_code);
61
+ const { t: a } = Ue(), $ = a("company_name") === "company_name" ? "Company name" : a("company_name"), P = a("select_an_option") === "select_an_option" ? "Select an option" : a("select_an_option"), V = a("state_province") === "state_province" ? "State / Province" : a("state_province"), B = Re(t.country_code), O = _e(t.country_code);
62
62
  return /* @__PURE__ */ e(G, { children: [
63
63
  /* @__PURE__ */ e(H, { children: [
64
64
  /* @__PURE__ */ e(Q, { className: "flex items-center gap-2", children: [
65
- /* @__PURE__ */ e(vs, { className: "w-5 h-5" }, void 0, !1, {
66
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
65
+ /* @__PURE__ */ e(go, { className: "w-5 h-5" }, void 0, !1, {
66
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
67
67
  lineNumber: 135,
68
68
  columnNumber: 11
69
69
  }, this),
70
- h
70
+ x
71
71
  ] }, void 0, !0, {
72
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
72
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
73
73
  lineNumber: 134,
74
74
  columnNumber: 9
75
75
  }, this),
76
76
  /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: A }, void 0, !1, {
77
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
77
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
78
78
  lineNumber: 138,
79
79
  columnNumber: 9
80
80
  }, this)
81
81
  ] }, void 0, !0, {
82
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
82
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
83
83
  lineNumber: 133,
84
84
  columnNumber: 7
85
85
  }, this),
86
86
  /* @__PURE__ */ e(X, { className: "space-y-4", children: [
87
87
  /* @__PURE__ */ e("div", { className: "grid gap-4 sm:grid-cols-3", children: [
88
88
  /* @__PURE__ */ e("div", { className: "space-y-2", children: [
89
- /* @__PURE__ */ e(g, { htmlFor: `${n}-company`, children: $ }, void 0, !1, {
90
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
89
+ /* @__PURE__ */ e(g, { htmlFor: `${c}-company`, children: $ }, void 0, !1, {
90
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
91
91
  lineNumber: 143,
92
92
  columnNumber: 13
93
93
  }, this),
94
94
  /* @__PURE__ */ e(
95
95
  T,
96
96
  {
97
- id: `${n}-company`,
98
- value: i.company_name,
99
- onChange: (m) => x({ ...i, company_name: m.target.value })
97
+ id: `${c}-company`,
98
+ value: t.company_name,
99
+ onChange: (r) => p({ ...t, company_name: r.target.value })
100
100
  },
101
101
  void 0,
102
102
  !1,
103
103
  {
104
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
104
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
105
105
  lineNumber: 144,
106
106
  columnNumber: 13
107
107
  },
108
108
  this
109
109
  )
110
110
  ] }, void 0, !0, {
111
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
111
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
112
112
  lineNumber: 142,
113
113
  columnNumber: 11
114
114
  }, this),
115
115
  /* @__PURE__ */ e("div", { className: "space-y-2", children: [
116
- /* @__PURE__ */ e(g, { htmlFor: `${n}-name`, children: d("full_name") }, void 0, !1, {
117
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
116
+ /* @__PURE__ */ e(g, { htmlFor: `${c}-name`, children: a("full_name") }, void 0, !1, {
117
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
118
118
  lineNumber: 151,
119
119
  columnNumber: 13
120
120
  }, this),
121
121
  /* @__PURE__ */ e(
122
122
  T,
123
123
  {
124
- id: `${n}-name`,
125
- value: i.recipient_name,
126
- onChange: (m) => x({ ...i, recipient_name: m.target.value })
124
+ id: `${c}-name`,
125
+ value: t.recipient_name,
126
+ onChange: (r) => p({ ...t, recipient_name: r.target.value })
127
127
  },
128
128
  void 0,
129
129
  !1,
130
130
  {
131
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
131
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
132
132
  lineNumber: 152,
133
133
  columnNumber: 13
134
134
  },
135
135
  this
136
136
  )
137
137
  ] }, void 0, !0, {
138
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
138
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
139
139
  lineNumber: 150,
140
140
  columnNumber: 11
141
141
  }, this),
142
142
  /* @__PURE__ */ e("div", { className: "space-y-2", children: [
143
- /* @__PURE__ */ e(g, { htmlFor: `${n}-country`, children: d("country") }, void 0, !1, {
144
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
143
+ /* @__PURE__ */ e(g, { htmlFor: `${c}-country`, children: a("country") }, void 0, !1, {
144
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
145
145
  lineNumber: 159,
146
146
  columnNumber: 13
147
147
  }, this),
148
148
  /* @__PURE__ */ e(
149
149
  "select",
150
150
  {
151
- id: `${n}-country`,
151
+ id: `${c}-country`,
152
152
  className: "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",
153
- value: i.country_code,
154
- onChange: (m) => {
155
- const q = m.target.value, re = Re(q);
156
- x({
157
- ...i,
153
+ value: t.country_code,
154
+ onChange: (r) => {
155
+ const q = r.target.value, me = Re(q);
156
+ p({
157
+ ...t,
158
158
  country_code: q,
159
- state: re.some((Y) => Y.code === i.state) ? i.state : ""
159
+ state: me.some((Y) => Y.code === t.state) ? t.state : ""
160
160
  });
161
161
  },
162
- children: Cs.map((m) => /* @__PURE__ */ e("option", { value: m.code, children: m.name }, m.code, !1, {
163
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
162
+ children: _o.map((r) => /* @__PURE__ */ e("option", { value: r.code, children: r.name }, r.code, !1, {
163
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
164
164
  lineNumber: 175,
165
165
  columnNumber: 17
166
166
  }, this))
@@ -168,125 +168,125 @@ function Oe({
168
168
  void 0,
169
169
  !1,
170
170
  {
171
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
171
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
172
172
  lineNumber: 160,
173
173
  columnNumber: 13
174
174
  },
175
175
  this
176
176
  )
177
177
  ] }, void 0, !0, {
178
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
178
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
179
179
  lineNumber: 158,
180
180
  columnNumber: 11
181
181
  }, this)
182
182
  ] }, void 0, !0, {
183
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
183
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
184
184
  lineNumber: 141,
185
185
  columnNumber: 9
186
186
  }, this),
187
187
  /* @__PURE__ */ e("div", { className: "space-y-2", children: [
188
- /* @__PURE__ */ e(g, { htmlFor: `${n}-line1`, children: d("address_line_1") }, void 0, !1, {
189
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
188
+ /* @__PURE__ */ e(g, { htmlFor: `${c}-line1`, children: a("address_line_1") }, void 0, !1, {
189
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
190
190
  lineNumber: 184,
191
191
  columnNumber: 11
192
192
  }, this),
193
193
  /* @__PURE__ */ e(
194
194
  T,
195
195
  {
196
- id: `${n}-line1`,
197
- value: i.line1,
198
- onChange: (m) => x({ ...i, line1: m.target.value })
196
+ id: `${c}-line1`,
197
+ value: t.line1,
198
+ onChange: (r) => p({ ...t, line1: r.target.value })
199
199
  },
200
200
  void 0,
201
201
  !1,
202
202
  {
203
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
203
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
204
204
  lineNumber: 185,
205
205
  columnNumber: 11
206
206
  },
207
207
  this
208
208
  )
209
209
  ] }, void 0, !0, {
210
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
210
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
211
211
  lineNumber: 183,
212
212
  columnNumber: 9
213
213
  }, this),
214
214
  /* @__PURE__ */ e("div", { className: "space-y-2", children: [
215
- /* @__PURE__ */ e(g, { htmlFor: `${n}-line2`, children: d("address_line_2") }, void 0, !1, {
216
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
215
+ /* @__PURE__ */ e(g, { htmlFor: `${c}-line2`, children: a("address_line_2") }, void 0, !1, {
216
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
217
217
  lineNumber: 193,
218
218
  columnNumber: 11
219
219
  }, this),
220
220
  /* @__PURE__ */ e(
221
221
  T,
222
222
  {
223
- id: `${n}-line2`,
224
- value: i.line2,
225
- onChange: (m) => x({ ...i, line2: m.target.value })
223
+ id: `${c}-line2`,
224
+ value: t.line2,
225
+ onChange: (r) => p({ ...t, line2: r.target.value })
226
226
  },
227
227
  void 0,
228
228
  !1,
229
229
  {
230
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
230
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
231
231
  lineNumber: 194,
232
232
  columnNumber: 11
233
233
  },
234
234
  this
235
235
  )
236
236
  ] }, void 0, !0, {
237
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
237
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
238
238
  lineNumber: 192,
239
239
  columnNumber: 9
240
240
  }, this),
241
241
  /* @__PURE__ */ e("div", { className: "grid gap-4 sm:grid-cols-3", children: [
242
242
  /* @__PURE__ */ e("div", { className: "space-y-2", children: [
243
- /* @__PURE__ */ e(g, { htmlFor: `${n}-city`, children: d("city") }, void 0, !1, {
244
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
243
+ /* @__PURE__ */ e(g, { htmlFor: `${c}-city`, children: a("city") }, void 0, !1, {
244
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
245
245
  lineNumber: 203,
246
246
  columnNumber: 13
247
247
  }, this),
248
248
  /* @__PURE__ */ e(
249
249
  T,
250
250
  {
251
- id: `${n}-city`,
252
- value: i.city,
253
- onChange: (m) => x({ ...i, city: m.target.value })
251
+ id: `${c}-city`,
252
+ value: t.city,
253
+ onChange: (r) => p({ ...t, city: r.target.value })
254
254
  },
255
255
  void 0,
256
256
  !1,
257
257
  {
258
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
258
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
259
259
  lineNumber: 204,
260
260
  columnNumber: 13
261
261
  },
262
262
  this
263
263
  )
264
264
  ] }, void 0, !0, {
265
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
265
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
266
266
  lineNumber: 202,
267
267
  columnNumber: 11
268
268
  }, this),
269
269
  /* @__PURE__ */ e("div", { className: "space-y-2", children: [
270
- /* @__PURE__ */ e(g, { htmlFor: `${n}-state`, children: d("state_province") }, void 0, !1, {
271
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
270
+ /* @__PURE__ */ e(g, { htmlFor: `${c}-state`, children: a("state_province") }, void 0, !1, {
271
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
272
272
  lineNumber: 211,
273
273
  columnNumber: 13
274
274
  }, this),
275
275
  O ? /* @__PURE__ */ e(
276
276
  "select",
277
277
  {
278
- id: `${n}-state`,
278
+ id: `${c}-state`,
279
279
  className: "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",
280
- value: i.state,
281
- onChange: (m) => x({ ...i, state: m.target.value }),
280
+ value: t.state,
281
+ onChange: (r) => p({ ...t, state: r.target.value }),
282
282
  children: [
283
283
  /* @__PURE__ */ e("option", { value: "", children: `${P}: ${V}` }, void 0, !1, {
284
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
284
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
285
285
  lineNumber: 219,
286
286
  columnNumber: 17
287
287
  }, this),
288
- B.map((m) => /* @__PURE__ */ e("option", { value: m.code, children: m.name }, m.code, !1, {
289
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
288
+ B.map((r) => /* @__PURE__ */ e("option", { value: r.code, children: r.name }, r.code, !1, {
289
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
290
290
  lineNumber: 221,
291
291
  columnNumber: 19
292
292
  }, this))
@@ -295,7 +295,7 @@ function Oe({
295
295
  void 0,
296
296
  !0,
297
297
  {
298
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
298
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
299
299
  lineNumber: 213,
300
300
  columnNumber: 15
301
301
  },
@@ -303,179 +303,179 @@ function Oe({
303
303
  ) : /* @__PURE__ */ e(
304
304
  T,
305
305
  {
306
- id: `${n}-state`,
307
- value: i.state,
308
- onChange: (m) => x({ ...i, state: m.target.value })
306
+ id: `${c}-state`,
307
+ value: t.state,
308
+ onChange: (r) => p({ ...t, state: r.target.value })
309
309
  },
310
310
  void 0,
311
311
  !1,
312
312
  {
313
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
313
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
314
314
  lineNumber: 227,
315
315
  columnNumber: 15
316
316
  },
317
317
  this
318
318
  )
319
319
  ] }, void 0, !0, {
320
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
320
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
321
321
  lineNumber: 210,
322
322
  columnNumber: 11
323
323
  }, this),
324
324
  /* @__PURE__ */ e("div", { className: "space-y-2", children: [
325
- /* @__PURE__ */ e(g, { htmlFor: `${n}-postal`, children: d("postal_zip_code") }, void 0, !1, {
326
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
325
+ /* @__PURE__ */ e(g, { htmlFor: `${c}-postal`, children: a("postal_zip_code") }, void 0, !1, {
326
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
327
327
  lineNumber: 235,
328
328
  columnNumber: 13
329
329
  }, this),
330
330
  /* @__PURE__ */ e(
331
331
  T,
332
332
  {
333
- id: `${n}-postal`,
334
- value: i.postal_code,
335
- onChange: (m) => x({ ...i, postal_code: m.target.value })
333
+ id: `${c}-postal`,
334
+ value: t.postal_code,
335
+ onChange: (r) => p({ ...t, postal_code: r.target.value })
336
336
  },
337
337
  void 0,
338
338
  !1,
339
339
  {
340
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
340
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
341
341
  lineNumber: 236,
342
342
  columnNumber: 13
343
343
  },
344
344
  this
345
345
  )
346
346
  ] }, void 0, !0, {
347
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
347
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
348
348
  lineNumber: 234,
349
349
  columnNumber: 11
350
350
  }, this)
351
351
  ] }, void 0, !0, {
352
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
352
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
353
353
  lineNumber: 201,
354
354
  columnNumber: 9
355
355
  }, this)
356
356
  ] }, void 0, !0, {
357
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
357
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
358
358
  lineNumber: 140,
359
359
  columnNumber: 7
360
360
  }, this)
361
361
  ] }, void 0, !0, {
362
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
362
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
363
363
  lineNumber: 132,
364
364
  columnNumber: 5
365
365
  }, this);
366
366
  }
367
367
  function qe({
368
- title: n,
369
- description: h,
368
+ title: c,
369
+ description: x,
370
370
  badgeLabel: A,
371
- children: i
371
+ children: t
372
372
  }) {
373
373
  return /* @__PURE__ */ e(G, { children: [
374
374
  /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e("div", { className: "flex items-center justify-between gap-3 flex-wrap", children: [
375
375
  /* @__PURE__ */ e("div", { children: [
376
- /* @__PURE__ */ e(Q, { children: n }, void 0, !1, {
377
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
376
+ /* @__PURE__ */ e(Q, { children: c }, void 0, !1, {
377
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
378
378
  lineNumber: 264,
379
379
  columnNumber: 13
380
380
  }, this),
381
- /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-muted-foreground", children: h }, void 0, !1, {
382
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
381
+ /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-muted-foreground", children: x }, void 0, !1, {
382
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
383
383
  lineNumber: 265,
384
384
  columnNumber: 13
385
385
  }, this)
386
386
  ] }, void 0, !0, {
387
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
387
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
388
388
  lineNumber: 263,
389
389
  columnNumber: 11
390
390
  }, this),
391
391
  A ? /* @__PURE__ */ e(Ke, { variant: "secondary", children: A }, void 0, !1, {
392
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
392
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
393
393
  lineNumber: 267,
394
394
  columnNumber: 25
395
395
  }, this) : null
396
396
  ] }, void 0, !0, {
397
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
397
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
398
398
  lineNumber: 262,
399
399
  columnNumber: 9
400
400
  }, this) }, void 0, !1, {
401
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
401
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
402
402
  lineNumber: 261,
403
403
  columnNumber: 7
404
404
  }, this),
405
- /* @__PURE__ */ e(X, { className: "space-y-4", children: i }, void 0, !1, {
406
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
405
+ /* @__PURE__ */ e(X, { className: "space-y-4", children: t }, void 0, !1, {
406
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
407
407
  lineNumber: 270,
408
408
  columnNumber: 7
409
409
  }, this)
410
410
  ] }, void 0, !0, {
411
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
411
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
412
412
  lineNumber: 260,
413
413
  columnNumber: 5
414
414
  }, this);
415
415
  }
416
- const on = ({ initialCustomer: n }) => {
417
- const [h, A] = N({}), [i, x] = N(null), [d, $] = N({}), [P, V] = N(n?.email || ""), [B, O] = N(""), [m, q] = N(n?.phone || ""), [re, Y] = N(!1), [Je, De] = N(null), [ye, Z] = N(!1), [Ge, ee] = N(!1), [K, se] = N([]), [k, R] = N(null), [D, ne] = N(null), [j, He] = N(null), [w, We] = N(
418
- () => me(n?.billingAddress, n?.fullName)
416
+ const nc = ({ initialCustomer: c }) => {
417
+ const [x, A] = N({}), [t, p] = N(null), [a, $] = N({}), [P, V] = N(c?.email || ""), [B, O] = N(""), [r, q] = N(c?.phone || ""), [me, Y] = N(!1), [Je, De] = N(null), [ye, Z] = N(!1), [Ge, ee] = N(!1), [K, oe] = N([]), [k, R] = N(null), [D, ce] = N(null), [j, He] = N(null), [w, We] = N(
418
+ () => re(c?.billingAddress, c?.fullName)
419
419
  ), [z, we] = N(
420
- () => me(
421
- n?.shippingAddress ?? n?.billingAddress,
422
- n?.fullName
420
+ () => re(
421
+ c?.shippingAddress ?? c?.billingAddress,
422
+ c?.fullName
423
423
  )
424
424
  ), [I, Se] = N(
425
- !n?.shippingAddress || Ws(n?.billingAddress, n?.shippingAddress)
426
- ), U = ds((s) => s), { t: c, lang: ue } = Ue(), { activeCurrencyCode: l, currencies: E } = Ss(), Fe = _s(), v = U?.items ?? [], C = F(
427
- () => v.filter((s) => !ke(s)),
425
+ !c?.shippingAddress || wo(c?.billingAddress, c?.shippingAddress)
426
+ ), U = po((o) => o), { t: n, lang: ue } = Ue(), { activeCurrencyCode: l, currencies: E } = Fo(), Fe = Do(), v = U?.items ?? [], C = F(
427
+ () => v.filter((o) => !ke(o)),
428
428
  [v]
429
429
  ), y = F(
430
- () => v.filter((s) => ke(s)),
430
+ () => v.filter((o) => ke(o)),
431
431
  [v]
432
- ), M = n?.isAuthenticated ?? !1, o = (s, t, b) => {
433
- const u = c(s, b);
434
- if (u !== s)
432
+ ), M = c?.isAuthenticated ?? !1, i = (o, s, d) => {
433
+ const u = n(o, d);
434
+ if (u !== o)
435
435
  return u;
436
- if (!b)
437
- return t;
438
- let f = t;
439
- return Object.entries(b).forEach(([a, r]) => {
436
+ if (!d)
437
+ return s;
438
+ let f = s;
439
+ return Object.entries(d).forEach(([b, m]) => {
440
440
  f = f.replace(
441
- new RegExp(`\\{${a}\\}`, "g"),
442
- String(r)
441
+ new RegExp(`\\{${b}\\}`, "g"),
442
+ String(m)
443
443
  );
444
444
  }), f;
445
445
  }, _ = C.length > 0, Qe = F(
446
446
  () => ve(v, l, E),
447
447
  [l, E, v]
448
- ), be = F(
448
+ ), de = F(
449
449
  () => ve(C, l, E),
450
450
  [l, E, C]
451
- ), ae = F(
451
+ ), be = F(
452
452
  () => ve(y, l, E),
453
453
  [l, E, y]
454
- ), de = j?.providerDiscounts.stripe ?? 0, xe = j?.providerDiscounts.freemius ?? 0, oe = Math.max(0, be - de), Xe = Math.max(0, ae - xe), W = F(
454
+ ), ae = j?.providerDiscounts.stripe ?? 0, pe = j?.providerDiscounts.freemius ?? 0, ie = Math.max(0, de - ae), Xe = Math.max(0, be - pe), W = F(
455
455
  () => I ? w : z,
456
456
  [w, z, I]
457
457
  ), L = F(
458
458
  () => _ ? W : w,
459
459
  [w, _, W]
460
- ), ce = !_ || As(W), ie = F(
461
- () => K.find((s) => s.id === k),
460
+ ), ne = !_ || $o(W), te = F(
461
+ () => K.find((o) => o.id === k),
462
462
  [K, k]
463
463
  ), Te = F(
464
- () => oe + (ie?.amount ?? 0) + (D && !D.isPendingExternalCalculation ? D.amount : 0),
465
- [oe, ie, D]
464
+ () => ie + (te?.amount ?? 0) + (D && !D.isPendingExternalCalculation ? D.amount : 0),
465
+ [ie, te, D]
466
466
  ), Ve = Te + Xe;
467
- if (te(() => {
467
+ if (se(() => {
468
468
  if (!(M || typeof window > "u"))
469
469
  try {
470
- const s = window.localStorage.getItem(le);
471
- if (!s)
470
+ const o = window.localStorage.getItem(le);
471
+ if (!o)
472
472
  return;
473
- const t = JSON.parse(s);
474
- t.email && V(t.email), t.phone && q(t.phone), t.billingAddress && We(me(t.billingAddress)), t.shippingAddress && we(me(t.shippingAddress)), typeof t.useBillingForShipping == "boolean" && Se(t.useBillingForShipping), (typeof t.selectedMethodId == "string" || t.selectedMethodId === null) && R(t.selectedMethodId);
475
- } catch (s) {
476
- console.error("[Checkout] Failed to restore checkout draft:", s);
473
+ const s = JSON.parse(o);
474
+ s.email && V(s.email), s.phone && q(s.phone), s.billingAddress && We(re(s.billingAddress)), s.shippingAddress && we(re(s.shippingAddress)), typeof s.useBillingForShipping == "boolean" && Se(s.useBillingForShipping), (typeof s.selectedMethodId == "string" || s.selectedMethodId === null) && R(s.selectedMethodId);
475
+ } catch (o) {
476
+ console.error("[Checkout] Failed to restore checkout draft:", o);
477
477
  }
478
- }, [M]), te(() => {
478
+ }, [M]), se(() => {
479
479
  if (!(typeof window > "u")) {
480
480
  if (M) {
481
481
  window.localStorage.removeItem(le);
@@ -485,7 +485,7 @@ const on = ({ initialCustomer: n }) => {
485
485
  le,
486
486
  JSON.stringify({
487
487
  email: P,
488
- phone: m,
488
+ phone: r,
489
489
  billingAddress: w,
490
490
  shippingAddress: z,
491
491
  useBillingForShipping: I,
@@ -497,26 +497,26 @@ const on = ({ initialCustomer: n }) => {
497
497
  w,
498
498
  P,
499
499
  M,
500
- m,
500
+ r,
501
501
  k,
502
502
  z,
503
503
  I
504
- ]), te(() => {
504
+ ]), se(() => {
505
505
  if (!_) {
506
- se([]), R(null), Z(!1);
506
+ oe([]), R(null), Z(!1);
507
507
  return;
508
508
  }
509
- if (!ce) {
510
- se([]), R(null), Z(!1);
509
+ if (!ne) {
510
+ oe([]), R(null), Z(!1);
511
511
  return;
512
512
  }
513
- let s = !1;
514
- const b = setTimeout(async () => {
513
+ let o = !1;
514
+ const d = setTimeout(async () => {
515
515
  if (!W.country_code)
516
516
  return;
517
517
  Z(!0);
518
- const u = await Ds(
519
- oe,
518
+ const u = await yo(
519
+ ie,
520
520
  {
521
521
  country: W.country_code,
522
522
  state: W.state,
@@ -525,33 +525,33 @@ const on = ({ initialCustomer: n }) => {
525
525
  ue,
526
526
  l
527
527
  );
528
- s || (u.success && u.methods ? (se(u.methods), u.methods.length > 0 && (!k || !u.methods.find((f) => f.id === k)) && R(u.methods[0].id)) : (se([]), R(null)), Z(!1));
528
+ o || (u.success && u.methods ? (oe(u.methods), u.methods.length > 0 && (!k || !u.methods.find((f) => f.id === k)) && R(u.methods[0].id)) : (oe([]), R(null)), Z(!1));
529
529
  }, 400);
530
530
  return () => {
531
- s = !0, clearTimeout(b);
531
+ o = !0, clearTimeout(d);
532
532
  };
533
533
  }, [
534
534
  l,
535
535
  _,
536
- ce,
536
+ ne,
537
537
  ue,
538
538
  k,
539
539
  W.country_code,
540
540
  W.postal_code,
541
541
  W.state,
542
- oe
543
- ]), te(() => {
544
- const t = setTimeout(async () => {
542
+ ie
543
+ ]), se(() => {
544
+ const s = setTimeout(async () => {
545
545
  if (!_ || !L.country_code) {
546
- ee(!1), ne(null);
546
+ ee(!1), ce(null);
547
547
  return;
548
548
  }
549
549
  if (_e(L.country_code) && !L.state) {
550
- ee(!1), ne(null);
550
+ ee(!1), ce(null);
551
551
  return;
552
552
  }
553
553
  ee(!0);
554
- const b = await ys(
554
+ const d = await Wo(
555
555
  C,
556
556
  {
557
557
  country_code: L.country_code,
@@ -561,9 +561,9 @@ const on = ({ initialCustomer: n }) => {
561
561
  j?.code ?? null,
562
562
  v
563
563
  );
564
- b.success && b.tax ? ne(b.tax) : ne(null), ee(!1);
564
+ d.success && d.tax ? ce(d.tax) : ce(null), ee(!1);
565
565
  }, 300);
566
- return () => clearTimeout(t);
566
+ return () => clearTimeout(s);
567
567
  }, [
568
568
  l,
569
569
  _,
@@ -576,7 +576,7 @@ const on = ({ initialCustomer: n }) => {
576
576
  return null;
577
577
  const Ae = () => {
578
578
  Y(!1), De(null);
579
- }, $e = re ? /* @__PURE__ */ e(
579
+ }, $e = me ? /* @__PURE__ */ e(
580
580
  "div",
581
581
  {
582
582
  className: "fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",
@@ -585,15 +585,15 @@ const on = ({ initialCustomer: n }) => {
585
585
  "div",
586
586
  {
587
587
  className: "relative bg-background border rounded-xl shadow-2xl p-8 max-w-md mx-4",
588
- onClick: (s) => s.stopPropagation(),
588
+ onClick: (o) => o.stopPropagation(),
589
589
  children: [
590
590
  /* @__PURE__ */ e(
591
591
  "button",
592
592
  {
593
593
  onClick: Ae,
594
594
  className: "absolute top-4 right-4 text-muted-foreground hover:text-foreground transition-colors",
595
- children: /* @__PURE__ */ e(xs, { className: "w-5 h-5" }, void 0, !1, {
596
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
595
+ children: /* @__PURE__ */ e(fo, { className: "w-5 h-5" }, void 0, !1, {
596
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
597
597
  lineNumber: 604,
598
598
  columnNumber: 11
599
599
  }, void 0)
@@ -601,50 +601,50 @@ const on = ({ initialCustomer: n }) => {
601
601
  void 0,
602
602
  !1,
603
603
  {
604
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
604
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
605
605
  lineNumber: 600,
606
606
  columnNumber: 9
607
607
  },
608
608
  void 0
609
609
  ),
610
610
  /* @__PURE__ */ e("div", { className: "flex items-center gap-3 mb-4", children: [
611
- /* @__PURE__ */ e("div", { className: "p-2 rounded-full bg-amber-100 dark:bg-amber-900/20", children: /* @__PURE__ */ e(fs, { className: "h-6 w-6 text-amber-600 dark:text-amber-400" }, void 0, !1, {
612
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
611
+ /* @__PURE__ */ e("div", { className: "p-2 rounded-full bg-amber-100 dark:bg-amber-900/20", children: /* @__PURE__ */ e(No, { className: "h-6 w-6 text-amber-600 dark:text-amber-400" }, void 0, !1, {
612
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
613
613
  lineNumber: 608,
614
614
  columnNumber: 13
615
615
  }, void 0) }, void 0, !1, {
616
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
616
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
617
617
  lineNumber: 607,
618
618
  columnNumber: 11
619
619
  }, void 0),
620
- /* @__PURE__ */ e("h2", { className: "text-xl font-semibold", children: c("ecommerce.checkout_successful") }, void 0, !1, {
621
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
620
+ /* @__PURE__ */ e("h2", { className: "text-xl font-semibold", children: n("ecommerce.checkout_successful") }, void 0, !1, {
621
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
622
622
  lineNumber: 610,
623
623
  columnNumber: 11
624
624
  }, void 0)
625
625
  ] }, void 0, !0, {
626
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
626
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
627
627
  lineNumber: 606,
628
628
  columnNumber: 9
629
629
  }, void 0),
630
- /* @__PURE__ */ e("p", { className: "text-muted-foreground mb-2", children: c("ecommerce.sandbox_notice") }, void 0, !1, {
631
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
630
+ /* @__PURE__ */ e("p", { className: "text-muted-foreground mb-2", children: n("ecommerce.sandbox_notice") }, void 0, !1, {
631
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
632
632
  lineNumber: 612,
633
633
  columnNumber: 9
634
634
  }, void 0),
635
- /* @__PURE__ */ e("p", { className: "text-muted-foreground mb-2", children: Je === "stripe" ? o(
635
+ /* @__PURE__ */ e("p", { className: "text-muted-foreground mb-2", children: Je === "stripe" ? i(
636
636
  "ecommerce.sandbox_checkout_stripe_description",
637
637
  "This simulated step represents the Stripe checkout for physical products."
638
- ) : o(
638
+ ) : i(
639
639
  "ecommerce.sandbox_checkout_freemius_description",
640
640
  "This simulated step represents the Freemius checkout for digital products."
641
641
  ) }, void 0, !1, {
642
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
642
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
643
643
  lineNumber: 613,
644
644
  columnNumber: 9
645
645
  }, void 0),
646
- /* @__PURE__ */ e("p", { className: "text-muted-foreground mb-6", children: c("ecommerce.license_notice") }, void 0, !1, {
647
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
646
+ /* @__PURE__ */ e("p", { className: "text-muted-foreground mb-6", children: n("ecommerce.license_notice") }, void 0, !1, {
647
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
648
648
  lineNumber: 624,
649
649
  columnNumber: 9
650
650
  }, void 0),
@@ -655,12 +655,12 @@ const on = ({ initialCustomer: n }) => {
655
655
  target: "_blank",
656
656
  rel: "noopener noreferrer",
657
657
  className: "block w-full text-center py-3 px-4 rounded-lg bg-primary text-primary-foreground font-semibold hover:opacity-90 transition-opacity",
658
- children: c("ecommerce.purchase_at")
658
+ children: n("ecommerce.purchase_at")
659
659
  },
660
660
  void 0,
661
661
  !1,
662
662
  {
663
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
663
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
664
664
  lineNumber: 625,
665
665
  columnNumber: 9
666
666
  },
@@ -671,7 +671,7 @@ const on = ({ initialCustomer: n }) => {
671
671
  void 0,
672
672
  !0,
673
673
  {
674
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
674
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
675
675
  lineNumber: 596,
676
676
  columnNumber: 7
677
677
  },
@@ -681,106 +681,106 @@ const on = ({ initialCustomer: n }) => {
681
681
  void 0,
682
682
  !1,
683
683
  {
684
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
684
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
685
685
  lineNumber: 592,
686
686
  columnNumber: 5
687
687
  },
688
688
  void 0
689
- ) : null, Ye = (s) => {
689
+ ) : null, Ye = (o) => {
690
690
  if (!M && (!P || !/^\S+@\S+\.\S+$/.test(P)))
691
- return O(c("ecommerce.invalid_email")), null;
692
- const t = Ce(w);
693
- if (!ze(t))
694
- return alert(c("checkout_complete_billing_address")), null;
695
- const b = _ ? Ce(I ? w : z) : null;
696
- if (s === "stripe") {
697
- if (!ze(b))
698
- return alert(c("checkout_complete_shipping_address")), null;
691
+ return O(n("ecommerce.invalid_email")), null;
692
+ const s = Ce(w);
693
+ if (!ze(s))
694
+ return alert(n("checkout_complete_billing_address")), null;
695
+ const d = _ ? Ce(I ? w : z) : null;
696
+ if (o === "stripe") {
697
+ if (!ze(d))
698
+ return alert(n("checkout_complete_shipping_address")), null;
699
699
  if (!k)
700
700
  return alert(
701
- o(
701
+ i(
702
702
  "ecommerce.shipping_method_required",
703
703
  "Please select a shipping method before continuing."
704
704
  )
705
705
  ), null;
706
706
  }
707
707
  return O(""), {
708
- normalizedBillingAddress: t,
709
- normalizedShippingAddress: b
708
+ normalizedBillingAddress: s,
709
+ normalizedShippingAddress: d
710
710
  };
711
- }, Pe = async (s, t, b) => {
711
+ }, Pe = async (o, s, d) => {
712
712
  $((f) => ({
713
713
  ...f,
714
- [s]: ""
714
+ [o]: ""
715
715
  }));
716
- const u = Ye(s);
716
+ const u = Ye(o);
717
717
  if (u) {
718
- if (Ts) {
719
- const f = new Set(t.map((r) => r.id)), a = v.filter((r) => !f.has(r.id));
720
- U.setItems(a), a.length === 0 && U.removeCoupon(), De(s), Y(!0), typeof window < "u" && a.length === 0 && window.localStorage.removeItem(le);
718
+ if (Ao) {
719
+ const f = new Set(s.map((m) => m.id)), b = v.filter((m) => !f.has(m.id));
720
+ U.setItems(b), b.length === 0 && U.removeCoupon(), De(o), Y(!0), typeof window < "u" && b.length === 0 && window.localStorage.removeItem(le);
721
721
  return;
722
722
  }
723
- x(b);
723
+ p(d);
724
724
  try {
725
725
  const f = await fetch("/api/checkout", {
726
726
  method: "POST",
727
727
  headers: { "Content-Type": "application/json" },
728
728
  body: JSON.stringify({
729
- items: t,
729
+ items: s,
730
730
  customerEmail: M ? void 0 : P,
731
- customerPhone: m || null,
731
+ customerPhone: r || null,
732
732
  billingAddress: u.normalizedBillingAddress,
733
- shippingAddress: s === "stripe" ? u.normalizedShippingAddress : null,
734
- shippingMethodId: s === "stripe" ? k : null,
733
+ shippingAddress: o === "stripe" ? u.normalizedShippingAddress : null,
734
+ shippingMethodId: o === "stripe" ? k : null,
735
735
  locale: ue,
736
736
  currencyCode: l,
737
737
  couponCode: j?.code ?? U.appliedCoupon?.code ?? null,
738
738
  couponContextItems: v
739
739
  })
740
- }), a = await f.json();
740
+ }), b = await f.json();
741
741
  if (!f.ok) {
742
- const r = a?.errorKey && typeof a.errorKey == "string" ? o(
743
- a.errorKey,
744
- a?.error || o("ecommerce.generic_error", "Something went wrong."),
745
- a.errorParams
746
- ) : a?.error || c("ecommerce.generic_error");
742
+ const m = b?.errorKey && typeof b.errorKey == "string" ? i(
743
+ b.errorKey,
744
+ b?.error || i("ecommerce.generic_error", "Something went wrong."),
745
+ b.errorParams
746
+ ) : b?.error || n("ecommerce.generic_error");
747
747
  $((J) => ({
748
748
  ...J,
749
- [s]: r
750
- })), x(null);
749
+ [o]: m
750
+ })), p(null);
751
751
  return;
752
752
  }
753
- if (a.customProps && a.customProps.provider === "freemius") {
754
- const r = a.customProps;
753
+ if (b.customProps && b.customProps.provider === "freemius") {
754
+ const m = b.customProps;
755
755
  let J = null;
756
- const cs = () => {
757
- window.location.href = `/checkout/success?session_id=${r.order_id}`;
756
+ const no = () => {
757
+ window.location.href = `/checkout/success?session_id=${m.order_id}`;
758
758
  }, Ie = (S) => (J || (J = fetch("/api/checkout/freemius/sync", {
759
759
  method: "POST",
760
760
  headers: { "Content-Type": "application/json" },
761
761
  body: JSON.stringify({
762
- orderId: r.order_id,
762
+ orderId: m.order_id,
763
763
  checkoutResponse: S
764
764
  })
765
765
  }).then(async (Me) => {
766
766
  if (!Me.ok) {
767
- const ls = await Me.json().catch(() => null);
768
- console.error("Freemius checkout sync failed:", ls);
767
+ const lo = await Me.json().catch(() => null);
768
+ console.error("Freemius checkout sync failed:", lo);
769
769
  }
770
- })), J), is = {
771
- product_id: r.plugin_id,
772
- public_key: r.public_key,
773
- sandbox: r.sandbox
774
- }, ts = {
775
- name: c("ecommerce.checkout_overlay_title"),
776
- plan_id: r.plan_id,
777
- ...r.billing_cycle ? { billing_cycle: r.billing_cycle } : {},
778
- ...r.trial ? { trial: r.trial } : {},
779
- ...r.coupon ? { coupon: r.coupon } : {},
780
- user_email: r.user_email,
781
- user_firstname: r.user_firstname,
782
- user_lastname: r.user_lastname,
783
- sandbox: r.sandbox,
770
+ })), J), to = {
771
+ product_id: m.plugin_id,
772
+ public_key: m.public_key,
773
+ sandbox: m.sandbox
774
+ }, so = {
775
+ name: n("ecommerce.checkout_overlay_title"),
776
+ plan_id: m.plan_id,
777
+ ...m.billing_cycle ? { billing_cycle: m.billing_cycle } : {},
778
+ ...m.trial ? { trial: m.trial } : {},
779
+ ...m.coupon ? { coupon: m.coupon } : {},
780
+ user_email: m.user_email,
781
+ user_firstname: m.user_firstname,
782
+ user_lastname: m.user_lastname,
783
+ sandbox: m.sandbox,
784
784
  purchaseCompleted: function(S) {
785
785
  Ie(S);
786
786
  },
@@ -789,95 +789,95 @@ const on = ({ initialCustomer: n }) => {
789
789
  try {
790
790
  await Ie(S);
791
791
  } finally {
792
- cs();
792
+ no();
793
793
  }
794
794
  })();
795
795
  }
796
796
  };
797
797
  try {
798
- new as(is).open(ts), x(null);
798
+ new ao(to).open(so), p(null);
799
799
  } catch (S) {
800
800
  alert(
801
- c("ecommerce.checkout_popup_blocked") + " " + (S.message || String(S))
802
- ), a.url && (window.location.href = a.url), x(null);
801
+ n("ecommerce.checkout_popup_blocked") + " " + (S.message || String(S))
802
+ ), b.url && (window.location.href = b.url), p(null);
803
803
  }
804
- } else a.url ? window.location.href = a.url : ($((r) => ({
805
- ...r,
806
- [s]: c("ecommerce.checkout_failed") + (a.error || o("ecommerce.unknown_error", "Unknown error"))
807
- })), x(null));
804
+ } else b.url ? window.location.href = b.url : ($((m) => ({
805
+ ...m,
806
+ [o]: n("ecommerce.checkout_failed") + (b.error || i("ecommerce.unknown_error", "Unknown error"))
807
+ })), p(null));
808
808
  } catch (f) {
809
- console.error(f), $((a) => ({
810
- ...a,
811
- [s]: c("ecommerce.generic_error")
812
- })), x(null);
809
+ console.error(f), $((b) => ({
810
+ ...b,
811
+ [o]: n("ecommerce.generic_error")
812
+ })), p(null);
813
813
  }
814
814
  }
815
815
  };
816
816
  if (v.length === 0)
817
- return /* @__PURE__ */ e(ms, { children: [
817
+ return /* @__PURE__ */ e(ro, { children: [
818
818
  $e,
819
819
  /* @__PURE__ */ e("div", { className: "container mx-auto flex min-h-[50vh] flex-col items-center justify-center p-8 text-center", children: [
820
- /* @__PURE__ */ e("h1", { className: "mb-4 text-2xl font-bold", children: c("ecommerce.cart_empty") }, void 0, !1, {
821
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
820
+ /* @__PURE__ */ e("h1", { className: "mb-4 text-2xl font-bold", children: n("ecommerce.cart_empty") }, void 0, !1, {
821
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
822
822
  lineNumber: 846,
823
823
  columnNumber: 11
824
824
  }, void 0),
825
- /* @__PURE__ */ e("p", { className: "mb-8 text-muted-foreground", children: c("ecommerce.cart_empty_description") }, void 0, !1, {
826
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
825
+ /* @__PURE__ */ e("p", { className: "mb-8 text-muted-foreground", children: n("ecommerce.cart_empty_description") }, void 0, !1, {
826
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
827
827
  lineNumber: 847,
828
828
  columnNumber: 11
829
829
  }, void 0),
830
- /* @__PURE__ */ e(pe, { asChild: !0, children: /* @__PURE__ */ e("a", { href: "/shop", children: c("ecommerce.go_to_shop") }, void 0, !1, {
831
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
830
+ /* @__PURE__ */ e(he, { asChild: !0, children: /* @__PURE__ */ e("a", { href: "/shop", children: n("ecommerce.go_to_shop") }, void 0, !1, {
831
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
832
832
  lineNumber: 849,
833
833
  columnNumber: 13
834
834
  }, void 0) }, void 0, !1, {
835
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
835
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
836
836
  lineNumber: 848,
837
837
  columnNumber: 11
838
838
  }, void 0)
839
839
  ] }, void 0, !0, {
840
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
840
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
841
841
  lineNumber: 845,
842
842
  columnNumber: 9
843
843
  }, void 0)
844
844
  ] }, void 0, !0, {
845
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
845
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
846
846
  lineNumber: 843,
847
847
  columnNumber: 7
848
848
  }, void 0);
849
- const je = o(
849
+ const je = i(
850
850
  "ecommerce.checkout_payments_unavailable",
851
851
  "This store is not able to take payments right now. Please contact the seller to complete your purchase."
852
- ), Ee = Fe.stripe ? null : je, fe = Fe.freemius ? null : je, Ne = Ee || (_ ? ce ? ye ? o(
852
+ ), Ee = Fe.stripe ? null : je, fe = Fe.freemius ? null : je, Ne = Ee || (_ ? ne ? ye ? i(
853
853
  "ecommerce.calculating_shipping",
854
854
  "Calculating shipping..."
855
- ) : k ? null : K.length > 0 ? c("ecommerce.select_rate") : c("ecommerce.no_rates_for_region") : o(
855
+ ) : k ? null : K.length > 0 ? n("ecommerce.select_rate") : n("ecommerce.no_rates_for_region") : i(
856
856
  "ecommerce.waiting_on_address_info",
857
857
  "Complete your shipping address to view available shipping options."
858
- ) : null), Ze = i !== null || Ne !== null, es = C.length === 1 ? o("ecommerce.item_count_one", "{count} item", {
858
+ ) : null), Ze = t !== null || Ne !== null, eo = C.length === 1 ? i("ecommerce.item_count_one", "{count} item", {
859
859
  count: C.length
860
- }) : o("ecommerce.item_count_other", "{count} items", {
860
+ }) : i("ecommerce.item_count_other", "{count} items", {
861
861
  count: C.length
862
- }), ss = y.length === 1 ? o("ecommerce.license_count_one", "{count} license", {
862
+ }), oo = y.length === 1 ? i("ecommerce.license_count_one", "{count} license", {
863
863
  count: y.length
864
- }) : o("ecommerce.license_count_other", "{count} licenses", {
864
+ }) : i("ecommerce.license_count_other", "{count} licenses", {
865
865
  count: y.length
866
- }), ns = (s) => ke(s) ? o("ecommerce.digital_label", "Digital") : o("ecommerce.physical_label", "Physical"), os = (s) => s === "monthly" ? o(
866
+ }), co = (o) => ke(o) ? i("ecommerce.digital_label", "Digital") : i("ecommerce.physical_label", "Physical"), io = (o) => o === "monthly" ? i(
867
867
  "ecommerce.checkout_billing_cycle_monthly",
868
868
  "Monthly subscription"
869
- ) : s === "annual" ? o(
869
+ ) : o === "annual" ? i(
870
870
  "ecommerce.checkout_billing_cycle_annual",
871
871
  "Annual subscription"
872
- ) : s === "lifetime" ? o(
872
+ ) : o === "lifetime" ? i(
873
873
  "ecommerce.checkout_billing_cycle_lifetime",
874
874
  "Lifetime subscription"
875
875
  ) : null;
876
876
  return /* @__PURE__ */ e("div", { className: "container mx-auto px-4 py-12 md:px-6", children: [
877
877
  $e,
878
878
  /* @__PURE__ */ e("div", { className: "mx-auto max-w-6xl", children: [
879
- /* @__PURE__ */ e("h1", { className: "mb-8 text-3xl font-bold", children: c("ecommerce.checkout") }, void 0, !1, {
880
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
879
+ /* @__PURE__ */ e("h1", { className: "mb-8 text-3xl font-bold", children: n("ecommerce.checkout") }, void 0, !1, {
880
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
881
881
  lineNumber: 941,
882
882
  columnNumber: 9
883
883
  }, void 0),
@@ -885,37 +885,37 @@ const on = ({ initialCustomer: n }) => {
885
885
  /* @__PURE__ */ e("div", { className: "lg:col-span-8 space-y-6", children: [
886
886
  /* @__PURE__ */ e(G, { children: [
887
887
  /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(Q, { className: "flex items-center gap-2", children: [
888
- /* @__PURE__ */ e(Ns, { className: "w-5 h-5" }, void 0, !1, {
889
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
888
+ /* @__PURE__ */ e(ho, { className: "w-5 h-5" }, void 0, !1, {
889
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
890
890
  lineNumber: 948,
891
891
  columnNumber: 19
892
892
  }, void 0),
893
- c("ecommerce.contact_information")
893
+ n("ecommerce.contact_information")
894
894
  ] }, void 0, !0, {
895
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
895
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
896
896
  lineNumber: 947,
897
897
  columnNumber: 17
898
898
  }, void 0) }, void 0, !1, {
899
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
899
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
900
900
  lineNumber: 946,
901
901
  columnNumber: 15
902
902
  }, void 0),
903
903
  /* @__PURE__ */ e(X, { className: "space-y-4", children: [
904
- M ? /* @__PURE__ */ e("div", { className: "rounded-xl border bg-muted/20 p-4 text-sm text-muted-foreground", children: c("checkout_prefill_notice", { email: n?.email || "" }) }, void 0, !1, {
905
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
904
+ M ? /* @__PURE__ */ e("div", { className: "rounded-xl border bg-muted/20 p-4 text-sm text-muted-foreground", children: n("checkout_prefill_notice", { email: c?.email || "" }) }, void 0, !1, {
905
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
906
906
  lineNumber: 954,
907
907
  columnNumber: 19
908
908
  }, void 0) : /* @__PURE__ */ e("div", { className: "space-y-2", children: [
909
909
  /* @__PURE__ */ e(g, { htmlFor: "checkout-email", children: [
910
- c("ecommerce.email_address"),
910
+ n("ecommerce.email_address"),
911
911
  " ",
912
912
  /* @__PURE__ */ e("span", { className: "text-destructive", children: "*" }, void 0, !1, {
913
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
913
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
914
914
  lineNumber: 960,
915
915
  columnNumber: 54
916
916
  }, void 0)
917
917
  ] }, void 0, !0, {
918
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
918
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
919
919
  lineNumber: 959,
920
920
  columnNumber: 21
921
921
  }, void 0),
@@ -924,35 +924,35 @@ const on = ({ initialCustomer: n }) => {
924
924
  {
925
925
  id: "checkout-email",
926
926
  type: "email",
927
- placeholder: c("ecommerce.email_placeholder"),
927
+ placeholder: n("ecommerce.email_placeholder"),
928
928
  value: P,
929
- onChange: (s) => {
930
- V(s.target.value), B && O("");
929
+ onChange: (o) => {
930
+ V(o.target.value), B && O("");
931
931
  },
932
932
  required: !0
933
933
  },
934
934
  void 0,
935
935
  !1,
936
936
  {
937
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
937
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
938
938
  lineNumber: 962,
939
939
  columnNumber: 21
940
940
  },
941
941
  void 0
942
942
  ),
943
943
  B ? /* @__PURE__ */ e("p", { className: "text-xs text-destructive mt-1", children: B }, void 0, !1, {
944
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
944
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
945
945
  lineNumber: 975,
946
946
  columnNumber: 35
947
947
  }, void 0) : null
948
948
  ] }, void 0, !0, {
949
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
949
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
950
950
  lineNumber: 958,
951
951
  columnNumber: 19
952
952
  }, void 0),
953
953
  /* @__PURE__ */ e("div", { className: "space-y-2", children: [
954
- /* @__PURE__ */ e(g, { htmlFor: "checkout-phone", children: c("phone_number") }, void 0, !1, {
955
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
954
+ /* @__PURE__ */ e(g, { htmlFor: "checkout-phone", children: n("phone_number") }, void 0, !1, {
955
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
956
956
  lineNumber: 980,
957
957
  columnNumber: 19
958
958
  }, void 0),
@@ -960,31 +960,31 @@ const on = ({ initialCustomer: n }) => {
960
960
  T,
961
961
  {
962
962
  id: "checkout-phone",
963
- placeholder: c("optional"),
964
- value: m,
965
- onChange: (s) => q(s.target.value)
963
+ placeholder: n("optional"),
964
+ value: r,
965
+ onChange: (o) => q(o.target.value)
966
966
  },
967
967
  void 0,
968
968
  !1,
969
969
  {
970
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
970
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
971
971
  lineNumber: 981,
972
972
  columnNumber: 19
973
973
  },
974
974
  void 0
975
975
  )
976
976
  ] }, void 0, !0, {
977
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
977
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
978
978
  lineNumber: 979,
979
979
  columnNumber: 17
980
980
  }, void 0)
981
981
  ] }, void 0, !0, {
982
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
982
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
983
983
  lineNumber: 952,
984
984
  columnNumber: 15
985
985
  }, void 0)
986
986
  ] }, void 0, !0, {
987
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
987
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
988
988
  lineNumber: 945,
989
989
  columnNumber: 13
990
990
  }, void 0),
@@ -992,15 +992,15 @@ const on = ({ initialCustomer: n }) => {
992
992
  Oe,
993
993
  {
994
994
  idPrefix: "billing",
995
- title: c("billing_address"),
996
- description: c("checkout_billing_address_help"),
995
+ title: n("billing_address"),
996
+ description: n("checkout_billing_address_help"),
997
997
  value: w,
998
998
  onChange: We
999
999
  },
1000
1000
  void 0,
1001
1001
  !1,
1002
1002
  {
1003
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1003
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1004
1004
  lineNumber: 991,
1005
1005
  columnNumber: 13
1006
1006
  },
@@ -1008,39 +1008,39 @@ const on = ({ initialCustomer: n }) => {
1008
1008
  ),
1009
1009
  _ ? /* @__PURE__ */ e("div", { className: "flex items-center space-x-3 rounded-xl border bg-muted/20 p-4", children: [
1010
1010
  /* @__PURE__ */ e(
1011
- rs,
1011
+ mo,
1012
1012
  {
1013
1013
  id: "use-billing-for-shipping",
1014
1014
  checked: I,
1015
- onCheckedChange: (s) => Se(!!s)
1015
+ onCheckedChange: (o) => Se(!!o)
1016
1016
  },
1017
1017
  void 0,
1018
1018
  !1,
1019
1019
  {
1020
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1020
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1021
1021
  lineNumber: 1001,
1022
1022
  columnNumber: 17
1023
1023
  },
1024
1024
  void 0
1025
1025
  ),
1026
1026
  /* @__PURE__ */ e("div", { className: "space-y-1", children: [
1027
- /* @__PURE__ */ e(g, { htmlFor: "use-billing-for-shipping", className: "cursor-pointer", children: c("use_billing_for_shipping") }, void 0, !1, {
1028
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1027
+ /* @__PURE__ */ e(g, { htmlFor: "use-billing-for-shipping", className: "cursor-pointer", children: n("use_billing_for_shipping") }, void 0, !1, {
1028
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1029
1029
  lineNumber: 1007,
1030
1030
  columnNumber: 19
1031
1031
  }, void 0),
1032
- /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: c("checkout_use_billing_for_shipping_help") }, void 0, !1, {
1033
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1032
+ /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: n("checkout_use_billing_for_shipping_help") }, void 0, !1, {
1033
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1034
1034
  lineNumber: 1010,
1035
1035
  columnNumber: 19
1036
1036
  }, void 0)
1037
1037
  ] }, void 0, !0, {
1038
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1038
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1039
1039
  lineNumber: 1006,
1040
1040
  columnNumber: 17
1041
1041
  }, void 0)
1042
1042
  ] }, void 0, !0, {
1043
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1043
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1044
1044
  lineNumber: 1e3,
1045
1045
  columnNumber: 15
1046
1046
  }, void 0) : null,
@@ -1048,15 +1048,15 @@ const on = ({ initialCustomer: n }) => {
1048
1048
  Oe,
1049
1049
  {
1050
1050
  idPrefix: "shipping",
1051
- title: c("shipping_address"),
1052
- description: c("checkout_shipping_address_help"),
1051
+ title: n("shipping_address"),
1052
+ description: n("checkout_shipping_address_help"),
1053
1053
  value: z,
1054
1054
  onChange: we
1055
1055
  },
1056
1056
  void 0,
1057
1057
  !1,
1058
1058
  {
1059
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1059
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1060
1060
  lineNumber: 1018,
1061
1061
  columnNumber: 15
1062
1062
  },
@@ -1064,42 +1064,42 @@ const on = ({ initialCustomer: n }) => {
1064
1064
  ) : null,
1065
1065
  _ ? /* @__PURE__ */ e(G, { children: [
1066
1066
  /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(Q, { className: "flex items-center gap-2", children: [
1067
- /* @__PURE__ */ e(ps, { className: "w-5 h-5 text-primary" }, void 0, !1, {
1068
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1067
+ /* @__PURE__ */ e(xo, { className: "w-5 h-5 text-primary" }, void 0, !1, {
1068
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1069
1069
  lineNumber: 1031,
1070
1070
  columnNumber: 21
1071
1071
  }, void 0),
1072
- c("ecommerce.shipping_method")
1072
+ n("ecommerce.shipping_method")
1073
1073
  ] }, void 0, !0, {
1074
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1074
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1075
1075
  lineNumber: 1030,
1076
1076
  columnNumber: 19
1077
1077
  }, void 0) }, void 0, !1, {
1078
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1078
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1079
1079
  lineNumber: 1029,
1080
1080
  columnNumber: 17
1081
1081
  }, void 0),
1082
- /* @__PURE__ */ e(X, { children: ye ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center py-6", children: /* @__PURE__ */ e(he, { className: "w-6 h-6 animate-spin text-muted-foreground" }, void 0, !1, {
1083
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1082
+ /* @__PURE__ */ e(X, { children: ye ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center py-6", children: /* @__PURE__ */ e(xe, { className: "w-6 h-6 animate-spin text-muted-foreground" }, void 0, !1, {
1083
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1084
1084
  lineNumber: 1038,
1085
1085
  columnNumber: 23
1086
1086
  }, void 0) }, void 0, !1, {
1087
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1087
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1088
1088
  lineNumber: 1037,
1089
1089
  columnNumber: 21
1090
- }, void 0) : K.length > 0 ? /* @__PURE__ */ e("div", { className: "space-y-3", children: K.map((s) => /* @__PURE__ */ e(
1090
+ }, void 0) : K.length > 0 ? /* @__PURE__ */ e("div", { className: "space-y-3", children: K.map((o) => /* @__PURE__ */ e(
1091
1091
  "div",
1092
1092
  {
1093
- onClick: () => R(s.id),
1094
- className: `flex items-center justify-between p-4 rounded-lg border-2 cursor-pointer transition-all ${k === s.id ? "border-primary bg-primary/5" : "border-neutral-100 hover:border-neutral-200"}`,
1093
+ onClick: () => R(o.id),
1094
+ className: `flex items-center justify-between p-4 rounded-lg border-2 cursor-pointer transition-all ${k === o.id ? "border-primary bg-primary/5" : "border-neutral-100 hover:border-neutral-200"}`,
1095
1095
  children: [
1096
1096
  /* @__PURE__ */ e("div", { className: "flex items-center gap-3", children: [
1097
1097
  /* @__PURE__ */ e(
1098
1098
  "div",
1099
1099
  {
1100
- className: `w-4 h-4 rounded-full border flex items-center justify-center ${k === s.id ? "border-primary" : "border-neutral-300"}`,
1101
- children: k === s.id ? /* @__PURE__ */ e("div", { className: "w-2 h-2 rounded-full bg-primary" }, void 0, !1, {
1102
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1100
+ className: `w-4 h-4 rounded-full border flex items-center justify-center ${k === o.id ? "border-primary" : "border-neutral-300"}`,
1101
+ children: k === o.id ? /* @__PURE__ */ e("div", { className: "w-2 h-2 rounded-full bg-primary" }, void 0, !1, {
1102
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1103
1103
  lineNumber: 1059,
1104
1104
  columnNumber: 33
1105
1105
  }, void 0) : null
@@ -1107,177 +1107,177 @@ const on = ({ initialCustomer: n }) => {
1107
1107
  void 0,
1108
1108
  !1,
1109
1109
  {
1110
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1110
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1111
1111
  lineNumber: 1053,
1112
1112
  columnNumber: 29
1113
1113
  },
1114
1114
  void 0
1115
1115
  ),
1116
- /* @__PURE__ */ e("span", { className: "font-medium", children: s.name }, void 0, !1, {
1117
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1116
+ /* @__PURE__ */ e("span", { className: "font-medium", children: o.name }, void 0, !1, {
1117
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1118
1118
  lineNumber: 1062,
1119
1119
  columnNumber: 29
1120
1120
  }, void 0)
1121
1121
  ] }, void 0, !0, {
1122
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1122
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1123
1123
  lineNumber: 1052,
1124
1124
  columnNumber: 27
1125
1125
  }, void 0),
1126
- /* @__PURE__ */ e("span", { className: "font-bold", children: p(s.amount, l) }, void 0, !1, {
1127
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1126
+ /* @__PURE__ */ e("span", { className: "font-bold", children: h(o.amount, l) }, void 0, !1, {
1127
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1128
1128
  lineNumber: 1064,
1129
1129
  columnNumber: 27
1130
1130
  }, void 0)
1131
1131
  ]
1132
1132
  },
1133
- s.id,
1133
+ o.id,
1134
1134
  !0,
1135
1135
  {
1136
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1136
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1137
1137
  lineNumber: 1043,
1138
1138
  columnNumber: 25
1139
1139
  },
1140
1140
  void 0
1141
1141
  )) }, void 0, !1, {
1142
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1142
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1143
1143
  lineNumber: 1041,
1144
1144
  columnNumber: 21
1145
- }, void 0) : /* @__PURE__ */ e("div", { className: "py-4 text-center text-muted-foreground bg-muted/30 rounded-lg italic", children: ce ? c("ecommerce.no_rates_for_region") : o(
1145
+ }, void 0) : /* @__PURE__ */ e("div", { className: "py-4 text-center text-muted-foreground bg-muted/30 rounded-lg italic", children: ne ? n("ecommerce.no_rates_for_region") : i(
1146
1146
  "ecommerce.waiting_on_address_info",
1147
1147
  "Complete your shipping address to view available shipping options."
1148
1148
  ) }, void 0, !1, {
1149
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1149
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1150
1150
  lineNumber: 1071,
1151
1151
  columnNumber: 21
1152
1152
  }, void 0) }, void 0, !1, {
1153
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1153
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1154
1154
  lineNumber: 1035,
1155
1155
  columnNumber: 17
1156
1156
  }, void 0)
1157
1157
  ] }, void 0, !0, {
1158
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1158
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1159
1159
  lineNumber: 1028,
1160
1160
  columnNumber: 15
1161
1161
  }, void 0) : null
1162
1162
  ] }, void 0, !0, {
1163
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1163
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1164
1164
  lineNumber: 944,
1165
1165
  columnNumber: 11
1166
1166
  }, void 0),
1167
1167
  /* @__PURE__ */ e("div", { className: "lg:col-span-4 space-y-6", children: [
1168
1168
  /* @__PURE__ */ e(G, { className: "top-6", children: [
1169
- /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(Q, { children: c("ecommerce.order_summary") }, void 0, !1, {
1170
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1169
+ /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(Q, { children: n("ecommerce.order_summary") }, void 0, !1, {
1170
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1171
1171
  lineNumber: 1088,
1172
1172
  columnNumber: 17
1173
1173
  }, void 0) }, void 0, !1, {
1174
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1174
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1175
1175
  lineNumber: 1087,
1176
1176
  columnNumber: 15
1177
1177
  }, void 0),
1178
1178
  /* @__PURE__ */ e(X, { className: "space-y-4", children: [
1179
- /* @__PURE__ */ e("div", { className: "space-y-3 max-h-[260px] overflow-y-auto pr-2", children: v.map((s) => {
1180
- const t = ge(s, {
1179
+ /* @__PURE__ */ e("div", { className: "space-y-3 max-h-[260px] overflow-y-auto pr-2", children: v.map((o) => {
1180
+ const s = ge(o, {
1181
1181
  currencyCode: l,
1182
1182
  currencies: E
1183
- }), b = Be(s);
1183
+ }), d = Be(o);
1184
1184
  return /* @__PURE__ */ e("div", { className: "flex items-start justify-between gap-4", children: [
1185
1185
  /* @__PURE__ */ e("div", { className: "flex gap-3", children: [
1186
- s.image_url ? /* @__PURE__ */ e("div", { className: "h-10 w-10 shrink-0 overflow-hidden rounded border bg-neutral-100", children: /* @__PURE__ */ e("img", { src: s.image_url, alt: s.title, className: "h-full w-full object-cover" }, void 0, !1, {
1187
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1186
+ o.image_url ? /* @__PURE__ */ e("div", { className: "h-10 w-10 shrink-0 overflow-hidden rounded border bg-neutral-100", children: /* @__PURE__ */ e("img", { src: o.image_url, alt: o.title, className: "h-full w-full object-cover" }, void 0, !1, {
1187
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1188
1188
  lineNumber: 1104,
1189
1189
  columnNumber: 31
1190
1190
  }, void 0) }, void 0, !1, {
1191
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1191
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1192
1192
  lineNumber: 1103,
1193
1193
  columnNumber: 29
1194
1194
  }, void 0) : null,
1195
1195
  /* @__PURE__ */ e("div", { className: "grid gap-0.5", children: [
1196
1196
  /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: [
1197
- /* @__PURE__ */ e("span", { className: "font-medium text-xs line-clamp-1", children: s.title }, void 0, !1, {
1198
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1197
+ /* @__PURE__ */ e("span", { className: "font-medium text-xs line-clamp-1", children: o.title }, void 0, !1, {
1198
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1199
1199
  lineNumber: 1109,
1200
1200
  columnNumber: 31
1201
1201
  }, void 0),
1202
- /* @__PURE__ */ e(Ke, { variant: "outline", className: "text-[9px] uppercase", children: ns(s) }, void 0, !1, {
1203
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1202
+ /* @__PURE__ */ e(Ke, { variant: "outline", className: "text-[9px] uppercase", children: co(o) }, void 0, !1, {
1203
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1204
1204
  lineNumber: 1110,
1205
1205
  columnNumber: 31
1206
1206
  }, void 0)
1207
1207
  ] }, void 0, !0, {
1208
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1208
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1209
1209
  lineNumber: 1108,
1210
1210
  columnNumber: 29
1211
1211
  }, void 0),
1212
- s.variant_label ? /* @__PURE__ */ e("span", { className: "text-[10px] text-muted-foreground line-clamp-1", children: s.variant_label }, void 0, !1, {
1213
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1212
+ o.variant_label ? /* @__PURE__ */ e("span", { className: "text-[10px] text-muted-foreground line-clamp-1", children: o.variant_label }, void 0, !1, {
1213
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1214
1214
  lineNumber: 1115,
1215
1215
  columnNumber: 31
1216
1216
  }, void 0) : null,
1217
1217
  /* @__PURE__ */ e("span", { className: "text-[10px] text-muted-foreground", children: [
1218
- c("ecommerce.qty"),
1218
+ n("ecommerce.qty"),
1219
1219
  ": ",
1220
- s.quantity
1220
+ o.quantity
1221
1221
  ] }, void 0, !0, {
1222
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1222
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1223
1223
  lineNumber: 1119,
1224
1224
  columnNumber: 29
1225
1225
  }, void 0),
1226
- b ? /* @__PURE__ */ e("span", { className: "text-[10px] font-medium text-emerald-700", children: [
1227
- b.label,
1226
+ d ? /* @__PURE__ */ e("span", { className: "text-[10px] font-medium text-emerald-700", children: [
1227
+ d.label,
1228
1228
  " - ",
1229
- b.paymentRequirementLabel
1229
+ d.paymentRequirementLabel
1230
1230
  ] }, void 0, !0, {
1231
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1231
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1232
1232
  lineNumber: 1123,
1233
1233
  columnNumber: 31
1234
1234
  }, void 0) : null
1235
1235
  ] }, void 0, !0, {
1236
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1236
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1237
1237
  lineNumber: 1107,
1238
1238
  columnNumber: 27
1239
1239
  }, void 0)
1240
1240
  ] }, void 0, !0, {
1241
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1241
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1242
1242
  lineNumber: 1101,
1243
1243
  columnNumber: 25
1244
1244
  }, void 0),
1245
1245
  /* @__PURE__ */ e("div", { className: "flex flex-col items-end gap-0.5 shrink-0", children: [
1246
- /* @__PURE__ */ e("span", { className: "font-medium text-xs", children: p(
1247
- (t.sale_price ?? t.price) * s.quantity,
1246
+ /* @__PURE__ */ e("span", { className: "font-medium text-xs", children: h(
1247
+ (s.sale_price ?? s.price) * o.quantity,
1248
1248
  l
1249
1249
  ) }, void 0, !1, {
1250
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1250
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1251
1251
  lineNumber: 1130,
1252
1252
  columnNumber: 27
1253
1253
  }, void 0),
1254
- t.sale_price ? /* @__PURE__ */ e("span", { className: "text-[9px] text-muted-foreground line-through", children: p(t.price * s.quantity, l) }, void 0, !1, {
1255
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1254
+ s.sale_price ? /* @__PURE__ */ e("span", { className: "text-[9px] text-muted-foreground line-through", children: h(s.price * o.quantity, l) }, void 0, !1, {
1255
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1256
1256
  lineNumber: 1137,
1257
1257
  columnNumber: 29
1258
1258
  }, void 0) : null
1259
1259
  ] }, void 0, !0, {
1260
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1260
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1261
1261
  lineNumber: 1129,
1262
1262
  columnNumber: 25
1263
1263
  }, void 0)
1264
- ] }, `${s.id}-${s.variant_id || "base"}`, !0, {
1265
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1264
+ ] }, `${o.id}-${o.variant_id || "base"}`, !0, {
1265
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1266
1266
  lineNumber: 1100,
1267
1267
  columnNumber: 23
1268
1268
  }, void 0);
1269
1269
  }) }, void 0, !1, {
1270
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1270
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1271
1271
  lineNumber: 1091,
1272
1272
  columnNumber: 17
1273
1273
  }, void 0),
1274
- /* @__PURE__ */ e(us, {}, void 0, !1, {
1275
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1274
+ /* @__PURE__ */ e(uo, {}, void 0, !1, {
1275
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1276
1276
  lineNumber: 1147,
1277
1277
  columnNumber: 17
1278
1278
  }, void 0),
1279
1279
  /* @__PURE__ */ e(
1280
- Fs,
1280
+ To,
1281
1281
  {
1282
1282
  items: v,
1283
1283
  currencyCode: l,
@@ -1286,7 +1286,7 @@ const on = ({ initialCustomer: n }) => {
1286
1286
  void 0,
1287
1287
  !1,
1288
1288
  {
1289
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1289
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1290
1290
  lineNumber: 1149,
1291
1291
  columnNumber: 17
1292
1292
  },
@@ -1294,271 +1294,271 @@ const on = ({ initialCustomer: n }) => {
1294
1294
  ),
1295
1295
  /* @__PURE__ */ e("div", { className: "space-y-2 text-sm", children: [
1296
1296
  /* @__PURE__ */ e("div", { className: "flex justify-between", children: [
1297
- /* @__PURE__ */ e("span", { children: c("ecommerce.subtotal") }, void 0, !1, {
1298
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1297
+ /* @__PURE__ */ e("span", { children: n("ecommerce.subtotal") }, void 0, !1, {
1298
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1299
1299
  lineNumber: 1157,
1300
1300
  columnNumber: 21
1301
1301
  }, void 0),
1302
- /* @__PURE__ */ e("span", { children: p(Qe, l) }, void 0, !1, {
1303
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1302
+ /* @__PURE__ */ e("span", { children: h(Qe, l) }, void 0, !1, {
1303
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1304
1304
  lineNumber: 1158,
1305
1305
  columnNumber: 21
1306
1306
  }, void 0)
1307
1307
  ] }, void 0, !0, {
1308
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1308
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1309
1309
  lineNumber: 1156,
1310
1310
  columnNumber: 19
1311
1311
  }, void 0),
1312
1312
  C.length > 0 ? /* @__PURE__ */ e("div", { className: "flex justify-between text-muted-foreground", children: [
1313
- /* @__PURE__ */ e("span", { children: o(
1313
+ /* @__PURE__ */ e("span", { children: i(
1314
1314
  "ecommerce.physical_products",
1315
1315
  "Physical products"
1316
1316
  ) }, void 0, !1, {
1317
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1317
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1318
1318
  lineNumber: 1162,
1319
1319
  columnNumber: 23
1320
1320
  }, void 0),
1321
- /* @__PURE__ */ e("span", { children: p(be, l) }, void 0, !1, {
1322
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1321
+ /* @__PURE__ */ e("span", { children: h(de, l) }, void 0, !1, {
1322
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1323
1323
  lineNumber: 1168,
1324
1324
  columnNumber: 23
1325
1325
  }, void 0)
1326
1326
  ] }, void 0, !0, {
1327
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1327
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1328
1328
  lineNumber: 1161,
1329
1329
  columnNumber: 21
1330
1330
  }, void 0) : null,
1331
1331
  y.length > 0 ? /* @__PURE__ */ e("div", { className: "flex justify-between text-muted-foreground", children: [
1332
- /* @__PURE__ */ e("span", { children: o(
1332
+ /* @__PURE__ */ e("span", { children: i(
1333
1333
  "ecommerce.digital_products",
1334
1334
  "Digital products"
1335
1335
  ) }, void 0, !1, {
1336
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1336
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1337
1337
  lineNumber: 1173,
1338
1338
  columnNumber: 23
1339
1339
  }, void 0),
1340
- /* @__PURE__ */ e("span", { children: p(ae, l) }, void 0, !1, {
1341
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1340
+ /* @__PURE__ */ e("span", { children: h(be, l) }, void 0, !1, {
1341
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1342
1342
  lineNumber: 1179,
1343
1343
  columnNumber: 23
1344
1344
  }, void 0)
1345
1345
  ] }, void 0, !0, {
1346
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1346
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1347
1347
  lineNumber: 1172,
1348
1348
  columnNumber: 21
1349
1349
  }, void 0) : null,
1350
1350
  j ? /* @__PURE__ */ e("div", { className: "flex justify-between text-emerald-600", children: [
1351
1351
  /* @__PURE__ */ e("span", { children: [
1352
- o("ecommerce.discount", "Discount"),
1352
+ i("ecommerce.discount", "Discount"),
1353
1353
  " (",
1354
1354
  j.code,
1355
1355
  ")"
1356
1356
  ] }, void 0, !0, {
1357
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1357
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1358
1358
  lineNumber: 1184,
1359
1359
  columnNumber: 23
1360
1360
  }, void 0),
1361
1361
  /* @__PURE__ */ e("span", { children: [
1362
1362
  "-",
1363
- p(j.discountTotal, l)
1363
+ h(j.discountTotal, l)
1364
1364
  ] }, void 0, !0, {
1365
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1365
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1366
1366
  lineNumber: 1187,
1367
1367
  columnNumber: 23
1368
1368
  }, void 0)
1369
1369
  ] }, void 0, !0, {
1370
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1370
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1371
1371
  lineNumber: 1183,
1372
1372
  columnNumber: 21
1373
1373
  }, void 0) : null,
1374
1374
  (C.length > 0 || y.length > 0) && /* @__PURE__ */ e("div", { className: "flex justify-between font-bold text-lg pt-2 border-t mt-2", children: [
1375
- /* @__PURE__ */ e("span", { children: o(
1375
+ /* @__PURE__ */ e("span", { children: i(
1376
1376
  "ecommerce.estimated_total",
1377
1377
  "Estimated total"
1378
1378
  ) }, void 0, !1, {
1379
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1379
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1380
1380
  lineNumber: 1192,
1381
1381
  columnNumber: 23
1382
1382
  }, void 0),
1383
- /* @__PURE__ */ e("span", { className: "text-primary", children: p(Ve, l) }, void 0, !1, {
1384
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1383
+ /* @__PURE__ */ e("span", { className: "text-primary", children: h(Ve, l) }, void 0, !1, {
1384
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1385
1385
  lineNumber: 1198,
1386
1386
  columnNumber: 23
1387
1387
  }, void 0)
1388
1388
  ] }, void 0, !0, {
1389
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1389
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1390
1390
  lineNumber: 1191,
1391
1391
  columnNumber: 21
1392
1392
  }, void 0)
1393
1393
  ] }, void 0, !0, {
1394
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1394
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1395
1395
  lineNumber: 1155,
1396
1396
  columnNumber: 17
1397
1397
  }, void 0)
1398
1398
  ] }, void 0, !0, {
1399
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1399
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1400
1400
  lineNumber: 1090,
1401
1401
  columnNumber: 15
1402
1402
  }, void 0)
1403
1403
  ] }, void 0, !0, {
1404
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1404
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1405
1405
  lineNumber: 1086,
1406
1406
  columnNumber: 13
1407
1407
  }, void 0),
1408
1408
  C.length > 0 ? /* @__PURE__ */ e(
1409
1409
  qe,
1410
1410
  {
1411
- title: o(
1411
+ title: i(
1412
1412
  "ecommerce.stripe_checkout_title",
1413
1413
  "Stripe Checkout"
1414
1414
  ),
1415
- description: o(
1415
+ description: i(
1416
1416
  "ecommerce.stripe_checkout_description",
1417
1417
  "Pay for physical products in one Stripe checkout session."
1418
1418
  ),
1419
- badgeLabel: es,
1419
+ badgeLabel: eo,
1420
1420
  children: [
1421
1421
  /* @__PURE__ */ e("div", { className: "space-y-2 text-sm", children: [
1422
1422
  /* @__PURE__ */ e("div", { className: "flex justify-between", children: [
1423
- /* @__PURE__ */ e("span", { children: o(
1423
+ /* @__PURE__ */ e("span", { children: i(
1424
1424
  "ecommerce.physical_subtotal",
1425
1425
  "Physical subtotal"
1426
1426
  ) }, void 0, !1, {
1427
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1427
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1428
1428
  lineNumber: 1221,
1429
1429
  columnNumber: 21
1430
1430
  }, void 0),
1431
- /* @__PURE__ */ e("span", { children: p(be, l) }, void 0, !1, {
1432
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1431
+ /* @__PURE__ */ e("span", { children: h(de, l) }, void 0, !1, {
1432
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1433
1433
  lineNumber: 1227,
1434
1434
  columnNumber: 21
1435
1435
  }, void 0)
1436
1436
  ] }, void 0, !0, {
1437
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1437
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1438
1438
  lineNumber: 1220,
1439
1439
  columnNumber: 19
1440
1440
  }, void 0),
1441
- de > 0 ? /* @__PURE__ */ e("div", { className: "flex justify-between text-emerald-600", children: [
1442
- /* @__PURE__ */ e("span", { children: o("ecommerce.discount", "Discount") }, void 0, !1, {
1443
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1441
+ ae > 0 ? /* @__PURE__ */ e("div", { className: "flex justify-between text-emerald-600", children: [
1442
+ /* @__PURE__ */ e("span", { children: i("ecommerce.discount", "Discount") }, void 0, !1, {
1443
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1444
1444
  lineNumber: 1231,
1445
1445
  columnNumber: 23
1446
1446
  }, void 0),
1447
1447
  /* @__PURE__ */ e("span", { children: [
1448
1448
  "-",
1449
- p(de, l)
1449
+ h(ae, l)
1450
1450
  ] }, void 0, !0, {
1451
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1451
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1452
1452
  lineNumber: 1234,
1453
1453
  columnNumber: 23
1454
1454
  }, void 0)
1455
1455
  ] }, void 0, !0, {
1456
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1456
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1457
1457
  lineNumber: 1230,
1458
1458
  columnNumber: 21
1459
1459
  }, void 0) : null,
1460
1460
  /* @__PURE__ */ e("div", { className: "flex justify-between", children: [
1461
- /* @__PURE__ */ e("span", { children: c("ecommerce.shipping") }, void 0, !1, {
1462
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1461
+ /* @__PURE__ */ e("span", { children: n("ecommerce.shipping") }, void 0, !1, {
1462
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1463
1463
  lineNumber: 1238,
1464
1464
  columnNumber: 21
1465
1465
  }, void 0),
1466
- /* @__PURE__ */ e("span", { children: ie ? p(ie.amount, l) : "-" }, void 0, !1, {
1467
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1466
+ /* @__PURE__ */ e("span", { children: te ? h(te.amount, l) : "-" }, void 0, !1, {
1467
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1468
1468
  lineNumber: 1239,
1469
1469
  columnNumber: 21
1470
1470
  }, void 0)
1471
1471
  ] }, void 0, !0, {
1472
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1472
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1473
1473
  lineNumber: 1237,
1474
1474
  columnNumber: 19
1475
1475
  }, void 0),
1476
1476
  /* @__PURE__ */ e("div", { className: "flex justify-between", children: [
1477
- /* @__PURE__ */ e("span", { children: o("ecommerce.tax", "Tax") }, void 0, !1, {
1478
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1477
+ /* @__PURE__ */ e("span", { children: i("ecommerce.tax", "Tax") }, void 0, !1, {
1478
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1479
1479
  lineNumber: 1242,
1480
1480
  columnNumber: 21
1481
1481
  }, void 0),
1482
- /* @__PURE__ */ e("span", { children: Ge ? "..." : D?.isPendingExternalCalculation ? o(
1482
+ /* @__PURE__ */ e("span", { children: Ge ? "..." : D?.isPendingExternalCalculation ? i(
1483
1483
  "ecommerce.tax_calculated_on_stripe",
1484
1484
  "Calculated on Stripe"
1485
- ) : D ? p(D.amount, l) : "-" }, void 0, !1, {
1486
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1485
+ ) : D ? h(D.amount, l) : "-" }, void 0, !1, {
1486
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1487
1487
  lineNumber: 1243,
1488
1488
  columnNumber: 21
1489
1489
  }, void 0)
1490
1490
  ] }, void 0, !0, {
1491
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1491
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1492
1492
  lineNumber: 1241,
1493
1493
  columnNumber: 19
1494
1494
  }, void 0),
1495
- D && D.lines.length > 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg bg-muted/20 px-3 py-2 text-xs text-muted-foreground", children: D.lines.map((s) => /* @__PURE__ */ e("div", { className: "flex justify-between gap-3", children: [
1495
+ D && D.lines.length > 0 ? /* @__PURE__ */ e("div", { className: "rounded-lg bg-muted/20 px-3 py-2 text-xs text-muted-foreground", children: D.lines.map((o) => /* @__PURE__ */ e("div", { className: "flex justify-between gap-3", children: [
1496
1496
  /* @__PURE__ */ e("span", { children: [
1497
- s.name,
1497
+ o.name,
1498
1498
  " (",
1499
- s.rate.toFixed(4),
1499
+ o.rate.toFixed(4),
1500
1500
  "%)"
1501
1501
  ] }, void 0, !0, {
1502
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1502
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1503
1503
  lineNumber: 1262,
1504
1504
  columnNumber: 27
1505
1505
  }, void 0),
1506
- /* @__PURE__ */ e("span", { children: p(s.amount, l) }, void 0, !1, {
1507
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1506
+ /* @__PURE__ */ e("span", { children: h(o.amount, l) }, void 0, !1, {
1507
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1508
1508
  lineNumber: 1265,
1509
1509
  columnNumber: 27
1510
1510
  }, void 0)
1511
- ] }, s.id || `${s.name}-${s.rate}`, !0, {
1512
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1511
+ ] }, o.id || `${o.name}-${o.rate}`, !0, {
1512
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1513
1513
  lineNumber: 1261,
1514
1514
  columnNumber: 25
1515
1515
  }, void 0)) }, void 0, !1, {
1516
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1516
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1517
1517
  lineNumber: 1259,
1518
1518
  columnNumber: 21
1519
1519
  }, void 0) : null,
1520
1520
  /* @__PURE__ */ e("div", { className: "flex justify-between font-semibold pt-2 border-t", children: [
1521
- /* @__PURE__ */ e("span", { children: o(
1521
+ /* @__PURE__ */ e("span", { children: i(
1522
1522
  "ecommerce.total_on_stripe",
1523
1523
  "Total on Stripe"
1524
1524
  ) }, void 0, !1, {
1525
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1525
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1526
1526
  lineNumber: 1271,
1527
1527
  columnNumber: 21
1528
1528
  }, void 0),
1529
- /* @__PURE__ */ e("span", { children: p(Te, l) }, void 0, !1, {
1530
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1529
+ /* @__PURE__ */ e("span", { children: h(Te, l) }, void 0, !1, {
1530
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1531
1531
  lineNumber: 1277,
1532
1532
  columnNumber: 21
1533
1533
  }, void 0)
1534
1534
  ] }, void 0, !0, {
1535
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1535
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1536
1536
  lineNumber: 1270,
1537
1537
  columnNumber: 19
1538
1538
  }, void 0)
1539
1539
  ] }, void 0, !0, {
1540
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1540
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1541
1541
  lineNumber: 1219,
1542
1542
  columnNumber: 17
1543
1543
  }, void 0),
1544
1544
  /* @__PURE__ */ e(
1545
- pe,
1545
+ he,
1546
1546
  {
1547
1547
  className: "w-full",
1548
1548
  size: "lg",
1549
1549
  onClick: () => Pe("stripe", C, "stripe"),
1550
1550
  disabled: Ze,
1551
1551
  children: [
1552
- i === "stripe" ? /* @__PURE__ */ e(he, { className: "mr-2 h-4 w-4 animate-spin" }, void 0, !1, {
1553
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1552
+ t === "stripe" ? /* @__PURE__ */ e(xe, { className: "mr-2 h-4 w-4 animate-spin" }, void 0, !1, {
1553
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1554
1554
  lineNumber: 1288,
1555
1555
  columnNumber: 21
1556
- }, void 0) : /* @__PURE__ */ e(hs, { className: "mr-2 h-4 w-4" }, void 0, !1, {
1557
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1556
+ }, void 0) : /* @__PURE__ */ e(ko, { className: "mr-2 h-4 w-4" }, void 0, !1, {
1557
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1558
1558
  lineNumber: 1290,
1559
1559
  columnNumber: 21
1560
1560
  }, void 0),
1561
- i === "stripe" ? c("ecommerce.processing") : o(
1561
+ t === "stripe" ? n("ecommerce.processing") : i(
1562
1562
  "ecommerce.checkout_physical_products",
1563
1563
  "Checkout Physical Products"
1564
1564
  )
@@ -1567,30 +1567,30 @@ const on = ({ initialCustomer: n }) => {
1567
1567
  void 0,
1568
1568
  !0,
1569
1569
  {
1570
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1570
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1571
1571
  lineNumber: 1281,
1572
1572
  columnNumber: 17
1573
1573
  },
1574
1574
  void 0
1575
1575
  ),
1576
- Ne && i === null ? /* @__PURE__ */ e("p", { className: "text-[11px] text-muted-foreground", children: Ne }, void 0, !1, {
1577
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1576
+ Ne && t === null ? /* @__PURE__ */ e("p", { className: "text-[11px] text-muted-foreground", children: Ne }, void 0, !1, {
1577
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1578
1578
  lineNumber: 1301,
1579
1579
  columnNumber: 19
1580
1580
  }, void 0) : null,
1581
- d.stripe ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-destructive/20 bg-destructive/10 px-3 py-2 text-xs text-destructive", children: d.stripe }, void 0, !1, {
1582
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1581
+ a.stripe ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-destructive/20 bg-destructive/10 px-3 py-2 text-xs text-destructive", children: a.stripe }, void 0, !1, {
1582
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1583
1583
  lineNumber: 1307,
1584
1584
  columnNumber: 19
1585
1585
  }, void 0) : null,
1586
- /* @__PURE__ */ e("p", { className: "text-[11px] text-muted-foreground", children: D?.isPendingExternalCalculation ? o(
1586
+ /* @__PURE__ */ e("p", { className: "text-[11px] text-muted-foreground", children: D?.isPendingExternalCalculation ? i(
1587
1587
  "checkout_stripe_tax_finalized_notice",
1588
1588
  "Tax will be finalized by Stripe Tax on the payment step."
1589
- ) : o(
1589
+ ) : i(
1590
1590
  "ecommerce.shipping_taxes_collected_on_stripe",
1591
1591
  "Shipping and taxes are only collected during the Stripe step for physical products."
1592
1592
  ) }, void 0, !1, {
1593
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1593
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1594
1594
  lineNumber: 1312,
1595
1595
  columnNumber: 17
1596
1596
  }, void 0)
@@ -1599,7 +1599,7 @@ const on = ({ initialCustomer: n }) => {
1599
1599
  void 0,
1600
1600
  !0,
1601
1601
  {
1602
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1602
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1603
1603
  lineNumber: 1208,
1604
1604
  columnNumber: 15
1605
1605
  },
@@ -1608,127 +1608,127 @@ const on = ({ initialCustomer: n }) => {
1608
1608
  y.length > 0 ? /* @__PURE__ */ e(
1609
1609
  qe,
1610
1610
  {
1611
- title: o(
1611
+ title: i(
1612
1612
  "ecommerce.freemius_checkout_title",
1613
1613
  "Freemius Checkout"
1614
1614
  ),
1615
- description: o(
1615
+ description: i(
1616
1616
  "ecommerce.freemius_checkout_description",
1617
1617
  "Digital products use the Freemius checkout flow."
1618
1618
  ),
1619
- badgeLabel: ss,
1619
+ badgeLabel: oo,
1620
1620
  children: [
1621
- /* @__PURE__ */ e("div", { className: "space-y-3", children: y.map((s) => {
1622
- const t = ge(s, {
1621
+ /* @__PURE__ */ e("div", { className: "space-y-3", children: y.map((o) => {
1622
+ const s = ge(o, {
1623
1623
  currencyCode: l,
1624
1624
  currencies: E
1625
- }), b = Be(s), u = `freemius:${s.id}`, f = b ? h[u] || "paid" : void 0;
1625
+ }), d = Be(o), u = `freemius:${o.id}`, f = d ? x[u] || "paid" : void 0;
1626
1626
  return /* @__PURE__ */ e("div", { className: "rounded-lg border p-3 space-y-3", children: [
1627
1627
  /* @__PURE__ */ e("div", { className: "flex items-start justify-between gap-3", children: [
1628
1628
  /* @__PURE__ */ e("div", { children: [
1629
- /* @__PURE__ */ e("p", { className: "font-medium", children: s.title }, void 0, !1, {
1630
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1629
+ /* @__PURE__ */ e("p", { className: "font-medium", children: o.title }, void 0, !1, {
1630
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1631
1631
  lineNumber: 1354,
1632
1632
  columnNumber: 29
1633
1633
  }, void 0),
1634
- s.billing_cycle ? /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground capitalize", children: os(s.billing_cycle) }, void 0, !1, {
1635
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1634
+ o.billing_cycle ? /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground capitalize", children: io(o.billing_cycle) }, void 0, !1, {
1635
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1636
1636
  lineNumber: 1356,
1637
1637
  columnNumber: 31
1638
1638
  }, void 0) : null,
1639
- b ? /* @__PURE__ */ e("p", { className: "text-xs font-medium text-emerald-700", children: [
1640
- b.label,
1639
+ d ? /* @__PURE__ */ e("p", { className: "text-xs font-medium text-emerald-700", children: [
1640
+ d.label,
1641
1641
  " - ",
1642
- b.paymentRequirementLabel
1642
+ d.paymentRequirementLabel
1643
1643
  ] }, void 0, !0, {
1644
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1644
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1645
1645
  lineNumber: 1361,
1646
1646
  columnNumber: 31
1647
1647
  }, void 0) : null
1648
1648
  ] }, void 0, !0, {
1649
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1649
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1650
1650
  lineNumber: 1353,
1651
1651
  columnNumber: 27
1652
1652
  }, void 0),
1653
- /* @__PURE__ */ e("span", { className: "font-medium", children: p(t.sale_price ?? t.price, l) }, void 0, !1, {
1654
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1653
+ /* @__PURE__ */ e("span", { className: "font-medium", children: h(s.sale_price ?? s.price, l) }, void 0, !1, {
1654
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1655
1655
  lineNumber: 1366,
1656
1656
  columnNumber: 27
1657
1657
  }, void 0)
1658
1658
  ] }, void 0, !0, {
1659
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1659
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1660
1660
  lineNumber: 1352,
1661
1661
  columnNumber: 25
1662
1662
  }, void 0),
1663
- b && !s.trial_requires_payment_method && /* @__PURE__ */ e("div", { className: "bg-muted/30 p-3 rounded-md border text-sm mt-2 mb-3", children: [
1664
- /* @__PURE__ */ e("p", { className: "font-medium mb-3", children: o(
1663
+ d && !o.trial_requires_payment_method && /* @__PURE__ */ e("div", { className: "bg-muted/30 p-3 rounded-md border text-sm mt-2 mb-3", children: [
1664
+ /* @__PURE__ */ e("p", { className: "font-medium mb-3", children: i(
1665
1665
  "ecommerce.freemius_trial_preference_title",
1666
1666
  "How would you like to start your trial?"
1667
1667
  ) }, void 0, !1, {
1668
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1668
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1669
1669
  lineNumber: 1373,
1670
1670
  columnNumber: 29
1671
1671
  }, void 0),
1672
1672
  /* @__PURE__ */ e(
1673
- bs,
1673
+ bo,
1674
1674
  {
1675
- value: h[u] || "paid",
1676
- onValueChange: (a) => A((r) => ({ ...r, [u]: a })),
1675
+ value: x[u] || "paid",
1676
+ onValueChange: (b) => A((m) => ({ ...m, [u]: b })),
1677
1677
  className: "gap-3",
1678
1678
  children: [
1679
1679
  /* @__PURE__ */ e("div", { className: "flex items-start space-x-3", children: [
1680
1680
  /* @__PURE__ */ e(Le, { value: "paid", id: `${u}-paid`, className: "mt-1" }, void 0, !1, {
1681
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1681
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1682
1682
  lineNumber: 1385,
1683
1683
  columnNumber: 33
1684
1684
  }, void 0),
1685
1685
  /* @__PURE__ */ e("div", { className: "grid gap-1.5", children: [
1686
- /* @__PURE__ */ e(g, { htmlFor: `${u}-paid`, className: "font-medium leading-none cursor-pointer", children: o(
1686
+ /* @__PURE__ */ e(g, { htmlFor: `${u}-paid`, className: "font-medium leading-none cursor-pointer", children: i(
1687
1687
  "ecommerce.freemius_trial_with_card",
1688
1688
  "Enter Payment Details Now (Still get full trial length free)"
1689
1689
  ) }, void 0, !1, {
1690
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1690
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1691
1691
  lineNumber: 1387,
1692
1692
  columnNumber: 35
1693
1693
  }, void 0),
1694
- /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: o(
1694
+ /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: i(
1695
1695
  "ecommerce.freemius_trial_with_card_help",
1696
1696
  "You will not be billed until the trial ends. Cancel anytime."
1697
1697
  ) }, void 0, !1, {
1698
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1698
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1699
1699
  lineNumber: 1393,
1700
1700
  columnNumber: 35
1701
1701
  }, void 0)
1702
1702
  ] }, void 0, !0, {
1703
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1703
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1704
1704
  lineNumber: 1386,
1705
1705
  columnNumber: 33
1706
1706
  }, void 0)
1707
1707
  ] }, void 0, !0, {
1708
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1708
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1709
1709
  lineNumber: 1384,
1710
1710
  columnNumber: 31
1711
1711
  }, void 0),
1712
1712
  /* @__PURE__ */ e("div", { className: "flex items-start space-x-3", children: [
1713
1713
  /* @__PURE__ */ e(Le, { value: "free", id: `${u}-free`, className: "mt-1" }, void 0, !1, {
1714
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1714
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1715
1715
  lineNumber: 1402,
1716
1716
  columnNumber: 33
1717
1717
  }, void 0),
1718
- /* @__PURE__ */ e("div", { className: "grid gap-1.5", children: /* @__PURE__ */ e(g, { htmlFor: `${u}-free`, className: "font-medium leading-none cursor-pointer", children: o(
1718
+ /* @__PURE__ */ e("div", { className: "grid gap-1.5", children: /* @__PURE__ */ e(g, { htmlFor: `${u}-free`, className: "font-medium leading-none cursor-pointer", children: i(
1719
1719
  "ecommerce.freemius_trial_no_card",
1720
1720
  "Start Free Trial (No card required)"
1721
1721
  ) }, void 0, !1, {
1722
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1722
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1723
1723
  lineNumber: 1404,
1724
1724
  columnNumber: 35
1725
1725
  }, void 0) }, void 0, !1, {
1726
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1726
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1727
1727
  lineNumber: 1403,
1728
1728
  columnNumber: 33
1729
1729
  }, void 0)
1730
1730
  ] }, void 0, !0, {
1731
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1731
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1732
1732
  lineNumber: 1401,
1733
1733
  columnNumber: 31
1734
1734
  }, void 0)
@@ -1737,51 +1737,51 @@ const on = ({ initialCustomer: n }) => {
1737
1737
  void 0,
1738
1738
  !0,
1739
1739
  {
1740
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1740
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1741
1741
  lineNumber: 1379,
1742
1742
  columnNumber: 29
1743
1743
  },
1744
1744
  void 0
1745
1745
  )
1746
1746
  ] }, void 0, !0, {
1747
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1747
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1748
1748
  lineNumber: 1372,
1749
1749
  columnNumber: 27
1750
1750
  }, void 0),
1751
1751
  /* @__PURE__ */ e(
1752
- pe,
1752
+ he,
1753
1753
  {
1754
1754
  className: "w-full h-auto min-h-[2.75rem] py-2",
1755
1755
  onClick: () => Pe(
1756
1756
  "freemius",
1757
1757
  [
1758
1758
  {
1759
- ...s,
1759
+ ...o,
1760
1760
  ...f ? { trial_preference: f } : {}
1761
1761
  }
1762
1762
  ],
1763
1763
  u
1764
1764
  ),
1765
- disabled: i !== null || fe !== null,
1765
+ disabled: t !== null || fe !== null,
1766
1766
  children: [
1767
- i === u ? /* @__PURE__ */ e(he, { className: "mr-2 h-4 w-4 shrink-0 animate-spin" }, void 0, !1, {
1768
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1767
+ t === u ? /* @__PURE__ */ e(xe, { className: "mr-2 h-4 w-4 shrink-0 animate-spin" }, void 0, !1, {
1768
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1769
1769
  lineNumber: 1435,
1770
1770
  columnNumber: 29
1771
- }, void 0) : /* @__PURE__ */ e(ks, { className: "mr-2 h-4 w-4 shrink-0" }, void 0, !1, {
1772
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1771
+ }, void 0) : /* @__PURE__ */ e(vo, { className: "mr-2 h-4 w-4 shrink-0" }, void 0, !1, {
1772
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1773
1773
  lineNumber: 1437,
1774
1774
  columnNumber: 29
1775
1775
  }, void 0),
1776
- /* @__PURE__ */ e("span", { className: "whitespace-normal text-left", children: i === u ? c("ecommerce.processing") : y.length > 1 ? o(
1776
+ /* @__PURE__ */ e("span", { className: "whitespace-normal text-left", children: t === u ? n("ecommerce.processing") : y.length > 1 ? i(
1777
1777
  "ecommerce.checkout_product",
1778
1778
  "Checkout {title}",
1779
- { title: s.title }
1780
- ) : o(
1779
+ { title: o.title }
1780
+ ) : i(
1781
1781
  "ecommerce.checkout_digital_product",
1782
1782
  "Checkout Digital Product"
1783
1783
  ) }, void 0, !1, {
1784
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1784
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1785
1785
  lineNumber: 1439,
1786
1786
  columnNumber: 27
1787
1787
  }, void 0)
@@ -1790,78 +1790,78 @@ const on = ({ initialCustomer: n }) => {
1790
1790
  void 0,
1791
1791
  !0,
1792
1792
  {
1793
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1793
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1794
1794
  lineNumber: 1416,
1795
1795
  columnNumber: 25
1796
1796
  },
1797
1797
  void 0
1798
1798
  )
1799
1799
  ] }, u, !0, {
1800
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1800
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1801
1801
  lineNumber: 1351,
1802
1802
  columnNumber: 23
1803
1803
  }, void 0);
1804
1804
  }) }, void 0, !1, {
1805
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1805
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1806
1806
  lineNumber: 1338,
1807
1807
  columnNumber: 17
1808
1808
  }, void 0),
1809
1809
  /* @__PURE__ */ e("div", { className: "flex justify-between text-sm font-semibold border-t pt-3", children: [
1810
- /* @__PURE__ */ e("span", { children: o(
1810
+ /* @__PURE__ */ e("span", { children: i(
1811
1811
  "ecommerce.digital_subtotal",
1812
1812
  "Digital subtotal"
1813
1813
  ) }, void 0, !1, {
1814
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1814
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1815
1815
  lineNumber: 1460,
1816
1816
  columnNumber: 19
1817
1817
  }, void 0),
1818
- /* @__PURE__ */ e("span", { children: p(ae, l) }, void 0, !1, {
1819
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1818
+ /* @__PURE__ */ e("span", { children: h(be, l) }, void 0, !1, {
1819
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1820
1820
  lineNumber: 1466,
1821
1821
  columnNumber: 19
1822
1822
  }, void 0)
1823
1823
  ] }, void 0, !0, {
1824
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1824
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1825
1825
  lineNumber: 1459,
1826
1826
  columnNumber: 17
1827
1827
  }, void 0),
1828
- xe > 0 ? /* @__PURE__ */ e("div", { className: "flex justify-between text-sm font-semibold text-emerald-600", children: [
1829
- /* @__PURE__ */ e("span", { children: o("ecommerce.discount", "Discount") }, void 0, !1, {
1830
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1828
+ pe > 0 ? /* @__PURE__ */ e("div", { className: "flex justify-between text-sm font-semibold text-emerald-600", children: [
1829
+ /* @__PURE__ */ e("span", { children: i("ecommerce.discount", "Discount") }, void 0, !1, {
1830
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1831
1831
  lineNumber: 1470,
1832
1832
  columnNumber: 21
1833
1833
  }, void 0),
1834
1834
  /* @__PURE__ */ e("span", { children: [
1835
1835
  "-",
1836
- p(xe, l)
1836
+ h(pe, l)
1837
1837
  ] }, void 0, !0, {
1838
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1838
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1839
1839
  lineNumber: 1471,
1840
1840
  columnNumber: 21
1841
1841
  }, void 0)
1842
1842
  ] }, void 0, !0, {
1843
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1843
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1844
1844
  lineNumber: 1469,
1845
1845
  columnNumber: 19
1846
1846
  }, void 0) : null,
1847
1847
  fe ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-amber-500/40 bg-amber-500/10 px-3 py-2 text-xs", children: fe }, void 0, !1, {
1848
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1848
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1849
1849
  lineNumber: 1476,
1850
1850
  columnNumber: 19
1851
1851
  }, void 0) : null,
1852
- d.freemius ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-destructive/20 bg-destructive/10 px-3 py-2 text-xs text-destructive", children: d.freemius }, void 0, !1, {
1853
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1852
+ a.freemius ? /* @__PURE__ */ e("div", { className: "rounded-lg border border-destructive/20 bg-destructive/10 px-3 py-2 text-xs text-destructive", children: a.freemius }, void 0, !1, {
1853
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1854
1854
  lineNumber: 1482,
1855
1855
  columnNumber: 19
1856
1856
  }, void 0) : null,
1857
- /* @__PURE__ */ e("p", { className: "text-[11px] text-muted-foreground", children: y.length > 1 ? o(
1857
+ /* @__PURE__ */ e("p", { className: "text-[11px] text-muted-foreground", children: y.length > 1 ? i(
1858
1858
  "ecommerce.freemius_multi_checkout_notice",
1859
1859
  "Freemius licenses are completed one at a time, so each digital product gets its own checkout action."
1860
- ) : o(
1860
+ ) : i(
1861
1861
  "ecommerce.freemius_tax_notice",
1862
1862
  "Taxes and compliance for digital products are handled inside the Freemius checkout."
1863
1863
  ) }, void 0, !1, {
1864
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1864
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1865
1865
  lineNumber: 1487,
1866
1866
  columnNumber: 17
1867
1867
  }, void 0)
@@ -1870,33 +1870,33 @@ const on = ({ initialCustomer: n }) => {
1870
1870
  void 0,
1871
1871
  !0,
1872
1872
  {
1873
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1873
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1874
1874
  lineNumber: 1327,
1875
1875
  columnNumber: 15
1876
1876
  },
1877
1877
  void 0
1878
1878
  ) : null
1879
1879
  ] }, void 0, !0, {
1880
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1880
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1881
1881
  lineNumber: 1085,
1882
1882
  columnNumber: 11
1883
1883
  }, void 0)
1884
1884
  ] }, void 0, !0, {
1885
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1885
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1886
1886
  lineNumber: 943,
1887
1887
  columnNumber: 9
1888
1888
  }, void 0)
1889
1889
  ] }, void 0, !0, {
1890
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1890
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1891
1891
  lineNumber: 940,
1892
1892
  columnNumber: 7
1893
1893
  }, void 0)
1894
1894
  ] }, void 0, !0, {
1895
- fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
1895
+ fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/Checkout.tsx",
1896
1896
  lineNumber: 937,
1897
1897
  columnNumber: 5
1898
1898
  }, void 0);
1899
1899
  };
1900
1900
  export {
1901
- on as Checkout
1901
+ nc as Checkout
1902
1902
  };