@heycater/qualification-funnel 1.19.4 → 1.19.6
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/heycater-funnel.iife.js +56 -56
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +7 -3
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4273,7 +4273,11 @@ const useIsGb = () => {
|
|
|
4273
4273
|
};
|
|
4274
4274
|
const getIsGb = (query) => {
|
|
4275
4275
|
if (typeof window !== "undefined") {
|
|
4276
|
-
|
|
4276
|
+
const pathname = window.location.pathname.toLowerCase();
|
|
4277
|
+
if (pathname.includes("london")) {
|
|
4278
|
+
return true;
|
|
4279
|
+
}
|
|
4280
|
+
if (pathname.includes("en-uk")) {
|
|
4277
4281
|
return true;
|
|
4278
4282
|
}
|
|
4279
4283
|
}
|
|
@@ -10845,7 +10849,7 @@ const SwitchesWrapper = styled.div`
|
|
|
10845
10849
|
`;
|
|
10846
10850
|
const defaultLeadTimeInDays = DEFAULT_LEAD_DAYS;
|
|
10847
10851
|
function DatePickerEmbedded() {
|
|
10848
|
-
var _a2, _b;
|
|
10852
|
+
var _a2, _b, _c;
|
|
10849
10853
|
const router = useRouter();
|
|
10850
10854
|
const { answerOf, actions, state } = useQualification();
|
|
10851
10855
|
const { trackAnswer } = useTracking();
|
|
@@ -10859,7 +10863,7 @@ function DatePickerEmbedded() {
|
|
|
10859
10863
|
answers: state.qualification.answers,
|
|
10860
10864
|
selectedCaterer: state.qualification.selectedCaterer
|
|
10861
10865
|
}) : null;
|
|
10862
|
-
const minDateMessage = router.locale
|
|
10866
|
+
const minDateMessage = ((_a2 = router.locale) == null ? void 0 : _a2.startsWith("en")) ? (_b = attributes == null ? void 0 : attributes.minDate) == null ? void 0 : _b.messageEn : (_c = attributes == null ? void 0 : attributes.minDate) == null ? void 0 : _c.messageDe;
|
|
10863
10867
|
const [isRecurringNeedSelected] = useState(
|
|
10864
10868
|
!!answerOf(isRecurringQuestion.id)
|
|
10865
10869
|
);
|