@heycater/qualification-funnel 1.3.16 → 1.3.17

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
@@ -12449,7 +12449,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
12449
12449
  var ys = arrObjKeys(obj, inspect2);
12450
12450
  var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
12451
12451
  var protoTag = obj instanceof Object ? "" : "null prototype";
12452
- var stringTag2 = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
12452
+ var stringTag2 = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
12453
12453
  var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
12454
12454
  var tag = constructorTag + (stringTag2 || protoTag ? "[" + $join.call($concat$1.call([], stringTag2 || [], protoTag || []), ": ") + "] " : "");
12455
12455
  if (ys.length === 0) {
@@ -12474,25 +12474,25 @@ function canTrustToString(obj) {
12474
12474
  return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
12475
12475
  }
12476
12476
  function isArray$2(obj) {
12477
- return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
12477
+ return toStr(obj) === "[object Array]" && canTrustToString(obj);
12478
12478
  }
12479
12479
  function isDate(obj) {
12480
- return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
12480
+ return toStr(obj) === "[object Date]" && canTrustToString(obj);
12481
12481
  }
12482
12482
  function isRegExp$1(obj) {
12483
- return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
12483
+ return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
12484
12484
  }
12485
12485
  function isError(obj) {
12486
- return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
12486
+ return toStr(obj) === "[object Error]" && canTrustToString(obj);
12487
12487
  }
12488
12488
  function isString(obj) {
12489
- return toStr$1(obj) === "[object String]" && canTrustToString(obj);
12489
+ return toStr(obj) === "[object String]" && canTrustToString(obj);
12490
12490
  }
12491
12491
  function isNumber(obj) {
12492
- return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
12492
+ return toStr(obj) === "[object Number]" && canTrustToString(obj);
12493
12493
  }
12494
12494
  function isBoolean(obj) {
12495
- return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
12495
+ return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
12496
12496
  }
12497
12497
  function isSymbol(obj) {
12498
12498
  if (hasShammedSymbols) {
@@ -12528,7 +12528,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
12528
12528
  function has$3(obj, key) {
12529
12529
  return hasOwn$1.call(obj, key);
12530
12530
  }
12531
- function toStr$1(obj) {
12531
+ function toStr(obj) {
12532
12532
  return objectToString.call(obj);
12533
12533
  }
12534
12534
  function nameOf(f) {
@@ -12837,7 +12837,7 @@ var syntax = SyntaxError;
12837
12837
  var uri = URIError;
12838
12838
  var abs$1 = Math.abs;
12839
12839
  var floor$1 = Math.floor;
12840
- var max$2 = Math.max;
12840
+ var max$1 = Math.max;
12841
12841
  var min$1 = Math.min;
12842
12842
  var pow$1 = Math.pow;
12843
12843
  var round$2 = Math.round;
@@ -12966,77 +12966,91 @@ function requireObject_getPrototypeOf() {
12966
12966
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
12967
12967
  return Object_getPrototypeOf;
12968
12968
  }
12969
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
12970
- var toStr = Object.prototype.toString;
12971
- var max$1 = Math.max;
12972
- var funcType = "[object Function]";
12973
- var concatty = function concatty2(a3, b2) {
12974
- var arr = [];
12975
- for (var i2 = 0; i2 < a3.length; i2 += 1) {
12976
- arr[i2] = a3[i2];
12977
- }
12978
- for (var j = 0; j < b2.length; j += 1) {
12979
- arr[j + a3.length] = b2[j];
12980
- }
12981
- return arr;
12982
- };
12983
- var slicy = function slicy2(arrLike, offset2) {
12984
- var arr = [];
12985
- for (var i2 = offset2, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
12986
- arr[j] = arrLike[i2];
12987
- }
12988
- return arr;
12989
- };
12990
- var joiny = function(arr, joiner) {
12991
- var str = "";
12992
- for (var i2 = 0; i2 < arr.length; i2 += 1) {
12993
- str += arr[i2];
12994
- if (i2 + 1 < arr.length) {
12995
- str += joiner;
12969
+ var implementation;
12970
+ var hasRequiredImplementation;
12971
+ function requireImplementation() {
12972
+ if (hasRequiredImplementation) return implementation;
12973
+ hasRequiredImplementation = 1;
12974
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
12975
+ var toStr2 = Object.prototype.toString;
12976
+ var max2 = Math.max;
12977
+ var funcType = "[object Function]";
12978
+ var concatty = function concatty2(a3, b2) {
12979
+ var arr = [];
12980
+ for (var i2 = 0; i2 < a3.length; i2 += 1) {
12981
+ arr[i2] = a3[i2];
12996
12982
  }
12997
- }
12998
- return str;
12999
- };
13000
- var implementation$1 = function bind(that) {
13001
- var target = this;
13002
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
13003
- throw new TypeError(ERROR_MESSAGE + target);
13004
- }
13005
- var args = slicy(arguments, 1);
13006
- var bound;
13007
- var binder = function() {
13008
- if (this instanceof bound) {
13009
- var result = target.apply(
13010
- this,
13011
- concatty(args, arguments)
13012
- );
13013
- if (Object(result) === result) {
13014
- return result;
12983
+ for (var j = 0; j < b2.length; j += 1) {
12984
+ arr[j + a3.length] = b2[j];
12985
+ }
12986
+ return arr;
12987
+ };
12988
+ var slicy = function slicy2(arrLike, offset2) {
12989
+ var arr = [];
12990
+ for (var i2 = offset2, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
12991
+ arr[j] = arrLike[i2];
12992
+ }
12993
+ return arr;
12994
+ };
12995
+ var joiny = function(arr, joiner) {
12996
+ var str = "";
12997
+ for (var i2 = 0; i2 < arr.length; i2 += 1) {
12998
+ str += arr[i2];
12999
+ if (i2 + 1 < arr.length) {
13000
+ str += joiner;
13015
13001
  }
13016
- return this;
13017
13002
  }
13018
- return target.apply(
13019
- that,
13020
- concatty(args, arguments)
13021
- );
13003
+ return str;
13022
13004
  };
13023
- var boundLength = max$1(0, target.length - args.length);
13024
- var boundArgs = [];
13025
- for (var i2 = 0; i2 < boundLength; i2++) {
13026
- boundArgs[i2] = "$" + i2;
13027
- }
13028
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
13029
- if (target.prototype) {
13030
- var Empty = function Empty2() {
13005
+ implementation = function bind2(that) {
13006
+ var target = this;
13007
+ if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
13008
+ throw new TypeError(ERROR_MESSAGE + target);
13009
+ }
13010
+ var args = slicy(arguments, 1);
13011
+ var bound;
13012
+ var binder = function() {
13013
+ if (this instanceof bound) {
13014
+ var result = target.apply(
13015
+ this,
13016
+ concatty(args, arguments)
13017
+ );
13018
+ if (Object(result) === result) {
13019
+ return result;
13020
+ }
13021
+ return this;
13022
+ }
13023
+ return target.apply(
13024
+ that,
13025
+ concatty(args, arguments)
13026
+ );
13031
13027
  };
13032
- Empty.prototype = target.prototype;
13033
- bound.prototype = new Empty();
13034
- Empty.prototype = null;
13035
- }
13036
- return bound;
13037
- };
13038
- var implementation = implementation$1;
13039
- var functionBind = Function.prototype.bind || implementation;
13028
+ var boundLength = max2(0, target.length - args.length);
13029
+ var boundArgs = [];
13030
+ for (var i2 = 0; i2 < boundLength; i2++) {
13031
+ boundArgs[i2] = "$" + i2;
13032
+ }
13033
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
13034
+ if (target.prototype) {
13035
+ var Empty = function Empty2() {
13036
+ };
13037
+ Empty.prototype = target.prototype;
13038
+ bound.prototype = new Empty();
13039
+ Empty.prototype = null;
13040
+ }
13041
+ return bound;
13042
+ };
13043
+ return implementation;
13044
+ }
13045
+ var functionBind;
13046
+ var hasRequiredFunctionBind;
13047
+ function requireFunctionBind() {
13048
+ if (hasRequiredFunctionBind) return functionBind;
13049
+ hasRequiredFunctionBind = 1;
13050
+ var implementation2 = requireImplementation();
13051
+ functionBind = Function.prototype.bind || implementation2;
13052
+ return functionBind;
13053
+ }
13040
13054
  var functionCall = Function.prototype.call;
13041
13055
  var functionApply;
13042
13056
  var hasRequiredFunctionApply;
@@ -13047,12 +13061,12 @@ function requireFunctionApply() {
13047
13061
  return functionApply;
13048
13062
  }
13049
13063
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
13050
- var bind$2 = functionBind;
13064
+ var bind$2 = requireFunctionBind();
13051
13065
  var $apply$1 = requireFunctionApply();
13052
13066
  var $call$2 = functionCall;
13053
13067
  var $reflectApply = reflectApply;
13054
13068
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
13055
- var bind$1 = functionBind;
13069
+ var bind$1 = requireFunctionBind();
13056
13070
  var $TypeError$4 = type;
13057
13071
  var $call$1 = functionCall;
13058
13072
  var $actualApply = actualApply;
@@ -13120,8 +13134,8 @@ function requireHasown() {
13120
13134
  hasRequiredHasown = 1;
13121
13135
  var call = Function.prototype.call;
13122
13136
  var $hasOwn = Object.prototype.hasOwnProperty;
13123
- var bind3 = functionBind;
13124
- hasown = bind3.call(call, $hasOwn);
13137
+ var bind2 = requireFunctionBind();
13138
+ hasown = bind2.call(call, $hasOwn);
13125
13139
  return hasown;
13126
13140
  }
13127
13141
  var undefined$1;
@@ -13135,7 +13149,7 @@ var $TypeError$3 = type;
13135
13149
  var $URIError = uri;
13136
13150
  var abs = abs$1;
13137
13151
  var floor = floor$1;
13138
- var max = max$2;
13152
+ var max = max$1;
13139
13153
  var min = min$1;
13140
13154
  var pow = pow$1;
13141
13155
  var round$1 = round$2;
@@ -13340,13 +13354,13 @@ var LEGACY_ALIASES = {
13340
13354
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
13341
13355
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
13342
13356
  };
13343
- var bind2 = functionBind;
13357
+ var bind = requireFunctionBind();
13344
13358
  var hasOwn = requireHasown();
13345
- var $concat = bind2.call($call, Array.prototype.concat);
13346
- var $spliceApply = bind2.call($apply, Array.prototype.splice);
13347
- var $replace = bind2.call($call, String.prototype.replace);
13348
- var $strSlice = bind2.call($call, String.prototype.slice);
13349
- var $exec = bind2.call($call, RegExp.prototype.exec);
13359
+ var $concat = bind.call($call, Array.prototype.concat);
13360
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
13361
+ var $replace = bind.call($call, String.prototype.replace);
13362
+ var $strSlice = bind.call($call, String.prototype.slice);
13363
+ var $exec = bind.call($call, RegExp.prototype.exec);
13350
13364
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
13351
13365
  var reEscapeChar = /\\(\\)?/g;
13352
13366
  var stringToPath = function stringToPath2(string2) {
@@ -14969,12 +14983,17 @@ function requireReactIs_development() {
14969
14983
  }
14970
14984
  return reactIs_development;
14971
14985
  }
14972
- if (process.env.NODE_ENV === "production") {
14973
- reactIs$1.exports = requireReactIs_production_min();
14974
- } else {
14975
- reactIs$1.exports = requireReactIs_development();
14986
+ var hasRequiredReactIs;
14987
+ function requireReactIs() {
14988
+ if (hasRequiredReactIs) return reactIs$1.exports;
14989
+ hasRequiredReactIs = 1;
14990
+ if (process.env.NODE_ENV === "production") {
14991
+ reactIs$1.exports = requireReactIs_production_min();
14992
+ } else {
14993
+ reactIs$1.exports = requireReactIs_development();
14994
+ }
14995
+ return reactIs$1.exports;
14976
14996
  }
14977
- var reactIsExports = reactIs$1.exports;
14978
14997
  /*
14979
14998
  object-assign
14980
14999
  (c) Sindre Sorhus
@@ -15135,7 +15154,7 @@ var hasRequiredFactoryWithTypeCheckers;
15135
15154
  function requireFactoryWithTypeCheckers() {
15136
15155
  if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
15137
15156
  hasRequiredFactoryWithTypeCheckers = 1;
15138
- var ReactIs = reactIsExports;
15157
+ var ReactIs = requireReactIs();
15139
15158
  var assign2 = requireObjectAssign();
15140
15159
  var ReactPropTypesSecret = requireReactPropTypesSecret();
15141
15160
  var has2 = requireHas();
@@ -15628,7 +15647,7 @@ function requireFactoryWithThrowingShims() {
15628
15647
  return factoryWithThrowingShims;
15629
15648
  }
15630
15649
  if (process.env.NODE_ENV !== "production") {
15631
- var ReactIs = reactIsExports;
15650
+ var ReactIs = requireReactIs();
15632
15651
  var throwOnDirectAccess = true;
15633
15652
  propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
15634
15653
  } else {
@@ -15723,6 +15742,7 @@ function formatMuiErrorMessage(code) {
15723
15742
  }
15724
15743
  return "Minified Material-UI error #" + code + "; visit " + url + " for the full message.";
15725
15744
  }
15745
+ var reactIsExports = requireReactIs();
15726
15746
  var fnNameMatchRegex = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
15727
15747
  function getFunctionName(fn) {
15728
15748
  var match2 = "".concat(fn).match(fnNameMatchRegex);
@@ -19217,7 +19237,7 @@ function makeStyles(stylesOrCreator) {
19217
19237
  };
19218
19238
  return useStyles;
19219
19239
  }
19220
- var reactIs = reactIsExports;
19240
+ var reactIs = requireReactIs();
19221
19241
  var REACT_STATICS = {
19222
19242
  childContextTypes: true,
19223
19243
  contextType: true,
@@ -25825,10 +25845,10 @@ function useQfLeadCreator() {
25825
25845
  team_size,
25826
25846
  delivery_frequency,
25827
25847
  budget_range,
25828
- people_count
25848
+ min_order_number
25829
25849
  } = variables;
25830
25850
  const hasDietaryBreakdown = number_of_vegans != null && number_of_vegetarians != null && number_of_carnivore != null;
25831
- const numberOfPeople = hasDietaryBreakdown ? number_of_vegans + number_of_vegetarians + number_of_carnivore : people_count || team_size || null;
25851
+ const numberOfPeople = hasDietaryBreakdown ? number_of_vegans + number_of_vegetarians + number_of_carnivore : min_order_number || team_size || null;
25832
25852
  const totalBudget = numberOfPeople && price_per_person ? numberOfPeople * price_per_person : null;
25833
25853
  const {
25834
25854
  data: { createQfLead: response }
@@ -25865,6 +25885,7 @@ function useQfLeadCreator() {
25865
25885
  event.addMetadata("createQfLead", variables);
25866
25886
  });
25867
25887
  }
25888
+ return { success: false };
25868
25889
  }
25869
25890
  };
25870
25891
  return {