@alma/widgets 3.1.0 → 3.1.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.
- package/dist/raw/widgets.js +13 -13
- package/dist/raw/widgets.m.js +13 -13
- package/dist/raw/widgets.modern.js +13 -13
- package/dist/raw/widgets.umd.js +13 -13
- package/dist/widgets.js +1 -1
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.m.js +1 -1
- package/dist/widgets.m.js.map +1 -1
- package/dist/widgets.modern.js +1 -1
- package/dist/widgets.modern.js.map +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/raw/widgets.js
CHANGED
|
@@ -1884,23 +1884,23 @@ var messagesDE = {
|
|
|
1884
1884
|
"credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
|
|
1885
1885
|
"credit-features.information": "Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.",
|
|
1886
1886
|
"credit-features.total-credit-cost": "Davon Kreditkosten",
|
|
1887
|
-
"eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong>
|
|
1887
|
+
"eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong> beim Check-out. ",
|
|
1888
1888
|
"eligibility-modal.bullet-2": "Füllen Sie die <strong>angeforderten</strong> Informationen aus.",
|
|
1889
1889
|
"eligibility-modal.bullet-3": "Ihre Zahlung wird <strong>sofort</strong> bestätigt!",
|
|
1890
|
-
"eligibility-modal.no-eligibility": "Ups, die
|
|
1891
|
-
"eligibility-modal.title-deferred-plan": "
|
|
1892
|
-
"eligibility-modal.title-normal": "
|
|
1890
|
+
"eligibility-modal.no-eligibility": "Ups, die Prüfung hat anscheinend nicht funktioniert.",
|
|
1891
|
+
"eligibility-modal.title-deferred-plan": "Zahlen Sie mit Alma in Raten oder später.",
|
|
1892
|
+
"eligibility-modal.title-normal": "Zahlen Sie mit Alma in mehreren Raten.",
|
|
1893
1893
|
"installments.today": "Heute",
|
|
1894
1894
|
"installments.total-amount": "Gesamtsumme",
|
|
1895
|
-
"installments.total-fees": "Davon Kosten
|
|
1895
|
+
"installments.total-fees": "Davon Kosten",
|
|
1896
1896
|
"payment-plan-strings.day-abbreviation": "T{numberOfDeferredDays}",
|
|
1897
|
-
"payment-plan-strings.default-message": "Bezahlen Sie in Raten mit Alma",
|
|
1897
|
+
"payment-plan-strings.default-message": "Bezahlen Sie zinsfrei in mehreren Raten mit Alma.",
|
|
1898
1898
|
"payment-plan-strings.deferred": "{totalAmount} zu zahlen am {dueDate}",
|
|
1899
1899
|
"payment-plan-strings.ineligible-greater-than-max": "Bis zu {maxAmount}",
|
|
1900
1900
|
"payment-plan-strings.ineligible-lower-than-min": "Ab {minAmount}",
|
|
1901
1901
|
"payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
|
|
1902
1902
|
"payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
|
|
1903
|
-
"payment-plan-strings.no-fee": "(
|
|
1903
|
+
"payment-plan-strings.no-fee": "(0% Finanzierung)"
|
|
1904
1904
|
};
|
|
1905
1905
|
|
|
1906
1906
|
var messagesEN = {
|
|
@@ -1934,8 +1934,8 @@ var messagesES = {
|
|
|
1934
1934
|
"eligibility-modal.bullet-2": "Completa la <strong>información</strong> solicitada.",
|
|
1935
1935
|
"eligibility-modal.bullet-3": "¡La validación de tu pago es <strong>instantánea</strong> !",
|
|
1936
1936
|
"eligibility-modal.no-eligibility": "Uy, parece que la simulación no ha funcionado.",
|
|
1937
|
-
"eligibility-modal.title-deferred-plan": "
|
|
1938
|
-
"eligibility-modal.title-normal": "Pagar a plazos con tarjeta
|
|
1937
|
+
"eligibility-modal.title-deferred-plan": "Paga a plazos o posteriormente con tarjeta bancaria con Alma.",
|
|
1938
|
+
"eligibility-modal.title-normal": "Pagar a plazos con tarjeta bancaria con Alma.",
|
|
1939
1939
|
"installments.today": "Hoy",
|
|
1940
1940
|
"installments.total-amount": "Total",
|
|
1941
1941
|
"installments.total-fees": "De los cuales, costes (IVA incluido)",
|
|
@@ -1974,17 +1974,17 @@ var messagesFR = {
|
|
|
1974
1974
|
|
|
1975
1975
|
var messagesIT = {
|
|
1976
1976
|
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
1977
|
-
"credit-features.information": "Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua
|
|
1977
|
+
"credit-features.information": "Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua disponibilità finanziaria prima di impegnarti.",
|
|
1978
1978
|
"credit-features.total-credit-cost": "Di cui commissioni",
|
|
1979
1979
|
"eligibility-modal.bullet-1": "Scegli <strong>Alma</strong> alla cassa.",
|
|
1980
1980
|
"eligibility-modal.bullet-2": "Compila le informazioni <strong></strong> richieste.",
|
|
1981
1981
|
"eligibility-modal.bullet-3": "La convalida del pagamento è <strong>istantanea</strong>!",
|
|
1982
1982
|
"eligibility-modal.no-eligibility": "Ops, sembra che qualcosa non abbia funzionato.",
|
|
1983
|
-
"eligibility-modal.title-deferred-plan": "
|
|
1984
|
-
"eligibility-modal.title-normal": "
|
|
1983
|
+
"eligibility-modal.title-deferred-plan": "Paga a rate o posticipa il pagamento con Alma, senza registrazione.",
|
|
1984
|
+
"eligibility-modal.title-normal": "Paga a rate con Alma, senza registrazione.",
|
|
1985
1985
|
"installments.today": "Oggi",
|
|
1986
1986
|
"installments.total-amount": "Totale",
|
|
1987
|
-
"installments.total-fees": "Di cui
|
|
1987
|
+
"installments.total-fees": "Di cui commissioni",
|
|
1988
1988
|
"payment-plan-strings.day-abbreviation": "G{numberOfDeferredDays}",
|
|
1989
1989
|
"payment-plan-strings.default-message": "Paga a rate con Alma",
|
|
1990
1990
|
"payment-plan-strings.deferred": "{totalAmount} da pagare il {dueDate}",
|
package/dist/raw/widgets.m.js
CHANGED
|
@@ -1881,23 +1881,23 @@ var messagesDE = {
|
|
|
1881
1881
|
"credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
|
|
1882
1882
|
"credit-features.information": "Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.",
|
|
1883
1883
|
"credit-features.total-credit-cost": "Davon Kreditkosten",
|
|
1884
|
-
"eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong>
|
|
1884
|
+
"eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong> beim Check-out. ",
|
|
1885
1885
|
"eligibility-modal.bullet-2": "Füllen Sie die <strong>angeforderten</strong> Informationen aus.",
|
|
1886
1886
|
"eligibility-modal.bullet-3": "Ihre Zahlung wird <strong>sofort</strong> bestätigt!",
|
|
1887
|
-
"eligibility-modal.no-eligibility": "Ups, die
|
|
1888
|
-
"eligibility-modal.title-deferred-plan": "
|
|
1889
|
-
"eligibility-modal.title-normal": "
|
|
1887
|
+
"eligibility-modal.no-eligibility": "Ups, die Prüfung hat anscheinend nicht funktioniert.",
|
|
1888
|
+
"eligibility-modal.title-deferred-plan": "Zahlen Sie mit Alma in Raten oder später.",
|
|
1889
|
+
"eligibility-modal.title-normal": "Zahlen Sie mit Alma in mehreren Raten.",
|
|
1890
1890
|
"installments.today": "Heute",
|
|
1891
1891
|
"installments.total-amount": "Gesamtsumme",
|
|
1892
|
-
"installments.total-fees": "Davon Kosten
|
|
1892
|
+
"installments.total-fees": "Davon Kosten",
|
|
1893
1893
|
"payment-plan-strings.day-abbreviation": "T{numberOfDeferredDays}",
|
|
1894
|
-
"payment-plan-strings.default-message": "Bezahlen Sie in Raten mit Alma",
|
|
1894
|
+
"payment-plan-strings.default-message": "Bezahlen Sie zinsfrei in mehreren Raten mit Alma.",
|
|
1895
1895
|
"payment-plan-strings.deferred": "{totalAmount} zu zahlen am {dueDate}",
|
|
1896
1896
|
"payment-plan-strings.ineligible-greater-than-max": "Bis zu {maxAmount}",
|
|
1897
1897
|
"payment-plan-strings.ineligible-lower-than-min": "Ab {minAmount}",
|
|
1898
1898
|
"payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
|
|
1899
1899
|
"payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
|
|
1900
|
-
"payment-plan-strings.no-fee": "(
|
|
1900
|
+
"payment-plan-strings.no-fee": "(0% Finanzierung)"
|
|
1901
1901
|
};
|
|
1902
1902
|
|
|
1903
1903
|
var messagesEN = {
|
|
@@ -1931,8 +1931,8 @@ var messagesES = {
|
|
|
1931
1931
|
"eligibility-modal.bullet-2": "Completa la <strong>información</strong> solicitada.",
|
|
1932
1932
|
"eligibility-modal.bullet-3": "¡La validación de tu pago es <strong>instantánea</strong> !",
|
|
1933
1933
|
"eligibility-modal.no-eligibility": "Uy, parece que la simulación no ha funcionado.",
|
|
1934
|
-
"eligibility-modal.title-deferred-plan": "
|
|
1935
|
-
"eligibility-modal.title-normal": "Pagar a plazos con tarjeta
|
|
1934
|
+
"eligibility-modal.title-deferred-plan": "Paga a plazos o posteriormente con tarjeta bancaria con Alma.",
|
|
1935
|
+
"eligibility-modal.title-normal": "Pagar a plazos con tarjeta bancaria con Alma.",
|
|
1936
1936
|
"installments.today": "Hoy",
|
|
1937
1937
|
"installments.total-amount": "Total",
|
|
1938
1938
|
"installments.total-fees": "De los cuales, costes (IVA incluido)",
|
|
@@ -1971,17 +1971,17 @@ var messagesFR = {
|
|
|
1971
1971
|
|
|
1972
1972
|
var messagesIT = {
|
|
1973
1973
|
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
1974
|
-
"credit-features.information": "Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua
|
|
1974
|
+
"credit-features.information": "Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua disponibilità finanziaria prima di impegnarti.",
|
|
1975
1975
|
"credit-features.total-credit-cost": "Di cui commissioni",
|
|
1976
1976
|
"eligibility-modal.bullet-1": "Scegli <strong>Alma</strong> alla cassa.",
|
|
1977
1977
|
"eligibility-modal.bullet-2": "Compila le informazioni <strong></strong> richieste.",
|
|
1978
1978
|
"eligibility-modal.bullet-3": "La convalida del pagamento è <strong>istantanea</strong>!",
|
|
1979
1979
|
"eligibility-modal.no-eligibility": "Ops, sembra che qualcosa non abbia funzionato.",
|
|
1980
|
-
"eligibility-modal.title-deferred-plan": "
|
|
1981
|
-
"eligibility-modal.title-normal": "
|
|
1980
|
+
"eligibility-modal.title-deferred-plan": "Paga a rate o posticipa il pagamento con Alma, senza registrazione.",
|
|
1981
|
+
"eligibility-modal.title-normal": "Paga a rate con Alma, senza registrazione.",
|
|
1982
1982
|
"installments.today": "Oggi",
|
|
1983
1983
|
"installments.total-amount": "Totale",
|
|
1984
|
-
"installments.total-fees": "Di cui
|
|
1984
|
+
"installments.total-fees": "Di cui commissioni",
|
|
1985
1985
|
"payment-plan-strings.day-abbreviation": "G{numberOfDeferredDays}",
|
|
1986
1986
|
"payment-plan-strings.default-message": "Paga a rate con Alma",
|
|
1987
1987
|
"payment-plan-strings.deferred": "{totalAmount} da pagare il {dueDate}",
|
|
@@ -1861,23 +1861,23 @@ var messagesDE = {
|
|
|
1861
1861
|
"credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
|
|
1862
1862
|
"credit-features.information": "Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.",
|
|
1863
1863
|
"credit-features.total-credit-cost": "Davon Kreditkosten",
|
|
1864
|
-
"eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong>
|
|
1864
|
+
"eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong> beim Check-out. ",
|
|
1865
1865
|
"eligibility-modal.bullet-2": "Füllen Sie die <strong>angeforderten</strong> Informationen aus.",
|
|
1866
1866
|
"eligibility-modal.bullet-3": "Ihre Zahlung wird <strong>sofort</strong> bestätigt!",
|
|
1867
|
-
"eligibility-modal.no-eligibility": "Ups, die
|
|
1868
|
-
"eligibility-modal.title-deferred-plan": "
|
|
1869
|
-
"eligibility-modal.title-normal": "
|
|
1867
|
+
"eligibility-modal.no-eligibility": "Ups, die Prüfung hat anscheinend nicht funktioniert.",
|
|
1868
|
+
"eligibility-modal.title-deferred-plan": "Zahlen Sie mit Alma in Raten oder später.",
|
|
1869
|
+
"eligibility-modal.title-normal": "Zahlen Sie mit Alma in mehreren Raten.",
|
|
1870
1870
|
"installments.today": "Heute",
|
|
1871
1871
|
"installments.total-amount": "Gesamtsumme",
|
|
1872
|
-
"installments.total-fees": "Davon Kosten
|
|
1872
|
+
"installments.total-fees": "Davon Kosten",
|
|
1873
1873
|
"payment-plan-strings.day-abbreviation": "T{numberOfDeferredDays}",
|
|
1874
|
-
"payment-plan-strings.default-message": "Bezahlen Sie in Raten mit Alma",
|
|
1874
|
+
"payment-plan-strings.default-message": "Bezahlen Sie zinsfrei in mehreren Raten mit Alma.",
|
|
1875
1875
|
"payment-plan-strings.deferred": "{totalAmount} zu zahlen am {dueDate}",
|
|
1876
1876
|
"payment-plan-strings.ineligible-greater-than-max": "Bis zu {maxAmount}",
|
|
1877
1877
|
"payment-plan-strings.ineligible-lower-than-min": "Ab {minAmount}",
|
|
1878
1878
|
"payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
|
|
1879
1879
|
"payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
|
|
1880
|
-
"payment-plan-strings.no-fee": "(
|
|
1880
|
+
"payment-plan-strings.no-fee": "(0% Finanzierung)"
|
|
1881
1881
|
};
|
|
1882
1882
|
|
|
1883
1883
|
var messagesEN = {
|
|
@@ -1911,8 +1911,8 @@ var messagesES = {
|
|
|
1911
1911
|
"eligibility-modal.bullet-2": "Completa la <strong>información</strong> solicitada.",
|
|
1912
1912
|
"eligibility-modal.bullet-3": "¡La validación de tu pago es <strong>instantánea</strong> !",
|
|
1913
1913
|
"eligibility-modal.no-eligibility": "Uy, parece que la simulación no ha funcionado.",
|
|
1914
|
-
"eligibility-modal.title-deferred-plan": "
|
|
1915
|
-
"eligibility-modal.title-normal": "Pagar a plazos con tarjeta
|
|
1914
|
+
"eligibility-modal.title-deferred-plan": "Paga a plazos o posteriormente con tarjeta bancaria con Alma.",
|
|
1915
|
+
"eligibility-modal.title-normal": "Pagar a plazos con tarjeta bancaria con Alma.",
|
|
1916
1916
|
"installments.today": "Hoy",
|
|
1917
1917
|
"installments.total-amount": "Total",
|
|
1918
1918
|
"installments.total-fees": "De los cuales, costes (IVA incluido)",
|
|
@@ -1951,17 +1951,17 @@ var messagesFR = {
|
|
|
1951
1951
|
|
|
1952
1952
|
var messagesIT = {
|
|
1953
1953
|
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
1954
|
-
"credit-features.information": "Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua
|
|
1954
|
+
"credit-features.information": "Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua disponibilità finanziaria prima di impegnarti.",
|
|
1955
1955
|
"credit-features.total-credit-cost": "Di cui commissioni",
|
|
1956
1956
|
"eligibility-modal.bullet-1": "Scegli <strong>Alma</strong> alla cassa.",
|
|
1957
1957
|
"eligibility-modal.bullet-2": "Compila le informazioni <strong></strong> richieste.",
|
|
1958
1958
|
"eligibility-modal.bullet-3": "La convalida del pagamento è <strong>istantanea</strong>!",
|
|
1959
1959
|
"eligibility-modal.no-eligibility": "Ops, sembra che qualcosa non abbia funzionato.",
|
|
1960
|
-
"eligibility-modal.title-deferred-plan": "
|
|
1961
|
-
"eligibility-modal.title-normal": "
|
|
1960
|
+
"eligibility-modal.title-deferred-plan": "Paga a rate o posticipa il pagamento con Alma, senza registrazione.",
|
|
1961
|
+
"eligibility-modal.title-normal": "Paga a rate con Alma, senza registrazione.",
|
|
1962
1962
|
"installments.today": "Oggi",
|
|
1963
1963
|
"installments.total-amount": "Totale",
|
|
1964
|
-
"installments.total-fees": "Di cui
|
|
1964
|
+
"installments.total-fees": "Di cui commissioni",
|
|
1965
1965
|
"payment-plan-strings.day-abbreviation": "G{numberOfDeferredDays}",
|
|
1966
1966
|
"payment-plan-strings.default-message": "Paga a rate con Alma",
|
|
1967
1967
|
"payment-plan-strings.deferred": "{totalAmount} da pagare il {dueDate}",
|
package/dist/raw/widgets.umd.js
CHANGED
|
@@ -6715,23 +6715,23 @@
|
|
|
6715
6715
|
"credit-features.credit-cost-display": "{creditCost} (APR {taegPercentage})",
|
|
6716
6716
|
"credit-features.information": "Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.",
|
|
6717
6717
|
"credit-features.total-credit-cost": "Davon Kreditkosten",
|
|
6718
|
-
"eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong>
|
|
6718
|
+
"eligibility-modal.bullet-1": "Wählen Sie <strong>Alma</strong> beim Check-out. ",
|
|
6719
6719
|
"eligibility-modal.bullet-2": "Füllen Sie die <strong>angeforderten</strong> Informationen aus.",
|
|
6720
6720
|
"eligibility-modal.bullet-3": "Ihre Zahlung wird <strong>sofort</strong> bestätigt!",
|
|
6721
|
-
"eligibility-modal.no-eligibility": "Ups, die
|
|
6722
|
-
"eligibility-modal.title-deferred-plan": "
|
|
6723
|
-
"eligibility-modal.title-normal": "
|
|
6721
|
+
"eligibility-modal.no-eligibility": "Ups, die Prüfung hat anscheinend nicht funktioniert.",
|
|
6722
|
+
"eligibility-modal.title-deferred-plan": "Zahlen Sie mit Alma in Raten oder später.",
|
|
6723
|
+
"eligibility-modal.title-normal": "Zahlen Sie mit Alma in mehreren Raten.",
|
|
6724
6724
|
"installments.today": "Heute",
|
|
6725
6725
|
"installments.total-amount": "Gesamtsumme",
|
|
6726
|
-
"installments.total-fees": "Davon Kosten
|
|
6726
|
+
"installments.total-fees": "Davon Kosten",
|
|
6727
6727
|
"payment-plan-strings.day-abbreviation": "T{numberOfDeferredDays}",
|
|
6728
|
-
"payment-plan-strings.default-message": "Bezahlen Sie in Raten mit Alma",
|
|
6728
|
+
"payment-plan-strings.default-message": "Bezahlen Sie zinsfrei in mehreren Raten mit Alma.",
|
|
6729
6729
|
"payment-plan-strings.deferred": "{totalAmount} zu zahlen am {dueDate}",
|
|
6730
6730
|
"payment-plan-strings.ineligible-greater-than-max": "Bis zu {maxAmount}",
|
|
6731
6731
|
"payment-plan-strings.ineligible-lower-than-min": "Ab {minAmount}",
|
|
6732
6732
|
"payment-plan-strings.multiple-installments": "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
|
|
6733
6733
|
"payment-plan-strings.multiple-installments-same-amount": "{installmentsCount} x {totalAmount}",
|
|
6734
|
-
"payment-plan-strings.no-fee": "(
|
|
6734
|
+
"payment-plan-strings.no-fee": "(0% Finanzierung)"
|
|
6735
6735
|
};
|
|
6736
6736
|
|
|
6737
6737
|
var messagesEN = {
|
|
@@ -6765,8 +6765,8 @@
|
|
|
6765
6765
|
"eligibility-modal.bullet-2": "Completa la <strong>información</strong> solicitada.",
|
|
6766
6766
|
"eligibility-modal.bullet-3": "¡La validación de tu pago es <strong>instantánea</strong> !",
|
|
6767
6767
|
"eligibility-modal.no-eligibility": "Uy, parece que la simulación no ha funcionado.",
|
|
6768
|
-
"eligibility-modal.title-deferred-plan": "
|
|
6769
|
-
"eligibility-modal.title-normal": "Pagar a plazos con tarjeta
|
|
6768
|
+
"eligibility-modal.title-deferred-plan": "Paga a plazos o posteriormente con tarjeta bancaria con Alma.",
|
|
6769
|
+
"eligibility-modal.title-normal": "Pagar a plazos con tarjeta bancaria con Alma.",
|
|
6770
6770
|
"installments.today": "Hoy",
|
|
6771
6771
|
"installments.total-amount": "Total",
|
|
6772
6772
|
"installments.total-fees": "De los cuales, costes (IVA incluido)",
|
|
@@ -6805,17 +6805,17 @@
|
|
|
6805
6805
|
|
|
6806
6806
|
var messagesIT = {
|
|
6807
6807
|
"credit-features.credit-cost-display": "{creditCost} (TAEG {taegPercentage})",
|
|
6808
|
-
"credit-features.information": "Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua
|
|
6808
|
+
"credit-features.information": "Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua disponibilità finanziaria prima di impegnarti.",
|
|
6809
6809
|
"credit-features.total-credit-cost": "Di cui commissioni",
|
|
6810
6810
|
"eligibility-modal.bullet-1": "Scegli <strong>Alma</strong> alla cassa.",
|
|
6811
6811
|
"eligibility-modal.bullet-2": "Compila le informazioni <strong></strong> richieste.",
|
|
6812
6812
|
"eligibility-modal.bullet-3": "La convalida del pagamento è <strong>istantanea</strong>!",
|
|
6813
6813
|
"eligibility-modal.no-eligibility": "Ops, sembra che qualcosa non abbia funzionato.",
|
|
6814
|
-
"eligibility-modal.title-deferred-plan": "
|
|
6815
|
-
"eligibility-modal.title-normal": "
|
|
6814
|
+
"eligibility-modal.title-deferred-plan": "Paga a rate o posticipa il pagamento con Alma, senza registrazione.",
|
|
6815
|
+
"eligibility-modal.title-normal": "Paga a rate con Alma, senza registrazione.",
|
|
6816
6816
|
"installments.today": "Oggi",
|
|
6817
6817
|
"installments.total-amount": "Totale",
|
|
6818
|
-
"installments.total-fees": "Di cui
|
|
6818
|
+
"installments.total-fees": "Di cui commissioni",
|
|
6819
6819
|
"payment-plan-strings.day-abbreviation": "G{numberOfDeferredDays}",
|
|
6820
6820
|
"payment-plan-strings.default-message": "Paga a rate con Alma",
|
|
6821
6821
|
"payment-plan-strings.deferred": "{totalAmount} da pagare il {dueDate}",
|
package/dist/widgets.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=require("react"),n=e(t),r=require("react-intl"),a=require("react-dom"),i=e(require("classnames")),l=e(require("react-modal")),o=e(require("no-scroll")),s=require("react-responsive"),u=require("date-fns"),c=function(e){try{return!!e()}catch(e){return!0}},m=!c(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),d=Function.prototype,f=d.call,p=m&&d.bind.bind(f,f),g=m?function(e){return e&&p(e)}:function(e){return e&&function(){return f.apply(e,arguments)}},y=Math.ceil,h=Math.floor,v=Math.trunc||function(e){var t=+e;return(t>0?h:y)(t)},b=function(e){var t=+e;return t!=t||0===t?0:v(t)},E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function A(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var C,O,w=function(e){return e&&e.Math==Math&&e},_=w("object"==typeof globalThis&&globalThis)||w("object"==typeof window&&window)||w("object"==typeof self&&self)||w("object"==typeof E&&E)||function(){return this}()||Function("return this")(),P=Object.defineProperty,S=function(e,t){try{P(_,e,{value:t,configurable:!0,writable:!0})}catch(n){_[e]=t}return t},x=_["__core-js_shared__"]||S("__core-js_shared__",{}),I=A(function(e){(e.exports=function(e,t){return x[e]||(x[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.8",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE",source:"https://github.com/zloirock/core-js"})}),M=TypeError,N=function(e){if(null==e)throw M("Can't call method on "+e);return e},D=Object,F=function(e){return D(N(e))},L=g({}.hasOwnProperty),j=Object.hasOwn||function(e,t){return L(F(e),t)},T=0,R=Math.random(),k=g(1..toString),z=function(e){return"Symbol("+(void 0===e?"":e)+")_"+k(++T+R,36)},B=function(e){return"function"==typeof e},H=function(e){return B(e)?e:void 0},q=function(e,t){return arguments.length<2?H(_[e]):_[e]&&_[e][t]},U=q("navigator","userAgent")||"",V=_.process,G=_.Deno,Z=V&&V.versions||G&&G.version,W=Z&&Z.v8;W&&(O=(C=W.split("."))[0]>0&&C[0]<4?1:+(C[0]+C[1])),!O&&U&&(!(C=U.match(/Edge\/(\d+)/))||C[1]>=74)&&(C=U.match(/Chrome\/(\d+)/))&&(O=+C[1]);var J=O,K=!!Object.getOwnPropertySymbols&&!c(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&J&&J<41}),Y=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Q=I("wks"),X=_.Symbol,$=X&&X.for,ee=Y?X:X&&X.withoutSetter||z,te=function(e){if(!j(Q,e)||!K&&"string"!=typeof Q[e]){var t="Symbol."+e;Q[e]=K&&j(X,e)?X[e]:Y&&$?$(t):ee(t)}return Q[e]},ne={};ne[te("toStringTag")]="z";var re="[object z]"===String(ne),ae=g({}.toString),ie=g("".slice),le=function(e){return ie(ae(e),8,-1)},oe=te("toStringTag"),se=Object,ue="Arguments"==le(function(){return arguments}()),ce=re?le:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=se(e),oe))?n:ue?le(t):"Object"==(r=le(t))&&B(t.callee)?"Arguments":r},me=String,de=function(e){if("Symbol"===ce(e))throw TypeError("Cannot convert a Symbol value to a string");return me(e)},fe=g("".charAt),pe=g("".charCodeAt),ge=g("".slice),ye=function(e){return function(t,n){var r,a,i=de(N(t)),l=b(n),o=i.length;return l<0||l>=o?e?"":void 0:(r=pe(i,l))<55296||r>56319||l+1===o||(a=pe(i,l+1))<56320||a>57343?e?fe(i,l):r:e?ge(i,l,l+2):a-56320+(r-55296<<10)+65536}},he={codeAt:ye(!1),charAt:ye(!0)},ve=g(Function.toString);B(x.inspectSource)||(x.inspectSource=function(e){return ve(e)});var be,Ee,Ae,Ce=x.inspectSource,Oe=_.WeakMap,we=B(Oe)&&/native code/.test(Ce(Oe)),_e=function(e){return"object"==typeof e?null!==e:B(e)},Pe=!c(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Se=_.document,xe=_e(Se)&&_e(Se.createElement),Ie=function(e){return xe?Se.createElement(e):{}},Me=!Pe&&!c(function(){return 7!=Object.defineProperty(Ie("div"),"a",{get:function(){return 7}}).a}),Ne=Pe&&c(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),De=String,Fe=TypeError,Le=function(e){if(_e(e))return e;throw Fe(De(e)+" is not an object")},je=Function.prototype.call,Te=m?je.bind(je):function(){return je.apply(je,arguments)},Re=g({}.isPrototypeOf),ke=Object,ze=Y?function(e){return"symbol"==typeof e}:function(e){var t=q("Symbol");return B(t)&&Re(t.prototype,ke(e))},Be=String,He=function(e){try{return Be(e)}catch(e){return"Object"}},qe=TypeError,Ue=function(e){if(B(e))return e;throw qe(He(e)+" is not a function")},Ve=function(e,t){var n=e[t];return null==n?void 0:Ue(n)},Ge=TypeError,Ze=TypeError,We=te("toPrimitive"),Je=function(e){var t=function(e,t){if(!_e(e)||ze(e))return e;var n,r=Ve(e,We);if(r){if(void 0===t&&(t="default"),n=Te(r,e,t),!_e(n)||ze(n))return n;throw Ze("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&B(n=e.toString)&&!_e(r=Te(n,e)))return r;if(B(n=e.valueOf)&&!_e(r=Te(n,e)))return r;if("string"!==t&&B(n=e.toString)&&!_e(r=Te(n,e)))return r;throw Ge("Can't convert object to primitive value")}(e,t)}(e,"string");return ze(t)?t:t+""},Ke=TypeError,Ye=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Xe={f:Pe?Ne?function(e,t,n){if(Le(e),t=Je(t),Le(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Qe(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Ye(e,t,n)}:Ye:function(e,t,n){if(Le(e),t=Je(t),Le(n),Me)try{return Ye(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ke("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},$e=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},et=Pe?function(e,t,n){return Xe.f(e,t,$e(1,n))}:function(e,t,n){return e[t]=n,e},tt=I("keys"),nt=function(e){return tt[e]||(tt[e]=z(e))},rt={},at=_.TypeError;if(we||x.state){var it=x.state||(x.state=new(0,_.WeakMap)),lt=g(it.get),ot=g(it.has),st=g(it.set);be=function(e,t){if(ot(it,e))throw new at("Object already initialized");return t.facade=e,st(it,e,t),t},Ee=function(e){return lt(it,e)||{}},Ae=function(e){return ot(it,e)}}else{var ut=nt("state");rt[ut]=!0,be=function(e,t){if(j(e,ut))throw new at("Object already initialized");return t.facade=e,et(e,ut,t),t},Ee=function(e){return j(e,ut)?e[ut]:{}},Ae=function(e){return j(e,ut)}}var ct,mt={set:be,get:Ee,has:Ae,enforce:function(e){return Ae(e)?Ee(e):be(e,{})},getterFor:function(e){return function(t){var n;if(!_e(t)||(n=Ee(t)).type!==e)throw at("Incompatible receiver, "+e+" required");return n}}},dt={}.propertyIsEnumerable,ft=Object.getOwnPropertyDescriptor,pt={f:ft&&!dt.call({1:2},1)?function(e){var t=ft(this,e);return!!t&&t.enumerable}:dt},gt=Object,yt=g("".split),ht=c(function(){return!gt("z").propertyIsEnumerable(0)})?function(e){return"String"==le(e)?yt(e,""):gt(e)}:gt,vt=function(e){return ht(N(e))},bt=Object.getOwnPropertyDescriptor,Et={f:Pe?bt:function(e,t){if(e=vt(e),t=Je(t),Me)try{return bt(e,t)}catch(e){}if(j(e,t))return $e(!Te(pt.f,e,t),e[t])}},At=Function.prototype,Ct=Pe&&Object.getOwnPropertyDescriptor,Ot=j(At,"name"),wt={EXISTS:Ot,PROPER:Ot&&"something"===function(){}.name,CONFIGURABLE:Ot&&(!Pe||Pe&&Ct(At,"name").configurable)},_t=A(function(e){var t=wt.CONFIGURABLE,n=mt.enforce,r=mt.get,a=Object.defineProperty,i=Pe&&!c(function(){return 8!==a(function(){},"length",{value:8}).length}),l=String(String).split("String"),o=e.exports=function(e,r,o){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),o&&o.getter&&(r="get "+r),o&&o.setter&&(r="set "+r),(!j(e,"name")||t&&e.name!==r)&&a(e,"name",{value:r,configurable:!0}),i&&o&&j(o,"arity")&&e.length!==o.arity&&a(e,"length",{value:o.arity});try{o&&j(o,"constructor")&&o.constructor?Pe&&a(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=n(e);return j(s,"source")||(s.source=l.join("string"==typeof r?r:"")),e};Function.prototype.toString=o(function(){return B(this)&&r(this).source||Ce(this)},"toString")}),Pt=function(e,t,n,r){r||(r={});var a=r.enumerable,i=void 0!==r.name?r.name:t;return B(n)&&_t(n,i,r),r.global?a?e[t]=n:S(t,n):(r.unsafe?e[t]&&(a=!0):delete e[t],a?e[t]=n:et(e,t,n)),e},St=Math.max,xt=Math.min,It=Math.min,Mt=function(e){return(t=e.length)>0?It(b(t),9007199254740991):0;var t},Nt=function(e){return function(t,n,r){var a,i=vt(t),l=Mt(i),o=function(e,t){var n=b(e);return n<0?St(n+t,0):xt(n,t)}(r,l);if(e&&n!=n){for(;l>o;)if((a=i[o++])!=a)return!0}else for(;l>o;o++)if((e||o in i)&&i[o]===n)return e||o||0;return!e&&-1}},Dt=(Nt(!0),Nt(!1)),Ft=g([].push),Lt=function(e,t){var n,r=vt(e),a=0,i=[];for(n in r)!j(rt,n)&&j(r,n)&&Ft(i,n);for(;t.length>a;)j(r,n=t[a++])&&(~Dt(i,n)||Ft(i,n));return i},jt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tt=jt.concat("length","prototype"),Rt={f:Object.getOwnPropertyNames||function(e){return Lt(e,Tt)}},kt={f:Object.getOwnPropertySymbols},zt=g([].concat),Bt=q("Reflect","ownKeys")||function(e){var t=Rt.f(Le(e)),n=kt.f;return n?zt(t,n(e)):t},Ht=function(e,t,n){for(var r=Bt(t),a=Xe.f,i=Et.f,l=0;l<r.length;l++){var o=r[l];j(e,o)||n&&j(n,o)||a(e,o,i(t,o))}},qt=/#|\.prototype\./,Ut=function(e,t){var n=Gt[Vt(e)];return n==Wt||n!=Zt&&(B(t)?c(t):!!t)},Vt=Ut.normalize=function(e){return String(e).replace(qt,".").toLowerCase()},Gt=Ut.data={},Zt=Ut.NATIVE="N",Wt=Ut.POLYFILL="P",Jt=Ut,Kt=Et.f,Yt=function(e,t){var n,r,a,i,l,o=e.target,s=e.global,u=e.stat;if(n=s?_:u?_[o]||S(o,{}):(_[o]||{}).prototype)for(r in t){if(i=t[r],a=e.dontCallGetSet?(l=Kt(n,r))&&l.value:n[r],!Jt(s?r:o+(u?".":"#")+r,e.forced)&&void 0!==a){if(typeof i==typeof a)continue;Ht(i,a)}(e.sham||a&&a.sham)&&et(i,"sham",!0),Pt(n,r,i,e)}},Qt=Object.keys||function(e){return Lt(e,jt)},Xt={f:Pe&&!Ne?Object.defineProperties:function(e,t){Le(e);for(var n,r=vt(t),a=Qt(t),i=a.length,l=0;i>l;)Xe.f(e,n=a[l++],r[n]);return e}},$t=q("document","documentElement"),en=nt("IE_PROTO"),tn=function(){},nn=function(e){return"<script>"+e+"<\/script>"},rn=function(e){e.write(nn("")),e.close();var t=e.parentWindow.Object;return e=null,t},an=function(){try{ct=new ActiveXObject("htmlfile")}catch(e){}var e,t;an="undefined"!=typeof document?document.domain&&ct?rn(ct):((t=Ie("iframe")).style.display="none",$t.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(nn("document.F=Object")),e.close(),e.F):rn(ct);for(var n=jt.length;n--;)delete an.prototype[jt[n]];return an()};rt[en]=!0;var ln,on,sn,un=Object.create||function(e,t){var n;return null!==e?(tn.prototype=Le(e),n=new tn,tn.prototype=null,n[en]=e):n=an(),void 0===t?n:Xt.f(n,t)},cn=!c(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),mn=nt("IE_PROTO"),dn=Object,fn=dn.prototype,pn=cn?dn.getPrototypeOf:function(e){var t=F(e);if(j(t,mn))return t[mn];var n=t.constructor;return B(n)&&t instanceof n?n.prototype:t instanceof dn?fn:null},gn=te("iterator"),yn=!1;[].keys&&("next"in(sn=[].keys())?(on=pn(pn(sn)))!==Object.prototype&&(ln=on):yn=!0),(null==ln||c(function(){var e={};return ln[gn].call(e)!==e}))&&(ln={}),B(ln[gn])||Pt(ln,gn,function(){return this});var hn={IteratorPrototype:ln,BUGGY_SAFARI_ITERATORS:yn},vn=Xe.f,bn=te("toStringTag"),En=function(e,t,n){e&&!n&&(e=e.prototype),e&&!j(e,bn)&&vn(e,bn,{configurable:!0,value:t})},An={},Cn=hn.IteratorPrototype,On=function(){return this},wn=String,_n=TypeError,Pn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=g(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Le(n),function(e){if("object"==typeof e||B(e))return e;throw _n("Can't set "+wn(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Sn=hn.IteratorPrototype,xn=hn.BUGGY_SAFARI_ITERATORS,In=te("iterator"),Mn=function(){return this},Nn=he.charAt,Dn=mt.set,Fn=mt.getterFor("String Iterator");!function(e,t,n,r,a,i,l){!function(e,t,n,r){e.prototype=un(Cn,{next:$e(1,function(){var e,t=Fn(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Nn(n,r),t.index+=e.length,{value:e,done:!1})})}),En(e,"String Iterator",!1),An["String Iterator"]=On}(n);var o,s,u,c=function(e){if(void 0===e&&f)return f;if(!xn&&e in m)return m[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},m=e.prototype,d=m[In]||m["@@iterator"]||void 0,f=!xn&&d||c(void 0);if(void(d&&(o=pn(d.call(new e)))!==Object.prototype&&o.next&&(pn(o)!==Sn&&(Pn?Pn(o,Sn):B(o[In])||Pt(o,In,Mn)),En(o,"String Iterator",!0))))if(void(s={values:c("values"),keys:c("keys"),entries:c("entries")}))for(u in s)(xn||!(u in m))&&Pt(m,u,s[u]);else Yt({target:"String",proto:!0,forced:xn||!1},s);m[In]!==f&&Pt(m,In,f,{name:void 0}),An.String=f}(String,0,function(e){Dn(this,{type:"String Iterator",string:de(e),index:0})});var Ln=g(g.bind),jn=function(e,t){return Ue(e),void 0===t?e:m?Ln(e,t):function(){return e.apply(t,arguments)}},Tn=function(e,t,n,r){try{return r?t(Le(n)[0],n[1]):t(n)}catch(t){!function(e,t,n){var r;Le(e);try{if(!(r=Ve(e,"return")))throw n;r=Te(r,e)}catch(e){r=e}throw n}(e,0,t)}},Rn=te("iterator"),kn=Array.prototype,zn=function(e){return void 0!==e&&(An.Array===e||kn[Rn]===e)},Bn=function(){},Hn=[],qn=q("Reflect","construct"),Un=/^\s*(?:class|function)\b/,Vn=g(Un.exec),Gn=!Un.exec(Bn),Zn=function(e){if(!B(e))return!1;try{return qn(Bn,Hn,e),!0}catch(e){return!1}},Wn=function(e){if(!B(e))return!1;switch(ce(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Gn||!!Vn(Un,Ce(e))}catch(e){return!0}};Wn.sham=!0;var Jn=!qn||c(function(){var e;return Zn(Zn.call)||!Zn(Object)||!Zn(function(){e=!0})||e})?Wn:Zn,Kn=function(e,t,n){var r=Je(t);r in e?Xe.f(e,r,$e(0,n)):e[r]=n},Yn=te("iterator"),Qn=function(e){if(null!=e)return Ve(e,Yn)||Ve(e,"@@iterator")||An[ce(e)]},Xn=TypeError,$n=function(e,t){var n=arguments.length<2?Qn(e):t;if(Ue(n))return Le(Te(n,e));throw Xn(He(e)+" is not iterable")},er=Array,tr=te("iterator"),nr=!1;try{var rr=0,ar={next:function(){return{done:!!rr++}},return:function(){nr=!0}};ar[tr]=function(){return this},Array.from(ar,function(){throw 2})}catch(e){}var ir,lr,or,sr,ur=!function(e,t){if(!nr)return!1;var n=!1;try{var r={};r[tr]=function(){return{next:function(){return{done:n=!0}}}},Array.from(r)}catch(e){}return n}();function cr(e){return Number((e/100).toFixed(2))}Yt({target:"Array",stat:!0,forced:ur},{from:function(e){var t=F(e),n=Jn(this),r=arguments.length,a=r>1?arguments[1]:void 0,i=void 0!==a;i&&(a=jn(a,r>2?arguments[2]:void 0));var l,o,s,u,c,m,d=Qn(t),f=0;if(!d||this===er&&zn(d))for(l=Mt(t),o=n?new this(l):er(l);l>f;f++)m=i?a(t[f],f):t[f],Kn(o,f,m);else for(c=(u=$n(t,d)).next,o=n?new this:[];!(s=Te(c,u)).done;f++)m=i?Tn(u,a,[s.value,f],!0):s.value,Kn(o,f,m);return o.length=f,o}}),function(e){e.PaymentPlans="PaymentPlans",e.Modal="Modal"}(ir||(ir={})),function(e){e.PENDING="pending",e.SUCCESS="success",e.FAILED="failed"}(lr||(lr={})),function(e){e.en="en",e["fr-FR"]="fr-FR",e.fr="fr",e["de-DE"]="de-DE",e.de="de",e.it="it",e["it-IT"]="it-IT",e.es="es",e["es-ES"]="es-ES",e.pt="pt",e["pt-PT"]="pt-PT",e.nl="nl",e["nl-NL"]="nl-NL",e["nl-BE"]="nl-BE"}(or||(or={})),"function"!=typeof(sr=window.Element.prototype).matches&&(sr.matches=sr.msMatchesSelector||sr.mozMatchesSelector||sr.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)++n;return Boolean(t[n])}),"function"!=typeof sr.closest&&(sr.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null}),"".trim||(String.prototype.trim=function(){return this.replace(/^[\s]+|[\s]+$/g,"")}),function(e){e.DOMException||((DOMException=function(e){this.message=e}).prototype=new Error);var t,n,r=/[\11\12\14\15\40]/,a=0,i=function(e,t){if(""===t)throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided must not be empty.");if(-1!==(a=t.search(r)))throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided ('"+t[a]+"') contains HTML space characters, which are not valid in tokens.")};"function"!=typeof DOMTokenList&&function(e){var t=e.document,n=e.Object,a=n.prototype.hasOwnProperty,l=n.defineProperty,o=0,s=0,u=function(){if(!o)throw TypeError("Illegal constructor")};function c(){var t=e.event,n=t.propertyName;if(!s&&("className"===n||"classList"===n&&!l)){var a=t.srcElement,i=a[" uCLp"],o=""+a[n],u=o.trim().split(r),c=a["classList"===n?" uCL":"classList"],m=i.length;e:for(var d=0,f=i.length=u.length,p=0;d!==f;++d){for(var g=0;g!==d;++g)if(u[g]===u[d]){p++;continue e}c[d-p]=u[d]}for(var y=f-p;y<m;++y)delete c[y];if("classList"!==n)return;s=1,a.classList=c,a.className=o,s=0,c.length=u.length-p}}function m(e){if(!e||!("innerHTML"in e))throw TypeError("Illegal invocation");e.detachEvent("onpropertychange",c),o=1;try{var t=function(){};t.prototype=new u}finally{o=0}var n=t.prototype,a=new t;e:for(var i=e.className.trim().split(r),m=0,d=i.length,f=0;m!==d;++m){for(var p=0;p!==m;++p)if(i[p]===i[m]){f++;continue e}this[m-f]=i[m]}n.length=d-f,n.value=e.className,n[" uCL"]=e,l?(l(e,"classList",{enumerable:1,get:function(){return a},configurable:0,set:function(t){s=1,e.className=n.value=t+="",s=0;var i=t.trim().split(r),l=n.length;e:for(var o=0,u=n.length=i.length,c=0;o!==u;++o){for(var m=0;m!==o;++m)if(i[m]===i[o]){c++;continue e}a[o-c]=i[o]}for(var d=u-c;d<l;++d)delete a[d]}}),l(e," uCLp",{enumerable:0,configurable:0,writeable:0,value:t.prototype}),l(n," uCL",{enumerable:0,configurable:0,writeable:0,value:e})):(e.classList=a,e[" uCL"]=a,e[" uCLp"]=t.prototype),e.attachEvent("onpropertychange",c)}u.prototype.toString=u.prototype.toLocaleString=function(){return this.value},u.prototype.add=function(){e:for(var e=0,t=arguments.length,n="",r=this[" uCL"],a=r[" uCLp"];e!==t;++e){i("add",n=arguments[e]+"");for(var l=0,o=a.length,u=n;l!==o;++l){if(this[l]===n)continue e;u+=" "+this[l]}this[o]=n,a.length+=1,a.value=u}s=1,r.className=a.value,s=0},u.prototype.remove=function(){for(var e=0,t=arguments.length,n="",r=this[" uCL"],a=r[" uCLp"];e!==t;++e){i("remove",n=arguments[e]+"");for(var l=0,o=a.length,u="",c=0;l!==o;++l)c?this[l-1]=this[l]:this[l]!==n?u+=this[l]+" ":c=1;c&&(delete this[o],a.length-=1,a.value=u)}s=1,r.className=a.value,s=0},e.DOMTokenList=u;try{e.Object.defineProperty(e.Element.prototype,"classList",{enumerable:1,get:function(e){return a.call(this,"classList")||m(this),this.classList},configurable:0,set:function(e){this.className=e}})}catch(n){e[" uCL"]=m,t.documentElement.firstChild.appendChild(t.createElement("style")).styleSheet.cssText='_*{x-uCLp:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}[class]{x-uCLp/**/:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}'}}(e),t=e.DOMTokenList.prototype,n=e.document.createElement("div").classList,t.item||(t.item=function(e){return void 0===(t=this[e])?null:t;var t}),t.toggle&&!1===n.toggle("a",0)||(t.toggle=function(e){if(arguments.length>1)return this[arguments[1]?"add":"remove"](e),!!arguments[1];var t=this.value;return this.remove(t),t===this.value&&(this.add(e),!0)}),t.replace&&"boolean"==typeof n.replace("a","b")||(t.replace=function(e,t){i("replace",e),i("replace",t);var n=this.value;return this.remove(e),this.value!==n&&(this.add(t),!0)}),t.contains||(t.contains=function(e){for(var t=0,n=this.length;t!==n;++t)if(this[t]===e)return!0;return!1}),t.forEach||(t.forEach=function(e){if(1===arguments.length)for(var t=0,n=this.length;t!==n;++t)e(this[t],t,this);else{t=0,n=this.length;for(var r=arguments[1];t!==n;++t)e.call(r,this[t],t,this)}}),t.entries||(t.entries=function(){var e=this;return{next:function(){return 0<e.length?{value:[0,e[0]],done:!1}:{done:!0}}}}),t.values||(t.values=function(){var e=this;return{next:function(){return 0<e.length?{value:e[0],done:!1}:{done:!0}}}}),t.keys||(t.keys=function(){var e=this;return{next:function(){return 0<e.length?{value:0,done:!1}:{done:!0}}}})}(window);var mr={"credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.","credit-features.total-credit-cost":"Davon Kreditkosten","eligibility-modal.bullet-1":"Wählen Sie <strong>Alma</strong> bei der Bezahlung.","eligibility-modal.bullet-2":"Füllen Sie die <strong>angeforderten</strong> Informationen aus.","eligibility-modal.bullet-3":"Ihre Zahlung wird <strong>sofort</strong> bestätigt!","eligibility-modal.no-eligibility":"Ups, die Simulation hat anscheinend nicht funktioniert.","eligibility-modal.title-deferred-plan":"Bezahlen Sie mit Alma in Raten oder später per Kreditkarte.","eligibility-modal.title-normal":"Bezahlen Sie mit Alma in mehreren Raten per Kreditkarte.","installments.today":"Heute","installments.total-amount":"Gesamtsumme","installments.total-fees":"Davon Kosten (inkl. MwSt.)","payment-plan-strings.day-abbreviation":"T{numberOfDeferredDays}","payment-plan-strings.default-message":"Bezahlen Sie in Raten mit Alma","payment-plan-strings.deferred":"{totalAmount} zu zahlen am {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Bis zu {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Ab {minAmount}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(gebührenfrei)"},dr={"credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"A loan commits you and must be repaid. Check your ability to repay before committing yourself.","credit-features.total-credit-cost":"Of which cost of credit","eligibility-modal.bullet-1":"Choose <strong>Alma</strong> at checkout.","eligibility-modal.bullet-2":"Fill in the <strong>information</strong> requested.","eligibility-modal.bullet-3":"The validation of your payment is <strong>instantaneous</strong> !","eligibility-modal.no-eligibility":"Oops, looks like the simulation didn't work.","eligibility-modal.title-deferred-plan":"Pay in installments or later by credit card with Alma.","eligibility-modal.title-normal":"Pay in installments by credit card with Alma.","installments.today":"Today","installments.total-amount":"Total","installments.total-fees":"Of which costs (incl. VAT)","payment-plan-strings.day-abbreviation":"D{numberOfDeferredDays}","payment-plan-strings.default-message":"Pay in installments with Alma","payment-plan-strings.deferred":"{totalAmount} to be paid on {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Until {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"From {minAmount}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(free of charge)"},fr={"credit-features.credit-cost-display":"{creditCost} (TAE {taegPercentage})","credit-features.information":"Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.","credit-features.total-credit-cost":"Coste de crédito (incl. en el total)","eligibility-modal.bullet-1":"Elige <strong>Alma</strong> como método de pago.","eligibility-modal.bullet-2":"Completa la <strong>información</strong> solicitada.","eligibility-modal.bullet-3":"¡La validación de tu pago es <strong>instantánea</strong> !","eligibility-modal.no-eligibility":"Uy, parece que la simulación no ha funcionado.","eligibility-modal.title-deferred-plan":"Pague a plazos o posteriormente con tarjeta de crédito con Alma.","eligibility-modal.title-normal":"Pagar a plazos con tarjeta de crédito con Alma.","installments.today":"Hoy","installments.total-amount":"Total","installments.total-fees":"De los cuales, costes (IVA incluido)","payment-plan-strings.day-abbreviation":"D{numberOfDeferredDays}","payment-plan-strings.default-message":"Pagar a plazos con Alma","payment-plan-strings.deferred":"{totalAmount} a pagar el {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Hasta {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Desde {minAmount}","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}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} plazos de {totalAmount}","payment-plan-strings.no-fee":"(sin intereses)"},pr={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.","credit-features.total-credit-cost":"Dont coût du crédit","eligibility-modal.bullet-1":"Choisissez <strong>Alma</strong> au moment du paiement.","eligibility-modal.bullet-2":"Renseignez les <strong>informations</strong> demandées.","eligibility-modal.bullet-3":"La validation de votre paiement est <strong>instantanée</strong> !","eligibility-modal.no-eligibility":"Oups, il semblerait que la simulation n'ait pas fonctionné.","eligibility-modal.title-deferred-plan":"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma.","eligibility-modal.title-normal":"Payez en plusieurs fois par carte bancaire avec Alma.","installments.today":"Aujourd'hui","installments.total-amount":"Total","installments.total-fees":"Dont frais (TTC)","payment-plan-strings.day-abbreviation":"J{numberOfDeferredDays}","payment-plan-strings.default-message":"Payez en plusieurs fois avec Alma","payment-plan-strings.deferred":"{totalAmount} à payer le {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Jusqu'à {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"À partir de {minAmount}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sans frais)"},gr={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua capacità di rimborso prima di impegnarti.","credit-features.total-credit-cost":"Di cui commissioni","eligibility-modal.bullet-1":"Scegli <strong>Alma</strong> alla cassa.","eligibility-modal.bullet-2":"Compila le informazioni <strong></strong> richieste.","eligibility-modal.bullet-3":"La convalida del pagamento è <strong>istantanea</strong>!","eligibility-modal.no-eligibility":"Ops, sembra che qualcosa non abbia funzionato.","eligibility-modal.title-deferred-plan":"Pagate a rate o in seguito con carta di credito con Alma.","eligibility-modal.title-normal":"Pagamenti rateali con carta di credito con Alma.","installments.today":"Oggi","installments.total-amount":"Totale","installments.total-fees":"Di cui costi (IVA inclusa)","payment-plan-strings.day-abbreviation":"G{numberOfDeferredDays}","payment-plan-strings.default-message":"Paga a rate con Alma","payment-plan-strings.deferred":"{totalAmount} da pagare il {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Disponibile fino a {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Pagamento rateale disponibile a partire da {minAmount}","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}}}","payment-plan-strings.multiple-installments-same-amount":"In {installmentsCount} rate mensili di {totalAmount}","payment-plan-strings.no-fee":"(senza interessi)"},yr={"credit-features.credit-cost-display":"{creditCost} (gemiddeld rente percentage {taegPercentage})","credit-features.information":"Een lening bindt je en moet worden terugbetaald. Ga na of u kunt terugbetalen voordat u zich vastlegt.","credit-features.total-credit-cost":"Waarvan kosten van krediet","eligibility-modal.bullet-1":"Kies <strong>Alma</strong> bij het afrekenen.","eligibility-modal.bullet-2":"Vul de <strong>gevraagde informatie</strong> in.","eligibility-modal.bullet-3":"De validatie van uw betaling is <strong>onmiddellijk</strong> !","eligibility-modal.no-eligibility":"Oeps, het lijkt erop dat de simulatie niet werkte.","eligibility-modal.title-deferred-plan":"Betaal in termijnen of later per creditcard met Alma.","eligibility-modal.title-normal":"Betaal in termijnen met een creditcard bij Alma.","installments.today":"Tegenwoordig","installments.total-amount":"Totaal","installments.total-fees":"Waarvan kosten (incl. BTW)","payment-plan-strings.day-abbreviation":"D{numberOfDeferredDays}","payment-plan-strings.default-message":"Betaal in termijnen met Alma","payment-plan-strings.deferred":"{totalAmount} te betalen op {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Tot {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Van {minAmount}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(zonder kosten)"},hr={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Um crédito é um compromisso e deve ser reembolsado. Verifique a sua capacidade de pagar antes de se comprometer.","credit-features.total-credit-cost":"Incluindo custo do crédito","eligibility-modal.bullet-1":"Escolha a <strong>Alma</strong> no checkout.","eligibility-modal.bullet-2":"Preencha os <strong>dados</strong> solicitados.","eligibility-modal.bullet-3":"A validação do seu pagamento é <strong>instantaneamente</strong> !","eligibility-modal.no-eligibility":"Ups, parece que a simulação não funcionou.","eligibility-modal.title-deferred-plan":"Pagar em prestações ou mais tarde por cartão de crédito com Alma.","eligibility-modal.title-normal":"Pagar em prestações por cartão de crédito com Alma.","installments.today":"Hoje","installments.total-amount":"Total","installments.total-fees":"Dos quais custos (incl. IVA)","payment-plan-strings.day-abbreviation":"D{numberOfDeferredDays}","payment-plan-strings.default-message":"Pague em prestações através da Alma","payment-plan-strings.deferred":"{totalAmount} a pagar em {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Até {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"A partir de {minAmount}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sem encargos)"},vr=function(e){switch(e.slice(0,2)){case or.fr:return pr;case or.es:return fr;case or.it:return gr;case or.de:return mr;case or.pt:return hr;case or.nl:return yr;case or.en:default:return dr}},br=function(e){var t=e.children,a=e.locale;return n.createElement(r.IntlProvider,{messages:vr(a),locale:a,defaultLocale:"en"},t)};function Er(){return(Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ar(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(a[n]=e[n]);return a}var Cr=function(e,t){return!!e.eligible&&!!t&&e.purchase_amount>=(null==t?void 0:t.minAmount)&&e.purchase_amount<=(null==t?void 0:t.maxAmount)},Or=function(e,n,r,a,i){var l,o,s,u=n.domain,c=n.merchantId,m=t.useState([]),d=m[0],f=m[1],p=t.useState(lr.PENDING),g=p[0],y=p[1],h=null==r?void 0:r.map(function(e){return{installments_count:e.installmentsCount,deferred_days:null==e?void 0:e.deferredDays,deferred_months:null==e?void 0:e.deferredMonths}});return t.useEffect(function(){if(g===lr.PENDING){var t=null;a&&(t={country:a});var n=null;i&&(n={country:i}),function(e,t,n){void 0===e&&(e="");try{return Promise.resolve(fetch(e,{method:"POST",headers:Er({"Content-Type":"application/json"},n),body:JSON.stringify(t)})).then(function(e){return e.json()})}catch(e){return Promise.reject(e)}}(u+"/v2/payments/eligibility",{purchase_amount:e,queries:h,billing_address:t,shipping_address:n},{Authorization:"Alma-Merchant-Auth "+c}).then(function(e){f(e),y(lr.SUCCESS)}).catch(function(){y(lr.FAILED)})}},[g]),[(l=d,o=r,s=l.filter(function(e){return!(1===e.installments_count&&0===e.deferred_days&&0===e.deferred_months)}),o?s.map(function(e){var t=30*(e.deferred_months?e.deferred_months:0)+(e.deferred_days?e.deferred_days:0),n=o.find(function(n){return e.installments_count===n.installmentsCount&&t===30*(n.deferredMonths?n.deferredMonths:0)+(n.deferredDays?n.deferredDays:0)});return Er({},e,{eligible:Cr(e,n)},function(e,t){var n,r=null==(n=e.constraints)?void 0:n.purchase_amount;return r&&t?{minAmount:Math.max(t.minAmount,null==r?void 0:r.minimum),maxAmount:Math.min(t.maxAmount,null==r?void 0:r.maximum)}:null!=t?t:{}}(e,n))}):s),g]},wr="alma-eligibility-modal",_r={desktopModal:wr+"-desktop-modal",mobileModal:wr+"-mobile-modal",leftSide:wr+"-left-side",bullet:wr+"-bullet",rightSide:wr+"-right-side",title:wr+"-title",info:wr+"-info",infoMessage:wr+"-info-message",eligibilityOptions:wr+"-eligibility-options",activeOption:wr+"-active-option",closeButton:wr+"-close-button",scheduleDetails:wr+"-schedule-details",scheduleTotal:wr+"-schedule-total",scheduleCredit:wr+"-schedule-credit",cardContainer:wr+"-card-logos",summary:wr+"-summary"},Pr=function(e){var t=e.currentPlan,a=r.useIntl(),l=cr(t.purchase_amount+t.customer_total_cost_amount),o=cr(t.customer_total_cost_amount),s=(null==t?void 0:t.annual_interest_rate)&&t.annual_interest_rate/1e4||0,u=cr(t.customer_total_cost_amount),c=t.installments_count>4;return n.createElement("div",{className:i("_GTTk7",_r.summary),"data-testid":"modal-summary"},n.createElement("div",{className:i("_34s2g",_r.scheduleTotal)},n.createElement(r.FormattedMessage,{tagName:"div",id:"installments.total-amount",defaultMessage:"Total"}),n.createElement(r.FormattedNumber,{value:l||0,style:"currency",currency:"EUR"})),n.createElement("div",{className:i("_W7qIA",_r.scheduleCredit)},c?n.createElement(n.Fragment,null,n.createElement(r.FormattedMessage,{id:"credit-features.total-credit-cost",defaultMessage:"Dont coût du crédit"}),n.createElement("span",{className:"_24KmE"},n.createElement(r.FormattedMessage,{id:"credit-features.credit-cost-display",defaultMessage:"{creditCost} (TAEG {taegPercentage})",values:{creditCost:a.formatNumber(o,{style:"currency",currency:"EUR"}),taegPercentage:a.formatNumber(s,{style:"percent",maximumFractionDigits:2})}}))):n.createElement(n.Fragment,null,n.createElement(r.FormattedMessage,{id:"installments.total-fees",defaultMessage:"Dont frais (TTC)",tagName:"div"}),n.createElement("div",null,n.createElement(r.FormattedNumber,{value:u,style:"currency",currency:"EUR"})))))},Sr=function(e){return n.createElement("div",{className:i("_31lrj",e.className),"data-testid":"loader"},n.createElement("svg",{width:"120",height:"134",viewBox:"0 0 120 134",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M83.8164 41.0325C79.1708 22.8241 69.3458 17 59.9939 17C50.642 17 40.8171 22.8241 36.1715 41.0325L16 117H35.8804C39.119 104.311 49.1016 97.2436 59.9939 97.2436C70.8863 97.2436 80.8689 104.324 84.1075 117H104L83.8164 41.0325ZM59.9939 79.5428C53.6623 79.5428 47.925 82.0552 43.6918 86.1283L55.0936 41.9207C56.1853 37.6953 57.7985 36.3503 60.0061 36.3503C62.2136 36.3503 63.8269 37.6953 64.9185 41.9207L76.3082 86.1283C72.075 82.0552 66.3256 79.5428 59.9939 79.5428Z",fill:"#FA5022"})))};function xr(e){var t=e.color;return n.createElement("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M12.5964 11.404L9.41445 8.22205L12.5964 5.04007C12.7732 4.86329 12.7732 4.50974 12.5964 4.33296L11.8893 3.62585C11.6904 3.42698 11.359 3.44908 11.1822 3.62585L8.00023 6.80783L4.81825 3.62585C4.61938 3.42698 4.28792 3.44908 4.11114 3.62585L3.40404 4.33296C3.20516 4.53183 3.20516 4.84119 3.40404 5.04007L6.58602 8.22205L3.40404 11.404C3.20516 11.6029 3.20517 11.9123 3.40404 12.1111L4.11115 12.8182C4.28792 12.995 4.61938 13.0171 4.81825 12.8182L8.00023 9.63626L11.1822 12.8182C11.359 12.995 11.6904 13.0171 11.8893 12.8182L12.5964 12.1111C12.7732 11.9344 12.7732 11.5808 12.5964 11.404Z",fill:void 0===t?"#fff":t}))}var Ir,Mr,Nr,Dr=["children","isOpen","onClose","className","contentClassName","scrollable"],Fr=function(e){var t,r=e.children,a=e.isOpen,s=e.onClose,u=e.className,c=e.contentClassName,m=e.scrollable,d=void 0!==m&&m,f=Ar(e,Dr);return l.setAppElement("body"),n.createElement(l,Object.assign({className:i("_D8SjB",u),overlayClassName:"_1yxCb",onAfterOpen:function(){o.on()},onAfterClose:function(){o.off()},onRequestClose:s,isOpen:a,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0},f),n.createElement("div",{className:"_12LLh"},n.createElement("button",{onClick:s,className:i("_3YRro",_r.closeButton),"data-testid":"modal-close-button"},n.createElement(xr,null))),n.createElement("div",{className:i("_ocM9x",c,(t={},t._1GP2F=d,t))},r))},Lr=function(e){var t=e.installments_count,a=e.deferred_days+30*e.deferred_months;return 1===t?n.createElement(r.FormattedMessage,{id:"payment-plan-strings.day-abbreviation",defaultMessage:"J{numberOfDeferredDays}",values:{numberOfDeferredDays:a>0?"+"+a:""}}):t+"x"},jr=function(e){var t;if(null!=(t=e.payment_plan)&&t.every(function(e){return 0===e.customer_fee&&0===e.customer_interest}))return n.createElement(n.Fragment,null," ",n.createElement(r.FormattedMessage,{id:"payment-plan-strings.no-fee",defaultMessage:"(sans frais)"}))},Tr=function(e){var t=e.eligibilityPlans,r=e.currentPlanIndex,a=e.setCurrentPlanIndex;return n.createElement("div",{className:i("_1l2Oa",_r.eligibilityOptions)},t.map(function(e,t){var l;return n.createElement("button",{key:t,className:i((l={},l[i("_3rue7",_r.activeOption)]=t===r,l)),onClick:function(){return a(t)}},Lr(e))}))},Rr=function(e){var t,a,l=e.installment,o=e.index;return n.createElement("div",{className:"_z2Uiv","data-testid":"installment-"+o},n.createElement("div",{className:"_2lJQy"},n.createElement("div",{className:i("_1Z9wr",(t={},t._2Nmkl=0===o,t))}),u.isToday(1e3*l.due_date)?n.createElement(r.FormattedMessage,{id:"installments.today",defaultMessage:"Aujourd'hui",tagName:"strong"}):n.createElement(r.FormattedDate,{value:1e3*l.due_date,day:"numeric",month:"long",year:"numeric"})),n.createElement("div",{className:i((a={},a["_ezY-3"]=0===o,a))},n.createElement(r.FormattedNumber,{value:l.total_amount/100,style:"currency",currency:"EUR"})))},kr=function(e){var t=e.currentPlan,a=t.installments_count>4;return n.createElement(n.Fragment,null,n.createElement("div",{className:i("_MPKjS",_r.scheduleDetails),"data-testid":"modal-installments-element"},((null==t?void 0:t.payment_plan)||[]).map(function(e,t){return n.createElement(Rr,{key:1e3*e.due_date,installment:e,index:t})}),a&&n.createElement("div",{className:"_3a7er"},n.createElement(r.FormattedMessage,{id:"credit-features.information",defaultMessage:"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager."}))))},zr=["color"],Br=function(e){var t=e.color,r=void 0===t?"#FA5022":t,a=Ar(e,zr);return n.createElement("svg",Object.assign({width:"50",height:"25",viewBox:"0 0 360 109",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),n.createElement("path",{d:"M333.24 28.3462V38.4459C327.504 31.1018 319.176 26.5132 309.288 26.5132C290.208 26.5132 275.424 43.5497 275.424 64.5757C275.424 85.6018 290.208 102.638 309.288 102.638C319.872 102.638 328.668 97.3908 334.416 89.1241V100.817H352.668V28.3462H333.24ZM314.028 84.4876C303.42 84.4876 294.828 75.574 294.828 64.5757C294.828 53.5775 303.42 44.6639 314.028 44.6639C324.636 44.6639 333.228 53.5775 333.228 64.5757C333.228 75.574 324.636 84.4876 314.028 84.4876ZM109.5 8.23073H128.916V100.805H109.5V8.23073ZM151.248 59.7356C151.248 39.8117 163.5 26.5252 180.468 26.5252C191.004 26.5252 199.332 31.1976 204.348 39.1648C209.376 31.1976 217.692 26.5252 228.228 26.5252C245.196 26.5252 257.448 39.8117 257.448 59.7356V100.817H238.032V57.639C238.032 49.8635 232.872 44.7957 226.044 44.7957C219.216 44.7957 214.056 49.8755 214.056 57.639V100.817H194.64V57.639C194.64 49.8635 189.48 44.7957 182.652 44.7957C175.824 44.7957 170.664 49.8755 170.664 57.639V100.817H151.248V59.7356ZM74.34 29.101C69.744 11.9088 60.0241 6.40967 50.772 6.40967C41.5201 6.40967 31.8 11.9088 27.204 29.101L7.24805 100.829H26.916C30.12 88.8485 39.996 82.1753 50.772 82.1753C61.548 82.1753 71.424 88.8605 74.6281 100.829H94.3081L74.34 29.101ZM50.772 65.4623C44.508 65.4623 38.8321 67.8345 34.6441 71.6803L45.924 29.9397C47.0041 25.9501 48.6001 24.6802 50.784 24.6802C52.9681 24.6802 54.5641 25.9501 55.6441 29.9397L66.912 71.6803C62.724 67.8345 57.036 65.4623 50.772 65.4623Z",fill:r}))},Hr=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},n.createElement("defs",null,n.createElement("linearGradient",{id:"cardamex",x1:"10.914%",x2:"87.432%",y1:"86.279%",y2:"15.035%"},n.createElement("stop",{offset:"0%",stopColor:"#3FA9F5"}),n.createElement("stop",{offset:"100%",stopColor:"#0071BC"}))),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:"url(#cardamex)",fillRule:"nonzero",d:"M22.559 16H1.379C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.441 1.338z"}),n.createElement("g",{fill:"#FFF"},n.createElement("path",{d:"M10.115 8.711L8.889 6.044H7.295v3.852L5.517 6.044H4.17l-1.778 4.03h1.103l.368-.889h2.023l.368.89h2.084V7.11l1.349 2.963h.92l1.348-2.904v2.904h.98v-4.03H11.28l-1.165 2.667zm-5.272-.474H4.23l.613-1.422v.06l.613 1.362h-.613z"}),n.createElement("path",{fillRule:"nonzero",d:"M19.372 7.94l.735-.77 1.042-1.185h-1.287L18.697 7.23l-1.164-1.245h-3.985v3.97h3.923l1.226-1.303 1.165 1.304h1.287L20.107 8.71l-.735-.77zM16.92 9.186h-2.33v-.77h2.268v-.77H14.59v-.712h2.33L18.084 8 16.92 9.185z"}))))},qr=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},n.createElement("g",{fill:"none",fillRule:"nonzero"},n.createElement("path",{fill:"#FCFCFC",d:"M22.684 16H1.38C.627 16 0 15.39 0 14.656V1.344C0 .61.627 0 1.379 0H22.62C23.373 0 24 .61 24 1.344v13.374c0 .671-.564 1.282-1.316 1.282z"})," ",n.createElement("path",{fill:"#005098",d:"M8.889 10.726l.948-5.393h1.482l-.949 5.393zM15.704 5.452a3.658 3.658 0 0 0-1.304-.237c-1.481 0-2.489.71-2.489 1.778 0 .77.711 1.185 1.304 1.481.592.237.77.415.77.652 0 .355-.474.533-.889.533-.592 0-.889-.059-1.363-.296l-.177-.06-.178 1.186c.355.178 1.007.296 1.659.296 1.54 0 2.548-.71 2.548-1.837 0-.592-.415-1.067-1.244-1.481-.534-.237-.83-.415-.83-.652 0-.237.237-.474.83-.474.474 0 .83.118 1.126.178l.118.059.119-1.126M19.496 5.333H18.37c-.355 0-.592.119-.77.474l-2.193 4.919h1.541s.237-.652.296-.83h1.897c.059.178.178.83.178.83h1.362l-1.185-5.393zM17.66 8.77l.593-1.481s.118-.296.178-.533l.118.474s.296 1.303.356 1.54h-1.245zM7.644 5.333L6.222 9.007l-.178-.77C5.748 7.348 4.92 6.459 4.03 5.985l1.303 4.682h1.541l2.311-5.393h-1.54"}),n.createElement("path",{fill:"#F6A500",d:"M4.919 5.333h-2.37v.119c1.836.474 3.08 1.54 3.555 2.844L5.57 5.807c-.118-.414-.355-.474-.651-.474"}),n.createElement("path",{fill:"#0A5296",d:"M23.937 3.23H0V1.316C0 .598.627 0 1.379 0H22.62C23.373 0 24 .598 24 1.316V3.23h-.063z"}),n.createElement("path",{fill:"#F4A428",d:"M.063 13H24v1.8c0 .655-.625 1.2-1.375 1.2H1.375C.625 16 0 15.455 0 14.8V13h.063z"})))},Ur=function(){return n.createElement("svg",{width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},n.createElement("g",{id:"Parcours-1C-B",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},n.createElement("g",{id:"mobile-1C-Paiement-V1",transform:"translate(-269.000000, -313.000000)"},n.createElement("g",{id:"mastercard",transform:"translate(269.000000, 313.000000)"},n.createElement("rect",{id:"Rectangle",fill:"#FFFFFF",x:"0",y:"0",width:"24",height:"16",rx:"1"}),n.createElement("g",{id:"Group-6",transform:"translate(4.000000, 3.000000)"},n.createElement("circle",{id:"Oval-4-Copy",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}),n.createElement("circle",{id:"Oval-4",fillOpacity:"0.25",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),n.createElement("circle",{id:"Oval-4-Copy-2",fillOpacity:"0.9",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),n.createElement("circle",{id:"Oval-4-Copy-3",fillOpacity:"0.3",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}))))))},Vr=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},n.createElement("defs",null,n.createElement("linearGradient",{id:"cardcb",x1:"5.842%",x2:"95.393%",y1:"81.753%",y2:"17.344%"},n.createElement("stop",{offset:"0%",stopColor:"#39B54A"})," ",n.createElement("stop",{offset:"100%",stopColor:"#0A5296"}))),n.createElement("g",{fill:"none",fillRule:"nonzero"},n.createElement("path",{fill:"url(#cardcb)",d:"M22.621 16H1.38C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.379 1.338z"}),n.createElement("g",{fill:"#FFF"},n.createElement("path",{d:"M19.094 4.03h-6.437V8h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.066-.98-1.955-2.145-1.955zM19.094 8.593h-6.437v3.97h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.067-.98-1.955-2.145-1.955zM7.017 8.06h4.966c-.245-2.371-2.391-4.267-4.966-4.267-2.758 0-5.027 2.074-5.027 4.681s2.269 4.682 5.027 4.682c2.698 0 4.904-2.015 5.027-4.563H7.017v-.534z"}))))},Gr={cardContainer:"_1N3yO"},Zr=function(e){var t=Array.from(new Set(e.cards));return n.createElement("div",{"data-testid":"card-logos",className:i(Gr.cardContainer,_r.cardContainer)},t.map(function(e){return n.createElement("div",{key:e,className:Gr.card,"data-testid":"card-logo-"+e},"cb"===e&&n.createElement(Vr,null),"amex"===e&&n.createElement(Hr,null),"mastercard"===e&&n.createElement(Ur,null),"visa"===e&&n.createElement(qr,null))}))},Wr=function(){return n.createElement("div",{className:i("_180ro",_r.info),"data-testid":"modal-info-element"},n.createElement("div",{className:"_1HqCO"},n.createElement("div",{className:i("_3B8wx",_r.bullet)},"1"),n.createElement("div",{className:_r.infoMessage},n.createElement(r.FormattedMessage,{id:"eligibility-modal.bullet-1",defaultMessage:"Choisissez <strong>Alma</strong> au moment du paiement.",values:{strong:function(){return n.createElement("strong",null,[].slice.call(arguments))}}}))),n.createElement("div",{className:"_1HqCO"},n.createElement("div",{className:i("_3B8wx",_r.bullet)},"2"),n.createElement("div",{className:_r.infoMessage},n.createElement(r.FormattedMessage,{id:"eligibility-modal.bullet-2",defaultMessage:"Renseignez les <strong>informations</strong> demandées.",values:{strong:function(){return n.createElement("strong",null,[].slice.call(arguments))}}}))),n.createElement("div",{className:"_1HqCO"},n.createElement("div",{className:i("_3B8wx",_r.bullet)},"3"),n.createElement("div",{className:_r.infoMessage},n.createElement(r.FormattedMessage,{id:"eligibility-modal.bullet-3",defaultMessage:"La validation de votre paiement est <strong>instantanée</strong> !",values:{strong:function(){return n.createElement("strong",null,[].slice.call(arguments))}}}))))},Jr=function(e){var t=e.isSomePlanDeferred;return n.createElement("div",{className:i("_3ERx-",_r.title),"data-testid":"modal-title-element"},n.createElement(r.FormattedMessage,t?{id:"eligibility-modal.title-deferred-plan",defaultMessage:"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma."}:{id:"eligibility-modal.title-normal",defaultMessage:"Payez en plusieurs fois par carte bancaire avec Alma."}))},Kr=function(e){var t=e.children,r=e.isSomePlanDeferred,a=e.cards;return n.createElement("div",{className:i("_21g6u",_r.desktopModal),"data-testid":"modal-container"},n.createElement("aside",{className:i(["_3zaP5","_2SBRC",_r.leftSide])},n.createElement(Jr,{isSomePlanDeferred:r}),n.createElement(Wr,null),a&&n.createElement(Zr,{cards:a}),n.createElement(Br,{className:"_xW3wt",width:"75"})),n.createElement("div",{className:i("_3zaP5",_r.rightSide)},t))},Yr=function(e){var t=e.children,r=e.isSomePlanDeferred,a=e.cards;return n.createElement("div",{className:i("_2G7Ch",_r.mobileModal),"data-testid":"modal-container"},n.createElement(Jr,{isSomePlanDeferred:r}),t,n.createElement(Wr,null),a&&n.createElement(Zr,{cards:a}),n.createElement(Br,{className:"_2779r",width:"75"}))},Qr=function(e){var a=e.onClose,i=e.eligibilityPlans,l=e.status,o=e.cards,u=t.useState(e.initialPlanIndex||0),c=u[0],m=u[1],d=s.useMediaQuery({minWidth:800})?Kr:Yr,f=i.filter(function(e){return e.eligible}),p=f[c],g=i.some(function(e){return e.deferred_days>0||e.deferred_months>0});return n.createElement(Fr,{onClose:a,ariaHideApp:!1,scrollable:!0,isOpen:!0},n.createElement(d,{isSomePlanDeferred:g,cards:o},l===lr.PENDING&&n.createElement("div",{className:"_2oTJq"},n.createElement(Sr,null)),l===lr.SUCCESS&&0===f.length&&n.createElement("div",{className:"_17qNJ"},n.createElement(r.FormattedMessage,{id:"eligibility-modal.no-eligibility",defaultMessage:"Oups, il semblerait que la simulation n'ait pas fonctionné."})),l===lr.SUCCESS&&f.length>=1&&n.createElement(n.Fragment,null,n.createElement(Tr,{eligibilityPlans:f,currentPlanIndex:c,setCurrentPlanIndex:m}),n.createElement("div",{className:"_2u9rj"},n.createElement("div",{className:"_VRdAU"}),n.createElement(kr,{currentPlan:p}),n.createElement(Pr,{currentPlan:p})))))},Xr=function(e){var t=e.onClose,r=e.cards,a=Or(e.purchaseAmount,e.apiData,e.configPlans,e.customerBillingCountry,e.customerShippingCountry);return n.createElement(Qr,{initialPlanIndex:0,onClose:t,eligibilityPlans:a[0],status:a[1],cards:r})},$r=function(e){return n.createElement("div",{className:i("_2SwwZ",e.className),"data-testid":"loader"},n.createElement("div",{className:"_2qODo"}),n.createElement("div",{className:"_2YO01"}))},ea="alma-payment-plans",ta={container:ea+"-container",eligibilityLine:ea+"-eligibility-line",eligibilityOptions:ea+"-eligibility-options",notEligibleOption:ea+"-not-eligible-option",paymentInfo:ea+"-payment-info",activeOption:ea+"-active-option"},na=function(e){var a,l,o,s,c=e.hideIfNotEligible,m=e.monochrome,d=e.suggestedPaymentPlan,f=e.cards,p=e.transitionDelay,g=e.hideBorder,y=void 0!==g&&g,h=Or(e.purchaseAmount,e.apiData,e.configPlans,e.customerBillingCountry,e.customerShippingCountry),v=h[0],b=h[1],E=v.filter(function(e){return e.eligible}),A=function(e){var t=e.suggestedPaymentPlan,n=e.eligibilityPlans,r=Array.isArray(t)?t:[t],a=function(e){var t=r[e],a=n.findIndex(function(e){return e.installments_count===t&&e.eligible});if(-1!==a)return{v:a}};for(var i in r){var l=a(i);if("object"==typeof l)return l.v}return 0}({eligibilityPlans:v,suggestedPaymentPlan:null!=d?d:0}),C=void 0!==d,O=void 0!==p,w=t.useState(!1),_=w[0],P=w[1],S=v.reduce(function(e,t,n){return t.eligible?[].concat(e,[n]):e},[]),x=function(e,n){var r=t.useState(0),a=r[0],i=r[1],l=t.useState(!0),o=l[0],s=l[1];return t.useEffect(function(){var t,r=!0;return 0!==e.length&&(!e.includes(a)&&o&&i(e[0]),t=setTimeout(function(){o&&r&&i(e[e.includes(a)?(e.indexOf(a)+1)%e.length:0])},n)),function(){r=!1,clearTimeout(t)}},[e,a]),{current:a,onHover:function(e){i(e),s(!1)},onLeave:function(){s(!0)}}}(S,O?null!=p?p:5500:C?31536e6:5500),I=x.current,M=x.onHover,N=x.onLeave;return t.useEffect(function(){b===lr.SUCCESS&&C&&(M(A),N())},[b]),b===lr.PENDING?n.createElement("div",{className:i("_TSkFv","_1ZDMS")},n.createElement($r,null)):c&&0===E.length||0===v.length||b===lr.FAILED?null:n.createElement(n.Fragment,null,n.createElement("div",{onClick:function(e){e.preventDefault(),E.length>0&&P(!0)},className:i("_TSkFv",(a={},a._UksZa=E.length>0,a["_1lr-q"]=0===E.length,a._3_qcn=y,a),ta.container),"data-testid":"widget-button"},n.createElement("div",{className:i("_bMClc",ta.eligibilityLine)},n.createElement(Br,{className:"_LJ4nZ",color:m?"var(--off-black)":void 0}),n.createElement("div",{className:i("_17c_S",ta.eligibilityOptions)},v.map(function(e,t){var r,a=t===I;return n.createElement("div",{key:t,onMouseEnter:function(){return M(t)},onTouchStart:function(){return M(t)},onMouseOut:N,onTouchEnd:N,className:i("_2Kqjn",(r={},r[i("_3dG_J",ta.activeOption)]=a,r._2hx83=m&&a,r[i("_3O1bg",ta.notEligibleOption)]=!e.eligible,r))},Lr(e))}))),n.createElement("div",{className:i("_25GrF",(l={},l[i("_3O1bg",ta.notEligibleOption)]=v[I]&&!v[I].eligible,l),ta.paymentInfo)},0!==v.length&&function(e){var t=e.installments_count,a=e.minAmount,i=void 0===a?0:a,l=e.maxAmount,o=void 0===l?0:l,s=e.payment_plan,c=e.deferred_days+30*e.deferred_months;if(!e.eligible)return n.createElement(r.FormattedMessage,e.purchase_amount>o?{id:"payment-plan-strings.ineligible-greater-than-max",defaultMessage:"Jusqu'à {maxAmount}",values:{maxAmount:n.createElement(r.FormattedNumber,{value:cr(o),style:"currency",currency:"EUR"})}}:{id:"payment-plan-strings.ineligible-lower-than-min",defaultMessage:"À partir de {minAmount}",values:{minAmount:n.createElement(r.FormattedNumber,{value:cr(i),style:"currency",currency:"EUR"})}});if(!s)throw Error("No payment plan provided for payment in "+t+" installments. Please contact us if you see this error.");if(0!==c&&1===t)return n.createElement(n.Fragment,null,n.createElement(r.FormattedMessage,{id:"payment-plan-strings.deferred",defaultMessage:"{totalAmount} à payer le {dueDate}",values:{totalAmount:n.createElement(r.FormattedNumber,{value:cr(s[0].total_amount),style:"currency",currency:"EUR"}),dueDate:n.createElement(r.FormattedDate,{value:u.secondsToMilliseconds(s[0].due_date),day:"numeric",month:"long",year:"numeric"})}}),jr(e));if(t>0){var m=null==s?void 0:s.every(function(e,t){return 0===t||e.total_amount===s[0].total_amount});return n.createElement(n.Fragment,null,n.createElement(r.FormattedMessage,m?{id:"payment-plan-strings.multiple-installments-same-amount",defaultMessage:"{installmentsCount} x {totalAmount}",values:{totalAmount:n.createElement(r.FormattedNumber,{value:cr(s[0].total_amount),style:"currency",currency:"EUR"}),installmentsCount:t}}:{id:"payment-plan-strings.multiple-installments",defaultMessage:"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",values:{firstInstallmentAmount:n.createElement(r.FormattedNumber,{value:cr(s[0].total_amount),style:"currency",currency:"EUR"}),numberOfRemainingInstallments:t-1,othersInstallmentAmount:n.createElement(r.FormattedNumber,{value:cr(s[1].total_amount),style:"currency",currency:"EUR"})}}),jr(e))}return n.createElement(r.FormattedMessage,{id:"payment-plan-strings.default-message",defaultMessage:"Payez en plusieurs fois avec Alma"})}(v[I]))),_&&n.createElement(Qr,{initialPlanIndex:(o=I,s=S.findIndex(function(e){return e===o}),-1===s?0:s),onClose:function(){return P(!1)},eligibilityPlans:E,status:b,cards:f}))},ra=function(){function e(e){this.apiData=e}return e.prototype.add=function(e,t){var r=this,i=document.querySelector(t.container);if(i&&a.unmountComponentAtNode(i),e===ir.PaymentPlans){var l=t.container,o=t.hideBorder,s=t.monochrome,u=t.locale;i&&a.render(n.createElement(br,{locale:void 0===u?or.en:u},n.createElement(na,{apiData:this.apiData,configPlans:t.plans,hideIfNotEligible:t.hideIfNotEligible,monochrome:void 0===s||s,purchaseAmount:t.purchaseAmount,suggestedPaymentPlan:t.suggestedPaymentPlan,cards:t.cards,customerBillingCountry:t.customerBillingCountry,customerShippingCountry:t.customerShippingCountry,transitionDelay:t.transitionDelay,hideBorder:void 0!==o&&o})),document.querySelector(l))}if(e===ir.Modal){var c,m=t.container,d=t.clickableSelector,f=t.purchaseAmount,p=t.plans,g=t.locale,y=void 0===g?or.en:g,h=t.customerBillingCountry,v=t.customerShippingCountry,b=t.cards,E=function(){return i&&a.unmountComponentAtNode(i)},A=function(){a.render(n.createElement(br,{locale:y},n.createElement(Xr,{purchaseAmount:f,apiData:r.apiData,configPlans:p,customerBillingCountry:h,customerShippingCountry:v,onClose:E,cards:b})),document.querySelector(m))};return d&&(null==(c=document.querySelector(d))||c.addEventListener("click",A,!1)),{open:A,close:E}}},e}();(Ir=exports.ApiMode||(exports.ApiMode={})).LIVE="https://api.getalma.eu",Ir.TEST="https://api.sandbox.getalma.eu",(Mr=exports.Widgets||(exports.Widgets={})).initialize=function(e,t){return new ra({domain:t,merchantId:e})},Mr.PaymentPlans=ir.PaymentPlans,Mr.Modal=ir.Modal,(Nr=exports.Utils||(exports.Utils={})).priceToCents=function(e){return Math.round(100*e)},Nr.priceFromCents=cr,Nr.formatCents=function(e){return String(cr(e)).replace(".",",")};
|
|
1
|
+
function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=require("react"),n=e(t),r=require("react-intl"),a=require("react-dom"),i=e(require("classnames")),l=e(require("react-modal")),o=e(require("no-scroll")),s=require("react-responsive"),u=require("date-fns"),c=function(e){try{return!!e()}catch(e){return!0}},m=!c(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),d=Function.prototype,f=d.call,p=m&&d.bind.bind(f,f),g=m?function(e){return e&&p(e)}:function(e){return e&&function(){return f.apply(e,arguments)}},y=Math.ceil,h=Math.floor,v=Math.trunc||function(e){var t=+e;return(t>0?h:y)(t)},b=function(e){var t=+e;return t!=t||0===t?0:v(t)},E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function A(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var C,O,w=function(e){return e&&e.Math==Math&&e},_=w("object"==typeof globalThis&&globalThis)||w("object"==typeof window&&window)||w("object"==typeof self&&self)||w("object"==typeof E&&E)||function(){return this}()||Function("return this")(),P=Object.defineProperty,S=function(e,t){try{P(_,e,{value:t,configurable:!0,writable:!0})}catch(n){_[e]=t}return t},x=_["__core-js_shared__"]||S("__core-js_shared__",{}),I=A(function(e){(e.exports=function(e,t){return x[e]||(x[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.8",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE",source:"https://github.com/zloirock/core-js"})}),M=TypeError,N=function(e){if(null==e)throw M("Can't call method on "+e);return e},D=Object,F=function(e){return D(N(e))},L=g({}.hasOwnProperty),j=Object.hasOwn||function(e,t){return L(F(e),t)},T=0,R=Math.random(),z=g(1..toString),k=function(e){return"Symbol("+(void 0===e?"":e)+")_"+z(++T+R,36)},B=function(e){return"function"==typeof e},H=function(e){return B(e)?e:void 0},q=function(e,t){return arguments.length<2?H(_[e]):_[e]&&_[e][t]},U=q("navigator","userAgent")||"",V=_.process,G=_.Deno,Z=V&&V.versions||G&&G.version,W=Z&&Z.v8;W&&(O=(C=W.split("."))[0]>0&&C[0]<4?1:+(C[0]+C[1])),!O&&U&&(!(C=U.match(/Edge\/(\d+)/))||C[1]>=74)&&(C=U.match(/Chrome\/(\d+)/))&&(O=+C[1]);var J=O,K=!!Object.getOwnPropertySymbols&&!c(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&J&&J<41}),Y=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Q=I("wks"),X=_.Symbol,$=X&&X.for,ee=Y?X:X&&X.withoutSetter||k,te=function(e){if(!j(Q,e)||!K&&"string"!=typeof Q[e]){var t="Symbol."+e;Q[e]=K&&j(X,e)?X[e]:Y&&$?$(t):ee(t)}return Q[e]},ne={};ne[te("toStringTag")]="z";var re="[object z]"===String(ne),ae=g({}.toString),ie=g("".slice),le=function(e){return ie(ae(e),8,-1)},oe=te("toStringTag"),se=Object,ue="Arguments"==le(function(){return arguments}()),ce=re?le:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=se(e),oe))?n:ue?le(t):"Object"==(r=le(t))&&B(t.callee)?"Arguments":r},me=String,de=function(e){if("Symbol"===ce(e))throw TypeError("Cannot convert a Symbol value to a string");return me(e)},fe=g("".charAt),pe=g("".charCodeAt),ge=g("".slice),ye=function(e){return function(t,n){var r,a,i=de(N(t)),l=b(n),o=i.length;return l<0||l>=o?e?"":void 0:(r=pe(i,l))<55296||r>56319||l+1===o||(a=pe(i,l+1))<56320||a>57343?e?fe(i,l):r:e?ge(i,l,l+2):a-56320+(r-55296<<10)+65536}},he={codeAt:ye(!1),charAt:ye(!0)},ve=g(Function.toString);B(x.inspectSource)||(x.inspectSource=function(e){return ve(e)});var be,Ee,Ae,Ce=x.inspectSource,Oe=_.WeakMap,we=B(Oe)&&/native code/.test(Ce(Oe)),_e=function(e){return"object"==typeof e?null!==e:B(e)},Pe=!c(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Se=_.document,xe=_e(Se)&&_e(Se.createElement),Ie=function(e){return xe?Se.createElement(e):{}},Me=!Pe&&!c(function(){return 7!=Object.defineProperty(Ie("div"),"a",{get:function(){return 7}}).a}),Ne=Pe&&c(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),De=String,Fe=TypeError,Le=function(e){if(_e(e))return e;throw Fe(De(e)+" is not an object")},je=Function.prototype.call,Te=m?je.bind(je):function(){return je.apply(je,arguments)},Re=g({}.isPrototypeOf),ze=Object,ke=Y?function(e){return"symbol"==typeof e}:function(e){var t=q("Symbol");return B(t)&&Re(t.prototype,ze(e))},Be=String,He=function(e){try{return Be(e)}catch(e){return"Object"}},qe=TypeError,Ue=function(e){if(B(e))return e;throw qe(He(e)+" is not a function")},Ve=function(e,t){var n=e[t];return null==n?void 0:Ue(n)},Ge=TypeError,Ze=TypeError,We=te("toPrimitive"),Je=function(e){var t=function(e,t){if(!_e(e)||ke(e))return e;var n,r=Ve(e,We);if(r){if(void 0===t&&(t="default"),n=Te(r,e,t),!_e(n)||ke(n))return n;throw Ze("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&B(n=e.toString)&&!_e(r=Te(n,e)))return r;if(B(n=e.valueOf)&&!_e(r=Te(n,e)))return r;if("string"!==t&&B(n=e.toString)&&!_e(r=Te(n,e)))return r;throw Ge("Can't convert object to primitive value")}(e,t)}(e,"string");return ke(t)?t:t+""},Ke=TypeError,Ye=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Xe={f:Pe?Ne?function(e,t,n){if(Le(e),t=Je(t),Le(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Qe(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Ye(e,t,n)}:Ye:function(e,t,n){if(Le(e),t=Je(t),Le(n),Me)try{return Ye(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ke("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},$e=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},et=Pe?function(e,t,n){return Xe.f(e,t,$e(1,n))}:function(e,t,n){return e[t]=n,e},tt=I("keys"),nt=function(e){return tt[e]||(tt[e]=k(e))},rt={},at=_.TypeError;if(we||x.state){var it=x.state||(x.state=new(0,_.WeakMap)),lt=g(it.get),ot=g(it.has),st=g(it.set);be=function(e,t){if(ot(it,e))throw new at("Object already initialized");return t.facade=e,st(it,e,t),t},Ee=function(e){return lt(it,e)||{}},Ae=function(e){return ot(it,e)}}else{var ut=nt("state");rt[ut]=!0,be=function(e,t){if(j(e,ut))throw new at("Object already initialized");return t.facade=e,et(e,ut,t),t},Ee=function(e){return j(e,ut)?e[ut]:{}},Ae=function(e){return j(e,ut)}}var ct,mt={set:be,get:Ee,has:Ae,enforce:function(e){return Ae(e)?Ee(e):be(e,{})},getterFor:function(e){return function(t){var n;if(!_e(t)||(n=Ee(t)).type!==e)throw at("Incompatible receiver, "+e+" required");return n}}},dt={}.propertyIsEnumerable,ft=Object.getOwnPropertyDescriptor,pt={f:ft&&!dt.call({1:2},1)?function(e){var t=ft(this,e);return!!t&&t.enumerable}:dt},gt=Object,yt=g("".split),ht=c(function(){return!gt("z").propertyIsEnumerable(0)})?function(e){return"String"==le(e)?yt(e,""):gt(e)}:gt,vt=function(e){return ht(N(e))},bt=Object.getOwnPropertyDescriptor,Et={f:Pe?bt:function(e,t){if(e=vt(e),t=Je(t),Me)try{return bt(e,t)}catch(e){}if(j(e,t))return $e(!Te(pt.f,e,t),e[t])}},At=Function.prototype,Ct=Pe&&Object.getOwnPropertyDescriptor,Ot=j(At,"name"),wt={EXISTS:Ot,PROPER:Ot&&"something"===function(){}.name,CONFIGURABLE:Ot&&(!Pe||Pe&&Ct(At,"name").configurable)},_t=A(function(e){var t=wt.CONFIGURABLE,n=mt.enforce,r=mt.get,a=Object.defineProperty,i=Pe&&!c(function(){return 8!==a(function(){},"length",{value:8}).length}),l=String(String).split("String"),o=e.exports=function(e,r,o){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),o&&o.getter&&(r="get "+r),o&&o.setter&&(r="set "+r),(!j(e,"name")||t&&e.name!==r)&&a(e,"name",{value:r,configurable:!0}),i&&o&&j(o,"arity")&&e.length!==o.arity&&a(e,"length",{value:o.arity});try{o&&j(o,"constructor")&&o.constructor?Pe&&a(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=n(e);return j(s,"source")||(s.source=l.join("string"==typeof r?r:"")),e};Function.prototype.toString=o(function(){return B(this)&&r(this).source||Ce(this)},"toString")}),Pt=function(e,t,n,r){r||(r={});var a=r.enumerable,i=void 0!==r.name?r.name:t;return B(n)&&_t(n,i,r),r.global?a?e[t]=n:S(t,n):(r.unsafe?e[t]&&(a=!0):delete e[t],a?e[t]=n:et(e,t,n)),e},St=Math.max,xt=Math.min,It=Math.min,Mt=function(e){return(t=e.length)>0?It(b(t),9007199254740991):0;var t},Nt=function(e){return function(t,n,r){var a,i=vt(t),l=Mt(i),o=function(e,t){var n=b(e);return n<0?St(n+t,0):xt(n,t)}(r,l);if(e&&n!=n){for(;l>o;)if((a=i[o++])!=a)return!0}else for(;l>o;o++)if((e||o in i)&&i[o]===n)return e||o||0;return!e&&-1}},Dt=(Nt(!0),Nt(!1)),Ft=g([].push),Lt=function(e,t){var n,r=vt(e),a=0,i=[];for(n in r)!j(rt,n)&&j(r,n)&&Ft(i,n);for(;t.length>a;)j(r,n=t[a++])&&(~Dt(i,n)||Ft(i,n));return i},jt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tt=jt.concat("length","prototype"),Rt={f:Object.getOwnPropertyNames||function(e){return Lt(e,Tt)}},zt={f:Object.getOwnPropertySymbols},kt=g([].concat),Bt=q("Reflect","ownKeys")||function(e){var t=Rt.f(Le(e)),n=zt.f;return n?kt(t,n(e)):t},Ht=function(e,t,n){for(var r=Bt(t),a=Xe.f,i=Et.f,l=0;l<r.length;l++){var o=r[l];j(e,o)||n&&j(n,o)||a(e,o,i(t,o))}},qt=/#|\.prototype\./,Ut=function(e,t){var n=Gt[Vt(e)];return n==Wt||n!=Zt&&(B(t)?c(t):!!t)},Vt=Ut.normalize=function(e){return String(e).replace(qt,".").toLowerCase()},Gt=Ut.data={},Zt=Ut.NATIVE="N",Wt=Ut.POLYFILL="P",Jt=Ut,Kt=Et.f,Yt=function(e,t){var n,r,a,i,l,o=e.target,s=e.global,u=e.stat;if(n=s?_:u?_[o]||S(o,{}):(_[o]||{}).prototype)for(r in t){if(i=t[r],a=e.dontCallGetSet?(l=Kt(n,r))&&l.value:n[r],!Jt(s?r:o+(u?".":"#")+r,e.forced)&&void 0!==a){if(typeof i==typeof a)continue;Ht(i,a)}(e.sham||a&&a.sham)&&et(i,"sham",!0),Pt(n,r,i,e)}},Qt=Object.keys||function(e){return Lt(e,jt)},Xt={f:Pe&&!Ne?Object.defineProperties:function(e,t){Le(e);for(var n,r=vt(t),a=Qt(t),i=a.length,l=0;i>l;)Xe.f(e,n=a[l++],r[n]);return e}},$t=q("document","documentElement"),en=nt("IE_PROTO"),tn=function(){},nn=function(e){return"<script>"+e+"<\/script>"},rn=function(e){e.write(nn("")),e.close();var t=e.parentWindow.Object;return e=null,t},an=function(){try{ct=new ActiveXObject("htmlfile")}catch(e){}var e,t;an="undefined"!=typeof document?document.domain&&ct?rn(ct):((t=Ie("iframe")).style.display="none",$t.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(nn("document.F=Object")),e.close(),e.F):rn(ct);for(var n=jt.length;n--;)delete an.prototype[jt[n]];return an()};rt[en]=!0;var ln,on,sn,un=Object.create||function(e,t){var n;return null!==e?(tn.prototype=Le(e),n=new tn,tn.prototype=null,n[en]=e):n=an(),void 0===t?n:Xt.f(n,t)},cn=!c(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),mn=nt("IE_PROTO"),dn=Object,fn=dn.prototype,pn=cn?dn.getPrototypeOf:function(e){var t=F(e);if(j(t,mn))return t[mn];var n=t.constructor;return B(n)&&t instanceof n?n.prototype:t instanceof dn?fn:null},gn=te("iterator"),yn=!1;[].keys&&("next"in(sn=[].keys())?(on=pn(pn(sn)))!==Object.prototype&&(ln=on):yn=!0),(null==ln||c(function(){var e={};return ln[gn].call(e)!==e}))&&(ln={}),B(ln[gn])||Pt(ln,gn,function(){return this});var hn={IteratorPrototype:ln,BUGGY_SAFARI_ITERATORS:yn},vn=Xe.f,bn=te("toStringTag"),En=function(e,t,n){e&&!n&&(e=e.prototype),e&&!j(e,bn)&&vn(e,bn,{configurable:!0,value:t})},An={},Cn=hn.IteratorPrototype,On=function(){return this},wn=String,_n=TypeError,Pn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=g(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Le(n),function(e){if("object"==typeof e||B(e))return e;throw _n("Can't set "+wn(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Sn=hn.IteratorPrototype,xn=hn.BUGGY_SAFARI_ITERATORS,In=te("iterator"),Mn=function(){return this},Nn=he.charAt,Dn=mt.set,Fn=mt.getterFor("String Iterator");!function(e,t,n,r,a,i,l){!function(e,t,n,r){e.prototype=un(Cn,{next:$e(1,function(){var e,t=Fn(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Nn(n,r),t.index+=e.length,{value:e,done:!1})})}),En(e,"String Iterator",!1),An["String Iterator"]=On}(n);var o,s,u,c=function(e){if(void 0===e&&f)return f;if(!xn&&e in m)return m[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},m=e.prototype,d=m[In]||m["@@iterator"]||void 0,f=!xn&&d||c(void 0);if(void(d&&(o=pn(d.call(new e)))!==Object.prototype&&o.next&&(pn(o)!==Sn&&(Pn?Pn(o,Sn):B(o[In])||Pt(o,In,Mn)),En(o,"String Iterator",!0))))if(void(s={values:c("values"),keys:c("keys"),entries:c("entries")}))for(u in s)(xn||!(u in m))&&Pt(m,u,s[u]);else Yt({target:"String",proto:!0,forced:xn||!1},s);m[In]!==f&&Pt(m,In,f,{name:void 0}),An.String=f}(String,0,function(e){Dn(this,{type:"String Iterator",string:de(e),index:0})});var Ln=g(g.bind),jn=function(e,t){return Ue(e),void 0===t?e:m?Ln(e,t):function(){return e.apply(t,arguments)}},Tn=function(e,t,n,r){try{return r?t(Le(n)[0],n[1]):t(n)}catch(t){!function(e,t,n){var r;Le(e);try{if(!(r=Ve(e,"return")))throw n;r=Te(r,e)}catch(e){r=e}throw n}(e,0,t)}},Rn=te("iterator"),zn=Array.prototype,kn=function(e){return void 0!==e&&(An.Array===e||zn[Rn]===e)},Bn=function(){},Hn=[],qn=q("Reflect","construct"),Un=/^\s*(?:class|function)\b/,Vn=g(Un.exec),Gn=!Un.exec(Bn),Zn=function(e){if(!B(e))return!1;try{return qn(Bn,Hn,e),!0}catch(e){return!1}},Wn=function(e){if(!B(e))return!1;switch(ce(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Gn||!!Vn(Un,Ce(e))}catch(e){return!0}};Wn.sham=!0;var Jn=!qn||c(function(){var e;return Zn(Zn.call)||!Zn(Object)||!Zn(function(){e=!0})||e})?Wn:Zn,Kn=function(e,t,n){var r=Je(t);r in e?Xe.f(e,r,$e(0,n)):e[r]=n},Yn=te("iterator"),Qn=function(e){if(null!=e)return Ve(e,Yn)||Ve(e,"@@iterator")||An[ce(e)]},Xn=TypeError,$n=function(e,t){var n=arguments.length<2?Qn(e):t;if(Ue(n))return Le(Te(n,e));throw Xn(He(e)+" is not iterable")},er=Array,tr=te("iterator"),nr=!1;try{var rr=0,ar={next:function(){return{done:!!rr++}},return:function(){nr=!0}};ar[tr]=function(){return this},Array.from(ar,function(){throw 2})}catch(e){}var ir,lr,or,sr,ur=!function(e,t){if(!nr)return!1;var n=!1;try{var r={};r[tr]=function(){return{next:function(){return{done:n=!0}}}},Array.from(r)}catch(e){}return n}();function cr(e){return Number((e/100).toFixed(2))}Yt({target:"Array",stat:!0,forced:ur},{from:function(e){var t=F(e),n=Jn(this),r=arguments.length,a=r>1?arguments[1]:void 0,i=void 0!==a;i&&(a=jn(a,r>2?arguments[2]:void 0));var l,o,s,u,c,m,d=Qn(t),f=0;if(!d||this===er&&kn(d))for(l=Mt(t),o=n?new this(l):er(l);l>f;f++)m=i?a(t[f],f):t[f],Kn(o,f,m);else for(c=(u=$n(t,d)).next,o=n?new this:[];!(s=Te(c,u)).done;f++)m=i?Tn(u,a,[s.value,f],!0):s.value,Kn(o,f,m);return o.length=f,o}}),function(e){e.PaymentPlans="PaymentPlans",e.Modal="Modal"}(ir||(ir={})),function(e){e.PENDING="pending",e.SUCCESS="success",e.FAILED="failed"}(lr||(lr={})),function(e){e.en="en",e["fr-FR"]="fr-FR",e.fr="fr",e["de-DE"]="de-DE",e.de="de",e.it="it",e["it-IT"]="it-IT",e.es="es",e["es-ES"]="es-ES",e.pt="pt",e["pt-PT"]="pt-PT",e.nl="nl",e["nl-NL"]="nl-NL",e["nl-BE"]="nl-BE"}(or||(or={})),"function"!=typeof(sr=window.Element.prototype).matches&&(sr.matches=sr.msMatchesSelector||sr.mozMatchesSelector||sr.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)++n;return Boolean(t[n])}),"function"!=typeof sr.closest&&(sr.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null}),"".trim||(String.prototype.trim=function(){return this.replace(/^[\s]+|[\s]+$/g,"")}),function(e){e.DOMException||((DOMException=function(e){this.message=e}).prototype=new Error);var t,n,r=/[\11\12\14\15\40]/,a=0,i=function(e,t){if(""===t)throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided must not be empty.");if(-1!==(a=t.search(r)))throw new DOMException("Failed to execute '"+e+"' on 'DOMTokenList': The token provided ('"+t[a]+"') contains HTML space characters, which are not valid in tokens.")};"function"!=typeof DOMTokenList&&function(e){var t=e.document,n=e.Object,a=n.prototype.hasOwnProperty,l=n.defineProperty,o=0,s=0,u=function(){if(!o)throw TypeError("Illegal constructor")};function c(){var t=e.event,n=t.propertyName;if(!s&&("className"===n||"classList"===n&&!l)){var a=t.srcElement,i=a[" uCLp"],o=""+a[n],u=o.trim().split(r),c=a["classList"===n?" uCL":"classList"],m=i.length;e:for(var d=0,f=i.length=u.length,p=0;d!==f;++d){for(var g=0;g!==d;++g)if(u[g]===u[d]){p++;continue e}c[d-p]=u[d]}for(var y=f-p;y<m;++y)delete c[y];if("classList"!==n)return;s=1,a.classList=c,a.className=o,s=0,c.length=u.length-p}}function m(e){if(!e||!("innerHTML"in e))throw TypeError("Illegal invocation");e.detachEvent("onpropertychange",c),o=1;try{var t=function(){};t.prototype=new u}finally{o=0}var n=t.prototype,a=new t;e:for(var i=e.className.trim().split(r),m=0,d=i.length,f=0;m!==d;++m){for(var p=0;p!==m;++p)if(i[p]===i[m]){f++;continue e}this[m-f]=i[m]}n.length=d-f,n.value=e.className,n[" uCL"]=e,l?(l(e,"classList",{enumerable:1,get:function(){return a},configurable:0,set:function(t){s=1,e.className=n.value=t+="",s=0;var i=t.trim().split(r),l=n.length;e:for(var o=0,u=n.length=i.length,c=0;o!==u;++o){for(var m=0;m!==o;++m)if(i[m]===i[o]){c++;continue e}a[o-c]=i[o]}for(var d=u-c;d<l;++d)delete a[d]}}),l(e," uCLp",{enumerable:0,configurable:0,writeable:0,value:t.prototype}),l(n," uCL",{enumerable:0,configurable:0,writeable:0,value:e})):(e.classList=a,e[" uCL"]=a,e[" uCLp"]=t.prototype),e.attachEvent("onpropertychange",c)}u.prototype.toString=u.prototype.toLocaleString=function(){return this.value},u.prototype.add=function(){e:for(var e=0,t=arguments.length,n="",r=this[" uCL"],a=r[" uCLp"];e!==t;++e){i("add",n=arguments[e]+"");for(var l=0,o=a.length,u=n;l!==o;++l){if(this[l]===n)continue e;u+=" "+this[l]}this[o]=n,a.length+=1,a.value=u}s=1,r.className=a.value,s=0},u.prototype.remove=function(){for(var e=0,t=arguments.length,n="",r=this[" uCL"],a=r[" uCLp"];e!==t;++e){i("remove",n=arguments[e]+"");for(var l=0,o=a.length,u="",c=0;l!==o;++l)c?this[l-1]=this[l]:this[l]!==n?u+=this[l]+" ":c=1;c&&(delete this[o],a.length-=1,a.value=u)}s=1,r.className=a.value,s=0},e.DOMTokenList=u;try{e.Object.defineProperty(e.Element.prototype,"classList",{enumerable:1,get:function(e){return a.call(this,"classList")||m(this),this.classList},configurable:0,set:function(e){this.className=e}})}catch(n){e[" uCL"]=m,t.documentElement.firstChild.appendChild(t.createElement("style")).styleSheet.cssText='_*{x-uCLp:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}[class]{x-uCLp/**/:expression(!this.hasOwnProperty("classList")&&window[" uCL"](this))}'}}(e),t=e.DOMTokenList.prototype,n=e.document.createElement("div").classList,t.item||(t.item=function(e){return void 0===(t=this[e])?null:t;var t}),t.toggle&&!1===n.toggle("a",0)||(t.toggle=function(e){if(arguments.length>1)return this[arguments[1]?"add":"remove"](e),!!arguments[1];var t=this.value;return this.remove(t),t===this.value&&(this.add(e),!0)}),t.replace&&"boolean"==typeof n.replace("a","b")||(t.replace=function(e,t){i("replace",e),i("replace",t);var n=this.value;return this.remove(e),this.value!==n&&(this.add(t),!0)}),t.contains||(t.contains=function(e){for(var t=0,n=this.length;t!==n;++t)if(this[t]===e)return!0;return!1}),t.forEach||(t.forEach=function(e){if(1===arguments.length)for(var t=0,n=this.length;t!==n;++t)e(this[t],t,this);else{t=0,n=this.length;for(var r=arguments[1];t!==n;++t)e.call(r,this[t],t,this)}}),t.entries||(t.entries=function(){var e=this;return{next:function(){return 0<e.length?{value:[0,e[0]],done:!1}:{done:!0}}}}),t.values||(t.values=function(){var e=this;return{next:function(){return 0<e.length?{value:e[0],done:!1}:{done:!0}}}}),t.keys||(t.keys=function(){var e=this;return{next:function(){return 0<e.length?{value:0,done:!1}:{done:!0}}}})}(window);var mr={"credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"Ein Kredit verpflichtet Sie und muss zurückgezahlt werden. Prüfen Sie Ihre Rückzahlungsfähigkeit, bevor Sie sich verpflichten.","credit-features.total-credit-cost":"Davon Kreditkosten","eligibility-modal.bullet-1":"Wählen Sie <strong>Alma</strong> beim Check-out. ","eligibility-modal.bullet-2":"Füllen Sie die <strong>angeforderten</strong> Informationen aus.","eligibility-modal.bullet-3":"Ihre Zahlung wird <strong>sofort</strong> bestätigt!","eligibility-modal.no-eligibility":"Ups, die Prüfung hat anscheinend nicht funktioniert.","eligibility-modal.title-deferred-plan":"Zahlen Sie mit Alma in Raten oder später.","eligibility-modal.title-normal":"Zahlen Sie mit Alma in mehreren Raten.","installments.today":"Heute","installments.total-amount":"Gesamtsumme","installments.total-fees":"Davon Kosten","payment-plan-strings.day-abbreviation":"T{numberOfDeferredDays}","payment-plan-strings.default-message":"Bezahlen Sie zinsfrei in mehreren Raten mit Alma.","payment-plan-strings.deferred":"{totalAmount} zu zahlen am {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Bis zu {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Ab {minAmount}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dann {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(0% Finanzierung)"},dr={"credit-features.credit-cost-display":"{creditCost} (APR {taegPercentage})","credit-features.information":"A loan commits you and must be repaid. Check your ability to repay before committing yourself.","credit-features.total-credit-cost":"Of which cost of credit","eligibility-modal.bullet-1":"Choose <strong>Alma</strong> at checkout.","eligibility-modal.bullet-2":"Fill in the <strong>information</strong> requested.","eligibility-modal.bullet-3":"The validation of your payment is <strong>instantaneous</strong> !","eligibility-modal.no-eligibility":"Oops, looks like the simulation didn't work.","eligibility-modal.title-deferred-plan":"Pay in installments or later by credit card with Alma.","eligibility-modal.title-normal":"Pay in installments by credit card with Alma.","installments.today":"Today","installments.total-amount":"Total","installments.total-fees":"Of which costs (incl. VAT)","payment-plan-strings.day-abbreviation":"D{numberOfDeferredDays}","payment-plan-strings.default-message":"Pay in installments with Alma","payment-plan-strings.deferred":"{totalAmount} to be paid on {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Until {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"From {minAmount}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} then {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(free of charge)"},fr={"credit-features.credit-cost-display":"{creditCost} (TAE {taegPercentage})","credit-features.information":"Un préstamo te compromete y debe ser devuelto. Comprueba tu capacidad financiera antes de comprometerte.","credit-features.total-credit-cost":"Coste de crédito (incl. en el total)","eligibility-modal.bullet-1":"Elige <strong>Alma</strong> como método de pago.","eligibility-modal.bullet-2":"Completa la <strong>información</strong> solicitada.","eligibility-modal.bullet-3":"¡La validación de tu pago es <strong>instantánea</strong> !","eligibility-modal.no-eligibility":"Uy, parece que la simulación no ha funcionado.","eligibility-modal.title-deferred-plan":"Paga a plazos o posteriormente con tarjeta bancaria con Alma.","eligibility-modal.title-normal":"Pagar a plazos con tarjeta bancaria con Alma.","installments.today":"Hoy","installments.total-amount":"Total","installments.total-fees":"De los cuales, costes (IVA incluido)","payment-plan-strings.day-abbreviation":"D{numberOfDeferredDays}","payment-plan-strings.default-message":"Pagar a plazos con Alma","payment-plan-strings.deferred":"{totalAmount} a pagar el {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Hasta {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Desde {minAmount}","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}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} plazos de {totalAmount}","payment-plan-strings.no-fee":"(sin intereses)"},pr={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.","credit-features.total-credit-cost":"Dont coût du crédit","eligibility-modal.bullet-1":"Choisissez <strong>Alma</strong> au moment du paiement.","eligibility-modal.bullet-2":"Renseignez les <strong>informations</strong> demandées.","eligibility-modal.bullet-3":"La validation de votre paiement est <strong>instantanée</strong> !","eligibility-modal.no-eligibility":"Oups, il semblerait que la simulation n'ait pas fonctionné.","eligibility-modal.title-deferred-plan":"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma.","eligibility-modal.title-normal":"Payez en plusieurs fois par carte bancaire avec Alma.","installments.today":"Aujourd'hui","installments.total-amount":"Total","installments.total-fees":"Dont frais (TTC)","payment-plan-strings.day-abbreviation":"J{numberOfDeferredDays}","payment-plan-strings.default-message":"Payez en plusieurs fois avec Alma","payment-plan-strings.deferred":"{totalAmount} à payer le {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Jusqu'à {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"À partir de {minAmount}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sans frais)"},gr={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Un pagamento rateale ti impegna e deve essere ripagato. Verifica la tua disponibilità finanziaria prima di impegnarti.","credit-features.total-credit-cost":"Di cui commissioni","eligibility-modal.bullet-1":"Scegli <strong>Alma</strong> alla cassa.","eligibility-modal.bullet-2":"Compila le informazioni <strong></strong> richieste.","eligibility-modal.bullet-3":"La convalida del pagamento è <strong>istantanea</strong>!","eligibility-modal.no-eligibility":"Ops, sembra che qualcosa non abbia funzionato.","eligibility-modal.title-deferred-plan":"Paga a rate o posticipa il pagamento con Alma, senza registrazione.","eligibility-modal.title-normal":"Paga a rate con Alma, senza registrazione.","installments.today":"Oggi","installments.total-amount":"Totale","installments.total-fees":"Di cui commissioni","payment-plan-strings.day-abbreviation":"G{numberOfDeferredDays}","payment-plan-strings.default-message":"Paga a rate con Alma","payment-plan-strings.deferred":"{totalAmount} da pagare il {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Disponibile fino a {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Pagamento rateale disponibile a partire da {minAmount}","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}}}","payment-plan-strings.multiple-installments-same-amount":"In {installmentsCount} rate mensili di {totalAmount}","payment-plan-strings.no-fee":"(senza interessi)"},yr={"credit-features.credit-cost-display":"{creditCost} (gemiddeld rente percentage {taegPercentage})","credit-features.information":"Een lening bindt je en moet worden terugbetaald. Ga na of u kunt terugbetalen voordat u zich vastlegt.","credit-features.total-credit-cost":"Waarvan kosten van krediet","eligibility-modal.bullet-1":"Kies <strong>Alma</strong> bij het afrekenen.","eligibility-modal.bullet-2":"Vul de <strong>gevraagde informatie</strong> in.","eligibility-modal.bullet-3":"De validatie van uw betaling is <strong>onmiddellijk</strong> !","eligibility-modal.no-eligibility":"Oeps, het lijkt erop dat de simulatie niet werkte.","eligibility-modal.title-deferred-plan":"Betaal in termijnen of later per creditcard met Alma.","eligibility-modal.title-normal":"Betaal in termijnen met een creditcard bij Alma.","installments.today":"Tegenwoordig","installments.total-amount":"Totaal","installments.total-fees":"Waarvan kosten (incl. BTW)","payment-plan-strings.day-abbreviation":"D{numberOfDeferredDays}","payment-plan-strings.default-message":"Betaal in termijnen met Alma","payment-plan-strings.deferred":"{totalAmount} te betalen op {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Tot {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"Van {minAmount}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} dan {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(zonder kosten)"},hr={"credit-features.credit-cost-display":"{creditCost} (TAEG {taegPercentage})","credit-features.information":"Um crédito é um compromisso e deve ser reembolsado. Verifique a sua capacidade de pagar antes de se comprometer.","credit-features.total-credit-cost":"Incluindo custo do crédito","eligibility-modal.bullet-1":"Escolha a <strong>Alma</strong> no checkout.","eligibility-modal.bullet-2":"Preencha os <strong>dados</strong> solicitados.","eligibility-modal.bullet-3":"A validação do seu pagamento é <strong>instantaneamente</strong> !","eligibility-modal.no-eligibility":"Ups, parece que a simulação não funcionou.","eligibility-modal.title-deferred-plan":"Pagar em prestações ou mais tarde por cartão de crédito com Alma.","eligibility-modal.title-normal":"Pagar em prestações por cartão de crédito com Alma.","installments.today":"Hoje","installments.total-amount":"Total","installments.total-fees":"Dos quais custos (incl. IVA)","payment-plan-strings.day-abbreviation":"D{numberOfDeferredDays}","payment-plan-strings.default-message":"Pague em prestações através da Alma","payment-plan-strings.deferred":"{totalAmount} a pagar em {dueDate}","payment-plan-strings.ineligible-greater-than-max":"Até {maxAmount}","payment-plan-strings.ineligible-lower-than-min":"A partir de {minAmount}","payment-plan-strings.multiple-installments":"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} depois {numberOfRemainingInstallments} x {othersInstallmentAmount}}}","payment-plan-strings.multiple-installments-same-amount":"{installmentsCount} x {totalAmount}","payment-plan-strings.no-fee":"(sem encargos)"},vr=function(e){switch(e.slice(0,2)){case or.fr:return pr;case or.es:return fr;case or.it:return gr;case or.de:return mr;case or.pt:return hr;case or.nl:return yr;case or.en:default:return dr}},br=function(e){var t=e.children,a=e.locale;return n.createElement(r.IntlProvider,{messages:vr(a),locale:a,defaultLocale:"en"},t)};function Er(){return(Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ar(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(a[n]=e[n]);return a}var Cr=function(e,t){return!!e.eligible&&!!t&&e.purchase_amount>=(null==t?void 0:t.minAmount)&&e.purchase_amount<=(null==t?void 0:t.maxAmount)},Or=function(e,n,r,a,i){var l,o,s,u=n.domain,c=n.merchantId,m=t.useState([]),d=m[0],f=m[1],p=t.useState(lr.PENDING),g=p[0],y=p[1],h=null==r?void 0:r.map(function(e){return{installments_count:e.installmentsCount,deferred_days:null==e?void 0:e.deferredDays,deferred_months:null==e?void 0:e.deferredMonths}});return t.useEffect(function(){if(g===lr.PENDING){var t=null;a&&(t={country:a});var n=null;i&&(n={country:i}),function(e,t,n){void 0===e&&(e="");try{return Promise.resolve(fetch(e,{method:"POST",headers:Er({"Content-Type":"application/json"},n),body:JSON.stringify(t)})).then(function(e){return e.json()})}catch(e){return Promise.reject(e)}}(u+"/v2/payments/eligibility",{purchase_amount:e,queries:h,billing_address:t,shipping_address:n},{Authorization:"Alma-Merchant-Auth "+c}).then(function(e){f(e),y(lr.SUCCESS)}).catch(function(){y(lr.FAILED)})}},[g]),[(l=d,o=r,s=l.filter(function(e){return!(1===e.installments_count&&0===e.deferred_days&&0===e.deferred_months)}),o?s.map(function(e){var t=30*(e.deferred_months?e.deferred_months:0)+(e.deferred_days?e.deferred_days:0),n=o.find(function(n){return e.installments_count===n.installmentsCount&&t===30*(n.deferredMonths?n.deferredMonths:0)+(n.deferredDays?n.deferredDays:0)});return Er({},e,{eligible:Cr(e,n)},function(e,t){var n,r=null==(n=e.constraints)?void 0:n.purchase_amount;return r&&t?{minAmount:Math.max(t.minAmount,null==r?void 0:r.minimum),maxAmount:Math.min(t.maxAmount,null==r?void 0:r.maximum)}:null!=t?t:{}}(e,n))}):s),g]},wr="alma-eligibility-modal",_r={desktopModal:wr+"-desktop-modal",mobileModal:wr+"-mobile-modal",leftSide:wr+"-left-side",bullet:wr+"-bullet",rightSide:wr+"-right-side",title:wr+"-title",info:wr+"-info",infoMessage:wr+"-info-message",eligibilityOptions:wr+"-eligibility-options",activeOption:wr+"-active-option",closeButton:wr+"-close-button",scheduleDetails:wr+"-schedule-details",scheduleTotal:wr+"-schedule-total",scheduleCredit:wr+"-schedule-credit",cardContainer:wr+"-card-logos",summary:wr+"-summary"},Pr=function(e){var t=e.currentPlan,a=r.useIntl(),l=cr(t.purchase_amount+t.customer_total_cost_amount),o=cr(t.customer_total_cost_amount),s=(null==t?void 0:t.annual_interest_rate)&&t.annual_interest_rate/1e4||0,u=cr(t.customer_total_cost_amount),c=t.installments_count>4;return n.createElement("div",{className:i("_GTTk7",_r.summary),"data-testid":"modal-summary"},n.createElement("div",{className:i("_34s2g",_r.scheduleTotal)},n.createElement(r.FormattedMessage,{tagName:"div",id:"installments.total-amount",defaultMessage:"Total"}),n.createElement(r.FormattedNumber,{value:l||0,style:"currency",currency:"EUR"})),n.createElement("div",{className:i("_W7qIA",_r.scheduleCredit)},c?n.createElement(n.Fragment,null,n.createElement(r.FormattedMessage,{id:"credit-features.total-credit-cost",defaultMessage:"Dont coût du crédit"}),n.createElement("span",{className:"_24KmE"},n.createElement(r.FormattedMessage,{id:"credit-features.credit-cost-display",defaultMessage:"{creditCost} (TAEG {taegPercentage})",values:{creditCost:a.formatNumber(o,{style:"currency",currency:"EUR"}),taegPercentage:a.formatNumber(s,{style:"percent",maximumFractionDigits:2})}}))):n.createElement(n.Fragment,null,n.createElement(r.FormattedMessage,{id:"installments.total-fees",defaultMessage:"Dont frais (TTC)",tagName:"div"}),n.createElement("div",null,n.createElement(r.FormattedNumber,{value:u,style:"currency",currency:"EUR"})))))},Sr=function(e){return n.createElement("div",{className:i("_31lrj",e.className),"data-testid":"loader"},n.createElement("svg",{width:"120",height:"134",viewBox:"0 0 120 134",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M83.8164 41.0325C79.1708 22.8241 69.3458 17 59.9939 17C50.642 17 40.8171 22.8241 36.1715 41.0325L16 117H35.8804C39.119 104.311 49.1016 97.2436 59.9939 97.2436C70.8863 97.2436 80.8689 104.324 84.1075 117H104L83.8164 41.0325ZM59.9939 79.5428C53.6623 79.5428 47.925 82.0552 43.6918 86.1283L55.0936 41.9207C56.1853 37.6953 57.7985 36.3503 60.0061 36.3503C62.2136 36.3503 63.8269 37.6953 64.9185 41.9207L76.3082 86.1283C72.075 82.0552 66.3256 79.5428 59.9939 79.5428Z",fill:"#FA5022"})))};function xr(e){var t=e.color;return n.createElement("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M12.5964 11.404L9.41445 8.22205L12.5964 5.04007C12.7732 4.86329 12.7732 4.50974 12.5964 4.33296L11.8893 3.62585C11.6904 3.42698 11.359 3.44908 11.1822 3.62585L8.00023 6.80783L4.81825 3.62585C4.61938 3.42698 4.28792 3.44908 4.11114 3.62585L3.40404 4.33296C3.20516 4.53183 3.20516 4.84119 3.40404 5.04007L6.58602 8.22205L3.40404 11.404C3.20516 11.6029 3.20517 11.9123 3.40404 12.1111L4.11115 12.8182C4.28792 12.995 4.61938 13.0171 4.81825 12.8182L8.00023 9.63626L11.1822 12.8182C11.359 12.995 11.6904 13.0171 11.8893 12.8182L12.5964 12.1111C12.7732 11.9344 12.7732 11.5808 12.5964 11.404Z",fill:void 0===t?"#fff":t}))}var Ir,Mr,Nr,Dr=["children","isOpen","onClose","className","contentClassName","scrollable"],Fr=function(e){var t,r=e.children,a=e.isOpen,s=e.onClose,u=e.className,c=e.contentClassName,m=e.scrollable,d=void 0!==m&&m,f=Ar(e,Dr);return l.setAppElement("body"),n.createElement(l,Object.assign({className:i("_D8SjB",u),overlayClassName:"_1yxCb",onAfterOpen:function(){o.on()},onAfterClose:function(){o.off()},onRequestClose:s,isOpen:a,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0},f),n.createElement("div",{className:"_12LLh"},n.createElement("button",{onClick:s,className:i("_3YRro",_r.closeButton),"data-testid":"modal-close-button"},n.createElement(xr,null))),n.createElement("div",{className:i("_ocM9x",c,(t={},t._1GP2F=d,t))},r))},Lr=function(e){var t=e.installments_count,a=e.deferred_days+30*e.deferred_months;return 1===t?n.createElement(r.FormattedMessage,{id:"payment-plan-strings.day-abbreviation",defaultMessage:"J{numberOfDeferredDays}",values:{numberOfDeferredDays:a>0?"+"+a:""}}):t+"x"},jr=function(e){var t;if(null!=(t=e.payment_plan)&&t.every(function(e){return 0===e.customer_fee&&0===e.customer_interest}))return n.createElement(n.Fragment,null," ",n.createElement(r.FormattedMessage,{id:"payment-plan-strings.no-fee",defaultMessage:"(sans frais)"}))},Tr=function(e){var t=e.eligibilityPlans,r=e.currentPlanIndex,a=e.setCurrentPlanIndex;return n.createElement("div",{className:i("_1l2Oa",_r.eligibilityOptions)},t.map(function(e,t){var l;return n.createElement("button",{key:t,className:i((l={},l[i("_3rue7",_r.activeOption)]=t===r,l)),onClick:function(){return a(t)}},Lr(e))}))},Rr=function(e){var t,a,l=e.installment,o=e.index;return n.createElement("div",{className:"_z2Uiv","data-testid":"installment-"+o},n.createElement("div",{className:"_2lJQy"},n.createElement("div",{className:i("_1Z9wr",(t={},t._2Nmkl=0===o,t))}),u.isToday(1e3*l.due_date)?n.createElement(r.FormattedMessage,{id:"installments.today",defaultMessage:"Aujourd'hui",tagName:"strong"}):n.createElement(r.FormattedDate,{value:1e3*l.due_date,day:"numeric",month:"long",year:"numeric"})),n.createElement("div",{className:i((a={},a["_ezY-3"]=0===o,a))},n.createElement(r.FormattedNumber,{value:l.total_amount/100,style:"currency",currency:"EUR"})))},zr=function(e){var t=e.currentPlan,a=t.installments_count>4;return n.createElement(n.Fragment,null,n.createElement("div",{className:i("_MPKjS",_r.scheduleDetails),"data-testid":"modal-installments-element"},((null==t?void 0:t.payment_plan)||[]).map(function(e,t){return n.createElement(Rr,{key:1e3*e.due_date,installment:e,index:t})}),a&&n.createElement("div",{className:"_3a7er"},n.createElement(r.FormattedMessage,{id:"credit-features.information",defaultMessage:"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager."}))))},kr=["color"],Br=function(e){var t=e.color,r=void 0===t?"#FA5022":t,a=Ar(e,kr);return n.createElement("svg",Object.assign({width:"50",height:"25",viewBox:"0 0 360 109",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),n.createElement("path",{d:"M333.24 28.3462V38.4459C327.504 31.1018 319.176 26.5132 309.288 26.5132C290.208 26.5132 275.424 43.5497 275.424 64.5757C275.424 85.6018 290.208 102.638 309.288 102.638C319.872 102.638 328.668 97.3908 334.416 89.1241V100.817H352.668V28.3462H333.24ZM314.028 84.4876C303.42 84.4876 294.828 75.574 294.828 64.5757C294.828 53.5775 303.42 44.6639 314.028 44.6639C324.636 44.6639 333.228 53.5775 333.228 64.5757C333.228 75.574 324.636 84.4876 314.028 84.4876ZM109.5 8.23073H128.916V100.805H109.5V8.23073ZM151.248 59.7356C151.248 39.8117 163.5 26.5252 180.468 26.5252C191.004 26.5252 199.332 31.1976 204.348 39.1648C209.376 31.1976 217.692 26.5252 228.228 26.5252C245.196 26.5252 257.448 39.8117 257.448 59.7356V100.817H238.032V57.639C238.032 49.8635 232.872 44.7957 226.044 44.7957C219.216 44.7957 214.056 49.8755 214.056 57.639V100.817H194.64V57.639C194.64 49.8635 189.48 44.7957 182.652 44.7957C175.824 44.7957 170.664 49.8755 170.664 57.639V100.817H151.248V59.7356ZM74.34 29.101C69.744 11.9088 60.0241 6.40967 50.772 6.40967C41.5201 6.40967 31.8 11.9088 27.204 29.101L7.24805 100.829H26.916C30.12 88.8485 39.996 82.1753 50.772 82.1753C61.548 82.1753 71.424 88.8605 74.6281 100.829H94.3081L74.34 29.101ZM50.772 65.4623C44.508 65.4623 38.8321 67.8345 34.6441 71.6803L45.924 29.9397C47.0041 25.9501 48.6001 24.6802 50.784 24.6802C52.9681 24.6802 54.5641 25.9501 55.6441 29.9397L66.912 71.6803C62.724 67.8345 57.036 65.4623 50.772 65.4623Z",fill:r}))},Hr=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},n.createElement("defs",null,n.createElement("linearGradient",{id:"cardamex",x1:"10.914%",x2:"87.432%",y1:"86.279%",y2:"15.035%"},n.createElement("stop",{offset:"0%",stopColor:"#3FA9F5"}),n.createElement("stop",{offset:"100%",stopColor:"#0071BC"}))),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:"url(#cardamex)",fillRule:"nonzero",d:"M22.559 16H1.379C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.441 1.338z"}),n.createElement("g",{fill:"#FFF"},n.createElement("path",{d:"M10.115 8.711L8.889 6.044H7.295v3.852L5.517 6.044H4.17l-1.778 4.03h1.103l.368-.889h2.023l.368.89h2.084V7.11l1.349 2.963h.92l1.348-2.904v2.904h.98v-4.03H11.28l-1.165 2.667zm-5.272-.474H4.23l.613-1.422v.06l.613 1.362h-.613z"}),n.createElement("path",{fillRule:"nonzero",d:"M19.372 7.94l.735-.77 1.042-1.185h-1.287L18.697 7.23l-1.164-1.245h-3.985v3.97h3.923l1.226-1.303 1.165 1.304h1.287L20.107 8.71l-.735-.77zM16.92 9.186h-2.33v-.77h2.268v-.77H14.59v-.712h2.33L18.084 8 16.92 9.185z"}))))},qr=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},n.createElement("g",{fill:"none",fillRule:"nonzero"},n.createElement("path",{fill:"#FCFCFC",d:"M22.684 16H1.38C.627 16 0 15.39 0 14.656V1.344C0 .61.627 0 1.379 0H22.62C23.373 0 24 .61 24 1.344v13.374c0 .671-.564 1.282-1.316 1.282z"})," ",n.createElement("path",{fill:"#005098",d:"M8.889 10.726l.948-5.393h1.482l-.949 5.393zM15.704 5.452a3.658 3.658 0 0 0-1.304-.237c-1.481 0-2.489.71-2.489 1.778 0 .77.711 1.185 1.304 1.481.592.237.77.415.77.652 0 .355-.474.533-.889.533-.592 0-.889-.059-1.363-.296l-.177-.06-.178 1.186c.355.178 1.007.296 1.659.296 1.54 0 2.548-.71 2.548-1.837 0-.592-.415-1.067-1.244-1.481-.534-.237-.83-.415-.83-.652 0-.237.237-.474.83-.474.474 0 .83.118 1.126.178l.118.059.119-1.126M19.496 5.333H18.37c-.355 0-.592.119-.77.474l-2.193 4.919h1.541s.237-.652.296-.83h1.897c.059.178.178.83.178.83h1.362l-1.185-5.393zM17.66 8.77l.593-1.481s.118-.296.178-.533l.118.474s.296 1.303.356 1.54h-1.245zM7.644 5.333L6.222 9.007l-.178-.77C5.748 7.348 4.92 6.459 4.03 5.985l1.303 4.682h1.541l2.311-5.393h-1.54"}),n.createElement("path",{fill:"#F6A500",d:"M4.919 5.333h-2.37v.119c1.836.474 3.08 1.54 3.555 2.844L5.57 5.807c-.118-.414-.355-.474-.651-.474"}),n.createElement("path",{fill:"#0A5296",d:"M23.937 3.23H0V1.316C0 .598.627 0 1.379 0H22.62C23.373 0 24 .598 24 1.316V3.23h-.063z"}),n.createElement("path",{fill:"#F4A428",d:"M.063 13H24v1.8c0 .655-.625 1.2-1.375 1.2H1.375C.625 16 0 15.455 0 14.8V13h.063z"})))},Ur=function(){return n.createElement("svg",{width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},n.createElement("g",{id:"Parcours-1C-B",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},n.createElement("g",{id:"mobile-1C-Paiement-V1",transform:"translate(-269.000000, -313.000000)"},n.createElement("g",{id:"mastercard",transform:"translate(269.000000, 313.000000)"},n.createElement("rect",{id:"Rectangle",fill:"#FFFFFF",x:"0",y:"0",width:"24",height:"16",rx:"1"}),n.createElement("g",{id:"Group-6",transform:"translate(4.000000, 3.000000)"},n.createElement("circle",{id:"Oval-4-Copy",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}),n.createElement("circle",{id:"Oval-4",fillOpacity:"0.25",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),n.createElement("circle",{id:"Oval-4-Copy-2",fillOpacity:"0.9",fill:"#F79F1A",cx:"10.9473684",cy:"5.05263158",r:"5.05263158"}),n.createElement("circle",{id:"Oval-4-Copy-3",fillOpacity:"0.3",fill:"#EA001B",cx:"5.05263158",cy:"5.05263158",r:"5.05263158"}))))))},Vr=function(){return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",viewBox:"0 0 24 16"},n.createElement("defs",null,n.createElement("linearGradient",{id:"cardcb",x1:"5.842%",x2:"95.393%",y1:"81.753%",y2:"17.344%"},n.createElement("stop",{offset:"0%",stopColor:"#39B54A"})," ",n.createElement("stop",{offset:"100%",stopColor:"#0A5296"}))),n.createElement("g",{fill:"none",fillRule:"nonzero"},n.createElement("path",{fill:"url(#cardcb)",d:"M22.621 16H1.38C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.379 1.338z"}),n.createElement("g",{fill:"#FFF"},n.createElement("path",{d:"M19.094 4.03h-6.437V8h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.066-.98-1.955-2.145-1.955zM19.094 8.593h-6.437v3.97h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.067-.98-1.955-2.145-1.955zM7.017 8.06h4.966c-.245-2.371-2.391-4.267-4.966-4.267-2.758 0-5.027 2.074-5.027 4.681s2.269 4.682 5.027 4.682c2.698 0 4.904-2.015 5.027-4.563H7.017v-.534z"}))))},Gr={cardContainer:"_1N3yO"},Zr=function(e){var t=Array.from(new Set(e.cards));return n.createElement("div",{"data-testid":"card-logos",className:i(Gr.cardContainer,_r.cardContainer)},t.map(function(e){return n.createElement("div",{key:e,className:Gr.card,"data-testid":"card-logo-"+e},"cb"===e&&n.createElement(Vr,null),"amex"===e&&n.createElement(Hr,null),"mastercard"===e&&n.createElement(Ur,null),"visa"===e&&n.createElement(qr,null))}))},Wr=function(){return n.createElement("div",{className:i("_180ro",_r.info),"data-testid":"modal-info-element"},n.createElement("div",{className:"_1HqCO"},n.createElement("div",{className:i("_3B8wx",_r.bullet)},"1"),n.createElement("div",{className:_r.infoMessage},n.createElement(r.FormattedMessage,{id:"eligibility-modal.bullet-1",defaultMessage:"Choisissez <strong>Alma</strong> au moment du paiement.",values:{strong:function(){return n.createElement("strong",null,[].slice.call(arguments))}}}))),n.createElement("div",{className:"_1HqCO"},n.createElement("div",{className:i("_3B8wx",_r.bullet)},"2"),n.createElement("div",{className:_r.infoMessage},n.createElement(r.FormattedMessage,{id:"eligibility-modal.bullet-2",defaultMessage:"Renseignez les <strong>informations</strong> demandées.",values:{strong:function(){return n.createElement("strong",null,[].slice.call(arguments))}}}))),n.createElement("div",{className:"_1HqCO"},n.createElement("div",{className:i("_3B8wx",_r.bullet)},"3"),n.createElement("div",{className:_r.infoMessage},n.createElement(r.FormattedMessage,{id:"eligibility-modal.bullet-3",defaultMessage:"La validation de votre paiement est <strong>instantanée</strong> !",values:{strong:function(){return n.createElement("strong",null,[].slice.call(arguments))}}}))))},Jr=function(e){var t=e.isSomePlanDeferred;return n.createElement("div",{className:i("_3ERx-",_r.title),"data-testid":"modal-title-element"},n.createElement(r.FormattedMessage,t?{id:"eligibility-modal.title-deferred-plan",defaultMessage:"Payez en plusieurs fois ou plus tard par carte bancaire avec Alma."}:{id:"eligibility-modal.title-normal",defaultMessage:"Payez en plusieurs fois par carte bancaire avec Alma."}))},Kr=function(e){var t=e.children,r=e.isSomePlanDeferred,a=e.cards;return n.createElement("div",{className:i("_21g6u",_r.desktopModal),"data-testid":"modal-container"},n.createElement("aside",{className:i(["_3zaP5","_2SBRC",_r.leftSide])},n.createElement(Jr,{isSomePlanDeferred:r}),n.createElement(Wr,null),a&&n.createElement(Zr,{cards:a}),n.createElement(Br,{className:"_xW3wt",width:"75"})),n.createElement("div",{className:i("_3zaP5",_r.rightSide)},t))},Yr=function(e){var t=e.children,r=e.isSomePlanDeferred,a=e.cards;return n.createElement("div",{className:i("_2G7Ch",_r.mobileModal),"data-testid":"modal-container"},n.createElement(Jr,{isSomePlanDeferred:r}),t,n.createElement(Wr,null),a&&n.createElement(Zr,{cards:a}),n.createElement(Br,{className:"_2779r",width:"75"}))},Qr=function(e){var a=e.onClose,i=e.eligibilityPlans,l=e.status,o=e.cards,u=t.useState(e.initialPlanIndex||0),c=u[0],m=u[1],d=s.useMediaQuery({minWidth:800})?Kr:Yr,f=i.filter(function(e){return e.eligible}),p=f[c],g=i.some(function(e){return e.deferred_days>0||e.deferred_months>0});return n.createElement(Fr,{onClose:a,ariaHideApp:!1,scrollable:!0,isOpen:!0},n.createElement(d,{isSomePlanDeferred:g,cards:o},l===lr.PENDING&&n.createElement("div",{className:"_2oTJq"},n.createElement(Sr,null)),l===lr.SUCCESS&&0===f.length&&n.createElement("div",{className:"_17qNJ"},n.createElement(r.FormattedMessage,{id:"eligibility-modal.no-eligibility",defaultMessage:"Oups, il semblerait que la simulation n'ait pas fonctionné."})),l===lr.SUCCESS&&f.length>=1&&n.createElement(n.Fragment,null,n.createElement(Tr,{eligibilityPlans:f,currentPlanIndex:c,setCurrentPlanIndex:m}),n.createElement("div",{className:"_2u9rj"},n.createElement("div",{className:"_VRdAU"}),n.createElement(zr,{currentPlan:p}),n.createElement(Pr,{currentPlan:p})))))},Xr=function(e){var t=e.onClose,r=e.cards,a=Or(e.purchaseAmount,e.apiData,e.configPlans,e.customerBillingCountry,e.customerShippingCountry);return n.createElement(Qr,{initialPlanIndex:0,onClose:t,eligibilityPlans:a[0],status:a[1],cards:r})},$r=function(e){return n.createElement("div",{className:i("_2SwwZ",e.className),"data-testid":"loader"},n.createElement("div",{className:"_2qODo"}),n.createElement("div",{className:"_2YO01"}))},ea="alma-payment-plans",ta={container:ea+"-container",eligibilityLine:ea+"-eligibility-line",eligibilityOptions:ea+"-eligibility-options",notEligibleOption:ea+"-not-eligible-option",paymentInfo:ea+"-payment-info",activeOption:ea+"-active-option"},na=function(e){var a,l,o,s,c=e.hideIfNotEligible,m=e.monochrome,d=e.suggestedPaymentPlan,f=e.cards,p=e.transitionDelay,g=e.hideBorder,y=void 0!==g&&g,h=Or(e.purchaseAmount,e.apiData,e.configPlans,e.customerBillingCountry,e.customerShippingCountry),v=h[0],b=h[1],E=v.filter(function(e){return e.eligible}),A=function(e){var t=e.suggestedPaymentPlan,n=e.eligibilityPlans,r=Array.isArray(t)?t:[t],a=function(e){var t=r[e],a=n.findIndex(function(e){return e.installments_count===t&&e.eligible});if(-1!==a)return{v:a}};for(var i in r){var l=a(i);if("object"==typeof l)return l.v}return 0}({eligibilityPlans:v,suggestedPaymentPlan:null!=d?d:0}),C=void 0!==d,O=void 0!==p,w=t.useState(!1),_=w[0],P=w[1],S=v.reduce(function(e,t,n){return t.eligible?[].concat(e,[n]):e},[]),x=function(e,n){var r=t.useState(0),a=r[0],i=r[1],l=t.useState(!0),o=l[0],s=l[1];return t.useEffect(function(){var t,r=!0;return 0!==e.length&&(!e.includes(a)&&o&&i(e[0]),t=setTimeout(function(){o&&r&&i(e[e.includes(a)?(e.indexOf(a)+1)%e.length:0])},n)),function(){r=!1,clearTimeout(t)}},[e,a]),{current:a,onHover:function(e){i(e),s(!1)},onLeave:function(){s(!0)}}}(S,O?null!=p?p:5500:C?31536e6:5500),I=x.current,M=x.onHover,N=x.onLeave;return t.useEffect(function(){b===lr.SUCCESS&&C&&(M(A),N())},[b]),b===lr.PENDING?n.createElement("div",{className:i("_TSkFv","_1ZDMS")},n.createElement($r,null)):c&&0===E.length||0===v.length||b===lr.FAILED?null:n.createElement(n.Fragment,null,n.createElement("div",{onClick:function(e){e.preventDefault(),E.length>0&&P(!0)},className:i("_TSkFv",(a={},a._UksZa=E.length>0,a["_1lr-q"]=0===E.length,a._3_qcn=y,a),ta.container),"data-testid":"widget-button"},n.createElement("div",{className:i("_bMClc",ta.eligibilityLine)},n.createElement(Br,{className:"_LJ4nZ",color:m?"var(--off-black)":void 0}),n.createElement("div",{className:i("_17c_S",ta.eligibilityOptions)},v.map(function(e,t){var r,a=t===I;return n.createElement("div",{key:t,onMouseEnter:function(){return M(t)},onTouchStart:function(){return M(t)},onMouseOut:N,onTouchEnd:N,className:i("_2Kqjn",(r={},r[i("_3dG_J",ta.activeOption)]=a,r._2hx83=m&&a,r[i("_3O1bg",ta.notEligibleOption)]=!e.eligible,r))},Lr(e))}))),n.createElement("div",{className:i("_25GrF",(l={},l[i("_3O1bg",ta.notEligibleOption)]=v[I]&&!v[I].eligible,l),ta.paymentInfo)},0!==v.length&&function(e){var t=e.installments_count,a=e.minAmount,i=void 0===a?0:a,l=e.maxAmount,o=void 0===l?0:l,s=e.payment_plan,c=e.deferred_days+30*e.deferred_months;if(!e.eligible)return n.createElement(r.FormattedMessage,e.purchase_amount>o?{id:"payment-plan-strings.ineligible-greater-than-max",defaultMessage:"Jusqu'à {maxAmount}",values:{maxAmount:n.createElement(r.FormattedNumber,{value:cr(o),style:"currency",currency:"EUR"})}}:{id:"payment-plan-strings.ineligible-lower-than-min",defaultMessage:"À partir de {minAmount}",values:{minAmount:n.createElement(r.FormattedNumber,{value:cr(i),style:"currency",currency:"EUR"})}});if(!s)throw Error("No payment plan provided for payment in "+t+" installments. Please contact us if you see this error.");if(0!==c&&1===t)return n.createElement(n.Fragment,null,n.createElement(r.FormattedMessage,{id:"payment-plan-strings.deferred",defaultMessage:"{totalAmount} à payer le {dueDate}",values:{totalAmount:n.createElement(r.FormattedNumber,{value:cr(s[0].total_amount),style:"currency",currency:"EUR"}),dueDate:n.createElement(r.FormattedDate,{value:u.secondsToMilliseconds(s[0].due_date),day:"numeric",month:"long",year:"numeric"})}}),jr(e));if(t>0){var m=null==s?void 0:s.every(function(e,t){return 0===t||e.total_amount===s[0].total_amount});return n.createElement(n.Fragment,null,n.createElement(r.FormattedMessage,m?{id:"payment-plan-strings.multiple-installments-same-amount",defaultMessage:"{installmentsCount} x {totalAmount}",values:{totalAmount:n.createElement(r.FormattedNumber,{value:cr(s[0].total_amount),style:"currency",currency:"EUR"}),installmentsCount:t}}:{id:"payment-plan-strings.multiple-installments",defaultMessage:"{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",values:{firstInstallmentAmount:n.createElement(r.FormattedNumber,{value:cr(s[0].total_amount),style:"currency",currency:"EUR"}),numberOfRemainingInstallments:t-1,othersInstallmentAmount:n.createElement(r.FormattedNumber,{value:cr(s[1].total_amount),style:"currency",currency:"EUR"})}}),jr(e))}return n.createElement(r.FormattedMessage,{id:"payment-plan-strings.default-message",defaultMessage:"Payez en plusieurs fois avec Alma"})}(v[I]))),_&&n.createElement(Qr,{initialPlanIndex:(o=I,s=S.findIndex(function(e){return e===o}),-1===s?0:s),onClose:function(){return P(!1)},eligibilityPlans:E,status:b,cards:f}))},ra=function(){function e(e){this.apiData=e}return e.prototype.add=function(e,t){var r=this,i=document.querySelector(t.container);if(i&&a.unmountComponentAtNode(i),e===ir.PaymentPlans){var l=t.container,o=t.hideBorder,s=t.monochrome,u=t.locale;i&&a.render(n.createElement(br,{locale:void 0===u?or.en:u},n.createElement(na,{apiData:this.apiData,configPlans:t.plans,hideIfNotEligible:t.hideIfNotEligible,monochrome:void 0===s||s,purchaseAmount:t.purchaseAmount,suggestedPaymentPlan:t.suggestedPaymentPlan,cards:t.cards,customerBillingCountry:t.customerBillingCountry,customerShippingCountry:t.customerShippingCountry,transitionDelay:t.transitionDelay,hideBorder:void 0!==o&&o})),document.querySelector(l))}if(e===ir.Modal){var c,m=t.container,d=t.clickableSelector,f=t.purchaseAmount,p=t.plans,g=t.locale,y=void 0===g?or.en:g,h=t.customerBillingCountry,v=t.customerShippingCountry,b=t.cards,E=function(){return i&&a.unmountComponentAtNode(i)},A=function(){a.render(n.createElement(br,{locale:y},n.createElement(Xr,{purchaseAmount:f,apiData:r.apiData,configPlans:p,customerBillingCountry:h,customerShippingCountry:v,onClose:E,cards:b})),document.querySelector(m))};return d&&(null==(c=document.querySelector(d))||c.addEventListener("click",A,!1)),{open:A,close:E}}},e}();(Ir=exports.ApiMode||(exports.ApiMode={})).LIVE="https://api.getalma.eu",Ir.TEST="https://api.sandbox.getalma.eu",(Mr=exports.Widgets||(exports.Widgets={})).initialize=function(e,t){return new ra({domain:t,merchantId:e})},Mr.PaymentPlans=ir.PaymentPlans,Mr.Modal=ir.Modal,(Nr=exports.Utils||(exports.Utils={})).priceToCents=function(e){return Math.round(100*e)},Nr.priceFromCents=cr,Nr.formatCents=function(e){return String(cr(e)).replace(".",",")};
|
|
2
2
|
//# sourceMappingURL=widgets.js.map
|