@feedmepos/mf-hrm-portal 2.4.2-dev → 2.4.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 (112) hide show
  1. package/dist/{ApprovalCodeList-DpNF0wL7.js → ApprovalCodeList-DGLPcQcv.js} +15 -14
  2. package/dist/{AuditLogList-D2bUFsuK.js → AuditLogList-ahJwTF7N.js} +12 -12
  3. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-IPkyxwIF.js +438 -0
  4. package/dist/EmployeeList-B18mlY4V.js +776 -0
  5. package/dist/FormItem.vue_vue_type_script_setup_true_lang-Dvo9AiKf.js +45 -0
  6. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
  7. package/dist/{GrantUserList-ClliuQ8h.js → GrantUserList-C8BbP99C.js} +16 -15
  8. package/dist/{Main-CBuOW87D.js → Main-BA29_N_p.js} +2280 -2274
  9. package/dist/{Main-DlPdGefL.js → Main-BN3b_yie.js} +5 -5
  10. package/dist/Main-Clux_qKN.js +96 -0
  11. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
  12. package/dist/{PermissionSetList-Dd0fkW0L.js → PermissionSetList-BSOJ8ftd.js} +108 -107
  13. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Hz_rFmbH.js +4181 -0
  14. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BwuBk683.js +35 -0
  15. package/dist/RoleList-EnfxydGa.js +740 -0
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-yJwTtFyF.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-yIdd8r7y.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-_cqIJY8R.js → ScheduleGeneralPage-CFUqm5-r.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-C6M76KUA.js → ScheduleModal.vue_vue_type_script_setup_true_lang-BmPrGRG2.js} +186 -187
  19. package/dist/{SchedulePage-DHkWe1KO.js → SchedulePage-DEFQwipO.js} +16 -16
  20. package/dist/{SchedulePositionPage-5JUJwlJc.js → SchedulePositionPage-CM5NS5-F.js} +3 -3
  21. package/dist/{SelectFilter-DWRvb1Yl.js → SelectFilter-DgjR5o5E.js} +1 -1
  22. package/dist/TeamMemberList-BKvhHLNG.js +1150 -0
  23. package/dist/TimesheetList-EQRMimP7.js +402 -0
  24. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_ffd7f807_lang-Co2GtU1N.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BumkwWvb.js} +7 -7
  25. package/dist/{app-BA3UHSk0.js → app-Bkc0pF3P.js} +3935 -7718
  26. package/dist/app.js +3 -3
  27. package/dist/{approval-code-BR4FD3sx.js → approval-code-BKMu1GDn.js} +1 -1
  28. package/dist/{dayjs.min-JyaQ6PUU.js → dayjs.min-CkI2q2aC.js} +34 -34
  29. package/dist/employee-BfkxCdPL.js +209 -0
  30. package/dist/{grant-user-DKUZdzrY.js → grant-user-ClN_vTOv.js} +1 -1
  31. package/dist/{index-CkC2sfPK.js → iteration-CsNIceUp.js} +558 -573
  32. package/dist/{lodash-BJMVlo9i.js → lodash-BgraJgCc.js} +1 -1
  33. package/dist/restaurant-CRNgiIa4.js +2685 -0
  34. package/dist/role-CZYSdVn2.js +91 -0
  35. package/dist/rule-_4roLZrG.js +780 -0
  36. package/dist/src/components/CollapsibleWrapper.vue.d.ts +3 -11
  37. package/dist/src/helpers/iteration.d.ts +2 -9
  38. package/dist/src/helpers/permission-set.d.ts +102 -1
  39. package/dist/src/helpers/rule.d.ts +2 -2
  40. package/dist/src/helpers/string.d.ts +1 -10
  41. package/dist/src/router/shared.d.ts +1 -3
  42. package/dist/src/stores/restaurant.d.ts +7 -7
  43. package/dist/src/stores/team.d.ts +0 -30
  44. package/dist/src/types/team.d.ts +1 -17
  45. package/dist/src/views/audit-log/locales/index.d.ts +0 -12
  46. package/dist/src/views/hr/locales/index.d.ts +0 -20
  47. package/dist/src/views/hr/role/RoleForm.vue.d.ts +2 -29
  48. package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +1 -1
  49. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1 -1
  50. package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -1
  51. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +1 -1
  52. package/dist/src/views/team/components/BasePermission.vue.d.ts +0 -11
  53. package/dist/src/views/team/components/ConditionPermission.vue.d.ts +0 -11
  54. package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -21
  55. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +0 -11
  56. package/dist/src/views/team/locales/index.d.ts +4 -716
  57. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -48
  58. package/dist/src/views/team/{components/MemberStatusBadge.vue.d.ts → member/MemberInfo.vue.d.ts} +2 -2
  59. package/dist/src/views/team/member/TeamMemberList.vue.d.ts +0 -1
  60. package/dist/string-VNuQNweN.js +15 -0
  61. package/dist/style.css +1 -1
  62. package/dist/tsconfig.app.tsbuildinfo +1 -1
  63. package/dist/{useAppStore-DiGaOhje.js → useAppStore-DYmF1kgk.js} +1 -1
  64. package/dist/{useLoading-DOcoObCD.js → useLoading-C2UKuAxD.js} +1 -1
  65. package/dist/{useReportPermissions-c9KGuXQq.js → useReportPermissions-BiaXRc0p.js} +22 -22
  66. package/package.json +2 -2
  67. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BjEJErcL.js +0 -459
  68. package/dist/EmployeeList-CBYU0R2j.js +0 -896
  69. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DsPLbLwQ.js +0 -90
  70. package/dist/Main-D9MQo2l1.js +0 -101
  71. package/dist/MyPosProfile-IAPSqlBP.js +0 -360
  72. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +0 -126
  73. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CjQCbJRu.js +0 -4212
  74. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DJnIFlKq.js +0 -1797
  75. package/dist/RoleForm.vue_vue_type_script_setup_true_lang-hE2OZwfO.js +0 -547
  76. package/dist/RoleList-zZHpt079.js +0 -274
  77. package/dist/TeamMemberList-C_4f5Djs.js +0 -2082
  78. package/dist/TimesheetList-B3Yx8cwt.js +0 -408
  79. package/dist/employee-n31b7QEp.js +0 -237
  80. package/dist/member-grant-B1V9g0Sb.js +0 -54
  81. package/dist/restaurant-BbSg6yOm.js +0 -49
  82. package/dist/role-iTqgtFqf.js +0 -91
  83. package/dist/rule-BJhti6BZ.js +0 -845
  84. package/dist/src/api/my-pos-profile/index.d.ts +0 -3
  85. package/dist/src/api/sso-provider/index.d.ts +0 -5
  86. package/dist/src/api/staff-invite/index.d.ts +0 -16
  87. package/dist/src/components/form/SegmentedTabs.vue.d.ts +0 -23
  88. package/dist/src/composables/useMenuAccess.d.ts +0 -56
  89. package/dist/src/composables/useSsoProviders.d.ts +0 -19
  90. package/dist/src/composables/useStaffInviteProviders.d.ts +0 -8
  91. package/dist/src/helpers/employee-merge.d.ts +0 -33
  92. package/dist/src/helpers/member-grant.d.ts +0 -36
  93. package/dist/src/helpers/my-pos-profile.d.ts +0 -37
  94. package/dist/src/helpers/pos-assignment-rows.d.ts +0 -28
  95. package/dist/src/helpers/restaurant-lookup.d.ts +0 -19
  96. package/dist/src/helpers/role-merge.d.ts +0 -11
  97. package/dist/src/helpers/staff-invite.d.ts +0 -54
  98. package/dist/src/router/menu-access-guard.d.ts +0 -17
  99. package/dist/src/types/my-pos-profile.d.ts +0 -24
  100. package/dist/src/types/sso-provider.d.ts +0 -10
  101. package/dist/src/types/staff-invite.d.ts +0 -100
  102. package/dist/src/views/hr/timesheet/timesheet-view.d.ts +0 -29
  103. package/dist/src/views/my-pos-profile/MyPosProfile.vue.d.ts +0 -2
  104. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +0 -4
  105. package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -236
  106. package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +0 -51
  107. package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -44
  108. package/dist/src/views/team/member/ExistingMemberNotice.vue.d.ts +0 -11
  109. package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +0 -35
  110. package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +0 -19
  111. package/dist/string-DZQ1uNjn.js +0 -22
  112. package/dist/useSsoProviders-CkhHtzRQ.js +0 -41
