@dloizides/auth-web 1.25.0 → 1.25.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/index.mjs CHANGED
@@ -5828,6 +5828,13 @@ var AccountDeletionTestIds = {
5828
5828
  emailNotSent: "account-deletion-email-not-sent",
5829
5829
  alreadyRequested: "account-deletion-already-requested"
5830
5830
  };
5831
+
5832
+ // src/components/scheduledDetail.ts
5833
+ var ISO_CALENDAR_DATE_LENGTH = 10;
5834
+ function scheduledDetail(receipt, labels) {
5835
+ const date = new Date(receipt?.scheduledDeletionDate ?? "");
5836
+ return Number.isNaN(date.getTime()) ? null : interpolate(labels.scheduledDate, { date: date.toISOString().slice(0, ISO_CALENDAR_DATE_LENGTH) });
5837
+ }
5831
5838
  function errorText(errorKey, seconds, labels) {
5832
5839
  switch (errorKey) {
5833
5840
  case null:
@@ -5846,10 +5853,6 @@ function errorText(errorKey, seconds, labels) {
5846
5853
  return labels.errorFailed;
5847
5854
  }
5848
5855
  }
5849
- function scheduledDetail(receipt, labels) {
5850
- const date = new Date(receipt?.scheduledDeletionDate ?? "");
5851
- return Number.isNaN(date.getTime()) ? null : interpolate(labels.scheduledDate, { date: date.toLocaleDateString() });
5852
- }
5853
5856
  function noticeCopy(phase, receipt, labels) {
5854
5857
  if (phase === "alreadyRequested" /* AlreadyRequested */) {
5855
5858
  return {