@heycater/qualification-funnel 1.19.15 → 1.19.16

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
@@ -13078,7 +13078,14 @@ function requireFunctionBind() {
13078
13078
  functionBind = Function.prototype.bind || implementation2;
13079
13079
  return functionBind;
13080
13080
  }
13081
- var functionCall = Function.prototype.call;
13081
+ var functionCall;
13082
+ var hasRequiredFunctionCall;
13083
+ function requireFunctionCall() {
13084
+ if (hasRequiredFunctionCall) return functionCall;
13085
+ hasRequiredFunctionCall = 1;
13086
+ functionCall = Function.prototype.call;
13087
+ return functionCall;
13088
+ }
13082
13089
  var functionApply;
13083
13090
  var hasRequiredFunctionApply;
13084
13091
  function requireFunctionApply() {
@@ -13090,12 +13097,12 @@ function requireFunctionApply() {
13090
13097
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
13091
13098
  var bind$2 = requireFunctionBind();
13092
13099
  var $apply$1 = requireFunctionApply();
13093
- var $call$2 = functionCall;
13100
+ var $call$2 = requireFunctionCall();
13094
13101
  var $reflectApply = reflectApply;
13095
13102
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
13096
13103
  var bind$1 = requireFunctionBind();
13097
13104
  var $TypeError$4 = type;
13098
- var $call$1 = functionCall;
13105
+ var $call$1 = requireFunctionCall();
13099
13106
  var $actualApply = actualApply;
13100
13107
  var callBindApplyHelpers = function callBindBasic(args) {
13101
13108
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -13210,7 +13217,7 @@ var getProto = requireGetProto();
13210
13217
  var $ObjectGPO = requireObject_getPrototypeOf();
13211
13218
  var $ReflectGPO = requireReflect_getPrototypeOf();
13212
13219
  var $apply = requireFunctionApply();
13213
- var $call = functionCall;
13220
+ var $call = requireFunctionCall();
13214
13221
  var needsEval = {};
13215
13222
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
13216
13223
  var INTRINSICS = {
@@ -26445,7 +26452,9 @@ function FormikFormField({
26445
26452
  }
26446
26453
  const capitalizeFirstLetter = (str) => str ? str.charAt(0).toUpperCase() + str.slice(1) : "";
26447
26454
  function PhoneField({ label, name, formik, helperText }) {
26448
- const error = formik.errors.phone;
26455
+ const { t: t2 } = useTranslation();
26456
+ const rawError = formik.errors.phone;
26457
+ const error = rawError ? t2(rawError) : rawError;
26449
26458
  const fieldValue = formik.values.phone;
26450
26459
  const touched = formik.touched.phone;
26451
26460
  const handleChange = (e2) => {
@@ -29769,8 +29778,14 @@ const ENGLISH_RESOURCES = {
29769
29778
  };
29770
29779
  const localeResources = {
29771
29780
  en: { ...ENGLISH_RESOURCES },
29781
+ "en-uk": { ...ENGLISH_RESOURCES },
29782
+ "en-de": { ...ENGLISH_RESOURCES },
29772
29783
  de: { ...GERMAN_RESOURCES },
29773
- da: { ...ENGLISH_RESOURCES }
29784
+ "de-at": { ...GERMAN_RESOURCES },
29785
+ "de-ch": { ...GERMAN_RESOURCES },
29786
+ "de-de": { ...GERMAN_RESOURCES },
29787
+ da: { ...ENGLISH_RESOURCES },
29788
+ "da-dk": { ...ENGLISH_RESOURCES }
29774
29789
  };
29775
29790
  const LOCALE_FALLBACKS = {
29776
29791
  "en-uk": ["en"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycater/qualification-funnel",
3
- "version": "1.19.15",
3
+ "version": "1.19.16",
4
4
  "type": "module",
5
5
  "description": "Heycater embedded qualification funnel widget",
6
6
  "main": "dist/index.cjs.js",