@heycater/qualification-funnel 1.19.23 → 1.19.25
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 +502 -477
- package/dist/index.cjs.js +508 -483
- package/dist/index.esm.js +150 -102
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -12703,7 +12703,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
12703
12703
|
var ys = arrObjKeys(obj, inspect2);
|
|
12704
12704
|
var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
12705
12705
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
12706
|
-
var stringTag2 = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr
|
|
12706
|
+
var stringTag2 = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
12707
12707
|
var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
12708
12708
|
var tag = constructorTag + (stringTag2 || protoTag ? "[" + $join.call($concat$1.call([], stringTag2 || [], protoTag || []), ": ") + "] " : "");
|
|
12709
12709
|
if (ys.length === 0) {
|
|
@@ -12728,25 +12728,25 @@ function canTrustToString(obj) {
|
|
|
12728
12728
|
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
12729
12729
|
}
|
|
12730
12730
|
function isArray$3(obj) {
|
|
12731
|
-
return toStr
|
|
12731
|
+
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
12732
12732
|
}
|
|
12733
12733
|
function isDate(obj) {
|
|
12734
|
-
return toStr
|
|
12734
|
+
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
12735
12735
|
}
|
|
12736
12736
|
function isRegExp$1(obj) {
|
|
12737
|
-
return toStr
|
|
12737
|
+
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
12738
12738
|
}
|
|
12739
12739
|
function isError(obj) {
|
|
12740
|
-
return toStr
|
|
12740
|
+
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
12741
12741
|
}
|
|
12742
12742
|
function isString(obj) {
|
|
12743
|
-
return toStr
|
|
12743
|
+
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
12744
12744
|
}
|
|
12745
12745
|
function isNumber(obj) {
|
|
12746
|
-
return toStr
|
|
12746
|
+
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
12747
12747
|
}
|
|
12748
12748
|
function isBoolean(obj) {
|
|
12749
|
-
return toStr
|
|
12749
|
+
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
12750
12750
|
}
|
|
12751
12751
|
function isSymbol(obj) {
|
|
12752
12752
|
if (hasShammedSymbols) {
|
|
@@ -12782,7 +12782,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
|
12782
12782
|
function has$4(obj, key) {
|
|
12783
12783
|
return hasOwn$1.call(obj, key);
|
|
12784
12784
|
}
|
|
12785
|
-
function toStr
|
|
12785
|
+
function toStr(obj) {
|
|
12786
12786
|
return objectToString.call(obj);
|
|
12787
12787
|
}
|
|
12788
12788
|
function nameOf(f) {
|
|
@@ -13091,7 +13091,7 @@ var syntax = SyntaxError;
|
|
|
13091
13091
|
var uri = URIError;
|
|
13092
13092
|
var abs$1 = Math.abs;
|
|
13093
13093
|
var floor$1 = Math.floor;
|
|
13094
|
-
var max$
|
|
13094
|
+
var max$1 = Math.max;
|
|
13095
13095
|
var min$1 = Math.min;
|
|
13096
13096
|
var pow$1 = Math.pow;
|
|
13097
13097
|
var round$2 = Math.round;
|
|
@@ -13220,78 +13220,99 @@ function requireObject_getPrototypeOf() {
|
|
|
13220
13220
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
13221
13221
|
return Object_getPrototypeOf;
|
|
13222
13222
|
}
|
|
13223
|
-
var
|
|
13224
|
-
var
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
var
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
|
|
13232
|
-
|
|
13233
|
-
arr
|
|
13234
|
-
|
|
13235
|
-
|
|
13236
|
-
};
|
|
13237
|
-
var slicy = function slicy2(arrLike, offset2) {
|
|
13238
|
-
var arr = [];
|
|
13239
|
-
for (var i2 = offset2, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
|
|
13240
|
-
arr[j] = arrLike[i2];
|
|
13241
|
-
}
|
|
13242
|
-
return arr;
|
|
13243
|
-
};
|
|
13244
|
-
var joiny = function(arr, joiner) {
|
|
13245
|
-
var str = "";
|
|
13246
|
-
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
13247
|
-
str += arr[i2];
|
|
13248
|
-
if (i2 + 1 < arr.length) {
|
|
13249
|
-
str += joiner;
|
|
13223
|
+
var implementation;
|
|
13224
|
+
var hasRequiredImplementation;
|
|
13225
|
+
function requireImplementation() {
|
|
13226
|
+
if (hasRequiredImplementation) return implementation;
|
|
13227
|
+
hasRequiredImplementation = 1;
|
|
13228
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
13229
|
+
var toStr2 = Object.prototype.toString;
|
|
13230
|
+
var max2 = Math.max;
|
|
13231
|
+
var funcType = "[object Function]";
|
|
13232
|
+
var concatty = function concatty2(a3, b2) {
|
|
13233
|
+
var arr = [];
|
|
13234
|
+
for (var i2 = 0; i2 < a3.length; i2 += 1) {
|
|
13235
|
+
arr[i2] = a3[i2];
|
|
13250
13236
|
}
|
|
13251
|
-
|
|
13252
|
-
|
|
13253
|
-
}
|
|
13254
|
-
|
|
13255
|
-
|
|
13256
|
-
|
|
13257
|
-
|
|
13258
|
-
|
|
13259
|
-
|
|
13260
|
-
|
|
13261
|
-
|
|
13262
|
-
|
|
13263
|
-
|
|
13264
|
-
|
|
13265
|
-
|
|
13266
|
-
|
|
13267
|
-
if (
|
|
13268
|
-
|
|
13237
|
+
for (var j = 0; j < b2.length; j += 1) {
|
|
13238
|
+
arr[j + a3.length] = b2[j];
|
|
13239
|
+
}
|
|
13240
|
+
return arr;
|
|
13241
|
+
};
|
|
13242
|
+
var slicy = function slicy2(arrLike, offset2) {
|
|
13243
|
+
var arr = [];
|
|
13244
|
+
for (var i2 = offset2, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
|
|
13245
|
+
arr[j] = arrLike[i2];
|
|
13246
|
+
}
|
|
13247
|
+
return arr;
|
|
13248
|
+
};
|
|
13249
|
+
var joiny = function(arr, joiner) {
|
|
13250
|
+
var str = "";
|
|
13251
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
13252
|
+
str += arr[i2];
|
|
13253
|
+
if (i2 + 1 < arr.length) {
|
|
13254
|
+
str += joiner;
|
|
13269
13255
|
}
|
|
13270
|
-
return this;
|
|
13271
13256
|
}
|
|
13272
|
-
return
|
|
13273
|
-
that,
|
|
13274
|
-
concatty(args, arguments)
|
|
13275
|
-
);
|
|
13257
|
+
return str;
|
|
13276
13258
|
};
|
|
13277
|
-
|
|
13278
|
-
|
|
13279
|
-
|
|
13280
|
-
|
|
13281
|
-
|
|
13282
|
-
|
|
13283
|
-
|
|
13284
|
-
var
|
|
13259
|
+
implementation = function bind2(that) {
|
|
13260
|
+
var target = this;
|
|
13261
|
+
if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
|
|
13262
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
13263
|
+
}
|
|
13264
|
+
var args = slicy(arguments, 1);
|
|
13265
|
+
var bound;
|
|
13266
|
+
var binder = function() {
|
|
13267
|
+
if (this instanceof bound) {
|
|
13268
|
+
var result = target.apply(
|
|
13269
|
+
this,
|
|
13270
|
+
concatty(args, arguments)
|
|
13271
|
+
);
|
|
13272
|
+
if (Object(result) === result) {
|
|
13273
|
+
return result;
|
|
13274
|
+
}
|
|
13275
|
+
return this;
|
|
13276
|
+
}
|
|
13277
|
+
return target.apply(
|
|
13278
|
+
that,
|
|
13279
|
+
concatty(args, arguments)
|
|
13280
|
+
);
|
|
13285
13281
|
};
|
|
13286
|
-
|
|
13287
|
-
|
|
13288
|
-
|
|
13289
|
-
|
|
13290
|
-
|
|
13291
|
-
};
|
|
13292
|
-
|
|
13293
|
-
var
|
|
13294
|
-
|
|
13282
|
+
var boundLength = max2(0, target.length - args.length);
|
|
13283
|
+
var boundArgs = [];
|
|
13284
|
+
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
13285
|
+
boundArgs[i2] = "$" + i2;
|
|
13286
|
+
}
|
|
13287
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
13288
|
+
if (target.prototype) {
|
|
13289
|
+
var Empty = function Empty2() {
|
|
13290
|
+
};
|
|
13291
|
+
Empty.prototype = target.prototype;
|
|
13292
|
+
bound.prototype = new Empty();
|
|
13293
|
+
Empty.prototype = null;
|
|
13294
|
+
}
|
|
13295
|
+
return bound;
|
|
13296
|
+
};
|
|
13297
|
+
return implementation;
|
|
13298
|
+
}
|
|
13299
|
+
var functionBind;
|
|
13300
|
+
var hasRequiredFunctionBind;
|
|
13301
|
+
function requireFunctionBind() {
|
|
13302
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
13303
|
+
hasRequiredFunctionBind = 1;
|
|
13304
|
+
var implementation2 = requireImplementation();
|
|
13305
|
+
functionBind = Function.prototype.bind || implementation2;
|
|
13306
|
+
return functionBind;
|
|
13307
|
+
}
|
|
13308
|
+
var functionCall;
|
|
13309
|
+
var hasRequiredFunctionCall;
|
|
13310
|
+
function requireFunctionCall() {
|
|
13311
|
+
if (hasRequiredFunctionCall) return functionCall;
|
|
13312
|
+
hasRequiredFunctionCall = 1;
|
|
13313
|
+
functionCall = Function.prototype.call;
|
|
13314
|
+
return functionCall;
|
|
13315
|
+
}
|
|
13295
13316
|
var functionApply;
|
|
13296
13317
|
var hasRequiredFunctionApply;
|
|
13297
13318
|
function requireFunctionApply() {
|
|
@@ -13301,14 +13322,14 @@ function requireFunctionApply() {
|
|
|
13301
13322
|
return functionApply;
|
|
13302
13323
|
}
|
|
13303
13324
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
13304
|
-
var bind$2 =
|
|
13325
|
+
var bind$2 = requireFunctionBind();
|
|
13305
13326
|
var $apply$1 = requireFunctionApply();
|
|
13306
|
-
var $call$2 =
|
|
13327
|
+
var $call$2 = requireFunctionCall();
|
|
13307
13328
|
var $reflectApply = reflectApply;
|
|
13308
13329
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
13309
|
-
var bind$1 =
|
|
13330
|
+
var bind$1 = requireFunctionBind();
|
|
13310
13331
|
var $TypeError$4 = type;
|
|
13311
|
-
var $call$1 =
|
|
13332
|
+
var $call$1 = requireFunctionCall();
|
|
13312
13333
|
var $actualApply = actualApply;
|
|
13313
13334
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
13314
13335
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -13374,8 +13395,8 @@ function requireHasown() {
|
|
|
13374
13395
|
hasRequiredHasown = 1;
|
|
13375
13396
|
var call = Function.prototype.call;
|
|
13376
13397
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
13377
|
-
var
|
|
13378
|
-
hasown =
|
|
13398
|
+
var bind2 = requireFunctionBind();
|
|
13399
|
+
hasown = bind2.call(call, $hasOwn);
|
|
13379
13400
|
return hasown;
|
|
13380
13401
|
}
|
|
13381
13402
|
var undefined$1;
|
|
@@ -13389,7 +13410,7 @@ var $TypeError$3 = type;
|
|
|
13389
13410
|
var $URIError = uri;
|
|
13390
13411
|
var abs = abs$1;
|
|
13391
13412
|
var floor = floor$1;
|
|
13392
|
-
var max = max$
|
|
13413
|
+
var max = max$1;
|
|
13393
13414
|
var min = min$1;
|
|
13394
13415
|
var pow = pow$1;
|
|
13395
13416
|
var round$1 = round$2;
|
|
@@ -13423,7 +13444,7 @@ var getProto = requireGetProto();
|
|
|
13423
13444
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
13424
13445
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
13425
13446
|
var $apply = requireFunctionApply();
|
|
13426
|
-
var $call =
|
|
13447
|
+
var $call = requireFunctionCall();
|
|
13427
13448
|
var needsEval = {};
|
|
13428
13449
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
13429
13450
|
var INTRINSICS = {
|
|
@@ -13594,13 +13615,13 @@ var LEGACY_ALIASES = {
|
|
|
13594
13615
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
13595
13616
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
13596
13617
|
};
|
|
13597
|
-
var
|
|
13618
|
+
var bind = requireFunctionBind();
|
|
13598
13619
|
var hasOwn = requireHasown();
|
|
13599
|
-
var $concat =
|
|
13600
|
-
var $spliceApply =
|
|
13601
|
-
var $replace =
|
|
13602
|
-
var $strSlice =
|
|
13603
|
-
var $exec =
|
|
13620
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
13621
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
13622
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
13623
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
13624
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
13604
13625
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
13605
13626
|
var reEscapeChar = /\\(\\)?/g;
|
|
13606
13627
|
var stringToPath = function stringToPath2(string2) {
|
|
@@ -30441,6 +30462,11 @@ const TilesWrapper$1 = styled.div`
|
|
|
30441
30462
|
justify-content: center;
|
|
30442
30463
|
max-width: 790px;
|
|
30443
30464
|
}
|
|
30465
|
+
|
|
30466
|
+
@media (min-width: 1200px) {
|
|
30467
|
+
gap: 18px;
|
|
30468
|
+
max-width: 950px;
|
|
30469
|
+
}
|
|
30444
30470
|
`;
|
|
30445
30471
|
const CityTile = styled.button`
|
|
30446
30472
|
position: relative;
|
|
@@ -30464,6 +30490,12 @@ const CityTile = styled.button`
|
|
|
30464
30490
|
padding: 16px 12px;
|
|
30465
30491
|
}
|
|
30466
30492
|
|
|
30493
|
+
@media (min-width: 1200px) {
|
|
30494
|
+
width: 165px;
|
|
30495
|
+
height: 165px;
|
|
30496
|
+
border-radius: 16px;
|
|
30497
|
+
}
|
|
30498
|
+
|
|
30467
30499
|
@media (max-width: 639px) {
|
|
30468
30500
|
height: 118px;
|
|
30469
30501
|
padding: 12px 8px;
|
|
@@ -30595,6 +30627,11 @@ const TilesWrapper = styled.div`
|
|
|
30595
30627
|
justify-content: center;
|
|
30596
30628
|
max-width: 620px;
|
|
30597
30629
|
}
|
|
30630
|
+
|
|
30631
|
+
@media (min-width: 1200px) {
|
|
30632
|
+
gap: 18px;
|
|
30633
|
+
max-width: 750px;
|
|
30634
|
+
}
|
|
30598
30635
|
`;
|
|
30599
30636
|
const EventTile = styled.button`
|
|
30600
30637
|
position: relative;
|
|
@@ -30618,6 +30655,12 @@ const EventTile = styled.button`
|
|
|
30618
30655
|
padding: 16px 12px;
|
|
30619
30656
|
}
|
|
30620
30657
|
|
|
30658
|
+
@media (min-width: 1200px) {
|
|
30659
|
+
width: 165px;
|
|
30660
|
+
height: 165px;
|
|
30661
|
+
border-radius: 16px;
|
|
30662
|
+
}
|
|
30663
|
+
|
|
30621
30664
|
@media (max-width: 639px) {
|
|
30622
30665
|
height: 118px;
|
|
30623
30666
|
padding: 12px 8px;
|
|
@@ -32281,10 +32324,13 @@ const RedesignedFunnel = ({
|
|
|
32281
32324
|
}, [currentStepIndex]);
|
|
32282
32325
|
const goToStep = useCallback((stepId) => {
|
|
32283
32326
|
const index = REDESIGN_STEP_ORDER.indexOf(stepId);
|
|
32284
|
-
if (index >= 0
|
|
32327
|
+
if (index >= 0) {
|
|
32328
|
+
if (phase === "contact") {
|
|
32329
|
+
setPhase("questions");
|
|
32330
|
+
}
|
|
32285
32331
|
setCurrentStepIndex(index);
|
|
32286
32332
|
}
|
|
32287
|
-
}, [
|
|
32333
|
+
}, [phase]);
|
|
32288
32334
|
const handleCitySelect = useCallback((city) => {
|
|
32289
32335
|
actions.answerQuestion("city", city);
|
|
32290
32336
|
trackAnswer("city", city);
|
|
@@ -32395,8 +32441,7 @@ const RedesignedFunnel = ({
|
|
|
32395
32441
|
const contactTitle = isGerman ? "Fast geschafft – nur noch deine Kontaktdaten" : "Almost done – just your contact details";
|
|
32396
32442
|
const contactSubtitle = isGerman ? "Danach meldet sich dein Cateringexperte und schickt dir passende Angebote." : "Your catering expert will then get in touch and send you matching offers.";
|
|
32397
32443
|
return /* @__PURE__ */ jsxs(FunnelContainer, { children: [
|
|
32398
|
-
/* @__PURE__ */ jsx(StepRail, { currentStepId: REDESIGN_STEP_IDS.contact, onStepClick:
|
|
32399
|
-
} }),
|
|
32444
|
+
/* @__PURE__ */ jsx(StepRail, { currentStepId: REDESIGN_STEP_IDS.contact, onStepClick: goToStep }),
|
|
32400
32445
|
/* @__PURE__ */ jsxs(MainContent, { children: [
|
|
32401
32446
|
/* @__PURE__ */ jsxs(MobileHeader, { children: [
|
|
32402
32447
|
/* @__PURE__ */ jsx(MobileLogoWrapper, { children: /* @__PURE__ */ jsx(Logo, { height: 20 }) }),
|
|
@@ -32566,6 +32611,7 @@ const fadeIn = keyframes`
|
|
|
32566
32611
|
const FunnelContainer = styled.div`
|
|
32567
32612
|
display: flex;
|
|
32568
32613
|
min-height: 100vh;
|
|
32614
|
+
min-height: 100dvh;
|
|
32569
32615
|
background: ${REDESIGN_COLORS.white};
|
|
32570
32616
|
`;
|
|
32571
32617
|
const MainContent = styled.div`
|
|
@@ -32573,6 +32619,10 @@ const MainContent = styled.div`
|
|
|
32573
32619
|
display: flex;
|
|
32574
32620
|
flex-direction: column;
|
|
32575
32621
|
min-width: 0;
|
|
32622
|
+
min-height: 0;
|
|
32623
|
+
height: 100vh;
|
|
32624
|
+
height: 100dvh;
|
|
32625
|
+
overflow: hidden;
|
|
32576
32626
|
${({ $fullWidth }) => $fullWidth && "width: 100%;"}
|
|
32577
32627
|
`;
|
|
32578
32628
|
const MobileHeader = styled.div`
|
|
@@ -32650,13 +32700,14 @@ const ContentArea = styled.div`
|
|
|
32650
32700
|
display: flex;
|
|
32651
32701
|
flex-direction: column;
|
|
32652
32702
|
align-items: center;
|
|
32653
|
-
justify-content:
|
|
32703
|
+
justify-content: flex-start;
|
|
32654
32704
|
overflow-y: auto;
|
|
32655
|
-
padding: 14px 18px
|
|
32705
|
+
padding: 14px 18px 20px;
|
|
32656
32706
|
animation: ${fadeIn} 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
|
|
32657
32707
|
|
|
32658
32708
|
@media (min-width: 960px) {
|
|
32659
|
-
padding: 40px 44px
|
|
32709
|
+
padding: 40px 44px 30px;
|
|
32710
|
+
justify-content: center;
|
|
32660
32711
|
}
|
|
32661
32712
|
`;
|
|
32662
32713
|
const StepTitle = styled.h1`
|
|
@@ -32701,10 +32752,7 @@ const StepContent = styled.div`
|
|
|
32701
32752
|
}
|
|
32702
32753
|
`;
|
|
32703
32754
|
const FooterBar = styled.div`
|
|
32704
|
-
|
|
32705
|
-
bottom: 0;
|
|
32706
|
-
left: 0;
|
|
32707
|
-
right: 0;
|
|
32755
|
+
flex: none;
|
|
32708
32756
|
padding: 12px 18px 16px;
|
|
32709
32757
|
display: flex;
|
|
32710
32758
|
flex-direction: column;
|