hasting-swatchcart-module 1.0.23 → 1.0.24
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/cdn/main.js +69 -62
- package/dist/main.cjs +23 -23
- package/dist/main.cjs.map +1 -1
- package/dist/main.js +845 -838
- package/dist/main.js.map +1 -1
- package/package.json +102 -102
package/dist/cdn/main.js
CHANGED
|
@@ -7935,7 +7935,7 @@ const Ut = Zf.withTypes(), je = pE.withTypes(), Ks = (e) => e.swatches.allMateri
|
|
|
7935
7935
|
materials: e,
|
|
7936
7936
|
containerStyles: t = "flex flex-col gap-[8px] text-[12px]/snug p-[var(--sm-padding)] border-t border-solid border-[var(--border)] sm:gap-[12px] shadow-[0_-2px_10px_rgba(40,40,40,0.10)]"
|
|
7937
7937
|
}) => {
|
|
7938
|
-
const n = "flex justify-between items-center", i = v.useMemo(() => e.reduce((s, a) => s + (a.count ?? 0), 0) * PE, [e]);
|
|
7938
|
+
const n = "flex flex-row justify-between items-center", i = v.useMemo(() => e.reduce((s, a) => s + (a.count ?? 0), 0) * PE, [e]);
|
|
7939
7939
|
return /* @__PURE__ */ T.jsxs("div", { className: t, children: [
|
|
7940
7940
|
/* @__PURE__ */ T.jsxs("div", { className: n, children: [
|
|
7941
7941
|
/* @__PURE__ */ T.jsx("span", { children: "Subtotal" }),
|
|
@@ -12346,7 +12346,7 @@ const fh = ({ item: e }) => {
|
|
|
12346
12346
|
n ? /* @__PURE__ */ T.jsx(
|
|
12347
12347
|
"div",
|
|
12348
12348
|
{
|
|
12349
|
-
className: `absolute top-0 right-0 m-2 w-[16px] h-[16px] flex justify-center items-center
|
|
12349
|
+
className: `absolute top-0 right-0 m-2 w-[16px] h-[16px] flex flex-row justify-center items-center
|
|
12350
12350
|
bg-[var(--background-grey)] rounded-2xl border-none pointer-events-none`,
|
|
12351
12351
|
children: /* @__PURE__ */ T.jsx(Xs, { className: "w-[8px] h-2 stroke-[var(--svg-dark)]" })
|
|
12352
12352
|
}
|
|
@@ -12419,7 +12419,7 @@ const fh = ({ item: e }) => {
|
|
|
12419
12419
|
onDelete: s
|
|
12420
12420
|
}) => {
|
|
12421
12421
|
const a = e <= 1;
|
|
12422
|
-
return /* @__PURE__ */ T.jsxs("div", { className: "flex items-center gap-[8px] text-sm", children: [
|
|
12422
|
+
return /* @__PURE__ */ T.jsxs("div", { className: "flex flex-row items-center gap-[8px] text-sm", children: [
|
|
12423
12423
|
a ? /* @__PURE__ */ T.jsx(
|
|
12424
12424
|
"button",
|
|
12425
12425
|
{
|
|
@@ -12462,7 +12462,7 @@ const fh = ({ item: e }) => {
|
|
|
12462
12462
|
border-b border-[var(--border)]
|
|
12463
12463
|
px-[var(--sm-padding)] p-[var(--sm-padding)]
|
|
12464
12464
|
last:border-b-0`,
|
|
12465
|
-
children: /* @__PURE__ */ T.jsxs("div", { className: "relative flex gap-[16px]
|
|
12465
|
+
children: /* @__PURE__ */ T.jsxs("div", { className: "relative flex flex-row gap-[16px]", children: [
|
|
12466
12466
|
/* @__PURE__ */ T.jsx("div", { children: /* @__PURE__ */ T.jsx(TS, { val: e }) }),
|
|
12467
12467
|
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-col justify-between", children: [
|
|
12468
12468
|
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-col", children: [
|
|
@@ -12513,8 +12513,8 @@ const fh = ({ item: e }) => {
|
|
|
12513
12513
|
const t = Ut(), n = () => {
|
|
12514
12514
|
t(NE(!1));
|
|
12515
12515
|
};
|
|
12516
|
-
return /* @__PURE__ */ T.jsx("header", { className: "flex p-[var(--sm-padding)] justify-between items-center border-b border-solid border-[var(--border)]", children: /* @__PURE__ */ T.jsxs("div", { className: "flex items-center flex-row gap-[4px]", children: [
|
|
12517
|
-
/* @__PURE__ */ T.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
12516
|
+
return /* @__PURE__ */ T.jsx("header", { className: "flex flex-row p-[var(--sm-padding)] justify-between items-center border-b border-solid border-[var(--border)]", children: /* @__PURE__ */ T.jsxs("div", { className: "flex items-center flex-row gap-[4px]", children: [
|
|
12517
|
+
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-row items-center gap-[8px]", children: [
|
|
12518
12518
|
/* @__PURE__ */ T.jsx(
|
|
12519
12519
|
"button",
|
|
12520
12520
|
{
|
|
@@ -12552,7 +12552,7 @@ const fh = ({ item: e }) => {
|
|
|
12552
12552
|
const { parentName: g, metadata: A } = f, C = A?.label;
|
|
12553
12553
|
p && C && g && t(D2({ assetId: p, label: C, parentName: g }));
|
|
12554
12554
|
}, c = v.useMemo(() => i.reduce((f, p) => f + (p.count ?? 0), 0), [i]);
|
|
12555
|
-
return /* @__PURE__ */ T.jsxs("div", { className: "flex
|
|
12555
|
+
return /* @__PURE__ */ T.jsxs("div", { className: "flex flex-col h-full", children: [
|
|
12556
12556
|
/* @__PURE__ */ T.jsx(IS, { totalCount: c }),
|
|
12557
12557
|
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-col h-full min-h-0", children: [
|
|
12558
12558
|
/* @__PURE__ */ T.jsx("ul", { className: "flex flex-col flex-1 min-h-0 overflow-y-auto", children: n.map((f) => {
|
|
@@ -12601,7 +12601,7 @@ const fh = ({ item: e }) => {
|
|
|
12601
12601
|
containerStyles: "flex flex-col gap-[8px] text-[12px]/snug p-[var(--sm-padding)] border-t border-solid border-[var(--border)] sm:gap-[12px] sm:border-none s"
|
|
12602
12602
|
}
|
|
12603
12603
|
) }),
|
|
12604
|
-
/* @__PURE__ */ T.jsx("div", { className: "p-[var(--sm-padding)] border-t border-solid border-[var(--border)] shrink-0 sm:w-[50%] sm:border-none sm:flex sm:justify-end sm:items-end sm:h-full", children: /* @__PURE__ */ T.jsx("div", { className: "sm:w-[50%]", children: /* @__PURE__ */ T.jsx(
|
|
12604
|
+
/* @__PURE__ */ T.jsx("div", { className: "p-[var(--sm-padding)] border-t border-solid border-[var(--border)] shrink-0 sm:w-[50%] sm:border-none sm:flex flex-row sm:justify-end sm:items-end sm:h-full", children: /* @__PURE__ */ T.jsx("div", { className: "sm:w-[50%]", children: /* @__PURE__ */ T.jsx(
|
|
12605
12605
|
ME,
|
|
12606
12606
|
{
|
|
12607
12607
|
onClick: () => e && e(n),
|
|
@@ -12824,7 +12824,7 @@ const BS = ({ text: e, isActive: t = !1, onClick: n }) => {
|
|
|
12824
12824
|
onClick: i,
|
|
12825
12825
|
onKeyDown: s,
|
|
12826
12826
|
className: `
|
|
12827
|
-
flex justify-center items-center max-w-max px-4 py-2 capitalize rounded-full
|
|
12827
|
+
flex flex-row justify-center items-center max-w-max px-4 py-2 capitalize rounded-full
|
|
12828
12828
|
font-medium text-sm cursor-pointer transition-all duration-[400ms] ease-in-out
|
|
12829
12829
|
outline-none focus:ring-2 focus:ring-[var(--main-accent-color)] focus:ring-offset-2
|
|
12830
12830
|
${t ? "bg-[var(--main-accent-color)] text-white hover:brightness-90" : "bg-[var(--label-bg)] hover:brightness-95"}
|
|
@@ -12888,7 +12888,7 @@ const BS = ({ text: e, isActive: t = !1, onClick: n }) => {
|
|
|
12888
12888
|
return /* @__PURE__ */ T.jsxs(
|
|
12889
12889
|
"div",
|
|
12890
12890
|
{
|
|
12891
|
-
className: `flex items-center gap-[8px] lg:w-[50%] xl:w-auto ${i}`,
|
|
12891
|
+
className: `flex flex-row items-center gap-[8px] lg:w-[50%] xl:w-auto ${i}`,
|
|
12892
12892
|
role: "region",
|
|
12893
12893
|
"aria-label": "Category slider",
|
|
12894
12894
|
children: [
|
|
@@ -12899,7 +12899,7 @@ const BS = ({ text: e, isActive: t = !1, onClick: n }) => {
|
|
|
12899
12899
|
"aria-label": "Scroll left",
|
|
12900
12900
|
disabled: !f,
|
|
12901
12901
|
onClick: () => y("left"),
|
|
12902
|
-
className: `flex-shrink-0 h-8 w-8 rounded-full flex items-center justify-center shadow
|
|
12902
|
+
className: `flex-shrink-0 h-8 w-8 rounded-full flex flex-row items-center justify-center shadow
|
|
12903
12903
|
${f ? "bg-black text-white hover:brightness-110" : "bg-gray-200 text-gray-500 opacity-60 cursor-not-allowed"}`,
|
|
12904
12904
|
children: [
|
|
12905
12905
|
/* @__PURE__ */ T.jsx(vg, { className: "w-[16px] h-4 rotate-360" }),
|
|
@@ -12917,20 +12917,27 @@ const BS = ({ text: e, isActive: t = !1, onClick: n }) => {
|
|
|
12917
12917
|
paddingLeft: "0.5rem",
|
|
12918
12918
|
paddingRight: "0.5rem"
|
|
12919
12919
|
},
|
|
12920
|
-
children: /* @__PURE__ */ T.jsxs(
|
|
12921
|
-
|
|
12922
|
-
|
|
12923
|
-
|
|
12924
|
-
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
|
-
|
|
12928
|
-
|
|
12929
|
-
|
|
12930
|
-
|
|
12931
|
-
|
|
12932
|
-
|
|
12933
|
-
|
|
12920
|
+
children: /* @__PURE__ */ T.jsxs(
|
|
12921
|
+
"div",
|
|
12922
|
+
{
|
|
12923
|
+
ref: l,
|
|
12924
|
+
className: "flex flex-row gap-[12px] sm:gap-[16px] py-2",
|
|
12925
|
+
children: [
|
|
12926
|
+
e.map((I) => {
|
|
12927
|
+
const b = I.productId, N = t === b;
|
|
12928
|
+
return /* @__PURE__ */ T.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ T.jsx(
|
|
12929
|
+
BS,
|
|
12930
|
+
{
|
|
12931
|
+
text: I.name,
|
|
12932
|
+
isActive: N,
|
|
12933
|
+
onClick: () => n(I)
|
|
12934
|
+
}
|
|
12935
|
+
) }, b);
|
|
12936
|
+
}),
|
|
12937
|
+
/* @__PURE__ */ T.jsx("div", { "aria-hidden": !0, className: "shrink-0 w-1 sm:w-[16px]" })
|
|
12938
|
+
]
|
|
12939
|
+
}
|
|
12940
|
+
)
|
|
12934
12941
|
}
|
|
12935
12942
|
),
|
|
12936
12943
|
/* @__PURE__ */ T.jsxs(
|
|
@@ -12940,7 +12947,7 @@ const BS = ({ text: e, isActive: t = !1, onClick: n }) => {
|
|
|
12940
12947
|
"aria-label": "Scroll right",
|
|
12941
12948
|
disabled: !g,
|
|
12942
12949
|
onClick: () => y("right"),
|
|
12943
|
-
className: `flex-shrink-0 h-8 w-8 rounded-full flex items-center justify-center shadow
|
|
12950
|
+
className: `flex-shrink-0 h-8 w-8 rounded-full flex flex-row items-center justify-center shadow
|
|
12944
12951
|
${g ? "bg-black text-white hover:brightness-110" : "bg-gray-200 text-gray-400 opacity-60 cursor-not-allowed"}`,
|
|
12945
12952
|
children: [
|
|
12946
12953
|
/* @__PURE__ */ T.jsx(vg, { className: "w-[16px] h-4 rotate-180" }),
|
|
@@ -29087,7 +29094,7 @@ const YA = {}, zC = ({
|
|
|
29087
29094
|
"aria-haspopup": "listbox",
|
|
29088
29095
|
"aria-expanded": C,
|
|
29089
29096
|
className: Mt(
|
|
29090
|
-
"inline-flex items-center justify-between gap-[8px] rounded-full bg-[var(--label-bg, #f5f5f5)] px-2 py-2 text-[12px] font-medium h-9 text-blackborder border-transparent hover:bg-gray-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--main-accent-color)]sm:w-[102px]",
|
|
29097
|
+
"inline-flex flex-row items-center justify-between gap-[8px] rounded-full bg-[var(--label-bg, #f5f5f5)] px-2 py-2 text-[12px] font-medium h-9 text-blackborder border-transparent hover:bg-gray-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--main-accent-color)]sm:w-[102px]",
|
|
29091
29098
|
a
|
|
29092
29099
|
),
|
|
29093
29100
|
children: [
|
|
@@ -29134,7 +29141,7 @@ const YA = {}, zC = ({
|
|
|
29134
29141
|
"button",
|
|
29135
29142
|
{
|
|
29136
29143
|
onClick: w,
|
|
29137
|
-
className: "inline-flex items-center gap-[4px] text-[0.95rem] text-black hover:text-[var(--main-accent-color)] transition-colors",
|
|
29144
|
+
className: "inline-flex flex-row items-center gap-[4px] text-[0.95rem] text-black hover:text-[var(--main-accent-color)] transition-colors",
|
|
29138
29145
|
children: [
|
|
29139
29146
|
/* @__PURE__ */ T.jsx(ah, { className: "h-3.5 w-[12px].5" }),
|
|
29140
29147
|
"Clear"
|
|
@@ -29157,7 +29164,7 @@ const YA = {}, zC = ({
|
|
|
29157
29164
|
"aria-selected": O,
|
|
29158
29165
|
tabIndex: 0,
|
|
29159
29166
|
className: Mt(
|
|
29160
|
-
"flex items-start justify-between gap-[8px] px-4 py-2 cursor-pointer",
|
|
29167
|
+
"flex flex-row items-start justify-between gap-[8px] px-4 py-2 cursor-pointer",
|
|
29161
29168
|
"hover:bg-gray-50 focus:bg-gray-50 focus:outline-none"
|
|
29162
29169
|
),
|
|
29163
29170
|
onClick: () => N(D.value),
|
|
@@ -29165,7 +29172,7 @@ const YA = {}, zC = ({
|
|
|
29165
29172
|
(F.key === "Enter" || F.key === " ") && (F.preventDefault(), N(D.value));
|
|
29166
29173
|
},
|
|
29167
29174
|
children: [
|
|
29168
|
-
/* @__PURE__ */ T.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
29175
|
+
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-row items-center gap-[8px]", children: [
|
|
29169
29176
|
/* @__PURE__ */ T.jsx("span", { className: "text-[1.05rem]", children: D.label }),
|
|
29170
29177
|
(() => {
|
|
29171
29178
|
if (!p || !g)
|
|
@@ -29201,7 +29208,7 @@ const WC = ({
|
|
|
29201
29208
|
}) => /* @__PURE__ */ T.jsx(
|
|
29202
29209
|
"div",
|
|
29203
29210
|
{
|
|
29204
|
-
className: s ? "absolute inset-0 flex items-center justify-center backdrop-blur bg-black/30 z-150" : "inline-flex items-center justify-center",
|
|
29211
|
+
className: s ? "absolute inset-0 flex flex-row items-center justify-center backdrop-blur bg-black/30 z-150" : "inline-flex flex-row items-center justify-center",
|
|
29205
29212
|
children: /* @__PURE__ */ T.jsxs(
|
|
29206
29213
|
"span",
|
|
29207
29214
|
{
|
|
@@ -29376,7 +29383,7 @@ const WC = ({
|
|
|
29376
29383
|
"div",
|
|
29377
29384
|
{
|
|
29378
29385
|
onClick: p,
|
|
29379
|
-
className: `absolute top-0 right-0 m-2 w-[16px] h-[16px] flex justify-center items-center
|
|
29386
|
+
className: `absolute top-0 right-0 m-2 w-[16px] h-[16px] flex flex-row justify-center items-center
|
|
29380
29387
|
bg-[var(--background-grey)] rounded-2xl border-none z-[100] cursor-pointer`,
|
|
29381
29388
|
children: /* @__PURE__ */ T.jsx(Xs, { className: "w-[8px] h-2 stroke-[var(--svg-dark)]" })
|
|
29382
29389
|
}
|
|
@@ -29416,7 +29423,7 @@ const WC = ({
|
|
|
29416
29423
|
}
|
|
29417
29424
|
}, l = Math.max(0, Ht - e.length);
|
|
29418
29425
|
return /* @__PURE__ */ T.jsxs("div", { className: t, children: [
|
|
29419
|
-
/* @__PURE__ */ T.jsxs("div", { className: "flex justify-between items-center mb-[12px]", children: [
|
|
29426
|
+
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-row justify-between items-center mb-[12px]", children: [
|
|
29420
29427
|
/* @__PURE__ */ T.jsxs("div", { className: "relative", children: [
|
|
29421
29428
|
/* @__PURE__ */ T.jsx("div", { className: "", children: "Swatches list" }),
|
|
29422
29429
|
/* @__PURE__ */ T.jsx("span", { className: "absolute top-0 right-[-20px] font-medium text-[var(--main-accent-color)] text-[8px] leading-none", children: "Free" })
|
|
@@ -29428,7 +29435,7 @@ const WC = ({
|
|
|
29428
29435
|
" Selected"
|
|
29429
29436
|
] })
|
|
29430
29437
|
] }),
|
|
29431
|
-
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-wrap gap-[8px]", children: [
|
|
29438
|
+
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-row flex-wrap gap-[8px]", children: [
|
|
29432
29439
|
e.map((c, f) => {
|
|
29433
29440
|
const p = c.metadata;
|
|
29434
29441
|
return /* @__PURE__ */ T.jsx(
|
|
@@ -29466,7 +29473,7 @@ const WC = ({
|
|
|
29466
29473
|
containerStyles: "flex flex-col p-[var(--sm-padding)] shrink-0 sm:w-[50%] sm:border-r sm:border-[var(--border)]"
|
|
29467
29474
|
}
|
|
29468
29475
|
),
|
|
29469
|
-
/* @__PURE__ */ T.jsx("div", { className: "flex w-full p-[var(--sm-padding)] border-t border-[var(--border)] sm:border-none lg:w-[50%] sm:justify-center sm:items-center lg:justify-end lg:items-end", children: /* @__PURE__ */ T.jsx("div", { className: "w-full lg:w-[50%]", children: /* @__PURE__ */ T.jsx(ME, { onClick: i, children: "ADD SWATCHES TO CART" }) }) })
|
|
29476
|
+
/* @__PURE__ */ T.jsx("div", { className: "flex flex-row w-full p-[var(--sm-padding)] border-t border-[var(--border)] sm:border-none lg:w-[50%] sm:justify-center sm:items-center lg:justify-end lg:items-end", children: /* @__PURE__ */ T.jsx("div", { className: "w-full lg:w-[50%]", children: /* @__PURE__ */ T.jsx(ME, { onClick: i, children: "ADD SWATCHES TO CART" }) }) })
|
|
29470
29477
|
]
|
|
29471
29478
|
}
|
|
29472
29479
|
);
|
|
@@ -29498,7 +29505,7 @@ const WC = ({
|
|
|
29498
29505
|
(D) => I(D.name).includes(p)
|
|
29499
29506
|
)), A === "asc" ? w = [...w].sort((D, O) => b.compare(D.name, O.name)) : A === "dsc" && (w = [...w].sort((D, O) => b.compare(O.name, D.name))), w;
|
|
29500
29507
|
}, [i, a, p, A, b]);
|
|
29501
|
-
return /* @__PURE__ */ T.jsxs("div", { className: "relative flex h-full min-h-0
|
|
29508
|
+
return /* @__PURE__ */ T.jsxs("div", { className: "relative flex flex-col h-full min-h-0 w-full", children: [
|
|
29502
29509
|
/* @__PURE__ */ T.jsxs("div", { className: "flex-shrink-0", children: [
|
|
29503
29510
|
/* @__PURE__ */ T.jsx("div", { className: "h-40 overflow-hidden", children: /* @__PURE__ */ T.jsx("img", { src: l4, className: "object-cover w-full h-full" }) }),
|
|
29504
29511
|
/* @__PURE__ */ T.jsxs("header", { className: "flex flex-col border-b border-[var(--border)] lg:flex-row lg:justify-between", children: [
|
|
@@ -29512,10 +29519,10 @@ const WC = ({
|
|
|
29512
29519
|
] }) })
|
|
29513
29520
|
] })
|
|
29514
29521
|
] }),
|
|
29515
|
-
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-1 min-h-0
|
|
29522
|
+
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-col flex-1 min-h-0", children: [
|
|
29516
29523
|
(t || n) && /* @__PURE__ */ T.jsx(WC, {}),
|
|
29517
|
-
/* @__PURE__ */ T.jsxs("div", { className: "flex w-full items-center justify-between gap-[16px] border-b border-[var(--border)] p-[var(--sm-padding)]", children: [
|
|
29518
|
-
/* @__PURE__ */ T.jsxs("div", { className: "flex h-[36px] w-full items-center justify-between gap-[16px] shrink-0 lg:max-w-[382px]", children: [
|
|
29524
|
+
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-row w-full items-center justify-between gap-[16px] border-b border-[var(--border)] p-[var(--sm-padding)]", children: [
|
|
29525
|
+
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-row h-[36px] w-full items-center justify-between gap-[16px] shrink-0 lg:max-w-[382px]", children: [
|
|
29519
29526
|
/* @__PURE__ */ T.jsxs("div", { className: "relative h-[36px] flex-1 min-w-0 lg:max-w-[240px]", children: [
|
|
29520
29527
|
/* @__PURE__ */ T.jsx(
|
|
29521
29528
|
"input",
|
|
@@ -29561,7 +29568,7 @@ const WC = ({
|
|
|
29561
29568
|
items: y,
|
|
29562
29569
|
activeId: a.productId,
|
|
29563
29570
|
onSelect: (w) => l(w),
|
|
29564
|
-
className: "hidden lg:flex shrink-0 overflow-x-auto"
|
|
29571
|
+
className: "hidden lg:flex flex-row shrink-0 overflow-x-auto"
|
|
29565
29572
|
}
|
|
29566
29573
|
)
|
|
29567
29574
|
] }),
|
|
@@ -29582,7 +29589,7 @@ const WC = ({
|
|
|
29582
29589
|
productListItem: w
|
|
29583
29590
|
},
|
|
29584
29591
|
w.name
|
|
29585
|
-
)) }) : /* @__PURE__ */ T.jsx("div", { className: "flex h-full items-center justify-center", children: "No products were found" })
|
|
29592
|
+
)) }) : /* @__PURE__ */ T.jsx("div", { className: "flex flex-row h-full items-center justify-center", children: "No products were found" })
|
|
29586
29593
|
] }),
|
|
29587
29594
|
s.length ? /* @__PURE__ */ T.jsx(GC, {}) : null
|
|
29588
29595
|
] })
|
|
@@ -29848,7 +29855,7 @@ function A4({
|
|
|
29848
29855
|
ZC,
|
|
29849
29856
|
{
|
|
29850
29857
|
"data-slot": "checkbox-indicator",
|
|
29851
|
-
className: "flex items-center justify-center text-current transition-none",
|
|
29858
|
+
className: "flex flex-row items-center justify-center text-current transition-none",
|
|
29852
29859
|
children: /* @__PURE__ */ T.jsx(E1, { className: "size-3" })
|
|
29853
29860
|
}
|
|
29854
29861
|
)
|
|
@@ -29890,7 +29897,7 @@ const ra = v.forwardRef(
|
|
|
29890
29897
|
"span",
|
|
29891
29898
|
{
|
|
29892
29899
|
className: `
|
|
29893
|
-
flex-none flex justify-center items-center
|
|
29900
|
+
flex-none flex flex-row justify-center items-center
|
|
29894
29901
|
w-[20px] h-5 rounded-full
|
|
29895
29902
|
bg-[var(--main-accent-color)] text-white
|
|
29896
29903
|
text-[10px] leading-none
|
|
@@ -30170,7 +30177,7 @@ const tT = ({
|
|
|
30170
30177
|
dropdownWidth: "w-80"
|
|
30171
30178
|
}
|
|
30172
30179
|
);
|
|
30173
|
-
}, nT = () => /* @__PURE__ */ T.jsxs("div", { className: "flex items-center gap-[16px] p-[var(--sm-padding)] border-b border-solid border-[var(--border)]", children: [
|
|
30180
|
+
}, nT = () => /* @__PURE__ */ T.jsxs("div", { className: "flex flex-row items-center gap-[16px] p-[var(--sm-padding)] border-b border-solid border-[var(--border)]", children: [
|
|
30174
30181
|
/* @__PURE__ */ T.jsx(E4, {}),
|
|
30175
30182
|
/* @__PURE__ */ T.jsx(y4, {}),
|
|
30176
30183
|
/* @__PURE__ */ T.jsx(C4, {})
|
|
@@ -30184,7 +30191,7 @@ const tT = ({
|
|
|
30184
30191
|
/* @__PURE__ */ T.jsx(
|
|
30185
30192
|
tT,
|
|
30186
30193
|
{
|
|
30187
|
-
containerStyles: `flex justify-between items-center gap-[8px] p-[var(--sm-padding)] w-full text-[12px]
|
|
30194
|
+
containerStyles: `flex flex-row justify-between items-center gap-[8px] p-[var(--sm-padding)] w-full text-[12px]
|
|
30188
30195
|
border-b border-[var(--border)]
|
|
30189
30196
|
sm:max-w-[360px] sm:text-sm sm:border-none
|
|
30190
30197
|
`,
|
|
@@ -30787,7 +30794,7 @@ const B4 = (e) => /* @__PURE__ */ T.jsx(
|
|
|
30787
30794
|
{
|
|
30788
30795
|
className: `
|
|
30789
30796
|
absolute top-0 right-0 m-2 h-[30px] w-[30px]
|
|
30790
|
-
flex items-center justify-center rounded-2xl border-none
|
|
30797
|
+
flex flex-row items-center justify-center rounded-2xl border-none
|
|
30791
30798
|
bg-[var(--background-grey)] pointer-events-none
|
|
30792
30799
|
${f ? "bg-[var(--main-accent-color)]" : ""}
|
|
30793
30800
|
`,
|
|
@@ -30826,7 +30833,7 @@ const B4 = (e) => /* @__PURE__ */ T.jsx(
|
|
|
30826
30833
|
document.removeEventListener("mousedown", c);
|
|
30827
30834
|
};
|
|
30828
30835
|
}, [e, t]), e ? FE.createPortal(
|
|
30829
|
-
/* @__PURE__ */ T.jsx("div", { className: "fixed inset-0 z-99999999999999 flex items-center justify-center bg-black/40 p-4", children: /* @__PURE__ */ T.jsxs(
|
|
30836
|
+
/* @__PURE__ */ T.jsx("div", { className: "fixed inset-0 z-99999999999999 flex flex-row items-center justify-center bg-black/40 p-4", children: /* @__PURE__ */ T.jsxs(
|
|
30830
30837
|
"div",
|
|
30831
30838
|
{
|
|
30832
30839
|
ref: l,
|
|
@@ -30839,13 +30846,13 @@ const B4 = (e) => /* @__PURE__ */ T.jsx(
|
|
|
30839
30846
|
height: s || "auto"
|
|
30840
30847
|
},
|
|
30841
30848
|
children: [
|
|
30842
|
-
/* @__PURE__ */ T.jsxs("div", { className: "flex items-center justify-between p-[var(--sm-padding)] border-b border-[var(--border)]", children: [
|
|
30849
|
+
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-row items-center justify-between p-[var(--sm-padding)] border-b border-[var(--border)]", children: [
|
|
30843
30850
|
/* @__PURE__ */ T.jsx("span", { className: "text-base font-semibold text-[var(--text)]", children: n }),
|
|
30844
30851
|
/* @__PURE__ */ T.jsx(
|
|
30845
30852
|
"button",
|
|
30846
30853
|
{
|
|
30847
30854
|
onClick: t,
|
|
30848
|
-
className: "flex justify-center items-center p-1 rounded-full bg-[var(--border)] hover:bg-gray-100 transition [&_svg_path]:stroke-[var(--svg-dark)] w-[30px] h-[30px]",
|
|
30855
|
+
className: "flex flex-row justify-center items-center p-1 rounded-full bg-[var(--border)] hover:bg-gray-100 transition [&_svg_path]:stroke-[var(--svg-dark)] w-[30px] h-[30px]",
|
|
30849
30856
|
children: /* @__PURE__ */ T.jsx(
|
|
30850
30857
|
Xs,
|
|
30851
30858
|
{
|
|
@@ -30959,8 +30966,8 @@ const B4 = (e) => /* @__PURE__ */ T.jsx(
|
|
|
30959
30966
|
const n = () => {
|
|
30960
30967
|
e(C2());
|
|
30961
30968
|
};
|
|
30962
|
-
return /* @__PURE__ */ T.jsxs("div", { className: "flex h-full
|
|
30963
|
-
/* @__PURE__ */ T.jsx("header", { className: "flex shrink-0 items-center justify-between border-b border-[var(--border)] p-[var(--sm-padding)]", children: /* @__PURE__ */ T.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
30969
|
+
return /* @__PURE__ */ T.jsxs("div", { className: "flex flex-col h-full ", children: [
|
|
30970
|
+
/* @__PURE__ */ T.jsx("header", { className: "flex flex-row shrink-0 items-center justify-between border-b border-[var(--border)] p-[var(--sm-padding)]", children: /* @__PURE__ */ T.jsxs("div", { className: "flex flex-row items-center gap-[8px]", children: [
|
|
30964
30971
|
/* @__PURE__ */ T.jsx(
|
|
30965
30972
|
"button",
|
|
30966
30973
|
{
|
|
@@ -30971,7 +30978,7 @@ const B4 = (e) => /* @__PURE__ */ T.jsx(
|
|
|
30971
30978
|
),
|
|
30972
30979
|
/* @__PURE__ */ T.jsx("h2", { className: "m-0 text-base font-medium leading-[1.6]", children: t?.name })
|
|
30973
30980
|
] }) }),
|
|
30974
|
-
/* @__PURE__ */ T.jsxs("div", { className: "flex min-h-0 flex-1
|
|
30981
|
+
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-col min-h-0 flex-1 ", children: [
|
|
30975
30982
|
/* @__PURE__ */ T.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ T.jsx(T4, {}) }),
|
|
30976
30983
|
/* @__PURE__ */ T.jsx(
|
|
30977
30984
|
L4,
|
|
@@ -31078,7 +31085,7 @@ const Y4 = () => /* @__PURE__ */ T.jsx(
|
|
|
31078
31085
|
n(pl({ selectedMaterial: a }));
|
|
31079
31086
|
}, s = Math.max(0, Ht - e.length);
|
|
31080
31087
|
return /* @__PURE__ */ T.jsxs("div", { className: t, children: [
|
|
31081
|
-
/* @__PURE__ */ T.jsxs("div", { className: "flex justify-between items-center mb-[12px]", children: [
|
|
31088
|
+
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-row justify-between items-center mb-[12px]", children: [
|
|
31082
31089
|
/* @__PURE__ */ T.jsxs("div", { className: "relative", children: [
|
|
31083
31090
|
/* @__PURE__ */ T.jsx("div", { className: "", children: "Swatches list" }),
|
|
31084
31091
|
/* @__PURE__ */ T.jsx("span", { className: "absolute top-0 right-[-20px] font-medium text-[var(--main-accent-color)] text-[8px] leading-none", children: "Free" })
|
|
@@ -31090,7 +31097,7 @@ const Y4 = () => /* @__PURE__ */ T.jsx(
|
|
|
31090
31097
|
" Selected"
|
|
31091
31098
|
] })
|
|
31092
31099
|
] }),
|
|
31093
|
-
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-wrap gap-[8px]", children: [
|
|
31100
|
+
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-row flex-wrap gap-[8px]", children: [
|
|
31094
31101
|
e.map((a, l) => {
|
|
31095
31102
|
const c = a.metadata;
|
|
31096
31103
|
return /* @__PURE__ */ T.jsx(
|
|
@@ -31161,13 +31168,13 @@ const Y4 = () => /* @__PURE__ */ T.jsx(
|
|
|
31161
31168
|
c && i(b2(c)), n(nl.CART);
|
|
31162
31169
|
};
|
|
31163
31170
|
return /* @__PURE__ */ T.jsxs(sT, { isOpen: e, setIsOpen: t, children: [
|
|
31164
|
-
/* @__PURE__ */ T.jsxs("header", { className: "flex p-[var(--sm-padding)] justify-between items-center border-b border-solid border-[var(--border)]", children: [
|
|
31171
|
+
/* @__PURE__ */ T.jsxs("header", { className: "flex flex-row p-[var(--sm-padding)] justify-between items-center border-b border-solid border-[var(--border)]", children: [
|
|
31165
31172
|
/* @__PURE__ */ T.jsx("h2", { className: "m-0 text-[16px] leading-[1.6] font-medium", children: "Order free swatches" }),
|
|
31166
31173
|
/* @__PURE__ */ T.jsx(
|
|
31167
31174
|
"button",
|
|
31168
31175
|
{
|
|
31169
|
-
className: `flex justify-center items-center w-[30px] h-[30px] bg-[var(--background-grey)]
|
|
31170
|
-
border-none cursor-pointer rounded-full
|
|
31176
|
+
className: `flex flex-row justify-center items-center w-[30px] h-[30px] bg-[var(--background-grey)]
|
|
31177
|
+
border-none cursor-pointer rounded-full
|
|
31171
31178
|
[&_svg_path]:stroke-[var(--svg-dark)]`,
|
|
31172
31179
|
onClick: t,
|
|
31173
31180
|
children: /* @__PURE__ */ T.jsx(Xs, { width: 10, height: 10 })
|
|
@@ -31179,7 +31186,7 @@ const Y4 = () => /* @__PURE__ */ T.jsx(
|
|
|
31179
31186
|
/* @__PURE__ */ T.jsx(
|
|
31180
31187
|
tT,
|
|
31181
31188
|
{
|
|
31182
|
-
containerStyles: "flex justify-between items-center shrink-0 p-[var(--sm-padding)] border-b border-solid border-[var(--border)]",
|
|
31189
|
+
containerStyles: "flex flex-row justify-between items-center shrink-0 p-[var(--sm-padding)] border-b border-solid border-[var(--border)]",
|
|
31183
31190
|
selectStyles: "min-w-[auto] max-w-[154px] sm:max-w-[auto] sm:min-w-[250px]"
|
|
31184
31191
|
}
|
|
31185
31192
|
),
|
|
@@ -31210,9 +31217,9 @@ const Y4 = () => /* @__PURE__ */ T.jsx(
|
|
|
31210
31217
|
onToggleSidebar: t
|
|
31211
31218
|
}) => {
|
|
31212
31219
|
const n = je(aT);
|
|
31213
|
-
return /* @__PURE__ */ T.jsxs("header", { className: "flex MaterialMultiProductList justify-between items-center border-b border-solid border-[var(--border)] p-[var(--sm-padding)]", children: [
|
|
31214
|
-
/* @__PURE__ */ T.jsxs("div", { className: "flex items-center
|
|
31215
|
-
/* @__PURE__ */ T.jsxs("div", { className: "flex items-center gap-[8px]", children: [
|
|
31220
|
+
return /* @__PURE__ */ T.jsxs("header", { className: "flex flex-row MaterialMultiProductList justify-between items-center border-b border-solid border-[var(--border)] p-[var(--sm-padding)]", children: [
|
|
31221
|
+
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-row items-center gap-[4px]", children: [
|
|
31222
|
+
/* @__PURE__ */ T.jsxs("div", { className: "flex flex-row items-center gap-[8px]", children: [
|
|
31216
31223
|
/* @__PURE__ */ T.jsx(
|
|
31217
31224
|
"button",
|
|
31218
31225
|
{
|
|
@@ -31239,7 +31246,7 @@ const Y4 = () => /* @__PURE__ */ T.jsx(
|
|
|
31239
31246
|
/* @__PURE__ */ T.jsx(
|
|
31240
31247
|
"button",
|
|
31241
31248
|
{
|
|
31242
|
-
className: `flex justify-center items-center w-[30px] h-[30px] bg-[var(--background-grey)]
|
|
31249
|
+
className: `flex flex-row justify-center items-center w-[30px] h-[30px] bg-[var(--background-grey)]
|
|
31243
31250
|
border-none cursor-pointer rounded-full
|
|
31244
31251
|
[&_svg_path]:stroke-[var(--svg-dark)]`,
|
|
31245
31252
|
onClick: t,
|