@nextblock-cms/ecom 0.14.0 → 0.14.2
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.es.js +24 -24
- package/lib/components/AccountNavigationMenu.cjs.js +1 -1
- package/lib/components/AccountNavigationMenu.es.js +28 -28
- package/lib/components/AddToCartButton.cjs.js +1 -1
- package/lib/components/AddToCartButton.es.js +39 -39
- package/lib/components/Cart.cjs.js +1 -1
- package/lib/components/Cart.es.js +141 -141
- package/lib/components/CartDrawer.cjs.js +1 -1
- package/lib/components/CartDrawer.es.js +96 -96
- package/lib/components/CartIcon.cjs.js +1 -1
- package/lib/components/CartIcon.es.js +17 -17
- package/lib/components/Checkout.cjs.js +1 -1
- package/lib/components/Checkout.es.js +596 -596
- package/lib/components/CouponForm.cjs.js +1 -1
- package/lib/components/CouponForm.es.js +89 -89
- package/lib/components/CurrencySwitcher.cjs.js +1 -1
- package/lib/components/CurrencySwitcher.es.js +16 -16
- package/lib/components/CustomerProfileForm.cjs.js +1 -1
- package/lib/components/CustomerProfileForm.es.js +230 -230
- package/lib/components/FeaturedProduct.cjs.js +1 -1
- package/lib/components/FeaturedProduct.es.js +33 -33
- package/lib/components/FreemiusLicensePanel.cjs.js +1 -1
- package/lib/components/FreemiusLicensePanel.es.js +43 -43
- package/lib/components/InvoiceDocument.cjs.js +1 -1
- package/lib/components/InvoiceDocument.es.js +161 -161
- package/lib/components/InvoiceViewerShell.cjs.js +2 -2
- package/lib/components/InvoiceViewerShell.es.js +53 -53
- package/lib/components/ProductCard.cjs.js +1 -1
- package/lib/components/ProductCard.es.js +72 -72
- package/lib/components/ProductDetailsLayout.cjs.js +1 -1
- package/lib/components/ProductDetailsLayout.es.js +263 -263
- package/lib/components/ProductGallery.cjs.js +1 -1
- package/lib/components/ProductGallery.es.js +24 -24
- package/lib/components/ProductGrid.cjs.js +1 -1
- package/lib/components/ProductGrid.es.js +11 -11
- package/lib/components/ShippingEstimator.cjs.js +1 -1
- package/lib/components/ShippingEstimator.es.js +74 -74
- package/lib/components/SimpleTiptapRenderer.cjs.js +1 -1
- package/lib/components/SimpleTiptapRenderer.es.js +61 -61
- package/lib/components/SubscriptionSelector.cjs.js +1 -1
- package/lib/components/SubscriptionSelector.es.js +82 -82
- package/lib/pages/cms/coupons/CouponEditorForm.cjs.js +1 -1
- package/lib/pages/cms/coupons/CouponEditorForm.es.js +104 -104
- package/lib/pages/cms/coupons/CouponsPage.cjs.js +2 -2
- package/lib/pages/cms/coupons/CouponsPage.es.js +100 -100
- package/lib/pages/cms/coupons/CreateCouponDialog.cjs.js +1 -1
- package/lib/pages/cms/coupons/CreateCouponDialog.es.js +19 -19
- package/lib/pages/cms/coupons/EditCouponPage.cjs.js +1 -1
- package/lib/pages/cms/coupons/EditCouponPage.es.js +22 -22
- package/lib/pages/cms/coupons/ProductScopePicker.cjs.js +1 -1
- package/lib/pages/cms/coupons/ProductScopePicker.es.js +57 -57
- package/lib/pages/cms/orders/ExportReportsDialog.cjs.js +1 -1
- package/lib/pages/cms/orders/ExportReportsDialog.es.js +71 -71
- package/lib/pages/cms/orders/OrderDetailPage.cjs.js +1 -1
- package/lib/pages/cms/orders/OrderDetailPage.es.js +57 -57
- package/lib/pages/cms/orders/OrderPrintButton.cjs.js +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.es.js +30 -30
- package/lib/pages/cms/orders/OrdersPage.cjs.js +1 -1
- package/lib/pages/cms/orders/OrdersPage.es.js +50 -50
- package/lib/pages/cms/payments/PaymentsClient.cjs.js +1 -1
- package/lib/pages/cms/payments/PaymentsClient.es.js +164 -164
- package/lib/pages/cms/payments/PaymentsPage.cjs.js +1 -1
- package/lib/pages/cms/payments/PaymentsPage.es.js +11 -11
- package/lib/pages/cms/products/ProductsPage.cjs.js +1 -1
- package/lib/pages/cms/products/ProductsPage.es.js +31 -31
- package/lib/pages/cms/products/_id_/edit/EditProductPage.cjs.js +1 -1
- package/lib/pages/cms/products/_id_/edit/EditProductPage.es.js +57 -57
- package/lib/pages/cms/products/attributes/AttributeManagementPage.cjs.js +1 -1
- package/lib/pages/cms/products/attributes/AttributeManagementPage.es.js +18 -18
- package/lib/pages/cms/products/attributes/components/AttributeManager.cjs.js +1 -1
- package/lib/pages/cms/products/attributes/components/AttributeManager.es.js +123 -123
- package/lib/pages/cms/products/categories/CategoryManagementPage.cjs.js +1 -1
- package/lib/pages/cms/products/categories/CategoryManagementPage.es.js +18 -18
- package/lib/pages/cms/products/categories/components/CategoryManager.cjs.js +1 -1
- package/lib/pages/cms/products/categories/components/CategoryManager.es.js +132 -132
- package/lib/pages/cms/products/components/CopyProductFromLanguage.cjs.js +1 -1
- 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.es.js +66 -66
- package/lib/pages/cms/products/components/DeleteProductButton.cjs.js +1 -1
- package/lib/pages/cms/products/components/DeleteProductButton.es.js +11 -11
- package/lib/pages/cms/products/components/FreemiusPricingDashboard.cjs.js +1 -1
- package/lib/pages/cms/products/components/FreemiusPricingDashboard.es.js +59 -59
- package/lib/pages/cms/products/components/ProductCategorySelector.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductCategorySelector.es.js +85 -85
- package/lib/pages/cms/products/components/ProductForm.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductForm.es.js +451 -451
- package/lib/pages/cms/products/components/ProductMediaManager.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductMediaManager.es.js +49 -49
- package/lib/pages/cms/products/components/ProductsBulkTable.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductsBulkTable.es.js +147 -147
- package/lib/pages/cms/products/components/SaleScheduleFields.cjs.js +1 -1
- package/lib/pages/cms/products/components/SaleScheduleFields.es.js +60 -60
- package/lib/pages/cms/products/components/SyncFreemiusButton.cjs.js +1 -1
- package/lib/pages/cms/products/components/SyncFreemiusButton.es.js +2 -2
- package/lib/pages/cms/products/components/SyncFreemiusPricingButton.cjs.js +2 -2
- package/lib/pages/cms/products/components/SyncFreemiusPricingButton.es.js +12 -12
- package/lib/pages/cms/products/components/VariationsEditor.cjs.js +1 -1
- package/lib/pages/cms/products/components/VariationsEditor.es.js +228 -228
- package/lib/pages/cms/products/inventory/InventoryPage.cjs.js +1 -1
- package/lib/pages/cms/products/inventory/InventoryPage.es.js +7 -7
- package/lib/pages/cms/products/inventory/InventoryTableClient.cjs.js +2 -2
- package/lib/pages/cms/products/inventory/InventoryTableClient.es.js +125 -125
- package/lib/pages/cms/products/new/NewProductPage.cjs.js +1 -1
- package/lib/pages/cms/products/new/NewProductPage.es.js +30 -30
- package/lib/pages/cms/shipping/ShippingPage.cjs.js +2 -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.es.js +291 -291
- package/lib/pages/cms/shipping/components/ZoneForm.cjs.js +1 -1
- package/lib/pages/cms/shipping/components/ZoneForm.es.js +140 -140
- package/lib/pages/cms/taxes/TaxesPage.cjs.js +1 -1
- package/lib/pages/cms/taxes/TaxesPage.es.js +132 -132
- package/lib/pages/cms/taxes/components/TaxRateForm.cjs.js +1 -1
- package/lib/pages/cms/taxes/components/TaxRateForm.es.js +49 -49
- package/lib/product-context.cjs.js +1 -1
- package/lib/product-context.es.js +8 -8
- package/package.json +4 -4
|
@@ -1,283 +1,283 @@
|
|
|
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:
|
|
3
|
+
import { getInvoiceAddressLines as N, formatInvoiceDate as h, formatInvoiceCurrency as o } from "../invoice.es.js";
|
|
4
|
+
import { getOrderTaxRatePercentage as f, getOrderTaxRateLabel as k, getOrderTaxRateJurisdiction as p } from "../order-tax-details.es.js";
|
|
5
|
+
function B({
|
|
6
|
+
data: s,
|
|
7
|
+
labels: i,
|
|
8
8
|
locale: t = "en-US",
|
|
9
|
-
className:
|
|
9
|
+
className: l = ""
|
|
10
10
|
}) {
|
|
11
|
-
const
|
|
11
|
+
const a = N(s.settings.address), b = N(s.order.customer_details?.billing), x = N(s.order.customer_details?.shipping);
|
|
12
12
|
return /* @__PURE__ */ e(
|
|
13
13
|
"section",
|
|
14
14
|
{
|
|
15
|
-
className: `rounded-2xl border bg-white text-slate-900 shadow-sm print:rounded-none print:border-0 print:text-[10px] print:shadow-none ${
|
|
15
|
+
className: `rounded-2xl border bg-white text-slate-900 shadow-sm print:rounded-none print:border-0 print:text-[10px] print:shadow-none ${l}`,
|
|
16
16
|
children: [
|
|
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: i.from }, void 0, !1, {
|
|
21
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
22
22
|
lineNumber: 64,
|
|
23
23
|
columnNumber: 15
|
|
24
24
|
}, this),
|
|
25
|
-
|
|
26
|
-
fileName: "
|
|
25
|
+
s.settings.businessName ? /* @__PURE__ */ e("p", { className: "text-base font-semibold", children: s.settings.businessName }, void 0, !1, {
|
|
26
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
27
27
|
lineNumber: 68,
|
|
28
28
|
columnNumber: 17
|
|
29
29
|
}, this) : null,
|
|
30
|
-
|
|
31
|
-
fileName: "
|
|
30
|
+
a.map((n, r) => /* @__PURE__ */ e("p", { children: n }, `seller-${r}-${n}`, !1, {
|
|
31
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
32
32
|
lineNumber: 71,
|
|
33
33
|
columnNumber: 17
|
|
34
34
|
}, this)),
|
|
35
|
-
|
|
36
|
-
fileName: "
|
|
35
|
+
s.settings.email ? /* @__PURE__ */ e("p", { children: s.settings.email }, void 0, !1, {
|
|
36
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
37
37
|
lineNumber: 73,
|
|
38
38
|
columnNumber: 38
|
|
39
39
|
}, this) : null,
|
|
40
|
-
|
|
41
|
-
fileName: "
|
|
40
|
+
s.settings.phone ? /* @__PURE__ */ e("p", { children: s.settings.phone }, void 0, !1, {
|
|
41
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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
|
+
s.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: i.taxRegistrations }, void 0, !1, {
|
|
52
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: s.settings.taxRegistrations.map((n, r) => /* @__PURE__ */ e("p", { children: [
|
|
57
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: n.label }, void 0, !1, {
|
|
58
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
59
59
|
lineNumber: 83,
|
|
60
60
|
columnNumber: 23
|
|
61
61
|
}, this),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
] }, `${
|
|
65
|
-
fileName: "
|
|
62
|
+
n.label && n.value ? ": " : "",
|
|
63
|
+
n.value
|
|
64
|
+
] }, `${n.label}-${n.value}-${r}`, !0, {
|
|
65
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: s.logo?.url ? /* @__PURE__ */ e(
|
|
84
84
|
v,
|
|
85
85
|
{
|
|
86
|
-
src:
|
|
87
|
-
alt:
|
|
86
|
+
src: s.logo.url,
|
|
87
|
+
alt: s.logo.name || s.settings.businessName || "Logo",
|
|
88
88
|
className: "mx-auto h-24 w-auto object-contain print:h-14",
|
|
89
|
-
width:
|
|
90
|
-
height:
|
|
89
|
+
width: s.logo.width || 320,
|
|
90
|
+
height: s.logo.height || 120
|
|
91
91
|
},
|
|
92
92
|
void 0,
|
|
93
93
|
!1,
|
|
94
94
|
{
|
|
95
|
-
fileName: "
|
|
95
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: i.invoice }, void 0, !1, {
|
|
107
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
108
108
|
lineNumber: 107,
|
|
109
109
|
columnNumber: 15
|
|
110
110
|
}, this),
|
|
111
111
|
/* @__PURE__ */ e("div", { className: "mt-4 space-y-3 text-sm print:mt-3 print:space-y-2 print:text-[10px]", children: [
|
|
112
112
|
/* @__PURE__ */ e(
|
|
113
|
-
|
|
113
|
+
m,
|
|
114
114
|
{
|
|
115
|
-
label:
|
|
116
|
-
value:
|
|
115
|
+
label: i.invoiceNumber,
|
|
116
|
+
value: s.order.invoice_number || "--"
|
|
117
117
|
},
|
|
118
118
|
void 0,
|
|
119
119
|
!1,
|
|
120
120
|
{
|
|
121
|
-
fileName: "
|
|
121
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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(
|
|
128
|
-
fileName: "
|
|
127
|
+
/* @__PURE__ */ e(m, { label: i.orderNumber, value: s.order.id }, void 0, !1, {
|
|
128
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: i.paidOn,
|
|
136
|
+
value: h(s.order.paid_at || s.order.created_at, t) || "--"
|
|
137
137
|
},
|
|
138
138
|
void 0,
|
|
139
139
|
!1,
|
|
140
140
|
{
|
|
141
|
-
fileName: "
|
|
141
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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(
|
|
148
|
-
fileName: "
|
|
147
|
+
/* @__PURE__ */ e(m, { label: i.status, value: s.order.status }, void 0, !1, {
|
|
148
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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(u, { title: i.billTo, lines: b }, void 0, !1, {
|
|
177
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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(u, { title: i.shipTo, lines: x }, void 0, !1, {
|
|
182
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: i.item }, void 0, !1, {
|
|
195
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: i.details }, void 0, !1, {
|
|
200
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: i.quantity }, void 0, !1, {
|
|
205
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: i.price }, void 0, !1, {
|
|
210
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: i.amount }, void 0, !1, {
|
|
215
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: s.order.items.map((n) => /* @__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: n.title }, void 0, !1, {
|
|
230
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: n.description || "--" }, void 0, !1, {
|
|
235
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: n.quantity }, void 0, !1, {
|
|
240
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: o(n.unit_amount, s.order.currency, t) }, void 0, !1, {
|
|
245
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: o(n.total_amount, s.order.currency, t) }, void 0, !1, {
|
|
250
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
251
251
|
lineNumber: 156,
|
|
252
252
|
columnNumber: 19
|
|
253
253
|
}, this)
|
|
254
|
-
] },
|
|
255
|
-
fileName: "
|
|
254
|
+
] }, n.id, !0, {
|
|
255
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: s.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: i.taxBreakdown }, void 0, !1, {
|
|
275
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: s.order.tax_details.lines.map((n, r) => {
|
|
280
|
+
const d = f(n.rate);
|
|
281
281
|
return /* @__PURE__ */ e(
|
|
282
282
|
"div",
|
|
283
283
|
{
|
|
@@ -285,160 +285,160 @@ function y({
|
|
|
285
285
|
children: [
|
|
286
286
|
/* @__PURE__ */ e("div", { children: [
|
|
287
287
|
/* @__PURE__ */ e("p", { className: "font-medium", children: [
|
|
288
|
-
|
|
289
|
-
typeof
|
|
288
|
+
k(n.rate),
|
|
289
|
+
typeof d == "number" ? ` - ${d.toFixed(4)}%` : ""
|
|
290
290
|
] }, void 0, !0, {
|
|
291
|
-
fileName: "
|
|
291
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
292
292
|
lineNumber: 180,
|
|
293
293
|
columnNumber: 27
|
|
294
294
|
}, this),
|
|
295
|
-
|
|
296
|
-
fileName: "
|
|
295
|
+
p(n.rate) ? /* @__PURE__ */ e("p", { className: "text-xs text-slate-500 print:text-[9px]", children: p(n.rate) }, void 0, !1, {
|
|
296
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: o(n.amount, s.order.currency, t) }, void 0, !1, {
|
|
306
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
307
307
|
lineNumber: 192,
|
|
308
308
|
columnNumber: 25
|
|
309
309
|
}, this)
|
|
310
310
|
]
|
|
311
311
|
},
|
|
312
|
-
`${
|
|
312
|
+
`${n.rate.display_name}-${n.description || "tax"}-${r}`,
|
|
313
313
|
!0,
|
|
314
314
|
{
|
|
315
|
-
fileName: "
|
|
315
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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
|
+
c,
|
|
339
339
|
{
|
|
340
|
-
label:
|
|
341
|
-
value: o(
|
|
340
|
+
label: i.subtotal,
|
|
341
|
+
value: o(s.order.subtotal, s.order.currency, t)
|
|
342
342
|
},
|
|
343
343
|
void 0,
|
|
344
344
|
!1,
|
|
345
345
|
{
|
|
346
|
-
fileName: "
|
|
346
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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
|
+
s.order.discount_total > 0 ? /* @__PURE__ */ e(
|
|
353
|
+
c,
|
|
354
354
|
{
|
|
355
|
-
label:
|
|
355
|
+
label: s.order.coupon_code ? `${i.discount} (${s.order.coupon_code})` : i.discount,
|
|
356
356
|
value: `-${o(
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
s.order.discount_total,
|
|
358
|
+
s.order.currency,
|
|
359
359
|
t
|
|
360
360
|
)}`
|
|
361
361
|
},
|
|
362
362
|
void 0,
|
|
363
363
|
!1,
|
|
364
364
|
{
|
|
365
|
-
fileName: "
|
|
365
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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
|
+
c,
|
|
373
373
|
{
|
|
374
|
-
label:
|
|
374
|
+
label: i.shipping,
|
|
375
375
|
value: o(
|
|
376
|
-
|
|
377
|
-
|
|
376
|
+
s.order.shipping_total,
|
|
377
|
+
s.order.currency,
|
|
378
378
|
t
|
|
379
379
|
)
|
|
380
380
|
},
|
|
381
381
|
void 0,
|
|
382
382
|
!1,
|
|
383
383
|
{
|
|
384
|
-
fileName: "
|
|
384
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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
|
+
c,
|
|
392
392
|
{
|
|
393
|
-
label:
|
|
394
|
-
value: o(
|
|
393
|
+
label: i.tax,
|
|
394
|
+
value: o(s.order.tax_total, s.order.currency, t)
|
|
395
395
|
},
|
|
396
396
|
void 0,
|
|
397
397
|
!1,
|
|
398
398
|
{
|
|
399
|
-
fileName: "
|
|
399
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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
|
+
c,
|
|
412
412
|
{
|
|
413
|
-
label:
|
|
414
|
-
value: o(
|
|
413
|
+
label: i.total,
|
|
414
|
+
value: o(s.order.total, s.order.currency, t),
|
|
415
415
|
strong: !0
|
|
416
416
|
},
|
|
417
417
|
void 0,
|
|
418
418
|
!1,
|
|
419
419
|
{
|
|
420
|
-
fileName: "
|
|
420
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
442
442
|
lineNumber: 135,
|
|
443
443
|
columnNumber: 7
|
|
444
444
|
}, this)
|
|
@@ -447,60 +447,60 @@ function y({
|
|
|
447
447
|
void 0,
|
|
448
448
|
!0,
|
|
449
449
|
{
|
|
450
|
-
fileName: "
|
|
450
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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 u({ title: s, lines: i }) {
|
|
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: s }, void 0, !1, {
|
|
460
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
461
461
|
lineNumber: 253,
|
|
462
462
|
columnNumber: 7
|
|
463
463
|
}, this),
|
|
464
|
-
|
|
465
|
-
fileName: "
|
|
464
|
+
i.length ? /* @__PURE__ */ e("div", { className: "space-y-1 text-sm print:text-[10px]", children: i.map((t, l) => /* @__PURE__ */ e("p", { children: t }, `${s}-${l}-${t}`, !1, {
|
|
465
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/InvoiceDocument.tsx",
|
|
479
479
|
lineNumber: 252,
|
|
480
480
|
columnNumber: 5
|
|
481
481
|
}, this);
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function m({ label: s, value: i }) {
|
|
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: s }, void 0, !1, {
|
|
486
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: i }, void 0, !1, {
|
|
491
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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:
|
|
501
|
+
function c({
|
|
502
|
+
label: s,
|
|
503
|
+
value: i,
|
|
504
504
|
strong: t = !1
|
|
505
505
|
}) {
|
|
506
506
|
return /* @__PURE__ */ e("div", { className: "flex items-center justify-between gap-4", children: [
|
|
@@ -508,28 +508,28 @@ function m({
|
|
|
508
508
|
"span",
|
|
509
509
|
{
|
|
510
510
|
className: t ? "text-base font-semibold print:text-sm" : "text-white/75 print:text-[9px] print:text-slate-500",
|
|
511
|
-
children:
|
|
511
|
+
children: s
|
|
512
512
|
},
|
|
513
513
|
void 0,
|
|
514
514
|
!1,
|
|
515
515
|
{
|
|
516
|
-
fileName: "
|
|
516
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: t ? "text-lg font-semibold print:text-base" : "font-medium", children:
|
|
523
|
-
fileName: "
|
|
522
|
+
/* @__PURE__ */ e("span", { className: t ? "text-lg font-semibold print:text-base" : "font-medium", children: i }, void 0, !1, {
|
|
523
|
+
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/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
|
+
B as InvoiceDocument
|
|
535
535
|
};
|