@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.m.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import { IntlProvider, FormattedMessage, FormattedNumber, FormattedDate
|
|
2
|
+
import { IntlProvider, useIntl, FormattedMessage, FormattedNumber, FormattedDate } from 'react-intl';
|
|
3
3
|
import { unmountComponentAtNode, render } from 'react-dom';
|
|
4
4
|
import cx from 'classnames';
|
|
5
5
|
import Modal from 'react-modal';
|
|
@@ -1873,18 +1873,18 @@ if (!''.trim) String.prototype.trim = function () {
|
|
|
1873
1873
|
})(window);
|
|
1874
1874
|
|
|
1875
1875
|
var messagesDE = {
|
|
1876
|
-
"
|
|
1876
|
+
"credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
|
|
1877
|
+
"credit-features.information": "Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.",
|
|
1878
|
+
"credit-features.total-credit-cost": "Davon Kreditkosten",
|
|
1879
|
+
"eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong> bei der Bezahlung.",
|
|
1877
1880
|
"eligibility-modal.bullet-2": "Füllen Sie die <strong>angeforderten</strong> Informationen aus.",
|
|
1878
|
-
"eligibility-modal.bullet-3": "
|
|
1879
|
-
"eligibility-modal.cost": "Davon Kosten",
|
|
1880
|
-
"eligibility-modal.credit-commitment": "Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.",
|
|
1881
|
-
"eligibility-modal.credit-cost": "Davon Kreditkosten",
|
|
1882
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (APR {TAEG})",
|
|
1881
|
+
"eligibility-modal.bullet-3": "Ihre Zahlung wird <strong>sofort</strong> bestätigt!",
|
|
1883
1882
|
"eligibility-modal.no-eligibility": "Ups, die Simulation hat anscheinend nicht funktioniert.",
|
|
1884
|
-
"eligibility-modal.title": "
|
|
1885
|
-
"eligibility-modal.title-
|
|
1886
|
-
"eligibility-modal.total": "Insgesamt",
|
|
1883
|
+
"eligibility-modal.title-deferred-plan": "Bezahlen Sie mit Alma in Raten oder später per Kreditkarte.",
|
|
1884
|
+
"eligibility-modal.title-normal": "Bezahlen Sie mit Alma in mehreren Raten per Kreditkarte.",
|
|
1887
1885
|
"installments.today": "Heute",
|
|
1886
|
+
"installments.total-amount": "Gesamtsumme",
|
|
1887
|
+
"installments.total-fees": "Davon Kosten (inkl. MwSt.)",
|
|
1888
1888
|
"payment-plan-strings.day-abbreviation": "T{numberOfDeferredDays}",
|
|
1889
1889
|
"payment-plan-strings.default-message": "Bezahlen Sie in Raten mit Alma",
|
|
1890
1890
|
"payment-plan-strings.deferred": "{totalAmount} zu zahlen am {dueDate}",
|
|
@@ -1896,18 +1896,18 @@ var messagesDE = {
|
|
|
1896
1896
|
};
|
|
1897
1897
|
|
|
1898
1898
|
var messagesEN = {
|
|
1899
|
+
"credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
|
|
1900
|
+
"credit-features.information": "A loan commits you and must be repaid. Check your ability to repay before committing yourself.",
|
|
1901
|
+
"credit-features.total-credit-cost": "Of which cost of credit",
|
|
1899
1902
|
"eligibility-modal.bullet-1": "Choose <strong>Alma</strong> at checkout.",
|
|
1900
1903
|
"eligibility-modal.bullet-2": "Fill in the <strong>information</strong> requested.",
|
|
1901
1904
|
"eligibility-modal.bullet-3": "The validation of your payment is <strong>instantaneous</strong> !",
|
|
1902
|
-
"eligibility-modal.cost": "Of which costs",
|
|
1903
|
-
"eligibility-modal.credit-commitment": "A loan commits you and must be repaid. Check your ability to repay before committing yourself.",
|
|
1904
|
-
"eligibility-modal.credit-cost": "Of which cost of credit",
|
|
1905
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (APR {TAEG})",
|
|
1906
1905
|
"eligibility-modal.no-eligibility": "Oops, looks like the simulation didn't work.",
|
|
1907
|
-
"eligibility-modal.title": "
|
|
1908
|
-
"eligibility-modal.title-
|
|
1909
|
-
"eligibility-modal.total": "Total",
|
|
1906
|
+
"eligibility-modal.title-deferred-plan": "Pay in installments or later by credit card with Alma.",
|
|
1907
|
+
"eligibility-modal.title-normal": "Pay in installments by credit card with Alma.",
|
|
1910
1908
|
"installments.today": "Today",
|
|
1909
|
+
"installments.total-amount": "Total",
|
|
1910
|
+
"installments.total-fees": "Of which costs (incl. VAT)",
|
|
1911
1911
|
"payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
|
|
1912
1912
|
"payment-plan-strings.default-message": "Pay in installments with Alma",
|
|
1913
1913
|
"payment-plan-strings.deferred": "{totalAmount} to be paid on {dueDate}",
|
|
@@ -1919,18 +1919,18 @@ var messagesEN = {
|
|
|
1919
1919
|
};
|
|
1920
1920
|
|
|
1921
1921
|
var messagesES = {
|
|
1922
|
+
"credit-features.credit-cost-display": "{creditCost} (TAE {taegPercentage})",
|
|
1923
|
+
"credit-features.information": "Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.",
|
|
1924
|
+
"credit-features.total-credit-cost": "Coste de crédito (incl. en el total)",
|
|
1922
1925
|
"eligibility-modal.bullet-1": "Elige <strong>Alma</strong> como método de pago.",
|
|
1923
1926
|
"eligibility-modal.bullet-2": "Completa la <strong>información</strong> solicitada.",
|
|
1924
1927
|
"eligibility-modal.bullet-3": "¡La validación de tu pago es <strong>instantánea</strong> !",
|
|
1925
|
-
"eligibility-modal.cost": "Gastos (incl. en el total)",
|
|
1926
|
-
"eligibility-modal.credit-commitment": "Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.",
|
|
1927
|
-
"eligibility-modal.credit-cost": "Coste de crédito (incl. en el total)",
|
|
1928
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (TAE {TAEG})",
|
|
1929
1928
|
"eligibility-modal.no-eligibility": "Uy, parece que la simulación no ha funcionado.",
|
|
1930
|
-
"eligibility-modal.title": "
|
|
1931
|
-
"eligibility-modal.title-
|
|
1932
|
-
"eligibility-modal.total": "Total",
|
|
1929
|
+
"eligibility-modal.title-deferred-plan": "Pague a plazos o posteriormente con tarjeta de crédito con Alma.",
|
|
1930
|
+
"eligibility-modal.title-normal": "Pagar a plazos con tarjeta de crédito con Alma.",
|
|
1933
1931
|
"installments.today": "Hoy",
|
|
1932
|
+
"installments.total-amount": "Total",
|
|
1933
|
+
"installments.total-fees": "De los cuales, costes (IVA incluido)",
|
|
1934
1934
|
"payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
|
|
1935
1935
|
"payment-plan-strings.default-message": "Pagar a plazos con Alma",
|
|
1936
1936
|
"payment-plan-strings.deferred": "{totalAmount} a pagar el {dueDate}",
|
|
@@ -1942,18 +1942,18 @@ var messagesES = {
|
|
|
1942
1942
|
};
|
|
1943
1943
|
|
|
1944
1944
|
var messagesFR = {
|
|
1945
|
+
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
1946
|
+
"credit-features.information": "Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.",
|
|
1947
|
+
"credit-features.total-credit-cost": "Dont coût du crédit",
|
|
1945
1948
|
"eligibility-modal.bullet-1": "Choisissez <strong>Alma</strong> au moment du paiement.",
|
|
1946
1949
|
"eligibility-modal.bullet-2": "Renseignez les <strong>informations</strong> demandées.",
|
|
1947
1950
|
"eligibility-modal.bullet-3": "La validation de votre paiement est <strong>instantanée</strong> !",
|
|
1948
|
-
"eligibility-modal.cost": "Dont frais",
|
|
1949
|
-
"eligibility-modal.credit-commitment": "Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.",
|
|
1950
|
-
"eligibility-modal.credit-cost": "Dont coût du crédit",
|
|
1951
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (TAEG {TAEG})",
|
|
1952
1951
|
"eligibility-modal.no-eligibility": "Oups, il semblerait que la simulation n'ait pas fonctionné.",
|
|
1953
|
-
"eligibility-modal.title": "
|
|
1954
|
-
"eligibility-modal.title-
|
|
1955
|
-
"eligibility-modal.total": "Total",
|
|
1952
|
+
"eligibility-modal.title-deferred-plan": "Payez en plusieurs fois ou plus tard par carte bancaire avec Alma.",
|
|
1953
|
+
"eligibility-modal.title-normal": "Payez en plusieurs fois par carte bancaire avec Alma.",
|
|
1956
1954
|
"installments.today": "Aujourd'hui",
|
|
1955
|
+
"installments.total-amount": "Total",
|
|
1956
|
+
"installments.total-fees": "Dont frais (TTC)",
|
|
1957
1957
|
"payment-plan-strings.day-abbreviation": "J{numberOfDeferredDays}",
|
|
1958
1958
|
"payment-plan-strings.default-message": "Payez en plusieurs fois avec Alma",
|
|
1959
1959
|
"payment-plan-strings.deferred": "{totalAmount} à payer le {dueDate}",
|
|
@@ -1965,18 +1965,18 @@ var messagesFR = {
|
|
|
1965
1965
|
};
|
|
1966
1966
|
|
|
1967
1967
|
var messagesIT = {
|
|
1968
|
+
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
1969
|
+
"credit-features.information": "Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua capacità di rimborso prima di impegnarti.",
|
|
1970
|
+
"credit-features.total-credit-cost": "Di cui commissioni",
|
|
1968
1971
|
"eligibility-modal.bullet-1": "Scegli <strong>Alma</strong> alla cassa.",
|
|
1969
1972
|
"eligibility-modal.bullet-2": "Compila le informazioni <strong></strong> richieste.",
|
|
1970
|
-
"eligibility-modal.bullet-3": "La convalida del pagamento è <strong>istantanea</strong
|
|
1971
|
-
"eligibility-modal.
|
|
1972
|
-
"eligibility-modal.
|
|
1973
|
-
"eligibility-modal.
|
|
1974
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (TAEG {TAEG})",
|
|
1975
|
-
"eligibility-modal.no-eligibility": "Ops, sembra che la simulazione non abbia funzionato.",
|
|
1976
|
-
"eligibility-modal.title": "<highlighted>Paga a rate</highlighted> con Alma, senza interessi.",
|
|
1977
|
-
"eligibility-modal.title-deferred": "<highlighted>Paga a rate</highlighted> o posticipa il pagamento con Alma, senza interessi.",
|
|
1978
|
-
"eligibility-modal.total": "Totale",
|
|
1973
|
+
"eligibility-modal.bullet-3": "La convalida del pagamento è <strong>istantanea</strong>!",
|
|
1974
|
+
"eligibility-modal.no-eligibility": "Ops, sembra che qualcosa non abbia funzionato.",
|
|
1975
|
+
"eligibility-modal.title-deferred-plan": "Pagate a rate o in seguito con carta di credito con Alma.",
|
|
1976
|
+
"eligibility-modal.title-normal": "Pagamenti rateali con carta di credito con Alma.",
|
|
1979
1977
|
"installments.today": "Oggi",
|
|
1978
|
+
"installments.total-amount": "Totale",
|
|
1979
|
+
"installments.total-fees": "Di cui costi (IVA inclusa)",
|
|
1980
1980
|
"payment-plan-strings.day-abbreviation": "G{numberOfDeferredDays}",
|
|
1981
1981
|
"payment-plan-strings.default-message": "Paga a rate con Alma",
|
|
1982
1982
|
"payment-plan-strings.deferred": "{totalAmount} da pagare il {dueDate}",
|
|
@@ -1988,18 +1988,18 @@ var messagesIT = {
|
|
|
1988
1988
|
};
|
|
1989
1989
|
|
|
1990
1990
|
var messagesNL = {
|
|
1991
|
+
"credit-features.credit-cost-display": "{creditCost} (gemiddeld rente percentage {taegPercentage})",
|
|
1992
|
+
"credit-features.information": "Een lening bindt je en moet worden terugbetaald. Ga na of u kunt terugbetalen voordat u zich vastlegt.",
|
|
1993
|
+
"credit-features.total-credit-cost": "Waarvan kosten van krediet",
|
|
1991
1994
|
"eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen.",
|
|
1992
1995
|
"eligibility-modal.bullet-2": "Vul de <strong>gevraagde informatie</strong> in.",
|
|
1993
1996
|
"eligibility-modal.bullet-3": "De validatie van uw betaling is <strong>onmiddellijk</strong> !",
|
|
1994
|
-
"eligibility-modal.cost": "Waarvan kosten",
|
|
1995
|
-
"eligibility-modal.credit-commitment": "Een lening bindt je en moet worden terugbetaald. Ga na of u kunt terugbetalen voordat u zich vastlegt.",
|
|
1996
|
-
"eligibility-modal.credit-cost": "Waarvan kosten van krediet",
|
|
1997
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (gemiddeld rente percentage {TAEG})",
|
|
1998
1997
|
"eligibility-modal.no-eligibility": "Oeps, het lijkt erop dat de simulatie niet werkte.",
|
|
1999
|
-
"eligibility-modal.title": "
|
|
2000
|
-
"eligibility-modal.title-
|
|
2001
|
-
"eligibility-modal.total": "Totaal",
|
|
1998
|
+
"eligibility-modal.title-deferred-plan": "Betaal in termijnen of later per creditcard met Alma.",
|
|
1999
|
+
"eligibility-modal.title-normal": "Betaal in termijnen met een creditcard bij Alma.",
|
|
2002
2000
|
"installments.today": "Tegenwoordig",
|
|
2001
|
+
"installments.total-amount": "Totaal",
|
|
2002
|
+
"installments.total-fees": "Waarvan kosten (incl. BTW)",
|
|
2003
2003
|
"payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
|
|
2004
2004
|
"payment-plan-strings.default-message": "Betaal in termijnen met Alma",
|
|
2005
2005
|
"payment-plan-strings.deferred": "{totalAmount} te betalen op {dueDate}",
|
|
@@ -2011,18 +2011,18 @@ var messagesNL = {
|
|
|
2011
2011
|
};
|
|
2012
2012
|
|
|
2013
2013
|
var messagesPT = {
|
|
2014
|
+
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
2015
|
+
"credit-features.information": "Um crédito é um compromisso e deve ser reembolsado. Verifique a sua capacidade de pagar antes de se comprometer.",
|
|
2016
|
+
"credit-features.total-credit-cost": "Incluindo custo do crédito",
|
|
2014
2017
|
"eligibility-modal.bullet-1": "Escolha a <strong>Alma</strong> no checkout.",
|
|
2015
2018
|
"eligibility-modal.bullet-2": "Preencha os <strong>dados</strong> solicitados.",
|
|
2016
2019
|
"eligibility-modal.bullet-3": "A validação do seu pagamento é <strong>instantaneamente</strong> !",
|
|
2017
|
-
"eligibility-modal.cost": "Incluindo encargos",
|
|
2018
|
-
"eligibility-modal.credit-commitment": "Um crédito é um compromisso e deve ser reembolsado. Verifique a sua capacidade de pagar antes de se comprometer.",
|
|
2019
|
-
"eligibility-modal.credit-cost": "Incluindo custo do crédito",
|
|
2020
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (TAEG {TAEG})",
|
|
2021
2020
|
"eligibility-modal.no-eligibility": "Ups, parece que a simulação não funcionou.",
|
|
2022
|
-
"eligibility-modal.title": "
|
|
2023
|
-
"eligibility-modal.title-
|
|
2024
|
-
"eligibility-modal.total": "Total",
|
|
2021
|
+
"eligibility-modal.title-deferred-plan": "Pagar em prestações ou mais tarde por cartão de crédito com Alma.",
|
|
2022
|
+
"eligibility-modal.title-normal": "Pagar em prestações por cartão de crédito com Alma.",
|
|
2025
2023
|
"installments.today": "Hoje",
|
|
2024
|
+
"installments.total-amount": "Total",
|
|
2025
|
+
"installments.total-fees": "Dos quais custos (incl. IVA)",
|
|
2026
2026
|
"payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
|
|
2027
2027
|
"payment-plan-strings.default-message": "Pague em prestações através da Alma",
|
|
2028
2028
|
"payment-plan-strings.deferred": "{totalAmount} a pagar em {dueDate}",
|
|
@@ -2208,38 +2208,7 @@ var useFetchEligibility = function useFetchEligibility(purchaseAmount, _ref, pla
|
|
|
2208
2208
|
return [filterELigibility(eligibility, plans), status];
|
|
2209
2209
|
};
|
|
2210
2210
|
|
|
2211
|
-
var s = {"
|
|
2212
|
-
|
|
2213
|
-
var LoadingIndicator = function LoadingIndicator(_ref) {
|
|
2214
|
-
var className = _ref.className;
|
|
2215
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
2216
|
-
className: cx(s.loadingIndicator, className),
|
|
2217
|
-
"data-testid": "loader"
|
|
2218
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
2219
|
-
className: s.letter
|
|
2220
|
-
}, "a"), /*#__PURE__*/React.createElement("div", {
|
|
2221
|
-
className: s.bar
|
|
2222
|
-
}));
|
|
2223
|
-
};
|
|
2224
|
-
|
|
2225
|
-
var s$1 = {"modal":"_D8SjB","content":"_ocM9x","contentScrollable":"_1GP2F","overlay":"_1yxCb","header":"_12LLh","closeButton":"_3YRro"};
|
|
2226
|
-
|
|
2227
|
-
function CrossIcon(_ref) {
|
|
2228
|
-
var _ref$color = _ref.color,
|
|
2229
|
-
color = _ref$color === void 0 ? '#fff' : _ref$color,
|
|
2230
|
-
className = _ref.className;
|
|
2231
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
2232
|
-
className: className,
|
|
2233
|
-
width: "16",
|
|
2234
|
-
height: "16",
|
|
2235
|
-
viewBox: "0 0 16 16",
|
|
2236
|
-
fill: "none",
|
|
2237
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2238
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
2239
|
-
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",
|
|
2240
|
-
fill: color
|
|
2241
|
-
}));
|
|
2242
|
-
}
|
|
2211
|
+
var s = {"container":"_GTTk7","total":"_34s2g","fees":"_W7qIA","creditCost":"_24KmE"};
|
|
2243
2212
|
|
|
2244
2213
|
/**
|
|
2245
2214
|
* Prefix classes to avoid name collisions.
|
|
@@ -2269,6 +2238,96 @@ var STATIC_CUSTOMISATION_CLASSES = {
|
|
|
2269
2238
|
summary: prefix + '-summary'
|
|
2270
2239
|
};
|
|
2271
2240
|
|
|
2241
|
+
var TotalBlock = function TotalBlock(_ref) {
|
|
2242
|
+
var currentPlan = _ref.currentPlan;
|
|
2243
|
+
var intl = useIntl();
|
|
2244
|
+
var total = priceFromCents(currentPlan.purchase_amount + currentPlan.customer_total_cost_amount);
|
|
2245
|
+
var creditCost = priceFromCents(currentPlan.customer_total_cost_amount);
|
|
2246
|
+
var TAEG = (currentPlan == null ? void 0 : currentPlan.annual_interest_rate) && currentPlan.annual_interest_rate / 10000 || 0;
|
|
2247
|
+
var customerFees = priceFromCents(currentPlan.customer_total_cost_amount);
|
|
2248
|
+
var isCredit = currentPlan.installments_count > 4;
|
|
2249
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
2250
|
+
className: cx(s.container, STATIC_CUSTOMISATION_CLASSES.summary),
|
|
2251
|
+
"data-testid": "modal-summary"
|
|
2252
|
+
}, /*#__PURE__*/React.createElement("h3", {
|
|
2253
|
+
className: cx(s.total, STATIC_CUSTOMISATION_CLASSES.scheduleTotal)
|
|
2254
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
2255
|
+
tagName: "div",
|
|
2256
|
+
id: "installments.total-amount",
|
|
2257
|
+
defaultMessage: "Total"
|
|
2258
|
+
}), /*#__PURE__*/React.createElement(FormattedNumber, {
|
|
2259
|
+
value: total || 0,
|
|
2260
|
+
style: "currency",
|
|
2261
|
+
currency: "EUR"
|
|
2262
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2263
|
+
className: cx(s.fees, STATIC_CUSTOMISATION_CLASSES.scheduleCredit)
|
|
2264
|
+
}, isCredit ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
2265
|
+
id: "credit-features.total-credit-cost",
|
|
2266
|
+
defaultMessage: "Dont co\xFBt du cr\xE9dit"
|
|
2267
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
2268
|
+
className: s.creditCost
|
|
2269
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
2270
|
+
id: "credit-features.credit-cost-display",
|
|
2271
|
+
defaultMessage: "{creditCost} (TAEG {taegPercentage})",
|
|
2272
|
+
values: {
|
|
2273
|
+
creditCost: intl.formatNumber(creditCost, {
|
|
2274
|
+
style: 'currency',
|
|
2275
|
+
currency: 'EUR'
|
|
2276
|
+
}),
|
|
2277
|
+
taegPercentage: intl.formatNumber(TAEG, {
|
|
2278
|
+
style: 'percent',
|
|
2279
|
+
maximumFractionDigits: 2
|
|
2280
|
+
})
|
|
2281
|
+
}
|
|
2282
|
+
}))) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
2283
|
+
id: "installments.total-fees",
|
|
2284
|
+
defaultMessage: "Dont frais (TTC)",
|
|
2285
|
+
tagName: "div"
|
|
2286
|
+
}), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(FormattedNumber, {
|
|
2287
|
+
value: customerFees,
|
|
2288
|
+
style: "currency",
|
|
2289
|
+
currency: "EUR"
|
|
2290
|
+
})))));
|
|
2291
|
+
};
|
|
2292
|
+
|
|
2293
|
+
var s$1 = {"loadingIndicator":"_31lrj","bounce":"_3NtDa"};
|
|
2294
|
+
|
|
2295
|
+
var LoadingIndicator = function LoadingIndicator(_ref) {
|
|
2296
|
+
var className = _ref.className;
|
|
2297
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
2298
|
+
className: cx(s$1.loadingIndicator, className),
|
|
2299
|
+
"data-testid": "loader"
|
|
2300
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
2301
|
+
width: "120",
|
|
2302
|
+
height: "134",
|
|
2303
|
+
viewBox: "0 0 120 134",
|
|
2304
|
+
fill: "none",
|
|
2305
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2306
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
2307
|
+
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",
|
|
2308
|
+
fill: "#FA5022"
|
|
2309
|
+
})));
|
|
2310
|
+
};
|
|
2311
|
+
|
|
2312
|
+
var s$2 = {"modal":"_D8SjB","content":"_ocM9x","contentScrollable":"_1GP2F","overlay":"_1yxCb","header":"_12LLh","closeButton":"_3YRro"};
|
|
2313
|
+
|
|
2314
|
+
function CrossIcon(_ref) {
|
|
2315
|
+
var _ref$color = _ref.color,
|
|
2316
|
+
color = _ref$color === void 0 ? '#fff' : _ref$color,
|
|
2317
|
+
className = _ref.className;
|
|
2318
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
2319
|
+
className: className,
|
|
2320
|
+
width: "16",
|
|
2321
|
+
height: "16",
|
|
2322
|
+
viewBox: "0 0 16 16",
|
|
2323
|
+
fill: "none",
|
|
2324
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2325
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
2326
|
+
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",
|
|
2327
|
+
fill: color
|
|
2328
|
+
}));
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2272
2331
|
var _excluded = ["children", "isOpen", "onClose", "className", "contentClassName", "scrollable"];
|
|
2273
2332
|
|
|
2274
2333
|
var ControlledModal = function ControlledModal(_ref) {
|
|
@@ -2286,8 +2345,8 @@ var ControlledModal = function ControlledModal(_ref) {
|
|
|
2286
2345
|
/* istanbul ignore next */
|
|
2287
2346
|
Modal.setAppElement('body');
|
|
2288
2347
|
return /*#__PURE__*/React.createElement(Modal, Object.assign({
|
|
2289
|
-
className: cx(s$
|
|
2290
|
-
overlayClassName: s$
|
|
2348
|
+
className: cx(s$2.modal, className),
|
|
2349
|
+
overlayClassName: s$2.overlay,
|
|
2291
2350
|
onAfterOpen: function onAfterOpen() {
|
|
2292
2351
|
noScroll.on();
|
|
2293
2352
|
},
|
|
@@ -2299,13 +2358,13 @@ var ControlledModal = function ControlledModal(_ref) {
|
|
|
2299
2358
|
shouldCloseOnOverlayClick: true,
|
|
2300
2359
|
shouldCloseOnEsc: true
|
|
2301
2360
|
}, props), /*#__PURE__*/React.createElement("div", {
|
|
2302
|
-
className: s$
|
|
2361
|
+
className: s$2.header
|
|
2303
2362
|
}, /*#__PURE__*/React.createElement("button", {
|
|
2304
2363
|
onClick: onClose,
|
|
2305
|
-
className: cx(s$
|
|
2364
|
+
className: cx(s$2.closeButton, STATIC_CUSTOMISATION_CLASSES.closeButton),
|
|
2306
2365
|
"data-testid": "modal-close-button"
|
|
2307
2366
|
}, /*#__PURE__*/React.createElement(CrossIcon, null))), /*#__PURE__*/React.createElement("div", {
|
|
2308
|
-
className: cx(s$
|
|
2367
|
+
className: cx(s$2.content, contentClassName, (_cx = {}, _cx[s$2.contentScrollable] = scrollable, _cx))
|
|
2309
2368
|
}, children));
|
|
2310
2369
|
};
|
|
2311
2370
|
|
|
@@ -2444,20 +2503,20 @@ var paymentPlanInfoText = function paymentPlanInfoText(payment) {
|
|
|
2444
2503
|
});
|
|
2445
2504
|
};
|
|
2446
2505
|
|
|
2447
|
-
var s$
|
|
2506
|
+
var s$3 = {"buttons":"_1l2Oa","active":"_3rue7"};
|
|
2448
2507
|
|
|
2449
2508
|
var EligibilityPlansButtons = function EligibilityPlansButtons(_ref) {
|
|
2450
2509
|
var eligibilityPlans = _ref.eligibilityPlans,
|
|
2451
2510
|
currentPlanIndex = _ref.currentPlanIndex,
|
|
2452
2511
|
setCurrentPlanIndex = _ref.setCurrentPlanIndex;
|
|
2453
2512
|
return /*#__PURE__*/React.createElement("div", {
|
|
2454
|
-
className: cx(s$
|
|
2513
|
+
className: cx(s$3.buttons, STATIC_CUSTOMISATION_CLASSES.eligibilityOptions)
|
|
2455
2514
|
}, eligibilityPlans.map(function (eligibilityPlan, index) {
|
|
2456
2515
|
var _cx;
|
|
2457
2516
|
|
|
2458
2517
|
return /*#__PURE__*/React.createElement("button", {
|
|
2459
2518
|
key: index,
|
|
2460
|
-
className: cx((_cx = {}, _cx[cx(s$
|
|
2519
|
+
className: cx((_cx = {}, _cx[cx(s$3.active, STATIC_CUSTOMISATION_CLASSES.activeOption)] = index === currentPlanIndex, _cx)),
|
|
2461
2520
|
onClick: function onClick() {
|
|
2462
2521
|
return setCurrentPlanIndex(index);
|
|
2463
2522
|
}
|
|
@@ -2465,83 +2524,78 @@ var EligibilityPlansButtons = function EligibilityPlansButtons(_ref) {
|
|
|
2465
2524
|
}));
|
|
2466
2525
|
};
|
|
2467
2526
|
|
|
2468
|
-
var s$
|
|
2527
|
+
var s$4 = {"installment":"_z2Uiv","date":"_2lJQy","dot":"_1Z9wr","isCurrent":"_2Nmkl","bold":"_ezY-3"};
|
|
2528
|
+
|
|
2529
|
+
var Installment = function Installment(_ref) {
|
|
2530
|
+
var _cx, _cx2;
|
|
2531
|
+
|
|
2532
|
+
var installment = _ref.installment,
|
|
2533
|
+
index = _ref.index;
|
|
2534
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
2535
|
+
className: s$4.installment,
|
|
2536
|
+
"data-testid": "installment-" + index
|
|
2537
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2538
|
+
className: s$4.date
|
|
2539
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2540
|
+
className: cx(s$4.dot, (_cx = {}, _cx[s$4.isCurrent] = index === 0, _cx))
|
|
2541
|
+
}), isToday(installment.due_date * 1000) ? /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
2542
|
+
id: "installments.today",
|
|
2543
|
+
defaultMessage: "Aujourd'hui",
|
|
2544
|
+
tagName: "strong"
|
|
2545
|
+
}) : /*#__PURE__*/React.createElement(FormattedDate, {
|
|
2546
|
+
value: installment.due_date * 1000,
|
|
2547
|
+
day: "numeric",
|
|
2548
|
+
month: "long",
|
|
2549
|
+
year: "numeric"
|
|
2550
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2551
|
+
className: cx((_cx2 = {}, _cx2[s$4.bold] = index === 0, _cx2))
|
|
2552
|
+
}, /*#__PURE__*/React.createElement(FormattedNumber, {
|
|
2553
|
+
value: installment.purchase_amount / 100,
|
|
2554
|
+
style: "currency",
|
|
2555
|
+
currency: "EUR"
|
|
2556
|
+
})));
|
|
2557
|
+
};
|
|
2558
|
+
|
|
2559
|
+
var s$5 = {"schedule":"_MPKjS","creditInfo":"_3a7er"};
|
|
2469
2560
|
|
|
2470
2561
|
var Schedule = function Schedule(_ref) {
|
|
2471
2562
|
var currentPlan = _ref.currentPlan;
|
|
2472
|
-
var total = priceFromCents(currentPlan.purchase_amount + currentPlan.customer_total_cost_amount);
|
|
2473
|
-
var creditCost = priceFromCents(currentPlan.customer_total_cost_amount);
|
|
2474
|
-
var TAEG = (currentPlan == null ? void 0 : currentPlan.annual_interest_rate) && currentPlan.annual_interest_rate / 10000;
|
|
2475
|
-
var customerFees = priceFromCents(currentPlan.customer_total_cost_amount);
|
|
2476
2563
|
var isCredit = currentPlan.installments_count > 4;
|
|
2477
|
-
var intl = useIntl();
|
|
2478
2564
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
2479
|
-
className: cx(s$
|
|
2565
|
+
className: cx(s$5.schedule, STATIC_CUSTOMISATION_CLASSES.scheduleDetails),
|
|
2480
2566
|
"data-testid": "modal-installments-element"
|
|
2481
2567
|
}, ((currentPlan == null ? void 0 : currentPlan.payment_plan) || []).map(function (installment, index) {
|
|
2482
|
-
return /*#__PURE__*/React.createElement(
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
value: installment.due_date * 1000,
|
|
2490
|
-
day: "numeric",
|
|
2491
|
-
month: "long",
|
|
2492
|
-
year: "numeric"
|
|
2493
|
-
})), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(FormattedNumber, {
|
|
2494
|
-
value: priceFromCents(installment.total_amount),
|
|
2495
|
-
style: "currency",
|
|
2496
|
-
currency: "EUR"
|
|
2497
|
-
})));
|
|
2498
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
2499
|
-
className: cx(s$3.summary, STATIC_CUSTOMISATION_CLASSES.summary),
|
|
2500
|
-
"data-testid": "modal-summary"
|
|
2501
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
2502
|
-
className: cx(s$3.scheduleLine, s$3.total, STATIC_CUSTOMISATION_CLASSES.scheduleTotal)
|
|
2503
|
-
}, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
2504
|
-
id: "eligibility-modal.total",
|
|
2505
|
-
defaultMessage: "Total"
|
|
2506
|
-
})), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(FormattedNumber, {
|
|
2507
|
-
value: total,
|
|
2508
|
-
style: "currency",
|
|
2509
|
-
currency: "EUR"
|
|
2510
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
2511
|
-
className: cx(s$3.scheduleLine, s$3.creditCost, STATIC_CUSTOMISATION_CLASSES.scheduleCredit)
|
|
2512
|
-
}, isCredit ? /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
2513
|
-
id: "eligibility-modal.credit-cost",
|
|
2514
|
-
defaultMessage: "Dont co\xFBt du cr\xE9dit"
|
|
2515
|
-
})) : /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
2516
|
-
id: "eligibility-modal.cost",
|
|
2517
|
-
defaultMessage: "Dont frais"
|
|
2518
|
-
})), /*#__PURE__*/React.createElement("span", {
|
|
2519
|
-
className: s$3.creditCostAmount
|
|
2520
|
-
}, isCredit ? /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
2521
|
-
id: "eligibility-modal.credit-cost-amount",
|
|
2522
|
-
defaultMessage: "{creditCost} (TAEG {TAEG})",
|
|
2523
|
-
values: {
|
|
2524
|
-
creditCost: intl.formatNumber(creditCost, {
|
|
2525
|
-
style: 'currency',
|
|
2526
|
-
currency: 'EUR'
|
|
2527
|
-
}),
|
|
2528
|
-
TAEG: intl.formatNumber(TAEG != null ? TAEG : 0, {
|
|
2529
|
-
style: 'percent',
|
|
2530
|
-
maximumFractionDigits: 2
|
|
2531
|
-
})
|
|
2532
|
-
}
|
|
2533
|
-
}) : /*#__PURE__*/React.createElement(FormattedNumber, {
|
|
2534
|
-
value: customerFees,
|
|
2535
|
-
style: "currency",
|
|
2536
|
-
currency: "EUR"
|
|
2537
|
-
}))), isCredit && /*#__PURE__*/React.createElement("p", {
|
|
2538
|
-
className: s$3.creditMessage
|
|
2568
|
+
return /*#__PURE__*/React.createElement(Installment, {
|
|
2569
|
+
key: installment.due_date * 1000,
|
|
2570
|
+
installment: installment,
|
|
2571
|
+
index: index
|
|
2572
|
+
});
|
|
2573
|
+
}), isCredit && /*#__PURE__*/React.createElement("div", {
|
|
2574
|
+
className: s$5.creditInfo
|
|
2539
2575
|
}, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
2540
|
-
id: "
|
|
2541
|
-
defaultMessage: "Un cr\xE9dit vous engage et doit \xEAtre rembours\xE9. V\xE9rifiez vos capacit\xE9s de remboursement
|
|
2576
|
+
id: "credit-features.information",
|
|
2577
|
+
defaultMessage: "Un cr\xE9dit vous engage et doit \xEAtre rembours\xE9. V\xE9rifiez vos capacit\xE9s de remboursement avant de vous engager."
|
|
2542
2578
|
}))));
|
|
2543
2579
|
};
|
|
2544
2580
|
|
|
2581
|
+
var _excluded$1 = ["color"];
|
|
2582
|
+
var AlmaLogo = function AlmaLogo(_ref) {
|
|
2583
|
+
var _ref$color = _ref.color,
|
|
2584
|
+
color = _ref$color === void 0 ? '#FA5022' : _ref$color,
|
|
2585
|
+
svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
2586
|
+
|
|
2587
|
+
return /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
2588
|
+
width: "50",
|
|
2589
|
+
height: "25",
|
|
2590
|
+
viewBox: "0 0 360 109",
|
|
2591
|
+
fill: "none",
|
|
2592
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2593
|
+
}, svgProps), /*#__PURE__*/React.createElement("path", {
|
|
2594
|
+
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",
|
|
2595
|
+
fill: color
|
|
2596
|
+
}));
|
|
2597
|
+
};
|
|
2598
|
+
|
|
2545
2599
|
var AmexCard = function AmexCard() {
|
|
2546
2600
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2547
2601
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2695,7 +2749,7 @@ var CbCard = function CbCard() {
|
|
|
2695
2749
|
}))));
|
|
2696
2750
|
};
|
|
2697
2751
|
|
|
2698
|
-
var s$
|
|
2752
|
+
var s$6 = {"cardContainer":"_1N3yO"};
|
|
2699
2753
|
|
|
2700
2754
|
var Cards = function Cards(_ref) {
|
|
2701
2755
|
var cards = _ref.cards;
|
|
@@ -2703,26 +2757,26 @@ var Cards = function Cards(_ref) {
|
|
|
2703
2757
|
var uniqueCards = Array.from(new Set(cards));
|
|
2704
2758
|
return /*#__PURE__*/React.createElement("div", {
|
|
2705
2759
|
"data-testid": "card-logos",
|
|
2706
|
-
className: cx(s$
|
|
2760
|
+
className: cx(s$6.cardContainer, STATIC_CUSTOMISATION_CLASSES.cardContainer)
|
|
2707
2761
|
}, uniqueCards.map(function (card) {
|
|
2708
2762
|
return /*#__PURE__*/React.createElement("div", {
|
|
2709
2763
|
key: card,
|
|
2710
|
-
className: s$
|
|
2764
|
+
className: s$6.card,
|
|
2711
2765
|
"data-testid": "card-logo-" + card
|
|
2712
2766
|
}, card === 'cb' && /*#__PURE__*/React.createElement(CbCard, null), card === 'amex' && /*#__PURE__*/React.createElement(AmexCard, null), card === 'mastercard' && /*#__PURE__*/React.createElement(MasterCard, null), card === 'visa' && /*#__PURE__*/React.createElement(VisaCard, null));
|
|
2713
2767
|
}));
|
|
2714
2768
|
};
|
|
2715
2769
|
|
|
2716
|
-
var s$
|
|
2770
|
+
var s$7 = {"list":"_180ro","listItem":"_1HqCO","bullet":"_3B8wx"};
|
|
2717
2771
|
|
|
2718
2772
|
var Info = function Info() {
|
|
2719
2773
|
return /*#__PURE__*/React.createElement("div", {
|
|
2720
|
-
className: cx(s$
|
|
2774
|
+
className: cx(s$7.list, STATIC_CUSTOMISATION_CLASSES.info),
|
|
2721
2775
|
"data-testid": "modal-info-element"
|
|
2722
2776
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2723
|
-
className: s$
|
|
2777
|
+
className: s$7.listItem
|
|
2724
2778
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2725
|
-
className: cx(s$
|
|
2779
|
+
className: cx(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
2726
2780
|
}, "1"), /*#__PURE__*/React.createElement("div", {
|
|
2727
2781
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
2728
2782
|
}, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
@@ -2734,9 +2788,9 @@ var Info = function Info() {
|
|
|
2734
2788
|
}
|
|
2735
2789
|
}
|
|
2736
2790
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
2737
|
-
className: s$
|
|
2791
|
+
className: s$7.listItem
|
|
2738
2792
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2739
|
-
className: cx(s$
|
|
2793
|
+
className: cx(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
2740
2794
|
}, "2"), /*#__PURE__*/React.createElement("div", {
|
|
2741
2795
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
2742
2796
|
}, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
@@ -2748,9 +2802,9 @@ var Info = function Info() {
|
|
|
2748
2802
|
}
|
|
2749
2803
|
}
|
|
2750
2804
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
2751
|
-
className: s$
|
|
2805
|
+
className: s$7.listItem
|
|
2752
2806
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2753
|
-
className: cx(s$
|
|
2807
|
+
className: cx(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
2754
2808
|
}, "3"), /*#__PURE__*/React.createElement("div", {
|
|
2755
2809
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
2756
2810
|
}, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
@@ -2764,120 +2818,64 @@ var Info = function Info() {
|
|
|
2764
2818
|
}))));
|
|
2765
2819
|
};
|
|
2766
2820
|
|
|
2767
|
-
var
|
|
2768
|
-
|
|
2769
|
-
(function (COLORS) {
|
|
2770
|
-
COLORS["ALMA"] = "#FF414D";
|
|
2771
|
-
COLORS["MONOCHROME"] = "#00425D";
|
|
2772
|
-
})(COLORS || (COLORS = {}));
|
|
2773
|
-
|
|
2774
|
-
function LogoIcon(_ref) {
|
|
2775
|
-
var className = _ref.className,
|
|
2776
|
-
_ref$color = _ref.color,
|
|
2777
|
-
color = _ref$color === void 0 ? COLORS.MONOCHROME : _ref$color,
|
|
2778
|
-
_ref$monochrome = _ref.monochrome,
|
|
2779
|
-
monochrome = _ref$monochrome === void 0 ? true : _ref$monochrome,
|
|
2780
|
-
underlineColor = _ref.underlineColor;
|
|
2781
|
-
var defaultUnderlineColor = monochrome ? COLORS.MONOCHROME : COLORS.ALMA;
|
|
2782
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
2783
|
-
className: className,
|
|
2784
|
-
width: "35",
|
|
2785
|
-
height: "23",
|
|
2786
|
-
viewBox: "0 0 40 23",
|
|
2787
|
-
fill: "none",
|
|
2788
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2789
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
2790
|
-
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",
|
|
2791
|
-
fill: color
|
|
2792
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
2793
|
-
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",
|
|
2794
|
-
fill: color
|
|
2795
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
2796
|
-
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",
|
|
2797
|
-
fill: color
|
|
2798
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
2799
|
-
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",
|
|
2800
|
-
fill: color
|
|
2801
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
2802
|
-
y: "20",
|
|
2803
|
-
width: "40",
|
|
2804
|
-
height: "3",
|
|
2805
|
-
fill: underlineColor || defaultUnderlineColor
|
|
2806
|
-
}));
|
|
2807
|
-
}
|
|
2808
|
-
|
|
2809
|
-
var s$6 = {"logo":"_3Oyv_"};
|
|
2810
|
-
|
|
2811
|
-
var Logo = function Logo() {
|
|
2812
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
2813
|
-
className: s$6.logo
|
|
2814
|
-
}, /*#__PURE__*/React.createElement(LogoIcon, {
|
|
2815
|
-
underlineColor: "#FF414D"
|
|
2816
|
-
}));
|
|
2817
|
-
};
|
|
2818
|
-
|
|
2819
|
-
var s$7 = {"title":"_3ERx-"};
|
|
2821
|
+
var s$8 = {"title":"_3ERx-"};
|
|
2820
2822
|
|
|
2821
2823
|
var Title = function Title(_ref) {
|
|
2822
2824
|
var isSomePlanDeferred = _ref.isSomePlanDeferred;
|
|
2823
2825
|
return /*#__PURE__*/React.createElement("div", {
|
|
2824
|
-
className: cx(s$
|
|
2826
|
+
className: cx(s$8.title, STATIC_CUSTOMISATION_CLASSES.title),
|
|
2825
2827
|
"data-testid": "modal-title-element"
|
|
2826
2828
|
}, isSomePlanDeferred ? /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
2827
|
-
id:
|
|
2828
|
-
defaultMessage: "
|
|
2829
|
-
values: {
|
|
2830
|
-
highlighted: function highlighted() {
|
|
2831
|
-
return /*#__PURE__*/React.createElement("span", null, [].slice.call(arguments));
|
|
2832
|
-
}
|
|
2833
|
-
}
|
|
2829
|
+
id: "eligibility-modal.title-deferred-plan",
|
|
2830
|
+
defaultMessage: "Payez en plusieurs fois ou plus tard par carte bancaire avec Alma."
|
|
2834
2831
|
}) : /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
2835
|
-
id:
|
|
2836
|
-
defaultMessage: "
|
|
2837
|
-
values: {
|
|
2838
|
-
highlighted: function highlighted() {
|
|
2839
|
-
return /*#__PURE__*/React.createElement("span", null, [].slice.call(arguments));
|
|
2840
|
-
}
|
|
2841
|
-
}
|
|
2832
|
+
id: "eligibility-modal.title-normal",
|
|
2833
|
+
defaultMessage: "Payez en plusieurs fois par carte bancaire avec Alma."
|
|
2842
2834
|
}));
|
|
2843
2835
|
};
|
|
2844
2836
|
|
|
2845
|
-
var s$
|
|
2837
|
+
var s$9 = {"container":"_21g6u","block":"_3zaP5","left":"_2SBRC","logo":"_xW3wt"};
|
|
2846
2838
|
|
|
2847
2839
|
var DesktopModal = function DesktopModal(_ref) {
|
|
2848
2840
|
var children = _ref.children,
|
|
2849
2841
|
isSomePlanDeferred = _ref.isSomePlanDeferred,
|
|
2850
2842
|
cards = _ref.cards;
|
|
2851
2843
|
return /*#__PURE__*/React.createElement("div", {
|
|
2852
|
-
className: cx(s$
|
|
2844
|
+
className: cx(s$9.container, STATIC_CUSTOMISATION_CLASSES.desktopModal),
|
|
2853
2845
|
"data-testid": "modal-container"
|
|
2854
|
-
}, /*#__PURE__*/React.createElement("
|
|
2855
|
-
className: cx([s$
|
|
2846
|
+
}, /*#__PURE__*/React.createElement("aside", {
|
|
2847
|
+
className: cx([s$9.block, s$9.left, STATIC_CUSTOMISATION_CLASSES.leftSide])
|
|
2856
2848
|
}, /*#__PURE__*/React.createElement(Title, {
|
|
2857
2849
|
isSomePlanDeferred: isSomePlanDeferred
|
|
2858
2850
|
}), /*#__PURE__*/React.createElement(Info, null), cards && /*#__PURE__*/React.createElement(Cards, {
|
|
2859
2851
|
cards: cards
|
|
2860
|
-
}), /*#__PURE__*/React.createElement(
|
|
2861
|
-
className:
|
|
2852
|
+
}), /*#__PURE__*/React.createElement(AlmaLogo, {
|
|
2853
|
+
className: s$9.logo,
|
|
2854
|
+
width: "75"
|
|
2855
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2856
|
+
className: cx(s$9.block, STATIC_CUSTOMISATION_CLASSES.rightSide)
|
|
2862
2857
|
}, children));
|
|
2863
2858
|
};
|
|
2864
2859
|
|
|
2865
|
-
var s$
|
|
2860
|
+
var s$a = {"noEligibility":"_17qNJ","loader":"_2oTJq","scheduleArea":"_2u9rj","verticalLine":"_VRdAU"};
|
|
2866
2861
|
|
|
2867
|
-
var s$
|
|
2862
|
+
var s$b = {"container":"_2G7Ch","logo":"_2779r"};
|
|
2868
2863
|
|
|
2869
2864
|
var MobileModal = function MobileModal(_ref) {
|
|
2870
2865
|
var children = _ref.children,
|
|
2871
2866
|
isSomePlanDeferred = _ref.isSomePlanDeferred,
|
|
2872
2867
|
cards = _ref.cards;
|
|
2873
2868
|
return /*#__PURE__*/React.createElement("div", {
|
|
2874
|
-
className: cx(s$
|
|
2869
|
+
className: cx(s$b.container, STATIC_CUSTOMISATION_CLASSES.mobileModal),
|
|
2875
2870
|
"data-testid": "modal-container"
|
|
2876
2871
|
}, /*#__PURE__*/React.createElement(Title, {
|
|
2877
2872
|
isSomePlanDeferred: isSomePlanDeferred
|
|
2878
2873
|
}), children, /*#__PURE__*/React.createElement(Info, null), cards && /*#__PURE__*/React.createElement(Cards, {
|
|
2879
2874
|
cards: cards
|
|
2880
|
-
}), /*#__PURE__*/React.createElement(
|
|
2875
|
+
}), /*#__PURE__*/React.createElement(AlmaLogo, {
|
|
2876
|
+
className: s$b.logo,
|
|
2877
|
+
width: "75"
|
|
2878
|
+
}));
|
|
2881
2879
|
};
|
|
2882
2880
|
|
|
2883
2881
|
var EligibilityModal = function EligibilityModal(_ref) {
|
|
@@ -2911,9 +2909,9 @@ var EligibilityModal = function EligibilityModal(_ref) {
|
|
|
2911
2909
|
isSomePlanDeferred: isSomePlanDeferred,
|
|
2912
2910
|
cards: cards
|
|
2913
2911
|
}, status === apiStatus.PENDING && /*#__PURE__*/React.createElement("div", {
|
|
2914
|
-
className: s$
|
|
2912
|
+
className: s$a.loader
|
|
2915
2913
|
}, /*#__PURE__*/React.createElement(LoadingIndicator, null)), status === apiStatus.SUCCESS && eligiblePlans.length === 0 && /*#__PURE__*/React.createElement("div", {
|
|
2916
|
-
className: s$
|
|
2914
|
+
className: s$a.noEligibility
|
|
2917
2915
|
}, /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
2918
2916
|
id: "eligibility-modal.no-eligibility",
|
|
2919
2917
|
defaultMessage: "Oups, il semblerait que la simulation n'ait pas fonctionn\xE9."
|
|
@@ -2921,9 +2919,15 @@ var EligibilityModal = function EligibilityModal(_ref) {
|
|
|
2921
2919
|
eligibilityPlans: eligiblePlans,
|
|
2922
2920
|
currentPlanIndex: currentPlanIndex,
|
|
2923
2921
|
setCurrentPlanIndex: setCurrentPlanIndex
|
|
2922
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
2923
|
+
className: s$a.scheduleArea
|
|
2924
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2925
|
+
className: s$a.verticalLine
|
|
2924
2926
|
}), /*#__PURE__*/React.createElement(Schedule, {
|
|
2925
2927
|
currentPlan: currentPlan
|
|
2926
|
-
})
|
|
2928
|
+
}), /*#__PURE__*/React.createElement(TotalBlock, {
|
|
2929
|
+
currentPlan: currentPlan
|
|
2930
|
+
})))));
|
|
2927
2931
|
};
|
|
2928
2932
|
|
|
2929
2933
|
/**
|
|
@@ -2950,17 +2954,17 @@ var ModalContainer = function ModalContainer(_ref) {
|
|
|
2950
2954
|
});
|
|
2951
2955
|
};
|
|
2952
2956
|
|
|
2953
|
-
var s$
|
|
2957
|
+
var s$c = {"loadingIndicator":"_2SwwZ","line1":"_2qODo","line2":"_2YO01"};
|
|
2954
2958
|
|
|
2955
2959
|
var Loader = function Loader(_ref) {
|
|
2956
2960
|
var className = _ref.className;
|
|
2957
2961
|
return /*#__PURE__*/React.createElement("div", {
|
|
2958
|
-
className: cx(s$
|
|
2962
|
+
className: cx(s$c.loadingIndicator, className),
|
|
2959
2963
|
"data-testid": "loader"
|
|
2960
2964
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2961
|
-
className: s$
|
|
2965
|
+
className: s$c.line1
|
|
2962
2966
|
}), /*#__PURE__*/React.createElement("div", {
|
|
2963
|
-
className: s$
|
|
2967
|
+
className: s$c.line2
|
|
2964
2968
|
}));
|
|
2965
2969
|
};
|
|
2966
2970
|
|
|
@@ -3055,7 +3059,7 @@ var STATIC_CUSTOMISATION_CLASSES$1 = {
|
|
|
3055
3059
|
activeOption: prefix$1 + '-active-option'
|
|
3056
3060
|
};
|
|
3057
3061
|
|
|
3058
|
-
var s$
|
|
3062
|
+
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"};
|
|
3059
3063
|
|
|
3060
3064
|
var VERY_LONG_TIME_IN_MS = 1000 * 3600 * 24 * 365;
|
|
3061
3065
|
var DEFAULT_TRANSITION_TIME = 5500;
|
|
@@ -3152,7 +3156,7 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
|
|
|
3152
3156
|
|
|
3153
3157
|
if (status === apiStatus.PENDING) {
|
|
3154
3158
|
return /*#__PURE__*/React.createElement("div", {
|
|
3155
|
-
className: cx(s$
|
|
3159
|
+
className: cx(s$d.widgetButton, s$d.pending)
|
|
3156
3160
|
}, /*#__PURE__*/React.createElement(Loader, null));
|
|
3157
3161
|
}
|
|
3158
3162
|
|
|
@@ -3170,15 +3174,15 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
|
|
|
3170
3174
|
|
|
3171
3175
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
3172
3176
|
onClick: handleOpenModal,
|
|
3173
|
-
className: cx(s$
|
|
3177
|
+
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),
|
|
3174
3178
|
"data-testid": "widget-button"
|
|
3175
3179
|
}, /*#__PURE__*/React.createElement("div", {
|
|
3176
|
-
className: cx(s$
|
|
3177
|
-
}, /*#__PURE__*/React.createElement(
|
|
3178
|
-
className: s$
|
|
3179
|
-
monochrome:
|
|
3180
|
+
className: cx(s$d.primaryContainer, STATIC_CUSTOMISATION_CLASSES$1.eligibilityLine)
|
|
3181
|
+
}, /*#__PURE__*/React.createElement(AlmaLogo, {
|
|
3182
|
+
className: s$d.logo,
|
|
3183
|
+
color: monochrome ? 'var(--off-black)' : undefined
|
|
3180
3184
|
}), /*#__PURE__*/React.createElement("div", {
|
|
3181
|
-
className: cx(s$
|
|
3185
|
+
className: cx(s$d.paymentPlans, STATIC_CUSTOMISATION_CLASSES$1.eligibilityOptions)
|
|
3182
3186
|
}, eligibilityPlans.map(function (eligibilityPlan, key) {
|
|
3183
3187
|
var _cx2;
|
|
3184
3188
|
|
|
@@ -3193,10 +3197,10 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
|
|
|
3193
3197
|
},
|
|
3194
3198
|
onMouseOut: onLeave,
|
|
3195
3199
|
onTouchEnd: onLeave,
|
|
3196
|
-
className: cx(s$
|
|
3200
|
+
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))
|
|
3197
3201
|
}, paymentPlanShorthandName(eligibilityPlan));
|
|
3198
3202
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
3199
|
-
className: cx(s$
|
|
3203
|
+
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)
|
|
3200
3204
|
}, eligibilityPlans.length !== 0 && paymentPlanInfoText(eligibilityPlans[current]))), isOpen && /*#__PURE__*/React.createElement(EligibilityModal, {
|
|
3201
3205
|
initialPlanIndex: getIndexWithinEligiblePlans(current),
|
|
3202
3206
|
onClose: closeModal,
|