@sonic-equipment/ui 145.0.0 → 146.0.0
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/algolia/algolia-filter-panel.module.css.js +1 -1
- package/dist/algolia/algolia-query-string-routing.js +2 -2
- package/dist/breadcrumbs/breadcrumb.js +1 -1
- package/dist/buttons/add-to-cart-button/connected-add-to-cart-button.js +16 -7
- package/dist/buttons/favorite/favorite-button.module.css.js +1 -1
- package/dist/carousel/carousel.js +3 -3
- package/dist/carousel/pagination/transitions.js +1 -1
- package/dist/carousel/usp-carousel/usp-carousel.js +1 -1
- package/dist/carousel/usp-carousel/usp-carousel.module.css.js +1 -1
- package/dist/display/product-price/product-price.module.css.js +1 -1
- package/dist/footer/footer.module.css.js +1 -1
- package/dist/forms/textarea/textarea.module.css.js +1 -1
- package/dist/index.js +1 -0
- package/dist/lists/product-overview-grid/product-overview-grid.module.css.js +1 -1
- package/dist/media/image-lightbox/image-lightbox.js +3 -3
- package/dist/modals/modal/modal.module.css.js +1 -1
- package/dist/node_modules/.pnpm/{instantsearch.js@4.77.3_algoliasearch@4.24.0 → instantsearch.js@4.78.0_algoliasearch@4.24.0}/node_modules/instantsearch.js/es/lib/routers/history.js +20 -20
- package/dist/node_modules/.pnpm/{instantsearch.js@4.77.3_algoliasearch@4.24.0 → instantsearch.js@4.78.0_algoliasearch@4.24.0}/node_modules/instantsearch.js/es/lib/stateMappings/simple.js +1 -1
- package/dist/node_modules/.pnpm/{instantsearch.js@4.77.3_algoliasearch@4.24.0 → instantsearch.js@4.78.0_algoliasearch@4.24.0}/node_modules/instantsearch.js/es/lib/utils/documentation.js +1 -1
- package/dist/node_modules/.pnpm/{instantsearch.js@4.77.3_algoliasearch@4.24.0 → instantsearch.js@4.78.0_algoliasearch@4.24.0}/node_modules/instantsearch.js/es/lib/utils/logger.js +1 -1
- package/dist/node_modules/.pnpm/qs@6.9.7/node_modules/qs/lib/stringify.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.1 → swiper@11.2.5}/node_modules/swiper/modules/thumbs.js +4 -0
- package/dist/node_modules/.pnpm/{swiper@11.2.1 → swiper@11.2.5}/node_modules/swiper/shared/ssr-window.esm.js +7 -6
- package/dist/node_modules/.pnpm/{swiper@11.2.1 → swiper@11.2.5}/node_modules/swiper/shared/swiper-core.js +40 -34
- package/dist/node_modules/.pnpm/{swiper@11.2.1 → swiper@11.2.5}/node_modules/swiper/shared/update-on-virtual-data.js +2 -2
- package/dist/node_modules/.pnpm/{swiper@11.2.1 → swiper@11.2.5}/node_modules/swiper/shared/update-swiper.js +5 -5
- package/dist/node_modules/.pnpm/{swiper@11.2.1 → swiper@11.2.5}/node_modules/swiper/shared/utils.js +6 -6
- package/dist/node_modules/.pnpm/{swiper@11.2.1 → swiper@11.2.5}/node_modules/swiper/swiper-react.js +5 -5
- package/dist/pages/account/sign-in-page/sign-in-page.js +2 -2
- package/dist/pages/checkout/payment-page/components/adyen-payment.js +1 -1
- package/dist/pages/paths.d.ts +3 -3
- package/dist/pages/paths.js +3 -3
- package/dist/pages/product/product-details-page/components/product-details-panel/product-details-panel.js +1 -1
- package/dist/pages/product/product-listing-page/product-listing-page.module.css.js +1 -1
- package/dist/pages/product/search-result-page/search-results-page.module.css.js +1 -1
- package/dist/shared/api/storefront/hooks/cart/use-patch-cart-line-by-id.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/cart/use-patch-cart-line-by-id.js +5 -1
- package/dist/shared/api/storefront/services/cart-service.d.ts +1 -1
- package/dist/shared/api/storefront/services/cart-service.js +2 -1
- package/dist/shared/fetch/request.js +4 -4
- package/dist/shared/providers/global-state-provider.js +3 -3
- package/dist/shared/utils/event-emitter.js +1 -1
- package/dist/shared/utils/local-storage.js +1 -0
- package/dist/styles.css +2 -2
- package/dist/tooltip/tooltip.module.css.js +1 -1
- package/package.json +44 -44
- /package/dist/node_modules/.pnpm/{instantsearch.js@4.77.3_algoliasearch@4.24.0 → instantsearch.js@4.78.0_algoliasearch@4.24.0}/node_modules/instantsearch.js/es/lib/utils/noop.js +0 -0
- /package/dist/node_modules/.pnpm/{instantsearch.js@4.77.3_algoliasearch@4.24.0 → instantsearch.js@4.78.0_algoliasearch@4.24.0}/node_modules/instantsearch.js/es/lib/utils/safelyRunOnBrowser.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.1 → swiper@11.2.5}/node_modules/swiper/modules/free-mode.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.1 → swiper@11.2.5}/node_modules/swiper/modules/navigation.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.1 → swiper@11.2.5}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as getWindow, g as getDocument } from './ssr-window.esm.js';
|
|
2
|
-
import { w as extend,
|
|
2
|
+
import { w as extend, u as showWarning, e as elementChildren, n as nextTick, t as animateCSSModeScroll, j as getTranslate, q as elementNextAll, r as elementPrevAll, s as setCSSProperty, p as elementStyle, f as elementOuterSize, h as elementIndex, c as createElement, x as deleteProps, v as elementIsChildOf, d as now, a as elementParents } from './utils.js';
|
|
3
3
|
|
|
4
4
|
let support;
|
|
5
5
|
function calcSupport() {
|
|
@@ -21,7 +21,7 @@ let deviceCached;
|
|
|
21
21
|
function calcDevice(_temp) {
|
|
22
22
|
let {
|
|
23
23
|
userAgent
|
|
24
|
-
} = _temp ===
|
|
24
|
+
} = _temp === void 0 ? {} : _temp;
|
|
25
25
|
const support = getSupport();
|
|
26
26
|
const window = getWindow();
|
|
27
27
|
const platform = window.navigator.platform;
|
|
@@ -61,7 +61,7 @@ function calcDevice(_temp) {
|
|
|
61
61
|
return device;
|
|
62
62
|
}
|
|
63
63
|
function getDevice(overrides) {
|
|
64
|
-
if (overrides ===
|
|
64
|
+
if (overrides === void 0) {
|
|
65
65
|
overrides = {};
|
|
66
66
|
}
|
|
67
67
|
if (!deviceCached) {
|
|
@@ -182,7 +182,7 @@ function Observer(_ref) {
|
|
|
182
182
|
const observers = [];
|
|
183
183
|
const window = getWindow();
|
|
184
184
|
const attach = function (target, options) {
|
|
185
|
-
if (options ===
|
|
185
|
+
if (options === void 0) {
|
|
186
186
|
options = {};
|
|
187
187
|
}
|
|
188
188
|
const ObserverFunc = window.MutationObserver || window.WebkitMutationObserver;
|
|
@@ -719,7 +719,7 @@ const toggleSlideClasses$1 = (slideEl, condition, className) => {
|
|
|
719
719
|
}
|
|
720
720
|
};
|
|
721
721
|
function updateSlidesProgress(translate) {
|
|
722
|
-
if (translate ===
|
|
722
|
+
if (translate === void 0) {
|
|
723
723
|
translate = this && this.translate || 0;
|
|
724
724
|
}
|
|
725
725
|
const swiper = this;
|
|
@@ -1117,7 +1117,7 @@ var update = {
|
|
|
1117
1117
|
};
|
|
1118
1118
|
|
|
1119
1119
|
function getSwiperTranslate(axis) {
|
|
1120
|
-
if (axis ===
|
|
1120
|
+
if (axis === void 0) {
|
|
1121
1121
|
axis = this.isHorizontal() ? 'x' : 'y';
|
|
1122
1122
|
}
|
|
1123
1123
|
const swiper = this;
|
|
@@ -1195,16 +1195,16 @@ function maxTranslate() {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
|
|
1197
1197
|
function translateTo(translate, speed, runCallbacks, translateBounds, internal) {
|
|
1198
|
-
if (translate ===
|
|
1198
|
+
if (translate === void 0) {
|
|
1199
1199
|
translate = 0;
|
|
1200
1200
|
}
|
|
1201
|
-
if (speed ===
|
|
1201
|
+
if (speed === void 0) {
|
|
1202
1202
|
speed = this.params.speed;
|
|
1203
1203
|
}
|
|
1204
|
-
if (runCallbacks ===
|
|
1204
|
+
if (runCallbacks === void 0) {
|
|
1205
1205
|
runCallbacks = true;
|
|
1206
1206
|
}
|
|
1207
|
-
if (translateBounds ===
|
|
1207
|
+
if (translateBounds === void 0) {
|
|
1208
1208
|
translateBounds = true;
|
|
1209
1209
|
}
|
|
1210
1210
|
const swiper = this;
|
|
@@ -1325,7 +1325,7 @@ function transitionEmit(_ref) {
|
|
|
1325
1325
|
}
|
|
1326
1326
|
|
|
1327
1327
|
function transitionStart(runCallbacks, direction) {
|
|
1328
|
-
if (runCallbacks ===
|
|
1328
|
+
if (runCallbacks === void 0) {
|
|
1329
1329
|
runCallbacks = true;
|
|
1330
1330
|
}
|
|
1331
1331
|
const swiper = this;
|
|
@@ -1345,7 +1345,7 @@ function transitionStart(runCallbacks, direction) {
|
|
|
1345
1345
|
}
|
|
1346
1346
|
|
|
1347
1347
|
function transitionEnd(runCallbacks, direction) {
|
|
1348
|
-
if (runCallbacks ===
|
|
1348
|
+
if (runCallbacks === void 0) {
|
|
1349
1349
|
runCallbacks = true;
|
|
1350
1350
|
}
|
|
1351
1351
|
const swiper = this;
|
|
@@ -1370,10 +1370,10 @@ var transition = {
|
|
|
1370
1370
|
};
|
|
1371
1371
|
|
|
1372
1372
|
function slideTo(index, speed, runCallbacks, internal, initial) {
|
|
1373
|
-
if (index ===
|
|
1373
|
+
if (index === void 0) {
|
|
1374
1374
|
index = 0;
|
|
1375
1375
|
}
|
|
1376
|
-
if (runCallbacks ===
|
|
1376
|
+
if (runCallbacks === void 0) {
|
|
1377
1377
|
runCallbacks = true;
|
|
1378
1378
|
}
|
|
1379
1379
|
if (typeof index === 'string') {
|
|
@@ -1497,6 +1497,11 @@ function slideTo(index, speed, runCallbacks, internal, initial) {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
return true;
|
|
1499
1499
|
}
|
|
1500
|
+
const browser = getBrowser();
|
|
1501
|
+
const isSafari = browser.isSafari;
|
|
1502
|
+
if (isVirtual && !initial && isSafari && swiper.isElement) {
|
|
1503
|
+
swiper.virtual.update(false, false, slideIndex);
|
|
1504
|
+
}
|
|
1500
1505
|
swiper.setTransition(speed);
|
|
1501
1506
|
swiper.setTranslate(translate);
|
|
1502
1507
|
swiper.updateActiveIndex(slideIndex);
|
|
@@ -1523,10 +1528,10 @@ function slideTo(index, speed, runCallbacks, internal, initial) {
|
|
|
1523
1528
|
}
|
|
1524
1529
|
|
|
1525
1530
|
function slideToLoop(index, speed, runCallbacks, internal) {
|
|
1526
|
-
if (index ===
|
|
1531
|
+
if (index === void 0) {
|
|
1527
1532
|
index = 0;
|
|
1528
1533
|
}
|
|
1529
|
-
if (runCallbacks ===
|
|
1534
|
+
if (runCallbacks === void 0) {
|
|
1530
1535
|
runCallbacks = true;
|
|
1531
1536
|
}
|
|
1532
1537
|
if (typeof index === 'string') {
|
|
@@ -1597,7 +1602,7 @@ function slideToLoop(index, speed, runCallbacks, internal) {
|
|
|
1597
1602
|
|
|
1598
1603
|
/* eslint no-unused-vars: "off" */
|
|
1599
1604
|
function slideNext(speed, runCallbacks, internal) {
|
|
1600
|
-
if (runCallbacks ===
|
|
1605
|
+
if (runCallbacks === void 0) {
|
|
1601
1606
|
runCallbacks = true;
|
|
1602
1607
|
}
|
|
1603
1608
|
const swiper = this;
|
|
@@ -1638,7 +1643,7 @@ function slideNext(speed, runCallbacks, internal) {
|
|
|
1638
1643
|
|
|
1639
1644
|
/* eslint no-unused-vars: "off" */
|
|
1640
1645
|
function slidePrev(speed, runCallbacks, internal) {
|
|
1641
|
-
if (runCallbacks ===
|
|
1646
|
+
if (runCallbacks === void 0) {
|
|
1642
1647
|
runCallbacks = true;
|
|
1643
1648
|
}
|
|
1644
1649
|
const swiper = this;
|
|
@@ -1670,8 +1675,9 @@ function slidePrev(speed, runCallbacks, internal) {
|
|
|
1670
1675
|
}
|
|
1671
1676
|
const normalizedTranslate = normalize(translate);
|
|
1672
1677
|
const normalizedSnapGrid = snapGrid.map(val => normalize(val));
|
|
1678
|
+
const isFreeMode = params.freeMode && params.freeMode.enabled;
|
|
1673
1679
|
let prevSnap = snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate) - 1];
|
|
1674
|
-
if (typeof prevSnap === 'undefined' && params.cssMode) {
|
|
1680
|
+
if (typeof prevSnap === 'undefined' && (params.cssMode || isFreeMode)) {
|
|
1675
1681
|
let prevSnapIndex;
|
|
1676
1682
|
snapGrid.forEach((snap, snapIndex) => {
|
|
1677
1683
|
if (normalizedTranslate >= snap) {
|
|
@@ -1680,7 +1686,7 @@ function slidePrev(speed, runCallbacks, internal) {
|
|
|
1680
1686
|
}
|
|
1681
1687
|
});
|
|
1682
1688
|
if (typeof prevSnapIndex !== 'undefined') {
|
|
1683
|
-
prevSnap = snapGrid[prevSnapIndex > 0 ? prevSnapIndex - 1 : prevSnapIndex];
|
|
1689
|
+
prevSnap = isFreeMode ? snapGrid[prevSnapIndex] : snapGrid[prevSnapIndex > 0 ? prevSnapIndex - 1 : prevSnapIndex];
|
|
1684
1690
|
}
|
|
1685
1691
|
}
|
|
1686
1692
|
let prevIndex = 0;
|
|
@@ -1706,7 +1712,7 @@ function slidePrev(speed, runCallbacks, internal) {
|
|
|
1706
1712
|
|
|
1707
1713
|
/* eslint no-unused-vars: "off" */
|
|
1708
1714
|
function slideReset(speed, runCallbacks, internal) {
|
|
1709
|
-
if (runCallbacks ===
|
|
1715
|
+
if (runCallbacks === void 0) {
|
|
1710
1716
|
runCallbacks = true;
|
|
1711
1717
|
}
|
|
1712
1718
|
const swiper = this;
|
|
@@ -1719,10 +1725,10 @@ function slideReset(speed, runCallbacks, internal) {
|
|
|
1719
1725
|
|
|
1720
1726
|
/* eslint no-unused-vars: "off" */
|
|
1721
1727
|
function slideToClosest(speed, runCallbacks, internal, threshold) {
|
|
1722
|
-
if (runCallbacks ===
|
|
1728
|
+
if (runCallbacks === void 0) {
|
|
1723
1729
|
runCallbacks = true;
|
|
1724
1730
|
}
|
|
1725
|
-
if (threshold ===
|
|
1731
|
+
if (threshold === void 0) {
|
|
1726
1732
|
threshold = 0.5;
|
|
1727
1733
|
}
|
|
1728
1734
|
const swiper = this;
|
|
@@ -1865,7 +1871,7 @@ function loopFix(_temp) {
|
|
|
1865
1871
|
activeSlideIndex,
|
|
1866
1872
|
byController,
|
|
1867
1873
|
byMousewheel
|
|
1868
|
-
} = _temp ===
|
|
1874
|
+
} = _temp === void 0 ? {} : _temp;
|
|
1869
1875
|
const swiper = this;
|
|
1870
1876
|
if (!swiper.params.loop) return;
|
|
1871
1877
|
swiper.emit('beforeLoopFix');
|
|
@@ -2067,7 +2073,7 @@ function loopDestroy() {
|
|
|
2067
2073
|
params,
|
|
2068
2074
|
slidesEl
|
|
2069
2075
|
} = swiper;
|
|
2070
|
-
if (!params.loop || swiper.virtual && swiper.params.virtual.enabled) return;
|
|
2076
|
+
if (!params.loop || !slidesEl || swiper.virtual && swiper.params.virtual.enabled) return;
|
|
2071
2077
|
swiper.recalcSlides();
|
|
2072
2078
|
const newSlidesOrder = [];
|
|
2073
2079
|
swiper.slides.forEach(slideEl => {
|
|
@@ -2129,7 +2135,7 @@ var grabCursor = {
|
|
|
2129
2135
|
|
|
2130
2136
|
// Modified from https://stackoverflow.com/questions/54520554/custom-element-getrootnode-closest-function-crossing-multiple-parent-shadowd
|
|
2131
2137
|
function closestElement(selector, base) {
|
|
2132
|
-
if (base ===
|
|
2138
|
+
if (base === void 0) {
|
|
2133
2139
|
base = this;
|
|
2134
2140
|
}
|
|
2135
2141
|
function __closestFrom(el) {
|
|
@@ -2424,7 +2430,7 @@ function onTouchMove(event) {
|
|
|
2424
2430
|
swiper.emit('sliderFirstMove', e);
|
|
2425
2431
|
}
|
|
2426
2432
|
new Date().getTime();
|
|
2427
|
-
if (data.isMoved && data.allowThresholdMove && prevTouchesDirection !== swiper.touchesDirection && isLoop && allowLoopFix && Math.abs(diff) >= 1) {
|
|
2433
|
+
if (params._loopSwapReset !== false && data.isMoved && data.allowThresholdMove && prevTouchesDirection !== swiper.touchesDirection && isLoop && allowLoopFix && Math.abs(diff) >= 1) {
|
|
2428
2434
|
Object.assign(touches, {
|
|
2429
2435
|
startX: pageX,
|
|
2430
2436
|
startY: pageY,
|
|
@@ -2985,7 +2991,7 @@ function setBreakpoint() {
|
|
|
2985
2991
|
}
|
|
2986
2992
|
|
|
2987
2993
|
function getBreakpoint(breakpoints, base, containerEl) {
|
|
2988
|
-
if (base ===
|
|
2994
|
+
if (base === void 0) {
|
|
2989
2995
|
base = 'window';
|
|
2990
2996
|
}
|
|
2991
2997
|
if (!breakpoints || base === 'container' && !containerEl) return undefined;
|
|
@@ -3253,7 +3259,7 @@ var defaults = {
|
|
|
3253
3259
|
|
|
3254
3260
|
function moduleExtendParams(params, allModulesParams) {
|
|
3255
3261
|
return function extendParams(obj) {
|
|
3256
|
-
if (obj ===
|
|
3262
|
+
if (obj === void 0) {
|
|
3257
3263
|
obj = {};
|
|
3258
3264
|
}
|
|
3259
3265
|
const moduleParamName = Object.keys(obj)[0];
|
|
@@ -3555,10 +3561,10 @@ class Swiper {
|
|
|
3555
3561
|
swiper.emit('_slideClasses', updates);
|
|
3556
3562
|
}
|
|
3557
3563
|
slidesPerViewDynamic(view, exact) {
|
|
3558
|
-
if (view ===
|
|
3564
|
+
if (view === void 0) {
|
|
3559
3565
|
view = 'current';
|
|
3560
3566
|
}
|
|
3561
|
-
if (exact ===
|
|
3567
|
+
if (exact === void 0) {
|
|
3562
3568
|
exact = false;
|
|
3563
3569
|
}
|
|
3564
3570
|
const swiper = this;
|
|
@@ -3660,7 +3666,7 @@ class Swiper {
|
|
|
3660
3666
|
swiper.emit('update');
|
|
3661
3667
|
}
|
|
3662
3668
|
changeDirection(newDirection, needUpdate) {
|
|
3663
|
-
if (needUpdate ===
|
|
3669
|
+
if (needUpdate === void 0) {
|
|
3664
3670
|
needUpdate = true;
|
|
3665
3671
|
}
|
|
3666
3672
|
const swiper = this;
|
|
@@ -3818,10 +3824,10 @@ class Swiper {
|
|
|
3818
3824
|
return swiper;
|
|
3819
3825
|
}
|
|
3820
3826
|
destroy(deleteInstance, cleanStyles) {
|
|
3821
|
-
if (deleteInstance ===
|
|
3827
|
+
if (deleteInstance === void 0) {
|
|
3822
3828
|
deleteInstance = true;
|
|
3823
3829
|
}
|
|
3824
|
-
if (cleanStyles ===
|
|
3830
|
+
if (cleanStyles === void 0) {
|
|
3825
3831
|
cleanStyles = true;
|
|
3826
3832
|
}
|
|
3827
3833
|
const swiper = this;
|
|
@@ -2,10 +2,10 @@ import { e as extend, p as paramsList, i as isObject, n as needsNavigation, a as
|
|
|
2
2
|
import { d as defaults } from './swiper-core.js';
|
|
3
3
|
|
|
4
4
|
function getParams(obj, splitEvents) {
|
|
5
|
-
if (obj ===
|
|
5
|
+
if (obj === void 0) {
|
|
6
6
|
obj = {};
|
|
7
7
|
}
|
|
8
|
-
if (splitEvents ===
|
|
8
|
+
if (splitEvents === void 0) {
|
|
9
9
|
splitEvents = true;
|
|
10
10
|
}
|
|
11
11
|
const params = {
|
|
@@ -17,25 +17,25 @@ function extend(target, src) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
function needsNavigation(params) {
|
|
20
|
-
if (params ===
|
|
20
|
+
if (params === void 0) {
|
|
21
21
|
params = {};
|
|
22
22
|
}
|
|
23
23
|
return params.navigation && typeof params.navigation.nextEl === 'undefined' && typeof params.navigation.prevEl === 'undefined';
|
|
24
24
|
}
|
|
25
25
|
function needsPagination(params) {
|
|
26
|
-
if (params ===
|
|
26
|
+
if (params === void 0) {
|
|
27
27
|
params = {};
|
|
28
28
|
}
|
|
29
29
|
return params.pagination && typeof params.pagination.el === 'undefined';
|
|
30
30
|
}
|
|
31
31
|
function needsScrollbar(params) {
|
|
32
|
-
if (params ===
|
|
32
|
+
if (params === void 0) {
|
|
33
33
|
params = {};
|
|
34
34
|
}
|
|
35
35
|
return params.scrollbar && typeof params.scrollbar.el === 'undefined';
|
|
36
36
|
}
|
|
37
37
|
function uniqueClasses(classNames) {
|
|
38
|
-
if (classNames ===
|
|
38
|
+
if (classNames === void 0) {
|
|
39
39
|
classNames = '';
|
|
40
40
|
}
|
|
41
41
|
const classes = classNames.split(' ').map(c => c.trim()).filter(c => !!c);
|
|
@@ -46,7 +46,7 @@ function uniqueClasses(classNames) {
|
|
|
46
46
|
return unique.join(' ');
|
|
47
47
|
}
|
|
48
48
|
function wrapperClass(className) {
|
|
49
|
-
if (className ===
|
|
49
|
+
if (className === void 0) {
|
|
50
50
|
className = '';
|
|
51
51
|
}
|
|
52
52
|
if (!className) return 'swiper-wrapper';
|
package/dist/node_modules/.pnpm/{swiper@11.2.1 → swiper@11.2.5}/node_modules/swiper/shared/utils.js
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as getWindow } from './ssr-window.esm.js';
|
|
2
2
|
|
|
3
3
|
function classesToTokens(classes) {
|
|
4
|
-
if (classes ===
|
|
4
|
+
if (classes === void 0) {
|
|
5
5
|
classes = '';
|
|
6
6
|
}
|
|
7
7
|
return classes.trim().split(' ').filter(c => !!c.trim());
|
|
@@ -23,7 +23,7 @@ function deleteProps(obj) {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
function nextTick(callback, delay) {
|
|
26
|
-
if (delay ===
|
|
26
|
+
if (delay === void 0) {
|
|
27
27
|
delay = 0;
|
|
28
28
|
}
|
|
29
29
|
return setTimeout(callback, delay);
|
|
@@ -46,7 +46,7 @@ function getComputedStyle(el) {
|
|
|
46
46
|
return style;
|
|
47
47
|
}
|
|
48
48
|
function getTranslate(el, axis) {
|
|
49
|
-
if (axis ===
|
|
49
|
+
if (axis === void 0) {
|
|
50
50
|
axis = 'x';
|
|
51
51
|
}
|
|
52
52
|
const window = getWindow();
|
|
@@ -178,7 +178,7 @@ function animateCSSModeScroll(_ref) {
|
|
|
178
178
|
animate();
|
|
179
179
|
}
|
|
180
180
|
function elementChildren(element, selector) {
|
|
181
|
-
if (selector ===
|
|
181
|
+
if (selector === void 0) {
|
|
182
182
|
selector = '';
|
|
183
183
|
}
|
|
184
184
|
const window = getWindow();
|
|
@@ -199,7 +199,7 @@ function elementIsChildOfSlot(el, slot) {
|
|
|
199
199
|
if (el === elementToCheck) {
|
|
200
200
|
return true;
|
|
201
201
|
}
|
|
202
|
-
elementsQueue.push(...elementToCheck.children, ...(elementToCheck.shadowRoot
|
|
202
|
+
elementsQueue.push(...elementToCheck.children, ...(elementToCheck.shadowRoot ? elementToCheck.shadowRoot.children : []), ...(elementToCheck.assignedElements ? elementToCheck.assignedElements() : []));
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
function elementIsChildOf(el, parent) {
|
|
@@ -223,7 +223,7 @@ function showWarning(text) {
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
function createElement(tag, classes) {
|
|
226
|
-
if (classes ===
|
|
226
|
+
if (classes === void 0) {
|
|
227
227
|
classes = [];
|
|
228
228
|
}
|
|
229
229
|
const el = document.createElement(tag);
|
package/dist/node_modules/.pnpm/{swiper@11.2.1 → swiper@11.2.5}/node_modules/swiper/swiper-react.js
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, { forwardRef, useState, useRef, useEffect,
|
|
1
|
+
import React, { forwardRef, useState, useRef, useEffect, createContext, useLayoutEffect } from 'react';
|
|
2
2
|
import { S as Swiper$1 } from './shared/swiper-core.js';
|
|
3
3
|
import { g as getParams, m as mountSwiper, a as getChangedParams, u as updateOnVirtualData } from './shared/update-on-virtual-data.js';
|
|
4
4
|
import { d as uniqueClasses, w as wrapperClass, n as needsNavigation, b as needsScrollbar, a as needsPagination, e as extend, u as updateSwiper } from './shared/update-swiper.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Swiper React 11.2.
|
|
7
|
+
* Swiper React 11.2.5
|
|
8
8
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
9
9
|
* https://swiperjs.com
|
|
10
10
|
*
|
|
@@ -12,7 +12,7 @@ import { d as uniqueClasses, w as wrapperClass, n as needsNavigation, b as needs
|
|
|
12
12
|
*
|
|
13
13
|
* Released under the MIT License
|
|
14
14
|
*
|
|
15
|
-
* Released on:
|
|
15
|
+
* Released on: March 3, 2025
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
|
|
@@ -130,7 +130,7 @@ const Swiper = /*#__PURE__*/forwardRef(function (_temp, externalElRef) {
|
|
|
130
130
|
children,
|
|
131
131
|
onSwiper,
|
|
132
132
|
...rest
|
|
133
|
-
} = _temp ===
|
|
133
|
+
} = _temp === void 0 ? {} : _temp;
|
|
134
134
|
let eventsAssigned = false;
|
|
135
135
|
const [containerClasses, setContainerClasses] = useState('swiper');
|
|
136
136
|
const [virtualData, setVirtualData] = useState(null);
|
|
@@ -317,7 +317,7 @@ const SwiperSlide = /*#__PURE__*/forwardRef(function (_temp, externalRef) {
|
|
|
317
317
|
virtualIndex,
|
|
318
318
|
swiperSlideIndex,
|
|
319
319
|
...rest
|
|
320
|
-
} = _temp ===
|
|
320
|
+
} = _temp === void 0 ? {} : _temp;
|
|
321
321
|
const slideElRef = useRef(null);
|
|
322
322
|
const [slideClasses, setSlideClasses] = useState('swiper-slide');
|
|
323
323
|
const [lazyLoaded, setLazyLoaded] = useState(false);
|
|
@@ -40,7 +40,7 @@ function SignInPage({ returnUrl } = {}) {
|
|
|
40
40
|
}, [errorCreateGuest, errorSignIn]);
|
|
41
41
|
const onSuccess = () => {
|
|
42
42
|
setIsSuccess(true);
|
|
43
|
-
navigate(returnUrl || PATHS.
|
|
43
|
+
navigate(returnUrl || PATHS.HOME, { reload: true });
|
|
44
44
|
};
|
|
45
45
|
const allowGuestSignIn = returnUrl === PATHS.CHECKOUT_SHIPPING;
|
|
46
46
|
const createAccountPath = `${PATHS.ACCOUNT_CREATE}${returnUrl ? `?returnUrl=${returnUrl}` : ''}`;
|
|
@@ -50,7 +50,7 @@ function SignInPage({ returnUrl } = {}) {
|
|
|
50
50
|
if (data.guestSignIn) {
|
|
51
51
|
if (session?.isGuest && session.isAuthenticated)
|
|
52
52
|
return onSuccess();
|
|
53
|
-
createGuest(
|
|
53
|
+
createGuest(void 0, { onSuccess });
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
56
|
signIn({
|
|
@@ -6,7 +6,7 @@ import qs from 'query-string';
|
|
|
6
6
|
import { useCultureCode } from '../../../../intl/use-culture-code.js';
|
|
7
7
|
import { useCreateAdyenSession } from '../../../../shared/api/storefront/hooks/payment/use-create-adyen-session.js';
|
|
8
8
|
import { useFetchAdyenConfig } from '../../../../shared/api/storefront/hooks/payment/use-fetch-adyen-config.js';
|
|
9
|
-
import {
|
|
9
|
+
import { postAdyenPayment, getAdyenPaymentDetails } from '../../../../shared/api/storefront/services/cart-service.js';
|
|
10
10
|
import { parseAmount } from '../utils/parse-amount.js';
|
|
11
11
|
import styles from './adyen-payment.module.css.js';
|
|
12
12
|
|
package/dist/pages/paths.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ export declare const PATHS: {
|
|
|
2
2
|
readonly ACCOUNT: "/MyAccount";
|
|
3
3
|
readonly ACCOUNT_ADDRESSES: "/MyAccount/Addresses";
|
|
4
4
|
readonly ACCOUNT_CREATE: "/MyAccount/CreateAccount";
|
|
5
|
-
readonly CART: "/
|
|
5
|
+
readonly CART: "/Cart";
|
|
6
6
|
readonly CHECKOUT_SHIPPING: "/CheckoutShipping";
|
|
7
|
-
readonly CHECKOUT_SHIPPING_VIA_SIGNIN: "/
|
|
7
|
+
readonly CHECKOUT_SHIPPING_VIA_SIGNIN: "/SignIn?returnUrl=/CheckoutShipping";
|
|
8
8
|
readonly HOME: "/";
|
|
9
9
|
readonly ORDER_CONFIRMATION: "/OrderConfirmation";
|
|
10
10
|
readonly REVIEW_AND_SUBMIT: "/CheckoutReviewAndSubmit";
|
|
11
|
-
readonly SIGN_IN: "/
|
|
11
|
+
readonly SIGN_IN: "/SignIn";
|
|
12
12
|
};
|
package/dist/pages/paths.js
CHANGED
|
@@ -2,13 +2,13 @@ const PATHS = {
|
|
|
2
2
|
ACCOUNT: '/MyAccount',
|
|
3
3
|
ACCOUNT_ADDRESSES: '/MyAccount/Addresses',
|
|
4
4
|
ACCOUNT_CREATE: '/MyAccount/CreateAccount',
|
|
5
|
-
CART: '/
|
|
5
|
+
CART: '/Cart',
|
|
6
6
|
CHECKOUT_SHIPPING: '/CheckoutShipping',
|
|
7
|
-
CHECKOUT_SHIPPING_VIA_SIGNIN: '/
|
|
7
|
+
CHECKOUT_SHIPPING_VIA_SIGNIN: '/SignIn?returnUrl=/CheckoutShipping',
|
|
8
8
|
HOME: '/',
|
|
9
9
|
ORDER_CONFIRMATION: '/OrderConfirmation',
|
|
10
10
|
REVIEW_AND_SUBMIT: '/CheckoutReviewAndSubmit',
|
|
11
|
-
SIGN_IN: '/
|
|
11
|
+
SIGN_IN: '/SignIn',
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { PATHS };
|
|
@@ -15,7 +15,7 @@ import styles from './product-details-panel.module.css.js';
|
|
|
15
15
|
|
|
16
16
|
function ProductDetailsPanel({ priceComponent, product, }) {
|
|
17
17
|
const { sendAddToCartFromProductDetailsPageEvent, sendAddToWishListFromProductDetailsPageEvent, } = useAlgoliaInsights();
|
|
18
|
-
return (jsxs("div", { className: styles['product-details-panel'], children: [jsxs("div", { className: styles.heading, children: [jsx(Heading, { italic: true, size: "xs", children: product.productTitle }), jsx(ProductSku, { sku: product.productNumber })] }), jsxs("div", { className: styles['price-action-container'], children: [priceComponent || (jsx(ProductPrice, { "data-test": "productPrice_unitNetPrice", isVatIncluded: product.isVatIncluded, originalPrice: product.originalPrice, price: product.price })), jsxs("div", { className: styles['action-container'], children: [product.canAddToCart && (jsx(ConnectedAddToCartButton, { onAddToCart: ({ cartLine }) => {
|
|
18
|
+
return (jsxs("div", { className: styles['product-details-panel'], children: [jsxs("div", { className: styles.heading, children: [jsx(Heading, { italic: true, size: "xs", tag: "h1", children: product.productTitle }), jsx(ProductSku, { sku: product.productNumber })] }), jsxs("div", { className: styles['price-action-container'], children: [priceComponent || (jsx(ProductPrice, { "data-test": "productPrice_unitNetPrice", isVatIncluded: product.isVatIncluded, originalPrice: product.originalPrice, price: product.price })), jsxs("div", { className: styles['action-container'], children: [product.canAddToCart && (jsx(ConnectedAddToCartButton, { onAddToCart: ({ cartLine }) => {
|
|
19
19
|
sendAddToCartFromProductDetailsPageEvent({
|
|
20
20
|
cartLine,
|
|
21
21
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var styles = {"product-listing":"product-listing-page-module-U0zLZ","
|
|
1
|
+
var styles = {"product-listing":"product-listing-page-module-U0zLZ","promos":"product-listing-page-module-VvYG3","action-bar":"product-listing-page-module-jGACo","sidebar-toggle":"product-listing-page-module-qhR-J","sort":"product-listing-page-module-3LRKg","count":"product-listing-page-module-3Jtw-","categories":"product-listing-page-module-UwMEE","product-grid-container":"product-listing-page-module-cUe4a","product-grid":"product-listing-page-module-dtbXB","pagination":"product-listing-page-module-zKOQv"};
|
|
2
2
|
|
|
3
3
|
export { styles as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var styles = {"search-results":"search-results-page-module-uE5NE","
|
|
1
|
+
var styles = {"search-results":"search-results-page-module-uE5NE","action-bar":"search-results-page-module--GBRi","sidebar-toggle":"search-results-page-module-7G8Fo","sort":"search-results-page-module-MzRkN","count":"search-results-page-module-rhDU1","categories":"search-results-page-module-uxlXw","product-grid-container":"search-results-page-module-p6Qod","product-grid":"search-results-page-module-7T07c","pagination":"search-results-page-module-zcJy7"};
|
|
2
2
|
|
|
3
3
|
export { styles as default };
|
|
@@ -3,4 +3,4 @@ export interface PatchCartLineParams {
|
|
|
3
3
|
cartLine: CartLineModel;
|
|
4
4
|
cartLineId: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function usePatchCartLineById(): import("@tanstack/react-query").UseMutationResult<
|
|
6
|
+
export declare function usePatchCartLineById(): import("@tanstack/react-query").UseMutationResult<CartLineModel, Error, PatchCartLineParams, unknown>;
|
|
@@ -5,9 +5,13 @@ function usePatchCartLineById() {
|
|
|
5
5
|
const queryClient = useQueryClient();
|
|
6
6
|
return useMutation({
|
|
7
7
|
mutationFn: async ({ cartLine: _cartLine, cartLineId }) => {
|
|
8
|
-
await patchCartLineById({
|
|
8
|
+
const updatedCartLine = await patchCartLineById({
|
|
9
|
+
cartLine: _cartLine,
|
|
10
|
+
cartLineId,
|
|
11
|
+
});
|
|
9
12
|
// Invalidate the related current cart query cache
|
|
10
13
|
queryClient.invalidateQueries({ queryKey: ['carts', 'current'] });
|
|
14
|
+
return updatedCartLine;
|
|
11
15
|
},
|
|
12
16
|
onError: () => {
|
|
13
17
|
queryClient.invalidateQueries({ queryKey: ['carts', 'current'] });
|
|
@@ -11,7 +11,7 @@ export declare function fetchCurrentCartLines(): Promise<CartLineModel[] | null>
|
|
|
11
11
|
export declare function patchCartLineById({ cartLine, cartLineId, }: {
|
|
12
12
|
cartLine: CartLineModel;
|
|
13
13
|
cartLineId: string;
|
|
14
|
-
}): Promise<
|
|
14
|
+
}): Promise<CartLineModel>;
|
|
15
15
|
export declare function patchCart({ cart, forceRecalculation, }: {
|
|
16
16
|
cart: PatchCartModel;
|
|
17
17
|
forceRecalculation?: boolean;
|
|
@@ -26,7 +26,7 @@ async function fetchCurrentCartLines() {
|
|
|
26
26
|
return cartLines;
|
|
27
27
|
}
|
|
28
28
|
async function patchCartLineById({ cartLine, cartLineId, }) {
|
|
29
|
-
await request({
|
|
29
|
+
const { body } = await request({
|
|
30
30
|
body: JSON.stringify(cartLine),
|
|
31
31
|
credentials: 'include',
|
|
32
32
|
headers: {
|
|
@@ -35,6 +35,7 @@ async function patchCartLineById({ cartLine, cartLineId, }) {
|
|
|
35
35
|
method: 'PATCH',
|
|
36
36
|
url: `${config.SHOP_API_URL}/api/v1/carts/current/cartlines/${cartLineId}`,
|
|
37
37
|
});
|
|
38
|
+
return body;
|
|
38
39
|
}
|
|
39
40
|
async function patchCart({ cart, forceRecalculation = true, }) {
|
|
40
41
|
const { body } = await request({
|
|
@@ -28,26 +28,26 @@ class RequestError extends Error {
|
|
|
28
28
|
enumerable: true,
|
|
29
29
|
configurable: true,
|
|
30
30
|
writable: true,
|
|
31
|
-
value:
|
|
31
|
+
value: void 0
|
|
32
32
|
});
|
|
33
33
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
34
|
Object.defineProperty(this, "body", {
|
|
35
35
|
enumerable: true,
|
|
36
36
|
configurable: true,
|
|
37
37
|
writable: true,
|
|
38
|
-
value:
|
|
38
|
+
value: void 0
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(this, "context", {
|
|
41
41
|
enumerable: true,
|
|
42
42
|
configurable: true,
|
|
43
43
|
writable: true,
|
|
44
|
-
value:
|
|
44
|
+
value: void 0
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(this, "options", {
|
|
47
47
|
enumerable: true,
|
|
48
48
|
configurable: true,
|
|
49
49
|
writable: true,
|
|
50
|
-
value:
|
|
50
|
+
value: void 0
|
|
51
51
|
});
|
|
52
52
|
if (isResponse(responseOrError)) {
|
|
53
53
|
this.status = responseOrError.status || status || -1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { createContext,
|
|
3
|
+
import { createContext, useContext, useState, useEffect, useCallback, useRef } from 'react';
|
|
4
4
|
import { deepEqual } from 'fast-equals';
|
|
5
5
|
import { EventEmitter } from '../utils/event-emitter.js';
|
|
6
6
|
|
|
@@ -12,13 +12,13 @@ class State extends EventEmitter {
|
|
|
12
12
|
enumerable: true,
|
|
13
13
|
configurable: true,
|
|
14
14
|
writable: true,
|
|
15
|
-
value:
|
|
15
|
+
value: void 0
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(this, "_key", {
|
|
18
18
|
enumerable: true,
|
|
19
19
|
configurable: true,
|
|
20
20
|
writable: true,
|
|
21
|
-
value:
|
|
21
|
+
value: void 0
|
|
22
22
|
});
|
|
23
23
|
this._state = state;
|
|
24
24
|
this._key = key;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { voidFunction } from '../model/defaults.js';
|
|
2
2
|
|
|
3
|
+
/* eslint-disable import/no-unused-modules */
|
|
3
4
|
/* eslint-disable no-prototype-builtins */
|
|
4
5
|
/** Mocks the localStorage and sessionStorage API in Node.js
|
|
5
6
|
* @see https://gitlab.com/kaictl/node/mock-local-storage */
|
package/dist/styles.css
CHANGED
|
@@ -3068,7 +3068,7 @@
|
|
|
3068
3068
|
}
|
|
3069
3069
|
|
|
3070
3070
|
/**
|
|
3071
|
-
* Swiper 11.2.
|
|
3071
|
+
* Swiper 11.2.5
|
|
3072
3072
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
3073
3073
|
* https://swiperjs.com
|
|
3074
3074
|
*
|
|
@@ -3076,7 +3076,7 @@
|
|
|
3076
3076
|
*
|
|
3077
3077
|
* Released under the MIT License
|
|
3078
3078
|
*
|
|
3079
|
-
* Released on:
|
|
3079
|
+
* Released on: March 3, 2025
|
|
3080
3080
|
*/
|
|
3081
3081
|
|
|
3082
3082
|
/* FONT_START */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var styles = {"popover":"tooltip-module-T-DtX","arrow":"tooltip-module-CBW5f","
|
|
1
|
+
var styles = {"popover":"tooltip-module-T-DtX","arrow":"tooltip-module-CBW5f","trigger-wrapper":"tooltip-module-DRHoc","trigger":"tooltip-module-3q6nr"};
|
|
2
2
|
|
|
3
3
|
export { styles as default };
|