@heycater/qualification-funnel 1.17.0 → 1.18.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 +56 -56
- package/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +94 -108
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -10096,7 +10096,7 @@ function trackAnswerSelected(context, answer) {
|
|
|
10096
10096
|
if (context.city) {
|
|
10097
10097
|
properties.city = context.city;
|
|
10098
10098
|
}
|
|
10099
|
-
captureEvent("
|
|
10099
|
+
captureEvent("qf_v14_answer_selected", properties);
|
|
10100
10100
|
}
|
|
10101
10101
|
function trackFormSubmitted(context, metadata) {
|
|
10102
10102
|
if (!context.session_id) {
|
|
@@ -10114,7 +10114,7 @@ function trackFormSubmitted(context, metadata) {
|
|
|
10114
10114
|
if (context.city) {
|
|
10115
10115
|
properties.city = context.city;
|
|
10116
10116
|
}
|
|
10117
|
-
captureEvent("
|
|
10117
|
+
captureEvent("qf_v14_form_submitted", properties);
|
|
10118
10118
|
}
|
|
10119
10119
|
function trackCompleted(context) {
|
|
10120
10120
|
if (!context.session_id) {
|
|
@@ -10131,7 +10131,7 @@ function trackCompleted(context) {
|
|
|
10131
10131
|
if (context.city) {
|
|
10132
10132
|
properties.city = context.city;
|
|
10133
10133
|
}
|
|
10134
|
-
captureEvent("
|
|
10134
|
+
captureEvent("qf_v14_completed", properties);
|
|
10135
10135
|
}
|
|
10136
10136
|
function trackAbandoned(context, lastStep) {
|
|
10137
10137
|
if (!context.session_id) {
|
|
@@ -10150,7 +10150,7 @@ function trackAbandoned(context, lastStep) {
|
|
|
10150
10150
|
if (context.city) {
|
|
10151
10151
|
properties.city = context.city;
|
|
10152
10152
|
}
|
|
10153
|
-
captureEvent("
|
|
10153
|
+
captureEvent("qf_v14_abandoned", properties);
|
|
10154
10154
|
}
|
|
10155
10155
|
function trackStarted(context, initialStepId) {
|
|
10156
10156
|
const properties = {
|
|
@@ -10158,7 +10158,7 @@ function trackStarted(context, initialStepId) {
|
|
|
10158
10158
|
session_id: context.session_id,
|
|
10159
10159
|
initial_step: initialStepId
|
|
10160
10160
|
};
|
|
10161
|
-
captureEvent("
|
|
10161
|
+
captureEvent("qf_v14_started", properties);
|
|
10162
10162
|
}
|
|
10163
10163
|
function serializeAnswerValue(value) {
|
|
10164
10164
|
if (value === void 0) return null;
|
|
@@ -10197,8 +10197,8 @@ function TrackingProvider({
|
|
|
10197
10197
|
return answerOf(questionId);
|
|
10198
10198
|
};
|
|
10199
10199
|
const serviceType = funnelContextRef.current.service_type || answerOf("service_type") || "";
|
|
10200
|
-
const sessionKey = `
|
|
10201
|
-
const trackedStepsKey = `
|
|
10200
|
+
const sessionKey = `qf_v14_started_${funnelContextRef.current.session_id}_${serviceType}`;
|
|
10201
|
+
const trackedStepsKey = `qf_v14_tracked_steps_${funnelContextRef.current.session_id}_${serviceType}`;
|
|
10202
10202
|
let isFirstTracking = false;
|
|
10203
10203
|
if (typeof sessionStorage !== "undefined") {
|
|
10204
10204
|
const hasStarted = sessionStorage.getItem(sessionKey);
|
|
@@ -12391,7 +12391,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
12391
12391
|
var ys = arrObjKeys(obj, inspect2);
|
|
12392
12392
|
var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
12393
12393
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
12394
|
-
var stringTag2 = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
12394
|
+
var stringTag2 = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
|
|
12395
12395
|
var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
12396
12396
|
var tag = constructorTag + (stringTag2 || protoTag ? "[" + $join.call($concat$1.call([], stringTag2 || [], protoTag || []), ": ") + "] " : "");
|
|
12397
12397
|
if (ys.length === 0) {
|
|
@@ -12416,25 +12416,25 @@ function canTrustToString(obj) {
|
|
|
12416
12416
|
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
12417
12417
|
}
|
|
12418
12418
|
function isArray$3(obj) {
|
|
12419
|
-
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
12419
|
+
return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
|
|
12420
12420
|
}
|
|
12421
12421
|
function isDate(obj) {
|
|
12422
|
-
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
12422
|
+
return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
|
|
12423
12423
|
}
|
|
12424
12424
|
function isRegExp$1(obj) {
|
|
12425
|
-
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
12425
|
+
return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
12426
12426
|
}
|
|
12427
12427
|
function isError(obj) {
|
|
12428
|
-
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
12428
|
+
return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
|
|
12429
12429
|
}
|
|
12430
12430
|
function isString(obj) {
|
|
12431
|
-
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
12431
|
+
return toStr$1(obj) === "[object String]" && canTrustToString(obj);
|
|
12432
12432
|
}
|
|
12433
12433
|
function isNumber(obj) {
|
|
12434
|
-
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
12434
|
+
return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
|
|
12435
12435
|
}
|
|
12436
12436
|
function isBoolean(obj) {
|
|
12437
|
-
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
12437
|
+
return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
12438
12438
|
}
|
|
12439
12439
|
function isSymbol(obj) {
|
|
12440
12440
|
if (hasShammedSymbols) {
|
|
@@ -12470,7 +12470,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
|
12470
12470
|
function has$4(obj, key) {
|
|
12471
12471
|
return hasOwn$1.call(obj, key);
|
|
12472
12472
|
}
|
|
12473
|
-
function toStr(obj) {
|
|
12473
|
+
function toStr$1(obj) {
|
|
12474
12474
|
return objectToString.call(obj);
|
|
12475
12475
|
}
|
|
12476
12476
|
function nameOf(f) {
|
|
@@ -12779,7 +12779,7 @@ var syntax = SyntaxError;
|
|
|
12779
12779
|
var uri = URIError;
|
|
12780
12780
|
var abs$1 = Math.abs;
|
|
12781
12781
|
var floor$1 = Math.floor;
|
|
12782
|
-
var max$
|
|
12782
|
+
var max$2 = Math.max;
|
|
12783
12783
|
var min$1 = Math.min;
|
|
12784
12784
|
var pow$1 = Math.pow;
|
|
12785
12785
|
var round$2 = Math.round;
|
|
@@ -12908,91 +12908,77 @@ function requireObject_getPrototypeOf() {
|
|
|
12908
12908
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
12909
12909
|
return Object_getPrototypeOf;
|
|
12910
12910
|
}
|
|
12911
|
-
var
|
|
12912
|
-
var
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
var
|
|
12917
|
-
var
|
|
12918
|
-
|
|
12919
|
-
|
|
12920
|
-
var
|
|
12921
|
-
|
|
12922
|
-
|
|
12923
|
-
|
|
12924
|
-
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
|
-
|
|
12928
|
-
|
|
12929
|
-
}
|
|
12930
|
-
|
|
12931
|
-
|
|
12932
|
-
|
|
12933
|
-
|
|
12934
|
-
|
|
12935
|
-
|
|
12936
|
-
|
|
12937
|
-
|
|
12938
|
-
var str = "";
|
|
12939
|
-
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
12940
|
-
str += arr[i2];
|
|
12941
|
-
if (i2 + 1 < arr.length) {
|
|
12942
|
-
str += joiner;
|
|
12943
|
-
}
|
|
12911
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
12912
|
+
var toStr = Object.prototype.toString;
|
|
12913
|
+
var max$1 = Math.max;
|
|
12914
|
+
var funcType = "[object Function]";
|
|
12915
|
+
var concatty = function concatty2(a3, b2) {
|
|
12916
|
+
var arr = [];
|
|
12917
|
+
for (var i2 = 0; i2 < a3.length; i2 += 1) {
|
|
12918
|
+
arr[i2] = a3[i2];
|
|
12919
|
+
}
|
|
12920
|
+
for (var j = 0; j < b2.length; j += 1) {
|
|
12921
|
+
arr[j + a3.length] = b2[j];
|
|
12922
|
+
}
|
|
12923
|
+
return arr;
|
|
12924
|
+
};
|
|
12925
|
+
var slicy = function slicy2(arrLike, offset2) {
|
|
12926
|
+
var arr = [];
|
|
12927
|
+
for (var i2 = offset2, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
|
|
12928
|
+
arr[j] = arrLike[i2];
|
|
12929
|
+
}
|
|
12930
|
+
return arr;
|
|
12931
|
+
};
|
|
12932
|
+
var joiny = function(arr, joiner) {
|
|
12933
|
+
var str = "";
|
|
12934
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
12935
|
+
str += arr[i2];
|
|
12936
|
+
if (i2 + 1 < arr.length) {
|
|
12937
|
+
str += joiner;
|
|
12944
12938
|
}
|
|
12945
|
-
|
|
12946
|
-
|
|
12947
|
-
|
|
12948
|
-
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
|
|
12952
|
-
|
|
12953
|
-
|
|
12954
|
-
|
|
12955
|
-
|
|
12956
|
-
|
|
12957
|
-
|
|
12958
|
-
|
|
12959
|
-
);
|
|
12960
|
-
if (Object(result) === result) {
|
|
12961
|
-
return result;
|
|
12962
|
-
}
|
|
12963
|
-
return this;
|
|
12964
|
-
}
|
|
12965
|
-
return target.apply(
|
|
12966
|
-
that,
|
|
12939
|
+
}
|
|
12940
|
+
return str;
|
|
12941
|
+
};
|
|
12942
|
+
var implementation$1 = function bind(that) {
|
|
12943
|
+
var target = this;
|
|
12944
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
12945
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
12946
|
+
}
|
|
12947
|
+
var args = slicy(arguments, 1);
|
|
12948
|
+
var bound;
|
|
12949
|
+
var binder = function() {
|
|
12950
|
+
if (this instanceof bound) {
|
|
12951
|
+
var result = target.apply(
|
|
12952
|
+
this,
|
|
12967
12953
|
concatty(args, arguments)
|
|
12968
12954
|
);
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
|
|
12973
|
-
boundArgs[i2] = "$" + i2;
|
|
12974
|
-
}
|
|
12975
|
-
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
12976
|
-
if (target.prototype) {
|
|
12977
|
-
var Empty = function Empty2() {
|
|
12978
|
-
};
|
|
12979
|
-
Empty.prototype = target.prototype;
|
|
12980
|
-
bound.prototype = new Empty();
|
|
12981
|
-
Empty.prototype = null;
|
|
12955
|
+
if (Object(result) === result) {
|
|
12956
|
+
return result;
|
|
12957
|
+
}
|
|
12958
|
+
return this;
|
|
12982
12959
|
}
|
|
12983
|
-
return
|
|
12960
|
+
return target.apply(
|
|
12961
|
+
that,
|
|
12962
|
+
concatty(args, arguments)
|
|
12963
|
+
);
|
|
12984
12964
|
};
|
|
12985
|
-
|
|
12986
|
-
|
|
12987
|
-
var
|
|
12988
|
-
|
|
12989
|
-
|
|
12990
|
-
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
|
|
12994
|
-
|
|
12995
|
-
|
|
12965
|
+
var boundLength = max$1(0, target.length - args.length);
|
|
12966
|
+
var boundArgs = [];
|
|
12967
|
+
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
12968
|
+
boundArgs[i2] = "$" + i2;
|
|
12969
|
+
}
|
|
12970
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
12971
|
+
if (target.prototype) {
|
|
12972
|
+
var Empty = function Empty2() {
|
|
12973
|
+
};
|
|
12974
|
+
Empty.prototype = target.prototype;
|
|
12975
|
+
bound.prototype = new Empty();
|
|
12976
|
+
Empty.prototype = null;
|
|
12977
|
+
}
|
|
12978
|
+
return bound;
|
|
12979
|
+
};
|
|
12980
|
+
var implementation = implementation$1;
|
|
12981
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
12996
12982
|
var functionCall;
|
|
12997
12983
|
var hasRequiredFunctionCall;
|
|
12998
12984
|
function requireFunctionCall() {
|
|
@@ -13010,12 +12996,12 @@ function requireFunctionApply() {
|
|
|
13010
12996
|
return functionApply;
|
|
13011
12997
|
}
|
|
13012
12998
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
13013
|
-
var bind$2 =
|
|
12999
|
+
var bind$2 = functionBind;
|
|
13014
13000
|
var $apply$1 = requireFunctionApply();
|
|
13015
13001
|
var $call$2 = requireFunctionCall();
|
|
13016
13002
|
var $reflectApply = reflectApply;
|
|
13017
13003
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
13018
|
-
var bind$1 =
|
|
13004
|
+
var bind$1 = functionBind;
|
|
13019
13005
|
var $TypeError$4 = type;
|
|
13020
13006
|
var $call$1 = requireFunctionCall();
|
|
13021
13007
|
var $actualApply = actualApply;
|
|
@@ -13083,8 +13069,8 @@ function requireHasown() {
|
|
|
13083
13069
|
hasRequiredHasown = 1;
|
|
13084
13070
|
var call = Function.prototype.call;
|
|
13085
13071
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
13086
|
-
var
|
|
13087
|
-
hasown =
|
|
13072
|
+
var bind3 = functionBind;
|
|
13073
|
+
hasown = bind3.call(call, $hasOwn);
|
|
13088
13074
|
return hasown;
|
|
13089
13075
|
}
|
|
13090
13076
|
var undefined$1;
|
|
@@ -13098,7 +13084,7 @@ var $TypeError$3 = type;
|
|
|
13098
13084
|
var $URIError = uri;
|
|
13099
13085
|
var abs = abs$1;
|
|
13100
13086
|
var floor = floor$1;
|
|
13101
|
-
var max = max$
|
|
13087
|
+
var max = max$2;
|
|
13102
13088
|
var min = min$1;
|
|
13103
13089
|
var pow = pow$1;
|
|
13104
13090
|
var round$1 = round$2;
|
|
@@ -13303,13 +13289,13 @@ var LEGACY_ALIASES = {
|
|
|
13303
13289
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
13304
13290
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
13305
13291
|
};
|
|
13306
|
-
var
|
|
13292
|
+
var bind2 = functionBind;
|
|
13307
13293
|
var hasOwn = requireHasown();
|
|
13308
|
-
var $concat =
|
|
13309
|
-
var $spliceApply =
|
|
13310
|
-
var $replace =
|
|
13311
|
-
var $strSlice =
|
|
13312
|
-
var $exec =
|
|
13294
|
+
var $concat = bind2.call($call, Array.prototype.concat);
|
|
13295
|
+
var $spliceApply = bind2.call($apply, Array.prototype.splice);
|
|
13296
|
+
var $replace = bind2.call($call, String.prototype.replace);
|
|
13297
|
+
var $strSlice = bind2.call($call, String.prototype.slice);
|
|
13298
|
+
var $exec = bind2.call($call, RegExp.prototype.exec);
|
|
13313
13299
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
13314
13300
|
var reEscapeChar = /\\(\\)?/g;
|
|
13315
13301
|
var stringToPath = function stringToPath2(string2) {
|