@alma/widgets 4.0.5 → 4.0.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.
Files changed (36) hide show
  1. package/dist/types/src/Widgets/EligibilityModal/__tests__/Accessibility.test.d.ts +1 -0
  2. package/dist/types/src/Widgets/EligibilityModal/components/EligibilityPlansButtons/index.d.ts +1 -0
  3. package/dist/types/src/Widgets/EligibilityModal/components/Info/index.d.ts +1 -0
  4. package/dist/types/src/Widgets/EligibilityModal/components/Schedule/index.d.ts +1 -0
  5. package/dist/types/src/Widgets/PaymentPlans/__tests__/Accessibility.test.d.ts +1 -0
  6. package/dist/types/src/Widgets/PaymentPlans/index.d.ts +9 -0
  7. package/dist/types/src/assets/__tests__/intl.test.d.ts +1 -0
  8. package/dist/types/src/assets/almaLogo.d.ts +2 -2
  9. package/dist/types/src/components/Installments/Installment/__tests__/Accessibility.test.d.ts +1 -0
  10. package/dist/types/src/components/Loader/__tests__/Accessibility.test.d.ts +1 -0
  11. package/dist/types/src/components/Modal/__tests__/Accessibility.test.d.ts +1 -0
  12. package/dist/types/src/components/SkipLinks/__tests__/Accessibility.test.d.ts +1 -0
  13. package/dist/types/src/components/SkipLinks/__tests__/SkipLinks.test.d.ts +0 -0
  14. package/dist/types/src/components/SkipLinks/index.d.ts +11 -0
  15. package/dist/types/src/hooks/useAnimationInstructions.d.ts +22 -0
  16. package/dist/types/src/hooks/useAnimationInstructions.test.d.ts +1 -0
  17. package/dist/types/src/hooks/useAnnounceText.d.ts +9 -0
  18. package/dist/types/src/hooks/useAnnounceText.test.d.ts +1 -0
  19. package/dist/types/src/hooks/useButtonAnimation.test.d.ts +1 -0
  20. package/dist/types/src/intl/messages/messages.de.json.d.ts +24 -1
  21. package/dist/types/src/intl/messages/messages.en.json.d.ts +24 -1
  22. package/dist/types/src/intl/messages/messages.es.json.d.ts +24 -1
  23. package/dist/types/src/intl/messages/messages.fr.json.d.ts +24 -1
  24. package/dist/types/src/intl/messages/messages.it.json.d.ts +24 -1
  25. package/dist/types/src/intl/messages/messages.nl.json.d.ts +24 -1
  26. package/dist/types/src/intl/messages/messages.pt.json.d.ts +24 -1
  27. package/dist/types/src/utils/paymentPlanStrings.d.ts +7 -0
  28. package/dist/widgets-wc.umd.js +25 -25
  29. package/dist/widgets-wc.umd.js.map +0 -1
  30. package/dist/widgets.css +1 -1
  31. package/dist/widgets.js +3569 -2979
  32. package/dist/widgets.js.map +1 -1
  33. package/dist/widgets.min.css +1 -1
  34. package/dist/widgets.umd.js +25 -25
  35. package/dist/widgets.umd.js.map +1 -1
  36. package/package.json +1 -1
@@ -4,5 +4,6 @@ declare const EligibilityPlansButtons: FC<{
4
4
  eligibilityPlans: EligibilityPlan[];
5
5
  currentPlanIndex: number;
6
6
  setCurrentPlanIndex: (index: number) => void;
7
+ id?: string;
7
8
  }>;
8
9
  export default EligibilityPlansButtons;
@@ -1,5 +1,6 @@
1
1
  import { FC } from '../../../../../preact/compat';
2
2
  declare const Info: FC<{
3
3
  isCurrentPlanP1X: boolean;
4
+ id?: string;
4
5
  }>;
5
6
  export default Info;
@@ -2,5 +2,6 @@ import { FC } from '../../../../../preact/compat';
2
2
  import { EligibilityPlan } from '../../../../types';
3
3
  declare const Schedule: FC<{
4
4
  currentPlan: EligibilityPlan;
5
+ id?: string;
5
6
  }>;
6
7
  export default Schedule;
@@ -14,5 +14,14 @@ type Props = {
14
14
  hideBorder?: boolean;
15
15
  onModalClose?: (event: React.MouseEvent | React.KeyboardEvent) => void;
16
16
  };
17
+ /**
18
+ * PaymentPlanWidget - Main widget component that displays Alma payment plan options
19
+ *
20
+ * This component shows eligible payment plans in a compact widget format with:
21
+ * - Automatic plan cycling animation
22
+ * - Keyboard navigation between plans
23
+ * - Screen reader announcements for accessibility
24
+ * - Modal opening for detailed plan information
25
+ */
17
26
  declare const PaymentPlanWidget: FunctionComponent<Props>;
18
27
  export default PaymentPlanWidget;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
