@fluid-app/portal-sdk 0.1.418 → 0.1.419

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.
@@ -33,7 +33,7 @@ import "./MediaRenderer-BydUiy9x.mjs";
33
33
  import "./CarouselWidget-CzE4FoyI.mjs";
34
34
  import "./CatchUpWidget-CpxfCHUI.mjs";
35
35
  import "./src-CAi8-qUm.mjs";
36
- import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-p2a3DUoC.mjs";
36
+ import { n as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-DY5MtqQF.mjs";
37
37
  import "./ChartWidget-B4Q4DpB4.mjs";
38
38
  import "./ContainerWidget-BnJ1R3FV.mjs";
39
39
  import "./EmbedWidget-mX3kwNNL.mjs";
@@ -57,6 +57,6 @@ require("./use-portal-card-add-3ds-flow-BHGvrsM_.cjs");
57
57
  require("./display-tXE9ewkB.cjs");
58
58
  require("./Combobox-Cgct29Ug.cjs");
59
59
  require("./prop-types-XaMasfW8.cjs");
60
- const require_SubscriptionsScreen = require("./SubscriptionsScreen-Bo-i-Cv3.cjs");
60
+ const require_SubscriptionsScreen = require("./SubscriptionsScreen-g4f-ZQlh.cjs");
61
61
  exports.SubscriptionsScreen = require_SubscriptionsScreen.SubscriptionsScreen;
62
62
  exports.subscriptionsScreenPropertySchema = require_SubscriptionsScreen.subscriptionsScreenPropertySchema;
@@ -6010,56 +6010,53 @@ function SubscriptionItemsSection({ subscription, displayQuantity, displayNextBi
6010
6010
  notAvailable: t("date_not_available")
6011
6011
  };
6012
6012
  return /* @__PURE__ */ jsx("section", {
6013
- className: "bg-muted flex w-full flex-col items-center rounded-lg px-8 lg:col-span-4 lg:self-start",
6013
+ className: "bg-muted flex w-full flex-col items-center rounded-lg p-8 lg:col-span-4 lg:self-start",
6014
6014
  children: /* @__PURE__ */ jsxs("div", {
6015
6015
  className: "flex w-full max-w-lg flex-col",
6016
6016
  children: [
6017
- /* @__PURE__ */ jsxs("div", {
6018
- className: "mt-4",
6019
- children: [/* @__PURE__ */ jsx("h2", {
6020
- className: "text-foreground mb-2 text-lg font-medium",
6021
- children: t("your_upcoming_order")
6022
- }), /* @__PURE__ */ jsxs("div", {
6023
- className: "text-muted-foreground",
6017
+ /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h2", {
6018
+ className: "text-foreground mb-2 text-lg font-medium",
6019
+ children: t("your_upcoming_order")
6020
+ }), /* @__PURE__ */ jsxs("div", {
6021
+ className: "text-muted-foreground",
6022
+ children: [/* @__PURE__ */ jsxs("div", {
6023
+ className: "grid grid-cols-2 gap-4",
6024
6024
  children: [/* @__PURE__ */ jsxs("div", {
6025
- className: "grid grid-cols-2 gap-4",
6026
- children: [/* @__PURE__ */ jsxs("div", {
6027
- className: "border-border border-r pr-4",
6028
- children: [
6029
- /* @__PURE__ */ jsx("div", {
6030
- className: "text-muted-foreground mb-1 text-sm",
6031
- children: subscription.status === "past_due" ? t("payment_failed_on") : t("next_order_date")
6032
- }),
6033
- /* @__PURE__ */ jsx("div", {
6034
- className: "text-foreground text-2xl font-bold",
6035
- children: subscription.status === "past_due" ? subscription.last_failed_at ? formatDate(subscription.last_failed_at, locale) : "—" : getNextBillDisplay(displayNextBillDate ? {
6036
- ...subscription,
6037
- next_bill_date: displayNextBillDate
6038
- } : subscription, nextBillDisplayLabels, locale)
6039
- }),
6040
- nextOrderTimeOfDay && /* @__PURE__ */ jsxs("div", {
6041
- className: "text-muted-foreground mt-1 text-xs",
6042
- children: [
6043
- nextOrderTimeOfDay,
6044
- " (",
6045
- subscription.timezone,
6046
- ")"
6047
- ]
6048
- })
6049
- ]
6050
- }), /* @__PURE__ */ jsxs("div", {
6051
- className: "pl-4",
6052
- children: [/* @__PURE__ */ jsx("div", {
6025
+ className: "border-border border-r pr-4",
6026
+ children: [
6027
+ /* @__PURE__ */ jsx("div", {
6053
6028
  className: "text-muted-foreground mb-1 text-sm",
6054
- children: t("next_bill_amount")
6055
- }), /* @__PURE__ */ jsx("div", {
6029
+ children: subscription.status === "past_due" ? t("payment_failed_on") : t("next_order_date")
6030
+ }),
6031
+ /* @__PURE__ */ jsx("div", {
6056
6032
  className: "text-foreground text-2xl font-bold",
6057
- children: totalPrice
6058
- })]
6033
+ children: subscription.status === "past_due" ? subscription.last_failed_at ? formatDate(subscription.last_failed_at, locale) : "—" : getNextBillDisplay(displayNextBillDate ? {
6034
+ ...subscription,
6035
+ next_bill_date: displayNextBillDate
6036
+ } : subscription, nextBillDisplayLabels, locale)
6037
+ }),
6038
+ nextOrderTimeOfDay && /* @__PURE__ */ jsxs("div", {
6039
+ className: "text-muted-foreground mt-1 text-xs",
6040
+ children: [
6041
+ nextOrderTimeOfDay,
6042
+ " (",
6043
+ subscription.timezone,
6044
+ ")"
6045
+ ]
6046
+ })
6047
+ ]
6048
+ }), /* @__PURE__ */ jsxs("div", {
6049
+ className: "pl-4",
6050
+ children: [/* @__PURE__ */ jsx("div", {
6051
+ className: "text-muted-foreground mb-1 text-sm",
6052
+ children: t("next_bill_amount")
6053
+ }), /* @__PURE__ */ jsx("div", {
6054
+ className: "text-foreground text-2xl font-bold",
6055
+ children: totalPrice
6059
6056
  })]
6060
- }), /* @__PURE__ */ jsx("hr", { className: "border-border mt-4" })]
6061
- })]
6062
- }),
6057
+ })]
6058
+ }), /* @__PURE__ */ jsx("hr", { className: "border-border mt-4" })]
6059
+ })] }),
6063
6060
  /* @__PURE__ */ jsx(BundledWithCard, {
6064
6061
  bundledSubscriptions: subscription.bundled_subscriptions ?? [],
6065
6062
  currentToken: subscription.subscription_token,
@@ -6127,46 +6124,43 @@ function SubscriptionItemsSection({ subscription, displayQuantity, displayNextBi
6127
6124
  })]
6128
6125
  })
6129
6126
  }),
