@caseparts-org/caseblocks 0.0.299 → 0.0.300

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.
@@ -0,0 +1,40 @@
1
+ import './assets/Cart.css';const t = "_cartIconButton_1xng9_2", n = "_splash_1xng9_15", o = "_splashRay_1xng9_24", e = "_count_1xng9_53", a = "_cartContainer_1xng9_71", i = "_headerWrapper_1xng9_83", _ = "_header_1xng9_83", c = "_cartItems_1xng9_101", r = "_cartItem_1xng9_101", s = "_cartItemContent_1xng9_120", m = "_carItemSeparator_1xng9_132", g = "_itemContainer_1xng9_136", d = "_topRow_1xng9_140", I = "_itemInfo_1xng9_147", l = "_unitDetails_1xng9_153", x = "_editUnit_1xng9_157", p = "_purchaseInformation_1xng9_173", u = "_availabilitySlot_1xng9_179", h = "_priceSlot_1xng9_186", A = "_itemManagement_1xng9_188", C = "_itemImage_1xng9_201", v = "_removeItem_1xng9_204", R = "_cartItemAdmonitionsPanel_1xng9_213", S = "_admonitionsPanelCollapsed_1xng9_218", T = "_cartItemAdmonitionsTrigger_1xng9_223", y = "_cartItemAdmonitionHeader_1xng9_235", b = "_admonitionsReveal_1xng9_243", f = "_admonitionsRevealExpanded_1xng9_248", B = "_cartItemAdmonitions_1xng9_213", E = "_admonitionTriggerIconExpanded_1xng9_254", P = "_admonitionTriggerIcon_1xng9_254", k = "_cartItemAdmonitionContent_1xng9_267", w = "_noItems_1xng9_277", D = "_subtotal_1xng9_284", H = "_checkoutButton_1xng9_291", M = {
2
+ cartIconButton: t,
3
+ splash: n,
4
+ splashRay: o,
5
+ count: e,
6
+ cartContainer: a,
7
+ headerWrapper: i,
8
+ header: _,
9
+ cartItems: c,
10
+ cartItem: r,
11
+ cartItemContent: s,
12
+ carItemSeparator: m,
13
+ itemContainer: g,
14
+ topRow: d,
15
+ itemInfo: I,
16
+ unitDetails: l,
17
+ editUnit: x,
18
+ purchaseInformation: p,
19
+ availabilitySlot: u,
20
+ priceSlot: h,
21
+ itemManagement: A,
22
+ itemImage: C,
23
+ removeItem: v,
24
+ cartItemAdmonitionsPanel: R,
25
+ admonitionsPanelCollapsed: S,
26
+ cartItemAdmonitionsTrigger: T,
27
+ cartItemAdmonitionHeader: y,
28
+ admonitionsReveal: b,
29
+ admonitionsRevealExpanded: f,
30
+ cartItemAdmonitions: B,
31
+ admonitionTriggerIconExpanded: E,
32
+ admonitionTriggerIcon: P,
33
+ cartItemAdmonitionContent: k,
34
+ noItems: w,
35
+ subtotal: D,
36
+ checkoutButton: H
37
+ };
38
+ export {
39
+ M as s
40
+ };
@@ -1 +1 @@
1
- ._cartIconButton_mm7xe_2{position:relative;border:none;padding:0;margin:0;background-color:transparent;cursor:pointer;color:#000;transition:color .3s ease,transform .3s ease}._cartIconButton_mm7xe_2:hover{color:var(--color-brand-primary-primary-teal-blue)}._splash_mm7xe_15{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}@media (prefers-reduced-motion: reduce){._splash_mm7xe_15{display:none}}._splashRay_mm7xe_23{position:absolute;width:20%;height:2px;border-radius:999px;background-color:var(--color-brand-primary-primary-teal-blue);transform-origin:left center;animation:_cartSplash_mm7xe_1 .6s ease-out forwards}._splashRay_mm7xe_23:nth-child(1){left:50%;top:0;transform:rotate(-90deg)}._splashRay_mm7xe_23:nth-child(2){left:23%;top:10%;transform:rotate(-145deg)}._splashRay_mm7xe_23:nth-child(3){left:77%;top:10%;transform:rotate(-35deg)}@keyframes _cartSplash_mm7xe_1{0%{clip-path:inset(0 100% 0 0)}40%{clip-path:inset(0 0 0 0)}to{clip-path:inset(0 0 0 100%)}}._count_mm7xe_52{position:absolute;top:0;left:14px;border-radius:1rem;min-width:18px;height:18px;box-sizing:border-box;padding-inline:2px;display:flex;flex-direction:row;align-items:center;justify-content:center;white-space:nowrap;background-color:var(--color-brand-primary-primary-tangerine);color:var(--color-neutrals-neutral-1);font-weight:var(--font-weight-semibold)}._cartContainer_mm7xe_70{background-color:#f9f9f9;height:100vh;width:100%;min-width:320px;max-width:375px;box-sizing:border-box;display:grid;grid-template-rows:auto auto 1fr auto auto;gap:var(--spacing-1);padding:var(--spacing-1)}._headerWrapper_mm7xe_82{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._headerWrapper_mm7xe_82>button{padding:0;margin:0;background-color:transparent;border:none}._header_mm7xe_82{display:flex;flex-direction:column;align-items:flex-start;width:100%}._cartItems_mm7xe_100{height:100%;overflow-y:auto;overflow-x:hidden}._cartItems_mm7xe_100 ul{margin:0;padding:0;display:flex;flex-direction:column;gap:var(--spacing-spacing-1xs)}._cartItem_mm7xe_100{background-color:#fff;border:1px solid var(--color-neutrals-neutral-2);border-radius:var(--border-radius-sm);box-shadow:0 2px 4px #00000014}._cartItemContent_mm7xe_119{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--spacing-spacing-2xs);align-items:start;box-sizing:border-box;position:relative;list-style:none;margin:0;padding:var(--spacing-spacing-2xs);width:100%}._carItemSeparator_mm7xe_131{width:100%;border-bottom:1px solid var(--border-border-primary)}._itemContainer_mm7xe_135{display:grid;gap:var(--spacing-spacing-3xs)}._topRow_mm7xe_139{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:var(--spacing-spacing-4xs)}._itemInfo_mm7xe_146{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-4xs)}._unitDetails_mm7xe_152{min-width:0;width:100%}._editUnit_mm7xe_156{display:flex;align-items:center;text-align:start;gap:var(--spacing-spacing-3xs);border:none;background-color:transparent;padding:0;margin:0;cursor:pointer;color:var(--text-text-links);word-wrap:break-word;font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold)}._purchaseInformation_mm7xe_172{display:flex;flex-direction:column;align-items:flex-end;gap:var(--spacing-spacing-3xs)}._availabilitySlot_mm7xe_178{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}._itemManagement_mm7xe_187{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}._cartItem_mm7xe_100 p{margin:0;padding:0;word-wrap:break-word;white-space:normal;overflow-wrap:break-word}._itemImage_mm7xe_200{object-fit:contain}._removeItem_mm7xe_203{border:none;background-color:transparent;padding:0;margin:0;cursor:pointer;width:min-content;height:min-content}._cartItemAdmonitionsPanel_mm7xe_212{padding:var(--spacing-spacing-2xs);display:grid;gap:var(--spacing-spacing-2xs)}._admonitionsPanelCollapsed_mm7xe_217{padding-block:var(--spacing-spacing-3xs);gap:0}._cartItemAdmonitionsTrigger_mm7xe_222{border:none;background-color:transparent;outline:none;margin:0;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:space-between}._cartItemAdmonitionHeader_mm7xe_234{display:inline-flex;align-items:center;gap:var(--spacing-spacing-4xs)}._cartItemAdmonitionHeader_mm7xe_234>span{text-align:start}._admonitionsReveal_mm7xe_242{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s ease-in}._admonitionsRevealExpanded_mm7xe_247{grid-template-rows:1fr}._admonitionsReveal_mm7xe_242>._cartItemAdmonitions_mm7xe_212{overflow:hidden}._admonitionTriggerIconExpanded_mm7xe_253{transform:rotate(180deg)}._admonitionTriggerIcon_mm7xe_253{transition:transform .2s ease-in}._cartItemAdmonitions_mm7xe_212{list-style:none;margin:0;padding:0}._cartItemAdmonitionContent_mm7xe_266{font-size:var(--font-size-xs)}._noItems_mm7xe_276{display:flex;flex-direction:row;align-items:center;justify-content:center;height:100%}._subtotal_mm7xe_283{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:var(--spacing-0-5)}._checkoutButton_mm7xe_290{width:100%;height:fit-content;display:inline-flex;gap:var(--spacing-spacing-2xs)}
1
+ ._cartIconButton_1xng9_2{position:relative;border:none;padding:0;margin:0;background-color:transparent;cursor:pointer;color:#000;transition:color .3s ease,transform .3s ease}._cartIconButton_1xng9_2:hover{color:var(--color-brand-primary-primary-teal-blue)}._splash_1xng9_15{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(2.5px);pointer-events:none}@media (prefers-reduced-motion: reduce){._splash_1xng9_15{display:none}}._splashRay_1xng9_24{position:absolute;width:20%;height:2px;border-radius:999px;background-color:var(--color-brand-primary-primary-teal-blue);transform-origin:left center;animation:_cartSplash_1xng9_1 .6s ease-out forwards}._splashRay_1xng9_24:nth-child(1){left:50%;top:0;transform:rotate(-90deg)}._splashRay_1xng9_24:nth-child(2){left:23%;top:10%;transform:rotate(-145deg)}._splashRay_1xng9_24:nth-child(3){left:77%;top:10%;transform:rotate(-35deg)}@keyframes _cartSplash_1xng9_1{0%{clip-path:inset(0 100% 0 0)}40%{clip-path:inset(0 0 0 0)}to{clip-path:inset(0 0 0 100%)}}._count_1xng9_53{position:absolute;top:0;left:14px;border-radius:1rem;min-width:18px;height:18px;box-sizing:border-box;padding-inline:2px;display:flex;flex-direction:row;align-items:center;justify-content:center;white-space:nowrap;background-color:var(--color-brand-primary-primary-tangerine);color:var(--color-neutrals-neutral-1);font-weight:var(--font-weight-semibold)}._cartContainer_1xng9_71{background-color:#f9f9f9;height:100vh;width:100%;min-width:320px;max-width:375px;box-sizing:border-box;display:grid;grid-template-rows:auto auto 1fr auto auto;gap:var(--spacing-1);padding:var(--spacing-1)}._headerWrapper_1xng9_83{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._headerWrapper_1xng9_83>button{padding:0;margin:0;background-color:transparent;border:none}._header_1xng9_83{display:flex;flex-direction:column;align-items:flex-start;width:100%}._cartItems_1xng9_101{height:100%;overflow-y:auto;overflow-x:hidden}._cartItems_1xng9_101 ul{margin:0;padding:0;display:flex;flex-direction:column;gap:var(--spacing-spacing-1xs)}._cartItem_1xng9_101{background-color:#fff;border:1px solid var(--color-neutrals-neutral-2);border-radius:var(--border-radius-sm);box-shadow:0 2px 4px #00000014}._cartItemContent_1xng9_120{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--spacing-spacing-2xs);align-items:start;box-sizing:border-box;position:relative;list-style:none;margin:0;padding:var(--spacing-spacing-2xs);width:100%}._carItemSeparator_1xng9_132{width:100%;border-bottom:1px solid var(--border-border-primary)}._itemContainer_1xng9_136{display:grid;gap:var(--spacing-spacing-3xs)}._topRow_1xng9_140{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:var(--spacing-spacing-4xs)}._itemInfo_1xng9_147{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-4xs)}._unitDetails_1xng9_153{min-width:0;width:100%}._editUnit_1xng9_157{display:flex;align-items:center;text-align:start;gap:var(--spacing-spacing-3xs);border:none;background-color:transparent;padding:0;margin:0;cursor:pointer;color:var(--text-text-links);word-wrap:break-word;font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold)}._purchaseInformation_1xng9_173{display:flex;flex-direction:column;align-items:flex-end;gap:var(--spacing-spacing-3xs)}._availabilitySlot_1xng9_179{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}._itemManagement_1xng9_188{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}._cartItem_1xng9_101 p{margin:0;padding:0;word-wrap:break-word;white-space:normal;overflow-wrap:break-word}._itemImage_1xng9_201{object-fit:contain}._removeItem_1xng9_204{border:none;background-color:transparent;padding:0;margin:0;cursor:pointer;width:min-content;height:min-content}._cartItemAdmonitionsPanel_1xng9_213{padding:var(--spacing-spacing-2xs);display:grid;gap:var(--spacing-spacing-2xs)}._admonitionsPanelCollapsed_1xng9_218{padding-block:var(--spacing-spacing-3xs);gap:0}._cartItemAdmonitionsTrigger_1xng9_223{border:none;background-color:transparent;outline:none;margin:0;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:space-between}._cartItemAdmonitionHeader_1xng9_235{display:inline-flex;align-items:center;gap:var(--spacing-spacing-4xs)}._cartItemAdmonitionHeader_1xng9_235>span{text-align:start}._admonitionsReveal_1xng9_243{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s ease-in}._admonitionsRevealExpanded_1xng9_248{grid-template-rows:1fr}._admonitionsReveal_1xng9_243>._cartItemAdmonitions_1xng9_213{overflow:hidden}._admonitionTriggerIconExpanded_1xng9_254{transform:rotate(180deg)}._admonitionTriggerIcon_1xng9_254{transition:transform .2s ease-in}._cartItemAdmonitions_1xng9_213{list-style:none;margin:0;padding:0}._cartItemAdmonitionContent_1xng9_267{font-size:var(--font-size-xs)}._noItems_1xng9_277{display:flex;flex-direction:row;align-items:center;justify-content:center;height:100%}._subtotal_1xng9_284{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:var(--spacing-0-5)}._checkoutButton_1xng9_291{width:100%;height:fit-content;display:inline-flex;gap:var(--spacing-spacing-2xs)}
@@ -1 +1 @@
1
- ._main_1sd1k_1{box-shadow:#bbb3 0 8px 24px;padding:var(--spacing-0-5) 0;z-index:1;position:relative}._column_1sd1k_8{box-sizing:border-box;padding:0 var(--spacing-1)}._topNav_1sd1k_13{padding-bottom:var(--spacing-0-5);gap:var(--spacing-1-5)}@media (max-width: 1281px){._topNav_1sd1k_13{gap:var(--spacing-1);padding-bottom:0}}._logo_1sd1k_21{cursor:pointer}._operations_1sd1k_24{gap:var(--spacing-1-5);width:100%}@media (max-width: 1281px){._operations_1sd1k_24{gap:var(--spacing-1)}}._search_1sd1k_31{flex:1;min-width:0;position:relative;container-type:inline-size}._mobileSearch_1sd1k_37{width:100%}._typeAheadPortal_1sd1k_40{position:fixed;z-index:900;container-type:inline-size;overflow-x:hidden;overflow-y:auto}._siteLink_1sd1k_47{color:var(--color-brand-primary-primary-black);cursor:default;border:none;background-color:transparent;padding:0;margin:0;font-family:var(--font-family-display);font-size:var(--font-size-md);cursor:pointer;display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-4xs)}._siteLink_1sd1k_47:hover{text-decoration:underline;color:var(--text-text-links)}@media (max-width:1280px){._siteLink_1sd1k_47{font-family:var(--font-family-body);font-size:var(--font-size-sm)}}._siteLink_1sd1k_47 path{fill:var(--color-brand-primary-primary-teal-blue)}._accountArea_1sd1k_74{width:145px;min-width:max-content}@media (max-width: 1280px){._accountArea_1sd1k_74{width:min-content;min-width:0}}._cart_1sd1k_82{border:none;padding:0;margin:0;background-color:transparent}._cartArea_1sd1k_88{position:relative}@media (max-width: 767px){._cartArea_1sd1k_88{position:static}}._cartPopover_1sd1k_94{position:fixed!important;width:min(350px,calc(100vw - 32px));max-height:calc(100dvh - 8rem);overflow-y:auto}@media (max-width: 767px){._cartPopover_1sd1k_94{left:0!important;width:100%;transform:translateY(32px)}}._cartPopoverHidden_1sd1k_105{visibility:hidden!important;pointer-events:none}._cartPopoverContent_1sd1k_109{padding:0;border:0;box-shadow:none}._category_1sd1k_114{list-style:none;min-height:42px;display:flex;flex-direction:row;align-items:stretch;padding:0}._categoryLink_1sd1k_122{color:var(--text-text-primary);text-decoration:none;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%}._categoryLink_1sd1k_122:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._categoryLink_1sd1k_122 path{fill:var(--color-brand-primary-primary-teal-blue)}._menuList_1sd1k_138{list-style:none;padding:0;margin:0;height:min-content;display:flex;flex-direction:column;gap:var(--spacing-spacing-3xs)}._menuList_1sd1k_138>li{width:100%;min-height:42px;padding:var(--spacing-spacing-2xs);border:1px solid var(--border-border-primary, #dfdfdf);box-sizing:border-box;display:flex;flex-direction:row;align-items:center;border-radius:var(--border-radius-md);color:var(--text-text-links)}._menuItemAction_1sd1k_161{width:100%;display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-4xs);color:var(--color-brand-primary-primary-black)}._shortcutIcon_1sd1k_170{color:var(--text-text-links)}
1
+ ._main_r1xgh_1{box-shadow:#bbb3 0 8px 24px;padding:var(--spacing-0-5) 0;z-index:1;position:relative}._column_r1xgh_8{box-sizing:border-box;padding:0 var(--spacing-1)}._topNav_r1xgh_13{padding-bottom:var(--spacing-0-5);gap:var(--spacing-1-5)}@media (max-width: 1281px){._topNav_r1xgh_13{gap:var(--spacing-1);padding-bottom:0}}._logo_r1xgh_21{cursor:pointer}._operations_r1xgh_24{gap:var(--spacing-1-5);width:100%}@media (max-width: 1281px){._operations_r1xgh_24{gap:var(--spacing-1)}}._search_r1xgh_31{flex:1;min-width:0;position:relative;container-type:inline-size}._mobileSearch_r1xgh_37{width:100%}._typeAheadPortal_r1xgh_40{position:fixed;z-index:900;container-type:inline-size;overflow-x:hidden;overflow-y:auto}._siteLink_r1xgh_47{color:var(--color-brand-primary-primary-black);cursor:default;border:none;background-color:transparent;padding:0;margin:0;font-family:var(--font-family-display);font-size:var(--font-size-md);cursor:pointer;display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-4xs)}._siteLink_r1xgh_47:hover{text-decoration:underline;color:var(--text-text-links)}@media (max-width:1280px){._siteLink_r1xgh_47{font-family:var(--font-family-body);font-size:var(--font-size-sm)}}._siteLink_r1xgh_47 path{fill:var(--color-brand-primary-primary-teal-blue)}._accountArea_r1xgh_74{width:145px;min-width:max-content}@media (max-width: 1280px){._accountArea_r1xgh_74{width:min-content;min-width:0}}._cart_r1xgh_82{border:none;padding:0;margin:0;background-color:transparent}._cartArea_r1xgh_88{position:relative}@media (max-width: 767px){._cartArea_r1xgh_88{position:static}}._cartPopover_r1xgh_94{position:fixed!important;width:min(350px,calc(100vw - 32px));max-height:calc(100dvh - 8rem);overflow-y:auto}@media (max-width: 767px){._cartPopover_r1xgh_94{--popover-offset: 40px;left:0!important;width:100%}}._cartPopoverHidden_r1xgh_106{visibility:hidden!important;pointer-events:none}._cartPopoverContent_r1xgh_110{padding:0;border:0;box-shadow:none}._category_r1xgh_115{list-style:none;min-height:42px;display:flex;flex-direction:row;align-items:stretch;padding:0}._categoryLink_r1xgh_123{color:var(--text-text-primary);text-decoration:none;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%}._categoryLink_r1xgh_123:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._categoryLink_r1xgh_123 path{fill:var(--color-brand-primary-primary-teal-blue)}._menuList_r1xgh_139{list-style:none;padding:0;margin:0;height:min-content;display:flex;flex-direction:column;gap:var(--spacing-spacing-3xs)}._menuList_r1xgh_139>li{width:100%;min-height:42px;padding:var(--spacing-spacing-2xs);border:1px solid var(--border-border-primary, #dfdfdf);box-sizing:border-box;display:flex;flex-direction:row;align-items:center;border-radius:var(--border-radius-md);color:var(--text-text-links)}._menuItemAction_r1xgh_162{width:100%;display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-4xs);color:var(--color-brand-primary-primary-black)}._shortcutIcon_r1xgh_171{color:var(--text-text-links)}
@@ -1,121 +1,122 @@
1
- import { jsxs as H, Fragment as N, jsx as z } from "react/jsx-runtime";
1
+ import { jsxs as B, Fragment as H, jsx as _ } from "react/jsx-runtime";
2
2
  import * as f from "react";
3
3
  import { r as W } from "../../index-BkF-BQ3Q.js";
4
- import { c as P } from "../../clsx-OuTLNxxd.js";
5
- import '../../assets/Popover.css';const q = "_popover_vlr81_1", D = "_content_vlr81_7", M = {
4
+ import { c as k } from "../../clsx-OuTLNxxd.js";
5
+ import '../../assets/Popover.css';const q = "_popover_vlr81_1", C = "_content_vlr81_7", z = {
6
6
  popover: q,
7
- content: D
7
+ content: C
8
8
  };
9
- function T(r) {
9
+ function D(r) {
10
10
  return r ? r.includes(" ") ? r : `${r} center` : "top center";
11
11
  }
12
- function U(r) {
13
- const d = T(r).toLowerCase(), [s, c] = d.split(" ");
12
+ function T(r) {
13
+ const p = D(r).toLowerCase(), [s, c] = p.split(" ");
14
14
  return { side: ["top", "right", "bottom", "left"].includes(s) ? s : "top", align: c === "left" || c === "top" ? "start" : c === "right" || c === "bottom" ? "end" : "center" };
15
15
  }
16
- function $(r, d, s, c, p = 8) {
17
- const n = r.getBoundingClientRect(), u = d.getBoundingClientRect();
16
+ function U(r, p, s, c, m = 8) {
17
+ const o = r.getBoundingClientRect(), u = p.getBoundingClientRect();
18
18
  let l = 0, a = 0;
19
- s === "top" ? l = n.top - u.height - p : s === "bottom" ? l = n.bottom + p : s === "left" ? a = n.left - u.width - p : s === "right" && (a = n.right + p), s === "top" || s === "bottom" ? c === "start" ? a = n.left : c === "end" ? a = n.right - u.width : a = n.left + n.width / 2 - u.width / 2 : c === "start" ? l = n.top : c === "end" ? l = n.bottom - u.height : l = n.top + n.height / 2 - u.height / 2;
20
- const g = window.innerWidth, w = window.innerHeight;
21
- return l = Math.max(4, Math.min(w - u.height - 4, l)), a = Math.max(4, Math.min(g - u.width - 4, a)), { top: l, left: a };
19
+ s === "top" ? l = o.top - u.height - m : s === "bottom" ? l = o.bottom + m : s === "left" ? a = o.left - u.width - m : s === "right" && (a = o.right + m), s === "top" || s === "bottom" ? c === "start" ? a = o.left : c === "end" ? a = o.right - u.width : a = o.left + o.width / 2 - u.width / 2 : c === "start" ? l = o.top : c === "end" ? l = o.bottom - u.height : l = o.top + o.height / 2 - u.height / 2;
20
+ const g = window.innerWidth, h = window.innerHeight;
21
+ return l = Math.max(4, Math.min(h - u.height - 4, l)), a = Math.max(4, Math.min(g - u.width - 4, a)), { top: l, left: a };
22
22
  }
23
- const K = ({
23
+ const J = ({
24
24
  trigger: r,
25
- children: d,
25
+ children: p,
26
26
  position: s,
27
27
  popoverClassName: c,
28
- contentClassName: p,
29
- contentStyle: n,
28
+ contentClassName: m,
29
+ contentStyle: o,
30
30
  disabled: u,
31
31
  closeOnOutsideClick: l = !0,
32
32
  closeOnInsideClickAttr: a = !0,
33
33
  open: g,
34
- onOpenChange: w
34
+ onOpenChange: h
35
35
  }) => {
36
- const { side: y, align: b } = U(s), [S, j] = f.useState(!1), R = typeof g == "boolean", o = R ? g : S, [m, _] = f.useState(null), L = f.useRef(null), v = f.useRef(null), x = (t) => {
37
- const e = typeof t == "function" ? t(o) : t;
38
- R ? w == null || w(e) : j(e);
39
- }, k = () => {
36
+ const { side: y, align: b } = T(s), [S, M] = f.useState(!1), R = typeof g == "boolean", n = R ? g : S, [v, N] = f.useState(null), L = f.useRef(null), w = f.useRef(null), x = (t) => {
37
+ const e = typeof t == "function" ? t(n) : t;
38
+ R ? h == null || h(e) : M(e);
39
+ }, P = () => {
40
40
  u || x((t) => !t);
41
- }, E = () => x(!1), B = () => x(!0), F = f.cloneElement(r, {
41
+ }, E = () => x(!1), F = () => x(!0), j = f.cloneElement(r, {
42
42
  ref: (t) => {
43
43
  const { ref: e } = r;
44
44
  typeof e == "function" ? e(t) : e && (e.current = t), L.current = t;
45
45
  },
46
46
  onClick: (t) => {
47
47
  var e, i;
48
- (i = (e = r.props).onClick) == null || i.call(e, t), k();
48
+ (i = (e = r.props).onClick) == null || i.call(e, t), P();
49
49
  },
50
50
  "aria-haspopup": "dialog",
51
- "aria-expanded": o || void 0,
52
- "aria-controls": o ? "popover-panel" : void 0,
51
+ "aria-expanded": n || void 0,
52
+ "aria-controls": n ? "popover-panel" : void 0,
53
53
  style: { ...r.props.style || {}, outline: "none" }
54
54
  });
55
55
  return f.useLayoutEffect(() => {
56
- if (!o) {
57
- _(null);
56
+ if (!n) {
57
+ N(null);
58
58
  return;
59
59
  }
60
- const t = L.current, e = v.current;
60
+ const t = L.current, e = w.current;
61
61
  if (!t || !e) return;
62
62
  const i = () => {
63
- _($(t, e, y, b, 8));
63
+ const d = Number.parseFloat(getComputedStyle(e).getPropertyValue("--popover-offset"));
64
+ N(U(t, e, y, b, Number.isNaN(d) ? 8 : d));
64
65
  };
65
66
  return i(), window.addEventListener("resize", i), window.addEventListener("scroll", i, !0), () => {
66
67
  window.removeEventListener("resize", i), window.removeEventListener("scroll", i, !0);
67
68
  };
68
- }, [o, y, b, d]), f.useEffect(() => {
69
- if (!o || !l) return;
69
+ }, [n, y, b, p]), f.useEffect(() => {
70
+ if (!n || !l) return;
70
71
  const t = (e) => {
71
- const i = v.current, h = L.current;
72
- !i || !h || i.contains(e.target) || h.contains(e.target) || E();
72
+ const i = w.current, d = L.current;
73
+ !i || !d || i.contains(e.target) || d.contains(e.target) || E();
73
74
  };
74
75
  return window.addEventListener("mousedown", t), () => window.removeEventListener("mousedown", t);
75
- }, [o, l]), f.useEffect(() => {
76
- if (!o || !a) return;
77
- const t = v.current;
76
+ }, [n, l]), f.useEffect(() => {
77
+ if (!n || !a) return;
78
+ const t = w.current;
78
79
  if (!t) return;
79
80
  const e = (i) => {
80
- const h = i.target;
81
- if (!h) return;
82
- h.closest('[data-popover-close="true"]') && setTimeout(() => E(), 0);
81
+ const d = i.target;
82
+ if (!d) return;
83
+ d.closest('[data-popover-close="true"]') && setTimeout(() => E(), 0);
83
84
  };
84
85
  return t.addEventListener("click", e), () => t.removeEventListener("click", e);
85
- }, [o, a]), f.useEffect(() => {
86
- if (!o) return;
86
+ }, [n, a]), f.useEffect(() => {
87
+ if (!n) return;
87
88
  const t = (e) => {
88
89
  e.key === "Escape" && E();
89
90
  };
90
91
  return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
91
- }, [o]), f.useEffect(() => {
92
- if (o && v.current) {
93
- const t = v.current.querySelector(
92
+ }, [n]), f.useEffect(() => {
93
+ if (n && w.current) {
94
+ const t = w.current.querySelector(
94
95
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
95
96
  );
96
97
  t == null || t.focus();
97
98
  }
98
- }, [o]), /* @__PURE__ */ H(N, { children: [
99
- F,
100
- o && typeof document < "u" && W.createPortal(
101
- /* @__PURE__ */ z(
99
+ }, [n]), /* @__PURE__ */ B(H, { children: [
100
+ j,
101
+ n && typeof document < "u" && W.createPortal(
102
+ /* @__PURE__ */ _(
102
103
  "div",
103
104
  {
104
105
  id: "popover-panel",
105
- ref: v,
106
+ ref: w,
106
107
  role: "dialog",
107
108
  "aria-modal": "false",
108
- className: P(M.popover, c),
109
+ className: k(z.popover, c),
109
110
  "data-side": y,
110
111
  "data-align": b,
111
112
  style: {
112
113
  position: "absolute",
113
- top: (m == null ? void 0 : m.top) ?? 0,
114
- left: (m == null ? void 0 : m.left) ?? 0,
115
- visibility: m ? "visible" : "hidden",
114
+ top: (v == null ? void 0 : v.top) ?? 0,
115
+ left: (v == null ? void 0 : v.left) ?? 0,
116
+ visibility: v ? "visible" : "hidden",
116
117
  zIndex: 20
117
118
  },
118
- children: /* @__PURE__ */ z("div", { className: P(M.content, p), style: n, children: typeof d == "function" ? d({ close: E, open: B, toggle: k }) : d })
119
+ children: /* @__PURE__ */ _("div", { className: k(z.content, m), style: o, children: typeof p == "function" ? p({ close: E, open: F, toggle: P }) : p })
119
120
  }
120
121
  ),
121
122
  document.body
@@ -123,5 +124,5 @@ const K = ({
123
124
  ] });
124
125
  };
125
126
  export {
126
- K as Popover
127
+ J as Popover
127
128
  };
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as d } from "react/jsx-runtime";
2
2
  import o from "react";
3
3
  import { Icon as g } from "../../atoms/Icon/Icon.js";
4
4
  import { Text as h } from "../../atoms/Text/Text.js";
5
- import { s } from "../../Cart.module-DTLrsJdk.js";
5
+ import { s } from "../../Cart.module-Cnsy6nxN.js";
6
6
  const S = o.forwardRef(function({
7
7
  cart: l,
8
8
  open: i = !1,
@@ -12,7 +12,7 @@ import { Tooltip as re } from "../../atoms/Tooltip/Tooltip.js";
12
12
  import { ADMONITION_ICON_COLOR_TOKENS as le, ADMONITION_DEFAULT_ICONS as ae } from "../Admonition/admonitionTokens.js";
13
13
  import { Admonition as ce } from "../Admonition/Admonition.js";
14
14
  import { c as f } from "../../clsx-OuTLNxxd.js";
15
- import { s as l } from "../../Cart.module-DTLrsJdk.js";
15
+ import { s as l } from "../../Cart.module-Cnsy6nxN.js";
16
16
  function be({
17
17
  imageUrl: S,
18
18
  imageAlt: _ = "Product image",
@@ -4,7 +4,7 @@ import { Text as l } from "../../atoms/Text/Text.js";
4
4
  import { Button as h } from "../../atoms/Button/Button.js";
5
5
  import { Icon as u } from "../../atoms/Icon/Icon.js";
6
6
  import { CartPart as z } from "./CartPart.js";
7
- import { s as t } from "../../Cart.module-DTLrsJdk.js";
7
+ import { s as t } from "../../Cart.module-Cnsy6nxN.js";
8
8
  function q({
9
9
  open: p,
10
10
  onClose: m,
@@ -1,25 +1,25 @@
1
1
  import { jsxs as m, Fragment as O, jsx as e } from "react/jsx-runtime";
2
2
  import s from "react";
3
- import { r as kt } from "../../index-BkF-BQ3Q.js";
3
+ import { r as yt } from "../../index-BkF-BQ3Q.js";
4
4
  import { Text as U } from "../../atoms/Text/Text.js";
5
5
  import { Link as j } from "../../atoms/Link/Link.js";
6
- import { Icon as u } from "../../atoms/Icon/Icon.js";
6
+ import { Icon as N } from "../../atoms/Icon/Icon.js";
7
7
  import { Flex as H } from "../../atoms/Flex/Flex.js";
8
- import { Grid as yt, Column as vt } from "../../atoms/Grid/Grid.js";
9
- import { Input as C } from "../../atoms/Input/Input.js";
8
+ import { Grid as vt, Column as ut } from "../../atoms/Grid/Grid.js";
9
+ import { Input as g } from "../../atoms/Input/Input.js";
10
10
  import { InputEndAdornmentButton as $ } from "../../atoms/InputEndAdornmentButton/InputEndAdornmentButton.js";
11
- import { Logo as ut } from "../../molecules/Logo/Logo.js";
12
- import { HamburgerMenu as Nt } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
13
- import { ShoppingCart as pt } from "../../molecules/Cart/Cart.js";
11
+ import { Logo as Nt } from "../../molecules/Logo/Logo.js";
12
+ import { HamburgerMenu as pt } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
13
+ import { ShoppingCart as xt } from "../../molecules/Cart/Cart.js";
14
14
  import { Account as wt } from "../../molecules/Account/Account.js";
15
15
  import { Popover as At } from "../../atoms/Popover/Popover.js";
16
- import { CategoryNav as bt } from "../../molecules/CategoryNav/CategoryNav.js";
17
- import { SuggestionDropdown as g } from "../SuggestionDropdown/SuggestionDropdown.js";
18
- import { getHideAtStyles as V } from "../../atoms/HideAt.js";
16
+ import { CategoryNav as kt } from "../../molecules/CategoryNav/CategoryNav.js";
17
+ import { SuggestionDropdown as h } from "../SuggestionDropdown/SuggestionDropdown.js";
18
+ import { getHideAtStyles as C } from "../../atoms/HideAt.js";
19
19
  import { c as _ } from "../../clsx-OuTLNxxd.js";
20
- import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1k_8", Kt = "_topNav_1sd1k_13", Dt = "_logo_1sd1k_21", zt = "_operations_1sd1k_24", Bt = "_search_1sd1k_31", Et = "_mobileSearch_1sd1k_37", Ht = "_typeAheadPortal_1sd1k_40", $t = "_siteLink_1sd1k_47", Ft = "_accountArea_1sd1k_74", Rt = "_cartArea_1sd1k_88", Mt = "_cartPopover_1sd1k_94", Ot = "_cartPopoverHidden_1sd1k_105", Ut = "_cartPopoverContent_1sd1k_109", jt = "_category_1sd1k_114", It = "_categoryLink_1sd1k_122", Tt = "_menuList_1sd1k_138", Pt = "_menuItemAction_1sd1k_161", qt = "_shortcutIcon_1sd1k_170", i = {
21
- main: Lt,
22
- column: xt,
20
+ import '../../assets/MainNav.css';const bt = "_main_r1xgh_1", Lt = "_column_r1xgh_8", Kt = "_topNav_r1xgh_13", Dt = "_logo_r1xgh_21", zt = "_operations_r1xgh_24", Bt = "_search_r1xgh_31", Et = "_mobileSearch_r1xgh_37", Ht = "_typeAheadPortal_r1xgh_40", $t = "_siteLink_r1xgh_47", Ft = "_accountArea_r1xgh_74", Rt = "_cartArea_r1xgh_88", Mt = "_cartPopover_r1xgh_94", Ot = "_cartPopoverHidden_r1xgh_106", Ut = "_cartPopoverContent_r1xgh_110", jt = "_category_r1xgh_115", It = "_categoryLink_r1xgh_123", Tt = "_menuList_r1xgh_139", Pt = "_menuItemAction_r1xgh_162", qt = "_shortcutIcon_r1xgh_171", i = {
21
+ main: bt,
22
+ column: Lt,
23
23
  topNav: Kt,
24
24
  logo: Dt,
25
25
  operations: zt,
@@ -37,10 +37,10 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
37
37
  menuList: Tt,
38
38
  menuItemAction: Pt,
39
39
  shortcutIcon: qt
40
- }, de = s.forwardRef(function({
40
+ }, re = s.forwardRef(function({
41
41
  account: F,
42
- categories: b,
43
- homeRoute: h,
42
+ categories: k,
43
+ homeRoute: V,
44
44
  faqRoute: S,
45
45
  customPartsRoute: T,
46
46
  aboutUsRoute: tt,
@@ -52,17 +52,17 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
52
52
  onLoginClick: nt,
53
53
  searchInputProps: l,
54
54
  searchValue: c,
55
- onSearchValueChange: d,
56
- onClearSearch: N,
55
+ onSearchValueChange: r,
56
+ onClearSearch: p,
57
57
  onSearch: f,
58
58
  searchSuggestions: o,
59
- recentSearches: k,
59
+ recentSearches: y,
60
60
  onClearRecentSearch: lt,
61
61
  onCategoryClick: D,
62
62
  onClickModelSerial: q,
63
63
  onCartClick: mt,
64
- accountPopoverContent: dt,
65
- isAccountLoading: rt,
64
+ accountPopoverContent: rt,
65
+ isAccountLoading: dt,
66
66
  isCategoriesLoading: ct,
67
67
  cartConfirmation: G,
68
68
  cartConfirmationVisible: at,
@@ -71,18 +71,18 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
71
71
  ...st
72
72
  }, _t) {
73
73
  var Z;
74
- const [Q, M] = s.useState(!1), [r, y] = s.useState(-1), [W, J] = s.useState(), p = s.useRef(null), z = s.useRef(null), v = s.useId(), B = () => {
74
+ const [Q, M] = s.useState(!1), [d, v] = s.useState(-1), [W, J] = s.useState(), x = s.useRef(null), z = s.useRef(null), u = s.useId(), B = () => {
75
75
  var t;
76
- return (t = p.current) != null && t.offsetParent ? p.current : z.current;
77
- }, w = Q && !!c && !!o, E = Q && !w && !!(k != null && k.length), L = w ? ((o == null ? void 0 : o.terms.length) ?? 0) + ((o == null ? void 0 : o.categories.length) ?? 0) + (((Z = o == null ? void 0 : o.customParts) == null ? void 0 : Z.length) ?? 0) + ((o == null ? void 0 : o.items.length) ?? 0) : E ? (k == null ? void 0 : k.length) ?? 0 : 0;
76
+ return (t = x.current) != null && t.offsetParent ? x.current : z.current;
77
+ }, w = Q && !!c && !!o, E = Q && !w && !!(y != null && y.length), b = w ? ((o == null ? void 0 : o.terms.length) ?? 0) + ((o == null ? void 0 : o.categories.length) ?? 0) + (((Z = o == null ? void 0 : o.customParts) == null ? void 0 : Z.length) ?? 0) + ((o == null ? void 0 : o.items.length) ?? 0) : E ? (y == null ? void 0 : y.length) ?? 0 : 0;
78
78
  s.useLayoutEffect(() => {
79
79
  if (!w && !E) {
80
80
  J(void 0);
81
81
  return;
82
82
  }
83
83
  function t() {
84
- var x;
85
- const n = (x = p.current) != null && x.offsetParent ? p.current : z.current;
84
+ var L;
85
+ const n = (L = x.current) != null && L.offsetParent ? x.current : z.current;
86
86
  if (!n) return;
87
87
  const a = n.getBoundingClientRect();
88
88
  J({
@@ -100,7 +100,7 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
100
100
  ...l,
101
101
  onChange: (t) => {
102
102
  var n;
103
- y(-1), (n = l == null ? void 0 : l.onChange) == null || n.call(l, t);
103
+ v(-1), (n = l == null ? void 0 : l.onChange) == null || n.call(l, t);
104
104
  },
105
105
  onFocus: (t) => {
106
106
  var n;
@@ -111,33 +111,33 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
111
111
  (n = l == null ? void 0 : l.onBlur) == null || n.call(l, t), M(!1);
112
112
  },
113
113
  onKeyDown: (t) => {
114
- var n, a, x;
114
+ var n, a, L;
115
115
  if ((n = l == null ? void 0 : l.onKeyDown) == null || n.call(l, t), !t.defaultPrevented) {
116
- if (t.key === "ArrowDown" && L > 0) {
117
- t.preventDefault(), y((K) => K >= L - 1 ? 0 : K + 1);
116
+ if (t.key === "ArrowDown" && b > 0) {
117
+ t.preventDefault(), v((K) => K >= b - 1 ? 0 : K + 1);
118
118
  return;
119
119
  }
120
- if (t.key === "ArrowUp" && L > 0) {
121
- t.preventDefault(), y((K) => K <= 0 ? L - 1 : K - 1);
120
+ if (t.key === "ArrowUp" && b > 0) {
121
+ t.preventDefault(), v((K) => K <= 0 ? b - 1 : K - 1);
122
122
  return;
123
123
  }
124
- if (t.key === "Tab" && w && r >= 0 && r < ((o == null ? void 0 : o.terms.length) ?? 0)) {
125
- t.preventDefault(), d == null || d((o == null ? void 0 : o.terms[r].name) ?? ""), y(-1);
124
+ if (t.key === "Tab" && w && d >= 0 && d < ((o == null ? void 0 : o.terms.length) ?? 0)) {
125
+ t.preventDefault(), r == null || r((o == null ? void 0 : o.terms[d].name) ?? ""), v(-1);
126
126
  return;
127
127
  }
128
- if (t.key === "Enter" && r >= 0 && r < L) {
129
- t.preventDefault(), (a = document.getElementById(`${v}-${r}`)) == null || a.click();
128
+ if (t.key === "Enter" && d >= 0 && d < b) {
129
+ t.preventDefault(), (a = document.getElementById(`${u}-${d}`)) == null || a.click();
130
130
  return;
131
131
  }
132
- t.key === "Enter" && (t.preventDefault(), M(!1), (x = B()) == null || x.blur(), f == null || f(c ?? ""));
132
+ t.key === "Enter" && (t.preventDefault(), M(!1), (L = B()) == null || L.blur(), f == null || f(c ?? ""));
133
133
  }
134
134
  }
135
135
  }, Y = (t) => {
136
136
  var n;
137
- t.key.length !== 1 || t.altKey || t.ctrlKey || t.metaKey || (t.preventDefault(), y(-1), d == null || d(`${c ?? ""}${t.key}`), (n = B()) == null || n.focus());
137
+ t.key.length !== 1 || t.altKey || t.ctrlKey || t.metaKey || (t.preventDefault(), v(-1), r == null || r(`${c ?? ""}${t.key}`), (n = B()) == null || n.focus());
138
138
  };
139
139
  return /* @__PURE__ */ m(O, { children: [
140
- /* @__PURE__ */ e(yt, { ...st, gridWrapperClassName: _(i.main, ot), children: /* @__PURE__ */ m(vt, { span: 12, className: i.column, children: [
140
+ /* @__PURE__ */ e(vt, { ...st, gridWrapperClassName: _(i.main, ot), children: /* @__PURE__ */ m(ut, { span: 12, className: i.column, children: [
141
141
  /* @__PURE__ */ m(
142
142
  H,
143
143
  {
@@ -146,7 +146,7 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
146
146
  justifyContent: "space-between",
147
147
  className: i.topNav,
148
148
  children: [
149
- /* @__PURE__ */ e("div", { className: i.logo, children: /* @__PURE__ */ e(j, { href: h, children: /* @__PURE__ */ e(ut, {}) }) }),
149
+ /* @__PURE__ */ e("div", { className: i.logo, children: /* @__PURE__ */ e(j, { href: V, children: /* @__PURE__ */ e(Nt, {}) }) }),
150
150
  /* @__PURE__ */ m(
151
151
  H,
152
152
  {
@@ -156,7 +156,7 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
156
156
  className: i.operations,
157
157
  children: [
158
158
  /* @__PURE__ */ e(H, { flexDirection: "row", hideAt: ["sm"], className: i.search, children: /* @__PURE__ */ e(
159
- C,
159
+ g,
160
160
  {
161
161
  variant: "search",
162
162
  label: "Search",
@@ -164,10 +164,10 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
164
164
  name: "cpc-search",
165
165
  autoComplete: "off",
166
166
  "aria-autocomplete": "list",
167
- "aria-controls": v,
168
- "aria-activedescendant": r >= 0 ? `${v}-${r}` : void 0,
167
+ "aria-controls": u,
168
+ "aria-activedescendant": d >= 0 ? `${u}-${d}` : void 0,
169
169
  ...X,
170
- ref: p,
170
+ ref: x,
171
171
  value: c,
172
172
  endAdornment: /* @__PURE__ */ m(O, { children: [
173
173
  !!c && /* @__PURE__ */ e(
@@ -177,7 +177,7 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
177
177
  onMouseDown: (t) => t.preventDefault(),
178
178
  onClick: () => {
179
179
  var t;
180
- y(-1), N == null || N(), (t = p.current) == null || t.focus();
180
+ v(-1), p == null || p(), (t = x.current) == null || t.focus();
181
181
  },
182
182
  iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
183
183
  }
@@ -193,8 +193,8 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
193
193
  ] })
194
194
  }
195
195
  ) }),
196
- /* @__PURE__ */ m("button", { onClick: q, className: _(i.siteLink, V(["sm", "md"])), children: [
197
- /* @__PURE__ */ e(u, { iconKey: "fa-regular fa-sparkles", size: "sm" }),
196
+ /* @__PURE__ */ m("button", { onClick: q, className: _(i.siteLink, C(["sm", "md"])), children: [
197
+ /* @__PURE__ */ e(N, { iconKey: "fa-regular fa-sparkles", size: "sm" }),
198
198
  "Identify a Part"
199
199
  ] }),
200
200
  /* @__PURE__ */ e(A, { href: T, hideAt: ["sm", "md"], children: "Custom Parts" }),
@@ -205,15 +205,15 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
205
205
  account: F,
206
206
  onLoginClick: nt,
207
207
  className: i.avatar,
208
- popoverContent: dt,
209
- isAccountLoading: rt
208
+ popoverContent: rt,
209
+ isAccountLoading: dt
210
210
  }
211
211
  ) }),
212
212
  /* @__PURE__ */ e(
213
213
  At,
214
214
  {
215
215
  trigger: /* @__PURE__ */ e("div", { className: i.cartArea, children: /* @__PURE__ */ e(
216
- pt,
216
+ xt,
217
217
  {
218
218
  ref: _t,
219
219
  cart: et,
@@ -232,7 +232,7 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
232
232
  children: G
233
233
  }
234
234
  ),
235
- /* @__PURE__ */ m(Nt, { hideAt: ["lg"], children: [
235
+ /* @__PURE__ */ m(pt, { hideAt: ["lg"], children: [
236
236
  /* @__PURE__ */ m("section", { children: [
237
237
  /* @__PURE__ */ e(U, { size: "md", weight: "semibold", children: "Useful shortcuts" }),
238
238
  /* @__PURE__ */ m("ul", { className: i.menuList, children: [
@@ -241,34 +241,34 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
241
241
  {
242
242
  onClick: q,
243
243
  "data-hamburger-close": "true",
244
- className: _(i.siteLink, i.menuItemAction, V(["lg"])),
244
+ className: _(i.siteLink, i.menuItemAction, C(["lg"])),
245
245
  children: [
246
- /* @__PURE__ */ e(u, { iconKey: "fa-regular fa-sparkles", size: "sm", className: i.shortcutIcon }),
246
+ /* @__PURE__ */ e(N, { iconKey: "fa-regular fa-sparkles", size: "sm", className: i.shortcutIcon }),
247
247
  "Identify a Part"
248
248
  ]
249
249
  }
250
250
  ) }),
251
251
  /* @__PURE__ */ e("li", { className: i.menuItem, children: /* @__PURE__ */ m(A, { href: T, className: _(i.siteLink, i.menuItemAction), children: [
252
- /* @__PURE__ */ e(u, { iconKey: "fa-regular fa-screwdriver-wrench", size: "sm", className: i.shortcutIcon }),
252
+ /* @__PURE__ */ e(N, { iconKey: "fa-regular fa-screwdriver-wrench", size: "sm", className: i.shortcutIcon }),
253
253
  "Custom Parts"
254
254
  ] }) }),
255
255
  /* @__PURE__ */ e("li", { className: i.menuItem, children: /* @__PURE__ */ m(A, { href: P, className: _(i.siteLink, i.menuItemAction), children: [
256
- /* @__PURE__ */ e(u, { iconKey: "fa-regular fa-envelope", size: "sm", className: i.shortcutIcon }),
256
+ /* @__PURE__ */ e(N, { iconKey: "fa-regular fa-envelope", size: "sm", className: i.shortcutIcon }),
257
257
  "Contact Us"
258
258
  ] }) }),
259
259
  /* @__PURE__ */ e("li", { className: i.menuItem, children: /* @__PURE__ */ m(A, { href: S, className: _(i.siteLink, i.menuItemAction), children: [
260
- /* @__PURE__ */ e(u, { iconKey: "fa-solid fa-question", size: "sm", className: i.shortcutIcon }),
260
+ /* @__PURE__ */ e(N, { iconKey: "fa-solid fa-question", size: "sm", className: i.shortcutIcon }),
261
261
  "FAQ"
262
262
  ] }) }),
263
263
  /* @__PURE__ */ e("li", { className: i.menuItem, children: /* @__PURE__ */ m(A, { href: tt, className: _(i.siteLink, i.menuItemAction), children: [
264
- /* @__PURE__ */ e(u, { iconKey: "fa-regular fa-people-group", size: "sm", className: i.shortcutIcon }),
264
+ /* @__PURE__ */ e(N, { iconKey: "fa-regular fa-people-group", size: "sm", className: i.shortcutIcon }),
265
265
  "About Us"
266
266
  ] }) })
267
267
  ] })
268
268
  ] }),
269
269
  /* @__PURE__ */ m("section", { children: [
270
270
  /* @__PURE__ */ e(U, { size: "md", weight: "semibold", children: "Shop by category" }),
271
- /* @__PURE__ */ e("ul", { className: i.menuList, children: b && b.map((t) => /* @__PURE__ */ e("li", { className: i.category, children: /* @__PURE__ */ m(
271
+ /* @__PURE__ */ e("ul", { className: i.menuList, children: k && k.map((t) => /* @__PURE__ */ e("li", { className: i.category, children: /* @__PURE__ */ m(
272
272
  j,
273
273
  {
274
274
  href: t.route,
@@ -277,7 +277,7 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
277
277
  children: [
278
278
  /* @__PURE__ */ e(U, { size: "sm", children: t.label }),
279
279
  /* @__PURE__ */ e(
280
- u,
280
+ N,
281
281
  {
282
282
  iconKey: "fa-solid fa-chevron-right",
283
283
  title: "Navigate",
@@ -296,7 +296,7 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
296
296
  }
297
297
  ),
298
298
  /* @__PURE__ */ e(H, { flexDirection: "row", hideAt: ["md", "lg"], className: i.mobileSearch, children: /* @__PURE__ */ e("div", { className: i.search, children: /* @__PURE__ */ e(
299
- C,
299
+ g,
300
300
  {
301
301
  variant: "search",
302
302
  label: "Search",
@@ -304,8 +304,8 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
304
304
  name: "cpc-search",
305
305
  autoComplete: "off",
306
306
  "aria-autocomplete": "list",
307
- "aria-controls": v,
308
- "aria-activedescendant": r >= 0 ? `${v}-${r}` : void 0,
307
+ "aria-controls": u,
308
+ "aria-activedescendant": d >= 0 ? `${u}-${d}` : void 0,
309
309
  ...X,
310
310
  ref: z,
311
311
  value: c,
@@ -317,7 +317,7 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
317
317
  onMouseDown: (t) => t.preventDefault(),
318
318
  onClick: () => {
319
319
  var t;
320
- y(-1), N == null || N(), (t = z.current) == null || t.focus();
320
+ v(-1), p == null || p(), (t = z.current) == null || t.focus();
321
321
  },
322
322
  iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
323
323
  }
@@ -334,15 +334,15 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
334
334
  }
335
335
  ) }) }),
336
336
  /* @__PURE__ */ e(
337
- bt,
337
+ kt,
338
338
  {
339
- categories: b,
339
+ categories: k,
340
340
  isCategoriesLoading: ct,
341
341
  onCategoryClick: D
342
342
  }
343
343
  )
344
344
  ] }) }),
345
- W && typeof document < "u" && kt.createPortal(
345
+ W && typeof document < "u" && yt.createPortal(
346
346
  /* @__PURE__ */ m(
347
347
  "div",
348
348
  {
@@ -350,33 +350,33 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
350
350
  style: W,
351
351
  children: [
352
352
  w && o && /* @__PURE__ */ e(
353
- g,
353
+ h,
354
354
  {
355
355
  ...o,
356
- activeOptionIndex: r,
357
- optionIdPrefix: v,
356
+ activeOptionIndex: d,
357
+ optionIdPrefix: u,
358
358
  onKeyDown: Y,
359
359
  onSuggestionClick: (t) => {
360
360
  var n, a;
361
- (n = o.onSuggestionClick) == null || n.call(o, t), d == null || d((t == null ? void 0 : t.name) ?? c ?? ""), (a = B()) == null || a.blur();
361
+ (n = o.onSuggestionClick) == null || n.call(o, t), r == null || r((t == null ? void 0 : t.name) ?? c ?? ""), (a = B()) == null || a.blur();
362
362
  }
363
363
  }
364
364
  ),
365
365
  E && /* @__PURE__ */ e(
366
- g,
366
+ h,
367
367
  {
368
368
  terms: [],
369
369
  categories: [],
370
370
  items: [],
371
371
  view: "recent-searches",
372
- recentSearches: k,
372
+ recentSearches: y,
373
373
  onClearRecentSearch: lt,
374
- activeOptionIndex: r,
375
- optionIdPrefix: v,
374
+ activeOptionIndex: d,
375
+ optionIdPrefix: u,
376
376
  onKeyDown: Y,
377
377
  onSuggestionClick: (t) => {
378
378
  var n;
379
- d == null || d((t == null ? void 0 : t.term) ?? c ?? ""), (n = B()) == null || n.blur();
379
+ r == null || r((t == null ? void 0 : t.term) ?? c ?? ""), (n = B()) == null || n.blur();
380
380
  }
381
381
  }
382
382
  )
@@ -390,10 +390,10 @@ import '../../assets/MainNav.css';const Lt = "_main_1sd1k_1", xt = "_column_1sd1
390
390
  function A({
391
391
  href: I,
392
392
  children: F,
393
- ...b
393
+ ...k
394
394
  }) {
395
- return /* @__PURE__ */ e(j, { href: I, className: i.siteLink, ...b, children: F });
395
+ return /* @__PURE__ */ e(j, { href: I, className: i.siteLink, ...k, children: F });
396
396
  }
397
397
  export {
398
- de as MainNav
398
+ re as MainNav
399
399
  };
@@ -1,8 +1,8 @@
1
- import { jsxs as y, Fragment as S, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as y, Fragment as S, jsx as i } from "react/jsx-runtime";
2
2
  import { useState as u } from "react";
3
3
  import { MainNav as g } from "./MainNav.js";
4
- import { Text as v } from "../../atoms/Text/Text.js";
5
- import { Link as f } from "../../atoms/Link/Link.js";
4
+ import { Text as f } from "../../atoms/Text/Text.js";
5
+ import { Link as v } from "../../atoms/Link/Link.js";
6
6
  import { Button as I } from "../../atoms/Button/Button.js";
7
7
  import { CartSlideInPanel as R } from "../../molecules/Cart/CartSlideInPanel.js";
8
8
  import { AddToCartPart as q } from "../../molecules/AddToCartPart/AddToCartPart.js";
@@ -153,28 +153,28 @@ const O = {
153
153
  };
154
154
  function h(e) {
155
155
  return `$${e.items.reduce(
156
- (o, i) => o + (parseFloat(i.price.replace(/[^0-9.]/g, "")) || 0) * i.quantity,
156
+ (o, a) => o + (parseFloat(a.price.replace(/[^0-9.]/g, "")) || 0) * a.quantity,
157
157
  0
158
158
  ).toFixed(2)}`;
159
159
  }
160
160
  const b = /* @__PURE__ */ y("div", { style: { display: "flex", flexDirection: "column", gap: 8, minWidth: 220 }, children: [
161
- /* @__PURE__ */ a(v, { size: "sm", weight: "semibold", children: "Account" }),
162
- /* @__PURE__ */ a(v, { size: "xs", children: "Signed in as Ringo" }),
163
- /* @__PURE__ */ a(f, { href: "/account", "data-popover-close": "true", children: "View Account" }),
164
- /* @__PURE__ */ a(f, { href: "/orders", "data-popover-close": "true", children: "Quotes & Orders" }),
165
- /* @__PURE__ */ a(I, { size: "sm", variant: "secondary", "data-popover-close": "true", onClick: () => alert("Sign out"), children: "Sign Out" })
161
+ /* @__PURE__ */ i(f, { size: "sm", weight: "semibold", children: "Account" }),
162
+ /* @__PURE__ */ i(f, { size: "xs", children: "Signed in as Ringo" }),
163
+ /* @__PURE__ */ i(v, { href: "/account", "data-popover-close": "true", children: "View Account" }),
164
+ /* @__PURE__ */ i(v, { href: "/orders", "data-popover-close": "true", children: "Quotes & Orders" }),
165
+ /* @__PURE__ */ i(I, { size: "sm", variant: "secondary", "data-popover-close": "true", onClick: () => alert("Sign out"), children: "Sign Out" })
166
166
  ] }), C = (e) => {
167
167
  const [r, o] = u(!1);
168
168
  return /* @__PURE__ */ y(S, { children: [
169
- /* @__PURE__ */ a(
169
+ /* @__PURE__ */ i(
170
170
  g,
171
171
  {
172
172
  ...e,
173
173
  open: r,
174
- onCartClick: () => o((i) => !i)
174
+ onCartClick: () => o((a) => !a)
175
175
  }
176
176
  ),
177
- /* @__PURE__ */ a(
177
+ /* @__PURE__ */ i(
178
178
  R,
179
179
  {
180
180
  open: r,
@@ -189,24 +189,24 @@ const b = /* @__PURE__ */ y("div", { style: { display: "flex", flexDirection: "c
189
189
  )
190
190
  ] });
191
191
  }, L = (e) => {
192
- const [r, o] = u(!1), [i, p] = u(0), [l, n] = u("closed"), c = s.items[(i - 1) % 2], D = s.items.reduce((d, G) => d + G.quantity, 0) + i;
192
+ const [r, o] = u(!1), [a, p] = u(0), [l, n] = u("closed"), c = s.items[(a - 1) % 2], D = s.items.reduce((d, G) => d + G.quantity, 0) + a;
193
193
  function k() {
194
194
  n("dismissed"), window.setTimeout(() => {
195
195
  n((d) => d === "dismissed" ? "closed" : d);
196
196
  }, 1e3);
197
197
  }
198
198
  return /* @__PURE__ */ y(S, { children: [
199
- /* @__PURE__ */ a("div", { style: { position: "sticky", top: 0, zIndex: 20, background: "white" }, children: /* @__PURE__ */ a(
199
+ /* @__PURE__ */ i(
200
200
  g,
201
201
  {
202
202
  ...e,
203
- cart: { items: [...s.items, ...i ? [{ ...s.items[0], quantity: i }] : []] },
203
+ cart: { items: [...s.items, ...a ? [{ ...s.items[0], quantity: a }] : []] },
204
204
  open: r,
205
205
  onCartClick: () => o(!0),
206
- cartConfirmationKey: l !== "closed" ? i : void 0,
206
+ cartConfirmationKey: l !== "closed" ? a : void 0,
207
207
  cartConfirmationVisible: l === "open",
208
208
  onCartConfirmationDismiss: k,
209
- cartConfirmation: l !== "closed" && c && /* @__PURE__ */ a(
209
+ cartConfirmation: l !== "closed" && c && /* @__PURE__ */ i(
210
210
  q,
211
211
  {
212
212
  title: c.description,
@@ -216,17 +216,17 @@ const b = /* @__PURE__ */ y("div", { style: { display: "flex", flexDirection: "c
216
216
  quantity: 1,
217
217
  price: c.price,
218
218
  cartCount: D,
219
- subtotal: `$${(parseFloat(h(s).slice(1)) + i * 99.99).toFixed(2)}`,
219
+ subtotal: `$${(parseFloat(h(s).slice(1)) + a * 99.99).toFixed(2)}`,
220
220
  checkoutHref: "/checkout",
221
221
  onDismiss: k
222
222
  }
223
223
  )
224
224
  }
225
- ) }),
226
- /* @__PURE__ */ a("div", { style: { padding: 24, paddingTop: 240, minHeight: "200vh" }, children: /* @__PURE__ */ a(I, { size: "md", variant: "cta-primary", onClick: () => {
225
+ ),
226
+ /* @__PURE__ */ i("div", { style: { padding: 24, paddingTop: 640, minHeight: "200vh" }, children: /* @__PURE__ */ i(I, { size: "md", variant: "cta-primary", onClick: () => {
227
227
  p((d) => d + 1), n("open");
228
228
  }, children: "Add sample part" }) }),
229
- /* @__PURE__ */ a(
229
+ /* @__PURE__ */ i(
230
230
  R,
231
231
  {
232
232
  open: r,
@@ -241,8 +241,8 @@ const b = /* @__PURE__ */ y("div", { style: { display: "flex", flexDirection: "c
241
241
  )
242
242
  ] });
243
243
  }, P = (e) => {
244
- const [r, o] = u(""), [i, p] = u($);
245
- return /* @__PURE__ */ a(
244
+ const [r, o] = u(""), [a, p] = u($);
245
+ return /* @__PURE__ */ i(
246
246
  g,
247
247
  {
248
248
  ...e,
@@ -251,7 +251,7 @@ const b = /* @__PURE__ */ y("div", { style: { display: "flex", flexDirection: "c
251
251
  onClearSearch: () => o(""),
252
252
  onSearch: (l) => alert(`Search for ${l}`),
253
253
  searchSuggestions: r ? U : void 0,
254
- recentSearches: i,
254
+ recentSearches: a,
255
255
  onClearRecentSearch: (l) => {
256
256
  p((n) => n.filter((c) => c.url !== l.url));
257
257
  },
@@ -314,7 +314,7 @@ const b = /* @__PURE__ */ y("div", { style: { display: "flex", flexDirection: "c
314
314
  accountPopoverContent: b
315
315
  },
316
316
  render: L
317
- }, z = {
317
+ }, Q = {
318
318
  args: {
319
319
  account: { name: "Ringo", initials: "RS", number: "123456789012" },
320
320
  cart: s,
@@ -338,7 +338,7 @@ const b = /* @__PURE__ */ y("div", { style: { display: "flex", flexDirection: "c
338
338
  accountPopoverContent: b
339
339
  },
340
340
  render: P
341
- }, Q = {
341
+ }, W = {
342
342
  args: {
343
343
  cart: s,
344
344
  homeRoute: "/",
@@ -360,7 +360,7 @@ const b = /* @__PURE__ */ y("div", { style: { display: "flex", flexDirection: "c
360
360
  categories: m
361
361
  },
362
362
  render: C
363
- }, W = {
363
+ }, z = {
364
364
  args: {
365
365
  account: { name: "Ringo", initials: "RS", number: "123456789012" },
366
366
  cart: s,
@@ -389,9 +389,9 @@ const b = /* @__PURE__ */ y("div", { style: { display: "flex", flexDirection: "c
389
389
  };
390
390
  export {
391
391
  B as Authenticated,
392
- W as Loading,
393
- Q as Unauthenticated,
392
+ z as Loading,
393
+ W as Unauthenticated,
394
394
  V as WithCartItems,
395
- z as WithSearchSuggestions,
395
+ Q as WithSearchSuggestions,
396
396
  O as default
397
397
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.299",
4
+ "version": "0.0.300",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1,40 +0,0 @@
1
- import './assets/Cart.css';const t = "_cartIconButton_mm7xe_2", e = "_splash_mm7xe_15", n = "_splashRay_mm7xe_23", o = "_count_mm7xe_52", m = "_cartContainer_mm7xe_70", a = "_headerWrapper_mm7xe_82", i = "_header_mm7xe_82", _ = "_cartItems_mm7xe_100", c = "_cartItem_mm7xe_100", r = "_cartItemContent_mm7xe_119", s = "_carItemSeparator_mm7xe_131", d = "_itemContainer_mm7xe_135", I = "_topRow_mm7xe_139", l = "_itemInfo_mm7xe_146", x = "_unitDetails_mm7xe_152", p = "_editUnit_mm7xe_156", g = "_purchaseInformation_mm7xe_172", u = "_availabilitySlot_mm7xe_178", h = "_priceSlot_mm7xe_185", A = "_itemManagement_mm7xe_187", C = "_itemImage_mm7xe_200", v = "_removeItem_mm7xe_203", R = "_cartItemAdmonitionsPanel_mm7xe_212", S = "_admonitionsPanelCollapsed_mm7xe_217", T = "_cartItemAdmonitionsTrigger_mm7xe_222", y = "_cartItemAdmonitionHeader_mm7xe_234", b = "_admonitionsReveal_mm7xe_242", f = "_admonitionsRevealExpanded_mm7xe_247", B = "_cartItemAdmonitions_mm7xe_212", E = "_admonitionTriggerIconExpanded_mm7xe_253", P = "_admonitionTriggerIcon_mm7xe_253", k = "_cartItemAdmonitionContent_mm7xe_266", w = "_noItems_mm7xe_276", D = "_subtotal_mm7xe_283", H = "_checkoutButton_mm7xe_290", M = {
2
- cartIconButton: t,
3
- splash: e,
4
- splashRay: n,
5
- count: o,
6
- cartContainer: m,
7
- headerWrapper: a,
8
- header: i,
9
- cartItems: _,
10
- cartItem: c,
11
- cartItemContent: r,
12
- carItemSeparator: s,
13
- itemContainer: d,
14
- topRow: I,
15
- itemInfo: l,
16
- unitDetails: x,
17
- editUnit: p,
18
- purchaseInformation: g,
19
- availabilitySlot: u,
20
- priceSlot: h,
21
- itemManagement: A,
22
- itemImage: C,
23
- removeItem: v,
24
- cartItemAdmonitionsPanel: R,
25
- admonitionsPanelCollapsed: S,
26
- cartItemAdmonitionsTrigger: T,
27
- cartItemAdmonitionHeader: y,
28
- admonitionsReveal: b,
29
- admonitionsRevealExpanded: f,
30
- cartItemAdmonitions: B,
31
- admonitionTriggerIconExpanded: E,
32
- admonitionTriggerIcon: P,
33
- cartItemAdmonitionContent: k,
34
- noItems: w,
35
- subtotal: D,
36
- checkoutButton: H
37
- };
38
- export {
39
- M as s
40
- };