@nextblock-cms/ecom 0.18.8 → 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/freemius-trial-provision.cjs.js +1 -0
- package/lib/freemius-trial-provision.d.ts +85 -0
- package/lib/freemius-trial-provision.es.js +136 -0
- 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
- package/server.cjs.js +1 -1
- package/server.d.ts +1 -0
- package/server.es.js +180 -172
|
@@ -1,749 +1,408 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { Download as
|
|
5
|
-
import { Badge as
|
|
6
|
-
import { Button as
|
|
7
|
-
import { Label as
|
|
8
|
-
import { Separator as
|
|
9
|
-
import { useTranslations as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
import { jsxs as a, jsx as t, Fragment as te } from "react/jsx-runtime";
|
|
3
|
+
import re, { useState as D, useEffect as A, useMemo as V } from "react";
|
|
4
|
+
import { Download as ae, Package as se, ShieldCheck as ie } from "lucide-react";
|
|
5
|
+
import { Badge as O } from "@nextblock-cms/ui/badge";
|
|
6
|
+
import { Button as ce } from "@nextblock-cms/ui/button";
|
|
7
|
+
import { Label as ne } from "@nextblock-cms/ui/label";
|
|
8
|
+
import { Separator as le } from "@nextblock-cms/ui/separator";
|
|
9
|
+
import { useTranslations as oe, cn as de } from "@nextblock-cms/utils";
|
|
10
|
+
import { usePriceFormatter as me } from "../use-price-formatter.es.js";
|
|
11
|
+
import { useProduct as ue } from "../product-context.es.js";
|
|
12
|
+
import { ProductGallery as pe } from "./ProductGallery.es.js";
|
|
13
|
+
import { AddToCartButton as he } from "./AddToCartButton.es.js";
|
|
14
|
+
import { SubscriptionSelector as fe } from "./SubscriptionSelector.es.js";
|
|
15
|
+
import { toNoCookieEmbedSrc as ge, SimpleTiptapRenderer as xe } from "./SimpleTiptapRenderer.es.js";
|
|
16
|
+
import { chooseInitialVariantSelections as F, normalizeSelectionsToAvailableVariants as _e, findMatchingVariant as ve, resolveTranslatedText as be, getAvailableTermIdsForAttribute as Ne, applyVariantSelection as ye } from "../variation-utils.es.js";
|
|
17
|
+
import { useCurrency as we } from "../CurrencyProvider.es.js";
|
|
18
|
+
import { resolveEffectivePriceForCurrency as J } from "../currency.es.js";
|
|
19
|
+
import { isDigitalProduct as ke } from "../types.es.js";
|
|
20
|
+
import { getTrialSummary as Se } from "../trials.es.js";
|
|
21
|
+
function U(d, _, P, E) {
|
|
22
|
+
const C = {
|
|
22
23
|
kind: "product-field",
|
|
23
|
-
field:
|
|
24
|
-
input:
|
|
25
|
-
label:
|
|
26
|
-
},
|
|
27
|
-
let
|
|
24
|
+
field: _,
|
|
25
|
+
input: P,
|
|
26
|
+
label: E
|
|
27
|
+
}, e = typeof window < "u" ? window.location.origin : process.env.NEXT_PUBLIC_URL || process.env.TARGET_URL || (process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : "") || "http://localhost:3000";
|
|
28
|
+
let g = (typeof window < "u" ? window.location.origin : process.env.NEXT_PUBLIC_URL || process.env.TARGET_URL || (process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : "") || "http://localhost:3000").replace(/\/+$/, "");
|
|
28
29
|
try {
|
|
29
|
-
(
|
|
30
|
+
(g.startsWith("http://") || g.startsWith("https://")) && (g = new URL(g).hostname);
|
|
30
31
|
} catch {
|
|
31
32
|
}
|
|
32
|
-
const
|
|
33
|
-
origin:
|
|
34
|
-
editUrl: `${
|
|
33
|
+
const y = process.env.NEXTBLOCK_VERCEL_PROJECT_ID || process.env.VERCEL_PROJECT_ID, m = process.env.NEXTBLOCK_VERCEL_WORKSPACE_ID || process.env.VERCEL_ORG_ID, v = {
|
|
34
|
+
origin: g,
|
|
35
|
+
editUrl: `${e}/cms/products/${d.id}/edit`,
|
|
35
36
|
data: {
|
|
36
37
|
parentType: "product",
|
|
37
|
-
parentId:
|
|
38
|
-
slug:
|
|
39
|
-
languageId:
|
|
38
|
+
parentId: d.id,
|
|
39
|
+
slug: d.slug,
|
|
40
|
+
languageId: d.language_id,
|
|
40
41
|
draftId: null,
|
|
41
|
-
target:
|
|
42
|
+
target: C
|
|
42
43
|
}
|
|
43
44
|
};
|
|
44
|
-
return
|
|
45
|
+
return y && (v.projectId = y), m && (v.workspaceId = m), {
|
|
45
46
|
"data-vercel-edit-info": JSON.stringify(v),
|
|
46
|
-
"data-vercel-edit-target": JSON.stringify(
|
|
47
|
-
"data-nextblock-visual-edit": `product:${
|
|
47
|
+
"data-vercel-edit-target": JSON.stringify(C),
|
|
48
|
+
"data-nextblock-visual-edit": `product:${_}`
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
const
|
|
51
|
-
visualEditingEnabled:
|
|
52
|
-
descriptionNode:
|
|
53
|
-
reviewsNode:
|
|
54
|
-
canPurchase:
|
|
55
|
-
purchaseFallbackNode:
|
|
51
|
+
const Ge = ({
|
|
52
|
+
visualEditingEnabled: d = !1,
|
|
53
|
+
descriptionNode: _,
|
|
54
|
+
reviewsNode: P,
|
|
55
|
+
canPurchase: E = !0,
|
|
56
|
+
purchaseFallbackNode: C
|
|
56
57
|
}) => {
|
|
57
|
-
const
|
|
58
|
-
|
|
58
|
+
const e = ue(), { t: n, lang: g } = oe(), y = me(), { activeCurrencyCode: m, currencies: v } = we(), G = d ? U(
|
|
59
|
+
e,
|
|
59
60
|
"title",
|
|
60
61
|
"plain-text",
|
|
61
62
|
"Product title"
|
|
62
|
-
) : void 0,
|
|
63
|
-
|
|
63
|
+
) : void 0, K = d ? U(
|
|
64
|
+
e,
|
|
64
65
|
"short_description",
|
|
65
66
|
"plain-text",
|
|
66
67
|
"Short description"
|
|
67
|
-
) : void 0,
|
|
68
|
-
|
|
68
|
+
) : void 0, X = d ? U(
|
|
69
|
+
e,
|
|
69
70
|
"description_json",
|
|
70
71
|
"tiptap",
|
|
71
72
|
"Product description"
|
|
72
|
-
) : void 0,
|
|
73
|
-
const
|
|
74
|
-
return
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}, [
|
|
79
|
-
|
|
80
|
-
}, [
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
) :
|
|
86
|
-
|
|
87
|
-
JSON.stringify(
|
|
88
|
-
}, [
|
|
89
|
-
const
|
|
90
|
-
prices:
|
|
91
|
-
salePrices:
|
|
92
|
-
fallbackPrice:
|
|
93
|
-
fallbackSalePrice:
|
|
94
|
-
saleStartAt:
|
|
95
|
-
saleEndAt:
|
|
96
|
-
scheduledPrice:
|
|
97
|
-
scheduledPrices:
|
|
98
|
-
scheduledPriceAt:
|
|
99
|
-
currencyCode:
|
|
100
|
-
currencies:
|
|
101
|
-
}),
|
|
102
|
-
prices:
|
|
103
|
-
salePrices:
|
|
104
|
-
fallbackPrice:
|
|
105
|
-
fallbackSalePrice:
|
|
106
|
-
saleStartAt:
|
|
107
|
-
saleEndAt:
|
|
108
|
-
scheduledPrice:
|
|
109
|
-
scheduledPrices:
|
|
110
|
-
scheduledPriceAt:
|
|
111
|
-
currencyCode:
|
|
112
|
-
currencies:
|
|
113
|
-
}) : null,
|
|
114
|
-
if (!
|
|
115
|
-
return
|
|
116
|
-
const
|
|
117
|
-
url:
|
|
118
|
-
alt: `${
|
|
119
|
-
}, l =
|
|
120
|
-
(
|
|
73
|
+
) : void 0, o = (s, l, p) => {
|
|
74
|
+
const h = n(s, p);
|
|
75
|
+
return h === s ? l : h;
|
|
76
|
+
}, R = e.images && e.images.length > 0 ? e.images : e.image_url ? [{ url: e.image_url, alt: e.title }] : [], b = e.custom_props?.provider === "freemius" || ke(e), j = Se(e, n), c = !b && !!(e.has_variants && e.attributes?.length && e.variants?.length), x = e.attributes || [], u = e.variants || [], [w, T] = D(() => F(x, u)), [q, I] = D(1);
|
|
77
|
+
A(() => {
|
|
78
|
+
I(1);
|
|
79
|
+
}, [e.id]), A(() => {
|
|
80
|
+
c && T(F(x, u));
|
|
81
|
+
}, [x, c, e.id, u]);
|
|
82
|
+
const N = V(() => c ? _e(
|
|
83
|
+
x,
|
|
84
|
+
u,
|
|
85
|
+
w
|
|
86
|
+
) : w, [x, c, w, u]);
|
|
87
|
+
A(() => {
|
|
88
|
+
JSON.stringify(N) !== JSON.stringify(w) && T(N);
|
|
89
|
+
}, [N, w]);
|
|
90
|
+
const r = V(() => c ? ve(u, N) : null, [c, N, u]), $ = J({
|
|
91
|
+
prices: e.prices,
|
|
92
|
+
salePrices: e.sale_prices,
|
|
93
|
+
fallbackPrice: e.price,
|
|
94
|
+
fallbackSalePrice: e.sale_price,
|
|
95
|
+
saleStartAt: e.sale_start_at,
|
|
96
|
+
saleEndAt: e.sale_end_at,
|
|
97
|
+
scheduledPrice: e.scheduled_price,
|
|
98
|
+
scheduledPrices: e.scheduled_prices,
|
|
99
|
+
scheduledPriceAt: e.scheduled_price_at,
|
|
100
|
+
currencyCode: m,
|
|
101
|
+
currencies: v
|
|
102
|
+
}), B = c && r ? J({
|
|
103
|
+
prices: r.prices,
|
|
104
|
+
salePrices: r.sale_prices,
|
|
105
|
+
fallbackPrice: r.price,
|
|
106
|
+
fallbackSalePrice: r.sale_price,
|
|
107
|
+
saleStartAt: r.sale_start_at,
|
|
108
|
+
saleEndAt: r.sale_end_at,
|
|
109
|
+
scheduledPrice: r.scheduled_price,
|
|
110
|
+
scheduledPrices: r.scheduled_prices,
|
|
111
|
+
scheduledPriceAt: r.scheduled_price_at,
|
|
112
|
+
currencyCode: m,
|
|
113
|
+
currencies: v
|
|
114
|
+
}) : null, k = B?.price ?? $.price, S = B?.sale_price ?? $.sale_price, i = c ? r?.stock_quantity ?? 0 : e.stock ?? null, L = i === null || i > 0, f = i === null ? q : Math.max(1, Math.min(q, Math.max(i, 1))), z = V(() => {
|
|
115
|
+
if (!r?.image_url)
|
|
116
|
+
return R;
|
|
117
|
+
const s = {
|
|
118
|
+
url: r.image_url,
|
|
119
|
+
alt: `${e.title} ${r.label}`
|
|
120
|
+
}, l = R.filter(
|
|
121
|
+
(p) => p.url !== r.image_url
|
|
121
122
|
);
|
|
122
|
-
return [
|
|
123
|
-
}, [
|
|
124
|
-
(
|
|
125
|
-
) : 0,
|
|
126
|
-
...
|
|
127
|
-
sku:
|
|
128
|
-
price:
|
|
129
|
-
prices:
|
|
130
|
-
sale_price: typeof
|
|
131
|
-
sale_prices:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
123
|
+
return [s, ...l];
|
|
124
|
+
}, [R, e.title, r]), Q = typeof S == "number" && k > 0 ? Math.round(
|
|
125
|
+
(k - S) / k * 100
|
|
126
|
+
) : 0, W = c && r ? {
|
|
127
|
+
...e,
|
|
128
|
+
sku: r.sku,
|
|
129
|
+
price: r.price,
|
|
130
|
+
prices: r.prices,
|
|
131
|
+
sale_price: typeof r.sale_price == "number" ? r.sale_price : null,
|
|
132
|
+
sale_prices: r.sale_prices,
|
|
133
|
+
// The variant's own sale window and scheduled price, not the parent product's.
|
|
134
|
+
sale_start_at: r.sale_start_at,
|
|
135
|
+
sale_end_at: r.sale_end_at,
|
|
136
|
+
scheduled_price: r.scheduled_price,
|
|
137
|
+
scheduled_prices: r.scheduled_prices,
|
|
138
|
+
scheduled_price_at: r.scheduled_price_at,
|
|
139
|
+
image_url: r.image_url || e.image_url,
|
|
140
|
+
stock: r.stock_quantity,
|
|
141
|
+
variant_id: r.id,
|
|
142
|
+
variant_label: r.label,
|
|
143
|
+
selected_options: r.selected_options,
|
|
144
|
+
currency_code: m
|
|
138
145
|
} : {
|
|
139
|
-
...
|
|
140
|
-
currency_code:
|
|
141
|
-
},
|
|
142
|
-
|
|
143
|
-
(
|
|
144
|
-
...i,
|
|
145
|
-
[r]: l
|
|
146
|
-
})
|
|
146
|
+
...e,
|
|
147
|
+
currency_code: m
|
|
148
|
+
}, H = (s, l) => {
|
|
149
|
+
T(
|
|
150
|
+
(p) => ye(x, u, p, s, l)
|
|
147
151
|
);
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
{ count: String(n) }
|
|
152
|
-
), I = f(
|
|
152
|
+
}, Y = i === null ? o("ecommerce.in_stock_untracked", "In stock") : o("ecommerce.in_stock", `${i} in stock`, {
|
|
153
|
+
count: String(i)
|
|
154
|
+
}), M = o(
|
|
153
155
|
"ecommerce.out_of_stock",
|
|
154
156
|
"Out of stock"
|
|
155
|
-
),
|
|
157
|
+
), Z = o(
|
|
156
158
|
"ecommerce.select_options",
|
|
157
159
|
"Select Options"
|
|
158
|
-
),
|
|
160
|
+
), ee = o(
|
|
159
161
|
"ecommerce.variant_selection_required",
|
|
160
162
|
"Select one term from every dropdown to resolve a variation."
|
|
161
163
|
);
|
|
162
|
-
return /* @__PURE__ */
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}, void 0) }, void 0, !1, {
|
|
169
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
170
|
-
lineNumber: 342,
|
|
171
|
-
columnNumber: 11
|
|
172
|
-
}, void 0),
|
|
173
|
-
/* @__PURE__ */ e("div", { className: "flex flex-col gap-4 pb-2 max-w-xl mx-auto lg:mx-0 lg:max-w-none", children: [
|
|
174
|
-
/* @__PURE__ */ e("div", { className: "space-y-6", children: /* @__PURE__ */ e("div", { className: "space-y-4", children: [
|
|
175
|
-
/* @__PURE__ */ e(
|
|
164
|
+
return /* @__PURE__ */ a("div", { className: "w-full animate-in fade-in slide-in-from-bottom-4 duration-700 ease-out", children: [
|
|
165
|
+
/* @__PURE__ */ t("div", { className: "container mx-auto px-4 md:px-6 py-12", children: /* @__PURE__ */ a("div", { className: "grid gap-12 lg:grid-cols-[2fr_3fr] items-start", children: [
|
|
166
|
+
/* @__PURE__ */ t("div", { className: "w-full max-w-2xl mx-auto lg:max-w-none", children: /* @__PURE__ */ t(pe, { images: z, className: "w-full" }) }),
|
|
167
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col gap-4 pb-2 max-w-xl mx-auto lg:mx-0 lg:max-w-none", children: [
|
|
168
|
+
/* @__PURE__ */ t("div", { className: "space-y-6", children: /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
169
|
+
/* @__PURE__ */ t(
|
|
176
170
|
"h1",
|
|
177
171
|
{
|
|
178
172
|
className: "text-3xl sm:text-4xl lg:text-5xl font-extrabold tracking-tight text-foreground leading-[1.1] lg:mt-0",
|
|
179
|
-
...
|
|
180
|
-
children:
|
|
181
|
-
}
|
|
182
|
-
void 0,
|
|
183
|
-
!1,
|
|
184
|
-
{
|
|
185
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
186
|
-
lineNumber: 351,
|
|
187
|
-
columnNumber: 17
|
|
188
|
-
},
|
|
189
|
-
void 0
|
|
173
|
+
...G,
|
|
174
|
+
children: e.title
|
|
175
|
+
}
|
|
190
176
|
),
|
|
191
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ t("div", { className: "flex items-center gap-2 mt-2", children: /* @__PURE__ */ a(
|
|
192
178
|
"a",
|
|
193
179
|
{
|
|
194
180
|
href: "#reviews-section",
|
|
195
181
|
className: "flex items-center gap-1.5 group hover:opacity-85 transition-opacity",
|
|
196
182
|
children: [
|
|
197
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ t("div", { className: "flex items-center text-amber-500", children: Array.from({ length: 5 }).map((s, l) => /* @__PURE__ */ t(
|
|
198
184
|
"svg",
|
|
199
185
|
{
|
|
200
|
-
className:
|
|
186
|
+
className: de(
|
|
201
187
|
"h-4 w-4 fill-current",
|
|
202
|
-
l < Math.round(
|
|
188
|
+
l < Math.round(e.average_rating || 0) ? "text-amber-500" : "text-slate-300 dark:text-slate-700"
|
|
203
189
|
),
|
|
204
190
|
viewBox: "0 0 20 20",
|
|
205
191
|
fill: "currentColor",
|
|
206
|
-
children: /* @__PURE__ */
|
|
207
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
208
|
-
lineNumber: 377,
|
|
209
|
-
columnNumber: 27
|
|
210
|
-
}, void 0)
|
|
211
|
-
},
|
|
212
|
-
l,
|
|
213
|
-
!1,
|
|
214
|
-
{
|
|
215
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
216
|
-
lineNumber: 366,
|
|
217
|
-
columnNumber: 25
|
|
192
|
+
children: /* @__PURE__ */ t("path", { d: "M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" })
|
|
218
193
|
},
|
|
219
|
-
|
|
220
|
-
)) },
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}, void 0),
|
|
225
|
-
s.total_reviews && s.total_reviews > 0 ? /* @__PURE__ */ e(Z, { children: [
|
|
226
|
-
/* @__PURE__ */ e("span", { className: "text-sm font-semibold text-slate-700 dark:text-slate-300", children: s.average_rating?.toFixed(1) }, void 0, !1, {
|
|
227
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
228
|
-
lineNumber: 383,
|
|
229
|
-
columnNumber: 25
|
|
230
|
-
}, void 0),
|
|
231
|
-
/* @__PURE__ */ e("span", { className: "text-sm text-muted-foreground underline decoration-dotted group-hover:text-primary", children: [
|
|
194
|
+
l
|
|
195
|
+
)) }),
|
|
196
|
+
e.total_reviews && e.total_reviews > 0 ? /* @__PURE__ */ a(te, { children: [
|
|
197
|
+
/* @__PURE__ */ t("span", { className: "text-sm font-semibold text-slate-700 dark:text-slate-300", children: e.average_rating?.toFixed(1) }),
|
|
198
|
+
/* @__PURE__ */ a("span", { className: "text-sm text-muted-foreground underline decoration-dotted group-hover:text-primary", children: [
|
|
232
199
|
"(",
|
|
233
|
-
|
|
200
|
+
e.total_reviews === 1 ? n("reviews.review_count_one", { count: e.total_reviews }) : n("reviews.review_count_other", { count: e.total_reviews }),
|
|
234
201
|
")"
|
|
235
|
-
] }
|
|
236
|
-
|
|
237
|
-
lineNumber: 386,
|
|
238
|
-
columnNumber: 25
|
|
239
|
-
}, void 0)
|
|
240
|
-
] }, void 0, !0, {
|
|
241
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
242
|
-
lineNumber: 382,
|
|
243
|
-
columnNumber: 23
|
|
244
|
-
}, void 0) : /* @__PURE__ */ e("span", { className: "text-xs text-muted-foreground group-hover:text-primary underline decoration-dotted", children: c("reviews.be_the_first") }, void 0, !1, {
|
|
245
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
246
|
-
lineNumber: 393,
|
|
247
|
-
columnNumber: 23
|
|
248
|
-
}, void 0)
|
|
202
|
+
] })
|
|
203
|
+
] }) : /* @__PURE__ */ t("span", { className: "text-xs text-muted-foreground group-hover:text-primary underline decoration-dotted", children: n("reviews.be_the_first") })
|
|
249
204
|
]
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
},
|
|
258
|
-
void 0
|
|
259
|
-
) }, void 0, !1, {
|
|
260
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
261
|
-
lineNumber: 359,
|
|
262
|
-
columnNumber: 17
|
|
263
|
-
}, void 0),
|
|
264
|
-
s.categories && s.categories.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap items-center gap-1.5 text-xs font-bold uppercase tracking-widest text-amber-600 dark:text-amber-400", children: s.categories.map((r, l) => {
|
|
265
|
-
const i = fe(
|
|
266
|
-
r.name,
|
|
267
|
-
r.name_translations,
|
|
268
|
-
u
|
|
205
|
+
}
|
|
206
|
+
) }),
|
|
207
|
+
e.categories && e.categories.length > 0 && /* @__PURE__ */ t("div", { className: "flex flex-wrap items-center gap-1.5 text-xs font-bold uppercase tracking-widest text-amber-600 dark:text-amber-400", children: e.categories.map((s, l) => {
|
|
208
|
+
const p = be(
|
|
209
|
+
s.name,
|
|
210
|
+
s.name_translations,
|
|
211
|
+
g
|
|
269
212
|
);
|
|
270
|
-
return /* @__PURE__ */
|
|
271
|
-
l > 0 && /* @__PURE__ */
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
/* @__PURE__ */ e("span", { children: i }, void 0, !1, {
|
|
277
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
278
|
-
lineNumber: 413,
|
|
279
|
-
columnNumber: 27
|
|
280
|
-
}, void 0)
|
|
281
|
-
] }, r.id, !0, {
|
|
282
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
283
|
-
lineNumber: 409,
|
|
284
|
-
columnNumber: 25
|
|
285
|
-
}, void 0);
|
|
286
|
-
}) }, void 0, !1, {
|
|
287
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
288
|
-
lineNumber: 401,
|
|
289
|
-
columnNumber: 19
|
|
290
|
-
}, void 0),
|
|
291
|
-
/* @__PURE__ */ e(
|
|
213
|
+
return /* @__PURE__ */ a(re.Fragment, { children: [
|
|
214
|
+
l > 0 && /* @__PURE__ */ t("span", { className: "text-muted-foreground/30", children: "•" }),
|
|
215
|
+
/* @__PURE__ */ t("span", { children: p })
|
|
216
|
+
] }, s.id);
|
|
217
|
+
}) }),
|
|
218
|
+
/* @__PURE__ */ t(
|
|
292
219
|
"div",
|
|
293
220
|
{
|
|
294
221
|
className: "prose prose-neutral dark:prose-invert max-w-none text-muted-foreground leading-relaxed text-left",
|
|
295
|
-
...
|
|
296
|
-
children:
|
|
222
|
+
...K,
|
|
223
|
+
children: e.short_description ? /* @__PURE__ */ t(
|
|
297
224
|
"div",
|
|
298
225
|
{
|
|
299
226
|
className: "text-lg mb-4 leading-relaxed",
|
|
300
227
|
dangerouslySetInnerHTML: {
|
|
301
|
-
__html:
|
|
228
|
+
__html: ge(e.short_description) ?? e.short_description
|
|
302
229
|
}
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
{
|
|
307
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
308
|
-
lineNumber: 425,
|
|
309
|
-
columnNumber: 21
|
|
310
|
-
},
|
|
311
|
-
void 0
|
|
312
|
-
) : a ? /* @__PURE__ */ e("p", { className: "text-lg mb-4 italic text-muted-foreground", children: "Add a short product description." }, void 0, !1, {
|
|
313
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
314
|
-
lineNumber: 434,
|
|
315
|
-
columnNumber: 21
|
|
316
|
-
}, void 0) : null
|
|
317
|
-
},
|
|
318
|
-
void 0,
|
|
319
|
-
!1,
|
|
320
|
-
{
|
|
321
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
322
|
-
lineNumber: 420,
|
|
323
|
-
columnNumber: 17
|
|
324
|
-
},
|
|
325
|
-
void 0
|
|
230
|
+
}
|
|
231
|
+
) : d ? /* @__PURE__ */ t("p", { className: "text-lg mb-4 italic text-muted-foreground", children: "Add a short product description." }) : null
|
|
232
|
+
}
|
|
326
233
|
),
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
-
typeof
|
|
329
|
-
|
|
234
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
235
|
+
typeof S == "number" && /* @__PURE__ */ t(
|
|
236
|
+
O,
|
|
330
237
|
{
|
|
331
238
|
variant: "destructive",
|
|
332
239
|
className: "px-2.5 py-1 text-xs font-bold uppercase tracking-wide animate-pulse shadow-sm",
|
|
333
|
-
children:
|
|
334
|
-
percent: String(
|
|
240
|
+
children: n("ecommerce.sale_badge", {
|
|
241
|
+
percent: String(Q)
|
|
335
242
|
})
|
|
336
|
-
}
|
|
337
|
-
void 0,
|
|
338
|
-
!1,
|
|
339
|
-
{
|
|
340
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
341
|
-
lineNumber: 442,
|
|
342
|
-
columnNumber: 21
|
|
343
|
-
},
|
|
344
|
-
void 0
|
|
243
|
+
}
|
|
345
244
|
),
|
|
346
|
-
!
|
|
347
|
-
|
|
245
|
+
!b && i !== null && i > 0 && i < 10 && /* @__PURE__ */ t(
|
|
246
|
+
O,
|
|
348
247
|
{
|
|
349
248
|
variant: "outline",
|
|
350
249
|
className: "text-amber-600 border-amber-200 bg-amber-50",
|
|
351
|
-
children:
|
|
352
|
-
count: String(
|
|
250
|
+
children: n("ecommerce.low_stock", {
|
|
251
|
+
count: String(i)
|
|
353
252
|
})
|
|
354
|
-
}
|
|
355
|
-
void 0,
|
|
356
|
-
!1,
|
|
357
|
-
{
|
|
358
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
359
|
-
lineNumber: 452,
|
|
360
|
-
columnNumber: 21
|
|
361
|
-
},
|
|
362
|
-
void 0
|
|
253
|
+
}
|
|
363
254
|
),
|
|
364
|
-
|
|
365
|
-
|
|
255
|
+
j && /* @__PURE__ */ t(
|
|
256
|
+
O,
|
|
366
257
|
{
|
|
367
258
|
variant: "secondary",
|
|
368
259
|
className: "border border-emerald-200 bg-emerald-50 text-emerald-800",
|
|
369
|
-
children:
|
|
370
|
-
}
|
|
371
|
-
void 0,
|
|
372
|
-
!1,
|
|
373
|
-
{
|
|
374
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
375
|
-
lineNumber: 462,
|
|
376
|
-
columnNumber: 21
|
|
377
|
-
},
|
|
378
|
-
void 0
|
|
260
|
+
children: j.label
|
|
261
|
+
}
|
|
379
262
|
)
|
|
380
|
-
] }
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
413
|
-
lineNumber: 488,
|
|
414
|
-
columnNumber: 25
|
|
415
|
-
}, void 0),
|
|
416
|
-
typeof g == "number" && /* @__PURE__ */ e("span", { className: "text-lg text-muted-foreground line-through decoration-destructive/20 decoration-1", children: O(h, d) }, void 0, !1, {
|
|
417
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
418
|
-
lineNumber: 495,
|
|
419
|
-
columnNumber: 27
|
|
420
|
-
}, void 0)
|
|
421
|
-
] }, void 0, !0, {
|
|
422
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
423
|
-
lineNumber: 487,
|
|
424
|
-
columnNumber: 23
|
|
425
|
-
}, void 0)
|
|
426
|
-
] }, void 0, !0, {
|
|
427
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
428
|
-
lineNumber: 483,
|
|
429
|
-
columnNumber: 21
|
|
430
|
-
}, void 0),
|
|
431
|
-
!x && (t || !o) && /* @__PURE__ */ e("div", { className: "text-right space-y-1", children: [
|
|
432
|
-
/* @__PURE__ */ e("span", { className: "text-[10px] font-bold text-muted-foreground uppercase tracking-widest block", children: [
|
|
433
|
-
!o && s.sku && /* @__PURE__ */ e("span", { className: "mr-2 font-normal lowercase normal-case text-muted-foreground/70", children: [
|
|
434
|
-
"SKU: ",
|
|
435
|
-
s.sku
|
|
436
|
-
] }, void 0, !0, {
|
|
437
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
438
|
-
lineNumber: 506,
|
|
439
|
-
columnNumber: 29
|
|
440
|
-
}, void 0),
|
|
441
|
-
f("ecommerce.status", "Status")
|
|
442
|
-
] }, void 0, !0, {
|
|
443
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
444
|
-
lineNumber: 504,
|
|
445
|
-
columnNumber: 25
|
|
446
|
-
}, void 0),
|
|
447
|
-
/* @__PURE__ */ e("div", { className: (n ?? 0) > 0 ? "text-emerald-600 dark:text-emerald-400 font-semibold text-sm" : "text-destructive font-semibold text-sm", children: (n ?? 0) > 0 ? W : I }, void 0, !1, {
|
|
448
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
449
|
-
lineNumber: 512,
|
|
450
|
-
columnNumber: 25
|
|
451
|
-
}, void 0)
|
|
452
|
-
] }, void 0, !0, {
|
|
453
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
454
|
-
lineNumber: 503,
|
|
455
|
-
columnNumber: 23
|
|
456
|
-
}, void 0)
|
|
457
|
-
] }, void 0, !0, {
|
|
458
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
459
|
-
lineNumber: 482,
|
|
460
|
-
columnNumber: 19
|
|
461
|
-
}, void 0),
|
|
462
|
-
o && /* @__PURE__ */ e("div", { className: "space-y-3", children: /* @__PURE__ */ e("div", { className: "grid gap-3 sm:grid-cols-2", children: N.map((r) => {
|
|
463
|
-
const l = xe(
|
|
464
|
-
m,
|
|
465
|
-
r.id,
|
|
466
|
-
b
|
|
263
|
+
] })
|
|
264
|
+
] }) }),
|
|
265
|
+
/* @__PURE__ */ a("div", { className: "p-5 rounded-2xl bg-card border border-border/80 shadow-md space-y-4", children: [
|
|
266
|
+
E ? b ? /* @__PURE__ */ t(fe, { product: e }) : /* @__PURE__ */ a("div", { className: "space-y-3.5", children: [
|
|
267
|
+
/* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-4", children: [
|
|
268
|
+
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
269
|
+
/* @__PURE__ */ t("span", { className: "text-[10px] font-bold text-muted-foreground uppercase tracking-widest", children: o("ecommerce.price", "Price") }),
|
|
270
|
+
/* @__PURE__ */ a("div", { className: "flex items-baseline gap-2.5", children: [
|
|
271
|
+
/* @__PURE__ */ t("span", { className: "text-3xl font-extrabold text-foreground", children: y(
|
|
272
|
+
S ?? k,
|
|
273
|
+
m
|
|
274
|
+
) }),
|
|
275
|
+
typeof S == "number" && /* @__PURE__ */ t("span", { className: "text-lg text-muted-foreground line-through decoration-destructive/20 decoration-1", children: y(k, m) })
|
|
276
|
+
] })
|
|
277
|
+
] }),
|
|
278
|
+
!b && (r || !c) && /* @__PURE__ */ a("div", { className: "text-right space-y-1", children: [
|
|
279
|
+
/* @__PURE__ */ a("span", { className: "text-[10px] font-bold text-muted-foreground uppercase tracking-widest block", children: [
|
|
280
|
+
!c && e.sku && /* @__PURE__ */ a("span", { className: "mr-2 font-normal lowercase normal-case text-muted-foreground/70", children: [
|
|
281
|
+
o("ecommerce.sku", "SKU"),
|
|
282
|
+
": ",
|
|
283
|
+
e.sku
|
|
284
|
+
] }),
|
|
285
|
+
o("ecommerce.status", "Status")
|
|
286
|
+
] }),
|
|
287
|
+
/* @__PURE__ */ t("div", { className: L ? "text-emerald-600 dark:text-emerald-400 font-semibold text-sm" : "text-destructive font-semibold text-sm", children: L ? Y : M })
|
|
288
|
+
] })
|
|
289
|
+
] }),
|
|
290
|
+
c && /* @__PURE__ */ t("div", { className: "space-y-3", children: /* @__PURE__ */ t("div", { className: "grid gap-3 sm:grid-cols-2", children: x.map((s, l) => {
|
|
291
|
+
const p = Ne(
|
|
292
|
+
u,
|
|
293
|
+
s.id,
|
|
294
|
+
{}
|
|
467
295
|
);
|
|
468
|
-
return /* @__PURE__ */
|
|
469
|
-
/* @__PURE__ */
|
|
470
|
-
/* @__PURE__ */
|
|
471
|
-
|
|
296
|
+
return /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
297
|
+
/* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
298
|
+
/* @__PURE__ */ t(
|
|
299
|
+
ne,
|
|
472
300
|
{
|
|
473
|
-
htmlFor: `attribute-${
|
|
301
|
+
htmlFor: `attribute-${s.id}`,
|
|
474
302
|
className: "text-[11px] font-semibold text-muted-foreground uppercase tracking-wider",
|
|
475
|
-
children:
|
|
476
|
-
}
|
|
477
|
-
void 0,
|
|
478
|
-
!1,
|
|
479
|
-
{
|
|
480
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
481
|
-
lineNumber: 534,
|
|
482
|
-
columnNumber: 33
|
|
483
|
-
},
|
|
484
|
-
void 0
|
|
303
|
+
children: s.name
|
|
304
|
+
}
|
|
485
305
|
),
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
columnNumber: 35
|
|
490
|
-
}, void 0)
|
|
491
|
-
] }, void 0, !0, {
|
|
492
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
493
|
-
lineNumber: 533,
|
|
494
|
-
columnNumber: 31
|
|
495
|
-
}, void 0),
|
|
496
|
-
/* @__PURE__ */ e(
|
|
306
|
+
l === 0 && r?.sku && /* @__PURE__ */ t("span", { className: "text-[10px] text-muted-foreground font-mono", children: r.sku })
|
|
307
|
+
] }),
|
|
308
|
+
/* @__PURE__ */ t(
|
|
497
309
|
"select",
|
|
498
310
|
{
|
|
499
|
-
id: `attribute-${
|
|
500
|
-
className: "flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm focus-visible:outline-
|
|
501
|
-
value:
|
|
502
|
-
onChange: (
|
|
503
|
-
|
|
504
|
-
|
|
311
|
+
id: `attribute-${s.id}`,
|
|
312
|
+
className: "flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring",
|
|
313
|
+
value: N[s.id] || "",
|
|
314
|
+
onChange: (h) => H(
|
|
315
|
+
s.id,
|
|
316
|
+
h.target.value
|
|
505
317
|
),
|
|
506
|
-
children:
|
|
318
|
+
children: s.terms.map((h) => /* @__PURE__ */ t(
|
|
507
319
|
"option",
|
|
508
320
|
{
|
|
509
|
-
value:
|
|
510
|
-
disabled: !
|
|
511
|
-
children:
|
|
512
|
-
},
|
|
513
|
-
i.id,
|
|
514
|
-
!1,
|
|
515
|
-
{
|
|
516
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
517
|
-
lineNumber: 558,
|
|
518
|
-
columnNumber: 35
|
|
321
|
+
value: h.id,
|
|
322
|
+
disabled: !p.has(h.id),
|
|
323
|
+
children: h.value
|
|
519
324
|
},
|
|
520
|
-
|
|
325
|
+
h.id
|
|
521
326
|
))
|
|
522
|
-
}
|
|
523
|
-
void 0,
|
|
524
|
-
!1,
|
|
525
|
-
{
|
|
526
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
527
|
-
lineNumber: 546,
|
|
528
|
-
columnNumber: 31
|
|
529
|
-
},
|
|
530
|
-
void 0
|
|
327
|
+
}
|
|
531
328
|
)
|
|
532
|
-
] },
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
/* @__PURE__ */ e(
|
|
554
|
-
"button",
|
|
555
|
-
{
|
|
556
|
-
type: "button",
|
|
557
|
-
onClick: () => U((r) => Math.max(1, r - 1)),
|
|
558
|
-
className: "px-3 h-full flex items-center justify-center text-muted-foreground hover:text-foreground active:scale-95 transition-all text-lg font-medium",
|
|
559
|
-
disabled: C <= 1,
|
|
560
|
-
children: "-"
|
|
561
|
-
},
|
|
562
|
-
void 0,
|
|
563
|
-
!1,
|
|
564
|
-
{
|
|
565
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
566
|
-
lineNumber: 584,
|
|
567
|
-
columnNumber: 25
|
|
568
|
-
},
|
|
569
|
-
void 0
|
|
570
|
-
),
|
|
571
|
-
/* @__PURE__ */ e("span", { className: "w-8 text-center text-sm font-semibold", children: C }, void 0, !1, {
|
|
572
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
573
|
-
lineNumber: 592,
|
|
574
|
-
columnNumber: 25
|
|
575
|
-
}, void 0),
|
|
576
|
-
/* @__PURE__ */ e(
|
|
577
|
-
"button",
|
|
578
|
-
{
|
|
579
|
-
type: "button",
|
|
580
|
-
onClick: () => U(
|
|
581
|
-
(r) => n !== null && r >= n ? r : r + 1
|
|
329
|
+
] }, s.id);
|
|
330
|
+
}) }) }),
|
|
331
|
+
c && !r && /* @__PURE__ */ t("p", { className: "text-xs text-muted-foreground italic pt-1", children: ee }),
|
|
332
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3 pt-1", children: [
|
|
333
|
+
!b && L && /* @__PURE__ */ a(
|
|
334
|
+
"div",
|
|
335
|
+
{
|
|
336
|
+
role: "group",
|
|
337
|
+
"aria-label": o("ecommerce.quantity", "Quantity"),
|
|
338
|
+
className: "flex items-center border rounded-lg h-12 bg-background border-input select-none",
|
|
339
|
+
children: [
|
|
340
|
+
/* @__PURE__ */ t(
|
|
341
|
+
"button",
|
|
342
|
+
{
|
|
343
|
+
type: "button",
|
|
344
|
+
onClick: () => I(Math.max(1, f - 1)),
|
|
345
|
+
"aria-label": o("ecommerce.decrease_quantity", "Decrease quantity"),
|
|
346
|
+
className: "px-3 h-full flex items-center justify-center rounded-l-lg text-muted-foreground hover:text-foreground active:scale-95 transition-colors text-lg font-medium focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring",
|
|
347
|
+
disabled: f <= 1,
|
|
348
|
+
children: /* @__PURE__ */ t("span", { "aria-hidden": "true", children: "-" })
|
|
349
|
+
}
|
|
582
350
|
),
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
oe,
|
|
351
|
+
/* @__PURE__ */ t("span", { "aria-live": "polite", "aria-atomic": "true", className: "w-8 text-center text-sm font-semibold tabular-nums", children: f }),
|
|
352
|
+
/* @__PURE__ */ t(
|
|
353
|
+
"button",
|
|
354
|
+
{
|
|
355
|
+
type: "button",
|
|
356
|
+
onClick: () => I(
|
|
357
|
+
i !== null && f >= i ? f : f + 1
|
|
358
|
+
),
|
|
359
|
+
"aria-label": o("ecommerce.increase_quantity", "Increase quantity"),
|
|
360
|
+
className: "px-3 h-full flex items-center justify-center rounded-r-lg text-muted-foreground hover:text-foreground active:scale-95 transition-colors text-lg font-medium focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring",
|
|
361
|
+
disabled: i !== null && f >= i,
|
|
362
|
+
children: /* @__PURE__ */ t("span", { "aria-hidden": "true", children: "+" })
|
|
363
|
+
}
|
|
364
|
+
)
|
|
365
|
+
]
|
|
366
|
+
}
|
|
367
|
+
),
|
|
368
|
+
c && (!r || !L) ? /* @__PURE__ */ t(
|
|
369
|
+
ce,
|
|
603
370
|
{
|
|
604
371
|
disabled: !0,
|
|
605
372
|
className: "flex-1 h-12 text-md font-bold shadow-md",
|
|
606
|
-
children:
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
{
|
|
611
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
612
|
-
lineNumber: 616,
|
|
613
|
-
columnNumber: 23
|
|
614
|
-
},
|
|
615
|
-
void 0
|
|
616
|
-
) : /* @__PURE__ */ e(
|
|
617
|
-
me,
|
|
618
|
-
{
|
|
619
|
-
product: q,
|
|
620
|
-
quantity: C,
|
|
621
|
-
className: "flex-1 h-12 text-md font-bold shadow-md transition-all hover:shadow-lg active:scale-[0.98]"
|
|
622
|
-
},
|
|
623
|
-
void 0,
|
|
624
|
-
!1,
|
|
373
|
+
children: r ? M : Z
|
|
374
|
+
}
|
|
375
|
+
) : /* @__PURE__ */ t(
|
|
376
|
+
he,
|
|
625
377
|
{
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
}
|
|
630
|
-
void 0
|
|
378
|
+
product: W,
|
|
379
|
+
quantity: f,
|
|
380
|
+
className: "flex-1 h-12 text-base font-bold shadow-md transition-shadow hover:shadow-lg active:scale-[0.98]"
|
|
381
|
+
}
|
|
631
382
|
)
|
|
632
|
-
] }
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
c("ecommerce.instant_digital_delivery")
|
|
655
|
-
] }, void 0, !0, {
|
|
656
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
657
|
-
lineNumber: 638,
|
|
658
|
-
columnNumber: 21
|
|
659
|
-
}, void 0) : /* @__PURE__ */ e("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
660
|
-
/* @__PURE__ */ e(te, { className: "h-3.5 w-3.5" }, void 0, !1, {
|
|
661
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
662
|
-
lineNumber: 644,
|
|
663
|
-
columnNumber: 23
|
|
664
|
-
}, void 0),
|
|
665
|
-
c("ecommerce.free_shipping")
|
|
666
|
-
] }, void 0, !0, {
|
|
667
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
668
|
-
lineNumber: 643,
|
|
669
|
-
columnNumber: 21
|
|
670
|
-
}, void 0) }, void 0, !1, {
|
|
671
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
672
|
-
lineNumber: 636,
|
|
673
|
-
columnNumber: 17
|
|
674
|
-
}, void 0),
|
|
675
|
-
/* @__PURE__ */ e("div", { className: "flex items-center justify-center gap-2", children: /* @__PURE__ */ e("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
676
|
-
/* @__PURE__ */ e(re, { className: "h-3.5 w-3.5" }, void 0, !1, {
|
|
677
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
678
|
-
lineNumber: 651,
|
|
679
|
-
columnNumber: 21
|
|
680
|
-
}, void 0),
|
|
681
|
-
c("ecommerce.secure_checkout")
|
|
682
|
-
] }, void 0, !0, {
|
|
683
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
684
|
-
lineNumber: 650,
|
|
685
|
-
columnNumber: 19
|
|
686
|
-
}, void 0) }, void 0, !1, {
|
|
687
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
688
|
-
lineNumber: 649,
|
|
689
|
-
columnNumber: 17
|
|
690
|
-
}, void 0)
|
|
691
|
-
] }, void 0, !0, {
|
|
692
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
693
|
-
lineNumber: 635,
|
|
694
|
-
columnNumber: 15
|
|
695
|
-
}, void 0)
|
|
696
|
-
] }, void 0, !0, {
|
|
697
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
698
|
-
lineNumber: 474,
|
|
699
|
-
columnNumber: 13
|
|
700
|
-
}, void 0)
|
|
701
|
-
] }, void 0, !0, {
|
|
702
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
703
|
-
lineNumber: 346,
|
|
704
|
-
columnNumber: 11
|
|
705
|
-
}, void 0)
|
|
706
|
-
] }, void 0, !0, {
|
|
707
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
708
|
-
lineNumber: 341,
|
|
709
|
-
columnNumber: 9
|
|
710
|
-
}, void 0) }, void 0, !1, {
|
|
711
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
712
|
-
lineNumber: 340,
|
|
713
|
-
columnNumber: 7
|
|
714
|
-
}, void 0),
|
|
715
|
-
/* @__PURE__ */ e("div", { className: "min-w-0 w-full", ...p ? void 0 : G, children: p || (s.description_json ? /* @__PURE__ */ e("div", { className: "container mx-auto px-4 md:px-6 pb-12 prose prose-neutral dark:prose-invert max-w-none leading-relaxed", children: /* @__PURE__ */ e(be, { content: s.description_json }, void 0, !1, {
|
|
716
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
717
|
-
lineNumber: 666,
|
|
718
|
-
columnNumber: 13
|
|
719
|
-
}, void 0) }, void 0, !1, {
|
|
720
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
721
|
-
lineNumber: 665,
|
|
722
|
-
columnNumber: 11
|
|
723
|
-
}, void 0) : /* @__PURE__ */ e("div", { className: "container mx-auto px-4 md:px-6 pb-12", children: /* @__PURE__ */ e("p", { className: "italic text-sm text-muted-foreground", children: c("ecommerce.no_description") }, void 0, !1, {
|
|
724
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
725
|
-
lineNumber: 670,
|
|
726
|
-
columnNumber: 13
|
|
727
|
-
}, void 0) }, void 0, !1, {
|
|
728
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
729
|
-
lineNumber: 669,
|
|
730
|
-
columnNumber: 11
|
|
731
|
-
}, void 0)) }, void 0, !1, {
|
|
732
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
733
|
-
lineNumber: 661,
|
|
734
|
-
columnNumber: 7
|
|
735
|
-
}, void 0),
|
|
736
|
-
y && /* @__PURE__ */ e("div", { id: "reviews-section", className: "border-t border-border mt-12 pt-12", children: y }, void 0, !1, {
|
|
737
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
738
|
-
lineNumber: 679,
|
|
739
|
-
columnNumber: 9
|
|
740
|
-
}, void 0)
|
|
741
|
-
] }, void 0, !0, {
|
|
742
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/components/ProductDetailsLayout.tsx",
|
|
743
|
-
lineNumber: 339,
|
|
744
|
-
columnNumber: 5
|
|
745
|
-
}, void 0);
|
|
383
|
+
] })
|
|
384
|
+
] }) : C,
|
|
385
|
+
/* @__PURE__ */ t(le, { className: "opacity-60 my-0.5" }),
|
|
386
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-2 gap-4 text-center text-[11px] font-medium text-muted-foreground pt-1", children: [
|
|
387
|
+
/* @__PURE__ */ t("div", { className: "flex items-center justify-center gap-2", children: b ? /* @__PURE__ */ a("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
388
|
+
/* @__PURE__ */ t(ae, { className: "h-3.5 w-3.5" }),
|
|
389
|
+
n("ecommerce.instant_digital_delivery")
|
|
390
|
+
] }) : /* @__PURE__ */ a("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
391
|
+
/* @__PURE__ */ t(se, { className: "h-3.5 w-3.5" }),
|
|
392
|
+
n("ecommerce.free_shipping")
|
|
393
|
+
] }) }),
|
|
394
|
+
/* @__PURE__ */ t("div", { className: "flex items-center justify-center gap-2", children: /* @__PURE__ */ a("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
395
|
+
/* @__PURE__ */ t(ie, { className: "h-3.5 w-3.5" }),
|
|
396
|
+
n("ecommerce.secure_checkout")
|
|
397
|
+
] }) })
|
|
398
|
+
] })
|
|
399
|
+
] })
|
|
400
|
+
] })
|
|
401
|
+
] }) }),
|
|
402
|
+
/* @__PURE__ */ t("div", { className: "min-w-0 w-full", ..._ ? void 0 : X, children: _ || (e.description_json ? /* @__PURE__ */ t("div", { className: "container mx-auto px-4 md:px-6 pb-12 prose prose-neutral dark:prose-invert max-w-none leading-relaxed", children: /* @__PURE__ */ t(xe, { content: e.description_json }) }) : /* @__PURE__ */ t("div", { className: "container mx-auto px-4 md:px-6 pb-12", children: /* @__PURE__ */ t("p", { className: "italic text-sm text-muted-foreground", children: n("ecommerce.no_description") }) })) }),
|
|
403
|
+
P && /* @__PURE__ */ t("div", { id: "reviews-section", className: "border-t border-border mt-12 pt-12", children: P })
|
|
404
|
+
] });
|
|
746
405
|
};
|
|
747
406
|
export {
|
|
748
|
-
|
|
407
|
+
Ge as ProductDetailsLayout
|
|
749
408
|
};
|