@feedmepos/mf-hrm-portal 2.3.2-dev.2 → 2.3.2-dev.20

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 (82) hide show
  1. package/dist/{ApprovalCodeList-sHnINTik.js → ApprovalCodeList-eCTF8Rwt.js} +7 -7
  2. package/dist/AuditLogList-YzR5ysmN.js +2021 -0
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BbsPesWY.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang--660w-zJ.js} +2 -2
  4. package/dist/{EmployeeList-D4oy5hXz.js → EmployeeList-C2ctTGCo.js} +8 -8
  5. package/dist/{FormSection.vue_vue_type_script_setup_true_lang-Cl053Tg1.js → FormSection.vue_vue_type_script_setup_true_lang-DWvJM14K.js} +1 -1
  6. package/dist/{GrantUserList-LWpqhl-5.js → GrantUserList-BoN1MUkB.js} +8 -8
  7. package/dist/{Main-PBJjfzBg.js → Main-BLmTdeYO.js} +5 -5
  8. package/dist/{Main-BWKb-QIE.js → Main-CIldvI5X.js} +2274 -2280
  9. package/dist/{Main-CVGiOYpC.js → Main-Di-083Pw.js} +29 -29
  10. package/dist/MyPosProfile-CctvT3RF.js +360 -0
  11. package/dist/{PermissionSetList-D2qZVlF4.js → PermissionSetList-BzvVAzwG.js} +126 -126
  12. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-JgrJvMly.js +4212 -0
  13. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DRGTxOMW.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BdjAh48A.js} +414 -448
  14. package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-DFDTw0lj.js → RoleForm.vue_vue_type_script_setup_true_lang-WCNUeA3G.js} +74 -74
  15. package/dist/{RoleList-DG0crFzW.js → RoleList-wPupuMBG.js} +7 -7
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cs0rhCa3.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DcBIt4DL.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-C4J6jYtG.js → ScheduleGeneralPage-NCKqPyt5.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-3UqO6uPu.js → ScheduleModal.vue_vue_type_script_setup_true_lang-CG5Xxj3Q.js} +4 -4
  19. package/dist/{SchedulePage-ICzggri0.js → SchedulePage-BZ5bKLly.js} +197 -209
  20. package/dist/{SchedulePositionPage-BshUCd_C.js → SchedulePositionPage-CwHd3rf2.js} +3 -3
  21. package/dist/{SelectFilter-D9T0nFvG.js → SelectFilter-DLZNvKwI.js} +2 -3
  22. package/dist/TeamMemberList-D8uWsS0J.js +2082 -0
  23. package/dist/TimesheetList-K6doo0BX.js +408 -0
  24. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BLqgALLe.js → TimesheetList.vue_vue_type_style_index_0_scoped_ffd7f807_lang-DFoIix3D.js} +7 -7
  25. package/dist/{app-n6d4AmtP.js → app-BGzac7xv.js} +5618 -4632
  26. package/dist/app.js +1 -1
  27. package/dist/{approval-code-1j1OoXt1.js → approval-code-BBNbWSqR.js} +4 -4
  28. package/dist/{dayjs.min-DdNivv4b.js → dayjs.min-ey-9Jb-9.js} +20 -20
  29. package/dist/employee-D_COMGXq.js +237 -0
  30. package/dist/{grant-user-BmTyexk3.js → grant-user-CTTTpewT.js} +2 -2
  31. package/dist/{iteration-y_jodvfN.js → index-CTqdA7gA.js} +573 -558
  32. package/dist/{lodash-B2eWEGH4.js → lodash-DNSDZgnL.js} +1 -1
  33. package/dist/member-grant-5DnD17dB.js +54 -0
  34. package/dist/restaurant-qoOY3iMJ.js +49 -0
  35. package/dist/role-BEbd5Qsi.js +91 -0
  36. package/dist/rule-BLG5i_xT.js +845 -0
  37. package/dist/src/api/audit-log/index.d.ts +2 -0
  38. package/dist/src/api/my-pos-profile/index.d.ts +1 -3
  39. package/dist/src/composables/useTenant.d.ts +11 -0
  40. package/dist/src/helpers/employee-merge.d.ts +33 -0
  41. package/dist/src/helpers/iteration.d.ts +9 -2
  42. package/dist/src/helpers/permission-set.d.ts +1 -102
  43. package/dist/src/helpers/restaurant-lookup.d.ts +19 -0
  44. package/dist/src/helpers/role-merge.d.ts +11 -0
  45. package/dist/src/helpers/rule.d.ts +2 -2
  46. package/dist/src/router/courtGuard.d.ts +4 -0
  47. package/dist/src/stores/approval-code.d.ts +1 -1
  48. package/dist/src/stores/employee.d.ts +2 -2
  49. package/dist/src/stores/grant-user.d.ts +1 -1
  50. package/dist/src/stores/permission-assignment.d.ts +2 -2
  51. package/dist/src/stores/permission-set.d.ts +2 -2
  52. package/dist/src/stores/restaurant.d.ts +2 -2
  53. package/dist/src/stores/role.d.ts +2 -2
  54. package/dist/src/stores/team.d.ts +2 -2
  55. package/dist/src/stores/timesheet.d.ts +2 -2
  56. package/dist/src/types/my-pos-profile.d.ts +2 -3
  57. package/dist/src/views/audit-log/constants.d.ts +1 -1
  58. package/dist/src/views/audit-log/locales/index.d.ts +56 -0
  59. package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
  60. package/dist/src/views/hr/locales/index.d.ts +4 -4
  61. package/dist/src/views/hr/timesheet/timesheet-view.d.ts +29 -0
  62. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +1 -1
  63. package/dist/src/views/my-pos-profile/locales/index.d.ts +40 -4
  64. package/dist/style.css +1 -1
  65. package/dist/tsconfig.app.tsbuildinfo +1 -1
  66. package/dist/{useAppStore-BPARQyvJ.js → useAppStore-BwUs5XGY.js} +1 -1
  67. package/dist/{useLoading-iPESFb6R.js → useLoading-DmAqc_Gx.js} +1 -1
  68. package/dist/useMessage-_ywT_N9X.js +17 -0
  69. package/dist/useReportPermissions-PEzIBX1U.js +80 -0
  70. package/dist/useSsoProviders-CwLbvOdH.js +41 -0
  71. package/package.json +5 -5
  72. package/dist/AuditLogList-C9C2emU9.js +0 -1950
  73. package/dist/MyPosProfile-BQCBFMFw.js +0 -301
  74. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ZSREAS1r.js +0 -4243
  75. package/dist/TeamMemberList-C970Iqlj.js +0 -2086
  76. package/dist/TimesheetList-nxhr0EWj.js +0 -402
  77. package/dist/employee-BlfleiCU.js +0 -210
  78. package/dist/member-grant-CzZUdO_s.js +0 -55
  79. package/dist/restaurant-Dl6yx37M.js +0 -51
  80. package/dist/role-DfZi7Ssk.js +0 -93
  81. package/dist/rule-ChmhcGgA.js +0 -788
  82. package/dist/useReportPermissions-By-BoJZb.js +0 -82
