rebill-web-components-sdk 1.8.21 → 1.8.23

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.
Files changed (45) hide show
  1. package/dist/cjs/apm-checkout_19.cjs.entry.js +11 -5
  2. package/dist/cjs/index-C-VTnc0I.js.map +1 -1
  3. package/dist/cjs/rebill-checkout.cjs.entry.js +1 -1
  4. package/dist/cjs/rebill-renewal.cjs.entry.js +1 -1
  5. package/dist/cjs/{required-fields-mappers-U6myFlpn.js → required-fields-mappers-DWU2V-eY.js} +3 -2
  6. package/dist/cjs/{required-fields-mappers-U6myFlpn.js.map → required-fields-mappers-DWU2V-eY.js.map} +1 -1
  7. package/dist/collection/components/checkout/address/address.js +10 -4
  8. package/dist/collection/components/checkout/address/address.js.map +1 -1
  9. package/dist/collection/components/checkout/payment-button/payment-button.js +1 -1
  10. package/dist/collection/components/checkout/payment-button/payment-button.js.map +1 -1
  11. package/dist/collection/utils/required-fields-mappers.js +1 -0
  12. package/dist/collection/utils/required-fields-mappers.js.map +1 -1
  13. package/dist/components/p-8BpuJ_V5.js.map +1 -1
  14. package/dist/components/{p-BI62ypLw.js → p-BRI7iMx8.js} +3 -2
  15. package/dist/components/p-BRI7iMx8.js.map +1 -0
  16. package/dist/components/{p-aO8Az5Xi.js → p-DZKiNnX2.js} +3 -3
  17. package/dist/components/{p-aO8Az5Xi.js.map → p-DZKiNnX2.js.map} +1 -1
  18. package/dist/components/{p-s8WhwKwq.js → p-DgIW2T8E.js} +12 -6
  19. package/dist/components/p-DgIW2T8E.js.map +1 -0
  20. package/dist/components/payment-button.js +1 -1
  21. package/dist/components/rebill-address.js +1 -1
  22. package/dist/components/rebill-checkout.js +3 -3
  23. package/dist/components/rebill-renewal.js +3 -3
  24. package/dist/esm/apm-checkout_19.entry.js +11 -5
  25. package/dist/esm/index-D8cwEAmw.js.map +1 -1
  26. package/dist/esm/rebill-checkout.entry.js +1 -1
  27. package/dist/esm/rebill-renewal.entry.js +1 -1
  28. package/dist/esm/{required-fields-mappers-BOaTKbNe.js → required-fields-mappers-BErrHwHk.js} +3 -2
  29. package/dist/esm/{required-fields-mappers-BOaTKbNe.js.map → required-fields-mappers-BErrHwHk.js.map} +1 -1
  30. package/dist/rebill-web-components-sdk/{p-ea3de987.entry.js → p-4a8ad442.entry.js} +2 -2
  31. package/dist/rebill-web-components-sdk/p-7d0e00c6.entry.js +2 -0
  32. package/dist/rebill-web-components-sdk/p-7d0e00c6.entry.js.map +1 -0
  33. package/dist/rebill-web-components-sdk/{p-b616775b.entry.js → p-9afddef2.entry.js} +2 -2
  34. package/dist/rebill-web-components-sdk/{p-Bz-GsiI3.js → p-BP5Qpv7O.js} +2 -2
  35. package/dist/rebill-web-components-sdk/{p-Bz-GsiI3.js.map → p-BP5Qpv7O.js.map} +1 -1
  36. package/dist/rebill-web-components-sdk/p-D8cwEAmw.js.map +1 -1
  37. package/dist/rebill-web-components-sdk/rebill-web-components-sdk.esm.js +1 -1
  38. package/dist/types/utils/required-fields-mappers.d.ts +1 -0
  39. package/package.json +1 -1
  40. package/dist/components/p-BI62ypLw.js.map +0 -1
  41. package/dist/components/p-s8WhwKwq.js.map +0 -1
  42. package/dist/rebill-web-components-sdk/p-b306912b.entry.js +0 -2
  43. package/dist/rebill-web-components-sdk/p-b306912b.entry.js.map +0 -1
  44. /package/dist/rebill-web-components-sdk/{p-ea3de987.entry.js.map → p-4a8ad442.entry.js.map} +0 -0
  45. /package/dist/rebill-web-components-sdk/{p-b616775b.entry.js.map → p-9afddef2.entry.js.map} +0 -0
