formica-ui-lib 1.0.270 → 1.0.271

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
@@ -310,7 +310,7 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
310
310
  "2xl": "max-w-2xl",
311
311
  "4xl": "max-w-4xl",
312
312
  "6xl": "max-w-6xl"
313
- }, L = {
313
+ }, ee = {
314
314
  none: "",
315
315
  section: "mb-16 md:mb-20",
316
316
  compactPaddedSection: "px-4 mb-8 md:px-0 md:mb-10",
@@ -318,56 +318,56 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
318
318
  padded: "px-4 pb-16 md:px-0 md:pb-20",
319
319
  preview: "px-4 py-8 md:px-0",
320
320
  verticalPreview: "py-8"
321
- }, ee = "mt-10 md:mt-20", R = ({ children: e, className: t = "", innerClassName: n = "", isFirst: r = !1, maxWidth: i = "6xl", spacing: a = "paddedSection" }) => /* @__PURE__ */ c("div", {
322
- className: `mx-auto w-full ${r ? ee : ""} ${L[a]} ${t}`.trim(),
321
+ }, te = "mt-10 md:mt-20", L = ({ children: e, className: t = "", innerClassName: n = "", isFirst: r = !1, maxWidth: i = "6xl", spacing: a = "paddedSection" }) => /* @__PURE__ */ c("div", {
322
+ className: `mx-auto w-full ${r ? te : ""} ${ee[a]} ${t}`.trim(),
323
323
  children: /* @__PURE__ */ c("div", {
324
324
  className: `mx-auto w-full ${I[i]} ${n}`.trim(),
325
325
  children: e
326
326
  })
327
- }), te = {
327
+ }), R = {
328
328
  1: "grid-cols-1",
329
329
  2: "grid-cols-2",
330
330
  3: "grid-cols-3",
331
331
  4: "grid-cols-4"
332
- }, z = {
332
+ }, ne = {
333
333
  sm: "gap-3",
334
334
  md: "gap-6",
335
335
  lg: "gap-8",
336
336
  xl: "gap-12"
337
- }, B = ({ children: e, className: t = "", gridClassName: n = "", maxWidth: r = "6xl", spacing: i = "none", columns: a = 3, gap: o = "md" }) => /* @__PURE__ */ c(R, {
337
+ }, z = ({ children: e, className: t = "", gridClassName: n = "", maxWidth: r = "6xl", spacing: i = "none", columns: a = 3, gap: o = "md" }) => /* @__PURE__ */ c(L, {
338
338
  className: t,
339
339
  maxWidth: r,
340
340
  spacing: i,
341
341
  children: /* @__PURE__ */ c("div", {
342
- className: `grid ${te[a]} ${z[o]} ${n}`.trim(),
342
+ className: `grid ${R[a]} ${ne[o]} ${n}`.trim(),
343
343
  children: e
344
344
  })
345
- }), V = {
345
+ }), B = {
346
346
  sm: "gap-2",
347
347
  md: "gap-4",
348
348
  lg: "gap-6",
349
349
  xl: "gap-8"
350
- }, H = {
350
+ }, V = {
351
351
  start: "items-start",
352
352
  center: "items-center",
353
353
  end: "items-end",
354
354
  stretch: "items-stretch"
355
- }, U = {
355
+ }, H = {
356
356
  start: "justify-start",
357
357
  center: "justify-center",
358
358
  end: "justify-end",
359
359
  between: "justify-between",
360
360
  around: "justify-around",
361
361
  evenly: "justify-evenly"
362
- }, W = ({ children: e, className: t = "", gap: n = "md", align: r = "center", justify: i = "start", wrap: a = !0 }) => /* @__PURE__ */ c("div", {
363
- className: `flex ${a ? "flex-wrap" : "flex-nowrap"} ${V[n]} ${H[r]} ${U[i]} ${t}`.trim(),
362
+ }, U = ({ children: e, className: t = "", gap: n = "md", align: r = "center", justify: i = "start", wrap: a = !0 }) => /* @__PURE__ */ c("div", {
363
+ className: `flex ${a ? "flex-wrap" : "flex-nowrap"} ${B[n]} ${V[r]} ${H[i]} ${t}`.trim(),
364
364
  children: e
365
- }), G = "font-bold text-primary", ne = (e, t, n) => {
365
+ }), W = "font-bold text-primary", G = (e, t, n) => {
366
366
  e?.({
367
367
  label: t,
368
368
  href: n
369
369
  });
370
- }, K = ({ heading: e, address: t, mapLink: n, hours: r, phone: i, email: a, onAddressClick: o, onMapClick: s, onPhoneClick: u, onEmailClick: f }) => {
370
+ }, re = ({ heading: e, address: t, mapLink: n, hours: r, phone: i, email: a, onAddressClick: o, onMapClick: s, onPhoneClick: u, onEmailClick: f }) => {
371
371
  let p = t?.lines.join(" ");
372
372
  return /* @__PURE__ */ l("article", {
373
373
  className: "w-full bg-white py-10 md:py-16",
@@ -389,7 +389,7 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
389
389
  as: "a",
390
390
  variant: "link",
391
391
  href: t.href,
392
- onClick: () => ne(o, p ?? "", t.href),
392
+ onClick: () => G(o, p ?? "", t.href),
393
393
  children: p
394
394
  }) : /* @__PURE__ */ c(d, {
395
395
  as: "span",
@@ -400,7 +400,7 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
400
400
  as: "a",
401
401
  variant: "link",
402
402
  href: n.href,
403
- onClick: () => ne(s, n.label, n.href),
403
+ onClick: () => G(s, n.label, n.href),
404
404
  children: n.label
405
405
  }) : /* @__PURE__ */ c(d, {
406
406
  as: "span",
@@ -416,7 +416,7 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
416
416
  }), /* @__PURE__ */ c("dl", { children: r.items.map((e) => /* @__PURE__ */ l("div", {
417
417
  className: "flex flex-wrap gap-x-1",
418
418
  children: [/* @__PURE__ */ l("dt", {
419
- className: G,
419
+ className: W,
420
420
  children: [e.dayLabel, ":"]
421
421
  }), /* @__PURE__ */ c("dd", { children: e.hours })]
422
422
  }, e.dayLabel)) })] }) : null,
@@ -428,7 +428,7 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
428
428
  as: "a",
429
429
  variant: "link",
430
430
  href: i.href,
431
- onClick: () => ne(u, i.value, i.href),
431
+ onClick: () => G(u, i.value, i.href),
432
432
  children: i.value
433
433
  }) : /* @__PURE__ */ c(d, {
434
434
  as: "span",
@@ -444,7 +444,7 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
444
444
  as: "a",
445
445
  variant: "link",
446
446
  href: a.href,
447
- onClick: () => ne(f, a.value, a.href),
447
+ onClick: () => G(f, a.value, a.href),
448
448
  children: a.value
449
449
  }) : /* @__PURE__ */ c(d, {
450
450
  as: "span",
@@ -455,12 +455,12 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
455
455
  ]
456
456
  })]
457
457
  });
458
- }, q = (e, t, n) => Math.max(t, Math.min(n, e)), J = (e) => ["h-12 w-12 border-2 border-secondaryActive!", e ? "text-primary! hover:text-accent!" : "border-secondaryHover! text-tertiary!"].join(" "), re = ({ imageSrc: e, imageAlt: t, title: n, brand: r, decorNumber: i, productType: a, quantity: o, price: s, minQuantity: u = 1, maxQuantity: f = 99, onQuantityChange: p, onRemoveItem: m }) => {
459
- let h = q(o, u, f), g = () => {
460
- let e = q(h - 1, u, f);
458
+ }, ie = (e, t, n) => Math.max(t, Math.min(n, e)), ae = (e) => ["h-12 w-12 border-2 border-secondaryActive!", e ? "text-primary! hover:text-accent!" : "border-secondaryHover! text-tertiary!"].join(" "), oe = ({ imageSrc: e, imageAlt: t, title: n, brand: r, decorNumber: i, productType: a, quantity: o, price: s, minQuantity: u = 1, maxQuantity: f = 99, onQuantityChange: p, onRemoveItem: m }) => {
459
+ let h = ie(o, u, f), g = () => {
460
+ let e = ie(h - 1, u, f);
461
461
  e !== h && p?.(e);
462
462
  }, _ = () => {
463
- let e = q(h + 1, u, f);
463
+ let e = ie(h + 1, u, f);
464
464
  e !== h && p?.(e);
465
465
  }, v = h > u, y = h < f;
466
466
  return /* @__PURE__ */ l("div", {
@@ -518,7 +518,7 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
518
518
  type: "button",
519
519
  disabled: !v,
520
520
  onClick: g,
521
- className: J(v)
521
+ className: ae(v)
522
522
  }),
523
523
  /* @__PURE__ */ c("div", {
524
524
  className: "flex min-w-10 items-center justify-center",
@@ -538,7 +538,7 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
538
538
  type: "button",
539
539
  disabled: !y,
540
540
  onClick: _,
541
- className: J(y)
541
+ className: ae(y)
542
542
  })
543
543
  ]
544
544
  })
@@ -546,7 +546,7 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
546
546
  })
547
547
  ]
548
548
  });
549
- }, ie = ({ actions: e, onActionClick: t }) => {
549
+ }, K = ({ actions: e, onActionClick: t }) => {
550
550
  let n = (e) => {
551
551
  t?.({ action: e });
552
552
  };
@@ -570,7 +570,7 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
570
570
  }, e.id);
571
571
  })
572
572
  });
573
- }, ae = ({ children: e, onCardClick: t, ariaLabel: n, ariaControls: r, ariaExpanded: i, className: a }) => /* @__PURE__ */ c("button", {
573
+ }, se = ({ children: e, onCardClick: t, ariaLabel: n, ariaControls: r, ariaExpanded: i, className: a }) => /* @__PURE__ */ c("button", {
574
574
  type: "button",
575
575
  onClick: t,
576
576
  "aria-label": n,
@@ -578,7 +578,7 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
578
578
  "aria-expanded": i,
579
579
  className: a || "block text-left bg-transparent border-0 p-0 cursor-pointer",
580
580
  children: e
581
- }), oe = (e, t) => `${e.toLocaleString()} ${t}${e === 1 ? "" : "s"}`, se = ({ decorId: e, decorCode: t, name: n, imageUrl: r, imageAlt: i = "", sheetCount: a, sampleCount: o, sheetLabel: s = "sheet", sampleLabel: u = "sample", openLabel: f = "Open", disabled: p = !1, onDecorClick: m }) => {
581
+ }), q = (e, t) => `${e.toLocaleString()} ${t}${e === 1 ? "" : "s"}`, J = ({ decorId: e, decorCode: t, name: n, imageUrl: r, imageAlt: i = "", sheetCount: a, sampleCount: o, sheetLabel: s = "sheet", sampleLabel: u = "sample", openLabel: f = "Open", disabled: p = !1, onDecorClick: m }) => {
582
582
  let g = /* @__PURE__ */ l("article", {
583
583
  className: "flex w-full items-center gap-3 rounded-md border border-borderTertiary bg-secondary p-3 shadow-sm transition group-hover:border-primary md:gap-4 md:p-4",
584
584
  children: [
@@ -615,12 +615,12 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
615
615
  }), /* @__PURE__ */ l("div", {
616
616
  className: "mt-2 flex flex-wrap gap-x-2 gap-y-1 text-xs text-primary md:mt-0 md:justify-end",
617
617
  children: [
618
- /* @__PURE__ */ c("span", { children: oe(a, s) }),
618
+ /* @__PURE__ */ c("span", { children: q(a, s) }),
619
619
  /* @__PURE__ */ c("span", {
620
620
  "aria-hidden": "true",
621
621
  children: "·"
622
622
  }),
623
- /* @__PURE__ */ c("span", { children: oe(o, u) })
623
+ /* @__PURE__ */ c("span", { children: q(o, u) })
624
624
  ]
625
625
  })]
626
626
  }),
@@ -633,7 +633,7 @@ var j = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; p
633
633
  })
634
634
  ]
635
635
  });
636
- return !m || p ? g : /* @__PURE__ */ c(ae, {
636
+ return !m || p ? g : /* @__PURE__ */ c(se, {
637
637
  ariaLabel: `${f} ${n} (${t})`,
638
638
  className: "group block w-full cursor-pointer rounded-md text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
639
639
  onCardClick: () => {
@@ -3602,7 +3602,7 @@ var $a = {
3602
3602
  ]
3603
3603
  })]
3604
3604
  });
3605
- return s ? /* @__PURE__ */ c(ae, {
3605
+ return s ? /* @__PURE__ */ c(se, {
3606
3606
  onCardClick: s,
3607
3607
  ariaLabel: `Open ${n}`,
3608
3608
  className: "block w-full cursor-pointer text-left",
@@ -3637,7 +3637,7 @@ var $a = {
3637
3637
  ]
3638
3638
  })]
3639
3639
  });
3640
- return a ? /* @__PURE__ */ c(ae, {
3640
+ return a ? /* @__PURE__ */ c(se, {
3641
3641
  onCardClick: a,
3642
3642
  className: "block w-40 md:w-80 shrink-0 text-left",
3643
3643
  ariaLabel: `Open ${n}${i ? ` ${i}` : ""}`,
@@ -4306,7 +4306,7 @@ var $a = {
4306
4306
  slide: e,
4307
4307
  heightClassName: n
4308
4308
  })
4309
- }), Io = ({ slide: e, index: t, heightClassName: n, onSlideClick: r }) => /* @__PURE__ */ c(ae, {
4309
+ }), Io = ({ slide: e, index: t, heightClassName: n, onSlideClick: r }) => /* @__PURE__ */ c(se, {
4310
4310
  onCardClick: () => {
4311
4311
  r(e, t);
4312
4312
  },
@@ -4662,7 +4662,7 @@ var $a = {
4662
4662
  }) : null
4663
4663
  ]
4664
4664
  });
