@odus/checkout 0.30.0-beta.0 → 0.30.0-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odus/checkout",
3
- "version": "0.30.0-beta.0",
3
+ "version": "0.30.0-beta.1",
4
4
  "displayName": "Odus Checkout SDK",
5
5
  "keywords": [
6
6
  "odus",
package/dist/phone.js CHANGED
@@ -3290,7 +3290,12 @@ class qd extends E {
3290
3290
  if (a?.countryCode && a.countryCode !== this.currentCountryCode) {
3291
3291
  this.currentCountryCode = a.countryCode, this.updateSelectAndFlag(a.countryCode), r.placeholder = T(a.countryCode);
3292
3292
  const o = this.countryCodeInput.getElement();
3293
- o.value = a.countryCode, o.dispatchEvent(new Event("input", { bubbles: !0 }));
3293
+ o.value = a.countryCode;
3294
+ const u = new Event("input", { bubbles: !0 });
3295
+ Object.defineProperty(u, "target", {
3296
+ writable: !1,
3297
+ value: { name: "phoneCountryCode", value: a.countryCode }
3298
+ }), this.onChange(u);
3294
3299
  }
3295
3300
  } else {
3296
3301
  const a = this.countrySelect.getElement().value;
@@ -3319,7 +3324,10 @@ class qd extends E {
3319
3324
  const d = this.countryCodeInput.getElement();
3320
3325
  d.value = t;
3321
3326
  const i = new Event("input", { bubbles: !0 });
3322
- if (d.dispatchEvent(i), this.onChange(i), n.startsWith("+")) {
3327
+ if (Object.defineProperty(i, "target", {
3328
+ writable: !1,
3329
+ value: { name: "phoneCountryCode", value: t }
3330
+ }), this.onChange(i), n.startsWith("+")) {
3323
3331
  const a = A(n);
3324
3332
  !a || a.countryCode !== t ? this.showValidationError() : this.clearValidationError();
3325
3333
  return;