@feedmepos/mf-hrm-portal 1.1.3-dev.7 → 1.1.3-dev.8

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 (25) hide show
  1. package/dist/{AuditLogList-n6xAYZGv.js → AuditLogList-CVOicxwC.js} +90 -76
  2. package/dist/{EmployeeList-D9rLxXo5.js → EmployeeList-CSBiU32b.js} +5 -5
  3. package/dist/{Main-zQF3GD9j.js → Main-BTCSW3JL.js} +8 -8
  4. package/dist/{Main-BCa8A1rV.js → Main-D9xZDqBk.js} +5 -5
  5. package/dist/PermissionSetList-r1ZvAW01.js +323 -0
  6. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BA1LS-wd.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DXsl8Y5d.js} +169 -169
  7. package/dist/{RoleList-Cfv9wKaN.js → RoleList-Ca2gg1OL.js} +6 -6
  8. package/dist/{TeamMemberList-HkvCqzPj.js → TeamMemberList-D__tUUst.js} +196 -196
  9. package/dist/{TimesheetList-B0e-Muws.js → TimesheetList-DGRLp8ZY.js} +6 -6
  10. package/dist/{app-DKSPx49S.js → app-c-GiPrdn.js} +12 -4
  11. package/dist/app.js +1 -1
  12. package/dist/{dayjs.min-DZJQ_JpV.js → dayjs.min-CJ2WQsea.js} +1 -1
  13. package/dist/{employee-DKRqMph9.js → employee-8oXtifwK.js} +3 -3
  14. package/dist/{index-BwyUbhZj.js → index-AdCh0qd6.js} +1 -1
  15. package/dist/{index-D09s817L.js → index-DSwL5tAm.js} +3 -3
  16. package/dist/{lodash-CL6AaeJB.js → lodash-C7JpKSnW.js} +1 -1
  17. package/dist/{team-DEjtUFVl.js → team-Fs4KPQg5.js} +1 -1
  18. package/dist/{timesheet-B0usAfjL.js → timesheet-D05cQ6a7.js} +2 -2
  19. package/dist/tsconfig.app.tsbuildinfo +1 -1
  20. package/dist/{useAppStore-DfaKfSuR.js → useAppStore-D1eLjzj4.js} +1 -1
  21. package/dist/{useLoading-D2AX24ph.js → useLoading-DB77wFeJ.js} +1 -1
  22. package/dist/{useReportPermissions-CwsHq61C.js → useReportPermissions-p2VZ4ugv.js} +2 -2
  23. package/dist/views/audit-log/locales/index.d.ts +8 -0
  24. package/package.json +2 -2
  25. package/dist/PermissionSetList-EsoA_anf.js +0 -338
@@ -1,17 +1,17 @@
1
- import { defineComponent as le, ref as f, computed as k, watch as B, resolveComponent as w, createElementBlock as u, openBlock as d, Fragment as D, createVNode as n, unref as i, withCtx as V, createElementVNode as e, createBlock as K, createCommentVNode as v, toDisplayString as s, renderList as se } from "vue";
2
- import { d as ie } from "./dayjs.min-DZJQ_JpV.js";
1
+ import { defineComponent as le, ref as f, computed as k, watch as B, resolveComponent as w, createElementBlock as r, openBlock as d, Fragment as D, createVNode as n, unref as i, withCtx as V, createElementVNode as e, createBlock as K, createCommentVNode as p, toDisplayString as s, renderList as se } from "vue";
2
+ import { d as ie } from "./dayjs.min-CJ2WQsea.js";
3
3
  import { useI18n as ne, useCoreStore as de } from "@feedmepos/mf-common";
4
- import { _ as ce, G as re } from "./app-DKSPx49S.js";
4
+ import { _ as re, G as ce } from "./app-c-GiPrdn.js";
5
5
  import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
6
6
  import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
7
  import { components as $ } from "@feedmepos/ui-library";
8
- import { g as fe, b as pe, p as Y } from "./index-D09s817L.js";
9
- import { u as ve } from "./team-DEjtUFVl.js";
8
+ import { g as fe, b as pe, p as z } from "./index-DSwL5tAm.js";
9
+ import { u as _e } from "./team-Fs4KPQg5.js";
10
10
  import { S as C } from "./SelectFilter-NbXrJ4iH.js";
