@feedmepos/mf-hrm-portal 2.1.1-dev → 2.1.1-dev.2

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 (26) hide show
  1. package/dist/{AuditLogList-Cvp-5_0y.js → AuditLogList-DHiqs9G0.js} +219 -216
  2. package/dist/{ConditionFormHost.vue_vue_type_script_setup_true_lang-Cb8-YaiH.js → ConditionFormHost.vue_vue_type_script_setup_true_lang-CWqNWNdD.js} +2 -2
  3. package/dist/{EmployeeList-DgrD3Hjm.js → EmployeeList-CUd3VH5h.js} +6 -6
  4. package/dist/{Main-mTxcltDY.js → Main-B_L5flWT.js} +6 -6
  5. package/dist/{Main-G3am-0Xi.js → Main-DUbLeLlK.js} +4 -4
  6. package/dist/{Main-BLRr_ORG.js → Main-DgemO-iy.js} +9 -9
  7. package/dist/{PermissionSetList-OzyfE-Yg.js → PermissionSetList-BaC4lKV5.js} +6 -6
  8. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Ca2NnAAF.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DddOxcG_.js} +690 -690
  9. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_79737e32_lang-Czo3FLbc.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_79737e32_lang-DbPzVpnG.js} +1 -1
  10. package/dist/{RoleList-DOZ5RJ6A.js → RoleList-CThb6VEd.js} +8 -8
  11. package/dist/{TeamMemberList-CAqLUyQK.js → TeamMemberList-CAw4jr1b.js} +8 -8
  12. package/dist/{TimesheetList-D21j4zLV.js → TimesheetList-C_IMtsTH.js} +6 -6
  13. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-CRmmIfTk.js → TimesheetList.vue_vue_type_style_index_0_scoped_2c7a177a_lang-DGwteHIL.js} +2 -2
  14. package/dist/{app-CX-St7pv.js → app-BW91YDke.js} +4 -4
  15. package/dist/app.js +1 -1
  16. package/dist/{dayjs.min-MDoe5X-P.js → dayjs.min-DwQTpnVK.js} +1 -1
  17. package/dist/{employee-B2cdx2t4.js → employee-yM0kdY70.js} +3 -3
  18. package/dist/{iteration-B38iapI_.js → iteration-Dj50K6I7.js} +1 -1
  19. package/dist/{lodash-DZAGPZLQ.js → lodash-DLReQyP0.js} +1 -1
  20. package/dist/{rule-DftQBR76.js → rule-BJ-o-PKi.js} +2 -2
  21. package/dist/style.css +1 -1
  22. package/dist/tsconfig.app.tsbuildinfo +1 -1
  23. package/dist/{useAppStore-BBsP5C3E.js → useAppStore-CHkGWiai.js} +1 -1
  24. package/dist/{useLoading-qgSjOzRD.js → useLoading-B89K5XKO.js} +1 -1
  25. package/dist/{useReportPermissions-CIhkjN3B.js → useReportPermissions-Bjfhr6FD.js} +3 -3
  26. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
- import { defineComponent as St, ref as y, computed as w, onMounted as po, onBeforeUnmount as go, watch as ne, resolveComponent as U, createElementBlock as b, openBlock as g, createBlock as Ce, createCommentVNode as D, createElementVNode as l, Fragment as J, renderList as re, withCtx as B, createVNode as m, toDisplayString as i, unref as d, nextTick as ho, onUnmounted as bo, normalizeClass as yo, createTextVNode as We } from "vue";
2
- import { d as A } from "./dayjs.min-MDoe5X-P.js";
1
+ import { defineComponent as St, ref as y, computed as w, onMounted as po, onBeforeUnmount as go, watch as ne, resolveComponent as U, createElementBlock as b, openBlock as v, createBlock as Ce, createCommentVNode as F, createElementVNode as l, Fragment as J, renderList as re, withCtx as B, createVNode as m, toDisplayString as r, unref as d, nextTick as ho, onUnmounted as bo, normalizeClass as yo, createTextVNode as We } from "vue";
2
+ import { d as A } from "./dayjs.min-DwQTpnVK.js";
3
3
  import { useI18n as wt, useCoreStore as _o } from "@feedmepos/mf-common";
4
- import { G as ht, _ as xo } from "./app-CX-St7pv.js";
4
+ import { G as ht, _ as xo } from "./app-BW91YDke.js";
5
5
  import { components as _e } from "@feedmepos/ui-library";
6
- import { g as qe, b as Ge } from "./iteration-B38iapI_.js";
6
+ import { g as qe, b as Ge } from "./iteration-Dj50K6I7.js";
7
7
  import { S as je, _ as Lo } from "./SelectFilter-ATOm0hdn.js";
8
8
  import { _ as So } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
9
9
  import { _ as wo } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-Ci_MVqGK.js";
10
- import { t as ko, p as bt } from "./rule-DftQBR76.js";
10
+ import { t as ko, p as bt } from "./rule-BJ-o-PKi.js";
11
11
  import { defineStore as Io } from "pinia";
12
12
  import { u as Mo } from "./useDebounce-B8ZPVS5C.js";
13
13
  const xe = [
@@ -40,12 +40,12 @@ const xe = [
40
40
  await Ge().get(`${Xe}/count`, {
41
41
  params: o,
42
42
  paramsSerializer: (x) => {
43
- const F = new URLSearchParams();
43
+ const D = new URLSearchParams();
44
44
  for (const [T, j] of Object.entries(x))
45
45
  if (Array.isArray(j))
46
- for (const ee of j) F.append(T, String(ee));
47
- else j != null && F.append(T, String(j));
48
- return F.toString();
46
+ for (const ee of j) D.append(T, String(ee));
47
+ else j != null && D.append(T, String(j));
48
+ return D.toString();
49
49
  }
50
50
  })
51
51
  )).total;
@@ -74,10 +74,10 @@ const xe = [
74
74
  // (NestJS @Query expects this; axios default adds brackets which break matching)
75
75
  paramsSerializer: (S) => {
76
76
  const x = new URLSearchParams();
77
- for (const [F, T] of Object.entries(S))
77
+ for (const [D, T] of Object.entries(S))
78
78
  if (Array.isArray(T))
79
- for (const j of T) x.append(F, String(j));
80
- else T != null && x.append(F, String(T));
79
+ for (const j of T) x.append(D, String(j));
80
+ else T != null && x.append(D, String(T));
81
81
  return x.toString();
82
82
  }
83
83
  })
