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