@feedmepos/mf-hrm-portal 2.0.20-dev.2 → 2.0.20-dev.3

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 (23) hide show
  1. package/dist/{AuditLogList-ChxAzO74.js → AuditLogList-7E8iWQWx.js} +4 -4
  2. package/dist/{EmployeeList-Cs-Mn6UA.js → EmployeeList-DyNW3cUo.js} +214 -206
  3. package/dist/{Main-DcvmP7s-.js → Main-BLJyOcEv.js} +4 -4
  4. package/dist/{Main-B9_TyRDo.js → Main-BZjZxFHp.js} +9 -9
  5. package/dist/{Main-CdHW4UkN.js → Main-C9lMH4EN.js} +5 -5
  6. package/dist/{PermissionSetList-VFVS0g0v.js → PermissionSetList-BuCp14Os.js} +115 -107
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Dr3R9JjS.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BQSDnH-Z.js} +608 -595
  8. package/dist/{RoleList-BZ6RZvm2.js → RoleList-L8L1xmJ2.js} +201 -193
  9. package/dist/{TeamMemberList-C-zhFauD.js → TeamMemberList-DEN9rHqb.js} +421 -412
  10. package/dist/{TimesheetList-CZex54an.js → TimesheetList-D88u0GFn.js} +6 -6
  11. package/dist/{app-CLL3p27X.js → app-g_SrJtfC.js} +4 -4
  12. package/dist/app.js +1 -1
  13. package/dist/{dayjs.min-CDt1i9vl.js → dayjs.min-BGHzwXCt.js} +1 -1
  14. package/dist/{employee-BpRvjWNh.js → employee-Dep-q_aU.js} +3 -3
  15. package/dist/{iteration-BVjUzYL5.js → iteration-Dc-Bz5bA.js} +1 -1
  16. package/dist/{lodash-CrwgACp2.js → lodash-Cxw1GZ6L.js} +1 -1
  17. package/dist/{rule-BlQ5YZ9Z.js → rule-ClRtpdqO.js} +2 -2
  18. package/dist/{timesheet-jFs4GTAL.js → timesheet-CZoSvFYT.js} +2 -2
  19. package/dist/tsconfig.app.tsbuildinfo +1 -1
  20. package/dist/{useAppStore-DMAL8VFY.js → useAppStore-CTBRpqmO.js} +1 -1
  21. package/dist/{useLoading-AFTjRLyO.js → useLoading-XvrLj1VM.js} +1 -1
  22. package/dist/{useReportPermissions-hODG0Xx3.js → useReportPermissions-nivbQm9V.js} +3 -3
  23. package/package.json +1 -1
@@ -2,14 +2,14 @@ import { ref as I, defineComponent as Q, computed as F, watch as ie, resolveComp
2
2
  import { useI18n as X, useCoreStore as ye } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Y, components as M, useDialog as Ue, useBreakpoints as he, FmButtonVariant as q } from "@feedmepos/ui-library";
4
4
  import { _ as xe } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
5
- import { u as Z } from "./useAppStore-DMAL8VFY.js";
6
- import { g as z, a as be, b as H, u as ee } from "./iteration-BVjUzYL5.js";
5
+ import { u as Z } from "./useAppStore-CTBRpqmO.js";
6
+ import { g as z, a as be, b as H, u as ee } from "./iteration-Dc-Bz5bA.js";
7
7
  import { defineStore as ke } from "pinia";
8
8
  import { S as D } from "./SelectFilter-DUj7GBtT.js";
9
- import { _ as we } from "./app-CLL3p27X.js";
9
+ import { _ as we } from "./app-g_SrJtfC.js";
10
10
  import { _ as ce, u as Fe, H as Ve } from "./FormItem.vue_vue_type_script_setup_true_lang-D3MOFOUI.js";
11
11
  import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
12
- import { u as ue } from "./useLoading-AFTjRLyO.js";
12
+ import { u as ue } from "./useLoading-XvrLj1VM.js";
13
13
  import { _ as Ie } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
