@feedmepos/mf-hrm-portal 1.1.3-dev.1 → 1.1.3-dev.11

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-DJljqXNX.js +462 -0
  2. package/dist/EmployeeList-jh-Jtgn7.js +626 -0
  3. package/dist/{Main-VjhiuuHr.js → Main-Bjd4gY-V.js} +28 -27
  4. package/dist/{Main-D5YEKOpl.js → Main-pGBnqjr1.js} +10 -9
  5. package/dist/PermissionSetList-De_oM6zJ.js +323 -0
  6. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-HT8O-x5x.js +3092 -0
  7. package/dist/RoleList-Be2stivK.js +494 -0
  8. package/dist/TeamMemberList-BC0on98P.js +973 -0
  9. package/dist/{TimesheetList-BTTBjTrO.js → TimesheetList-BJNNbqeI.js} +25 -24
  10. package/dist/api/audit-log/index.d.ts +4 -0
  11. package/dist/api/index.d.ts +5 -0
  12. package/dist/api/report-query/index.d.ts +5 -0
  13. package/dist/api/team/index.d.ts +2 -5
  14. package/dist/{app-CfIHEA52.js → app-B6sFazWs.js} +1566 -922
  15. package/dist/app.js +4 -4
  16. package/dist/composables/useReportPermissions.d.ts +14 -0
  17. package/dist/{dayjs.min-C8cBXLt-.js → dayjs.min-DyrmuWSw.js} +1 -1
  18. package/dist/employee-CiqtFaEs.js +144 -0
  19. package/dist/helpers/permission-set.d.ts +37 -0
  20. package/dist/helpers/rule.d.ts +1 -1
  21. package/dist/index-CUEt2D4C.js +827 -0
  22. package/dist/index-CUtOR5dv.js +10340 -0
  23. package/dist/{lodash-0EOIqOEG.js → lodash-CudL7fSp.js} +1 -1
  24. package/dist/stores/permission-set.d.ts +15 -0
  25. package/dist/stores/team.d.ts +13 -4
  26. package/dist/style.css +1 -1
  27. package/dist/team-BzRey7P9.js +30 -0
  28. package/dist/{timesheet-DTI6G4DD.js → timesheet-ppNqE2ke.js} +2 -2
  29. package/dist/tsconfig.app.tsbuildinfo +1 -1
  30. package/dist/types/permission-set.d.ts +4 -0
  31. package/dist/types/report-query.d.ts +6 -0
  32. package/dist/{useAppStore-DCpMNDxE.js → useAppStore-lxDKLJN1.js} +34 -46
  33. package/dist/{useLoading-ChLCiMQj.js → useLoading-ib83IjNC.js} +1 -1
  34. package/dist/useReportPermissions-sw6kd_sS.js +65 -0
  35. package/dist/views/audit-log/locales/index.d.ts +48 -8
  36. package/dist/views/team/locales/index.d.ts +32 -8
  37. package/package.json +4 -2
  38. package/dist/AuditLogList-qGKeg-cd.js +0 -384
  39. package/dist/EmployeeList-BWDsSFoY.js +0 -607
  40. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-yghfcQRF.js +0 -3050
  41. package/dist/RoleList-CfPD_Gk_.js +0 -496
  42. package/dist/RolePermissionList-Cu1KTuuI.js +0 -285
  43. package/dist/TeamMemberList-DEYo6_pS.js +0 -949
  44. package/dist/employee-ChJpkvUF.js +0 -172
  45. package/dist/index-CgbDOn3W.js +0 -8411
  46. package/dist/team-C2muObo8.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