@@ -1,16 +1,17 @@
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 l, withCtx as k, 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";
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 k, 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
2
  import { useI18n as se } from "@feedmepos/mf-common";
3
- import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as Q } from "@feedmepos/ui-library";
4
- import { h as X, u as he, _ as be, s as _e } from "./app-BA3UHSk0.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 W, a as ae, p as Y, $ as Pe, H as we, R as B, B as xe, x as Fe, T as ke, E as Ce, m as Ie } from "./rule-BJhti6BZ.js";
8
- import { l as $ } from "./lodash-BJMVlo9i.js";
9
- import { c as Ve } from "./index-CkC2sfPK.js";
10
- import { u as Re } from "./useDiscardConfirm-CzZSPyvh.js";
11
- import { u as je } from "./useLoading-DOcoObCD.js";
12
- import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CjQCbJRu.js";
13
- const $e = { class: "flex w-full items-center justify-between" }, Le = { class: "fm-typo-en-title-md-600" }, Te = { class: "fm-typo-en-title-sm-600 mt-24" }, Be = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
3
+ import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as H } from "@feedmepos/ui-library";
4
+ import { d as Q, u as be, _ as he } from "./app-Bkc0pF3P.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 W, 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-_4roLZrG.js";
8
+ import { l as T } from "./lodash-BgraJgCc.js";
9
+ import { c as Ie } from "./iteration-CsNIceUp.js";
10
+ import { u as Ve } from "./useDiscardConfirm-CzZSPyvh.js";
11
+ import { u as Re } from "./useLoading-C2UKuAxD.js";
12
+ import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Hz_rFmbH.js";
13
+ import { A as je } from "./restaurant-CRNgiIa4.js";
14
+ const Te = { class: "flex w-full items-center justify-between" }, $e = { class: "fm-typo-en-title-md-600" }, Le = { class: "fm-typo-en-title-sm-600 mt-24" }, Ae = { class: "flex items-center justify-start gap-8" }, Be = /* @__PURE__ */ Z({
14
15
  __name: "PermissionSetForm",
15
16
  props: {
16
17
  modelValue: {
@@ -18,81 +19,81 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
18
19
  default: () => ({})
19
20
  }
20
21
  },
21
- setup(M, { expose: A }) {
22
- const o = M, { t: i } = se(), f = v(!1), L = h(() => {
22
+ setup(M, { expose: B }) {
23
+ const o = M, { t: i } = se(), f = v(!1), $ = b(() => {
23
24
  var e;
24
25
  return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.title") : i("permissionSet.form.create.title");
25
- }), C = v(), D = oe(), w = te(), { breakpoints: I } = ne(), V = je(D), r = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), T = [(e) => !!e || i("permissionSet.form.nameRequired")], N = h(() => {
26
+ }), C = v(), D = oe(), w = te(), { breakpoints: I } = ne(), V = Re(D), l = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), L = [(e) => !!e || i("permissionSet.form.nameRequired")], N = b(() => {
26
27
  var e;
27
28
  return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.confirmButtonLabel") : i("permissionSet.form.create.confirmButtonLabel");
28
- }), q = h(
29
- () => r.permissionSets.value.filter((e) => {
29
+ }), O = b(
30
+ () => l.permissionSets.value.filter((e) => {
30
31
  var s;
31
32
  return e.id !== ((s = o.modelValue) == null ? void 0 : s.id);
32
33
  }).map((e) => ({ label: e.name, value: e.id }))
33
- ), R = h(
34
- () => W(a.value, r.permissionSets.value)
34
+ ), R = b(
35
+ () => W(a.value, l.permissionSets.value)
35
36
  ), {
36
37
  fetchCustomReportPermissions: n,
37
38
  customReportPermissions: t,
38
39
  isLoaded: c
39
40
  } = ae(), _ = new Set(
40
41
  Y.filter((e) => e.subject.startsWith(Pe)).map((e) => e.subject)
41
- ), g = h(() => {
42
+ ), g = b(() => {
42
43
  const e = new Set(_);
43
44
  for (const s of t.value) e.add(s.subject);
44
45
  return e;
45
- }), z = h(() => {
46
+ }), q = b(() => {
46
47
  const e = /* @__PURE__ */ new Set();
47
48
  for (const s of Y)
48
- s.category === X.reports && e.add(s.subject);
49
+ s.category === Q.reports && e.add(s.subject);
49
50
  for (const s of t.value)
50
- s.category === X.reports && e.add(s.subject);
51
+ s.category === Q.reports && e.add(s.subject);
51
52
  return e;
52
- }), y = v({ name: "", permissionSetIds: [], userPermissions: [] });
53
- async function O() {
53
+ }), P = v({ name: "", permissionSetIds: [], userPermissions: [] });
54
+ async function z() {
54
55
  var s, u;
55
56
  await pe(), f.value = !f.value, d.value = { ...o.modelValue }, a.value = ((s = o.modelValue) == null ? void 0 : s.permissionSetIds) ?? [];
56
57
  const e = ((u = o.modelValue) == null ? void 0 : u.permissions) ?? [];
57
- p.value = we(
58
- B(R.value),
58
+ p.value = ye(
59
+ A(R.value),
59
60
  e
60
- ), y.value = {
61
+ ), P.value = {
61
62
  name: d.value.name ?? "",
62
63
  permissionSetIds: [...a.value],
63
- userPermissions: Ve(p.value)
64
+ userPermissions: Ie(p.value)
64
65
  };
65
66
  }
66
67
  ue(f, async (e) => {
67
68
  e && await n();
68
69
  });
69
- const U = Re(
70
- () => !$.isEqual(d.value.name ?? "", y.value.name) || !$.isEqual(a.value, y.value.permissionSetIds) || !$.isEqual(p.value, y.value.userPermissions),
70
+ const U = 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
72
  () => {
72
73
  f.value = !1;
73
74
  }
74
75
  );
75
- function le() {
76
- const e = B(R.value), s = c.value ? g.value : _, u = xe(p.value, s), x = Fe(u, z.value), F = ke(x);
77
- return Ce(e, F);
76
+ function re() {
77
+ const e = A(R.value), s = c.value ? g.value : _, u = we(p.value, s), x = xe(u, q.value), F = Fe(x);
78
+ return ke(e, F);
78
79
  }
79
80
  function K(e) {
80
- return B(
81
- W(e, r.permissionSets.value)
81
+ return A(
82
+ W(e, l.permissionSets.value)
82
83
  );
83
84
  }
84
- function H(e) {
85
+ function J(e) {
85
86
  p.value = K(e);
86
87
  }
87
- function re(e) {
88
+ function le(e) {
88
89
  const s = [...e ?? []];
89
- if ($.isEqual(s, a.value)) return;
90
- const u = !$.isEqual(
90
+ if (T.isEqual(s, a.value)) return;
91
+ const u = !T.isEqual(
91
92
  p.value,
92
93
  K(a.value)
93
94
  );
94
95
  if (a.value = s, !u) {
95
- H(s);
96
+ J(s);
96
97
  return;
97
98
  }
98
99
  w.open({
@@ -108,102 +109,102 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
108
109
  close: !0
109
110
  }
110
111
  }).onPrimary(() => {
111
- H(s), w.close();
112
+ J(s), w.close();
112
113
  });
113
114
  }
114
115
  async function me() {
115
116
  var u;
116
- const e = await ((u = C.value) == null ? void 0 : u.validateInputsWithoutSubmit()), s = he().id.value;
117
+ const e = await ((u = C.value) == null ? void 0 : u.validateInputsWithoutSubmit()), s = be().id.value;
117
118
  !(e != null && e.length) && s && V.minor(async () => {
118
119
  var F;
119
- const x = le();
120
+ const x = re();
120
121
  if ((F = o.modelValue) != null && F.id) {
121
- const j = {
122
+ const E = {
122
123
  name: d.value.name,
123
124
  permissions: x,
124
125
  permissionSetIds: a.value,
125
126
  businessId: d.value.businessId
126
127
  };
127
- await r.updatePermissionSet(o.modelValue.id, j);
128
+ await l.updatePermissionSet(o.modelValue.id, E);
128
129
  } else {
129
- const j = {
130
+ const E = {
130
131
  name: d.value.name,
131
132
  businessId: s,
132
133
  permissions: x,
133
134
  permissionSetIds: a.value
134
135
  };
135
- await r.createPermissionSet(j);
136
+ await l.createPermissionSet(E);
136
137
  }
137
138
  f.value = !1;
138
139
  });
139
140
  }
140
- return A({
141
- trigger: O
141
+ return B({
142
+ trigger: z
142
143
  }), (e, s) => {
143
- const u = b("FmIcon"), x = b("FmTextField"), F = b("FmSelect"), j = b("FmForm"), G = b("FmButton"), ce = b("FmSideSheet");
144
+ const u = h("FmIcon"), x = h("FmTextField"), F = h("FmSelect"), E = h("FmForm"), X = h("FmButton"), ce = h("FmSideSheet");
144
145
  return ee(), de(ce, {
145
146
  modelValue: f.value,
146
- "onUpdate:modelValue": s[2] || (s[2] = (E) => f.value = E),
147
+ "onUpdate:modelValue": s[2] || (s[2] = (j) => f.value = j),
147
148
  "max-width": 960,
148
149
  "close-button": !1,
149
- "onOn:clickedAway": l(U)
150
+ "onOn:clickedAway": r(U)
150
151
  }, {
151
152
  "side-sheet-header": k(() => [
152
- P("div", $e, [
153
- P("p", Le, J(L.value), 1),
153
+ y("div", Te, [
154
+ y("p", $e, G($.value), 1),
154
155
  m(u, {
155
156
  name: "close",
156
157
  size: "md",
157
158
  class: "cursor-pointer",
158
- onClick: l(U)
159
+ onClick: r(U)
159
160
  }, null, 8, ["onClick"])
160
161
  ])
161
162
  ]),
162
163
  "side-sheet-footer": k(() => [
163
- P("div", Be, [
164
- m(G, {
164
+ y("div", Ae, [
165
+ m(X, {
165
166
  label: N.value,
166
167
  size: "md",
167
168
  variant: "primary",
168
169
  type: "submit",
169
170
  onClick: me
170
171
  }, null, 8, ["label"]),
171
- m(G, {
172
- label: l(i)("common.cancel"),
172
+ m(X, {
173
+ label: r(i)("common.cancel"),
173
174
  size: "md",
174
175
  variant: "secondary",
175
- onClick: l(U)
176
+ onClick: r(U)
176
177
  }, null, 8, ["label", "onClick"])
177
178
  ])
178
179
  ]),
179
180
  default: k(() => [
180
- m(j, {
181
+ m(E, {
181
182
  ref_key: "formRef",
182
183
  ref: C
183
184
  }, {
184
185
  default: k(() => [
185
186
  m(x, {
186
187
  modelValue: d.value.name,
187
- "onUpdate:modelValue": s[0] || (s[0] = (E) => d.value.name = E),
188
- label: l(i)("permissionSet.form.name"),
189
- placeholder: l(i)("permissionSet.form.namePlaceholder"),
190
- rules: T
188
+ "onUpdate:modelValue": s[0] || (s[0] = (j) => d.value.name = j),
189
+ label: r(i)("permissionSet.form.name"),
190
+ placeholder: r(i)("permissionSet.form.namePlaceholder"),
191
+ rules: L
191
192
  }, null, 8, ["modelValue", "label", "placeholder"]),
192
193
  m(F, {
193
194
  "model-value": a.value,
194
195
  multiselect: "",
195
196
  searchable: "",
196
197
  "search-debounce": 300,
197
- items: q.value,
198
- label: l(i)("permissionSet.form.includedSets"),
199
- placeholder: l(i)("permissionSet.form.includedSetsPlaceholder"),
198
+ items: O.value,
199
+ label: r(i)("permissionSet.form.includedSets"),
200
+ placeholder: r(i)("permissionSet.form.includedSetsPlaceholder"),
200
201
  class: "mt-16",
201
- "onUpdate:modelValue": re
202
+ "onUpdate:modelValue": le
202
203
  }, null, 8, ["model-value", "items", "label", "placeholder"]),
203
- P("div", Te, J(l(i)("team.memberForm.permissions.title")), 1),
204
+ y("div", Le, G(r(i)("team.memberForm.permissions.title")), 1),
204
205
  m(Ee, {
205
206
  modelValue: p.value,
206
- "onUpdate:modelValue": s[1] || (s[1] = (E) => p.value = E),
207
+ "onUpdate:modelValue": s[1] || (s[1] = (j) => p.value = j),
207
208
  "inherit-permissions": R.value,
208
209
  class: "mt-16"
209
210
  }, null, 8, ["modelValue", "inherit-permissions"])
@@ -215,22 +216,22 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
215
216
  }, 8, ["modelValue", "onOn:clickedAway"]);
216
217
  };
217
218
  }
218
- }), De = { class: "space-y-8" }, Ne = { class: "flex justify-end xs:px-16" }, qe = { class: "flex flex-col h-full overflow-auto" }, Ze = /* @__PURE__ */ Z({
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
220
  __name: "PermissionSetList",
220
- setup(M, { expose: A }) {
221
- const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), L = oe(), C = te(), { breakpoints: D } = ne(), w = v(""), I = h(() => {
221
+ setup(M, { expose: B }) {
222
+ const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), C = te(), { breakpoints: D } = ne(), w = v(""), I = b(() => {
222
223
  var n;
223
224
  return (n = d.value) == null ? void 0 : n.filter((t) => {
224
225
  const c = w.value.toLowerCase();
225
226
  return t.name.toLowerCase().includes(c);
226
227
  });
227
- }), V = v(), r = ie(), d = h(
228
- () => r.permissionSets.value
228
+ }), V = v(), l = ie(), d = b(
229
+ () => l.permissionSets.value
229
230
  ), a = v();
230
231
  async function p() {
231
- await r.readPermissionSets();
232
+ await l.readPermissionSets();
232
233
  }
233
- function T(n) {
234
+ function L(n) {
234
235
  var t;
235
236
  a.value = n, (t = V.value) == null || t.trigger();
236
237
  }
@@ -246,25 +247,25 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
246
247
  cell(n) {
247
248
  const t = n.row.original, c = W(
248
249
  [t.id],
249
- r.permissionSets.value
250
- ), _ = B(c), g = _.length, z = Ie(
250
+ l.permissionSets.value
251
+ ), _ = A(c), g = _.length, q = Ce(
251
252
  _,
252
253
  i.value
253
254
  );
254
255
  return S("div", { class: "flex items-center gap-8" }, [
255
256
  S("span", o("team.labels.allowed", { count: g })),
256
257
  S(
257
- Q.FmTooltip,
258
+ H.FmTooltip,
258
259
  { variant: "plain", placement: "top" },
259
260
  {
260
- default: () => S(Q.FmIcon, {
261
+ default: () => S(H.FmIcon, {
261
262
  name: "info",
262
263
  class: "cursor-pointer text-fm-color-neutral-gray-300"
263
264
  }),
264
265
  content: () => S("div", [
265
266
  o("team.labels.permission"),
266
- ...z.map(
267
- (y, O) => S("div", { key: `${y}-${O}` }, `- ${y}`)
267
+ ...q.map(
268
+ (P, z) => S("div", { key: `${P}-${z}` }, `- ${P}`)
268
269
  )
269
270
  ])
270
271
  }
@@ -288,9 +289,9 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
288
289
  onClick: (c) => c.stopPropagation()
289
290
  },
290
291
  [
291
- S(ye, {
292
+ S(ge, {
292
293
  items: [
293
- { label: o("common.update"), onClick: () => T(t) },
294
+ { label: o("common.update"), onClick: () => L(t) },
294
295
  {
295
296
  label: o("common.remove"),
296
297
  onClick: () => R(t),
@@ -304,7 +305,7 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
304
305
  enableSorting: !1
305
306
  }
306
307
  ];
307
- function q() {
308
+ function O() {
308
309
  var n;
309
310
  a.value = void 0, (n = V.value) == null || n.trigger();
310
311
  }
@@ -321,61 +322,61 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
321
322
  secondaryActions: { text: o("common.cancel"), close: !0 }
322
323
  }).onPrimary(async () => {
323
324
  try {
324
- await r.deletePermissionSet(n.id), L.open({
325
+ await l.deletePermissionSet(n.id), $.open({
325
326
  message: o("permissionSet.form.delete.successMessage", { permissionSetName: n.name }),
326
327
  type: "success"
327
328
  });
328
329
  } catch (t) {
329
- const c = t instanceof _e && t.status === 409 ? t.message.includes("referenced by") ? o("permissionSet.form.delete.setReferencedConflictError", {
330
+ const c = t instanceof je && t.status === 409 ? t.message.includes("referenced by") ? o("permissionSet.form.delete.setReferencedConflictError", {
330
331
  permissionSetName: n.name
331
332
  }) : o("permissionSet.form.delete.conflictError", { permissionSetName: n.name }) : t instanceof Error ? t.message : `${t}`;
332
- L.open({ message: c, type: "error" });
333
+ $.open({ message: c, type: "error" });
333
334
  }
334
335
  C.close();
335
336
  });
336
337
  }
337
338
  return fe(() => {
338
339
  p(), f();
339
- }), A({
340
- create: q
340
+ }), B({
341
+ create: O
341
342
  }), (n, t) => {
342
- const c = b("FmSearch"), _ = b("FmTable");
343
+ const c = h("FmSearch"), _ = h("FmTable");
343
344
  return ee(), ve(Se, null, [
344
- m(Ae, {
345
+ m(Be, {
345
346
  ref_key: "permissionSetFormRef",
346
347
  ref: V,
347
348
  "model-value": a.value
348
349
  }, null, 8, ["model-value"]),
349
- P("div", De, [
350
- P("div", Ne, [
350
+ y("div", De, [
351
+ y("div", Ne, [
351
352
  m(c, {
352
353
  modelValue: w.value,
353
354
  "onUpdate:modelValue": t[0] || (t[0] = (g) => w.value = g),
354
355
  class: "w-[320px] xs:w-full",
355
356
  autofocus: "",
356
- placeholder: l(o)("permissionSet.search.placeholder")
357
+ placeholder: r(o)("permissionSet.search.placeholder")
357
358
  }, null, 8, ["modelValue", "placeholder"])
358
359
  ]),
359
- m(be, null, {
360
+ m(he, null, {
360
361
  default: k(() => [
361
- P("div", qe, [
362
- m(ge, {
363
- "is-loading": l(r).isLoading.value,
362
+ y("div", Oe, [
363
+ m(_e, {
364
+ "is-loading": r(l).isLoading.value,
364
365
  "is-empty": I.value.length === 0,
365
366
  "collapse-at": !1,
366
- title: l(o)("permissionSet.noData.title"),
367
- subtitle: l(o)("permissionSet.noData.subtitle")
367
+ title: r(o)("permissionSet.noData.title"),
368
+ subtitle: r(o)("permissionSet.noData.subtitle")
368
369
  }, {
369
370
  default: k(() => [
370
371
  m(_, {
371
372
  "column-defs": N,
372
373
  "row-data": I.value,
373
374
  "page-size": I.value.length,
374
- loading: l(r).isLoading.value,
375
+ loading: r(l).isLoading.value,
375
376
  "pin-header-row": "",
376
377
  "hide-footer": "",
377
378
  "shrink-at": !1,
378
- onRowClick: t[1] || (t[1] = (g) => T(g.original))
379
+ onRowClick: t[1] || (t[1] = (g) => L(g.original))
379
380
  }, null, 8, ["row-data", "page-size", "loading"])
380
381
  ]),
381
382
  _: 1
@@ -390,5 +391,5 @@ const $e = { class: "flex w-full items-center justify-between" }, Le = { class:
390
391
  }
391
392
  });
392
393
  export {
393
- Ze as default
394
+ es as default
394
395
  };