@heycater/qualification-funnel 1.19.0 → 1.19.1
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 +1 -1
- package/dist/index.cjs.js +62 -62
- package/dist/index.esm.js +100 -112
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -8415,6 +8415,7 @@ function answerDefaultValue(question, state, actions) {
|
|
|
8415
8415
|
}
|
|
8416
8416
|
}
|
|
8417
8417
|
function isDataInStorageInvalid(data) {
|
|
8418
|
+
var _a2, _b;
|
|
8418
8419
|
try {
|
|
8419
8420
|
const validator = yup.object({
|
|
8420
8421
|
qualification: yup.object({
|
|
@@ -8427,6 +8428,14 @@ function isDataInStorageInvalid(data) {
|
|
|
8427
8428
|
})
|
|
8428
8429
|
});
|
|
8429
8430
|
validator.validateSync(data);
|
|
8431
|
+
const cityItems = cityQuestion.getItems({});
|
|
8432
|
+
if (cityItems.length === 1) {
|
|
8433
|
+
const storedData = data;
|
|
8434
|
+
const cityStep2 = (_b = (_a2 = storedData.qualification) == null ? void 0 : _a2.steps) == null ? void 0 : _b.find((s3) => s3.id === "city");
|
|
8435
|
+
if (cityStep2 && !cityStep2.disabled) {
|
|
8436
|
+
return true;
|
|
8437
|
+
}
|
|
8438
|
+
}
|
|
8430
8439
|
return false;
|
|
8431
8440
|
} catch {
|
|
8432
8441
|
return true;
|
|
@@ -12435,7 +12444,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
12435
12444
|
var ys = arrObjKeys(obj, inspect2);
|
|
12436
12445
|
var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
12437
12446
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
12438
|
-
var stringTag2 = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
12447
|
+
var stringTag2 = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
|
|
12439
12448
|
var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
12440
12449
|
var tag = constructorTag + (stringTag2 || protoTag ? "[" + $join.call($concat$1.call([], stringTag2 || [], protoTag || []), ": ") + "] " : "");
|
|
12441
12450
|
if (ys.length === 0) {
|
|
@@ -12460,25 +12469,25 @@ function canTrustToString(obj) {
|
|
|
12460
12469
|
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
12461
12470
|
}
|
|
12462
12471
|
function isArray$3(obj) {
|
|
12463
|
-
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
12472
|
+
return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
|
|
12464
12473
|
}
|
|
12465
12474
|
function isDate(obj) {
|
|
12466
|
-
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
12475
|
+
return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
|
|
12467
12476
|
}
|
|
12468
12477
|
function isRegExp$1(obj) {
|
|
12469
|
-
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
12478
|
+
return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
12470
12479
|
}
|
|
12471
12480
|
function isError(obj) {
|
|
12472
|
-
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
12481
|
+
return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
|
|
12473
12482
|
}
|
|
12474
12483
|
function isString(obj) {
|
|
12475
|
-
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
12484
|
+
return toStr$1(obj) === "[object String]" && canTrustToString(obj);
|
|
12476
12485
|
}
|
|
12477
12486
|
function isNumber(obj) {
|
|
12478
|
-
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
12487
|
+
return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
|
|
12479
12488
|
}
|
|
12480
12489
|
function isBoolean(obj) {
|
|
12481
|
-
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
12490
|
+
return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
12482
12491
|
}
|
|
12483
12492
|
function isSymbol(obj) {
|
|
12484
12493
|
if (hasShammedSymbols) {
|
|
@@ -12514,7 +12523,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
|
12514
12523
|
function has$4(obj, key) {
|
|
12515
12524
|
return hasOwn$1.call(obj, key);
|
|
12516
12525
|
}
|
|
12517
|
-
function toStr(obj) {
|
|
12526
|
+
function toStr$1(obj) {
|
|
12518
12527
|
return objectToString.call(obj);
|
|
12519
12528
|
}
|
|
12520
12529
|
function nameOf(f) {
|
|
@@ -12823,7 +12832,7 @@ var syntax = SyntaxError;
|
|
|
12823
12832
|
var uri = URIError;
|
|
12824
12833
|
var abs$1 = Math.abs;
|
|
12825
12834
|
var floor$1 = Math.floor;
|
|
12826
|
-
var max$
|
|
12835
|
+
var max$2 = Math.max;
|
|
12827
12836
|
var min$1 = Math.min;
|
|
12828
12837
|
var pow$1 = Math.pow;
|
|
12829
12838
|
var round$2 = Math.round;
|
|
@@ -12952,99 +12961,78 @@ function requireObject_getPrototypeOf() {
|
|
|
12952
12961
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
12953
12962
|
return Object_getPrototypeOf;
|
|
12954
12963
|
}
|
|
12955
|
-
var
|
|
12956
|
-
var
|
|
12957
|
-
|
|
12958
|
-
|
|
12959
|
-
|
|
12960
|
-
var
|
|
12961
|
-
var
|
|
12962
|
-
|
|
12963
|
-
|
|
12964
|
-
var
|
|
12965
|
-
|
|
12966
|
-
|
|
12967
|
-
|
|
12968
|
-
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
|
|
12973
|
-
}
|
|
12974
|
-
|
|
12975
|
-
|
|
12976
|
-
|
|
12977
|
-
|
|
12964
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
12965
|
+
var toStr = Object.prototype.toString;
|
|
12966
|
+
var max$1 = Math.max;
|
|
12967
|
+
var funcType = "[object Function]";
|
|
12968
|
+
var concatty = function concatty2(a3, b2) {
|
|
12969
|
+
var arr = [];
|
|
12970
|
+
for (var i2 = 0; i2 < a3.length; i2 += 1) {
|
|
12971
|
+
arr[i2] = a3[i2];
|
|
12972
|
+
}
|
|
12973
|
+
for (var j = 0; j < b2.length; j += 1) {
|
|
12974
|
+
arr[j + a3.length] = b2[j];
|
|
12975
|
+
}
|
|
12976
|
+
return arr;
|
|
12977
|
+
};
|
|
12978
|
+
var slicy = function slicy2(arrLike, offset2) {
|
|
12979
|
+
var arr = [];
|
|
12980
|
+
for (var i2 = offset2, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
|
|
12981
|
+
arr[j] = arrLike[i2];
|
|
12982
|
+
}
|
|
12983
|
+
return arr;
|
|
12984
|
+
};
|
|
12985
|
+
var joiny = function(arr, joiner) {
|
|
12986
|
+
var str = "";
|
|
12987
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
12988
|
+
str += arr[i2];
|
|
12989
|
+
if (i2 + 1 < arr.length) {
|
|
12990
|
+
str += joiner;
|
|
12978
12991
|
}
|
|
12979
|
-
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
|
|
12984
|
-
|
|
12985
|
-
|
|
12986
|
-
|
|
12992
|
+
}
|
|
12993
|
+
return str;
|
|
12994
|
+
};
|
|
12995
|
+
var implementation$1 = function bind(that) {
|
|
12996
|
+
var target = this;
|
|
12997
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
12998
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
12999
|
+
}
|
|
13000
|
+
var args = slicy(arguments, 1);
|
|
13001
|
+
var bound;
|
|
13002
|
+
var binder = function() {
|
|
13003
|
+
if (this instanceof bound) {
|
|
13004
|
+
var result = target.apply(
|
|
13005
|
+
this,
|
|
13006
|
+
concatty(args, arguments)
|
|
13007
|
+
);
|
|
13008
|
+
if (Object(result) === result) {
|
|
13009
|
+
return result;
|
|
12987
13010
|
}
|
|
13011
|
+
return this;
|
|
12988
13012
|
}
|
|
12989
|
-
return
|
|
13013
|
+
return target.apply(
|
|
13014
|
+
that,
|
|
13015
|
+
concatty(args, arguments)
|
|
13016
|
+
);
|
|
12990
13017
|
};
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
|
|
12994
|
-
|
|
12995
|
-
|
|
12996
|
-
|
|
12997
|
-
|
|
12998
|
-
var
|
|
12999
|
-
if (this instanceof bound) {
|
|
13000
|
-
var result = target.apply(
|
|
13001
|
-
this,
|
|
13002
|
-
concatty(args, arguments)
|
|
13003
|
-
);
|
|
13004
|
-
if (Object(result) === result) {
|
|
13005
|
-
return result;
|
|
13006
|
-
}
|
|
13007
|
-
return this;
|
|
13008
|
-
}
|
|
13009
|
-
return target.apply(
|
|
13010
|
-
that,
|
|
13011
|
-
concatty(args, arguments)
|
|
13012
|
-
);
|
|
13018
|
+
var boundLength = max$1(0, target.length - args.length);
|
|
13019
|
+
var boundArgs = [];
|
|
13020
|
+
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
13021
|
+
boundArgs[i2] = "$" + i2;
|
|
13022
|
+
}
|
|
13023
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
13024
|
+
if (target.prototype) {
|
|
13025
|
+
var Empty = function Empty2() {
|
|
13013
13026
|
};
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
Empty.prototype = target.prototype;
|
|
13024
|
-
bound.prototype = new Empty();
|
|
13025
|
-
Empty.prototype = null;
|
|
13026
|
-
}
|
|
13027
|
-
return bound;
|
|
13028
|
-
};
|
|
13029
|
-
return implementation;
|
|
13030
|
-
}
|
|
13031
|
-
var functionBind;
|
|
13032
|
-
var hasRequiredFunctionBind;
|
|
13033
|
-
function requireFunctionBind() {
|
|
13034
|
-
if (hasRequiredFunctionBind) return functionBind;
|
|
13035
|
-
hasRequiredFunctionBind = 1;
|
|
13036
|
-
var implementation2 = requireImplementation();
|
|
13037
|
-
functionBind = Function.prototype.bind || implementation2;
|
|
13038
|
-
return functionBind;
|
|
13039
|
-
}
|
|
13040
|
-
var functionCall;
|
|
13041
|
-
var hasRequiredFunctionCall;
|
|
13042
|
-
function requireFunctionCall() {
|
|
13043
|
-
if (hasRequiredFunctionCall) return functionCall;
|
|
13044
|
-
hasRequiredFunctionCall = 1;
|
|
13045
|
-
functionCall = Function.prototype.call;
|
|
13046
|
-
return functionCall;
|
|
13047
|
-
}
|
|
13027
|
+
Empty.prototype = target.prototype;
|
|
13028
|
+
bound.prototype = new Empty();
|
|
13029
|
+
Empty.prototype = null;
|
|
13030
|
+
}
|
|
13031
|
+
return bound;
|
|
13032
|
+
};
|
|
13033
|
+
var implementation = implementation$1;
|
|
13034
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
13035
|
+
var functionCall = Function.prototype.call;
|
|
13048
13036
|
var functionApply;
|
|
13049
13037
|
var hasRequiredFunctionApply;
|
|
13050
13038
|
function requireFunctionApply() {
|
|
@@ -13054,14 +13042,14 @@ function requireFunctionApply() {
|
|
|
13054
13042
|
return functionApply;
|
|
13055
13043
|
}
|
|
13056
13044
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
13057
|
-
var bind$2 =
|
|
13045
|
+
var bind$2 = functionBind;
|
|
13058
13046
|
var $apply$1 = requireFunctionApply();
|
|
13059
|
-
var $call$2 =
|
|
13047
|
+
var $call$2 = functionCall;
|
|
13060
13048
|
var $reflectApply = reflectApply;
|
|
13061
13049
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
13062
|
-
var bind$1 =
|
|
13050
|
+
var bind$1 = functionBind;
|
|
13063
13051
|
var $TypeError$4 = type;
|
|
13064
|
-
var $call$1 =
|
|
13052
|
+
var $call$1 = functionCall;
|
|
13065
13053
|
var $actualApply = actualApply;
|
|
13066
13054
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
13067
13055
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -13127,8 +13115,8 @@ function requireHasown() {
|
|
|
13127
13115
|
hasRequiredHasown = 1;
|
|
13128
13116
|
var call = Function.prototype.call;
|
|
13129
13117
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
13130
|
-
var
|
|
13131
|
-
hasown =
|
|
13118
|
+
var bind3 = functionBind;
|
|
13119
|
+
hasown = bind3.call(call, $hasOwn);
|
|
13132
13120
|
return hasown;
|
|
13133
13121
|
}
|
|
13134
13122
|
var undefined$1;
|
|
@@ -13142,7 +13130,7 @@ var $TypeError$3 = type;
|
|
|
13142
13130
|
var $URIError = uri;
|
|
13143
13131
|
var abs = abs$1;
|
|
13144
13132
|
var floor = floor$1;
|
|
13145
|
-
var max = max$
|
|
13133
|
+
var max = max$2;
|
|
13146
13134
|
var min = min$1;
|
|
13147
13135
|
var pow = pow$1;
|
|
13148
13136
|
var round$1 = round$2;
|
|
@@ -13176,7 +13164,7 @@ var getProto = requireGetProto();
|
|
|
13176
13164
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
13177
13165
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
13178
13166
|
var $apply = requireFunctionApply();
|
|
13179
|
-
var $call =
|
|
13167
|
+
var $call = functionCall;
|
|
13180
13168
|
var needsEval = {};
|
|
13181
13169
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
13182
13170
|
var INTRINSICS = {
|
|
@@ -13347,13 +13335,13 @@ var LEGACY_ALIASES = {
|
|
|
13347
13335
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
13348
13336
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
13349
13337
|
};
|
|
13350
|
-
var
|
|
13338
|
+
var bind2 = functionBind;
|
|
13351
13339
|
var hasOwn = requireHasown();
|
|
13352
|
-
var $concat =
|
|
13353
|
-
var $spliceApply =
|
|
13354
|
-
var $replace =
|
|
13355
|
-
var $strSlice =
|
|
13356
|
-
var $exec =
|
|
13340
|
+
var $concat = bind2.call($call, Array.prototype.concat);
|
|
13341
|
+
var $spliceApply = bind2.call($apply, Array.prototype.splice);
|
|
13342
|
+
var $replace = bind2.call($call, String.prototype.replace);
|
|
13343
|
+
var $strSlice = bind2.call($call, String.prototype.slice);
|
|
13344
|
+
var $exec = bind2.call($call, RegExp.prototype.exec);
|
|
13357
13345
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
13358
13346
|
var reEscapeChar = /\\(\\)?/g;
|
|
13359
13347
|
var stringToPath = function stringToPath2(string2) {
|