@best-bundles/bundle-ui 0.0.42 → 0.0.43
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/i18n.d.ts.map +1 -1
- package/dist/index.js +64 -61
- package/dist/index.js.map +1 -1
- package/dist/liquid/bundle-ui.iife.js +1 -1
- package/dist/liquid/bundle-ui.iife.js.map +1 -1
- package/package.json +1 -1
package/dist/i18n.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEvD,MAAM,MAAM,kBAAkB,GAC1B,sBAAsB,GACtB,gBAAgB,GAChB,iBAAiB,GACjB,oBAAoB,GACpB,eAAe,GACf,wBAAwB,GACxB,2BAA2B,GAC3B,qBAAqB,GACrB,cAAc,GACd,+BAA+B,GAC/B,4BAA4B,GAC5B,6BAA6B,GAC7B,qBAAqB,GACrB,iBAAiB,GACjB,0BAA0B,GAC1B,wBAAwB,GACxB,uBAAuB,GACvB,qBAAqB,GACrB,aAAa,GACb,gBAAgB,GAChB,eAAe,GACf,uBAAuB,GACvB,2BAA2B,GAC3B,sCAAsC,GACtC,mBAAmB,GACnB,uBAAuB,GACvB,qBAAqB,GACrB,0BAA0B,GAC1B,0BAA0B,GAC1B,qBAAqB,GACrB,mBAAmB,GACnB,uBAAuB,GACvB,gCAAgC,GAChC,4BAA4B,GAC5B,6BAA6B,GAC7B,2BAA2B,GAC3B,2BAA2B,GAC3B,gCAAgC,GAChC,sBAAsB,GACtB,sBAAsB,GACtB,oCAAoC,GACpC,sBAAsB,GACtB,sBAAsB,CAAC;AAE3B,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEvD,MAAM,MAAM,kBAAkB,GAC1B,sBAAsB,GACtB,gBAAgB,GAChB,iBAAiB,GACjB,oBAAoB,GACpB,eAAe,GACf,wBAAwB,GACxB,2BAA2B,GAC3B,qBAAqB,GACrB,cAAc,GACd,+BAA+B,GAC/B,4BAA4B,GAC5B,6BAA6B,GAC7B,qBAAqB,GACrB,iBAAiB,GACjB,0BAA0B,GAC1B,wBAAwB,GACxB,uBAAuB,GACvB,qBAAqB,GACrB,aAAa,GACb,gBAAgB,GAChB,eAAe,GACf,uBAAuB,GACvB,2BAA2B,GAC3B,sCAAsC,GACtC,mBAAmB,GACnB,uBAAuB,GACvB,qBAAqB,GACrB,0BAA0B,GAC1B,0BAA0B,GAC1B,qBAAqB,GACrB,mBAAmB,GACnB,uBAAuB,GACvB,gCAAgC,GAChC,4BAA4B,GAC5B,6BAA6B,GAC7B,2BAA2B,GAC3B,2BAA2B,GAC3B,gCAAgC,GAChC,sBAAsB,GACtB,sBAAsB,GACtB,oCAAoC,GACpC,sBAAsB,GACtB,sBAAsB,CAAC;AAE3B,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAC;AAmJ3E,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,cAAc,CAMpF;AAED,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,GAAG,EAAE,kBAAkB,EACvB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EACtC,SAAS,CAAC,EAAE,gBAAgB,GAC3B,MAAM,CAMR;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,UAaxG;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,uGAMnE"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.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_1i4y2_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_1i4y2_14{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;pointer-events:none;z-index:50}._celebrationChip_1i4y2_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_1i4y2_1 2.8s cubic-bezier(.16,1,.3,1) forwards;filter:saturate(1.05)}@keyframes _bbCelebrationPop_1i4y2_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_1i4y2_74{opacity:1}._backdropClosed_1i4y2_78{opacity:0}._panel_1i4y2_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_1i4y2_103{animation:_bbSlideInFromRight_1i4y2_1 var(--bb-drawer-transition-duration, .22s) ease forwards}._panelClosed_1i4y2_107{animation:_bbSlideOutToRight_1i4y2_1 var(--bb-drawer-transition-duration, .22s) ease forwards}@keyframes _bbSlideInFromRight_1i4y2_1{0%{transform:translate(110%)}to{transform:translate(0)}}@keyframes _bbSlideOutToRight_1i4y2_1{0%{transform:translate(0)}to{transform:translate(110%)}}@media(prefers-reduced-motion:reduce){._backdrop_1i4y2_1{transition:none}._celebrationChip_1i4y2_23,._panelOpen_1i4y2_103,._panelClosed_1i4y2_107{animation:none}}._header_1i4y2_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_1i4y2_155{position:relative;min-width:0;display:flex;justify-content:center;align-items:center}._title_1i4y2_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_1i4y2_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_1i4y2_172:hover{background:var(--bb-control-bg-hover, rgba(17, 24, 39, .04))}._searchIconButton_1i4y2_172:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._headerTitleWrap_1i4y2_195{transition:opacity .18s ease,transform .22s ease}._headerSearchWrap_1i4y2_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_1i4y2_211 ._headerTitleWrap_1i4y2_195{opacity:0;transform:translateY(2px);pointer-events:none}._headerSearchOpen_1i4y2_211 ._headerSearchWrap_1i4y2_199{opacity:1;transform:translateY(0);pointer-events:auto}._searchBar_1i4y2_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_1i4y2_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_1i4y2_235::-webkit-search-cancel-button,._searchInput_1i4y2_235::-webkit-search-decoration,._searchInput_1i4y2_235::-webkit-search-results-button,._searchInput_1i4y2_235::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}._searchClearButton_1i4y2_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_1i4y2_256:hover{background:var(--bb-control-bg-hover, rgba(17, 24, 39, .04))}._searchClearButton_1i4y2_256:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._closeButton_1i4y2_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_1i4y2_278:hover{background:var(--bb-control-bg-hover, rgba(17, 24, 39, .04))}._closeButton_1i4y2_278:disabled{opacity:.6;cursor:not-allowed}._closeButton_1i4y2_278:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}@media(prefers-reduced-motion:reduce){._headerTitleWrap_1i4y2_195,._headerSearchWrap_1i4y2_199{transition:none}}._body_1i4y2_312{padding:var(--bb-body-padding, 8px 16px);overflow:auto}._muted_1i4y2_317{color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65));margin:0 0 12px}._error_1i4y2_322{color:var(--bb-error-color, #b91c1c);margin:0 0 12px}._variants_1i4y2_327{margin-top:4px}._variantList_1i4y2_331{list-style:none;padding:0;margin:0;display:grid;gap:10px}._variantRow_1i4y2_339{display:grid;grid-template-columns:1fr auto;gap:0px;align-items:stretch;padding:5px}._variantRowSoldOut_1i4y2_347{opacity:.65}._variantLeft_1i4y2_351{min-width:0;display:flex;gap:12px;align-items:center}._addToBundleButton_1i4y2_358{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_1i4y2_358:hover{background:var(--bb-cta-bg-hover, #1d4ed8)}._addToBundleButton_1i4y2_358:disabled{opacity:.6;cursor:not-allowed}._addToBundleButton_1i4y2_358:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._soldOutContainer_1i4y2_386{display:flex;align-items:center;justify-content:center;height:100%;padding:0 16px}._stockLimitContainer_1i4y2_394{display:flex;align-items:center;justify-content:center;height:100%;max-width:120px;padding:0 12px}._soldOut_1i4y2_386{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_1i4y2_412{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_1i4y2_421{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_1i4y2_431{width:100%;height:100%;object-fit:cover;display:block}._variantThumbFallback_1i4y2_438{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--bb-text-color, #111827)}._variantInfo_1i4y2_448{min-width:0}._variantName_1i4y2_452{font-size:14px;font-weight:600;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._variantMeta_1i4y2_461{font-size:12px;color:var(--bb-muted-color, rgba(17, 24, 39, .6));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._variantPriceRow_1i4y2_469{display:flex;align-items:baseline;gap:8px;margin-top:4px}._variantCompareAt_1i4y2_476{font-size:12px;color:var(--bb-muted-color, rgba(17, 24, 39, .6));text-decoration:line-through}._variantPrice_1i4y2_469{font-size:13px;font-weight:800}._qtyControls_1i4y2_487{display:inline-flex;align-items:center;gap:6px}._qtyControlsWrap_1i4y2_493{display:grid;justify-items:center;gap:4px}._qtyButton_1i4y2_499{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_1i4y2_499:hover{background:var(--bb-control-bg-hover, rgba(17, 24, 39, .04))}._qtyButton_1i4y2_499:disabled{opacity:.6;cursor:not-allowed}._qtyButton_1i4y2_499:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._qtyValue_1i4y2_525{min-width:18px;text-align:center;font-variant-numeric:tabular-nums;font-weight:700}._footer_1i4y2_532{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_1i4y2_540{font-size:10px;color:var(rgba(17, 24, 39, .6));text-align:center;margin-top:10px}._poweredBy_1i4y2_540 a{color:inherit;text-decoration:none}._boxSummaryWindow_1i4y2_552{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_1i4y2_552::-webkit-scrollbar{display:none}._boxSummaryRow_1i4y2_570{--bb-box-gap: 10px;display:flex;align-items:flex-start;gap:var(--bb-box-gap);width:100%}._boxSlot_1i4y2_578{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_1i4y2_587{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_1i4y2_599{cursor:pointer}._boxItemClickable_1i4y2_599:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._boxThresholdLabel_1i4y2_608{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_1i4y2_619{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_1i4y2_625{border:1px solid var(--bb-border-color, rgba(17, 24, 39, .08));background:var(--bb-surface-bg, #ffffff);overflow:hidden}._boxItemThreshold_1i4y2_631{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_1i4y2_639{font-size:12px;font-weight:800;text-align:center;line-height:1.1;padding:6px}._boxItemPlus_1i4y2_647{font-size:22px;font-weight:700;opacity:.5;line-height:1}._boxItemImage_1i4y2_654{width:100%;height:100%;object-fit:cover;display:block}._boxItemFallback_1i4y2_661{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_1i4y2_672{display:flex;gap:8px;width:100%;transition:gap .3s cubic-bezier(.4,0,.2,1)}._ctaButtonGroupAnimating_1i4y2_679{gap:0}._cta_1i4y2_672{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_1i4y2_695{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_1i4y2_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;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_1i4y2_725{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_1i4y2_725>span{opacity:0}._ctaDualRight_1i4y2_738{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_1i4y2_754{border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:0;opacity:.6}._ctaDualRightAnimating_1i4y2_754>span{opacity:0}._ctaTotals_1i4y2_765{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-variant-numeric:tabular-nums}._ctaDiscountBadge_1i4y2_773{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_1i4y2_787{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_1i4y2_800{max-height:40px;opacity:1;transform:translateY(0);margin-bottom:8px}._ctaTotalsStrike_1i4y2_807{opacity:.85;text-decoration:line-through;font-weight:700;color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65))}._ctaTotalsPrice_1i4y2_814{font-weight:900;color:var(--bb-text-color, #111827)}@media(prefers-reduced-motion:reduce){._ctaTotalsWrap_1i4y2_787{transition:none}}._cta_1i4y2_672:hover{background:var(--bb-cta-bg-hover, #1d4ed8)}._cta_1i4y2_672:disabled{opacity:.6;cursor:not-allowed}._cta_1i4y2_672:focus-visible{outline:2px solid var(--bb-cta-focus-ring, var(--bb-text-color, #111827));outline-offset:2px}._ctaSecondary_1i4y2_695:hover{background:var(--bb-cta-bg, #2563eb);color:var(--bb-cta-text, #ffffff)}._ctaSecondary_1i4y2_695:disabled{opacity:.6;cursor:not-allowed}._ctaSecondary_1i4y2_695:focus-visible{outline:2px solid var(--bb-cta-focus-ring, var(--bb-text-color, #111827));outline-offset:2px}._ctaDualLeft_1i4y2_707:hover{background:var(--bb-cta-bg, #2563eb);color:var(--bb-cta-text, #ffffff)}._ctaDualLeft_1i4y2_707:disabled{opacity:.6;cursor:not-allowed}._ctaDualLeft_1i4y2_707:focus-visible{outline:2px solid var(--bb-cta-focus-ring, var(--bb-text-color, #111827));outline-offset:2px}._ctaDualRight_1i4y2_738:hover{background:var(--bb-cta-bg-hover, #1d4ed8)}._ctaDualRight_1i4y2_738:disabled{opacity:.6;cursor:not-allowed}._ctaDualRight_1i4y2_738:focus-visible{outline:2px solid var(--bb-cta-focus-ring, var(--bb-text-color, #111827));outline-offset:2px}._helperText_1i4y2_883{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_1i4y2_1{padding:0;justify-content:stretch}._panel_1i4y2_82{width:100%;height:100%;border-radius:0}}._panel_96rr4_2 button,._panel_96rr4_2 input,._panel_96rr4_2 [role=button]{box-sizing:border-box;margin:0}._panel_96rr4_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_96rr4_20{text-align:start}._title_96rr4_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_96rr4_32{font-size:13px;color:var(--bb-muted-color, rgba(15, 23, 42, .6))}._error_96rr4_37{font-size:13px;color:#b91c1c;font-weight:600}._inactive_96rr4_43{font-size:13px;color:#b45309;font-weight:600}._section_96rr4_49{display:grid;gap:6px}._sectionTitle_96rr4_54{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_96rr4_63{display:flex;justify-content:center;gap:6px}._rulesList_96rr4_69{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;list-style:none;margin:0;padding:0}._ruleItem_96rr4_80{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_96rr4_92{font-weight:600;font-size:13px}._ruleDiscount_96rr4_97{font-weight:700;font-size:13px}._ruleLabel_96rr4_102{font-size:12px;opacity:.7}._rulesVisual_96rr4_107{display:flex;flex-direction:column;gap:4px;width:100%}._rulesLabelsRow_96rr4_114,._rulesLinesRow_96rr4_121{display:flex;flex-direction:row;gap:4px;width:100%}._rulesLineLabelCell_96rr4_128{flex:1 1 0;display:flex;align-items:flex-end;justify-content:center}._rulesLineLabelCell_96rr4_128:empty{display:flex!important}._rulesLineLabel_96rr4_128{font-size:11px;font-weight:600;color:var(--bb-muted-strong-color, rgba(17, 24, 39, .65))}._rulesLineLabelSpacer_96rr4_145{height:1em}._rulesLine_96rr4_121{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_96rr4_121:empty{display:block!important}._rulesLineEmpty_96rr4_162{background-color:var(--bb-tier-background, rgba(148, 163, 184, .22))}._rulesLineFilled_96rr4_166{background-color:var(--bb-tier-border, rgba(37, 99, 235, .8))}._variants_96rr4_170{display:grid;gap:12px;max-height:400px;overflow-y:auto;padding-right:6px}._variantList_96rr4_178{list-style:none;padding:0;margin:0;display:grid;gap:10px}._variantRow_96rr4_186{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_96rr4_198{cursor:pointer}._variantRowSelected_96rr4_202{border-color:#2563eb40;box-shadow:0 0 0 1px #2563eb14}._variantRowSoldOut_96rr4_207{opacity:.65}._variantMedia_96rr4_211{display:grid;align-items:start;justify-items:center;width:76px;aspect-ratio:1 / 1}._variantContent_96rr4_219{display:flex;flex-direction:column;justify-content:space-between;gap:4px;height:100%}._variantHeader_96rr4_227{display:flex;flex-direction:column;gap:4px}._variantTitle_96rr4_233{font-weight:700;font-size:14px;color:var(--bb-text-color, #111827)}._variantDetailsRow_96rr4_239{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:6px;align-items:start}._variantImage_96rr4_247{width:100%;height:100%;border-radius:var(--bb-border-radius, 12px);object-fit:cover;background:#94a3b833}._variantImageFallback_96rr4_255{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_96rr4_268{font-size:12px;color:var(--bb-muted-color, rgba(15, 23, 42, .6))}._variantPrice_96rr4_273{font-size:13px;font-weight:600;color:#0f172a}._variantFooterRow_96rr4_279{display:flex;align-items:center;justify-content:space-between;width:100%}._variantActions_96rr4_286{display:grid;align-items:end;justify-items:end}._qtyActions_96rr4_292{display:inline-flex;align-items:center;gap:6px}._qtyActionsWrap_96rr4_298{display:grid;justify-items:end;gap:4px}._variantUnavailable_96rr4_304{display:none}._qtyControls_96rr4_308{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_96rr4_318{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_96rr4_318:disabled{cursor:not-allowed;opacity:.4}._qtyButton_96rr4_318:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._qtyValue_96rr4_342{min-width:22px;text-align:center;font-weight:600;font-size:13px}._soldOut_96rr4_349{color:var(--bb-muted-color, rgba(17, 24, 39));font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}._stockLimitNotice_96rr4_357{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_96rr4_366{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_96rr4_381{cursor:pointer}._qtyChipValue_96rr4_385{min-width:14px;padding-left:3px;text-align:center}._qtyChipPlus_96rr4_391{margin-bottom:-3px;font-weight:500}._qtyChipClear_96rr4_396{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_96rr4_366:hover ._qtyChipClear_96rr4_396{background:#0f172a;color:#fff}._qtyChipClear_96rr4_396:disabled{cursor:not-allowed;opacity:.45}._qtyChip_96rr4_366:hover ._qtyChipClear_96rr4_396:disabled{background:#fff;color:#0f172a}._qtyTrash_96rr4_425{width:22px;height:22px;border:0;background:transparent;color:#0f172a;display:grid;place-items:center;cursor:pointer;padding:0}._footer_96rr4_437{display:grid;padding-top:6px}._boxSummaryWindow_96rr4_442{margin-bottom:6px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding-bottom:6px;scrollbar-width:none;-ms-overflow-style:none}._boxSummaryWindow_96rr4_442::-webkit-scrollbar{display:none}._boxSummaryRow_96rr4_456{--bb-box-gap: 10px;display:flex;align-items:flex-start;gap:var(--bb-box-gap);width:100%}._boxSlot_96rr4_464{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_96rr4_473{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_96rr4_473:before{content:"";display:block;padding-bottom:100%}._boxItemFilled_96rr4_490{border:1px solid var(--bb-border-color, rgba(17, 24, 39, .08));background:var(--bb-surface-bg, #ffffff);overflow:hidden}._boxItemPlaceholder_96rr4_496{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_96rr4_502{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_96rr4_510{cursor:pointer}._boxItemClickable_96rr4_510:focus-visible{outline:2px solid var(--bb-focus-ring, #2563eb);outline-offset:2px}._boxItemImage_96rr4_519{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_96rr4_530{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_96rr4_543{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_96rr4_555{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_96rr4_568{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_96rr4_579{max-height:0;padding-bottom:12px;opacity:0;overflow:hidden;transition:max-height .26s ease,opacity .2s ease}._totalsRevealOpen_96rr4_587{max-height:80px;opacity:1}._ctaTotalsWrap_96rr4_592{opacity:0;transition:opacity .18s ease .12s}._ctaTotalsWrapVisible_96rr4_597{opacity:1}._ctaTotals_96rr4_592{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:14px;background:#0f172a0a;font-size:13px;font-weight:600}._ctaDiscountBadge_96rr4_612{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_96rr4_623{text-decoration:line-through;color:#64748bcc;margin-right:6px}._ctaTotalsPrice_96rr4_629{font-weight:700;color:#0f172a}._cta_96rr4_592{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_96rr4_592:hover{transform:translateY(-1px);background:var(--bb-cta-bg-hover, #0f172a)}._cta_96rr4_592:disabled{cursor:not-allowed;transform:none;box-shadow:none;opacity:.6}._ctaButtonGroup_96rr4_661{display:grid;grid-template-columns:1fr 1fr;gap:10px}._ctaDualLeft_96rr4_667,._ctaDualRight_96rr4_668{border:0;border-radius:var(--bb-border-radius, 12px);padding:12px 16px;min-height:44px;font-weight:700;font-size:13px;cursor:pointer}._ctaDualLeft_96rr4_667{background:#fff;color:#0f172a;border:1px solid rgba(15,23,42,.15)}._ctaDualRight_96rr4_668{background:var(--bb-cta-bg, #111827);color:var(--bb-cta-text, #ffffff)}._ctaDualLeft_96rr4_667:disabled,._ctaDualRight_96rr4_668:disabled{cursor:not-allowed;opacity:.6}._poweredBy_96rr4_695{padding-top:12px;font-size:11px;color:#64748bcc;text-align:center}._poweredBy_96rr4_695 a{color:inherit;text-decoration:none;font-weight:700}@media(max-width:640px){._panel_96rr4_2{padding:16px}._variantRow_96rr4_186{grid-template-columns:64px minmax(0,1fr);gap:10px}._qtyControls_96rr4_308{justify-self:start}._variantDetailsRow_96rr4_239{grid-template-columns:1fr}}')),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
import { jsx as l, jsxs as R, Fragment as kt } from "react/jsx-runtime";
|
|
3
|
-
import vt, { useCallback as J, useState as j, useRef as U, useEffect as O, useMemo as L, createContext as Qt, useContext as Gt, forwardRef as
|
|
3
|
+
import vt, { useCallback as J, useState as j, useRef as U, useEffect as O, useMemo as L, createContext as Qt, useContext as Gt, forwardRef as zt, createElement as Tt } from "react";
|
|
4
4
|
const _t = {
|
|
5
5
|
bundleId: "_bundle_id",
|
|
6
6
|
bundleConfig: "_bundle_config",
|
|
@@ -157,6 +157,7 @@ const ft = {
|
|
|
157
157
|
"bundle.cta.checkout": "Paiement",
|
|
158
158
|
"bundle.cta.add_to_bundle": "Ajouter",
|
|
159
159
|
"bundle.cta.add_to_basket": "Ajouter au panier",
|
|
160
|
+
"bundle.cta.add_more": "Ajoutez encore {{count}} {{productWord}}",
|
|
160
161
|
"bundle.powered_by": "propulse par",
|
|
161
162
|
"bundle.button.default": "Creer un bundle"
|
|
162
163
|
}, Jt = {
|
|
@@ -184,6 +185,7 @@ const ft = {
|
|
|
184
185
|
"bundle.cta.checkout": "Zur Kasse",
|
|
185
186
|
"bundle.cta.add_to_bundle": "Hinzufügen",
|
|
186
187
|
"bundle.cta.add_to_basket": "In den Warenkorb",
|
|
188
|
+
"bundle.cta.add_more": "Fuge noch {{count}} {{productWord}} hinzu",
|
|
187
189
|
"bundle.powered_by": "powered by",
|
|
188
190
|
"bundle.button.default": "Bundle erstellen"
|
|
189
191
|
}, en = {
|
|
@@ -211,6 +213,7 @@ const ft = {
|
|
|
211
213
|
"bundle.cta.checkout": "Pagar",
|
|
212
214
|
"bundle.cta.add_to_bundle": "Agregar",
|
|
213
215
|
"bundle.cta.add_to_basket": "Agregar al carrito",
|
|
216
|
+
"bundle.cta.add_more": "Agrega {{count}} {{productWord}} mas",
|
|
214
217
|
"bundle.powered_by": "impulsado por",
|
|
215
218
|
"bundle.button.default": "Crear bundle"
|
|
216
219
|
}, tn = {
|
|
@@ -352,9 +355,9 @@ function wi(n) {
|
|
|
352
355
|
locale: D,
|
|
353
356
|
messages: de,
|
|
354
357
|
children: F
|
|
355
|
-
} = n, te = nn(D),
|
|
358
|
+
} = n, te = nn(D), z = J((o, s) => rn(te, o, s, de), [te, de]), K = Qe(i), g = le ?? `${e}/api/public/bundle-analytics`, H = cn($, r), [I, he] = j(!1), [ke, Te] = j(!1), [ye, ae] = j(null), [X, ie] = j(!1), [me, Re] = j({}), [ne, Ce] = j(K), [be, Ve] = j(() => r ? { [K]: r } : {}), [ge, Le] = j(H), [Ie, Ae] = j(
|
|
356
359
|
!H && !r ? K : null
|
|
357
|
-
), [nt,
|
|
360
|
+
), [nt, We] = j(null), [ze, Me] = j(null), [Ye, Ne] = j(
|
|
358
361
|
() => ({ selections: {}, order: [] })
|
|
359
362
|
), De = U(null), ve = U(null), f = U(null), p = U(0), x = U(ne), T = U(be), M = U(ge), E = U(null), V = h ?? Kt, Z = u ?? Yt, ee = B ?? Xt, Q = J(async () => {
|
|
360
363
|
if (typeof a.getLineQuantitiesByMerchandiseId != "function") return null;
|
|
@@ -427,14 +430,14 @@ function wi(n) {
|
|
|
427
430
|
if (!b[o]) return b;
|
|
428
431
|
const w = { ...b };
|
|
429
432
|
return delete w[o], w;
|
|
430
|
-
}), !$ && x.current === o && (ae(s.ok ?
|
|
433
|
+
}), !$ && x.current === o && (ae(s.ok ? z("bundle.provider.inactive_error") : s.error || z("bundle.provider.load_error")), he(!1), typeof window < "u" && window.location.hash.toLowerCase().startsWith(mt) && window.history.replaceState(null, "", window.location.pathname + window.location.search)), !1) : (Ve((b) => ({
|
|
431
434
|
...b,
|
|
432
435
|
[o]: {
|
|
433
436
|
currencyCode: s.currencyCode ?? null,
|
|
434
437
|
config: s.config,
|
|
435
438
|
eligibleVariants: s.eligibleVariants ?? []
|
|
436
439
|
}
|
|
437
|
-
})), x.current === o && ae(null), !0), [$,
|
|
440
|
+
})), x.current === o && ae(null), !0), [$, z]), Fe = J((o, s) => {
|
|
438
441
|
var y;
|
|
439
442
|
const b = Qe(o);
|
|
440
443
|
(y = ve.current) == null || y.abort();
|
|
@@ -449,15 +452,15 @@ function wi(n) {
|
|
|
449
452
|
w.signal.aborted || rt(b, C);
|
|
450
453
|
}).catch((C) => {
|
|
451
454
|
if (w.signal.aborted) return;
|
|
452
|
-
const k = C instanceof Error ? C.message :
|
|
455
|
+
const k = C instanceof Error ? C.message : z("bundle.provider.load_error");
|
|
453
456
|
x.current === b && ae(k);
|
|
454
457
|
}).finally(() => {
|
|
455
458
|
w.signal.aborted || Ae((C) => C === b ? null : C);
|
|
456
459
|
});
|
|
457
|
-
}, [e, rt, V, t,
|
|
460
|
+
}, [e, rt, V, t, z]), re = J((o) => {
|
|
458
461
|
const s = Qe(o), b = T.current[s];
|
|
459
462
|
Ce(s), ae(null), Fe(s, { blocking: !b });
|
|
460
|
-
}, [Fe]),
|
|
463
|
+
}, [Fe]), W = J((o, s = "api") => {
|
|
461
464
|
var C, k;
|
|
462
465
|
const b = Qe(o), w = T.current[b];
|
|
463
466
|
if (H && M.current && !w) {
|
|
@@ -472,7 +475,7 @@ function wi(n) {
|
|
|
472
475
|
ae(null), Pe(), Fe(b, { blocking: !1 });
|
|
473
476
|
return;
|
|
474
477
|
}
|
|
475
|
-
|
|
478
|
+
We(b), (k = f.current) == null || k.abort();
|
|
476
479
|
const y = new AbortController();
|
|
477
480
|
f.current = y, ee({
|
|
478
481
|
apiBaseUrl: e,
|
|
@@ -481,14 +484,14 @@ function wi(n) {
|
|
|
481
484
|
signal: y.signal
|
|
482
485
|
}).then((P) => {
|
|
483
486
|
if (!y.signal.aborted) {
|
|
484
|
-
if (
|
|
487
|
+
if (We((G) => G === b ? null : G), !P.ok || P.isActive !== !0) {
|
|
485
488
|
s === "hash" && typeof window < "u" && Ot(window.location.hash) === b && window.history.replaceState(null, "", window.location.pathname + window.location.search);
|
|
486
489
|
return;
|
|
487
490
|
}
|
|
488
491
|
ae(null), Ce(b), Pe(), Fe(b, { blocking: !0 });
|
|
489
492
|
}
|
|
490
493
|
}).catch(() => {
|
|
491
|
-
y.signal.aborted ||
|
|
494
|
+
y.signal.aborted || We((P) => P === b ? null : P);
|
|
492
495
|
});
|
|
493
496
|
}, [
|
|
494
497
|
$,
|
|
@@ -499,18 +502,18 @@ function wi(n) {
|
|
|
499
502
|
ee,
|
|
500
503
|
H
|
|
501
504
|
]), at = J(() => {
|
|
502
|
-
A(),
|
|
503
|
-
}, [
|
|
505
|
+
A(), W(x.current, "api");
|
|
506
|
+
}, [W, A]);
|
|
504
507
|
O(() => {
|
|
505
|
-
E.current =
|
|
506
|
-
}, [
|
|
508
|
+
E.current = W;
|
|
509
|
+
}, [W]);
|
|
507
510
|
const Oe = J(() => {
|
|
508
511
|
if (I) {
|
|
509
512
|
Se();
|
|
510
513
|
return;
|
|
511
514
|
}
|
|
512
|
-
A(),
|
|
513
|
-
}, [Se, I,
|
|
515
|
+
A(), W(x.current, "api");
|
|
516
|
+
}, [Se, I, W, A]);
|
|
514
517
|
O(() => {
|
|
515
518
|
Ce(Qe(i));
|
|
516
519
|
}, [i]), O(() => {
|
|
@@ -537,8 +540,8 @@ function wi(n) {
|
|
|
537
540
|
o.signal.aborted || Le(!1);
|
|
538
541
|
}), () => o.abort();
|
|
539
542
|
}, [Z, e, r, K, Fe, t, H]), O(() => {
|
|
540
|
-
ge || !
|
|
541
|
-
}, [ge,
|
|
543
|
+
ge || !ze || (W(ze.handle, ze.source), Me(null));
|
|
544
|
+
}, [ge, W, ze]), O(() => {
|
|
542
545
|
if (typeof window > "u") return;
|
|
543
546
|
const o = () => {
|
|
544
547
|
var b;
|
|
@@ -737,7 +740,7 @@ function wi(n) {
|
|
|
737
740
|
} catch (S) {
|
|
738
741
|
const se = S instanceof Error ? S.message : "", tt = /stock|sold out|inventory|insufficient|available|422/i.test(se);
|
|
739
742
|
ae(
|
|
740
|
-
|
|
743
|
+
z(tt ? "bundle.provider.stock_error" : "bundle.provider.add_error")
|
|
741
744
|
), A();
|
|
742
745
|
} finally {
|
|
743
746
|
Te(!1);
|
|
@@ -758,7 +761,7 @@ function wi(n) {
|
|
|
758
761
|
A,
|
|
759
762
|
Ee,
|
|
760
763
|
t,
|
|
761
|
-
|
|
764
|
+
z
|
|
762
765
|
]), c = J(async () => {
|
|
763
766
|
await Ze({
|
|
764
767
|
onComplete: () => {
|
|
@@ -777,7 +780,7 @@ function wi(n) {
|
|
|
777
780
|
}, [a, Ze]), v = L(() => ({
|
|
778
781
|
isOpen: I,
|
|
779
782
|
open: at,
|
|
780
|
-
openForHandle:
|
|
783
|
+
openForHandle: W,
|
|
781
784
|
close: Se,
|
|
782
785
|
toggle: Oe,
|
|
783
786
|
currentHandle: ne,
|
|
@@ -801,7 +804,7 @@ function wi(n) {
|
|
|
801
804
|
submit: c,
|
|
802
805
|
submitAndCheckout: d,
|
|
803
806
|
locale: te,
|
|
804
|
-
t:
|
|
807
|
+
t: z
|
|
805
808
|
}), [
|
|
806
809
|
qe,
|
|
807
810
|
Xe,
|
|
@@ -816,7 +819,7 @@ function wi(n) {
|
|
|
816
819
|
xe,
|
|
817
820
|
Be,
|
|
818
821
|
at,
|
|
819
|
-
|
|
822
|
+
W,
|
|
820
823
|
ht,
|
|
821
824
|
Ee,
|
|
822
825
|
q,
|
|
@@ -829,7 +832,7 @@ function wi(n) {
|
|
|
829
832
|
ke,
|
|
830
833
|
Oe,
|
|
831
834
|
te,
|
|
832
|
-
|
|
835
|
+
z
|
|
833
836
|
]);
|
|
834
837
|
return /* @__PURE__ */ l(Ut.Provider, { value: v, children: F });
|
|
835
838
|
}
|
|
@@ -1050,7 +1053,7 @@ class yn {
|
|
|
1050
1053
|
const { canvas: r, context: h, particlesGenerated: u, lastNumberOfPieces: B } = this, { run: le, recycle: $, numberOfPieces: D, debug: de, tweenFunction: F, tweenDuration: te } = this.getOptions();
|
|
1051
1054
|
if (!le)
|
|
1052
1055
|
return !1;
|
|
1053
|
-
const
|
|
1056
|
+
const z = this.particles.length, K = $ ? z : u;
|
|
1054
1057
|
if (K < D) {
|
|
1055
1058
|
B !== D && (this.tweenProgress = 0, this.tweenFrom = K, this.lastNumberOfPieces = D), this.tweenProgress = Math.min(te, Math.max(0, this.tweenProgress + i));
|
|
1056
1059
|
const g = F(this.tweenProgress, this.tweenFrom, D, te), H = Math.round(g - K);
|
|
@@ -1058,12 +1061,12 @@ class yn {
|
|
|
1058
1061
|
this.particles.push(this.getParticle());
|
|
1059
1062
|
this.particlesGenerated += H;
|
|
1060
1063
|
}
|
|
1061
|
-
de && (h.font = "12px sans-serif", h.fillStyle = "#333", h.textAlign = "right", h.fillText(`Particles: ${
|
|
1064
|
+
de && (h.font = "12px sans-serif", h.fillStyle = "#333", h.textAlign = "right", h.fillText(`Particles: ${z}`, r.width - 10, r.height - 20));
|
|
1062
1065
|
for (let g = this.particles.length - 1; g >= 0; g--) {
|
|
1063
1066
|
const H = this.particles[g];
|
|
1064
1067
|
H.update(i), (H.y > r.height || H.y < -100 || H.x > r.width + 100 || H.x < -100) && ($ && K <= D ? this.particles[g] = this.getParticle() : this.removeParticleAt(g));
|
|
1065
1068
|
}
|
|
1066
|
-
return
|
|
1069
|
+
return z > 0 || K < D;
|
|
1067
1070
|
}, this.canvas = e;
|
|
1068
1071
|
const a = this.canvas.getContext("2d");
|
|
1069
1072
|
if (!a)
|
|
@@ -1239,7 +1242,7 @@ var Nn = {
|
|
|
1239
1242
|
* This source code is licensed under the ISC license.
|
|
1240
1243
|
* See the LICENSE file in the root directory of this source tree.
|
|
1241
1244
|
*/
|
|
1242
|
-
const Sn =
|
|
1245
|
+
const Sn = zt(
|
|
1243
1246
|
({
|
|
1244
1247
|
color: n = "currentColor",
|
|
1245
1248
|
size: e = 24,
|
|
@@ -1275,7 +1278,7 @@ const Sn = Wt(
|
|
|
1275
1278
|
* See the LICENSE file in the root directory of this source tree.
|
|
1276
1279
|
*/
|
|
1277
1280
|
const Mt = (n, e) => {
|
|
1278
|
-
const t =
|
|
1281
|
+
const t = zt(
|
|
1279
1282
|
({ className: a, ...i }, r) => Tt(Sn, {
|
|
1280
1283
|
ref: r,
|
|
1281
1284
|
iconNode: e,
|
|
@@ -1321,7 +1324,7 @@ const Rn = [
|
|
|
1321
1324
|
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
|
|
1322
1325
|
["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }],
|
|
1323
1326
|
["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }]
|
|
1324
|
-
], Ln = Mt("trash-2", Rn), Mn = "_backdrop_1i4y2_1", Pn = "_celebrationOverlay_1i4y2_14", Fn = "_celebrationChip_1i4y2_23", On = "_backdropOpen_1i4y2_74", An = "_backdropClosed_1i4y2_78", Dn = "_panel_1i4y2_82", En = "_panelOpen_1i4y2_103", qn = "_panelClosed_1i4y2_107", $n = "_header_1i4y2_146", Vn = "_headerCenter_1i4y2_155",
|
|
1327
|
+
], Ln = Mt("trash-2", Rn), Mn = "_backdrop_1i4y2_1", Pn = "_celebrationOverlay_1i4y2_14", Fn = "_celebrationChip_1i4y2_23", On = "_backdropOpen_1i4y2_74", An = "_backdropClosed_1i4y2_78", Dn = "_panel_1i4y2_82", En = "_panelOpen_1i4y2_103", qn = "_panelClosed_1i4y2_107", $n = "_header_1i4y2_146", Vn = "_headerCenter_1i4y2_155", Wn = "_title_1i4y2_163", zn = "_searchIconButton_1i4y2_172", jn = "_headerTitleWrap_1i4y2_195", Un = "_headerSearchWrap_1i4y2_199", Hn = "_headerSearchOpen_1i4y2_211", Qn = "_searchBar_1i4y2_223", Gn = "_searchInput_1i4y2_235", Yn = "_searchClearButton_1i4y2_256", Kn = "_closeButton_1i4y2_278", Xn = "_body_1i4y2_312", Zn = "_muted_1i4y2_317", Jn = "_error_1i4y2_322", er = "_variants_1i4y2_327", tr = "_variantList_1i4y2_331", nr = "_variantRow_1i4y2_339", rr = "_variantRowSoldOut_1i4y2_347", ar = "_variantLeft_1i4y2_351", ir = "_addToBundleButton_1i4y2_358", or = "_soldOutContainer_1i4y2_386", sr = "_stockLimitContainer_1i4y2_394", lr = "_soldOut_1i4y2_386", cr = "_stockLimitNotice_1i4y2_412", ur = "_variantThumb_1i4y2_421", dr = "_variantThumbImg_1i4y2_431", hr = "_variantThumbFallback_1i4y2_438", mr = "_variantInfo_1i4y2_448", br = "_variantName_1i4y2_452", fr = "_variantMeta_1i4y2_461", _r = "_variantPriceRow_1i4y2_469", pr = "_variantCompareAt_1i4y2_476", yr = "_variantPrice_1i4y2_469", gr = "_qtyControls_1i4y2_487", vr = "_qtyControlsWrap_1i4y2_493", wr = "_qtyButton_1i4y2_499", xr = "_qtyValue_1i4y2_525", Cr = "_footer_1i4y2_532", Ir = "_poweredBy_1i4y2_540", Nr = "_boxSummaryWindow_1i4y2_552", Sr = "_boxSummaryRow_1i4y2_570", Br = "_boxSlot_1i4y2_578", kr = "_boxItem_1i4y2_587", Tr = "_boxItemClickable_1i4y2_599", Rr = "_boxThresholdLabel_1i4y2_608", Lr = "_boxItemPlaceholder_1i4y2_619", Mr = "_boxItemFilled_1i4y2_625", Pr = "_boxItemThreshold_1i4y2_631", Fr = "_boxItemDiscountText_1i4y2_639", Or = "_boxItemPlus_1i4y2_647", Ar = "_boxItemImage_1i4y2_654", Dr = "_boxItemFallback_1i4y2_661", Er = "_ctaButtonGroup_1i4y2_672", qr = "_ctaButtonGroupAnimating_1i4y2_679", $r = "_cta_1i4y2_672", Vr = "_ctaDualLeft_1i4y2_707", Wr = "_ctaDualLeftAnimating_1i4y2_725", zr = "_ctaDualRight_1i4y2_738", jr = "_ctaDualRightAnimating_1i4y2_754", Ur = "_ctaTotals_1i4y2_765", Hr = "_ctaDiscountBadge_1i4y2_773", Qr = "_ctaTotalsWrap_1i4y2_787", Gr = "_ctaTotalsWrapVisible_1i4y2_800", Yr = "_ctaTotalsStrike_1i4y2_807", Kr = "_ctaTotalsPrice_1i4y2_814", m = {
|
|
1325
1328
|
backdrop: Mn,
|
|
1326
1329
|
celebrationOverlay: Pn,
|
|
1327
1330
|
celebrationChip: Fn,
|
|
@@ -1332,8 +1335,8 @@ const Rn = [
|
|
|
1332
1335
|
panelClosed: qn,
|
|
1333
1336
|
header: $n,
|
|
1334
1337
|
headerCenter: Vn,
|
|
1335
|
-
title:
|
|
1336
|
-
searchIconButton:
|
|
1338
|
+
title: Wn,
|
|
1339
|
+
searchIconButton: zn,
|
|
1337
1340
|
headerTitleWrap: jn,
|
|
1338
1341
|
headerSearchWrap: Un,
|
|
1339
1342
|
headerSearchOpen: Hn,
|
|
@@ -1386,8 +1389,8 @@ const Rn = [
|
|
|
1386
1389
|
ctaButtonGroupAnimating: qr,
|
|
1387
1390
|
cta: $r,
|
|
1388
1391
|
ctaDualLeft: Vr,
|
|
1389
|
-
ctaDualLeftAnimating:
|
|
1390
|
-
ctaDualRight:
|
|
1392
|
+
ctaDualLeftAnimating: Wr,
|
|
1393
|
+
ctaDualRight: zr,
|
|
1391
1394
|
ctaDualRightAnimating: jr,
|
|
1392
1395
|
ctaTotals: Ur,
|
|
1393
1396
|
ctaDiscountBadge: Hr,
|
|
@@ -1413,12 +1416,12 @@ function Ii(n) {
|
|
|
1413
1416
|
setQuantity: de,
|
|
1414
1417
|
bundleSize: F,
|
|
1415
1418
|
minRequired: te,
|
|
1416
|
-
canSubmit:
|
|
1419
|
+
canSubmit: z,
|
|
1417
1420
|
submit: K,
|
|
1418
1421
|
submitAndCheckout: g,
|
|
1419
1422
|
locale: H,
|
|
1420
1423
|
t: I
|
|
1421
|
-
} = wt(), [he, ke] = j(!1), [Te, ye] = j(""), ae = U(null), X = U(null), ie = U(null), [me, Re] = j(() => typeof window > "u" ? { width: 0, height: 0 } : { width: window.innerWidth, height: window.innerHeight }), [ne, Ce] = j(0), [be, Ve] = j(null), [ge, Le] = j(!1), Ie = U(null), Ae = U(F), nt = 7e3, [
|
|
1424
|
+
} = wt(), [he, ke] = j(!1), [Te, ye] = j(""), ae = U(null), X = U(null), ie = U(null), [me, Re] = j(() => typeof window > "u" ? { width: 0, height: 0 } : { width: window.innerWidth, height: window.innerHeight }), [ne, Ce] = j(0), [be, Ve] = j(null), [ge, Le] = j(!1), Ie = U(null), Ae = U(F), nt = 7e3, [We, ze] = j(0), [Me, Ye] = j(null), [Ne, De] = j(!1), ve = U(null), f = 2800, p = [
|
|
1422
1425
|
"#2563eb",
|
|
1423
1426
|
"#3b82f6",
|
|
1424
1427
|
"#60a5fa",
|
|
@@ -1466,7 +1469,7 @@ function Ii(n) {
|
|
|
1466
1469
|
return d.every((y) => b.includes(y));
|
|
1467
1470
|
};
|
|
1468
1471
|
return rt.filter(v);
|
|
1469
|
-
}, [Te, rt]), re = L(() => [...(u == null ? void 0 : u.rules) ?? []].sort((c, d) => c.minBundleSize - d.minBundleSize), [u == null ? void 0 : u.rules]),
|
|
1472
|
+
}, [Te, rt]), re = L(() => [...(u == null ? void 0 : u.rules) ?? []].sort((c, d) => c.minBundleSize - d.minBundleSize), [u == null ? void 0 : u.rules]), W = L(() => Math.max(0, te - F), [F, te]), at = L(() => {
|
|
1470
1473
|
let c = null;
|
|
1471
1474
|
for (const d of re)
|
|
1472
1475
|
F >= d.minBundleSize && (c = d);
|
|
@@ -1504,14 +1507,14 @@ function Ii(n) {
|
|
|
1504
1507
|
});
|
|
1505
1508
|
}
|
|
1506
1509
|
return c;
|
|
1507
|
-
}, [re]), He = L(() => Math.max(xe || te, it.length), [it.length, xe, te]), [Be, ut] = j(!0), Ke = U(
|
|
1510
|
+
}, [re]), He = L(() => Math.max(xe || te, it.length), [it.length, xe, te]), [Be, ut] = j(!0), Ke = U(W);
|
|
1508
1511
|
O(() => {
|
|
1509
1512
|
if (((u == null ? void 0 : u.ctaButtonMode) || "add_to_cart") === "add_to_cart_checkout") {
|
|
1510
1513
|
const d = Ke.current > 0;
|
|
1511
|
-
ut(!(d &&
|
|
1514
|
+
ut(!(d && W === 0));
|
|
1512
1515
|
}
|
|
1513
|
-
Ke.current =
|
|
1514
|
-
}, [
|
|
1516
|
+
Ke.current = W;
|
|
1517
|
+
}, [W, u == null ? void 0 : u.ctaButtonMode]);
|
|
1515
1518
|
const ot = U(null), dt = U(null), Ee = U(null), ht = U(F), qe = (c) => {
|
|
1516
1519
|
const d = dt.current;
|
|
1517
1520
|
if (!d) return;
|
|
@@ -1578,7 +1581,7 @@ function Ii(n) {
|
|
|
1578
1581
|
I("bundle.celebration.received_discount", {
|
|
1579
1582
|
discount: T(d.discountPercent)
|
|
1580
1583
|
})
|
|
1581
|
-
),
|
|
1584
|
+
), ze((v) => v + 1), De(!0), ve.current != null && window.clearTimeout(ve.current), ve.current = window.setTimeout(() => {
|
|
1582
1585
|
De(!1), ve.current = null;
|
|
1583
1586
|
}, f));
|
|
1584
1587
|
}, [F, e, re]), O(() => {
|
|
@@ -1596,7 +1599,7 @@ function Ii(n) {
|
|
|
1596
1599
|
}, nt);
|
|
1597
1600
|
});
|
|
1598
1601
|
return () => cancelAnimationFrame(c);
|
|
1599
|
-
}, [
|
|
1602
|
+
}, [We, Me, nt, Ne, e]), O(() => {
|
|
1600
1603
|
var c;
|
|
1601
1604
|
e && ((c = ot.current) == null || c.focus());
|
|
1602
1605
|
}, [e]), Z ? /* @__PURE__ */ R(
|
|
@@ -1628,7 +1631,7 @@ function Ii(n) {
|
|
|
1628
1631
|
ne
|
|
1629
1632
|
) : null,
|
|
1630
1633
|
/* @__PURE__ */ R("aside", { ref: ot, className: [m.panel, e ? m.panelOpen : m.panelClosed].filter(Boolean).join(" "), tabIndex: -1, children: [
|
|
1631
|
-
Ne && Me ? /* @__PURE__ */ l("div", { className: m.celebrationOverlay, "aria-hidden": "true", children: /* @__PURE__ */ l("div", { ref: ie, className: m.celebrationChip, children: Me },
|
|
1634
|
+
Ne && Me ? /* @__PURE__ */ l("div", { className: m.celebrationOverlay, "aria-hidden": "true", children: /* @__PURE__ */ l("div", { ref: ie, className: m.celebrationChip, children: Me }, We) }) : null,
|
|
1632
1635
|
/* @__PURE__ */ R("header", { className: [m.header, he ? m.headerSearchOpen : null].filter(Boolean).join(" "), children: [
|
|
1633
1636
|
/* @__PURE__ */ l(
|
|
1634
1637
|
"button",
|
|
@@ -1810,13 +1813,13 @@ function Ii(n) {
|
|
|
1810
1813
|
),
|
|
1811
1814
|
(() => {
|
|
1812
1815
|
const c = (u == null ? void 0 : u.ctaButtonMode) || "add_to_cart";
|
|
1813
|
-
return c === "add_to_cart_checkout" ?
|
|
1816
|
+
return c === "add_to_cart_checkout" ? W > 0 ? /* @__PURE__ */ l("button", { type: "button", onClick: K, disabled: !z, className: m.cta, children: i ? I("bundle.cta.adding") : I("bundle.cta.add_more", { count: W, productWord: ct(H, W) }) }) : /* @__PURE__ */ R("div", { className: `${m.ctaButtonGroup} ${Be ? m.ctaButtonGroupAnimating : ""}`, children: [
|
|
1814
1817
|
/* @__PURE__ */ l(
|
|
1815
1818
|
"button",
|
|
1816
1819
|
{
|
|
1817
1820
|
type: "button",
|
|
1818
1821
|
onClick: K,
|
|
1819
|
-
disabled: !
|
|
1822
|
+
disabled: !z,
|
|
1820
1823
|
className: `${m.ctaDualLeft} ${Be ? m.ctaDualLeftAnimating : ""}`,
|
|
1821
1824
|
children: /* @__PURE__ */ l("span", { children: I(i ? "bundle.cta.adding" : "bundle.cta.add_to_basket") })
|
|
1822
1825
|
}
|
|
@@ -1826,12 +1829,12 @@ function Ii(n) {
|
|
|
1826
1829
|
{
|
|
1827
1830
|
type: "button",
|
|
1828
1831
|
onClick: g,
|
|
1829
|
-
disabled: !
|
|
1832
|
+
disabled: !z,
|
|
1830
1833
|
className: `${m.ctaDualRight} ${Be ? m.ctaDualRightAnimating : ""}`,
|
|
1831
1834
|
children: /* @__PURE__ */ l("span", { children: I(i ? "bundle.cta.processing" : "bundle.cta.checkout") })
|
|
1832
1835
|
}
|
|
1833
1836
|
)
|
|
1834
|
-
] }) : c === "checkout" ? /* @__PURE__ */ l("button", { type: "button", onClick: g, disabled: !
|
|
1837
|
+
] }) : c === "checkout" ? /* @__PURE__ */ l("button", { type: "button", onClick: g, disabled: !z, className: m.cta, children: i ? I("bundle.cta.processing") : W > 0 ? I("bundle.cta.add_more", { count: W, productWord: ct(H, W) }) : I("bundle.cta.checkout") }) : /* @__PURE__ */ l("button", { type: "button", onClick: K, disabled: !z, className: m.cta, children: i ? I("bundle.cta.adding") : W > 0 ? I("bundle.cta.add_more", { count: W, productWord: ct(H, W) }) : I("bundle.cta.add_to_basket") });
|
|
1835
1838
|
})(),
|
|
1836
1839
|
/* @__PURE__ */ R("div", { className: m.poweredBy, children: [
|
|
1837
1840
|
I("bundle.powered_by"),
|
|
@@ -1844,7 +1847,7 @@ function Ii(n) {
|
|
|
1844
1847
|
}
|
|
1845
1848
|
) : null;
|
|
1846
1849
|
}
|
|
1847
|
-
const Xr = "_panel_96rr4_2", Zr = "_header_96rr4_20", Jr = "_title_96rr4_24", ea = "_status_96rr4_32", ta = "_error_96rr4_37", na = "_inactive_96rr4_43", ra = "_section_96rr4_49", aa = "_sectionTitle_96rr4_54", ia = "_rulesVisual_96rr4_107", oa = "_rulesLabelsRow_96rr4_114", sa = "_rulesLinesRow_96rr4_121", la = "_rulesLineLabelCell_96rr4_128", ca = "_rulesLineLabel_96rr4_128", ua = "_rulesLine_96rr4_121", da = "_rulesLineEmpty_96rr4_162", ha = "_rulesLineFilled_96rr4_166", ma = "_variants_96rr4_170", ba = "_variantList_96rr4_178", fa = "_variantRow_96rr4_186", _a = "_variantRowInteractive_96rr4_198", pa = "_variantRowSelected_96rr4_202", ya = "_variantRowSoldOut_96rr4_207", ga = "_variantMedia_96rr4_211", va = "_variantContent_96rr4_219", wa = "_variantHeader_96rr4_227", xa = "_variantTitle_96rr4_233", Ca = "_variantImage_96rr4_247", Ia = "_variantImageFallback_96rr4_255", Na = "_variantMeta_96rr4_268", Sa = "_variantPrice_96rr4_273", Ba = "_variantFooterRow_96rr4_279", ka = "_variantActions_96rr4_286", Ta = "_qtyActions_96rr4_292", Ra = "_qtyActionsWrap_96rr4_298", La = "_soldOut_96rr4_349", Ma = "_stockLimitNotice_96rr4_357", Pa = "_qtyChip_96rr4_366", Fa = "_qtyChipInteractive_96rr4_381", Oa = "_qtyChipValue_96rr4_385", Aa = "_qtyChipPlus_96rr4_391", Da = "_qtyChipClear_96rr4_396", Ea = "_qtyTrash_96rr4_425", qa = "_footer_96rr4_437", $a = "_boxSummaryWindow_96rr4_442", Va = "_boxSummaryRow_96rr4_456",
|
|
1850
|
+
const Xr = "_panel_96rr4_2", Zr = "_header_96rr4_20", Jr = "_title_96rr4_24", ea = "_status_96rr4_32", ta = "_error_96rr4_37", na = "_inactive_96rr4_43", ra = "_section_96rr4_49", aa = "_sectionTitle_96rr4_54", ia = "_rulesVisual_96rr4_107", oa = "_rulesLabelsRow_96rr4_114", sa = "_rulesLinesRow_96rr4_121", la = "_rulesLineLabelCell_96rr4_128", ca = "_rulesLineLabel_96rr4_128", ua = "_rulesLine_96rr4_121", da = "_rulesLineEmpty_96rr4_162", ha = "_rulesLineFilled_96rr4_166", ma = "_variants_96rr4_170", ba = "_variantList_96rr4_178", fa = "_variantRow_96rr4_186", _a = "_variantRowInteractive_96rr4_198", pa = "_variantRowSelected_96rr4_202", ya = "_variantRowSoldOut_96rr4_207", ga = "_variantMedia_96rr4_211", va = "_variantContent_96rr4_219", wa = "_variantHeader_96rr4_227", xa = "_variantTitle_96rr4_233", Ca = "_variantImage_96rr4_247", Ia = "_variantImageFallback_96rr4_255", Na = "_variantMeta_96rr4_268", Sa = "_variantPrice_96rr4_273", Ba = "_variantFooterRow_96rr4_279", ka = "_variantActions_96rr4_286", Ta = "_qtyActions_96rr4_292", Ra = "_qtyActionsWrap_96rr4_298", La = "_soldOut_96rr4_349", Ma = "_stockLimitNotice_96rr4_357", Pa = "_qtyChip_96rr4_366", Fa = "_qtyChipInteractive_96rr4_381", Oa = "_qtyChipValue_96rr4_385", Aa = "_qtyChipPlus_96rr4_391", Da = "_qtyChipClear_96rr4_396", Ea = "_qtyTrash_96rr4_425", qa = "_footer_96rr4_437", $a = "_boxSummaryWindow_96rr4_442", Va = "_boxSummaryRow_96rr4_456", Wa = "_boxSlot_96rr4_464", za = "_boxItem_96rr4_473", ja = "_boxItemFilled_96rr4_490", Ua = "_boxItemPlaceholder_96rr4_496", Ha = "_boxItemThreshold_96rr4_502", Qa = "_boxItemClickable_96rr4_510", Ga = "_boxItemImage_96rr4_519", Ya = "_boxItemFallback_96rr4_530", Ka = "_boxItemPlus_96rr4_543", Xa = "_boxItemDiscountText_96rr4_555", Za = "_boxThresholdLabel_96rr4_568", Ja = "_totalsReveal_96rr4_579", ei = "_totalsRevealOpen_96rr4_587", ti = "_ctaTotalsWrap_96rr4_592", ni = "_ctaTotalsWrapVisible_96rr4_597", ri = "_ctaTotals_96rr4_592", ai = "_ctaDiscountBadge_96rr4_612", ii = "_ctaTotalsStrike_96rr4_623", oi = "_ctaTotalsPrice_96rr4_629", si = "_cta_96rr4_592", li = "_ctaButtonGroup_96rr4_661", ci = "_ctaDualLeft_96rr4_667", ui = "_ctaDualRight_96rr4_668", di = "_poweredBy_96rr4_695", _ = {
|
|
1848
1851
|
panel: Xr,
|
|
1849
1852
|
header: Zr,
|
|
1850
1853
|
title: Jr,
|
|
@@ -1890,8 +1893,8 @@ const Xr = "_panel_96rr4_2", Zr = "_header_96rr4_20", Jr = "_title_96rr4_24", ea
|
|
|
1890
1893
|
footer: qa,
|
|
1891
1894
|
boxSummaryWindow: $a,
|
|
1892
1895
|
boxSummaryRow: Va,
|
|
1893
|
-
boxSlot:
|
|
1894
|
-
boxItem:
|
|
1896
|
+
boxSlot: Wa,
|
|
1897
|
+
boxItem: za,
|
|
1895
1898
|
boxItemFilled: ja,
|
|
1896
1899
|
boxItemPlaceholder: Ua,
|
|
1897
1900
|
boxItemThreshold: Ha,
|
|
@@ -1932,7 +1935,7 @@ function Ni(n) {
|
|
|
1932
1935
|
minRequired: de,
|
|
1933
1936
|
canSubmit: F,
|
|
1934
1937
|
submit: te,
|
|
1935
|
-
submitAndCheckout:
|
|
1938
|
+
submitAndCheckout: z,
|
|
1936
1939
|
locale: K,
|
|
1937
1940
|
t: g
|
|
1938
1941
|
} = wt(), {
|
|
@@ -1993,7 +1996,7 @@ function Ni(n) {
|
|
|
1993
1996
|
}, [X]), Ae = L(() => {
|
|
1994
1997
|
const f = Number((r == null ? void 0 : r.maxBundleSize) ?? NaN), p = Number.isFinite(f) ? Math.floor(f) : 100;
|
|
1995
1998
|
return Math.max(2, Math.min(100, p));
|
|
1996
|
-
}, [r == null ? void 0 : r.maxBundleSize]), nt = ((ve = r == null ? void 0 : r.title) == null ? void 0 : ve.trim()) || g("bundle.title.default"),
|
|
1999
|
+
}, [r == null ? void 0 : r.maxBundleSize]), nt = ((ve = r == null ? void 0 : r.title) == null ? void 0 : ve.trim()) || g("bundle.title.default"), We = L(() => Math.max(ge || de, Le.length), [Le.length, ge, de]), ze = D >= Ae, Me = U(null), Ye = U(null), Ne = U(D);
|
|
1997
2000
|
O(() => {
|
|
1998
2001
|
const f = Ne.current;
|
|
1999
2002
|
if (Ne.current = D, D <= f) return;
|
|
@@ -2045,7 +2048,7 @@ function Ni(n) {
|
|
|
2045
2048
|
/* @__PURE__ */ l("div", { className: _.sectionTitle, children: g("bundle.select.items") }),
|
|
2046
2049
|
/* @__PURE__ */ l("div", { className: _.variants, children: /* @__PURE__ */ l("ul", { className: _.variantList, children: ae.map((f) => {
|
|
2047
2050
|
var A;
|
|
2048
|
-
const p = u[f.id] ?? 0, x = Te(f.selectedOptions), T = f.availableForSale === !1, M = le(f.id), E = M ?? Number.POSITIVE_INFINITY, V = p >= E, Z = !T && !
|
|
2051
|
+
const p = u[f.id] ?? 0, x = Te(f.selectedOptions), T = f.availableForSale === !1, M = le(f.id), E = M ?? Number.POSITIVE_INFINITY, V = p >= E, Z = !T && !ze && !V, ee = Z, Q = !T && V ? g("bundle.stock.max_reached") : null;
|
|
2049
2052
|
return /* @__PURE__ */ R(
|
|
2050
2053
|
"li",
|
|
2051
2054
|
{
|
|
@@ -2147,7 +2150,7 @@ function Ni(n) {
|
|
|
2147
2150
|
}) }) })
|
|
2148
2151
|
] }) : null,
|
|
2149
2152
|
/* @__PURE__ */ R("footer", { className: _.footer, children: [
|
|
2150
|
-
/* @__PURE__ */ l("div", { className: _.boxSummaryWindow, ref: Ye, children: /* @__PURE__ */ l("div", { className: _.boxSummaryRow, "aria-label": "Bundle box summary", children: Array.from({ length:
|
|
2153
|
+
/* @__PURE__ */ l("div", { className: _.boxSummaryWindow, ref: Ye, children: /* @__PURE__ */ l("div", { className: _.boxSummaryRow, "aria-label": "Bundle box summary", children: Array.from({ length: We }).map((f, p) => {
|
|
2151
2154
|
var Q, A, q, Se;
|
|
2152
2155
|
const x = Le[p], T = Ie.get(p), M = !!x, E = !!T, V = E && !M, Z = T ? g("bundle.discount.off_label", { discount: ke(T.discountPercent) }) : null, ee = M ? x.displayName : g("bundle.slot", { slot: p + 1 });
|
|
2153
2156
|
return /* @__PURE__ */ R("div", { "data-box-slot": p, className: _.boxSlot, children: [
|
|
@@ -2203,8 +2206,8 @@ function Ni(n) {
|
|
|
2203
2206
|
const f = (r == null ? void 0 : r.ctaButtonMode) || "add_to_cart";
|
|
2204
2207
|
return f === "add_to_cart_checkout" ? ie > 0 ? /* @__PURE__ */ l("button", { type: "button", onClick: te, disabled: !F, className: _.cta, children: t ? g("bundle.cta.adding") : g("bundle.cta.add_more", { count: ie, productWord: ct(K, ie) }) }) : /* @__PURE__ */ R("div", { className: _.ctaButtonGroup, children: [
|
|
2205
2208
|
/* @__PURE__ */ l("button", { type: "button", onClick: te, disabled: !F, className: _.ctaDualLeft, children: /* @__PURE__ */ l("span", { children: g(t ? "bundle.cta.adding" : "bundle.cta.add_to_basket") }) }),
|
|
2206
|
-
/* @__PURE__ */ l("button", { type: "button", onClick:
|
|
2207
|
-
] }) : f === "checkout" ? /* @__PURE__ */ l("button", { type: "button", onClick:
|
|
2209
|
+
/* @__PURE__ */ l("button", { type: "button", onClick: z, disabled: !F, className: _.ctaDualRight, children: /* @__PURE__ */ l("span", { children: g(t ? "bundle.cta.processing" : "bundle.cta.checkout") }) })
|
|
2210
|
+
] }) : f === "checkout" ? /* @__PURE__ */ l("button", { type: "button", onClick: z, disabled: !F, className: _.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: te, disabled: !F, className: _.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") });
|
|
2208
2211
|
})(),
|
|
2209
2212
|
/* @__PURE__ */ R("div", { className: _.poweredBy, children: [
|
|
2210
2213
|
g("bundle.powered_by"),
|
|
@@ -2218,7 +2221,7 @@ function Bt(n) {
|
|
|
2218
2221
|
if (n != null && n.length)
|
|
2219
2222
|
return n.reduce((e, t) => (t != null && t.key && (e[t.key] = t.value ?? ""), e), {});
|
|
2220
2223
|
}
|
|
2221
|
-
function
|
|
2224
|
+
function Wt(n) {
|
|
2222
2225
|
const e = /\/(\d+)$/.exec(n);
|
|
2223
2226
|
return e ? e[1] : n;
|
|
2224
2227
|
}
|
|
@@ -2279,7 +2282,7 @@ function Si() {
|
|
|
2279
2282
|
return {
|
|
2280
2283
|
async linesAdd(n) {
|
|
2281
2284
|
const e = n.map((t) => ({
|
|
2282
|
-
id:
|
|
2285
|
+
id: Wt(t.merchandiseId),
|
|
2283
2286
|
quantity: t.quantity,
|
|
2284
2287
|
properties: Bt(t.attributes)
|
|
2285
2288
|
}));
|
|
@@ -2287,7 +2290,7 @@ function Si() {
|
|
|
2287
2290
|
},
|
|
2288
2291
|
async linesAddForCheckout(n) {
|
|
2289
2292
|
const e = n.map((t) => ({
|
|
2290
|
-
id:
|
|
2293
|
+
id: Wt(t.merchandiseId),
|
|
2291
2294
|
quantity: t.quantity,
|
|
2292
2295
|
properties: Bt(t.attributes)
|
|
2293
2296
|
}));
|