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