@alma/widgets 3.2.4 → 3.3.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/raw/widgets.css +14 -14
- package/dist/raw/widgets.js +27 -19
- package/dist/raw/widgets.js.map +1 -1
- package/dist/raw/widgets.m.js +27 -19
- package/dist/raw/widgets.m.js.map +1 -1
- package/dist/raw/widgets.modern.js +29 -17
- package/dist/raw/widgets.modern.js.map +1 -1
- package/dist/raw/widgets.umd.js +27 -19
- package/dist/raw/widgets.umd.js.map +1 -1
- package/dist/types/Widgets/EligibilityModal/ModalContainer.d.ts +1 -1
- package/dist/types/Widgets/EligibilityModal/index.d.ts +2 -2
- package/dist/types/Widgets/PaymentPlans/index.d.ts +2 -1
- package/dist/types/components/Modal/index.d.ts +2 -2
- package/dist/types/types.d.ts +3 -0
- package/dist/types/widgets_controller.d.ts +2 -1
- package/dist/widgets.css +5 -5
- package/dist/widgets.js +1 -1
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.m.js +1 -1
- package/dist/widgets.m.js.map +1 -1
- package/dist/widgets.modern.js +1 -1
- package/dist/widgets.modern.js.map +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/fonts/ArgentCF-DemiBold.eot +0 -0
- package/dist/assets/fonts/ArgentCF-DemiBold.ttf +0 -0
- package/dist/assets/fonts/ArgentCF-DemiBold.woff +0 -0
- package/dist/assets/fonts/ArgentCF-DemiBold.woff2 +0 -0
- package/dist/assets/fonts/Venn-Bold.eot +0 -0
- package/dist/assets/fonts/Venn-Bold.ttf +0 -0
- package/dist/assets/fonts/Venn-Bold.woff +0 -0
- package/dist/assets/fonts/Venn-Bold.woff2 +0 -0
- package/dist/assets/fonts/Venn-Regular.eot +0 -0
- package/dist/assets/fonts/Venn-Regular.ttf +0 -0
- package/dist/assets/fonts/Venn-Regular.woff +0 -0
- package/dist/assets/fonts/Venn-Regular.woff2 +0 -0
package/dist/raw/widgets.umd.js
CHANGED
|
@@ -6856,17 +6856,17 @@
|
|
|
6856
6856
|
|
|
6857
6857
|
var messagesNL = {
|
|
6858
6858
|
"credit-features.credit-cost-display": "{creditCost} (gemiddeld rente percentage {taegPercentage})",
|
|
6859
|
-
"credit-features.information": "Een lening
|
|
6860
|
-
"credit-features.total-credit-cost": "Waarvan
|
|
6859
|
+
"credit-features.information": "Een lening is bindend en moet worden terugbetaald. Ga na of je het kunt terugbetalen voordat je jezelf vastlegt.",
|
|
6860
|
+
"credit-features.total-credit-cost": "Waarvan kredietkosten",
|
|
6861
6861
|
"eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen.",
|
|
6862
|
-
"eligibility-modal.bullet-2": "Laat ons
|
|
6863
|
-
"eligibility-modal.bullet-3": "<strong>
|
|
6862
|
+
"eligibility-modal.bullet-2": "Laat ons je begeleiden en jouw betaling valideren in <strong>2 minuten.</strong>",
|
|
6863
|
+
"eligibility-modal.bullet-3": "<strong>Behoudt de controle</strong> door jouw deadlines op je eigen tempo vooruit of achteruit te schuiven.",
|
|
6864
6864
|
"eligibility-modal.no-eligibility": "Oeps, het lijkt erop dat de simulatie niet werkte.",
|
|
6865
6865
|
"eligibility-modal.p1x-bullet-1": "Kies <strong>Alma - 1X</strong> bij het afrekenen.",
|
|
6866
|
-
"eligibility-modal.p1x-bullet-2": "Vul
|
|
6867
|
-
"eligibility-modal.p1x-bullet-3": "<strong>De
|
|
6868
|
-
"eligibility-modal.title-deferred-plan": "Betaal in termijnen of later per creditcard met Alma.",
|
|
6869
|
-
"eligibility-modal.title-normal": "Betaal in termijnen met
|
|
6866
|
+
"eligibility-modal.p1x-bullet-2": "Vul jouw <strong>creditcardgegevens </strong> in.",
|
|
6867
|
+
"eligibility-modal.p1x-bullet-3": "<strong>De bevestiging </strong> van jouw betaling is onmiddellijk!",
|
|
6868
|
+
"eligibility-modal.title-deferred-plan": "Betaal in termijnen of later via iDEAL of per creditcard met Alma.",
|
|
6869
|
+
"eligibility-modal.title-normal": "Betaal in termijnen met iDEAL of creditcard bij Alma.",
|
|
6870
6870
|
"installments.today": "Tegenwoordig",
|
|
6871
6871
|
"installments.total-amount": "Totaal",
|
|
6872
6872
|
"installments.total-fees": "Waarvan kosten (incl. BTW)",
|
|
@@ -6888,9 +6888,9 @@
|
|
|
6888
6888
|
"credit-features.total-credit-cost": "Incluindo custo do crédito",
|
|
6889
6889
|
"eligibility-modal.bullet-1": "Escolha a <strong>Alma</strong> no checkout.",
|
|
6890
6890
|
"eligibility-modal.bullet-2": "Deixe-nos guiá-lo e validar o seu pagamento em <strong>2 minutos.</strong>",
|
|
6891
|
-
"eligibility-modal.bullet-3": "<strong>Mantenha
|
|
6891
|
+
"eligibility-modal.bullet-3": "<strong>Mantenha o controlo</strong> avançando ou recuando os seus prazos ao seu próprio ritmo.",
|
|
6892
6892
|
"eligibility-modal.no-eligibility": "Ups, parece que a simulação não funcionou.",
|
|
6893
|
-
"eligibility-modal.p1x-bullet-1": "
|
|
6893
|
+
"eligibility-modal.p1x-bullet-1": "Seleccionar <strong>Alma - 1X</strong> no final da compra.",
|
|
6894
6894
|
"eligibility-modal.p1x-bullet-2": "Preencha as informações do seu <strong>cartão de crédito.</strong>",
|
|
6895
6895
|
"eligibility-modal.p1x-bullet-3": "<strong>A validação </strong> do seu pagamento é instantânea!",
|
|
6896
6896
|
"eligibility-modal.title-deferred-plan": "Pagar em prestações ou mais tarde por cartão de crédito com Alma.",
|
|
@@ -15058,7 +15058,8 @@
|
|
|
15058
15058
|
billing_address: billing_address,
|
|
15059
15059
|
shipping_address: shipping_address
|
|
15060
15060
|
}, {
|
|
15061
|
-
Authorization: "Alma-Merchant-Auth " + merchantId
|
|
15061
|
+
Authorization: "Alma-Merchant-Auth " + merchantId,
|
|
15062
|
+
'X-Alma-Agent': 'Alma Widget'
|
|
15062
15063
|
}).then(function (res) {
|
|
15063
15064
|
setEligibility(res);
|
|
15064
15065
|
setStatus(apiStatus.SUCCESS);
|
|
@@ -20616,7 +20617,8 @@
|
|
|
20616
20617
|
customerShippingCountry = _ref.customerShippingCountry,
|
|
20617
20618
|
transitionDelay = _ref.transitionDelay,
|
|
20618
20619
|
_ref$hideBorder = _ref.hideBorder,
|
|
20619
|
-
hideBorder = _ref$hideBorder === void 0 ? false : _ref$hideBorder
|
|
20620
|
+
hideBorder = _ref$hideBorder === void 0 ? false : _ref$hideBorder,
|
|
20621
|
+
onModalClose = _ref.onModalClose;
|
|
20620
20622
|
|
|
20621
20623
|
var _useFetchEligibility = useFetchEligibility(purchaseAmount, apiData, configPlans, customerBillingCountry, customerShippingCountry),
|
|
20622
20624
|
eligibilityPlans = _useFetchEligibility[0],
|
|
@@ -20641,8 +20643,9 @@
|
|
|
20641
20643
|
return setIsOpen(true);
|
|
20642
20644
|
};
|
|
20643
20645
|
|
|
20644
|
-
var closeModal = function closeModal() {
|
|
20645
|
-
|
|
20646
|
+
var closeModal = function closeModal(event) {
|
|
20647
|
+
setIsOpen(false);
|
|
20648
|
+
onModalClose && onModalClose(event);
|
|
20646
20649
|
};
|
|
20647
20650
|
|
|
20648
20651
|
var eligiblePlanKeys = eligibilityPlans.reduce(function (acc, plan, index) {
|
|
@@ -20781,7 +20784,8 @@
|
|
|
20781
20784
|
customerShippingCountry = options.customerShippingCountry,
|
|
20782
20785
|
_options$locale = options.locale,
|
|
20783
20786
|
locale = _options$locale === void 0 ? Locale.en : _options$locale,
|
|
20784
|
-
cards = options.cards
|
|
20787
|
+
cards = options.cards,
|
|
20788
|
+
onModalClose = options.onModalClose;
|
|
20785
20789
|
|
|
20786
20790
|
if (containerDiv) {
|
|
20787
20791
|
reactDom.render( /*#__PURE__*/react.createElement(Provider$1, {
|
|
@@ -20797,7 +20801,8 @@
|
|
|
20797
20801
|
customerBillingCountry: customerBillingCountry,
|
|
20798
20802
|
customerShippingCountry: customerShippingCountry,
|
|
20799
20803
|
transitionDelay: transitionDelay,
|
|
20800
|
-
hideBorder: hideBorder
|
|
20804
|
+
hideBorder: hideBorder,
|
|
20805
|
+
onModalClose: onModalClose
|
|
20801
20806
|
})), document.querySelector(container));
|
|
20802
20807
|
}
|
|
20803
20808
|
}
|
|
@@ -20811,10 +20816,13 @@
|
|
|
20811
20816
|
_locale = _options$locale2 === void 0 ? Locale.en : _options$locale2,
|
|
20812
20817
|
_customerBillingCountry = options.customerBillingCountry,
|
|
20813
20818
|
_customerShippingCountry = options.customerShippingCountry,
|
|
20814
|
-
_cards = options.cards
|
|
20819
|
+
_cards = options.cards,
|
|
20820
|
+
onClose = options.onClose;
|
|
20815
20821
|
|
|
20816
|
-
var close = function close() {
|
|
20817
|
-
|
|
20822
|
+
var close = function close(event) {
|
|
20823
|
+
if (!containerDiv) return;
|
|
20824
|
+
reactDom.unmountComponentAtNode(containerDiv);
|
|
20825
|
+
onClose && onClose(event);
|
|
20818
20826
|
};
|
|
20819
20827
|
|
|
20820
20828
|
var renderModal = function renderModal() {
|