@questpie/admin 3.0.4 → 3.0.5

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.
Files changed (58) hide show
  1. package/dist/client/components/blocks/block-editor-layout.mjs +2 -2
  2. package/dist/client/components/blocks/block-library-sidebar.mjs +89 -61
  3. package/dist/client/components/media/media-grid.mjs +95 -78
  4. package/dist/client/components/primitives/select-multi.mjs +388 -368
  5. package/dist/client/components/primitives/select-single.mjs +344 -331
  6. package/dist/client/components/widgets/chart-widget.mjs +78 -62
  7. package/dist/client/components/widgets/progress-widget.mjs +39 -37
  8. package/dist/client/components/widgets/quick-actions-widget.mjs +111 -90
  9. package/dist/client/components/widgets/recent-items-widget.mjs +40 -38
  10. package/dist/client/components/widgets/table-widget.mjs +4 -3
  11. package/dist/client/components/widgets/timeline-widget.mjs +92 -74
  12. package/dist/client/components/widgets/value-widget.mjs +164 -144
  13. package/dist/client/hooks/use-server-actions.mjs +21 -16
  14. package/dist/client/preview/block-scope-context.d.mts +2 -2
  15. package/dist/client/preview/preview-banner.d.mts +2 -2
  16. package/dist/client/preview/preview-banner.mjs +75 -46
  17. package/dist/client/views/auth/accept-invite-form.d.mts +2 -2
  18. package/dist/client/views/auth/auth-layout.d.mts +2 -2
  19. package/dist/client/views/auth/forgot-password-form.d.mts +2 -2
  20. package/dist/client/views/auth/login-form.d.mts +2 -2
  21. package/dist/client/views/auth/reset-password-form.d.mts +2 -2
  22. package/dist/client/views/auth/setup-form.d.mts +2 -2
  23. package/dist/client/views/collection/table-view.mjs +26 -26
  24. package/dist/client/views/layout/admin-layout.mjs +151 -131
  25. package/dist/client/views/layout/admin-router.mjs +297 -180
  26. package/dist/client/views/layout/admin-sidebar.mjs +126 -116
  27. package/dist/client/views/pages/login-page.d.mts +2 -2
  28. package/dist/client/views/pages/reset-password-page.d.mts +2 -2
  29. package/dist/client/views/pages/setup-page.mjs +67 -51
  30. package/dist/server/i18n/index.mjs +13 -7
  31. package/dist/server/i18n/messages/cs.mjs +391 -1
  32. package/dist/server/i18n/messages/de.mjs +389 -1
  33. package/dist/server/i18n/messages/en.mjs +102 -0
  34. package/dist/server/i18n/messages/es.mjs +389 -1
  35. package/dist/server/i18n/messages/fr.mjs +389 -1
  36. package/dist/server/i18n/messages/pl.mjs +393 -1
  37. package/dist/server/i18n/messages/pt.mjs +386 -1
  38. package/dist/server/i18n/messages/sk.mjs +133 -1
  39. package/dist/server/modules/admin/collections/account.d.mts +50 -50
  40. package/dist/server/modules/admin/collections/admin-locks.d.mts +54 -54
  41. package/dist/server/modules/admin/collections/admin-preferences.d.mts +39 -39
  42. package/dist/server/modules/admin/collections/admin-saved-views.d.mts +41 -41
  43. package/dist/server/modules/admin/collections/apikey.d.mts +68 -68
  44. package/dist/server/modules/admin/collections/assets.d.mts +20 -20
  45. package/dist/server/modules/admin/collections/session.d.mts +42 -42
  46. package/dist/server/modules/admin/collections/user.d.mts +32 -32
  47. package/dist/server/modules/admin/collections/verification.d.mts +36 -36
  48. package/dist/server/modules/admin/routes/admin-config.d.mts +2 -2
  49. package/dist/server/modules/admin/routes/execute-action.d.mts +9 -9
  50. package/dist/server/modules/admin/routes/execute-action.mjs +34 -28
  51. package/dist/server/modules/admin/routes/i18n-helpers.mjs +34 -0
  52. package/dist/server/modules/admin/routes/preview.d.mts +11 -11
  53. package/dist/server/modules/admin/routes/preview.mjs +25 -17
  54. package/dist/server/modules/admin/routes/route-helpers.mjs +1 -1
  55. package/dist/server/modules/admin/routes/setup.mjs +10 -7
  56. package/dist/server/modules/admin/routes/widget-data.d.mts +5 -5
  57. package/dist/server/modules/admin-preferences/collections/saved-views.d.mts +27 -27
  58. package/package.json +3 -3
