@questpie/admin 3.0.4 → 3.0.6

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 (90) hide show
  1. package/README.md +99 -1
  2. package/dist/client/builder/types/field-types.d.mts +11 -0
  3. package/dist/client/components/blocks/block-editor-layout.mjs +2 -2
  4. package/dist/client/components/blocks/block-library-sidebar.mjs +89 -61
  5. package/dist/client/components/brand-logo.d.mts +25 -0
  6. package/dist/client/components/brand-logo.mjs +174 -0
  7. package/dist/client/components/media/media-grid.mjs +95 -78
  8. package/dist/client/components/primitives/select-multi.mjs +388 -368
  9. package/dist/client/components/primitives/select-single.mjs +344 -331
  10. package/dist/client/components/widgets/chart-widget.mjs +78 -62
  11. package/dist/client/components/widgets/progress-widget.mjs +39 -37
  12. package/dist/client/components/widgets/quick-actions-widget.mjs +111 -90
  13. package/dist/client/components/widgets/recent-items-widget.mjs +40 -38
  14. package/dist/client/components/widgets/table-widget.mjs +4 -3
  15. package/dist/client/components/widgets/timeline-widget.mjs +92 -74
  16. package/dist/client/components/widgets/value-widget.mjs +164 -144
  17. package/dist/client/create-admin-client.d.mts +7 -0
  18. package/dist/client/create-admin-client.mjs +25 -0
  19. package/dist/client/hooks/use-brand.d.mts +22 -0
  20. package/dist/client/hooks/use-brand.mjs +52 -0
  21. package/dist/client/hooks/use-server-actions.mjs +21 -16
  22. package/dist/client/preview/block-scope-context.d.mts +2 -2
  23. package/dist/client/preview/preview-banner.d.mts +2 -2
  24. package/dist/client/preview/preview-banner.mjs +75 -46
  25. package/dist/client/runtime/index.mjs +1 -1
  26. package/dist/client/runtime/provider.d.mts +4 -0
  27. package/dist/client/runtime/provider.mjs +38 -8
  28. package/dist/client/styles/base.css +4 -0
  29. package/dist/client/types/admin-config.d.mts +24 -0
  30. package/dist/client/views/auth/auth-layout.d.mts +6 -1
  31. package/dist/client/views/auth/auth-layout.mjs +116 -102
  32. package/dist/client/views/collection/auto-form-fields.mjs +2 -0
  33. package/dist/client/views/collection/field-renderer.mjs +3 -2
  34. package/dist/client/views/collection/table-view.mjs +26 -26
  35. package/dist/client/views/globals/global-form-view.mjs +908 -863
  36. package/dist/client/views/layout/admin-layout.mjs +151 -131
  37. package/dist/client/views/layout/admin-router.mjs +297 -180
  38. package/dist/client/views/layout/admin-sidebar.mjs +178 -156
  39. package/dist/client/views/pages/accept-invite-page.mjs +122 -144
  40. package/dist/client/views/pages/forgot-password-page.mjs +22 -30
  41. package/dist/client/views/pages/invite-page.mjs +24 -33
  42. package/dist/client/views/pages/login-page.mjs +24 -32
  43. package/dist/client/views/pages/reset-password-page.mjs +77 -92
  44. package/dist/client/views/pages/setup-page.mjs +73 -65
  45. package/dist/client.d.mts +6 -2
  46. package/dist/client.mjs +5 -2
  47. package/dist/index.d.mts +6 -2
  48. package/dist/index.mjs +5 -2
  49. package/dist/server/augmentation/dashboard.d.mts +23 -5
  50. package/dist/server/augmentation/form-layout.d.mts +10 -0
  51. package/dist/server/augmentation/index.d.mts +1 -1
  52. package/dist/server/augmentation.d.mts +1 -1
  53. package/dist/server/i18n/index.mjs +13 -7
  54. package/dist/server/i18n/messages/cs.mjs +391 -1
  55. package/dist/server/i18n/messages/de.mjs +389 -1
  56. package/dist/server/i18n/messages/en.mjs +102 -0
  57. package/dist/server/i18n/messages/es.mjs +389 -1
  58. package/dist/server/i18n/messages/fr.mjs +389 -1
  59. package/dist/server/i18n/messages/pl.mjs +393 -1
  60. package/dist/server/i18n/messages/pt.mjs +386 -1
  61. package/dist/server/i18n/messages/sk.mjs +133 -1
  62. package/dist/server/modules/admin/collections/account.d.mts +50 -50
  63. package/dist/server/modules/admin/collections/admin-locks.d.mts +53 -53
  64. package/dist/server/modules/admin/collections/admin-preferences.d.mts +39 -39
  65. package/dist/server/modules/admin/collections/admin-saved-views.d.mts +47 -47
  66. package/dist/server/modules/admin/collections/apikey.d.mts +68 -68
  67. package/dist/server/modules/admin/collections/assets.d.mts +20 -20
  68. package/dist/server/modules/admin/collections/session.d.mts +42 -42
  69. package/dist/server/modules/admin/collections/user.d.mts +32 -32
  70. package/dist/server/modules/admin/collections/verification.d.mts +36 -36
  71. package/dist/server/modules/admin/dto/admin-config.dto.mjs +19 -1
  72. package/dist/server/modules/admin/routes/admin-config.d.mts +2 -2
  73. package/dist/server/modules/admin/routes/execute-action.d.mts +9 -9
  74. package/dist/server/modules/admin/routes/execute-action.mjs +34 -28
  75. package/dist/server/modules/admin/routes/i18n-helpers.mjs +34 -0
  76. package/dist/server/modules/admin/routes/locales.d.mts +2 -2
  77. package/dist/server/modules/admin/routes/preview.d.mts +11 -11
  78. package/dist/server/modules/admin/routes/preview.mjs +25 -17
  79. package/dist/server/modules/admin/routes/reactive.d.mts +9 -9
  80. package/dist/server/modules/admin/routes/route-helpers.mjs +1 -1
  81. package/dist/server/modules/admin/routes/setup.mjs +10 -7
  82. package/dist/server/modules/admin/routes/translations.d.mts +4 -4
  83. package/dist/server/modules/admin/routes/widget-data.d.mts +5 -5
  84. package/dist/server/modules/admin-preferences/collections/saved-views.d.mts +23 -23
  85. package/dist/server.d.mts +4 -4
  86. package/dist/shared/preview-utils.d.mts +34 -1
  87. package/dist/shared/preview-utils.mjs +79 -1
  88. package/dist/shared.d.mts +2 -2
  89. package/dist/shared.mjs +2 -2
  90. package/package.json +3 -3
