@feedmepos/mf-hrm-portal 2.3.2-dev.2 → 2.3.2-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 (99) hide show
  1. package/dist/{ApprovalCodeList-sHnINTik.js → ApprovalCodeList-D3U4nvlF.js} +15 -14
  2. package/dist/{AuditLogList-C9C2emU9.js → AuditLogList-qGCW7tf0.js} +13 -13
  3. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-B0VcRYUg.js +438 -0
  4. package/dist/EmployeeList-Bd73xDCX.js +776 -0
  5. package/dist/FormItem.vue_vue_type_script_setup_true_lang-cLEnrtC6.js +45 -0
  6. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
  7. package/dist/{GrantUserList-LWpqhl-5.js → GrantUserList-C71pal0N.js} +16 -15
  8. package/dist/{Main-PBJjfzBg.js → Main-BWJPyEU1.js} +5 -5
  9. package/dist/{Main-BWKb-QIE.js → Main-CCdTWngg.js} +11 -11
  10. package/dist/Main-DGf0bQvy.js +96 -0
  11. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
  12. package/dist/{PermissionSetList-D2qZVlF4.js → PermissionSetList-BS-oBunI.js} +46 -45
  13. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CkOAT-oX.js +4167 -0
  14. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js +35 -0
  15. package/dist/RoleList-B_7UnVNb.js +740 -0
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cs0rhCa3.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BXihM4sl.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-C4J6jYtG.js → ScheduleGeneralPage-DpNvWNGs.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-3UqO6uPu.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DIYLOF9N.js} +186 -187
  19. package/dist/{SchedulePage-ICzggri0.js → SchedulePage-QW-cYvu2.js} +13 -13
  20. package/dist/{SchedulePositionPage-BshUCd_C.js → SchedulePositionPage-BtFfVo2N.js} +3 -3
  21. package/dist/{SelectFilter-D9T0nFvG.js → SelectFilter-BXeVKgHN.js} +1 -1
  22. package/dist/TeamMemberList-DoisBYnk.js +1154 -0
  23. package/dist/{TimesheetList-nxhr0EWj.js → TimesheetList-D-bESKe5.js} +9 -9
  24. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BLqgALLe.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-D0zAVqCa.js} +3 -3
  25. package/dist/{app-n6d4AmtP.js → app-D-MUq9Ab.js} +3429 -6368
  26. package/dist/app.js +3 -3
  27. package/dist/{approval-code-1j1OoXt1.js → approval-code-BXUiojPH.js} +1 -1
  28. package/dist/{dayjs.min-DdNivv4b.js → dayjs.min-BZ1pM-6M.js} +34 -34
  29. package/dist/{employee-BlfleiCU.js → employee-HQEU8fjb.js} +47 -48
  30. package/dist/{grant-user-BmTyexk3.js → grant-user-CBJ3gEgW.js} +1 -1
  31. package/dist/{iteration-y_jodvfN.js → iteration-ogxW2-Tv.js} +1 -1
  32. package/dist/{lodash-B2eWEGH4.js → lodash-Def4gaas.js} +1 -1
  33. package/dist/restaurant-D2mfKHaH.js +1880 -0
  34. package/dist/{role-DfZi7Ssk.js → role-JDoDFVd9.js} +4 -5
  35. package/dist/{rule-ChmhcGgA.js → rule-DPtqlnz-.js} +100 -105
  36. package/dist/src/components/CollapsibleWrapper.vue.d.ts +3 -11
  37. package/dist/src/helpers/string.d.ts +1 -10
  38. package/dist/src/router/shared.d.ts +1 -3
  39. package/dist/src/stores/restaurant.d.ts +7 -7
  40. package/dist/src/stores/team.d.ts +0 -30
  41. package/dist/src/types/team.d.ts +1 -17
  42. package/dist/src/views/hr/locales/index.d.ts +4 -24
  43. package/dist/src/views/hr/role/RoleForm.vue.d.ts +2 -29
  44. package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +1 -1
  45. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1 -1
  46. package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +1 -1
  47. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +1 -1
  48. package/dist/src/views/team/components/BasePermission.vue.d.ts +0 -11
  49. package/dist/src/views/team/components/ConditionPermission.vue.d.ts +0 -11
  50. package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -21
  51. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +0 -11
  52. package/dist/src/views/team/locales/index.d.ts +0 -716
  53. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -48
  54. package/dist/src/views/team/{components/MemberStatusBadge.vue.d.ts → member/MemberInfo.vue.d.ts} +2 -2
  55. package/dist/src/views/team/member/TeamMemberList.vue.d.ts +0 -1
  56. package/dist/string-VNuQNweN.js +15 -0
  57. package/dist/style.css +1 -1
  58. package/dist/tsconfig.app.tsbuildinfo +1 -1
  59. package/dist/{useAppStore-BPARQyvJ.js → useAppStore-DZCdxlCd.js} +1 -1
  60. package/dist/{useLoading-iPESFb6R.js → useLoading-Nygx2zn8.js} +1 -1
  61. package/dist/{useReportPermissions-By-BoJZb.js → useReportPermissions-CxV7Dz1B.js} +5 -5
  62. package/package.json +2 -2
  63. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BbsPesWY.js +0 -459
  64. package/dist/EmployeeList-D4oy5hXz.js +0 -896
  65. package/dist/FormSection.vue_vue_type_script_setup_true_lang-Cl053Tg1.js +0 -90
  66. package/dist/Main-CVGiOYpC.js +0 -101
  67. package/dist/MyPosProfile-BQCBFMFw.js +0 -301
  68. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +0 -126
  69. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ZSREAS1r.js +0 -4243
  70. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DRGTxOMW.js +0 -1831
  71. package/dist/RoleForm.vue_vue_type_script_setup_true_lang-DFDTw0lj.js +0 -547
  72. package/dist/RoleList-DG0crFzW.js +0 -274
  73. package/dist/TeamMemberList-C970Iqlj.js +0 -2086
  74. package/dist/member-grant-CzZUdO_s.js +0 -55
  75. package/dist/restaurant-Dl6yx37M.js +0 -51
  76. package/dist/src/api/my-pos-profile/index.d.ts +0 -5
  77. package/dist/src/api/sso-provider/index.d.ts +0 -5
  78. package/dist/src/api/staff-invite/index.d.ts +0 -16
  79. package/dist/src/components/form/SegmentedTabs.vue.d.ts +0 -23
  80. package/dist/src/composables/useMenuAccess.d.ts +0 -56
  81. package/dist/src/composables/useSsoProviders.d.ts +0 -19
  82. package/dist/src/composables/useStaffInviteProviders.d.ts +0 -8
  83. package/dist/src/helpers/member-grant.d.ts +0 -36
  84. package/dist/src/helpers/my-pos-profile.d.ts +0 -37
  85. package/dist/src/helpers/pos-assignment-rows.d.ts +0 -28
  86. package/dist/src/helpers/staff-invite.d.ts +0 -54
  87. package/dist/src/router/menu-access-guard.d.ts +0 -17
  88. package/dist/src/types/my-pos-profile.d.ts +0 -25
  89. package/dist/src/types/sso-provider.d.ts +0 -10
  90. package/dist/src/types/staff-invite.d.ts +0 -100
  91. package/dist/src/views/my-pos-profile/MyPosProfile.vue.d.ts +0 -2
  92. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +0 -4
  93. package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -200
  94. package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +0 -51
  95. package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -44
  96. package/dist/src/views/team/member/ExistingMemberNotice.vue.d.ts +0 -11
  97. package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +0 -35
  98. package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +0 -19
  99. package/dist/string-DZQ1uNjn.js +0 -22
