@archbase/security-ui 4.0.19 → 4.0.21

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.js CHANGED
@@ -1,14 +1,14 @@
1
- import { Modal as Fe, ScrollArea as Ie, Stack as oe, Grid as A, Group as $, Button as U, Paper as Y, Box as Je, Text as H, List as De, Checkbox as Ze, Tooltip as se, ActionIcon as B, Flex as te, Space as nr, Input as he, useTree as Qe, useMantineColorScheme as Be, TextInput as Ye, Tree as Xe, Badge as Se, Tabs as ie, RingProgress as Zr } from "@mantine/core";
2
- import { getI18nextInstance as t, ARCHBASE_IOC_API_TYPE as X, emit as Pe, builder as Te, convertDateToISOString as Qr, processErrorMessage as Ae, getKeyByEnumValue as le, useArchbaseTheme as ir, useArchbaseValidator as Yr, useArchbaseTranslation as Xr, useValidationErrors as Kr, processDetailErrorMessage as Ee } from "@archbase/core";
3
- import { ArchbaseEdit as ee, ArchbaseNotifications as Q, ArchbasePasswordEdit as _r, ArchbaseSelect as ea, ArchbaseCheckbox as pe, ArchbaseAvatarEdit as ra, ArchbaseAsyncSelect as aa, Columns as me, ArchbaseDataGridColumn as y, ArchbaseDataGrid as be, ArchbaseDialog as K } from "@archbase/components";
4
- import { useArchbaseV1V2Compatibility as ke, useArchbaseDataSourceListener as Ke, useArchbaseRemoteServiceApi as _, useArchbaseRemoteDataSource as Ne, ArchbaseDataSource as ta, useArchbaseStore as lr, useArchbaseRemoteDataSourceV2 as we, useArchbaseDataSource as oa } from "@archbase/data";
5
- import { useState as M, useCallback as ge, useEffect as Re, forwardRef as sa, useMemo as xe, useRef as je } from "react";
6
- import { IconArrowRight as cr, IconArrowLeft as dr, IconChevronDown as _e, IconBorderCornerSquare as er, IconEye as Le, IconEdit as fe, IconTrashX as ve, IconShieldCheckered as Ve, IconPlus as ze } from "@tabler/icons-react";
7
- import { UserGroupDto as rr, SecurityType as R, UserDto as na, GroupDto as ia, ProfileDto as la, ApiTokenDto as ca } from "@archbase/security";
8
- import { DateTimePicker as da } from "@mantine/dates";
9
- import { useFocusTrap as ua, useDebouncedValue as ar } from "@mantine/hooks";
10
- import { ArchbaseSpaceFixed as ha, ArchbaseSpaceFill as pa, ArchbaseSpaceBottom as xa } from "@archbase/layout";
11
- var Ue = { exports: {} }, Ce = {};
1
+ import { Modal as Re, ScrollArea as Fe, Stack as oe, Grid as A, Group as $, Button as U, Paper as Y, Box as He, Text as H, List as Ie, Checkbox as Je, Tooltip as se, ActionIcon as B, Flex as te, Space as sr, Input as he, useTree as Ze, useMantineColorScheme as Oe, TextInput as Qe, Tree as Ye, Badge as ve, Tabs as ie, RingProgress as Jr } from "@mantine/core";
2
+ import { getI18nextInstance as t, ARCHBASE_IOC_API_TYPE as X, emit as ze, builder as Ae, convertDateToISOString as Zr, processErrorMessage as Se, getKeyByEnumValue as le, useArchbaseTheme as nr, useArchbaseValidator as Qr, useArchbaseTranslation as Yr, useValidationErrors as Xr, processDetailErrorMessage as De } from "@archbase/core";
3
+ import { ArchbaseEdit as ee, ArchbaseNotifications as Q, ArchbasePasswordEdit as Kr, ArchbaseSelect as _r, ArchbaseCheckbox as pe, ArchbaseAvatarEdit as ea, ArchbaseAsyncSelect as ra, Columns as me, ArchbaseDataGridColumn as y, ArchbaseDataGrid as be, ArchbaseDialog as K } from "@archbase/components";
4
+ import { useArchbaseV1V2Compatibility as Te, useArchbaseDataSourceListener as Xe, useArchbaseRemoteServiceApi as _, useArchbaseRemoteDataSource as Me, ArchbaseDataSource as aa, useArchbaseStore as ir, useArchbaseRemoteDataSourceV2 as ye, useArchbaseDataSource as ta } from "@archbase/data";
5
+ import { useState as M, useCallback as ge, useEffect as ke, forwardRef as oa, useMemo as xe, useRef as je } from "react";
6
+ import { IconArrowRight as lr, IconArrowLeft as cr, IconChevronDown as Ke, IconBorderCornerSquare as _e, IconEye as $e, IconEdit as fe, IconTrashX as Ce, IconShieldCheckered as Le, IconPlus as Ee } from "@tabler/icons-react";
7
+ import { UserGroupDto as er, SecurityType as R, UserDto as sa, GroupDto as na, ProfileDto as ia, ApiTokenDto as la } from "@archbase/security";
8
+ import { DateTimePicker as ca } from "@mantine/dates";
9
+ import { useFocusTrap as da, useDebouncedValue as rr } from "@mantine/hooks";
10
+ import { ArchbaseSpaceFixed as ua, ArchbaseSpaceFill as ha, ArchbaseSpaceBottom as pa } from "@archbase/layout";
11
+ var Ve = { exports: {} }, we = {};
12
12
  /**
13
13
  * @license React
14
14
  * react-jsx-runtime.production.js
@@ -18,11 +18,11 @@ var Ue = { exports: {} }, Ce = {};
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
20
  */
