@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/checkout.es.js +256 -212
- package/dist/package.json +1 -1
- package/dist/phone.js +10 -2
- package/dist/shared.js +350 -350
- package/package.json +1 -1
package/dist/package.json
CHANGED
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
|
|
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 (
|
|
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;
|