@shoppexio/storefront-react 0.6.0 → 0.6.2

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/CHANGELOG.md CHANGED
@@ -1,8 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.2
4
+
5
+ - Product: `formatSubscriptionRenewal(subscription)` gives the line under a subscription's buy buttons, "Renews every month until you cancel.", plus "Switch plans any time in your account." only when the catalog's `plan_change_offered` says the buyer can switch (the shop allows buyer plan changes and a second plan is offered); `ProductSubscription.planChangeOffered` carries it, false when the backend does not send the field. Empty for a plan without an interval.
6
+ - Account: a failed order read says "Your order is safe. Check your connection and try again." instead of the backend's raw message (`orders.detailErrorBody`, 16 locales). A line of an expired or cancelled order shows no "Pending" chip, because it will never be delivered.
7
+ - Subscriptions: billing history rows read "Plan change · Basic to Pro" and "Oct 11, 2026 · 12 of 30 days" (16 locales). An ejected account takes `orders.tsx`, `account-subscriptions.ts` and the message catalogs from `eject/account` again.
8
+
9
+ ## 0.6.1
10
+
11
+ - Subscriptions: billing history marks each discounted payment with its code and which term payment it was ("LAUNCH20 · 2 of 3"; the code alone when the code discounts every payment), from the billing-history route's `coupon_payment` (16 locales). 0.6.0 claimed this mark but never read the field. A row whose `coupon_payment` is present but malformed fails the read like any other broken row; a backend that does not send the field yet shows no mark. An ejected account takes `subscriptions.tsx`, `account-subscriptions.ts` and the message catalogs from `eject/account` again.
12
+
3
13
  ## 0.6.0
4
14
 
5
- - Subscriptions: a subscription with a running checkout code shows "CODE · payment 2 of 3 · full price from {date}" (or "every payment" for a forever code) from the dashboard's `discount`, and billing history marks each discounted payment. `SdkCustomerSubscription.discount` (`SdkCustomerSubscriptionDiscount`: code, type and value, cap, payments used and total, discounted, full, saved and next amount, in `currency`) is null without one and absent until the API that sends it is deployed. The plan-change sheet says the code ends with the change and what the new plan costs from the next renewal.
15
+ - Subscriptions: a subscription with a running checkout code shows "CODE · payment 2 of 3 · full price from {date}" (or "every payment" for a forever code) from the dashboard's `discount`. (Billing history did not mark discounted payments in this version; see 0.6.1.) `SdkCustomerSubscription.discount` (`SdkCustomerSubscriptionDiscount`: code, type and value, cap, payments used and total, discounted, full, saved and next amount, in `currency`) is null without one and absent until the API that sends it is deployed. The plan-change sheet says the code ends with the change and what the new plan costs from the next renewal.
6
16
  - Subscriptions: the detail's "Payment provider" shows the gateway's name ("PayPal F&F"), not the gateway key; `gatewayLabel` is the one map the order and the subscription read. An ejected account takes `subscriptions.tsx` and `account-payment-method.ts` from `eject/account` again.
7
17
 
8
18
  ## 0.5.0
