@alma/widgets 2.11.1 → 2.12.2
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/README.md +0 -15
- package/dist/raw/widgets.css +1 -1
- package/dist/raw/widgets.js +22 -19
- package/dist/raw/widgets.js.map +1 -1
- package/dist/raw/widgets.m.js +22 -19
- package/dist/raw/widgets.m.js.map +1 -1
- package/dist/raw/widgets.modern.js +22 -19
- package/dist/raw/widgets.modern.js.map +1 -1
- package/dist/raw/widgets.umd.js +22 -19
- package/dist/raw/widgets.umd.js.map +1 -1
- package/dist/types/Widgets/EligibilityModal/classNames.const.d.ts +3 -0
- package/dist/widgets.css +1 -1
- 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/README.md
CHANGED
|
@@ -33,21 +33,6 @@
|
|
|
33
33
|
widgets.add(Alma.Widgets.PaymentPlans, {
|
|
34
34
|
container: '#alma-widget',
|
|
35
35
|
purchaseAmount: 45000,
|
|
36
|
-
locale: 'fr',
|
|
37
|
-
hideIfNotEligible: false,
|
|
38
|
-
plans: [
|
|
39
|
-
{
|
|
40
|
-
installmentsCount: 1,
|
|
41
|
-
deferredDays: 30,
|
|
42
|
-
minAmount: 5000,
|
|
43
|
-
maxAmount: 50000,
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
installmentsCount: 3,
|
|
47
|
-
minAmount: 5000,
|
|
48
|
-
maxAmount: 50000,
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
36
|
})
|
|
52
37
|
})()
|
|
53
38
|
</script>
|
package/dist/raw/widgets.css
CHANGED
package/dist/raw/widgets.js
CHANGED
|
@@ -1878,7 +1878,7 @@ if (!''.trim) String.prototype.trim = function () {
|
|
|
1878
1878
|
var messagesDE = {
|
|
1879
1879
|
"eligibility-modal.bullet-1": "Wählen Sie an der Kasse <strong>Alma</strong> .",
|
|
1880
1880
|
"eligibility-modal.bullet-2": "Füllen Sie die <strong>angeforderten</strong> Informationen aus.",
|
|
1881
|
-
"eligibility-modal.bullet-3": "Die Bestätigung Ihrer Zahlung <strong>sofort</strong> !",
|
|
1881
|
+
"eligibility-modal.bullet-3": "Die Bestätigung Ihrer Zahlung erfolgt <strong>sofort</strong> !",
|
|
1882
1882
|
"eligibility-modal.cost": "Davon Kosten",
|
|
1883
1883
|
"eligibility-modal.credit-commitment": "Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.",
|
|
1884
1884
|
"eligibility-modal.credit-cost": "Davon Kreditkosten",
|
|
@@ -1901,7 +1901,7 @@ var messagesDE = {
|
|
|
1901
1901
|
var messagesEN = {
|
|
1902
1902
|
"eligibility-modal.bullet-1": "Choose <strong>Alma</strong> at checkout.",
|
|
1903
1903
|
"eligibility-modal.bullet-2": "Fill in the <strong>information</strong> requested.",
|
|
1904
|
-
"eligibility-modal.bullet-3": "
|
|
1904
|
+
"eligibility-modal.bullet-3": "The validation of your payment is <strong>instantaneous</strong> !",
|
|
1905
1905
|
"eligibility-modal.cost": "Of which costs",
|
|
1906
1906
|
"eligibility-modal.credit-commitment": "A loan commits you and must be repaid. Check your ability to repay before committing yourself.",
|
|
1907
1907
|
"eligibility-modal.credit-cost": "Of which cost of credit",
|
|
@@ -1911,7 +1911,7 @@ var messagesEN = {
|
|
|
1911
1911
|
"eligibility-modal.title-deferred": "<highlighted>Pay in installments</highlighted> or later by credit card with Alma.",
|
|
1912
1912
|
"eligibility-modal.total": "Total",
|
|
1913
1913
|
"installments.today": "Today",
|
|
1914
|
-
"payment-plan-strings.day-abbreviation": "
|
|
1914
|
+
"payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
|
|
1915
1915
|
"payment-plan-strings.default-message": "Pay in installments with Alma",
|
|
1916
1916
|
"payment-plan-strings.deferred": "{totalAmount} to be paid on {dueDate}",
|
|
1917
1917
|
"payment-plan-strings.ineligible-greater-than-max": "Until {maxAmount}",
|
|
@@ -1924,7 +1924,7 @@ var messagesEN = {
|
|
|
1924
1924
|
var messagesES = {
|
|
1925
1925
|
"eligibility-modal.bullet-1": "Elige <strong>Alma</strong> como método de pago.",
|
|
1926
1926
|
"eligibility-modal.bullet-2": "Completa la <strong>información</strong> solicitada.",
|
|
1927
|
-
"eligibility-modal.bullet-3": "¡
|
|
1927
|
+
"eligibility-modal.bullet-3": "¡La validación de tu pago es <strong>instantánea</strong> !",
|
|
1928
1928
|
"eligibility-modal.cost": "Gastos (incl. en el total)",
|
|
1929
1929
|
"eligibility-modal.credit-commitment": "Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.",
|
|
1930
1930
|
"eligibility-modal.credit-cost": "Coste de crédito (incl. en el total)",
|
|
@@ -1947,7 +1947,7 @@ var messagesES = {
|
|
|
1947
1947
|
var messagesFR = {
|
|
1948
1948
|
"eligibility-modal.bullet-1": "Choisissez <strong>Alma</strong> au moment du paiement.",
|
|
1949
1949
|
"eligibility-modal.bullet-2": "Renseignez les <strong>informations</strong> demandées.",
|
|
1950
|
-
"eligibility-modal.bullet-3": "La validation de votre paiement <strong>instantanée</strong> !",
|
|
1950
|
+
"eligibility-modal.bullet-3": "La validation de votre paiement est <strong>instantanée</strong> !",
|
|
1951
1951
|
"eligibility-modal.cost": "Dont frais",
|
|
1952
1952
|
"eligibility-modal.credit-commitment": "Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.",
|
|
1953
1953
|
"eligibility-modal.credit-cost": "Dont coût du crédit",
|
|
@@ -1970,7 +1970,7 @@ var messagesFR = {
|
|
|
1970
1970
|
var messagesIT = {
|
|
1971
1971
|
"eligibility-modal.bullet-1": "Scegli <strong>Alma</strong> alla cassa.",
|
|
1972
1972
|
"eligibility-modal.bullet-2": "Compila le informazioni <strong></strong> richieste.",
|
|
1973
|
-
"eligibility-modal.bullet-3": "
|
|
1973
|
+
"eligibility-modal.bullet-3": "La convalida del pagamento è <strong>istantanea</strong> !",
|
|
1974
1974
|
"eligibility-modal.cost": "Di cui commissioni",
|
|
1975
1975
|
"eligibility-modal.credit-commitment": "Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua capacità di rimborso prima di impegnarti.",
|
|
1976
1976
|
"eligibility-modal.credit-cost": "Di cui commissioni",
|
|
@@ -1993,30 +1993,30 @@ var messagesIT = {
|
|
|
1993
1993
|
var messagesNL = {
|
|
1994
1994
|
"eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen.",
|
|
1995
1995
|
"eligibility-modal.bullet-2": "Vul de <strong>gevraagde informatie</strong> in.",
|
|
1996
|
-
"eligibility-modal.bullet-3": "
|
|
1996
|
+
"eligibility-modal.bullet-3": "De validatie van uw betaling is <strong>onmiddellijk</strong> !",
|
|
1997
1997
|
"eligibility-modal.cost": "Waarvan kosten",
|
|
1998
1998
|
"eligibility-modal.credit-commitment": "Een lening bindt je en moet worden terugbetaald. Ga na of u kunt terugbetalen voordat u zich vastlegt.",
|
|
1999
1999
|
"eligibility-modal.credit-cost": "Waarvan kosten van krediet",
|
|
2000
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (
|
|
2000
|
+
"eligibility-modal.credit-cost-amount": "{creditCost} (gemiddeld rente percentage {TAEG})",
|
|
2001
2001
|
"eligibility-modal.no-eligibility": "Oeps, het lijkt erop dat de simulatie niet werkte.",
|
|
2002
|
-
"eligibility-modal.title": "<highlighted>Betaal in termijnen</highlighted> met kredietkaart bij Alma.",
|
|
2003
|
-
"eligibility-modal.title-deferred": "<highlighted>Betaal in termijnen</highlighted> of later per
|
|
2002
|
+
"eligibility-modal.title": "<highlighted>Betaal in termijnen</highlighted> met bank- en kredietkaart bij Alma.",
|
|
2003
|
+
"eligibility-modal.title-deferred": "<highlighted>Betaal in termijnen</highlighted> of later per bank- en kredietkaart met Alma.",
|
|
2004
2004
|
"eligibility-modal.total": "Totaal",
|
|
2005
2005
|
"installments.today": "Tegenwoordig",
|
|
2006
|
-
"payment-plan-strings.day-abbreviation": "
|
|
2006
|
+
"payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
|
|
2007
2007
|
"payment-plan-strings.default-message": "Betaal in termijnen met Alma",
|
|
2008
2008
|
"payment-plan-strings.deferred": "{totalAmount} te betalen op {dueDate}",
|
|
2009
2009
|
"payment-plan-strings.ineligible-greater-than-max": "Tot {maxAmount}",
|
|
2010
2010
|
"payment-plan-strings.ineligible-lower-than-min": "Van {minAmount}",
|
|
2011
2011
|
"payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
|
|
2012
2012
|
"payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
|
|
2013
|
-
"payment-plan-strings.no-fee": "(
|
|
2013
|
+
"payment-plan-strings.no-fee": "(zonder kosten)"
|
|
2014
2014
|
};
|
|
2015
2015
|
|
|
2016
2016
|
var messagesPT = {
|
|
2017
2017
|
"eligibility-modal.bullet-1": "Escolha a <strong>Alma</strong> no checkout.",
|
|
2018
2018
|
"eligibility-modal.bullet-2": "Preencha os <strong>dados</strong> solicitados.",
|
|
2019
|
-
"eligibility-modal.bullet-3": "
|
|
2019
|
+
"eligibility-modal.bullet-3": "A validação do seu pagamento é <strong>instantaneamente</strong> !",
|
|
2020
2020
|
"eligibility-modal.cost": "Incluindo encargos",
|
|
2021
2021
|
"eligibility-modal.credit-commitment": "Um crédito é um compromisso e deve ser reembolsado. Verifique a sua capacidade de pagar antes de se comprometer.",
|
|
2022
2022
|
"eligibility-modal.credit-cost": "Incluindo custo do crédito",
|
|
@@ -2254,7 +2254,10 @@ var prefix = 'alma-eligibility-modal';
|
|
|
2254
2254
|
*/
|
|
2255
2255
|
|
|
2256
2256
|
var STATIC_CUSTOMISATION_CLASSES = {
|
|
2257
|
+
desktopModal: prefix + '-desktop-modal',
|
|
2258
|
+
mobileModal: prefix + '-mobile-modal',
|
|
2257
2259
|
leftSide: prefix + '-left-side',
|
|
2260
|
+
bullet: prefix + '-bullet',
|
|
2258
2261
|
rightSide: prefix + '-right-side',
|
|
2259
2262
|
title: prefix + '-title',
|
|
2260
2263
|
info: prefix + '-info',
|
|
@@ -2722,7 +2725,7 @@ var Info = function Info() {
|
|
|
2722
2725
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2723
2726
|
className: s$5.listItem
|
|
2724
2727
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2725
|
-
className: s$5.bullet
|
|
2728
|
+
className: cx(s$5.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
2726
2729
|
}, "1"), /*#__PURE__*/React__default.createElement("div", {
|
|
2727
2730
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
2728
2731
|
}, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
@@ -2736,7 +2739,7 @@ var Info = function Info() {
|
|
|
2736
2739
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
2737
2740
|
className: s$5.listItem
|
|
2738
2741
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2739
|
-
className: s$5.bullet
|
|
2742
|
+
className: cx(s$5.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
2740
2743
|
}, "2"), /*#__PURE__*/React__default.createElement("div", {
|
|
2741
2744
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
2742
2745
|
}, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
@@ -2750,12 +2753,12 @@ var Info = function Info() {
|
|
|
2750
2753
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
2751
2754
|
className: s$5.listItem
|
|
2752
2755
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2753
|
-
className: s$5.bullet
|
|
2756
|
+
className: cx(s$5.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
2754
2757
|
}, "3"), /*#__PURE__*/React__default.createElement("div", {
|
|
2755
2758
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
2756
2759
|
}, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
2757
2760
|
id: "eligibility-modal.bullet-3",
|
|
2758
|
-
defaultMessage: "La validation de votre paiement <strong>instantan\xE9e</strong> !",
|
|
2761
|
+
defaultMessage: "La validation de votre paiement est <strong>instantan\xE9e</strong> !",
|
|
2759
2762
|
values: {
|
|
2760
2763
|
strong: function strong() {
|
|
2761
2764
|
return /*#__PURE__*/React__default.createElement("strong", null, [].slice.call(arguments));
|
|
@@ -2849,7 +2852,7 @@ var DesktopModal = function DesktopModal(_ref) {
|
|
|
2849
2852
|
isSomePlanDeferred = _ref.isSomePlanDeferred,
|
|
2850
2853
|
cards = _ref.cards;
|
|
2851
2854
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
2852
|
-
className: s$8.container,
|
|
2855
|
+
className: cx(s$8.container, STATIC_CUSTOMISATION_CLASSES.desktopModal),
|
|
2853
2856
|
"data-testid": "modal-container"
|
|
2854
2857
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2855
2858
|
className: cx([s$8.block, s$8.left, STATIC_CUSTOMISATION_CLASSES.leftSide])
|
|
@@ -2871,7 +2874,7 @@ var MobileModal = function MobileModal(_ref) {
|
|
|
2871
2874
|
isSomePlanDeferred = _ref.isSomePlanDeferred,
|
|
2872
2875
|
cards = _ref.cards;
|
|
2873
2876
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
2874
|
-
className: s$a.container,
|
|
2877
|
+
className: cx(s$a.container, STATIC_CUSTOMISATION_CLASSES.mobileModal),
|
|
2875
2878
|
"data-testid": "modal-container"
|
|
2876
2879
|
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
2877
2880
|
isSomePlanDeferred: isSomePlanDeferred
|