@reblu/site-blocks 0.5.1 → 0.7.0
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/CHANGELOG.md +89 -0
- package/README.md +177 -0
- package/dist/client.cjs +198 -0
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +114 -1
- package/dist/client.d.ts +114 -1
- package/dist/client.js +196 -0
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +690 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +351 -2
- package/dist/index.d.ts +351 -2
- package/dist/index.js +679 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -36,6 +36,25 @@ function buildShareUrls(url, title) {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
// src/lib/shop-error-messages.ts
|
|
40
|
+
var DEFAULT_SHOP_ERROR_MESSAGES = {
|
|
41
|
+
STOCK_CHANGED: "Alguno de los productos de tu carrito ya no tiene stock suficiente.",
|
|
42
|
+
PRICE_CHANGED: "El precio de alguno de los productos de tu carrito ha cambiado. Rev\xEDsalo antes de continuar.",
|
|
43
|
+
PRODUCT_UNAVAILABLE: "Alguno de los productos de tu carrito ya no est\xE1 disponible.",
|
|
44
|
+
DISCOUNT_INVALID: "El c\xF3digo de descuento no es v\xE1lido.",
|
|
45
|
+
SHIPPING_UNAVAILABLE: "El env\xEDo no est\xE1 disponible para la direcci\xF3n indicada.",
|
|
46
|
+
INVALID_INPUT: "Revisa los datos introducidos.",
|
|
47
|
+
STORE_DISABLED: "La tienda no est\xE1 disponible en este momento.",
|
|
48
|
+
PAYMENT_PROVIDER_ERROR: "No hemos podido conectar con la pasarela de pago. Int\xE9ntalo de nuevo.",
|
|
49
|
+
INTERNAL_ERROR: "Ha ocurrido un error inesperado. Int\xE9ntalo de nuevo en unos minutos."
|
|
50
|
+
};
|
|
51
|
+
var DEFAULT_SHOP_ERROR_FALLBACK_MESSAGE = "No se ha podido completar la operaci\xF3n. Int\xE9ntalo de nuevo.";
|
|
52
|
+
function getShopErrorMessage(code, overrides, fallback = DEFAULT_SHOP_ERROR_FALLBACK_MESSAGE) {
|
|
53
|
+
if (!code) return fallback;
|
|
54
|
+
const messages = { ...DEFAULT_SHOP_ERROR_MESSAGES, ...overrides };
|
|
55
|
+
return messages[code] ?? fallback;
|
|
56
|
+
}
|
|
57
|
+
|
|
39
58
|
// ../../node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.js
|
|
40
59
|
function ok() {
|
|
41
60
|
}
|
|
@@ -13588,10 +13607,669 @@ function ShopFilters({
|
|
|
13588
13607
|
)
|
|
13589
13608
|
] });
|
|
13590
13609
|
}
|
|
13610
|
+
|
|
13611
|
+
// src/components/cart-line-list.tsx
|
|
13612
|
+
import { cn as cn8 } from "@reblu/site-ui/utils";
|
|
13613
|
+
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
13614
|
+
var DEFAULT_LABELS2 = {
|
|
13615
|
+
quantityLabel: "Cantidad",
|
|
13616
|
+
decrease: "Reducir cantidad",
|
|
13617
|
+
increase: "Aumentar cantidad",
|
|
13618
|
+
remove: "Eliminar",
|
|
13619
|
+
unitPriceSuffix: "/ ud.",
|
|
13620
|
+
cancelledNotice: "Pago cancelado: tu carrito sigue aqu\xED"
|
|
13621
|
+
};
|
|
13622
|
+
function lineKey(productId, variantId) {
|
|
13623
|
+
return `${productId}-${variantId ?? "no-variant"}`;
|
|
13624
|
+
}
|
|
13625
|
+
function CartLineList({
|
|
13626
|
+
items,
|
|
13627
|
+
onQuantityChange,
|
|
13628
|
+
onRemove,
|
|
13629
|
+
liveMessage,
|
|
13630
|
+
notice,
|
|
13631
|
+
labels,
|
|
13632
|
+
currencyCode,
|
|
13633
|
+
locale,
|
|
13634
|
+
className
|
|
13635
|
+
}) {
|
|
13636
|
+
const t = { ...DEFAULT_LABELS2, ...labels };
|
|
13637
|
+
const noticeContent = notice === true ? t.cancelledNotice : notice;
|
|
13638
|
+
return /* @__PURE__ */ jsxs7("div", { className: cn8("space-y-4", className), "data-slot": "cart-line-list", children: [
|
|
13639
|
+
/* @__PURE__ */ jsx8("div", { "aria-live": "polite", className: "sr-only", children: liveMessage }),
|
|
13640
|
+
noticeContent != null && noticeContent !== false && /* @__PURE__ */ jsx8(
|
|
13641
|
+
"div",
|
|
13642
|
+
{
|
|
13643
|
+
role: "status",
|
|
13644
|
+
className: "rounded-lg bg-muted px-3 py-2 text-sm text-muted-foreground",
|
|
13645
|
+
"data-slot": "cart-line-list-notice",
|
|
13646
|
+
children: noticeContent
|
|
13647
|
+
}
|
|
13648
|
+
),
|
|
13649
|
+
/* @__PURE__ */ jsx8("ul", { className: "space-y-4", children: items.map((item) => {
|
|
13650
|
+
const maxQty = item.maxStock ?? Infinity;
|
|
13651
|
+
const atMax = item.quantity >= maxQty;
|
|
13652
|
+
const atMin = item.quantity <= 1;
|
|
13653
|
+
return /* @__PURE__ */ jsxs7(
|
|
13654
|
+
"li",
|
|
13655
|
+
{
|
|
13656
|
+
className: "flex gap-4 rounded-xl border border-border bg-card p-4",
|
|
13657
|
+
children: [
|
|
13658
|
+
/* @__PURE__ */ jsx8("div", { className: "h-20 w-20 flex-shrink-0 overflow-hidden rounded-lg bg-muted", children: item.imageUrl ? /* @__PURE__ */ jsx8("img", { src: item.imageUrl, alt: item.name, className: "h-full w-full object-cover" }) : null }),
|
|
13659
|
+
/* @__PURE__ */ jsxs7("div", { className: "min-w-0 flex-1", children: [
|
|
13660
|
+
/* @__PURE__ */ jsx8("p", { className: "truncate text-sm font-semibold leading-tight", children: item.name }),
|
|
13661
|
+
item.variantName && /* @__PURE__ */ jsx8("p", { className: "mt-0.5 text-xs text-muted-foreground", children: item.variantName }),
|
|
13662
|
+
/* @__PURE__ */ jsxs7("p", { className: "mt-1 text-sm text-muted-foreground", children: [
|
|
13663
|
+
formatPrice(item.unitPrice, currencyCode, locale),
|
|
13664
|
+
" ",
|
|
13665
|
+
t.unitPriceSuffix
|
|
13666
|
+
] }),
|
|
13667
|
+
/* @__PURE__ */ jsxs7(
|
|
13668
|
+
"div",
|
|
13669
|
+
{
|
|
13670
|
+
role: "group",
|
|
13671
|
+
"aria-label": t.quantityLabel,
|
|
13672
|
+
className: "mt-3 flex items-center gap-3",
|
|
13673
|
+
children: [
|
|
13674
|
+
/* @__PURE__ */ jsx8(
|
|
13675
|
+
"button",
|
|
13676
|
+
{
|
|
13677
|
+
type: "button",
|
|
13678
|
+
"aria-label": t.decrease,
|
|
13679
|
+
disabled: !onQuantityChange || atMin,
|
|
13680
|
+
onClick: onQuantityChange ? () => onQuantityChange(item.productId, item.variantId, item.quantity - 1) : void 0,
|
|
13681
|
+
className: "flex h-7 w-7 items-center justify-center rounded border border-border transition hover:bg-muted disabled:cursor-not-allowed disabled:opacity-40",
|
|
13682
|
+
children: "\u2212"
|
|
13683
|
+
}
|
|
13684
|
+
),
|
|
13685
|
+
/* @__PURE__ */ jsx8("span", { className: "w-8 text-center text-sm font-semibold tabular-nums", children: item.quantity }),
|
|
13686
|
+
/* @__PURE__ */ jsx8(
|
|
13687
|
+
"button",
|
|
13688
|
+
{
|
|
13689
|
+
type: "button",
|
|
13690
|
+
"aria-label": t.increase,
|
|
13691
|
+
disabled: !onQuantityChange || atMax,
|
|
13692
|
+
onClick: onQuantityChange ? () => onQuantityChange(item.productId, item.variantId, item.quantity + 1) : void 0,
|
|
13693
|
+
className: "flex h-7 w-7 items-center justify-center rounded border border-border transition hover:bg-muted disabled:cursor-not-allowed disabled:opacity-40",
|
|
13694
|
+
children: "+"
|
|
13695
|
+
}
|
|
13696
|
+
),
|
|
13697
|
+
onRemove && /* @__PURE__ */ jsx8(
|
|
13698
|
+
"button",
|
|
13699
|
+
{
|
|
13700
|
+
type: "button",
|
|
13701
|
+
"aria-label": `${t.remove} ${item.name}`,
|
|
13702
|
+
onClick: () => onRemove(item.productId, item.variantId),
|
|
13703
|
+
className: "ml-2 text-muted-foreground transition-colors hover:text-destructive",
|
|
13704
|
+
children: t.remove
|
|
13705
|
+
}
|
|
13706
|
+
)
|
|
13707
|
+
]
|
|
13708
|
+
}
|
|
13709
|
+
)
|
|
13710
|
+
] }),
|
|
13711
|
+
/* @__PURE__ */ jsx8("div", { className: "flex-shrink-0 text-right", children: /* @__PURE__ */ jsx8("p", { className: "text-base font-bold", children: formatPrice(item.unitPrice * item.quantity, currencyCode, locale) }) })
|
|
13712
|
+
]
|
|
13713
|
+
},
|
|
13714
|
+
lineKey(item.productId, item.variantId)
|
|
13715
|
+
);
|
|
13716
|
+
}) })
|
|
13717
|
+
] });
|
|
13718
|
+
}
|
|
13719
|
+
|
|
13720
|
+
// src/components/cart-summary.tsx
|
|
13721
|
+
import { cn as cn9 } from "@reblu/site-ui/utils";
|
|
13722
|
+
import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
13723
|
+
var DEFAULT_LABELS3 = {
|
|
13724
|
+
subtotal: "Subtotal",
|
|
13725
|
+
discountPrefix: "Descuento",
|
|
13726
|
+
shipping: "Env\xEDo",
|
|
13727
|
+
freeShipping: "Env\xEDo gratis",
|
|
13728
|
+
shippingCalculated: "Se calcula en el pago",
|
|
13729
|
+
total: "Total",
|
|
13730
|
+
cancelledNotice: "Pago cancelado: tu carrito sigue aqu\xED"
|
|
13731
|
+
};
|
|
13732
|
+
function CartSummary({
|
|
13733
|
+
subtotal,
|
|
13734
|
+
discount,
|
|
13735
|
+
discountCode,
|
|
13736
|
+
shipping,
|
|
13737
|
+
shippingEnabled,
|
|
13738
|
+
total,
|
|
13739
|
+
notice,
|
|
13740
|
+
labels,
|
|
13741
|
+
currencyCode,
|
|
13742
|
+
locale,
|
|
13743
|
+
className
|
|
13744
|
+
}) {
|
|
13745
|
+
const t = { ...DEFAULT_LABELS3, ...labels };
|
|
13746
|
+
const hasDiscount = Boolean(discount && discount > 0);
|
|
13747
|
+
const noticeContent = notice === true ? t.cancelledNotice : notice;
|
|
13748
|
+
const hasNotice = noticeContent != null && noticeContent !== false;
|
|
13749
|
+
const breakdown = /* @__PURE__ */ jsxs8(
|
|
13750
|
+
"dl",
|
|
13751
|
+
{
|
|
13752
|
+
className: cn9("space-y-2 text-sm", !hasNotice && className),
|
|
13753
|
+
"data-slot": "cart-summary",
|
|
13754
|
+
children: [
|
|
13755
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex justify-between text-muted-foreground", children: [
|
|
13756
|
+
/* @__PURE__ */ jsx9("dt", { children: t.subtotal }),
|
|
13757
|
+
/* @__PURE__ */ jsx9("dd", { children: formatPrice(subtotal, currencyCode, locale) })
|
|
13758
|
+
] }),
|
|
13759
|
+
hasDiscount && /* @__PURE__ */ jsxs8("div", { className: "flex justify-between text-green-600 dark:text-green-400", children: [
|
|
13760
|
+
/* @__PURE__ */ jsxs8("dt", { children: [
|
|
13761
|
+
t.discountPrefix,
|
|
13762
|
+
discountCode ? ` (${discountCode})` : ""
|
|
13763
|
+
] }),
|
|
13764
|
+
/* @__PURE__ */ jsxs8("dd", { children: [
|
|
13765
|
+
"-",
|
|
13766
|
+
formatPrice(discount, currencyCode, locale)
|
|
13767
|
+
] })
|
|
13768
|
+
] }),
|
|
13769
|
+
shippingEnabled && /* @__PURE__ */ jsxs8("div", { className: "flex justify-between text-muted-foreground", children: [
|
|
13770
|
+
/* @__PURE__ */ jsx9("dt", { children: t.shipping }),
|
|
13771
|
+
/* @__PURE__ */ jsx9("dd", { children: shipping == null || !Number.isFinite(shipping) ? t.shippingCalculated : shipping === 0 ? t.freeShipping : formatPrice(shipping, currencyCode, locale) })
|
|
13772
|
+
] }),
|
|
13773
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex justify-between border-t border-border pt-2 text-base font-bold", children: [
|
|
13774
|
+
/* @__PURE__ */ jsx9("dt", { children: t.total }),
|
|
13775
|
+
/* @__PURE__ */ jsx9("dd", { children: formatPrice(total, currencyCode, locale) })
|
|
13776
|
+
] })
|
|
13777
|
+
]
|
|
13778
|
+
}
|
|
13779
|
+
);
|
|
13780
|
+
if (!hasNotice) return breakdown;
|
|
13781
|
+
return /* @__PURE__ */ jsxs8("div", { className: cn9("space-y-3", className), "data-slot": "cart-summary-wrapper", children: [
|
|
13782
|
+
/* @__PURE__ */ jsx9(
|
|
13783
|
+
"div",
|
|
13784
|
+
{
|
|
13785
|
+
role: "status",
|
|
13786
|
+
className: "rounded-lg bg-muted px-3 py-2 text-sm text-muted-foreground",
|
|
13787
|
+
"data-slot": "cart-summary-notice",
|
|
13788
|
+
children: noticeContent
|
|
13789
|
+
}
|
|
13790
|
+
),
|
|
13791
|
+
breakdown
|
|
13792
|
+
] });
|
|
13793
|
+
}
|
|
13794
|
+
|
|
13795
|
+
// src/components/added-to-cart-toast.tsx
|
|
13796
|
+
import { cn as cn10 } from "@reblu/site-ui/utils";
|
|
13797
|
+
import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
13798
|
+
var DEFAULT_LABELS4 = {
|
|
13799
|
+
success: "A\xF1adido al carrito",
|
|
13800
|
+
error: "No se pudo a\xF1adir al carrito",
|
|
13801
|
+
outOfStock: "Producto agotado",
|
|
13802
|
+
viewCart: "Ver carrito"
|
|
13803
|
+
};
|
|
13804
|
+
function AddedToCartToast({
|
|
13805
|
+
status = "success",
|
|
13806
|
+
productName,
|
|
13807
|
+
quantity,
|
|
13808
|
+
imageUrl,
|
|
13809
|
+
cartHref,
|
|
13810
|
+
labels,
|
|
13811
|
+
className
|
|
13812
|
+
}) {
|
|
13813
|
+
const t = { ...DEFAULT_LABELS4, ...labels };
|
|
13814
|
+
const message = status === "error" ? t.error : status === "outOfStock" ? t.outOfStock : t.success;
|
|
13815
|
+
const hasThumbnail = Boolean(imageUrl && imageUrl.trim().length > 0);
|
|
13816
|
+
const variant = status === "success" ? "success" : "error";
|
|
13817
|
+
return /* @__PURE__ */ jsxs9(
|
|
13818
|
+
"div",
|
|
13819
|
+
{
|
|
13820
|
+
"data-slot": "added-to-cart-toast",
|
|
13821
|
+
"data-variant": variant,
|
|
13822
|
+
className: cn10(
|
|
13823
|
+
"flex items-center gap-3 rounded-xl border border-border bg-card p-3 text-sm shadow-lg",
|
|
13824
|
+
variant === "success" && "border-green-600/30 dark:border-green-400/30",
|
|
13825
|
+
variant === "error" && "border-destructive/30",
|
|
13826
|
+
className
|
|
13827
|
+
),
|
|
13828
|
+
children: [
|
|
13829
|
+
hasThumbnail && // eslint-disable-next-line @next/next/no-img-element -- toast content, not a Next <Image> layout context
|
|
13830
|
+
/* @__PURE__ */ jsx10("img", { src: imageUrl, alt: productName, className: "h-10 w-10 flex-shrink-0 rounded-lg object-cover" }),
|
|
13831
|
+
/* @__PURE__ */ jsxs9("div", { className: "min-w-0 flex-1", children: [
|
|
13832
|
+
/* @__PURE__ */ jsx10("p", { className: "truncate font-semibold text-foreground", children: productName }),
|
|
13833
|
+
/* @__PURE__ */ jsx10("p", { className: "truncate text-muted-foreground", children: quantity && quantity > 1 ? `${message} \xB7 x${quantity}` : message })
|
|
13834
|
+
] }),
|
|
13835
|
+
/* @__PURE__ */ jsx10("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx10("a", { href: cartHref, className: "text-sm font-semibold text-primary underline-offset-2 hover:underline", children: t.viewCart }) })
|
|
13836
|
+
]
|
|
13837
|
+
}
|
|
13838
|
+
);
|
|
13839
|
+
}
|
|
13840
|
+
|
|
13841
|
+
// src/components/checkout-login-prompt.tsx
|
|
13842
|
+
import { cn as cn11 } from "@reblu/site-ui/utils";
|
|
13843
|
+
import { Fragment as Fragment3, jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
13844
|
+
var DEFAULT_LABELS5 = {
|
|
13845
|
+
title: "Identificaci\xF3n",
|
|
13846
|
+
description: "Introduce tu email para agilizar el proceso o contin\xFAa como invitado.",
|
|
13847
|
+
emailLabel: "Email",
|
|
13848
|
+
emailPlaceholder: "tu@email.com",
|
|
13849
|
+
continueWithEmail: "Continuar con este email",
|
|
13850
|
+
checking: "Verificando\u2026",
|
|
13851
|
+
continueAsGuest: "Continuar como invitado",
|
|
13852
|
+
close: "Cerrar"
|
|
13853
|
+
};
|
|
13854
|
+
var EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
13855
|
+
function CheckoutLoginPrompt({
|
|
13856
|
+
open,
|
|
13857
|
+
email,
|
|
13858
|
+
onEmailChange,
|
|
13859
|
+
onClose,
|
|
13860
|
+
onSubmitEmail,
|
|
13861
|
+
onContinueAsGuest,
|
|
13862
|
+
checking,
|
|
13863
|
+
error,
|
|
13864
|
+
labels,
|
|
13865
|
+
className
|
|
13866
|
+
}) {
|
|
13867
|
+
if (!open) return null;
|
|
13868
|
+
const t = { ...DEFAULT_LABELS5, ...labels };
|
|
13869
|
+
const isValidEmail = EMAIL_PATTERN.test(email.trim());
|
|
13870
|
+
return /* @__PURE__ */ jsxs10(Fragment3, { children: [
|
|
13871
|
+
/* @__PURE__ */ jsx11("div", { className: "fixed inset-0 z-50 bg-black/50", onClick: onClose, "aria-hidden": "true" }),
|
|
13872
|
+
/* @__PURE__ */ jsxs10(
|
|
13873
|
+
"div",
|
|
13874
|
+
{
|
|
13875
|
+
role: "dialog",
|
|
13876
|
+
"aria-modal": "true",
|
|
13877
|
+
"aria-labelledby": "checkout-login-prompt-title",
|
|
13878
|
+
"data-slot": "checkout-login-prompt",
|
|
13879
|
+
className: cn11(
|
|
13880
|
+
"fixed left-1/2 top-1/2 z-50 w-full max-w-md -translate-x-1/2 -translate-y-1/2 space-y-5 rounded-2xl border border-border bg-background p-6 shadow-2xl",
|
|
13881
|
+
className
|
|
13882
|
+
),
|
|
13883
|
+
children: [
|
|
13884
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-start justify-between gap-3", children: [
|
|
13885
|
+
/* @__PURE__ */ jsxs10("div", { children: [
|
|
13886
|
+
/* @__PURE__ */ jsx11("h2", { id: "checkout-login-prompt-title", className: "text-xl font-bold", children: t.title }),
|
|
13887
|
+
/* @__PURE__ */ jsx11("p", { className: "mt-1 text-sm text-muted-foreground", children: t.description })
|
|
13888
|
+
] }),
|
|
13889
|
+
/* @__PURE__ */ jsx11(
|
|
13890
|
+
"button",
|
|
13891
|
+
{
|
|
13892
|
+
type: "button",
|
|
13893
|
+
onClick: onClose,
|
|
13894
|
+
"aria-label": t.close,
|
|
13895
|
+
className: "flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",
|
|
13896
|
+
children: "\u2715"
|
|
13897
|
+
}
|
|
13898
|
+
)
|
|
13899
|
+
] }),
|
|
13900
|
+
/* @__PURE__ */ jsxs10("div", { className: "space-y-2", children: [
|
|
13901
|
+
/* @__PURE__ */ jsx11("label", { htmlFor: "checkout-login-prompt-email", className: "text-sm font-medium", children: t.emailLabel }),
|
|
13902
|
+
/* @__PURE__ */ jsx11(
|
|
13903
|
+
"input",
|
|
13904
|
+
{
|
|
13905
|
+
id: "checkout-login-prompt-email",
|
|
13906
|
+
type: "email",
|
|
13907
|
+
autoComplete: "email",
|
|
13908
|
+
value: email,
|
|
13909
|
+
onChange: (e) => onEmailChange(e.target.value),
|
|
13910
|
+
placeholder: t.emailPlaceholder,
|
|
13911
|
+
className: cn11(
|
|
13912
|
+
"w-full rounded-lg border bg-background px-3 py-2 text-sm transition focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
13913
|
+
error ? "border-destructive" : "border-border focus:border-primary"
|
|
13914
|
+
)
|
|
13915
|
+
}
|
|
13916
|
+
),
|
|
13917
|
+
error && /* @__PURE__ */ jsx11("p", { className: "text-xs text-destructive", children: error })
|
|
13918
|
+
] }),
|
|
13919
|
+
/* @__PURE__ */ jsxs10("div", { className: "space-y-2", children: [
|
|
13920
|
+
/* @__PURE__ */ jsx11(
|
|
13921
|
+
"button",
|
|
13922
|
+
{
|
|
13923
|
+
type: "button",
|
|
13924
|
+
onClick: onSubmitEmail,
|
|
13925
|
+
disabled: checking || !isValidEmail,
|
|
13926
|
+
className: cn11(
|
|
13927
|
+
"flex w-full items-center justify-center gap-2 rounded-xl px-4 py-2.5 text-sm font-semibold transition-all",
|
|
13928
|
+
checking || !isValidEmail ? "cursor-not-allowed bg-muted text-muted-foreground" : "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
13929
|
+
),
|
|
13930
|
+
children: checking ? t.checking : t.continueWithEmail
|
|
13931
|
+
}
|
|
13932
|
+
),
|
|
13933
|
+
/* @__PURE__ */ jsx11(
|
|
13934
|
+
"button",
|
|
13935
|
+
{
|
|
13936
|
+
type: "button",
|
|
13937
|
+
onClick: onContinueAsGuest,
|
|
13938
|
+
className: "flex w-full items-center justify-center gap-2 rounded-xl bg-muted px-4 py-2.5 text-sm font-semibold text-muted-foreground transition-colors hover:bg-muted/70",
|
|
13939
|
+
children: t.continueAsGuest
|
|
13940
|
+
}
|
|
13941
|
+
)
|
|
13942
|
+
] })
|
|
13943
|
+
]
|
|
13944
|
+
}
|
|
13945
|
+
)
|
|
13946
|
+
] });
|
|
13947
|
+
}
|
|
13948
|
+
|
|
13949
|
+
// src/components/checkout-form.tsx
|
|
13950
|
+
import { cn as cn12 } from "@reblu/site-ui/utils";
|
|
13951
|
+
import { Fragment as Fragment4, jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
13952
|
+
var DEFAULT_LABELS6 = {
|
|
13953
|
+
contactTitle: "Datos de contacto",
|
|
13954
|
+
nameLabel: "Nombre completo",
|
|
13955
|
+
namePlaceholder: "Tu nombre",
|
|
13956
|
+
emailLabel: "Email",
|
|
13957
|
+
emailPlaceholder: "tu@email.com",
|
|
13958
|
+
phoneLabel: "Tel\xE9fono",
|
|
13959
|
+
discountTitle: "C\xF3digo de descuento",
|
|
13960
|
+
discountPlaceholder: "C\xD3DIGO10",
|
|
13961
|
+
applyDiscount: "Aplicar",
|
|
13962
|
+
applyingDiscount: "Aplicando\u2026",
|
|
13963
|
+
removeDiscount: "Quitar",
|
|
13964
|
+
discountAppliedSuffix: (amount) => `\u2014 ${amount} de descuento`,
|
|
13965
|
+
submit: "Confirmar y pagar",
|
|
13966
|
+
submitting: "Procesando\u2026"
|
|
13967
|
+
};
|
|
13968
|
+
function CheckoutForm({
|
|
13969
|
+
contact,
|
|
13970
|
+
onContactChange,
|
|
13971
|
+
contactErrors,
|
|
13972
|
+
discountCode,
|
|
13973
|
+
onDiscountCodeChange,
|
|
13974
|
+
onApplyDiscount,
|
|
13975
|
+
onRemoveDiscount,
|
|
13976
|
+
appliedDiscount,
|
|
13977
|
+
discountApplying,
|
|
13978
|
+
discountError,
|
|
13979
|
+
loginPrompt,
|
|
13980
|
+
children: children2,
|
|
13981
|
+
submitting,
|
|
13982
|
+
submitDisabled,
|
|
13983
|
+
onSubmit,
|
|
13984
|
+
labels,
|
|
13985
|
+
currencyCode,
|
|
13986
|
+
locale,
|
|
13987
|
+
className
|
|
13988
|
+
}) {
|
|
13989
|
+
const t = { ...DEFAULT_LABELS6, ...labels };
|
|
13990
|
+
function patchContact(patch3) {
|
|
13991
|
+
onContactChange({ ...contact, ...patch3 });
|
|
13992
|
+
}
|
|
13993
|
+
function handleDiscountCodeKeyDown(event) {
|
|
13994
|
+
if (event.key !== "Enter") return;
|
|
13995
|
+
if (event.nativeEvent.isComposing) return;
|
|
13996
|
+
event.preventDefault();
|
|
13997
|
+
if (discountCode.trim() && !discountApplying) onApplyDiscount();
|
|
13998
|
+
}
|
|
13999
|
+
return /* @__PURE__ */ jsxs11(Fragment4, { children: [
|
|
14000
|
+
loginPrompt,
|
|
14001
|
+
/* @__PURE__ */ jsxs11(
|
|
14002
|
+
"form",
|
|
14003
|
+
{
|
|
14004
|
+
"data-testid": "checkout-form",
|
|
14005
|
+
onSubmit,
|
|
14006
|
+
className: cn12("space-y-8", className),
|
|
14007
|
+
"data-slot": "checkout-form",
|
|
14008
|
+
children: [
|
|
14009
|
+
/* @__PURE__ */ jsxs11("section", { className: "space-y-4", children: [
|
|
14010
|
+
/* @__PURE__ */ jsx12("h2", { className: "border-b border-border pb-2 text-lg font-semibold", children: t.contactTitle }),
|
|
14011
|
+
/* @__PURE__ */ jsxs11("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2", children: [
|
|
14012
|
+
/* @__PURE__ */ jsxs11("div", { className: "space-y-1", children: [
|
|
14013
|
+
/* @__PURE__ */ jsx12("label", { htmlFor: "checkout-form-name", className: "text-sm font-medium", children: t.nameLabel }),
|
|
14014
|
+
/* @__PURE__ */ jsx12(
|
|
14015
|
+
"input",
|
|
14016
|
+
{
|
|
14017
|
+
id: "checkout-form-name",
|
|
14018
|
+
type: "text",
|
|
14019
|
+
autoComplete: "name",
|
|
14020
|
+
value: contact.name,
|
|
14021
|
+
onChange: (e) => patchContact({ name: e.target.value }),
|
|
14022
|
+
placeholder: t.namePlaceholder,
|
|
14023
|
+
className: cn12(
|
|
14024
|
+
"w-full rounded-lg border bg-background px-3 py-2 text-sm transition focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
14025
|
+
contactErrors?.name ? "border-destructive" : "border-border focus:border-primary"
|
|
14026
|
+
)
|
|
14027
|
+
}
|
|
14028
|
+
),
|
|
14029
|
+
contactErrors?.name && /* @__PURE__ */ jsx12("p", { className: "text-xs text-destructive", children: contactErrors.name })
|
|
14030
|
+
] }),
|
|
14031
|
+
/* @__PURE__ */ jsxs11("div", { className: "space-y-1", children: [
|
|
14032
|
+
/* @__PURE__ */ jsx12("label", { htmlFor: "checkout-form-email", className: "text-sm font-medium", children: t.emailLabel }),
|
|
14033
|
+
/* @__PURE__ */ jsx12(
|
|
14034
|
+
"input",
|
|
14035
|
+
{
|
|
14036
|
+
id: "checkout-form-email",
|
|
14037
|
+
type: "email",
|
|
14038
|
+
autoComplete: "email",
|
|
14039
|
+
value: contact.email,
|
|
14040
|
+
onChange: (e) => patchContact({ email: e.target.value }),
|
|
14041
|
+
placeholder: t.emailPlaceholder,
|
|
14042
|
+
className: cn12(
|
|
14043
|
+
"w-full rounded-lg border bg-background px-3 py-2 text-sm transition focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
14044
|
+
contactErrors?.email ? "border-destructive" : "border-border focus:border-primary"
|
|
14045
|
+
)
|
|
14046
|
+
}
|
|
14047
|
+
),
|
|
14048
|
+
contactErrors?.email && /* @__PURE__ */ jsx12("p", { className: "text-xs text-destructive", children: contactErrors.email })
|
|
14049
|
+
] }),
|
|
14050
|
+
/* @__PURE__ */ jsxs11("div", { className: "space-y-1", children: [
|
|
14051
|
+
/* @__PURE__ */ jsx12("label", { htmlFor: "checkout-form-phone", className: "text-sm font-medium", children: t.phoneLabel }),
|
|
14052
|
+
/* @__PURE__ */ jsx12(
|
|
14053
|
+
"input",
|
|
14054
|
+
{
|
|
14055
|
+
id: "checkout-form-phone",
|
|
14056
|
+
type: "tel",
|
|
14057
|
+
autoComplete: "tel",
|
|
14058
|
+
value: contact.phone ?? "",
|
|
14059
|
+
onChange: (e) => patchContact({ phone: e.target.value }),
|
|
14060
|
+
className: cn12(
|
|
14061
|
+
"w-full rounded-lg border bg-background px-3 py-2 text-sm transition focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
14062
|
+
contactErrors?.phone ? "border-destructive" : "border-border focus:border-primary"
|
|
14063
|
+
)
|
|
14064
|
+
}
|
|
14065
|
+
),
|
|
14066
|
+
contactErrors?.phone && /* @__PURE__ */ jsx12("p", { className: "text-xs text-destructive", children: contactErrors.phone })
|
|
14067
|
+
] })
|
|
14068
|
+
] })
|
|
14069
|
+
] }),
|
|
14070
|
+
children2,
|
|
14071
|
+
/* @__PURE__ */ jsxs11("section", { className: "space-y-3", children: [
|
|
14072
|
+
/* @__PURE__ */ jsx12("h2", { className: "border-b border-border pb-2 text-lg font-semibold", children: t.discountTitle }),
|
|
14073
|
+
appliedDiscount ? /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between rounded-lg border border-green-200 bg-green-50 px-4 py-3 dark:border-green-800 dark:bg-green-900/20", children: [
|
|
14074
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-2 text-sm text-green-700 dark:text-green-400", children: [
|
|
14075
|
+
/* @__PURE__ */ jsx12("span", { className: "font-semibold", children: appliedDiscount.code }),
|
|
14076
|
+
/* @__PURE__ */ jsx12("span", { children: t.discountAppliedSuffix(formatPrice(appliedDiscount.amount, currencyCode, locale)) })
|
|
14077
|
+
] }),
|
|
14078
|
+
/* @__PURE__ */ jsx12(
|
|
14079
|
+
"button",
|
|
14080
|
+
{
|
|
14081
|
+
type: "button",
|
|
14082
|
+
onClick: onRemoveDiscount,
|
|
14083
|
+
"aria-label": t.removeDiscount,
|
|
14084
|
+
className: "text-green-600 transition-colors hover:text-green-800 dark:text-green-400 dark:hover:text-green-200",
|
|
14085
|
+
children: t.removeDiscount
|
|
14086
|
+
}
|
|
14087
|
+
)
|
|
14088
|
+
] }) : /* @__PURE__ */ jsxs11("div", { className: "flex gap-2", children: [
|
|
14089
|
+
/* @__PURE__ */ jsx12("label", { htmlFor: "checkout-form-discount-code", className: "sr-only", children: t.discountTitle }),
|
|
14090
|
+
/* @__PURE__ */ jsx12(
|
|
14091
|
+
"input",
|
|
14092
|
+
{
|
|
14093
|
+
id: "checkout-form-discount-code",
|
|
14094
|
+
type: "text",
|
|
14095
|
+
value: discountCode,
|
|
14096
|
+
onChange: (e) => onDiscountCodeChange(e.target.value.toUpperCase()),
|
|
14097
|
+
onKeyDown: handleDiscountCodeKeyDown,
|
|
14098
|
+
placeholder: t.discountPlaceholder,
|
|
14099
|
+
className: "flex-1 rounded-lg border border-border bg-background px-3 py-2 text-sm uppercase transition focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/20"
|
|
14100
|
+
}
|
|
14101
|
+
),
|
|
14102
|
+
/* @__PURE__ */ jsx12(
|
|
14103
|
+
"button",
|
|
14104
|
+
{
|
|
14105
|
+
type: "button",
|
|
14106
|
+
onClick: onApplyDiscount,
|
|
14107
|
+
disabled: !discountCode.trim() || discountApplying,
|
|
14108
|
+
className: "rounded-lg bg-muted px-4 py-2 text-sm font-medium text-foreground transition hover:bg-muted/70 disabled:cursor-not-allowed disabled:opacity-50",
|
|
14109
|
+
children: discountApplying ? t.applyingDiscount : t.applyDiscount
|
|
14110
|
+
}
|
|
14111
|
+
)
|
|
14112
|
+
] }),
|
|
14113
|
+
discountError && /* @__PURE__ */ jsx12("p", { className: "text-xs text-destructive", children: discountError })
|
|
14114
|
+
] }),
|
|
14115
|
+
/* @__PURE__ */ jsx12(
|
|
14116
|
+
"button",
|
|
14117
|
+
{
|
|
14118
|
+
type: "submit",
|
|
14119
|
+
disabled: submitting || submitDisabled,
|
|
14120
|
+
className: cn12(
|
|
14121
|
+
"flex w-full items-center justify-center gap-2 rounded-xl px-4 py-3 font-semibold transition-all",
|
|
14122
|
+
submitting || submitDisabled ? "cursor-not-allowed bg-muted text-muted-foreground" : "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
14123
|
+
),
|
|
14124
|
+
children: submitting ? t.submitting : t.submit
|
|
14125
|
+
}
|
|
14126
|
+
)
|
|
14127
|
+
]
|
|
14128
|
+
}
|
|
14129
|
+
)
|
|
14130
|
+
] });
|
|
14131
|
+
}
|
|
14132
|
+
|
|
14133
|
+
// src/components/order-confirmation.tsx
|
|
14134
|
+
import { cn as cn13 } from "@reblu/site-ui/utils";
|
|
14135
|
+
import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
14136
|
+
var DEFAULT_LABELS7 = {
|
|
14137
|
+
pollingTitle: "Confirmando tu pedido\u2026",
|
|
14138
|
+
pollingDescription: "Estamos procesando el pago, un momento\u2026",
|
|
14139
|
+
foundTitle: "\xA1Pedido confirmado!",
|
|
14140
|
+
foundDescription: "Recibir\xE1s un email de confirmaci\xF3n con todos los detalles.",
|
|
14141
|
+
timeoutTitle: "Pago recibido",
|
|
14142
|
+
timeoutDescription: "Tu pago se ha procesado. Recibir\xE1s un email de confirmaci\xF3n en breve.",
|
|
14143
|
+
orderNumberLabel: "Pedido confirmado",
|
|
14144
|
+
totalLabel: "Total",
|
|
14145
|
+
confirmationEmailPrefix: "Te hemos enviado un email de confirmaci\xF3n a",
|
|
14146
|
+
sessionReferenceLabel: "Referencia de sesi\xF3n",
|
|
14147
|
+
// REB-837
|
|
14148
|
+
failedTitle: "El pago no se ha completado",
|
|
14149
|
+
failedDescription: "No se ha podido procesar el pago. Tu carrito sigue intacto.",
|
|
14150
|
+
backToCartLabel: "Volver al carrito",
|
|
14151
|
+
refundedTitle: "Este pedido ha sido reembolsado",
|
|
14152
|
+
refundedDescription: "El importe se ha devuelto a tu m\xE9todo de pago original.",
|
|
14153
|
+
partiallyRefundedTitle: "Este pedido ha sido reembolsado parcialmente",
|
|
14154
|
+
partiallyRefundedDescription: "Parte del importe se ha devuelto a tu m\xE9todo de pago original.",
|
|
14155
|
+
pendingTimeoutTitle: "Pedido recibido",
|
|
14156
|
+
pendingTimeoutDescription: "Estamos confirmando el pago; te enviaremos un email en cuanto se complete.",
|
|
14157
|
+
recheckLabel: "Volver a comprobar",
|
|
14158
|
+
notFoundTitle: "No encontramos ning\xFAn pedido",
|
|
14159
|
+
notFoundDescription: "Comprueba el enlace o contacta con nosotros si el problema persiste.",
|
|
14160
|
+
errorTitle: "Ha ocurrido un error",
|
|
14161
|
+
errorDescription: "No hemos podido comprobar el estado de tu pedido.",
|
|
14162
|
+
orderReferenceLabel: "Referencia del pedido"
|
|
14163
|
+
};
|
|
14164
|
+
function OrderConfirmation({
|
|
14165
|
+
status,
|
|
14166
|
+
order,
|
|
14167
|
+
sessionId,
|
|
14168
|
+
cartHref,
|
|
14169
|
+
onRecheck,
|
|
14170
|
+
labels,
|
|
14171
|
+
currencyCode,
|
|
14172
|
+
locale,
|
|
14173
|
+
className
|
|
14174
|
+
}) {
|
|
14175
|
+
const t = { ...DEFAULT_LABELS7, ...labels };
|
|
14176
|
+
const isPolling = status === "polling" || status === "loading";
|
|
14177
|
+
const isFound = status === "found" || status === "paid";
|
|
14178
|
+
const { title, description } = (() => {
|
|
14179
|
+
if (isPolling) return { title: t.pollingTitle, description: t.pollingDescription };
|
|
14180
|
+
if (status === "failed") return { title: t.failedTitle, description: t.failedDescription };
|
|
14181
|
+
if (status === "refunded") return { title: t.refundedTitle, description: t.refundedDescription };
|
|
14182
|
+
if (status === "partially_refunded") {
|
|
14183
|
+
return { title: t.partiallyRefundedTitle, description: t.partiallyRefundedDescription };
|
|
14184
|
+
}
|
|
14185
|
+
if (status === "pending_timeout") {
|
|
14186
|
+
return { title: t.pendingTimeoutTitle, description: t.pendingTimeoutDescription };
|
|
14187
|
+
}
|
|
14188
|
+
if (status === "not_found") return { title: t.notFoundTitle, description: t.notFoundDescription };
|
|
14189
|
+
if (status === "error") return { title: t.errorTitle, description: t.errorDescription };
|
|
14190
|
+
if (isFound || order) return { title: t.foundTitle, description: t.foundDescription };
|
|
14191
|
+
return { title: t.timeoutTitle, description: t.timeoutDescription };
|
|
14192
|
+
})();
|
|
14193
|
+
const showFullOrderSummary = Boolean(order) && (isFound || status === "timeout");
|
|
14194
|
+
const showOrderReference = Boolean(order) && !showFullOrderSummary && (status === "refunded" || status === "partially_refunded" || status === "pending_timeout");
|
|
14195
|
+
const showSessionReference = !order && sessionId && (status === "timeout" || status === "not_found" || status === "pending_timeout");
|
|
14196
|
+
const showRecheck = (status === "pending_timeout" || status === "error") && onRecheck;
|
|
14197
|
+
return /* @__PURE__ */ jsxs12("div", { className: cn13("space-y-6 text-center", className), "data-slot": "order-confirmation", children: [
|
|
14198
|
+
/* @__PURE__ */ jsx13("h1", { className: "text-3xl font-bold", children: title }),
|
|
14199
|
+
/* @__PURE__ */ jsx13("p", { className: "text-lg text-muted-foreground", children: description }),
|
|
14200
|
+
showFullOrderSummary && order && /* @__PURE__ */ jsxs12("div", { className: "space-y-6", children: [
|
|
14201
|
+
/* @__PURE__ */ jsxs12("div", { className: "inline-block rounded-xl bg-muted px-6 py-4", children: [
|
|
14202
|
+
/* @__PURE__ */ jsx13("p", { className: "mb-1 text-xs uppercase tracking-widest text-muted-foreground", children: t.orderNumberLabel }),
|
|
14203
|
+
/* @__PURE__ */ jsx13("p", { className: "font-mono text-lg font-semibold", children: order.orderNumber })
|
|
14204
|
+
] }),
|
|
14205
|
+
/* @__PURE__ */ jsxs12("div", { className: "mx-auto max-w-sm space-y-3 rounded-xl border border-border bg-card p-5 text-left", children: [
|
|
14206
|
+
order.items.map((item, idx) => /* @__PURE__ */ jsxs12(
|
|
14207
|
+
"div",
|
|
14208
|
+
{
|
|
14209
|
+
className: "flex justify-between gap-4 text-sm",
|
|
14210
|
+
children: [
|
|
14211
|
+
/* @__PURE__ */ jsxs12("span", { className: "max-w-[60%] truncate text-muted-foreground", children: [
|
|
14212
|
+
item.product.name,
|
|
14213
|
+
item.variant ? ` (${item.variant.name})` : "",
|
|
14214
|
+
" x",
|
|
14215
|
+
item.quantity
|
|
14216
|
+
] }),
|
|
14217
|
+
/* @__PURE__ */ jsx13("span", { children: formatPrice(item.total, currencyCode, locale) })
|
|
14218
|
+
]
|
|
14219
|
+
},
|
|
14220
|
+
idx
|
|
14221
|
+
)),
|
|
14222
|
+
/* @__PURE__ */ jsx13("div", { className: "space-y-1 border-t border-border pt-3 text-sm", children: /* @__PURE__ */ jsxs12("div", { className: "flex justify-between pt-1 text-base font-bold", children: [
|
|
14223
|
+
/* @__PURE__ */ jsx13("span", { children: t.totalLabel }),
|
|
14224
|
+
/* @__PURE__ */ jsx13("span", { children: formatPrice(order.total, currencyCode, locale) })
|
|
14225
|
+
] }) })
|
|
14226
|
+
] }),
|
|
14227
|
+
/* @__PURE__ */ jsxs12("p", { className: "mx-auto max-w-sm text-sm text-muted-foreground", children: [
|
|
14228
|
+
t.confirmationEmailPrefix,
|
|
14229
|
+
" ",
|
|
14230
|
+
/* @__PURE__ */ jsx13("span", { className: "font-medium text-foreground", children: order.customerEmail }),
|
|
14231
|
+
"."
|
|
14232
|
+
] })
|
|
14233
|
+
] }),
|
|
14234
|
+
showOrderReference && order && /* @__PURE__ */ jsxs12("div", { className: "inline-block rounded-xl bg-muted px-6 py-4", children: [
|
|
14235
|
+
/* @__PURE__ */ jsx13("p", { className: "mb-1 text-xs uppercase tracking-widest text-muted-foreground", children: t.orderReferenceLabel }),
|
|
14236
|
+
/* @__PURE__ */ jsx13("p", { className: "font-mono text-lg font-semibold", children: order.orderNumber })
|
|
14237
|
+
] }),
|
|
14238
|
+
status === "failed" && cartHref && /* @__PURE__ */ jsx13(
|
|
14239
|
+
"a",
|
|
14240
|
+
{
|
|
14241
|
+
href: cartHref,
|
|
14242
|
+
className: "inline-block text-sm font-semibold text-primary underline-offset-2 hover:underline",
|
|
14243
|
+
children: t.backToCartLabel
|
|
14244
|
+
}
|
|
14245
|
+
),
|
|
14246
|
+
showRecheck && /* @__PURE__ */ jsx13(
|
|
14247
|
+
"button",
|
|
14248
|
+
{
|
|
14249
|
+
type: "button",
|
|
14250
|
+
onClick: onRecheck,
|
|
14251
|
+
className: "inline-flex items-center justify-center rounded-xl bg-primary px-4 py-2.5 text-sm font-semibold text-primary-foreground transition-colors hover:bg-primary/90",
|
|
14252
|
+
children: t.recheckLabel
|
|
14253
|
+
}
|
|
14254
|
+
),
|
|
14255
|
+
showSessionReference && /* @__PURE__ */ jsxs12("div", { className: "inline-block rounded-xl bg-muted px-6 py-4", children: [
|
|
14256
|
+
/* @__PURE__ */ jsx13("p", { className: "mb-1 text-xs uppercase tracking-widest text-muted-foreground", children: t.sessionReferenceLabel }),
|
|
14257
|
+
/* @__PURE__ */ jsx13("p", { className: "break-all font-mono text-sm font-semibold", children: sessionId })
|
|
14258
|
+
] })
|
|
14259
|
+
] });
|
|
14260
|
+
}
|
|
13591
14261
|
export {
|
|
13592
14262
|
ALLOWED_YOUTUBE_HOSTS,
|
|
14263
|
+
AddedToCartToast,
|
|
14264
|
+
CartLineList,
|
|
14265
|
+
CartSummary,
|
|
14266
|
+
CheckoutForm,
|
|
14267
|
+
CheckoutLoginPrompt,
|
|
14268
|
+
DEFAULT_SHOP_ERROR_FALLBACK_MESSAGE,
|
|
14269
|
+
DEFAULT_SHOP_ERROR_MESSAGES,
|
|
13593
14270
|
DEFAULT_SHOP_PRICE_BANDS,
|
|
13594
14271
|
MarkdownRenderer,
|
|
14272
|
+
OrderConfirmation,
|
|
13595
14273
|
ProductCard,
|
|
13596
14274
|
ProfileCard,
|
|
13597
14275
|
SafeHtml,
|
|
@@ -13600,6 +14278,7 @@ export {
|
|
|
13600
14278
|
Treatment,
|
|
13601
14279
|
buildShareUrls,
|
|
13602
14280
|
formatPrice,
|
|
14281
|
+
getShopErrorMessage,
|
|
13603
14282
|
isAllowedYouTubeHost,
|
|
13604
14283
|
markdownToSafeHtml,
|
|
13605
14284
|
readingTime,
|