@alma/widgets 2.12.2 → 3.0.0
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 +2 -2
- 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.css +260 -293
- package/dist/raw/widgets.js +269 -265
- package/dist/raw/widgets.js.map +1 -1
- package/dist/raw/widgets.m.js +270 -266
- package/dist/raw/widgets.m.js.map +1 -1
- package/dist/raw/widgets.modern.js +278 -264
- package/dist/raw/widgets.modern.js.map +1 -1
- package/dist/raw/widgets.umd.js +273 -269
- package/dist/raw/widgets.umd.js.map +1 -1
- package/dist/types/assets/almaLogo.d.ts +6 -0
- package/dist/types/components/Installments/Installment/index.d.ts +8 -0
- package/dist/types/components/Installments/TotalBlock/index.d.ts +6 -0
- package/dist/types/components/LoadingIndicator/LoadingIndicator.d.ts +4 -0
- package/dist/widgets.css +15 -14
- 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/Eina04-Bold.ttf +0 -0
- package/dist/assets/fonts/Eina04-Bold.woff +0 -0
- package/dist/assets/fonts/PublicSans-VariableFont_wght.ttf +0 -0
- package/dist/types/Widgets/EligibilityModal/components/Logo/index.d.ts +0 -3
- package/dist/types/assets/Logo.d.ts +0 -9
- package/dist/types/components/LoadingIndicator/index.d.ts +0 -5
package/dist/raw/widgets.js
CHANGED
|
@@ -1876,18 +1876,18 @@ if (!''.trim) String.prototype.trim = function () {
|
|
|
1876
1876
|
})(window);
|
|
1877
1877
|
|
|
1878
1878
|
var messagesDE = {
|
|
1879
|
-
"
|
|
1879
|
+
"credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
|
|
1880
|
+
"credit-features.information": "Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.",
|
|
1881
|
+
"credit-features.total-credit-cost": "Davon Kreditkosten",
|
|
1882
|
+
"eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong> bei der Bezahlung.",
|
|
1880
1883
|
"eligibility-modal.bullet-2": "Füllen Sie die <strong>angeforderten</strong> Informationen aus.",
|
|
1881
|
-
"eligibility-modal.bullet-3": "
|
|
1882
|
-
"eligibility-modal.cost": "Davon Kosten",
|
|
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
|
-
"eligibility-modal.credit-cost": "Davon Kreditkosten",
|
|
1885
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (APR {TAEG})",
|
|
1884
|
+
"eligibility-modal.bullet-3": "Ihre Zahlung wird <strong>sofort</strong> bestätigt!",
|
|
1886
1885
|
"eligibility-modal.no-eligibility": "Ups, die Simulation hat anscheinend nicht funktioniert.",
|
|
1887
|
-
"eligibility-modal.title": "
|
|
1888
|
-
"eligibility-modal.title-
|
|
1889
|
-
"eligibility-modal.total": "Insgesamt",
|
|
1886
|
+
"eligibility-modal.title-deferred-plan": "Bezahlen Sie mit Alma in Raten oder später per Kreditkarte.",
|
|
1887
|
+
"eligibility-modal.title-normal": "Bezahlen Sie mit Alma in mehreren Raten per Kreditkarte.",
|
|
1890
1888
|
"installments.today": "Heute",
|
|
1889
|
+
"installments.total-amount": "Gesamtsumme",
|
|
1890
|
+
"installments.total-fees": "Davon Kosten (inkl. MwSt.)",
|
|
1891
1891
|
"payment-plan-strings.day-abbreviation": "T{numberOfDeferredDays}",
|
|
1892
1892
|
"payment-plan-strings.default-message": "Bezahlen Sie in Raten mit Alma",
|
|
1893
1893
|
"payment-plan-strings.deferred": "{totalAmount} zu zahlen am {dueDate}",
|
|
@@ -1899,18 +1899,18 @@ var messagesDE = {
|
|
|
1899
1899
|
};
|
|
1900
1900
|
|
|
1901
1901
|
var messagesEN = {
|
|
1902
|
+
"credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
|
|
1903
|
+
"credit-features.information": "A loan commits you and must be repaid. Check your ability to repay before committing yourself.",
|
|
1904
|
+
"credit-features.total-credit-cost": "Of which cost of credit",
|
|
1902
1905
|
"eligibility-modal.bullet-1": "Choose <strong>Alma</strong> at checkout.",
|
|
1903
1906
|
"eligibility-modal.bullet-2": "Fill in the <strong>information</strong> requested.",
|
|
1904
1907
|
"eligibility-modal.bullet-3": "The validation of your payment is <strong>instantaneous</strong> !",
|
|
1905
|
-
"eligibility-modal.cost": "Of which costs",
|
|
1906
|
-
"eligibility-modal.credit-commitment": "A loan commits you and must be repaid. Check your ability to repay before committing yourself.",
|
|
1907
|
-
"eligibility-modal.credit-cost": "Of which cost of credit",
|
|
1908
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (APR {TAEG})",
|
|
1909
1908
|
"eligibility-modal.no-eligibility": "Oops, looks like the simulation didn't work.",
|
|
1910
|
-
"eligibility-modal.title": "
|
|
1911
|
-
"eligibility-modal.title-
|
|
1912
|
-
"eligibility-modal.total": "Total",
|
|
1909
|
+
"eligibility-modal.title-deferred-plan": "Pay in installments or later by credit card with Alma.",
|
|
1910
|
+
"eligibility-modal.title-normal": "Pay in installments by credit card with Alma.",
|
|
1913
1911
|
"installments.today": "Today",
|
|
1912
|
+
"installments.total-amount": "Total",
|
|
1913
|
+
"installments.total-fees": "Of which costs (incl. VAT)",
|
|
1914
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}",
|
|
@@ -1922,18 +1922,18 @@ var messagesEN = {
|
|
|
1922
1922
|
};
|
|
1923
1923
|
|
|
1924
1924
|
var messagesES = {
|
|
1925
|
+
"credit-features.credit-cost-display": "{creditCost} (TAE {taegPercentage})",
|
|
1926
|
+
"credit-features.information": "Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.",
|
|
1927
|
+
"credit-features.total-credit-cost": "Coste de crédito (incl. en el total)",
|
|
1925
1928
|
"eligibility-modal.bullet-1": "Elige <strong>Alma</strong> como método de pago.",
|
|
1926
1929
|
"eligibility-modal.bullet-2": "Completa la <strong>información</strong> solicitada.",
|
|
1927
1930
|
"eligibility-modal.bullet-3": "¡La validación de tu pago es <strong>instantánea</strong> !",
|
|
1928
|
-
"eligibility-modal.cost": "Gastos (incl. en el total)",
|
|
1929
|
-
"eligibility-modal.credit-commitment": "Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.",
|
|
1930
|
-
"eligibility-modal.credit-cost": "Coste de crédito (incl. en el total)",
|
|
1931
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (TAE {TAEG})",
|
|
1932
1931
|
"eligibility-modal.no-eligibility": "Uy, parece que la simulación no ha funcionado.",
|
|
1933
|
-
"eligibility-modal.title": "
|
|
1934
|
-
"eligibility-modal.title-
|
|
1935
|
-
"eligibility-modal.total": "Total",
|
|
1932
|
+
"eligibility-modal.title-deferred-plan": "Pague a plazos o posteriormente con tarjeta de crédito con Alma.",
|
|
1933
|
+
"eligibility-modal.title-normal": "Pagar a plazos con tarjeta de crédito con Alma.",
|
|
1936
1934
|
"installments.today": "Hoy",
|
|
1935
|
+
"installments.total-amount": "Total",
|
|
1936
|
+
"installments.total-fees": "De los cuales, costes (IVA incluido)",
|
|
1937
1937
|
"payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
|
|
1938
1938
|
"payment-plan-strings.default-message": "Pagar a plazos con Alma",
|
|
1939
1939
|
"payment-plan-strings.deferred": "{totalAmount} a pagar el {dueDate}",
|
|
@@ -1945,18 +1945,18 @@ var messagesES = {
|
|
|
1945
1945
|
};
|
|
1946
1946
|
|
|
1947
1947
|
var messagesFR = {
|
|
1948
|
+
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
1949
|
+
"credit-features.information": "Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.",
|
|
1950
|
+
"credit-features.total-credit-cost": "Dont coût du crédit",
|
|
1948
1951
|
"eligibility-modal.bullet-1": "Choisissez <strong>Alma</strong> au moment du paiement.",
|
|
1949
1952
|
"eligibility-modal.bullet-2": "Renseignez les <strong>informations</strong> demandées.",
|
|
1950
1953
|
"eligibility-modal.bullet-3": "La validation de votre paiement est <strong>instantanée</strong> !",
|
|
1951
|
-
"eligibility-modal.cost": "Dont frais",
|
|
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
|
-
"eligibility-modal.credit-cost": "Dont coût du crédit",
|
|
1954
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (TAEG {TAEG})",
|
|
1955
1954
|
"eligibility-modal.no-eligibility": "Oups, il semblerait que la simulation n'ait pas fonctionné.",
|
|
1956
|
-
"eligibility-modal.title": "
|
|
1957
|
-
"eligibility-modal.title-
|
|
1958
|
-
"eligibility-modal.total": "Total",
|
|
1955
|
+
"eligibility-modal.title-deferred-plan": "Payez en plusieurs fois ou plus tard par carte bancaire avec Alma.",
|
|
1956
|
+
"eligibility-modal.title-normal": "Payez en plusieurs fois par carte bancaire avec Alma.",
|
|
1959
1957
|
"installments.today": "Aujourd'hui",
|
|
1958
|
+
"installments.total-amount": "Total",
|
|
1959
|
+
"installments.total-fees": "Dont frais (TTC)",
|
|
1960
1960
|
"payment-plan-strings.day-abbreviation": "J{numberOfDeferredDays}",
|
|
1961
1961
|
"payment-plan-strings.default-message": "Payez en plusieurs fois avec Alma",
|
|
1962
1962
|
"payment-plan-strings.deferred": "{totalAmount} à payer le {dueDate}",
|
|
@@ -1968,18 +1968,18 @@ var messagesFR = {
|
|
|
1968
1968
|
};
|
|
1969
1969
|
|
|
1970
1970
|
var messagesIT = {
|
|
1971
|
+
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
1972
|
+
"credit-features.information": "Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua capacità di rimborso prima di impegnarti.",
|
|
1973
|
+
"credit-features.total-credit-cost": "Di cui commissioni",
|
|
1971
1974
|
"eligibility-modal.bullet-1": "Scegli <strong>Alma</strong> alla cassa.",
|
|
1972
1975
|
"eligibility-modal.bullet-2": "Compila le informazioni <strong></strong> richieste.",
|
|
1973
|
-
"eligibility-modal.bullet-3": "La convalida del pagamento è <strong>istantanea</strong
|
|
1974
|
-
"eligibility-modal.
|
|
1975
|
-
"eligibility-modal.
|
|
1976
|
-
"eligibility-modal.
|
|
1977
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (TAEG {TAEG})",
|
|
1978
|
-
"eligibility-modal.no-eligibility": "Ops, sembra che la simulazione non abbia funzionato.",
|
|
1979
|
-
"eligibility-modal.title": "<highlighted>Paga a rate</highlighted> con Alma, senza interessi.",
|
|
1980
|
-
"eligibility-modal.title-deferred": "<highlighted>Paga a rate</highlighted> o posticipa il pagamento con Alma, senza interessi.",
|
|
1981
|
-
"eligibility-modal.total": "Totale",
|
|
1976
|
+
"eligibility-modal.bullet-3": "La convalida del pagamento è <strong>istantanea</strong>!",
|
|
1977
|
+
"eligibility-modal.no-eligibility": "Ops, sembra che qualcosa non abbia funzionato.",
|
|
1978
|
+
"eligibility-modal.title-deferred-plan": "Pagate a rate o in seguito con carta di credito con Alma.",
|
|
1979
|
+
"eligibility-modal.title-normal": "Pagamenti rateali con carta di credito con Alma.",
|
|
1982
1980
|
"installments.today": "Oggi",
|
|
1981
|
+
"installments.total-amount": "Totale",
|
|
1982
|
+
"installments.total-fees": "Di cui costi (IVA inclusa)",
|
|
1983
1983
|
"payment-plan-strings.day-abbreviation": "G{numberOfDeferredDays}",
|
|
1984
1984
|
"payment-plan-strings.default-message": "Paga a rate con Alma",
|
|
1985
1985
|
"payment-plan-strings.deferred": "{totalAmount} da pagare il {dueDate}",
|
|
@@ -1991,18 +1991,18 @@ var messagesIT = {
|
|
|
1991
1991
|
};
|
|
1992
1992
|
|
|
1993
1993
|
var messagesNL = {
|
|
1994
|
+
"credit-features.credit-cost-display": "{creditCost} (gemiddeld rente percentage {taegPercentage})",
|
|
1995
|
+
"credit-features.information": "Een lening bindt je en moet worden terugbetaald. Ga na of u kunt terugbetalen voordat u zich vastlegt.",
|
|
1996
|
+
"credit-features.total-credit-cost": "Waarvan kosten van krediet",
|
|
1994
1997
|
"eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen.",
|
|
1995
1998
|
"eligibility-modal.bullet-2": "Vul de <strong>gevraagde informatie</strong> in.",
|
|
1996
1999
|
"eligibility-modal.bullet-3": "De validatie van uw betaling is <strong>onmiddellijk</strong> !",
|
|
1997
|
-
"eligibility-modal.cost": "Waarvan kosten",
|
|
1998
|
-
"eligibility-modal.credit-commitment": "Een lening bindt je en moet worden terugbetaald. Ga na of u kunt terugbetalen voordat u zich vastlegt.",
|
|
1999
|
-
"eligibility-modal.credit-cost": "Waarvan kosten van krediet",
|
|
2000
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (gemiddeld rente percentage {TAEG})",
|
|
2001
2000
|
"eligibility-modal.no-eligibility": "Oeps, het lijkt erop dat de simulatie niet werkte.",
|
|
2002
|
-
"eligibility-modal.title": "
|
|
2003
|
-
"eligibility-modal.title-
|
|
2004
|
-
"eligibility-modal.total": "Totaal",
|
|
2001
|
+
"eligibility-modal.title-deferred-plan": "Betaal in termijnen of later per creditcard met Alma.",
|
|
2002
|
+
"eligibility-modal.title-normal": "Betaal in termijnen met een creditcard bij Alma.",
|
|
2005
2003
|
"installments.today": "Tegenwoordig",
|
|
2004
|
+
"installments.total-amount": "Totaal",
|
|
2005
|
+
"installments.total-fees": "Waarvan kosten (incl. BTW)",
|
|
2006
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}",
|
|
@@ -2014,18 +2014,18 @@ var messagesNL = {
|
|
|
2014
2014
|
};
|
|
2015
2015
|
|
|
2016
2016
|
var messagesPT = {
|
|
2017
|
+
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
2018
|
+
"credit-features.information": "Um crédito é um compromisso e deve ser reembolsado. Verifique a sua capacidade de pagar antes de se comprometer.",
|
|
2019
|
+
"credit-features.total-credit-cost": "Incluindo custo do crédito",
|
|
2017
2020
|
"eligibility-modal.bullet-1": "Escolha a <strong>Alma</strong> no checkout.",
|
|
2018
2021
|
"eligibility-modal.bullet-2": "Preencha os <strong>dados</strong> solicitados.",
|
|
2019
2022
|
"eligibility-modal.bullet-3": "A validação do seu pagamento é <strong>instantaneamente</strong> !",
|
|
2020
|
-
"eligibility-modal.cost": "Incluindo encargos",
|
|
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
|
-
"eligibility-modal.credit-cost": "Incluindo custo do crédito",
|
|
2023
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (TAEG {TAEG})",
|
|
2024
2023
|
"eligibility-modal.no-eligibility": "Ups, parece que a simulação não funcionou.",
|
|
2025
|
-
"eligibility-modal.title": "
|
|
2026
|
-
"eligibility-modal.title-
|
|
2027
|
-
"eligibility-modal.total": "Total",
|
|
2024
|
+
"eligibility-modal.title-deferred-plan": "Pagar em prestações ou mais tarde por cartão de crédito com Alma.",
|
|
2025
|
+
"eligibility-modal.title-normal": "Pagar em prestações por cartão de crédito com Alma.",
|
|
2028
2026
|
"installments.today": "Hoje",
|
|
2027
|
+
"installments.total-amount": "Total",
|
|
2028
|
+
"installments.total-fees": "Dos quais custos (incl. IVA)",
|
|
2029
2029
|
"payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
|
|
2030
2030
|
"payment-plan-strings.default-message": "Pague em prestações através da Alma",
|
|
2031
2031
|
"payment-plan-strings.deferred": "{totalAmount} a pagar em {dueDate}",
|
|
@@ -2211,38 +2211,7 @@ var useFetchEligibility = function useFetchEligibility(purchaseAmount, _ref, pla
|
|
|
2211
2211
|
return [filterELigibility(eligibility, plans), status];
|
|
2212
2212
|
};
|
|
2213
2213
|
|
|
2214
|
-
var s = {"
|
|
2215
|
-
|
|
2216
|
-
var LoadingIndicator = function LoadingIndicator(_ref) {
|
|
2217
|
-
var className = _ref.className;
|
|
2218
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
2219
|
-
className: cx(s.loadingIndicator, className),
|
|
2220
|
-
"data-testid": "loader"
|
|
2221
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2222
|
-
className: s.letter
|
|
2223
|
-
}, "a"), /*#__PURE__*/React__default.createElement("div", {
|
|
2224
|
-
className: s.bar
|
|
2225
|
-
}));
|
|
2226
|
-
};
|
|
2227
|
-
|
|
2228
|
-
var s$1 = {"modal":"_D8SjB","content":"_ocM9x","contentScrollable":"_1GP2F","overlay":"_1yxCb","header":"_12LLh","closeButton":"_3YRro"};
|
|
2229
|
-
|
|
2230
|
-
function CrossIcon(_ref) {
|
|
2231
|
-
var _ref$color = _ref.color,
|
|
2232
|
-
color = _ref$color === void 0 ? '#fff' : _ref$color,
|
|
2233
|
-
className = _ref.className;
|
|
2234
|
-
return /*#__PURE__*/React__default.createElement("svg", {
|
|
2235
|
-
className: className,
|
|
2236
|
-
width: "16",
|
|
2237
|
-
height: "16",
|
|
2238
|
-
viewBox: "0 0 16 16",
|
|
2239
|
-
fill: "none",
|
|
2240
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2241
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
2242
|
-
d: "M12.5964 11.404L9.41445 8.22205L12.5964 5.04007C12.7732 4.86329 12.7732 4.50974 12.5964 4.33296L11.8893 3.62585C11.6904 3.42698 11.359 3.44908 11.1822 3.62585L8.00023 6.80783L4.81825 3.62585C4.61938 3.42698 4.28792 3.44908 4.11114 3.62585L3.40404 4.33296C3.20516 4.53183 3.20516 4.84119 3.40404 5.04007L6.58602 8.22205L3.40404 11.404C3.20516 11.6029 3.20517 11.9123 3.40404 12.1111L4.11115 12.8182C4.28792 12.995 4.61938 13.0171 4.81825 12.8182L8.00023 9.63626L11.1822 12.8182C11.359 12.995 11.6904 13.0171 11.8893 12.8182L12.5964 12.1111C12.7732 11.9344 12.7732 11.5808 12.5964 11.404Z",
|
|
2243
|
-
fill: color
|
|
2244
|
-
}));
|
|
2245
|
-
}
|
|
2214
|
+
var s = {"container":"_GTTk7","total":"_34s2g","fees":"_W7qIA","creditCost":"_24KmE"};
|
|
2246
2215
|
|
|
2247
2216
|
/**
|
|
2248
2217
|
* Prefix classes to avoid name collisions.
|
|
@@ -2272,6 +2241,96 @@ var STATIC_CUSTOMISATION_CLASSES = {
|
|
|
2272
2241
|
summary: prefix + '-summary'
|
|
2273
2242
|
};
|
|
2274
2243
|
|
|
2244
|
+
var TotalBlock = function TotalBlock(_ref) {
|
|
2245
|
+
var currentPlan = _ref.currentPlan;
|
|
2246
|
+
var intl = reactIntl.useIntl();
|
|
2247
|
+
var total = priceFromCents(currentPlan.purchase_amount + currentPlan.customer_total_cost_amount);
|
|
2248
|
+
var creditCost = priceFromCents(currentPlan.customer_total_cost_amount);
|
|
2249
|
+
var TAEG = (currentPlan == null ? void 0 : currentPlan.annual_interest_rate) && currentPlan.annual_interest_rate / 10000 || 0;
|
|
2250
|
+
var customerFees = priceFromCents(currentPlan.customer_total_cost_amount);
|
|
2251
|
+
var isCredit = currentPlan.installments_count > 4;
|
|
2252
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
2253
|
+
className: cx(s.container, STATIC_CUSTOMISATION_CLASSES.summary),
|
|
2254
|
+
"data-testid": "modal-summary"
|
|
2255
|
+
}, /*#__PURE__*/React__default.createElement("h3", {
|
|
2256
|
+
className: cx(s.total, STATIC_CUSTOMISATION_CLASSES.scheduleTotal)
|
|
2257
|
+
}, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
2258
|
+
tagName: "div",
|
|
2259
|
+
id: "installments.total-amount",
|
|
2260
|
+
defaultMessage: "Total"
|
|
2261
|
+
}), /*#__PURE__*/React__default.createElement(reactIntl.FormattedNumber, {
|
|
2262
|
+
value: total || 0,
|
|
2263
|
+
style: "currency",
|
|
2264
|
+
currency: "EUR"
|
|
2265
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2266
|
+
className: cx(s.fees, STATIC_CUSTOMISATION_CLASSES.scheduleCredit)
|
|
2267
|
+
}, isCredit ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
2268
|
+
id: "credit-features.total-credit-cost",
|
|
2269
|
+
defaultMessage: "Dont co\xFBt du cr\xE9dit"
|
|
2270
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
2271
|
+
className: s.creditCost
|
|
2272
|
+
}, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
2273
|
+
id: "credit-features.credit-cost-display",
|
|
2274
|
+
defaultMessage: "{creditCost} (TAEG {taegPercentage})",
|
|
2275
|
+
values: {
|
|
2276
|
+
creditCost: intl.formatNumber(creditCost, {
|
|
2277
|
+
style: 'currency',
|
|
2278
|
+
currency: 'EUR'
|
|
2279
|
+
}),
|
|
2280
|
+
taegPercentage: intl.formatNumber(TAEG, {
|
|
2281
|
+
style: 'percent',
|
|
2282
|
+
maximumFractionDigits: 2
|
|
2283
|
+
})
|
|
2284
|
+
}
|
|
2285
|
+
}))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
2286
|
+
id: "installments.total-fees",
|
|
2287
|
+
defaultMessage: "Dont frais (TTC)",
|
|
2288
|
+
tagName: "div"
|
|
2289
|
+
}), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(reactIntl.FormattedNumber, {
|
|
2290
|
+
value: customerFees,
|
|
2291
|
+
style: "currency",
|
|
2292
|
+
currency: "EUR"
|
|
2293
|
+
})))));
|
|
2294
|
+
};
|
|
2295
|
+
|
|
2296
|
+
var s$1 = {"loadingIndicator":"_31lrj","bounce":"_3NtDa"};
|
|
2297
|
+
|
|
2298
|
+
var LoadingIndicator = function LoadingIndicator(_ref) {
|
|
2299
|
+
var className = _ref.className;
|
|
2300
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
2301
|
+
className: cx(s$1.loadingIndicator, className),
|
|
2302
|
+
"data-testid": "loader"
|
|
2303
|
+
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
2304
|
+
width: "120",
|
|
2305
|
+
height: "134",
|
|
2306
|
+
viewBox: "0 0 120 134",
|
|
2307
|
+
fill: "none",
|
|
2308
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2309
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
2310
|
+
d: "M83.8164 41.0325C79.1708 22.8241 69.3458 17 59.9939 17C50.642 17 40.8171 22.8241 36.1715 41.0325L16 117H35.8804C39.119 104.311 49.1016 97.2436 59.9939 97.2436C70.8863 97.2436 80.8689 104.324 84.1075 117H104L83.8164 41.0325ZM59.9939 79.5428C53.6623 79.5428 47.925 82.0552 43.6918 86.1283L55.0936 41.9207C56.1853 37.6953 57.7985 36.3503 60.0061 36.3503C62.2136 36.3503 63.8269 37.6953 64.9185 41.9207L76.3082 86.1283C72.075 82.0552 66.3256 79.5428 59.9939 79.5428Z",
|
|
2311
|
+
fill: "#FA5022"
|
|
2312
|
+
})));
|
|
2313
|
+
};
|
|
2314
|
+
|
|
2315
|
+
var s$2 = {"modal":"_D8SjB","content":"_ocM9x","contentScrollable":"_1GP2F","overlay":"_1yxCb","header":"_12LLh","closeButton":"_3YRro"};
|
|
2316
|
+
|
|
2317
|
+
function CrossIcon(_ref) {
|
|
2318
|
+
var _ref$color = _ref.color,
|
|
2319
|
+
color = _ref$color === void 0 ? '#fff' : _ref$color,
|
|
2320
|
+
className = _ref.className;
|
|
2321
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
2322
|
+
className: className,
|
|
2323
|
+
width: "16",
|
|
2324
|
+
height: "16",
|
|
2325
|
+
viewBox: "0 0 16 16",
|
|
2326
|
+
fill: "none",
|
|
2327
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2328
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
2329
|
+
d: "M12.5964 11.404L9.41445 8.22205L12.5964 5.04007C12.7732 4.86329 12.7732 4.50974 12.5964 4.33296L11.8893 3.62585C11.6904 3.42698 11.359 3.44908 11.1822 3.62585L8.00023 6.80783L4.81825 3.62585C4.61938 3.42698 4.28792 3.44908 4.11114 3.62585L3.40404 4.33296C3.20516 4.53183 3.20516 4.84119 3.40404 5.04007L6.58602 8.22205L3.40404 11.404C3.20516 11.6029 3.20517 11.9123 3.40404 12.1111L4.11115 12.8182C4.28792 12.995 4.61938 13.0171 4.81825 12.8182L8.00023 9.63626L11.1822 12.8182C11.359 12.995 11.6904 13.0171 11.8893 12.8182L12.5964 12.1111C12.7732 11.9344 12.7732 11.5808 12.5964 11.404Z",
|
|
2330
|
+
fill: color
|
|
2331
|
+
}));
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2275
2334
|
var _excluded = ["children", "isOpen", "onClose", "className", "contentClassName", "scrollable"];
|
|
2276
2335
|
|
|
2277
2336
|
var ControlledModal = function ControlledModal(_ref) {
|
|
@@ -2289,8 +2348,8 @@ var ControlledModal = function ControlledModal(_ref) {
|
|
|
2289
2348
|
/* istanbul ignore next */
|
|
2290
2349
|
Modal.setAppElement('body');
|
|
2291
2350
|
return /*#__PURE__*/React__default.createElement(Modal, Object.assign({
|
|
2292
|
-
className: cx(s$
|
|
2293
|
-
overlayClassName: s$
|
|
2351
|
+
className: cx(s$2.modal, className),
|
|
2352
|
+
overlayClassName: s$2.overlay,
|
|
2294
2353
|
onAfterOpen: function onAfterOpen() {
|
|
2295
2354
|
noScroll.on();
|
|
2296
2355
|
},
|
|
@@ -2302,13 +2361,13 @@ var ControlledModal = function ControlledModal(_ref) {
|
|
|
2302
2361
|
shouldCloseOnOverlayClick: true,
|
|
2303
2362
|
shouldCloseOnEsc: true
|
|
2304
2363
|
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
2305
|
-
className: s$
|
|
2364
|
+
className: s$2.header
|
|
2306
2365
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
2307
2366
|
onClick: onClose,
|
|
2308
|
-
className: cx(s$
|
|
2367
|
+
className: cx(s$2.closeButton, STATIC_CUSTOMISATION_CLASSES.closeButton),
|
|
2309
2368
|
"data-testid": "modal-close-button"
|
|
2310
2369
|
}, /*#__PURE__*/React__default.createElement(CrossIcon, null))), /*#__PURE__*/React__default.createElement("div", {
|
|
2311
|
-
className: cx(s$
|
|
2370
|
+
className: cx(s$2.content, contentClassName, (_cx = {}, _cx[s$2.contentScrollable] = scrollable, _cx))
|
|
2312
2371
|
}, children));
|
|
2313
2372
|
};
|
|
2314
2373
|
|
|
@@ -2447,20 +2506,20 @@ var paymentPlanInfoText = function paymentPlanInfoText(payment) {
|
|
|
2447
2506
|
});
|
|
2448
2507
|
};
|
|
2449
2508
|
|
|
2450
|
-
var s$
|
|
2509
|
+
var s$3 = {"buttons":"_1l2Oa","active":"_3rue7"};
|
|
2451
2510
|
|
|
2452
2511
|
var EligibilityPlansButtons = function EligibilityPlansButtons(_ref) {
|
|
2453
2512
|
var eligibilityPlans = _ref.eligibilityPlans,
|
|
2454
2513
|
currentPlanIndex = _ref.currentPlanIndex,
|
|
2455
2514
|
setCurrentPlanIndex = _ref.setCurrentPlanIndex;
|
|
2456
2515
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
2457
|
-
className: cx(s$
|
|
2516
|
+
className: cx(s$3.buttons, STATIC_CUSTOMISATION_CLASSES.eligibilityOptions)
|
|
2458
2517
|
}, eligibilityPlans.map(function (eligibilityPlan, index) {
|
|
2459
2518
|
var _cx;
|
|
2460
2519
|
|
|
2461
2520
|
return /*#__PURE__*/React__default.createElement("button", {
|
|
2462
2521
|
key: index,
|
|
2463
|
-
className: cx((_cx = {}, _cx[cx(s$
|
|
2522
|
+
className: cx((_cx = {}, _cx[cx(s$3.active, STATIC_CUSTOMISATION_CLASSES.activeOption)] = index === currentPlanIndex, _cx)),
|
|
2464
2523
|
onClick: function onClick() {
|
|
2465
2524
|
return setCurrentPlanIndex(index);
|
|
2466
2525
|
}
|
|
@@ -2468,83 +2527,78 @@ var EligibilityPlansButtons = function EligibilityPlansButtons(_ref) {
|
|
|
2468
2527
|
}));
|
|
2469
2528
|
};
|
|
2470
2529
|
|
|
2471
|
-
var s$
|
|
2530
|
+
var s$4 = {"installment":"_z2Uiv","date":"_2lJQy","dot":"_1Z9wr","isCurrent":"_2Nmkl","bold":"_ezY-3"};
|
|
2531
|
+
|
|
2532
|
+
var Installment = function Installment(_ref) {
|
|
2533
|
+
var _cx, _cx2;
|
|
2534
|
+
|
|
2535
|
+
var installment = _ref.installment,
|
|
2536
|
+
index = _ref.index;
|
|
2537
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
2538
|
+
className: s$4.installment,
|
|
2539
|
+
"data-testid": "installment-" + index
|
|
2540
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2541
|
+
className: s$4.date
|
|
2542
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2543
|
+
className: cx(s$4.dot, (_cx = {}, _cx[s$4.isCurrent] = index === 0, _cx))
|
|
2544
|
+
}), dateFns.isToday(installment.due_date * 1000) ? /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
2545
|
+
id: "installments.today",
|
|
2546
|
+
defaultMessage: "Aujourd'hui",
|
|
2547
|
+
tagName: "strong"
|
|
2548
|
+
}) : /*#__PURE__*/React__default.createElement(reactIntl.FormattedDate, {
|
|
2549
|
+
value: installment.due_date * 1000,
|
|
2550
|
+
day: "numeric",
|
|
2551
|
+
month: "long",
|
|
2552
|
+
year: "numeric"
|
|
2553
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2554
|
+
className: cx((_cx2 = {}, _cx2[s$4.bold] = index === 0, _cx2))
|
|
2555
|
+
}, /*#__PURE__*/React__default.createElement(reactIntl.FormattedNumber, {
|
|
2556
|
+
value: installment.purchase_amount / 100,
|
|
2557
|
+
style: "currency",
|
|
2558
|
+
currency: "EUR"
|
|
2559
|
+
})));
|
|
2560
|
+
};
|
|
2561
|
+
|
|
2562
|
+
var s$5 = {"schedule":"_MPKjS","creditInfo":"_3a7er"};
|
|
2472
2563
|
|
|
2473
2564
|
var Schedule = function Schedule(_ref) {
|
|
2474
2565
|
var currentPlan = _ref.currentPlan;
|
|
2475
|
-
var total = priceFromCents(currentPlan.purchase_amount + currentPlan.customer_total_cost_amount);
|
|
2476
|
-
var creditCost = priceFromCents(currentPlan.customer_total_cost_amount);
|
|
2477
|
-
var TAEG = (currentPlan == null ? void 0 : currentPlan.annual_interest_rate) && currentPlan.annual_interest_rate / 10000;
|
|
2478
|
-
var customerFees = priceFromCents(currentPlan.customer_total_cost_amount);
|
|
2479
2566
|
var isCredit = currentPlan.installments_count > 4;
|
|
2480
|
-
var intl = reactIntl.useIntl();
|
|
2481
2567
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
2482
|
-
className: cx(s$
|
|
2568
|
+
className: cx(s$5.schedule, STATIC_CUSTOMISATION_CLASSES.scheduleDetails),
|
|
2483
2569
|
"data-testid": "modal-installments-element"
|
|
2484
2570
|
}, ((currentPlan == null ? void 0 : currentPlan.payment_plan) || []).map(function (installment, index) {
|
|
2485
|
-
return /*#__PURE__*/React__default.createElement(
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
value: installment.due_date * 1000,
|
|
2493
|
-
day: "numeric",
|
|
2494
|
-
month: "long",
|
|
2495
|
-
year: "numeric"
|
|
2496
|
-
})), /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(reactIntl.FormattedNumber, {
|
|
2497
|
-
value: priceFromCents(installment.total_amount),
|
|
2498
|
-
style: "currency",
|
|
2499
|
-
currency: "EUR"
|
|
2500
|
-
})));
|
|
2501
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2502
|
-
className: cx(s$3.summary, STATIC_CUSTOMISATION_CLASSES.summary),
|
|
2503
|
-
"data-testid": "modal-summary"
|
|
2504
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2505
|
-
className: cx(s$3.scheduleLine, s$3.total, STATIC_CUSTOMISATION_CLASSES.scheduleTotal)
|
|
2506
|
-
}, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
2507
|
-
id: "eligibility-modal.total",
|
|
2508
|
-
defaultMessage: "Total"
|
|
2509
|
-
})), /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(reactIntl.FormattedNumber, {
|
|
2510
|
-
value: total,
|
|
2511
|
-
style: "currency",
|
|
2512
|
-
currency: "EUR"
|
|
2513
|
-
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
2514
|
-
className: cx(s$3.scheduleLine, s$3.creditCost, STATIC_CUSTOMISATION_CLASSES.scheduleCredit)
|
|
2515
|
-
}, isCredit ? /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
2516
|
-
id: "eligibility-modal.credit-cost",
|
|
2517
|
-
defaultMessage: "Dont co\xFBt du cr\xE9dit"
|
|
2518
|
-
})) : /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
2519
|
-
id: "eligibility-modal.cost",
|
|
2520
|
-
defaultMessage: "Dont frais"
|
|
2521
|
-
})), /*#__PURE__*/React__default.createElement("span", {
|
|
2522
|
-
className: s$3.creditCostAmount
|
|
2523
|
-
}, isCredit ? /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
2524
|
-
id: "eligibility-modal.credit-cost-amount",
|
|
2525
|
-
defaultMessage: "{creditCost} (TAEG {TAEG})",
|
|
2526
|
-
values: {
|
|
2527
|
-
creditCost: intl.formatNumber(creditCost, {
|
|
2528
|
-
style: 'currency',
|
|
2529
|
-
currency: 'EUR'
|
|
2530
|
-
}),
|
|
2531
|
-
TAEG: intl.formatNumber(TAEG != null ? TAEG : 0, {
|
|
2532
|
-
style: 'percent',
|
|
2533
|
-
maximumFractionDigits: 2
|
|
2534
|
-
})
|
|
2535
|
-
}
|
|
2536
|
-
}) : /*#__PURE__*/React__default.createElement(reactIntl.FormattedNumber, {
|
|
2537
|
-
value: customerFees,
|
|
2538
|
-
style: "currency",
|
|
2539
|
-
currency: "EUR"
|
|
2540
|
-
}))), isCredit && /*#__PURE__*/React__default.createElement("p", {
|
|
2541
|
-
className: s$3.creditMessage
|
|
2571
|
+
return /*#__PURE__*/React__default.createElement(Installment, {
|
|
2572
|
+
key: installment.due_date * 1000,
|
|
2573
|
+
installment: installment,
|
|
2574
|
+
index: index
|
|
2575
|
+
});
|
|
2576
|
+
}), isCredit && /*#__PURE__*/React__default.createElement("div", {
|
|
2577
|
+
className: s$5.creditInfo
|
|
2542
2578
|
}, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
2543
|
-
id: "
|
|
2544
|
-
defaultMessage: "Un cr\xE9dit vous engage et doit \xEAtre rembours\xE9. V\xE9rifiez vos capacit\xE9s de remboursement
|
|
2579
|
+
id: "credit-features.information",
|
|
2580
|
+
defaultMessage: "Un cr\xE9dit vous engage et doit \xEAtre rembours\xE9. V\xE9rifiez vos capacit\xE9s de remboursement avant de vous engager."
|
|
2545
2581
|
}))));
|
|
2546
2582
|
};
|
|
2547
2583
|
|
|
2584
|
+
var _excluded$1 = ["color"];
|
|
2585
|
+
var AlmaLogo = function AlmaLogo(_ref) {
|
|
2586
|
+
var _ref$color = _ref.color,
|
|
2587
|
+
color = _ref$color === void 0 ? '#FA5022' : _ref$color,
|
|
2588
|
+
svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
2589
|
+
|
|
2590
|
+
return /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
2591
|
+
width: "50",
|
|
2592
|
+
height: "25",
|
|
2593
|
+
viewBox: "0 0 360 109",
|
|
2594
|
+
fill: "none",
|
|
2595
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2596
|
+
}, svgProps), /*#__PURE__*/React__default.createElement("path", {
|
|
2597
|
+
d: "M333.24 28.3462V38.4459C327.504 31.1018 319.176 26.5132 309.288 26.5132C290.208 26.5132 275.424 43.5497 275.424 64.5757C275.424 85.6018 290.208 102.638 309.288 102.638C319.872 102.638 328.668 97.3908 334.416 89.1241V100.817H352.668V28.3462H333.24ZM314.028 84.4876C303.42 84.4876 294.828 75.574 294.828 64.5757C294.828 53.5775 303.42 44.6639 314.028 44.6639C324.636 44.6639 333.228 53.5775 333.228 64.5757C333.228 75.574 324.636 84.4876 314.028 84.4876ZM109.5 8.23073H128.916V100.805H109.5V8.23073ZM151.248 59.7356C151.248 39.8117 163.5 26.5252 180.468 26.5252C191.004 26.5252 199.332 31.1976 204.348 39.1648C209.376 31.1976 217.692 26.5252 228.228 26.5252C245.196 26.5252 257.448 39.8117 257.448 59.7356V100.817H238.032V57.639C238.032 49.8635 232.872 44.7957 226.044 44.7957C219.216 44.7957 214.056 49.8755 214.056 57.639V100.817H194.64V57.639C194.64 49.8635 189.48 44.7957 182.652 44.7957C175.824 44.7957 170.664 49.8755 170.664 57.639V100.817H151.248V59.7356ZM74.34 29.101C69.744 11.9088 60.0241 6.40967 50.772 6.40967C41.5201 6.40967 31.8 11.9088 27.204 29.101L7.24805 100.829H26.916C30.12 88.8485 39.996 82.1753 50.772 82.1753C61.548 82.1753 71.424 88.8605 74.6281 100.829H94.3081L74.34 29.101ZM50.772 65.4623C44.508 65.4623 38.8321 67.8345 34.6441 71.6803L45.924 29.9397C47.0041 25.9501 48.6001 24.6802 50.784 24.6802C52.9681 24.6802 54.5641 25.9501 55.6441 29.9397L66.912 71.6803C62.724 67.8345 57.036 65.4623 50.772 65.4623Z",
|
|
2598
|
+
fill: color
|
|
2599
|
+
}));
|
|
2600
|
+
};
|
|
2601
|
+
|
|
2548
2602
|
var AmexCard = function AmexCard() {
|
|
2549
2603
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
2550
2604
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2698,7 +2752,7 @@ var CbCard = function CbCard() {
|
|
|
2698
2752
|
}))));
|
|
2699
2753
|
};
|
|
2700
2754
|
|
|
2701
|
-
var s$
|
|
2755
|
+
var s$6 = {"cardContainer":"_1N3yO"};
|
|
2702
2756
|
|
|
2703
2757
|
var Cards = function Cards(_ref) {
|
|
2704
2758
|
var cards = _ref.cards;
|
|
@@ -2706,26 +2760,26 @@ var Cards = function Cards(_ref) {
|
|
|
2706
2760
|
var uniqueCards = Array.from(new Set(cards));
|
|
2707
2761
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
2708
2762
|
"data-testid": "card-logos",
|
|
2709
|
-
className: cx(s$
|
|
2763
|
+
className: cx(s$6.cardContainer, STATIC_CUSTOMISATION_CLASSES.cardContainer)
|
|
2710
2764
|
}, uniqueCards.map(function (card) {
|
|
2711
2765
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
2712
2766
|
key: card,
|
|
2713
|
-
className: s$
|
|
2767
|
+
className: s$6.card,
|
|
2714
2768
|
"data-testid": "card-logo-" + card
|
|
2715
2769
|
}, card === 'cb' && /*#__PURE__*/React__default.createElement(CbCard, null), card === 'amex' && /*#__PURE__*/React__default.createElement(AmexCard, null), card === 'mastercard' && /*#__PURE__*/React__default.createElement(MasterCard, null), card === 'visa' && /*#__PURE__*/React__default.createElement(VisaCard, null));
|
|
2716
2770
|
}));
|
|
2717
2771
|
};
|
|
2718
2772
|
|
|
2719
|
-
var s$
|
|
2773
|
+
var s$7 = {"list":"_180ro","listItem":"_1HqCO","bullet":"_3B8wx"};
|
|
2720
2774
|
|
|
2721
2775
|
var Info = function Info() {
|
|
2722
2776
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
2723
|
-
className: cx(s$
|
|
2777
|
+
className: cx(s$7.list, STATIC_CUSTOMISATION_CLASSES.info),
|
|
2724
2778
|
"data-testid": "modal-info-element"
|
|
2725
2779
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2726
|
-
className: s$
|
|
2780
|
+
className: s$7.listItem
|
|
2727
2781
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2728
|
-
className: cx(s$
|
|
2782
|
+
className: cx(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
2729
2783
|
}, "1"), /*#__PURE__*/React__default.createElement("div", {
|
|
2730
2784
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
2731
2785
|
}, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
@@ -2737,9 +2791,9 @@ var Info = function Info() {
|
|
|
2737
2791
|
}
|
|
2738
2792
|
}
|
|
2739
2793
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
2740
|
-
className: s$
|
|
2794
|
+
className: s$7.listItem
|
|
2741
2795
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2742
|
-
className: cx(s$
|
|
2796
|
+
className: cx(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
2743
2797
|
}, "2"), /*#__PURE__*/React__default.createElement("div", {
|
|
2744
2798
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
2745
2799
|
}, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
@@ -2751,9 +2805,9 @@ var Info = function Info() {
|
|
|
2751
2805
|
}
|
|
2752
2806
|
}
|
|
2753
2807
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
2754
|
-
className: s$
|
|
2808
|
+
className: s$7.listItem
|
|
2755
2809
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2756
|
-
className: cx(s$
|
|
2810
|
+
className: cx(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
2757
2811
|
}, "3"), /*#__PURE__*/React__default.createElement("div", {
|
|
2758
2812
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
2759
2813
|
}, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
@@ -2767,120 +2821,64 @@ var Info = function Info() {
|
|
|
2767
2821
|
}))));
|
|
2768
2822
|
};
|
|
2769
2823
|
|
|
2770
|
-
var
|
|
2771
|
-
|
|
2772
|
-
(function (COLORS) {
|
|
2773
|
-
COLORS["ALMA"] = "#FF414D";
|
|
2774
|
-
COLORS["MONOCHROME"] = "#00425D";
|
|
2775
|
-
})(COLORS || (COLORS = {}));
|
|
2776
|
-
|
|
2777
|
-
function LogoIcon(_ref) {
|
|
2778
|
-
var className = _ref.className,
|
|
2779
|
-
_ref$color = _ref.color,
|
|
2780
|
-
color = _ref$color === void 0 ? COLORS.MONOCHROME : _ref$color,
|
|
2781
|
-
_ref$monochrome = _ref.monochrome,
|
|
2782
|
-
monochrome = _ref$monochrome === void 0 ? true : _ref$monochrome,
|
|
2783
|
-
underlineColor = _ref.underlineColor;
|
|
2784
|
-
var defaultUnderlineColor = monochrome ? COLORS.MONOCHROME : COLORS.ALMA;
|
|
2785
|
-
return /*#__PURE__*/React__default.createElement("svg", {
|
|
2786
|
-
className: className,
|
|
2787
|
-
width: "35",
|
|
2788
|
-
height: "23",
|
|
2789
|
-
viewBox: "0 0 40 23",
|
|
2790
|
-
fill: "none",
|
|
2791
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2792
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
2793
|
-
d: "M6.38546 10.1313V10.029H4.92542C4.23835 10.029 3.72877 10.0972 3.39668 10.2337C3.07605 10.3587 2.91573 10.6374 2.91573 11.0695C2.91573 11.7177 3.37378 12.0418 4.28988 12.0418C5.05711 12.0418 5.59532 11.8826 5.9045 11.5642C6.22514 11.2344 6.38546 10.7568 6.38546 10.1313ZM3.72304 13.9182C2.64663 13.9182 1.85076 13.6567 1.33546 13.1335C0.820153 12.599 0.5625 11.911 0.5625 11.0695C0.5625 10.0574 0.894586 9.32958 1.55876 8.88606C2.22293 8.43118 3.23636 8.20374 4.59906 8.20374H6.38546V7.82846C6.38546 6.98693 5.84725 6.56616 4.77083 6.56616C3.80893 6.56616 3.27644 6.93007 3.17338 7.65788H0.768622C0.848781 6.78223 1.21522 6.04873 1.86794 5.45738C2.52066 4.86603 3.50547 4.57036 4.82236 4.57036C6.1278 4.57036 7.11261 4.86035 7.77678 5.44032C8.44095 6.0203 8.77304 6.83909 8.77304 7.89669V13.7135H6.60875V12.7241C6.09345 13.5202 5.13155 13.9182 3.72304 13.9182Z",
|
|
2794
|
-
fill: color
|
|
2795
|
-
}), /*#__PURE__*/React__default.createElement("path", {
|
|
2796
|
-
d: "M14.2554 11.6324V13.6965C14.0149 13.7306 13.763 13.7476 13.4996 13.7476C12.5492 13.7476 11.8736 13.5486 11.4728 13.1506C11.072 12.7412 10.8716 12.0873 10.8716 11.1889V0.919922H13.3107V11.0183C13.3107 11.2344 13.3508 11.3936 13.4309 11.496C13.5111 11.5983 13.6771 11.6495 13.929 11.6495C13.9863 11.6495 14.0493 11.6495 14.118 11.6495C14.1982 11.6381 14.244 11.6324 14.2554 11.6324Z",
|
|
2797
|
-
fill: color
|
|
2798
|
-
}), /*#__PURE__*/React__default.createElement("path", {
|
|
2799
|
-
d: "M23.8943 8.63019V13.7135H21.4552V8.40844C21.4552 7.23711 20.9742 6.65145 20.0123 6.65145C19.4512 6.65145 19.0161 6.82203 18.7069 7.16319C18.4092 7.50436 18.2603 7.9763 18.2603 8.57902V13.7135H15.8212V4.77506H18.0714V5.86678C18.5409 5.0025 19.4054 4.57036 20.6651 4.57036C21.856 4.57036 22.7263 4.99113 23.2759 5.83266C24.0432 4.99113 25.0394 4.57036 26.2647 4.57036C27.3182 4.57036 28.1255 4.89446 28.6867 5.54267C29.2478 6.19088 29.5283 7.05516 29.5283 8.13551V13.7135H27.0892V8.40844C27.0892 7.23711 26.6083 6.65145 25.6464 6.65145C25.0738 6.65145 24.6386 6.82772 24.3409 7.18025C24.0432 7.52141 23.8943 8.00473 23.8943 8.63019Z",
|
|
2800
|
-
fill: color
|
|
2801
|
-
}), /*#__PURE__*/React__default.createElement("path", {
|
|
2802
|
-
d: "M37.0321 10.1313V10.029H35.572C34.885 10.029 34.3754 10.0972 34.0433 10.2337C33.7227 10.3587 33.5623 10.6374 33.5623 11.0695C33.5623 11.7177 34.0204 12.0418 34.9365 12.0418C35.7037 12.0418 36.2419 11.8826 36.5511 11.5642C36.8717 11.2344 37.0321 10.7568 37.0321 10.1313ZM34.3696 13.9182C33.2932 13.9182 32.4974 13.6567 31.9821 13.1335C31.4668 12.599 31.2091 11.911 31.2091 11.0695C31.2091 10.0574 31.5412 9.32958 32.2054 8.88606C32.8695 8.43118 33.883 8.20374 35.2457 8.20374H37.0321V7.82846C37.0321 6.98693 36.4939 6.56616 35.4174 6.56616C34.4555 6.56616 33.923 6.93007 33.82 7.65788H31.4152C31.4954 6.78223 31.8618 6.04873 32.5145 5.45738C33.1673 4.86603 34.1521 4.57036 35.469 4.57036C36.7744 4.57036 37.7592 4.86035 38.4234 5.44032C39.0876 6.0203 39.4196 6.83909 39.4196 7.89669V13.7135H37.2554V12.7241C36.7401 13.5202 35.7781 13.9182 34.3696 13.9182Z",
|
|
2803
|
-
fill: color
|
|
2804
|
-
}), /*#__PURE__*/React__default.createElement("rect", {
|
|
2805
|
-
y: "20",
|
|
2806
|
-
width: "40",
|
|
2807
|
-
height: "3",
|
|
2808
|
-
fill: underlineColor || defaultUnderlineColor
|
|
2809
|
-
}));
|
|
2810
|
-
}
|
|
2811
|
-
|
|
2812
|
-
var s$6 = {"logo":"_3Oyv_"};
|
|
2813
|
-
|
|
2814
|
-
var Logo = function Logo() {
|
|
2815
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
2816
|
-
className: s$6.logo
|
|
2817
|
-
}, /*#__PURE__*/React__default.createElement(LogoIcon, {
|
|
2818
|
-
underlineColor: "#FF414D"
|
|
2819
|
-
}));
|
|
2820
|
-
};
|
|
2821
|
-
|
|
2822
|
-
var s$7 = {"title":"_3ERx-"};
|
|
2824
|
+
var s$8 = {"title":"_3ERx-"};
|
|
2823
2825
|
|
|
2824
2826
|
var Title = function Title(_ref) {
|
|
2825
2827
|
var isSomePlanDeferred = _ref.isSomePlanDeferred;
|
|
2826
2828
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
2827
|
-
className: cx(s$
|
|
2829
|
+
className: cx(s$8.title, STATIC_CUSTOMISATION_CLASSES.title),
|
|
2828
2830
|
"data-testid": "modal-title-element"
|
|
2829
2831
|
}, isSomePlanDeferred ? /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
2830
|
-
id:
|
|
2831
|
-
defaultMessage: "
|
|
2832
|
-
values: {
|
|
2833
|
-
highlighted: function highlighted() {
|
|
2834
|
-
return /*#__PURE__*/React__default.createElement("span", null, [].slice.call(arguments));
|
|
2835
|
-
}
|
|
2836
|
-
}
|
|
2832
|
+
id: "eligibility-modal.title-deferred-plan",
|
|
2833
|
+
defaultMessage: "Payez en plusieurs fois ou plus tard par carte bancaire avec Alma."
|
|
2837
2834
|
}) : /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
2838
|
-
id:
|
|
2839
|
-
defaultMessage: "
|
|
2840
|
-
values: {
|
|
2841
|
-
highlighted: function highlighted() {
|
|
2842
|
-
return /*#__PURE__*/React__default.createElement("span", null, [].slice.call(arguments));
|
|
2843
|
-
}
|
|
2844
|
-
}
|
|
2835
|
+
id: "eligibility-modal.title-normal",
|
|
2836
|
+
defaultMessage: "Payez en plusieurs fois par carte bancaire avec Alma."
|
|
2845
2837
|
}));
|
|
2846
2838
|
};
|
|
2847
2839
|
|
|
2848
|
-
var s$
|
|
2840
|
+
var s$9 = {"container":"_21g6u","block":"_3zaP5","left":"_2SBRC","logo":"_xW3wt"};
|
|
2849
2841
|
|
|
2850
2842
|
var DesktopModal = function DesktopModal(_ref) {
|
|
2851
2843
|
var children = _ref.children,
|
|
2852
2844
|
isSomePlanDeferred = _ref.isSomePlanDeferred,
|
|
2853
2845
|
cards = _ref.cards;
|
|
2854
2846
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
2855
|
-
className: cx(s$
|
|
2847
|
+
className: cx(s$9.container, STATIC_CUSTOMISATION_CLASSES.desktopModal),
|
|
2856
2848
|
"data-testid": "modal-container"
|
|
2857
|
-
}, /*#__PURE__*/React__default.createElement("
|
|
2858
|
-
className: cx([s$
|
|
2849
|
+
}, /*#__PURE__*/React__default.createElement("aside", {
|
|
2850
|
+
className: cx([s$9.block, s$9.left, STATIC_CUSTOMISATION_CLASSES.leftSide])
|
|
2859
2851
|
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
2860
2852
|
isSomePlanDeferred: isSomePlanDeferred
|
|
2861
2853
|
}), /*#__PURE__*/React__default.createElement(Info, null), cards && /*#__PURE__*/React__default.createElement(Cards, {
|
|
2862
2854
|
cards: cards
|
|
2863
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
2864
|
-
className:
|
|
2855
|
+
}), /*#__PURE__*/React__default.createElement(AlmaLogo, {
|
|
2856
|
+
className: s$9.logo,
|
|
2857
|
+
width: "75"
|
|
2858
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2859
|
+
className: cx(s$9.block, STATIC_CUSTOMISATION_CLASSES.rightSide)
|
|
2865
2860
|
}, children));
|
|
2866
2861
|
};
|
|
2867
2862
|
|
|
2868
|
-
var s$
|
|
2863
|
+
var s$a = {"noEligibility":"_17qNJ","loader":"_2oTJq","scheduleArea":"_2u9rj","verticalLine":"_VRdAU"};
|
|
2869
2864
|
|
|
2870
|
-
var s$
|
|
2865
|
+
var s$b = {"container":"_2G7Ch","logo":"_2779r"};
|
|
2871
2866
|
|
|
2872
2867
|
var MobileModal = function MobileModal(_ref) {
|
|
2873
2868
|
var children = _ref.children,
|
|
2874
2869
|
isSomePlanDeferred = _ref.isSomePlanDeferred,
|
|
2875
2870
|
cards = _ref.cards;
|
|
2876
2871
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
2877
|
-
className: cx(s$
|
|
2872
|
+
className: cx(s$b.container, STATIC_CUSTOMISATION_CLASSES.mobileModal),
|
|
2878
2873
|
"data-testid": "modal-container"
|
|
2879
2874
|
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
2880
2875
|
isSomePlanDeferred: isSomePlanDeferred
|
|
2881
2876
|
}), children, /*#__PURE__*/React__default.createElement(Info, null), cards && /*#__PURE__*/React__default.createElement(Cards, {
|
|
2882
2877
|
cards: cards
|
|
2883
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
2878
|
+
}), /*#__PURE__*/React__default.createElement(AlmaLogo, {
|
|
2879
|
+
className: s$b.logo,
|
|
2880
|
+
width: "75"
|
|
2881
|
+
}));
|
|
2884
2882
|
};
|
|
2885
2883
|
|
|
2886
2884
|
var EligibilityModal = function EligibilityModal(_ref) {
|
|
@@ -2914,9 +2912,9 @@ var EligibilityModal = function EligibilityModal(_ref) {
|
|
|
2914
2912
|
isSomePlanDeferred: isSomePlanDeferred,
|
|
2915
2913
|
cards: cards
|
|
2916
2914
|
}, status === apiStatus.PENDING && /*#__PURE__*/React__default.createElement("div", {
|
|
2917
|
-
className: s$
|
|
2915
|
+
className: s$a.loader
|
|
2918
2916
|
}, /*#__PURE__*/React__default.createElement(LoadingIndicator, null)), status === apiStatus.SUCCESS && eligiblePlans.length === 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
2919
|
-
className: s$
|
|
2917
|
+
className: s$a.noEligibility
|
|
2920
2918
|
}, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
|
|
2921
2919
|
id: "eligibility-modal.no-eligibility",
|
|
2922
2920
|
defaultMessage: "Oups, il semblerait que la simulation n'ait pas fonctionn\xE9."
|
|
@@ -2924,9 +2922,15 @@ var EligibilityModal = function EligibilityModal(_ref) {
|
|
|
2924
2922
|
eligibilityPlans: eligiblePlans,
|
|
2925
2923
|
currentPlanIndex: currentPlanIndex,
|
|
2926
2924
|
setCurrentPlanIndex: setCurrentPlanIndex
|
|
2925
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
2926
|
+
className: s$a.scheduleArea
|
|
2927
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2928
|
+
className: s$a.verticalLine
|
|
2927
2929
|
}), /*#__PURE__*/React__default.createElement(Schedule, {
|
|
2928
2930
|
currentPlan: currentPlan
|
|
2929
|
-
})
|
|
2931
|
+
}), /*#__PURE__*/React__default.createElement(TotalBlock, {
|
|
2932
|
+
currentPlan: currentPlan
|
|
2933
|
+
})))));
|
|
2930
2934
|
};
|
|
2931
2935
|
|
|
2932
2936
|
/**
|
|
@@ -2953,17 +2957,17 @@ var ModalContainer = function ModalContainer(_ref) {
|
|
|
2953
2957
|
});
|
|
2954
2958
|
};
|
|
2955
2959
|
|
|
2956
|
-
var s$
|
|
2960
|
+
var s$c = {"loadingIndicator":"_2SwwZ","line1":"_2qODo","line2":"_2YO01"};
|
|
2957
2961
|
|
|
2958
2962
|
var Loader = function Loader(_ref) {
|
|
2959
2963
|
var className = _ref.className;
|
|
2960
2964
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
2961
|
-
className: cx(s$
|
|
2965
|
+
className: cx(s$c.loadingIndicator, className),
|
|
2962
2966
|
"data-testid": "loader"
|
|
2963
2967
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2964
|
-
className: s$
|
|
2968
|
+
className: s$c.line1
|
|
2965
2969
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
2966
|
-
className: s$
|
|
2970
|
+
className: s$c.line2
|
|
2967
2971
|
}));
|
|
2968
2972
|
};
|
|
2969
2973
|
|
|
@@ -3058,7 +3062,7 @@ var STATIC_CUSTOMISATION_CLASSES$1 = {
|
|
|
3058
3062
|
activeOption: prefix$1 + '-active-option'
|
|
3059
3063
|
};
|
|
3060
3064
|
|
|
3061
|
-
var s$
|
|
3065
|
+
var s$d = {"widgetButton":"_TSkFv","logo":"_LJ4nZ","primaryContainer":"_bMClc","paymentPlans":"_17c_S","plan":"_2Kqjn","active":"_3dG_J","monochrome":"_2hx83","notEligible":"_3O1bg","hideBorder":"_3_qcn","info":"_25GrF","loader":"_30j1O","error":"_R0YlN","errorText":"_2kGhu","errorButton":"_73d_Y","pending":"_1ZDMS","clickable":"_UksZa","unClickable":"_1lr-q"};
|
|
3062
3066
|
|
|
3063
3067
|
var VERY_LONG_TIME_IN_MS = 1000 * 3600 * 24 * 365;
|
|
3064
3068
|
var DEFAULT_TRANSITION_TIME = 5500;
|
|
@@ -3155,7 +3159,7 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
|
|
|
3155
3159
|
|
|
3156
3160
|
if (status === apiStatus.PENDING) {
|
|
3157
3161
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
3158
|
-
className: cx(s$
|
|
3162
|
+
className: cx(s$d.widgetButton, s$d.pending)
|
|
3159
3163
|
}, /*#__PURE__*/React__default.createElement(Loader, null));
|
|
3160
3164
|
}
|
|
3161
3165
|
|
|
@@ -3173,15 +3177,15 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
|
|
|
3173
3177
|
|
|
3174
3178
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
3175
3179
|
onClick: handleOpenModal,
|
|
3176
|
-
className: cx(s$
|
|
3180
|
+
className: cx(s$d.widgetButton, (_cx = {}, _cx[s$d.clickable] = eligiblePlans.length > 0, _cx[s$d.unClickable] = eligiblePlans.length === 0, _cx[s$d.hideBorder] = hideBorder, _cx), STATIC_CUSTOMISATION_CLASSES$1.container),
|
|
3177
3181
|
"data-testid": "widget-button"
|
|
3178
3182
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
3179
|
-
className: cx(s$
|
|
3180
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
3181
|
-
className: s$
|
|
3182
|
-
monochrome:
|
|
3183
|
+
className: cx(s$d.primaryContainer, STATIC_CUSTOMISATION_CLASSES$1.eligibilityLine)
|
|
3184
|
+
}, /*#__PURE__*/React__default.createElement(AlmaLogo, {
|
|
3185
|
+
className: s$d.logo,
|
|
3186
|
+
color: monochrome ? 'var(--off-black)' : undefined
|
|
3183
3187
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
3184
|
-
className: cx(s$
|
|
3188
|
+
className: cx(s$d.paymentPlans, STATIC_CUSTOMISATION_CLASSES$1.eligibilityOptions)
|
|
3185
3189
|
}, eligibilityPlans.map(function (eligibilityPlan, key) {
|
|
3186
3190
|
var _cx2;
|
|
3187
3191
|
|
|
@@ -3196,10 +3200,10 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
|
|
|
3196
3200
|
},
|
|
3197
3201
|
onMouseOut: onLeave,
|
|
3198
3202
|
onTouchEnd: onLeave,
|
|
3199
|
-
className: cx(s$
|
|
3203
|
+
className: cx(s$d.plan, (_cx2 = {}, _cx2[cx(s$d.active, STATIC_CUSTOMISATION_CLASSES$1.activeOption)] = isCurrent, _cx2[s$d.monochrome] = monochrome && isCurrent, _cx2[cx(s$d.notEligible, STATIC_CUSTOMISATION_CLASSES$1.notEligibleOption)] = !eligibilityPlan.eligible, _cx2))
|
|
3200
3204
|
}, paymentPlanShorthandName(eligibilityPlan));
|
|
3201
3205
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
3202
|
-
className: cx(s$
|
|
3206
|
+
className: cx(s$d.info, (_cx3 = {}, _cx3[cx(s$d.notEligible, STATIC_CUSTOMISATION_CLASSES$1.notEligibleOption)] = eligibilityPlans[current] && !eligibilityPlans[current].eligible, _cx3), STATIC_CUSTOMISATION_CLASSES$1.paymentInfo)
|
|
3203
3207
|
}, eligibilityPlans.length !== 0 && paymentPlanInfoText(eligibilityPlans[current]))), isOpen && /*#__PURE__*/React__default.createElement(EligibilityModal, {
|
|
3204
3208
|
initialPlanIndex: getIndexWithinEligiblePlans(current),
|
|
3205
3209
|
onClose: closeModal,
|