@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.
- package/dist/client/components/blocks/block-editor-layout.mjs +2 -2
- package/dist/client/components/blocks/block-library-sidebar.mjs +89 -61
- package/dist/client/components/media/media-grid.mjs +95 -78
- package/dist/client/components/primitives/select-multi.mjs +388 -368
- package/dist/client/components/primitives/select-single.mjs +344 -331
- package/dist/client/components/widgets/chart-widget.mjs +78 -62
- package/dist/client/components/widgets/progress-widget.mjs +39 -37
- package/dist/client/components/widgets/quick-actions-widget.mjs +111 -90
- package/dist/client/components/widgets/recent-items-widget.mjs +40 -38
- package/dist/client/components/widgets/table-widget.mjs +4 -3
- package/dist/client/components/widgets/timeline-widget.mjs +92 -74
- package/dist/client/components/widgets/value-widget.mjs +164 -144
- package/dist/client/hooks/use-server-actions.mjs +21 -16
- package/dist/client/preview/block-scope-context.d.mts +2 -2
- package/dist/client/preview/preview-banner.d.mts +2 -2
- package/dist/client/preview/preview-banner.mjs +75 -46
- package/dist/client/views/auth/accept-invite-form.d.mts +2 -2
- package/dist/client/views/auth/auth-layout.d.mts +2 -2
- package/dist/client/views/auth/forgot-password-form.d.mts +2 -2
- package/dist/client/views/auth/login-form.d.mts +2 -2
- package/dist/client/views/auth/reset-password-form.d.mts +2 -2
- package/dist/client/views/auth/setup-form.d.mts +2 -2
- package/dist/client/views/collection/table-view.mjs +26 -26
- package/dist/client/views/layout/admin-layout.mjs +151 -131
- package/dist/client/views/layout/admin-router.mjs +297 -180
- package/dist/client/views/layout/admin-sidebar.mjs +126 -116
- package/dist/client/views/pages/login-page.d.mts +2 -2
- package/dist/client/views/pages/reset-password-page.d.mts +2 -2
- package/dist/client/views/pages/setup-page.mjs +67 -51
- package/dist/server/i18n/index.mjs +13 -7
- package/dist/server/i18n/messages/cs.mjs +391 -1
- package/dist/server/i18n/messages/de.mjs +389 -1
- package/dist/server/i18n/messages/en.mjs +102 -0
- package/dist/server/i18n/messages/es.mjs +389 -1
- package/dist/server/i18n/messages/fr.mjs +389 -1
- package/dist/server/i18n/messages/pl.mjs +393 -1
- package/dist/server/i18n/messages/pt.mjs +386 -1
- package/dist/server/i18n/messages/sk.mjs +133 -1
- package/dist/server/modules/admin/collections/account.d.mts +50 -50
- package/dist/server/modules/admin/collections/admin-locks.d.mts +54 -54
- package/dist/server/modules/admin/collections/admin-preferences.d.mts +39 -39
- package/dist/server/modules/admin/collections/admin-saved-views.d.mts +41 -41
- package/dist/server/modules/admin/collections/apikey.d.mts +68 -68
- package/dist/server/modules/admin/collections/assets.d.mts +20 -20
- package/dist/server/modules/admin/collections/session.d.mts +42 -42
- package/dist/server/modules/admin/collections/user.d.mts +32 -32
- package/dist/server/modules/admin/collections/verification.d.mts +36 -36
- package/dist/server/modules/admin/routes/admin-config.d.mts +2 -2
- package/dist/server/modules/admin/routes/execute-action.d.mts +9 -9
- package/dist/server/modules/admin/routes/execute-action.mjs +34 -28
- package/dist/server/modules/admin/routes/i18n-helpers.mjs +34 -0
- package/dist/server/modules/admin/routes/preview.d.mts +11 -11
- package/dist/server/modules/admin/routes/preview.mjs +25 -17
- package/dist/server/modules/admin/routes/route-helpers.mjs +1 -1
- package/dist/server/modules/admin/routes/setup.mjs +10 -7
- package/dist/server/modules/admin/routes/widget-data.d.mts +5 -5
- package/dist/server/modules/admin-preferences/collections/saved-views.d.mts +27 -27
- 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(
|
|
249
|
+
const $ = c(13);
|
|
250
250
|
const { viewKind, viewId } = t0;
|
|
251
|
+
const { t } = useTranslation();
|
|
251
252
|
let t1;
|
|
252
|
-
if ($[0] !== viewKind) {
|
|
253
|
-
t1 =
|
|
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
|
-
$[
|
|
262
|
-
$[
|
|
263
|
-
} else
|
|
264
|
-
let
|
|
265
|
-
if ($[
|
|
266
|
-
|
|
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
|
-
$[
|
|
275
|
-
$[
|
|
276
|
-
} else
|
|
277
|
-
let
|
|
278
|
-
if ($[
|
|
279
|
-
|
|
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: [
|
|
290
|
+
children: [t2, t4]
|
|
284
291
|
})
|
|
285
292
|
});
|
|
286
|
-
$[
|
|
287
|
-
$[
|
|
288
|
-
$[
|
|
289
|
-
} else
|
|
290
|
-
return
|
|
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(
|
|
559
|
+
const $ = c(27);
|
|
560
|
+
const { t, formatDate } = useTranslation();
|
|
553
561
|
let t0;
|
|
554
|
-
if ($[0]
|
|
555
|
-
t0 = (/* @__PURE__ */ new Date()
|
|
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] =
|
|
562
|
-
|
|
569
|
+
$[0] = formatDate;
|
|
570
|
+
$[1] = t0;
|
|
571
|
+
} else t0 = $[1];
|
|
563
572
|
const date = t0;
|
|
564
573
|
let t1;
|
|
565
|
-
if ($[
|
|
566
|
-
t1 =
|
|
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:
|
|
583
|
+
title: t1,
|
|
569
584
|
meta: date
|
|
570
585
|
});
|
|
571
|
-
$[
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
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
|
-
$[
|
|
602
|
-
|
|
603
|
-
|
|
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(
|
|
674
|
+
const $ = c(11);
|
|
675
|
+
const { t } = useTranslation();
|
|
607
676
|
let t0;
|
|
608
|
-
if ($[0]
|
|
609
|
-
t0 =
|
|
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: [
|
|
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
|
-
$[
|
|
620
|
-
|
|
621
|
-
|
|
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(
|
|
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
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
t2 =
|
|
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 ($[
|
|
648
|
-
t3 = /* @__PURE__ */
|
|
649
|
-
className: "text-
|
|
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
|
-
$[
|
|
657
|
-
$[
|
|
658
|
-
} else t3 = $[
|
|
745
|
+
$[3] = t2;
|
|
746
|
+
$[4] = t3;
|
|
747
|
+
} else t3 = $[4];
|
|
659
748
|
let t4;
|
|
660
|
-
if ($[
|
|
661
|
-
t4 =
|
|
662
|
-
|
|
663
|
-
|
|
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
|
-
$[
|
|
672
|
-
$[
|
|
673
|
-
$[
|
|
674
|
-
|
|
754
|
+
$[5] = name;
|
|
755
|
+
$[6] = t;
|
|
756
|
+
$[7] = type;
|
|
757
|
+
$[8] = t4;
|
|
758
|
+
} else t4 = $[8];
|
|
675
759
|
let t5;
|
|
676
|
-
if ($[
|
|
677
|
-
t5 =
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
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 ($[
|
|
684
|
-
t6 =
|
|
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
|
-
$[
|
|
689
|
-
} else
|
|
690
|
-
let
|
|
691
|
-
if ($[
|
|
692
|
-
|
|
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:
|
|
695
|
-
children: [
|
|
793
|
+
onClick: t6,
|
|
794
|
+
children: [t7, t8]
|
|
696
795
|
});
|
|
697
|
-
$[
|
|
698
|
-
$[
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
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
|
-
|
|
709
|
-
|
|
710
|
-
|
|
808
|
+
t3,
|
|
809
|
+
t5,
|
|
810
|
+
t9
|
|
711
811
|
] })
|
|
712
812
|
})
|
|
713
813
|
});
|
|
714
|
-
$[
|
|
715
|
-
$[
|
|
716
|
-
$[
|
|
717
|
-
|
|
718
|
-
|
|
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(
|
|
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 =
|
|
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] =
|
|
797
|
-
$[6] =
|
|
898
|
+
$[5] = t;
|
|
899
|
+
$[6] = t3;
|
|
900
|
+
$[7] = t4;
|
|
798
901
|
} else {
|
|
799
|
-
t3 = $[
|
|
800
|
-
t4 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
809
|
-
$[
|
|
810
|
-
} else t5$1 = $[
|
|
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 ($[
|
|
816
|
-
t5$1 =
|
|
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:
|
|
927
|
+
children: t5$1
|
|
819
928
|
});
|
|
820
|
-
$[
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
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: [
|
|
827
|
-
className: "text-muted-foreground",
|
|
828
|
-
children: error.message
|
|
829
|
-
})]
|
|
945
|
+
children: [t6, t7]
|
|
830
946
|
});
|
|
831
|
-
$[
|
|
832
|
-
$[
|
|
833
|
-
|
|
834
|
-
|
|
947
|
+
$[16] = t6;
|
|
948
|
+
$[17] = t7;
|
|
949
|
+
$[18] = t8;
|
|
950
|
+
} else t8 = $[18];
|
|
951
|
+
return t8;
|
|
835
952
|
}
|
|
836
953
|
let t5;
|
|
837
|
-
if ($[
|
|
954
|
+
if ($[19] !== Component) {
|
|
838
955
|
t5 = Component ? /* @__PURE__ */ jsx(Component, {}) : /* @__PURE__ */ jsx(DefaultNotFound, {});
|
|
839
|
-
$[
|
|
840
|
-
$[
|
|
841
|
-
} else t5 = $[
|
|
956
|
+
$[19] = Component;
|
|
957
|
+
$[20] = t5;
|
|
958
|
+
} else t5 = $[20];
|
|
842
959
|
return t5;
|
|
843
960
|
}
|
|
844
961
|
/**
|