11
- const _e = "/audit-logs", ge = {
11
+ const ve = "/audit-logs", ge = {
12
12
  async read(c) {
13
13
  return fe(
14
- await pe().get(_e, {
14
+ await pe().get(ve, {
15
15
  params: {
16
16
  limit: (c == null ? void 0 : c.limit) ?? 100,
17
17
  offset: (c == null ? void 0 : c.offset) ?? 0,
@@ -70,93 +70,99 @@ const _e = "/audit-logs", ge = {
70
70
  }, Re = {
71
71
  class: "font-semibold"
72
72
  }, qe = {
73
- class: "text-xs text-fm-color-typo-secondary"
73
+ key: 1
74
74
  }, Me = {
75
- class: "font-semibold"
75
+ class: "text-xs text-fm-color-typo-secondary"
76
76
  }, Ke = {
77
- key: 1
77
+ class: "font-semibold"
78
78
  }, $e = {
79
79
  class: "text-xs text-fm-color-typo-secondary"
80
- }, Ye = {
81
- class: "font-semibold"
82
80
  }, ze = {
83
- class: "text-xs text-fm-color-typo-secondary"
81
+ class: "font-semibold"
82
+ }, Ye = {
83
+ key: 2
84
84
  }, Ge = {
85
- class: "break-all font-mono text-xs font-semibold"
86
- }, Je = {
87
85
  class: "text-xs text-fm-color-typo-secondary"
88
- }, Ze = {
86
+ }, Je = {
89
87
  class: "font-semibold"
88
+ }, Ze = {
89
+ class: "text-xs text-fm-color-typo-secondary"
90
90
  }, He = {
91
- class: "rounded-lg border border-fm-color-border-default"
91
+ class: "break-all font-mono text-xs font-semibold"
92
92
  }, Qe = {
93
- class: "p-12"
93
+ class: "text-xs text-fm-color-typo-secondary"
94
94
  }, We = {
95
- class: "text-base font-bold text-fm-color-typo-primary"
95
+ class: "font-semibold"
96
96
  }, Xe = {
97
- class: "space-y-12 p-12"
97
+ class: "rounded-lg border border-fm-color-border-default"
98
98
  }, et = {
99
- key: 0
99
+ class: "p-12"
100
100
  }, tt = {
101
- class: "text-xs text-fm-color-typo-secondary"
101
+ class: "text-base font-bold text-fm-color-typo-primary"
102
102
  }, ot = {
103
- class: "font-semibold"
103
+ class: "space-y-12 p-12"
104
104
  }, at = {
105
- class: "text-xs text-fm-color-typo-secondary"
105
+ key: 0
106
106
  }, lt = {
107
- class: "font-semibold"
107
+ class: "text-xs text-fm-color-typo-secondary"
108
108
  }, st = {
109
- key: 1
109
+ class: "font-semibold"
110
110
  }, it = {
111
111
  class: "text-xs text-fm-color-typo-secondary"
112
112
  }, nt = {
113
113
  class: "font-semibold"
114
114
  }, dt = {
115
- class: "break-all font-mono text-xs text-fm-color-typo-secondary"
115
+ key: 1
116
+ }, rt = {
117
+ class: "text-xs text-fm-color-typo-secondary"
116
118
  }, ct = {
117
119
  class: "font-semibold"
118
- }, rt = {
120
+ }, ut = {
121
+ class: "break-all font-mono text-xs text-fm-color-typo-secondary"
122
+ }, mt = {
123
+ class: "font-semibold"
124
+ }, ft = {
119
125
  key: 0,
120
126
  class: "break-all font-mono text-xs text-fm-color-typo-secondary"
121
- }, ut = {
127
+ }, pt = {
122
128
  key: 2
123
- }, mt = {
129
+ }, _t = {
124
130
  class: "text-xs text-fm-color-typo-secondary"
125
- }, ft = {
131
+ }, vt = {
126
132
  class: "mt-4 space-y-4"
127
- }, pt = {
133
+ }, gt = {
128
134
  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"
129
- }, vt = {
135
+ }, ht = {
130
136
  class: "text-xs font-semibold"
131
- }, _t = {
137
+ }, xt = {
132
138
  key: 0,
133
139
  class: "text-fm-color-typo-secondary"
134
- }, gt = {
140
+ }, bt = {
135
141
  class: "text-xs text-fm-color-typo-secondary"
136
- }, ht = {
142
+ }, yt = {
137
143
  class: "font-mono text-xs font-semibold"
138
- }, xt = {
144
+ }, Lt = {
139
145
  class: "text-xs text-fm-color-typo-secondary"
140
- }, bt = {
146
+ }, kt = {
141
147
  class: "break-all font-mono text-xs font-semibold"
142
- }, yt = {
148
+ }, St = {
143
149
  key: 3
144
- }, Lt = {
150
+ }, wt = {
145
151
  class: "text-xs text-fm-color-typo-secondary"
146
- }, kt = {
152
+ }, It = {
147
153
  class: "mt-4 max-h-[400px] overflow-auto rounded bg-gray-100 p-8 font-mono text-xs leading-relaxed shadow-inner"
148
- }, A = 100, Ft = /* @__PURE__ */ le({
154
+ }, A = 100, Bt = /* @__PURE__ */ le({
149
155
  __name: "AuditLogList",
150
156
  setup(c) {
151
157
  const {
152
158
  t: o
153
- } = ne(), z = de(), _ = ve(), I = f(!1), E = f([]), l = f(null), O = f(!1), p = f(1), j = f(!1), R = ie().format("YYYY-MM-DD"), S = f({
159
+ } = ne(), Y = de(), v = _e(), I = f(!1), E = f([]), l = f(null), O = f(!1), _ = f(1), j = f(!1), R = ie().format("YYYY-MM-DD"), S = f({
154
160
  startDate: R,
155
161
  endDate: R
156
- }), g = f(), h = f(), x = f(), b = f(), G = k(() => _.members.map((a) => ({
162
+ }), g = f(), h = f(), x = f(), b = f(), G = k(() => v.members.map((a) => ({
157
163
  label: a.name,
158
164
  value: a.doc.userId
159
- }))), J = k(() => Y.map((a) => ({
165
+ }))), J = k(() => z.map((a) => ({
160
166
  label: a.label,
161
167
  value: a.subject
162
168
  }))), Z = k(() => [{
@@ -195,7 +201,7 @@ const _e = "/audit-logs", ge = {
195
201
  });
196
202
  function F(a) {
197
203
  var t;
198
- return ((t = Y.find((m) => m.subject === a)) == null ? void 0 : t.label) ?? re[a];
204
+ return ((t = z.find((m) => m.subject === a)) == null ? void 0 : t.label) ?? ce[a];
199
205
  }
200
206
  const q = {
201
207
  allowed: "success",
@@ -213,7 +219,7 @@ const _e = "/audit-logs", ge = {
213
219
  header: () => o("auditLog.columns.user"),
214
220
  enableSorting: !1,
215
221
  cell(a) {
216
- const t = a.row.original, m = _.userIdToName[t.userId];
222
+ const t = a.row.original, m = v.userIdToName[t.userId];
217
223
  return n("div", {
218
224
  class: "flex items-center gap-8"
219
225
  }, [n($.FmAvatar, {
@@ -241,6 +247,14 @@ const _e = "/audit-logs", ge = {
241
247
  accessorKey: "action",
242
248
  header: () => o("auditLog.columns.action"),
243
249
  enableSorting: !1
250
+ }, {
251
+ accessorKey: "operationLabel",
252
+ header: () => o("auditLog.columns.operation"),
253
+ enableSorting: !1,
254
+ size: 240,
255
+ cell(a) {
256
+ return a.row.original.metadata.operationLabel ?? "-";
257
+ }
244
258
  }, {
245
259
  accessorKey: "outcome",
246
260
  header: () => o("auditLog.columns.outcome"),
@@ -264,7 +278,7 @@ const _e = "/audit-logs", ge = {
264
278
  const {
265
279
  startDate: a,
266
280
  endDate: t
267
- } = S.value, m = (p.value - 1) * A, [y] = await Promise.all([ge.read({
281
+ } = S.value, m = (_.value - 1) * A, [y] = await Promise.all([ge.read({
268
282
  limit: A,
269
283
  offset: m,
270
284
  // Convert local date boundaries to UTC ISO strings so ClickHouse
@@ -275,22 +289,22 @@ const _e = "/audit-logs", ge = {
275
289
  ...t ? {
276
290
  to: M(t, !0)
277
291
  } : {}
278
- }), _.readTeamMembers()]);
292
+ }), v.readTeamMembers()]);
279
293
  E.value = y, j.value = y.length === A;
280
294
  } finally {
281
295
  I.value = !1;
282
296
  }
283
297
  }
284
298
  B(S, () => {
285
- p.value = 1, T();
299
+ _.value = 1, T();
286
300
  }), B([g, h, x, b], () => {
287
- p.value = 1;
301
+ _.value = 1;
288
302
  });
289
303
  async function X() {
290
- p.value > 1 && (p.value--, await T());
304
+ _.value > 1 && (_.value--, await T());
291
305
  }
292
306
  async function ee() {
293
- j.value && (p.value++, await T());
307
+ j.value && (_.value++, await T());
294
308
  }
295
309
  function te(a) {
296
310
  l.value = a, O.value = !0;
@@ -298,18 +312,18 @@ const _e = "/audit-logs", ge = {
298
312
  function oe() {
299
313
  O.value = !1, l.value = null;
300
314
  }
301
- return B(z.currentBusiness, (a) => {
302
- a && (p.value = 1, T());
315
+ return B(Y.currentBusiness, (a) => {
316
+ a && (_.value = 1, T());
303
317
  }, {
304
318
  immediate: !0
305
319
  }), (a, t) => {
306
320
  const m = w("FmChip"), y = w("FmDateRangePicker"), N = w("FmTable"), L = w("FmButton"), ae = w("FmSideSheet");
307
- return d(), u(D, null, [n(ue, {
321
+ return d(), r(D, null, [n(ue, {
308
322
  heading: i(o)("auditLog.title")
309
323
  }, {
310
324
  default: V(() => [e("div", he, [e("div", xe, [n(y, {
311
325
  modelValue: S.value,
312
- "onUpdate:modelValue": t[0] || (t[0] = (r) => S.value = r),
326
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => S.value = u),
313
327
  "show-predefined-range": ""
314
328
  }, {
315
329
  "trigger-button": V(() => [n(m, {
@@ -319,7 +333,7 @@ const _e = "/audit-logs", ge = {
319
333
  _: 1
320
334
  }, 8, ["modelValue"]), e("div", be, [n(C, {
321
335
  modelValue: g.value,
322
- "onUpdate:modelValue": t[1] || (t[1] = (r) => g.value = r),
336
+ "onUpdate:modelValue": t[1] || (t[1] = (u) => g.value = u),
323
337
  items: G.value,
324
338
  multiple: "",
325
339
  variant: "dark",
@@ -328,7 +342,7 @@ const _e = "/audit-logs", ge = {
328
342
  "chip-icon": "account_circle"
329
343
  }, null, 8, ["modelValue", "items", "placeholder", "selected-prefix"])]), e("div", ye, [n(C, {
330
344
  modelValue: h.value,
331
- "onUpdate:modelValue": t[2] || (t[2] = (r) => h.value = r),
345
+ "onUpdate:modelValue": t[2] || (t[2] = (u) => h.value = u),
332
346
  items: J.value,
333
347
  multiple: "",
334
348
  variant: "dark",
@@ -337,7 +351,7 @@ const _e = "/audit-logs", ge = {
337
351
  "chip-icon": "badge"
338
352
  }, null, 8, ["modelValue", "items", "placeholder", "selected-prefix"])]), e("div", Le, [n(C, {
339
353
  modelValue: b.value,
340
- "onUpdate:modelValue": t[3] || (t[3] = (r) => b.value = r),
354
+ "onUpdate:modelValue": t[3] || (t[3] = (u) => b.value = u),
341
355
  items: Z.value,
342
356
  multiple: "",
343
357
  variant: "dark",
@@ -346,7 +360,7 @@ const _e = "/audit-logs", ge = {
346
360
  searchable: !1
347
361
  }, null, 8, ["modelValue", "items", "placeholder", "selected-prefix"])]), e("div", ke, [n(C, {
348
362
  modelValue: x.value,
349
- "onUpdate:modelValue": t[4] || (t[4] = (r) => x.value = r),
363
+ "onUpdate:modelValue": t[4] || (t[4] = (u) => x.value = u),
350
364
  items: H.value,
351
365
  multiple: "",
352
366
  variant: "dark",
@@ -358,7 +372,7 @@ const _e = "/audit-logs", ge = {
358
372
  key: 0,
359
373
  title: i(o)("auditLog.noData.title"),
360
374
  subtitle: i(o)("auditLog.noData.subtitle")
361
- }, null, 8, ["title", "subtitle"])) : (d(), K(ce, {
375
+ }, null, 8, ["title", "subtitle"])) : (d(), K(re, {
362
376
  key: 1
363
377
  }, {
364
378
  default: V(() => [e("div", Se, [n(N, {
@@ -369,22 +383,22 @@ const _e = "/audit-logs", ge = {
369
383
  "pin-header-row": "",
370
384
  "hide-footer": "",
371
385
  class: "min-h-0 flex-1 cursor-pointer",
372
- onRowClick: t[5] || (t[5] = (r) => te(r.original))
373
- }, null, 8, ["row-data", "page-size", "loading"]), p.value > 1 || j.value ? (d(), u("div", we, [n(L, {
386
+ onRowClick: t[5] || (t[5] = (u) => te(u.original))
387
+ }, null, 8, ["row-data", "page-size", "loading"]), _.value > 1 || j.value ? (d(), r("div", we, [n(L, {
374
388
  variant: "tertiary",
375
389
  icon: "chevron_left",
376
- disabled: p.value === 1,
390
+ disabled: _.value === 1,
377
391
  "aria-label": i(o)("auditLog.pagination.prevPage"),
378
392
  onClick: X
379
393
  }, null, 8, ["disabled", "aria-label"]), e("span", Ie, s(i(o)("auditLog.pagination.page", {
380
- page: p.value
394
+ page: _.value
381
395
  })), 1), n(L, {
382
396
  variant: "tertiary",
383
397
  icon: "chevron_right",
384
398
  disabled: !j.value,
385
399
  "aria-label": i(o)("auditLog.pagination.nextPage"),
386
400
  onClick: ee
387
- }, null, 8, ["disabled", "aria-label"])])) : v("", !0)])]),
401
+ }, null, 8, ["disabled", "aria-label"])])) : p("", !0)])]),
388
402
  _: 1
389
403
  }))])]),
390
404
  _: 1
@@ -393,31 +407,31 @@ const _e = "/audit-logs", ge = {
393
407
  "model-value": O.value,
394
408
  "max-width": 480,
395
409
  "dismiss-away": "",
396
- "onUpdate:modelValue": t[6] || (t[6] = (r) => {
397
- r || oe();
410
+ "onUpdate:modelValue": t[6] || (t[6] = (u) => {
411
+ u || oe();
398
412
  })
399
413
  }, {
400
- default: V(() => [l.value ? (d(), u("div", je, [e("div", Te, [e("div", De, [e("span", Ve, s(F(l.value.subject) || l.value.subject), 1), n(m, {
414
+ default: V(() => [l.value ? (d(), r("div", je, [e("div", Te, [e("div", De, [e("span", Ve, s(F(l.value.subject) || l.value.subject), 1), n(m, {
401
415
  variant: q[l.value.outcome] ?? "neutral",
402
416
  label: l.value.outcome,
403
417
  compact: ""
404
418
  }, null, 8, ["variant", "label"])]), t[7] || (t[7] = e("hr", {
405
419
  class: "border-fm-color-border-default"
406
- }, null, -1)), e("div", Ce, [e("div", null, [e("p", Oe, s(i(o)("auditLog.detail.timestamp")), 1), e("p", Pe, s(new Date(l.value.timestamp).toLocaleString()), 1)]), i(_).userIdToName[l.value.userId] ? (d(), u("div", Fe, [e("p", Ne, s(i(o)("auditLog.detail.user")), 1), e("p", Ue, s(i(_).userIdToName[l.value.userId]), 1)])) : v("", !0), e("div", null, [e("p", Be, s(i(o)("auditLog.detail.email")), 1), e("p", Ae, s(i(_).userIdToEmail[l.value.userId] || l.value.userId), 1)]), e("div", null, [e("p", Ee, s(i(o)("auditLog.detail.action")), 1), e("p", Re, s(l.value.action), 1)]), e("div", null, [e("p", qe, s(i(o)("auditLog.detail.subject")), 1), e("p", Me, s(F(l.value.subject) || l.value.subject), 1)]), l.value.field ? (d(), u("div", Ke, [e("p", $e, s(i(o)("auditLog.detail.field")), 1), e("p", Ye, s(l.value.field), 1)])) : v("", !0), e("div", null, [e("p", ze, s(i(o)("auditLog.detail.business")), 1), e("p", Ge, s(l.value.businessId || "-"), 1)]), e("div", null, [e("p", Je, s(i(o)("auditLog.detail.restaurant")), 1), e("p", Ze, s(l.value.restaurantId || "-"), 1)])])]), e("div", He, [e("div", Qe, [e("p", We, s(i(o)("auditLog.detail.metadata")), 1)]), t[8] || (t[8] = e("hr", {
420
+ }, null, -1)), e("div", Ce, [e("div", null, [e("p", Oe, s(i(o)("auditLog.detail.timestamp")), 1), e("p", Pe, s(new Date(l.value.timestamp).toLocaleString()), 1)]), i(v).userIdToName[l.value.userId] ? (d(), r("div", Fe, [e("p", Ne, s(i(o)("auditLog.detail.user")), 1), e("p", Ue, s(i(v).userIdToName[l.value.userId]), 1)])) : p("", !0), e("div", null, [e("p", Be, s(i(o)("auditLog.detail.email")), 1), e("p", Ae, s(i(v).userIdToEmail[l.value.userId] || l.value.userId), 1)]), e("div", null, [e("p", Ee, s(i(o)("auditLog.detail.action")), 1), e("p", Re, s(l.value.action), 1)]), l.value.metadata.operationLabel ? (d(), r("div", qe, [e("p", Me, s(i(o)("auditLog.detail.operation")), 1), e("p", Ke, s(l.value.metadata.operationLabel), 1)])) : p("", !0), e("div", null, [e("p", $e, s(i(o)("auditLog.detail.subject")), 1), e("p", ze, s(F(l.value.subject) || l.value.subject), 1)]), l.value.field ? (d(), r("div", Ye, [e("p", Ge, s(i(o)("auditLog.detail.field")), 1), e("p", Je, s(l.value.field), 1)])) : p("", !0), e("div", null, [e("p", Ze, s(i(o)("auditLog.detail.business")), 1), e("p", He, s(l.value.businessId || "-"), 1)]), e("div", null, [e("p", Qe, s(i(o)("auditLog.detail.restaurant")), 1), e("p", We, s(l.value.restaurantId || "-"), 1)])])]), e("div", Xe, [e("div", et, [e("p", tt, s(i(o)("auditLog.detail.metadata")), 1)]), t[8] || (t[8] = e("hr", {
407
421
  class: "border-fm-color-border-default"
408
- }, null, -1)), e("div", Xe, [l.value.metadata.reason ? (d(), u("div", et, [e("p", tt, s(i(o)("auditLog.detail.reason")), 1), e("p", ot, s(l.value.metadata.reason), 1)])) : v("", !0), e("div", null, [e("p", at, s(i(o)("auditLog.detail.resolvedFrom")), 1), e("p", lt, s(l.value.metadata.resolvedFrom), 1)]), l.value.metadata.permissionSetId ? (d(), u("div", st, [e("p", it, s(i(o)("auditLog.detail.permissionSet")), 1), l.value.metadata.resolvedFrom === "systemPermissionSet" ? (d(), u(D, {
422
+ }, null, -1)), e("div", ot, [l.value.metadata.reason ? (d(), r("div", at, [e("p", lt, s(i(o)("auditLog.detail.reason")), 1), e("p", st, s(l.value.metadata.reason), 1)])) : p("", !0), e("div", null, [e("p", it, s(i(o)("auditLog.detail.resolvedFrom")), 1), e("p", nt, s(l.value.metadata.resolvedFrom), 1)]), l.value.metadata.permissionSetId ? (d(), r("div", dt, [e("p", rt, s(i(o)("auditLog.detail.permissionSet")), 1), l.value.metadata.resolvedFrom === "systemPermissionSet" ? (d(), r(D, {
409
423
  key: 0
410
- }, [e("p", nt, s(l.value.metadata.permissionSetName) + " (system)", 1), e("p", dt, s(l.value.metadata.permissionSetId), 1)], 64)) : (d(), u(D, {
424
+ }, [e("p", ct, s(l.value.metadata.permissionSetName) + " (system)", 1), e("p", ut, s(l.value.metadata.permissionSetId), 1)], 64)) : (d(), r(D, {
411
425
  key: 1
412
- }, [e("p", ct, s(l.value.metadata.permissionSetName || l.value.metadata.permissionSetId), 1), l.value.metadata.permissionSetName ? (d(), u("p", rt, s(l.value.metadata.permissionSetId), 1)) : v("", !0)], 64))])) : v("", !0), l.value.metadata.trace && l.value.metadata.trace.length > 0 ? (d(), u("div", ut, [e("p", mt, s(i(o)("auditLog.detail.permissionTrace")), 1), e("ol", ft, [(d(!0), u(D, null, se(l.value.metadata.trace, (r, U) => (d(), u("li", {
426
+ }, [e("p", mt, s(l.value.metadata.permissionSetName || l.value.metadata.permissionSetId), 1), l.value.metadata.permissionSetName ? (d(), r("p", ft, s(l.value.metadata.permissionSetId), 1)) : p("", !0)], 64))])) : p("", !0), l.value.metadata.trace && l.value.metadata.trace.length > 0 ? (d(), r("div", pt, [e("p", _t, s(i(o)("auditLog.detail.permissionTrace")), 1), e("ol", vt, [(d(!0), r(D, null, se(l.value.metadata.trace, (u, U) => (d(), r("li", {
413
427
  key: U,
414
428
  class: "flex items-center gap-6"
415
- }, [e("span", pt, s(U + 1), 1), e("span", vt, s(r), 1), U < l.value.metadata.trace.length - 1 ? (d(), u("span", _t, "→")) : v("", !0)]))), 128))])])) : v("", !0), e("div", null, [e("p", gt, s(i(o)("auditLog.detail.requestMethod")), 1), e("p", ht, s(l.value.metadata.requestMethod), 1)]), e("div", null, [e("p", xt, s(i(o)("auditLog.detail.requestPath")), 1), e("p", bt, s(l.value.metadata.requestPath), 1)]), l.value.metadata.requestBody && Object.keys(l.value.metadata.requestBody).length > 0 ? (d(), u("div", yt, [e("p", Lt, s(i(o)("auditLog.detail.requestBody")), 1), e("pre", kt, s(JSON.stringify(l.value.metadata.requestBody, null, 2)), 1)])) : v("", !0)])])])) : v("", !0)]),
429
+ }, [e("span", gt, s(U + 1), 1), e("span", ht, s(u), 1), U < l.value.metadata.trace.length - 1 ? (d(), r("span", xt, "→")) : p("", !0)]))), 128))])])) : p("", !0), e("div", null, [e("p", bt, s(i(o)("auditLog.detail.requestMethod")), 1), e("p", yt, s(l.value.metadata.requestMethod), 1)]), e("div", null, [e("p", Lt, s(i(o)("auditLog.detail.requestPath")), 1), e("p", kt, s(l.value.metadata.requestPath), 1)]), l.value.metadata.requestBody && Object.keys(l.value.metadata.requestBody).length > 0 ? (d(), r("div", St, [e("p", wt, s(i(o)("auditLog.detail.requestBody")), 1), e("pre", It, s(JSON.stringify(l.value.metadata.requestBody, null, 2)), 1)])) : p("", !0)])])])) : p("", !0)]),
416
430
  _: 1
417
431
  }, 8, ["header", "model-value"])], 64);
418
432
  };
419
433
  }
420
434
  });
421
435
  export {
422
- Ft as default
436
+ Bt as default
423
437
  };
@@ -2,14 +2,14 @@ import { createElementBlock as $, openBlock as _, createElementVNode as d, toRaw
2
2
  import { useCoreStore as Fe, useI18n as xe, RestaurantSelector as ce } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as we, components as ke, useDialog as Ne, useBreakpoints as Be, FmButtonVariant as De } from "@feedmepos/ui-library";
4
4
  import { _ as Pe, S as pe } from "./SelectFilter-NbXrJ4iH.js";
5
- import { _ as Te } from "./app-DKSPx49S.js";
5
+ import { _ as Te } from "./app-c-GiPrdn.js";
6
6
  import { _ as ze } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
7
  import { u as Ue } from "./useSearch-B6WK1LBB.js";
8
- import { u as Se, E as Ae } from "./employee-DKRqMph9.js";
9
- import { l as je } from "./lodash-CL6AaeJB.js";
8
+ import { u as Se, E as Ae } from "./employee-8oXtifwK.js";
9
+ import { l as je } from "./lodash-C7JpKSnW.js";
10
10
  import { u as Ke, _ as ve, a as fe, b as Ge } from "./useRestaurantMap-D5BNPLKh.js";
11
- import { u as qe } from "./useLoading-D2AX24ph.js";
12
- import { u as ue } from "./useAppStore-DfaKfSuR.js";
11
+ import { u as qe } from "./useLoading-DB77wFeJ.js";
12
+ import { u as ue } from "./useAppStore-D1eLjzj4.js";
13
13
  const He = {};
14
14
  function Je(S, O) {
15
15
  return _(), $("div", null, [...O[0] || (O[0] = [
@@ -3,16 +3,16 @@ import { useRouter as of, useRoute as cf } from "vue-router";
3
3
  import { useCoreStore as hf, useI18n as uf } from "@feedmepos/mf-common";
4
4
  import { _ as vf } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
5
  import { _ as pf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
6
- import { u as df } from "./useAppStore-DfaKfSuR.js";
6
+ import { u as df } from "./useAppStore-D1eLjzj4.js";
7
7
  import "@feedmepos/ui-library";
8
8
  /* empty css */
9
- import { u as mf } from "./employee-DKRqMph9.js";
10
- import "./lodash-CL6AaeJB.js";
11
- import "./index-D09s817L.js";
12
- import { R as vt } from "./app-DKSPx49S.js";
13
- import "./useReportPermissions-CwsHq61C.js";
14
- import "./dayjs.min-DZJQ_JpV.js";
15
- import "./timesheet-B0usAfjL.js";
9
+ import { u as mf } from "./employee-8oXtifwK.js";
10
+ import "./lodash-C7JpKSnW.js";
11
+ import "./index-DSwL5tAm.js";
12
+ import { R as vt } from "./app-c-GiPrdn.js";
13
+ import "./useReportPermissions-p2VZ4ugv.js";
14
+ import "./dayjs.min-CJ2WQsea.js";
15
+ import "./timesheet-D05cQ6a7.js";
16
16
  var In = {};
17
17
  /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
18
18
  var jt = {};
@@ -4,13 +4,13 @@ import { useI18n as N } from "@feedmepos/mf-common";
4
4
  import { _ as g } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
5
  import { _ as h } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
6
6
  import "@feedmepos/ui-library";
7
- import "./index-D09s817L.js";
8
- import { R as v } from "./app-DKSPx49S.js";
9
- import "./useAppStore-DfaKfSuR.js";
10
- import "./index-BwyUbhZj.js";
7
+ import "./index-DSwL5tAm.js";
8
+ import { R as v } from "./app-c-GiPrdn.js";
9
+ import "./useAppStore-D1eLjzj4.js";
10
+ import "./index-AdCh0qd6.js";
11
11
  /* empty css */
12
12
  /* empty css */
13
- import "./team-DEjtUFVl.js";
13
+ import "./team-Fs4KPQg5.js";
14
14
  const w = { class: "space-y-24" }, P = /* @__PURE__ */ V({
15
15
  __name: "Main",
16
16
  setup(x) {