@@ -1,17 +1,17 @@
1
- import { defineComponent as ze, computed as y, ref as C, watch as q, onMounted as Le, resolveComponent as w, createBlock as E, openBlock as h, unref as o, withCtx as V, createElementVNode as c, createVNode as _, toDisplayString as M, createElementBlock as S, Fragment as z, renderList as ee, createCommentVNode as te, normalizeClass as he } from "vue";
2
- import { l as W } from "./lodash-B2eWEGH4.js";
3
- import { e as be } from "./iteration-y_jodvfN.js";
1
+ import { defineComponent as ze, computed as y, ref as D, watch as T, onMounted as Le, resolveComponent as w, createBlock as M, openBlock as h, unref as o, withCtx as V, createElementVNode as c, createVNode as _, toDisplayString as O, createElementBlock as S, Fragment as z, renderList as ee, createCommentVNode as te, normalizeClass as he } from "vue";
2
+ import { l as W } from "./lodash-DNSDZgnL.js";
3
+ import { e as be } from "./index-CTqdA7gA.js";
4
4
  import { useI18n as Ne } from "@feedmepos/mf-common";
5
- import { useBreakpoints as Ke, useSnackbar as Te, components as qe } from "@feedmepos/ui-library";
6
- import { u as We, _ as Ge, a as _e } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BbsPesWY.js";
5
+ import { useBreakpoints as qe, useSnackbar as Ke, components as Te } from "@feedmepos/ui-library";
6
+ import { u as We, _ as Ge, a as _e } from "./ConditionBuilderForm.vue_vue_type_script_setup_true_lang--660w-zJ.js";
7
7
  import { u as Je } from "./useDiscardConfirm-CzZSPyvh.js";
