@heycater/qualification-funnel 1.4.13 → 1.5.0
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 +2 -2
- package/dist/index.cjs.js +62 -62
- package/dist/index.esm.js +118 -97
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -11047,7 +11047,7 @@ function trackAnswerSelected(context, answer) {
|
|
|
11047
11047
|
if (context.city) {
|
|
11048
11048
|
properties.city = context.city;
|
|
11049
11049
|
}
|
|
11050
|
-
captureEvent("
|
|
11050
|
+
captureEvent("qf_v3_answer_selected", properties);
|
|
11051
11051
|
}
|
|
11052
11052
|
function trackFormSubmitted(context, metadata) {
|
|
11053
11053
|
if (!context.session_id) {
|
|
@@ -11065,7 +11065,7 @@ function trackFormSubmitted(context, metadata) {
|
|
|
11065
11065
|
if (context.city) {
|
|
11066
11066
|
properties.city = context.city;
|
|
11067
11067
|
}
|
|
11068
|
-
captureEvent("
|
|
11068
|
+
captureEvent("qf_v3_form_submitted", properties);
|
|
11069
11069
|
}
|
|
11070
11070
|
function trackCompleted(context) {
|
|
11071
11071
|
if (!context.session_id) {
|
|
@@ -11082,7 +11082,7 @@ function trackCompleted(context) {
|
|
|
11082
11082
|
if (context.city) {
|
|
11083
11083
|
properties.city = context.city;
|
|
11084
11084
|
}
|
|
11085
|
-
captureEvent("
|
|
11085
|
+
captureEvent("qf_v3_completed", properties);
|
|
11086
11086
|
}
|
|
11087
11087
|
function trackAbandoned(context, lastStep) {
|
|
11088
11088
|
if (!context.session_id) {
|
|
@@ -11101,7 +11101,7 @@ function trackAbandoned(context, lastStep) {
|
|
|
11101
11101
|
if (context.city) {
|
|
11102
11102
|
properties.city = context.city;
|
|
11103
11103
|
}
|
|
11104
|
-
captureEvent("
|
|
11104
|
+
captureEvent("qf_v3_abandoned", properties);
|
|
11105
11105
|
}
|
|
11106
11106
|
function trackStarted(context, initialStepId) {
|
|
11107
11107
|
const properties = {
|
|
@@ -11109,7 +11109,7 @@ function trackStarted(context, initialStepId) {
|
|
|
11109
11109
|
session_id: context.session_id,
|
|
11110
11110
|
initial_step: initialStepId
|
|
11111
11111
|
};
|
|
11112
|
-
captureEvent("
|
|
11112
|
+
captureEvent("qf_v3_started", properties);
|
|
11113
11113
|
}
|
|
11114
11114
|
const TrackingContext = createContext(null);
|
|
11115
11115
|
function TrackingProvider({
|
|
@@ -11130,7 +11130,7 @@ function TrackingProvider({
|
|
|
11130
11130
|
const questions2 = (schemaStep == null ? void 0 : schemaStep.questions) || [];
|
|
11131
11131
|
const questionIndex = questions2.findIndex((q2) => q2.id === questionId);
|
|
11132
11132
|
const isLastQuestion = questionIndex === questions2.length - 1;
|
|
11133
|
-
const sessionKey = `
|
|
11133
|
+
const sessionKey = `qf_v3_started_${funnelContextRef.current.session_id}`;
|
|
11134
11134
|
if (typeof sessionStorage !== "undefined") {
|
|
11135
11135
|
const hasStarted = sessionStorage.getItem(sessionKey);
|
|
11136
11136
|
if (!hasStarted) {
|
|
@@ -12271,7 +12271,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
12271
12271
|
var ys = arrObjKeys(obj, inspect2);
|
|
12272
12272
|
var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
12273
12273
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
12274
|
-
var stringTag2 = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr
|
|
12274
|
+
var stringTag2 = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
12275
12275
|
var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
12276
12276
|
var tag = constructorTag + (stringTag2 || protoTag ? "[" + $join.call($concat$1.call([], stringTag2 || [], protoTag || []), ": ") + "] " : "");
|
|
12277
12277
|
if (ys.length === 0) {
|
|
@@ -12296,25 +12296,25 @@ function canTrustToString(obj) {
|
|
|
12296
12296
|
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
12297
12297
|
}
|
|
12298
12298
|
function isArray$3(obj) {
|
|
12299
|
-
return toStr
|
|
12299
|
+
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
12300
12300
|
}
|
|
12301
12301
|
function isDate(obj) {
|
|
12302
|
-
return toStr
|
|
12302
|
+
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
12303
12303
|
}
|
|
12304
12304
|
function isRegExp$1(obj) {
|
|
12305
|
-
return toStr
|
|
12305
|
+
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
12306
12306
|
}
|
|
12307
12307
|
function isError(obj) {
|
|
12308
|
-
return toStr
|
|
12308
|
+
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
12309
12309
|
}
|
|
12310
12310
|
function isString(obj) {
|
|
12311
|
-
return toStr
|
|
12311
|
+
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
12312
12312
|
}
|
|
12313
12313
|
function isNumber(obj) {
|
|
12314
|
-
return toStr
|
|
12314
|
+
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
12315
12315
|
}
|
|
12316
12316
|
function isBoolean(obj) {
|
|
12317
|
-
return toStr
|
|
12317
|
+
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
12318
12318
|
}
|
|
12319
12319
|
function isSymbol(obj) {
|
|
12320
12320
|
if (hasShammedSymbols) {
|
|
@@ -12350,7 +12350,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
|
12350
12350
|
function has$4(obj, key) {
|
|
12351
12351
|
return hasOwn$1.call(obj, key);
|
|
12352
12352
|
}
|
|
12353
|
-
function toStr
|
|
12353
|
+
function toStr(obj) {
|
|
12354
12354
|
return objectToString.call(obj);
|
|
12355
12355
|
}
|
|
12356
12356
|
function nameOf(f) {
|
|
@@ -12659,7 +12659,7 @@ var syntax = SyntaxError;
|
|
|
12659
12659
|
var uri = URIError;
|
|
12660
12660
|
var abs$1 = Math.abs;
|
|
12661
12661
|
var floor$1 = Math.floor;
|
|
12662
|
-
var max$
|
|
12662
|
+
var max$1 = Math.max;
|
|
12663
12663
|
var min$1 = Math.min;
|
|
12664
12664
|
var pow$1 = Math.pow;
|
|
12665
12665
|
var round$2 = Math.round;
|
|
@@ -12788,78 +12788,99 @@ function requireObject_getPrototypeOf() {
|
|
|
12788
12788
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
12789
12789
|
return Object_getPrototypeOf;
|
|
12790
12790
|
}
|
|
12791
|
-
var
|
|
12792
|
-
var
|
|
12793
|
-
|
|
12794
|
-
|
|
12795
|
-
|
|
12796
|
-
var
|
|
12797
|
-
|
|
12798
|
-
|
|
12799
|
-
|
|
12800
|
-
|
|
12801
|
-
arr
|
|
12802
|
-
|
|
12803
|
-
|
|
12804
|
-
};
|
|
12805
|
-
var slicy = function slicy2(arrLike, offset2) {
|
|
12806
|
-
var arr = [];
|
|
12807
|
-
for (var i2 = offset2, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
|
|
12808
|
-
arr[j] = arrLike[i2];
|
|
12809
|
-
}
|
|
12810
|
-
return arr;
|
|
12811
|
-
};
|
|
12812
|
-
var joiny = function(arr, joiner) {
|
|
12813
|
-
var str = "";
|
|
12814
|
-
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
12815
|
-
str += arr[i2];
|
|
12816
|
-
if (i2 + 1 < arr.length) {
|
|
12817
|
-
str += joiner;
|
|
12791
|
+
var implementation;
|
|
12792
|
+
var hasRequiredImplementation;
|
|
12793
|
+
function requireImplementation() {
|
|
12794
|
+
if (hasRequiredImplementation) return implementation;
|
|
12795
|
+
hasRequiredImplementation = 1;
|
|
12796
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
12797
|
+
var toStr2 = Object.prototype.toString;
|
|
12798
|
+
var max2 = Math.max;
|
|
12799
|
+
var funcType = "[object Function]";
|
|
12800
|
+
var concatty = function concatty2(a3, b2) {
|
|
12801
|
+
var arr = [];
|
|
12802
|
+
for (var i2 = 0; i2 < a3.length; i2 += 1) {
|
|
12803
|
+
arr[i2] = a3[i2];
|
|
12818
12804
|
}
|
|
12819
|
-
|
|
12820
|
-
|
|
12821
|
-
}
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12825
|
-
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
if (
|
|
12836
|
-
|
|
12805
|
+
for (var j = 0; j < b2.length; j += 1) {
|
|
12806
|
+
arr[j + a3.length] = b2[j];
|
|
12807
|
+
}
|
|
12808
|
+
return arr;
|
|
12809
|
+
};
|
|
12810
|
+
var slicy = function slicy2(arrLike, offset2) {
|
|
12811
|
+
var arr = [];
|
|
12812
|
+
for (var i2 = offset2, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
|
|
12813
|
+
arr[j] = arrLike[i2];
|
|
12814
|
+
}
|
|
12815
|
+
return arr;
|
|
12816
|
+
};
|
|
12817
|
+
var joiny = function(arr, joiner) {
|
|
12818
|
+
var str = "";
|
|
12819
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
12820
|
+
str += arr[i2];
|
|
12821
|
+
if (i2 + 1 < arr.length) {
|
|
12822
|
+
str += joiner;
|
|
12837
12823
|
}
|
|
12838
|
-
return this;
|
|
12839
12824
|
}
|
|
12840
|
-
return
|
|
12841
|
-
that,
|
|
12842
|
-
concatty(args, arguments)
|
|
12843
|
-
);
|
|
12825
|
+
return str;
|
|
12844
12826
|
};
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
var
|
|
12827
|
+
implementation = function bind2(that) {
|
|
12828
|
+
var target = this;
|
|
12829
|
+
if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
|
|
12830
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
12831
|
+
}
|
|
12832
|
+
var args = slicy(arguments, 1);
|
|
12833
|
+
var bound;
|
|
12834
|
+
var binder = function() {
|
|
12835
|
+
if (this instanceof bound) {
|
|
12836
|
+
var result = target.apply(
|
|
12837
|
+
this,
|
|
12838
|
+
concatty(args, arguments)
|
|
12839
|
+
);
|
|
12840
|
+
if (Object(result) === result) {
|
|
12841
|
+
return result;
|
|
12842
|
+
}
|
|
12843
|
+
return this;
|
|
12844
|
+
}
|
|
12845
|
+
return target.apply(
|
|
12846
|
+
that,
|
|
12847
|
+
concatty(args, arguments)
|
|
12848
|
+
);
|
|
12853
12849
|
};
|
|
12854
|
-
|
|
12855
|
-
|
|
12856
|
-
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
};
|
|
12860
|
-
|
|
12861
|
-
var
|
|
12862
|
-
|
|
12850
|
+
var boundLength = max2(0, target.length - args.length);
|
|
12851
|
+
var boundArgs = [];
|
|
12852
|
+
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
12853
|
+
boundArgs[i2] = "$" + i2;
|
|
12854
|
+
}
|
|
12855
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
12856
|
+
if (target.prototype) {
|
|
12857
|
+
var Empty = function Empty2() {
|
|
12858
|
+
};
|
|
12859
|
+
Empty.prototype = target.prototype;
|
|
12860
|
+
bound.prototype = new Empty();
|
|
12861
|
+
Empty.prototype = null;
|
|
12862
|
+
}
|
|
12863
|
+
return bound;
|
|
12864
|
+
};
|
|
12865
|
+
return implementation;
|
|
12866
|
+
}
|
|
12867
|
+
var functionBind;
|
|
12868
|
+
var hasRequiredFunctionBind;
|
|
12869
|
+
function requireFunctionBind() {
|
|
12870
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
12871
|
+
hasRequiredFunctionBind = 1;
|
|
12872
|
+
var implementation2 = requireImplementation();
|
|
12873
|
+
functionBind = Function.prototype.bind || implementation2;
|
|
12874
|
+
return functionBind;
|
|
12875
|
+
}
|
|
12876
|
+
var functionCall;
|
|
12877
|
+
var hasRequiredFunctionCall;
|
|
12878
|
+
function requireFunctionCall() {
|
|
12879
|
+
if (hasRequiredFunctionCall) return functionCall;
|
|
12880
|
+
hasRequiredFunctionCall = 1;
|
|
12881
|
+
functionCall = Function.prototype.call;
|
|
12882
|
+
return functionCall;
|
|
12883
|
+
}
|
|
12863
12884
|
var functionApply;
|
|
12864
12885
|
var hasRequiredFunctionApply;
|
|
12865
12886
|
function requireFunctionApply() {
|
|
@@ -12869,14 +12890,14 @@ function requireFunctionApply() {
|
|
|
12869
12890
|
return functionApply;
|
|
12870
12891
|
}
|
|
12871
12892
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
12872
|
-
var bind$2 =
|
|
12893
|
+
var bind$2 = requireFunctionBind();
|
|
12873
12894
|
var $apply$1 = requireFunctionApply();
|
|
12874
|
-
var $call$2 =
|
|
12895
|
+
var $call$2 = requireFunctionCall();
|
|
12875
12896
|
var $reflectApply = reflectApply;
|
|
12876
12897
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
12877
|
-
var bind$1 =
|
|
12898
|
+
var bind$1 = requireFunctionBind();
|
|
12878
12899
|
var $TypeError$4 = type;
|
|
12879
|
-
var $call$1 =
|
|
12900
|
+
var $call$1 = requireFunctionCall();
|
|
12880
12901
|
var $actualApply = actualApply;
|
|
12881
12902
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
12882
12903
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -12942,8 +12963,8 @@ function requireHasown() {
|
|
|
12942
12963
|
hasRequiredHasown = 1;
|
|
12943
12964
|
var call = Function.prototype.call;
|
|
12944
12965
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
12945
|
-
var
|
|
12946
|
-
hasown =
|
|
12966
|
+
var bind2 = requireFunctionBind();
|
|
12967
|
+
hasown = bind2.call(call, $hasOwn);
|
|
12947
12968
|
return hasown;
|
|
12948
12969
|
}
|
|
12949
12970
|
var undefined$1;
|
|
@@ -12957,7 +12978,7 @@ var $TypeError$3 = type;
|
|
|
12957
12978
|
var $URIError = uri;
|
|
12958
12979
|
var abs = abs$1;
|
|
12959
12980
|
var floor = floor$1;
|
|
12960
|
-
var max = max$
|
|
12981
|
+
var max = max$1;
|
|
12961
12982
|
var min = min$1;
|
|
12962
12983
|
var pow = pow$1;
|
|
12963
12984
|
var round$1 = round$2;
|
|
@@ -12991,7 +13012,7 @@ var getProto = requireGetProto();
|
|
|
12991
13012
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
12992
13013
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
12993
13014
|
var $apply = requireFunctionApply();
|
|
12994
|
-
var $call =
|
|
13015
|
+
var $call = requireFunctionCall();
|
|
12995
13016
|
var needsEval = {};
|
|
12996
13017
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
12997
13018
|
var INTRINSICS = {
|
|
@@ -13162,13 +13183,13 @@ var LEGACY_ALIASES = {
|
|
|
13162
13183
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
13163
13184
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
13164
13185
|
};
|
|
13165
|
-
var
|
|
13186
|
+
var bind = requireFunctionBind();
|
|
13166
13187
|
var hasOwn = requireHasown();
|
|
13167
|
-
var $concat =
|
|
13168
|
-
var $spliceApply =
|
|
13169
|
-
var $replace =
|
|
13170
|
-
var $strSlice =
|
|
13171
|
-
var $exec =
|
|
13188
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
13189
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
13190
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
13191
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
13192
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
13172
13193
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
13173
13194
|
var reEscapeChar = /\\(\\)?/g;
|
|
13174
13195
|
var stringToPath = function stringToPath2(string2) {
|