@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.
@@ -1893,7 +1893,7 @@ var messagesDE = {
1893
1893
  "eligibility-modal.p1x-bullet-3": "<strong> Ihre Zahlung wird sofort bestätigt! </strong>",
1894
1894
  "eligibility-modal.title-deferred-plan": "Zahlen Sie mit Alma in Raten oder später.",
1895
1895
  "eligibility-modal.title-normal": "Zahlen Sie mit Alma in mehreren Raten.",
1896
- "eligibility-modal.title-pay-now": "Bezahlen Sie mit Alma bar per Kreditkarte.",
1896
+ "eligibility-modal.title-pay-now": "Bezahlen Sie auf einmal mit Alma per Kreditkarte.",
1897
1897
  "installments.today": "Heute",
1898
1898
  "installments.total-amount": "Gesamtsumme",
1899
1899
  "installments.total-fees": "Davon Kosten",
@@ -1906,7 +1906,7 @@ var messagesDE = {
1906
1906
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
1907
1907
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
1908
1908
  "payment-plan-strings.no-fee": "(0% Finanzierung)",
1909
- "payment-plan-strings.pay-now": "Jetzt bezahlen {totalAmount}",
1909
+ "payment-plan-strings.pay-now": "Zahlen Sie jetzt {totalAmount}",
1910
1910
  "payment-plan-strings.pay.now.button": "Jetzt bezahlen"
1911
1911
  };
1912
1912
 
@@ -1945,15 +1945,15 @@ var messagesES = {
1945
1945
  "credit-features.information": "Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.",
1946
1946
  "credit-features.total-credit-cost": "Coste de crédito (incl. en el total)",
1947
1947
  "eligibility-modal.bullet-1": "Elige <strong>Alma</strong> como método de pago.",
1948
- "eligibility-modal.bullet-2": "Déjese guiar y valide su pago en <strong>2 minutos.</strong>",
1949
- "eligibility-modal.bullet-3": "<strong>Mantenga el control</strong> adelantando o retrasando los plazos a su propio ritmo.",
1948
+ "eligibility-modal.bullet-2": "Déjate guiar y válida tu pago en <strong>2 minutos.</strong>",
1949
+ "eligibility-modal.bullet-3": "<strong>Mantén el control</strong> adelantando o retrasando los plazos a su propio ritmo.",
1950
1950
  "eligibility-modal.no-eligibility": "Uy, parece que la simulación no ha funcionado.",
1951
- "eligibility-modal.p1x-bullet-1": "Elija <strong>Alma - Pagar ahora</strong> en la caja.",
1952
- "eligibility-modal.p1x-bullet-2": "Introduzca los datos de su tarjeta de crédito en <strong>.</strong>",
1953
- "eligibility-modal.p1x-bullet-3": "<strong>¡La validación </strong> de su pago es instantánea!",
1951
+ "eligibility-modal.p1x-bullet-1": "Elije <strong>Alma - Pagar ahora</strong> al momento de la compra.",
1952
+ "eligibility-modal.p1x-bullet-2": "Introduzca los datos de tu tarjeta bancaria en <strong>.</strong>",
1953
+ "eligibility-modal.p1x-bullet-3": "<strong>¡La validación </strong> de tu pago es instantánea!",
1954
1954
  "eligibility-modal.title-deferred-plan": "Paga a plazos o posteriormente con tarjeta bancaria con Alma.",
1955
1955
  "eligibility-modal.title-normal": "Pagar a plazos con tarjeta bancaria con Alma.",
1956
- "eligibility-modal.title-pay-now": "Pague en efectivo con tarjeta de crédito con Alma.",
1956
+ "eligibility-modal.title-pay-now": "Paga de contado con tu tarjeta bancaria a través de alma.",
1957
1957
  "installments.today": "Hoy",
1958
1958
  "installments.total-amount": "Total",
1959
1959
  "installments.total-fees": "De los cuales, costes (IVA incluido)",
@@ -2013,7 +2013,7 @@ var messagesIT = {
2013
2013
  "eligibility-modal.p1x-bullet-3": "Ricevi la conferma di pagamento <strong>istantaneamente!</strong>",
2014
2014
  "eligibility-modal.title-deferred-plan": "Paga a rate con Alma, senza registrazione.",
2015
2015
  "eligibility-modal.title-normal": "Paga a rate con Alma, senza registrazione.",
2016
- "eligibility-modal.title-pay-now": "Pagare in contanti con carta di credito con Alma.",
2016
+ "eligibility-modal.title-pay-now": "Paga ora con carta tramite Alma.",
2017
2017
  "installments.today": "Oggi",
2018
2018
  "installments.total-amount": "Totale",
2019
2019
  "installments.total-fees": "Di cui commissioni",
@@ -2034,24 +2034,24 @@ var messagesNL = {
2034
2034
  "credit-features.credit-cost-display": "{creditCost} (gemiddeld rente percentage {taegPercentage})",
2035
2035
  "credit-features.information": "Een lening is bindend en moet worden terugbetaald. Ga na of je het kunt terugbetalen voordat je jezelf vastlegt.",
2036
2036
  "credit-features.total-credit-cost": "Waarvan kredietkosten",
2037
- "eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen.",
2038
- "eligibility-modal.bullet-2": "Laat ons je begeleiden en jouw betaling valideren in <strong>2 minuten.</strong>",
2039
- "eligibility-modal.bullet-3": "<strong>Behoudt de controle</strong> door jouw deadlines op je eigen tempo vooruit of achteruit te schuiven.",
2037
+ "eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen om de eerste termijn te voldoen via iDeal, Bancontact of een gewenste creditcard.",
2038
+ "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.",
2039
+ "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.",
2040
2040
  "eligibility-modal.no-eligibility": "Oeps, het lijkt erop dat de simulatie niet werkte.",
2041
- "eligibility-modal.p1x-bullet-1": "Kies <strong>Alma - Betaal nu</strong> bij het afrekenen.",
2042
- "eligibility-modal.p1x-bullet-2": "Vul jouw <strong>creditcardgegevens </strong> in.",
2041
+ "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.",
2042
+ "eligibility-modal.p1x-bullet-2": "Vul jouw <strong>gegevens </strong> in",
2043
2043
  "eligibility-modal.p1x-bullet-3": "<strong>De bevestiging </strong> van jouw betaling is onmiddellijk!",
2044
- "eligibility-modal.title-deferred-plan": "Betaal in termijnen of later via iDEAL of per creditcard met Alma.",
2045
- "eligibility-modal.title-normal": "Betaal in termijnen met iDEAL of creditcard bij Alma.",
2046
- "eligibility-modal.title-pay-now": "Betaal contant met creditcard bij Alma.",
2047
- "installments.today": "Tegenwoordig",
2044
+ "eligibility-modal.title-deferred-plan": "Betaal in 2, 3 of 4 rentevrije termijnen bij Alma - zonder BKR of CKP registratie.",
2045
+ "eligibility-modal.title-normal": "Betaal in 2, 3 of 4 rentevrije termijnen bij Alma - zonder BKR of CKP registratie.",
2046
+ "eligibility-modal.title-pay-now": "Betaal met iDEAL of per creditcard bij Alma.",
2047
+ "installments.today": "Vandaag",
2048
2048
  "installments.total-amount": "Totaal",
2049
2049
  "installments.total-fees": "Waarvan kosten (incl. BTW)",
2050
2050
  "payment-plan-strings.day-abbreviation": "D{deferredDays}",
2051
- "payment-plan-strings.default-message": "Betaal in termijnen met Alma",
2051
+ "payment-plan-strings.default-message": "Betaal in 2, 3 of 4 rentevrije termijnen bij Alma - zonder BKR of CKP registratie",
2052
2052
  "payment-plan-strings.deferred": "{totalAmount} te betalen op {dueDate}",
2053
2053
  "payment-plan-strings.ineligible-greater-than-max": "Tot {maxAmount}",
2054
- "payment-plan-strings.ineligible-lower-than-min": "Van {minAmount}",
2054
+ "payment-plan-strings.ineligible-lower-than-min": "Vanaf {minAmount}",
2055
2055
  "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
2056
2056
  "payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
2057
2057
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
@@ -2063,22 +2063,22 @@ var messagesNL = {
2063
2063
  var messagesPT = {
2064
2064
  "credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
2065
2065
  "credit-features.information": "Um crédito é um compromisso e deve ser reembolsado. Verifique a sua capacidade de pagar antes de se comprometer.",
2066
- "credit-features.total-credit-cost": "Incluindo custo do crédito",
2067
- "eligibility-modal.bullet-1": "Escolha a <strong>Alma</strong> no checkout.",
2068
- "eligibility-modal.bullet-2": "Deixe-nos guiá-lo e validar o seu pagamento em <strong>2 minutos.</strong>",
2069
- "eligibility-modal.bullet-3": "<strong>Mantenha o controlo</strong> avançando ou recuando os seus prazos ao seu próprio ritmo.",
2066
+ "credit-features.total-credit-cost": "Incluindo comissões de crédito",
2067
+ "eligibility-modal.bullet-1": "Seleccionar <strong>Alma - Pay Now</strong> no final da compra.",
2068
+ "eligibility-modal.bullet-2": "Siga as instruções e valide o seu pagamento em <strong>2 minutos.</strong>",
2069
+ "eligibility-modal.bullet-3": "<strong>Mantenha o controlo</strong> adiando as datas de pagamento ao seu próprio ritmo.",
2070
2070
  "eligibility-modal.no-eligibility": "Ups, parece que a simulação não funcionou.",
2071
2071
  "eligibility-modal.p1x-bullet-1": "Escolha <strong>Alma - Pague agora</strong> no checkout.",
2072
- "eligibility-modal.p1x-bullet-2": "Preencha as informações do seu <strong>cartão de crédito.</strong>",
2072
+ "eligibility-modal.p1x-bullet-2": "Preencha os dados do seu <strong>cartão de bancário.</strong>",
2073
2073
  "eligibility-modal.p1x-bullet-3": "<strong>A validação </strong> do seu pagamento é instantânea!",
2074
2074
  "eligibility-modal.title-deferred-plan": "Pagar em prestações ou mais tarde por cartão de crédito com Alma.",
2075
- "eligibility-modal.title-normal": "Pagar em prestações por cartão de crédito com Alma.",
2076
- "eligibility-modal.title-pay-now": "Pagar a dinheiro ou com cartão de crédito com a Alma.",
2075
+ "eligibility-modal.title-normal": "Pagar em prestações por cartão bancário com a Alma.",
2076
+ "eligibility-modal.title-pay-now": "Pague na integralidade com a Alma por cartão bancário.",
2077
2077
  "installments.today": "Hoje",
2078
2078
  "installments.total-amount": "Total",
2079
- "installments.total-fees": "Dos quais custos (incl. IVA)",
2079
+ "installments.total-fees": "Das quais comissões (incl. IVA)",
2080
2080
  "payment-plan-strings.day-abbreviation": "D{deferredDays}",
2081
- "payment-plan-strings.default-message": "Pague em prestações através da Alma",
2081
+ "payment-plan-strings.default-message": "Pagamento em prestações com a Alma",
2082
2082
  "payment-plan-strings.deferred": "{totalAmount} a pagar em {dueDate}",
2083
2083
  "payment-plan-strings.ineligible-greater-than-max": "Até {maxAmount}",
2084
2084
  "payment-plan-strings.ineligible-lower-than-min": "A partir de {minAmount}",
@@ -2272,7 +2272,7 @@ var useFetchEligibility = function useFetchEligibility(purchaseAmount, _ref, pla
2272
2272
  shipping_address: shipping_address
2273
2273
  }, {
2274
2274
  Authorization: "Alma-Merchant-Auth " + merchantId,
2275
- 'X-Alma-Agent': "Alma Widget/" + "v3.3.5"
2275
+ 'X-Alma-Agent': "Alma Widget/" + "v3.3.7"
2276
2276
  }).then(function (res) {
2277
2277
  setEligibility(res);
2278
2278
  setStatus(apiStatus.SUCCESS);
@@ -3134,6 +3134,10 @@ var useButtonAnimation = function useButtonAnimation(iterateValues, transitionDe
3134
3134
  var timeout;
3135
3135
  var isMounted = true;
3136
3136
 
3137
+ if (transitionDelay === -1) {
3138
+ return;
3139
+ }
3140
+
3137
3141
  if (iterateValues.length !== 0) {
3138
3142
  if (!iterateValues.includes(current) && update) setCurrent(iterateValues[0]);
3139
3143
  timeout = setTimeout(function () {