@feedmepos/mf-hrm-portal 2.0.11-dev.2 → 2.0.11-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 (24) hide show
  1. package/dist/{AuditLogList-CPCwaKH1.js → AuditLogList-E_BtUYs7.js} +5 -5
  2. package/dist/{EmployeeList-CnioGTrn.js → EmployeeList-D758_PXx.js} +5 -5
  3. package/dist/{Main-DcM7-Kf8.js → Main-Bqx0FFmH.js} +9 -9
  4. package/dist/{Main-BfqR98z8.js → Main-DjCFRKkP.js} +4 -4
  5. package/dist/{Main-CiC6919R.js → Main-eVW0teSe.js} +6 -6
  6. package/dist/{PermissionSetList-YAJeeVq4.js → PermissionSetList-DL5AL3mB.js} +5 -5
  7. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BWwzKIj4.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CMcQnqyK.js} +536 -536
  8. package/dist/{RoleList-DLRKQTNn.js → RoleList-DuXjqXwQ.js} +7 -7
  9. package/dist/{TeamMemberList-WGkdgvP7.js → TeamMemberList-BHpOC5vA.js} +45 -45
  10. package/dist/{TimesheetList-FC5d0cQs.js → TimesheetList-Bz9ZMpHA.js} +7 -7
  11. package/dist/{app-hhkxg2ia.js → app-BhCUAF8K.js} +31 -31
  12. package/dist/app.js +1 -1
  13. package/dist/{dayjs.min-CmSGUQz6.js → dayjs.min-Cxe5QOx7.js} +1 -1
  14. package/dist/{employee-qLhiRdik.js → employee--8czm9KP.js} +4 -4
  15. package/dist/{index-3SJ5p2tN.js → index-CyJwEUuG.js} +1 -1
  16. package/dist/{index-DTHsTgiv.js → index-GgFsP7rK.js} +12 -12
  17. package/dist/{iteration-DE9d6AWC.js → iteration-BljyZld9.js} +1 -1
  18. package/dist/{lodash-COiHEEND.js → lodash-D2-GJ54o.js} +1 -1
  19. package/dist/{team-DRHPhNaF.js → team-C7-0IiCm.js} +1 -1
  20. package/dist/{timesheet-B8VEnofv.js → timesheet-C_WtQDqh.js} +3 -3
  21. package/dist/{useAppStore-bIHeIja6.js → useAppStore-B7R116Aw.js} +1 -1
  22. package/dist/{useLoading-hhc0q3-4.js → useLoading-CwSP2H00.js} +1 -1
  23. package/dist/{useReportPermissions-CutJVfnG.js → useReportPermissions-DVOIk2oR.js} +3 -3
  24. package/package.json +2 -2
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as he, ref as T, computed as _, onMounted as _e, watch as ue, resolveComponent as y, createBlock as k, openBlock as v, unref as t, withCtx as b, createElementVNode as h, createVNode as p, createCommentVNode as me, createElementBlock as P, Fragment as W, renderList as ae, toDisplayString as M, h as V, createTextVNode as de, resolveDynamicComponent as ce, withModifiers as we, nextTick as pe } from "vue";
2
- import { e as w } from "./iteration-DE9d6AWC.js";
2
+ import { e as w } from "./iteration-BljyZld9.js";
3
3
  import { useI18n as ge, useCoreStore as be } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as ye, components as se, useDialog as ke, useBreakpoints as Ue, FmButtonColorThemeVariant as ve, FmButtonVariant as Le } from "@feedmepos/ui-library";
5
- import { _ as Ie } from "./app-hhkxg2ia.js";
5
+ import { _ as Ie } from "./app-BhCUAF8K.js";
6
6
  import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
- import { e as Se, r as K, h as re, f as Pe, g as fe, a as Z } from "./index-DTHsTgiv.js";
8
- import { u as Fe } from "./useAppStore-bIHeIja6.js";
9
- import { u as xe } from "./useReportPermissions-CutJVfnG.js";
7
+ import { e as Se, r as K, h as re, f as Pe, g as fe, a as Z } from "./index-GgFsP7rK.js";
8
+ import { u as Fe } from "./useAppStore-B7R116Aw.js";
9
+ import { u as xe } from "./useReportPermissions-DVOIk2oR.js";
10
10
  import { u as $e, a as Te } from "./useRestaurantMap-e9fQJiLC.js";
11
- import { l as ee } from "./lodash-COiHEEND.js";
11
+ import { l as ee } from "./lodash-D2-GJ54o.js";
12
12
  import { _ as oe, a as Be } from "./FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js";