6130
- /* @__PURE__ */ jsxs("div", {
6131
- className: "mb-4",
6132
- children: [
6133
- pricing.hasDiscount && /* @__PURE__ */ jsxs(Fragment$1, { children: [
6134
- /* @__PURE__ */ jsxs("div", {
6135
- className: "flex justify-between text-sm",
6136
- children: [/* @__PURE__ */ jsx("p", {
6137
- className: "text-muted-foreground text-sm font-medium",
6138
- children: t("subtotal")
6139
- }), /* @__PURE__ */ jsx("p", {
6140
- className: "text-muted-foreground text-sm font-medium",
6141
- children: subtotal
6142
- })]
6143
- }),
6144
- pricing.legacyDiscountUnit > 0 && /* @__PURE__ */ jsx(DiscountLine, {
6145
- label: t("discount"),
6146
- amount: formatCurrency(pricing.legacyDiscountUnit * quantity)
6147
- }),
6148
- pricing.attachedDiscountUnit > 0 && /* @__PURE__ */ jsx(DiscountLine, {
6149
- label: t("discount"),
6150
- code: pricing.attachedDiscountCode,
6151
- amount: formatCurrency(pricing.attachedDiscountUnit * quantity)
6152
- })
6153
- ] }),
6127
+ /* @__PURE__ */ jsxs("div", { children: [
6128
+ pricing.hasDiscount && /* @__PURE__ */ jsxs(Fragment$1, { children: [
6154
6129
  /* @__PURE__ */ jsxs("div", {
6155
- className: "mt-4 flex items-center justify-between text-base font-medium",
6130
+ className: "flex justify-between text-sm",
6156
6131
  children: [/* @__PURE__ */ jsx("p", {
6157
6132
  className: "text-muted-foreground text-sm font-medium",
6158
- children: t("total_label")
6133
+ children: t("subtotal")
6159
6134
  }), /* @__PURE__ */ jsx("p", {
6160
- className: "text-foreground text-base font-bold",
6161
- children: totalPrice
6135
+ className: "text-muted-foreground text-sm font-medium",
6136
+ children: subtotal
6162
6137
  })]
6163
6138
  }),
6164
- /* @__PURE__ */ jsx("span", {
6165
- className: "text-muted-foreground text-xs",
6166
- children: t("tax_shipping_note")
6139
+ pricing.legacyDiscountUnit > 0 && /* @__PURE__ */ jsx(DiscountLine, {
6140
+ label: t("discount"),
6141
+ amount: formatCurrency(pricing.legacyDiscountUnit * quantity)
6142
+ }),
6143
+ pricing.attachedDiscountUnit > 0 && /* @__PURE__ */ jsx(DiscountLine, {
6144
+ label: t("discount"),
6145
+ code: pricing.attachedDiscountCode,
6146
+ amount: formatCurrency(pricing.attachedDiscountUnit * quantity)
6167
6147
  })
6168
- ]
6169
- })
6148
+ ] }),
6149
+ /* @__PURE__ */ jsxs("div", {
6150
+ className: "mt-4 flex items-center justify-between text-base font-medium",
6151
+ children: [/* @__PURE__ */ jsx("p", {
6152
+ className: "text-muted-foreground text-sm font-medium",
6153
+ children: t("total_label")
6154
+ }), /* @__PURE__ */ jsx("p", {
6155
+ className: "text-foreground text-base font-bold",
6156
+ children: totalPrice
6157
+ })]
6158
+ }),
6159
+ /* @__PURE__ */ jsx("span", {
6160
+ className: "text-muted-foreground text-xs",
6161
+ children: t("tax_shipping_note")
6162
+ })
6163
+ ] })
6170
6164
  ]
6171
6165
  })
6172
6166
  });
@@ -7715,4 +7709,4 @@ const subscriptionsScreenPropertySchema = {
7715
7709
  //#endregion
7716
7710
  export { subscriptionsScreenPropertySchema as n, SubscriptionsScreen as t };
7717
7711
 
7718
- //# sourceMappingURL=SubscriptionsScreen-p2a3DUoC.mjs.map
7712
+ //# sourceMappingURL=SubscriptionsScreen-DY5MtqQF.mjs.map