@alma/widgets 3.2.2 → 3.2.4

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,7 +6720,7 @@
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>Verlieren Sie nicht die Kontrolle,</strong> indem Sie Ihre Fälligkeitstermine nach 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
6725
  "eligibility-modal.p1x-bullet-1": "Wählen Sie <strong>Alma - 1X</strong> beim Check-out.",
6726
6726
  "eligibility-modal.p1x-bullet-2": "Tragen Sie Ihre <strong>Kreditkarteninformationen ein.</strong>",
@@ -6730,11 +6730,12 @@
6730
6730
  "installments.today": "Heute",
6731
6731
  "installments.total-amount": "Gesamtsumme",
6732
6732
  "installments.total-fees": "Davon Kosten",
6733
- "payment-plan-strings.day-abbreviation": "T{numberOfDeferredDays}",
6733
+ "payment-plan-strings.day-abbreviation": "T{deferredDays}",
6734
6734
  "payment-plan-strings.default-message": "Bezahlen Sie zinsfrei in mehreren Raten mit Alma.",
6735
6735
  "payment-plan-strings.deferred": "{totalAmount} zu zahlen am {dueDate}",
6736
6736
  "payment-plan-strings.ineligible-greater-than-max": "Bis zu {maxAmount}",
6737
6737
  "payment-plan-strings.ineligible-lower-than-min": "Ab {minAmount}",
6738
+ "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
6738
6739
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
6739
6740
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
6740
6741
  "payment-plan-strings.no-fee": "(0% Finanzierung)",
@@ -6757,11 +6758,12 @@
6757
6758
  "installments.today": "Today",
6758
6759
  "installments.total-amount": "Total",
6759
6760
  "installments.total-fees": "Of which costs (incl. VAT)",
6760
- "payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
6761
+ "payment-plan-strings.day-abbreviation": "D{deferredDays}",
6761
6762
  "payment-plan-strings.default-message": "Pay in installments with Alma",
6762
- "payment-plan-strings.deferred": "{totalAmount} to be paid on {dueDate}",
6763
+ "payment-plan-strings.deferred": "{totalAmount} to pay the {dueDate}",
6763
6764
  "payment-plan-strings.ineligible-greater-than-max": "Until {maxAmount}",
6764
6765
  "payment-plan-strings.ineligible-lower-than-min": "From {minAmount}",
6766
+ "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
6765
6767
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
6766
6768
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
6767
6769
  "payment-plan-strings.no-fee": "(free of charge)",
@@ -6784,11 +6786,12 @@
6784
6786
  "installments.today": "Hoy",
6785
6787
  "installments.total-amount": "Total",
6786
6788
  "installments.total-fees": "De los cuales, costes (IVA incluido)",
6787
- "payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
6789
+ "payment-plan-strings.day-abbreviation": "D{deferredDays}",
6788
6790
  "payment-plan-strings.default-message": "Pagar a plazos con Alma",
6789
6791
  "payment-plan-strings.deferred": "{totalAmount} a pagar el {dueDate}",
6790
6792
  "payment-plan-strings.ineligible-greater-than-max": "Hasta {maxAmount}",
6791
6793
  "payment-plan-strings.ineligible-lower-than-min": "Desde {minAmount}",
6794
+ "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
6792
6795
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidad de {othersInstallmentAmount}} other {{firstInstallmentAmount} hoy, después {numberOfRemainingInstallments} mensualidades de {othersInstallmentAmount}}}",
6793
6796
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} plazos de {totalAmount}",
6794
6797
  "payment-plan-strings.no-fee": "(sin intereses)",
@@ -6811,11 +6814,12 @@
6811
6814
  "installments.today": "Aujourd'hui",
6812
6815
  "installments.total-amount": "Total",
6813
6816
  "installments.total-fees": "Dont frais (TTC)",
6814
- "payment-plan-strings.day-abbreviation": "J{numberOfDeferredDays}",
6817
+ "payment-plan-strings.day-abbreviation": "J{deferredDays}",
6815
6818
  "payment-plan-strings.default-message": "Payez en plusieurs fois avec Alma",
6816
6819
  "payment-plan-strings.deferred": "{totalAmount} à payer le {dueDate}",
6817
6820
  "payment-plan-strings.ineligible-greater-than-max": "Jusqu'à {maxAmount}",
6818
6821
  "payment-plan-strings.ineligible-lower-than-min": "À partir de {minAmount}",
6822
+ "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
6819
6823
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
6820
6824
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
6821
6825
  "payment-plan-strings.no-fee": "(sans frais)",
@@ -6838,11 +6842,12 @@
6838
6842
  "installments.today": "Oggi",
6839
6843
  "installments.total-amount": "Totale",
6840
6844
  "installments.total-fees": "Di cui commissioni",
6841
- "payment-plan-strings.day-abbreviation": "G{numberOfDeferredDays}",
6845
+ "payment-plan-strings.day-abbreviation": "G{deferredDays}",
6842
6846
  "payment-plan-strings.default-message": "Paga a rate con Alma, senza registrazione.",