21
- var tr;
22
- function fa() {
23
- if (tr)
24
- return Ce;
25
- tr = 1;
21
+ var ar;
22
+ function xa() {
23
+ if (ar)
24
+ return we;
25
+ ar = 1;
26
26
  var r = Symbol.for("react.transitional.element"), h = Symbol.for("react.fragment");
27
27
  function w(d, l, f) {
28
28
  var S = null;
@@ -40,14 +40,14 @@ function fa() {
40
40
  props: f
41
41
  };
42
42
  }
43
- return Ce.Fragment = h, Ce.jsx = w, Ce.jsxs = w, Ce;
43
+ return we.Fragment = h, we.jsx = w, we.jsxs = w, we;
44
44
  }
45
- var or;
46
- function ma() {
47
- return or || (or = 1, Ue.exports = fa()), Ue.exports;
45
+ var tr;
46
+ function fa() {
47
+ return tr || (tr = 1, Ve.exports = xa()), Ve.exports;
48
48
  }
49
- var e = ma();
50
- const ba = (r) => {
49
+ var e = fa();
50
+ const ma = (r) => {
51
51
  const h = { ...r.options ?? {} }, w = () => {
52
52
  r.onCustomSave ? r.onCustomSave(r.dataSource.getCurrentRecord(), (l) => {
53
53
  l && r.onAfterSave && r.onAfterSave(r.dataSource.getCurrentRecord()), r.onClickOk(r.dataSource.getCurrentRecord(), l);
@@ -56,14 +56,14 @@ const ba = (r) => {
56
56
  r.onClickCancel(r.dataSource.getCurrentRecord());
57
57
  };
58
58
  return /* @__PURE__ */ e.jsx(
59
- Fe,
59
+ Re,
60
60
  {
61
61
  opened: r.opened,
62
62
  onClose: d,
63
63
  title: t().t("archbase:Perfil"),
64
64
  size: "60%",
65
65
  styles: { content: { maxWidth: 1e3 } },
66
- children: /* @__PURE__ */ e.jsx(Ie, { style: { height: "460px" }, children: /* @__PURE__ */ e.jsxs(oe, { w: "98%", children: [
66
+ children: /* @__PURE__ */ e.jsx(Fe, { style: { height: "460px" }, children: /* @__PURE__ */ e.jsxs(oe, { w: "98%", children: [
67
67
  h?.customContentBefore && h.customContentBefore(r.dataSource.getCurrentRecord()),
68
68
  /* @__PURE__ */ e.jsxs(A, { children: [
69
69
  /* @__PURE__ */ e.jsx(A.Col, { span: { base: 12, md: 12, lg: 12 }, children: /* @__PURE__ */ e.jsx(
@@ -94,7 +94,7 @@ const ba = (r) => {
94
94
  }
95
95
  );
96
96
  };
97
- function ga({
97
+ function ba({
98
98
  availableItemsDS: r,
99
99
  assignedItemsDS: h,
100
100
  idFieldAvailable: w,
@@ -107,13 +107,13 @@ function ga({
107
107
  titleAvailable: x = "Disponíveis",
108
108
  titleAssigned: v = "Selecionados"
109
109
  }) {
110
- ke(
110
+ Te(
111
111
  "ArchbaseDualListSelector-Available",
112
112
  r,
113
113
  void 0,
114
114
  []
115
115
  );
116
- const i = ke(
116
+ const i = Te(
117
117
  "ArchbaseDualListSelector-Assigned",
118
118
  h,
119
119
  void 0,
@@ -121,13 +121,13 @@ function ga({
121
121
  ), [c, L] = M([]), [b, re] = M([]), [J, ae] = M([]), [Z, I] = M([]), N = ge(() => {
122
122
  r && L(r.browseRecords()), h && re(h.browseRecords());
123
123
  }, [r, h]);
124
- Ke({
124
+ Xe({
125
125
  dataSource: r,
126
126
  listener: () => N()
127
- }), Ke({
127
+ }), Xe({
128
128
  dataSource: h,
129
129
  listener: () => N()
130
- }), Re(() => {
130
+ }), ke(() => {
131
131
  N();
132
132
  }, [N]);
133
133
  const D = (p, g) => typeof g == "function" ? g(p) : p[g], q = (p, g) => typeof g == "function" ? g(p) : p[g], o = (p, g) => {
@@ -150,10 +150,10 @@ function ga({
150
150
  }), I([]);
151
151
  };
152
152
  return /* @__PURE__ */ e.jsxs(Y, { withBorder: !0, style: { display: "flex", width: u, height: P }, children: [
153
- /* @__PURE__ */ e.jsxs(Je, { style: { minWidth: "44%", minHeight: P }, children: [
153
+ /* @__PURE__ */ e.jsxs(He, { style: { minWidth: "44%", minHeight: P }, children: [
154
154
  /* @__PURE__ */ e.jsx(H, { children: x }),
155
155
  /* @__PURE__ */ e.jsx(
156
- De,
156
+ Ie,
157
157
  {
158
158
  spacing: "xs",
159
159
  size: "sm",
@@ -165,8 +165,8 @@ function ga({
165
165
  overflowX: "hidden",
166
166
  height: "calc(100% - 32px)"
167
167
  },
168
- children: c.map((p) => /* @__PURE__ */ e.jsx(De.Item, { children: /* @__PURE__ */ e.jsx(
169
- Ze,
168
+ children: c.map((p) => /* @__PURE__ */ e.jsx(Ie.Item, { children: /* @__PURE__ */ e.jsx(
169
+ Je,
170
170
  {
171
171
  label: q(p, d),
172
172
  checked: J.includes(D(p, w)),
@@ -180,13 +180,13 @@ function ga({
180
180
  )
181
181
  ] }),
182
182
  /* @__PURE__ */ e.jsxs(oe, { gap: 5, style: { minWidth: "10%" }, justify: "center", align: "center", children: [
183
- /* @__PURE__ */ e.jsx(se, { label: "Adicionar", children: /* @__PURE__ */ e.jsx(B, { onClick: F, disabled: !J.length, children: /* @__PURE__ */ e.jsx(cr, {}) }) }),
184
- /* @__PURE__ */ e.jsx(se, { label: "Remover", children: /* @__PURE__ */ e.jsx(B, { onClick: W, disabled: !Z.length, children: /* @__PURE__ */ e.jsx(dr, {}) }) })
183
+ /* @__PURE__ */ e.jsx(se, { label: "Adicionar", children: /* @__PURE__ */ e.jsx(B, { onClick: F, disabled: !J.length, children: /* @__PURE__ */ e.jsx(lr, {}) }) }),
184
+ /* @__PURE__ */ e.jsx(se, { label: "Remover", children: /* @__PURE__ */ e.jsx(B, { onClick: W, disabled: !Z.length, children: /* @__PURE__ */ e.jsx(cr, {}) }) })
185
185
  ] }),
186
- /* @__PURE__ */ e.jsxs(Je, { style: { minWidth: "44%", minHeight: P }, children: [
186
+ /* @__PURE__ */ e.jsxs(He, { style: { minWidth: "44%", minHeight: P }, children: [
187
187
  /* @__PURE__ */ e.jsx(H, { children: v }),
188
188
  /* @__PURE__ */ e.jsx(
189
- De,
189
+ Ie,
190
190
  {
191
191
  spacing: "xs",
192
192
  size: "sm",
@@ -198,8 +198,8 @@ function ga({
198
198
  overflowX: "hidden",
199
199
  height: "calc(100% - 32px)"
200
200
  },
201
- children: b.map((p) => /* @__PURE__ */ e.jsx(De.Item, { children: /* @__PURE__ */ e.jsx(
202
- Ze,
201
+ children: b.map((p) => /* @__PURE__ */ e.jsx(Ie.Item, { children: /* @__PURE__ */ e.jsx(
202
+ Je,
203
203
  {
204
204
  label: q(p, f),
205
205
  checked: Z.includes(D(p, l)),
@@ -211,12 +211,12 @@ function ga({
211
211
  ] })
212
212
  ] });
213
213
  }
214
- const ja = sa(
214
+ const ga = oa(
215
215
  ({ image: r, label: h, description: w, origin: d, ...l }, f) => /* @__PURE__ */ e.jsx("div", { ref: f, ...l, children: /* @__PURE__ */ e.jsxs(te, { children: [
216
216
  /* @__PURE__ */ e.jsx(H, { size: "sm", fw: 600, children: d ? d.name : "" }),
217
- /* @__PURE__ */ e.jsx(nr, { w: "lg" })
217
+ /* @__PURE__ */ e.jsx(sr, { w: "lg" })
218
218
  ] }) })
219
- ), ya = {
219
+ ), ja = {
220
220
  // Campos de identificação
221
221
  showNickname: !0,
222
222
  // Campos de perfil e grupos
@@ -236,8 +236,8 @@ const ja = sa(
236
236
  avatarMaxSizeKB: 2e3,
237
237
  avatarImageQuality: 1,
238
238
  allowEditEmail: !0
239
- }, wa = (r) => {
240
- const [h, w] = M(""), d = { ...ya, ...r.options ?? {} }, l = _(X.Group), { dataSource: f } = Ne({
239
+ }, ya = (r) => {
240
+ const [h, w] = M(""), d = { ...ja, ...r.options ?? {} }, l = _(X.Group), { dataSource: f } = Me({
241
241
  name: "dsGroups",
242
242
  service: l,
243
243
  pageSize: 9999,
@@ -248,7 +248,7 @@ const ja = sa(
248
248
  }
249
249
  });
250
250
  console.log("versão 12/05/2026");
251
- const S = _(X.Profile), { dataSource: u } = Ne({
251
+ const S = _(X.Profile), { dataSource: u } = Me({
252
252
  name: "dsProfiles",
253
253
  service: S,
254
254
  pageSize: 9999,
@@ -258,22 +258,22 @@ const ja = sa(
258
258
  Q.showError(t().t("archbase:WARNING"), i, c);
259
259
  }
260
260
  });
261
- Re(() => {
261
+ ke(() => {
262
262
  w("");
263
263
  }, [r.dataSource.getFieldValue("password")]);
264
264
  const P = async () => {
265
265
  if (r.dataSource.isInserting()) {
266
266
  if (d.userDefaultProfile) {
267
- const i = Pe(Te.eq("name", d.userDefaultProfile)), c = await S.findAllWithFilter(i, 0, 1);
267
+ const i = ze(Ae.eq("name", d.userDefaultProfile)), c = await S.findAllWithFilter(i, 0, 1);
268
268
  c && c.content.length > 0 && r.dataSource.setFieldValue("profile", c.content[0]);
269
269
  }
270
270
  if (d.userDefaultGroups) {
271
- const i = Pe(Te.in("name", d.userDefaultGroups)), c = await l.findAllWithFilter(i, 0, 500);
272
- c && c.content.length > 0 && r.dataSource.setFieldValue("groups", c.content.map((L) => rr.newInstance(L)));
271
+ const i = ze(Ae.in("name", d.userDefaultGroups)), c = await l.findAllWithFilter(i, 0, 500);
272
+ c && c.content.length > 0 && r.dataSource.setFieldValue("groups", c.content.map((L) => er.newInstance(L)));
273
273
  }
274
274
  }
275
275
  };
276
- Re(() => {
276
+ ke(() => {
277
277
  r.opened && P();
278
278
  }, [r.opened]);
279
279
  const x = () => {
@@ -289,7 +289,7 @@ const ja = sa(
289
289
  r.onClickCancel(r.dataSource.getCurrentRecord());
290
290
  };
291
291
  return /* @__PURE__ */ e.jsxs(
292
- Fe,
292
+ Re,
293
293
  {
294
294
  opened: r.opened,
295
295
  onClose: v,
@@ -297,7 +297,7 @@ const ja = sa(
297
297
  size: "80%",
298
298
  styles: { content: { maxWidth: 1e3 } },
299
299
  children: [
300
- /* @__PURE__ */ e.jsx(Ie, { style: { height: "500px" }, children: /* @__PURE__ */ e.jsxs(oe, { w: "98%", children: [
300
+ /* @__PURE__ */ e.jsx(Fe, { style: { height: "500px" }, children: /* @__PURE__ */ e.jsxs(oe, { w: "98%", children: [
301
301
  d?.customContentBefore && /* @__PURE__ */ e.jsx(e.Fragment, { children: d.customContentBefore(r.dataSource.getCurrentRecord()) }),
302
302
  /* @__PURE__ */ e.jsxs(A, { children: [
303
303
  /* @__PURE__ */ e.jsx(A.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsxs($, { children: [
@@ -348,7 +348,7 @@ const ja = sa(
348
348
  }
349
349
  ) }),
350
350
  /* @__PURE__ */ e.jsx(A.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsx(
351
- _r,
351
+ Kr,
352
352
  {
353
353
  label: `${t().t("archbase:Senha usuário")}`,
354
354
  dataSource: r.dataSource,
@@ -359,7 +359,7 @@ const ja = sa(
359
359
  ) })
360
360
  ] }),
361
361
  /* @__PURE__ */ e.jsx(A, { children: d.showProfile && /* @__PURE__ */ e.jsx(A.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsx(
362
- ea,
362
+ _r,
363
363
  {
364
364
  label: `${t().t("archbase:Perfil do usuário")}`,
365
365
  dataSource: r.dataSource,
@@ -367,7 +367,7 @@ const ja = sa(
367
367
  options: u,
368
368
  allowDeselect: !0,
369
369
  optionsLabelField: "nome",
370
- itemComponent: ja,
370
+ itemComponent: ga,
371
371
  getOptionLabel: (i) => i.name,
372
372
  getOptionValue: (i) => i.id
373
373
  }
@@ -427,7 +427,7 @@ const ja = sa(
427
427
  ) })
428
428
  ] }) }),
429
429
  /* @__PURE__ */ e.jsx(A.Col, { span: { base: 12, md: 4, lg: 4 }, children: /* @__PURE__ */ e.jsx(oe, { gap: "lg", children: /* @__PURE__ */ e.jsx(
430
- ra,
430
+ ea,
431
431
  {
432
432
  label: t().t("archbase:Foto do usuário"),
433
433
  dataSource: r.dataSource,
@@ -442,11 +442,11 @@ const ja = sa(
442
442
  d.showGroups && /* @__PURE__ */ e.jsxs(A, { children: [
443
443
  /* @__PURE__ */ e.jsx(A.Col, { span: { base: 12 }, children: /* @__PURE__ */ e.jsx(H, { fz: 14, fw: 500, children: "Grupos" }) }),
444
444
  /* @__PURE__ */ e.jsx(A.Col, { span: { base: 12 }, children: /* @__PURE__ */ e.jsx(
445
- ga,
445
+ ba,
446
446
  {
447
447
  titleAvailable: t().t("archbase:Disponíveis"),
448
448
  titleAssigned: t().t("archbase:Selecionados"),
449
- assignedItemsDS: new ta("dsDualList", {
449
+ assignedItemsDS: new aa("dsDualList", {
450
450
  records: r.dataSource.getFieldValue("groups"),
451
451
  grandTotalRecords: r.dataSource.getFieldValue("groups").length,
452
452
  currentPage: 0,
@@ -456,7 +456,7 @@ const ja = sa(
456
456
  width: "100%",
457
457
  height: "200px",
458
458
  availableItemsDS: f,
459
- handleCreateAssociationObject: (i) => rr.newInstance(i),
459
+ handleCreateAssociationObject: (i) => er.newInstance(i),
460
460
  idFieldAssigned: (i) => i && i.group ? i.group.id : "",
461
461
  idFieldAvailable: "id",
462
462
  labelFieldAssigned: (i) => i && i.group ? i.group.name : "",
@@ -465,7 +465,7 @@ const ja = sa(
465
465
  ) })
466
466
  ] }),
467
467
  d?.customContentAfter && /* @__PURE__ */ e.jsx(e.Fragment, { children: d.customContentAfter(r.dataSource.getCurrentRecord()) }),
468
- /* @__PURE__ */ e.jsx(nr, { h: "12px" })
468
+ /* @__PURE__ */ e.jsx(sr, { h: "12px" })
469
469
  ] }) }),
470
470
  /* @__PURE__ */ e.jsxs($, { justify: "flex-end", mt: "md", children: [
471
471
  /* @__PURE__ */ e.jsx(U, { variant: "default", onClick: v, children: t().t("archbase:Cancelar") }),
@@ -474,7 +474,7 @@ const ja = sa(
474
474
  ]
475
475
  }
476
476
  );
477
- }, Ca = (r) => {
477
+ }, wa = (r) => {
478
478
  const h = { ...r.options ?? {} }, w = () => {
479
479
  r.onCustomSave ? r.onCustomSave(r.dataSource.getCurrentRecord(), (l) => {
480
480
  l && r.onAfterSave && r.onAfterSave(r.dataSource.getCurrentRecord()), r.onClickOk(r.dataSource.getCurrentRecord(), l);
@@ -483,14 +483,14 @@ const ja = sa(
483
483
  r.onClickCancel(r.dataSource.getCurrentRecord());
484
484
  };
485
485
  return /* @__PURE__ */ e.jsx(
486
- Fe,
486
+ Re,
487
487
  {
488
488
  opened: r.opened,
489
489
  onClose: d,
490
490
  title: t().t("archbase:Grupo"),
491
491
  size: "60%",
492
492
  styles: { content: { maxWidth: 1e3 } },
493
- children: /* @__PURE__ */ e.jsx(Ie, { style: { height: "460px" }, children: /* @__PURE__ */ e.jsxs(oe, { w: "98%", children: [
493
+ children: /* @__PURE__ */ e.jsx(Fe, { style: { height: "460px" }, children: /* @__PURE__ */ e.jsxs(oe, { w: "98%", children: [
494
494
  h?.customContentBefore && h.customContentBefore(r.dataSource.getCurrentRecord()),
495
495
  /* @__PURE__ */ e.jsxs(A, { children: [
496
496
  /* @__PURE__ */ e.jsx(A.Col, { span: { base: 12 }, children: /* @__PURE__ */ e.jsx(
@@ -520,15 +520,15 @@ const ja = sa(
520
520
  ] }) })
521
521
  }
522
522
  );
523
- }, va = ({ image: r, label: h, description: w, ...d }) => /* @__PURE__ */ e.jsx("div", { ...d, children: /* @__PURE__ */ e.jsxs($, { grow: !0, children: [
523
+ }, Ca = ({ image: r, label: h, description: w, ...d }) => /* @__PURE__ */ e.jsx("div", { ...d, children: /* @__PURE__ */ e.jsxs($, { grow: !0, children: [
524
524
  /* @__PURE__ */ e.jsx("img", { style: { maxWidth: "32px" }, src: r }),
525
525
  /* @__PURE__ */ e.jsxs("div", { children: [
526
526
  /* @__PURE__ */ e.jsx(H, { size: "sm", children: h }),
527
527
  /* @__PURE__ */ e.jsx(H, { size: "xs", opacity: 0.65, children: w })
528
528
  ] })
529
- ] }) }), Sa = (r) => {
530
- ua();
531
- const [h, w] = M(), d = _(X.User), l = ke(
529
+ ] }) }), va = (r) => {
530
+ da();
531
+ const [h, w] = M(), d = _(X.User), l = Te(
532
532
  "ApiTokenModal",
533
533
  r.dataSource,
534
534
  "expirationDate",
@@ -537,20 +537,20 @@ const ja = sa(
537
537
  if (!x)
538
538
  l.handleValueChange(void 0);
539
539
  else {
540
- const v = typeof x == "string" ? new Date(x) : x, i = Qr(v);
540
+ const v = typeof x == "string" ? new Date(x) : x, i = Zr(v);
541
541
  l.handleValueChange(i);
542
542
  }
543
543
  w(x);
544
544
  }, S = async (x, v) => new Promise(async (i, c) => {
545
545
  try {
546
- const L = Pe(Te.or(Te.eq("name", `^*${v.trim()}*`))), b = await d.findAllWithFilter(L, x, 20);
546
+ const L = ze(Ae.or(Ae.eq("name", `^*${v.trim()}*`))), b = await d.findAllWithFilter(L, x, 20);
547
547
  i({
548
548
  options: b.content,
549
549
  page: b.pageable.pageNumber,
550
550
  totalPages: b.totalPages
551
551
  });
552
552
  } catch (L) {
553
- c(Ae(L));
553
+ c(Se(L));
554
554
  }
555
555
  }), u = () => {
556
556
  r.onCustomSave ? r.onCustomSave(r.dataSource.current, (x) => {
@@ -560,14 +560,14 @@ const ja = sa(
560
560
  r.onClickCancel(r.dataSource.current);
561
561
  };
562
562
  return /* @__PURE__ */ e.jsxs(
563
- Fe,
563
+ Re,
564
564
  {
565
565
  opened: r.opened,
566
566
  onClose: P,
567
567
  title: t().t("archbase:Token de API"),
568
568
  size: "50%",
569
569
  children: [
570
- /* @__PURE__ */ e.jsxs(Ie, { style: { height: "300px" }, children: [
570
+ /* @__PURE__ */ e.jsxs(Fe, { style: { height: "300px" }, children: [
571
571
  /* @__PURE__ */ e.jsx(
572
572
  ee,
573
573
  {
@@ -587,7 +587,7 @@ const ja = sa(
587
587
  }
588
588
  ),
589
589
  /* @__PURE__ */ e.jsx(
590
- da,
590
+ ca,
591
591
  {
592
592
  withSeconds: !0,
593
593
  value: h,
@@ -597,7 +597,7 @@ const ja = sa(
597
597
  }
598
598
  ),
599
599
  /* @__PURE__ */ e.jsx(
600
- aa,
600
+ ra,
601
601
  {
602
602
  label: `${t().t("archbase:Usuário")}`,
603
603
  dataSource: r.dataSource,
@@ -608,7 +608,7 @@ const ja = sa(
608
608
  getOptions: S,
609
609
  debounceTime: 500,
610
610
  minCharsToSearch: 1,
611
- itemComponent: va
611
+ itemComponent: Ca
612
612
  }
613
613
  )
614
614
  ] }),
@@ -619,12 +619,12 @@ const ja = sa(
619
619
  ]
620
620
  }
621
621
  );
622
- }, sr = (r) => {
622
+ }, or = (r) => {
623
623
  const h = "->";
624
624
  return r.includes(h) ? r.split(h).map((l) => l.trim()).map((l) => t().t(l)).join(` ${h} `) : t().t(r);
625
625
  };
626
- function Me({ dataSource: r, opened: h, close: w }) {
627
- const d = xe(() => r?.getFieldValue("name") || "", [r]), l = xe(() => r?.getFieldValue("id") || "", [r]), f = xe(() => r?.getFieldValue("type") || "", [r]), S = Qe(), u = Qe(), [P, x] = M([]), [v, i] = M([]), [c, L] = M(), [b, re] = M(), [J, ae] = M(""), [Z] = ar(J, 200), [I, N] = M(""), [D] = ar(I, 200), q = _(X.Resource), { colorScheme: o } = Be(), F = o === "dark" ? "var(--mantine-primary-color-7)" : "var(--mantine-primary-color-4)", W = xe(() => v.sort((s, n) => s.resourceDescription.localeCompare(n.resourceDescription)).map((s) => ({
626
+ function Ue({ dataSource: r, opened: h, close: w }) {
627
+ const d = xe(() => r?.getFieldValue("name") || "", [r]), l = xe(() => r?.getFieldValue("id") || "", [r]), f = xe(() => r?.getFieldValue("type") || "", [r]), S = Ze(), u = Ze(), [P, x] = M([]), [v, i] = M([]), [c, L] = M(), [b, re] = M(), [J, ae] = M(""), [Z] = rr(J, 200), [I, N] = M(""), [D] = rr(I, 200), q = _(X.Resource), { colorScheme: o } = Oe(), F = o === "dark" ? "var(--mantine-primary-color-7)" : "var(--mantine-primary-color-4)", W = xe(() => v.sort((s, n) => s.resourceDescription.localeCompare(n.resourceDescription)).map((s) => ({
628
628
  value: s.resourceId,
629
629
  label: s.resourceDescription,
630
630
  children: s.permissions.filter((n) => n.actionDescription.toLowerCase().includes(D.toLowerCase())).sort((n, G) => n.actionDescription.localeCompare(G.actionDescription)).map((n) => ({
@@ -725,15 +725,15 @@ function Me({ dataSource: r, opened: h, close: w }) {
725
725
  G?.value && u.select(G.value), re(G);
726
726
  });
727
727
  }, [b, q, f, W, v, u]);
728
- return Re(() => {
728
+ return ke(() => {
729
729
  h && r && (L(void 0), re(void 0), ae(""), N(""), u.collapseAllNodes(), S.collapseAllNodes(), m());
730
- }, [h, f, l, m]), r ? /* @__PURE__ */ e.jsx(Fe, { opened: h, onClose: w, title: `${t().t(`archbase:${f}`)}: ${d}`, size: "80%", styles: { root: { overflow: "hidden" } }, children: /* @__PURE__ */ e.jsxs(ha, { height: "540px", children: [
731
- /* @__PURE__ */ e.jsx(pa, { children: /* @__PURE__ */ e.jsx(Ie, { h: "500px", children: /* @__PURE__ */ e.jsx(Y, { withBorder: !0, my: 20, p: 20, children: /* @__PURE__ */ e.jsxs(A, { columns: 20, children: [
730
+ }, [h, f, l, m]), r ? /* @__PURE__ */ e.jsx(Re, { opened: h, onClose: w, title: `${t().t(`archbase:${f}`)}: ${d}`, size: "80%", styles: { root: { overflow: "hidden" } }, children: /* @__PURE__ */ e.jsxs(ua, { height: "540px", children: [
731
+ /* @__PURE__ */ e.jsx(ha, { children: /* @__PURE__ */ e.jsx(Fe, { h: "500px", children: /* @__PURE__ */ e.jsx(Y, { withBorder: !0, my: 20, p: 20, children: /* @__PURE__ */ e.jsxs(A, { columns: 20, children: [
732
732
  /* @__PURE__ */ e.jsxs(A.Col, { span: 9, children: [
733
733
  /* @__PURE__ */ e.jsxs($, { mb: 20, children: [
734
734
  /* @__PURE__ */ e.jsx(H, { children: t().t("archbase:Available") }),
735
735
  /* @__PURE__ */ e.jsx(
736
- Ye,
736
+ Qe,
737
737
  {
738
738
  size: "xs",
739
739
  value: J,
@@ -743,15 +743,15 @@ function Me({ dataSource: r, opened: h, close: w }) {
743
743
  )
744
744
  ] }),
745
745
  /* @__PURE__ */ e.jsx(
746
- Xe,
746
+ Ye,
747
747
  {
748
748
  data: g,
749
749
  selectOnClick: !0,
750
750
  allowRangeSelection: !1,
751
751
  tree: S,
752
752
  renderNode: ({ level: s, node: n, expanded: G, hasChildren: C, selected: E, elementProps: T }) => {
753
- const j = n?.nodeProps?.granted, k = j ? "dimmed" : void 0, de = j ? "line-through" : void 0, V = ge((Ge) => {
754
- L(n), T.onClick(Ge);
753
+ const j = n?.nodeProps?.granted, k = j ? "dimmed" : void 0, de = j ? "line-through" : void 0, V = ge((Pe) => {
754
+ L(n), T.onClick(Pe);
755
755
  }, [n, T.onClick]);
756
756
  return /* @__PURE__ */ e.jsxs(
757
757
  $,
@@ -763,14 +763,14 @@ function Me({ dataSource: r, opened: h, close: w }) {
763
763
  onClick: V,
764
764
  children: [
765
765
  C && /* @__PURE__ */ e.jsx(
766
- _e,
766
+ Ke,
767
767
  {
768
768
  size: 18,
769
769
  style: { transform: G ? "rotate(0deg)" : "rotate(-90deg)" }
770
770
  }
771
771
  ),
772
772
  !C && /* @__PURE__ */ e.jsx(
773
- er,
773
+ _e,
774
774
  {
775
775
  size: 12,
776
776
  style: { transform: "rotate(-90deg)", marginTop: "-5px" }
@@ -781,7 +781,7 @@ function Me({ dataSource: r, opened: h, close: w }) {
781
781
  {
782
782
  c: k,
783
783
  td: de,
784
- children: sr(n.label)
784
+ children: or(n.label)
785
785
  }
786
786
  )
787
787
  ]
@@ -792,14 +792,14 @@ function Me({ dataSource: r, opened: h, close: w }) {
792
792
  )
793
793
  ] }),
794
794
  /* @__PURE__ */ e.jsx(A.Col, { span: 2, children: /* @__PURE__ */ e.jsxs(oe, { gap: 5, style: { minWidth: "10%" }, justify: "center", align: "center", h: "100%", children: [
795
- /* @__PURE__ */ e.jsx(se, { label: t().t("archbase:Add"), children: /* @__PURE__ */ e.jsx(B, { onClick: ce, disabled: !c || c?.nodeProps?.granted || !c.nodeProps, children: /* @__PURE__ */ e.jsx(cr, {}) }) }),
796
- /* @__PURE__ */ e.jsx(se, { label: t().t("archbase:Remove"), children: /* @__PURE__ */ e.jsx(B, { onClick: ne, disabled: !b || !b?.nodeProps?.permissionId || !b.nodeProps, children: /* @__PURE__ */ e.jsx(dr, {}) }) })
795
+ /* @__PURE__ */ e.jsx(se, { label: t().t("archbase:Add"), children: /* @__PURE__ */ e.jsx(B, { onClick: ce, disabled: !c || c?.nodeProps?.granted || !c.nodeProps, children: /* @__PURE__ */ e.jsx(lr, {}) }) }),
796
+ /* @__PURE__ */ e.jsx(se, { label: t().t("archbase:Remove"), children: /* @__PURE__ */ e.jsx(B, { onClick: ne, disabled: !b || !b?.nodeProps?.permissionId || !b.nodeProps, children: /* @__PURE__ */ e.jsx(cr, {}) }) })
797
797
  ] }) }),
798
798
  /* @__PURE__ */ e.jsxs(A.Col, { span: 9, children: [
799
799
  /* @__PURE__ */ e.jsxs($, { mb: 20, children: [
800
800
  /* @__PURE__ */ e.jsx(H, { children: t().t("archbase:Granted") }),
801
801
  /* @__PURE__ */ e.jsx(
802
- Ye,
802
+ Qe,
803
803
  {
804
804
  size: "xs",
805
805
  value: I,
@@ -809,7 +809,7 @@ function Me({ dataSource: r, opened: h, close: w }) {
809
809
  )
810
810
  ] }),
811
811
  /* @__PURE__ */ e.jsx(
812
- Xe,
812
+ Ye,
813
813
  {
814
814
  data: W,
815
815
  selectOnClick: !0,
@@ -829,23 +829,23 @@ function Me({ dataSource: r, opened: h, close: w }) {
829
829
  onClick: j,
830
830
  children: [
831
831
  C && /* @__PURE__ */ e.jsx(
832
- _e,
832
+ Ke,
833
833
  {
834
834
  size: 18,
835
835
  style: { transform: G ? "rotate(0deg)" : "rotate(-90deg)" }
836
836
  }
837
837
  ),
838
838
  !C && /* @__PURE__ */ e.jsx(
839
- er,
839
+ _e,
840
840
  {
841
841
  size: 12,
842
842
  style: { transform: "rotate(-90deg)", marginTop: "-5px" }
843
843
  }
844
844
  ),
845
- /* @__PURE__ */ e.jsx(H, { children: sr(n.label) }),
846
- n?.nodeProps?.types?.includes("USER") && /* @__PURE__ */ e.jsx(Se, { color: "blue", children: t().t("archbase:user") }),
847
- n?.nodeProps?.types?.includes("GROUP") && /* @__PURE__ */ e.jsx(Se, { color: "orange", children: t().t("archbase:group") }),
848
- n?.nodeProps?.types?.includes("PROFILE") && /* @__PURE__ */ e.jsx(Se, { color: "pink", children: t().t("archbase:profile") })
845
+ /* @__PURE__ */ e.jsx(H, { children: or(n.label) }),
846
+ n?.nodeProps?.types?.includes("USER") && /* @__PURE__ */ e.jsx(ve, { color: "blue", children: t().t("archbase:user") }),
847
+ n?.nodeProps?.types?.includes("GROUP") && /* @__PURE__ */ e.jsx(ve, { color: "orange", children: t().t("archbase:group") }),
848
+ n?.nodeProps?.types?.includes("PROFILE") && /* @__PURE__ */ e.jsx(ve, { color: "pink", children: t().t("archbase:profile") })
849
849
  ]
850
850
  }
851
851
  );
@@ -854,11 +854,11 @@ function Me({ dataSource: r, opened: h, close: w }) {
854
854
  )
855
855
  ] })
856
856
  ] }) }) }) }),
857
- /* @__PURE__ */ e.jsx(xa, { size: "40px", children: /* @__PURE__ */ e.jsx($, { justify: "flex-end", children: /* @__PURE__ */ e.jsx(U, { onClick: w, children: t().t("archbase:Close") }) }) })
857
+ /* @__PURE__ */ e.jsx(pa, { size: "40px", children: /* @__PURE__ */ e.jsx($, { justify: "flex-end", children: /* @__PURE__ */ e.jsx(U, { onClick: w, children: t().t("archbase:Close") }) }) })
858
858
  ] }) }) : null;
859
859
  }
860
- const Oe = "data:image/png;base64,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", Aa = (r) => r.groups ? /* @__PURE__ */ e.jsx("div", { style: { display: "flex" }, children: r.groups ? r.groups.map((h, w) => /* @__PURE__ */ e.jsx("div", { style: { paddingRight: "2px" }, children: /* @__PURE__ */ e.jsx(Se, { color: "blue", children: h.group?.name }) }, w)) : null }) : null, Ta = (r) => r.profile ? /* @__PURE__ */ e.jsx(Se, { color: "green", children: r.profile?.name }) : null;
861
- function La({
860
+ const Ne = "data:image/png;base64,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", Sa = (r) => r.groups ? /* @__PURE__ */ e.jsx("div", { style: { display: "flex" }, children: r.groups ? r.groups.map((h, w) => /* @__PURE__ */ e.jsx("div", { style: { paddingRight: "2px" }, children: /* @__PURE__ */ e.jsx(ve, { color: "blue", children: h.group?.name }) }, w)) : null }) : null, Aa = (r) => r.profile ? /* @__PURE__ */ e.jsx(ve, { color: "green", children: r.profile?.name }) : null;
861
+ function $a({
862
862
  height: r = "400px",
863
863
  width: h = "100%",
864
864
  createEntitiesWithId: w = !0,
@@ -867,13 +867,13 @@ function La({
867
867
  groupModalOptions: f,
868
868
  options: S
869
869
  }) {
870
- const u = ir();
871
- lr("securityStore");
872
- const P = Yr(), { colorScheme: x } = Be(), [v, i] = M(void 0), [c, L] = M("users"), b = _(X.User), re = _(X.Group), J = _(X.Resource), ae = _(X.Profile), [Z, I] = M(""), [N, D] = M(""), q = _(X.AccessToken), { t: o } = Xr(), F = je(null), W = je(null), p = je(null), g = je(null), m = je(null), ce = (a) => a.id, ne = (a) => a.id, s = (a) => a.id, n = (a) => a.id, G = (a) => a.id, {
870
+ const u = nr();
871
+ ir("securityStore");
872
+ const P = Qr(), { colorScheme: x } = Oe(), [v, i] = M(void 0), [c, L] = M("users"), b = _(X.User), re = _(X.Group), J = _(X.Resource), ae = _(X.Profile), [Z, I] = M(""), [N, D] = M(""), q = _(X.AccessToken), { t: o } = Yr(), F = je(null), W = je(null), p = je(null), g = je(null), m = je(null), ce = (a) => a.id, ne = (a) => a.id, s = (a) => a.id, n = (a) => a.id, G = (a) => a.id, {
873
873
  dataSource: C,
874
874
  isLoading: E,
875
875
  refreshData: T
876
- } = we({
876
+ } = ye({
877
877
  name: "accessTokenApi",
878
878
  service: q,
879
879
  validator: P,
@@ -886,7 +886,7 @@ function La({
886
886
  dataSource: j,
887
887
  isLoading: k,
888
888
  refreshData: de
889
- } = we({
889
+ } = ye({
890
890
  name: "dsUsers",
891
891
  service: b,
892
892
  validator: P,
@@ -896,9 +896,9 @@ function La({
896
896
  }
897
897
  }), {
898
898
  dataSource: V,
899
- isLoading: Ge,
900
- refreshData: ur
901
- } = we({
899
+ isLoading: Pe,
900
+ refreshData: dr
901
+ } = ye({
902
902
  name: "dsGroups",
903
903
  service: re,
904
904
  validator: P,
@@ -908,9 +908,9 @@ function La({
908
908
  }
909
909
  }), {
910
910
  dataSource: O,
911
- isLoading: hr,
912
- refreshData: pr
913
- } = we({
911
+ isLoading: ur,
912
+ refreshData: hr
913
+ } = ye({
914
914
  name: "dsProfile",
915
915
  service: ae,
916
916
  validator: P,
@@ -919,10 +919,10 @@ function La({
919
919
  i(a), Q.showError(`${o("archbase:WARNING")}`, a, z);
920
920
  }
921
921
  }), {
922
- dataSource: xr,
923
- isLoading: fr,
924
- refreshData: mr
925
- } = we({
922
+ dataSource: pr,
923
+ isLoading: xr,
924
+ refreshData: fr
925
+ } = ye({
926
926
  name: "dsResources",
927
927
  service: J,
928
928
  validator: P,
@@ -931,10 +931,10 @@ function La({
931
931
  i(a), Q.showError(`${o("archbase:WARNING")}`, a, z);
932
932
  }
933
933
  });
934
- Re(() => {
935
- T({ filter: Pe(Te.eq("revoked", "false")) }), de(), ur(), pr(), mr();
934
+ ke(() => {
935
+ T({ filter: ze(Ae.eq("revoked", "false")) }), de(), dr(), hr(), fr();
936
936
  }, []);
937
- const ye = `calc(${r} - 40px)`, br = /* @__PURE__ */ e.jsxs(me, { children: [
937
+ const mr = /* @__PURE__ */ e.jsxs(me, { children: [
938
938
  /* @__PURE__ */ e.jsx(
939
939
  y,
940
940
  {
@@ -946,7 +946,7 @@ function La({
946
946
  "img",
947
947
  {
948
948
  style: { borderRadius: 50, height: "32px", maxHeight: "32px" },
949
- src: a.row.user && a.row.user.avatar ? atob(a.row.user.avatar) : Oe
949
+ src: a.row.user && a.row.user.avatar ? atob(a.row.user.avatar) : Ne
950
950
  }
951
951
  ),
952
952
  inputFilterType: "text",
@@ -1012,7 +1012,7 @@ function La({
1012
1012
  inputFilterType: "text"
1013
1013
  }
1014
1014
  )
1015
- ] }), gr = /* @__PURE__ */ e.jsxs(me, { children: [
1015
+ ] }), br = /* @__PURE__ */ e.jsxs(me, { children: [
1016
1016
  /* @__PURE__ */ e.jsx(
1017
1017
  y,
1018
1018
  {
@@ -1024,7 +1024,7 @@ function La({
1024
1024
  "img",
1025
1025
  {
1026
1026
  style: { borderRadius: 50, height: "32px", maxHeight: "32px" },
1027
- src: a.row.avatar ? atob(a.row.avatar) : Oe
1027
+ src: a.row.avatar ? atob(a.row.avatar) : Ne
1028
1028
  }
1029
1029
  ),
1030
1030
  enableSorting: !1,
@@ -1080,7 +1080,7 @@ function La({
1080
1080
  dataType: "text",
1081
1081
  header: `${o("archbase:Perfil")}`,
1082
1082
  size: 200,
1083
- render: (a) => Ta(a.row),
1083
+ render: (a) => Aa(a.row),
1084
1084
  inputFilterType: "text"
1085
1085
  }
1086
1086
  ),
@@ -1091,7 +1091,7 @@ function La({
1091
1091
  dataType: "text",
1092
1092
  size: 300,
1093
1093
  header: `${o("archbase:Grupos")}`,
1094
- render: (a) => Aa(a.row),
1094
+ render: (a) => Sa(a.row),
1095
1095
  enableSorting: !1,
1096
1096
  enableColumnFilter: !1,
1097
1097
  enableGlobalFilter: !1
@@ -1166,7 +1166,7 @@ function La({
1166
1166
  size: 140
1167
1167
  }
1168
1168
  )
1169
- ] }), jr = /* @__PURE__ */ e.jsxs(me, { children: [
1169
+ ] }), gr = /* @__PURE__ */ e.jsxs(me, { children: [
1170
1170
  /* @__PURE__ */ e.jsx(
1171
1171
  y,
1172
1172
  {
@@ -1187,7 +1187,7 @@ function La({
1187
1187
  inputFilterType: "text"
1188
1188
  }
1189
1189
  )
1190
- ] }), yr = /* @__PURE__ */ e.jsxs(me, { children: [
1190
+ ] }), jr = /* @__PURE__ */ e.jsxs(me, { children: [
1191
1191
  /* @__PURE__ */ e.jsx(
1192
1192
  y,
1193
1193
  {
@@ -1208,7 +1208,7 @@ function La({
1208
1208
  inputFilterType: "text"
1209
1209
  }
1210
1210
  )
1211
- ] }), wr = /* @__PURE__ */ e.jsxs(me, { children: [
1211
+ ] }), yr = /* @__PURE__ */ e.jsxs(me, { children: [
1212
1212
  /* @__PURE__ */ e.jsx(
1213
1213
  y,
1214
1214
  {
@@ -1229,12 +1229,12 @@ function La({
1229
1229
  inputFilterType: "text"
1230
1230
  }
1231
1231
  )
1232
- ] }), Cr = () => {
1233
- const a = na.newInstance();
1232
+ ] }), wr = () => {
1233
+ const a = sa.newInstance();
1234
1234
  w || (a.id = void 0), j.insert(a), I(R.USER);
1235
- }, vr = (a) => {
1235
+ }, Cr = (a) => {
1236
1236
  j.isEmpty() || j.gotoRecordByData(a) && (j.edit(), I(R.USER));
1237
- }, Sr = (a) => {
1237
+ }, vr = (a) => {
1238
1238
  j.isEmpty() || j.gotoRecordByData(a) && K.showConfirmDialogYesNo(
1239
1239
  `${o("archbase:Confirme")}`,
1240
1240
  `${o("archbase:Deseja remover o usuário ")}${a.name} ?`,
@@ -1244,21 +1244,21 @@ function La({
1244
1244
  () => {
1245
1245
  }
1246
1246
  );
1247
- }, Ar = (a) => {
1247
+ }, Sr = (a) => {
1248
1248
  j.isEmpty() || j.gotoRecordByData(a) && I(R.USER);
1249
- }, Tr = (a) => /* @__PURE__ */ e.jsxs($, { gap: 1, wrap: "nowrap", children: [
1249
+ }, Ar = (a) => /* @__PURE__ */ e.jsxs($, { gap: 1, wrap: "nowrap", children: [
1250
1250
  S?.beforeDefaultUserActions?.(a),
1251
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Ar(a), children: /* @__PURE__ */ e.jsx(Le, { size: 20, color: x === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
1252
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => vr(a), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: x === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
1253
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Sr(a), children: /* @__PURE__ */ e.jsx(ve, { size: 20, color: x === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
1254
- /* @__PURE__ */ e.jsx(se, { withinPortal: !0, withArrow: !0, position: "left", label: `${o("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: We, children: /* @__PURE__ */ e.jsx(Ve, { size: 20, color: x === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) }),
1251
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Sr(a), children: /* @__PURE__ */ e.jsx($e, { size: 20, color: x === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
1252
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Cr(a), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: x === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
1253
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => vr(a), children: /* @__PURE__ */ e.jsx(Ce, { size: 20, color: x === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
1254
+ /* @__PURE__ */ e.jsx(se, { withinPortal: !0, withArrow: !0, position: "left", label: `${o("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: Be, children: /* @__PURE__ */ e.jsx(Le, { size: 20, color: x === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) }),
1255
1255
  S?.afterDefaultUserActions?.(a)
1256
- ] }), kr = () => {
1257
- const a = ia.newInstance();
1256
+ ] }), Tr = () => {
1257
+ const a = na.newInstance();
1258
1258
  w || (a.id = void 0), V.insert(a), I(R.GROUP);
1259
- }, Rr = (a) => {
1259
+ }, kr = (a) => {
1260
1260
  V.isEmpty() || V.gotoRecordByData(a) && (V.isEditing() || V.edit(), I(R.GROUP));
1261
- }, Fr = (a) => {
1261
+ }, Rr = (a) => {
1262
1262
  V.isEmpty() || V.gotoRecordByData(a) && K.showConfirmDialogYesNo(
1263
1263
  `${o("archbase:Confirme")}`,
1264
1264
  `${o("archbase:Deseja remover o grupo ")}${a.name} ?`,
@@ -1268,48 +1268,48 @@ function La({
1268
1268
  () => {
1269
1269
  }
1270
1270
  );
1271
- }, Ir = (a) => {
1271
+ }, Fr = (a) => {
1272
1272
  V.isEmpty() || V.gotoRecordByData(a) && I(R.GROUP);
1273
- }, Dr = (a) => /* @__PURE__ */ e.jsxs($, { gap: 1, wrap: "nowrap", children: [
1273
+ }, Ir = (a) => /* @__PURE__ */ e.jsxs($, { gap: 1, wrap: "nowrap", children: [
1274
1274
  S?.beforeDefaultGroupActions?.(a),
1275
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Ir(a), children: /* @__PURE__ */ e.jsx(Le, { size: 20, color: x === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
1276
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Rr(a), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: x === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
1277
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Fr(a), children: /* @__PURE__ */ e.jsx(ve, { size: 20, color: x === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
1278
- /* @__PURE__ */ e.jsx(se, { withinPortal: !0, withArrow: !0, position: "left", label: `${o("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: qe, children: /* @__PURE__ */ e.jsx(Ve, { size: 20, color: x === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) }),
1275
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Fr(a), children: /* @__PURE__ */ e.jsx($e, { size: 20, color: x === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
1276
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => kr(a), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: x === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
1277
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Rr(a), children: /* @__PURE__ */ e.jsx(Ce, { size: 20, color: x === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
1278
+ /* @__PURE__ */ e.jsx(se, { withinPortal: !0, withArrow: !0, position: "left", label: `${o("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: We, children: /* @__PURE__ */ e.jsx(Le, { size: 20, color: x === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) }),
1279
1279
  S?.afterDefaultGroupActions?.(a)
1280
- ] }), ue = Kr(), Er = async () => {
1280
+ ] }), ue = Xr(), Dr = async () => {
1281
1281
  try {
1282
1282
  await j.save();
1283
1283
  } catch {
1284
1284
  return;
1285
1285
  }
1286
1286
  I(""), ue?.clearAll();
1287
- }, zr = () => {
1287
+ }, Er = () => {
1288
1288
  I(""), j.isBrowsing() || j.cancel(), ue?.clearAll();
1289
- }, Pr = async () => {
1289
+ }, zr = async () => {
1290
1290
  try {
1291
1291
  await V.save();
1292
1292
  } catch {
1293
1293
  return;
1294
1294
  }
1295
1295
  I(""), ue?.clearAll();
1296
- }, Gr = () => {
1296
+ }, Pr = () => {
1297
1297
  I(""), V.isBrowsing() || V.cancel(), ue?.clearAll();
1298
- }, $r = async () => {
1298
+ }, Gr = async () => {
1299
1299
  try {
1300
1300
  await O.save();
1301
1301
  } catch {
1302
1302
  return;
1303
1303
  }
1304
1304
  I(""), ue?.clearAll();
1305
- }, Lr = () => {
1305
+ }, $r = () => {
1306
1306
  I(""), O.isBrowsing() || O.cancel(), ue?.clearAll();
1307
- }, Vr = () => {
1308
- const a = la.newInstance();
1307
+ }, Lr = () => {
1308
+ const a = ia.newInstance();
1309
1309
  w || (a.id = void 0), O.insert(a), I(R.PROFILE);
1310
- }, Ur = (a) => {
1310
+ }, Vr = (a) => {
1311
1311
  O.isEmpty() || O.gotoRecordByData(a) && (O.isEditing() || O.edit(), I(R.PROFILE));
1312
- }, Mr = (a) => {
1312
+ }, Ur = (a) => {
1313
1313
  O.isEmpty() || O.gotoRecordByData(a) && K.showConfirmDialogYesNo(
1314
1314
  `${o("archbase:Confirme")}`,
1315
1315
  `${o("archbase:Deseja remover o perfil ")}${a.name} ?`,
@@ -1319,16 +1319,16 @@ function La({
1319
1319
  () => {
1320
1320
  }
1321
1321
  );
1322
- }, Nr = (a) => {
1322
+ }, Mr = (a) => {
1323
1323
  O.isEmpty() || O.gotoRecordByData(a) && I(R.PROFILE);
1324
- }, Or = (a) => /* @__PURE__ */ e.jsxs($, { gap: 1, wrap: "nowrap", children: [
1324
+ }, Nr = (a) => /* @__PURE__ */ e.jsxs($, { gap: 1, wrap: "nowrap", children: [
1325
1325
  S?.beforeDefaultProfileActions?.(a),
1326
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Nr(a), children: /* @__PURE__ */ e.jsx(Le, { size: 20, color: x === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
1327
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Ur(a), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: x === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
1328
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Mr(a), children: /* @__PURE__ */ e.jsx(ve, { size: 20, color: x === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
1329
- /* @__PURE__ */ e.jsx(se, { withinPortal: !0, withArrow: !0, position: "left", label: `${o("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: He, children: /* @__PURE__ */ e.jsx(Ve, { size: 20, color: x === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) }),
1326
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Mr(a), children: /* @__PURE__ */ e.jsx($e, { size: 20, color: x === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
1327
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Vr(a), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: x === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
1328
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Ur(a), children: /* @__PURE__ */ e.jsx(Ce, { size: 20, color: x === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
1329
+ /* @__PURE__ */ e.jsx(se, { withinPortal: !0, withArrow: !0, position: "left", label: `${o("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: qe, children: /* @__PURE__ */ e.jsx(Le, { size: 20, color: x === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) }),
1330
1330
  S?.afterDefaultProfileActions?.(a)
1331
- ] }), Br = () => {
1331
+ ] }), Or = () => {
1332
1332
  const a = C.getCurrentRecord();
1333
1333
  a && K.showConfirmDialogYesNo(
1334
1334
  `${o("archbase:Confirme")}`,
@@ -1342,47 +1342,47 @@ function La({
1342
1342
  }).catch((z) => {
1343
1343
  K.showErrorWithDetails(
1344
1344
  `${o("mentors:Atenção")}`,
1345
- Ae(z),
1346
- Ee(z)
1345
+ Se(z),
1346
+ De(z)
1347
1347
  );
1348
1348
  });
1349
1349
  },
1350
1350
  () => {
1351
1351
  }
1352
1352
  );
1353
- }, We = () => {
1353
+ }, Be = () => {
1354
1354
  D(R.USER);
1355
- }, qe = () => {
1355
+ }, We = () => {
1356
1356
  D(R.GROUP);
1357
- }, He = () => {
1357
+ }, qe = () => {
1358
1358
  D(R.PROFILE);
1359
- }, $e = () => {
1359
+ }, Ge = () => {
1360
1360
  D("");
1361
- }, Wr = () => /* @__PURE__ */ e.jsxs(te, { justify: "space-between", style: { width: "50%" }, children: [
1361
+ }, Br = () => /* @__PURE__ */ e.jsxs(te, { justify: "space-between", style: { width: "50%" }, children: [
1362
1362
  /* @__PURE__ */ e.jsxs($, { align: "end", gap: "4px", wrap: "nowrap", children: [
1363
- /* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(ze, {}), onClick: Cr, children: `${o("archbase:New")}` }),
1364
- /* @__PURE__ */ e.jsx(U, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: We, children: `${o("archbase:Edit permissions")}` })
1363
+ /* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(Ee, {}), onClick: wr, children: `${o("archbase:New")}` }),
1364
+ /* @__PURE__ */ e.jsx(U, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: Be, children: `${o("archbase:Edit permissions")}` })
1365
1365
  ] }),
1366
1366
  /* @__PURE__ */ e.jsx(te, { align: "flex-start", justify: "flex-end", style: { width: "200px" } })
1367
- ] }), qr = () => /* @__PURE__ */ e.jsxs(te, { justify: "space-between", style: { width: "50%" }, children: [
1367
+ ] }), Wr = () => /* @__PURE__ */ e.jsxs(te, { justify: "space-between", style: { width: "50%" }, children: [
1368
1368
  /* @__PURE__ */ e.jsxs($, { align: "end", gap: "4px", wrap: "nowrap", children: [
1369
- /* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(ze, {}), onClick: kr, children: `${o("archbase:New")}` }),
1370
- /* @__PURE__ */ e.jsx(U, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: qe, children: `${o("archbase:Edit permissions")}` })
1369
+ /* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(Ee, {}), onClick: Tr, children: `${o("archbase:New")}` }),
1370
+ /* @__PURE__ */ e.jsx(U, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: We, children: `${o("archbase:Edit permissions")}` })
1371
1371
  ] }),
1372
1372
  /* @__PURE__ */ e.jsx(te, { align: "flex-start", justify: "flex-end", style: { width: "200px" } })
1373
- ] }), Hr = () => /* @__PURE__ */ e.jsxs(te, { justify: "space-between", style: { width: "50%" }, children: [
1373
+ ] }), qr = () => /* @__PURE__ */ e.jsxs(te, { justify: "space-between", style: { width: "50%" }, children: [
1374
1374
  /* @__PURE__ */ e.jsxs($, { align: "end", gap: "4px", wrap: "nowrap", children: [
1375
- /* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(ze, {}), onClick: Vr, children: `${o("archbase:New")}` }),
1376
- /* @__PURE__ */ e.jsx(U, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: He, children: `${o("archbase:Edit permissions")}` })
1375
+ /* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(Ee, {}), onClick: Lr, children: `${o("archbase:New")}` }),
1376
+ /* @__PURE__ */ e.jsx(U, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: qe, children: `${o("archbase:Edit permissions")}` })
1377
1377
  ] }),
1378
1378
  /* @__PURE__ */ e.jsx(te, { align: "flex-start", justify: "flex-end", style: { width: "200px" } })
1379
- ] }), Jr = () => /* @__PURE__ */ e.jsx(te, { justify: "space-between", style: { width: "50%" }, children: /* @__PURE__ */ e.jsx($, { align: "start", gap: "4px", wrap: "nowrap", children: /* @__PURE__ */ e.jsx(
1379
+ ] }), Hr = () => /* @__PURE__ */ e.jsx(te, { justify: "space-between", style: { width: "50%" }, children: /* @__PURE__ */ e.jsx($, { align: "start", gap: "4px", wrap: "nowrap", children: /* @__PURE__ */ e.jsx(
1380
1380
  U,
1381
1381
  {
1382
1382
  disabled: !C.getCurrentRecord(),
1383
1383
  color: "red",
1384
- leftSection: /* @__PURE__ */ e.jsx(ve, {}),
1385
- onClick: Br,
1384
+ leftSection: /* @__PURE__ */ e.jsx(Ce, {}),
1385
+ onClick: Or,
1386
1386
  children: `${o("archbase:Revoke")}`
1387
1387
  }
1388
1388
  ) }) });
@@ -1400,7 +1400,6 @@ function La({
1400
1400
  withBorder: !0,
1401
1401
  mt: "md",
1402
1402
  style: {
1403
- height: ye,
1404
1403
  display: c === "users" ? "flex" : "none",
1405
1404
  width: "100%",
1406
1405
  flex: 1,
@@ -1426,10 +1425,10 @@ function La({
1426
1425
  error: v,
1427
1426
  enableGlobalFilter: !0,
1428
1427
  getRowId: ce,
1429
- toolbarLeftContent: Wr(),
1430
- renderRowActions: Tr,
1428
+ toolbarLeftContent: Br(),
1429
+ renderRowActions: Ar,
1431
1430
  actionsColumnWidth: S?.userActionsColumnWidth,
1432
- children: gr
1431
+ children: br
1433
1432
  }
1434
1433
  )
1435
1434
  }
@@ -1440,7 +1439,6 @@ function La({
1440
1439
  withBorder: !0,
1441
1440
  mt: "md",
1442
1441
  style: {
1443
- height: ye,
1444
1442
  display: c === "groups" ? "flex" : "none",
1445
1443
  flex: 1,
1446
1444
  minHeight: 0,
@@ -1460,15 +1458,15 @@ function La({
1460
1458
  enableTopToolbar: !0,
1461
1459
  enableRowActions: !0,
1462
1460
  pageSize: 50,
1463
- isLoading: Ge,
1461
+ isLoading: Pe,
1464
1462
  isError: !!v,
1465
1463
  error: v,
1466
1464
  enableGlobalFilter: !0,
1467
1465
  getRowId: ne,
1468
- renderRowActions: Dr,
1466
+ renderRowActions: Ir,
1469
1467
  actionsColumnWidth: S?.groupActionsColumnWidth,
1470
- children: jr,
1471
- toolbarLeftContent: qr()
1468
+ children: gr,
1469
+ toolbarLeftContent: Wr()
1472
1470
  }
1473
1471
  )
1474
1472
  }
@@ -1479,7 +1477,6 @@ function La({
1479
1477
  withBorder: !0,
1480
1478
  mt: "md",
1481
1479
  style: {
1482
- height: ye,
1483
1480
  display: c === "profiles" ? "flex" : "none",
1484
1481
  flex: 1,
1485
1482
  minHeight: 0,
@@ -1499,15 +1496,15 @@ function La({
1499
1496
  enableTopToolbar: !0,
1500
1497
  enableRowActions: !0,
1501
1498
  pageSize: 50,
1502
- isLoading: hr,
1499
+ isLoading: ur,
1503
1500
  isError: !!v,
1504
1501
  error: v,
1505
1502
  enableGlobalFilter: !0,
1506
1503
  getRowId: s,
1507
- toolbarLeftContent: Hr(),
1508
- renderRowActions: Or,
1504
+ toolbarLeftContent: qr(),
1505
+ renderRowActions: Nr,
1509
1506
  actionsColumnWidth: S?.profileActionsColumnWidth,
1510
- children: yr
1507
+ children: jr
1511
1508
  }
1512
1509
  )
1513
1510
  }
@@ -1518,7 +1515,6 @@ function La({
1518
1515
  withBorder: !0,
1519
1516
  mt: "md",
1520
1517
  style: {
1521
- height: ye,
1522
1518
  display: c === "resources" ? "flex" : "none",
1523
1519
  flex: 1,
1524
1520
  minHeight: 0,
@@ -1532,18 +1528,18 @@ function La({
1532
1528
  width: "100%",
1533
1529
  height: "100%",
1534
1530
  withBorder: !1,
1535
- dataSource: xr,
1531
+ dataSource: pr,
1536
1532
  withColumnBorders: !0,
1537
1533
  striped: !1,
1538
1534
  enableTopToolbar: !0,
1539
1535
  enableRowActions: !1,
1540
1536
  pageSize: 50,
1541
- isLoading: fr,
1537
+ isLoading: xr,
1542
1538
  isError: !!v,
1543
1539
  error: v,
1544
1540
  enableGlobalFilter: !0,
1545
1541
  getRowId: n,
1546
- children: wr
1542
+ children: yr
1547
1543
  }
1548
1544
  )
1549
1545
  }
@@ -1554,7 +1550,6 @@ function La({
1554
1550
  withBorder: !0,
1555
1551
  mt: "md",
1556
1552
  style: {
1557
- height: ye,
1558
1553
  display: c === "accessTokens" ? "flex" : "none",
1559
1554
  width: "100%",
1560
1555
  flex: 1,
@@ -1580,79 +1575,79 @@ function La({
1580
1575
  error: v,
1581
1576
  enableGlobalFilter: !0,
1582
1577
  getRowId: G,
1583
- toolbarLeftContent: Jr(),
1584
- children: br
1578
+ toolbarLeftContent: Hr(),
1579
+ children: mr
1585
1580
  }
1586
1581
  )
1587
1582
  }
1588
1583
  ),
1589
1584
  Z === R.USER ? /* @__PURE__ */ e.jsx(
1590
- wa,
1585
+ ya,
1591
1586
  {
1592
- onClickOk: Er,
1587
+ onClickOk: Dr,
1593
1588
  opened: !0,
1594
1589
  dataSource: j,
1595
- onClickCancel: zr,
1590
+ onClickCancel: Er,
1596
1591
  options: d
1597
1592
  }
1598
1593
  ) : null,
1599
1594
  Z === R.GROUP ? /* @__PURE__ */ e.jsx(
1600
- Ca,
1595
+ wa,
1601
1596
  {
1602
- onClickOk: Pr,
1597
+ onClickOk: zr,
1603
1598
  opened: !0,
1604
1599
  dataSource: V,
1605
- onClickCancel: Gr,
1600
+ onClickCancel: Pr,
1606
1601
  options: f
1607
1602
  }
1608
1603
  ) : null,
1609
1604
  Z === R.PROFILE ? /* @__PURE__ */ e.jsx(
1610
- ba,
1605
+ ma,
1611
1606
  {
1612
- onClickOk: $r,
1607
+ onClickOk: Gr,
1613
1608
  opened: !0,
1614
1609
  dataSource: O,
1615
- onClickCancel: Lr,
1610
+ onClickCancel: $r,
1616
1611
  options: l
1617
1612
  }
1618
1613
  ) : null,
1619
1614
  N === R.USER ? /* @__PURE__ */ e.jsx(
1620
- Me,
1615
+ Ue,
1621
1616
  {
1622
1617
  dataSource: j,
1623
1618
  opened: !!N,
1624
- close: $e
1619
+ close: Ge
1625
1620
  }
1626
1621
  ) : null,
1627
1622
  N === R.GROUP ? /* @__PURE__ */ e.jsx(
1628
- Me,
1623
+ Ue,
1629
1624
  {
1630
1625
  dataSource: V,
1631
1626
  opened: !!N,
1632
- close: $e
1627
+ close: Ge
1633
1628
  }
1634
1629
  ) : null,
1635
1630
  N === R.PROFILE ? /* @__PURE__ */ e.jsx(
1636
- Me,
1631
+ Ue,
1637
1632
  {
1638
1633
  dataSource: O,
1639
1634
  opened: !!N,
1640
- close: $e
1635
+ close: Ge
1641
1636
  }
1642
1637
  ) : null
1643
1638
  ] });
1644
1639
  }
1645
- function Va({ height: r = "400px", width: h = "100%" }) {
1646
- ir();
1647
- const w = lr("apiTokenStore"), d = { validateEntity: () => [] }, { colorScheme: l } = Be(), [f, S] = M(void 0), u = _(X.ApiToken), [P, x] = M(""), v = je(null), i = (F) => F.id, { dataSource: c } = oa({
1640
+ function La({ height: r = "400px", width: h = "100%" }) {
1641
+ nr();
1642
+ const w = ir("apiTokenStore"), d = { validateEntity: () => [] }, { colorScheme: l } = Oe(), [f, S] = M(void 0), u = _(X.ApiToken), [P, x] = M(""), v = je(null), i = (F) => F.id, { dataSource: c } = ta({
1648
1643
  initialData: [],
1649
1644
  name: "dataSource"
1650
- }), L = ke(
1645
+ }), L = Te(
1651
1646
  "ArchbaseApiTokenView-LocalDataSource",
1652
1647
  c,
1653
1648
  void 0,
1654
1649
  void 0
1655
- ), { dataSource: b, isLoading: re } = Ne({
1650
+ ), { dataSource: b, isLoading: re } = Me({
1656
1651
  name: "dsApiToken",
1657
1652
  service: u,
1658
1653
  store: w,
@@ -1666,7 +1661,7 @@ function Va({ height: r = "400px", width: h = "100%" }) {
1666
1661
  onError: (F, W) => {
1667
1662
  S(F), Q.showError(t().t("archbase:WARNING"), F, W);
1668
1663
  }
1669
- }), J = ke(
1664
+ }), J = Te(
1670
1665
  "ArchbaseApiTokenView-RemoteDataSource",
1671
1666
  b,
1672
1667
  void 0,
@@ -1683,7 +1678,7 @@ function Va({ height: r = "400px", width: h = "100%" }) {
1683
1678
  "img",
1684
1679
  {
1685
1680
  style: { borderRadius: 50, height: "32px", maxHeight: "32px" },
1686
- src: F.row.user && F.row.user.avatar ? atob(F.row.user.avatar) : Oe
1681
+ src: F.row.user && F.row.user.avatar ? atob(F.row.user.avatar) : Ne
1687
1682
  }
1688
1683
  ),
1689
1684
  inputFilterType: "text",
@@ -1752,7 +1747,7 @@ function Va({ height: r = "400px", width: h = "100%" }) {
1752
1747
  const G = m < 0 ? `Vencido em ${p.toLocaleDateString()}` : `Expira em ${p.toLocaleDateString()}`;
1753
1748
  return /* @__PURE__ */ e.jsx(se, { label: G, withArrow: !0, children: /* @__PURE__ */ e.jsxs($, { gap: "xs", wrap: "nowrap", children: [
1754
1749
  /* @__PURE__ */ e.jsx(
1755
- Zr,
1750
+ Jr,
1756
1751
  {
1757
1752
  size: 36,
1758
1753
  thickness: 4,
@@ -1785,7 +1780,7 @@ function Va({ height: r = "400px", width: h = "100%" }) {
1785
1780
  }
1786
1781
  )
1787
1782
  ] }), I = () => {
1788
- c.insert(ca.newInstance()), c && !L.isDataSourceV2 && L.v1State.forceUpdate(), x("apiToken");
1783
+ c.insert(la.newInstance()), c && !L.isDataSourceV2 && L.v1State.forceUpdate(), x("apiToken");
1789
1784
  }, N = () => {
1790
1785
  b.getCurrentRecord() && K.showConfirmDialogYesNo(
1791
1786
  `${t().t("archbase:Confirme")}`,
@@ -1799,8 +1794,8 @@ function Va({ height: r = "400px", width: h = "100%" }) {
1799
1794
  }).catch((F) => {
1800
1795
  K.showErrorWithDetails(
1801
1796
  `${t().t("mentors:Atenção")}`,
1802
- Ae(F),
1803
- Ee(F)
1797
+ Se(F),
1798
+ De(F)
1804
1799
  );
1805
1800
  });
1806
1801
  },
@@ -1829,20 +1824,20 @@ function Va({ height: r = "400px", width: h = "100%" }) {
1829
1824
  }).catch((g) => {
1830
1825
  K.showErrorWithDetails(
1831
1826
  `${t().t("mentors:Atenção")}`,
1832
- Ae(g),
1833
- Ee(g)
1827
+ Se(g),
1828
+ De(g)
1834
1829
  );
1835
1830
  });
1836
1831
  } catch (g) {
1837
1832
  K.showErrorWithDetails(
1838
1833
  `${t().t("mentors:Atenção")}`,
1839
- Ae(g),
1840
- Ee(g)
1834
+ Se(g),
1835
+ De(g)
1841
1836
  );
1842
1837
  }
1843
1838
  }, o = () => /* @__PURE__ */ e.jsx(te, { justify: "space-between", style: { width: "50%" }, children: /* @__PURE__ */ e.jsxs($, { align: "start", gap: "2px", wrap: "nowrap", children: [
1844
- /* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(ze, {}), onClick: I, children: t().t("archbase:New") }),
1845
- /* @__PURE__ */ e.jsx(U, { disabled: !b.getCurrentRecord(), color: "red", leftSection: /* @__PURE__ */ e.jsx(ve, {}), onClick: N, children: t().t("archbase:Revoke") })
1839
+ /* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(Ee, {}), onClick: I, children: t().t("archbase:New") }),
1840
+ /* @__PURE__ */ e.jsx(U, { disabled: !b.getCurrentRecord(), color: "red", leftSection: /* @__PURE__ */ e.jsx(Ce, {}), onClick: N, children: t().t("archbase:Revoke") })
1846
1841
  ] }) });
1847
1842
  return /* @__PURE__ */ e.jsxs(Y, { p: "md", style: { height: r, display: "flex", flexDirection: "column" }, children: [
1848
1843
  /* @__PURE__ */ e.jsx(
@@ -1883,7 +1878,7 @@ function Va({ height: r = "400px", width: h = "100%" }) {
1883
1878
  }
1884
1879
  ),
1885
1880
  P === "apiToken" ? /* @__PURE__ */ e.jsx(
1886
- Sa,
1881
+ va,
1887
1882
  {
1888
1883
  onClickOk: D,
1889
1884
  opened: !0,
@@ -1895,14 +1890,14 @@ function Va({ height: r = "400px", width: h = "100%" }) {
1895
1890
  ] });
1896
1891
  }
1897
1892
  export {
1898
- Sa as ApiTokenModal,
1899
- Va as ArchbaseApiTokenView,
1900
- ga as ArchbaseDualListSelector,
1901
- La as ArchbaseSecurityView,
1902
- Ca as GroupModal,
1903
- Me as PermissionsSelectorModal,
1904
- ba as ProfileModal,
1905
- ja as RenderProfileUserItem,
1906
- wa as UserModal
1893
+ va as ApiTokenModal,
1894
+ La as ArchbaseApiTokenView,
1895
+ ba as ArchbaseDualListSelector,
1896
+ $a as ArchbaseSecurityView,
1897
+ wa as GroupModal,
1898
+ Ue as PermissionsSelectorModal,
1899
+ ma as ProfileModal,
1900
+ ga as RenderProfileUserItem,
1901
+ ya as UserModal
1907
1902
  };
1908
1903
  //# sourceMappingURL=index.js.map