@nextblock-cms/ecom 0.16.3 → 0.17.0
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.
- package/lib/CurrencyProvider.cjs.js +1 -1
- package/lib/CurrencyProvider.d.ts +1 -1
- package/lib/CurrencyProvider.es.js +5 -5
- package/lib/PaymentReadinessProvider.cjs.js +1 -1
- package/lib/PaymentReadinessProvider.d.ts +1 -1
- package/lib/PaymentReadinessProvider.es.js +7 -7
- package/lib/components/AccountNavigationMenu.cjs.js +1 -1
- package/lib/components/AccountNavigationMenu.d.ts +1 -1
- package/lib/components/AccountNavigationMenu.es.js +23 -23
- package/lib/components/AddToCartButton.cjs.js +1 -1
- package/lib/components/AddToCartButton.d.ts +1 -1
- package/lib/components/AddToCartButton.es.js +29 -29
- package/lib/components/Cart.cjs.js +1 -1
- package/lib/components/Cart.d.ts +1 -1
- package/lib/components/Cart.es.js +129 -129
- package/lib/components/CartDrawer.cjs.js +1 -1
- package/lib/components/CartDrawer.d.ts +1 -1
- package/lib/components/CartDrawer.es.js +85 -85
- package/lib/components/CartIcon.cjs.js +1 -1
- package/lib/components/CartIcon.d.ts +1 -1
- package/lib/components/CartIcon.es.js +17 -17
- package/lib/components/Checkout.cjs.js +1 -1
- package/lib/components/Checkout.d.ts +1 -1
- package/lib/components/Checkout.es.js +561 -561
- package/lib/components/CouponForm.cjs.js +1 -1
- package/lib/components/CouponForm.d.ts +1 -1
- package/lib/components/CouponForm.es.js +62 -62
- package/lib/components/CurrencySwitcher.cjs.js +1 -1
- package/lib/components/CurrencySwitcher.d.ts +1 -1
- package/lib/components/CurrencySwitcher.es.js +12 -12
- package/lib/components/CustomerProfileForm.cjs.js +1 -1
- package/lib/components/CustomerProfileForm.d.ts +1 -1
- package/lib/components/CustomerProfileForm.es.js +238 -238
- package/lib/components/FeaturedProduct.cjs.js +1 -1
- package/lib/components/FeaturedProduct.d.ts +1 -1
- package/lib/components/FeaturedProduct.es.js +39 -39
- package/lib/components/FreemiusLicensePanel.cjs.js +1 -1
- package/lib/components/FreemiusLicensePanel.d.ts +1 -1
- package/lib/components/FreemiusLicensePanel.es.js +46 -46
- package/lib/components/InvoiceDocument.cjs.js +1 -1
- package/lib/components/InvoiceDocument.d.ts +2 -1
- package/lib/components/InvoiceDocument.es.js +144 -144
- package/lib/components/InvoiceViewerShell.cjs.js +2 -2
- package/lib/components/InvoiceViewerShell.d.ts +1 -1
- package/lib/components/InvoiceViewerShell.es.js +47 -47
- package/lib/components/ProductCard.cjs.js +1 -1
- package/lib/components/ProductCard.d.ts +1 -1
- package/lib/components/ProductCard.es.js +84 -84
- package/lib/components/ProductDetailsLayout.cjs.js +1 -1
- package/lib/components/ProductDetailsLayout.es.js +201 -201
- package/lib/components/ProductGallery.cjs.js +1 -1
- package/lib/components/ProductGallery.d.ts +1 -1
- package/lib/components/ProductGallery.es.js +21 -21
- package/lib/components/ProductGrid.cjs.js +1 -1
- package/lib/components/ProductGrid.d.ts +1 -1
- package/lib/components/ProductGrid.es.js +10 -10
- package/lib/components/ShippingEstimator.cjs.js +1 -1
- package/lib/components/ShippingEstimator.d.ts +1 -1
- package/lib/components/ShippingEstimator.es.js +71 -71
- package/lib/components/SimpleTiptapRenderer.cjs.js +1 -1
- package/lib/components/SimpleTiptapRenderer.es.js +133 -133
- package/lib/components/SubscriptionSelector.cjs.js +1 -1
- package/lib/components/SubscriptionSelector.d.ts +2 -1
- package/lib/components/SubscriptionSelector.es.js +74 -74
- package/lib/components/media/MediaPickerDialog.d.ts +2 -1
- package/lib/components/media/MediaUploadForm.d.ts +2 -1
- package/lib/components/media/UploadFolderContext.d.ts +1 -1
- package/lib/pages/cms/coupons/CouponEditorForm.cjs.js +1 -1
- package/lib/pages/cms/coupons/CouponEditorForm.d.ts +1 -1
- package/lib/pages/cms/coupons/CouponEditorForm.es.js +96 -96
- package/lib/pages/cms/coupons/CouponsPage.cjs.js +2 -2
- package/lib/pages/cms/coupons/CouponsPage.d.ts +1 -1
- package/lib/pages/cms/coupons/CouponsPage.es.js +83 -83
- package/lib/pages/cms/coupons/CreateCouponDialog.cjs.js +1 -1
- package/lib/pages/cms/coupons/CreateCouponDialog.d.ts +1 -1
- package/lib/pages/cms/coupons/CreateCouponDialog.es.js +22 -22
- package/lib/pages/cms/coupons/EditCouponPage.cjs.js +1 -1
- package/lib/pages/cms/coupons/EditCouponPage.d.ts +1 -1
- package/lib/pages/cms/coupons/EditCouponPage.es.js +25 -25
- package/lib/pages/cms/coupons/ProductScopePicker.cjs.js +1 -1
- package/lib/pages/cms/coupons/ProductScopePicker.d.ts +1 -1
- package/lib/pages/cms/coupons/ProductScopePicker.es.js +48 -48
- package/lib/pages/cms/orders/ExportReportsDialog.cjs.js +1 -1
- package/lib/pages/cms/orders/ExportReportsDialog.d.ts +2 -1
- package/lib/pages/cms/orders/ExportReportsDialog.es.js +73 -73
- package/lib/pages/cms/orders/MarkPaidButton.d.ts +1 -1
- package/lib/pages/cms/orders/OrderDetailPage.cjs.js +1 -1
- package/lib/pages/cms/orders/OrderDetailPage.d.ts +1 -1
- package/lib/pages/cms/orders/OrderDetailPage.es.js +95 -95
- package/lib/pages/cms/orders/OrderPrintButton.cjs.js +1 -1
- package/lib/pages/cms/orders/OrderPrintButton.d.ts +1 -1
- package/lib/pages/cms/orders/OrderPrintButton.es.js +2 -2
- package/lib/pages/cms/orders/OrderStatusForm.cjs.js +1 -1
- package/lib/pages/cms/orders/OrderStatusForm.d.ts +1 -1
- package/lib/pages/cms/orders/OrderStatusForm.es.js +33 -33
- package/lib/pages/cms/orders/OrdersPage.cjs.js +1 -1
- package/lib/pages/cms/orders/OrdersPage.d.ts +1 -1
- package/lib/pages/cms/orders/OrdersPage.es.js +68 -68
- package/lib/pages/cms/payments/PaymentsClient.cjs.js +1 -1
- package/lib/pages/cms/payments/PaymentsClient.d.ts +1 -1
- package/lib/pages/cms/payments/PaymentsClient.es.js +120 -120
- package/lib/pages/cms/payments/PaymentsPage.cjs.js +1 -1
- package/lib/pages/cms/payments/PaymentsPage.d.ts +1 -1
- package/lib/pages/cms/payments/PaymentsPage.es.js +5 -5
- package/lib/pages/cms/products/ProductsPage.cjs.js +1 -1
- package/lib/pages/cms/products/ProductsPage.d.ts +1 -1
- package/lib/pages/cms/products/ProductsPage.es.js +75 -54
- package/lib/pages/cms/products/[id]/edit/EditProductPage.d.ts +1 -1
- package/lib/pages/cms/products/_id_/edit/EditProductPage.cjs.js +1 -1
- package/lib/pages/cms/products/_id_/edit/EditProductPage.es.js +38 -38
- package/lib/pages/cms/products/actions.d.ts +2 -0
- package/lib/pages/cms/products/attributes/AttributeManagementPage.cjs.js +1 -1
- package/lib/pages/cms/products/attributes/AttributeManagementPage.d.ts +1 -1
- package/lib/pages/cms/products/attributes/AttributeManagementPage.es.js +32 -32
- package/lib/pages/cms/products/attributes/components/AttributeManager.cjs.js +1 -1
- package/lib/pages/cms/products/attributes/components/AttributeManager.d.ts +1 -1
- package/lib/pages/cms/products/attributes/components/AttributeManager.es.js +173 -173
- package/lib/pages/cms/products/categories/CategoryManagementPage.cjs.js +1 -1
- package/lib/pages/cms/products/categories/CategoryManagementPage.d.ts +1 -1
- package/lib/pages/cms/products/categories/CategoryManagementPage.es.js +16 -16
- package/lib/pages/cms/products/categories/components/CategoryManager.cjs.js +1 -1
- package/lib/pages/cms/products/categories/components/CategoryManager.d.ts +2 -1
- package/lib/pages/cms/products/categories/components/CategoryManager.es.js +102 -102
- package/lib/pages/cms/products/components/CopyProductFromLanguage.cjs.js +1 -1
- package/lib/pages/cms/products/components/CopyProductFromLanguage.d.ts +2 -1
- package/lib/pages/cms/products/components/CopyProductFromLanguage.es.js +45 -45
- package/lib/pages/cms/products/components/CurrencyPriceFields.cjs.js +1 -1
- package/lib/pages/cms/products/components/CurrencyPriceFields.d.ts +1 -1
- package/lib/pages/cms/products/components/CurrencyPriceFields.es.js +45 -45
- package/lib/pages/cms/products/components/DeleteProductButton.cjs.js +1 -1
- package/lib/pages/cms/products/components/DeleteProductButton.d.ts +1 -1
- package/lib/pages/cms/products/components/DeleteProductButton.es.js +14 -14
- package/lib/pages/cms/products/components/FreemiusPricingDashboard.cjs.js +1 -1
- package/lib/pages/cms/products/components/FreemiusPricingDashboard.d.ts +1 -1
- package/lib/pages/cms/products/components/FreemiusPricingDashboard.es.js +45 -45
- package/lib/pages/cms/products/components/ProductCategorySelector.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductCategorySelector.d.ts +2 -1
- package/lib/pages/cms/products/components/ProductCategorySelector.es.js +84 -84
- package/lib/pages/cms/products/components/ProductForm.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductForm.d.ts +7 -1
- package/lib/pages/cms/products/components/ProductForm.es.js +520 -513
- package/lib/pages/cms/products/components/ProductMediaManager.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductMediaManager.d.ts +1 -1
- package/lib/pages/cms/products/components/ProductMediaManager.es.js +42 -42
- package/lib/pages/cms/products/components/ProductsBulkTable.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductsBulkTable.d.ts +2 -1
- package/lib/pages/cms/products/components/ProductsBulkTable.es.js +402 -250
- package/lib/pages/cms/products/components/SaleScheduleFields.cjs.js +1 -1
- package/lib/pages/cms/products/components/SaleScheduleFields.d.ts +1 -1
- package/lib/pages/cms/products/components/SaleScheduleFields.es.js +43 -43
- package/lib/pages/cms/products/components/SyncFreemiusButton.cjs.js +1 -1
- package/lib/pages/cms/products/components/SyncFreemiusButton.d.ts +1 -1
- package/lib/pages/cms/products/components/SyncFreemiusButton.es.js +9 -9
- package/lib/pages/cms/products/components/SyncFreemiusPricingButton.cjs.js +2 -2
- package/lib/pages/cms/products/components/SyncFreemiusPricingButton.d.ts +1 -1
- package/lib/pages/cms/products/components/SyncFreemiusPricingButton.es.js +15 -15
- package/lib/pages/cms/products/components/SyncProductForm.d.ts +1 -1
- package/lib/pages/cms/products/components/VariationsEditor.cjs.js +1 -1
- package/lib/pages/cms/products/components/VariationsEditor.d.ts +1 -1
- package/lib/pages/cms/products/components/VariationsEditor.es.js +104 -104
- package/lib/pages/cms/products/inventory/InventoryPage.cjs.js +1 -1
- package/lib/pages/cms/products/inventory/InventoryPage.d.ts +1 -1
- package/lib/pages/cms/products/inventory/InventoryPage.es.js +10 -10
- package/lib/pages/cms/products/inventory/InventoryTableClient.cjs.js +2 -2
- package/lib/pages/cms/products/inventory/InventoryTableClient.d.ts +1 -1
- package/lib/pages/cms/products/inventory/InventoryTableClient.es.js +139 -139
- package/lib/pages/cms/products/new/NewProductPage.cjs.js +1 -1
- package/lib/pages/cms/products/new/NewProductPage.d.ts +1 -1
- package/lib/pages/cms/products/new/NewProductPage.es.js +19 -19
- package/lib/pages/cms/shipping/ShippingPage.cjs.js +2 -2
- package/lib/pages/cms/shipping/ShippingPage.d.ts +2 -1
- package/lib/pages/cms/shipping/ShippingPage.es.js +123 -123
- package/lib/pages/cms/shipping/components/RateForm.cjs.js +1 -1
- package/lib/pages/cms/shipping/components/RateForm.d.ts +1 -1
- package/lib/pages/cms/shipping/components/RateForm.es.js +217 -217
- package/lib/pages/cms/shipping/components/ZoneForm.cjs.js +1 -1
- package/lib/pages/cms/shipping/components/ZoneForm.d.ts +2 -1
- package/lib/pages/cms/shipping/components/ZoneForm.es.js +98 -98
- package/lib/pages/cms/taxes/TaxesPage.cjs.js +1 -1
- package/lib/pages/cms/taxes/TaxesPage.d.ts +1 -1
- package/lib/pages/cms/taxes/TaxesPage.es.js +120 -120
- package/lib/pages/cms/taxes/components/TaxRateForm.cjs.js +1 -1
- package/lib/pages/cms/taxes/components/TaxRateForm.d.ts +1 -1
- package/lib/pages/cms/taxes/components/TaxRateForm.es.js +34 -34
- package/lib/product-actions.cjs.js +3 -3
- package/lib/product-actions.d.ts +2 -0
- package/lib/product-actions.es.js +1 -1
- package/lib/product-context.cjs.js +1 -1
- package/lib/product-context.es.js +3 -3
- package/package.json +4 -4
|
@@ -1,166 +1,166 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsxDEV as e, Fragment as
|
|
2
|
+
import { jsxDEV as e, Fragment as ms } from "react/jsx-dev-runtime";
|
|
3
3
|
import { Badge as Ke } from "@nextblock-cms/ui/badge";
|
|
4
|
-
import { Button as
|
|
4
|
+
import { Button as pe } 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
|
|
6
|
+
import { Checkbox as rs } 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
|
|
10
|
-
import { RadioGroup as
|
|
11
|
-
import { Checkout as
|
|
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";
|
|
12
12
|
import { getCartItemActivePrice as ge } from "../cart-store.es.js";
|
|
13
|
-
import { useCart as
|
|
14
|
-
import { useState as N, useMemo as F, useEffect as
|
|
15
|
-
import { X as
|
|
16
|
-
import { useTranslations as Ue, formatPrice as
|
|
17
|
-
import { normalizeCountryCode as
|
|
18
|
-
import { usePaymentReadiness as
|
|
19
|
-
import { getShippingEstimates as
|
|
20
|
-
import { getTaxEstimate as
|
|
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";
|
|
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
|
|
24
|
-
import { useCurrency as
|
|
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";
|
|
25
25
|
import { getTrialSummary as Be } from "../trials.es.js";
|
|
26
|
-
import { CouponForm as
|
|
27
|
-
const
|
|
28
|
-
function
|
|
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) {
|
|
29
29
|
return {
|
|
30
|
-
...
|
|
31
|
-
company_name:
|
|
32
|
-
recipient_name:
|
|
33
|
-
line1:
|
|
34
|
-
line2:
|
|
35
|
-
city:
|
|
36
|
-
state:
|
|
37
|
-
postal_code:
|
|
38
|
-
country_code:
|
|
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"
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const
|
|
43
|
-
return !(!
|
|
41
|
+
function As(n) {
|
|
42
|
+
const h = Ce(n);
|
|
43
|
+
return !(!h?.country_code || !h.postal_code || _e(h.country_code) && !h.state);
|
|
44
44
|
}
|
|
45
|
-
function ve(
|
|
46
|
-
return
|
|
47
|
-
const { price:
|
|
48
|
-
currencyCode:
|
|
45
|
+
function ve(n, h, A) {
|
|
46
|
+
return n.reduce((i, x) => {
|
|
47
|
+
const { price: d, sale_price: $ } = ge(x, {
|
|
48
|
+
currencyCode: h,
|
|
49
49
|
currencies: A
|
|
50
50
|
});
|
|
51
|
-
return
|
|
51
|
+
return i + ($ ?? d) * x.quantity;
|
|
52
52
|
}, 0);
|
|
53
53
|
}
|
|
54
54
|
function Oe({
|
|
55
|
-
idPrefix:
|
|
56
|
-
title:
|
|
55
|
+
idPrefix: n,
|
|
56
|
+
title: h,
|
|
57
57
|
description: A,
|
|
58
|
-
value:
|
|
59
|
-
onChange:
|
|
58
|
+
value: i,
|
|
59
|
+
onChange: x
|
|
60
60
|
}) {
|
|
61
|
-
const { t:
|
|
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);
|
|
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(
|
|
66
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
67
67
|
lineNumber: 135,
|
|
68
68
|
columnNumber: 11
|
|
69
69
|
}, this),
|
|
70
|
-
|
|
70
|
+
h
|
|
71
71
|
] }, void 0, !0, {
|
|
72
|
-
fileName: "D:/Websites/nextblock-
|
|
72
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
77
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
82
|
+
fileName: "D:/Websites/nextblock-sandbox/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: `${
|
|
90
|
-
fileName: "D:/Websites/nextblock-
|
|
89
|
+
/* @__PURE__ */ e(g, { htmlFor: `${n}-company`, children: $ }, void 0, !1, {
|
|
90
|
+
fileName: "D:/Websites/nextblock-sandbox/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: `${
|
|
98
|
-
value:
|
|
99
|
-
onChange: (
|
|
97
|
+
id: `${n}-company`,
|
|
98
|
+
value: i.company_name,
|
|
99
|
+
onChange: (m) => x({ ...i, company_name: m.target.value })
|
|
100
100
|
},
|
|
101
101
|
void 0,
|
|
102
102
|
!1,
|
|
103
103
|
{
|
|
104
|
-
fileName: "D:/Websites/nextblock-
|
|
104
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
111
|
+
fileName: "D:/Websites/nextblock-sandbox/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: `${
|
|
117
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
118
118
|
lineNumber: 151,
|
|
119
119
|
columnNumber: 13
|
|
120
120
|
}, this),
|
|
121
121
|
/* @__PURE__ */ e(
|
|
122
122
|
T,
|
|
123
123
|
{
|
|
124
|
-
id: `${
|
|
125
|
-
value:
|
|
126
|
-
onChange: (
|
|
124
|
+
id: `${n}-name`,
|
|
125
|
+
value: i.recipient_name,
|
|
126
|
+
onChange: (m) => x({ ...i, recipient_name: m.target.value })
|
|
127
127
|
},
|
|
128
128
|
void 0,
|
|
129
129
|
!1,
|
|
130
130
|
{
|
|
131
|
-
fileName: "D:/Websites/nextblock-
|
|
131
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
138
|
+
fileName: "D:/Websites/nextblock-sandbox/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: `${
|
|
144
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
145
145
|
lineNumber: 159,
|
|
146
146
|
columnNumber: 13
|
|
147
147
|
}, this),
|
|
148
148
|
/* @__PURE__ */ e(
|
|
149
149
|
"select",
|
|
150
150
|
{
|
|
151
|
-
id: `${
|
|
151
|
+
id: `${n}-country`,
|
|
152
152
|
className: "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",
|
|
153
|
-
value:
|
|
154
|
-
onChange: (
|
|
155
|
-
const q =
|
|
156
|
-
|
|
157
|
-
...
|
|
153
|
+
value: i.country_code,
|
|
154
|
+
onChange: (m) => {
|
|
155
|
+
const q = m.target.value, re = Re(q);
|
|
156
|
+
x({
|
|
157
|
+
...i,
|
|
158
158
|
country_code: q,
|
|
159
|
-
state:
|
|
159
|
+
state: re.some((Y) => Y.code === i.state) ? i.state : ""
|
|
160
160
|
});
|
|
161
161
|
},
|
|
162
|
-
children:
|
|
163
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
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-
|
|
171
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
178
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
183
|
+
fileName: "D:/Websites/nextblock-sandbox/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: `${
|
|
189
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
190
190
|
lineNumber: 184,
|
|
191
191
|
columnNumber: 11
|
|
192
192
|
}, this),
|
|
193
193
|
/* @__PURE__ */ e(
|
|
194
194
|
T,
|
|
195
195
|
{
|
|
196
|
-
id: `${
|
|
197
|
-
value:
|
|
198
|
-
onChange: (
|
|
196
|
+
id: `${n}-line1`,
|
|
197
|
+
value: i.line1,
|
|
198
|
+
onChange: (m) => x({ ...i, line1: m.target.value })
|
|
199
199
|
},
|
|
200
200
|
void 0,
|
|
201
201
|
!1,
|
|
202
202
|
{
|
|
203
|
-
fileName: "D:/Websites/nextblock-
|
|
203
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
210
|
+
fileName: "D:/Websites/nextblock-sandbox/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: `${
|
|
216
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
217
217
|
lineNumber: 193,
|
|
218
218
|
columnNumber: 11
|
|
219
219
|
}, this),
|
|
220
220
|
/* @__PURE__ */ e(
|
|
221
221
|
T,
|
|
222
222
|
{
|
|
223
|
-
id: `${
|
|
224
|
-
value:
|
|
225
|
-
onChange: (
|
|
223
|
+
id: `${n}-line2`,
|
|
224
|
+
value: i.line2,
|
|
225
|
+
onChange: (m) => x({ ...i, line2: m.target.value })
|
|
226
226
|
},
|
|
227
227
|
void 0,
|
|
228
228
|
!1,
|
|
229
229
|
{
|
|
230
|
-
fileName: "D:/Websites/nextblock-
|
|
230
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
237
|
+
fileName: "D:/Websites/nextblock-sandbox/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: `${
|
|
244
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
245
245
|
lineNumber: 203,
|
|
246
246
|
columnNumber: 13
|
|
247
247
|
}, this),
|
|
248
248
|
/* @__PURE__ */ e(
|
|
249
249
|
T,
|
|
250
250
|
{
|
|
251
|
-
id: `${
|
|
252
|
-
value:
|
|
253
|
-
onChange: (
|
|
251
|
+
id: `${n}-city`,
|
|
252
|
+
value: i.city,
|
|
253
|
+
onChange: (m) => x({ ...i, city: m.target.value })
|
|
254
254
|
},
|
|
255
255
|
void 0,
|
|
256
256
|
!1,
|
|
257
257
|
{
|
|
258
|
-
fileName: "D:/Websites/nextblock-
|
|
258
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
265
|
+
fileName: "D:/Websites/nextblock-sandbox/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: `${
|
|
271
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
272
272
|
lineNumber: 211,
|
|
273
273
|
columnNumber: 13
|
|
274
274
|
}, this),
|
|
275
275
|
O ? /* @__PURE__ */ e(
|
|
276
276
|
"select",
|
|
277
277
|
{
|
|
278
|
-
id: `${
|
|
278
|
+
id: `${n}-state`,
|
|
279
279
|
className: "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",
|
|
280
|
-
value:
|
|
281
|
-
onChange: (
|
|
280
|
+
value: i.state,
|
|
281
|
+
onChange: (m) => x({ ...i, state: m.target.value }),
|
|
282
282
|
children: [
|
|
283
283
|
/* @__PURE__ */ e("option", { value: "", children: `${P}: ${V}` }, void 0, !1, {
|
|
284
|
-
fileName: "D:/Websites/nextblock-
|
|
284
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
285
285
|
lineNumber: 219,
|
|
286
286
|
columnNumber: 17
|
|
287
287
|
}, this),
|
|
288
|
-
B.map((
|
|
289
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
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-
|
|
298
|
+
fileName: "D:/Websites/nextblock-sandbox/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: `${
|
|
307
|
-
value:
|
|
308
|
-
onChange: (
|
|
306
|
+
id: `${n}-state`,
|
|
307
|
+
value: i.state,
|
|
308
|
+
onChange: (m) => x({ ...i, state: m.target.value })
|
|
309
309
|
},
|
|
310
310
|
void 0,
|
|
311
311
|
!1,
|
|
312
312
|
{
|
|
313
|
-
fileName: "D:/Websites/nextblock-
|
|
313
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
320
|
+
fileName: "D:/Websites/nextblock-sandbox/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: `${
|
|
326
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
327
327
|
lineNumber: 235,
|
|
328
328
|
columnNumber: 13
|
|
329
329
|
}, this),
|
|
330
330
|
/* @__PURE__ */ e(
|
|
331
331
|
T,
|
|
332
332
|
{
|
|
333
|
-
id: `${
|
|
334
|
-
value:
|
|
335
|
-
onChange: (
|
|
333
|
+
id: `${n}-postal`,
|
|
334
|
+
value: i.postal_code,
|
|
335
|
+
onChange: (m) => x({ ...i, postal_code: m.target.value })
|
|
336
336
|
},
|
|
337
337
|
void 0,
|
|
338
338
|
!1,
|
|
339
339
|
{
|
|
340
|
-
fileName: "D:/Websites/nextblock-
|
|
340
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
347
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
352
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
357
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
362
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
369
|
-
description:
|
|
368
|
+
title: n,
|
|
369
|
+
description: h,
|
|
370
370
|
badgeLabel: A,
|
|
371
|
-
children:
|
|
371
|
+
children: i
|
|
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:
|
|
377
|
-
fileName: "D:/Websites/nextblock-
|
|
376
|
+
/* @__PURE__ */ e(Q, { children: n }, void 0, !1, {
|
|
377
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
382
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
383
383
|
lineNumber: 265,
|
|
384
384
|
columnNumber: 13
|
|
385
385
|
}, this)
|
|
386
386
|
] }, void 0, !0, {
|
|
387
|
-
fileName: "D:/Websites/nextblock-
|
|
387
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
392
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
397
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
401
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
406
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
407
407
|
lineNumber: 270,
|
|
408
408
|
columnNumber: 7
|
|
409
409
|
}, this)
|
|
410
410
|
] }, void 0, !0, {
|
|
411
|
-
fileName: "D:/Websites/nextblock-
|
|
411
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
412
412
|
lineNumber: 260,
|
|
413
413
|
columnNumber: 5
|
|
414
414
|
}, this);
|
|
415
415
|
}
|
|
416
|
-
const
|
|
417
|
-
const [
|
|
418
|
-
() =>
|
|
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)
|
|
419
419
|
), [z, we] = N(
|
|
420
|
-
() =>
|
|
421
|
-
|
|
422
|
-
|
|
420
|
+
() => me(
|
|
421
|
+
n?.shippingAddress ?? n?.billingAddress,
|
|
422
|
+
n?.fullName
|
|
423
423
|
)
|
|
424
424
|
), [I, Se] = N(
|
|
425
|
-
!
|
|
426
|
-
), U =
|
|
427
|
-
() => v.filter((
|
|
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)),
|
|
428
428
|
[v]
|
|
429
429
|
), y = F(
|
|
430
|
-
() => v.filter((
|
|
430
|
+
() => v.filter((s) => ke(s)),
|
|
431
431
|
[v]
|
|
432
|
-
), M =
|
|
433
|
-
const u =
|
|
434
|
-
if (u !==
|
|
432
|
+
), M = n?.isAuthenticated ?? !1, o = (s, t, b) => {
|
|
433
|
+
const u = c(s, b);
|
|
434
|
+
if (u !== s)
|
|
435
435
|
return u;
|
|
436
|
-
if (!
|
|
437
|
-
return
|
|
438
|
-
let f =
|
|
439
|
-
return Object.entries(
|
|
436
|
+
if (!b)
|
|
437
|
+
return t;
|
|
438
|
+
let f = t;
|
|
439
|
+
return Object.entries(b).forEach(([a, r]) => {
|
|
440
440
|
f = f.replace(
|
|
441
|
-
new RegExp(`\\{${
|
|
442
|
-
String(
|
|
441
|
+
new RegExp(`\\{${a}\\}`, "g"),
|
|
442
|
+
String(r)
|
|
443
443
|
);
|
|
444
444
|
}), f;
|
|
445
445
|
}, _ = C.length > 0, Qe = F(
|
|
446
446
|
() => ve(v, l, E),
|
|
447
447
|
[l, E, v]
|
|
448
|
-
),
|
|
448
|
+
), be = F(
|
|
449
449
|
() => ve(C, l, E),
|
|
450
450
|
[l, E, C]
|
|
451
|
-
),
|
|
451
|
+
), ae = F(
|
|
452
452
|
() => ve(y, l, E),
|
|
453
453
|
[l, E, y]
|
|
454
|
-
),
|
|
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(
|
|
455
455
|
() => I ? w : z,
|
|
456
456
|
[w, z, I]
|
|
457
457
|
), L = F(
|
|
458
458
|
() => _ ? W : w,
|
|
459
459
|
[w, _, W]
|
|
460
|
-
),
|
|
461
|
-
() => K.find((
|
|
460
|
+
), ce = !_ || As(W), ie = F(
|
|
461
|
+
() => K.find((s) => s.id === k),
|
|
462
462
|
[K, k]
|
|
463
463
|
), Te = F(
|
|
464
|
-
() =>
|
|
465
|
-
[
|
|
464
|
+
() => oe + (ie?.amount ?? 0) + (D && !D.isPendingExternalCalculation ? D.amount : 0),
|
|
465
|
+
[oe, ie, D]
|
|
466
466
|
), Ve = Te + Xe;
|
|
467
|
-
if (
|
|
467
|
+
if (te(() => {
|
|
468
468
|
if (!(M || typeof window > "u"))
|
|
469
469
|
try {
|
|
470
|
-
const
|
|
471
|
-
if (!
|
|
470
|
+
const s = window.localStorage.getItem(le);
|
|
471
|
+
if (!s)
|
|
472
472
|
return;
|
|
473
|
-
const
|
|
474
|
-
|
|
475
|
-
} catch (
|
|
476
|
-
console.error("[Checkout] Failed to restore checkout draft:",
|
|
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);
|
|
477
477
|
}
|
|
478
|
-
}, [M]),
|
|
478
|
+
}, [M]), te(() => {
|
|
479
479
|
if (!(typeof window > "u")) {
|
|
480
480
|
if (M) {
|
|
481
481
|
window.localStorage.removeItem(le);
|
|
@@ -485,7 +485,7 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
485
485
|
le,
|
|
486
486
|
JSON.stringify({
|
|
487
487
|
email: P,
|
|
488
|
-
phone:
|
|
488
|
+
phone: m,
|
|
489
489
|
billingAddress: w,
|
|
490
490
|
shippingAddress: z,
|
|
491
491
|
useBillingForShipping: I,
|
|
@@ -497,26 +497,26 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
497
497
|
w,
|
|
498
498
|
P,
|
|
499
499
|
M,
|
|
500
|
-
|
|
500
|
+
m,
|
|
501
501
|
k,
|
|
502
502
|
z,
|
|
503
503
|
I
|
|
504
|
-
]),
|
|
504
|
+
]), te(() => {
|
|
505
505
|
if (!_) {
|
|
506
|
-
|
|
506
|
+
se([]), R(null), Z(!1);
|
|
507
507
|
return;
|
|
508
508
|
}
|
|
509
|
-
if (!
|
|
510
|
-
|
|
509
|
+
if (!ce) {
|
|
510
|
+
se([]), R(null), Z(!1);
|
|
511
511
|
return;
|
|
512
512
|
}
|
|
513
|
-
let
|
|
514
|
-
const
|
|
513
|
+
let s = !1;
|
|
514
|
+
const b = setTimeout(async () => {
|
|
515
515
|
if (!W.country_code)
|
|
516
516
|
return;
|
|
517
517
|
Z(!0);
|
|
518
|
-
const u = await
|
|
519
|
-
|
|
518
|
+
const u = await Ds(
|
|
519
|
+
oe,
|
|
520
520
|
{
|
|
521
521
|
country: W.country_code,
|
|
522
522
|
state: W.state,
|
|
@@ -525,33 +525,33 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
525
525
|
ue,
|
|
526
526
|
l
|
|
527
527
|
);
|
|
528
|
-
|
|
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));
|
|
529
529
|
}, 400);
|
|
530
530
|
return () => {
|
|
531
|
-
|
|
531
|
+
s = !0, clearTimeout(b);
|
|
532
532
|
};
|
|
533
533
|
}, [
|
|
534
534
|
l,
|
|
535
535
|
_,
|
|
536
|
-
|
|
536
|
+
ce,
|
|
537
537
|
ue,
|
|
538
538
|
k,
|
|
539
539
|
W.country_code,
|
|
540
540
|
W.postal_code,
|
|
541
541
|
W.state,
|
|
542
|
-
|
|
543
|
-
]),
|
|
544
|
-
const
|
|
542
|
+
oe
|
|
543
|
+
]), te(() => {
|
|
544
|
+
const t = setTimeout(async () => {
|
|
545
545
|
if (!_ || !L.country_code) {
|
|
546
|
-
ee(!1),
|
|
546
|
+
ee(!1), ne(null);
|
|
547
547
|
return;
|
|
548
548
|
}
|
|
549
549
|
if (_e(L.country_code) && !L.state) {
|
|
550
|
-
ee(!1),
|
|
550
|
+
ee(!1), ne(null);
|
|
551
551
|
return;
|
|
552
552
|
}
|
|
553
553
|
ee(!0);
|
|
554
|
-
const
|
|
554
|
+
const b = await ys(
|
|
555
555
|
C,
|
|
556
556
|
{
|
|
557
557
|
country_code: L.country_code,
|
|
@@ -561,9 +561,9 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
561
561
|
j?.code ?? null,
|
|
562
562
|
v
|
|
563
563
|
);
|
|
564
|
-
|
|
564
|
+
b.success && b.tax ? ne(b.tax) : ne(null), ee(!1);
|
|
565
565
|
}, 300);
|
|
566
|
-
return () => clearTimeout(
|
|
566
|
+
return () => clearTimeout(t);
|
|
567
567
|
}, [
|
|
568
568
|
l,
|
|
569
569
|
_,
|
|
@@ -576,7 +576,7 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
576
576
|
return null;
|
|
577
577
|
const Ae = () => {
|
|
578
578
|
Y(!1), De(null);
|
|
579
|
-
}, $e =
|
|
579
|
+
}, $e = re ? /* @__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 nc = ({ initialCustomer: c }) => {
|
|
|
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: (
|
|
588
|
+
onClick: (s) => s.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(
|
|
596
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
597
597
|
lineNumber: 604,
|
|
598
598
|
columnNumber: 11
|
|
599
599
|
}, void 0)
|
|
@@ -601,50 +601,50 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
601
601
|
void 0,
|
|
602
602
|
!1,
|
|
603
603
|
{
|
|
604
|
-
fileName: "D:/Websites/nextblock-
|
|
604
|
+
fileName: "D:/Websites/nextblock-sandbox/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(
|
|
612
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
613
613
|
lineNumber: 608,
|
|
614
614
|
columnNumber: 13
|
|
615
615
|
}, void 0) }, void 0, !1, {
|
|
616
|
-
fileName: "D:/Websites/nextblock-
|
|
616
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
621
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
622
622
|
lineNumber: 610,
|
|
623
623
|
columnNumber: 11
|
|
624
624
|
}, void 0)
|
|
625
625
|
] }, void 0, !0, {
|
|
626
|
-
fileName: "D:/Websites/nextblock-
|
|
626
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
631
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
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" ?
|
|
635
|
+
/* @__PURE__ */ e("p", { className: "text-muted-foreground mb-2", children: Je === "stripe" ? o(
|
|
636
636
|
"ecommerce.sandbox_checkout_stripe_description",
|
|
637
637
|
"This simulated step represents the Stripe checkout for physical products."
|
|
638
|
-
) :
|
|
638
|
+
) : o(
|
|
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-
|
|
642
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
647
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
648
648
|
lineNumber: 624,
|
|
649
649
|
columnNumber: 9
|
|
650
650
|
}, void 0),
|
|
@@ -655,12 +655,12 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
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:
|
|
658
|
+
children: c("ecommerce.purchase_at")
|
|
659
659
|
},
|
|
660
660
|
void 0,
|
|
661
661
|
!1,
|
|
662
662
|
{
|
|
663
|
-
fileName: "D:/Websites/nextblock-
|
|
663
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
664
664
|
lineNumber: 625,
|
|
665
665
|
columnNumber: 9
|
|
666
666
|
},
|
|
@@ -671,7 +671,7 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
671
671
|
void 0,
|
|
672
672
|
!0,
|
|
673
673
|
{
|
|
674
|
-
fileName: "D:/Websites/nextblock-
|
|
674
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
675
675
|
lineNumber: 596,
|
|
676
676
|
columnNumber: 7
|
|
677
677
|
},
|
|
@@ -681,106 +681,106 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
681
681
|
void 0,
|
|
682
682
|
!1,
|
|
683
683
|
{
|
|
684
|
-
fileName: "D:/Websites/nextblock-
|
|
684
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
685
685
|
lineNumber: 592,
|
|
686
686
|
columnNumber: 5
|
|
687
687
|
},
|
|
688
688
|
void 0
|
|
689
|
-
) : null, Ye = (
|
|
689
|
+
) : null, Ye = (s) => {
|
|
690
690
|
if (!M && (!P || !/^\S+@\S+\.\S+$/.test(P)))
|
|
691
|
-
return O(
|
|
692
|
-
const
|
|
693
|
-
if (!ze(
|
|
694
|
-
return alert(
|
|
695
|
-
const
|
|
696
|
-
if (
|
|
697
|
-
if (!ze(
|
|
698
|
-
return alert(
|
|
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;
|
|
699
699
|
if (!k)
|
|
700
700
|
return alert(
|
|
701
|
-
|
|
701
|
+
o(
|
|
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:
|
|
709
|
-
normalizedShippingAddress:
|
|
708
|
+
normalizedBillingAddress: t,
|
|
709
|
+
normalizedShippingAddress: b
|
|
710
710
|
};
|
|
711
|
-
}, Pe = async (
|
|
711
|
+
}, Pe = async (s, t, b) => {
|
|
712
712
|
$((f) => ({
|
|
713
713
|
...f,
|
|
714
|
-
[
|
|
714
|
+
[s]: ""
|
|
715
715
|
}));
|
|
716
|
-
const u = Ye(
|
|
716
|
+
const u = Ye(s);
|
|
717
717
|
if (u) {
|
|
718
|
-
if (
|
|
719
|
-
const f = new Set(
|
|
720
|
-
U.setItems(
|
|
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);
|
|
721
721
|
return;
|
|
722
722
|
}
|
|
723
|
-
|
|
723
|
+
x(b);
|
|
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:
|
|
729
|
+
items: t,
|
|
730
730
|
customerEmail: M ? void 0 : P,
|
|
731
|
-
customerPhone:
|
|
731
|
+
customerPhone: m || null,
|
|
732
732
|
billingAddress: u.normalizedBillingAddress,
|
|
733
|
-
shippingAddress:
|
|
734
|
-
shippingMethodId:
|
|
733
|
+
shippingAddress: s === "stripe" ? u.normalizedShippingAddress : null,
|
|
734
|
+
shippingMethodId: s === "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
|
-
}),
|
|
740
|
+
}), a = await f.json();
|
|
741
741
|
if (!f.ok) {
|
|
742
|
-
const
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
) :
|
|
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");
|
|
747
747
|
$((J) => ({
|
|
748
748
|
...J,
|
|
749
|
-
[
|
|
750
|
-
})),
|
|
749
|
+
[s]: r
|
|
750
|
+
})), x(null);
|
|
751
751
|
return;
|
|
752
752
|
}
|
|
753
|
-
if (
|
|
754
|
-
const
|
|
753
|
+
if (a.customProps && a.customProps.provider === "freemius") {
|
|
754
|
+
const r = a.customProps;
|
|
755
755
|
let J = null;
|
|
756
|
-
const
|
|
757
|
-
window.location.href = `/checkout/success?session_id=${
|
|
756
|
+
const cs = () => {
|
|
757
|
+
window.location.href = `/checkout/success?session_id=${r.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:
|
|
762
|
+
orderId: r.order_id,
|
|
763
763
|
checkoutResponse: S
|
|
764
764
|
})
|
|
765
765
|
}).then(async (Me) => {
|
|
766
766
|
if (!Me.ok) {
|
|
767
|
-
const
|
|
768
|
-
console.error("Freemius checkout sync failed:",
|
|
767
|
+
const ls = await Me.json().catch(() => null);
|
|
768
|
+
console.error("Freemius checkout sync failed:", ls);
|
|
769
769
|
}
|
|
770
|
-
})), J),
|
|
771
|
-
product_id:
|
|
772
|
-
public_key:
|
|
773
|
-
sandbox:
|
|
774
|
-
},
|
|
775
|
-
name:
|
|
776
|
-
plan_id:
|
|
777
|
-
...
|
|
778
|
-
...
|
|
779
|
-
...
|
|
780
|
-
user_email:
|
|
781
|
-
user_firstname:
|
|
782
|
-
user_lastname:
|
|
783
|
-
sandbox:
|
|
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,
|
|
784
784
|
purchaseCompleted: function(S) {
|
|
785
785
|
Ie(S);
|
|
786
786
|
},
|
|
@@ -789,95 +789,95 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
789
789
|
try {
|
|
790
790
|
await Ie(S);
|
|
791
791
|
} finally {
|
|
792
|
-
|
|
792
|
+
cs();
|
|
793
793
|
}
|
|
794
794
|
})();
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
797
|
try {
|
|
798
|
-
new
|
|
798
|
+
new as(is).open(ts), x(null);
|
|
799
799
|
} catch (S) {
|
|
800
800
|
alert(
|
|
801
|
-
|
|
802
|
-
),
|
|
801
|
+
c("ecommerce.checkout_popup_blocked") + " " + (S.message || String(S))
|
|
802
|
+
), a.url && (window.location.href = a.url), x(null);
|
|
803
803
|
}
|
|
804
|
-
} else
|
|
805
|
-
...
|
|
806
|
-
[
|
|
807
|
-
})),
|
|
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));
|
|
808
808
|
} catch (f) {
|
|
809
|
-
console.error(f), $((
|
|
810
|
-
...
|
|
811
|
-
[
|
|
812
|
-
})),
|
|
809
|
+
console.error(f), $((a) => ({
|
|
810
|
+
...a,
|
|
811
|
+
[s]: c("ecommerce.generic_error")
|
|
812
|
+
})), x(null);
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
};
|
|
816
816
|
if (v.length === 0)
|
|
817
|
-
return /* @__PURE__ */ e(
|
|
817
|
+
return /* @__PURE__ */ e(ms, { 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:
|
|
821
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
822
822
|
lineNumber: 846,
|
|
823
823
|
columnNumber: 11
|
|
824
824
|
}, void 0),
|
|
825
|
-
/* @__PURE__ */ e("p", { className: "mb-8 text-muted-foreground", children:
|
|
826
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
827
827
|
lineNumber: 847,
|
|
828
828
|
columnNumber: 11
|
|
829
829
|
}, void 0),
|
|
830
|
-
/* @__PURE__ */ e(
|
|
831
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
832
832
|
lineNumber: 849,
|
|
833
833
|
columnNumber: 13
|
|
834
834
|
}, void 0) }, void 0, !1, {
|
|
835
|
-
fileName: "D:/Websites/nextblock-
|
|
835
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
840
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
845
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
846
846
|
lineNumber: 843,
|
|
847
847
|
columnNumber: 7
|
|
848
848
|
}, void 0);
|
|
849
|
-
const je =
|
|
849
|
+
const je = o(
|
|
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 || (_ ?
|
|
852
|
+
), Ee = Fe.stripe ? null : je, fe = Fe.freemius ? null : je, Ne = Ee || (_ ? ce ? ye ? o(
|
|
853
853
|
"ecommerce.calculating_shipping",
|
|
854
854
|
"Calculating shipping..."
|
|
855
|
-
) : k ? null : K.length > 0 ?
|
|
855
|
+
) : k ? null : K.length > 0 ? c("ecommerce.select_rate") : c("ecommerce.no_rates_for_region") : o(
|
|
856
856
|
"ecommerce.waiting_on_address_info",
|
|
857
857
|
"Complete your shipping address to view available shipping options."
|
|
858
|
-
) : null), Ze =
|
|
858
|
+
) : null), Ze = i !== null || Ne !== null, es = C.length === 1 ? o("ecommerce.item_count_one", "{count} item", {
|
|
859
859
|
count: C.length
|
|
860
|
-
}) :
|
|
860
|
+
}) : o("ecommerce.item_count_other", "{count} items", {
|
|
861
861
|
count: C.length
|
|
862
|
-
}),
|
|
862
|
+
}), ss = y.length === 1 ? o("ecommerce.license_count_one", "{count} license", {
|
|
863
863
|
count: y.length
|
|
864
|
-
}) :
|
|
864
|
+
}) : o("ecommerce.license_count_other", "{count} licenses", {
|
|
865
865
|
count: y.length
|
|
866
|
-
}),
|
|
866
|
+
}), ns = (s) => ke(s) ? o("ecommerce.digital_label", "Digital") : o("ecommerce.physical_label", "Physical"), os = (s) => s === "monthly" ? o(
|
|
867
867
|
"ecommerce.checkout_billing_cycle_monthly",
|
|
868
868
|
"Monthly subscription"
|
|
869
|
-
) :
|
|
869
|
+
) : s === "annual" ? o(
|
|
870
870
|
"ecommerce.checkout_billing_cycle_annual",
|
|
871
871
|
"Annual subscription"
|
|
872
|
-
) :
|
|
872
|
+
) : s === "lifetime" ? o(
|
|
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:
|
|
880
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
881
881
|
lineNumber: 941,
|
|
882
882
|
columnNumber: 9
|
|
883
883
|
}, void 0),
|
|
@@ -885,37 +885,37 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
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(
|
|
889
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
890
890
|
lineNumber: 948,
|
|
891
891
|
columnNumber: 19
|
|
892
892
|
}, void 0),
|
|
893
|
-
|
|
893
|
+
c("ecommerce.contact_information")
|
|
894
894
|
] }, void 0, !0, {
|
|
895
|
-
fileName: "D:/Websites/nextblock-
|
|
895
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
899
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
905
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
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
|
-
|
|
910
|
+
c("ecommerce.email_address"),
|
|
911
911
|
" ",
|
|
912
912
|
/* @__PURE__ */ e("span", { className: "text-destructive", children: "*" }, void 0, !1, {
|
|
913
|
-
fileName: "D:/Websites/nextblock-
|
|
913
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
918
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
919
919
|
lineNumber: 959,
|
|
920
920
|
columnNumber: 21
|
|
921
921
|
}, void 0),
|
|
@@ -924,35 +924,35 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
924
924
|
{
|
|
925
925
|
id: "checkout-email",
|
|
926
926
|
type: "email",
|
|
927
|
-
placeholder:
|
|
927
|
+
placeholder: c("ecommerce.email_placeholder"),
|
|
928
928
|
value: P,
|
|
929
|
-
onChange: (
|
|
930
|
-
V(
|
|
929
|
+
onChange: (s) => {
|
|
930
|
+
V(s.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-
|
|
937
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
944
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
949
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
955
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
956
956
|
lineNumber: 980,
|
|
957
957
|
columnNumber: 19
|
|
958
958
|
}, void 0),
|
|
@@ -960,31 +960,31 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
960
960
|
T,
|
|
961
961
|
{
|
|
962
962
|
id: "checkout-phone",
|
|
963
|
-
placeholder:
|
|
964
|
-
value:
|
|
965
|
-
onChange: (
|
|
963
|
+
placeholder: c("optional"),
|
|
964
|
+
value: m,
|
|
965
|
+
onChange: (s) => q(s.target.value)
|
|
966
966
|
},
|
|
967
967
|
void 0,
|
|
968
968
|
!1,
|
|
969
969
|
{
|
|
970
|
-
fileName: "D:/Websites/nextblock-
|
|
970
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
977
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
982
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
987
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
988
988
|
lineNumber: 945,
|
|
989
989
|
columnNumber: 13
|
|
990
990
|
}, void 0),
|
|
@@ -992,15 +992,15 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
992
992
|
Oe,
|
|
993
993
|
{
|
|
994
994
|
idPrefix: "billing",
|
|
995
|
-
title:
|
|
996
|
-
description:
|
|
995
|
+
title: c("billing_address"),
|
|
996
|
+
description: c("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-
|
|
1003
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1004
1004
|
lineNumber: 991,
|
|
1005
1005
|
columnNumber: 13
|
|
1006
1006
|
},
|
|
@@ -1008,39 +1008,39 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
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
|
-
|
|
1011
|
+
rs,
|
|
1012
1012
|
{
|
|
1013
1013
|
id: "use-billing-for-shipping",
|
|
1014
1014
|
checked: I,
|
|
1015
|
-
onCheckedChange: (
|
|
1015
|
+
onCheckedChange: (s) => Se(!!s)
|
|
1016
1016
|
},
|
|
1017
1017
|
void 0,
|
|
1018
1018
|
!1,
|
|
1019
1019
|
{
|
|
1020
|
-
fileName: "D:/Websites/nextblock-
|
|
1020
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1028
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1029
1029
|
lineNumber: 1007,
|
|
1030
1030
|
columnNumber: 19
|
|
1031
1031
|
}, void 0),
|
|
1032
|
-
/* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children:
|
|
1033
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1034
1034
|
lineNumber: 1010,
|
|
1035
1035
|
columnNumber: 19
|
|
1036
1036
|
}, void 0)
|
|
1037
1037
|
] }, void 0, !0, {
|
|
1038
|
-
fileName: "D:/Websites/nextblock-
|
|
1038
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1043
|
+
fileName: "D:/Websites/nextblock-sandbox/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 nc = ({ initialCustomer: c }) => {
|
|
|
1048
1048
|
Oe,
|
|
1049
1049
|
{
|
|
1050
1050
|
idPrefix: "shipping",
|
|
1051
|
-
title:
|
|
1052
|
-
description:
|
|
1051
|
+
title: c("shipping_address"),
|
|
1052
|
+
description: c("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-
|
|
1059
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1060
1060
|
lineNumber: 1018,
|
|
1061
1061
|
columnNumber: 15
|
|
1062
1062
|
},
|
|
@@ -1064,42 +1064,42 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
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(
|
|
1068
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1069
1069
|
lineNumber: 1031,
|
|
1070
1070
|
columnNumber: 21
|
|
1071
1071
|
}, void 0),
|
|
1072
|
-
|
|
1072
|
+
c("ecommerce.shipping_method")
|
|
1073
1073
|
] }, void 0, !0, {
|
|
1074
|
-
fileName: "D:/Websites/nextblock-
|
|
1074
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1078
|
+
fileName: "D:/Websites/nextblock-sandbox/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(
|
|
1083
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1084
1084
|
lineNumber: 1038,
|
|
1085
1085
|
columnNumber: 23
|
|
1086
1086
|
}, void 0) }, void 0, !1, {
|
|
1087
|
-
fileName: "D:/Websites/nextblock-
|
|
1087
|
+
fileName: "D:/Websites/nextblock-sandbox/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((
|
|
1090
|
+
}, void 0) : K.length > 0 ? /* @__PURE__ */ e("div", { className: "space-y-3", children: K.map((s) => /* @__PURE__ */ e(
|
|
1091
1091
|
"div",
|
|
1092
1092
|
{
|
|
1093
|
-
onClick: () => R(
|
|
1094
|
-
className: `flex items-center justify-between p-4 rounded-lg border-2 cursor-pointer transition-all ${k ===
|
|
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"}`,
|
|
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 ===
|
|
1101
|
-
children: k ===
|
|
1102
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1103
1103
|
lineNumber: 1059,
|
|
1104
1104
|
columnNumber: 33
|
|
1105
1105
|
}, void 0) : null
|
|
@@ -1107,177 +1107,177 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
1107
1107
|
void 0,
|
|
1108
1108
|
!1,
|
|
1109
1109
|
{
|
|
1110
|
-
fileName: "D:/Websites/nextblock-
|
|
1110
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1117
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1118
1118
|
lineNumber: 1062,
|
|
1119
1119
|
columnNumber: 29
|
|
1120
1120
|
}, void 0)
|
|
1121
1121
|
] }, void 0, !0, {
|
|
1122
|
-
fileName: "D:/Websites/nextblock-
|
|
1122
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1127
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1128
1128
|
lineNumber: 1064,
|
|
1129
1129
|
columnNumber: 27
|
|
1130
1130
|
}, void 0)
|
|
1131
1131
|
]
|
|
1132
1132
|
},
|
|
1133
|
-
|
|
1133
|
+
s.id,
|
|
1134
1134
|
!0,
|
|
1135
1135
|
{
|
|
1136
|
-
fileName: "D:/Websites/nextblock-
|
|
1136
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1142
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
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(
|
|
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-
|
|
1149
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1153
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1158
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1163
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1170
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1171
1171
|
lineNumber: 1088,
|
|
1172
1172
|
columnNumber: 17
|
|
1173
1173
|
}, void 0) }, void 0, !1, {
|
|
1174
|
-
fileName: "D:/Websites/nextblock-
|
|
1174
|
+
fileName: "D:/Websites/nextblock-sandbox/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((
|
|
1180
|
-
const
|
|
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, {
|
|
1181
1181
|
currencyCode: l,
|
|
1182
1182
|
currencies: E
|
|
1183
|
-
}),
|
|
1183
|
+
}), b = Be(s);
|
|
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
|
-
|
|
1187
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1188
1188
|
lineNumber: 1104,
|
|
1189
1189
|
columnNumber: 31
|
|
1190
1190
|
}, void 0) }, void 0, !1, {
|
|
1191
|
-
fileName: "D:/Websites/nextblock-
|
|
1191
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1198
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1199
1199
|
lineNumber: 1109,
|
|
1200
1200
|
columnNumber: 31
|
|
1201
1201
|
}, void 0),
|
|
1202
|
-
/* @__PURE__ */ e(Ke, { variant: "outline", className: "text-[9px] uppercase", children:
|
|
1203
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1204
1204
|
lineNumber: 1110,
|
|
1205
1205
|
columnNumber: 31
|
|
1206
1206
|
}, void 0)
|
|
1207
1207
|
] }, void 0, !0, {
|
|
1208
|
-
fileName: "D:/Websites/nextblock-
|
|
1208
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1209
1209
|
lineNumber: 1108,
|
|
1210
1210
|
columnNumber: 29
|
|
1211
1211
|
}, void 0),
|
|
1212
|
-
|
|
1213
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
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
|
-
|
|
1218
|
+
c("ecommerce.qty"),
|
|
1219
1219
|
": ",
|
|
1220
|
-
|
|
1220
|
+
s.quantity
|
|
1221
1221
|
] }, void 0, !0, {
|
|
1222
|
-
fileName: "D:/Websites/nextblock-
|
|
1222
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1223
1223
|
lineNumber: 1119,
|
|
1224
1224
|
columnNumber: 29
|
|
1225
1225
|
}, void 0),
|
|
1226
|
-
|
|
1227
|
-
|
|
1226
|
+
b ? /* @__PURE__ */ e("span", { className: "text-[10px] font-medium text-emerald-700", children: [
|
|
1227
|
+
b.label,
|
|
1228
1228
|
" - ",
|
|
1229
|
-
|
|
1229
|
+
b.paymentRequirementLabel
|
|
1230
1230
|
] }, void 0, !0, {
|
|
1231
|
-
fileName: "D:/Websites/nextblock-
|
|
1231
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1236
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1241
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1247
|
-
(
|
|
1246
|
+
/* @__PURE__ */ e("span", { className: "font-medium text-xs", children: p(
|
|
1247
|
+
(t.sale_price ?? t.price) * s.quantity,
|
|
1248
1248
|
l
|
|
1249
1249
|
) }, void 0, !1, {
|
|
1250
|
-
fileName: "D:/Websites/nextblock-
|
|
1250
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1251
1251
|
lineNumber: 1130,
|
|
1252
1252
|
columnNumber: 27
|
|
1253
1253
|
}, void 0),
|
|
1254
|
-
|
|
1255
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1256
1256
|
lineNumber: 1137,
|
|
1257
1257
|
columnNumber: 29
|
|
1258
1258
|
}, void 0) : null
|
|
1259
1259
|
] }, void 0, !0, {
|
|
1260
|
-
fileName: "D:/Websites/nextblock-
|
|
1260
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1261
1261
|
lineNumber: 1129,
|
|
1262
1262
|
columnNumber: 25
|
|
1263
1263
|
}, void 0)
|
|
1264
|
-
] }, `${
|
|
1265
|
-
fileName: "D:/Websites/nextblock-
|
|
1264
|
+
] }, `${s.id}-${s.variant_id || "base"}`, !0, {
|
|
1265
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1270
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1271
1271
|
lineNumber: 1091,
|
|
1272
1272
|
columnNumber: 17
|
|
1273
1273
|
}, void 0),
|
|
1274
|
-
/* @__PURE__ */ e(
|
|
1275
|
-
fileName: "D:/Websites/nextblock-
|
|
1274
|
+
/* @__PURE__ */ e(us, {}, void 0, !1, {
|
|
1275
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1276
1276
|
lineNumber: 1147,
|
|
1277
1277
|
columnNumber: 17
|
|
1278
1278
|
}, void 0),
|
|
1279
1279
|
/* @__PURE__ */ e(
|
|
1280
|
-
|
|
1280
|
+
Fs,
|
|
1281
1281
|
{
|
|
1282
1282
|
items: v,
|
|
1283
1283
|
currencyCode: l,
|
|
@@ -1286,7 +1286,7 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
1286
1286
|
void 0,
|
|
1287
1287
|
!1,
|
|
1288
1288
|
{
|
|
1289
|
-
fileName: "D:/Websites/nextblock-
|
|
1289
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1290
1290
|
lineNumber: 1149,
|
|
1291
1291
|
columnNumber: 17
|
|
1292
1292
|
},
|
|
@@ -1294,271 +1294,271 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
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:
|
|
1298
|
-
fileName: "D:/Websites/nextblock-
|
|
1297
|
+
/* @__PURE__ */ e("span", { children: c("ecommerce.subtotal") }, void 0, !1, {
|
|
1298
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1299
1299
|
lineNumber: 1157,
|
|
1300
1300
|
columnNumber: 21
|
|
1301
1301
|
}, void 0),
|
|
1302
|
-
/* @__PURE__ */ e("span", { children:
|
|
1303
|
-
fileName: "D:/Websites/nextblock-
|
|
1302
|
+
/* @__PURE__ */ e("span", { children: p(Qe, l) }, void 0, !1, {
|
|
1303
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1308
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1313
|
+
/* @__PURE__ */ e("span", { children: o(
|
|
1314
1314
|
"ecommerce.physical_products",
|
|
1315
1315
|
"Physical products"
|
|
1316
1316
|
) }, void 0, !1, {
|
|
1317
|
-
fileName: "D:/Websites/nextblock-
|
|
1317
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1318
1318
|
lineNumber: 1162,
|
|
1319
1319
|
columnNumber: 23
|
|
1320
1320
|
}, void 0),
|
|
1321
|
-
/* @__PURE__ */ e("span", { children:
|
|
1322
|
-
fileName: "D:/Websites/nextblock-
|
|
1321
|
+
/* @__PURE__ */ e("span", { children: p(be, l) }, void 0, !1, {
|
|
1322
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1327
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1332
|
+
/* @__PURE__ */ e("span", { children: o(
|
|
1333
1333
|
"ecommerce.digital_products",
|
|
1334
1334
|
"Digital products"
|
|
1335
1335
|
) }, void 0, !1, {
|
|
1336
|
-
fileName: "D:/Websites/nextblock-
|
|
1336
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1337
1337
|
lineNumber: 1173,
|
|
1338
1338
|
columnNumber: 23
|
|
1339
1339
|
}, void 0),
|
|
1340
|
-
/* @__PURE__ */ e("span", { children:
|
|
1341
|
-
fileName: "D:/Websites/nextblock-
|
|
1340
|
+
/* @__PURE__ */ e("span", { children: p(ae, l) }, void 0, !1, {
|
|
1341
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1346
|
+
fileName: "D:/Websites/nextblock-sandbox/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
|
-
|
|
1352
|
+
o("ecommerce.discount", "Discount"),
|
|
1353
1353
|
" (",
|
|
1354
1354
|
j.code,
|
|
1355
1355
|
")"
|
|
1356
1356
|
] }, void 0, !0, {
|
|
1357
|
-
fileName: "D:/Websites/nextblock-
|
|
1357
|
+
fileName: "D:/Websites/nextblock-sandbox/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
|
-
|
|
1363
|
+
p(j.discountTotal, l)
|
|
1364
1364
|
] }, void 0, !0, {
|
|
1365
|
-
fileName: "D:/Websites/nextblock-
|
|
1365
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1370
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1375
|
+
/* @__PURE__ */ e("span", { children: o(
|
|
1376
1376
|
"ecommerce.estimated_total",
|
|
1377
1377
|
"Estimated total"
|
|
1378
1378
|
) }, void 0, !1, {
|
|
1379
|
-
fileName: "D:/Websites/nextblock-
|
|
1379
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1384
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1385
1385
|
lineNumber: 1198,
|
|
1386
1386
|
columnNumber: 23
|
|
1387
1387
|
}, void 0)
|
|
1388
1388
|
] }, void 0, !0, {
|
|
1389
|
-
fileName: "D:/Websites/nextblock-
|
|
1389
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1394
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1399
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1404
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1411
|
+
title: o(
|
|
1412
1412
|
"ecommerce.stripe_checkout_title",
|
|
1413
1413
|
"Stripe Checkout"
|
|
1414
1414
|
),
|
|
1415
|
-
description:
|
|
1415
|
+
description: o(
|
|
1416
1416
|
"ecommerce.stripe_checkout_description",
|
|
1417
1417
|
"Pay for physical products in one Stripe checkout session."
|
|
1418
1418
|
),
|
|
1419
|
-
badgeLabel:
|
|
1419
|
+
badgeLabel: es,
|
|
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:
|
|
1423
|
+
/* @__PURE__ */ e("span", { children: o(
|
|
1424
1424
|
"ecommerce.physical_subtotal",
|
|
1425
1425
|
"Physical subtotal"
|
|
1426
1426
|
) }, void 0, !1, {
|
|
1427
|
-
fileName: "D:/Websites/nextblock-
|
|
1427
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1428
1428
|
lineNumber: 1221,
|
|
1429
1429
|
columnNumber: 21
|
|
1430
1430
|
}, void 0),
|
|
1431
|
-
/* @__PURE__ */ e("span", { children:
|
|
1432
|
-
fileName: "D:/Websites/nextblock-
|
|
1431
|
+
/* @__PURE__ */ e("span", { children: p(be, l) }, void 0, !1, {
|
|
1432
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1437
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1438
1438
|
lineNumber: 1220,
|
|
1439
1439
|
columnNumber: 19
|
|
1440
1440
|
}, void 0),
|
|
1441
|
-
|
|
1442
|
-
/* @__PURE__ */ e("span", { children:
|
|
1443
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1444
1444
|
lineNumber: 1231,
|
|
1445
1445
|
columnNumber: 23
|
|
1446
1446
|
}, void 0),
|
|
1447
1447
|
/* @__PURE__ */ e("span", { children: [
|
|
1448
1448
|
"-",
|
|
1449
|
-
|
|
1449
|
+
p(de, l)
|
|
1450
1450
|
] }, void 0, !0, {
|
|
1451
|
-
fileName: "D:/Websites/nextblock-
|
|
1451
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1456
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1462
|
-
fileName: "D:/Websites/nextblock-
|
|
1461
|
+
/* @__PURE__ */ e("span", { children: c("ecommerce.shipping") }, void 0, !1, {
|
|
1462
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1463
1463
|
lineNumber: 1238,
|
|
1464
1464
|
columnNumber: 21
|
|
1465
1465
|
}, void 0),
|
|
1466
|
-
/* @__PURE__ */ e("span", { children:
|
|
1467
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1468
1468
|
lineNumber: 1239,
|
|
1469
1469
|
columnNumber: 21
|
|
1470
1470
|
}, void 0)
|
|
1471
1471
|
] }, void 0, !0, {
|
|
1472
|
-
fileName: "D:/Websites/nextblock-
|
|
1472
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1478
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1479
1479
|
lineNumber: 1242,
|
|
1480
1480
|
columnNumber: 21
|
|
1481
1481
|
}, void 0),
|
|
1482
|
-
/* @__PURE__ */ e("span", { children: Ge ? "..." : D?.isPendingExternalCalculation ?
|
|
1482
|
+
/* @__PURE__ */ e("span", { children: Ge ? "..." : D?.isPendingExternalCalculation ? o(
|
|
1483
1483
|
"ecommerce.tax_calculated_on_stripe",
|
|
1484
1484
|
"Calculated on Stripe"
|
|
1485
|
-
) : D ?
|
|
1486
|
-
fileName: "D:/Websites/nextblock-
|
|
1485
|
+
) : D ? p(D.amount, l) : "-" }, void 0, !1, {
|
|
1486
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1491
|
+
fileName: "D:/Websites/nextblock-sandbox/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((
|
|
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: [
|
|
1496
1496
|
/* @__PURE__ */ e("span", { children: [
|
|
1497
|
-
|
|
1497
|
+
s.name,
|
|
1498
1498
|
" (",
|
|
1499
|
-
|
|
1499
|
+
s.rate.toFixed(4),
|
|
1500
1500
|
"%)"
|
|
1501
1501
|
] }, void 0, !0, {
|
|
1502
|
-
fileName: "D:/Websites/nextblock-
|
|
1502
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1503
1503
|
lineNumber: 1262,
|
|
1504
1504
|
columnNumber: 27
|
|
1505
1505
|
}, void 0),
|
|
1506
|
-
/* @__PURE__ */ e("span", { children:
|
|
1507
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1508
1508
|
lineNumber: 1265,
|
|
1509
1509
|
columnNumber: 27
|
|
1510
1510
|
}, void 0)
|
|
1511
|
-
] },
|
|
1512
|
-
fileName: "D:/Websites/nextblock-
|
|
1511
|
+
] }, s.id || `${s.name}-${s.rate}`, !0, {
|
|
1512
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1516
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1521
|
+
/* @__PURE__ */ e("span", { children: o(
|
|
1522
1522
|
"ecommerce.total_on_stripe",
|
|
1523
1523
|
"Total on Stripe"
|
|
1524
1524
|
) }, void 0, !1, {
|
|
1525
|
-
fileName: "D:/Websites/nextblock-
|
|
1525
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1526
1526
|
lineNumber: 1271,
|
|
1527
1527
|
columnNumber: 21
|
|
1528
1528
|
}, void 0),
|
|
1529
|
-
/* @__PURE__ */ e("span", { children:
|
|
1530
|
-
fileName: "D:/Websites/nextblock-
|
|
1529
|
+
/* @__PURE__ */ e("span", { children: p(Te, l) }, void 0, !1, {
|
|
1530
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1535
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1540
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1541
1541
|
lineNumber: 1219,
|
|
1542
1542
|
columnNumber: 17
|
|
1543
1543
|
}, void 0),
|
|
1544
1544
|
/* @__PURE__ */ e(
|
|
1545
|
-
|
|
1545
|
+
pe,
|
|
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
|
-
|
|
1553
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1554
1554
|
lineNumber: 1288,
|
|
1555
1555
|
columnNumber: 21
|
|
1556
|
-
}, void 0) : /* @__PURE__ */ e(
|
|
1557
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1558
1558
|
lineNumber: 1290,
|
|
1559
1559
|
columnNumber: 21
|
|
1560
1560
|
}, void 0),
|
|
1561
|
-
|
|
1561
|
+
i === "stripe" ? c("ecommerce.processing") : o(
|
|
1562
1562
|
"ecommerce.checkout_physical_products",
|
|
1563
1563
|
"Checkout Physical Products"
|
|
1564
1564
|
)
|
|
@@ -1567,30 +1567,30 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
1567
1567
|
void 0,
|
|
1568
1568
|
!0,
|
|
1569
1569
|
{
|
|
1570
|
-
fileName: "D:/Websites/nextblock-
|
|
1570
|
+
fileName: "D:/Websites/nextblock-sandbox/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 &&
|
|
1577
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1578
1578
|
lineNumber: 1301,
|
|
1579
1579
|
columnNumber: 19
|
|
1580
1580
|
}, void 0) : null,
|
|
1581
|
-
|
|
1582
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
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 ?
|
|
1586
|
+
/* @__PURE__ */ e("p", { className: "text-[11px] text-muted-foreground", children: D?.isPendingExternalCalculation ? o(
|
|
1587
1587
|
"checkout_stripe_tax_finalized_notice",
|
|
1588
1588
|
"Tax will be finalized by Stripe Tax on the payment step."
|
|
1589
|
-
) :
|
|
1589
|
+
) : o(
|
|
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-
|
|
1593
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1594
1594
|
lineNumber: 1312,
|
|
1595
1595
|
columnNumber: 17
|
|
1596
1596
|
}, void 0)
|
|
@@ -1599,7 +1599,7 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
1599
1599
|
void 0,
|
|
1600
1600
|
!0,
|
|
1601
1601
|
{
|
|
1602
|
-
fileName: "D:/Websites/nextblock-
|
|
1602
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1603
1603
|
lineNumber: 1208,
|
|
1604
1604
|
columnNumber: 15
|
|
1605
1605
|
},
|
|
@@ -1608,127 +1608,127 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
1608
1608
|
y.length > 0 ? /* @__PURE__ */ e(
|
|
1609
1609
|
qe,
|
|
1610
1610
|
{
|
|
1611
|
-
title:
|
|
1611
|
+
title: o(
|
|
1612
1612
|
"ecommerce.freemius_checkout_title",
|
|
1613
1613
|
"Freemius Checkout"
|
|
1614
1614
|
),
|
|
1615
|
-
description:
|
|
1615
|
+
description: o(
|
|
1616
1616
|
"ecommerce.freemius_checkout_description",
|
|
1617
1617
|
"Digital products use the Freemius checkout flow."
|
|
1618
1618
|
),
|
|
1619
|
-
badgeLabel:
|
|
1619
|
+
badgeLabel: ss,
|
|
1620
1620
|
children: [
|
|
1621
|
-
/* @__PURE__ */ e("div", { className: "space-y-3", children: y.map((
|
|
1622
|
-
const
|
|
1621
|
+
/* @__PURE__ */ e("div", { className: "space-y-3", children: y.map((s) => {
|
|
1622
|
+
const t = ge(s, {
|
|
1623
1623
|
currencyCode: l,
|
|
1624
1624
|
currencies: E
|
|
1625
|
-
}),
|
|
1625
|
+
}), b = Be(s), u = `freemius:${s.id}`, f = b ? h[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:
|
|
1630
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1631
1631
|
lineNumber: 1354,
|
|
1632
1632
|
columnNumber: 29
|
|
1633
1633
|
}, void 0),
|
|
1634
|
-
|
|
1635
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1636
1636
|
lineNumber: 1356,
|
|
1637
1637
|
columnNumber: 31
|
|
1638
1638
|
}, void 0) : null,
|
|
1639
|
-
|
|
1640
|
-
|
|
1639
|
+
b ? /* @__PURE__ */ e("p", { className: "text-xs font-medium text-emerald-700", children: [
|
|
1640
|
+
b.label,
|
|
1641
1641
|
" - ",
|
|
1642
|
-
|
|
1642
|
+
b.paymentRequirementLabel
|
|
1643
1643
|
] }, void 0, !0, {
|
|
1644
|
-
fileName: "D:/Websites/nextblock-
|
|
1644
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1649
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1654
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1655
1655
|
lineNumber: 1366,
|
|
1656
1656
|
columnNumber: 27
|
|
1657
1657
|
}, void 0)
|
|
1658
1658
|
] }, void 0, !0, {
|
|
1659
|
-
fileName: "D:/Websites/nextblock-
|
|
1659
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1660
1660
|
lineNumber: 1352,
|
|
1661
1661
|
columnNumber: 25
|
|
1662
1662
|
}, void 0),
|
|
1663
|
-
|
|
1664
|
-
/* @__PURE__ */ e("p", { className: "font-medium mb-3", children:
|
|
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(
|
|
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-
|
|
1668
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1669
1669
|
lineNumber: 1373,
|
|
1670
1670
|
columnNumber: 29
|
|
1671
1671
|
}, void 0),
|
|
1672
1672
|
/* @__PURE__ */ e(
|
|
1673
|
-
|
|
1673
|
+
bs,
|
|
1674
1674
|
{
|
|
1675
|
-
value:
|
|
1676
|
-
onValueChange: (
|
|
1675
|
+
value: h[u] || "paid",
|
|
1676
|
+
onValueChange: (a) => A((r) => ({ ...r, [u]: a })),
|
|
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-
|
|
1681
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1686
|
+
/* @__PURE__ */ e(g, { htmlFor: `${u}-paid`, className: "font-medium leading-none cursor-pointer", children: o(
|
|
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-
|
|
1690
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1694
|
+
/* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: o(
|
|
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-
|
|
1698
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1703
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1708
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1714
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
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(
|
|
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-
|
|
1722
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1726
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1731
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1732
1732
|
lineNumber: 1401,
|
|
1733
1733
|
columnNumber: 31
|
|
1734
1734
|
}, void 0)
|
|
@@ -1737,51 +1737,51 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
1737
1737
|
void 0,
|
|
1738
1738
|
!0,
|
|
1739
1739
|
{
|
|
1740
|
-
fileName: "D:/Websites/nextblock-
|
|
1740
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1747
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1748
1748
|
lineNumber: 1372,
|
|
1749
1749
|
columnNumber: 27
|
|
1750
1750
|
}, void 0),
|
|
1751
1751
|
/* @__PURE__ */ e(
|
|
1752
|
-
|
|
1752
|
+
pe,
|
|
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
|
-
...
|
|
1759
|
+
...s,
|
|
1760
1760
|
...f ? { trial_preference: f } : {}
|
|
1761
1761
|
}
|
|
1762
1762
|
],
|
|
1763
1763
|
u
|
|
1764
1764
|
),
|
|
1765
|
-
disabled:
|
|
1765
|
+
disabled: i !== null || fe !== null,
|
|
1766
1766
|
children: [
|
|
1767
|
-
|
|
1768
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1769
1769
|
lineNumber: 1435,
|
|
1770
1770
|
columnNumber: 29
|
|
1771
|
-
}, void 0) : /* @__PURE__ */ e(
|
|
1772
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1773
1773
|
lineNumber: 1437,
|
|
1774
1774
|
columnNumber: 29
|
|
1775
1775
|
}, void 0),
|
|
1776
|
-
/* @__PURE__ */ e("span", { className: "whitespace-normal text-left", children:
|
|
1776
|
+
/* @__PURE__ */ e("span", { className: "whitespace-normal text-left", children: i === u ? c("ecommerce.processing") : y.length > 1 ? o(
|
|
1777
1777
|
"ecommerce.checkout_product",
|
|
1778
1778
|
"Checkout {title}",
|
|
1779
|
-
{ title:
|
|
1780
|
-
) :
|
|
1779
|
+
{ title: s.title }
|
|
1780
|
+
) : o(
|
|
1781
1781
|
"ecommerce.checkout_digital_product",
|
|
1782
1782
|
"Checkout Digital Product"
|
|
1783
1783
|
) }, void 0, !1, {
|
|
1784
|
-
fileName: "D:/Websites/nextblock-
|
|
1784
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1785
1785
|
lineNumber: 1439,
|
|
1786
1786
|
columnNumber: 27
|
|
1787
1787
|
}, void 0)
|
|
@@ -1790,78 +1790,78 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
1790
1790
|
void 0,
|
|
1791
1791
|
!0,
|
|
1792
1792
|
{
|
|
1793
|
-
fileName: "D:/Websites/nextblock-
|
|
1793
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1800
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1805
|
+
fileName: "D:/Websites/nextblock-sandbox/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:
|
|
1810
|
+
/* @__PURE__ */ e("span", { children: o(
|
|
1811
1811
|
"ecommerce.digital_subtotal",
|
|
1812
1812
|
"Digital subtotal"
|
|
1813
1813
|
) }, void 0, !1, {
|
|
1814
|
-
fileName: "D:/Websites/nextblock-
|
|
1814
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1815
1815
|
lineNumber: 1460,
|
|
1816
1816
|
columnNumber: 19
|
|
1817
1817
|
}, void 0),
|
|
1818
|
-
/* @__PURE__ */ e("span", { children:
|
|
1819
|
-
fileName: "D:/Websites/nextblock-
|
|
1818
|
+
/* @__PURE__ */ e("span", { children: p(ae, l) }, void 0, !1, {
|
|
1819
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1824
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1825
1825
|
lineNumber: 1459,
|
|
1826
1826
|
columnNumber: 17
|
|
1827
1827
|
}, void 0),
|
|
1828
|
-
|
|
1829
|
-
/* @__PURE__ */ e("span", { children:
|
|
1830
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
1831
1831
|
lineNumber: 1470,
|
|
1832
1832
|
columnNumber: 21
|
|
1833
1833
|
}, void 0),
|
|
1834
1834
|
/* @__PURE__ */ e("span", { children: [
|
|
1835
1835
|
"-",
|
|
1836
|
-
|
|
1836
|
+
p(xe, l)
|
|
1837
1837
|
] }, void 0, !0, {
|
|
1838
|
-
fileName: "D:/Websites/nextblock-
|
|
1838
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1843
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1848
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1849
1849
|
lineNumber: 1476,
|
|
1850
1850
|
columnNumber: 19
|
|
1851
1851
|
}, void 0) : null,
|
|
1852
|
-
|
|
1853
|
-
fileName: "D:/Websites/nextblock-
|
|
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",
|
|
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 ?
|
|
1857
|
+
/* @__PURE__ */ e("p", { className: "text-[11px] text-muted-foreground", children: y.length > 1 ? o(
|
|
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
|
-
) :
|
|
1860
|
+
) : o(
|
|
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-
|
|
1864
|
+
fileName: "D:/Websites/nextblock-sandbox/libs/ecommerce/src/lib/components/Checkout.tsx",
|
|
1865
1865
|
lineNumber: 1487,
|
|
1866
1866
|
columnNumber: 17
|
|
1867
1867
|
}, void 0)
|
|
@@ -1870,33 +1870,33 @@ const nc = ({ initialCustomer: c }) => {
|
|
|
1870
1870
|
void 0,
|
|
1871
1871
|
!0,
|
|
1872
1872
|
{
|
|
1873
|
-
fileName: "D:/Websites/nextblock-
|
|
1873
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1880
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1885
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1890
|
+
fileName: "D:/Websites/nextblock-sandbox/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-
|
|
1895
|
+
fileName: "D:/Websites/nextblock-sandbox/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
|
-
|
|
1901
|
+
on as Checkout
|
|
1902
1902
|
};
|