14
14
  const W = {
15
15
  async getGrantUsers() {
@@ -4,17 +4,17 @@ import { useCoreStore as cf, useI18n as hf } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as uf } from "@feedmepos/ui-library";
5
5
  import { _ as vf } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
6
6
  import { _ as pf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
7
- import { u as df } from "./iteration-BVjUzYL5.js";
8
- import { u as mf } from "./useAppStore-DMAL8VFY.js";
7
+ import { u as df } from "./iteration-Dc-Bz5bA.js";
8
+ import { u as mf } from "./useAppStore-CTBRpqmO.js";
9
9
  /* empty css */
10
- import "./employee-BpRvjWNh.js";
11
- import "./lodash-CrwgACp2.js";
10
+ import "./employee-Dep-q_aU.js";
11
+ import "./lodash-Cxw1GZ6L.js";
12
12
  /* empty css */
13
- import { R as vt } from "./app-CLL3p27X.js";
14
- import "./rule-BlQ5YZ9Z.js";
15
- import "./useReportPermissions-hODG0Xx3.js";
16
- import "./dayjs.min-CDt1i9vl.js";
17
- import "./timesheet-jFs4GTAL.js";
13
+ import { R as vt } from "./app-g_SrJtfC.js";
14
+ import "./rule-ClRtpdqO.js";
15
+ import "./useReportPermissions-nivbQm9V.js";
16
+ import "./dayjs.min-BGHzwXCt.js";
17
+ import "./timesheet-CZoSvFYT.js";
18
18
  var In = {};
19
19
  /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
20
20
  var Zt = {};
@@ -3,12 +3,12 @@ import { useRouter as y, useRoute as g } from "vue-router";
3
3
  import { useI18n as k } from "@feedmepos/mf-common";
4
4
  import { _ as F } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
5
  import { _ as N } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
6
- import { u as h } from "./iteration-BVjUzYL5.js";
6
+ import { u as h } from "./iteration-Dc-Bz5bA.js";
7
7
  import "@feedmepos/ui-library";
8
- import "./rule-BlQ5YZ9Z.js";
9
- import "./lodash-CrwgACp2.js";
10
- import "./useAppStore-DMAL8VFY.js";
11
- import { R as v } from "./app-CLL3p27X.js";
8
+ import "./rule-ClRtpdqO.js";
9
+ import "./lodash-Cxw1GZ6L.js";
10
+ import "./useAppStore-CTBRpqmO.js";
11
+ import { R as v } from "./app-g_SrJtfC.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  const w = { class: "space-y-24" }, Q = /* @__PURE__ */ T({
@@ -1,15 +1,15 @@
1
- import { defineComponent as H, ref as d, computed as b, watch as ne, resolveComponent as h, createBlock as M, openBlock as L, unref as r, withCtx as j, createVNode as p, createElementVNode as A, toDisplayString as ie, nextTick as ae, onMounted as le, createElementBlock as re, Fragment as me, h as S } from "vue";
2
- import { useI18n as Q, useCoreStore as ce } from "@feedmepos/mf-common";
3
- import { useSnackbar as Y, useDialog as ue, useBreakpoints as de, components as J } from "@feedmepos/ui-library";
4
- import { _ as pe } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
5
- import { u as fe, _ as ve } from "./useDiscardConfirm-DPhEV6v0.js";
6
- import { u as Z, c as ee, d as se, p as X, i as Se, b as be, m as O, l as he, n as Pe, s as _e, o as ge, v as ye } from "./rule-BlQ5YZ9Z.js";
7
- import { l as q } from "./lodash-CrwgACp2.js";
8
- import { d as we, A as Fe } from "./iteration-BVjUzYL5.js";
9
- import { u as ke } from "./useLoading-AFTjRLyO.js";
10
- import { b as G } from "./app-CLL3p27X.js";
11
- import { _ as xe } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-Dr3R9JjS.js";
12
- const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-center justify-start gap-8" }, Re = /* @__PURE__ */ H({
1
+ import { defineComponent as H, ref as p, computed as _, watch as ie, resolveComponent as f, createBlock as M, openBlock as A, unref as r, withCtx as j, createVNode as u, createElementVNode as E, toDisplayString as ae, nextTick as le, onMounted as re, createElementBlock as me, Fragment as ce, h as b } from "vue";
2
+ import { useI18n as Q, useCoreStore as ue } from "@feedmepos/mf-common";
3
+ import { useSnackbar as Y, useDialog as de, useBreakpoints as pe, components as J } from "@feedmepos/ui-library";
4
+ import { _ as fe } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
5
+ import { u as ve, _ as Se } from "./useDiscardConfirm-DPhEV6v0.js";
6
+ import { u as Z, c as ee, d as se, p as X, i as be, b as _e, m as D, l as he, n as Pe, s as ge, o as ye, v as we } from "./rule-ClRtpdqO.js";
7
+ import { l as q } from "./lodash-Cxw1GZ6L.js";
8
+ import { d as Fe, A as ke } from "./iteration-Dc-Bz5bA.js";
9
+ import { u as xe } from "./useLoading-XvrLj1VM.js";
10
+ import { b as G } from "./app-g_SrJtfC.js";
11
+ import { _ as Ce } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BQSDnH-Z.js";
12
+ const Ve = { class: "flex w-full items-center justify-between" }, Re = { class: "fm-typo-en-title-md-600" }, Ie = { class: "flex items-center justify-start gap-8" }, je = /* @__PURE__ */ H({
13
13
  __name: "PermissionSetForm",
14
14
  props: {
15
15
  modelValue: {
@@ -17,116 +17,124 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
17
17
  default: () => ({})
18
18
  }
19
19
  },
20
- setup(K, { expose: D }) {
21
- const s = K, { t: a } = Q(), f = d(!1), B = b(() => {
20
+ setup(K, { expose: N }) {
21
+ const s = K, { t: a } = Q(), v = p(!1), B = _(() => {
22
22
  var e;
23
23
  return (e = s.modelValue) != null && e.id ? a("permissionSet.form.update.title") : a("permissionSet.form.create.title");
24
- }), x = d(), N = Y(), V = ke(N), P = Z(), l = d({ ...s.modelValue }), i = d([]), c = d([]), C = [(e) => !!e || a("permissionSet.form.nameRequired")], z = b(() => {
24
+ }), C = p(), O = Y(), V = xe(O), h = Z(), l = p({ ...s.modelValue }), i = p([]), c = p([]), R = [(e) => !!e || a("permissionSet.form.nameRequired")], z = _(() => {
25
25
  var e;
26
26
  return (e = s.modelValue) != null && e.id ? a("permissionSet.form.update.confirmButtonLabel") : a("permissionSet.form.create.confirmButtonLabel");
27
- }), T = b(
28
- () => P.permissionSets.value.filter((e) => {
27
+ }), T = _(
28
+ () => h.permissionSets.value.filter((e) => {
29
29
  var o;
30
30
  return e.id !== ((o = s.modelValue) == null ? void 0 : o.id);
31
31
  }).map((e) => ({ label: e.name, value: e.id }))
32
- ), g = b(
33
- () => ee(i.value, P.permissionSets.value)
32
+ ), g = _(
33
+ () => ee(i.value, h.permissionSets.value)
34
34
  ), {
35
35
  fetchCustomReportPermissions: U,
36
36
  customReportPermissions: $,
37
37
  isLoaded: n
38
38
  } = se(), t = new Set(
39
- X.filter((e) => e.subject.startsWith(Se)).map((e) => e.subject)
40
- ), m = b(() => {
39
+ X.filter((e) => e.subject.startsWith(be)).map((e) => e.subject)
40
+ ), m = _(() => {
41
41
  const e = new Set(t);
42
42
  for (const o of $.value) e.add(o.subject);
43
43
  return e;
44
- }), y = b(() => {
44
+ }), y = _(() => {
45
45
  const e = /* @__PURE__ */ new Set();
46
46
  for (const o of X)
47
47
  o.category === G.reports && e.add(o.subject);
48
48
  for (const o of $.value)
49
49
  o.category === G.reports && e.add(o.subject);
50
50
  return e;
51
- }), v = d({ name: "", permissionSetIds: [], userPermissions: [] });
52
- async function _() {
53
- var o, u;
54
- await ae(), f.value = !f.value, l.value = { ...s.modelValue }, i.value = ((o = s.modelValue) == null ? void 0 : o.permissionSetIds) ?? [];
55
- const e = ((u = s.modelValue) == null ? void 0 : u.permissions) ?? [];
56
- c.value = be(
57
- O(g.value),
51
+ }), S = p({ name: "", permissionSetIds: [], userPermissions: [] });
52
+ async function P() {
53
+ var o, d;
54
+ await le(), v.value = !v.value, l.value = { ...s.modelValue }, i.value = ((o = s.modelValue) == null ? void 0 : o.permissionSetIds) ?? [];
55
+ const e = ((d = s.modelValue) == null ? void 0 : d.permissions) ?? [];
56
+ c.value = _e(
57
+ D(g.value),
58
58
  e
59
- ), v.value = {
59
+ ), S.value = {
60
60
  name: l.value.name ?? "",
61
61
  permissionSetIds: [...i.value],
62
- userPermissions: we(c.value)
62
+ userPermissions: Fe(c.value)
63
63
  };
64
64
  }
65
- ne(f, async (e) => {
65
+ ie(v, async (e) => {
66
66
  e && await U();
67
67
  });
68
- const w = fe(
69
- () => !q.isEqual(l.value.name ?? "", v.value.name) || !q.isEqual(i.value, v.value.permissionSetIds) || !q.isEqual(c.value, v.value.userPermissions),
68
+ const w = ve(
69
+ () => !q.isEqual(l.value.name ?? "", S.value.name) || !q.isEqual(i.value, S.value.permissionSetIds) || !q.isEqual(c.value, S.value.userPermissions),
70
70
  () => {
71
- f.value = !1;
71
+ v.value = !1;
72
72
  }
73
73
  );
74
74
  function W() {
75
- const e = O(g.value), o = n.value ? m.value : t, u = he(c.value, o), F = Pe(u, y.value), k = _e(F);
76
- return ge(e, k);
75
+ const e = D(g.value), o = n.value ? m.value : t, d = he(c.value, o), F = Pe(d, y.value), k = ge(F);
76
+ return ye(e, k);
77
77
  }
78
78
  function oe() {
79
- c.value = O(g.value);
79
+ c.value = D(g.value);
80
80
  }
81
81
  async function te() {
82
- var u, F;
83
- const e = await ((u = x.value) == null ? void 0 : u.validateInputsWithoutSubmit()), o = (F = ce().currentBusiness.value) == null ? void 0 : F.id;
82
+ var d, F;
83
+ const e = await ((d = C.value) == null ? void 0 : d.validateInputsWithoutSubmit()), o = (F = ue().currentBusiness.value) == null ? void 0 : F.id;
84
84
  !(e != null && e.length) && o && V.minor(async () => {
85
- var R;
85
+ var L;
86
86
  const k = W();
87
- if ((R = s.modelValue) != null && R.id) {
88
- const I = {
87
+ if ((L = s.modelValue) != null && L.id) {
88
+ const x = {
89
89
  name: l.value.name,
90
90
  permissions: k,
91
91
  permissionSetIds: i.value,
92
92
  businessId: l.value.businessId
93
93
  };
94
- await P.updatePermissionSet(s.modelValue.id, I);
94
+ await h.updatePermissionSet(s.modelValue.id, x);
95
95
  } else {
96
- const I = {
96
+ const x = {
97
97
  name: l.value.name,
98
98
  businessId: o,
99
99
  permissions: k,
100
100
  permissionSetIds: i.value
101
101
  };
102
- await P.createPermissionSet(I);
102
+ await h.createPermissionSet(x);
103
103
  }
104
- f.value = !1;
104
+ v.value = !1;
105
105
  });
106
106
  }
107
- return D({
108
- trigger: _
107
+ return N({
108
+ trigger: P
109
109
  }), (e, o) => {
110
- const u = h("FmTextField"), F = h("FmSelect"), k = h("FmForm"), R = h("FmButton"), I = h("FmSideSheet");
111
- return L(), M(I, {
112
- "model-value": f.value,
110
+ const d = f("FmIcon"), F = f("FmTextField"), k = f("FmSelect"), L = f("FmForm"), x = f("FmButton"), ne = f("FmSideSheet");
111
+ return A(), M(ne, {
112
+ "model-value": v.value,
113
113
  "max-width": 960,
114
- "onOn:clickedAway": r(w),
115
- "onOn:close": r(w)
114
+ "close-button": !1,
115
+ "onOn:clickedAway": r(w)
116
116
  }, {
117
117
  "side-sheet-header": j(() => [
118
- A("p", Ve, ie(B.value), 1)
118
+ E("div", Ve, [
119
+ E("p", Re, ae(B.value), 1),
120
+ u(d, {
121
+ name: "close",
122
+ size: "md",
123
+ class: "cursor-pointer",
124
+ onClick: r(w)
125
+ }, null, 8, ["onClick"])
126
+ ])
119
127
  ]),
120
128
  "side-sheet-footer": j(() => [
121
- A("div", Ce, [
122
- p(R, {
129
+ E("div", Ie, [
130
+ u(x, {
123
131
  label: z.value,
124
132
  size: "md",
125
133
  variant: "primary",
126
134
  type: "submit",
127
135
  onClick: te
128
136
  }, null, 8, ["label"]),
129
- p(R, {
137
+ u(x, {
130
138
  label: r(a)("common.cancel"),
131
139
  size: "md",
132
140
  variant: "secondary",
@@ -135,22 +143,22 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
135
143
  ])
136
144
  ]),
137
145
  default: j(() => [
138
- p(k, {
146
+ u(L, {
139
147
  ref_key: "formRef",
140
- ref: x
148
+ ref: C
141
149
  }, {
142
150
  default: j(() => [
143
- p(u, {
151
+ u(F, {
144
152
  modelValue: l.value.name,
145
- "onUpdate:modelValue": o[0] || (o[0] = (E) => l.value.name = E),
153
+ "onUpdate:modelValue": o[0] || (o[0] = (I) => l.value.name = I),
146
154
  label: r(a)("permissionSet.form.name"),
147
155
  placeholder: r(a)("permissionSet.form.namePlaceholder"),
148
- rules: C
156
+ rules: R
149
157
  }, null, 8, ["modelValue", "label", "placeholder"]),
150
- p(F, {
158
+ u(k, {
151
159
  modelValue: i.value,
152
160
  "onUpdate:modelValue": [
153
- o[1] || (o[1] = (E) => i.value = E),
161
+ o[1] || (o[1] = (I) => i.value = I),
154
162
  oe
155
163
  ],
156
164
  multiselect: "",
@@ -161,9 +169,9 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
161
169
  placeholder: r(a)("permissionSet.form.includedSetsPlaceholder"),
162
170
  class: "mt-16"
163
171
  }, null, 8, ["modelValue", "items", "label", "placeholder"]),
164
- p(xe, {
172
+ u(Ce, {
165
173
  modelValue: c.value,
166
- "onUpdate:modelValue": o[2] || (o[2] = (E) => c.value = E),
174
+ "onUpdate:modelValue": o[2] || (o[2] = (I) => c.value = I),
167
175
  "inherit-permissions": g.value,
168
176
  class: "mt-24"
169
177
  }, null, 8, ["modelValue", "inherit-permissions"])
@@ -172,27 +180,27 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
172
180
  }, 512)
173
181
  ]),
174
182
  _: 1
175
- }, 8, ["model-value", "onOn:clickedAway", "onOn:close"]);
183
+ }, 8, ["model-value", "onOn:clickedAway"]);
176
184
  };
177
185
  }
178
- }), Ie = { class: "space-y-8" }, Ee = { class: "flex justify-end xs:px-16" }, We = /* @__PURE__ */ H({
186
+ }), Ee = { class: "space-y-8" }, Be = { class: "flex justify-end xs:px-16" }, Me = /* @__PURE__ */ H({
179
187
  __name: "PermissionSetList",
180
- setup(K, { expose: D }) {
181
- const { t: s } = Q(), { customReportPermissions: a, fetchCustomReportPermissions: f } = se(), B = Y(), x = ue(), { breakpoints: N } = de(), V = d(""), P = b(() => {
188
+ setup(K, { expose: N }) {
189
+ const { t: s } = Q(), { customReportPermissions: a, fetchCustomReportPermissions: v } = se(), B = Y(), C = de(), { breakpoints: O } = pe(), V = p(""), h = _(() => {
182
190
  var n;
183
191
  return (n = c.value) == null ? void 0 : n.filter((t) => {
184
192
  const m = V.value.toLowerCase();
185
193
  return t.name.toLowerCase().includes(m);
186
194
  });
187
- }), l = d(), i = Z(), c = b(
195
+ }), l = p(), i = Z(), c = _(
188
196
  () => i.permissionSets.value
189
- ), C = d();
197
+ ), R = p();
190
198
  async function z() {
191
199
  await i.readPermissionSets();
192
200
  }
193
201
  function T(n) {
194
202
  var t;
195
- C.value = n, (t = l.value) == null || t.trigger();
203
+ R.value = n, (t = l.value) == null || t.trigger();
196
204
  }
197
205
  const g = [
198
206
  {
@@ -207,24 +215,24 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
207
215
  const t = n.row.original, m = ee(
208
216
  [t.id],
209
217
  i.permissionSets.value
210
- ), y = O(m), v = y.length, _ = ye(
218
+ ), y = D(m), S = y.length, P = we(
211
219
  y,
212
220
  a.value
213
221
  );
214
- return S("div", { class: "flex items-center gap-8" }, [
215
- S("span", s("team.labels.allowed", { count: v })),
216
- S(
222
+ return b("div", { class: "flex items-center gap-8" }, [
223
+ b("span", s("team.labels.allowed", { count: S })),
224
+ b(
217
225
  J.FmTooltip,
218
226
  { variant: "plain", placement: "top" },
219
227
  {
220
- default: () => S(J.FmIcon, {
228
+ default: () => b(J.FmIcon, {
221
229
  name: "info",
222
230
  class: "cursor-pointer text-fm-color-neutral-gray-300"
223
231
  }),
224
- content: () => S("div", [
232
+ content: () => b("div", [
225
233
  s("team.labels.permission"),
226
- ..._.map(
227
- (w, W) => S("div", { key: `${w}-${W}` }, `- ${w}`)
234
+ ...P.map(
235
+ (w, W) => b("div", { key: `${w}-${W}` }, `- ${w}`)
228
236
  )
229
237
  ])
230
238
  }
@@ -241,14 +249,14 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
241
249
  },
242
250
  cell(n) {
243
251
  const t = n.row.original;
244
- return S(
252
+ return b(
245
253
  "div",
246
254
  {
247
255
  class: "flex w-full items-center justify-end",
248
256
  onClick: (m) => m.stopPropagation()
249
257
  },
250
258
  [
251
- S(ve, {
259
+ b(Se, {
252
260
  items: [
253
261
  { label: s("common.update"), onClick: () => T(t) },
254
262
  {
@@ -266,13 +274,13 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
266
274
  ];
267
275
  function U() {
268
276
  var n;
269
- C.value = void 0, (n = l.value) == null || n.trigger();
277
+ R.value = void 0, (n = l.value) == null || n.trigger();
270
278
  }
271
279
  async function $(n) {
272
- x.open({
280
+ C.open({
273
281
  title: s("permissionSet.form.delete.title"),
274
282
  message: s("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
275
- minWidth: N.value.lg ? 588 : 0,
283
+ minWidth: O.value.lg ? 588 : 0,
276
284
  primaryActions: {
277
285
  text: s("common.remove"),
278
286
  close: !1,
@@ -286,53 +294,53 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
286
294
  type: "success"
287
295
  });
288
296
  } catch (t) {
289
- const m = t instanceof Fe && t.status === 409 ? t.message.includes("referenced by") ? s("permissionSet.form.delete.setReferencedConflictError", {
297
+ const m = t instanceof ke && t.status === 409 ? t.message.includes("referenced by") ? s("permissionSet.form.delete.setReferencedConflictError", {
290
298
  permissionSetName: n.name
291
299
  }) : s("permissionSet.form.delete.conflictError", { permissionSetName: n.name }) : t instanceof Error ? t.message : `${t}`;
292
300
  B.open({ message: m, type: "error" });
293
301
  }
294
- x.close();
302
+ C.close();
295
303
  });
296
304
  }
297
- return le(() => {
298
- z(), f();
299
- }), D({
305
+ return re(() => {
306
+ z(), v();
307
+ }), N({
300
308
  create: U
301
309
  }), (n, t) => {
302
- const m = h("FmSearch"), y = h("FmTable"), v = h("FullWrapper");
303
- return L(), re(me, null, [
304
- p(Re, {
310
+ const m = f("FmSearch"), y = f("FmTable"), S = f("FullWrapper");
311
+ return A(), me(ce, null, [
312
+ u(je, {
305
313
  ref_key: "permissionSetFormRef",
306
314
  ref: l,
307
- "model-value": C.value
315
+ "model-value": R.value
308
316
  }, null, 8, ["model-value"]),
309
- A("div", Ie, [
310
- A("div", Ee, [
311
- p(m, {
317
+ E("div", Ee, [
318
+ E("div", Be, [
319
+ u(m, {
312
320
  modelValue: V.value,
313
- "onUpdate:modelValue": t[0] || (t[0] = (_) => V.value = _),
321
+ "onUpdate:modelValue": t[0] || (t[0] = (P) => V.value = P),
314
322
  class: "w-[320px] xs:w-full",
315
323
  autofocus: "",
316
324
  placeholder: r(s)("permissionSet.search.placeholder")
317
325
  }, null, 8, ["modelValue", "placeholder"])
318
326
  ]),
319
- c.value.length > 0 ? (L(), M(v, {
327
+ c.value.length > 0 ? (A(), M(S, {
320
328
  key: 0,
321
329
  class: "overflow-auto"
322
330
  }, {
323
331
  default: j(() => [
324
- p(y, {
332
+ u(y, {
325
333
  "column-defs": g,
326
- "row-data": P.value,
327
- "page-size": P.value.length,
334
+ "row-data": h.value,
335
+ "page-size": h.value.length,
328
336
  "pin-header-row": "",
329
337
  "hide-footer": "",
330
338
  "shrink-at": !1,
331
- onRowClick: t[1] || (t[1] = (_) => T(_.original))
339
+ onRowClick: t[1] || (t[1] = (P) => T(P.original))
332
340
  }, null, 8, ["row-data", "page-size"])
333
341
  ]),
334
342
  _: 1
335
- })) : (L(), M(r(pe), {
343
+ })) : (A(), M(r(fe), {
336
344
  key: 1,
337
345
  title: r(s)("permissionSet.noData.title"),
338
346
  subtitle: r(s)("permissionSet.noData.subtitle")
@@ -343,5 +351,5 @@ const Ve = { class: "fm-typo-en-title-md-600" }, Ce = { class: "flex items-cente
343
351
  }
344
352
  });
345
353
  export {
346
- We as default
354
+ Me as default
347
355
  };