13
- import { u as De } from "./useLoading-hhc0q3-4.js";
13
+ import { u as De } from "./useLoading-CwSP2H00.js";
14
14
  const Ae = { class: "fm-typo-en-title-md-600" }, Me = { class: "space-y-40" }, Ne = { class: "space-y-8" }, Oe = { class: "space-y-8" }, Je = {
15
15
  key: 0,
16
16
  class: "w-50 ml-5 flex flex-row items-start"
@@ -1,18 +1,18 @@
1
- import { defineComponent as ae, ref as F, resolveComponent as _, createBlock as I, openBlock as v, withCtx as E, createElementVNode as m, renderSlot as be, createCommentVNode as J, withModifiers as Re, nextTick as $e, createElementBlock as q, normalizeClass as Ie, createTextVNode as Ce, toDisplayString as B, computed as S, Fragment as ue, renderList as ye, createVNode as d, unref as r, watch as Me, isRef as he, createSlots as Le } from "vue";
1
+ import { defineComponent as ae, ref as F, resolveComponent as _, createBlock as C, openBlock as v, withCtx as E, createElementVNode as m, renderSlot as be, createCommentVNode as J, withModifiers as Re, nextTick as $e, createElementBlock as q, normalizeClass as Ce, createTextVNode as Ie, toDisplayString as B, computed as S, Fragment as ue, renderList as ye, createVNode as d, unref as r, watch as Me, isRef as he, createSlots as Le } from "vue";
2
2
  import { useI18n as de, useCoreStore as ce, baseClientInstance as ge, RestaurantSelector as Ve } from "@feedmepos/mf-common";
3
3
  import { useBreakpoints as Ne, useSnackbar as Be, useDialog as Te, components as Fe } from "@feedmepos/ui-library";
4
4
  import { _ as ze, S as xe } from "./SelectFilter-DUj7GBtT.js";
5
- import { p as Se, f as qe, k as Ke, _ as Ge } from "./app-hhkxg2ia.js";
5
+ import { p as Se, f as qe, C as Ke, _ as Ge } from "./app-BhCUAF8K.js";
6
6
  import { _ as We } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
7
  import { u as De } from "./useSearch-B6WK1LBB.js";
8
- import { u as Je } from "./useLoading-hhc0q3-4.js";
9
- import { g as Ue, d as Oe } from "./iteration-DE9d6AWC.js";
10
- import { u as je, c as Xe, d as Qe, m as pe, j as Ae, p as we, k as Ye, l as Pe, n as Ze, o as He, s as et, q as tt, v as st, t as fe } from "./index-DTHsTgiv.js";
11
- import "./index-3SJ5p2tN.js";
12
- import { u as Ee } from "./useAppStore-bIHeIja6.js";
8
+ import { u as Je } from "./useLoading-CwSP2H00.js";
9
+ import { g as Ue, d as Oe } from "./iteration-BljyZld9.js";
10
+ import { u as je, c as Xe, d as Qe, m as pe, j as Ae, p as we, k as Ye, l as Pe, n as Ze, o as He, s as et, q as tt, v as st, t as fe } from "./index-GgFsP7rK.js";
11
+ import "./index-CyJwEUuG.js";
12
+ import { u as Ee } from "./useAppStore-B7R116Aw.js";
13
13
  /* empty css */
14
- import { _ as ot, a as at } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BWwzKIj4.js";
15
- import { u as lt } from "./team-DRHPhNaF.js";
14
+ import { _ as ot, a as at } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CMcQnqyK.js";
15
+ import { u as lt } from "./team-C7-0IiCm.js";
16
16
  const nt = /* @__PURE__ */ ae({
17
17
  __name: "BottomSheetMenu",
18
18
  setup(o) {
@@ -22,7 +22,7 @@ const nt = /* @__PURE__ */ ae({
22
22
  }
23
23
  return (s, u) => {
24
24
  const D = _("FmButton"), N = _("FmBottomSheet");
25
- return v(), I(N, {
25
+ return v(), C(N, {
26
26
  modelValue: f.value,
27
27
  "onUpdate:modelValue": u[1] || (u[1] = (h) => f.value = h),
28
28
  "dismiss-away": "",
@@ -30,7 +30,7 @@ const nt = /* @__PURE__ */ ae({
30
30
  "z-index": 110
31
31
  }, {
32
32
  "bottom-sheet-button": E(() => [
33
- s.$slots.button ? J("", !0) : (v(), I(D, {
33
+ s.$slots.button ? J("", !0) : (v(), C(D, {
34
34
  key: 0,
35
35
  icon: "more_vert",
36
36
  variant: "tertiary",
@@ -64,18 +64,18 @@ const nt = /* @__PURE__ */ ae({
64
64
  return v(), q("div", rt, [
65
65
  l.$slots.content ? J("", !0) : (v(), q("div", {
66
66
  key: 0,
67
- class: Ie(["flex items-center", {
67
+ class: Ce(["flex items-center", {
68
68
  "text-fm-color-typo-disabled": f.disabled,
69
69
  "cursor-pointer": !f.disabled,
70
70
  "cursor-not-allowed": f.disabled,
71
71
  [f.itemClass || ""]: f.itemClass && !f.disabled
72
72
  }])
73
73
  }, [
74
- o.icon ? (v(), I(u, {
74
+ o.icon ? (v(), C(u, {
75
75
  key: 0,
76
76
  name: o.icon
77
77
  }, null, 8, ["name"])) : J("", !0),
78
- Ce(" " + B(o.label), 1)
78
+ Ie(" " + B(o.label), 1)
79
79
  ], 2)),
80
80
  be(l.$slots, "content")
81
81
  ]);
@@ -90,9 +90,9 @@ const nt = /* @__PURE__ */ ae({
90
90
  const f = Ne(), l = S(() => f.breakpoints.value.xs);
91
91
  return (s, u) => {
92
92
  const D = _("FmButton"), N = _("FmMenuItem"), h = _("FmMenu");
93
- return l.value ? (v(), I(nt, { key: 0 }, {
93
+ return l.value ? (v(), C(nt, { key: 0 }, {
94
94
  default: E(() => [
95
- (v(!0), q(ue, null, ye(o.items, ({ icon: y, label: p, disabled: U, itemClass: x, onClick: O }) => (v(), I(it, {
95
+ (v(!0), q(ue, null, ye(o.items, ({ icon: y, label: p, disabled: U, itemClass: x, onClick: O }) => (v(), C(it, {
96
96
  key: p,
97
97
  icon: y,
98
98
  label: p,
@@ -104,7 +104,7 @@ const nt = /* @__PURE__ */ ae({
104
104
  }, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
105
105
  ]),
106
106
  _: 1
107
- })) : (v(), I(h, {
107
+ })) : (v(), C(h, {
108
108
  key: 1,
109
109
  "stop-click-propagation": "",
110
110
  shift: !0
@@ -119,7 +119,7 @@ const nt = /* @__PURE__ */ ae({
119
119
  })
120
120
  ]),
121
121
  default: E(() => [
122
- (v(!0), q(ue, null, ye(o.items, ({ label: y, disabled: p, itemClass: U, onClick: x }) => (v(), I(N, {
122
+ (v(!0), q(ue, null, ye(o.items, ({ label: y, disabled: p, itemClass: U, onClick: x }) => (v(), C(N, {
123
123
  key: y,
124
124
  disabled: p,
125
125
  label: y,
@@ -129,7 +129,7 @@ const nt = /* @__PURE__ */ ae({
129
129
  }, {
130
130
  label: E(() => [
131
131
  m("span", {
132
- class: Ie(p ? "text-fm-color-typo-disabled" : U)
132
+ class: Ce(p ? "text-fm-color-typo-disabled" : U)
133
133
  }, B(y), 3)
134
134
  ]),
135
135
  _: 2
@@ -192,7 +192,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
192
192
  }, xt = { class: "flex flex-col gap-24 w-full" }, St = {
193
193
  key: 0,
194
194
  class: "flex flex-col gap-8"
195
- }, Ut = { class: "user-info-icon user-info-icon--lg" }, wt = { class: "flex-1 overflow-hidden" }, Pt = { class: "profile-displayName" }, kt = { class: "profile-email" }, Rt = { class: "profile-phone" }, $t = { key: 2 }, It = /* @__PURE__ */ ae({
195
+ }, Ut = { class: "user-info-icon user-info-icon--lg" }, wt = { class: "flex-1 overflow-hidden" }, Pt = { class: "profile-displayName" }, kt = { class: "profile-email" }, Rt = { class: "profile-phone" }, $t = { key: 2 }, Ct = /* @__PURE__ */ ae({
196
196
  __name: "PortalUserSearcher",
197
197
  emits: ["invite"],
198
198
  setup(o, { emit: f }) {
@@ -226,7 +226,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
226
226
  }
227
227
  return (g, k) => {
228
228
  var w, R, T;
229
- const L = _("FmRadio"), X = _("FmPhoneNumber"), C = _("FmTextField"), a = _("FmRadioGroup"), n = _("FmButton");
229
+ const L = _("FmRadio"), X = _("FmPhoneNumber"), I = _("FmTextField"), a = _("FmRadioGroup"), n = _("FmButton");
230
230
  return v(), q("div", xt, [
231
231
  O.value ? J("", !0) : (v(), q("div", St, [
232
232
  d(a, {
@@ -238,7 +238,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
238
238
  value: "phone",
239
239
  label: r(s)("team.memberForm.searchUser.phoneNumber")
240
240
  }, null, 8, ["label"]),
241
- N.value === "phone" ? (v(), I(X, {
241
+ N.value === "phone" ? (v(), C(X, {
242
242
  key: 0,
243
243
  modelValue: h.value,
244
244
  "onUpdate:modelValue": k[0] || (k[0] = ($) => h.value = $),
@@ -249,7 +249,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
249
249
  value: "email",
250
250
  label: r(s)("team.memberForm.searchUser.email")
251
251
  }, null, 8, ["label"]),
252
- N.value === "email" ? (v(), I(C, {
252
+ N.value === "email" ? (v(), C(I, {
253
253
  key: 1,
254
254
  modelValue: y.value,
255
255
  "onUpdate:modelValue": k[1] || (k[1] = ($) => y.value = $),
@@ -287,7 +287,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
287
287
  ]);
288
288
  };
289
289
  }
290
- }), Ct = /* @__PURE__ */ ze(It, [["__scopeId", "data-v-c2c7ed35"]]), Mt = { class: "flex flex-col gap-40" }, Nt = { class: "flex items-center" }, Bt = { class: "flex-1 flex flex-col" }, Dt = { class: "fm-typo-en-title-sm-600" }, Ot = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, jt = { class: "flex flex-row gap-16" }, At = { class: "flex flex-col gap-8" }, Et = { class: "fm-typo-en-body-lg-400" }, Lt = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ve = 4, Tt = /* @__PURE__ */ ae({
290
+ }), It = /* @__PURE__ */ ze(Ct, [["__scopeId", "data-v-c2c7ed35"]]), Mt = { class: "flex flex-col gap-40" }, Nt = { class: "flex items-center" }, Bt = { class: "flex-1 flex flex-col" }, Dt = { class: "fm-typo-en-title-sm-600" }, Ot = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, jt = { class: "flex flex-row gap-16" }, At = { class: "flex flex-col gap-8" }, Et = { class: "fm-typo-en-body-lg-400" }, Lt = { class: "p-16 fm-corner-radius-lg border border-fm-color-neutral-gray-200" }, ve = 4, Tt = /* @__PURE__ */ ae({
291
291
  __name: "TeamMemberMasterUser",
292
292
  props: {
293
293
  modelValue: {
@@ -389,7 +389,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
389
389
  },
390
390
  { immediate: !0 }
391
391
  );
392
- const C = S({
392
+ const I = S({
393
393
  get: () => {
394
394
  var a;
395
395
  return ((a = l.modelValue) == null ? void 0 : a.roles) ?? [];
@@ -438,7 +438,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
438
438
  ]
439
439
  }, {
440
440
  default: E(() => [
441
- (v(), I(T, {
441
+ (v(), C(T, {
442
442
  key: `pin-field-${h.value}`,
443
443
  modelValue: y.value,
444
444
  "onUpdate:modelValue": n[2] || (n[2] = (c) => y.value = c),
@@ -452,8 +452,8 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
452
452
  }, 8, ["modelValue", "rules"])
453
453
  ]),
454
454
  d($, {
455
- modelValue: C.value,
456
- "onUpdate:modelValue": n[6] || (n[6] = (c) => C.value = c),
455
+ modelValue: I.value,
456
+ "onUpdate:modelValue": n[6] || (n[6] = (c) => I.value = c),
457
457
  rules: [
458
458
  (c) => !c || c.length === 0 ? r(u)("team.memberForm.masterUser.restaurantRequired") : c.some((Y) => !Y.roleId) ? r(u)("team.memberForm.masterUser.roleRequired") : !0
459
459
  ]
@@ -535,7 +535,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
535
535
  for (const b of x.value)
536
536
  b.category === Se.reports && i.add(b.subject);
537
537
  return i;
538
- }), { restaurants: k } = ce(), L = Ee().roles, X = S(() => Pe(U.value)), C = S(() => {
538
+ }), { restaurants: k } = ce(), L = Ee().roles, X = S(() => Pe(U.value)), I = S(() => {
539
539
  const i = X.value;
540
540
  return L.value.map(
541
541
  (b) => ({
@@ -601,7 +601,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
601
601
  validate: Y
602
602
  }), (i, b) => {
603
603
  const K = _("FmSelect"), G = _("FmForm");
604
- return v(), I(G, {
604
+ return v(), C(G, {
605
605
  ref_key: "formRef",
606
606
  ref: c,
607
607
  class: "mx-4"
@@ -611,16 +611,16 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
611
611
  return [
612
612
  m("div", zt, [
613
613
  m("div", qt, [
614
- o.initialValue ? (v(), I(Ft, {
614
+ o.initialValue ? (v(), C(Ft, {
615
615
  key: 1,
616
616
  data: o.initialValue
617
- }, null, 8, ["data"])) : (v(), I(Ct, {
617
+ }, null, 8, ["data"])) : (v(), C(It, {
618
618
  key: 0,
619
619
  onInvite: b[0] || (b[0] = (t) => a(t))
620
620
  }))
621
621
  ]),
622
622
  u.value || o.initialValue ? (v(), q(ue, { key: 0 }, [
623
- (j = o.initialValue) != null && j.isOwner ? J("", !0) : (v(), I(K, {
623
+ (j = o.initialValue) != null && j.isOwner ? J("", !0) : (v(), C(K, {
624
624
  key: 0,
625
625
  modelValue: h.value,
626
626
  "onUpdate:modelValue": [
@@ -634,7 +634,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
634
634
  label: r(s)("team.memberForm.permissionSet.title"),
635
635
  placeholder: r(s)("team.memberForm.permissionSet.selectPlaceholder")
636
636
  }, null, 8, ["modelValue", "items", "label", "placeholder"])),
637
- (W = o.initialValue) != null && W.isOwner ? J("", !0) : (v(), I(at, {
637
+ (W = o.initialValue) != null && W.isOwner ? J("", !0) : (v(), C(at, {
638
638
  key: 1,
639
639
  modelValue: U.value,
640
640
  "onUpdate:modelValue": b[2] || (b[2] = (t) => U.value = t),
@@ -651,7 +651,7 @@ const ut = { class: "w-full flex flex-col gap-16" }, ct = { class: "flex items-c
651
651
  ],
652
652
  "fallback-name": ((ne = o.initialValue) == null ? void 0 : ne.name) || ((re = u.value) == null ? void 0 : re.displayName) || "",
653
653
  "fallback-passcode": (e = (oe = o.initialValue) == null ? void 0 : oe.posUser) == null ? void 0 : e.passcode,
654
- roles: C.value,
654
+ roles: I.value,
655
655
  restaurants: r(k)
656
656
  }, null, 8, ["modelValue", "fallback-name", "fallback-passcode", "roles", "restaurants"])
657
657
  ], 64)) : J("", !0)
@@ -766,7 +766,7 @@ const fs = /* @__PURE__ */ ae({
766
766
  name: "info",
767
767
  class: "cursor-pointer text-fm-color-neutral-gray-300"
768
768
  }, null),
769
- content: () => d("div", null, [s("team.labels.permission"), e.permissionLabels.map((V) => d("div", null, [Ce("- "), V]))])
769
+ content: () => d("div", null, [s("team.labels.permission"), e.permissionLabels.map((V) => d("div", null, [Ie("- "), V]))])
770
770
  });
771
771
  return d("div", {
772
772
  class: "flex flex-row items-center gap-8"
@@ -796,15 +796,15 @@ const fs = /* @__PURE__ */ ae({
796
796
  const L = (e, t) => {
797
797
  if (e == ie.Update) {
798
798
  const V = k(t);
799
- R.value = V, C.value = H.UPDATE;
799
+ R.value = V, I.value = H.UPDATE;
800
800
  }
801
801
  e == ie.Remove && Q(t);
802
- }, X = Te(), C = F(H.CLOSED), a = S(() => C.value !== H.CLOSED), n = S(() => C.value === H.ADD ? s("common.add") : s("common.update")), w = S(() => C.value === H.ADD ? s("team.actions.addMember") : s("team.actions.updateMember")), R = F();
802
+ }, X = Te(), I = F(H.CLOSED), a = S(() => I.value !== H.CLOSED), n = S(() => I.value === H.ADD ? s("common.add") : s("common.update")), w = S(() => I.value === H.ADD ? s("team.actions.addMember") : s("team.actions.updateMember")), R = F();
803
803
  function T(e) {
804
- e || (C.value = H.CLOSED);
804
+ e || (I.value = H.CLOSED);
805
805
  }
806
806
  function $() {
807
- C.value = H.CLOSED;
807
+ I.value = H.CLOSED;
808
808
  }
809
809
  const {
810
810
  breakpoints: se
@@ -836,7 +836,7 @@ const fs = /* @__PURE__ */ ae({
836
836
  }), X.close();
837
837
  });
838
838
  }, c = () => {
839
- R.value = null, C.value = H.ADD;
839
+ R.value = null, I.value = H.ADD;
840
840
  }, Y = S(() => U.members), z = F(), te = F(), me = S(() => Object.values(Ke).map((e) => ({
841
841
  label: e.label,
842
842
  value: e.subject
@@ -868,7 +868,7 @@ const fs = /* @__PURE__ */ ae({
868
868
  if (!W.value) return;
869
869
  const e = await W.value.validate();
870
870
  if (!e) return;
871
- const t = C.value === H.ADD;
871
+ const t = I.value === H.ADD;
872
872
  await h.minor(async () => {
873
873
  await (t ? fe.createTeamMember(e) : fe.updateTeamMember(R.value.id, e)), $(), await oe(), await j({
874
874
  force: !0
@@ -879,7 +879,7 @@ const fs = /* @__PURE__ */ ae({
879
879
  }) : s("team.updateMember.successMessage", {
880
880
  memberName: e.name
881
881
  })
882
- }), C.value = H.CLOSED;
882
+ }), I.value = H.CLOSED;
883
883
  }
884
884
  async function re() {
885
885
  await y.readPermissionSets();
@@ -938,11 +938,11 @@ const fs = /* @__PURE__ */ ae({
938
938
  items: me.value,
939
939
  "selected-prefix": r(s)("team.filter.selected_permission_prefix"),
940
940
  placeholder: r(s)("team.filter.permission_placeholder")
941
- }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])]), Y.value.length === 0 && !x.value ? (v(), I(r(We), {
941
+ }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])])]), Y.value.length === 0 && !x.value ? (v(), C(r(We), {
942
942
  key: 0,
943
943
  title: r(s)("team.emptyState.title"),
944
944
  subtitle: r(s)("team.emptyState.description")
945
- }, null, 8, ["title", "subtitle"])) : (v(), I(Ge, {
945
+ }, null, 8, ["title", "subtitle"])) : (v(), C(Ge, {
946
946
  key: 1
947
947
  }, {
948
948
  default: E(() => [d(M, {
@@ -1,14 +1,14 @@
1
1
  import { ref as d, computed as b, defineComponent as ce, onMounted as me, watch as X, resolveComponent as i, createElementBlock as B, openBlock as D, Fragment as Z, createVNode as l, createElementVNode as u, unref as n, withCtx as C, createCommentVNode as pe, toDisplayString as $, createTextVNode as ve, createBlock as z, isRef as fe, renderList as he, nextTick as ge } from "vue";
2
- import { d as v } from "./dayjs.min-CmSGUQz6.js";
2
+ import { d as v } from "./dayjs.min-Cxe5QOx7.js";
3
3
  import { useI18n as we, useCoreStore as ye, RestaurantSelector as be } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as _e, components as De } from "@feedmepos/ui-library";
5
- import { _ as xe } from "./app-hhkxg2ia.js";
5
+ import { _ as xe } from "./app-BhCUAF8K.js";
6
6
  import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Vc5ARO29.js";
7
- import { u as ke } from "./useLoading-hhc0q3-4.js";
8
- import { c as Ce, s as Ve } from "./iteration-DE9d6AWC.js";
9
- import { b as Fe } from "./index-DTHsTgiv.js";
10
- import { u as Ye } from "./employee-qLhiRdik.js";
11
- import { u as Le } from "./timesheet-B8VEnofv.js";
7
+ import { u as ke } from "./useLoading-CwSP2H00.js";
8
+ import { c as Ce, s as Ve } from "./iteration-BljyZld9.js";
9
+ import { b as Fe } from "./index-GgFsP7rK.js";
10
+ import { u as Ye } from "./employee--8czm9KP.js";
11
+ import { u as Le } from "./timesheet-C_WtQDqh.js";
12
12
  function Me(x, a) {
13
13
  return ["years", "months"].find((S) => {
14
14
  const k = x.startOf(S), f = x.endOf(S);
@@ -3171,32 +3171,32 @@ const Er = {
3171
3171
  ],
3172
3172
  category: u.customReports,
3173
3173
  isCategoryCover: !0
3174
- }
3174
+ },
3175
3175
  // MDM
3176
- // mdmDeviceManagement: {
3177
- // label: 'Device Management',
3178
- // subject: PermissionSubjectBusinessNamespace.mdm_deviceManagement,
3179
- // actions: [PermissionAction.manage],
3180
- // category: PermissionCategory.settings,
3181
- // },
3182
- // mdmCreateDevice: {
3183
- // label: 'Create New Device',
3184
- // subject: PermissionSubjectBusinessNamespace.mdm_createDevice,
3185
- // actions: [PermissionAction.manage],
3186
- // category: PermissionCategory.settings,
3187
- // },
3188
- // mdmDeviceBinding: {
3189
- // label: 'Manage Device Binding',
3190
- // subject: PermissionSubjectBusinessNamespace.mdm_deviceBinding,
3191
- // actions: [PermissionAction.manage],
3192
- // category: PermissionCategory.settings,
3193
- // },
3194
- // mdmCustomerDisplay: {
3195
- // label: 'Manage Customer Display',
3196
- // subject: PermissionSubjectBusinessNamespace.mdm_customerDisplay,
3197
- // actions: [PermissionAction.manage, PermissionAction.read, PermissionAction.update],
3198
- // category: PermissionCategory.settings,
3199
- // },
3176
+ mdmDeviceManagement: {
3177
+ label: "Device Management",
3178
+ subject: a.mdm_deviceManagement,
3179
+ actions: [t.manage],
3180
+ category: u.settings
3181
+ },
3182
+ mdmCreateDevice: {
3183
+ label: "Create New Device",
3184
+ subject: a.mdm_createDevice,
3185
+ actions: [t.manage],
3186
+ category: u.settings
3187
+ },
3188
+ mdmDeviceBinding: {
3189
+ label: "Manage Device Binding",
3190
+ subject: a.mdm_deviceBinding,
3191
+ actions: [t.manage],
3192
+ category: u.settings
3193
+ },
3194
+ mdmCustomerDisplay: {
3195
+ label: "Manage Customer Display",
3196
+ subject: a.mdm_customerDisplay,
3197
+ actions: [t.manage, t.read, t.update],
3198
+ category: u.settings
3199
+ }
3200
3200
  // E-invoice
3201
3201
  // eInvoiceManagement: {
3202
3202
  // label: 'E-invoice Management',
@@ -4495,10 +4495,10 @@ const ce = (e) => ({
4495
4495
  }
4496
4496
  ]
4497
4497
  }
4498
- }), Br = re(O(() => import("./Main-DcM7-Kf8.js"))), br = re(O(() => import("./Main-CiC6919R.js"))), pr = re(
4499
- O(() => import("./AuditLogList-CPCwaKH1.js"))
4500
- ), fr = re(O(() => import("./Main-BfqR98z8.js"))), wr = O(() => import("./EmployeeList-CnioGTrn.js")), Mr = O(() => import("./RoleList-DLRKQTNn.js")), yr = O(() => import("./TimesheetList-FC5d0cQs.js")), Dr = O(() => import("./TeamMemberList-WGkdgvP7.js")), vr = O(
4501
- () => import("./PermissionSetList-YAJeeVq4.js")
4498
+ }), Br = re(O(() => import("./Main-Bqx0FFmH.js"))), br = re(O(() => import("./Main-eVW0teSe.js"))), pr = re(
4499
+ O(() => import("./AuditLogList-E_BtUYs7.js"))
4500
+ ), fr = re(O(() => import("./Main-DjCFRKkP.js"))), wr = O(() => import("./EmployeeList-D758_PXx.js")), Mr = O(() => import("./RoleList-DuXjqXwQ.js")), yr = O(() => import("./TimesheetList-Bz9ZMpHA.js")), Dr = O(() => import("./TeamMemberList-BHpOC5vA.js")), vr = O(
4501
+ () => import("./PermissionSetList-DL5AL3mB.js")
4502
4502
  ), Pr = [
4503
4503
  {
4504
4504
  path: "/",
@@ -4663,7 +4663,7 @@ const ce = (e) => ({
4663
4663
  };
4664
4664
  export {
4665
4665
  Za as A,
4666
- xr as C,
4666
+ Er as C,
4667
4667
  qr as I,
4668
4668
  V as R,
4669
4669
  mr as _,
@@ -4674,7 +4674,7 @@ export {
4674
4674
  Vr as f,
4675
4675
  Qs as g,
4676
4676
  Fr as i,
4677
- Er as k,
4677
+ xr as k,
4678
4678
  u as p,
4679
4679
  Pr as r,
4680
4680
  te as u
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as r, r as o } from "./app-hhkxg2ia.js";
1
+ import { a as e, i as r, r as o } from "./app-BhCUAF8K.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as Q, c as K } from "./app-hhkxg2ia.js";
1
+ import { g as Q, c as K } from "./app-BhCUAF8K.js";
2
2
  var E = { exports: {} };
3
3
  (function(V, X) {
4
4
  (function(W, k) {
@@ -1,10 +1,10 @@
1
- import { d as T } from "./dayjs.min-CmSGUQz6.js";
1
+ import { d as T } from "./dayjs.min-Cxe5QOx7.js";
2
2
  import { defineStore as _, storeToRefs as U } from "pinia";
3
3
  import { ref as I } from "vue";
4
4
  import { useCoreStore as $ } from "@feedmepos/mf-common";
5
- import { b as r, g as o, s as v } from "./iteration-DE9d6AWC.js";
6
- import { t as b, i as S } from "./index-DTHsTgiv.js";
7
- import { u as x } from "./useAppStore-bIHeIja6.js";
5
+ import { b as r, g as o, s as v } from "./iteration-BljyZld9.js";
6
+ import { t as b, i as S } from "./index-GgFsP7rK.js";
7
+ import { u as x } from "./useAppStore-B7R116Aw.js";
8
8
  const n = {
9
9
  async readEmployees() {
10
10
  return o(await r().get("/pos-users"));
@@ -2,7 +2,7 @@ var oe = Object.defineProperty;
2
2
  var se = (_, h, y) => h in _ ? oe(_, h, { enumerable: !0, configurable: !0, writable: !0, value: y }) : _[h] = y;
3
3
  var ot = (_, h, y) => se(_, typeof h != "symbol" ? h + "" : h, y);
4
4
  import { readonly as Nt, ref as Rt } from "vue";
5
- import { c as st } from "./app-hhkxg2ia.js";
5
+ import { c as st } from "./app-BhCUAF8K.js";
6
6
  var Pt = { exports: {} };
7
7
  (function(_, h) {
8
8
  (function(y, p) {
@@ -1,7 +1,7 @@
1
- import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-DE9d6AWC.js";
2
- import { u as J, b as R, A as F, p as D, e as S, k as Q } from "./app-hhkxg2ia.js";
1
+ import { g as b, b as g, d as X, e as j, s as L, q as M } from "./iteration-BljyZld9.js";
2
+ import { u as J, b as R, A as F, p as D, e as S, C as Q } from "./app-BhCUAF8K.js";
3
3
  import { defineStore as x, storeToRefs as k } from "pinia";
4
- import { ref as h, computed as N } from "vue";
4
+ import { ref as h, computed as C } from "vue";
5
5
  import { useCoreStore as q } from "@feedmepos/mf-common";
6
6
  const T = [
7
7
  {
@@ -511,14 +511,14 @@ function W(e) {
511
511
  o(n.inverted ? s : t, n, r);
512
512
  return [...Array.from(t.values()), ...Array.from(s.values())];
513
513
  }
514
- function C(e, t) {
514
+ function N(e, t) {
515
515
  return `${e}::${[...t].sort().join(",")}`;
516
516
  }
517
517
  function z(e, t) {
518
518
  const s = [...e], o = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
519
519
  for (const i of e) {
520
520
  const c = R(i.subject);
521
- o.add(C(c, i.actions)), i.inverted && i.actions.includes("manage") && r.add(`set_${c}`), !i.inverted && i.actions.includes("manage") && n.add(c);
521
+ o.add(N(c, i.actions)), i.inverted && i.actions.includes("manage") && r.add(`set_${c}`), !i.inverted && i.actions.includes("manage") && n.add(c);
522
522
  }
523
523
  const a = [...e];
524
524
  for (; a.length > 0; ) {
@@ -529,7 +529,7 @@ function z(e, t) {
529
529
  i.source && !i.source.trace && (i.source = { ...i.source, trace: l });
530
530
  const d = [...l, `${u.name} (system)`];
531
531
  for (const p of u.permissions ?? []) {
532
- const m = R(p.subject), f = C(m, p.actions);
532
+ const m = R(p.subject), f = N(m, p.actions);
533
533
  o.has(f) || n.has(m) || (o.add(f), s.push({
534
534
  ...p,
535
535
  // FdoPermissionRule.fields is string[] | null; RawRule expects string[] | undefined
@@ -543,7 +543,7 @@ function z(e, t) {
543
543
  }));
544
544
  }
545
545
  for (const p of u.permissionSets ?? []) {
546
- const m = R(p), f = C(m, ["manage"]), v = {
546
+ const m = R(p), f = N(m, ["manage"]), v = {
547
547
  subject: m,
548
548
  actions: ["manage"],
549
549
  source: {
@@ -860,7 +860,7 @@ function de() {
860
860
  }
861
861
  }
862
862
  }
863
- const s = N(() => O.value.map(
863
+ const s = C(() => O.value.map(
864
864
  (o) => o.isDefault ? {
865
865
  label: o.name,
866
866
  subject: `business::report::reports::${o.permissionKey}`,
@@ -882,8 +882,8 @@ function de() {
882
882
  return {
883
883
  fetchCustomReportPermissions: t,
884
884
  customReportPermissions: s,
885
- isLoading: N(() => w.value),
886
- isLoaded: N(() => _.value)
885
+ isLoading: C(() => w.value),
886
+ isLoaded: C(() => _.value)
887
887
  };
888
888
  }
889
889
  function U(e) {
@@ -920,7 +920,7 @@ function U(e) {
920
920
  }
921
921
  const me = Object.freeze(
922
922
  Object.values(Q)
923
- ), Ne = {
923
+ ), Ce = {
924
924
  async readTeamMembers() {
925
925
  return b(
926
926
  await g().get("/portal-users")
@@ -965,7 +965,7 @@ export {
965
965
  Ie as q,
966
966
  E as r,
967
967
  Oe as s,
968
- Ne as t,
968
+ Ce as t,
969
969
  G as u,
970
970
  ue as v,
971
971
  ne as w,
@@ -1,4 +1,4 @@
1
- import { c as U } from "./app-hhkxg2ia.js";
1
+ import { c as U } from "./app-BhCUAF8K.js";
2
2
  import { useCoreStore as To, baseClientInstance as jr, FeedMeAuth as Zs } from "@feedmepos/mf-common";
3
3
  var Ys = {}, _n = {}, _ = {}, zo = {}, $i = {}, eo = {}, ui = {};
4
4
  (function(e) {
@@ -1,4 +1,4 @@
1
- import { c as jt } from "./app-hhkxg2ia.js";
1
+ import { c as jt } from "./app-BhCUAF8K.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,6 +1,6 @@
1
1
  import { defineStore as d } from "pinia";
2
2
  import { ref as s, computed as o } from "vue";
3
- import { t as f } from "./index-DTHsTgiv.js";
3
+ import { t as f } from "./index-GgFsP7rK.js";
4
4
  const I = d("team", () => {
5
5
  const r = s([]), a = s(!1), m = o(
6
6
  () => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.name]))
@@ -1,8 +1,8 @@
1
- import { d as i } from "./dayjs.min-CmSGUQz6.js";
1
+ import { d as i } from "./dayjs.min-Cxe5QOx7.js";
2
2
  import { defineStore as p, storeToRefs as T } from "pinia";
3
3
  import { ref as l } from "vue";
4
- import { b as c, g as y, s as S } from "./iteration-DE9d6AWC.js";
5
- import { i as u, b as g } from "./index-DTHsTgiv.js";
4
+ import { b as c, g as y, s as S } from "./iteration-BljyZld9.js";
5
+ import { i as u, b as g } from "./index-GgFsP7rK.js";
6
6
  const f = {
7
7
  async readTimesheets(t, e) {
8
8
  return y(await c().get(`timesheet?start=${t}&end=${e}`));
@@ -1,7 +1,7 @@
1
1
  import { defineStore as f, storeToRefs as v } from "pinia";
2
2
  import { ref as b } from "vue";
3
3
  import { useCoreStore as I, baseClientInstance as w } from "@feedmepos/mf-common";
4
- import { g as l, b as d, s as R } from "./iteration-DE9d6AWC.js";
4
+ import { g as l, b as d, s as R } from "./iteration-BljyZld9.js";
5
5
  const p = {
6
6
  async readRoles() {
7
7
  return l(await d().get("/pos-roles"));
@@ -1,6 +1,6 @@
1
1
  import { computed as I, isRef as L, watch as M } from "vue";
2
2
  import { SnackbarPosition as y } from "@feedmepos/ui-library";
3
- import { a as w, v } from "./useAppStore-bIHeIja6.js";
3
+ import { a as w, v } from "./useAppStore-B7R116Aw.js";
4
4
  const E = (r) => {
5
5
  async function d(u, e) {
6
6
  var l, a;
@@ -1,8 +1,8 @@
1
1
  import { computed as u, ref as r } from "vue";
2
- import { e as l } from "./iteration-DE9d6AWC.js";
2
+ import { e as l } from "./iteration-BljyZld9.js";
3
3
  import { useCoreStore as y } from "@feedmepos/mf-common";
4
- import { e as R, R as h } from "./index-DTHsTgiv.js";
5
- import "./app-hhkxg2ia.js";
4
+ import { e as R, R as h } from "./index-GgFsP7rK.js";
5
+ import "./app-BhCUAF8K.js";
6
6
  const n = r([]), c = r(!1), t = r(!1), m = r(null);
7
7
  function L() {
8
8
  const d = y();