@best-bundles/bundle-ui 0.0.44 → 0.0.45

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
@@ -1,54 +1,54 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('._button_18rtl_1{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--bb-font-family, inherit);border:1px solid var(--bb-button-border, rgba(0, 0, 0, .12));background:var(--bb-button-bg, #111827);color:var(--bb-button-text, #ffffff);font:inherit;line-height:1;padding:10px 14px;border-radius:var(--bb-button-radius, 10px);cursor:pointer;transition:transform .12s ease,background .12s ease,border-color .12s ease,opacity .12s ease}._button_18rtl_1:hover{background:var(--bb-button-bg-hover, #0b1220)}._button_18rtl_1:active{transform:translateY(1px)}._button_18rtl_1:disabled{opacity:.6;cursor:not-allowed}._button_18rtl_1:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._backdrop_p0w0a_1{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--bb-backdrop-z-index, 2147483647);display:flex;justify-content:flex-end;background:var(--bb-backdrop-bg, rgba(0, 0, 0, .5));-webkit-backdrop-filter:blur(var(--bb-backdrop-blur, 2px));backdrop-filter:blur(var(--bb-backdrop-blur, 2px));padding:var(--bb-backdrop-padding, 12px);opacity:0;transition:opacity var(--bb-drawer-transition-duration, .22s) ease}._celebrationOverlay_p0w0a_14{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;pointer-events:none;z-index:50}._celebrationChip_p0w0a_23{font-family:var(--bb-font-family-body, "Cabin", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);letter-spacing:.03em;font-size:18px;line-height:1;padding:12px 16px;border-radius:999px;color:var(--bb-celebration-text, #0b1b44);background:linear-gradient(180deg,var(--bb-celebration-bg-top, #ffffff),var(--bb-celebration-bg-bottom, #bae6fd));border:2px solid var(--bb-celebration-border, rgba(37, 99, 235, .28));box-shadow:0 18px 55px #0006,0 10px 28px #2563eb33,inset 0 1px #ffffffbf;transform-origin:50% 60%;will-change:transform,opacity,filter;animation:_bbCelebrationPop_p0w0a_1 2.8s cubic-bezier(.16,1,.3,1) forwards;filter:saturate(1.05)}@keyframes _bbCelebrationPop_p0w0a_1{0%{opacity:0;transform:translateY(10px) scale(.6);filter:blur(1px) saturate(1.1)}12%{opacity:1;transform:translateY(0) scale(1.12);filter:blur(0px) saturate(1.1)}22%{opacity:1;transform:translateY(0) scale(1)}80%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-10px) scale(.98)}}._backdropOpen_p0w0a_74{opacity:1}._backdropClosed_p0w0a_78{opacity:0}._panel_p0w0a_82{width:440px;max-width:100%;min-width:0;height:100%;background:var(--bb-surface-bg, #ffffff);color:var(--bb-text-color, #111827);font-family:var(--bb-font-family-body, "Cabin", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);border-radius:var(--bb-panel-radius, 16px);box-shadow:0 20px 60px #00000059;display:grid;grid-template-rows:auto 1fr auto;overflow:hidden;outline:none;position:relative;top:unset;right:unset;bottom:unset;left:unset}._panelOpen_p0w0a_103{animation:_bbSlideInFromRight_p0w0a_1 var(--bb-drawer-transition-duration, .22s) ease forwards}._panelClosed_p0w0a_107{animation:_bbSlideOutToRight_p0w0a_1 var(--bb-drawer-transition-duration, .22s) ease forwards}@keyframes _bbSlideInFromRight_p0w0a_1{0%{transform:translate(110%)}to{transform:translate(0)}}@keyframes _bbSlideOutToRight_p0w0a_1{0%{transform:translate(0)}to{transform:translate(110%)}}@media(prefers-reduced-motion:reduce){._backdrop_p0w0a_1{transition:none}._celebrationChip_p0w0a_23,._panelOpen_p0w0a_103,._panelClosed_p0w0a_107{animation:none}}._header_p0w0a_146{display:grid;grid-template-columns:36px 1fr 36px;align-items:center;column-gap:12px;padding:var(--bb-header-padding, 16px 16px 12px 16px);border-bottom:1px solid var(--bb-border-color, rgba(17, 24, 39, .08))}._headerCenter_p0w0a_155{position:relative;min-width:0;display:flex;justify-content:center;align-items:center}._title_p0w0a_163{font-size:24px;margin:0;line-height:1.2;font-family:var(--bb-font-family-title, "Bebas Neue", "Cabin", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);letter-spacing:.02em;color:var(--bb-title-color, var(--bb-text-color, #111827))}._searchIconButton_p0w0a_172{width:36px;height:36px;border-radius:10px;border:1px solid var(--bb-border-strong-color, rgba(17, 24, 39, .12));background:var(--bb-surface-bg, #ffffff);color:var(--bb-text-color, #111827);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}._searchIconButton_p0w0a_172:hover{background:var(--bb-control-bg-hover, rgba(17, 24, 39, .04))}._searchIconButton_p0w0a_172:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._headerTitleWrap_p0w0a_195{transition:opacity .18s ease,transform .22s ease}._headerSearchWrap_p0w0a_199{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;pointer-events:none;opacity:0;transform:translateY(-2px);transition:opacity .18s ease,transform .22s ease}._headerSearchOpen_p0w0a_211 ._headerTitleWrap_p0w0a_195{opacity:0;transform:translateY(2px);pointer-events:none}._headerSearchOpen_p0w0a_211 ._headerSearchWrap_p0w0a_199{opacity:1;transform:translateY(0);pointer-events:auto}._searchBar_p0w0a_223{width:min(320px,100%);height:36px;display:flex;align-items:center;gap:8px;background:var(--bb-surface-bg, #ffffff);border:1px solid var(--bb-border-strong-color, rgba(17, 24, 39, .12));border-radius:10px;padding:0 8px}._searchInput_p0w0a_235{width:100%;border:none;outline:none;background:transparent;font:inherit;font-size:14px;min-width:0;height:100%;line-height:36px;padding:0}._searchInput_p0w0a_235::-webkit-search-cancel-button,._searchInput_p0w0a_235::-webkit-search-decoration,._searchInput_p0w0a_235::-webkit-search-results-button,._searchInput_p0w0a_235::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}._searchClearButton_p0w0a_256{border:none;background:transparent;color:var(--bb-text-color, #111827);font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:6px;border-radius:10px;line-height:1}._searchClearButton_p0w0a_256:hover{background:var(--bb-control-bg-hover, rgba(17, 24, 39, .04))}._searchClearButton_p0w0a_256:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._closeButton_p0w0a_278{border:1px solid var(--bb-border-strong-color, rgba(17, 24, 39, .12));background:var(--bb-surface-bg, #ffffff);color:var(--bb-text-color, #111827);width:36px;height:36px;border-radius:10px;cursor:pointer;flex:0 0 auto;padding:0}._closeButton_p0w0a_278:hover{background:var(--bb-control-bg-hover, rgba(17, 24, 39, .04))}._closeButton_p0w0a_278:disabled{opacity:.6;cursor:not-allowed}._closeButton_p0w0a_278:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}@media(prefers-reduced-motion:reduce){._headerTitleWrap_p0w0a_195,._headerSearchWrap_p0w0a_199{transition:none}}._body_p0w0a_312{padding:var(--bb-body-padding, 8px 16px);overflow:auto}._muted_p0w0a_317{color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65));margin:0 0 12px}._error_p0w0a_322{color:var(--bb-error-color, #b91c1c);margin:0 0 12px}._variants_p0w0a_327{margin-top:4px}._variantList_p0w0a_331{list-style:none;padding:0;margin:0;display:grid;gap:10px}._emptyState_p0w0a_339{margin:0;padding:20px 16px;border-radius:var(--bb-border-radius, 12px);border:1px dashed var(--bb-border-color, rgba(17, 24, 39, .12));background:var(--bb-surface-subtle-bg, rgba(17, 24, 39, .02));color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65));font-size:13px;line-height:1.5;text-align:center}._variantRow_p0w0a_351{display:grid;grid-template-columns:1fr auto;gap:0px;align-items:stretch;padding:5px}._variantRowSoldOut_p0w0a_359{opacity:.65}._variantLeft_p0w0a_363{min-width:0;display:flex;gap:12px;align-items:center}._addToBundleButton_p0w0a_370{height:100%;align-self:stretch;border-radius:12px;border:none;background:var(--bb-cta-bg, #91aae5);color:var(--bb-cta-text, #ffffff);font:inherit;font-weight:800;padding:0 16px;cursor:pointer;white-space:nowrap}._addToBundleButton_p0w0a_370:hover{background:var(--bb-cta-bg-hover, #1d4ed8)}._addToBundleButton_p0w0a_370:disabled{opacity:.6;cursor:not-allowed}._addToBundleButton_p0w0a_370:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._soldOutContainer_p0w0a_398{display:flex;align-items:center;justify-content:center;height:100%;padding:0 16px}._stockLimitContainer_p0w0a_406{display:flex;align-items:center;justify-content:center;height:100%;max-width:120px;padding:0 12px}._soldOut_p0w0a_398{align-self:center;text-align:center;color:var(--bb-muted-color, rgba(17, 24, 39));font-size:.9em;font-weight:600;pointer-events:none}._stockLimitNotice_p0w0a_424{color:var(--bb-muted-color, rgba(17, 24, 39, .72));font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;text-align:center}._variantThumb_p0w0a_433{width:60px;height:60px;border-radius:12px;overflow:hidden;border:1px solid var(--bb-border-color, rgba(17, 24, 39, .08));background:var(--bb-surface-subtle-bg, rgba(17, 24, 39, .02));flex:0 0 auto}._variantThumbImg_p0w0a_443{width:100%;height:100%;object-fit:cover;display:block}._variantThumbFallback_p0w0a_450{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--bb-text-color, #111827)}._variantInfo_p0w0a_460{min-width:0}._variantName_p0w0a_464{font-size:14px;font-weight:600;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._variantMeta_p0w0a_473{font-size:12px;color:var(--bb-muted-color, rgba(17, 24, 39, .6));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._variantPriceRow_p0w0a_481{display:flex;align-items:baseline;gap:8px;margin-top:4px}._variantCompareAt_p0w0a_488{font-size:12px;color:var(--bb-muted-color, rgba(17, 24, 39, .6));text-decoration:line-through}._variantPrice_p0w0a_481{font-size:13px;font-weight:800}._qtyControls_p0w0a_499{display:inline-flex;align-items:center;gap:6px}._qtyControlsWrap_p0w0a_505{display:grid;justify-items:center;gap:4px}._qtyButton_p0w0a_511{padding:0;width:34px;height:34px;border-radius:10px;border:1px solid var(--bb-border-strong-color, rgba(17, 24, 39, .12));background:var(--bb-surface-bg, #ffffff);cursor:pointer;line-height:1;font-size:16px}._qtyButton_p0w0a_511:hover{background:var(--bb-control-bg-hover, rgba(17, 24, 39, .04))}._qtyButton_p0w0a_511:disabled{opacity:.6;cursor:not-allowed}._qtyButton_p0w0a_511:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._qtyValue_p0w0a_537{min-width:18px;text-align:center;font-variant-numeric:tabular-nums;font-weight:700}._footer_p0w0a_544{padding:var(--bb-footer-padding, 12px 16px 16px 16px);border-top:1px solid var(--bb-border-color, rgba(17, 24, 39, .08));background:var(--bb-surface-bg, #ffffff);position:relative;min-width:0}._poweredBy_p0w0a_552{font-size:10px;color:var(rgba(17, 24, 39, .6));text-align:center;margin-top:10px}._poweredBy_p0w0a_552 a{color:inherit;text-decoration:none}._boxSummaryWindow_p0w0a_564{margin-bottom:6px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding-bottom:6px;min-width:0;scrollbar-width:none;-ms-overflow-style:none}._boxSummaryWindow_p0w0a_564::-webkit-scrollbar{display:none}._boxSummaryRow_p0w0a_582{--bb-box-gap: 10px;display:flex;align-items:flex-start;gap:var(--bb-box-gap);width:100%}._boxSlot_p0w0a_590{flex:0 0 calc((100% - (4 * var(--bb-box-gap))) / 5);max-width:calc((100% - (4 * var(--bb-box-gap))) / 5);display:flex;flex-direction:column;align-items:stretch;gap:6px}._boxItem_p0w0a_599{width:100%;aspect-ratio:1 / 1;border-radius:12px;position:relative;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;box-sizing:border-box}._boxItemClickable_p0w0a_611{cursor:pointer}._boxItemClickable_p0w0a_611:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._boxThresholdLabel_p0w0a_620{font-size:11px;line-height:1.15;font-weight:700;color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65));text-align:center;white-space:wrap;overflow:hidden;text-overflow:ellipsis}._boxItemPlaceholder_p0w0a_631{border:1px dashed var(--bb-border-strong-color, rgba(17, 24, 39, .18));background:var(--bb-surface-subtle-bg, rgba(17, 24, 39, .02));color:var(--bb-muted-color, rgba(17, 24, 39, .6))}._boxItemFilled_p0w0a_637{border:1px solid var(--bb-border-color, rgba(17, 24, 39, .08));background:var(--bb-surface-bg, #ffffff);overflow:hidden}._boxItemThreshold_p0w0a_643{border-style:solid;border-width:2px;border-color:var(--bb-tier-border, rgba(37, 99, 235, .55));background:var(--bb-tier-bg, rgba(37, 99, 235, .08));color:var(--bb-tier-text, rgba(29, 78, 216, .95))}._boxItemDiscountText_p0w0a_651{font-size:12px;font-weight:800;text-align:center;line-height:1.1;padding:6px}._boxItemPlus_p0w0a_659{font-size:22px;font-weight:700;opacity:.5;line-height:1}._boxItemImage_p0w0a_666{width:100%;height:100%;object-fit:cover;display:block}._boxItemFallback_p0w0a_673{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:var(--bb-surface-subtle-bg, rgba(17, 24, 39, .04));color:var(--bb-text-color, #111827);font-weight:800}._ctaButtonGroup_p0w0a_684{display:flex;gap:8px;width:100%;transition:gap .3s cubic-bezier(.4,0,.2,1)}._ctaButtonGroupAnimating_p0w0a_691{gap:0}._cta_p0w0a_684{width:100%;border:1px solid var(--bb-cta-border, rgba(0, 0, 0, .12));background:var(--bb-cta-bg, #2563eb);color:var(--bb-cta-text, #ffffff);font:inherit;font-weight:700;padding:12px 14px;border-radius:12px;cursor:pointer}._ctaSecondary_p0w0a_707{width:100%;border:2px solid var(--bb-cta-bg, #2563eb);background:transparent;color:var(--bb-cta-bg, #2563eb);font:inherit;font-weight:700;padding:10px 14px;border-radius:12px;cursor:pointer}._ctaDualLeft_p0w0a_719{width:100%;border:2px solid var(--bb-cta-bg, #2563eb);background:transparent;color:var(--bb-cta-bg, #2563eb);font:inherit;font-weight:700;padding:10px 14px;border-radius:12px;cursor:pointer;transition:border-radius .3s cubic-bezier(.4,0,.2,1),background .3s cubic-bezier(.4,0,.2,1),color .3s cubic-bezier(.4,0,.2,1),border-right-width .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1)}._ctaDualLeftAnimating_p0w0a_737{border-top-right-radius:0;border-bottom-right-radius:0;border-right-width:0;background:var(--bb-cta-bg, #2563eb);opacity:.6;color:var(--bb-cta-text, #ffffff)}._ctaDualLeftAnimating_p0w0a_737>span{opacity:0}._ctaDualRight_p0w0a_750{width:100%;border:1px solid var(--bb-cta-border, rgba(0, 0, 0, .12));background:var(--bb-cta-bg, #2563eb);color:var(--bb-cta-text, #ffffff);font:inherit;font-weight:700;padding:12px 14px;border-radius:12px;cursor:pointer;transition:border-radius .3s cubic-bezier(.4,0,.2,1),border-left-width .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1)}._ctaDualRightAnimating_p0w0a_766{border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:0;opacity:.6}._ctaDualRightAnimating_p0w0a_766>span{opacity:0}._ctaTotals_p0w0a_777{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-variant-numeric:tabular-nums}._ctaDiscountBadge_p0w0a_785{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;background:var(--bb-tier-bg, rgba(37, 99, 235, .12));border:1px solid var(--bb-tier-border, rgba(37, 99, 235, .3));color:var(--bb-tier-text, rgba(29, 78, 216, .95));white-space:nowrap}._ctaTotalsWrap_p0w0a_799{overflow:hidden;max-height:0;opacity:0;transform:translateY(4px);margin-bottom:0;transition:max-height .22s ease,opacity .16s ease,transform .22s ease,margin-bottom .22s ease}._ctaTotalsWrapVisible_p0w0a_812{max-height:40px;opacity:1;transform:translateY(0);margin-bottom:8px}._ctaTotalsStrike_p0w0a_819{opacity:.85;text-decoration:line-through;font-weight:700;color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65))}._ctaTotalsPrice_p0w0a_826{font-weight:900;color:var(--bb-text-color, #111827)}@media(prefers-reduced-motion:reduce){._ctaTotalsWrap_p0w0a_799{transition:none}}._cta_p0w0a_684:hover{background:var(--bb-cta-bg-hover, #1d4ed8)}._cta_p0w0a_684:disabled{opacity:.6;cursor:not-allowed}._cta_p0w0a_684:focus-visible{outline:2px solid var(--bb-cta-focus-ring, var(--bb-text-color, #111827));outline-offset:2px}._ctaSecondary_p0w0a_707:hover{background:var(--bb-cta-bg, #2563eb);color:var(--bb-cta-text, #ffffff)}._ctaSecondary_p0w0a_707:disabled{opacity:.6;cursor:not-allowed}._ctaSecondary_p0w0a_707:focus-visible{outline:2px solid var(--bb-cta-focus-ring, var(--bb-text-color, #111827));outline-offset:2px}._ctaDualLeft_p0w0a_719:hover{background:var(--bb-cta-bg, #2563eb);color:var(--bb-cta-text, #ffffff)}._ctaDualLeft_p0w0a_719:disabled{opacity:.6;cursor:not-allowed}._ctaDualLeft_p0w0a_719:focus-visible{outline:2px solid var(--bb-cta-focus-ring, var(--bb-text-color, #111827));outline-offset:2px}._ctaDualRight_p0w0a_750:hover{background:var(--bb-cta-bg-hover, #1d4ed8)}._ctaDualRight_p0w0a_750:disabled{opacity:.6;cursor:not-allowed}._ctaDualRight_p0w0a_750:focus-visible{outline:2px solid var(--bb-cta-focus-ring, var(--bb-text-color, #111827));outline-offset:2px}._helperText_p0w0a_895{margin-top:8px;font-size:12px;color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65));text-align:center}@media(max-width:767px){._backdrop_p0w0a_1{padding:0;justify-content:stretch}._panel_p0w0a_82{width:100%;height:100%;border-radius:0}}._panel_gafs6_2 button,._panel_gafs6_2 input,._panel_gafs6_2 [role=button]{box-sizing:border-box;margin:0}._panel_gafs6_2{background:var(--bb-surface-bg, #ffffff);color:var(--bb-text-color, #111827);font-family:var(--bb-font-family-body, "Cabin", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);border:1px solid var(--bb-border-color, rgba(17, 24, 39, .08));border-radius:var(--bb-panel-radius, 16px);padding:20px;display:grid;gap:14px}._header_gafs6_20{text-align:start}._title_gafs6_24{font-size:22px;margin:0;font-family:var(--bb-font-family-title, "Bebas Neue", "Cabin", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);letter-spacing:.02em;color:var(--bb-title-color, var(--bb-text-color, #111827))}._status_gafs6_32{font-size:13px;color:var(--bb-muted-color, rgba(15, 23, 42, .6))}._error_gafs6_37{font-size:13px;color:#b91c1c;font-weight:600}._section_gafs6_43{display:grid;gap:6px}._sectionTitle_gafs6_48{text-align:left;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--bb-muted-color, rgba(15, 23, 42, .6))}._rules_gafs6_57{display:flex;justify-content:center;gap:6px}._rulesList_gafs6_63{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;list-style:none;margin:0;padding:0}._ruleItem_gafs6_74{display:flex;flex-direction:column;align-items:center;gap:6px;padding:6px 10px;border-radius:var(--bb-border-radius, 12px);border:1px solid var(--bb-tier-border, rgba(37, 99, 235, .25));background:var(--bb-tier-bg, rgba(37, 99, 235, .06));color:var(--bb-tier-text, #1f2937)}._ruleMin_gafs6_86{font-weight:600;font-size:13px}._ruleDiscount_gafs6_91{font-weight:700;font-size:13px}._ruleLabel_gafs6_96{font-size:12px;opacity:.7}._rulesVisual_gafs6_101{display:flex;flex-direction:column;gap:4px;width:100%}._rulesLabelsRow_gafs6_108,._rulesLinesRow_gafs6_115{display:flex;flex-direction:row;gap:4px;width:100%}._rulesLineLabelCell_gafs6_122{flex:1 1 0;display:flex;align-items:flex-end;justify-content:center}._rulesLineLabelCell_gafs6_122:empty{display:flex!important}._rulesLineLabel_gafs6_122{font-size:11px;font-weight:600;color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65))}._rulesLineLabelSpacer_gafs6_139{height:1em}._rulesLine_gafs6_115{display:block;width:100%;height:4px;border-radius:999px;background-color:var(--bb-tier-background, rgba(148, 163, 184, .22));transition:background-color .2s ease}._rulesLine_gafs6_115:empty{display:block!important}._rulesLineEmpty_gafs6_156{background-color:var(--bb-tier-background, rgba(148, 163, 184, .22))}._rulesLineFilled_gafs6_160{background-color:var(--bb-tier-border, rgba(37, 99, 235, .8))}._variants_gafs6_164{display:grid;gap:12px;max-height:400px;overflow-y:auto;padding-right:6px}._variantList_gafs6_172{list-style:none;padding:0;margin:0;display:grid;gap:10px}._emptyState_gafs6_180{margin:0;padding:20px 16px;border-radius:var(--bb-border-radius, 12px);border:1px dashed var(--bb-border-color, rgba(15, 23, 42, .12));background:var(--bb-surface-subtle-bg, rgba(17, 24, 39, .02));color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65));font-size:13px;line-height:1.5;text-align:center}._variantRow_gafs6_192{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:start;padding:8px;border-radius:var(--bb-border-radius, 12px);border:1px solid var(--bb-border-color, rgba(15, 23, 42, .08));background:#fff;transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease}._variantRowInteractive_gafs6_204{cursor:pointer}._variantRowSelected_gafs6_208{border-color:#2563eb40;box-shadow:0 0 0 1px #2563eb14}._variantRowSoldOut_gafs6_213{opacity:.65}._variantMedia_gafs6_217{display:grid;align-items:start;justify-items:center;width:76px;aspect-ratio:1 / 1}._variantContent_gafs6_225{display:flex;flex-direction:column;justify-content:space-between;gap:4px;height:100%}._variantHeader_gafs6_233{display:flex;flex-direction:column;gap:4px}._variantTitle_gafs6_239{font-weight:700;font-size:14px;color:var(--bb-text-color, #111827)}._variantDetailsRow_gafs6_245{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:6px;align-items:start}._variantImage_gafs6_253{width:100%;height:100%;border-radius:var(--bb-border-radius, 12px);object-fit:cover;background:#94a3b833}._variantImageFallback_gafs6_261{width:100%;height:100%;border-radius:var(--bb-border-radius, 12px);background:linear-gradient(135deg,#94a3b84d,#94a3b80d);display:grid;place-items:center;color:#94a3b8cc;font-size:10px;text-transform:uppercase;letter-spacing:.08em}._variantMeta_gafs6_274{font-size:12px;color:var(--bb-muted-color, rgba(15, 23, 42, .6))}._variantPrice_gafs6_279{font-size:13px;font-weight:600;color:#0f172a}._variantFooterRow_gafs6_285{display:flex;align-items:center;justify-content:space-between;width:100%}._variantActions_gafs6_292{display:grid;align-items:end;justify-items:end}._qtyActions_gafs6_298{display:inline-flex;align-items:center;gap:6px}._qtyActionsWrap_gafs6_304{display:grid;justify-items:end;gap:4px}._variantUnavailable_gafs6_310{display:none}._qtyControls_gafs6_314{display:inline-flex;align-items:center;gap:6px;padding:4px;border-radius:999px;border:1px solid var(--bb-border-strong-color, rgba(15, 23, 42, .12));background:#0f172a0a}._qtyButton_gafs6_324{width:30px;height:30px;padding:0;border-radius:999px;border:0;background:var(--bb-surface-bg, #ffffff);color:var(--bb-text-color, #111827);font-size:16px;cursor:pointer;display:grid;place-items:center}._qtyButton_gafs6_324:disabled{cursor:not-allowed;opacity:.4}._qtyButton_gafs6_324:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._qtyValue_gafs6_348{min-width:22px;text-align:center;font-weight:600;font-size:13px}._soldOut_gafs6_355{color:var(--bb-muted-color, rgba(17, 24, 39));font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}._stockLimitNotice_gafs6_363{color:var(--bb-muted-color, rgba(17, 24, 39, .72));font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;text-align:end}._qtyChip_gafs6_372{min-width:44px;height:30px;padding:0 2px;border-radius:var(--bb-border-radius, 12px);background:#0f172a14;color:#0f172a;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:3px}._qtyChipInteractive_gafs6_387{cursor:pointer}._qtyChipValue_gafs6_391{min-width:14px;padding-left:3px;text-align:center}._qtyChipPlus_gafs6_397{margin-bottom:-3px;font-weight:500}._qtyChipClear_gafs6_402{width:22px;height:22px;border-radius:999px;border:1px solid rgba(15,23,42,.12);background:#fff;color:#0f172a;display:grid;place-items:center;cursor:pointer;padding:0;transition:background .16s ease,color .16s ease}._qtyChip_gafs6_372:hover ._qtyChipClear_gafs6_402{background:#0f172a;color:#fff}._qtyChipClear_gafs6_402:disabled{cursor:not-allowed;opacity:.45}._qtyChip_gafs6_372:hover ._qtyChipClear_gafs6_402:disabled{background:#fff;color:#0f172a}._qtyTrash_gafs6_431{width:22px;height:22px;border:0;background:transparent;color:#0f172a;display:grid;place-items:center;cursor:pointer;padding:0}._footer_gafs6_443{display:grid;padding-top:6px}._boxSummaryWindow_gafs6_448{margin-bottom:6px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding-bottom:6px;scrollbar-width:none;-ms-overflow-style:none}._boxSummaryWindow_gafs6_448::-webkit-scrollbar{display:none}._boxSummaryRow_gafs6_462{--bb-box-gap: 10px;display:flex;align-items:flex-start;gap:var(--bb-box-gap);width:100%}._boxSlot_gafs6_470{flex:0 0 calc((100% - (4 * var(--bb-box-gap))) / 5);max-width:calc((100% - (4 * var(--bb-box-gap))) / 5);display:flex;flex-direction:column;align-items:stretch;gap:6px}._boxItem_gafs6_479{width:100%;border-radius:var(--bb-border-radius, 12px);position:relative;display:block;-webkit-user-select:none;user-select:none;box-sizing:border-box;overflow:hidden}._boxItem_gafs6_479:before{content:"";display:block;padding-bottom:100%}._boxItemFilled_gafs6_496{border:1px solid var(--bb-border-color, rgba(17, 24, 39, .08));background:var(--bb-surface-bg, #ffffff);overflow:hidden}._boxItemPlaceholder_gafs6_502{border:1px dashed var(--bb-border-strong-color, rgba(17, 24, 39, .18));background:var(--bb-surface-subtle-bg, rgba(17, 24, 39, .02));color:var(--bb-muted-color, rgba(17, 24, 39, .6))}._boxItemThreshold_gafs6_508{border-style:solid;border-width:2px;border-color:var(--bb-tier-border, rgba(37, 99, 235, .55));background:var(--bb-tier-bg, rgba(37, 99, 235, .08));color:var(--bb-tier-text, rgba(29, 78, 216, .95))}._boxItemClickable_gafs6_516{cursor:pointer}._boxItemClickable_gafs6_516:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._boxItemImage_gafs6_525{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;min-width:0;min-height:0;object-fit:cover;display:block}._boxItemFallback_gafs6_536{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:var(--bb-surface-subtle-bg, rgba(17, 24, 39, .04));color:var(--bb-text-color, #111827);font-weight:800}._boxItemPlus_gafs6_549{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;opacity:.5;line-height:1}._boxItemDiscountText_gafs6_561{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;text-align:center;line-height:1.1;padding:6px}._boxThresholdLabel_gafs6_574{font-size:11px;line-height:1.15;font-weight:700;color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65));text-align:center;white-space:wrap;overflow:hidden;text-overflow:ellipsis}._totalsReveal_gafs6_585{max-height:0;padding-bottom:12px;opacity:0;overflow:hidden;transition:max-height .26s ease,opacity .2s ease}._totalsRevealOpen_gafs6_593{max-height:80px;opacity:1}._ctaTotalsWrap_gafs6_598{opacity:0;transition:opacity .18s ease .12s}._ctaTotalsWrapVisible_gafs6_603{opacity:1}._ctaTotals_gafs6_598{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:14px;background:#0f172a0a;font-size:13px;font-weight:600}._ctaDiscountBadge_gafs6_618{padding:4px 8px;border-radius:999px;background:var(--bb-tier-bg, rgba(37, 99, 235, .12));color:var(--bb-tier-text, rgba(30, 64, 175, .9));border:1px solid var(--bb-tier-border, rgba(37, 99, 235, .3));font-size:11px;text-transform:uppercase;letter-spacing:.08em}._ctaTotalsStrike_gafs6_629{text-decoration:line-through;color:#64748bcc;margin-right:6px}._ctaTotalsPrice_gafs6_635{font-weight:700;color:#0f172a}._cta_gafs6_598{border:0;border-radius:var(--bb-border-radius, 12px);padding:14px 18px;min-height:44px;font-weight:700;font-size:14px;background:var(--bb-cta-bg, #111827);color:var(--bb-cta-text, #ffffff);cursor:pointer;letter-spacing:.02em;transition:transform .14s ease,box-shadow .14s ease,background .14s ease;box-shadow:0 10px 24px #0f172a40}._cta_gafs6_598:hover{transform:translateY(-1px);background:var(--bb-cta-bg-hover, #0f172a)}._cta_gafs6_598:disabled{cursor:not-allowed;transform:none;box-shadow:none;opacity:.6}._ctaButtonGroup_gafs6_667{display:grid;grid-template-columns:1fr 1fr;gap:10px}._ctaDualLeft_gafs6_673,._ctaDualRight_gafs6_674{border:0;border-radius:var(--bb-border-radius, 12px);padding:12px 16px;min-height:44px;font-weight:700;font-size:13px;cursor:pointer}._ctaDualLeft_gafs6_673{background:#fff;color:#0f172a;border:1px solid rgba(15,23,42,.15)}._ctaDualRight_gafs6_674{background:var(--bb-cta-bg, #111827);color:var(--bb-cta-text, #ffffff)}._ctaDualLeft_gafs6_673:disabled,._ctaDualRight_gafs6_674:disabled{cursor:not-allowed;opacity:.6}._poweredBy_gafs6_701{padding-top:12px;font-size:11px;color:#64748bcc;text-align:center}._poweredBy_gafs6_701 a{color:inherit;text-decoration:none;font-weight:700}@media(max-width:640px){._panel_gafs6_2{padding:16px}._variantRow_gafs6_192{grid-template-columns:64px minmax(0,1fr);gap:10px}._qtyControls_gafs6_314{justify-self:start}._variantDetailsRow_gafs6_245{grid-template-columns:1fr}}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import { jsx as l, jsxs as R, Fragment as kt } from "react/jsx-runtime";
3
- import yt, { useCallback as J, useState as j, useRef as U, useEffect as O, useMemo as L, createContext as Gt, useContext as Qt, forwardRef as zt, createElement as Tt } from "react";
4
- const pt = {
1
+ (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('._button_18rtl_1{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--bb-font-family, inherit);border:1px solid var(--bb-button-border, rgba(0, 0, 0, .12));background:var(--bb-button-bg, #111827);color:var(--bb-button-text, #ffffff);font:inherit;line-height:1;padding:10px 14px;border-radius:var(--bb-button-radius, 10px);cursor:pointer;transition:transform .12s ease,background .12s ease,border-color .12s ease,opacity .12s ease}._button_18rtl_1:hover{background:var(--bb-button-bg-hover, #0b1220)}._button_18rtl_1:active{transform:translateY(1px)}._button_18rtl_1:disabled{opacity:.6;cursor:not-allowed}._button_18rtl_1:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._backdrop_p0w0a_1{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--bb-backdrop-z-index, 2147483647);display:flex;justify-content:flex-end;background:var(--bb-backdrop-bg, rgba(0, 0, 0, .5));-webkit-backdrop-filter:blur(var(--bb-backdrop-blur, 2px));backdrop-filter:blur(var(--bb-backdrop-blur, 2px));padding:var(--bb-backdrop-padding, 12px);opacity:0;transition:opacity var(--bb-drawer-transition-duration, .22s) ease}._celebrationOverlay_p0w0a_14{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;pointer-events:none;z-index:50}._celebrationChip_p0w0a_23{font-family:var(--bb-font-family-body, "Cabin", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);letter-spacing:.03em;font-size:18px;line-height:1;padding:12px 16px;border-radius:999px;color:var(--bb-celebration-text, #0b1b44);background:linear-gradient(180deg,var(--bb-celebration-bg-top, #ffffff),var(--bb-celebration-bg-bottom, #bae6fd));border:2px solid var(--bb-celebration-border, rgba(37, 99, 235, .28));box-shadow:0 18px 55px #0006,0 10px 28px #2563eb33,inset 0 1px #ffffffbf;transform-origin:50% 60%;will-change:transform,opacity,filter;animation:_bbCelebrationPop_p0w0a_1 2.8s cubic-bezier(.16,1,.3,1) forwards;filter:saturate(1.05)}@keyframes _bbCelebrationPop_p0w0a_1{0%{opacity:0;transform:translateY(10px) scale(.6);filter:blur(1px) saturate(1.1)}12%{opacity:1;transform:translateY(0) scale(1.12);filter:blur(0px) saturate(1.1)}22%{opacity:1;transform:translateY(0) scale(1)}80%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-10px) scale(.98)}}._backdropOpen_p0w0a_74{opacity:1}._backdropClosed_p0w0a_78{opacity:0}._panel_p0w0a_82{width:440px;max-width:100%;min-width:0;height:100%;background:var(--bb-surface-bg, #ffffff);color:var(--bb-text-color, #111827);font-family:var(--bb-font-family-body, "Cabin", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);border-radius:var(--bb-panel-radius, 16px);box-shadow:0 20px 60px #00000059;display:grid;grid-template-rows:auto 1fr auto;overflow:hidden;outline:none;position:relative;top:unset;right:unset;bottom:unset;left:unset}._panelOpen_p0w0a_103{animation:_bbSlideInFromRight_p0w0a_1 var(--bb-drawer-transition-duration, .22s) ease forwards}._panelClosed_p0w0a_107{animation:_bbSlideOutToRight_p0w0a_1 var(--bb-drawer-transition-duration, .22s) ease forwards}@keyframes _bbSlideInFromRight_p0w0a_1{0%{transform:translate(110%)}to{transform:translate(0)}}@keyframes _bbSlideOutToRight_p0w0a_1{0%{transform:translate(0)}to{transform:translate(110%)}}@media(prefers-reduced-motion:reduce){._backdrop_p0w0a_1{transition:none}._celebrationChip_p0w0a_23,._panelOpen_p0w0a_103,._panelClosed_p0w0a_107{animation:none}}._header_p0w0a_146{display:grid;grid-template-columns:36px 1fr 36px;align-items:center;column-gap:12px;padding:var(--bb-header-padding, 16px 16px 12px 16px);border-bottom:1px solid var(--bb-border-color, rgba(17, 24, 39, .08))}._headerCenter_p0w0a_155{position:relative;min-width:0;display:flex;justify-content:center;align-items:center}._title_p0w0a_163{font-size:24px;margin:0;line-height:1.2;font-family:var(--bb-font-family-title, "Bebas Neue", "Cabin", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);letter-spacing:.02em;color:var(--bb-title-color, var(--bb-text-color, #111827))}._searchIconButton_p0w0a_172{width:36px;height:36px;border-radius:10px;border:1px solid var(--bb-border-strong-color, rgba(17, 24, 39, .12));background:var(--bb-surface-bg, #ffffff);color:var(--bb-text-color, #111827);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}._searchIconButton_p0w0a_172:hover{background:var(--bb-control-bg-hover, rgba(17, 24, 39, .04))}._searchIconButton_p0w0a_172:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._headerTitleWrap_p0w0a_195{transition:opacity .18s ease,transform .22s ease}._headerSearchWrap_p0w0a_199{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;pointer-events:none;opacity:0;transform:translateY(-2px);transition:opacity .18s ease,transform .22s ease}._headerSearchOpen_p0w0a_211 ._headerTitleWrap_p0w0a_195{opacity:0;transform:translateY(2px);pointer-events:none}._headerSearchOpen_p0w0a_211 ._headerSearchWrap_p0w0a_199{opacity:1;transform:translateY(0);pointer-events:auto}._searchBar_p0w0a_223{width:min(320px,100%);height:36px;display:flex;align-items:center;gap:8px;background:var(--bb-surface-bg, #ffffff);border:1px solid var(--bb-border-strong-color, rgba(17, 24, 39, .12));border-radius:10px;padding:0 8px}._searchInput_p0w0a_235{width:100%;border:none;outline:none;background:transparent;font:inherit;font-size:14px;min-width:0;height:100%;line-height:36px;padding:0}._searchInput_p0w0a_235::-webkit-search-cancel-button,._searchInput_p0w0a_235::-webkit-search-decoration,._searchInput_p0w0a_235::-webkit-search-results-button,._searchInput_p0w0a_235::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}._searchClearButton_p0w0a_256{border:none;background:transparent;color:var(--bb-text-color, #111827);font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:6px;border-radius:10px;line-height:1}._searchClearButton_p0w0a_256:hover{background:var(--bb-control-bg-hover, rgba(17, 24, 39, .04))}._searchClearButton_p0w0a_256:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._closeButton_p0w0a_278{border:1px solid var(--bb-border-strong-color, rgba(17, 24, 39, .12));background:var(--bb-surface-bg, #ffffff);color:var(--bb-text-color, #111827);width:36px;height:36px;border-radius:10px;cursor:pointer;flex:0 0 auto;padding:0}._closeButton_p0w0a_278:hover{background:var(--bb-control-bg-hover, rgba(17, 24, 39, .04))}._closeButton_p0w0a_278:disabled{opacity:.6;cursor:not-allowed}._closeButton_p0w0a_278:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}@media(prefers-reduced-motion:reduce){._headerTitleWrap_p0w0a_195,._headerSearchWrap_p0w0a_199{transition:none}}._body_p0w0a_312{padding:var(--bb-body-padding, 8px 16px);overflow:auto}._muted_p0w0a_317{color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65));margin:0 0 12px}._error_p0w0a_322{color:var(--bb-error-color, #b91c1c);margin:0 0 12px}._variants_p0w0a_327{margin-top:4px}._variantList_p0w0a_331{list-style:none;padding:0;margin:0;display:grid;gap:10px}._emptyState_p0w0a_339{margin:0;padding:20px 16px;border-radius:var(--bb-border-radius, 12px);border:1px dashed var(--bb-border-color, rgba(17, 24, 39, .12));background:var(--bb-surface-subtle-bg, rgba(17, 24, 39, .02));color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65));font-size:13px;line-height:1.5;text-align:center}._variantRow_p0w0a_351{display:grid;grid-template-columns:1fr auto;gap:0px;align-items:stretch;padding:5px}._variantRowSoldOut_p0w0a_359{opacity:.65}._variantLeft_p0w0a_363{min-width:0;display:flex;gap:12px;align-items:center}._addToBundleButton_p0w0a_370{height:100%;align-self:stretch;border-radius:12px;border:none;background:var(--bb-cta-bg, #91aae5);color:var(--bb-cta-text, #ffffff);font:inherit;font-weight:800;padding:0 16px;cursor:pointer;white-space:nowrap}._addToBundleButton_p0w0a_370:hover{background:var(--bb-cta-bg-hover, #1d4ed8)}._addToBundleButton_p0w0a_370:disabled{opacity:.6;cursor:not-allowed}._addToBundleButton_p0w0a_370:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._soldOutContainer_p0w0a_398{display:flex;align-items:center;justify-content:center;height:100%;padding:0 16px}._stockLimitContainer_p0w0a_406{display:flex;align-items:center;justify-content:center;height:100%;max-width:120px;padding:0 12px}._soldOut_p0w0a_398{align-self:center;text-align:center;color:var(--bb-muted-color, rgba(17, 24, 39));font-size:.9em;font-weight:600;pointer-events:none}._stockLimitNotice_p0w0a_424{color:var(--bb-muted-color, rgba(17, 24, 39, .72));font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;text-align:center}._variantThumb_p0w0a_433{width:60px;height:60px;border-radius:12px;overflow:hidden;border:1px solid var(--bb-border-color, rgba(17, 24, 39, .08));background:var(--bb-surface-subtle-bg, rgba(17, 24, 39, .02));flex:0 0 auto}._variantThumbImg_p0w0a_443{width:100%;height:100%;object-fit:cover;display:block}._variantThumbFallback_p0w0a_450{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--bb-text-color, #111827)}._variantInfo_p0w0a_460{min-width:0}._variantName_p0w0a_464{font-size:14px;font-weight:600;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._variantMeta_p0w0a_473{font-size:12px;color:var(--bb-muted-color, rgba(17, 24, 39, .6));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._variantPriceRow_p0w0a_481{display:flex;align-items:baseline;gap:8px;margin-top:4px}._variantCompareAt_p0w0a_488{font-size:12px;color:var(--bb-muted-color, rgba(17, 24, 39, .6));text-decoration:line-through}._variantPrice_p0w0a_481{font-size:13px;font-weight:800}._qtyControls_p0w0a_499{display:inline-flex;align-items:center;gap:6px}._qtyControlsWrap_p0w0a_505{display:grid;justify-items:center;gap:4px}._qtyButton_p0w0a_511{padding:0;width:34px;height:34px;border-radius:10px;border:1px solid var(--bb-border-strong-color, rgba(17, 24, 39, .12));background:var(--bb-surface-bg, #ffffff);cursor:pointer;line-height:1;font-size:16px}._qtyButton_p0w0a_511:hover{background:var(--bb-control-bg-hover, rgba(17, 24, 39, .04))}._qtyButton_p0w0a_511:disabled{opacity:.6;cursor:not-allowed}._qtyButton_p0w0a_511:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._qtyValue_p0w0a_537{min-width:18px;text-align:center;font-variant-numeric:tabular-nums;font-weight:700}._footer_p0w0a_544{padding:var(--bb-footer-padding, 12px 16px 16px 16px);border-top:1px solid var(--bb-border-color, rgba(17, 24, 39, .08));background:var(--bb-surface-bg, #ffffff);position:relative;min-width:0}._poweredBy_p0w0a_552{font-size:10px;color:var(rgba(17, 24, 39, .6));text-align:center;margin-top:10px}._poweredBy_p0w0a_552 a{color:inherit;text-decoration:none}._boxSummaryWindow_p0w0a_564{margin-bottom:6px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding-bottom:6px;min-width:0;scrollbar-width:none;-ms-overflow-style:none}._boxSummaryWindow_p0w0a_564::-webkit-scrollbar{display:none}._boxSummaryRow_p0w0a_582{--bb-box-gap: 10px;display:flex;align-items:flex-start;gap:var(--bb-box-gap);width:100%}._boxSlot_p0w0a_590{flex:0 0 calc((100% - (4 * var(--bb-box-gap))) / 5);max-width:calc((100% - (4 * var(--bb-box-gap))) / 5);display:flex;flex-direction:column;align-items:stretch;gap:6px}._boxItem_p0w0a_599{width:100%;aspect-ratio:1 / 1;border-radius:12px;position:relative;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;box-sizing:border-box}._boxItemClickable_p0w0a_611{cursor:pointer}._boxItemClickable_p0w0a_611:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._boxThresholdLabel_p0w0a_620{font-size:11px;line-height:1.15;font-weight:700;color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65));text-align:center;white-space:wrap;overflow:hidden;text-overflow:ellipsis}._boxItemPlaceholder_p0w0a_631{border:1px dashed var(--bb-border-strong-color, rgba(17, 24, 39, .18));background:var(--bb-surface-subtle-bg, rgba(17, 24, 39, .02));color:var(--bb-muted-color, rgba(17, 24, 39, .6))}._boxItemFilled_p0w0a_637{border:1px solid var(--bb-border-color, rgba(17, 24, 39, .08));background:var(--bb-surface-bg, #ffffff);overflow:hidden}._boxItemThreshold_p0w0a_643{border-style:solid;border-width:2px;border-color:var(--bb-tier-border, rgba(37, 99, 235, .55));background:var(--bb-tier-bg, rgba(37, 99, 235, .08));color:var(--bb-tier-text, rgba(29, 78, 216, .95))}._boxItemDiscountText_p0w0a_651{font-size:12px;font-weight:800;text-align:center;line-height:1.1;padding:6px}._boxItemPlus_p0w0a_659{font-size:22px;font-weight:700;opacity:.5;line-height:1}._boxItemImage_p0w0a_666{width:100%;height:100%;object-fit:cover;display:block}._boxItemFallback_p0w0a_673{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:var(--bb-surface-subtle-bg, rgba(17, 24, 39, .04));color:var(--bb-text-color, #111827);font-weight:800}._ctaButtonGroup_p0w0a_684{display:flex;gap:8px;width:100%;transition:gap .3s cubic-bezier(.4,0,.2,1)}._ctaButtonGroupAnimating_p0w0a_691{gap:0}._cta_p0w0a_684{width:100%;border:1px solid var(--bb-cta-border, rgba(0, 0, 0, .12));background:var(--bb-cta-bg, #2563eb);color:var(--bb-cta-text, #ffffff);font:inherit;font-weight:700;padding:12px 14px;border-radius:12px;cursor:pointer}._ctaSecondary_p0w0a_707{width:100%;border:2px solid var(--bb-cta-bg, #2563eb);background:transparent;color:var(--bb-cta-bg, #2563eb);font:inherit;font-weight:700;padding:10px 14px;border-radius:12px;cursor:pointer}._ctaDualLeft_p0w0a_719{width:100%;border:2px solid var(--bb-cta-bg, #2563eb);background:transparent;color:var(--bb-cta-bg, #2563eb);font:inherit;font-weight:700;padding:10px 14px;border-radius:12px;cursor:pointer;transition:border-radius .3s cubic-bezier(.4,0,.2,1),background .3s cubic-bezier(.4,0,.2,1),color .3s cubic-bezier(.4,0,.2,1),border-right-width .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1)}._ctaDualLeftAnimating_p0w0a_737{border-top-right-radius:0;border-bottom-right-radius:0;border-right-width:0;background:var(--bb-cta-bg, #2563eb);opacity:.6;color:var(--bb-cta-text, #ffffff)}._ctaDualLeftAnimating_p0w0a_737>span{opacity:0}._ctaDualRight_p0w0a_750{width:100%;border:1px solid var(--bb-cta-border, rgba(0, 0, 0, .12));background:var(--bb-cta-bg, #2563eb);color:var(--bb-cta-text, #ffffff);font:inherit;font-weight:700;padding:12px 14px;border-radius:12px;cursor:pointer;transition:border-radius .3s cubic-bezier(.4,0,.2,1),border-left-width .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1)}._ctaDualRightAnimating_p0w0a_766{border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:0;opacity:.6}._ctaDualRightAnimating_p0w0a_766>span{opacity:0}._ctaTotals_p0w0a_777{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-variant-numeric:tabular-nums}._ctaDiscountBadge_p0w0a_785{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;background:var(--bb-tier-bg, rgba(37, 99, 235, .12));border:1px solid var(--bb-tier-border, rgba(37, 99, 235, .3));color:var(--bb-tier-text, rgba(29, 78, 216, .95));white-space:nowrap}._ctaTotalsWrap_p0w0a_799{overflow:hidden;max-height:0;opacity:0;transform:translateY(4px);margin-bottom:0;transition:max-height .22s ease,opacity .16s ease,transform .22s ease,margin-bottom .22s ease}._ctaTotalsWrapVisible_p0w0a_812{max-height:40px;opacity:1;transform:translateY(0);margin-bottom:8px}._ctaTotalsStrike_p0w0a_819{opacity:.85;text-decoration:line-through;font-weight:700;color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65))}._ctaTotalsPrice_p0w0a_826{font-weight:900;color:var(--bb-text-color, #111827)}@media(prefers-reduced-motion:reduce){._ctaTotalsWrap_p0w0a_799{transition:none}}._cta_p0w0a_684:hover{background:var(--bb-cta-bg-hover, #1d4ed8)}._cta_p0w0a_684:disabled{opacity:.6;cursor:not-allowed}._cta_p0w0a_684:focus-visible{outline:2px solid var(--bb-cta-focus-ring, var(--bb-text-color, #111827));outline-offset:2px}._ctaSecondary_p0w0a_707:hover{background:var(--bb-cta-bg, #2563eb);color:var(--bb-cta-text, #ffffff)}._ctaSecondary_p0w0a_707:disabled{opacity:.6;cursor:not-allowed}._ctaSecondary_p0w0a_707:focus-visible{outline:2px solid var(--bb-cta-focus-ring, var(--bb-text-color, #111827));outline-offset:2px}._ctaDualLeft_p0w0a_719:hover{background:var(--bb-cta-bg, #2563eb);color:var(--bb-cta-text, #ffffff)}._ctaDualLeft_p0w0a_719:disabled{opacity:.6;cursor:not-allowed}._ctaDualLeft_p0w0a_719:focus-visible{outline:2px solid var(--bb-cta-focus-ring, var(--bb-text-color, #111827));outline-offset:2px}._ctaDualRight_p0w0a_750:hover{background:var(--bb-cta-bg-hover, #1d4ed8)}._ctaDualRight_p0w0a_750:disabled{opacity:.6;cursor:not-allowed}._ctaDualRight_p0w0a_750:focus-visible{outline:2px solid var(--bb-cta-focus-ring, var(--bb-text-color, #111827));outline-offset:2px}._helperText_p0w0a_895{margin-top:8px;font-size:12px;color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65));text-align:center}@media(max-width:767px){._backdrop_p0w0a_1{padding:0;justify-content:stretch}._panel_p0w0a_82{width:100%;height:100%;border-radius:0}}._panel_gafs6_2 button,._panel_gafs6_2 input,._panel_gafs6_2 [role=button]{box-sizing:border-box;margin:0}._panel_gafs6_2{background:var(--bb-surface-bg, #ffffff);color:var(--bb-text-color, #111827);font-family:var(--bb-font-family-body, "Cabin", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);border:1px solid var(--bb-border-color, rgba(17, 24, 39, .08));border-radius:var(--bb-panel-radius, 16px);padding:20px;display:grid;gap:14px}._header_gafs6_20{text-align:start}._title_gafs6_24{font-size:22px;margin:0;font-family:var(--bb-font-family-title, "Bebas Neue", "Cabin", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);letter-spacing:.02em;color:var(--bb-title-color, var(--bb-text-color, #111827))}._status_gafs6_32{font-size:13px;color:var(--bb-muted-color, rgba(15, 23, 42, .6))}._error_gafs6_37{font-size:13px;color:#b91c1c;font-weight:600}._section_gafs6_43{display:grid;gap:6px}._sectionTitle_gafs6_48{text-align:left;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--bb-muted-color, rgba(15, 23, 42, .6))}._rules_gafs6_57{display:flex;justify-content:center;gap:6px}._rulesList_gafs6_63{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;list-style:none;margin:0;padding:0}._ruleItem_gafs6_74{display:flex;flex-direction:column;align-items:center;gap:6px;padding:6px 10px;border-radius:var(--bb-border-radius, 12px);border:1px solid var(--bb-tier-border, rgba(37, 99, 235, .25));background:var(--bb-tier-bg, rgba(37, 99, 235, .06));color:var(--bb-tier-text, #1f2937)}._ruleMin_gafs6_86{font-weight:600;font-size:13px}._ruleDiscount_gafs6_91{font-weight:700;font-size:13px}._ruleLabel_gafs6_96{font-size:12px;opacity:.7}._rulesVisual_gafs6_101{display:flex;flex-direction:column;gap:4px;width:100%}._rulesLabelsRow_gafs6_108,._rulesLinesRow_gafs6_115{display:flex;flex-direction:row;gap:4px;width:100%}._rulesLineLabelCell_gafs6_122{flex:1 1 0;display:flex;align-items:flex-end;justify-content:center}._rulesLineLabelCell_gafs6_122:empty{display:flex!important}._rulesLineLabel_gafs6_122{font-size:11px;font-weight:600;color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65))}._rulesLineLabelSpacer_gafs6_139{height:1em}._rulesLine_gafs6_115{display:block;width:100%;height:4px;border-radius:999px;background-color:var(--bb-tier-background, rgba(148, 163, 184, .22));transition:background-color .2s ease}._rulesLine_gafs6_115:empty{display:block!important}._rulesLineEmpty_gafs6_156{background-color:var(--bb-tier-background, rgba(148, 163, 184, .22))}._rulesLineFilled_gafs6_160{background-color:var(--bb-tier-border, rgba(37, 99, 235, .8))}._variants_gafs6_164{display:grid;gap:12px;max-height:400px;overflow-y:auto;padding-right:6px}._variantList_gafs6_172{list-style:none;padding:0;margin:0;display:grid;gap:10px}._emptyState_gafs6_180{margin:0;padding:20px 16px;border-radius:var(--bb-border-radius, 12px);border:1px dashed var(--bb-border-color, rgba(15, 23, 42, .12));background:var(--bb-surface-subtle-bg, rgba(17, 24, 39, .02));color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65));font-size:13px;line-height:1.5;text-align:center}._variantRow_gafs6_192{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:start;padding:8px;border-radius:var(--bb-border-radius, 12px);border:1px solid var(--bb-border-color, rgba(15, 23, 42, .08));background:#fff;transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease}._variantRowInteractive_gafs6_204{cursor:pointer}._variantRowSelected_gafs6_208{border-color:#2563eb40;box-shadow:0 0 0 1px #2563eb14}._variantRowSoldOut_gafs6_213{opacity:.65}._variantMedia_gafs6_217{display:grid;align-items:start;justify-items:center;width:76px;aspect-ratio:1 / 1}._variantContent_gafs6_225{display:flex;flex-direction:column;justify-content:space-between;gap:4px;height:100%}._variantHeader_gafs6_233{display:flex;flex-direction:column;gap:4px}._variantTitle_gafs6_239{font-weight:700;font-size:14px;color:var(--bb-text-color, #111827)}._variantDetailsRow_gafs6_245{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:6px;align-items:start}._variantImage_gafs6_253{width:100%;height:100%;border-radius:var(--bb-border-radius, 12px);object-fit:cover;background:#94a3b833}._variantImageFallback_gafs6_261{width:100%;height:100%;border-radius:var(--bb-border-radius, 12px);background:linear-gradient(135deg,#94a3b84d,#94a3b80d);display:grid;place-items:center;color:#94a3b8cc;font-size:10px;text-transform:uppercase;letter-spacing:.08em}._variantMeta_gafs6_274{font-size:12px;color:var(--bb-muted-color, rgba(15, 23, 42, .6))}._variantPrice_gafs6_279{font-size:13px;font-weight:600;color:#0f172a}._variantFooterRow_gafs6_285{display:flex;align-items:center;justify-content:space-between;width:100%}._variantActions_gafs6_292{display:grid;align-items:end;justify-items:end}._qtyActions_gafs6_298{display:inline-flex;align-items:center;gap:6px}._qtyActionsWrap_gafs6_304{display:grid;justify-items:end;gap:4px}._variantUnavailable_gafs6_310{display:none}._qtyControls_gafs6_314{display:inline-flex;align-items:center;gap:6px;padding:4px;border-radius:999px;border:1px solid var(--bb-border-strong-color, rgba(15, 23, 42, .12));background:#0f172a0a}._qtyButton_gafs6_324{width:30px;height:30px;padding:0;border-radius:999px;border:0;background:var(--bb-surface-bg, #ffffff);color:var(--bb-text-color, #111827);font-size:16px;cursor:pointer;display:grid;place-items:center}._qtyButton_gafs6_324:disabled{cursor:not-allowed;opacity:.4}._qtyButton_gafs6_324:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._qtyValue_gafs6_348{min-width:22px;text-align:center;font-weight:600;font-size:13px}._soldOut_gafs6_355{color:var(--bb-muted-color, rgba(17, 24, 39));font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}._stockLimitNotice_gafs6_363{color:var(--bb-muted-color, rgba(17, 24, 39, .72));font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;text-align:end}._qtyChip_gafs6_372{min-width:44px;height:30px;padding:0 2px;border-radius:var(--bb-border-radius, 12px);background:#0f172a14;color:#0f172a;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:3px}._qtyChipInteractive_gafs6_387{cursor:pointer}._qtyChipValue_gafs6_391{min-width:14px;padding-left:3px;text-align:center}._qtyChipPlus_gafs6_397{margin-bottom:-3px;font-weight:500}._qtyChipClear_gafs6_402{width:22px;height:22px;border-radius:999px;border:1px solid rgba(15,23,42,.12);background:#fff;color:#0f172a;display:grid;place-items:center;cursor:pointer;padding:0;transition:background .16s ease,color .16s ease}._qtyChip_gafs6_372:hover ._qtyChipClear_gafs6_402{background:#0f172a;color:#fff}._qtyChipClear_gafs6_402:disabled{cursor:not-allowed;opacity:.45}._qtyChip_gafs6_372:hover ._qtyChipClear_gafs6_402:disabled{background:#fff;color:#0f172a}._qtyTrash_gafs6_431{width:22px;height:22px;border:0;background:transparent;color:#0f172a;display:grid;place-items:center;cursor:pointer;padding:0}._footer_gafs6_443{display:grid;padding-top:6px}._boxSummaryWindow_gafs6_448{margin-bottom:6px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding-bottom:6px;scrollbar-width:none;-ms-overflow-style:none}._boxSummaryWindow_gafs6_448::-webkit-scrollbar{display:none}._boxSummaryRow_gafs6_462{--bb-box-gap: 10px;display:flex;align-items:flex-start;gap:var(--bb-box-gap);width:100%}._boxSlot_gafs6_470{flex:0 0 calc((100% - (4 * var(--bb-box-gap))) / 5);max-width:calc((100% - (4 * var(--bb-box-gap))) / 5);display:flex;flex-direction:column;align-items:stretch;gap:6px}._boxItem_gafs6_479{width:100%;border-radius:var(--bb-border-radius, 12px);position:relative;display:block;-webkit-user-select:none;user-select:none;box-sizing:border-box;overflow:hidden}._boxItem_gafs6_479:before{content:"";display:block;padding-bottom:100%}._boxItemFilled_gafs6_496{border:1px solid var(--bb-border-color, rgba(17, 24, 39, .08));background:var(--bb-surface-bg, #ffffff);overflow:hidden}._boxItemPlaceholder_gafs6_502{border:1px dashed var(--bb-border-strong-color, rgba(17, 24, 39, .18));background:var(--bb-surface-subtle-bg, rgba(17, 24, 39, .02));color:var(--bb-muted-color, rgba(17, 24, 39, .6))}._boxItemThreshold_gafs6_508{border-style:solid;border-width:2px;border-color:var(--bb-tier-border, rgba(37, 99, 235, .55));background:var(--bb-tier-bg, rgba(37, 99, 235, .08));color:var(--bb-tier-text, rgba(29, 78, 216, .95))}._boxItemClickable_gafs6_516{cursor:pointer}._boxItemClickable_gafs6_516:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._boxItemImage_gafs6_525{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;min-width:0;min-height:0;object-fit:cover;display:block}._boxItemFallback_gafs6_536{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:var(--bb-surface-subtle-bg, rgba(17, 24, 39, .04));color:var(--bb-text-color, #111827);font-weight:800}._boxItemPlus_gafs6_549{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;opacity:.5;line-height:1}._boxItemDiscountText_gafs6_561{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;text-align:center;line-height:1.1;padding:6px}._boxThresholdLabel_gafs6_574{font-size:11px;line-height:1.15;font-weight:700;color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65));text-align:center;white-space:wrap;overflow:hidden;text-overflow:ellipsis}._totalsReveal_gafs6_585{max-height:0;padding-bottom:12px;opacity:0;overflow:hidden;transition:max-height .26s ease,opacity .2s ease}._totalsRevealOpen_gafs6_593{max-height:80px;opacity:1}._ctaTotalsWrap_gafs6_598{opacity:0;transition:opacity .18s ease .12s}._ctaTotalsWrapVisible_gafs6_603{opacity:1}._ctaTotals_gafs6_598{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:14px;background:#0f172a0a;font-size:13px;font-weight:600}._ctaDiscountBadge_gafs6_618{padding:4px 8px;border-radius:999px;background:var(--bb-tier-bg, rgba(37, 99, 235, .12));color:var(--bb-tier-text, rgba(30, 64, 175, .9));border:1px solid var(--bb-tier-border, rgba(37, 99, 235, .3));font-size:11px;text-transform:uppercase;letter-spacing:.08em}._ctaTotalsStrike_gafs6_629{text-decoration:line-through;color:#64748bcc;margin-right:6px}._ctaTotalsPrice_gafs6_635{font-weight:700;color:#0f172a}._cta_gafs6_598{border:0;border-radius:var(--bb-border-radius, 12px);padding:14px 18px;min-height:44px;font-weight:700;font-size:14px;background:var(--bb-cta-bg, #111827);color:var(--bb-cta-text, #ffffff);cursor:pointer;letter-spacing:.02em;transition:transform .14s ease,box-shadow .14s ease,background .14s ease;box-shadow:0 10px 24px #0f172a40}._cta_gafs6_598:hover{transform:translateY(-1px);background:var(--bb-cta-bg-hover, #0f172a)}._cta_gafs6_598:disabled{cursor:not-allowed;transform:none;box-shadow:none;opacity:.6}._ctaButtonGroup_gafs6_667{display:grid;grid-template-columns:1fr 1fr;gap:10px}._ctaDualLeft_gafs6_673,._ctaDualRight_gafs6_674{border:0;border-radius:var(--bb-border-radius, 12px);padding:12px 16px;min-height:44px;font-weight:700;font-size:13px;cursor:pointer}._ctaDualLeft_gafs6_673{background:#fff;color:#0f172a;border:1px solid rgba(15,23,42,.15)}._ctaDualRight_gafs6_674{background:var(--bb-cta-bg, #111827);color:var(--bb-cta-text, #ffffff)}._ctaDualLeft_gafs6_673:disabled,._ctaDualRight_gafs6_674:disabled{cursor:not-allowed;opacity:.6}._poweredBy_gafs6_701{padding-top:12px;font-size:11px;color:#64748bcc;text-align:center}._poweredBy_gafs6_701 a{color:inherit;text-decoration:none;font-weight:700}@media(max-width:640px){._panel_gafs6_2{padding:16px}._variantRow_gafs6_192{grid-template-columns:64px minmax(0,1fr);gap:10px}._qtyControls_gafs6_314{justify-self:start}._variantDetailsRow_gafs6_245{grid-template-columns:1fr}}._panel_mo8go_1{background:var(--bb-surface-bg, #ffffff);color:var(--bb-text-color, #111827);font-family:var(--bb-font-family-body, "Cabin", system-ui, sans-serif);border:1px solid var(--bb-border-color, rgba(17, 24, 39, .08));border-radius:var(--bb-panel-radius, 16px);padding:20px;display:grid;gap:14px}._title_mo8go_12{margin:0;font-size:22px;font-family:var(--bb-font-family-title, "Bebas Neue", "Cabin", system-ui, sans-serif);color:var(--bb-title-color, var(--bb-text-color, #111827))}._status_mo8go_19{font-size:13px;color:var(--bb-muted-color, rgba(17, 24, 39, .65))}._error_mo8go_24{font-size:13px;font-weight:600;color:#b91c1c}._rules_mo8go_30{display:grid;gap:10px}._rule_mo8go_30{width:100%;border:1px solid var(--bb-border-color, rgba(17, 24, 39, .12));border-radius:14px;background:#fff;padding:0;overflow:hidden}._ruleInput_mo8go_44{position:absolute;opacity:0;pointer-events:none}._ruleLabel_mo8go_50{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:4px!important;padding:14px 16px!important;cursor:pointer!important}._ruleLabelContent_mo8go_59{display:flex;flex-direction:column;justify-content:flex-start;gap:4px}._ruleSelected_mo8go_66{border-color:var(--bb-tier-border, rgba(37, 99, 235, .55));background:var(--bb-tier-bg, rgba(37, 99, 235, .08))}._ruleTitle_mo8go_71{font-size:16px;font-weight:700;color:var(--bb-title-color, var(--bb-text-color, #111827))}._ruleSubtitle_mo8go_77{font-size:13px;color:var(--bb-tier-text, rgba(29, 78, 216, .95));font-weight:600}._priceRow_mo8go_83{display:inline-flex;align-items:baseline;gap:8px;flex-wrap:wrap}._oldPrice_mo8go_90{font-size:13px;color:var(--bb-muted-color, rgba(17, 24, 39, .65));text-decoration:line-through}._newPrice_mo8go_96{font-size:16px;font-weight:700;color:var(--bb-title-color, var(--bb-text-color, #111827))}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ import { jsx as s, jsxs as T, Fragment as Nt } from "react/jsx-runtime";
3
+ import It, { useCallback as re, useState as W, useRef as Y, useEffect as D, useMemo as P, createContext as Kt, useContext as Xt, forwardRef as Ht, createElement as Rt } from "react";
4
+ const wt = {
5
5
  bundleId: "_bundle_id",
6
6
  bundleConfig: "_bundle_config",
7
7
  bundleSource: "_bundle_source",
8
8
  bundleTitle: "_bundle_title"
9
9
  };
10
- async function Yt(n) {
10
+ async function Zt(n) {
11
11
  const e = new URL("/api/public/bundle-configs-active", n.apiBaseUrl);
12
12
  e.searchParams.set("shop", n.shop);
13
- const r = await (await fetch(e, {
13
+ const i = await (await fetch(e, {
14
14
  method: "GET",
15
15
  signal: n.signal,
16
16
  headers: { "Content-Type": "application/json" }
17
17
  })).json().catch(() => null);
18
- return !r || typeof r != "object" ? { ok: !1, error: "Invalid response." } : r;
18
+ return !i || typeof i != "object" ? { ok: !1, error: "Invalid response." } : i;
19
19
  }
20
- async function Kt(n) {
20
+ async function Jt(n) {
21
21
  const e = new URL("/api/public/bundle-config", n.apiBaseUrl);
22
22
  e.searchParams.set("shop", n.shop), n.configHandle && e.searchParams.set("handle", n.configHandle), n.fresh && e.searchParams.set("fresh", "1");
23
- const r = await (await fetch(e, {
23
+ const i = await (await fetch(e, {
24
24
  method: "GET",
25
25
  signal: n.signal,
26
26
  headers: { "Content-Type": "application/json" }
27
27
  })).json().catch(() => null);
28
- return !r || typeof r != "object" ? { ok: !1, error: "Invalid response." } : r;
28
+ return !i || typeof i != "object" ? { ok: !1, error: "Invalid response." } : i;
29
29
  }
30
- async function Xt(n) {
30
+ async function en(n) {
31
31
  const e = new URL("/api/public/bundle-config-status", n.apiBaseUrl);
32
32
  e.searchParams.set("shop", n.shop), n.configHandle && e.searchParams.set("handle", n.configHandle);
33
- const r = await (await fetch(e, {
33
+ const i = await (await fetch(e, {
34
34
  method: "GET",
35
35
  signal: n.signal,
36
36
  headers: { "Content-Type": "application/json" }
37
37
  })).json().catch(() => null);
38
- return !r || typeof r != "object" ? { ok: !1, error: "Invalid response." } : r;
38
+ return !i || typeof i != "object" ? { ok: !1, error: "Invalid response." } : i;
39
39
  }
40
- function xt(n) {
40
+ function St(n) {
41
41
  if (!n || n.availableForSale === !1) return 0;
42
42
  if (n.inventoryPolicy === "CONTINUE" || n.sellableOnlineQuantity == null) return Number.POSITIVE_INFINITY;
43
43
  const e = Number(n.sellableOnlineQuantity);
44
44
  return !Number.isFinite(e) || e <= 0 && n.availableForSale === !0 ? Number.POSITIVE_INFINITY : Math.max(0, Math.floor(e));
45
45
  }
46
- const Ft = "bb_anonymous_user_id";
47
- function _t() {
46
+ const At = "bb_anonymous_user_id";
47
+ function yt() {
48
48
  if (typeof window > "u" || typeof localStorage > "u")
49
49
  return `bb_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}`;
50
50
  try {
51
- const n = localStorage.getItem(Ft);
51
+ const n = localStorage.getItem(At);
52
52
  if (n && typeof n == "string" && n.length > 0)
53
53
  return n;
54
54
  let e;
@@ -61,17 +61,17 @@ function _t() {
61
61
  } catch {
62
62
  e = `bb_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}`;
63
63
  }
64
- return localStorage.setItem(Ft, e), e;
64
+ return localStorage.setItem(At, e), e;
65
65
  } catch {
66
66
  return `bb_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}`;
67
67
  }
68
68
  }
69
- async function lt(n, e, t) {
69
+ async function ct(n, e, t) {
70
70
  if (!(typeof window > "u"))
71
71
  try {
72
- const r = new URL(n, window.location.origin);
73
- r.searchParams.set("shop", e);
74
- const i = await fetch(r, {
72
+ const i = new URL(n, window.location.origin);
73
+ i.searchParams.set("shop", e);
74
+ const r = await fetch(i, {
75
75
  method: "POST",
76
76
  headers: {
77
77
  "Content-Type": "application/json"
@@ -80,15 +80,15 @@ async function lt(n, e, t) {
80
80
  // Don't wait for response - fire and forget
81
81
  keepalive: !0
82
82
  });
83
- i.ok || console.warn(
84
- `[Bundle Analytics] Event tracking failed with status ${i.status}:`,
85
- await i.text().catch(() => "Unable to read response")
83
+ r.ok || console.warn(
84
+ `[Bundle Analytics] Event tracking failed with status ${r.status}:`,
85
+ await r.text().catch(() => "Unable to read response")
86
86
  );
87
- } catch (r) {
88
- console.warn("[Bundle Analytics] Failed to track event:", r);
87
+ } catch (i) {
88
+ console.warn("[Bundle Analytics] Failed to track event:", i);
89
89
  }
90
90
  }
91
- const ft = {
91
+ const _t = {
92
92
  "bundle.title.default": "Build your bundle",
93
93
  "bundle.loading": "Loading...",
94
94
  "bundle.empty": "Your selected eligible products for bundling will show here",
@@ -132,8 +132,8 @@ const ft = {
132
132
  "bundle.a11y.max_available_selected": "{{name}} max available selected",
133
133
  "bundle.a11y.increase": "Increase {{name}}",
134
134
  "bundle.a11y.decrease": "Decrease {{name}}"
135
- }, Zt = {
136
- ...ft,
135
+ }, tn = {
136
+ ..._t,
137
137
  "bundle.title.default": "Creez votre bundle",
138
138
  "bundle.loading": "Chargement...",
139
139
  "bundle.empty": "Vos produits eligibles selectionnes pour le bundle apparaitront ici",
@@ -160,8 +160,8 @@ const ft = {
160
160
  "bundle.cta.add_more": "Ajoutez encore {{count}} {{productWord}}",
161
161
  "bundle.powered_by": "propulse par",
162
162
  "bundle.button.default": "Creer un bundle"
163
- }, Jt = {
164
- ...ft,
163
+ }, nn = {
164
+ ..._t,
165
165
  "bundle.title.default": "Bundle erstellen",
166
166
  "bundle.loading": "Wird geladen...",
167
167
  "bundle.empty": "Ihre ausgewahlten bundelbaren Produkte werden hier angezeigt",
@@ -188,8 +188,8 @@ const ft = {
188
188
  "bundle.cta.add_more": "Fuge noch {{count}} {{productWord}} hinzu",
189
189
  "bundle.powered_by": "powered by",
190
190
  "bundle.button.default": "Bundle erstellen"
191
- }, en = {
192
- ...ft,
191
+ }, an = {
192
+ ..._t,
193
193
  "bundle.title.default": "Crea tu bundle",
194
194
  "bundle.loading": "Cargando...",
195
195
  "bundle.empty": "Tus productos elegibles seleccionados para el bundle se mostraran aqui",
@@ -216,50 +216,50 @@ const ft = {
216
216
  "bundle.cta.add_more": "Agrega {{count}} {{productWord}} mas",
217
217
  "bundle.powered_by": "impulsado por",
218
218
  "bundle.button.default": "Crear bundle"
219
- }, tn = {
220
- en: ft,
221
- fr: Zt,
222
- de: Jt,
223
- es: en
219
+ }, rn = {
220
+ en: _t,
221
+ fr: tn,
222
+ de: nn,
223
+ es: an
224
224
  };
225
- function nn(n) {
225
+ function on(n) {
226
226
  const e = String(n ?? "").trim().toLowerCase();
227
227
  if (!e) return "en";
228
228
  const t = e.split("-")[0] ?? "en";
229
229
  return t === "fr" || t === "de" || t === "en" || t === "es" ? t : "en";
230
230
  }
231
- function an(n, e, t, r) {
231
+ function sn(n, e, t, i) {
232
232
  var a;
233
- const i = (r == null ? void 0 : r[e]) ?? ((a = tn[n]) == null ? void 0 : a[e]) ?? ft[e] ?? e;
234
- return t ? Object.entries(t).reduce((m, [u, B]) => m.replaceAll(`{{${u}}}`, String(B)), i) : i;
233
+ const r = (i == null ? void 0 : i[e]) ?? ((a = rn[n]) == null ? void 0 : a[e]) ?? _t[e] ?? e;
234
+ return t ? Object.entries(t).reduce((h, [u, S]) => h.replaceAll(`{{${u}}}`, String(S)), r) : r;
235
235
  }
236
- function jt(n, e, t) {
237
- const r = Number(n);
238
- if (!Number.isFinite(r)) return String(n);
236
+ function ft(n, e, t) {
237
+ const i = Number(n);
238
+ if (!Number.isFinite(i)) return String(n);
239
239
  if (e)
240
240
  try {
241
- return new Intl.NumberFormat(t || void 0, { style: "currency", currency: e }).format(r);
241
+ return new Intl.NumberFormat(t || void 0, { style: "currency", currency: e }).format(i);
242
242
  } catch {
243
243
  }
244
- return `$${r.toFixed(2)}`;
244
+ return `$${i.toFixed(2)}`;
245
245
  }
246
- function ct(n, e) {
246
+ function ut(n, e) {
247
247
  const t = e === 1 ? "one" : "many";
248
248
  return n === "fr" ? t === "one" ? "produit" : "produits" : n === "de" ? t === "one" ? "Produkt" : "Produkte" : n === "es" ? t === "one" ? "producto" : "productos" : t === "one" ? "product" : "products";
249
249
  }
250
- const Ut = Gt(null), ut = "#best-bundles", rn = [];
250
+ const Qt = Kt(null), dt = "#best-bundles", ln = [];
251
251
  function Ge(n) {
252
252
  const e = String(n ?? "").trim().toLowerCase();
253
253
  return e && e.replace(/[^a-z0-9-]+/g, "-").replace(/^-+/, "").replace(/-+$/, "").replace(/-{2,}/g, "-") || "default";
254
254
  }
255
- function Ot(n) {
255
+ function Et(n) {
256
256
  const e = String(n ?? "").trim().toLowerCase();
257
- if (!e.startsWith(ut)) return null;
258
- if (e === ut) return "default";
259
- const t = `${ut}:`;
257
+ if (!e.startsWith(dt)) return null;
258
+ if (e === dt) return "default";
259
+ const t = `${dt}:`;
260
260
  return e.startsWith(t) ? Ge(e.slice(t.length)) : null;
261
261
  }
262
- const on = {
262
+ const cn = {
263
263
  primaryColor: "--bb-cta-bg",
264
264
  primaryHoverColor: "--bb-cta-bg-hover",
265
265
  primaryTextColor: "--bb-cta-text",
@@ -282,47 +282,47 @@ const on = {
282
282
  fontFamilyBody: "--bb-font-family-body",
283
283
  fontFamilyTitle: "--bb-font-family-title"
284
284
  }, Ct = "bb-google-fonts";
285
- function At(n) {
285
+ function Dt(n) {
286
286
  const e = (n ?? "").trim().replace(/^["']|["']$/g, "");
287
287
  return e ? encodeURIComponent(e).replace(/%20/g, "+") : "";
288
288
  }
289
- function sn(n) {
289
+ function un(n) {
290
290
  var u;
291
291
  if (typeof document > "u" || !document.head) return;
292
292
  if (!n) {
293
293
  (u = document.getElementById(Ct)) == null || u.remove();
294
294
  return;
295
295
  }
296
- const e = (n.fontFamilyBody ?? "").trim().replace(/^["']|["']$/g, ""), t = (n.fontFamilyTitle ?? "").trim().replace(/^["']|["']$/g, ""), r = [];
297
- e && r.push("family=" + At(e)), t && t !== e && r.push("family=" + At(t));
298
- const i = document.getElementById(Ct);
299
- if (r.length === 0) {
300
- i == null || i.remove();
296
+ const e = (n.fontFamilyBody ?? "").trim().replace(/^["']|["']$/g, ""), t = (n.fontFamilyTitle ?? "").trim().replace(/^["']|["']$/g, ""), i = [];
297
+ e && i.push("family=" + Dt(e)), t && t !== e && i.push("family=" + Dt(t));
298
+ const r = document.getElementById(Ct);
299
+ if (i.length === 0) {
300
+ r == null || r.remove();
301
301
  return;
302
302
  }
303
- const a = `https://fonts.googleapis.com/css2?${r.join("&")}&display=swap`;
304
- if (i) {
305
- i.getAttribute("href") !== a && i.setAttribute("href", a);
303
+ const a = `https://fonts.googleapis.com/css2?${i.join("&")}&display=swap`;
304
+ if (r) {
305
+ r.getAttribute("href") !== a && r.setAttribute("href", a);
306
306
  return;
307
307
  }
308
- const m = document.createElement("link");
309
- m.id = Ct, m.rel = "stylesheet", m.href = a, document.head.appendChild(m);
308
+ const h = document.createElement("link");
309
+ h.id = Ct, h.rel = "stylesheet", h.href = a, document.head.appendChild(h);
310
310
  }
311
- function Dt(n) {
311
+ function qt(n) {
312
312
  if (!n) return;
313
- sn(n);
313
+ un(n);
314
314
  const e = document.documentElement;
315
- Object.entries(on).forEach(([t, r]) => {
316
- let i = n[t];
317
- i && ((t === "fontFamilyBody" || t === "fontFamilyTitle") && /^\s*\S+\s+\S/.test(i) && !/^["']/.test(i.trim()) && (i = `"${i.trim().replace(/^["']|["']$/g, "")}"`), e.style.setProperty(r, i));
315
+ Object.entries(cn).forEach(([t, i]) => {
316
+ let r = n[t];
317
+ r && ((t === "fontFamilyBody" || t === "fontFamilyTitle") && /^\s*\S+\s+\S/.test(r) && !/^["']/.test(r.trim()) && (r = `"${r.trim().replace(/^["']|["']$/g, "")}"`), e.style.setProperty(i, r));
318
318
  });
319
319
  }
320
- function Et(n) {
320
+ function $t(n) {
321
321
  if (typeof window > "u") return n;
322
322
  const e = window.__BUNDLE_PREVIEW_STYLES__;
323
323
  return e && typeof e == "object" ? e : n;
324
324
  }
325
- function ln() {
325
+ function dn() {
326
326
  try {
327
327
  const n = globalThis.crypto;
328
328
  if (n != null && n.randomUUID) return n.randomUUID();
@@ -330,715 +330,715 @@ function ln() {
330
330
  }
331
331
  return `bb_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}`;
332
332
  }
333
- function wt(n) {
333
+ function xt(n) {
334
334
  return Number.isFinite(n) ? Math.max(0, Math.floor(n)) : 0;
335
335
  }
336
- function It(n, e) {
337
- const t = wt(n);
336
+ function Bt(n, e) {
337
+ const t = xt(n);
338
338
  return Number.isFinite(e) ? Math.min(t, Math.max(0, Math.floor(e))) : t;
339
339
  }
340
- function cn(n, e) {
340
+ function hn(n, e) {
341
341
  return !n && !e;
342
342
  }
343
- function xi(n) {
343
+ function Wi(n) {
344
344
  const {
345
345
  apiBaseUrl: e,
346
346
  shop: t,
347
- cartAdapter: r,
348
- configHandle: i = "default",
347
+ cartAdapter: i,
348
+ configHandle: r = "default",
349
349
  initialData: a,
350
- configFetcher: m,
350
+ configFetcher: h,
351
351
  activeConfigsFetcher: u,
352
- configStatusFetcher: B,
353
- analyticsEndpoint: le,
354
- allowDrawerWhenInactive: D = !1,
355
- locale: E,
356
- messages: he,
357
- children: F
358
- } = n, ne = nn(E), V = J((o, s) => an(ne, o, s, he), [ne, he]), K = Ge(i), g = le ?? `${e}/api/public/bundle-analytics`, H = cn(D, a), [I, ce] = j(!1), [ke, Te] = j(!1), [ge, ee] = j(null), [X, ie] = j(!1), [me, Re] = j({}), [ae, Ce] = j(K), [be, Ae] = j(() => a ? { [K]: a } : {}), [we, Le] = j(H), [Ie, De] = j(
359
- !H && !a ? K : null
360
- ), [nt, We] = j(null), [ze, Me] = j(null), [Ye, Ne] = j(
352
+ configStatusFetcher: S,
353
+ analyticsEndpoint: ce,
354
+ allowDrawerWhenInactive: q = !1,
355
+ locale: $,
356
+ messages: me,
357
+ children: M
358
+ } = n, ie = on($), F = re((o, l) => sn(ie, o, l, me), [ie, me]), K = Ge(r), g = ce ?? `${e}/api/public/bundle-analytics`, j = hn(q, a), [N, se] = W(!1), [L, O] = W(!1), [X, Z] = W(null), [V, ne] = W(!1), [ue, xe] = W({}), [de, Be] = W(K), [ge, Ee] = W(() => a ? { [K]: a } : {}), [Ne, Pe] = W(j), [ke, De] = W(
359
+ !j && !a ? K : null
360
+ ), [at, We] = W(null), [je, Me] = W(null), [Ke, Te] = W(
361
361
  () => ({ selections: {}, order: [] })
362
- ), Ee = U(null), ye = U(null), f = U(null), _ = U(0), x = U(ae), T = U(be), M = U(we), q = U(null), W = m ?? Kt, Z = u ?? Yt, te = B ?? Xt, G = J(async () => {
363
- if (typeof r.getLineQuantitiesByMerchandiseId != "function") return null;
364
- const o = await r.getLineQuantitiesByMerchandiseId();
365
- return Object.entries(o ?? {}).reduce((s, [h, w]) => {
366
- const y = wt(w);
367
- return y > 0 && (s[h] = y), s;
362
+ ), qe = Y(null), Ie = Y(null), f = Y(null), _ = Y(0), x = Y(de), R = Y(ge), A = Y(Ne), U = Y(null), Q = h ?? Jt, ae = u ?? Zt, le = S ?? en, J = re(async () => {
363
+ if (typeof i.getLineQuantitiesByMerchandiseId != "function") return null;
364
+ const o = await i.getLineQuantitiesByMerchandiseId();
365
+ return Object.entries(o ?? {}).reduce((l, [m, w]) => {
366
+ const y = xt(w);
367
+ return y > 0 && (l[m] = y), l;
368
368
  }, {});
369
- }, [r]), A = J(async () => {
369
+ }, [i]), z = re(async () => {
370
370
  const o = ++_.current;
371
- ie(!0);
371
+ ne(!0);
372
372
  try {
373
- const s = await G();
374
- return s && o === _.current && Re(s), s;
373
+ const l = await J();
374
+ return l && o === _.current && xe(l), l;
375
375
  } catch {
376
376
  return null;
377
377
  } finally {
378
- o === _.current && ie(!1);
378
+ o === _.current && ne(!1);
379
379
  }
380
- }, [G]);
381
- O(() => {
382
- x.current = ae;
383
- }, [ae]), O(() => {
384
- T.current = be;
385
- }, [be]), O(() => {
386
- M.current = we;
387
- }, [we]), O(() => {
388
- A();
389
- }, [A]);
390
- const $ = J((o) => {
391
- Ce(Ge(o));
392
- }, []), Se = J(() => {
380
+ }, [J]);
381
+ D(() => {
382
+ x.current = de;
383
+ }, [de]), D(() => {
384
+ R.current = ge;
385
+ }, [ge]), D(() => {
386
+ A.current = Ne;
387
+ }, [Ne]), D(() => {
388
+ z();
389
+ }, [z]);
390
+ const H = re((o) => {
391
+ Be(Ge(o));
392
+ }, []), Le = re(() => {
393
393
  if (g)
394
394
  try {
395
- const o = _t();
396
- lt(g, t, {
395
+ const o = yt();
396
+ ct(g, t, {
397
397
  eventType: "DRAWER_CLOSED",
398
398
  shop: t,
399
399
  anonymousUserId: o,
400
400
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
401
401
  mixpanelEvent: "bundle_closed"
402
- }).catch((s) => {
403
- console.warn("[Bundle Analytics] Failed to track drawer closed:", s);
402
+ }).catch((l) => {
403
+ console.warn("[Bundle Analytics] Failed to track drawer closed:", l);
404
404
  });
405
405
  } catch (o) {
406
406
  console.warn("[Bundle Analytics] Error in close() callback:", o);
407
407
  }
408
- ce(!1), typeof window < "u" && window.location.hash.toLowerCase().startsWith(ut) && window.history.replaceState(null, "", window.location.pathname + window.location.search);
409
- }, [g, t]), Pe = J(() => {
410
- ce((o) => {
408
+ se(!1), typeof window < "u" && window.location.hash.toLowerCase().startsWith(dt) && window.history.replaceState(null, "", window.location.pathname + window.location.search);
409
+ }, [g, t]), Fe = re(() => {
410
+ se((o) => {
411
411
  if (o) return o;
412
412
  if (g)
413
413
  try {
414
- const s = _t();
415
- lt(g, t, {
414
+ const l = yt();
415
+ ct(g, t, {
416
416
  eventType: "DRAWER_OPENED",
417
417
  shop: t,
418
- anonymousUserId: s,
418
+ anonymousUserId: l,
419
419
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
420
420
  mixpanelEvent: "bundle_opened"
421
- }).catch((h) => {
422
- console.warn("[Bundle Analytics] Failed to track drawer opened:", h);
421
+ }).catch((m) => {
422
+ console.warn("[Bundle Analytics] Failed to track drawer opened:", m);
423
423
  });
424
- } catch (s) {
425
- console.warn("[Bundle Analytics] Error in open() callback:", s);
424
+ } catch (l) {
425
+ console.warn("[Bundle Analytics] Error in open() callback:", l);
426
426
  }
427
427
  return !0;
428
428
  });
429
- }, [g, t]), at = J((o, s) => s.ok ? s.config.isActive === !1 && !D ? (Ae((h) => {
430
- if (!h[o]) return h;
431
- const w = { ...h };
429
+ }, [g, t]), rt = re((o, l) => l.ok ? l.config.isActive === !1 && !q ? (Ee((m) => {
430
+ if (!m[o]) return m;
431
+ const w = { ...m };
432
432
  return delete w[o], w;
433
- }), x.current === o && (ee(V("bundle.provider.inactive_error")), ce(!1), typeof window < "u" && window.location.hash.toLowerCase().startsWith(ut) && window.history.replaceState(null, "", window.location.pathname + window.location.search)), !1) : (Ae((h) => ({
434
- ...h,
433
+ }), x.current === o && (Z(F("bundle.provider.inactive_error")), se(!1), typeof window < "u" && window.location.hash.toLowerCase().startsWith(dt) && window.history.replaceState(null, "", window.location.pathname + window.location.search)), !1) : (Ee((m) => ({
434
+ ...m,
435
435
  [o]: {
436
- currencyCode: s.currencyCode ?? null,
437
- config: s.config,
438
- eligibleVariants: s.eligibleVariants ?? []
436
+ currencyCode: l.currencyCode ?? null,
437
+ config: l.config,
438
+ eligibleVariants: l.eligibleVariants ?? []
439
439
  }
440
- })), x.current === o && ee(null), !0) : (Ae((h) => {
441
- if (!h[o]) return h;
442
- const w = { ...h };
440
+ })), x.current === o && Z(null), !0) : (Ee((m) => {
441
+ if (!m[o]) return m;
442
+ const w = { ...m };
443
443
  return delete w[o], w;
444
- }), !D && x.current === o && (ee(s.ok ? V("bundle.provider.inactive_error") : s.error || V("bundle.provider.load_error")), ce(!1), typeof window < "u" && window.location.hash.toLowerCase().startsWith(ut) && window.history.replaceState(null, "", window.location.pathname + window.location.search)), !1), [D, V]), Fe = J((o, s) => {
444
+ }), !q && x.current === o && (Z(l.ok ? F("bundle.provider.inactive_error") : l.error || F("bundle.provider.load_error")), se(!1), typeof window < "u" && window.location.hash.toLowerCase().startsWith(dt) && window.history.replaceState(null, "", window.location.pathname + window.location.search)), !1), [q, F]), Oe = re((o, l) => {
445
445
  var y;
446
- const h = Ge(o);
447
- (y = ye.current) == null || y.abort();
446
+ const m = Ge(o);
447
+ (y = Ie.current) == null || y.abort();
448
448
  const w = new AbortController();
449
- ye.current = w, s != null && s.blocking && De(h), ee(null), W({
449
+ Ie.current = w, l != null && l.blocking && De(m), Z(null), Q({
450
450
  apiBaseUrl: e,
451
451
  shop: t,
452
- configHandle: h,
453
- fresh: (s == null ? void 0 : s.blocking) === !0 && !T.current[h],
452
+ configHandle: m,
453
+ fresh: (l == null ? void 0 : l.blocking) === !0 && !R.current[m],
454
454
  signal: w.signal
455
- }).then((C) => {
456
- w.signal.aborted || at(h, C);
457
- }).catch((C) => {
455
+ }).then((I) => {
456
+ w.signal.aborted || rt(m, I);
457
+ }).catch((I) => {
458
458
  if (w.signal.aborted) return;
459
- const S = C instanceof Error ? C.message : V("bundle.provider.load_error");
460
- x.current === h && ee(S);
459
+ const B = I instanceof Error ? I.message : F("bundle.provider.load_error");
460
+ x.current === m && Z(B);
461
461
  }).finally(() => {
462
- w.signal.aborted || De((C) => C === h ? null : C);
462
+ w.signal.aborted || De((I) => I === m ? null : I);
463
463
  });
464
- }, [e, at, W, t, V]), re = J((o) => {
465
- const s = Ge(o), h = T.current[s];
466
- Ce(s), ee(null), Fe(s, { blocking: !h });
467
- }, [Fe]), z = J((o, s = "api") => {
468
- var C, S;
469
- const h = Ge(o), w = T.current[h];
470
- if (H && M.current && !w) {
471
- Me({ handle: h, source: s });
464
+ }, [e, rt, Q, t, F]), he = re((o) => {
465
+ const l = Ge(o), m = R.current[l];
466
+ Be(l), Z(null), Oe(l, { blocking: !m });
467
+ }, [Oe]), G = re((o, l = "api") => {
468
+ var I, B;
469
+ const m = Ge(o), w = R.current[m];
470
+ if (j && A.current && !w) {
471
+ Me({ handle: m, source: l });
472
472
  return;
473
473
  }
474
- if (Ce(h), D) {
475
- Pe(), Fe(h, { blocking: !w });
474
+ if (Be(m), q) {
475
+ Fe(), Oe(m, { blocking: !w });
476
476
  return;
477
477
  }
478
- if ((C = w == null ? void 0 : w.config) != null && C.isActive) {
479
- ee(null), Pe(), Fe(h, { blocking: !1 });
478
+ if ((I = w == null ? void 0 : w.config) != null && I.isActive) {
479
+ Z(null), Fe(), Oe(m, { blocking: !1 });
480
480
  return;
481
481
  }
482
- We(h), (S = f.current) == null || S.abort();
482
+ We(m), (B = f.current) == null || B.abort();
483
483
  const y = new AbortController();
484
- f.current = y, te({
484
+ f.current = y, le({
485
485
  apiBaseUrl: e,
486
486
  shop: t,
487
- configHandle: h,
487
+ configHandle: m,
488
488
  signal: y.signal
489
- }).then((P) => {
489
+ }).then((E) => {
490
490
  if (!y.signal.aborted) {
491
- if (We((Q) => Q === h ? null : Q), !P.ok || P.isActive !== !0) {
492
- s === "hash" && typeof window < "u" && Ot(window.location.hash) === h && window.history.replaceState(null, "", window.location.pathname + window.location.search);
491
+ if (We((ee) => ee === m ? null : ee), !E.ok || E.isActive !== !0) {
492
+ l === "hash" && typeof window < "u" && Et(window.location.hash) === m && window.history.replaceState(null, "", window.location.pathname + window.location.search);
493
493
  return;
494
494
  }
495
- ee(null), Ce(h), Pe(), Fe(h, { blocking: !0 });
495
+ Z(null), Be(m), Fe(), Oe(m, { blocking: !0 });
496
496
  }
497
497
  }).catch(() => {
498
- y.signal.aborted || We((P) => P === h ? null : P);
498
+ y.signal.aborted || We((E) => E === m ? null : E);
499
499
  });
500
500
  }, [
501
- D,
501
+ q,
502
502
  e,
503
- Pe,
504
503
  Fe,
504
+ Oe,
505
505
  t,
506
- te,
507
- H
508
- ]), rt = J(() => {
509
- A(), z(x.current, "api");
510
- }, [z, A]);
511
- O(() => {
512
- q.current = z;
513
- }, [z]);
514
- const Oe = J(() => {
515
- if (I) {
516
- Se();
506
+ le,
507
+ j
508
+ ]), it = re(() => {
509
+ z(), G(x.current, "api");
510
+ }, [G, z]);
511
+ D(() => {
512
+ U.current = G;
513
+ }, [G]);
514
+ const Ae = re(() => {
515
+ if (N) {
516
+ Le();
517
517
  return;
518
518
  }
519
- A(), z(x.current, "api");
520
- }, [Se, I, z, A]);
521
- O(() => {
522
- Ce(Ge(i));
523
- }, [i]), O(() => {
524
- var s;
525
- if (!H) {
526
- Le(!1), a || Fe(K, { blocking: !0 });
519
+ z(), G(x.current, "api");
520
+ }, [Le, N, G, z]);
521
+ D(() => {
522
+ Be(Ge(r));
523
+ }, [r]), D(() => {
524
+ var l;
525
+ if (!j) {
526
+ Pe(!1), a || Oe(K, { blocking: !0 });
527
527
  return;
528
528
  }
529
- (s = Ee.current) == null || s.abort();
529
+ (l = qe.current) == null || l.abort();
530
530
  const o = new AbortController();
531
- return Ee.current = o, Le(!0), Z({ apiBaseUrl: e, shop: t, signal: o.signal }).then((h) => {
532
- o.signal.aborted || h.ok && Ae((w) => {
531
+ return qe.current = o, Pe(!0), ae({ apiBaseUrl: e, shop: t, signal: o.signal }).then((m) => {
532
+ o.signal.aborted || m.ok && Ee((w) => {
533
533
  const y = { ...w };
534
- for (const [C, S] of Object.entries(h.configs ?? {}))
535
- y[Ge(C)] = {
536
- currencyCode: S.currencyCode ?? null,
537
- config: S.config,
538
- eligibleVariants: S.eligibleVariants ?? []
534
+ for (const [I, B] of Object.entries(m.configs ?? {}))
535
+ y[Ge(I)] = {
536
+ currencyCode: B.currencyCode ?? null,
537
+ config: B.config,
538
+ eligibleVariants: B.eligibleVariants ?? []
539
539
  };
540
540
  return y;
541
541
  });
542
542
  }).catch(() => {
543
543
  }).finally(() => {
544
- o.signal.aborted || Le(!1);
544
+ o.signal.aborted || Pe(!1);
545
545
  }), () => o.abort();
546
- }, [Z, e, a, K, Fe, t, H]), O(() => {
547
- we || !ze || (z(ze.handle, ze.source), Me(null));
548
- }, [we, z, ze]), O(() => {
546
+ }, [ae, e, a, K, Oe, t, j]), D(() => {
547
+ Ne || !je || (G(je.handle, je.source), Me(null));
548
+ }, [Ne, G, je]), D(() => {
549
549
  if (typeof window > "u") return;
550
550
  const o = () => {
551
- var h;
552
- const s = Ot(window.location.hash);
553
- s && ((h = q.current) == null || h.call(q, s, "hash"));
551
+ var m;
552
+ const l = Et(window.location.hash);
553
+ l && ((m = U.current) == null || m.call(U, l, "hash"));
554
554
  };
555
555
  return o(), window.addEventListener("hashchange", o), () => window.removeEventListener("hashchange", o);
556
556
  }, []);
557
- const ve = be[ae] ?? null, N = (ve == null ? void 0 : ve.config) ?? null, oe = (ve == null ? void 0 : ve.eligibleVariants) ?? rn, je = (ve == null ? void 0 : ve.currencyCode) ?? null, xe = !N && (Ie === ae || nt === ae) || D && !N && Ie != null;
558
- O(() => {
559
- const o = Et(N == null ? void 0 : N.styleSettings);
560
- o && Dt(o);
561
- }, [N == null ? void 0 : N.styleSettings]), O(() => {
557
+ const Se = ge[de] ?? null, C = (Se == null ? void 0 : Se.config) ?? null, be = (Se == null ? void 0 : Se.eligibleVariants) ?? ln, Ue = (Se == null ? void 0 : Se.currencyCode) ?? null, Ce = !C && (ke === de || at === de) || q && !C && ke != null;
558
+ D(() => {
559
+ const o = $t(C == null ? void 0 : C.styleSettings);
560
+ o && qt(o);
561
+ }, [C == null ? void 0 : C.styleSettings]), D(() => {
562
562
  if (typeof window > "u") return;
563
563
  const o = () => {
564
- const s = Et(void 0);
565
- s && Dt(s);
564
+ const l = $t(void 0);
565
+ l && qt(l);
566
566
  };
567
567
  return window.addEventListener("bundle-preview-styles-updated", o), () => window.removeEventListener("bundle-preview-styles-updated", o);
568
- }, []), O(() => {
568
+ }, []), D(() => {
569
569
  if (typeof window > "u") return;
570
- const o = window, s = () => {
571
- const h = o.__BUNDLE_PREVIEW_CONFIG__;
572
- if (!h) return;
570
+ const o = window, l = () => {
571
+ const m = o.__BUNDLE_PREVIEW_CONFIG__;
572
+ if (!m) return;
573
573
  const w = Array.isArray(o.__BUNDLE_PREVIEW_ELIGIBLE_VARIANTS__) ? o.__BUNDLE_PREVIEW_ELIGIBLE_VARIANTS__ : [], y = o.__BUNDLE_PREVIEW_VARIANTS_LOADING__ === !0;
574
- Ae((C) => {
575
- var S;
574
+ Ee((I) => {
575
+ var B;
576
576
  return {
577
- ...C,
577
+ ...I,
578
578
  [x.current]: {
579
- currencyCode: je ?? null,
580
- config: h,
581
- eligibleVariants: y ? ((S = C[x.current]) == null ? void 0 : S.eligibleVariants) ?? [] : w
579
+ currencyCode: Ue ?? null,
580
+ config: m,
581
+ eligibleVariants: y ? ((B = I[x.current]) == null ? void 0 : B.eligibleVariants) ?? [] : w
582
582
  }
583
583
  };
584
- }), De(y ? x.current : (C) => C === x.current ? null : C);
584
+ }), De(y ? x.current : (I) => I === x.current ? null : I);
585
585
  };
586
- return o.__BUNDLE_PREVIEW_CONFIG__ && s(), window.addEventListener("bundle-preview-config-updated", s), () => window.removeEventListener("bundle-preview-config-updated", s);
587
- }, [je]);
588
- const it = L(() => {
589
- const o = Number((N == null ? void 0 : N.maxBundleSize) ?? Number.NaN), s = Number.isFinite(o) ? Math.floor(o) : 100;
590
- return Math.max(2, Math.min(100, s));
591
- }, [N == null ? void 0 : N.maxBundleSize]), Ue = L(() => new Map(
592
- oe.map((o) => {
593
- const s = xt(o);
594
- if (!Number.isFinite(s)) return [o.id, s];
595
- const h = wt(me[o.id] ?? 0);
596
- return [o.id, Math.max(0, Math.floor(s) - h)];
586
+ return o.__BUNDLE_PREVIEW_CONFIG__ && l(), window.addEventListener("bundle-preview-config-updated", l), () => window.removeEventListener("bundle-preview-config-updated", l);
587
+ }, [Ue]);
588
+ const ot = P(() => {
589
+ const o = Number((C == null ? void 0 : C.maxBundleSize) ?? Number.NaN), l = Number.isFinite(o) ? Math.floor(o) : 100;
590
+ return Math.max(2, Math.min(100, l));
591
+ }, [C == null ? void 0 : C.maxBundleSize]), He = P(() => new Map(
592
+ be.map((o) => {
593
+ const l = St(o);
594
+ if (!Number.isFinite(l)) return [o.id, l];
595
+ const m = xt(ue[o.id] ?? 0);
596
+ return [o.id, Math.max(0, Math.floor(l) - m)];
597
597
  })
598
- ), [oe, me]), He = L(() => new Set(
599
- oe.filter((o) => xt(o) > 0).map((o) => o.id)
600
- ), [oe]), Be = L(() => {
601
- const o = (N == null ? void 0 : N.rules) ?? [], s = o.length ? Math.min(...o.map((C) => C.minBundleSize)) : 2, h = Number.isFinite(s) && s > 0 ? s : 2, w = Number((N == null ? void 0 : N.minBundleSize) ?? Number.NaN), y = Number.isFinite(w) && Number.isInteger(w) ? Math.max(2, Math.min(100, w)) : null;
602
- return y == null ? h : Math.min(h, y);
603
- }, [N == null ? void 0 : N.minBundleSize, N == null ? void 0 : N.rules]), dt = J((o, s) => {
604
- if (X || !He.has(o) && !xe)
598
+ ), [be, ue]), Qe = P(() => new Set(
599
+ be.filter((o) => St(o) > 0).map((o) => o.id)
600
+ ), [be]), Re = P(() => {
601
+ const o = (C == null ? void 0 : C.rules) ?? [], l = o.length ? Math.min(...o.map((I) => I.minBundleSize)) : 2, m = Number.isFinite(l) && l > 0 ? l : 2, w = Number((C == null ? void 0 : C.minBundleSize) ?? Number.NaN), y = Number.isFinite(w) && Number.isInteger(w) ? Math.max(2, Math.min(100, w)) : null;
602
+ return y == null ? m : Math.min(m, y);
603
+ }, [C == null ? void 0 : C.minBundleSize, C == null ? void 0 : C.rules]), ht = re((o, l) => {
604
+ if (V || !Qe.has(o) && !Ce)
605
605
  return;
606
- const h = Ue.get(o) ?? (xe ? Number.POSITIVE_INFINITY : 0), w = It(s, h);
607
- Ne((y) => {
608
- const C = y.selections[o] ?? 0, S = w - C, P = Object.values(y.selections).reduce((pe, de) => pe + (de || 0), 0), Q = Number.isFinite(h) ? Math.max(0, Math.floor(h) - C) : S, Y = S > 0 ? Math.min(
609
- S,
610
- Math.max(0, it - P),
611
- Q
612
- ) : S, ue = C + Y;
613
- let fe;
614
- if (ue <= 0) {
615
- const pe = { ...y.selections };
616
- delete pe[o], fe = pe;
617
- } else C === ue ? fe = y.selections : fe = { ...y.selections, [o]: ue };
618
- let Ve = y.order;
619
- if (Y > 0)
620
- Ve = [...y.order, ...Array.from({ length: Y }, () => o)];
621
- else if (Y < 0) {
622
- let pe = -Y;
623
- const de = [];
624
- for (let st = y.order.length - 1; st >= 0; st--) {
625
- const k = y.order[st];
626
- if (k === o && pe > 0) {
627
- pe--;
606
+ const m = He.get(o) ?? (Ce ? Number.POSITIVE_INFINITY : 0), w = Bt(l, m);
607
+ Te((y) => {
608
+ const I = y.selections[o] ?? 0, B = w - I, E = Object.values(y.selections).reduce((ye, _e) => ye + (_e || 0), 0), ee = Number.isFinite(m) ? Math.max(0, Math.floor(m) - I) : B, te = B > 0 ? Math.min(
609
+ B,
610
+ Math.max(0, ot - E),
611
+ ee
612
+ ) : B, pe = I + te;
613
+ let we;
614
+ if (pe <= 0) {
615
+ const ye = { ...y.selections };
616
+ delete ye[o], we = ye;
617
+ } else I === pe ? we = y.selections : we = { ...y.selections, [o]: pe };
618
+ let ze = y.order;
619
+ if (te > 0)
620
+ ze = [...y.order, ...Array.from({ length: te }, () => o)];
621
+ else if (te < 0) {
622
+ let ye = -te;
623
+ const _e = [];
624
+ for (let lt = y.order.length - 1; lt >= 0; lt--) {
625
+ const k = y.order[lt];
626
+ if (k === o && ye > 0) {
627
+ ye--;
628
628
  continue;
629
629
  }
630
- de.push(k);
630
+ _e.push(k);
631
631
  }
632
- de.reverse(), Ve = de;
632
+ _e.reverse(), ze = _e;
633
633
  }
634
- if (fe === y.selections && Ve === y.order) return y;
635
- const Je = P, et = Object.values(fe).reduce((pe, de) => pe + (de || 0), 0);
634
+ if (we === y.selections && ze === y.order) return y;
635
+ const et = E, tt = Object.values(we).reduce((ye, _e) => ye + (_e || 0), 0);
636
636
  if (g)
637
637
  try {
638
- const pe = _t(), de = {
638
+ const ye = yt(), _e = {
639
639
  eventType: "VARIANT_SELECTION_CHANGED",
640
640
  shop: t,
641
- anonymousUserId: pe,
641
+ anonymousUserId: ye,
642
642
  before: { ...y.selections },
643
- after: { ...fe },
643
+ after: { ...we },
644
644
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
645
645
  };
646
- lt(g, t, de), Je === 0 && et >= 1 && lt(g, t, {
647
- ...de,
646
+ ct(g, t, _e), et === 0 && tt >= 1 && ct(g, t, {
647
+ ..._e,
648
648
  mixpanelEvent: "bundle_started"
649
- }), Je < Be && et >= Be && lt(g, t, {
650
- ...de,
649
+ }), et < Re && tt >= Re && ct(g, t, {
650
+ ..._e,
651
651
  mixpanelEvent: "bundle_completed"
652
652
  });
653
653
  } catch {
654
654
  }
655
- return { selections: fe, order: Ve };
655
+ return { selections: we, order: ze };
656
656
  });
657
- }, [g, X, He, xe, it, Be, t, Ue]);
658
- O(() => {
659
- xe || Ne((o) => {
660
- const s = Object.entries(o.selections).map(([C, S]) => {
661
- if (!He.has(C)) return null;
662
- const P = Ue.get(C) ?? 0, Q = It(S, P);
663
- return Q <= 0 ? null : [C, Q];
664
- }).filter(Boolean), h = Object.fromEntries(s), w = new Map(s), y = o.order.filter((C) => {
665
- const S = w.get(C) ?? 0;
666
- return S <= 0 ? !1 : (w.set(C, S - 1), !0);
657
+ }, [g, V, Qe, Ce, ot, Re, t, He]);
658
+ D(() => {
659
+ Ce || Te((o) => {
660
+ const l = Object.entries(o.selections).map(([I, B]) => {
661
+ if (!Qe.has(I)) return null;
662
+ const E = He.get(I) ?? 0, ee = Bt(B, E);
663
+ return ee <= 0 ? null : [I, ee];
664
+ }).filter(Boolean), m = Object.fromEntries(l), w = new Map(l), y = o.order.filter((I) => {
665
+ const B = w.get(I) ?? 0;
666
+ return B <= 0 ? !1 : (w.set(I, B - 1), !0);
667
667
  });
668
- return y.length === o.order.length && s.length === Object.keys(o.selections).length && s.every(([C, S]) => o.selections[C] === S) ? o : { selections: h, order: y };
668
+ return y.length === o.order.length && l.length === Object.keys(o.selections).length && l.every(([I, B]) => o.selections[I] === B) ? o : { selections: m, order: y };
669
669
  });
670
- }, [He, xe, Ue]), O(() => {
671
- Ne({ selections: {}, order: [] });
672
- }, [ae]);
673
- const Ke = J(() => Ne({ selections: {}, order: [] }), []), ot = J(async () => {
674
- await A();
675
- }, [A]), ht = J((o) => {
676
- const s = Ue.get(o);
677
- return s == null || !Number.isFinite(s) ? null : Math.max(0, Math.floor(s));
678
- }, [Ue]), qe = Ye.selections, mt = Ye.order, $e = L(() => Object.values(qe).reduce((o, s) => o + (s || 0), 0), [qe]), Xe = L(() => !(xe || X || ke || ge || !(N != null && N.isActive) || $e < Be), [$e, X, N == null ? void 0 : N.isActive, ge, xe, Be, ke]), Ze = J(async (o) => {
679
- var de, st;
680
- if (!Xe || !N) return;
681
- const s = ln(), h = (N.title ?? "").trim().slice(0, 255), w = await A(), y = new Map(
682
- oe.map((k) => {
683
- const se = xt(k);
684
- if (!Number.isFinite(se)) return [k.id, se];
685
- const tt = wt((w ?? me)[k.id] ?? 0);
686
- return [k.id, Math.max(0, Math.floor(se) - tt)];
670
+ }, [Qe, Ce, He]), D(() => {
671
+ Te({ selections: {}, order: [] });
672
+ }, [de]);
673
+ const Xe = re(() => Te({ selections: {}, order: [] }), []), st = re(async () => {
674
+ await z();
675
+ }, [z]), mt = re((o) => {
676
+ const l = He.get(o);
677
+ return l == null || !Number.isFinite(l) ? null : Math.max(0, Math.floor(l));
678
+ }, [He]), $e = Ke.selections, bt = Ke.order, Ve = P(() => Object.values($e).reduce((o, l) => o + (l || 0), 0), [$e]), Ze = P(() => !(Ce || V || L || X || !(C != null && C.isActive) || Ve < Re), [Ve, V, C == null ? void 0 : C.isActive, X, Ce, Re, L]), Je = re(async (o) => {
679
+ var _e, lt;
680
+ if (!Ze || !C) return;
681
+ const l = dn(), m = (C.title ?? "").trim().slice(0, 255), w = await z(), y = new Map(
682
+ be.map((k) => {
683
+ const fe = St(k);
684
+ if (!Number.isFinite(fe)) return [k.id, fe];
685
+ const nt = xt((w ?? ue)[k.id] ?? 0);
686
+ return [k.id, Math.max(0, Math.floor(fe) - nt)];
687
687
  })
688
- ), C = Object.entries(qe).map(([k, se]) => ({
688
+ ), I = Object.entries($e).map(([k, fe]) => ({
689
689
  merchandiseId: k,
690
- quantity: It(se, y.get(k) ?? 0)
691
- })).filter((k) => k.quantity > 0).filter((k) => He.has(k.merchandiseId)).map((k) => ({
690
+ quantity: Bt(fe, y.get(k) ?? 0)
691
+ })).filter((k) => k.quantity > 0).filter((k) => Qe.has(k.merchandiseId)).map((k) => ({
692
692
  merchandiseId: k.merchandiseId,
693
693
  quantity: k.quantity,
694
694
  attributes: [
695
- { key: pt.bundleId, value: s },
696
- { key: pt.bundleConfig, value: ae },
697
- { key: pt.bundleSource, value: "bundle_builder" },
698
- ...h ? [{ key: pt.bundleTitle, value: h }] : []
695
+ { key: wt.bundleId, value: l },
696
+ { key: wt.bundleConfig, value: de },
697
+ { key: wt.bundleSource, value: "bundle_builder" },
698
+ ...m ? [{ key: wt.bundleTitle, value: m }] : []
699
699
  ]
700
700
  }));
701
- if (!C.length) return;
702
- const S = new Map(oe.map((k) => [k.id, k]));
703
- let P = 0;
704
- for (const k of C) {
705
- const se = k.quantity ?? 0;
706
- if (se <= 0) continue;
707
- const tt = S.get(k.merchandiseId), Pt = Number(tt == null ? void 0 : tt.price);
708
- Number.isFinite(Pt) && (P += Pt * se);
701
+ if (!I.length) return;
702
+ const B = new Map(be.map((k) => [k.id, k]));
703
+ let E = 0;
704
+ for (const k of I) {
705
+ const fe = k.quantity ?? 0;
706
+ if (fe <= 0) continue;
707
+ const nt = B.get(k.merchandiseId), Ot = Number(nt == null ? void 0 : nt.price);
708
+ Number.isFinite(Ot) && (E += Ot * fe);
709
709
  }
710
- P = Math.round(P * 100) / 100;
711
- const Q = [...N.rules ?? []].sort((k, se) => k.minBundleSize - se.minBundleSize);
712
- let Y = null;
713
- for (const k of Q)
714
- $e >= k.minBundleSize && (Y = k);
715
- const ue = Y ? (() => {
716
- const k = Number.parseFloat(Y.discountPercent);
710
+ E = Math.round(E * 100) / 100;
711
+ const ee = [...C.rules ?? []].sort((k, fe) => k.minBundleSize - fe.minBundleSize);
712
+ let te = null;
713
+ for (const k of ee)
714
+ Ve >= k.minBundleSize && (te = k);
715
+ const pe = te ? (() => {
716
+ const k = Number.parseFloat(te.discountPercent);
717
717
  return Number.isFinite(k) && k > 0 ? k : null;
718
- })() : null, fe = ue ? Math.round(P * (1 - ue / 100) * 100) / 100 : P, Ve = P - fe, Je = C.map((k) => k.merchandiseId), et = (Y == null ? void 0 : Y.handle) ?? "", pe = ((de = Y == null ? void 0 : Y.label) == null ? void 0 : de.trim()) || "";
719
- Te(!0);
718
+ })() : null, we = pe ? Math.round(E * (1 - pe / 100) * 100) / 100 : E, ze = E - we, et = I.map((k) => k.merchandiseId), tt = (te == null ? void 0 : te.handle) ?? "", ye = ((_e = te == null ? void 0 : te.label) == null ? void 0 : _e.trim()) || "";
719
+ O(!0);
720
720
  try {
721
- if (o != null && o.checkout ? await r.linesAddForCheckout(C) : await r.linesAdd(C), g)
721
+ if (o != null && o.checkout ? await i.linesAddForCheckout(I) : await i.linesAdd(I), g)
722
722
  try {
723
- const k = _t(), se = !!(o != null && o.checkout);
724
- lt(g, t, {
723
+ const k = yt(), fe = !!(o != null && o.checkout);
724
+ ct(g, t, {
725
725
  eventType: "BUNDLE_ADDED_TO_BASKET",
726
726
  shop: t,
727
727
  anonymousUserId: k,
728
- bundleId: s,
729
- productVariantIds: Je,
730
- grossPrice: P,
731
- discountedPrice: fe,
732
- currency: je ?? void 0,
733
- discountThresholdIdentifier: et,
734
- discountLabel: pe,
735
- discountPercentage: ue,
736
- discountedAmount: Ve,
728
+ bundleId: l,
729
+ productVariantIds: et,
730
+ grossPrice: E,
731
+ discountedPrice: we,
732
+ currency: Ue ?? void 0,
733
+ discountThresholdIdentifier: tt,
734
+ discountLabel: ye,
735
+ discountPercentage: pe,
736
+ discountedAmount: ze,
737
737
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
738
- checkout: se,
739
- mixpanelEvent: se ? "checkout_started_with_bundle" : "bundle_added_to_cart"
738
+ checkout: fe,
739
+ mixpanelEvent: fe ? "checkout_started_with_bundle" : "bundle_added_to_cart"
740
740
  });
741
741
  } catch {
742
742
  }
743
- Ke(), Se(), A(), (st = o == null ? void 0 : o.onComplete) == null || st.call(o), ee(null);
743
+ Xe(), Le(), z(), (lt = o == null ? void 0 : o.onComplete) == null || lt.call(o), Z(null);
744
744
  } catch (k) {
745
- const se = k instanceof Error ? k.message : "", tt = /stock|sold out|inventory|insufficient|available|422/i.test(se);
746
- ee(
747
- V(tt ? "bundle.provider.stock_error" : "bundle.provider.add_error")
748
- ), A();
745
+ const fe = k instanceof Error ? k.message : "", nt = /stock|sold out|inventory|insufficient|available|422/i.test(fe);
746
+ Z(
747
+ F(nt ? "bundle.provider.stock_error" : "bundle.provider.add_error")
748
+ ), z();
749
749
  } finally {
750
- Te(!1);
750
+ O(!1);
751
751
  }
752
752
  }, [
753
753
  g,
754
- $e,
754
+ Ve,
755
+ Ze,
756
+ i,
755
757
  Xe,
756
- r,
757
- Ke,
758
- Se,
759
- N,
760
- je,
761
- me,
762
- ae,
763
- He,
764
- oe,
765
- A,
766
- qe,
758
+ Le,
759
+ C,
760
+ Ue,
761
+ ue,
762
+ de,
763
+ Qe,
764
+ be,
765
+ z,
766
+ $e,
767
767
  t,
768
- V
769
- ]), c = J(async () => {
770
- await Ze({
768
+ F
769
+ ]), c = re(async () => {
770
+ await Je({
771
771
  onComplete: () => {
772
772
  var o;
773
- (o = r.openCartUI) == null || o.call(r);
773
+ (o = i.openCartUI) == null || o.call(i);
774
774
  }
775
775
  });
776
- }, [r, Ze]), d = J(async () => {
777
- await Ze({
776
+ }, [i, Je]), d = re(async () => {
777
+ await Je({
778
778
  checkout: !0,
779
779
  onComplete: () => {
780
780
  var o;
781
- (o = r.navigateToCheckout) == null || o.call(r);
781
+ (o = i.navigateToCheckout) == null || o.call(i);
782
782
  }
783
783
  });
784
- }, [r, Ze]), v = L(() => ({
785
- isOpen: I,
786
- open: rt,
787
- openForHandle: z,
788
- close: Se,
789
- toggle: Oe,
790
- currentHandle: ae,
791
- setConfigHandle: $,
792
- loadHandle: re,
793
- syncCartQuantities: ot,
794
- loading: xe,
795
- submitting: ke,
796
- error: ge,
797
- currencyCode: je,
798
- config: N,
799
- eligibleVariants: oe,
800
- selections: qe,
801
- selectionOrder: mt,
802
- getVariantMaxSelectableQuantity: ht,
803
- setQuantity: dt,
804
- clearSelections: Ke,
805
- bundleSize: $e,
806
- minRequired: Be,
807
- canSubmit: Xe,
784
+ }, [i, Je]), v = P(() => ({
785
+ isOpen: N,
786
+ open: it,
787
+ openForHandle: G,
788
+ close: Le,
789
+ toggle: Ae,
790
+ currentHandle: de,
791
+ setConfigHandle: H,
792
+ loadHandle: he,
793
+ syncCartQuantities: st,
794
+ loading: Ce,
795
+ submitting: L,
796
+ error: X,
797
+ currencyCode: Ue,
798
+ config: C,
799
+ eligibleVariants: be,
800
+ selections: $e,
801
+ selectionOrder: bt,
802
+ getVariantMaxSelectableQuantity: mt,
803
+ setQuantity: ht,
804
+ clearSelections: Xe,
805
+ bundleSize: Ve,
806
+ minRequired: Re,
807
+ canSubmit: Ze,
808
808
  submit: c,
809
809
  submitAndCheckout: d,
810
- locale: ne,
811
- t: V
810
+ locale: ie,
811
+ t: F
812
812
  }), [
813
- $e,
813
+ Ve,
814
+ Ze,
814
815
  Xe,
815
- Ke,
816
- Se,
816
+ Le,
817
+ C,
818
+ Ue,
819
+ de,
820
+ be,
821
+ X,
817
822
  N,
818
- je,
819
- ae,
820
- oe,
821
- ge,
822
- I,
823
- xe,
824
- Be,
825
- rt,
826
- z,
823
+ Ce,
824
+ Re,
825
+ it,
826
+ G,
827
+ bt,
828
+ $e,
829
+ H,
830
+ he,
831
+ st,
827
832
  mt,
828
- qe,
829
- $,
830
- re,
831
- ot,
832
833
  ht,
833
- dt,
834
834
  c,
835
835
  d,
836
- ke,
837
- Oe,
838
- ne,
839
- V
836
+ L,
837
+ Ae,
838
+ ie,
839
+ F
840
840
  ]);
841
- return /* @__PURE__ */ l(Ut.Provider, { value: v, children: F });
841
+ return /* @__PURE__ */ s(Qt.Provider, { value: v, children: M });
842
842
  }
843
- function vt() {
844
- const n = Qt(Ut);
843
+ function gt() {
844
+ const n = Xt(Qt);
845
845
  if (!n)
846
846
  throw new Error("useBundleBuilder must be used within <BundleProvider />");
847
847
  return n;
848
848
  }
849
- function Ci() {
850
- const { isOpen: n, open: e, close: t, toggle: r } = vt();
851
- return { isOpen: n, open: e, close: t, toggle: r };
849
+ function ji() {
850
+ const { isOpen: n, open: e, close: t, toggle: i } = gt();
851
+ return { isOpen: n, open: e, close: t, toggle: i };
852
852
  }
853
- const un = "_button_18rtl_1", dn = {
854
- button: un
853
+ const mn = "_button_18rtl_1", bn = {
854
+ button: mn
855
855
  };
856
- function Ii(n) {
857
- const { toggle: e, t } = vt();
858
- return /* @__PURE__ */ l(
856
+ function Ui(n) {
857
+ const { toggle: e, t } = gt();
858
+ return /* @__PURE__ */ s(
859
859
  "button",
860
860
  {
861
861
  type: "button",
862
862
  onClick: e,
863
- className: [dn.button, n.className].filter(Boolean).join(" "),
863
+ className: [bn.button, n.className].filter(Boolean).join(" "),
864
864
  children: n.children ?? t("bundle.button.default")
865
865
  }
866
866
  );
867
867
  }
868
- var Nt, qt;
869
- function hn() {
870
- if (qt) return Nt;
871
- qt = 1;
868
+ var kt, Vt;
869
+ function fn() {
870
+ if (Vt) return kt;
871
+ Vt = 1;
872
872
  var n = {
873
- linear: function(e, t, r, i) {
874
- var a = r - t;
875
- return a * e / i + t;
873
+ linear: function(e, t, i, r) {
874
+ var a = i - t;
875
+ return a * e / r + t;
876
876
  },
877
- easeInQuad: function(e, t, r, i) {
878
- var a = r - t;
879
- return a * (e /= i) * e + t;
877
+ easeInQuad: function(e, t, i, r) {
878
+ var a = i - t;
879
+ return a * (e /= r) * e + t;
880
880
  },
881
- easeOutQuad: function(e, t, r, i) {
882
- var a = r - t;
883
- return -a * (e /= i) * (e - 2) + t;
881
+ easeOutQuad: function(e, t, i, r) {
882
+ var a = i - t;
883
+ return -a * (e /= r) * (e - 2) + t;
884
884
  },
885
- easeInOutQuad: function(e, t, r, i) {
886
- var a = r - t;
887
- return (e /= i / 2) < 1 ? a / 2 * e * e + t : -a / 2 * (--e * (e - 2) - 1) + t;
885
+ easeInOutQuad: function(e, t, i, r) {
886
+ var a = i - t;
887
+ return (e /= r / 2) < 1 ? a / 2 * e * e + t : -a / 2 * (--e * (e - 2) - 1) + t;
888
888
  },
889
- easeInCubic: function(e, t, r, i) {
890
- var a = r - t;
891
- return a * (e /= i) * e * e + t;
889
+ easeInCubic: function(e, t, i, r) {
890
+ var a = i - t;
891
+ return a * (e /= r) * e * e + t;
892
892
  },
893
- easeOutCubic: function(e, t, r, i) {
894
- var a = r - t;
895
- return a * ((e = e / i - 1) * e * e + 1) + t;
893
+ easeOutCubic: function(e, t, i, r) {
894
+ var a = i - t;
895
+ return a * ((e = e / r - 1) * e * e + 1) + t;
896
896
  },
897
- easeInOutCubic: function(e, t, r, i) {
898
- var a = r - t;
899
- return (e /= i / 2) < 1 ? a / 2 * e * e * e + t : a / 2 * ((e -= 2) * e * e + 2) + t;
897
+ easeInOutCubic: function(e, t, i, r) {
898
+ var a = i - t;
899
+ return (e /= r / 2) < 1 ? a / 2 * e * e * e + t : a / 2 * ((e -= 2) * e * e + 2) + t;
900
900
  },
901
- easeInQuart: function(e, t, r, i) {
902
- var a = r - t;
903
- return a * (e /= i) * e * e * e + t;
901
+ easeInQuart: function(e, t, i, r) {
902
+ var a = i - t;
903
+ return a * (e /= r) * e * e * e + t;
904
904
  },
905
- easeOutQuart: function(e, t, r, i) {
906
- var a = r - t;
907
- return -a * ((e = e / i - 1) * e * e * e - 1) + t;
905
+ easeOutQuart: function(e, t, i, r) {
906
+ var a = i - t;
907
+ return -a * ((e = e / r - 1) * e * e * e - 1) + t;
908
908
  },
909
- easeInOutQuart: function(e, t, r, i) {
910
- var a = r - t;
911
- return (e /= i / 2) < 1 ? a / 2 * e * e * e * e + t : -a / 2 * ((e -= 2) * e * e * e - 2) + t;
909
+ easeInOutQuart: function(e, t, i, r) {
910
+ var a = i - t;
911
+ return (e /= r / 2) < 1 ? a / 2 * e * e * e * e + t : -a / 2 * ((e -= 2) * e * e * e - 2) + t;
912
912
  },
913
- easeInQuint: function(e, t, r, i) {
914
- var a = r - t;
915
- return a * (e /= i) * e * e * e * e + t;
913
+ easeInQuint: function(e, t, i, r) {
914
+ var a = i - t;
915
+ return a * (e /= r) * e * e * e * e + t;
916
916
  },
917
- easeOutQuint: function(e, t, r, i) {
918
- var a = r - t;
919
- return a * ((e = e / i - 1) * e * e * e * e + 1) + t;
917
+ easeOutQuint: function(e, t, i, r) {
918
+ var a = i - t;
919
+ return a * ((e = e / r - 1) * e * e * e * e + 1) + t;
920
920
  },
921
- easeInOutQuint: function(e, t, r, i) {
922
- var a = r - t;
923
- return (e /= i / 2) < 1 ? a / 2 * e * e * e * e * e + t : a / 2 * ((e -= 2) * e * e * e * e + 2) + t;
921
+ easeInOutQuint: function(e, t, i, r) {
922
+ var a = i - t;
923
+ return (e /= r / 2) < 1 ? a / 2 * e * e * e * e * e + t : a / 2 * ((e -= 2) * e * e * e * e + 2) + t;
924
924
  },
925
- easeInSine: function(e, t, r, i) {
926
- var a = r - t;
927
- return -a * Math.cos(e / i * (Math.PI / 2)) + a + t;
925
+ easeInSine: function(e, t, i, r) {
926
+ var a = i - t;
927
+ return -a * Math.cos(e / r * (Math.PI / 2)) + a + t;
928
928
  },
929
- easeOutSine: function(e, t, r, i) {
930
- var a = r - t;
931
- return a * Math.sin(e / i * (Math.PI / 2)) + t;
929
+ easeOutSine: function(e, t, i, r) {
930
+ var a = i - t;
931
+ return a * Math.sin(e / r * (Math.PI / 2)) + t;
932
932
  },
933
- easeInOutSine: function(e, t, r, i) {
934
- var a = r - t;
935
- return -a / 2 * (Math.cos(Math.PI * e / i) - 1) + t;
933
+ easeInOutSine: function(e, t, i, r) {
934
+ var a = i - t;
935
+ return -a / 2 * (Math.cos(Math.PI * e / r) - 1) + t;
936
936
  },
937
- easeInExpo: function(e, t, r, i) {
938
- var a = r - t;
939
- return e == 0 ? t : a * Math.pow(2, 10 * (e / i - 1)) + t;
937
+ easeInExpo: function(e, t, i, r) {
938
+ var a = i - t;
939
+ return e == 0 ? t : a * Math.pow(2, 10 * (e / r - 1)) + t;
940
940
  },
941
- easeOutExpo: function(e, t, r, i) {
942
- var a = r - t;
943
- return e == i ? t + a : a * (-Math.pow(2, -10 * e / i) + 1) + t;
941
+ easeOutExpo: function(e, t, i, r) {
942
+ var a = i - t;
943
+ return e == r ? t + a : a * (-Math.pow(2, -10 * e / r) + 1) + t;
944
944
  },
945
- easeInOutExpo: function(e, t, r, i) {
946
- var a = r - t;
947
- return e === 0 ? t : e === i ? t + a : (e /= i / 2) < 1 ? a / 2 * Math.pow(2, 10 * (e - 1)) + t : a / 2 * (-Math.pow(2, -10 * --e) + 2) + t;
945
+ easeInOutExpo: function(e, t, i, r) {
946
+ var a = i - t;
947
+ return e === 0 ? t : e === r ? t + a : (e /= r / 2) < 1 ? a / 2 * Math.pow(2, 10 * (e - 1)) + t : a / 2 * (-Math.pow(2, -10 * --e) + 2) + t;
948
948
  },
949
- easeInCirc: function(e, t, r, i) {
950
- var a = r - t;
951
- return -a * (Math.sqrt(1 - (e /= i) * e) - 1) + t;
949
+ easeInCirc: function(e, t, i, r) {
950
+ var a = i - t;
951
+ return -a * (Math.sqrt(1 - (e /= r) * e) - 1) + t;
952
952
  },
953
- easeOutCirc: function(e, t, r, i) {
954
- var a = r - t;
955
- return a * Math.sqrt(1 - (e = e / i - 1) * e) + t;
953
+ easeOutCirc: function(e, t, i, r) {
954
+ var a = i - t;
955
+ return a * Math.sqrt(1 - (e = e / r - 1) * e) + t;
956
956
  },
957
- easeInOutCirc: function(e, t, r, i) {
958
- var a = r - t;
959
- return (e /= i / 2) < 1 ? -a / 2 * (Math.sqrt(1 - e * e) - 1) + t : a / 2 * (Math.sqrt(1 - (e -= 2) * e) + 1) + t;
957
+ easeInOutCirc: function(e, t, i, r) {
958
+ var a = i - t;
959
+ return (e /= r / 2) < 1 ? -a / 2 * (Math.sqrt(1 - e * e) - 1) + t : a / 2 * (Math.sqrt(1 - (e -= 2) * e) + 1) + t;
960
960
  },
961
- easeInElastic: function(e, t, r, i) {
962
- var a = r - t, m, u, B;
963
- return B = 1.70158, u = 0, m = a, e === 0 ? t : (e /= i) === 1 ? t + a : (u || (u = i * 0.3), m < Math.abs(a) ? (m = a, B = u / 4) : B = u / (2 * Math.PI) * Math.asin(a / m), -(m * Math.pow(2, 10 * (e -= 1)) * Math.sin((e * i - B) * (2 * Math.PI) / u)) + t);
961
+ easeInElastic: function(e, t, i, r) {
962
+ var a = i - t, h, u, S;
963
+ return S = 1.70158, u = 0, h = a, e === 0 ? t : (e /= r) === 1 ? t + a : (u || (u = r * 0.3), h < Math.abs(a) ? (h = a, S = u / 4) : S = u / (2 * Math.PI) * Math.asin(a / h), -(h * Math.pow(2, 10 * (e -= 1)) * Math.sin((e * r - S) * (2 * Math.PI) / u)) + t);
964
964
  },
965
- easeOutElastic: function(e, t, r, i) {
966
- var a = r - t, m, u, B;
967
- return B = 1.70158, u = 0, m = a, e === 0 ? t : (e /= i) === 1 ? t + a : (u || (u = i * 0.3), m < Math.abs(a) ? (m = a, B = u / 4) : B = u / (2 * Math.PI) * Math.asin(a / m), m * Math.pow(2, -10 * e) * Math.sin((e * i - B) * (2 * Math.PI) / u) + a + t);
965
+ easeOutElastic: function(e, t, i, r) {
966
+ var a = i - t, h, u, S;
967
+ return S = 1.70158, u = 0, h = a, e === 0 ? t : (e /= r) === 1 ? t + a : (u || (u = r * 0.3), h < Math.abs(a) ? (h = a, S = u / 4) : S = u / (2 * Math.PI) * Math.asin(a / h), h * Math.pow(2, -10 * e) * Math.sin((e * r - S) * (2 * Math.PI) / u) + a + t);
968
968
  },
969
- easeInOutElastic: function(e, t, r, i) {
970
- var a = r - t, m, u, B;
971
- return B = 1.70158, u = 0, m = a, e === 0 ? t : (e /= i / 2) === 2 ? t + a : (u || (u = i * (0.3 * 1.5)), m < Math.abs(a) ? (m = a, B = u / 4) : B = u / (2 * Math.PI) * Math.asin(a / m), e < 1 ? -0.5 * (m * Math.pow(2, 10 * (e -= 1)) * Math.sin((e * i - B) * (2 * Math.PI) / u)) + t : m * Math.pow(2, -10 * (e -= 1)) * Math.sin((e * i - B) * (2 * Math.PI) / u) * 0.5 + a + t);
969
+ easeInOutElastic: function(e, t, i, r) {
970
+ var a = i - t, h, u, S;
971
+ return S = 1.70158, u = 0, h = a, e === 0 ? t : (e /= r / 2) === 2 ? t + a : (u || (u = r * (0.3 * 1.5)), h < Math.abs(a) ? (h = a, S = u / 4) : S = u / (2 * Math.PI) * Math.asin(a / h), e < 1 ? -0.5 * (h * Math.pow(2, 10 * (e -= 1)) * Math.sin((e * r - S) * (2 * Math.PI) / u)) + t : h * Math.pow(2, -10 * (e -= 1)) * Math.sin((e * r - S) * (2 * Math.PI) / u) * 0.5 + a + t);
972
972
  },
973
- easeInBack: function(e, t, r, i, a) {
974
- var m = r - t;
975
- return a === void 0 && (a = 1.70158), m * (e /= i) * e * ((a + 1) * e - a) + t;
973
+ easeInBack: function(e, t, i, r, a) {
974
+ var h = i - t;
975
+ return a === void 0 && (a = 1.70158), h * (e /= r) * e * ((a + 1) * e - a) + t;
976
976
  },
977
- easeOutBack: function(e, t, r, i, a) {
978
- var m = r - t;
979
- return a === void 0 && (a = 1.70158), m * ((e = e / i - 1) * e * ((a + 1) * e + a) + 1) + t;
977
+ easeOutBack: function(e, t, i, r, a) {
978
+ var h = i - t;
979
+ return a === void 0 && (a = 1.70158), h * ((e = e / r - 1) * e * ((a + 1) * e + a) + 1) + t;
980
980
  },
981
- easeInOutBack: function(e, t, r, i, a) {
982
- var m = r - t;
983
- return a === void 0 && (a = 1.70158), (e /= i / 2) < 1 ? m / 2 * (e * e * (((a *= 1.525) + 1) * e - a)) + t : m / 2 * ((e -= 2) * e * (((a *= 1.525) + 1) * e + a) + 2) + t;
981
+ easeInOutBack: function(e, t, i, r, a) {
982
+ var h = i - t;
983
+ return a === void 0 && (a = 1.70158), (e /= r / 2) < 1 ? h / 2 * (e * e * (((a *= 1.525) + 1) * e - a)) + t : h / 2 * ((e -= 2) * e * (((a *= 1.525) + 1) * e + a) + 2) + t;
984
984
  },
985
- easeInBounce: function(e, t, r, i) {
986
- var a = r - t, m;
987
- return m = n.easeOutBounce(i - e, 0, a, i), a - m + t;
985
+ easeInBounce: function(e, t, i, r) {
986
+ var a = i - t, h;
987
+ return h = n.easeOutBounce(r - e, 0, a, r), a - h + t;
988
988
  },
989
- easeOutBounce: function(e, t, r, i) {
990
- var a = r - t;
991
- return (e /= i) < 1 / 2.75 ? a * (7.5625 * e * e) + t : e < 2 / 2.75 ? a * (7.5625 * (e -= 1.5 / 2.75) * e + 0.75) + t : e < 2.5 / 2.75 ? a * (7.5625 * (e -= 2.25 / 2.75) * e + 0.9375) + t : a * (7.5625 * (e -= 2.625 / 2.75) * e + 0.984375) + t;
989
+ easeOutBounce: function(e, t, i, r) {
990
+ var a = i - t;
991
+ return (e /= r) < 1 / 2.75 ? a * (7.5625 * e * e) + t : e < 2 / 2.75 ? a * (7.5625 * (e -= 1.5 / 2.75) * e + 0.75) + t : e < 2.5 / 2.75 ? a * (7.5625 * (e -= 2.25 / 2.75) * e + 0.9375) + t : a * (7.5625 * (e -= 2.625 / 2.75) * e + 0.984375) + t;
992
992
  },
993
- easeInOutBounce: function(e, t, r, i) {
994
- var a = r - t, m;
995
- return e < i / 2 ? (m = n.easeInBounce(e * 2, 0, a, i), m * 0.5 + t) : (m = n.easeOutBounce(e * 2 - i, 0, a, i), m * 0.5 + a * 0.5 + t);
993
+ easeInOutBounce: function(e, t, i, r) {
994
+ var a = i - t, h;
995
+ return e < r / 2 ? (h = n.easeInBounce(e * 2, 0, a, r), h * 0.5 + t) : (h = n.easeOutBounce(e * 2 - r, 0, a, r), h * 0.5 + a * 0.5 + t);
996
996
  }
997
997
  };
998
- return Nt = n, Nt;
998
+ return kt = n, kt;
999
999
  }
1000
- var mn = hn();
1001
- function bn(n) {
1000
+ var pn = fn();
1001
+ function _n(n) {
1002
1002
  return n * Math.PI / 180;
1003
1003
  }
1004
- function _e(n, e) {
1004
+ function ve(n, e) {
1005
1005
  return n + Math.random() * (e - n);
1006
1006
  }
1007
- function fn(n, e) {
1007
+ function gn(n, e) {
1008
1008
  return Math.floor(n + Math.random() * (e - n + 1));
1009
1009
  }
1010
- var bt;
1010
+ var pt;
1011
1011
  (function(n) {
1012
1012
  n[n.Circle = 0] = "Circle", n[n.Square = 1] = "Square", n[n.Strip = 2] = "Strip";
1013
- })(bt || (bt = {}));
1014
- var Qe;
1013
+ })(pt || (pt = {}));
1014
+ var Ye;
1015
1015
  (function(n) {
1016
1016
  n[n.Positive = 1] = "Positive", n[n.Negative = -1] = "Negative";
1017
- })(Qe || (Qe = {}));
1018
- const pn = 1e3 / 60;
1019
- class _n {
1020
- constructor(e, t, r, i) {
1017
+ })(Ye || (Ye = {}));
1018
+ const wn = 1e3 / 60;
1019
+ class yn {
1020
+ constructor(e, t, i, r) {
1021
1021
  this.getOptions = t;
1022
- const { colors: a, initialVelocityX: m, initialVelocityY: u } = this.getOptions();
1023
- this.context = e, this.x = r, this.y = i, this.w = _e(5, 20), this.h = _e(5, 20), this.radius = _e(5, 10), this.vx = typeof m == "number" ? _e(-m, m) : _e(m.min, m.max), this.vy = typeof u == "number" ? _e(-u, 0) : _e(u.min, u.max), this.shape = fn(0, 2), this.angle = bn(_e(0, 360)), this.angularSpin = _e(-0.2, 0.2), this.color = a[Math.floor(Math.random() * a.length)], this.rotateY = _e(0, 1), this.rotationDirection = _e(0, 1) ? Qe.Positive : Qe.Negative;
1022
+ const { colors: a, initialVelocityX: h, initialVelocityY: u } = this.getOptions();
1023
+ this.context = e, this.x = i, this.y = r, this.w = ve(5, 20), this.h = ve(5, 20), this.radius = ve(5, 10), this.vx = typeof h == "number" ? ve(-h, h) : ve(h.min, h.max), this.vy = typeof u == "number" ? ve(-u, 0) : ve(u.min, u.max), this.shape = gn(0, 2), this.angle = _n(ve(0, 360)), this.angularSpin = ve(-0.2, 0.2), this.color = a[Math.floor(Math.random() * a.length)], this.rotateY = ve(0, 1), this.rotationDirection = ve(0, 1) ? Ye.Positive : Ye.Negative;
1024
1024
  }
1025
1025
  update(e) {
1026
- const { gravity: t, wind: r, friction: i, opacity: a, drawShape: m } = this.getOptions(), u = e / pn;
1027
- this.x += this.vx * u, this.y += this.vy * u, this.vy += t * u, this.vx += r * u, this.vx *= i ** u, this.vy *= i ** u, this.rotateY >= 1 && this.rotationDirection === Qe.Positive ? this.rotationDirection = Qe.Negative : this.rotateY <= -1 && this.rotationDirection === Qe.Negative && (this.rotationDirection = Qe.Positive);
1028
- const B = 0.1 * this.rotationDirection * u;
1029
- if (this.rotateY += B, this.angle += this.angularSpin, this.context.save(), this.context.translate(this.x, this.y), this.context.rotate(this.angle), this.context.scale(1, this.rotateY), this.context.rotate(this.angle), this.context.beginPath(), this.context.fillStyle = this.color, this.context.strokeStyle = this.color, this.context.globalAlpha = a, this.context.lineCap = "round", this.context.lineWidth = 2, m && typeof m == "function")
1030
- m.call(this, this.context);
1026
+ const { gravity: t, wind: i, friction: r, opacity: a, drawShape: h } = this.getOptions(), u = e / wn;
1027
+ this.x += this.vx * u, this.y += this.vy * u, this.vy += t * u, this.vx += i * u, this.vx *= r ** u, this.vy *= r ** u, this.rotateY >= 1 && this.rotationDirection === Ye.Positive ? this.rotationDirection = Ye.Negative : this.rotateY <= -1 && this.rotationDirection === Ye.Negative && (this.rotationDirection = Ye.Positive);
1028
+ const S = 0.1 * this.rotationDirection * u;
1029
+ if (this.rotateY += S, this.angle += this.angularSpin, this.context.save(), this.context.translate(this.x, this.y), this.context.rotate(this.angle), this.context.scale(1, this.rotateY), this.context.rotate(this.angle), this.context.beginPath(), this.context.fillStyle = this.color, this.context.strokeStyle = this.color, this.context.globalAlpha = a, this.context.lineCap = "round", this.context.lineWidth = 2, h && typeof h == "function")
1030
+ h.call(this, this.context);
1031
1031
  else
1032
1032
  switch (this.shape) {
1033
- case bt.Circle: {
1033
+ case pt.Circle: {
1034
1034
  this.context.beginPath(), this.context.arc(0, 0, this.radius, 0, 2 * Math.PI), this.context.fill();
1035
1035
  break;
1036
1036
  }
1037
- case bt.Square: {
1037
+ case pt.Square: {
1038
1038
  this.context.fillRect(-this.w / 2, -this.h / 2, this.w, this.h);
1039
1039
  break;
1040
1040
  }
1041
- case bt.Strip: {
1041
+ case pt.Strip: {
1042
1042
  this.context.fillRect(-this.w / 6, -this.h / 2, this.w / 3, this.h);
1043
1043
  break;
1044
1044
  }
@@ -1046,39 +1046,39 @@ class _n {
1046
1046
  this.context.closePath(), this.context.restore();
1047
1047
  }
1048
1048
  }
1049
- class gn {
1049
+ class vn {
1050
1050
  constructor(e, t) {
1051
- this.x = 0, this.y = 0, this.w = 0, this.h = 0, this.lastNumberOfPieces = 0, this.tweenProgress = 0, this.tweenFrom = 0, this.particles = [], this.particlesGenerated = 0, this.removeParticleAt = (i) => {
1052
- this.particles.splice(i, 1);
1051
+ this.x = 0, this.y = 0, this.w = 0, this.h = 0, this.lastNumberOfPieces = 0, this.tweenProgress = 0, this.tweenFrom = 0, this.particles = [], this.particlesGenerated = 0, this.removeParticleAt = (r) => {
1052
+ this.particles.splice(r, 1);
1053
1053
  }, this.getParticle = () => {
1054
- const i = _e(this.x, this.w + this.x), a = _e(this.y, this.h + this.y);
1055
- return new _n(this.context, this.getOptions, i, a);
1056
- }, this.animate = (i) => {
1057
- const { canvas: a, context: m, particlesGenerated: u, lastNumberOfPieces: B } = this, { run: le, recycle: D, numberOfPieces: E, debug: he, tweenFunction: F, tweenDuration: ne } = this.getOptions();
1058
- if (!le)
1054
+ const r = ve(this.x, this.w + this.x), a = ve(this.y, this.h + this.y);
1055
+ return new yn(this.context, this.getOptions, r, a);
1056
+ }, this.animate = (r) => {
1057
+ const { canvas: a, context: h, particlesGenerated: u, lastNumberOfPieces: S } = this, { run: ce, recycle: q, numberOfPieces: $, debug: me, tweenFunction: M, tweenDuration: ie } = this.getOptions();
1058
+ if (!ce)
1059
1059
  return !1;
1060
- const V = this.particles.length, K = D ? V : u;
1061
- if (K < E) {
1062
- B !== E && (this.tweenProgress = 0, this.tweenFrom = K, this.lastNumberOfPieces = E), this.tweenProgress = Math.min(ne, Math.max(0, this.tweenProgress + i));
1063
- const g = F(this.tweenProgress, this.tweenFrom, E, ne), H = Math.round(g - K);
1064
- for (let I = 0; I < H; I++)
1060
+ const F = this.particles.length, K = q ? F : u;
1061
+ if (K < $) {
1062
+ S !== $ && (this.tweenProgress = 0, this.tweenFrom = K, this.lastNumberOfPieces = $), this.tweenProgress = Math.min(ie, Math.max(0, this.tweenProgress + r));
1063
+ const g = M(this.tweenProgress, this.tweenFrom, $, ie), j = Math.round(g - K);
1064
+ for (let N = 0; N < j; N++)
1065
1065
  this.particles.push(this.getParticle());
1066
- this.particlesGenerated += H;
1066
+ this.particlesGenerated += j;
1067
1067
  }
1068
- he && (m.font = "12px sans-serif", m.fillStyle = "#333", m.textAlign = "right", m.fillText(`Particles: ${V}`, a.width - 10, a.height - 20));
1068
+ me && (h.font = "12px sans-serif", h.fillStyle = "#333", h.textAlign = "right", h.fillText(`Particles: ${F}`, a.width - 10, a.height - 20));
1069
1069
  for (let g = this.particles.length - 1; g >= 0; g--) {
1070
- const H = this.particles[g];
1071
- H.update(i), (H.y > a.height || H.y < -100 || H.x > a.width + 100 || H.x < -100) && (D && K <= E ? this.particles[g] = this.getParticle() : this.removeParticleAt(g));
1070
+ const j = this.particles[g];
1071
+ j.update(r), (j.y > a.height || j.y < -100 || j.x > a.width + 100 || j.x < -100) && (q && K <= $ ? this.particles[g] = this.getParticle() : this.removeParticleAt(g));
1072
1072
  }
1073
- return V > 0 || K < E;
1073
+ return F > 0 || K < $;
1074
1074
  }, this.canvas = e;
1075
- const r = this.canvas.getContext("2d");
1076
- if (!r)
1075
+ const i = this.canvas.getContext("2d");
1076
+ if (!i)
1077
1077
  throw new Error("Could not get canvas context");
1078
- this.context = r, this.getOptions = t;
1078
+ this.context = i, this.getOptions = t;
1079
1079
  }
1080
1080
  }
1081
- const Rt = {
1081
+ const Pt = {
1082
1082
  width: typeof window < "u" ? window.innerWidth : 300,
1083
1083
  height: typeof window < "u" ? window.innerHeight : 200,
1084
1084
  numberOfPieces: 200,
@@ -1108,14 +1108,14 @@ const Rt = {
1108
1108
  ],
1109
1109
  opacity: 1,
1110
1110
  debug: !1,
1111
- tweenFunction: mn.easeInOutQuad,
1111
+ tweenFunction: pn.easeInOutQuad,
1112
1112
  tweenDuration: 5e3,
1113
1113
  recycle: !0,
1114
1114
  run: !0
1115
1115
  };
1116
- class wn {
1116
+ class xn {
1117
1117
  constructor(e, t) {
1118
- this.lastFrameTime = 0, this.setOptionsWithDefaults = (i) => {
1118
+ this.lastFrameTime = 0, this.setOptionsWithDefaults = (r) => {
1119
1119
  const a = {
1120
1120
  confettiSource: {
1121
1121
  x: 0,
@@ -1126,55 +1126,55 @@ class wn {
1126
1126
  };
1127
1127
  this._options = {
1128
1128
  ...a,
1129
- ...Rt,
1130
- ...i
1131
- }, Object.assign(this, i.confettiSource);
1132
- }, this.update = (i = 0) => {
1133
- const { options: { run: a, onConfettiComplete: m, frameRate: u }, canvas: B, context: le } = this, D = Math.min(i - this.lastFrameTime, 50);
1134
- if (u && D < 1e3 / u) {
1129
+ ...Pt,
1130
+ ...r
1131
+ }, Object.assign(this, r.confettiSource);
1132
+ }, this.update = (r = 0) => {
1133
+ const { options: { run: a, onConfettiComplete: h, frameRate: u }, canvas: S, context: ce } = this, q = Math.min(r - this.lastFrameTime, 50);
1134
+ if (u && q < 1e3 / u) {
1135
1135
  this.rafId = requestAnimationFrame(this.update);
1136
1136
  return;
1137
1137
  }
1138
- this.lastFrameTime = i - (u ? D % u : 0), a && (le.fillStyle = "white", le.clearRect(0, 0, B.width, B.height)), this.generator.animate(D) ? this.rafId = requestAnimationFrame(this.update) : (m && typeof m == "function" && this.generator.particlesGenerated > 0 && m.call(this, this), this._options.run = !1);
1138
+ this.lastFrameTime = r - (u ? q % u : 0), a && (ce.fillStyle = "white", ce.clearRect(0, 0, S.width, S.height)), this.generator.animate(q) ? this.rafId = requestAnimationFrame(this.update) : (h && typeof h == "function" && this.generator.particlesGenerated > 0 && h.call(this, this), this._options.run = !1);
1139
1139
  }, this.reset = () => {
1140
1140
  this.generator && this.generator.particlesGenerated > 0 && (this.generator.particlesGenerated = 0, this.generator.particles = [], this.generator.lastNumberOfPieces = 0);
1141
1141
  }, this.stop = () => {
1142
1142
  this.options = { run: !1 }, this.rafId && (cancelAnimationFrame(this.rafId), this.rafId = void 0);
1143
1143
  }, this.canvas = e;
1144
- const r = this.canvas.getContext("2d");
1145
- if (!r)
1144
+ const i = this.canvas.getContext("2d");
1145
+ if (!i)
1146
1146
  throw new Error("Could not get canvas context");
1147
- this.context = r, this.generator = new gn(this.canvas, () => this.options), this.options = t, this.update();
1147
+ this.context = i, this.generator = new vn(this.canvas, () => this.options), this.options = t, this.update();
1148
1148
  }
1149
1149
  get options() {
1150
1150
  return this._options;
1151
1151
  }
1152
1152
  set options(e) {
1153
- var i, a;
1154
- const t = (i = this._options) == null ? void 0 : i.run, r = (a = this._options) == null ? void 0 : a.recycle;
1155
- this.setOptionsWithDefaults(e), this.generator && (Object.assign(this.generator, this.options.confettiSource), typeof e.recycle == "boolean" && e.recycle && r === !1 && (this.generator.lastNumberOfPieces = this.generator.particles.length)), typeof e.run == "boolean" && e.run && t === !1 && this.update();
1153
+ var r, a;
1154
+ const t = (r = this._options) == null ? void 0 : r.run, i = (a = this._options) == null ? void 0 : a.recycle;
1155
+ this.setOptionsWithDefaults(e), this.generator && (Object.assign(this.generator, this.options.confettiSource), typeof e.recycle == "boolean" && e.recycle && i === !1 && (this.generator.lastNumberOfPieces = this.generator.particles.length)), typeof e.run == "boolean" && e.run && t === !1 && this.update();
1156
1156
  }
1157
1157
  }
1158
- const yn = yt.createRef();
1159
- class Lt extends yt.Component {
1158
+ const Nn = It.createRef();
1159
+ class Mt extends It.Component {
1160
1160
  constructor(e) {
1161
- super(e), this.canvas = yt.createRef(), this.canvas = e.canvasRef || yn;
1161
+ super(e), this.canvas = It.createRef(), this.canvas = e.canvasRef || Nn;
1162
1162
  }
1163
1163
  componentDidMount() {
1164
1164
  if (this.canvas.current) {
1165
- const e = St(this.props)[0];
1166
- this.confetti = new wn(this.canvas.current, e);
1165
+ const e = Tt(this.props)[0];
1166
+ this.confetti = new xn(this.canvas.current, e);
1167
1167
  }
1168
1168
  }
1169
1169
  componentDidUpdate() {
1170
- const e = St(this.props)[0];
1170
+ const e = Tt(this.props)[0];
1171
1171
  this.confetti && (this.confetti.options = e);
1172
1172
  }
1173
1173
  componentWillUnmount() {
1174
1174
  this.confetti && this.confetti.stop(), this.confetti = void 0;
1175
1175
  }
1176
1176
  render() {
1177
- const [e, t] = St(this.props), r = {
1177
+ const [e, t] = Tt(this.props), i = {
1178
1178
  zIndex: 2,
1179
1179
  position: "absolute",
1180
1180
  pointerEvents: "none",
@@ -1184,41 +1184,41 @@ class Lt extends yt.Component {
1184
1184
  right: 0,
1185
1185
  ...t.style
1186
1186
  };
1187
- return l("canvas", { width: e.width, height: e.height, ref: this.canvas, ...t, style: r });
1187
+ return s("canvas", { width: e.width, height: e.height, ref: this.canvas, ...t, style: i });
1188
1188
  }
1189
1189
  }
1190
- Lt.defaultProps = {
1191
- ...Rt
1190
+ Mt.defaultProps = {
1191
+ ...Pt
1192
1192
  };
1193
- Lt.displayName = "ReactConfetti";
1194
- function St(n) {
1195
- const e = {}, t = {}, r = {}, i = [
1196
- ...Object.keys(Rt),
1193
+ Mt.displayName = "ReactConfetti";
1194
+ function Tt(n) {
1195
+ const e = {}, t = {}, i = {}, r = [
1196
+ ...Object.keys(Pt),
1197
1197
  "confettiSource",
1198
1198
  "drawShape",
1199
1199
  "onConfettiComplete",
1200
1200
  "frameRate"
1201
1201
  ], a = ["canvasRef"];
1202
- for (const m in n) {
1203
- const u = n[m];
1204
- i.includes(m) ? e[m] = u : a.includes(m) ? a[m] = u : r[m] = u;
1202
+ for (const h in n) {
1203
+ const u = n[h];
1204
+ r.includes(h) ? e[h] = u : a.includes(h) ? a[h] = u : i[h] = u;
1205
1205
  }
1206
- return [e, r, t];
1206
+ return [e, i, t];
1207
1207
  }
1208
- const vn = yt.forwardRef((n, e) => l(Lt, { canvasRef: e, ...n }));
1208
+ const In = It.forwardRef((n, e) => s(Mt, { canvasRef: e, ...n }));
1209
1209
  /**
1210
1210
  * @license lucide-react v0.515.0 - ISC
1211
1211
  *
1212
1212
  * This source code is licensed under the ISC license.
1213
1213
  * See the LICENSE file in the root directory of this source tree.
1214
1214
  */
1215
- const xn = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Cn = (n) => n.replace(
1215
+ const Sn = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Cn = (n) => n.replace(
1216
1216
  /^([A-Z])|[\s-_]+(\w)/g,
1217
- (e, t, r) => r ? r.toUpperCase() : t.toLowerCase()
1218
- ), $t = (n) => {
1217
+ (e, t, i) => i ? i.toUpperCase() : t.toLowerCase()
1218
+ ), zt = (n) => {
1219
1219
  const e = Cn(n);
1220
1220
  return e.charAt(0).toUpperCase() + e.slice(1);
1221
- }, Ht = (...n) => n.filter((e, t, r) => !!e && e.trim() !== "" && r.indexOf(e) === t).join(" ").trim(), In = (n) => {
1221
+ }, Gt = (...n) => n.filter((e, t, i) => !!e && e.trim() !== "" && i.indexOf(e) === t).join(" ").trim(), Bn = (n) => {
1222
1222
  for (const e in n)
1223
1223
  if (e.startsWith("aria-") || e === "role" || e === "title")
1224
1224
  return !0;
@@ -1229,7 +1229,7 @@ const xn = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Cn = (
1229
1229
  * This source code is licensed under the ISC license.
1230
1230
  * See the LICENSE file in the root directory of this source tree.
1231
1231
  */
1232
- var Nn = {
1232
+ var kn = {
1233
1233
  xmlns: "http://www.w3.org/2000/svg",
1234
1234
  width: 24,
1235
1235
  height: 24,
@@ -1246,31 +1246,31 @@ var Nn = {
1246
1246
  * This source code is licensed under the ISC license.
1247
1247
  * See the LICENSE file in the root directory of this source tree.
1248
1248
  */
1249
- const Sn = zt(
1249
+ const Tn = Ht(
1250
1250
  ({
1251
1251
  color: n = "currentColor",
1252
1252
  size: e = 24,
1253
1253
  strokeWidth: t = 2,
1254
- absoluteStrokeWidth: r,
1255
- className: i = "",
1254
+ absoluteStrokeWidth: i,
1255
+ className: r = "",
1256
1256
  children: a,
1257
- iconNode: m,
1257
+ iconNode: h,
1258
1258
  ...u
1259
- }, B) => Tt(
1259
+ }, S) => Rt(
1260
1260
  "svg",
1261
1261
  {
1262
- ref: B,
1263
- ...Nn,
1262
+ ref: S,
1263
+ ...kn,
1264
1264
  width: e,
1265
1265
  height: e,
1266
1266
  stroke: n,
1267
- strokeWidth: r ? Number(t) * 24 / Number(e) : t,
1268
- className: Ht("lucide", i),
1269
- ...!a && !In(u) && { "aria-hidden": "true" },
1267
+ strokeWidth: i ? Number(t) * 24 / Number(e) : t,
1268
+ className: Gt("lucide", r),
1269
+ ...!a && !Bn(u) && { "aria-hidden": "true" },
1270
1270
  ...u
1271
1271
  },
1272
1272
  [
1273
- ...m.map(([le, D]) => Tt(le, D)),
1273
+ ...h.map(([ce, q]) => Rt(ce, q)),
1274
1274
  ...Array.isArray(a) ? a : [a]
1275
1275
  ]
1276
1276
  )
@@ -1281,20 +1281,20 @@ const Sn = zt(
1281
1281
  * This source code is licensed under the ISC license.
1282
1282
  * See the LICENSE file in the root directory of this source tree.
1283
1283
  */
1284
- const Mt = (n, e) => {
1285
- const t = zt(
1286
- ({ className: r, ...i }, a) => Tt(Sn, {
1284
+ const Ft = (n, e) => {
1285
+ const t = Ht(
1286
+ ({ className: i, ...r }, a) => Rt(Tn, {
1287
1287
  ref: a,
1288
1288
  iconNode: e,
1289
- className: Ht(
1290
- `lucide-${xn($t(n))}`,
1289
+ className: Gt(
1290
+ `lucide-${Sn(zt(n))}`,
1291
1291
  `lucide-${n}`,
1292
- r
1292
+ i
1293
1293
  ),
1294
- ...i
1294
+ ...r
1295
1295
  })
1296
1296
  );
1297
- return t.displayName = $t(n), t;
1297
+ return t.displayName = zt(n), t;
1298
1298
  };
1299
1299
  /**
1300
1300
  * @license lucide-react v0.515.0 - ISC
@@ -1302,208 +1302,208 @@ const Mt = (n, e) => {
1302
1302
  * This source code is licensed under the ISC license.
1303
1303
  * See the LICENSE file in the root directory of this source tree.
1304
1304
  */
1305
- const Bn = [
1305
+ const Ln = [
1306
1306
  ["path", { d: "M5 12h14", key: "1ays0h" }],
1307
1307
  ["path", { d: "M12 5v14", key: "s699le" }]
1308
- ], Vt = Mt("plus", Bn);
1308
+ ], Wt = Ft("plus", Ln);
1309
1309
  /**
1310
1310
  * @license lucide-react v0.515.0 - ISC
1311
1311
  *
1312
1312
  * This source code is licensed under the ISC license.
1313
1313
  * See the LICENSE file in the root directory of this source tree.
1314
1314
  */
1315
- const kn = [
1315
+ const Rn = [
1316
1316
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
1317
1317
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
1318
- ], Tn = Mt("search", kn);
1318
+ ], Pn = Ft("search", Rn);
1319
1319
  /**
1320
1320
  * @license lucide-react v0.515.0 - ISC
1321
1321
  *
1322
1322
  * This source code is licensed under the ISC license.
1323
1323
  * See the LICENSE file in the root directory of this source tree.
1324
1324
  */
1325
- const Rn = [
1325
+ const Mn = [
1326
1326
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
1327
1327
  ["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
1328
1328
  ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
1329
1329
  ["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }],
1330
1330
  ["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }]
1331
- ], Ln = Mt("trash-2", Rn), Mn = "_backdrop_p0w0a_1", Pn = "_celebrationOverlay_p0w0a_14", Fn = "_celebrationChip_p0w0a_23", On = "_backdropOpen_p0w0a_74", An = "_backdropClosed_p0w0a_78", Dn = "_panel_p0w0a_82", En = "_panelOpen_p0w0a_103", qn = "_panelClosed_p0w0a_107", $n = "_header_p0w0a_146", Vn = "_headerCenter_p0w0a_155", Wn = "_title_p0w0a_163", zn = "_searchIconButton_p0w0a_172", jn = "_headerTitleWrap_p0w0a_195", Un = "_headerSearchWrap_p0w0a_199", Hn = "_headerSearchOpen_p0w0a_211", Gn = "_searchBar_p0w0a_223", Qn = "_searchInput_p0w0a_235", Yn = "_searchClearButton_p0w0a_256", Kn = "_closeButton_p0w0a_278", Xn = "_body_p0w0a_312", Zn = "_muted_p0w0a_317", Jn = "_error_p0w0a_322", ea = "_variants_p0w0a_327", ta = "_variantList_p0w0a_331", na = "_emptyState_p0w0a_339", aa = "_variantRow_p0w0a_351", ra = "_variantRowSoldOut_p0w0a_359", ia = "_variantLeft_p0w0a_363", oa = "_addToBundleButton_p0w0a_370", sa = "_soldOutContainer_p0w0a_398", la = "_stockLimitContainer_p0w0a_406", ca = "_soldOut_p0w0a_398", ua = "_stockLimitNotice_p0w0a_424", da = "_variantThumb_p0w0a_433", ha = "_variantThumbImg_p0w0a_443", ma = "_variantThumbFallback_p0w0a_450", ba = "_variantInfo_p0w0a_460", fa = "_variantName_p0w0a_464", pa = "_variantMeta_p0w0a_473", _a = "_variantPriceRow_p0w0a_481", ga = "_variantCompareAt_p0w0a_488", wa = "_variantPrice_p0w0a_481", ya = "_qtyControls_p0w0a_499", va = "_qtyControlsWrap_p0w0a_505", xa = "_qtyButton_p0w0a_511", Ca = "_qtyValue_p0w0a_537", Ia = "_footer_p0w0a_544", Na = "_poweredBy_p0w0a_552", Sa = "_boxSummaryWindow_p0w0a_564", Ba = "_boxSummaryRow_p0w0a_582", ka = "_boxSlot_p0w0a_590", Ta = "_boxItem_p0w0a_599", Ra = "_boxItemClickable_p0w0a_611", La = "_boxThresholdLabel_p0w0a_620", Ma = "_boxItemPlaceholder_p0w0a_631", Pa = "_boxItemFilled_p0w0a_637", Fa = "_boxItemThreshold_p0w0a_643", Oa = "_boxItemDiscountText_p0w0a_651", Aa = "_boxItemPlus_p0w0a_659", Da = "_boxItemImage_p0w0a_666", Ea = "_boxItemFallback_p0w0a_673", qa = "_ctaButtonGroup_p0w0a_684", $a = "_ctaButtonGroupAnimating_p0w0a_691", Va = "_cta_p0w0a_684", Wa = "_ctaDualLeft_p0w0a_719", za = "_ctaDualLeftAnimating_p0w0a_737", ja = "_ctaDualRight_p0w0a_750", Ua = "_ctaDualRightAnimating_p0w0a_766", Ha = "_ctaTotals_p0w0a_777", Ga = "_ctaDiscountBadge_p0w0a_785", Qa = "_ctaTotalsWrap_p0w0a_799", Ya = "_ctaTotalsWrapVisible_p0w0a_812", Ka = "_ctaTotalsStrike_p0w0a_819", Xa = "_ctaTotalsPrice_p0w0a_826", b = {
1332
- backdrop: Mn,
1333
- celebrationOverlay: Pn,
1334
- celebrationChip: Fn,
1335
- backdropOpen: On,
1336
- backdropClosed: An,
1337
- panel: Dn,
1338
- panelOpen: En,
1339
- panelClosed: qn,
1340
- header: $n,
1341
- headerCenter: Vn,
1342
- title: Wn,
1343
- searchIconButton: zn,
1344
- headerTitleWrap: jn,
1345
- headerSearchWrap: Un,
1346
- headerSearchOpen: Hn,
1347
- searchBar: Gn,
1348
- searchInput: Qn,
1349
- searchClearButton: Yn,
1350
- closeButton: Kn,
1351
- body: Xn,
1352
- muted: Zn,
1353
- error: Jn,
1354
- variants: ea,
1355
- variantList: ta,
1356
- emptyState: na,
1357
- variantRow: aa,
1358
- variantRowSoldOut: ra,
1359
- variantLeft: ia,
1360
- addToBundleButton: oa,
1361
- soldOutContainer: sa,
1362
- stockLimitContainer: la,
1363
- soldOut: ca,
1364
- stockLimitNotice: ua,
1365
- variantThumb: da,
1366
- variantThumbImg: ha,
1367
- variantThumbFallback: ma,
1368
- variantInfo: ba,
1369
- variantName: fa,
1370
- variantMeta: pa,
1371
- variantPriceRow: _a,
1372
- variantCompareAt: ga,
1373
- variantPrice: wa,
1374
- qtyControls: ya,
1375
- qtyControlsWrap: va,
1376
- qtyButton: xa,
1331
+ ], Fn = Ft("trash-2", Mn), On = "_backdrop_p0w0a_1", An = "_celebrationOverlay_p0w0a_14", En = "_celebrationChip_p0w0a_23", Dn = "_backdropOpen_p0w0a_74", qn = "_backdropClosed_p0w0a_78", $n = "_panel_p0w0a_82", Vn = "_panelOpen_p0w0a_103", zn = "_panelClosed_p0w0a_107", Wn = "_header_p0w0a_146", jn = "_headerCenter_p0w0a_155", Un = "_title_p0w0a_163", Hn = "_searchIconButton_p0w0a_172", Qn = "_headerTitleWrap_p0w0a_195", Gn = "_headerSearchWrap_p0w0a_199", Yn = "_headerSearchOpen_p0w0a_211", Kn = "_searchBar_p0w0a_223", Xn = "_searchInput_p0w0a_235", Zn = "_searchClearButton_p0w0a_256", Jn = "_closeButton_p0w0a_278", ea = "_body_p0w0a_312", ta = "_muted_p0w0a_317", na = "_error_p0w0a_322", aa = "_variants_p0w0a_327", ra = "_variantList_p0w0a_331", ia = "_emptyState_p0w0a_339", oa = "_variantRow_p0w0a_351", sa = "_variantRowSoldOut_p0w0a_359", la = "_variantLeft_p0w0a_363", ca = "_addToBundleButton_p0w0a_370", ua = "_soldOutContainer_p0w0a_398", da = "_stockLimitContainer_p0w0a_406", ha = "_soldOut_p0w0a_398", ma = "_stockLimitNotice_p0w0a_424", ba = "_variantThumb_p0w0a_433", fa = "_variantThumbImg_p0w0a_443", pa = "_variantThumbFallback_p0w0a_450", _a = "_variantInfo_p0w0a_460", ga = "_variantName_p0w0a_464", wa = "_variantMeta_p0w0a_473", ya = "_variantPriceRow_p0w0a_481", va = "_variantCompareAt_p0w0a_488", xa = "_variantPrice_p0w0a_481", Na = "_qtyControls_p0w0a_499", Ia = "_qtyControlsWrap_p0w0a_505", Sa = "_qtyButton_p0w0a_511", Ca = "_qtyValue_p0w0a_537", Ba = "_footer_p0w0a_544", ka = "_poweredBy_p0w0a_552", Ta = "_boxSummaryWindow_p0w0a_564", La = "_boxSummaryRow_p0w0a_582", Ra = "_boxSlot_p0w0a_590", Pa = "_boxItem_p0w0a_599", Ma = "_boxItemClickable_p0w0a_611", Fa = "_boxThresholdLabel_p0w0a_620", Oa = "_boxItemPlaceholder_p0w0a_631", Aa = "_boxItemFilled_p0w0a_637", Ea = "_boxItemThreshold_p0w0a_643", Da = "_boxItemDiscountText_p0w0a_651", qa = "_boxItemPlus_p0w0a_659", $a = "_boxItemImage_p0w0a_666", Va = "_boxItemFallback_p0w0a_673", za = "_ctaButtonGroup_p0w0a_684", Wa = "_ctaButtonGroupAnimating_p0w0a_691", ja = "_cta_p0w0a_684", Ua = "_ctaDualLeft_p0w0a_719", Ha = "_ctaDualLeftAnimating_p0w0a_737", Qa = "_ctaDualRight_p0w0a_750", Ga = "_ctaDualRightAnimating_p0w0a_766", Ya = "_ctaTotals_p0w0a_777", Ka = "_ctaDiscountBadge_p0w0a_785", Xa = "_ctaTotalsWrap_p0w0a_799", Za = "_ctaTotalsWrapVisible_p0w0a_812", Ja = "_ctaTotalsStrike_p0w0a_819", er = "_ctaTotalsPrice_p0w0a_826", b = {
1332
+ backdrop: On,
1333
+ celebrationOverlay: An,
1334
+ celebrationChip: En,
1335
+ backdropOpen: Dn,
1336
+ backdropClosed: qn,
1337
+ panel: $n,
1338
+ panelOpen: Vn,
1339
+ panelClosed: zn,
1340
+ header: Wn,
1341
+ headerCenter: jn,
1342
+ title: Un,
1343
+ searchIconButton: Hn,
1344
+ headerTitleWrap: Qn,
1345
+ headerSearchWrap: Gn,
1346
+ headerSearchOpen: Yn,
1347
+ searchBar: Kn,
1348
+ searchInput: Xn,
1349
+ searchClearButton: Zn,
1350
+ closeButton: Jn,
1351
+ body: ea,
1352
+ muted: ta,
1353
+ error: na,
1354
+ variants: aa,
1355
+ variantList: ra,
1356
+ emptyState: ia,
1357
+ variantRow: oa,
1358
+ variantRowSoldOut: sa,
1359
+ variantLeft: la,
1360
+ addToBundleButton: ca,
1361
+ soldOutContainer: ua,
1362
+ stockLimitContainer: da,
1363
+ soldOut: ha,
1364
+ stockLimitNotice: ma,
1365
+ variantThumb: ba,
1366
+ variantThumbImg: fa,
1367
+ variantThumbFallback: pa,
1368
+ variantInfo: _a,
1369
+ variantName: ga,
1370
+ variantMeta: wa,
1371
+ variantPriceRow: ya,
1372
+ variantCompareAt: va,
1373
+ variantPrice: xa,
1374
+ qtyControls: Na,
1375
+ qtyControlsWrap: Ia,
1376
+ qtyButton: Sa,
1377
1377
  qtyValue: Ca,
1378
- footer: Ia,
1379
- poweredBy: Na,
1380
- boxSummaryWindow: Sa,
1381
- boxSummaryRow: Ba,
1382
- boxSlot: ka,
1383
- boxItem: Ta,
1384
- boxItemClickable: Ra,
1385
- boxThresholdLabel: La,
1386
- boxItemPlaceholder: Ma,
1387
- boxItemFilled: Pa,
1388
- boxItemThreshold: Fa,
1389
- boxItemDiscountText: Oa,
1390
- boxItemPlus: Aa,
1391
- boxItemImage: Da,
1392
- boxItemFallback: Ea,
1393
- ctaButtonGroup: qa,
1394
- ctaButtonGroupAnimating: $a,
1395
- cta: Va,
1396
- ctaDualLeft: Wa,
1397
- ctaDualLeftAnimating: za,
1398
- ctaDualRight: ja,
1399
- ctaDualRightAnimating: Ua,
1400
- ctaTotals: Ha,
1401
- ctaDiscountBadge: Ga,
1402
- ctaTotalsWrap: Qa,
1403
- ctaTotalsWrapVisible: Ya,
1404
- ctaTotalsStrike: Ka,
1405
- ctaTotalsPrice: Xa
1378
+ footer: Ba,
1379
+ poweredBy: ka,
1380
+ boxSummaryWindow: Ta,
1381
+ boxSummaryRow: La,
1382
+ boxSlot: Ra,
1383
+ boxItem: Pa,
1384
+ boxItemClickable: Ma,
1385
+ boxThresholdLabel: Fa,
1386
+ boxItemPlaceholder: Oa,
1387
+ boxItemFilled: Aa,
1388
+ boxItemThreshold: Ea,
1389
+ boxItemDiscountText: Da,
1390
+ boxItemPlus: qa,
1391
+ boxItemImage: $a,
1392
+ boxItemFallback: Va,
1393
+ ctaButtonGroup: za,
1394
+ ctaButtonGroupAnimating: Wa,
1395
+ cta: ja,
1396
+ ctaDualLeft: Ua,
1397
+ ctaDualLeftAnimating: Ha,
1398
+ ctaDualRight: Qa,
1399
+ ctaDualRightAnimating: Ga,
1400
+ ctaTotals: Ya,
1401
+ ctaDiscountBadge: Ka,
1402
+ ctaTotalsWrap: Xa,
1403
+ ctaTotalsWrapVisible: Za,
1404
+ ctaTotalsStrike: Ja,
1405
+ ctaTotalsPrice: er
1406
1406
  };
1407
- function Ni(n) {
1408
- var Xe, Ze;
1407
+ function Hi(n) {
1408
+ var Ze, Je;
1409
1409
  const {
1410
1410
  isOpen: e,
1411
1411
  close: t,
1412
- loading: r,
1413
- submitting: i,
1412
+ loading: i,
1413
+ submitting: r,
1414
1414
  error: a,
1415
- currencyCode: m,
1415
+ currencyCode: h,
1416
1416
  config: u,
1417
- eligibleVariants: B,
1418
- selections: le,
1419
- selectionOrder: D,
1420
- getVariantMaxSelectableQuantity: E,
1421
- setQuantity: he,
1422
- bundleSize: F,
1423
- minRequired: ne,
1424
- canSubmit: V,
1417
+ eligibleVariants: S,
1418
+ selections: ce,
1419
+ selectionOrder: q,
1420
+ getVariantMaxSelectableQuantity: $,
1421
+ setQuantity: me,
1422
+ bundleSize: M,
1423
+ minRequired: ie,
1424
+ canSubmit: F,
1425
1425
  submit: K,
1426
1426
  submitAndCheckout: g,
1427
- locale: H,
1428
- t: I
1429
- } = vt(), [ce, ke] = j(!1), [Te, ge] = j(""), ee = U(null), X = U(null), ie = U(null), [me, Re] = j(() => typeof window > "u" ? { width: 0, height: 0 } : { width: window.innerWidth, height: window.innerHeight }), [ae, Ce] = j(0), [be, Ae] = j(null), [we, Le] = j(!1), Ie = U(null), De = U(F), nt = 7e3, [We, ze] = j(0), [Me, Ye] = j(null), [Ne, Ee] = j(!1), ye = U(null), f = 2800, _ = [
1427
+ locale: j,
1428
+ t: N
1429
+ } = gt(), [se, L] = W(!1), [O, X] = W(""), Z = Y(null), V = Y(null), ne = Y(null), [ue, xe] = W(() => typeof window > "u" ? { width: 0, height: 0 } : { width: window.innerWidth, height: window.innerHeight }), [de, Be] = W(0), [ge, Ee] = W(null), [Ne, Pe] = W(!1), ke = Y(null), De = Y(M), at = 7e3, [We, je] = W(0), [Me, Ke] = W(null), [Te, qe] = W(!1), Ie = Y(null), f = 2800, _ = [
1430
1430
  "#2563eb",
1431
1431
  "#3b82f6",
1432
1432
  "#60a5fa",
1433
1433
  "#93c5fd",
1434
1434
  "#bae6fd",
1435
1435
  "#e0f2fe"
1436
- ], x = L(() => {
1436
+ ], x = P(() => {
1437
1437
  var d;
1438
1438
  const c = (d = u == null ? void 0 : u.styleSettings) == null ? void 0 : d.confettiColors;
1439
1439
  return Array.isArray(c) && c.length >= 6 ? c.slice(0, 6).map(
1440
1440
  (v, o) => typeof v == "string" && v.trim() ? v : _[o]
1441
1441
  ) : [..._];
1442
- }, [(Xe = u == null ? void 0 : u.styleSettings) == null ? void 0 : Xe.confettiColors]), T = (c) => {
1442
+ }, [(Ze = u == null ? void 0 : u.styleSettings) == null ? void 0 : Ze.confettiColors]), R = (c) => {
1443
1443
  const d = Number.parseFloat(c);
1444
1444
  return Number.isFinite(d) ? String(Math.round(d)) : c;
1445
- }, M = (c) => {
1445
+ }, A = (c) => {
1446
1446
  const d = (c ?? []).filter((v) => {
1447
- var h, w;
1448
- const o = (h = v == null ? void 0 : v.name) == null ? void 0 : h.trim(), s = (w = v == null ? void 0 : v.value) == null ? void 0 : w.trim();
1449
- return !(!o || !s || o.toLowerCase() === "title");
1447
+ var m, w;
1448
+ const o = (m = v == null ? void 0 : v.name) == null ? void 0 : m.trim(), l = (w = v == null ? void 0 : v.value) == null ? void 0 : w.trim();
1449
+ return !(!o || !l || o.toLowerCase() === "title");
1450
1450
  });
1451
1451
  return d.length ? d.map((v) => `${v.name}: ${v.value}`).join(" · ") : null;
1452
- }, q = (c) => {
1452
+ }, U = (c) => {
1453
1453
  var d;
1454
1454
  return ((d = c.product) == null ? void 0 : d.title) ?? c.displayName ?? c.title;
1455
- }, W = (c) => {
1456
- const d = q(c), v = M(c.selectedOptions);
1455
+ }, Q = (c) => {
1456
+ const d = U(c), v = A(c.selectedOptions);
1457
1457
  return [d, v].filter(Boolean).join(" — ");
1458
- }, [Z, te] = j(e), G = U(null), A = (c) => {
1458
+ }, [ae, le] = W(e), J = Y(null), z = (c) => {
1459
1459
  const d = Number(c);
1460
- return Number.isFinite(d) ? jt(d, m, H) : c;
1461
- }, $ = ((Ze = u == null ? void 0 : u.title) == null ? void 0 : Ze.trim()) || I("bundle.title.default"), Se = L(() => {
1460
+ return Number.isFinite(d) ? ft(d, h, j) : c;
1461
+ }, H = ((Je = u == null ? void 0 : u.title) == null ? void 0 : Je.trim()) || N("bundle.title.default"), Le = P(() => {
1462
1462
  const c = Number((u == null ? void 0 : u.maxBundleSize) ?? NaN), d = Number.isFinite(c) ? Math.floor(c) : 100;
1463
1463
  return Math.max(2, Math.min(100, d));
1464
- }, [u == null ? void 0 : u.maxBundleSize]), Pe = F >= Se, at = L(() => [...B].sort((c, d) => c.displayName.localeCompare(d.displayName)), [B]), Fe = L(() => {
1465
- const c = Te.trim().toLowerCase();
1466
- if (!c) return at;
1464
+ }, [u == null ? void 0 : u.maxBundleSize]), Fe = M >= Le, rt = P(() => [...S].sort((c, d) => c.displayName.localeCompare(d.displayName)), [S]), Oe = P(() => {
1465
+ const c = O.trim().toLowerCase();
1466
+ if (!c) return rt;
1467
1467
  const d = c.split(/\s+/).filter(Boolean), v = (o) => {
1468
1468
  var w;
1469
- const s = [];
1470
- s.push(o.displayName), (w = o.product) != null && w.title && s.push(o.product.title);
1469
+ const l = [];
1470
+ l.push(o.displayName), (w = o.product) != null && w.title && l.push(o.product.title);
1471
1471
  for (const y of o.selectedOptions ?? [])
1472
- s.push(y.name), s.push(y.value);
1473
- const h = s.join(" ").toLowerCase();
1474
- return d.every((y) => h.includes(y));
1472
+ l.push(y.name), l.push(y.value);
1473
+ const m = l.join(" ").toLowerCase();
1474
+ return d.every((y) => m.includes(y));
1475
1475
  };
1476
- return at.filter(v);
1477
- }, [Te, at]), re = L(() => [...(u == null ? void 0 : u.rules) ?? []].sort((c, d) => c.minBundleSize - d.minBundleSize), [u == null ? void 0 : u.rules]), z = L(() => Math.max(0, ne - F), [F, ne]), rt = L(() => {
1476
+ return rt.filter(v);
1477
+ }, [O, rt]), he = P(() => [...(u == null ? void 0 : u.rules) ?? []].sort((c, d) => c.minBundleSize - d.minBundleSize), [u == null ? void 0 : u.rules]), G = P(() => Math.max(0, ie - M), [M, ie]), it = P(() => {
1478
1478
  let c = null;
1479
- for (const d of re)
1480
- F >= d.minBundleSize && (c = d);
1479
+ for (const d of he)
1480
+ M >= d.minBundleSize && (c = d);
1481
1481
  return c;
1482
- }, [F, re]), Oe = L(() => {
1483
- if (!rt) return null;
1484
- const c = Number.parseFloat(rt.discountPercent);
1482
+ }, [M, he]), Ae = P(() => {
1483
+ if (!it) return null;
1484
+ const c = Number.parseFloat(it.discountPercent);
1485
1485
  return !Number.isFinite(c) || c <= 0 ? null : c;
1486
- }, [rt]), ve = re[0], N = !!(ve && F >= ve.minBundleSize), oe = L(() => {
1487
- const c = new Map(B.map((v) => [v.id, v]));
1486
+ }, [it]), Se = he[0], C = !!(Se && M >= Se.minBundleSize), be = P(() => {
1487
+ const c = new Map(S.map((v) => [v.id, v]));
1488
1488
  let d = 0;
1489
- for (const [v, o] of Object.entries(le)) {
1490
- const s = o ?? 0;
1491
- if (s <= 0) continue;
1492
- const h = c.get(v), w = Number(h == null ? void 0 : h.price);
1493
- Number.isFinite(w) && (d += w * s);
1489
+ for (const [v, o] of Object.entries(ce)) {
1490
+ const l = o ?? 0;
1491
+ if (l <= 0) continue;
1492
+ const m = c.get(v), w = Number(m == null ? void 0 : m.price);
1493
+ Number.isFinite(w) && (d += w * l);
1494
1494
  }
1495
1495
  return Math.round(d * 100) / 100;
1496
- }, [B, le]), je = L(() => {
1497
- if (!Oe) return oe;
1498
- const c = oe * (1 - Oe / 100);
1496
+ }, [S, ce]), Ue = P(() => {
1497
+ if (!Ae) return be;
1498
+ const c = be * (1 - Ae / 100);
1499
1499
  return Math.round(c * 100) / 100;
1500
- }, [Oe, oe]), xe = L(() => re.length ? Math.max(...re.map((c) => c.minBundleSize)) : 0, [re]), it = L(() => {
1501
- const c = new Map(B.map((d) => [d.id, d]));
1502
- return D.map((d) => c.get(d)).filter((d) => !!d);
1503
- }, [B, D]), Ue = L(() => {
1500
+ }, [Ae, be]), Ce = P(() => he.length ? Math.max(...he.map((c) => c.minBundleSize)) : 0, [he]), ot = P(() => {
1501
+ const c = new Map(S.map((d) => [d.id, d]));
1502
+ return q.map((d) => c.get(d)).filter((d) => !!d);
1503
+ }, [S, q]), He = P(() => {
1504
1504
  var d;
1505
1505
  const c = /* @__PURE__ */ new Map();
1506
- for (const v of re) {
1506
+ for (const v of he) {
1507
1507
  const o = Math.max(0, v.minBundleSize - 1);
1508
1508
  c.set(o, {
1509
1509
  discountPercent: v.discountPercent,
@@ -1512,118 +1512,118 @@ function Ni(n) {
1512
1512
  });
1513
1513
  }
1514
1514
  return c;
1515
- }, [re]), He = L(() => Math.max(xe || ne, it.length), [it.length, xe, ne]), [Be, dt] = j(!0), Ke = U(z);
1516
- O(() => {
1515
+ }, [he]), Qe = P(() => Math.max(Ce || ie, ot.length), [ot.length, Ce, ie]), [Re, ht] = W(!0), Xe = Y(G);
1516
+ D(() => {
1517
1517
  if (((u == null ? void 0 : u.ctaButtonMode) || "add_to_cart") === "add_to_cart_checkout") {
1518
- const d = Ke.current > 0;
1519
- dt(!(d && z === 0));
1518
+ const d = Xe.current > 0;
1519
+ ht(!(d && G === 0));
1520
1520
  }
1521
- Ke.current = z;
1522
- }, [z, u == null ? void 0 : u.ctaButtonMode]);
1523
- const ot = U(null), ht = U(null), qe = U(null), mt = U(F), $e = (c) => {
1524
- const d = ht.current;
1521
+ Xe.current = G;
1522
+ }, [G, u == null ? void 0 : u.ctaButtonMode]);
1523
+ const st = Y(null), mt = Y(null), $e = Y(null), bt = Y(M), Ve = (c) => {
1524
+ const d = mt.current;
1525
1525
  if (!d) return;
1526
1526
  const v = d.querySelector(`[data-variant-row="${c}"]`);
1527
1527
  if (!v) return;
1528
- const o = d.getBoundingClientRect(), s = v.getBoundingClientRect(), h = 8;
1529
- if (s.top >= o.top + h && s.bottom <= o.bottom - h) return;
1530
- const y = Math.max(0, d.scrollHeight - d.clientHeight), C = s.top - o.top + s.height / 2, S = d.scrollTop + C - d.clientHeight / 2, P = Math.min(y, Math.max(0, S));
1531
- d.scrollTo({ top: P, behavior: "smooth" });
1528
+ const o = d.getBoundingClientRect(), l = v.getBoundingClientRect(), m = 8;
1529
+ if (l.top >= o.top + m && l.bottom <= o.bottom - m) return;
1530
+ const y = Math.max(0, d.scrollHeight - d.clientHeight), I = l.top - o.top + l.height / 2, B = d.scrollTop + I - d.clientHeight / 2, E = Math.min(y, Math.max(0, B));
1531
+ d.scrollTo({ top: E, behavior: "smooth" });
1532
1532
  };
1533
- return O(() => {
1533
+ return D(() => {
1534
1534
  if (!e) return;
1535
1535
  const c = (d) => {
1536
1536
  d.key === "Escape" && t();
1537
1537
  };
1538
1538
  return window.addEventListener("keydown", c), () => window.removeEventListener("keydown", c);
1539
- }, [t, e]), O(() => {
1539
+ }, [t, e]), D(() => {
1540
1540
  if (typeof window > "u") return;
1541
- const c = () => Re({ width: window.innerWidth, height: window.innerHeight });
1541
+ const c = () => xe({ width: window.innerWidth, height: window.innerHeight });
1542
1542
  return c(), window.addEventListener("resize", c), () => window.removeEventListener("resize", c);
1543
- }, []), O(() => {
1544
- if (G.current != null && (window.clearTimeout(G.current), G.current = null), e) {
1545
- te(!0);
1543
+ }, []), D(() => {
1544
+ if (J.current != null && (window.clearTimeout(J.current), J.current = null), e) {
1545
+ le(!0);
1546
1546
  return;
1547
1547
  }
1548
- G.current = window.setTimeout(() => {
1549
- te(!1), G.current = null;
1548
+ J.current = window.setTimeout(() => {
1549
+ le(!1), J.current = null;
1550
1550
  }, 220);
1551
- }, [e]), O(() => () => {
1552
- G.current != null && window.clearTimeout(G.current);
1553
- }, []), O(() => () => {
1551
+ }, [e]), D(() => () => {
1552
+ J.current != null && window.clearTimeout(J.current);
1553
+ }, []), D(() => () => {
1554
+ ke.current != null && window.clearTimeout(ke.current);
1555
+ }, []), D(() => () => {
1554
1556
  Ie.current != null && window.clearTimeout(Ie.current);
1555
- }, []), O(() => () => {
1556
- ye.current != null && window.clearTimeout(ye.current);
1557
- }, []), O(() => {
1558
- if (!e || !ce) return;
1557
+ }, []), D(() => {
1558
+ if (!e || !se) return;
1559
1559
  const c = requestAnimationFrame(() => {
1560
1560
  var d;
1561
- return (d = ee.current) == null ? void 0 : d.focus();
1561
+ return (d = Z.current) == null ? void 0 : d.focus();
1562
1562
  });
1563
1563
  return () => cancelAnimationFrame(c);
1564
- }, [e, ce]), O(() => {
1565
- const c = mt.current;
1566
- if (mt.current = F, F <= c) return;
1567
- const d = qe.current;
1564
+ }, [e, se]), D(() => {
1565
+ const c = bt.current;
1566
+ if (bt.current = M, M <= c) return;
1567
+ const d = $e.current;
1568
1568
  if (!d) return;
1569
- const v = re.some((w) => w.minBundleSize === F), o = re.find((w) => w.minBundleSize > F), s = o && v ? o.minBundleSize - 1 : o ? null : F - 1;
1570
- if (s == null || s < 0) return;
1571
- const h = requestAnimationFrame(() => {
1572
- const w = d.querySelector(`[data-box-slot="${s}"]`);
1569
+ const v = he.some((w) => w.minBundleSize === M), o = he.find((w) => w.minBundleSize > M), l = o && v ? o.minBundleSize - 1 : o ? null : M - 1;
1570
+ if (l == null || l < 0) return;
1571
+ const m = requestAnimationFrame(() => {
1572
+ const w = d.querySelector(`[data-box-slot="${l}"]`);
1573
1573
  if (!w) return;
1574
- const y = d.getBoundingClientRect(), S = w.getBoundingClientRect().right - y.right;
1575
- if (S <= 1) return;
1576
- const P = Math.max(0, d.scrollWidth - d.clientWidth), Q = Math.min(P, Math.max(0, d.scrollLeft + S));
1577
- d.scrollTo({ left: Q, behavior: "smooth" });
1574
+ const y = d.getBoundingClientRect(), B = w.getBoundingClientRect().right - y.right;
1575
+ if (B <= 1) return;
1576
+ const E = Math.max(0, d.scrollWidth - d.clientWidth), ee = Math.min(E, Math.max(0, d.scrollLeft + B));
1577
+ d.scrollTo({ left: ee, behavior: "smooth" });
1578
1578
  });
1579
- return () => cancelAnimationFrame(h);
1580
- }, [F, re]), O(() => {
1579
+ return () => cancelAnimationFrame(m);
1580
+ }, [M, he]), D(() => {
1581
1581
  if (!e) return;
1582
1582
  const c = De.current;
1583
- if (De.current = F, F <= c) return;
1584
- const d = re.find((v) => v.minBundleSize === F);
1585
- d && (Ye(
1586
- I("bundle.celebration.received_discount", {
1587
- discount: T(d.discountPercent)
1583
+ if (De.current = M, M <= c) return;
1584
+ const d = he.find((v) => v.minBundleSize === M);
1585
+ d && (Ke(
1586
+ N("bundle.celebration.received_discount", {
1587
+ discount: R(d.discountPercent)
1588
1588
  })
1589
- ), ze((v) => v + 1), Ee(!0), ye.current != null && window.clearTimeout(ye.current), ye.current = window.setTimeout(() => {
1590
- Ee(!1), ye.current = null;
1589
+ ), je((v) => v + 1), qe(!0), Ie.current != null && window.clearTimeout(Ie.current), Ie.current = window.setTimeout(() => {
1590
+ qe(!1), Ie.current = null;
1591
1591
  }, f));
1592
- }, [F, e, re]), O(() => {
1593
- if (!e || !Ne || !Me) return;
1592
+ }, [M, e, he]), D(() => {
1593
+ if (!e || !Te || !Me) return;
1594
1594
  const c = requestAnimationFrame(() => {
1595
1595
  var y;
1596
- const d = ie.current, v = d == null ? void 0 : d.getBoundingClientRect(), o = (y = ot.current) == null ? void 0 : y.getBoundingClientRect(), s = v ? v.left + v.width / 2 : o ? o.left + o.width / 2 : window.innerWidth / 2, h = v ? v.top + v.height / 2 : o ? o.top + o.height / 2 : window.innerHeight / 2, w = {
1597
- x: s - 2,
1598
- y: h - 2,
1596
+ const d = ne.current, v = d == null ? void 0 : d.getBoundingClientRect(), o = (y = st.current) == null ? void 0 : y.getBoundingClientRect(), l = v ? v.left + v.width / 2 : o ? o.left + o.width / 2 : window.innerWidth / 2, m = v ? v.top + v.height / 2 : o ? o.top + o.height / 2 : window.innerHeight / 2, w = {
1597
+ x: l - 2,
1598
+ y: m - 2,
1599
1599
  w: 4,
1600
1600
  h: 4
1601
1601
  };
1602
- Ae(w), Ce((C) => C + 1), Le(!0), Ie.current != null && window.clearTimeout(Ie.current), Ie.current = window.setTimeout(() => {
1603
- Le(!1), Ie.current = null;
1604
- }, nt);
1602
+ Ee(w), Be((I) => I + 1), Pe(!0), ke.current != null && window.clearTimeout(ke.current), ke.current = window.setTimeout(() => {
1603
+ Pe(!1), ke.current = null;
1604
+ }, at);
1605
1605
  });
1606
1606
  return () => cancelAnimationFrame(c);
1607
- }, [We, Me, nt, Ne, e]), O(() => {
1607
+ }, [We, Me, at, Te, e]), D(() => {
1608
1608
  var c;
1609
- e && ((c = ot.current) == null || c.focus());
1610
- }, [e]), Z ? /* @__PURE__ */ R(
1609
+ e && ((c = st.current) == null || c.focus());
1610
+ }, [e]), ae ? /* @__PURE__ */ T(
1611
1611
  "div",
1612
1612
  {
1613
1613
  role: "dialog",
1614
1614
  "aria-modal": "true",
1615
- "aria-label": I("bundle.drawer.aria"),
1615
+ "aria-label": N("bundle.drawer.aria"),
1616
1616
  className: [b.backdrop, e ? b.backdropOpen : b.backdropClosed, n.className].filter(Boolean).join(" "),
1617
1617
  onMouseDown: (c) => {
1618
1618
  c.target === c.currentTarget && t();
1619
1619
  },
1620
1620
  children: [
1621
- we && be && me.width > 0 && me.height > 0 ? /* @__PURE__ */ l(
1622
- vn,
1621
+ Ne && ge && ue.width > 0 && ue.height > 0 ? /* @__PURE__ */ s(
1622
+ In,
1623
1623
  {
1624
- width: me.width,
1625
- height: me.height,
1626
- confettiSource: be,
1624
+ width: ue.width,
1625
+ height: ue.height,
1626
+ confettiSource: ge,
1627
1627
  colors: x,
1628
1628
  recycle: !1,
1629
1629
  numberOfPieces: 70,
@@ -1633,42 +1633,42 @@ function Ni(n) {
1633
1633
  initialVelocityX: { min: -6, max: 6 },
1634
1634
  style: { position: "fixed", inset: 0, pointerEvents: "none", zIndex: 2147483646 }
1635
1635
  },
1636
- ae
1636
+ de
1637
1637
  ) : null,
1638
- /* @__PURE__ */ R("aside", { ref: ot, className: [b.panel, e ? b.panelOpen : b.panelClosed].filter(Boolean).join(" "), tabIndex: -1, children: [
1639
- Ne && Me ? /* @__PURE__ */ l("div", { className: b.celebrationOverlay, "aria-hidden": "true", children: /* @__PURE__ */ l("div", { ref: ie, className: b.celebrationChip, children: Me }, We) }) : null,
1640
- /* @__PURE__ */ R("header", { className: [b.header, ce ? b.headerSearchOpen : null].filter(Boolean).join(" "), children: [
1641
- /* @__PURE__ */ l(
1638
+ /* @__PURE__ */ T("aside", { ref: st, className: [b.panel, e ? b.panelOpen : b.panelClosed].filter(Boolean).join(" "), tabIndex: -1, children: [
1639
+ Te && Me ? /* @__PURE__ */ s("div", { className: b.celebrationOverlay, "aria-hidden": "true", children: /* @__PURE__ */ s("div", { ref: ne, className: b.celebrationChip, children: Me }, We) }) : null,
1640
+ /* @__PURE__ */ T("header", { className: [b.header, se ? b.headerSearchOpen : null].filter(Boolean).join(" "), children: [
1641
+ /* @__PURE__ */ s(
1642
1642
  "button",
1643
1643
  {
1644
1644
  type: "button",
1645
1645
  className: b.searchIconButton,
1646
- "aria-label": I(ce ? "bundle.search.expanded" : "bundle.search"),
1647
- "aria-expanded": ce,
1646
+ "aria-label": N(se ? "bundle.search.expanded" : "bundle.search"),
1647
+ "aria-expanded": se,
1648
1648
  onClick: () => {
1649
- ke(!0);
1649
+ L(!0);
1650
1650
  },
1651
- children: /* @__PURE__ */ l(Tn, { size: 18, "aria-hidden": "true" })
1651
+ children: /* @__PURE__ */ s(Pn, { size: 18, "aria-hidden": "true" })
1652
1652
  }
1653
1653
  ),
1654
- /* @__PURE__ */ R("div", { className: b.headerCenter, children: [
1655
- /* @__PURE__ */ l("div", { className: b.headerTitleWrap, "aria-hidden": ce, children: /* @__PURE__ */ l("h2", { className: b.title, children: $ }) }),
1656
- /* @__PURE__ */ l("div", { className: b.headerSearchWrap, "aria-hidden": !ce, children: /* @__PURE__ */ R("div", { className: b.searchBar, children: [
1657
- /* @__PURE__ */ l(
1654
+ /* @__PURE__ */ T("div", { className: b.headerCenter, children: [
1655
+ /* @__PURE__ */ s("div", { className: b.headerTitleWrap, "aria-hidden": se, children: /* @__PURE__ */ s("h2", { className: b.title, children: H }) }),
1656
+ /* @__PURE__ */ s("div", { className: b.headerSearchWrap, "aria-hidden": !se, children: /* @__PURE__ */ T("div", { className: b.searchBar, children: [
1657
+ /* @__PURE__ */ s(
1658
1658
  "input",
1659
1659
  {
1660
- ref: ee,
1660
+ ref: Z,
1661
1661
  className: b.searchInput,
1662
1662
  type: "search",
1663
- value: Te,
1664
- placeholder: I("bundle.search.placeholder"),
1665
- onChange: (c) => ge(c.target.value),
1663
+ value: O,
1664
+ placeholder: N("bundle.search.placeholder"),
1665
+ onChange: (c) => X(c.target.value),
1666
1666
  onBlur: () => {
1667
- Te.trim() === "" && ke(!1);
1667
+ O.trim() === "" && L(!1);
1668
1668
  }
1669
1669
  }
1670
1670
  ),
1671
- Te.trim() ? /* @__PURE__ */ l(
1671
+ O.trim() ? /* @__PURE__ */ s(
1672
1672
  "button",
1673
1673
  {
1674
1674
  type: "button",
@@ -1678,86 +1678,86 @@ function Ni(n) {
1678
1678
  },
1679
1679
  onClick: () => {
1680
1680
  var c;
1681
- ge(""), (c = ee.current) == null || c.focus();
1681
+ X(""), (c = Z.current) == null || c.focus();
1682
1682
  },
1683
- "aria-label": I("bundle.search.clear"),
1684
- children: I("bundle.search.clear")
1683
+ "aria-label": N("bundle.search.clear"),
1684
+ children: N("bundle.search.clear")
1685
1685
  }
1686
1686
  ) : null
1687
1687
  ] }) })
1688
1688
  ] }),
1689
- /* @__PURE__ */ l("button", { type: "button", onClick: t, disabled: i, className: b.closeButton, "aria-label": I("bundle.close"), children: "×" })
1689
+ /* @__PURE__ */ s("button", { type: "button", onClick: t, disabled: r, className: b.closeButton, "aria-label": N("bundle.close"), children: "×" })
1690
1690
  ] }),
1691
- /* @__PURE__ */ R("div", { className: b.body, ref: ht, children: [
1692
- r ? /* @__PURE__ */ l("p", { className: b.muted, children: I("bundle.loading") }) : null,
1693
- a ? /* @__PURE__ */ l("p", { className: b.error, children: a }) : null,
1694
- /* @__PURE__ */ l("div", { className: b.variants, children: !r && !a && B.length === 0 ? /* @__PURE__ */ l("p", { className: b.emptyState, children: I("bundle.empty") }) : /* @__PURE__ */ l("ul", { className: b.variantList, children: Fe.map((c) => {
1695
- var fe, Ve, Je, et;
1696
- const d = le[c.id] ?? 0, v = q(c), o = M(c.selectedOptions), s = W(c), h = E(c.id), w = h ?? Number.POSITIVE_INFINITY, y = d >= w, C = c.availableForSale !== !1 && !Pe && !y, S = c.availableForSale === !1 ? null : y ? I("bundle.stock.max_reached") : null, P = Oe, Q = Number(c.price), Y = P != null && Number.isFinite(P) && P > 0 && Number.isFinite(Q), ue = Y ? Math.round(Q * (1 - P / 100) * 100) / 100 : null;
1697
- return /* @__PURE__ */ R(
1691
+ /* @__PURE__ */ T("div", { className: b.body, ref: mt, children: [
1692
+ i ? /* @__PURE__ */ s("p", { className: b.muted, children: N("bundle.loading") }) : null,
1693
+ a ? /* @__PURE__ */ s("p", { className: b.error, children: a }) : null,
1694
+ /* @__PURE__ */ s("div", { className: b.variants, children: !i && !a && S.length === 0 ? /* @__PURE__ */ s("p", { className: b.emptyState, children: N("bundle.empty") }) : /* @__PURE__ */ s("ul", { className: b.variantList, children: Oe.map((c) => {
1695
+ var we, ze, et, tt;
1696
+ const d = ce[c.id] ?? 0, v = U(c), o = A(c.selectedOptions), l = Q(c), m = $(c.id), w = m ?? Number.POSITIVE_INFINITY, y = d >= w, I = c.availableForSale !== !1 && !Fe && !y, B = c.availableForSale === !1 ? null : y ? N("bundle.stock.max_reached") : null, E = Ae, ee = Number(c.price), te = E != null && Number.isFinite(E) && E > 0 && Number.isFinite(ee), pe = te ? Math.round(ee * (1 - E / 100) * 100) / 100 : null;
1697
+ return /* @__PURE__ */ T(
1698
1698
  "li",
1699
1699
  {
1700
1700
  className: [b.variantRow, c.availableForSale === !1 && b.variantRowSoldOut].filter(Boolean).join(" "),
1701
1701
  "data-variant-row": c.id,
1702
1702
  children: [
1703
- /* @__PURE__ */ R("div", { className: b.variantLeft, children: [
1704
- /* @__PURE__ */ l("div", { className: b.variantThumb, "aria-hidden": "true", children: (fe = c.image) != null && fe.url ? /* @__PURE__ */ l(
1703
+ /* @__PURE__ */ T("div", { className: b.variantLeft, children: [
1704
+ /* @__PURE__ */ s("div", { className: b.variantThumb, "aria-hidden": "true", children: (we = c.image) != null && we.url ? /* @__PURE__ */ s(
1705
1705
  "img",
1706
1706
  {
1707
1707
  className: b.variantThumbImg,
1708
1708
  src: c.image.url,
1709
- alt: c.image.altText ?? s,
1709
+ alt: c.image.altText ?? l,
1710
1710
  loading: "lazy"
1711
1711
  }
1712
- ) : /* @__PURE__ */ l("div", { className: b.variantThumbFallback, children: ((et = (Je = (Ve = c.product) == null ? void 0 : Ve.title) == null ? void 0 : Je.slice(0, 1)) == null ? void 0 : et.toUpperCase()) ?? "•" }) }),
1713
- /* @__PURE__ */ R("div", { className: b.variantInfo, children: [
1714
- /* @__PURE__ */ l("div", { className: b.variantName, children: v }),
1715
- o ? /* @__PURE__ */ l("div", { className: b.variantMeta, children: o }) : null,
1716
- /* @__PURE__ */ R("div", { className: b.variantPriceRow, children: [
1717
- Y ? /* @__PURE__ */ l("span", { className: b.variantCompareAt, children: A(Number.isFinite(Q) ? Q.toFixed(2) : c.price) }) : null,
1718
- /* @__PURE__ */ l("span", { className: b.variantPrice, children: A(
1719
- ue != null ? ue.toFixed(2) : Number.isFinite(Q) ? Q.toFixed(2) : c.price
1712
+ ) : /* @__PURE__ */ s("div", { className: b.variantThumbFallback, children: ((tt = (et = (ze = c.product) == null ? void 0 : ze.title) == null ? void 0 : et.slice(0, 1)) == null ? void 0 : tt.toUpperCase()) ?? "•" }) }),
1713
+ /* @__PURE__ */ T("div", { className: b.variantInfo, children: [
1714
+ /* @__PURE__ */ s("div", { className: b.variantName, children: v }),
1715
+ o ? /* @__PURE__ */ s("div", { className: b.variantMeta, children: o }) : null,
1716
+ /* @__PURE__ */ T("div", { className: b.variantPriceRow, children: [
1717
+ te ? /* @__PURE__ */ s("span", { className: b.variantCompareAt, children: z(Number.isFinite(ee) ? ee.toFixed(2) : c.price) }) : null,
1718
+ /* @__PURE__ */ s("span", { className: b.variantPrice, children: z(
1719
+ pe != null ? pe.toFixed(2) : Number.isFinite(ee) ? ee.toFixed(2) : c.price
1720
1720
  ) })
1721
1721
  ] })
1722
1722
  ] })
1723
1723
  ] }),
1724
- c.availableForSale === !1 ? /* @__PURE__ */ l("div", { className: b.soldOutContainer, children: /* @__PURE__ */ l("span", { className: b.soldOut, "aria-label": I("bundle.a11y.sold_out", { name: s }), children: I("bundle.stock.sold_out") }) }) : d <= 0 && w <= 0 ? /* @__PURE__ */ l("div", { className: b.stockLimitContainer, children: /* @__PURE__ */ l("span", { className: b.stockLimitNotice, "aria-label": I("bundle.a11y.max_available_selected", { name: s }), children: I("bundle.stock.max_added") }) }) : d <= 0 ? /* @__PURE__ */ l(
1724
+ c.availableForSale === !1 ? /* @__PURE__ */ s("div", { className: b.soldOutContainer, children: /* @__PURE__ */ s("span", { className: b.soldOut, "aria-label": N("bundle.a11y.sold_out", { name: l }), children: N("bundle.stock.sold_out") }) }) : d <= 0 && w <= 0 ? /* @__PURE__ */ s("div", { className: b.stockLimitContainer, children: /* @__PURE__ */ s("span", { className: b.stockLimitNotice, "aria-label": N("bundle.a11y.max_available_selected", { name: l }), children: N("bundle.stock.max_added") }) }) : d <= 0 ? /* @__PURE__ */ s(
1725
1725
  "button",
1726
1726
  {
1727
1727
  type: "button",
1728
- onClick: () => he(c.id, 1),
1729
- disabled: i || !C,
1728
+ onClick: () => me(c.id, 1),
1729
+ disabled: r || !I,
1730
1730
  className: b.addToBundleButton,
1731
- "aria-label": S ? `${s} ${S.toLowerCase()}` : I("bundle.a11y.add_to_bundle", { name: s }),
1732
- children: I("bundle.cta.add_to_bundle")
1731
+ "aria-label": B ? `${l} ${B.toLowerCase()}` : N("bundle.a11y.add_to_bundle", { name: l }),
1732
+ children: N("bundle.cta.add_to_bundle")
1733
1733
  }
1734
- ) : /* @__PURE__ */ R("div", { className: b.qtyControlsWrap, children: [
1735
- /* @__PURE__ */ R("div", { className: b.qtyControls, children: [
1736
- /* @__PURE__ */ l(
1734
+ ) : /* @__PURE__ */ T("div", { className: b.qtyControlsWrap, children: [
1735
+ /* @__PURE__ */ T("div", { className: b.qtyControls, children: [
1736
+ /* @__PURE__ */ s(
1737
1737
  "button",
1738
1738
  {
1739
1739
  type: "button",
1740
- onClick: () => he(c.id, d - 1),
1741
- disabled: i || d <= 0,
1740
+ onClick: () => me(c.id, d - 1),
1741
+ disabled: r || d <= 0,
1742
1742
  className: b.qtyButton,
1743
- "aria-label": I("bundle.a11y.decrease", { name: s }),
1743
+ "aria-label": N("bundle.a11y.decrease", { name: l }),
1744
1744
  children: "−"
1745
1745
  }
1746
1746
  ),
1747
- /* @__PURE__ */ l("span", { className: b.qtyValue, "aria-label": I("bundle.a11y.quantity", { name: s, qty: d }), children: d }),
1748
- /* @__PURE__ */ l(
1747
+ /* @__PURE__ */ s("span", { className: b.qtyValue, "aria-label": N("bundle.a11y.quantity", { name: l, qty: d }), children: d }),
1748
+ /* @__PURE__ */ s(
1749
1749
  "button",
1750
1750
  {
1751
1751
  type: "button",
1752
- onClick: () => he(c.id, d + 1),
1753
- disabled: i || !C,
1752
+ onClick: () => me(c.id, d + 1),
1753
+ disabled: r || !I,
1754
1754
  className: b.qtyButton,
1755
- "aria-label": S ? `${s} ${S.toLowerCase()}` : I("bundle.a11y.increase", { name: s }),
1755
+ "aria-label": B ? `${l} ${B.toLowerCase()}` : N("bundle.a11y.increase", { name: l }),
1756
1756
  children: "+"
1757
1757
  }
1758
1758
  )
1759
1759
  ] }),
1760
- S ? /* @__PURE__ */ l("div", { className: b.stockLimitNotice, children: S }) : null
1760
+ B ? /* @__PURE__ */ s("div", { className: b.stockLimitNotice, children: B }) : null
1761
1761
  ] })
1762
1762
  ]
1763
1763
  },
@@ -1765,29 +1765,29 @@ function Ni(n) {
1765
1765
  );
1766
1766
  }) }) })
1767
1767
  ] }),
1768
- /* @__PURE__ */ R("footer", { className: b.footer, ref: X, children: [
1769
- /* @__PURE__ */ l("div", { className: b.boxSummaryWindow, ref: qe, children: /* @__PURE__ */ l("div", { className: b.boxSummaryRow, "aria-label": "Bundle box summary", children: Array.from({ length: He }).map((c, d) => {
1770
- var S, P, Q, Y;
1771
- const v = it[d], o = Ue.get(d), s = !!v, h = !!o, w = h && !s, y = o ? I("bundle.discount.off_label", { discount: T(o.discountPercent) }) : null, C = s ? v.displayName : I("bundle.slot", { slot: d + 1 });
1772
- return /* @__PURE__ */ R("div", { "data-box-slot": d, className: b.boxSlot, children: [
1773
- /* @__PURE__ */ l(
1768
+ /* @__PURE__ */ T("footer", { className: b.footer, ref: V, children: [
1769
+ /* @__PURE__ */ s("div", { className: b.boxSummaryWindow, ref: $e, children: /* @__PURE__ */ s("div", { className: b.boxSummaryRow, "aria-label": "Bundle box summary", children: Array.from({ length: Qe }).map((c, d) => {
1770
+ var B, E, ee, te;
1771
+ const v = ot[d], o = He.get(d), l = !!v, m = !!o, w = m && !l, y = o ? N("bundle.discount.off_label", { discount: R(o.discountPercent) }) : null, I = l ? v.displayName : N("bundle.slot", { slot: d + 1 });
1772
+ return /* @__PURE__ */ T("div", { "data-box-slot": d, className: b.boxSlot, children: [
1773
+ /* @__PURE__ */ s(
1774
1774
  "div",
1775
1775
  {
1776
1776
  className: [
1777
1777
  b.boxItem,
1778
- s ? b.boxItemFilled : b.boxItemPlaceholder,
1779
- h ? b.boxItemThreshold : null,
1780
- s ? b.boxItemClickable : null
1778
+ l ? b.boxItemFilled : b.boxItemPlaceholder,
1779
+ m ? b.boxItemThreshold : null,
1780
+ l ? b.boxItemClickable : null
1781
1781
  ].filter(Boolean).join(" "),
1782
- role: s ? "button" : void 0,
1783
- tabIndex: s ? 0 : void 0,
1784
- onClick: s ? () => $e(v.id) : void 0,
1785
- onKeyDown: s ? (ue) => {
1786
- (ue.key === "Enter" || ue.key === " ") && (ue.preventDefault(), $e(v.id));
1782
+ role: l ? "button" : void 0,
1783
+ tabIndex: l ? 0 : void 0,
1784
+ onClick: l ? () => Ve(v.id) : void 0,
1785
+ onKeyDown: l ? (pe) => {
1786
+ (pe.key === "Enter" || pe.key === " ") && (pe.preventDefault(), Ve(v.id));
1787
1787
  } : void 0,
1788
- "aria-label": w && y ? `${C}. ${I("bundle.unlocks", { discount: y })}.` : C,
1789
- title: w && y ? `${C} • ${I("bundle.unlocks", { discount: y })}` : C,
1790
- children: s ? (S = v.image) != null && S.url ? /* @__PURE__ */ l(
1788
+ "aria-label": w && y ? `${I}. ${N("bundle.unlocks", { discount: y })}.` : I,
1789
+ title: w && y ? `${I} • ${N("bundle.unlocks", { discount: y })}` : I,
1790
+ children: l ? (B = v.image) != null && B.url ? /* @__PURE__ */ s(
1791
1791
  "img",
1792
1792
  {
1793
1793
  className: b.boxItemImage,
@@ -1795,56 +1795,56 @@ function Ni(n) {
1795
1795
  alt: v.image.altText ?? v.displayName,
1796
1796
  loading: "lazy"
1797
1797
  }
1798
- ) : /* @__PURE__ */ l("div", { className: b.boxItemFallback, "aria-hidden": "true", children: ((Y = (Q = (P = v.product) == null ? void 0 : P.title) == null ? void 0 : Q.slice(0, 1)) == null ? void 0 : Y.toUpperCase()) ?? "•" }) : w && y ? /* @__PURE__ */ l("div", { className: b.boxItemDiscountText, children: y }) : /* @__PURE__ */ l("div", { className: b.boxItemPlus, "aria-hidden": "true", children: "+" })
1798
+ ) : /* @__PURE__ */ s("div", { className: b.boxItemFallback, "aria-hidden": "true", children: ((te = (ee = (E = v.product) == null ? void 0 : E.title) == null ? void 0 : ee.slice(0, 1)) == null ? void 0 : te.toUpperCase()) ?? "•" }) : w && y ? /* @__PURE__ */ s("div", { className: b.boxItemDiscountText, children: y }) : /* @__PURE__ */ s("div", { className: b.boxItemPlus, "aria-hidden": "true", children: "+" })
1799
1799
  }
1800
1800
  ),
1801
- h ? /* @__PURE__ */ l("div", { className: b.boxThresholdLabel, children: o.label }) : null
1801
+ m ? /* @__PURE__ */ s("div", { className: b.boxThresholdLabel, children: o.label }) : null
1802
1802
  ] }, d);
1803
1803
  }) }) }),
1804
- /* @__PURE__ */ l(
1804
+ /* @__PURE__ */ s(
1805
1805
  "div",
1806
1806
  {
1807
- className: [b.ctaTotalsWrap, N ? b.ctaTotalsWrapVisible : null].filter(Boolean).join(" "),
1808
- "aria-hidden": !N,
1809
- children: /* @__PURE__ */ R("div", { className: b.ctaTotals, "aria-label": I("bundle.totals"), children: [
1810
- Oe ? /* @__PURE__ */ l("span", { className: b.ctaDiscountBadge, children: I("bundle.discount.badge", { discount: Oe }) }) : /* @__PURE__ */ l("span", {}),
1811
- /* @__PURE__ */ l("span", { children: Oe ? /* @__PURE__ */ R(kt, { children: [
1812
- /* @__PURE__ */ l("span", { className: b.ctaTotalsStrike, children: A(oe.toFixed(2)) }),
1807
+ className: [b.ctaTotalsWrap, C ? b.ctaTotalsWrapVisible : null].filter(Boolean).join(" "),
1808
+ "aria-hidden": !C,
1809
+ children: /* @__PURE__ */ T("div", { className: b.ctaTotals, "aria-label": N("bundle.totals"), children: [
1810
+ Ae ? /* @__PURE__ */ s("span", { className: b.ctaDiscountBadge, children: N("bundle.discount.badge", { discount: Ae }) }) : /* @__PURE__ */ s("span", {}),
1811
+ /* @__PURE__ */ s("span", { children: Ae ? /* @__PURE__ */ T(Nt, { children: [
1812
+ /* @__PURE__ */ s("span", { className: b.ctaTotalsStrike, children: z(be.toFixed(2)) }),
1813
1813
  " ",
1814
- /* @__PURE__ */ l("span", { className: b.ctaTotalsPrice, children: A(je.toFixed(2)) })
1815
- ] }) : /* @__PURE__ */ l("span", { className: b.ctaTotalsPrice, children: A(oe.toFixed(2)) }) })
1814
+ /* @__PURE__ */ s("span", { className: b.ctaTotalsPrice, children: z(Ue.toFixed(2)) })
1815
+ ] }) : /* @__PURE__ */ s("span", { className: b.ctaTotalsPrice, children: z(be.toFixed(2)) }) })
1816
1816
  ] })
1817
1817
  }
1818
1818
  ),
1819
1819
  (() => {
1820
1820
  const c = (u == null ? void 0 : u.ctaButtonMode) || "add_to_cart";
1821
- return c === "add_to_cart_checkout" ? z > 0 ? /* @__PURE__ */ l("button", { type: "button", onClick: K, disabled: !V, className: b.cta, children: i ? I("bundle.cta.adding") : I("bundle.cta.add_more", { count: z, productWord: ct(H, z) }) }) : /* @__PURE__ */ R("div", { className: `${b.ctaButtonGroup} ${Be ? b.ctaButtonGroupAnimating : ""}`, children: [
1822
- /* @__PURE__ */ l(
1821
+ return c === "add_to_cart_checkout" ? G > 0 ? /* @__PURE__ */ s("button", { type: "button", onClick: K, disabled: !F, className: b.cta, children: r ? N("bundle.cta.adding") : N("bundle.cta.add_more", { count: G, productWord: ut(j, G) }) }) : /* @__PURE__ */ T("div", { className: `${b.ctaButtonGroup} ${Re ? b.ctaButtonGroupAnimating : ""}`, children: [
1822
+ /* @__PURE__ */ s(
1823
1823
  "button",
1824
1824
  {
1825
1825
  type: "button",
1826
1826
  onClick: K,
1827
- disabled: !V,
1828
- className: `${b.ctaDualLeft} ${Be ? b.ctaDualLeftAnimating : ""}`,
1829
- children: /* @__PURE__ */ l("span", { children: I(i ? "bundle.cta.adding" : "bundle.cta.add_to_basket") })
1827
+ disabled: !F,
1828
+ className: `${b.ctaDualLeft} ${Re ? b.ctaDualLeftAnimating : ""}`,
1829
+ children: /* @__PURE__ */ s("span", { children: N(r ? "bundle.cta.adding" : "bundle.cta.add_to_basket") })
1830
1830
  }
1831
1831
  ),
1832
- /* @__PURE__ */ l(
1832
+ /* @__PURE__ */ s(
1833
1833
  "button",
1834
1834
  {
1835
1835
  type: "button",
1836
1836
  onClick: g,
1837
- disabled: !V,
1838
- className: `${b.ctaDualRight} ${Be ? b.ctaDualRightAnimating : ""}`,
1839
- children: /* @__PURE__ */ l("span", { children: I(i ? "bundle.cta.processing" : "bundle.cta.checkout") })
1837
+ disabled: !F,
1838
+ className: `${b.ctaDualRight} ${Re ? b.ctaDualRightAnimating : ""}`,
1839
+ children: /* @__PURE__ */ s("span", { children: N(r ? "bundle.cta.processing" : "bundle.cta.checkout") })
1840
1840
  }
1841
1841
  )
1842
- ] }) : c === "checkout" ? /* @__PURE__ */ l("button", { type: "button", onClick: g, disabled: !V, className: b.cta, children: i ? I("bundle.cta.processing") : z > 0 ? I("bundle.cta.add_more", { count: z, productWord: ct(H, z) }) : I("bundle.cta.checkout") }) : /* @__PURE__ */ l("button", { type: "button", onClick: K, disabled: !V, className: b.cta, children: i ? I("bundle.cta.adding") : z > 0 ? I("bundle.cta.add_more", { count: z, productWord: ct(H, z) }) : I("bundle.cta.add_to_basket") });
1842
+ ] }) : c === "checkout" ? /* @__PURE__ */ s("button", { type: "button", onClick: g, disabled: !F, className: b.cta, children: r ? N("bundle.cta.processing") : G > 0 ? N("bundle.cta.add_more", { count: G, productWord: ut(j, G) }) : N("bundle.cta.checkout") }) : /* @__PURE__ */ s("button", { type: "button", onClick: K, disabled: !F, className: b.cta, children: r ? N("bundle.cta.adding") : G > 0 ? N("bundle.cta.add_more", { count: G, productWord: ut(j, G) }) : N("bundle.cta.add_to_basket") });
1843
1843
  })(),
1844
- /* @__PURE__ */ R("div", { className: b.poweredBy, children: [
1845
- I("bundle.powered_by"),
1844
+ /* @__PURE__ */ T("div", { className: b.poweredBy, children: [
1845
+ N("bundle.powered_by"),
1846
1846
  " ",
1847
- /* @__PURE__ */ l("a", { href: "https://apps.shopify.com/best-bundles", target: "_blank", rel: "noopener noreferrer", children: " BestBundles" })
1847
+ /* @__PURE__ */ s("a", { href: "https://apps.shopify.com/best-bundles", target: "_blank", rel: "noopener noreferrer", children: " BestBundles" })
1848
1848
  ] })
1849
1849
  ] })
1850
1850
  ] })
@@ -1852,228 +1852,228 @@ function Ni(n) {
1852
1852
  }
1853
1853
  ) : null;
1854
1854
  }
1855
- const Za = "_panel_gafs6_2", Ja = "_header_gafs6_20", er = "_title_gafs6_24", tr = "_status_gafs6_32", nr = "_error_gafs6_37", ar = "_section_gafs6_43", rr = "_sectionTitle_gafs6_48", ir = "_rulesVisual_gafs6_101", or = "_rulesLabelsRow_gafs6_108", sr = "_rulesLinesRow_gafs6_115", lr = "_rulesLineLabelCell_gafs6_122", cr = "_rulesLineLabel_gafs6_122", ur = "_rulesLine_gafs6_115", dr = "_rulesLineEmpty_gafs6_156", hr = "_rulesLineFilled_gafs6_160", mr = "_variants_gafs6_164", br = "_variantList_gafs6_172", fr = "_emptyState_gafs6_180", pr = "_variantRow_gafs6_192", _r = "_variantRowInteractive_gafs6_204", gr = "_variantRowSelected_gafs6_208", wr = "_variantRowSoldOut_gafs6_213", yr = "_variantMedia_gafs6_217", vr = "_variantContent_gafs6_225", xr = "_variantHeader_gafs6_233", Cr = "_variantTitle_gafs6_239", Ir = "_variantImage_gafs6_253", Nr = "_variantImageFallback_gafs6_261", Sr = "_variantMeta_gafs6_274", Br = "_variantPrice_gafs6_279", kr = "_variantFooterRow_gafs6_285", Tr = "_variantActions_gafs6_292", Rr = "_qtyActions_gafs6_298", Lr = "_qtyActionsWrap_gafs6_304", Mr = "_soldOut_gafs6_355", Pr = "_stockLimitNotice_gafs6_363", Fr = "_qtyChip_gafs6_372", Or = "_qtyChipInteractive_gafs6_387", Ar = "_qtyChipValue_gafs6_391", Dr = "_qtyChipPlus_gafs6_397", Er = "_qtyChipClear_gafs6_402", qr = "_qtyTrash_gafs6_431", $r = "_footer_gafs6_443", Vr = "_boxSummaryWindow_gafs6_448", Wr = "_boxSummaryRow_gafs6_462", zr = "_boxSlot_gafs6_470", jr = "_boxItem_gafs6_479", Ur = "_boxItemFilled_gafs6_496", Hr = "_boxItemPlaceholder_gafs6_502", Gr = "_boxItemThreshold_gafs6_508", Qr = "_boxItemClickable_gafs6_516", Yr = "_boxItemImage_gafs6_525", Kr = "_boxItemFallback_gafs6_536", Xr = "_boxItemPlus_gafs6_549", Zr = "_boxItemDiscountText_gafs6_561", Jr = "_boxThresholdLabel_gafs6_574", ei = "_totalsReveal_gafs6_585", ti = "_totalsRevealOpen_gafs6_593", ni = "_ctaTotalsWrap_gafs6_598", ai = "_ctaTotalsWrapVisible_gafs6_603", ri = "_ctaTotals_gafs6_598", ii = "_ctaDiscountBadge_gafs6_618", oi = "_ctaTotalsStrike_gafs6_629", si = "_ctaTotalsPrice_gafs6_635", li = "_cta_gafs6_598", ci = "_ctaButtonGroup_gafs6_667", ui = "_ctaDualLeft_gafs6_673", di = "_ctaDualRight_gafs6_674", hi = "_poweredBy_gafs6_701", p = {
1856
- panel: Za,
1857
- header: Ja,
1858
- title: er,
1859
- status: tr,
1860
- error: nr,
1861
- section: ar,
1862
- sectionTitle: rr,
1863
- rulesVisual: ir,
1864
- rulesLabelsRow: or,
1865
- rulesLinesRow: sr,
1866
- rulesLineLabelCell: lr,
1867
- rulesLineLabel: cr,
1868
- rulesLine: ur,
1869
- rulesLineEmpty: dr,
1870
- rulesLineFilled: hr,
1871
- variants: mr,
1872
- variantList: br,
1873
- emptyState: fr,
1874
- variantRow: pr,
1875
- variantRowInteractive: _r,
1876
- variantRowSelected: gr,
1877
- variantRowSoldOut: wr,
1878
- variantMedia: yr,
1879
- variantContent: vr,
1880
- variantHeader: xr,
1855
+ const tr = "_panel_gafs6_2", nr = "_header_gafs6_20", ar = "_title_gafs6_24", rr = "_status_gafs6_32", ir = "_error_gafs6_37", or = "_section_gafs6_43", sr = "_sectionTitle_gafs6_48", lr = "_rulesVisual_gafs6_101", cr = "_rulesLabelsRow_gafs6_108", ur = "_rulesLinesRow_gafs6_115", dr = "_rulesLineLabelCell_gafs6_122", hr = "_rulesLineLabel_gafs6_122", mr = "_rulesLine_gafs6_115", br = "_rulesLineEmpty_gafs6_156", fr = "_rulesLineFilled_gafs6_160", pr = "_variants_gafs6_164", _r = "_variantList_gafs6_172", gr = "_emptyState_gafs6_180", wr = "_variantRow_gafs6_192", yr = "_variantRowInteractive_gafs6_204", vr = "_variantRowSelected_gafs6_208", xr = "_variantRowSoldOut_gafs6_213", Nr = "_variantMedia_gafs6_217", Ir = "_variantContent_gafs6_225", Sr = "_variantHeader_gafs6_233", Cr = "_variantTitle_gafs6_239", Br = "_variantImage_gafs6_253", kr = "_variantImageFallback_gafs6_261", Tr = "_variantMeta_gafs6_274", Lr = "_variantPrice_gafs6_279", Rr = "_variantFooterRow_gafs6_285", Pr = "_variantActions_gafs6_292", Mr = "_qtyActions_gafs6_298", Fr = "_qtyActionsWrap_gafs6_304", Or = "_soldOut_gafs6_355", Ar = "_stockLimitNotice_gafs6_363", Er = "_qtyChip_gafs6_372", Dr = "_qtyChipInteractive_gafs6_387", qr = "_qtyChipValue_gafs6_391", $r = "_qtyChipPlus_gafs6_397", Vr = "_qtyChipClear_gafs6_402", zr = "_qtyTrash_gafs6_431", Wr = "_footer_gafs6_443", jr = "_boxSummaryWindow_gafs6_448", Ur = "_boxSummaryRow_gafs6_462", Hr = "_boxSlot_gafs6_470", Qr = "_boxItem_gafs6_479", Gr = "_boxItemFilled_gafs6_496", Yr = "_boxItemPlaceholder_gafs6_502", Kr = "_boxItemThreshold_gafs6_508", Xr = "_boxItemClickable_gafs6_516", Zr = "_boxItemImage_gafs6_525", Jr = "_boxItemFallback_gafs6_536", ei = "_boxItemPlus_gafs6_549", ti = "_boxItemDiscountText_gafs6_561", ni = "_boxThresholdLabel_gafs6_574", ai = "_totalsReveal_gafs6_585", ri = "_totalsRevealOpen_gafs6_593", ii = "_ctaTotalsWrap_gafs6_598", oi = "_ctaTotalsWrapVisible_gafs6_603", si = "_ctaTotals_gafs6_598", li = "_ctaDiscountBadge_gafs6_618", ci = "_ctaTotalsStrike_gafs6_629", ui = "_ctaTotalsPrice_gafs6_635", di = "_cta_gafs6_598", hi = "_ctaButtonGroup_gafs6_667", mi = "_ctaDualLeft_gafs6_673", bi = "_ctaDualRight_gafs6_674", fi = "_poweredBy_gafs6_701", p = {
1856
+ panel: tr,
1857
+ header: nr,
1858
+ title: ar,
1859
+ status: rr,
1860
+ error: ir,
1861
+ section: or,
1862
+ sectionTitle: sr,
1863
+ rulesVisual: lr,
1864
+ rulesLabelsRow: cr,
1865
+ rulesLinesRow: ur,
1866
+ rulesLineLabelCell: dr,
1867
+ rulesLineLabel: hr,
1868
+ rulesLine: mr,
1869
+ rulesLineEmpty: br,
1870
+ rulesLineFilled: fr,
1871
+ variants: pr,
1872
+ variantList: _r,
1873
+ emptyState: gr,
1874
+ variantRow: wr,
1875
+ variantRowInteractive: yr,
1876
+ variantRowSelected: vr,
1877
+ variantRowSoldOut: xr,
1878
+ variantMedia: Nr,
1879
+ variantContent: Ir,
1880
+ variantHeader: Sr,
1881
1881
  variantTitle: Cr,
1882
- variantImage: Ir,
1883
- variantImageFallback: Nr,
1884
- variantMeta: Sr,
1885
- variantPrice: Br,
1886
- variantFooterRow: kr,
1887
- variantActions: Tr,
1888
- qtyActions: Rr,
1889
- qtyActionsWrap: Lr,
1890
- soldOut: Mr,
1891
- stockLimitNotice: Pr,
1892
- qtyChip: Fr,
1893
- qtyChipInteractive: Or,
1894
- qtyChipValue: Ar,
1895
- qtyChipPlus: Dr,
1896
- qtyChipClear: Er,
1897
- qtyTrash: qr,
1898
- footer: $r,
1899
- boxSummaryWindow: Vr,
1900
- boxSummaryRow: Wr,
1901
- boxSlot: zr,
1902
- boxItem: jr,
1903
- boxItemFilled: Ur,
1904
- boxItemPlaceholder: Hr,
1905
- boxItemThreshold: Gr,
1906
- boxItemClickable: Qr,
1907
- boxItemImage: Yr,
1908
- boxItemFallback: Kr,
1909
- boxItemPlus: Xr,
1910
- boxItemDiscountText: Zr,
1911
- boxThresholdLabel: Jr,
1912
- totalsReveal: ei,
1913
- totalsRevealOpen: ti,
1914
- ctaTotalsWrap: ni,
1915
- ctaTotalsWrapVisible: ai,
1916
- ctaTotals: ri,
1917
- ctaDiscountBadge: ii,
1918
- ctaTotalsStrike: oi,
1919
- ctaTotalsPrice: si,
1920
- cta: li,
1921
- ctaButtonGroup: ci,
1922
- ctaDualLeft: ui,
1923
- ctaDualRight: di,
1924
- poweredBy: hi
1882
+ variantImage: Br,
1883
+ variantImageFallback: kr,
1884
+ variantMeta: Tr,
1885
+ variantPrice: Lr,
1886
+ variantFooterRow: Rr,
1887
+ variantActions: Pr,
1888
+ qtyActions: Mr,
1889
+ qtyActionsWrap: Fr,
1890
+ soldOut: Or,
1891
+ stockLimitNotice: Ar,
1892
+ qtyChip: Er,
1893
+ qtyChipInteractive: Dr,
1894
+ qtyChipValue: qr,
1895
+ qtyChipPlus: $r,
1896
+ qtyChipClear: Vr,
1897
+ qtyTrash: zr,
1898
+ footer: Wr,
1899
+ boxSummaryWindow: jr,
1900
+ boxSummaryRow: Ur,
1901
+ boxSlot: Hr,
1902
+ boxItem: Qr,
1903
+ boxItemFilled: Gr,
1904
+ boxItemPlaceholder: Yr,
1905
+ boxItemThreshold: Kr,
1906
+ boxItemClickable: Xr,
1907
+ boxItemImage: Zr,
1908
+ boxItemFallback: Jr,
1909
+ boxItemPlus: ei,
1910
+ boxItemDiscountText: ti,
1911
+ boxThresholdLabel: ni,
1912
+ totalsReveal: ai,
1913
+ totalsRevealOpen: ri,
1914
+ ctaTotalsWrap: ii,
1915
+ ctaTotalsWrapVisible: oi,
1916
+ ctaTotals: si,
1917
+ ctaDiscountBadge: li,
1918
+ ctaTotalsStrike: ci,
1919
+ ctaTotalsPrice: ui,
1920
+ cta: di,
1921
+ ctaButtonGroup: hi,
1922
+ ctaDualLeft: mi,
1923
+ ctaDualRight: bi,
1924
+ poweredBy: fi
1925
1925
  };
1926
- function Si(n) {
1927
- var ye;
1926
+ function Qi(n) {
1927
+ var Ie;
1928
1928
  const {
1929
1929
  loading: e,
1930
1930
  submitting: t,
1931
- error: r,
1932
- currencyCode: i,
1931
+ error: i,
1932
+ currencyCode: r,
1933
1933
  config: a,
1934
- eligibleVariants: m,
1934
+ eligibleVariants: h,
1935
1935
  selections: u,
1936
- selectionOrder: B,
1937
- getVariantMaxSelectableQuantity: le,
1938
- setQuantity: D,
1939
- bundleSize: E,
1940
- minRequired: he,
1941
- canSubmit: F,
1942
- submit: ne,
1943
- submitAndCheckout: V,
1936
+ selectionOrder: S,
1937
+ getVariantMaxSelectableQuantity: ce,
1938
+ setQuantity: q,
1939
+ bundleSize: $,
1940
+ minRequired: me,
1941
+ canSubmit: M,
1942
+ submit: ie,
1943
+ submitAndCheckout: F,
1944
1944
  locale: K,
1945
1945
  t: g
1946
- } = vt(), {
1947
- className: H,
1948
- showRules: I = !0,
1949
- showVariants: ce = !0
1950
- } = n, ke = (f) => {
1946
+ } = gt(), {
1947
+ className: j,
1948
+ showRules: N = !0,
1949
+ showVariants: se = !0
1950
+ } = n, L = (f) => {
1951
1951
  const _ = Number.parseFloat(f);
1952
1952
  return Number.isFinite(_) ? String(Math.round(_)) : f;
1953
- }, Te = (f) => {
1953
+ }, O = (f) => {
1954
1954
  const _ = (f ?? []).filter((x) => {
1955
- var q, W;
1956
- const T = (q = x == null ? void 0 : x.name) == null ? void 0 : q.trim(), M = (W = x == null ? void 0 : x.value) == null ? void 0 : W.trim();
1957
- return !(!T || !M || T.toLowerCase() === "title");
1955
+ var U, Q;
1956
+ const R = (U = x == null ? void 0 : x.name) == null ? void 0 : U.trim(), A = (Q = x == null ? void 0 : x.value) == null ? void 0 : Q.trim();
1957
+ return !(!R || !A || R.toLowerCase() === "title");
1958
1958
  });
1959
1959
  return _.length ? _.map((x) => `${x.name}: ${x.value}`).join(" • ") : null;
1960
- }, ge = (f) => {
1960
+ }, X = (f) => {
1961
1961
  const _ = Number(f);
1962
- return Number.isFinite(_) ? jt(_, i, K) : f;
1963
- }, ee = L(() => [...m].sort((f, _) => f.displayName.localeCompare(_.displayName)), [m]), X = L(() => [...(a == null ? void 0 : a.rules) ?? []].sort((f, _) => f.minBundleSize - _.minBundleSize), [a == null ? void 0 : a.rules]), ie = L(() => Math.max(0, he - E), [E, he]), me = L(() => {
1962
+ return Number.isFinite(_) ? ft(_, r, K) : f;
1963
+ }, Z = P(() => [...h].sort((f, _) => f.displayName.localeCompare(_.displayName)), [h]), V = P(() => [...(a == null ? void 0 : a.rules) ?? []].sort((f, _) => f.minBundleSize - _.minBundleSize), [a == null ? void 0 : a.rules]), ne = P(() => Math.max(0, me - $), [$, me]), ue = P(() => {
1964
1964
  let f = null;
1965
- for (const _ of X)
1966
- E >= _.minBundleSize && (f = _);
1965
+ for (const _ of V)
1966
+ $ >= _.minBundleSize && (f = _);
1967
1967
  return f;
1968
- }, [E, X]), Re = L(() => {
1969
- if (!me) return null;
1970
- const f = Number.parseFloat(me.discountPercent);
1968
+ }, [$, V]), xe = P(() => {
1969
+ if (!ue) return null;
1970
+ const f = Number.parseFloat(ue.discountPercent);
1971
1971
  return !Number.isFinite(f) || f <= 0 ? null : f;
1972
- }, [me]), ae = X[0], Ce = !!(ae && E >= ae.minBundleSize), be = L(() => {
1973
- const f = new Map(m.map((x) => [x.id, x]));
1972
+ }, [ue]), de = V[0], Be = !!(de && $ >= de.minBundleSize), ge = P(() => {
1973
+ const f = new Map(h.map((x) => [x.id, x]));
1974
1974
  let _ = 0;
1975
- for (const [x, T] of Object.entries(u)) {
1976
- const M = T ?? 0;
1977
- if (M <= 0) continue;
1978
- const q = f.get(x), W = Number(q == null ? void 0 : q.price);
1979
- Number.isFinite(W) && (_ += W * M);
1975
+ for (const [x, R] of Object.entries(u)) {
1976
+ const A = R ?? 0;
1977
+ if (A <= 0) continue;
1978
+ const U = f.get(x), Q = Number(U == null ? void 0 : U.price);
1979
+ Number.isFinite(Q) && (_ += Q * A);
1980
1980
  }
1981
1981
  return Math.round(_ * 100) / 100;
1982
- }, [m, u]), Ae = L(() => {
1983
- if (!Re) return be;
1984
- const f = be * (1 - Re / 100);
1982
+ }, [h, u]), Ee = P(() => {
1983
+ if (!xe) return ge;
1984
+ const f = ge * (1 - xe / 100);
1985
1985
  return Math.round(f * 100) / 100;
1986
- }, [Re, be]), we = L(() => X.length ? Math.max(...X.map((f) => f.minBundleSize)) : 0, [X]), Le = L(() => {
1987
- const f = new Map(m.map((_) => [_.id, _]));
1988
- return B.map((_) => f.get(_)).filter((_) => !!_);
1989
- }, [m, B]), Ie = L(() => {
1986
+ }, [xe, ge]), Ne = P(() => V.length ? Math.max(...V.map((f) => f.minBundleSize)) : 0, [V]), Pe = P(() => {
1987
+ const f = new Map(h.map((_) => [_.id, _]));
1988
+ return S.map((_) => f.get(_)).filter((_) => !!_);
1989
+ }, [h, S]), ke = P(() => {
1990
1990
  var _;
1991
1991
  const f = /* @__PURE__ */ new Map();
1992
- for (const x of X) {
1993
- const T = Math.max(0, x.minBundleSize - 1);
1994
- f.set(T, {
1992
+ for (const x of V) {
1993
+ const R = Math.max(0, x.minBundleSize - 1);
1994
+ f.set(R, {
1995
1995
  discountPercent: x.discountPercent,
1996
1996
  minBundleSize: x.minBundleSize,
1997
1997
  label: ((_ = x.label) == null ? void 0 : _.trim()) || `Buy ${x.minBundleSize}+`
1998
1998
  });
1999
1999
  }
2000
2000
  return f;
2001
- }, [X]), De = L(() => {
2001
+ }, [V]), De = P(() => {
2002
2002
  const f = Number((a == null ? void 0 : a.maxBundleSize) ?? NaN), _ = Number.isFinite(f) ? Math.floor(f) : 100;
2003
2003
  return Math.max(2, Math.min(100, _));
2004
- }, [a == null ? void 0 : a.maxBundleSize]), nt = ((ye = a == null ? void 0 : a.title) == null ? void 0 : ye.trim()) || g("bundle.title.default"), We = L(() => Math.max(we || he, Le.length), [Le.length, we, he]), ze = E >= De, Me = U(null), Ye = U(null), Ne = U(E);
2005
- O(() => {
2006
- const f = Ne.current;
2007
- if (Ne.current = E, E <= f) return;
2008
- const _ = Ye.current;
2004
+ }, [a == null ? void 0 : a.maxBundleSize]), at = ((Ie = a == null ? void 0 : a.title) == null ? void 0 : Ie.trim()) || g("bundle.title.default"), We = P(() => Math.max(Ne || me, Pe.length), [Pe.length, Ne, me]), je = $ >= De, Me = Y(null), Ke = Y(null), Te = Y($);
2005
+ D(() => {
2006
+ const f = Te.current;
2007
+ if (Te.current = $, $ <= f) return;
2008
+ const _ = Ke.current;
2009
2009
  if (!_) return;
2010
- const x = X.some((W) => W.minBundleSize === E), T = X.find((W) => W.minBundleSize > E), M = T && x ? T.minBundleSize - 1 : T ? null : E - 1;
2011
- if (M == null || M < 0) return;
2012
- const q = requestAnimationFrame(() => {
2013
- const W = _.querySelector(`[data-box-slot="${M}"]`);
2014
- if (!W) return;
2015
- const Z = _.getBoundingClientRect(), G = W.getBoundingClientRect().right - Z.right;
2016
- if (G <= 1) return;
2017
- const A = Math.max(0, _.scrollWidth - _.clientWidth), $ = Math.min(A, Math.max(0, _.scrollLeft + G));
2018
- _.scrollTo({ left: $, behavior: "smooth" });
2010
+ const x = V.some((Q) => Q.minBundleSize === $), R = V.find((Q) => Q.minBundleSize > $), A = R && x ? R.minBundleSize - 1 : R ? null : $ - 1;
2011
+ if (A == null || A < 0) return;
2012
+ const U = requestAnimationFrame(() => {
2013
+ const Q = _.querySelector(`[data-box-slot="${A}"]`);
2014
+ if (!Q) return;
2015
+ const ae = _.getBoundingClientRect(), J = Q.getBoundingClientRect().right - ae.right;
2016
+ if (J <= 1) return;
2017
+ const z = Math.max(0, _.scrollWidth - _.clientWidth), H = Math.min(z, Math.max(0, _.scrollLeft + J));
2018
+ _.scrollTo({ left: H, behavior: "smooth" });
2019
2019
  });
2020
- return () => cancelAnimationFrame(q);
2021
- }, [E, X]);
2022
- const Ee = (f) => {
2020
+ return () => cancelAnimationFrame(U);
2021
+ }, [$, V]);
2022
+ const qe = (f) => {
2023
2023
  const _ = Me.current;
2024
2024
  if (!_) return;
2025
2025
  const x = _.querySelector(`[data-variant-row="${f}"]`);
2026
2026
  x && x.scrollIntoView({ behavior: "smooth", block: "nearest" });
2027
2027
  };
2028
- return /* @__PURE__ */ R("section", { className: [p.panel, H].filter(Boolean).join(" "), "aria-busy": e, children: [
2029
- /* @__PURE__ */ l("header", { className: p.header, children: /* @__PURE__ */ l("h2", { className: p.title, children: nt }) }),
2030
- e ? /* @__PURE__ */ l("div", { className: p.status, children: g("bundle.loading") }) : null,
2031
- r ? /* @__PURE__ */ l("div", { className: p.error, children: r }) : null,
2032
- I && X.length ? /* @__PURE__ */ l("div", { className: p.section, children: /* @__PURE__ */ R("div", { className: p.rulesVisual, children: [
2033
- /* @__PURE__ */ l("div", { className: p.rulesLabelsRow, children: Array.from({ length: we }).map((f, _) => {
2034
- const x = _ + 1, T = X.find((q) => q.minBundleSize === x), M = T ? g("bundle.discount.off_label", { discount: ke(T.discountPercent) }) : null;
2035
- return /* @__PURE__ */ l("div", { className: p.rulesLineLabelCell, children: M ? /* @__PURE__ */ l("span", { className: p.rulesLineLabel, children: M }) : null }, x);
2028
+ return /* @__PURE__ */ T("section", { className: [p.panel, j].filter(Boolean).join(" "), "aria-busy": e, children: [
2029
+ /* @__PURE__ */ s("header", { className: p.header, children: /* @__PURE__ */ s("h2", { className: p.title, children: at }) }),
2030
+ e ? /* @__PURE__ */ s("div", { className: p.status, children: g("bundle.loading") }) : null,
2031
+ i ? /* @__PURE__ */ s("div", { className: p.error, children: i }) : null,
2032
+ N && V.length ? /* @__PURE__ */ s("div", { className: p.section, children: /* @__PURE__ */ T("div", { className: p.rulesVisual, children: [
2033
+ /* @__PURE__ */ s("div", { className: p.rulesLabelsRow, children: Array.from({ length: Ne }).map((f, _) => {
2034
+ const x = _ + 1, R = V.find((U) => U.minBundleSize === x), A = R ? g("bundle.discount.off_label", { discount: L(R.discountPercent) }) : null;
2035
+ return /* @__PURE__ */ s("div", { className: p.rulesLineLabelCell, children: A ? /* @__PURE__ */ s("span", { className: p.rulesLineLabel, children: A }) : null }, x);
2036
2036
  }) }),
2037
- /* @__PURE__ */ l("div", { className: p.rulesLinesRow, children: Array.from({ length: we }).map((f, _) => {
2038
- const x = _ + 1, T = E >= x;
2039
- return /* @__PURE__ */ l(
2037
+ /* @__PURE__ */ s("div", { className: p.rulesLinesRow, children: Array.from({ length: Ne }).map((f, _) => {
2038
+ const x = _ + 1, R = $ >= x;
2039
+ return /* @__PURE__ */ s(
2040
2040
  "div",
2041
2041
  {
2042
2042
  className: [
2043
2043
  p.rulesLine,
2044
- T ? p.rulesLineFilled : p.rulesLineEmpty
2044
+ R ? p.rulesLineFilled : p.rulesLineEmpty
2045
2045
  ].filter(Boolean).join(" ")
2046
2046
  },
2047
2047
  x
2048
2048
  );
2049
2049
  }) })
2050
2050
  ] }) }) : null,
2051
- ce ? /* @__PURE__ */ R("div", { className: p.section, ref: Me, children: [
2052
- /* @__PURE__ */ l("div", { className: p.sectionTitle, children: g("bundle.select.items") }),
2053
- /* @__PURE__ */ l("div", { className: p.variants, children: !e && !r && ee.length === 0 ? /* @__PURE__ */ l("div", { className: p.emptyState, children: g("bundle.empty") }) : /* @__PURE__ */ l("ul", { className: p.variantList, children: ee.map((f) => {
2054
- var A;
2055
- const _ = u[f.id] ?? 0, x = Te(f.selectedOptions), T = f.availableForSale === !1, M = le(f.id), q = M ?? Number.POSITIVE_INFINITY, W = _ >= q, Z = !T && !ze && !W, te = Z, G = !T && W ? g("bundle.stock.max_reached") : null;
2056
- return /* @__PURE__ */ R(
2051
+ se ? /* @__PURE__ */ T("div", { className: p.section, ref: Me, children: [
2052
+ /* @__PURE__ */ s("div", { className: p.sectionTitle, children: g("bundle.select.items") }),
2053
+ /* @__PURE__ */ s("div", { className: p.variants, children: !e && !i && Z.length === 0 ? /* @__PURE__ */ s("div", { className: p.emptyState, children: g("bundle.empty") }) : /* @__PURE__ */ s("ul", { className: p.variantList, children: Z.map((f) => {
2054
+ var z;
2055
+ const _ = u[f.id] ?? 0, x = O(f.selectedOptions), R = f.availableForSale === !1, A = ce(f.id), U = A ?? Number.POSITIVE_INFINITY, Q = _ >= U, ae = !R && !je && !Q, le = ae, J = !R && Q ? g("bundle.stock.max_reached") : null;
2056
+ return /* @__PURE__ */ T(
2057
2057
  "li",
2058
2058
  {
2059
2059
  className: [
2060
2060
  p.variantRow,
2061
- te ? p.variantRowInteractive : null,
2061
+ le ? p.variantRowInteractive : null,
2062
2062
  _ > 0 ? p.variantRowSelected : null,
2063
- T ? p.variantRowSoldOut : null
2063
+ R ? p.variantRowSoldOut : null
2064
2064
  ].filter(Boolean).join(" "),
2065
2065
  "data-variant-row": f.id,
2066
- role: te ? "button" : void 0,
2067
- tabIndex: te ? 0 : void 0,
2068
- onClick: te ? () => {
2069
- D(f.id, _ + 1);
2066
+ role: le ? "button" : void 0,
2067
+ tabIndex: le ? 0 : void 0,
2068
+ onClick: le ? () => {
2069
+ q(f.id, _ + 1);
2070
2070
  } : void 0,
2071
- onKeyDown: te ? ($) => {
2072
- ($.key === "Enter" || $.key === " ") && ($.preventDefault(), D(f.id, _ + 1), Ee(f.id));
2071
+ onKeyDown: le ? (H) => {
2072
+ (H.key === "Enter" || H.key === " ") && (H.preventDefault(), q(f.id, _ + 1), qe(f.id));
2073
2073
  } : void 0,
2074
- "aria-label": T ? g("bundle.a11y.sold_out", { name: f.displayName }) : G ? `${f.displayName} ${G.toLowerCase()}` : g("bundle.a11y.add_to_bundle", { name: f.displayName }),
2074
+ "aria-label": R ? g("bundle.a11y.sold_out", { name: f.displayName }) : J ? `${f.displayName} ${J.toLowerCase()}` : g("bundle.a11y.add_to_bundle", { name: f.displayName }),
2075
2075
  children: [
2076
- /* @__PURE__ */ l("div", { className: p.variantMedia, children: (A = f.image) != null && A.url ? /* @__PURE__ */ l(
2076
+ /* @__PURE__ */ s("div", { className: p.variantMedia, children: (z = f.image) != null && z.url ? /* @__PURE__ */ s(
2077
2077
  "img",
2078
2078
  {
2079
2079
  src: f.image.url,
@@ -2083,67 +2083,67 @@ function Si(n) {
2083
2083
  className: p.variantImage,
2084
2084
  loading: "lazy"
2085
2085
  }
2086
- ) : /* @__PURE__ */ l("div", { className: p.variantImageFallback, children: g("bundle.item.generic") }) }),
2087
- /* @__PURE__ */ R("div", { className: p.variantContent, children: [
2088
- /* @__PURE__ */ R("div", { className: p.variantHeader, children: [
2089
- /* @__PURE__ */ l("div", { className: p.variantTitle, children: f.displayName }),
2090
- x ? /* @__PURE__ */ l("div", { className: p.variantMeta, children: x }) : null
2086
+ ) : /* @__PURE__ */ s("div", { className: p.variantImageFallback, children: g("bundle.item.generic") }) }),
2087
+ /* @__PURE__ */ T("div", { className: p.variantContent, children: [
2088
+ /* @__PURE__ */ T("div", { className: p.variantHeader, children: [
2089
+ /* @__PURE__ */ s("div", { className: p.variantTitle, children: f.displayName }),
2090
+ x ? /* @__PURE__ */ s("div", { className: p.variantMeta, children: x }) : null
2091
2091
  ] }),
2092
- /* @__PURE__ */ R("div", { className: p.variantFooterRow, children: [
2093
- /* @__PURE__ */ l("div", { className: p.variantPrice, children: ge(f.price) }),
2094
- /* @__PURE__ */ l("div", { className: p.variantActions, children: T ? /* @__PURE__ */ l("div", { className: p.soldOut, "aria-label": g("bundle.a11y.sold_out", { name: f.displayName }), children: g("bundle.stock.sold_out") }) : _ <= 0 && q <= 0 ? /* @__PURE__ */ l("div", { className: p.stockLimitNotice, "aria-label": g("bundle.a11y.max_available_selected", { name: f.displayName }), children: g("bundle.stock.max_added") }) : /* @__PURE__ */ R("div", { className: p.qtyActionsWrap, children: [
2095
- /* @__PURE__ */ R("div", { className: p.qtyActions, children: [
2096
- _ > 0 ? /* @__PURE__ */ l(
2092
+ /* @__PURE__ */ T("div", { className: p.variantFooterRow, children: [
2093
+ /* @__PURE__ */ s("div", { className: p.variantPrice, children: X(f.price) }),
2094
+ /* @__PURE__ */ s("div", { className: p.variantActions, children: R ? /* @__PURE__ */ s("div", { className: p.soldOut, "aria-label": g("bundle.a11y.sold_out", { name: f.displayName }), children: g("bundle.stock.sold_out") }) : _ <= 0 && U <= 0 ? /* @__PURE__ */ s("div", { className: p.stockLimitNotice, "aria-label": g("bundle.a11y.max_available_selected", { name: f.displayName }), children: g("bundle.stock.max_added") }) : /* @__PURE__ */ T("div", { className: p.qtyActionsWrap, children: [
2095
+ /* @__PURE__ */ T("div", { className: p.qtyActions, children: [
2096
+ _ > 0 ? /* @__PURE__ */ s(
2097
2097
  "button",
2098
2098
  {
2099
2099
  type: "button",
2100
2100
  className: p.qtyTrash,
2101
2101
  "aria-label": g("bundle.a11y.remove_from_bundle", { name: f.displayName }),
2102
- onClick: ($) => {
2103
- $.stopPropagation(), D(f.id, 0);
2102
+ onClick: (H) => {
2103
+ H.stopPropagation(), q(f.id, 0);
2104
2104
  },
2105
- onKeyDown: ($) => {
2106
- $.stopPropagation();
2105
+ onKeyDown: (H) => {
2106
+ H.stopPropagation();
2107
2107
  },
2108
- children: /* @__PURE__ */ l(Ln, { size: 14 })
2108
+ children: /* @__PURE__ */ s(Fn, { size: 14 })
2109
2109
  }
2110
2110
  ) : null,
2111
- /* @__PURE__ */ l(
2111
+ /* @__PURE__ */ s(
2112
2112
  "div",
2113
2113
  {
2114
- className: [p.qtyChip, Z ? p.qtyChipInteractive : null].filter(Boolean).join(" "),
2114
+ className: [p.qtyChip, ae ? p.qtyChipInteractive : null].filter(Boolean).join(" "),
2115
2115
  "aria-label": g("bundle.a11y.quantity", { name: f.displayName, qty: _ }),
2116
- onClick: Z ? ($) => {
2117
- $.stopPropagation(), D(f.id, _ + 1);
2116
+ onClick: ae ? (H) => {
2117
+ H.stopPropagation(), q(f.id, _ + 1);
2118
2118
  } : void 0,
2119
- onKeyDown: ($) => {
2120
- $.stopPropagation();
2119
+ onKeyDown: (H) => {
2120
+ H.stopPropagation();
2121
2121
  },
2122
- role: Z ? "button" : void 0,
2123
- tabIndex: Z ? 0 : void 0,
2124
- children: _ <= 0 ? /* @__PURE__ */ l("span", { className: p.qtyChipPlus, "aria-hidden": "true", children: /* @__PURE__ */ l(Vt, { size: 18, strokeWidth: 1.8 }) }) : /* @__PURE__ */ R(kt, { children: [
2125
- /* @__PURE__ */ l("span", { className: p.qtyChipValue, children: _ }),
2126
- /* @__PURE__ */ l(
2122
+ role: ae ? "button" : void 0,
2123
+ tabIndex: ae ? 0 : void 0,
2124
+ children: _ <= 0 ? /* @__PURE__ */ s("span", { className: p.qtyChipPlus, "aria-hidden": "true", children: /* @__PURE__ */ s(Wt, { size: 18, strokeWidth: 1.8 }) }) : /* @__PURE__ */ T(Nt, { children: [
2125
+ /* @__PURE__ */ s("span", { className: p.qtyChipValue, children: _ }),
2126
+ /* @__PURE__ */ s(
2127
2127
  "button",
2128
2128
  {
2129
2129
  type: "button",
2130
2130
  className: p.qtyChipClear,
2131
2131
  "aria-label": g("bundle.a11y.increase", { name: f.displayName }),
2132
- onClick: ($) => {
2133
- $.stopPropagation(), D(f.id, _ + 1);
2132
+ onClick: (H) => {
2133
+ H.stopPropagation(), q(f.id, _ + 1);
2134
2134
  },
2135
- onKeyDown: ($) => {
2136
- $.stopPropagation();
2135
+ onKeyDown: (H) => {
2136
+ H.stopPropagation();
2137
2137
  },
2138
- disabled: !Z,
2139
- children: /* @__PURE__ */ l(Vt, { size: 12, strokeWidth: 2 })
2138
+ disabled: !ae,
2139
+ children: /* @__PURE__ */ s(Wt, { size: 12, strokeWidth: 2 })
2140
2140
  }
2141
2141
  )
2142
2142
  ] })
2143
2143
  }
2144
2144
  )
2145
2145
  ] }),
2146
- G ? /* @__PURE__ */ l("div", { className: p.stockLimitNotice, children: G }) : null
2146
+ J ? /* @__PURE__ */ s("div", { className: p.stockLimitNotice, children: J }) : null
2147
2147
  ] }) })
2148
2148
  ] })
2149
2149
  ] })
@@ -2153,29 +2153,29 @@ function Si(n) {
2153
2153
  );
2154
2154
  }) }) })
2155
2155
  ] }) : null,
2156
- /* @__PURE__ */ R("footer", { className: p.footer, children: [
2157
- /* @__PURE__ */ l("div", { className: p.boxSummaryWindow, ref: Ye, children: /* @__PURE__ */ l("div", { className: p.boxSummaryRow, "aria-label": "Bundle box summary", children: Array.from({ length: We }).map((f, _) => {
2158
- var G, A, $, Se;
2159
- const x = Le[_], T = Ie.get(_), M = !!x, q = !!T, W = q && !M, Z = T ? g("bundle.discount.off_label", { discount: ke(T.discountPercent) }) : null, te = M ? x.displayName : g("bundle.slot", { slot: _ + 1 });
2160
- return /* @__PURE__ */ R("div", { "data-box-slot": _, className: p.boxSlot, children: [
2161
- /* @__PURE__ */ l(
2156
+ /* @__PURE__ */ T("footer", { className: p.footer, children: [
2157
+ /* @__PURE__ */ s("div", { className: p.boxSummaryWindow, ref: Ke, children: /* @__PURE__ */ s("div", { className: p.boxSummaryRow, "aria-label": "Bundle box summary", children: Array.from({ length: We }).map((f, _) => {
2158
+ var J, z, H, Le;
2159
+ const x = Pe[_], R = ke.get(_), A = !!x, U = !!R, Q = U && !A, ae = R ? g("bundle.discount.off_label", { discount: L(R.discountPercent) }) : null, le = A ? x.displayName : g("bundle.slot", { slot: _ + 1 });
2160
+ return /* @__PURE__ */ T("div", { "data-box-slot": _, className: p.boxSlot, children: [
2161
+ /* @__PURE__ */ s(
2162
2162
  "div",
2163
2163
  {
2164
2164
  className: [
2165
2165
  p.boxItem,
2166
- M ? p.boxItemFilled : p.boxItemPlaceholder,
2167
- q ? p.boxItemThreshold : null,
2168
- M ? p.boxItemClickable : null
2166
+ A ? p.boxItemFilled : p.boxItemPlaceholder,
2167
+ U ? p.boxItemThreshold : null,
2168
+ A ? p.boxItemClickable : null
2169
2169
  ].filter(Boolean).join(" "),
2170
- role: M ? "button" : void 0,
2171
- tabIndex: M ? 0 : void 0,
2172
- onClick: M ? () => Ee(x.id) : void 0,
2173
- onKeyDown: M ? (Pe) => {
2174
- (Pe.key === "Enter" || Pe.key === " ") && (Pe.preventDefault(), Ee(x.id));
2170
+ role: A ? "button" : void 0,
2171
+ tabIndex: A ? 0 : void 0,
2172
+ onClick: A ? () => qe(x.id) : void 0,
2173
+ onKeyDown: A ? (Fe) => {
2174
+ (Fe.key === "Enter" || Fe.key === " ") && (Fe.preventDefault(), qe(x.id));
2175
2175
  } : void 0,
2176
- "aria-label": W && Z ? `${te}. ${g("bundle.unlocks", { discount: Z })}.` : te,
2177
- title: W && Z ? `${te} • ${g("bundle.unlocks", { discount: Z })}` : te,
2178
- children: M ? (G = x.image) != null && G.url ? /* @__PURE__ */ l(
2176
+ "aria-label": Q && ae ? `${le}. ${g("bundle.unlocks", { discount: ae })}.` : le,
2177
+ title: Q && ae ? `${le} • ${g("bundle.unlocks", { discount: ae })}` : le,
2178
+ children: A ? (J = x.image) != null && J.url ? /* @__PURE__ */ s(
2179
2179
  "img",
2180
2180
  {
2181
2181
  className: p.boxItemImage,
@@ -2185,76 +2185,208 @@ function Si(n) {
2185
2185
  height: 1,
2186
2186
  loading: "lazy"
2187
2187
  }
2188
- ) : /* @__PURE__ */ l("div", { className: p.boxItemFallback, "aria-hidden": "true", children: ((Se = ($ = (A = x.product) == null ? void 0 : A.title) == null ? void 0 : $.slice(0, 1)) == null ? void 0 : Se.toUpperCase()) ?? "•" }) : W && Z ? /* @__PURE__ */ l("div", { className: p.boxItemDiscountText, children: Z }) : /* @__PURE__ */ l("div", { className: p.boxItemPlus, "aria-hidden": "true", children: "+" })
2188
+ ) : /* @__PURE__ */ s("div", { className: p.boxItemFallback, "aria-hidden": "true", children: ((Le = (H = (z = x.product) == null ? void 0 : z.title) == null ? void 0 : H.slice(0, 1)) == null ? void 0 : Le.toUpperCase()) ?? "•" }) : Q && ae ? /* @__PURE__ */ s("div", { className: p.boxItemDiscountText, children: ae }) : /* @__PURE__ */ s("div", { className: p.boxItemPlus, "aria-hidden": "true", children: "+" })
2189
2189
  }
2190
2190
  ),
2191
- q ? /* @__PURE__ */ l("div", { className: p.boxThresholdLabel, children: T.label }) : null
2191
+ U ? /* @__PURE__ */ s("div", { className: p.boxThresholdLabel, children: R.label }) : null
2192
2192
  ] }, _);
2193
2193
  }) }) }),
2194
- /* @__PURE__ */ l("div", { className: [p.totalsReveal, Ce ? p.totalsRevealOpen : null].filter(Boolean).join(" "), children: /* @__PURE__ */ l(
2194
+ /* @__PURE__ */ s("div", { className: [p.totalsReveal, Be ? p.totalsRevealOpen : null].filter(Boolean).join(" "), children: /* @__PURE__ */ s(
2195
2195
  "div",
2196
2196
  {
2197
- className: [p.ctaTotalsWrap, Ce ? p.ctaTotalsWrapVisible : null].filter(Boolean).join(" "),
2198
- "aria-hidden": !Ce,
2199
- children: /* @__PURE__ */ R("div", { className: p.ctaTotals, "aria-label": g("bundle.totals"), children: [
2200
- Re ? /* @__PURE__ */ l("span", { className: p.ctaDiscountBadge, children: g("bundle.discount.badge", { discount: Re }) }) : /* @__PURE__ */ l("span", {}),
2201
- /* @__PURE__ */ l("span", { children: Re ? /* @__PURE__ */ R(kt, { children: [
2202
- /* @__PURE__ */ l("span", { className: p.ctaTotalsStrike, children: ge(be.toFixed(2)) }),
2197
+ className: [p.ctaTotalsWrap, Be ? p.ctaTotalsWrapVisible : null].filter(Boolean).join(" "),
2198
+ "aria-hidden": !Be,
2199
+ children: /* @__PURE__ */ T("div", { className: p.ctaTotals, "aria-label": g("bundle.totals"), children: [
2200
+ xe ? /* @__PURE__ */ s("span", { className: p.ctaDiscountBadge, children: g("bundle.discount.badge", { discount: xe }) }) : /* @__PURE__ */ s("span", {}),
2201
+ /* @__PURE__ */ s("span", { children: xe ? /* @__PURE__ */ T(Nt, { children: [
2202
+ /* @__PURE__ */ s("span", { className: p.ctaTotalsStrike, children: X(ge.toFixed(2)) }),
2203
2203
  " ",
2204
- /* @__PURE__ */ l("span", { className: p.ctaTotalsPrice, children: ge(Ae.toFixed(2)) })
2205
- ] }) : /* @__PURE__ */ l("span", { className: p.ctaTotalsPrice, children: ge(be.toFixed(2)) }) })
2204
+ /* @__PURE__ */ s("span", { className: p.ctaTotalsPrice, children: X(Ee.toFixed(2)) })
2205
+ ] }) : /* @__PURE__ */ s("span", { className: p.ctaTotalsPrice, children: X(ge.toFixed(2)) }) })
2206
2206
  ] })
2207
2207
  }
2208
2208
  ) }),
2209
2209
  (() => {
2210
2210
  const f = (a == null ? void 0 : a.ctaButtonMode) || "add_to_cart";
2211
- return f === "add_to_cart_checkout" ? ie > 0 ? /* @__PURE__ */ l("button", { type: "button", onClick: ne, disabled: !F, className: p.cta, children: t ? g("bundle.cta.adding") : g("bundle.cta.add_more", { count: ie, productWord: ct(K, ie) }) }) : /* @__PURE__ */ R("div", { className: p.ctaButtonGroup, children: [
2212
- /* @__PURE__ */ l("button", { type: "button", onClick: ne, disabled: !F, className: p.ctaDualLeft, children: /* @__PURE__ */ l("span", { children: g(t ? "bundle.cta.adding" : "bundle.cta.add_to_basket") }) }),
2213
- /* @__PURE__ */ l("button", { type: "button", onClick: V, disabled: !F, className: p.ctaDualRight, children: /* @__PURE__ */ l("span", { children: g(t ? "bundle.cta.processing" : "bundle.cta.checkout") }) })
2214
- ] }) : f === "checkout" ? /* @__PURE__ */ l("button", { type: "button", onClick: V, disabled: !F, className: p.cta, children: t ? g("bundle.cta.processing") : ie > 0 ? g("bundle.cta.add_more", { count: ie, productWord: ct(K, ie) }) : g("bundle.cta.checkout") }) : /* @__PURE__ */ l("button", { type: "button", onClick: ne, disabled: !F, className: p.cta, children: t ? g("bundle.cta.adding") : ie > 0 ? g("bundle.cta.add_more", { count: ie, productWord: ct(K, ie) }) : g("bundle.cta.add_to_basket") });
2211
+ return f === "add_to_cart_checkout" ? ne > 0 ? /* @__PURE__ */ s("button", { type: "button", onClick: ie, disabled: !M, className: p.cta, children: t ? g("bundle.cta.adding") : g("bundle.cta.add_more", { count: ne, productWord: ut(K, ne) }) }) : /* @__PURE__ */ T("div", { className: p.ctaButtonGroup, children: [
2212
+ /* @__PURE__ */ s("button", { type: "button", onClick: ie, disabled: !M, className: p.ctaDualLeft, children: /* @__PURE__ */ s("span", { children: g(t ? "bundle.cta.adding" : "bundle.cta.add_to_basket") }) }),
2213
+ /* @__PURE__ */ s("button", { type: "button", onClick: F, disabled: !M, className: p.ctaDualRight, children: /* @__PURE__ */ s("span", { children: g(t ? "bundle.cta.processing" : "bundle.cta.checkout") }) })
2214
+ ] }) : f === "checkout" ? /* @__PURE__ */ s("button", { type: "button", onClick: F, disabled: !M, className: p.cta, children: t ? g("bundle.cta.processing") : ne > 0 ? g("bundle.cta.add_more", { count: ne, productWord: ut(K, ne) }) : g("bundle.cta.checkout") }) : /* @__PURE__ */ s("button", { type: "button", onClick: ie, disabled: !M, className: p.cta, children: t ? g("bundle.cta.adding") : ne > 0 ? g("bundle.cta.add_more", { count: ne, productWord: ut(K, ne) }) : g("bundle.cta.add_to_basket") });
2215
2215
  })(),
2216
- /* @__PURE__ */ R("div", { className: p.poweredBy, children: [
2216
+ /* @__PURE__ */ T("div", { className: p.poweredBy, children: [
2217
2217
  g("bundle.powered_by"),
2218
2218
  " ",
2219
- /* @__PURE__ */ l("a", { href: "https://apps.shopify.com/best-bundles", target: "_blank", rel: "noopener noreferrer", children: "BestBundles" })
2219
+ /* @__PURE__ */ s("a", { href: "https://apps.shopify.com/best-bundles", target: "_blank", rel: "noopener noreferrer", children: "BestBundles" })
2220
2220
  ] })
2221
2221
  ] })
2222
2222
  ] });
2223
2223
  }
2224
- function Bt(n) {
2224
+ const pi = "_panel_mo8go_1", _i = "_title_mo8go_12", gi = "_status_mo8go_19", wi = "_error_mo8go_24", yi = "_rules_mo8go_30", vi = "_rule_mo8go_30", xi = "_ruleInput_mo8go_44", Ni = "_ruleLabel_mo8go_50", Ii = "_ruleLabelContent_mo8go_59", Si = "_ruleSelected_mo8go_66", Ci = "_ruleTitle_mo8go_71", Bi = "_ruleSubtitle_mo8go_77", ki = "_priceRow_mo8go_83", Ti = "_oldPrice_mo8go_90", Li = "_newPrice_mo8go_96", oe = {
2225
+ panel: pi,
2226
+ title: _i,
2227
+ status: gi,
2228
+ error: wi,
2229
+ rules: yi,
2230
+ rule: vi,
2231
+ ruleInput: xi,
2232
+ ruleLabel: Ni,
2233
+ ruleLabelContent: Ii,
2234
+ ruleSelected: Si,
2235
+ ruleTitle: Ci,
2236
+ ruleSubtitle: Bi,
2237
+ priceRow: ki,
2238
+ oldPrice: Ti,
2239
+ newPrice: Li
2240
+ };
2241
+ function jt(n) {
2242
+ const e = String(n ?? "").trim();
2243
+ if (!e) return "";
2244
+ if (e.startsWith("gid://shopify/ProductVariant/")) return e;
2245
+ const t = e.replace(/\D/g, "");
2246
+ return t ? `gid://shopify/ProductVariant/${t}` : "";
2247
+ }
2248
+ function Ri() {
2249
+ if (typeof window > "u") return "";
2250
+ const n = new URLSearchParams(window.location.search).get("variant");
2251
+ if (n) return jt(n);
2252
+ const e = document.querySelector('form[action*="/cart/add"]'), t = e == null ? void 0 : e.querySelector('input[name="id"], select[name="id"]');
2253
+ return jt((t == null ? void 0 : t.value) ?? "");
2254
+ }
2255
+ function Yt() {
2256
+ if (typeof document > "u") return null;
2257
+ const n = document.querySelector('form[action*="/cart/add"]');
2258
+ return (n == null ? void 0 : n.querySelector('input[name="quantity"]')) ?? null;
2259
+ }
2260
+ function Pi() {
2261
+ const n = Yt();
2262
+ if (!n) return null;
2263
+ const e = Number(n.value ?? NaN);
2264
+ return !Number.isFinite(e) || e <= 0 ? null : Math.floor(e);
2265
+ }
2266
+ function Mi(n) {
2267
+ const e = Yt();
2268
+ return e ? (e.value = String(n), e.dispatchEvent(new Event("input", { bubbles: !0 })), e.dispatchEvent(new Event("change", { bubbles: !0 })), !0) : !1;
2269
+ }
2270
+ function Gi({ className: n, preferFirstEligibleVariant: e = !1 }) {
2271
+ var j, N, se;
2272
+ const { loading: t, error: i, config: r, eligibleVariants: a, currencyCode: h, locale: u } = gt(), [S, ce] = W(""), [q, $] = W(null), [me, M] = W(null), ie = e || typeof window < "u" && !!window.__BUNDLE_PREVIEW_CONFIG__;
2273
+ D(() => {
2274
+ const L = () => ce(Ri());
2275
+ L(), document.addEventListener("variant:change", L);
2276
+ const O = window.setInterval(L, 500);
2277
+ return () => {
2278
+ document.removeEventListener("variant:change", L), window.clearInterval(O);
2279
+ };
2280
+ }, []), D(() => {
2281
+ const L = () => $(Pi()), O = (Z) => {
2282
+ const V = Z.target;
2283
+ V instanceof HTMLInputElement && V.name === "quantity" && L();
2284
+ };
2285
+ L(), document.addEventListener("input", O, !0), document.addEventListener("change", O, !0);
2286
+ const X = window.setInterval(L, 500);
2287
+ return () => {
2288
+ document.removeEventListener("input", O, !0), document.removeEventListener("change", O, !0), window.clearInterval(X);
2289
+ };
2290
+ }, []);
2291
+ const F = P(
2292
+ () => [...(r == null ? void 0 : r.rules) ?? []].sort((L, O) => L.minBundleSize - O.minBundleSize),
2293
+ [r == null ? void 0 : r.rules]
2294
+ ), K = ie ? ((j = a[0]) == null ? void 0 : j.id) || "" : S || ((N = a[0]) == null ? void 0 : N.id) || "", g = a.find((L) => L.id === K) ?? null;
2295
+ return D(() => {
2296
+ var L;
2297
+ if (!F.length) {
2298
+ M(null);
2299
+ return;
2300
+ }
2301
+ if (q != null) {
2302
+ let O = null;
2303
+ for (const X of F)
2304
+ X.minBundleSize <= q && (O = X.handle);
2305
+ M(O ?? ((L = F[0]) == null ? void 0 : L.handle) ?? null);
2306
+ return;
2307
+ }
2308
+ M((O) => {
2309
+ var X;
2310
+ return O ?? ((X = F[0]) == null ? void 0 : X.handle) ?? null;
2311
+ });
2312
+ }, [q, F]), (r == null ? void 0 : r.bundleType) !== "volume_discount" ? null : /* @__PURE__ */ T("section", { className: [oe.panel, n].filter(Boolean).join(" "), "aria-busy": t, children: [
2313
+ /* @__PURE__ */ s("h2", { className: oe.title, children: ((se = r == null ? void 0 : r.title) == null ? void 0 : se.trim()) || "Volume discount" }),
2314
+ t ? /* @__PURE__ */ s("div", { className: oe.status, children: "Loading volume discounts…" }) : null,
2315
+ i ? /* @__PURE__ */ s("div", { className: oe.error, children: i }) : null,
2316
+ !t && !i && !g ? /* @__PURE__ */ s("div", { className: oe.status, children: "Select an eligible variant to view volume discounts." }) : null,
2317
+ !t && !i && g ? /* @__PURE__ */ s(Nt, { children: /* @__PURE__ */ s("div", { className: oe.rules, children: F.map((L) => {
2318
+ const O = Number.parseFloat(L.discountPercent), X = Number.isFinite(O) && O > 0 ? `Save ${Math.round(O)}%` : "Standard", Z = me === L.handle;
2319
+ return /* @__PURE__ */ s(
2320
+ "div",
2321
+ {
2322
+ className: [oe.rule, Z ? oe.ruleSelected : ""].filter(Boolean).join(" "),
2323
+ children: /* @__PURE__ */ T("label", { className: oe.ruleLabel, children: [
2324
+ /* @__PURE__ */ T("div", { className: oe.ruleLabelContent, children: [
2325
+ /* @__PURE__ */ s(
2326
+ "input",
2327
+ {
2328
+ className: oe.ruleInput,
2329
+ type: "radio",
2330
+ checked: Z,
2331
+ name: "bb-volume-discount-rule",
2332
+ onChange: () => {
2333
+ M(L.handle), Mi(L.minBundleSize);
2334
+ }
2335
+ }
2336
+ ),
2337
+ /* @__PURE__ */ s("span", { className: oe.ruleTitle, children: `Buy ${L.minBundleSize}` }),
2338
+ /* @__PURE__ */ s("span", { className: oe.ruleSubtitle, children: X })
2339
+ ] }),
2340
+ /* @__PURE__ */ s("div", { children: (() => {
2341
+ const V = Number(g.price ?? NaN);
2342
+ if (!Number.isFinite(V)) return null;
2343
+ const ne = V * L.minBundleSize, ue = Number.isFinite(O) && O > 0, xe = ue ? ne * (1 - O / 100) : ne;
2344
+ return ue ? /* @__PURE__ */ T("span", { className: oe.priceRow, children: [
2345
+ /* @__PURE__ */ s("span", { className: oe.oldPrice, children: ft(ne, h, u) }),
2346
+ /* @__PURE__ */ s("span", { className: oe.newPrice, children: ft(xe, h, u) })
2347
+ ] }) : /* @__PURE__ */ s("span", { className: oe.priceRow, children: /* @__PURE__ */ s("span", { className: oe.newPrice, children: ft(ne, h, u) }) });
2348
+ })() })
2349
+ ] })
2350
+ },
2351
+ L.handle
2352
+ );
2353
+ }) }) }) : null
2354
+ ] });
2355
+ }
2356
+ function Lt(n) {
2225
2357
  if (n != null && n.length)
2226
2358
  return n.reduce((e, t) => (t != null && t.key && (e[t.key] = t.value ?? ""), e), {});
2227
2359
  }
2228
- function Wt(n) {
2360
+ function Ut(n) {
2229
2361
  const e = /\/(\d+)$/.exec(n);
2230
2362
  return e ? e[1] : n;
2231
2363
  }
2232
- function mi(n) {
2364
+ function Fi(n) {
2233
2365
  if (n == null) return null;
2234
2366
  const e = String(n).trim();
2235
2367
  return e ? e.startsWith("gid://shopify/ProductVariant/") ? e : `gid://shopify/ProductVariant/${e}` : null;
2236
2368
  }
2237
- function bi() {
2369
+ function Oi() {
2238
2370
  var n;
2239
2371
  return typeof window > "u" ? null : ((n = window.Shopify) == null ? void 0 : n.theme) ?? null;
2240
2372
  }
2241
- function fi() {
2242
- const n = bi();
2373
+ function Ai() {
2374
+ const n = Oi();
2243
2375
  return n ? n.schema_name === "Sleek" ? !0 : /sleek/i.test(n.name ?? "") : !1;
2244
2376
  }
2245
- function pi() {
2377
+ function Ei() {
2246
2378
  return typeof document > "u" ? !1 : !!document.querySelector("cart-drawer");
2247
2379
  }
2248
- function _i() {
2249
- return !fi() || !pi() ? !1 : (document.dispatchEvent(new CustomEvent("cart:refresh", {
2380
+ function Di() {
2381
+ return !Ai() || !Ei() ? !1 : (document.dispatchEvent(new CustomEvent("cart:refresh", {
2250
2382
  bubbles: !0,
2251
2383
  detail: { open: !0 }
2252
2384
  })), !0);
2253
2385
  }
2254
- function gi() {
2386
+ function qi() {
2255
2387
  window.location.reload();
2256
2388
  }
2257
- async function gt(n, e) {
2389
+ async function vt(n, e) {
2258
2390
  const t = await fetch(n, {
2259
2391
  method: "POST",
2260
2392
  headers: {
@@ -2264,12 +2396,12 @@ async function gt(n, e) {
2264
2396
  body: JSON.stringify(e)
2265
2397
  });
2266
2398
  if (!t.ok) {
2267
- const r = await t.text().catch(() => "");
2268
- throw new Error(r || `Cart request failed: ${t.status}`);
2399
+ const i = await t.text().catch(() => "");
2400
+ throw new Error(i || `Cart request failed: ${t.status}`);
2269
2401
  }
2270
2402
  return t.json().catch(() => null);
2271
2403
  }
2272
- async function wi() {
2404
+ async function $i() {
2273
2405
  const n = await fetch("/cart.js", {
2274
2406
  method: "GET",
2275
2407
  cache: "no-store",
@@ -2282,48 +2414,48 @@ async function wi() {
2282
2414
  throw new Error(`Cart request failed: ${n.status}`);
2283
2415
  return n.json();
2284
2416
  }
2285
- function Bi() {
2417
+ function Yi() {
2286
2418
  return {
2287
2419
  async linesAdd(n) {
2288
2420
  const e = n.map((t) => ({
2289
- id: Wt(t.merchandiseId),
2421
+ id: Ut(t.merchandiseId),
2290
2422
  quantity: t.quantity,
2291
- properties: Bt(t.attributes)
2423
+ properties: Lt(t.attributes)
2292
2424
  }));
2293
- await gt("/cart/add.js", { items: e });
2425
+ await vt("/cart/add.js", { items: e });
2294
2426
  },
2295
2427
  async linesAddForCheckout(n) {
2296
2428
  const e = n.map((t) => ({
2297
- id: Wt(t.merchandiseId),
2429
+ id: Ut(t.merchandiseId),
2298
2430
  quantity: t.quantity,
2299
- properties: Bt(t.attributes)
2431
+ properties: Lt(t.attributes)
2300
2432
  }));
2301
- await gt("/cart/add.js", { items: e });
2433
+ await vt("/cart/add.js", { items: e });
2302
2434
  },
2303
2435
  async linesUpdate(n) {
2304
2436
  for (const e of n)
2305
- await gt("/cart/change.js", {
2437
+ await vt("/cart/change.js", {
2306
2438
  id: e.id,
2307
2439
  quantity: e.quantity,
2308
- properties: Bt(e.attributes)
2440
+ properties: Lt(e.attributes)
2309
2441
  });
2310
2442
  },
2311
2443
  async linesRemove(n) {
2312
2444
  for (const e of n)
2313
- await gt("/cart/change.js", { id: e, quantity: 0 });
2445
+ await vt("/cart/change.js", { id: e, quantity: 0 });
2314
2446
  },
2315
2447
  async getLineQuantitiesByMerchandiseId() {
2316
- const n = await wi(), e = {};
2448
+ const n = await $i(), e = {};
2317
2449
  for (const t of n.items ?? []) {
2318
- const r = mi(t.id);
2319
- if (!r) continue;
2320
- const i = Number(t.quantity ?? 0);
2321
- !Number.isFinite(i) || i <= 0 || (e[r] = (e[r] ?? 0) + Math.floor(i));
2450
+ const i = Fi(t.id);
2451
+ if (!i) continue;
2452
+ const r = Number(t.quantity ?? 0);
2453
+ !Number.isFinite(r) || r <= 0 || (e[i] = (e[i] ?? 0) + Math.floor(r));
2322
2454
  }
2323
2455
  return e;
2324
2456
  },
2325
2457
  openCartUI() {
2326
- _i() || window.setTimeout(() => gi(), 0);
2458
+ Di() || window.setTimeout(() => qi(), 0);
2327
2459
  },
2328
2460
  navigateToCheckout() {
2329
2461
  window.location.href = "/checkout";
@@ -2331,13 +2463,14 @@ function Bi() {
2331
2463
  };
2332
2464
  }
2333
2465
  export {
2334
- Ni as BundleBuilderDrawer,
2335
- Si as BundleBuilderPanel,
2336
- Ii as BundleButton,
2337
- pt as BundleLineAttributeKeys,
2338
- xi as BundleProvider,
2339
- Bi as createLiquidCartAdapter,
2340
- vt as useBundleBuilder,
2341
- Ci as useBundleBuilderDrawer
2466
+ Hi as BundleBuilderDrawer,
2467
+ Qi as BundleBuilderPanel,
2468
+ Ui as BundleButton,
2469
+ wt as BundleLineAttributeKeys,
2470
+ Wi as BundleProvider,
2471
+ Gi as VolumeDiscountPanel,
2472
+ Yi as createLiquidCartAdapter,
2473
+ gt as useBundleBuilder,
2474
+ ji as useBundleBuilderDrawer
2342
2475
  };
2343
2476
  //# sourceMappingURL=index.js.map