@odus/checkout 1.7.8 → 1.7.10

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.
@@ -336,7 +336,7 @@ var z = /* @__PURE__ */ new Set(["US", "CA"]), B = class extends N {
336
336
  let i = this.inputs.get(e);
337
337
  if (!i) return;
338
338
  let a = i.getElement().querySelector("input") || i.getElement().querySelector("select"), o = i.getValue();
339
- document.activeElement !== a && !(t === "" && o !== "") && this.setValue(e, t);
339
+ document.activeElement !== a && (t !== "" || o === "") && this.setValue(e, t);
340
340
  let s = !!(r && n);
341
341
  this.setError(e, s, n);
342
342
  }
@@ -521,9 +521,7 @@ var z = /* @__PURE__ */ new Set(["US", "CA"]), B = class extends N {
521
521
  this.paymentMethods.set("applePay", r), r.appendTo(this.getElement());
522
522
  }
523
523
  break;
524
- default:
525
- console.warn(`[PaymentMethods] Unsupported payment method: ${e}`);
526
- break;
524
+ default: console.warn(`[PaymentMethods] Unsupported payment method: ${e}`);
527
525
  }
528
526
  this.paymentMethods.size > 0 && (this.paymentSeparator = new U({
529
527
  translationFunc: o,
@@ -1009,20 +1007,22 @@ var z = /* @__PURE__ */ new Set(["US", "CA"]), B = class extends N {
1009
1007
  this.onUIUpdate();
1010
1008
  };
1011
1009
  handleProfileStateChange = (e) => {
1012
- if (!e.isLoading) if (e.checkoutProfile) try {
1013
- if (e.checkoutProfile.styles?.fontFamily) try {
1014
- let { cleanup: t } = h({ fontFamily: e.checkoutProfile.styles.fontFamily });
1015
- this.fontCleanup = t, this.formElement.style.fontFamily = e.checkoutProfile.styles.fontFamily;
1016
- } catch (e) {
1017
- console.error("Error loading Google Font:", e);
1010
+ if (!e.isLoading) {
1011
+ if (e.checkoutProfile) try {
1012
+ if (e.checkoutProfile.styles?.fontFamily) try {
1013
+ let { cleanup: t } = h({ fontFamily: e.checkoutProfile.styles.fontFamily });
1014
+ this.fontCleanup = t, this.formElement.style.fontFamily = e.checkoutProfile.styles.fontFamily;
1015
+ } catch (e) {
1016
+ console.error("Error loading Google Font:", e);
1017
+ }
1018
+ this.onProfileLoaded(), this.onLoadingChange(!1);
1019
+ } catch (t) {
1020
+ console.error("Error in profile state change:", t);
1021
+ let n = e.error || "Failed to load checkout profile data";
1022
+ this.onError(n), this.onLoadingChange(!1);
1018
1023
  }
1019
- this.onProfileLoaded(), this.onLoadingChange(!1);
1020
- } catch (t) {
1021
- console.error("Error in profile state change:", t);
1022
- let n = e.error || "Failed to load checkout profile data";
1023
- this.onError(n), this.onLoadingChange(!1);
1024
+ else e.error && (console.error("NO profile found", e.error), this.onError(e.error), this.onLoadingChange(!1));
1024
1025
  }
1025
- else e.error && (console.error("NO profile found", e.error), this.onError(e.error), this.onLoadingChange(!1));
1026
1026
  };
1027
1027
  isFormDisabled() {
1028
1028
  let e = this.formManager.getFormState(), t = this.checkoutProfile.getState(), n = Object.keys(e.errors).filter((e) => e !== "billingAddress" && e !== "shippingAddress").length > 0, r = e.errors.billingAddress, i = r && typeof r == "object" ? Object.keys(r).length > 0 : !1, a = e.errors.shippingAddress, o = a && typeof a == "object" ? Object.keys(a).length > 0 : !1, s = n || i || o, c = R(t.checkoutProfile?.layout) ? !!(e.formData.billingAddress?.firstName || e.formData.billingAddress?.lastName || e.formData.shippingAddress?.firstName || e.formData.shippingAddress?.lastName) : !!e.formData.name, l = t.checkoutProfile?.layout.phoneNumber?.enabled ?? !1 ? !!e.formData.phoneNumber : !0, { billingFields: u, shippingFields: d } = t.checkoutProfile?.layout ?? {}, f = /* @__PURE__ */ new Set(["US", "CA"]), p = (e, t) => {
@@ -244,10 +244,12 @@ var S = ".form-helper-text{color:#dc2727;font-family:var(--odus-font-family,inhe
244
244
  r !== i && (this._value = "", this.render(), this.emit("change", this._value));
245
245
  }
246
246
  render() {
247
- if (this.shadowRoot) if (this._input?.getElement().remove(), this._select?.getElement().remove(), this._input = null, this._select = null, M.has(this._country)) {
248
- let e = this._country;
249
- this._renderSelect(e);
250
- } else this._renderInput();
247
+ if (this.shadowRoot) {
248
+ if (this._input?.getElement().remove(), this._select?.getElement().remove(), this._input = null, this._select = null, M.has(this._country)) {
249
+ let e = this._country;
250
+ this._renderSelect(e);
251
+ } else this._renderInput();
252
+ }
251
253
  }
252
254
  _renderInput() {
253
255
  let { t: e } = t();
package/dist/phone.js CHANGED
@@ -9461,10 +9461,11 @@ var lr = /*#__PURE__*/ function() {
9461
9461
  break;
9462
9462
  case "|":
9463
9463
  if (!this.getContext().or) throw Error("\"|\" operator can only be used inside \"or\" groups");
9464
- if (r && this.parsePattern(r), !this.getContext().branches)
9465
- /* istanbul ignore else */
9466
- if (this.context.length === 1) this.getContext().branches = [];
9467
- else throw Error("\"branches\" not found in an \"or\" group context");
9464
+ if (r && this.parsePattern(r), !this.getContext().branches) {
9465
+ /* istanbul ignore else */
9466
+ if (this.context.length === 1) this.getContext().branches = [];
9467
+ else throw Error("\"branches\" not found in an \"or\" group context");
9468
+ }
9468
9469
  this.getContext().branches.push(pr(this.getContext().instructions)), this.getContext().instructions = [];
9469
9470
  break;
9470
9471
  case "[":
@@ -9579,7 +9580,9 @@ var Sr = /*#__PURE__*/ function() {
9579
9580
  function Cr(e, t, n) {
9580
9581
  if (typeof t == "string") {
9581
9582
  var r = e.join("");
9582
- return t.indexOf(r) === 0 ? e.length === t.length ? {
9583
+ return t.indexOf(r) === 0 ?
9584
+ /* istanbul ignore else */
9585
+ e.length === t.length ? {
9583
9586
  match: !0,
9584
9587
  matchedChars: e
9585
9588
  } : { partialMatch: !0 } : r.indexOf(t) === 0 ? n && e.length > t.length ? { overflow: !0 } : {
@@ -9778,7 +9781,7 @@ var Mr = "9", Nr = V(Mr, 15), Pr = /[- ]/, G = !0, Fr = G && function() {
9778
9781
  var i = e.leadingDigitsPatterns()[n];
9779
9782
  if (t.length < Rr) try {
9780
9783
  return new Sr(i).match(t, { allowOverflow: !0 }) !== void 0;
9781
- } catch (e) /* istanbul ignore next */ {
9784
+ } catch (e) /* istanbul ignore next */ {
9782
9785
  return console.error(e), !0;
9783
9786
  }
9784
9787
  return RegExp(`^(${i})`).test(t);
@@ -9798,7 +9801,7 @@ var Mr = "9", Nr = V(Mr, 15), Pr = /[- ]/, G = !0, Fr = G && function() {
9798
9801
  var n = a.value;
9799
9802
  return t.chosenFormat === n ? 0 :
9800
9803
  /* istanbul ignore if */
9801
- Lr.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e) ? (t.chosenFormat = n, 0) : (t.matchingFormats = t.matchingFormats.filter(function(e) {
9804
+ Lr.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e) ? (t.chosenFormat = n, 0) : (t.matchingFormats = t.matchingFormats.filter(function(e) {
9802
9805
  return e !== n;
9803
9806
  }), 1) : 1;
9804
9807
  }, r, i = wr(this.matchingFormats.slice()), a; !(a = i()).done && (r = n(), r !== 0););
@@ -9839,7 +9842,7 @@ Lr.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e)
9839
9842
  {
9840
9843
  key: "setNationalNumberTemplate",
9841
9844
  value: function(e, t) {
9842
- this.nationalNumberTemplate = e, this.populatedNationalNumberTemplate = e, this.populatedNationalNumberTemplatePosition = -1, t.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g, "x") + V("x", t.callingCode.length) + " " + e : this.template = e;
9845
+ this.nationalNumberTemplate = e, this.populatedNationalNumberTemplate = e, this.populatedNationalNumberTemplatePosition = -1, this.template = t.international ? this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g, "x") + V("x", t.callingCode.length) + " " + e : e;
9843
9846
  }
9844
9847
  },
9845
9848
  {
package/dist/shared.js CHANGED
@@ -110,9 +110,7 @@ var e = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
110
110
  case "event":
111
111
  (n.events ??= []).push(t.payload);
112
112
  break;
113
- case "measurement":
114
- (n.measurements ??= []).push(t.payload);
115
- break;
113
+ case "measurement": (n.measurements ??= []).push(t.payload);
116
114
  }
117
115
  return n;
118
116
  }, te = (e, t, n = !1) => {
@@ -328,7 +326,7 @@ var e = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
328
326
  url: ve(e.environment),
329
327
  app: {
330
328
  name: "odus-checkout",
331
- version: "1.7.8",
329
+ version: "1.7.10",
332
330
  environment: e.environment === "test" ? "sandbox" : "production"
333
331
  },
334
332
  isolate: !0,
@@ -461,18 +459,18 @@ var Ie, Le = { decode: function(e) {
461
459
  case 2:
462
460
  i[i.length] = a >> 10;
463
461
  break;
464
- case 3:
465
- i[i.length] = a >> 16, i[i.length] = a >> 8 & 255;
466
- break;
462
+ case 3: i[i.length] = a >> 16, i[i.length] = a >> 8 & 255;
467
463
  }
468
464
  return i;
469
465
  },
470
466
  re: /-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,
471
467
  unarmor: function(e) {
472
468
  var t = ze.re.exec(e);
473
- if (t) if (t[1]) e = t[1];
474
- else if (t[2]) e = t[2];
475
- else throw Error("RegExp out of sync");
469
+ if (t) {
470
+ if (t[1]) e = t[1];
471
+ else if (t[2]) e = t[2];
472
+ else throw Error("RegExp out of sync");
473
+ }
476
474
  return ze.decode(e);
477
475
  }
478
476
  }, Be = 0x9184e72a000, Ve = function() {
@@ -534,7 +532,7 @@ var Ke = function() {
534
532
  }, e.prototype.parseStringUTF = function(e, t) {
535
533
  for (var n = "", r = e; r < t;) {
536
534
  var i = this.get(r++);
537
- i < 128 ? n += String.fromCharCode(i) : i > 191 && i < 224 ? n += String.fromCharCode((i & 31) << 6 | this.get(r++) & 63) : n += String.fromCharCode((i & 15) << 12 | (this.get(r++) & 63) << 6 | this.get(r++) & 63);
535
+ n += i < 128 ? String.fromCharCode(i) : i > 191 && i < 224 ? String.fromCharCode((i & 31) << 6 | this.get(r++) & 63) : String.fromCharCode((i & 15) << 12 | (this.get(r++) & 63) << 6 | this.get(r++) & 63);
538
536
  }
539
537
  return n;
540
538
  }, e.prototype.parseStringBMP = function(e, t) {
@@ -569,12 +567,13 @@ var Ke = function() {
569
567
  for (var r = "", i = new Ve(), a = 0, o = e; o < t; ++o) {
570
568
  var s = this.get(o);
571
569
  if (i.mulAdd(128, s & 127), a += 7, !(s & 128)) {
572
- if (r === "") if (i = i.simplify(), i instanceof Ve) i.sub(80), r = "2." + i.toString();
573
- else {
574
- var c = i < 80 ? i < 40 ? 0 : 1 : 2;
575
- r = c + "." + (i - c * 40);
576
- }
577
- else r += "." + i.toString();
570
+ if (r === "") {
571
+ if (i = i.simplify(), i instanceof Ve) i.sub(80), r = "2." + i.toString();
572
+ else {
573
+ var c = i < 80 ? i < 40 ? 0 : 1 : 2;
574
+ r = c + "." + (i - c * 40);
575
+ }
576
+ } else r += "." + i.toString();
578
577
  if (r.length > n) return Ge(r, n);
579
578
  i = new Ve(), a = 0;
580
579
  }
@@ -712,7 +711,7 @@ var Ke = function() {
712
711
  }(), Je = function() {
713
712
  function e(e) {
714
713
  var t = e.get();
715
- if (this.tagClass = t >> 6, this.tagConstructed = (t & 32) != 0, this.tagNumber = t & 31, this.tagNumber == 31) {
714
+ if (this.tagClass = t >> 6, this.tagConstructed = !!(t & 32), this.tagNumber = t & 31, this.tagNumber == 31) {
716
715
  var n = new Ve();
717
716
  do
718
717
  t = e.get(), n.mulAdd(128, t & 127);
@@ -987,7 +986,7 @@ var Ke = function() {
987
986
  return e;
988
987
  }, e.prototype.testBit = function(e) {
989
988
  var t = Math.floor(e / this.DB);
990
- return t >= this.t ? this.s != 0 : (this[t] & 1 << e % this.DB) != 0;
989
+ return t >= this.t ? this.s != 0 : !!(this[t] & 1 << e % this.DB);
991
990
  }, e.prototype.setBit = function(e) {
992
991
  return this.changeBit(e, De);
993
992
  }, e.prototype.clearBit = function(e) {
@@ -1201,9 +1200,10 @@ var Ke = function() {
1201
1200
  }
1202
1201
  o > 0 && (this.dMultiply(n ** +o), this.dAddOffset(s, 0)), a && e.ZERO.subTo(this, this);
1203
1202
  }, e.prototype.fromNumber = function(t, n, r) {
1204
- if (typeof n == "number") if (t < 2) this.fromInt(1);
1205
- else for (this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), De, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(n);) this.dAddOffset(2, 0), this.bitLength() > t && this.subTo(e.ONE.shiftLeft(t - 1), this);
1206
- else {
1203
+ if (typeof n == "number") {
1204
+ if (t < 2) this.fromInt(1);
1205
+ else for (this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), De, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(n);) this.dAddOffset(2, 0), this.bitLength() > t && this.subTo(e.ONE.shiftLeft(t - 1), this);
1206
+ } else {
1207
1207
  var i = [], a = t & 7;
1208
1208
  i.length = (t >> 3) + 1, n.nextBytes(i), a > 0 ? i[0] &= (1 << a) - 1 : i[0] = 0, this.fromString(i, 256);
1209
1209
  }
@@ -1253,8 +1253,10 @@ var Ke = function() {
1253
1253
  }, e.prototype.modInt = function(e) {
1254
1254
  if (e <= 0) return 0;
1255
1255
  var t = this.DV % e, n = this.s < 0 ? e - 1 : 0;
1256
- if (this.t > 0) if (t == 0) n = this[0] % e;
1257
- else for (var r = this.t - 1; r >= 0; --r) n = (t * n + this[r]) % e;
1256
+ if (this.t > 0) {
1257
+ if (t == 0) n = this[0] % e;
1258
+ else for (var r = this.t - 1; r >= 0; --r) n = (t * n + this[r]) % e;
1259
+ }
1258
1260
  return n;
1259
1261
  }, e.prototype.millerRabin = function(t) {
1260
1262
  var n = this.subtract(e.ONE), r = n.getLowestSetBit();
@@ -1292,17 +1294,18 @@ var Ke = function() {
1292
1294
  };
1293
1295
  setTimeout(s, 10);
1294
1296
  }, e.prototype.fromNumberAsync = function(t, n, r, i) {
1295
- if (typeof n == "number") if (t < 2) this.fromInt(1);
1296
- else {
1297
- this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), De, this), this.isEven() && this.dAddOffset(1, 0);
1298
- var a = this, o = function() {
1299
- a.dAddOffset(2, 0), a.bitLength() > t && a.subTo(e.ONE.shiftLeft(t - 1), a), a.isProbablePrime(n) ? setTimeout(function() {
1300
- i();
1301
- }, 0) : setTimeout(o, 0);
1302
- };
1303
- setTimeout(o, 0);
1304
- }
1305
- else {
1297
+ if (typeof n == "number") {
1298
+ if (t < 2) this.fromInt(1);
1299
+ else {
1300
+ this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), De, this), this.isEven() && this.dAddOffset(1, 0);
1301
+ var a = this, o = function() {
1302
+ a.dAddOffset(2, 0), a.bitLength() > t && a.subTo(e.ONE.shiftLeft(t - 1), a), a.isProbablePrime(n) ? setTimeout(function() {
1303
+ i();
1304
+ }, 0) : setTimeout(o, 0);
1305
+ };
1306
+ setTimeout(o, 0);
1307
+ }
1308
+ } else {
1306
1309
  var s = [], c = t & 7;
1307
1310
  s.length = (t >> 3) + 1, n.nextBytes(s), c > 0 ? s[0] &= (1 << c) - 1 : s[0] = 0, this.fromString(s, 256);
1308
1311
  }
@@ -1844,11 +1847,10 @@ var U = {};
1844
1847
  explicit: E[1],
1845
1848
  obj: D
1846
1849
  });
1847
- } else {
1848
- var O = {};
1849
- if (E.explicit !== void 0 && (O.explicit = E.explicit), E.tag !== void 0 && (O.tag = E.tag), E.obj === void 0) throw "obj shall be specified for 'tag'.";
1850
- return O.obj = y(E.obj), new v(O);
1851
1850
  }
1851
+ var O = {};
1852
+ if (E.explicit !== void 0 && (O.explicit = E.explicit), E.tag !== void 0 && (O.tag = E.tag), E.obj === void 0) throw "obj shall be specified for 'tag'.";
1853
+ return O.obj = y(E.obj), new v(O);
1852
1854
  }
1853
1855
  }, this.jsonToASN1HEX = function(e) {
1854
1856
  return this.newObject(e).getEncodedHex();
@@ -2111,11 +2113,12 @@ var Ut = (function() {
2111
2113
  this.dmq1 = R(l, 16);
2112
2114
  var u = i.sub[8].getHexStringValue();
2113
2115
  this.coeff = R(u, 16);
2114
- } else if (i.sub.length === 2) if (i.sub[0].sub) {
2115
- var d = i.sub[1].sub[0];
2116
- t = d.sub[0].getHexStringValue(), this.n = R(t, 16), n = d.sub[1].getHexStringValue(), this.e = parseInt(n, 16);
2117
- } else t = i.sub[0].getHexStringValue(), this.n = R(t, 16), n = i.sub[1].getHexStringValue(), this.e = parseInt(n, 16);
2118
- else return !1;
2116
+ } else if (i.sub.length === 2) {
2117
+ if (i.sub[0].sub) {
2118
+ var d = i.sub[1].sub[0];
2119
+ t = d.sub[0].getHexStringValue(), this.n = R(t, 16), n = d.sub[1].getHexStringValue(), this.e = parseInt(n, 16);
2120
+ } else t = i.sub[0].getHexStringValue(), this.n = R(t, 16), n = i.sub[1].getHexStringValue(), this.e = parseInt(n, 16);
2121
+ } else return !1;
2119
2122
  return !0;
2120
2123
  } catch {
2121
2124
  return !1;
@@ -3750,16 +3753,18 @@ var gi = /* @__PURE__ */ e(((e, t) => {
3750
3753
  var n = Tr(), r = qn(), i = cn(), a = er(), o = ji(), s = Mi(), c = function(e) {
3751
3754
  var t = e === 1, c = e === 2, l = e === 3, u = e === 4, d = e === 6, f = e === 7, p = e === 5 || d;
3752
3755
  return function(m, h, g) {
3753
- for (var _ = i(m), v = r(_), y = a(v), b = n(h, g), x = 0, S = 0, C = t ? o(m, y) : c || f ? o(m, 0) : void 0, w, T; y > x; x++) if ((p || x in v) && (w = v[x], T = b(w, x, _), e)) if (t) s(C, x, T);
3754
- else if (T) switch (e) {
3755
- case 3: return !0;
3756
- case 5: return w;
3757
- case 6: return x;
3758
- case 2: s(C, S++, w);
3759
- }
3760
- else switch (e) {
3761
- case 4: return !1;
3762
- case 7: s(C, S++, w);
3756
+ for (var _ = i(m), v = r(_), y = a(v), b = n(h, g), x = 0, S = 0, C = t ? o(m, y) : c || f ? o(m, 0) : void 0, w, T; y > x; x++) if ((p || x in v) && (w = v[x], T = b(w, x, _), e)) {
3757
+ if (t) s(C, x, T);
3758
+ else if (T) switch (e) {
3759
+ case 3: return !0;
3760
+ case 5: return w;
3761
+ case 6: return x;
3762
+ case 2: s(C, S++, w);
3763
+ }
3764
+ else switch (e) {
3765
+ case 4: return !1;
3766
+ case 7: s(C, S++, w);
3767
+ }
3763
3768
  }
3764
3769
  return d ? -1 : l || u ? u : C;
3765
3770
  };
@@ -4876,10 +4881,12 @@ var wa = (e) => {
4876
4881
  subscribe: t.subscribe.bind(t),
4877
4882
  handleChange: (r, s) => {
4878
4883
  let c = t.getState(), l = s, u = a(r);
4879
- if (!u && r in Ta) if (r === "cardCvv") {
4880
- let e = wa(c.formData.cardNumber) === "amex" ? 4 : 3;
4881
- l = Ta.cardCvv(s, e);
4882
- } else l = Ta[r](s);
4884
+ if (!u && r in Ta) {
4885
+ if (r === "cardCvv") {
4886
+ let e = wa(c.formData.cardNumber) === "amex" ? 4 : 3;
4887
+ l = Ta.cardCvv(s, e);
4888
+ } else l = Ta[r](s);
4889
+ }
4883
4890
  let d;
4884
4891
  if (u) {
4885
4892
  let { parent: e, field: t } = u;
@@ -4899,17 +4906,19 @@ var wa = (e) => {
4899
4906
  let e = n("phoneNumber", d.phoneNumber, void 0, l);
4900
4907
  e ? f.phoneNumber = e : delete f.phoneNumber;
4901
4908
  }
4902
- if (c.touched[r]) if (u) {
4903
- let { parent: t, field: n } = u, r = d[t], i;
4904
- if (n === "state") i = e.state(l, r?.country);
4905
- else {
4906
- let t = e[n];
4907
- i = t ? t(l) : void 0;
4909
+ if (c.touched[r]) {
4910
+ if (u) {
4911
+ let { parent: t, field: n } = u, r = d[t], i;
4912
+ if (n === "state") i = e.state(l, r?.country);
4913
+ else {
4914
+ let t = e[n];
4915
+ i = t ? t(l) : void 0;
4916
+ }
4917
+ f = o(f, t, n, i);
4918
+ } else {
4919
+ let e;
4920
+ e = r === "cardCvv" ? n(r, l, d.cardNumber) : r === "phoneNumber" ? n(r, l, void 0, d.phoneCountryCode) : n(r, l), e ? f[r] = e : delete f[r];
4908
4921
  }
4909
- f = o(f, t, n, i);
4910
- } else {
4911
- let e;
4912
- e = r === "cardCvv" ? n(r, l, d.cardNumber) : r === "phoneNumber" ? n(r, l, void 0, d.phoneCountryCode) : n(r, l), e ? f[r] = e : delete f[r];
4913
4922
  }
4914
4923
  t.setState({
4915
4924
  formData: d,
@@ -6612,10 +6621,12 @@ var po = (e) => e.replace(/([A-Z])/g, " $1").trim(), mo = Object.fromEntries(Obj
6612
6621
  };
6613
6622
  }
6614
6623
  updateVgsCardIcons(e) {
6615
- if (this.vgsCardIconsContainer) if (this.vgsCardIconsContainer.innerHTML = "", e === "unknown") for (let [e, t] of Object.entries(Vo)) this.vgsCardIconsContainer.appendChild(this.createCardIcon(e, t));
6616
- else {
6617
- let t = Vo[e];
6618
- t && this.vgsCardIconsContainer.appendChild(this.createCardIcon(e, t));
6624
+ if (this.vgsCardIconsContainer) {
6625
+ if (this.vgsCardIconsContainer.innerHTML = "", e === "unknown") for (let [e, t] of Object.entries(Vo)) this.vgsCardIconsContainer.appendChild(this.createCardIcon(e, t));
6626
+ else {
6627
+ let t = Vo[e];
6628
+ t && this.vgsCardIconsContainer.appendChild(this.createCardIcon(e, t));
6629
+ }
6619
6630
  }
6620
6631
  }
6621
6632
  createCardIcon(e, t) {
@@ -6824,9 +6835,7 @@ var po = (e) => e.replace(/([A-Z])/g, " $1").trim(), mo = Object.fromEntries(Obj
6824
6835
  case "cardExpiry":
6825
6836
  this.cardExpiry?.focus();
6826
6837
  break;
6827
- case "cardCvv":
6828
- this.cardCvvElement?.focus();
6829
- break;
6838
+ case "cardCvv": this.cardCvvElement?.focus();
6830
6839
  }
6831
6840
  }
6832
6841
  _focusVgsField(e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odus/checkout",
3
- "version": "1.7.8",
3
+ "version": "1.7.10",
4
4
  "displayName": "Odus Checkout SDK",
5
5
  "keywords": [
6
6
  "odus",