@feedmepos/mf-hrm-portal 2.3.2-dev.4 → 2.3.2-dev.6

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 (55) hide show
  1. package/dist/{ApprovalCodeList-BPTnWcra.js → ApprovalCodeList-ix9OeJEQ.js} +7 -7
  2. package/dist/{AuditLogList-CvEF4bit.js → AuditLogList-D5H_O9Q0.js} +5 -5
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CPX0sv64.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CuELLYY4.js} +10 -10
  4. package/dist/{EmployeeList-CANPsrQY.js → EmployeeList-DICzZjVM.js} +8 -8
  5. package/dist/{FormSection.vue_vue_type_script_setup_true_lang-mdfK9rtZ.js → FormSection.vue_vue_type_script_setup_true_lang-BQzSWAqC.js} +1 -1
  6. package/dist/{GrantUserList-DPj_6Wsg.js → GrantUserList-DoMN7Eks.js} +8 -8
  7. package/dist/{Main-Cob4hcf-.js → Main-CHIExpOV.js} +5 -5
  8. package/dist/{Main-BWRMirTY.js → Main-CQ42sYi9.js} +11 -11
  9. package/dist/{Main-DXcSgkhR.js → Main-DwYh9cxQ.js} +10 -10
  10. package/dist/{MyPosProfile-Bp7-pATz.js → MyPosProfile-DaUdREQX.js} +100 -111
  11. package/dist/{PermissionSetList-DvAW1q0c.js → PermissionSetList-B7WM9N-p.js} +66 -66
  12. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BSVtyLlL.js +4207 -0
  13. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C8hcooKP.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C7fnnbme.js} +1 -1
  14. package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-Bq8-aBSv.js → RoleForm.vue_vue_type_script_setup_true_lang-AbQIllkX.js} +30 -30
  15. package/dist/{RoleList-DsrHgU4s.js → RoleList-vQsHxlNc.js} +96 -105
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CRR18xmB.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-D52LhvGG.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-C_Kj9wmp.js → ScheduleGeneralPage-BLqh7jH6.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-3oQ6lE86.js → ScheduleModal.vue_vue_type_script_setup_true_lang-C9doSgov.js} +4 -4
  19. package/dist/{SchedulePage-9dFXxWwZ.js → SchedulePage-YADV_6w9.js} +9 -9
  20. package/dist/{SchedulePositionPage-Dea5X8Sa.js → SchedulePositionPage-BowDQMG_.js} +3 -3
  21. package/dist/{SelectFilter-Dr9lB6Ta.js → SelectFilter-CBp1qxLd.js} +2 -3
  22. package/dist/{TeamMemberList-Bu9QNP9W.js → TeamMemberList-BoJ87moU.js} +184 -184
  23. package/dist/TimesheetList-BULw75oo.js +401 -0
  24. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DIQ7kjG8.js → TimesheetList.vue_vue_type_style_index_0_scoped_c98b0b84_lang-VlnjH9aQ.js} +3 -3
  25. package/dist/{app-BHQJX4L4.js → app-DOFDND9j.js} +5454 -4639
  26. package/dist/app.js +1 -1
  27. package/dist/{approval-code-w0rZJeYU.js → approval-code-Dgj6S82q.js} +1 -1
  28. package/dist/{dayjs.min-C4H4diN8.js → dayjs.min-AoirQCgL.js} +16 -16
  29. package/dist/{employee-BEwUmdt6.js → employee-VB6YmuSS.js} +5 -5
  30. package/dist/{grant-user-DdxPMH5_.js → grant-user-C-ptrq7l.js} +1 -1
  31. package/dist/{iteration-DBHifssn.js → iteration-DmuDXP8U.js} +1 -1
  32. package/dist/{lodash-DqZsWm-0.js → lodash-CBFO-xTu.js} +1 -1
  33. package/dist/member-grant-CHOB8eQ_.js +54 -0
  34. package/dist/restaurant-DH2Fxzi7.js +52 -0
  35. package/dist/role-DUpHwRiY.js +97 -0
  36. package/dist/rule-aUPH1VOW.js +842 -0
  37. package/dist/src/api/my-pos-profile/index.d.ts +1 -3
  38. package/dist/src/helpers/permission-set.d.ts +1 -102
  39. package/dist/src/helpers/rule.d.ts +2 -2
  40. package/dist/src/stores/restaurant.d.ts +61 -1
  41. package/dist/src/types/my-pos-profile.d.ts +2 -3
  42. package/dist/src/views/audit-log/locales/index.d.ts +12 -0
  43. package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -4
  44. package/dist/style.css +1 -1
  45. package/dist/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/{useAppStore-BUmFt2dT.js → useAppStore-DwmJbpf-.js} +1 -1
  47. package/dist/{useLoading-oHRj4RgU.js → useLoading-Dmlm4oSU.js} +1 -1
  48. package/dist/{useReportPermissions-CpcyfEuV.js → useReportPermissions-XPn-p57R.js} +5 -5
  49. package/package.json +3 -3
  50. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DmbI5vgH.js +0 -4243
  51. package/dist/TimesheetList-B98l028z.js +0 -402
  52. package/dist/member-grant-DOigVnBR.js +0 -55
  53. package/dist/restaurant-2xCb2x26.js +0 -51
  54. package/dist/role-C8STcmLJ.js +0 -93
  55. package/dist/rule-BkL34-Ma.js +0 -788
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { H as e, F as o, I as p } from "./app-BHQJX4L4.js";
1
+ import { E as e, D as o, F as p } from "./app-DOFDND9j.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  o as i18nMessages,
@@ -1,6 +1,6 @@
1
1
  import { defineStore as C } from "pinia";