8
- import { u as He } from "./useLoading-iPESFb6R.js";
9
- import { u as Qe } from "./useReportPermissions-By-BoJZb.js";
10
- import { D as Xe, l as Ye, A as Ze, S as et } from "./app-n6d4AmtP.js";
11
- import { r as ae, h as tt, e as at, s as st, i as ge, j as lt } from "./rule-ChmhcGgA.js";
12
- import { u as rt } from "./restaurant-Dl6yx37M.js";
13
- import { u as ot } from "./role-DfZi7Ssk.js";
14
- function Tt(d) {
8
+ import { u as He } from "./useLoading-DmAqc_Gx.js";
9
+ import { u as Qe } from "./useReportPermissions-PEzIBX1U.js";
10
+ import { n as Xe, q as Ye, A as Ze, S as et } from "./app-BGzac7xv.js";
11
+ import { r as ae, h as tt, d as at, s as st, g as ge, e as lt } from "./rule-BLG5i_xT.js";
12
+ import { u as rt } from "./restaurant-qoOY3iMJ.js";
13
+ import { u as ot } from "./role-BEbd5Qsi.js";
14
+ function Kt(d) {
15
15
  const n = [];
16
16
  for (const { restaurantId: m, roleId: a } of d) {
17
17
  if (!m) continue;
@@ -20,7 +20,7 @@ function Tt(d) {
20
20
  }
21
21
  return n;
22
22
  }
23
- function qt(d) {
23
+ function Tt(d) {
24
24
  return d.flatMap(
25
25
  (n) => n.restaurantIds.map((m) => ({ restaurantId: m, roleId: n.roleId }))
26
26
  );
@@ -68,7 +68,7 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
68
68
  }, ht = { class: "flex flex-col gap-8" }, bt = { class: "flex flex-col gap-16 rounded-[16px] border border-fm-color-neutral-gray-200 p-16" }, _t = { class: "flex flex-col gap-8" }, gt = { class: "fm-typo-en-title-sm-600" }, yt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xt = { class: "flex flex-col gap-24" }, Rt = { class: "text-[18px] font-semibold leading-[24px] text-fm-color-typo-primary" }, It = { class: "mt-16 space-y-8" }, Ft = { class: "flex items-center" }, kt = { class: "h-[24px] w-[24px] flex items-center justify-center" }, wt = { class: "h-[24px] w-[24px] flex items-center justify-center" }, Vt = {
69
69
  key: 0,
70
70
  class: "ml-20 mt-8 flex max-w-[320px] flex-row items-start gap-8"
71
- }, Dt = { class: "mt-8 whitespace-nowrap" }, Ct = { class: "flex gap-8 items-center justify-start" }, St = "condition-form-select-menu", Xt = /* @__PURE__ */ ze({
71
+ }, Ct = { class: "mt-8 whitespace-nowrap" }, Dt = { class: "flex gap-8 items-center justify-start" }, St = "condition-form-select-menu", Xt = /* @__PURE__ */ ze({
72
72
  __name: "RoleForm",
73
73
  props: {
74
74
  id: {
@@ -88,22 +88,22 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
88
88
  },
89
89
  emits: ["created"],
90
90
  setup(d, { expose: n, emit: m }) {
91
- const { t: a } = Ne(), { breakpoints: u } = Ke(), x = y(() => u.value.xs || u.value.sm), v = rt(), P = y(() => v.restaurants.value), le = C(v.restaurants.value.length === 0);
92
- q(
91
+ const { t: a } = Ne(), { breakpoints: u } = qe(), x = y(() => u.value.xs || u.value.sm), v = rt(), P = y(() => v.restaurants.value), le = D(v.restaurants.value.length === 0);
92
+ T(
93
93
  () => v.restaurants.value.length,
94
94
  (e) => {
95
95
  e > 0 && (le.value = !1);
96
96
  }
97
97
  );
98
- const B = ot(), ye = Te(), xe = He(ye), {
98
+ const B = ot(), ye = Ke(), xe = He(ye), {
99
99
  fetchReportPermissions: re,
100
100
  allReportPermissions: Re,
101
101
  availableReportKeys: oe,
102
102
  customReportKeys: Ie,
103
103
  isLoaded: Fe
104
- } = Qe(), L = d, ke = m, R = C(!1), we = () => {
104
+ } = Qe(), L = d, ke = m, R = D(!1), we = () => {
105
105
  R.value = !R.value, R.value && fe();
106
- }, Ve = y(() => L.id ? a("hr.role.form.update") : a("hr.role.form.addTitle")), De = y(() => L.id ? a("common.update") : a("hr.role.form.add")), G = y(() => {
106
+ }, Ve = y(() => L.id ? a("hr.role.form.update") : a("hr.role.form.addTitle")), Ce = y(() => L.id ? a("common.update") : a("hr.role.form.add")), G = y(() => {
107
107
  const e = Xe.filter(
108
108
  (l) => l.subject !== be.F_RULE_SUBJECT.enum.report
109
109
  ).map((l) => ae(l)), t = Re.value.map((l) => ae(l));
@@ -113,7 +113,7 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
113
113
  restaurantIds: [],
114
114
  permissions: [],
115
115
  maxDiscountPercentage: 100
116
- }), s = C(N()), J = C([]), K = C([]), ne = C([]), I = C(/* @__PURE__ */ new Map()), U = We(I), H = Ye("report");
116
+ }), s = D(N()), J = D([]), q = D([]), ne = D([]), I = D(/* @__PURE__ */ new Map()), U = We(I), H = Ye("report");
117
117
  function ue(e) {
118
118
  const t = I.value.get(e);
119
119
  return !!t && Object.keys(t).length > 0;
@@ -127,31 +127,31 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
127
127
  function de(e, t, l) {
128
128
  U.setDraft({ subject: e, builderKey: t.builderKey }, { formValue: l });
129
129
  }
130
- const Q = C(null);
130
+ const Q = D(null);
131
131
  function me(e, t) {
132
132
  if (U.getDraftsForSubject(e).size === 0) {
133
133
  t == null || t();
134
134
  return;
135
135
  }
136
136
  const p = [];
137
- for (const D of H) {
138
- const O = U.getDraft({ subject: e, builderKey: D.builderKey });
139
- O && p.push({ builder: D, form: O.formValue });
137
+ for (const C of H) {
138
+ const j = U.getDraft({ subject: e, builderKey: C.builderKey });
139
+ j && p.push({ builder: C, form: j.formValue });
140
140
  }
141
141
  if (p.length === 0) {
142
142
  t == null || t();
143
143
  return;
144
144
  }
145
- const j = I.value.get(e), F = et(
146
- j,
147
- p.map(({ builder: D, form: O }) => ({ builder: D, formValue: O }))
145
+ const E = I.value.get(e), F = et(
146
+ E,
147
+ p.map(({ builder: C, form: j }) => ({ builder: C, formValue: j }))
148
148
  ), k = new Map(I.value);
149
149
  Object.keys(F).length === 0 ? k.delete(e) : k.set(e, F), I.value = k, U.clearDraftsForSubject(e), t == null || t();
150
150
  }
151
151
  function ce(e) {
152
152
  return U.hasDraftsForSubject(e);
153
153
  }
154
- const Ce = y(() => [
154
+ const De = y(() => [
155
155
  {
156
156
  title: a("hr.role.labels.operation"),
157
157
  filter: (e) => e.isOrderOperation
@@ -191,35 +191,35 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
191
191
  s.value.restaurantIds = P.value.map((t) => t._id), s.value.permissions = G.value.map((t) => t.value);
192
192
  else if (b.value) {
193
193
  s.value.restaurantIds = b.value.restaurants.map((F) => F.id);
194
- const t = new Set(G.value.map((F) => F.value)), { values: l, passthrough: p, dropped: j } = st(
194
+ const t = new Set(G.value.map((F) => F.value)), { values: l, passthrough: p, dropped: E } = st(
195
195
  b.value.permissions,
196
196
  t
197
197
  );
198
- J.value = p, j.length > 0 && console.warn("Dropping corrupted role permissions (repaired on save):", j), s.value.permissions = X(l), s.value.maxDiscountPercentage = ge(
198
+ J.value = p, E.length > 0 && console.warn("Dropping corrupted role permissions (repaired on save):", E), s.value.permissions = X(l), s.value.maxDiscountPercentage = ge(
199
199
  b.value.permissions
200
200
  );
201
201
  for (const F of b.value.permissions) {
202
- const k = ae(F), D = lt(F);
203
- D && I.value.set(k.value, D);
202
+ const k = ae(F), C = lt(F);
203
+ C && I.value.set(k.value, C);
204
204
  }
205
205
  } else
206
206
  s.value.restaurantIds = [...L.restaurantIds];
207
- K.value = [...s.value.permissions], ne.value = [...s.value.restaurantIds];
207
+ q.value = [...s.value.permissions], ne.value = [...s.value.restaurantIds];
208
208
  }
209
209
  Le(async () => {
210
210
  await v.readRestaurants(), await re(), R.value || fe();
211
- }), q(R, async (e) => {
211
+ }), T(R, async (e) => {
212
212
  e && await re();
213
- }), q(oe, () => {
213
+ }), T(oe, () => {
214
214
  if (R.value && b.value && !g.value) {
215
- s.value.permissions = X(s.value.permissions), K.value = X(K.value);
215
+ s.value.permissions = X(s.value.permissions), q.value = X(q.value);
216
216
  const e = new Map(I.value);
217
217
  for (const t of e.keys())
218
218
  t.startsWith($) && !s.value.permissions.includes(t) && e.delete(t);
219
219
  I.value = e;
220
220
  }
221
221
  });
222
- const Se = C(""), Pe = y(() => ({
222
+ const Se = D(""), Pe = y(() => ({
223
223
  restaurantIds: s.value.restaurantIds,
224
224
  role: {
225
225
  name: s.value.name,
@@ -251,30 +251,30 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
251
251
  ), R.value = !1;
252
252
  }, Y = y(
253
253
  () => s.value.restaurantIds.filter((e) => P.value.some((t) => t._id === e))
254
- ), Z = y(() => P.value.length > 0 && P.value.length === Y.value.length), je = y(() => Y.value.length > 0 && !Z.value), Ee = () => {
254
+ ), Z = y(() => P.value.length > 0 && P.value.length === Y.value.length), Ee = y(() => Y.value.length > 0 && !Z.value), Me = () => {
255
255
  const e = s.value.restaurantIds.filter((t) => !Y.value.includes(t));
256
256
  Z.value === !0 ? s.value.restaurantIds = e : s.value.restaurantIds = P.value.map((t) => t._id);
257
- }, pe = (e) => e.map((l) => l.value).every((l) => s.value.permissions.includes(l)), Me = (e) => {
257
+ }, pe = (e) => e.map((l) => l.value).every((l) => s.value.permissions.includes(l)), Oe = (e) => {
258
258
  const t = e.filter(
259
259
  (l) => s.value.permissions.includes(l.value)
260
260
  ).length;
261
261
  return t === 1 ? a("hr.role.form.permissionAllowed") : a("hr.role.form.permissionsAllowed", { count: t });
262
- }, Oe = (e) => {
262
+ }, je = (e) => {
263
263
  const t = s.value.permissions.filter(
264
264
  (l) => !e.map((p) => p.value).includes(l)
265
265
  );
266
266
  pe(e) === !0 ? s.value.permissions = t : s.value.permissions = [...t, ...e.map((l) => l.value)];
267
267
  };
268
- q(
268
+ T(
269
269
  () => s.value.restaurantIds,
270
270
  (e) => {
271
271
  e.length > 0 && (Se.value = "");
272
272
  }
273
273
  );
274
- const T = Je(
274
+ const K = Je(
275
275
  () => {
276
276
  var e, t;
277
- return !W.isEqual(s.value.name, ((e = b.value) == null ? void 0 : e.name) || N().name) || !W.isEqual(s.value.restaurantIds, ne.value) || !W.isEqual(s.value.permissions, K.value) || !W.isEqual(
277
+ return !W.isEqual(s.value.name, ((e = b.value) == null ? void 0 : e.name) || N().name) || !W.isEqual(s.value.restaurantIds, ne.value) || !W.isEqual(s.value.permissions, q.value) || !W.isEqual(
278
278
  s.value.maxDiscountPercentage,
279
279
  b.value ? ge((t = b.value) == null ? void 0 : t.permissions) : N().maxDiscountPercentage
280
280
  );
@@ -287,44 +287,44 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
287
287
  show: R,
288
288
  trigger: we
289
289
  }), (e, t) => {
290
- const l = w("FmButton"), p = w("FmIcon"), j = w("FmTextField"), F = w("FmCircularProgress"), k = w("FmCheckbox"), D = w("FmFormGroup"), O = w("FmBottomSheet"), Ae = w("FmPopover"), ve = w("fm-button"), Be = w("fm-side-sheet");
291
- return h(), E(Be, {
290
+ const l = w("FmButton"), p = w("FmIcon"), E = w("FmTextField"), F = w("FmCircularProgress"), k = w("FmCheckbox"), C = w("FmFormGroup"), j = w("FmBottomSheet"), Ae = w("FmPopover"), ve = w("fm-button"), Be = w("fm-side-sheet");
291
+ return h(), M(Be, {
292
292
  id: "unit-form",
293
293
  modelValue: R.value,
294
294
  "onUpdate:modelValue": t[5] || (t[5] = (f) => R.value = f),
295
- "is-container": o(qe).FmForm,
295
+ "is-container": o(Te).FmForm,
296
296
  "is-container-props": {
297
297
  onValidationSuccess: Ue,
298
298
  blameFormChildOnValidationFailed: !0
299
299
  },
300
300
  "max-width": 960,
301
301
  "close-button": !1,
302
- "onOn:clickedAway": o(T)
302
+ "onOn:clickedAway": o(K)
303
303
  }, {
304
304
  "side-sheet-header": V(() => [
305
305
  c("div", ut, [
306
- d.showBack ? (h(), E(l, {
306
+ d.showBack ? (h(), M(l, {
307
307
  key: 0,
308
308
  icon: "arrow_back",
309
309
  variant: "tertiary",
310
310
  size: "md",
311
311
  "text-color": "neutral-gray-500",
312
312
  "data-testid": "role-form-back",
313
- onClick: o(T)
313
+ onClick: o(K)
314
314
  }, null, 8, ["onClick"])) : te("", !0),
315
- c("p", it, M(Ve.value), 1),
315
+ c("p", it, O(Ve.value), 1),
316
316
  _(p, {
317
317
  name: "close",
318
318
  size: "md",
319
319
  class: "cursor-pointer",
320
- onClick: o(T)
320
+ onClick: o(K)
321
321
  }, null, 8, ["onClick"])
322
322
  ])
323
323
  ]),
324
324
  "side-sheet-footer": V(() => [
325
- c("div", Ct, [
325
+ c("div", Dt, [
326
326
  _(ve, {
327
- label: De.value,
327
+ label: Ce.value,
328
328
  size: "md",
329
329
  type: "submit",
330
330
  variant: "primary",
@@ -334,15 +334,15 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
334
334
  label: o(a)("common.cancel"),
335
335
  size: "md",
336
336
  variant: "tertiary",
337
- onClick: o(T)
337
+ onClick: o(K)
338
338
  }, null, 8, ["label", "onClick"])
339
339
  ])
340
340
  ]),
341
341
  default: V(() => [
342
342
  c("div", dt, [
343
343
  c("section", mt, [
344
- c("p", ct, M(o(a)("hr.role.form.roleDetail")), 1),
345
- _(j, {
344
+ c("p", ct, O(o(a)("hr.role.form.roleDetail")), 1),
345
+ _(E, {
346
346
  modelValue: s.value.name,
347
347
  "onUpdate:modelValue": t[0] || (t[0] = (f) => s.value.name = f),
348
348
  autofocus: "",
@@ -353,10 +353,10 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
353
353
  }, null, 8, ["modelValue", "rules", "label", "placeholder", "disabled"])
354
354
  ]),
355
355
  c("section", ft, [
356
- c("p", pt, M(o(a)("hr.role.form.restaurant")), 1),
356
+ c("p", pt, O(o(a)("hr.role.form.restaurant")), 1),
357
357
  le.value ? (h(), S("div", vt, [
358
358
  _(F)
359
- ])) : (h(), E(D, {
359
+ ])) : (h(), M(C, {
360
360
  key: 1,
361
361
  modelValue: s.value.restaurantIds,
362
362
  "onUpdate:modelValue": t[2] || (t[2] = (f) => s.value.restaurantIds = f),
@@ -366,13 +366,13 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
366
366
  c("div", ht, [
367
367
  _(k, {
368
368
  "model-value": Z.value,
369
- indeterminate: je.value,
369
+ indeterminate: Ee.value,
370
370
  label: o(a)("hr.role.form.all"),
371
371
  value: "1",
372
372
  disabled: g.value,
373
- "onUpdate:modelValue": Ee
373
+ "onUpdate:modelValue": Me
374
374
  }, null, 8, ["model-value", "indeterminate", "label", "disabled"]),
375
- (h(!0), S(z, null, ee(P.value, (f) => (h(), E(k, {
375
+ (h(!0), S(z, null, ee(P.value, (f) => (h(), M(k, {
376
376
  key: f._id,
377
377
  modelValue: s.value.restaurantIds,
378
378
  "onUpdate:modelValue": t[1] || (t[1] = (r) => s.value.restaurantIds = r),
@@ -387,20 +387,20 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
387
387
  ]),
388
388
  c("section", bt, [
389
389
  c("div", _t, [
390
- c("p", gt, M(o(a)("hr.role.form.permissions")), 1),
391
- c("p", yt, M(o(a)("hr.role.form.permissionsSubtitle")), 1)
390
+ c("p", gt, O(o(a)("hr.role.form.permissions")), 1),
391
+ c("p", yt, O(o(a)("hr.role.form.permissionsSubtitle")), 1)
392
392
  ]),
393
393
  c("div", xt, [
394
- (h(!0), S(z, null, ee(Ce.value, (f) => (h(), S("div", {
394
+ (h(!0), S(z, null, ee(De.value, (f) => (h(), S("div", {
395
395
  key: f.title
396
396
  }, [
397
397
  _(Ge, {
398
398
  layout: "leading",
399
399
  "initially-collapsed": "",
400
- subtitle: Me(f.options)
400
+ subtitle: Oe(f.options)
401
401
  }, {
402
402
  title: V(() => [
403
- c("p", Rt, M(f.title), 1)
403
+ c("p", Rt, O(f.title), 1)
404
404
  ]),
405
405
  default: V(() => [
406
406
  c("div", It, [
@@ -409,7 +409,7 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
409
409
  label: o(a)("hr.role.form.all"),
410
410
  value: "1",
411
411
  disabled: g.value,
412
- "onUpdate:modelValue": (r) => Oe(f.options)
412
+ "onUpdate:modelValue": (r) => je(f.options)
413
413
  }, null, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"]),
414
414
  t[6] || (t[6] = c("div", { class: "h-px w-full bg-fm-color-neutral-gray-200" }, null, -1)),
415
415
  (h(!0), S(z, null, ee(f.options, (r) => (h(), S("div", {
@@ -426,7 +426,7 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
426
426
  }, null, 8, ["modelValue", "label", "value", "disabled"]),
427
427
  r.value.startsWith("report:") ? (h(), S(z, { key: 0 }, [
428
428
  s.value.permissions.includes(r.value) ? (h(), S(z, { key: 0 }, [
429
- x.value ? (h(), E(O, {
429
+ x.value ? (h(), M(j, {
430
430
  key: 0,
431
431
  "model-value": Q.value === r.value,
432
432
  header: r.label,
@@ -461,7 +461,7 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
461
461
  }, null, 8, ["builders", "form-value-for", "has-changes", "disable", "onUpdateForm", "onApply"])
462
462
  ]),
463
463
  _: 2
464
- }, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (h(), E(Ae, {
464
+ }, 1032, ["model-value", "header", "onUpdate:modelValue"])) : (h(), M(Ae, {
465
465
  key: 1,
466
466
  disabled: g.value,
467
467
  "z-index": 100,
@@ -496,7 +496,7 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
496
496
  ]),
497
497
  _: 2
498
498
  }, 1032, ["disabled", "exclude-el-from-click-outside", "onPopoverChanged"]))
499
- ], 64)) : (h(), E(p, {
499
+ ], 64)) : (h(), M(p, {
500
500
  key: 1,
501
501
  name: "settings",
502
502
  size: "sm",
@@ -505,8 +505,8 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
505
505
  ], 64)) : te("", !0)
506
506
  ]),
507
507
  r.value === "order:discount" && s.value.permissions.includes(r.value) ? (h(), S("div", Vt, [
508
- c("div", Dt, M(o(a)("hr.role.form.maxDiscountPercentage")), 1),
509
- _(j, {
508
+ c("div", Ct, O(o(a)("hr.role.form.maxDiscountPercentage")), 1),
509
+ _(E, {
510
510
  modelValue: s.value.maxDiscountPercentage,
511
511
  "onUpdate:modelValue": t[4] || (t[4] = (i) => s.value.maxDiscountPercentage = i),
512
512
  rules: [
@@ -536,12 +536,12 @@ const ut = { class: "flex w-full items-center gap-4" }, it = { class: "min-w-0 f
536
536
  });
537
537
  export {
538
538
  Xt as _,
539
- qt as a,
539
+ Tt as a,
540
540
  Jt as b,
541
541
  Qt as c,
542
542
  nt as d,
543
543
  Ht as p,
544
544
  Gt as r,
545
545
  Wt as s,
546
- Tt as t
546
+ Kt as t
547
547
  };
@@ -1,15 +1,15 @@
1
1
  import { computed as g, defineComponent as se, ref as U, onMounted as te, resolveComponent as x, createElementBlock as $, openBlock as h, Fragment as A, createBlock as R, createElementVNode as r, createVNode as m, unref as a, withCtx as b, h as u, renderList as ne, toDisplayString as p, createTextVNode as T, resolveDynamicComponent as z, withModifiers as re, nextTick as K } from "vue";
2
- import { e as d } from "./iteration-y_jodvfN.js";
2
+ import { e as d } from "./index-CTqdA7gA.js";
3
3
  import { useI18n as ae } from "@feedmepos/mf-common";
4
4
  import { useDialog as le, useSnackbar as ie, useBreakpoints as ce, components as D, FmButtonColorThemeVariant as me } from "@feedmepos/ui-library";
5
- import { _ as ue } from "./app-n6d4AmtP.js";
5
+ import { _ as ue } from "./app-BGzac7xv.js";
6
6
  import { _ as W } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
7
7
  import { _ as de } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
8
- import { f as w, r as pe, h as fe } from "./rule-ChmhcGgA.js";
9
- import { u as j } from "./restaurant-Dl6yx37M.js";
10
- import { u as _e } from "./role-DfZi7Ssk.js";
11
- import { u as he } from "./useReportPermissions-By-BoJZb.js";
12
- import { _ as ve } from "./RoleForm.vue_vue_type_script_setup_true_lang-DFDTw0lj.js";
8
+ import { f as w, r as pe, h as fe } from "./rule-BLG5i_xT.js";
9
+ import { u as j } from "./restaurant-qoOY3iMJ.js";
10
+ import { u as _e } from "./role-BEbd5Qsi.js";
11
+ import { u as he } from "./useReportPermissions-PEzIBX1U.js";
12
+ import { _ as ve } from "./RoleForm.vue_vue_type_script_setup_true_lang-WCNUeA3G.js";
13
13
  function ge() {
14
14
  const B = j();
15
15
  return g(() => {
@@ -1,6 +1,6 @@
1
1
  import { ref as k, watch as he, computed as z, reactive as Pe, nextTick as we, defineComponent as Ne, createBlock as ne, openBlock as b, withCtx as T, createElementVNode as i, createVNode as H, toDisplayString as v, unref as o, createElementBlock as E, withDirectives as fe, withKeys as Ce, vModelText as ye, normalizeClass as ge, createTextVNode as V, createCommentVNode as Z, Fragment as Ie, renderList as Se } from "vue";
2
2
  import { useI18n as ie } from "@feedmepos/mf-common";
3
- import { az as oe, p as D, aD as ke, aE as se, aF as pe, y as Ee, aG as $e, K as te, e as _, ay as xe, av as W } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-3UqO6uPu.js";
3
+ import { az as oe, p as D, aD as ke, aE as se, aF as pe, y as Ee, aG as $e, K as te, e as _, ay as xe, av as W } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-CG5Xxj3Q.js";
4
4
  function be() {
5
5
  return oe.map((e) => ({ id: e.id, name: e.name }));
6
6
  }
@@ -2,8 +2,8 @@ import { ref as b, reactive as Y, computed as L, defineComponent as N, createBlo
2
2
  import { useRouter as K } from "vue-router";
3
3
  import { useSnackbar as j } from "@feedmepos/ui-library";
4
4
  import { useCoreStore as F, useI18n as E } from "@feedmepos/mf-common";
5
- import { R as G } from "./app-n6d4AmtP.js";
6
- import { b as g, o as A, g as V, V as J, a1 as z, p as U, ay as Q, av as C, aA as X, aB as Z, ai as ee, ax as se } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-3UqO6uPu.js";
5
+ import { R as G } from "./app-BGzac7xv.js";
6
+ import { b as g, o as A, g as V, V as J, a1 as z, p as U, ay as Q, av as C, aA as X, aB as Z, ai as ee, ax as se } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-CG5Xxj3Q.js";
7
7
  const te = [
8
8
  { key: "payrates", labelKey: "scheduling.general.payRates" },
9
9
  { key: "overtime", labelKey: "scheduling.general.overtime" },
@@ -1,10 +1,10 @@
1
1
  import { onMounted as Re, onBeforeUnmount as $e, ref as S, reactive as T, shallowRef as Ae, watch as Be, computed as Y, defineComponent as xe, createElementBlock as M, openBlock as C, renderSlot as Xe, useAttrs as pa, nextTick as ke, normalizeClass as he, createElementVNode as x, createBlock as ha, mergeProps as va, toDisplayString as z, Teleport as ga, createCommentVNode as G, withDirectives as Da, unref as Ee, vModelText as wa, Fragment as be, renderList as Ha, createTextVNode as Aa, withModifiers as Ea, normalizeStyle as ba } from "vue";
2
2
  import { useRoute as Pa, useRouter as Sa } from "vue-router";
3
3
  import { useCoreStore as Je, useI18n as ka } from "@feedmepos/mf-common";
4
- import { u as Ca } from "./restaurant-Dl6yx37M.js";
5
- import { g, b as p } from "./app-n6d4AmtP.js";
6
- import { E as Ce, u as Ze } from "./employee-BlfleiCU.js";
7
- import { t as Fe, d as Ma } from "./rule-ChmhcGgA.js";
4
+ import { u as Ca } from "./restaurant-qoOY3iMJ.js";
5
+ import { g, b as p } from "./app-BGzac7xv.js";
6
+ import { E as Ce, u as Ze } from "./employee-D_COMGXq.js";
7
+ import { t as Fe, c as Ma } from "./rule-BLG5i_xT.js";
8
8
  function io(e) {
9
9
  let a = null;
10
10
  function t() {