ublo-lib 1.26.6 → 1.26.8
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.
|
@@ -62,7 +62,7 @@ export default function DateItem({
|
|
|
62
62
|
}
|
|
63
63
|
return acc;
|
|
64
64
|
}, Infinity);
|
|
65
|
-
const isDisabled = enableAvailability && selecting && allMatchingStaysEnd?.length && !allMatchingStaysEnd.includes(
|
|
65
|
+
const isDisabled = enableAvailability && selecting && allMatchingStaysEnd?.length && !allMatchingStaysEnd.includes(date.join("-")) || enableAvailability && !isAvailable || isPastDate || !isInMonth || Utils.isBefore(date, min) || Utils.isAfter(date, max);
|
|
66
66
|
React.useEffect(() => {
|
|
67
67
|
if (isFirstSelected) setFirstSelectedDate(index);
|
|
68
68
|
if (isLastSelected) setLastSelectedDate(index);
|
|
@@ -21,6 +21,7 @@ export default function GescoContactForm({
|
|
|
21
21
|
resort,
|
|
22
22
|
merchant,
|
|
23
23
|
categories,
|
|
24
|
+
subject,
|
|
24
25
|
facet = "WINTER",
|
|
25
26
|
host = "https://admin.mon-sejour-en-montagne.com",
|
|
26
27
|
onSubmit,
|
|
@@ -70,6 +71,12 @@ export default function GescoContactForm({
|
|
|
70
71
|
category: defaultCategoryValue
|
|
71
72
|
};
|
|
72
73
|
}
|
|
74
|
+
if (subject) {
|
|
75
|
+
values = {
|
|
76
|
+
...values,
|
|
77
|
+
subject
|
|
78
|
+
};
|
|
79
|
+
}
|
|
73
80
|
const payload = Form.buildPayload({
|
|
74
81
|
lang: _lang,
|
|
75
82
|
merchant,
|
|
@@ -113,7 +120,7 @@ export default function GescoContactForm({
|
|
|
113
120
|
return _jsxs("form", {
|
|
114
121
|
className: styles.form,
|
|
115
122
|
onSubmit: submitForm,
|
|
116
|
-
children: [_jsx(Select, {
|
|
123
|
+
children: [!subject && _jsx(Select, {
|
|
117
124
|
name: "subject",
|
|
118
125
|
label: messages.subject,
|
|
119
126
|
className: styles.fullWidthField,
|