2
2
  import { ref as l } from "vue";
3
- import { g as p, b as s } from "./app-BHQJX4L4.js";
3
+ import { g as p, b as s } from "./app-DOFDND9j.js";
4
4
  const n = {
5
5
  async getApprovalCodes() {
6
6
  return p(await s("approval-codes").get(""));
@@ -1,10 +1,10 @@
1
- import { y as Q, x as K } from "./app-BHQJX4L4.js";
1
+ import { x as Q, w as K } from "./app-DOFDND9j.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, x) {
5
5
  V.exports = x();
6
6
  })(K, function() {
7
- var W = 1e3, x = 6e4, N = 36e5, A = "millisecond", S = "second", w = "minute", O = "hour", M = "day", T = "week", m = "month", U = "quarter", y = "year", _ = "date", J = "Invalid Date", q = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, G = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
7
+ var W = 1e3, x = 6e4, N = 36e5, A = "millisecond", S = "second", w = "minute", O = "hour", M = "day", T = "week", m = "month", U = "quarter", v = "year", _ = "date", J = "Invalid Date", q = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, G = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
8
8
  var n = ["th", "st", "nd", "rd"], t = s % 100;
9
9
  return "[" + s + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
10
10
  } }, I = function(s, n, t) {
@@ -20,7 +20,7 @@ var E = { exports: {} };
20
20
  }, a: function(s) {
21
21
  return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
22
22
  }, p: function(s) {
23
- return { M: m, y, w: T, d: M, D: _, h: O, m: w, s: S, ms: A, Q: U }[s] || String(s || "").toLowerCase().replace(/s$/, "");
23
+ return { M: m, y: v, w: T, d: M, D: _, h: O, m: w, s: S, ms: A, Q: U }[s] || String(s || "").toLowerCase().replace(/s$/, "");
24
24
  }, u: function(s) {
25
25
  return s === void 0;
26
26
  } }, k = "en", D = {};
@@ -90,13 +90,13 @@ var E = { exports: {} };
90
90
  return this.$d.getTime();
91
91
  }, n.startOf = function(t, r) {
92
92
  var e = this, i = !!a.u(r) || r, u = a.p(t), o = function(p, $) {
93
- var v = a.w(e.$u ? Date.UTC(e.$y, $, p) : new Date(e.$y, $, p), e);
94
- return i ? v : v.endOf(M);
93
+ var y = a.w(e.$u ? Date.UTC(e.$y, $, p) : new Date(e.$y, $, p), e);
94
+ return i ? y : y.endOf(M);
95
95
  }, c = function(p, $) {
96
96
  return a.w(e.toDate()[p].apply(e.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), e);
97
97
  }, h = this.$W, d = this.$M, l = this.$D, b = "set" + (this.$u ? "UTC" : "");
98
98
  switch (u) {
99
- case y:
99
+ case v:
100
100
  return i ? o(1, 0) : o(31, 11);
101
101
  case m:
102
102
  return i ? o(1, d) : o(0, d + 1);
@@ -118,8 +118,8 @@ var E = { exports: {} };
118
118
  }, n.endOf = function(t) {
119
119
  return this.startOf(t, !1);
120
120
  }, n.$set = function(t, r) {
121
- var e, i = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[M] = u + "Date", e[_] = u + "Date", e[m] = u + "Month", e[y] = u + "FullYear", e[O] = u + "Hours", e[w] = u + "Minutes", e[S] = u + "Seconds", e[A] = u + "Milliseconds", e)[i], c = i === M ? this.$D + (r - this.$W) : r;
122
- if (i === m || i === y) {
121
+ var e, i = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[M] = u + "Date", e[_] = u + "Date", e[m] = u + "Month", e[v] = u + "FullYear", e[O] = u + "Hours", e[w] = u + "Minutes", e[S] = u + "Seconds", e[A] = u + "Milliseconds", e)[i], c = i === M ? this.$D + (r - this.$W) : r;
122
+ if (i === m || i === v) {
123
123
  var h = this.clone().set(_, 1);
124
124
  h.$d[o](c), h.init(), this.$d = h.set(_, Math.min(this.$D, h.daysInMonth())).$d;
125
125
  } else o && this.$d[o](c);
@@ -136,7 +136,7 @@ var E = { exports: {} };
136
136
  return a.w(l.date(l.date() + Math.round(d * t)), i);
137
137
  };
