rebill-web-components-sdk 1.17.7-beta.6 → 1.17.7-beta.7
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/cjs/card-fields-wrapper_16.cjs.entry.js +7 -2
- package/dist/cjs/index-CoibgVZr.js.map +1 -1
- package/dist/cjs/rebill-checkout.cjs.entry.js +9 -5
- package/dist/cjs/rebill-checkout.entry.cjs.js.map +1 -1
- package/dist/collection/components/checkout/payment-method-selector/card-fields/identification/identification.js +7 -2
- package/dist/collection/components/checkout/payment-method-selector/card-fields/identification/identification.js.map +1 -1
- package/dist/collection/components/checkout/rebill-checkout.js +9 -5
- package/dist/collection/components/checkout/rebill-checkout.js.map +1 -1
- package/dist/components/card-fields-wrapper.js +1 -1
- package/dist/components/card-identification.js +1 -1
- package/dist/components/p-BjXn3y1C.js.map +1 -1
- package/dist/components/{p-BgFlIzLM.js → p-CBnRiclI.js} +4 -4
- package/dist/components/{p-BgFlIzLM.js.map → p-CBnRiclI.js.map} +1 -1
- package/dist/components/{p-ciUVNJ5g.js → p-D_gLok7p.js} +3 -3
- package/dist/components/{p-ciUVNJ5g.js.map → p-D_gLok7p.js.map} +1 -1
- package/dist/components/{p-Cq-DTeKY.js → p-DaBfDulg.js} +9 -4
- package/dist/components/p-DaBfDulg.js.map +1 -0
- package/dist/components/payment-method-selector.js +1 -1
- package/dist/components/rebill-change-card.js +3 -3
- package/dist/components/rebill-checkout.js +12 -8
- package/dist/components/rebill-checkout.js.map +1 -1
- package/dist/components/rebill-renewal.js +3 -3
- package/dist/components/rebill-save-card.js +3 -3
- package/dist/esm/card-fields-wrapper_16.entry.js +7 -2
- package/dist/esm/index-UumHbCAL.js.map +1 -1
- package/dist/esm/rebill-checkout.entry.js +9 -5
- package/dist/esm/rebill-checkout.entry.js.map +1 -1
- package/dist/rebill/p-5ae19116.entry.js +2 -0
- package/dist/rebill/p-5ae19116.entry.js.map +1 -0
- package/dist/rebill/p-9ee87282.entry.js +2 -0
- package/dist/rebill/p-9ee87282.entry.js.map +1 -0
- package/dist/rebill/p-UumHbCAL.js.map +1 -1
- package/dist/rebill/rebill-checkout.entry.esm.js.map +1 -1
- package/dist/rebill/rebill.esm.js +1 -1
- package/dist/types/components/checkout/payment-method-selector/card-fields/identification/identification.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/p-Cq-DTeKY.js.map +0 -1
- package/dist/rebill/p-ad8a3037.entry.js +0 -2
- package/dist/rebill/p-ad8a3037.entry.js.map +0 -1
- package/dist/rebill/p-c4a94000.entry.js +0 -2
- package/dist/rebill/p-c4a94000.entry.js.map +0 -1
|
@@ -841,14 +841,16 @@ const Identification = class {
|
|
|
841
841
|
documentTypeError = '';
|
|
842
842
|
documentNumberError = '';
|
|
843
843
|
disabled = false;
|
|
844
|
+
isLoadingDocumentTypes = false;
|
|
844
845
|
loadDocumentTypes = async () => {
|
|
845
846
|
const currentCountry = renewal_store.renewalState.isInitialized
|
|
846
847
|
? renewal_store.renewalState.data?.price?.country
|
|
847
848
|
: saveCard_store.saveCardState.country
|
|
848
849
|
? saveCard_store.saveCardState.country
|
|
849
850
|
: i18n_service.state?.data?.pricing?.country;
|
|
850
|
-
if (currentCountry && currentCountry !== this.country) {
|
|
851
|
+
if (currentCountry && currentCountry !== this.country && !this.isLoadingDocumentTypes) {
|
|
851
852
|
try {
|
|
853
|
+
this.isLoadingDocumentTypes = true;
|
|
852
854
|
const response = await index$1.api.data.getDocumentTypes(currentCountry);
|
|
853
855
|
this.documentTypes = response.data;
|
|
854
856
|
this.country = currentCountry;
|
|
@@ -856,6 +858,9 @@ const Identification = class {
|
|
|
856
858
|
catch (error) {
|
|
857
859
|
console.error('Error loading document types:', error);
|
|
858
860
|
}
|
|
861
|
+
finally {
|
|
862
|
+
this.isLoadingDocumentTypes = false;
|
|
863
|
+
}
|
|
859
864
|
}
|
|
860
865
|
};
|
|
861
866
|
async componentWillLoad() {
|
|
@@ -894,7 +899,7 @@ const Identification = class {
|
|
|
894
899
|
label: documentType.value,
|
|
895
900
|
value: documentType.value,
|
|
896
901
|
}));
|
|
897
|
-
return (index.h(index.h.Fragment, null, index.h("rebill-input-combo", { key: '
|
|
902
|
+
return (index.h(index.h.Fragment, null, index.h("rebill-input-combo", { key: 'f0e42a91b3f7b3867efae3f352706736f20ac0b5', "select-id": "documentType", "input-id": "documentNumber", "on-input": this.handleInputChange, "select-placeholder": i18n_service.I18nService.translate('document.typePlaceholder'), "input-placeholder": i18n_service.I18nService.translate('document.numberPlaceholder'), error: i18n_service.I18nService.translate(error), options: options, disabled: this.disabled })));
|
|
898
903
|
}
|
|
899
904
|
};
|
|
900
905
|
|