@@ -246,48 +246,55 @@ function ViewLoadingState(t0) {
246
246
  return t1;
247
247
  }
248
248
  function UnknownViewState(t0) {
249
- const $ = c(7);
249
+ const $ = c(13);
250
250
  const { viewKind, viewId } = t0;
251
+ const { t } = useTranslation();
251
252
  let t1;
252
- if ($[0] !== viewKind) {
253
- t1 = /* @__PURE__ */ jsxs("h1", {
253
+ if ($[0] !== t || $[1] !== viewKind) {
254
+ t1 = t("error.failedToLoadView", { viewType: viewKind });
255
+ $[0] = t;
256
+ $[1] = viewKind;
257
+ $[2] = t1;
258
+ } else t1 = $[2];
259
+ let t2;
260
+ if ($[3] !== t1) {
261
+ t2 = /* @__PURE__ */ jsx("h1", {
254
262
  className: "text-lg font-semibold",
255
- children: [
256
- "Unknown ",
257
- viewKind,
258
- " view"
259
- ]
263
+ children: t1
260
264
  });
261
- $[0] = viewKind;
262
- $[1] = t1;
263
- } else t1 = $[1];
264
- let t2;
265
- if ($[2] !== viewId) {
266
- t2 = /* @__PURE__ */ jsxs("p", {
265
+ $[3] = t1;
266
+ $[4] = t2;
267
+ } else t2 = $[4];
268
+ let t3;
269
+ if ($[5] !== t || $[6] !== viewId) {
270
+ t3 = t("error.unregisteredViewDescription", { viewId });
271
+ $[5] = t;
272
+ $[6] = viewId;
273
+ $[7] = t3;
274
+ } else t3 = $[7];
275
+ let t4;
276
+ if ($[8] !== t3) {
277
+ t4 = /* @__PURE__ */ jsx("p", {
267
278
  className: "text-muted-foreground mt-2 text-sm",
268
- children: [
269
- "View \"",
270
- viewId,
271
- "\" is not registered in the admin view registry."
272
- ]
279
+ children: t3
273
280
  });
274
- $[2] = viewId;
275
- $[3] = t2;
276
- } else t2 = $[3];
277
- let t3;
278
- if ($[4] !== t1 || $[5] !== t2) {
279
- t3 = /* @__PURE__ */ jsx("div", {
281
+ $[8] = t3;
282
+ $[9] = t4;
283
+ } else t4 = $[9];
284
+ let t5;
285
+ if ($[10] !== t2 || $[11] !== t4) {
286
+ t5 = /* @__PURE__ */ jsx("div", {
280
287
  className: "container",
281
288
  children: /* @__PURE__ */ jsxs(Card, {
282
289
  className: "border-warning/30 bg-warning/5 p-6",
283
- children: [t1, t2]
290
+ children: [t2, t4]
284
291
  })
285
292
  });
286
- $[4] = t1;
287
- $[5] = t2;
288
- $[6] = t3;
289
- } else t3 = $[6];
290
- return t3;
293
+ $[10] = t2;
294
+ $[11] = t4;
295
+ $[12] = t5;
296
+ } else t5 = $[12];
297
+ return t5;
291
298
  }
292
299
  /**
293
300
  * Skeleton shown while router config is loading (Suspense fallback)
@@ -549,82 +556,170 @@ const RegistryViewRenderer = React.memo(function RegistryViewRenderer$1(t0) {
549
556
  return t6;
550
557
  }, areRegistryViewRendererPropsEqual);
551
558
  function DefaultDashboard() {
552
- const $ = c(3);
559
+ const $ = c(27);
560
+ const { t, formatDate } = useTranslation();
553
561
  let t0;
554
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
555
- t0 = (/* @__PURE__ */ new Date()).toLocaleDateString("en-US", {
562
+ if ($[0] !== formatDate) {
563
+ t0 = formatDate(/* @__PURE__ */ new Date(), {
556
564
  weekday: "long",
557
565
  year: "numeric",
558
566
  month: "long",
559
567
  day: "numeric"
560
568
  });
561
- $[0] = t0;
562
- } else t0 = $[0];
569
+ $[0] = formatDate;
570
+ $[1] = t0;
571
+ } else t0 = $[1];
563
572
  const date = t0;
564
573
  let t1;
565
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
566
- t1 = /* @__PURE__ */ jsx(AdminViewHeader, {
574
+ if ($[2] !== t) {
575
+ t1 = t("dashboard.title");
576
+ $[2] = t;
577
+ $[3] = t1;
578
+ } else t1 = $[3];
579
+ let t2;
580
+ if ($[4] !== date || $[5] !== t1) {
581
+ t2 = /* @__PURE__ */ jsx(AdminViewHeader, {
567
582
  className: "mb-4",
568
- title: "Dashboard",
583
+ title: t1,
569
584
  meta: date
570
585
  });
571
- $[1] = t1;
572
- } else t1 = $[1];
573
- let t2;
574
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
575
- t2 = /* @__PURE__ */ jsxs("div", {
576
- className: "qa-default-dashboard container",
577
- children: [t1, /* @__PURE__ */ jsx("div", {
578
- className: "grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",
579
- children: /* @__PURE__ */ jsx(Card, {
580
- className: "p-6",
581
- children: /* @__PURE__ */ jsxs("div", { children: [
582
- /* @__PURE__ */ jsxs("div", {
583
- className: "mb-4 flex items-center gap-3",
584
- children: [/* @__PURE__ */ jsx("div", { className: "bg-primary h-2 w-2 rounded-full" }), /* @__PURE__ */ jsx("h3", {
585
- className: "text-muted-foreground font-chrome chrome-meta text-xs font-medium",
586
- children: "System Status"
587
- })]
588
- }),
589
- /* @__PURE__ */ jsx("h2", {
590
- className: "mb-2 text-xl font-semibold",
591
- children: "Welcome back"
592
- }),
593
- /* @__PURE__ */ jsx("p", {
594
- className: "text-muted-foreground text-sm leading-relaxed",
595
- children: "Select a collection from the sidebar to manage your content."
596
- })
597
- ] })
598
- })
586
+ $[4] = date;
587
+ $[5] = t1;
588
+ $[6] = t2;
589
+ } else t2 = $[6];
590
+ let t3;
591
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
592
+ t3 = /* @__PURE__ */ jsx("div", { className: "bg-primary h-2 w-2 rounded-full" });
593
+ $[7] = t3;
594
+ } else t3 = $[7];
595
+ let t4;
596
+ if ($[8] !== t) {
597
+ t4 = t("dashboard.systemStatus");
598
+ $[8] = t;
599
+ $[9] = t4;
600
+ } else t4 = $[9];
601
+ let t5;
602
+ if ($[10] !== t4) {
603
+ t5 = /* @__PURE__ */ jsxs("div", {
604
+ className: "mb-4 flex items-center gap-3",
605
+ children: [t3, /* @__PURE__ */ jsx("h3", {
606
+ className: "text-muted-foreground font-chrome chrome-meta text-xs font-medium",
607
+ children: t4
599
608
  })]
600
609
  });
601
- $[2] = t2;
602
- } else t2 = $[2];
603
- return t2;
610
+ $[10] = t4;
611
+ $[11] = t5;
612
+ } else t5 = $[11];
613
+ let t6;
614
+ if ($[12] !== t) {
615
+ t6 = t("dashboard.welcome");
616
+ $[12] = t;
617
+ $[13] = t6;
618
+ } else t6 = $[13];
619
+ let t7;
620
+ if ($[14] !== t6) {
621
+ t7 = /* @__PURE__ */ jsx("h2", {
622
+ className: "mb-2 text-xl font-semibold",
623
+ children: t6
624
+ });
625
+ $[14] = t6;
626
+ $[15] = t7;
627
+ } else t7 = $[15];
628
+ let t8;
629
+ if ($[16] !== t) {
630
+ t8 = t("dashboard.welcomeDescription");
631
+ $[16] = t;
632
+ $[17] = t8;
633
+ } else t8 = $[17];
634
+ let t9;
635
+ if ($[18] !== t8) {
636
+ t9 = /* @__PURE__ */ jsx("p", {
637
+ className: "text-muted-foreground text-sm leading-relaxed",
638
+ children: t8
639
+ });
640
+ $[18] = t8;
641
+ $[19] = t9;
642
+ } else t9 = $[19];
643
+ let t10;
644
+ if ($[20] !== t5 || $[21] !== t7 || $[22] !== t9) {
645
+ t10 = /* @__PURE__ */ jsx("div", {
646
+ className: "grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",
647
+ children: /* @__PURE__ */ jsx(Card, {
648
+ className: "p-6",
649
+ children: /* @__PURE__ */ jsxs("div", { children: [
650
+ t5,
651
+ t7,
652
+ t9
653
+ ] })
654
+ })
655
+ });
656
+ $[20] = t5;
657
+ $[21] = t7;
658
+ $[22] = t9;
659
+ $[23] = t10;
660
+ } else t10 = $[23];
661
+ let t11;
662
+ if ($[24] !== t10 || $[25] !== t2) {
663
+ t11 = /* @__PURE__ */ jsxs("div", {
664
+ className: "qa-default-dashboard container",
665
+ children: [t2, t10]
666
+ });
667
+ $[24] = t10;
668
+ $[25] = t2;
669
+ $[26] = t11;
670
+ } else t11 = $[26];
671
+ return t11;
604
672
  }
605
673
  function DefaultNotFound() {
606
- const $ = c(1);
674
+ const $ = c(11);
675
+ const { t } = useTranslation();
607
676
  let t0;
608
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
609
- t0 = /* @__PURE__ */ jsxs("div", {
677
+ if ($[0] !== t) {
678
+ t0 = t("error.pageNotFound");
679
+ $[0] = t;
680
+ $[1] = t0;
681
+ } else t0 = $[1];
682
+ let t1;
683
+ if ($[2] !== t0) {
684
+ t1 = /* @__PURE__ */ jsx("h1", {
685
+ className: "mb-4 text-2xl font-bold",
686
+ children: t0
687
+ });
688
+ $[2] = t0;
689
+ $[3] = t1;
690
+ } else t1 = $[3];
691
+ let t2;
692
+ if ($[4] !== t) {
693
+ t2 = t("error.pageNotFoundDescription");
694
+ $[4] = t;
695
+ $[5] = t2;
696
+ } else t2 = $[5];
697
+ let t3;
698
+ if ($[6] !== t2) {
699
+ t3 = /* @__PURE__ */ jsx("p", {
700
+ className: "text-muted-foreground",
701
+ children: t2
702
+ });
703
+ $[6] = t2;
704
+ $[7] = t3;
705
+ } else t3 = $[7];
706
+ let t4;
707
+ if ($[8] !== t1 || $[9] !== t3) {
708
+ t4 = /* @__PURE__ */ jsxs("div", {
610
709
  className: "qa-not-found container",
611
- children: [/* @__PURE__ */ jsx("h1", {
612
- className: "mb-4 text-2xl font-bold",
613
- children: "Page Not Found"
614
- }), /* @__PURE__ */ jsx("p", {
615
- className: "text-muted-foreground",
616
- children: "The page you're looking for doesn't exist."
617
- })]
710
+ children: [t1, t3]
618
711
  });
619
- $[0] = t0;
620
- } else t0 = $[0];
621
- return t0;
712
+ $[8] = t1;
713
+ $[9] = t3;
714
+ $[10] = t4;
715
+ } else t4 = $[10];
716
+ return t4;
622
717
  }
623
718
  function RestrictedAccess(t0) {
624
- const $ = c(16);
719
+ const $ = c(24);
625
720
  const { type, name, navigate, basePath } = t0;
721
+ const { t } = useTranslation();
626
722
  let t1;
627
- let t2;
628
723
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
629
724
  t1 = /* @__PURE__ */ jsx("div", {
630
725
  className: "bg-muted mx-auto mb-6 flex h-16 w-16 items-center justify-center rounded-full",
@@ -633,93 +728,100 @@ function RestrictedAccess(t0) {
633
728
  className: "text-muted-foreground h-8 w-8"
634
729
  })
635
730
  });
636
- t2 = /* @__PURE__ */ jsx("h1", {
637
- className: "mb-2 text-xl font-semibold",
638
- children: "Access Restricted"
639
- });
640
731
  $[0] = t1;
641
- $[1] = t2;
642
- } else {
643
- t1 = $[0];
644
- t2 = $[1];
645
- }
732
+ } else t1 = $[0];
733
+ let t2;
734
+ if ($[1] !== t) {
735
+ t2 = t("error.accessRestricted");
736
+ $[1] = t;
737
+ $[2] = t2;
738
+ } else t2 = $[2];
646
739
  let t3;
647
- if ($[2] !== name) {
648
- t3 = /* @__PURE__ */ jsxs("span", {
649
- className: "text-foreground font-mono",
650
- children: [
651
- "\"",
652
- name,
653
- "\""
654
- ]
740
+ if ($[3] !== t2) {
741
+ t3 = /* @__PURE__ */ jsx("h1", {
742
+ className: "mb-2 text-xl font-semibold",
743
+ children: t2
655
744
  });
656
- $[2] = name;
657
- $[3] = t3;
658
- } else t3 = $[3];
745
+ $[3] = t2;
746
+ $[4] = t3;
747
+ } else t3 = $[4];
659
748
  let t4;
660
- if ($[4] !== t3 || $[5] !== type) {
661
- t4 = /* @__PURE__ */ jsxs("p", {
662
- className: "text-muted-foreground mb-6 text-sm",
663
- children: [
664
- "The ",
665
- type,
666
- " ",
667
- t3,
668
- " is not available in the admin panel. It may be hidden or you don't have permission to access it."
669
- ]
749
+ if ($[5] !== name || $[6] !== t || $[7] !== type) {
750
+ t4 = t("error.accessRestrictedResourceDescription", {
751
+ type,
752
+ name
670
753
  });
671
- $[4] = t3;
672
- $[5] = type;
673
- $[6] = t4;
674
- } else t4 = $[6];
754
+ $[5] = name;
755
+ $[6] = t;
756
+ $[7] = type;
757
+ $[8] = t4;
758
+ } else t4 = $[8];
675
759
  let t5;
676
- if ($[7] !== basePath || $[8] !== navigate) {
677
- t5 = () => navigate(basePath);
678
- $[7] = basePath;
679
- $[8] = navigate;
680
- $[9] = t5;
681
- } else t5 = $[9];
760
+ if ($[9] !== t4) {
761
+ t5 = /* @__PURE__ */ jsx("p", {
762
+ className: "text-muted-foreground mb-6 text-sm",
763
+ children: t4
764
+ });
765
+ $[9] = t4;
766
+ $[10] = t5;
767
+ } else t5 = $[10];
682
768
  let t6;
683
- if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
684
- t6 = /* @__PURE__ */ jsx(Icon, {
769
+ if ($[11] !== basePath || $[12] !== navigate) {
770
+ t6 = () => navigate(basePath);
771
+ $[11] = basePath;
772
+ $[12] = navigate;
773
+ $[13] = t6;
774
+ } else t6 = $[13];
775
+ let t7;
776
+ if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
777
+ t7 = /* @__PURE__ */ jsx(Icon, {
685
778
  icon: "ph:arrow-left",
686
779
  className: "h-4 w-4"
687
780
  });
688
- $[10] = t6;
689
- } else t6 = $[10];
690
- let t7;
691
- if ($[11] !== t5) {
692
- t7 = /* @__PURE__ */ jsxs(Button, {
781
+ $[14] = t7;
782
+ } else t7 = $[14];
783
+ let t8;
784
+ if ($[15] !== t) {
785
+ t8 = t("error.backToDashboard");
786
+ $[15] = t;
787
+ $[16] = t8;
788
+ } else t8 = $[16];
789
+ let t9;
790
+ if ($[17] !== t6 || $[18] !== t8) {
791
+ t9 = /* @__PURE__ */ jsxs(Button, {
693
792
  variant: "outline",
694
- onClick: t5,
695
- children: [t6, "Back to Dashboard"]
793
+ onClick: t6,
794
+ children: [t7, t8]
696
795
  });
697
- $[11] = t5;
698
- $[12] = t7;
699
- } else t7 = $[12];
700
- let t8;
701
- if ($[13] !== t4 || $[14] !== t7) {
702
- t8 = /* @__PURE__ */ jsx("div", {
796
+ $[17] = t6;
797
+ $[18] = t8;
798
+ $[19] = t9;
799
+ } else t9 = $[19];
800
+ let t10;
801
+ if ($[20] !== t3 || $[21] !== t5 || $[22] !== t9) {
802
+ t10 = /* @__PURE__ */ jsx("div", {
703
803
  className: "qa-restricted-access container py-12",
704
804
  children: /* @__PURE__ */ jsx(Card, {
705
805
  className: "mx-auto max-w-lg p-8 text-center",
706
806
  children: /* @__PURE__ */ jsxs("div", { children: [
707
807
  t1,
708
- t2,
709
- t4,
710
- t7
808
+ t3,
809
+ t5,
810
+ t9
711
811
  ] })
712
812
  })
713
813
  });
714
- $[13] = t4;
715
- $[14] = t7;
716
- $[15] = t8;
717
- } else t8 = $[15];
718
- return t8;
814
+ $[20] = t3;
815
+ $[21] = t5;
816
+ $[22] = t9;
817
+ $[23] = t10;
818
+ } else t10 = $[23];
819
+ return t10;
719
820
  }
720
821
  function LazyPageRenderer(t0) {
721
- const $ = c(14);
822
+ const $ = c(21);
722
823
  const { config } = t0;
824
+ const { t } = useTranslation();
723
825
  const component = config.component;
724
826
  let t1;
725
827
  if ($[0] !== component) {
@@ -738,7 +840,7 @@ function LazyPageRenderer(t0) {
738
840
  const [error, setError] = React.useState(null);
739
841
  let t3;
740
842
  let t4;
741
- if ($[4] !== component) {
843
+ if ($[4] !== component || $[5] !== t) {
742
844
  t3 = () => {
743
845
  let mounted = true;
744
846
  (async function load() {
@@ -781,7 +883,7 @@ function LazyPageRenderer(t0) {
781
883
  if (mounted) {
782
884
  let resolvedError;
783
885
  if (err instanceof Error) resolvedError = err;
784
- else resolvedError = /* @__PURE__ */ new Error("Failed to load");
886
+ else resolvedError = new Error(t("error.failedToLoad"));
785
887
  setError(resolvedError);
786
888
  }
787
889
  if (mounted) setLoading(false);
@@ -791,54 +893,69 @@ function LazyPageRenderer(t0) {
791
893
  mounted = false;
792
894
  };
793
895
  };
794
- t4 = [component];
896
+ t4 = [component, t];
795
897
  $[4] = component;
796
- $[5] = t3;
797
- $[6] = t4;
898
+ $[5] = t;
899
+ $[6] = t3;
900
+ $[7] = t4;
798
901
  } else {
799
- t3 = $[5];
800
- t4 = $[6];
902
+ t3 = $[6];
903
+ t4 = $[7];
801
904
  }
802
905
  React.useEffect(t3, t4);
803
906
  if (loading) {
804
907
  let t5$1;
805
- if ($[7] !== config.path) {
908
+ if ($[8] !== config.path) {
806
909
  const path = config.path?.replace(/^\//, "") ?? "";
807
910
  t5$1 = AUTH_ROUTE_SEGMENTS.has(path) ? /* @__PURE__ */ jsx(AuthPageSkeleton, {}) : /* @__PURE__ */ jsx(RouterSkeleton, {});
808
- $[7] = config.path;
809
- $[8] = t5$1;
810
- } else t5$1 = $[8];
911
+ $[8] = config.path;
912
+ $[9] = t5$1;
913
+ } else t5$1 = $[9];
811
914
  return t5$1;
812
915
  }
813
916
  if (error) {
814
917
  let t5$1;
815
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
816
- t5$1 = /* @__PURE__ */ jsx("h1", {
918
+ if ($[10] !== t) {
919
+ t5$1 = t("error.unexpectedError");
920
+ $[10] = t;
921
+ $[11] = t5$1;
922
+ } else t5$1 = $[11];
923
+ let t6;
924
+ if ($[12] !== t5$1) {
925
+ t6 = /* @__PURE__ */ jsx("h1", {
817
926
  className: "text-destructive mb-4 text-2xl font-bold",
818
- children: "Error"
927
+ children: t5$1
819
928
  });
820
- $[9] = t5$1;
821
- } else t5$1 = $[9];
822
- let t6;
823
- if ($[10] !== error.message) {
824
- t6 = /* @__PURE__ */ jsxs("div", {
929
+ $[12] = t5$1;
930
+ $[13] = t6;
931
+ } else t6 = $[13];
932
+ let t7;
933
+ if ($[14] !== error.message) {
934
+ t7 = /* @__PURE__ */ jsx("p", {
935
+ className: "text-muted-foreground",
936
+ children: error.message
937
+ });
938
+ $[14] = error.message;
939
+ $[15] = t7;
940
+ } else t7 = $[15];
941
+ let t8;
942
+ if ($[16] !== t6 || $[17] !== t7) {
943
+ t8 = /* @__PURE__ */ jsxs("div", {
825
944
  className: "container",
826
- children: [t5$1, /* @__PURE__ */ jsx("p", {
827
- className: "text-muted-foreground",
828
- children: error.message
829
- })]
945
+ children: [t6, t7]
830
946
  });
831
- $[10] = error.message;
832
- $[11] = t6;
833
- } else t6 = $[11];
834
- return t6;
947
+ $[16] = t6;
948
+ $[17] = t7;
949
+ $[18] = t8;
950
+ } else t8 = $[18];
951
+ return t8;
835
952
  }
836
953
  let t5;
837
- if ($[12] !== Component) {
954
+ if ($[19] !== Component) {
838
955
  t5 = Component ? /* @__PURE__ */ jsx(Component, {}) : /* @__PURE__ */ jsx(DefaultNotFound, {});
839
- $[12] = Component;
840
- $[13] = t5;
841
- } else t5 = $[13];
956
+ $[19] = Component;
957
+ $[20] = t5;
958
+ } else t5 = $[20];
842
959
  return t5;
843
960
  }
844
961
  /**