@alma/widgets 3.3.5 → 3.3.7

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.
@@ -1871,7 +1871,7 @@ var messagesDE = {
1871
1871
  "eligibility-modal.p1x-bullet-3": "<strong> Ihre Zahlung wird sofort bestätigt! </strong>",
1872
1872
  "eligibility-modal.title-deferred-plan": "Zahlen Sie mit Alma in Raten oder später.",
1873
1873
  "eligibility-modal.title-normal": "Zahlen Sie mit Alma in mehreren Raten.",
1874
- "eligibility-modal.title-pay-now": "Bezahlen Sie mit Alma bar per Kreditkarte.",
1874
+ "eligibility-modal.title-pay-now": "Bezahlen Sie auf einmal mit Alma per Kreditkarte.",
1875
1875
  "installments.today": "Heute",
1876
1876
  "installments.total-amount": "Gesamtsumme",
1877
1877
  "installments.total-fees": "Davon Kosten",
@@ -1884,7 +1884,7 @@ var messagesDE = {
1884
1884
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
1885
1885
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
1886
1886
  "payment-plan-strings.no-fee": "(0% Finanzierung)",
1887
- "payment-plan-strings.pay-now": "Jetzt bezahlen {totalAmount}",
1887
+ "payment-plan-strings.pay-now": "Zahlen Sie jetzt {totalAmount}",
1888
1888
  "payment-plan-strings.pay.now.button": "Jetzt bezahlen"
1889
1889
  };
1890
1890
 
@@ -1923,15 +1923,15 @@ var messagesES = {
1923
1923
  "credit-features.information": "Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.",
1924
1924
  "credit-features.total-credit-cost": "Coste de crédito (incl. en el total)",
1925
1925
  "eligibility-modal.bullet-1": "Elige <strong>Alma</strong> como método de pago.",
1926
- "eligibility-modal.bullet-2": "Déjese guiar y valide su pago en <strong>2 minutos.</strong>",
1927
- "eligibility-modal.bullet-3": "<strong>Mantenga el control</strong> adelantando o retrasando los plazos a su propio ritmo.",
1926
+ "eligibility-modal.bullet-2": "Déjate guiar y válida tu pago en <strong>2 minutos.</strong>",
1927
+ "eligibility-modal.bullet-3": "<strong>Mantén el control</strong> adelantando o retrasando los plazos a su propio ritmo.",
1928
1928
  "eligibility-modal.no-eligibility": "Uy, parece que la simulación no ha funcionado.",
1929
- "eligibility-modal.p1x-bullet-1": "Elija <strong>Alma - Pagar ahora</strong> en la caja.",
1930
- "eligibility-modal.p1x-bullet-2": "Introduzca los datos de su tarjeta de crédito en <strong>.</strong>",
1931
- "eligibility-modal.p1x-bullet-3": "<strong>¡La validación </strong> de su pago es instantánea!",
1929
+ "eligibility-modal.p1x-bullet-1": "Elije <strong>Alma - Pagar ahora</strong> al momento de la compra.",
1930
+ "eligibility-modal.p1x-bullet-2": "Introduzca los datos de tu tarjeta bancaria en <strong>.</strong>",
1931
+ "eligibility-modal.p1x-bullet-3": "<strong>¡La validación </strong> de tu pago es instantánea!",
1932
1932
  "eligibility-modal.title-deferred-plan": "Paga a plazos o posteriormente con tarjeta bancaria con Alma.",
1933
1933
  "eligibility-modal.title-normal": "Pagar a plazos con tarjeta bancaria con Alma.",
1934
- "eligibility-modal.title-pay-now": "Pague en efectivo con tarjeta de crédito con Alma.",
1934
+ "eligibility-modal.title-pay-now": "Paga de contado con tu tarjeta bancaria a través de alma.",
1935
1935
  "installments.today": "Hoy",
1936
1936
  "installments.total-amount": "Total",
1937
1937
  "installments.total-fees": "De los cuales, costes (IVA incluido)",
@@ -1991,7 +1991,7 @@ var messagesIT = {
1991
1991
  "eligibility-modal.p1x-bullet-3": "Ricevi la conferma di pagamento <strong>istantaneamente!</strong>",
1992
1992
  "eligibility-modal.title-deferred-plan": "Paga a rate con Alma, senza registrazione.",
1993
1993
  "eligibility-modal.title-normal": "Paga a rate con Alma, senza registrazione.",
1994
- "eligibility-modal.title-pay-now": "Pagare in contanti con carta di credito con Alma.",
1994
+ "eligibility-modal.title-pay-now": "Paga ora con carta tramite Alma.",
1995
1995
  "installments.today": "Oggi",
1996
1996
  "installments.total-amount": "Totale",
1997
1997
  "installments.total-fees": "Di cui commissioni",
@@ -2012,24 +2012,24 @@ var messagesNL = {
2012
2012
  "credit-features.credit-cost-display": "{creditCost} (gemiddeld rente percentage {taegPercentage})",
2013
2013
  "credit-features.information": "Een lening is bindend en moet worden terugbetaald. Ga na of je het kunt terugbetalen voordat je jezelf vastlegt.",
2014
2014
  "credit-features.total-credit-cost": "Waarvan kredietkosten",
2015
- "eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen.",
2016
- "eligibility-modal.bullet-2": "Laat ons je begeleiden en jouw betaling valideren in <strong>2 minuten.</strong>",
2017
- "eligibility-modal.bullet-3": "<strong>Behoudt de controle</strong> door jouw deadlines op je eigen tempo vooruit of achteruit te schuiven.",
2015
+ "eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen om de eerste termijn te voldoen via iDeal, Bancontact of een gewenste creditcard.",
2016
+ "eligibility-modal.bullet-2": "Laat ons je begeleiden om de betaling binnen <strong>1 minuut </strong> te valideren zonder dat je een account hoeft aan te maken.",
2017
+ "eligibility-modal.bullet-3": "<strong>Behoudt de controle </strong> en bepaal je eigen tempo. Bij Alma schuif je de deadlines gemakkelijk vooruit of achteruit. Zonder BKR / CKP registratie of bijkomende kosten.",
2018
2018
  "eligibility-modal.no-eligibility": "Oeps, het lijkt erop dat de simulatie niet werkte.",
2019
- "eligibility-modal.p1x-bullet-1": "Kies <strong>Alma - Betaal nu</strong> bij het afrekenen.",
2020
- "eligibility-modal.p1x-bullet-2": "Vul jouw <strong>creditcardgegevens </strong> in.",
2019
+ "eligibility-modal.p1x-bullet-1": "Kies <strong>Alma - Betaal nu</strong> bij het afrekenen om de eerste termijn te voldoen via iDeal, Bancontact of een gewenste creditcard.",
2020
+ "eligibility-modal.p1x-bullet-2": "Vul jouw <strong>gegevens </strong> in",
2021
2021
  "eligibility-modal.p1x-bullet-3": "<strong>De bevestiging </strong> van jouw betaling is onmiddellijk!",
2022
- "eligibility-modal.title-deferred-plan": "Betaal in termijnen of later via iDEAL of per creditcard met Alma.",
2023
- "eligibility-modal.title-normal": "Betaal in termijnen met iDEAL of creditcard bij Alma.",
2024
- "eligibility-modal.title-pay-now": "Betaal contant met creditcard bij Alma.",
2025
- "installments.today": "Tegenwoordig",
2022
+ "eligibility-modal.title-deferred-plan": "Betaal in 2, 3 of 4 rentevrije termijnen bij Alma - zonder BKR of CKP registratie.",
2023
+ "eligibility-modal.title-normal": "Betaal in 2, 3 of 4 rentevrije termijnen bij Alma - zonder BKR of CKP registratie.",
2024
+ "eligibility-modal.title-pay-now": "Betaal met iDEAL of per creditcard bij Alma.",
2025
+ "installments.today": "Vandaag",
2026
2026
  "installments.total-amount": "Totaal",
2027
2027
  "installments.total-fees": "Waarvan kosten (incl. BTW)",
2028
2028
  "payment-plan-strings.day-abbreviation": "D{deferredDays}",
2029
- "payment-plan-strings.default-message": "Betaal in termijnen met Alma",
2029
+ "payment-plan-strings.default-message": "Betaal in 2, 3 of 4 rentevrije termijnen bij Alma - zonder BKR of CKP registratie",
2030
2030
  "payment-plan-strings.deferred": "{totalAmount} te betalen op {dueDate}",
2031
2031
  "payment-plan-strings.ineligible-greater-than-max": "Tot {maxAmount}",
2032
- "payment-plan-strings.ineligible-lower-than-min": "Van {minAmount}",
2032
+ "payment-plan-strings.ineligible-lower-than-min": "Vanaf {minAmount}",
2033
2033
  "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
2034
2034
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
2035
2035
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
@@ -2041,22 +2041,22 @@ var messagesNL = {
2041
2041
  var messagesPT = {
2042
2042
  "credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
2043
2043
  "credit-features.information": "Um crédito é um compromisso e deve ser reembolsado. Verifique a sua capacidade de pagar antes de se comprometer.",
2044
- "credit-features.total-credit-cost": "Incluindo custo do crédito",
2045
- "eligibility-modal.bullet-1": "Escolha a <strong>Alma</strong> no checkout.",
2046
- "eligibility-modal.bullet-2": "Deixe-nos guiá-lo e validar o seu pagamento em <strong>2 minutos.</strong>",
2047
- "eligibility-modal.bullet-3": "<strong>Mantenha o controlo</strong> avançando ou recuando os seus prazos ao seu próprio ritmo.",
2044
+ "credit-features.total-credit-cost": "Incluindo comissões de crédito",
2045
+ "eligibility-modal.bullet-1": "Seleccionar <strong>Alma - Pay Now</strong> no final da compra.",
2046
+ "eligibility-modal.bullet-2": "Siga as instruções e valide o seu pagamento em <strong>2 minutos.</strong>",
2047
+ "eligibility-modal.bullet-3": "<strong>Mantenha o controlo</strong> adiando as datas de pagamento ao seu próprio ritmo.",
2048
2048
  "eligibility-modal.no-eligibility": "Ups, parece que a simulação não funcionou.",
2049
2049
  "eligibility-modal.p1x-bullet-1": "Escolha <strong>Alma - Pague agora</strong> no checkout.",
2050
- "eligibility-modal.p1x-bullet-2": "Preencha as informações do seu <strong>cartão de crédito.</strong>",
2050
+ "eligibility-modal.p1x-bullet-2": "Preencha os dados do seu <strong>cartão de bancário.</strong>",
2051
2051
  "eligibility-modal.p1x-bullet-3": "<strong>A validação </strong> do seu pagamento é instantânea!",
2052
2052
  "eligibility-modal.title-deferred-plan": "Pagar em prestações ou mais tarde por cartão de crédito com Alma.",
2053
- "eligibility-modal.title-normal": "Pagar em prestações por cartão de crédito com Alma.",
2054
- "eligibility-modal.title-pay-now": "Pagar a dinheiro ou com cartão de crédito com a Alma.",
2053
+ "eligibility-modal.title-normal": "Pagar em prestações por cartão bancário com a Alma.",
2054
+ "eligibility-modal.title-pay-now": "Pague na integralidade com a Alma por cartão bancário.",
2055
2055
  "installments.today": "Hoje",
2056
2056
  "installments.total-amount": "Total",
2057
- "installments.total-fees": "Dos quais custos (incl. IVA)",
2057
+ "installments.total-fees": "Das quais comissões (incl. IVA)",
2058
2058
  "payment-plan-strings.day-abbreviation": "D{deferredDays}",
2059
- "payment-plan-strings.default-message": "Pague em prestações através da Alma",
2059
+ "payment-plan-strings.default-message": "Pagamento em prestações com a Alma",
2060
2060
  "payment-plan-strings.deferred": "{totalAmount} a pagar em {dueDate}",
2061
2061
  "payment-plan-strings.ineligible-greater-than-max": "Até {maxAmount}",
2062
2062
  "payment-plan-strings.ineligible-lower-than-min": "A partir de {minAmount}",
@@ -2230,7 +2230,7 @@ const useFetchEligibility = (purchaseAmount, {
2230
2230
  shipping_address
2231
2231
  }, {
2232
2232
  Authorization: `Alma-Merchant-Auth ${merchantId}`,
2233
- 'X-Alma-Agent': `Alma Widget/${"v3.3.5"}`
2233
+ 'X-Alma-Agent': `Alma Widget/${"v3.3.7"}`
2234
2234
  }).then(res => {
2235
2235
  setEligibility(res);
2236
2236
  setStatus(apiStatus.SUCCESS);
@@ -3048,6 +3048,10 @@ const useButtonAnimation = (iterateValues, transitionDelay) => {
3048
3048
  let timeout;
3049
3049
  let isMounted = true;
3050
3050
 
3051
+ if (transitionDelay === -1) {
3052
+ return;
3053
+ }
3054
+
3051
3055
  if (iterateValues.length !== 0) {
3052
3056
  if (!iterateValues.includes(current) && update) setCurrent(iterateValues[0]);
3053
3057
  timeout = setTimeout(() => {