@alma/widgets 3.2.0 → 3.2.1

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.
@@ -1551,9 +1551,6 @@ function formatCents(cents) {
1551
1551
  return String(priceFromCents(cents)).replace('.', ',');
1552
1552
  }
1553
1553
  var desktopWidth = 800;
1554
- var isP1X = function isP1X(plan) {
1555
- return (plan == null ? void 0 : plan.installments_count) === 1 && (plan == null ? void 0 : plan.deferred_days) === 0 && (plan == null ? void 0 : plan.deferred_months) === 0;
1556
- };
1557
1554
 
1558
1555
  /* eslint-disable */
1559
1556
 
@@ -1888,9 +1885,6 @@ var messagesDE = {
1888
1885
  "eligibility-modal.bullet-2": "Lassen Sie sich führen und bestätigen Sie Ihre Zahlung in <strong>2 Minuten.</strong>",
1889
1886
  "eligibility-modal.bullet-3": "<strong>Behalten Sie die Kontrolle</strong> , indem Sie Ihre Fristen in Ihrem eigenen Tempo vor- oder zurückverlegen.",
1890
1887
  "eligibility-modal.no-eligibility": "Ups, die Prüfung hat anscheinend nicht funktioniert.",
1891
- "eligibility-modal.p1x-bullet-1": "Wählen Sie <strong>Alma - 1X</strong> bei der Bezahlung.",
1892
- "eligibility-modal.p1x-bullet-2": "Füllen Sie die Informationen auf Ihrer <strong>Kreditkarte aus.</strong>",
1893
- "eligibility-modal.p1x-bullet-3": "<strong>Die Bestätigung </strong> Ihrer Zahlung erfolgt sofort!",
1894
1888
  "eligibility-modal.title-deferred-plan": "Zahlen Sie mit Alma in Raten oder später.",
1895
1889
  "eligibility-modal.title-normal": "Zahlen Sie mit Alma in mehreren Raten.",
1896
1890
  "installments.today": "Heute",
@@ -1903,8 +1897,7 @@ var messagesDE = {
1903
1897
  "payment-plan-strings.ineligible-lower-than-min": "Ab {minAmount}",
1904
1898
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
1905
1899
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
1906
- "payment-plan-strings.no-fee": "(0% Finanzierung)",
1907
- "payment-plan-strings.pay-now": "Bezahlen Sie jetzt {totalAmount}"
1900
+ "payment-plan-strings.no-fee": "(0% Finanzierung)"
1908
1901
  };
1909
1902
 
1910
1903
  var messagesEN = {
@@ -1915,9 +1908,6 @@ var messagesEN = {
1915
1908
  "eligibility-modal.bullet-2": "Let us guide you and validate your payment in <strong>2 minutes.</strong>",
1916
1909
  "eligibility-modal.bullet-3": "<strong>Stay in control</strong> by moving your deadlines forward or backward at your own pace.",
1917
1910
  "eligibility-modal.no-eligibility": "Oops, looks like the simulation didn't work.",
1918
- "eligibility-modal.p1x-bullet-1": "Choose <strong>Alma - 1X</strong> at checkout.",
1919
- "eligibility-modal.p1x-bullet-2": "Fill in your <strong>credit card information.</strong>",
1920
- "eligibility-modal.p1x-bullet-3": "<strong>The validation </strong> of your payment is instantaneous!",
1921
1911
  "eligibility-modal.title-deferred-plan": "Pay in installments or later by credit card with Alma.",
1922
1912
  "eligibility-modal.title-normal": "Pay in installments by credit card with Alma.",
1923
1913
  "installments.today": "Today",
@@ -1930,8 +1920,7 @@ var messagesEN = {
1930
1920
  "payment-plan-strings.ineligible-lower-than-min": "From {minAmount}",
1931
1921
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
1932
1922
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
1933
- "payment-plan-strings.no-fee": "(free of charge)",
1934
- "payment-plan-strings.pay-now": "Pay now {totalAmount}"
1923
+ "payment-plan-strings.no-fee": "(free of charge)"
1935
1924
  };
1936
1925
 
1937
1926
  var messagesES = {
@@ -1942,9 +1931,6 @@ var messagesES = {
1942
1931
  "eligibility-modal.bullet-2": "Déjese guiar y valide su pago en <strong>2 minutos.</strong>",
1943
1932
  "eligibility-modal.bullet-3": "<strong>Mantenga el control</strong> adelantando o retrasando los plazos a su propio ritmo.",
1944
1933
  "eligibility-modal.no-eligibility": "Uy, parece que la simulación no ha funcionado.",
1945
- "eligibility-modal.p1x-bullet-1": "Elija <strong>Alma - 1X</strong> en la caja.",
1946
- "eligibility-modal.p1x-bullet-2": "Introduzca los datos de su tarjeta de crédito en <strong>.</strong>",
1947
- "eligibility-modal.p1x-bullet-3": "<strong>¡La validación </strong> de su pago es instantánea!",
1948
1934
  "eligibility-modal.title-deferred-plan": "Paga a plazos o posteriormente con tarjeta bancaria con Alma.",
1949
1935
  "eligibility-modal.title-normal": "Pagar a plazos con tarjeta bancaria con Alma.",
1950
1936
  "installments.today": "Hoy",
@@ -1957,8 +1943,7 @@ var messagesES = {
1957
1943
  "payment-plan-strings.ineligible-lower-than-min": "Desde {minAmount}",
1958
1944
  "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}}}",
1959
1945
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} plazos de {totalAmount}",
1960
- "payment-plan-strings.no-fee": "(sin intereses)",
1961
- "payment-plan-strings.pay-now": "Pague ahora {totalAmount}"
1946
+ "payment-plan-strings.no-fee": "(sin intereses)"
1962
1947
  };
1963
1948
 
1964
1949
  var messagesFR = {
@@ -1969,9 +1954,6 @@ var messagesFR = {
1969
1954
  "eligibility-modal.bullet-2": "Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",
1970
1955
  "eligibility-modal.bullet-3": "<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.",
1971
1956
  "eligibility-modal.no-eligibility": "Oups, il semblerait que la simulation n'ait pas fonctionné.",
1972
- "eligibility-modal.p1x-bullet-1": "Choisissez <strong>Alma - 1X</strong> au moment du paiement.",
1973
- "eligibility-modal.p1x-bullet-2": "Renseignez les informations de votre <strong>carte bancaire.</strong>",
1974
- "eligibility-modal.p1x-bullet-3": "<strong>La validation </strong> de votre paiement est instantanée !",
1975
1957
  "eligibility-modal.title-deferred-plan": "Payez en plusieurs fois ou plus tard par carte bancaire avec Alma.",
1976
1958
  "eligibility-modal.title-normal": "Payez en plusieurs fois par carte bancaire avec Alma.",
1977
1959
  "installments.today": "Aujourd'hui",
@@ -1984,8 +1966,7 @@ var messagesFR = {
1984
1966
  "payment-plan-strings.ineligible-lower-than-min": "À partir de {minAmount}",
1985
1967
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
1986
1968
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
1987
- "payment-plan-strings.no-fee": "(sans frais)",
1988
- "payment-plan-strings.pay-now": "Payez maintenant {totalAmount}"
1969
+ "payment-plan-strings.no-fee": "(sans frais)"
1989
1970
  };
1990
1971
 
1991
1972
  var messagesIT = {
@@ -1996,9 +1977,6 @@ var messagesIT = {
1996
1977
  "eligibility-modal.bullet-2": "Lasciatevi guidare e convalidate il pagamento in <strong>2 minuti.</strong>",
1997
1978
  "eligibility-modal.bullet-3": "<strong>Mantenete il controllo</strong> spostando le scadenze in avanti o indietro al vostro ritmo.",
1998
1979
  "eligibility-modal.no-eligibility": "Ops, sembra che qualcosa non abbia funzionato.",
1999
- "eligibility-modal.p1x-bullet-1": "Scegliere <strong>Alma - 1X</strong> alla cassa.",
2000
- "eligibility-modal.p1x-bullet-2": "Compilare i dati della carta di credito <strong>.</strong>",
2001
- "eligibility-modal.p1x-bullet-3": "<strong>La convalida </strong> del vostro pagamento è istantanea!",
2002
1980
  "eligibility-modal.title-deferred-plan": "Paga a rate o posticipa il pagamento con Alma, senza registrazione.",
2003
1981
  "eligibility-modal.title-normal": "Paga a rate con Alma, senza registrazione.",
2004
1982
  "installments.today": "Oggi",
@@ -2011,8 +1989,7 @@ var messagesIT = {
2011
1989
  "payment-plan-strings.ineligible-lower-than-min": "Pagamento rateale disponibile a partire da {minAmount}",
2012
1990
  "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}}}",
2013
1991
  "payment-plan-strings.multiple-installments-same-amount": "In {installmentsCount} rate mensili di {totalAmount}",
2014
- "payment-plan-strings.no-fee": "(senza interessi)",
2015
- "payment-plan-strings.pay-now": "Paga ora {totalAmount}"
1992
+ "payment-plan-strings.no-fee": "(senza interessi)"
2016
1993
  };
2017
1994
 
2018
1995
  var messagesNL = {
@@ -2023,9 +2000,6 @@ var messagesNL = {
2023
2000
  "eligibility-modal.bullet-2": "Laat ons u begeleiden en uw betaling valideren in <strong>2 minuten.</strong>",
2024
2001
  "eligibility-modal.bullet-3": "<strong>Houd de controle op</strong> door uw deadlines in uw eigen tempo vooruit of achteruit te schuiven.",
2025
2002
  "eligibility-modal.no-eligibility": "Oeps, het lijkt erop dat de simulatie niet werkte.",
2026
- "eligibility-modal.p1x-bullet-1": "Kies <strong>Alma - 1X</strong> bij het afrekenen.",
2027
- "eligibility-modal.p1x-bullet-2": "Vul uw <strong>creditcardgegevens in.</strong>",
2028
- "eligibility-modal.p1x-bullet-3": "<strong>De validatie </strong> van uw betaling is onmiddellijk!",
2029
2003
  "eligibility-modal.title-deferred-plan": "Betaal in termijnen of later per creditcard met Alma.",
2030
2004
  "eligibility-modal.title-normal": "Betaal in termijnen met een creditcard bij Alma.",
2031
2005
  "installments.today": "Tegenwoordig",
@@ -2038,8 +2012,7 @@ var messagesNL = {
2038
2012
  "payment-plan-strings.ineligible-lower-than-min": "Van {minAmount}",
2039
2013
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
2040
2014
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
2041
- "payment-plan-strings.no-fee": "(zonder kosten)",
2042
- "payment-plan-strings.pay-now": "Betaal nu {totalAmount}"
2015
+ "payment-plan-strings.no-fee": "(zonder kosten)"
2043
2016
  };
2044
2017
 
2045
2018
  var messagesPT = {
@@ -2050,9 +2023,6 @@ var messagesPT = {
2050
2023
  "eligibility-modal.bullet-2": "Deixe-nos guiá-lo e validar o seu pagamento em <strong>2 minutos.</strong>",
2051
2024
  "eligibility-modal.bullet-3": "<strong>Mantenha-se em controlo</strong> avançando ou recuando os seus prazos ao seu próprio ritmo.",
2052
2025
  "eligibility-modal.no-eligibility": "Ups, parece que a simulação não funcionou.",
2053
- "eligibility-modal.p1x-bullet-1": "Escolher <strong>Alma - 1X</strong> no checkout.",
2054
- "eligibility-modal.p1x-bullet-2": "Preencha as informações do seu <strong>cartão de crédito.</strong>",
2055
- "eligibility-modal.p1x-bullet-3": "<strong>A validação </strong> do seu pagamento é instantânea!",
2056
2026
  "eligibility-modal.title-deferred-plan": "Pagar em prestações ou mais tarde por cartão de crédito com Alma.",
2057
2027
  "eligibility-modal.title-normal": "Pagar em prestações por cartão de crédito com Alma.",
2058
2028
  "installments.today": "Hoje",
@@ -2065,8 +2035,7 @@ var messagesPT = {
2065
2035
  "payment-plan-strings.ineligible-lower-than-min": "A partir de {minAmount}",
2066
2036
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
2067
2037
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
2068
- "payment-plan-strings.no-fee": "(sem encargos)",
2069
- "payment-plan-strings.pay-now": "Pague agora {totalAmount}"
2038
+ "payment-plan-strings.no-fee": "(sem encargos)"
2070
2039
  };
2071
2040
 
2072
2041
  var getTranslationsByLocale = function getTranslationsByLocale(locale) {
@@ -2186,13 +2155,17 @@ var getPaymentPlanBoundaries = function getPaymentPlanBoundaries(plan, configPla
2186
2155
  };
2187
2156
 
2188
2157
  var filterELigibility = function filterELigibility(eligibilities, configPlans) {
2189
- // If no configPlans was provided, return eligibility response
2158
+ // Remove p1x
2159
+ var filteredEligibilityPlans = eligibilities.filter(function (plan) {
2160
+ return !(plan.installments_count === 1 && plan.deferred_days === 0 && plan.deferred_months === 0);
2161
+ }); // If no configPlans was provided, return eligibility response
2162
+
2190
2163
  if (!configPlans) {
2191
- return eligibilities;
2164
+ return filteredEligibilityPlans;
2192
2165
  } // Else check if the plan is eligible regarding the related configPlan
2193
2166
 
2194
2167
 
2195
- return eligibilities.map(function (plan) {
2168
+ return filteredEligibilityPlans.map(function (plan) {
2196
2169
  var eligibilityDeferredDays = (plan.deferred_months ? plan.deferred_months : 0) * 30 + (plan.deferred_days ? plan.deferred_days : 0); // find the related configPlan
2197
2170
 
2198
2171
  var relatedConfigPlan = configPlans.find(function (configPlan) {
@@ -2426,8 +2399,7 @@ var paymentPlanShorthandName = function paymentPlanShorthandName(payment) {
2426
2399
  installmentsCount = payment.installments_count;
2427
2400
  var deferredDaysCount = deferred_days + deferred_months * 30;
2428
2401
 
2429
- if (installmentsCount === 1 && deferredDaysCount > 0) {
2430
- // For now there is no distinction between deferred days and deferred months, it will be J+ anyway
2402
+ if (installmentsCount === 1) {
2431
2403
  return /*#__PURE__*/React.createElement(FormattedMessage, {
2432
2404
  id: "payment-plan-strings.day-abbreviation",
2433
2405
  defaultMessage: "J{numberOfDeferredDays}",
@@ -2516,21 +2488,6 @@ var paymentPlanInfoText = function paymentPlanInfoText(payment) {
2516
2488
  return index === 0 || installment.total_amount === payment_plan[0].total_amount;
2517
2489
  });
2518
2490
 
2519
- if (isP1X(payment)) {
2520
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormattedMessage, {
2521
- id: "payment-plan-strings.pay-now",
2522
- defaultMessage: "Payez maintenant {totalAmount}",
2523
- values: {
2524
- totalAmount: /*#__PURE__*/React.createElement(FormattedNumber, {
2525
- value: priceFromCents(payment_plan[0].total_amount),
2526
- style: "currency",
2527
- currency: "EUR"
2528
- }),
2529
- installmentsCount: installmentsCount
2530
- }
2531
- }), withNoFee(payment));
2532
- }
2533
-
2534
2491
  if (areInstallmentsOfSameAmount) {
2535
2492
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormattedMessage, {
2536
2493
  id: "payment-plan-strings.multiple-installments-same-amount",
@@ -2837,82 +2794,53 @@ var Cards = function Cards(_ref) {
2837
2794
 
2838
2795
  var s$7 = {"list":"_180ro","listItem":"_1HqCO","bullet":"_3B8wx"};
2839
2796
 
2840
- var Info = function Info(_ref) {
2841
- var isCurrentPlanP1X = _ref.isCurrentPlanP1X;
2842
- return (
2843
- /*#__PURE__*/
2844
- // TODO: refactor this component into subcomponent to factorise code and be cleaner
2845
- React.createElement("div", {
2846
- className: cx(s$7.list, STATIC_CUSTOMISATION_CLASSES.info),
2847
- "data-testid": "modal-info-element"
2848
- }, /*#__PURE__*/React.createElement("div", {
2849
- className: s$7.listItem
2850
- }, /*#__PURE__*/React.createElement("div", {
2851
- className: cx(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
2852
- }, "1"), /*#__PURE__*/React.createElement("div", {
2853
- className: STATIC_CUSTOMISATION_CLASSES.infoMessage
2854
- }, isCurrentPlanP1X ? /*#__PURE__*/React.createElement(FormattedMessage, {
2855
- id: "eligibility-modal.p1x-bullet-1",
2856
- defaultMessage: "Choisissez <strong>Alma - 1X</strong> au moment du paiement.",
2857
- values: {
2858
- strong: function strong() {
2859
- return /*#__PURE__*/React.createElement("strong", null, [].slice.call(arguments));
2860
- }
2861
- }
2862
- }) : /*#__PURE__*/React.createElement(FormattedMessage, {
2863
- id: "eligibility-modal.bullet-1",
2864
- defaultMessage: "Choisissez <strong>Alma</strong> au moment du paiement.",
2865
- values: {
2866
- strong: function strong() {
2867
- return /*#__PURE__*/React.createElement("strong", null, [].slice.call(arguments));
2868
- }
2869
- }
2870
- }))), /*#__PURE__*/React.createElement("div", {
2871
- className: s$7.listItem
2872
- }, /*#__PURE__*/React.createElement("div", {
2873
- className: cx(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
2874
- }, "2"), /*#__PURE__*/React.createElement("div", {
2875
- className: STATIC_CUSTOMISATION_CLASSES.infoMessage
2876
- }, isCurrentPlanP1X ? /*#__PURE__*/React.createElement(FormattedMessage, {
2877
- id: "eligibility-modal.p1x-bullet-2",
2878
- defaultMessage: "Renseignez les informations de votre <strong>carte bancaire.</strong>",
2879
- values: {
2880
- strong: function strong() {
2881
- return /*#__PURE__*/React.createElement("strong", null, [].slice.call(arguments));
2882
- }
2883
- }
2884
- }) : /*#__PURE__*/React.createElement(FormattedMessage, {
2885
- id: "eligibility-modal.bullet-2",
2886
- defaultMessage: "Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",
2887
- values: {
2888
- strong: function strong() {
2889
- return /*#__PURE__*/React.createElement("strong", null, [].slice.call(arguments));
2890
- }
2797
+ var Info = function Info() {
2798
+ return /*#__PURE__*/React.createElement("div", {
2799
+ className: cx(s$7.list, STATIC_CUSTOMISATION_CLASSES.info),
2800
+ "data-testid": "modal-info-element"
2801
+ }, /*#__PURE__*/React.createElement("div", {
2802
+ className: s$7.listItem
2803
+ }, /*#__PURE__*/React.createElement("div", {
2804
+ className: cx(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
2805
+ }, "1"), /*#__PURE__*/React.createElement("div", {
2806
+ className: STATIC_CUSTOMISATION_CLASSES.infoMessage
2807
+ }, /*#__PURE__*/React.createElement(FormattedMessage, {
2808
+ id: "eligibility-modal.bullet-1",
2809
+ defaultMessage: "Choisissez <strong>Alma</strong> au moment du paiement.",
2810
+ values: {
2811
+ strong: function strong() {
2812
+ return /*#__PURE__*/React.createElement("strong", null, [].slice.call(arguments));
2891
2813
  }
2892
- }))), /*#__PURE__*/React.createElement("div", {
2893
- className: s$7.listItem
2894
- }, /*#__PURE__*/React.createElement("div", {
2895
- className: cx(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
2896
- }, "3"), /*#__PURE__*/React.createElement("div", {
2897
- className: STATIC_CUSTOMISATION_CLASSES.infoMessage
2898
- }, isCurrentPlanP1X ? /*#__PURE__*/React.createElement(FormattedMessage, {
2899
- id: "eligibility-modal.p1x-bullet-3",
2900
- defaultMessage: "<strong>La validation </strong> de votre paiement est instantan\xE9e !",
2901
- values: {
2902
- strong: function strong() {
2903
- return /*#__PURE__*/React.createElement("strong", null, [].slice.call(arguments));
2904
- }
2814
+ }
2815
+ }))), /*#__PURE__*/React.createElement("div", {
2816
+ className: s$7.listItem
2817
+ }, /*#__PURE__*/React.createElement("div", {
2818
+ className: cx(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
2819
+ }, "2"), /*#__PURE__*/React.createElement("div", {
2820
+ className: STATIC_CUSTOMISATION_CLASSES.infoMessage
2821
+ }, /*#__PURE__*/React.createElement(FormattedMessage, {
2822
+ id: "eligibility-modal.bullet-2",
2823
+ defaultMessage: "Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",
2824
+ values: {
2825
+ strong: function strong() {
2826
+ return /*#__PURE__*/React.createElement("strong", null, [].slice.call(arguments));
2905
2827
  }
2906
- }) : /*#__PURE__*/React.createElement(FormattedMessage, {
2907
- id: "eligibility-modal.bullet-3",
2908
- defaultMessage: "<strong>Gardez le contr\xF4le</strong> en avan\xE7ant ou reculant vos \xE9ch\xE9ances \xE0 votre rythme.",
2909
- values: {
2910
- strong: function strong() {
2911
- return /*#__PURE__*/React.createElement("strong", null, [].slice.call(arguments));
2912
- }
2828
+ }
2829
+ }))), /*#__PURE__*/React.createElement("div", {
2830
+ className: s$7.listItem
2831
+ }, /*#__PURE__*/React.createElement("div", {
2832
+ className: cx(s$7.bullet, STATIC_CUSTOMISATION_CLASSES.bullet)
2833
+ }, "3"), /*#__PURE__*/React.createElement("div", {
2834
+ className: STATIC_CUSTOMISATION_CLASSES.infoMessage
2835
+ }, /*#__PURE__*/React.createElement(FormattedMessage, {
2836
+ id: "eligibility-modal.bullet-3",
2837
+ defaultMessage: "<strong>Gardez le contr\xF4le</strong> en avan\xE7ant ou reculant vos \xE9ch\xE9ances \xE0 votre rythme.",
2838
+ values: {
2839
+ strong: function strong() {
2840
+ return /*#__PURE__*/React.createElement("strong", null, [].slice.call(arguments));
2913
2841
  }
2914
- }))))
2915
- );
2842
+ }
2843
+ }))));
2916
2844
  };
2917
2845
 
2918
2846
  var s$8 = {"title":"_3ERx-"};
@@ -2936,8 +2864,7 @@ var s$9 = {"container":"_21g6u","block":"_3zaP5","left":"_2SBRC","logo":"_xW3wt"
2936
2864
  var DesktopModal = function DesktopModal(_ref) {
2937
2865
  var children = _ref.children,
2938
2866
  isSomePlanDeferred = _ref.isSomePlanDeferred,
2939
- cards = _ref.cards,
2940
- isCurrentPlanP1X = _ref.isCurrentPlanP1X;
2867
+ cards = _ref.cards;
2941
2868
  return /*#__PURE__*/React.createElement("div", {
2942
2869
  className: cx(s$9.container, STATIC_CUSTOMISATION_CLASSES.desktopModal),
2943
2870
  "data-testid": "modal-container"
@@ -2945,9 +2872,7 @@ var DesktopModal = function DesktopModal(_ref) {
2945
2872
  className: cx([s$9.block, s$9.left, STATIC_CUSTOMISATION_CLASSES.leftSide])
2946
2873
  }, /*#__PURE__*/React.createElement(Title, {
2947
2874
  isSomePlanDeferred: isSomePlanDeferred
2948
- }), /*#__PURE__*/React.createElement(Info, {
2949
- isCurrentPlanP1X: isCurrentPlanP1X
2950
- }), cards && /*#__PURE__*/React.createElement(Cards, {
2875
+ }), /*#__PURE__*/React.createElement(Info, null), cards && /*#__PURE__*/React.createElement(Cards, {
2951
2876
  cards: cards
2952
2877
  }), /*#__PURE__*/React.createElement(AlmaLogo, {
2953
2878
  className: s$9.logo,
@@ -2964,16 +2889,13 @@ var s$b = {"container":"_2G7Ch","logo":"_2779r"};
2964
2889
  var MobileModal = function MobileModal(_ref) {
2965
2890
  var children = _ref.children,
2966
2891
  isSomePlanDeferred = _ref.isSomePlanDeferred,
2967
- cards = _ref.cards,
2968
- isCurrentPlanP1X = _ref.isCurrentPlanP1X;
2892
+ cards = _ref.cards;
2969
2893
  return /*#__PURE__*/React.createElement("div", {
2970
2894
  className: cx(s$b.container, STATIC_CUSTOMISATION_CLASSES.mobileModal),
2971
2895
  "data-testid": "modal-container"
2972
2896
  }, /*#__PURE__*/React.createElement(Title, {
2973
2897
  isSomePlanDeferred: isSomePlanDeferred
2974
- }), children, /*#__PURE__*/React.createElement(Info, {
2975
- isCurrentPlanP1X: isCurrentPlanP1X
2976
- }), cards && /*#__PURE__*/React.createElement(Cards, {
2898
+ }), children, /*#__PURE__*/React.createElement(Info, null), cards && /*#__PURE__*/React.createElement(Cards, {
2977
2899
  cards: cards
2978
2900
  }), /*#__PURE__*/React.createElement(AlmaLogo, {
2979
2901
  className: s$b.logo,
@@ -3010,8 +2932,7 @@ var EligibilityModal = function EligibilityModal(_ref) {
3010
2932
  isOpen: true
3011
2933
  }, /*#__PURE__*/React.createElement(ModalComponent, {
3012
2934
  isSomePlanDeferred: isSomePlanDeferred,
3013
- cards: cards,
3014
- isCurrentPlanP1X: isP1X(currentPlan)
2935
+ cards: cards
3015
2936
  }, status === apiStatus.PENDING && /*#__PURE__*/React.createElement("div", {
3016
2937
  className: s$a.loader
3017
2938
  }, /*#__PURE__*/React.createElement(LoadingIndicator, null)), status === apiStatus.SUCCESS && eligiblePlans.length === 0 && /*#__PURE__*/React.createElement("div", {
@@ -3128,9 +3049,7 @@ var getIndexOfActivePlan = function getIndexOfActivePlan(_ref) {
3128
3049
  var _loop = function _loop(index) {
3129
3050
  var installmentsCount = suggestedPaymentPlanArray[index];
3130
3051
  var planFound = eligibilityPlans.findIndex(function (plan) {
3131
- return plan.installments_count === installmentsCount && plan.eligible && // Remove the PayLater plans from the plan to target, we will code a better solution later
3132
- // To differentiate P1X from PayLater while using the `suggestedPaymentPlan` property.
3133
- !plan.deferred_days && !plan.deferred_months;
3052
+ return plan.installments_count === installmentsCount && plan.eligible;
3134
3053
  });
3135
3054
 
3136
3055
  if (planFound !== -1) {
@@ -3169,7 +3088,7 @@ var STATIC_CUSTOMISATION_CLASSES$1 = {
3169
3088
 
3170
3089
  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","pending":"_1ZDMS","clickable":"_UksZa","unClickable":"_1lr-q"};
3171
3090
 
3172
- var VERY_LONG_TIME_IN_MS = 1000 * 3600;
3091
+ var VERY_LONG_TIME_IN_MS = 1000 * 3600 * 24 * 365;
3173
3092
  var DEFAULT_TRANSITION_TIME = 5500;
3174
3093
 
3175
3094
  var PaymentPlanWidget = function PaymentPlanWidget(_ref) {