@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/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("qf_v13_answer_selected", properties);
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("qf_v13_form_submitted", properties);
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("qf_v13_completed", properties);
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("qf_v13_abandoned", properties);
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("qf_v13_started", properties);
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 = `qf_v13_started_${funnelContextRef.current.session_id}_${serviceType}`;
10201
- const trackedStepsKey = `qf_v13_tracked_steps_${funnelContextRef.current.session_id}_${serviceType}`;
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$1 = Math.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 implementation;
12912
- var hasRequiredImplementation;
12913
- function requireImplementation() {
12914
- if (hasRequiredImplementation) return implementation;
12915
- hasRequiredImplementation = 1;
12916
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
12917
- var toStr2 = Object.prototype.toString;
12918
- var max2 = Math.max;
12919
- var funcType = "[object Function]";
12920
- var concatty = function concatty2(a3, b2) {
12921
- var arr = [];
12922
- for (var i2 = 0; i2 < a3.length; i2 += 1) {
12923
- arr[i2] = a3[i2];
12924
- }
12925
- for (var j = 0; j < b2.length; j += 1) {
12926
- arr[j + a3.length] = b2[j];
12927
- }
12928
- return arr;
12929
- };
12930
- var slicy = function slicy2(arrLike, offset2) {
12931
- var arr = [];
12932
- for (var i2 = offset2, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
12933
- arr[j] = arrLike[i2];
12934
- }
12935
- return arr;
12936
- };
12937
- var joiny = function(arr, joiner) {
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
- return str;
12946
- };
12947
- implementation = function bind2(that) {
12948
- var target = this;
12949
- if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
12950
- throw new TypeError(ERROR_MESSAGE + target);
12951
- }
12952
- var args = slicy(arguments, 1);
12953
- var bound;
12954
- var binder = function() {
12955
- if (this instanceof bound) {
12956
- var result = target.apply(
12957
- this,
12958
- concatty(args, arguments)
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
- var boundLength = max2(0, target.length - args.length);
12971
- var boundArgs = [];
12972
- for (var i2 = 0; i2 < boundLength; i2++) {
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 bound;
12960
+ return target.apply(
12961
+ that,
12962
+ concatty(args, arguments)
12963
+ );
12984
12964
  };
12985
- return implementation;
12986
- }
12987
- var functionBind;
12988
- var hasRequiredFunctionBind;
12989
- function requireFunctionBind() {
12990
- if (hasRequiredFunctionBind) return functionBind;
12991
- hasRequiredFunctionBind = 1;
12992
- var implementation2 = requireImplementation();
12993
- functionBind = Function.prototype.bind || implementation2;
12994
- return functionBind;
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 = requireFunctionBind();
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 = requireFunctionBind();
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 bind2 = requireFunctionBind();
13087
- hasown = bind2.call(call, $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$1;
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 bind = requireFunctionBind();
13292
+ var bind2 = functionBind;
13307
13293
  var hasOwn = requireHasown();
13308
- var $concat = bind.call($call, Array.prototype.concat);
13309
- var $spliceApply = bind.call($apply, Array.prototype.splice);
13310
- var $replace = bind.call($call, String.prototype.replace);
13311
- var $strSlice = bind.call($call, String.prototype.slice);
13312
- var $exec = bind.call($call, RegExp.prototype.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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycater/qualification-funnel",
3
- "version": "1.17.0",
3
+ "version": "1.18.0",
4
4
  "type": "module",
5
5
  "description": "Heycater embedded qualification funnel widget",
6
6
  "main": "dist/index.cjs.js",