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