formica-ui-lib 1.0.340 → 1.0.342
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/dist/index.js
CHANGED
|
@@ -8292,7 +8292,22 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8292
8292
|
})]
|
|
8293
8293
|
}, e.id))
|
|
8294
8294
|
})
|
|
8295
|
-
}) : null, rl = (e) => [e.title, e.subtitle].filter(Boolean).join(" "), il = (
|
|
8295
|
+
}) : null, rl = (e) => [e.title, e.subtitle].filter(Boolean).join(" "), il = (e) => e.variant === "document" ? /* @__PURE__ */ l("span", {
|
|
8296
|
+
className: "flex h-10 w-10 shrink-0 items-center justify-center",
|
|
8297
|
+
children: /* @__PURE__ */ l(S, {
|
|
8298
|
+
iconType: "fa-regular",
|
|
8299
|
+
iconName: "file-pdf",
|
|
8300
|
+
size: "2xl"
|
|
8301
|
+
})
|
|
8302
|
+
}) : e.imageSrc ? /* @__PURE__ */ l(L, {
|
|
8303
|
+
src: e.imageSrc,
|
|
8304
|
+
alt: e.imageAlt ?? "",
|
|
8305
|
+
className: "h-10 w-10 shrink-0 rounded-sm object-cover",
|
|
8306
|
+
quality: 80
|
|
8307
|
+
}) : /* @__PURE__ */ l("span", {
|
|
8308
|
+
"aria-hidden": "true",
|
|
8309
|
+
className: "h-10 w-10 shrink-0 rounded-sm bg-gray-100"
|
|
8310
|
+
}), al = ({ id: e, items: t = [], viewAllLabel: n = "View all results", ariaLabel: r = "Search results", layoutVariant: i = "popover", onResultClick: a, onViewAllClick: o }) => t.length ? /* @__PURE__ */ u("div", {
|
|
8296
8311
|
id: e,
|
|
8297
8312
|
className: `${i === "contained" ? "w-full" : "w-80"} overflow-hidden rounded-md border border-gray-200 bg-white text-primary shadow-lg`,
|
|
8298
8313
|
role: "region",
|
|
@@ -8303,15 +8318,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8303
8318
|
ariaLabel: rl(e),
|
|
8304
8319
|
className: "flex w-full items-center gap-3 px-3 py-2 text-left hover:bg-gray-50 focus:bg-gray-50 focus:outline-none",
|
|
8305
8320
|
onCardClick: () => a?.({ item: e }),
|
|
8306
|
-
children: [e
|
|
8307
|
-
src: e.imageSrc,
|
|
8308
|
-
alt: e.imageAlt ?? "",
|
|
8309
|
-
className: "h-10 w-10 shrink-0 rounded-sm object-cover",
|
|
8310
|
-
quality: 80
|
|
8311
|
-
}) : /* @__PURE__ */ l("span", {
|
|
8312
|
-
"aria-hidden": "true",
|
|
8313
|
-
className: "h-10 w-10 shrink-0 rounded-sm bg-gray-100"
|
|
8314
|
-
}), /* @__PURE__ */ u("span", {
|
|
8321
|
+
children: [il(e), /* @__PURE__ */ u("span", {
|
|
8315
8322
|
className: "min-w-0",
|
|
8316
8323
|
children: [
|
|
8317
8324
|
/* @__PURE__ */ l("span", {
|
|
@@ -8322,7 +8329,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8322
8329
|
className: "mt-0.5 block text-xs leading-snug break-words text-secondary",
|
|
8323
8330
|
children: e.subtitle
|
|
8324
8331
|
}) : null,
|
|
8325
|
-
e.variant === "article" && e.description ? /* @__PURE__ */ l("span", {
|
|
8332
|
+
(e.variant === "article" || e.variant === "document") && e.description ? /* @__PURE__ */ l("span", {
|
|
8326
8333
|
className: "mt-0.5 block text-xs leading-snug break-words text-secondary",
|
|
8327
8334
|
children: e.description
|
|
8328
8335
|
}) : null
|
|
@@ -8338,7 +8345,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8338
8345
|
onClick: o
|
|
8339
8346
|
})
|
|
8340
8347
|
})]
|
|
8341
|
-
}) : null,
|
|
8348
|
+
}) : null, ol = 300, sl = ({ Countries: e, countries: t, selectedCountry: r, Login: i, Account: a, Cart: c = {
|
|
8342
8349
|
hasCart: !1,
|
|
8343
8350
|
itemCount: 0
|
|
8344
8351
|
}, showCart: d = !0, showFavorites: f = !0, showLogin: p = !0, searchPlaceholder: m = "Search", searchLabel: h = "Search", searchResultsAriaLabel: g = "Search results", clearSearchLabel: _ = "Clear search", searchResultItems: v = [], searchViewAllLabel: y, onSearchClick: b, onSearchChange: x, onSearchSubmit: S, onSearchResultClick: C, onSearchViewAllClick: w, onCartClick: T, onLoginClick: E, onAccountClick: D, onFavoritesClick: O, onCountrySelect: k }) => {
|
|
@@ -8347,7 +8354,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8347
8354
|
if (!F.current) return;
|
|
8348
8355
|
let e = window.setTimeout(() => {
|
|
8349
8356
|
x?.({ query: M });
|
|
8350
|
-
},
|
|
8357
|
+
}, ol);
|
|
8351
8358
|
return () => {
|
|
8352
8359
|
window.clearTimeout(e);
|
|
8353
8360
|
};
|
|
@@ -8405,7 +8412,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8405
8412
|
}),
|
|
8406
8413
|
A && B ? /* @__PURE__ */ l("div", {
|
|
8407
8414
|
className: "absolute top-full right-0 z-30 mt-2",
|
|
8408
|
-
children: /* @__PURE__ */ l(
|
|
8415
|
+
children: /* @__PURE__ */ l(al, {
|
|
8409
8416
|
id: "top-nav-search-results",
|
|
8410
8417
|
items: v,
|
|
8411
8418
|
viewAllLabel: y,
|
|
@@ -8471,11 +8478,11 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8471
8478
|
}) }) : null
|
|
8472
8479
|
]
|
|
8473
8480
|
});
|
|
8474
|
-
},
|
|
8481
|
+
}, cl = 750, ll = "\n @keyframes top-nav-account-drawer-slide-in {\n from { transform: translate3d(100%, 0, 0); }\n to { transform: translate3d(0, 0, 0); }\n }\n\n @keyframes top-nav-account-drawer-slide-out {\n from { transform: translate3d(0, 0, 0); }\n to { transform: translate3d(100%, 0, 0); }\n }\n\n @keyframes top-nav-account-backdrop-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n\n @keyframes top-nav-account-backdrop-out {\n from { opacity: 1; }\n to { opacity: 0; }\n }\n\n .top-nav-account-drawer-panel[data-phase=\"opening\"] {\n animation: top-nav-account-drawer-slide-in 500ms cubic-bezier(0.4, 0, 0.2, 1) both;\n }\n\n .top-nav-account-drawer-panel[data-phase=\"open\"] {\n transform: translate3d(0, 0, 0);\n }\n\n .top-nav-account-drawer-panel[data-phase=\"closing\"] {\n animation: top-nav-account-drawer-slide-out 500ms cubic-bezier(0.4, 0, 0.2, 1) both;\n }\n\n .top-nav-account-drawer-backdrop[data-phase=\"opening\"] {\n animation: top-nav-account-backdrop-in 500ms cubic-bezier(0.4, 0, 0.2, 1) both;\n }\n\n .top-nav-account-drawer-backdrop[data-phase=\"open\"] {\n opacity: 1;\n }\n\n .top-nav-account-drawer-backdrop[data-phase=\"closing\"] {\n animation: top-nav-account-backdrop-out 500ms cubic-bezier(0.4, 0, 0.2, 1) both;\n }\n\n @media (min-width: 768px) {\n .top-nav-account-drawer-panel[data-phase=\"opening\"],\n .top-nav-account-drawer-panel[data-phase=\"closing\"] {\n animation-duration: 700ms;\n }\n }\n\n", ul = ({ isOpen: e, customerName: t, title: r = "Account", orderHistoryLabel: i = "Order History", favoritesLabel: a = "Favorites", profileLabel: o = "Profile & Addresses", logoutLabel: c = "Log Out", onClose: f, onOrderHistoryClick: p, onFavoritesClick: m, onProfileClick: h, onLogoutClick: g }) => {
|
|
8475
8482
|
let [_, y] = s(e), [b, x] = s(e ? "opening" : "open");
|
|
8476
8483
|
if (n(() => {
|
|
8477
8484
|
let t;
|
|
8478
|
-
return e ? (y(!0), x("opening")) : _ && (x("closing"), t = window.setTimeout(() => y(!1),
|
|
8485
|
+
return e ? (y(!0), x("opening")) : _ && (x("closing"), t = window.setTimeout(() => y(!1), cl)), () => window.clearTimeout(t);
|
|
8479
8486
|
}, [e, _]), n(() => {
|
|
8480
8487
|
if (!_) return;
|
|
8481
8488
|
let e = document.body.style.overflow, t = document.body.style.paddingRight, n = window.innerWidth - document.documentElement.clientWidth, r = (e) => {
|
|
@@ -8495,7 +8502,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8495
8502
|
return d(/* @__PURE__ */ u("div", {
|
|
8496
8503
|
className: `fixed inset-0 z-60 ${e ? "" : "pointer-events-none"}`,
|
|
8497
8504
|
children: [
|
|
8498
|
-
/* @__PURE__ */ l("style", { children:
|
|
8505
|
+
/* @__PURE__ */ l("style", { children: ll }),
|
|
8499
8506
|
/* @__PURE__ */ l("button", {
|
|
8500
8507
|
type: "button",
|
|
8501
8508
|
"aria-label": "Close account overlay",
|
|
@@ -8612,7 +8619,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8612
8619
|
})
|
|
8613
8620
|
]
|
|
8614
8621
|
}), document.body);
|
|
8615
|
-
},
|
|
8622
|
+
}, dl = "__mobile-menu-open__", fl = 300, pl = ({ NavMenuWithSubItems: e = [], countries: t, selectedCountry: r, Login: i, Account: a, Cart: c, showCart: d = !0, showFavorites: f = !0, showLogin: p = !0, Logo: m, searchPlaceholder: h = "Search", searchLabel: g = "Search", searchResultsAriaLabel: _ = "Search results", clearSearchLabel: v = "Clear search", closeSearchLabel: y = "Close search", searchResultItems: b, searchViewAllLabel: x, onLogoClick: S, onNavItemClick: C, onMegaMenuLinkClick: w, onSearchClick: T, onSearchChange: E, onSearchSubmit: D, onSearchResultClick: O, onSearchViewAllClick: k, onCartClick: A, onLoginClick: j, onAccountClick: M, onOrderHistoryClick: N, onProfileClick: F, onLogoutClick: I, onFavoritesClick: R, onCountrySelect: z }) => {
|
|
8616
8623
|
let B = o(null), [V, ee] = s(null), [te, ne] = s(null), [re, ie] = s(!1), [ae, H] = s(!1), [oe, U] = s(""), se = o(!1), W = te !== null, ce = e.find((e) => e.id === V), le = t ?? [], ue = i ?? {
|
|
8617
8624
|
label: "Log In",
|
|
8618
8625
|
href: "/login"
|
|
@@ -8634,7 +8641,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8634
8641
|
if (!se.current) return;
|
|
8635
8642
|
let e = window.setTimeout(() => {
|
|
8636
8643
|
E?.({ query: oe });
|
|
8637
|
-
},
|
|
8644
|
+
}, fl);
|
|
8638
8645
|
return () => window.clearTimeout(e);
|
|
8639
8646
|
}, [oe, E]);
|
|
8640
8647
|
let Se = () => {
|
|
@@ -8661,7 +8668,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8661
8668
|
}, ke = (e, t = {}) => {
|
|
8662
8669
|
ee(null), t.closeMobile && Ee(), w?.(e);
|
|
8663
8670
|
}, Ae = (e) => {
|
|
8664
|
-
ne((t) => t === e ?
|
|
8671
|
+
ne((t) => t === e ? dl : e);
|
|
8665
8672
|
};
|
|
8666
8673
|
return /* @__PURE__ */ u("header", {
|
|
8667
8674
|
ref: B,
|
|
@@ -8730,7 +8737,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8730
8737
|
className: "h-9 w-9 p-0",
|
|
8731
8738
|
"aria-label": W ? "Close menu" : "Open menu",
|
|
8732
8739
|
onClick: () => {
|
|
8733
|
-
ne((e) => e === null ?
|
|
8740
|
+
ne((e) => e === null ? dl : null);
|
|
8734
8741
|
},
|
|
8735
8742
|
"aria-expanded": W
|
|
8736
8743
|
})
|
|
@@ -8815,7 +8822,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8815
8822
|
active: V === t
|
|
8816
8823
|
}, t);
|
|
8817
8824
|
})
|
|
8818
|
-
}), /* @__PURE__ */ l(
|
|
8825
|
+
}), /* @__PURE__ */ l(sl, {
|
|
8819
8826
|
Countries: le,
|
|
8820
8827
|
selectedCountry: r,
|
|
8821
8828
|
Login: ue,
|
|
@@ -8862,7 +8869,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8862
8869
|
})
|
|
8863
8870
|
})
|
|
8864
8871
|
}),
|
|
8865
|
-
/* @__PURE__ */ l(
|
|
8872
|
+
/* @__PURE__ */ l(ul, {
|
|
8866
8873
|
...fe,
|
|
8867
8874
|
isOpen: re,
|
|
8868
8875
|
onClose: () => ie(!1),
|
|
@@ -8894,7 +8901,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8894
8901
|
se.current = !0, U(e.target.value);
|
|
8895
8902
|
},
|
|
8896
8903
|
onSearchSubmit: q
|
|
8897
|
-
}), /* @__PURE__ */ l(
|
|
8904
|
+
}), /* @__PURE__ */ l(al, {
|
|
8898
8905
|
id: "top-nav-mobile-search-results",
|
|
8899
8906
|
items: b,
|
|
8900
8907
|
viewAllLabel: x,
|
|
@@ -8908,7 +8915,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8908
8915
|
})
|
|
8909
8916
|
]
|
|
8910
8917
|
});
|
|
8911
|
-
},
|
|
8918
|
+
}, ml = ({ message: e, buttonLabel: t, onButtonClick: n, children: r }) => {
|
|
8912
8919
|
let i = e?.trim();
|
|
8913
8920
|
return i ? /* @__PURE__ */ l("div", {
|
|
8914
8921
|
className: "w-full bg-primary",
|
|
@@ -8938,7 +8945,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8938
8945
|
]
|
|
8939
8946
|
})
|
|
8940
8947
|
}) : null;
|
|
8941
|
-
},
|
|
8948
|
+
}, hl = ({ Breadcrumbs: e = [], onBreadcrumbClick: t }) => {
|
|
8942
8949
|
if (!e.length) return null;
|
|
8943
8950
|
let n = e.at(-1), r = e.slice(0, -1), i = (e, n) => {
|
|
8944
8951
|
!t || !n.href || (e.preventDefault(), t(n.href, n));
|
|
@@ -8981,7 +8988,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
8981
8988
|
})
|
|
8982
8989
|
})
|
|
8983
8990
|
});
|
|
8984
|
-
},
|
|
8991
|
+
}, gl = ({ img: e, size: t = "default" }) => {
|
|
8985
8992
|
let n = {
|
|
8986
8993
|
default: "h-10 w-auto",
|
|
8987
8994
|
primary: "h-24 w-auto mb-3",
|
|
@@ -9006,12 +9013,12 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9006
9013
|
className: "inline-flex",
|
|
9007
9014
|
children: c
|
|
9008
9015
|
});
|
|
9009
|
-
},
|
|
9016
|
+
}, _l = ({ primaryLogo: e, phoneLine: t, socials: n = [] }) => {
|
|
9010
9017
|
let r = t ? Zc(t) : "";
|
|
9011
9018
|
return /* @__PURE__ */ u("div", {
|
|
9012
9019
|
className: "space-y-6",
|
|
9013
9020
|
children: [
|
|
9014
|
-
/* @__PURE__ */ l(
|
|
9021
|
+
/* @__PURE__ */ l(gl, {
|
|
9015
9022
|
img: e,
|
|
9016
9023
|
size: "primary"
|
|
9017
9024
|
}),
|
|
@@ -9043,7 +9050,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9043
9050
|
}) : null
|
|
9044
9051
|
]
|
|
9045
9052
|
});
|
|
9046
|
-
},
|
|
9053
|
+
}, vl = ({ item: e, variant: t = "default" }) => {
|
|
9047
9054
|
let n = {
|
|
9048
9055
|
default: "text-xs mt-4 text-secondary/85 hover:underline",
|
|
9049
9056
|
mobile: "text-sm text-secondary hover:underline",
|
|
@@ -9062,7 +9069,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9062
9069
|
className: n,
|
|
9063
9070
|
children: r
|
|
9064
9071
|
});
|
|
9065
|
-
},
|
|
9072
|
+
}, yl = ({ columns: e }) => /* @__PURE__ */ l("div", {
|
|
9066
9073
|
className: "w-fit",
|
|
9067
9074
|
children: /* @__PURE__ */ l("div", {
|
|
9068
9075
|
className: "grid grid-cols-3 gap-y-8 gap-x-20",
|
|
@@ -9074,22 +9081,22 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9074
9081
|
children: n
|
|
9075
9082
|
}), /* @__PURE__ */ l("ul", {
|
|
9076
9083
|
className: "space-y-2",
|
|
9077
|
-
children: e.links.map((e, t) => /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(
|
|
9084
|
+
children: e.links.map((e, t) => /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(vl, { item: e }) }, `${n}-${Zc(e.label)}-${t}`))
|
|
9078
9085
|
})] }, `${n}-${t}`);
|
|
9079
9086
|
})
|
|
9080
9087
|
})
|
|
9081
|
-
}),
|
|
9088
|
+
}), bl = ({ links: e = [], utilityLink: t, disclaimerLines: n = [], copyrightLine: r }) => {
|
|
9082
9089
|
let i = r ? Zc(r) : "", a = n.length || i;
|
|
9083
9090
|
return /* @__PURE__ */ u("div", {
|
|
9084
9091
|
className: "border-t border-white/15 mt-4 pt-2 space-y-4",
|
|
9085
9092
|
children: [/* @__PURE__ */ u("div", {
|
|
9086
9093
|
className: "flex flex-wrap items-center gap-x-5 gap-y-2",
|
|
9087
|
-
children: [e.map((e, t) => /* @__PURE__ */ l(
|
|
9094
|
+
children: [e.map((e, t) => /* @__PURE__ */ l(vl, {
|
|
9088
9095
|
item: e,
|
|
9089
9096
|
variant: "legal"
|
|
9090
9097
|
}, `${Zc(e.label)}-${t}`)), t ? /* @__PURE__ */ l("div", {
|
|
9091
9098
|
className: "ml-auto",
|
|
9092
|
-
children: /* @__PURE__ */ l(
|
|
9099
|
+
children: /* @__PURE__ */ l(vl, {
|
|
9093
9100
|
item: t,
|
|
9094
9101
|
variant: "legal"
|
|
9095
9102
|
})
|
|
@@ -9107,12 +9114,12 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9107
9114
|
}) : null]
|
|
9108
9115
|
}) : null]
|
|
9109
9116
|
});
|
|
9110
|
-
},
|
|
9117
|
+
}, xl = ({ affiliateLogos: e = [], parentLogo: t, phoneLine: n }) => {
|
|
9111
9118
|
let r = n ? Zc(n) : "";
|
|
9112
9119
|
if (!e.length && !t && !r) return null;
|
|
9113
9120
|
let i = t ? /* @__PURE__ */ l("div", {
|
|
9114
9121
|
className: "ml-6 shrink-0",
|
|
9115
|
-
children: /* @__PURE__ */ l(
|
|
9122
|
+
children: /* @__PURE__ */ l(gl, {
|
|
9116
9123
|
img: t,
|
|
9117
9124
|
size: "parent"
|
|
9118
9125
|
})
|
|
@@ -9128,7 +9135,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9128
9135
|
children: [
|
|
9129
9136
|
/* @__PURE__ */ l("div", {
|
|
9130
9137
|
className: "flex flex-wrap items-center gap-x-6 gap-y-3",
|
|
9131
|
-
children: e.map((e, t) => /* @__PURE__ */ l(
|
|
9138
|
+
children: e.map((e, t) => /* @__PURE__ */ l(gl, {
|
|
9132
9139
|
img: e,
|
|
9133
9140
|
size: "affiliate"
|
|
9134
9141
|
}, `${e.label ? Zc(e.label) : ""}|${Zc(e.alt)}|${Qc(e.href)}|${Zc(e.src)}|${t}`))
|
|
@@ -9138,7 +9145,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9138
9145
|
]
|
|
9139
9146
|
})
|
|
9140
9147
|
});
|
|
9141
|
-
},
|
|
9148
|
+
}, Sl = ({ brand: e, columns: t, parentLogo: n, phoneLinePlacement: r = "brand", legal: i }) => {
|
|
9142
9149
|
let a = r === "logosBar";
|
|
9143
9150
|
return /* @__PURE__ */ l("footer", {
|
|
9144
9151
|
className: "bg-footBackground text-secondary pt-6",
|
|
@@ -9150,7 +9157,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9150
9157
|
children: [
|
|
9151
9158
|
/* @__PURE__ */ l("div", {
|
|
9152
9159
|
className: "md:col-span-4",
|
|
9153
|
-
children: /* @__PURE__ */ l(
|
|
9160
|
+
children: /* @__PURE__ */ l(_l, { ...a ? {
|
|
9154
9161
|
...e,
|
|
9155
9162
|
phoneLine: void 0
|
|
9156
9163
|
} : e })
|
|
@@ -9159,7 +9166,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9159
9166
|
className: "hidden md:col-span-8 md:block",
|
|
9160
9167
|
children: [/* @__PURE__ */ l("div", {
|
|
9161
9168
|
className: "flex justify-end",
|
|
9162
|
-
children: /* @__PURE__ */ l(
|
|
9169
|
+
children: /* @__PURE__ */ l(yl, { columns: t })
|
|
9163
9170
|
}), /* @__PURE__ */ l("div", { className: "block col-span-3" })]
|
|
9164
9171
|
}),
|
|
9165
9172
|
/* @__PURE__ */ l("div", {
|
|
@@ -9173,7 +9180,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9173
9180
|
children: n
|
|
9174
9181
|
}), /* @__PURE__ */ l("ul", {
|
|
9175
9182
|
className: "mt-3 space-y-2",
|
|
9176
|
-
children: e.links.map((e, t) => /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(
|
|
9183
|
+
children: e.links.map((e, t) => /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(vl, {
|
|
9177
9184
|
item: e,
|
|
9178
9185
|
variant: "mobile"
|
|
9179
9186
|
}) }, `${n}-${Zc(e.label)}-${t}`))
|
|
@@ -9183,21 +9190,21 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9183
9190
|
})
|
|
9184
9191
|
]
|
|
9185
9192
|
}),
|
|
9186
|
-
/* @__PURE__ */ l(
|
|
9193
|
+
/* @__PURE__ */ l(xl, {
|
|
9187
9194
|
affiliateLogos: e.affiliateLogos,
|
|
9188
9195
|
parentLogo: n,
|
|
9189
9196
|
phoneLine: a ? e.phoneLine : void 0
|
|
9190
9197
|
}),
|
|
9191
|
-
/* @__PURE__ */ l(
|
|
9198
|
+
/* @__PURE__ */ l(bl, { ...i })
|
|
9192
9199
|
]
|
|
9193
9200
|
})
|
|
9194
9201
|
});
|
|
9195
|
-
},
|
|
9202
|
+
}, Cl = (...e) => e.filter(Boolean).join(" "), wl = ({ imageSrc: e, imageAlt: t = "Banner image", children: n, sectionClassName: r = "w-full flex justify-center", bannerClassName: i = "relative h-80 md:h-119.25 w-full max-w-6xl overflow-hidden", imageClassName: a = "h-full w-full object-cover", overlayClassName: o = "absolute inset-0 flex", imageQuality: s = 90 }) => {
|
|
9196
9203
|
let c = e?.trim() ? e : "https://picsum.photos/1600/900";
|
|
9197
9204
|
return /* @__PURE__ */ l("section", {
|
|
9198
9205
|
className: r,
|
|
9199
9206
|
children: /* @__PURE__ */ u("div", {
|
|
9200
|
-
className:
|
|
9207
|
+
className: Cl("relative", i),
|
|
9201
9208
|
children: [/* @__PURE__ */ l(L, {
|
|
9202
9209
|
src: c,
|
|
9203
9210
|
alt: t,
|
|
@@ -9209,7 +9216,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9209
9216
|
})]
|
|
9210
9217
|
})
|
|
9211
9218
|
});
|
|
9212
|
-
},
|
|
9219
|
+
}, Tl = ({ imageSrc: t, imageAlt: n = "Where to buy", heading: r, productDropdownProps: i, searchInputProps: a, searchButtonLabel: o = "Search", onProductChange: s, onSearchSubmit: c }) => {
|
|
9213
9220
|
let d = !!i?.options?.length, [f, p] = e.useState(i?.value ?? ""), [m, h] = e.useState(a.value ?? "");
|
|
9214
9221
|
e.useEffect(() => {
|
|
9215
9222
|
p(i?.value ?? "");
|
|
@@ -9220,7 +9227,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9220
9227
|
let t = e.target.value;
|
|
9221
9228
|
p(t), s?.({ productValue: t });
|
|
9222
9229
|
};
|
|
9223
|
-
return /* @__PURE__ */ l(
|
|
9230
|
+
return /* @__PURE__ */ l(wl, {
|
|
9224
9231
|
imageSrc: t,
|
|
9225
9232
|
imageAlt: n,
|
|
9226
9233
|
bannerClassName: "relative h-80 w-full overflow-hidden md:h-96",
|
|
@@ -9270,7 +9277,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9270
9277
|
})]
|
|
9271
9278
|
})
|
|
9272
9279
|
});
|
|
9273
|
-
},
|
|
9280
|
+
}, El = ({ imageSrc: e, imageAlt: t = "Call To Action Hero", heading: n, subheading: r, body: i, eyebrow: a, ctas: o = [] }) => /* @__PURE__ */ l(wl, {
|
|
9274
9281
|
imageSrc: e,
|
|
9275
9282
|
imageAlt: t,
|
|
9276
9283
|
sectionClassName: "w-full",
|
|
@@ -9283,7 +9290,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9283
9290
|
eyebrow: a,
|
|
9284
9291
|
ctas: o
|
|
9285
9292
|
})
|
|
9286
|
-
}),
|
|
9293
|
+
}), Dl = ({ imageSrc: e, imageAlt: t = "Featured article banner", heading: n, subheading: r, articleCategory: i, ctaLabel: a, onCtaClick: o }) => /* @__PURE__ */ l(wl, {
|
|
9287
9294
|
imageSrc: e,
|
|
9288
9295
|
imageAlt: t,
|
|
9289
9296
|
sectionClassName: "px-4 md:px-0 md:mx-auto mb-16 md:mb-20 flex w-full max-w-6xl",
|
|
@@ -9297,7 +9304,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9297
9304
|
ctaLabel: a,
|
|
9298
9305
|
onCtaClick: o
|
|
9299
9306
|
})
|
|
9300
|
-
}),
|
|
9307
|
+
}), Ol = ({ items: e, value: t, onChange: n, renderTab: r, className: c = "", durationMs: d = 700, thicknessClassName: f = "h-[3px]", baselineClassName: p = "h-px" }) => {
|
|
9301
9308
|
let m = o(null), h = o([]), [g, _] = s({
|
|
9302
9309
|
left: 0,
|
|
9303
9310
|
width: 0
|
|
@@ -9373,7 +9380,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9373
9380
|
]
|
|
9374
9381
|
})
|
|
9375
9382
|
});
|
|
9376
|
-
},
|
|
9383
|
+
}, kl = (e) => e.id || e.href || e.label, Al = ({ items: e, startIndex: t, desktopVisibleCount: n = e.length, activeIndex: r, setActiveIndex: i, canPrev: a, canNext: o, onPrev: s, onNext: c, loadedIds: d, favoriteIds: f, showFavorites: p = !0, onLoaded: m, onToggleFav: h, onItemClick: g, getItemId: _ = kl }) => e.length ? /* @__PURE__ */ u("div", {
|
|
9377
9384
|
className: "mt-4 relative",
|
|
9378
9385
|
children: [
|
|
9379
9386
|
/* @__PURE__ */ l("button", {
|
|
@@ -9436,13 +9443,13 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9436
9443
|
})
|
|
9437
9444
|
})
|
|
9438
9445
|
]
|
|
9439
|
-
}) : null,
|
|
9446
|
+
}) : null, jl = 4, Ml = (e) => {
|
|
9440
9447
|
e.forEach((e) => {
|
|
9441
9448
|
if (!e) return;
|
|
9442
9449
|
let t = new window.Image();
|
|
9443
9450
|
t.decoding = "async", t.src = e;
|
|
9444
9451
|
});
|
|
9445
|
-
},
|
|
9452
|
+
}, Nl = ({ heading: t, body: n, TabsWithColumns: r = [], favoriteIds: i = [], showFavorites: o = !0, onFavoriteToggle: c, onItemClick: d }) => {
|
|
9446
9453
|
let [f, p] = s(r?.[0]?.label ?? null);
|
|
9447
9454
|
e.useEffect(() => {
|
|
9448
9455
|
if (!r?.length) {
|
|
@@ -9458,7 +9465,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9458
9465
|
e.useEffect(() => {
|
|
9459
9466
|
_(0), b(null);
|
|
9460
9467
|
}, [f]);
|
|
9461
|
-
let x = g > 0, S = g +
|
|
9468
|
+
let x = g > 0, S = g + jl < h.length, C = () => _((e) => Math.max(0, e - 1)), w = () => _((e) => Math.min(Math.max(h.length - jl, 0), e + 1)), [T, E] = s(/* @__PURE__ */ new Set()), D = (e) => {
|
|
9462
9469
|
E((t) => {
|
|
9463
9470
|
if (t.has(e)) return t;
|
|
9464
9471
|
let n = new Set(t);
|
|
@@ -9468,7 +9475,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9468
9475
|
e.useEffect(() => {
|
|
9469
9476
|
E(/* @__PURE__ */ new Set());
|
|
9470
9477
|
}, [f]), e.useEffect(() => {
|
|
9471
|
-
|
|
9478
|
+
Ml(h.slice(g, g + jl * 2).map((e) => e.source).filter(Boolean));
|
|
9472
9479
|
}, [h, g]);
|
|
9473
9480
|
let O = e.useMemo(() => new Set(i), [i]);
|
|
9474
9481
|
return /* @__PURE__ */ l("section", {
|
|
@@ -9494,16 +9501,16 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9494
9501
|
})
|
|
9495
9502
|
}) : null, /* @__PURE__ */ u("div", {
|
|
9496
9503
|
className: "mx-auto w-full px-4 md:px-0",
|
|
9497
|
-
children: [/* @__PURE__ */ l(
|
|
9504
|
+
children: [/* @__PURE__ */ l(Ol, {
|
|
9498
9505
|
items: m,
|
|
9499
9506
|
value: f ?? m[0]?.label ?? "",
|
|
9500
9507
|
onChange: (e) => p(e),
|
|
9501
9508
|
className: "mb-2",
|
|
9502
9509
|
durationMs: 700
|
|
9503
|
-
}), /* @__PURE__ */ l(
|
|
9510
|
+
}), /* @__PURE__ */ l(Al, {
|
|
9504
9511
|
items: h,
|
|
9505
9512
|
startIndex: g,
|
|
9506
|
-
desktopVisibleCount:
|
|
9513
|
+
desktopVisibleCount: jl,
|
|
9507
9514
|
activeIndex: y,
|
|
9508
9515
|
setActiveIndex: b,
|
|
9509
9516
|
canPrev: x,
|
|
@@ -9524,16 +9531,16 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9524
9531
|
})
|
|
9525
9532
|
})
|
|
9526
9533
|
});
|
|
9527
|
-
},
|
|
9534
|
+
}, Pl = (e) => e === 1 ? "md:grid-cols-1" : e === 2 ? "md:grid-cols-2" : "md:grid-cols-3", Fl = (e, t) => e === "vertical" && t === 2 ? "grid-cols-2" : e === "vertical" && t === 3 ? "grid-cols-3" : "grid-cols-1", Il = (e) => e === "underBanner" ? "mt-10 md:mt-16" : "", Ll = ({ title: e, body: t, cards: n = [], spacing: r = "default", footerBlurb: i, footerButtonLabel: a, footerButtonHref: o, onFooterButtonClick: s }) => {
|
|
9528
9535
|
if (!n.length && !e && !t && !i && !a) return null;
|
|
9529
9536
|
let c = () => {
|
|
9530
9537
|
a && s?.({
|
|
9531
9538
|
buttonLabel: a,
|
|
9532
9539
|
buttonHref: o
|
|
9533
9540
|
});
|
|
9534
|
-
}, d =
|
|
9541
|
+
}, d = Pl(n.length), f = Fl(n[0]?.cardStyle, n.length);
|
|
9535
9542
|
return /* @__PURE__ */ l("section", {
|
|
9536
|
-
className: `flex justify-center ${
|
|
9543
|
+
className: `flex justify-center ${Il(r)}`,
|
|
9537
9544
|
children: /* @__PURE__ */ u("div", {
|
|
9538
9545
|
className: "w-full max-w-6xl px-4 mb-16 md:mb-20 md:px-0",
|
|
9539
9546
|
children: [
|
|
@@ -9574,7 +9581,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9574
9581
|
]
|
|
9575
9582
|
})
|
|
9576
9583
|
});
|
|
9577
|
-
},
|
|
9584
|
+
}, Rl = ({ heading: e, body: t, cards: n, className: r = "" }) => /* @__PURE__ */ l("section", {
|
|
9578
9585
|
className: `w-full bg-white ${r}`,
|
|
9579
9586
|
children: /* @__PURE__ */ u("div", {
|
|
9580
9587
|
className: "mx-auto max-w-6xl mb-16 md:mb-30 px-4 md:px-0",
|
|
@@ -9595,7 +9602,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9595
9602
|
children: n.map((e, t) => /* @__PURE__ */ l(sc, { ...e }, `${e.title}-${t}`))
|
|
9596
9603
|
})]
|
|
9597
9604
|
})
|
|
9598
|
-
}),
|
|
9605
|
+
}), zl = ({ title: e = "Sample Order Summary", items: t, sampleCountLabel: n, note: r = "No payment is required for sample requests." }) => {
|
|
9599
9606
|
let i = n ?? `${t.length} ${t.length === 1 ? "sample" : "samples"}`;
|
|
9600
9607
|
return /* @__PURE__ */ u("aside", {
|
|
9601
9608
|
className: "rounded-lg border border-secondaryActive bg-white p-6",
|
|
@@ -9636,28 +9643,43 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9636
9643
|
}) : null
|
|
9637
9644
|
]
|
|
9638
9645
|
});
|
|
9639
|
-
}, $ = ({ id: e, label: t, errorMessage: n, hasError:
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
className: "flex
|
|
9643
|
-
children: [
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
|
|
9659
|
-
|
|
9660
|
-
|
|
9646
|
+
}, $ = ({ id: e, label: t, errorMessage: n, hasError: i = !1, linkText: a, linkHref: o, onLinkClick: s, ariaDescribedBy: c, ...d }) => {
|
|
9647
|
+
let f = r(), p = i && !!n, m = `${e || f}-field-error`, h = [c, p ? m : void 0].filter(Boolean).join(" ") || void 0;
|
|
9648
|
+
return /* @__PURE__ */ u("div", {
|
|
9649
|
+
className: "flex w-full flex-col gap-2",
|
|
9650
|
+
children: [
|
|
9651
|
+
t || a ? /* @__PURE__ */ u("div", {
|
|
9652
|
+
className: "flex items-center justify-between gap-4",
|
|
9653
|
+
children: [t ? /* @__PURE__ */ l(v, {
|
|
9654
|
+
as: "label",
|
|
9655
|
+
htmlFor: e,
|
|
9656
|
+
id: p ? m : void 0,
|
|
9657
|
+
className: `text-sm ${i ? "text-accent!" : "text-primary"}`,
|
|
9658
|
+
children: p ? n : t
|
|
9659
|
+
}) : /* @__PURE__ */ l("span", {}), a ? /* @__PURE__ */ l(v, {
|
|
9660
|
+
as: "a",
|
|
9661
|
+
href: o || "#",
|
|
9662
|
+
onClick: s,
|
|
9663
|
+
className: "text-xs text-secondaryActive underline underline-offset-2",
|
|
9664
|
+
children: a
|
|
9665
|
+
}) : null]
|
|
9666
|
+
}) : null,
|
|
9667
|
+
/* @__PURE__ */ l(Zo, {
|
|
9668
|
+
id: e,
|
|
9669
|
+
hasError: i,
|
|
9670
|
+
...d,
|
|
9671
|
+
ariaDescribedBy: h
|
|
9672
|
+
}),
|
|
9673
|
+
!t && p ? /* @__PURE__ */ l(v, {
|
|
9674
|
+
id: m,
|
|
9675
|
+
role: "alert",
|
|
9676
|
+
variant: "free",
|
|
9677
|
+
className: "text-sm text-accent",
|
|
9678
|
+
children: n
|
|
9679
|
+
}) : null
|
|
9680
|
+
]
|
|
9681
|
+
});
|
|
9682
|
+
}, Bl = ({ title: e = "Personal & Project Information", idPrefix: t = "salesforce-customer", firstName: n = "", lastName: r = "", profession: i = "", companyName: a = "", projectType: o = "", projectSquareMetres: s = "", projectName: c = "", projectDetails: d = "", phoneNumber: f = "", email: p = "", confirmEmail: m = "", firstNamePlaceholder: h = "First Name*", lastNamePlaceholder: g = "Last Name*", professionPlaceholder: _ = "Profession*", companyNamePlaceholder: y = "Company Name*", projectTypePlaceholder: b = "Project Type", projectSquareMetresPlaceholder: x = "Project Square Metres", projectNamePlaceholder: S = "Project Name", projectDetailsPlaceholder: C = "Project Details", phoneNumberPlaceholder: w = "Phone Number*", emailPlaceholder: T = "Email*", confirmEmailPlaceholder: E = "Confirm Email*", professionOptions: D = [], projectTypeOptions: O = [], projectSquareMetresOptions: k = [], errors: A = {}, onFirstNameChange: j, onLastNameChange: M, onProfessionChange: N, onCompanyNameChange: P, onProjectTypeChange: F, onProjectSquareMetresChange: I, onProjectNameChange: L, onProjectDetailsChange: R, onPhoneNumberChange: z, onEmailChange: B, onConfirmEmailChange: V }) => /* @__PURE__ */ u("section", {
|
|
9661
9683
|
className: "flex flex-col gap-6",
|
|
9662
9684
|
children: [/* @__PURE__ */ l(v, {
|
|
9663
9685
|
as: "h2",
|
|
@@ -9783,17 +9805,17 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9783
9805
|
})
|
|
9784
9806
|
]
|
|
9785
9807
|
})]
|
|
9786
|
-
}),
|
|
9787
|
-
let [_, y] = e.useState(() =>
|
|
9808
|
+
}), Vl = (e, t, n) => Math.max(t, Math.min(n, e)), Hl = (e) => ["h-12 w-12 border-secondaryActive!", e ? "text-primary! hover:text-accent!" : "border-secondaryHover! text-tertiary!"].join(" "), Ul = ({ initialQuantity: t = 1, errorMessage: n, minQuantity: r = 1, maxQuantity: i = 99, onAddToWishlist: a, onAddToCart: o, onQuantityChange: s, wishlistLabel: d = "Add To Wishlist", cartLabel: f = "Add to Cart", decreaseQuantityLabel: p = "Decrease quantity", increaseQuantityLabel: m = "Increase quantity", showFavorites: h = !0, className: g = "" }) => {
|
|
9809
|
+
let [_, y] = e.useState(() => Vl(t, r, i));
|
|
9788
9810
|
e.useEffect(() => {
|
|
9789
|
-
y(
|
|
9811
|
+
y(Vl(t, r, i));
|
|
9790
9812
|
}, [
|
|
9791
9813
|
t,
|
|
9792
9814
|
r,
|
|
9793
9815
|
i
|
|
9794
9816
|
]);
|
|
9795
9817
|
let b = (e) => {
|
|
9796
|
-
let t =
|
|
9818
|
+
let t = Vl(e, r, i);
|
|
9797
9819
|
y(t), s?.(t);
|
|
9798
9820
|
}, x = () => b(_ - 1), S = () => b(_ + 1), C = _ > r, w = _ < i, T = () => o(_), E = /* @__PURE__ */ u("div", {
|
|
9799
9821
|
className: "flex shrink-0 items-stretch gap-3",
|
|
@@ -9807,7 +9829,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9807
9829
|
type: "button",
|
|
9808
9830
|
disabled: !C,
|
|
9809
9831
|
onClick: x,
|
|
9810
|
-
className:
|
|
9832
|
+
className: Hl(C)
|
|
9811
9833
|
}),
|
|
9812
9834
|
/* @__PURE__ */ l("div", {
|
|
9813
9835
|
className: "flex min-w-10 items-center justify-center",
|
|
@@ -9826,7 +9848,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9826
9848
|
type: "button",
|
|
9827
9849
|
disabled: !w,
|
|
9828
9850
|
onClick: S,
|
|
9829
|
-
className:
|
|
9851
|
+
className: Hl(w)
|
|
9830
9852
|
})
|
|
9831
9853
|
]
|
|
9832
9854
|
}), D = /* @__PURE__ */ l(P, {
|
|
@@ -9874,7 +9896,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9874
9896
|
})]
|
|
9875
9897
|
})]
|
|
9876
9898
|
});
|
|
9877
|
-
},
|
|
9899
|
+
}, Wl = ({ heading: e, items: t, value: n, onChange: r }) => {
|
|
9878
9900
|
if (!t?.length) return null;
|
|
9879
9901
|
let i = (e) => {
|
|
9880
9902
|
e.disabled || r(e.value, e);
|
|
@@ -9907,7 +9929,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9907
9929
|
}, e.id))
|
|
9908
9930
|
})]
|
|
9909
9931
|
});
|
|
9910
|
-
},
|
|
9932
|
+
}, Gl = (e) => {
|
|
9911
9933
|
let { title: t, decor: n, description: r, colourMatching: i, colourMatchingLabel: a, patternRepeat: o, onDownloadSwatch: s, onDownloadFullSheet: c, downloadSwatchLabel: d = "Download Swatch", downloadFullSheetLabel: f = "Download Full Sheet", tabs: p = ["Sample", "Buy Now"], tabLabels: m, labels: h, activeTab: g, onTabChange: _, productOptions: y = [], gradeOptions: b = [], textureOptions: x = [], sizeOptions: S = [], selectedProduct: C, selectedGrade: w, selectedTexture: T, selectedSize: E, onQuantityChange: D, availabilityHref: O, availabilityLabel: k = "View full product availability and information", notReturnableText: A = "This item is not returnable.", returnPolicyHref: j, returnPolicyLabel: M = "View return policy", onPurchaseInfoLinkClick: N, priceLabel: F, initialQuantity: I = 1, errorMessage: L, minQuantity: R = 1, maxQuantity: z = 99, showCartActions: B = !0, showFavorites: V = !0, actionMode: ee = "cart", contactActions: te, onAddToWishlist: ne, onAddToCart: re, onContactActionClick: ie, mobileMediaSlot: ae } = e, H = p.map((e) => ({
|
|
9912
9934
|
label: m?.[e] ?? e,
|
|
9913
9935
|
value: e
|
|
@@ -9983,7 +10005,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
9983
10005
|
}) : null,
|
|
9984
10006
|
se ? /* @__PURE__ */ l("div", {
|
|
9985
10007
|
className: "mb-5",
|
|
9986
|
-
children: /* @__PURE__ */ l(
|
|
10008
|
+
children: /* @__PURE__ */ l(Ol, {
|
|
9987
10009
|
items: H,
|
|
9988
10010
|
value: g,
|
|
9989
10011
|
onChange: _,
|
|
@@ -10006,7 +10028,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10006
10028
|
variant: "bold",
|
|
10007
10029
|
className: "mb-2 text-sm md:text-base md:font-medium!",
|
|
10008
10030
|
children: [h?.product ?? "Product", ":"]
|
|
10009
|
-
}), /* @__PURE__ */ l(
|
|
10031
|
+
}), /* @__PURE__ */ l(Wl, {
|
|
10010
10032
|
items: y,
|
|
10011
10033
|
value: C ?? void 0,
|
|
10012
10034
|
onChange: W(y)
|
|
@@ -10016,7 +10038,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10016
10038
|
variant: "bold",
|
|
10017
10039
|
className: "mb-2 text-sm md:text-base md:font-medium!",
|
|
10018
10040
|
children: [h?.grade ?? "Grade", ":"]
|
|
10019
|
-
}), /* @__PURE__ */ l(
|
|
10041
|
+
}), /* @__PURE__ */ l(Wl, {
|
|
10020
10042
|
items: b,
|
|
10021
10043
|
value: w ?? void 0,
|
|
10022
10044
|
onChange: W(b)
|
|
@@ -10026,7 +10048,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10026
10048
|
variant: "bold",
|
|
10027
10049
|
className: "mb-2 text-sm md:text-base md:font-medium!",
|
|
10028
10050
|
children: [h?.texture ?? "Texture", ":"]
|
|
10029
|
-
}), /* @__PURE__ */ l(
|
|
10051
|
+
}), /* @__PURE__ */ l(Wl, {
|
|
10030
10052
|
items: x,
|
|
10031
10053
|
value: T ?? void 0,
|
|
10032
10054
|
onChange: W(x)
|
|
@@ -10036,7 +10058,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10036
10058
|
variant: "bold",
|
|
10037
10059
|
className: "mb-2 text-sm md:text-base md:font-medium!",
|
|
10038
10060
|
children: [h?.size ?? "Size", ":"]
|
|
10039
|
-
}), /* @__PURE__ */ l(
|
|
10061
|
+
}), /* @__PURE__ */ l(Wl, {
|
|
10040
10062
|
items: S,
|
|
10041
10063
|
value: E ?? void 0,
|
|
10042
10064
|
onChange: W(S)
|
|
@@ -10070,7 +10092,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10070
10092
|
}) : null
|
|
10071
10093
|
]
|
|
10072
10094
|
}),
|
|
10073
|
-
oe ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
10095
|
+
oe ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(Ul, {
|
|
10074
10096
|
errorMessage: L,
|
|
10075
10097
|
initialQuantity: I,
|
|
10076
10098
|
minQuantity: R,
|
|
@@ -10109,16 +10131,16 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10109
10131
|
})
|
|
10110
10132
|
}) : null]
|
|
10111
10133
|
});
|
|
10112
|
-
},
|
|
10113
|
-
let h = t?.length ?? 0, [g, _] = e.useState(() =>
|
|
10134
|
+
}, Kl = (e, t) => Math.max(0, Math.min(e, t - 1)), ql = ({ items: t, initialIndex: n = 0, loop: r = !0, showArrows: i = !0, arrowPosition: a = "sides", onSelect: o, renderItem: s, className: d = "", trackClassName: f = "", ariaLabel: p = "Carousel", header: m }) => {
|
|
10135
|
+
let h = t?.length ?? 0, [g, _] = e.useState(() => Kl(n, h || 1)), [v, y] = e.useState(() => Kl(n, h || 1));
|
|
10114
10136
|
if (e.useEffect(() => {
|
|
10115
|
-
h > 0 && (_((e) =>
|
|
10137
|
+
h > 0 && (_((e) => Kl(e, h)), y((e) => Kl(e, h)));
|
|
10116
10138
|
}, [h]), h === 0) return null;
|
|
10117
10139
|
let b = (e) => {
|
|
10118
|
-
let n =
|
|
10140
|
+
let n = Kl(e, h);
|
|
10119
10141
|
_(n), o?.(n, t[n]);
|
|
10120
10142
|
}, x = (e) => {
|
|
10121
|
-
y(r ? (e + h) % h :
|
|
10143
|
+
y(r ? (e + h) % h : Kl(e, h));
|
|
10122
10144
|
}, C = () => x(v - 1), w = () => x(v + 1), T = h > 1, E = i && T && a === "top-right", D = i && T && a === "sides";
|
|
10123
10145
|
return /* @__PURE__ */ u("div", {
|
|
10124
10146
|
className: ["relative w-full", d].join(" "),
|
|
@@ -10211,25 +10233,25 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10211
10233
|
})
|
|
10212
10234
|
]
|
|
10213
10235
|
});
|
|
10214
|
-
},
|
|
10236
|
+
}, Jl = (e, t) => Math.max(0, Math.min(e, t - 1)), Yl = (e) => typeof e == "string" ? e.replace(/^http:\/\//i, "https://") : "", Xl = ({ slides: t, initialIndex: n = 0, text: r, fallbackImage: i }) => {
|
|
10215
10237
|
let a = t ?? [], o = i ? {
|
|
10216
10238
|
id: "fallback-image",
|
|
10217
10239
|
image: i
|
|
10218
10240
|
} : null, s = a;
|
|
10219
10241
|
!s.length && o && (s = [o]);
|
|
10220
|
-
let c = s.length, [d, f] = e.useState(() =>
|
|
10242
|
+
let c = s.length, [d, f] = e.useState(() => Jl(n, c || 1)), [p, m] = e.useState(() => /* @__PURE__ */ new Set());
|
|
10221
10243
|
if (e.useEffect(() => {
|
|
10222
|
-
c > 0 && f((e) =>
|
|
10244
|
+
c > 0 && f((e) => Jl(e, c));
|
|
10223
10245
|
}, [c]), c === 0) return null;
|
|
10224
10246
|
let h = s[d];
|
|
10225
10247
|
if (!h?.image?.src && !i?.src) return null;
|
|
10226
|
-
let g = (e, t) => (!e || p.has(e) || p.has(
|
|
10248
|
+
let g = (e, t) => (!e || p.has(e) || p.has(Yl(e))) && i?.src ? i : {
|
|
10227
10249
|
src: e ?? "",
|
|
10228
10250
|
alt: t ?? ""
|
|
10229
|
-
}, _ = g(h?.image?.src, h?.image?.alt), y =
|
|
10251
|
+
}, _ = g(h?.image?.src, h?.image?.alt), y = Yl(_.src), b = _.alt ?? "", x = (e) => {
|
|
10230
10252
|
!e || i?.src === e || m((t) => {
|
|
10231
10253
|
let n = new Set(t);
|
|
10232
|
-
return n.add(e), n.add(
|
|
10254
|
+
return n.add(e), n.add(Yl(e)), n;
|
|
10233
10255
|
});
|
|
10234
10256
|
};
|
|
10235
10257
|
return /* @__PURE__ */ u("section", {
|
|
@@ -10249,7 +10271,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10249
10271
|
}),
|
|
10250
10272
|
/* @__PURE__ */ l("div", {
|
|
10251
10273
|
className: "mt-4",
|
|
10252
|
-
children: /* @__PURE__ */ l(
|
|
10274
|
+
children: /* @__PURE__ */ l(ql, {
|
|
10253
10275
|
items: s,
|
|
10254
10276
|
initialIndex: d,
|
|
10255
10277
|
loop: !0,
|
|
@@ -10257,7 +10279,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10257
10279
|
ariaLabel: "Thumbnail carousel",
|
|
10258
10280
|
onSelect: (e) => f(e),
|
|
10259
10281
|
renderItem: ({ item: e, isActive: t, select: n, index: r }) => {
|
|
10260
|
-
let i = g(e.thumbnail?.src ?? e.image?.src, e.thumbnail?.alt ?? e.image?.alt), a =
|
|
10282
|
+
let i = g(e.thumbnail?.src ?? e.image?.src, e.thumbnail?.alt ?? e.image?.alt), a = Yl(i.src), o = i.alt ?? "";
|
|
10261
10283
|
return a ? /* @__PURE__ */ l("button", {
|
|
10262
10284
|
type: "button",
|
|
10263
10285
|
onClick: n,
|
|
@@ -10295,7 +10317,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10295
10317
|
})
|
|
10296
10318
|
]
|
|
10297
10319
|
});
|
|
10298
|
-
},
|
|
10320
|
+
}, Zl = ({ carousel: e }) => {
|
|
10299
10321
|
let t = !!e?.slides?.length, n = e?.fallbackImage;
|
|
10300
10322
|
if (!t && !n?.src) return /* @__PURE__ */ l("div", {
|
|
10301
10323
|
className: "w-full min-h-96",
|
|
@@ -10304,30 +10326,30 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10304
10326
|
let { slides: r = [], initialIndex: i = 0, text: a } = e ?? {};
|
|
10305
10327
|
return /* @__PURE__ */ l("div", {
|
|
10306
10328
|
className: "w-full h-full min-h-0 md:min-h-96",
|
|
10307
|
-
children: /* @__PURE__ */ l(
|
|
10329
|
+
children: /* @__PURE__ */ l(Xl, {
|
|
10308
10330
|
slides: r,
|
|
10309
10331
|
initialIndex: i,
|
|
10310
10332
|
text: a,
|
|
10311
10333
|
fallbackImage: n
|
|
10312
10334
|
})
|
|
10313
10335
|
});
|
|
10314
|
-
},
|
|
10336
|
+
}, Ql = (e) => {
|
|
10315
10337
|
let t = e.find((e) => e.active);
|
|
10316
10338
|
if (t) return t.value ?? t.id ?? null;
|
|
10317
10339
|
let n = e[0];
|
|
10318
10340
|
return n ? n.value ?? n.id ?? null : null;
|
|
10319
|
-
},
|
|
10341
|
+
}, $l = (e, t) => !!(t && e.some((e) => (e.value ?? e.id) === t)), eu = (e) => {
|
|
10320
10342
|
let t = /* @__PURE__ */ new Set();
|
|
10321
10343
|
return e.reduce((e, n) => !n.value || t.has(n.value) ? e : (t.add(n.value), e.push({
|
|
10322
10344
|
id: n.value,
|
|
10323
10345
|
value: n.value,
|
|
10324
10346
|
label: n.label || n.value
|
|
10325
10347
|
}), e), []);
|
|
10326
|
-
},
|
|
10348
|
+
}, tu = (e, t) => !e || !t ? null : `${e}x${t}`, nu = (e, t, n) => Math.max(t, Math.min(n, e)), ru = (e, t = "USD") => new Intl.NumberFormat("en-US", {
|
|
10327
10349
|
style: "currency",
|
|
10328
10350
|
currency: t
|
|
10329
|
-
}).format(e),
|
|
10330
|
-
let { sku: n, decor: r, title: i, description: a, colourMatching: o, colourMatchingLabel: s, patternRepeat: c, onDownloadSwatch: d, onDownloadFullSheet: f, downloadSwatchLabel: p, downloadFullSheetLabel: m, carousel: h, tabs: g = ["Sample", "Buy Now"], tabLabels: _, labels: v, initialTab: y = "Sample", tabOptions: b, productOptions: x = [], sizeOptions: S = [], variants: C = [], currency: w, initialQuantity: T = 1, errorMessage: E, minQuantity: D = 1, maxQuantity: O = 99, showFavorites: k = !0, actionMode: A = "cart", contactActions: j, onAddToWishlist: M, onAddToCart: N, onSelectionChange: P, onContactActionClick: F, availabilityHref: I, availabilityLabel: L = "View full product availability and information", returnPolicyHref: R, returnPolicyLabel: z = "View return policy", notReturnableText: B = "This item is not returnable.", onPurchaseInfoLinkClick: V } = t, ee = Array.isArray(g) && g.length ? g : ["Sample", "Buy Now"], te = b?.Sample, ne = b?.["Buy Now"], re = te?.productOptions ?? x ?? [], ie = te?.sizeOptions ?? S ?? [], ae = ne?.productOptions ?? x ?? [], H =
|
|
10351
|
+
}).format(e), iu = (e) => !!e?.length, au = (e, t) => iu(e) && iu(t), ou = (e = []) => e.some((e) => !!e.sku && !!e.rangeId && !!e.grade && !!e.texture && !!e.widthIn && !!e.lengthIn), su = (t) => {
|
|
10352
|
+
let { sku: n, decor: r, title: i, description: a, colourMatching: o, colourMatchingLabel: s, patternRepeat: c, onDownloadSwatch: d, onDownloadFullSheet: f, downloadSwatchLabel: p, downloadFullSheetLabel: m, carousel: h, tabs: g = ["Sample", "Buy Now"], tabLabels: _, labels: v, initialTab: y = "Sample", tabOptions: b, productOptions: x = [], sizeOptions: S = [], variants: C = [], currency: w, initialQuantity: T = 1, errorMessage: E, minQuantity: D = 1, maxQuantity: O = 99, showFavorites: k = !0, actionMode: A = "cart", contactActions: j, onAddToWishlist: M, onAddToCart: N, onSelectionChange: P, onContactActionClick: F, availabilityHref: I, availabilityLabel: L = "View full product availability and information", returnPolicyHref: R, returnPolicyLabel: z = "View return policy", notReturnableText: B = "This item is not returnable.", onPurchaseInfoLinkClick: V } = t, ee = Array.isArray(g) && g.length ? g : ["Sample", "Buy Now"], te = b?.Sample, ne = b?.["Buy Now"], re = te?.productOptions ?? x ?? [], ie = te?.sizeOptions ?? S ?? [], ae = ne?.productOptions ?? x ?? [], H = au(re, ie), oe = iu(ae) && ou(C), U = ee.filter((e) => e === "Sample" ? H : e === "Buy Now" ? oe : !0), se = U[0] ?? "Sample", [W, ce] = e.useState(U.includes(y) ? y : se);
|
|
10331
10353
|
e.useEffect(() => {
|
|
10332
10354
|
if (!U.length) {
|
|
10333
10355
|
ce("Sample");
|
|
@@ -10340,37 +10362,37 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10340
10362
|
se
|
|
10341
10363
|
]);
|
|
10342
10364
|
let le = b?.[W], ue = !!le, de = le?.minQuantity ?? D, fe = le?.maxQuantity ?? O, pe = le?.productOptions ?? (ue ? [] : x) ?? [], me = W === "Buy Now", [G, he] = e.useState(() => ({
|
|
10343
|
-
product:
|
|
10365
|
+
product: Ql(pe),
|
|
10344
10366
|
grade: null,
|
|
10345
10367
|
texture: null,
|
|
10346
10368
|
size: null
|
|
10347
|
-
})), ge = e.useRef(!1), K =
|
|
10369
|
+
})), ge = e.useRef(!1), K = $l(pe, G.product) ? G.product : Ql(pe), _e = me && K ? C.filter((e) => e.rangeId === K) : [], ve = eu(_e.map((e) => ({
|
|
10348
10370
|
value: e.grade,
|
|
10349
10371
|
label: e.grade
|
|
10350
|
-
}))), ye = me ? ve : le?.gradeOptions ?? [], be =
|
|
10372
|
+
}))), ye = me ? ve : le?.gradeOptions ?? [], be = $l(ye, G.grade) ? G.grade : Ql(ye), xe = be ? _e.filter((e) => e.grade === be) : _e, Se = eu(xe.map((e) => ({
|
|
10351
10373
|
value: e.texture,
|
|
10352
10374
|
label: e.finish || e.texture
|
|
10353
|
-
}))), Ce = me ? Se : le?.textureOptions ?? [], q =
|
|
10354
|
-
let t =
|
|
10375
|
+
}))), Ce = me ? Se : le?.textureOptions ?? [], q = $l(Ce, G.texture) ? G.texture : Ql(Ce), we = q ? xe.filter((e) => e.texture === q) : xe, Te = new Map((le?.sizeOptions ?? S ?? []).map((e) => [e.value ?? e.id, e.label])), Ee = eu(we.map((e) => {
|
|
10376
|
+
let t = tu(e.widthIn, e.lengthIn) ?? void 0;
|
|
10355
10377
|
return {
|
|
10356
10378
|
value: t,
|
|
10357
10379
|
label: t ? Te.get(t) ?? t : void 0
|
|
10358
10380
|
};
|
|
10359
|
-
})), De = me ? Ee : le?.sizeOptions ?? (ue ? [] : S) ?? [], Oe =
|
|
10381
|
+
})), De = me ? Ee : le?.sizeOptions ?? (ue ? [] : S) ?? [], Oe = $l(De, G.size) ? G.size : Ql(De);
|
|
10360
10382
|
e.useEffect(() => {
|
|
10361
10383
|
if (!ge.current) {
|
|
10362
10384
|
ge.current = !0;
|
|
10363
10385
|
return;
|
|
10364
10386
|
}
|
|
10365
10387
|
he({
|
|
10366
|
-
product:
|
|
10367
|
-
grade:
|
|
10368
|
-
texture:
|
|
10369
|
-
size:
|
|
10388
|
+
product: Ql(pe),
|
|
10389
|
+
grade: Ql(ye),
|
|
10390
|
+
texture: Ql(Ce),
|
|
10391
|
+
size: Ql(De)
|
|
10370
10392
|
});
|
|
10371
10393
|
}, [W]), e.useEffect(() => {
|
|
10372
10394
|
he((e) => {
|
|
10373
|
-
let t = e.product && pe.some((t) => (t.value ?? t.id) === e.product) ? e.product :
|
|
10395
|
+
let t = e.product && pe.some((t) => (t.value ?? t.id) === e.product) ? e.product : Ql(pe), n = e.grade && ye.some((t) => (t.value ?? t.id) === e.grade) ? e.grade : Ql(ye), r = e.texture && Ce.some((t) => (t.value ?? t.id) === e.texture) ? e.texture : Ql(Ce), i = e.size && De.some((t) => (t.value ?? t.id) === e.size) ? e.size : Ql(De);
|
|
10374
10396
|
return e.product === t && e.grade === n && e.texture === r && e.size === i ? e : {
|
|
10375
10397
|
product: t,
|
|
10376
10398
|
grade: n,
|
|
@@ -10392,7 +10414,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10392
10414
|
texture: q,
|
|
10393
10415
|
size: Oe
|
|
10394
10416
|
}, t = C.filter((t) => {
|
|
10395
|
-
let n =
|
|
10417
|
+
let n = tu(t.widthIn, t.lengthIn);
|
|
10396
10418
|
return (t.rangeId ?? null) === e.product && (t.grade ?? null) === e.grade && (t.texture ?? null) === e.texture && n === e.size;
|
|
10397
10419
|
});
|
|
10398
10420
|
return t.length ? t.find((e) => e.isWebEnabled) ?? t[0] ?? null : null;
|
|
@@ -10403,7 +10425,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10403
10425
|
be,
|
|
10404
10426
|
q,
|
|
10405
10427
|
Oe
|
|
10406
|
-
]), Ae = W !== "Buy Now" || !!ke, je = W === "Buy Now" && ke ? ke.price?.label ??
|
|
10428
|
+
]), Ae = W !== "Buy Now" || !!ke, je = W === "Buy Now" && ke ? ke.price?.label ?? ru(ke.price?.value ?? 0, w) : "", Me = W === "Buy Now" && ke ? ke.price?.value ?? 0 : 0, Ne = W === "Buy Now" ? ke?.sku ?? n : n, [Pe, Fe] = e.useState(() => nu(T, de, fe)), J = e.useRef(W), Ie = e.useRef(P);
|
|
10407
10429
|
e.useEffect(() => {
|
|
10408
10430
|
Ie.current = P;
|
|
10409
10431
|
}, [P]), e.useEffect(() => {
|
|
@@ -10415,7 +10437,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10415
10437
|
grade: be,
|
|
10416
10438
|
texture: q,
|
|
10417
10439
|
size: Oe,
|
|
10418
|
-
quantity:
|
|
10440
|
+
quantity: nu(Pe, de, fe)
|
|
10419
10441
|
});
|
|
10420
10442
|
}, [
|
|
10421
10443
|
W,
|
|
@@ -10429,7 +10451,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10429
10451
|
de,
|
|
10430
10452
|
fe
|
|
10431
10453
|
]), e.useEffect(() => {
|
|
10432
|
-
Fe(
|
|
10454
|
+
Fe(nu(T, de, fe));
|
|
10433
10455
|
}, [
|
|
10434
10456
|
T,
|
|
10435
10457
|
de,
|
|
@@ -10530,7 +10552,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10530
10552
|
},
|
|
10531
10553
|
onQuantityChange: (e) => Fe(e),
|
|
10532
10554
|
onPurchaseInfoLinkClick: V,
|
|
10533
|
-
mobileMediaSlot: /* @__PURE__ */ l(
|
|
10555
|
+
mobileMediaSlot: /* @__PURE__ */ l(Zl, { carousel: h })
|
|
10534
10556
|
};
|
|
10535
10557
|
return /* @__PURE__ */ l("section", {
|
|
10536
10558
|
className: "w-full flex justify-center",
|
|
@@ -10540,12 +10562,12 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10540
10562
|
className: "grid grid-cols-1 md:grid-cols-2 gap-8",
|
|
10541
10563
|
children: [/* @__PURE__ */ l("div", {
|
|
10542
10564
|
className: "hidden md:block",
|
|
10543
|
-
children: /* @__PURE__ */ l(
|
|
10544
|
-
}), /* @__PURE__ */ l(
|
|
10565
|
+
children: /* @__PURE__ */ l(Zl, { carousel: h })
|
|
10566
|
+
}), /* @__PURE__ */ l(Gl, { ...Re })]
|
|
10545
10567
|
})
|
|
10546
10568
|
})
|
|
10547
10569
|
});
|
|
10548
|
-
},
|
|
10570
|
+
}, cu = ({ imageSrc: e, imageAlt: t = "Standard Copy Hero", heading: n, subheading: r, body: i, linkLabel: a, onLinkClick: o }) => /* @__PURE__ */ l(wl, {
|
|
10549
10571
|
imageSrc: e,
|
|
10550
10572
|
imageAlt: t,
|
|
10551
10573
|
bannerClassName: "relative h-80 md:h-119.25 w-full mb-10 md:mb-16 overflow-hidden",
|
|
@@ -10560,7 +10582,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10560
10582
|
onLinkClick: o
|
|
10561
10583
|
})
|
|
10562
10584
|
})
|
|
10563
|
-
}),
|
|
10585
|
+
}), lu = ({ categoryText: e, imageSrc: t, imageAlt: n = "Article Header", tags: r = [], onTagClick: i }) => /* @__PURE__ */ l(wl, {
|
|
10564
10586
|
imageSrc: t,
|
|
10565
10587
|
imageAlt: n,
|
|
10566
10588
|
sectionClassName: "w-full",
|
|
@@ -10571,7 +10593,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10571
10593
|
tags: r,
|
|
10572
10594
|
onTagClick: i
|
|
10573
10595
|
})
|
|
10574
|
-
}),
|
|
10596
|
+
}), uu = ({ slides: t, initialIndex: n = 0, ...r }) => {
|
|
10575
10597
|
let [i, a] = e.useState(n);
|
|
10576
10598
|
if (e.useEffect(() => {
|
|
10577
10599
|
a(n);
|
|
@@ -10601,7 +10623,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10601
10623
|
]
|
|
10602
10624
|
})
|
|
10603
10625
|
});
|
|
10604
|
-
},
|
|
10626
|
+
}, du = (e) => {
|
|
10605
10627
|
let { imageSrc: t = "", imageAlt: n = "" } = e;
|
|
10606
10628
|
return /* @__PURE__ */ l("section", {
|
|
10607
10629
|
className: "h-56 w-full overflow-hidden md:h-190",
|
|
@@ -10612,16 +10634,16 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10612
10634
|
quality: 90
|
|
10613
10635
|
})
|
|
10614
10636
|
});
|
|
10615
|
-
},
|
|
10637
|
+
}, fu = {
|
|
10616
10638
|
left: "text-left",
|
|
10617
10639
|
center: "text-center",
|
|
10618
10640
|
right: "text-right"
|
|
10619
|
-
},
|
|
10641
|
+
}, pu = {
|
|
10620
10642
|
small: "text-xl md:text-4xl",
|
|
10621
10643
|
medium: "text-2xl md:text-4xl",
|
|
10622
10644
|
large: "text-3xl md:text-5xl"
|
|
10623
|
-
},
|
|
10624
|
-
let { heading: t, align: n = "left", headingAlign: r = n, subheading: i, body: a, datetimeStamp: o, headingLevel: s = "h1", headingSize: c = "large", addTopMargin: d = !1 } = e, f =
|
|
10645
|
+
}, mu = (e) => {
|
|
10646
|
+
let { heading: t, align: n = "left", headingAlign: r = n, subheading: i, body: a, datetimeStamp: o, headingLevel: s = "h1", headingSize: c = "large", addTopMargin: d = !1 } = e, f = fu[n], p = fu[r], m = d ? "mt-10 md:mt-20" : "", h = o ? "mb-1" : "mb-4 md:mb-6", g = `${p} ${pu[c]} text-primary ${h}`;
|
|
10625
10647
|
return /* @__PURE__ */ u("section", {
|
|
10626
10648
|
className: `w-full ${m}`.trim(),
|
|
10627
10649
|
children: [
|
|
@@ -10648,24 +10670,24 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10648
10670
|
}) : null
|
|
10649
10671
|
]
|
|
10650
10672
|
});
|
|
10651
|
-
},
|
|
10673
|
+
}, hu = (e) => {
|
|
10652
10674
|
let { body: t, heading: n, headingAlign: r = "center", headingSize: i = "small", ...a } = e;
|
|
10653
10675
|
return /* @__PURE__ */ u("section", {
|
|
10654
10676
|
className: "w-full md:mt-10",
|
|
10655
|
-
children: [n ? /* @__PURE__ */ l(
|
|
10677
|
+
children: [n ? /* @__PURE__ */ l(mu, {
|
|
10656
10678
|
...a,
|
|
10657
10679
|
heading: n,
|
|
10658
10680
|
headingAlign: r,
|
|
10659
10681
|
headingSize: i
|
|
10660
10682
|
}) : null, /* @__PURE__ */ l("div", {
|
|
10661
10683
|
className: "w-full rounded-lg border-2 border-secondaryActive p-6 md:p-8",
|
|
10662
|
-
children: /* @__PURE__ */ l(
|
|
10684
|
+
children: /* @__PURE__ */ l(mu, {
|
|
10663
10685
|
...a,
|
|
10664
10686
|
body: t
|
|
10665
10687
|
})
|
|
10666
10688
|
})]
|
|
10667
10689
|
});
|
|
10668
|
-
},
|
|
10690
|
+
}, gu = ({ title: e = "Featured Products", body: t, headerAlign: n = "center", headerVariant: r = "default", items: i, onItemClick: a }) => {
|
|
10669
10691
|
if (!i?.length) return null;
|
|
10670
10692
|
let o = n === "left" ? "text-left md:mx-0" : "text-center", s = r === "compact" ? "text-tertiary text-base font-bold" : "text-primary text-2xl md:text-4xl", c = r === "compact" ? "text-tertiary text-base font-bold" : "text-primary text-xl font-bold md:font-normal md:text-2xl", d = r === "compact" ? "max-w-6xl w-full mb-8 md:mb-10 mx-auto px-4 md:px-0" : "max-w-6xl w-full mb-16 md:mb-20 mx-auto px-4 md:px-0", f = i.length < 4, p = f ? "justify-evenly" : "";
|
|
10671
10693
|
return /* @__PURE__ */ u("section", {
|
|
@@ -10682,7 +10704,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10682
10704
|
className: "mt-4 text-primary",
|
|
10683
10705
|
children: t
|
|
10684
10706
|
})]
|
|
10685
|
-
}) : null, /* @__PURE__ */ l(
|
|
10707
|
+
}) : null, /* @__PURE__ */ l(ql, {
|
|
10686
10708
|
items: i,
|
|
10687
10709
|
ariaLabel: e,
|
|
10688
10710
|
arrowPosition: "top-right",
|
|
@@ -10703,7 +10725,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10703
10725
|
}, e.id)
|
|
10704
10726
|
})]
|
|
10705
10727
|
});
|
|
10706
|
-
},
|
|
10728
|
+
}, _u = ({ title: t, headerVariant: n = "default", items: r = [] }) => r.length ? /* @__PURE__ */ l("section", {
|
|
10707
10729
|
className: "w-full py-16 mb-10",
|
|
10708
10730
|
children: /* @__PURE__ */ u("div", {
|
|
10709
10731
|
className: "mx-auto w-full max-w-6xl px-4 md:px-0",
|
|
@@ -10717,7 +10739,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10717
10739
|
children: r.map((t, n) => /* @__PURE__ */ l(e.Fragment, { children: /* @__PURE__ */ l(bc, { ...t }) }, `${t.title}-${n}`))
|
|
10718
10740
|
})]
|
|
10719
10741
|
})
|
|
10720
|
-
}) : null,
|
|
10742
|
+
}) : null, vu = ({ title: e, body: t, faqCards: n = [] }) => /* @__PURE__ */ l("section", {
|
|
10721
10743
|
className: "w-full flex justify-center mb-16 md:mt-12 md:mb-20",
|
|
10722
10744
|
children: /* @__PURE__ */ u("div", {
|
|
10723
10745
|
className: "max-w-6xl md:px-6 px-4 flex flex-col items-center justify-center w-full",
|
|
@@ -10742,11 +10764,11 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10742
10764
|
}, e.id))
|
|
10743
10765
|
})]
|
|
10744
10766
|
})
|
|
10745
|
-
}),
|
|
10767
|
+
}), yu = (e, t) => e.id ?? [
|
|
10746
10768
|
e.label,
|
|
10747
10769
|
e.imageSrc,
|
|
10748
10770
|
t
|
|
10749
|
-
].join("-"),
|
|
10771
|
+
].join("-"), bu = (e) => {
|
|
10750
10772
|
let t = [], n = 0, r = 0;
|
|
10751
10773
|
for (; n < e.length;) {
|
|
10752
10774
|
let i = r % 2 == 0 ? 2 : 3;
|
|
@@ -10756,7 +10778,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10756
10778
|
}), n += i, r += 1;
|
|
10757
10779
|
}
|
|
10758
10780
|
return t;
|
|
10759
|
-
},
|
|
10781
|
+
}, xu = ({ items: e = [], onImageOverlayCardClick: t, layoutVariant: n = "uniform" }) => {
|
|
10760
10782
|
if (!e.length) return null;
|
|
10761
10783
|
let r = e.map((e, t) => ({
|
|
10762
10784
|
item: e,
|
|
@@ -10775,10 +10797,10 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10775
10797
|
item: e,
|
|
10776
10798
|
index: n
|
|
10777
10799
|
}) : void 0
|
|
10778
|
-
},
|
|
10800
|
+
}, yu(e, n)))
|
|
10779
10801
|
}) }) : /* @__PURE__ */ l("section", {
|
|
10780
10802
|
className: "px-4 py-20 md:px-4",
|
|
10781
|
-
children:
|
|
10803
|
+
children: bu(r).map((e, n, r) => {
|
|
10782
10804
|
let i = e.columns === 3;
|
|
10783
10805
|
return /* @__PURE__ */ l(se, {
|
|
10784
10806
|
className: n < r.length - 1 ? "mb-6" : "",
|
|
@@ -10794,18 +10816,18 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10794
10816
|
item: e,
|
|
10795
10817
|
index: n
|
|
10796
10818
|
}) : void 0
|
|
10797
|
-
},
|
|
10819
|
+
}, yu(e, n)))
|
|
10798
10820
|
}, `image-overlay-grid-row-${n}`);
|
|
10799
10821
|
})
|
|
10800
10822
|
});
|
|
10801
|
-
},
|
|
10823
|
+
}, Su = {
|
|
10802
10824
|
2: "md:grid-cols-2",
|
|
10803
10825
|
3: "md:grid-cols-3",
|
|
10804
10826
|
4: "md:grid-cols-4"
|
|
10805
|
-
},
|
|
10827
|
+
}, Cu = ({ locations: e, selectedLocationId: t, desktopColumns: n = 4, stockedProductsLabel: r, preferredLabel: i, websiteLabel: a, directionsLabel: o, emailLabel: s, onWebsiteClick: c, onDirectionsClick: u, onPhoneClick: d, onEmailClick: f }) => e.length ? /* @__PURE__ */ l(se, {
|
|
10806
10828
|
columns: 1,
|
|
10807
10829
|
gap: "lg",
|
|
10808
|
-
gridClassName:
|
|
10830
|
+
gridClassName: Su[n],
|
|
10809
10831
|
children: e.map((e) => /* @__PURE__ */ l("div", {
|
|
10810
10832
|
"aria-current": e.id === t ? "true" : void 0,
|
|
10811
10833
|
className: "h-full",
|
|
@@ -10822,7 +10844,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10822
10844
|
onEmailClick: f
|
|
10823
10845
|
})
|
|
10824
10846
|
}, e.id))
|
|
10825
|
-
}) : null,
|
|
10847
|
+
}) : null, wu = ({ title: e = "Markets & Languages", markets: t, selectedLocalizationId: n, saveAndNextLabel: r = "Save and Next", saveAndNextHelpText: i, saveAndNextDisabled: a = !1, localizationSelectionDisabled: o = !1, onLocalizationSelect: s, onSaveAndNext: c }) => /* @__PURE__ */ u("section", {
|
|
10826
10848
|
"aria-labelledby": "localization-market-collection-heading",
|
|
10827
10849
|
children: [
|
|
10828
10850
|
/* @__PURE__ */ l(v, {
|
|
@@ -10878,27 +10900,27 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10878
10900
|
}) : null]
|
|
10879
10901
|
}) : null
|
|
10880
10902
|
]
|
|
10881
|
-
}),
|
|
10903
|
+
}), Tu = {
|
|
10882
10904
|
left: "text-left",
|
|
10883
10905
|
center: "text-center",
|
|
10884
10906
|
right: "text-right"
|
|
10885
|
-
},
|
|
10907
|
+
}, Eu = {
|
|
10886
10908
|
left: "justify-start text-left",
|
|
10887
10909
|
center: "justify-center text-center",
|
|
10888
10910
|
right: "justify-end text-right"
|
|
10889
|
-
},
|
|
10911
|
+
}, Du = {
|
|
10890
10912
|
xs: "w-24",
|
|
10891
10913
|
sm: "w-32",
|
|
10892
10914
|
md: "w-48",
|
|
10893
10915
|
lg: "w-64",
|
|
10894
10916
|
xl: "w-80"
|
|
10895
|
-
},
|
|
10917
|
+
}, Ou = (e) => e == null || e === "" ? "-" : String(e), ku = (e) => e == null ? "" : String(e), Au = (e) => e == null || String(e).trim() === "", ju = (e) => e.reduce((e, t) => (e[t.id] = {
|
|
10896
10918
|
...t,
|
|
10897
10919
|
values: { ...t.values }
|
|
10898
|
-
}, e), {}),
|
|
10899
|
-
let g = o(null), [_, y] = s(
|
|
10920
|
+
}, e), {}), Mu = ({ title: e, description: t, columns: r, rows: i, rowCountLabel: a, updateLabel: d = "Update", updateDisabled: f = !1, emptyMessage: p = "No report data available.", ariaLabel: m, onRowUpdate: h }) => {
|
|
10921
|
+
let g = o(null), [_, y] = s(ju(i)), [b, x] = s(null), S = t?.trim() ?? "", C = a?.trim() ?? (i.length === 1 ? "1 row" : `${i.length.toLocaleString()} rows`), w = i.length > 0;
|
|
10900
10922
|
n(() => {
|
|
10901
|
-
y(
|
|
10923
|
+
y(ju(i)), x(null);
|
|
10902
10924
|
}, [i]), n(() => {
|
|
10903
10925
|
if (!b) return;
|
|
10904
10926
|
let e = (e) => {
|
|
@@ -10931,19 +10953,19 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10931
10953
|
});
|
|
10932
10954
|
}, D = (e, t) => !!(t.required || t.requiredWhen && e.values[t.requiredWhen.columnId] === t.requiredWhen.value), O = (e) => {
|
|
10933
10955
|
let t = _[e.id] ?? e;
|
|
10934
|
-
return r.some((e) => D(t, e) &&
|
|
10956
|
+
return r.some((e) => D(t, e) && Au(t.values[e.id]));
|
|
10935
10957
|
}, k = (e, t) => {
|
|
10936
10958
|
let n = (_[e.id] ?? e).values[t.id];
|
|
10937
|
-
return
|
|
10959
|
+
return Au(n) ? t.placeholder ?? "-" : t.editor === "select" ? t.options?.find((e) => e.value === String(n))?.label ?? Ou(n) : Ou(n);
|
|
10938
10960
|
}, A = (e, t, n, r, i) => {
|
|
10939
|
-
let a = _[e.id] ?? e, o = b === n, s = t.editable !== !1, c = D(a, t), u = c &&
|
|
10961
|
+
let a = _[e.id] ?? e, o = b === n, s = t.editable !== !1, c = D(a, t), u = c && Au(a.values[t.id]);
|
|
10940
10962
|
return o ? t.editor === "select" ? /* @__PURE__ */ l("div", {
|
|
10941
10963
|
"data-data-report-cell-editor": "true",
|
|
10942
10964
|
children: /* @__PURE__ */ l(os, {
|
|
10943
10965
|
id: `${n}-editor`,
|
|
10944
10966
|
name: t.id,
|
|
10945
10967
|
ariaLabel: `${t.label} for row ${e.id}`,
|
|
10946
|
-
value:
|
|
10968
|
+
value: ku(a.values[t.id]),
|
|
10947
10969
|
options: t.options,
|
|
10948
10970
|
placeholder: t.placeholder,
|
|
10949
10971
|
disabled: f,
|
|
@@ -10959,7 +10981,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
10959
10981
|
disabled: f,
|
|
10960
10982
|
required: c,
|
|
10961
10983
|
"aria-invalid": u || void 0,
|
|
10962
|
-
value:
|
|
10984
|
+
value: ku(a.values[t.id]),
|
|
10963
10985
|
onBlur: () => x(null),
|
|
10964
10986
|
onChange: (n) => T(e.id, t.id, n.target.value),
|
|
10965
10987
|
onKeyDown: (e) => {
|
|
@@ -11006,12 +11028,12 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11006
11028
|
children: /* @__PURE__ */ u("table", {
|
|
11007
11029
|
className: "min-w-full table-fixed border-collapse",
|
|
11008
11030
|
children: [
|
|
11009
|
-
/* @__PURE__ */ u("colgroup", { children: [r.map((e) => /* @__PURE__ */ l("col", { className:
|
|
11031
|
+
/* @__PURE__ */ u("colgroup", { children: [r.map((e) => /* @__PURE__ */ l("col", { className: Du[e.width ?? "md"] }, e.id)), /* @__PURE__ */ l("col", { className: "w-20" })] }),
|
|
11010
11032
|
/* @__PURE__ */ l("thead", {
|
|
11011
11033
|
className: "bg-tertiaryActive",
|
|
11012
11034
|
children: /* @__PURE__ */ u("tr", { children: [r.map((e) => /* @__PURE__ */ l("th", {
|
|
11013
11035
|
scope: "col",
|
|
11014
|
-
className: `whitespace-nowrap px-4 py-3 text-xs font-bold uppercase text-tertiary ${
|
|
11036
|
+
className: `whitespace-nowrap px-4 py-3 text-xs font-bold uppercase text-tertiary ${Du[e.width ?? "md"]} ${Tu[e.alignment ?? "left"]}`,
|
|
11015
11037
|
children: e.label
|
|
11016
11038
|
}, e.id)), /* @__PURE__ */ l("th", {
|
|
11017
11039
|
scope: "col",
|
|
@@ -11026,8 +11048,8 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11026
11048
|
children: [r.map((t) => {
|
|
11027
11049
|
let n = `${e.id}-${t.id}`, r = t.alignment ?? "left";
|
|
11028
11050
|
return /* @__PURE__ */ l("td", {
|
|
11029
|
-
className: `whitespace-nowrap px-4 py-3 text-sm text-primary ${
|
|
11030
|
-
children: A(e, t, n, `block w-full min-w-0 truncate rounded border border-borderTertiary bg-secondary px-2 py-1 text-sm text-primary outline-none focus:border-primary ${
|
|
11051
|
+
className: `whitespace-nowrap px-4 py-3 text-sm text-primary ${Du[t.width ?? "md"]} ${Tu[r]}`,
|
|
11052
|
+
children: A(e, t, n, `block w-full min-w-0 truncate rounded border border-borderTertiary bg-secondary px-2 py-1 text-sm text-primary outline-none focus:border-primary ${Tu[r]}`, `flex w-full min-w-0 cursor-pointer rounded px-2 py-1 text-sm text-primary hover:bg-tertiaryActive focus:bg-tertiaryActive focus:outline-none ${Eu[r]}`)
|
|
11031
11053
|
}, n);
|
|
11032
11054
|
}), /* @__PURE__ */ l("td", {
|
|
11033
11055
|
className: "whitespace-nowrap px-4 py-3 text-center",
|
|
@@ -11086,7 +11108,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11086
11108
|
})
|
|
11087
11109
|
})]
|
|
11088
11110
|
});
|
|
11089
|
-
},
|
|
11111
|
+
}, Nu = ({ groups: e, itemLabel: t = "decors", emptyMessage: n = "No decors are available.", showGroupHeaders: i = !0, onDecorClick: a, onDeleteDecorRequest: o }) => {
|
|
11090
11112
|
let s = r();
|
|
11091
11113
|
return e.some((e) => e.items.length > 0) ? /* @__PURE__ */ l("div", {
|
|
11092
11114
|
className: "space-y-8",
|
|
@@ -11128,7 +11150,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11128
11150
|
className: "text-sm text-primary",
|
|
11129
11151
|
children: n
|
|
11130
11152
|
});
|
|
11131
|
-
},
|
|
11153
|
+
}, Pu = ({ ranges: e, emptyMessage: t = "No ranges are available.", onRangeClick: n, onDeleteRangeRequest: r }) => e.length ? /* @__PURE__ */ l("section", {
|
|
11132
11154
|
"aria-label": "Ranges",
|
|
11133
11155
|
className: "space-y-3",
|
|
11134
11156
|
children: e.map((e) => /* @__PURE__ */ l(ze, {
|
|
@@ -11140,7 +11162,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11140
11162
|
variant: "free",
|
|
11141
11163
|
className: "text-sm text-primary",
|
|
11142
11164
|
children: t
|
|
11143
|
-
}),
|
|
11165
|
+
}), Fu = ({ layoutVariant: e = "table", documentTitleLabel: t = "Document Title", documentRangeLabel: n = "Range", documentTypeLabel: r = "Type", documentSubtypeLabel: i = "Subtype", emptyMessage: a = "No Documents Are Available", downloadLabelTemplate: o, documentInfoCards: s, onDownloadClick: c, onRangeClick: d }) => s.length === 0 ? /* @__PURE__ */ l(v, {
|
|
11144
11166
|
variant: "free",
|
|
11145
11167
|
className: "pt-6 text-center text-sm text-primary",
|
|
11146
11168
|
children: a
|
|
@@ -11176,20 +11198,20 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11176
11198
|
onRangeClick: d
|
|
11177
11199
|
}, t.id))]
|
|
11178
11200
|
})
|
|
11179
|
-
}),
|
|
11201
|
+
}), Iu = {
|
|
11180
11202
|
lat: 39.9612,
|
|
11181
11203
|
lng: -82.9988
|
|
11182
|
-
},
|
|
11183
|
-
let t =
|
|
11204
|
+
}, Lu = () => window, Ru = () => Lu().google, zu = (e) => {
|
|
11205
|
+
let t = Lu();
|
|
11184
11206
|
return t.google?.maps ? Promise.resolve() : (t.formicaGoogleMapsPromise ||= new Promise((t, n) => {
|
|
11185
11207
|
let r = document.createElement("script");
|
|
11186
11208
|
r.src = `https://maps.googleapis.com/maps/api/js?key=${encodeURIComponent(e)}`, r.async = !0, r.defer = !0, r.onload = () => t(), r.onerror = () => n(/* @__PURE__ */ Error("Google Maps script failed to load")), document.head.appendChild(r);
|
|
11187
11209
|
}), t.formicaGoogleMapsPromise);
|
|
11188
|
-
},
|
|
11210
|
+
}, Bu = ({ center: e, locations: t, selectedLocationId: n }) => {
|
|
11189
11211
|
let r = t.find((e) => e.id === n);
|
|
11190
|
-
return e ?? r?.coordinates ?? t[0]?.coordinates ??
|
|
11191
|
-
},
|
|
11192
|
-
let f = e.useRef(null), p = e.useRef(null), m = e.useRef([]), [h, g] = e.useState(t ? "loading" : "missing-key"), _ = e.useMemo(() =>
|
|
11212
|
+
return e ?? r?.coordinates ?? t[0]?.coordinates ?? Iu;
|
|
11213
|
+
}, Vu = ({ googleMapsApiKey: t, mapId: n, locations: r, center: i, zoom: a = 10, selectedLocationId: o, ariaLabel: s = "Locations map", legendLabel: c, onLocationSelect: d }) => {
|
|
11214
|
+
let f = e.useRef(null), p = e.useRef(null), m = e.useRef([]), [h, g] = e.useState(t ? "loading" : "missing-key"), _ = e.useMemo(() => Bu({
|
|
11193
11215
|
center: i,
|
|
11194
11216
|
locations: r,
|
|
11195
11217
|
selectedLocationId: o
|
|
@@ -11201,7 +11223,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11201
11223
|
e.useEffect(() => {
|
|
11202
11224
|
if (!t) return g("missing-key"), () => void 0;
|
|
11203
11225
|
let e = !0;
|
|
11204
|
-
return g("loading"),
|
|
11226
|
+
return g("loading"), zu(t).then(() => {
|
|
11205
11227
|
e && g("loaded");
|
|
11206
11228
|
}).catch(() => {
|
|
11207
11229
|
e && g("error");
|
|
@@ -11210,7 +11232,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11210
11232
|
};
|
|
11211
11233
|
}, [t]), e.useEffect(() => {
|
|
11212
11234
|
if (h !== "loaded" || !f.current) return;
|
|
11213
|
-
let e =
|
|
11235
|
+
let e = Ru();
|
|
11214
11236
|
e && (p.current ? (p.current.setCenter(_), p.current.setZoom(a)) : p.current = new e.maps.Map(f.current, {
|
|
11215
11237
|
center: _,
|
|
11216
11238
|
zoom: a,
|
|
@@ -11227,7 +11249,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11227
11249
|
a
|
|
11228
11250
|
]), e.useEffect(() => {
|
|
11229
11251
|
if (h !== "loaded" || !p.current) return;
|
|
11230
|
-
let e =
|
|
11252
|
+
let e = Ru();
|
|
11231
11253
|
e && (m.current.forEach((e) => e.setMap(null)), m.current = r.map((t, n) => {
|
|
11232
11254
|
let r = new e.maps.Marker({
|
|
11233
11255
|
position: t.coordinates,
|
|
@@ -11292,7 +11314,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11292
11314
|
})]
|
|
11293
11315
|
}) : null]
|
|
11294
11316
|
});
|
|
11295
|
-
},
|
|
11317
|
+
}, Hu = {
|
|
11296
11318
|
synced: {
|
|
11297
11319
|
iconName: "check",
|
|
11298
11320
|
className: "border-saleGreen bg-saleGreen/10 text-saleGreen"
|
|
@@ -11313,11 +11335,11 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11313
11335
|
iconName: "minus",
|
|
11314
11336
|
className: "border-borderTertiary bg-adminSideNavBackground text-tertiary"
|
|
11315
11337
|
}
|
|
11316
|
-
},
|
|
11338
|
+
}, Uu = {
|
|
11317
11339
|
match: "text-saleGreen",
|
|
11318
11340
|
mismatch: "text-accent",
|
|
11319
11341
|
neutral: "text-tertiary"
|
|
11320
|
-
},
|
|
11342
|
+
}, Wu = (e) => {
|
|
11321
11343
|
let t = e.detail?.trim() ?? "", n = e.status ?? "neutral";
|
|
11322
11344
|
return /* @__PURE__ */ u("div", {
|
|
11323
11345
|
className: "flex items-start justify-between gap-4 border-t border-borderTertiary py-3 first:border-t-0 first:pt-0 last:pb-0",
|
|
@@ -11330,13 +11352,13 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11330
11352
|
className: "text-sm font-bold text-primary",
|
|
11331
11353
|
children: e.value
|
|
11332
11354
|
}), t ? /* @__PURE__ */ l("div", {
|
|
11333
|
-
className: `mt-1 text-xs ${
|
|
11355
|
+
className: `mt-1 text-xs ${Uu[n]}`,
|
|
11334
11356
|
children: t
|
|
11335
11357
|
}) : null]
|
|
11336
11358
|
})]
|
|
11337
11359
|
}, e.id);
|
|
11338
|
-
},
|
|
11339
|
-
let r = e.description?.trim() ?? "", i = e.actionHelpText?.trim() ?? "", a =
|
|
11360
|
+
}, Gu = (e, t, n) => {
|
|
11361
|
+
let r = e.description?.trim() ?? "", i = e.actionHelpText?.trim() ?? "", a = Hu[e.status];
|
|
11340
11362
|
return /* @__PURE__ */ u("article", {
|
|
11341
11363
|
className: "flex h-full flex-col rounded-lg border border-borderTertiary bg-adminSideNavBackground p-4 shadow-sm",
|
|
11342
11364
|
children: [
|
|
@@ -11371,7 +11393,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11371
11393
|
] }),
|
|
11372
11394
|
/* @__PURE__ */ l("dl", {
|
|
11373
11395
|
className: "mt-5",
|
|
11374
|
-
children: e.fields.map(
|
|
11396
|
+
children: e.fields.map(Wu)
|
|
11375
11397
|
}),
|
|
11376
11398
|
e.actionLabel ? /* @__PURE__ */ u("footer", {
|
|
11377
11399
|
className: "mt-auto pt-5",
|
|
@@ -11393,8 +11415,8 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11393
11415
|
}) : null
|
|
11394
11416
|
]
|
|
11395
11417
|
});
|
|
11396
|
-
},
|
|
11397
|
-
let m = n?.trim() ?? "", h =
|
|
11418
|
+
}, Ku = ({ title: e = "Commerce Sync", summary: t, detail: n, overallStatus: r, overallStatusLabel: i, lxStage: a, salsifyStage: o, bigCommerceStage: s, refreshLabel: c = "Check Again", onLxSyncClick: d, onBigCommerceSyncClick: f, onRefreshClick: p }) => {
|
|
11419
|
+
let m = n?.trim() ?? "", h = Hu[r], g = [
|
|
11398
11420
|
{
|
|
11399
11421
|
stage: a,
|
|
11400
11422
|
onActionClick: void 0
|
|
@@ -11467,7 +11489,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11467
11489
|
className: "mt-5 grid gap-4 md:grid-cols-3 md:gap-6",
|
|
11468
11490
|
children: g.map((e, t) => /* @__PURE__ */ u("div", {
|
|
11469
11491
|
className: "relative min-w-0",
|
|
11470
|
-
children: [
|
|
11492
|
+
children: [Gu(e.stage, t + 1, e.onActionClick), t < g.length - 1 ? /* @__PURE__ */ l("span", {
|
|
11471
11493
|
"aria-hidden": "true",
|
|
11472
11494
|
className: "absolute -right-6 top-1/2 z-10 hidden h-6 w-6 -translate-y-1/2 items-center justify-center rounded-full border border-borderTertiary bg-secondary text-tertiary shadow-sm md:flex",
|
|
11473
11495
|
children: /* @__PURE__ */ l(S, {
|
|
@@ -11480,7 +11502,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11480
11502
|
}, e.stage.title))
|
|
11481
11503
|
})]
|
|
11482
11504
|
});
|
|
11483
|
-
},
|
|
11505
|
+
}, qu = ({ header: e = "", clearAllLabel: t = "Clear All", emptyStateLabel: n = "No filters selected", optionsList: r = [], onRemoveAll: i, onRemoveOption: a }) => {
|
|
11484
11506
|
let o = (e) => {
|
|
11485
11507
|
a?.({ id: e });
|
|
11486
11508
|
};
|
|
@@ -11523,7 +11545,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11523
11545
|
})
|
|
11524
11546
|
})]
|
|
11525
11547
|
}) });
|
|
11526
|
-
},
|
|
11548
|
+
}, Ju = ({ sections: e = [], header: t, headerIcon: n, appliedOptions: r, resetLabel: i = "Reset", applyFiltersLabel: a = "Apply Filters", onResetClick: o, onApplyFiltersClick: s, onCheckboxChange: c, onColorSelect: d }) => /* @__PURE__ */ u("section", {
|
|
11527
11549
|
className: "relative pb-20 md:pb-0 w-full md:ml-2 md:w-52",
|
|
11528
11550
|
children: [
|
|
11529
11551
|
/* @__PURE__ */ u("div", {
|
|
@@ -11538,7 +11560,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11538
11560
|
children: t
|
|
11539
11561
|
}) : null]
|
|
11540
11562
|
}),
|
|
11541
|
-
r && /* @__PURE__ */ l(
|
|
11563
|
+
r && /* @__PURE__ */ l(qu, {
|
|
11542
11564
|
header: r.header,
|
|
11543
11565
|
clearAllLabel: r.clearAllLabel,
|
|
11544
11566
|
emptyStateLabel: r.emptyStateLabel,
|
|
@@ -11580,7 +11602,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11580
11602
|
})
|
|
11581
11603
|
})
|
|
11582
11604
|
]
|
|
11583
|
-
}),
|
|
11605
|
+
}), Yu = [
|
|
11584
11606
|
{
|
|
11585
11607
|
label: "Architect or Designer",
|
|
11586
11608
|
value: "architectDesigner"
|
|
@@ -11621,13 +11643,13 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11621
11643
|
label: "Postformer",
|
|
11622
11644
|
value: "postformer"
|
|
11623
11645
|
}
|
|
11624
|
-
],
|
|
11646
|
+
], Xu = ({ htmlFor: e, label: t, errorMessage: n }) => /* @__PURE__ */ l(v, {
|
|
11625
11647
|
as: "label",
|
|
11626
11648
|
htmlFor: e,
|
|
11627
11649
|
className: `text-sm ${n ? "text-accent!" : "text-primary"}`,
|
|
11628
11650
|
children: n || t
|
|
11629
|
-
}),
|
|
11630
|
-
let T = e.mode ?? "signIn", E = T === "createAccount", D = e.errors ?? {}, O = e.userTypeOptions ??
|
|
11651
|
+
}), Zu = ({ data: e, actionLabels: t, labels: n, onModeChange: r, onEmailChange: i, onPasswordChange: a, onFirstNameChange: o, onLastNameChange: s, onPhoneNumberChange: d, onUserTypeChange: f, onConfirmPasswordChange: p, onMarketingOptInChange: m, onTermsAcceptedChange: h, onEmailBlur: g, onPasswordBlur: _, onForgotPasswordClick: y, onTermsClick: b, onPrivacyClick: x, onSignInClick: S, onCreateAccountClick: C, onSecondaryClick: w }) => {
|
|
11652
|
+
let T = e.mode ?? "signIn", E = T === "createAccount", D = e.errors ?? {}, O = e.userTypeOptions ?? Yu, k = [{
|
|
11631
11653
|
id: "createAccount",
|
|
11632
11654
|
label: n?.createAccountMode ?? "Create Account"
|
|
11633
11655
|
}, {
|
|
@@ -11695,7 +11717,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11695
11717
|
onChange: d
|
|
11696
11718
|
}), /* @__PURE__ */ u("div", {
|
|
11697
11719
|
className: "flex w-full flex-col gap-2",
|
|
11698
|
-
children: [/* @__PURE__ */ l(
|
|
11720
|
+
children: [/* @__PURE__ */ l(Xu, {
|
|
11699
11721
|
htmlFor: "account-access-user-type",
|
|
11700
11722
|
label: n?.userType ?? "I am a*",
|
|
11701
11723
|
errorMessage: D.userType
|
|
@@ -11827,7 +11849,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11827
11849
|
})
|
|
11828
11850
|
]
|
|
11829
11851
|
});
|
|
11830
|
-
},
|
|
11852
|
+
}, Qu = ({ customerName: e, children: t, tabs: n, activeTabId: r, greeting: i = "Welcome back,", logoutLabel: a = "Log out", onTabClick: o, onLogoutClick: s }) => /* @__PURE__ */ l("section", {
|
|
11831
11853
|
className: "w-full bg-white",
|
|
11832
11854
|
children: /* @__PURE__ */ u("div", {
|
|
11833
11855
|
className: "mx-auto w-full max-w-6xl px-4 pb-16 pt-6 md:px-0 md:pt-10",
|
|
@@ -11871,7 +11893,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11871
11893
|
"aria-label": "Customer account sections",
|
|
11872
11894
|
children: /* @__PURE__ */ l("div", {
|
|
11873
11895
|
role: "tablist",
|
|
11874
|
-
children: /* @__PURE__ */ l(
|
|
11896
|
+
children: /* @__PURE__ */ l(Ol, {
|
|
11875
11897
|
items: n.map((e) => ({
|
|
11876
11898
|
label: e.label,
|
|
11877
11899
|
value: e.id
|
|
@@ -11898,7 +11920,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11898
11920
|
})
|
|
11899
11921
|
]
|
|
11900
11922
|
})
|
|
11901
|
-
}),
|
|
11923
|
+
}), $u = ({ items: e, value: t, onChange: n }) => {
|
|
11902
11924
|
if (!e?.length) return null;
|
|
11903
11925
|
let r = (e) => {
|
|
11904
11926
|
e.disabled || n(e.id, e);
|
|
@@ -11923,7 +11945,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11923
11945
|
}, e.id);
|
|
11924
11946
|
})
|
|
11925
11947
|
});
|
|
11926
|
-
},
|
|
11948
|
+
}, ed = ({ data: e }) => e ? /* @__PURE__ */ u("div", {
|
|
11927
11949
|
className: "flex flex-col gap-4 md:gap-6",
|
|
11928
11950
|
children: [
|
|
11929
11951
|
!!e?.summary && /* @__PURE__ */ l(v, {
|
|
@@ -11938,7 +11960,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11938
11960
|
label: e.colourMatchingLabel
|
|
11939
11961
|
})
|
|
11940
11962
|
]
|
|
11941
|
-
}) : null,
|
|
11963
|
+
}) : null, td = ({ data: e }) => e?.groups?.length ? /* @__PURE__ */ l("div", {
|
|
11942
11964
|
className: "flex flex-col gap-6 md:gap-10 scrollbar-none overflow-x-auto",
|
|
11943
11965
|
children: e.groups.map((e, t) => /* @__PURE__ */ u("div", {
|
|
11944
11966
|
className: ["flex flex-col gap-2 md:gap-8", t > 0 ? "pt-2 md:pt-10 border-t border-black/10" : ""].join(" "),
|
|
@@ -11977,12 +11999,12 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
11977
11999
|
}, e.key))
|
|
11978
12000
|
})]
|
|
11979
12001
|
}, e.id))
|
|
11980
|
-
}) : null,
|
|
12002
|
+
}) : null, nd = (e, t = !1) => {
|
|
11981
12003
|
let n = "";
|
|
11982
12004
|
typeof e == "string" ? n = e : typeof e?.label == "string" && (n = e.label);
|
|
11983
12005
|
let r = n.replace(/\bin\b/g, "IN");
|
|
11984
12006
|
return t ? `${r} (MTO)` : r;
|
|
11985
|
-
},
|
|
12007
|
+
}, rd = ({ data: e, selectedGrade: t }) => e ? /* @__PURE__ */ u("div", {
|
|
11986
12008
|
className: "flex flex-col gap-8",
|
|
11987
12009
|
children: [
|
|
11988
12010
|
!!e.cards?.length && /* @__PURE__ */ l("div", {
|
|
@@ -12012,7 +12034,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
12012
12034
|
as: "span",
|
|
12013
12035
|
variant: "free",
|
|
12014
12036
|
className: "text-xs text-nowrap",
|
|
12015
|
-
children:
|
|
12037
|
+
children: nd(e)
|
|
12016
12038
|
}, e))
|
|
12017
12039
|
}), /* @__PURE__ */ l("div", {
|
|
12018
12040
|
className: "flex flex-col gap-2",
|
|
@@ -12020,7 +12042,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
12020
12042
|
as: "span",
|
|
12021
12043
|
variant: "free",
|
|
12022
12044
|
className: "text-xs text-nowrap",
|
|
12023
|
-
children:
|
|
12045
|
+
children: nd(e, !0)
|
|
12024
12046
|
}, e))
|
|
12025
12047
|
})]
|
|
12026
12048
|
})
|
|
@@ -12047,7 +12069,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
12047
12069
|
}, e.id))
|
|
12048
12070
|
})
|
|
12049
12071
|
]
|
|
12050
|
-
}) : null,
|
|
12072
|
+
}) : null, id = [
|
|
12051
12073
|
{
|
|
12052
12074
|
label: "Product Details",
|
|
12053
12075
|
value: "details"
|
|
@@ -12060,21 +12082,21 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
12060
12082
|
label: "Size & Grade Guide",
|
|
12061
12083
|
value: "sizeAndGrade"
|
|
12062
12084
|
}
|
|
12063
|
-
],
|
|
12085
|
+
], ad = (e, t) => e?.length ? t && e.some((e) => e.id === t) ? t : e[0].id : "", od = (e) => {
|
|
12064
12086
|
typeof window > "u" || e.forEach((e) => {
|
|
12065
12087
|
if (!e) return;
|
|
12066
12088
|
let t = new window.Image();
|
|
12067
12089
|
t.src = e;
|
|
12068
12090
|
});
|
|
12069
|
-
},
|
|
12070
|
-
let [o, s] = e.useState(n), [c, d] = e.useState(
|
|
12091
|
+
}, sd = ({ ranges: t, defaultTab: n = "details", tabLabels: r, defaultRangeId: i, selectedGrade: a }) => {
|
|
12092
|
+
let [o, s] = e.useState(n), [c, d] = e.useState(ad(t, i));
|
|
12071
12093
|
if (e.useEffect(() => {
|
|
12072
|
-
d(
|
|
12094
|
+
d(ad(t, i));
|
|
12073
12095
|
}, [t, i]), e.useEffect(() => {
|
|
12074
12096
|
let e = t?.flatMap((e) => e.texture?.groups ?? []).flatMap((e) => e.items ?? []).map((e) => e.imageSrc).filter((e) => !!e) ?? [];
|
|
12075
|
-
|
|
12097
|
+
od([...new Set(e)]);
|
|
12076
12098
|
}, [t]), !t?.length) return null;
|
|
12077
|
-
let f =
|
|
12099
|
+
let f = id.map((e) => ({
|
|
12078
12100
|
...e,
|
|
12079
12101
|
label: r?.[e.value] ?? e.label
|
|
12080
12102
|
})), p = t.find((e) => e.id === c) ?? t[0];
|
|
@@ -12086,7 +12108,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
12086
12108
|
className: "max-w-6xl w-full mx-auto px-4 md:px-6",
|
|
12087
12109
|
children: /* @__PURE__ */ l("div", {
|
|
12088
12110
|
className: "flex justify-start",
|
|
12089
|
-
children: /* @__PURE__ */ l(
|
|
12111
|
+
children: /* @__PURE__ */ l(Ol, {
|
|
12090
12112
|
items: f.map((e) => ({
|
|
12091
12113
|
label: e.label,
|
|
12092
12114
|
value: e.value,
|
|
@@ -12103,7 +12125,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
12103
12125
|
className: "grid grid-cols-1 md:grid-cols-[240px_minmax(0,1fr)] gap-6 md:gap-10",
|
|
12104
12126
|
children: [/* @__PURE__ */ l("div", {
|
|
12105
12127
|
className: "md:pr-8 md:border-r border-black/10 md:min-h-40",
|
|
12106
|
-
children: /* @__PURE__ */ l(
|
|
12128
|
+
children: /* @__PURE__ */ l($u, {
|
|
12107
12129
|
items: t.map((e) => ({
|
|
12108
12130
|
id: e.id,
|
|
12109
12131
|
label: e.label
|
|
@@ -12113,9 +12135,9 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
12113
12135
|
})
|
|
12114
12136
|
}), /* @__PURE__ */ l("div", { children: (() => {
|
|
12115
12137
|
switch (o) {
|
|
12116
|
-
case "details": return /* @__PURE__ */ l(
|
|
12117
|
-
case "texture": return /* @__PURE__ */ l(
|
|
12118
|
-
case "sizeAndGrade": return /* @__PURE__ */ l(
|
|
12138
|
+
case "details": return /* @__PURE__ */ l(ed, { data: p.details });
|
|
12139
|
+
case "texture": return /* @__PURE__ */ l(td, { data: p.texture });
|
|
12140
|
+
case "sizeAndGrade": return /* @__PURE__ */ l(rd, {
|
|
12119
12141
|
data: p.sizeAndGrade,
|
|
12120
12142
|
selectedGrade: a
|
|
12121
12143
|
});
|
|
@@ -12125,7 +12147,7 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
12125
12147
|
})
|
|
12126
12148
|
})]
|
|
12127
12149
|
});
|
|
12128
|
-
},
|
|
12150
|
+
}, cd = ({ isOpen: e, title: t = "My Cart", projectName: n = "", projectNamePlaceholder: r = "Enter project name", emptyCartText: i = "Your cart is empty.", goToCartLabel: a = "Go to Cart", clearCartLabel: o = "Clear Cart", freeLabel: s = "Free", closeOverlayLabel: c = "Close cart overlay", closeCartLabel: d = "Close cart", flyoutAriaLabel: f = "Shopping cart flyout", removeItemLabel: p = "Remove item", decreaseQuantityLabel: m = "Decrease quantity", increaseQuantityLabel: h = "Increase quantity", items: g = [], className: _ = "", onClose: y, onProjectNameChange: b, onQuantityChange: x, onRemoveItem: S, onClearCart: C, onGoToCart: w }) => {
|
|
12129
12151
|
if (!e) return null;
|
|
12130
12152
|
let T = g.length > 0;
|
|
12131
12153
|
return /* @__PURE__ */ u("div", {
|
|
@@ -12227,15 +12249,15 @@ var Zo = ({ id: e, name: t, type: n = "text", value: r = "", placeholder: i = ""
|
|
|
12227
12249
|
};
|
|
12228
12250
|
//#endregion
|
|
12229
12251
|
//#region src/stories/templates/productdetailpagetemplate/ProductDetailPageTemplate.tsx
|
|
12230
|
-
function
|
|
12252
|
+
function ld(e = []) {
|
|
12231
12253
|
return e.reduce((e, t) => (e[t.id] = t, e[t.value] = t, e), {});
|
|
12232
12254
|
}
|
|
12233
|
-
var
|
|
12255
|
+
var ud = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e) => ({
|
|
12234
12256
|
id: e.id,
|
|
12235
12257
|
label: e.label,
|
|
12236
12258
|
value: e.value,
|
|
12237
12259
|
active: n === e.id || n === e.value
|
|
12238
|
-
})),
|
|
12260
|
+
})), dd = (e = []) => {
|
|
12239
12261
|
let t = /* @__PURE__ */ new Set();
|
|
12240
12262
|
return (e ?? []).filter((e) => typeof e.grade == "string" && !!e.grade).filter((e) => !e.grade || t.has(e.grade) ? !1 : (t.add(e.grade), !0)).map((e) => ({
|
|
12241
12263
|
id: e.grade,
|
|
@@ -12243,7 +12265,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12243
12265
|
value: e.grade,
|
|
12244
12266
|
active: !1
|
|
12245
12267
|
}));
|
|
12246
|
-
},
|
|
12268
|
+
}, fd = (e = [], t = null) => {
|
|
12247
12269
|
let n = /* @__PURE__ */ new Set();
|
|
12248
12270
|
return e.reduce((e, r) => {
|
|
12249
12271
|
if (!r.isSample && !r.sampleAvailable) return e;
|
|
@@ -12255,13 +12277,13 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12255
12277
|
active: t === i
|
|
12256
12278
|
}), e);
|
|
12257
12279
|
}, []);
|
|
12258
|
-
},
|
|
12280
|
+
}, pd = (e = []) => {
|
|
12259
12281
|
let t = /* @__PURE__ */ new Set();
|
|
12260
12282
|
return e.reduce((e, n) => {
|
|
12261
12283
|
let r = n.rangeId;
|
|
12262
12284
|
return !r || t.has(r) || (n.isSample || n.sampleAvailable) && (t.add(r), e.push(r)), e;
|
|
12263
12285
|
}, []);
|
|
12264
|
-
},
|
|
12286
|
+
}, md = (e) => (e ?? []).map((e) => ({
|
|
12265
12287
|
id: e.id,
|
|
12266
12288
|
title: e.title,
|
|
12267
12289
|
subtitle: e.subtitle,
|
|
@@ -12269,19 +12291,19 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12269
12291
|
thickness: e.thickness,
|
|
12270
12292
|
items: e.items ?? [],
|
|
12271
12293
|
mtoItems: e.mtoItems ?? []
|
|
12272
|
-
})),
|
|
12273
|
-
let h = n ?? {}, g = h.images ?? [], _ = h.product, v = h.content, y = h.optionSets, b = h.purchase, x = h.downloads, S = h.ranges ?? [], C = h.standardCopyHero, w = h.featuredProducts ?? [], T = _?.colourMatching, E = y?.ranges ?? [], D = y?.textures ?? [], O = y?.sizes ?? [], k = y?.sampleSizes ?? [], A =
|
|
12294
|
+
})), hd = (e) => e ? `Grade ${e}` : "", gd = ({ breadcrumbsProps: t, productData: n, errorMessage: r, showFavorites: i = !0, onDownloadSwatch: a, onDownloadFullSheet: o, onAddToWishlist: s, onAddToCart: c, onSelectionChange: d, onContactActionClick: f, onProductNavigate: p, cartFlyoutProps: m }) => {
|
|
12295
|
+
let h = n ?? {}, g = h.images ?? [], _ = h.product, v = h.content, y = h.optionSets, b = h.purchase, x = h.downloads, S = h.ranges ?? [], C = h.standardCopyHero, w = h.featuredProducts ?? [], T = _?.colourMatching, E = y?.ranges ?? [], D = y?.textures ?? [], O = y?.sizes ?? [], k = y?.sampleSizes ?? [], A = ld(E), j = ld(D), M = ld(O), N = ld(k), P = b?.tabOptions?.Sample ?? {}, F = b?.tabOptions?.["Buy Now"] ?? {}, I = b?.defaults ?? {}, L = dd(h.variants ?? []), R = h.variants?.[0]?.grade ?? null, [z, B] = e.useState(hd(R));
|
|
12274
12296
|
e.useEffect(() => {
|
|
12275
|
-
B(
|
|
12297
|
+
B(hd(R));
|
|
12276
12298
|
}, [R]);
|
|
12277
12299
|
let V = L.map((e) => {
|
|
12278
|
-
let t =
|
|
12300
|
+
let t = hd(e.value);
|
|
12279
12301
|
return {
|
|
12280
12302
|
...e,
|
|
12281
12303
|
active: t === z,
|
|
12282
12304
|
onOptionClick: () => B(t)
|
|
12283
12305
|
};
|
|
12284
|
-
}), ee = P.productOptionIds, te = ee?.filter((e) => !!A[e]) ?? [], ne = ee?.length ? te :
|
|
12306
|
+
}), ee = P.productOptionIds, te = ee?.filter((e) => !!A[e]) ?? [], ne = ee?.length ? te : pd(h.variants ?? []), re = P.textureOptionIds, ie = re?.filter((e) => !!j[e]) ?? [], ae = re?.length ? ud(j, ie, I.texture ?? null) : fd(h.variants ?? [], I.texture ?? null), H = F.productOptionIds, oe = H?.filter((e) => !!A[e]) ?? [], U = H ? oe : E.map((e) => e.id), se = {
|
|
12285
12307
|
sku: _?.sku ?? "",
|
|
12286
12308
|
decor: _?.decor ?? "",
|
|
12287
12309
|
title: _?.title ?? "",
|
|
@@ -12321,25 +12343,25 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12321
12343
|
Sample: {
|
|
12322
12344
|
minQuantity: P.minQuantity,
|
|
12323
12345
|
maxQuantity: P.maxQuantity,
|
|
12324
|
-
productOptions:
|
|
12346
|
+
productOptions: ud(A, ne, v?.defaultRangeId ?? E[0]?.value ?? null),
|
|
12325
12347
|
gradeOptions: [],
|
|
12326
12348
|
textureOptions: ae,
|
|
12327
|
-
sizeOptions:
|
|
12349
|
+
sizeOptions: ud(N, P.sizeOptionIds ?? [], null)
|
|
12328
12350
|
},
|
|
12329
12351
|
"Buy Now": {
|
|
12330
12352
|
minQuantity: F.minQuantity,
|
|
12331
12353
|
maxQuantity: F.maxQuantity,
|
|
12332
|
-
productOptions:
|
|
12354
|
+
productOptions: ud(A, U, v?.defaultRangeId ?? E[0]?.value ?? null),
|
|
12333
12355
|
gradeOptions: V,
|
|
12334
|
-
textureOptions:
|
|
12335
|
-
sizeOptions:
|
|
12356
|
+
textureOptions: ud(j, F.textureOptionIds ?? [], I.texture ?? null),
|
|
12357
|
+
sizeOptions: ud(M, F.sizeOptionIds ?? [], I.size ?? null)
|
|
12336
12358
|
}
|
|
12337
12359
|
},
|
|
12338
|
-
productOptions:
|
|
12360
|
+
productOptions: ud(A, U, v?.defaultRangeId ?? E[0]?.value ?? null),
|
|
12339
12361
|
gradeOptions: V,
|
|
12340
12362
|
selectedGrade: z,
|
|
12341
|
-
textureOptions:
|
|
12342
|
-
sizeOptions:
|
|
12363
|
+
textureOptions: ud(j, F.textureOptionIds ?? [], I.texture ?? null),
|
|
12364
|
+
sizeOptions: ud(M, F.sizeOptionIds ?? [], I.size ?? null),
|
|
12343
12365
|
availabilityHref: v?.availabilityHref ?? "#",
|
|
12344
12366
|
availabilityLabel: v?.availabilityLabel ?? "View full product availability and information",
|
|
12345
12367
|
returnPolicyHref: v?.returnPolicyHref ?? "#",
|
|
@@ -12368,7 +12390,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12368
12390
|
onPurchaseInfoLinkClick: p
|
|
12369
12391
|
}, W = {
|
|
12370
12392
|
ranges: S.map((e) => {
|
|
12371
|
-
let t = e.sizeAndGrade?.definitions ?? [], n =
|
|
12393
|
+
let t = e.sizeAndGrade?.definitions ?? [], n = md(e.sizeAndGrade?.cards);
|
|
12372
12394
|
return {
|
|
12373
12395
|
id: e.id,
|
|
12374
12396
|
label: e.label,
|
|
@@ -12407,12 +12429,12 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12407
12429
|
children: [/* @__PURE__ */ u("div", {
|
|
12408
12430
|
className: "flex flex-col gap-4",
|
|
12409
12431
|
children: [
|
|
12410
|
-
t && /* @__PURE__ */ l(
|
|
12411
|
-
/* @__PURE__ */ l(
|
|
12412
|
-
/* @__PURE__ */ l(
|
|
12432
|
+
t && /* @__PURE__ */ l(hl, { ...t }),
|
|
12433
|
+
/* @__PURE__ */ l(su, { ...se }),
|
|
12434
|
+
/* @__PURE__ */ l(sd, { ...W }),
|
|
12413
12435
|
/* @__PURE__ */ l("div", {
|
|
12414
12436
|
className: "hidden md:block",
|
|
12415
|
-
children: C && /* @__PURE__ */ l(
|
|
12437
|
+
children: C && /* @__PURE__ */ l(cu, {
|
|
12416
12438
|
imageSrc: C.imageSrc ?? "",
|
|
12417
12439
|
imageAlt: C.imageAlt ?? "",
|
|
12418
12440
|
heading: C.heading ?? "",
|
|
@@ -12422,15 +12444,15 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12422
12444
|
linkHref: C.linkHref ?? "#"
|
|
12423
12445
|
})
|
|
12424
12446
|
}),
|
|
12425
|
-
w.length > 0 && /* @__PURE__ */ l(
|
|
12447
|
+
w.length > 0 && /* @__PURE__ */ l(gu, {
|
|
12426
12448
|
title: n.featuredProductsTitle ?? "",
|
|
12427
12449
|
items: w,
|
|
12428
12450
|
onItemClick: ce
|
|
12429
12451
|
})
|
|
12430
12452
|
]
|
|
12431
|
-
}), m ? /* @__PURE__ */ l(
|
|
12453
|
+
}), m ? /* @__PURE__ */ l(cd, { ...m }) : null]
|
|
12432
12454
|
});
|
|
12433
|
-
},
|
|
12455
|
+
}, _d = ({ options: e, selectedValue: t, onSelect: n }) => {
|
|
12434
12456
|
let r = e[0]?.value, i = t ?? r, a = (e) => {
|
|
12435
12457
|
let t = {
|
|
12436
12458
|
value: e.value,
|
|
@@ -12458,19 +12480,19 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12458
12480
|
})
|
|
12459
12481
|
})
|
|
12460
12482
|
});
|
|
12461
|
-
},
|
|
12462
|
-
/* @__PURE__ */ l(
|
|
12463
|
-
/* @__PURE__ */ l(
|
|
12464
|
-
/* @__PURE__ */ l(
|
|
12465
|
-
/* @__PURE__ */ l(
|
|
12466
|
-
] }),
|
|
12483
|
+
}, vd = ({ standardCopyHeroProps: e, multiButtonBarProps: t, featuredArticleBannerProps: n, featureCardCollectionProps: r }) => /* @__PURE__ */ u(c, { children: [
|
|
12484
|
+
/* @__PURE__ */ l(cu, { ...e }),
|
|
12485
|
+
/* @__PURE__ */ l(_d, { ...t }),
|
|
12486
|
+
/* @__PURE__ */ l(Dl, { ...n }),
|
|
12487
|
+
/* @__PURE__ */ l(Ll, { ...r })
|
|
12488
|
+
] }), yd = (e, t) => e.id ?? [
|
|
12467
12489
|
e.decorNumber,
|
|
12468
12490
|
e.title,
|
|
12469
12491
|
e.brand,
|
|
12470
12492
|
e.product,
|
|
12471
12493
|
e.status ?? "standard",
|
|
12472
12494
|
t
|
|
12473
|
-
].join("-"),
|
|
12495
|
+
].join("-"), bd = ({ swatches: e = [], onSwatchClick: t }) => /* @__PURE__ */ l(se, {
|
|
12474
12496
|
className: "mb-16 px-4 md:my-12 md:px-0",
|
|
12475
12497
|
gridClassName: "md:grid-cols-4",
|
|
12476
12498
|
columns: 2,
|
|
@@ -12487,51 +12509,51 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12487
12509
|
decorNumber: String(e.decorNumber),
|
|
12488
12510
|
onSwatchClick: r,
|
|
12489
12511
|
status: e.status
|
|
12490
|
-
},
|
|
12512
|
+
}, yd(e, n));
|
|
12491
12513
|
})
|
|
12492
|
-
}),
|
|
12514
|
+
}), xd = (e) => e.flatMap((e) => e.options.filter((e) => e.checked).map((e) => ({
|
|
12493
12515
|
id: e.id,
|
|
12494
12516
|
label: e.label
|
|
12495
|
-
}))),
|
|
12517
|
+
}))), Sd = (e, t, n) => e.map((e) => ({
|
|
12496
12518
|
...e,
|
|
12497
12519
|
options: e.options.map((e) => e.id === t ? {
|
|
12498
12520
|
...e,
|
|
12499
12521
|
checked: n
|
|
12500
12522
|
} : e)
|
|
12501
|
-
})),
|
|
12523
|
+
})), Cd = (e) => e.map((e) => ({
|
|
12502
12524
|
...e,
|
|
12503
12525
|
options: e.options.map((e) => ({
|
|
12504
12526
|
...e,
|
|
12505
12527
|
checked: !1
|
|
12506
12528
|
}))
|
|
12507
|
-
})),
|
|
12508
|
-
let [d, f] = e.useState(!1), [p, m] = e.useState(() =>
|
|
12529
|
+
})), wd = (e) => e.tabs?.selectedValue ?? e.tabs?.options[0]?.value ?? "", Td = (e) => e.filters.sort?.value ?? e.filters.sort?.options?.[0]?.value ?? e.filters.sort?.options?.[0]?.label ?? "", Ed = (e) => e.filters.search?.value ?? "", Dd = (e) => e.filters.panel ? e.filters.toggleButton?.initiallyVisible ?? !0 : !1, Od = ({ categoryData: t, className: n = "", onHeroLinkClick: r, onTabChange: i, onSortChange: a, onSearchChange: o, onFilterChange: s, onSwatchClick: c }) => {
|
|
12530
|
+
let [d, f] = e.useState(!1), [p, m] = e.useState(() => Dd(t)), h = t.filters.panel?.sections ?? [], g = wd(t), _ = Td(t), v = Ed(t), y = t.tabs, b = t.filters.sort, x = t.filters.search, S = t.filters.panel, C = !!(S || b || x), w = e.useMemo(() => xd(h), [h]), T = t.filters.labels, E = T?.panelHeader ?? S?.header, D = T?.clearAllLabel ?? S?.clearAllLabel, O = T?.applyFiltersLabel ?? S?.applyFiltersLabel, k = T?.appliedOptionsHeader ?? S?.appliedOptionsHeader, A = p ? T?.hideFiltersLabel ?? t.filters.toggleButton?.hideLabel ?? "Hide Filters" : T?.showFiltersLabel ?? t.filters.toggleButton?.showLabel ?? "Show Filters", j = T?.mobileFiltersLabel ?? t.filters.toggleButton?.mobileLabel ?? E ?? "Filters", M = e.useCallback((e, n) => {
|
|
12509
12531
|
s?.(e, n, t);
|
|
12510
12532
|
}, [t, s]), N = e.useCallback((e) => {
|
|
12511
|
-
M(
|
|
12533
|
+
M(Sd(h, e.id, e.checked), {
|
|
12512
12534
|
action: "toggle",
|
|
12513
12535
|
optionId: e.id,
|
|
12514
12536
|
checked: e.checked,
|
|
12515
12537
|
sectionType: "checkbox"
|
|
12516
12538
|
});
|
|
12517
12539
|
}, [M, h]), P = e.useCallback((e) => {
|
|
12518
|
-
M(
|
|
12540
|
+
M(Sd(h, e.id, e.checked), {
|
|
12519
12541
|
action: "toggle",
|
|
12520
12542
|
optionId: e.id,
|
|
12521
12543
|
checked: e.checked,
|
|
12522
12544
|
sectionType: "colorSwatch"
|
|
12523
12545
|
});
|
|
12524
12546
|
}, [M, h]), F = e.useCallback(() => {
|
|
12525
|
-
M(
|
|
12547
|
+
M(Cd(h), { action: "clear-all" });
|
|
12526
12548
|
}, [M, h]);
|
|
12527
12549
|
return /* @__PURE__ */ u("section", {
|
|
12528
12550
|
className: n,
|
|
12529
12551
|
children: [
|
|
12530
|
-
/* @__PURE__ */ l(
|
|
12552
|
+
/* @__PURE__ */ l(cu, {
|
|
12531
12553
|
...t.hero,
|
|
12532
12554
|
onLinkClick: () => r?.(t)
|
|
12533
12555
|
}),
|
|
12534
|
-
y ? /* @__PURE__ */ l(
|
|
12556
|
+
y ? /* @__PURE__ */ l(_d, {
|
|
12535
12557
|
options: y.options,
|
|
12536
12558
|
selectedValue: g,
|
|
12537
12559
|
onSelect: (e) => {
|
|
@@ -12585,7 +12607,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12585
12607
|
children: [
|
|
12586
12608
|
p && S ? /* @__PURE__ */ l("div", {
|
|
12587
12609
|
className: "hidden md:block md:shrink-0",
|
|
12588
|
-
children: /* @__PURE__ */ l(
|
|
12610
|
+
children: /* @__PURE__ */ l(Ju, {
|
|
12589
12611
|
header: E,
|
|
12590
12612
|
headerIcon: S.headerIcon,
|
|
12591
12613
|
resetLabel: D,
|
|
@@ -12597,7 +12619,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12597
12619
|
emptyStateLabel: T?.emptyStateLabel,
|
|
12598
12620
|
optionsList: w,
|
|
12599
12621
|
onRemoveOption: (e) => {
|
|
12600
|
-
M(
|
|
12622
|
+
M(Sd(h, e.id, !1), {
|
|
12601
12623
|
action: "remove",
|
|
12602
12624
|
optionId: e.id
|
|
12603
12625
|
});
|
|
@@ -12615,7 +12637,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12615
12637
|
"aria-modal": "true",
|
|
12616
12638
|
"aria-label": E ?? j,
|
|
12617
12639
|
className: "md:hidden",
|
|
12618
|
-
children: /* @__PURE__ */ l(
|
|
12640
|
+
children: /* @__PURE__ */ l(Ju, {
|
|
12619
12641
|
header: E,
|
|
12620
12642
|
headerIcon: S.headerIcon,
|
|
12621
12643
|
resetLabel: D,
|
|
@@ -12627,7 +12649,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12627
12649
|
emptyStateLabel: T?.emptyStateLabel,
|
|
12628
12650
|
optionsList: w,
|
|
12629
12651
|
onRemoveOption: (e) => {
|
|
12630
|
-
M(
|
|
12652
|
+
M(Sd(h, e.id, !1), {
|
|
12631
12653
|
action: "remove",
|
|
12632
12654
|
optionId: e.id
|
|
12633
12655
|
});
|
|
@@ -12642,7 +12664,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12642
12664
|
}) : null,
|
|
12643
12665
|
/* @__PURE__ */ l("div", {
|
|
12644
12666
|
className: `${d ? "hidden" : "block"} my-8 md:my-0 md:block md:min-w-0 md:flex-1`,
|
|
12645
|
-
children: /* @__PURE__ */ l(
|
|
12667
|
+
children: /* @__PURE__ */ l(bd, {
|
|
12646
12668
|
swatches: t.decorGrid.swatches,
|
|
12647
12669
|
onSwatchClick: (e, n) => c?.(e, n, t)
|
|
12648
12670
|
})
|
|
@@ -12651,7 +12673,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12651
12673
|
})
|
|
12652
12674
|
]
|
|
12653
12675
|
});
|
|
12654
|
-
},
|
|
12676
|
+
}, kd = ({ images: e = [], onImageClick: t }) => /* @__PURE__ */ l(se, {
|
|
12655
12677
|
className: "mb-16 px-4 md:my-12 md:px-0",
|
|
12656
12678
|
gridClassName: "md:grid-cols-4",
|
|
12657
12679
|
columns: 2,
|
|
@@ -12670,12 +12692,12 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12670
12692
|
className: "aspect-square rounded-lg object-cover"
|
|
12671
12693
|
})
|
|
12672
12694
|
}) }, `${e.alt}-${n}`))
|
|
12673
|
-
}),
|
|
12674
|
-
/* @__PURE__ */ l(
|
|
12675
|
-
/* @__PURE__ */ l(
|
|
12695
|
+
}), Ad = ({ standardCopyHeroProps: e, multiButtonBarProps: t, imageGridProps: n }) => /* @__PURE__ */ u(c, { children: [
|
|
12696
|
+
/* @__PURE__ */ l(cu, { ...e }),
|
|
12697
|
+
/* @__PURE__ */ l(_d, { ...t }),
|
|
12676
12698
|
/* @__PURE__ */ l(As, { layoutVariant: "separator" }),
|
|
12677
|
-
/* @__PURE__ */ l(
|
|
12678
|
-
] }),
|
|
12699
|
+
/* @__PURE__ */ l(kd, { ...n })
|
|
12700
|
+
] }), jd = ({ title: e, documentLinkCards: t }) => /* @__PURE__ */ l("section", {
|
|
12679
12701
|
className: "w-full flex justify-center mb-16 md:mt-12 md:mb-20",
|
|
12680
12702
|
children: /* @__PURE__ */ u("div", {
|
|
12681
12703
|
className: "flex flex-col items-center justify-center w-full",
|
|
@@ -12694,37 +12716,37 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12694
12716
|
}, e.id))
|
|
12695
12717
|
})]
|
|
12696
12718
|
})
|
|
12697
|
-
}),
|
|
12719
|
+
}), Md = (e) => !!e?.replace(/<[^>]*>/g, "").replace(/ | | /gi, " ").trim(), Nd = ({ standardCopyHeroProps: e, multiButtonBarProps: t, warrantyCardProps: n, documentLinkCollectionProps: r, infoCardProps: i, faqCardCollectionProps: a }) => /* @__PURE__ */ u(c, { children: [
|
|
12698
12720
|
e && [
|
|
12699
12721
|
e.imageSrc,
|
|
12700
12722
|
e.heading,
|
|
12701
12723
|
e.subheading,
|
|
12702
12724
|
e.body,
|
|
12703
12725
|
e.linkLabel
|
|
12704
|
-
].some(
|
|
12705
|
-
t && !!t.options?.length && /* @__PURE__ */ l(
|
|
12706
|
-
n &&
|
|
12726
|
+
].some(Md) && /* @__PURE__ */ l(cu, { ...e }),
|
|
12727
|
+
t && !!t.options?.length && /* @__PURE__ */ l(_d, { ...t }),
|
|
12728
|
+
n && Md(n.body) && /* @__PURE__ */ l(H, {
|
|
12707
12729
|
spacing: "section",
|
|
12708
|
-
children: /* @__PURE__ */ l(
|
|
12730
|
+
children: /* @__PURE__ */ l(hu, { ...n })
|
|
12709
12731
|
}),
|
|
12710
|
-
r && !!r.documentLinkCards?.length && /* @__PURE__ */ l(
|
|
12732
|
+
r && !!r.documentLinkCards?.length && /* @__PURE__ */ l(jd, { ...r }),
|
|
12711
12733
|
i && ([
|
|
12712
12734
|
i.imageSrc,
|
|
12713
12735
|
i.headline,
|
|
12714
12736
|
i.body
|
|
12715
|
-
].some(
|
|
12737
|
+
].some(Md) || i.buttons?.some((e) => Md(e.buttonLabel))) && /* @__PURE__ */ l(H, {
|
|
12716
12738
|
spacing: "section",
|
|
12717
12739
|
children: /* @__PURE__ */ l(oc, { ...i })
|
|
12718
12740
|
}),
|
|
12719
|
-
a && !!a.faqCards?.length && /* @__PURE__ */ l(
|
|
12720
|
-
] }),
|
|
12741
|
+
a && !!a.faqCards?.length && /* @__PURE__ */ l(vu, { ...a })
|
|
12742
|
+
] }), Pd = (e, t) => e.id ?? [
|
|
12721
12743
|
e.decorNumber,
|
|
12722
12744
|
e.title,
|
|
12723
12745
|
e.brand,
|
|
12724
12746
|
e.rangeCode,
|
|
12725
12747
|
t
|
|
12726
|
-
].join("-"),
|
|
12727
|
-
let o = n?.items ?? [], s = r?.items ?? [], d = i?.items ?? [], f =
|
|
12748
|
+
].join("-"), Fd = (e, t) => e.slice(0, Math.max(0, Math.min(t ?? e.length, e.length))), Id = (e, t, n) => n ?? `View ${e} more ${t}`, Ld = ({ searchFilterProps: e, resultsHeading: t, decorResultsProps: n, resourceResultsProps: r, documentResultsProps: i, noResultsMessage: a }) => {
|
|
12749
|
+
let o = n?.items ?? [], s = r?.items ?? [], d = i?.items ?? [], f = Fd(d, i?.visibleItemCount), p = d.length - f.length, m = Fd(o, n?.visibleItemCount), h = Fd(s, r?.visibleItemCount), g = o.length - m.length, _ = s.length - h.length, y = e.searchBarProps.value?.trim(), b = y ? `Showing results for "${y}"` : "Search Results", x = t ?? b, S = o.length > 0, C = s.length > 0, w = d.length > 0, T = S || C || w;
|
|
12728
12750
|
return /* @__PURE__ */ u(c, { children: [
|
|
12729
12751
|
/* @__PURE__ */ u(H, {
|
|
12730
12752
|
isFirst: !0,
|
|
@@ -12758,7 +12780,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12758
12780
|
product: e.rangeCode,
|
|
12759
12781
|
decorNumber: e.decorNumber ?? "",
|
|
12760
12782
|
onSwatchClick: n.onItemClick ? () => n.onItemClick?.(e) : void 0
|
|
12761
|
-
},
|
|
12783
|
+
}, Pd(e, t)))
|
|
12762
12784
|
}),
|
|
12763
12785
|
g > 0 ? /* @__PURE__ */ l("div", {
|
|
12764
12786
|
className: "mt-8",
|
|
@@ -12766,7 +12788,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12766
12788
|
variant: "outline",
|
|
12767
12789
|
intent: "accent",
|
|
12768
12790
|
size: "sm",
|
|
12769
|
-
label:
|
|
12791
|
+
label: Id(g, "decor results", n.viewMoreLabel),
|
|
12770
12792
|
onClick: n.onViewMoreClick
|
|
12771
12793
|
})
|
|
12772
12794
|
}) : null
|
|
@@ -12797,7 +12819,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12797
12819
|
variant: "outline",
|
|
12798
12820
|
intent: "accent",
|
|
12799
12821
|
size: "sm",
|
|
12800
|
-
label:
|
|
12822
|
+
label: Id(p, "documents", i.viewMoreLabel),
|
|
12801
12823
|
onClick: i.onViewMoreClick
|
|
12802
12824
|
})
|
|
12803
12825
|
}) : null
|
|
@@ -12822,7 +12844,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12822
12844
|
variant: "outline",
|
|
12823
12845
|
intent: "accent",
|
|
12824
12846
|
size: "sm",
|
|
12825
|
-
label:
|
|
12847
|
+
label: Id(_, "resources", r.viewMoreLabel),
|
|
12826
12848
|
onClick: r.onViewMoreClick
|
|
12827
12849
|
})
|
|
12828
12850
|
}) : null
|
|
@@ -12836,7 +12858,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12836
12858
|
})
|
|
12837
12859
|
})
|
|
12838
12860
|
] });
|
|
12839
|
-
},
|
|
12861
|
+
}, Rd = ({ loginImage: e, onCancelClick: t, ...n }) => /* @__PURE__ */ l("section", {
|
|
12840
12862
|
className: "flex w-full justify-center px-4 py-10 md:py-16",
|
|
12841
12863
|
children: /* @__PURE__ */ u("div", {
|
|
12842
12864
|
className: `${e ? "md:grid md:max-w-5xl md:grid-cols-2 md:gap-12" : "max-w-lg"} w-full md:items-stretch`,
|
|
@@ -12852,21 +12874,21 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12852
12874
|
})
|
|
12853
12875
|
}) : null, /* @__PURE__ */ l("div", {
|
|
12854
12876
|
className: "mx-auto w-full max-w-lg md:self-center",
|
|
12855
|
-
children: /* @__PURE__ */ l(
|
|
12877
|
+
children: /* @__PURE__ */ l(Zu, {
|
|
12856
12878
|
...n,
|
|
12857
12879
|
onSecondaryClick: t
|
|
12858
12880
|
})
|
|
12859
12881
|
})]
|
|
12860
12882
|
})
|
|
12861
|
-
}),
|
|
12883
|
+
}), zd = (e) => {
|
|
12862
12884
|
let t = e.options.find((t) => t.value === e.selectedValue) ?? e.options[0];
|
|
12863
12885
|
return t?.value ?? t?.label ?? "";
|
|
12864
|
-
},
|
|
12865
|
-
let f = e.locations.length > 0, p = e.results.selectedLocationId ?? e.map.selectedLocationId, m =
|
|
12886
|
+
}, Bd = ({ data: e, className: t = "", onProductChange: n, onSearchSubmit: r, onTabChange: i, onLocationSelect: a, onWebsiteClick: o, onDirectionsClick: s, onPhoneClick: c, onEmailClick: d }) => {
|
|
12887
|
+
let f = e.locations.length > 0, p = e.results.selectedLocationId ?? e.map.selectedLocationId, m = zd(e.tabs);
|
|
12866
12888
|
return /* @__PURE__ */ u("section", {
|
|
12867
12889
|
className: t,
|
|
12868
12890
|
children: [
|
|
12869
|
-
/* @__PURE__ */ l(
|
|
12891
|
+
/* @__PURE__ */ l(Tl, {
|
|
12870
12892
|
...e.banner,
|
|
12871
12893
|
onProductChange: (t) => n?.(t, e),
|
|
12872
12894
|
onSearchSubmit: (t) => r?.(t, e)
|
|
@@ -12875,7 +12897,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12875
12897
|
spacing: "none",
|
|
12876
12898
|
className: "mb-8 pt-10",
|
|
12877
12899
|
innerClassName: "flex justify-center",
|
|
12878
|
-
children: /* @__PURE__ */ l(
|
|
12900
|
+
children: /* @__PURE__ */ l(Ol, {
|
|
12879
12901
|
className: "w-full",
|
|
12880
12902
|
items: e.tabs.options.map((e) => ({
|
|
12881
12903
|
label: e.label,
|
|
@@ -12895,14 +12917,14 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12895
12917
|
/* @__PURE__ */ l(H, {
|
|
12896
12918
|
spacing: "none",
|
|
12897
12919
|
className: "mb-8 pb-10 md:mb-10",
|
|
12898
|
-
children: /* @__PURE__ */ l(
|
|
12920
|
+
children: /* @__PURE__ */ l(Vu, {
|
|
12899
12921
|
...e.map,
|
|
12900
12922
|
locations: e.locations,
|
|
12901
12923
|
selectedLocationId: e.map.selectedLocationId ?? p,
|
|
12902
12924
|
onLocationSelect: (t) => a?.(t, e)
|
|
12903
12925
|
})
|
|
12904
12926
|
}),
|
|
12905
|
-
f ? /* @__PURE__ */ l(
|
|
12927
|
+
f ? /* @__PURE__ */ l(Cu, {
|
|
12906
12928
|
...e.results,
|
|
12907
12929
|
locations: e.locations,
|
|
12908
12930
|
selectedLocationId: p,
|
|
@@ -12926,7 +12948,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12926
12948
|
})
|
|
12927
12949
|
]
|
|
12928
12950
|
});
|
|
12929
|
-
},
|
|
12951
|
+
}, Vd = ({ title: e = "Order Confirmed", message: t = "Thank you for your purchase! Your order has been confirmed and will be shipped soon.", buttonLabel: n = "Return to Home", onButtonClick: r }) => /* @__PURE__ */ l("section", {
|
|
12930
12952
|
className: "w-full bg-white",
|
|
12931
12953
|
children: /* @__PURE__ */ u("div", {
|
|
12932
12954
|
className: "mx-auto flex max-w-6xl flex-col items-center px-6 py-20 text-center",
|
|
@@ -12963,7 +12985,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
12963
12985
|
})
|
|
12964
12986
|
]
|
|
12965
12987
|
})
|
|
12966
|
-
}),
|
|
12988
|
+
}), Hd = ({ shippingTitle: e = "Shipping Method", paymentTitle: t = "Payment Summary", shippingMethod: n = {}, paymentRows: r = [] }) => {
|
|
12967
12989
|
let i = r.length > 0;
|
|
12968
12990
|
return /* @__PURE__ */ l("section", {
|
|
12969
12991
|
className: "w-full mt-10",
|
|
@@ -13026,7 +13048,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13026
13048
|
}) : null]
|
|
13027
13049
|
})
|
|
13028
13050
|
});
|
|
13029
|
-
},
|
|
13051
|
+
}, Ud = (e) => /* @__PURE__ */ u("div", {
|
|
13030
13052
|
className: "min-w-0 flex flex-col gap-1",
|
|
13031
13053
|
children: [
|
|
13032
13054
|
/* @__PURE__ */ l(v, {
|
|
@@ -13060,7 +13082,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13060
13082
|
children: e.country
|
|
13061
13083
|
}) : null
|
|
13062
13084
|
]
|
|
13063
|
-
}),
|
|
13085
|
+
}), Wd = ({ sectionTitle: e = "Order Receipt", orderDetails: t = {}, shippingAddress: n = {}, billingAddress: r = {}, className: i = "" }) => /* @__PURE__ */ l("section", {
|
|
13064
13086
|
className: `w-full ${i}`,
|
|
13065
13087
|
children: /* @__PURE__ */ u("div", {
|
|
13066
13088
|
className: "w-full",
|
|
@@ -13131,18 +13153,18 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13131
13153
|
})
|
|
13132
13154
|
]
|
|
13133
13155
|
}),
|
|
13134
|
-
|
|
13156
|
+
Ud({
|
|
13135
13157
|
title: n.title || "Shipping Address",
|
|
13136
13158
|
...n
|
|
13137
13159
|
}),
|
|
13138
|
-
|
|
13160
|
+
Ud({
|
|
13139
13161
|
title: r.title || "Billing Address",
|
|
13140
13162
|
...r
|
|
13141
13163
|
})
|
|
13142
13164
|
]
|
|
13143
13165
|
})]
|
|
13144
13166
|
})
|
|
13145
|
-
}),
|
|
13167
|
+
}), Gd = ({ sectionTitle: e = "Order Summary", showPricing: t = !0, columnLabels: n = {}, items: r = [] }) => {
|
|
13146
13168
|
let { orderDetails: i = "Order Details", quantity: a = "Quantity", unitPrice: o = "Unit Price", total: s = "Total" } = n;
|
|
13147
13169
|
return /* @__PURE__ */ l("section", {
|
|
13148
13170
|
className: "w-full",
|
|
@@ -13205,29 +13227,29 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13205
13227
|
]
|
|
13206
13228
|
})
|
|
13207
13229
|
});
|
|
13208
|
-
},
|
|
13230
|
+
}, Kd = ({ cartConfirmedHeroProps: e, cartReceiptSectionProps: t, cartSummarySectionProps: n, cartOrderSummaryProps: r }) => /* @__PURE__ */ l("section", {
|
|
13209
13231
|
className: "w-full flex justify-center",
|
|
13210
13232
|
children: /* @__PURE__ */ u("div", {
|
|
13211
13233
|
className: "w-full max-w-6xl",
|
|
13212
|
-
children: [/* @__PURE__ */ l(
|
|
13234
|
+
children: [/* @__PURE__ */ l(Vd, { ...e }), /* @__PURE__ */ u("div", {
|
|
13213
13235
|
className: "px-12 pb-16",
|
|
13214
13236
|
children: [
|
|
13215
13237
|
/* @__PURE__ */ l("div", {
|
|
13216
13238
|
className: "mt-10",
|
|
13217
|
-
children: /* @__PURE__ */ l(
|
|
13239
|
+
children: /* @__PURE__ */ l(Wd, { ...t })
|
|
13218
13240
|
}),
|
|
13219
13241
|
/* @__PURE__ */ l("div", {
|
|
13220
13242
|
className: "mt-14",
|
|
13221
|
-
children: /* @__PURE__ */ l(
|
|
13243
|
+
children: /* @__PURE__ */ l(Gd, { ...n })
|
|
13222
13244
|
}),
|
|
13223
13245
|
/* @__PURE__ */ l("div", {
|
|
13224
13246
|
className: "mt-14",
|
|
13225
|
-
children: /* @__PURE__ */ l(
|
|
13247
|
+
children: /* @__PURE__ */ l(Hd, { ...r })
|
|
13226
13248
|
})
|
|
13227
13249
|
]
|
|
13228
13250
|
})]
|
|
13229
13251
|
})
|
|
13230
|
-
}),
|
|
13252
|
+
}), qd = ({ title: e = "Ship To", idPrefix: t = "shipping", firstName: n = "", lastName: r = "", email: i = "", phoneNumber: a = "", companyName: o = "", userType: s = "", address: d = "", apartment: f = "", postalCode: p = "", city: m = "", country: h = "united-states", countryLabel: g, stateProvince: _ = "", addressRegionVariant: y = "default", countryDisplayMode: b = "select", countryOptions: x = [], stateProvinceOptions: C = [], userTypeOptions: w = [], firstNamePlaceholder: T = "First Name", lastNamePlaceholder: E = "Last Name", emailPlaceholder: D = "Email", phoneNumberPlaceholder: O = "Phone Number", companyNamePlaceholder: k = "Company Name (Optional)", userTypePlaceholder: A = "I am a*", addressPlaceholder: j = "Address", apartmentPlaceholder: M = "Apartment/Suite/Building (Optional)", cityPlaceholder: N, postalCodePlaceholder: P, stateProvincePlaceholder: F, countryPlaceholder: I = "Country", showCompanyName: L = !0, showContactFields: R = !0, addressErrorMessage: z, errors: B = {}, onFirstNameChange: V, onLastNameChange: ee, onEmailChange: te, onPhoneNumberChange: ne, onCompanyNameChange: re, onUserTypeChange: ie, onAddressChange: ae, onApartmentChange: H, onPostalCodeChange: oe, onCityChange: U, onCountryChange: se, onStateProvinceChange: W, onFirstNameBlur: ce, onLastNameBlur: le, onEmailBlur: ue, onPhoneNumberBlur: de, onCompanyNameBlur: fe, onUserTypeBlur: pe, onAddressBlur: me, onApartmentBlur: G, onPostalCodeBlur: he, onCityBlur: ge, onCountryBlur: K, onStateProvinceBlur: _e }) => {
|
|
13231
13253
|
let ve = y === "ca" || y === "mx", ye = y === "uk", be = N ?? "City", xe = P ?? "Postal Code", Se = F ?? (y === "ca" ? "Province" : "State/Province"), Ce = g ?? x.find((e) => e.value === h)?.label ?? h, q = `${t}-address-error`, we = !!z, Te = /* @__PURE__ */ l($, {
|
|
13232
13254
|
id: `${t}-city`,
|
|
13233
13255
|
name: "city",
|
|
@@ -13425,7 +13447,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13425
13447
|
]
|
|
13426
13448
|
})]
|
|
13427
13449
|
});
|
|
13428
|
-
},
|
|
13450
|
+
}, Jd = ({ title: e, options: t = [], selectedValue: n, name: r, className: i = "", onChange: a }) => /* @__PURE__ */ u("section", {
|
|
13429
13451
|
className: `flex w-full flex-col gap-4 ${i}`,
|
|
13430
13452
|
children: [e ? /* @__PURE__ */ l(v, {
|
|
13431
13453
|
as: "h3",
|
|
@@ -13445,7 +13467,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13445
13467
|
onChange: (e) => a?.(e)
|
|
13446
13468
|
}, e.id))
|
|
13447
13469
|
})]
|
|
13448
|
-
}),
|
|
13470
|
+
}), Yd = ({ steps: t = [], currentStep: n = 0, onStepClick: r, className: i = "", completedColorClass: a = "text-accent!", upcomingColorClass: o = "text-primary", connectorCompletedClass: s = "bg-accent!", connectorUpcomingClass: c = "bg-primary" }) => {
|
|
13449
13471
|
if (!t.length) return null;
|
|
13450
13472
|
let d = typeof n == "number" ? n : t.findIndex((e) => e === n), f = d >= 0 ? d : 0, p = (e, t) => e < t ? {
|
|
13451
13473
|
left: s,
|
|
@@ -13498,20 +13520,20 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13498
13520
|
})] }, `${n}-${r}`);
|
|
13499
13521
|
})
|
|
13500
13522
|
});
|
|
13501
|
-
},
|
|
13523
|
+
}, Xd = ({ shippingAddressFormProps: e, shippingOptionSelectorProps: t, checkoutProgressIndicatorProps: n, sampleOrderSummaryPanelProps: r, submitLabel: i = "Submit Sample Order", onSubmitSampleOrder: a }) => /* @__PURE__ */ l("section", {
|
|
13502
13524
|
className: "flex w-full justify-center px-4 py-10 pb-24 md:py-16 md:pb-28",
|
|
13503
13525
|
children: /* @__PURE__ */ l("div", {
|
|
13504
13526
|
className: "w-full max-w-6xl",
|
|
13505
13527
|
children: /* @__PURE__ */ u("div", {
|
|
13506
13528
|
className: "grid w-full grid-cols-1 gap-8 md:grid-cols-2",
|
|
13507
|
-
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l(
|
|
13529
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l(qd, { ...e }), /* @__PURE__ */ l("div", {
|
|
13508
13530
|
className: "mt-8",
|
|
13509
|
-
children: /* @__PURE__ */ l(
|
|
13531
|
+
children: /* @__PURE__ */ l(Jd, { ...t })
|
|
13510
13532
|
})] }), /* @__PURE__ */ u("div", { children: [
|
|
13511
|
-
/* @__PURE__ */ l(
|
|
13533
|
+
/* @__PURE__ */ l(Yd, { ...n }),
|
|
13512
13534
|
/* @__PURE__ */ l("div", {
|
|
13513
13535
|
className: "mt-8",
|
|
13514
|
-
children: /* @__PURE__ */ l(
|
|
13536
|
+
children: /* @__PURE__ */ l(zl, { ...r })
|
|
13515
13537
|
}),
|
|
13516
13538
|
/* @__PURE__ */ l("div", {
|
|
13517
13539
|
className: "mt-8",
|
|
@@ -13525,7 +13547,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13525
13547
|
] })]
|
|
13526
13548
|
})
|
|
13527
13549
|
})
|
|
13528
|
-
}),
|
|
13550
|
+
}), Zd = ({ title: e = "Ordered Samples", items: t, checkoutProgressIndicatorProps: n, sampleOrderSummaryPanelProps: r, proceedToShippingLabel: i = "Proceed to Shipping", browseMoreSamplesLabel: a = "Browse More Samples", onQuantityChange: o, onRemoveItem: s, onProceedToShipping: c, onBrowseMoreSamples: d }) => /* @__PURE__ */ l("section", {
|
|
13529
13551
|
className: "flex w-full justify-center px-4 py-10 pb-24 md:py-16 md:pb-28",
|
|
13530
13552
|
children: /* @__PURE__ */ l("div", {
|
|
13531
13553
|
className: "w-full max-w-6xl",
|
|
@@ -13561,10 +13583,10 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13561
13583
|
})
|
|
13562
13584
|
})]
|
|
13563
13585
|
}), /* @__PURE__ */ u("div", { children: [
|
|
13564
|
-
/* @__PURE__ */ l(
|
|
13586
|
+
/* @__PURE__ */ l(Yd, { ...n }),
|
|
13565
13587
|
/* @__PURE__ */ l("div", {
|
|
13566
13588
|
className: "mt-8",
|
|
13567
|
-
children: /* @__PURE__ */ l(
|
|
13589
|
+
children: /* @__PURE__ */ l(zl, { ...r })
|
|
13568
13590
|
}),
|
|
13569
13591
|
/* @__PURE__ */ u("div", {
|
|
13570
13592
|
className: "mt-8 flex flex-col gap-3 bg-white",
|
|
@@ -13584,17 +13606,17 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13584
13606
|
] })]
|
|
13585
13607
|
})
|
|
13586
13608
|
})
|
|
13587
|
-
}),
|
|
13609
|
+
}), Qd = ({ customerDetailsFormProps: e, shippingAddressFormProps: t, shippingOptionSelectorProps: n, checkoutProgressIndicatorProps: r, sampleOrderSummaryPanelProps: i, privacyConsentLabel: a = "I have read and agree to the", privacyPolicyLabel: o = "Privacy Policy", privacyConsentChecked: s = !1, privacyConsentErrorMessage: c, submitLabel: d = "Submit Sample Order", isSubmitting: f = !1, submittingLabel: p = "Submitting order…", onPrivacyConsentChange: m, onPrivacyPolicyClick: h, onSubmitSampleOrder: g }) => /* @__PURE__ */ l("section", {
|
|
13588
13610
|
className: "flex w-full justify-center px-4 py-10 pb-24 md:py-16 md:pb-28",
|
|
13589
13611
|
children: /* @__PURE__ */ l("div", {
|
|
13590
13612
|
className: "w-full max-w-6xl",
|
|
13591
13613
|
children: /* @__PURE__ */ u("div", {
|
|
13592
13614
|
className: "grid w-full grid-cols-1 gap-8 md:grid-cols-2",
|
|
13593
13615
|
children: [/* @__PURE__ */ u("div", { children: [
|
|
13594
|
-
/* @__PURE__ */ l(
|
|
13616
|
+
/* @__PURE__ */ l(Bl, { ...e }),
|
|
13595
13617
|
/* @__PURE__ */ l("div", {
|
|
13596
13618
|
className: "mt-8",
|
|
13597
|
-
children: /* @__PURE__ */ l(
|
|
13619
|
+
children: /* @__PURE__ */ l(qd, {
|
|
13598
13620
|
...t,
|
|
13599
13621
|
addressRegionVariant: "uk",
|
|
13600
13622
|
showContactFields: !1
|
|
@@ -13602,13 +13624,13 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13602
13624
|
}),
|
|
13603
13625
|
/* @__PURE__ */ l("div", {
|
|
13604
13626
|
className: "mt-8",
|
|
13605
|
-
children: /* @__PURE__ */ l(
|
|
13627
|
+
children: /* @__PURE__ */ l(Jd, { ...n })
|
|
13606
13628
|
})
|
|
13607
13629
|
] }), /* @__PURE__ */ u("div", { children: [
|
|
13608
|
-
/* @__PURE__ */ l(
|
|
13630
|
+
/* @__PURE__ */ l(Yd, { ...r }),
|
|
13609
13631
|
/* @__PURE__ */ l("div", {
|
|
13610
13632
|
className: "mt-8",
|
|
13611
|
-
children: /* @__PURE__ */ l(
|
|
13633
|
+
children: /* @__PURE__ */ l(zl, { ...i })
|
|
13612
13634
|
}),
|
|
13613
13635
|
/* @__PURE__ */ u("div", {
|
|
13614
13636
|
className: "mt-8 flex flex-wrap items-center gap-x-1 gap-y-2",
|
|
@@ -13650,29 +13672,29 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13650
13672
|
] })]
|
|
13651
13673
|
})
|
|
13652
13674
|
})
|
|
13653
|
-
}),
|
|
13675
|
+
}), $d = ({ cartConfirmedHeroProps: e, cartReceiptSectionProps: t, cartSummarySectionProps: n, cartOrderSummaryProps: r }) => /* @__PURE__ */ l("section", {
|
|
13654
13676
|
className: "w-full flex justify-center",
|
|
13655
13677
|
children: /* @__PURE__ */ u("div", {
|
|
13656
13678
|
className: "w-full max-w-6xl",
|
|
13657
|
-
children: [/* @__PURE__ */ l(
|
|
13679
|
+
children: [/* @__PURE__ */ l(Vd, { ...e }), /* @__PURE__ */ u("div", {
|
|
13658
13680
|
className: "px-12 pb-16",
|
|
13659
13681
|
children: [
|
|
13660
13682
|
/* @__PURE__ */ l("div", {
|
|
13661
13683
|
className: "mt-10",
|
|
13662
|
-
children: /* @__PURE__ */ l(
|
|
13684
|
+
children: /* @__PURE__ */ l(Wd, { ...t })
|
|
13663
13685
|
}),
|
|
13664
13686
|
/* @__PURE__ */ l("div", {
|
|
13665
13687
|
className: "mt-14",
|
|
13666
|
-
children: /* @__PURE__ */ l(
|
|
13688
|
+
children: /* @__PURE__ */ l(Gd, { ...n })
|
|
13667
13689
|
}),
|
|
13668
13690
|
/* @__PURE__ */ l("div", {
|
|
13669
13691
|
className: "mt-14",
|
|
13670
|
-
children: /* @__PURE__ */ l(
|
|
13692
|
+
children: /* @__PURE__ */ l(Hd, { ...r })
|
|
13671
13693
|
})
|
|
13672
13694
|
]
|
|
13673
13695
|
})]
|
|
13674
13696
|
})
|
|
13675
|
-
}),
|
|
13697
|
+
}), ef = ({ discountCode: t = "", discountCodeStatus: n = "idle", discountCodeMessage: r = "", subtotalLabel: i = "Sub total", discountLabel: a = "Discount", taxLabel: o = "Tax", shippingLabel: s = "Shipping", totalLabel: c = "Total", subtotal: d = "$0.00", discount: f = "", tax: p = "Not calculated", shipping: m = "Not calculated", total: h = "$0.00", continueLabel: g = "Continue", discountCodePlaceholder: _ = "Enter discount code", applyDiscountLabel: y = "Apply", notCalculatedLabel: b = "Not calculated", showDiscountCode: x = !0, onDiscountCodeChange: C, onApplyDiscount: w, onContinue: T, className: E = "" }) => {
|
|
13676
13698
|
let D = !!(t.trim() && f), O = !!(p.trim() && p !== "Not calculated" && p !== b), k = O ? p : b, A = !!(m.trim() && m !== "Not calculated" && m !== b), j = A ? m : b, [M, N] = e.useState(!0), F = n !== "idle" && !!r && (n !== "success" || M), I = n === "success";
|
|
13677
13699
|
return e.useEffect(() => {
|
|
13678
13700
|
if (N(!0), n !== "success") return;
|
|
@@ -13792,73 +13814,82 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13792
13814
|
})
|
|
13793
13815
|
]
|
|
13794
13816
|
});
|
|
13795
|
-
},
|
|
13817
|
+
}, tf = ({ paymentTypeTitle: e = "Select Payment Type", paymentTypeSelectorProps: t, cardNumber: n = "", expirationDate: r = "", securityCode: i = "", errors: a = {}, submitError: o, onCardNumberChange: s, onExpirationDateChange: c, onSecurityCodeChange: d, onCardNumberBlur: f, onExpirationDateBlur: p, onSecurityCodeBlur: m }) => /* @__PURE__ */ u("section", {
|
|
13796
13818
|
className: "flex w-full flex-col gap-6",
|
|
13797
|
-
children: [
|
|
13798
|
-
|
|
13799
|
-
|
|
13800
|
-
|
|
13801
|
-
|
|
13802
|
-
|
|
13803
|
-
|
|
13804
|
-
|
|
13805
|
-
|
|
13806
|
-
|
|
13807
|
-
|
|
13808
|
-
|
|
13809
|
-
name: "cardNumber",
|
|
13810
|
-
placeholder: "Card Number",
|
|
13811
|
-
ariaLabel: "Card number",
|
|
13812
|
-
mask: "cardNumber",
|
|
13813
|
-
autoComplete: "cc-number",
|
|
13814
|
-
value: n,
|
|
13815
|
-
hasError: !!a.cardNumber,
|
|
13816
|
-
errorMessage: a.cardNumber,
|
|
13817
|
-
onChange: o,
|
|
13818
|
-
onBlur: d
|
|
13819
|
-
}), /* @__PURE__ */ u("div", {
|
|
13820
|
-
className: "grid grid-cols-2 gap-4",
|
|
13819
|
+
children: [
|
|
13820
|
+
/* @__PURE__ */ u("div", {
|
|
13821
|
+
className: "flex flex-col gap-3",
|
|
13822
|
+
children: [/* @__PURE__ */ l(v, {
|
|
13823
|
+
as: "h2",
|
|
13824
|
+
variant: "bold",
|
|
13825
|
+
className: "text-primary",
|
|
13826
|
+
children: e
|
|
13827
|
+
}), /* @__PURE__ */ l(Jd, { ...t })]
|
|
13828
|
+
}),
|
|
13829
|
+
/* @__PURE__ */ u("div", {
|
|
13830
|
+
className: "mt-10 flex flex-col gap-4",
|
|
13821
13831
|
children: [/* @__PURE__ */ l($, {
|
|
13822
|
-
id: "payment-
|
|
13823
|
-
name: "
|
|
13824
|
-
placeholder: "
|
|
13825
|
-
ariaLabel: "
|
|
13826
|
-
mask: "
|
|
13827
|
-
autoComplete: "cc-
|
|
13828
|
-
value:
|
|
13829
|
-
hasError: !!a.
|
|
13830
|
-
errorMessage: a.
|
|
13832
|
+
id: "payment-card-number",
|
|
13833
|
+
name: "cardNumber",
|
|
13834
|
+
placeholder: "Card Number",
|
|
13835
|
+
ariaLabel: "Card number",
|
|
13836
|
+
mask: "cardNumber",
|
|
13837
|
+
autoComplete: "cc-number",
|
|
13838
|
+
value: n,
|
|
13839
|
+
hasError: !!a.cardNumber,
|
|
13840
|
+
errorMessage: a.cardNumber,
|
|
13831
13841
|
onChange: s,
|
|
13832
13842
|
onBlur: f
|
|
13833
|
-
}), /* @__PURE__ */
|
|
13834
|
-
|
|
13835
|
-
|
|
13836
|
-
|
|
13837
|
-
|
|
13838
|
-
|
|
13839
|
-
|
|
13840
|
-
|
|
13841
|
-
|
|
13842
|
-
|
|
13843
|
-
|
|
13844
|
-
|
|
13845
|
-
|
|
13843
|
+
}), /* @__PURE__ */ u("div", {
|
|
13844
|
+
className: "grid grid-cols-2 gap-4",
|
|
13845
|
+
children: [/* @__PURE__ */ l($, {
|
|
13846
|
+
id: "payment-expiration-date",
|
|
13847
|
+
name: "expirationDate",
|
|
13848
|
+
placeholder: "MM/YY",
|
|
13849
|
+
ariaLabel: "Expiration date (MM/YY)",
|
|
13850
|
+
mask: "expirationDate",
|
|
13851
|
+
autoComplete: "cc-exp",
|
|
13852
|
+
value: r,
|
|
13853
|
+
hasError: !!a.expirationDate,
|
|
13854
|
+
errorMessage: a.expirationDate,
|
|
13855
|
+
onChange: c,
|
|
13856
|
+
onBlur: p
|
|
13857
|
+
}), /* @__PURE__ */ l($, {
|
|
13858
|
+
id: "payment-security-code",
|
|
13859
|
+
name: "securityCode",
|
|
13860
|
+
placeholder: "CVC",
|
|
13861
|
+
ariaLabel: "Security code (3 or 4 digits)",
|
|
13862
|
+
mask: "digits",
|
|
13863
|
+
maxDigits: 4,
|
|
13864
|
+
autoComplete: "cc-csc",
|
|
13865
|
+
value: i,
|
|
13866
|
+
hasError: !!a.securityCode,
|
|
13867
|
+
errorMessage: a.securityCode,
|
|
13868
|
+
onChange: d,
|
|
13869
|
+
onBlur: m
|
|
13870
|
+
})]
|
|
13846
13871
|
})]
|
|
13847
|
-
})
|
|
13848
|
-
|
|
13849
|
-
|
|
13872
|
+
}),
|
|
13873
|
+
o ? /* @__PURE__ */ l(v, {
|
|
13874
|
+
role: "alert",
|
|
13875
|
+
variant: "free",
|
|
13876
|
+
className: "rounded-md border border-accent bg-accent/10 p-4 text-sm text-accent",
|
|
13877
|
+
children: o
|
|
13878
|
+
}) : null
|
|
13879
|
+
]
|
|
13880
|
+
}), nf = ({ requiresPayment: e = !0, shippingMethodSelectorProps: t, cartPaymentPanelProps: n, checkoutProgressIndicatorProps: r, cartTotalsPanelProps: i }) => /* @__PURE__ */ l("section", {
|
|
13850
13881
|
className: "w-full flex justify-center mt-10 pb-16",
|
|
13851
13882
|
children: /* @__PURE__ */ u("div", {
|
|
13852
13883
|
className: "grid w-full max-w-6xl grid-cols-2 gap-8",
|
|
13853
|
-
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l(
|
|
13884
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l(Jd, { ...t }), e ? /* @__PURE__ */ l("div", {
|
|
13854
13885
|
className: "mt-8",
|
|
13855
|
-
children: /* @__PURE__ */ l(
|
|
13856
|
-
}) : null] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l(
|
|
13886
|
+
children: /* @__PURE__ */ l(tf, { ...n })
|
|
13887
|
+
}) : null] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l(Yd, { ...r }), /* @__PURE__ */ l("div", {
|
|
13857
13888
|
className: "mt-8",
|
|
13858
|
-
children: /* @__PURE__ */ l(
|
|
13889
|
+
children: /* @__PURE__ */ l(ef, { ...i })
|
|
13859
13890
|
})] })]
|
|
13860
13891
|
})
|
|
13861
|
-
}),
|
|
13892
|
+
}), rf = ({ shippingAddressFormProps: t, billingAddressFormProps: n = {}, checkoutProgressIndicatorProps: r, cartTotalsPanelProps: i, billingSectionTitle: a = "Billing Information", sameAsShipping: o = !0, sameAsShippingLabel: s = "My billing address is the same as my shipping address", onSameAsShippingChange: c }) => {
|
|
13862
13893
|
let [d, f] = e.useState(o);
|
|
13863
13894
|
e.useEffect(() => {
|
|
13864
13895
|
f(o);
|
|
@@ -13869,7 +13900,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13869
13900
|
children: /* @__PURE__ */ u("div", {
|
|
13870
13901
|
className: "grid w-full max-w-6xl grid-cols-2 gap-8",
|
|
13871
13902
|
children: [/* @__PURE__ */ u("div", { children: [
|
|
13872
|
-
/* @__PURE__ */ l(
|
|
13903
|
+
/* @__PURE__ */ l(qd, { ...t }),
|
|
13873
13904
|
/* @__PURE__ */ u("div", {
|
|
13874
13905
|
className: "mt-8 flex flex-col gap-4",
|
|
13875
13906
|
children: [/* @__PURE__ */ l(v, {
|
|
@@ -13889,7 +13920,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13889
13920
|
}),
|
|
13890
13921
|
d ? null : /* @__PURE__ */ l("div", {
|
|
13891
13922
|
className: "mt-6",
|
|
13892
|
-
children: /* @__PURE__ */ l(
|
|
13923
|
+
children: /* @__PURE__ */ l(qd, {
|
|
13893
13924
|
...n,
|
|
13894
13925
|
idPrefix: n.idPrefix ?? "billing",
|
|
13895
13926
|
title: n.title ?? "",
|
|
@@ -13897,16 +13928,16 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13897
13928
|
stateProvinceOptions: m
|
|
13898
13929
|
})
|
|
13899
13930
|
})
|
|
13900
|
-
] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l(
|
|
13931
|
+
] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l(Yd, { ...r }), /* @__PURE__ */ l("div", {
|
|
13901
13932
|
className: "mt-8",
|
|
13902
|
-
children: /* @__PURE__ */ l(
|
|
13933
|
+
children: /* @__PURE__ */ l(ef, { ...i })
|
|
13903
13934
|
})] })]
|
|
13904
13935
|
})
|
|
13905
13936
|
});
|
|
13906
|
-
},
|
|
13937
|
+
}, af = (e, t, n) => new Intl.NumberFormat(t, {
|
|
13907
13938
|
style: "currency",
|
|
13908
13939
|
currency: n
|
|
13909
|
-
}).format(e),
|
|
13940
|
+
}).format(e), of = ({ subtotal: e, shippingCost: t, items: n = [], title: r = "Order Summary", totalLabel: i = "Total", locale: a = "en-US", currency: o = "USD", removeItemLabel: s = "Remove item", decreaseQuantityLabel: c = "Decrease quantity", increaseQuantityLabel: d = "Increase quantity", onQuantityChange: f, onRemoveItem: p }) => {
|
|
13910
13941
|
if (n.length === 0) return null;
|
|
13911
13942
|
let m = e + t;
|
|
13912
13943
|
return /* @__PURE__ */ l("section", {
|
|
@@ -13955,23 +13986,23 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
13955
13986
|
}), /* @__PURE__ */ l(v, {
|
|
13956
13987
|
variant: "free",
|
|
13957
13988
|
className: "text-right font-bold pr-7",
|
|
13958
|
-
children:
|
|
13989
|
+
children: af(m, a, o)
|
|
13959
13990
|
})]
|
|
13960
13991
|
})
|
|
13961
13992
|
})
|
|
13962
13993
|
]
|
|
13963
13994
|
})
|
|
13964
13995
|
});
|
|
13965
|
-
},
|
|
13996
|
+
}, sf = ({ currentStep: e = 0, steps: t = [
|
|
13966
13997
|
"Account",
|
|
13967
13998
|
"Shipping",
|
|
13968
13999
|
"Payment"
|
|
13969
14000
|
], activeMode: n = "signIn", email: r = "", password: i = "", firstName: a = "", lastName: o = "", phoneNumber: s = "", userType: c = "", confirmPassword: d = "", marketingOptIn: f = !1, termsAccepted: p = !1, passwordRequirementsText: m, emailError: h = "", passwordError: g = "", firstNameError: _ = "", phoneNumberError: v = "", userTypeError: y = "", confirmPasswordError: b = "", termsAcceptedError: x = "", emailHasError: S = !1, passwordHasError: C = !1, firstNameHasError: w = !1, phoneNumberHasError: T = !1, userTypeHasError: E = !1, confirmPasswordHasError: D = !1, termsAcceptedHasError: O = !1, actionLabels: k, labels: A, onModeChange: j, onEmailChange: M, onPasswordChange: N, onFirstNameChange: P, onLastNameChange: F, onPhoneNumberChange: I, onUserTypeChange: L, onConfirmPasswordChange: R, onMarketingOptInChange: z, onTermsAcceptedChange: B, onEmailBlur: V, onPasswordBlur: ee, onForgotPasswordClick: te, onTermsClick: ne, onPrivacyClick: re, onContinue: ie, onContinueAsGuest: ae }) => /* @__PURE__ */ u("div", {
|
|
13970
14001
|
className: "flex w-full flex-col gap-8",
|
|
13971
|
-
children: [/* @__PURE__ */ l(
|
|
14002
|
+
children: [/* @__PURE__ */ l(Yd, {
|
|
13972
14003
|
steps: t,
|
|
13973
14004
|
currentStep: e
|
|
13974
|
-
}), /* @__PURE__ */ l(
|
|
14005
|
+
}), /* @__PURE__ */ l(Zu, {
|
|
13975
14006
|
data: {
|
|
13976
14007
|
mode: n,
|
|
13977
14008
|
email: r,
|
|
@@ -14019,15 +14050,15 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14019
14050
|
onCreateAccountClick: ie,
|
|
14020
14051
|
onSecondaryClick: ae
|
|
14021
14052
|
})]
|
|
14022
|
-
}),
|
|
14053
|
+
}), cf = (e) => e.customerState === "authenticated" ? /* @__PURE__ */ l("section", {
|
|
14023
14054
|
className: "mt-10 flex w-full justify-center px-4 pb-16 md:px-6",
|
|
14024
14055
|
children: /* @__PURE__ */ u("div", {
|
|
14025
14056
|
className: "w-full max-w-3xl",
|
|
14026
14057
|
children: [
|
|
14027
|
-
/* @__PURE__ */ l(
|
|
14058
|
+
/* @__PURE__ */ l(Yd, { ...e.checkoutProgressIndicatorProps }),
|
|
14028
14059
|
/* @__PURE__ */ l("div", {
|
|
14029
14060
|
className: "mt-8",
|
|
14030
|
-
children: /* @__PURE__ */ l(
|
|
14061
|
+
children: /* @__PURE__ */ l(of, { ...e.cartSummaryProps })
|
|
14031
14062
|
}),
|
|
14032
14063
|
/* @__PURE__ */ l("div", {
|
|
14033
14064
|
className: "mt-6 flex justify-end",
|
|
@@ -14050,9 +14081,9 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14050
14081
|
className: "mt-10 flex w-full justify-center px-4 pb-16 md:px-6",
|
|
14051
14082
|
children: /* @__PURE__ */ u("div", {
|
|
14052
14083
|
className: "grid w-full max-w-6xl grid-cols-1 gap-8 md:grid-cols-2",
|
|
14053
|
-
children: [/* @__PURE__ */ l(
|
|
14084
|
+
children: [/* @__PURE__ */ l(of, { ...e.cartSummaryProps }), /* @__PURE__ */ l(sf, { ...e.checkoutAccountStepProps })]
|
|
14054
14085
|
})
|
|
14055
|
-
}),
|
|
14086
|
+
}), lf = ({ pageTitle: e, pageDescription: t, sideNavProps: n, headerLeading: r, headerActions: i, backgroundJobTrayProps: a, children: o }) => {
|
|
14056
14087
|
let s = t?.trim() ?? "";
|
|
14057
14088
|
return /* @__PURE__ */ l("div", {
|
|
14058
14089
|
className: "min-h-screen bg-secondary",
|
|
@@ -14093,7 +14124,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14093
14124
|
]
|
|
14094
14125
|
})
|
|
14095
14126
|
});
|
|
14096
|
-
},
|
|
14127
|
+
}, uf = {
|
|
14097
14128
|
loading: {
|
|
14098
14129
|
iconName: "spinner",
|
|
14099
14130
|
iconClassName: "text-tertiary",
|
|
@@ -14109,14 +14140,14 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14109
14140
|
iconClassName: "text-accent",
|
|
14110
14141
|
defaultTitle: "Unable to load data"
|
|
14111
14142
|
}
|
|
14112
|
-
},
|
|
14143
|
+
}, df = (e) => {
|
|
14113
14144
|
if (e === "loading") return "status";
|
|
14114
14145
|
if (e === "error") return "alert";
|
|
14115
|
-
},
|
|
14146
|
+
}, ff = ({ status: e, action: t, onRetryClick: n }) => {
|
|
14116
14147
|
if (e.state === "ready") return null;
|
|
14117
|
-
let r =
|
|
14148
|
+
let r = uf[e.state], i = e.title?.trim() || r.defaultTitle, a = e.message?.trim() ?? "", o = e.detail?.trim() ?? "";
|
|
14118
14149
|
return /* @__PURE__ */ l("section", {
|
|
14119
|
-
role:
|
|
14150
|
+
role: df(e.state),
|
|
14120
14151
|
"aria-live": e.state === "loading" ? "polite" : void 0,
|
|
14121
14152
|
className: "mt-5 flex min-h-64 items-center justify-center rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm",
|
|
14122
14153
|
children: /* @__PURE__ */ u("div", {
|
|
@@ -14167,7 +14198,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14167
14198
|
]
|
|
14168
14199
|
})
|
|
14169
14200
|
});
|
|
14170
|
-
},
|
|
14201
|
+
}, pf = (e) => e === "error" ? "border-accent bg-accent/10" : e === "warning" ? "border-yellow-500 bg-yellow-50" : e === "success" ? "border-saleGreen bg-green-50" : "border-borderTertiary bg-adminSideNavBackground", mf = (e) => {
|
|
14171
14202
|
let t = e.onBackClick ? /* @__PURE__ */ l(P, {
|
|
14172
14203
|
label: e.backLabel ?? "Back to browse",
|
|
14173
14204
|
iconType: "fa-solid",
|
|
@@ -14181,14 +14212,14 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14181
14212
|
}) : void 0;
|
|
14182
14213
|
if (!("data" in e)) {
|
|
14183
14214
|
let n = e.state === "notFound" || e.state === "empty" ? "empty" : e.state;
|
|
14184
|
-
return /* @__PURE__ */ u(
|
|
14215
|
+
return /* @__PURE__ */ u(lf, {
|
|
14185
14216
|
pageTitle: e.pageTitle,
|
|
14186
14217
|
sideNavProps: e.sideNavProps,
|
|
14187
14218
|
backgroundJobTrayProps: e.backgroundJobTrayProps,
|
|
14188
14219
|
children: [t ? /* @__PURE__ */ l("div", {
|
|
14189
14220
|
className: "mt-5",
|
|
14190
14221
|
children: t
|
|
14191
|
-
}) : null, /* @__PURE__ */ l(
|
|
14222
|
+
}) : null, /* @__PURE__ */ l(ff, {
|
|
14192
14223
|
status: {
|
|
14193
14224
|
state: n,
|
|
14194
14225
|
message: e.message,
|
|
@@ -14206,7 +14237,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14206
14237
|
], D = (n.availableTabs ?? E).filter((e) => e !== "availability" || T.length), O = n.mode === "create", k = n.region === "north-america", A = n.lxImport?.state === "loading", j = k && !O && !!n.lxImport, M = x.name.trim() || "New decor", N = `Decor ${x.decorCode} · Range ${x.rangeCode}`;
|
|
14207
14238
|
O && (N = "Enter a decor code to begin", x.decorCode.trim() && (N = `Decor ${x.decorCode}`, x.rangeCode.trim() && (N += ` · Range ${x.rangeCode}`)));
|
|
14208
14239
|
let F = C.activeLocalization.saveStatus === "saving", I = C.searchColorFieldId ? [...C.sharedFields, ...C.localizedFields].filter((e) => e.id === C.searchColorFieldId) : [], R = C.decorFlagFieldId ? C.sharedFields.filter((e) => e.id === C.decorFlagFieldId) : [], z = C.sharedFields.filter((e) => e.id !== C.searchColorFieldId && e.id !== C.decorFlagFieldId), B = C.localizedFields.filter((e) => e.id !== C.searchColorFieldId);
|
|
14209
|
-
return /* @__PURE__ */ u(
|
|
14240
|
+
return /* @__PURE__ */ u(lf, {
|
|
14210
14241
|
pageTitle: n.pageTitle,
|
|
14211
14242
|
pageDescription: n.pageDescription,
|
|
14212
14243
|
sideNavProps: r,
|
|
@@ -14247,7 +14278,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14247
14278
|
}) : null,
|
|
14248
14279
|
n.notice ? /* @__PURE__ */ u("section", {
|
|
14249
14280
|
role: n.notice.tone === "error" ? "alert" : "status",
|
|
14250
|
-
className: `mt-4 rounded-lg border p-4 ${
|
|
14281
|
+
className: `mt-4 rounded-lg border p-4 ${pf(n.notice.tone)}`,
|
|
14251
14282
|
children: [
|
|
14252
14283
|
n.notice.title ? /* @__PURE__ */ l(v, {
|
|
14253
14284
|
variant: "free",
|
|
@@ -14462,7 +14493,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14462
14493
|
})
|
|
14463
14494
|
}), /* @__PURE__ */ l("aside", {
|
|
14464
14495
|
className: "rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm",
|
|
14465
|
-
children: /* @__PURE__ */ l(
|
|
14496
|
+
children: /* @__PURE__ */ l(wu, {
|
|
14466
14497
|
title: "Decor localizations",
|
|
14467
14498
|
markets: C.markets,
|
|
14468
14499
|
selectedLocalizationId: C.activeLocalization.id,
|
|
@@ -14500,7 +14531,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14500
14531
|
}) : null
|
|
14501
14532
|
]
|
|
14502
14533
|
});
|
|
14503
|
-
},
|
|
14534
|
+
}, hf = ({ pageTitle: e, welcomeTitle: t, welcomeMessage: n, aboutTitle: r, aboutDescription: i, sideNavProps: a }) => /* @__PURE__ */ l("div", {
|
|
14504
14535
|
className: "min-h-screen bg-secondary",
|
|
14505
14536
|
children: /* @__PURE__ */ u("div", {
|
|
14506
14537
|
className: "flex min-h-screen overflow-hidden bg-secondary",
|
|
@@ -14560,21 +14591,21 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14560
14591
|
})]
|
|
14561
14592
|
})]
|
|
14562
14593
|
})
|
|
14563
|
-
}),
|
|
14594
|
+
}), gf = (e) => e === "admin" ? "Admin" : "User", _f = ({ message: e, tone: t = "default" }) => /* @__PURE__ */ l("section", {
|
|
14564
14595
|
className: "rounded-lg border border-borderTertiary bg-secondary p-5",
|
|
14565
14596
|
children: /* @__PURE__ */ l(v, {
|
|
14566
14597
|
variant: "free",
|
|
14567
14598
|
className: `text-sm ${t === "error" ? "text-accent" : "text-primary"}`,
|
|
14568
14599
|
children: e
|
|
14569
14600
|
})
|
|
14570
|
-
}),
|
|
14601
|
+
}), vf = ({ message: e }) => {
|
|
14571
14602
|
let t = e?.trim() ?? "";
|
|
14572
14603
|
return t ? /* @__PURE__ */ l(v, {
|
|
14573
14604
|
variant: "free",
|
|
14574
14605
|
className: "text-sm text-accent",
|
|
14575
14606
|
children: t
|
|
14576
14607
|
}) : null;
|
|
14577
|
-
},
|
|
14608
|
+
}, yf = ({ pageTitle: e, pageDescription: t, sideNavProps: n, hasAdminAccess: r, accessRequiredTitle: i = "Admin Access Required", accessRequiredMessage: a = "Your account can use Data Forge, but only admins can manage the allow list.", state: o, loadingMessage: s = "Loading authorization users...", errorMessage: c = "Data Forge could not load the allow list.", createUserDraft: d, roleOptions: f, regionOptions: p, users: m, defaultRegionLabel: h = "Default Region", defaultRegionPlaceholder: g = "Select region", createMessage: _, updateMessage: y, deleteMessage: b, createPending: x = !1, updatePending: S = !1, deletePending: C = !1, deleteUserEmail: w, addUserLabel: T = "Add User", addingUserLabel: E = "Adding...", updateLabel: D = "Update", updatingLabel: O = "Updating...", activateLabel: k = "Activate", suspendLabel: A = "Suspend", removeLabel: j = "Remove", removingLabel: M = "Removing...", cancelLabel: N = "Cancel", onNewUserEmailChange: F, onNewUserRoleChange: I, onNewUserActiveChange: L, onNewUserDefaultRegionChange: R, onCreateUser: z, onRowUpdate: B, onUserActiveToggle: V, onDeleteUserRequest: ee, onDeleteModalClose: te, onDeleteUserConfirm: ne }) => {
|
|
14578
14609
|
let re = t?.trim() ?? "", ie = d.active && !d.defaultRegion.trim(), ae = m.map((e) => ({
|
|
14579
14610
|
id: e.email,
|
|
14580
14611
|
values: {
|
|
@@ -14595,7 +14626,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14595
14626
|
variant: "free",
|
|
14596
14627
|
className: "mt-1 text-xs text-tertiary",
|
|
14597
14628
|
children: [
|
|
14598
|
-
|
|
14629
|
+
gf(e.role),
|
|
14599
14630
|
" - ",
|
|
14600
14631
|
e.active ? "Active" : "Inactive",
|
|
14601
14632
|
e.isCurrentUser ? " - Current user" : ""
|
|
@@ -14742,13 +14773,13 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14742
14773
|
})
|
|
14743
14774
|
]
|
|
14744
14775
|
}),
|
|
14745
|
-
/* @__PURE__ */ l(
|
|
14746
|
-
o === "loading" ? /* @__PURE__ */ l(
|
|
14747
|
-
o === "error" ? /* @__PURE__ */ l(
|
|
14776
|
+
/* @__PURE__ */ l(vf, { message: _ }),
|
|
14777
|
+
o === "loading" ? /* @__PURE__ */ l(_f, { message: s }) : null,
|
|
14778
|
+
o === "error" ? /* @__PURE__ */ l(_f, {
|
|
14748
14779
|
message: c,
|
|
14749
14780
|
tone: "error"
|
|
14750
14781
|
}) : null,
|
|
14751
|
-
/* @__PURE__ */ l(
|
|
14782
|
+
/* @__PURE__ */ l(Mu, {
|
|
14752
14783
|
ariaLabel: "Authorization users",
|
|
14753
14784
|
columns: [
|
|
14754
14785
|
{
|
|
@@ -14801,7 +14832,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14801
14832
|
updateDisabled: S,
|
|
14802
14833
|
onRowUpdate: B
|
|
14803
14834
|
}),
|
|
14804
|
-
/* @__PURE__ */ l(
|
|
14835
|
+
/* @__PURE__ */ l(vf, { message: y }),
|
|
14805
14836
|
/* @__PURE__ */ u("section", {
|
|
14806
14837
|
"aria-label": "Authorization user actions",
|
|
14807
14838
|
className: "grid gap-3 rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm",
|
|
@@ -14823,7 +14854,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14823
14854
|
className: "grid gap-2",
|
|
14824
14855
|
children: m.map(oe)
|
|
14825
14856
|
}),
|
|
14826
|
-
/* @__PURE__ */ l(
|
|
14857
|
+
/* @__PURE__ */ l(vf, { message: b })
|
|
14827
14858
|
]
|
|
14828
14859
|
})
|
|
14829
14860
|
]
|
|
@@ -14885,7 +14916,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14885
14916
|
})
|
|
14886
14917
|
})]
|
|
14887
14918
|
});
|
|
14888
|
-
},
|
|
14919
|
+
}, bf = {
|
|
14889
14920
|
loading: {
|
|
14890
14921
|
iconName: "spinner",
|
|
14891
14922
|
iconClassName: "text-tertiary",
|
|
@@ -14906,11 +14937,11 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14906
14937
|
iconClassName: "text-accent",
|
|
14907
14938
|
iconSurfaceClassName: "bg-accent/10"
|
|
14908
14939
|
}
|
|
14909
|
-
},
|
|
14940
|
+
}, xf = (e) => {
|
|
14910
14941
|
if (e === "loading") return "status";
|
|
14911
14942
|
if (e === "error") return "alert";
|
|
14912
|
-
},
|
|
14913
|
-
let d = e?.trim() ?? "", f = r?.trim() ?? "", p =
|
|
14943
|
+
}, Sf = ({ eyebrow: e, title: t, description: n, detail: r, tone: i, primaryAction: a, secondaryAction: o, informationGroups: s = [], onActionClick: c }) => {
|
|
14944
|
+
let d = e?.trim() ?? "", f = r?.trim() ?? "", p = bf[i], m = (e, t) => /* @__PURE__ */ l(P, {
|
|
14914
14945
|
label: e.label,
|
|
14915
14946
|
iconAlt: "",
|
|
14916
14947
|
iconName: e.loading ? "spinner" : e.iconName,
|
|
@@ -14924,7 +14955,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14924
14955
|
return /* @__PURE__ */ l("main", {
|
|
14925
14956
|
className: "flex min-h-screen items-center justify-center bg-tertiaryActive px-4 py-10",
|
|
14926
14957
|
children: /* @__PURE__ */ u("section", {
|
|
14927
|
-
role:
|
|
14958
|
+
role: xf(i),
|
|
14928
14959
|
"aria-live": i === "loading" ? "polite" : void 0,
|
|
14929
14960
|
"aria-busy": i === "loading" || void 0,
|
|
14930
14961
|
className: "w-full max-w-2xl rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm md:p-10",
|
|
@@ -14991,7 +15022,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
14991
15022
|
]
|
|
14992
15023
|
})
|
|
14993
15024
|
});
|
|
14994
|
-
},
|
|
15025
|
+
}, Cf = ({ pageTitle: e, pageDescription: t, sideNavProps: r, regionOptions: i, regionValue: a, regionLabel: s = "Region", regionPlaceholder: d = "Select region", regionHelpText: f = "Searches and changes will use product data from this region.", regionDisabled: p = !1, searchValue: m, searchLabel: h = "Search decors", searchPlaceholder: g, searchDisabled: _ = !1, browseMode: y = "decors", manageRangesLabel: b = "Manage ranges", rangeOptions: x, rangeResults: S = [], rangeResultCount: C = 0, selectedRangeId: T, rangePromptTitle: E = "Select a range to view its decors", rangePromptMessage: D = "Choose a range above to load its market-readiness records.", emptyRangeTitle: O = "No decors found", emptyRangeMessage: k = "Click the button to add the first decor to this range.", resultCount: A, resultLabel: j = "decors", addDecorLabel: M = "Add a new decor", addFirstDecorLabel: N = "Add the first decor", addRangeLabel: F = "New Range", groups: I, status: L = { state: "ready" }, hasMore: R = !1, loadingMore: z = !1, loadMoreLabel: B, deleteDecorTarget: V, deleteDecorConfirmationValue: ee = "", deleteDecorPending: te = !1, deleteDecorErrorMessage: ne, deleteDecorTitle: re = "Delete decor?", deleteDecorLabel: ie = "Delete decor", deletingDecorLabel: ae = "Deleting...", deleteDecorCancelLabel: H = "Cancel", deleteDecorCloseLabel: oe = "Close delete decor dialog", deleteRangeTarget: U, deleteRangeConfirmationValue: se = "", deleteRangePending: W = !1, deleteRangeErrorMessage: ce, deleteRangeTitle: le = "Delete range?", deleteRangeLabel: ue = "Delete range", deletingRangeLabel: de = "Deleting...", deleteRangeCancelLabel: fe = "Cancel", deleteRangeCloseLabel: pe = "Close delete range dialog", onRegionChange: me, onSearchChange: G, onSearchSubmit: he, onRangeSelect: ge, onManageRangesClick: K, onAddDecorClick: _e, onAddRangeClick: ve, onRangeClick: ye, onDeleteRangeRequest: be, onDeleteRangeConfirmationChange: xe, onDeleteRangeCancel: Se, onDeleteRangeConfirm: Ce, onDecorClick: we, onDeleteDecorRequest: Te, onDeleteDecorConfirmationChange: Ee, onDeleteDecorCancel: De, onDeleteDecorConfirm: Oe, onLoadMore: ke, onRetryClick: Ae }) => {
|
|
14995
15026
|
let je = o(null), Me = o({
|
|
14996
15027
|
options: x,
|
|
14997
15028
|
selectedRangeId: T
|
|
@@ -15030,7 +15061,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15030
15061
|
disabled: !ke,
|
|
15031
15062
|
onClick: ke
|
|
15032
15063
|
})), /* @__PURE__ */ u(c, { children: [
|
|
15033
|
-
/* @__PURE__ */ l(
|
|
15064
|
+
/* @__PURE__ */ l(lf, {
|
|
15034
15065
|
pageTitle: e,
|
|
15035
15066
|
pageDescription: t,
|
|
15036
15067
|
sideNavProps: r,
|
|
@@ -15121,11 +15152,11 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15121
15152
|
})]
|
|
15122
15153
|
})
|
|
15123
15154
|
}) : null,
|
|
15124
|
-
L.state !== "ready" && L.state !== "loading" ? /* @__PURE__ */ l(
|
|
15155
|
+
L.state !== "ready" && L.state !== "loading" ? /* @__PURE__ */ l(ff, {
|
|
15125
15156
|
status: L,
|
|
15126
15157
|
onRetryClick: Ae
|
|
15127
15158
|
}) : null,
|
|
15128
|
-
L.state === "ready" && !J && !He && !Ue ? /* @__PURE__ */ l(
|
|
15159
|
+
L.state === "ready" && !J && !He && !Ue ? /* @__PURE__ */ l(ff, { status: {
|
|
15129
15160
|
state: "empty",
|
|
15130
15161
|
title: E,
|
|
15131
15162
|
message: D
|
|
@@ -15144,7 +15175,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15144
15175
|
})]
|
|
15145
15176
|
}), /* @__PURE__ */ l("div", {
|
|
15146
15177
|
className: "mt-5",
|
|
15147
|
-
children: /* @__PURE__ */ l(
|
|
15178
|
+
children: /* @__PURE__ */ l(Pu, {
|
|
15148
15179
|
ranges: S,
|
|
15149
15180
|
emptyMessage: "No ranges are available.",
|
|
15150
15181
|
onRangeClick: Fe ? void 0 : ye,
|
|
@@ -15176,7 +15207,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15176
15207
|
onClick: () => _e?.({ rangeId: Pe })
|
|
15177
15208
|
})]
|
|
15178
15209
|
})]
|
|
15179
|
-
}), Je ? /* @__PURE__ */ l(
|
|
15210
|
+
}), Je ? /* @__PURE__ */ l(ff, {
|
|
15180
15211
|
status: {
|
|
15181
15212
|
state: "empty",
|
|
15182
15213
|
title: O,
|
|
@@ -15194,7 +15225,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15194
15225
|
})
|
|
15195
15226
|
}) : /* @__PURE__ */ l("div", {
|
|
15196
15227
|
className: "mt-5",
|
|
15197
|
-
children: /* @__PURE__ */ l(
|
|
15228
|
+
children: /* @__PURE__ */ l(Nu, {
|
|
15198
15229
|
groups: I,
|
|
15199
15230
|
itemLabel: j,
|
|
15200
15231
|
showGroupHeaders: !1,
|
|
@@ -15399,7 +15430,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15399
15430
|
}) : null
|
|
15400
15431
|
})
|
|
15401
15432
|
] });
|
|
15402
|
-
},
|
|
15433
|
+
}, wf = ({ pageTitle: e, pageDescription: t, sideNavProps: n, mode: r, rangeId: i, name: a, bynderName: o, rangeCode: s, productFamilyCode: d = "", company: f, companyCode: p, region: m, subRegion: h = "", companyOptions: g, productFamilyOptions: _ = [], regionOptions: y, subRegionOptions: b, status: x = { state: "ready" }, fieldErrors: C = {}, formDisabled: w = !1, saveDisabled: T = !1, savePending: E = !1, saveErrorMessage: D, deleteDialogOpen: O = !1, deleteConfirmationValue: k = "", deletePending: A = !1, deleteErrorMessage: j, detailsTitle: M = "Range details", detailsDescription: N = "These details determine where the range appears in Market Readiness.", saveLabel: F = r === "create" ? "Create range" : "Save changes", savingLabel: I = "Saving...", cancelLabel: R = "Cancel", deleteTitle: z = "Delete range?", deleteLabel: B = "Delete range", deletingLabel: V = "Deleting...", deleteCancelLabel: ee = "Cancel", deleteCloseLabel: te = "Close delete range dialog", onNameChange: ne, onBynderNameChange: re, onRangeCodeChange: ie, onProductFamilyCodeChange: ae, onCompanyChange: H, onCompanyCodeChange: oe, onRegionChange: U, onSubRegionChange: se, onSaveClick: W, onCancelClick: ce, onDeleteRequest: le, onDeleteConfirmationChange: ue, onDeleteCancel: de, onDeleteConfirm: fe, onRetryClick: pe }) => {
|
|
15403
15434
|
let me = Le(f), G = w || E, he = !!b?.length, ge = m === "europe" || m === "asia", K = m === "europe" ? "Product Family (EU)" : "Product Family (AS)", _e = b ?? [], ve = ge && !h.trim() ? "ALL" : h, ye = a.trim() || "New range", be = g.find((e) => e.value === f)?.label ?? f, xe = y.find((e) => e.value === m)?.label ?? m, Se = _e.find((e) => e.value === ve)?.label ?? ve, Ce = p.trim() ? `${be} (${p})` : be, q = [
|
|
15404
15435
|
s.trim() ? `Range ${s}` : "",
|
|
15405
15436
|
Ce,
|
|
@@ -15409,7 +15440,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15409
15440
|
rangeId: i,
|
|
15410
15441
|
rangeCode: s
|
|
15411
15442
|
} : void 0, Ee = !!(Te && s.trim() && k.trim() === s.trim());
|
|
15412
|
-
return /* @__PURE__ */ u(
|
|
15443
|
+
return /* @__PURE__ */ u(lf, {
|
|
15413
15444
|
pageTitle: e,
|
|
15414
15445
|
pageDescription: t,
|
|
15415
15446
|
sideNavProps: n,
|
|
@@ -15749,7 +15780,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15749
15780
|
]
|
|
15750
15781
|
})
|
|
15751
15782
|
]
|
|
15752
|
-
})] }) : /* @__PURE__ */ l(
|
|
15783
|
+
})] }) : /* @__PURE__ */ l(ff, {
|
|
15753
15784
|
status: x,
|
|
15754
15785
|
onRetryClick: pe
|
|
15755
15786
|
}), /* @__PURE__ */ l(Hc, {
|
|
@@ -15829,7 +15860,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15829
15860
|
}) : null
|
|
15830
15861
|
})]
|
|
15831
15862
|
});
|
|
15832
|
-
},
|
|
15863
|
+
}, Tf = ({ pageTitle: e, pageDescription: t, backLabel: n, sideNavProps: r, report: i, status: a = { state: "ready" }, pagination: o, onBackClick: s, onRetryClick: d, onPreviousPageClick: f, onNextPageClick: p }) => /* @__PURE__ */ l(lf, {
|
|
15833
15864
|
pageTitle: e,
|
|
15834
15865
|
pageDescription: t,
|
|
15835
15866
|
sideNavProps: r,
|
|
@@ -15846,7 +15877,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15846
15877
|
}) : void 0,
|
|
15847
15878
|
children: a.state === "ready" ? /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("div", {
|
|
15848
15879
|
className: "mt-5",
|
|
15849
|
-
children: /* @__PURE__ */ l(
|
|
15880
|
+
children: /* @__PURE__ */ l(Mu, { ...i })
|
|
15850
15881
|
}), o ? /* @__PURE__ */ u("nav", {
|
|
15851
15882
|
"aria-label": "Report pagination",
|
|
15852
15883
|
className: "mt-5 flex justify-end gap-3",
|
|
@@ -15870,11 +15901,11 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15870
15901
|
disabled: o.nextDisabled,
|
|
15871
15902
|
onClick: p
|
|
15872
15903
|
})]
|
|
15873
|
-
}) : null] }) : /* @__PURE__ */ l(
|
|
15904
|
+
}) : null] }) : /* @__PURE__ */ l(ff, {
|
|
15874
15905
|
status: a,
|
|
15875
15906
|
onRetryClick: d
|
|
15876
15907
|
})
|
|
15877
|
-
}),
|
|
15908
|
+
}), Ef = (e) => new Intl.NumberFormat("en-US").format(e), Df = ({ title: e, description: t, iconName: n, children: r }) => /* @__PURE__ */ u("article", {
|
|
15878
15909
|
className: "flex w-full flex-col rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:flex-row md:items-start md:gap-6",
|
|
15879
15910
|
children: [/* @__PURE__ */ u("div", {
|
|
15880
15911
|
className: "flex items-start gap-3",
|
|
@@ -15903,7 +15934,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15903
15934
|
className: "mt-5 flex flex-1 flex-col md:mt-0",
|
|
15904
15935
|
children: r
|
|
15905
15936
|
})]
|
|
15906
|
-
}),
|
|
15937
|
+
}), Of = ({ status: e, message: t }) => {
|
|
15907
15938
|
let n = t?.trim() ?? "";
|
|
15908
15939
|
if (!n || e === "idle") return null;
|
|
15909
15940
|
let r = "text-primary";
|
|
@@ -15913,7 +15944,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15913
15944
|
className: `mt-3 text-sm ${r}`,
|
|
15914
15945
|
children: n
|
|
15915
15946
|
});
|
|
15916
|
-
},
|
|
15947
|
+
}, kf = ({ dataSource: e }) => /* @__PURE__ */ u("dl", {
|
|
15917
15948
|
className: "grid gap-3 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3",
|
|
15918
15949
|
children: [
|
|
15919
15950
|
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("dt", {
|
|
@@ -15936,7 +15967,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15936
15967
|
children: "Records"
|
|
15937
15968
|
}), /* @__PURE__ */ l("dd", {
|
|
15938
15969
|
className: "mt-1 text-sm text-primary",
|
|
15939
|
-
children:
|
|
15970
|
+
children: Ef(e.recordCount)
|
|
15940
15971
|
})] })]
|
|
15941
15972
|
}),
|
|
15942
15973
|
/* @__PURE__ */ u("div", {
|
|
@@ -15963,9 +15994,9 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15963
15994
|
children: e.latestReport.label
|
|
15964
15995
|
})] }) : null
|
|
15965
15996
|
]
|
|
15966
|
-
}),
|
|
15997
|
+
}), Af = ({ pageTitle: e, pageDescription: t, sideNavProps: n, status: r = { state: "ready" }, dataSource: i, existingDataTitle: a = "Continue with saved data", existingDataEmptyTitle: s = "No saved data set yet", existingDataEmptyDescription: d = "Start by uploading a Salsify report or downloading the latest data directly from Salsify.", useExistingDataLabel: f = "Use Saved Data", uploadTitle: p = "Upload a Salsify report", uploadDescription: m = "Use a report exported from Salsify when you already have the file ready.", uploadDropLabel: h = "Drag a report file here", uploadBrowseLabel: g = "Select File", uploadHelpText: _ = "JSON exports from Salsify are supported.", selectedFile: y, uploadStatus: b = "idle", uploadStatusMessage: x, uploadLabel: C = "Upload Report", uploadDisabled: w = !1, clearFileLabel: T = "Clear File", directDownloadTitle: E = "Download from Salsify", directDownloadDescription: D = "Choose a product range and Data Forge will request the latest records for you.", rangeLabel: O = "Product Range", rangePlaceholder: k = "Select a range", rangeOptions: A, selectedRangeValue: j = "", directDownloadLabel: M = "Download Latest Data", downloadStatus: N = "idle", downloadStatusMessage: F, downloadDisabled: I = !1, onUseExistingDataClick: L, onReportFileSelect: R, onUploadClick: z, onClearSelectedFileClick: B, onRangeChange: V, onDirectDownloadClick: ee, onRetryClick: te }) => {
|
|
15967
15998
|
let ne = o(null), re = b === "pending", ie = N === "pending", ae = (e) => R?.({ files: Array.from(e ?? []) });
|
|
15968
|
-
return /* @__PURE__ */ l(
|
|
15999
|
+
return /* @__PURE__ */ l(lf, {
|
|
15969
16000
|
pageTitle: e,
|
|
15970
16001
|
pageDescription: t,
|
|
15971
16002
|
sideNavProps: n,
|
|
@@ -15973,11 +16004,11 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15973
16004
|
"aria-label": "Choose data source",
|
|
15974
16005
|
className: "mt-6 flex flex-col gap-4",
|
|
15975
16006
|
children: [
|
|
15976
|
-
/* @__PURE__ */ l(
|
|
16007
|
+
/* @__PURE__ */ l(Df, {
|
|
15977
16008
|
title: i ? a : s,
|
|
15978
16009
|
description: i ? "Review the saved data set and continue if it is the right source for this review." : d,
|
|
15979
16010
|
iconName: i ? "database" : "circle-info",
|
|
15980
|
-
children: i ? /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l(
|
|
16011
|
+
children: i ? /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l(kf, { dataSource: i }), /* @__PURE__ */ l("div", {
|
|
15981
16012
|
className: "mt-auto pt-5",
|
|
15982
16013
|
children: /* @__PURE__ */ l(P, {
|
|
15983
16014
|
label: f,
|
|
@@ -15999,7 +16030,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
15999
16030
|
})
|
|
16000
16031
|
})
|
|
16001
16032
|
}),
|
|
16002
|
-
/* @__PURE__ */ u(
|
|
16033
|
+
/* @__PURE__ */ u(Df, {
|
|
16003
16034
|
title: p,
|
|
16004
16035
|
description: m,
|
|
16005
16036
|
iconName: "file-arrow-up",
|
|
@@ -16102,13 +16133,13 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16102
16133
|
})]
|
|
16103
16134
|
})]
|
|
16104
16135
|
}) : null,
|
|
16105
|
-
/* @__PURE__ */ l(
|
|
16136
|
+
/* @__PURE__ */ l(Of, {
|
|
16106
16137
|
status: b,
|
|
16107
16138
|
message: x
|
|
16108
16139
|
})
|
|
16109
16140
|
]
|
|
16110
16141
|
}),
|
|
16111
|
-
/* @__PURE__ */ u(
|
|
16142
|
+
/* @__PURE__ */ u(Df, {
|
|
16112
16143
|
title: E,
|
|
16113
16144
|
description: D,
|
|
16114
16145
|
iconName: "cloud-arrow-down",
|
|
@@ -16144,19 +16175,19 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16144
16175
|
onClick: ee
|
|
16145
16176
|
})
|
|
16146
16177
|
}),
|
|
16147
|
-
/* @__PURE__ */ l(
|
|
16178
|
+
/* @__PURE__ */ l(Of, {
|
|
16148
16179
|
status: N,
|
|
16149
16180
|
message: F
|
|
16150
16181
|
})
|
|
16151
16182
|
]
|
|
16152
16183
|
})
|
|
16153
16184
|
]
|
|
16154
|
-
}) : /* @__PURE__ */ l(
|
|
16185
|
+
}) : /* @__PURE__ */ l(ff, {
|
|
16155
16186
|
status: r,
|
|
16156
16187
|
onRetryClick: te
|
|
16157
16188
|
})
|
|
16158
16189
|
});
|
|
16159
|
-
},
|
|
16190
|
+
}, jf = (e, t, n) => `${e.toLocaleString()} ${e === 1 ? t : n}`, Mf = ({ status: e, message: t }) => {
|
|
16160
16191
|
let n = t?.trim() ?? "";
|
|
16161
16192
|
return !n || e === "idle" ? null : /* @__PURE__ */ l(v, {
|
|
16162
16193
|
role: e === "error" ? "alert" : "status",
|
|
@@ -16164,7 +16195,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16164
16195
|
className: `mt-3 text-sm ${e === "error" ? "text-accent" : "text-primary"}`,
|
|
16165
16196
|
children: n
|
|
16166
16197
|
});
|
|
16167
|
-
},
|
|
16198
|
+
}, Nf = ({ label: e, options: t, value: n, disabled: r = !1, onSelect: i }) => /* @__PURE__ */ u("fieldset", { children: [/* @__PURE__ */ u("legend", {
|
|
16168
16199
|
className: "text-sm font-bold text-primary",
|
|
16169
16200
|
children: [e, n ? null : /* @__PURE__ */ u("span", {
|
|
16170
16201
|
className: "ml-3 text-xs font-normal text-accent",
|
|
@@ -16193,9 +16224,9 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16193
16224
|
onClick: () => i(e.value)
|
|
16194
16225
|
}, e.value);
|
|
16195
16226
|
})
|
|
16196
|
-
})] }),
|
|
16227
|
+
})] }), Pf = ({ pageTitle: e, pageDescription: t, sideNavProps: n, status: i = { state: "ready" }, existingImportSet: a, regionOptions: s, selectedRegion: c, localityOptions: d, selectedLocality: f, localityDisabled: p = !1, intentOptions: m, selectedIntent: h, selectedFile: g, uploadStatus: _ = "idle", uploadStatusMessage: y, uploadDisabled: b = !1, continueExistingLabel: x = "Continue Import Set", uploadLabel: C = "Upload and Continue", clearFileLabel: w = "Clear File", onContinueExistingClick: T, onRegionChange: E, onLocalityChange: D, onIntentChange: O, onFileSelect: k, onClearSelectedFileClick: A, onUploadClick: j, onRetryClick: M }) => {
|
|
16197
16228
|
let N = o(null), F = r(), I = _ === "pending", L = I || !c.trim() || !f.trim() || !h, R = (e) => k?.({ files: Array.from(e ?? []).slice(0, 1) });
|
|
16198
|
-
return /* @__PURE__ */ l(
|
|
16229
|
+
return /* @__PURE__ */ l(lf, {
|
|
16199
16230
|
pageTitle: e,
|
|
16200
16231
|
pageDescription: t,
|
|
16201
16232
|
sideNavProps: n,
|
|
@@ -16241,9 +16272,9 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16241
16272
|
variant: "free",
|
|
16242
16273
|
className: "mt-1 text-sm text-tertiary",
|
|
16243
16274
|
children: [
|
|
16244
|
-
a.rangeCount === void 0 ? null :
|
|
16245
|
-
a.decorCount === void 0 ? null :
|
|
16246
|
-
a.skuCount === void 0 ? null :
|
|
16275
|
+
a.rangeCount === void 0 ? null : jf(a.rangeCount, "range", "ranges"),
|
|
16276
|
+
a.decorCount === void 0 ? null : jf(a.decorCount, "decor", "decors"),
|
|
16277
|
+
a.skuCount === void 0 ? null : jf(a.skuCount, "SKU", "SKUs")
|
|
16247
16278
|
].filter(Boolean).join(" · ")
|
|
16248
16279
|
})
|
|
16249
16280
|
] }), /* @__PURE__ */ l(v, {
|
|
@@ -16294,14 +16325,14 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16294
16325
|
onChange: E
|
|
16295
16326
|
})
|
|
16296
16327
|
})] }),
|
|
16297
|
-
/* @__PURE__ */ l(
|
|
16328
|
+
/* @__PURE__ */ l(Nf, {
|
|
16298
16329
|
label: "Locality",
|
|
16299
16330
|
options: d,
|
|
16300
16331
|
value: f,
|
|
16301
16332
|
disabled: p,
|
|
16302
16333
|
onSelect: (e) => D({ locality: e })
|
|
16303
16334
|
}),
|
|
16304
|
-
/* @__PURE__ */ l(
|
|
16335
|
+
/* @__PURE__ */ l(Nf, {
|
|
16305
16336
|
label: "Import Intent",
|
|
16306
16337
|
options: m,
|
|
16307
16338
|
value: h,
|
|
@@ -16402,7 +16433,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16402
16433
|
})]
|
|
16403
16434
|
})]
|
|
16404
16435
|
}) : null,
|
|
16405
|
-
/* @__PURE__ */ l(
|
|
16436
|
+
/* @__PURE__ */ l(Mf, {
|
|
16406
16437
|
status: _,
|
|
16407
16438
|
message: y
|
|
16408
16439
|
})
|
|
@@ -16410,12 +16441,12 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16410
16441
|
]
|
|
16411
16442
|
})]
|
|
16412
16443
|
})]
|
|
16413
|
-
}) : /* @__PURE__ */ l(
|
|
16444
|
+
}) : /* @__PURE__ */ l(ff, {
|
|
16414
16445
|
status: i,
|
|
16415
16446
|
onRetryClick: M
|
|
16416
16447
|
})
|
|
16417
16448
|
});
|
|
16418
|
-
},
|
|
16449
|
+
}, Ff = {
|
|
16419
16450
|
error: {
|
|
16420
16451
|
iconName: "circle-exclamation",
|
|
16421
16452
|
label: "Error",
|
|
@@ -16431,7 +16462,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16431
16462
|
label: "Information",
|
|
16432
16463
|
className: "text-primary"
|
|
16433
16464
|
}
|
|
16434
|
-
},
|
|
16465
|
+
}, If = ({ pageTitle: e, pageDescription: t, sideNavProps: n, status: r = { state: "ready" }, fileName: i, scopeLabel: a, summary: o, groups: s, backLabel: c = "Back to Upload", continueLabel: d = "Continue to Review", continueDisabled: f = !1, onBackClick: p, onContinueClick: m, onRetryClick: h }) => /* @__PURE__ */ l(lf, {
|
|
16435
16466
|
pageTitle: e,
|
|
16436
16467
|
pageDescription: t,
|
|
16437
16468
|
sideNavProps: n,
|
|
@@ -16529,7 +16560,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16529
16560
|
}), /* @__PURE__ */ l("ul", {
|
|
16530
16561
|
className: "mt-4 divide-y divide-borderTertiary rounded-md border border-borderTertiary",
|
|
16531
16562
|
children: e.issues.map((e) => {
|
|
16532
|
-
let t =
|
|
16563
|
+
let t = Ff[e.severity];
|
|
16533
16564
|
return /* @__PURE__ */ u("li", {
|
|
16534
16565
|
className: "flex items-start gap-3 p-4",
|
|
16535
16566
|
children: [/* @__PURE__ */ l(S, {
|
|
@@ -16586,16 +16617,16 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16586
16617
|
})]
|
|
16587
16618
|
})
|
|
16588
16619
|
]
|
|
16589
|
-
}) : /* @__PURE__ */ l(
|
|
16620
|
+
}) : /* @__PURE__ */ l(ff, {
|
|
16590
16621
|
status: r,
|
|
16591
16622
|
onRetryClick: h
|
|
16592
16623
|
})
|
|
16593
|
-
}),
|
|
16624
|
+
}), Lf = {
|
|
16594
16625
|
added: "Added",
|
|
16595
16626
|
updated: "Updated",
|
|
16596
16627
|
unchanged: "Unchanged"
|
|
16597
|
-
},
|
|
16598
|
-
let t =
|
|
16628
|
+
}, Rf = ({ changeType: e }) => {
|
|
16629
|
+
let t = Lf[e];
|
|
16599
16630
|
return /* @__PURE__ */ l("span", {
|
|
16600
16631
|
"aria-label": t,
|
|
16601
16632
|
title: t,
|
|
@@ -16607,7 +16638,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16607
16638
|
size: "xs"
|
|
16608
16639
|
})
|
|
16609
16640
|
});
|
|
16610
|
-
},
|
|
16641
|
+
}, zf = ({ row: e }) => {
|
|
16611
16642
|
let t = e.currentValue?.trim() || "—", n = e.afterValue?.trim() || "—";
|
|
16612
16643
|
return /* @__PURE__ */ u("div", {
|
|
16613
16644
|
className: "grid border-t border-borderTertiary md:grid-cols-2",
|
|
@@ -16651,7 +16682,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16651
16682
|
]
|
|
16652
16683
|
})]
|
|
16653
16684
|
});
|
|
16654
|
-
},
|
|
16685
|
+
}, Bf = ({ pageTitle: e, pageDescription: t, sideNavProps: n, status: r = { state: "ready" }, fileName: i, scopeLabel: a, ranges: o, cancelLabel: s = "Cancel Import", continueLabel: d = "Apply Import", continueDisabled: f = !1, cancelConfirmation: p, onCancelClick: m, onCancelConfirm: h, onCancelClose: g, onContinueClick: _, onRetryClick: y }) => /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l(lf, {
|
|
16655
16686
|
pageTitle: e,
|
|
16656
16687
|
pageDescription: t,
|
|
16657
16688
|
sideNavProps: n,
|
|
@@ -16702,7 +16733,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16702
16733
|
variant: "free",
|
|
16703
16734
|
className: "mt-1 text-lg font-bold text-primary",
|
|
16704
16735
|
children: [e.name, e.code ? ` · ${e.code}` : ""]
|
|
16705
|
-
})] }), /* @__PURE__ */ l(
|
|
16736
|
+
})] }), /* @__PURE__ */ l(Rf, { changeType: e.changeType })]
|
|
16706
16737
|
}), /* @__PURE__ */ l("div", {
|
|
16707
16738
|
className: "grid gap-5 p-5",
|
|
16708
16739
|
children: e.decors.map((e) => /* @__PURE__ */ u("section", {
|
|
@@ -16720,7 +16751,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16720
16751
|
variant: "free",
|
|
16721
16752
|
className: "mt-1 text-base font-bold text-primary",
|
|
16722
16753
|
children: [e.code, e.name ? ` · ${e.name}` : ""]
|
|
16723
|
-
})] }), /* @__PURE__ */ l(
|
|
16754
|
+
})] }), /* @__PURE__ */ l(Rf, { changeType: e.changeType })]
|
|
16724
16755
|
}), /* @__PURE__ */ l("div", {
|
|
16725
16756
|
className: "grid gap-5 p-4",
|
|
16726
16757
|
children: e.sections.map((e) => /* @__PURE__ */ u("section", {
|
|
@@ -16744,7 +16775,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16744
16775
|
className: "border-l border-borderTertiary px-4 py-3 text-xs font-bold uppercase text-tertiary",
|
|
16745
16776
|
children: "After"
|
|
16746
16777
|
})]
|
|
16747
|
-
}), e.rows.map((e) => /* @__PURE__ */ l(
|
|
16778
|
+
}), e.rows.map((e) => /* @__PURE__ */ l(zf, { row: e }, e.id))]
|
|
16748
16779
|
})]
|
|
16749
16780
|
}, e.id))
|
|
16750
16781
|
})]
|
|
@@ -16769,7 +16800,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16769
16800
|
})]
|
|
16770
16801
|
})
|
|
16771
16802
|
]
|
|
16772
|
-
}) : /* @__PURE__ */ l(
|
|
16803
|
+
}) : /* @__PURE__ */ l(ff, {
|
|
16773
16804
|
status: r,
|
|
16774
16805
|
onRetryClick: y
|
|
16775
16806
|
})
|
|
@@ -16801,15 +16832,15 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16801
16832
|
})]
|
|
16802
16833
|
})]
|
|
16803
16834
|
}) : null
|
|
16804
|
-
})] }),
|
|
16835
|
+
})] }), Vf = (e) => e === "error" ? "text-accent" : e === "success" ? "text-saleGreen" : "text-primary", Hf = ({ status: e, message: t }) => {
|
|
16805
16836
|
let n = t?.trim() ?? "";
|
|
16806
16837
|
return !n || e === "idle" ? null : /* @__PURE__ */ l(v, {
|
|
16807
16838
|
role: e === "error" ? "alert" : "status",
|
|
16808
16839
|
variant: "free",
|
|
16809
|
-
className: `mt-3 text-sm ${
|
|
16840
|
+
className: `mt-3 text-sm ${Vf(e)}`,
|
|
16810
16841
|
children: n
|
|
16811
16842
|
});
|
|
16812
|
-
},
|
|
16843
|
+
}, Uf = ({ guide: e, uploadDropLabel: t, uploadBrowseLabel: n, uploadLabel: i, clearFileLabel: a, completeLabel: s, onGuideFileSelect: d, onUploadClick: f, onClearSelectedFileClick: p }) => {
|
|
16813
16844
|
let m = o(null), h = r(), g = e.actionStatus ?? "idle", _ = g === "validating" || g === "pending", y = (e.availability ?? "available") === "available", b = e.uploadDropLabel ?? t, x = e.uploadBrowseLabel ?? n, C = e.uploadLabel ?? i, w = e.completeLabel ?? s, T = (t) => d?.({
|
|
16814
16845
|
guideId: e.id,
|
|
16815
16846
|
files: Array.from(t ?? [])
|
|
@@ -16982,7 +17013,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
16982
17013
|
}, `${e.path}-${e.message}-${t}`))
|
|
16983
17014
|
})]
|
|
16984
17015
|
}) : null,
|
|
16985
|
-
g === "success" ? null : /* @__PURE__ */ l(
|
|
17016
|
+
g === "success" ? null : /* @__PURE__ */ l(Hf, {
|
|
16986
17017
|
status: g,
|
|
16987
17018
|
message: e.actionStatusMessage
|
|
16988
17019
|
})
|
|
@@ -17003,7 +17034,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
17003
17034
|
})
|
|
17004
17035
|
})]
|
|
17005
17036
|
});
|
|
17006
|
-
},
|
|
17037
|
+
}, Wf = ({ pageTitle: e, pageDescription: t, sideNavProps: n, status: r = { state: "ready" }, guides: i, emptyTitle: a = "No product guides configured", emptyDescription: o = "Add a product-guide configuration before uploading data.", uploadDropLabel: s = "Drag a product guide PDF file here", uploadBrowseLabel: c = "Select PDF File", uploadLabel: d = "Replace Active Guide", clearFileLabel: f = "Clear File", completeLabel: p = "Complete", onGuideFileSelect: m, onUploadClick: h, onClearSelectedFileClick: g, onRetryClick: _ }) => {
|
|
17007
17038
|
let y;
|
|
17008
17039
|
return y = r.state === "ready" ? i.length === 0 ? /* @__PURE__ */ u("section", {
|
|
17009
17040
|
className: "mt-6 rounded-lg border border-borderTertiary bg-secondary p-6 text-center shadow-sm",
|
|
@@ -17030,7 +17061,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
17030
17061
|
}) : /* @__PURE__ */ l("section", {
|
|
17031
17062
|
"aria-label": "Product guides",
|
|
17032
17063
|
className: "mt-6 grid gap-4",
|
|
17033
|
-
children: i.map((e) => /* @__PURE__ */ l(
|
|
17064
|
+
children: i.map((e) => /* @__PURE__ */ l(Uf, {
|
|
17034
17065
|
guide: e,
|
|
17035
17066
|
uploadDropLabel: s,
|
|
17036
17067
|
uploadBrowseLabel: c,
|
|
@@ -17041,16 +17072,16 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
17041
17072
|
onUploadClick: h,
|
|
17042
17073
|
onClearSelectedFileClick: g
|
|
17043
17074
|
}, e.id))
|
|
17044
|
-
}) : /* @__PURE__ */ l(
|
|
17075
|
+
}) : /* @__PURE__ */ l(ff, {
|
|
17045
17076
|
status: r,
|
|
17046
17077
|
onRetryClick: _
|
|
17047
|
-
}), /* @__PURE__ */ l(
|
|
17078
|
+
}), /* @__PURE__ */ l(lf, {
|
|
17048
17079
|
pageTitle: e,
|
|
17049
17080
|
pageDescription: t,
|
|
17050
17081
|
sideNavProps: n,
|
|
17051
17082
|
children: y
|
|
17052
17083
|
});
|
|
17053
|
-
},
|
|
17084
|
+
}, Gf = ({ scopeDescription: e, importDescription: t, acceptedExtensions: n, maxFileSizeBytes: i, fileName: a, state: c, message: d, errors: f = [], disabled: p = !1, onFileSelect: m, onFileRemove: h, onImportClick: g, onTemplateDownloadClick: _, mode: y, targetLabel: b, onModeChange: x, modeLabels: C }) => {
|
|
17054
17085
|
let w = r(), T = o(null), [E, D] = s(!1), [O, k] = s(""), A = c === "processing" || c === "importing", j = p || A, M = {
|
|
17055
17086
|
add: {
|
|
17056
17087
|
label: "Add or update current data",
|
|
@@ -17196,7 +17227,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
17196
17227
|
}),
|
|
17197
17228
|
/* @__PURE__ */ l("div", {
|
|
17198
17229
|
className: "mt-5",
|
|
17199
|
-
children: /* @__PURE__ */ l(
|
|
17230
|
+
children: /* @__PURE__ */ l(Jd, {
|
|
17200
17231
|
title: "How should this upload change the data?",
|
|
17201
17232
|
name: `${w}-mode`,
|
|
17202
17233
|
selectedValue: y,
|
|
@@ -17257,9 +17288,9 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
17257
17288
|
})
|
|
17258
17289
|
]
|
|
17259
17290
|
});
|
|
17260
|
-
},
|
|
17291
|
+
}, Kf = ({ sideNavProps: e, regionSelectorProps: t, localities: n, status: r = { state: "ready" }, onLocalitySelect: i, onRetryClick: a, importProps: o }) => {
|
|
17261
17292
|
let s = n.filter((e) => e.region === t.value);
|
|
17262
|
-
return /* @__PURE__ */ u(
|
|
17293
|
+
return /* @__PURE__ */ u(lf, {
|
|
17263
17294
|
pageTitle: "Where to Buy",
|
|
17264
17295
|
pageDescription: "Manage the vendors customers see in each sub-region and language.",
|
|
17265
17296
|
sideNavProps: e,
|
|
@@ -17318,21 +17349,21 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
17318
17349
|
})
|
|
17319
17350
|
]
|
|
17320
17351
|
}, e.id))
|
|
17321
|
-
}) : /* @__PURE__ */ l(
|
|
17352
|
+
}) : /* @__PURE__ */ l(ff, { status: {
|
|
17322
17353
|
state: "empty",
|
|
17323
17354
|
title: t.value ? "No localities in this region" : "Select a region",
|
|
17324
17355
|
message: "Choose a region above to browse its localities."
|
|
17325
17356
|
} })
|
|
17326
17357
|
]
|
|
17327
|
-
}) : /* @__PURE__ */ l(
|
|
17358
|
+
}) : /* @__PURE__ */ l(ff, {
|
|
17328
17359
|
status: r,
|
|
17329
17360
|
onRetryClick: a
|
|
17330
17361
|
}), r.state === "ready" && o && /* @__PURE__ */ l("div", {
|
|
17331
17362
|
className: "mt-8 max-w-6xl",
|
|
17332
|
-
children: /* @__PURE__ */ l(
|
|
17363
|
+
children: /* @__PURE__ */ l(Gf, { ...o }, t.value)
|
|
17333
17364
|
})]
|
|
17334
17365
|
});
|
|
17335
|
-
},
|
|
17366
|
+
}, qf = (e, t = {}) => [
|
|
17336
17367
|
{
|
|
17337
17368
|
id: "name",
|
|
17338
17369
|
label: "Vendor name",
|
|
@@ -17421,14 +17452,14 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
17421
17452
|
...e,
|
|
17422
17453
|
state: t[e.id] ? "error" : "neutral",
|
|
17423
17454
|
message: t[e.id]
|
|
17424
|
-
})),
|
|
17455
|
+
})), Jf = (e) => {
|
|
17425
17456
|
let { locality: t, vendors: n, editor: r, selectedVendorId: i, isCreating: a = !1, saveState: o, lookup: s, status: c = { state: "ready" } } = e, d = r ?? (i ? n.find((e) => e.id === i) : n[0]), f = o === "saving" || e.deletePending || s.state === "resolving", p = o === "unsaved" || o === "error" || a, m = !!(f || p), h = "No matching addresses.";
|
|
17426
17457
|
s.state === "loading" ? h = "Finding addresses..." : s.state === "error" && (h = "Address suggestions are unavailable. Try again.");
|
|
17427
17458
|
let g = {
|
|
17428
17459
|
localityId: t.id,
|
|
17429
17460
|
vendorId: d?.id ?? ""
|
|
17430
17461
|
}, _ = n.filter((t) => `${t.name} ${t.city}`.toLowerCase().includes(e.searchValue.trim().toLowerCase())), y = d && d.latitude !== null && d.longitude !== null && Number.isFinite(d.latitude) && Number.isFinite(d.longitude) && Math.abs(d.latitude) <= 90 && Math.abs(d.longitude) <= 180;
|
|
17431
|
-
return /* @__PURE__ */ u(
|
|
17462
|
+
return /* @__PURE__ */ u(lf, {
|
|
17432
17463
|
pageTitle: "Where to Buy",
|
|
17433
17464
|
pageDescription: `${t.subRegion} · ${t.language} · ${t.locale}`,
|
|
17434
17465
|
sideNavProps: e.sideNavProps,
|
|
@@ -17508,7 +17539,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
17508
17539
|
}) : null,
|
|
17509
17540
|
y ? /* @__PURE__ */ l("div", {
|
|
17510
17541
|
className: "mt-4",
|
|
17511
|
-
children: /* @__PURE__ */ l(
|
|
17542
|
+
children: /* @__PURE__ */ l(Vu, {
|
|
17512
17543
|
googleMapsApiKey: e.googleMapsApiKey,
|
|
17513
17544
|
selectedLocationId: d.id,
|
|
17514
17545
|
zoom: 14,
|
|
@@ -17552,7 +17583,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
17552
17583
|
children: "Vendor details"
|
|
17553
17584
|
}),
|
|
17554
17585
|
/* @__PURE__ */ l(xs, {
|
|
17555
|
-
fields:
|
|
17586
|
+
fields: qf(d, e.fieldErrors),
|
|
17556
17587
|
density: "compact",
|
|
17557
17588
|
showActions: !1,
|
|
17558
17589
|
fieldGroups: [
|
|
@@ -17672,7 +17703,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
17672
17703
|
})]
|
|
17673
17704
|
})
|
|
17674
17705
|
]
|
|
17675
|
-
}) : /* @__PURE__ */ l(
|
|
17706
|
+
}) : /* @__PURE__ */ l(ff, {
|
|
17676
17707
|
status: {
|
|
17677
17708
|
state: "empty",
|
|
17678
17709
|
title: "No vendor selected",
|
|
@@ -17751,7 +17782,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
17751
17782
|
})
|
|
17752
17783
|
]
|
|
17753
17784
|
})]
|
|
17754
|
-
}) : /* @__PURE__ */ l(
|
|
17785
|
+
}) : /* @__PURE__ */ l(ff, {
|
|
17755
17786
|
status: c,
|
|
17756
17787
|
onRetryClick: e.onRetryClick
|
|
17757
17788
|
}),
|
|
@@ -17795,7 +17826,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
17795
17826
|
})
|
|
17796
17827
|
]
|
|
17797
17828
|
});
|
|
17798
|
-
},
|
|
17829
|
+
}, Yf = ({ shellProps: e, items: t, emptyTitle: n = "No favorite products yet", emptyMessage: r = "Save products you love and they will appear here.", browseLabel: i = "Browse products", onFavoriteClick: a, onBrowseClick: o }) => /* @__PURE__ */ u(Qu, {
|
|
17799
17830
|
...e,
|
|
17800
17831
|
activeTabId: "favorites",
|
|
17801
17832
|
children: [
|
|
@@ -17851,9 +17882,9 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
17851
17882
|
]
|
|
17852
17883
|
})
|
|
17853
17884
|
]
|
|
17854
|
-
}),
|
|
17885
|
+
}), Xf = ({ shellProps: e, personalInformation: t, password: n, shippingAddresses: r, billingAddresses: i, onAddAddressClick: a, onEditAddressClick: o, onRemoveAddressClick: s }) => {
|
|
17855
17886
|
let c = t.errors ?? {}, d = n.errors ?? {};
|
|
17856
|
-
return /* @__PURE__ */ u(
|
|
17887
|
+
return /* @__PURE__ */ u(Qu, {
|
|
17857
17888
|
...e,
|
|
17858
17889
|
activeTabId: "account-settings",
|
|
17859
17890
|
children: [
|
|
@@ -18071,9 +18102,9 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18071
18102
|
})
|
|
18072
18103
|
]
|
|
18073
18104
|
});
|
|
18074
|
-
},
|
|
18105
|
+
}, Zf = ({ shellProps: e, status: t, period: n, statusOptions: r, periodOptions: i, orders: a, totalOrderCount: o, hasMoreOrders: s = !1, isLoadingMore: c = !1, seeMoreLabel: d = "See more orders", searchDisabled: f = !1, emptyMessage: p = "No orders match your current filters.", onStatusChange: m, onPeriodChange: h, onSearchClick: g, onOrderClick: _, onSeeMoreClick: y }) => {
|
|
18075
18106
|
let b = s && !!y;
|
|
18076
|
-
return /* @__PURE__ */ u(
|
|
18107
|
+
return /* @__PURE__ */ u(Qu, {
|
|
18077
18108
|
...e,
|
|
18078
18109
|
activeTabId: "order-history",
|
|
18079
18110
|
children: [
|
|
@@ -18191,7 +18222,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18191
18222
|
})
|
|
18192
18223
|
]
|
|
18193
18224
|
});
|
|
18194
|
-
},
|
|
18225
|
+
}, Qf = (e, t) => /* @__PURE__ */ u("section", {
|
|
18195
18226
|
"aria-label": e,
|
|
18196
18227
|
children: [/* @__PURE__ */ l(v, {
|
|
18197
18228
|
as: "h3",
|
|
@@ -18210,7 +18241,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18210
18241
|
children: e
|
|
18211
18242
|
}, `${e}-${t}`))]
|
|
18212
18243
|
})]
|
|
18213
|
-
}),
|
|
18244
|
+
}), $f = ({ shellProps: e, orderNumber: t, orderDate: n, status: r, statusTone: i = "neutral", projectName: a, fulfillmentGroups: o, shippingAddress: s, billingAddress: c, paymentMethod: d, summaryRows: f, backLabel: p = "Back to order history", invoiceLabel: m = "Download invoice", helpLabel: h = "Get help with this order", onBackClick: g, onInvoiceClick: _, onHelpClick: y, onProductClick: b, onTrackingClick: x }) => /* @__PURE__ */ u(Qu, {
|
|
18214
18245
|
...e,
|
|
18215
18246
|
activeTabId: "order-history",
|
|
18216
18247
|
children: [
|
|
@@ -18301,11 +18332,11 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18301
18332
|
}),
|
|
18302
18333
|
/* @__PURE__ */ l("div", {
|
|
18303
18334
|
className: "mt-5",
|
|
18304
|
-
children:
|
|
18335
|
+
children: Qf("Shipping address", s)
|
|
18305
18336
|
}),
|
|
18306
18337
|
c || d ? /* @__PURE__ */ u("div", {
|
|
18307
18338
|
className: "mt-6 grid grid-cols-1 gap-6 border-t border-borderTertiary pt-6 md:grid-cols-2",
|
|
18308
|
-
children: [c ?
|
|
18339
|
+
children: [c ? Qf("Billing address", c) : null, d ? /* @__PURE__ */ u("section", {
|
|
18309
18340
|
"aria-label": "Payment method",
|
|
18310
18341
|
children: [/* @__PURE__ */ l(v, {
|
|
18311
18342
|
as: "h3",
|
|
@@ -18351,13 +18382,13 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18351
18382
|
})
|
|
18352
18383
|
}) : null
|
|
18353
18384
|
]
|
|
18354
|
-
}),
|
|
18385
|
+
}), ep = (e, t, n) => e.map((e) => ({
|
|
18355
18386
|
...e,
|
|
18356
18387
|
options: e.options.map((e) => e.id === t ? {
|
|
18357
18388
|
...e,
|
|
18358
18389
|
checked: n
|
|
18359
18390
|
} : e)
|
|
18360
|
-
})),
|
|
18391
|
+
})), tp = ({ title: t, resultsHeading: n = "Documents", description: r, documentInfoCollectionProps: i, filterSections: a, searchBarProps: o, filterPanelHeader: s = "Filters", appliedOptionsHeader: c = "Applied Filters", appliedOptionsEmptyLabel: d = "No filters selected", clearAllLabel: f = "Clear All", applyFiltersLabel: p = "Apply Filters", mobileFilterLabel: m = "Filters", onFilterChange: h, optInModalProps: g }) => {
|
|
18361
18392
|
let [_, y] = e.useState(!1), b = e.useId(), x = a.flatMap((e) => e.options.filter((e) => e.checked).map((e) => ({
|
|
18362
18393
|
id: e.id,
|
|
18363
18394
|
label: e.label
|
|
@@ -18379,7 +18410,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18379
18410
|
emptyStateLabel: d,
|
|
18380
18411
|
clearAllLabel: f,
|
|
18381
18412
|
optionsList: x,
|
|
18382
|
-
onRemoveOption: ({ id: e }) => S(
|
|
18413
|
+
onRemoveOption: ({ id: e }) => S(ep(a, e, !1), {
|
|
18383
18414
|
action: "remove",
|
|
18384
18415
|
optionId: e,
|
|
18385
18416
|
checked: !1
|
|
@@ -18420,9 +18451,9 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18420
18451
|
a.length > 0 ? /* @__PURE__ */ l("aside", {
|
|
18421
18452
|
className: "hidden md:block md:shrink-0",
|
|
18422
18453
|
"aria-label": s,
|
|
18423
|
-
children: /* @__PURE__ */ l(
|
|
18454
|
+
children: /* @__PURE__ */ l(Ju, {
|
|
18424
18455
|
...w,
|
|
18425
|
-
onCheckboxChange: ({ id: e, checked: t }) => S(
|
|
18456
|
+
onCheckboxChange: ({ id: e, checked: t }) => S(ep(a, e, t), {
|
|
18426
18457
|
action: "toggle",
|
|
18427
18458
|
optionId: e,
|
|
18428
18459
|
checked: t
|
|
@@ -18435,7 +18466,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18435
18466
|
"aria-modal": "true",
|
|
18436
18467
|
"aria-label": m,
|
|
18437
18468
|
className: "md:hidden",
|
|
18438
|
-
children: /* @__PURE__ */ l(
|
|
18469
|
+
children: /* @__PURE__ */ l(Ju, {
|
|
18439
18470
|
...w,
|
|
18440
18471
|
sections: a.map((e) => ({
|
|
18441
18472
|
...e,
|
|
@@ -18447,7 +18478,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18447
18478
|
})),
|
|
18448
18479
|
onCheckboxChange: ({ id: e, checked: t }) => {
|
|
18449
18480
|
let n = e.slice(b.length + 1);
|
|
18450
|
-
S(
|
|
18481
|
+
S(ep(a, n, t), {
|
|
18451
18482
|
action: "toggle",
|
|
18452
18483
|
optionId: n,
|
|
18453
18484
|
checked: t
|
|
@@ -18482,7 +18513,7 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18482
18513
|
children: n
|
|
18483
18514
|
})
|
|
18484
18515
|
}),
|
|
18485
|
-
/* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
18516
|
+
/* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(Fu, {
|
|
18486
18517
|
...i,
|
|
18487
18518
|
layoutVariant: "compact"
|
|
18488
18519
|
}) })
|
|
@@ -18495,4 +18526,4 @@ var ld = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18495
18526
|
});
|
|
18496
18527
|
};
|
|
18497
18528
|
//#endregion
|
|
18498
|
-
export {
|
|
18529
|
+
export { Zu as AccountAccessPanel, Sf as AdminAuthStatusTemplate, Bc as AdminBackgroundJobTray, hf as AdminDashboardTemplate, Af as AdminDataIssuesSourceTemplate, Tf as AdminDataReportTemplate, If as AdminImportDataIssuesTemplate, Bf as AdminImportDataReviewTemplate, Pf as AdminImportDataSourceTemplate, lf as AdminPageTemplateShell, Wf as AdminProductGuidesTemplate, Ko as AdminRegionSelector, Nc as AdminSideNav, yf as AdminUsersTemplate, ml as AnnouncementBar, lu as ArticleBanner, Xs as ArticleBannerContent, vd as ArticleLandingPageTemplate, Kd as BpcsCartConfirmationTemplate, Zd as BpcsCartSamplesTemplate, Xd as BpcsCartShippingTemplate, tl as BrandNavBar, hl as Breadcrumbs, pe as BusinessInfoCard, P as Button, El as CallToActionHero, Zs as CallToActionHeroContent, Fs as CarouselArrowControls, Is as CarouselDots, he as CartItemCard, Od as CategoryPageTemplate, K as ClickableCard, uc as ColourMatchingChart, Nl as ColumnBanner, Lo as ColumnCarouselCard, Ku as CommerceSyncPanel, uu as ContentCarousel, H as ContentContainer, se as ContentGrid, Wo as CountrySelector, Yf as CustomerAccountFavoritesTemplate, $f as CustomerAccountOrderDetailTemplate, Zf as CustomerAccountOrderHistoryTemplate, Xf as CustomerAccountSettingsTemplate, Qu as CustomerAccountShell, Dc as CustomerAddressCard, Mu as DataReportCollection, we as DecorSummaryCard, Nu as DecorSummaryCollection, rc as DocumentInfoCard, Fu as DocumentInfoCollection, ic as DocumentLinkCard, tp as DocumentResultsTemplate, Ms as DropdownFilter, xs as DynamicForm, $d as EcommCartConfirmationTemplate, nf as EcommCartPaymentTemplate, rf as EcommCartShippingTemplate, cf as EcommCartSummaryTemplate, B as EmbeddedVideo, nc as EmbeddedVideoCard, ac as FaqCard, vu as FaqCardCollection, Ro as FeatureCard, Ll as FeatureCardCollection, Dl as FeaturedArticleBanner, Qs as FeaturedArticleBannerContent, zo as FeaturedProductCard, gu as FeaturedProductsCarousel, As as FilterBar, js as FilterBarButton, ue as FlowRow, Sl as Footer, v as FormicaText, Ad as GalleryTemplate, S as Icon, L as Image, du as ImageCard, tc as ImageOverlayCard, xu as ImageOverlayGrid, oc as InfoCard, V as Interactive3DViewer, wu as LocalizationMarketCollection, Cc as LocalizationStatusCard, Uo as LocationCard, Cu as LocationCardCollection, Vu as LocationMap, Rd as LoginTemplate, Cf as MarketReadinessBrowseTemplate, Os as MarketReadinessItemSkuSection, qo as MarketReadinessRangeSelector, wf as MarketReadinessRangeTemplate, ye as MarketReadinessSampleCard, Ce as MarketReadinessSaveStatusIndicator, xe as MarketReadinessSkuCard, _e as MarketReadinessStatusDots, mf as MarketReadinessTemplate, ks as MarketReadinessVariantAvailabilitySection, Jo as MarketReadinessVariantOptions, Hc as Modal, sc as MoreInfoHighlightsCard, Rl as MoreInfoHighlightsCollection, Wc as OptInModal, kc as OrderDetailHeaderCard, jc as OrderItemDetailCard, Nd as ProResourceTemplate, ge as ProductContactActions, gd as ProductDetailPageTemplate, fc as QuantityCheckoutCard, ze as RangeSummaryCard, Pu as RangeSummaryCollection, bc as RecentArticleCard, _u as RecentArticleCollection, te as ResilientImage, Qd as SalesforceCartShippingTemplate, Bl as SalesforceCustomerDetailsForm, zl as SampleOrderSummaryPanel, $o as SearchCombobox, Ps as SearchFilter, Ld as SearchResultsTemplate, xc as SingleButtonCard, ec as SocialLinkRow, w as Spinner, wl as StandardBannerContainer, qs as StandardCarousel, $s as StandardCopyBannerContent, cu as StandardCopyHero, Ec as SwatchCard, su as SwatchPurchasePanel, mu as TextCard, ne as Textarea, ul as TopNavAccountDrawer, sl as TopNavActions, pl as TopNavBar, nl as TopNavMegaMenu, al as TopNavSearchResults, Gf as VendorImportSection, Ju as VerticalCheckboxListCollection, Ys as VerticalColorSwatchList, hu as WarrantyCard, Jf as WhereToBuyDetailPage, Kf as WhereToBuyLandingPage, Tl as WhereToBuySearchBanner, Bd as WhereToBuyTemplate, h as applySketchfabTexture, _ as connectSketchfabViewer, p as setSketchfabAppearance, Yu as userTypeOptions };
|