@feedmepos/mf-hrm-portal 1.1.3-dev → 1.1.3-dev.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/AuditLogList-BghaBoJj.js +436 -0
  2. package/dist/EmployeeList-C4knb1ZM.js +626 -0
  3. package/dist/{Main-DGymQNz9.js → Main-BGcdVWrj.js} +10 -9
  4. package/dist/{Main-BqhrqOzx.js → Main-DYuuBLTj.js} +28 -27
  5. package/dist/PermissionSetList-DPKmbnO4.js +323 -0
  6. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-nbk54pp5.js +3092 -0
  7. package/dist/RoleList-CWUkSfcS.js +494 -0
  8. package/dist/TeamMemberList-BDB9zWwa.js +965 -0
  9. package/dist/{TimesheetList-hgT9DrHd.js → TimesheetList-CqVVoydR.js} +25 -24
  10. package/dist/api/index.d.ts +5 -0
  11. package/dist/api/report-query/index.d.ts +5 -0
  12. package/dist/api/team/index.d.ts +2 -5
  13. package/dist/{app-CcbYGJ22.js → app-C04LPGZa.js} +1606 -918
  14. package/dist/app.js +4 -4
  15. package/dist/composables/useReportPermissions.d.ts +14 -0
  16. package/dist/{dayjs.min-CgN1oBQf.js → dayjs.min-CKv07Hiu.js} +1 -1
  17. package/dist/employee-DyW4lRCb.js +144 -0
  18. package/dist/helpers/permission-set.d.ts +37 -0
  19. package/dist/helpers/rule.d.ts +1 -1
  20. package/dist/index-CIz_Nsy5.js +10340 -0
  21. package/dist/index-DGq_eY85.js +827 -0
  22. package/dist/{lodash-7Am6_Zd3.js → lodash-r0Tf8VGX.js} +1 -1
  23. package/dist/stores/permission-set.d.ts +15 -0
  24. package/dist/stores/team.d.ts +4 -1
  25. package/dist/style.css +1 -1
  26. package/dist/team-CSB4_BXX.js +29 -0
  27. package/dist/{timesheet-DKhEeLe7.js → timesheet-CTS0MzUs.js} +2 -2
  28. package/dist/tsconfig.app.tsbuildinfo +1 -1
  29. package/dist/types/audit-log.d.ts +1 -19
  30. package/dist/types/permission-set.d.ts +4 -0
  31. package/dist/types/report-query.d.ts +6 -0
  32. package/dist/{useAppStore-DOSLuH24.js → useAppStore-CWtHdJdl.js} +34 -46
  33. package/dist/{useLoading-BA-GSZ3R.js → useLoading-gYEFsA3E.js} +1 -1
  34. package/dist/useReportPermissions--n283f22.js +65 -0
  35. package/dist/views/audit-log/locales/index.d.ts +84 -0
  36. package/dist/views/team/locales/index.d.ts +32 -8
  37. package/package.json +4 -2
  38. package/dist/AuditLogList-DNQh1rE9.js +0 -316
  39. package/dist/EmployeeList-zU7fmC4c.js +0 -607
  40. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BvjXcknf.js +0 -3050
  41. package/dist/RoleList-jbZqer7A.js +0 -496
  42. package/dist/RolePermissionList-Dd8ks5i7.js +0 -285
  43. package/dist/TeamMemberList-uamoOFIV.js +0 -949
  44. package/dist/employee-khk560IC.js +0 -172
  45. package/dist/index-D5sdamN5.js +0 -8411
  46. package/dist/team-CFyc6tnm.js +0 -26
  47. package/dist/types/permission.d.ts +0 -1
  48. /package/dist/views/team/{role/RolePermissionForm.vue.d.ts → permission-set/PermissionSetForm.vue.d.ts} +0 -0
  49. /package/dist/views/team/{role/RolePermissionList.vue.d.ts → permission-set/PermissionSetList.vue.d.ts} +0 -0
