@alma/widgets 3.3.12 → 3.4.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/dist/raw/widgets-wc.umd.js +131 -67
- package/dist/raw/widgets-wc.umd.js.map +0 -0
- package/dist/raw/widgets.css +26 -6
- package/dist/raw/widgets.js +131 -67
- package/dist/raw/widgets.js.map +1 -1
- package/dist/raw/widgets.m.js +131 -67
- package/dist/raw/widgets.m.js.map +1 -1
- package/dist/raw/widgets.modern.js +138 -74
- package/dist/raw/widgets.modern.js.map +1 -1
- package/dist/raw/widgets.umd.js +131 -67
- package/dist/raw/widgets.umd.js.map +1 -1
- package/dist/widgets-wc.umd.js +1 -1
- package/dist/widgets-wc.umd.js.map +0 -1
- package/dist/widgets.css +4 -3
- 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
|
@@ -5764,7 +5764,9 @@
|
|
|
5764
5764
|
|
|
5765
5765
|
var messagesDE = {
|
|
5766
5766
|
"credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
|
|
5767
|
-
"credit-features.information": "
|
|
5767
|
+
"credit-features.information": "Überprüfen Sie Ihre Rückzahlungsmöglichkeiten, bevor Sie eine Verpflichtung eingehen.",
|
|
5768
|
+
"credit-features.information.title": "Ein Kredit verpflichtet Sie und muss zurückgezahlt werden.",
|
|
5769
|
+
"credit-features.legal-text": "Kredit in Höhe von {totalWithoutFirstInstallment} zu einem festen Sollzinssatz von {taegPercentage} über eine Laufzeit von {installmeentsCountWithoutFirst} Monaten. Ermöglicht, zusätzlich zu einer Anzahlung von {firstInstallmentAmount}, die Finanzierung eines Kaufs in Höhe von {productPriceWithoutCreditCost}. Vorbehaltlich der Prüfung und Annahme durch Alma. Gesetzliche Widerrufsfrist von 14 Tagen. Simulation präsentiert von Alma, eingetragen im RCS Nanterre unter der Nummer 839 100 575, Zahlungsinstitut und Finanzierungsgesellschaft, zugelassen von der ACPR unter der Nummer 17408 (IPC-Nummer / Bankcode).",
|
|
5768
5770
|
"credit-features.total-credit-cost": "Davon Kreditkosten",
|
|
5769
5771
|
"eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong> beim Check-out. ",
|
|
5770
5772
|
"eligibility-modal.bullet-2": "Lassen Sie sich führen und bestätigen Sie Ihre Zahlung in <strong>2 Minuten.</strong>",
|
|
@@ -5779,6 +5781,7 @@
|
|
|
5779
5781
|
"installments.today": "Heute",
|
|
5780
5782
|
"installments.total-amount": "Gesamtsumme",
|
|
5781
5783
|
"installments.total-fees": "Davon Kosten",
|
|
5784
|
+
"payment-plan-strings.credit": "Klicken Sie, um mehr zu erfahren",
|
|
5782
5785
|
"payment-plan-strings.day-abbreviation": "T{deferredDays}",
|
|
5783
5786
|
"payment-plan-strings.default-message": "Bezahlen Sie zinsfrei in mehreren Raten mit Alma.",
|
|
5784
5787
|
"payment-plan-strings.deferred": "{totalAmount} zu zahlen am {dueDate}",
|
|
@@ -5794,7 +5797,9 @@
|
|
|
5794
5797
|
|
|
5795
5798
|
var messagesEN = {
|
|
5796
5799
|
"credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
|
|
5797
|
-
"credit-features.information": "
|
|
5800
|
+
"credit-features.information": "Check your repayment capacity before committing yourself.",
|
|
5801
|
+
"credit-features.information.title": "Credit is a commitment and must be repaid.",
|
|
5802
|
+
"credit-features.legal-text": "Loan of {totalWithoutFirstInstallment} at a fixed interest rate of {taegPercentage} over a period of {installmeentsCountWithoutFirst} months. In addition to a down payment of {firstInstallmentAmount}, this loan can be used to finance a purchase of {productPriceWithoutCreditCost}. Subject to review and acceptance by Alma. Legal cooling-off period of 14 days. Simulation presented by Alma, registered with the RCS Nanterre under number 839 100 575, payment and finance company approved by the ACPR under number 17408 (CIB number / Bank code).",
|
|
5798
5803
|
"credit-features.total-credit-cost": "Of which cost of credit",
|
|
5799
5804
|
"eligibility-modal.bullet-1": "Choose <strong>Alma</strong> at checkout.",
|
|
5800
5805
|
"eligibility-modal.bullet-2": "Let us guide you and validate your payment in <strong>2 minutes.</strong>",
|
|
@@ -5809,6 +5814,7 @@
|
|
|
5809
5814
|
"installments.today": "Today",
|
|
5810
5815
|
"installments.total-amount": "Total",
|
|
5811
5816
|
"installments.total-fees": "Of which costs (incl. VAT)",
|
|
5817
|
+
"payment-plan-strings.credit": "Click to find out more",
|
|
5812
5818
|
"payment-plan-strings.day-abbreviation": "D{deferredDays}",
|
|
5813
5819
|
"payment-plan-strings.default-message": "Pay in installments with Alma",
|
|
5814
5820
|
"payment-plan-strings.deferred": "{totalAmount} to pay the {dueDate}",
|
|
@@ -5824,7 +5830,9 @@
|
|
|
5824
5830
|
|
|
5825
5831
|
var messagesES = {
|
|
5826
5832
|
"credit-features.credit-cost-display": "{creditCost} (TAE {taegPercentage})",
|
|
5827
|
-
"credit-features.information": "
|
|
5833
|
+
"credit-features.information": "Compruebe tu capacidad de reembolso antes de comprometerte.",
|
|
5834
|
+
"credit-features.information.title": "El crédito y/o pago a plazos es un compromiso y debe devolverse.",
|
|
5835
|
+
"credit-features.legal-text": "{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Préstamo de a un tipo deudor fijo de a lo largo de un periodo de meses. {firstInstallmentAmount} {productPriceWithoutCreditCost}Además de un depósito de , esto le permitirá financiar una compra de . Sujeto a revisión y aceptación por parte de Alma. Plazo legal de retractación de 14 días. Simulación presentada por Alma, inscrita en el Registro Mercantil de Nanterre con el número 839 100 575, sociedad de pago y financiación autorizada por la ACPR con el número 17408 (número CIB / código bancario).",
|
|
5828
5836
|
"credit-features.total-credit-cost": "Coste de crédito (incl. en el total)",
|
|
5829
5837
|
"eligibility-modal.bullet-1": "Elige <strong>Alma</strong> como método de pago.",
|
|
5830
5838
|
"eligibility-modal.bullet-2": "Déjate guiar y válida tu pago en <strong>2 minutos.</strong>",
|
|
@@ -5839,6 +5847,7 @@
|
|
|
5839
5847
|
"installments.today": "Hoy",
|
|
5840
5848
|
"installments.total-amount": "Total",
|
|
5841
5849
|
"installments.total-fees": "De los cuales, costes (IVA incluido)",
|
|
5850
|
+
"payment-plan-strings.credit": "Haz click para más información",
|
|
5842
5851
|
"payment-plan-strings.day-abbreviation": "D{deferredDays}",
|
|
5843
5852
|
"payment-plan-strings.default-message": "Pagar a plazos con Alma",
|
|
5844
5853
|
"payment-plan-strings.deferred": "{totalAmount} a pagar el {dueDate}",
|
|
@@ -5854,7 +5863,9 @@
|
|
|
5854
5863
|
|
|
5855
5864
|
var messagesFR = {
|
|
5856
5865
|
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
5857
|
-
"credit-features.information": "
|
|
5866
|
+
"credit-features.information": "Vérifiez vos capacités de remboursement avant de vous engager.",
|
|
5867
|
+
"credit-features.information.title": "Un crédit vous engage et doit être remboursé.",
|
|
5868
|
+
"credit-features.legal-text": "Crédit d'un montant de {totalWithoutFirstInstallment} au taux débiteur fixe de {taegPercentage} sur une durée de {installmeentsCountWithoutFirst} mois. Permettant, en complément d'un acompte de {firstInstallmentAmount}, de financer un achat d'un montant de {productPriceWithoutCreditCost}. Sous réserve d'étude et d'acceptation par Alma. Délai légal de rétractation de 14 jours. Simulation présentée par Alma, immatriculée au RCS Nanterre sous le numéro 839 100 575, établissement de paiement et société de financement agréée par l’ACPR sous le n° 17408 (numéro CIB / Code banque).",
|
|
5858
5869
|
"credit-features.total-credit-cost": "Dont coût du crédit",
|
|
5859
5870
|
"eligibility-modal.bullet-1": "Choisissez <strong>Alma</strong> au moment du paiement.",
|
|
5860
5871
|
"eligibility-modal.bullet-2": "Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",
|
|
@@ -5869,6 +5880,7 @@
|
|
|
5869
5880
|
"installments.today": "Aujourd'hui",
|
|
5870
5881
|
"installments.total-amount": "Total",
|
|
5871
5882
|
"installments.total-fees": "Dont frais (TTC)",
|
|
5883
|
+
"payment-plan-strings.credit": "Cliquez pour en savoir plus",
|
|
5872
5884
|
"payment-plan-strings.day-abbreviation": "J{deferredDays}",
|
|
5873
5885
|
"payment-plan-strings.default-message": "Payez en plusieurs fois avec Alma",
|
|
5874
5886
|
"payment-plan-strings.deferred": "{totalAmount} à payer le {dueDate}",
|
|
@@ -5884,7 +5896,9 @@
|
|
|
5884
5896
|
|
|
5885
5897
|
var messagesIT = {
|
|
5886
5898
|
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
5887
|
-
"credit-features.information": "
|
|
5899
|
+
"credit-features.information": "Verificate la vostra capacità di rimborso prima di prendere un impegno.",
|
|
5900
|
+
"credit-features.information.title": "Il credito è un impegno e deve essere ripagato.",
|
|
5901
|
+
"credit-features.legal-text": "{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Prestito a tasso fisso per un periodo di mesi. {firstInstallmentAmount} {productPriceWithoutCreditCost}Oltre a un deposito di , questo vi permetterà di finanziare un acquisto di . Soggetto a revisione e accettazione da parte di Alma. Periodo di recesso legale di 14 giorni. Simulazione presentata da Alma, iscritta al Registro del Commercio e delle Imprese di Nanterre con il numero 839 100 575, società di pagamento e di finanziamento approvata dall'ACPR con il numero 17408 (numero CIB / codice bancario).",
|
|
5888
5902
|
"credit-features.total-credit-cost": "Di cui commissioni",
|
|
5889
5903
|
"eligibility-modal.bullet-1": "Seleziona <strong>Alma</strong> come metodo di pagamento.",
|
|
5890
5904
|
"eligibility-modal.bullet-2": "Segui le istruzioni e completa l'acquisto <strong>in meno di 2 minuti.</strong>",
|
|
@@ -5899,6 +5913,7 @@
|
|
|
5899
5913
|
"installments.today": "Oggi",
|
|
5900
5914
|
"installments.total-amount": "Totale",
|
|
5901
5915
|
"installments.total-fees": "Di cui commissioni",
|
|
5916
|
+
"payment-plan-strings.credit": "Clicca qui per saperne di più",
|
|
5902
5917
|
"payment-plan-strings.day-abbreviation": "G{deferredDays}",
|
|
5903
5918
|
"payment-plan-strings.default-message": "Paga a rate con Alma, senza registrazione.",
|
|
5904
5919
|
"payment-plan-strings.deferred": "{totalAmount} da pagare il {dueDate}",
|
|
@@ -5914,7 +5929,9 @@
|
|
|
5914
5929
|
|
|
5915
5930
|
var messagesNL = {
|
|
5916
5931
|
"credit-features.credit-cost-display": "{creditCost} (gemiddeld rente percentage {taegPercentage})",
|
|
5917
|
-
"credit-features.information": "
|
|
5932
|
+
"credit-features.information": "Controleer uw terugbetalingscapaciteit voordat u een toezegging doet.",
|
|
5933
|
+
"credit-features.information.title": "Krediet is een verplichting en moet worden terugbetaald.",
|
|
5934
|
+
"credit-features.legal-text": "{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Lening van tegen een vaste rentevoet van over een periode van maanden. {firstInstallmentAmount} {productPriceWithoutCreditCost}Naast een aanbetaling van , kun je hiermee een aankoop financieren van . Onder voorbehoud van beoordeling en aanvaarding door Alma. Wettelijke herroepingstermijn van 14 dagen. Simulatie aangeboden door Alma, ingeschreven in het handels- en bedrijvenregister van Nanterre onder nummer 839 100 575, betalings- en financieringsmaatschappij erkend door de ACPR onder nummer 17408 (CIB-nummer / bankcode).",
|
|
5918
5935
|
"credit-features.total-credit-cost": "Waarvan kredietkosten",
|
|
5919
5936
|
"eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen om de eerste termijnbetaling te voldoen. Dit kan gemakkelijk via jouw favoriete betaalmethode.",
|
|
5920
5937
|
"eligibility-modal.bullet-2": "Betaal gemakkelijk <strong>binnen 1 minuut </strong>. Je hebt hier geen account voor nodig.",
|
|
@@ -5929,6 +5946,7 @@
|
|
|
5929
5946
|
"installments.today": "Vandaag",
|
|
5930
5947
|
"installments.total-amount": "Totaal",
|
|
5931
5948
|
"installments.total-fees": "Waarvan kosten (incl. BTW)",
|
|
5949
|
+
"payment-plan-strings.credit": "Klik hier voor meer informatie",
|
|
5932
5950
|
"payment-plan-strings.day-abbreviation": "D{deferredDays}",
|
|
5933
5951
|
"payment-plan-strings.default-message": "Betaal in termijnen bij Alma - helemaal rentevrij",
|
|
5934
5952
|
"payment-plan-strings.deferred": "{totalAmount} te betalen op {dueDate}",
|
|
@@ -5944,7 +5962,9 @@
|
|
|
5944
5962
|
|
|
5945
5963
|
var messagesPT = {
|
|
5946
5964
|
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
5947
|
-
"credit-features.information": "
|
|
5965
|
+
"credit-features.information": "Verifique a sua capacidade de reembolso antes de assumir um compromisso.",
|
|
5966
|
+
"credit-features.information.title": "O crédito é um compromisso e deve ser reembolsado.",
|
|
5967
|
+
"credit-features.legal-text": "{totalWithoutFirstInstallment} {taegPercentage} {installmeentsCountWithoutFirst} Empréstimo de a uma taxa de juro fixa de durante um período de meses. {firstInstallmentAmount} {productPriceWithoutCreditCost}Para além de um depósito de , isto permitir-lhe-á financiar uma compra de . Sujeito a análise e aceitação pela Alma. Prazo legal de retratação de 14 dias. Simulação apresentada pela Alma, inscrita na Conservatória do Registo Comercial e das Sociedades de Nanterre sob o número 839 100 575, sociedade de pagamento e de financiamento aprovada pela ACPR sob o número 17408 (número CIB / código bancário).",
|
|
5948
5968
|
"credit-features.total-credit-cost": "Incluindo comissões de crédito",
|
|
5949
5969
|
"eligibility-modal.bullet-1": "Seleccionar <strong>Alma - Pay Now</strong> no final da compra.",
|
|
5950
5970
|
"eligibility-modal.bullet-2": "Siga as instruções e valide o seu pagamento em <strong>2 minutos.</strong>",
|
|
@@ -5959,6 +5979,7 @@
|
|
|
5959
5979
|
"installments.today": "Hoje",
|
|
5960
5980
|
"installments.total-amount": "Total",
|
|
5961
5981
|
"installments.total-fees": "Das quais comissões (incl. IVA)",
|
|
5982
|
+
"payment-plan-strings.credit": "Clique aqui para saber mais",
|
|
5962
5983
|
"payment-plan-strings.day-abbreviation": "D{deferredDays}",
|
|
5963
5984
|
"payment-plan-strings.default-message": "Pagamento em prestações com a Alma",
|
|
5964
5985
|
"payment-plan-strings.deferred": "{totalAmount} a pagar em {dueDate}",
|
|
@@ -12864,7 +12885,7 @@
|
|
|
12864
12885
|
shipping_address: shipping_address
|
|
12865
12886
|
}, {
|
|
12866
12887
|
Authorization: "Alma-Merchant-Auth " + merchantId,
|
|
12867
|
-
'X-Alma-Agent': "Alma Widget/" + "v3.
|
|
12888
|
+
'X-Alma-Agent': "Alma Widget/" + "v3.4.0"
|
|
12868
12889
|
}).then(function (res) {
|
|
12869
12890
|
setCache(key, res);
|
|
12870
12891
|
setEligibility(res);
|
|
@@ -12938,7 +12959,7 @@
|
|
|
12938
12959
|
})();
|
|
12939
12960
|
});
|
|
12940
12961
|
|
|
12941
|
-
var s = {"container":"_GTTk7","total":"_34s2g","fees":"_W7qIA","creditCost":"_24KmE"};
|
|
12962
|
+
var s = {"container":"_GTTk7","total":"_34s2g","creditInfo":"_15KNd","creditInfoTitle":"_3T0mA","fees":"_W7qIA","creditCost":"_24KmE","creditInfoLegalText":"_2e3lw"};
|
|
12942
12963
|
|
|
12943
12964
|
/**
|
|
12944
12965
|
* Prefix classes to avoid name collisions.
|
|
@@ -12968,6 +12989,7 @@
|
|
|
12968
12989
|
};
|
|
12969
12990
|
|
|
12970
12991
|
var TotalBlock = function TotalBlock(_ref) {
|
|
12992
|
+
var _currentPlan$payment_, _currentPlan$payment_2, _currentPlan$payment_3, _currentPlan$payment_4;
|
|
12971
12993
|
var currentPlan = _ref.currentPlan;
|
|
12972
12994
|
var intl = useIntl();
|
|
12973
12995
|
var total = priceFromCents(currentPlan.purchase_amount + currentPlan.customer_total_cost_amount);
|
|
@@ -12975,7 +12997,20 @@
|
|
|
12975
12997
|
var TAEG = (currentPlan == null ? void 0 : currentPlan.annual_interest_rate) && currentPlan.annual_interest_rate / 10000 || 0;
|
|
12976
12998
|
var customerFees = priceFromCents(currentPlan.customer_total_cost_amount);
|
|
12977
12999
|
var isCredit = currentPlan.installments_count > 4;
|
|
12978
|
-
|
|
13000
|
+
var firstInstallmentAmount = priceFromCents((_currentPlan$payment_ = (_currentPlan$payment_2 = currentPlan.payment_plan) == null || (_currentPlan$payment_2 = _currentPlan$payment_2[0]) == null ? void 0 : _currentPlan$payment_2.total_amount) != null ? _currentPlan$payment_ : 0);
|
|
13001
|
+
// For totalWithoutFirstInstallment, we need to get the total price and add the credit cost, before removing the first installment, to get the rest of the amount to pay.
|
|
13002
|
+
var totalWithoutFirstInstallment = priceFromCents(currentPlan.purchase_amount + currentPlan.customer_total_cost_amount - ((_currentPlan$payment_3 = (_currentPlan$payment_4 = currentPlan.payment_plan) == null || (_currentPlan$payment_4 = _currentPlan$payment_4[0]) == null ? void 0 : _currentPlan$payment_4.total_amount) != null ? _currentPlan$payment_3 : 0));
|
|
13003
|
+
return /*#__PURE__*/react.createElement(react.Fragment, null, isCredit && ( /*#__PURE__*/react.createElement("div", {
|
|
13004
|
+
className: s.creditInfo
|
|
13005
|
+
}, /*#__PURE__*/react.createElement("span", {
|
|
13006
|
+
className: s.creditInfoTitle
|
|
13007
|
+
}, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
13008
|
+
id: "credit-features.information.title",
|
|
13009
|
+
defaultMessage: "Un cr\xE9dit vous engage et doit \xEAtre rembours\xE9."
|
|
13010
|
+
})), /*#__PURE__*/react.createElement("br", null), /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
13011
|
+
id: "credit-features.information",
|
|
13012
|
+
defaultMessage: "V\xE9rifiez vos capacit\xE9s de remboursement avant de vous engager."
|
|
13013
|
+
}))), /*#__PURE__*/react.createElement("div", {
|
|
12979
13014
|
className: classnames(s.container, STATIC_CUSTOMISATION_CLASSES.summary),
|
|
12980
13015
|
"data-testid": "modal-summary"
|
|
12981
13016
|
}, /*#__PURE__*/react.createElement("div", {
|
|
@@ -13016,7 +13051,31 @@
|
|
|
13016
13051
|
value: customerFees,
|
|
13017
13052
|
style: "currency",
|
|
13018
13053
|
currency: "EUR"
|
|
13019
|
-
})))))
|
|
13054
|
+
}))))), isCredit && ( /*#__PURE__*/react.createElement("div", {
|
|
13055
|
+
className: s.creditInfoLegalText
|
|
13056
|
+
}, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
13057
|
+
id: "credit-features.legal-text",
|
|
13058
|
+
defaultMessage: "Cr\xE9dit d'un montant de {totalWithoutFirstInstallment} au taux d\xE9biteur fixe de {taegPercentage} sur une dur\xE9e de {installmeentsCountWithoutFirst} mois. Permettant, en compl\xE9ment d'un acompte de {firstInstallmentAmount}, de financer un achat d'un montant de {productPriceWithoutCreditCost}. Sous r\xE9serve d'\xE9tude et d'acceptation par Alma. D\xE9lai l\xE9gal de r\xE9tractation de 14 jours. Simulation pr\xE9sent\xE9e par Alma, immatricul\xE9e au RCS Nanterre sous le num\xE9ro 839 100 575, \xE9tablissement de paiement\xA0et soci\xE9t\xE9 de financement agr\xE9\xE9e par l\u2019ACPR sous le n\xB0 17408 (num\xE9ro CIB / Code banque).",
|
|
13059
|
+
values: {
|
|
13060
|
+
totalWithoutFirstInstallment: intl.formatNumber(totalWithoutFirstInstallment, {
|
|
13061
|
+
style: 'currency',
|
|
13062
|
+
currency: 'EUR'
|
|
13063
|
+
}),
|
|
13064
|
+
taegPercentage: intl.formatNumber(TAEG, {
|
|
13065
|
+
style: 'percent',
|
|
13066
|
+
maximumFractionDigits: 2
|
|
13067
|
+
}),
|
|
13068
|
+
installmeentsCountWithoutFirst: currentPlan.installments_count - 1,
|
|
13069
|
+
firstInstallmentAmount: intl.formatNumber(firstInstallmentAmount, {
|
|
13070
|
+
style: 'currency',
|
|
13071
|
+
currency: 'EUR'
|
|
13072
|
+
}),
|
|
13073
|
+
productPriceWithoutCreditCost: intl.formatNumber(total - creditCost, {
|
|
13074
|
+
style: 'currency',
|
|
13075
|
+
currency: 'EUR'
|
|
13076
|
+
})
|
|
13077
|
+
}
|
|
13078
|
+
})))));
|
|
13020
13079
|
};
|
|
13021
13080
|
|
|
13022
13081
|
var s$1 = {"loadingIndicator":"_31lrj","bounce":"_3NtDa"};
|
|
@@ -16912,6 +16971,8 @@
|
|
|
16912
16971
|
return seconds * millisecondsInSecond;
|
|
16913
16972
|
}
|
|
16914
16973
|
|
|
16974
|
+
var s$3 = {"openModalInfo":"_bplXm"};
|
|
16975
|
+
|
|
16915
16976
|
var paymentPlanShorthandName = function paymentPlanShorthandName(payment) {
|
|
16916
16977
|
var deferred_days = payment.deferred_days,
|
|
16917
16978
|
deferred_months = payment.deferred_months,
|
|
@@ -17015,6 +17076,15 @@
|
|
|
17015
17076
|
var areInstallmentsOfSameAmount = payment_plan == null ? void 0 : payment_plan.every(function (installment, index) {
|
|
17016
17077
|
return index === 0 || installment.total_amount === payment_plan[0].total_amount;
|
|
17017
17078
|
});
|
|
17079
|
+
if (installmentsCount > 4) {
|
|
17080
|
+
return /*#__PURE__*/react.createElement("span", {
|
|
17081
|
+
className: s$3.openModalInfo
|
|
17082
|
+
}, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
17083
|
+
id: "payment-plan-strings.credit",
|
|
17084
|
+
defaultMessage: "Cliquez pour en savoir plus",
|
|
17085
|
+
description: "Link to credit details"
|
|
17086
|
+
}));
|
|
17087
|
+
}
|
|
17018
17088
|
if (isP1X(payment)) {
|
|
17019
17089
|
return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
17020
17090
|
id: "payment-plan-strings.pay-now",
|
|
@@ -17067,41 +17137,41 @@
|
|
|
17067
17137
|
});
|
|
17068
17138
|
};
|
|
17069
17139
|
|
|
17070
|
-
var s$
|
|
17140
|
+
var s$4 = {"buttons":"_1l2Oa","active":"_3rue7","textButton":"_2T78a"};
|
|
17071
17141
|
|
|
17072
17142
|
var EligibilityPlansButtons = function EligibilityPlansButtons(_ref) {
|
|
17073
17143
|
var eligibilityPlans = _ref.eligibilityPlans,
|
|
17074
17144
|
currentPlanIndex = _ref.currentPlanIndex,
|
|
17075
17145
|
setCurrentPlanIndex = _ref.setCurrentPlanIndex;
|
|
17076
17146
|
return /*#__PURE__*/react.createElement("div", {
|
|
17077
|
-
className: classnames(s$
|
|
17147
|
+
className: classnames(s$4.buttons, STATIC_CUSTOMISATION_CLASSES.eligibilityOptions)
|
|
17078
17148
|
}, eligibilityPlans.map(function (eligibilityPlan, index) {
|
|
17079
17149
|
var _cx;
|
|
17080
17150
|
return /*#__PURE__*/react.createElement("button", {
|
|
17081
17151
|
key: index,
|
|
17082
|
-
className: classnames((_cx = {}, _cx[classnames(s$
|
|
17152
|
+
className: classnames((_cx = {}, _cx[classnames(s$4.active, STATIC_CUSTOMISATION_CLASSES.activeOption)] = index === currentPlanIndex, _cx)),
|
|
17083
17153
|
onClick: function onClick() {
|
|
17084
17154
|
return setCurrentPlanIndex(index);
|
|
17085
17155
|
}
|
|
17086
17156
|
}, /*#__PURE__*/react.createElement("span", {
|
|
17087
|
-
className: s$
|
|
17157
|
+
className: s$4.textButton
|
|
17088
17158
|
}, paymentPlanShorthandName(eligibilityPlan)));
|
|
17089
17159
|
}));
|
|
17090
17160
|
};
|
|
17091
17161
|
|
|
17092
|
-
var s$
|
|
17162
|
+
var s$5 = {"installment":"_z2Uiv","date":"_2lJQy","dot":"_1Z9wr","isCurrent":"_2Nmkl","bold":"_ezY-3"};
|
|
17093
17163
|
|
|
17094
17164
|
var Installment = function Installment(_ref) {
|
|
17095
17165
|
var _cx, _cx2;
|
|
17096
17166
|
var installment = _ref.installment,
|
|
17097
17167
|
index = _ref.index;
|
|
17098
17168
|
return /*#__PURE__*/react.createElement("div", {
|
|
17099
|
-
className: s$
|
|
17169
|
+
className: s$5.installment,
|
|
17100
17170
|
"data-testid": "installment-" + index
|
|
17101
17171
|
}, /*#__PURE__*/react.createElement("div", {
|
|
17102
|
-
className: s$
|
|
17172
|
+
className: s$5.date
|
|
17103
17173
|
}, /*#__PURE__*/react.createElement("div", {
|
|
17104
|
-
className: classnames(s$
|
|
17174
|
+
className: classnames(s$5.dot, (_cx = {}, _cx[s$5.isCurrent] = index === 0, _cx))
|
|
17105
17175
|
}), isToday(installment.due_date * 1000) ? ( /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
17106
17176
|
id: "installments.today",
|
|
17107
17177
|
defaultMessage: "Aujourd'hui",
|
|
@@ -17112,7 +17182,7 @@
|
|
|
17112
17182
|
month: "long",
|
|
17113
17183
|
year: "numeric"
|
|
17114
17184
|
}))), /*#__PURE__*/react.createElement("div", {
|
|
17115
|
-
className: classnames((_cx2 = {}, _cx2[s$
|
|
17185
|
+
className: classnames((_cx2 = {}, _cx2[s$5.bold] = index === 0, _cx2))
|
|
17116
17186
|
}, /*#__PURE__*/react.createElement(FormattedNumber, {
|
|
17117
17187
|
value: installment.total_amount / 100,
|
|
17118
17188
|
style: "currency",
|
|
@@ -17120,13 +17190,12 @@
|
|
|
17120
17190
|
})));
|
|
17121
17191
|
};
|
|
17122
17192
|
|
|
17123
|
-
var s$
|
|
17193
|
+
var s$6 = {"schedule":"_MPKjS"};
|
|
17124
17194
|
|
|
17125
17195
|
var Schedule = function Schedule(_ref) {
|
|
17126
17196
|
var currentPlan = _ref.currentPlan;
|
|
17127
|
-
var isCredit = currentPlan.installments_count > 4;
|
|
17128
17197
|
return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
|
|
17129
|
-
className: classnames(s$
|
|
17198
|
+
className: classnames(s$6.schedule, STATIC_CUSTOMISATION_CLASSES.scheduleDetails),
|
|
17130
17199
|
"data-testid": "modal-installments-element"
|
|
17131
17200
|
}, ((currentPlan == null ? void 0 : currentPlan.payment_plan) || []).map(function (installment, index) {
|
|
17132
17201
|
return /*#__PURE__*/react.createElement(Installment, {
|
|
@@ -17134,12 +17203,7 @@
|
|
|
17134
17203
|
installment: installment,
|
|
17135
17204
|
index: index
|
|
17136
17205
|
});
|
|
17137
|
-
})
|
|
17138
|
-
className: s$5.creditInfo
|
|
17139
|
-
}, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
17140
|
-
id: "credit-features.information",
|
|
17141
|
-
defaultMessage: "Un cr\xE9dit vous engage et doit \xEAtre rembours\xE9. V\xE9rifiez vos capacit\xE9s de remboursement avant de vous engager."
|
|
17142
|
-
})))));
|
|
17206
|
+
})));
|
|
17143
17207
|
};
|
|
17144
17208
|
|
|
17145
17209
|
var _excluded$1 = ["color"];
|
|
@@ -17312,7 +17376,7 @@
|
|
|
17312
17376
|
}))));
|
|
17313
17377
|
};
|
|
17314
17378
|
|
|
17315
|
-
var s$
|
|
17379
|
+
var s$7 = {"cardContainer":"_1N3yO"};
|
|
17316
17380
|
|
|
17317
17381
|
var Cards = function Cards(_ref) {
|
|
17318
17382
|
var cards = _ref.cards;
|
|
@@ -17320,17 +17384,17 @@
|
|
|
17320
17384
|
var uniqueCards = Array.from(new Set(cards));
|
|
17321
17385
|
return /*#__PURE__*/react.createElement("div", {
|
|
17322
17386
|
"data-testid": "card-logos",
|
|
17323
|
-
className: classnames(s$
|
|
17387
|
+
className: classnames(s$7.cardContainer, STATIC_CUSTOMISATION_CLASSES.cardContainer)
|
|
17324
17388
|
}, uniqueCards.map(function (card) {
|
|
17325
17389
|
return /*#__PURE__*/react.createElement("div", {
|
|
17326
17390
|
key: card,
|
|
17327
|
-
className: s$
|
|
17391
|
+
className: s$7.card,
|
|
17328
17392
|
"data-testid": "card-logo-" + card
|
|
17329
17393
|
}, 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));
|
|
17330
17394
|
}));
|
|
17331
17395
|
};
|
|
17332
17396
|
|
|
17333
|
-
var s$
|
|
17397
|
+
var s$8 = {"list":"_180ro","listItem":"_1HqCO","bullet":"_3B8wx"};
|
|
17334
17398
|
|
|
17335
17399
|
var Info = function Info(_ref) {
|
|
17336
17400
|
var isCurrentPlanP1X = _ref.isCurrentPlanP1X;
|
|
@@ -17338,12 +17402,12 @@
|
|
|
17338
17402
|
/*#__PURE__*/
|
|
17339
17403
|
// TODO: refactor this component into subcomponent to factorise code and be cleaner
|
|
17340
17404
|
react.createElement("div", {
|
|
17341
|
-
className: classnames(s$
|
|
17405
|
+
className: classnames(s$8.list, STATIC_CUSTOMISATION_CLASSES.info),
|
|
17342
17406
|
"data-testid": "modal-info-element"
|
|
17343
17407
|
}, /*#__PURE__*/react.createElement("div", {
|
|
17344
|
-
className: s$
|
|
17408
|
+
className: s$8.listItem
|
|
17345
17409
|
}, /*#__PURE__*/react.createElement("div", {
|
|
17346
|
-
className: classnames(s$
|
|
17410
|
+
className: classnames(s$8.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
17347
17411
|
}, "1"), /*#__PURE__*/react.createElement("div", {
|
|
17348
17412
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
17349
17413
|
}, isCurrentPlanP1X ? ( /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
@@ -17363,9 +17427,9 @@
|
|
|
17363
17427
|
}
|
|
17364
17428
|
}
|
|
17365
17429
|
})))), /*#__PURE__*/react.createElement("div", {
|
|
17366
|
-
className: s$
|
|
17430
|
+
className: s$8.listItem
|
|
17367
17431
|
}, /*#__PURE__*/react.createElement("div", {
|
|
17368
|
-
className: classnames(s$
|
|
17432
|
+
className: classnames(s$8.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
17369
17433
|
}, "2"), /*#__PURE__*/react.createElement("div", {
|
|
17370
17434
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
17371
17435
|
}, isCurrentPlanP1X ? ( /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
@@ -17385,9 +17449,9 @@
|
|
|
17385
17449
|
}
|
|
17386
17450
|
}
|
|
17387
17451
|
})))), /*#__PURE__*/react.createElement("div", {
|
|
17388
|
-
className: s$
|
|
17452
|
+
className: s$8.listItem
|
|
17389
17453
|
}, /*#__PURE__*/react.createElement("div", {
|
|
17390
|
-
className: classnames(s$
|
|
17454
|
+
className: classnames(s$8.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
|
|
17391
17455
|
}, "3"), /*#__PURE__*/react.createElement("div", {
|
|
17392
17456
|
className: STATIC_CUSTOMISATION_CLASSES.infoMessage
|
|
17393
17457
|
}, isCurrentPlanP1X ? ( /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
@@ -17410,13 +17474,13 @@
|
|
|
17410
17474
|
);
|
|
17411
17475
|
};
|
|
17412
17476
|
|
|
17413
|
-
var s$
|
|
17477
|
+
var s$9 = {"title":"_3ERx-"};
|
|
17414
17478
|
|
|
17415
17479
|
var Title = function Title(_ref) {
|
|
17416
17480
|
var isSomePlanDeferred = _ref.isSomePlanDeferred,
|
|
17417
17481
|
isCurrentPlanP1X = _ref.isCurrentPlanP1X;
|
|
17418
17482
|
return /*#__PURE__*/react.createElement("div", {
|
|
17419
|
-
className: classnames(s$
|
|
17483
|
+
className: classnames(s$9.title, STATIC_CUSTOMISATION_CLASSES.title),
|
|
17420
17484
|
"data-testid": "modal-title-element"
|
|
17421
17485
|
}, isSomePlanDeferred ? ( /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
17422
17486
|
id: "eligibility-modal.title-deferred-plan",
|
|
@@ -17430,7 +17494,7 @@
|
|
|
17430
17494
|
})));
|
|
17431
17495
|
};
|
|
17432
17496
|
|
|
17433
|
-
var s$
|
|
17497
|
+
var s$a = {"container":"_21g6u","block":"_3zaP5","left":"_2SBRC","logo":"_xW3wt"};
|
|
17434
17498
|
|
|
17435
17499
|
var DesktopModal = function DesktopModal(_ref) {
|
|
17436
17500
|
var children = _ref.children,
|
|
@@ -17438,10 +17502,10 @@
|
|
|
17438
17502
|
cards = _ref.cards,
|
|
17439
17503
|
isCurrentPlanP1X = _ref.isCurrentPlanP1X;
|
|
17440
17504
|
return /*#__PURE__*/react.createElement("div", {
|
|
17441
|
-
className: classnames(s$
|
|
17505
|
+
className: classnames(s$a.container, STATIC_CUSTOMISATION_CLASSES.desktopModal),
|
|
17442
17506
|
"data-testid": "modal-container"
|
|
17443
17507
|
}, /*#__PURE__*/react.createElement("aside", {
|
|
17444
|
-
className: classnames([s$
|
|
17508
|
+
className: classnames([s$a.block, s$a.left, STATIC_CUSTOMISATION_CLASSES.leftSide])
|
|
17445
17509
|
}, /*#__PURE__*/react.createElement(Title, {
|
|
17446
17510
|
isSomePlanDeferred: isSomePlanDeferred,
|
|
17447
17511
|
isCurrentPlanP1X: isCurrentPlanP1X
|
|
@@ -17450,16 +17514,16 @@
|
|
|
17450
17514
|
}), cards && /*#__PURE__*/react.createElement(Cards, {
|
|
17451
17515
|
cards: cards
|
|
17452
17516
|
}), /*#__PURE__*/react.createElement(AlmaLogo, {
|
|
17453
|
-
className: s$
|
|
17517
|
+
className: s$a.logo,
|
|
17454
17518
|
width: "75"
|
|
17455
17519
|
})), /*#__PURE__*/react.createElement("div", {
|
|
17456
|
-
className: classnames(s$
|
|
17520
|
+
className: classnames(s$a.block, STATIC_CUSTOMISATION_CLASSES.rightSide)
|
|
17457
17521
|
}, children));
|
|
17458
17522
|
};
|
|
17459
17523
|
|
|
17460
|
-
var s$
|
|
17524
|
+
var s$b = {"noEligibility":"_17qNJ","loader":"_2oTJq","scheduleArea":"_2u9rj","verticalLine":"_VRdAU"};
|
|
17461
17525
|
|
|
17462
|
-
var s$
|
|
17526
|
+
var s$c = {"container":"_2G7Ch","logo":"_2779r"};
|
|
17463
17527
|
|
|
17464
17528
|
var MobileModal = function MobileModal(_ref) {
|
|
17465
17529
|
var children = _ref.children,
|
|
@@ -17467,7 +17531,7 @@
|
|
|
17467
17531
|
cards = _ref.cards,
|
|
17468
17532
|
isCurrentPlanP1X = _ref.isCurrentPlanP1X;
|
|
17469
17533
|
return /*#__PURE__*/react.createElement("div", {
|
|
17470
|
-
className: classnames(s$
|
|
17534
|
+
className: classnames(s$c.container, STATIC_CUSTOMISATION_CLASSES.mobileModal),
|
|
17471
17535
|
"data-testid": "modal-container"
|
|
17472
17536
|
}, /*#__PURE__*/react.createElement(Title, {
|
|
17473
17537
|
isSomePlanDeferred: isSomePlanDeferred,
|
|
@@ -17477,7 +17541,7 @@
|
|
|
17477
17541
|
}), cards && /*#__PURE__*/react.createElement(Cards, {
|
|
17478
17542
|
cards: cards
|
|
17479
17543
|
}), /*#__PURE__*/react.createElement(AlmaLogo, {
|
|
17480
|
-
className: s$
|
|
17544
|
+
className: s$c.logo,
|
|
17481
17545
|
width: "75"
|
|
17482
17546
|
}));
|
|
17483
17547
|
};
|
|
@@ -17512,9 +17576,9 @@
|
|
|
17512
17576
|
cards: cards,
|
|
17513
17577
|
isCurrentPlanP1X: isP1X(currentPlan)
|
|
17514
17578
|
}, status === statusResponse.PENDING && ( /*#__PURE__*/react.createElement("div", {
|
|
17515
|
-
className: s$
|
|
17579
|
+
className: s$b.loader
|
|
17516
17580
|
}, /*#__PURE__*/react.createElement(LoadingIndicator, null))), status === statusResponse.SUCCESS && eligiblePlans.length === 0 && ( /*#__PURE__*/react.createElement("div", {
|
|
17517
|
-
className: s$
|
|
17581
|
+
className: s$b.noEligibility
|
|
17518
17582
|
}, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
|
|
17519
17583
|
id: "eligibility-modal.no-eligibility",
|
|
17520
17584
|
defaultMessage: "Oups, il semblerait que la simulation n'ait pas fonctionn\xE9."
|
|
@@ -17523,9 +17587,9 @@
|
|
|
17523
17587
|
currentPlanIndex: currentPlanIndex,
|
|
17524
17588
|
setCurrentPlanIndex: setCurrentPlanIndex
|
|
17525
17589
|
}), /*#__PURE__*/react.createElement("div", {
|
|
17526
|
-
className: s$
|
|
17590
|
+
className: s$b.scheduleArea
|
|
17527
17591
|
}, /*#__PURE__*/react.createElement("div", {
|
|
17528
|
-
className: s$
|
|
17592
|
+
className: s$b.verticalLine
|
|
17529
17593
|
}), /*#__PURE__*/react.createElement(Schedule, {
|
|
17530
17594
|
currentPlan: currentPlan
|
|
17531
17595
|
}), /*#__PURE__*/react.createElement(TotalBlock, {
|
|
@@ -17556,17 +17620,17 @@
|
|
|
17556
17620
|
});
|
|
17557
17621
|
};
|
|
17558
17622
|
|
|
17559
|
-
var s$
|
|
17623
|
+
var s$d = {"loadingIndicator":"_2SwwZ","line1":"_2qODo","line2":"_2YO01"};
|
|
17560
17624
|
|
|
17561
17625
|
var Loader = function Loader(_ref) {
|
|
17562
17626
|
var className = _ref.className;
|
|
17563
17627
|
return /*#__PURE__*/react.createElement("div", {
|
|
17564
|
-
className: classnames(s$
|
|
17628
|
+
className: classnames(s$d.loadingIndicator, className),
|
|
17565
17629
|
"data-testid": "loader"
|
|
17566
17630
|
}, /*#__PURE__*/react.createElement("div", {
|
|
17567
|
-
className: s$
|
|
17631
|
+
className: s$d.line1
|
|
17568
17632
|
}), /*#__PURE__*/react.createElement("div", {
|
|
17569
|
-
className: s$
|
|
17633
|
+
className: s$d.line2
|
|
17570
17634
|
}));
|
|
17571
17635
|
};
|
|
17572
17636
|
|
|
@@ -17658,7 +17722,7 @@
|
|
|
17658
17722
|
activeOption: prefix$1 + '-active-option'
|
|
17659
17723
|
};
|
|
17660
17724
|
|
|
17661
|
-
var s$
|
|
17725
|
+
var s$e = {"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","pending":"_1ZDMS","clickable":"_UksZa","unClickable":"_1lr-q"};
|
|
17662
17726
|
|
|
17663
17727
|
var VERY_LONG_TIME_IN_MS = 1000 * 3600;
|
|
17664
17728
|
var DEFAULT_TRANSITION_TIME = 5500;
|
|
@@ -17742,7 +17806,7 @@
|
|
|
17742
17806
|
};
|
|
17743
17807
|
if (status === statusResponse.PENDING) {
|
|
17744
17808
|
return /*#__PURE__*/react.createElement("div", {
|
|
17745
|
-
className: classnames(s$
|
|
17809
|
+
className: classnames(s$e.widgetButton, s$e.pending)
|
|
17746
17810
|
}, /*#__PURE__*/react.createElement(Loader, null));
|
|
17747
17811
|
}
|
|
17748
17812
|
if (hideIfNotEligible && eligiblePlans.length === 0 || eligibilityPlans.length === 0 || status === statusResponse.FAILED) {
|
|
@@ -17756,15 +17820,15 @@
|
|
|
17756
17820
|
};
|
|
17757
17821
|
return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
|
|
17758
17822
|
onClick: handleOpenModal,
|
|
17759
|
-
className: classnames(s$
|
|
17823
|
+
className: classnames(s$e.widgetButton, (_cx = {}, _cx[s$e.clickable] = eligiblePlans.length > 0, _cx[s$e.unClickable] = eligiblePlans.length === 0, _cx[s$e.hideBorder] = hideBorder, _cx), STATIC_CUSTOMISATION_CLASSES$1.container),
|
|
17760
17824
|
"data-testid": "widget-button"
|
|
17761
17825
|
}, /*#__PURE__*/react.createElement("div", {
|
|
17762
|
-
className: classnames(s$
|
|
17826
|
+
className: classnames(s$e.primaryContainer, STATIC_CUSTOMISATION_CLASSES$1.eligibilityLine)
|
|
17763
17827
|
}, /*#__PURE__*/react.createElement(AlmaLogo, {
|
|
17764
|
-
className: s$
|
|
17828
|
+
className: s$e.logo,
|
|
17765
17829
|
color: monochrome ? 'var(--off-black)' : undefined
|
|
17766
17830
|
}), /*#__PURE__*/react.createElement("div", {
|
|
17767
|
-
className: classnames(s$
|
|
17831
|
+
className: classnames(s$e.paymentPlans, STATIC_CUSTOMISATION_CLASSES$1.eligibilityOptions)
|
|
17768
17832
|
}, eligibilityPlans.map(function (eligibilityPlan, key) {
|
|
17769
17833
|
var _cx2;
|
|
17770
17834
|
var isCurrent = key === current;
|
|
@@ -17778,10 +17842,10 @@
|
|
|
17778
17842
|
},
|
|
17779
17843
|
onMouseOut: onLeave,
|
|
17780
17844
|
onTouchEnd: onLeave,
|
|
17781
|
-
className: classnames(s$
|
|
17845
|
+
className: classnames(s$e.plan, (_cx2 = {}, _cx2[classnames(s$e.active, STATIC_CUSTOMISATION_CLASSES$1.activeOption)] = isCurrent, _cx2[s$e.monochrome] = monochrome && isCurrent, _cx2[classnames(s$e.notEligible, STATIC_CUSTOMISATION_CLASSES$1.notEligibleOption)] = !eligibilityPlan.eligible, _cx2))
|
|
17782
17846
|
}, paymentPlanShorthandName(eligibilityPlan));
|
|
17783
17847
|
}))), /*#__PURE__*/react.createElement("div", {
|
|
17784
|
-
className: classnames(s$
|
|
17848
|
+
className: classnames(s$e.info, (_cx3 = {}, _cx3[classnames(s$e.notEligible, STATIC_CUSTOMISATION_CLASSES$1.notEligibleOption)] = eligibilityPlans[current] && !eligibilityPlans[current].eligible, _cx3), STATIC_CUSTOMISATION_CLASSES$1.paymentInfo)
|
|
17785
17849
|
}, eligibilityPlans.length !== 0 && paymentPlanInfoText(eligibilityPlans[current]))), isOpen && ( /*#__PURE__*/react.createElement(EligibilityModal, {
|
|
17786
17850
|
initialPlanIndex: getIndexWithinEligiblePlans(current),
|
|
17787
17851
|
onClose: closeModal,
|
|
File without changes
|
package/dist/raw/widgets.css
CHANGED
|
@@ -76,6 +76,21 @@
|
|
|
76
76
|
font-size: 20px;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
._15KNd {
|
|
80
|
+
margin: 4px 0;
|
|
81
|
+
font-family: 'Venn', sans-serif;
|
|
82
|
+
border-radius: 20px;
|
|
83
|
+
border: 1px solid var(--off-white);
|
|
84
|
+
padding: 16px;
|
|
85
|
+
z-index: 2;
|
|
86
|
+
position: relative;
|
|
87
|
+
font-size: 16px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
._3T0mA {
|
|
91
|
+
font-weight: var(--weight-bold);
|
|
92
|
+
}
|
|
93
|
+
|
|
79
94
|
._W7qIA {
|
|
80
95
|
display: flex;
|
|
81
96
|
font-family: 'Venn', sans-serif;
|
|
@@ -90,6 +105,13 @@
|
|
|
90
105
|
text-align: right;
|
|
91
106
|
}
|
|
92
107
|
|
|
108
|
+
._2e3lw {
|
|
109
|
+
font-size: 10px;
|
|
110
|
+
font-family: 'Venn', sans-serif;
|
|
111
|
+
margin-top: 8px;
|
|
112
|
+
font-weight: var(--weight-normal);
|
|
113
|
+
}
|
|
114
|
+
|
|
93
115
|
._31lrj {
|
|
94
116
|
display: flex;
|
|
95
117
|
flex-direction: column;
|
|
@@ -195,6 +217,9 @@
|
|
|
195
217
|
}
|
|
196
218
|
}
|
|
197
219
|
|
|
220
|
+
._bplXm {
|
|
221
|
+
text-decoration: underline;
|
|
222
|
+
}
|
|
198
223
|
._1l2Oa {
|
|
199
224
|
display: flex;
|
|
200
225
|
flex-wrap: wrap;
|
|
@@ -273,7 +298,7 @@
|
|
|
273
298
|
|
|
274
299
|
._1Z9wr::after {
|
|
275
300
|
border-left: 2px solid var(--off-white);
|
|
276
|
-
height:
|
|
301
|
+
height: 18px;
|
|
277
302
|
margin-left: 4px;
|
|
278
303
|
content: " ";
|
|
279
304
|
position: absolute;
|
|
@@ -288,11 +313,6 @@
|
|
|
288
313
|
font-family: 'Venn', sans-serif;
|
|
289
314
|
}
|
|
290
315
|
|
|
291
|
-
._3a7er {
|
|
292
|
-
font-size: 14px;
|
|
293
|
-
margin-left: 4px;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
316
|
@media (min-width: 800px) {
|
|
297
317
|
._MPKjS {
|
|
298
318
|
overflow-y: auto;
|