@@ -109,7 +109,7 @@ const xe = [
109
109
  emits: ["update:modelValue"],
110
110
  setup(t, { emit: o }) {
111
111
  const n = t, u = o, { t: _ } = wt(), c = y(!1), f = y(null), a = y(null), I = y([]), S = y(0), x = y(0);
112
- let F = null;
112
+ let D = null;
113
113
  async function T() {
114
114
  if (await ho(), !a.value) return;
115
115
  const O = a.value.querySelectorAll("[data-tab-measure]");
@@ -147,11 +147,11 @@ const xe = [
147
147
  c.value = !1, u("update:modelValue", O);
148
148
  }
149
149
  return po(async () => {
150
- await T(), f.value && (x.value = f.value.clientWidth, F = new ResizeObserver(() => {
150
+ await T(), f.value && (x.value = f.value.clientWidth, D = new ResizeObserver(() => {
151
151
  f.value && (x.value = f.value.clientWidth);
152
- }), F.observe(f.value));
152
+ }), D.observe(f.value));
153
153
  }), go(() => {
154
- F == null || F.disconnect(), F = null;
154
+ D == null || D.disconnect(), D = null;
155
155
  }), ne(
156
156
  () => n.items,
157
157
  () => {
@@ -160,12 +160,12 @@ const xe = [
160
160
  { deep: !0 }
161
161
  ), (O, M) => {
162
162
  const V = U("FmTab"), P = U("FmIcon"), W = U("FmMenuItem"), Y = U("FmMenu");
163
- return g(), b("div", {
163
+ return v(), b("div", {
164
164
  ref_key: "containerRef",
165
165
  ref: f,
166
166
  class: "relative flex w-full flex-row items-center"
167
167
  }, [
168
- (g(!0), b(J, null, re(ee.value, (L) => (g(), Ce(V, {
168
+ (v(!0), b(J, null, re(ee.value, (L) => (v(), Ce(V, {
169
169
  key: L.value,
170
170
  "model-value": t.modelValue,
171
171
  label: L.label,
@@ -174,7 +174,7 @@ const xe = [
174
174
  value: L.value,
175
175
  "onUpdate:modelValue": ge
176
176
  }, null, 8, ["model-value", "label", "badge", "disabled", "value"]))), 128)),
177
- pe.value.length > 0 ? (g(), Ce(Y, {
177
+ pe.value.length > 0 ? (v(), Ce(Y, {
178
178
  key: 0,
179
179
  "show-menu": c.value,
180
180
  class: "max-w-[360px] min-w-[90px] rounded-sm",
@@ -184,11 +184,11 @@ const xe = [
184
184
  "menu-button": B(() => [
185
185
  l("div", Oo, [
186
186
  m(P, { name: "more_vert" }),
187
- l("span", Ao, i(d(_)("auditLog.modules.more")), 1)
187
+ l("span", Ao, r(d(_)("auditLog.modules.more")), 1)
188
188
  ])
189
189
  ]),
190
190
  default: B(() => [
191
- (g(!0), b(J, null, re(pe.value, (L) => (g(), Ce(W, {
191
+ (v(!0), b(J, null, re(pe.value, (L) => (v(), Ce(W, {
192
192
  key: L.value,
193
193
  "model-value": t.modelValue === L.value,
194
194
  label: L.label,
@@ -197,14 +197,14 @@ const xe = [
197
197
  }, null, 8, ["model-value", "label", "disabled", "onClick"]))), 128))
198
198
  ]),
199
199
  _: 1
200
- }, 8, ["show-menu"])) : D("", !0),
200
+ }, 8, ["show-menu"])) : F("", !0),
201
201
  l("div", {
202
202
  ref_key: "measurerRef",
203
203
  ref: a,
204
204
  "aria-hidden": "true",
205
205
  class: "pointer-events-none invisible absolute -left-[9999px] -top-[9999px] flex flex-row items-center"
206
206
  }, [
207
- (g(!0), b(J, null, re(t.items, (L) => (g(), b("div", {
207
+ (v(!0), b(J, null, re(t.items, (L) => (v(), b("div", {
208
208
  key: `measure-${L.value}`,
209
209
  "data-tab-measure": ""
210
210
  }, [
@@ -218,7 +218,7 @@ const xe = [
218
218
  ]))), 128)),
219
219
  l("div", Fo, [
220
220
  m(P, { name: "more_vert" }),
221
- l("span", Do, i(d(_)("auditLog.modules.more")), 1)
221
+ l("span", Do, r(d(_)("auditLog.modules.more")), 1)
222
222
  ])
223
223
  ], 512)
224
224
  ], 512);
@@ -337,8 +337,8 @@ function Ko(t, o, n, u) {
337
337
  n.map((S) => [S[_], S])
338
338
  ), I = /* @__PURE__ */ new Set([...f.keys(), ...a.keys()]);
339
339
  for (const S of I) {
340
- const x = f.has(S), F = a.has(S), T = `${t}[${String(S)}]`;
341
- we(T, f.get(S), x, a.get(S), F, u);
340
+ const x = f.has(S), D = a.has(S), T = `${t}[${String(S)}]`;
341
+ we(T, f.get(S), x, a.get(S), D, u);
342
342
  }
343
343
  return;
344
344
  }
@@ -419,199 +419,202 @@ const Yo = {
419
419
  }, ss = {
420
420
  class: "audit-log-operation-label-detail text-base font-bold leading-snug text-fm-color-typo-primary"
421
421
  }, ls = {
422
- class: "rounded-lg border border-fm-color-border-default p-12"
422
+ key: 0,
423
+ class: "mt-4 break-all font-mono text-xs text-fm-color-typo-secondary"
423
424
  }, as = {
424
- class: "space-y-12"
425
+ class: "rounded-lg border border-fm-color-border-default p-12"
425
426
  }, ns = {
426
- class: "text-xs text-fm-color-typo-secondary"
427
+ class: "space-y-12"
427
428
  }, rs = {
428
- class: "font-semibold"
429
- }, is = {
430
429
  class: "text-xs text-fm-color-typo-secondary"
431
- }, us = {
430
+ }, is = {
432
431
  class: "font-semibold"
433
- }, ds = {
432
+ }, us = {
434
433
  class: "text-xs text-fm-color-typo-secondary"
434
+ }, ds = {
435
+ class: "font-semibold"
435
436
  }, cs = {
436
- class: "break-all font-semibold"
437
+ class: "text-xs text-fm-color-typo-secondary"
437
438
  }, fs = {
438
- key: 0
439
+ class: "break-all font-semibold"
439
440
  }, ms = {
440
- class: "text-xs text-fm-color-typo-secondary"
441
+ key: 0
441
442
  }, vs = {
442
- class: "break-all font-mono text-xs font-semibold"
443
- }, ps = {
444
443
  class: "text-xs text-fm-color-typo-secondary"
445
- }, gs = {
444
+ }, ps = {
446
445
  class: "break-all font-mono text-xs font-semibold"
447
- }, hs = {
446
+ }, gs = {
448
447
  class: "text-xs text-fm-color-typo-secondary"
448
+ }, hs = {
449
+ class: "break-all font-mono text-xs font-semibold"
449
450
  }, bs = {
450
- class: "font-semibold"
451
+ class: "text-xs text-fm-color-typo-secondary"
451
452
  }, ys = {
452
- class: "rounded-lg border border-fm-color-border-default"
453
+ class: "font-semibold"
453
454
  }, _s = {
454
- class: "p-12"
455
+ class: "rounded-lg border border-fm-color-border-default"
455
456
  }, xs = {
456
- class: "text-base font-bold text-fm-color-typo-primary"
457
+ class: "p-12"
457
458
  }, Ls = {
458
- class: "space-y-12 p-12"
459
+ class: "text-base font-bold text-fm-color-typo-primary"
459
460
  }, Ss = {
460
- class: "text-xs text-fm-color-typo-secondary"
461
+ class: "space-y-12 p-12"
461
462
  }, ws = {
462
- class: "font-semibold"
463
+ class: "text-xs text-fm-color-typo-secondary"
463
464
  }, ks = {
464
- class: "rounded-lg border border-fm-color-border-default"
465
+ class: "font-semibold"
465
466
  }, Is = {
466
- class: "p-12"
467
+ class: "rounded-lg border border-fm-color-border-default"
467
468
  }, Ms = {
468
- class: "text-base font-bold text-fm-color-typo-primary"
469
+ class: "p-12"
469
470
  }, Os = {
470
- class: "space-y-12 p-12"
471
+ class: "text-base font-bold text-fm-color-typo-primary"
471
472
  }, As = {
472
- class: "text-xs text-fm-color-typo-secondary"
473
+ class: "space-y-12 p-12"
473
474
  }, Fs = {
474
- class: "font-semibold"
475
+ class: "text-xs text-fm-color-typo-secondary"
475
476
  }, Ds = {
476
- key: 0
477
+ class: "font-semibold"
477
478
  }, js = {
478
- class: "text-xs text-fm-color-typo-secondary"
479
+ key: 0
479
480
  }, Ts = {
481
+ class: "text-xs text-fm-color-typo-secondary"
482
+ }, Ps = {
480
483
  key: 0,
481
484
  class: "font-semibold"
482
- }, Ps = {
485
+ }, Cs = {
483
486
  key: 1,
484
487
  class: "break-all font-mono text-xs text-fm-color-typo-secondary"
485
- }, Cs = {
486
- key: 1
487
488
  }, Vs = {
488
- class: "text-xs text-fm-color-typo-secondary"
489
+ key: 1
489
490
  }, Es = {
490
- class: "font-semibold whitespace-pre-line"
491
- }, Rs = {
492
491
  class: "text-xs text-fm-color-typo-secondary"
492
+ }, Rs = {
493
+ class: "font-semibold whitespace-pre-line"
493
494
  }, Us = {
494
- class: "font-semibold"
495
- }, $s = {
496
495
  class: "text-xs text-fm-color-typo-secondary"
496
+ }, $s = {
497
+ class: "font-semibold"
497
498
  }, Ns = {
498
- class: "break-all font-mono text-xs font-semibold"
499
+ class: "text-xs text-fm-color-typo-secondary"
499
500
  }, Ks = {
500
- key: 2
501
+ class: "break-all font-mono text-xs font-semibold"
501
502
  }, Bs = {
502
- class: "text-xs text-fm-color-typo-secondary"
503
+ key: 2
503
504
  }, Ys = {
504
- class: "mt-4 space-y-4"
505
+ class: "text-xs text-fm-color-typo-secondary"
505
506
  }, zs = {
506
- 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"
507
+ class: "mt-4 space-y-4"
507
508
  }, Hs = {
508
- class: "text-xs font-semibold"
509
+ 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"
509
510
  }, Js = {
511
+ class: "text-xs font-semibold"
512
+ }, Ws = {
510
513
  key: 0,
511
514
  class: "text-fm-color-typo-secondary"
512
- }, Ws = {
513
- key: 3
514
515
  }, qs = {
515
- class: "text-xs text-fm-color-typo-secondary"
516
+ key: 3
516
517
  }, Gs = {
517
- class: "mt-4 max-h-[400px] overflow-auto rounded bg-gray-100 p-8 font-mono text-xs leading-relaxed shadow-inner whitespace-pre-wrap break-all"
518
+ class: "text-xs text-fm-color-typo-secondary"
518
519
  }, Xs = {
520
+ class: "mt-4 max-h-[400px] overflow-auto rounded bg-gray-100 p-8 font-mono text-xs leading-relaxed shadow-inner whitespace-pre-wrap break-all"
521
+ }, Qs = {
519
522
  key: 0,
520
523
  class: "space-y-12 p-4 text-sm"
521
- }, Qs = {
522
- class: "flex items-start justify-between gap-8 rounded-lg border border-fm-color-border-default p-12"
523
524
  }, Zs = {
524
- class: "min-w-0 flex-1"
525
+ class: "flex items-start justify-between gap-8 rounded-lg border border-fm-color-border-default p-12"
525
526
  }, el = {
526
- class: "text-base font-bold leading-snug text-fm-color-typo-primary"
527
+ class: "min-w-0 flex-1"
527
528
  }, tl = {
529
+ class: "text-base font-bold leading-snug text-fm-color-typo-primary"
530
+ }, ol = {
528
531
  key: 0,
529
532
  class: "text-xs text-fm-color-typo-secondary"
530
- }, ol = {
531
- class: "rounded-lg border border-fm-color-border-default p-12"
532
533
  }, sl = {
533
- class: "space-y-12"
534
+ class: "rounded-lg border border-fm-color-border-default p-12"
534
535
  }, ll = {
535
- class: "text-xs text-fm-color-typo-secondary"
536
+ class: "space-y-12"
536
537
  }, al = {
537
- class: "font-semibold"
538
+ class: "text-xs text-fm-color-typo-secondary"
538
539
  }, nl = {
539
- key: 0
540
+ class: "font-semibold"
540
541
  }, rl = {
541
- class: "text-xs text-fm-color-typo-secondary"
542
+ key: 0
542
543
  }, il = {
543
- class: "font-semibold"
544
+ class: "text-xs text-fm-color-typo-secondary"
544
545
  }, ul = {
545
- key: 1
546
+ class: "font-semibold"
546
547
  }, dl = {
547
- class: "text-xs text-fm-color-typo-secondary"
548
+ key: 1
548
549
  }, cl = {
549
- class: "font-semibold"
550
+ class: "text-xs text-fm-color-typo-secondary"
550
551
  }, fl = {
552
+ class: "font-semibold"
553
+ }, ml = {
551
554
  key: 0,
552
555
  class: "rounded-lg border border-fm-color-border-default p-12"
553
- }, ml = {
554
- class: "text-xs text-fm-color-typo-secondary"
555
556
  }, vl = {
556
- class: "whitespace-pre-line font-semibold text-fm-color-typo-error"
557
+ class: "text-xs text-fm-color-typo-secondary"
557
558
  }, pl = {
558
- class: "rounded-lg border border-fm-color-border-default"
559
+ class: "whitespace-pre-line font-semibold text-fm-color-typo-error"
559
560
  }, gl = {
560
- class: "p-12"
561
+ class: "rounded-lg border border-fm-color-border-default"
561
562
  }, hl = {
562
- class: "text-base font-bold text-fm-color-typo-primary"
563
- }, bl = {
564
563
  class: "p-12"
564
+ }, bl = {
565
+ class: "text-base font-bold text-fm-color-typo-primary"
565
566
  }, yl = {
567
+ class: "p-12"
568
+ }, _l = {
566
569
  key: 0,
567
570
  class: "divide-y divide-fm-color-border-default"
568
- }, _l = {
569
- class: "flex flex-wrap items-center gap-8"
570
571
  }, xl = {
571
- class: "break-all font-mono text-xs"
572
+ class: "flex flex-wrap items-center gap-8"
572
573
  }, Ll = {
573
- class: "space-y-4"
574
+ class: "break-all font-mono text-xs"
574
575
  }, Sl = {
576
+ class: "space-y-4"
577
+ }, wl = {
575
578
  key: 0,
576
579
  class: "text-fm-color-typo-success"
577
- }, wl = {
578
- key: 1,
579
- class: "text-fm-color-typo-error"
580
580
  }, kl = {
581
+ key: 1,
581
582
  class: "text-fm-color-typo-error"
582
583
  }, Il = {
583
- class: "text-fm-color-typo-success"
584
+ class: "text-fm-color-typo-error"
584
585
  }, Ml = {
586
+ class: "text-fm-color-typo-success"
587
+ }, Ol = {
585
588
  key: 1,
586
589
  class: "text-fm-color-typo-secondary"
587
- }, Ol = {
590
+ }, Al = {
588
591
  key: 1,
589
592
  class: "rounded-lg border border-fm-color-border-default"
590
- }, Al = {
591
- class: "text-base font-bold text-fm-color-typo-primary"
592
593
  }, Fl = {
593
- class: "space-y-12 p-12"
594
+ class: "text-base font-bold text-fm-color-typo-primary"
594
595
  }, Dl = {
595
- key: 0
596
+ class: "space-y-12 p-12"
596
597
  }, jl = {
597
- class: "text-xs text-fm-color-typo-secondary"
598
+ key: 0
598
599
  }, Tl = {
599
- class: "mt-4 max-h-[400px] overflow-auto rounded bg-gray-100 p-8 font-mono text-xs leading-relaxed shadow-inner whitespace-pre-wrap break-all"
600
+ class: "text-xs text-fm-color-typo-secondary"
600
601
  }, Pl = {
601
- key: 1
602
+ class: "mt-4 max-h-[400px] overflow-auto rounded bg-gray-100 p-8 font-mono text-xs leading-relaxed shadow-inner whitespace-pre-wrap break-all"
602
603
  }, Cl = {
603
- class: "text-xs text-fm-color-typo-secondary"
604
+ key: 1
604
605
  }, Vl = {
606
+ class: "text-xs text-fm-color-typo-secondary"
607
+ }, El = {
605
608
  class: "mt-4 max-h-[400px] overflow-auto rounded bg-gray-100 p-8 font-mono text-xs leading-relaxed shadow-inner whitespace-pre-wrap break-all"
606
- }, Le = 100, Qe = 1e3, Pe = "__feedmeAdmin__", El = "D MMM YYYY h:mm A", Rl = "YYYY-MM-DD HH:mm", R = "YYYY-MM-DD", Lt = "audit-log-export-fields", Ul = /* @__PURE__ */ St({
609
+ }, Le = 100, Qe = 1e3, Pe = "__feedmeAdmin__", Rl = "D MMM YYYY h:mm A", Ul = "YYYY-MM-DD HH:mm", R = "YYYY-MM-DD", Lt = "audit-log-export-fields", $l = /* @__PURE__ */ St({
607
610
  __name: "AuditLogList",
608
611
  setup(t) {
609
612
  const {
610
613
  t: o
611
- } = wt(), n = _o(), u = To(), _ = y(!1), c = y(!1), f = y([]), a = y(null), I = y(!1), S = y({}), x = y(null), F = y(!1);
614
+ } = wt(), n = _o(), u = To(), _ = y(!1), c = y(!1), f = y([]), a = y(null), I = y(!1), S = y({}), x = y(null), D = y(!1);
612
615
  async function T(e) {
613
- const s = Uint8Array.from(atob(e), (p) => p.charCodeAt(0)), r = new DecompressionStream("gzip"), v = r.writable.getWriter();
614
- return await v.write(s), await v.close(), new Response(r.readable).text();
616
+ const s = Uint8Array.from(atob(e), (g) => g.charCodeAt(0)), i = new DecompressionStream("gzip"), p = i.writable.getWriter();
617
+ return await p.write(s), await p.close(), new Response(i.readable).text();
615
618
  }
616
619
  const j = y("");
617
620
  let ee = 0;
@@ -630,9 +633,9 @@ const Yo = {
630
633
  }
631
634
  if (e.startsWith("gzip:")) {
632
635
  try {
633
- const r = await T(e.slice(5));
636
+ const i = await T(e.slice(5));
634
637
  if (s !== ee) return;
635
- j.value = JSON.stringify(JSON.parse(r), null, 2);
638
+ j.value = JSON.stringify(JSON.parse(i), null, 2);
636
639
  } catch {
637
640
  if (s !== ee) return;
638
641
  j.value = e;
@@ -677,8 +680,8 @@ const Yo = {
677
680
  ne(x, async (e) => {
678
681
  const s = ++W;
679
682
  if (O.value = [], M.value = "", V.value = "", P.value = !1, !e) return;
680
- const [r, v] = await Promise.all([pe(e.before), pe(e.after)]);
681
- s === W && (O.value = Bo(r, v), M.value = ge(r), V.value = ge(v));
683
+ const [i, p] = await Promise.all([pe(e.before), pe(e.after)]);
684
+ s === W && (O.value = Bo(i, p), M.value = ge(i), V.value = ge(p));
682
685
  });
683
686
  function Y(e) {
684
687
  return e === "added" ? "success" : e === "removed" ? "critical" : "warning";
@@ -691,15 +694,15 @@ const Yo = {
691
694
  }
692
695
  const te = w(() => {
693
696
  const e = [], s = /* @__PURE__ */ new Map();
694
- for (const r of O.value) {
695
- const v = ie(r.path), p = `${r.type}::${v}`;
696
- let k = s.get(p);
697
+ for (const i of O.value) {
698
+ const p = ie(i.path), g = `${i.type}::${p}`;
699
+ let k = s.get(g);
697
700
  k || (k = {
698
- groupKey: p,
699
- displayKey: v,
700
- type: r.type,
701
+ groupKey: g,
702
+ displayKey: p,
703
+ type: i.type,
701
704
  rows: []
702
- }, s.set(p, k), e.push(k)), k.rows.push(r);
705
+ }, s.set(g, k), e.push(k)), k.rows.push(i);
703
706
  }
704
707
  return e;
705
708
  }), se = y(1), Ze = y(!1), $ = y(0), ue = w(() => Math.max(1, Math.ceil($.value / Le))), et = A().format("YYYY-MM-DD"), q = y({
@@ -711,7 +714,7 @@ const Yo = {
711
714
  }
712
715
  const tt = xe.filter((e) => e.key !== "all").map((e) => e.key);
713
716
  function ke(e) {
714
- const s = xe.find((r) => r.key !== "all" && r.subjectPrefixes.some((v) => e.startsWith(v)));
717
+ const s = xe.find((i) => i.key !== "all" && i.subjectPrefixes.some((p) => e.startsWith(p)));
715
718
  return (s == null ? void 0 : s.key) ?? "other";
716
719
  }
717
720
  function ot(e) {
@@ -746,42 +749,42 @@ const Yo = {
746
749
  const e = H.value.toLowerCase();
747
750
  if (!e) return [];
748
751
  const s = /* @__PURE__ */ new Set();
749
- for (const r of u.members) {
750
- const v = r.doc.userId;
751
- ((u.userIdToName[v] ?? "").toLowerCase().includes(e) || (u.userIdToEmail[v] ?? "").toLowerCase().includes(e) || (u.userIdToPhone[v] ?? "").toLowerCase().includes(e)) && s.add(v);
752
+ for (const i of u.members) {
753
+ const p = i.doc.userId;
754
+ ((u.userIdToName[p] ?? "").toLowerCase().includes(e) || (u.userIdToEmail[p] ?? "").toLowerCase().includes(e) || (u.userIdToPhone[p] ?? "").toLowerCase().includes(e)) && s.add(p);
752
755
  }
753
- for (const r of he.value)
754
- r.name.toLowerCase().includes(e) && s.add(r.userId);
756
+ for (const i of he.value)
757
+ i.name.toLowerCase().includes(e) && s.add(i.userId);
755
758
  return [...s];
756
759
  }), Ue = w(() => {
757
- const e = bt.flatMap((p) => kt(p.subject).map((k) => ({
758
- label: p.label,
760
+ const e = bt.flatMap((g) => kt(g.subject).map((k) => ({
761
+ label: g.label,
759
762
  value: k
760
- }))), s = Object.entries(ht).map(([p, k]) => ({
763
+ }))), s = Object.entries(ht).map(([g, k]) => ({
761
764
  label: k,
762
- value: p
763
- })), r = /* @__PURE__ */ new Set(), v = [];
764
- for (const p of [...e, ...s])
765
- if (!r.has(p.value)) {
766
- r.add(p.value);
767
- const k = ke(p.value);
768
- v.push({
769
- ...p,
765
+ value: g
766
+ })), i = /* @__PURE__ */ new Set(), p = [];
767
+ for (const g of [...e, ...s])
768
+ if (!i.has(g.value)) {
769
+ i.add(g.value);
770
+ const k = ke(g.value);
771
+ p.push({
772
+ ...g,
770
773
  group: o(`auditLog.modules.${k}`)
771
774
  });
772
775
  }
773
- return v.sort((p, k) => ot(ke(p.value)) - ot(ke(k.value)));
776
+ return p.sort((g, k) => ot(ke(g.value)) - ot(ke(k.value)));
774
777
  }), fe = w(() => {
775
778
  const e = H.value.toLowerCase();
776
779
  if (!e) return [];
777
780
  const s = /* @__PURE__ */ new Set();
778
- for (const r of Ue.value)
779
- r.label.toLowerCase().includes(e) && s.add(r.value);
781
+ for (const i of Ue.value)
782
+ i.label.toLowerCase().includes(e) && s.add(i.value);
780
783
  return [...s];
781
784
  }), Ft = w(() => Mt.value ? Ue.value : Ue.value.filter((e) => ke(e.value) === le.value));
782
785
  function Dt(e, s) {
783
- const r = s.toLowerCase();
784
- return e.label.toLowerCase().includes(r) || e.value.replace(/^business::/, "").toLowerCase().includes(r) ? !0 : e.value.toLowerCase().includes(r);
786
+ const i = s.toLowerCase();
787
+ return e.label.toLowerCase().includes(i) || e.value.replace(/^business::/, "").toLowerCase().includes(i) ? !0 : e.value.toLowerCase().includes(i);
785
788
  }
786
789
  const K = w(() => ({
787
790
  manage: o("auditLog.action.manage"),
@@ -847,7 +850,7 @@ const Yo = {
847
850
  skipped: "warning"
848
851
  };
849
852
  function Oe(e) {
850
- return A(e).format(El);
853
+ return A(e).format(Rl);
851
854
  }
852
855
  const Et = w(() => {
853
856
  const {
@@ -900,12 +903,12 @@ const Yo = {
900
903
  }]);
901
904
  function Ke(e) {
902
905
  var s;
903
- return ((s = bt.find((r) => r.subject === e)) == null ? void 0 : s.label) ?? ht[e];
906
+ return ((s = bt.find((i) => i.subject === e)) == null ? void 0 : s.label) ?? ht[e];
904
907
  }
905
908
  function Ae(e) {
906
- var r;
909
+ var i;
907
910
  const s = u.userIdToName[e.userId];
908
- return s || (u.hasLoaded ? (r = n.sessionUser.value) != null && r.isInternal ? `${e.actorName ?? e.userId} (${o("auditLog.user.feedmeAdmin")})` : o("auditLog.user.feedmeAdmin") : e.userId);
911
+ return s || (u.hasLoaded ? (i = n.sessionUser.value) != null && i.isInternal ? `${e.actorName ?? e.userId} (${o("auditLog.user.feedmeAdmin")})` : o("auditLog.user.feedmeAdmin") : e.userId);
909
912
  }
910
913
  function lt(e) {
911
914
  return u.userIdToPhone[e.userId] || "-";
@@ -1052,7 +1055,7 @@ const Yo = {
1052
1055
  }
1053
1056
  }
1054
1057
  async function zt() {
1055
- var e, s, r, v, p;
1058
+ var e, s, i, p, g;
1056
1059
  if (!c.value) {
1057
1060
  c.value = !0;
1058
1061
  try {
@@ -1079,7 +1082,7 @@ const Yo = {
1079
1082
  ...(s = X.value) != null && s.length ? {
1080
1083
  actions: X.value
1081
1084
  } : {},
1082
- ...(r = G.value) != null && r.length ? {
1085
+ ...(i = G.value) != null && i.length ? {
1083
1086
  outcomes: Ne(G.value)
1084
1087
  } : {},
1085
1088
  ...H.value ? {
@@ -1102,8 +1105,8 @@ const Yo = {
1102
1105
  if (h.push(...N), N.length < Qe) break;
1103
1106
  C += Qe;
1104
1107
  }
1105
- const vt = Ye.filter((N) => me.value.has(N.key)), so = vt.map((N) => o(N.labelKey)), lo = h.map((N) => vt.map((vo) => vo.getValue(N) ?? "")), Je = -(/* @__PURE__ */ new Date()).getTimezoneOffset(), ao = Je >= 0 ? "+" : "-", no = String(Math.floor(Math.abs(Je) / 60)).padStart(2, "0"), ro = String(Math.abs(Je) % 60).padStart(2, "0"), io = `UTC${ao}${no}:${ro}`, pt = ((v = n.currentBusiness.value) == null ? void 0 : v.name) || "", uo = [k, E].filter(Boolean).join(" – "), co = [...[[o("auditLog.title")], [`${o("auditLog.frontMatter.date")}: ${uo}`], ...pt ? [[`${o("auditLog.frontMatter.business")}: ${pt}`]] : [], [`${o("auditLog.frontMatter.generatedBy")}: ${A().format("DD MMM YYYY, HH:mm")} (${io})`], []].map((N) => N.map(ct).join(",")), ...[so, ...lo].map((N) => N.map(ct).join(","))].join(`
1106
- `), fo = `audit-log_${(((p = n.currentBusiness.value) == null ? void 0 : p.name) || "business").replace(/[^a-z0-9_-]+/gi, "_")}_${A().format("YYYYMMDD_HHmmss")}.csv`, mo = new Blob([`\uFEFF${co}`], {
1108
+ const vt = Ye.filter((N) => me.value.has(N.key)), so = vt.map((N) => o(N.labelKey)), lo = h.map((N) => vt.map((vo) => vo.getValue(N) ?? "")), Je = -(/* @__PURE__ */ new Date()).getTimezoneOffset(), ao = Je >= 0 ? "+" : "-", no = String(Math.floor(Math.abs(Je) / 60)).padStart(2, "0"), ro = String(Math.abs(Je) % 60).padStart(2, "0"), io = `UTC${ao}${no}:${ro}`, pt = ((p = n.currentBusiness.value) == null ? void 0 : p.name) || "", uo = [k, E].filter(Boolean).join(" – "), co = [...[[o("auditLog.title")], [`${o("auditLog.frontMatter.date")}: ${uo}`], ...pt ? [[`${o("auditLog.frontMatter.business")}: ${pt}`]] : [], [`${o("auditLog.frontMatter.generatedBy")}: ${A().format("DD MMM YYYY, HH:mm")} (${io})`], []].map((N) => N.map(ct).join(",")), ...[so, ...lo].map((N) => N.map(ct).join(","))].join(`
1109
+ `), fo = `audit-log_${(((g = n.currentBusiness.value) == null ? void 0 : g.name) || "business").replace(/[^a-z0-9_-]+/gi, "_")}_${A().format("YYYYMMDD_HHmmss")}.csv`, mo = new Blob([`\uFEFF${co}`], {
1107
1110
  type: "text/csv;charset=utf-8;"
1108
1111
  }), gt = window.URL.createObjectURL(mo), ye = document.createElement("a");
1109
1112
  ye.href = gt, ye.download = fo, document.body.appendChild(ye), ye.click(), ye.remove(), window.URL.revokeObjectURL(gt);
@@ -1116,9 +1119,9 @@ const Yo = {
1116
1119
  return "status" in e;
1117
1120
  }
1118
1121
  function Ht(e) {
1119
- var r;
1122
+ var i;
1120
1123
  const s = e.original;
1121
- return e.depth === 0 && !ae(s) && !!((r = s.operations) != null && r.length);
1124
+ return e.depth === 0 && !ae(s) && !!((i = s.operations) != null && i.length);
1122
1125
  }
1123
1126
  function Jt(e) {
1124
1127
  return ae(e) ? void 0 : e.operations;
@@ -1182,27 +1185,27 @@ const Yo = {
1182
1185
  }, [We("· "), s.entityId]) : null, s.status === "failed" && s.errorMessage ? m("span", {
1183
1186
  class: "text-fm-color-typo-error"
1184
1187
  }, [We("· "), s.errorMessage]) : null]);
1185
- const r = ((E = s.operations) == null ? void 0 : E.length) ?? 0, v = (Z) => {
1188
+ const i = ((E = s.operations) == null ? void 0 : E.length) ?? 0, p = (Z) => {
1186
1189
  Z.stopPropagation(), e.row.getToggleExpandedHandler()();
1187
- }, p = {
1190
+ }, g = {
1188
1191
  variant: "tertiary",
1189
1192
  icon: e.row.getIsExpanded() ? "keyboard_arrow_up" : "keyboard_arrow_down",
1190
1193
  "aria-label": o("auditLog.operation.toggle"),
1191
1194
  class: "ml-auto shrink-0",
1192
- onClick: v
1195
+ onClick: p
1193
1196
  }, k = _e.FmButton;
1194
1197
  return m("span", {
1195
1198
  class: "flex items-center gap-8"
1196
- }, [m("span", null, [it(s)]), r > 0 ? m("span", {
1199
+ }, [m("span", null, [it(s)]), i > 0 ? m("span", {
1197
1200
  class: "cursor-pointer",
1198
- onClick: v
1201
+ onClick: p
1199
1202
  }, [m(_e.FmChip, {
1200
1203
  variant: "neutral",
1201
1204
  compact: !0,
1202
1205
  label: o("auditLog.operation.badge", {
1203
- count: r
1206
+ count: i
1204
1207
  })
1205
- }, null)]) : null, e.row.getCanExpand() ? m(k, p, null) : null]);
1208
+ }, null)]) : null, e.row.getCanExpand() ? m(k, g, null) : null]);
1206
1209
  }
1207
1210
  }, {
1208
1211
  accessorKey: "outcome",
@@ -1222,24 +1225,24 @@ const Yo = {
1222
1225
  }
1223
1226
  }];
1224
1227
  function oe(e) {
1225
- const s = A(e, Rl);
1228
+ const s = A(e, Ul);
1226
1229
  return new Date(s.year(), s.month(), s.date(), s.hour(), s.minute(), 0).toISOString().slice(0, 19).replace("T", " ");
1227
1230
  }
1228
1231
  async function ft() {
1229
- var e, s, r;
1232
+ var e, s, i;
1230
1233
  _.value = !0;
1231
1234
  try {
1232
1235
  const {
1233
- startDate: v,
1234
- endDate: p
1236
+ startDate: p,
1237
+ endDate: g
1235
1238
  } = q.value, k = (se.value - 1) * Le, E = Ee.value.subjectPrefixes, Z = await Te.read({
1236
1239
  limit: Le,
1237
1240
  offset: k,
1238
- ...v ? {
1239
- from: oe(v)
1240
- } : {},
1241
1241
  ...p ? {
1242
- to: oe(p)
1242
+ from: oe(p)
1243
+ } : {},
1244
+ ...g ? {
1245
+ to: oe(g)
1243
1246
  } : {},
1244
1247
  ...Q.value.userIds.length ? {
1245
1248
  userIds: Q.value.userIds
@@ -1256,7 +1259,7 @@ const Yo = {
1256
1259
  ...(s = X.value) != null && s.length ? {
1257
1260
  actions: X.value
1258
1261
  } : {},
1259
- ...(r = G.value) != null && r.length ? {
1262
+ ...(i = G.value) != null && i.length ? {
1260
1263
  outcomes: Ne(G.value)
1261
1264
  } : {},
1262
1265
  ...H.value ? {
@@ -1288,11 +1291,11 @@ const Yo = {
1288
1291
  });
1289
1292
  });
1290
1293
  async function qt() {
1291
- var v, p, k;
1294
+ var p, g, k;
1292
1295
  const {
1293
1296
  startDate: e,
1294
1297
  endDate: s
1295
- } = q.value, r = Ee.value.subjectPrefixes;
1298
+ } = q.value, i = Ee.value.subjectPrefixes;
1296
1299
  $.value = await Te.count({
1297
1300
  ...e ? {
1298
1301
  from: oe(e)
@@ -1306,13 +1309,13 @@ const Yo = {
1306
1309
  ...Q.value.feedmeAdminActors ? {
1307
1310
  feedmeAdminActors: !0
1308
1311
  } : {},
1309
- ...(v = z.value) != null && v.length ? {
1312
+ ...(p = z.value) != null && p.length ? {
1310
1313
  subjects: z.value
1311
1314
  } : {},
1312
- ...r.length ? {
1313
- subjectPrefixes: [...r]
1315
+ ...i.length ? {
1316
+ subjectPrefixes: [...i]
1314
1317
  } : {},
1315
- ...(p = X.value) != null && p.length ? {
1318
+ ...(g = X.value) != null && g.length ? {
1316
1319
  actions: X.value
1317
1320
  } : {},
1318
1321
  ...(k = G.value) != null && k.length ? {
@@ -1362,10 +1365,10 @@ const Yo = {
1362
1365
  I.value = !1, a.value = null;
1363
1366
  }
1364
1367
  function Zt(e) {
1365
- x.value = e, F.value = !0;
1368
+ x.value = e, D.value = !0;
1366
1369
  }
1367
1370
  function eo() {
1368
- F.value = !1, x.value = null;
1371
+ D.value = !1, x.value = null;
1369
1372
  }
1370
1373
  ne(n.currentBusiness, (e) => {
1371
1374
  e && u.readTeamMembers();
@@ -1375,20 +1378,20 @@ const Yo = {
1375
1378
  function to() {
1376
1379
  const e = de.value;
1377
1380
  if (!(e != null && e.length)) return;
1378
- const s = new Set(he.value.map((p) => p.userId)), r = new Set(u.members.map((p) => p.doc.userId)), v = e.filter((p) => p === Pe ? Ie.value : u.hasLoaded ? r.has(p) || s.has(p) : !0);
1379
- v.length !== e.length && (de.value = v.length ? v : void 0);
1381
+ const s = new Set(he.value.map((g) => g.userId)), i = new Set(u.members.map((g) => g.doc.userId)), p = e.filter((g) => g === Pe ? Ie.value : u.hasLoaded ? i.has(g) || s.has(g) : !0);
1382
+ p.length !== e.length && (de.value = p.length ? p : void 0);
1380
1383
  }
1381
1384
  async function oo() {
1382
- var r;
1383
- if (!((r = n.currentBusiness.value) != null && r._id)) return;
1385
+ var i;
1386
+ if (!((i = n.currentBusiness.value) != null && i._id)) return;
1384
1387
  const {
1385
1388
  startDate: e,
1386
1389
  endDate: s
1387
1390
  } = q.value;
1388
1391
  try {
1389
1392
  const {
1390
- actors: v,
1391
- showFeedmeAdminFilter: p
1393
+ actors: p,
1394
+ showFeedmeAdminFilter: g
1392
1395
  } = await Te.getFeedmeAdminFilter({
1393
1396
  ...e ? {
1394
1397
  from: oe(e)
@@ -1397,7 +1400,7 @@ const Yo = {
1397
1400
  to: oe(s)
1398
1401
  } : {}
1399
1402
  });
1400
- he.value = v, Ie.value = p;
1403
+ he.value = p, Ie.value = g;
1401
1404
  } catch {
1402
1405
  he.value = [], Ie.value = !1;
1403
1406
  }
@@ -1413,11 +1416,11 @@ const Yo = {
1413
1416
  immediate: !0,
1414
1417
  deep: !0
1415
1418
  }), (e, s) => {
1416
- const r = U("FmSpacer"), v = U("FmButton"), p = U("FmMenuItem"), k = U("FmMenu"), E = U("FmChip"), Z = U("FmDateRangePicker"), Fe = U("FmSearch"), be = U("FmTable"), De = U("FmSideSheet"), He = U("FmIcon");
1417
- return g(), b(J, null, [m(So, {
1419
+ const i = U("FmSpacer"), p = U("FmButton"), g = U("FmMenuItem"), k = U("FmMenu"), E = U("FmChip"), Z = U("FmDateRangePicker"), Fe = U("FmSearch"), be = U("FmTable"), De = U("FmSideSheet"), He = U("FmIcon");
1420
+ return v(), b(J, null, [m(So, {
1418
1421
  heading: d(o)("auditLog.title")
1419
1422
  }, {
1420
- "append-heading": B(() => [m(r), m(v, {
1423
+ "append-heading": B(() => [m(i), m(p, {
1421
1424
  variant: "primary",
1422
1425
  "prepend-icon": "upload",
1423
1426
  label: d(o)("auditLog.export"),
@@ -1428,13 +1431,13 @@ const Yo = {
1428
1431
  "close-on-click": !1,
1429
1432
  "z-index": 50
1430
1433
  }, {
1431
- "menu-button": B(() => [m(v, {
1434
+ "menu-button": B(() => [m(p, {
1432
1435
  variant: "tertiary",
1433
1436
  icon: "settings",
1434
1437
  "aria-label": d(o)("auditLog.exportSettings.title"),
1435
1438
  disabled: c.value
1436
1439
  }, null, 8, ["aria-label", "disabled"])]),
1437
- default: B(() => [l("div", Yo, [l("p", zo, i(d(o)("auditLog.exportSettings.title")), 1), (g(), b(J, null, re(Ye, (h) => m(p, {
1440
+ default: B(() => [l("div", Yo, [l("p", zo, r(d(o)("auditLog.exportSettings.title")), 1), (v(), b(J, null, re(Ye, (h) => m(g, {
1438
1441
  key: h.key,
1439
1442
  label: d(o)(h.labelKey),
1440
1443
  "has-checkbox": "",
@@ -1510,7 +1513,7 @@ const Yo = {
1510
1513
  title: d(o)("auditLog.noData.title"),
1511
1514
  subtitle: d(o)("auditLog.noData.subtitle")
1512
1515
  }, {
1513
- default: B(() => [(g(), Ce(be, {
1516
+ default: B(() => [(v(), Ce(be, {
1514
1517
  key: mt.value,
1515
1518
  "column-defs": Wt,
1516
1519
  "row-data": f.value,
@@ -1542,67 +1545,67 @@ const Yo = {
1542
1545
  h || Qt();
1543
1546
  })
1544
1547
  }, {
1545
- default: B(() => [a.value ? (g(), b("div", es, [l("div", ts, [l("div", os, [l("p", ss, i($t(a.value)), 1)]), m(E, {
1548
+ default: B(() => [a.value ? (v(), b("div", es, [l("div", ts, [l("div", os, [l("p", ss, r($t(a.value)), 1), a.value.traceId ? (v(), b("p", ls, " Trace ID: " + r(a.value.traceId), 1)) : F("", !0)]), m(E, {
1546
1549
  variant: dt(a.value.outcome),
1547
1550
  label: Be(a.value.outcome),
1548
1551
  compact: ""
1549
- }, null, 8, ["variant", "label"])]), l("div", ls, [l("div", as, [l("div", null, [l("p", ns, i(d(o)("auditLog.detail.date")), 1), l("p", rs, i(nt(a.value.timestamp)), 1)]), l("div", null, [l("p", is, i(d(o)("auditLog.detail.user")), 1), l("p", us, i(Ae(a.value)), 1)]), l("div", null, [l("p", ds, i(d(o)("auditLog.detail.email")), 1), l("p", cs, i(Ut(a.value)), 1)]), a.value.field ? (g(), b("div", fs, [l("p", ms, i(d(o)("auditLog.detail.field")), 1), l("p", vs, i(a.value.field), 1)])) : D("", !0), l("div", null, [l("p", ps, i(d(o)("auditLog.detail.business")), 1), l("p", gs, i(a.value.businessId || "-"), 1)]), l("div", null, [l("p", hs, i(d(o)("auditLog.detail.restaurant")), 1), l("p", bs, i(a.value.restaurantId || "-"), 1)])])]), l("div", ys, [l("div", _s, [l("p", xs, i(d(o)("auditLog.detail.eventDetails")), 1)]), s[12] || (s[12] = l("hr", {
1552
+ }, null, 8, ["variant", "label"])]), l("div", as, [l("div", ns, [l("div", null, [l("p", rs, r(d(o)("auditLog.detail.date")), 1), l("p", is, r(nt(a.value.timestamp)), 1)]), l("div", null, [l("p", us, r(d(o)("auditLog.detail.user")), 1), l("p", ds, r(Ae(a.value)), 1)]), l("div", null, [l("p", cs, r(d(o)("auditLog.detail.email")), 1), l("p", fs, r(Ut(a.value)), 1)]), a.value.field ? (v(), b("div", ms, [l("p", vs, r(d(o)("auditLog.detail.field")), 1), l("p", ps, r(a.value.field), 1)])) : F("", !0), l("div", null, [l("p", gs, r(d(o)("auditLog.detail.business")), 1), l("p", hs, r(a.value.businessId || "-"), 1)]), l("div", null, [l("p", bs, r(d(o)("auditLog.detail.restaurant")), 1), l("p", ys, r(a.value.restaurantId || "-"), 1)])])]), l("div", _s, [l("div", xs, [l("p", Ls, r(d(o)("auditLog.detail.eventDetails")), 1)]), s[12] || (s[12] = l("hr", {
1550
1553
  class: "border-fm-color-border-default"
1551
- }, null, -1)), l("div", Ls, [l("div", null, [l("p", Ss, i(d(o)("auditLog.detail.actionDescription")), 1), l("p", ws, i(a.value.metadata.operationLabel || "-"), 1)])])]), l("div", ks, [l("div", Is, [l("p", Ms, i(d(o)("auditLog.detail.metadata")), 1)]), s[13] || (s[13] = l("hr", {
1554
+ }, null, -1)), l("div", Ss, [l("div", null, [l("p", ws, r(d(o)("auditLog.detail.actionDescription")), 1), l("p", ks, r(a.value.metadata.operationLabel || "-"), 1)])])]), l("div", Is, [l("div", Ms, [l("p", Os, r(d(o)("auditLog.detail.metadata")), 1)]), s[13] || (s[13] = l("hr", {
1552
1555
  class: "border-fm-color-border-default"
1553
- }, null, -1)), l("div", Os, [l("div", null, [l("p", As, i(d(o)("auditLog.detail.resolvedFrom")), 1), l("p", Fs, i(Nt(a.value.metadata.resolvedFrom)), 1)]), (a.value.metadata.resolvedFrom === "permissionSet" || a.value.metadata.resolvedFrom === "systemPermissionSet") && (a.value.metadata.permissionSetName || a.value.metadata.permissionSetId) ? (g(), b("div", Ds, [l("p", js, i(d(o)("auditLog.detail.permissionSet")), 1), a.value.metadata.permissionSetName ? (g(), b("p", Ts, i(a.value.metadata.permissionSetName), 1)) : D("", !0), a.value.metadata.permissionSetId ? (g(), b("p", Ps, i(a.value.metadata.permissionSetId), 1)) : D("", !0)])) : D("", !0), a.value.metadata.reason ? (g(), b("div", Cs, [l("p", Vs, i(d(o)("auditLog.detail.reason")), 1), l("p", Es, i(a.value.metadata.reason), 1)])) : D("", !0), l("div", null, [l("p", Rs, i(d(o)("auditLog.detail.requestMethod")), 1), l("p", Us, i(Kt(a.value)), 1)]), l("div", null, [l("p", $s, i(d(o)("auditLog.detail.requestPath")), 1), l("p", Ns, i(a.value.metadata.requestPath || "-"), 1)]), a.value.metadata.trace && a.value.metadata.trace.length > 0 ? (g(), b("div", Ks, [l("p", Bs, i(d(o)("auditLog.detail.permissionTrace")), 1), l("ol", Ys, [(g(!0), b(J, null, re(a.value.metadata.trace, (h, C) => (g(), b("li", {
1556
+ }, null, -1)), l("div", As, [l("div", null, [l("p", Fs, r(d(o)("auditLog.detail.resolvedFrom")), 1), l("p", Ds, r(Nt(a.value.metadata.resolvedFrom)), 1)]), (a.value.metadata.resolvedFrom === "permissionSet" || a.value.metadata.resolvedFrom === "systemPermissionSet") && (a.value.metadata.permissionSetName || a.value.metadata.permissionSetId) ? (v(), b("div", js, [l("p", Ts, r(d(o)("auditLog.detail.permissionSet")), 1), a.value.metadata.permissionSetName ? (v(), b("p", Ps, r(a.value.metadata.permissionSetName), 1)) : F("", !0), a.value.metadata.permissionSetId ? (v(), b("p", Cs, r(a.value.metadata.permissionSetId), 1)) : F("", !0)])) : F("", !0), a.value.metadata.reason ? (v(), b("div", Vs, [l("p", Es, r(d(o)("auditLog.detail.reason")), 1), l("p", Rs, r(a.value.metadata.reason), 1)])) : F("", !0), l("div", null, [l("p", Us, r(d(o)("auditLog.detail.requestMethod")), 1), l("p", $s, r(Kt(a.value)), 1)]), l("div", null, [l("p", Ns, r(d(o)("auditLog.detail.requestPath")), 1), l("p", Ks, r(a.value.metadata.requestPath || "-"), 1)]), a.value.metadata.trace && a.value.metadata.trace.length > 0 ? (v(), b("div", Bs, [l("p", Ys, r(d(o)("auditLog.detail.permissionTrace")), 1), l("ol", zs, [(v(!0), b(J, null, re(a.value.metadata.trace, (h, C) => (v(), b("li", {
1554
1557
  key: C,
1555
1558
  class: "flex items-center gap-6"
1556
- }, [l("span", zs, i(C + 1), 1), l("span", Hs, i(h), 1), C < a.value.metadata.trace.length - 1 ? (g(), b("span", Js, "→")) : D("", !0)]))), 128))])])) : D("", !0), j.value ? (g(), b("div", Ws, [l("p", qs, i(d(o)("auditLog.detail.requestBody")), 1), l("pre", Gs, i(j.value), 1)])) : D("", !0)])])])) : D("", !0)]),
1559
+ }, [l("span", Hs, r(C + 1), 1), l("span", Js, r(h), 1), C < a.value.metadata.trace.length - 1 ? (v(), b("span", Ws, "→")) : F("", !0)]))), 128))])])) : F("", !0), j.value ? (v(), b("div", qs, [l("p", Gs, r(d(o)("auditLog.detail.requestBody")), 1), l("pre", Xs, r(j.value), 1)])) : F("", !0)])])])) : F("", !0)]),
1557
1560
  _: 1
1558
1561
  }, 8, ["header", "model-value"]), m(De, {
1559
1562
  header: d(o)("auditLog.operation.sheetHeader"),
1560
- "model-value": F.value,
1563
+ "model-value": D.value,
1561
1564
  "max-width": 768,
1562
1565
  "dismiss-away": "",
1563
1566
  "onUpdate:modelValue": s[11] || (s[11] = (h) => {
1564
1567
  h || eo();
1565
1568
  })
1566
1569
  }, {
1567
- default: B(() => [x.value ? (g(), b("div", Xs, [l("div", Qs, [l("div", Zs, [l("p", el, i(ut(x.value)), 1), x.value.entityId ? (g(), b("p", tl, i(x.value.entityId), 1)) : D("", !0)]), m(E, {
1570
+ default: B(() => [x.value ? (v(), b("div", Qs, [l("div", Zs, [l("div", el, [l("p", tl, r(ut(x.value)), 1), x.value.entityId ? (v(), b("p", ol, r(x.value.entityId), 1)) : F("", !0)]), m(E, {
1568
1571
  variant: x.value.status === "failed" ? "critical" : "success",
1569
1572
  label: x.value.status === "failed" ? d(o)("auditLog.outcome.failed") : d(o)("auditLog.outcome.success"),
1570
1573
  compact: ""
1571
- }, null, 8, ["variant", "label"])]), l("div", ol, [l("div", sl, [l("div", null, [l("p", ll, i(d(o)("auditLog.detail.date")), 1), l("p", al, i(nt(x.value.timestamp)), 1)]), x.value.entityId ? (g(), b("div", nl, [l("p", rl, i(d(o)("auditLog.operation.entity")), 1), l("p", il, i(x.value.entityId), 1)])) : D("", !0), x.value.durationMs !== void 0 ? (g(), b("div", ul, [l("p", dl, i(d(o)("auditLog.operation.duration")), 1), l("p", cl, i(d(o)("auditLog.operation.durationValue", {
1574
+ }, null, 8, ["variant", "label"])]), l("div", sl, [l("div", ll, [l("div", null, [l("p", al, r(d(o)("auditLog.detail.date")), 1), l("p", nl, r(nt(x.value.timestamp)), 1)]), x.value.entityId ? (v(), b("div", rl, [l("p", il, r(d(o)("auditLog.operation.entity")), 1), l("p", ul, r(x.value.entityId), 1)])) : F("", !0), x.value.durationMs !== void 0 ? (v(), b("div", dl, [l("p", cl, r(d(o)("auditLog.operation.duration")), 1), l("p", fl, r(d(o)("auditLog.operation.durationValue", {
1572
1575
  ms: x.value.durationMs
1573
- })), 1)])) : D("", !0)])]), x.value.status === "failed" ? (g(), b("div", fl, [l("p", ml, i(d(o)("auditLog.operation.error")), 1), l("p", vl, i(x.value.errorMessage || "-"), 1)])) : D("", !0), l("div", pl, [l("div", gl, [l("p", hl, i(d(o)("auditLog.operation.changes")), 1)]), s[15] || (s[15] = l("hr", {
1576
+ })), 1)])) : F("", !0)])]), x.value.status === "failed" ? (v(), b("div", ml, [l("p", vl, r(d(o)("auditLog.operation.error")), 1), l("p", pl, r(x.value.errorMessage || "-"), 1)])) : F("", !0), l("div", gl, [l("div", hl, [l("p", bl, r(d(o)("auditLog.operation.changes")), 1)]), s[15] || (s[15] = l("hr", {
1574
1577
  class: "border-fm-color-border-default"
1575
- }, null, -1)), l("div", bl, [te.value.length ? (g(), b("div", yl, [(g(!0), b(J, null, re(te.value, (h) => (g(), b("div", {
1578
+ }, null, -1)), l("div", yl, [te.value.length ? (v(), b("div", _l, [(v(!0), b(J, null, re(te.value, (h) => (v(), b("div", {
1576
1579
  key: h.groupKey,
1577
1580
  class: "space-y-4 py-8 first:pt-0 last:pb-0"
1578
- }, [l("div", _l, [m(E, {
1581
+ }, [l("div", xl, [m(E, {
1579
1582
  variant: Y(h.type),
1580
1583
  label: L(h.type),
1581
1584
  compact: ""
1582
- }, null, 8, ["variant", "label"]), l("span", xl, i(h.displayKey), 1)]), l("div", Ll, [(g(!0), b(J, null, re(h.rows, (C) => (g(), b("p", {
1585
+ }, null, 8, ["variant", "label"]), l("span", Ll, r(h.displayKey), 1)]), l("div", Sl, [(v(!0), b(J, null, re(h.rows, (C) => (v(), b("p", {
1583
1586
  key: C.path,
1584
1587
  class: "break-all font-mono text-xs"
1585
- }, [C.type === "added" ? (g(), b("span", Sl, i(C.after ?? "—"), 1)) : C.type === "removed" ? (g(), b("span", wl, i(C.before ?? "—"), 1)) : (g(), b(J, {
1588
+ }, [C.type === "added" ? (v(), b("span", wl, r(C.after ?? "—"), 1)) : C.type === "removed" ? (v(), b("span", kl, r(C.before ?? "—"), 1)) : (v(), b(J, {
1586
1589
  key: 2
1587
- }, [l("span", kl, i(C.before ?? "—"), 1), s[14] || (s[14] = l("span", {
1590
+ }, [l("span", Il, r(C.before ?? "—"), 1), s[14] || (s[14] = l("span", {
1588
1591
  class: "text-fm-color-typo-secondary"
1589
- }, " → ", -1)), l("span", Il, i(C.after ?? "—"), 1)], 64))]))), 128))])]))), 128))])) : (g(), b("p", Ml, i(d(o)("auditLog.operation.noChanges")), 1))])]), M.value || V.value ? (g(), b("div", Ol, [l("button", {
1592
+ }, " → ", -1)), l("span", Ml, r(C.after ?? "—"), 1)], 64))]))), 128))])]))), 128))])) : (v(), b("p", Ol, r(d(o)("auditLog.operation.noChanges")), 1))])]), M.value || V.value ? (v(), b("div", Al, [l("button", {
1590
1593
  type: "button",
1591
1594
  class: "flex w-full items-center justify-between p-12 text-left",
1592
1595
  onClick: s[10] || (s[10] = (h) => P.value = !P.value)
1593
- }, [l("p", Al, i(d(o)("auditLog.operation.showData")), 1), m(He, {
1596
+ }, [l("p", Fl, r(d(o)("auditLog.operation.showData")), 1), m(He, {
1594
1597
  name: "keyboard_arrow_down",
1595
1598
  class: yo(["shrink-0 transition-transform", P.value ? "rotate-180" : ""])
1596
- }, null, 8, ["class"])]), P.value ? (g(), b(J, {
1599
+ }, null, 8, ["class"])]), P.value ? (v(), b(J, {
1597
1600
  key: 0
1598
1601
  }, [s[16] || (s[16] = l("hr", {
1599
1602
  class: "border-fm-color-border-default"
1600
- }, null, -1)), l("div", Fl, [M.value ? (g(), b("div", Dl, [l("p", jl, i(d(o)("auditLog.operation.before")), 1), l("pre", Tl, i(M.value), 1)])) : D("", !0), V.value ? (g(), b("div", Pl, [l("p", Cl, i(d(o)("auditLog.operation.after")), 1), l("pre", Vl, i(V.value), 1)])) : D("", !0)])], 64)) : D("", !0)])) : D("", !0)])) : D("", !0)]),
1603
+ }, null, -1)), l("div", Dl, [M.value ? (v(), b("div", jl, [l("p", Tl, r(d(o)("auditLog.operation.before")), 1), l("pre", Pl, r(M.value), 1)])) : F("", !0), V.value ? (v(), b("div", Cl, [l("p", Vl, r(d(o)("auditLog.operation.after")), 1), l("pre", El, r(V.value), 1)])) : F("", !0)])], 64)) : F("", !0)])) : F("", !0)])) : F("", !0)]),
1601
1604
  _: 1
1602
1605
  }, 8, ["header", "model-value"])], 64);
1603
1606
  };
1604
1607
  }
1605
- }), ea = /* @__PURE__ */ Lo(Ul, [["__scopeId", "data-v-c4118552"]]);
1608
+ }), ta = /* @__PURE__ */ Lo($l, [["__scopeId", "data-v-5b055e3b"]]);
1606
1609
  export {
1607
- ea as default
1610
+ ta as default
1608
1611
  };