@feedmepos/mf-hrm-portal 2.3.2-dev.8 → 2.3.2-dev.9

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 (44) hide show
  1. package/dist/{ApprovalCodeList-DIYhVMGW.js → ApprovalCodeList-gb0bre9J.js} +7 -7
  2. package/dist/{AuditLogList-DIc3Jgpr.js → AuditLogList-9cwS6bL7.js} +5 -5
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-4YsF7lXu.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DR-c15gr.js} +2 -2
  4. package/dist/{EmployeeList-iVg4pI9Y.js → EmployeeList-DjyoW1we.js} +8 -8
  5. package/dist/{FormSection.vue_vue_type_script_setup_true_lang-C9AE0EHw.js → FormSection.vue_vue_type_script_setup_true_lang-BBWlADve.js} +1 -1
  6. package/dist/{GrantUserList-8zmzFk9z.js → GrantUserList-yU2NqFVO.js} +8 -8
  7. package/dist/{Main-DYzFd_qa.js → Main-4KwMqF3h.js} +5 -5
  8. package/dist/{Main-gRu17-N6.js → Main-BS_Lk_eB.js} +11 -11
  9. package/dist/{Main-ClJox3pV.js → Main-BuG7SPnC.js} +10 -10
  10. package/dist/MyPosProfile-CuDzRaRS.js +360 -0
  11. package/dist/{PermissionSetList-CL42jQY4.js → PermissionSetList-D7SS1iAr.js} +24 -24
  12. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DkA0XbZw.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-u1UlV2Aw.js} +1044 -1044
  13. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CA87qQ4b.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CYkv2x_y.js} +1 -1
  14. package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-B3N3hTcU.js → RoleForm.vue_vue_type_script_setup_true_lang-hiMgwiya.js} +9 -9
  15. package/dist/{RoleList-F9ZORhgE.js → RoleList-B3P-LQYV.js} +7 -7
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-B9NMhw9Z.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang--dsZOhnv.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-751cEUwS.js → ScheduleGeneralPage-Pq6ufiDu.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-CBDNfiIM.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DKFJLsTW.js} +4 -4
  19. package/dist/{SchedulePage-C-NcbGIl.js → SchedulePage-8EAOfiJx.js} +9 -9
  20. package/dist/{SchedulePositionPage-Ba0iiSRg.js → SchedulePositionPage-CGXeUnju.js} +3 -3
  21. package/dist/{SelectFilter-Dpsq165k.js → SelectFilter-C-UEVLla.js} +1 -1
  22. package/dist/{TeamMemberList-DZ0aRbxg.js → TeamMemberList-Bd1O44Ur.js} +90 -90
  23. package/dist/{TimesheetList-DO5T__dL.js → TimesheetList-CSCmigCM.js} +6 -6
  24. package/dist/{app-DXkKrcRn.js → app-BohKQtlz.js} +54 -14
  25. package/dist/app.js +1 -1
  26. package/dist/{approval-code-D2pGW-sI.js → approval-code-Bfvxsg8h.js} +1 -1
  27. package/dist/{dayjs.min-BAz84JAQ.js → dayjs.min-C0MqTPg1.js} +1 -1
  28. package/dist/{employee-yYhuhc9L.js → employee-DWxT78W2.js} +5 -5
  29. package/dist/{grant-user-B95RDjkR.js → grant-user-LZ3b6siI.js} +1 -1
  30. package/dist/{index-TrBkLxJe.js → index-DDDG-LHm.js} +1 -1
  31. package/dist/{lodash-DXRsZpTB.js → lodash-BRqMda7F.js} +1 -1
  32. package/dist/{member-grant-ByAQ1Qja.js → member-grant-a3AGCWfT.js} +2 -2
  33. package/dist/{restaurant-COSpCpTQ.js → restaurant-pL7vHt-H.js} +1 -1
  34. package/dist/{role-ZmCd2yG4.js → role--EKCVqho.js} +3 -3
  35. package/dist/{rule-Bty9eoI3.js → rule-Db3gFVHx.js} +71 -71
  36. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +1 -1
  37. package/dist/src/views/my-pos-profile/locales/index.d.ts +40 -0
  38. package/dist/{timesheet-CFD6XPiG.js → timesheet-NYW1P4rf.js} +3 -3
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/{useAppStore-7O0GMkXY.js → useAppStore-DV13z6oc.js} +1 -1
  41. package/dist/{useLoading-BZXydjer.js → useLoading-Fcnnfywt.js} +1 -1
  42. package/dist/{useReportPermissions-Cn3ntCJ9.js → useReportPermissions-BcyVoKVq.js} +13 -13
  43. package/package.json +1 -1
  44. package/dist/MyPosProfile-ARRrolbz.js +0 -290