package/dist/app.js CHANGED
@@ -1,6 +1,6 @@
1
- import { H as e, F as o, I as p } from "./app-n6d4AmtP.js";
1
+ import { j as e, i as r, r as o } from "./app-D-MUq9Ab.js";
2
2
  export {
3
3
  e as FmApp,
4
- o as i18nMessages,
5
- p as routes
4
+ r as i18nMessages,
5
+ o as routes
6
6
  };
@@ -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-n6d4AmtP.js";
3
+ import { g as p, b as s } from "./restaurant-D2mfKHaH.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-n6d4AmtP.js";
1
+ import { g as Q, f as K } from "./app-D-MUq9Ab.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
- (function(W, x) {
5
- V.exports = x();
4
+ (function(W, k) {
5
+ V.exports = k();
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, k = 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,26 +20,26 @@ 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
- } }, k = "en", D = {};
27
- D[k] = G;
26
+ } }, x = "en", g = {};
27
+ g[x] = G;
28
28
  var Z = "$isDayjsObject", F = function(s) {
29
29
  return s instanceof C || !(!s || !s[Z]);
30
30
  }, j = function s(n, t, r) {
31
31
  var e;
32
- if (!n) return k;
32
+ if (!n) return x;
33
33
  if (typeof n == "string") {
34
34
  var i = n.toLowerCase();
35
- D[i] && (e = i), t && (D[i] = t, e = i);
35
+ g[i] && (e = i), t && (g[i] = t, e = i);
36
36
  var u = n.split("-");
37
37
  if (!e && u.length > 1) return s(u[0]);
38
38
  } else {
39
39
  var o = n.name;
40
- D[o] = n, e = o;
40
+ g[o] = n, e = o;
41
41
  }
42
- return !r && e && (k = e), e || !r && k;
42
+ return !r && e && (x = e), e || !r && x;
43
43
  }, f = function(s, n) {
44
44
  if (F(s)) return s.clone();
45
45
  var t = typeof n == "object" ? n : {};
@@ -90,18 +90,18 @@ 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);
103
103
  case T:
104
- var g = this.$locale().weekStart || 0, Y = (h < g ? h + 7 : h) - g;
104
+ var D = this.$locale().weekStart || 0, Y = (h < D ? h + 7 : h) - D;
105
105
  return o(i ? l - Y : l + (6 - Y), d);
106
106
  case M:
107
107
  case _:
@@ -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,26 +136,26 @@ 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
- var c = (e = {}, e[w] = x, e[O] = N, e[S] = W, e)[u] || 1, h = this.$d.getTime() + t * c;
142
+ var c = (e = {}, e[w] = k, e[O] = N, e[S] = W, e)[u] || 1, h = this.$d.getTime() + t * c;
143
143
  return a.w(h, this);
144
144
  }, n.subtract = function(t, r) {
145
145
  return this.add(-1 * t, r);
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, D = 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);
@@ -166,9 +166,9 @@ var E = { exports: {} };
166
166
  case "MM":
167
167
  return a.s(h + 1, 2, "0");
168
168
  case "MMM":
169
- return g(e.monthsShort, h, l, 3);
169
+ return D(e.monthsShort, h, l, 3);
170
170
  case "MMMM":
171
- return g(l, h);
171
+ return D(l, h);
172
172
  case "D":
173
173
  return r.$D;
174
174
  case "DD":
@@ -176,9 +176,9 @@ var E = { exports: {} };
176
176
  case "d":
177
177
  return String(r.$W);
178
178
  case "dd":
179
- return g(e.weekdaysMin, r.$W, d, 2);
179
+ return D(e.weekdaysMin, r.$W, d, 2);
180
180
  case "ddd":
181
- return g(e.weekdaysShort, r.$W, d, 3);
181
+ return D(e.weekdaysShort, r.$W, d, 3);
182
182
  case "dddd":
183
183
  return d[r.$W];
184
184
  case "H":
@@ -212,11 +212,11 @@ var E = { exports: {} };
212
212
  }, n.utcOffset = function() {
213
213
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
214
214
  }, n.diff = function(t, r, e) {
215
- var i, u = this, o = a.p(r), c = f(t), h = (c.utcOffset() - this.utcOffset()) * x, d = this - c, l = function() {
215
+ var i, u = this, o = a.p(r), c = f(t), h = (c.utcOffset() - this.utcOffset()) * k, d = this - c, l = function() {
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:
@@ -235,7 +235,7 @@ var E = { exports: {} };
235
235
  i = d / N;
236
236
  break;
237
237
  case w:
238
- i = d / x;
238
+ i = d / k;
239
239
  break;
240
240
  case S:
241
241
  i = d / W;
@@ -247,7 +247,7 @@ var E = { exports: {} };
247
247
  }, n.daysInMonth = function() {
248
248
  return this.endOf(m).$D;
249
249
  }, n.$locale = function() {
250
- return D[this.$L];
250
+ return g[this.$L];
251
251
  }, n.locale = function(t, r) {
252
252
  if (!t) return this.$L;
253
253
  var e = this.clone(), i = j(t, r, !0);
@@ -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
  };
@@ -272,7 +272,7 @@ var E = { exports: {} };
272
272
  return s.$i || (s(n, C, f), s.$i = !0), f;
273
273
  }, f.locale = j, f.isDayjs = F, f.unix = function(s) {
274
274
  return f(1e3 * s);
275
- }, f.en = D[k], f.Ls = D, f.p = {}, f;
275
+ }, f.en = g[x], f.Ls = g, f.p = {}, f;
276
276
  });
277
277
  })(E);