@@ -347,7 +347,7 @@ const PaymentButton = class {
347
347
  return i18n_service.I18nService.translate('buttons.payNow');
348
348
  };
349
349
  render() {
350
- return (index$1.h("rebill-button", { key: 'bcc6dda253cdb26b320d3f6fe69a6afcbf288f5e', type: "submit", disabled: this.isDisabled, loading: this.shouldShowLoading(), showSpinnerWithText: this.redirectUrl === true && this.timeToRedirect != null, nonClickable: this.redirectUrl === true && this.timeToRedirect != null, variant: "filled", theme: "primary-dark", onClick: this.handleSubmit, id: "payment-button" }, this.getButtonText()));
350
+ return (index$1.h("rebill-button", { key: 'bcc6dda253cdb26b320d3f6fe69a6afcbf288f5e', type: "button", disabled: this.isDisabled, loading: this.shouldShowLoading(), showSpinnerWithText: this.redirectUrl === true && this.timeToRedirect != null, nonClickable: this.redirectUrl === true && this.timeToRedirect != null, variant: "filled", theme: "primary-dark", onClick: this.handleSubmit, id: "payment-button" }, this.getButtonText()));
351
351
  }
352
352
  static get watchers() { return {
353
353
  "redirectUrl": ["onRedirectPropsChange"],
@@ -817,9 +817,10 @@ const Address = class {
817
817
  .toLowerCase()
818
818
  .normalize('NFD')
819
819
  .replace(/[\u0300-\u036f]/g, '') // Remove accents
820
+ .replace(/\./g, '') // Remove dots
821
+ .replace(/\s+/g, ' ') // Normalize spaces
820
822
  .trim();
821
823
  };
822
- i18n_service.SessionStore.setBillingAddress(address);
823
824
  this.billingView = 'form';
824
825
  if (address.country) {
825
826
  await this.loadStatesForCountry(address.country);
@@ -849,15 +850,20 @@ const Address = class {
849
850
  else if (normalizedMatch) {
850
851
  address.state = normalizedMatch.value;
851
852
  }
852
- else
853
+ else if (partialMatch) {
853
854
  address.state = partialMatch.value;
855
+ }
856
+ else {
857
+ address.state = undefined;
858
+ }
854
859
  }
855
860
  }
861
+ i18n_service.SessionStore.setBillingAddress(address);
856
862
  this.addressUpdated.emit({
857
863
  country: address.country || '',
858
864
  address: address.address || '',
859
865
  city: address.city || '',
860
- state: address.state || '',
866
+ state: address.state || undefined,
861
867
  zip: address.zip || '',
862
868
  });
863
869
  // Use requestAnimationFrame to ensure the form is rendered with the new state options
@@ -945,7 +951,7 @@ const Address = class {
945
951
  return (index$1.h("div", null, this.renderAddressHeader(), index$1.h("rebill-address-form", { countryOptions: this.countryOptions, stateOptions: this.currentBillingStateOptions, errors: errorsToShow, disabled: this.disabled, onFieldChanged: e => this.handleInput(e.detail.field, e.detail.value), onSearchRequested: () => this.handleSearchEntry() })));
946
952
  }
947
953
  render() {
948
- return (index$1.h("div", { key: '9bab5a0a737b99dd7d0966f6543b9e7a0d03753b' }, this.renderAddressForm()));
954
+ return (index$1.h("div", { key: 'f8078c9118473f6316e43558237a489de8e7e8bf' }, this.renderAddressForm()));
949
955
  }
950
956
  };
951
957
  Address.style = addressCss;