4665
- return r ? /* @__PURE__ */ c(ae, {
4665
+ return r ? /* @__PURE__ */ c(se, {
4666
4666
  onCardClick: r,
4667
4667
  ariaLabel: `Open ${n}`,
4668
4668
  className: "block w-full cursor-pointer text-left",
@@ -4712,7 +4712,7 @@ var $a = {
4712
4712
  })
4713
4713
  }), Zo = ({ question: e, answer: t, initiallyOpen: r = !1 }) => {
4714
4714
  let [i, a] = o(r), s = n();
4715
- return /* @__PURE__ */ c(ae, {
4715
+ return /* @__PURE__ */ c(se, {
4716
4716
  onCardClick: () => a((e) => !e),
4717
4717
  ariaLabel: `${i ? "Collapse" : "Expand"} ${e}`,
4718
4718
  ariaControls: s,
@@ -6158,7 +6158,7 @@ var $a = {
6158
6158
  })
6159
6159
  ]
6160
6160
  });
6161
- return p ? /* @__PURE__ */ c(ae, {
6161
+ return p ? /* @__PURE__ */ c(se, {
6162
6162
  ariaLabel: `View ${t} details`,
6163
6163
  className: "block w-full cursor-pointer text-left transition hover:opacity-90 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",
6164
6164
  onCardClick: () => p({
@@ -6226,7 +6226,7 @@ var $a = {
6226
6226
  ]
6227
6227
  })]
6228
6228
  });
6229
- return o ? /* @__PURE__ */ c(ae, {
6229
+ return o ? /* @__PURE__ */ c(se, {
6230
6230
  ariaLabel: `Edit ${t} localization`,
6231
6231
  className: "block w-full cursor-pointer rounded-lg text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",
6232
6232
  onCardClick: () => o({
@@ -6280,7 +6280,7 @@ var $a = {
6280
6280
  className: "w-full flex flex-col md:flex-nowrap md:max-w-64 mx-auto items-center",
6281
6281
  children: [/* @__PURE__ */ l("div", {
6282
6282
  className: "relative md:flex md:w-full w-52",
6283
- children: [p ? /* @__PURE__ */ c(ae, {
6283
+ children: [p ? /* @__PURE__ */ c(se, {
6284
6284
  onCardClick: u,
6285
6285
  className: `${h} cursor-pointer`,
6286
6286
  ariaLabel: `Open ${r}${o}`,
@@ -7022,7 +7022,7 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
7022
7022
  "aria-label": "Search results",
7023
7023
  children: [/* @__PURE__ */ c("ul", {
7024
7024
  className: "max-h-96 divide-y divide-gray-200 overflow-y-auto",
7025
- children: t.map((e) => /* @__PURE__ */ c("li", { children: /* @__PURE__ */ l(ae, {
7025
+ children: t.map((e) => /* @__PURE__ */ c("li", { children: /* @__PURE__ */ l(se, {
7026
7026
  ariaLabel: Hc(e),
7027
7027
  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",
7028
7028
  onCardClick: () => r?.({ item: e }),
@@ -7212,7 +7212,7 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
7212
7212
  e?.(), p();
7213
7213
  };
7214
7214
  return u(/* @__PURE__ */ l("div", {
7215
- className: `fixed inset-0 z-50 ${e ? "" : "pointer-events-none"}`,
7215
+ className: `fixed inset-0 z-60 ${e ? "" : "pointer-events-none"}`,
7216
7216
  children: [
7217
7217
  /* @__PURE__ */ c("style", { children: qc }),
7218
7218
  /* @__PURE__ */ c("button", {
@@ -7332,38 +7332,38 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
7332
7332
  ]
7333
7333
  }), document.body);
7334
7334
  }, Yc = "__mobile-menu-open__", Xc = ({ NavMenuWithSubItems: e = [], countries: n, selectedCountry: r, Login: i, Account: s, Cart: u, showCart: d = !0, showFavorites: f = !0, showLogin: p = !0, Logo: m, searchResultItems: h, searchViewAllLabel: g, onLogoClick: _, onNavItemClick: v, onMegaMenuLinkClick: y, onSearchClick: b, onSearchChange: x, onSearchSubmit: S, onSearchResultClick: C, onSearchViewAllClick: w, onCartClick: T, onLoginClick: E, onAccountClick: O, onOrderHistoryClick: k, onProfileClick: j, onLogoutClick: M, onFavoritesClick: N, onCountrySelect: P }) => {
7335
- let F = a(null), [I, L] = o(null), [ee, R] = o(null), [te, z] = o(!1), B = ee !== null, V = e.find((e) => e.id === I), H = n ?? [], U = i ?? {
7335
+ let F = a(null), [I, ee] = o(null), [te, L] = o(null), [R, ne] = o(!1), z = te !== null, B = e.find((e) => e.id === I), V = n ?? [], H = i ?? {
7336
7336
  label: "Log In",
7337
7337
  href: "/login"
7338
- }, W = {
7338
+ }, U = {
7339
7339
  hasCart: u?.hasCart ?? !1,
7340
7340
  itemCount: u?.itemCount ?? 0
7341
- }, G = s ?? { loggedIn: U.loggedIn ?? !1 }, ne = () => {
7342
- z(!0), O?.();
7343
- }, K = "Formica", q = m?.src ?? K, J = kc(q), re = jc(K) ?? "", ie = jc(q, re) ?? re, ae = m?.alt ?? `${q} Logo`, oe = J === "broadview" ? "w-36 md:w-44" : "w-24", se = J === "broadview" ? "h-12 md:h-14" : "h-7 md:h-10", ce = m?.containerClassName ?? oe, le = m?.className ?? se;
7341
+ }, W = s ?? { loggedIn: H.loggedIn ?? !1 }, G = () => {
7342
+ ne(!0), O?.();
7343
+ }, re = "Formica", ie = m?.src ?? re, ae = kc(ie), oe = jc(re) ?? "", K = jc(ie, oe) ?? oe, se = m?.alt ?? `${ie} Logo`, q = ae === "broadview" ? "w-36 md:w-44" : "w-24", J = ae === "broadview" ? "h-12 md:h-14" : "h-7 md:h-10", ce = m?.containerClassName ?? q, le = m?.className ?? J;
7344
7344
  t(() => {
7345
7345
  if (!I) return;
7346
7346
  let e = (e) => {
7347
- F.current?.contains(e.target) || L(null);
7347
+ F.current?.contains(e.target) || ee(null);
7348
7348
  };
7349
7349
  return document.addEventListener("mousedown", e), () => {
7350
7350
  document.removeEventListener("mousedown", e);
7351
7351
  };
7352
7352
  }, [I]);
7353
7353
  let ue = () => {
7354
- R(null);
7354
+ L(null);
7355
7355
  }, de = (e, t = {}) => {
7356
- t.closeMobile && ue(), L(null), v?.(e);
7356
+ t.closeMobile && ue(), ee(null), v?.(e);
7357
7357
  }, fe = (e, t) => {
7358
7358
  if (e.subcategories?.length && !e.href) {
7359
- L(I === t ? null : t);
7359
+ ee(I === t ? null : t);
7360
7360
  return;
7361
7361
  }
7362
7362
  de(e);
7363
7363
  }, pe = (e, t = {}) => {
7364
- L(null), t.closeMobile && ue(), y?.(e);
7364
+ ee(null), t.closeMobile && ue(), y?.(e);
7365
7365
  }, me = (e) => {
7366
- R((t) => t === e ? Yc : e);
7366
+ L((t) => t === e ? Yc : e);
7367
7367
  };
7368
7368
  return /* @__PURE__ */ l("header", {
7369
7369
  ref: F,
@@ -7381,7 +7381,7 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
7381
7381
  onClick: _,
7382
7382
  "aria-label": "Go to home page",
7383
7383
  children: /* @__PURE__ */ c(A, {
7384
- src: ie,
7384
+ src: K,
7385
7385
  alt: "",
7386
7386
  className: le,
7387
7387
  quality: 90
@@ -7404,15 +7404,15 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
7404
7404
  iconName: "cart-shopping",
7405
7405
  iconSize: "lg",
7406
7406
  className: "relative h-9 w-9 p-0",
7407
- "aria-label": `Cart${W.itemCount ? ` (${W.itemCount})` : ""}`,
7407
+ "aria-label": `Cart${U.itemCount ? ` (${U.itemCount})` : ""}`,
7408
7408
  onClick: T,
7409
- children: W.itemCount ? /* @__PURE__ */ c("span", {
7409
+ children: U.itemCount ? /* @__PURE__ */ c("span", {
7410
7410
  "aria-hidden": "true",
7411
7411
  className: "absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-accent px-1 text-[10px] font-bold leading-none text-secondary",
7412
- children: W.itemCount
7412
+ children: U.itemCount
7413
7413
  }) : null
7414
7414
  }) : null,
7415
- p && G.loggedIn ? /* @__PURE__ */ c(D, {
7415
+ p && W.loggedIn ? /* @__PURE__ */ c(D, {
7416
7416
  variant: "ghost",
7417
7417
  iconType: "fa-solid",
7418
7418
  iconName: "user",
@@ -7420,27 +7420,27 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
7420
7420
  className: "h-9 w-9 p-0",
7421
7421
  "aria-label": "Open account menu",
7422
7422
  "aria-haspopup": "dialog",
7423
- onClick: ne
7423
+ onClick: G
7424
7424
  }) : null,
7425
7425
  /* @__PURE__ */ c(D, {
7426
7426
  variant: "ghost",
7427
7427
  iconType: "fa-solid",
7428
- iconName: B ? "xmark" : "bars",
7428
+ iconName: z ? "xmark" : "bars",
7429
7429
  iconSize: "lg",
7430
7430
  className: "h-9 w-9 p-0",
7431
- "aria-label": B ? "Close menu" : "Open menu",
7431
+ "aria-label": z ? "Close menu" : "Open menu",
7432
7432
  onClick: () => {
7433
- R((e) => e === null ? Yc : null);
7433
+ L((e) => e === null ? Yc : null);
7434
7434
  },
7435
- "aria-expanded": B
7435
+ "aria-expanded": z
7436
7436
  })
7437
7437
  ]
7438
7438
  })]
7439
7439
  }),
7440
- B ? /* @__PURE__ */ l("nav", {
7440
+ z ? /* @__PURE__ */ l("nav", {
7441
7441
  className: "border-t border-gray-200 px-3 py-2 md:hidden",
7442
7442
  children: [e.map((e) => {
7443
- let t = e.id, n = !!e.subcategories?.length, r = ee === t;
7443
+ let t = e.id, n = !!e.subcategories?.length, r = te === t;
7444
7444
  return n ? /* @__PURE__ */ l("div", {
7445
7445
  className: "border-b border-gray-200",
7446
7446
  children: [/* @__PURE__ */ c(D, {
@@ -7476,11 +7476,11 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
7476
7476
  buttonAlignment: "justify-start",
7477
7477
  onClick: () => de(e, { closeMobile: !0 })
7478
7478
  }, t);
7479
- }), p && !G.loggedIn ? /* @__PURE__ */ c("div", {
7479
+ }), p && !W.loggedIn ? /* @__PURE__ */ c("div", {
7480
7480
  className: "border-t border-gray-200 pt-2",
7481
7481
  children: /* @__PURE__ */ c(D, {
7482
7482
  variant: "link",
7483
- label: U.label,
7483
+ label: H.label,
7484
7484
  className: "w-full min-w-0 px-0 py-3 text-left",
7485
7485
  buttonAlignment: "justify-start",
7486
7486
  onClick: () => {
@@ -7497,8 +7497,8 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
7497
7497
  onClick: _,
7498
7498
  "aria-label": "Go to home page",
7499
7499
  children: /* @__PURE__ */ c(A, {
7500
- src: ie,
7501
- alt: ae,
7500
+ src: K,
7501
+ alt: se,
7502
7502
  className: le,
7503
7503
  quality: 90
7504
7504
  })
@@ -7516,11 +7516,11 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
7516
7516
  }, t);
7517
7517
  })
7518
7518
  }), /* @__PURE__ */ c(Gc, {
7519
- Countries: H,
7519
+ Countries: V,
7520
7520
  selectedCountry: r,
7521
- Login: U,
7522
- Account: G,
7523
- Cart: W,
7521
+ Login: H,
7522
+ Account: W,
7523
+ Cart: U,
7524
7524
  showCart: d,
7525
7525
  showFavorites: f,
7526
7526
  showLogin: p,
@@ -7533,7 +7533,7 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
7533
7533
  onSearchViewAllClick: w,
7534
7534
  onCartClick: T,
7535
7535
  onLoginClick: E,
7536
- onAccountClick: ne,
7536
+ onAccountClick: G,
7537
7537
  onFavoritesClick: N,
7538
7538
  onCountrySelect: P
7539
7539
  })]
@@ -7552,16 +7552,16 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
7552
7552
  children: /* @__PURE__ */ c("div", {
7553
7553
  className: "max-w-screen-xl mx-auto",
7554
7554
  children: /* @__PURE__ */ c(Vc, {
7555
- activeItem: V,
7555
+ activeItem: B,
7556
7556
  onMegaMenuLinkClick: pe
7557
7557
  })
7558
7558
  })
7559
7559
  })
7560
7560
  }),
7561
7561
  /* @__PURE__ */ c(Jc, {
7562
- ...G,
7563
- isOpen: te,
7564
- onClose: () => z(!1),
7562
+ ...W,
7563
+ isOpen: R,
7564
+ onClose: () => ne(!1),
7565
7565
  onOrderHistoryClick: k,
7566
7566
  onFavoritesClick: N,
7567
7567
  onProfileClick: j,
@@ -7962,7 +7962,7 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
7962
7962
  let m = a(null), h = a([]), [g, _] = o({
7963
7963
  left: 0,
7964
7964
  width: 0
7965
- }), v = i(() => Math.max(0, e.findIndex((e) => e.label === t)), [e, t]), y = () => {
7965
+ }), v = i(() => Math.max(0, e.findIndex((e) => (e.value ?? e.label) === t)), [e, t]), y = () => {
7966
7966
  let e = m.current, t = h.current[v];
7967
7967
  if (!e || !t) return;
7968
7968
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
@@ -7996,11 +7996,11 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
7996
7996
  children: s ? s({
7997
7997
  item: e,
7998
7998
  isActive: r,
7999
- onTabClick: () => !e.disabled && n(e.label)
7999
+ onTabClick: () => !e.disabled && n(e.value ?? e.label)
8000
8000
  }) : /* @__PURE__ */ c("button", {
8001
8001
  type: "button",
8002
8002
  disabled: e.disabled,
8003
- onClick: () => n(e.label),
8003
+ onClick: () => n(e.value ?? e.label),
8004
8004
  className: [
8005
8005
  "px-3 py-2 text-sm",
8006
8006
  "transition-opacity",
@@ -8417,16 +8417,16 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8417
8417
  })]
8418
8418
  });
8419
8419
  }, Dl = (e) => {
8420
- let { title: t, decor: n, description: r, colourMatching: i, patternRepeat: a, onDownloadSwatch: o, onDownloadFullSheet: s, tabs: u = ["Sample", "Buy Now"], activeTab: f, onTabChange: p, productOptions: m = [], gradeOptions: h = [], textureOptions: g = [], sizeOptions: _ = [], selectedProduct: v, selectedGrade: y, selectedTexture: b, selectedSize: x, onQuantityChange: S, availabilityHref: C, availabilityLabel: w = "View full product availability and information", notReturnableText: T = "This item is not returnable.", returnPolicyHref: E, returnPolicyLabel: O = "View return policy", onPurchaseInfoLinkClick: k, priceLabel: A, initialQuantity: j = 1, minQuantity: M = 1, maxQuantity: N = 99, showCartActions: P = !0, showFavorites: F = !0, actionMode: I = "cart", contactActions: L, onAddToWishlist: ee, onAddToCart: R, onContactActionClick: te, mobileMediaSlot: z } = e, B = u.map((e) => ({ label: e })), V = I === "cart" && P && B.length > 0, H = I === "contact" && !!L, U = V && B.length > 1, W = (e) => (t, n) => {
8420
+ let { title: t, decor: n, description: r, colourMatching: i, patternRepeat: a, onDownloadSwatch: o, onDownloadFullSheet: s, tabs: u = ["Sample", "Buy Now"], activeTab: f, onTabChange: p, productOptions: m = [], gradeOptions: h = [], textureOptions: g = [], sizeOptions: _ = [], selectedProduct: v, selectedGrade: y, selectedTexture: b, selectedSize: x, onQuantityChange: S, availabilityHref: C, availabilityLabel: w = "View full product availability and information", notReturnableText: T = "This item is not returnable.", returnPolicyHref: E, returnPolicyLabel: O = "View return policy", onPurchaseInfoLinkClick: k, priceLabel: A, initialQuantity: j = 1, minQuantity: M = 1, maxQuantity: N = 99, showCartActions: P = !0, showFavorites: F = !0, actionMode: I = "cart", contactActions: ee, onAddToWishlist: te, onAddToCart: L, onContactActionClick: R, mobileMediaSlot: ne } = e, z = u.map((e) => ({ label: e })), B = I === "cart" && P && z.length > 0, V = I === "contact" && !!ee, H = B && z.length > 1, U = (e) => (t, n) => {
8421
8421
  let r = "id" in n ? String(n.id) : null;
8422
8422
  (e.find((e) => e.value === t) ?? e.find((e) => e.id === r) ?? null)?.onOptionClick?.();
8423
- }, G = (e, t) => (n) => {
8423
+ }, W = (e, t) => (n) => {
8424
8424
  e && k && (n.preventDefault(), k(e, t));
8425
8425
  };
8426
8426
  return /* @__PURE__ */ l("div", {
8427
- className: ["w-full", H ? "md:relative md:aspect-square md:overflow-hidden" : ""].join(" "),
8427
+ className: ["w-full", V ? "md:relative md:aspect-square md:overflow-hidden" : ""].join(" "),
8428
8428
  children: [/* @__PURE__ */ l("div", {
8429
- className: [H ? "md:max-h-[calc(100%-8rem)] md:overflow-y-auto md:pr-2" : ""].join(" "),
8429
+ className: [V ? "md:max-h-[calc(100%-8rem)] md:overflow-y-auto md:pr-2" : ""].join(" "),
8430
8430
  children: [
8431
8431
  n ? /* @__PURE__ */ c(d, {
8432
8432
  as: "p",
@@ -8476,14 +8476,14 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8476
8476
  className: "px-0! border-0! hover:text-accent!"
8477
8477
  })]
8478
8478
  }),
8479
- z ? /* @__PURE__ */ c("div", {
8479
+ ne ? /* @__PURE__ */ c("div", {
8480
8480
  className: "md:hidden mb-10",
8481
- children: z
8481
+ children: ne
8482
8482
  }) : null,
8483
- U ? /* @__PURE__ */ c("div", {
8483
+ H ? /* @__PURE__ */ c("div", {
8484
8484
  className: "mb-5",
8485
8485
  children: /* @__PURE__ */ c(dl, {
8486
- items: B,
8486
+ items: z,
8487
8487
  value: f,
8488
8488
  onChange: p,
8489
8489
  renderTab: ({ item: e, isActive: t, onTabClick: n }) => /* @__PURE__ */ c("button", {
@@ -8498,9 +8498,9 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8498
8498
  className: "md:mb-10",
8499
8499
  children: [
8500
8500
  /* @__PURE__ */ l("div", {
8501
- className: ["space-y-5", V ? "md:min-h-[32rem]" : ""].join(" "),
8501
+ className: ["space-y-5", B ? "md:min-h-[32rem]" : ""].join(" "),
8502
8502
  children: [
8503
- V && m.length ? /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(d, {
8503
+ B && m.length ? /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(d, {
8504
8504
  as: "p",
8505
8505
  variant: "bold",
8506
8506
  className: "mb-2 text-sm md:text-base md:font-medium!",
@@ -8508,9 +8508,9 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8508
8508
  }), /* @__PURE__ */ c(El, {
8509
8509
  items: m,
8510
8510
  value: v ?? void 0,
8511
- onChange: W(m)
8511
+ onChange: U(m)
8512
8512
  })] }) : null,
8513
- V && h.length ? /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(d, {
8513
+ B && h.length ? /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(d, {
8514
8514
  as: "p",
8515
8515
  variant: "bold",
8516
8516
  className: "mb-2 text-sm md:text-base md:font-medium!",
@@ -8518,9 +8518,9 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8518
8518
  }), /* @__PURE__ */ c(El, {
8519
8519
  items: h,
8520
8520
  value: y ?? void 0,
8521
- onChange: W(h)
8521
+ onChange: U(h)
8522
8522
  })] }) : null,
8523
- V && g.length ? /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(d, {
8523
+ B && g.length ? /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(d, {
8524
8524
  as: "p",
8525
8525
  variant: "bold",
8526
8526
  className: "mb-2 text-sm md:text-base md:font-medium!",
@@ -8528,9 +8528,9 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8528
8528
  }), /* @__PURE__ */ c(El, {
8529
8529
  items: g,
8530
8530
  value: b ?? void 0,
8531
- onChange: W(g)
8531
+ onChange: U(g)
8532
8532
  })] }) : null,
8533
- V && _.length ? /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(d, {
8533
+ B && _.length ? /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(d, {
8534
8534
  as: "p",
8535
8535
  variant: "bold",
8536
8536
  className: "mb-2 text-sm md:text-base md:font-medium!",
@@ -8538,14 +8538,14 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8538
8538
  }), /* @__PURE__ */ c(El, {
8539
8539
  items: _,
8540
8540
  value: x ?? void 0,
8541
- onChange: W(_)
8541
+ onChange: U(_)
8542
8542
  })] }) : null,
8543
- V && f === "Buy Now" ? /* @__PURE__ */ l("div", { children: [C ? /* @__PURE__ */ c(d, {
8543
+ B && f === "Buy Now" ? /* @__PURE__ */ l("div", { children: [C ? /* @__PURE__ */ c(d, {
8544
8544
  as: "a",
8545
8545
  href: C,
8546
8546
  variant: "body",
8547
8547
  className: "text-sm underline hover:text-accent",
8548
- onClick: G(C, { kind: "availability" }),
8548
+ onClick: W(C, { kind: "availability" }),
8549
8549
  children: w
8550
8550
  }) : null, /* @__PURE__ */ l("div", {
8551
8551
  className: "hidden md:block text-sm md:mt-4",
@@ -8557,11 +8557,11 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8557
8557
  href: E,
8558
8558
  variant: "body",
8559
8559
  className: "underline hover:text-accent",
8560
- onClick: G(E, { kind: "returnPolicy" }),
8560
+ onClick: W(E, { kind: "returnPolicy" }),
8561
8561
  children: O
8562
8562
  }) : null]
8563
8563
  })] }) : null,
8564
- V && f === "Buy Now" && A ? /* @__PURE__ */ c(d, {
8564
+ B && f === "Buy Now" && A ? /* @__PURE__ */ c(d, {
8565
8565
  as: "p",
8566
8566
  variant: "h3",
8567
8567
  className: "mt-1",
@@ -8569,17 +8569,17 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8569
8569
  }) : null
8570
8570
  ]
8571
8571
  }),
8572
- V ? /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Tl, {
8572
+ B ? /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Tl, {
8573
8573
  initialQuantity: j,
8574
8574
  minQuantity: M,
8575
8575
  maxQuantity: N,
8576
8576
  showFavorites: F,
8577
- onAddToWishlist: ee,
8578
- onAddToCart: R ?? (() => {}),
8577
+ onAddToWishlist: te,
8578
+ onAddToCart: L ?? (() => {}),
8579
8579
  onQuantityChange: S,
8580
8580
  cartLabel: f === "Sample" ? "Add Sample to Cart" : void 0
8581
8581
  }) }) : null,
8582
- V && f === "Buy Now" ? /* @__PURE__ */ l("div", {
8582
+ B && f === "Buy Now" ? /* @__PURE__ */ l("div", {
8583
8583
  className: "md:hidden text-sm pb-10",
8584
8584
  children: [/* @__PURE__ */ l("span", {
8585
8585
  className: "opacity-80",
@@ -8589,18 +8589,18 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8589
8589
  href: E,
8590
8590
  variant: "body",
8591
8591
  className: "underline hover:text-accent",
8592
- onClick: G(E, { kind: "returnPolicy" }),
8592
+ onClick: W(E, { kind: "returnPolicy" }),
8593
8593
  children: O
8594
8594
  }) : null]
8595
8595
  }) : null
8596
8596
  ]
8597
8597
  })
8598
8598
  ]
8599
- }), H && L ? /* @__PURE__ */ c("div", {
8599
+ }), V && ee ? /* @__PURE__ */ c("div", {
8600
8600
  className: "md:absolute md:inset-x-0 md:bottom-0",
8601
- children: /* @__PURE__ */ c(ie, {
8602
- actions: L,
8603
- onActionClick: te
8601
+ children: /* @__PURE__ */ c(K, {
8602
+ actions: ee,
8603
+ onActionClick: R
8604
8604
  })
8605
8605
  }) : null]
8606
8606
  });
@@ -8822,50 +8822,50 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8822
8822
  style: "currency",
8823
8823
  currency: t
8824
8824
  }).format(e), Bl = (e) => !!e?.length, Vl = (e, t) => Bl(e) && Bl(t), Hl = (e = []) => e.some((e) => !!e.sku && !!e.rangeId && !!e.grade && !!e.texture && !!e.widthIn && !!e.lengthIn), Ul = (t) => {
8825
- let { sku: n, decor: r, title: i, description: a, colourMatching: o, patternRepeat: s, onDownloadSwatch: u, onDownloadFullSheet: d, carousel: f, tabs: p = ["Sample", "Buy Now"], initialTab: m = "Sample", tabOptions: h, productOptions: g = [], sizeOptions: _ = [], variants: v = [], currency: y, initialQuantity: b = 1, minQuantity: x = 1, maxQuantity: S = 99, showFavorites: C = !0, actionMode: w = "cart", contactActions: T, onAddToWishlist: E, onAddToCart: D, onContactActionClick: O, availabilityHref: k, availabilityLabel: A = "View full product availability and information", returnPolicyHref: j, returnPolicyLabel: M = "View return policy", notReturnableText: N = "This item is not returnable.", onPurchaseInfoLinkClick: P } = t, F = Array.isArray(p) && p.length ? p : ["Sample", "Buy Now"], I = h?.Sample, L = h?.["Buy Now"], ee = I?.productOptions ?? g ?? [], R = I?.sizeOptions ?? _ ?? [], te = L?.productOptions ?? g ?? [], z = Vl(ee, R), B = Bl(te) && Hl(v), V = F.filter((e) => e === "Sample" ? z : e === "Buy Now" ? B : !0), H = V[0] ?? "Sample", [U, W] = e.useState(V.includes(m) ? m : H);
8825
+ let { sku: n, decor: r, title: i, description: a, colourMatching: o, patternRepeat: s, onDownloadSwatch: u, onDownloadFullSheet: d, carousel: f, tabs: p = ["Sample", "Buy Now"], initialTab: m = "Sample", tabOptions: h, productOptions: g = [], sizeOptions: _ = [], variants: v = [], currency: y, initialQuantity: b = 1, minQuantity: x = 1, maxQuantity: S = 99, showFavorites: C = !0, actionMode: w = "cart", contactActions: T, onAddToWishlist: E, onAddToCart: D, onContactActionClick: O, availabilityHref: k, availabilityLabel: A = "View full product availability and information", returnPolicyHref: j, returnPolicyLabel: M = "View return policy", notReturnableText: N = "This item is not returnable.", onPurchaseInfoLinkClick: P } = t, F = Array.isArray(p) && p.length ? p : ["Sample", "Buy Now"], I = h?.Sample, ee = h?.["Buy Now"], te = I?.productOptions ?? g ?? [], L = I?.sizeOptions ?? _ ?? [], R = ee?.productOptions ?? g ?? [], ne = Vl(te, L), z = Bl(R) && Hl(v), B = F.filter((e) => e === "Sample" ? ne : e === "Buy Now" ? z : !0), V = B[0] ?? "Sample", [H, U] = e.useState(B.includes(m) ? m : V);
8826
8826
  e.useEffect(() => {
8827
- if (!V.length) {
8828
- W("Sample");
8827
+ if (!B.length) {
8828
+ U("Sample");
8829
8829
  return;
8830
8830
  }
8831
- V.includes(U) || W(H);
8831
+ B.includes(H) || U(V);
8832
8832
  }, [
8833
- U,
8834
- V,
8835
- H
8833
+ H,
8834
+ B,
8835
+ V
8836
8836
  ]);
8837
- let G = h?.[U], ne = !!G, K = G?.minQuantity ?? x, q = G?.maxQuantity ?? S, J = G?.productOptions ?? (ne ? [] : g) ?? [], re = U === "Buy Now", [ie, ae] = e.useState(() => ({
8838
- product: Pl(J),
8837
+ let W = h?.[H], G = !!W, re = W?.minQuantity ?? x, ie = W?.maxQuantity ?? S, ae = W?.productOptions ?? (G ? [] : g) ?? [], oe = H === "Buy Now", [K, se] = e.useState(() => ({
8838
+ product: Pl(ae),
8839
8839
  grade: null,
8840
8840
  texture: null,
8841
8841
  size: null
8842
- })), oe = e.useRef(!1), se = Fl(J, ie.product) ? ie.product : Pl(J), ce = re && se ? v.filter((e) => e.rangeId === se) : [], le = Il(ce.map((e) => ({
8842
+ })), q = e.useRef(!1), J = Fl(ae, K.product) ? K.product : Pl(ae), ce = oe && J ? v.filter((e) => e.rangeId === J) : [], le = Il(ce.map((e) => ({
8843
8843
  value: e.grade,
8844
8844
  label: e.grade
8845
- }))), ue = re ? le : G?.gradeOptions ?? [], de = Fl(ue, ie.grade) ? ie.grade : Pl(ue), fe = de ? ce.filter((e) => e.grade === de) : ce, pe = Il(fe.map((e) => ({
8845
+ }))), ue = oe ? le : W?.gradeOptions ?? [], de = Fl(ue, K.grade) ? K.grade : Pl(ue), fe = de ? ce.filter((e) => e.grade === de) : ce, pe = Il(fe.map((e) => ({
8846
8846
  value: e.texture,
8847
8847
  label: e.finish || e.texture
8848
- }))), me = re ? pe : G?.textureOptions ?? [], Y = Fl(me, ie.texture) ? ie.texture : Pl(me), he = Y ? fe.filter((e) => e.texture === Y) : fe, ge = new Map((G?.sizeOptions ?? _ ?? []).map((e) => [e.value ?? e.id, e.label])), _e = Il(he.map((e) => {
8848
+ }))), me = oe ? pe : W?.textureOptions ?? [], Y = Fl(me, K.texture) ? K.texture : Pl(me), he = Y ? fe.filter((e) => e.texture === Y) : fe, ge = new Map((W?.sizeOptions ?? _ ?? []).map((e) => [e.value ?? e.id, e.label])), _e = Il(he.map((e) => {
8849
8849
  let t = Ll(e.widthIn, e.lengthIn) ?? void 0;
8850
8850
  return {
8851
8851
  value: t,
8852
8852
  label: t ? ge.get(t) ?? t : void 0
8853
8853
  };
8854
- })), ve = re ? _e : G?.sizeOptions ?? (ne ? [] : _) ?? [], ye = Fl(ve, ie.size) ? ie.size : Pl(ve);
8854
+ })), ve = oe ? _e : W?.sizeOptions ?? (G ? [] : _) ?? [], ye = Fl(ve, K.size) ? K.size : Pl(ve);
8855
8855
  e.useEffect(() => {
8856
- if (!oe.current) {
8857
- oe.current = !0;
8856
+ if (!q.current) {
8857
+ q.current = !0;
8858
8858
  return;
8859
8859
  }
8860
- ae({
8861
- product: Pl(J),
8860
+ se({
8861
+ product: Pl(ae),
8862
8862
  grade: Pl(ue),
8863
8863
  texture: Pl(me),
8864
8864
  size: Pl(ve)
8865
8865
  });
8866
- }, [U]), e.useEffect(() => {
8867
- ae((e) => {
8868
- let t = e.product && J.some((t) => (t.value ?? t.id) === e.product) ? e.product : Pl(J), n = e.grade && ue.some((t) => (t.value ?? t.id) === e.grade) ? e.grade : Pl(ue), r = e.texture && me.some((t) => (t.value ?? t.id) === e.texture) ? e.texture : Pl(me), i = e.size && ve.some((t) => (t.value ?? t.id) === e.size) ? e.size : Pl(ve);
8866
+ }, [H]), e.useEffect(() => {
8867
+ se((e) => {
8868
+ let t = e.product && ae.some((t) => (t.value ?? t.id) === e.product) ? e.product : Pl(ae), n = e.grade && ue.some((t) => (t.value ?? t.id) === e.grade) ? e.grade : Pl(ue), r = e.texture && me.some((t) => (t.value ?? t.id) === e.texture) ? e.texture : Pl(me), i = e.size && ve.some((t) => (t.value ?? t.id) === e.size) ? e.size : Pl(ve);
8869
8869
  return e.product === t && e.grade === n && e.texture === r && e.size === i ? e : {
8870
8870
  product: t,
8871
8871
  grade: n,
@@ -8874,15 +8874,15 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8874
8874
  };
8875
8875
  });
8876
8876
  }, [
8877
- J,
8877
+ ae,
8878
8878
  ue,
8879
8879
  me,
8880
8880
  ve
8881
8881
  ]);
8882
8882
  let X = e.useMemo(() => {
8883
- if (U !== "Buy Now") return null;
8883
+ if (H !== "Buy Now") return null;
8884
8884
  let e = {
8885
- product: se,
8885
+ product: J,
8886
8886
  grade: de,
8887
8887
  texture: Y,
8888
8888
  size: ye
@@ -8892,22 +8892,22 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8892
8892
  });
8893
8893
  return t.length ? t.find((e) => e.isWebEnabled) ?? t[0] ?? null : null;
8894
8894
  }, [
8895
- U,
8895
+ H,
8896
8896
  v,
8897
- se,
8897
+ J,
8898
8898
  de,
8899
8899
  Y,
8900
8900
  ye
8901
- ]), be = U !== "Buy Now" || !!X, xe = U === "Buy Now" && X ? X.price?.label ?? zl(X.price?.value ?? 0, y) : "", Se = U === "Buy Now" && X ? X.price?.value ?? 0 : 0, Ce = U === "Buy Now" ? X?.sku ?? n : n, [we, Te] = e.useState(() => Rl(b, K, q)), Ee = e.useRef(U);
8901
+ ]), be = H !== "Buy Now" || !!X, xe = H === "Buy Now" && X ? X.price?.label ?? zl(X.price?.value ?? 0, y) : "", Se = H === "Buy Now" && X ? X.price?.value ?? 0 : 0, Ce = H === "Buy Now" ? X?.sku ?? n : n, [we, Te] = e.useState(() => Rl(b, re, ie)), Ee = e.useRef(H);
8902
8902
  e.useEffect(() => {
8903
- Te(Rl(b, K, q));
8903
+ Te(Rl(b, re, ie));
8904
8904
  }, [
8905
8905
  b,
8906
- K,
8907
- q
8906
+ re,
8907
+ ie
8908
8908
  ]), e.useEffect(() => {
8909
- Ee.current !== U && (Ee.current = U, Te(K));
8910
- }, [U, K]);
8909
+ Ee.current !== H && (Ee.current = H, Te(re));
8910
+ }, [H, re]);
8911
8911
  let De = (e, t) => (t ?? []).map((t) => {
8912
8912
  let n = t.value ?? t.id;
8913
8913
  return {
@@ -8915,9 +8915,9 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8915
8915
  label: t.label,
8916
8916
  disabled: t.disabled,
8917
8917
  value: n,
8918
- active: ie[e] === n,
8918
+ active: K[e] === n,
8919
8919
  onOptionClick: () => {
8920
- t.disabled || (ae((t) => ({
8920
+ t.disabled || (se((t) => ({
8921
8921
  ...t,
8922
8922
  [e]: n
8923
8923
  })), t.onOptionClick?.(t.id));
@@ -8932,10 +8932,10 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8932
8932
  patternRepeat: s,
8933
8933
  onDownloadSwatch: u,
8934
8934
  onDownloadFullSheet: d,
8935
- tabs: V,
8936
- activeTab: U,
8937
- onTabChange: W,
8938
- productOptions: De("product", J),
8935
+ tabs: B,
8936
+ activeTab: H,
8937
+ onTabChange: U,
8938
+ productOptions: De("product", ae),
8939
8939
  gradeOptions: De("grade", ue),
8940
8940
  textureOptions: De("texture", me),
8941
8941
  sizeOptions: De("size", ve),
@@ -8946,13 +8946,13 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8946
8946
  notReturnableText: N,
8947
8947
  priceLabel: xe,
8948
8948
  initialQuantity: we,
8949
- minQuantity: K,
8950
- maxQuantity: q,
8951
- showCartActions: V.includes(U) && be,
8949
+ minQuantity: re,
8950
+ maxQuantity: ie,
8951
+ showCartActions: B.includes(H) && be,
8952
8952
  showFavorites: C,
8953
8953
  actionMode: w,
8954
8954
  contactActions: T,
8955
- selectedProduct: se,
8955
+ selectedProduct: J,
8956
8956
  selectedGrade: de,
8957
8957
  selectedTexture: Y,
8958
8958
  selectedSize: ye,
@@ -8963,18 +8963,18 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8963
8963
  });
8964
8964
  },
8965
8965
  onAddToCart: (e) => {
8966
- if (U === "Buy Now" && !X) return;
8966
+ if (H === "Buy Now" && !X) return;
8967
8967
  let t = {
8968
- type: U,
8968
+ type: H,
8969
8969
  sku: Ce,
8970
8970
  decor: r,
8971
- product: se,
8971
+ product: J,
8972
8972
  grade: de,
8973
8973
  texture: Y,
8974
8974
  size: ye,
8975
8975
  quantity: e,
8976
- priceValue: U === "Buy Now" ? Se : 0,
8977
- priceLabel: U === "Buy Now" ? xe : "$0.00",
8976
+ priceValue: H === "Buy Now" ? Se : 0,
8977
+ priceLabel: H === "Buy Now" ? xe : "$0.00",
8978
8978
  currency: y,
8979
8979
  bigCommerceProductId: X?.bigCommerceProductId
8980
8980
  };
@@ -8986,8 +8986,8 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
8986
8986
  sku: Ce,
8987
8987
  decor: r,
8988
8988
  title: i,
8989
- activeTab: U,
8990
- product: se,
8989
+ activeTab: H,
8990
+ product: J,
8991
8991
  grade: de,
8992
8992
  texture: Y,
8993
8993
  size: ye
@@ -9230,7 +9230,7 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
9230
9230
  item: e,
9231
9231
  index: t
9232
9232
  }));
9233
- return n === "uniform" ? /* @__PURE__ */ c("section", { children: /* @__PURE__ */ c(B, {
9233
+ return n === "uniform" ? /* @__PURE__ */ c("section", { children: /* @__PURE__ */ c(z, {
9234
9234
  className: "px-4 py-20 md:px-4",
9235
9235
  gridClassName: "md:grid-cols-2",
9236
9236
  columns: 1,
@@ -9248,7 +9248,7 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
9248
9248
  className: "px-4 py-20 md:px-4",
9249
9249
  children: ru(r).map((e, n, r) => {
9250
9250
  let i = e.columns === 3;
9251
- return /* @__PURE__ */ c(B, {
9251
+ return /* @__PURE__ */ c(z, {
9252
9252
  className: n < r.length - 1 ? "mb-6" : "",
9253
9253
  gridClassName: i ? "md:grid-cols-3" : "md:grid-cols-2",
9254
9254
  columns: 1,
@@ -9270,7 +9270,7 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
9270
9270
  2: "md:grid-cols-2",
9271
9271
  3: "md:grid-cols-3",
9272
9272
  4: "md:grid-cols-4"
9273
- }, ou = ({ locations: e, selectedLocationId: t, desktopColumns: n = 4, stockedProductsLabel: r, preferredLabel: i, websiteLabel: a, directionsLabel: o, emailLabel: s, onWebsiteClick: l, onDirectionsClick: u, onPhoneClick: d, onEmailClick: f }) => e.length ? /* @__PURE__ */ c(B, {
9273
+ }, ou = ({ locations: e, selectedLocationId: t, desktopColumns: n = 4, stockedProductsLabel: r, preferredLabel: i, websiteLabel: a, directionsLabel: o, emailLabel: s, onWebsiteClick: l, onDirectionsClick: u, onPhoneClick: d, onEmailClick: f }) => e.length ? /* @__PURE__ */ c(z, {
9274
9274
  columns: 1,
9275
9275
  gap: "lg",
9276
9276
  gridClassName: au[n],
@@ -9587,7 +9587,7 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
9587
9587
  })]
9588
9588
  }) : null, /* @__PURE__ */ c("div", {
9589
9589
  className: i ? "mt-3 space-y-3" : "space-y-3",
9590
- children: e.items.map((e) => /* @__PURE__ */ c(se, {
9590
+ children: e.items.map((e) => /* @__PURE__ */ c(J, {
9591
9591
  ...e,
9592
9592
  onDecorClick: a
9593
9593
  }, e.decorId))
@@ -10477,7 +10477,7 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
10477
10477
  className: "mx-auto w-full max-w-6xl px-4 pb-16 pt-6 md:px-0 md:pt-10",
10478
10478
  children: [
10479
10479
  /* @__PURE__ */ l("header", {
10480
- className: "flex items-center justify-between gap-4 border-b border-borderTertiary pb-5",
10480
+ className: "flex items-center justify-between gap-4 pb-5",
10481
10481
  children: [/* @__PURE__ */ l("div", {
10482
10482
  className: "flex min-w-0 items-center gap-4",
10483
10483
  children: [/* @__PURE__ */ c("span", {
@@ -10514,18 +10514,25 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
10514
10514
  /* @__PURE__ */ c("nav", {
10515
10515
  "aria-label": "Customer account sections",
10516
10516
  children: /* @__PURE__ */ c("div", {
10517
- className: "flex w-full",
10518
10517
  role: "tablist",
10519
- children: n.map((e) => {
10520
- let t = e.id === r;
10521
- return /* @__PURE__ */ c("button", {
10518
+ children: /* @__PURE__ */ c(dl, {
10519
+ items: n.map((e) => ({
10520
+ label: e.label,
10521
+ value: e.id
10522
+ })),
10523
+ value: r,
10524
+ onChange: (e) => {
10525
+ let t = n.find((t) => t.id === e);
10526
+ t && o({ item: t });
10527
+ },
10528
+ renderTab: ({ item: e, isActive: t, onTabClick: n }) => /* @__PURE__ */ c("button", {
10522
10529
  type: "button",
10523
10530
  role: "tab",
10524
10531
  "aria-selected": t,
10525
- className: `min-w-0 flex-1 border-b-2 px-2 py-4 text-xs font-semibold transition md:px-5 md:text-sm ${t ? "border-primary text-primary" : "border-transparent text-secondaryActive hover:border-borderTertiary hover:text-primary"}`,
10526
- onClick: () => o({ item: e }),
10532
+ className: `w-full px-2 py-4 text-xs font-semibold transition md:px-5 md:text-sm ${t ? "text-primary" : "text-secondaryActive hover:text-primary"}`,
10533
+ onClick: n,
10527
10534
  children: e.label
10528
- }, e.id);
10535
+ })
10529
10536
  })
10530
10537
  })
10531
10538
  }),
@@ -10800,7 +10807,7 @@ var Mc = (e) => typeof e == "object" && !!e && !Array.isArray(e), Nc = (e) => {
10800
10807
  className: "flex-1 overflow-y-auto px-6 py-5",
10801
10808
  children: m ? /* @__PURE__ */ c("div", {
10802
10809
  className: "flex flex-col gap-4",
10803
- children: r.map((e) => /* @__PURE__ */ c(re, {
10810
+ children: r.map((e) => /* @__PURE__ */ c(oe, {
10804
10811
  sku: e.sku,
10805
10812
  imageSrc: e.imageSrc,
10806
10813
  imageAlt: e.imageAlt,
@@ -10895,18 +10902,18 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
10895
10902
  items: e.items ?? [],
10896
10903
  mtoItems: e.mtoItems ?? []
10897
10904
  })), id = (e) => e ? `Grade ${e}` : "", ad = ({ breadcrumbsProps: t, productData: n, showFavorites: r = !0, onDownloadSwatch: i, onDownloadFullSheet: a, onAddToWishlist: o, onAddToCart: s, onContactActionClick: u, onProductNavigate: d, cartFlyoutProps: f }) => {
10898
- let p = n ?? {}, m = p.images ?? [], h = p.product, g = p.content, _ = p.optionSets, v = p.purchase, y = p.ranges ?? [], b = p.standardCopyHero, x = p.featuredProducts ?? [], S = h?.colourMatching, C = _?.ranges ?? [], w = _?.textures ?? [], T = _?.sizes ?? [], E = _?.sampleSizes ?? [], D = Qu(C), O = Qu(w), k = Qu(T), A = Qu(E), j = v?.tabOptions?.Sample ?? {}, M = v?.tabOptions?.["Buy Now"] ?? {}, N = v?.defaults ?? {}, P = ed(p.variants ?? []), F = p.variants?.[0]?.grade ?? null, [I, L] = e.useState(id(F));
10905
+ let p = n ?? {}, m = p.images ?? [], h = p.product, g = p.content, _ = p.optionSets, v = p.purchase, y = p.ranges ?? [], b = p.standardCopyHero, x = p.featuredProducts ?? [], S = h?.colourMatching, C = _?.ranges ?? [], w = _?.textures ?? [], T = _?.sizes ?? [], E = _?.sampleSizes ?? [], D = Qu(C), O = Qu(w), k = Qu(T), A = Qu(E), j = v?.tabOptions?.Sample ?? {}, M = v?.tabOptions?.["Buy Now"] ?? {}, N = v?.defaults ?? {}, P = ed(p.variants ?? []), F = p.variants?.[0]?.grade ?? null, [I, ee] = e.useState(id(F));
10899
10906
  e.useEffect(() => {
10900
- L(id(F));
10907
+ ee(id(F));
10901
10908
  }, [F]);
10902
- let ee = P.map((e) => {
10909
+ let te = P.map((e) => {
10903
10910
  let t = id(e.value);
10904
10911
  return {
10905
10912
  ...e,
10906
10913
  active: t === I,
10907
- onOptionClick: () => L(t)
10914
+ onOptionClick: () => ee(t)
10908
10915
  };
10909
- }), R = j.productOptionIds, te = R?.filter((e) => !!D[e]) ?? [], z = R?.length ? te : nd(p.variants ?? []), B = j.textureOptionIds, V = B?.filter((e) => !!O[e]) ?? [], H = B?.length ? $u(O, V, N.texture ?? null) : td(p.variants ?? [], N.texture ?? null), U = M.productOptionIds, W = U?.filter((e) => !!D[e]) ?? [], G = U ? W : C.map((e) => e.id), ne = {
10916
+ }), L = j.productOptionIds, R = L?.filter((e) => !!D[e]) ?? [], ne = L?.length ? R : nd(p.variants ?? []), z = j.textureOptionIds, B = z?.filter((e) => !!O[e]) ?? [], V = z?.length ? $u(O, B, N.texture ?? null) : td(p.variants ?? [], N.texture ?? null), H = M.productOptionIds, U = H?.filter((e) => !!D[e]) ?? [], W = H ? U : C.map((e) => e.id), G = {
10910
10917
  sku: h?.sku ?? "",
10911
10918
  decor: h?.decor ?? "",
10912
10919
  title: h?.title ?? "",
@@ -10941,22 +10948,22 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
10941
10948
  Sample: {
10942
10949
  minQuantity: j.minQuantity,
10943
10950
  maxQuantity: j.maxQuantity,
10944
- productOptions: $u(D, z, g?.defaultRangeId ?? C[0]?.value ?? null),
10951
+ productOptions: $u(D, ne, g?.defaultRangeId ?? C[0]?.value ?? null),
10945
10952
  gradeOptions: [],
10946
- textureOptions: H,
10953
+ textureOptions: V,
10947
10954
  sizeOptions: $u(A, j.sizeOptionIds ?? [], null)
10948
10955
  },
10949
10956
  "Buy Now": {
10950
10957
  minQuantity: M.minQuantity,
10951
10958
  maxQuantity: M.maxQuantity,
10952
- productOptions: $u(D, G, g?.defaultRangeId ?? C[0]?.value ?? null),
10953
- gradeOptions: ee,
10959
+ productOptions: $u(D, W, g?.defaultRangeId ?? C[0]?.value ?? null),
10960
+ gradeOptions: te,
10954
10961
  textureOptions: $u(O, M.textureOptionIds ?? [], N.texture ?? null),
10955
10962
  sizeOptions: $u(k, M.sizeOptionIds ?? [], N.size ?? null)
10956
10963
  }
10957
10964
  },
10958
- productOptions: $u(D, G, g?.defaultRangeId ?? C[0]?.value ?? null),
10959
- gradeOptions: ee,
10965
+ productOptions: $u(D, W, g?.defaultRangeId ?? C[0]?.value ?? null),
10966
+ gradeOptions: te,
10960
10967
  selectedGrade: I,
10961
10968
  textureOptions: $u(O, M.textureOptionIds ?? [], N.texture ?? null),
10962
10969
  sizeOptions: $u(k, M.sizeOptionIds ?? [], N.size ?? null),
@@ -10984,7 +10991,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
10984
10991
  u?.(e, p);
10985
10992
  },
10986
10993
  onPurchaseInfoLinkClick: d
10987
- }, K = {
10994
+ }, re = {
10988
10995
  ranges: y.map((e) => {
10989
10996
  let t = e.sizeAndGrade?.definitions ?? [], n = rd(e.sizeAndGrade?.cards);
10990
10997
  return {
@@ -11008,7 +11015,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11008
11015
  defaultRangeId: g?.defaultRangeId ?? y[0]?.id ?? "",
11009
11016
  selectedGrade: I,
11010
11017
  className: ""
11011
- }, q = (e) => {
11018
+ }, ie = (e) => {
11012
11019
  let t = e.href || (e.rangeCode && e.decorNumber ? `/products/${e.rangeCode.toUpperCase()}/${e.decorNumber.toUpperCase()}` : "");
11013
11020
  t && d?.(t, {
11014
11021
  source: "featured-products",
@@ -11024,8 +11031,8 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11024
11031
  className: "flex flex-col gap-4",
11025
11032
  children: [
11026
11033
  t && /* @__PURE__ */ c(Qc, { ...t }),
11027
- /* @__PURE__ */ c(Ul, { ...ne }),
11028
- /* @__PURE__ */ c(Xu, { ...K }),
11034
+ /* @__PURE__ */ c(Ul, { ...G }),
11035
+ /* @__PURE__ */ c(Xu, { ...re }),
11029
11036
  /* @__PURE__ */ c("div", {
11030
11037
  className: "hidden md:block",
11031
11038
  children: b && /* @__PURE__ */ c(Wl, {
@@ -11041,7 +11048,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11041
11048
  x.length > 0 && /* @__PURE__ */ c($l, {
11042
11049
  title: "Trending Products",
11043
11050
  items: x,
11044
- onItemClick: q
11051
+ onItemClick: ie
11045
11052
  })
11046
11053
  ]
11047
11054
  }), f ? /* @__PURE__ */ c(Zu, { ...f }) : null]
@@ -11086,7 +11093,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11086
11093
  e.product,
11087
11094
  e.status ?? "standard",
11088
11095
  t
11089
- ].join("-"), ld = ({ swatches: e = [], onSwatchClick: t }) => /* @__PURE__ */ c(B, {
11096
+ ].join("-"), ld = ({ swatches: e = [], onSwatchClick: t }) => /* @__PURE__ */ c(z, {
11090
11097
  className: "mb-16 px-4 md:my-12 md:px-0",
11091
11098
  gridClassName: "md:grid-cols-4",
11092
11099
  columns: 2,
@@ -11268,12 +11275,12 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11268
11275
  })
11269
11276
  ]
11270
11277
  });
11271
- }, vd = ({ images: e = [], onImageClick: t }) => /* @__PURE__ */ c(B, {
11278
+ }, vd = ({ images: e = [], onImageClick: t }) => /* @__PURE__ */ c(z, {
11272
11279
  className: "mb-16 px-4 md:my-12 md:px-0",
11273
11280
  gridClassName: "md:grid-cols-4",
11274
11281
  columns: 2,
11275
11282
  gap: "md",
11276
- children: e.map((e, n) => /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(ae, {
11283
+ children: e.map((e, n) => /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(se, {
11277
11284
  className: "block w-full cursor-pointer text-left",
11278
11285
  onCardClick: () => t?.({
11279
11286
  image: e,
@@ -11317,12 +11324,12 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11317
11324
  }), xd = ({ standardCopyHeroProps: e, multiButtonBarProps: t, warrantyCardProps: n, documentLinkCollectionProps: r, infoCardProps: i, faqCardCollectionProps: a }) => /* @__PURE__ */ l(s, { children: [
11318
11325
  /* @__PURE__ */ c(Wl, { ...e }),
11319
11326
  /* @__PURE__ */ c(od, { ...t }),
11320
- /* @__PURE__ */ c(R, {
11327
+ /* @__PURE__ */ c(L, {
11321
11328
  spacing: "section",
11322
11329
  children: /* @__PURE__ */ c(Ql, { ...n })
11323
11330
  }),
11324
11331
  /* @__PURE__ */ c(bd, { ...r }),
11325
- /* @__PURE__ */ c(R, {
11332
+ /* @__PURE__ */ c(L, {
11326
11333
  spacing: "section",
11327
11334
  children: /* @__PURE__ */ c(Qo, { ...i })
11328
11335
  }),
@@ -11336,7 +11343,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11336
11343
  ].join("-"), Cd = (e, t) => e.slice(0, Math.max(0, Math.min(t ?? e.length, e.length))), wd = (e, t, n) => n ?? `View ${e} more ${t}`, Td = ({ searchFilterProps: e, decorResultsProps: t, resourceResultsProps: n, noResultsMessage: r }) => {
11337
11344
  let i = t?.items ?? [], a = n?.items ?? [], o = Cd(i, t?.visibleItemCount), u = Cd(a, n?.visibleItemCount), f = i.length - o.length, p = a.length - u.length, m = e.searchBarProps.value?.trim(), h = m ? `Showing results for "${m}"` : "Search Results", g = i.length > 0, _ = a.length > 0, v = g || _;
11338
11345
  return /* @__PURE__ */ l(s, { children: [
11339
- /* @__PURE__ */ l(R, {
11346
+ /* @__PURE__ */ l(L, {
11340
11347
  isFirst: !0,
11341
11348
  spacing: "compactPaddedSection",
11342
11349
  children: [/* @__PURE__ */ c(d, {
@@ -11349,7 +11356,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11349
11356
  layoutVariant: "full"
11350
11357
  })]
11351
11358
  }),
11352
- g && t ? /* @__PURE__ */ l(R, {
11359
+ g && t ? /* @__PURE__ */ l(L, {
11353
11360
  spacing: "compactPaddedSection",
11354
11361
  children: [
11355
11362
  t.title ? /* @__PURE__ */ c(d, {
@@ -11382,7 +11389,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11382
11389
  }) : null
11383
11390
  ]
11384
11391
  }) : null,
11385
- _ && n ? /* @__PURE__ */ l(R, {
11392
+ _ && n ? /* @__PURE__ */ l(L, {
11386
11393
  spacing: "compactPaddedSection",
11387
11394
  children: [
11388
11395
  n.title ? /* @__PURE__ */ c(d, {
@@ -11407,7 +11414,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11407
11414
  }) : null
11408
11415
  ]
11409
11416
  }) : null,
11410
- v ? null : /* @__PURE__ */ c(R, {
11417
+ v ? null : /* @__PURE__ */ c(L, {
11411
11418
  spacing: "paddedSection",
11412
11419
  children: /* @__PURE__ */ c(d, {
11413
11420
  variant: "body",
@@ -11447,7 +11454,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11447
11454
  onProductChange: (t) => n?.(t, e),
11448
11455
  onSearchSubmit: (t) => r?.(t, e)
11449
11456
  }),
11450
- /* @__PURE__ */ c(R, {
11457
+ /* @__PURE__ */ c(L, {
11451
11458
  spacing: "none",
11452
11459
  className: "mb-8 pt-10",
11453
11460
  innerClassName: "flex justify-center",
@@ -11467,7 +11474,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11467
11474
  }
11468
11475
  })
11469
11476
  }),
11470
- /* @__PURE__ */ c(R, {
11477
+ /* @__PURE__ */ c(L, {
11471
11478
  spacing: "none",
11472
11479
  className: "mb-8 pb-10 md:mb-10",
11473
11480
  children: /* @__PURE__ */ c(Cu, {
@@ -11485,7 +11492,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11485
11492
  onDirectionsClick: (t) => s?.(t, e),
11486
11493
  onPhoneClick: (t) => u?.(t, e),
11487
11494
  onEmailClick: (t) => f?.(t, e)
11488
- }) : /* @__PURE__ */ c(R, {
11495
+ }) : /* @__PURE__ */ c(L, {
11489
11496
  spacing: "paddedSection",
11490
11497
  children: /* @__PURE__ */ l("div", {
11491
11498
  className: "text-center",
@@ -11802,25 +11809,25 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11802
11809
  ]
11803
11810
  })]
11804
11811
  })
11805
- }), Fd = ({ title: e = "Ship To", idPrefix: t = "shipping", firstName: n = "", lastName: r = "", email: i = "", phoneNumber: a = "", companyName: o = "", userType: u = "", address: f = "", apartment: p = "", postalCode: m = "", city: h = "", country: g = "united-states", countryLabel: _, stateProvince: v = "", addressRegionVariant: y = "default", countryDisplayMode: b = "select", countryOptions: x = [], stateProvinceOptions: S = [], userTypeOptions: C = [], userTypePlaceholder: w = "I am a*", cityPlaceholder: T, postalCodePlaceholder: E, stateProvincePlaceholder: D, showCompanyName: O = !0, errors: k = {}, onFirstNameChange: A, onLastNameChange: j, onEmailChange: M, onPhoneNumberChange: N, onCompanyNameChange: P, onUserTypeChange: F, onAddressChange: I, onApartmentChange: L, onPostalCodeChange: ee, onCityChange: R, onCountryChange: te, onStateProvinceChange: z, onFirstNameBlur: B, onLastNameBlur: V, onEmailBlur: H, onPhoneNumberBlur: U, onCompanyNameBlur: W, onUserTypeBlur: G, onAddressBlur: ne, onApartmentBlur: K, onPostalCodeBlur: q, onCityBlur: J, onCountryBlur: re, onStateProvinceBlur: ie }) => {
11806
- let ae = y === "ca" || y === "mx", oe = T ?? "City", se = E ?? "Postal Code", ce = D ?? (y === "ca" ? "Province" : "State/Province"), le = _ ?? x.find((e) => e.value === g)?.label ?? g, ue = /* @__PURE__ */ c($, {
11812
+ }), Fd = ({ title: e = "Ship To", idPrefix: t = "shipping", firstName: n = "", lastName: r = "", email: i = "", phoneNumber: a = "", companyName: o = "", userType: u = "", address: f = "", apartment: p = "", postalCode: m = "", city: h = "", country: g = "united-states", countryLabel: _, stateProvince: v = "", addressRegionVariant: y = "default", countryDisplayMode: b = "select", countryOptions: x = [], stateProvinceOptions: S = [], userTypeOptions: C = [], userTypePlaceholder: w = "I am a*", cityPlaceholder: T, postalCodePlaceholder: E, stateProvincePlaceholder: D, showCompanyName: O = !0, errors: k = {}, onFirstNameChange: A, onLastNameChange: j, onEmailChange: M, onPhoneNumberChange: N, onCompanyNameChange: P, onUserTypeChange: F, onAddressChange: I, onApartmentChange: ee, onPostalCodeChange: te, onCityChange: L, onCountryChange: R, onStateProvinceChange: ne, onFirstNameBlur: z, onLastNameBlur: B, onEmailBlur: V, onPhoneNumberBlur: H, onCompanyNameBlur: U, onUserTypeBlur: W, onAddressBlur: G, onApartmentBlur: re, onPostalCodeBlur: ie, onCityBlur: ae, onCountryBlur: oe, onStateProvinceBlur: K }) => {
11813
+ let se = y === "ca" || y === "mx", q = T ?? "City", J = E ?? "Postal Code", ce = D ?? (y === "ca" ? "Province" : "State/Province"), le = _ ?? x.find((e) => e.value === g)?.label ?? g, ue = /* @__PURE__ */ c($, {
11807
11814
  id: `${t}-city`,
11808
11815
  name: "city",
11809
- placeholder: oe,
11816
+ placeholder: q,
11810
11817
  value: h,
11811
11818
  hasError: !!k.city,
11812
11819
  errorMessage: k.city,
11813
- onChange: R,
11814
- onBlur: J
11820
+ onChange: L,
11821
+ onBlur: ae
11815
11822
  }), de = /* @__PURE__ */ c($, {
11816
11823
  id: `${t}-postal-code`,
11817
11824
  name: "postalCode",
11818
- placeholder: se,
11825
+ placeholder: J,
11819
11826
  value: m,
11820
11827
  hasError: !!k.postalCode,
11821
11828
  errorMessage: k.postalCode,
11822
- onChange: ee,
11823
- onBlur: q
11829
+ onChange: te,
11830
+ onBlur: ie
11824
11831
  }), fe = /* @__PURE__ */ c(xo, {
11825
11832
  id: `${t}-state-province`,
11826
11833
  name: "stateProvince",
@@ -11829,8 +11836,8 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11829
11836
  placeholder: ce,
11830
11837
  hasError: !!k.stateProvince,
11831
11838
  variant: "field",
11832
- onChange: z,
11833
- onBlur: ie
11839
+ onChange: ne,
11840
+ onBlur: K
11834
11841
  }), pe = b === "readonly" ? /* @__PURE__ */ c($, {
11835
11842
  id: `${t}-country`,
11836
11843
  name: "country",
@@ -11847,8 +11854,8 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11847
11854
  placeholder: "Country",
11848
11855
  hasError: !!k.country,
11849
11856
  variant: "field",
11850
- onChange: te,
11851
- onBlur: re
11857
+ onChange: R,
11858
+ onBlur: oe
11852
11859
  });
11853
11860
  return /* @__PURE__ */ l("section", {
11854
11861
  className: "flex flex-col gap-6",
@@ -11868,7 +11875,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11868
11875
  hasError: !!k.firstName,
11869
11876
  errorMessage: k.firstName,
11870
11877
  onChange: A,
11871
- onBlur: B
11878
+ onBlur: z
11872
11879
  }),
11873
11880
  /* @__PURE__ */ c($, {
11874
11881
  id: `${t}-last-name`,
@@ -11878,7 +11885,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11878
11885
  hasError: !!k.lastName,
11879
11886
  errorMessage: k.lastName,
11880
11887
  onChange: j,
11881
- onBlur: V
11888
+ onBlur: B
11882
11889
  }),
11883
11890
  /* @__PURE__ */ c($, {
11884
11891
  id: `${t}-email`,
@@ -11889,7 +11896,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11889
11896
  hasError: !!k.email,
11890
11897
  errorMessage: k.email,
11891
11898
  onChange: M,
11892
- onBlur: H
11899
+ onBlur: V
11893
11900
  }),
11894
11901
  /* @__PURE__ */ c($, {
11895
11902
  id: `${t}-phone-number`,
@@ -11900,7 +11907,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11900
11907
  hasError: !!k.phoneNumber,
11901
11908
  errorMessage: k.phoneNumber,
11902
11909
  onChange: N,
11903
- onBlur: U
11910
+ onBlur: H
11904
11911
  }),
11905
11912
  C.length > 0 ? /* @__PURE__ */ c("div", {
11906
11913
  className: "col-span-2",
@@ -11913,7 +11920,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11913
11920
  hasError: !!k.userType,
11914
11921
  variant: "field",
11915
11922
  onChange: (e) => F?.(e.target.value),
11916
- onBlur: G
11923
+ onBlur: W
11917
11924
  })
11918
11925
  }) : null,
11919
11926
  O ? /* @__PURE__ */ c("div", {
@@ -11926,7 +11933,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11926
11933
  hasError: !!k.companyName,
11927
11934
  errorMessage: k.companyName,
11928
11935
  onChange: P,
11929
- onBlur: W
11936
+ onBlur: U
11930
11937
  })
11931
11938
  }) : null,
11932
11939
  /* @__PURE__ */ c("div", {
@@ -11939,7 +11946,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11939
11946
  hasError: !!k.address,
11940
11947
  errorMessage: k.address,
11941
11948
  onChange: I,
11942
- onBlur: ne
11949
+ onBlur: G
11943
11950
  })
11944
11951
  }),
11945
11952
  /* @__PURE__ */ c("div", {
@@ -11951,11 +11958,11 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
11951
11958
  value: p,
11952
11959
  hasError: !!k.apartment,
11953
11960
  errorMessage: k.apartment,
11954
- onChange: L,
11955
- onBlur: K
11961
+ onChange: ee,
11962
+ onBlur: re
11956
11963
  })
11957
11964
  }),
11958
- ae ? /* @__PURE__ */ l(s, { children: [
11965
+ se ? /* @__PURE__ */ l(s, { children: [
11959
11966
  ue,
11960
11967
  fe,
11961
11968
  de,
@@ -12429,7 +12436,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
12429
12436
  "Account",
12430
12437
  "Shipping",
12431
12438
  "Payment"
12432
- ], activeMode: n = "signIn", email: r = "", password: i = "", firstName: a = "", lastName: o = "", phoneNumber: s = "", userType: u = "", 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, onModeChange: k, onEmailChange: A, onPasswordChange: j, onFirstNameChange: M, onLastNameChange: N, onPhoneNumberChange: P, onUserTypeChange: F, onConfirmPasswordChange: I, onMarketingOptInChange: L, onTermsAcceptedChange: ee, onEmailBlur: R, onPasswordBlur: te, onForgotPasswordClick: z, onTermsClick: B, onPrivacyClick: V, onContinue: H, onContinueAsGuest: U }) => /* @__PURE__ */ l("div", {
12439
+ ], activeMode: n = "signIn", email: r = "", password: i = "", firstName: a = "", lastName: o = "", phoneNumber: s = "", userType: u = "", 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, onModeChange: k, onEmailChange: A, onPasswordChange: j, onFirstNameChange: M, onLastNameChange: N, onPhoneNumberChange: P, onUserTypeChange: F, onConfirmPasswordChange: I, onMarketingOptInChange: ee, onTermsAcceptedChange: te, onEmailBlur: L, onPasswordBlur: R, onForgotPasswordClick: ne, onTermsClick: z, onPrivacyClick: B, onContinue: V, onContinueAsGuest: H }) => /* @__PURE__ */ l("div", {
12433
12440
  className: "flex w-full flex-col gap-8",
12434
12441
  children: [/* @__PURE__ */ c(Ld, {
12435
12442
  steps: t,
@@ -12470,16 +12477,16 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
12470
12477
  onPhoneNumberChange: P,
12471
12478
  onUserTypeChange: F,
12472
12479
  onConfirmPasswordChange: I,
12473
- onMarketingOptInChange: L,
12474
- onTermsAcceptedChange: ee,
12475
- onEmailBlur: R,
12476
- onPasswordBlur: te,
12477
- onForgotPasswordClick: z,
12478
- onTermsClick: B,
12479
- onPrivacyClick: V,
12480
- onSignInClick: H,
12481
- onCreateAccountClick: H,
12482
- onSecondaryClick: U
12480
+ onMarketingOptInChange: ee,
12481
+ onTermsAcceptedChange: te,
12482
+ onEmailBlur: L,
12483
+ onPasswordBlur: R,
12484
+ onForgotPasswordClick: ne,
12485
+ onTermsClick: z,
12486
+ onPrivacyClick: B,
12487
+ onSignInClick: V,
12488
+ onCreateAccountClick: V,
12489
+ onSecondaryClick: H
12483
12490
  })]
12484
12491
  }), Jd = (e) => e.customerState === "authenticated" ? /* @__PURE__ */ c("section", {
12485
12492
  className: "mt-10 flex w-full justify-center px-4 pb-16 md:px-6",
@@ -12664,7 +12671,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
12664
12671
  children: e.label
12665
12672
  }, e.value);
12666
12673
  })
12667
- })] }), af = ({ itemLabel: e, selectedCount: t, failedCount: n, onSelectAll: r, onSelectFailed: i, onClear: a, onCancel: o }) => /* @__PURE__ */ l("div", {
12674
+ })] }), af = ({ itemLabel: e, selectedCount: t, failedCount: n, disableAllDisabled: r, onSelectAll: i, onSelectFailed: a, onDisableAll: o, onClear: s, onCancel: u }) => /* @__PURE__ */ l("div", {
12668
12675
  "aria-label": `${e === "sheet" ? "sheets" : "samples"} bulk actions`,
12669
12676
  className: "mt-3 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3",
12670
12677
  children: [
@@ -12674,23 +12681,35 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
12674
12681
  children: [t, " selected"]
12675
12682
  }),
12676
12683
  /* @__PURE__ */ l("div", {
12677
- className: "mt-2 flex gap-2",
12678
- children: [/* @__PURE__ */ c(D, {
12679
- label: "Select all",
12680
- variant: "outline",
12681
- intent: "primary",
12682
- size: "xs",
12683
- className: "shrink-0 whitespace-nowrap",
12684
- onClick: r
12685
- }), /* @__PURE__ */ c(D, {
12686
- label: `Select failed checks (${n})`,
12687
- variant: "outline",
12688
- intent: "primary",
12689
- size: "xs",
12690
- className: "shrink-0 whitespace-nowrap",
12691
- disabled: n === 0,
12692
- onClick: i
12693
- })]
12684
+ className: "mt-2 flex flex-wrap gap-2",
12685
+ children: [
12686
+ /* @__PURE__ */ c(D, {
12687
+ label: "Select all",
12688
+ variant: "outline",
12689
+ intent: "primary",
12690
+ size: "xs",
12691
+ className: "shrink-0 whitespace-nowrap",
12692
+ onClick: i
12693
+ }),
12694
+ /* @__PURE__ */ c(D, {
12695
+ label: `Select failed checks (${n})`,
12696
+ variant: "outline",
12697
+ intent: "primary",
12698
+ size: "xs",
12699
+ className: "shrink-0 whitespace-nowrap",
12700
+ disabled: n === 0,
12701
+ onClick: a
12702
+ }),
12703
+ /* @__PURE__ */ c(D, {
12704
+ label: "Disable all",
12705
+ variant: "outline",
12706
+ intent: "danger",
12707
+ size: "xs",
12708
+ className: "shrink-0 whitespace-nowrap",
12709
+ disabled: r,
12710
+ onClick: o
12711
+ })
12712
+ ]
12694
12713
  }),
12695
12714
  /* @__PURE__ */ l("div", {
12696
12715
  className: "mt-2 flex items-center gap-1",
@@ -12701,14 +12720,14 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
12701
12720
  size: "xs",
12702
12721
  className: "shrink-0 whitespace-nowrap",
12703
12722
  disabled: t === 0,
12704
- onClick: a
12723
+ onClick: s
12705
12724
  }), /* @__PURE__ */ c(D, {
12706
12725
  label: "Cancel",
12707
12726
  variant: "ghost",
12708
12727
  intent: "primary",
12709
12728
  size: "xs",
12710
12729
  className: "shrink-0 whitespace-nowrap",
12711
- onClick: o
12730
+ onClick: u
12712
12731
  })]
12713
12732
  })
12714
12733
  ]
@@ -12888,69 +12907,69 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
12888
12907
  })
12889
12908
  });
12890
12909
  }
12891
- let { data: t, sideNavProps: n = { items: [] }, onTabSelect: r, onLocalizationSelect: i, onDecorFieldChange: a, onDecorSave: o, onDecorCancel: s, onDeleteDecorClick: u, onSkuSearchChange: f, onSkuSelect: p, onAddSkuClick: m, onSkuVariantSelect: g, onNewSkuChange: _, onSkuFieldChange: v, onSkuSave: y, onSkuCancel: b, onSkuCreate: x, onSkuDelete: S, onSkuBulkSelectionChange: C, onSkuBulkDelete: w, onIntegrationRefresh: T, onSampleSearchChange: E, onSampleSelect: O, onAddSampleClick: k, onSampleVariantSelect: j, onNewSampleSkuChange: M, onSampleFieldChange: N, onSampleSave: P, onSampleCancel: F, onSampleCreate: I, onSampleDelete: L, onSampleBulkSelectionChange: ee, onSampleBulkDelete: R, onNoticeActionClick: te } = e, { decor: z, decorEditor: B, skuEditor: V, sampleEditor: H } = t, U = t.skus.find((e) => e.id === V.selectedSkuId), W = t.skus.map((e) => ({
12910
+ let { data: t, sideNavProps: n = { items: [] }, onTabSelect: r, onLocalizationSelect: i, onDecorFieldChange: a, onDecorSave: o, onDecorCancel: s, onDeleteDecorClick: u, onSkuSearchChange: f, onSkuSelect: p, onAddSkuClick: m, onSkuVariantSelect: g, onNewSkuChange: _, onSkuFieldChange: v, onSkuSave: y, onSkuCancel: b, onSkuCreate: x, onSkuDelete: S, onSkuBulkSelectionChange: C, onSkuBulkDelete: w, onSkuDisableAll: T, onIntegrationRefresh: E, onBigCommerceSync: O, onSampleSearchChange: k, onSampleSelect: j, onAddSampleClick: M, onSampleVariantSelect: N, onNewSampleSkuChange: P, onSampleFieldChange: F, onSampleSave: I, onSampleCancel: ee, onSampleCreate: te, onSampleDelete: L, onSampleBulkSelectionChange: R, onSampleBulkDelete: ne, onSampleDisableAll: z, onNoticeActionClick: B } = e, { decor: V, decorEditor: H, skuEditor: U, sampleEditor: W } = t, G = t.skus.find((e) => e.id === U.selectedSkuId), re = !!U.integration?.bigCommerceId?.trim(), ie = U.integration?.bigCommerceStatusLabel ?? (re ? "Ready" : "Not found"), ae = U.integration?.availableForOnlineCheckout ?? U.integration?.availabilityLabel?.trim().toLowerCase() === "true", oe = t.skus.map((e) => ({
12892
12911
  id: e.id,
12893
12912
  label: e.sku,
12894
12913
  value: e.id,
12895
12914
  description: `${e.finish} · ${e.grade} · ${e.size}`
12896
- })), G = t.samples.find((e) => e.id === H.selectedSampleId), ne = t.samples.map((e) => ({
12915
+ })), K = t.samples.find((e) => e.id === W.selectedSampleId), se = t.samples.map((e) => ({
12897
12916
  id: e.id,
12898
12917
  label: e.sku,
12899
12918
  value: e.id,
12900
12919
  description: `${e.finish} · ${e.size}`
12901
- })), K = V.bulkSelection, q = H.bulkSelection, J = K?.selectedIds ?? [], re = q?.selectedIds ?? [], ie = t.skus.filter((e) => !e.isForSale).map((e) => e.id), ae = t.samples.filter((e) => !e.isSampleable).map((e) => e.id), oe = B.activeLocalization.saveStatus === "saving", se = B.searchColorFieldId ? [...B.sharedFields, ...B.localizedFields].filter((e) => e.id === B.searchColorFieldId) : [], ce = B.decorFlagFieldId ? B.sharedFields.filter((e) => e.id === B.decorFlagFieldId) : [], le = B.sharedFields.filter((e) => e.id !== B.searchColorFieldId && e.id !== B.decorFlagFieldId), ue = B.localizedFields.filter((e) => e.id !== B.searchColorFieldId), de = V.saveStatus === "saving", fe = H.saveStatus === "saving", pe = H.mode === "edit", me = null;
12902
- V.mode === "create" ? me = /* @__PURE__ */ c(D, {
12903
- label: V.createLabel ?? "Create SKU",
12920
+ })), q = U.bulkSelection, J = W.bulkSelection, ce = q?.selectedIds ?? [], le = J?.selectedIds ?? [], ue = t.skus.filter((e) => !e.isForSale).map((e) => e.id), de = t.samples.filter((e) => !e.isSampleable).map((e) => e.id), fe = H.activeLocalization.saveStatus === "saving", pe = H.searchColorFieldId ? [...H.sharedFields, ...H.localizedFields].filter((e) => e.id === H.searchColorFieldId) : [], me = H.decorFlagFieldId ? H.sharedFields.filter((e) => e.id === H.decorFlagFieldId) : [], Y = H.sharedFields.filter((e) => e.id !== H.searchColorFieldId && e.id !== H.decorFlagFieldId), he = H.localizedFields.filter((e) => e.id !== H.searchColorFieldId), ge = U.saveStatus === "saving", _e = W.saveStatus === "saving", ve = W.mode === "edit", ye = null;
12921
+ U.mode === "create" ? ye = /* @__PURE__ */ c(D, {
12922
+ label: U.createLabel ?? "Create SKU",
12904
12923
  iconType: "fa-solid",
12905
12924
  iconName: "plus",
12906
12925
  iconAlt: "",
12907
12926
  variant: "solid",
12908
12927
  intent: "primary",
12909
- disabled: V.createDisabled,
12928
+ disabled: U.createDisabled,
12910
12929
  onClick: () => x?.({
12911
- sku: V.newSkuValue,
12912
- grade: V.selectedGrade ?? "",
12913
- finish: V.selectedFinish ?? "",
12914
- size: V.selectedSize ?? ""
12930
+ sku: U.newSkuValue,
12931
+ grade: U.selectedGrade ?? "",
12932
+ finish: U.selectedFinish ?? "",
12933
+ size: U.selectedSize ?? ""
12915
12934
  })
12916
- }) : U && (me = /* @__PURE__ */ c(D, {
12917
- label: V.controls.saveLabel,
12935
+ }) : G && (ye = /* @__PURE__ */ c(D, {
12936
+ label: U.controls.saveLabel,
12918
12937
  iconType: "fa-solid",
12919
- iconName: de ? "spinner" : "floppy-disk",
12938
+ iconName: ge ? "spinner" : "floppy-disk",
12920
12939
  iconAlt: "",
12921
12940
  variant: "solid",
12922
12941
  intent: "primary",
12923
- disabled: V.controls.saveDisabled || de,
12924
- "aria-busy": de || void 0,
12925
- onClick: () => y?.({ skuId: U.id })
12942
+ disabled: U.controls.saveDisabled || ge,
12943
+ "aria-busy": ge || void 0,
12944
+ onClick: () => y?.({ skuId: G.id })
12926
12945
  }));
12927
- let Y = null;
12928
- H.mode === "create" ? Y = /* @__PURE__ */ c(D, {
12929
- label: H.createLabel ?? "Create Sample",
12946
+ let X = null;
12947
+ W.mode === "create" ? X = /* @__PURE__ */ c(D, {
12948
+ label: W.createLabel ?? "Create Sample",
12930
12949
  iconType: "fa-solid",
12931
12950
  iconName: "plus",
12932
12951
  iconAlt: "",
12933
12952
  variant: "solid",
12934
12953
  intent: "primary",
12935
- disabled: H.createDisabled,
12936
- onClick: () => I?.({
12937
- sku: H.newSkuValue,
12938
- finish: H.selectedFinish ?? "",
12939
- size: H.selectedSize ?? ""
12954
+ disabled: W.createDisabled,
12955
+ onClick: () => te?.({
12956
+ sku: W.newSkuValue,
12957
+ finish: W.selectedFinish ?? "",
12958
+ size: W.selectedSize ?? ""
12940
12959
  })
12941
- }) : G && (Y = /* @__PURE__ */ c(D, {
12942
- label: H.controls.saveLabel,
12960
+ }) : K && (X = /* @__PURE__ */ c(D, {
12961
+ label: W.controls.saveLabel,
12943
12962
  iconType: "fa-solid",
12944
- iconName: fe ? "spinner" : "floppy-disk",
12963
+ iconName: _e ? "spinner" : "floppy-disk",
12945
12964
  iconAlt: "",
12946
12965
  variant: "solid",
12947
12966
  intent: "primary",
12948
- disabled: H.controls.saveDisabled || fe,
12949
- "aria-busy": fe || void 0,
12950
- onClick: () => P?.({ sampleId: G.id })
12967
+ disabled: W.controls.saveDisabled || _e,
12968
+ "aria-busy": _e || void 0,
12969
+ onClick: () => I?.({ sampleId: K.id })
12951
12970
  }));
12952
- let he = null;
12953
- return H.mode === "create" ? he = /* @__PURE__ */ l("div", {
12971
+ let be = null;
12972
+ return W.mode === "create" ? be = /* @__PURE__ */ l("div", {
12954
12973
  className: "mt-5",
12955
12974
  children: [/* @__PURE__ */ c("label", {
12956
12975
  htmlFor: "market-readiness-new-sample-sku",
@@ -12959,7 +12978,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
12959
12978
  }), /* @__PURE__ */ c(Co, {
12960
12979
  id: "market-readiness-new-sample-sku",
12961
12980
  name: "newSampleSku",
12962
- value: H.newSkuValue,
12981
+ value: W.newSkuValue,
12963
12982
  placeholder: "Generated sample SKU",
12964
12983
  leadingIcon: /* @__PURE__ */ c(h, {
12965
12984
  iconType: "fa-solid",
@@ -12967,9 +12986,9 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
12967
12986
  alt: "",
12968
12987
  size: "sm"
12969
12988
  }),
12970
- onChange: (e) => M?.({ value: e.target.value })
12989
+ onChange: (e) => P?.({ value: e.target.value })
12971
12990
  })]
12972
- }) : G?.sourceIdentifier && (he = /* @__PURE__ */ l("div", {
12991
+ }) : K?.sourceIdentifier && (be = /* @__PURE__ */ l("div", {
12973
12992
  className: "mt-5 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3",
12974
12993
  children: [/* @__PURE__ */ c(d, {
12975
12994
  variant: "free",
@@ -12977,7 +12996,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
12977
12996
  children: "Salsify identifier"
12978
12997
  }), /* @__PURE__ */ c("code", {
12979
12998
  className: "mt-1 block break-all text-sm text-primary",
12980
- children: G.sourceIdentifier
12999
+ children: K.sourceIdentifier
12981
13000
  })]
12982
13001
  })), /* @__PURE__ */ l(Yd, {
12983
13002
  pageTitle: t.pageTitle,
@@ -12986,9 +13005,9 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
12986
13005
  children: [
12987
13006
  /* @__PURE__ */ l("section", {
12988
13007
  className: "mt-5 flex items-center gap-4 rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm",
12989
- children: [z.imageUrl ? /* @__PURE__ */ c(A, {
12990
- src: z.imageUrl,
12991
- alt: z.imageAlt ?? "",
13008
+ children: [V.imageUrl ? /* @__PURE__ */ c(A, {
13009
+ src: V.imageUrl,
13010
+ alt: V.imageAlt ?? "",
12992
13011
  quality: 85,
12993
13012
  className: "h-16 w-16 rounded-md border border-borderTertiary object-cover"
12994
13013
  }) : /* @__PURE__ */ c("span", {
@@ -13005,15 +13024,15 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13005
13024
  as: "h2",
13006
13025
  variant: "free",
13007
13026
  className: "text-lg font-bold text-primary",
13008
- children: z.name
13027
+ children: V.name
13009
13028
  }), /* @__PURE__ */ l(d, {
13010
13029
  variant: "free",
13011
13030
  className: "mt-1 text-sm text-primary",
13012
13031
  children: [
13013
13032
  "Decor ",
13014
- z.decorCode,
13033
+ V.decorCode,
13015
13034
  " · Range ",
13016
- z.rangeCode
13035
+ V.rangeCode
13017
13036
  ]
13018
13037
  })]
13019
13038
  })]
@@ -13039,7 +13058,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13039
13058
  variant: "outline",
13040
13059
  intent: "primary",
13041
13060
  size: "sm",
13042
- onClick: te
13061
+ onClick: B
13043
13062
  })
13044
13063
  }) : null
13045
13064
  ]
@@ -13081,77 +13100,77 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13081
13100
  className: "rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:col-span-2",
13082
13101
  children: /* @__PURE__ */ c(fc, {
13083
13102
  title: "Decor details",
13084
- description: B.sharedDescription,
13103
+ description: H.sharedDescription,
13085
13104
  fields: [
13086
- ...ue,
13087
- ...le,
13088
- ...ce,
13089
- ...se
13105
+ ...he,
13106
+ ...Y,
13107
+ ...me,
13108
+ ...pe
13090
13109
  ],
13091
13110
  fieldGroups: [{
13092
13111
  id: "localized-decor-fields",
13093
- title: `${B.activeLocalization.heading} content`,
13094
- description: B.localizationDescription ?? "These fields change with the selected locale.",
13095
- fieldIds: ue.map((e) => e.id)
13112
+ title: `${H.activeLocalization.heading} content`,
13113
+ description: H.localizationDescription ?? "These fields change with the selected locale.",
13114
+ fieldIds: he.map((e) => e.id)
13096
13115
  }, {
13097
13116
  id: "shared-decor-fields",
13098
- title: B.sharedTitle ?? "Shared decor details",
13099
- fieldIds: le.map((e) => e.id)
13117
+ title: H.sharedTitle ?? "Shared decor details",
13118
+ fieldIds: Y.map((e) => e.id)
13100
13119
  }],
13101
13120
  density: "compact",
13102
13121
  severityDisplay: "icon",
13103
13122
  showActions: !1,
13104
13123
  validationSummary: /* @__PURE__ */ l("div", {
13105
13124
  className: "flex flex-col-reverse gap-4 border-t border-borderTertiary pt-5 md:flex-row md:items-end md:justify-between",
13106
- children: [/* @__PURE__ */ c("div", { children: B.deleteLabel ? /* @__PURE__ */ c(D, {
13107
- label: B.deleteLabel,
13125
+ children: [/* @__PURE__ */ c("div", { children: H.deleteLabel ? /* @__PURE__ */ c(D, {
13126
+ label: H.deleteLabel,
13108
13127
  iconType: "fa-solid",
13109
13128
  iconName: "trash",
13110
13129
  iconAlt: "",
13111
13130
  variant: "outline",
13112
13131
  intent: "danger",
13113
- disabled: B.deleteDisabled || oe,
13114
- onClick: () => u?.({ decorId: z.id })
13132
+ disabled: H.deleteDisabled || fe,
13133
+ onClick: () => u?.({ decorId: V.id })
13115
13134
  }) : null }), /* @__PURE__ */ l("div", {
13116
13135
  className: "flex flex-col gap-3 md:items-end",
13117
13136
  children: [/* @__PURE__ */ c(nf, {
13118
- status: B.activeLocalization.saveStatus,
13119
- label: B.activeLocalization.saveStatusLabel,
13120
- errorMessage: B.activeLocalization.saveErrorMessage,
13121
- lastSavedLabel: B.activeLocalization.lastSavedLabel
13137
+ status: H.activeLocalization.saveStatus,
13138
+ label: H.activeLocalization.saveStatusLabel,
13139
+ errorMessage: H.activeLocalization.saveErrorMessage,
13140
+ lastSavedLabel: H.activeLocalization.lastSavedLabel
13122
13141
  }), /* @__PURE__ */ l("div", {
13123
13142
  className: "flex gap-2",
13124
13143
  children: [/* @__PURE__ */ c(D, {
13125
- label: B.controls.cancelLabel,
13144
+ label: H.controls.cancelLabel,
13126
13145
  variant: "outline",
13127
13146
  intent: "primary",
13128
- disabled: B.controls.cancelDisabled || oe,
13147
+ disabled: H.controls.cancelDisabled || fe,
13129
13148
  onClick: () => s?.({
13130
- decorId: z.id,
13131
- localizationId: B.activeLocalization.id
13149
+ decorId: V.id,
13150
+ localizationId: H.activeLocalization.id
13132
13151
  })
13133
13152
  }), /* @__PURE__ */ c(D, {
13134
- label: B.controls.saveLabel,
13153
+ label: H.controls.saveLabel,
13135
13154
  iconType: "fa-solid",
13136
- iconName: oe ? "spinner" : "floppy-disk",
13155
+ iconName: fe ? "spinner" : "floppy-disk",
13137
13156
  iconAlt: "",
13138
13157
  variant: "solid",
13139
13158
  intent: "primary",
13140
- disabled: B.controls.saveDisabled || oe,
13141
- "aria-busy": oe || void 0,
13159
+ disabled: H.controls.saveDisabled || fe,
13160
+ "aria-busy": fe || void 0,
13142
13161
  onClick: () => o?.({
13143
- decorId: z.id,
13144
- localizationId: B.activeLocalization.id
13162
+ decorId: V.id,
13163
+ localizationId: H.activeLocalization.id
13145
13164
  })
13146
13165
  })]
13147
13166
  })]
13148
13167
  })]
13149
13168
  }),
13150
13169
  onDynamicFormFieldChange: ({ fieldId: e, value: t }) => {
13151
- let n = B.sharedFields.some((t) => t.id === e);
13170
+ let n = H.sharedFields.some((t) => t.id === e);
13152
13171
  a?.({
13153
- decorId: z.id,
13154
- localizationId: n ? void 0 : B.activeLocalization.id,
13172
+ decorId: V.id,
13173
+ localizationId: n ? void 0 : H.activeLocalization.id,
13155
13174
  scope: n ? "shared" : "localized",
13156
13175
  fieldId: e,
13157
13176
  value: t
@@ -13162,9 +13181,9 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13162
13181
  className: "rounded-lg border border-borderTertiary bg-secondary p-4 shadow-sm",
13163
13182
  children: /* @__PURE__ */ c(su, {
13164
13183
  title: "Decor localizations",
13165
- markets: B.markets,
13166
- selectedLocalizationId: B.activeLocalization.id,
13167
- localizationSelectionDisabled: oe,
13184
+ markets: H.markets,
13185
+ selectedLocalizationId: H.activeLocalization.id,
13186
+ localizationSelectionDisabled: fe,
13168
13187
  onLocalizationSelect: i
13169
13188
  })
13170
13189
  })]
@@ -13189,9 +13208,9 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13189
13208
  id: "market-readiness-sku-search",
13190
13209
  name: "skuSearch",
13191
13210
  ariaLabel: "Sheet SKU",
13192
- value: V.searchValue,
13193
- options: W,
13194
- valueStatus: U?.isForSale === !1 && V.searchValue === U.sku ? "inactive" : "default",
13211
+ value: U.searchValue,
13212
+ options: oe,
13213
+ valueStatus: G?.isForSale === !1 && U.searchValue === G.sku ? "inactive" : "default",
13195
13214
  placeholder: "Search sheet SKUs",
13196
13215
  controlSize: "default",
13197
13216
  onQueryChange: f,
@@ -13205,7 +13224,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13205
13224
  }
13206
13225
  })]
13207
13226
  }), /* @__PURE__ */ c(D, {
13208
- label: V.addSkuLabel ?? "Add Sheet",
13227
+ label: U.addSkuLabel ?? "Add Sheet",
13209
13228
  iconType: "fa-solid",
13210
13229
  iconName: "plus",
13211
13230
  iconAlt: "",
@@ -13214,7 +13233,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13214
13233
  onClick: m
13215
13234
  })]
13216
13235
  })
13217
- }), V.mode === "edit" && !U ? /* @__PURE__ */ l("section", {
13236
+ }), U.mode === "edit" && !G ? /* @__PURE__ */ l("section", {
13218
13237
  className: "rounded-lg border border-dashed border-borderTertiary bg-secondary p-8 text-center",
13219
13238
  children: [/* @__PURE__ */ c(d, {
13220
13239
  as: "h2",
@@ -13235,17 +13254,24 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13235
13254
  as: "h2",
13236
13255
  variant: "free",
13237
13256
  className: "text-base font-bold text-primary",
13238
- children: V.mode === "create" ? "Create a new sheet SKU" : U?.sku
13257
+ children: U.mode === "create" ? "Create a new sheet SKU" : G?.sku
13239
13258
  }), /* @__PURE__ */ c(d, {
13240
13259
  variant: "free",
13241
13260
  className: "mt-1 text-sm text-tertiary",
13242
- children: V.mode === "create" ? "Choose the variant identity. Existing combinations cannot be created twice." : "Variant identity and selling fields remain editable. Changes are validated when you save."
13243
- })] }), U?.statusLabel ? /* @__PURE__ */ c("span", {
13244
- className: "rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-primary",
13245
- children: U.statusLabel
13261
+ children: U.mode === "create" ? "Choose the variant identity. Existing combinations cannot be created twice." : "Variant identity and selling fields remain editable. Changes are validated when you save."
13262
+ })] }), G ? /* @__PURE__ */ l("div", {
13263
+ className: "flex flex-wrap items-center gap-2",
13264
+ children: [G.statusLabel ? /* @__PURE__ */ c("span", {
13265
+ className: "rounded-full bg-tertiaryActive px-3 py-1 text-xs font-bold text-primary",
13266
+ children: G.statusLabel
13267
+ }) : null, /* @__PURE__ */ l("span", {
13268
+ "aria-label": `Big Commerce readiness: ${ie}`,
13269
+ className: `rounded-full px-3 py-1 text-xs font-bold ${re ? "bg-saleGreen/10 text-saleGreen" : "bg-accent/10 text-accent"}`,
13270
+ children: ["Big Commerce: ", ie]
13271
+ })]
13246
13272
  }) : null]
13247
13273
  }),
13248
- V.mode === "create" ? /* @__PURE__ */ l("div", {
13274
+ U.mode === "create" ? /* @__PURE__ */ l("div", {
13249
13275
  className: "mt-5",
13250
13276
  children: [/* @__PURE__ */ c("label", {
13251
13277
  htmlFor: "market-readiness-new-sku",
@@ -13254,7 +13280,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13254
13280
  }), /* @__PURE__ */ c(Co, {
13255
13281
  id: "market-readiness-new-sku",
13256
13282
  name: "newSku",
13257
- value: V.newSkuValue,
13283
+ value: U.newSkuValue,
13258
13284
  placeholder: "Generated sheet SKU",
13259
13285
  leadingIcon: /* @__PURE__ */ c(h, {
13260
13286
  iconType: "fa-solid",
@@ -13271,8 +13297,8 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13271
13297
  /* @__PURE__ */ c(rf, {
13272
13298
  title: "Grade",
13273
13299
  dimension: "grade",
13274
- options: V.gradeOptions,
13275
- selectedValue: V.selectedGrade,
13300
+ options: U.gradeOptions,
13301
+ selectedValue: U.selectedGrade,
13276
13302
  readOnly: !1,
13277
13303
  onSelect: (e, t) => g?.({
13278
13304
  dimension: e,
@@ -13282,8 +13308,8 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13282
13308
  /* @__PURE__ */ c(rf, {
13283
13309
  title: "Finish",
13284
13310
  dimension: "finish",
13285
- options: V.finishOptions,
13286
- selectedValue: V.selectedFinish,
13311
+ options: U.finishOptions,
13312
+ selectedValue: U.selectedFinish,
13287
13313
  readOnly: !1,
13288
13314
  onSelect: (e, t) => g?.({
13289
13315
  dimension: e,
@@ -13293,8 +13319,8 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13293
13319
  /* @__PURE__ */ c(rf, {
13294
13320
  title: "Size",
13295
13321
  dimension: "size",
13296
- options: V.sizeOptions,
13297
- selectedValue: V.selectedSize,
13322
+ options: U.sizeOptions,
13323
+ selectedValue: U.selectedSize,
13298
13324
  readOnly: !1,
13299
13325
  onSelect: (e, t) => g?.({
13300
13326
  dimension: e,
@@ -13303,11 +13329,11 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13303
13329
  })
13304
13330
  ]
13305
13331
  }),
13306
- V.duplicateMessage ? /* @__PURE__ */ c(d, {
13332
+ U.duplicateMessage ? /* @__PURE__ */ c(d, {
13307
13333
  role: "alert",
13308
13334
  variant: "free",
13309
13335
  className: "mt-4 rounded-md border border-accent bg-accent/10 p-3 text-sm text-accent",
13310
- children: V.duplicateMessage
13336
+ children: U.duplicateMessage
13311
13337
  }) : null,
13312
13338
  /* @__PURE__ */ l("div", {
13313
13339
  className: "mt-6 border-t border-borderTertiary pt-5",
@@ -13326,12 +13352,12 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13326
13352
  /* @__PURE__ */ c("div", {
13327
13353
  className: "mt-4",
13328
13354
  children: /* @__PURE__ */ c(fc, {
13329
- fields: V.fields,
13355
+ fields: U.fields,
13330
13356
  density: "compact",
13331
13357
  severityDisplay: "icon",
13332
13358
  showActions: !1,
13333
13359
  onDynamicFormFieldChange: ({ fieldId: e, value: t }) => v?.({
13334
- skuId: U?.id,
13360
+ skuId: G?.id,
13335
13361
  fieldId: e,
13336
13362
  value: t
13337
13363
  })
@@ -13339,83 +13365,123 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13339
13365
  })
13340
13366
  ]
13341
13367
  }),
13342
- V.mode === "edit" ? /* @__PURE__ */ l("section", {
13343
- className: "mt-6 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4",
13344
- children: [/* @__PURE__ */ l("div", {
13345
- className: "flex flex-wrap items-center justify-between gap-3",
13346
- children: [/* @__PURE__ */ c(d, {
13368
+ U.mode === "edit" ? /* @__PURE__ */ l("div", {
13369
+ className: "mt-6 space-y-4",
13370
+ children: [/* @__PURE__ */ l("section", {
13371
+ className: "flex flex-col gap-3 rounded-md border border-borderTertiary bg-adminSideNavBackground p-4 md:flex-row md:items-center md:justify-between",
13372
+ children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(d, {
13347
13373
  as: "h3",
13348
13374
  variant: "free",
13349
13375
  className: "text-sm font-bold text-primary",
13350
- children: "Integration status"
13351
- }), U ? /* @__PURE__ */ c(D, {
13352
- label: "Refresh",
13376
+ children: "Big Commerce"
13377
+ }), /* @__PURE__ */ l("div", {
13378
+ "aria-label": `Big Commerce status: ${ie}`,
13379
+ className: "mt-2 flex items-center gap-2 text-sm text-primary",
13380
+ children: [/* @__PURE__ */ c("span", {
13381
+ "aria-hidden": "true",
13382
+ className: `h-3 w-3 shrink-0 rounded-full ${re ? "bg-saleGreen" : "bg-accent"}`
13383
+ }), /* @__PURE__ */ c("span", { children: ie })]
13384
+ })] }), G ? /* @__PURE__ */ c(D, {
13385
+ label: U.integration?.bigCommerceSyncLabel ?? "Sync",
13353
13386
  iconType: "fa-solid",
13354
- iconName: "rotate",
13387
+ iconName: "arrows-rotate",
13355
13388
  iconAlt: "",
13356
13389
  variant: "outline",
13357
13390
  intent: "primary",
13358
13391
  size: "sm",
13359
- onClick: () => T?.({ skuId: U.id })
13392
+ className: "w-24",
13393
+ disabled: U.integration?.bigCommerceSyncDisabled || !O,
13394
+ onClick: () => O?.({ skuId: G.id })
13360
13395
  }) : null]
13361
- }), /* @__PURE__ */ l("dl", {
13362
- className: "mt-4 grid gap-4 md:grid-cols-2",
13363
- children: [
13364
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("dt", {
13365
- className: "text-xs font-bold uppercase text-tertiary",
13366
- children: "LX SKU"
13367
- }), /* @__PURE__ */ c("dd", {
13368
- className: "mt-1 text-sm text-primary",
13369
- children: V.integration?.lxId ?? "Not assigned"
13370
- })] }),
13371
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("dt", {
13372
- className: "text-xs font-bold uppercase text-tertiary",
13373
- children: "BigCommerce ID"
13374
- }), /* @__PURE__ */ c("dd", {
13375
- className: "mt-1 text-sm text-primary",
13376
- children: V.integration?.bigCommerceId ?? "Not assigned"
13377
- })] }),
13378
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("dt", {
13379
- className: "text-xs font-bold uppercase text-tertiary",
13380
- children: "Available For Online Checkout"
13381
- }), /* @__PURE__ */ c("dd", {
13382
- className: "mt-1 text-sm text-primary",
13383
- children: V.integration?.availabilityLabel ?? "Unknown"
13384
- })] }),
13385
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("dt", {
13386
- className: "text-xs font-bold uppercase text-tertiary",
13387
- children: "Last synchronized"
13388
- }), /* @__PURE__ */ c("dd", {
13389
- className: "mt-1 text-sm text-primary",
13390
- children: V.integration?.lastSynchronizedLabel ?? "Never"
13391
- })] })
13392
- ]
13396
+ }), /* @__PURE__ */ l("section", {
13397
+ className: "rounded-md border border-borderTertiary bg-adminSideNavBackground p-4",
13398
+ children: [/* @__PURE__ */ l("div", {
13399
+ className: "flex flex-wrap items-center justify-between gap-3",
13400
+ children: [/* @__PURE__ */ l("div", {
13401
+ className: "flex flex-wrap items-center gap-3",
13402
+ children: [/* @__PURE__ */ c(d, {
13403
+ as: "h3",
13404
+ variant: "free",
13405
+ className: "text-sm font-bold text-primary",
13406
+ children: "LX"
13407
+ }), /* @__PURE__ */ l("div", {
13408
+ "aria-label": `LX availability: ${ae ? "Available" : "Unavailable"}`,
13409
+ className: "flex items-center gap-2 text-sm text-primary",
13410
+ children: [/* @__PURE__ */ c("span", {
13411
+ "aria-hidden": "true",
13412
+ className: `h-3 w-3 shrink-0 rounded-full ${ae ? "bg-saleGreen" : "bg-accent"}`
13413
+ }), /* @__PURE__ */ c("span", { children: ae ? "Available" : "Unavailable" })]
13414
+ })]
13415
+ }), G ? /* @__PURE__ */ c(D, {
13416
+ label: "Refresh",
13417
+ iconType: "fa-solid",
13418
+ iconName: "rotate",
13419
+ iconAlt: "",
13420
+ variant: "outline",
13421
+ intent: "primary",
13422
+ size: "sm",
13423
+ className: "w-24",
13424
+ onClick: () => E?.({ skuId: G.id })
13425
+ }) : null]
13426
+ }), /* @__PURE__ */ l("dl", {
13427
+ className: "mt-4 grid gap-4 md:grid-cols-2",
13428
+ children: [
13429
+ /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("dt", {
13430
+ className: "text-xs font-bold uppercase text-tertiary",
13431
+ children: "LX SKU"
13432
+ }), /* @__PURE__ */ c("dd", {
13433
+ className: "mt-1 text-sm text-primary",
13434
+ children: U.integration?.lxId ?? "Not assigned"
13435
+ })] }),
13436
+ /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("dt", {
13437
+ className: "text-xs font-bold uppercase text-tertiary",
13438
+ children: "Price"
13439
+ }), /* @__PURE__ */ c("dd", {
13440
+ className: "mt-1 text-sm text-primary",
13441
+ children: U.integration?.priceLabel ?? "Not available"
13442
+ })] }),
13443
+ /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("dt", {
13444
+ className: "text-xs font-bold uppercase text-tertiary",
13445
+ children: "Available For Online Checkout"
13446
+ }), /* @__PURE__ */ c("dd", {
13447
+ className: "mt-1 text-sm text-primary",
13448
+ children: U.integration?.availabilityLabel ?? "Unknown"
13449
+ })] }),
13450
+ /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("dt", {
13451
+ className: "text-xs font-bold uppercase text-tertiary",
13452
+ children: "Last synchronized"
13453
+ }), /* @__PURE__ */ c("dd", {
13454
+ className: "mt-1 text-sm text-primary",
13455
+ children: U.integration?.lastSynchronizedLabel ?? "Never"
13456
+ })] })
13457
+ ]
13458
+ })]
13393
13459
  })]
13394
13460
  }) : null,
13395
13461
  /* @__PURE__ */ l("footer", {
13396
13462
  className: "mt-6 flex flex-col-reverse gap-3 border-t border-borderTertiary pt-5 md:flex-row md:items-end md:justify-between",
13397
- children: [/* @__PURE__ */ c("div", { children: V.mode === "edit" && U && V.deleteLabel && S ? /* @__PURE__ */ c(D, {
13398
- label: V.deleteLabel,
13463
+ children: [/* @__PURE__ */ c("div", { children: U.mode === "edit" && G && U.deleteLabel && S ? /* @__PURE__ */ c(D, {
13464
+ label: U.deleteLabel,
13399
13465
  variant: "outline",
13400
13466
  intent: "danger",
13401
- disabled: V.deleteDisabled || de,
13402
- onClick: () => S?.({ skuId: U.id })
13467
+ disabled: U.deleteDisabled || ge,
13468
+ onClick: () => S?.({ skuId: G.id })
13403
13469
  }) : null }), /* @__PURE__ */ l("div", {
13404
13470
  className: "flex flex-col gap-3 md:items-end",
13405
13471
  children: [/* @__PURE__ */ c(nf, {
13406
- status: V.saveStatus,
13407
- label: V.saveStatusLabel,
13408
- errorMessage: V.saveErrorMessage,
13409
- lastSavedLabel: V.lastSavedLabel
13472
+ status: U.saveStatus,
13473
+ label: U.saveStatusLabel,
13474
+ errorMessage: U.saveErrorMessage,
13475
+ lastSavedLabel: U.lastSavedLabel
13410
13476
  }), /* @__PURE__ */ l("div", {
13411
13477
  className: "flex gap-2",
13412
13478
  children: [/* @__PURE__ */ c(D, {
13413
- label: V.controls.cancelLabel,
13479
+ label: U.controls.cancelLabel,
13414
13480
  variant: "outline",
13415
13481
  intent: "primary",
13416
- disabled: V.controls.cancelDisabled || de,
13482
+ disabled: U.controls.cancelDisabled || ge,
13417
13483
  onClick: b
13418
- }), me]
13484
+ }), ye]
13419
13485
  })]
13420
13486
  })]
13421
13487
  })
@@ -13438,15 +13504,15 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13438
13504
  children: "Sheets"
13439
13505
  }), /* @__PURE__ */ l("div", {
13440
13506
  className: "flex items-center gap-2",
13441
- children: [K ? /* @__PURE__ */ c(D, {
13442
- iconType: K.active ? "fa-solid" : "fa-regular",
13443
- iconName: K.active ? "square-check" : "square",
13444
- iconAlt: K.active ? "Close sheet selection" : "Select sheets",
13507
+ children: [q ? /* @__PURE__ */ c(D, {
13508
+ iconType: q.active ? "fa-solid" : "fa-regular",
13509
+ iconName: q.active ? "square-check" : "square",
13510
+ iconAlt: q.active ? "Close sheet selection" : "Select sheets",
13445
13511
  variant: "ghost",
13446
- intent: K.active ? "accent" : "primary",
13512
+ intent: q.active ? "accent" : "primary",
13447
13513
  size: "xs",
13448
13514
  onClick: () => C?.({
13449
- active: !K.active,
13515
+ active: !q.active,
13450
13516
  skuIds: []
13451
13517
  })
13452
13518
  }) : null, /* @__PURE__ */ c("span", {
@@ -13454,18 +13520,20 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13454
13520
  children: t.skus.length
13455
13521
  })]
13456
13522
  })]
13457
- }), K?.active ? /* @__PURE__ */ c(af, {
13523
+ }), q?.active ? /* @__PURE__ */ c(af, {
13458
13524
  itemLabel: "sheet",
13459
- selectedCount: J.length,
13460
- failedCount: ie.length,
13525
+ selectedCount: ce.length,
13526
+ failedCount: ue.length,
13527
+ disableAllDisabled: q.disableAllDisabled || t.skus.length === 0 || !T,
13461
13528
  onSelectAll: () => C?.({
13462
13529
  active: !0,
13463
13530
  skuIds: t.skus.map((e) => e.id)
13464
13531
  }),
13465
13532
  onSelectFailed: () => C?.({
13466
13533
  active: !0,
13467
- skuIds: ie
13534
+ skuIds: ue
13468
13535
  }),
13536
+ onDisableAll: () => T?.({ skuIds: t.skus.map((e) => e.id) }),
13469
13537
  onClear: () => C?.({
13470
13538
  active: !0,
13471
13539
  skuIds: []
@@ -13479,17 +13547,17 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13479
13547
  /* @__PURE__ */ c("div", {
13480
13548
  className: "mt-4 space-y-2",
13481
13549
  children: t.skus.map((e) => {
13482
- let t = J.includes(e.id), n = K?.active ? t : e.id === V.selectedSkuId;
13550
+ let t = ce.includes(e.id), n = q?.active ? t : e.id === U.selectedSkuId;
13483
13551
  return /* @__PURE__ */ c("button", {
13484
13552
  type: "button",
13485
13553
  "aria-pressed": n,
13486
- "aria-label": K?.active ? `${t ? "Deselect" : "Select"} sheet ${e.sku}` : void 0,
13487
- className: `w-full rounded-md border p-3 text-left transition ${ef(n, K?.active ?? !1, t)}`,
13554
+ "aria-label": q?.active ? `${t ? "Deselect" : "Select"} sheet ${e.sku}` : void 0,
13555
+ className: `w-full rounded-md border p-3 text-left transition ${ef(n, q?.active ?? !1, t)}`,
13488
13556
  onClick: () => {
13489
- if (K?.active) {
13557
+ if (q?.active) {
13490
13558
  C?.({
13491
13559
  active: !0,
13492
- skuIds: t ? J.filter((t) => t !== e.id) : [...J, e.id]
13560
+ skuIds: t ? ce.filter((t) => t !== e.id) : [...ce, e.id]
13493
13561
  });
13494
13562
  return;
13495
13563
  }
@@ -13501,7 +13569,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13501
13569
  children: /* @__PURE__ */ l("span", {
13502
13570
  className: "flex items-start gap-2",
13503
13571
  children: [
13504
- K?.active ? /* @__PURE__ */ c(h, {
13572
+ q?.active ? /* @__PURE__ */ c(h, {
13505
13573
  iconType: t ? "fa-solid" : "fa-regular",
13506
13574
  iconName: t ? "square-check" : "square",
13507
13575
  alt: "",
@@ -13538,11 +13606,11 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13538
13606
  }, e.id);
13539
13607
  })
13540
13608
  }),
13541
- K?.active && J.length > 0 ? /* @__PURE__ */ c(of, {
13609
+ q?.active && ce.length > 0 ? /* @__PURE__ */ c(of, {
13542
13610
  itemLabel: "sheet",
13543
- selectedCount: J.length,
13544
- deleteDisabled: K.deleteDisabled || !w,
13545
- onDelete: () => w?.({ skuIds: J })
13611
+ selectedCount: ce.length,
13612
+ deleteDisabled: q.deleteDisabled || !w,
13613
+ onDelete: () => w?.({ skuIds: ce })
13546
13614
  }) : null
13547
13615
  ]
13548
13616
  })]
@@ -13568,42 +13636,42 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13568
13636
  id: "market-readiness-sample-search",
13569
13637
  name: "sampleSearch",
13570
13638
  ariaLabel: "Sample SKU",
13571
- value: H.searchValue,
13572
- options: ne,
13573
- valueStatus: G?.isSampleable === !1 && H.searchValue === G.sku ? "inactive" : "default",
13639
+ value: W.searchValue,
13640
+ options: se,
13641
+ valueStatus: K?.isSampleable === !1 && W.searchValue === K.sku ? "inactive" : "default",
13574
13642
  placeholder: "Search sample SKUs",
13575
13643
  controlSize: "default",
13576
- onQueryChange: E,
13577
- onClear: () => E?.({ value: "" }),
13644
+ onQueryChange: k,
13645
+ onClear: () => k?.({ value: "" }),
13578
13646
  onOptionSelect: ({ option: e }) => {
13579
13647
  let n = t.samples.find((t) => t.id === e.value);
13580
- n && O?.({
13648
+ n && j?.({
13581
13649
  sampleId: n.id,
13582
13650
  sku: n.sku
13583
13651
  });
13584
13652
  }
13585
13653
  })]
13586
13654
  }), /* @__PURE__ */ c(D, {
13587
- label: H.addLabel ?? "Add Sample",
13655
+ label: W.addLabel ?? "Add Sample",
13588
13656
  iconType: "fa-solid",
13589
13657
  iconName: "plus",
13590
13658
  iconAlt: "",
13591
13659
  variant: "outline",
13592
13660
  intent: "primary",
13593
- onClick: k
13661
+ onClick: M
13594
13662
  })]
13595
13663
  })
13596
- }), H.mode === "edit" && !G ? /* @__PURE__ */ l("section", {
13664
+ }), W.mode === "edit" && !K ? /* @__PURE__ */ l("section", {
13597
13665
  className: "rounded-lg border border-dashed border-borderTertiary bg-secondary p-8 text-center",
13598
13666
  children: [/* @__PURE__ */ c(d, {
13599
13667
  as: "h2",
13600
13668
  variant: "free",
13601
13669
  className: "text-base font-bold text-primary",
13602
- children: H.emptyTitle
13670
+ children: W.emptyTitle
13603
13671
  }), /* @__PURE__ */ c(d, {
13604
13672
  variant: "free",
13605
13673
  className: "mt-2 text-sm text-primary",
13606
- children: H.emptyMessage
13674
+ children: W.emptyMessage
13607
13675
  })]
13608
13676
  }) : /* @__PURE__ */ l("section", {
13609
13677
  className: "rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm",
@@ -13612,24 +13680,24 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13612
13680
  as: "h2",
13613
13681
  variant: "free",
13614
13682
  className: "text-base font-bold text-primary",
13615
- children: H.mode === "create" ? "Create a new sample" : G?.sku
13683
+ children: W.mode === "create" ? "Create a new sample" : K?.sku
13616
13684
  }),
13617
13685
  /* @__PURE__ */ c(d, {
13618
13686
  variant: "free",
13619
13687
  className: "mt-2 text-sm text-tertiary",
13620
- children: H.identifierHelpText
13688
+ children: W.identifierHelpText
13621
13689
  }),
13622
- he,
13690
+ be,
13623
13691
  /* @__PURE__ */ l("div", {
13624
13692
  className: "mt-5 space-y-5",
13625
13693
  children: [/* @__PURE__ */ c(rf, {
13626
13694
  title: "Finish",
13627
13695
  dimension: "finish",
13628
- options: H.finishOptions,
13629
- selectedValue: H.selectedFinish,
13630
- readOnly: pe,
13696
+ options: W.finishOptions,
13697
+ selectedValue: W.selectedFinish,
13698
+ readOnly: ve,
13631
13699
  onSelect: (e, t) => {
13632
- e !== "grade" && j?.({
13700
+ e !== "grade" && N?.({
13633
13701
  dimension: e,
13634
13702
  value: t
13635
13703
  });
@@ -13637,11 +13705,11 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13637
13705
  }), /* @__PURE__ */ c(rf, {
13638
13706
  title: "Size",
13639
13707
  dimension: "size",
13640
- options: H.sizeOptions,
13641
- selectedValue: H.selectedSize,
13642
- readOnly: pe,
13708
+ options: W.sizeOptions,
13709
+ selectedValue: W.selectedSize,
13710
+ readOnly: ve,
13643
13711
  onSelect: (e, t) => {
13644
- e !== "grade" && j?.({
13712
+ e !== "grade" && N?.({
13645
13713
  dimension: e,
13646
13714
  value: t
13647
13715
  });
@@ -13651,12 +13719,12 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13651
13719
  /* @__PURE__ */ c("div", {
13652
13720
  className: "mt-5",
13653
13721
  children: /* @__PURE__ */ c(fc, {
13654
- fields: H.fields,
13722
+ fields: W.fields,
13655
13723
  density: "compact",
13656
13724
  severityDisplay: "icon",
13657
13725
  showActions: !1,
13658
- onDynamicFormFieldChange: ({ fieldId: e, value: t }) => N?.({
13659
- sampleId: G?.id,
13726
+ onDynamicFormFieldChange: ({ fieldId: e, value: t }) => F?.({
13727
+ sampleId: K?.id,
13660
13728
  fieldId: e,
13661
13729
  value: t
13662
13730
  })
@@ -13664,28 +13732,28 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13664
13732
  }),
13665
13733
  /* @__PURE__ */ l("footer", {
13666
13734
  className: "mt-6 flex flex-col-reverse gap-3 border-t border-borderTertiary pt-5 md:flex-row md:items-end md:justify-between",
13667
- children: [/* @__PURE__ */ c("div", { children: H.mode === "edit" && G && H.deleteLabel && L ? /* @__PURE__ */ c(D, {
13668
- label: H.deleteLabel,
13735
+ children: [/* @__PURE__ */ c("div", { children: W.mode === "edit" && K && W.deleteLabel && L ? /* @__PURE__ */ c(D, {
13736
+ label: W.deleteLabel,
13669
13737
  variant: "outline",
13670
13738
  intent: "danger",
13671
- disabled: H.deleteDisabled || fe,
13672
- onClick: () => L?.({ sampleId: G.id })
13739
+ disabled: W.deleteDisabled || _e,
13740
+ onClick: () => L?.({ sampleId: K.id })
13673
13741
  }) : null }), /* @__PURE__ */ l("div", {
13674
13742
  className: "flex flex-col gap-3 md:items-end",
13675
13743
  children: [/* @__PURE__ */ c(nf, {
13676
- status: H.saveStatus,
13677
- label: H.saveStatusLabel,
13678
- errorMessage: H.saveErrorMessage,
13679
- lastSavedLabel: H.lastSavedLabel
13744
+ status: W.saveStatus,
13745
+ label: W.saveStatusLabel,
13746
+ errorMessage: W.saveErrorMessage,
13747
+ lastSavedLabel: W.lastSavedLabel
13680
13748
  }), /* @__PURE__ */ l("div", {
13681
13749
  className: "flex gap-2",
13682
13750
  children: [/* @__PURE__ */ c(D, {
13683
- label: H.controls.cancelLabel,
13751
+ label: W.controls.cancelLabel,
13684
13752
  variant: "outline",
13685
13753
  intent: "primary",
13686
- disabled: H.controls.cancelDisabled || fe,
13687
- onClick: F
13688
- }), Y]
13754
+ disabled: W.controls.cancelDisabled || _e,
13755
+ onClick: ee
13756
+ }), X]
13689
13757
  })]
13690
13758
  })]
13691
13759
  })
@@ -13708,15 +13776,15 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13708
13776
  children: "Samples"
13709
13777
  }), /* @__PURE__ */ l("div", {
13710
13778
  className: "flex items-center gap-2",
13711
- children: [q ? /* @__PURE__ */ c(D, {
13712
- iconType: q.active ? "fa-solid" : "fa-regular",
13713
- iconName: q.active ? "square-check" : "square",
13714
- iconAlt: q.active ? "Close sample selection" : "Select samples",
13779
+ children: [J ? /* @__PURE__ */ c(D, {
13780
+ iconType: J.active ? "fa-solid" : "fa-regular",
13781
+ iconName: J.active ? "square-check" : "square",
13782
+ iconAlt: J.active ? "Close sample selection" : "Select samples",
13715
13783
  variant: "ghost",
13716
- intent: q.active ? "accent" : "primary",
13784
+ intent: J.active ? "accent" : "primary",
13717
13785
  size: "xs",
13718
- onClick: () => ee?.({
13719
- active: !q.active,
13786
+ onClick: () => R?.({
13787
+ active: !J.active,
13720
13788
  sampleIds: []
13721
13789
  })
13722
13790
  }) : null, /* @__PURE__ */ c("span", {
@@ -13724,23 +13792,25 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13724
13792
  children: t.samples.length
13725
13793
  })]
13726
13794
  })]
13727
- }), q?.active ? /* @__PURE__ */ c(af, {
13795
+ }), J?.active ? /* @__PURE__ */ c(af, {
13728
13796
  itemLabel: "sample",
13729
- selectedCount: re.length,
13730
- failedCount: ae.length,
13731
- onSelectAll: () => ee?.({
13797
+ selectedCount: le.length,
13798
+ failedCount: de.length,
13799
+ disableAllDisabled: J.disableAllDisabled || t.samples.length === 0 || !z,
13800
+ onSelectAll: () => R?.({
13732
13801
  active: !0,
13733
13802
  sampleIds: t.samples.map((e) => e.id)
13734
13803
  }),
13735
- onSelectFailed: () => ee?.({
13804
+ onSelectFailed: () => R?.({
13736
13805
  active: !0,
13737
- sampleIds: ae
13806
+ sampleIds: de
13738
13807
  }),
13739
- onClear: () => ee?.({
13808
+ onDisableAll: () => z?.({ sampleIds: t.samples.map((e) => e.id) }),
13809
+ onClear: () => R?.({
13740
13810
  active: !0,
13741
13811
  sampleIds: []
13742
13812
  }),
13743
- onCancel: () => ee?.({
13813
+ onCancel: () => R?.({
13744
13814
  active: !1,
13745
13815
  sampleIds: []
13746
13816
  })
@@ -13749,21 +13819,21 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13749
13819
  t.samples.length ? /* @__PURE__ */ c("div", {
13750
13820
  className: "mt-4 space-y-2",
13751
13821
  children: t.samples.map((e) => {
13752
- let t = re.includes(e.id), n = q?.active ? t : e.id === H.selectedSampleId;
13822
+ let t = le.includes(e.id), n = J?.active ? t : e.id === W.selectedSampleId;
13753
13823
  return /* @__PURE__ */ c("button", {
13754
13824
  type: "button",
13755
13825
  "aria-pressed": n,
13756
- "aria-label": q?.active ? `${t ? "Deselect" : "Select"} sample ${e.sku}` : void 0,
13757
- className: `w-full rounded-md border p-3 text-left transition ${ef(n, q?.active ?? !1, t)}`,
13826
+ "aria-label": J?.active ? `${t ? "Deselect" : "Select"} sample ${e.sku}` : void 0,
13827
+ className: `w-full rounded-md border p-3 text-left transition ${ef(n, J?.active ?? !1, t)}`,
13758
13828
  onClick: () => {
13759
- if (q?.active) {
13760
- ee?.({
13829
+ if (J?.active) {
13830
+ R?.({
13761
13831
  active: !0,
13762
- sampleIds: t ? re.filter((t) => t !== e.id) : [...re, e.id]
13832
+ sampleIds: t ? le.filter((t) => t !== e.id) : [...le, e.id]
13763
13833
  });
13764
13834
  return;
13765
13835
  }
13766
- O?.({
13836
+ j?.({
13767
13837
  sampleId: e.id,
13768
13838
  sku: e.sku
13769
13839
  });
@@ -13771,7 +13841,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13771
13841
  children: /* @__PURE__ */ l("span", {
13772
13842
  className: "flex items-start gap-2",
13773
13843
  children: [
13774
- q?.active ? /* @__PURE__ */ c(h, {
13844
+ J?.active ? /* @__PURE__ */ c(h, {
13775
13845
  iconType: t ? "fa-solid" : "fa-regular",
13776
13846
  iconName: t ? "square-check" : "square",
13777
13847
  alt: "",
@@ -13803,11 +13873,11 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
13803
13873
  className: "mt-4 text-sm text-tertiary",
13804
13874
  children: "No samples have been added to this decor."
13805
13875
  }),
13806
- q?.active && re.length > 0 ? /* @__PURE__ */ c(of, {
13876
+ J?.active && le.length > 0 ? /* @__PURE__ */ c(of, {
13807
13877
  itemLabel: "sample",
13808
- selectedCount: re.length,
13809
- deleteDisabled: q.deleteDisabled || !R,
13810
- onDelete: () => R?.({ sampleIds: re })
13878
+ selectedCount: le.length,
13879
+ deleteDisabled: J.deleteDisabled || !ne,
13880
+ onDelete: () => ne?.({ sampleIds: le })
13811
13881
  }) : null
13812
13882
  ]
13813
13883
  })]
@@ -14029,8 +14099,8 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14029
14099
  className: "text-sm text-accent",
14030
14100
  children: t
14031
14101
  }) : null;
14032
- }, vf = ({ 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: u = "Data Forge could not load the allow list.", createUserDraft: f, roleOptions: p, regionOptions: m, users: h, defaultRegionLabel: g = "Default Region", defaultRegionPlaceholder: _ = "Select region", createMessage: v, updateMessage: y, deleteMessage: b, createPending: x = !1, updatePending: S = !1, deletePending: C = !1, deleteUserEmail: w, addUserLabel: T = "Add User", addingUserLabel: E = "Adding...", updateLabel: O = "Update", updatingLabel: k = "Updating...", activateLabel: A = "Activate", suspendLabel: j = "Suspend", removeLabel: M = "Remove", removingLabel: N = "Removing...", cancelLabel: P = "Cancel", onNewUserEmailChange: F, onNewUserRoleChange: I, onNewUserActiveChange: L, onNewUserDefaultRegionChange: ee, onCreateUser: R, onRowUpdate: te, onUserActiveToggle: z, onDeleteUserRequest: B, onDeleteModalClose: V, onDeleteUserConfirm: H }) => {
14033
- let U = t?.trim() ?? "", W = f.active && !f.defaultRegion.trim(), G = h.map((e) => ({
14102
+ }, vf = ({ 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: u = "Data Forge could not load the allow list.", createUserDraft: f, roleOptions: p, regionOptions: m, users: h, defaultRegionLabel: g = "Default Region", defaultRegionPlaceholder: _ = "Select region", createMessage: v, updateMessage: y, deleteMessage: b, createPending: x = !1, updatePending: S = !1, deletePending: C = !1, deleteUserEmail: w, addUserLabel: T = "Add User", addingUserLabel: E = "Adding...", updateLabel: O = "Update", updatingLabel: k = "Updating...", activateLabel: A = "Activate", suspendLabel: j = "Suspend", removeLabel: M = "Remove", removingLabel: N = "Removing...", cancelLabel: P = "Cancel", onNewUserEmailChange: F, onNewUserRoleChange: I, onNewUserActiveChange: ee, onNewUserDefaultRegionChange: te, onCreateUser: L, onRowUpdate: R, onUserActiveToggle: ne, onDeleteUserRequest: z, onDeleteModalClose: B, onDeleteUserConfirm: V }) => {
14103
+ let H = t?.trim() ?? "", U = f.active && !f.defaultRegion.trim(), W = h.map((e) => ({
14034
14104
  id: e.email,
14035
14105
  values: {
14036
14106
  active: e.active ? "active" : "inactive",
@@ -14038,7 +14108,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14038
14108
  role: e.role,
14039
14109
  defaultRegion: e.defaultRegion
14040
14110
  }
14041
- })), ne = `${h.length.toLocaleString()} ${h.length === 1 ? "user" : "users"}`, K = (e) => /* @__PURE__ */ l("article", {
14111
+ })), G = `${h.length.toLocaleString()} ${h.length === 1 ? "user" : "users"}`, re = (e) => /* @__PURE__ */ l("article", {
14042
14112
  className: "grid gap-3 rounded-md border border-borderTertiary bg-adminSideNavBackground p-3 md:grid-cols-[minmax(0,1fr)_auto] md:items-center",
14043
14113
  children: [/* @__PURE__ */ l("div", {
14044
14114
  className: "min-w-0",
@@ -14068,7 +14138,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14068
14138
  size: "sm",
14069
14139
  type: "button",
14070
14140
  variant: "outline",
14071
- onClick: () => z?.({ user: e })
14141
+ onClick: () => ne?.({ user: e })
14072
14142
  }), /* @__PURE__ */ c(D, {
14073
14143
  disabled: C || e.removeDisabled,
14074
14144
  iconAlt: "",
@@ -14079,7 +14149,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14079
14149
  size: "sm",
14080
14150
  type: "button",
14081
14151
  variant: "outline",
14082
- onClick: () => B?.({ user: e })
14152
+ onClick: () => z?.({ user: e })
14083
14153
  })]
14084
14154
  })]
14085
14155
  }, e.email);
@@ -14099,10 +14169,10 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14099
14169
  variant: "free",
14100
14170
  className: "text-2xl font-bold text-primary",
14101
14171
  children: e
14102
- }), U ? /* @__PURE__ */ c(d, {
14172
+ }), H ? /* @__PURE__ */ c(d, {
14103
14173
  variant: "free",
14104
14174
  className: "mt-2 text-sm text-primary",
14105
- children: U
14175
+ children: H
14106
14176
  }) : null]
14107
14177
  }), r ? /* @__PURE__ */ l("div", {
14108
14178
  className: "mt-5 grid gap-5",
@@ -14111,7 +14181,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14111
14181
  "aria-label": "Add authorization user",
14112
14182
  className: "grid gap-4 rounded-lg border border-borderTertiary bg-secondary p-5 shadow-sm md:grid-cols-6 md:items-end",
14113
14183
  onSubmit: (e) => {
14114
- e.preventDefault(), R?.({ user: f });
14184
+ e.preventDefault(), L?.({ user: f });
14115
14185
  },
14116
14186
  children: [
14117
14187
  /* @__PURE__ */ l("div", {
@@ -14159,9 +14229,9 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14159
14229
  placeholder: _,
14160
14230
  disabled: x,
14161
14231
  required: f.active,
14162
- hasError: W,
14232
+ hasError: U,
14163
14233
  options: m,
14164
- onChange: (e) => ee?.({ region: e.target.value })
14234
+ onChange: (e) => te?.({ region: e.target.value })
14165
14235
  })]
14166
14236
  }),
14167
14237
  /* @__PURE__ */ l("div", {
@@ -14182,11 +14252,11 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14182
14252
  label: "Inactive",
14183
14253
  value: "inactive"
14184
14254
  }],
14185
- onChange: (e) => L?.({ active: e.target.value === "active" })
14255
+ onChange: (e) => ee?.({ active: e.target.value === "active" })
14186
14256
  })]
14187
14257
  }),
14188
14258
  /* @__PURE__ */ c(D, {
14189
- disabled: x || W,
14259
+ disabled: x || U,
14190
14260
  iconAlt: "",
14191
14261
  iconName: "user-plus",
14192
14262
  iconType: "fa-solid",
@@ -14249,12 +14319,12 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14249
14319
  ],
14250
14320
  description: "Edit role, status, or default region inline, then use Update on that row.",
14251
14321
  emptyMessage: "No allow-list users are configured.",
14252
- rowCountLabel: ne,
14253
- rows: G,
14322
+ rowCountLabel: G,
14323
+ rows: W,
14254
14324
  title: "Allow List",
14255
14325
  updateLabel: S ? k : O,
14256
14326
  updateDisabled: S,
14257
- onRowUpdate: te
14327
+ onRowUpdate: R
14258
14328
  }),
14259
14329
  /* @__PURE__ */ c(_f, { message: y }),
14260
14330
  /* @__PURE__ */ l("section", {
@@ -14276,7 +14346,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14276
14346
  }),
14277
14347
  /* @__PURE__ */ c("div", {
14278
14348
  className: "grid gap-2",
14279
- children: h.map(K)
14349
+ children: h.map(re)
14280
14350
  }),
14281
14351
  /* @__PURE__ */ c(_f, { message: b })
14282
14352
  ]
@@ -14301,7 +14371,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14301
14371
  open: !!w,
14302
14372
  size: "md",
14303
14373
  title: "Remove User?",
14304
- onClose: () => V?.(),
14374
+ onClose: () => B?.(),
14305
14375
  children: /* @__PURE__ */ l("div", {
14306
14376
  className: "grid gap-5",
14307
14377
  children: [/* @__PURE__ */ l(d, {
@@ -14321,7 +14391,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14321
14391
  size: "sm",
14322
14392
  type: "button",
14323
14393
  variant: "outline",
14324
- onClick: () => V?.()
14394
+ onClick: () => B?.()
14325
14395
  }), /* @__PURE__ */ c(D, {
14326
14396
  disabled: C,
14327
14397
  iconAlt: "",
@@ -14333,7 +14403,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14333
14403
  type: "button",
14334
14404
  variant: "solid",
14335
14405
  onClick: () => {
14336
- w && H?.({ email: w });
14406
+ w && V?.({ email: w });
14337
14407
  }
14338
14408
  })]
14339
14409
  })]
@@ -14475,7 +14545,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14475
14545
  className: "mt-5 flex min-w-0 flex-1 flex-col md:mt-0",
14476
14546
  children: r
14477
14547
  })]
14478
- }), Cf = ({ pageTitle: e, pageDescription: t, sideNavProps: n, regionOptions: r, regionValue: i, regionLabel: a = "Region", regionPlaceholder: o = "Select region", regionHelpText: s = "Searches and changes will use product data from this region.", regionDisabled: u = !1, findDecorLabel: f = "Find a decor", createDecorViewLabel: p = "Create a decor", decorCodeValue: m, decorCodeLabel: g = "Decor Code", decorCodePlaceholder: _ = "Enter the new decor code", status: v, statusMessage: y, createNewPrompt: b = "Start with a blank decor", createNewDescription: x = "Enter a decor code that does not yet have a market-readiness record to begin a controlled draft.", createNewLabel: S = "Create Blank Decor", createNewHelpText: C = "Setting up a new decor creates a controlled draft. Nothing is published until the draft is saved.", createNewDisabled: w = !1, copyDecorTitle: T = "Copy an existing decor", copyDecorDescription: E = "Copy an existing decor's market-readiness data into a new decor, then update only the fields that differ.", sourceDecorCodeValue: O, sourceDecorCodeOptions: k = [], sourceDecorCodeLabel: A = "Source Decor Code", sourceDecorCodePlaceholder: j = "Start typing the decor code to copy", sourceDecorCodeEmptyMessage: M = "No matching decor codes found.", newDecorCodeValue: N, newDecorCodeLabel: P = "New Decor Code", newDecorCodePlaceholder: F = "Enter the new decor code", copyDecorLabel: I = "Copy to New Decor", copyDecorHelpText: L = "The source decor stays unchanged. The copied record starts as a draft and is not published until it is saved.", copyDecorDisabled: ee = !1, deleteDecorTitle: R = "Delete an entire decor", deleteDecorDescription: te = "Remove a decor and every SKU that belongs to it.", deleteDecorCodeValue: z, deleteDecorCodeLabel: B = "Decor Code to Delete", deleteDecorCodePlaceholder: V = "Enter the decor code to delete", deleteDecorLabel: H = "Delete Entire Decor", deleteDecorHelpText: U = "This is destructive and cannot be undone. The decor and all of its SKUs will be removed.", deleteDecorDisabled: W = !1, retryLabel: G = "Try Again", onDecorCodeChange: ne, onRegionChange: K, onFindDecorClick: q, onCreateNewClick: J, onSourceDecorCodeChange: re, onSourceDecorCodeOptionSelect: ie, onNewDecorCodeChange: ae, onCopyDecorClick: oe, onDeleteDecorCodeChange: se, onDeleteDecorClick: ce, onRetryClick: le }) => {
14548
+ }), Cf = ({ pageTitle: e, pageDescription: t, sideNavProps: n, regionOptions: r, regionValue: i, regionLabel: a = "Region", regionPlaceholder: o = "Select region", regionHelpText: s = "Searches and changes will use product data from this region.", regionDisabled: u = !1, findDecorLabel: f = "Find a decor", createDecorViewLabel: p = "Create a decor", decorCodeValue: m, decorCodeLabel: g = "Decor Code", decorCodePlaceholder: _ = "Enter the new decor code", status: v, statusMessage: y, createNewPrompt: b = "Start with a blank decor", createNewDescription: x = "Enter a decor code that does not yet have a market-readiness record to begin a controlled draft.", createNewLabel: S = "Create Blank Decor", createNewHelpText: C = "Setting up a new decor creates a controlled draft. Nothing is published until the draft is saved.", createNewDisabled: w = !1, copyDecorTitle: T = "Copy an existing decor", copyDecorDescription: E = "Copy an existing decor's market-readiness data into a new decor, then update only the fields that differ.", sourceDecorCodeValue: O, sourceDecorCodeOptions: k = [], sourceDecorCodeLabel: A = "Source Decor Code", sourceDecorCodePlaceholder: j = "Start typing the decor code to copy", sourceDecorCodeEmptyMessage: M = "No matching decor codes found.", newDecorCodeValue: N, newDecorCodeLabel: P = "New Decor Code", newDecorCodePlaceholder: F = "Enter the new decor code", copyDecorLabel: I = "Copy to New Decor", copyDecorHelpText: ee = "The source decor stays unchanged. The copied record starts as a draft and is not published until it is saved.", copyDecorDisabled: te = !1, deleteDecorTitle: L = "Delete an entire decor", deleteDecorDescription: R = "Remove a decor and every SKU that belongs to it.", deleteDecorCodeValue: ne, deleteDecorCodeLabel: z = "Decor Code to Delete", deleteDecorCodePlaceholder: B = "Enter the decor code to delete", deleteDecorLabel: V = "Delete Entire Decor", deleteDecorHelpText: H = "This is destructive and cannot be undone. The decor and all of its SKUs will be removed.", deleteDecorDisabled: U = !1, retryLabel: W = "Try Again", onDecorCodeChange: G, onRegionChange: re, onFindDecorClick: ie, onCreateNewClick: ae, onSourceDecorCodeChange: oe, onSourceDecorCodeOptionSelect: K, onNewDecorCodeChange: se, onCopyDecorClick: q, onDeleteDecorCodeChange: J, onDeleteDecorClick: ce, onRetryClick: le }) => {
14479
14549
  let ue = v === "checking", de = v === "error", fe = !i.trim(), pe = ue || u || fe, me = de ? y?.trim() ?? "" : "";
14480
14550
  return /* @__PURE__ */ l(Yd, {
14481
14551
  pageTitle: e,
@@ -14489,7 +14559,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14489
14559
  helpText: s,
14490
14560
  disabled: u || ue,
14491
14561
  name: "market-readiness-region",
14492
- onChange: K
14562
+ onChange: re
14493
14563
  }),
14494
14564
  children: [
14495
14565
  /* @__PURE__ */ c("div", {
@@ -14505,7 +14575,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14505
14575
  selectedId: "create",
14506
14576
  ariaLabel: "Market readiness view",
14507
14577
  onSelect: (e) => {
14508
- e === "find" && q?.();
14578
+ e === "find" && ie?.();
14509
14579
  }
14510
14580
  })
14511
14581
  }),
@@ -14528,7 +14598,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14528
14598
  }), le ? /* @__PURE__ */ c("div", {
14529
14599
  className: "mt-3",
14530
14600
  children: /* @__PURE__ */ c(D, {
14531
- label: G,
14601
+ label: W,
14532
14602
  variant: "outline",
14533
14603
  intent: "primary",
14534
14604
  size: "sm",
@@ -14565,7 +14635,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14565
14635
  alt: "",
14566
14636
  size: "sm"
14567
14637
  }),
14568
- onChange: (e) => ne({ value: e.target.value })
14638
+ onChange: (e) => G({ value: e.target.value })
14569
14639
  })] }),
14570
14640
  /* @__PURE__ */ c("div", {
14571
14641
  className: "mt-auto pt-5",
@@ -14579,7 +14649,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14579
14649
  intent: "primary",
14580
14650
  fullWidth: !0,
14581
14651
  disabled: w || pe,
14582
- onClick: () => J({ decorCode: m })
14652
+ onClick: () => ae({ decorCode: m })
14583
14653
  })
14584
14654
  }),
14585
14655
  C ? /* @__PURE__ */ c(d, {
@@ -14610,10 +14680,10 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14610
14680
  controlSize: "default",
14611
14681
  disabled: pe,
14612
14682
  emptyMessage: M,
14613
- onQueryChange: re,
14614
- onClear: () => re({ value: "" }),
14683
+ onQueryChange: oe,
14684
+ onClear: () => oe({ value: "" }),
14615
14685
  onOptionSelect: (e) => {
14616
- re({ value: e.option.value }), ie?.(e);
14686
+ oe({ value: e.option.value }), K?.(e);
14617
14687
  }
14618
14688
  })] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
14619
14689
  htmlFor: "market-readiness-copy-new-decor-code",
@@ -14633,7 +14703,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14633
14703
  alt: "",
14634
14704
  size: "sm"
14635
14705
  }),
14636
- onChange: (e) => ae({ value: e.target.value })
14706
+ onChange: (e) => se({ value: e.target.value })
14637
14707
  })] })]
14638
14708
  }),
14639
14709
  /* @__PURE__ */ c("div", {
@@ -14647,35 +14717,35 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14647
14717
  variant: "solid",
14648
14718
  intent: "primary",
14649
14719
  fullWidth: !0,
14650
- disabled: ee || pe,
14651
- onClick: () => oe({
14720
+ disabled: te || pe,
14721
+ onClick: () => q({
14652
14722
  sourceDecorCode: O,
14653
14723
  newDecorCode: N
14654
14724
  })
14655
14725
  })
14656
14726
  }),
14657
- L ? /* @__PURE__ */ c(d, {
14727
+ ee ? /* @__PURE__ */ c(d, {
14658
14728
  variant: "free",
14659
14729
  className: "mt-3 text-xs text-tertiary",
14660
- children: L
14730
+ children: ee
14661
14731
  }) : null
14662
14732
  ]
14663
14733
  }),
14664
14734
  /* @__PURE__ */ l(Sf, {
14665
- title: R,
14666
- description: te,
14735
+ title: L,
14736
+ description: R,
14667
14737
  iconName: "trash-can",
14668
14738
  children: [
14669
14739
  /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
14670
14740
  htmlFor: "market-readiness-delete-decor-code",
14671
14741
  className: "text-sm font-bold text-primary",
14672
- children: B
14742
+ children: z
14673
14743
  }), /* @__PURE__ */ c(Co, {
14674
14744
  id: "market-readiness-delete-decor-code",
14675
14745
  name: "deleteDecorCode",
14676
14746
  type: "search",
14677
- value: z,
14678
- placeholder: V,
14747
+ value: ne,
14748
+ placeholder: B,
14679
14749
  disabled: pe,
14680
14750
  autoComplete: "off",
14681
14751
  leadingIcon: /* @__PURE__ */ c(h, {
@@ -14684,12 +14754,12 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14684
14754
  alt: "",
14685
14755
  size: "sm"
14686
14756
  }),
14687
- onChange: (e) => se({ value: e.target.value })
14757
+ onChange: (e) => J({ value: e.target.value })
14688
14758
  })] }),
14689
14759
  /* @__PURE__ */ c("div", {
14690
14760
  className: "mt-auto pt-5",
14691
14761
  children: /* @__PURE__ */ c(D, {
14692
- label: H,
14762
+ label: V,
14693
14763
  iconType: "fa-solid",
14694
14764
  iconName: "trash-can",
14695
14765
  iconAlt: "",
@@ -14697,14 +14767,14 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14697
14767
  variant: "solid",
14698
14768
  intent: "danger",
14699
14769
  fullWidth: !0,
14700
- disabled: W || pe || !z.trim(),
14701
- onClick: () => ce({ decorCode: z })
14770
+ disabled: U || pe || !ne.trim(),
14771
+ onClick: () => ce({ decorCode: ne })
14702
14772
  })
14703
14773
  }),
14704
- U ? /* @__PURE__ */ c(d, {
14774
+ H ? /* @__PURE__ */ c(d, {
14705
14775
  variant: "free",
14706
14776
  className: "mt-3 text-xs text-accent",
14707
- children: U
14777
+ children: H
14708
14778
  }) : null
14709
14779
  ]
14710
14780
  })
@@ -14712,33 +14782,33 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14712
14782
  })
14713
14783
  ]
14714
14784
  });
14715
- }, wf = ({ pageTitle: e, pageDescription: n, sideNavProps: r, regionOptions: i, regionValue: o, regionLabel: u = "Region", regionPlaceholder: f = "Select region", regionHelpText: p = "Searches and changes will use product data from this region.", regionDisabled: m = !1, findDecorLabel: h = "Find a decor", createDecorLabel: g = "Create a decor", searchValue: v, searchLabel: y = "Search decors", searchPlaceholder: b, searchDisabled: x = !1, rangeOptions: S, selectedRangeId: C, rangePromptTitle: w = "Select a range to view its decors", rangePromptMessage: T = "Choose a range above to load its market-readiness records.", resultCount: E, resultLabel: O = "decors", groups: k, status: A = { state: "ready" }, hasMore: j = !1, loadingMore: M = !1, loadMoreLabel: N = "Load more decors", onRegionChange: P, onCreateDecorClick: F, onSearchChange: I, onSearchSubmit: L, onRangeSelect: ee, onDecorClick: R, onLoadMore: te, onRetryClick: z }) => {
14716
- let B = a(null), V = !o.trim() || m, H = `${E.toLocaleString()} ${O}`, U = k.reduce((e, t) => e + t.items.length, 0), W = S.find((e) => e.id === C), G = b ?? (W ? `Search within ${W.label}` : "Select a range before searching");
14785
+ }, wf = ({ pageTitle: e, pageDescription: n, sideNavProps: r, regionOptions: i, regionValue: o, regionLabel: u = "Region", regionPlaceholder: f = "Select region", regionHelpText: p = "Searches and changes will use product data from this region.", regionDisabled: m = !1, findDecorLabel: h = "Find a decor", createDecorLabel: g = "Create a decor", searchValue: v, searchLabel: y = "Search decors", searchPlaceholder: b, searchDisabled: x = !1, rangeOptions: S, selectedRangeId: C, rangePromptTitle: w = "Select a range to view its decors", rangePromptMessage: T = "Choose a range above to load its market-readiness records.", resultCount: E, resultLabel: O = "decors", groups: k, status: A = { state: "ready" }, hasMore: j = !1, loadingMore: M = !1, loadMoreLabel: N = "Load more decors", onRegionChange: P, onCreateDecorClick: F, onSearchChange: I, onSearchSubmit: ee, onRangeSelect: te, onDecorClick: L, onLoadMore: R, onRetryClick: ne }) => {
14786
+ let z = a(null), B = !o.trim() || m, V = `${E.toLocaleString()} ${O}`, H = k.reduce((e, t) => e + t.items.length, 0), U = S.find((e) => e.id === C), W = b ?? (U ? `Search within ${U.label}` : "Select a range before searching");
14717
14787
  t(() => {
14718
- let e = B.current;
14719
- if (!e || !W || A.state !== "ready" || !j || M || !te || typeof IntersectionObserver > "u") return;
14788
+ let e = z.current;
14789
+ if (!e || !U || A.state !== "ready" || !j || M || !R || typeof IntersectionObserver > "u") return;
14720
14790
  let t = !1, n = new IntersectionObserver((e) => {
14721
- e.some((e) => e.isIntersecting) && !t && (t = !0, te());
14791
+ e.some((e) => e.isIntersecting) && !t && (t = !0, R());
14722
14792
  });
14723
14793
  return n.observe(e), () => n.disconnect();
14724
14794
  }, [
14725
14795
  j,
14726
14796
  M,
14727
- te,
14797
+ R,
14728
14798
  v,
14729
14799
  C,
14730
14800
  A.state
14731
14801
  ]);
14732
- let ne = null;
14733
- return M ? ne = /* @__PURE__ */ c(_, {
14802
+ let G = null;
14803
+ return M ? G = /* @__PURE__ */ c(_, {
14734
14804
  label: "Loading more decors",
14735
14805
  size: "md"
14736
- }) : j && (ne = /* @__PURE__ */ c(D, {
14806
+ }) : j && (G = /* @__PURE__ */ c(D, {
14737
14807
  label: N,
14738
14808
  variant: "outline",
14739
14809
  intent: "primary",
14740
- disabled: !te,
14741
- onClick: te
14810
+ disabled: !R,
14811
+ onClick: R
14742
14812
  })), /* @__PURE__ */ c(Yd, {
14743
14813
  pageTitle: e,
14744
14814
  pageDescription: n,
@@ -14778,33 +14848,33 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14778
14848
  name: "decorSearch",
14779
14849
  ariaLabel: y,
14780
14850
  value: v,
14781
- placeholder: G,
14851
+ placeholder: W,
14782
14852
  controlSize: "default",
14783
- disabled: x || V || !W,
14853
+ disabled: x || B || !U,
14784
14854
  onChange: (e) => I({ value: e.target.value }),
14785
14855
  onClear: () => I({ value: "" }),
14786
- onSearchSubmit: L
14856
+ onSearchSubmit: ee
14787
14857
  }), /* @__PURE__ */ c("div", {
14788
14858
  className: "mt-3",
14789
14859
  children: /* @__PURE__ */ c(ho, {
14790
14860
  ranges: S,
14791
14861
  selectedRangeId: C,
14792
- disabled: V,
14793
- onRangeSelect: ee
14862
+ disabled: B,
14863
+ onRangeSelect: te
14794
14864
  })
14795
14865
  })]
14796
14866
  }),
14797
- W ? /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ l("div", {
14867
+ U ? /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ l("div", {
14798
14868
  className: "mt-6 flex items-center justify-between gap-4",
14799
14869
  children: [/* @__PURE__ */ c(d, {
14800
14870
  as: "h2",
14801
14871
  variant: "free",
14802
14872
  className: "text-lg font-bold text-primary",
14803
- children: W.label
14873
+ children: U.label
14804
14874
  }), /* @__PURE__ */ c(d, {
14805
14875
  variant: "free",
14806
14876
  className: "text-sm font-bold text-tertiary",
14807
- children: H
14877
+ children: V
14808
14878
  })]
14809
14879
  }), A.state === "ready" ? /* @__PURE__ */ c("div", {
14810
14880
  className: "mt-5",
@@ -14812,32 +14882,32 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14812
14882
  groups: k,
14813
14883
  itemLabel: O,
14814
14884
  showGroupHeaders: !1,
14815
- onDecorClick: V ? void 0 : R
14885
+ onDecorClick: B ? void 0 : L
14816
14886
  })
14817
14887
  }) : /* @__PURE__ */ c(Qd, {
14818
14888
  status: A,
14819
- onRetryClick: z
14889
+ onRetryClick: ne
14820
14890
  })] }) : /* @__PURE__ */ c(Qd, { status: {
14821
14891
  state: "empty",
14822
14892
  title: w,
14823
14893
  message: T
14824
14894
  } }),
14825
- W && A.state === "ready" && (U > 0 || j) ? /* @__PURE__ */ l("div", {
14826
- ref: B,
14895
+ U && A.state === "ready" && (H > 0 || j) ? /* @__PURE__ */ l("div", {
14896
+ ref: z,
14827
14897
  className: "mt-6 flex flex-col items-center gap-3 border-t border-borderTertiary pt-5",
14828
14898
  children: [/* @__PURE__ */ l(d, {
14829
14899
  variant: "free",
14830
14900
  className: "text-sm text-tertiary",
14831
14901
  children: [
14832
14902
  "Showing ",
14833
- U.toLocaleString(),
14903
+ H.toLocaleString(),
14834
14904
  " of",
14835
14905
  " ",
14836
14906
  E.toLocaleString(),
14837
14907
  " ",
14838
14908
  O
14839
14909
  ]
14840
- }), ne]
14910
+ }), G]
14841
14911
  }) : null
14842
14912
  ]
14843
14913
  })
@@ -14942,11 +15012,11 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14942
15012
  primaryActionIconName: t === "safe" ? "wand-magic-sparkles" : "magnifying-glass",
14943
15013
  primaryActionVariant: t === "safe" ? "solid" : "outline"
14944
15014
  };
14945
- }), Bf = ({ pageTitle: e, pageDescription: t, lastScanLabel: n, recalculateLabel: r = "Recalculate", recalculateStatus: i = "idle", updateCacheLabel: a = "Update Cache", updateCacheStatus: o = "idle", deleteAndRebuildLabel: u = "Delete and Rebuild", changeProductDataLabel: f = "Change Product Data", sideNavProps: p, status: m = { state: "ready" }, dataIssuesResponse: g, dataHealthSummaryCardProps: _, metricCardProps: v, issueTypeBreakdownCardProps: y, recommendedNextStepCardProps: b, issueActionCardProps: x, cacheActions: S, rebuildConfirmation: C, resolveDialog: w, onRetryClick: T, onRecalculateClick: E, onChangeProductDataClick: O, onUpdateCacheClick: k, onDeleteAndRebuildClick: A, onRebuildConfirm: j, onRebuildCancel: M, onResolveConfirm: N, onResolveClose: P, onResolveRetry: F, onIssuePrimaryActionClick: I, onIssueSecondaryActionClick: L }) => {
14946
- let ee = t?.trim() ?? "", R = g?.report ?? g?.dataSource?.latestReport, te = n?.trim() ?? (R ? `Report generated: ${Df(R.generatedAt)}` : ""), z = _ ?? (R ? Nf(R) : null), B = v ?? (R ? Pf(R) : []), V = y ?? (R ? Ff(R) : null), H = b ?? (R ? If(R) : null), U = x ?? (R ? zf(R) : []), W = B.length <= 1 ? "md:col-span-2" : "md:col-span-1", G = o === "required", ne = /* @__PURE__ */ l("div", {
15015
+ }), Bf = ({ pageTitle: e, pageDescription: t, lastScanLabel: n, recalculateLabel: r = "Recalculate", recalculateStatus: i = "idle", updateCacheLabel: a = "Update Cache", updateCacheStatus: o = "idle", deleteAndRebuildLabel: u = "Delete and Rebuild", changeProductDataLabel: f = "Change Product Data", sideNavProps: p, status: m = { state: "ready" }, dataIssuesResponse: g, dataHealthSummaryCardProps: _, metricCardProps: v, issueTypeBreakdownCardProps: y, recommendedNextStepCardProps: b, issueActionCardProps: x, cacheActions: S, rebuildConfirmation: C, resolveDialog: w, onRetryClick: T, onRecalculateClick: E, onChangeProductDataClick: O, onUpdateCacheClick: k, onDeleteAndRebuildClick: A, onRebuildConfirm: j, onRebuildCancel: M, onResolveConfirm: N, onResolveClose: P, onResolveRetry: F, onIssuePrimaryActionClick: I, onIssueSecondaryActionClick: ee }) => {
15016
+ let te = t?.trim() ?? "", L = g?.report ?? g?.dataSource?.latestReport, R = n?.trim() ?? (L ? `Report generated: ${Df(L.generatedAt)}` : ""), ne = _ ?? (L ? Nf(L) : null), z = v ?? (L ? Pf(L) : []), B = y ?? (L ? Ff(L) : null), V = b ?? (L ? If(L) : null), H = x ?? (L ? zf(L) : []), U = z.length <= 1 ? "md:col-span-2" : "md:col-span-1", W = o === "required", G = /* @__PURE__ */ l("div", {
14947
15017
  className: "flex flex-wrap items-center gap-3",
14948
15018
  children: [
14949
- te ? /* @__PURE__ */ l("div", {
15019
+ R ? /* @__PURE__ */ l("div", {
14950
15020
  className: "flex items-center gap-2 text-primary",
14951
15021
  children: [/* @__PURE__ */ c(h, {
14952
15022
  iconType: "fa-regular",
@@ -14956,7 +15026,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14956
15026
  }), /* @__PURE__ */ c(d, {
14957
15027
  variant: "free",
14958
15028
  className: "text-sm text-primary",
14959
- children: te
15029
+ children: R
14960
15030
  })]
14961
15031
  }) : null,
14962
15032
  E ? /* @__PURE__ */ c(D, {
@@ -14979,13 +15049,13 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14979
15049
  onClick: O
14980
15050
  }) : null
14981
15051
  ]
14982
- }), K = !S && (k || A) ? /* @__PURE__ */ l("div", {
15052
+ }), re = !S && (k || A) ? /* @__PURE__ */ l("div", {
14983
15053
  "aria-label": "Data issue cache actions",
14984
15054
  className: "mt-5 flex flex-wrap gap-2",
14985
15055
  children: [/* @__PURE__ */ c(D, {
14986
15056
  label: a,
14987
- variant: G ? "solid" : "outline",
14988
- intent: G ? "accent" : "primary",
15057
+ variant: W ? "solid" : "outline",
15058
+ intent: W ? "accent" : "primary",
14989
15059
  size: "sm",
14990
15060
  onClick: k
14991
15061
  }), /* @__PURE__ */ c(D, {
@@ -14999,9 +15069,9 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
14999
15069
  return /* @__PURE__ */ l(s, { children: [
15000
15070
  /* @__PURE__ */ c(Yd, {
15001
15071
  pageTitle: e,
15002
- pageDescription: ee,
15072
+ pageDescription: te,
15003
15073
  sideNavProps: p,
15004
- headerActions: ne,
15074
+ headerActions: G,
15005
15075
  children: m.state === "ready" ? /* @__PURE__ */ l(s, { children: [
15006
15076
  S ? /* @__PURE__ */ l("section", {
15007
15077
  "aria-label": "Data issue cache actions",
@@ -15031,8 +15101,8 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
15031
15101
  iconType: "fa-solid",
15032
15102
  iconName: S.status === "pending" ? "spinner" : "rotate",
15033
15103
  iconAlt: "",
15034
- variant: G ? "solid" : "outline",
15035
- intent: G ? "accent" : "primary",
15104
+ variant: W ? "solid" : "outline",
15105
+ intent: W ? "accent" : "primary",
15036
15106
  size: "sm",
15037
15107
  disabled: S.updateDisabled || S.status === "pending",
15038
15108
  "aria-busy": S.status === "pending" || void 0,
@@ -15049,37 +15119,37 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
15049
15119
  onClick: A
15050
15120
  })]
15051
15121
  })]
15052
- }) : K,
15122
+ }) : re,
15053
15123
  /* @__PURE__ */ l("section", {
15054
15124
  "aria-label": "Data issue summary",
15055
15125
  className: "mt-5 grid gap-4 md:grid-cols-4",
15056
15126
  children: [
15057
- z ? /* @__PURE__ */ c("div", {
15127
+ ne ? /* @__PURE__ */ c("div", {
15058
15128
  className: "h-full md:col-span-1",
15059
- children: /* @__PURE__ */ c(gs, { ...z })
15129
+ children: /* @__PURE__ */ c(gs, { ...ne })
15060
15130
  }) : null,
15061
- B.map((e) => /* @__PURE__ */ c(ys, { ...e }, e.label)),
15062
- V ? /* @__PURE__ */ c("div", {
15063
- className: `h-full ${W}`,
15064
- children: /* @__PURE__ */ c(ws, { ...V })
15131
+ z.map((e) => /* @__PURE__ */ c(ys, { ...e }, e.label)),
15132
+ B ? /* @__PURE__ */ c("div", {
15133
+ className: `h-full ${U}`,
15134
+ children: /* @__PURE__ */ c(ws, { ...B })
15065
15135
  }) : null
15066
15136
  ]
15067
15137
  }),
15068
- H ? /* @__PURE__ */ c("div", {
15138
+ V ? /* @__PURE__ */ c("div", {
15069
15139
  className: "mt-5",
15070
15140
  children: /* @__PURE__ */ c(ks, {
15071
- ...H,
15072
- recalculating: i === "pending" || H.recalculating,
15073
- onRecalculateClick: H.onRecalculateClick ?? E
15141
+ ...V,
15142
+ recalculating: i === "pending" || V.recalculating,
15143
+ onRecalculateClick: V.onRecalculateClick ?? E
15074
15144
  })
15075
15145
  }) : null,
15076
15146
  /* @__PURE__ */ c("section", {
15077
15147
  "aria-label": "Data issue actions",
15078
15148
  className: "mt-4 space-y-3",
15079
- children: U.map((e) => /* @__PURE__ */ c(Ss, {
15149
+ children: H.map((e) => /* @__PURE__ */ c(Ss, {
15080
15150
  ...e,
15081
15151
  onPrimaryActionClick: e.onPrimaryActionClick ?? I,
15082
- onSecondaryActionClick: e.onSecondaryActionClick ?? L
15152
+ onSecondaryActionClick: e.onSecondaryActionClick ?? ee
15083
15153
  }, e.id))
15084
15154
  })
15085
15155
  ] }) : /* @__PURE__ */ c(Qd, {
@@ -15346,8 +15416,8 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
15346
15416
  children: e.latestReport.label
15347
15417
  })] }) : null
15348
15418
  ]
15349
- }), Kf = ({ pageTitle: e, pageDescription: t, sideNavProps: n, status: r = { state: "ready" }, dataSource: i, existingDataTitle: o = "Continue with saved data", existingDataEmptyTitle: u = "No saved data set yet", existingDataEmptyDescription: f = "Start by uploading a Salsify report or downloading the latest data directly from Salsify.", useExistingDataLabel: p = "Use Saved Data", uploadTitle: m = "Upload a Salsify report", uploadDescription: g = "Use a report exported from Salsify when you already have the file ready.", uploadDropLabel: _ = "Drag a report file here", uploadBrowseLabel: v = "Select File", uploadHelpText: y = "JSON exports from Salsify are supported.", selectedFile: b, uploadStatus: x = "idle", uploadStatusMessage: S, uploadLabel: C = "Upload Report", uploadDisabled: w = !1, clearFileLabel: T = "Clear File", directDownloadTitle: E = "Download from Salsify", directDownloadDescription: O = "Choose a product range and Data Forge will request the latest records for you.", rangeLabel: k = "Product Range", rangePlaceholder: A = "Select a range", rangeOptions: j, selectedRangeValue: M = "", directDownloadLabel: N = "Download Latest Data", downloadStatus: P = "idle", downloadStatusMessage: F, downloadDisabled: I = !1, onUseExistingDataClick: L, onReportFileSelect: ee, onUploadClick: R, onClearSelectedFileClick: te, onRangeChange: z, onDirectDownloadClick: B, onRetryClick: V }) => {
15350
- let H = a(null), U = x === "pending", W = P === "pending", G = (e) => ee?.({ files: Array.from(e ?? []) });
15419
+ }), Kf = ({ pageTitle: e, pageDescription: t, sideNavProps: n, status: r = { state: "ready" }, dataSource: i, existingDataTitle: o = "Continue with saved data", existingDataEmptyTitle: u = "No saved data set yet", existingDataEmptyDescription: f = "Start by uploading a Salsify report or downloading the latest data directly from Salsify.", useExistingDataLabel: p = "Use Saved Data", uploadTitle: m = "Upload a Salsify report", uploadDescription: g = "Use a report exported from Salsify when you already have the file ready.", uploadDropLabel: _ = "Drag a report file here", uploadBrowseLabel: v = "Select File", uploadHelpText: y = "JSON exports from Salsify are supported.", selectedFile: b, uploadStatus: x = "idle", uploadStatusMessage: S, uploadLabel: C = "Upload Report", uploadDisabled: w = !1, clearFileLabel: T = "Clear File", directDownloadTitle: E = "Download from Salsify", directDownloadDescription: O = "Choose a product range and Data Forge will request the latest records for you.", rangeLabel: k = "Product Range", rangePlaceholder: A = "Select a range", rangeOptions: j, selectedRangeValue: M = "", directDownloadLabel: N = "Download Latest Data", downloadStatus: P = "idle", downloadStatusMessage: F, downloadDisabled: I = !1, onUseExistingDataClick: ee, onReportFileSelect: te, onUploadClick: L, onClearSelectedFileClick: R, onRangeChange: ne, onDirectDownloadClick: z, onRetryClick: B }) => {
15420
+ let V = a(null), H = x === "pending", U = P === "pending", W = (e) => te?.({ files: Array.from(e ?? []) });
15351
15421
  return /* @__PURE__ */ c(Yd, {
15352
15422
  pageTitle: e,
15353
15423
  pageDescription: t,
@@ -15371,7 +15441,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
15371
15441
  variant: "solid",
15372
15442
  intent: "primary",
15373
15443
  fullWidth: !0,
15374
- onClick: L
15444
+ onClick: ee
15375
15445
  })
15376
15446
  })] }) : /* @__PURE__ */ c("div", {
15377
15447
  className: "rounded-md border border-dashed border-borderTertiary bg-adminSideNavBackground p-4",
@@ -15391,7 +15461,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
15391
15461
  className: "flex min-h-40 flex-col items-center justify-center rounded-lg border border-dashed border-secondaryActive bg-adminSideNavBackground p-5 text-center transition hover:border-primary",
15392
15462
  onDragOver: (e) => e.preventDefault(),
15393
15463
  onDrop: (e) => {
15394
- e.preventDefault(), G(e.dataTransfer.files);
15464
+ e.preventDefault(), W(e.dataTransfer.files);
15395
15465
  },
15396
15466
  children: [
15397
15467
  /* @__PURE__ */ c(h, {
@@ -15421,17 +15491,17 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
15421
15491
  variant: "outline",
15422
15492
  intent: "primary",
15423
15493
  size: "sm",
15424
- disabled: U,
15425
- onClick: () => H.current?.click()
15494
+ disabled: H,
15495
+ onClick: () => V.current?.click()
15426
15496
  })
15427
15497
  }),
15428
15498
  /* @__PURE__ */ c("input", {
15429
- ref: H,
15499
+ ref: V,
15430
15500
  id: "salsify-report-upload",
15431
15501
  type: "file",
15432
15502
  className: "sr-only",
15433
- disabled: U,
15434
- onChange: (e) => G(e.target.files)
15503
+ disabled: H,
15504
+ onChange: (e) => W(e.target.files)
15435
15505
  })
15436
15506
  ]
15437
15507
  }),
@@ -15469,8 +15539,8 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
15469
15539
  variant: "outline",
15470
15540
  intent: "primary",
15471
15541
  size: "sm",
15472
- disabled: U,
15473
- onClick: te
15542
+ disabled: H,
15543
+ onClick: R
15474
15544
  }), /* @__PURE__ */ c(D, {
15475
15545
  label: C,
15476
15546
  iconType: "fa-solid",
@@ -15479,9 +15549,9 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
15479
15549
  variant: "solid",
15480
15550
  intent: "primary",
15481
15551
  size: "sm",
15482
- disabled: w || U,
15483
- "aria-busy": U || void 0,
15484
- onClick: R
15552
+ disabled: w || H,
15553
+ "aria-busy": H || void 0,
15554
+ onClick: L
15485
15555
  })]
15486
15556
  })]
15487
15557
  }) : null,
@@ -15508,8 +15578,8 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
15508
15578
  value: M,
15509
15579
  placeholder: A,
15510
15580
  options: j,
15511
- disabled: W,
15512
- onChange: (e) => z?.({ value: e.target.value })
15581
+ disabled: U,
15582
+ onChange: (e) => ne?.({ value: e.target.value })
15513
15583
  })]
15514
15584
  }),
15515
15585
  /* @__PURE__ */ c("div", {
@@ -15522,9 +15592,9 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
15522
15592
  variant: "solid",
15523
15593
  intent: "primary",
15524
15594
  fullWidth: !0,
15525
- disabled: I || W,
15526
- "aria-busy": W || void 0,
15527
- onClick: B
15595
+ disabled: I || U,
15596
+ "aria-busy": U || void 0,
15597
+ onClick: z
15528
15598
  })
15529
15599
  }),
15530
15600
  /* @__PURE__ */ c(Wf, {
@@ -15536,7 +15606,7 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
15536
15606
  ]
15537
15607
  }) : /* @__PURE__ */ c(Qd, {
15538
15608
  status: r,
15539
- onRetryClick: V
15609
+ onRetryClick: B
15540
15610
  })
15541
15611
  });
15542
15612
  }, qf = (e) => new Intl.NumberFormat("en-US").format(e), Jf = (e) => e.split("-").filter(Boolean).map((e) => `${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(" "), Yf = (e, t, n) => n === 0 ? "0 groups" : `${qf(e + 1)}-${qf(e + Math.min(t, n))}`, Xf = (e) => ({
@@ -16542,4 +16612,4 @@ var $u = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
16542
16612
  });
16543
16613
  };
16544
16614
  //#endregion
16545
- export { Bu as AccountAccessPanel, xf as AdminAuthStatusTemplate, mf as AdminDashboardTemplate, Kf as AdminDataIssuesSourceTemplate, Bf as AdminDataIssuesTemplate, Tf as AdminDataReportTemplate, Zf as AdminIssueGroupReviewTemplate, Yd as AdminPageTemplateShell, tp as AdminProductGuidesTemplate, mo as AdminRegionSelector, Qs as AdminSideNav, vf as AdminUsersTemplate, Zc as AnnouncementBar, Gl as ArticleBanner, Uo as ArticleBannerContent, sd as ArticleLandingPageTemplate, Pd as BpcsCartConfirmationTemplate, zd as BpcsCartSamplesTemplate, Rd as BpcsCartShippingTemplate, Bc as BrandNavBar, Qc as Breadcrumbs, K as BusinessInfoCard, D as Button, ll as CallToActionHero, Wo as CallToActionHeroContent, Oo as CarouselArrowControls, ko as CarouselDots, re as CartItemCard, _d as CategoryPageTemplate, ae as ClickableCard, ns as ColourMatchingChart, gl as ColumnBanner, io as ColumnCarouselCard, Mu as CommerceSyncPanel, Kl as ContentCarousel, R as ContentContainer, B as ContentGrid, fo as CountrySelector, np as CustomerAccountFavoritesTemplate, cp as CustomerAccountOrderDetailTemplate, ip as CustomerAccountOrderHistoryTemplate, rp as CustomerAccountSettingsTemplate, Vu as CustomerAccountShell, Xs as CustomerAddressCard, gs as DataHealthSummaryCard, Ss as DataIssueActionCard, ys as DataIssueMetricCard, gu as DataReportCollection, se as DecorSummaryCard, _u as DecorSummaryCollection, Xo as DocumentLinkCard, So as DropdownFilter, fc as DynamicForm, Bd as EcommCartConfirmationTemplate, Ud as EcommCartPaymentTemplate, Wd as EcommCartShippingTemplate, Jd as EcommCartSummaryTemplate, M as EmbeddedVideo, Yo as EmbeddedVideoCard, Zo as FaqCard, tu as FaqCardCollection, ao as FeatureCard, bl as FeatureCardCollection, ul as FeaturedArticleBanner, Go as FeaturedArticleBannerContent, oo as FeaturedProductCard, $l as FeaturedProductsCarousel, go as FilterBar, _o as FilterBarButton, W as FlowRow, al as Footer, d as FormicaText, yd as GalleryTemplate, h as Icon, A as Image, ql as ImageCard, Jo as ImageOverlayCard, iu as ImageOverlayGrid, Qo as InfoCard, Ts as IssueGroupQueueSummaryCard, Os as IssueGroupReviewCard, Ds as IssueRecordCandidateCard, ws as IssueTypeBreakdownCard, su as LocalizationMarketCollection, Ks as LocalizationStatusCard, uo as LocationCard, ou as LocationCardCollection, Cu as LocationMap, Ed as LoginTemplate, wf as MarketReadinessBrowseTemplate, Cf as MarketReadinessLandingTemplate, ho as MarketReadinessRangeSelector, lf as MarketReadinessTemplate, Ms as MessageListCard, mc as Modal, $o as MoreInfoHighlightsCard, xl as MoreInfoHighlightsCollection, xd as ProResourceTemplate, ie as ProductContactActions, ad as ProductDetailPageTemplate, pf as ProductJourneyTemplate, is as QuantityCheckoutCard, fs as RecentArticleCard, eu as RecentArticleCollection, ks as RecommendedNextStepCard, P as ResilientImage, Sl as SampleOrderSummaryPanel, Do as SearchCombobox, Eo as SearchFilter, Td as SearchResultsTemplate, ps as SingleButtonCard, qo as SocialLinkRow, _ as Spinner, sl as StandardBannerContainer, Bo as StandardCarousel, Ko as StandardCopyBannerContent, Wl as StandardCopyHero, Ps as StatusFlowActionCard, zs as StatusFlowConnector, wu as StatusFlowDiagram, Tu as StatusFlowGroup, Hs as StatusFlowLegendCard, Du as StatusFlowPanel, Ws as StatusSummaryCard, Ys as SwatchCard, Ul as SwatchPurchasePanel, Zl as TextCard, F as Textarea, Jc as TopNavAccountDrawer, Gc as TopNavActions, Xc as TopNavBar, Vc as TopNavMegaMenu, Uc as TopNavSearchResults, Iu as VerticalCheckboxListCollection, Ho as VerticalColorSwatchList, Ql as WarrantyCard, cl as WhereToBuySearchBanner, Od as WhereToBuyTemplate, Lu as userTypeOptions };
16615
+ export { Bu as AccountAccessPanel, xf as AdminAuthStatusTemplate, mf as AdminDashboardTemplate, Kf as AdminDataIssuesSourceTemplate, Bf as AdminDataIssuesTemplate, Tf as AdminDataReportTemplate, Zf as AdminIssueGroupReviewTemplate, Yd as AdminPageTemplateShell, tp as AdminProductGuidesTemplate, mo as AdminRegionSelector, Qs as AdminSideNav, vf as AdminUsersTemplate, Zc as AnnouncementBar, Gl as ArticleBanner, Uo as ArticleBannerContent, sd as ArticleLandingPageTemplate, Pd as BpcsCartConfirmationTemplate, zd as BpcsCartSamplesTemplate, Rd as BpcsCartShippingTemplate, Bc as BrandNavBar, Qc as Breadcrumbs, re as BusinessInfoCard, D as Button, ll as CallToActionHero, Wo as CallToActionHeroContent, Oo as CarouselArrowControls, ko as CarouselDots, oe as CartItemCard, _d as CategoryPageTemplate, se as ClickableCard, ns as ColourMatchingChart, gl as ColumnBanner, io as ColumnCarouselCard, Mu as CommerceSyncPanel, Kl as ContentCarousel, L as ContentContainer, z as ContentGrid, fo as CountrySelector, np as CustomerAccountFavoritesTemplate, cp as CustomerAccountOrderDetailTemplate, ip as CustomerAccountOrderHistoryTemplate, rp as CustomerAccountSettingsTemplate, Vu as CustomerAccountShell, Xs as CustomerAddressCard, gs as DataHealthSummaryCard, Ss as DataIssueActionCard, ys as DataIssueMetricCard, gu as DataReportCollection, J as DecorSummaryCard, _u as DecorSummaryCollection, Xo as DocumentLinkCard, So as DropdownFilter, fc as DynamicForm, Bd as EcommCartConfirmationTemplate, Ud as EcommCartPaymentTemplate, Wd as EcommCartShippingTemplate, Jd as EcommCartSummaryTemplate, M as EmbeddedVideo, Yo as EmbeddedVideoCard, Zo as FaqCard, tu as FaqCardCollection, ao as FeatureCard, bl as FeatureCardCollection, ul as FeaturedArticleBanner, Go as FeaturedArticleBannerContent, oo as FeaturedProductCard, $l as FeaturedProductsCarousel, go as FilterBar, _o as FilterBarButton, U as FlowRow, al as Footer, d as FormicaText, yd as GalleryTemplate, h as Icon, A as Image, ql as ImageCard, Jo as ImageOverlayCard, iu as ImageOverlayGrid, Qo as InfoCard, Ts as IssueGroupQueueSummaryCard, Os as IssueGroupReviewCard, Ds as IssueRecordCandidateCard, ws as IssueTypeBreakdownCard, su as LocalizationMarketCollection, Ks as LocalizationStatusCard, uo as LocationCard, ou as LocationCardCollection, Cu as LocationMap, Ed as LoginTemplate, wf as MarketReadinessBrowseTemplate, Cf as MarketReadinessLandingTemplate, ho as MarketReadinessRangeSelector, lf as MarketReadinessTemplate, Ms as MessageListCard, mc as Modal, $o as MoreInfoHighlightsCard, xl as MoreInfoHighlightsCollection, xd as ProResourceTemplate, K as ProductContactActions, ad as ProductDetailPageTemplate, pf as ProductJourneyTemplate, is as QuantityCheckoutCard, fs as RecentArticleCard, eu as RecentArticleCollection, ks as RecommendedNextStepCard, P as ResilientImage, Sl as SampleOrderSummaryPanel, Do as SearchCombobox, Eo as SearchFilter, Td as SearchResultsTemplate, ps as SingleButtonCard, qo as SocialLinkRow, _ as Spinner, sl as StandardBannerContainer, Bo as StandardCarousel, Ko as StandardCopyBannerContent, Wl as StandardCopyHero, Ps as StatusFlowActionCard, zs as StatusFlowConnector, wu as StatusFlowDiagram, Tu as StatusFlowGroup, Hs as StatusFlowLegendCard, Du as StatusFlowPanel, Ws as StatusSummaryCard, Ys as SwatchCard, Ul as SwatchPurchasePanel, Zl as TextCard, F as Textarea, Jc as TopNavAccountDrawer, Gc as TopNavActions, Xc as TopNavBar, Vc as TopNavMegaMenu, Uc as TopNavSearchResults, Iu as VerticalCheckboxListCollection, Ho as VerticalColorSwatchList, Ql as WarrantyCard, cl as WhereToBuySearchBanner, Od as WhereToBuyTemplate, Lu as userTypeOptions };