@feedmepos/mf-hrm-portal 2.3.1 → 2.3.2-dev.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/{ApprovalCodeList-CcvVEriB.js → ApprovalCodeList-RKU5B8SO.js} +14 -15
  2. package/dist/{AuditLogList-C61-SnWG.js → AuditLogList-DuDCMjGR.js} +796 -720
  3. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-pL2zRc67.js +459 -0
  4. package/dist/EmployeeList-nrYsS5uz.js +896 -0
  5. package/dist/FormSection.vue_vue_type_script_setup_true_lang-7S2w36aY.js +90 -0
  6. package/dist/{GrantUserList-1ErIV7b7.js → GrantUserList-BSjeC4MC.js} +15 -16
  7. package/dist/{Main-R0qyd8Ea.js → Main-CpuHaXU6.js} +5 -5
  8. package/dist/Main-DbdoVLCE.js +101 -0
  9. package/dist/{Main-CD8OS1rM.js → Main-DtmCBbTR.js} +1005 -999
  10. package/dist/MyPosProfile-CsTCfGNT.js +360 -0
  11. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +126 -0
  12. package/dist/{PermissionSetList-ig3oxdhh.js → PermissionSetList-B1c-uGZO.js} +80 -80
  13. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Toq6qrLx.js +4208 -0
  14. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-D6Z9z_Yt.js +1831 -0
  15. package/dist/RoleForm.vue_vue_type_script_setup_true_lang-TWTVo_9Y.js +547 -0
  16. package/dist/RoleList-CwaGNsFy.js +265 -0
  17. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Dg7S6nFO.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-C2ekVXdR.js} +1 -1
  18. package/dist/{ScheduleGeneralPage-QYijA95u.js → ScheduleGeneralPage-BVtXmxtp.js} +2 -2
  19. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-Bnyqna_E.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DdsQ8v-5.js} +187 -186
  20. package/dist/{SchedulePage-BrBZmuMj.js → SchedulePage-3qksmT2I.js} +193 -205
  21. package/dist/{SchedulePositionPage-NCvNg8v5.js → SchedulePositionPage-DAU20KPZ.js} +3 -3
  22. package/dist/{SelectFilter-r-QOCO99.js → SelectFilter-BpzBwBmQ.js} +2 -3
  23. package/dist/TeamMemberList-Bdpm40i3.js +2087 -0
  24. package/dist/TimesheetList-CL_eJp2h.js +437 -0
  25. package/dist/{app-DKHtjxyC.js → app-DEZT4wdV.js} +7789 -3967
  26. package/dist/app.js +3 -3
  27. package/dist/{approval-code-BIpLingm.js → approval-code-BZTz5OXK.js} +4 -4
  28. package/dist/{dayjs.min-CNNMpacl.js → dayjs.min-B55I-uhI.js} +21 -21
  29. package/dist/employee-C6z5i6O4.js +172 -0
  30. package/dist/{grant-user-uZmvD_bw.js → grant-user-B2rYztyf.js} +2 -2
  31. package/dist/{iteration-DkcNkScw.js → index-Bfdseotz.js} +698 -726
  32. package/dist/iteration-CcXrOMQe.js +30 -0
  33. package/dist/{lodash-g-62RoFP.js → lodash-B8bqa6a9.js} +1 -1
  34. package/dist/member-grant-BIpKkuu8.js +54 -0
  35. package/dist/restaurant-ejyX2jEG.js +52 -0
  36. package/dist/role-C_t3DDlG.js +98 -0
  37. package/dist/rule-Ccopk8R_.js +843 -0
  38. package/dist/src/api/audit-log/index.d.ts +2 -0
  39. package/dist/src/api/employee/index.d.ts +1 -2
  40. package/dist/src/api/my-pos-profile/index.d.ts +3 -0
  41. package/dist/src/api/sso-provider/index.d.ts +5 -0
  42. package/dist/src/api/staff-invite/index.d.ts +16 -0
  43. package/dist/src/api/timesheet/index.d.ts +1 -1
  44. package/dist/src/components/CollapsibleWrapper.vue.d.ts +11 -3
  45. package/dist/src/components/form/SegmentedTabs.vue.d.ts +23 -0
  46. package/dist/src/composables/useMenuAccess.d.ts +56 -0
  47. package/dist/src/composables/useSsoProviders.d.ts +19 -0
  48. package/dist/src/composables/useStaffInviteProviders.d.ts +8 -0
  49. package/dist/src/helpers/member-grant.d.ts +36 -0
  50. package/dist/src/helpers/my-pos-profile.d.ts +37 -0
  51. package/dist/src/helpers/permission-set.d.ts +1 -102
  52. package/dist/src/helpers/pos-assignment-rows.d.ts +28 -0
  53. package/dist/src/helpers/rule.d.ts +2 -2
  54. package/dist/src/helpers/staff-invite.d.ts +54 -0
  55. package/dist/src/helpers/string.d.ts +10 -1
  56. package/dist/src/router/menu-access-guard.d.ts +17 -0
  57. package/dist/src/router/shared.d.ts +3 -1
  58. package/dist/src/stores/approval-code.d.ts +1 -1
  59. package/dist/src/stores/employee.d.ts +3 -9
  60. package/dist/src/stores/grant-user.d.ts +1 -1
  61. package/dist/src/stores/permission-assignment.d.ts +2 -2
  62. package/dist/src/stores/permission-set.d.ts +2 -2
  63. package/dist/src/stores/restaurant.d.ts +70 -10
  64. package/dist/src/stores/role.d.ts +2 -2
  65. package/dist/src/stores/team.d.ts +31 -1
  66. package/dist/src/stores/timesheet.d.ts +68 -53
  67. package/dist/src/types/my-pos-profile.d.ts +24 -0
  68. package/dist/src/types/sso-provider.d.ts +10 -0
  69. package/dist/src/types/staff-invite.d.ts +100 -0
  70. package/dist/src/types/team.d.ts +17 -1
  71. package/dist/src/types/timesheet.d.ts +3 -0
  72. package/dist/src/views/audit-log/locales/index.d.ts +40 -0
  73. package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
  74. package/dist/src/views/hr/locales/index.d.ts +24 -4
  75. package/dist/src/views/hr/role/RoleForm.vue.d.ts +29 -2
  76. package/dist/src/views/my-pos-profile/MyPosProfile.vue.d.ts +2 -0
  77. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +4 -0
  78. package/dist/src/views/my-pos-profile/locales/index.d.ts +236 -0
  79. package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +1 -1
  80. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1 -1
  81. package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -1
  82. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +1 -1
  83. package/dist/src/views/team/components/BasePermission.vue.d.ts +11 -0
  84. package/dist/src/views/team/components/ConditionPermission.vue.d.ts +11 -0
  85. package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +51 -0
  86. package/dist/src/views/team/{member/MemberInfo.vue.d.ts → components/MemberStatusBadge.vue.d.ts} +2 -2
  87. package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +21 -0
  88. package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +44 -0
  89. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +11 -0
  90. package/dist/src/views/team/locales/index.d.ts +716 -0
  91. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +48 -3
  92. package/dist/src/views/team/member/ExistingMemberNotice.vue.d.ts +11 -0
  93. package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +35 -0
  94. package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +19 -0
  95. package/dist/src/views/team/member/TeamMemberList.vue.d.ts +1 -0
  96. package/dist/string-DZQ1uNjn.js +22 -0
  97. package/dist/style.css +1 -1
  98. package/dist/timesheet-CZHcebqS.js +76 -0
  99. package/dist/tsconfig.app.tsbuildinfo +1 -1
  100. package/dist/{useAppStore-Bp0PwbAN.js → useAppStore-DfqsbhT2.js} +1 -1
  101. package/dist/{useLoading-sgL8DRUz.js → useLoading-CQnX5WjI.js} +1 -1
  102. package/dist/useMessage-_ywT_N9X.js +17 -0
  103. package/dist/{useReportPermissions-CcIHwTRI.js → useReportPermissions-kTjftFk7.js} +13 -13
  104. package/package.json +4 -4
  105. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BZ-ZDviW.js +0 -438
  106. package/dist/EmployeeList-Cucr2mxn.js +0 -776
  107. package/dist/FormItem.vue_vue_type_script_setup_true_lang-4XV2qPxn.js +0 -45
  108. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +0 -49
  109. package/dist/Main-B-F_cdM_.js +0 -96
  110. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +0 -243
  111. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ClG4YhnF.js +0 -4167
  112. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DaAx79pC.js +0 -35
  113. package/dist/RoleList-BqR_Vf8H.js +0 -740
  114. package/dist/TeamMemberList-B6ZnfKV0.js +0 -1154
  115. package/dist/TimesheetList-BvsUk6kd.js +0 -402
  116. package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-D3--3EhR.js +0 -58
  117. package/dist/employee-H2J0xRqJ.js +0 -209
  118. package/dist/restaurant-CHpkjUPy.js +0 -1880
  119. package/dist/role-CkxDtfst.js +0 -92
  120. package/dist/rule-BWvSqhBk.js +0 -783
  121. package/dist/string-VNuQNweN.js +0 -15