278
278
  var R = E.exports;
@@ -1,24 +1,23 @@
1
- import { d as g } from "./dayjs.min-DdNivv4b.js";
1
+ import { d as g } from "./dayjs.min-BZ1pM-6M.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-y_jodvfN.js";
5
- import { b as l, g as m } from "./app-n6d4AmtP.js";
4
+ import { s as E } from "./iteration-ogxW2-Tv.js";
5
+ import { b as l, g as m, u as I } from "./restaurant-D2mfKHaH.js";
6
6
  import { i as v } from "./utils-BZkjJbju.js";
7
- import { u as P } from "./role-DfZi7Ssk.js";
8
- import { u as I } from "./restaurant-Dl6yx37M.js";
7
+ import { u as P } from "./role-JDoDFVd9.js";
9
8
  const o = {
10
9
  async readEmployees() {
11
10
  return m(await l().get("/pos-users"));
12
11
  },
13
12
  async readEmployeesPage(e) {
14
- var t, i;
13
+ var s, i;
15
14
  return m(
16
15
  await l().get("/pos-users/paged", {
17
16
  params: {
18
17
  limit: e.limit,
19
18
  offset: e.offset,
20
19
  search: e.search,
21
- restaurantIds: (t = e.restaurantIds) != null && t.length ? e.restaurantIds : void 0,
20
+ restaurantIds: (s = e.restaurantIds) != null && s.length ? e.restaurantIds : void 0,
22
21
  roleIds: (i = e.roleIds) != null && i.length ? e.roleIds : void 0,
23
22
  includeEmptyPasscode: e.includeEmptyPasscode || void 0
24
23
  }
@@ -35,22 +34,22 @@ const o = {
35
34
  await l().post("/pos-users/master-user", e)
36
35
  ).employeeId;
37
36
  },
38
- async migrateToMasterEmployee(e, t) {
39
- await l().put(`/pos-users/migrate/${e}`, t);
37
+ async migrateToMasterEmployee(e, s) {
38
+ await l().put(`/pos-users/migrate/${e}`, s);
40
39
  },
41
- async updateEmployee(e, t) {
42
- await l().put(`/pos-users/${e}`, t);
40
+ async updateEmployee(e, s) {
41
+ await l().put(`/pos-users/${e}`, s);
43
42
  },
44
- async updateMasterEmployee(e, t) {
45
- await l().put(`/pos-users/master-user/${e}`, t);
43
+ async updateMasterEmployee(e, s) {
44
+ await l().put(`/pos-users/master-user/${e}`, s);
46
45
  },
47
46
  async deleteEmployee(e) {
48
47
  await l().put(`/pos-users/${e._id}`, {
49
48
  user: e,
50
49
  roles: [],
51
- previousRoles: e.restaurants.map((t) => ({
52
- restaurantId: t.restaurantId,
53
- roleId: t.roleId
50
+ previousRoles: e.restaurants.map((s) => ({
51
+ restaurantId: s.restaurantId,
52
+ roleId: s.roleId
54
53
  }))
55
54
  });
56
55
  },
@@ -58,9 +57,9 @@ const o = {
58
57
  await l().put(`/pos-users/master-user/${e._id}`, {
59
58
  user: e,
60
59
  roles: [],
61
- previousRoles: e.restaurants.map((t) => ({
62
- restaurantId: t.restaurantId,
63
- roleId: t.roleId
60
+ previousRoles: e.restaurants.map((s) => ({
61
+ restaurantId: s.restaurantId,
62
+ roleId: s.roleId
64
63
  }))
65
64
  });
66
65
  },
@@ -77,9 +76,9 @@ const o = {
77
76
  }
78
77
  };
79
78
  async function T(e) {
80
- const t = P().roles.value, { restaurants: i } = I(), c = new Map(
79
+ const s = P().roles.value, { restaurants: i } = I(), c = new Map(
81
80
  i.value.map((a) => [a._id, a.profile.name])
82
- ), u = new Map(t.map((a) => [a._id, a.name])), r = /* @__PURE__ */ new Map();
81
+ ), u = new Map(s.map((a) => [a._id, a.name])), r = /* @__PURE__ */ new Map();
83
82
  for (const a of e) {
84
83
  const n = {
85
84
  restaurantId: a.restaurantId,
@@ -103,8 +102,8 @@ async function T(e) {
103
102
  return E([...r.values()], { selector: "name" });
104
103
  }
105
104
  function M(e) {
106
- const { restaurants: t } = I(), i = P().roles.value, c = new Map(
107
- t.value.map((a) => [a._id, a])
105
+ const { restaurants: s } = I(), i = P().roles.value, c = new Map(
106
+ s.value.map((a) => [a._id, a])
108
107
  ), u = new Map(i.map((a) => [a._id, a.name])), r = e.restaurantRole[0];
109
108
  return {
110
109
  _id: e._id,
@@ -132,56 +131,56 @@ function M(e) {
132
131
  };
133
132
  }
134
133
  const h = $("employee", () => {
135
- const e = I(), t = y([]), i = y([]), c = y(0), u = y(!1);
134
+ const e = I(), s = y([]), i = y([]), c = y(0), u = y(!1);
136
135
  async function r() {
137
136
  try {
138
137
  u.value = !0, await e.readRestaurants();
139
- const s = await o.readEmployees();
140
- t.value = await T(s);
138
+ const t = await o.readEmployees();
139
+ s.value = await T(t);
141
140
  } finally {
142
141
  u.value = !1;
143
142
  }
144
143
  }
145
- async function a(s) {
144
+ async function a(t) {
146
145
  try {
147
146
  u.value = !0, await e.readRestaurants();
148
- const p = await o.readEmployeesPage(s);
147
+ const p = await o.readEmployeesPage(t);
149
148
  i.value = p.items.map(M), c.value = p.total;
150
149
  } finally {
151
150
  u.value = !1;
152
151
  }
153
152
  }
154
- async function n(s, p) {
153
+ async function n(t, p) {
155
154
  await e.readRestaurants();
156
- const w = p ?? (await o.readEmployeesPage({ ...s, limit: 1, offset: 0 })).total;
157
- return w === 0 ? [] : (await o.readEmployeesPage({ ...s, limit: w, offset: 0 })).items.map(M);
155
+ const w = p ?? (await o.readEmployeesPage({ ...t, limit: 1, offset: 0 })).total;
156
+ return w === 0 ? [] : (await o.readEmployeesPage({ ...t, limit: w, offset: 0 })).items.map(M);
158
157
  }
159
- async function d(s) {
160
- return o.createEmployee(s);
158
+ async function d(t) {
159
+ return o.createEmployee(t);
161
160
  }
162
- async function f(s, p) {
163
- await o.updateEmployee(s, p);
161
+ async function f(t, p) {
162
+ await o.updateEmployee(t, p);
164
163
  }
165
- async function _(s) {
166
- await o.deleteEmployee(s);
164
+ async function _(t) {
165
+ await o.deleteEmployee(t);
167
166
  }
168
- async function U(s) {
169
- await o.deleteMasterEmployee(s);
167
+ async function U(t) {
168
+ await o.deleteMasterEmployee(t);
170
169
  }
171
- async function Y(s) {
172
- return o.createMasterEmployee(s);
170
+ async function Y(t) {
171
+ return o.createMasterEmployee(t);
173
172
  }
174
- async function N(s, p) {
175
- await o.updateMasterEmployee(s, p);
173
+ async function N(t, p) {
174
+ await o.updateMasterEmployee(t, p);
176
175
  }
177
- async function S(s, p) {
178
- await o.migrateToMasterEmployee(s, p);
176
+ async function S(t, p) {
177
+ await o.migrateToMasterEmployee(t, p);
179
178
  }
180
179
  async function D() {
181
180
  await o.syncUsersMeta();
182
181
  }
183
182
  return {
184
- employees: t,
183
+ employees: s,
185
184
  listEmployees: i,
186
185
  totalEmployees: c,
187
186
  isLoading: u,
@@ -197,7 +196,7 @@ const h = $("employee", () => {
197
196
  migrateToMasterUser: S,
198
197
  syncUsersMeta: D
199
198
  };
200
- }), B = () => {
199
+ }), z = () => {
201
200
  const e = h();
202
201
  return {
203
202
  ...e,
@@ -206,5 +205,5 @@ const h = $("employee", () => {
206
205
  };
207
206
  export {
208
207
  o as E,
209
- B as u
208
+ z as u
210
209
  };
@@ -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-n6d4AmtP.js";
3
+ import { g as s, a as v, b as o } from "./restaurant-D2mfKHaH.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-n6d4AmtP.js";
1
+ import { f as B } from "./app-D-MUq9Ab.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-n6d4AmtP.js";
1
+ import { f as jt } from "./app-D-MUq9Ab.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license