@@ -1,11 +1,11 @@
1
1
  import { useTranslation } from "../../i18n/hooks.mjs";
2
- import { selectBasePath, selectBrandName, selectNavigate, useAdminStore } from "../../runtime/provider.mjs";
2
+ import { selectBasePath, selectNavigate, useAdminStore } from "../../runtime/provider.mjs";
3
3
  import { Button } from "../../components/ui/button.mjs";
4
4
  import { Skeleton } from "../../components/ui/skeleton.mjs";
5
5
  import { useAuthClient } from "../../hooks/use-auth.mjs";
6
6
  import { Alert, AlertDescription } from "../../components/ui/alert.mjs";
7
7
  import { AcceptInviteForm } from "../auth/accept-invite-form.mjs";
8
- import { AuthDefaultLogo, AuthLayout } from "../auth/auth-layout.mjs";
8
+ import { AuthLayout } from "../auth/auth-layout.mjs";
9
9
  import { c } from "react/compiler-runtime";
10
10
  import { Icon } from "@iconify/react";
11
11
  import * as React from "react";
@@ -78,14 +78,13 @@ function AcceptInvitePageSkeleton() {
78
78
  * ```
79
79
  */
80
80
  function AcceptInvitePage(t0) {
81
- const $ = c(82);
81
+ const $ = c(73);
82
82
  const { token, title, description, logo, redirectTo, loginPath, minPasswordLength: t1 } = t0;
83
83
  const minPasswordLength = t1 === void 0 ? 8 : t1;
84
84
  const { t } = useTranslation();
85
85
  const authClient = useAuthClient();
86
86
  const navigate = useAdminStore(selectNavigate);
87
87
  const basePath = useAdminStore(selectBasePath);
88
- const brandName = useAdminStore(selectBrandName);
89
88
  let t2;
90
89
  if ($[0] !== token) {
91
90
  t2 = [
@@ -183,189 +182,168 @@ function AcceptInvitePage(t0) {
183
182
  $[23] = t8$1;
184
183
  } else t8$1 = $[23];
185
184
  let t9$1;
186
- if ($[24] !== brandName || $[25] !== logo) {
187
- t9$1 = logo ?? /* @__PURE__ */ jsx(AuthDefaultLogo, { brandName });
188
- $[24] = brandName;
189
- $[25] = logo;
190
- $[26] = t9$1;
191
- } else t9$1 = $[26];
185
+ if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
186
+ t9$1 = /* @__PURE__ */ jsx(AcceptInvitePageSkeleton, {});
187
+ $[24] = t9$1;
188
+ } else t9$1 = $[24];
192
189
  let t10$1;
193
- if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
194
- t10$1 = /* @__PURE__ */ jsx(AcceptInvitePageSkeleton, {});
195
- $[27] = t10$1;
196
- } else t10$1 = $[27];
197
- let t11$1;
198
- if ($[28] !== t7$1 || $[29] !== t8$1 || $[30] !== t9$1) {
199
- t11$1 = /* @__PURE__ */ jsx(AuthLayout, {
190
+ if ($[25] !== logo || $[26] !== t7$1 || $[27] !== t8$1) {
191
+ t10$1 = /* @__PURE__ */ jsx(AuthLayout, {
200
192
  title: t7$1,
201
193
  description: t8$1,
202
- logo: t9$1,
203
- children: t10$1
194
+ logo,
195
+ children: t9$1
204
196
  });
205
- $[28] = t7$1;
206
- $[29] = t8$1;
207
- $[30] = t9$1;
208
- $[31] = t11$1;
209
- } else t11$1 = $[31];
210
- return t11$1;
197
+ $[25] = logo;
198
+ $[26] = t7$1;
199
+ $[27] = t8$1;
200
+ $[28] = t10$1;
201
+ } else t10$1 = $[28];
202
+ return t10$1;
211
203
  }
212
204
  if (invitationError) {
213
205
  let t7$1;
214
- if ($[32] !== t) {
206
+ if ($[29] !== t) {
215
207
  t7$1 = t("auth.invalidInvitation");
216
- $[32] = t;
217
- $[33] = t7$1;
218
- } else t7$1 = $[33];
208
+ $[29] = t;
209
+ $[30] = t7$1;
210
+ } else t7$1 = $[30];
219
211
  let t8$1;
220
- if ($[34] !== t) {
212
+ if ($[31] !== t) {
221
213
  t8$1 = t("auth.invalidInvitationDescription");
222
- $[34] = t;
223
- $[35] = t8$1;
224
- } else t8$1 = $[35];
214
+ $[31] = t;
215
+ $[32] = t8$1;
216
+ } else t8$1 = $[32];
225
217
  let t9$1;
226
- if ($[36] !== brandName || $[37] !== logo) {
227
- t9$1 = logo ?? /* @__PURE__ */ jsx(AuthDefaultLogo, { brandName });
228
- $[36] = brandName;
229
- $[37] = logo;
230
- $[38] = t9$1;
231
- } else t9$1 = $[38];
218
+ if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
219
+ t9$1 = /* @__PURE__ */ jsx(Icon, { icon: "ph:warning-circle" });
220
+ $[33] = t9$1;
221
+ } else t9$1 = $[33];
232
222
  let t10$1;
233
- if ($[39] === Symbol.for("react.memo_cache_sentinel")) {
234
- t10$1 = /* @__PURE__ */ jsx(Icon, { icon: "ph:warning-circle" });
235
- $[39] = t10$1;
236
- } else t10$1 = $[39];
223
+ if ($[34] !== invitationError?.message || $[35] !== t) {
224
+ t10$1 = invitationError?.message || t("auth.invalidOrExpiredInvitation");
225
+ $[34] = invitationError?.message;
226
+ $[35] = t;
227
+ $[36] = t10$1;
228
+ } else t10$1 = $[36];
237
229
  let t11$1;
238
- if ($[40] !== invitationError?.message || $[41] !== t) {
239
- t11$1 = invitationError?.message || t("auth.invalidOrExpiredInvitation");
240
- $[40] = invitationError?.message;
241
- $[41] = t;
242
- $[42] = t11$1;
243
- } else t11$1 = $[42];
244
- let t12$1;
245
- if ($[43] !== t11$1) {
246
- t12$1 = /* @__PURE__ */ jsxs(Alert, {
230
+ if ($[37] !== t10$1) {
231
+ t11$1 = /* @__PURE__ */ jsxs(Alert, {
247
232
  variant: "destructive",
248
- children: [t10$1, /* @__PURE__ */ jsx(AlertDescription, { children: t11$1 })]
233
+ children: [t9$1, /* @__PURE__ */ jsx(AlertDescription, { children: t10$1 })]
249
234
  });
250
- $[43] = t11$1;
251
- $[44] = t12$1;
252
- } else t12$1 = $[44];
235
+ $[37] = t10$1;
236
+ $[38] = t11$1;
237
+ } else t11$1 = $[38];
238
+ let t12;
239
+ if ($[39] !== t) {
240
+ t12 = t("auth.invitationExpiredMessage");
241
+ $[39] = t;
242
+ $[40] = t12;
243
+ } else t12 = $[40];
253
244
  let t13;
254
- if ($[45] !== t) {
255
- t13 = t("auth.invitationExpiredMessage");
256
- $[45] = t;
257
- $[46] = t13;
258
- } else t13 = $[46];
259
- let t14;
260
- if ($[47] !== t13) {
261
- t14 = /* @__PURE__ */ jsx("p", {
245
+ if ($[41] !== t12) {
246
+ t13 = /* @__PURE__ */ jsx("p", {
262
247
  className: "text-muted-foreground text-center text-sm",
263
- children: t13
248
+ children: t12
264
249
  });
265
- $[47] = t13;
266
- $[48] = t14;
267
- } else t14 = $[48];
250
+ $[41] = t12;
251
+ $[42] = t13;
252
+ } else t13 = $[42];
253
+ let t14;
254
+ if ($[43] !== t) {
255
+ t14 = t("auth.goToLogin");
256
+ $[43] = t;
257
+ $[44] = t14;
258
+ } else t14 = $[44];
268
259
  let t15;
269
- if ($[49] !== t) {
270
- t15 = t("auth.goToLogin");
271
- $[49] = t;
272
- $[50] = t15;
273
- } else t15 = $[50];
274
- let t16;
275
- if ($[51] !== handleGoToLogin || $[52] !== t15) {
276
- t16 = /* @__PURE__ */ jsx(Button, {
260
+ if ($[45] !== handleGoToLogin || $[46] !== t14) {
261
+ t15 = /* @__PURE__ */ jsx(Button, {
277
262
  variant: "outline",
278
263
  className: "w-full",
279
264
  onClick: handleGoToLogin,
280
- children: t15
265
+ children: t14
281
266
  });
282
- $[51] = handleGoToLogin;
283
- $[52] = t15;
284
- $[53] = t16;
285
- } else t16 = $[53];
286
- let t17;
287
- if ($[54] !== t12$1 || $[55] !== t14 || $[56] !== t16) {
288
- t17 = /* @__PURE__ */ jsxs("div", {
267
+ $[45] = handleGoToLogin;
268
+ $[46] = t14;
269
+ $[47] = t15;
270
+ } else t15 = $[47];
271
+ let t16;
272
+ if ($[48] !== t11$1 || $[49] !== t13 || $[50] !== t15) {
273
+ t16 = /* @__PURE__ */ jsxs("div", {
289
274
  className: "space-y-4",
290
275
  children: [
291
- t12$1,
292
- t14,
293
- t16
276
+ t11$1,
277
+ t13,
278
+ t15
294
279
  ]
295
280
  });
296
- $[54] = t12$1;
297
- $[55] = t14;
298
- $[56] = t16;
299
- $[57] = t17;
300
- } else t17 = $[57];
301
- let t18;
302
- if ($[58] !== t17 || $[59] !== t7$1 || $[60] !== t8$1 || $[61] !== t9$1) {
303
- t18 = /* @__PURE__ */ jsx(AuthLayout, {
281
+ $[48] = t11$1;
282
+ $[49] = t13;
283
+ $[50] = t15;
284
+ $[51] = t16;
285
+ } else t16 = $[51];
286
+ let t17;
287
+ if ($[52] !== logo || $[53] !== t16 || $[54] !== t7$1 || $[55] !== t8$1) {
288
+ t17 = /* @__PURE__ */ jsx(AuthLayout, {
304
289
  title: t7$1,
305
290
  description: t8$1,
306
- logo: t9$1,
307
- children: t17
291
+ logo,
292
+ children: t16
308
293
  });
309
- $[58] = t17;
310
- $[59] = t7$1;
311
- $[60] = t8$1;
312
- $[61] = t9$1;
313
- $[62] = t18;
314
- } else t18 = $[62];
315
- return t18;
294
+ $[52] = logo;
295
+ $[53] = t16;
296
+ $[54] = t7$1;
297
+ $[55] = t8$1;
298
+ $[56] = t17;
299
+ } else t17 = $[56];
300
+ return t17;
316
301
  }
317
302
  let t7;
318
- if ($[63] !== t || $[64] !== title) {
303
+ if ($[57] !== t || $[58] !== title) {
319
304
  t7 = title ?? t("auth.completeRegistration");
320
- $[63] = t;
321
- $[64] = title;
322
- $[65] = t7;
323
- } else t7 = $[65];
305
+ $[57] = t;
306
+ $[58] = title;
307
+ $[59] = t7;
308
+ } else t7 = $[59];
324
309
  let t8;
325
- if ($[66] !== description || $[67] !== t) {
310
+ if ($[60] !== description || $[61] !== t) {
326
311
  t8 = description ?? t("auth.createAccountDescription");
327
- $[66] = description;
328
- $[67] = t;
329
- $[68] = t8;
330
- } else t8 = $[68];
331
- let t9;
332
- if ($[69] !== brandName || $[70] !== logo) {
333
- t9 = logo ?? /* @__PURE__ */ jsx(AuthDefaultLogo, { brandName });
334
- $[69] = brandName;
335
- $[70] = logo;
336
- $[71] = t9;
337
- } else t9 = $[71];
338
- const t10 = invitationData?.email ?? "";
339
- let t11;
340
- if ($[72] !== error || $[73] !== handleSubmit || $[74] !== minPasswordLength || $[75] !== t10) {
341
- t11 = /* @__PURE__ */ jsx(AcceptInviteForm, {
312
+ $[60] = description;
313
+ $[61] = t;
314
+ $[62] = t8;
315
+ } else t8 = $[62];
316
+ const t9 = invitationData?.email ?? "";
317
+ let t10;
318
+ if ($[63] !== error || $[64] !== handleSubmit || $[65] !== minPasswordLength || $[66] !== t9) {
319
+ t10 = /* @__PURE__ */ jsx(AcceptInviteForm, {
342
320
  onSubmit: handleSubmit,
343
- email: t10,
321
+ email: t9,
344
322
  error,
345
323
  minPasswordLength
346
324
  });
347
- $[72] = error;
348
- $[73] = handleSubmit;
349
- $[74] = minPasswordLength;
350
- $[75] = t10;
351
- $[76] = t11;
352
- } else t11 = $[76];
353
- let t12;
354
- if ($[77] !== t11 || $[78] !== t7 || $[79] !== t8 || $[80] !== t9) {
355
- t12 = /* @__PURE__ */ jsx(AuthLayout, {
325
+ $[63] = error;
326
+ $[64] = handleSubmit;
327
+ $[65] = minPasswordLength;
328
+ $[66] = t9;
329
+ $[67] = t10;
330
+ } else t10 = $[67];
331
+ let t11;
332
+ if ($[68] !== logo || $[69] !== t10 || $[70] !== t7 || $[71] !== t8) {
333
+ t11 = /* @__PURE__ */ jsx(AuthLayout, {
356
334
  title: t7,
357
335
  description: t8,
358
- logo: t9,
336
+ logo,
359
337
  className: "qa-accept-invite-page",
360
- children: t11
338
+ children: t10
361
339
  });
362
- $[77] = t11;
363
- $[78] = t7;
364
- $[79] = t8;
365
- $[80] = t9;
366
- $[81] = t12;
367
- } else t12 = $[81];
368
- return t12;
340
+ $[68] = logo;
341
+ $[69] = t10;
342
+ $[70] = t7;
343
+ $[71] = t8;
344
+ $[72] = t11;
345
+ } else t11 = $[72];
346
+ return t11;
369
347
  }
370
348
 
371
349
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { useTranslation } from "../../i18n/hooks.mjs";
2
- import { selectBasePath, selectBrandName, selectNavigate, useAdminStore } from "../../runtime/provider.mjs";
2
+ import { selectBasePath, selectNavigate, useAdminStore } from "../../runtime/provider.mjs";
3
3
  import { useAuthClient } from "../../hooks/use-auth.mjs";
4
- import { AuthDefaultLogo, AuthLayout } from "../auth/auth-layout.mjs";
4
+ import { AuthLayout } from "../auth/auth-layout.mjs";
5
5
  import { ForgotPasswordForm } from "../auth/forgot-password-form.mjs";
6
6
  import { c } from "react/compiler-runtime";
7
7
  import * as React from "react";
@@ -31,13 +31,12 @@ import { jsx } from "react/jsx-runtime";
31
31
  * ```
32
32
  */
33
33
  function ForgotPasswordPage(t0) {
34
- const $ = c(27);
34
+ const $ = c(24);
35
35
  const { title, description, logo, loginPath, resetPasswordRedirectUrl } = t0;
36
36
  const { t } = useTranslation();
37
37
  const authClient = useAuthClient();
38
38
  const navigate = useAdminStore(selectNavigate);
39
39
  const basePath = useAdminStore(selectBasePath);
40
- const brandName = useAdminStore(selectBrandName);
41
40
  const [error, setError] = React.useState(null);
42
41
  let t1;
43
42
  if ($[0] !== authClient || $[1] !== basePath || $[2] !== resetPasswordRedirectUrl || $[3] !== t) {
@@ -95,40 +94,33 @@ function ForgotPasswordPage(t0) {
95
94
  $[14] = t4;
96
95
  } else t4 = $[14];
97
96
  let t5;
98
- if ($[15] !== brandName || $[16] !== logo) {
99
- t5 = logo ?? /* @__PURE__ */ jsx(AuthDefaultLogo, { brandName });
100
- $[15] = brandName;
101
- $[16] = logo;
102
- $[17] = t5;
103
- } else t5 = $[17];
104
- let t6;
105
- if ($[18] !== error || $[19] !== handleBackToLoginClick || $[20] !== handleSubmit) {
106
- t6 = /* @__PURE__ */ jsx(ForgotPasswordForm, {
97
+ if ($[15] !== error || $[16] !== handleBackToLoginClick || $[17] !== handleSubmit) {
98
+ t5 = /* @__PURE__ */ jsx(ForgotPasswordForm, {
107
99
  onSubmit: handleSubmit,
108
100
  onBackToLoginClick: handleBackToLoginClick,
109
101
  error
110
102
  });
111
- $[18] = error;
112
- $[19] = handleBackToLoginClick;
113
- $[20] = handleSubmit;
114
- $[21] = t6;
115
- } else t6 = $[21];
116
- let t7;
117
- if ($[22] !== t3 || $[23] !== t4 || $[24] !== t5 || $[25] !== t6) {
118
- t7 = /* @__PURE__ */ jsx(AuthLayout, {
103
+ $[15] = error;
104
+ $[16] = handleBackToLoginClick;
105
+ $[17] = handleSubmit;
106
+ $[18] = t5;
107
+ } else t5 = $[18];
108
+ let t6;
109
+ if ($[19] !== logo || $[20] !== t3 || $[21] !== t4 || $[22] !== t5) {
110
+ t6 = /* @__PURE__ */ jsx(AuthLayout, {
119
111
  title: t3,
120
112
  description: t4,
121
- logo: t5,
113
+ logo,
122
114
  className: "qa-forgot-password-page",
123
- children: t6
115
+ children: t5
124
116
  });
125
- $[22] = t3;
126
- $[23] = t4;
127
- $[24] = t5;
128
- $[25] = t6;
129
- $[26] = t7;
130
- } else t7 = $[26];
131
- return t7;
117
+ $[19] = logo;
118
+ $[20] = t3;
119
+ $[21] = t4;
120
+ $[22] = t5;
121
+ $[23] = t6;
122
+ } else t6 = $[23];
123
+ return t6;
132
124
  }
133
125
 
134
126
  //#endregion
@@ -1,7 +1,6 @@
1
1
  import { useTranslation } from "../../i18n/hooks.mjs";
2
- import { selectBrandName, useAdminStore } from "../../runtime/provider.mjs";
3
2
  import { useAuthClient } from "../../hooks/use-auth.mjs";
4
- import { AuthDefaultLogo, AuthLayout } from "../auth/auth-layout.mjs";
3
+ import { AuthLayout } from "../auth/auth-layout.mjs";
5
4
  import { InviteForm } from "../auth/invite-form.mjs";
6
5
  import { c } from "react/compiler-runtime";
7
6
  import * as React from "react";
@@ -31,13 +30,12 @@ import { jsx } from "react/jsx-runtime";
31
30
  * ```
32
31
  */
33
32
  function InvitePage(t0) {
34
- const $ = c(28);
33
+ const $ = c(25);
35
34
  const { title, description, logo, roles, defaultRole: t1, showMessage: t2, onSuccess } = t0;
36
35
  const defaultRole = t1 === void 0 ? "user" : t1;
37
36
  const showMessage = t2 === void 0 ? true : t2;
38
37
  const { t } = useTranslation();
39
38
  const authClient = useAuthClient();
40
- const brandName = useAdminStore(selectBrandName);
41
39
  let t3;
42
40
  if ($[0] !== roles || $[1] !== t) {
43
41
  t3 = roles ?? [{
@@ -98,15 +96,8 @@ function InvitePage(t0) {
98
96
  $[12] = t6;
99
97
  } else t6 = $[12];
100
98
  let t7;
101
- if ($[13] !== brandName || $[14] !== logo) {
102
- t7 = logo ?? /* @__PURE__ */ jsx(AuthDefaultLogo, { brandName });
103
- $[13] = brandName;
104
- $[14] = logo;
105
- $[15] = t7;
106
- } else t7 = $[15];
107
- let t8;
108
- if ($[16] !== defaultRole || $[17] !== error || $[18] !== handleSubmit || $[19] !== resolvedRoles || $[20] !== showMessage || $[21] !== success) {
109
- t8 = /* @__PURE__ */ jsx(InviteForm, {
99
+ if ($[13] !== defaultRole || $[14] !== error || $[15] !== handleSubmit || $[16] !== resolvedRoles || $[17] !== showMessage || $[18] !== success) {
100
+ t7 = /* @__PURE__ */ jsx(InviteForm, {
110
101
  onSubmit: handleSubmit,
111
102
  roles: resolvedRoles,
112
103
  defaultRole,
@@ -114,30 +105,30 @@ function InvitePage(t0) {
114
105
  error,
115
106
  success
116
107
  });
117
- $[16] = defaultRole;
118
- $[17] = error;
119
- $[18] = handleSubmit;
120
- $[19] = resolvedRoles;
121
- $[20] = showMessage;
122
- $[21] = success;
123
- $[22] = t8;
124
- } else t8 = $[22];
125
- let t9;
126
- if ($[23] !== t5 || $[24] !== t6 || $[25] !== t7 || $[26] !== t8) {
127
- t9 = /* @__PURE__ */ jsx(AuthLayout, {
108
+ $[13] = defaultRole;
109
+ $[14] = error;
110
+ $[15] = handleSubmit;
111
+ $[16] = resolvedRoles;
112
+ $[17] = showMessage;
113
+ $[18] = success;
114
+ $[19] = t7;
115
+ } else t7 = $[19];
116
+ let t8;
117
+ if ($[20] !== logo || $[21] !== t5 || $[22] !== t6 || $[23] !== t7) {
118
+ t8 = /* @__PURE__ */ jsx(AuthLayout, {
128
119
  title: t5,
129
120
  description: t6,
130
- logo: t7,
121
+ logo,
131
122
  className: "qa-invite-page",
132
- children: t8
123
+ children: t7
133
124
  });
134
- $[23] = t5;
135
- $[24] = t6;
136
- $[25] = t7;
137
- $[26] = t8;
138
- $[27] = t9;
139
- } else t9 = $[27];
140
- return t9;
125
+ $[20] = logo;
126
+ $[21] = t5;
127
+ $[22] = t6;
128
+ $[23] = t7;
129
+ $[24] = t8;
130
+ } else t8 = $[24];
131
+ return t8;
141
132
  }
142
133
 
143
134
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { useTranslation } from "../../i18n/hooks.mjs";
2
- import { selectBasePath, selectBrandName, selectNavigate, useAdminStore } from "../../runtime/provider.mjs";
2
+ import { selectBasePath, selectNavigate, useAdminStore } from "../../runtime/provider.mjs";
3
3
  import { useAuthClient } from "../../hooks/use-auth.mjs";
4
- import { AuthDefaultLogo, AuthLayout } from "../auth/auth-layout.mjs";
4
+ import { AuthLayout } from "../auth/auth-layout.mjs";
5
5
  import { LoginForm } from "../auth/login-form.mjs";
6
6
  import { useSetupStatus } from "../../hooks/use-setup-status.mjs";
7
7
  import { c } from "react/compiler-runtime";
@@ -30,7 +30,7 @@ import { jsx } from "react/jsx-runtime";
30
30
  * ```
31
31
  */
32
32
  function LoginPage(t0) {
33
- const $ = c(40);
33
+ const $ = c(37);
34
34
  const { title, description, logo, redirectTo, forgotPasswordPath, signUpPath, showForgotPassword: t1, showSignUp: t2 } = t0;
35
35
  const showForgotPassword = t1 === void 0 ? true : t1;
36
36
  const showSignUp = t2 === void 0 ? false : t2;
@@ -38,7 +38,6 @@ function LoginPage(t0) {
38
38
  const authClient = useAuthClient();
39
39
  const navigate = useAdminStore(selectNavigate);
40
40
  const basePath = useAdminStore(selectBasePath);
41
- const brandName = useAdminStore(selectBrandName);
42
41
  const [error, setError] = React.useState(null);
43
42
  const { data: setupStatus, isLoading: isCheckingSetup } = useSetupStatus();
44
43
  let t3;
@@ -130,15 +129,8 @@ function LoginPage(t0) {
130
129
  $[24] = t9;
131
130
  } else t9 = $[24];
132
131
  let t10;
133
- if ($[25] !== brandName || $[26] !== logo) {
134
- t10 = logo ?? /* @__PURE__ */ jsx(AuthDefaultLogo, { brandName });
135
- $[25] = brandName;
136
- $[26] = logo;
137
- $[27] = t10;
138
- } else t10 = $[27];
139
- let t11;
140
- if ($[28] !== error || $[29] !== handleForgotPasswordClick || $[30] !== handleSignUpClick || $[31] !== handleSubmit || $[32] !== showForgotPassword || $[33] !== showSignUp) {
141
- t11 = /* @__PURE__ */ jsx(LoginForm, {
132
+ if ($[25] !== error || $[26] !== handleForgotPasswordClick || $[27] !== handleSignUpClick || $[28] !== handleSubmit || $[29] !== showForgotPassword || $[30] !== showSignUp) {
133
+ t10 = /* @__PURE__ */ jsx(LoginForm, {
142
134
  onSubmit: handleSubmit,
143
135
  onForgotPasswordClick: handleForgotPasswordClick,
144
136
  onSignUpClick: handleSignUpClick,
@@ -146,30 +138,30 @@ function LoginPage(t0) {
146
138
  showSignUp,
147
139
  error
148
140
  });
149
- $[28] = error;
150
- $[29] = handleForgotPasswordClick;
151
- $[30] = handleSignUpClick;
152
- $[31] = handleSubmit;
153
- $[32] = showForgotPassword;
154
- $[33] = showSignUp;
155
- $[34] = t11;
156
- } else t11 = $[34];
157
- let t12;
158
- if ($[35] !== t10 || $[36] !== t11 || $[37] !== t8 || $[38] !== t9) {
159
- t12 = /* @__PURE__ */ jsx(AuthLayout, {
141
+ $[25] = error;
142
+ $[26] = handleForgotPasswordClick;
143
+ $[27] = handleSignUpClick;
144
+ $[28] = handleSubmit;
145
+ $[29] = showForgotPassword;
146
+ $[30] = showSignUp;
147
+ $[31] = t10;
148
+ } else t10 = $[31];
149
+ let t11;
150
+ if ($[32] !== logo || $[33] !== t10 || $[34] !== t8 || $[35] !== t9) {
151
+ t11 = /* @__PURE__ */ jsx(AuthLayout, {
160
152
  title: t8,
161
153
  description: t9,
162
- logo: t10,
154
+ logo,
163
155
  className: "qa-login-page",
164
- children: t11
156
+ children: t10
165
157
  });
166
- $[35] = t10;
158
+ $[32] = logo;
159
+ $[33] = t10;
160
+ $[34] = t8;
161
+ $[35] = t9;
167
162
  $[36] = t11;
168
- $[37] = t8;
169
- $[38] = t9;
170
- $[39] = t12;
171
- } else t12 = $[39];
172
- return t12;
163
+ } else t11 = $[36];
164
+ return t11;
173
165
  }
174
166
 
175
167
  //#endregion