@@ -1,17 +1,17 @@
1
- import { defineComponent as Z, ref as v, computed as b, watch as ue, resolveComponent as h, createBlock as de, openBlock as ee, unref as r, withCtx as C, createVNode as m, createElementVNode as y, toDisplayString as G, nextTick as pe, onMounted as fe, createElementBlock as ve, Fragment as Se, h as S } from "vue";
2
- import { useI18n as se, useCoreStore as be } from "@feedmepos/mf-common";
3
- import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as H } from "@feedmepos/ui-library";
4
- import { v as Q, _ as he } from "./app-DKHtjxyC.js";
5
- import { _ as _e } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
6
- import { _ as ge } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
7
- import { u as ie, c as M, d as ae, p as Y, i as Pe, b as ye, m as A, n as we, o as xe, k as Fe, l as ke, v as Ce } from "./rule-BWvSqhBk.js";
8
- import { l as T } from "./lodash-g-62RoFP.js";
9
- import { c as Ie } from "./iteration-DkcNkScw.js";
1
+ import { defineComponent as Z, ref as v, computed as h, watch as ue, resolveComponent as b, createBlock as de, openBlock as ee, unref as r, withCtx as C, createVNode as m, createElementVNode as P, toDisplayString as J, nextTick as pe, onMounted as fe, createElementBlock as ve, Fragment as Se, h as S } from "vue";
2
+ import { useI18n as se, useCoreStore as he } from "@feedmepos/mf-common";
3
+ import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as Q } from "@feedmepos/ui-library";
4
+ import { v as X, _ as be, n as _e } from "./app-DEZT4wdV.js";
5
+ import { _ as ge } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
6
+ import { _ as ye } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
7
+ import { u as ie, P as M, a as ae, p as Y, $ as Pe, H as we, R as A, B as xe, x as Fe, T as ke, E as Ce, m as Ie } from "./rule-Ccopk8R_.js";
8
+ import { l as $ } from "./lodash-B8bqa6a9.js";
9
+ import "./index-Bfdseotz.js";
10
10
  import { u as Ve } from "./useDiscardConfirm-CzZSPyvh.js";
