design-system-silkhaus 3.11.0-beta-image-viewer.8 → 3.11.0-beta-image-viewer.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +74 -68
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ var Ke = (e, t) => {
|
|
|
22
22
|
import { j as u, t as Ve, B as fC, c as Ie, a as Oe, u as pp, b as hC, d as vp, e as yp, f as gp, g as mp, F as bp, A as va, h as Cp, o as wp, i as _p, C as Hr, k as xp, l as Dt, m as pC, n as vC, p as Qf, q as Pp, s as yC, r as gC, v as mC, w as k0 } from "./ButtonsGroupSelector-CV01ZD7O.js";
|
|
23
23
|
import { x as D$, y as O$, z as M$ } from "./ButtonsGroupSelector-CV01ZD7O.js";
|
|
24
24
|
import * as re from "react";
|
|
25
|
-
import le, { useState as He, useMemo as xr, useEffect as
|
|
25
|
+
import le, { useState as He, useMemo as xr, useEffect as ft, useCallback as Ze, forwardRef as Cr, createContext as Sp, useRef as Ot, useContext as Ya, useDebugValue as E0, useLayoutEffect as Jf, isValidElement as Cn, useSyncExternalStore as bC, cloneElement as yf } from "react";
|
|
26
26
|
import $e from "moment";
|
|
27
27
|
import Xa, { createPortal as CC } from "react-dom";
|
|
28
28
|
var xt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
@@ -4155,7 +4155,7 @@ const N0 = "data:image/svg+xml,%3csvg%20width='11'%20height='11'%20viewBox='0%20
|
|
|
4155
4155
|
if (I(!0), D)
|
|
4156
4156
|
return D(z);
|
|
4157
4157
|
};
|
|
4158
|
-
|
|
4158
|
+
ft(() => {
|
|
4159
4159
|
m && H(y);
|
|
4160
4160
|
}, [y, m]);
|
|
4161
4161
|
const B = Ze(() => {
|
|
@@ -4621,7 +4621,7 @@ const q0 = (e) => {
|
|
|
4621
4621
|
}, qC = le.forwardRef(
|
|
4622
4622
|
({ className: e, items: t, isExpandedInMobile: r }, n) => {
|
|
4623
4623
|
const [a, i] = He(!1);
|
|
4624
|
-
return
|
|
4624
|
+
return ft(() => {
|
|
4625
4625
|
r && i(r);
|
|
4626
4626
|
}, [r]), /* @__PURE__ */ u.jsxs(
|
|
4627
4627
|
"div",
|
|
@@ -4783,7 +4783,7 @@ const VC = le.forwardRef(
|
|
|
4783
4783
|
const [p, m] = He(d), g = () => {
|
|
4784
4784
|
l && (m(!p), f && f(p));
|
|
4785
4785
|
};
|
|
4786
|
-
return
|
|
4786
|
+
return ft(() => {
|
|
4787
4787
|
l && m(d);
|
|
4788
4788
|
}, [l, d]), /* @__PURE__ */ u.jsxs(
|
|
4789
4789
|
"div",
|
|
@@ -5134,14 +5134,14 @@ zC.displayName = "Stepper";
|
|
|
5134
5134
|
const UC = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23rma6vptgva)'%20fill='%23000'%20fill-opacity='.85'%3e%3cpath%20d='M5.727%2010.882h4.265a.563.563%200%200%200%20.572-.572V4.804a.562.562%200%200%200-.572-.564.555.555%200%200%200-.564.564v4.943h-3.7a.557.557%200%200%200-.573.563c0%20.327.245.572.572.572z'/%3e%3cpath%20d='M10%2018.333c4.559%200%208.333-3.782%208.333-8.333%200-4.559-3.782-8.333-8.341-8.333-4.55%200-8.325%203.774-8.325%208.333%200%204.55%203.782%208.333%208.333%208.333zm0-1.389A6.91%206.91%200%200%201%203.064%2010a6.904%206.904%200%200%201%206.928-6.944A6.925%206.925%200%200%201%2016.945%2010%206.918%206.918%200%200%201%2010%2016.944z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='rma6vptgva'%3e%3cpath%20fill='%23fff'%20d='M0%200h20v20H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", KC = le.forwardRef(
|
|
5135
5135
|
({ time: e, text: t = "", outerDivClass: r = "" }, n) => {
|
|
5136
5136
|
const [a, i] = He(e);
|
|
5137
|
-
|
|
5137
|
+
ft(() => {
|
|
5138
5138
|
const l = setInterval(() => {
|
|
5139
5139
|
i((d) => d <= 1 ? (clearInterval(l), 0) : d - 1);
|
|
5140
5140
|
}, 1e3);
|
|
5141
5141
|
return () => {
|
|
5142
5142
|
clearInterval(l);
|
|
5143
5143
|
};
|
|
5144
|
-
}, [a]),
|
|
5144
|
+
}, [a]), ft(() => {
|
|
5145
5145
|
i(e);
|
|
5146
5146
|
}, [e]);
|
|
5147
5147
|
const s = ((l) => {
|
|
@@ -12426,10 +12426,10 @@ function sy() {
|
|
|
12426
12426
|
}, R.setContainerRef = function(B) {
|
|
12427
12427
|
this.container = B;
|
|
12428
12428
|
}, R.render = function() {
|
|
12429
|
-
var B = this, z = this.props, X = z.enableOutsideDays, G = z.firstVisibleMonthIndex, Q = z.horizontalMonthPadding, te = z.isAnimating, W = z.modifiers, S = z.numberOfMonths, $ = z.monthFormat, F = z.orientation, K = z.translationValue, ne = z.daySize, Z = z.onDayMouseEnter, A = z.onDayMouseLeave, ee = z.onDayClick, ie = z.renderMonthText, ce = z.renderCalendarDay, se = z.renderDayContents, he = z.renderMonthElement, ge = z.onMonthTransitionEnd, oe = z.firstDayOfWeek, ue = z.focusedDate, ae = z.isFocused, de = z.isRTL, ye = z.styles, De = z.phrases, pe = z.dayAriaLabelFormat, we = z.transitionDuration, be = z.verticalBorderSpacing, me = z.setMonthTitleHeight, Y = this.state.months, J = F === _.VERTICAL_ORIENTATION, _e = F === _.VERTICAL_SCROLLABLE, Pe = F === _.HORIZONTAL_ORIENTATION, Re = (0, O.default)(ne, Q), Te = J || _e ? Re : (S + 2) * Re, lt = J || _e ? "translateY" : "translateX",
|
|
12429
|
+
var B = this, z = this.props, X = z.enableOutsideDays, G = z.firstVisibleMonthIndex, Q = z.horizontalMonthPadding, te = z.isAnimating, W = z.modifiers, S = z.numberOfMonths, $ = z.monthFormat, F = z.orientation, K = z.translationValue, ne = z.daySize, Z = z.onDayMouseEnter, A = z.onDayMouseLeave, ee = z.onDayClick, ie = z.renderMonthText, ce = z.renderCalendarDay, se = z.renderDayContents, he = z.renderMonthElement, ge = z.onMonthTransitionEnd, oe = z.firstDayOfWeek, ue = z.focusedDate, ae = z.isFocused, de = z.isRTL, ye = z.styles, De = z.phrases, pe = z.dayAriaLabelFormat, we = z.transitionDuration, be = z.verticalBorderSpacing, me = z.setMonthTitleHeight, Y = this.state.months, J = F === _.VERTICAL_ORIENTATION, _e = F === _.VERTICAL_SCROLLABLE, Pe = F === _.HORIZONTAL_ORIENTATION, Re = (0, O.default)(ne, Q), Te = J || _e ? Re : (S + 2) * Re, lt = J || _e ? "translateY" : "translateX", ht = "".concat(lt, "(").concat(K, "px)");
|
|
12430
12430
|
return s.default.createElement("div", (0, n.default)({}, (0, f.css)(ye.CalendarMonthGrid, Pe && ye.CalendarMonthGrid__horizontal, J && ye.CalendarMonthGrid__vertical, _e && ye.CalendarMonthGrid__vertical_scrollable, te && ye.CalendarMonthGrid__animating, te && we && {
|
|
12431
12431
|
transition: "transform ".concat(we, "ms ease-in-out")
|
|
12432
|
-
}, x({}, (0, D.default)(
|
|
12432
|
+
}, x({}, (0, D.default)(ht), {
|
|
12433
12433
|
width: Te
|
|
12434
12434
|
})), {
|
|
12435
12435
|
ref: this.setContainerRef,
|
|
@@ -15888,7 +15888,7 @@ function F2() {
|
|
|
15888
15888
|
key: "week-".concat(A)
|
|
15889
15889
|
}), d.default.createElement("ul", (0, h.css)(ge.DayPicker_weekHeader_ul), pe));
|
|
15890
15890
|
}, K.render = function() {
|
|
15891
|
-
for (var A = this, ee = this.state, ie = ee.calendarMonthWidth, ce = ee.currentMonth, se = ee.monthTransition, he = ee.translationValue, ge = ee.scrollableMonthMultiple, oe = ee.focusedDate, ue = ee.showKeyboardShortcuts, ae = ee.isTouchDevice, de = ee.hasSetHeight, ye = ee.calendarInfoWidth, De = ee.monthTitleHeight, pe = this.props, we = pe.enableOutsideDays, be = pe.numberOfMonths, me = pe.orientation, Y = pe.modifiers, J = pe.withPortal, _e = pe.onDayClick, Pe = pe.onDayMouseEnter, Re = pe.onDayMouseLeave, Te = pe.firstDayOfWeek, lt = pe.renderMonthText,
|
|
15891
|
+
for (var A = this, ee = this.state, ie = ee.calendarMonthWidth, ce = ee.currentMonth, se = ee.monthTransition, he = ee.translationValue, ge = ee.scrollableMonthMultiple, oe = ee.focusedDate, ue = ee.showKeyboardShortcuts, ae = ee.isTouchDevice, de = ee.hasSetHeight, ye = ee.calendarInfoWidth, De = ee.monthTitleHeight, pe = this.props, we = pe.enableOutsideDays, be = pe.numberOfMonths, me = pe.orientation, Y = pe.modifiers, J = pe.withPortal, _e = pe.onDayClick, Pe = pe.onDayMouseEnter, Re = pe.onDayMouseLeave, Te = pe.firstDayOfWeek, lt = pe.renderMonthText, ht = pe.renderCalendarDay, at = pe.renderDayContents, Ye = pe.renderCalendarInfo, Xe = pe.renderMonthElement, ct = pe.renderKeyboardShortcutsButton, ut = pe.renderKeyboardShortcutsPanel, Nt = pe.calendarInfoPosition, xe = pe.hideKeyboardShortcutsPanel, sr = pe.onOutsideClick, vt = pe.monthFormat, zt = pe.daySize, Yt = pe.isFocused, At = pe.isRTL, dt = pe.styles, Ut = pe.theme, Tt = pe.phrases, qt = pe.verticalHeight, Ht = pe.dayAriaLabelFormat, kt = pe.noBorder, lr = pe.transitionDuration, wt = pe.verticalBorderSpacing, pr = pe.horizontalMonthPadding, vr = pe.navPosition, Tr = Ut.reactDates.spacing.dayPickerHorizontalPadding, $t = this.isHorizontal(), _r = this.isVertical() ? 1 : be, b0 = [], eo = 0; eo < _r; eo += 1)
|
|
15892
15892
|
b0.push(this.renderWeekHeader(eo));
|
|
15893
15893
|
var Ur = me === H.VERTICAL_SCROLLABLE, to;
|
|
15894
15894
|
$t ? to = this.calendarMonthGridHeight : this.isVertical() && !Ur && !J && (to = qt || 1.75 * ie);
|
|
@@ -15945,7 +15945,7 @@ function F2() {
|
|
|
15945
15945
|
onMonthChange: this.onMonthChange,
|
|
15946
15946
|
onYearChange: this.onYearChange,
|
|
15947
15947
|
renderMonthText: lt,
|
|
15948
|
-
renderCalendarDay:
|
|
15948
|
+
renderCalendarDay: ht,
|
|
15949
15949
|
renderDayContents: at,
|
|
15950
15950
|
renderMonthElement: Xe,
|
|
15951
15951
|
onMonthTransitionEnd: this.updateStateAfterMonthTransition,
|
|
@@ -16371,15 +16371,15 @@ function Fy() {
|
|
|
16371
16371
|
}, S.onDayClick = S.onDayClick.bind((0, i.default)(S)), S.onDayMouseEnter = S.onDayMouseEnter.bind((0, i.default)(S)), S.onDayMouseLeave = S.onDayMouseLeave.bind((0, i.default)(S)), S.onPrevMonthClick = S.onPrevMonthClick.bind((0, i.default)(S)), S.onNextMonthClick = S.onNextMonthClick.bind((0, i.default)(S)), S.onMonthChange = S.onMonthChange.bind((0, i.default)(S)), S.onYearChange = S.onYearChange.bind((0, i.default)(S)), S.onGetNextScrollableMonths = S.onGetNextScrollableMonths.bind((0, i.default)(S)), S.onGetPrevScrollableMonths = S.onGetPrevScrollableMonths.bind((0, i.default)(S)), S.getFirstFocusableDay = S.getFirstFocusableDay.bind((0, i.default)(S)), S;
|
|
16372
16372
|
}
|
|
16373
16373
|
return Q.componentWillReceiveProps = function(S) {
|
|
16374
|
-
var $ = this, F = S.startDate, K = S.endDate, ne = S.focusedInput, Z = S.getMinNightsForHoverDate, A = S.minimumNights, ee = S.isOutsideRange, ie = S.isDayBlocked, ce = S.isDayHighlighted, se = S.phrases, he = S.initialVisibleMonth, ge = S.numberOfMonths, oe = S.enableOutsideDays, ue = this.props, ae = ue.startDate, de = ue.endDate, ye = ue.focusedInput, De = ue.minimumNights, pe = ue.isOutsideRange, we = ue.isDayBlocked, be = ue.isDayHighlighted, me = ue.phrases, Y = ue.initialVisibleMonth, J = ue.numberOfMonths, _e = ue.enableOutsideDays, Pe = this.state.hoverDate, Re = this.state.visibleDays, Te = !1, lt = !1,
|
|
16374
|
+
var $ = this, F = S.startDate, K = S.endDate, ne = S.focusedInput, Z = S.getMinNightsForHoverDate, A = S.minimumNights, ee = S.isOutsideRange, ie = S.isDayBlocked, ce = S.isDayHighlighted, se = S.phrases, he = S.initialVisibleMonth, ge = S.numberOfMonths, oe = S.enableOutsideDays, ue = this.props, ae = ue.startDate, de = ue.endDate, ye = ue.focusedInput, De = ue.minimumNights, pe = ue.isOutsideRange, we = ue.isDayBlocked, be = ue.isDayHighlighted, me = ue.phrases, Y = ue.initialVisibleMonth, J = ue.numberOfMonths, _e = ue.enableOutsideDays, Pe = this.state.hoverDate, Re = this.state.visibleDays, Te = !1, lt = !1, ht = !1;
|
|
16375
16375
|
ee !== pe && (this.modifiers["blocked-out-of-range"] = function(kt) {
|
|
16376
16376
|
return ee(kt);
|
|
16377
16377
|
}, Te = !0), ie !== we && (this.modifiers["blocked-calendar"] = function(kt) {
|
|
16378
16378
|
return ie(kt);
|
|
16379
16379
|
}, lt = !0), ce !== be && (this.modifiers["highlighted-calendar"] = function(kt) {
|
|
16380
16380
|
return ce(kt);
|
|
16381
|
-
},
|
|
16382
|
-
var at = Te || lt ||
|
|
16381
|
+
}, ht = !0);
|
|
16382
|
+
var at = Te || lt || ht, Ye = F !== ae, Xe = K !== de, ct = ne !== ye;
|
|
16383
16383
|
if (ge !== J || oe !== _e || he !== Y && !ye && ct) {
|
|
16384
16384
|
var ut = this.getStateForNewMonth(S), Nt = ut.currentMonth;
|
|
16385
16385
|
Re = ut.visibleDays, this.setState({
|
|
@@ -16420,7 +16420,7 @@ function Fy() {
|
|
|
16420
16420
|
if ((ct || at) && (0, h.default)(Re).forEach(function(kt) {
|
|
16421
16421
|
Object.keys(kt).forEach(function(lr) {
|
|
16422
16422
|
var wt = (0, q.default)(lr), pr = !1;
|
|
16423
|
-
(ct || Te) && (ee(wt) ? (xe = $.addModifier(xe, wt, "blocked-out-of-range"), pr = !0) : xe = $.deleteModifier(xe, wt, "blocked-out-of-range")), (ct || lt) && (ie(wt) ? (xe = $.addModifier(xe, wt, "blocked-calendar"), pr = !0) : xe = $.deleteModifier(xe, wt, "blocked-calendar")), pr ? xe = $.addModifier(xe, wt, "blocked") : xe = $.deleteModifier(xe, wt, "blocked"), (ct ||
|
|
16423
|
+
(ct || Te) && (ee(wt) ? (xe = $.addModifier(xe, wt, "blocked-out-of-range"), pr = !0) : xe = $.deleteModifier(xe, wt, "blocked-out-of-range")), (ct || lt) && (ie(wt) ? (xe = $.addModifier(xe, wt, "blocked-calendar"), pr = !0) : xe = $.deleteModifier(xe, wt, "blocked-calendar")), pr ? xe = $.addModifier(xe, wt, "blocked") : xe = $.deleteModifier(xe, wt, "blocked"), (ct || ht) && (ce(wt) ? xe = $.addModifier(xe, wt, "highlighted-calendar") : xe = $.deleteModifier(xe, wt, "highlighted-calendar"));
|
|
16424
16424
|
});
|
|
16425
16425
|
}), !this.isTouchDevice && ct && Pe && !this.isBlocked(Pe)) {
|
|
16426
16426
|
var Tt = Z(Pe);
|
|
@@ -16735,7 +16735,7 @@ function Fy() {
|
|
|
16735
16735
|
var $ = this.props, F = $.startDate, K = $.endDate, ne = $.minimumNights, Z = this.state || {}, A = Z.hoverDate;
|
|
16736
16736
|
return !!K && !F && !this.isBlocked(S) && (0, P.default)(A, S) && ne > 0 && (0, C.default)(A, K);
|
|
16737
16737
|
}, Q.render = function() {
|
|
16738
|
-
var S = this.props, $ = S.numberOfMonths, F = S.orientation, K = S.monthFormat, ne = S.renderMonthText, Z = S.renderWeekHeaderElement, A = S.dayPickerNavigationInlineStyles, ee = S.navPosition, ie = S.navPrev, ce = S.navNext, se = S.renderNavPrevButton, he = S.renderNavNextButton, ge = S.noNavButtons, oe = S.noNavNextButton, ue = S.noNavPrevButton, ae = S.onOutsideClick, de = S.withPortal, ye = S.enableOutsideDays, De = S.firstDayOfWeek, pe = S.renderKeyboardShortcutsButton, we = S.renderKeyboardShortcutsPanel, be = S.hideKeyboardShortcutsPanel, me = S.daySize, Y = S.focusedInput, J = S.renderCalendarDay, _e = S.renderDayContents, Pe = S.renderCalendarInfo, Re = S.renderMonthElement, Te = S.calendarInfoPosition, lt = S.onBlur,
|
|
16738
|
+
var S = this.props, $ = S.numberOfMonths, F = S.orientation, K = S.monthFormat, ne = S.renderMonthText, Z = S.renderWeekHeaderElement, A = S.dayPickerNavigationInlineStyles, ee = S.navPosition, ie = S.navPrev, ce = S.navNext, se = S.renderNavPrevButton, he = S.renderNavNextButton, ge = S.noNavButtons, oe = S.noNavNextButton, ue = S.noNavPrevButton, ae = S.onOutsideClick, de = S.withPortal, ye = S.enableOutsideDays, De = S.firstDayOfWeek, pe = S.renderKeyboardShortcutsButton, we = S.renderKeyboardShortcutsPanel, be = S.hideKeyboardShortcutsPanel, me = S.daySize, Y = S.focusedInput, J = S.renderCalendarDay, _e = S.renderDayContents, Pe = S.renderCalendarInfo, Re = S.renderMonthElement, Te = S.calendarInfoPosition, lt = S.onBlur, ht = S.onShiftTab, at = S.onTab, Ye = S.isFocused, Xe = S.showKeyboardShortcuts, ct = S.isRTL, ut = S.weekDayFormat, Nt = S.dayAriaLabelFormat, xe = S.verticalHeight, sr = S.noBorder, vt = S.transitionDuration, zt = S.verticalBorderSpacing, Yt = S.horizontalMonthPadding, At = this.state, dt = At.currentMonth, Ut = At.phrases, Tt = At.visibleDays, qt = At.disablePrev, Ht = At.disableNext;
|
|
16739
16739
|
return s.default.createElement(H.default, {
|
|
16740
16740
|
orientation: F,
|
|
16741
16741
|
enableOutsideDays: ye,
|
|
@@ -16748,7 +16748,7 @@ function Fy() {
|
|
|
16748
16748
|
onNextMonthClick: this.onNextMonthClick,
|
|
16749
16749
|
onMonthChange: this.onMonthChange,
|
|
16750
16750
|
onTab: at,
|
|
16751
|
-
onShiftTab:
|
|
16751
|
+
onShiftTab: ht,
|
|
16752
16752
|
onYearChange: this.onYearChange,
|
|
16753
16753
|
onGetNextScrollableMonths: this.onGetNextScrollableMonths,
|
|
16754
16754
|
onGetPrevScrollableMonths: this.onGetPrevScrollableMonths,
|
|
@@ -17018,7 +17018,7 @@ function gP() {
|
|
|
17018
17018
|
var v = this.props, L = v.withPortal, B = v.withFullScreenPortal, z = v.appendToBody;
|
|
17019
17019
|
return this.isOpened() ? L || B || z ? s.default.createElement(c.Portal, null, this.renderDayPicker()) : this.renderDayPicker() : null;
|
|
17020
17020
|
}, H.renderDayPicker = function() {
|
|
17021
|
-
var v = this.props, L = v.anchorDirection, B = v.openDirection, z = v.isDayBlocked, X = v.isDayHighlighted, G = v.isOutsideRange, Q = v.numberOfMonths, te = v.orientation, W = v.monthFormat, S = v.renderMonthText, $ = v.renderWeekHeaderElement, F = v.dayPickerNavigationInlineStyles, K = v.navPosition, ne = v.navPrev, Z = v.navNext, A = v.renderNavPrevButton, ee = v.renderNavNextButton, ie = v.onPrevMonthClick, ce = v.onNextMonthClick, se = v.onDatesChange, he = v.onFocusChange, ge = v.withPortal, oe = v.withFullScreenPortal, ue = v.daySize, ae = v.enableOutsideDays, de = v.focusedInput, ye = v.startDate, De = v.startDateOffset, pe = v.endDate, we = v.endDateOffset, be = v.minDate, me = v.maxDate, Y = v.minimumNights, J = v.keepOpenOnDateSelect, _e = v.renderCalendarDay, Pe = v.renderDayContents, Re = v.renderCalendarInfo, Te = v.renderMonthElement, lt = v.calendarInfoPosition,
|
|
17021
|
+
var v = this.props, L = v.anchorDirection, B = v.openDirection, z = v.isDayBlocked, X = v.isDayHighlighted, G = v.isOutsideRange, Q = v.numberOfMonths, te = v.orientation, W = v.monthFormat, S = v.renderMonthText, $ = v.renderWeekHeaderElement, F = v.dayPickerNavigationInlineStyles, K = v.navPosition, ne = v.navPrev, Z = v.navNext, A = v.renderNavPrevButton, ee = v.renderNavNextButton, ie = v.onPrevMonthClick, ce = v.onNextMonthClick, se = v.onDatesChange, he = v.onFocusChange, ge = v.withPortal, oe = v.withFullScreenPortal, ue = v.daySize, ae = v.enableOutsideDays, de = v.focusedInput, ye = v.startDate, De = v.startDateOffset, pe = v.endDate, we = v.endDateOffset, be = v.minDate, me = v.maxDate, Y = v.minimumNights, J = v.keepOpenOnDateSelect, _e = v.renderCalendarDay, Pe = v.renderDayContents, Re = v.renderCalendarInfo, Te = v.renderMonthElement, lt = v.calendarInfoPosition, ht = v.firstDayOfWeek, at = v.initialVisibleMonth, Ye = v.hideKeyboardShortcutsPanel, Xe = v.customCloseIcon, ct = v.onClose, ut = v.phrases, Nt = v.dayAriaLabelFormat, xe = v.isRTL, sr = v.weekDayFormat, vt = v.styles, zt = v.verticalHeight, Yt = v.transitionDuration, At = v.verticalSpacing, dt = v.horizontalMonthPadding, Ut = v.small, Tt = v.disabled, qt = v.theme.reactDates, Ht = this.state, kt = Ht.dayPickerContainerStyles, lr = Ht.isDayPickerFocused, wt = Ht.showKeyboardShortcuts, pr = !oe && ge ? this.onOutsideClick : void 0, vr = at || function() {
|
|
17022
17022
|
return ye || pe || (0, l.default)();
|
|
17023
17023
|
}, Tr = Xe || s.default.createElement(T.default, (0, d.css)(vt.DateRangePicker_closeButton_svg)), $t = (0, D.default)(qt, Ut), _r = ge || oe;
|
|
17024
17024
|
return s.default.createElement("div", (0, n.default)({
|
|
@@ -17074,7 +17074,7 @@ function gP() {
|
|
|
17074
17074
|
phrases: ut,
|
|
17075
17075
|
dayAriaLabelFormat: Nt,
|
|
17076
17076
|
isRTL: xe,
|
|
17077
|
-
firstDayOfWeek:
|
|
17077
|
+
firstDayOfWeek: ht,
|
|
17078
17078
|
weekDayFormat: sr,
|
|
17079
17079
|
verticalHeight: zt,
|
|
17080
17080
|
transitionDuration: Yt,
|
|
@@ -17086,7 +17086,7 @@ function gP() {
|
|
|
17086
17086
|
"aria-label": ut.closeDatePicker
|
|
17087
17087
|
}), Tr));
|
|
17088
17088
|
}, H.render = function() {
|
|
17089
|
-
var v = this.props, L = v.startDate, B = v.startDateId, z = v.startDatePlaceholderText, X = v.startDateAriaLabel, G = v.endDate, Q = v.endDateId, te = v.endDatePlaceholderText, W = v.endDateAriaLabel, S = v.focusedInput, $ = v.screenReaderInputMessage, F = v.showClearDates, K = v.showDefaultInputIcon, ne = v.inputIconPosition, Z = v.customInputIcon, A = v.customArrowIcon, ee = v.customCloseIcon, ie = v.disabled, ce = v.required, se = v.readOnly, he = v.openDirection, ge = v.phrases, oe = v.isOutsideRange, ue = v.minimumNights, ae = v.withPortal, de = v.withFullScreenPortal, ye = v.displayFormat, De = v.reopenPickerOnClearDates, pe = v.keepOpenOnDateSelect, we = v.onDatesChange, be = v.onClose, me = v.isRTL, Y = v.noBorder, J = v.block, _e = v.verticalSpacing, Pe = v.small, Re = v.regular, Te = v.styles, lt = this.state.isDateRangePickerInputFocused,
|
|
17089
|
+
var v = this.props, L = v.startDate, B = v.startDateId, z = v.startDatePlaceholderText, X = v.startDateAriaLabel, G = v.endDate, Q = v.endDateId, te = v.endDatePlaceholderText, W = v.endDateAriaLabel, S = v.focusedInput, $ = v.screenReaderInputMessage, F = v.showClearDates, K = v.showDefaultInputIcon, ne = v.inputIconPosition, Z = v.customInputIcon, A = v.customArrowIcon, ee = v.customCloseIcon, ie = v.disabled, ce = v.required, se = v.readOnly, he = v.openDirection, ge = v.phrases, oe = v.isOutsideRange, ue = v.minimumNights, ae = v.withPortal, de = v.withFullScreenPortal, ye = v.displayFormat, De = v.reopenPickerOnClearDates, pe = v.keepOpenOnDateSelect, we = v.onDatesChange, be = v.onClose, me = v.isRTL, Y = v.noBorder, J = v.block, _e = v.verticalSpacing, Pe = v.small, Re = v.regular, Te = v.styles, lt = this.state.isDateRangePickerInputFocused, ht = !ae && !de, at = _e < w.FANG_HEIGHT_PX, Ye = s.default.createElement(E.default, {
|
|
17090
17090
|
startDate: L,
|
|
17091
17091
|
startDateId: B,
|
|
17092
17092
|
startDatePlaceholderText: z,
|
|
@@ -17131,9 +17131,9 @@ function gP() {
|
|
|
17131
17131
|
}, this.maybeRenderDayPickerWithPortal());
|
|
17132
17132
|
return s.default.createElement("div", (0, n.default)({
|
|
17133
17133
|
ref: this.setContainerRef
|
|
17134
|
-
}, (0, d.css)(Te.DateRangePicker, J && Te.DateRangePicker__block)),
|
|
17134
|
+
}, (0, d.css)(Te.DateRangePicker, J && Te.DateRangePicker__block)), ht && s.default.createElement(m.default, {
|
|
17135
17135
|
onOutsideClick: this.onOutsideClick
|
|
17136
|
-
}, Ye),
|
|
17136
|
+
}, Ye), ht || Ye);
|
|
17137
17137
|
}, q;
|
|
17138
17138
|
}(s.default.PureComponent || s.default.Component);
|
|
17139
17139
|
e.PureDateRangePicker = I, I.propTypes = process.env.NODE_ENV !== "production" ? x : {}, I.defaultProps = j;
|
|
@@ -17568,7 +17568,7 @@ function qy() {
|
|
|
17568
17568
|
var L = this.props.firstDayOfWeek;
|
|
17569
17569
|
return v.day() === ((L || f.default.localeData().firstDayOfWeek()) + 6) % 7;
|
|
17570
17570
|
}, H.render = function() {
|
|
17571
|
-
var v = this.props, L = v.numberOfMonths, B = v.orientation, z = v.monthFormat, X = v.renderMonthText, G = v.renderWeekHeaderElement, Q = v.dayPickerNavigationInlineStyles, te = v.navPosition, W = v.navPrev, S = v.navNext, $ = v.renderNavPrevButton, F = v.renderNavNextButton, K = v.noNavButtons, ne = v.noNavPrevButton, Z = v.noNavNextButton, A = v.onOutsideClick, ee = v.onShiftTab, ie = v.onTab, ce = v.withPortal, se = v.focused, he = v.enableOutsideDays, ge = v.hideKeyboardShortcutsPanel, oe = v.daySize, ue = v.firstDayOfWeek, ae = v.renderCalendarDay, de = v.renderDayContents, ye = v.renderCalendarInfo, De = v.renderMonthElement, pe = v.calendarInfoPosition, we = v.isFocused, be = v.isRTL, me = v.phrases, Y = v.dayAriaLabelFormat, J = v.onBlur, _e = v.showKeyboardShortcuts, Pe = v.weekDayFormat, Re = v.verticalHeight, Te = v.noBorder, lt = v.transitionDuration,
|
|
17571
|
+
var v = this.props, L = v.numberOfMonths, B = v.orientation, z = v.monthFormat, X = v.renderMonthText, G = v.renderWeekHeaderElement, Q = v.dayPickerNavigationInlineStyles, te = v.navPosition, W = v.navPrev, S = v.navNext, $ = v.renderNavPrevButton, F = v.renderNavNextButton, K = v.noNavButtons, ne = v.noNavPrevButton, Z = v.noNavNextButton, A = v.onOutsideClick, ee = v.onShiftTab, ie = v.onTab, ce = v.withPortal, se = v.focused, he = v.enableOutsideDays, ge = v.hideKeyboardShortcutsPanel, oe = v.daySize, ue = v.firstDayOfWeek, ae = v.renderCalendarDay, de = v.renderDayContents, ye = v.renderCalendarInfo, De = v.renderMonthElement, pe = v.calendarInfoPosition, we = v.isFocused, be = v.isRTL, me = v.phrases, Y = v.dayAriaLabelFormat, J = v.onBlur, _e = v.showKeyboardShortcuts, Pe = v.weekDayFormat, Re = v.verticalHeight, Te = v.noBorder, lt = v.transitionDuration, ht = v.verticalBorderSpacing, at = v.horizontalMonthPadding, Ye = this.state, Xe = Ye.currentMonth, ct = Ye.visibleDays;
|
|
17572
17572
|
return s.default.createElement(w.default, {
|
|
17573
17573
|
orientation: B,
|
|
17574
17574
|
enableOutsideDays: he,
|
|
@@ -17622,7 +17622,7 @@ function qy() {
|
|
|
17622
17622
|
verticalHeight: Re,
|
|
17623
17623
|
noBorder: Te,
|
|
17624
17624
|
transitionDuration: lt,
|
|
17625
|
-
verticalBorderSpacing:
|
|
17625
|
+
verticalBorderSpacing: ht,
|
|
17626
17626
|
horizontalMonthPadding: at
|
|
17627
17627
|
});
|
|
17628
17628
|
}, q;
|
|
@@ -18327,7 +18327,7 @@ function bP() {
|
|
|
18327
18327
|
var v = this.props, L = v.focused, B = v.withPortal, z = v.withFullScreenPortal, X = v.appendToBody;
|
|
18328
18328
|
return L ? B || z || X ? s.default.createElement(c.Portal, null, this.renderDayPicker()) : this.renderDayPicker() : null;
|
|
18329
18329
|
}, H.renderDayPicker = function() {
|
|
18330
|
-
var v = this.props, L = v.anchorDirection, B = v.openDirection, z = v.onDateChange, X = v.date, G = v.onFocusChange, Q = v.focused, te = v.enableOutsideDays, W = v.numberOfMonths, S = v.orientation, $ = v.monthFormat, F = v.dayPickerNavigationInlineStyles, K = v.navPosition, ne = v.navPrev, Z = v.navNext, A = v.renderNavPrevButton, ee = v.renderNavNextButton, ie = v.onPrevMonthClick, ce = v.onNextMonthClick, se = v.onClose, he = v.withPortal, ge = v.withFullScreenPortal, oe = v.keepOpenOnDateSelect, ue = v.initialVisibleMonth, ae = v.renderMonthText, de = v.renderWeekHeaderElement, ye = v.renderCalendarDay, De = v.renderDayContents, pe = v.renderCalendarInfo, we = v.renderMonthElement, be = v.calendarInfoPosition, me = v.hideKeyboardShortcutsPanel, Y = v.firstDayOfWeek, J = v.customCloseIcon, _e = v.phrases, Pe = v.dayAriaLabelFormat, Re = v.daySize, Te = v.isRTL, lt = v.isOutsideRange,
|
|
18330
|
+
var v = this.props, L = v.anchorDirection, B = v.openDirection, z = v.onDateChange, X = v.date, G = v.onFocusChange, Q = v.focused, te = v.enableOutsideDays, W = v.numberOfMonths, S = v.orientation, $ = v.monthFormat, F = v.dayPickerNavigationInlineStyles, K = v.navPosition, ne = v.navPrev, Z = v.navNext, A = v.renderNavPrevButton, ee = v.renderNavNextButton, ie = v.onPrevMonthClick, ce = v.onNextMonthClick, se = v.onClose, he = v.withPortal, ge = v.withFullScreenPortal, oe = v.keepOpenOnDateSelect, ue = v.initialVisibleMonth, ae = v.renderMonthText, de = v.renderWeekHeaderElement, ye = v.renderCalendarDay, De = v.renderDayContents, pe = v.renderCalendarInfo, we = v.renderMonthElement, be = v.calendarInfoPosition, me = v.hideKeyboardShortcutsPanel, Y = v.firstDayOfWeek, J = v.customCloseIcon, _e = v.phrases, Pe = v.dayAriaLabelFormat, Re = v.daySize, Te = v.isRTL, lt = v.isOutsideRange, ht = v.isDayBlocked, at = v.isDayHighlighted, Ye = v.weekDayFormat, Xe = v.styles, ct = v.verticalHeight, ut = v.transitionDuration, Nt = v.verticalSpacing, xe = v.horizontalMonthPadding, sr = v.small, vt = v.theme.reactDates, zt = this.state, Yt = zt.dayPickerContainerStyles, At = zt.isDayPickerFocused, dt = zt.showKeyboardShortcuts, Ut = !ge && he ? this.onOutsideClick : void 0, Tt = J || s.default.createElement(T.default, null), qt = (0, D.default)(vt, sr), Ht = he || ge;
|
|
18331
18331
|
return s.default.createElement("div", (0, n.default)({
|
|
18332
18332
|
ref: this.setDayPickerContainerRef
|
|
18333
18333
|
}, (0, d.css)(Xe.SingleDatePicker_picker, L === w.ANCHOR_LEFT && Xe.SingleDatePicker_picker__directionLeft, L === w.ANCHOR_RIGHT && Xe.SingleDatePicker_picker__directionRight, B === w.OPEN_DOWN && Xe.SingleDatePicker_picker__openDown, B === w.OPEN_UP && Xe.SingleDatePicker_picker__openUp, !Ht && B === w.OPEN_DOWN && {
|
|
@@ -18373,7 +18373,7 @@ function bP() {
|
|
|
18373
18373
|
daySize: Re,
|
|
18374
18374
|
isRTL: Te,
|
|
18375
18375
|
isOutsideRange: lt,
|
|
18376
|
-
isDayBlocked:
|
|
18376
|
+
isDayBlocked: ht,
|
|
18377
18377
|
isDayHighlighted: at,
|
|
18378
18378
|
firstDayOfWeek: Y,
|
|
18379
18379
|
weekDayFormat: Ye,
|
|
@@ -18688,7 +18688,7 @@ function DP() {
|
|
|
18688
18688
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
18689
18689
|
if (ne(Te, "numericSeparator") && typeof Te.numericSeparator != "boolean")
|
|
18690
18690
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
18691
|
-
var
|
|
18691
|
+
var ht = Te.numericSeparator;
|
|
18692
18692
|
if (typeof J == "undefined")
|
|
18693
18693
|
return "undefined";
|
|
18694
18694
|
if (J === null)
|
|
@@ -18701,11 +18701,11 @@ function DP() {
|
|
|
18701
18701
|
if (J === 0)
|
|
18702
18702
|
return 1 / 0 / J > 0 ? "0" : "-0";
|
|
18703
18703
|
var at = String(J);
|
|
18704
|
-
return
|
|
18704
|
+
return ht ? H(J, at) : at;
|
|
18705
18705
|
}
|
|
18706
18706
|
if (typeof J == "bigint") {
|
|
18707
18707
|
var Ye = String(J) + "n";
|
|
18708
|
-
return
|
|
18708
|
+
return ht ? H(J, Ye) : Ye;
|
|
18709
18709
|
}
|
|
18710
18710
|
var Xe = typeof Te.depth == "undefined" ? 5 : Te.depth;
|
|
18711
18711
|
if (typeof Pe == "undefined" && (Pe = 0), Pe >= Xe && Xe > 0 && typeof J == "object")
|
|
@@ -19000,8 +19000,8 @@ function DP() {
|
|
|
19000
19000
|
var Te = typeof k == "function" ? k(Y) : [], lt;
|
|
19001
19001
|
if (j) {
|
|
19002
19002
|
lt = {};
|
|
19003
|
-
for (var
|
|
19004
|
-
lt["$" + Te[
|
|
19003
|
+
for (var ht = 0; ht < Te.length; ht++)
|
|
19004
|
+
lt["$" + Te[ht]] = Te[ht];
|
|
19005
19005
|
}
|
|
19006
19006
|
for (var at in Y)
|
|
19007
19007
|
ne(Y, at) && (_e && String(Number(at)) === at && at < Y.length || j && lt["$" + at] instanceof Symbol || (M.call(/[^\w$]/, at) ? Pe.push(J(at, Y) + ": " + J(Y[at], Y)) : Pe.push(at + ": " + J(Y[at], Y))));
|
|
@@ -22139,7 +22139,7 @@ var DO = function(t) {
|
|
|
22139
22139
|
return a;
|
|
22140
22140
|
};
|
|
22141
22141
|
function Q8(e) {
|
|
22142
|
-
return e ?
|
|
22142
|
+
return e ? ft : le.useInsertionEffect || // React 18+ (https://github.com/reactwg/react-18/discussions/110)
|
|
22143
22143
|
Jf;
|
|
22144
22144
|
}
|
|
22145
22145
|
var zc = {}, EO = function(t, r) {
|
|
@@ -22184,7 +22184,7 @@ var zc = {}, EO = function(t, r) {
|
|
|
22184
22184
|
var O = xr(function() {
|
|
22185
22185
|
return C && D ? kO(C, D) : f;
|
|
22186
22186
|
}, [C, D]);
|
|
22187
|
-
return E0(O), E0(y === zc ? "No theme" : y),
|
|
22187
|
+
return E0(O), E0(y === zc ? "No theme" : y), ft(function() {
|
|
22188
22188
|
m.current = !1;
|
|
22189
22189
|
}), O;
|
|
22190
22190
|
};
|
|
@@ -22346,7 +22346,7 @@ const RO = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%20
|
|
|
22346
22346
|
bg.displayName = "OverlayNavMobile";
|
|
22347
22347
|
function IO(e, t) {
|
|
22348
22348
|
const r = Ot(e), n = Ot(null);
|
|
22349
|
-
|
|
22349
|
+
ft(() => {
|
|
22350
22350
|
r.current = e;
|
|
22351
22351
|
}, [e]);
|
|
22352
22352
|
const a = (...i) => {
|
|
@@ -22354,7 +22354,7 @@ function IO(e, t) {
|
|
|
22354
22354
|
r.current(...i);
|
|
22355
22355
|
}, t);
|
|
22356
22356
|
};
|
|
22357
|
-
return
|
|
22357
|
+
return ft(() => () => {
|
|
22358
22358
|
n.current !== null && clearTimeout(n.current);
|
|
22359
22359
|
}, []), a;
|
|
22360
22360
|
}
|
|
@@ -22405,7 +22405,13 @@ const LO = le.forwardRef(
|
|
|
22405
22405
|
}, U) => {
|
|
22406
22406
|
const V = le.useRef(null), [H, q] = le.useState({}), [R, v] = He(r), [L, B] = He(n), [z, X] = He(a), [G, Q] = He("horizontal"), { documentWidth: te, documentHeight: W } = pC(), [S, $] = He(2), [F, K] = He(!1), [ne, Z] = He(b), [A, ee] = He(
|
|
22407
22407
|
te < O ? "small" : "large"
|
|
22408
|
-
), ie = HO({ mobileBreakPoint: O, isOnDialogBox: I })
|
|
22408
|
+
), ie = HO({ mobileBreakPoint: O, isOnDialogBox: I });
|
|
22409
|
+
ft(() => {
|
|
22410
|
+
I || v(r);
|
|
22411
|
+
}, [I, r]), ft(() => {
|
|
22412
|
+
I || B(n);
|
|
22413
|
+
}, [I, n]);
|
|
22414
|
+
const ce = ({
|
|
22409
22415
|
startDate: me,
|
|
22410
22416
|
endDate: Y
|
|
22411
22417
|
}) => {
|
|
@@ -22421,7 +22427,7 @@ const LO = le.forwardRef(
|
|
|
22421
22427
|
}, [t, e]), ge = Ze(() => {
|
|
22422
22428
|
t && t({ startDate: R, endDate: L });
|
|
22423
22429
|
}, [L, t, R]);
|
|
22424
|
-
|
|
22430
|
+
ft(() => {
|
|
22425
22431
|
te < O ? (Q(I ? "verticalScrollable" : "horizontal"), $(I ? 13 : 1), K(I), ee("small"), Z(C)) : (Q("horizontal"), $(2), K(!1), ee("large"), Z(b));
|
|
22426
22432
|
}, [b, C, te, O]);
|
|
22427
22433
|
const oe = () => {
|
|
@@ -22462,7 +22468,7 @@ const LO = le.forwardRef(
|
|
|
22462
22468
|
}) : q({});
|
|
22463
22469
|
}
|
|
22464
22470
|
}, [te, W, O]), de = IO(oe, 200);
|
|
22465
|
-
|
|
22471
|
+
ft(() => (setTimeout(() => {
|
|
22466
22472
|
de();
|
|
22467
22473
|
}, 100), window.addEventListener("resize", de), () => {
|
|
22468
22474
|
window.removeEventListener("resize", de);
|
|
@@ -22527,8 +22533,8 @@ const LO = le.forwardRef(
|
|
|
22527
22533
|
Ie(
|
|
22528
22534
|
te < O && I && "ds-w-full ds-p-0",
|
|
22529
22535
|
te < O && !I && "ds-inline-block ds-w-fit",
|
|
22530
|
-
te >= O && "ds-inline-block ds-w-auto ds-p-6",
|
|
22531
|
-
!I && "calendar-mode ds-bg-white ds-p-0",
|
|
22536
|
+
te >= O && I && "ds-inline-block ds-w-auto ds-p-6",
|
|
22537
|
+
!I && "calendar-mode ds-inline-block ds-w-auto ds-bg-white ds-p-0",
|
|
22532
22538
|
"silkhaus-date-picker"
|
|
22533
22539
|
)
|
|
22534
22540
|
),
|
|
@@ -22737,7 +22743,7 @@ const Cg = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%20
|
|
|
22737
22743
|
"icon",
|
|
22738
22744
|
"disabled"
|
|
22739
22745
|
]), [g, y] = He([]), [b, C] = He(!1);
|
|
22740
|
-
|
|
22746
|
+
ft(() => {
|
|
22741
22747
|
n && n.length ? y(n) : y([]);
|
|
22742
22748
|
}, [n]);
|
|
22743
22749
|
const D = (N, T) => {
|
|
@@ -26112,7 +26118,7 @@ const KT = Cr(
|
|
|
26112
26118
|
"buttonsContainerClassName",
|
|
26113
26119
|
"buttonClassName"
|
|
26114
26120
|
]), [p, m] = He([]), [g, y] = He("");
|
|
26115
|
-
|
|
26121
|
+
ft(() => {
|
|
26116
26122
|
r && r.length ? m(r) : m([]);
|
|
26117
26123
|
}, [r]);
|
|
26118
26124
|
const b = (O, P) => {
|
|
@@ -30098,7 +30104,7 @@ function o0(e, t) {
|
|
|
30098
30104
|
}
|
|
30099
30105
|
function ur(e) {
|
|
30100
30106
|
var t = Ot(e);
|
|
30101
|
-
return
|
|
30107
|
+
return ft(function() {
|
|
30102
30108
|
t.current = e;
|
|
30103
30109
|
}), Ze(function() {
|
|
30104
30110
|
for (var r, n = arguments.length, a = new Array(n), i = 0; i < n; i++)
|
|
@@ -30196,7 +30202,7 @@ var RA = function(t) {
|
|
|
30196
30202
|
}), D = ur(function() {
|
|
30197
30203
|
m();
|
|
30198
30204
|
});
|
|
30199
|
-
return
|
|
30205
|
+
return ft(function() {
|
|
30200
30206
|
return function() {
|
|
30201
30207
|
p();
|
|
30202
30208
|
};
|
|
@@ -30675,7 +30681,7 @@ const HA = le.forwardRef(
|
|
|
30675
30681
|
e,
|
|
30676
30682
|
t
|
|
30677
30683
|
]);
|
|
30678
|
-
|
|
30684
|
+
ft(() => {
|
|
30679
30685
|
m([e, t]);
|
|
30680
30686
|
}, [e, t]);
|
|
30681
30687
|
const g = ([P, M]) => {
|
|
@@ -30758,7 +30764,7 @@ const HA = le.forwardRef(
|
|
|
30758
30764
|
HA.displayName = "PriceRangeSlider";
|
|
30759
30765
|
const Ym = (e) => {
|
|
30760
30766
|
const { showPopup: t } = e, [r, n] = He(!1);
|
|
30761
|
-
return
|
|
30767
|
+
return ft(() => {
|
|
30762
30768
|
t && n(window.innerWidth >= Qf);
|
|
30763
30769
|
}, [t]), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
30764
30770
|
t && !r && /* @__PURE__ */ u.jsx(Xm, fe({}, e)),
|
|
@@ -30816,7 +30822,7 @@ const Qm = ({
|
|
|
30816
30822
|
}
|
|
30817
30823
|
}) => {
|
|
30818
30824
|
const a = Ot(null);
|
|
30819
|
-
return
|
|
30825
|
+
return ft(() => {
|
|
30820
30826
|
const i = (o) => {
|
|
30821
30827
|
const s = o.target;
|
|
30822
30828
|
a.current && !a.current.contains(s) && (window.removeEventListener("click", i), e == null || e());
|
|
@@ -31139,7 +31145,7 @@ function Gi(e) {
|
|
|
31139
31145
|
O.target === f.current && (p(), b.removeEventListener("animationend", D), b.removeEventListener("animationcancel", D), y.current === 0 && O.type !== "animationcancel" && b.classList.remove(...C));
|
|
31140
31146
|
};
|
|
31141
31147
|
b.classList.add(...C), b.addEventListener("animationend", D), b.addEventListener("animationcancel", D);
|
|
31142
|
-
}, []),
|
|
31148
|
+
}, []), ft(() => {
|
|
31143
31149
|
const b = f.current, C = () => {
|
|
31144
31150
|
b.removeEventListener("animationend", C), a ? VA(b, c, i) : c();
|
|
31145
31151
|
};
|
|
@@ -31267,7 +31273,7 @@ function zA(e) {
|
|
|
31267
31273
|
D.style.transition = "transform 0.2s, opacity 0.2s", D.style.removeProperty("transform"), D.style.removeProperty("opacity");
|
|
31268
31274
|
}
|
|
31269
31275
|
}
|
|
31270
|
-
(p = Zt.get((h = { id: e.toastId, containerId: e.containerId, fn: r }).containerId || 1)) == null || p.setToggle(h.id, h.fn),
|
|
31276
|
+
(p = Zt.get((h = { id: e.toastId, containerId: e.containerId, fn: r }).containerId || 1)) == null || p.setToggle(h.id, h.fn), ft(() => {
|
|
31271
31277
|
if (e.pauseOnFocusLoss) return document.hasFocus() || g(), window.addEventListener("focus", m), window.addEventListener("blur", g), () => {
|
|
31272
31278
|
window.removeEventListener("focus", m), window.removeEventListener("blur", g);
|
|
31273
31279
|
};
|
|
@@ -31309,19 +31315,19 @@ function _i(e, t) {
|
|
|
31309
31315
|
function $a(e) {
|
|
31310
31316
|
return (t, r) => sa(t, _i(e, r));
|
|
31311
31317
|
}
|
|
31312
|
-
function
|
|
31318
|
+
function pt(e, t) {
|
|
31313
31319
|
return sa(e, _i("default", t));
|
|
31314
31320
|
}
|
|
31315
|
-
|
|
31321
|
+
pt.loading = (e, t) => sa(e, _i("default", fe({ isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1 }, t))), pt.promise = function(e, t, r) {
|
|
31316
31322
|
let n, { pending: a, error: i, success: o } = t;
|
|
31317
|
-
a && (n = rn(a) ?
|
|
31323
|
+
a && (n = rn(a) ? pt.loading(a, r) : pt.loading(a.render, fe(fe({}, r), a)));
|
|
31318
31324
|
const s = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, l = (c, f, h) => {
|
|
31319
|
-
if (f == null) return void
|
|
31325
|
+
if (f == null) return void pt.dismiss(n);
|
|
31320
31326
|
const p = qe(fe(fe({ type: c }, s), r), { data: h }), m = rn(f) ? { render: f } : f;
|
|
31321
|
-
return n ?
|
|
31327
|
+
return n ? pt.update(n, fe(fe({}, p), m)) : pt(m.render, fe(fe({}, p), m)), h;
|
|
31322
31328
|
}, d = ar(e) ? e() : e;
|
|
31323
31329
|
return d.then((c) => l("success", o, c)).catch((c) => l("error", i, c)), d;
|
|
31324
|
-
},
|
|
31330
|
+
}, pt.success = $a("success"), pt.info = $a("info"), pt.error = $a("error"), pt.warning = $a("warning"), pt.warn = pt.warning, pt.dark = (e, t) => sa(e, _i("default", fe({ theme: "dark" }, t))), pt.dismiss = function(e) {
|
|
31325
31331
|
(function(t) {
|
|
31326
31332
|
var r;
|
|
31327
31333
|
if (eb()) {
|
|
@@ -31336,11 +31342,11 @@ ht.loading = (e, t) => sa(e, _i("default", fe({ isLoading: !0, autoClose: !1, cl
|
|
|
31336
31342
|
}
|
|
31337
31343
|
} else pa = pa.filter((n) => t != null && n.options.toastId !== t);
|
|
31338
31344
|
})(e);
|
|
31339
|
-
},
|
|
31345
|
+
}, pt.clearWaitingQueue = function(e) {
|
|
31340
31346
|
e === void 0 && (e = {}), Zt.forEach((t) => {
|
|
31341
31347
|
!t.props.limit || e.containerId && t.id !== e.containerId || t.clearQueue();
|
|
31342
31348
|
});
|
|
31343
|
-
},
|
|
31349
|
+
}, pt.isActive = tb, pt.update = function(e, t) {
|
|
31344
31350
|
t === void 0 && (t = {});
|
|
31345
31351
|
const r = ((n, a) => {
|
|
31346
31352
|
var i;
|
|
@@ -31353,14 +31359,14 @@ ht.loading = (e, t) => sa(e, _i("default", fe({ isLoading: !0, autoClose: !1, cl
|
|
|
31353
31359
|
const o = i.render || a;
|
|
31354
31360
|
delete i.render, sa(o, i);
|
|
31355
31361
|
}
|
|
31356
|
-
},
|
|
31357
|
-
|
|
31358
|
-
},
|
|
31362
|
+
}, pt.done = (e) => {
|
|
31363
|
+
pt.update(e, { progress: 1 });
|
|
31364
|
+
}, pt.onChange = function(e) {
|
|
31359
31365
|
return zf.add(e), () => {
|
|
31360
31366
|
zf.delete(e);
|
|
31361
31367
|
};
|
|
31362
|
-
},
|
|
31363
|
-
const GA = typeof window != "undefined" ? Jf :
|
|
31368
|
+
}, pt.play = (e) => G9(!0, e), pt.pause = (e) => G9(!1, e);
|
|
31369
|
+
const GA = typeof window != "undefined" ? Jf : ft, Va = (e) => {
|
|
31364
31370
|
let i = e, { theme: t, type: r, isLoading: n } = i, a = Ke(i, ["theme", "type", "isLoading"]);
|
|
31365
31371
|
return le.createElement("svg", fe({ viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${r})` }, a));
|
|
31366
31372
|
}, sf = { info: function(e) {
|
|
@@ -31401,7 +31407,7 @@ function JA(e) {
|
|
|
31401
31407
|
return ar(d) ? d({ position: g, rtl: f, defaultClassName: y }) : Ie(y, Ka(d));
|
|
31402
31408
|
}
|
|
31403
31409
|
function m() {
|
|
31404
|
-
r && (a(!0),
|
|
31410
|
+
r && (a(!0), pt.play());
|
|
31405
31411
|
}
|
|
31406
31412
|
return GA(() => {
|
|
31407
31413
|
if (r) {
|
|
@@ -31416,7 +31422,7 @@ function JA(e) {
|
|
|
31416
31422
|
});
|
|
31417
31423
|
}
|
|
31418
31424
|
}, [n, l, r]), le.createElement("div", { ref: i, className: "Toastify", id: h, onMouseEnter: () => {
|
|
31419
|
-
r && (a(!1),
|
|
31425
|
+
r && (a(!1), pt.pause());
|
|
31420
31426
|
}, onMouseLeave: m }, o((g, y) => {
|
|
31421
31427
|
const b = y.length ? fe({}, c) : qe(fe({}, c), { pointerEvents: "none" });
|
|
31422
31428
|
return le.createElement("div", { className: p(g), style: b, key: `container-${g}` }, y.map((C) => {
|
|
@@ -31425,7 +31431,7 @@ function JA(e) {
|
|
|
31425
31431
|
}));
|
|
31426
31432
|
}));
|
|
31427
31433
|
}
|
|
31428
|
-
const h$ =
|
|
31434
|
+
const h$ = pt, p$ = (e) => {
|
|
31429
31435
|
const t = JA;
|
|
31430
31436
|
return /* @__PURE__ */ u.jsx(
|
|
31431
31437
|
t,
|
|
@@ -32279,7 +32285,7 @@ const LL = ({
|
|
|
32279
32285
|
currency: l
|
|
32280
32286
|
}) => {
|
|
32281
32287
|
const [d, c] = He(!1), [f, h] = He([]), [p, m] = He(t);
|
|
32282
|
-
return
|
|
32288
|
+
return ft(() => {
|
|
32283
32289
|
let g = t;
|
|
32284
32290
|
const y = [];
|
|
32285
32291
|
r.forEach((b, C) => {
|
|
@@ -32359,7 +32365,7 @@ const HL = ({
|
|
|
32359
32365
|
onChange: n
|
|
32360
32366
|
}) => {
|
|
32361
32367
|
const [a, i] = He(t);
|
|
32362
|
-
|
|
32368
|
+
ft(() => {
|
|
32363
32369
|
i(t);
|
|
32364
32370
|
}, [t]);
|
|
32365
32371
|
const o = (s) => {
|
|
@@ -32436,7 +32442,7 @@ const g$ = ({
|
|
|
32436
32442
|
},
|
|
32437
32443
|
[e]
|
|
32438
32444
|
);
|
|
32439
|
-
return
|
|
32445
|
+
return ft(() => (document.addEventListener("mousedown", m), () => {
|
|
32440
32446
|
document.removeEventListener("mousedown", m);
|
|
32441
32447
|
}), []), /* @__PURE__ */ u.jsxs(
|
|
32442
32448
|
"div",
|
|
@@ -32806,7 +32812,7 @@ const WL = ({
|
|
|
32806
32812
|
}) => {
|
|
32807
32813
|
var s;
|
|
32808
32814
|
const [a, i] = He(r != null ? r : (s = e[0]) == null ? void 0 : s.value);
|
|
32809
|
-
if (
|
|
32815
|
+
if (ft(() => {
|
|
32810
32816
|
r !== void 0 && i(r);
|
|
32811
32817
|
}, [r]), !e.length) return null;
|
|
32812
32818
|
const o = (l) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "design-system-silkhaus",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.11.0-beta-image-viewer.
|
|
4
|
+
"version": "3.11.0-beta-image-viewer.9",
|
|
5
5
|
"description": "Design system for Silkhaus built with Typescript, React and Tailwind",
|
|
6
6
|
"author": "silkhaus",
|
|
7
7
|
"license": "MIT",
|