@heycater/qualification-funnel 1.19.21 → 1.19.22-legacy.2
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.esm.js
CHANGED
|
@@ -8444,7 +8444,7 @@ function isDataInStorageInvalid(data) {
|
|
|
8444
8444
|
})
|
|
8445
8445
|
});
|
|
8446
8446
|
validator.validateSync(data);
|
|
8447
|
-
const cityItems = cityQuestion.getItems({});
|
|
8447
|
+
const cityItems = cityQuestion.getItems({ answers: {} });
|
|
8448
8448
|
if (cityItems.length === 1) {
|
|
8449
8449
|
const storedData = data;
|
|
8450
8450
|
const cityStep2 = (_b = (_a2 = storedData.qualification) == null ? void 0 : _a2.steps) == null ? void 0 : _b.find((s3) => s3.id === "city");
|
|
@@ -9130,6 +9130,11 @@ function formatDate(dateString, locale2) {
|
|
|
9130
9130
|
function toUnixTimestamp(date2) {
|
|
9131
9131
|
return (date2.getTime() / 1e3).toFixed(0);
|
|
9132
9132
|
}
|
|
9133
|
+
function formatBudget(amount) {
|
|
9134
|
+
const isGb = getIsGb();
|
|
9135
|
+
const symbol = getCurrencySymbol(isGb);
|
|
9136
|
+
return isGb ? `${symbol}${amount ?? 0}` : `${amount ?? 0}${symbol}`;
|
|
9137
|
+
}
|
|
9133
9138
|
const usePillValue = ({
|
|
9134
9139
|
stepId,
|
|
9135
9140
|
questionId
|
|
@@ -9273,8 +9278,8 @@ function getPillValue({
|
|
|
9273
9278
|
stepId,
|
|
9274
9279
|
questionId: "price_per_person",
|
|
9275
9280
|
text: t2("qualification:selection.budget", {
|
|
9276
|
-
perPerson: pricePerPerson,
|
|
9277
|
-
total: total2
|
|
9281
|
+
perPerson: formatBudget(pricePerPerson),
|
|
9282
|
+
total: formatBudget(total2)
|
|
9278
9283
|
})
|
|
9279
9284
|
}
|
|
9280
9285
|
];
|
|
@@ -9532,7 +9537,7 @@ const EmbeddedQuestionLayout = ({
|
|
|
9532
9537
|
title,
|
|
9533
9538
|
subtitle,
|
|
9534
9539
|
content,
|
|
9535
|
-
containerSize
|
|
9540
|
+
containerSize,
|
|
9536
9541
|
disableGutters,
|
|
9537
9542
|
answerContainerSize = 826,
|
|
9538
9543
|
side,
|
|
@@ -9541,6 +9546,7 @@ const EmbeddedQuestionLayout = ({
|
|
|
9541
9546
|
...boxProps
|
|
9542
9547
|
}) => {
|
|
9543
9548
|
const isFullscreen = mode === "fullscreen";
|
|
9549
|
+
const effectiveContainerSize = containerSize ?? (isFullscreen ? "md" : "sm");
|
|
9544
9550
|
const { state } = useQualification();
|
|
9545
9551
|
const isMobile = useBreakpointDown("sm");
|
|
9546
9552
|
if (state.status !== QUALIFICATION_STATUS.answered && state.status !== QUALIFICATION_STATUS.answering && state.status !== QUALIFICATION_STATUS.qualifiedForRequest) {
|
|
@@ -9553,7 +9559,7 @@ const EmbeddedQuestionLayout = ({
|
|
|
9553
9559
|
return /* @__PURE__ */ jsxs(
|
|
9554
9560
|
Container,
|
|
9555
9561
|
{
|
|
9556
|
-
size:
|
|
9562
|
+
size: effectiveContainerSize,
|
|
9557
9563
|
disableGutters,
|
|
9558
9564
|
...isFullscreen ? { style: { display: "flex", flexDirection: "column", flexGrow: 1 } } : {},
|
|
9559
9565
|
...boxProps,
|
|
@@ -9704,6 +9710,10 @@ const FullscreenTitle = styled.h2`
|
|
|
9704
9710
|
${({ theme }) => theme.breakpoints.up("md")} {
|
|
9705
9711
|
font-size: 30px;
|
|
9706
9712
|
}
|
|
9713
|
+
|
|
9714
|
+
${({ theme }) => theme.breakpoints.up("lg")} {
|
|
9715
|
+
font-size: 34px;
|
|
9716
|
+
}
|
|
9707
9717
|
`;
|
|
9708
9718
|
const StickyFooter = styled.div`
|
|
9709
9719
|
position: sticky;
|
|
@@ -10266,17 +10276,8 @@ function trackOptimeleonConversion(eventName, serviceType) {
|
|
|
10266
10276
|
}
|
|
10267
10277
|
function trackGtagConversion(eventName, params) {
|
|
10268
10278
|
if (typeof window === "undefined") return;
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
window.gtag("event", eventName, {
|
|
10272
|
-
...params,
|
|
10273
|
-
transport_type: "beacon",
|
|
10274
|
-
send_to: getConfig().googleTagId || void 0
|
|
10275
|
-
});
|
|
10276
|
-
} catch (error) {
|
|
10277
|
-
console.error("[gtag] Failed to send event:", error);
|
|
10278
|
-
}
|
|
10279
|
-
}
|
|
10279
|
+
window.dataLayer = window.dataLayer || [];
|
|
10280
|
+
window.dataLayer.push({ event: eventName, ...params });
|
|
10280
10281
|
}
|
|
10281
10282
|
function serializeAnswerValue(value) {
|
|
10282
10283
|
if (value === void 0) return null;
|
|
@@ -10558,6 +10559,11 @@ const TilesWrapper = styled(Box)`
|
|
|
10558
10559
|
flex-wrap: wrap;
|
|
10559
10560
|
justify-content: center;
|
|
10560
10561
|
}
|
|
10562
|
+
|
|
10563
|
+
${({ theme }) => theme.breakpoints.up("lg")} {
|
|
10564
|
+
max-width: 1200px;
|
|
10565
|
+
gap: ${({ theme, $size }) => $size === "sm" ? theme.spacing(2) : theme.spacing(3)}px;
|
|
10566
|
+
}
|
|
10561
10567
|
`;
|
|
10562
10568
|
const StyledTileTypography = styled(Typography)`
|
|
10563
10569
|
line-height: 172.5%;
|
|
@@ -11491,6 +11497,11 @@ const ServiceTile = styled(Tile)`
|
|
|
11491
11497
|
flex-shrink: 0;
|
|
11492
11498
|
gap: ${({ theme }) => theme.spacing(1)}px;
|
|
11493
11499
|
}
|
|
11500
|
+
|
|
11501
|
+
${({ theme }) => theme.breakpoints.up("lg")} {
|
|
11502
|
+
height: 220px;
|
|
11503
|
+
width: 220px;
|
|
11504
|
+
}
|
|
11494
11505
|
`;
|
|
11495
11506
|
const IconWrapper$2 = styled(Box)`
|
|
11496
11507
|
min-width: 32px;
|
|
@@ -11503,6 +11514,11 @@ const IconWrapper$2 = styled(Box)`
|
|
|
11503
11514
|
height: 40px;
|
|
11504
11515
|
font-size: 36px;
|
|
11505
11516
|
}
|
|
11517
|
+
|
|
11518
|
+
${({ theme }) => theme.breakpoints.up("lg")} {
|
|
11519
|
+
height: 48px;
|
|
11520
|
+
font-size: 42px;
|
|
11521
|
+
}
|
|
11506
11522
|
`;
|
|
11507
11523
|
const ServiceTileLabel = styled(Typography)`
|
|
11508
11524
|
font-size: 11px;
|
|
@@ -11512,6 +11528,10 @@ const ServiceTileLabel = styled(Typography)`
|
|
|
11512
11528
|
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
11513
11529
|
font-size: 15px;
|
|
11514
11530
|
}
|
|
11531
|
+
|
|
11532
|
+
${({ theme }) => theme.breakpoints.up("lg")} {
|
|
11533
|
+
font-size: 16px;
|
|
11534
|
+
}
|
|
11515
11535
|
`;
|
|
11516
11536
|
const SubtitleText = styled(Typography)`
|
|
11517
11537
|
font-size: 9px;
|
|
@@ -11523,6 +11543,11 @@ const SubtitleText = styled(Typography)`
|
|
|
11523
11543
|
${({ theme }) => theme.breakpoints.up("sm")} {
|
|
11524
11544
|
font-size: 12px;
|
|
11525
11545
|
}
|
|
11546
|
+
|
|
11547
|
+
${({ theme }) => theme.breakpoints.up("lg")} {
|
|
11548
|
+
font-size: 13px;
|
|
11549
|
+
max-width: 180px;
|
|
11550
|
+
}
|
|
11526
11551
|
`;
|
|
11527
11552
|
const ICON_BASE_PATH = "/artifacts/icons/catering_category";
|
|
11528
11553
|
const getIconUrl = (name) => getAssetUrl(`${ICON_BASE_PATH}/${name}.svg`);
|
|
@@ -28512,7 +28537,7 @@ const selection$1 = {
|
|
|
28512
28537
|
vegan: "{{ amount }} Veganer",
|
|
28513
28538
|
vegetarian: "{{ amount }} Vegetarier",
|
|
28514
28539
|
carnivore: "{{ amount }} Fleischesser",
|
|
28515
|
-
budget: "{{ perPerson }}
|
|
28540
|
+
budget: "{{ perPerson }} p.P. / {{ total }} Gesamtbudget"
|
|
28516
28541
|
};
|
|
28517
28542
|
const diet$1 = {
|
|
28518
28543
|
pax: "Personenzahl:"
|
|
@@ -29704,7 +29729,7 @@ const selection = {
|
|
|
29704
29729
|
vegan: "{{ amount }} Vegans",
|
|
29705
29730
|
vegetarian: "{{ amount }} Vegetarians",
|
|
29706
29731
|
carnivore: "{{ amount }} Carnivores",
|
|
29707
|
-
budget: "{{ perPerson }}
|
|
29732
|
+
budget: "{{ perPerson }} p.P. / {{ total }} Total Budget"
|
|
29708
29733
|
};
|
|
29709
29734
|
const diet = {
|
|
29710
29735
|
pax: "Number of people:"
|