11
- import { u as Re } from "./useLoading-sgL8DRUz.js";
12
- import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ClG4YhnF.js";
13
- import { A as je } from "./restaurant-CHpkjUPy.js";
14
- const Te = { class: "flex w-full items-center justify-between" }, $e = { class: "fm-typo-en-title-md-600" }, Be = { class: "fm-typo-en-title-sm-600 mt-24" }, Le = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
11
+ import { u as Re } from "./useLoading-CQnX5WjI.js";
12
+ import { c as je } from "./iteration-CcXrOMQe.js";
13
+ import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Toq6qrLx.js";
14
+ const $e = { class: "flex w-full items-center justify-between" }, Be = { class: "fm-typo-en-title-md-600" }, Le = { class: "fm-typo-en-title-sm-600 mt-24" }, Te = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
15
15
  __name: "PermissionSetForm",
16
16
  props: {
17
17
  modelValue: {
@@ -20,18 +20,18 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
20
20
  }
21
21
  },
22
22
  setup(K, { expose: D }) {
23
- const o = K, { t: i } = se(), f = v(!1), $ = b(() => {
23
+ const o = K, { t: i } = se(), f = v(!1), B = h(() => {
24
24
  var e;
25
25
  return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.title") : i("permissionSet.form.create.title");
26
- }), I = v(), N = oe(), w = te(), { breakpoints: V } = ne(), R = Re(N), l = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), B = [(e) => !!e || i("permissionSet.form.nameRequired")], O = b(() => {
26
+ }), I = v(), N = oe(), w = te(), { breakpoints: V } = ne(), R = Re(N), l = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), L = [(e) => !!e || i("permissionSet.form.nameRequired")], q = h(() => {
27
27
  var e;
28
28
  return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.confirmButtonLabel") : i("permissionSet.form.create.confirmButtonLabel");
29
- }), q = b(
29
+ }), z = h(
30
30
  () => l.permissionSets.value.filter((e) => {
31
31
  var s;
32
32
  return e.id !== ((s = o.modelValue) == null ? void 0 : s.id);
33
33
  }).map((e) => ({ label: e.name, value: e.id }))
34
- ), E = b(
34
+ ), j = h(
35
35
  () => M(a.value, l.permissionSets.value)
36
36
  ), {
37
37
  fetchCustomReportPermissions: n,
@@ -39,61 +39,61 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
39
39
  isLoaded: c
40
40
  } = ae(), _ = new Set(
41
41
  Y.filter((e) => e.subject.startsWith(Pe)).map((e) => e.subject)
42
- ), g = b(() => {
42
+ ), g = h(() => {
43
43
  const e = new Set(_);
44
44
  for (const s of t.value) e.add(s.subject);
45
45
  return e;
46
- }), z = b(() => {
46
+ }), O = h(() => {
47
47
  const e = /* @__PURE__ */ new Set();
48
48
  for (const s of Y)
49
- s.category === Q.reports && e.add(s.subject);
49
+ s.category === X.reports && e.add(s.subject);
50
50
  for (const s of t.value)
51
- s.category === Q.reports && e.add(s.subject);
51
+ s.category === X.reports && e.add(s.subject);
52
52
  return e;
53
- }), P = v({ name: "", permissionSetIds: [], userPermissions: [] });
53
+ }), y = v({ name: "", permissionSetIds: [], userPermissions: [] });
54
54
  async function U() {
55
55
  var s, u;
56
56
  await pe(), f.value = !f.value, d.value = { ...o.modelValue }, a.value = ((s = o.modelValue) == null ? void 0 : s.permissionSetIds) ?? [];
57
57
  const e = ((u = o.modelValue) == null ? void 0 : u.permissions) ?? [];
58
- p.value = ye(
59
- A(E.value),
58
+ p.value = we(
59
+ A(j.value),
60
60
  e
61
- ), P.value = {
61
+ ), y.value = {
62
62
  name: d.value.name ?? "",
63
63
  permissionSetIds: [...a.value],
64
- userPermissions: Ie(p.value)
64
+ userPermissions: je(p.value)
65
65
  };
66
66
  }
67
67
  ue(f, async (e) => {
68
68
  e && await n();
69
69
  });
70
70
  const W = Ve(
71
- () => !T.isEqual(d.value.name ?? "", P.value.name) || !T.isEqual(a.value, P.value.permissionSetIds) || !T.isEqual(p.value, P.value.userPermissions),
71
+ () => !$.isEqual(d.value.name ?? "", y.value.name) || !$.isEqual(a.value, y.value.permissionSetIds) || !$.isEqual(p.value, y.value.userPermissions),
72
72
  () => {
73
73
  f.value = !1;
74
74
  }
75
75
  );
76
76
  function re() {
77
- const e = A(E.value), s = c.value ? g.value : _, u = we(p.value, s), x = xe(u, z.value), F = Fe(x);
78
- return ke(e, F);
77
+ const e = A(j.value), s = c.value ? g.value : _, u = xe(p.value, s), x = Fe(u, O.value), F = ke(x);
78
+ return Ce(e, F);
79
79
  }
80
- function J(e) {
80
+ function H(e) {
81
81
  return A(
82
82
  M(e, l.permissionSets.value)
83
83
  );
84
84
  }
85
- function X(e) {
86
- p.value = J(e);
85
+ function G(e) {
86
+ p.value = H(e);
87
87
  }
88
88
  function le(e) {
89
89
  const s = [...e ?? []];
90
- if (T.isEqual(s, a.value)) return;
91
- const u = !T.isEqual(
90
+ if ($.isEqual(s, a.value)) return;
91
+ const u = !$.isEqual(
92
92
  p.value,
93
- J(a.value)
93
+ H(a.value)
94
94
  );
95
95
  if (a.value = s, !u) {
96
- X(s);
96
+ G(s);
97
97
  return;
98
98
  }
99
99
  w.open({
@@ -109,16 +109,16 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
109
109
  close: !0
110
110
  }
111
111
  }).onPrimary(() => {
112
- X(s), w.close();
112
+ G(s), w.close();
113
113
  });
114
114
  }
115
115
  async function me() {
116
116
  var u, x;
117
- const e = await ((u = I.value) == null ? void 0 : u.validateInputsWithoutSubmit()), s = (x = be().currentBusiness.value) == null ? void 0 : x.id;
117
+ const e = await ((u = I.value) == null ? void 0 : u.validateInputsWithoutSubmit()), s = (x = he().currentBusiness.value) == null ? void 0 : x.id;
118
118
  !(e != null && e.length) && s && R.minor(async () => {
119
- var L;
119
+ var T;
120
120
  const F = re();
121
- if ((L = o.modelValue) != null && L.id) {
121
+ if ((T = o.modelValue) != null && T.id) {
122
122
  const k = {
123
123
  name: d.value.name,
124
124
  permissions: F,
@@ -141,17 +141,17 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
141
141
  return D({
142
142
  trigger: U
143
143
  }), (e, s) => {
144
- const u = h("FmIcon"), x = h("FmTextField"), F = h("FmSelect"), L = h("FmForm"), k = h("FmButton"), ce = h("FmSideSheet");
144
+ const u = b("FmIcon"), x = b("FmTextField"), F = b("FmSelect"), T = b("FmForm"), k = b("FmButton"), ce = b("FmSideSheet");
145
145
  return ee(), de(ce, {
146
146
  modelValue: f.value,
147
- "onUpdate:modelValue": s[2] || (s[2] = (j) => f.value = j),
147
+ "onUpdate:modelValue": s[2] || (s[2] = (E) => f.value = E),
148
148
  "max-width": 960,
149
149
  "close-button": !1,
150
150
  "onOn:clickedAway": r(W)
151
151
  }, {
152
152
  "side-sheet-header": C(() => [
153
- y("div", Te, [
154
- y("p", $e, G($.value), 1),
153
+ P("div", $e, [
154
+ P("p", Be, J(B.value), 1),
155
155
  m(u, {
156
156
  name: "close",
157
157
  size: "md",
@@ -161,9 +161,9 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
161
161
  ])
162
162
  ]),
163
163
  "side-sheet-footer": C(() => [
164
- y("div", Le, [
164
+ P("div", Te, [
165
165
  m(k, {
166
- label: O.value,
166
+ label: q.value,
167
167
  size: "md",
168
168
  variant: "primary",
169
169
  type: "submit",
@@ -178,34 +178,34 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
178
178
  ])
179
179
  ]),
180
180
  default: C(() => [
181
- m(L, {
181
+ m(T, {
182
182
  ref_key: "formRef",
183
183
  ref: I
184
184
  }, {
185
185
  default: C(() => [
186
186
  m(x, {
187
187
  modelValue: d.value.name,
188
- "onUpdate:modelValue": s[0] || (s[0] = (j) => d.value.name = j),
188
+ "onUpdate:modelValue": s[0] || (s[0] = (E) => d.value.name = E),
189
189
  label: r(i)("permissionSet.form.name"),
190
190
  placeholder: r(i)("permissionSet.form.namePlaceholder"),
191
- rules: B
191
+ rules: L
192
192
  }, null, 8, ["modelValue", "label", "placeholder"]),
193
193
  m(F, {
194
194
  "model-value": a.value,
195
195
  multiselect: "",
196
196
  searchable: "",
197
197
  "search-debounce": 300,
198
- items: q.value,
198
+ items: z.value,
199
199
  label: r(i)("permissionSet.form.includedSets"),
200
200
  placeholder: r(i)("permissionSet.form.includedSetsPlaceholder"),
201
201
  class: "mt-16",
202
202
  "onUpdate:modelValue": le
203
203
  }, null, 8, ["model-value", "items", "label", "placeholder"]),
204
- y("div", Be, G(r(i)("team.memberForm.permissions.title")), 1),
204
+ P("div", Le, J(r(i)("team.memberForm.permissions.title")), 1),
205
205
  m(Ee, {
206
206
  modelValue: p.value,
207
- "onUpdate:modelValue": s[1] || (s[1] = (j) => p.value = j),
208
- "inherit-permissions": E.value,
207
+ "onUpdate:modelValue": s[1] || (s[1] = (E) => p.value = E),
208
+ "inherit-permissions": j.value,
209
209
  class: "mt-16"
210
210
  }, null, 8, ["modelValue", "inherit-permissions"])
211
211
  ]),
@@ -216,26 +216,26 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
216
216
  }, 8, ["modelValue", "onOn:clickedAway"]);
217
217
  };
218
218
  }
219
- }), De = { class: "space-y-8" }, Ne = { class: "flex justify-end xs:px-16" }, Oe = { class: "flex flex-col h-full overflow-auto" }, es = /* @__PURE__ */ Z({
219
+ }), De = { class: "space-y-8" }, Ne = { class: "flex justify-end xs:px-16" }, qe = { class: "flex flex-col h-full overflow-auto" }, es = /* @__PURE__ */ Z({
220
220
  __name: "PermissionSetList",
221
221
  setup(K, { expose: D }) {
222
- const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), I = te(), { breakpoints: N } = ne(), w = v(""), V = b(() => {
222
+ const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), B = oe(), I = te(), { breakpoints: N } = ne(), w = v(""), V = h(() => {
223
223
  var n;
224
224
  return (n = d.value) == null ? void 0 : n.filter((t) => {
225
225
  const c = w.value.toLowerCase();
226
226
  return t.name.toLowerCase().includes(c);
227
227
  });
228
- }), R = v(), l = ie(), d = b(
228
+ }), R = v(), l = ie(), d = h(
229
229
  () => l.permissionSets.value
230
230
  ), a = v();
231
231
  async function p() {
232
232
  await l.readPermissionSets();
233
233
  }
234
- function B(n) {
234
+ function L(n) {
235
235
  var t;
236
236
  a.value = n, (t = R.value) == null || t.trigger();
237
237
  }
238
- const O = [
238
+ const q = [
239
239
  {
240
240
  accessorKey: "name",
241
241
  header: () => o("permissionSet.table.columns.name")
@@ -248,24 +248,24 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
248
248
  const t = n.row.original, c = M(
249
249
  [t.id],
250
250
  l.permissionSets.value
251
- ), _ = A(c), g = _.length, z = Ce(
251
+ ), _ = A(c), g = _.length, O = Ie(
252
252
  _,
253
253
  i.value
254
254
  );
255
255
  return S("div", { class: "flex items-center gap-8" }, [
256
256
  S("span", o("team.labels.allowed", { count: g })),
257
257
  S(
258
- H.FmTooltip,
258
+ Q.FmTooltip,
259
259
  { variant: "plain", placement: "top" },
260
260
  {
261
- default: () => S(H.FmIcon, {
261
+ default: () => S(Q.FmIcon, {
262
262
  name: "info",
263
263
  class: "cursor-pointer text-fm-color-neutral-gray-300"
264
264
  }),
265
265
  content: () => S("div", [
266
266
  o("team.labels.permission"),
267
- ...z.map(
268
- (P, U) => S("div", { key: `${P}-${U}` }, `- ${P}`)
267
+ ...O.map(
268
+ (y, U) => S("div", { key: `${y}-${U}` }, `- ${y}`)
269
269
  )
270
270
  ])
271
271
  }
@@ -289,12 +289,12 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
289
289
  onClick: (c) => c.stopPropagation()
290
290
  },
291
291
  [
292
- S(ge, {
292
+ S(ye, {
293
293
  items: [
294
- { label: o("common.update"), onClick: () => B(t) },
294
+ { label: o("common.update"), onClick: () => L(t) },
295
295
  {
296
296
  label: o("common.remove"),
297
- onClick: () => E(t),
297
+ onClick: () => j(t),
298
298
  itemClass: "text-fm-color-typo-error"
299
299
  }
300
300
  ]
@@ -305,11 +305,11 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
305
305
  enableSorting: !1
306
306
  }
307
307
  ];
308
- function q() {
308
+ function z() {
309
309
  var n;
310
310
  a.value = void 0, (n = R.value) == null || n.trigger();
311
311
  }
312
- async function E(n) {
312
+ async function j(n) {
313
313
  I.open({
314
314
  title: o("permissionSet.form.delete.title"),
315
315
  message: o("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
@@ -322,15 +322,15 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
322
322
  secondaryActions: { text: o("common.cancel"), close: !0 }
323
323
  }).onPrimary(async () => {
324
324
  try {
325
- await l.deletePermissionSet(n.id), $.open({
325
+ await l.deletePermissionSet(n.id), B.open({
326
326
  message: o("permissionSet.form.delete.successMessage", { permissionSetName: n.name }),
327
327
  type: "success"
328
328
  });
329
329
  } catch (t) {
330
- const c = t instanceof je && t.status === 409 ? t.message.includes("referenced by") ? o("permissionSet.form.delete.setReferencedConflictError", {
330
+ const c = t instanceof _e && t.status === 409 ? t.message.includes("referenced by") ? o("permissionSet.form.delete.setReferencedConflictError", {
331
331
  permissionSetName: n.name
332
332
  }) : o("permissionSet.form.delete.conflictError", { permissionSetName: n.name }) : t instanceof Error ? t.message : `${t}`;
333
- $.open({ message: c, type: "error" });
333
+ B.open({ message: c, type: "error" });
334
334
  }
335
335
  I.close();
336
336
  });
@@ -338,17 +338,17 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
338
338
  return fe(() => {
339
339
  p(), f();
340
340
  }), D({
341
- create: q
341
+ create: z
342
342
  }), (n, t) => {
343
- const c = h("FmSearch"), _ = h("FmTable");
343
+ const c = b("FmSearch"), _ = b("FmTable");
344
344
  return ee(), ve(Se, null, [
345
345
  m(Ae, {
346
346
  ref_key: "permissionSetFormRef",
347
347
  ref: R,
348
348
  "model-value": a.value
349
349
  }, null, 8, ["model-value"]),
350
- y("div", De, [
351
- y("div", Ne, [
350
+ P("div", De, [
351
+ P("div", Ne, [
352
352
  m(c, {
353
353
  modelValue: w.value,
354
354
  "onUpdate:modelValue": t[0] || (t[0] = (g) => w.value = g),
@@ -357,10 +357,10 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
357
357
  placeholder: r(o)("permissionSet.search.placeholder")
358
358
  }, null, 8, ["modelValue", "placeholder"])
359
359
  ]),
360
- m(he, null, {
360
+ m(be, null, {
361
361
  default: C(() => [
362
- y("div", Oe, [
363
- m(_e, {
362
+ P("div", qe, [
363
+ m(ge, {
364
364
  "is-loading": r(l).isLoading.value,
365
365
  "is-empty": V.value.length === 0,
366
366
  "collapse-at": !1,
@@ -369,14 +369,14 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
369
369
  }, {
370
370
  default: C(() => [
371
371
  m(_, {
372
- "column-defs": O,
372
+ "column-defs": q,
373
373
  "row-data": V.value,
374
374
  "page-size": V.value.length,
375
375
  loading: r(l).isLoading.value,
376
376
  "pin-header-row": "",
377
377
  "hide-footer": "",
378
378
  "shrink-at": !1,
379
- onRowClick: t[1] || (t[1] = (g) => B(g.original))
379
+ onRowClick: t[1] || (t[1] = (g) => L(g.original))
380
380
  }, null, 8, ["row-data", "page-size", "loading"])
381
381
  ]),
382
382
  _: 1