6843
6847
  "payment-plan-strings.deferred": "{totalAmount} da pagare il {dueDate}",
6844
6848
  "payment-plan-strings.ineligible-greater-than-max": "Disponibile fino a {maxAmount}",
6845
6849
  "payment-plan-strings.ineligible-lower-than-min": "Pagamento rateale disponibile a partire da {minAmount}",
6850
+ "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
6846
6851
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {Oggi paghi {firstInstallmentAmount} poi tra {numberOfRemainingInstallments} mese {othersInstallmentAmount}} other {Oggi paghi {firstInstallmentAmount} poi {numberOfRemainingInstallments} rate mensili di {othersInstallmentAmount}}}",
6847
6852
  "payment-plan-strings.multiple-installments-same-amount": "In {installmentsCount} rate mensili di {totalAmount}",
6848
6853
  "payment-plan-strings.no-fee": "(senza interessi)",
@@ -6865,11 +6870,12 @@
6865
6870
  "installments.today": "Tegenwoordig",
6866
6871
  "installments.total-amount": "Totaal",
6867
6872
  "installments.total-fees": "Waarvan kosten (incl. BTW)",
6868
- "payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
6873
+ "payment-plan-strings.day-abbreviation": "D{deferredDays}",
6869
6874
  "payment-plan-strings.default-message": "Betaal in termijnen met Alma",
6870
6875
  "payment-plan-strings.deferred": "{totalAmount} te betalen op {dueDate}",
6871
6876
  "payment-plan-strings.ineligible-greater-than-max": "Tot {maxAmount}",
6872
6877
  "payment-plan-strings.ineligible-lower-than-min": "Van {minAmount}",
6878
+ "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
6873
6879
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
6874
6880
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
6875
6881
  "payment-plan-strings.no-fee": "(zonder kosten)",
@@ -6892,11 +6898,12 @@
6892
6898
  "installments.today": "Hoje",
6893
6899
  "installments.total-amount": "Total",
6894
6900
  "installments.total-fees": "Dos quais custos (incl. IVA)",
6895
- "payment-plan-strings.day-abbreviation": "D{numberOfDeferredDays}",
6901
+ "payment-plan-strings.day-abbreviation": "D{deferredDays}",
6896
6902
  "payment-plan-strings.default-message": "Pague em prestações através da Alma",
6897
6903
  "payment-plan-strings.deferred": "{totalAmount} a pagar em {dueDate}",
6898
6904
  "payment-plan-strings.ineligible-greater-than-max": "Até {maxAmount}",
6899
6905
  "payment-plan-strings.ineligible-lower-than-min": "A partir de {minAmount}",
6906
+ "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
6900
6907
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
6901
6908
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
6902
6909
  "payment-plan-strings.no-fee": "(sem encargos)",
@@ -14986,7 +14993,7 @@
14986
14993
  return configPlan != null ? configPlan : {};
14987
14994
  };
14988
14995
 
14989
- var filterELigibility = function filterELigibility(eligibilities, configPlans) {
14996
+ var filterEligibility = function filterEligibility(eligibilities, configPlans) {
14990
14997
  // Remove P1X if no configuration is provided
14991
14998
  if (!configPlans) {
14992
14999
  return eligibilities.filter(function (plan) {
@@ -15060,7 +15067,7 @@
15060
15067
  });
15061
15068
  }
15062
15069
  }, [status]);
15063
- return [filterELigibility(eligibility, plans), status];
15070
+ return [filterEligibility(eligibility, plans), status];
15064
15071
  };
15065
15072
 
15066
15073
  var classnames = createCommonjsModule(function (module) {
@@ -19839,15 +19846,23 @@
19839
19846
  var deferred_days = payment.deferred_days,
19840
19847
  deferred_months = payment.deferred_months,
19841
19848
  installmentsCount = payment.installments_count;
19842
- var deferredDaysCount = deferred_days + deferred_months * 30;
19843
19849
 
19844
- if (installmentsCount === 1 && deferredDaysCount > 0) {
19845
- // For now there is no distinction between deferred days and deferred months, it will be J+ anyway
19850
+ if (installmentsCount === 1 && deferred_days) {
19846
19851
  return /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
19847
19852
  id: "payment-plan-strings.day-abbreviation",
19848
- defaultMessage: "J{numberOfDeferredDays}",
19853
+ defaultMessage: "J{deferredDays}",
19854
+ values: {
19855
+ deferredDays: "+" + deferred_days
19856
+ }
19857
+ });
19858
+ }
19859
+
19860
+ if (installmentsCount === 1 && deferred_months) {
19861
+ return /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
19862
+ id: "payment-plan-strings.month-abbreviation",
19863
+ defaultMessage: "M{deferredMonths}",
19849
19864
  values: {
19850
- numberOfDeferredDays: deferredDaysCount > 0 ? "+" + deferredDaysCount : ''
19865
+ deferredMonths: "+" + deferred_months
19851
19866
  }
19852
19867
  });
19853
19868
  } else {