package/dist/account.js CHANGED
@@ -331,6 +331,7 @@ var ar_default = {
331
331
  reviewFallbackLabel: "\u062A\u0642\u064A\u064A\u0645",
332
332
  nothingToDownload: "\u062A\u0645 \u0627\u0644\u062A\u0633\u0644\u064A\u0645 {date}. \u0633\u0644\u0651\u0645\u0643 \u0627\u0644\u0628\u0627\u0626\u0639 \u0647\u0630\u0627 \u0645\u0628\u0627\u0634\u0631\u0629\u064B\u060C \u0644\u0630\u0644\u0643 \u0644\u0627 \u064A\u0648\u062C\u062F \u0645\u0627 \u064A\u0645\u0643\u0646 \u062A\u0646\u0632\u064A\u0644\u0647.",
333
333
  detailError: "\u062A\u0639\u0630\u0651\u0631 \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0637\u0644\u0628 {id}",
334
+ detailErrorBody: "\u0637\u0644\u0628\u0643 \u0641\u064A \u0623\u0645\u0627\u0646. \u062A\u062D\u0642\u0642 \u0645\u0646 \u0627\u062A\u0635\u0627\u0644\u0643 \u0648\u062D\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",
334
335
  noReceiptUnpaid: "\u0644\u0645 \u064A\u064F\u062F\u0641\u0639 \u0647\u0630\u0627 \u0627\u0644\u0637\u0644\u0628 \u0642\u0637\u060C \u0644\u0630\u0644\u0643 \u0644\u0627 \u064A\u0648\u062C\u062F \u0644\u0647 \u0625\u064A\u0635\u0627\u0644.",
335
336
  noReceiptVoided: "\u0623\u0644\u063A\u0649 \u0627\u0644\u0645\u062A\u062C\u0631 \u0647\u0630\u0627 \u0627\u0644\u0637\u0644\u0628\u060C \u0644\u0630\u0644\u0643 \u0644\u0627 \u064A\u0648\u062C\u062F \u0644\u0647 \u0625\u064A\u0635\u0627\u0644.",
336
337
  pdfSignedOut: "\u062A\u0645 \u062A\u0633\u062C\u064A\u0644 \u062E\u0631\u0648\u062C\u0643. \u0633\u062C\u0651\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649 \u0644\u062A\u0646\u0632\u064A\u0644 \u0627\u0644\u0625\u064A\u0635\u0627\u0644.",
@@ -511,8 +512,9 @@ var ar_default = {
511
512
  pastDueCardBody: "\u062D\u062F\u0651\u062B \u0628\u0637\u0627\u0642\u062A\u0643 \u0644\u0644\u062D\u0641\u0627\u0638 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0627\u0634\u062A\u0631\u0627\u0643. \u062A\u064F\u0641\u062A\u062D \u0635\u0641\u062D\u0629 Shoppex \u0622\u0645\u0646\u0629.",
512
513
  historyFirstOrder: "\u0627\u0644\u0637\u0644\u0628 \u0627\u0644\u0623\u0648\u0644",
513
514
  historyRenewal: "\u062A\u062C\u062F\u064A\u062F",
514
- historyPlanChange: "\u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062E\u0637\u0629\u060C \u0645\u0646 {from} \u0625\u0644\u0649 {to}",
515
- historyDays: "\u0639\u0646 {days} \u0645\u0646 {total} \u064A\u0648\u0645\u064B\u0627"
515
+ historyPlanChange: "\u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062E\u0637\u0629 \xB7 \u0645\u0646 {from} \u0625\u0644\u0649 {to}",
516
+ historyDays: "{days} \u0645\u0646 {total} \u064A\u0648\u0645\u064B\u0627",
517
+ historyCouponPayment: "{code} \xB7 {payment} \u0645\u0646 {total}"
516
518
  },
517
519
  favorites: {
518
520
  loading: "\u062C\u0627\u0631\u064D \u062A\u062D\u0645\u064A\u0644 \u0645\u0641\u0636\u0644\u062A\u0643",
@@ -961,6 +963,7 @@ var de_default = {
961
963
  reviewFallbackLabel: "Bewertung",
962
964
  nothingToDownload: "Geliefert {date}. Der Verk\xE4ufer hat dir das direkt gegeben, deshalb gibt es nichts herunterzuladen.",
963
965
  detailError: "Bestellung {id} konnte nicht geladen werden",
966
+ detailErrorBody: "Deine Bestellung ist sicher. Pr\xFCfe deine Verbindung und versuche es erneut.",
964
967
  noReceiptUnpaid: "Diese Bestellung wurde nie bezahlt, deshalb gibt es keine Quittung.",
965
968
  noReceiptVoided: "Der Shop hat diese Bestellung storniert, deshalb gibt es keine Quittung.",
966
969
  pdfSignedOut: "Du wurdest abgemeldet. Melde dich erneut an, um die Quittung herunterzuladen.",
@@ -1141,8 +1144,9 @@ var de_default = {
1141
1144
  pastDueCardBody: "Aktualisiere deine Karte, damit dein Abo weiterl\xE4uft. \xD6ffnet eine sichere Shoppex-Seite.",
1142
1145
  historyFirstOrder: "Erstbestellung",
1143
1146
  historyRenewal: "Verl\xE4ngerung",
1144
- historyPlanChange: "Tarifwechsel, {from} zu {to}",
1145
- historyDays: "f\xFCr {days} von {total} Tagen"
1147
+ historyPlanChange: "Tarifwechsel \xB7 {from} zu {to}",
1148
+ historyDays: "{days} von {total} Tagen",
1149
+ historyCouponPayment: "{code} \xB7 {payment} von {total}"
1146
1150
  },
1147
1151
  favorites: {
1148
1152
  loading: "Deine Favoriten werden geladen",
@@ -1591,6 +1595,7 @@ var en_default = {
1591
1595
  reviewFallbackLabel: "Review",
1592
1596
  nothingToDownload: "Delivered {date}. The seller gave this to you directly, so there's nothing to download.",
1593
1597
  detailError: "Couldn't load order {id}",
1598
+ detailErrorBody: "Your order is safe. Check your connection and try again.",
1594
1599
  noReceiptUnpaid: "This order was never paid, so it has no receipt.",
1595
1600
  noReceiptVoided: "The shop cancelled this order, so it has no receipt.",
1596
1601
  pdfSignedOut: "You were signed out. Sign in again to download the receipt.",
@@ -1771,8 +1776,9 @@ var en_default = {
1771
1776
  pastDueCardBody: "Update your card to keep this subscription. Opens a secure Shoppex page.",
1772
1777
  historyFirstOrder: "First order",
1773
1778
  historyRenewal: "Renewal",
1774
- historyPlanChange: "Plan change, {from} to {to}",
1775
- historyDays: "for {days} of {total} days"
1779
+ historyPlanChange: "Plan change \xB7 {from} to {to}",
1780
+ historyDays: "{days} of {total} days",
1781
+ historyCouponPayment: "{code} \xB7 {payment} of {total}"
1776
1782
  },
1777
1783
  favorites: {
1778
1784
  loading: "Loading your favorites",
@@ -2221,6 +2227,7 @@ var es_default = {
2221
2227
  reviewFallbackLabel: "Rese\xF1a",
2222
2228
  nothingToDownload: "Entregado {date}. El vendedor te lo dio directamente, as\xED que no hay nada que descargar.",
2223
2229
  detailError: "No se pudo cargar el pedido {id}",
2230
+ detailErrorBody: "Tu pedido est\xE1 a salvo. Comprueba tu conexi\xF3n e int\xE9ntalo de nuevo.",
2224
2231
  noReceiptUnpaid: "Este pedido nunca se pag\xF3, as\xED que no tiene recibo.",
2225
2232
  noReceiptVoided: "La tienda cancel\xF3 este pedido, as\xED que no tiene recibo.",
2226
2233
  pdfSignedOut: "Se cerr\xF3 tu sesi\xF3n. Inicia sesi\xF3n de nuevo para descargar el recibo.",
@@ -2401,8 +2408,9 @@ var es_default = {
2401
2408
  pastDueCardBody: "Actualiza tu tarjeta para mantener esta suscripci\xF3n. Abre una p\xE1gina segura de Shoppex.",
2402
2409
  historyFirstOrder: "Primer pedido",
2403
2410
  historyRenewal: "Renovaci\xF3n",
2404
- historyPlanChange: "Cambio de plan, de {from} a {to}",
2405
- historyDays: "por {days} de {total} d\xEDas"
2411
+ historyPlanChange: "Cambio de plan \xB7 de {from} a {to}",
2412
+ historyDays: "{days} de {total} d\xEDas",
2413
+ historyCouponPayment: "{code} \xB7 {payment} de {total}"
2406
2414
  },
2407
2415
  favorites: {
2408
2416
  loading: "Cargando tus favoritos",
@@ -2851,6 +2859,7 @@ var fi_default = {
2851
2859
  reviewFallbackLabel: "Arvostelu",
2852
2860
  nothingToDownload: "Toimitettu {date}. Myyj\xE4 antoi t\xE4m\xE4n sinulle suoraan, joten ladattavaa ei ole.",
2853
2861
  detailError: "Tilausta {id} ei voitu ladata",
2862
+ detailErrorBody: "Tilauksesi on tallessa. Tarkista yhteys ja yrit\xE4 uudelleen.",
2854
2863
  noReceiptUnpaid: "T\xE4t\xE4 tilausta ei koskaan maksettu, joten sill\xE4 ei ole kuittia.",
2855
2864
  noReceiptVoided: "Kauppa peruutti t\xE4m\xE4n tilauksen, joten sill\xE4 ei ole kuittia.",
2856
2865
  pdfSignedOut: "Sinut kirjattiin ulos. Kirjaudu uudelleen ladataksesi kuitin.",
@@ -3031,8 +3040,9 @@ var fi_default = {
3031
3040
  pastDueCardBody: "P\xE4ivit\xE4 korttisi, jotta tilaus pysyy voimassa. Avaa suojatun Shoppex-sivun.",
3032
3041
  historyFirstOrder: "Ensimm\xE4inen tilaus",
3033
3042
  historyRenewal: "Uusinta",
3034
- historyPlanChange: "Sopimuksen vaihto, {from} \u2192 {to}",
3035
- historyDays: "{days}/{total} p\xE4iv\xE4lt\xE4"
3043
+ historyPlanChange: "Sopimuksen vaihto \xB7 {from} \u2192 {to}",
3044
+ historyDays: "{days}/{total} p\xE4iv\xE4\xE4",
3045
+ historyCouponPayment: "{code} \xB7 {payment}/{total}"
3036
3046
  },
3037
3047
  favorites: {
3038
3048
  loading: "Ladataan suosikkejasi",
@@ -3481,6 +3491,7 @@ var fr_default = {
3481
3491
  reviewFallbackLabel: "Avis",
3482
3492
  nothingToDownload: "Livr\xE9 le {date}. Le vendeur vous l'a remis directement, il n'y a donc rien \xE0 t\xE9l\xE9charger.",
3483
3493
  detailError: "Impossible de charger la commande {id}",
3494
+ detailErrorBody: "Votre commande est en s\xE9curit\xE9. V\xE9rifiez votre connexion et r\xE9essayez.",
3484
3495
  noReceiptUnpaid: "Cette commande n'a jamais \xE9t\xE9 pay\xE9e, elle n'a donc pas de re\xE7u.",
3485
3496
  noReceiptVoided: "La boutique a annul\xE9 cette commande, elle n'a donc pas de re\xE7u.",
3486
3497
  pdfSignedOut: "Vous avez \xE9t\xE9 d\xE9connect\xE9. Reconnectez-vous pour t\xE9l\xE9charger le re\xE7u.",
@@ -3661,8 +3672,9 @@ var fr_default = {
3661
3672
  pastDueCardBody: "Mettez \xE0 jour votre carte pour conserver cet abonnement. Ouvre une page Shoppex s\xE9curis\xE9e.",
3662
3673
  historyFirstOrder: "Premi\xE8re commande",
3663
3674
  historyRenewal: "Renouvellement",
3664
- historyPlanChange: "Changement de formule, de {from} \xE0 {to}",
3665
- historyDays: "pour {days} jours sur {total}"
3675
+ historyPlanChange: "Changement de formule \xB7 de {from} \xE0 {to}",
3676
+ historyDays: "{days} jours sur {total}",
3677
+ historyCouponPayment: "{code} \xB7 {payment} sur {total}"
3666
3678
  },
3667
3679
  favorites: {
3668
3680
  loading: "Chargement de vos favoris",
@@ -4111,6 +4123,7 @@ var hi_default = {
4111
4123
  reviewFallbackLabel: "\u0938\u092E\u0940\u0915\u094D\u0937\u093E",
4112
4124
  nothingToDownload: "{date} \u0915\u094B \u0921\u093F\u0932\u0940\u0935\u0930 \u0939\u0941\u0906\u0964 \u0935\u093F\u0915\u094D\u0930\u0947\u0924\u093E \u0928\u0947 \u092F\u0939 \u0906\u092A\u0915\u094B \u0938\u0940\u0927\u0947 \u0926\u093F\u092F\u093E \u0939\u0948, \u0907\u0938\u0932\u093F\u090F \u0921\u093E\u0909\u0928\u0932\u094B\u0921 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0915\u0941\u091B \u0928\u0939\u0940\u0902 \u0939\u0948\u0964",
4113
4125
  detailError: "\u0911\u0930\u094D\u0921\u0930 {id} \u0932\u094B\u0921 \u0928\u0939\u0940\u0902 \u0939\u094B \u0938\u0915\u093E",
4126
+ detailErrorBody: "\u0906\u092A\u0915\u093E \u0911\u0930\u094D\u0921\u0930 \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924 \u0939\u0948\u0964 \u0905\u092A\u0928\u093E \u0915\u0928\u0947\u0915\u094D\u0936\u0928 \u091C\u093E\u0902\u091A\u0947\u0902 \u0914\u0930 \u092B\u093F\u0930 \u0938\u0947 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902\u0964",
4114
4127
  noReceiptUnpaid: "\u0907\u0938 \u0911\u0930\u094D\u0921\u0930 \u0915\u093E \u0915\u092D\u0940 \u092D\u0941\u0917\u0924\u093E\u0928 \u0928\u0939\u0940\u0902 \u0939\u0941\u0906, \u0907\u0938\u0932\u093F\u090F \u0907\u0938\u0915\u0940 \u0915\u094B\u0908 \u0930\u0938\u0940\u0926 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964",
4115
4128
  noReceiptVoided: "\u0926\u0941\u0915\u093E\u0928 \u0928\u0947 \u092F\u0939 \u0911\u0930\u094D\u0921\u0930 \u0930\u0926\u094D\u0926 \u0915\u0930 \u0926\u093F\u092F\u093E, \u0907\u0938\u0932\u093F\u090F \u0907\u0938\u0915\u0940 \u0915\u094B\u0908 \u0930\u0938\u0940\u0926 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964",
4116
4129
  pdfSignedOut: "\u0906\u092A \u0938\u093E\u0907\u0928 \u0906\u0909\u091F \u0939\u094B \u0917\u090F\u0964 \u0930\u0938\u0940\u0926 \u0921\u093E\u0909\u0928\u0932\u094B\u0921 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092B\u093F\u0930 \u0938\u0947 \u0938\u093E\u0907\u0928 \u0907\u0928 \u0915\u0930\u0947\u0902\u0964",
@@ -4291,8 +4304,9 @@ var hi_default = {
4291
4304
  pastDueCardBody: "\u092F\u0939 \u0938\u092C\u094D\u0938\u0915\u094D\u0930\u093F\u092A\u094D\u0936\u0928 \u092C\u0928\u093E\u090F \u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u093E \u0915\u093E\u0930\u094D\u0921 \u0905\u092A\u0921\u0947\u091F \u0915\u0930\u0947\u0902\u0964 \u090F\u0915 \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924 Shoppex \u092A\u0947\u091C \u0916\u0941\u0932\u0924\u093E \u0939\u0948\u0964",
4292
4305
  historyFirstOrder: "\u092A\u0939\u0932\u093E \u0911\u0930\u094D\u0921\u0930",
4293
4306
  historyRenewal: "\u0928\u0935\u0940\u0928\u0940\u0915\u0930\u0923",
4294
- historyPlanChange: "\u092F\u094B\u091C\u0928\u093E \u092C\u0926\u0932\u093E\u0935, {from} \u0938\u0947 {to}",
4295
- historyDays: "{total} \u092E\u0947\u0902 \u0938\u0947 {days} \u0926\u093F\u0928\u094B\u0902 \u0915\u0947 \u0932\u093F\u090F"
4307
+ historyPlanChange: "\u092F\u094B\u091C\u0928\u093E \u092C\u0926\u0932\u093E\u0935 \xB7 {from} \u0938\u0947 {to}",
4308
+ historyDays: "{total} \u092E\u0947\u0902 \u0938\u0947 {days} \u0926\u093F\u0928",
4309
+ historyCouponPayment: "{code} \xB7 {total} \u092E\u0947\u0902 \u0938\u0947 {payment}"
4296
4310
  },
4297
4311
  favorites: {
4298
4312
  loading: "\u0906\u092A\u0915\u0947 \u092A\u0938\u0902\u0926\u0940\u0926\u093E \u0932\u094B\u0921 \u0939\u094B \u0930\u0939\u0947 \u0939\u0948\u0902",
@@ -4741,6 +4755,7 @@ var it_default = {
4741
4755
  reviewFallbackLabel: "Recensione",
4742
4756
  nothingToDownload: "Consegnato il {date}. Il venditore te l'ha dato direttamente, quindi non c'\xE8 nulla da scaricare.",
4743
4757
  detailError: "Impossibile caricare l'ordine {id}",
4758
+ detailErrorBody: "Il tuo ordine \xE8 al sicuro. Controlla la connessione e riprova.",
4744
4759
  noReceiptUnpaid: "Questo ordine non \xE8 mai stato pagato, quindi non ha una ricevuta.",
4745
4760
  noReceiptVoided: "Il negozio ha annullato questo ordine, quindi non ha una ricevuta.",
4746
4761
  pdfSignedOut: "Sei stato disconnesso. Accedi di nuovo per scaricare la ricevuta.",
@@ -4921,8 +4936,9 @@ var it_default = {
4921
4936
  pastDueCardBody: "Aggiorna la tua carta per mantenere questo abbonamento. Apre una pagina Shoppex sicura.",
4922
4937
  historyFirstOrder: "Primo ordine",
4923
4938
  historyRenewal: "Rinnovo",
4924
- historyPlanChange: "Cambio piano, da {from} a {to}",
4925
- historyDays: "per {days} giorni su {total}"
4939
+ historyPlanChange: "Cambio piano \xB7 da {from} a {to}",
4940
+ historyDays: "{days} giorni su {total}",
4941
+ historyCouponPayment: "{code} \xB7 {payment} di {total}"
4926
4942
  },
4927
4943
  favorites: {
4928
4944
  loading: "Caricamento dei tuoi preferiti",
@@ -5371,6 +5387,7 @@ var lt_default = {
5371
5387
  reviewFallbackLabel: "Atsiliepimas",
5372
5388
  nothingToDownload: "Pristatyta {date}. Pardav\u0117jas tai perdav\u0117 jums tiesiogiai, tod\u0117l n\u0117ra ko atsisi\u0173sti.",
5373
5389
  detailError: "Nepavyko \u012Fkelti u\u017Esakymo {id}",
5390
+ detailErrorBody: "J\u016Bs\u0173 u\u017Esakymas saugus. Patikrinkite ry\u0161\u012F ir bandykite dar kart\u0105.",
5374
5391
  noReceiptUnpaid: "\u0160is u\u017Esakymas niekada nebuvo apmok\u0117tas, tod\u0117l kvito n\u0117ra.",
5375
5392
  noReceiptVoided: "Parduotuv\u0117 at\u0161auk\u0117 \u0161\u012F u\u017Esakym\u0105, tod\u0117l kvito n\u0117ra.",
5376
5393
  pdfSignedOut: "J\u016Bs buvote atjungti. Prisijunkite dar kart\u0105, kad atsisi\u0173stum\u0117te kvit\u0105.",
@@ -5551,8 +5568,9 @@ var lt_default = {
5551
5568
  pastDueCardBody: "Atnaujinkite kortel\u0119, kad prenumerata likt\u0173 galioti. Atidaromas saugus Shoppex puslapis.",
5552
5569
  historyFirstOrder: "Pirmas u\u017Esakymas",
5553
5570
  historyRenewal: "Atnaujinimas",
5554
- historyPlanChange: "Plano keitimas, {from} \u2192 {to}",
5555
- historyDays: "u\u017E {days} i\u0161 {total} d."
5571
+ historyPlanChange: "Plano keitimas \xB7 {from} \u2192 {to}",
5572
+ historyDays: "{days} i\u0161 {total} d.",
5573
+ historyCouponPayment: "{code} \xB7 {payment} i\u0161 {total}"
5556
5574
  },
5557
5575
  favorites: {
5558
5576
  loading: "\u012Ekeliami j\u016Bs\u0173 m\u0117gstami",
@@ -6001,6 +6019,7 @@ var nl_default = {
6001
6019
  reviewFallbackLabel: "Review",
6002
6020
  nothingToDownload: "Geleverd op {date}. De verkoper heeft dit rechtstreeks aan je gegeven, dus er is niets te downloaden.",
6003
6021
  detailError: "Bestelling {id} kon niet worden geladen",
6022
+ detailErrorBody: "Je bestelling is veilig. Controleer je verbinding en probeer het opnieuw.",
6004
6023
  noReceiptUnpaid: "Deze bestelling is nooit betaald, dus er is geen bon.",
6005
6024
  noReceiptVoided: "De winkel heeft deze bestelling geannuleerd, dus er is geen bon.",
6006
6025
  pdfSignedOut: "Je bent uitgelogd. Log opnieuw in om de bon te downloaden.",
@@ -6181,8 +6200,9 @@ var nl_default = {
6181
6200
  pastDueCardBody: "Werk je kaart bij om dit abonnement te behouden. Opent een beveiligde Shoppex-pagina.",
6182
6201
  historyFirstOrder: "Eerste bestelling",
6183
6202
  historyRenewal: "Verlenging",
6184
- historyPlanChange: "Pakketwijziging, van {from} naar {to}",
6185
- historyDays: "voor {days} van {total} dagen"
6203
+ historyPlanChange: "Pakketwijziging \xB7 van {from} naar {to}",
6204
+ historyDays: "{days} van {total} dagen",
6205
+ historyCouponPayment: "{code} \xB7 {payment} van {total}"
6186
6206
  },
6187
6207
  favorites: {
6188
6208
  loading: "Je favorieten worden geladen",
@@ -6631,6 +6651,7 @@ var pl_default = {
6631
6651
  reviewFallbackLabel: "Opinia",
6632
6652
  nothingToDownload: "Dostarczono {date}. Sprzedawca przekaza\u0142 Ci to bezpo\u015Brednio, wi\u0119c nie ma nic do pobrania.",
6633
6653
  detailError: "Nie uda\u0142o si\u0119 wczyta\u0107 zam\xF3wienia {id}",
6654
+ detailErrorBody: "Twoje zam\xF3wienie jest bezpieczne. Sprawd\u017A po\u0142\u0105czenie i spr\xF3buj ponownie.",
6634
6655
  noReceiptUnpaid: "To zam\xF3wienie nigdy nie zosta\u0142o op\u0142acone, wi\u0119c nie ma potwierdzenia.",
6635
6656
  noReceiptVoided: "Sklep anulowa\u0142 to zam\xF3wienie, wi\u0119c nie ma potwierdzenia.",
6636
6657
  pdfSignedOut: "Wylogowano Ci\u0119. Zaloguj si\u0119 ponownie, aby pobra\u0107 potwierdzenie.",
@@ -6811,8 +6832,9 @@ var pl_default = {
6811
6832
  pastDueCardBody: "Zaktualizuj kart\u0119, aby zachowa\u0107 t\u0119 subskrypcj\u0119. Otwiera bezpieczn\u0105 stron\u0119 Shoppex.",
6812
6833
  historyFirstOrder: "Pierwsze zam\xF3wienie",
6813
6834
  historyRenewal: "Odnowienie",
6814
- historyPlanChange: "Zmiana planu, z {from} na {to}",
6815
- historyDays: "za {days} z {total} dni"
6835
+ historyPlanChange: "Zmiana planu \xB7 z {from} na {to}",
6836
+ historyDays: "{days} z {total} dni",
6837
+ historyCouponPayment: "{code} \xB7 {payment} z {total}"
6816
6838
  },
6817
6839
  favorites: {
6818
6840
  loading: "Wczytujemy Twoje ulubione",
@@ -7261,6 +7283,7 @@ var pt_default = {
7261
7283
  reviewFallbackLabel: "Avalia\xE7\xE3o",
7262
7284
  nothingToDownload: "Entregue a {date}. O vendedor entregou-lhe isto diretamente, por isso n\xE3o h\xE1 nada para transferir.",
7263
7285
  detailError: "N\xE3o foi poss\xEDvel carregar a encomenda {id}",
7286
+ detailErrorBody: "A sua encomenda est\xE1 segura. Verifique a sua liga\xE7\xE3o e tente novamente.",
7264
7287
  noReceiptUnpaid: "Esta encomenda nunca foi paga, por isso n\xE3o tem recibo.",
7265
7288
  noReceiptVoided: "A loja cancelou esta encomenda, por isso n\xE3o tem recibo.",
7266
7289
  pdfSignedOut: "A sua sess\xE3o terminou. Inicie sess\xE3o novamente para transferir o recibo.",
@@ -7441,8 +7464,9 @@ var pt_default = {
7441
7464
  pastDueCardBody: "Atualize o seu cart\xE3o para manter esta subscri\xE7\xE3o. Abre uma p\xE1gina segura da Shoppex.",
7442
7465
  historyFirstOrder: "Primeiro pedido",
7443
7466
  historyRenewal: "Renova\xE7\xE3o",
7444
- historyPlanChange: "Mudan\xE7a de plano, de {from} para {to}",
7445
- historyDays: "por {days} de {total} dias"
7467
+ historyPlanChange: "Mudan\xE7a de plano \xB7 de {from} para {to}",
7468
+ historyDays: "{days} de {total} dias",
7469
+ historyCouponPayment: "{code} \xB7 {payment} de {total}"
7446
7470
  },
7447
7471
  favorites: {
7448
7472
  loading: "A carregar os teus favoritos",
@@ -7891,6 +7915,7 @@ var ru_default = {
7891
7915
  reviewFallbackLabel: "\u041E\u0442\u0437\u044B\u0432",
7892
7916
  nothingToDownload: "\u0414\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043E {date}. \u041F\u0440\u043E\u0434\u0430\u0432\u0435\u0446 \u043F\u0435\u0440\u0435\u0434\u0430\u043B \u044D\u0442\u043E \u0432\u0430\u043C \u043D\u0430\u043F\u0440\u044F\u043C\u0443\u044E, \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u0441\u043A\u0430\u0447\u0438\u0432\u0430\u0442\u044C \u043D\u0435\u0447\u0435\u0433\u043E.",
7893
7917
  detailError: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0437\u0430\u043A\u0430\u0437 {id}",
7918
+ detailErrorBody: "\u0412\u0430\u0448 \u0437\u0430\u043A\u0430\u0437 \u0432 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",
7894
7919
  noReceiptUnpaid: "\u042D\u0442\u043E\u0442 \u0437\u0430\u043A\u0430\u0437 \u0442\u0430\u043A \u0438 \u043D\u0435 \u0431\u044B\u043B \u043E\u043F\u043B\u0430\u0447\u0435\u043D, \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u0447\u0435\u043A\u0430 \u043D\u0435\u0442.",
7895
7920
  noReceiptVoided: "\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u043E\u0442\u043C\u0435\u043D\u0438\u043B \u044D\u0442\u043E\u0442 \u0437\u0430\u043A\u0430\u0437, \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u0447\u0435\u043A\u0430 \u043D\u0435\u0442.",
7896
7921
  pdfSignedOut: "\u0412\u044B \u0432\u044B\u0448\u043B\u0438 \u0438\u0437 \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0430. \u0412\u043E\u0439\u0434\u0438\u0442\u0435 \u0441\u043D\u043E\u0432\u0430, \u0447\u0442\u043E\u0431\u044B \u0441\u043A\u0430\u0447\u0430\u0442\u044C \u0447\u0435\u043A.",
@@ -8071,8 +8096,9 @@ var ru_default = {
8071
8096
  pastDueCardBody: "\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u0435 \u043A\u0430\u0440\u0442\u0443, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0443. \u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0437\u0430\u0449\u0438\u0449\u0451\u043D\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430 Shoppex.",
8072
8097
  historyFirstOrder: "\u041F\u0435\u0440\u0432\u044B\u0439 \u0437\u0430\u043A\u0430\u0437",
8073
8098
  historyRenewal: "\u041F\u0440\u043E\u0434\u043B\u0435\u043D\u0438\u0435",
8074
- historyPlanChange: "\u0421\u043C\u0435\u043D\u0430 \u0442\u0430\u0440\u0438\u0444\u0430: {from} \u043D\u0430 {to}",
8075
- historyDays: "\u0437\u0430 {days} \u0438\u0437 {total} \u0434\u043D."
8099
+ historyPlanChange: "\u0421\u043C\u0435\u043D\u0430 \u0442\u0430\u0440\u0438\u0444\u0430 \xB7 {from} \u043D\u0430 {to}",
8100
+ historyDays: "{days} \u0438\u0437 {total} \u0434\u043D.",
8101
+ historyCouponPayment: "{code} \xB7 {payment} \u0438\u0437 {total}"
8076
8102
  },
8077
8103
  favorites: {
8078
8104
  loading: "\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043C \u0432\u0430\u0448\u0435 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435",
@@ -8521,6 +8547,7 @@ var tr_default = {
8521
8547
  reviewFallbackLabel: "De\u011Ferlendirme",
8522
8548
  nothingToDownload: "Teslim edildi: {date}. Sat\u0131c\u0131 bunu sana do\u011Frudan verdi, bu y\xFCzden indirilecek bir \u015Fey yok.",
8523
8549
  detailError: "{id} sipari\u015Fi y\xFCklenemedi",
8550
+ detailErrorBody: "Sipari\u015Fin g\xFCvende. Ba\u011Flant\u0131n\u0131 kontrol edip tekrar dene.",
8524
8551
  noReceiptUnpaid: "Bu sipari\u015F hi\xE7 \xF6denmedi, bu y\xFCzden makbuzu yok.",
8525
8552
  noReceiptVoided: "Ma\u011Faza bu sipari\u015Fi iptal etti, bu y\xFCzden makbuzu yok.",
8526
8553
  pdfSignedOut: "Oturumun kapand\u0131. Makbuzu indirmek i\xE7in tekrar giri\u015F yap.",
@@ -8701,8 +8728,9 @@ var tr_default = {
8701
8728
  pastDueCardBody: "Bu aboneli\u011Fi korumak i\xE7in kart\u0131n\u0131z\u0131 g\xFCncelleyin. G\xFCvenli bir Shoppex sayfas\u0131 a\xE7\u0131l\u0131r.",
8702
8729
  historyFirstOrder: "\u0130lk sipari\u015F",
8703
8730
  historyRenewal: "Yenileme",
8704
- historyPlanChange: "Plan de\u011Fi\u015Fikli\u011Fi, {from} \u2192 {to}",
8705
- historyDays: "{total} g\xFCn\xFCn {days} g\xFCn\xFC i\xE7in"
8731
+ historyPlanChange: "Plan de\u011Fi\u015Fikli\u011Fi \xB7 {from} \u2192 {to}",
8732
+ historyDays: "{total} g\xFCn\xFCn {days} g\xFCn\xFC",
8733
+ historyCouponPayment: "{code} \xB7 {payment}/{total}"
8706
8734
  },
8707
8735
  favorites: {
8708
8736
  loading: "Favorileriniz y\xFCkleniyor",
@@ -9151,6 +9179,7 @@ var uk_default = {
9151
9179
  reviewFallbackLabel: "\u0412\u0456\u0434\u0433\u0443\u043A",
9152
9180
  nothingToDownload: "\u0414\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043E {date}. \u041F\u0440\u043E\u0434\u0430\u0432\u0435\u0446\u044C \u043F\u0435\u0440\u0435\u0434\u0430\u0432 \u0446\u0435 \u0432\u0430\u043C \u043D\u0430\u043F\u0440\u044F\u043C\u0443, \u0442\u043E\u0436 \u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0443\u0432\u0430\u0442\u0438 \u043D\u0456\u0447\u043E\u0433\u043E.",
9153
9181
  detailError: "\u041D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438 \u0437\u0430\u043C\u043E\u0432\u043B\u0435\u043D\u043D\u044F {id}",
9182
+ detailErrorBody: "\u0412\u0430\u0448\u0435 \u0437\u0430\u043C\u043E\u0432\u043B\u0435\u043D\u043D\u044F \u0432 \u0431\u0435\u0437\u043F\u0435\u0446\u0456. \u041F\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0437\u2019\u0454\u0434\u043D\u0430\u043D\u043D\u044F \u0442\u0430 \u0441\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437.",
9154
9183
  noReceiptUnpaid: "\u0426\u0435 \u0437\u0430\u043C\u043E\u0432\u043B\u0435\u043D\u043D\u044F \u0442\u0430\u043A \u0456 \u043D\u0435 \u0431\u0443\u043B\u043E \u043E\u043F\u043B\u0430\u0447\u0435\u043D\u0435, \u0442\u043E\u043C\u0443 \u043A\u0432\u0438\u0442\u0430\u043D\u0446\u0456\u0457 \u043D\u0435\u043C\u0430\u0454.",
9155
9184
  noReceiptVoided: "\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0432 \u0446\u0435 \u0437\u0430\u043C\u043E\u0432\u043B\u0435\u043D\u043D\u044F, \u0442\u043E\u043C\u0443 \u043A\u0432\u0438\u0442\u0430\u043D\u0446\u0456\u0457 \u043D\u0435\u043C\u0430\u0454.",
9156
9185
  pdfSignedOut: "\u0412\u0438 \u0432\u0438\u0439\u0448\u043B\u0438 \u0437 \u0430\u043A\u0430\u0443\u043D\u0442\u0430. \u0423\u0432\u0456\u0439\u0434\u0456\u0442\u044C \u0437\u043D\u043E\u0432\u0443, \u0449\u043E\u0431 \u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438 \u043A\u0432\u0438\u0442\u0430\u043D\u0446\u0456\u044E.",
@@ -9331,8 +9360,9 @@ var uk_default = {
9331
9360
  pastDueCardBody: "\u041E\u043D\u043E\u0432\u0456\u0442\u044C \u043A\u0430\u0440\u0442\u043A\u0443, \u0449\u043E\u0431 \u0437\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u043F\u0456\u0434\u043F\u0438\u0441\u043A\u0443. \u0412\u0456\u0434\u043A\u0440\u0438\u0454\u0442\u044C\u0441\u044F \u0437\u0430\u0445\u0438\u0449\u0435\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430 Shoppex.",
9332
9361
  historyFirstOrder: "\u041F\u0435\u0440\u0448\u0435 \u0437\u0430\u043C\u043E\u0432\u043B\u0435\u043D\u043D\u044F",
9333
9362
  historyRenewal: "\u041F\u0440\u043E\u0434\u043E\u0432\u0436\u0435\u043D\u043D\u044F",
9334
- historyPlanChange: "\u0417\u043C\u0456\u043D\u0430 \u0442\u0430\u0440\u0438\u0444\u0443: {from} \u043D\u0430 {to}",
9335
- historyDays: "\u0437\u0430 {days} \u0437 {total} \u0434\u043D."
9363
+ historyPlanChange: "\u0417\u043C\u0456\u043D\u0430 \u0442\u0430\u0440\u0438\u0444\u0443 \xB7 {from} \u043D\u0430 {to}",
9364
+ historyDays: "{days} \u0437 {total} \u0434\u043D.",
9365
+ historyCouponPayment: "{code} \xB7 {payment} \u0437 {total}"
9336
9366
  },
9337
9367
  favorites: {
9338
9368
  loading: "\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0443\u0454\u043C\u043E \u0432\u0430\u0448\u0435 \u043E\u0431\u0440\u0430\u043D\u0435",
@@ -9781,6 +9811,7 @@ var zh_default = {
9781
9811
  reviewFallbackLabel: "\u8BC4\u4EF7",
9782
9812
  nothingToDownload: "\u5DF2\u4EA4\u4ED8\uFF1A{date}\u3002\u5356\u5BB6\u5DF2\u76F4\u63A5\u4EA4\u7ED9\u4F60\uFF0C\u56E0\u6B64\u6CA1\u6709\u53EF\u4E0B\u8F7D\u7684\u5185\u5BB9\u3002",
9783
9813
  detailError: "\u65E0\u6CD5\u52A0\u8F7D\u8BA2\u5355 {id}",
9814
+ detailErrorBody: "\u4F60\u7684\u8BA2\u5355\u5F88\u5B89\u5168\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002",
9784
9815
  noReceiptUnpaid: "\u6B64\u8BA2\u5355\u4ECE\u672A\u4ED8\u6B3E\uFF0C\u56E0\u6B64\u6CA1\u6709\u6536\u636E\u3002",
9785
9816
  noReceiptVoided: "\u5546\u5BB6\u5DF2\u53D6\u6D88\u6B64\u8BA2\u5355\uFF0C\u56E0\u6B64\u6CA1\u6709\u6536\u636E\u3002",
9786
9817
  pdfSignedOut: "\u4F60\u5DF2\u9000\u51FA\u767B\u5F55\u3002\u8BF7\u91CD\u65B0\u767B\u5F55\u4EE5\u4E0B\u8F7D\u6536\u636E\u3002",
@@ -9961,8 +9992,9 @@ var zh_default = {
9961
9992
  pastDueCardBody: "\u8BF7\u66F4\u65B0\u94F6\u884C\u5361\u4EE5\u4FDD\u7559\u6B64\u8BA2\u9605\u3002\u5C06\u6253\u5F00\u4E00\u4E2A\u5B89\u5168\u7684 Shoppex \u9875\u9762\u3002",
9962
9993
  historyFirstOrder: "\u9996\u6B21\u8BA2\u5355",
9963
9994
  historyRenewal: "\u7EED\u8BA2",
9964
- historyPlanChange: "\u5957\u9910\u53D8\u66F4\uFF1A{from} \u6539\u4E3A {to}",
9965
- historyDays: "{total} \u5929\u4E2D\u7684 {days} \u5929"
9995
+ historyPlanChange: "\u5957\u9910\u53D8\u66F4 \xB7 {from} \u6539\u4E3A {to}",
9996
+ historyDays: "{total} \u5929\u4E2D\u7684 {days} \u5929",
9997
+ historyCouponPayment: "{code} \xB7 \u7B2C {payment}/{total} \u6B21"
9966
9998
  },
9967
9999
  favorites: {
9968
10000
  loading: "\u6B63\u5728\u52A0\u8F7D\u4F60\u7684\u6536\u85CF",
@@ -11993,7 +12025,10 @@ function waitingStockNotice(order) {
11993
12025
  return `${t("orders.waitingStock.title")} ${body}`;
11994
12026
  }
11995
12027
  function lineDeliveryChipStatus(orderStatus, line) {
11996
- return orderStatus === "AWAITING_STOCK" && line.deliveryStatus === "PENDING" ? "WAITING" : line.deliveryStatus;
12028
+ if (line.deliveryStatus !== "PENDING") return line.deliveryStatus;
12029
+ if (orderStatus === "AWAITING_STOCK") return "WAITING";
12030
+ if (orderStatus === "EXPIRED" || orderStatus === "VOIDED") return null;
12031
+ return line.deliveryStatus;
11997
12032
  }
11998
12033
  function nothingToDownloadDate(line, deliveryWithheld) {
11999
12034
  return line.deliveredAt !== null && line.deliverySummary === null && deliveryWithheld === false ? line.deliveredAt : null;
@@ -12011,7 +12046,7 @@ function AccountOrderDetail({ orderId }) {
12011
12046
  return /* @__PURE__ */ jsxs6("div", { children: [
12012
12047
  backLink,
12013
12048
  /* @__PURE__ */ jsx7("div", { className: "sxa:mt-5", children: /* @__PURE__ */ jsx7(AccountSectionTitle, { children: t("orders.detailError", { id: orderId }) }) }),
12014
- /* @__PURE__ */ jsx7("div", { className: "sxa:mt-4", children: /* @__PURE__ */ jsx7(AccountError, { message: state.message, onRetry: reload }) })
12049
+ /* @__PURE__ */ jsx7("div", { className: "sxa:mt-4", children: /* @__PURE__ */ jsx7(AccountError, { message: t("orders.detailErrorBody"), onRetry: reload }) })
12015
12050
  ] });
12016
12051
  }
12017
12052
  const order = state.data;
@@ -12042,7 +12077,7 @@ function AccountOrderDetail({ orderId }) {
12042
12077
  ] }),
12043
12078
  /* @__PURE__ */ jsxs6("div", { className: "sxa:text-right", children: [
12044
12079
  /* @__PURE__ */ jsx7("p", { className: "sxa:text-small sxa:font-semibold sxa:tabular-nums", children: formatAccountAmount(item.total, order.currency) }),
12045
- /* @__PURE__ */ jsx7("p", { className: "sxa:mt-1.5", children: /* @__PURE__ */ jsx7(DeliveryChip, { status: lineDeliveryChipStatus(order.status, item) }) })
12080
+ /* @__PURE__ */ jsx7(LineDeliveryChip, { status: lineDeliveryChipStatus(order.status, item) })
12046
12081
  ] })
12047
12082
  ] }),
12048
12083
  item.deliverySummary ? /* @__PURE__ */ jsx7(DeliveredItems, { summary: item.deliverySummary }) : null,
@@ -12314,6 +12349,10 @@ function SummaryRow({
12314
12349
  }
12315
12350
  );
12316
12351
  }
12352
+ function LineDeliveryChip({ status }) {
12353
+ if (status === null) return null;
12354
+ return /* @__PURE__ */ jsx7("p", { className: "sxa:mt-1.5", children: /* @__PURE__ */ jsx7(DeliveryChip, { status }) });
12355
+ }
12317
12356
  function DeliveryChip({ status }) {
12318
12357
  const normalized = status.trim().toUpperCase();
12319
12358
  const tone = normalized === "DELIVERED" ? "sxa:meta-chip--in_stock" : normalized === "FAILED" ? "sxa:meta-chip--sold_out" : "sxa:meta-chip--neutral";
@@ -14940,6 +14979,15 @@ function readPlanChange(value) {
14940
14979
  if (from === null || to === null || daysLeft === void 0 || daysTotal === void 0) return void 0;
14941
14980
  return { from_plan_name: from, to_plan_name: to, days_left: daysLeft, days_total: daysTotal };
14942
14981
  }
14982
+ function readCouponPayment(value) {
14983
+ if (value === null) return null;
14984
+ if (!isRecord3(value)) return void 0;
14985
+ const code = readString(value, "code");
14986
+ const payment = readCount(value, "payment");
14987
+ const paymentsTotal = readCount(value, "payments_total");
14988
+ if (code === null || payment === void 0 || payment === null || paymentsTotal === void 0) return void 0;
14989
+ return { code, payment, payments_total: paymentsTotal };
14990
+ }
14943
14991
  function billingEntryTitle(invoice) {
14944
14992
  if (invoice.plan_change) {
14945
14993
  return { key: "subscriptions.historyPlanChange", params: { from: invoice.plan_change.from_plan_name, to: invoice.plan_change.to_plan_name } };
@@ -14970,10 +15018,11 @@ function narrowBillingHistory(payload) {
14970
15018
  const createdAt = readString(entry, "created_at");
14971
15019
  const kind = BILLING_KINDS.find((known) => known === entry.kind);
14972
15020
  const planChange = readPlanChange(entry.plan_change);
14973
- if (uniqid === null || total === null || currency === null || status === null || createdAt === null || !kind || planChange === void 0) {
15021
+ const couponPayment = readCouponPayment(entry.coupon_payment);
15022
+ if (uniqid === null || total === null || currency === null || status === null || createdAt === null || !kind || planChange === void 0 || couponPayment === void 0) {
14974
15023
  return { ok: false };
14975
15024
  }
14976
- invoices.push({ uniqid, total, currency, status, created_at: createdAt, kind, plan_change: planChange });
15025
+ invoices.push({ uniqid, total, currency, status, created_at: createdAt, kind, plan_change: planChange, coupon_payment: couponPayment });
14977
15026
  }
14978
15027
  return { ok: true, invoices };
14979
15028
  }
@@ -15521,6 +15570,7 @@ function BillingHistoryList({ payload, reload }) {
15521
15570
  return /* @__PURE__ */ jsx13("ul", { className: "sxa:space-y-4", children: history.invoices.map((invoice) => {
15522
15571
  const title = billingEntryTitle(invoice);
15523
15572
  const days = billingEntryDays(invoice);
15573
+ const coupon = invoice.coupon_payment;
15524
15574
  return /* @__PURE__ */ jsx13("li", { children: /* @__PURE__ */ jsxs12(
15525
15575
  Link7,
15526
15576
  {
@@ -15532,7 +15582,8 @@ function BillingHistoryList({ payload, reload }) {
15532
15582
  /* @__PURE__ */ jsxs12("p", { className: "sxa:mt-1 sxa:text-micro sxa:tabular-nums sxa:text-muted", children: [
15533
15583
  formatAccountDate(invoice.created_at),
15534
15584
  days ? ` \xB7 ${t(days.key, days.params)}` : null
15535
- ] })
15585
+ ] }),
15586
+ 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
15536
15587
  ] }),
15537
15588
  /* @__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: [
15538
15589
  /* @__PURE__ */ jsx13("span", { className: "sxa:text-small sxa:font-semibold sxa:tabular-nums", children: formatAccountAmount(invoice.total, invoice.currency) }),