@nextblock-cms/ecom 0.16.1 → 0.16.3
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 +21 -21
- package/lib/PaymentReadinessProvider.cjs.js +1 -1
- package/lib/PaymentReadinessProvider.d.ts +1 -1
- package/lib/PaymentReadinessProvider.es.js +11 -11
- package/lib/components/AccountNavigationMenu.cjs.js +1 -1
- package/lib/components/AccountNavigationMenu.d.ts +1 -1
- package/lib/components/AccountNavigationMenu.es.js +28 -28
- package/lib/components/AddToCartButton.cjs.js +1 -1
- package/lib/components/AddToCartButton.d.ts +1 -1
- package/lib/components/AddToCartButton.es.js +48 -48
- package/lib/components/Cart.cjs.js +1 -1
- package/lib/components/Cart.d.ts +1 -1
- package/lib/components/Cart.es.js +144 -144
- package/lib/components/CartDrawer.cjs.js +1 -1
- package/lib/components/CartDrawer.d.ts +1 -1
- package/lib/components/CartDrawer.es.js +95 -95
- package/lib/components/CartIcon.cjs.js +1 -1
- package/lib/components/CartIcon.d.ts +1 -1
- package/lib/components/CartIcon.es.js +20 -20
- package/lib/components/Checkout.cjs.js +1 -1
- package/lib/components/Checkout.d.ts +1 -1
- package/lib/components/Checkout.es.js +712 -712
- package/lib/components/CouponForm.cjs.js +1 -1
- package/lib/components/CouponForm.d.ts +1 -1
- package/lib/components/CouponForm.es.js +89 -89
- package/lib/components/CurrencySwitcher.cjs.js +1 -1
- package/lib/components/CurrencySwitcher.d.ts +1 -1
- package/lib/components/CurrencySwitcher.es.js +14 -14
- package/lib/components/CustomerProfileForm.cjs.js +1 -1
- package/lib/components/CustomerProfileForm.d.ts +1 -1
- package/lib/components/CustomerProfileForm.es.js +263 -263
- package/lib/components/FeaturedProduct.cjs.js +1 -1
- package/lib/components/FeaturedProduct.d.ts +1 -1
- package/lib/components/FeaturedProduct.es.js +38 -38
- package/lib/components/FreemiusLicensePanel.cjs.js +1 -1
- package/lib/components/FreemiusLicensePanel.d.ts +1 -1
- package/lib/components/FreemiusLicensePanel.es.js +47 -47
- package/lib/components/InvoiceDocument.cjs.js +1 -1
- package/lib/components/InvoiceDocument.d.ts +1 -2
- package/lib/components/InvoiceDocument.es.js +164 -164
- package/lib/components/InvoiceViewerShell.cjs.js +2 -2
- package/lib/components/InvoiceViewerShell.d.ts +1 -1
- package/lib/components/InvoiceViewerShell.es.js +57 -57
- package/lib/components/ProductCard.cjs.js +1 -1
- package/lib/components/ProductCard.d.ts +1 -1
- package/lib/components/ProductCard.es.js +98 -98
- package/lib/components/ProductDetailsLayout.cjs.js +1 -1
- package/lib/components/ProductDetailsLayout.es.js +267 -267
- package/lib/components/ProductGallery.cjs.js +1 -1
- package/lib/components/ProductGallery.d.ts +1 -1
- package/lib/components/ProductGallery.es.js +26 -26
- package/lib/components/ProductGrid.cjs.js +1 -1
- package/lib/components/ProductGrid.d.ts +1 -1
- package/lib/components/ProductGrid.es.js +12 -12
- package/lib/components/ShippingEstimator.cjs.js +1 -1
- package/lib/components/ShippingEstimator.d.ts +1 -1
- package/lib/components/ShippingEstimator.es.js +90 -90
- package/lib/components/SimpleTiptapRenderer.cjs.js +1 -1
- package/lib/components/SimpleTiptapRenderer.es.js +135 -135
- package/lib/components/SubscriptionSelector.cjs.js +1 -1
- package/lib/components/SubscriptionSelector.d.ts +1 -2
- package/lib/components/SubscriptionSelector.es.js +97 -97
- package/lib/components/media/MediaPickerDialog.d.ts +1 -2
- package/lib/components/media/MediaUploadForm.d.ts +1 -2
- 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 +107 -107
- 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 +90 -90
- 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 +31 -31
- 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 +65 -65
- package/lib/pages/cms/orders/ExportReportsDialog.cjs.js +1 -1
- package/lib/pages/cms/orders/ExportReportsDialog.d.ts +1 -2
- package/lib/pages/cms/orders/ExportReportsDialog.es.js +86 -86
- 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 +96 -96
- 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 +4 -4
- 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 +41 -41
- 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 +69 -69
- 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 +415 -394
- 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 +7 -7
- 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 +32 -32
- 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 +65 -65
- 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 +35 -35
- 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 +199 -199
- 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 +17 -17
- package/lib/pages/cms/products/categories/components/CategoryManager.cjs.js +1 -1
- package/lib/pages/cms/products/categories/components/CategoryManager.d.ts +1 -2
- package/lib/pages/cms/products/categories/components/CategoryManager.es.js +138 -138
- package/lib/pages/cms/products/components/CopyProductFromLanguage.cjs.js +1 -1
- package/lib/pages/cms/products/components/CopyProductFromLanguage.d.ts +1 -2
- package/lib/pages/cms/products/components/CopyProductFromLanguage.es.js +75 -75
- 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 +79 -79
- 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 +16 -16
- 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 +57 -57
- package/lib/pages/cms/products/components/ProductCategorySelector.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductCategorySelector.d.ts +1 -2
- package/lib/pages/cms/products/components/ProductCategorySelector.es.js +103 -103
- package/lib/pages/cms/products/components/ProductForm.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductForm.d.ts +1 -1
- package/lib/pages/cms/products/components/ProductForm.es.js +407 -407
- 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 +58 -58
- package/lib/pages/cms/products/components/ProductsBulkTable.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductsBulkTable.d.ts +1 -1
- package/lib/pages/cms/products/components/ProductsBulkTable.es.js +157 -157
- 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 +57 -57
- 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 +14 -14
- 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 +236 -236
- 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 +11 -11
- 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 +156 -156
- 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 +36 -36
- package/lib/pages/cms/shipping/ShippingPage.cjs.js +2 -2
- package/lib/pages/cms/shipping/ShippingPage.d.ts +1 -2
- package/lib/pages/cms/shipping/ShippingPage.es.js +168 -168
- 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 +288 -288
- package/lib/pages/cms/shipping/components/ZoneForm.cjs.js +1 -1
- package/lib/pages/cms/shipping/components/ZoneForm.d.ts +1 -2
- package/lib/pages/cms/shipping/components/ZoneForm.es.js +141 -141
- 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 +129 -129
- 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 +55 -55
- package/lib/product-context.cjs.js +1 -1
- package/lib/product-context.es.js +7 -7
- package/package.json +4 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxDEV as e } from "react/jsx-dev-runtime";
|
|
2
2
|
import v from "next/image";
|
|
3
|
-
import { getInvoiceAddressLines as
|
|
4
|
-
import { getOrderTaxRatePercentage as f, getOrderTaxRateLabel as
|
|
5
|
-
function
|
|
6
|
-
data:
|
|
7
|
-
labels:
|
|
8
|
-
locale:
|
|
3
|
+
import { getInvoiceAddressLines as b, formatInvoiceDate as h, formatInvoiceCurrency as c } from "../invoice.es.js";
|
|
4
|
+
import { getOrderTaxRatePercentage as f, getOrderTaxRateLabel as D, getOrderTaxRateJurisdiction as p } from "../order-tax-details.es.js";
|
|
5
|
+
function y({
|
|
6
|
+
data: i,
|
|
7
|
+
labels: t,
|
|
8
|
+
locale: n = "en-US",
|
|
9
9
|
className: l = ""
|
|
10
10
|
}) {
|
|
11
|
-
const a =
|
|
11
|
+
const a = b(i.settings.address), x = b(i.order.customer_details?.billing), N = b(i.order.customer_details?.shipping);
|
|
12
12
|
return /* @__PURE__ */ e(
|
|
13
13
|
"section",
|
|
14
14
|
{
|
|
@@ -17,94 +17,94 @@ function B({
|
|
|
17
17
|
/* @__PURE__ */ e("div", { className: "border-b px-6 py-6 print:px-0", children: /* @__PURE__ */ e("div", { className: "grid gap-6 md:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] md:items-start print:grid-cols-[minmax(0,1fr)_72px_280px] print:items-start print:gap-4", children: [
|
|
18
18
|
/* @__PURE__ */ e("div", { className: "order-2 max-w-md space-y-4 print:order-none print:max-w-none print:space-y-2 md:order-none", children: [
|
|
19
19
|
/* @__PURE__ */ e("div", { className: "space-y-1 text-sm print:text-[10px]", children: [
|
|
20
|
-
/* @__PURE__ */ e("p", { className: "text-xs font-semibold uppercase tracking-[0.2em] text-slate-500", children:
|
|
21
|
-
fileName: "
|
|
20
|
+
/* @__PURE__ */ e("p", { className: "text-xs font-semibold uppercase tracking-[0.2em] text-slate-500", children: t.from }, void 0, !1, {
|
|
21
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
22
22
|
lineNumber: 64,
|
|
23
23
|
columnNumber: 15
|
|
24
24
|
}, this),
|
|
25
|
-
|
|
26
|
-
fileName: "
|
|
25
|
+
i.settings.businessName ? /* @__PURE__ */ e("p", { className: "text-base font-semibold", children: i.settings.businessName }, void 0, !1, {
|
|
26
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
27
27
|
lineNumber: 68,
|
|
28
28
|
columnNumber: 17
|
|
29
29
|
}, this) : null,
|
|
30
|
-
a.map((
|
|
31
|
-
fileName: "
|
|
30
|
+
a.map((o, s) => /* @__PURE__ */ e("p", { children: o }, `seller-${s}-${o}`, !1, {
|
|
31
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
32
32
|
lineNumber: 71,
|
|
33
33
|
columnNumber: 17
|
|
34
34
|
}, this)),
|
|
35
|
-
|
|
36
|
-
fileName: "
|
|
35
|
+
i.settings.email ? /* @__PURE__ */ e("p", { children: i.settings.email }, void 0, !1, {
|
|
36
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
37
37
|
lineNumber: 73,
|
|
38
38
|
columnNumber: 38
|
|
39
39
|
}, this) : null,
|
|
40
|
-
|
|
41
|
-
fileName: "
|
|
40
|
+
i.settings.phone ? /* @__PURE__ */ e("p", { children: i.settings.phone }, void 0, !1, {
|
|
41
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
42
42
|
lineNumber: 74,
|
|
43
43
|
columnNumber: 38
|
|
44
44
|
}, this) : null
|
|
45
45
|
] }, void 0, !0, {
|
|
46
|
-
fileName: "
|
|
46
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
47
47
|
lineNumber: 63,
|
|
48
48
|
columnNumber: 13
|
|
49
49
|
}, this),
|
|
50
|
-
|
|
51
|
-
/* @__PURE__ */ e("p", { className: "mb-2 font-semibold", children:
|
|
52
|
-
fileName: "
|
|
50
|
+
i.settings.taxRegistrations.length > 0 ? /* @__PURE__ */ e("div", { className: "rounded-xl border bg-slate-50 px-4 py-3 text-sm print:px-3 print:py-2 print:text-[10px]", children: [
|
|
51
|
+
/* @__PURE__ */ e("p", { className: "mb-2 font-semibold", children: t.taxRegistrations }, void 0, !1, {
|
|
52
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
53
53
|
lineNumber: 79,
|
|
54
54
|
columnNumber: 17
|
|
55
55
|
}, this),
|
|
56
|
-
/* @__PURE__ */ e("div", { className: "space-y-1", children:
|
|
57
|
-
/* @__PURE__ */ e("span", { className: "font-medium", children:
|
|
58
|
-
fileName: "
|
|
56
|
+
/* @__PURE__ */ e("div", { className: "space-y-1", children: i.settings.taxRegistrations.map((o, s) => /* @__PURE__ */ e("p", { children: [
|
|
57
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: o.label }, void 0, !1, {
|
|
58
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
59
59
|
lineNumber: 83,
|
|
60
60
|
columnNumber: 23
|
|
61
61
|
}, this),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
] }, `${
|
|
65
|
-
fileName: "
|
|
62
|
+
o.label && o.value ? ": " : "",
|
|
63
|
+
o.value
|
|
64
|
+
] }, `${o.label}-${o.value}-${s}`, !0, {
|
|
65
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
66
66
|
lineNumber: 82,
|
|
67
67
|
columnNumber: 21
|
|
68
68
|
}, this)) }, void 0, !1, {
|
|
69
|
-
fileName: "
|
|
69
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
70
70
|
lineNumber: 80,
|
|
71
71
|
columnNumber: 17
|
|
72
72
|
}, this)
|
|
73
73
|
] }, void 0, !0, {
|
|
74
|
-
fileName: "
|
|
74
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
75
75
|
lineNumber: 78,
|
|
76
76
|
columnNumber: 15
|
|
77
77
|
}, this) : null
|
|
78
78
|
] }, void 0, !0, {
|
|
79
|
-
fileName: "
|
|
79
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
80
80
|
lineNumber: 62,
|
|
81
81
|
columnNumber: 11
|
|
82
82
|
}, this),
|
|
83
|
-
/* @__PURE__ */ e("div", { className: "order-1 flex justify-center md:order-none md:pt-2 print:order-none print:pt-1", children:
|
|
83
|
+
/* @__PURE__ */ e("div", { className: "order-1 flex justify-center md:order-none md:pt-2 print:order-none print:pt-1", children: i.logo?.url ? /* @__PURE__ */ e(
|
|
84
84
|
v,
|
|
85
85
|
{
|
|
86
|
-
src:
|
|
87
|
-
alt:
|
|
86
|
+
src: i.logo.url,
|
|
87
|
+
alt: i.logo.name || i.settings.businessName || "Logo",
|
|
88
88
|
className: "mx-auto h-24 w-auto object-contain print:h-14",
|
|
89
|
-
width:
|
|
90
|
-
height:
|
|
89
|
+
width: i.logo.width || 320,
|
|
90
|
+
height: i.logo.height || 120
|
|
91
91
|
},
|
|
92
92
|
void 0,
|
|
93
93
|
!1,
|
|
94
94
|
{
|
|
95
|
-
fileName: "
|
|
95
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
96
96
|
lineNumber: 95,
|
|
97
97
|
columnNumber: 15
|
|
98
98
|
},
|
|
99
99
|
this
|
|
100
100
|
) : null }, void 0, !1, {
|
|
101
|
-
fileName: "
|
|
101
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
102
102
|
lineNumber: 93,
|
|
103
103
|
columnNumber: 11
|
|
104
104
|
}, this),
|
|
105
105
|
/* @__PURE__ */ e("div", { className: "order-3 flex justify-start md:order-none md:justify-end print:order-none", children: /* @__PURE__ */ e("div", { className: "w-full max-w-[380px] rounded-2xl bg-slate-950 px-5 py-5 text-white print:max-w-none print:border print:border-slate-300 print:bg-white print:px-3 print:py-3 print:text-[10px] print:text-slate-950", children: [
|
|
106
|
-
/* @__PURE__ */ e("p", { className: "text-xs uppercase tracking-[0.2em] text-white/70 print:text-slate-500", children:
|
|
107
|
-
fileName: "
|
|
106
|
+
/* @__PURE__ */ e("p", { className: "text-xs uppercase tracking-[0.2em] text-white/70 print:text-slate-500", children: t.invoice }, void 0, !1, {
|
|
107
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
108
108
|
lineNumber: 107,
|
|
109
109
|
columnNumber: 15
|
|
110
110
|
}, this),
|
|
@@ -112,172 +112,172 @@ function B({
|
|
|
112
112
|
/* @__PURE__ */ e(
|
|
113
113
|
m,
|
|
114
114
|
{
|
|
115
|
-
label:
|
|
116
|
-
value:
|
|
115
|
+
label: t.invoiceNumber,
|
|
116
|
+
value: i.order.invoice_number || "--"
|
|
117
117
|
},
|
|
118
118
|
void 0,
|
|
119
119
|
!1,
|
|
120
120
|
{
|
|
121
|
-
fileName: "
|
|
121
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
122
122
|
lineNumber: 111,
|
|
123
123
|
columnNumber: 17
|
|
124
124
|
},
|
|
125
125
|
this
|
|
126
126
|
),
|
|
127
|
-
/* @__PURE__ */ e(m, { label:
|
|
128
|
-
fileName: "
|
|
127
|
+
/* @__PURE__ */ e(m, { label: t.orderNumber, value: i.order.id }, void 0, !1, {
|
|
128
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
129
129
|
lineNumber: 115,
|
|
130
130
|
columnNumber: 17
|
|
131
131
|
}, this),
|
|
132
132
|
/* @__PURE__ */ e(
|
|
133
133
|
m,
|
|
134
134
|
{
|
|
135
|
-
label:
|
|
136
|
-
value: h(
|
|
135
|
+
label: t.paidOn,
|
|
136
|
+
value: h(i.order.paid_at || i.order.created_at, n) || "--"
|
|
137
137
|
},
|
|
138
138
|
void 0,
|
|
139
139
|
!1,
|
|
140
140
|
{
|
|
141
|
-
fileName: "
|
|
141
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
142
142
|
lineNumber: 116,
|
|
143
143
|
columnNumber: 17
|
|
144
144
|
},
|
|
145
145
|
this
|
|
146
146
|
),
|
|
147
|
-
/* @__PURE__ */ e(m, { label:
|
|
148
|
-
fileName: "
|
|
147
|
+
/* @__PURE__ */ e(m, { label: t.status, value: i.order.status }, void 0, !1, {
|
|
148
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
149
149
|
lineNumber: 123,
|
|
150
150
|
columnNumber: 17
|
|
151
151
|
}, this)
|
|
152
152
|
] }, void 0, !0, {
|
|
153
|
-
fileName: "
|
|
153
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
154
154
|
lineNumber: 110,
|
|
155
155
|
columnNumber: 15
|
|
156
156
|
}, this)
|
|
157
157
|
] }, void 0, !0, {
|
|
158
|
-
fileName: "
|
|
158
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
159
159
|
lineNumber: 106,
|
|
160
160
|
columnNumber: 13
|
|
161
161
|
}, this) }, void 0, !1, {
|
|
162
|
-
fileName: "
|
|
162
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
163
163
|
lineNumber: 105,
|
|
164
164
|
columnNumber: 11
|
|
165
165
|
}, this)
|
|
166
166
|
] }, void 0, !0, {
|
|
167
|
-
fileName: "
|
|
167
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
168
168
|
lineNumber: 61,
|
|
169
169
|
columnNumber: 9
|
|
170
170
|
}, this) }, void 0, !1, {
|
|
171
|
-
fileName: "
|
|
171
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
172
172
|
lineNumber: 60,
|
|
173
173
|
columnNumber: 7
|
|
174
174
|
}, this),
|
|
175
175
|
/* @__PURE__ */ e("div", { className: "grid gap-4 border-b px-6 py-6 md:grid-cols-2 print:grid-cols-2 print:gap-3 print:px-0 print:py-3", children: [
|
|
176
|
-
/* @__PURE__ */ e(
|
|
177
|
-
fileName: "
|
|
176
|
+
/* @__PURE__ */ e(d, { title: t.billTo, lines: x }, void 0, !1, {
|
|
177
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
178
178
|
lineNumber: 131,
|
|
179
179
|
columnNumber: 9
|
|
180
180
|
}, this),
|
|
181
|
-
/* @__PURE__ */ e(
|
|
182
|
-
fileName: "
|
|
181
|
+
/* @__PURE__ */ e(d, { title: t.shipTo, lines: N }, void 0, !1, {
|
|
182
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
183
183
|
lineNumber: 132,
|
|
184
184
|
columnNumber: 9
|
|
185
185
|
}, this)
|
|
186
186
|
] }, void 0, !0, {
|
|
187
|
-
fileName: "
|
|
187
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
188
188
|
lineNumber: 130,
|
|
189
189
|
columnNumber: 7
|
|
190
190
|
}, this),
|
|
191
191
|
/* @__PURE__ */ e("div", { className: "px-6 py-6 print:px-0 print:py-3", children: [
|
|
192
192
|
/* @__PURE__ */ e("div", { className: "overflow-hidden rounded-2xl border", children: /* @__PURE__ */ e("table", { className: "w-full border-collapse text-sm print:table-fixed print:text-[9px]", children: [
|
|
193
193
|
/* @__PURE__ */ e("thead", { className: "bg-slate-50", children: /* @__PURE__ */ e("tr", { children: [
|
|
194
|
-
/* @__PURE__ */ e("th", { className: "px-4 py-3 text-left font-semibold print:w-[22%] print:px-2 print:py-1.5", children:
|
|
195
|
-
fileName: "
|
|
194
|
+
/* @__PURE__ */ e("th", { className: "px-4 py-3 text-left font-semibold print:w-[22%] print:px-2 print:py-1.5", children: t.item }, void 0, !1, {
|
|
195
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
196
196
|
lineNumber: 140,
|
|
197
197
|
columnNumber: 17
|
|
198
198
|
}, this),
|
|
199
|
-
/* @__PURE__ */ e("th", { className: "px-4 py-3 text-left font-semibold print:w-[38%] print:px-2 print:py-1.5", children:
|
|
200
|
-
fileName: "
|
|
199
|
+
/* @__PURE__ */ e("th", { className: "px-4 py-3 text-left font-semibold print:w-[38%] print:px-2 print:py-1.5", children: t.details }, void 0, !1, {
|
|
200
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
201
201
|
lineNumber: 141,
|
|
202
202
|
columnNumber: 17
|
|
203
203
|
}, this),
|
|
204
|
-
/* @__PURE__ */ e("th", { className: "px-4 py-3 text-right font-semibold print:w-[10%] print:px-2 print:py-1.5", children:
|
|
205
|
-
fileName: "
|
|
204
|
+
/* @__PURE__ */ e("th", { className: "px-4 py-3 text-right font-semibold print:w-[10%] print:px-2 print:py-1.5", children: t.quantity }, void 0, !1, {
|
|
205
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
206
206
|
lineNumber: 142,
|
|
207
207
|
columnNumber: 17
|
|
208
208
|
}, this),
|
|
209
|
-
/* @__PURE__ */ e("th", { className: "px-4 py-3 text-right font-semibold print:w-[15%] print:px-2 print:py-1.5", children:
|
|
210
|
-
fileName: "
|
|
209
|
+
/* @__PURE__ */ e("th", { className: "px-4 py-3 text-right font-semibold print:w-[15%] print:px-2 print:py-1.5", children: t.price }, void 0, !1, {
|
|
210
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
211
211
|
lineNumber: 143,
|
|
212
212
|
columnNumber: 17
|
|
213
213
|
}, this),
|
|
214
|
-
/* @__PURE__ */ e("th", { className: "px-4 py-3 text-right font-semibold print:w-[15%] print:px-2 print:py-1.5", children:
|
|
215
|
-
fileName: "
|
|
214
|
+
/* @__PURE__ */ e("th", { className: "px-4 py-3 text-right font-semibold print:w-[15%] print:px-2 print:py-1.5", children: t.amount }, void 0, !1, {
|
|
215
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
216
216
|
lineNumber: 144,
|
|
217
217
|
columnNumber: 17
|
|
218
218
|
}, this)
|
|
219
219
|
] }, void 0, !0, {
|
|
220
|
-
fileName: "
|
|
220
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
221
221
|
lineNumber: 139,
|
|
222
222
|
columnNumber: 15
|
|
223
223
|
}, this) }, void 0, !1, {
|
|
224
|
-
fileName: "
|
|
224
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
225
225
|
lineNumber: 138,
|
|
226
226
|
columnNumber: 13
|
|
227
227
|
}, this),
|
|
228
|
-
/* @__PURE__ */ e("tbody", { children:
|
|
229
|
-
/* @__PURE__ */ e("td", { className: "px-4 py-4 font-medium print:px-2 print:py-1.5", children:
|
|
230
|
-
fileName: "
|
|
228
|
+
/* @__PURE__ */ e("tbody", { children: i.order.items.map((o) => /* @__PURE__ */ e("tr", { className: "border-t", children: [
|
|
229
|
+
/* @__PURE__ */ e("td", { className: "px-4 py-4 font-medium print:px-2 print:py-1.5", children: o.title }, void 0, !1, {
|
|
230
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
231
231
|
lineNumber: 150,
|
|
232
232
|
columnNumber: 19
|
|
233
233
|
}, this),
|
|
234
|
-
/* @__PURE__ */ e("td", { className: "px-4 py-4 text-slate-600 print:px-2 print:py-1.5", children:
|
|
235
|
-
fileName: "
|
|
234
|
+
/* @__PURE__ */ e("td", { className: "px-4 py-4 text-slate-600 print:px-2 print:py-1.5", children: o.description || "--" }, void 0, !1, {
|
|
235
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
236
236
|
lineNumber: 151,
|
|
237
237
|
columnNumber: 19
|
|
238
238
|
}, this),
|
|
239
|
-
/* @__PURE__ */ e("td", { className: "px-4 py-4 text-right print:px-2 print:py-1.5", children:
|
|
240
|
-
fileName: "
|
|
239
|
+
/* @__PURE__ */ e("td", { className: "px-4 py-4 text-right print:px-2 print:py-1.5", children: o.quantity }, void 0, !1, {
|
|
240
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
241
241
|
lineNumber: 152,
|
|
242
242
|
columnNumber: 19
|
|
243
243
|
}, this),
|
|
244
|
-
/* @__PURE__ */ e("td", { className: "px-4 py-4 text-right print:px-2 print:py-1.5", children: o
|
|
245
|
-
fileName: "
|
|
244
|
+
/* @__PURE__ */ e("td", { className: "px-4 py-4 text-right print:px-2 print:py-1.5", children: c(o.unit_amount, i.order.currency, n) }, void 0, !1, {
|
|
245
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
246
246
|
lineNumber: 153,
|
|
247
247
|
columnNumber: 19
|
|
248
248
|
}, this),
|
|
249
|
-
/* @__PURE__ */ e("td", { className: "px-4 py-4 text-right font-medium print:px-2 print:py-1.5", children: o
|
|
250
|
-
fileName: "
|
|
249
|
+
/* @__PURE__ */ e("td", { className: "px-4 py-4 text-right font-medium print:px-2 print:py-1.5", children: c(o.total_amount, i.order.currency, n) }, void 0, !1, {
|
|
250
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
251
251
|
lineNumber: 156,
|
|
252
252
|
columnNumber: 19
|
|
253
253
|
}, this)
|
|
254
|
-
] },
|
|
255
|
-
fileName: "
|
|
254
|
+
] }, o.id, !0, {
|
|
255
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
256
256
|
lineNumber: 149,
|
|
257
257
|
columnNumber: 17
|
|
258
258
|
}, this)) }, void 0, !1, {
|
|
259
|
-
fileName: "
|
|
259
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
260
260
|
lineNumber: 147,
|
|
261
261
|
columnNumber: 13
|
|
262
262
|
}, this)
|
|
263
263
|
] }, void 0, !0, {
|
|
264
|
-
fileName: "
|
|
264
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
265
265
|
lineNumber: 137,
|
|
266
266
|
columnNumber: 11
|
|
267
267
|
}, this) }, void 0, !1, {
|
|
268
|
-
fileName: "
|
|
268
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
269
269
|
lineNumber: 136,
|
|
270
270
|
columnNumber: 9
|
|
271
271
|
}, this),
|
|
272
272
|
/* @__PURE__ */ e("div", { className: "mt-6 grid gap-6 md:grid-cols-[minmax(0,1fr)_320px] print:mt-4 print:grid-cols-[minmax(0,1fr)_220px] print:items-start print:gap-4", children: [
|
|
273
|
-
/* @__PURE__ */ e("div", { children:
|
|
274
|
-
/* @__PURE__ */ e("p", { className: "mb-3 font-semibold", children:
|
|
275
|
-
fileName: "
|
|
273
|
+
/* @__PURE__ */ e("div", { children: i.order.tax_details?.lines?.length ? /* @__PURE__ */ e("div", { className: "rounded-xl border bg-slate-50 px-5 py-4 print:break-inside-avoid print:px-3 print:py-2.5 print:text-[10px]", children: [
|
|
274
|
+
/* @__PURE__ */ e("p", { className: "mb-3 font-semibold", children: t.taxBreakdown }, void 0, !1, {
|
|
275
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
276
276
|
lineNumber: 169,
|
|
277
277
|
columnNumber: 17
|
|
278
278
|
}, this),
|
|
279
|
-
/* @__PURE__ */ e("div", { className: "space-y-3 text-sm print:space-y-2 print:text-[10px]", children:
|
|
280
|
-
const
|
|
279
|
+
/* @__PURE__ */ e("div", { className: "space-y-3 text-sm print:space-y-2 print:text-[10px]", children: i.order.tax_details.lines.map((o, s) => {
|
|
280
|
+
const u = f(o.rate);
|
|
281
281
|
return /* @__PURE__ */ e(
|
|
282
282
|
"div",
|
|
283
283
|
{
|
|
@@ -285,160 +285,160 @@ function B({
|
|
|
285
285
|
children: [
|
|
286
286
|
/* @__PURE__ */ e("div", { children: [
|
|
287
287
|
/* @__PURE__ */ e("p", { className: "font-medium", children: [
|
|
288
|
-
|
|
289
|
-
typeof
|
|
288
|
+
D(o.rate),
|
|
289
|
+
typeof u == "number" ? ` - ${u.toFixed(4)}%` : ""
|
|
290
290
|
] }, void 0, !0, {
|
|
291
|
-
fileName: "
|
|
291
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
292
292
|
lineNumber: 180,
|
|
293
293
|
columnNumber: 27
|
|
294
294
|
}, this),
|
|
295
|
-
p(
|
|
296
|
-
fileName: "
|
|
295
|
+
p(o.rate) ? /* @__PURE__ */ e("p", { className: "text-xs text-slate-500 print:text-[9px]", children: p(o.rate) }, void 0, !1, {
|
|
296
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
297
297
|
lineNumber: 187,
|
|
298
298
|
columnNumber: 29
|
|
299
299
|
}, this) : null
|
|
300
300
|
] }, void 0, !0, {
|
|
301
|
-
fileName: "
|
|
301
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
302
302
|
lineNumber: 179,
|
|
303
303
|
columnNumber: 25
|
|
304
304
|
}, this),
|
|
305
|
-
/* @__PURE__ */ e("span", { children: o
|
|
306
|
-
fileName: "
|
|
305
|
+
/* @__PURE__ */ e("span", { children: c(o.amount, i.order.currency, n) }, void 0, !1, {
|
|
306
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
307
307
|
lineNumber: 192,
|
|
308
308
|
columnNumber: 25
|
|
309
309
|
}, this)
|
|
310
310
|
]
|
|
311
311
|
},
|
|
312
|
-
`${
|
|
312
|
+
`${o.rate.display_name}-${o.description || "tax"}-${s}`,
|
|
313
313
|
!0,
|
|
314
314
|
{
|
|
315
|
-
fileName: "
|
|
315
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
316
316
|
lineNumber: 175,
|
|
317
317
|
columnNumber: 23
|
|
318
318
|
},
|
|
319
319
|
this
|
|
320
320
|
);
|
|
321
321
|
}) }, void 0, !1, {
|
|
322
|
-
fileName: "
|
|
322
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
323
323
|
lineNumber: 170,
|
|
324
324
|
columnNumber: 17
|
|
325
325
|
}, this)
|
|
326
326
|
] }, void 0, !0, {
|
|
327
|
-
fileName: "
|
|
327
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
328
328
|
lineNumber: 168,
|
|
329
329
|
columnNumber: 15
|
|
330
330
|
}, this) : null }, void 0, !1, {
|
|
331
|
-
fileName: "
|
|
331
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
332
332
|
lineNumber: 166,
|
|
333
333
|
columnNumber: 11
|
|
334
334
|
}, this),
|
|
335
335
|
/* @__PURE__ */ e("div", { className: "rounded-xl border bg-slate-950 px-5 py-5 text-sm text-white print:break-inside-avoid print:border-slate-300 print:bg-white print:px-3 print:py-3 print:text-[10px] print:text-slate-950", children: [
|
|
336
336
|
/* @__PURE__ */ e("div", { className: "space-y-3 print:space-y-2", children: [
|
|
337
337
|
/* @__PURE__ */ e(
|
|
338
|
-
|
|
338
|
+
r,
|
|
339
339
|
{
|
|
340
|
-
label:
|
|
341
|
-
value:
|
|
340
|
+
label: t.subtotal,
|
|
341
|
+
value: c(i.order.subtotal, i.order.currency, n)
|
|
342
342
|
},
|
|
343
343
|
void 0,
|
|
344
344
|
!1,
|
|
345
345
|
{
|
|
346
|
-
fileName: "
|
|
346
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
347
347
|
lineNumber: 205,
|
|
348
348
|
columnNumber: 15
|
|
349
349
|
},
|
|
350
350
|
this
|
|
351
351
|
),
|
|
352
|
-
|
|
353
|
-
|
|
352
|
+
i.order.discount_total > 0 ? /* @__PURE__ */ e(
|
|
353
|
+
r,
|
|
354
354
|
{
|
|
355
|
-
label:
|
|
356
|
-
value: `-${
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
355
|
+
label: i.order.coupon_code ? `${t.discount} (${i.order.coupon_code})` : t.discount,
|
|
356
|
+
value: `-${c(
|
|
357
|
+
i.order.discount_total,
|
|
358
|
+
i.order.currency,
|
|
359
|
+
n
|
|
360
360
|
)}`
|
|
361
361
|
},
|
|
362
362
|
void 0,
|
|
363
363
|
!1,
|
|
364
364
|
{
|
|
365
|
-
fileName: "
|
|
365
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
366
366
|
lineNumber: 210,
|
|
367
367
|
columnNumber: 17
|
|
368
368
|
},
|
|
369
369
|
this
|
|
370
370
|
) : null,
|
|
371
371
|
/* @__PURE__ */ e(
|
|
372
|
-
|
|
372
|
+
r,
|
|
373
373
|
{
|
|
374
|
-
label:
|
|
375
|
-
value:
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
374
|
+
label: t.shipping,
|
|
375
|
+
value: c(
|
|
376
|
+
i.order.shipping_total,
|
|
377
|
+
i.order.currency,
|
|
378
|
+
n
|
|
379
379
|
)
|
|
380
380
|
},
|
|
381
381
|
void 0,
|
|
382
382
|
!1,
|
|
383
383
|
{
|
|
384
|
-
fileName: "
|
|
384
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
385
385
|
lineNumber: 223,
|
|
386
386
|
columnNumber: 15
|
|
387
387
|
},
|
|
388
388
|
this
|
|
389
389
|
),
|
|
390
390
|
/* @__PURE__ */ e(
|
|
391
|
-
|
|
391
|
+
r,
|
|
392
392
|
{
|
|
393
|
-
label:
|
|
394
|
-
value:
|
|
393
|
+
label: t.tax,
|
|
394
|
+
value: c(i.order.tax_total, i.order.currency, n)
|
|
395
395
|
},
|
|
396
396
|
void 0,
|
|
397
397
|
!1,
|
|
398
398
|
{
|
|
399
|
-
fileName: "
|
|
399
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
400
400
|
lineNumber: 231,
|
|
401
401
|
columnNumber: 15
|
|
402
402
|
},
|
|
403
403
|
this
|
|
404
404
|
)
|
|
405
405
|
] }, void 0, !0, {
|
|
406
|
-
fileName: "
|
|
406
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
407
407
|
lineNumber: 204,
|
|
408
408
|
columnNumber: 13
|
|
409
409
|
}, this),
|
|
410
410
|
/* @__PURE__ */ e("div", { className: "mt-4 border-t border-white/15 pt-4 print:mt-3 print:border-slate-300 print:pt-3", children: /* @__PURE__ */ e(
|
|
411
|
-
|
|
411
|
+
r,
|
|
412
412
|
{
|
|
413
|
-
label:
|
|
414
|
-
value:
|
|
413
|
+
label: t.total,
|
|
414
|
+
value: c(i.order.total, i.order.currency, n),
|
|
415
415
|
strong: !0
|
|
416
416
|
},
|
|
417
417
|
void 0,
|
|
418
418
|
!1,
|
|
419
419
|
{
|
|
420
|
-
fileName: "
|
|
420
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
421
421
|
lineNumber: 237,
|
|
422
422
|
columnNumber: 15
|
|
423
423
|
},
|
|
424
424
|
this
|
|
425
425
|
) }, void 0, !1, {
|
|
426
|
-
fileName: "
|
|
426
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
427
427
|
lineNumber: 236,
|
|
428
428
|
columnNumber: 13
|
|
429
429
|
}, this)
|
|
430
430
|
] }, void 0, !0, {
|
|
431
|
-
fileName: "
|
|
431
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
432
432
|
lineNumber: 203,
|
|
433
433
|
columnNumber: 11
|
|
434
434
|
}, this)
|
|
435
435
|
] }, void 0, !0, {
|
|
436
|
-
fileName: "
|
|
436
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
437
437
|
lineNumber: 165,
|
|
438
438
|
columnNumber: 9
|
|
439
439
|
}, this)
|
|
440
440
|
] }, void 0, !0, {
|
|
441
|
-
fileName: "
|
|
441
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
442
442
|
lineNumber: 135,
|
|
443
443
|
columnNumber: 7
|
|
444
444
|
}, this)
|
|
@@ -447,89 +447,89 @@ function B({
|
|
|
447
447
|
void 0,
|
|
448
448
|
!0,
|
|
449
449
|
{
|
|
450
|
-
fileName: "
|
|
450
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
451
451
|
lineNumber: 57,
|
|
452
452
|
columnNumber: 5
|
|
453
453
|
},
|
|
454
454
|
this
|
|
455
455
|
);
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function d({ title: i, lines: t }) {
|
|
458
458
|
return /* @__PURE__ */ e("div", { className: "rounded-xl border bg-slate-50 px-5 py-4 print:break-inside-avoid print:px-3 print:py-2.5 print:text-[10px]", children: [
|
|
459
|
-
/* @__PURE__ */ e("p", { className: "mb-3 text-xs font-semibold uppercase tracking-[0.2em] text-slate-500", children:
|
|
460
|
-
fileName: "
|
|
459
|
+
/* @__PURE__ */ e("p", { className: "mb-3 text-xs font-semibold uppercase tracking-[0.2em] text-slate-500", children: i }, void 0, !1, {
|
|
460
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
461
461
|
lineNumber: 253,
|
|
462
462
|
columnNumber: 7
|
|
463
463
|
}, this),
|
|
464
|
-
|
|
465
|
-
fileName: "
|
|
464
|
+
t.length ? /* @__PURE__ */ e("div", { className: "space-y-1 text-sm print:text-[10px]", children: t.map((n, l) => /* @__PURE__ */ e("p", { children: n }, `${i}-${l}-${n}`, !1, {
|
|
465
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
466
466
|
lineNumber: 259,
|
|
467
467
|
columnNumber: 13
|
|
468
468
|
}, this)) }, void 0, !1, {
|
|
469
|
-
fileName: "
|
|
469
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
470
470
|
lineNumber: 257,
|
|
471
471
|
columnNumber: 9
|
|
472
472
|
}, this) : /* @__PURE__ */ e("p", { className: "text-sm text-slate-500", children: "--" }, void 0, !1, {
|
|
473
|
-
fileName: "
|
|
473
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
474
474
|
lineNumber: 263,
|
|
475
475
|
columnNumber: 9
|
|
476
476
|
}, this)
|
|
477
477
|
] }, void 0, !0, {
|
|
478
|
-
fileName: "
|
|
478
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
479
479
|
lineNumber: 252,
|
|
480
480
|
columnNumber: 5
|
|
481
481
|
}, this);
|
|
482
482
|
}
|
|
483
|
-
function m({ label:
|
|
483
|
+
function m({ label: i, value: t }) {
|
|
484
484
|
return /* @__PURE__ */ e("div", { className: "flex items-center justify-between gap-4", children: [
|
|
485
|
-
/* @__PURE__ */ e("span", { className: "text-white/70 print:text-[9px] print:text-slate-500", children:
|
|
486
|
-
fileName: "
|
|
485
|
+
/* @__PURE__ */ e("span", { className: "text-white/70 print:text-[9px] print:text-slate-500", children: i }, void 0, !1, {
|
|
486
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
487
487
|
lineNumber: 272,
|
|
488
488
|
columnNumber: 7
|
|
489
489
|
}, this),
|
|
490
|
-
/* @__PURE__ */ e("span", { className: "text-right font-medium", children:
|
|
491
|
-
fileName: "
|
|
490
|
+
/* @__PURE__ */ e("span", { className: "text-right font-medium", children: t }, void 0, !1, {
|
|
491
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
492
492
|
lineNumber: 273,
|
|
493
493
|
columnNumber: 7
|
|
494
494
|
}, this)
|
|
495
495
|
] }, void 0, !0, {
|
|
496
|
-
fileName: "
|
|
496
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
497
497
|
lineNumber: 271,
|
|
498
498
|
columnNumber: 5
|
|
499
499
|
}, this);
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
label:
|
|
503
|
-
value:
|
|
504
|
-
strong:
|
|
501
|
+
function r({
|
|
502
|
+
label: i,
|
|
503
|
+
value: t,
|
|
504
|
+
strong: n = !1
|
|
505
505
|
}) {
|
|
506
506
|
return /* @__PURE__ */ e("div", { className: "flex items-center justify-between gap-4", children: [
|
|
507
507
|
/* @__PURE__ */ e(
|
|
508
508
|
"span",
|
|
509
509
|
{
|
|
510
|
-
className:
|
|
511
|
-
children:
|
|
510
|
+
className: n ? "text-base font-semibold print:text-sm" : "text-white/75 print:text-[9px] print:text-slate-500",
|
|
511
|
+
children: i
|
|
512
512
|
},
|
|
513
513
|
void 0,
|
|
514
514
|
!1,
|
|
515
515
|
{
|
|
516
|
-
fileName: "
|
|
516
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
517
517
|
lineNumber: 289,
|
|
518
518
|
columnNumber: 7
|
|
519
519
|
},
|
|
520
520
|
this
|
|
521
521
|
),
|
|
522
|
-
/* @__PURE__ */ e("span", { className:
|
|
523
|
-
fileName: "
|
|
522
|
+
/* @__PURE__ */ e("span", { className: n ? "text-lg font-semibold print:text-base" : "font-medium", children: t }, void 0, !1, {
|
|
523
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
524
524
|
lineNumber: 298,
|
|
525
525
|
columnNumber: 7
|
|
526
526
|
}, this)
|
|
527
527
|
] }, void 0, !0, {
|
|
528
|
-
fileName: "
|
|
528
|
+
fileName: "D:/Websites/nextblock-production/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
529
529
|
lineNumber: 288,
|
|
530
530
|
columnNumber: 5
|
|
531
531
|
}, this);
|
|
532
532
|
}
|
|
533
533
|
export {
|
|
534
|
-
|
|
534
|
+
y as InvoiceDocument
|
|
535
535
|
};
|