@@ -1,496 +0,0 @@
1
- import { defineComponent as ce, ref as T, computed as _, onMounted as pe, watch as xe, resolveComponent as y, createBlock as C, openBlock as p, unref as t, withCtx as b, createElementVNode as f, createVNode as c, createCommentVNode as re, createElementBlock as L, Fragment as q, renderList as G, toDisplayString as P, h as F, createTextVNode as ne, resolveDynamicComponent as ie, withModifiers as Fe, nextTick as ue } from "vue";
2
- import { e as Ce, a as E, r as K, h as le, f as Re, c as de, d as j } from "./index-D5sdamN5.js";
3
- import { useI18n as ve, useCoreStore as fe } from "@feedmepos/mf-common";
4
- import { useSnackbar as _e, components as W, useDialog as Ve, useBreakpoints as we, FmButtonColorThemeVariant as me, FmButtonVariant as ke } from "@feedmepos/ui-library";
5
- import { _ as Ie } from "./app-CcbYGJ22.js";
6
- import { _ as Le } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
- import { u as he } from "./useAppStore-DOSLuH24.js";
8
- import { u as Ue, _ as se, a as Se, b as $e } from "./useRestaurantMap-D5BNPLKh.js";
9
- import { l as z } from "./lodash-7Am6_Zd3.js";
10
- import { u as Ee } from "./useLoading-BA-GSZ3R.js";
11
- const Te = { class: "fm-typo-en-title-md-600" }, Be = { class: "space-y-40" }, De = { class: "space-y-8" }, Pe = { class: "space-y-8" }, Me = {
12
- key: 0,
13
- class: "w-50 ml-5 flex flex-row items-start"
14
- }, Ae = { class: "m-2" }, Ne = { class: "flex gap-8 items-center justify-start" }, Oe = /* @__PURE__ */ ce({
15
- __name: "RoleForm",
16
- props: {
17
- id: {
18
- type: String,
19
- default: void 0
20
- }
21
- },
22
- setup(te, { expose: H }) {
23
- const { t: s } = ve(), Q = fe(), U = T(""), R = _(() => Q.restaurants.value.filter(({ profile: e }) => {
24
- const a = `${e.code ? e.code + "-" : ""}${e.legalName}`;
25
- return !U.value || a.toLowerCase().includes(U.value.toLowerCase());
26
- })), S = he(), J = _e(), X = Ee(J), B = te, d = T(!1), Y = () => {
27
- d.value = !d.value, d.value && $();
28
- }, Z = _(() => B.id ? s("hr.role.form.update") : s("hr.role.form.add")), M = _(() => B.id ? s("common.update") : s("common.add")), A = _(() => Ce.filter(
29
- (e) => !(e.subject === E.F_RULE_SUBJECT.enum.report && !e.conditions)
30
- ).map((e) => K(e))), m = _(() => S.roles.value.find((e) => e._id == B.id)), V = () => ({
31
- name: "",
32
- restaurantIds: [],
33
- permissions: [],
34
- maxDiscountPercentage: 100
35
- }), l = T(V()), N = _(() => [
36
- {
37
- title: s("hr.role.labels.operation"),
38
- filter: (e) => e.isOrderOperation
39
- },
40
- {
41
- title: s("hr.role.labels.report"),
42
- filter: (e) => e.isReportPermission
43
- },
44
- {
45
- title: s("hr.role.labels.other"),
46
- filter: (e) => !e.isOrderOperation && !e.isReportPermission
47
- }
48
- ].map((e) => ({
49
- title: e.title,
50
- options: A.value.filter(e.filter).map(({ label: a, value: v }) => ({
51
- label: a,
52
- value: v
53
- }))
54
- }))), h = _(() => {
55
- var e;
56
- return le(((e = m.value) == null ? void 0 : e.permissions) || []);
57
- });
58
- function $() {
59
- var e;
60
- l.value = V(), l.value.name = ((e = m.value) == null ? void 0 : e.name) ?? "", h.value ? (l.value.restaurantIds = R.value.map((a) => a._id), l.value.permissions = A.value.map((a) => a.value)) : m.value && (l.value.restaurantIds = m.value.restaurants.map((a) => a.id), l.value.permissions = m.value.permissions.map(
61
- (a) => K(a).value
62
- ), l.value.maxDiscountPercentage = de(
63
- m.value.permissions
64
- ));
65
- }
66
- pe(() => {
67
- $();
68
- });
69
- const ee = T(""), ae = _(() => ({
70
- restaurantIds: l.value.restaurantIds,
71
- role: {
72
- name: l.value.name,
73
- permissions: Re(l.value.permissions, l.value.maxDiscountPercentage)
74
- }
75
- })), o = () => {
76
- const e = ae.value;
77
- X.minor(
78
- async () => {
79
- m.value ? await S.updateRole(m.value._id, e) : await S.createRole(e);
80
- },
81
- {
82
- successMessage: m.value ? s("hr.role.add.successMessage", { name: e.role.name }) : s("hr.role.update.successMessage", { name: e.role.name })
83
- }
84
- ), d.value = !1;
85
- }, r = _(
86
- () => l.value.restaurantIds.filter((e) => R.value.some((a) => a._id === e))
87
- ), i = _(() => R.value.length > 0 && R.value.length === r.value.length), u = () => {
88
- const e = l.value.restaurantIds.filter((a) => !r.value.includes(a));
89
- i.value === !0 ? l.value.restaurantIds = e : l.value.restaurantIds = R.value.map((a) => a._id);
90
- }, g = (e) => e.map((v) => v.value).every((v) => l.value.permissions.includes(v)), w = (e) => {
91
- const a = l.value.permissions.filter(
92
- (v) => !e.map((D) => D.value).includes(v)
93
- );
94
- g(e) === !0 ? l.value.permissions = a : l.value.permissions = [...a, ...e.map((v) => v.value)];
95
- };
96
- xe(
97
- () => l.value.restaurantIds,
98
- (e) => {
99
- e.length > 0 && (ee.value = "");
100
- }
101
- );
102
- const O = Ue(
103
- () => {
104
- var e, a, v, D;
105
- return !z.isEqual(l.value.name, ((e = m.value) == null ? void 0 : e.name) || V().name) || !z.isEqual(
106
- l.value.restaurantIds,
107
- ((a = m.value) == null ? void 0 : a.restaurants.map((k) => k.id)) || V().restaurantIds
108
- ) || !z.isEqual(
109
- l.value.permissions,
110
- ((v = m.value) == null ? void 0 : v.permissions.map((k) => K(k).value)) || V().permissions
111
- ) || !z.isEqual(
112
- l.value.maxDiscountPercentage,
113
- m.value ? de((D = m.value) == null ? void 0 : D.permissions) : V().maxDiscountPercentage
114
- );
115
- },
116
- () => {
117
- d.value = !1;
118
- }
119
- );
120
- return H({
121
- show: d,
122
- trigger: Y
123
- }), (e, a) => {
124
- const v = y("FmTextField"), D = y("FmSearch"), k = y("FmCheckbox"), ge = y("FmFormGroup"), be = y("FmCard"), oe = y("fm-button"), ye = y("fm-side-sheet");
125
- return p(), C(ye, {
126
- id: "unit-form",
127
- modelValue: d.value,
128
- "onUpdate:modelValue": a[7] || (a[7] = (n) => d.value = n),
129
- "is-container": t(W).FmForm,
130
- "is-container-props": {
131
- onValidationSuccess: o,
132
- blameFormChildOnValidationFailed: !0
133
- },
134
- "max-width": 560,
135
- "onOn:clickedAway": t(O)
136
- }, {
137
- "side-sheet-header": b(() => [
138
- f("p", Te, P(Z.value), 1)
139
- ]),
140
- "side-sheet-footer": b(() => [
141
- f("div", Ne, [
142
- c(oe, {
143
- label: M.value,
144
- size: "lg",
145
- type: "submit",
146
- variant: "primary",
147
- disabled: h.value
148
- }, null, 8, ["label", "disabled"]),
149
- c(oe, {
150
- label: t(s)("common.cancel"),
151
- size: "lg",
152
- variant: "tertiary",
153
- onClick: a[6] || (a[6] = () => d.value = !1)
154
- }, null, 8, ["label"])
155
- ])
156
- ]),
157
- default: b(() => [
158
- f("div", Be, [
159
- c(se, { title: "Role detail" }, {
160
- default: b(() => [
161
- c(v, {
162
- modelValue: l.value.name,
163
- "onUpdate:modelValue": a[0] || (a[0] = (n) => l.value.name = n),
164
- autofocus: "",
165
- rules: [(n) => !!n || t(s)("hr.role.form.required")],
166
- label: t(s)("hr.role.form.name"),
167
- disabled: h.value
168
- }, null, 8, ["modelValue", "rules", "label", "disabled"])
169
- ]),
170
- _: 1
171
- }),
172
- c(se, {
173
- title: t(s)("hr.role.form.restaurant")
174
- }, {
175
- default: b(() => [
176
- c(D, {
177
- modelValue: U.value,
178
- "onUpdate:modelValue": a[1] || (a[1] = (n) => U.value = n),
179
- placeholder: t(s)("hr.restaurant.search.placeholder")
180
- }, null, 8, ["modelValue", "placeholder"]),
181
- c(ge, {
182
- modelValue: l.value.restaurantIds,
183
- "onUpdate:modelValue": a[3] || (a[3] = (n) => l.value.restaurantIds = n),
184
- rules: [(n) => n.length > 0 || t(s)("hr.role.form.atLeastOneRestaurant")]
185
- }, {
186
- default: b(() => [
187
- f("div", De, [
188
- U.value ? re("", !0) : (p(), C(k, {
189
- key: 0,
190
- "model-value": i.value,
191
- label: "All",
192
- value: "1",
193
- disabled: h.value,
194
- "onUpdate:modelValue": u
195
- }, null, 8, ["model-value", "disabled"])),
196
- (p(!0), L(q, null, G(R.value, (n) => (p(), L("div", {
197
- key: n._id
198
- }, [
199
- c(k, {
200
- modelValue: l.value.restaurantIds,
201
- "onUpdate:modelValue": a[2] || (a[2] = (I) => l.value.restaurantIds = I),
202
- label: `${n.profile.code ? n.profile.code + "-" : ""}${n.profile.name}`,
203
- value: n._id,
204
- disabled: h.value
205
- }, null, 8, ["modelValue", "label", "value", "disabled"])
206
- ]))), 128))
207
- ])
208
- ]),
209
- _: 1
210
- }, 8, ["modelValue", "rules"])
211
- ]),
212
- _: 1
213
- }, 8, ["title"]),
214
- c(se, {
215
- title: t(s)("hr.role.form.permissions")
216
- }, {
217
- default: b(() => [
218
- (p(!0), L(q, null, G(N.value, (n) => (p(), C(be, {
219
- key: n.title,
220
- variant: "outlined",
221
- class: "p-16"
222
- }, {
223
- default: b(() => [
224
- c(Se, {
225
- label: n.title
226
- }, {
227
- default: b(() => [
228
- f("div", Pe, [
229
- c(k, {
230
- "model-value": g(n.options),
231
- label: "All",
232
- value: "1",
233
- disabled: h.value,
234
- "onUpdate:modelValue": (I) => w(n.options)
235
- }, null, 8, ["model-value", "disabled", "onUpdate:modelValue"]),
236
- (p(!0), L(q, null, G(n.options, (I) => (p(), L("div", {
237
- key: I.value
238
- }, [
239
- c(k, {
240
- modelValue: l.value.permissions,
241
- "onUpdate:modelValue": a[4] || (a[4] = (x) => l.value.permissions = x),
242
- label: I.label,
243
- value: I.value,
244
- disabled: h.value
245
- }, null, 8, ["modelValue", "label", "value", "disabled"]),
246
- I.value === "order:discount" && l.value.permissions.includes(I.value) ? (p(), L("div", Me, [
247
- f("div", Ae, P(t(s)("hr.role.form.maxDiscountPercentage")), 1),
248
- c(v, {
249
- modelValue: l.value.maxDiscountPercentage,
250
- "onUpdate:modelValue": a[5] || (a[5] = (x) => l.value.maxDiscountPercentage = x),
251
- rules: [
252
- (x) => !!x || t(s)("hr.role.form.required"),
253
- (x) => !isNaN(x) || t(s)("hr.role.form.onlyContainsNumber"),
254
- (x) => x <= 100 || t(s)("hr.role.form.maxValueIs", { max: 100 }),
255
- (x) => x >= 0 || t(s)("hr.role.form.minValueIs", { min: 0 })
256
- ],
257
- "append-text": "%",
258
- disabled: h.value
259
- }, null, 8, ["modelValue", "rules", "disabled"])
260
- ])) : re("", !0)
261
- ]))), 128))
262
- ])
263
- ]),
264
- _: 2
265
- }, 1032, ["label"])
266
- ]),
267
- _: 2
268
- }, 1024))), 128))
269
- ]),
270
- _: 1
271
- }, 8, ["title"])
272
- ])
273
- ]),
274
- _: 1
275
- }, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"]);
276
- };
277
- }
278
- }), qe = {
279
- class: "space-y-8"
280
- }, Je = {
281
- class: "flex justify-end xs:px-16"
282
- }, je = {
283
- class: "pb-64 hidden xs:block"
284
- }, ze = {
285
- class: "space-y-4"
286
- }, Ge = {
287
- class: "fm-typo-en-body-lg-600"
288
- }, Ke = {
289
- class: "text-fm-color-typo-secondary"
290
- }, We = {
291
- class: "flex"
292
- }, He = {
293
- class: "flex"
294
- }, ra = /* @__PURE__ */ ce({
295
- __name: "RoleList",
296
- setup(te, {
297
- expose: H
298
- }) {
299
- const {
300
- t: s
301
- } = ve(), Q = fe(), U = _(() => Q.restaurants.value), R = _(() => U.value.map((o) => o._id));
302
- function S(o, r) {
303
- const i = j(o, r);
304
- return ["-", "All"].includes(i) ? () => null : () => F(W.FmTooltip, {
305
- "z-index": "999",
306
- placement: "top",
307
- class: "ml-2"
308
- }, {
309
- content: () => F("div", {
310
- innerHTML: `
311
- ${s("hr.role.tooltip.labels.permission")}
312
- ${o.filter((u) => u.subject === r).map((u) => `<div>- ${K(u).label}</div>`).join("")}
313
- `
314
- }),
315
- default: () => F(W.FmIcon, {
316
- name: "info",
317
- color: me.NeutralGray400
318
- })
319
- });
320
- }
321
- function J(o, r) {
322
- const i = j(o, r);
323
- return () => i === "All" ? i : F("div", {
324
- class: "flex items-center"
325
- }, [i, S(o, r)()]);
326
- }
327
- const X = [{
328
- accessorKey: "name",
329
- header: () => s("hr.role.columns.name"),
330
- enableSorting: !1
331
- }, {
332
- accessorKey: "operation",
333
- header: () => s("hr.role.columns.operation"),
334
- cell: (o) => F(J(o.row.original.permissions, E.F_RULE_SUBJECT.enum.order)),
335
- enableSorting: !1
336
- }, {
337
- accessorKey: "report",
338
- header: () => s("hr.role.columns.report"),
339
- cell: (o) => F(J(o.row.original.permissions, E.F_RULE_SUBJECT.enum.report)),
340
- enableSorting: !1
341
- }, {
342
- accessorKey: "restaurants",
343
- header: () => s("hr.role.columns.restaurants"),
344
- cell: (o) => o.row.original.restaurants.map((r, i) => {
345
- const u = r.code, g = `${u ? u + " - " : ""}${r.name}`;
346
- return F("div", (i ? `
347
- ` : "") + g);
348
- }),
349
- enableSorting: !1
350
- }, {
351
- id: "action",
352
- size: 52,
353
- meta: {
354
- cellClass: "pl-16",
355
- headerContentClass: "-mx-16"
356
- },
357
- cell: (o) => F("div", {
358
- class: "w-full flex justify-end items-center"
359
- }, [F(W.FmButton, {
360
- prependIcon: "delete",
361
- variant: ke.Tertiary,
362
- textColor: me.NeutralGray400,
363
- disabled: le(o.row.original.permissions),
364
- onClick: (r) => {
365
- r.stopPropagation(), l(o.row.original);
366
- }
367
- })])
368
- }], B = async (o) => {
369
- var r;
370
- $.value = o._id, await ue(), (r = h.value) == null || r.trigger();
371
- }, d = he(), Y = $e(), Z = _(() => (d.roles.value || []).filter((i) => i.restaurants.some((u) => R.value.includes(u.id))).map((i) => {
372
- const u = i.restaurants.map((g) => {
373
- const w = Y.value[g.id];
374
- return {
375
- ...g,
376
- code: w == null ? void 0 : w.profile.code
377
- };
378
- });
379
- return {
380
- ...i,
381
- restaurants: u
382
- };
383
- })), M = _(() => {
384
- var r;
385
- return (r = Z.value) == null ? void 0 : r.filter((i) => {
386
- const u = N.value.toLowerCase(), g = i.name.toLowerCase().includes(u), O = (i.restaurants || []).some((e) => {
387
- var a;
388
- return e.name.toLowerCase().includes(u) || ((a = e.code) == null ? void 0 : a.toLowerCase().includes(u));
389
- });
390
- return g || O;
391
- });
392
- }), A = Ve(), m = _e(), {
393
- breakpoints: V
394
- } = we(), l = (o) => {
395
- A.open({
396
- title: s("hr.role.remove.title"),
397
- message: s("hr.role.remove.message", {
398
- name: o.name
399
- }),
400
- minWidth: V.value.lg ? 588 : 0,
401
- primaryActions: {
402
- text: s("common.remove"),
403
- close: !1,
404
- variant: "destructive"
405
- },
406
- secondaryActions: {
407
- text: s("common.cancel"),
408
- close: !0
409
- }
410
- }).onPrimary(async () => {
411
- await d.deleteRole(o).then(() => m.open({
412
- message: s("hr.role.remove.successMessage", {
413
- name: o.name
414
- }),
415
- type: "success"
416
- })).catch((r) => m.open({
417
- message: r,
418
- type: "error"
419
- })), A.close();
420
- });
421
- }, N = T(""), h = T(), $ = T(void 0);
422
- async function ee() {
423
- var o;
424
- $.value = void 0, await ue(), (o = h.value) == null || o.trigger();
425
- }
426
- async function ae() {
427
- d.roles.value.length === 0 && await d.readRoles();
428
- }
429
- return pe(() => {
430
- ae();
431
- }), H({
432
- create: ee
433
- }), (o, r) => {
434
- const i = y("FmSearch"), u = y("FmTable"), g = y("FmButton"), w = y("FmListItem"), O = y("FmList");
435
- return p(), L(q, null, [(p(), C(Oe, {
436
- id: $.value,
437
- key: $.value,
438
- ref_key: "roleFormRef",
439
- ref: h
440
- }, null, 8, ["id"])), f("div", qe, [f("div", Je, [c(i, {
441
- modelValue: N.value,
442
- "onUpdate:modelValue": r[0] || (r[0] = (e) => N.value = e),
443
- class: "w-[320px] xs:w-full",
444
- autofocus: "",
445
- placeholder: t(s)("hr.role.search.placeholder") + " / " + t(s)("hr.restaurant.search.placeholder")
446
- }, null, 8, ["modelValue", "placeholder"])]), t(d).roles.value.length > 0 || t(d).isLoading.value ? (p(), C(Ie, {
447
- key: 0,
448
- class: "overflow-auto"
449
- }, {
450
- default: b(() => [c(u, {
451
- class: "xs:hidden",
452
- "column-defs": X,
453
- "row-data": M.value,
454
- "page-size": M.value.length,
455
- loading: t(d).isLoading.value,
456
- "pin-header-row": "",
457
- "hide-footer": "",
458
- "shrink-at": !1,
459
- onRowClick: r[1] || (r[1] = (e) => B(e.original))
460
- }, null, 8, ["row-data", "page-size", "loading"]), f("div", je, [c(O, {
461
- separator: ""
462
- }, {
463
- default: b(() => [(p(!0), L(q, null, G(M.value, (e) => (p(), C(w, {
464
- key: e._id,
465
- class: "py-12 px-16 items-center justify-between",
466
- onClick: (a) => B(e)
467
- }, {
468
- default: b(() => [f("div", ze, [f("p", Ge, P(e.name), 1), f("div", Ke, [f("p", null, P(t(s)("hr.role.labels.restaurantList", {
469
- items: e.restaurants.map((a) => a.name).join(", ")
470
- })), 1), f("p", We, [ne(P(t(s)("hr.role.labels.operationList", {
471
- items: t(j)(e.permissions, t(E.F_RULE_SUBJECT).enum.order)
472
- })) + " ", 1), (p(), C(ie(S(e.permissions, t(E.F_RULE_SUBJECT).enum.order))))]), f("p", He, [ne(P(t(s)("hr.role.labels.reportList", {
473
- items: t(j)(e.permissions, t(E.F_RULE_SUBJECT).enum.report)
474
- })) + " ", 1), (p(), C(ie(S(e.permissions, t(E.F_RULE_SUBJECT).enum.report))))])])]), c(g, {
475
- disabled: t(le)(e.permissions),
476
- icon: "delete",
477
- variant: "tertiary",
478
- "text-color": "neutral-gray-400",
479
- onClick: Fe((a) => l(e), ["stop"])
480
- }, null, 8, ["disabled", "onClick"])]),
481
- _: 2
482
- }, 1032, ["onClick"]))), 128))]),
483
- _: 1
484
- })])]),
485
- _: 1
486
- })) : (p(), C(t(Le), {
487
- key: 1,
488
- title: t(s)("hr.role.noData.title"),
489
- subtitle: t(s)("hr.role.noData.subtitle")
490
- }, null, 8, ["title", "subtitle"]))])], 64);
491
- };
492
- }
493
- });
494
- export {
495
- ra as default
496
- };