@archbase/security-ui 3.0.25 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { Modal as Te, ScrollArea as ke, Stack as ne, Grid as T, Group as $, Button as V, Paper as X, Box as Ze, Text as H, List as Re, Checkbox as Qe, Tooltip as ie, ActionIcon as B, Flex as oe, Space as nr, Input as pe, useTree as Ye, useMantineColorScheme as Me, TextInput as Xe, Tree as Ke, Badge as Ce, Tabs as de, RingProgress as Nr } from "@mantine/core";
2
- import { useFocusTrap as Ee, useDebouncedValue as _e } from "@mantine/hooks";
3
- import { getI18nextInstance as t, ARCHBASE_IOC_API_TYPE as K, convertDateToISOString as Or, emit as ir, builder as ze, processErrorMessage as Ae, getKeyByEnumValue as ue, useArchbaseTheme as lr, useArchbaseValidator as Br, useArchbaseTranslation as Wr, processDetailErrorMessage as Fe } from "@archbase/core";
4
- import { ArchbaseEdit as re, ArchbaseNotifications as Y, ArchbasePasswordEdit as qr, ArchbaseSelect as Hr, ArchbaseCheckbox as xe, ArchbaseAvatarEdit as Jr, ArchbaseAsyncSelect as Zr, Columns as be, ArchbaseDataGridColumn as j, ArchbaseDataGrid as je, ArchbaseDialog as _ } from "@archbase/components";
5
- import { useArchbaseV1V2Compatibility as le, useArchbaseDataSourceListener as er, useArchbaseRemoteServiceApi as ee, useArchbaseRemoteDataSource as se, ArchbaseDataSource as Qr, useArchbaseStore as cr, useArchbaseDataSource as Yr } from "@archbase/data";
6
- import { useState as U, useCallback as ge, useEffect as Ne, forwardRef as Xr, useMemo as me, useRef as ye } from "react";
7
- import { IconArrowRight as dr, IconArrowLeft as ur, IconChevronDown as rr, IconBorderCornerSquare as ar, IconEye as $e, IconEdit as fe, IconTrashX as ve, IconShieldCheckered as Ge, IconPlus as Ie } from "@tabler/icons-react";
8
- import { UserGroupDto as Kr, SecurityType as F, UserDto as _r, GroupDto as ea, ProfileDto as ra, ApiTokenDto as aa } from "@archbase/security";
9
- import { DateTimePicker as ta } from "@mantine/dates";
10
- import { ArchbaseSpaceFixed as oa, ArchbaseSpaceFill as sa, ArchbaseSpaceBottom as na } from "@archbase/layout";
11
- var Le = { exports: {} }, Se = {};
1
+ import { Modal as ke, ScrollArea as Re, Stack as ne, Grid as T, Group as G, Button as U, Paper as X, Box as Qe, Text as H, List as Fe, Checkbox as Ye, Tooltip as ie, ActionIcon as B, Flex as oe, Space as lr, Input as pe, useTree as Xe, useMantineColorScheme as Oe, TextInput as Ke, Tree as _e, Badge as Ae, Tabs as de, RingProgress as Or } from "@mantine/core";
2
+ import { useFocusTrap as Pe, useDebouncedValue as er } from "@mantine/hooks";
3
+ import { getI18nextInstance as a, ARCHBASE_IOC_API_TYPE as K, emit as ze, builder as we, convertDateToISOString as Br, processErrorMessage as Te, getKeyByEnumValue as ue, useArchbaseTheme as cr, useArchbaseValidator as Wr, useArchbaseTranslation as qr, processDetailErrorMessage as Ie } from "@archbase/core";
4
+ import { ArchbaseEdit as re, ArchbaseNotifications as Y, ArchbasePasswordEdit as Hr, ArchbaseSelect as Jr, ArchbaseCheckbox as xe, ArchbaseAvatarEdit as Zr, ArchbaseAsyncSelect as Qr, Columns as be, ArchbaseDataGridColumn as b, ArchbaseDataGrid as je, ArchbaseDialog as _ } from "@archbase/components";
5
+ import { useArchbaseV1V2Compatibility as le, useArchbaseDataSourceListener as rr, useArchbaseRemoteServiceApi as ee, useArchbaseRemoteDataSource as se, ArchbaseDataSource as Yr, useArchbaseStore as dr, useArchbaseDataSource as Xr } from "@archbase/data";
6
+ import { useState as M, useCallback as ge, useEffect as Ee, forwardRef as Kr, useMemo as me, useRef as ye } from "react";
7
+ import { IconArrowRight as ur, IconArrowLeft as hr, IconChevronDown as tr, IconBorderCornerSquare as ar, IconEye as Ve, IconEdit as fe, IconTrashX as Ce, IconShieldCheckered as Le, IconPlus as De } from "@tabler/icons-react";
8
+ import { UserGroupDto as or, SecurityType as F, UserDto as _r, GroupDto as et, ProfileDto as rt, ApiTokenDto as tt } from "@archbase/security";
9
+ import { DateTimePicker as at } from "@mantine/dates";
10
+ import { ArchbaseSpaceFixed as ot, ArchbaseSpaceFill as st, ArchbaseSpaceBottom as nt } from "@archbase/layout";
11
+ var Ue = { exports: {} }, ve = {};
12
12
  /**
13
13
  * @license React
14
14
  * react-jsx-runtime.production.js
@@ -18,60 +18,60 @@ var Le = { exports: {} }, Se = {};
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 ia() {
23
- if (tr)
24
- return Se;
25
- tr = 1;
21
+ var sr;
22
+ function it() {
23
+ if (sr)
24
+ return ve;
25
+ sr = 1;
26
26
  var r = Symbol.for("react.transitional.element"), c = Symbol.for("react.fragment");
27
- function g(v, s, x) {
27
+ function j(C, o, p) {
28
28
  var u = null;
29
- if (x !== void 0 && (u = "" + x), s.key !== void 0 && (u = "" + s.key), "key" in s) {
30
- x = {};
31
- for (var C in s)
32
- C !== "key" && (x[C] = s[C]);
29
+ if (p !== void 0 && (u = "" + p), o.key !== void 0 && (u = "" + o.key), "key" in o) {
30
+ p = {};
31
+ for (var v in o)
32
+ v !== "key" && (p[v] = o[v]);
33
33
  } else
34
- x = s;
35
- return s = x.ref, {
34
+ p = o;
35
+ return o = p.ref, {
36
36
  $$typeof: r,
37
- type: v,
37
+ type: C,
38
38
  key: u,
39
- ref: s !== void 0 ? s : null,
40
- props: x
39
+ ref: o !== void 0 ? o : null,
40
+ props: p
41
41
  };
42
42
  }
43
- return Se.Fragment = c, Se.jsx = g, Se.jsxs = g, Se;
43
+ return ve.Fragment = c, ve.jsx = j, ve.jsxs = j, ve;
44
44
  }
45
- var or;
46
- function la() {
47
- return or || (or = 1, Le.exports = ia()), Le.exports;
45
+ var nr;
46
+ function lt() {
47
+ return nr || (nr = 1, Ue.exports = it()), Ue.exports;
48
48
  }
49
- var e = la();
50
- const ca = (r) => {
51
- Ee();
52
- const c = { ...r.options ?? {} }, g = () => {
53
- r.onCustomSave ? r.onCustomSave(r.dataSource.current, (s) => {
54
- s && r.onAfterSave && r.onAfterSave(r.dataSource.current), r.onClickOk(r.dataSource.current, s);
49
+ var e = lt();
50
+ const ct = (r) => {
51
+ Pe();
52
+ const c = { ...r.options ?? {} }, j = () => {
53
+ r.onCustomSave ? r.onCustomSave(r.dataSource.current, (o) => {
54
+ o && r.onAfterSave && r.onAfterSave(r.dataSource.current), r.onClickOk(r.dataSource.current, o);
55
55
  }) : r.onClickOk(r.dataSource.current, !0);
56
- }, v = () => {
56
+ }, C = () => {
57
57
  r.onClickCancel(r.dataSource.current);
58
58
  };
59
59
  return /* @__PURE__ */ e.jsx(
60
- Te,
60
+ ke,
61
61
  {
62
62
  opened: r.opened,
63
- onClose: v,
64
- title: t().t("archbase:Perfil"),
63
+ onClose: C,
64
+ title: a().t("archbase:Perfil"),
65
65
  size: "60%",
66
66
  styles: { content: { maxWidth: 1e3 } },
67
- children: /* @__PURE__ */ e.jsx(ke, { style: { height: "460px" }, children: /* @__PURE__ */ e.jsxs(ne, { w: "98%", children: [
67
+ children: /* @__PURE__ */ e.jsx(Re, { style: { height: "460px" }, children: /* @__PURE__ */ e.jsxs(ne, { w: "98%", children: [
68
68
  c?.customContentBefore && /* @__PURE__ */ e.jsx(e.Fragment, { children: c.customContentBefore }),
69
69
  /* @__PURE__ */ e.jsxs(T, { children: [
70
70
  /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 12, lg: 12 }, children: /* @__PURE__ */ e.jsx(
71
71
  re,
72
72
  {
73
- label: `${t().t("archbase:Nome do perfil")}`,
74
- placeholder: `${t().t("archbase:Informe o nome do perfil")}`,
73
+ label: `${a().t("archbase:Nome do perfil")}`,
74
+ placeholder: `${a().t("archbase:Informe o nome do perfil")}`,
75
75
  dataSource: r.dataSource,
76
76
  dataField: "name"
77
77
  }
@@ -79,31 +79,31 @@ const ca = (r) => {
79
79
  /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 12, lg: 12 }, children: /* @__PURE__ */ e.jsx(
80
80
  re,
81
81
  {
82
- label: `${t().t("archbase:Descrição do perfil")}`,
83
- placeholder: `${t().t("archbase:Informe a descrição do perfil")}`,
82
+ label: `${a().t("archbase:Descrição do perfil")}`,
83
+ placeholder: `${a().t("archbase:Informe a descrição do perfil")}`,
84
84
  dataSource: r.dataSource,
85
85
  dataField: "description"
86
86
  }
87
87
  ) })
88
88
  ] }),
89
89
  c?.customContentAfter && /* @__PURE__ */ e.jsx(e.Fragment, { children: c.customContentAfter }),
90
- /* @__PURE__ */ e.jsxs($, { justify: "flex-end", mt: "md", children: [
91
- /* @__PURE__ */ e.jsx(V, { variant: "default", onClick: v, children: t().t("archbase:Cancelar") }),
92
- /* @__PURE__ */ e.jsx(V, { onClick: g, children: t().t("archbase:Salvar") })
90
+ /* @__PURE__ */ e.jsxs(G, { justify: "flex-end", mt: "md", children: [
91
+ /* @__PURE__ */ e.jsx(U, { variant: "default", onClick: C, children: a().t("archbase:Cancelar") }),
92
+ /* @__PURE__ */ e.jsx(U, { onClick: j, children: a().t("archbase:Salvar") })
93
93
  ] })
94
94
  ] }) })
95
95
  }
96
96
  );
97
97
  };
98
- function da({
98
+ function dt({
99
99
  availableItemsDS: r,
100
100
  assignedItemsDS: c,
101
- idFieldAvailable: g,
102
- labelFieldAvailable: v,
103
- idFieldAssigned: s,
104
- labelFieldAssigned: x,
101
+ idFieldAvailable: j,
102
+ labelFieldAvailable: C,
103
+ idFieldAssigned: o,
104
+ labelFieldAssigned: p,
105
105
  handleCreateAssociationObject: u,
106
- width: C = "400px",
106
+ width: v = "400px",
107
107
  height: E = "200px",
108
108
  titleAvailable: h = "Disponíveis",
109
109
  titleAssigned: y = "Selecionados"
@@ -114,47 +114,47 @@ function da({
114
114
  void 0,
115
115
  []
116
116
  );
117
- const l = le(
117
+ const I = le(
118
118
  "ArchbaseDualListSelector-Assigned",
119
119
  c,
120
120
  void 0,
121
121
  []
122
- ), [p, M] = U([]), [f, ae] = U([]), [J, te] = U([]), [Q, D] = U([]), N = ge(() => {
123
- r && M(r.browseRecords()), c && ae(c.browseRecords());
122
+ ), [n, g] = M([]), [x, te] = M([]), [J, ae] = M([]), [Q, P] = M([]), N = ge(() => {
123
+ r && g(r.browseRecords()), c && te(c.browseRecords());
124
124
  }, [r, c]);
125
- er({
125
+ rr({
126
126
  dataSource: r,
127
127
  listener: () => N()
128
- }), er({
128
+ }), rr({
129
129
  dataSource: c,
130
130
  listener: () => N()
131
- }), Ne(() => {
131
+ }), Ee(() => {
132
132
  N();
133
133
  }, [N]);
134
- const I = (d, b) => typeof b == "function" ? b(d) : d[b], q = (d, b) => typeof b == "function" ? b(d) : d[b], o = (d, b) => {
135
- d((m) => m.includes(b) ? m.filter((he) => he !== b) : [...m, b]);
134
+ const D = (d, f) => typeof f == "function" ? f(d) : d[f], q = (d, f) => typeof f == "function" ? f(d) : d[f], s = (d, f) => {
135
+ d((m) => m.includes(f) ? m.filter((he) => he !== f) : [...m, f]);
136
136
  }, w = () => {
137
137
  J.forEach((d) => {
138
- const b = p.find((m) => I(m, g) === d);
139
- if (b) {
140
- const m = u(b);
141
- l.isDataSourceV2 ? (c.insert(m), c.save()) : (c.insert(m), c.save(), l.v1State.forceUpdate());
138
+ const f = n.find((m) => D(m, j) === d);
139
+ if (f) {
140
+ const m = u(f);
141
+ I.isDataSourceV2 ? (c.insert(m), c.save()) : (c.insert(m), c.save(), I.v1State.forceUpdate());
142
142
  }
143
- }), te([]);
143
+ }), ae([]);
144
144
  }, O = () => {
145
145
  Q.forEach((d) => {
146
- const b = f.find((m) => I(m, s) === d);
147
- if (b) {
148
- const m = typeof s == "function" ? { customId: s(b) } : { [s]: d };
149
- l.isDataSourceV2 ? c.remove(() => c.locate(m)) : (c.remove(() => c.locate(m)), l.v1State.forceUpdate());
146
+ const f = x.find((m) => D(m, o) === d);
147
+ if (f) {
148
+ const m = typeof o == "function" ? { customId: o(f) } : { [o]: d };
149
+ I.isDataSourceV2 ? c.remove(() => c.locate(m)) : (c.remove(() => c.locate(m)), I.v1State.forceUpdate());
150
150
  }
151
- }), D([]);
151
+ }), P([]);
152
152
  };
153
- return /* @__PURE__ */ e.jsxs(X, { withBorder: !0, style: { display: "flex", width: C, height: E }, children: [
154
- /* @__PURE__ */ e.jsxs(Ze, { style: { minWidth: "44%", minHeight: E }, children: [
153
+ return /* @__PURE__ */ e.jsxs(X, { withBorder: !0, style: { display: "flex", width: v, height: E }, children: [
154
+ /* @__PURE__ */ e.jsxs(Qe, { style: { minWidth: "44%", minHeight: E }, children: [
155
155
  /* @__PURE__ */ e.jsx(H, { children: h }),
156
156
  /* @__PURE__ */ e.jsx(
157
- Re,
157
+ Fe,
158
158
  {
159
159
  spacing: "xs",
160
160
  size: "sm",
@@ -166,28 +166,28 @@ function da({
166
166
  overflowX: "hidden",
167
167
  height: "calc(100% - 32px)"
168
168
  },
169
- children: p.map((d) => /* @__PURE__ */ e.jsx(Re.Item, { children: /* @__PURE__ */ e.jsx(
170
- Qe,
169
+ children: n.map((d) => /* @__PURE__ */ e.jsx(Fe.Item, { children: /* @__PURE__ */ e.jsx(
170
+ Ye,
171
171
  {
172
- label: q(d, v),
173
- checked: J.includes(I(d, g)),
174
- onChange: () => o(te, I(d, g)),
175
- disabled: f.some(
176
- (b) => I(b, s) === I(d, g)
172
+ label: q(d, C),
173
+ checked: J.includes(D(d, j)),
174
+ onChange: () => s(ae, D(d, j)),
175
+ disabled: x.some(
176
+ (f) => D(f, o) === D(d, j)
177
177
  )
178
178
  }
179
- ) }, I(d, g)))
179
+ ) }, D(d, j)))
180
180
  }
181
181
  )
182
182
  ] }),
183
183
  /* @__PURE__ */ e.jsxs(ne, { gap: 5, style: { minWidth: "10%" }, justify: "center", align: "center", children: [
184
- /* @__PURE__ */ e.jsx(ie, { label: "Adicionar", children: /* @__PURE__ */ e.jsx(B, { onClick: w, disabled: !J.length, children: /* @__PURE__ */ e.jsx(dr, {}) }) }),
185
- /* @__PURE__ */ e.jsx(ie, { label: "Remover", children: /* @__PURE__ */ e.jsx(B, { onClick: O, disabled: !Q.length, children: /* @__PURE__ */ e.jsx(ur, {}) }) })
184
+ /* @__PURE__ */ e.jsx(ie, { label: "Adicionar", children: /* @__PURE__ */ e.jsx(B, { onClick: w, disabled: !J.length, children: /* @__PURE__ */ e.jsx(ur, {}) }) }),
185
+ /* @__PURE__ */ e.jsx(ie, { label: "Remover", children: /* @__PURE__ */ e.jsx(B, { onClick: O, disabled: !Q.length, children: /* @__PURE__ */ e.jsx(hr, {}) }) })
186
186
  ] }),
187
- /* @__PURE__ */ e.jsxs(Ze, { style: { minWidth: "44%", minHeight: E }, children: [
187
+ /* @__PURE__ */ e.jsxs(Qe, { style: { minWidth: "44%", minHeight: E }, children: [
188
188
  /* @__PURE__ */ e.jsx(H, { children: y }),
189
189
  /* @__PURE__ */ e.jsx(
190
- Re,
190
+ Fe,
191
191
  {
192
192
  spacing: "xs",
193
193
  size: "sm",
@@ -199,25 +199,25 @@ function da({
199
199
  overflowX: "hidden",
200
200
  height: "calc(100% - 32px)"
201
201
  },
202
- children: f.map((d) => /* @__PURE__ */ e.jsx(Re.Item, { children: /* @__PURE__ */ e.jsx(
203
- Qe,
202
+ children: x.map((d) => /* @__PURE__ */ e.jsx(Fe.Item, { children: /* @__PURE__ */ e.jsx(
203
+ Ye,
204
204
  {
205
- label: q(d, x),
206
- checked: Q.includes(I(d, s)),
207
- onChange: () => o(D, I(d, s))
205
+ label: q(d, p),
206
+ checked: Q.includes(D(d, o)),
207
+ onChange: () => s(P, D(d, o))
208
208
  }
209
- ) }, I(d, s)))
209
+ ) }, D(d, o)))
210
210
  }
211
211
  )
212
212
  ] })
213
213
  ] });
214
214
  }
215
- const ua = Xr(
216
- ({ image: r, label: c, description: g, origin: v, ...s }, x) => /* @__PURE__ */ e.jsx("div", { ref: x, ...s, children: /* @__PURE__ */ e.jsxs(oe, { children: [
217
- /* @__PURE__ */ e.jsx(H, { size: "sm", fw: 600, children: v ? v.name : "" }),
218
- /* @__PURE__ */ e.jsx(nr, { w: "lg" })
215
+ const ut = Kr(
216
+ ({ image: r, label: c, description: j, origin: C, ...o }, p) => /* @__PURE__ */ e.jsx("div", { ref: p, ...o, children: /* @__PURE__ */ e.jsxs(oe, { children: [
217
+ /* @__PURE__ */ e.jsx(H, { size: "sm", fw: 600, children: C ? C.name : "" }),
218
+ /* @__PURE__ */ e.jsx(lr, { w: "lg" })
219
219
  ] }) })
220
- ), ha = {
220
+ ), ht = {
221
221
  // Campos de identificação
222
222
  showNickname: !0,
223
223
  // Campos de perfil e grupos
@@ -237,81 +237,96 @@ const ua = Xr(
237
237
  avatarMaxSizeKB: 2e3,
238
238
  avatarImageQuality: 1,
239
239
  allowEditEmail: !0
240
- }, pa = (r) => {
241
- const c = Ee(), [g, v] = U(""), s = { ...ha, ...r.options ?? {} }, x = ee(K.Group), { dataSource: u } = se({
240
+ }, pt = (r) => {
241
+ const c = Pe(), [j, C] = M(""), o = { ...ht, ...r.options ?? {} }, p = ee(K.Group), { dataSource: u } = se({
242
242
  name: "dsGroups",
243
- service: x,
243
+ service: p,
244
244
  pageSize: 9999,
245
245
  loadOnStart: !0,
246
246
  sort: ["name:asc"],
247
- onError: (l, p) => {
248
- Y.showError(t().t("archbase:WARNING"), l, p);
247
+ onError: (n, g) => {
248
+ Y.showError(a().t("archbase:WARNING"), n, g);
249
249
  }
250
- }), C = ee(K.Profile), { dataSource: E } = se({
250
+ }), v = ee(K.Profile), { dataSource: E } = se({
251
251
  name: "dsProfiles",
252
- service: C,
252
+ service: v,
253
253
  pageSize: 9999,
254
254
  loadOnStart: !0,
255
255
  sort: ["name:asc"],
256
- onError: (l, p) => {
257
- Y.showError(t().t("archbase:WARNING"), l, p);
256
+ onError: (n, g) => {
257
+ Y.showError(a().t("archbase:WARNING"), n, g);
258
258
  }
259
259
  });
260
- Ne(() => {
261
- v("");
260
+ Ee(() => {
261
+ C("");
262
262
  }, [r.dataSource.getFieldValue("password")]);
263
- const h = () => {
264
- const l = r.dataSource.current;
265
- if (!l.password && r.dataSource.isInserting()) {
266
- v(t().t("archbase:Informe a senha"));
263
+ const h = async () => {
264
+ if (r.dataSource.isInserting()) {
265
+ if (o.userDefaultProfile) {
266
+ const n = ze(we.eq("name", o.userDefaultProfile)), g = await v.findAllWithFilter(n, 0, 1);
267
+ g && g.content.length > 0 && r.dataSource.setFieldValue("profile", g.content[0]);
268
+ }
269
+ if (o.userDefaultGroups) {
270
+ const n = ze(we.in("name", o.userDefaultGroups)), g = await p.findAllWithFilter(n, 0, 500);
271
+ g && g.content.length > 0 && r.dataSource.setFieldValue("groups", g.content.map((x) => or.newInstance(x)));
272
+ }
273
+ }
274
+ };
275
+ Ee(() => {
276
+ r.opened && h();
277
+ }, [r.opened]);
278
+ const y = () => {
279
+ const n = r.dataSource.current;
280
+ if (!n.password && r.dataSource.isInserting()) {
281
+ C(a().t("archbase:Informe a senha"));
267
282
  return;
268
283
  }
269
- r.onCustomSave ? r.onCustomSave(l, (p) => {
270
- p && r.onAfterSave && r.onAfterSave(l), r.onClickOk(l, p);
271
- }) : r.onClickOk(l, !0);
272
- }, y = () => {
284
+ r.onCustomSave ? r.onCustomSave(n, (g) => {
285
+ g && r.onAfterSave && r.onAfterSave(n), r.onClickOk(n, g);
286
+ }) : r.onClickOk(n, !0);
287
+ }, I = () => {
273
288
  r.onClickCancel(r.dataSource.current);
274
289
  };
275
290
  return /* @__PURE__ */ e.jsxs(
276
- Te,
291
+ ke,
277
292
  {
278
293
  opened: r.opened,
279
- onClose: y,
280
- title: t().t("archbase:Usuário"),
294
+ onClose: I,
295
+ title: a().t("archbase:Usuário"),
281
296
  size: "80%",
282
297
  styles: { content: { maxWidth: 1e3 } },
283
298
  children: [
284
- /* @__PURE__ */ e.jsx(ke, { ref: c, style: { height: "500px" }, children: /* @__PURE__ */ e.jsxs(ne, { w: "98%", children: [
285
- s?.customContentBefore && /* @__PURE__ */ e.jsx(e.Fragment, { children: s.customContentBefore }),
299
+ /* @__PURE__ */ e.jsx(Re, { ref: c, style: { height: "500px" }, children: /* @__PURE__ */ e.jsxs(ne, { w: "98%", children: [
300
+ o?.customContentBefore && /* @__PURE__ */ e.jsx(e.Fragment, { children: o.customContentBefore(r.dataSource.current) }),
286
301
  /* @__PURE__ */ e.jsxs(T, { children: [
287
- /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsxs($, { children: [
302
+ /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsxs(G, { children: [
288
303
  /* @__PURE__ */ e.jsx(
289
304
  re,
290
305
  {
291
- label: `${t().t("archbase:Nome completo")}`,
292
- placeholder: `${t().t("archbase:Informe o nome completo do usuário")}`,
306
+ label: `${a().t("archbase:Nome completo")}`,
307
+ placeholder: `${a().t("archbase:Informe o nome completo do usuário")}`,
293
308
  dataSource: r.dataSource,
294
309
  dataField: "name",
295
310
  required: !0,
296
311
  width: "calc(100% - 208px)"
297
312
  }
298
313
  ),
299
- s.showNickname && /* @__PURE__ */ e.jsx(
314
+ o.showNickname && /* @__PURE__ */ e.jsx(
300
315
  re,
301
316
  {
302
- label: `${t().t("archbase:Apelido")}`,
303
- placeholder: `${t().t("archbase:Apelido")}`,
317
+ label: `${a().t("archbase:Apelido")}`,
318
+ placeholder: `${a().t("archbase:Apelido")}`,
304
319
  dataSource: r.dataSource,
305
320
  dataField: "nickname",
306
- required: s.requiredNickname
321
+ required: o.requiredNickname
307
322
  }
308
323
  )
309
324
  ] }) }),
310
325
  /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsx(
311
326
  re,
312
327
  {
313
- label: `${t().t("archbase:Descrição do usuário")}`,
314
- placeholder: `${t().t("archbase:Informe a descrição do usuário")}`,
328
+ label: `${a().t("archbase:Descrição do usuário")}`,
329
+ placeholder: `${a().t("archbase:Informe a descrição do usuário")}`,
315
330
  dataSource: r.dataSource,
316
331
  dataField: "description",
317
332
  required: !0
@@ -322,115 +337,115 @@ const ua = Xr(
322
337
  /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsx(
323
338
  re,
324
339
  {
325
- label: `${t().t("archbase:E-mail")}`,
326
- placeholder: `${t().t("archbase:Informe o e-mail do usuário")}`,
340
+ label: `${a().t("archbase:E-mail")}`,
341
+ placeholder: `${a().t("archbase:Informe o e-mail do usuário")}`,
327
342
  dataSource: r.dataSource,
328
- onChangeValue: (l) => r.dataSource.setFieldValue("userName", l),
343
+ onChangeValue: (n) => r.dataSource.setFieldValue("userName", n),
329
344
  dataField: "email",
330
- readOnly: r.dataSource.isEditing() ? !s.allowEditEmail : !1,
345
+ readOnly: r.dataSource.isEditing() ? !o.allowEditEmail : !1,
331
346
  required: !0
332
347
  }
333
348
  ) }),
334
349
  /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsx(
335
- qr,
350
+ Hr,
336
351
  {
337
- label: `${t().t("archbase:Senha usuário")}`,
352
+ label: `${a().t("archbase:Senha usuário")}`,
338
353
  dataSource: r.dataSource,
339
354
  dataField: "password",
340
- error: g,
355
+ error: j,
341
356
  required: r.dataSource.getFieldValue("isNewUser")
342
357
  }
343
358
  ) })
344
359
  ] }),
345
- /* @__PURE__ */ e.jsx(T, { children: s.showProfile && /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsx(
346
- Hr,
360
+ /* @__PURE__ */ e.jsx(T, { children: o.showProfile && /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 6, lg: 6 }, children: /* @__PURE__ */ e.jsx(
361
+ Jr,
347
362
  {
348
- label: `${t().t("archbase:Perfil do usuário")}`,
363
+ label: `${a().t("archbase:Perfil do usuário")}`,
349
364
  dataSource: r.dataSource,
350
365
  dataField: "profile",
351
366
  options: E,
352
367
  allowDeselect: !0,
353
368
  optionsLabelField: "nome",
354
- itemComponent: ua,
355
- getOptionLabel: (l) => l.name,
356
- getOptionValue: (l) => l.id
369
+ itemComponent: ut,
370
+ getOptionLabel: (n) => n.name,
371
+ getOptionValue: (n) => n.id
357
372
  }
358
373
  ) }) }),
359
374
  /* @__PURE__ */ e.jsxs(T, { children: [
360
- /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12 }, children: s.showAccountConfigLabel && /* @__PURE__ */ e.jsx(H, { fz: 14, fw: 500, children: "Informe" }) }),
375
+ /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12 }, children: o.showAccountConfigLabel && /* @__PURE__ */ e.jsx(H, { fz: 14, fw: 500, children: "Informe" }) }),
361
376
  /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 4, lg: 4 }, children: /* @__PURE__ */ e.jsxs(ne, { gap: "lg", children: [
362
- s.showChangePasswordOnNextLogin && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
377
+ o.showChangePasswordOnNextLogin && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
363
378
  xe,
364
379
  {
365
380
  dataSource: r.dataSource,
366
381
  dataField: "changePasswordOnNextLogin",
367
- label: `${t().t("archbase:Deve alterar senha próximo login ?")}`
382
+ label: `${a().t("archbase:Deve alterar senha próximo login ?")}`
368
383
  }
369
384
  ) }),
370
- s.showAllowPasswordChange && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
385
+ o.showAllowPasswordChange && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
371
386
  xe,
372
387
  {
373
388
  dataSource: r.dataSource,
374
389
  dataField: "allowPasswordChange",
375
- label: `${t().t("archbase:Pode alterar a senha ?")}`
390
+ label: `${a().t("archbase:Pode alterar a senha ?")}`
376
391
  }
377
392
  ) }),
378
- s.showPasswordNeverExpires && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
393
+ o.showPasswordNeverExpires && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
379
394
  xe,
380
395
  {
381
396
  dataSource: r.dataSource,
382
397
  dataField: "passwordNeverExpires",
383
- label: `${t().t("archbase:Senha nunca expira ?")}`
398
+ label: `${a().t("archbase:Senha nunca expira ?")}`
384
399
  }
385
400
  ) })
386
401
  ] }) }),
387
402
  /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 4, lg: 4 }, children: /* @__PURE__ */ e.jsxs(ne, { gap: "lg", children: [
388
- s.showAccountDeactivated && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
403
+ o.showAccountDeactivated && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
389
404
  xe,
390
405
  {
391
406
  dataSource: r.dataSource,
392
407
  dataField: "accountDeactivated",
393
- label: `${t().t("archbase:Conta desativada ?")}`
408
+ label: `${a().t("archbase:Conta desativada ?")}`
394
409
  }
395
410
  ) }),
396
- s.showAccountLocked && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
411
+ o.showAccountLocked && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
397
412
  xe,
398
413
  {
399
414
  dataSource: r.dataSource,
400
415
  dataField: "accountLocked",
401
- label: `${t().t("archbase:Conta bloqueada ?")}`
416
+ label: `${a().t("archbase:Conta bloqueada ?")}`
402
417
  }
403
418
  ) }),
404
- s.showIsAdministrator && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
419
+ o.showIsAdministrator && /* @__PURE__ */ e.jsx(pe.Wrapper, { label: "", children: /* @__PURE__ */ e.jsx(
405
420
  xe,
406
421
  {
407
422
  dataSource: r.dataSource,
408
423
  dataField: "isAdministrator",
409
- label: `${t().t("archbase:Administrador ?")}`
424
+ label: `${a().t("archbase:Administrador ?")}`
410
425
  }
411
426
  ) })
412
427
  ] }) }),
413
428
  /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12, md: 4, lg: 4 }, children: /* @__PURE__ */ e.jsx(ne, { gap: "lg", children: /* @__PURE__ */ e.jsx(
414
- Jr,
429
+ Zr,
415
430
  {
416
- label: t().t("archbase:Foto do usuário"),
431
+ label: a().t("archbase:Foto do usuário"),
417
432
  dataSource: r.dataSource,
418
433
  dataField: "avatar",
419
434
  width: 120,
420
435
  height: 120,
421
- maxSizeKB: s.avatarMaxSizeKB,
422
- imageQuality: s.avatarImageQuality
436
+ maxSizeKB: o.avatarMaxSizeKB,
437
+ imageQuality: o.avatarImageQuality
423
438
  }
424
439
  ) }) })
425
440
  ] }),
426
- s.showGroups && /* @__PURE__ */ e.jsxs(T, { children: [
441
+ o.showGroups && /* @__PURE__ */ e.jsxs(T, { children: [
427
442
  /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12 }, children: /* @__PURE__ */ e.jsx(H, { fz: 14, fw: 500, children: "Grupos" }) }),
428
443
  /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12 }, children: /* @__PURE__ */ e.jsx(
429
- da,
444
+ dt,
430
445
  {
431
- titleAvailable: t().t("archbase:Disponíveis"),
432
- titleAssigned: t().t("archbase:Selecionados"),
433
- assignedItemsDS: new Qr("dsDualList", {
446
+ titleAvailable: a().t("archbase:Disponíveis"),
447
+ titleAssigned: a().t("archbase:Selecionados"),
448
+ assignedItemsDS: new Yr("dsDualList", {
434
449
  records: r.dataSource.getFieldValue("groups"),
435
450
  grandTotalRecords: r.dataSource.getFieldValue("groups").length,
436
451
  currentPage: 0,
@@ -440,49 +455,49 @@ const ua = Xr(
440
455
  width: "100%",
441
456
  height: "200px",
442
457
  availableItemsDS: u,
443
- handleCreateAssociationObject: (l) => Kr.newInstance(l),
444
- idFieldAssigned: (l) => l && l.group ? l.group.id : "",
458
+ handleCreateAssociationObject: (n) => or.newInstance(n),
459
+ idFieldAssigned: (n) => n && n.group ? n.group.id : "",
445
460
  idFieldAvailable: "id",
446
- labelFieldAssigned: (l) => l && l.group ? l.group.name : "",
461
+ labelFieldAssigned: (n) => n && n.group ? n.group.name : "",
447
462
  labelFieldAvailable: "name"
448
463
  }
449
464
  ) })
450
465
  ] }),
451
- s?.customContentAfter && /* @__PURE__ */ e.jsx(e.Fragment, { children: s.customContentAfter }),
452
- /* @__PURE__ */ e.jsx(nr, { h: "12px" })
466
+ o?.customContentAfter && /* @__PURE__ */ e.jsx(e.Fragment, { children: o.customContentAfter(r.dataSource.current) }),
467
+ /* @__PURE__ */ e.jsx(lr, { h: "12px" })
453
468
  ] }) }),
454
- /* @__PURE__ */ e.jsxs($, { justify: "flex-end", mt: "md", children: [
455
- /* @__PURE__ */ e.jsx(V, { variant: "default", onClick: y, children: t().t("archbase:Cancelar") }),
456
- /* @__PURE__ */ e.jsx(V, { onClick: h, children: t().t("archbase:Salvar") })
469
+ /* @__PURE__ */ e.jsxs(G, { justify: "flex-end", mt: "md", children: [
470
+ /* @__PURE__ */ e.jsx(U, { variant: "default", onClick: I, children: a().t("archbase:Cancelar") }),
471
+ /* @__PURE__ */ e.jsx(U, { onClick: y, children: a().t("archbase:Salvar") })
457
472
  ] })
458
473
  ]
459
474
  }
460
475
  );
461
- }, xa = (r) => {
462
- Ee();
463
- const c = { ...r.options ?? {} }, g = () => {
464
- r.onCustomSave ? r.onCustomSave(r.dataSource.current, (s) => {
465
- s && r.onAfterSave && r.onAfterSave(r.dataSource.current), r.onClickOk(r.dataSource.current, s);
476
+ }, xt = (r) => {
477
+ Pe();
478
+ const c = { ...r.options ?? {} }, j = () => {
479
+ r.onCustomSave ? r.onCustomSave(r.dataSource.current, (o) => {
480
+ o && r.onAfterSave && r.onAfterSave(r.dataSource.current), r.onClickOk(r.dataSource.current, o);
466
481
  }) : r.onClickOk(r.dataSource.current, !0);
467
- }, v = () => {
482
+ }, C = () => {
468
483
  r.onClickCancel(r.dataSource.current);
469
484
  };
470
485
  return /* @__PURE__ */ e.jsx(
471
- Te,
486
+ ke,
472
487
  {
473
488
  opened: r.opened,
474
- onClose: v,
475
- title: t().t("archbase:Grupo"),
489
+ onClose: C,
490
+ title: a().t("archbase:Grupo"),
476
491
  size: "60%",
477
492
  styles: { content: { maxWidth: 1e3 } },
478
- children: /* @__PURE__ */ e.jsx(ke, { style: { height: "460px" }, children: /* @__PURE__ */ e.jsxs(ne, { w: "98%", children: [
493
+ children: /* @__PURE__ */ e.jsx(Re, { style: { height: "460px" }, children: /* @__PURE__ */ e.jsxs(ne, { w: "98%", children: [
479
494
  c?.customContentBefore && /* @__PURE__ */ e.jsx(e.Fragment, { children: r.options.customContentBefore }),
480
495
  /* @__PURE__ */ e.jsxs(T, { children: [
481
496
  /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12 }, children: /* @__PURE__ */ e.jsx(
482
497
  re,
483
498
  {
484
- label: `${t().t("archbase:Nome do grupo")}`,
485
- placeholder: `${t().t("archbase:Informe o nome do grupo")}`,
499
+ label: `${a().t("archbase:Nome do grupo")}`,
500
+ placeholder: `${a().t("archbase:Informe o nome do grupo")}`,
486
501
  dataSource: r.dataSource,
487
502
  dataField: "name"
488
503
  }
@@ -490,54 +505,54 @@ const ua = Xr(
490
505
  /* @__PURE__ */ e.jsx(T.Col, { span: { base: 12 }, children: /* @__PURE__ */ e.jsx(
491
506
  re,
492
507
  {
493
- label: `${t().t("archbase:Descrição do grupo")}`,
494
- placeholder: `${t().t("archbase:Informe a descrição do grupo")}`,
508
+ label: `${a().t("archbase:Descrição do grupo")}`,
509
+ placeholder: `${a().t("archbase:Informe a descrição do grupo")}`,
495
510
  dataSource: r.dataSource,
496
511
  dataField: "description"
497
512
  }
498
513
  ) })
499
514
  ] }),
500
515
  c?.customContentAfter && /* @__PURE__ */ e.jsx(e.Fragment, { children: r.options.customContentAfter }),
501
- /* @__PURE__ */ e.jsxs($, { justify: "flex-end", mt: "md", children: [
502
- /* @__PURE__ */ e.jsx(V, { variant: "default", onClick: v, children: t().t("archbase:Cancelar") }),
503
- /* @__PURE__ */ e.jsx(V, { onClick: g, children: t().t("archbase:Salvar") })
516
+ /* @__PURE__ */ e.jsxs(G, { justify: "flex-end", mt: "md", children: [
517
+ /* @__PURE__ */ e.jsx(U, { variant: "default", onClick: C, children: a().t("archbase:Cancelar") }),
518
+ /* @__PURE__ */ e.jsx(U, { onClick: j, children: a().t("archbase:Salvar") })
504
519
  ] })
505
520
  ] }) })
506
521
  }
507
522
  );
508
- }, ma = ({ image: r, label: c, description: g, ...v }) => /* @__PURE__ */ e.jsx("div", { ...v, children: /* @__PURE__ */ e.jsxs($, { grow: !0, children: [
523
+ }, mt = ({ image: r, label: c, description: j, ...C }) => /* @__PURE__ */ e.jsx("div", { ...C, children: /* @__PURE__ */ e.jsxs(G, { grow: !0, children: [
509
524
  /* @__PURE__ */ e.jsx("img", { style: { maxWidth: "32px" }, src: r }),
510
525
  /* @__PURE__ */ e.jsxs("div", { children: [
511
526
  /* @__PURE__ */ e.jsx(H, { size: "sm", children: c }),
512
- /* @__PURE__ */ e.jsx(H, { size: "xs", opacity: 0.65, children: g })
527
+ /* @__PURE__ */ e.jsx(H, { size: "xs", opacity: 0.65, children: j })
513
528
  ] })
514
- ] }) }), fa = (r) => {
515
- Ee();
516
- const [c, g] = U(), v = ee(K.User), s = le(
529
+ ] }) }), ft = (r) => {
530
+ Pe();
531
+ const [c, j] = M(), C = ee(K.User), o = le(
517
532
  "ApiTokenModal",
518
533
  r.dataSource,
519
534
  "expirationDate",
520
535
  ""
521
- ), x = (h) => {
536
+ ), p = (h) => {
522
537
  if (!h)
523
- s.handleValueChange(void 0);
538
+ o.handleValueChange(void 0);
524
539
  else {
525
- const y = typeof h == "string" ? new Date(h) : h, l = Or(y);
526
- s.handleValueChange(l);
540
+ const y = typeof h == "string" ? new Date(h) : h, I = Br(y);
541
+ o.handleValueChange(I);
527
542
  }
528
- g(h);
529
- }, u = async (h, y) => new Promise(async (l, p) => {
543
+ j(h);
544
+ }, u = async (h, y) => new Promise(async (I, n) => {
530
545
  try {
531
- const M = ir(ze.or(ze.eq("name", `^*${y.trim()}*`))), f = await v.findAllWithFilter(M, h, 20);
532
- l({
533
- options: f.content,
534
- page: f.pageable.pageNumber,
535
- totalPages: f.totalPages
546
+ const g = ze(we.or(we.eq("name", `^*${y.trim()}*`))), x = await C.findAllWithFilter(g, h, 20);
547
+ I({
548
+ options: x.content,
549
+ page: x.pageable.pageNumber,
550
+ totalPages: x.totalPages
536
551
  });
537
- } catch (M) {
538
- p(Ae(M));
552
+ } catch (g) {
553
+ n(Te(g));
539
554
  }
540
- }), C = () => {
555
+ }), v = () => {
541
556
  r.onCustomSave ? r.onCustomSave(r.dataSource.current, (h) => {
542
557
  h && r.onAfterSave && r.onAfterSave(r.dataSource.current), r.onClickOk(r.dataSource.current, h);
543
558
  }) : r.onClickOk(r.dataSource.current, !0);
@@ -545,19 +560,19 @@ const ua = Xr(
545
560
  r.onClickCancel(r.dataSource.current);
546
561
  };
547
562
  return /* @__PURE__ */ e.jsxs(
548
- Te,
563
+ ke,
549
564
  {
550
565
  opened: r.opened,
551
566
  onClose: E,
552
- title: t().t("archbase:Token de API"),
567
+ title: a().t("archbase:Token de API"),
553
568
  size: "50%",
554
569
  children: [
555
- /* @__PURE__ */ e.jsxs(ke, { style: { height: "300px" }, children: [
570
+ /* @__PURE__ */ e.jsxs(Re, { style: { height: "300px" }, children: [
556
571
  /* @__PURE__ */ e.jsx(
557
572
  re,
558
573
  {
559
- label: `${t().t("archbase:Nome do token")}`,
560
- placeholder: `${t().t("archbase:Informe o nome do token")}`,
574
+ label: `${a().t("archbase:Nome do token")}`,
575
+ placeholder: `${a().t("archbase:Informe o nome do token")}`,
561
576
  dataSource: r.dataSource,
562
577
  dataField: "name"
563
578
  }
@@ -565,93 +580,93 @@ const ua = Xr(
565
580
  /* @__PURE__ */ e.jsx(
566
581
  re,
567
582
  {
568
- label: `${t().t("archbase:Descrição do token")}`,
569
- placeholder: `${t().t("archbase:Informe a descrição do token")}`,
583
+ label: `${a().t("archbase:Descrição do token")}`,
584
+ placeholder: `${a().t("archbase:Informe a descrição do token")}`,
570
585
  dataSource: r.dataSource,
571
586
  dataField: "description"
572
587
  }
573
588
  ),
574
589
  /* @__PURE__ */ e.jsx(
575
- ta,
590
+ at,
576
591
  {
577
592
  withSeconds: !0,
578
593
  value: c,
579
- onChange: x,
594
+ onChange: p,
580
595
  label: "Data/hora expiração",
581
596
  placeholder: "Selecione a data de expiração"
582
597
  }
583
598
  ),
584
599
  /* @__PURE__ */ e.jsx(
585
- Zr,
600
+ Qr,
586
601
  {
587
- label: `${t().t("archbase:Usuário")}`,
602
+ label: `${a().t("archbase:Usuário")}`,
588
603
  dataSource: r.dataSource,
589
604
  dataField: "user",
590
- placeholder: `${t().t("archbase:Digite aqui o nome do usuário")}`,
605
+ placeholder: `${a().t("archbase:Digite aqui o nome do usuário")}`,
591
606
  getOptionLabel: (h) => h && h.email ? h.email : "",
592
607
  getOptionValue: (h) => h && h.id ? h.id.toString() : "",
593
608
  getOptions: u,
594
609
  debounceTime: 500,
595
610
  minCharsToSearch: 1,
596
- itemComponent: ma
611
+ itemComponent: mt
597
612
  }
598
613
  )
599
614
  ] }),
600
- /* @__PURE__ */ e.jsxs($, { justify: "flex-end", mt: "md", children: [
601
- /* @__PURE__ */ e.jsx(V, { variant: "default", onClick: E, children: t().t("archbase:Cancelar") }),
602
- /* @__PURE__ */ e.jsx(V, { onClick: C, children: t().t("archbase:Salvar") })
615
+ /* @__PURE__ */ e.jsxs(G, { justify: "flex-end", mt: "md", children: [
616
+ /* @__PURE__ */ e.jsx(U, { variant: "default", onClick: E, children: a().t("archbase:Cancelar") }),
617
+ /* @__PURE__ */ e.jsx(U, { onClick: v, children: a().t("archbase:Salvar") })
603
618
  ] })
604
619
  ]
605
620
  }
606
621
  );
607
- }, sr = (r) => {
622
+ }, ir = (r) => {
608
623
  const c = "->";
609
- return r.includes(c) ? r.split(c).map((s) => s.trim()).map((s) => t().t(s)).join(` ${c} `) : t().t(r);
624
+ return r.includes(c) ? r.split(c).map((o) => o.trim()).map((o) => a().t(o)).join(` ${c} `) : a().t(r);
610
625
  };
611
- function Ve({ dataSource: r, opened: c, close: g }) {
612
- const v = me(() => r?.getFieldValue("name") || "", [r]), s = me(() => r?.getFieldValue("id") || "", [r]), x = me(() => r?.getFieldValue("type") || "", [r]), u = Ye(), C = Ye(), [E, h] = U([]), [y, l] = U([]), [p, M] = U(), [f, ae] = U(), [J, te] = U(""), [Q] = _e(J, 200), [D, N] = U(""), [I] = _e(D, 200), q = ee(K.Resource), { colorScheme: o } = Me(), w = o === "dark" ? "var(--mantine-primary-color-7)" : "var(--mantine-primary-color-4)", O = me(() => y.sort((n, i) => n.resourceDescription.localeCompare(i.resourceDescription)).map((n) => ({
613
- value: n.resourceId,
614
- label: n.resourceDescription,
615
- children: n.permissions.filter((i) => i.actionDescription.toLowerCase().includes(I.toLowerCase())).sort((i, P) => i.actionDescription.localeCompare(P.actionDescription)).map((i) => ({
616
- value: i.actionId,
617
- label: i.actionDescription,
626
+ function Me({ dataSource: r, opened: c, close: j }) {
627
+ const C = me(() => r?.getFieldValue("name") || "", [r]), o = me(() => r?.getFieldValue("id") || "", [r]), p = me(() => r?.getFieldValue("type") || "", [r]), u = Xe(), v = Xe(), [E, h] = M([]), [y, I] = M([]), [n, g] = M(), [x, te] = M(), [J, ae] = M(""), [Q] = er(J, 200), [P, N] = M(""), [D] = er(P, 200), q = ee(K.Resource), { colorScheme: s } = Oe(), w = s === "dark" ? "var(--mantine-primary-color-7)" : "var(--mantine-primary-color-4)", O = me(() => y.sort((i, l) => i.resourceDescription.localeCompare(l.resourceDescription)).map((i) => ({
628
+ value: i.resourceId,
629
+ label: i.resourceDescription,
630
+ children: i.permissions.filter((l) => l.actionDescription.toLowerCase().includes(D.toLowerCase())).sort((l, $) => l.actionDescription.localeCompare($.actionDescription)).map((l) => ({
631
+ value: l.actionId,
632
+ label: l.actionDescription,
618
633
  nodeProps: {
619
- permissionId: i.permissionId,
620
- types: i.types ?? [],
621
- owner: n
634
+ permissionId: l.permissionId,
635
+ types: l.types ?? [],
636
+ owner: i
622
637
  }
623
638
  }))
624
- })), [y, I]), d = me(() => y.map((n) => n.permissions.map((i) => i.actionId)).flat(), [y]), b = me(() => E.sort((n, i) => n.resourceDescription.localeCompare(i.resourceDescription)).map((n) => ({
625
- value: n.resourceId,
626
- label: n.resourceDescription,
627
- children: n.permissions.filter((i) => i.actionDescription.toLowerCase().includes(Q.toLowerCase())).sort((i, P) => i.actionDescription.localeCompare(P.actionDescription)).map((i) => {
628
- const P = y.find((S) => S.resourceId === n.resourceId)?.permissions.find((S) => S.actionId === i.actionId);
639
+ })), [y, D]), d = me(() => y.map((i) => i.permissions.map((l) => l.actionId)).flat(), [y]), f = me(() => E.sort((i, l) => i.resourceDescription.localeCompare(l.resourceDescription)).map((i) => ({
640
+ value: i.resourceId,
641
+ label: i.resourceDescription,
642
+ children: i.permissions.filter((l) => l.actionDescription.toLowerCase().includes(Q.toLowerCase())).sort((l, $) => l.actionDescription.localeCompare($.actionDescription)).map((l) => {
643
+ const $ = y.find((S) => S.resourceId === i.resourceId)?.permissions.find((S) => S.actionId === l.actionId);
629
644
  return {
630
- value: i.actionId,
631
- label: i.actionDescription,
645
+ value: l.actionId,
646
+ label: l.actionDescription,
632
647
  nodeProps: {
633
- granted: d.includes(i.actionId) && P?.types?.includes(ue(F, x)),
634
- owner: n
648
+ granted: d.includes(l.actionId) && $?.types?.includes(ue(F, p)),
649
+ owner: i
635
650
  }
636
651
  };
637
652
  })
638
- })), [E, y, d, x, Q]), m = ge(async () => {
639
- if (s) {
640
- const n = await q.getPermissionsBySecurityId(s, x), i = await q.getAllPermissionsAvailable();
641
- h(i), l(n);
653
+ })), [E, y, d, p, Q]), m = ge(async () => {
654
+ if (o) {
655
+ const i = await q.getPermissionsBySecurityId(o, p), l = await q.getAllPermissionsAvailable();
656
+ h(l), I(i);
642
657
  }
643
- }, [s, x]), he = ge(() => {
644
- p?.value && s && q.createPermission(s, p.value, x).then((n) => {
645
- if (n) {
646
- l((z) => {
658
+ }, [o, p]), he = ge(() => {
659
+ n?.value && o && q.createPermission(o, n.value, p).then((i) => {
660
+ if (i) {
661
+ I((z) => {
647
662
  let k;
648
- return z.map((A) => A.resourceId).includes(n.resourceId) ? k = z.map((A) => A.resourceId === n.resourceId ? A.permissions.map((R) => R.actionId).includes(p.value) ? {
663
+ return z.map((A) => A.resourceId).includes(i.resourceId) ? k = z.map((A) => A.resourceId === i.resourceId ? A.permissions.map((R) => R.actionId).includes(n.value) ? {
649
664
  ...A,
650
665
  permissions: A.permissions.map(
651
- (R) => R.actionId === p.value ? {
666
+ (R) => R.actionId === n.value ? {
652
667
  ...R,
653
- permissionId: n.permissionId,
654
- types: [...R.types ?? [], ue(F, x)]
668
+ permissionId: i.permissionId,
669
+ types: [...R.types ?? [], ue(F, p)]
655
670
  } : R
656
671
  )
657
672
  } : {
@@ -659,99 +674,99 @@ function Ve({ dataSource: r, opened: c, close: g }) {
659
674
  permissions: [
660
675
  ...A.permissions ?? [],
661
676
  {
662
- actionId: n.actionId,
663
- actionDescription: n.actionDescription,
664
- permissionId: n.permissionId,
665
- types: [ue(F, x)]
677
+ actionId: i.actionId,
678
+ actionDescription: i.actionDescription,
679
+ permissionId: i.permissionId,
680
+ types: [ue(F, p)]
666
681
  }
667
682
  ]
668
683
  } : A) : k = [
669
684
  ...z,
670
685
  {
671
- resourceId: n.resourceId,
672
- resourceDescription: n.resourceDescription,
686
+ resourceId: i.resourceId,
687
+ resourceDescription: i.resourceDescription,
673
688
  permissions: [
674
689
  {
675
- actionId: n.actionId,
676
- actionDescription: n.actionDescription,
677
- permissionId: n.permissionId,
678
- types: [ue(F, x)]
690
+ actionId: i.actionId,
691
+ actionDescription: i.actionDescription,
692
+ permissionId: i.permissionId,
693
+ types: [ue(F, p)]
679
694
  }
680
695
  ]
681
696
  }
682
697
  ], k;
683
698
  });
684
- const i = b.filter((z) => z.value === p?.nodeProps?.owner?.resourceId).map((z) => z.children).flat(), P = i.map((z) => z.value).indexOf(p.value), S = i.find((z, k) => !z?.nodeProps?.granted && z?.value !== p.value && (i.length > P + 1 ? k > P : !0));
685
- S?.value && u.select(S.value), C.expand(n.resourceId), M(S);
699
+ const l = f.filter((z) => z.value === n?.nodeProps?.owner?.resourceId).map((z) => z.children).flat(), $ = l.map((z) => z.value).indexOf(n.value), S = l.find((z, k) => !z?.nodeProps?.granted && z?.value !== n.value && (l.length > $ + 1 ? k > $ : !0));
700
+ S?.value && u.select(S.value), v.expand(i.resourceId), g(S);
686
701
  }
687
702
  });
688
- }, [p, s, x, q, b, E, y, u, C]), ce = ge(() => {
689
- f?.nodeProps?.permissionId && q.deletePermission(f.nodeProps.permissionId).then(() => {
690
- l((S) => [...S].filter((k) => {
703
+ }, [n, o, p, q, f, E, y, u, v]), ce = ge(() => {
704
+ x?.nodeProps?.permissionId && q.deletePermission(x.nodeProps.permissionId).then(() => {
705
+ I((S) => [...S].filter((k) => {
691
706
  let A = !0;
692
707
  return k.permissions?.forEach((R) => {
693
- R.permissionId !== void 0 && R.permissionId === f?.nodeProps?.permissionId && k.permissions.length === 1 && R?.types?.length === 1 && R.types[0] === ue(F, x) && (A = !1);
708
+ R.permissionId !== void 0 && R.permissionId === x?.nodeProps?.permissionId && k.permissions.length === 1 && R?.types?.length === 1 && R.types[0] === ue(F, p) && (A = !1);
694
709
  }), A;
695
710
  }).map((k) => {
696
- const A = f?.nodeProps?.owner;
697
- return k.resourceId === A.resourceId ? f?.nodeProps?.types?.length === 1 ? {
711
+ const A = x?.nodeProps?.owner;
712
+ return k.resourceId === A.resourceId ? x?.nodeProps?.types?.length === 1 ? {
698
713
  ...k,
699
- permissions: [...(k.permissions ?? []).filter((R) => R.permissionId !== f?.nodeProps?.permissionId)]
714
+ permissions: [...(k.permissions ?? []).filter((R) => R.permissionId !== x?.nodeProps?.permissionId)]
700
715
  } : {
701
716
  ...k,
702
- permissions: (k.permissions ?? []).map((R) => R.actionId === f.value ? {
717
+ permissions: (k.permissions ?? []).map((R) => R.actionId === x.value ? {
703
718
  actionId: R.actionId,
704
719
  actionDescription: R.actionDescription,
705
- types: [...R.types?.filter((G) => G && G !== ue(F, x)) ?? []]
720
+ types: [...R.types?.filter((V) => V && V !== ue(F, p)) ?? []]
706
721
  } : R)
707
722
  } : k;
708
723
  }));
709
- const n = O.filter((S) => S.value === f?.nodeProps?.owner?.resourceId).map((S) => S.children).flat(), i = n.map((S) => S.value).indexOf(f.value), P = n.find((S, z) => S?.nodeProps?.types.includes(ue(F, x)) && S?.value !== f.value && (n.length > i + 1 ? z > i : !0));
710
- P?.value && C.select(P.value), ae(P);
724
+ const i = O.filter((S) => S.value === x?.nodeProps?.owner?.resourceId).map((S) => S.children).flat(), l = i.map((S) => S.value).indexOf(x.value), $ = i.find((S, z) => S?.nodeProps?.types.includes(ue(F, p)) && S?.value !== x.value && (i.length > l + 1 ? z > l : !0));
725
+ $?.value && v.select($.value), te($);
711
726
  });
712
- }, [f, q, x, O, y, C]);
713
- return Ne(() => {
714
- c && r && (M(void 0), ae(void 0), te(""), N(""), C.collapseAllNodes(), u.collapseAllNodes(), m());
715
- }, [c, x, s, m]), r ? /* @__PURE__ */ e.jsx(Te, { opened: c, onClose: g, title: `${t().t(`archbase:${x}`)}: ${v}`, size: "80%", styles: { root: { overflow: "hidden" } }, children: /* @__PURE__ */ e.jsxs(oa, { height: "540px", children: [
716
- /* @__PURE__ */ e.jsx(sa, { children: /* @__PURE__ */ e.jsx(ke, { h: "500px", children: /* @__PURE__ */ e.jsx(X, { withBorder: !0, my: 20, p: 20, children: /* @__PURE__ */ e.jsxs(T, { columns: 20, children: [
727
+ }, [x, q, p, O, y, v]);
728
+ return Ee(() => {
729
+ c && r && (g(void 0), te(void 0), ae(""), N(""), v.collapseAllNodes(), u.collapseAllNodes(), m());
730
+ }, [c, p, o, m]), r ? /* @__PURE__ */ e.jsx(ke, { opened: c, onClose: j, title: `${a().t(`archbase:${p}`)}: ${C}`, size: "80%", styles: { root: { overflow: "hidden" } }, children: /* @__PURE__ */ e.jsxs(ot, { height: "540px", children: [
731
+ /* @__PURE__ */ e.jsx(st, { children: /* @__PURE__ */ e.jsx(Re, { h: "500px", children: /* @__PURE__ */ e.jsx(X, { withBorder: !0, my: 20, p: 20, children: /* @__PURE__ */ e.jsxs(T, { columns: 20, children: [
717
732
  /* @__PURE__ */ e.jsxs(T.Col, { span: 9, children: [
718
- /* @__PURE__ */ e.jsxs($, { mb: 20, children: [
719
- /* @__PURE__ */ e.jsx(H, { children: t().t("archbase:Available") }),
733
+ /* @__PURE__ */ e.jsxs(G, { mb: 20, children: [
734
+ /* @__PURE__ */ e.jsx(H, { children: a().t("archbase:Available") }),
720
735
  /* @__PURE__ */ e.jsx(
721
- Xe,
736
+ Ke,
722
737
  {
723
738
  size: "xs",
724
739
  value: J,
725
- onChange: (n) => te(n.target.value),
726
- placeholder: t().t("archbase:Filter available permissions")
740
+ onChange: (i) => ae(i.target.value),
741
+ placeholder: a().t("archbase:Filter available permissions")
727
742
  }
728
743
  )
729
744
  ] }),
730
745
  /* @__PURE__ */ e.jsx(
731
- Ke,
746
+ _e,
732
747
  {
733
- data: b,
748
+ data: f,
734
749
  selectOnClick: !0,
735
750
  allowRangeSelection: !1,
736
751
  tree: u,
737
- renderNode: ({ level: n, node: i, expanded: P, hasChildren: S, selected: z, elementProps: k }) => {
738
- const A = i?.nodeProps?.granted, R = A ? "dimmed" : void 0, G = A ? "line-through" : void 0, De = ge((W) => {
739
- M(i), k.onClick(W);
740
- }, [i, k.onClick]);
752
+ renderNode: ({ level: i, node: l, expanded: $, hasChildren: S, selected: z, elementProps: k }) => {
753
+ const A = l?.nodeProps?.granted, R = A ? "dimmed" : void 0, V = A ? "line-through" : void 0, $e = ge((W) => {
754
+ g(l), k.onClick(W);
755
+ }, [l, k.onClick]);
741
756
  return /* @__PURE__ */ e.jsxs(
742
- $,
757
+ G,
743
758
  {
744
759
  ml: S ? 0 : 5,
745
760
  gap: 5,
746
761
  ...k,
747
- bg: z && n === 2 ? w : "",
748
- onClick: De,
762
+ bg: z && i === 2 ? w : "",
763
+ onClick: $e,
749
764
  children: [
750
765
  S && /* @__PURE__ */ e.jsx(
751
- rr,
766
+ tr,
752
767
  {
753
768
  size: 18,
754
- style: { transform: P ? "rotate(0deg)" : "rotate(-90deg)" }
769
+ style: { transform: $ ? "rotate(0deg)" : "rotate(-90deg)" }
755
770
  }
756
771
  ),
757
772
  !S && /* @__PURE__ */ e.jsx(
@@ -765,8 +780,8 @@ function Ve({ dataSource: r, opened: c, close: g }) {
765
780
  H,
766
781
  {
767
782
  c: R,
768
- td: G,
769
- children: sr(i.label)
783
+ td: V,
784
+ children: ir(l.label)
770
785
  }
771
786
  )
772
787
  ]
@@ -777,47 +792,47 @@ function Ve({ dataSource: r, opened: c, close: g }) {
777
792
  )
778
793
  ] }),
779
794
  /* @__PURE__ */ e.jsx(T.Col, { span: 2, children: /* @__PURE__ */ e.jsxs(ne, { gap: 5, style: { minWidth: "10%" }, justify: "center", align: "center", h: "100%", children: [
780
- /* @__PURE__ */ e.jsx(ie, { label: t().t("archbase:Add"), children: /* @__PURE__ */ e.jsx(B, { onClick: he, disabled: !p || p?.nodeProps?.granted || !p.nodeProps, children: /* @__PURE__ */ e.jsx(dr, {}) }) }),
781
- /* @__PURE__ */ e.jsx(ie, { label: t().t("archbase:Remove"), children: /* @__PURE__ */ e.jsx(B, { onClick: ce, disabled: !f || !f?.nodeProps?.permissionId || !f.nodeProps, children: /* @__PURE__ */ e.jsx(ur, {}) }) })
795
+ /* @__PURE__ */ e.jsx(ie, { label: a().t("archbase:Add"), children: /* @__PURE__ */ e.jsx(B, { onClick: he, disabled: !n || n?.nodeProps?.granted || !n.nodeProps, children: /* @__PURE__ */ e.jsx(ur, {}) }) }),
796
+ /* @__PURE__ */ e.jsx(ie, { label: a().t("archbase:Remove"), children: /* @__PURE__ */ e.jsx(B, { onClick: ce, disabled: !x || !x?.nodeProps?.permissionId || !x.nodeProps, children: /* @__PURE__ */ e.jsx(hr, {}) }) })
782
797
  ] }) }),
783
798
  /* @__PURE__ */ e.jsxs(T.Col, { span: 9, children: [
784
- /* @__PURE__ */ e.jsxs($, { mb: 20, children: [
785
- /* @__PURE__ */ e.jsx(H, { children: t().t("archbase:Granted") }),
799
+ /* @__PURE__ */ e.jsxs(G, { mb: 20, children: [
800
+ /* @__PURE__ */ e.jsx(H, { children: a().t("archbase:Granted") }),
786
801
  /* @__PURE__ */ e.jsx(
787
- Xe,
802
+ Ke,
788
803
  {
789
804
  size: "xs",
790
- value: D,
791
- onChange: (n) => N(n.target.value),
792
- placeholder: t().t("archbase:Filter granted permissions")
805
+ value: P,
806
+ onChange: (i) => N(i.target.value),
807
+ placeholder: a().t("archbase:Filter granted permissions")
793
808
  }
794
809
  )
795
810
  ] }),
796
811
  /* @__PURE__ */ e.jsx(
797
- Ke,
812
+ _e,
798
813
  {
799
814
  data: O,
800
815
  selectOnClick: !0,
801
816
  allowRangeSelection: !1,
802
- tree: C,
803
- renderNode: ({ level: n, node: i, expanded: P, hasChildren: S, selected: z, elementProps: k }) => {
817
+ tree: v,
818
+ renderNode: ({ level: i, node: l, expanded: $, hasChildren: S, selected: z, elementProps: k }) => {
804
819
  const A = ge((R) => {
805
- ae(i), k.onClick(R);
806
- }, [i, k.onClick]);
820
+ te(l), k.onClick(R);
821
+ }, [l, k.onClick]);
807
822
  return /* @__PURE__ */ e.jsxs(
808
- $,
823
+ G,
809
824
  {
810
825
  ml: S ? 0 : 5,
811
826
  gap: 5,
812
827
  ...k,
813
- bg: z && n === 2 ? w : "",
828
+ bg: z && i === 2 ? w : "",
814
829
  onClick: A,
815
830
  children: [
816
831
  S && /* @__PURE__ */ e.jsx(
817
- rr,
832
+ tr,
818
833
  {
819
834
  size: 18,
820
- style: { transform: P ? "rotate(0deg)" : "rotate(-90deg)" }
835
+ style: { transform: $ ? "rotate(0deg)" : "rotate(-90deg)" }
821
836
  }
822
837
  ),
823
838
  !S && /* @__PURE__ */ e.jsx(
@@ -827,10 +842,10 @@ function Ve({ dataSource: r, opened: c, close: g }) {
827
842
  style: { transform: "rotate(-90deg)", marginTop: "-5px" }
828
843
  }
829
844
  ),
830
- /* @__PURE__ */ e.jsx(H, { children: sr(i.label) }),
831
- i?.nodeProps?.types?.includes("USER") && /* @__PURE__ */ e.jsx(Ce, { color: "blue", children: t().t("archbase:user") }),
832
- i?.nodeProps?.types?.includes("GROUP") && /* @__PURE__ */ e.jsx(Ce, { color: "orange", children: t().t("archbase:group") }),
833
- i?.nodeProps?.types?.includes("PROFILE") && /* @__PURE__ */ e.jsx(Ce, { color: "pink", children: t().t("archbase:profile") })
845
+ /* @__PURE__ */ e.jsx(H, { children: ir(l.label) }),
846
+ l?.nodeProps?.types?.includes("USER") && /* @__PURE__ */ e.jsx(Ae, { color: "blue", children: a().t("archbase:user") }),
847
+ l?.nodeProps?.types?.includes("GROUP") && /* @__PURE__ */ e.jsx(Ae, { color: "orange", children: a().t("archbase:group") }),
848
+ l?.nodeProps?.types?.includes("PROFILE") && /* @__PURE__ */ e.jsx(Ae, { color: "pink", children: a().t("archbase:profile") })
834
849
  ]
835
850
  }
836
851
  );
@@ -839,19 +854,19 @@ function Ve({ dataSource: r, opened: c, close: g }) {
839
854
  )
840
855
  ] })
841
856
  ] }) }) }) }),
842
- /* @__PURE__ */ e.jsx(na, { size: "40px", children: /* @__PURE__ */ e.jsx($, { justify: "flex-end", children: /* @__PURE__ */ e.jsx(V, { onClick: g, children: t().t("archbase:Close") }) }) })
857
+ /* @__PURE__ */ e.jsx(nt, { size: "40px", children: /* @__PURE__ */ e.jsx(G, { justify: "flex-end", children: /* @__PURE__ */ e.jsx(U, { onClick: j, children: a().t("archbase:Close") }) }) })
843
858
  ] }) }) : null;
844
859
  }
845
- const Ue = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABMCAMAAAD5ogFjAAABj1BMVEUAAADMzMzLy8vAwMDLy8vLy8vLy8vMzMzKysrR0dHPz8/MzMzNzc3KysrMzMzKysrLy8vLy8vLy8vJycnR0dHMzMzPz8/Ozs7MzMxPT0/Nzc1UVFTJyclTU1PMzMzKysrMzMzJycldXV1iYmLMzMzIyMhNTU1NTU3MzMzLy8vNzc3MzMxVVVXLy8vMzMzLy8vLy8tNTU3MzMzOzs5QUFDLy8vKyspRUVFRUVHMzMxZWVlycnLLy8tUVFTJycnKyspZWVlXV1dhYWHGxsZMTExQUFBPT0/Ozs7Ly8vPz89SUlJSUlLMzMxVVVVWVlZVVVXKysptbW1bW1t6enpmZmbLy8tKSkrQ0NDOzs5FRUXNzc1NTU3S0tLU1NRHR0dSUlKzs7ORkZF4eHhPT0/Jycm9vb26urp8fHxYWFisrKylpaWdnZ11dXVubm5fX1+8vLy3t7ehoaFkZGRVVVXBwcG/v7+vr6+ZmZmUlJSNjY2GhoZzc3NcXFzGxsbDw8Ofn5+WlpaBgYGwsLCpqalqampaWRCJAAAAVXRSTlMA+YUG1M7Df1AQ8urbdWdiXjo2HQkE+/vu4qqIcV1bRDEpIRwXFO/q2ZiObWJZSiv+9uTe3cq8s6qkgX55b1pWR0YVDfvJyLCcmZWTi2lZVz82LRcUQGGNCgAAA9pJREFUWMPll2db2zAQgJ0AgUIYDSl7tZRZ6N57793akizZCSSEEJKw9yi0/eHtEwgid5IxfOX9mnvenM93J8s4tZw5391Q3/Hu0mj3lTMnllys+hi6HqBCCCIEDVwPDVddPEEqXW9qiEOoeQAlDqlpGz1eYo2VYSFsE2ELcSPY6FvTV1njUFMDdVqCff48DWGgAdhOuMtPie8JrUaWq+3I5zs76Jg+cG50e3seVxPTF6S63svT0URNn1BSqffUEhvHE/ofgn8x9aZLKJpcja/sZnO57Pp0yqbIVKv2VDUBD93amedsn0QuA1U2eazynG8BceRPnrnWAczdmAERtLoHe6IhAaJWLWaVwNLLBPxXxQskCjogZse1ICz2G+TkDKNGbAb5THELwzaXQB2bzpZ6zt0GD5acZ5bKNA4LGSorET2BDz/NLDVT0FQywGW34GT81YhYForKo4dbCHjsVMLSEJuxgWnUkMAKkTmmE7E52ExhuX2vBGDzj+lFa7AKzRHUQ1K0qheNQZETPHj3FQSKfulF0zCYlpcVpyyAlseypcOdojC6uThxdQLt94mYTpRI2WjvduyL3kqRbGxXk1A+iYJFmywRhEyCIuEZwUXqq7Hxb+M60QYOtlsaZa3BT7PazuZxisP3VkA3/MX79a8QHH5574iWtfbZ2RDRUBDVA5HPzsbvvw6LaMZraLGodu9YdEzPhsRrBCIq985FLDKpto8mKY4WD+VWQymlXWVjpydshaiuILpcEKGxjSkfLE4VwaSqIOq5aioQ40w1IMRUEUEjgrctXkaqEZFDi1lccL1fGd5s94RKRLMMJZSTHrBGcEfiMxJ3Ne5HeYhg7CX03vgsVUZGiuesLBJqSrzUcNxgFBxHMGA2gVeRAjFkFOkJmCqSebekqzeTyrDmQ182IV8NEJtQNtytc+irBn5rwUHLqMJEvSGJlitCCCr2BsVRNFzyGdklcEQcHwAZop58SRmqEt2aZ3iJpChMuyJqlPC1CQRs51RDm08RdIAAhpzD6dCpvPpjNJ2hh5NyhvCFb5DIq0F83NKd/VY2LlWkXHFXjlTTfU1qlzNLC+OTs8Tev0JElHfZQkpkaT0GNEiVWJ8oqIjm8vdQ2GR7bAFrsGphbZHYQnthC5orm8y1fOCy9Fhy2NDyANVYr3IfGB6MXOM+Rdc+GZ48venLxG8+M46g9y734bl7wTiazlZ+hKZ1xPBFb/sA99D0t/cafrnQ3sq50sJb2+FTefOz804/50DC+++MPDeOTe+XD68GeJGXA6/ff4bJ+OfHt2edj+7ff9T59Ptz47TyD0dpv5fjoIC3AAAAAElFTkSuQmCC", ba = (r) => r.groups ? /* @__PURE__ */ e.jsx("div", { style: { display: "flex" }, children: r.groups ? r.groups.map((c, g) => /* @__PURE__ */ e.jsx("div", { style: { paddingRight: "2px" }, children: /* @__PURE__ */ e.jsx(Ce, { color: "blue", children: c.group?.name }) }, g)) : null }) : null, ja = (r) => r.profile ? /* @__PURE__ */ e.jsx(Ce, { color: "green", children: r.profile?.name }) : null;
846
- function Fa({
860
+ const Ne = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABMCAMAAAD5ogFjAAABj1BMVEUAAADMzMzLy8vAwMDLy8vLy8vLy8vMzMzKysrR0dHPz8/MzMzNzc3KysrMzMzKysrLy8vLy8vLy8vJycnR0dHMzMzPz8/Ozs7MzMxPT0/Nzc1UVFTJyclTU1PMzMzKysrMzMzJycldXV1iYmLMzMzIyMhNTU1NTU3MzMzLy8vNzc3MzMxVVVXLy8vMzMzLy8vLy8tNTU3MzMzOzs5QUFDLy8vKyspRUVFRUVHMzMxZWVlycnLLy8tUVFTJycnKyspZWVlXV1dhYWHGxsZMTExQUFBPT0/Ozs7Ly8vPz89SUlJSUlLMzMxVVVVWVlZVVVXKysptbW1bW1t6enpmZmbLy8tKSkrQ0NDOzs5FRUXNzc1NTU3S0tLU1NRHR0dSUlKzs7ORkZF4eHhPT0/Jycm9vb26urp8fHxYWFisrKylpaWdnZ11dXVubm5fX1+8vLy3t7ehoaFkZGRVVVXBwcG/v7+vr6+ZmZmUlJSNjY2GhoZzc3NcXFzGxsbDw8Ofn5+WlpaBgYGwsLCpqalqampaWRCJAAAAVXRSTlMA+YUG1M7Df1AQ8urbdWdiXjo2HQkE+/vu4qqIcV1bRDEpIRwXFO/q2ZiObWJZSiv+9uTe3cq8s6qkgX55b1pWR0YVDfvJyLCcmZWTi2lZVz82LRcUQGGNCgAAA9pJREFUWMPll2db2zAQgJ0AgUIYDSl7tZRZ6N57793akizZCSSEEJKw9yi0/eHtEwgid5IxfOX9mnvenM93J8s4tZw5391Q3/Hu0mj3lTMnllys+hi6HqBCCCIEDVwPDVddPEEqXW9qiEOoeQAlDqlpGz1eYo2VYSFsE2ELcSPY6FvTV1njUFMDdVqCff48DWGgAdhOuMtPie8JrUaWq+3I5zs76Jg+cG50e3seVxPTF6S63svT0URNn1BSqffUEhvHE/ofgn8x9aZLKJpcja/sZnO57Pp0yqbIVKv2VDUBD93amedsn0QuA1U2eazynG8BceRPnrnWAczdmAERtLoHe6IhAaJWLWaVwNLLBPxXxQskCjogZse1ICz2G+TkDKNGbAb5THELwzaXQB2bzpZ6zt0GD5acZ5bKNA4LGSorET2BDz/NLDVT0FQywGW34GT81YhYForKo4dbCHjsVMLSEJuxgWnUkMAKkTmmE7E52ExhuX2vBGDzj+lFa7AKzRHUQ1K0qheNQZETPHj3FQSKfulF0zCYlpcVpyyAlseypcOdojC6uThxdQLt94mYTpRI2WjvduyL3kqRbGxXk1A+iYJFmywRhEyCIuEZwUXqq7Hxb+M60QYOtlsaZa3BT7PazuZxisP3VkA3/MX79a8QHH5574iWtfbZ2RDRUBDVA5HPzsbvvw6LaMZraLGodu9YdEzPhsRrBCIq985FLDKpto8mKY4WD+VWQymlXWVjpydshaiuILpcEKGxjSkfLE4VwaSqIOq5aioQ40w1IMRUEUEjgrctXkaqEZFDi1lccL1fGd5s94RKRLMMJZSTHrBGcEfiMxJ3Ne5HeYhg7CX03vgsVUZGiuesLBJqSrzUcNxgFBxHMGA2gVeRAjFkFOkJmCqSebekqzeTyrDmQ182IV8NEJtQNtytc+irBn5rwUHLqMJEvSGJlitCCCr2BsVRNFzyGdklcEQcHwAZop58SRmqEt2aZ3iJpChMuyJqlPC1CQRs51RDm08RdIAAhpzD6dCpvPpjNJ2hh5NyhvCFb5DIq0F83NKd/VY2LlWkXHFXjlTTfU1qlzNLC+OTs8Tev0JElHfZQkpkaT0GNEiVWJ8oqIjm8vdQ2GR7bAFrsGphbZHYQnthC5orm8y1fOCy9Fhy2NDyANVYr3IfGB6MXOM+Rdc+GZ48venLxG8+M46g9y734bl7wTiazlZ+hKZ1xPBFb/sA99D0t/cafrnQ3sq50sJb2+FTefOz804/50DC+++MPDeOTe+XD68GeJGXA6/ff4bJ+OfHt2edj+7ff9T59Ptz47TyD0dpv5fjoIC3AAAAAElFTkSuQmCC", bt = (r) => r.groups ? /* @__PURE__ */ e.jsx("div", { style: { display: "flex" }, children: r.groups ? r.groups.map((c, j) => /* @__PURE__ */ e.jsx("div", { style: { paddingRight: "2px" }, children: /* @__PURE__ */ e.jsx(Ae, { color: "blue", children: c.group?.name }) }, j)) : null }) : null, jt = (r) => r.profile ? /* @__PURE__ */ e.jsx(Ae, { color: "green", children: r.profile?.name }) : null;
861
+ function Ft({
847
862
  height: r = "400px",
848
863
  width: c = "100%",
849
- createEntitiesWithId: g = !0,
850
- userModalOptions: v,
851
- profileModalOptions: s,
852
- groupModalOptions: x
864
+ createEntitiesWithId: j = !0,
865
+ userModalOptions: C,
866
+ profileModalOptions: o,
867
+ groupModalOptions: p
853
868
  }) {
854
- const u = lr(), C = cr("securityStore"), E = Br(), { colorScheme: h } = Me(), [y, l] = U(void 0), [p, M] = U("users"), f = ee(K.User), ae = ee(K.Group), J = ee(K.Resource), te = ee(K.Profile), [Q, D] = U(""), [N, I] = U(""), q = ee(K.AccessToken), { t: o } = Wr(), w = le(
869
+ const u = cr(), v = dr("securityStore"), E = Wr(), { colorScheme: h } = Oe(), [y, I] = M(void 0), [n, g] = M("users"), x = ee(K.User), te = ee(K.Group), J = ee(K.Resource), ae = ee(K.Profile), [Q, P] = M(""), [N, D] = M(""), q = ee(K.AccessToken), { t: s } = qr(), w = le(
855
870
  "ArchbaseSecurityView-Users",
856
871
  void 0,
857
872
  // Will be set when dsUsers is available
@@ -869,91 +884,91 @@ function Fa({
869
884
  // Will be set when dsProfiles is available
870
885
  void 0,
871
886
  void 0
872
- ), b = ye(null), m = ye(null), he = ye(null), ce = ye(null), n = ye(null), i = (a) => a.id, P = (a) => a.id, S = (a) => a.id, z = (a) => a.id, k = (a) => a.id, { dataSource: A, isLoading: R } = se({
887
+ ), f = ye(null), m = ye(null), he = ye(null), ce = ye(null), i = ye(null), l = (t) => t.id, $ = (t) => t.id, S = (t) => t.id, z = (t) => t.id, k = (t) => t.id, { dataSource: A, isLoading: R } = se({
873
888
  name: "accessTokenApi",
874
889
  service: q,
875
- store: C,
890
+ store: v,
876
891
  validator: E,
877
892
  pageSize: 25,
878
893
  loadOnStart: !0,
879
- filter: ir(ze.or(ze.eq("revoked", "false"))),
894
+ filter: ze(we.or(we.eq("revoked", "false"))),
880
895
  sort: ["user.email", "expirationTime:desc"],
881
- onLoadComplete: (a) => {
896
+ onLoadComplete: (t) => {
882
897
  },
883
- onDestroy: (a) => {
898
+ onDestroy: (t) => {
884
899
  },
885
- onError: (a, L) => {
886
- l(a), Y.showError(`${o("archbase:WARNING")}`, a, L);
900
+ onError: (t, L) => {
901
+ I(t), Y.showError(`${s("archbase:WARNING")}`, t, L);
887
902
  }
888
- }), { dataSource: G, isLoading: De } = se({
903
+ }), { dataSource: V, isLoading: $e } = se({
889
904
  name: "dsUsers",
890
- service: f,
891
- store: C,
905
+ service: x,
906
+ store: v,
892
907
  validator: E,
893
908
  pageSize: 25,
894
909
  loadOnStart: !0,
895
- onLoadComplete: (a) => {
910
+ onLoadComplete: (t) => {
896
911
  },
897
- onDestroy: (a) => {
912
+ onDestroy: (t) => {
898
913
  },
899
- onError: (a, L) => {
900
- l(a), Y.showError(`${o("archbase:WARNING")}`, a, L);
914
+ onError: (t, L) => {
915
+ I(t), Y.showError(`${s("archbase:WARNING")}`, t, L);
901
916
  }
902
- }), { dataSource: W, isLoading: hr } = se({
917
+ }), { dataSource: W, isLoading: pr } = se({
903
918
  name: "dsGroups",
904
- service: ae,
905
- store: C,
919
+ service: te,
920
+ store: v,
906
921
  validator: E,
907
922
  pageSize: 25,
908
923
  loadOnStart: !0,
909
- onLoadComplete: (a) => {
924
+ onLoadComplete: (t) => {
910
925
  },
911
- onDestroy: (a) => {
926
+ onDestroy: (t) => {
912
927
  },
913
- onError: (a, L) => {
914
- l(a), Y.showError(`${o("archbase:WARNING")}`, a, L);
928
+ onError: (t, L) => {
929
+ I(t), Y.showError(`${s("archbase:WARNING")}`, t, L);
915
930
  }
916
- }), { dataSource: Z, isLoading: pr } = se({
931
+ }), { dataSource: Z, isLoading: xr } = se({
917
932
  name: "dsProfile",
918
- service: te,
919
- store: C,
933
+ service: ae,
934
+ store: v,
920
935
  validator: E,
921
936
  pageSize: 25,
922
937
  loadOnStart: !0,
923
- onLoadComplete: (a) => {
938
+ onLoadComplete: (t) => {
924
939
  },
925
- onDestroy: (a) => {
940
+ onDestroy: (t) => {
926
941
  },
927
- onError: (a, L) => {
928
- l(a), Y.showError(`${o("archbase:WARNING")}`, a, L);
942
+ onError: (t, L) => {
943
+ I(t), Y.showError(`${s("archbase:WARNING")}`, t, L);
929
944
  }
930
- }), { dataSource: xr, isLoading: mr } = se({
945
+ }), { dataSource: mr, isLoading: fr } = se({
931
946
  name: "dsResources",
932
947
  service: J,
933
- store: C,
948
+ store: v,
934
949
  validator: E,
935
950
  pageSize: 25,
936
951
  loadOnStart: !0,
937
- onLoadComplete: (a) => {
952
+ onLoadComplete: (t) => {
938
953
  },
939
- onDestroy: (a) => {
954
+ onDestroy: (t) => {
940
955
  },
941
- onError: (a, L) => {
942
- l(a), Y.showError(`${o("archbase:WARNING")}`, a, L);
956
+ onError: (t, L) => {
957
+ I(t), Y.showError(`${s("archbase:WARNING")}`, t, L);
943
958
  }
944
- }), we = `calc(${r} - 40px)`, fr = /* @__PURE__ */ e.jsxs(be, { children: [
959
+ }), Se = `calc(${r} - 40px)`, br = /* @__PURE__ */ e.jsxs(be, { children: [
945
960
  /* @__PURE__ */ e.jsx(
946
- j,
961
+ b,
947
962
  {
948
963
  dataField: "user.avatar",
949
964
  dataType: "image",
950
965
  size: 80,
951
- header: `${o("archbase:Foto")}`,
952
- render: (a) => /* @__PURE__ */ e.jsx(
966
+ header: `${s("archbase:Foto")}`,
967
+ render: (t) => /* @__PURE__ */ e.jsx(
953
968
  "img",
954
969
  {
955
970
  style: { borderRadius: 50, height: "32px", maxHeight: "32px" },
956
- src: a.row.user && a.row.user.avatar ? atob(a.row.user.avatar) : Ue
971
+ src: t.row.user && t.row.user.avatar ? atob(t.row.user.avatar) : Ne
957
972
  }
958
973
  ),
959
974
  inputFilterType: "text",
@@ -961,77 +976,77 @@ function Fa({
961
976
  }
962
977
  ),
963
978
  /* @__PURE__ */ e.jsx(
964
- j,
979
+ b,
965
980
  {
966
981
  dataField: "user.userName",
967
982
  dataType: "text",
968
983
  size: 300,
969
- header: `${o("archbase:Nome de Usuário")}`,
984
+ header: `${s("archbase:Nome de Usuário")}`,
970
985
  inputFilterType: "text"
971
986
  }
972
987
  ),
973
988
  /* @__PURE__ */ e.jsx(
974
- j,
989
+ b,
975
990
  {
976
991
  dataField: "user.email",
977
992
  dataType: "text",
978
- header: `${o("archbase:Email")}`,
993
+ header: `${s("archbase:Email")}`,
979
994
  size: 300,
980
995
  inputFilterType: "text"
981
996
  }
982
997
  ),
983
998
  /* @__PURE__ */ e.jsx(
984
- j,
999
+ b,
985
1000
  {
986
1001
  dataField: "expirationDate",
987
1002
  dataType: "text",
988
1003
  size: 300,
989
- header: `${o("archbase:Expira em")}`,
990
- render: (a) => /* @__PURE__ */ e.jsx(H, { size: "sm", children: a.row.expirationDate }),
1004
+ header: `${s("archbase:Expira em")}`,
1005
+ render: (t) => /* @__PURE__ */ e.jsx(H, { size: "sm", children: t.row.expirationDate }),
991
1006
  inputFilterType: "text"
992
1007
  }
993
1008
  ),
994
1009
  /* @__PURE__ */ e.jsx(
995
- j,
1010
+ b,
996
1011
  {
997
1012
  dataField: "revoked",
998
1013
  dataType: "boolean",
999
- header: `${o("archbase:Revogado ?")}`,
1014
+ header: `${s("archbase:Revogado ?")}`,
1000
1015
  inputFilterType: "checkbox"
1001
1016
  }
1002
1017
  ),
1003
1018
  /* @__PURE__ */ e.jsx(
1004
- j,
1019
+ b,
1005
1020
  {
1006
1021
  dataField: "expired",
1007
1022
  dataType: "boolean",
1008
- header: `${o("archbase:Expirado ?")}`,
1023
+ header: `${s("archbase:Expirado ?")}`,
1009
1024
  inputFilterType: "checkbox"
1010
1025
  }
1011
1026
  ),
1012
1027
  /* @__PURE__ */ e.jsx(
1013
- j,
1028
+ b,
1014
1029
  {
1015
1030
  dataField: "token",
1016
1031
  dataType: "text",
1017
- header: `${o("archbase:Token Acesso")}`,
1032
+ header: `${s("archbase:Token Acesso")}`,
1018
1033
  size: 300,
1019
1034
  inputFilterType: "text"
1020
1035
  }
1021
1036
  )
1022
- ] }), br = /* @__PURE__ */ e.jsxs(be, { children: [
1037
+ ] }), jr = /* @__PURE__ */ e.jsxs(be, { children: [
1023
1038
  /* @__PURE__ */ e.jsx(
1024
- j,
1039
+ b,
1025
1040
  {
1026
1041
  dataField: "avatar",
1027
1042
  dataType: "image",
1028
1043
  size: 80,
1029
- header: `${o("archbase:Foto")}`,
1030
- render: (a) => /* @__PURE__ */ e.jsx(
1044
+ header: `${s("archbase:Foto")}`,
1045
+ render: (t) => /* @__PURE__ */ e.jsx(
1031
1046
  "img",
1032
1047
  {
1033
1048
  style: { borderRadius: 50, height: "32px", maxHeight: "32px" },
1034
- src: a.row.avatar ? atob(a.row.avatar) : Ue
1049
+ src: t.row.avatar ? atob(t.row.avatar) : Ne
1035
1050
  }
1036
1051
  ),
1037
1052
  enableSorting: !1,
@@ -1041,337 +1056,337 @@ function Fa({
1041
1056
  }
1042
1057
  ),
1043
1058
  /* @__PURE__ */ e.jsx(
1044
- j,
1059
+ b,
1045
1060
  {
1046
1061
  dataField: "name",
1047
1062
  dataType: "text",
1048
1063
  size: 300,
1049
- header: `${o("archbase:Nome")}`,
1064
+ header: `${s("archbase:Nome")}`,
1050
1065
  inputFilterType: "text"
1051
1066
  }
1052
1067
  ),
1053
1068
  /* @__PURE__ */ e.jsx(
1054
- j,
1069
+ b,
1055
1070
  {
1056
1071
  dataField: "nickname",
1057
1072
  dataType: "text",
1058
1073
  size: 120,
1059
- header: `${o("archbase:Apelido")}`,
1074
+ header: `${s("archbase:Apelido")}`,
1060
1075
  inputFilterType: "text"
1061
1076
  }
1062
1077
  ),
1063
1078
  /* @__PURE__ */ e.jsx(
1064
- j,
1079
+ b,
1065
1080
  {
1066
1081
  dataField: "email",
1067
1082
  dataType: "text",
1068
- header: `${o("archbase:Email")}`,
1083
+ header: `${s("archbase:Email")}`,
1069
1084
  size: 300,
1070
1085
  inputFilterType: "text"
1071
1086
  }
1072
1087
  ),
1073
1088
  /* @__PURE__ */ e.jsx(
1074
- j,
1089
+ b,
1075
1090
  {
1076
1091
  dataField: "profile.name",
1077
1092
  dataType: "text",
1078
- header: `${o("archbase:Perfil")}`,
1093
+ header: `${s("archbase:Perfil")}`,
1079
1094
  size: 200,
1080
- render: (a) => ja(a.row),
1095
+ render: (t) => jt(t.row),
1081
1096
  inputFilterType: "text"
1082
1097
  }
1083
1098
  ),
1084
1099
  /* @__PURE__ */ e.jsx(
1085
- j,
1100
+ b,
1086
1101
  {
1087
1102
  dataField: "groups",
1088
1103
  dataType: "text",
1089
1104
  size: 300,
1090
- header: `${o("archbase:Grupos")}`,
1091
- render: (a) => ba(a.row),
1105
+ header: `${s("archbase:Grupos")}`,
1106
+ render: (t) => bt(t.row),
1092
1107
  enableSorting: !1,
1093
1108
  enableColumnFilter: !1,
1094
1109
  enableGlobalFilter: !1
1095
1110
  }
1096
1111
  ),
1097
1112
  /* @__PURE__ */ e.jsx(
1098
- j,
1113
+ b,
1099
1114
  {
1100
1115
  dataField: "isAdministrator",
1101
1116
  dataType: "boolean",
1102
- header: `${o("archbase:Admin ?")}`,
1117
+ header: `${s("archbase:Admin ?")}`,
1103
1118
  inputFilterType: "checkbox"
1104
1119
  }
1105
1120
  ),
1106
1121
  /* @__PURE__ */ e.jsx(
1107
- j,
1122
+ b,
1108
1123
  {
1109
1124
  dataField: "changePasswordOnNextLogin",
1110
1125
  dataType: "boolean",
1111
- header: `${o("archbase:Alt.senha próximo login?")}`,
1126
+ header: `${s("archbase:Alt.senha próximo login?")}`,
1112
1127
  inputFilterType: "checkbox",
1113
1128
  size: 120
1114
1129
  }
1115
1130
  ),
1116
1131
  /* @__PURE__ */ e.jsx(
1117
- j,
1132
+ b,
1118
1133
  {
1119
1134
  dataField: "allowPasswordChange",
1120
1135
  dataType: "boolean",
1121
- header: `${o("archbase:Pode alterar senha?")}`,
1136
+ header: `${s("archbase:Pode alterar senha?")}`,
1122
1137
  inputFilterType: "checkbox",
1123
1138
  size: 120
1124
1139
  }
1125
1140
  ),
1126
1141
  /* @__PURE__ */ e.jsx(
1127
- j,
1142
+ b,
1128
1143
  {
1129
1144
  dataField: "allowMultipleLogins",
1130
1145
  dataType: "boolean",
1131
- header: `${o("archbase:Permite multiplos logins?")}`,
1146
+ header: `${s("archbase:Permite multiplos logins?")}`,
1132
1147
  inputFilterType: "checkbox",
1133
1148
  size: 120
1134
1149
  }
1135
1150
  ),
1136
1151
  /* @__PURE__ */ e.jsx(
1137
- j,
1152
+ b,
1138
1153
  {
1139
1154
  dataField: "passwordNeverExpires",
1140
1155
  dataType: "boolean",
1141
- header: `${o("archbase:Senha nunca expira?")}`,
1156
+ header: `${s("archbase:Senha nunca expira?")}`,
1142
1157
  inputFilterType: "checkbox",
1143
1158
  size: 120
1144
1159
  }
1145
1160
  ),
1146
1161
  /* @__PURE__ */ e.jsx(
1147
- j,
1162
+ b,
1148
1163
  {
1149
1164
  dataField: "accountDeactivated",
1150
1165
  dataType: "boolean",
1151
- header: `${o("archbase:Desativado?")}`,
1166
+ header: `${s("archbase:Desativado?")}`,
1152
1167
  inputFilterType: "checkbox",
1153
1168
  size: 120
1154
1169
  }
1155
1170
  ),
1156
1171
  /* @__PURE__ */ e.jsx(
1157
- j,
1172
+ b,
1158
1173
  {
1159
1174
  dataField: "accountLocked",
1160
1175
  dataType: "boolean",
1161
- header: `${o("archbase:Bloqueado?")}`,
1176
+ header: `${s("archbase:Bloqueado?")}`,
1162
1177
  inputFilterType: "checkbox",
1163
1178
  size: 120
1164
1179
  }
1165
1180
  ),
1166
1181
  /* @__PURE__ */ e.jsx(
1167
- j,
1182
+ b,
1168
1183
  {
1169
1184
  dataField: "unlimitedAccessHours",
1170
1185
  dataType: "boolean",
1171
- header: `${o("archbase:Horário acesso ilimitado?")}`,
1186
+ header: `${s("archbase:Horário acesso ilimitado?")}`,
1172
1187
  inputFilterType: "checkbox",
1173
1188
  size: 140
1174
1189
  }
1175
1190
  )
1176
- ] }), jr = /* @__PURE__ */ e.jsxs(be, { children: [
1191
+ ] }), gr = /* @__PURE__ */ e.jsxs(be, { children: [
1177
1192
  /* @__PURE__ */ e.jsx(
1178
- j,
1193
+ b,
1179
1194
  {
1180
1195
  dataField: "name",
1181
1196
  dataType: "text",
1182
1197
  size: 300,
1183
- header: `${o("archbase:Nome do grupo")}`,
1198
+ header: `${s("archbase:Nome do grupo")}`,
1184
1199
  inputFilterType: "text"
1185
1200
  }
1186
1201
  ),
1187
1202
  /* @__PURE__ */ e.jsx(
1188
- j,
1203
+ b,
1189
1204
  {
1190
1205
  dataField: "description",
1191
1206
  dataType: "text",
1192
- header: `${o("archbase:Descrição")}`,
1207
+ header: `${s("archbase:Descrição")}`,
1193
1208
  size: 800,
1194
1209
  inputFilterType: "text"
1195
1210
  }
1196
1211
  )
1197
- ] }), gr = /* @__PURE__ */ e.jsxs(be, { children: [
1212
+ ] }), yr = /* @__PURE__ */ e.jsxs(be, { children: [
1198
1213
  /* @__PURE__ */ e.jsx(
1199
- j,
1214
+ b,
1200
1215
  {
1201
1216
  dataField: "name",
1202
1217
  dataType: "text",
1203
1218
  size: 300,
1204
- header: `${o("archbase:Nome do perfil")}`,
1219
+ header: `${s("archbase:Nome do perfil")}`,
1205
1220
  inputFilterType: "text"
1206
1221
  }
1207
1222
  ),
1208
1223
  /* @__PURE__ */ e.jsx(
1209
- j,
1224
+ b,
1210
1225
  {
1211
1226
  dataField: "description",
1212
1227
  dataType: "text",
1213
- header: `${o("archbase:Descrição")}`,
1228
+ header: `${s("archbase:Descrição")}`,
1214
1229
  size: 800,
1215
1230
  inputFilterType: "text"
1216
1231
  }
1217
1232
  )
1218
- ] }), yr = /* @__PURE__ */ e.jsxs(be, { children: [
1233
+ ] }), wr = /* @__PURE__ */ e.jsxs(be, { children: [
1219
1234
  /* @__PURE__ */ e.jsx(
1220
- j,
1235
+ b,
1221
1236
  {
1222
1237
  dataField: "name",
1223
1238
  dataType: "text",
1224
1239
  size: 300,
1225
- header: `${o("archbase:Nome do recurso")}`,
1240
+ header: `${s("archbase:Nome do recurso")}`,
1226
1241
  inputFilterType: "text"
1227
1242
  }
1228
1243
  ),
1229
1244
  /* @__PURE__ */ e.jsx(
1230
- j,
1245
+ b,
1231
1246
  {
1232
1247
  dataField: "description",
1233
1248
  dataType: "text",
1234
- header: `${o("archbase:Descrição")}`,
1249
+ header: `${s("archbase:Descrição")}`,
1235
1250
  size: 800,
1236
1251
  inputFilterType: "text"
1237
1252
  }
1238
1253
  )
1239
- ] }), wr = () => {
1240
- const a = _r.newInstance();
1241
- g || (a.id = void 0), G.insert(a), G && !w.isDataSourceV2 && w.v1State.forceUpdate(), D(F.USER);
1242
- }, Sr = (a) => {
1243
- G.isEmpty() || G.gotoRecordByData(a) && (G.edit(), w.isDataSourceV2 || w.v1State.forceUpdate(), D(F.USER));
1244
- }, vr = (a) => {
1245
- G.isEmpty() || G.gotoRecordByData(a) && _.showConfirmDialogYesNo(
1246
- `${o("archbase:Confirme")}`,
1247
- `${o("archbase:Deseja remover o usuário ")}${a.name} ?`,
1254
+ ] }), Sr = () => {
1255
+ const t = _r.newInstance();
1256
+ j || (t.id = void 0), V.insert(t), V && !w.isDataSourceV2 && w.v1State.forceUpdate(), P(F.USER);
1257
+ }, vr = (t) => {
1258
+ V.isEmpty() || V.gotoRecordByData(t) && (V.edit(), w.isDataSourceV2 || w.v1State.forceUpdate(), P(F.USER));
1259
+ }, Cr = (t) => {
1260
+ V.isEmpty() || V.gotoRecordByData(t) && _.showConfirmDialogYesNo(
1261
+ `${s("archbase:Confirme")}`,
1262
+ `${s("archbase:Deseja remover o usuário ")}${t.name} ?`,
1248
1263
  () => {
1249
- G.remove(), w.isDataSourceV2 || w.v1State.forceUpdate();
1264
+ V.remove(), w.isDataSourceV2 || w.v1State.forceUpdate();
1250
1265
  },
1251
1266
  () => {
1252
1267
  }
1253
1268
  );
1254
- }, Cr = (a) => {
1255
- G.isEmpty() || G.gotoRecordByData(a) && D(F.USER);
1256
- }, Ar = (a) => /* @__PURE__ */ e.jsxs($, { gap: 1, wrap: "nowrap", children: [
1257
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Cr(a), children: /* @__PURE__ */ e.jsx($e, { size: 20, color: h === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
1258
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Sr(a), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: h === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
1259
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => vr(a), children: /* @__PURE__ */ e.jsx(ve, { size: 20, color: h === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
1260
- /* @__PURE__ */ e.jsx(ie, { withinPortal: !0, withArrow: !0, position: "left", label: `${o("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: qe, children: /* @__PURE__ */ e.jsx(Ge, { size: 20, color: h === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) })
1261
- ] }), Tr = () => {
1262
- const a = ea.newInstance();
1263
- g || (a.id = void 0), W.insert(a), W && !O.isDataSourceV2 && O.v1State.forceUpdate(), D(F.GROUP);
1264
- }, kr = (a) => {
1265
- W.isEmpty() || W.gotoRecordByData(a) && (W.edit(), D(F.GROUP));
1266
- }, Rr = (a) => {
1267
- W.isEmpty() || W.gotoRecordByData(a) && _.showConfirmDialogYesNo(
1268
- `${o("archbase:Confirme")}`,
1269
- `${o("archbase:Deseja remover o grupo ")}${a.name} ?`,
1269
+ }, Ar = (t) => {
1270
+ V.isEmpty() || V.gotoRecordByData(t) && P(F.USER);
1271
+ }, Tr = (t) => /* @__PURE__ */ e.jsxs(G, { gap: 1, wrap: "nowrap", children: [
1272
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Ar(t), children: /* @__PURE__ */ e.jsx(Ve, { size: 20, color: h === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
1273
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => vr(t), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: h === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
1274
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Cr(t), children: /* @__PURE__ */ e.jsx(Ce, { size: 20, color: h === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
1275
+ /* @__PURE__ */ e.jsx(ie, { withinPortal: !0, withArrow: !0, position: "left", label: `${s("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: He, children: /* @__PURE__ */ e.jsx(Le, { size: 20, color: h === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) })
1276
+ ] }), kr = () => {
1277
+ const t = et.newInstance();
1278
+ j || (t.id = void 0), W.insert(t), W && !O.isDataSourceV2 && O.v1State.forceUpdate(), P(F.GROUP);
1279
+ }, Rr = (t) => {
1280
+ W.isEmpty() || W.gotoRecordByData(t) && (W.edit(), P(F.GROUP));
1281
+ }, Fr = (t) => {
1282
+ W.isEmpty() || W.gotoRecordByData(t) && _.showConfirmDialogYesNo(
1283
+ `${s("archbase:Confirme")}`,
1284
+ `${s("archbase:Deseja remover o grupo ")}${t.name} ?`,
1270
1285
  () => {
1271
1286
  W.remove();
1272
1287
  },
1273
1288
  () => {
1274
1289
  }
1275
1290
  );
1276
- }, Fr = (a) => {
1277
- W.isEmpty() || W.gotoRecordByData(a) && D(F.GROUP);
1278
- }, Ir = (a) => /* @__PURE__ */ e.jsxs($, { gap: 1, wrap: "nowrap", children: [
1279
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Fr(a), children: /* @__PURE__ */ e.jsx($e, { size: 20, color: h === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
1280
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => kr(a), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: h === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
1281
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Rr(a), children: /* @__PURE__ */ e.jsx(ve, { size: 20, color: h === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
1282
- /* @__PURE__ */ e.jsx(ie, { withinPortal: !0, withArrow: !0, position: "left", label: `${o("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: He, children: /* @__PURE__ */ e.jsx(Ge, { size: 20, color: h === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) })
1283
- ] }), Oe = () => {
1284
- D("");
1285
- }, Be = () => {
1286
- D("");
1291
+ }, Ir = (t) => {
1292
+ W.isEmpty() || W.gotoRecordByData(t) && P(F.GROUP);
1293
+ }, Dr = (t) => /* @__PURE__ */ e.jsxs(G, { gap: 1, wrap: "nowrap", children: [
1294
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Ir(t), children: /* @__PURE__ */ e.jsx(Ve, { size: 20, color: h === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
1295
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Rr(t), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: h === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
1296
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Fr(t), children: /* @__PURE__ */ e.jsx(Ce, { size: 20, color: h === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
1297
+ /* @__PURE__ */ e.jsx(ie, { withinPortal: !0, withArrow: !0, position: "left", label: `${s("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: Je, children: /* @__PURE__ */ e.jsx(Le, { size: 20, color: h === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) })
1298
+ ] }), Be = () => {
1299
+ P("");
1287
1300
  }, We = () => {
1288
- D("");
1301
+ P("");
1302
+ }, qe = () => {
1303
+ P("");
1289
1304
  }, zr = () => {
1290
- const a = ra.newInstance();
1291
- g || (a.id = void 0), Z.insert(a), Z && !d.isDataSourceV2 && d.v1State.forceUpdate(), D(F.PROFILE);
1292
- }, Er = (a) => {
1293
- Z.isEmpty() || Z.gotoRecordByData(a) && (Z.edit(), D(F.PROFILE));
1294
- }, Dr = (a) => {
1295
- Z.isEmpty() || Z.gotoRecordByData(a) && _.showConfirmDialogYesNo(
1296
- `${o("archbase:Confirme")}`,
1297
- `${o("archbase:Deseja remover o perfil ")}${a.name} ?`,
1305
+ const t = rt.newInstance();
1306
+ j || (t.id = void 0), Z.insert(t), Z && !d.isDataSourceV2 && d.v1State.forceUpdate(), P(F.PROFILE);
1307
+ }, Er = (t) => {
1308
+ Z.isEmpty() || Z.gotoRecordByData(t) && (Z.edit(), P(F.PROFILE));
1309
+ }, Pr = (t) => {
1310
+ Z.isEmpty() || Z.gotoRecordByData(t) && _.showConfirmDialogYesNo(
1311
+ `${s("archbase:Confirme")}`,
1312
+ `${s("archbase:Deseja remover o perfil ")}${t.name} ?`,
1298
1313
  () => {
1299
1314
  Z.remove();
1300
1315
  },
1301
1316
  () => {
1302
1317
  }
1303
1318
  );
1304
- }, Pr = (a) => {
1305
- Z.isEmpty() || Z.gotoRecordByData(a) && D(F.PROFILE);
1306
- }, $r = (a) => /* @__PURE__ */ e.jsxs($, { gap: 1, wrap: "nowrap", children: [
1307
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Pr(a), children: /* @__PURE__ */ e.jsx($e, { size: 20, color: h === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
1308
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Er(a), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: h === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
1309
- /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Dr(a), children: /* @__PURE__ */ e.jsx(ve, { size: 20, color: h === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
1310
- /* @__PURE__ */ e.jsx(ie, { withinPortal: !0, withArrow: !0, position: "left", label: `${o("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: Je, children: /* @__PURE__ */ e.jsx(Ge, { size: 20, color: h === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) })
1311
- ] }), Gr = () => {
1319
+ }, $r = (t) => {
1320
+ Z.isEmpty() || Z.gotoRecordByData(t) && P(F.PROFILE);
1321
+ }, Gr = (t) => /* @__PURE__ */ e.jsxs(G, { gap: 1, wrap: "nowrap", children: [
1322
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => $r(t), children: /* @__PURE__ */ e.jsx(Ve, { size: 20, color: h === "dark" ? u.colors.blue[8] : u.colors.blue[4] }) }),
1323
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Er(t), children: /* @__PURE__ */ e.jsx(fe, { size: 20, color: h === "dark" ? u.colors.yellow[8] : u.colors.yellow[4] }) }),
1324
+ /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: () => Pr(t), children: /* @__PURE__ */ e.jsx(Ce, { size: 20, color: h === "dark" ? u.colors.red[8] : u.colors.red[4] }) }),
1325
+ /* @__PURE__ */ e.jsx(ie, { withinPortal: !0, withArrow: !0, position: "left", label: `${s("archbase:Edit permissions")}`, children: /* @__PURE__ */ e.jsx(B, { variant: "transparent", onClick: Ze, children: /* @__PURE__ */ e.jsx(Le, { size: 20, color: h === "dark" ? u.colors.green[8] : u.colors.green[4] }) }) })
1326
+ ] }), Vr = () => {
1312
1327
  A.getCurrentRecord() && _.showConfirmDialogYesNo(
1313
- `${o("archbase:Confirme")}`,
1314
- `${o("archbase:Deseja revogar o token de Acesso do usuário ")}${A.getCurrentRecord().user.name} ?`,
1328
+ `${s("archbase:Confirme")}`,
1329
+ `${s("archbase:Deseja revogar o token de Acesso do usuário ")}${A.getCurrentRecord().user.name} ?`,
1315
1330
  async () => {
1316
1331
  await q.revoke(A.getCurrentRecord().token).then(async () => {
1317
1332
  Y.showSuccess(
1318
- `${o("mentors:Informação")}`,
1319
- `${o("mentors:Token de Acesso revogado com sucesso!")}`
1333
+ `${s("mentors:Informação")}`,
1334
+ `${s("mentors:Token de Acesso revogado com sucesso!")}`
1320
1335
  ), A.refreshData();
1321
- }).catch((a) => {
1336
+ }).catch((t) => {
1322
1337
  _.showErrorWithDetails(
1323
- `${o("mentors:Atenção")}`,
1324
- Ae(a),
1325
- Fe(a)
1338
+ `${s("mentors:Atenção")}`,
1339
+ Te(t),
1340
+ Ie(t)
1326
1341
  );
1327
1342
  });
1328
1343
  },
1329
1344
  () => {
1330
1345
  }
1331
1346
  );
1332
- }, qe = () => {
1333
- I(F.USER);
1334
1347
  }, He = () => {
1335
- I(F.GROUP);
1348
+ D(F.USER);
1336
1349
  }, Je = () => {
1337
- I(F.PROFILE);
1338
- }, Pe = () => {
1339
- I("");
1350
+ D(F.GROUP);
1351
+ }, Ze = () => {
1352
+ D(F.PROFILE);
1353
+ }, Ge = () => {
1354
+ D("");
1340
1355
  }, Lr = () => /* @__PURE__ */ e.jsxs(oe, { justify: "space-between", style: { width: "50%" }, children: [
1341
- /* @__PURE__ */ e.jsxs($, { align: "end", gap: "4px", wrap: "nowrap", children: [
1342
- /* @__PURE__ */ e.jsx(V, { color: "green", leftSection: /* @__PURE__ */ e.jsx(Ie, {}), onClick: wr, children: `${o("archbase:New")}` }),
1343
- /* @__PURE__ */ e.jsx(V, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: qe, children: `${o("archbase:Edit permissions")}` })
1356
+ /* @__PURE__ */ e.jsxs(G, { align: "end", gap: "4px", wrap: "nowrap", children: [
1357
+ /* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(De, {}), onClick: Sr, children: `${s("archbase:New")}` }),
1358
+ /* @__PURE__ */ e.jsx(U, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: He, children: `${s("archbase:Edit permissions")}` })
1344
1359
  ] }),
1345
1360
  /* @__PURE__ */ e.jsx(oe, { align: "flex-start", justify: "flex-end", style: { width: "200px" } })
1346
- ] }), Vr = () => /* @__PURE__ */ e.jsxs(oe, { justify: "space-between", style: { width: "50%" }, children: [
1347
- /* @__PURE__ */ e.jsxs($, { align: "end", gap: "4px", wrap: "nowrap", children: [
1348
- /* @__PURE__ */ e.jsx(V, { color: "green", leftSection: /* @__PURE__ */ e.jsx(Ie, {}), onClick: Tr, children: `${o("archbase:New")}` }),
1349
- /* @__PURE__ */ e.jsx(V, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: He, children: `${o("archbase:Edit permissions")}` })
1361
+ ] }), Ur = () => /* @__PURE__ */ e.jsxs(oe, { justify: "space-between", style: { width: "50%" }, children: [
1362
+ /* @__PURE__ */ e.jsxs(G, { align: "end", gap: "4px", wrap: "nowrap", children: [
1363
+ /* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(De, {}), onClick: kr, children: `${s("archbase:New")}` }),
1364
+ /* @__PURE__ */ e.jsx(U, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: Je, children: `${s("archbase:Edit permissions")}` })
1350
1365
  ] }),
1351
1366
  /* @__PURE__ */ e.jsx(oe, { align: "flex-start", justify: "flex-end", style: { width: "200px" } })
1352
- ] }), Ur = () => /* @__PURE__ */ e.jsxs(oe, { justify: "space-between", style: { width: "50%" }, children: [
1353
- /* @__PURE__ */ e.jsxs($, { align: "end", gap: "4px", wrap: "nowrap", children: [
1354
- /* @__PURE__ */ e.jsx(V, { color: "green", leftSection: /* @__PURE__ */ e.jsx(Ie, {}), onClick: zr, children: `${o("archbase:New")}` }),
1355
- /* @__PURE__ */ e.jsx(V, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: Je, children: `${o("archbase:Edit permissions")}` })
1367
+ ] }), Mr = () => /* @__PURE__ */ e.jsxs(oe, { justify: "space-between", style: { width: "50%" }, children: [
1368
+ /* @__PURE__ */ e.jsxs(G, { align: "end", gap: "4px", wrap: "nowrap", children: [
1369
+ /* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(De, {}), onClick: zr, children: `${s("archbase:New")}` }),
1370
+ /* @__PURE__ */ e.jsx(U, { color: "blue", leftSection: /* @__PURE__ */ e.jsx(fe, {}), onClick: Ze, children: `${s("archbase:Edit permissions")}` })
1356
1371
  ] }),
1357
1372
  /* @__PURE__ */ e.jsx(oe, { align: "flex-start", justify: "flex-end", style: { width: "200px" } })
1358
- ] }), Mr = () => /* @__PURE__ */ e.jsx(oe, { justify: "space-between", style: { width: "50%" }, children: /* @__PURE__ */ e.jsx($, { align: "start", gap: "4px", wrap: "nowrap", children: /* @__PURE__ */ e.jsx(
1359
- V,
1373
+ ] }), Nr = () => /* @__PURE__ */ e.jsx(oe, { justify: "space-between", style: { width: "50%" }, children: /* @__PURE__ */ e.jsx(G, { align: "start", gap: "4px", wrap: "nowrap", children: /* @__PURE__ */ e.jsx(
1374
+ U,
1360
1375
  {
1361
1376
  disabled: !A.getCurrentRecord(),
1362
1377
  color: "red",
1363
- leftSection: /* @__PURE__ */ e.jsx(ve, {}),
1364
- onClick: Gr,
1365
- children: `${o("archbase:Revoke")}`
1378
+ leftSection: /* @__PURE__ */ e.jsx(Ce, {}),
1379
+ onClick: Vr,
1380
+ children: `${s("archbase:Revoke")}`
1366
1381
  }
1367
1382
  ) }) });
1368
1383
  return /* @__PURE__ */ e.jsxs(X, { p: "md", style: { height: r, display: "flex", flexDirection: "column" }, children: [
1369
- /* @__PURE__ */ e.jsx(de, { variant: "pills", value: p, onChange: M, children: /* @__PURE__ */ e.jsxs(de.List, { children: [
1370
- /* @__PURE__ */ e.jsx(de.Tab, { value: "users", children: `${o("Usuários")}` }),
1371
- /* @__PURE__ */ e.jsx(de.Tab, { value: "groups", children: `${o("Grupos")}` }),
1372
- /* @__PURE__ */ e.jsx(de.Tab, { value: "profiles", children: `${o("Perfis")}` }),
1373
- /* @__PURE__ */ e.jsx(de.Tab, { value: "resources", children: `${o("Recursos")}` }),
1374
- /* @__PURE__ */ e.jsx(de.Tab, { value: "accessTokens", children: `${o("Tokens Acesso")}` })
1384
+ /* @__PURE__ */ e.jsx(de, { variant: "pills", value: n, onChange: g, children: /* @__PURE__ */ e.jsxs(de.List, { children: [
1385
+ /* @__PURE__ */ e.jsx(de.Tab, { value: "users", children: `${s("Usuários")}` }),
1386
+ /* @__PURE__ */ e.jsx(de.Tab, { value: "groups", children: `${s("Grupos")}` }),
1387
+ /* @__PURE__ */ e.jsx(de.Tab, { value: "profiles", children: `${s("Perfis")}` }),
1388
+ /* @__PURE__ */ e.jsx(de.Tab, { value: "resources", children: `${s("Recursos")}` }),
1389
+ /* @__PURE__ */ e.jsx(de.Tab, { value: "accessTokens", children: `${s("Tokens Acesso")}` })
1375
1390
  ] }) }),
1376
1391
  /* @__PURE__ */ e.jsx(
1377
1392
  X,
@@ -1379,8 +1394,8 @@ function Fa({
1379
1394
  withBorder: !0,
1380
1395
  mt: "md",
1381
1396
  style: {
1382
- height: we,
1383
- display: p === "users" ? "flex" : "none",
1397
+ height: Se,
1398
+ display: n === "users" ? "flex" : "none",
1384
1399
  width: "100%",
1385
1400
  flex: 1,
1386
1401
  minHeight: 0,
@@ -1389,25 +1404,25 @@ function Fa({
1389
1404
  children: /* @__PURE__ */ e.jsx(
1390
1405
  je,
1391
1406
  {
1392
- gridRef: b,
1407
+ gridRef: f,
1393
1408
  printTitle: "Usuários",
1394
1409
  width: "100%",
1395
1410
  height: "100%",
1396
1411
  withBorder: !1,
1397
- dataSource: G,
1412
+ dataSource: V,
1398
1413
  withColumnBorders: !0,
1399
1414
  striped: !0,
1400
1415
  enableTopToolbar: !0,
1401
1416
  enableRowActions: !0,
1402
1417
  pageSize: 50,
1403
- isLoading: De,
1418
+ isLoading: $e,
1404
1419
  isError: !!y,
1405
1420
  error: y,
1406
1421
  enableGlobalFilter: !0,
1407
- getRowId: i,
1422
+ getRowId: l,
1408
1423
  toolbarLeftContent: Lr(),
1409
- renderRowActions: Ar,
1410
- children: br
1424
+ renderRowActions: Tr,
1425
+ children: jr
1411
1426
  }
1412
1427
  )
1413
1428
  }
@@ -1418,8 +1433,8 @@ function Fa({
1418
1433
  withBorder: !0,
1419
1434
  mt: "md",
1420
1435
  style: {
1421
- height: we,
1422
- display: p === "groups" ? "flex" : "none",
1436
+ height: Se,
1437
+ display: n === "groups" ? "flex" : "none",
1423
1438
  flex: 1,
1424
1439
  minHeight: 0,
1425
1440
  overflow: "auto"
@@ -1438,14 +1453,14 @@ function Fa({
1438
1453
  enableTopToolbar: !0,
1439
1454
  enableRowActions: !0,
1440
1455
  pageSize: 50,
1441
- isLoading: hr,
1456
+ isLoading: pr,
1442
1457
  isError: !!y,
1443
1458
  error: y,
1444
1459
  enableGlobalFilter: !0,
1445
- getRowId: P,
1446
- renderRowActions: Ir,
1447
- children: jr,
1448
- toolbarLeftContent: Vr()
1460
+ getRowId: $,
1461
+ renderRowActions: Dr,
1462
+ children: gr,
1463
+ toolbarLeftContent: Ur()
1449
1464
  }
1450
1465
  )
1451
1466
  }
@@ -1456,8 +1471,8 @@ function Fa({
1456
1471
  withBorder: !0,
1457
1472
  mt: "md",
1458
1473
  style: {
1459
- height: we,
1460
- display: p === "profiles" ? "flex" : "none",
1474
+ height: Se,
1475
+ display: n === "profiles" ? "flex" : "none",
1461
1476
  flex: 1,
1462
1477
  minHeight: 0,
1463
1478
  overflow: "auto"
@@ -1476,14 +1491,14 @@ function Fa({
1476
1491
  enableTopToolbar: !0,
1477
1492
  enableRowActions: !0,
1478
1493
  pageSize: 50,
1479
- isLoading: pr,
1494
+ isLoading: xr,
1480
1495
  isError: !!y,
1481
1496
  error: y,
1482
1497
  enableGlobalFilter: !0,
1483
1498
  getRowId: S,
1484
- toolbarLeftContent: Ur(),
1485
- renderRowActions: $r,
1486
- children: gr
1499
+ toolbarLeftContent: Mr(),
1500
+ renderRowActions: Gr,
1501
+ children: yr
1487
1502
  }
1488
1503
  )
1489
1504
  }
@@ -1494,8 +1509,8 @@ function Fa({
1494
1509
  withBorder: !0,
1495
1510
  mt: "md",
1496
1511
  style: {
1497
- height: we,
1498
- display: p === "resources" ? "flex" : "none",
1512
+ height: Se,
1513
+ display: n === "resources" ? "flex" : "none",
1499
1514
  flex: 1,
1500
1515
  minHeight: 0,
1501
1516
  overflow: "auto"
@@ -1508,18 +1523,18 @@ function Fa({
1508
1523
  width: "100%",
1509
1524
  height: "100%",
1510
1525
  withBorder: !1,
1511
- dataSource: xr,
1526
+ dataSource: mr,
1512
1527
  withColumnBorders: !0,
1513
1528
  striped: !1,
1514
1529
  enableTopToolbar: !0,
1515
1530
  enableRowActions: !1,
1516
1531
  pageSize: 50,
1517
- isLoading: mr,
1532
+ isLoading: fr,
1518
1533
  isError: !!y,
1519
1534
  error: y,
1520
1535
  enableGlobalFilter: !0,
1521
1536
  getRowId: z,
1522
- children: yr
1537
+ children: wr
1523
1538
  }
1524
1539
  )
1525
1540
  }
@@ -1530,8 +1545,8 @@ function Fa({
1530
1545
  withBorder: !0,
1531
1546
  mt: "md",
1532
1547
  style: {
1533
- height: we,
1534
- display: p === "accessTokens" ? "flex" : "none",
1548
+ height: Se,
1549
+ display: n === "accessTokens" ? "flex" : "none",
1535
1550
  width: "100%",
1536
1551
  flex: 1,
1537
1552
  minHeight: 0,
@@ -1540,7 +1555,7 @@ function Fa({
1540
1555
  children: /* @__PURE__ */ e.jsx(
1541
1556
  je,
1542
1557
  {
1543
- gridRef: n,
1558
+ gridRef: i,
1544
1559
  printTitle: "Tokens de API",
1545
1560
  width: "100%",
1546
1561
  height: "100%",
@@ -1556,83 +1571,83 @@ function Fa({
1556
1571
  error: y,
1557
1572
  enableGlobalFilter: !0,
1558
1573
  getRowId: k,
1559
- toolbarLeftContent: Mr(),
1560
- children: fr
1574
+ toolbarLeftContent: Nr(),
1575
+ children: br
1561
1576
  }
1562
1577
  )
1563
1578
  }
1564
1579
  ),
1565
1580
  Q === F.USER ? /* @__PURE__ */ e.jsx(
1566
- pa,
1581
+ pt,
1567
1582
  {
1568
- onClickOk: Oe,
1583
+ onClickOk: Be,
1569
1584
  opened: !0,
1570
- dataSource: G,
1571
- onClickCancel: Oe,
1572
- options: v
1585
+ dataSource: V,
1586
+ onClickCancel: Be,
1587
+ options: C
1573
1588
  }
1574
1589
  ) : null,
1575
1590
  Q === F.GROUP ? /* @__PURE__ */ e.jsx(
1576
- xa,
1591
+ xt,
1577
1592
  {
1578
- onClickOk: Be,
1593
+ onClickOk: We,
1579
1594
  opened: !0,
1580
1595
  dataSource: W,
1581
- onClickCancel: Be,
1582
- options: x
1596
+ onClickCancel: We,
1597
+ options: p
1583
1598
  }
1584
1599
  ) : null,
1585
1600
  Q === F.PROFILE ? /* @__PURE__ */ e.jsx(
1586
- ca,
1601
+ ct,
1587
1602
  {
1588
- onClickOk: We,
1603
+ onClickOk: qe,
1589
1604
  opened: !0,
1590
1605
  dataSource: Z,
1591
- onClickCancel: We,
1592
- options: s
1606
+ onClickCancel: qe,
1607
+ options: o
1593
1608
  }
1594
1609
  ) : null,
1595
1610
  N === F.USER ? /* @__PURE__ */ e.jsx(
1596
- Ve,
1611
+ Me,
1597
1612
  {
1598
- dataSource: G,
1613
+ dataSource: V,
1599
1614
  opened: !!N,
1600
- close: Pe
1615
+ close: Ge
1601
1616
  }
1602
1617
  ) : null,
1603
1618
  N === F.GROUP ? /* @__PURE__ */ e.jsx(
1604
- Ve,
1619
+ Me,
1605
1620
  {
1606
1621
  dataSource: W,
1607
1622
  opened: !!N,
1608
- close: Pe
1623
+ close: Ge
1609
1624
  }
1610
1625
  ) : null,
1611
1626
  N === F.PROFILE ? /* @__PURE__ */ e.jsx(
1612
- Ve,
1627
+ Me,
1613
1628
  {
1614
1629
  dataSource: Z,
1615
1630
  opened: !!N,
1616
- close: Pe
1631
+ close: Ge
1617
1632
  }
1618
1633
  ) : null
1619
1634
  ] });
1620
1635
  }
1621
- function Ia({ height: r = "400px", width: c = "100%" }) {
1622
- lr();
1623
- const g = cr("apiTokenStore"), v = { validateEntity: () => [] }, { colorScheme: s } = Me(), [x, u] = U(void 0), C = ee(K.ApiToken), [E, h] = U(""), y = ye(null), l = (w) => w.id, { dataSource: p } = Yr({
1636
+ function It({ height: r = "400px", width: c = "100%" }) {
1637
+ cr();
1638
+ const j = dr("apiTokenStore"), C = { validateEntity: () => [] }, { colorScheme: o } = Oe(), [p, u] = M(void 0), v = ee(K.ApiToken), [E, h] = M(""), y = ye(null), I = (w) => w.id, { dataSource: n } = Xr({
1624
1639
  initialData: [],
1625
1640
  name: "dataSource"
1626
- }), M = le(
1641
+ }), g = le(
1627
1642
  "ArchbaseApiTokenView-LocalDataSource",
1628
- p,
1643
+ n,
1629
1644
  void 0,
1630
1645
  void 0
1631
- ), { dataSource: f, isLoading: ae } = se({
1646
+ ), { dataSource: x, isLoading: te } = se({
1632
1647
  name: "dsApiToken",
1633
- service: C,
1634
- store: g,
1635
- validator: v,
1648
+ service: v,
1649
+ store: j,
1650
+ validator: C,
1636
1651
  pageSize: 25,
1637
1652
  loadOnStart: !0,
1638
1653
  onLoadComplete: (w) => {
@@ -1640,16 +1655,16 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
1640
1655
  onDestroy: (w) => {
1641
1656
  },
1642
1657
  onError: (w, O) => {
1643
- u(w), Y.showError(t().t("archbase:WARNING"), w, O);
1658
+ u(w), Y.showError(a().t("archbase:WARNING"), w, O);
1644
1659
  }
1645
1660
  }), J = le(
1646
1661
  "ArchbaseApiTokenView-RemoteDataSource",
1647
- f,
1662
+ x,
1648
1663
  void 0,
1649
1664
  void 0
1650
- ), te = `calc(${r} - 40px)`, Q = /* @__PURE__ */ e.jsxs(be, { children: [
1665
+ ), ae = `calc(${r} - 40px)`, Q = /* @__PURE__ */ e.jsxs(be, { children: [
1651
1666
  /* @__PURE__ */ e.jsx(
1652
- j,
1667
+ b,
1653
1668
  {
1654
1669
  dataField: "user.avatar",
1655
1670
  dataType: "image",
@@ -1659,7 +1674,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
1659
1674
  "img",
1660
1675
  {
1661
1676
  style: { borderRadius: 50, height: "32px", maxHeight: "32px" },
1662
- src: w.row.user && w.row.user.avatar ? atob(w.row.user.avatar) : Ue
1677
+ src: w.row.user && w.row.user.avatar ? atob(w.row.user.avatar) : Ne
1663
1678
  }
1664
1679
  ),
1665
1680
  inputFilterType: "text",
@@ -1667,7 +1682,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
1667
1682
  }
1668
1683
  ),
1669
1684
  /* @__PURE__ */ e.jsx(
1670
- j,
1685
+ b,
1671
1686
  {
1672
1687
  dataField: "user.userName",
1673
1688
  dataType: "text",
@@ -1677,7 +1692,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
1677
1692
  }
1678
1693
  ),
1679
1694
  /* @__PURE__ */ e.jsx(
1680
- j,
1695
+ b,
1681
1696
  {
1682
1697
  dataField: "user.email",
1683
1698
  dataType: "text",
@@ -1687,7 +1702,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
1687
1702
  }
1688
1703
  ),
1689
1704
  /* @__PURE__ */ e.jsx(
1690
- j,
1705
+ b,
1691
1706
  {
1692
1707
  dataField: "token",
1693
1708
  dataType: "text",
@@ -1698,7 +1713,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
1698
1713
  }
1699
1714
  ),
1700
1715
  /* @__PURE__ */ e.jsx(
1701
- j,
1716
+ b,
1702
1717
  {
1703
1718
  dataField: "tenantId",
1704
1719
  dataType: "text",
@@ -1709,7 +1724,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
1709
1724
  }
1710
1725
  ),
1711
1726
  /* @__PURE__ */ e.jsx(
1712
- j,
1727
+ b,
1713
1728
  {
1714
1729
  dataField: "expirationDate",
1715
1730
  dataType: "text",
@@ -1722,28 +1737,28 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
1722
1737
  O.setHours(0, 0, 0, 0);
1723
1738
  const d = new Date(w.row.expirationDate);
1724
1739
  d.setHours(0, 0, 0, 0);
1725
- const b = d.getTime() - O.getTime(), m = Math.ceil(b / (1e3 * 60 * 60 * 24));
1726
- let ce = Math.max(0, Math.min(100, m / 365 * 100)), n = "green", i = "";
1727
- m < 0 ? (n = "red", ce = 100, i = `Vencido há ${Math.abs(m)} dia${Math.abs(m) !== 1 ? "s" : ""}`) : m === 0 ? (n = "red", ce = 5, i = "Vence hoje") : m <= 7 ? (n = "red", i = `${m} dia${m !== 1 ? "s" : ""}`) : m <= 30 ? (n = "orange", i = `${m} dias`) : m <= 90 ? (n = "yellow", i = `${m} dias`) : (n = "green", i = `${m} dias`);
1728
- const P = m < 0 ? `Vencido em ${d.toLocaleDateString()}` : `Expira em ${d.toLocaleDateString()}`;
1729
- return /* @__PURE__ */ e.jsx(ie, { label: P, withArrow: !0, children: /* @__PURE__ */ e.jsxs($, { gap: "xs", wrap: "nowrap", children: [
1740
+ const f = d.getTime() - O.getTime(), m = Math.ceil(f / (1e3 * 60 * 60 * 24));
1741
+ let ce = Math.max(0, Math.min(100, m / 365 * 100)), i = "green", l = "";
1742
+ m < 0 ? (i = "red", ce = 100, l = `Vencido há ${Math.abs(m)} dia${Math.abs(m) !== 1 ? "s" : ""}`) : m === 0 ? (i = "red", ce = 5, l = "Vence hoje") : m <= 7 ? (i = "red", l = `${m} dia${m !== 1 ? "s" : ""}`) : m <= 30 ? (i = "orange", l = `${m} dias`) : m <= 90 ? (i = "yellow", l = `${m} dias`) : (i = "green", l = `${m} dias`);
1743
+ const $ = m < 0 ? `Vencido em ${d.toLocaleDateString()}` : `Expira em ${d.toLocaleDateString()}`;
1744
+ return /* @__PURE__ */ e.jsx(ie, { label: $, withArrow: !0, children: /* @__PURE__ */ e.jsxs(G, { gap: "xs", wrap: "nowrap", children: [
1730
1745
  /* @__PURE__ */ e.jsx(
1731
- Nr,
1746
+ Or,
1732
1747
  {
1733
1748
  size: 36,
1734
1749
  thickness: 4,
1735
1750
  roundCaps: !0,
1736
- sections: [{ value: m < 0 ? 100 : ce, color: n }]
1751
+ sections: [{ value: m < 0 ? 100 : ce, color: i }]
1737
1752
  }
1738
1753
  ),
1739
- /* @__PURE__ */ e.jsx(H, { size: "sm", c: m < 0 ? "red" : void 0, fw: m <= 7 ? 600 : void 0, children: i })
1754
+ /* @__PURE__ */ e.jsx(H, { size: "sm", c: m < 0 ? "red" : void 0, fw: m <= 7 ? 600 : void 0, children: l })
1740
1755
  ] }) });
1741
1756
  },
1742
1757
  inputFilterType: "text"
1743
1758
  }
1744
1759
  ),
1745
1760
  /* @__PURE__ */ e.jsx(
1746
- j,
1761
+ b,
1747
1762
  {
1748
1763
  dataField: "activated",
1749
1764
  dataType: "boolean",
@@ -1752,7 +1767,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
1752
1767
  }
1753
1768
  ),
1754
1769
  /* @__PURE__ */ e.jsx(
1755
- j,
1770
+ b,
1756
1771
  {
1757
1772
  dataField: "revoked",
1758
1773
  dataType: "boolean",
@@ -1760,65 +1775,65 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
1760
1775
  inputFilterType: "checkbox"
1761
1776
  }
1762
1777
  )
1763
- ] }), D = () => {
1764
- p.insert(aa.newInstance()), p && !M.isDataSourceV2 && M.v1State.forceUpdate(), h("apiToken");
1778
+ ] }), P = () => {
1779
+ n.insert(tt.newInstance()), n && !g.isDataSourceV2 && g.v1State.forceUpdate(), h("apiToken");
1765
1780
  }, N = () => {
1766
- f.getCurrentRecord() && _.showConfirmDialogYesNo(
1767
- `${t().t("archbase:Confirme")}`,
1768
- `${t().t("archbase:Deseja revogar o token de API do usuário ")}${f.getCurrentRecord().user.name} ?`,
1781
+ x.getCurrentRecord() && _.showConfirmDialogYesNo(
1782
+ `${a().t("archbase:Confirme")}`,
1783
+ `${a().t("archbase:Deseja revogar o token de API do usuário ")}${x.getCurrentRecord().user.name} ?`,
1769
1784
  async () => {
1770
- await C.revoke(f.getCurrentRecord().token).then(async () => {
1785
+ await v.revoke(x.getCurrentRecord().token).then(async () => {
1771
1786
  Y.showSuccess(
1772
- `${t().t("mentors:Informação")}`,
1773
- `${t().t("mentors:Token de API revogado com sucesso!")}`
1774
- ), f.refreshData(), f && !J.isDataSourceV2 && J.v1State.forceUpdate();
1787
+ `${a().t("mentors:Informação")}`,
1788
+ `${a().t("mentors:Token de API revogado com sucesso!")}`
1789
+ ), x.refreshData(), x && !J.isDataSourceV2 && J.v1State.forceUpdate();
1775
1790
  }).catch((w) => {
1776
1791
  _.showErrorWithDetails(
1777
- `${t().t("mentors:Atenção")}`,
1778
- Ae(w),
1779
- Fe(w)
1792
+ `${a().t("mentors:Atenção")}`,
1793
+ Te(w),
1794
+ Ie(w)
1780
1795
  );
1781
1796
  });
1782
1797
  },
1783
1798
  () => {
1784
1799
  }
1785
1800
  );
1786
- }, I = () => {
1801
+ }, D = () => {
1787
1802
  h("");
1788
1803
  }, q = async (w, O) => {
1789
- const d = p.getCurrentRecord();
1804
+ const d = n.getCurrentRecord();
1790
1805
  if (d)
1791
1806
  try {
1792
- if (p.validate(), !d.user || !d.user.email) {
1807
+ if (n.validate(), !d.user || !d.user.email) {
1793
1808
  _.showErrorWithDetails(
1794
- `${t().t("archbase:WARNING")}`,
1795
- `${t().t("archbase:Selecione um usuário para o token de API")}`,
1809
+ `${a().t("archbase:WARNING")}`,
1810
+ `${a().t("archbase:Selecione um usuário para o token de API")}`,
1796
1811
  ""
1797
1812
  );
1798
1813
  return;
1799
1814
  }
1800
- await C.create(d.user.email, d.expirationDate, d.name, d.description).then(async (b) => {
1801
- p.cancel(), p && !M.isDataSourceV2 && M.v1State.forceUpdate(), f.append(b), f && !J.isDataSourceV2 && J.v1State.forceUpdate(), Y.showSuccess(
1802
- `${t().t("mentors:Informação")}`,
1803
- `${t().t("mentors:Token de API gerado com sucesso!")}`
1815
+ await v.create(d.user.email, d.expirationDate, d.name, d.description).then(async (f) => {
1816
+ n.cancel(), n && !g.isDataSourceV2 && g.v1State.forceUpdate(), x.append(f), x && !J.isDataSourceV2 && J.v1State.forceUpdate(), Y.showSuccess(
1817
+ `${a().t("mentors:Informação")}`,
1818
+ `${a().t("mentors:Token de API gerado com sucesso!")}`
1804
1819
  ), O && O(!0);
1805
- }).catch((b) => {
1820
+ }).catch((f) => {
1806
1821
  _.showErrorWithDetails(
1807
- `${t().t("mentors:Atenção")}`,
1808
- Ae(b),
1809
- Fe(b)
1822
+ `${a().t("mentors:Atenção")}`,
1823
+ Te(f),
1824
+ Ie(f)
1810
1825
  );
1811
1826
  });
1812
- } catch (b) {
1827
+ } catch (f) {
1813
1828
  _.showErrorWithDetails(
1814
- `${t().t("mentors:Atenção")}`,
1815
- Ae(b),
1816
- Fe(b)
1829
+ `${a().t("mentors:Atenção")}`,
1830
+ Te(f),
1831
+ Ie(f)
1817
1832
  );
1818
1833
  }
1819
- }, o = () => /* @__PURE__ */ e.jsx(oe, { justify: "space-between", style: { width: "50%" }, children: /* @__PURE__ */ e.jsxs($, { align: "start", gap: "2px", wrap: "nowrap", children: [
1820
- /* @__PURE__ */ e.jsx(V, { color: "green", leftSection: /* @__PURE__ */ e.jsx(Ie, {}), onClick: D, children: t().t("archbase:New") }),
1821
- /* @__PURE__ */ e.jsx(V, { disabled: !f.getCurrentRecord(), color: "red", leftSection: /* @__PURE__ */ e.jsx(ve, {}), onClick: N, children: t().t("archbase:Revoke") })
1834
+ }, s = () => /* @__PURE__ */ e.jsx(oe, { justify: "space-between", style: { width: "50%" }, children: /* @__PURE__ */ e.jsxs(G, { align: "start", gap: "2px", wrap: "nowrap", children: [
1835
+ /* @__PURE__ */ e.jsx(U, { color: "green", leftSection: /* @__PURE__ */ e.jsx(De, {}), onClick: P, children: a().t("archbase:New") }),
1836
+ /* @__PURE__ */ e.jsx(U, { disabled: !x.getCurrentRecord(), color: "red", leftSection: /* @__PURE__ */ e.jsx(Ce, {}), onClick: N, children: a().t("archbase:Revoke") })
1822
1837
  ] }) });
1823
1838
  return /* @__PURE__ */ e.jsxs(X, { p: "md", style: { height: r, display: "flex", flexDirection: "column" }, children: [
1824
1839
  /* @__PURE__ */ e.jsx(
@@ -1826,7 +1841,7 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
1826
1841
  {
1827
1842
  withBorder: !0,
1828
1843
  style: {
1829
- height: te,
1844
+ height: ae,
1830
1845
  display: "flex",
1831
1846
  width: "100%",
1832
1847
  flex: 1,
@@ -1841,44 +1856,44 @@ function Ia({ height: r = "400px", width: c = "100%" }) {
1841
1856
  width: "100%",
1842
1857
  height: "100%",
1843
1858
  withBorder: !1,
1844
- dataSource: f,
1859
+ dataSource: x,
1845
1860
  withColumnBorders: !0,
1846
1861
  striped: !0,
1847
1862
  enableTopToolbar: !0,
1848
1863
  enableRowActions: !1,
1849
1864
  pageSize: 50,
1850
- isLoading: ae,
1851
- isError: !!x,
1852
- error: x,
1865
+ isLoading: te,
1866
+ isError: !!p,
1867
+ error: p,
1853
1868
  enableGlobalFilter: !0,
1854
- getRowId: l,
1855
- toolbarLeftContent: o(),
1869
+ getRowId: I,
1870
+ toolbarLeftContent: s(),
1856
1871
  children: Q
1857
1872
  }
1858
1873
  )
1859
1874
  }
1860
1875
  ),
1861
1876
  E === "apiToken" ? /* @__PURE__ */ e.jsx(
1862
- fa,
1877
+ ft,
1863
1878
  {
1864
- onClickOk: I,
1879
+ onClickOk: D,
1865
1880
  opened: !0,
1866
- dataSource: p,
1881
+ dataSource: n,
1867
1882
  onCustomSave: q,
1868
- onClickCancel: I
1883
+ onClickCancel: D
1869
1884
  }
1870
1885
  ) : null
1871
1886
  ] });
1872
1887
  }
1873
1888
  export {
1874
- fa as ApiTokenModal,
1875
- Ia as ArchbaseApiTokenView,
1876
- da as ArchbaseDualListSelector,
1877
- Fa as ArchbaseSecurityView,
1878
- xa as GroupModal,
1879
- Ve as PermissionsSelectorModal,
1880
- ca as ProfileModal,
1881
- ua as RenderProfileUserItem,
1882
- pa as UserModal
1889
+ ft as ApiTokenModal,
1890
+ It as ArchbaseApiTokenView,
1891
+ dt as ArchbaseDualListSelector,
1892
+ Ft as ArchbaseSecurityView,
1893
+ xt as GroupModal,
1894
+ Me as PermissionsSelectorModal,
1895
+ ct as ProfileModal,
1896
+ ut as RenderProfileUserItem,
1897
+ pt as UserModal
1883
1898
  };
1884
1899
  //# sourceMappingURL=index.js.map