@@ -1,25 +1,25 @@
1
- import { defineComponent as oe, mergeModels as Qt, useModel as es, createElementBlock as F, openBlock as m, Fragment as de, renderList as Vt, normalizeClass as lt, toDisplayString as E, unref as s, computed as I, resolveComponent as G, createElementVNode as p, createBlock as q, createCommentVNode as T, createVNode as i, ref as c, watch as ue, onUnmounted as Pt, createSlots as vt, withCtx as te, renderSlot as ts, withModifiers as Mt, nextTick as Ft, h as ss, createTextVNode as as } from "vue";
1
+ import { defineComponent as oe, mergeModels as Qt, useModel as es, createElementBlock as R, openBlock as m, Fragment as de, renderList as Vt, normalizeClass as lt, toDisplayString as E, unref as s, computed as I, resolveComponent as G, createElementVNode as p, createBlock as q, createCommentVNode as T, createVNode as i, ref as c, watch as ue, onUnmounted as Pt, createSlots as vt, withCtx as te, renderSlot as ts, withModifiers as Mt, nextTick as Rt, h as ss, createTextVNode as as } from "vue";
2
2
  import { useI18n as ce, useCoreStore as Xe } from "@feedmepos/mf-common";
3
- import { useSnackbar as ot, useDialog as Rt, useBreakpoints as $t, components as Qe, SnackbarPosition as et } from "@feedmepos/ui-library";
3
+ import { useSnackbar as ot, useDialog as Ft, useBreakpoints as $t, components as Qe, SnackbarPosition as et } from "@feedmepos/ui-library";
4
4
  import { u as ls } from "./useDebounce-B8ZPVS5C.js";
5
- import { S as ie } from "./SelectFilter-Dpsq165k.js";
6
- import { g as be, b as ye, a as Ct, v as ft, k as os, _ as rs, c as ns } from "./app-DXkKrcRn.js";
5
+ import { S as ie } from "./SelectFilter-C-UEVLla.js";
6
+ import { g as be, b as ye, a as Ct, v as ft, k as os, _ as rs, c as ns } from "./app-BohKQtlz.js";
7
7
  import { _ as bt } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
8
8
  import { _ as is } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
9
  import { s as us, _ as ms, d as ds, e as cs } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js";
10
- import { u as Dt } from "./useLoading-BZXydjer.js";
10
+ import { u as Dt } from "./useLoading-Fcnnfywt.js";
11
11
  import { u as ps } from "./useDiscardConfirm-CzZSPyvh.js";
12
- import { w as vs, h as fs, b as bs, E as ys, t as gs } from "./member-grant-ByAQ1Qja.js";
13
- import { a as Ye, i as rt, t as Me, b as He, D as Nt, E as Et, h as Te, u as hs, s as yt, c as ze, d as xs, e as gt } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CA87qQ4b.js";
12
+ import { w as vs, h as fs, b as bs, E as ys, t as gs } from "./member-grant-a3AGCWfT.js";
13
+ import { a as Ye, i as rt, t as Me, b as He, D as Nt, E as Et, h as Te, u as hs, s as yt, c as ze, d as xs, e as gt } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CYkv2x_y.js";
14
14
  import { n as nt } from "./string-DZQ1uNjn.js";
15
- import "./index-TrBkLxJe.js";
16
- import { l as Le } from "./lodash-DXRsZpTB.js";
17
- import { _ as ht } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DkA0XbZw.js";
18
- import { t as Ve, u as At, y as tt, q as xt, P as st, a as Ot, p as _t, E as _s, b as Ut, c as Us } from "./rule-Bty9eoI3.js";
19
- import { t as Is, s as ws, a as It, c as ks, r as Ss, b as Vs, d as wt, _ as Ps, p as Ms } from "./RoleForm.vue_vue_type_script_setup_true_lang-B3N3hTcU.js";
15
+ import "./index-DDDG-LHm.js";
16
+ import { l as Le } from "./lodash-BRqMda7F.js";
17
+ import { _ as ht } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-u1UlV2Aw.js";
18
+ import { t as Ve, u as At, P as tt, H as xt, R as st, a as Ot, p as _t, $ as _s, b as Ut, c as Us } from "./rule-Db3gFVHx.js";
19
+ import { t as Is, s as ws, a as It, c as ks, r as Ss, b as Vs, d as wt, _ as Ps, p as Ms } from "./RoleForm.vue_vue_type_script_setup_true_lang-hiMgwiya.js";
20
20
  import { c as Pe } from "./iteration-CcXrOMQe.js";
21
- import { u as Lt } from "./restaurant-COSpCpTQ.js";
22
- import { u as Tt } from "./role-ZmCd2yG4.js";
21
+ import { u as Lt } from "./restaurant-pL7vHt-H.js";
22
+ import { u as Tt } from "./role--EKCVqho.js";
23
23
  var Ee = /* @__PURE__ */ ((l) => (l.Update = "Update", l.Remove = "Remove", l))(Ee || {});
24
24
  const Be = "__unassigned__";
