@alma/widgets 3.2.0 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6720,11 +6720,11 @@
6720
6720
  "credit-features.total-credit-cost": "Davon Kreditkosten",
6721
6721
  "eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong> beim Check-out. ",
6722
6722
  "eligibility-modal.bullet-2": "Lassen Sie sich führen und bestätigen Sie Ihre Zahlung in <strong>2 Minuten.</strong>",
6723
- "eligibility-modal.bullet-3": "<strong>Behalten Sie die Kontrolle</strong> , indem Sie Ihre Fristen in Ihrem eigenen Tempo vor- oder zurückverlegen.",
6723
+ "eligibility-modal.bullet-3": "</strong>Verlieren Sie nicht die Kontrolle,</strong> indem Sie Ihre Fälligkeitstermine nach Ihrem eigenen Tempo vor- oder zurückverlegen.",
6724
6724
  "eligibility-modal.no-eligibility": "Ups, die Prüfung hat anscheinend nicht funktioniert.",
6725
- "eligibility-modal.p1x-bullet-1": "Wählen Sie <strong>Alma - 1X</strong> bei der Bezahlung.",
6726
- "eligibility-modal.p1x-bullet-2": "Füllen Sie die Informationen auf Ihrer <strong>Kreditkarte aus.</strong>",
6727
- "eligibility-modal.p1x-bullet-3": "<strong>Die Bestätigung </strong> Ihrer Zahlung erfolgt sofort!",
6725
+ "eligibility-modal.p1x-bullet-1": "Wählen Sie <strong>Alma - 1X</strong> beim Check-out.",
6726
+ "eligibility-modal.p1x-bullet-2": "Tragen Sie Ihre <strong>Kreditkarteninformationen ein.</strong>",
6727
+ "eligibility-modal.p1x-bullet-3": "<strong> Ihre Zahlung wird sofort bestätigt! </strong>",
6728
6728
  "eligibility-modal.title-deferred-plan": "Zahlen Sie mit Alma in Raten oder später.",
6729
6729
  "eligibility-modal.title-normal": "Zahlen Sie mit Alma in mehreren Raten.",
6730
6730
  "installments.today": "Heute",
@@ -6738,7 +6738,7 @@
6738
6738
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
6739
6739
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
6740
6740
  "payment-plan-strings.no-fee": "(0% Finanzierung)",
6741
- "payment-plan-strings.pay-now": "Bezahlen Sie jetzt {totalAmount}"
6741
+ "payment-plan-strings.pay-now": "Zahlen Sie jetzt {totalAmount}"
6742
6742
  };
6743
6743
 
6744
6744
  var messagesEN = {
@@ -6826,20 +6826,20 @@
6826
6826
  "credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
6827
6827
  "credit-features.information": "Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua disponibilità finanziaria prima di impegnarti.",
6828
6828
  "credit-features.total-credit-cost": "Di cui commissioni",
6829
- "eligibility-modal.bullet-1": "Scegli <strong>Alma</strong> alla cassa.",
6830
- "eligibility-modal.bullet-2": "Lasciatevi guidare e convalidate il pagamento in <strong>2 minuti.</strong>",
6831
- "eligibility-modal.bullet-3": "<strong>Mantenete il controllo</strong> spostando le scadenze in avanti o indietro al vostro ritmo.",
6829
+ "eligibility-modal.bullet-1": "Seleziona <strong>Alma</strong> come metodo di pagamento.",
6830
+ "eligibility-modal.bullet-2": "Segui le istruzioni e completa l'acquisto <strong>in meno di 2 minuti.</strong>",
6831
+ "eligibility-modal.bullet-3": "<strong>Gestisci il tuo piano di pagamento</strong> e modifica le scadenze secondo le tue esigenze.",
6832
6832
  "eligibility-modal.no-eligibility": "Ops, sembra che qualcosa non abbia funzionato.",
6833
- "eligibility-modal.p1x-bullet-1": "Scegliere <strong>Alma - 1X</strong> alla cassa.",
6834
- "eligibility-modal.p1x-bullet-2": "Compilare i dati della carta di credito <strong>.</strong>",
6835
- "eligibility-modal.p1x-bullet-3": "<strong>La convalida </strong> del vostro pagamento è istantanea!",
6836
- "eligibility-modal.title-deferred-plan": "Paga a rate o posticipa il pagamento con Alma, senza registrazione.",
6833
+ "eligibility-modal.p1x-bullet-1": "Scegli <strong>Alma - 1X</strong> alla cassa.",
6834
+ "eligibility-modal.p1x-bullet-2": "Inserisci i dati della tua <strong>carta bancaria.</strong>",
6835
+ "eligibility-modal.p1x-bullet-3": "Ricevi la conferma di pagamento <strong>istantaneamente!</strong>",
6836
+ "eligibility-modal.title-deferred-plan": "Paga a rate con Alma, senza registrazione.",
6837
6837
  "eligibility-modal.title-normal": "Paga a rate con Alma, senza registrazione.",
6838
6838
  "installments.today": "Oggi",
6839
6839
  "installments.total-amount": "Totale",
6840
6840
  "installments.total-fees": "Di cui commissioni",
6841
6841
  "payment-plan-strings.day-abbreviation": "G{numberOfDeferredDays}",
6842
- "payment-plan-strings.default-message": "Paga a rate con Alma",
6842
+ "payment-plan-strings.default-message": "Paga a rate con Alma, senza registrazione.",
6843
6843
  "payment-plan-strings.deferred": "{totalAmount} da pagare il {dueDate}",
6844
6844
  "payment-plan-strings.ineligible-greater-than-max": "Disponibile fino a {maxAmount}",
6845
6845
  "payment-plan-strings.ineligible-lower-than-min": "Pagamento rateale disponibile a partire da {minAmount}",
@@ -14987,9 +14987,11 @@
14987
14987
  };
14988
14988
 
14989
14989
  var filterELigibility = function filterELigibility(eligibilities, configPlans) {
14990
- // If no configPlans was provided, return eligibility response
14990
+ // Remove P1X if no configuration is provided
14991
14991
  if (!configPlans) {
14992
- return eligibilities;
14992
+ return eligibilities.filter(function (plan) {
14993
+ return !(plan.installments_count === 1 && plan.deferred_days === 0 && plan.deferred_months === 0);
14994
+ });
14993
14995
  } // Else check if the plan is eligible regarding the related configPlan
14994
14996
 
14995
14997