@shoppexio/storefront-react 0.5.0 → 0.6.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/account.js CHANGED
@@ -410,6 +410,21 @@ var ar_default = {
410
410
  billingOther: "\u0641\u0648\u062A\u0631\u0629 \u0643\u0644 {count} \xD7 {interval}",
411
411
  gateway: "\u0645\u0632\u0648\u0651\u062F \u0627\u0644\u062F\u0641\u0639",
412
412
  paymentMethod: "\u0637\u0631\u064A\u0642\u0629 \u0627\u0644\u062F\u0641\u0639",
413
+ discount: "\u0627\u0644\u062E\u0635\u0645",
414
+ discountPercent: "{percent}%",
415
+ discountCap: "\u060C \u0628\u062D\u062F \u0623\u0642\u0635\u0649 {amount} \u0644\u0643\u0644 \u062F\u0641\u0639\u0629",
416
+ discountEvery: "{code} \xB7 \u062E\u0635\u0645 {off} \u0639\u0644\u0649 \u0643\u0644 \u062F\u0641\u0639\u0629{cap}",
417
+ discountLeft: "{code} \xB7 \u062E\u0635\u0645 {off}{cap} \xB7 \u0627\u0644\u062F\u0641\u0639\u0627\u062A \u0627\u0644\u0645\u062A\u0628\u0642\u064A\u0629: {count}\u060C \u062B\u0645 {price} {period}",
418
+ discountLeftOne: "{code} \xB7 \u062E\u0635\u0645 {off}{cap} \xB7 \u062F\u0641\u0639\u0629 \u0648\u0627\u062D\u062F\u0629 \u0645\u062A\u0628\u0642\u064A\u0629\u060C \u062B\u0645 {price} {period}",
419
+ periodDayOne: "\u064A\u0648\u0645\u064A\u064B\u0627",
420
+ periodDayOther: "\u0643\u0644 {count} \u0623\u064A\u0627\u0645",
421
+ periodWeekOne: "\u0623\u0633\u0628\u0648\u0639\u064A\u064B\u0627",
422
+ periodWeekOther: "\u0643\u0644 {count} \u0623\u0633\u0627\u0628\u064A\u0639",
423
+ periodMonthOne: "\u0634\u0647\u0631\u064A\u064B\u0627",
424
+ periodMonthOther: "\u0643\u0644 {count} \u0623\u0634\u0647\u0631",
425
+ periodYearOne: "\u0633\u0646\u0648\u064A\u064B\u0627",
426
+ periodYearOther: "\u0643\u0644 {count} \u0633\u0646\u0648\u0627\u062A",
427
+ periodOther: "\u0643\u0644 {count} {interval}",
413
428
  cardOnFile: "{brand} \u0627\u0644\u0645\u0646\u062A\u0647\u064A\u0629 \u0628\u0627\u0644\u0623\u0631\u0642\u0627\u0645 {last4}",
414
429
  noPaymentMethod: "\u0644\u0627 \u062A\u0648\u062C\u062F \u0637\u0631\u064A\u0642\u0629 \u0645\u062D\u0641\u0648\u0638\u0629",
415
430
  pause: "\u0625\u064A\u0642\u0627\u0641 \u0645\u0624\u0642\u062A",
@@ -497,7 +512,8 @@ var ar_default = {
497
512
  historyFirstOrder: "\u0627\u0644\u0637\u0644\u0628 \u0627\u0644\u0623\u0648\u0644",
498
513
  historyRenewal: "\u062A\u062C\u062F\u064A\u062F",
499
514
  historyPlanChange: "\u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062E\u0637\u0629\u060C \u0645\u0646 {from} \u0625\u0644\u0649 {to}",
500
- historyDays: "\u0639\u0646 {days} \u0645\u0646 {total} \u064A\u0648\u0645\u064B\u0627"
515
+ historyDays: "\u0639\u0646 {days} \u0645\u0646 {total} \u064A\u0648\u0645\u064B\u0627",
516
+ historyCouponPayment: "{code} \xB7 {payment} \u0645\u0646 {total}"
501
517
  },
502
518
  favorites: {
503
519
  loading: "\u062C\u0627\u0631\u064D \u062A\u062D\u0645\u064A\u0644 \u0645\u0641\u0636\u0644\u062A\u0643",
@@ -1025,6 +1041,21 @@ var de_default = {
1025
1041
  billingOther: "Abrechnung alle {count} \xD7 {interval}",
1026
1042
  gateway: "Zahlungsanbieter",
1027
1043
  paymentMethod: "Zahlungsmethode",
1044
+ discount: "Rabatt",
1045
+ discountPercent: "{percent} %",
1046
+ discountCap: ", h\xF6chstens {amount} pro Zahlung",
1047
+ discountEvery: "{code} \xB7 {off} Rabatt auf jede Zahlung{cap}",
1048
+ discountLeft: "{code} \xB7 {off} Rabatt{cap} \xB7 noch {count} Zahlungen, danach {price} {period}",
1049
+ discountLeftOne: "{code} \xB7 {off} Rabatt{cap} \xB7 noch 1 Zahlung, danach {price} {period}",
1050
+ periodDayOne: "pro Tag",
1051
+ periodDayOther: "alle {count} Tage",
1052
+ periodWeekOne: "pro Woche",
1053
+ periodWeekOther: "alle {count} Wochen",
1054
+ periodMonthOne: "pro Monat",
1055
+ periodMonthOther: "alle {count} Monate",
1056
+ periodYearOne: "pro Jahr",
1057
+ periodYearOther: "alle {count} Jahre",
1058
+ periodOther: "alle {count} {interval}",
1028
1059
  cardOnFile: "{brand} endet auf {last4}",
1029
1060
  noPaymentMethod: "Keine hinterlegt",
1030
1061
  pause: "Pausieren",
@@ -1112,7 +1143,8 @@ var de_default = {
1112
1143
  historyFirstOrder: "Erstbestellung",
1113
1144
  historyRenewal: "Verl\xE4ngerung",
1114
1145
  historyPlanChange: "Tarifwechsel, {from} zu {to}",
1115
- historyDays: "f\xFCr {days} von {total} Tagen"
1146
+ historyDays: "f\xFCr {days} von {total} Tagen",
1147
+ historyCouponPayment: "{code} \xB7 {payment} von {total}"
1116
1148
  },
1117
1149
  favorites: {
1118
1150
  loading: "Deine Favoriten werden geladen",
@@ -1640,6 +1672,21 @@ var en_default = {
1640
1672
  billingOther: "Billed every {count} \xD7 {interval}",
1641
1673
  gateway: "Payment provider",
1642
1674
  paymentMethod: "Payment method",
1675
+ discount: "Discount",
1676
+ discountPercent: "{percent} %",
1677
+ discountCap: ", up to {amount} each",
1678
+ discountEvery: "{code} \xB7 {off} off every payment{cap}",
1679
+ discountLeft: "{code} \xB7 {off} off{cap} \xB7 {count} more payments, then {price} {period}",
1680
+ discountLeftOne: "{code} \xB7 {off} off{cap} \xB7 1 more payment, then {price} {period}",
1681
+ periodDayOne: "a day",
1682
+ periodDayOther: "every {count} days",
1683
+ periodWeekOne: "a week",
1684
+ periodWeekOther: "every {count} weeks",
1685
+ periodMonthOne: "a month",
1686
+ periodMonthOther: "every {count} months",
1687
+ periodYearOne: "a year",
1688
+ periodYearOther: "every {count} years",
1689
+ periodOther: "every {count} {interval}",
1643
1690
  cardOnFile: "{brand} ending {last4}",
1644
1691
  noPaymentMethod: "None on file",
1645
1692
  pause: "Pause",
@@ -1727,7 +1774,8 @@ var en_default = {
1727
1774
  historyFirstOrder: "First order",
1728
1775
  historyRenewal: "Renewal",
1729
1776
  historyPlanChange: "Plan change, {from} to {to}",
1730
- historyDays: "for {days} of {total} days"
1777
+ historyDays: "for {days} of {total} days",
1778
+ historyCouponPayment: "{code} \xB7 {payment} of {total}"
1731
1779
  },
1732
1780
  favorites: {
1733
1781
  loading: "Loading your favorites",
@@ -2255,6 +2303,21 @@ var es_default = {
2255
2303
  billingOther: "Se cobra cada {count} \xD7 {interval}",
2256
2304
  gateway: "Proveedor de pago",
2257
2305
  paymentMethod: "M\xE9todo de pago",
2306
+ discount: "Descuento",
2307
+ discountPercent: "{percent} %",
2308
+ discountCap: ", hasta {amount} por pago",
2309
+ discountEvery: "{code} \xB7 {off} de descuento en cada pago{cap}",
2310
+ discountLeft: "{code} \xB7 {off} de descuento{cap} \xB7 {count} pagos m\xE1s, despu\xE9s {price} {period}",
2311
+ discountLeftOne: "{code} \xB7 {off} de descuento{cap} \xB7 1 pago m\xE1s, despu\xE9s {price} {period}",
2312
+ periodDayOne: "al d\xEDa",
2313
+ periodDayOther: "cada {count} d\xEDas",
2314
+ periodWeekOne: "a la semana",
2315
+ periodWeekOther: "cada {count} semanas",
2316
+ periodMonthOne: "al mes",
2317
+ periodMonthOther: "cada {count} meses",
2318
+ periodYearOne: "al a\xF1o",
2319
+ periodYearOther: "cada {count} a\xF1os",
2320
+ periodOther: "cada {count} {interval}",
2258
2321
  cardOnFile: "{brand} terminada en {last4}",
2259
2322
  noPaymentMethod: "Ninguno guardado",
2260
2323
  pause: "Pausar",
@@ -2342,7 +2405,8 @@ var es_default = {
2342
2405
  historyFirstOrder: "Primer pedido",
2343
2406
  historyRenewal: "Renovaci\xF3n",
2344
2407
  historyPlanChange: "Cambio de plan, de {from} a {to}",
2345
- historyDays: "por {days} de {total} d\xEDas"
2408
+ historyDays: "por {days} de {total} d\xEDas",
2409
+ historyCouponPayment: "{code} \xB7 {payment} de {total}"
2346
2410
  },
2347
2411
  favorites: {
2348
2412
  loading: "Cargando tus favoritos",
@@ -2870,6 +2934,21 @@ var fi_default = {
2870
2934
  billingOther: "Laskutetaan {count} \xD7 {interval} v\xE4lein",
2871
2935
  gateway: "Maksupalvelu",
2872
2936
  paymentMethod: "Maksutapa",
2937
+ discount: "Alennus",
2938
+ discountPercent: "{percent} %",
2939
+ discountCap: ", enint\xE4\xE4n {amount} maksua kohden",
2940
+ discountEvery: "{code} \xB7 {off} alennus jokaisesta maksusta{cap}",
2941
+ discountLeft: "{code} \xB7 {off} alennus{cap} \xB7 viel\xE4 {count} maksua, sitten {price} {period}",
2942
+ discountLeftOne: "{code} \xB7 {off} alennus{cap} \xB7 viel\xE4 1 maksu, sitten {price} {period}",
2943
+ periodDayOne: "p\xE4iv\xE4ss\xE4",
2944
+ periodDayOther: "{count} p\xE4iv\xE4n v\xE4lein",
2945
+ periodWeekOne: "viikossa",
2946
+ periodWeekOther: "{count} viikon v\xE4lein",
2947
+ periodMonthOne: "kuukaudessa",
2948
+ periodMonthOther: "{count} kuukauden v\xE4lein",
2949
+ periodYearOne: "vuodessa",
2950
+ periodYearOther: "{count} vuoden v\xE4lein",
2951
+ periodOther: "{count} {interval} v\xE4lein",
2873
2952
  cardOnFile: "{brand}, p\xE4\xE4ttyy numeroihin {last4}",
2874
2953
  noPaymentMethod: "Ei tallennettuna",
2875
2954
  pause: "Keskeyt\xE4",
@@ -2957,7 +3036,8 @@ var fi_default = {
2957
3036
  historyFirstOrder: "Ensimm\xE4inen tilaus",
2958
3037
  historyRenewal: "Uusinta",
2959
3038
  historyPlanChange: "Sopimuksen vaihto, {from} \u2192 {to}",
2960
- historyDays: "{days}/{total} p\xE4iv\xE4lt\xE4"
3039
+ historyDays: "{days}/{total} p\xE4iv\xE4lt\xE4",
3040
+ historyCouponPayment: "{code} \xB7 {payment}/{total}"
2961
3041
  },
2962
3042
  favorites: {
2963
3043
  loading: "Ladataan suosikkejasi",
@@ -3485,6 +3565,21 @@ var fr_default = {
3485
3565
  billingOther: "Factur\xE9 tous les {count} \xD7 {interval}",
3486
3566
  gateway: "Prestataire de paiement",
3487
3567
  paymentMethod: "Moyen de paiement",
3568
+ discount: "R\xE9duction",
3569
+ discountPercent: "{percent} %",
3570
+ discountCap: ", jusqu\u2019\xE0 {amount} par paiement",
3571
+ discountEvery: "{code} \xB7 {off} de r\xE9duction sur chaque paiement{cap}",
3572
+ discountLeft: "{code} \xB7 {off} de r\xE9duction{cap} \xB7 encore {count} paiements, puis {price} {period}",
3573
+ discountLeftOne: "{code} \xB7 {off} de r\xE9duction{cap} \xB7 encore 1 paiement, puis {price} {period}",
3574
+ periodDayOne: "par jour",
3575
+ periodDayOther: "tous les {count} jours",
3576
+ periodWeekOne: "par semaine",
3577
+ periodWeekOther: "toutes les {count} semaines",
3578
+ periodMonthOne: "par mois",
3579
+ periodMonthOther: "tous les {count} mois",
3580
+ periodYearOne: "par an",
3581
+ periodYearOther: "tous les {count} ans",
3582
+ periodOther: "tous les {count} {interval}",
3488
3583
  cardOnFile: "{brand} finissant par {last4}",
3489
3584
  noPaymentMethod: "Aucun enregistr\xE9",
3490
3585
  pause: "Mettre en pause",
@@ -3572,7 +3667,8 @@ var fr_default = {
3572
3667
  historyFirstOrder: "Premi\xE8re commande",
3573
3668
  historyRenewal: "Renouvellement",
3574
3669
  historyPlanChange: "Changement de formule, de {from} \xE0 {to}",
3575
- historyDays: "pour {days} jours sur {total}"
3670
+ historyDays: "pour {days} jours sur {total}",
3671
+ historyCouponPayment: "{code} \xB7 {payment} sur {total}"
3576
3672
  },
3577
3673
  favorites: {
3578
3674
  loading: "Chargement de vos favoris",
@@ -4100,6 +4196,21 @@ var hi_default = {
4100
4196
  billingOther: "\u0939\u0930 {count} \xD7 {interval} \u092E\u0947\u0902 \u092C\u093F\u0932\u093F\u0902\u0917",
4101
4197
  gateway: "\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u094D\u0930\u0926\u093E\u0924\u093E",
4102
4198
  paymentMethod: "\u092D\u0941\u0917\u0924\u093E\u0928 \u0915\u093E \u0924\u0930\u0940\u0915\u093E",
4199
+ discount: "\u091B\u0942\u091F",
4200
+ discountPercent: "{percent}%",
4201
+ discountCap: ", \u0939\u0930 \u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0930 \u0905\u0927\u093F\u0915\u0924\u092E {amount}",
4202
+ discountEvery: "{code} \xB7 \u0939\u0930 \u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0930 {off} \u0915\u0940 \u091B\u0942\u091F{cap}",
4203
+ discountLeft: "{code} \xB7 {off} \u0915\u0940 \u091B\u0942\u091F{cap} \xB7 {count} \u0914\u0930 \u092D\u0941\u0917\u0924\u093E\u0928, \u092B\u093F\u0930 {price} {period}",
4204
+ discountLeftOne: "{code} \xB7 {off} \u0915\u0940 \u091B\u0942\u091F{cap} \xB7 1 \u0914\u0930 \u092D\u0941\u0917\u0924\u093E\u0928, \u092B\u093F\u0930 {price} {period}",
4205
+ periodDayOne: "\u092A\u094D\u0930\u0924\u093F \u0926\u093F\u0928",
4206
+ periodDayOther: "\u0939\u0930 {count} \u0926\u093F\u0928",
4207
+ periodWeekOne: "\u092A\u094D\u0930\u0924\u093F \u0938\u092A\u094D\u0924\u093E\u0939",
4208
+ periodWeekOther: "\u0939\u0930 {count} \u0938\u092A\u094D\u0924\u093E\u0939",
4209
+ periodMonthOne: "\u092A\u094D\u0930\u0924\u093F \u092E\u093E\u0939",
4210
+ periodMonthOther: "\u0939\u0930 {count} \u092E\u0939\u0940\u0928\u0947",
4211
+ periodYearOne: "\u092A\u094D\u0930\u0924\u093F \u0935\u0930\u094D\u0937",
4212
+ periodYearOther: "\u0939\u0930 {count} \u0938\u093E\u0932",
4213
+ periodOther: "\u0939\u0930 {count} {interval}",
4103
4214
  cardOnFile: "{brand}, \u0905\u0902\u0924\u093F\u092E \u0905\u0902\u0915 {last4}",
4104
4215
  noPaymentMethod: "\u0915\u094B\u0908 \u0938\u0939\u0947\u091C\u093E \u0939\u0941\u0906 \u0924\u0930\u0940\u0915\u093E \u0928\u0939\u0940\u0902",
4105
4216
  pause: "\u0930\u094B\u0915\u0947\u0902",
@@ -4187,7 +4298,8 @@ var hi_default = {
4187
4298
  historyFirstOrder: "\u092A\u0939\u0932\u093E \u0911\u0930\u094D\u0921\u0930",
4188
4299
  historyRenewal: "\u0928\u0935\u0940\u0928\u0940\u0915\u0930\u0923",
4189
4300
  historyPlanChange: "\u092F\u094B\u091C\u0928\u093E \u092C\u0926\u0932\u093E\u0935, {from} \u0938\u0947 {to}",
4190
- historyDays: "{total} \u092E\u0947\u0902 \u0938\u0947 {days} \u0926\u093F\u0928\u094B\u0902 \u0915\u0947 \u0932\u093F\u090F"
4301
+ historyDays: "{total} \u092E\u0947\u0902 \u0938\u0947 {days} \u0926\u093F\u0928\u094B\u0902 \u0915\u0947 \u0932\u093F\u090F",
4302
+ historyCouponPayment: "{code} \xB7 {total} \u092E\u0947\u0902 \u0938\u0947 {payment}"
4191
4303
  },
4192
4304
  favorites: {
4193
4305
  loading: "\u0906\u092A\u0915\u0947 \u092A\u0938\u0902\u0926\u0940\u0926\u093E \u0932\u094B\u0921 \u0939\u094B \u0930\u0939\u0947 \u0939\u0948\u0902",
@@ -4715,6 +4827,21 @@ var it_default = {
4715
4827
  billingOther: "Addebito ogni {count} \xD7 {interval}",
4716
4828
  gateway: "Fornitore di pagamento",
4717
4829
  paymentMethod: "Metodo di pagamento",
4830
+ discount: "Sconto",
4831
+ discountPercent: "{percent}%",
4832
+ discountCap: ", fino a {amount} per pagamento",
4833
+ discountEvery: "{code} \xB7 {off} di sconto su ogni pagamento{cap}",
4834
+ discountLeft: "{code} \xB7 {off} di sconto{cap} \xB7 ancora {count} pagamenti, poi {price} {period}",
4835
+ discountLeftOne: "{code} \xB7 {off} di sconto{cap} \xB7 ancora 1 pagamento, poi {price} {period}",
4836
+ periodDayOne: "al giorno",
4837
+ periodDayOther: "ogni {count} giorni",
4838
+ periodWeekOne: "a settimana",
4839
+ periodWeekOther: "ogni {count} settimane",
4840
+ periodMonthOne: "al mese",
4841
+ periodMonthOther: "ogni {count} mesi",
4842
+ periodYearOne: "all\u2019anno",
4843
+ periodYearOther: "ogni {count} anni",
4844
+ periodOther: "ogni {count} {interval}",
4718
4845
  cardOnFile: "{brand} che termina con {last4}",
4719
4846
  noPaymentMethod: "Nessuno salvato",
4720
4847
  pause: "Metti in pausa",
@@ -4802,7 +4929,8 @@ var it_default = {
4802
4929
  historyFirstOrder: "Primo ordine",
4803
4930
  historyRenewal: "Rinnovo",
4804
4931
  historyPlanChange: "Cambio piano, da {from} a {to}",
4805
- historyDays: "per {days} giorni su {total}"
4932
+ historyDays: "per {days} giorni su {total}",
4933
+ historyCouponPayment: "{code} \xB7 {payment} di {total}"
4806
4934
  },
4807
4935
  favorites: {
4808
4936
  loading: "Caricamento dei tuoi preferiti",
@@ -5330,6 +5458,21 @@ var lt_default = {
5330
5458
  billingOther: "Apmokestinama kas {count} \xD7 {interval}",
5331
5459
  gateway: "Mok\u0117jim\u0173 teik\u0117jas",
5332
5460
  paymentMethod: "Mok\u0117jimo b\u016Bdas",
5461
+ discount: "Nuolaida",
5462
+ discountPercent: "{percent} %",
5463
+ discountCap: ", ne daugiau kaip {amount} u\u017E mok\u0117jim\u0105",
5464
+ discountEvery: "{code} \xB7 {off} nuolaida kiekvienam mok\u0117jimui{cap}",
5465
+ discountLeft: "{code} \xB7 {off} nuolaida{cap} \xB7 liko mok\u0117jim\u0173: {count}, v\u0117liau {price} {period}",
5466
+ discountLeftOne: "{code} \xB7 {off} nuolaida{cap} \xB7 liko 1 mok\u0117jimas, v\u0117liau {price} {period}",
5467
+ periodDayOne: "per dien\u0105",
5468
+ periodDayOther: "kas {count} d.",
5469
+ periodWeekOne: "per savait\u0119",
5470
+ periodWeekOther: "kas {count} sav.",
5471
+ periodMonthOne: "per m\u0117nes\u012F",
5472
+ periodMonthOther: "kas {count} m\u0117n.",
5473
+ periodYearOne: "per metus",
5474
+ periodYearOther: "kas {count} m.",
5475
+ periodOther: "kas {count} {interval}",
5333
5476
  cardOnFile: "{brand}, paskutiniai skaitmenys {last4}",
5334
5477
  noPaymentMethod: "N\u0117ra i\u0161saugoto",
5335
5478
  pause: "Pristabdyti",
@@ -5417,7 +5560,8 @@ var lt_default = {
5417
5560
  historyFirstOrder: "Pirmas u\u017Esakymas",
5418
5561
  historyRenewal: "Atnaujinimas",
5419
5562
  historyPlanChange: "Plano keitimas, {from} \u2192 {to}",
5420
- historyDays: "u\u017E {days} i\u0161 {total} d."
5563
+ historyDays: "u\u017E {days} i\u0161 {total} d.",
5564
+ historyCouponPayment: "{code} \xB7 {payment} i\u0161 {total}"
5421
5565
  },
5422
5566
  favorites: {
5423
5567
  loading: "\u012Ekeliami j\u016Bs\u0173 m\u0117gstami",
@@ -5945,6 +6089,21 @@ var nl_default = {
5945
6089
  billingOther: "Elke {count} \xD7 {interval} gefactureerd",
5946
6090
  gateway: "Betaalprovider",
5947
6091
  paymentMethod: "Betaalmethode",
6092
+ discount: "Korting",
6093
+ discountPercent: "{percent}%",
6094
+ discountCap: ", maximaal {amount} per betaling",
6095
+ discountEvery: "{code} \xB7 {off} korting op elke betaling{cap}",
6096
+ discountLeft: "{code} \xB7 {off} korting{cap} \xB7 nog {count} betalingen, daarna {price} {period}",
6097
+ discountLeftOne: "{code} \xB7 {off} korting{cap} \xB7 nog 1 betaling, daarna {price} {period}",
6098
+ periodDayOne: "per dag",
6099
+ periodDayOther: "elke {count} dagen",
6100
+ periodWeekOne: "per week",
6101
+ periodWeekOther: "elke {count} weken",
6102
+ periodMonthOne: "per maand",
6103
+ periodMonthOther: "elke {count} maanden",
6104
+ periodYearOne: "per jaar",
6105
+ periodYearOther: "elke {count} jaar",
6106
+ periodOther: "elke {count} {interval}",
5948
6107
  cardOnFile: "{brand} eindigend op {last4}",
5949
6108
  noPaymentMethod: "Niets vastgelegd",
5950
6109
  pause: "Pauzeren",
@@ -6032,7 +6191,8 @@ var nl_default = {
6032
6191
  historyFirstOrder: "Eerste bestelling",
6033
6192
  historyRenewal: "Verlenging",
6034
6193
  historyPlanChange: "Pakketwijziging, van {from} naar {to}",
6035
- historyDays: "voor {days} van {total} dagen"
6194
+ historyDays: "voor {days} van {total} dagen",
6195
+ historyCouponPayment: "{code} \xB7 {payment} van {total}"
6036
6196
  },
6037
6197
  favorites: {
6038
6198
  loading: "Je favorieten worden geladen",
@@ -6560,6 +6720,21 @@ var pl_default = {
6560
6720
  billingOther: "P\u0142atno\u015B\u0107 co {count} \xD7 {interval}",
6561
6721
  gateway: "Dostawca p\u0142atno\u015Bci",
6562
6722
  paymentMethod: "Metoda p\u0142atno\u015Bci",
6723
+ discount: "Rabat",
6724
+ discountPercent: "{percent}%",
6725
+ discountCap: ", maksymalnie {amount} za p\u0142atno\u015B\u0107",
6726
+ discountEvery: "{code} \xB7 {off} rabatu na ka\u017Cd\u0105 p\u0142atno\u015B\u0107{cap}",
6727
+ discountLeft: "{code} \xB7 {off} rabatu{cap} \xB7 pozosta\u0142e p\u0142atno\u015Bci: {count}, potem {price} {period}",
6728
+ discountLeftOne: "{code} \xB7 {off} rabatu{cap} \xB7 jeszcze 1 p\u0142atno\u015B\u0107, potem {price} {period}",
6729
+ periodDayOne: "dziennie",
6730
+ periodDayOther: "co {count} dni",
6731
+ periodWeekOne: "tygodniowo",
6732
+ periodWeekOther: "co {count} tygodni",
6733
+ periodMonthOne: "miesi\u0119cznie",
6734
+ periodMonthOther: "co {count} miesi\u0119cy",
6735
+ periodYearOne: "rocznie",
6736
+ periodYearOther: "co {count} lat",
6737
+ periodOther: "co {count} {interval}",
6563
6738
  cardOnFile: "{brand} ko\u0144cz\u0105ca si\u0119 na {last4}",
6564
6739
  noPaymentMethod: "Brak zapisanej",
6565
6740
  pause: "Wstrzymaj",
@@ -6647,7 +6822,8 @@ var pl_default = {
6647
6822
  historyFirstOrder: "Pierwsze zam\xF3wienie",
6648
6823
  historyRenewal: "Odnowienie",
6649
6824
  historyPlanChange: "Zmiana planu, z {from} na {to}",
6650
- historyDays: "za {days} z {total} dni"
6825
+ historyDays: "za {days} z {total} dni",
6826
+ historyCouponPayment: "{code} \xB7 {payment} z {total}"
6651
6827
  },
6652
6828
  favorites: {
6653
6829
  loading: "Wczytujemy Twoje ulubione",
@@ -7175,6 +7351,21 @@ var pt_default = {
7175
7351
  billingOther: "Cobran\xE7a a cada {count} \xD7 {interval}",
7176
7352
  gateway: "Fornecedor de pagamento",
7177
7353
  paymentMethod: "M\xE9todo de pagamento",
7354
+ discount: "Desconto",
7355
+ discountPercent: "{percent}%",
7356
+ discountCap: ", at\xE9 {amount} por pagamento",
7357
+ discountEvery: "{code} \xB7 {off} de desconto em cada pagamento{cap}",
7358
+ discountLeft: "{code} \xB7 {off} de desconto{cap} \xB7 mais {count} pagamentos, depois {price} {period}",
7359
+ discountLeftOne: "{code} \xB7 {off} de desconto{cap} \xB7 mais 1 pagamento, depois {price} {period}",
7360
+ periodDayOne: "por dia",
7361
+ periodDayOther: "a cada {count} dias",
7362
+ periodWeekOne: "por semana",
7363
+ periodWeekOther: "a cada {count} semanas",
7364
+ periodMonthOne: "por m\xEAs",
7365
+ periodMonthOther: "a cada {count} meses",
7366
+ periodYearOne: "por ano",
7367
+ periodYearOther: "a cada {count} anos",
7368
+ periodOther: "a cada {count} {interval}",
7178
7369
  cardOnFile: "{brand} terminado em {last4}",
7179
7370
  noPaymentMethod: "Nenhum guardado",
7180
7371
  pause: "Pausar",
@@ -7262,7 +7453,8 @@ var pt_default = {
7262
7453
  historyFirstOrder: "Primeiro pedido",
7263
7454
  historyRenewal: "Renova\xE7\xE3o",
7264
7455
  historyPlanChange: "Mudan\xE7a de plano, de {from} para {to}",
7265
- historyDays: "por {days} de {total} dias"
7456
+ historyDays: "por {days} de {total} dias",
7457
+ historyCouponPayment: "{code} \xB7 {payment} de {total}"
7266
7458
  },
7267
7459
  favorites: {
7268
7460
  loading: "A carregar os teus favoritos",
@@ -7790,6 +7982,21 @@ var ru_default = {
7790
7982
  billingOther: "\u0421\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0440\u0430\u0437 \u0432 {count} \xD7 {interval}",
7791
7983
  gateway: "\u041F\u043B\u0430\u0442\u0451\u0436\u043D\u044B\u0439 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440",
7792
7984
  paymentMethod: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043E\u043F\u043B\u0430\u0442\u044B",
7985
+ discount: "\u0421\u043A\u0438\u0434\u043A\u0430",
7986
+ discountPercent: "{percent}%",
7987
+ discountCap: ", \u043D\u0435 \u0431\u043E\u043B\u0435\u0435 {amount} \u0437\u0430 \u043F\u043B\u0430\u0442\u0451\u0436",
7988
+ discountEvery: "{code} \xB7 \u0441\u043A\u0438\u0434\u043A\u0430 {off} \u043D\u0430 \u043A\u0430\u0436\u0434\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436{cap}",
7989
+ discountLeft: "{code} \xB7 \u0441\u043A\u0438\u0434\u043A\u0430 {off}{cap} \xB7 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C \u043F\u043B\u0430\u0442\u0435\u0436\u0435\u0439: {count}, \u0437\u0430\u0442\u0435\u043C {price} {period}",
7990
+ discountLeftOne: "{code} \xB7 \u0441\u043A\u0438\u0434\u043A\u0430 {off}{cap} \xB7 \u043E\u0441\u0442\u0430\u043B\u0441\u044F 1 \u043F\u043B\u0430\u0442\u0451\u0436, \u0437\u0430\u0442\u0435\u043C {price} {period}",
7991
+ periodDayOne: "\u0432 \u0434\u0435\u043D\u044C",
7992
+ periodDayOther: "\u0440\u0430\u0437 \u0432 {count} \u0434\u043D.",
7993
+ periodWeekOne: "\u0432 \u043D\u0435\u0434\u0435\u043B\u044E",
7994
+ periodWeekOther: "\u0440\u0430\u0437 \u0432 {count} \u043D\u0435\u0434.",
7995
+ periodMonthOne: "\u0432 \u043C\u0435\u0441\u044F\u0446",
7996
+ periodMonthOther: "\u0440\u0430\u0437 \u0432 {count} \u043C\u0435\u0441.",
7997
+ periodYearOne: "\u0432 \u0433\u043E\u0434",
7998
+ periodYearOther: "\u0440\u0430\u0437 \u0432 {count} \u0433.",
7999
+ periodOther: "\u0440\u0430\u0437 \u0432 {count} {interval}",
7793
8000
  cardOnFile: "{brand}, \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 \u0446\u0438\u0444\u0440\u044B {last4}",
7794
8001
  noPaymentMethod: "\u041D\u0435 \u0441\u043E\u0445\u0440\u0430\u043D\u0451\u043D",
7795
8002
  pause: "\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",
@@ -7877,7 +8084,8 @@ var ru_default = {
7877
8084
  historyFirstOrder: "\u041F\u0435\u0440\u0432\u044B\u0439 \u0437\u0430\u043A\u0430\u0437",
7878
8085
  historyRenewal: "\u041F\u0440\u043E\u0434\u043B\u0435\u043D\u0438\u0435",
7879
8086
  historyPlanChange: "\u0421\u043C\u0435\u043D\u0430 \u0442\u0430\u0440\u0438\u0444\u0430: {from} \u043D\u0430 {to}",
7880
- historyDays: "\u0437\u0430 {days} \u0438\u0437 {total} \u0434\u043D."
8087
+ historyDays: "\u0437\u0430 {days} \u0438\u0437 {total} \u0434\u043D.",
8088
+ historyCouponPayment: "{code} \xB7 {payment} \u0438\u0437 {total}"
7881
8089
  },
7882
8090
  favorites: {
7883
8091
  loading: "\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043C \u0432\u0430\u0448\u0435 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435",
@@ -8405,6 +8613,21 @@ var tr_default = {
8405
8613
  billingOther: "Her {count} \xD7 {interval} faturalan\u0131r",
8406
8614
  gateway: "\xD6deme sa\u011Flay\u0131c\u0131s\u0131",
8407
8615
  paymentMethod: "\xD6deme y\xF6ntemi",
8616
+ discount: "\u0130ndirim",
8617
+ discountPercent: "%{percent}",
8618
+ discountCap: ", \xF6deme ba\u015F\u0131na en fazla {amount}",
8619
+ discountEvery: "{code} \xB7 her \xF6demede {off} indirim{cap}",
8620
+ discountLeft: "{code} \xB7 {off} indirim{cap} \xB7 {count} \xF6deme daha, sonra {period} {price}",
8621
+ discountLeftOne: "{code} \xB7 {off} indirim{cap} \xB7 1 \xF6deme daha, sonra {period} {price}",
8622
+ periodDayOne: "g\xFCnl\xFCk",
8623
+ periodDayOther: "{count} g\xFCnde bir",
8624
+ periodWeekOne: "haftal\u0131k",
8625
+ periodWeekOther: "{count} haftada bir",
8626
+ periodMonthOne: "ayl\u0131k",
8627
+ periodMonthOther: "{count} ayda bir",
8628
+ periodYearOne: "y\u0131ll\u0131k",
8629
+ periodYearOther: "{count} y\u0131lda bir",
8630
+ periodOther: "{count} {interval} bir",
8408
8631
  cardOnFile: "{last4} ile biten {brand}",
8409
8632
  noPaymentMethod: "Kay\u0131tl\u0131 y\xF6ntem yok",
8410
8633
  pause: "Duraklat",
@@ -8492,7 +8715,8 @@ var tr_default = {
8492
8715
  historyFirstOrder: "\u0130lk sipari\u015F",
8493
8716
  historyRenewal: "Yenileme",
8494
8717
  historyPlanChange: "Plan de\u011Fi\u015Fikli\u011Fi, {from} \u2192 {to}",
8495
- historyDays: "{total} g\xFCn\xFCn {days} g\xFCn\xFC i\xE7in"
8718
+ historyDays: "{total} g\xFCn\xFCn {days} g\xFCn\xFC i\xE7in",
8719
+ historyCouponPayment: "{code} \xB7 {payment}/{total}"
8496
8720
  },
8497
8721
  favorites: {
8498
8722
  loading: "Favorileriniz y\xFCkleniyor",
@@ -9020,6 +9244,21 @@ var uk_default = {
9020
9244
  billingOther: "\u041E\u043F\u043B\u0430\u0442\u0430 \u043A\u043E\u0436\u043D\u0456 {count} \xD7 {interval}",
9021
9245
  gateway: "\u041F\u043B\u0430\u0442\u0456\u0436\u043D\u0438\u0439 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440",
9022
9246
  paymentMethod: "\u0421\u043F\u043E\u0441\u0456\u0431 \u043E\u043F\u043B\u0430\u0442\u0438",
9247
+ discount: "\u0417\u043D\u0438\u0436\u043A\u0430",
9248
+ discountPercent: "{percent}%",
9249
+ discountCap: ", \u043D\u0435 \u0431\u0456\u043B\u044C\u0448\u0435 {amount} \u0437\u0430 \u043F\u043B\u0430\u0442\u0456\u0436",
9250
+ discountEvery: "{code} \xB7 \u0437\u043D\u0438\u0436\u043A\u0430 {off} \u043D\u0430 \u043A\u043E\u0436\u0435\u043D \u043F\u043B\u0430\u0442\u0456\u0436{cap}",
9251
+ discountLeft: "{code} \xB7 \u0437\u043D\u0438\u0436\u043A\u0430 {off}{cap} \xB7 \u0437\u0430\u043B\u0438\u0448\u0438\u043B\u043E\u0441\u044F \u043F\u043B\u0430\u0442\u0435\u0436\u0456\u0432: {count}, \u043F\u043E\u0442\u0456\u043C {price} {period}",
9252
+ discountLeftOne: "{code} \xB7 \u0437\u043D\u0438\u0436\u043A\u0430 {off}{cap} \xB7 \u0437\u0430\u043B\u0438\u0448\u0438\u0432\u0441\u044F 1 \u043F\u043B\u0430\u0442\u0456\u0436, \u043F\u043E\u0442\u0456\u043C {price} {period}",
9253
+ periodDayOne: "\u043D\u0430 \u0434\u0435\u043D\u044C",
9254
+ periodDayOther: "\u0440\u0430\u0437 \u043D\u0430 {count} \u0434\u043D.",
9255
+ periodWeekOne: "\u043D\u0430 \u0442\u0438\u0436\u0434\u0435\u043D\u044C",
9256
+ periodWeekOther: "\u0440\u0430\u0437 \u043D\u0430 {count} \u0442\u0438\u0436.",
9257
+ periodMonthOne: "\u043D\u0430 \u043C\u0456\u0441\u044F\u0446\u044C",
9258
+ periodMonthOther: "\u0440\u0430\u0437 \u043D\u0430 {count} \u043C\u0456\u0441.",
9259
+ periodYearOne: "\u043D\u0430 \u0440\u0456\u043A",
9260
+ periodYearOther: "\u0440\u0430\u0437 \u043D\u0430 {count} \u0440.",
9261
+ periodOther: "\u0440\u0430\u0437 \u043D\u0430 {count} {interval}",
9023
9262
  cardOnFile: "{brand}, \u0449\u043E \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0454\u0442\u044C\u0441\u044F \u043D\u0430 {last4}",
9024
9263
  noPaymentMethod: "\u041D\u0435 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043D\u043E",
9025
9264
  pause: "\u041F\u0440\u0438\u0437\u0443\u043F\u0438\u043D\u0438\u0442\u0438",
@@ -9107,7 +9346,8 @@ var uk_default = {
9107
9346
  historyFirstOrder: "\u041F\u0435\u0440\u0448\u0435 \u0437\u0430\u043C\u043E\u0432\u043B\u0435\u043D\u043D\u044F",
9108
9347
  historyRenewal: "\u041F\u0440\u043E\u0434\u043E\u0432\u0436\u0435\u043D\u043D\u044F",
9109
9348
  historyPlanChange: "\u0417\u043C\u0456\u043D\u0430 \u0442\u0430\u0440\u0438\u0444\u0443: {from} \u043D\u0430 {to}",
9110
- historyDays: "\u0437\u0430 {days} \u0437 {total} \u0434\u043D."
9349
+ historyDays: "\u0437\u0430 {days} \u0437 {total} \u0434\u043D.",
9350
+ historyCouponPayment: "{code} \xB7 {payment} \u0437 {total}"
9111
9351
  },
9112
9352
  favorites: {
9113
9353
  loading: "\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0443\u0454\u043C\u043E \u0432\u0430\u0448\u0435 \u043E\u0431\u0440\u0430\u043D\u0435",
@@ -9635,6 +9875,21 @@ var zh_default = {
9635
9875
  billingOther: "\u6BCF {count} \xD7 {interval} \u8BA1\u8D39",
9636
9876
  gateway: "\u652F\u4ED8\u670D\u52A1\u5546",
9637
9877
  paymentMethod: "\u652F\u4ED8\u65B9\u5F0F",
9878
+ discount: "\u6298\u6263",
9879
+ discountPercent: "{percent}%",
9880
+ discountCap: "\uFF0C\u6BCF\u6B21\u6700\u591A {amount}",
9881
+ discountEvery: "{code} \xB7 \u6BCF\u6B21\u4ED8\u6B3E\u4F18\u60E0 {off}{cap}",
9882
+ discountLeft: "{code} \xB7 \u4F18\u60E0 {off}{cap} \xB7 \u8FD8\u5269 {count} \u6B21\u4ED8\u6B3E\uFF0C\u4E4B\u540E {period} {price}",
9883
+ discountLeftOne: "{code} \xB7 \u4F18\u60E0 {off}{cap} \xB7 \u8FD8\u5269 1 \u6B21\u4ED8\u6B3E\uFF0C\u4E4B\u540E {period} {price}",
9884
+ periodDayOne: "\u6BCF\u5929",
9885
+ periodDayOther: "\u6BCF {count} \u5929",
9886
+ periodWeekOne: "\u6BCF\u5468",
9887
+ periodWeekOther: "\u6BCF {count} \u5468",
9888
+ periodMonthOne: "\u6BCF\u6708",
9889
+ periodMonthOther: "\u6BCF {count} \u4E2A\u6708",
9890
+ periodYearOne: "\u6BCF\u5E74",
9891
+ periodYearOther: "\u6BCF {count} \u5E74",
9892
+ periodOther: "\u6BCF {count} {interval}",
9638
9893
  cardOnFile: "{brand} \u5C3E\u53F7 {last4}",
9639
9894
  noPaymentMethod: "\u672A\u4FDD\u5B58\u652F\u4ED8\u65B9\u5F0F",
9640
9895
  pause: "\u6682\u505C",
@@ -9722,7 +9977,8 @@ var zh_default = {
9722
9977
  historyFirstOrder: "\u9996\u6B21\u8BA2\u5355",
9723
9978
  historyRenewal: "\u7EED\u8BA2",
9724
9979
  historyPlanChange: "\u5957\u9910\u53D8\u66F4\uFF1A{from} \u6539\u4E3A {to}",
9725
- historyDays: "{total} \u5929\u4E2D\u7684 {days} \u5929"
9980
+ historyDays: "{total} \u5929\u4E2D\u7684 {days} \u5929",
9981
+ historyCouponPayment: "{code} \xB7 \u7B2C {payment}/{total} \u6B21"
9726
9982
  },
9727
9983
  favorites: {
9728
9984
  loading: "\u6B63\u5728\u52A0\u8F7D\u4F60\u7684\u6536\u85CF",
@@ -11502,9 +11758,12 @@ function paymentMethodLabel(payment) {
11502
11758
  if (payment.displayName) return payment.displayName;
11503
11759
  if (payment.apmMethod) return payment.apmMethod;
11504
11760
  if (payment.cryptoGateway) return cryptoCoinLabel(payment.cryptoGateway);
11505
- const base = GATEWAY_LABELS[payment.gateway] ?? payment.gateway;
11761
+ const base = gatewayLabel(payment.gateway);
11506
11762
  return payment.blockchain ? `${base} (${payment.blockchain})` : base;
11507
11763
  }
11764
+ function gatewayLabel(gateway) {
11765
+ return GATEWAY_LABELS[gateway] ?? gateway;
11766
+ }
11508
11767
 
11509
11768
  // src/account/account-warranties.ts
11510
11769
  function warrantiesForOrder(warranties, invoiceUniqid) {
@@ -14667,16 +14926,16 @@ function endedNoteKey(ended) {
14667
14926
  return ended.ranOut ? "subscriptions.endedHoldRanOut" : "subscriptions.endedShopEnded";
14668
14927
  }
14669
14928
  var KNOWN_INTERVALS = /* @__PURE__ */ new Set(["day", "week", "month", "year"]);
14670
- function billingMessage(plan) {
14929
+ function billingMessage(plan, kind = "billing") {
14671
14930
  const interval = plan.interval.trim().toLowerCase();
14672
14931
  const count = plan.interval_count > 0 ? plan.interval_count : 1;
14673
14932
  const params = { count, interval: plan.interval };
14674
14933
  if (!KNOWN_INTERVALS.has(interval)) {
14675
- return { key: "subscriptions.billingOther", params };
14934
+ return { key: `subscriptions.${kind}Other`, params };
14676
14935
  }
14677
14936
  const suffix = count === 1 ? "One" : "Other";
14678
14937
  const name = interval.charAt(0).toUpperCase() + interval.slice(1);
14679
- return { key: `subscriptions.billing${name}${suffix}`, params };
14938
+ return { key: `subscriptions.${kind}${name}${suffix}`, params };
14680
14939
  }
14681
14940
  function cancelsAtPeriodEnd(gateway) {
14682
14941
  return gateway.trim().toUpperCase() !== "PAYPAL";
@@ -14697,6 +14956,15 @@ function readPlanChange(value) {
14697
14956
  if (from === null || to === null || daysLeft === void 0 || daysTotal === void 0) return void 0;
14698
14957
  return { from_plan_name: from, to_plan_name: to, days_left: daysLeft, days_total: daysTotal };
14699
14958
  }
14959
+ function readCouponPayment(value) {
14960
+ if (value === null) return null;
14961
+ if (!isRecord3(value)) return void 0;
14962
+ const code = readString(value, "code");
14963
+ const payment = readCount(value, "payment");
14964
+ const paymentsTotal = readCount(value, "payments_total");
14965
+ if (code === null || payment === void 0 || payment === null || paymentsTotal === void 0) return void 0;
14966
+ return { code, payment, payments_total: paymentsTotal };
14967
+ }
14700
14968
  function billingEntryTitle(invoice) {
14701
14969
  if (invoice.plan_change) {
14702
14970
  return { key: "subscriptions.historyPlanChange", params: { from: invoice.plan_change.from_plan_name, to: invoice.plan_change.to_plan_name } };
@@ -14727,10 +14995,11 @@ function narrowBillingHistory(payload) {
14727
14995
  const createdAt = readString(entry, "created_at");
14728
14996
  const kind = BILLING_KINDS.find((known) => known === entry.kind);
14729
14997
  const planChange = readPlanChange(entry.plan_change);
14730
- if (uniqid === null || total === null || currency === null || status === null || createdAt === null || !kind || planChange === void 0) {
14998
+ const couponPayment = readCouponPayment(entry.coupon_payment);
14999
+ if (uniqid === null || total === null || currency === null || status === null || createdAt === null || !kind || planChange === void 0 || couponPayment === void 0) {
14731
15000
  return { ok: false };
14732
15001
  }
14733
- invoices.push({ uniqid, total, currency, status, created_at: createdAt, kind, plan_change: planChange });
15002
+ invoices.push({ uniqid, total, currency, status, created_at: createdAt, kind, plan_change: planChange, coupon_payment: couponPayment });
14734
15003
  }
14735
15004
  return { ok: true, invoices };
14736
15005
  }
@@ -14831,7 +15100,7 @@ function AccountSubscriptions() {
14831
15100
  /* @__PURE__ */ jsx13("p", { className: "sxa:truncate sxa:text-small sxa:font-semibold", children: subscription.plan?.name ?? t("subscriptions.unnamedPlan") }),
14832
15101
  /* @__PURE__ */ jsx13("p", { className: "sxa:mt-1 sxa:text-micro sxa:text-muted", children: timingLabel(subscription) })
14833
15102
  ] }),
14834
- subscription.plan ? /* @__PURE__ */ jsx13("span", { className: "sxa:shrink-0 sxa:text-small sxa:font-semibold sxa:tabular-nums", children: formatAccountAmount(subscription.plan.price, subscription.plan.currency) }) : null,
15103
+ subscription.plan ? /* @__PURE__ */ jsx13("span", { className: "sxa:shrink-0 sxa:text-small sxa:font-semibold sxa:tabular-nums", children: nextPaymentAmount(subscription) }) : null,
14835
15104
  /* @__PURE__ */ jsx13(SubscriptionStatus, { subscription })
14836
15105
  ]
14837
15106
  }
@@ -14872,6 +15141,7 @@ function SubscriptionDetail({
14872
15141
  onChanged(doneMessage);
14873
15142
  };
14874
15143
  const billing = subscription.plan ? billingMessage(subscription.plan) : null;
15144
+ const discount = discountLine(subscription);
14875
15145
  return /* @__PURE__ */ jsxs12("div", { children: [
14876
15146
  /* @__PURE__ */ jsx13(AccountBackButton, { onClick: onBack, label: t("subscriptions.allSubscriptions") }),
14877
15147
  /* @__PURE__ */ jsxs12("div", { className: "sxa:mt-5 sxa:flex sxa:flex-wrap sxa:items-start sxa:justify-between sxa:gap-4", children: [
@@ -14888,16 +15158,23 @@ function SubscriptionDetail({
14888
15158
  subscription.status === "PAST_DUE" && subscription.actions.can_manage_payment_method ? /* @__PURE__ */ jsx13(PastDueCard, { subscription }) : null,
14889
15159
  /* @__PURE__ */ jsxs12(AccountCard, { className: "sxa:mt-5 sxa:p-6", children: [
14890
15160
  subscription.plan ? /* @__PURE__ */ jsxs12(Fragment2, { children: [
14891
- /* @__PURE__ */ jsx13("p", { className: "sxa:text-h2 sxa:font-bold sxa:tabular-nums", children: formatAccountAmount(subscription.plan.price, subscription.plan.currency) }),
15161
+ /* @__PURE__ */ jsx13("p", { className: "sxa:text-h2 sxa:font-bold sxa:tabular-nums", children: nextPaymentAmount(subscription) }),
14892
15162
  billing ? /* @__PURE__ */ jsx13("p", { className: "sxa:mt-1 sxa:text-small sxa:text-muted", children: t(billing.key, billing.params) }) : null
14893
15163
  ] }) : null,
14894
15164
  /* @__PURE__ */ jsx13("p", { className: "sxa:mt-2 sxa:text-small sxa:text-muted", children: timingLabel(subscription) }),
14895
15165
  /* @__PURE__ */ jsxs12("dl", { className: "sxa:mt-5 sxa:space-y-2.5 sxa:border-t sxa:pt-4 sxa:text-small", children: [
14896
- /* @__PURE__ */ jsx13(DetailRow, { label: t("subscriptions.gateway"), children: subscription.gateway }),
15166
+ /* @__PURE__ */ jsx13(DetailRow, { label: t("subscriptions.gateway"), children: gatewayLabel(subscription.gateway) }),
14897
15167
  /* @__PURE__ */ jsx13(DetailRow, { label: t("subscriptions.paymentMethod"), children: subscription.payment_method?.card_brand && subscription.payment_method.card_last4 ? t("subscriptions.cardOnFile", {
14898
15168
  brand: subscription.payment_method.card_brand,
14899
15169
  last4: subscription.payment_method.card_last4
14900
- }) : subscription.payment_method?.type ?? t("subscriptions.noPaymentMethod") })
15170
+ }) : subscription.payment_method?.type ?? t("subscriptions.noPaymentMethod") }),
15171
+ discount ? (
15172
+ // Wraps instead of truncating: the line ends with the price after the term.
15173
+ /* @__PURE__ */ jsxs12("div", { className: "sxa:flex sxa:items-start sxa:justify-between sxa:gap-4", children: [
15174
+ /* @__PURE__ */ jsx13("dt", { className: "sxa:shrink-0 sxa:text-muted", children: t("subscriptions.discount") }),
15175
+ /* @__PURE__ */ jsx13("dd", { className: "sxa:min-w-0 sxa:text-right sxa:font-medium", children: discount })
15176
+ ] })
15177
+ ) : null
14901
15178
  ] })
14902
15179
  ] }),
14903
15180
  subscription.actions.can_manage_payment_method ? /* @__PURE__ */ jsx13(
@@ -15215,6 +15492,27 @@ function renewalCopy(subscription, state, open) {
15215
15492
  const note = state === "ready" ? t("subscriptions.readyNote", { renewal, interval: t(noteIntervalKey(open, "ready")) }) : t("subscriptions.dueNote", { renewal, date });
15216
15493
  return { note, payLabel: t("subscriptions.payAmount", { amount }) };
15217
15494
  }
15495
+ function discountLine(subscription) {
15496
+ const { discount, plan } = subscription;
15497
+ if (!discount || !plan) return null;
15498
+ const off = discount.discount_type === "PERCENTAGE" ? t("subscriptions.discountPercent", { percent: Number(discount.discount_value) }) : formatAccountAmount(discount.discount_amount, discount.currency);
15499
+ const cap = discount.max_discount === null ? "" : t("subscriptions.discountCap", { amount: formatAccountAmount(discount.max_discount, discount.currency) });
15500
+ if (discount.payments_total === null) return t("subscriptions.discountEvery", { code: discount.code, off, cap });
15501
+ const left = discount.payments_total - discount.payments_used;
15502
+ const period = billingMessage(plan, "period");
15503
+ return t(left === 1 ? "subscriptions.discountLeftOne" : "subscriptions.discountLeft", {
15504
+ code: discount.code,
15505
+ off,
15506
+ cap,
15507
+ count: left,
15508
+ price: formatAccountAmount(discount.full_amount, discount.currency),
15509
+ period: t(period.key, period.params)
15510
+ });
15511
+ }
15512
+ function nextPaymentAmount(subscription) {
15513
+ if (subscription.discount) return formatAccountAmount(subscription.discount.next_amount, subscription.discount.currency);
15514
+ return subscription.plan ? formatAccountAmount(subscription.plan.price, subscription.plan.currency) : null;
15515
+ }
15218
15516
  function DetailRow({ label, children }) {
15219
15517
  return /* @__PURE__ */ jsxs12("div", { className: "sxa:flex sxa:items-center sxa:justify-between sxa:gap-4", children: [
15220
15518
  /* @__PURE__ */ jsx13("dt", { className: "sxa:text-muted", children: label }),
@@ -15249,6 +15547,7 @@ function BillingHistoryList({ payload, reload }) {
15249
15547
  return /* @__PURE__ */ jsx13("ul", { className: "sxa:space-y-4", children: history.invoices.map((invoice) => {
15250
15548
  const title = billingEntryTitle(invoice);
15251
15549
  const days = billingEntryDays(invoice);
15550
+ const coupon = invoice.coupon_payment;
15252
15551
  return /* @__PURE__ */ jsx13("li", { children: /* @__PURE__ */ jsxs12(
15253
15552
  Link7,
15254
15553
  {
@@ -15260,7 +15559,8 @@ function BillingHistoryList({ payload, reload }) {
15260
15559
  /* @__PURE__ */ jsxs12("p", { className: "sxa:mt-1 sxa:text-micro sxa:tabular-nums sxa:text-muted", children: [
15261
15560
  formatAccountDate(invoice.created_at),
15262
15561
  days ? ` \xB7 ${t(days.key, days.params)}` : null
15263
- ] })
15562
+ ] }),
15563
+ coupon ? /* @__PURE__ */ jsx13("p", { className: "sxa:mt-0.5 sxa:text-micro sxa:tabular-nums sxa:text-muted", children: coupon.payments_total === null ? coupon.code : t("subscriptions.historyCouponPayment", { code: coupon.code, payment: coupon.payment, total: coupon.payments_total }) }) : null
15264
15564
  ] }),
15265
15565
  /* @__PURE__ */ jsxs12("div", { className: "sxa:flex sxa:shrink-0 sxa:flex-col sxa:items-end sxa:gap-1.5 sxa:sm:flex-row sxa:sm:items-center sxa:sm:gap-3", children: [
15266
15566
  /* @__PURE__ */ jsx13("span", { className: "sxa:text-small sxa:font-semibold sxa:tabular-nums", children: formatAccountAmount(invoice.total, invoice.currency) }),