25
25
  function kt(l) {
@@ -27,10 +27,10 @@ function kt(l) {
27
27
  const A = l.filter((v) => v !== Be);
28
28
  return A.length === l.length ? l : [Be, ...A];
29
29
  }
30
- const Fs = {
30
+ const Rs = {
31
31
  role: "tablist",
32
32
  class: "flex w-full max-w-[361px] items-center gap-4 rounded-[12px] bg-fm-color-neutral-gray-100 p-4"
33
- }, Rs = ["aria-selected", "disabled", "onClick"], $s = /* @__PURE__ */ oe({
33
+ }, Fs = ["aria-selected", "disabled", "onClick"], $s = /* @__PURE__ */ oe({
34
34
  __name: "SegmentedTabs",
35
35
  props: /* @__PURE__ */ Qt({
36
36
  items: {},
@@ -42,8 +42,8 @@ const Fs = {
42
42
  emits: ["update:modelValue"],
43
43
  setup(l) {
44
44
  const A = es(l, "modelValue");
45
- return (v, t) => (m(), F("div", Fs, [
46
- (m(!0), F(de, null, Vt(l.items, (f) => (m(), F("button", {
45
+ return (v, t) => (m(), R("div", Rs, [
46
+ (m(!0), R(de, null, Vt(l.items, (f) => (m(), R("button", {
47
47
  key: f.value,
48
48
  type: "button",
49
49
  role: "tab",
@@ -54,7 +54,7 @@ const Fs = {
54
54
  A.value === f.value ? "border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white font-semibold text-fm-color-typo-primary shadow-[0px_1px_2px_0px_rgba(28,28,30,0.04)]" : "border border-transparent font-medium text-fm-color-typo-tertiary hover:bg-fm-color-opacity-sm"
55
55
  ]),
56
56
  onClick: (u) => A.value = f.value
57
- }, E(f.label), 11, Rs))), 128))
57
+ }, E(f.label), 11, Fs))), 128))
58
58
  ]));
59
59
  }
60
60
  }), it = /* @__PURE__ */ oe({
@@ -64,7 +64,7 @@ const Fs = {
64
64
  },
65
65
  setup(l) {
66
66
  const { t: A } = ce();
67
- return (v, t) => (m(), F("span", {
67
+ return (v, t) => (m(), R("span", {
68
68
  class: lt([
69
69
  "inline-flex items-center rounded-[4px] px-4 py-[2px] text-[10px] font-medium leading-[14px] tracking-[0.2px] whitespace-nowrap",
70
70
  l.status === "active" ? "bg-fm-color-system-success-100 text-fm-color-typo-success" : "bg-fm-color-system-warning-100 text-fm-color-typo-warning"
@@ -88,7 +88,7 @@ const Fs = {
88
88
  ), K = I(() => v.existing.kind !== "member" || !v.existing.isOwner);
89
89
  return (M, O) => {
90
90
  const k = G("FmButton");
91
- return m(), F("div", Cs, [
91
+ return m(), R("div", Cs, [
92
92
  p("div", Ds, E(s(nt)(l.existing.name)), 1),
93
93
  p("div", Ns, [
94
94
  p("div", Es, [
@@ -204,7 +204,7 @@ const Fs = {
204
204
  providerLabel: _
205
205
  }), (D, o) => {
206
206
  const S = G("FmSelect"), z = G("FmPhoneNumber"), se = G("FmCircularProgress"), X = G("FmTextField");
207
- return m(), F("div", Bs, [
207
+ return m(), R("div", Bs, [
208
208
  p("div", js, [
209
209
  p("p", qs, E(s(u)("team.memberDetails.title")), 1),
210
210
  p("p", Gs, E(s(u)("team.memberDetails.ssoNotice", { label: _.value })), 1)
@@ -224,7 +224,7 @@ const Fs = {
224
224
  items: h.value
225
225
  }, null, 8, ["modelValue", "items"])
226
226
  ]),
227
- C.value === "mobile" ? (m(), F(de, { key: 1 }, [
227
+ C.value === "mobile" ? (m(), R(de, { key: 1 }, [
228
228
  s(M) ? (m(), q(z, {
229
229
  key: 0,
230
230
  modelValue: V.value,
@@ -297,7 +297,7 @@ const Fs = {
297
297
  rules: [
298
298
  (x) => !x.trim() || s(He)(x) || s(u)("team.memberDetails.errors.emailInvalid")
299
299
  ]
300
- }, null, 8, ["modelValue", "label", "placeholder", "rules"])) : (m(), F(de, { key: 1 }, [
300
+ }, null, 8, ["modelValue", "label", "placeholder", "rules"])) : (m(), R(de, { key: 1 }, [
301
301
  s(M) ? (m(), q(z, {
302
302
  key: 0,
303
303
  modelValue: V.value,
@@ -334,7 +334,7 @@ const Fs = {
334
334
  },
335
335
  setup(l) {
336
336
  const A = l, v = I(() => nt(A.name));
337
- return (t, f) => (m(), F("div", Qs, [
337
+ return (t, f) => (m(), R("div", Qs, [
338
338
  p("div", ea, [
339
339
  p("div", ta, E(v.value), 1),
340
340
  p("div", sa, [
@@ -342,8 +342,8 @@ const Fs = {
342
342
  p("p", la, E(l.name), 1),
343
343
  i(it, { status: l.status }, null, 8, ["status"])
344
344
  ]),
345
- l.email ? (m(), F("p", oa, E(l.email), 1)) : T("", !0),
346
- l.phoneNumber ? (m(), F("p", ra, E(l.phoneNumber), 1)) : T("", !0)
345
+ l.email ? (m(), R("p", oa, E(l.email), 1)) : T("", !0),
346
+ l.phoneNumber ? (m(), R("p", ra, E(l.phoneNumber), 1)) : T("", !0)
347
347
  ])
348
348
  ]),
349
349
  ts(t.$slots, "default")
@@ -407,7 +407,7 @@ const Fs = {
407
407
  const _ = I(() => ks(v.restaurants, u.value)), H = c(), C = c(!1), V = c(null);
408
408
  async function B(d) {
409
409
  var h;
410
- V.value = d, C.value = !0, await Ft(), (h = H.value) == null || h.trigger();
410
+ V.value = d, C.value = !0, await Rt(), (h = H.value) == null || h.trigger();
411
411
  }
412
412
  function y(d) {
413
413
  const h = V.value;
@@ -421,12 +421,12 @@ const Fs = {
421
421
  return (d, h) => {
422
422
  var r;
423
423
  const b = G("FmSelect");
424
- return m(), F("div", ia, [
424
+ return m(), R("div", ia, [
425
425
  p("div", ua, [
426
426
  p("p", ma, E(s(f)("team.posAccess.restaurants")), 1),
427
427
  p("p", da, E(s(f)("team.posAccess.posRole")), 1)
428
428
  ]),
429
- (m(!0), F(de, null, Vt(u.value, (U, j) => (m(), F("div", {
429
+ (m(!0), R(de, null, Vt(u.value, (U, j) => (m(), R("div", {
430
430
  key: j,
431
431
  class: "grid grid-cols-2 items-center gap-x-[14px]",
432
432
  "data-testid": "pos-assignment-row"
@@ -576,7 +576,7 @@ const Fs = {
576
576
  });
577
577
  return (y, d) => {
578
578
  const h = G("FmSwitch"), b = G("FmFormGroup");
579
- return m(), F("div", ba, [
579
+ return m(), R("div", ba, [
580
580
  p("div", ya, [
581
581
  p("div", ga, [
582
582
  p("p", ha, E(s(f)("team.posAccess.title")), 1),
@@ -588,7 +588,7 @@ const Fs = {
588
588
  "onUpdate:modelValue": P
589
589
  }, null, 8, ["model-value"])
590
590
  ]),
591
- l.modelValue ? (m(), F("div", _a, [
591
+ l.modelValue ? (m(), R("div", _a, [
592
592
  i(b, {
593
593
  modelValue: B.value,
594
594
  "onUpdate:modelValue": d[1] || (d[1] = (r) => B.value = r),
@@ -648,7 +648,7 @@ const Fs = {
648
648
  key: 0,
649
649
  class: "flex flex-col gap-16 rounded-[16px] border border-fm-color-neutral-gray-200 p-16",
650
650
  "data-testid": "where-they-work-card"
651
- }, Pa = { class: "flex flex-col gap-8" }, Ma = { class: "fm-typo-en-title-sm-600" }, Fa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ra = {
651
+ }, Pa = { class: "flex flex-col gap-8" }, Ma = { class: "fm-typo-en-title-sm-600" }, Ra = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fa = {
652
652
  key: 1,
653
653
  class: "flex items-center justify-center py-64"
654
654
  }, $a = {
@@ -673,7 +673,7 @@ const Fs = {
673
673
  },
674
674
  setup(l, { expose: A }) {
675
675
  var qe, ge, ee;
676
- const v = l, { t } = ce(), f = Rt(), { breakpoints: u } = $t(), $ = At(), K = I(
676
+ const v = l, { t } = ce(), f = Ft(), { breakpoints: u } = $t(), $ = At(), K = I(
677
677
  () => $.permissionSets.value.map((n) => ({
678
678
  label: n.name,
679
679
  value: n.id
@@ -689,14 +689,14 @@ const Fs = {
689
689
  _t.filter((n) => n.subject.startsWith(_s)).map((n) => n.subject)
690
690
  ), V = I(() => {
691
691
  const n = new Set(C);
692
- for (const R of _.value) n.add(R.subject);
692
+ for (const F of _.value) n.add(F.subject);
693
693
  return n;
694
694
  }), B = I(() => {
695
695
  const n = /* @__PURE__ */ new Set();
696
- for (const R of _t)
697
- R.category === ft.reports && n.add(R.subject);
698
- for (const R of _.value)
699
- R.category === ft.reports && n.add(R.subject);
696
+ for (const F of _t)
697
+ F.category === ft.reports && n.add(F.subject);
698
+ for (const F of _.value)
699
+ F.category === ft.reports && n.add(F.subject);
700
700
  return n;
701
701
  }), y = I(() => {
702
702
  var n;
@@ -705,7 +705,7 @@ const Fs = {
705
705
  () => Ut(P.value, { isOwner: y.value })
706
706
  ), h = Lt(), b = Tt().roles, r = I(() => {
707
707
  const n = d.value.restaurantIds;
708
- return n === null ? h.restaurants.value : h.restaurants.value.filter((R) => n.includes(R._id));
708
+ return n === null ? h.restaurants.value : h.restaurants.value.filter((F) => n.includes(F._id));
709
709
  }), U = c(!1);
710
710
  function j(n) {
711
711
  U.value = n, !n && (M.value = [], P.value = vs(P.value));
@@ -741,14 +741,14 @@ const Fs = {
741
741
  P.value = D(n);
742
742
  }
743
743
  function S(n) {
744
- const R = [...n ?? []];
745
- if (Le.isEqual(R, M.value)) return;
744
+ const F = [...n ?? []];
745
+ if (Le.isEqual(F, M.value)) return;
746
746
  const J = !Le.isEqual(
747
747
  P.value,
748
748
  D(M.value)
749
749
  );
750
- if (M.value = R, !J) {
751
- o(R);
750
+ if (M.value = F, !J) {
751
+ o(F);
752
752
  return;
753
753
  }
754
754
  f.open({
@@ -764,11 +764,11 @@ const Fs = {
764
764
  close: !0
765
765
  }
766
766
  }).onPrimary(() => {
767
- o(R), f.close();
767
+ o(F), f.close();
768
768
  });
769
769
  }
770
770
  function z() {
771
- var n, R;
771
+ var n, F;
772
772
  return bs({
773
773
  userPermissions: P.value,
774
774
  inheritedPermissions: O.value,
@@ -777,13 +777,13 @@ const Fs = {
777
777
  reportSubjects: H.value ? V.value : C,
778
778
  defaultReportSubjects: B.value,
779
779
  savedPosUser: (n = v.initialValue) == null ? void 0 : n.posUser,
780
- fallbackName: ((R = v.initialValue) == null ? void 0 : R.name) || v.fallbackName
780
+ fallbackName: ((F = v.initialValue) == null ? void 0 : F.name) || v.fallbackName
781
781
  });
782
782
  }
783
783
  const se = c();
784
- function X(n, R) {
784
+ function X(n, F) {
785
785
  if (!n) return n;
786
- const J = Ut(R, { isOwner: y.value }), { roleIds: pe, restaurantIds: he } = J;
786
+ const J = Ut(F, { isOwner: y.value }), { roleIds: pe, restaurantIds: he } = J;
787
787
  if (pe === null && he === null) return n;
788
788
  const ve = Pe(n);
789
789
  return ve.roles = ve.roles.filter(
@@ -797,12 +797,12 @@ const Fs = {
797
797
  return ue(
798
798
  () => !!k.value,
799
799
  async (n) => {
800
- n && !x.value && N.value && (await Ft(), se.value && se.value.$el.scrollIntoView({ behavior: "smooth", block: "start" })), x.value = n;
800
+ n && !x.value && N.value && (await Rt(), se.value && se.value.$el.scrollIntoView({ behavior: "smooth", block: "start" })), x.value = n;
801
801
  }
802
802
  ), ue(
803
803
  () => v.initialValue,
804
- (n, R) => {
805
- if (!R || !n || R.id !== n.id) {
804
+ (n, F) => {
805
+ if (!F || !n || F.id !== n.id) {
806
806
  N.value = !1, re(n);
807
807
  return;
808
808
  }
@@ -821,24 +821,24 @@ const Fs = {
821
821
  ), A({
822
822
  readGrantData: z,
823
823
  isModified: ne
824
- }), (n, R) => {
825
- var ve, Z, xe, Fe, Re, Ge;
824
+ }), (n, F) => {
825
+ var ve, Z, xe, Re, Fe, Ge;
826
826
  const J = G("FmCircularProgress"), pe = G("FmSwitch"), he = G("FmSelect");
827
- return m(), F("div", Sa, [
828
- (ve = l.initialValue) != null && ve.isOwner ? T("", !0) : (m(), F("section", Va, [
827
+ return m(), R("div", Sa, [
828
+ (ve = l.initialValue) != null && ve.isOwner ? T("", !0) : (m(), R("section", Va, [
829
829
  p("div", Pa, [
830
830
  p("p", Ma, E(s(t)("team.whereTheyWork.title")), 1),
831
- p("p", Fa, E(s(t)("team.whereTheyWork.subtitle")), 1)
831
+ p("p", Ra, E(s(t)("team.whereTheyWork.subtitle")), 1)
832
832
  ]),
833
833
  i(ht, {
834
834
  modelValue: P.value,
835
- "onUpdate:modelValue": R[0] || (R[0] = (_e) => P.value = _e),
835
+ "onUpdate:modelValue": F[0] || (F[0] = (_e) => P.value = _e),
836
836
  part: "workplace",
837
837
  "inherit-permissions": O.value,
838
838
  onPermissionChanged: Q
839
839
  }, null, 8, ["modelValue", "inherit-permissions"])
840
840
  ])),
841
- l.loading ? (m(), F("div", Ra, [
841
+ l.loading ? (m(), R("div", Fa, [
842
842
  i(J, { size: "xl" })
843
843
  ])) : (m(), q(ka, {
844
844
  key: 2,
@@ -846,14 +846,14 @@ const Fs = {
846
846
  ref: se,
847
847
  "model-value": k.value,
848
848
  "fallback-name": ((Z = l.initialValue) == null ? void 0 : Z.name) || l.fallbackName,
849
- "fallback-passcode": (Fe = (xe = l.initialValue) == null ? void 0 : xe.posUser) == null ? void 0 : Fe.passcode,
849
+ "fallback-passcode": (Re = (xe = l.initialValue) == null ? void 0 : xe.posUser) == null ? void 0 : Re.passcode,
850
850
  roles: s(b),
851
851
  "usable-role-ids": d.value.roleIds,
852
852
  restaurants: r.value,
853
- "pos-user-id": (Re = l.initialValue) == null ? void 0 : Re.posUserId,
853
+ "pos-user-id": (Fe = l.initialValue) == null ? void 0 : Fe.posUserId,
854
854
  "onUpdate:modelValue": je
855
855
  }, null, 8, ["model-value", "fallback-name", "fallback-passcode", "roles", "usable-role-ids", "restaurants", "pos-user-id"])),
856
- (Ge = l.initialValue) != null && Ge.isOwner ? T("", !0) : (m(), F("section", $a, [
856
+ (Ge = l.initialValue) != null && Ge.isOwner ? T("", !0) : (m(), R("section", $a, [
857
857
  p("div", Ca, [
858
858
  p("div", Da, [
859
859
  p("p", Na, E(s(t)("team.portalAccess.title")), 1),
@@ -865,7 +865,7 @@ const Fs = {
865
865
  "onUpdate:modelValue": j
866
866
  }, null, 8, ["model-value"])
867
867
  ]),
868
- U.value ? (m(), F(de, { key: 0 }, [
868
+ U.value ? (m(), R(de, { key: 0 }, [
869
869
  i(he, {
870
870
  "model-value": M.value,
871
871
  multiselect: "",
@@ -878,7 +878,7 @@ const Fs = {
878
878
  }, null, 8, ["model-value", "label", "items", "placeholder"]),
879
879
  i(ht, {
880
880
  modelValue: P.value,
881
- "onUpdate:modelValue": R[1] || (R[1] = (_e) => P.value = _e),
881
+ "onUpdate:modelValue": F[1] || (F[1] = (_e) => P.value = _e),
882
882
  part: "portal",
883
883
  "inherit-permissions": O.value,
884
884
  onPermissionChanged: Q
@@ -967,8 +967,8 @@ const Fs = {
967
967
  return (b, r) => {
968
968
  var D, o, S;
969
969
  const U = G("FmRadio"), j = G("FmPhoneNumber"), W = G("FmCircularProgress"), re = G("FmTextField"), ne = G("FmRadioGroup"), Q = G("FmButton");
970
- return m(), F("div", Oa, [
971
- y.value ? T("", !0) : (m(), F("div", La, [
970
+ return m(), R("div", Oa, [
971
+ y.value ? T("", !0) : (m(), R("div", La, [
972
972
  i(ne, {
973
973
  modelValue: O.value,
974
974
  "onUpdate:modelValue": r[2] || (r[2] = (z) => O.value = z)
@@ -1012,7 +1012,7 @@ const Fs = {
1012
1012
  onClick: V
1013
1013
  }, null, 8, ["label"])
1014
1014
  ])),
1015
- _.value ? (m(), F("div", {
1015
+ _.value ? (m(), R("div", {
1016
1016
  key: 1,
1017
1017
  class: "profile-menu--profile cursor-pointer hover:bg-fm-color-opacity-sm",
1018
1018
  onClick: r[3] || (r[3] = (z) => d(_.value))
@@ -1024,7 +1024,7 @@ const Fs = {
1024
1024
  p("p", Ga, E((S = _.value) == null ? void 0 : S.phoneNumber), 1)
1025
1025
  ])
1026
1026
  ])) : T("", !0),
1027
- y.value ? (m(), F("div", Ka, [
1027
+ y.value ? (m(), R("div", Ka, [
1028
1028
  i(Q, {
1029
1029
  label: s(t)("team.memberForm.searchUser.changeUser"),
1030
1030
  variant: "secondary",
@@ -1169,7 +1169,7 @@ const Fs = {
1169
1169
  "phone-number": l.initialValue.phoneNumber
1170
1170
  }, {
1171
1171
  default: te(() => [
1172
- _.value ? (m(), F("div", Ya, [
1172
+ _.value ? (m(), R("div", Ya, [
1173
1173
  P.value ? (m(), q(z, {
1174
1174
  key: 0,
1175
1175
  modelValue: H.value,
@@ -1191,7 +1191,7 @@ const Fs = {
1191
1191
  (N) => N.trim().length <= s(Et) || s($)("team.memberDetails.errors.employeeIdTooLong")
1192
1192
  ]
1193
1193
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
1194
- P.value ? (m(), F(de, { key: 1 }, [
1194
+ P.value ? (m(), R(de, { key: 1 }, [
1195
1195
  l.initialValue.match === "mobile" ? (m(), q(z, {
1196
1196
  key: 0,
1197
1197
  modelValue: V.value,
@@ -1218,7 +1218,7 @@ const Fs = {
1218
1218
  ])) : T("", !0)
1219
1219
  ]),
1220
1220
  _: 1
1221
- }, 8, ["name", "status", "email", "phone-number"])) : (m(), F("div", Xa, [
1221
+ }, 8, ["name", "status", "email", "phone-number"])) : (m(), R("div", Xa, [
1222
1222
  i(za, {
1223
1223
  onInvite: S[1] || (S[1] = (N) => j(N))
1224
1224
  })
@@ -1264,7 +1264,7 @@ const Fs = {
1264
1264
  var ae = /* @__PURE__ */ function(l) {
1265
1265
  return l[l.ADD = 0] = "ADD", l[l.UPDATE = 1] = "UPDATE", l[l.CLOSED = 2] = "CLOSED", l;
1266
1266
  }(ae || {});
1267
- const Rl = /* @__PURE__ */ oe({
1267
+ const Fl = /* @__PURE__ */ oe({
1268
1268
  __name: "TeamMemberList",
1269
1269
  setup(l, {
1270
1270
  expose: A
@@ -1546,7 +1546,7 @@ const Rl = /* @__PURE__ */ oe({
1546
1546
  _.open({
1547
1547
  message: t("common.error"),
1548
1548
  type: "error"
1549
- }), Re();
1549
+ }), Fe();
1550
1550
  } finally {
1551
1551
  a === ee && (ge.value = !1);
1552
1552
  }
@@ -1572,24 +1572,24 @@ const Rl = /* @__PURE__ */ oe({
1572
1572
  let ee = 0;
1573
1573
  const n = async (e, a) => {
1574
1574
  e == Ee.Update && (a.status === "invited" ? await N(a.id) : await je(a)), e == Ee.Remove && Bt(a);
1575
- }, R = Rt(), J = c(ae.CLOSED), pe = I(() => J.value !== ae.CLOSED), he = I(() => J.value === ae.ADD ? t("common.add") : t("common.update")), ve = I(() => J.value === ae.ADD ? t("team.actions.addMember") : t("team.actions.updateMember")), Z = c();
1575
+ }, F = Ft(), J = c(ae.CLOSED), pe = I(() => J.value !== ae.CLOSED), he = I(() => J.value === ae.ADD ? t("common.add") : t("common.update")), ve = I(() => J.value === ae.ADD ? t("team.actions.addMember") : t("team.actions.updateMember")), Z = c();
1576
1576
  function xe() {
1577
1577
  ee++, ge.value = !1, X.value = null, J.value = ae.CLOSED;
1578
1578
  }
1579
- const Fe = ps(() => {
1579
+ const Re = ps(() => {
1580
1580
  var e;
1581
1581
  return ((e = me.value) == null ? void 0 : e.isModified()) ?? !1;
1582
1582
  }, xe);
1583
- function Re() {
1584
- Fe();
1583
+ function Fe() {
1584
+ Re();
1585
1585
  }
1586
1586
  function Ge(e) {
1587
- e || Re();
1587
+ e || Fe();
1588
1588
  }
1589
1589
  const {
1590
1590
  breakpoints: _e
1591
1591
  } = $t(), Bt = (e) => {
1592
- R.open({
1592
+ F.open({
1593
1593
  title: t("team.actions.removeMember"),
1594
1594
  message: t("team.removeMember.confirmationMessage", {
1595
1595
  memberName: e.name
@@ -1613,11 +1613,11 @@ const Rl = /* @__PURE__ */ oe({
1613
1613
  successMessage: t("team.removeMember.successMessage", {
1614
1614
  memberName: e.name
1615
1615
  })
1616
- }), R.close());
1616
+ }), F.close());
1617
1617
  });
1618
1618
  };
1619
1619
  function jt(e) {
1620
- R.open({
1620
+ F.open({
1621
1621
  title: t("team.staffInvite.revoke.title"),
1622
1622
  message: t("team.staffInvite.revoke.message", {
1623
1623
  name: e.name
@@ -1650,7 +1650,7 @@ const Rl = /* @__PURE__ */ oe({
1650
1650
  }, t)
1651
1651
  });
1652
1652
  } finally {
1653
- Se.value = !1, R.close(), await ke();
1653
+ Se.value = !1, F.close(), await ke();
1654
1654
  }
1655
1655
  }
1656
1656
  });
@@ -1898,7 +1898,7 @@ const Rl = /* @__PURE__ */ oe({
1898
1898
  }), (e, a) => {
1899
1899
  var Oe;
1900
1900
  const g = G("FmSearch"), w = G("FmTable"), Y = G("FmIcon"), le = G("FmButton"), De = G("FmSideSheet");
1901
- return m(), F(de, null, [p("div", Za, [p("div", Qa, [s(_e).xs ? (m(), F("div", sl, [i(g, {
1901
+ return m(), R(de, null, [p("div", Za, [p("div", Qa, [s(_e).xs ? (m(), R("div", sl, [i(g, {
1902
1902
  modelValue: U.value,
1903
1903
  "onUpdate:modelValue": a[6] || (a[6] = (L) => U.value = L),
1904
1904
  class: "w-[320px] xs:w-full xs:mt-8",
@@ -1931,7 +1931,7 @@ const Rl = /* @__PURE__ */ oe({
1931
1931
  items: ct.value,
1932
1932
  "selected-prefix": s(t)("team.filter.selected_permission_prefix"),
1933
1933
  placeholder: s(t)("team.filter.permission_placeholder")
1934
- }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), s($) ? (m(), F(de, {
1934
+ }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), s($) ? (m(), R(de, {
1935
1935
  key: 0
1936
1936
  }, [i(ie, {
1937
1937
  modelValue: Ie.value,
@@ -1953,7 +1953,7 @@ const Rl = /* @__PURE__ */ oe({
1953
1953
  items: mt.value,
1954
1954
  "selected-prefix": s(t)("team.filter.selected_login_method_prefix"),
1955
1955
  placeholder: s(t)("team.filter.login_method_placeholder")
1956
- }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])], 64)) : T("", !0)])])) : (m(), F("div", el, [p("div", tl, [i(ie, {
1956
+ }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])], 64)) : T("", !0)])])) : (m(), R("div", el, [p("div", tl, [i(ie, {
1957
1957
  modelValue: $e.value,
1958
1958
  "onUpdate:modelValue": a[0] || (a[0] = (L) => $e.value = L),
1959
1959
  multiple: "",
@@ -1981,7 +1981,7 @@ const Rl = /* @__PURE__ */ oe({
1981
1981
  items: ct.value,
1982
1982
  "selected-prefix": s(t)("team.filter.selected_permission_prefix"),
1983
1983
  placeholder: s(t)("team.filter.permission_placeholder")
1984
- }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), s($) ? (m(), F(de, {
1984
+ }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), s($) ? (m(), R(de, {
1985
1985
  key: 0
1986
1986
  }, [i(ie, {
1987
1987
  modelValue: Ie.value,
@@ -2042,13 +2042,13 @@ const Rl = /* @__PURE__ */ oe({
2042
2042
  "max-width": 960,
2043
2043
  "close-button": !1,
2044
2044
  "onUpdate:modelValue": Ge,
2045
- "onOn:clickedAway": s(Fe)
2045
+ "onOn:clickedAway": s(Re)
2046
2046
  }, {
2047
2047
  "side-sheet-header": te(() => [p("div", ol, [p("p", rl, E(ve.value), 1), i(Y, {
2048
2048
  name: "close",
2049
2049
  size: "md",
2050
2050
  class: "cursor-pointer",
2051
- onClick: s(Fe)
2051
+ onClick: s(Re)
2052
2052
  }, null, 8, ["onClick"])])]),
2053
2053
  "side-sheet-footer": te(() => {
2054
2054
  var L;
@@ -2064,7 +2064,7 @@ const Rl = /* @__PURE__ */ oe({
2064
2064
  size: "md",
2065
2065
  variant: "secondary",
2066
2066
  disabled: fe.value,
2067
- onClick: Re
2067
+ onClick: Fe
2068
2068
  }, null, 8, ["label", "disabled"])])];
2069
2069
  }),
2070
2070
  default: te(() => [pe.value ? (m(), q(Ja, {
@@ -2083,5 +2083,5 @@ const Rl = /* @__PURE__ */ oe({
2083
2083
  }
2084
2084
  });
2085
2085
  export {
2086
- Rl as default
2086
+ Fl as default
2087
2087
  };
@@ -1,16 +1,16 @@
1
1
  import { ref as m, computed as v, defineComponent as fe, onMounted as pe, watch as X, resolveComponent as d, createElementBlock as P, openBlock as L, Fragment as Z, createVNode as s, createElementVNode as i, unref as n, withCtx as w, createCommentVNode as ve, toDisplayString as T, createTextVNode as he, isRef as ge, renderList as De, createBlock as ee, nextTick as we } from "vue";
2
- import { d as l } from "./dayjs.min-BAz84JAQ.js";
2
+ import { d as l } from "./dayjs.min-C0MqTPg1.js";
3
3
  import { useI18n as Ye } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as be, components as ye } from "@feedmepos/ui-library";
5
- import { S as _e } from "./SelectFilter-Dpsq165k.js";
6
- import { _ as Me } from "./app-DXkKrcRn.js";
5
+ import { S as _e } from "./SelectFilter-C-UEVLla.js";
6
+ import { _ as Me } from "./app-BohKQtlz.js";
7
7
  import { _ as xe } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
8
- import { u as ke } from "./useLoading-BZXydjer.js";
8
+ import { u as ke } from "./useLoading-Fcnnfywt.js";
9
9
  import { g as Se, s as Ve } from "./iteration-CcXrOMQe.js";
10
10
  import { f as Ce } from "./utils-BZkjJbju.js";
11
11
  import { n as Fe } from "./string-DZQ1uNjn.js";
12
- import { u as Le } from "./restaurant-COSpCpTQ.js";
13
- import { u as Te } from "./timesheet-CFD6XPiG.js";
12
+ import { u as Le } from "./restaurant-pL7vHt-H.js";
13
+ import { u as Te } from "./timesheet-NYW1P4rf.js";
14
14
  function Oe(Y, a) {
15
15
  return ["years", "months"].find((y) => {
16
16
  const _ = Y.startOf(y), p = Y.endOf(y);