@@ -0,0 +1,462 @@
1
+ import { defineComponent as ae, ref as p, computed as k, watch as q, resolveComponent as V, createElementBlock as m, openBlock as r, Fragment as F, createVNode as d, unref as s, withCtx as N, createElementVNode as e, createBlock as $, createCommentVNode as v, toDisplayString as a, renderList as se } from "vue";
2
+ import { d as ie } from "./dayjs.min-DyrmuWSw.js";
3
+ import { useI18n as ne, useCoreStore as de } from "@feedmepos/mf-common";
4
+ import { _ as ce, G as re } from "./app-B6sFazWs.js";
5
+ import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
6
+ import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
+ import { components as Y } from "@feedmepos/ui-library";
8
+ import { g as fe, b as pe, p as G } from "./index-CUtOR5dv.js";
9
+ import { u as _e } from "./team-BzRey7P9.js";
10
+ import { S as U } from "./SelectFilter-NbXrJ4iH.js";
11
+ const ve = "/audit-logs", ge = {
12
+ async read(n) {
13
+ var O, g, x, w;
14
+ const t = {
15
+ limit: (n == null ? void 0 : n.limit) ?? 100,
16
+ offset: (n == null ? void 0 : n.offset) ?? 0,
17
+ ...n != null && n.from ? { from: n.from } : {},
18
+ ...n != null && n.to ? { to: n.to } : {},
19
+ ...(O = n == null ? void 0 : n.userIds) != null && O.length ? { userIds: n.userIds } : {},
20
+ ...(g = n == null ? void 0 : n.subjects) != null && g.length ? { subjects: n.subjects } : {},
21
+ ...(x = n == null ? void 0 : n.actions) != null && x.length ? { actions: n.actions } : {},
22
+ ...(w = n == null ? void 0 : n.outcomes) != null && w.length ? { outcomes: n.outcomes } : {}
23
+ };
24
+ return console.log("[AuditLogAPI] request params:", t), fe(
25
+ await pe().get(ve, {
26
+ params: t,
27
+ // Serialize arrays as repeated params: key=val1&key=val2
28
+ // (NestJS @Query expects this; axios default adds brackets which break matching)
29
+ paramsSerializer: (l) => {
30
+ const b = new URLSearchParams();
31
+ for (const [f, _] of Object.entries(l))
32
+ if (Array.isArray(_))
33
+ for (const A of _) b.append(f, String(A));
34
+ else _ != null && b.append(f, String(_));
35
+ return console.log("[AuditLogAPI] serialized query string:", b.toString()), b.toString();
36
+ }
37
+ })
38
+ );
39
+ }
40
+ }, he = {
41
+ class: "flex flex-1 flex-col gap-16 min-h-0"
42
+ }, be = {
43
+ class: "flex items-center gap-8"
44
+ }, xe = {
45
+ class: "w-fit"
46
+ }, ye = {
47
+ class: "w-fit"
48
+ }, Le = {
49
+ class: "w-fit"
50
+ }, Se = {
51
+ class: "w-fit"
52
+ }, ke = {
53
+ class: "flex h-full flex-col"
54
+ }, we = {
55
+ key: 0,
56
+ class: "flex shrink-0 items-center justify-end border-t border-fm-color-border-default py-4"
57
+ }, Ie = {
58
+ class: "text-sm text-fm-color-typo-secondary"
59
+ }, je = {
60
+ key: 0,
61
+ class: "space-y-12 p-4 text-sm"
62
+ }, Pe = {
63
+ class: "rounded-lg border border-fm-color-border-default"
64
+ }, Te = {
65
+ class: "flex items-start justify-between gap-8 p-12"
66
+ }, Ce = {
67
+ class: "text-base font-bold leading-snug text-fm-color-typo-primary flex-1 min-w-0"
68
+ }, De = {
69
+ class: "audit-log-operation-label-detail font-semibold"
70
+ }, Ve = {
71
+ class: "space-y-12 p-12"
72
+ }, Oe = {
73
+ class: "text-xs text-fm-color-typo-secondary"
74
+ }, Ae = {
75
+ class: "font-semibold"
76
+ }, Fe = {
77
+ key: 0
78
+ }, Ne = {
79
+ class: "text-xs text-fm-color-typo-secondary"
80
+ }, Ue = {
81
+ class: "font-semibold"
82
+ }, Be = {
83
+ class: "text-xs text-fm-color-typo-secondary"
84
+ }, Re = {
85
+ class: "break-all font-mono text-xs font-semibold"
86
+ }, qe = {
87
+ class: "text-xs text-fm-color-typo-secondary"
88
+ }, Ee = {
89
+ class: "font-semibold"
90
+ }, Me = {
91
+ class: "text-xs text-fm-color-typo-secondary"
92
+ }, ze = {
93
+ class: "font-semibold"
94
+ }, Ke = {
95
+ key: 1
96
+ }, $e = {
97
+ class: "text-xs text-fm-color-typo-secondary"
98
+ }, Ye = {
99
+ class: "font-semibold"
100
+ }, Ge = {
101
+ class: "text-xs text-fm-color-typo-secondary"
102
+ }, Je = {
103
+ class: "break-all font-mono text-xs font-semibold"
104
+ }, Ze = {
105
+ class: "text-xs text-fm-color-typo-secondary"
106
+ }, He = {
107
+ class: "font-semibold"
108
+ }, Qe = {
109
+ class: "rounded-lg border border-fm-color-border-default"
110
+ }, We = {
111
+ class: "p-12"
112
+ }, Xe = {
113
+ class: "text-base font-bold text-fm-color-typo-primary"
114
+ }, et = {
115
+ class: "space-y-12 p-12"
116
+ }, tt = {
117
+ key: 0
118
+ }, ot = {
119
+ class: "text-xs text-fm-color-typo-secondary"
120
+ }, lt = {
121
+ class: "font-semibold"
122
+ }, at = {
123
+ class: "text-xs text-fm-color-typo-secondary"
124
+ }, st = {
125
+ class: "font-semibold"
126
+ }, it = {
127
+ key: 1
128
+ }, nt = {
129
+ class: "text-xs text-fm-color-typo-secondary"
130
+ }, dt = {
131
+ class: "font-semibold"
132
+ }, ct = {
133
+ class: "break-all font-mono text-xs text-fm-color-typo-secondary"
134
+ }, rt = {
135
+ class: "font-semibold"
136
+ }, ut = {
137
+ key: 0,
138
+ class: "break-all font-mono text-xs text-fm-color-typo-secondary"
139
+ }, mt = {
140
+ key: 2
141
+ }, ft = {
142
+ class: "text-xs text-fm-color-typo-secondary"
143
+ }, pt = {
144
+ class: "mt-4 space-y-4"
145
+ }, _t = {
146
+ class: "flex h-16 w-16 shrink-0 items-center justify-center rounded-full bg-fm-color-primary-default text-xs font-bold text-white"
147
+ }, vt = {
148
+ class: "text-xs font-semibold"
149
+ }, gt = {
150
+ key: 0,
151
+ class: "text-fm-color-typo-secondary"
152
+ }, ht = {
153
+ class: "text-xs text-fm-color-typo-secondary"
154
+ }, bt = {
155
+ class: "font-mono text-xs font-semibold"
156
+ }, xt = {
157
+ class: "text-xs text-fm-color-typo-secondary"
158
+ }, yt = {
159
+ class: "break-all font-mono text-xs font-semibold"
160
+ }, Lt = {
161
+ key: 3
162
+ }, St = {
163
+ class: "text-xs text-fm-color-typo-secondary"
164
+ }, kt = {
165
+ class: "mt-4 max-h-[400px] overflow-auto rounded bg-gray-100 p-8 font-mono text-xs leading-relaxed shadow-inner"
166
+ }, E = 100, Ft = /* @__PURE__ */ ae({
167
+ __name: "AuditLogList",
168
+ setup(n) {
169
+ const {
170
+ t
171
+ } = ne(), O = de(), g = _e(), x = p(!1), w = p([]), l = p(null), b = p(!1), f = p(1), _ = p(!1), A = ie().format("YYYY-MM-DD"), I = p({
172
+ startDate: A,
173
+ endDate: A
174
+ }), j = p(), P = p(), T = p(), C = p(), J = k(() => g.members.map((i) => ({
175
+ label: i.name,
176
+ value: i.doc.userId
177
+ }))), Z = k(() => G.map((i) => ({
178
+ label: i.label,
179
+ value: i.subject
180
+ }))), H = k(() => [{
181
+ label: t("auditLog.action.manage"),
182
+ value: "manage"
183
+ }, {
184
+ label: t("auditLog.action.create"),
185
+ value: "create"
186
+ }, {
187
+ label: t("auditLog.action.read"),
188
+ value: "read"
189
+ }, {
190
+ label: t("auditLog.action.update"),
191
+ value: "update"
192
+ }, {
193
+ label: t("auditLog.action.delete"),
194
+ value: "delete"
195
+ }]), Q = k(() => [{
196
+ label: t("auditLog.outcome.allowed"),
197
+ value: "allowed"
198
+ }, {
199
+ label: t("auditLog.outcome.denied"),
200
+ value: "denied"
201
+ }, {
202
+ label: t("auditLog.outcome.skipped"),
203
+ value: "skipped"
204
+ }]), W = k(() => {
205
+ const {
206
+ startDate: i,
207
+ endDate: o
208
+ } = I.value;
209
+ return i && o ? `${i} – ${o}` : i || o || t("auditLog.dateRange.placeholder");
210
+ }), B = k(() => w.value);
211
+ function M(i) {
212
+ var o;
213
+ return ((o = G.find((u) => u.subject === i)) == null ? void 0 : o.label) ?? re[i];
214
+ }
215
+ const z = {
216
+ allowed: "success",
217
+ denied: "critical",
218
+ skipped: "warning"
219
+ }, X = [{
220
+ accessorKey: "timestamp",
221
+ header: () => t("auditLog.columns.timestamp"),
222
+ cell(i) {
223
+ const o = i.row.original;
224
+ return new Date(o.timestamp).toLocaleString();
225
+ }
226
+ }, {
227
+ accessorKey: "userId",
228
+ header: () => t("auditLog.columns.user"),
229
+ enableSorting: !1,
230
+ cell(i) {
231
+ const o = i.row.original, u = g.userIdToName[o.userId];
232
+ return d("div", {
233
+ class: "flex items-center gap-8"
234
+ }, [d(Y.FmAvatar, {
235
+ initials: u || o.userId,
236
+ size: "sm"
237
+ }, null), d("span", null, [u || o.userId])]);
238
+ }
239
+ }, {
240
+ accessorKey: "subject",
241
+ header: () => t("auditLog.columns.subject"),
242
+ meta: {
243
+ cellClass: "text-left"
244
+ },
245
+ cell(i) {
246
+ const o = i.row.original, u = M(o.subject);
247
+ return u ? d("div", {
248
+ class: "text-left"
249
+ }, [d("span", null, [u]), d("p", {
250
+ class: "text-xs text-fm-color-typo-tertiary"
251
+ }, [o.subject])]) : d("div", {
252
+ class: "text-left"
253
+ }, [o.subject]);
254
+ }
255
+ }, {
256
+ accessorKey: "action",
257
+ header: () => t("auditLog.columns.action"),
258
+ enableSorting: !1
259
+ }, {
260
+ accessorKey: "operationLabel",
261
+ header: () => t("auditLog.columns.operation"),
262
+ enableSorting: !1,
263
+ size: 240,
264
+ meta: {
265
+ cellSpanClass: "audit-log-operation-label-table"
266
+ },
267
+ cell(i) {
268
+ return i.row.original.metadata.operationLabel ?? "-";
269
+ }
270
+ }, {
271
+ accessorKey: "outcome",
272
+ header: () => t("auditLog.columns.outcome"),
273
+ enableSorting: !1,
274
+ cell(i) {
275
+ const o = i.row.original;
276
+ return d(Y.FmChip, {
277
+ variant: z[o.outcome] ?? "neutral",
278
+ label: o.outcome,
279
+ compact: !0
280
+ }, null);
281
+ }
282
+ }];
283
+ function K(i, o = !1) {
284
+ const [u, y, L] = i.split("-").map(Number), h = new Date(u, y - 1, L);
285
+ return o && h.setDate(h.getDate() + 1), h.toISOString().slice(0, 19).replace("T", " ");
286
+ }
287
+ async function D() {
288
+ var i, o, u, y;
289
+ x.value = !0;
290
+ try {
291
+ const {
292
+ startDate: L,
293
+ endDate: h
294
+ } = I.value, R = (f.value - 1) * E, c = {
295
+ limit: E,
296
+ offset: R,
297
+ // Convert local date boundaries to UTC ISO strings so ClickHouse
298
+ // (which stores timestamps in UTC) receives the correct range.
299
+ ...L ? {
300
+ from: K(L)
301
+ } : {},
302
+ ...h ? {
303
+ to: K(h, !0)
304
+ } : {},
305
+ ...(i = j.value) != null && i.length ? {
306
+ userIds: j.value
307
+ } : {},
308
+ ...(o = P.value) != null && o.length ? {
309
+ subjects: P.value
310
+ } : {},
311
+ ...(u = C.value) != null && u.length ? {
312
+ actions: C.value
313
+ } : {},
314
+ ...(y = T.value) != null && y.length ? {
315
+ outcomes: T.value
316
+ } : {}
317
+ }, S = await ge.read(c);
318
+ w.value = S, _.value = S.length === E;
319
+ } finally {
320
+ x.value = !1;
321
+ }
322
+ }
323
+ q(I, () => {
324
+ f.value = 1, D();
325
+ }), q([j, P, T, C], () => {
326
+ f.value = 1, D();
327
+ });
328
+ async function ee() {
329
+ f.value > 1 && (f.value--, await D());
330
+ }
331
+ async function te() {
332
+ _.value && (f.value++, await D());
333
+ }
334
+ function oe(i) {
335
+ l.value = i, b.value = !0;
336
+ }
337
+ function le() {
338
+ b.value = !1, l.value = null;
339
+ }
340
+ return q(O.currentBusiness, (i) => {
341
+ i && (f.value = 1, g.readTeamMembers(), D());
342
+ }, {
343
+ immediate: !0
344
+ }), (i, o) => {
345
+ const u = V("FmChip"), y = V("FmDateRangePicker"), L = V("FmTable"), h = V("FmButton"), R = V("FmSideSheet");
346
+ return r(), m(F, null, [d(ue, {
347
+ heading: s(t)("auditLog.title")
348
+ }, {
349
+ default: N(() => [e("div", he, [e("div", be, [d(y, {
350
+ modelValue: I.value,
351
+ "onUpdate:modelValue": o[0] || (o[0] = (c) => I.value = c),
352
+ "show-predefined-range": ""
353
+ }, {
354
+ "trigger-button": N(() => [d(u, {
355
+ label: W.value,
356
+ icon: "calendar_month"
357
+ }, null, 8, ["label"])]),
358
+ _: 1
359
+ }, 8, ["modelValue"]), e("div", xe, [d(U, {
360
+ modelValue: j.value,
361
+ "onUpdate:modelValue": o[1] || (o[1] = (c) => j.value = c),
362
+ items: J.value,
363
+ multiple: "",
364
+ variant: "dark",
365
+ placeholder: s(t)("auditLog.filter.user_placeholder"),
366
+ "selected-prefix": s(t)("auditLog.filter.selected_user_prefix"),
367
+ "chip-icon": "account_circle"
368
+ }, null, 8, ["modelValue", "items", "placeholder", "selected-prefix"])]), e("div", ye, [d(U, {
369
+ modelValue: P.value,
370
+ "onUpdate:modelValue": o[2] || (o[2] = (c) => P.value = c),
371
+ items: Z.value,
372
+ multiple: "",
373
+ variant: "dark",
374
+ placeholder: s(t)("auditLog.filter.subject_placeholder"),
375
+ "selected-prefix": s(t)("auditLog.filter.selected_subject_prefix"),
376
+ "chip-icon": "badge"
377
+ }, null, 8, ["modelValue", "items", "placeholder", "selected-prefix"])]), e("div", Le, [d(U, {
378
+ modelValue: C.value,
379
+ "onUpdate:modelValue": o[3] || (o[3] = (c) => C.value = c),
380
+ items: H.value,
381
+ multiple: "",
382
+ variant: "dark",
383
+ placeholder: s(t)("auditLog.filter.action_placeholder"),
384
+ "selected-prefix": s(t)("auditLog.filter.selected_action_prefix"),
385
+ searchable: !1
386
+ }, null, 8, ["modelValue", "items", "placeholder", "selected-prefix"])]), e("div", Se, [d(U, {
387
+ modelValue: T.value,
388
+ "onUpdate:modelValue": o[4] || (o[4] = (c) => T.value = c),
389
+ items: Q.value,
390
+ multiple: "",
391
+ variant: "dark",
392
+ placeholder: s(t)("auditLog.filter.status_placeholder"),
393
+ "selected-prefix": s(t)("auditLog.filter.selected_status_prefix"),
394
+ searchable: !1,
395
+ "chip-icon": "check_circle"
396
+ }, null, 8, ["modelValue", "items", "placeholder", "selected-prefix"])])]), !x.value && B.value.length === 0 ? (r(), $(s(me), {
397
+ key: 0,
398
+ title: s(t)("auditLog.noData.title"),
399
+ subtitle: s(t)("auditLog.noData.subtitle")
400
+ }, null, 8, ["title", "subtitle"])) : (r(), $(ce, {
401
+ key: 1
402
+ }, {
403
+ default: N(() => [e("div", ke, [d(L, {
404
+ "column-defs": X,
405
+ "row-data": B.value,
406
+ "page-size": B.value.length,
407
+ loading: x.value,
408
+ "pin-header-row": "",
409
+ "hide-footer": "",
410
+ class: "min-h-0 flex-1 cursor-pointer",
411
+ onRowClick: o[5] || (o[5] = (c) => oe(c.original))
412
+ }, null, 8, ["row-data", "page-size", "loading"]), f.value > 1 || _.value ? (r(), m("div", we, [d(h, {
413
+ variant: "tertiary",
414
+ icon: "chevron_left",
415
+ disabled: f.value === 1,
416
+ "aria-label": s(t)("auditLog.pagination.prevPage"),
417
+ onClick: ee
418
+ }, null, 8, ["disabled", "aria-label"]), e("span", Ie, a(s(t)("auditLog.pagination.page", {
419
+ page: f.value
420
+ })), 1), d(h, {
421
+ variant: "tertiary",
422
+ icon: "chevron_right",
423
+ disabled: !_.value,
424
+ "aria-label": s(t)("auditLog.pagination.nextPage"),
425
+ onClick: te
426
+ }, null, 8, ["disabled", "aria-label"])])) : v("", !0)])]),
427
+ _: 1
428
+ }))])]),
429
+ _: 1
430
+ }, 8, ["heading"]), d(R, {
431
+ header: s(t)("auditLog.detail.header"),
432
+ "model-value": b.value,
433
+ "max-width": 480,
434
+ "dismiss-away": "",
435
+ "onUpdate:modelValue": o[6] || (o[6] = (c) => {
436
+ c || le();
437
+ })
438
+ }, {
439
+ default: N(() => [l.value ? (r(), m("div", je, [e("div", Pe, [e("div", Te, [e("div", Ce, [e("p", De, a(l.value.metadata.operationLabel || "-"), 1)]), d(u, {
440
+ variant: z[l.value.outcome] ?? "neutral",
441
+ label: l.value.outcome,
442
+ compact: ""
443
+ }, null, 8, ["variant", "label"])]), o[7] || (o[7] = e("hr", {
444
+ class: "border-fm-color-border-default"
445
+ }, null, -1)), e("div", Ve, [e("div", null, [e("p", Oe, a(s(t)("auditLog.detail.timestamp")), 1), e("p", Ae, a(new Date(l.value.timestamp).toLocaleString()), 1)]), s(g).userIdToName[l.value.userId] ? (r(), m("div", Fe, [e("p", Ne, a(s(t)("auditLog.detail.user")), 1), e("p", Ue, a(s(g).userIdToName[l.value.userId]), 1)])) : v("", !0), e("div", null, [e("p", Be, a(s(t)("auditLog.detail.email")), 1), e("p", Re, a(s(g).userIdToEmail[l.value.userId] || l.value.userId), 1)]), e("div", null, [e("p", qe, a(s(t)("auditLog.detail.action")), 1), e("p", Ee, a(l.value.action), 1)]), e("div", null, [e("p", Me, a(s(t)("auditLog.detail.subject")), 1), e("p", ze, a(M(l.value.subject) || l.value.subject), 1)]), l.value.field ? (r(), m("div", Ke, [e("p", $e, a(s(t)("auditLog.detail.field")), 1), e("p", Ye, a(l.value.field), 1)])) : v("", !0), e("div", null, [e("p", Ge, a(s(t)("auditLog.detail.business")), 1), e("p", Je, a(l.value.businessId || "-"), 1)]), e("div", null, [e("p", Ze, a(s(t)("auditLog.detail.restaurant")), 1), e("p", He, a(l.value.restaurantId || "-"), 1)])])]), e("div", Qe, [e("div", We, [e("p", Xe, a(s(t)("auditLog.detail.metadata")), 1)]), o[8] || (o[8] = e("hr", {
446
+ class: "border-fm-color-border-default"
447
+ }, null, -1)), e("div", et, [l.value.metadata.reason ? (r(), m("div", tt, [e("p", ot, a(s(t)("auditLog.detail.reason")), 1), e("p", lt, a(l.value.metadata.reason), 1)])) : v("", !0), e("div", null, [e("p", at, a(s(t)("auditLog.detail.resolvedFrom")), 1), e("p", st, a(l.value.metadata.resolvedFrom), 1)]), l.value.metadata.permissionSetId ? (r(), m("div", it, [e("p", nt, a(s(t)("auditLog.detail.permissionSet")), 1), l.value.metadata.resolvedFrom === "systemPermissionSet" ? (r(), m(F, {
448
+ key: 0
449
+ }, [e("p", dt, a(l.value.metadata.permissionSetName) + " (system)", 1), e("p", ct, a(l.value.metadata.permissionSetId), 1)], 64)) : (r(), m(F, {
450
+ key: 1
451
+ }, [e("p", rt, a(l.value.metadata.permissionSetName || l.value.metadata.permissionSetId), 1), l.value.metadata.permissionSetName ? (r(), m("p", ut, a(l.value.metadata.permissionSetId), 1)) : v("", !0)], 64))])) : v("", !0), l.value.metadata.trace && l.value.metadata.trace.length > 0 ? (r(), m("div", mt, [e("p", ft, a(s(t)("auditLog.detail.permissionTrace")), 1), e("ol", pt, [(r(!0), m(F, null, se(l.value.metadata.trace, (c, S) => (r(), m("li", {
452
+ key: S,
453
+ class: "flex items-center gap-6"
454
+ }, [e("span", _t, a(S + 1), 1), e("span", vt, a(c), 1), S < l.value.metadata.trace.length - 1 ? (r(), m("span", gt, "→")) : v("", !0)]))), 128))])])) : v("", !0), e("div", null, [e("p", ht, a(s(t)("auditLog.detail.requestMethod")), 1), e("p", bt, a(l.value.metadata.requestMethod), 1)]), e("div", null, [e("p", xt, a(s(t)("auditLog.detail.requestPath")), 1), e("p", yt, a(l.value.metadata.requestPath), 1)]), l.value.metadata.requestBody && Object.keys(l.value.metadata.requestBody).length > 0 ? (r(), m("div", Lt, [e("p", St, a(s(t)("auditLog.detail.requestBody")), 1), e("pre", kt, a(JSON.stringify(l.value.metadata.requestBody, null, 2)), 1)])) : v("", !0)])])])) : v("", !0)]),
455
+ _: 1
456
+ }, 8, ["header", "model-value"])], 64);
457
+ };
458
+ }
459
+ });
460
+ export {
461
+ Ft as default
462
+ };