@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.umd.js
CHANGED
|
@@ -6707,18 +6707,18 @@
|
|
|
6707
6707
|
var FormattedDisplayName = createFormattedComponent('formatDisplayName');
|
|
6708
6708
|
|
|
6709
6709
|
var messagesDE = {
|
|
6710
|
-
"
|
|
6710
|
+
"credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
|
|
6711
|
+
"credit-features.information": "Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.",
|
|
6712
|
+
"credit-features.total-credit-cost": "Davon Kreditkosten",
|
|
6713
|
+
"eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong> bei der Bezahlung.",
|
|
6711
6714
|
"eligibility-modal.bullet-2": "Füllen Sie die <strong>angeforderten</strong> Informationen aus.",
|
|
6712
|
-
"eligibility-modal.bullet-3": "
|
|
6713
|
-
"eligibility-modal.cost": "Davon Kosten",
|
|
6714
|
-
"eligibility-modal.credit-commitment": "Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.",
|
|
6715
|
-
"eligibility-modal.credit-cost": "Davon Kreditkosten",
|
|
6716
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (APR {TAEG})",
|
|
6715
|
+
"eligibility-modal.bullet-3": "Ihre Zahlung wird <strong>sofort</strong> bestätigt!",
|
|
6717
6716
|
"eligibility-modal.no-eligibility": "Ups, die Simulation hat anscheinend nicht funktioniert.",
|
|
6718
|
-
"eligibility-modal.title": "
|
|
6719
|
-
"eligibility-modal.title-
|
|
6720
|
-
"eligibility-modal.total": "Insgesamt",
|
|
6717
|
+
"eligibility-modal.title-deferred-plan": "Bezahlen Sie mit Alma in Raten oder später per Kreditkarte.",
|
|
6718
|
+
"eligibility-modal.title-normal": "Bezahlen Sie mit Alma in mehreren Raten per Kreditkarte.",
|
|
6721
6719
|
"installments.today": "Heute",
|
|
6720
|
+
"installments.total-amount": "Gesamtsumme",
|
|
6721
|
+
"installments.total-fees": "Davon Kosten (inkl. MwSt.)",
|
|
6722
6722
|
"payment-plan-strings.day-abbreviation": "T{numberOfDeferredDays}",
|
|
6723
6723
|
"payment-plan-strings.default-message": "Bezahlen Sie in Raten mit Alma",
|
|
6724
6724
|
"payment-plan-strings.deferred": "{totalAmount} zu zahlen am {dueDate}",
|
|
@@ -6730,18 +6730,18 @@
|
|
|
6730
6730
|
};
|
|
6731
6731
|
|
|
6732
6732
|
var messagesEN = {
|
|
6733
|
+
"credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
|
|
6734
|
+
"credit-features.information": "A loan commits you and must be repaid. Check your ability to repay before committing yourself.",
|
|
6735
|
+
"credit-features.total-credit-cost": "Of which cost of credit",
|
|
6733
6736
|
"eligibility-modal.bullet-1": "Choose <strong>Alma</strong> at checkout.",
|
|
6734
6737
|
"eligibility-modal.bullet-2": "Fill in the <strong>information</strong> requested.",
|
|
6735
6738
|
"eligibility-modal.bullet-3": "The validation of your payment is <strong>instantaneous</strong> !",
|
|
6736
|
-
"eligibility-modal.cost": "Of which costs",
|
|
6737
|
-
"eligibility-modal.credit-commitment": "A loan commits you and must be repaid. Check your ability to repay before committing yourself.",
|
|
6738
|
-
"eligibility-modal.credit-cost": "Of which cost of credit",
|
|
6739
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (APR {TAEG})",
|
|
6740
6739
|
"eligibility-modal.no-eligibility": "Oops, looks like the simulation didn't work.",
|
|
6741
|
-
"eligibility-modal.title": "
|
|
6742
|
-
"eligibility-modal.title-
|
|
6743
|
-
"eligibility-modal.total": "Total",
|
|
6740
|
+
"eligibility-modal.title-deferred-plan": "Pay in installments or later by credit card with Alma.",
|
|
6741
|
+
"eligibility-modal.title-normal": "Pay in installments by credit card with Alma.",
|
|
6744
6742
|
"installments.today": "Today",
|
|
6743
|
+
"installments.total-amount": "Total",
|
|
6744
|
+
"installments.total-fees": "Of which costs (incl. VAT)",
|
|
6745
6745
|
"payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
|
|
6746
6746
|
"payment-plan-strings.default-message": "Pay in installments with Alma",
|
|
6747
6747
|
"payment-plan-strings.deferred": "{totalAmount} to be paid on {dueDate}",
|
|
@@ -6753,18 +6753,18 @@
|
|
|
6753
6753
|
};
|
|
6754
6754
|
|
|
6755
6755
|
var messagesES = {
|
|
6756
|
+
"credit-features.credit-cost-display": "{creditCost} (TAE {taegPercentage})",
|
|
6757
|
+
"credit-features.information": "Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.",
|
|
6758
|
+
"credit-features.total-credit-cost": "Coste de crédito (incl. en el total)",
|
|
6756
6759
|
"eligibility-modal.bullet-1": "Elige <strong>Alma</strong> como método de pago.",
|
|
6757
6760
|
"eligibility-modal.bullet-2": "Completa la <strong>información</strong> solicitada.",
|
|
6758
6761
|
"eligibility-modal.bullet-3": "¡La validación de tu pago es <strong>instantánea</strong> !",
|
|
6759
|
-
"eligibility-modal.cost": "Gastos (incl. en el total)",
|
|
6760
|
-
"eligibility-modal.credit-commitment": "Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.",
|
|
6761
|
-
"eligibility-modal.credit-cost": "Coste de crédito (incl. en el total)",
|
|
6762
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (TAE {TAEG})",
|
|
6763
6762
|
"eligibility-modal.no-eligibility": "Uy, parece que la simulación no ha funcionado.",
|
|
6764
|
-
"eligibility-modal.title": "
|
|
6765
|
-
"eligibility-modal.title-
|
|
6766
|
-
"eligibility-modal.total": "Total",
|
|
6763
|
+
"eligibility-modal.title-deferred-plan": "Pague a plazos o posteriormente con tarjeta de crédito con Alma.",
|
|
6764
|
+
"eligibility-modal.title-normal": "Pagar a plazos con tarjeta de crédito con Alma.",
|
|
6767
6765
|
"installments.today": "Hoy",
|
|
6766
|
+
"installments.total-amount": "Total",
|
|
6767
|
+
"installments.total-fees": "De los cuales, costes (IVA incluido)",
|
|
6768
6768
|
"payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
|
|
6769
6769
|
"payment-plan-strings.default-message": "Pagar a plazos con Alma",
|
|
6770
6770
|
"payment-plan-strings.deferred": "{totalAmount} a pagar el {dueDate}",
|
|
@@ -6776,18 +6776,18 @@
|
|
|
6776
6776
|
};
|
|
6777
6777
|
|
|
6778
6778
|
var messagesFR = {
|
|
6779
|
+
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
6780
|
+
"credit-features.information": "Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.",
|
|
6781
|
+
"credit-features.total-credit-cost": "Dont coût du crédit",
|
|
6779
6782
|
"eligibility-modal.bullet-1": "Choisissez <strong>Alma</strong> au moment du paiement.",
|
|
6780
6783
|
"eligibility-modal.bullet-2": "Renseignez les <strong>informations</strong> demandées.",
|
|
6781
6784
|
"eligibility-modal.bullet-3": "La validation de votre paiement est <strong>instantanée</strong> !",
|
|
6782
|
-
"eligibility-modal.cost": "Dont frais",
|
|
6783
|
-
"eligibility-modal.credit-commitment": "Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.",
|
|
6784
|
-
"eligibility-modal.credit-cost": "Dont coût du crédit",
|
|
6785
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (TAEG {TAEG})",
|
|
6786
6785
|
"eligibility-modal.no-eligibility": "Oups, il semblerait que la simulation n'ait pas fonctionné.",
|
|
6787
|
-
"eligibility-modal.title": "
|
|
6788
|
-
"eligibility-modal.title-
|
|
6789
|
-
"eligibility-modal.total": "Total",
|
|
6786
|
+
"eligibility-modal.title-deferred-plan": "Payez en plusieurs fois ou plus tard par carte bancaire avec Alma.",
|
|
6787
|
+
"eligibility-modal.title-normal": "Payez en plusieurs fois par carte bancaire avec Alma.",
|
|
6790
6788
|
"installments.today": "Aujourd'hui",
|
|
6789
|
+
"installments.total-amount": "Total",
|
|
6790
|
+
"installments.total-fees": "Dont frais (TTC)",
|
|
6791
6791
|
"payment-plan-strings.day-abbreviation": "J{numberOfDeferredDays}",
|
|
6792
6792
|
"payment-plan-strings.default-message": "Payez en plusieurs fois avec Alma",
|
|
6793
6793
|
"payment-plan-strings.deferred": "{totalAmount} à payer le {dueDate}",
|
|
@@ -6799,18 +6799,18 @@
|
|
|
6799
6799
|
};
|
|
6800
6800
|
|
|
6801
6801
|
var messagesIT = {
|
|
6802
|
+
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
6803
|
+
"credit-features.information": "Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua capacità di rimborso prima di impegnarti.",
|
|
6804
|
+
"credit-features.total-credit-cost": "Di cui commissioni",
|
|
6802
6805
|
"eligibility-modal.bullet-1": "Scegli <strong>Alma</strong> alla cassa.",
|
|
6803
6806
|
"eligibility-modal.bullet-2": "Compila le informazioni <strong></strong> richieste.",
|
|
6804
|
-
"eligibility-modal.bullet-3": "La convalida del pagamento è <strong>istantanea</strong
|
|
6805
|
-
"eligibility-modal.
|
|
6806
|
-
"eligibility-modal.
|
|
6807
|
-
"eligibility-modal.
|
|
6808
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (TAEG {TAEG})",
|
|
6809
|
-
"eligibility-modal.no-eligibility": "Ops, sembra che la simulazione non abbia funzionato.",
|
|
6810
|
-
"eligibility-modal.title": "<highlighted>Paga a rate</highlighted> con Alma, senza interessi.",
|
|
6811
|
-
"eligibility-modal.title-deferred": "<highlighted>Paga a rate</highlighted> o posticipa il pagamento con Alma, senza interessi.",
|
|
6812
|
-
"eligibility-modal.total": "Totale",
|
|
6807
|
+
"eligibility-modal.bullet-3": "La convalida del pagamento è <strong>istantanea</strong>!",
|
|
6808
|
+
"eligibility-modal.no-eligibility": "Ops, sembra che qualcosa non abbia funzionato.",
|
|
6809
|
+
"eligibility-modal.title-deferred-plan": "Pagate a rate o in seguito con carta di credito con Alma.",
|
|
6810
|
+
"eligibility-modal.title-normal": "Pagamenti rateali con carta di credito con Alma.",
|
|
6813
6811
|
"installments.today": "Oggi",
|
|
6812
|
+
"installments.total-amount": "Totale",
|
|
6813
|
+
"installments.total-fees": "Di cui costi (IVA inclusa)",
|
|
6814
6814
|
"payment-plan-strings.day-abbreviation": "G{numberOfDeferredDays}",
|
|
6815
6815
|
"payment-plan-strings.default-message": "Paga a rate con Alma",
|
|
6816
6816
|
"payment-plan-strings.deferred": "{totalAmount} da pagare il {dueDate}",
|
|
@@ -6822,18 +6822,18 @@
|
|
|
6822
6822
|
};
|
|
6823
6823
|
|
|
6824
6824
|
var messagesNL = {
|
|
6825
|
+
"credit-features.credit-cost-display": "{creditCost} (gemiddeld rente percentage {taegPercentage})",
|
|
6826
|
+
"credit-features.information": "Een lening bindt je en moet worden terugbetaald. Ga na of u kunt terugbetalen voordat u zich vastlegt.",
|
|
6827
|
+
"credit-features.total-credit-cost": "Waarvan kosten van krediet",
|
|
6825
6828
|
"eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen.",
|
|
6826
6829
|
"eligibility-modal.bullet-2": "Vul de <strong>gevraagde informatie</strong> in.",
|
|
6827
6830
|
"eligibility-modal.bullet-3": "De validatie van uw betaling is <strong>onmiddellijk</strong> !",
|
|
6828
|
-
"eligibility-modal.cost": "Waarvan kosten",
|
|
6829
|
-
"eligibility-modal.credit-commitment": "Een lening bindt je en moet worden terugbetaald. Ga na of u kunt terugbetalen voordat u zich vastlegt.",
|
|
6830
|
-
"eligibility-modal.credit-cost": "Waarvan kosten van krediet",
|
|
6831
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (gemiddeld rente percentage {TAEG})",
|
|
6832
6831
|
"eligibility-modal.no-eligibility": "Oeps, het lijkt erop dat de simulatie niet werkte.",
|
|
6833
|
-
"eligibility-modal.title": "
|
|
6834
|
-
"eligibility-modal.title-
|
|
6835
|
-
"eligibility-modal.total": "Totaal",
|
|
6832
|
+
"eligibility-modal.title-deferred-plan": "Betaal in termijnen of later per creditcard met Alma.",
|
|
6833
|
+
"eligibility-modal.title-normal": "Betaal in termijnen met een creditcard bij Alma.",
|
|
6836
6834
|
"installments.today": "Tegenwoordig",
|
|
6835
|
+
"installments.total-amount": "Totaal",
|
|
6836
|
+
"installments.total-fees": "Waarvan kosten (incl. BTW)",
|
|
6837
6837
|
"payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
|
|
6838
6838
|
"payment-plan-strings.default-message": "Betaal in termijnen met Alma",
|
|
6839
6839
|
"payment-plan-strings.deferred": "{totalAmount} te betalen op {dueDate}",
|
|
@@ -6845,18 +6845,18 @@
|
|
|
6845
6845
|
};
|
|
6846
6846
|
|
|
6847
6847
|
var messagesPT = {
|
|
6848
|
+
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
6849
|
+
"credit-features.information": "Um crédito é um compromisso e deve ser reembolsado. Verifique a sua capacidade de pagar antes de se comprometer.",
|
|
6850
|
+
"credit-features.total-credit-cost": "Incluindo custo do crédito",
|
|
6848
6851
|
"eligibility-modal.bullet-1": "Escolha a <strong>Alma</strong> no checkout.",
|
|
6849
6852
|
"eligibility-modal.bullet-2": "Preencha os <strong>dados</strong> solicitados.",
|
|
6850
6853
|
"eligibility-modal.bullet-3": "A validação do seu pagamento é <strong>instantaneamente</strong> !",
|
|
6851
|
-
"eligibility-modal.cost": "Incluindo encargos",
|
|
6852
|
-
"eligibility-modal.credit-commitment": "Um crédito é um compromisso e deve ser reembolsado. Verifique a sua capacidade de pagar antes de se comprometer.",
|
|
6853
|
-
"eligibility-modal.credit-cost": "Incluindo custo do crédito",
|
|
6854
|
-
"eligibility-modal.credit-cost-amount": "{creditCost} (TAEG {TAEG})",
|
|
6855
6854
|
"eligibility-modal.no-eligibility": "Ups, parece que a simulação não funcionou.",
|
|
6856
|
-
"eligibility-modal.title": "
|
|
6857
|
-
"eligibility-modal.title-
|
|
6858
|
-
"eligibility-modal.total": "Total",
|
|
6855
|
+
"eligibility-modal.title-deferred-plan": "Pagar em prestações ou mais tarde por cartão de crédito com Alma.",
|
|
6856
|
+
"eligibility-modal.title-normal": "Pagar em prestações por cartão de crédito com Alma.",
|
|
6859
6857
|
"installments.today": "Hoje",
|
|
6858
|
+
"installments.total-amount": "Total",
|
|
6859
|
+
"installments.total-fees": "Dos quais custos (incl. IVA)",
|
|
6860
6860
|
"payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
|
|
6861
6861
|
"payment-plan-strings.default-message": "Pague em prestações através da Alma",
|
|
6862
6862
|
"payment-plan-strings.deferred": "{totalAmount} a pagar em {dueDate}",
|
|
@@ -15064,18 +15064,105 @@
|
|
|
15064
15064
|
})();
|
|
15065
15065
|
});
|
|
15066
15066
|
|
|
15067
|
-
var s = {"
|
|
15067
|
+
var s = {"container":"_GTTk7","total":"_34s2g","fees":"_W7qIA","creditCost":"_24KmE"};
|
|
15068
|
+
|
|
15069
|
+
/**
|
|
15070
|
+
* Prefix classes to avoid name collisions.
|
|
15071
|
+
*/
|
|
15072
|
+
var prefix = 'alma-eligibility-modal';
|
|
15073
|
+
/**
|
|
15074
|
+
* Class names for the **eligibility modale** widget.
|
|
15075
|
+
* Those classes are intended to be used by the **merchant developer**.
|
|
15076
|
+
*/
|
|
15077
|
+
|
|
15078
|
+
var STATIC_CUSTOMISATION_CLASSES = {
|
|
15079
|
+
desktopModal: prefix + '-desktop-modal',
|
|
15080
|
+
mobileModal: prefix + '-mobile-modal',
|
|
15081
|
+
leftSide: prefix + '-left-side',
|
|
15082
|
+
bullet: prefix + '-bullet',
|
|
15083
|
+
rightSide: prefix + '-right-side',
|
|
15084
|
+
title: prefix + '-title',
|
|
15085
|
+
info: prefix + '-info',
|
|
15086
|
+
infoMessage: prefix + '-info-message',
|
|
15087
|
+
eligibilityOptions: prefix + '-eligibility-options',
|
|
15088
|
+
activeOption: prefix + '-active-option',
|
|
15089
|
+
closeButton: prefix + '-close-button',
|
|
15090
|
+
scheduleDetails: prefix + '-schedule-details',
|
|
15091
|
+
scheduleTotal: prefix + '-schedule-total',
|
|
15092
|
+
scheduleCredit: prefix + '-schedule-credit',
|
|
15093
|
+
cardContainer: prefix + '-card-logos',
|
|
15094
|
+
summary: prefix + '-summary'
|
|
15095
|
+
};
|
|
15096
|
+
|
|
15097
|
+
var TotalBlock = function TotalBlock(_ref) {
|
|
15098
|
+
var currentPlan = _ref.currentPlan;
|
|
15099
|
+
var intl = useIntl();
|
|
15100
|
+
var total = priceFromCents(currentPlan.purchase_amount + currentPlan.customer_total_cost_amount);
|
|
15101
|
+
var creditCost = priceFromCents(currentPlan.customer_total_cost_amount);
|
|
15102
|
+
var TAEG = (currentPlan == null ? void 0 : currentPlan.annual_interest_rate) && currentPlan.annual_interest_rate / 10000 || 0;
|
|
15103
|
+
var customerFees = priceFromCents(currentPlan.customer_total_cost_amount);
|
|
15104
|
+
var isCredit = currentPlan.installments_count > 4;
|
|
15105
|
+
return /*#__PURE__*/react.createElement("div", {
|
|
15106
|
+
className: classnames(s.container, STATIC_CUSTOMISATION_CLASSES.summary),
|
|
15107
|
+
"data-testid": "modal-summary"
|
|
15108
|
+
}, /*#__PURE__*/react.createElement("h3", {
|
|
15109
|
+
className: classnames(s.total, STATIC_CUSTOMISATION_CLASSES.scheduleTotal)
|
|
15110
|
+
}, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
15111
|
+
tagName: "div",
|
|
15112
|
+
id: "installments.total-amount",
|
|
15113
|
+
defaultMessage: "Total"
|
|
15114
|
+
}), /*#__PURE__*/react.createElement(FormattedNumber, {
|
|
15115
|
+
value: total || 0,
|
|
15116
|
+
style: "currency",
|
|
15117
|
+
currency: "EUR"
|
|
15118
|
+
})), /*#__PURE__*/react.createElement("div", {
|
|
15119
|
+
className: classnames(s.fees, STATIC_CUSTOMISATION_CLASSES.scheduleCredit)
|
|
15120
|
+
}, isCredit ? /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
15121
|
+
id: "credit-features.total-credit-cost",
|
|
15122
|
+
defaultMessage: "Dont co\xFBt du cr\xE9dit"
|
|
15123
|
+
}), /*#__PURE__*/react.createElement("span", {
|
|
15124
|
+
className: s.creditCost
|
|
15125
|
+
}, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
15126
|
+
id: "credit-features.credit-cost-display",
|
|
15127
|
+
defaultMessage: "{creditCost} (TAEG {taegPercentage})",
|
|
15128
|
+
values: {
|
|
15129
|
+
creditCost: intl.formatNumber(creditCost, {
|
|
15130
|
+
style: 'currency',
|
|
15131
|
+
currency: 'EUR'
|
|
15132
|
+
}),
|
|
15133
|
+
taegPercentage: intl.formatNumber(TAEG, {
|
|
15134
|
+
style: 'percent',
|
|
15135
|
+
maximumFractionDigits: 2
|
|
15136
|
+
})
|
|
15137
|
+
}
|
|
15138
|
+
}))) : /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
15139
|
+
id: "installments.total-fees",
|
|
15140
|
+
defaultMessage: "Dont frais (TTC)",
|
|
15141
|
+
tagName: "div"
|
|
15142
|
+
}), /*#__PURE__*/react.createElement("div", null, /*#__PURE__*/react.createElement(FormattedNumber, {
|
|
15143
|
+
value: customerFees,
|
|
15144
|
+
style: "currency",
|
|
15145
|
+
currency: "EUR"
|
|
15146
|
+
})))));
|
|
15147
|
+
};
|
|
15148
|
+
|
|
15149
|
+
var s$1 = {"loadingIndicator":"_31lrj","bounce":"_3NtDa"};
|
|
15068
15150
|
|
|
15069
15151
|
var LoadingIndicator = function LoadingIndicator(_ref) {
|
|
15070
15152
|
var className = _ref.className;
|
|
15071
15153
|
return /*#__PURE__*/react.createElement("div", {
|
|
15072
|
-
className: classnames(s.loadingIndicator, className),
|
|
15154
|
+
className: classnames(s$1.loadingIndicator, className),
|
|
15073
15155
|
"data-testid": "loader"
|
|
15074
|
-
}, /*#__PURE__*/react.createElement("
|
|
15075
|
-
|
|
15076
|
-
|
|
15077
|
-
|
|
15078
|
-
|
|
15156
|
+
}, /*#__PURE__*/react.createElement("svg", {
|
|
15157
|
+
width: "120",
|
|
15158
|
+
height: "134",
|
|
15159
|
+
viewBox: "0 0 120 134",
|
|
15160
|
+
fill: "none",
|
|
15161
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15162
|
+
}, /*#__PURE__*/react.createElement("path", {
|
|
15163
|
+
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",
|
|
15164
|
+
fill: "#FA5022"
|
|
15165
|
+
})));
|
|
15079
15166
|
};
|
|
15080
15167
|
|
|
15081
15168
|
/** @license React v16.13.1
|
|
@@ -17186,7 +17273,7 @@
|
|
|
17186
17273
|
})();
|
|
17187
17274
|
});
|
|
17188
17275
|
|
|
17189
|
-
var s$
|
|
17276
|
+
var s$2 = {"modal":"_D8SjB","content":"_ocM9x","contentScrollable":"_1GP2F","overlay":"_1yxCb","header":"_12LLh","closeButton":"_3YRro"};
|
|
17190
17277
|
|
|
17191
17278
|
function CrossIcon(_ref) {
|
|
17192
17279
|
var _ref$color = _ref.color,
|
|
@@ -17205,34 +17292,6 @@
|
|
|
17205
17292
|
}));
|
|
17206
17293
|
}
|
|
17207
17294
|
|
|
17208
|
-
/**
|
|
17209
|
-
* Prefix classes to avoid name collisions.
|
|
17210
|
-
*/
|
|
17211
|
-
var prefix = 'alma-eligibility-modal';
|
|
17212
|
-
/**
|
|
17213
|
-
* Class names for the **eligibility modale** widget.
|
|
17214
|
-
* Those classes are intended to be used by the **merchant developer**.
|
|
17215
|
-
*/
|
|
17216
|
-
|
|
17217
|
-
var STATIC_CUSTOMISATION_CLASSES = {
|
|
17218
|
-
desktopModal: prefix + '-desktop-modal',
|
|
17219
|
-
mobileModal: prefix + '-mobile-modal',
|
|
17220
|
-
leftSide: prefix + '-left-side',
|
|
17221
|
-
bullet: prefix + '-bullet',
|
|
17222
|
-
rightSide: prefix + '-right-side',
|
|
17223
|
-
title: prefix + '-title',
|
|
17224
|
-
info: prefix + '-info',
|
|
17225
|
-
infoMessage: prefix + '-info-message',
|
|
17226
|
-
eligibilityOptions: prefix + '-eligibility-options',
|
|
17227
|
-
activeOption: prefix + '-active-option',
|
|
17228
|
-
closeButton: prefix + '-close-button',
|
|
17229
|
-
scheduleDetails: prefix + '-schedule-details',
|
|
17230
|
-
scheduleTotal: prefix + '-schedule-total',
|
|
17231
|
-
scheduleCredit: prefix + '-schedule-credit',
|
|
17232
|
-
cardContainer: prefix + '-card-logos',
|
|
17233
|
-
summary: prefix + '-summary'
|
|
17234
|
-
};
|
|
17235
|
-
|
|
17236
17295
|
var _excluded = ["children", "isOpen", "onClose", "className", "contentClassName", "scrollable"];
|
|
17237
17296
|
|
|
17238
17297
|
var ControlledModal = function ControlledModal(_ref) {
|
|
@@ -17250,8 +17309,8 @@
|
|
|
17250
17309
|
/* istanbul ignore next */
|
|
17251
17310
|
Modal.setAppElement('body');
|
|
17252
17311
|
return /*#__PURE__*/react.createElement(Modal, Object.assign({
|
|
17253
|
-
className: classnames(s$
|
|
17254
|
-
overlayClassName: s$
|
|
17312
|
+
className: classnames(s$2.modal, className),
|
|
17313
|
+
overlayClassName: s$2.overlay,
|
|
17255
17314
|
onAfterOpen: function onAfterOpen() {
|
|
17256
17315
|
noScroll.on();
|
|
17257
17316
|
},
|
|
@@ -17263,13 +17322,13 @@
|
|
|
17263
17322
|
shouldCloseOnOverlayClick: true,
|
|
17264
17323
|
shouldCloseOnEsc: true
|
|
17265
17324
|
}, props), /*#__PURE__*/react.createElement("div", {
|
|
17266
|
-
className: s$
|
|
17325
|
+
className: s$2.header
|
|
17267
17326
|
}, /*#__PURE__*/react.createElement("button", {
|
|
17268
17327
|
onClick: onClose,
|
|
17269
|
-
className: classnames(s$
|
|
17328
|
+
className: classnames(s$2.closeButton, STATIC_CUSTOMISATION_CLASSES.closeButton),
|
|
17270
17329
|
"data-testid": "modal-close-button"
|
|
17271
17330
|
}, /*#__PURE__*/react.createElement(CrossIcon, null))), /*#__PURE__*/react.createElement("div", {
|
|
17272
|
-
className: classnames(s$
|
|
17331
|
+
className: classnames(s$2.content, contentClassName, (_cx = {}, _cx[s$2.contentScrollable] = scrollable, _cx))
|
|
17273
17332
|
}, children));
|
|
17274
17333
|
};
|
|
17275
17334
|
|
|
@@ -19857,20 +19916,20 @@
|
|
|
19857
19916
|
});
|
|
19858
19917
|
};
|
|
19859
19918
|
|
|
19860
|
-
var s$
|
|
19919
|
+
var s$3 = {"buttons":"_1l2Oa","active":"_3rue7"};
|
|
19861
19920
|
|
|
19862
19921
|
var EligibilityPlansButtons = function EligibilityPlansButtons(_ref) {
|
|
19863
19922
|
var eligibilityPlans = _ref.eligibilityPlans,
|
|
19864
19923
|
currentPlanIndex = _ref.currentPlanIndex,
|
|
19865
19924
|
setCurrentPlanIndex = _ref.setCurrentPlanIndex;
|
|
19866
19925
|
return /*#__PURE__*/react.createElement("div", {
|
|
19867
|
-
className: classnames(s$
|
|
19926
|
+
className: classnames(s$3.buttons, STATIC_CUSTOMISATION_CLASSES.eligibilityOptions)
|
|
19868
19927
|
}, eligibilityPlans.map(function (eligibilityPlan, index) {
|
|
19869
19928
|
var _cx;
|
|
19870
19929
|
|
|
19871
19930
|
return /*#__PURE__*/react.createElement("button", {
|
|
19872
19931
|
key: index,
|
|
19873
|
-
className: classnames((_cx = {}, _cx[classnames(s$
|
|
19932
|
+
className: classnames((_cx = {}, _cx[classnames(s$3.active, STATIC_CUSTOMISATION_CLASSES.activeOption)] = index === currentPlanIndex, _cx)),
|
|
19874
19933
|
onClick: function onClick() {
|
|
19875
19934
|
return setCurrentPlanIndex(index);
|
|
19876
19935
|
}
|
|
@@ -19878,83 +19937,78 @@
|
|
|
19878
19937
|
}));
|
|
19879
19938
|
};
|
|
19880
19939
|
|
|
19881
|
-
var s$
|
|
19940
|
+
var s$4 = {"installment":"_z2Uiv","date":"_2lJQy","dot":"_1Z9wr","isCurrent":"_2Nmkl","bold":"_ezY-3"};
|
|
19941
|
+
|
|
19942
|
+
var Installment = function Installment(_ref) {
|
|
19943
|
+
var _cx, _cx2;
|
|
19944
|
+
|
|
19945
|
+
var installment = _ref.installment,
|
|
19946
|
+
index = _ref.index;
|
|
19947
|
+
return /*#__PURE__*/react.createElement("div", {
|
|
19948
|
+
className: s$4.installment,
|
|
19949
|
+
"data-testid": "installment-" + index
|
|
19950
|
+
}, /*#__PURE__*/react.createElement("div", {
|
|
19951
|
+
className: s$4.date
|
|
19952
|
+
}, /*#__PURE__*/react.createElement("div", {
|
|
19953
|
+
className: classnames(s$4.dot, (_cx = {}, _cx[s$4.isCurrent] = index === 0, _cx))
|
|
19954
|
+
}), isToday(installment.due_date * 1000) ? /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
19955
|
+
id: "installments.today",
|
|
19956
|
+
defaultMessage: "Aujourd'hui",
|
|
19957
|
+
tagName: "strong"
|
|
19958
|
+
}) : /*#__PURE__*/react.createElement(FormattedDate, {
|
|
19959
|
+
value: installment.due_date * 1000,
|
|
19960
|
+
day: "numeric",
|
|
19961
|
+
month: "long",
|
|
19962
|
+
year: "numeric"
|
|
19963
|
+
})), /*#__PURE__*/react.createElement("div", {
|
|
19964
|
+
className: classnames((_cx2 = {}, _cx2[s$4.bold] = index === 0, _cx2))
|
|
19965
|
+
}, /*#__PURE__*/react.createElement(FormattedNumber, {
|
|
19966
|
+
value: installment.purchase_amount / 100,
|
|
19967
|
+
style: "currency",
|
|
19968
|
+
currency: "EUR"
|
|
19969
|
+
})));
|
|
19970
|
+
};
|
|
19971
|
+
|
|
19972
|
+
var s$5 = {"schedule":"_MPKjS","creditInfo":"_3a7er"};
|
|
19882
19973
|
|
|
19883
19974
|
var Schedule = function Schedule(_ref) {
|
|
19884
19975
|
var currentPlan = _ref.currentPlan;
|
|
19885
|
-
var total = priceFromCents(currentPlan.purchase_amount + currentPlan.customer_total_cost_amount);
|
|
19886
|
-
var creditCost = priceFromCents(currentPlan.customer_total_cost_amount);
|
|
19887
|
-
var TAEG = (currentPlan == null ? void 0 : currentPlan.annual_interest_rate) && currentPlan.annual_interest_rate / 10000;
|
|
19888
|
-
var customerFees = priceFromCents(currentPlan.customer_total_cost_amount);
|
|
19889
19976
|
var isCredit = currentPlan.installments_count > 4;
|
|
19890
|
-
var intl = useIntl();
|
|
19891
19977
|
return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
|
|
19892
|
-
className: classnames(s$
|
|
19978
|
+
className: classnames(s$5.schedule, STATIC_CUSTOMISATION_CLASSES.scheduleDetails),
|
|
19893
19979
|
"data-testid": "modal-installments-element"
|
|
19894
19980
|
}, ((currentPlan == null ? void 0 : currentPlan.payment_plan) || []).map(function (installment, index) {
|
|
19895
|
-
return /*#__PURE__*/react.createElement(
|
|
19896
|
-
|
|
19897
|
-
|
|
19898
|
-
|
|
19899
|
-
|
|
19900
|
-
|
|
19901
|
-
|
|
19902
|
-
value: installment.due_date * 1000,
|
|
19903
|
-
day: "numeric",
|
|
19904
|
-
month: "long",
|
|
19905
|
-
year: "numeric"
|
|
19906
|
-
})), /*#__PURE__*/react.createElement("span", null, /*#__PURE__*/react.createElement(FormattedNumber, {
|
|
19907
|
-
value: priceFromCents(installment.total_amount),
|
|
19908
|
-
style: "currency",
|
|
19909
|
-
currency: "EUR"
|
|
19910
|
-
})));
|
|
19911
|
-
})), /*#__PURE__*/react.createElement("div", {
|
|
19912
|
-
className: classnames(s$3.summary, STATIC_CUSTOMISATION_CLASSES.summary),
|
|
19913
|
-
"data-testid": "modal-summary"
|
|
19914
|
-
}, /*#__PURE__*/react.createElement("div", {
|
|
19915
|
-
className: classnames(s$3.scheduleLine, s$3.total, STATIC_CUSTOMISATION_CLASSES.scheduleTotal)
|
|
19916
|
-
}, /*#__PURE__*/react.createElement("span", null, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
19917
|
-
id: "eligibility-modal.total",
|
|
19918
|
-
defaultMessage: "Total"
|
|
19919
|
-
})), /*#__PURE__*/react.createElement("span", null, /*#__PURE__*/react.createElement(FormattedNumber, {
|
|
19920
|
-
value: total,
|
|
19921
|
-
style: "currency",
|
|
19922
|
-
currency: "EUR"
|
|
19923
|
-
}))), /*#__PURE__*/react.createElement("div", {
|
|
19924
|
-
className: classnames(s$3.scheduleLine, s$3.creditCost, STATIC_CUSTOMISATION_CLASSES.scheduleCredit)
|
|
19925
|
-
}, isCredit ? /*#__PURE__*/react.createElement("span", null, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
19926
|
-
id: "eligibility-modal.credit-cost",
|
|
19927
|
-
defaultMessage: "Dont co\xFBt du cr\xE9dit"
|
|
19928
|
-
})) : /*#__PURE__*/react.createElement("span", null, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
19929
|
-
id: "eligibility-modal.cost",
|
|
19930
|
-
defaultMessage: "Dont frais"
|
|
19931
|
-
})), /*#__PURE__*/react.createElement("span", {
|
|
19932
|
-
className: s$3.creditCostAmount
|
|
19933
|
-
}, isCredit ? /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
19934
|
-
id: "eligibility-modal.credit-cost-amount",
|
|
19935
|
-
defaultMessage: "{creditCost} (TAEG {TAEG})",
|
|
19936
|
-
values: {
|
|
19937
|
-
creditCost: intl.formatNumber(creditCost, {
|
|
19938
|
-
style: 'currency',
|
|
19939
|
-
currency: 'EUR'
|
|
19940
|
-
}),
|
|
19941
|
-
TAEG: intl.formatNumber(TAEG != null ? TAEG : 0, {
|
|
19942
|
-
style: 'percent',
|
|
19943
|
-
maximumFractionDigits: 2
|
|
19944
|
-
})
|
|
19945
|
-
}
|
|
19946
|
-
}) : /*#__PURE__*/react.createElement(FormattedNumber, {
|
|
19947
|
-
value: customerFees,
|
|
19948
|
-
style: "currency",
|
|
19949
|
-
currency: "EUR"
|
|
19950
|
-
}))), isCredit && /*#__PURE__*/react.createElement("p", {
|
|
19951
|
-
className: s$3.creditMessage
|
|
19981
|
+
return /*#__PURE__*/react.createElement(Installment, {
|
|
19982
|
+
key: installment.due_date * 1000,
|
|
19983
|
+
installment: installment,
|
|
19984
|
+
index: index
|
|
19985
|
+
});
|
|
19986
|
+
}), isCredit && /*#__PURE__*/react.createElement("div", {
|
|
19987
|
+
className: s$5.creditInfo
|
|
19952
19988
|
}, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
19953
|
-
id: "
|
|
19954
|
-
defaultMessage: "Un cr\xE9dit vous engage et doit \xEAtre rembours\xE9. V\xE9rifiez vos capacit\xE9s de remboursement
|
|
19989
|
+
id: "credit-features.information",
|
|
19990
|
+
defaultMessage: "Un cr\xE9dit vous engage et doit \xEAtre rembours\xE9. V\xE9rifiez vos capacit\xE9s de remboursement avant de vous engager."
|
|
19955
19991
|
}))));
|
|
19956
19992
|
};
|
|
19957
19993
|
|
|
19994
|
+
var _excluded$1 = ["color"];
|
|
19995
|
+
var AlmaLogo = function AlmaLogo(_ref) {
|
|
19996
|
+
var _ref$color = _ref.color,
|
|
19997
|
+
color = _ref$color === void 0 ? '#FA5022' : _ref$color,
|
|
19998
|
+
svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
19999
|
+
|
|
20000
|
+
return /*#__PURE__*/react.createElement("svg", Object.assign({
|
|
20001
|
+
width: "50",
|
|
20002
|
+
height: "25",
|
|
20003
|
+
viewBox: "0 0 360 109",
|
|
20004
|
+
fill: "none",
|
|
20005
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
20006
|
+
}, svgProps), /*#__PURE__*/react.createElement("path", {
|
|
20007
|
+
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",
|
|
20008
|
+
fill: color
|
|
20009
|
+
}));
|
|
20010
|
+
};
|
|
20011
|
+
|
|
19958
20012
|
var AmexCard = function AmexCard() {
|
|
19959
20013
|
return /*#__PURE__*/react.createElement("svg", {
|
|
19960
20014
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -20108,7 +20162,7 @@
|
|
|
20108
20162
|
}))));
|
|
20109
20163
|
};
|
|
20110
20164
|
|
|
20111
|
-
var s$
|
|
20165
|
+
var s$6 = {"cardContainer":"_1N3yO"};
|
|
20112
20166
|
|
|
20113
20167
|
var Cards = function Cards(_ref) {
|
|
20114
20168
|
var cards = _ref.cards;
|
|
@@ -20116,26 +20170,26 @@
|
|
|
20116
20170
|
var uniqueCards = Array.from(new Set(cards));
|
|
20117
20171
|
return /*#__PURE__*/react.createElement("div", {
|
|
20118
20172
|
"data-testid": "card-logos",
|
|
20119
|
-
className: classnames(s$
|
|
20173
|
+
className: classnames(s$6.cardContainer, STATIC_CUSTOMISATION_CLASSES.cardContainer)
|
|
20120
20174
|
}, uniqueCards.map(function (card) {
|
|
20121
20175
|
return /*#__PURE__*/react.createElement("div", {
|
|
20122
20176
|
key: card,
|
|
20123
|
-
className: s$
|
|
20177
|
+
className: s$6.card,
|
|
20124
20178
|
"data-testid": "card-logo-" + card
|
|
20125
20179
|
}, 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));
|
|
20126
20180
|
}));
|
|
20127
20181
|
};
|
|
20128
20182
|
|
|
20129
|
-
var s$
|
|
20183
|
+
var s$7 = {"list":"_180ro","listItem":"_1HqCO","bullet":"_3B8wx"};
|
|
20130
20184
|
|
|
20131
20185
|
var Info = function Info() {
|
|
20132
20186
|
return /*#__PURE__*/react.createElement("div", {
|
|
20133
|
-
className: classnames(s$
|
|
20187
|
+
className: classnames(s$7.list, STATIC_CUSTOMISATION_CLASSES.info),
|
|
20134
20188
|
"data-testid": "modal-info-element"
|
|
20135
20189
|
}, /*#__PURE__*/react.createElement("div", {
|
|
20136
|
-
className: s$
|
|
20190
|
+
className: s$7.listItem
|
|
20137
20191
|
}, /*#__PURE__*/react.createElement("div", {
|
|
20138
|
-
className: classnames(s$
|
|
20192
|
+
className: classnames(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
20139
20193
|
}, "1"), /*#__PURE__*/react.createElement("div", {
|
|
20140
20194
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
20141
20195
|
}, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
@@ -20147,9 +20201,9 @@
|
|
|
20147
20201
|
}
|
|
20148
20202
|
}
|
|
20149
20203
|
}))), /*#__PURE__*/react.createElement("div", {
|
|
20150
|
-
className: s$
|
|
20204
|
+
className: s$7.listItem
|
|
20151
20205
|
}, /*#__PURE__*/react.createElement("div", {
|
|
20152
|
-
className: classnames(s$
|
|
20206
|
+
className: classnames(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
20153
20207
|
}, "2"), /*#__PURE__*/react.createElement("div", {
|
|
20154
20208
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
20155
20209
|
}, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
@@ -20161,9 +20215,9 @@
|
|
|
20161
20215
|
}
|
|
20162
20216
|
}
|
|
20163
20217
|
}))), /*#__PURE__*/react.createElement("div", {
|
|
20164
|
-
className: s$
|
|
20218
|
+
className: s$7.listItem
|
|
20165
20219
|
}, /*#__PURE__*/react.createElement("div", {
|
|
20166
|
-
className: classnames(s$
|
|
20220
|
+
className: classnames(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
20167
20221
|
}, "3"), /*#__PURE__*/react.createElement("div", {
|
|
20168
20222
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
20169
20223
|
}, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
@@ -20177,120 +20231,64 @@
|
|
|
20177
20231
|
}))));
|
|
20178
20232
|
};
|
|
20179
20233
|
|
|
20180
|
-
var
|
|
20181
|
-
|
|
20182
|
-
(function (COLORS) {
|
|
20183
|
-
COLORS["ALMA"] = "#FF414D";
|
|
20184
|
-
COLORS["MONOCHROME"] = "#00425D";
|
|
20185
|
-
})(COLORS || (COLORS = {}));
|
|
20186
|
-
|
|
20187
|
-
function LogoIcon(_ref) {
|
|
20188
|
-
var className = _ref.className,
|
|
20189
|
-
_ref$color = _ref.color,
|
|
20190
|
-
color = _ref$color === void 0 ? COLORS.MONOCHROME : _ref$color,
|
|
20191
|
-
_ref$monochrome = _ref.monochrome,
|
|
20192
|
-
monochrome = _ref$monochrome === void 0 ? true : _ref$monochrome,
|
|
20193
|
-
underlineColor = _ref.underlineColor;
|
|
20194
|
-
var defaultUnderlineColor = monochrome ? COLORS.MONOCHROME : COLORS.ALMA;
|
|
20195
|
-
return /*#__PURE__*/react.createElement("svg", {
|
|
20196
|
-
className: className,
|
|
20197
|
-
width: "35",
|
|
20198
|
-
height: "23",
|
|
20199
|
-
viewBox: "0 0 40 23",
|
|
20200
|
-
fill: "none",
|
|
20201
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
20202
|
-
}, /*#__PURE__*/react.createElement("path", {
|
|
20203
|
-
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",
|
|
20204
|
-
fill: color
|
|
20205
|
-
}), /*#__PURE__*/react.createElement("path", {
|
|
20206
|
-
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",
|
|
20207
|
-
fill: color
|
|
20208
|
-
}), /*#__PURE__*/react.createElement("path", {
|
|
20209
|
-
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",
|
|
20210
|
-
fill: color
|
|
20211
|
-
}), /*#__PURE__*/react.createElement("path", {
|
|
20212
|
-
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",
|
|
20213
|
-
fill: color
|
|
20214
|
-
}), /*#__PURE__*/react.createElement("rect", {
|
|
20215
|
-
y: "20",
|
|
20216
|
-
width: "40",
|
|
20217
|
-
height: "3",
|
|
20218
|
-
fill: underlineColor || defaultUnderlineColor
|
|
20219
|
-
}));
|
|
20220
|
-
}
|
|
20221
|
-
|
|
20222
|
-
var s$6 = {"logo":"_3Oyv_"};
|
|
20223
|
-
|
|
20224
|
-
var Logo = function Logo() {
|
|
20225
|
-
return /*#__PURE__*/react.createElement("div", {
|
|
20226
|
-
className: s$6.logo
|
|
20227
|
-
}, /*#__PURE__*/react.createElement(LogoIcon, {
|
|
20228
|
-
underlineColor: "#FF414D"
|
|
20229
|
-
}));
|
|
20230
|
-
};
|
|
20231
|
-
|
|
20232
|
-
var s$7 = {"title":"_3ERx-"};
|
|
20234
|
+
var s$8 = {"title":"_3ERx-"};
|
|
20233
20235
|
|
|
20234
20236
|
var Title = function Title(_ref) {
|
|
20235
20237
|
var isSomePlanDeferred = _ref.isSomePlanDeferred;
|
|
20236
20238
|
return /*#__PURE__*/react.createElement("div", {
|
|
20237
|
-
className: classnames(s$
|
|
20239
|
+
className: classnames(s$8.title, STATIC_CUSTOMISATION_CLASSES.title),
|
|
20238
20240
|
"data-testid": "modal-title-element"
|
|
20239
20241
|
}, isSomePlanDeferred ? /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
20240
|
-
id:
|
|
20241
|
-
defaultMessage: "
|
|
20242
|
-
values: {
|
|
20243
|
-
highlighted: function highlighted() {
|
|
20244
|
-
return /*#__PURE__*/react.createElement("span", null, [].slice.call(arguments));
|
|
20245
|
-
}
|
|
20246
|
-
}
|
|
20242
|
+
id: "eligibility-modal.title-deferred-plan",
|
|
20243
|
+
defaultMessage: "Payez en plusieurs fois ou plus tard par carte bancaire avec Alma."
|
|
20247
20244
|
}) : /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
20248
|
-
id:
|
|
20249
|
-
defaultMessage: "
|
|
20250
|
-
values: {
|
|
20251
|
-
highlighted: function highlighted() {
|
|
20252
|
-
return /*#__PURE__*/react.createElement("span", null, [].slice.call(arguments));
|
|
20253
|
-
}
|
|
20254
|
-
}
|
|
20245
|
+
id: "eligibility-modal.title-normal",
|
|
20246
|
+
defaultMessage: "Payez en plusieurs fois par carte bancaire avec Alma."
|
|
20255
20247
|
}));
|
|
20256
20248
|
};
|
|
20257
20249
|
|
|
20258
|
-
var s$
|
|
20250
|
+
var s$9 = {"container":"_21g6u","block":"_3zaP5","left":"_2SBRC","logo":"_xW3wt"};
|
|
20259
20251
|
|
|
20260
20252
|
var DesktopModal = function DesktopModal(_ref) {
|
|
20261
20253
|
var children = _ref.children,
|
|
20262
20254
|
isSomePlanDeferred = _ref.isSomePlanDeferred,
|
|
20263
20255
|
cards = _ref.cards;
|
|
20264
20256
|
return /*#__PURE__*/react.createElement("div", {
|
|
20265
|
-
className: classnames(s$
|
|
20257
|
+
className: classnames(s$9.container, STATIC_CUSTOMISATION_CLASSES.desktopModal),
|
|
20266
20258
|
"data-testid": "modal-container"
|
|
20267
|
-
}, /*#__PURE__*/react.createElement("
|
|
20268
|
-
className: classnames([s$
|
|
20259
|
+
}, /*#__PURE__*/react.createElement("aside", {
|
|
20260
|
+
className: classnames([s$9.block, s$9.left, STATIC_CUSTOMISATION_CLASSES.leftSide])
|
|
20269
20261
|
}, /*#__PURE__*/react.createElement(Title, {
|
|
20270
20262
|
isSomePlanDeferred: isSomePlanDeferred
|
|
20271
20263
|
}), /*#__PURE__*/react.createElement(Info, null), cards && /*#__PURE__*/react.createElement(Cards, {
|
|
20272
20264
|
cards: cards
|
|
20273
|
-
}), /*#__PURE__*/react.createElement(
|
|
20274
|
-
className:
|
|
20265
|
+
}), /*#__PURE__*/react.createElement(AlmaLogo, {
|
|
20266
|
+
className: s$9.logo,
|
|
20267
|
+
width: "75"
|
|
20268
|
+
})), /*#__PURE__*/react.createElement("div", {
|
|
20269
|
+
className: classnames(s$9.block, STATIC_CUSTOMISATION_CLASSES.rightSide)
|
|
20275
20270
|
}, children));
|
|
20276
20271
|
};
|
|
20277
20272
|
|
|
20278
|
-
var s$
|
|
20273
|
+
var s$a = {"noEligibility":"_17qNJ","loader":"_2oTJq","scheduleArea":"_2u9rj","verticalLine":"_VRdAU"};
|
|
20279
20274
|
|
|
20280
|
-
var s$
|
|
20275
|
+
var s$b = {"container":"_2G7Ch","logo":"_2779r"};
|
|
20281
20276
|
|
|
20282
20277
|
var MobileModal = function MobileModal(_ref) {
|
|
20283
20278
|
var children = _ref.children,
|
|
20284
20279
|
isSomePlanDeferred = _ref.isSomePlanDeferred,
|
|
20285
20280
|
cards = _ref.cards;
|
|
20286
20281
|
return /*#__PURE__*/react.createElement("div", {
|
|
20287
|
-
className: classnames(s$
|
|
20282
|
+
className: classnames(s$b.container, STATIC_CUSTOMISATION_CLASSES.mobileModal),
|
|
20288
20283
|
"data-testid": "modal-container"
|
|
20289
20284
|
}, /*#__PURE__*/react.createElement(Title, {
|
|
20290
20285
|
isSomePlanDeferred: isSomePlanDeferred
|
|
20291
20286
|
}), children, /*#__PURE__*/react.createElement(Info, null), cards && /*#__PURE__*/react.createElement(Cards, {
|
|
20292
20287
|
cards: cards
|
|
20293
|
-
}), /*#__PURE__*/react.createElement(
|
|
20288
|
+
}), /*#__PURE__*/react.createElement(AlmaLogo, {
|
|
20289
|
+
className: s$b.logo,
|
|
20290
|
+
width: "75"
|
|
20291
|
+
}));
|
|
20294
20292
|
};
|
|
20295
20293
|
|
|
20296
20294
|
var EligibilityModal = function EligibilityModal(_ref) {
|
|
@@ -20324,9 +20322,9 @@
|
|
|
20324
20322
|
isSomePlanDeferred: isSomePlanDeferred,
|
|
20325
20323
|
cards: cards
|
|
20326
20324
|
}, status === apiStatus.PENDING && /*#__PURE__*/react.createElement("div", {
|
|
20327
|
-
className: s$
|
|
20325
|
+
className: s$a.loader
|
|
20328
20326
|
}, /*#__PURE__*/react.createElement(LoadingIndicator, null)), status === apiStatus.SUCCESS && eligiblePlans.length === 0 && /*#__PURE__*/react.createElement("div", {
|
|
20329
|
-
className: s$
|
|
20327
|
+
className: s$a.noEligibility
|
|
20330
20328
|
}, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
20331
20329
|
id: "eligibility-modal.no-eligibility",
|
|
20332
20330
|
defaultMessage: "Oups, il semblerait que la simulation n'ait pas fonctionn\xE9."
|
|
@@ -20334,9 +20332,15 @@
|
|
|
20334
20332
|
eligibilityPlans: eligiblePlans,
|
|
20335
20333
|
currentPlanIndex: currentPlanIndex,
|
|
20336
20334
|
setCurrentPlanIndex: setCurrentPlanIndex
|
|
20335
|
+
}), /*#__PURE__*/react.createElement("div", {
|
|
20336
|
+
className: s$a.scheduleArea
|
|
20337
|
+
}, /*#__PURE__*/react.createElement("div", {
|
|
20338
|
+
className: s$a.verticalLine
|
|
20337
20339
|
}), /*#__PURE__*/react.createElement(Schedule, {
|
|
20338
20340
|
currentPlan: currentPlan
|
|
20339
|
-
})
|
|
20341
|
+
}), /*#__PURE__*/react.createElement(TotalBlock, {
|
|
20342
|
+
currentPlan: currentPlan
|
|
20343
|
+
})))));
|
|
20340
20344
|
};
|
|
20341
20345
|
|
|
20342
20346
|
/**
|
|
@@ -20363,17 +20367,17 @@
|
|
|
20363
20367
|
});
|
|
20364
20368
|
};
|
|
20365
20369
|
|
|
20366
|
-
var s$
|
|
20370
|
+
var s$c = {"loadingIndicator":"_2SwwZ","line1":"_2qODo","line2":"_2YO01"};
|
|
20367
20371
|
|
|
20368
20372
|
var Loader = function Loader(_ref) {
|
|
20369
20373
|
var className = _ref.className;
|
|
20370
20374
|
return /*#__PURE__*/react.createElement("div", {
|
|
20371
|
-
className: classnames(s$
|
|
20375
|
+
className: classnames(s$c.loadingIndicator, className),
|
|
20372
20376
|
"data-testid": "loader"
|
|
20373
20377
|
}, /*#__PURE__*/react.createElement("div", {
|
|
20374
|
-
className: s$
|
|
20378
|
+
className: s$c.line1
|
|
20375
20379
|
}), /*#__PURE__*/react.createElement("div", {
|
|
20376
|
-
className: s$
|
|
20380
|
+
className: s$c.line2
|
|
20377
20381
|
}));
|
|
20378
20382
|
};
|
|
20379
20383
|
|
|
@@ -20468,7 +20472,7 @@
|
|
|
20468
20472
|
activeOption: prefix$1 + '-active-option'
|
|
20469
20473
|
};
|
|
20470
20474
|
|
|
20471
|
-
var s$
|
|
20475
|
+
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"};
|
|
20472
20476
|
|
|
20473
20477
|
var VERY_LONG_TIME_IN_MS = 1000 * 3600 * 24 * 365;
|
|
20474
20478
|
var DEFAULT_TRANSITION_TIME = 5500;
|
|
@@ -20565,7 +20569,7 @@
|
|
|
20565
20569
|
|
|
20566
20570
|
if (status === apiStatus.PENDING) {
|
|
20567
20571
|
return /*#__PURE__*/react.createElement("div", {
|
|
20568
|
-
className: classnames(s$
|
|
20572
|
+
className: classnames(s$d.widgetButton, s$d.pending)
|
|
20569
20573
|
}, /*#__PURE__*/react.createElement(Loader, null));
|
|
20570
20574
|
}
|
|
20571
20575
|
|
|
@@ -20583,15 +20587,15 @@
|
|
|
20583
20587
|
|
|
20584
20588
|
return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
|
|
20585
20589
|
onClick: handleOpenModal,
|
|
20586
|
-
className: classnames(s$
|
|
20590
|
+
className: classnames(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),
|
|
20587
20591
|
"data-testid": "widget-button"
|
|
20588
20592
|
}, /*#__PURE__*/react.createElement("div", {
|
|
20589
|
-
className: classnames(s$
|
|
20590
|
-
}, /*#__PURE__*/react.createElement(
|
|
20591
|
-
className: s$
|
|
20592
|
-
monochrome:
|
|
20593
|
+
className: classnames(s$d.primaryContainer, STATIC_CUSTOMISATION_CLASSES$1.eligibilityLine)
|
|
20594
|
+
}, /*#__PURE__*/react.createElement(AlmaLogo, {
|
|
20595
|
+
className: s$d.logo,
|
|
20596
|
+
color: monochrome ? 'var(--off-black)' : undefined
|
|
20593
20597
|
}), /*#__PURE__*/react.createElement("div", {
|
|
20594
|
-
className: classnames(s$
|
|
20598
|
+
className: classnames(s$d.paymentPlans, STATIC_CUSTOMISATION_CLASSES$1.eligibilityOptions)
|
|
20595
20599
|
}, eligibilityPlans.map(function (eligibilityPlan, key) {
|
|
20596
20600
|
var _cx2;
|
|
20597
20601
|
|
|
@@ -20606,10 +20610,10 @@
|
|
|
20606
20610
|
},
|
|
20607
20611
|
onMouseOut: onLeave,
|
|
20608
20612
|
onTouchEnd: onLeave,
|
|
20609
|
-
className: classnames(s$
|
|
20613
|
+
className: classnames(s$d.plan, (_cx2 = {}, _cx2[classnames(s$d.active, STATIC_CUSTOMISATION_CLASSES$1.activeOption)] = isCurrent, _cx2[s$d.monochrome] = monochrome && isCurrent, _cx2[classnames(s$d.notEligible, STATIC_CUSTOMISATION_CLASSES$1.notEligibleOption)] = !eligibilityPlan.eligible, _cx2))
|
|
20610
20614
|
}, paymentPlanShorthandName(eligibilityPlan));
|
|
20611
20615
|
}))), /*#__PURE__*/react.createElement("div", {
|
|
20612
|
-
className: classnames(s$
|
|
20616
|
+
className: classnames(s$d.info, (_cx3 = {}, _cx3[classnames(s$d.notEligible, STATIC_CUSTOMISATION_CLASSES$1.notEligibleOption)] = eligibilityPlans[current] && !eligibilityPlans[current].eligible, _cx3), STATIC_CUSTOMISATION_CLASSES$1.paymentInfo)
|
|
20613
20617
|
}, eligibilityPlans.length !== 0 && paymentPlanInfoText(eligibilityPlans[current]))), isOpen && /*#__PURE__*/react.createElement(EligibilityModal, {
|
|
20614
20618
|
initialPlanIndex: getIndexWithinEligiblePlans(current),
|
|
20615
20619
|
onClose: closeModal,
|