@phillips/seldon 1.118.2 → 1.120.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/_virtual/_commonjsHelpers.js +1 -1
- package/dist/components/Accordion/Accordion.js +18 -18
- package/dist/components/Accordion/AccordionItem.js +67 -68
- package/dist/components/Carousel/Carousel.js +49 -51
- package/dist/components/Carousel/CarouselDots.js +46 -47
- package/dist/components/ContentPeek/ContentPeek.js +47 -47
- package/dist/components/ErrorBoundary/ErrorBoundary.js +11 -12
- package/dist/components/Filter/Filter.js +40 -41
- package/dist/components/Filter/FilterHeader.js +24 -24
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +21 -20
- package/dist/components/Input/Input.stories.d.ts +7 -0
- package/dist/components/Link/utils.js +2 -2
- package/dist/components/LinkBlock/LinkBlock.js +12 -13
- package/dist/components/LinkList/LinkList.js +8 -11
- package/dist/components/Navigation/Navigation.js +21 -22
- package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +49 -50
- package/dist/components/Navigation/NavigationList/NavigationList.js +33 -35
- package/dist/components/Pagination/Pagination.js +7 -7
- package/dist/components/Pagination/utils.js +1 -1
- package/dist/components/PinchZoom/PinchZoom.js +40 -43
- package/dist/components/Search/Search.js +93 -96
- package/dist/components/Search/SearchButton.js +19 -19
- package/dist/components/SeldonImage/SeldonImage.js +1 -1
- package/dist/components/Select/Select.js +22 -14
- package/dist/components/Select/Select.stories.d.ts +15 -0
- package/dist/components/Tabs/TabTrigger.js +13 -13
- package/dist/node_modules/@artsy/fresnel/dist/Breakpoints.js +2 -2
- package/dist/node_modules/@artsy/fresnel/dist/DynamicResponsive.js +1 -1
- package/dist/node_modules/@artsy/fresnel/dist/Interactions.js +2 -2
- package/dist/node_modules/@artsy/fresnel/dist/Media.js +2 -2
- package/dist/node_modules/@artsy/fresnel/dist/MediaQueries.js +1 -1
- package/dist/node_modules/@artsy/fresnel/dist/Utils.js +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +2 -2
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +2 -2
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +5 -5
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +63 -67
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +35 -35
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +80 -84
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.js +5 -5
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.js +43 -45
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +86 -87
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.js +7 -8
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope/dist/index.js +56 -57
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.js +37 -42
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +18 -19
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +86 -87
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +7 -8
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +56 -57
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +113 -115
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +33 -37
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +423 -440
- package/dist/node_modules/@radix-ui/{react-dialog → react-select}/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +28 -28
- package/dist/node_modules/@radix-ui/{react-dialog → react-select}/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +1 -1
- package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +62 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +18 -19
- package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-context/dist/index.js +39 -41
- package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-presence/dist/index.js +37 -42
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +7 -10
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +1 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
- package/dist/node_modules/change-case/dist/index.js +41 -44
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +11 -11
- package/dist/node_modules/date-fns/differenceInDays.js +9 -9
- package/dist/node_modules/date-fns/differenceInHours.js +11 -11
- package/dist/node_modules/date-fns/differenceInMinutes.js +8 -8
- package/dist/node_modules/date-fns/differenceInSeconds.js +7 -7
- package/dist/node_modules/date-fns/formatDuration.js +11 -12
- package/dist/node_modules/date-fns/isSameWeek.js +8 -8
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +12 -12
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +3 -3
- package/dist/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js +5 -5
- package/dist/node_modules/date-fns/locale/zh-CN/_lib/localize.js +10 -10
- package/dist/node_modules/date-fns/startOfDay.js +6 -6
- package/dist/node_modules/date-fns/startOfWeek.js +7 -8
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1 -1
- package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +1 -1
- package/dist/node_modules/exenv/index.js +2 -2
- package/dist/node_modules/get-nonce/dist/es2015/index.js +1 -1
- package/dist/node_modules/prop-types/checkPropTypes.js +2 -2
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +3 -3
- package/dist/node_modules/react-intersection-observer/dist/index.js +2 -2
- package/dist/node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js +1 -1
- package/dist/node_modules/react-modal/lib/components/ModalPortal.js +1 -1
- package/dist/node_modules/react-modal/lib/helpers/scopeTab.js +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +28 -28
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +1 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +34 -32
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/node_modules/react-zoom-pan-pinch/dist/index.esm.js +14 -14
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +1 -1
- package/dist/node_modules/usehooks-ts/dist/index.js +1 -1
- package/dist/node_modules/warning/warning.js +1 -1
- package/dist/node_modules/wheel-gestures/dist/wheel-gestures.esm.js +1 -1
- package/dist/patterns/BidSnapshot/BidSnapshot.js +58 -58
- package/dist/patterns/DetailList/DetailList.js +22 -22
- package/dist/patterns/FilterMenu/FilterMenu.js +15 -15
- package/dist/patterns/LanguageSelector/LanguageSelector.js +23 -23
- package/dist/patterns/LanguageSelector/utils.js +2 -5
- package/dist/patterns/ObjectTile/ObjectTile.js +46 -46
- package/dist/patterns/ViewingsList/StatefulViewingsList.js +16 -16
- package/dist/patterns/ViewingsList/ViewingsList.js +42 -42
- package/dist/patterns/ViewingsList/ViewingsListCard.js +122 -123
- package/dist/patterns/ViewingsList/ViewingsListCardForm.js +170 -170
- package/dist/scss/components/Search/SearchResults/_searchResults.scss +8 -0
- package/dist/site-furniture/Header/Header.js +32 -32
- package/package.json +3 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -64
- /package/dist/node_modules/@radix-ui/{react-dialog → react-select}/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -0
- /package/dist/node_modules/@radix-ui/{react-dialog → react-select}/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -0
- /package/dist/node_modules/@radix-ui/{react-dialog → react-select}/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -0
- /package/dist/node_modules/@radix-ui/{react-dialog → react-select}/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -0
- /package/dist/node_modules/@radix-ui/{react-dialog → react-select}/node_modules/tslib/tslib.es6.js +0 -0
|
@@ -1,58 +1,60 @@
|
|
|
1
|
-
var p = function(
|
|
2
|
-
return
|
|
3
|
-
}, w = function(
|
|
4
|
-
|
|
1
|
+
var p = function(e) {
|
|
2
|
+
return e.tagName === "TEXTAREA";
|
|
3
|
+
}, w = function(e, r) {
|
|
4
|
+
if (!(e instanceof Element))
|
|
5
|
+
return !1;
|
|
6
|
+
var o = window.getComputedStyle(e);
|
|
5
7
|
return (
|
|
6
8
|
// not-not-scrollable
|
|
7
|
-
o[
|
|
8
|
-
!(o.overflowY === o.overflowX && !p(
|
|
9
|
+
o[r] !== "hidden" && // contains scroll inside self
|
|
10
|
+
!(o.overflowY === o.overflowX && !p(e) && o[r] === "visible")
|
|
9
11
|
);
|
|
10
|
-
}, y = function(
|
|
11
|
-
return w(
|
|
12
|
-
}, H = function(
|
|
13
|
-
return w(
|
|
14
|
-
}, R = function(
|
|
15
|
-
var o =
|
|
12
|
+
}, y = function(e) {
|
|
13
|
+
return w(e, "overflowY");
|
|
14
|
+
}, H = function(e) {
|
|
15
|
+
return w(e, "overflowX");
|
|
16
|
+
}, R = function(e, r) {
|
|
17
|
+
var o = r.ownerDocument, t = r;
|
|
16
18
|
do {
|
|
17
|
-
typeof ShadowRoot
|
|
18
|
-
var a = g(
|
|
19
|
+
typeof ShadowRoot < "u" && t instanceof ShadowRoot && (t = t.host);
|
|
20
|
+
var a = g(e, t);
|
|
19
21
|
if (a) {
|
|
20
|
-
var n = b(
|
|
22
|
+
var n = b(e, t), i = n[1], l = n[2];
|
|
21
23
|
if (i > l)
|
|
22
24
|
return !0;
|
|
23
25
|
}
|
|
24
26
|
t = t.parentNode;
|
|
25
27
|
} while (t && t !== o.body);
|
|
26
28
|
return !1;
|
|
27
|
-
}, B = function(
|
|
28
|
-
var
|
|
29
|
+
}, B = function(e) {
|
|
30
|
+
var r = e.scrollTop, o = e.scrollHeight, t = e.clientHeight;
|
|
29
31
|
return [
|
|
30
|
-
|
|
32
|
+
r,
|
|
31
33
|
o,
|
|
32
34
|
t
|
|
33
35
|
];
|
|
34
|
-
}, V = function(
|
|
35
|
-
var
|
|
36
|
+
}, V = function(e) {
|
|
37
|
+
var r = e.scrollLeft, o = e.scrollWidth, t = e.clientWidth;
|
|
36
38
|
return [
|
|
37
|
-
|
|
39
|
+
r,
|
|
38
40
|
o,
|
|
39
41
|
t
|
|
40
42
|
];
|
|
41
|
-
}, g = function(
|
|
42
|
-
return
|
|
43
|
-
}, b = function(
|
|
44
|
-
return
|
|
45
|
-
}, D = function(
|
|
46
|
-
return
|
|
47
|
-
}, W = function(
|
|
48
|
-
var n = D(
|
|
43
|
+
}, g = function(e, r) {
|
|
44
|
+
return e === "v" ? y(r) : H(r);
|
|
45
|
+
}, b = function(e, r) {
|
|
46
|
+
return e === "v" ? B(r) : V(r);
|
|
47
|
+
}, D = function(e, r) {
|
|
48
|
+
return e === "h" && r === "rtl" ? -1 : 1;
|
|
49
|
+
}, W = function(e, r, o, t, a) {
|
|
50
|
+
var n = D(e, window.getComputedStyle(r).direction), i = n * t, l = o.target, f = r.contains(l), c = !1, d = i > 0, s = 0, h = 0;
|
|
49
51
|
do {
|
|
50
|
-
var u = b(
|
|
51
|
-
(v || S) && g(
|
|
52
|
+
var u = b(e, l), v = u[0], m = u[1], C = u[2], S = m - C - n * v;
|
|
53
|
+
(v || S) && g(e, l) && (s += S, h += v), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
|
|
52
54
|
} while (
|
|
53
55
|
// portaled content
|
|
54
56
|
!f && l !== document.body || // self content
|
|
55
|
-
f && (
|
|
57
|
+
f && (r.contains(l) || r === l)
|
|
56
58
|
);
|
|
57
59
|
return (d && (Math.abs(s) < 1 || !a) || !d && (Math.abs(h) < 1 || !a)) && (c = !0), c;
|
|
58
60
|
};
|
|
@@ -9,7 +9,7 @@ var a = {
|
|
|
9
9
|
var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
|
|
10
10
|
return [e(i), e(r), e(d)];
|
|
11
11
|
}, f = function(t) {
|
|
12
|
-
if (t === void 0 && (t = "margin"), typeof window
|
|
12
|
+
if (t === void 0 && (t = "margin"), typeof window > "u")
|
|
13
13
|
return a;
|
|
14
14
|
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
|
15
15
|
return {
|
|
@@ -149,7 +149,7 @@ p.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
149
149
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
150
150
|
*/
|
|
151
151
|
nodeRef: o.shape({
|
|
152
|
-
current: typeof Element
|
|
152
|
+
current: typeof Element > "u" ? o.any : function(d, u, a, i, e, t) {
|
|
153
153
|
var n = d[u];
|
|
154
154
|
return o.instanceOf(n && "ownerDocument" in n ? n.ownerDocument.defaultView.Element : Element)(d, u, a, i, e, t);
|
|
155
155
|
}
|
|
@@ -123,8 +123,8 @@ function H(i, n, e, r, a) {
|
|
|
123
123
|
}
|
|
124
124
|
var hi = function(i, n) {
|
|
125
125
|
var e = i.setup.panning.excluded, r = i.isInitialized, a = i.wrapperComponent, o = n.target, t = "shadowRoot" in o && "composedPath" in n, l = t ? n.composedPath().some(function(u) {
|
|
126
|
-
return u instanceof Element ? a
|
|
127
|
-
}) : a
|
|
126
|
+
return u instanceof Element ? a?.contains(u) : !1;
|
|
127
|
+
}) : a?.contains(o), s = r && o && l;
|
|
128
128
|
if (!s)
|
|
129
129
|
return !1;
|
|
130
130
|
var d = q(o, e);
|
|
@@ -244,7 +244,7 @@ function Ce(i) {
|
|
|
244
244
|
if (i.isPanning) {
|
|
245
245
|
var n = i.setup.panning.velocityDisabled, e = i.velocity, r = i.wrapperComponent, a = i.contentComponent;
|
|
246
246
|
i.isPanning = !1, i.animate = !1, i.animation = null;
|
|
247
|
-
var o = r
|
|
247
|
+
var o = r?.getBoundingClientRect(), t = a?.getBoundingClientRect(), l = o?.width || 0, s = o?.height || 0, d = t?.width || 0, u = t?.height || 0, v = l < d || s < u, f = !n && e && e?.total > 0.1 && v;
|
|
248
248
|
f ? be(i) : zi(i);
|
|
249
249
|
}
|
|
250
250
|
}
|
|
@@ -360,7 +360,7 @@ var Q = {
|
|
|
360
360
|
}, bi = function(i) {
|
|
361
361
|
var n = _({}, M);
|
|
362
362
|
return Object.keys(i).forEach(function(e) {
|
|
363
|
-
var r = typeof i[e]
|
|
363
|
+
var r = typeof i[e] < "u", a = typeof M[e] < "u";
|
|
364
364
|
if (a && r) {
|
|
365
365
|
var o = Object.prototype.toString.call(M[e]), t = o === "[object Object]", l = o === "[object Array]";
|
|
366
366
|
t ? n[e] = _(_({}, M[e]), i[e]) : l ? n[e] = Pi(Pi([], M[e], !0), i[e]) : n[e] = i[e];
|
|
@@ -390,7 +390,7 @@ function Oi(i, n, e, r) {
|
|
|
390
390
|
positionX: p.x,
|
|
391
391
|
positionY: p.y
|
|
392
392
|
};
|
|
393
|
-
d === l.scale && u === l.positionX && v === l.positionY || (r
|
|
393
|
+
d === l.scale && u === l.positionX && v === l.positionY || (r?.(), D(i, m, n, e));
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
function ye(i, n, e, r) {
|
|
@@ -613,7 +613,7 @@ var Ze = function(i, n, e, r, a) {
|
|
|
613
613
|
}
|
|
614
614
|
}, Je = function(i) {
|
|
615
615
|
var n = i.pinchMidpoint;
|
|
616
|
-
i.velocity = null, i.lastDistance = null, i.pinchMidpoint = null, i.pinchStartScale = null, i.pinchStartDistance = null, Ei(i, n
|
|
616
|
+
i.velocity = null, i.lastDistance = null, i.pinchMidpoint = null, i.pinchStartScale = null, i.pinchStartDistance = null, Ei(i, n?.x, n?.y);
|
|
617
617
|
}, Mi = function(i, n) {
|
|
618
618
|
var e = i.props.onZoomStop, r = i.setup.doubleClick.animationTime;
|
|
619
619
|
oi(i.doubleClickStopEventTimer), i.doubleClickStopEventTimer = setTimeout(function() {
|
|
@@ -646,7 +646,7 @@ function Ie(i, n) {
|
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
var ir = function(i, n) {
|
|
649
|
-
var e = i.isInitialized, r = i.setup, a = i.wrapperComponent, o = r.doubleClick, t = o.disabled, l = o.excluded, s = n.target, d = a
|
|
649
|
+
var e = i.isInitialized, r = i.setup, a = i.wrapperComponent, o = r.doubleClick, t = o.disabled, l = o.excluded, s = n.target, d = a?.contains(s), u = e && s && d && !t;
|
|
650
650
|
if (!u)
|
|
651
651
|
return !1;
|
|
652
652
|
var v = q(s, l);
|
|
@@ -663,11 +663,11 @@ var ir = function(i, n) {
|
|
|
663
663
|
}, this.update = function(r) {
|
|
664
664
|
e.props = r, Z(e, e.transformState.scale), e.setup = bi(r);
|
|
665
665
|
}, this.initializeWindowEvents = function() {
|
|
666
|
-
var r, a, o = ei(), t = (r = e.wrapperComponent) === null || r === void 0 ? void 0 : r.ownerDocument, l = t
|
|
667
|
-
(a = e.wrapperComponent) === null || a === void 0 || a.addEventListener("wheel", e.onWheelPanning, o), l
|
|
666
|
+
var r, a, o = ei(), t = (r = e.wrapperComponent) === null || r === void 0 ? void 0 : r.ownerDocument, l = t?.defaultView;
|
|
667
|
+
(a = e.wrapperComponent) === null || a === void 0 || a.addEventListener("wheel", e.onWheelPanning, o), l?.addEventListener("mousedown", e.onPanningStart, o), l?.addEventListener("mousemove", e.onPanning, o), l?.addEventListener("mouseup", e.onPanningStop, o), t?.addEventListener("mouseleave", e.clearPanning, o), l?.addEventListener("keyup", e.setKeyUnPressed, o), l?.addEventListener("keydown", e.setKeyPressed, o);
|
|
668
668
|
}, this.cleanupWindowEvents = function() {
|
|
669
|
-
var r, a, o = ei(), t = (r = e.wrapperComponent) === null || r === void 0 ? void 0 : r.ownerDocument, l = t
|
|
670
|
-
l
|
|
669
|
+
var r, a, o = ei(), t = (r = e.wrapperComponent) === null || r === void 0 ? void 0 : r.ownerDocument, l = t?.defaultView;
|
|
670
|
+
l?.removeEventListener("mousedown", e.onPanningStart, o), l?.removeEventListener("mousemove", e.onPanning, o), l?.removeEventListener("mouseup", e.onPanningStop, o), t?.removeEventListener("mouseleave", e.clearPanning, o), l?.removeEventListener("keyup", e.setKeyUnPressed, o), l?.removeEventListener("keydown", e.setKeyPressed, o), document.removeEventListener("mouseleave", e.clearPanning, o), Y(e), (a = e.observer) === null || a === void 0 || a.disconnect();
|
|
671
671
|
}, this.handleInitializeWrapperEvents = function(r) {
|
|
672
672
|
var a = ei();
|
|
673
673
|
r.addEventListener("wheel", e.onWheelZoom, a), r.addEventListener("dblclick", e.onDoubleClick, a), r.addEventListener("touchstart", e.onTouchPanningStart, a), r.addEventListener("touchmove", e.onTouchPanning, a), r.addEventListener("touchend", e.onTouchPanningStop, a);
|
|
@@ -843,7 +843,7 @@ k.forwardRef(function(i, n) {
|
|
|
843
843
|
function nr(i, n) {
|
|
844
844
|
n === void 0 && (n = {});
|
|
845
845
|
var e = n.insertAt;
|
|
846
|
-
if (typeof document
|
|
846
|
+
if (!(typeof document > "u")) {
|
|
847
847
|
var r = document.head || document.getElementsByTagName("head")[0], a = document.createElement("style");
|
|
848
848
|
a.type = "text/css", e === "top" && r.firstChild ? r.insertBefore(a, r.firstChild) : r.appendChild(a), a.styleSheet ? a.styleSheet.cssText = i : a.appendChild(document.createTextNode(i));
|
|
849
849
|
}
|
|
@@ -884,8 +884,8 @@ var lr = function(i) {
|
|
|
884
884
|
var n = i.children, e = i.wrapperClass, r = e === void 0 ? "" : e, a = i.contentClass, o = a === void 0 ? "" : a, t = i.wrapperStyle, l = i.contentStyle, s = i.wrapperProps, d = s === void 0 ? {} : s, u = i.contentProps, v = u === void 0 ? {} : u, f = yi(ui), p = f.init, m = f.cleanupWindowEvents, h = R(null), c = R(null);
|
|
885
885
|
return ti(function() {
|
|
886
886
|
var P = h.current, b = c.current;
|
|
887
|
-
return P !== null && b !== null && p &&
|
|
888
|
-
m
|
|
887
|
+
return P !== null && b !== null && p && p?.(P, b), function() {
|
|
888
|
+
m?.();
|
|
889
889
|
};
|
|
890
890
|
}, []), k.createElement(
|
|
891
891
|
"div",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
2
|
import { assignRef as o } from "./assignRef.js";
|
|
3
3
|
import { useCallbackRef as l } from "./useRef.js";
|
|
4
|
-
var s = typeof window
|
|
4
|
+
var s = typeof window < "u" ? f.useLayoutEffect : f.useEffect, c = /* @__PURE__ */ new WeakMap();
|
|
5
5
|
function v(e, m) {
|
|
6
6
|
var t = l(null, function(n) {
|
|
7
7
|
return e.forEach(function(u) {
|
|
@@ -80,7 +80,7 @@ function ee(t) {
|
|
|
80
80
|
disconnect: l
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
var te = 16 * 1.125, ne = typeof window
|
|
83
|
+
var te = 16 * 1.125, ne = typeof window < "u" && window.innerHeight || 800, T = [1, te, ne];
|
|
84
84
|
function re(t) {
|
|
85
85
|
var r = t.deltaX * T[t.deltaMode], a = t.deltaY * T[t.deltaMode], o = (t.deltaZ || 0) * T[t.deltaMode];
|
|
86
86
|
return {
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import { getCommonProps as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { LotStatus as
|
|
8
|
-
import
|
|
9
|
-
import { CountdownVariants as
|
|
10
|
-
import { BidStatusEnum as
|
|
11
|
-
import
|
|
12
|
-
import { isAfter as
|
|
13
|
-
import { differenceInMinutes as
|
|
14
|
-
const
|
|
1
|
+
import { jsxs as g, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as V } from "react";
|
|
3
|
+
import k from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { getCommonProps as q, findChildrenOfType as z, findChildrenExcludingTypes as D } from "../../utils/index.js";
|
|
5
|
+
import F from "../DetailList/DetailList.js";
|
|
6
|
+
import d from "../../components/Detail/Detail.js";
|
|
7
|
+
import { LotStatus as t, SupportedLanguages as G } from "../../types/commonTypes.js";
|
|
8
|
+
import H from "../../components/Countdown/Countdown.js";
|
|
9
|
+
import { CountdownVariants as J } from "../../components/Countdown/types.js";
|
|
10
|
+
import { BidStatusEnum as K } from "./types.js";
|
|
11
|
+
import S from "./BidMessage.js";
|
|
12
|
+
import { isAfter as v } from "../../node_modules/date-fns/isAfter.js";
|
|
13
|
+
import { differenceInMinutes as Q } from "../../node_modules/date-fns/differenceInMinutes.js";
|
|
14
|
+
const U = (o) => o === 1 ? `${o} bid` : `${o} bids`, X = V(
|
|
15
15
|
({
|
|
16
|
-
lotStatus: o =
|
|
17
|
-
bidStatus:
|
|
18
|
-
bidsLabelText:
|
|
19
|
-
children:
|
|
20
|
-
className:
|
|
21
|
-
closingText:
|
|
16
|
+
lotStatus: o = t.ready,
|
|
17
|
+
bidStatus: p,
|
|
18
|
+
bidsLabelText: L = U,
|
|
19
|
+
children: c,
|
|
20
|
+
className: w,
|
|
21
|
+
closingText: C = "Closes in",
|
|
22
22
|
currency: r = "$",
|
|
23
|
-
currentBid:
|
|
24
|
-
currentBidText:
|
|
25
|
-
formatDurationStr:
|
|
26
|
-
lang:
|
|
23
|
+
currentBid: f,
|
|
24
|
+
currentBidText: x = "Current bid",
|
|
25
|
+
formatDurationStr: N = (s) => s.replace(/seconds?/, "sec").replace(/minutes?/, "min"),
|
|
26
|
+
lang: T = "en",
|
|
27
27
|
saleCloseDate: i,
|
|
28
|
-
lotCloseDate:
|
|
29
|
-
numberOfBids:
|
|
30
|
-
startingBid:
|
|
28
|
+
lotCloseDate: l,
|
|
29
|
+
numberOfBids: h = 0,
|
|
30
|
+
startingBid: W,
|
|
31
31
|
startingBidText: y = "Starting bid",
|
|
32
|
-
soldPrice:
|
|
33
|
-
soldForText:
|
|
34
|
-
wonForText:
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
const { className:
|
|
38
|
-
[`${
|
|
39
|
-
[`${
|
|
32
|
+
soldPrice: u,
|
|
33
|
+
soldForText: B = "Sold for",
|
|
34
|
+
wonForText: M = "Won for",
|
|
35
|
+
...$
|
|
36
|
+
}, j) => {
|
|
37
|
+
const { className: s, ...E } = q($, "BidSnapshot"), a = f !== null && h > 0, b = o === t.ready, e = o === t.live, P = o === t.past, m = /* @__PURE__ */ new Date(), R = e && l && v(l, m) && i && (Q(i, m) < 60 || v(m, i)), _ = z(c, S), A = D(c, [S]), I = k(s, w, {
|
|
38
|
+
[`${s}--live`]: e,
|
|
39
|
+
[`${s}--has-bids`]: a
|
|
40
40
|
});
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
return /* @__PURE__ */ g("div", { ...E, ...$, ref: j, className: I, children: [
|
|
42
|
+
/* @__PURE__ */ g(F, { hasSeparators: !0, className: `${s}__text`, children: [
|
|
43
|
+
P && a ? /* @__PURE__ */ n(
|
|
44
|
+
d,
|
|
45
45
|
{
|
|
46
|
-
label:
|
|
47
|
-
value:
|
|
46
|
+
label: p === K.Won ? M : B,
|
|
47
|
+
value: u ? `${r}${u?.toLocaleString()}` : "",
|
|
48
48
|
hasWrap: !1
|
|
49
49
|
}
|
|
50
50
|
) : null,
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
e && a ? /* @__PURE__ */ n(
|
|
52
|
+
d,
|
|
53
53
|
{
|
|
54
|
-
label:
|
|
55
|
-
subLabel: `(${
|
|
56
|
-
value: `${r}${
|
|
54
|
+
label: x,
|
|
55
|
+
subLabel: `(${L(h)})`,
|
|
56
|
+
value: `${r}${f?.toLocaleString()}`,
|
|
57
57
|
hasWrap: !1
|
|
58
58
|
}
|
|
59
59
|
) : null,
|
|
60
|
-
|
|
60
|
+
b || e && !a ? /* @__PURE__ */ n(d, { label: y, value: `${r}${W?.toLocaleString()}`, hasWrap: !1 }) : null
|
|
61
61
|
] }),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
p && !b ? _ : null,
|
|
63
|
+
A,
|
|
64
|
+
R ? /* @__PURE__ */ n(
|
|
65
|
+
H,
|
|
66
66
|
{
|
|
67
|
-
endDateTime:
|
|
68
|
-
label:
|
|
69
|
-
variant:
|
|
70
|
-
locale:
|
|
71
|
-
formatDurationStr:
|
|
67
|
+
endDateTime: l,
|
|
68
|
+
label: C,
|
|
69
|
+
variant: J.compact,
|
|
70
|
+
locale: G[T],
|
|
71
|
+
formatDurationStr: N,
|
|
72
72
|
showBottomBorder: !1
|
|
73
73
|
}
|
|
74
74
|
) : null
|
|
75
75
|
] });
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
|
-
|
|
78
|
+
X.displayName = "BidSnapshot";
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
X as default
|
|
81
81
|
};
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import $, { forwardRef as j } from "react";
|
|
3
|
-
import
|
|
4
|
-
import { getCommonProps as
|
|
5
|
-
import { DetailListAlignment as
|
|
6
|
-
import { getDetailKey as
|
|
7
|
-
const
|
|
8
|
-
({ alignment:
|
|
9
|
-
const { className:
|
|
3
|
+
import f from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { getCommonProps as y, px as s } from "../../utils/index.js";
|
|
5
|
+
import { DetailListAlignment as a } from "./types.js";
|
|
6
|
+
import { getDetailKey as D } from "./utils.js";
|
|
7
|
+
const N = j(
|
|
8
|
+
({ alignment: e = a.justified, className: p, children: t, hasSeparators: i = !1, ...o }, c) => {
|
|
9
|
+
const { className: m, ...d } = y(o, "DetailList"), u = Array.isArray(t) ? t : [t];
|
|
10
10
|
return /* @__PURE__ */ l(
|
|
11
11
|
"dl",
|
|
12
12
|
{
|
|
13
13
|
...d,
|
|
14
|
-
className:
|
|
15
|
-
[`${s}-has-separators`]:
|
|
16
|
-
[`${s}-columns`]:
|
|
17
|
-
[`${s}-justified`]:
|
|
14
|
+
className: f(m, p, {
|
|
15
|
+
[`${s}-has-separators`]: i,
|
|
16
|
+
[`${s}-columns`]: e === a.columns,
|
|
17
|
+
[`${s}-justified`]: e === a.justified
|
|
18
18
|
}),
|
|
19
|
-
...
|
|
19
|
+
...o,
|
|
20
20
|
ref: c,
|
|
21
|
-
children:
|
|
22
|
-
(
|
|
21
|
+
children: u?.map(
|
|
22
|
+
(r, n) => $.isValidElement(r) ? /* @__PURE__ */ l(
|
|
23
23
|
"div",
|
|
24
24
|
{
|
|
25
|
-
className:
|
|
26
|
-
[`${s}-has-separators`]:
|
|
27
|
-
[`${s}-columns`]:
|
|
28
|
-
[`${s}-justified`]:
|
|
25
|
+
className: f(`${m}-wrapper`, {
|
|
26
|
+
[`${s}-has-separators`]: i,
|
|
27
|
+
[`${s}-columns`]: e === a.columns,
|
|
28
|
+
[`${s}-justified`]: e === a.justified
|
|
29
29
|
}),
|
|
30
|
-
children:
|
|
30
|
+
children: r
|
|
31
31
|
},
|
|
32
|
-
|
|
32
|
+
D(r, n)
|
|
33
33
|
) : void 0
|
|
34
34
|
)
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
N.displayName = "DetailList";
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
N as default
|
|
42
42
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import d, { forwardRef as
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
({ className:
|
|
8
|
-
const { className:
|
|
9
|
-
|
|
10
|
-
(e) => d.isValidElement(e) && e.type ===
|
|
2
|
+
import d, { forwardRef as F, useState as N, Children as w, cloneElement as C } from "react";
|
|
3
|
+
import { getCommonProps as g } from "../../utils/index.js";
|
|
4
|
+
import t from "../../node_modules/classnames/index.js";
|
|
5
|
+
import A from "../../components/Filter/Filter.js";
|
|
6
|
+
const V = F(
|
|
7
|
+
({ className: a, children: l, element: i = "form", ...r }, m) => {
|
|
8
|
+
const { className: n, ...p } = g(r, "FilterMenu"), [o, f] = N(null), s = o?.length, c = w.map(
|
|
9
|
+
l,
|
|
10
|
+
(e) => d.isValidElement(e) && e.type === A ? C(e, {
|
|
11
11
|
setViewAllFilter: f,
|
|
12
|
-
hidden:
|
|
13
|
-
isViewingAll:
|
|
14
|
-
className:
|
|
12
|
+
hidden: s ? o !== e.props.name : !1,
|
|
13
|
+
isViewingAll: s,
|
|
14
|
+
className: s && t(e.props.className, "is-opening")
|
|
15
15
|
}) : e
|
|
16
16
|
);
|
|
17
|
-
return /* @__PURE__ */ u(
|
|
17
|
+
return /* @__PURE__ */ u(i, { ...p, ...r, className: t(n, a), ref: m, children: c });
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
|
-
|
|
20
|
+
V.displayName = "FilterControl";
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
V as default
|
|
23
23
|
};
|
|
@@ -2,7 +2,7 @@ import { jsxs as v, Fragment as L, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as b } from "react";
|
|
3
3
|
import { getCommonProps as S, noOp as N } from "../../utils/index.js";
|
|
4
4
|
import T from "../../node_modules/classnames/index.js";
|
|
5
|
-
import { SupportedLanguages as
|
|
5
|
+
import { SupportedLanguages as m } from "../../types/commonTypes.js";
|
|
6
6
|
import x from "../../components/Dropdown/Dropdown.js";
|
|
7
7
|
import C from "../../components/Accordion/Accordion.js";
|
|
8
8
|
import k from "../../components/Accordion/AccordionItem.js";
|
|
@@ -12,53 +12,53 @@ import { LinkVariants as M } from "../../components/Link/types.js";
|
|
|
12
12
|
import { TextVariants as V } from "../../components/Text/types.js";
|
|
13
13
|
import A from "../../components/Text/Text.js";
|
|
14
14
|
import I from "../../components/Navigation/NavigationList/NavigationList.js";
|
|
15
|
-
import { SSRMediaQuery as
|
|
15
|
+
import { SSRMediaQuery as d } from "../../providers/SeldonProvider/utils.js";
|
|
16
16
|
import { getLanguageLabel as P } from "./utils.js";
|
|
17
17
|
const j = ({
|
|
18
|
-
id:
|
|
18
|
+
id: r,
|
|
19
19
|
value: l,
|
|
20
20
|
// can't be passed to the accordion
|
|
21
21
|
onValueChange: o,
|
|
22
22
|
label: t,
|
|
23
23
|
options: n,
|
|
24
|
-
...
|
|
25
|
-
}) => /* @__PURE__ */ e(C, { ...
|
|
24
|
+
...i
|
|
25
|
+
}) => /* @__PURE__ */ e(C, { ...i, children: /* @__PURE__ */ e(
|
|
26
26
|
k,
|
|
27
27
|
{
|
|
28
28
|
hasTransition: !0,
|
|
29
|
-
id:
|
|
29
|
+
id: r ?? "language-selector-accordion",
|
|
30
30
|
label: /* @__PURE__ */ e(A, { variant: V.snwHeaderLink, children: t }),
|
|
31
31
|
variant: w.lg,
|
|
32
|
-
children: /* @__PURE__ */ e(I, { id: `${
|
|
32
|
+
children: /* @__PURE__ */ e(I, { id: `${r}-navlist`, children: n.map((a) => /* @__PURE__ */ e(
|
|
33
33
|
y,
|
|
34
34
|
{
|
|
35
|
-
label:
|
|
36
|
-
onClick: () => o(
|
|
35
|
+
label: a.label,
|
|
36
|
+
onClick: () => o(a.value),
|
|
37
37
|
navType: M.snwFlyoutLink
|
|
38
38
|
},
|
|
39
|
-
|
|
39
|
+
a.value
|
|
40
40
|
)) })
|
|
41
41
|
}
|
|
42
42
|
) }), E = b(
|
|
43
43
|
({
|
|
44
|
-
className:
|
|
45
|
-
currentLanguage: l =
|
|
44
|
+
className: r,
|
|
45
|
+
currentLanguage: l = m.en,
|
|
46
46
|
languageOptions: o = [
|
|
47
|
-
{ label: "English", value:
|
|
48
|
-
{ label: "中文", value:
|
|
47
|
+
{ label: "English", value: m.en },
|
|
48
|
+
{ label: "中文", value: m.zh }
|
|
49
49
|
],
|
|
50
50
|
onLanguageChange: t = N,
|
|
51
51
|
id: n,
|
|
52
|
-
isHidden:
|
|
53
|
-
disabled:
|
|
54
|
-
...
|
|
52
|
+
isHidden: i,
|
|
53
|
+
disabled: a = !1,
|
|
54
|
+
...g
|
|
55
55
|
}, s) => {
|
|
56
|
-
const { className: c, ...
|
|
57
|
-
...d,
|
|
56
|
+
const { className: c, ...u } = S({ id: n }, "LanguageSelector"), f = P({ languageOptions: o, currentLanguage: l }), p = {
|
|
58
57
|
...u,
|
|
58
|
+
...g,
|
|
59
59
|
id: n,
|
|
60
|
-
className: T(c,
|
|
61
|
-
[`${c}--hidden`]:
|
|
60
|
+
className: T(c, r, {
|
|
61
|
+
[`${c}--hidden`]: i
|
|
62
62
|
}),
|
|
63
63
|
options: o,
|
|
64
64
|
value: l,
|
|
@@ -66,8 +66,8 @@ const j = ({
|
|
|
66
66
|
label: f
|
|
67
67
|
};
|
|
68
68
|
return /* @__PURE__ */ v(L, { children: [
|
|
69
|
-
/* @__PURE__ */ e(
|
|
70
|
-
/* @__PURE__ */ e(
|
|
69
|
+
/* @__PURE__ */ e(d.Media, { greaterThanOrEqual: "md", children: /* @__PURE__ */ e(x, { ...p, disabled: a, ref: s }) }),
|
|
70
|
+
/* @__PURE__ */ e(d.Media, { lessThan: "md", children: /* @__PURE__ */ e(j, { ...p, ref: s }) })
|
|
71
71
|
] });
|
|
72
72
|
}
|
|
73
73
|
);
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
var e, L;
|
|
3
|
-
return (L = (e = b == null ? void 0 : b.find((d) => d.value === c)) == null ? void 0 : e.label) != null ? L : "English";
|
|
4
|
-
};
|
|
1
|
+
const g = ({ languageOptions: e, currentLanguage: a }) => e?.find((l) => l.value === a)?.label ?? "English";
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
g as getLanguageLabel
|
|
7
4
|
};
|