- import { SVGAttributes, VoidFunctionComponent } from '../../preact/compat';
1
+ import { default as React, SVGAttributes } from '../../preact/compat';
2
2
  type Props = {
3
3
  color?: string;
4
4
  } & SVGAttributes<SVGElement>;
5
- export declare const AlmaLogo: VoidFunctionComponent<Props>;
5
+ export declare const AlmaLogo: ({ className, color }: Props) => React.JSX.Element;
6
6
  export {};
@@ -0,0 +1,11 @@
1
+ import { FC } from '../../../preact/compat';
2
+ type Props = {
3
+ skipLinks: Array<{
4
+ href: string;
5
+ labelId: string;
6
+ defaultMessage: string;
7
+ }>;
8
+ className?: string;
9
+ };
10
+ declare const SkipLinks: FC<Props>;
11
+ export default SkipLinks;
@@ -0,0 +1,22 @@
1
+ import { statusResponse } from '../types';
2
+ type UseAnimationInstructionsProps = {
3
+ status: statusResponse;
4
+ hasUserInteracted: boolean;
5
+ eligiblePlansCount: number;
6
+ transitionDelay?: number;
7
+ };
8
+ /**
9
+ * Custom hook for managing accessibility announcements about animation control instructions
10
+ *
11
+ * Announces instructions to screen readers about how to control automatic plan animation
12
+ * when the widget is first loaded and animation is active.
13
+ *
14
+ * @param status - Current API response status
15
+ * @param hasUserInteracted - Whether user has manually interacted with plans
16
+ * @param eligiblePlansCount - Number of eligible payment plans
17
+ * @param transitionDelay - Animation transition delay (-1 means disabled)
18
+ *
19
+ * @returns void - This hook manages side effects only
20
+ */
21
+ export declare const useAnimationInstructions: ({ status, hasUserInteracted, eligiblePlansCount, transitionDelay, }: UseAnimationInstructionsProps) => void;
22
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Custom hook for managing announcement text for screen readers
3
+ * Provides functionality to set announcement text and automatically clear it after a delay
4
+ */
5
+ export declare const useAnnounceText: () => {
6
+ announceText: string;
7
+ announce: (text: string, clearDelay?: number) => void;
8
+ clearAnnouncement: () => void;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,20 @@
1
1
  declare const _default: {
2
+ "accessibility.alma-logo.aria-label": "Alma-Logo - Lösung für Ratenzahlung",
3
+ "accessibility.amex-card.aria-label": "American Express-Karte akzeptiert",
4
+ "accessibility.animation-control-instructions": "Automatische Animation der Zahlungspläne aktiv. Bewegen Sie den Mauszeiger über oder navigieren Sie mit den Pfeiltasten, um die Animation zu stoppen.",
5
+ "accessibility.cb-card.aria-label": "Kreditkarte CB akzeptiert",
6
+ "accessibility.close-button.aria-label": "Fenster schließen",
7
+ "accessibility.mastercard.aria-label": "Mastercard akzeptiert",
8
+ "accessibility.payment-options.radiogroup.aria-label": "Verfügbare Zahlungsoptionen",
9
+ "accessibility.payment-plan-button.aria-label": "Wählen Sie den Zahlungsplan {planName}",
10
+ "accessibility.payment-plan.option.aria-label": "Zahlungsoption {planDescription}",
11
+ "accessibility.payment-plans-title": "Verfügbare Zahlungsoptionen",
12
+ "accessibility.payment-schedule-title": "Ratenplan für die Zahlung",
13
+ "accessibility.payment-widget.animation-control-description": "Automatische Animation ist aktiv. Bewegen Sie den Mauszeiger darüber oder verwenden Sie die Pfeile, um die Animation zu stoppen.",
14
+ "accessibility.payment-widget.open-button.aria-label": "Alma Zahlungsoptionen öffnen",
15
+ "accessibility.plan-selection-changed": "Ausgewählter Plan: {planDescription}",
16
+ "accessibility.skip-links.navigation.aria-label": "Schnelle Navigation",
17
+ "accessibility.visa-card.aria-label": "Visa-Karte wird akzeptiert",
2
18
  "credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
3
19
  "credit-features.information": "Überprüfen Sie Ihre Rückzahlungsmöglichkeiten, bevor Sie eine Verpflichtung eingehen.",
4
20
  "credit-features.information.title": "Ein Kredit verpflichtet Sie und muss zurückgezahlt werden.",
@@ -7,6 +23,7 @@ declare const _default: {
7
23
  "eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong> beim Check-out. ",
8
24
  "eligibility-modal.bullet-2": "Lassen Sie sich führen und bestätigen Sie Ihre Zahlung in <strong>2 Minuten.</strong>",
9
25
  "eligibility-modal.bullet-3": "<strong>Behalten Sie die Kontrolle</strong> , indem Sie Ihre Fälligkeitstermine in Ihrem eigenen Tempo vor- oder zurückverlegen.",
26
+ "eligibility-modal.info-title": "Wie erfolgt die Bezahlung",
10
27
  "eligibility-modal.no-eligibility": "Ups, die Prüfung hat anscheinend nicht funktioniert.",
11
28
  "eligibility-modal.p1x-bullet-1": "Wählen Sie <strong>Alma - Jetzt bezahlen</strong> zum Zeitpunkt der Zahlung.",
12
29
  "eligibility-modal.p1x-bullet-2": "Tragen Sie Ihre <strong>Kreditkarteninformationen ein.</strong>",
@@ -21,6 +38,8 @@ declare const _default: {
21
38
  "payment-plan-strings.day-abbreviation": "T{deferredDays}",
22
39
  "payment-plan-strings.default-message": "Bezahlen Sie zinsfrei in mehreren Raten mit Alma.",
23
40
  "payment-plan-strings.deferred": "{totalAmount} zu zahlen am {dueDate}",
41
+ "payment-plan-strings.deferred.days": "{days, number} {days, plural, one {Tag} other {Tage}}",
42
+ "payment-plan-strings.deferred.months": "{months, number} {months, plural, one {Monate} other {Monate}}",
24
43
  "payment-plan-strings.ineligible-greater-than-max": "Bis zu {maxAmount}",
25
44
  "payment-plan-strings.ineligible-lower-than-min": "Ab {minAmount}",
26
45
  "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
@@ -28,7 +47,11 @@ declare const _default: {
28
47
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
29
48
  "payment-plan-strings.no-fee": "(0% Finanzierung)",
30
49
  "payment-plan-strings.pay-now": "Zahlen Sie jetzt {totalAmount}",
31
- "payment-plan-strings.pay.now.button": "Jetzt bezahlen"
50
+ "payment-plan-strings.pay.deferred.button": "Aufgeschobenes Bezahlen: {deferredTime}",
51
+ "payment-plan-strings.pay.now.button": "Jetzt bezahlen",
52
+ "skip-links.payment-info": "Gehen Sie zu den Zahlungsinformationen",
53
+ "skip-links.payment-plans": "Gehen Sie zu den Zahlungsoptionen",
54
+ "skip-links.payment-schedule": "Gehen Sie zum Zahlungskalender"
32
55
  }
33
56
  ;
34
57
 
@@ -1,4 +1,20 @@
1
1
  declare const _default: {
2
+ "accessibility.alma-logo.aria-label": "Alma logo - Multi-installment payment solution",
3
+ "accessibility.amex-card.aria-label": "American Express card accepted",
4
+ "accessibility.animation-control-instructions": "Automatic animation of payment plans active. Hover or navigate with the arrows to stop animation.",
5
+ "accessibility.cb-card.aria-label": "CB credit card accepted",
6
+ "accessibility.close-button.aria-label": "Close window",
7
+ "accessibility.mastercard.aria-label": "Mastercard accepted",
8
+ "accessibility.payment-options.radiogroup.aria-label": "Available payment options",
9
+ "accessibility.payment-plan-button.aria-label": "Select payment plan {planName}",
10
+ "accessibility.payment-plan.option.aria-label": "Payment option {planDescription}",
11
+ "accessibility.payment-plans-title": "Available payment options",
12
+ "accessibility.payment-schedule-title": "Payment schedule",
13
+ "accessibility.payment-widget.animation-control-description": "Animation automatique active. Survolez ou utilisez les flèches pour arrêter l'animation.",
14
+ "accessibility.payment-widget.open-button.aria-label": "Open Alma payment options",
15
+ "accessibility.plan-selection-changed": "Selected plan: {planDescription}",
16
+ "accessibility.skip-links.navigation.aria-label": "Quick navigation",
17
+ "accessibility.visa-card.aria-label": "Visa card accepted",
2
18
  "credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
3
19
  "credit-features.information": "Check your repayment capacity before committing yourself.",
4
20
  "credit-features.information.title": "Credit is a commitment and must be repaid.",
@@ -7,6 +23,7 @@ declare const _default: {
7
23
  "eligibility-modal.bullet-1": "Choose <strong>Alma</strong> at checkout.",
8
24
  "eligibility-modal.bullet-2": "Let us guide you and validate your payment in <strong>2 minutes.</strong>",
9
25
  "eligibility-modal.bullet-3": "<strong>Stay in control</strong> by advancing or postponing your deadlines at your own pace.",
26
+ "eligibility-modal.info-title": "How to pay",
10
27
  "eligibility-modal.no-eligibility": "Oops, looks like the simulation didn't work.",
11
28
  "eligibility-modal.p1x-bullet-1": "Choose <strong>Alma - Pay now</strong> at checkout.",
12
29
  "eligibility-modal.p1x-bullet-2": "Enter your <strong>credit card details.</strong>",
@@ -21,6 +38,8 @@ declare const _default: {
21
38
  "payment-plan-strings.day-abbreviation": "D{deferredDays}",
22
39
  "payment-plan-strings.default-message": "Pay in installments with Alma",
23
40
  "payment-plan-strings.deferred": "{totalAmount} to pay the {dueDate}",
41
+ "payment-plan-strings.deferred.days": "{days, number} {days, plural, one {day} other {days}}",
42
+ "payment-plan-strings.deferred.months": "{months, number} {months, plural, one {months} other {months}}",
24
43
  "payment-plan-strings.ineligible-greater-than-max": "Until {maxAmount}",
25
44
  "payment-plan-strings.ineligible-lower-than-min": "From {minAmount}",
26
45
  "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
@@ -28,7 +47,11 @@ declare const _default: {
28
47
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
29
48
  "payment-plan-strings.no-fee": "(free of charge)",
30
49
  "payment-plan-strings.pay-now": "Pay now {totalAmount}",
31
- "payment-plan-strings.pay.now.button": "Pay now"
50
+ "payment-plan-strings.pay.deferred.button": "Deferred payment: {deferredTime}",
51
+ "payment-plan-strings.pay.now.button": "Pay now",
52
+ "skip-links.payment-info": "Go to payment information",
53
+ "skip-links.payment-plans": "Go to payment options",
54
+ "skip-links.payment-schedule": "Go to payment calendar"
32
55
  }
33
56
  ;
34
57
 
@@ -1,4 +1,20 @@
1
1
  declare const _default: {
2
+ "accessibility.alma-logo.aria-label": "Logotipo Alma - Solución de pago multipago",
3
+ "accessibility.amex-card.aria-label": "Se acepta la tarjeta American Express",
4
+ "accessibility.animation-control-instructions": "La animación automática de los planes de pago está activa. Pase el ratón por encima o desplácese con las flechas para detener la animación.",
5
+ "accessibility.cb-card.aria-label": "Se acepta tarjeta de crédito CB",
6
+ "accessibility.close-button.aria-label": "Cerrar ventana",
7
+ "accessibility.mastercard.aria-label": "Se acepta Mastercard",
8
+ "accessibility.payment-options.radiogroup.aria-label": "Formas de pago disponibles",
9
+ "accessibility.payment-plan-button.aria-label": "Seleccione el plan de pago {planName}",
10
+ "accessibility.payment-plan.option.aria-label": "Forma de pago {planDescription}",
11
+ "accessibility.payment-plans-title": "Formas de pago disponibles",
12
+ "accessibility.payment-schedule-title": "Calendario de pagos",
13
+ "accessibility.payment-widget.animation-control-description": "Animación automática activa. Pase el ratón por encima o utilice las flechas para detener la animación.",
14
+ "accessibility.payment-widget.open-button.aria-label": "Opciones de pago Open Alma",
15
+ "accessibility.plan-selection-changed": "Plan seleccionado: {planDescription}",
16
+ "accessibility.skip-links.navigation.aria-label": "Navegación rápida",
17
+ "accessibility.visa-card.aria-label": "Se acepta tarjeta Visa",
2
18
  "credit-features.credit-cost-display": "{creditCost} (TAE {taegPercentage})",
3
19
  "credit-features.information": "Compruebe tu capacidad de reembolso antes de comprometerte.",
4
20
  "credit-features.information.title": "El crédito y/o pago a plazos es un compromiso y debe devolverse.",
@@ -7,6 +23,7 @@ declare const _default: {
7
23
  "eligibility-modal.bullet-1": "Elige <strong>Alma</strong> como método de pago.",
8
24
  "eligibility-modal.bullet-2": "Déjate guiar y válida tu pago en <strong>2 minutos.</strong>",
9
25
  "eligibility-modal.bullet-3": "<strong>Mantén el control</strong> adelantando o aplazando los plazos a su propio ritmo.",
26
+ "eligibility-modal.info-title": "Cómo pagar",
10
27
  "eligibility-modal.no-eligibility": "Uy, parece que la simulación no ha funcionado.",
11
28
  "eligibility-modal.p1x-bullet-1": "Elije <strong>Alma - Pagar ahora</strong> al momento de la compra.",
12
29
  "eligibility-modal.p1x-bullet-2": "Introduce los datos de tu tarjeta bancaria en <strong>.</strong>",
@@ -21,6 +38,8 @@ declare const _default: {
21
38
  "payment-plan-strings.day-abbreviation": "D{deferredDays}",
22
39
  "payment-plan-strings.default-message": "Pagar a plazos con Alma",
23
40
  "payment-plan-strings.deferred": "{totalAmount} a pagar el {dueDate}",
41
+ "payment-plan-strings.deferred.days": "{days, number} {days, plural, one {día} other {días}}",
42
+ "payment-plan-strings.deferred.months": "{months, number} {months, plural, one {meses} other {meses}}",
24
43
  "payment-plan-strings.ineligible-greater-than-max": "Hasta {maxAmount}",
25
44
  "payment-plan-strings.ineligible-lower-than-min": "Desde {minAmount}",
26
45
  "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
@@ -28,7 +47,11 @@ declare const _default: {
28
47
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} plazos de {totalAmount}",
29
48
  "payment-plan-strings.no-fee": "(sin intereses)",
30
49
  "payment-plan-strings.pay-now": "Pague ahora {totalAmount}",
31
- "payment-plan-strings.pay.now.button": "Pagar ahora"
50
+ "payment-plan-strings.pay.deferred.button": "Pago aplazado: {deferredTime}",
51
+ "payment-plan-strings.pay.now.button": "Pagar ahora",
52
+ "skip-links.payment-info": "Ir a la información de pago",
53
+ "skip-links.payment-plans": "Ir a las opciones de pago",
54
+ "skip-links.payment-schedule": "Ir al calendario de pagos"
32
55
  }
33
56
  ;
34
57
 
@@ -1,4 +1,20 @@
1
1
  declare const _default: {
2
+ "accessibility.alma-logo.aria-label": "Logo Alma - Solution de paiement en plusieurs fois",
3
+ "accessibility.amex-card.aria-label": "Carte American Express acceptée",
4
+ "accessibility.animation-control-instructions": "Animation automatique des plans de paiement active. Survolez ou naviguez avec les flèches pour arrêter l'animation.",
5
+ "accessibility.cb-card.aria-label": "Carte Bancaire CB acceptée",
6
+ "accessibility.close-button.aria-label": "Fermer la fenêtre",
7
+ "accessibility.mastercard.aria-label": "Carte Mastercard acceptée",
8
+ "accessibility.payment-options.radiogroup.aria-label": "Options de paiement disponibles",
9
+ "accessibility.payment-plan-button.aria-label": "Sélectionner le plan de paiement {planName}",
10
+ "accessibility.payment-plan.option.aria-label": "Option de paiement {planDescription}",
11
+ "accessibility.payment-plans-title": "Options de paiement disponibles",
12
+ "accessibility.payment-schedule-title": "Calendrier de paiement",
13
+ "accessibility.payment-widget.animation-control-description": "Animation automatique active. Survolez ou utilisez les flèches pour arrêter l'animation.",
14
+ "accessibility.payment-widget.open-button.aria-label": "Ouvrir les options de paiement Alma",
15
+ "accessibility.plan-selection-changed": "Plan sélectionné : {planDescription}",
16
+ "accessibility.skip-links.navigation.aria-label": "Navigation rapide",
17
+ "accessibility.visa-card.aria-label": "Carte Visa acceptée",
2
18
  "credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
3
19
  "credit-features.information": "Vérifiez vos capacités de remboursement avant de vous engager.",
4
20
  "credit-features.information.title": "Un crédit vous engage et doit être remboursé.",
@@ -7,6 +23,7 @@ declare const _default: {
7
23
  "eligibility-modal.bullet-1": "Choisissez <strong>Alma</strong> au moment du paiement.",
8
24
  "eligibility-modal.bullet-2": "Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",
9
25
  "eligibility-modal.bullet-3": "<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.",
26
+ "eligibility-modal.info-title": "Comment procéder au paiement",
10
27
  "eligibility-modal.no-eligibility": "Oups, il semblerait que la simulation n'ait pas fonctionné.",
11
28
  "eligibility-modal.p1x-bullet-1": "Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.",
12
29
  "eligibility-modal.p1x-bullet-2": "Renseignez les informations de votre <strong>carte bancaire.</strong>",
@@ -21,6 +38,8 @@ declare const _default: {
21
38
  "payment-plan-strings.day-abbreviation": "J{deferredDays}",
22
39
  "payment-plan-strings.default-message": "Payez en plusieurs fois avec Alma",
23
40
  "payment-plan-strings.deferred": "{totalAmount} à payer le {dueDate}",
41
+ "payment-plan-strings.deferred.days": "{days, number} {days, plural, one {jour} other {jours}}",
42
+ "payment-plan-strings.deferred.months": "{months, number} {months, plural, one {mois} other {mois}}",
24
43
  "payment-plan-strings.ineligible-greater-than-max": "Jusqu'à {maxAmount}",
25
44
  "payment-plan-strings.ineligible-lower-than-min": "À partir de {minAmount}",
26
45
  "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
@@ -28,7 +47,11 @@ declare const _default: {
28
47
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
29
48
  "payment-plan-strings.no-fee": "(sans frais)",
30
49
  "payment-plan-strings.pay-now": "Payer maintenant {totalAmount}",
31
- "payment-plan-strings.pay.now.button": "Payer maintenant"
50
+ "payment-plan-strings.pay.deferred.button": "Payer en différé : {deferredTime}",
51
+ "payment-plan-strings.pay.now.button": "Payer maintenant",
52
+ "skip-links.payment-info": "Allez aux informations de paiement",
53
+ "skip-links.payment-plans": "Allez aux options de paiements",
54
+ "skip-links.payment-schedule": "Allez au calendrier de paiements"
32
55
  }
33
56
  ;
34
57
 
@@ -1,4 +1,20 @@
1
1
  declare const _default: {
2
+ "accessibility.alma-logo.aria-label": "Logo Alma - Soluzione di pagamento multi-pagamento",
3
+ "accessibility.amex-card.aria-label": "Carta American Express accettata",
4
+ "accessibility.animation-control-instructions": "L'animazione automatica dei piani di pagamento è attiva. Passare il mouse sopra o navigare con le frecce per fermare l'animazione.",
5
+ "accessibility.cb-card.aria-label": "Carta di credito CB accettata",
6
+ "accessibility.close-button.aria-label": "Chiudere la finestra",
7
+ "accessibility.mastercard.aria-label": "Mastercard accettata",
8
+ "accessibility.payment-options.radiogroup.aria-label": "Opzioni di pagamento disponibili",
9
+ "accessibility.payment-plan-button.aria-label": "Selezionare il piano di pagamento {planName}",
10
+ "accessibility.payment-plan.option.aria-label": "Opzione di pagamento {planDescription}",
11
+ "accessibility.payment-plans-title": "Opzioni di pagamento disponibili",
12
+ "accessibility.payment-schedule-title": "Piano di pagamento",
13
+ "accessibility.payment-widget.animation-control-description": "Animazione automatica attiva. Passare il mouse sopra o usare le frecce per fermare l'animazione.",
14
+ "accessibility.payment-widget.open-button.aria-label": "Opzioni di pagamento Alma aperte",
15
+ "accessibility.plan-selection-changed": "Piano selezionato: {planDescription}",
16
+ "accessibility.skip-links.navigation.aria-label": "Navigazione rapida",
17
+ "accessibility.visa-card.aria-label": "Carta Visa accettata",
2
18
  "credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
3
19
  "credit-features.information": "Verificate la vostra capacità di rimborso prima di prendere un impegno.",
4
20
  "credit-features.information.title": "Il credito è un impegno e deve essere ripagato.",
@@ -7,6 +23,7 @@ declare const _default: {
7
23
  "eligibility-modal.bullet-1": "Seleziona <strong>Alma</strong> come metodo di pagamento.",
8
24
  "eligibility-modal.bullet-2": "Segui le istruzioni e completa l'acquisto <strong>in meno di 2 minuti.</strong>",
9
25
  "eligibility-modal.bullet-3": "<strong>Gestisci il tuo piano di pagamento</strong> e modifica le scadenze secondo le tue esigenze.",
26
+ "eligibility-modal.info-title": "Come pagare",
10
27
  "eligibility-modal.no-eligibility": "Ops, sembra che qualcosa non abbia funzionato.",
11
28
  "eligibility-modal.p1x-bullet-1": "Scegli <strong>Alma - Paga ora</strong> alla cassa.",
12
29
  "eligibility-modal.p1x-bullet-2": "Inserisci i dati della tua <strong>carta bancaria.</strong>",
@@ -21,6 +38,8 @@ declare const _default: {
21
38
  "payment-plan-strings.day-abbreviation": "G{deferredDays}",
22
39
  "payment-plan-strings.default-message": "Paga a rate con Alma, senza registrazione.",
23
40
  "payment-plan-strings.deferred": "{totalAmount} da pagare il {dueDate}",
41
+ "payment-plan-strings.deferred.days": "{days, number} {days, plural, one {giorno} other {giorni}}",
42
+ "payment-plan-strings.deferred.months": "{months, number} {months, plural, one {mesi} other {mesi}}",
24
43
  "payment-plan-strings.ineligible-greater-than-max": "Disponibile fino a {maxAmount}",
25
44
  "payment-plan-strings.ineligible-lower-than-min": "Pagamento rateale disponibile a partire da {minAmount}",
26
45
  "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
@@ -28,7 +47,11 @@ declare const _default: {
28
47
  "payment-plan-strings.multiple-installments-same-amount": "In {installmentsCount} rate mensili di {totalAmount}",
29
48
  "payment-plan-strings.no-fee": "(senza interessi)",
30
49
  "payment-plan-strings.pay-now": "Paga ora {totalAmount}",
31
- "payment-plan-strings.pay.now.button": "Paga ora"
50
+ "payment-plan-strings.pay.deferred.button": "Pagamento dilazionato: {deferredTime}",
51
+ "payment-plan-strings.pay.now.button": "Paga ora",
52
+ "skip-links.payment-info": "Vai alle informazioni di pagamento",
53
+ "skip-links.payment-plans": "Vai alle opzioni di pagamento",
54
+ "skip-links.payment-schedule": "Vai al calendario dei pagamenti"
32
55
  }
33
56
  ;
34
57
 
@@ -1,4 +1,20 @@
1
1
  declare const _default: {
2
+ "accessibility.alma-logo.aria-label": "Alma-logo - Multi-betalingoplossing",
3
+ "accessibility.amex-card.aria-label": "American Express kaart geaccepteerd",
4
+ "accessibility.animation-control-instructions": "Automatische animatie van betalingsplannen is actief. Beweeg erover of navigeer met de pijltjes om de animatie te stoppen.",
5
+ "accessibility.cb-card.aria-label": "CB creditcard geaccepteerd",
6
+ "accessibility.close-button.aria-label": "Venster sluiten",
7
+ "accessibility.mastercard.aria-label": "Mastercard geaccepteerd",
8
+ "accessibility.payment-options.radiogroup.aria-label": "Betalingsopties beschikbaar",
9
+ "accessibility.payment-plan-button.aria-label": "Selecteer betalingsplan {planName}",
10
+ "accessibility.payment-plan.option.aria-label": "Betalingsoptie {planDescription}",
11
+ "accessibility.payment-plans-title": "Betalingsopties beschikbaar",
12
+ "accessibility.payment-schedule-title": "Betalingsschema",
13
+ "accessibility.payment-widget.animation-control-description": "Automatische animatie actief. Beweeg erover of gebruik de pijltjes om de animatie te stoppen.",
14
+ "accessibility.payment-widget.open-button.aria-label": "Alma betalingsopties openen",
15
+ "accessibility.plan-selection-changed": "Gekozen plan: {planDescription}",
16
+ "accessibility.skip-links.navigation.aria-label": "Snelle navigatie",
17
+ "accessibility.visa-card.aria-label": "Visa-kaart geaccepteerd",
2
18
  "credit-features.credit-cost-display": "{creditCost} (gemiddeld rente percentage {taegPercentage})",
3
19
  "credit-features.information": "Controleer uw terugbetalingscapaciteit voordat u een toezegging doet.",
4
20
  "credit-features.information.title": "Krediet is een verplichting en moet worden terugbetaald.",
@@ -7,6 +23,7 @@ declare const _default: {
7
23
  "eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen om de eerste termijnbetaling te voldoen. Dit kan gemakkelijk via jouw favoriete betaalmethode.",
8
24
  "eligibility-modal.bullet-2": "Betaal gemakkelijk <strong>binnen 1 minuut </strong>. Je hebt hier geen account voor nodig.",
9
25
  "eligibility-modal.bullet-3": "<strong>Behoud de controle </strong> en bepaal je eigen tempo. Bij Alma schuif je de deadlines gemakkelijk vooruit of achteruit. Zonder bijkomende kosten.",
26
+ "eligibility-modal.info-title": "Hoe betalen?",
10
27
  "eligibility-modal.no-eligibility": "Oeps, het lijkt erop dat de simulatie niet werkte.",
11
28
  "eligibility-modal.p1x-bullet-1": "Kies <strong>Alma - Betaal nu</strong> bij het afrekenen om de eerste termijnbetaling te voldoen. Dit kan gemakkelijk via jouw favoriete betaalmethode.",
12
29
  "eligibility-modal.p1x-bullet-2": "Vul je <strong>gegevens </strong> in",
@@ -21,6 +38,8 @@ declare const _default: {
21
38
  "payment-plan-strings.day-abbreviation": "D{deferredDays}",
22
39
  "payment-plan-strings.default-message": "Betaal in termijnen bij Alma - helemaal rentevrij",
23
40
  "payment-plan-strings.deferred": "{totalAmount} te betalen op {dueDate}",
41
+ "payment-plan-strings.deferred.days": "{days, number} {days, plural, one {dag} other {dagen}}",
42
+ "payment-plan-strings.deferred.months": "{months, number} {months, plural, one {maanden} other {maanden}}",
24
43
  "payment-plan-strings.ineligible-greater-than-max": "Tot {maxAmount}",
25
44
  "payment-plan-strings.ineligible-lower-than-min": "Vanaf {minAmount}",
26
45
  "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
@@ -28,7 +47,11 @@ declare const _default: {
28
47
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
29
48
  "payment-plan-strings.no-fee": "(zonder kosten)",
30
49
  "payment-plan-strings.pay-now": "Betaal nu {totalAmount}",
31
- "payment-plan-strings.pay.now.button": "Betaal nu"
50
+ "payment-plan-strings.pay.deferred.button": "Betalen met uitgestelde betaling: {deferredTime}",
51
+ "payment-plan-strings.pay.now.button": "Betaal nu",
52
+ "skip-links.payment-info": "Ga naar betalingsinformatie",
53
+ "skip-links.payment-plans": "Ga naar betalingsopties",
54
+ "skip-links.payment-schedule": "Ga naar de betalingskalender"
32
55
  }
33
56
  ;
34
57
 
@@ -1,4 +1,20 @@
1
1
  declare const _default: {
2
+ "accessibility.alma-logo.aria-label": "Logótipo Alma - Solução de pagamento multi-instalação",
3
+ "accessibility.amex-card.aria-label": "Aceita cartão American Express",
4
+ "accessibility.animation-control-instructions": "A animação automática dos planos de pagamento está ativa. Passe o rato por cima ou navegue com as setas para parar a animação.",
5
+ "accessibility.cb-card.aria-label": "Aceita-se cartão de crédito CB",
6
+ "accessibility.close-button.aria-label": "Fechar a janela",
7
+ "accessibility.mastercard.aria-label": "Aceita Mastercard",
8
+ "accessibility.payment-options.radiogroup.aria-label": "Opções de pagamento disponíveis",
9
+ "accessibility.payment-plan-button.aria-label": "Selecionar plano de pagamento {planName}",
10
+ "accessibility.payment-plan.option.aria-label": "Opção de pagamento {planDescription}",
11
+ "accessibility.payment-plans-title": "Opções de pagamento disponíveis",
12
+ "accessibility.payment-schedule-title": "Calendário de pagamento",
13
+ "accessibility.payment-widget.animation-control-description": "Animação automática ativa. Passe o rato por cima ou utilize as setas para parar a animação.",
14
+ "accessibility.payment-widget.open-button.aria-label": "Opções de pagamento da Open Alma",
15
+ "accessibility.plan-selection-changed": "Plano selecionado: {planDescription}",
16
+ "accessibility.skip-links.navigation.aria-label": "Navegação rápida",
17
+ "accessibility.visa-card.aria-label": "Aceita cartão Visa",
2
18
  "credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
3
19
  "credit-features.information": "Verifique a sua capacidade de reembolso antes de assumir um compromisso.",
4
20
  "credit-features.information.title": "O crédito é um compromisso e deve ser reembolsado.",
@@ -7,6 +23,7 @@ declare const _default: {
7
23
  "eligibility-modal.bullet-1": "Seleccionar <strong>Alma - Pay Now</strong> no final da compra.",
8
24
  "eligibility-modal.bullet-2": "Siga as instruções e valide o seu pagamento em <strong>2 minutos.</strong>",
9
25
  "eligibility-modal.bullet-3": "<strong>Mantenha o controlo</strong> adiando as datas de pagamento ao seu próprio ritmo.",
26
+ "eligibility-modal.info-title": "Como pagar",
10
27
  "eligibility-modal.no-eligibility": "Ups, parece que a simulação não funcionou.",
11
28
  "eligibility-modal.p1x-bullet-1": "Escolha <strong>Alma - Pague agora</strong> no checkout.",
12
29
  "eligibility-modal.p1x-bullet-2": "Preencha os dados do seu <strong>cartão de bancário.</strong>",
@@ -21,6 +38,8 @@ declare const _default: {
21
38
  "payment-plan-strings.day-abbreviation": "D{deferredDays}",
22
39
  "payment-plan-strings.default-message": "Pagamento em prestações com a Alma",
23
40
  "payment-plan-strings.deferred": "{totalAmount} a pagar em {dueDate}",
41
+ "payment-plan-strings.deferred.days": "{days, number} {days, plural, one {dia} other {dias}}",
42
+ "payment-plan-strings.deferred.months": "{months, number} {months, plural, one {meses} other {meses}}",
24
43
  "payment-plan-strings.ineligible-greater-than-max": "Até {maxAmount}",
25
44
  "payment-plan-strings.ineligible-lower-than-min": "A partir de {minAmount}",
26
45
  "payment-plan-strings.month-abbreviation": "M{deferredMonths}",
@@ -28,7 +47,11 @@ declare const _default: {
28
47
  "payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
29
48
  "payment-plan-strings.no-fee": "(sem encargos)",
30
49
  "payment-plan-strings.pay-now": "Pagar agora {totalAmount}",
31
- "payment-plan-strings.pay.now.button": "Pagar agora"
50
+ "payment-plan-strings.pay.deferred.button": "Pagamento diferido: {deferredTime}",
51
+ "payment-plan-strings.pay.now.button": "Pagar agora",
52
+ "skip-links.payment-info": "Ir para as informações de pagamento",
53
+ "skip-links.payment-plans": "Ir para as opções de pagamento",
54
+ "skip-links.payment-schedule": "Ir para o calendário de pagamentos"
32
55
  }
33
56
  ;
34
57
 
@@ -1,4 +1,11 @@
1
1
  import { ReactNode } from '../../preact/compat';
2
+ import { IntlShape } from 'react-intl';
2
3
  import { EligibilityPlan, EligibilityPlanToDisplay } from '../types';
3
4
  export declare const paymentPlanShorthandName: (payment: EligibilityPlan) => ReactNode;
5
+ /**
6
+ * String version of paymentPlanShorthandName that returns a translated string
7
+ * instead of a ReactNode for use in aria-label attributes for example
8
+ */
9
+ export declare const paymentPlanShorthandText: (payment: EligibilityPlan, intl: IntlShape) => string;
4
10
  export declare const paymentPlanInfoText: (payment: EligibilityPlanToDisplay) => ReactNode;
11
+ export declare const getPlanDescription: (plan: EligibilityPlan, intl: IntlShape) => string;