138
138
  if (u === m) return this.set(m, this.$M + t);
139
- if (u === y) return this.set(y, this.$y + t);
139
+ if (u === v) return this.set(v, this.$y + t);
140
140
  if (u === M) return o(1);
141
141
  if (u === T) return o(7);
142
142
  var c = (e = {}, e[w] = x, e[O] = N, e[S] = W, e)[u] || 1, h = this.$d.getTime() + t * c;
@@ -146,16 +146,16 @@ var E = { exports: {} };
146
146
  }, n.format = function(t) {
147
147
  var r = this, e = this.$locale();
148
148
  if (!this.isValid()) return e.invalidDate || J;
149
- var i = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, v, H, L) {
150
- return $ && ($[v] || $(r, i)) || H[v].slice(0, L);
149
+ var i = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, y, H, L) {
150
+ return $ && ($[y] || $(r, i)) || H[y].slice(0, L);
151
151
  }, Y = function($) {
152
152
  return a.s(o % 12 || 12, $, "0");
153
- }, p = b || function($, v, H) {
153
+ }, p = b || function($, y, H) {
154
154
  var L = $ < 12 ? "AM" : "PM";
155
155
  return H ? L.toLowerCase() : L;
156
156
  };
157
- return i.replace(B, function($, v) {
158
- return v || function(H) {
157
+ return i.replace(B, function($, y) {
158
+ return y || function(H) {
159
159
  switch (H) {
160
160
  case "YY":
161
161
  return String(r.$y).slice(-2);
@@ -216,7 +216,7 @@ var E = { exports: {} };
216
216
  return a.m(u, c);
217
217
  };
218
218
  switch (o) {
219
- case y:
219
+ case v:
220
220
  i = l() / 12;
221
221
  break;
222
222
  case m:
@@ -264,7 +264,7 @@ var E = { exports: {} };
264
264
  return this.$d.toUTCString();
265
265
  }, s;
266
266
  }(), z = C.prototype;
267
- return f.prototype = z, [["$ms", A], ["$s", S], ["$m", w], ["$H", O], ["$W", M], ["$M", m], ["$y", y], ["$D", _]].forEach(function(s) {
267
+ return f.prototype = z, [["$ms", A], ["$s", S], ["$m", w], ["$H", O], ["$W", M], ["$M", m], ["$y", v], ["$D", _]].forEach(function(s) {
268
268
  z[s[1]] = function(n) {
269
269
  return this.$g(n, s[0], s[1]);
270
270
  };
@@ -1,11 +1,11 @@
1
- import { d as g } from "./dayjs.min-C4H4diN8.js";
1
+ import { d as g } from "./dayjs.min-AoirQCgL.js";
2
2
  import { defineStore as $, storeToRefs as x } from "pinia";
3
3
  import { ref as y } from "vue";
4
- import { s as E } from "./iteration-DBHifssn.js";
5
- import { b as l, g as m } from "./app-BHQJX4L4.js";
4
+ import { s as E } from "./iteration-DmuDXP8U.js";
5
+ import { b as l, g as m } from "./app-DOFDND9j.js";
6
6
  import { i as v } from "./utils-BZkjJbju.js";
7
- import { u as P } from "./role-C8STcmLJ.js";
8
- import { u as I } from "./restaurant-2xCb2x26.js";
7
+ import { u as P } from "./role-DUpHwRiY.js";
8
+ import { u as I } from "./restaurant-DH2Fxzi7.js";
9
9
  const o = {
10
10
  async readEmployees() {
11
11
  return m(await l().get("/pos-users"));
@@ -1,6 +1,6 @@
1
1
  import { defineStore as f } from "pinia";
2
2
  import { ref as u } from "vue";
3
- import { g as s, h as v, b as o } from "./app-BHQJX4L4.js";
3
+ import { g as s, e as v, b as o } from "./app-DOFDND9j.js";
4
4
  const c = {
5
5
  async getGrantUsers() {
6
6
  return s(await o("grant").get(""));
@@ -1,4 +1,4 @@
1
- import { x as B } from "./app-BHQJX4L4.js";
1
+ import { w as B } from "./app-DOFDND9j.js";
2
2
  var ma = {}, Zt = {}, l = {}, ji = {}, Ei = {}, Ii = {}, Dn = {};
3
3
  (function(e) {
4
4
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getParsedType = e.ZodParsedType = e.util = void 0;
@@ -1,4 +1,4 @@
1
- import { x as jt } from "./app-BHQJX4L4.js";
1
+ import { w as jt } from "./app-DOFDND9j.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -0,0 +1,54 @@
1
+ import { m as n } from "./app-DOFDND9j.js";
2
+ import { U as u } from "./rule-aUPH1VOW.js";
3
+ const m = [
4
+ n.Subject.Business.restaurant,
5
+ n.Subject.Business.role,
6
+ n.Subject.Restaurant.restaurant,
7
+ n.Subject.Business.inventory_stock
8
+ ], c = (s) => m.includes(s.subject);
9
+ function l(s, t) {
10
+ return t.length > 0 || s.some((o) => !o.inverted && !c(o));
11
+ }
12
+ function d(s) {
13
+ return s.filter(c);
14
+ }
15
+ const b = {
16
+ customPermissions: [],
17
+ permissions: [],
18
+ permissionSetIds: [],
19
+ posUser: void 0
20
+ };
21
+ function S(s) {
22
+ const { customPermissions: t, permissions: o } = u({
23
+ userPermissions: s.userPermissions,
24
+ inheritedPermissions: s.inheritedPermissions,
25
+ reportSubjects: s.reportSubjects,
26
+ defaultReportSubjects: s.defaultReportSubjects
27
+ }), { posUser: e, savedPosUser: r } = s;
28
+ return {
29
+ customPermissions: t,
30
+ permissions: o,
31
+ permissionSetIds: s.permissionSetIds,
32
+ posUser: e ? {
33
+ ...e,
34
+ name: e.name || (r == null ? void 0 : r.name) || s.fallbackName,
35
+ code: e.code || (r == null ? void 0 : r.code) || "",
36
+ passcode: e.passcode,
37
+ roles: e.roles.filter((i) => !!i.roleId)
38
+ } : e === null ? null : void 0
39
+ };
40
+ }
41
+ function f(s, t) {
42
+ const { posUser: o, ...e } = s;
43
+ if (!o || !t || o.passcode !== t.passcode) return { ...e, posUser: o };
44
+ const { passcode: r, ...i } = o;
45
+ return { ...e, posUser: i };
46
+ }
47
+ export {
48
+ b as E,
49
+ m as W,
50
+ S as b,
51
+ l as h,
52
+ f as t,
53
+ d as w
54
+ };
@@ -0,0 +1,52 @@
1
+ import { defineStore as m, storeToRefs as y } from "pinia";
2
+ import { ref as i, computed as R } from "vue";
3
+ import { useCoreStore as g } from "@feedmepos/mf-common";
4
+ import { b as f, g as w } from "./app-DOFDND9j.js";
5
+ const I = {
6
+ async readRestaurants() {
7
+ return w(await f().get("/hr-restaurants"));
8
+ },
9
+ async saveOperationalHours(e, a) {
10
+ await f(`restaurants/${e}/schedules`).patch(
11
+ "operational-hours",
12
+ { operatingHours: a }
13
+ );
14
+ }
15
+ }, h = m("restaurant", () => {
16
+ const { currentBusiness: e } = g(), a = i([]), v = R(() => new Map(a.value.map((r) => [r._id, r]))), o = i(!1), u = i(null);
17
+ let t = null, s = null;
18
+ async function p(r = !1) {
19
+ var c, d;
20
+ const n = ((c = e.value) == null ? void 0 : c._id) ?? ((d = e.value) == null ? void 0 : d.id) ?? null;
21
+ if (!n) {
22
+ a.value = [], u.value = null, t = null, s = null;
23
+ return;
24
+ }
25
+ if (u.value && u.value !== n && (a.value = [], u.value = null), s && s !== n && (t = null, s = null), !r && u.value === n) return;
26
+ if (!r && t && s === n)
27
+ return await t;
28
+ let l = null;
29
+ try {
30
+ o.value = !0, l = (async () => {
31
+ a.value = await I.readRestaurants(), u.value = n;
32
+ })(), t = l, s = n, await l;
33
+ } finally {
34
+ t === l && (t = null, s = null), o.value = !1;
35
+ }
36
+ }
37
+ return {
38
+ restaurants: a,
39
+ restaurantsById: v,
40
+ isLoading: o,
41
+ readRestaurants: p
42
+ };
43
+ }), A = () => {
44
+ const e = h();
45
+ return {
46
+ ...e,
47
+ ...y(e)
48
+ };
49
+ };
50
+ export {
51
+ A as u
52
+ };
@@ -0,0 +1,97 @@
1
+ import { defineStore as B, storeToRefs as b } from "pinia";
2
+ import { ref as v } from "vue";
3
+ import { useCoreStore as x } from "@feedmepos/mf-common";
4
+ import { s as y } from "./iteration-DmuDXP8U.js";
5
+ import { g as d, b as f } from "./app-DOFDND9j.js";
6
+ import { u as g } from "./restaurant-DH2Fxzi7.js";
7
+ const p = {
8
+ async readRoles() {
9
+ return d(await f().get("/pos-roles"));
10
+ },
11
+ async createRole(t) {
12
+ return d(await f().post("/pos-roles", t));
13
+ },
14
+ async updateRole(t, i) {
15
+ return d(await f().put(`/pos-roles/${t}`, i));
16
+ },
17
+ async deleteRole(t) {
18
+ return d(
19
+ await f().put(`/pos-roles/${t._id}`, {
20
+ restaurantIds: [],
21
+ role: t
22
+ })
23
+ );
24
+ }
25
+ };
26
+ async function m(t) {
27
+ var n;
28
+ const { restaurantsById: i } = g(), s = /* @__PURE__ */ new Map();
29
+ for (const e of t) {
30
+ const r = {
31
+ id: e.restaurantId,
32
+ name: ((n = i.value.get(e.restaurantId)) == null ? void 0 : n.profile.name) || ""
33
+ }, c = s.get(e._id);
34
+ c ? c.restaurants.some((R) => R.id === e.restaurantId) || c.restaurants.push(r) : s.set(e._id, {
35
+ ...e,
36
+ restaurants: [r]
37
+ });
38
+ }
39
+ const l = [...s.values()];
40
+ for (const e of l)
41
+ e.restaurants = y(e.restaurants, { selector: "name" });
42
+ return y(l, { selector: "name" });
43
+ }
44
+ const A = B("role", () => {
45
+ const { currentBusiness: t } = x(), i = g(), s = v([]), l = v(!1), n = v(null);
46
+ let e = null, r = null;
47
+ async function c(o = !1) {
48
+ var w;
49
+ const a = ((w = t.value) == null ? void 0 : w._id) ?? null;
50
+ if (!a) {
51
+ s.value = [], n.value = null, e = null, r = null;
52
+ return;
53
+ }
54
+ if (n.value && n.value !== a && (s.value = [], n.value = null), r && r !== a && (e = null, r = null), !o && n.value === a) return;
55
+ if (!o && e && r === a)
56
+ return await e;
57
+ let u = null;
58
+ try {
59
+ l.value = !0, u = (async () => {
60
+ await i.readRestaurants();
61
+ const _ = await p.readRoles();
62
+ s.value = await m(_), n.value = a;
63
+ })(), e = u, r = a, await u;
64
+ } finally {
65
+ e === u && (e = null, r = null), l.value = !1;
66
+ }
67
+ }
68
+ async function R(o) {
69
+ const a = await p.createRole(o);
70
+ s.value = await m(a);
71
+ }
72
+ async function I(o, a) {
73
+ const u = await p.updateRole(o, a);
74
+ s.value = await m(u);
75
+ }
76
+ async function S(o) {
77
+ const a = await p.deleteRole(o);
78
+ s.value = await m(a);
79
+ }
80
+ return {
81
+ roles: s,
82
+ isLoading: l,
83
+ readRoles: c,
84
+ createRole: R,
85
+ updateRole: I,
86
+ deleteRole: S
87
+ };
88
+ }), M = () => {
89
+ const t = A();
90
+ return {
91
+ ...t,
92
+ ...b(t)
93
+ };
94
+ };
95
+ export {
96
+ M as u
97
+ };