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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/{ApprovalCodeList-NYJNwdDZ.js → ApprovalCodeList-ix9OeJEQ.js} +7 -7
  2. package/dist/{AuditLogList-Ghn4aBnn.js → AuditLogList-D5H_O9Q0.js} +5 -5
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BxZ9t3MZ.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CuELLYY4.js} +10 -10
  4. package/dist/{EmployeeList-jc8LTznV.js → EmployeeList-DICzZjVM.js} +8 -8
  5. package/dist/{FormSection.vue_vue_type_script_setup_true_lang-DLgm6oCz.js → FormSection.vue_vue_type_script_setup_true_lang-BQzSWAqC.js} +1 -1
  6. package/dist/{GrantUserList-BtPTpypR.js → GrantUserList-DoMN7Eks.js} +8 -8
  7. package/dist/{Main-McMZU_cR.js → Main-CHIExpOV.js} +5 -5
  8. package/dist/{Main-BizCV-_x.js → Main-CQ42sYi9.js} +11 -11
  9. package/dist/{Main-BF8hlYeV.js → Main-DwYh9cxQ.js} +10 -10
  10. package/dist/{MyPosProfile-BjeCnBvL.js → MyPosProfile-DaUdREQX.js} +1 -1
  11. package/dist/{PermissionSetList-NWLoqFHC.js → PermissionSetList-B7WM9N-p.js} +66 -66
  12. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BSVtyLlL.js +4207 -0
  13. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-nwpdr7T7.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C7fnnbme.js} +19 -19
  14. package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-eT-dPsOX.js → RoleForm.vue_vue_type_script_setup_true_lang-AbQIllkX.js} +30 -30
  15. package/dist/{RoleList-CIfN10zu.js → RoleList-vQsHxlNc.js} +96 -105
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CMTXC_UR.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-D52LhvGG.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-8vS1DUrk.js → ScheduleGeneralPage-BLqh7jH6.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-Br4AcF1g.js → ScheduleModal.vue_vue_type_script_setup_true_lang-C9doSgov.js} +4 -4
  19. package/dist/{SchedulePage-DqbE1PoV.js → SchedulePage-YADV_6w9.js} +9 -9
  20. package/dist/{SchedulePositionPage-DUnkT0Tp.js → SchedulePositionPage-BowDQMG_.js} +3 -3
  21. package/dist/{SelectFilter-voMj4_j1.js → SelectFilter-CBp1qxLd.js} +2 -3
  22. package/dist/{TeamMemberList-DoEOWNDC.js → TeamMemberList-BoJ87moU.js} +184 -184
  23. package/dist/TimesheetList-BULw75oo.js +401 -0
  24. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-h-bWBmpI.js → TimesheetList.vue_vue_type_style_index_0_scoped_c98b0b84_lang-VlnjH9aQ.js} +3 -3
  25. package/dist/{app-CDCO87ji.js → app-DOFDND9j.js} +5444 -4624
  26. package/dist/app.js +1 -1
  27. package/dist/{approval-code-CLE9s5dL.js → approval-code-Dgj6S82q.js} +1 -1
  28. package/dist/{dayjs.min-BW6-XAUB.js → dayjs.min-AoirQCgL.js} +1 -1
  29. package/dist/{employee-BaCU-FLC.js → employee-VB6YmuSS.js} +5 -5
  30. package/dist/{grant-user-DMtilLJx.js → grant-user-C-ptrq7l.js} +1 -1
  31. package/dist/{iteration-CPLGGFBb.js → iteration-DmuDXP8U.js} +1 -1
  32. package/dist/{lodash-snXoiw60.js → lodash-CBFO-xTu.js} +1 -1
  33. package/dist/member-grant-CHOB8eQ_.js +54 -0
  34. package/dist/restaurant-DH2Fxzi7.js +52 -0
  35. package/dist/role-DUpHwRiY.js +97 -0
  36. package/dist/rule-aUPH1VOW.js +842 -0
  37. package/dist/src/helpers/permission-set.d.ts +1 -102
  38. package/dist/src/helpers/rule.d.ts +2 -2
  39. package/dist/src/stores/restaurant.d.ts +61 -1
  40. package/dist/src/views/audit-log/locales/index.d.ts +12 -0
  41. package/dist/style.css +1 -1
  42. package/dist/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/{useAppStore-pKAGQL6q.js → useAppStore-DwmJbpf-.js} +1 -1
  44. package/dist/{useLoading-D67DIqfk.js → useLoading-Dmlm4oSU.js} +1 -1
  45. package/dist/{useReportPermissions-CfgnE0NY.js → useReportPermissions-XPn-p57R.js} +5 -5
  46. package/package.json +3 -3
  47. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-UPcpeVD5.js +0 -4243
  48. package/dist/TimesheetList-BBv2SV96.js +0 -402
  49. package/dist/member-grant-CJyOr-q0.js +0 -55
  50. package/dist/restaurant-BMlLIUqe.js +0 -51
  51. package/dist/role-DqcBOWHL.js +0 -93
  52. package/dist/rule-B5YNhGJ4.js +0 -788
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as re, ref as K, computed as g, resolveComponent as b, createBlock as O, openBlock as _, withCtx as $, createElementVNode as s, createElementBlock as S, createCommentVNode as Y, toDisplayString as C, unref as a, Fragment as H, renderList as te, createVNode as c, renderSlot as xe, isRef as ue, withModifiers as de, createTextVNode as be, normalizeClass as ke, h as x } from "vue";
2
- import { d as Ve } from "./dayjs.min-BW6-XAUB.js";
2
+ import { d as Ve } from "./dayjs.min-AoirQCgL.js";
3
3
  import { useI18n as ne } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as ie, components as z, useDialog as we, useBreakpoints as Fe, FmButtonVariant as se } from "@feedmepos/ui-library";
5
- import { S as q } from "./SelectFilter-voMj4_j1.js";
6
- import { _ as $e } from "./app-CDCO87ji.js";
7
- import { _ as Se, a as pe, u as Ae, H as Pe } from "./FormSection.vue_vue_type_script_setup_true_lang-DLgm6oCz.js";
5
+ import { S as q } from "./SelectFilter-CBp1qxLd.js";
6
+ import { _ as $e } from "./app-DOFDND9j.js";
7
+ import { _ as Se, a as pe, u as Ae, H as Pe } from "./FormSection.vue_vue_type_script_setup_true_lang-BQzSWAqC.js";
8
8
  import { _ as Be } from "./index.vue_vue_type_script_setup_true_lang-BVVwfd7B.js";
9
- import { u as ve } from "./useLoading-D67DIqfk.js";
10
- import { u as fe } from "./approval-code-CLE9s5dL.js";
11
- import { u as ce } from "./restaurant-BMlLIUqe.js";
9
+ import { u as ve } from "./useLoading-Dmlm4oSU.js";
10
+ import { u as fe } from "./approval-code-Dgj6S82q.js";
11
+ import { u as ce } from "./restaurant-DH2Fxzi7.js";
12
12
  function Ie(d) {
13
13
  var e;
14
14
  const r = (e = d.conditions) == null ? void 0 : e.adjustment;
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as Vt, ref as S, computed as I, onMounted as Eo, onBeforeUnmount as No, watch as ie, resolveComponent as N, createElementBlock as v, openBlock as f, createBlock as Oe, createCommentVNode as F, createElementVNode as a, Fragment as z, renderList as ce, withCtx as Y, createVNode as g, toDisplayString as l, unref as u, nextTick as Ro, onUnmounted as Uo, createTextVNode as Ae, normalizeClass as Ko } from "vue";
2
- import { d as O } from "./dayjs.min-BW6-XAUB.js";
2
+ import { d as O } from "./dayjs.min-AoirQCgL.js";
3
3
  import { defineStore as Bo, storeToRefs as Yo } from "pinia";
4
4
  import { useI18n as $t, useCoreStore as zo } from "@feedmepos/mf-common";
5
- import { g as st, b as at, B as Ft, _ as qo, a as Jo } from "./app-CDCO87ji.js";
5
+ import { g as st, b as at, G as Ft, _ as qo, a as Jo } from "./app-DOFDND9j.js";
6
6
  import { components as ve } from "@feedmepos/ui-library";
7
- import { S as Fe } from "./SelectFilter-voMj4_j1.js";
7
+ import { S as Fe } from "./SelectFilter-CBp1qxLd.js";
8
8
  import { _ as Ho } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
9
9
  import { _ as Wo } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
10
- import { t as Go, p as Mt } from "./rule-B5YNhGJ4.js";
11
- import { u as Xo } from "./restaurant-BMlLIUqe.js";
10
+ import { t as Go, p as Mt } from "./rule-aUPH1VOW.js";
11
+ import { u as Xo } from "./restaurant-DH2Fxzi7.js";
12
12
  import { u as Qo } from "./useDebounce-B8ZPVS5C.js";
13
13
  import { n as Zo } from "./string-DZQ1uNjn.js";
14
14
  const es = {
@@ -1,7 +1,7 @@
1
- import { defineComponent as B, ref as S, onMounted as le, nextTick as ue, onUnmounted as re, resolveComponent as g, createElementBlock as b, openBlock as u, Fragment as C, createElementVNode as U, createVNode as A, renderSlot as T, createCommentVNode as w, toDisplayString as E, normalizeStyle as se, normalizeClass as X, watch as q, defineAsyncComponent as ie, computed as K, renderList as M, createBlock as h, withCtx as j, unref as D, resolveDynamicComponent as de } from "vue";
1
+ import { defineComponent as B, ref as S, onMounted as le, nextTick as ue, onUnmounted as re, resolveComponent as g, createElementBlock as b, openBlock as u, Fragment as C, createElementVNode as U, createVNode as A, renderSlot as T, createCommentVNode as w, toDisplayString as E, normalizeStyle as se, normalizeClass as J, watch as X, defineAsyncComponent as ie, computed as K, renderList as M, createBlock as h, withCtx as j, unref as D, resolveDynamicComponent as de } from "vue";
2
2
  import { useI18n as Y, useCoreStore as me } from "@feedmepos/mf-common";
3
- import { s as L, G as ce, U as W } from "./app-CDCO87ji.js";
4
- import { l as fe } from "./lodash-snXoiw60.js";
3
+ import { O as L, q as ce, U as W } from "./app-DOFDND9j.js";
4
+ import { l as fe } from "./lodash-CBFO-xTu.js";
5
5
  const ye = { class: "flex min-w-0 flex-col gap-4" }, be = {
6
6
  key: 0,
7
7
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
@@ -68,7 +68,7 @@ const ye = { class: "flex min-w-0 flex-col gap-4" }, be = {
68
68
  U("div", {
69
69
  ref_key: "contentRef",
70
70
  ref: c,
71
- class: X(["transition-all duration-300 ease-in-out overflow-hidden", { "pl-32": e.layout === "leading" }]),
71
+ class: J(["transition-all duration-300 ease-in-out overflow-hidden", { "pl-32": e.layout === "leading" }]),
72
72
  style: se({ maxHeight: o.value ? "0" : f.value + "px" })
73
73
  }, [
74
74
  T(v.$slots, "default")
@@ -113,7 +113,7 @@ function $e(e) {
113
113
  const y = new Map(r.value);
114
114
  y.delete(z(s)), r.value = y;
115
115
  }
116
- return e && q(
116
+ return e && X(
117
117
  e,
118
118
  () => {
119
119
  d();
@@ -142,7 +142,7 @@ function ge(e) {
142
142
  function Ve(e, r) {
143
143
  return !fe.isEqual(e, r);
144
144
  }
145
- const Fe = { class: "flex flex-col gap-8" }, Ce = { class: "flex flex-col gap-4" }, xe = "condition-form-select-menu", J = 120, De = 220, Ue = /* @__PURE__ */ B({
145
+ const Fe = { class: "flex flex-col gap-8" }, Ce = { class: "flex flex-col gap-4" }, xe = "condition-form-select-menu", q = 120, De = 220, Ue = /* @__PURE__ */ B({
146
146
  __name: "ConditionFormRenderer",
147
147
  props: {
148
148
  config: {},
@@ -154,7 +154,7 @@ const Fe = { class: "flex flex-col gap-8" }, Ce = { class: "flex flex-col gap-4"
154
154
  setup(e, { emit: r }) {
155
155
  const o = e, c = r, { t: f } = Y(), m = me(), V = K(() => L(o.config, o.modelValue));
156
156
  let d = o.modelValue;
157
- q(
157
+ X(
158
158
  () => o.modelValue,
159
159
  (t) => {
160
160
  d = t;
@@ -314,7 +314,7 @@ const Fe = { class: "flex flex-col gap-8" }, Ce = { class: "flex flex-col gap-4"
314
314
  label: D(f)(a.labelKey),
315
315
  items: I(a),
316
316
  "menu-id": xe,
317
- "menu-z-index": J,
317
+ "menu-z-index": q,
318
318
  "max-height": De,
319
319
  "shift-menu": "",
320
320
  placement: "bottom-start",
@@ -338,7 +338,7 @@ const Fe = { class: "flex flex-col gap-8" }, Ce = { class: "flex flex-col gap-4"
338
338
  key: 4,
339
339
  "model-value": te(a.key),
340
340
  label: D(f)(a.labelKey),
341
- "z-index": J,
341
+ "z-index": q,
342
342
  disabled: e.disabled,
343
343
  "onUpdate:modelValue": (i) => ne(a.key, i)
344
344
  }, null, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : a.kind === "switch" ? (u(), h(N, {
@@ -422,7 +422,7 @@ const Fe = { class: "flex flex-col gap-8" }, Ce = { class: "flex flex-col gap-4"
422
422
  return (f, m) => {
423
423
  const V = g("FmButton");
424
424
  return u(), b("div", {
425
- class: X(["flex flex-col gap-12 p-16", e.fullWidth ? "w-full" : "w-[320px]"])
425
+ class: J(["flex flex-col gap-12 p-16", e.fullWidth ? "w-full" : "w-[320px]"])
426
426
  }, [
427
427
  e.title ? (u(), b("p", Ne, E(e.title), 1)) : w("", !0),
428
428
  (u(!0), b(C, null, M(e.builders, (d, v) => (u(), b(C, {
@@ -1,21 +1,21 @@
1
1
  import { defineComponent as Ve, computed as k, resolveComponent as w, createElementBlock as O, openBlock as b, createElementVNode as m, createVNode as n, toDisplayString as N, Fragment as ke, renderList as Be, createCommentVNode as H, withKeys as Ie, withModifiers as oe, normalizeClass as be, ref as h, watch as re, renderSlot as je, unref as t, withCtx as x, createBlock as D, onUnmounted as Ge, isRef as Re, createTextVNode as he, resolveDynamicComponent as qe, h as pe } from "vue";
2
2
  import { useI18n as Le, useCoreStore as He } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as $e, components as Me, useDialog as We, useBreakpoints as Je } from "@feedmepos/ui-library";
4
- import { S as fe } from "./SelectFilter-voMj4_j1.js";
5
- import { _ as Qe, c as Ye, a as Ze } from "./app-CDCO87ji.js";
6
- import { _ as Ee, a as Fe, u as Xe, H as ea } from "./FormSection.vue_vue_type_script_setup_true_lang-DLgm6oCz.js";
4
+ import { S as fe } from "./SelectFilter-CBp1qxLd.js";
5
+ import { _ as Qe, c as Ye, a as Ze } from "./app-DOFDND9j.js";
6
+ import { _ as Ee, a as Fe, u as Xe, H as ea } from "./FormSection.vue_vue_type_script_setup_true_lang-BQzSWAqC.js";
7
7
  import { _ as aa } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
8
8
  import { _ as la } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
9
  import { c as ta, b as sa, a as oa, p as ra, r as na, s as ia, _ as ua, d as da, e as Ue } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js";
10
10
  import { u as ca } from "./useDebounce-B8ZPVS5C.js";
11
11
  import { n as ma } from "./string-DZQ1uNjn.js";
12
- import { u as Pe, E as pa } from "./employee-BaCU-FLC.js";
13
- import { u as Ae } from "./restaurant-BMlLIUqe.js";
14
- import { l as fa } from "./lodash-snXoiw60.js";
12
+ import { u as Pe, E as pa } from "./employee-VB6YmuSS.js";
13
+ import { u as Ae } from "./restaurant-DH2Fxzi7.js";
14
+ import { l as fa } from "./lodash-CBFO-xTu.js";
15
15
  import { u as va } from "./useDiscardConfirm-CzZSPyvh.js";
16
- import { u as De } from "./useLoading-D67DIqfk.js";
16
+ import { u as De } from "./useLoading-Dmlm4oSU.js";
17
17
  import { c as Se } from "./object-Dwyg2LgX.js";
18
- import { u as _e } from "./role-DqcBOWHL.js";
18
+ import { u as _e } from "./role-DUpHwRiY.js";
19
19
  /* empty css */
20
20
  const ya = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 space-y-16" }, ga = { class: "fm-typo-en-title-sm-600" }, ha = { class: "space-y-16" }, ba = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, _a = { class: "text-sm font-semibold text-fm-color-typo-primary" }, Va = { class: "text-sm font-semibold text-fm-color-typo-primary" }, ka = { class: "flex justify-self-end" }, xa = ["tabindex", "aria-disabled", "aria-label", "onClick", "onKeydown"], wa = /* @__PURE__ */ Ve({
21
21
  __name: "OutletRoleAssignment",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as s, openBlock as o, createElementVNode as n, ref as y, computed as h, defineComponent as d, renderSlot as r, createCommentVNode as i, toDisplayString as a, normalizeClass as m, createVNode as _, withCtx as b } from "vue";
2
- import { a as x } from "./app-CDCO87ji.js";
2
+ import { a as x } from "./app-DOFDND9j.js";
3
3
  const $ = {};
4
4
  function k(e, t) {
5
5
  return o(), s("div", null, [...t[0] || (t[0] = [
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as X, ref as S, computed as f, watch as ue, resolveComponent as v, createElementBlock as D, openBlock as w, Fragment as E, renderSlot as de, createVNode as l, unref as s, withCtx as g, createElementVNode as o, toDisplayString as _, isRef as H, renderList as me, createBlock as pe, createCommentVNode as fe, withModifiers as W, createTextVNode as J, normalizeClass as ve, h as p } from "vue";
2
- import { d as ge } from "./dayjs.min-BW6-XAUB.js";
2
+ import { d as ge } from "./dayjs.min-AoirQCgL.js";
3
3
  import { useI18n as Z } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as ee, components as K, useDialog as _e, useBreakpoints as ye, FmButtonVariant as O } from "@feedmepos/ui-library";
5
- import { S as A } from "./SelectFilter-voMj4_j1.js";
6
- import { _ as he } from "./app-CDCO87ji.js";
7
- import { _ as Ue, a as Q, u as xe, H as be } from "./FormSection.vue_vue_type_script_setup_true_lang-DLgm6oCz.js";
5
+ import { S as A } from "./SelectFilter-CBp1qxLd.js";
6
+ import { _ as he } from "./app-DOFDND9j.js";
7
+ import { _ as Ue, a as Q, u as xe, H as be } from "./FormSection.vue_vue_type_script_setup_true_lang-BQzSWAqC.js";
8
8
  import { _ as Ve } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
- import { u as te } from "./useLoading-D67DIqfk.js";
10
- import { u as ae } from "./grant-user-DMtilLJx.js";
11
- import { u as se } from "./restaurant-BMlLIUqe.js";
12
- import { u as re } from "./role-DqcBOWHL.js";
9
+ import { u as te } from "./useLoading-Dmlm4oSU.js";
10
+ import { u as ae } from "./grant-user-C-ptrq7l.js";
11
+ import { u as se } from "./restaurant-DH2Fxzi7.js";
12
+ import { u as re } from "./role-DUpHwRiY.js";
13
13
  const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, we = { class: "flex gap-8 items-center justify-start" }, Se = /* @__PURE__ */ X({
14
14
  __name: "GrantUserForm",
15
15
  setup(le, { expose: M }) {
@@ -4,11 +4,11 @@ import { useI18n as E, useCoreStore as $ } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as I } from "@feedmepos/ui-library";
5
5
  import { _ as z } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
6
6
  import { _ as M } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
7
- import { u as j } from "./restaurant-BMlLIUqe.js";
8
- import { u as H } from "./role-DqcBOWHL.js";
9
- import { u as J } from "./grant-user-DMtilLJx.js";
10
- import { u as K } from "./approval-code-CLE9s5dL.js";
11
- import { R as n } from "./app-CDCO87ji.js";
7
+ import { u as j } from "./restaurant-DH2Fxzi7.js";
8
+ import { u as H } from "./role-DUpHwRiY.js";
9
+ import { u as J } from "./grant-user-C-ptrq7l.js";
10
+ import { u as K } from "./approval-code-Dgj6S82q.js";
11
+ import { R as n } from "./app-DOFDND9j.js";
12
12
  const Q = { class: "space-y-24" }, ue = /* @__PURE__ */ D({
13
13
  __name: "Main",
14
14
  setup(W) {
@@ -4,19 +4,19 @@ import { useCoreStore as uf, useI18n as vf } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as pf } from "@feedmepos/ui-library";
5
5
  import { _ as df } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
6
6
  import { _ as mf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
7
- import { u as gf } from "./restaurant-BMlLIUqe.js";
8
- import { u as _f } from "./role-DqcBOWHL.js";
7
+ import { u as gf } from "./restaurant-DH2Fxzi7.js";
8
+ import { u as _f } from "./role-DUpHwRiY.js";
9
9
  /* empty css */
10
- import "./employee-BaCU-FLC.js";
11
- import "./lodash-snXoiw60.js";
12
- import "./useAppStore-pKAGQL6q.js";
13
- import "./iteration-CPLGGFBb.js";
10
+ import "./employee-VB6YmuSS.js";
11
+ import "./lodash-CBFO-xTu.js";
12
+ import "./useAppStore-DwmJbpf-.js";
13
+ import "./iteration-DmuDXP8U.js";
14
14
  /* empty css */
15
- import { R as pt } from "./app-CDCO87ji.js";
16
- import "./rule-B5YNhGJ4.js";
17
- import "./useReportPermissions-CfgnE0NY.js";
18
- import "./dayjs.min-BW6-XAUB.js";
19
- import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-h-bWBmpI.js";
15
+ import { R as pt } from "./app-DOFDND9j.js";
16
+ import "./rule-aUPH1VOW.js";
17
+ import "./useReportPermissions-XPn-p57R.js";
18
+ import "./dayjs.min-AoirQCgL.js";
19
+ import "./TimesheetList.vue_vue_type_style_index_0_scoped_c98b0b84_lang-VlnjH9aQ.js";
20
20
  var Nn = {};
21
21
  /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
22
22
  var qt = {};
@@ -3,18 +3,18 @@ import { useRouter as x, useRoute as F } from "vue-router";
3
3
  import { useI18n as I, useCoreStore as O } from "@feedmepos/mf-common";
4
4
  import { _ as $ } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
5
5
  import { _ as q } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
6
- import { u as D } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-nwpdr7T7.js";
7
- import { u as P } from "./restaurant-BMlLIUqe.js";
6
+ import { u as D } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C7fnnbme.js";
7
+ import { u as P } from "./restaurant-DH2Fxzi7.js";
8
8
  import "@feedmepos/ui-library";
9
- import "./rule-B5YNhGJ4.js";
10
- import "./lodash-snXoiw60.js";
11
- import "./iteration-CPLGGFBb.js";
12
- import "./useAppStore-pKAGQL6q.js";
13
- import { R as B } from "./app-CDCO87ji.js";
14
- import "./member-grant-CJyOr-q0.js";
15
- import "./role-DqcBOWHL.js";
9
+ import "./rule-aUPH1VOW.js";
10
+ import "./lodash-CBFO-xTu.js";
11
+ import "./iteration-DmuDXP8U.js";
12
+ import "./useAppStore-DwmJbpf-.js";
13
+ import { R as B } from "./app-DOFDND9j.js";
14
+ import "./member-grant-CHOB8eQ_.js";
15
+ import "./role-DUpHwRiY.js";
16
16
  /* empty css */
17
- import "./useReportPermissions-CfgnE0NY.js";
17
+ import "./useReportPermissions-XPn-p57R.js";
18
18
  const U = { class: "space-y-24" }, se = /* @__PURE__ */ M({
19
19
  __name: "Main",
20
20
  setup(j) {
@@ -2,7 +2,7 @@ import { defineComponent as j, ref as u, computed as v, resolveComponent as h, c
2
2
  import { useI18n as R, useCoreStore as Z, FeedMeAuth as ee } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as oe, useDialog as te, useBreakpoints as se, components as ae, SnackbarPosition as le } from "@feedmepos/ui-library";
4
4
  import { _ as ne } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
5
- import { t as re, f as ce, c as ie, r as de, i as V, d as me, p as ue, o as pe } from "./app-CDCO87ji.js";
5
+ import { t as re, f as ce, c as ie, r as de, i as V, d as me, p as ue, o as pe } from "./app-DOFDND9j.js";
6
6
  import { _ as fe } from "./index.vue_vue_type_script_setup_true_lang-BVVwfd7B.js";
7
7
  const ye = { class: "flex w-full flex-col items-center gap-8 pt-[4px]" }, _e = { class: "fm-typo-en-title-sm-600 text-center" }, ge = { class: "py-[4px]" }, ve = {
8
8
  class: "flex items-center justify-center gap-4 rounded-[12px] bg-fm-color-neutral-gray-100 px-16 py-[20px]",
@@ -1,16 +1,16 @@
1
- import { defineComponent as Z, ref as v, computed as h, watch as ue, resolveComponent as b, createBlock as de, openBlock as ee, unref as r, withCtx as C, createVNode as m, createElementVNode as y, toDisplayString as G, nextTick as pe, onMounted as fe, createElementBlock as ve, Fragment as Se, h as S } from "vue";
1
+ import { defineComponent as Z, ref as v, computed as h, watch as ue, resolveComponent as b, createBlock as de, openBlock as ee, unref as r, withCtx as C, createVNode as m, createElementVNode as P, toDisplayString as J, nextTick as pe, onMounted as fe, createElementBlock as ve, Fragment as Se, h as S } from "vue";
2
2
  import { useI18n as se, useCoreStore as he } from "@feedmepos/mf-common";
3
- import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as H } from "@feedmepos/ui-library";
4
- import { v as Q, _ as be, l as _e } from "./app-CDCO87ji.js";
3
+ import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as Q } from "@feedmepos/ui-library";
4
+ import { v as X, _ as be, n as _e } from "./app-DOFDND9j.js";
5
5
  import { _ as ge } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
6
- import { _ as Pe } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
7
- import { u as ie, c as M, a as ae, p as Y, R as ye, g as we, m as A, l as xe, n as Fe, o as ke, q as Ce, v as Ie } from "./rule-B5YNhGJ4.js";
8
- import { l as T } from "./lodash-snXoiw60.js";
9
- import { c as Ve } from "./iteration-CPLGGFBb.js";
6
+ import { _ as ye } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
7
+ import { u as ie, y as M, a as ae, p as Y, E as Pe, q as we, P as A, T as xe, F as Fe, I as ke, N as Ce, m as Ie } from "./rule-aUPH1VOW.js";
8
+ import { l as $ } from "./lodash-CBFO-xTu.js";
9
+ import { c as Ve } from "./iteration-DmuDXP8U.js";
10
10
  import { u as Re } from "./useDiscardConfirm-CzZSPyvh.js";
11
- import { u as Ee } from "./useLoading-D67DIqfk.js";
12
- import { _ as je } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-UPcpeVD5.js";
13
- const Te = { class: "flex w-full items-center justify-between" }, $e = { class: "fm-typo-en-title-md-600" }, Be = { class: "fm-typo-en-title-sm-600 mt-24" }, Le = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
11
+ import { u as je } from "./useLoading-Dmlm4oSU.js";
12
+ import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BSVtyLlL.js";
13
+ const $e = { class: "flex w-full items-center justify-between" }, Le = { class: "fm-typo-en-title-md-600" }, Be = { class: "fm-typo-en-title-sm-600 mt-24" }, Te = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
14
14
  __name: "PermissionSetForm",
15
15
  props: {
16
16
  modelValue: {
@@ -19,45 +19,45 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
19
19
  }
20
20
  },
21
21
  setup(K, { expose: D }) {
22
- const o = K, { t: i } = se(), f = v(!1), $ = h(() => {
22
+ const o = K, { t: i } = se(), f = v(!1), L = h(() => {
23
23
  var e;
24
24
  return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.title") : i("permissionSet.form.create.title");
25
- }), I = v(), q = oe(), w = te(), { breakpoints: V } = ne(), R = Ee(q), l = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), B = [(e) => !!e || i("permissionSet.form.nameRequired")], N = h(() => {
25
+ }), I = v(), N = oe(), w = te(), { breakpoints: V } = ne(), R = je(N), l = ie(), d = v({ ...o.modelValue }), a = v([]), p = v([]), B = [(e) => !!e || i("permissionSet.form.nameRequired")], q = h(() => {
26
26
  var e;
27
27
  return (e = o.modelValue) != null && e.id ? i("permissionSet.form.update.confirmButtonLabel") : i("permissionSet.form.create.confirmButtonLabel");
28
- }), O = h(
28
+ }), z = h(
29
29
  () => l.permissionSets.value.filter((e) => {
30
30
  var s;
31
31
  return e.id !== ((s = o.modelValue) == null ? void 0 : s.id);
32
32
  }).map((e) => ({ label: e.name, value: e.id }))
33
- ), E = h(
33
+ ), j = h(
34
34
  () => M(a.value, l.permissionSets.value)
35
35
  ), {
36
36
  fetchCustomReportPermissions: n,
37
37
  customReportPermissions: t,
38
38
  isLoaded: c
39
39
  } = ae(), _ = new Set(
40
- Y.filter((e) => e.subject.startsWith(ye)).map((e) => e.subject)
40
+ Y.filter((e) => e.subject.startsWith(Pe)).map((e) => e.subject)
41
41
  ), g = h(() => {
42
42
  const e = new Set(_);
43
43
  for (const s of t.value) e.add(s.subject);
44
44
  return e;
45
- }), z = h(() => {
45
+ }), O = h(() => {
46
46
  const e = /* @__PURE__ */ new Set();
47
47
  for (const s of Y)
48
- s.category === Q.reports && e.add(s.subject);
48
+ s.category === X.reports && e.add(s.subject);
49
49
  for (const s of t.value)
50
- s.category === Q.reports && e.add(s.subject);
50
+ s.category === X.reports && e.add(s.subject);
51
51
  return e;
52
- }), P = v({ name: "", permissionSetIds: [], userPermissions: [] });
52
+ }), y = v({ name: "", permissionSetIds: [], userPermissions: [] });
53
53
  async function U() {
54
54
  var s, u;
55
55
  await pe(), f.value = !f.value, d.value = { ...o.modelValue }, a.value = ((s = o.modelValue) == null ? void 0 : s.permissionSetIds) ?? [];
56
56
  const e = ((u = o.modelValue) == null ? void 0 : u.permissions) ?? [];
57
57
  p.value = we(
58
- A(E.value),
58
+ A(j.value),
59
59
  e
60
- ), P.value = {
60
+ ), y.value = {
61
61
  name: d.value.name ?? "",
62
62
  permissionSetIds: [...a.value],
63
63
  userPermissions: Ve(p.value)
@@ -67,32 +67,32 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
67
67
  e && await n();
68
68
  });
69
69
  const W = Re(
70
- () => !T.isEqual(d.value.name ?? "", P.value.name) || !T.isEqual(a.value, P.value.permissionSetIds) || !T.isEqual(p.value, P.value.userPermissions),
70
+ () => !$.isEqual(d.value.name ?? "", y.value.name) || !$.isEqual(a.value, y.value.permissionSetIds) || !$.isEqual(p.value, y.value.userPermissions),
71
71
  () => {
72
72
  f.value = !1;
73
73
  }
74
74
  );
75
75
  function re() {
76
- const e = A(E.value), s = c.value ? g.value : _, u = xe(p.value, s), x = Fe(u, z.value), F = ke(x);
76
+ const e = A(j.value), s = c.value ? g.value : _, u = xe(p.value, s), x = Fe(u, O.value), F = ke(x);
77
77
  return Ce(e, F);
78
78
  }
79
- function J(e) {
79
+ function G(e) {
80
80
  return A(
81
81
  M(e, l.permissionSets.value)
82
82
  );
83
83
  }
84
- function X(e) {
85
- p.value = J(e);
84
+ function H(e) {
85
+ p.value = G(e);
86
86
  }
87
87
  function le(e) {
88
88
  const s = [...e ?? []];
89
- if (T.isEqual(s, a.value)) return;
90
- const u = !T.isEqual(
89
+ if ($.isEqual(s, a.value)) return;
90
+ const u = !$.isEqual(
91
91
  p.value,
92
- J(a.value)
92
+ G(a.value)
93
93
  );
94
94
  if (a.value = s, !u) {
95
- X(s);
95
+ H(s);
96
96
  return;
97
97
  }
98
98
  w.open({
@@ -108,16 +108,16 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
108
108
  close: !0
109
109
  }
110
110
  }).onPrimary(() => {
111
- X(s), w.close();
111
+ H(s), w.close();
112
112
  });
113
113
  }
114
114
  async function me() {
115
115
  var u, x;
116
116
  const e = await ((u = I.value) == null ? void 0 : u.validateInputsWithoutSubmit()), s = (x = he().currentBusiness.value) == null ? void 0 : x.id;
117
117
  !(e != null && e.length) && s && R.minor(async () => {
118
- var L;
118
+ var T;
119
119
  const F = re();
120
- if ((L = o.modelValue) != null && L.id) {
120
+ if ((T = o.modelValue) != null && T.id) {
121
121
  const k = {
122
122
  name: d.value.name,
123
123
  permissions: F,
@@ -140,17 +140,17 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
140
140
  return D({
141
141
  trigger: U
142
142
  }), (e, s) => {
143
- const u = b("FmIcon"), x = b("FmTextField"), F = b("FmSelect"), L = b("FmForm"), k = b("FmButton"), ce = b("FmSideSheet");
143
+ const u = b("FmIcon"), x = b("FmTextField"), F = b("FmSelect"), T = b("FmForm"), k = b("FmButton"), ce = b("FmSideSheet");
144
144
  return ee(), de(ce, {
145
145
  modelValue: f.value,
146
- "onUpdate:modelValue": s[2] || (s[2] = (j) => f.value = j),
146
+ "onUpdate:modelValue": s[2] || (s[2] = (E) => f.value = E),
147
147
  "max-width": 960,
148
148
  "close-button": !1,
149
149
  "onOn:clickedAway": r(W)
150
150
  }, {
151
151
  "side-sheet-header": C(() => [
152
- y("div", Te, [
153
- y("p", $e, G($.value), 1),
152
+ P("div", $e, [
153
+ P("p", Le, J(L.value), 1),
154
154
  m(u, {
155
155
  name: "close",
156
156
  size: "md",
@@ -160,9 +160,9 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
160
160
  ])
161
161
  ]),
162
162
  "side-sheet-footer": C(() => [
163
- y("div", Le, [
163
+ P("div", Te, [
164
164
  m(k, {
165
- label: N.value,
165
+ label: q.value,
166
166
  size: "md",
167
167
  variant: "primary",
168
168
  type: "submit",
@@ -177,14 +177,14 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
177
177
  ])
178
178
  ]),
179
179
  default: C(() => [
180
- m(L, {
180
+ m(T, {
181
181
  ref_key: "formRef",
182
182
  ref: I
183
183
  }, {
184
184
  default: C(() => [
185
185
  m(x, {
186
186
  modelValue: d.value.name,
187
- "onUpdate:modelValue": s[0] || (s[0] = (j) => d.value.name = j),
187
+ "onUpdate:modelValue": s[0] || (s[0] = (E) => d.value.name = E),
188
188
  label: r(i)("permissionSet.form.name"),
189
189
  placeholder: r(i)("permissionSet.form.namePlaceholder"),
190
190
  rules: B
@@ -194,17 +194,17 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
194
194
  multiselect: "",
195
195
  searchable: "",
196
196
  "search-debounce": 300,
197
- items: O.value,
197
+ items: z.value,
198
198
  label: r(i)("permissionSet.form.includedSets"),
199
199
  placeholder: r(i)("permissionSet.form.includedSetsPlaceholder"),
200
200
  class: "mt-16",
201
201
  "onUpdate:modelValue": le
202
202
  }, null, 8, ["model-value", "items", "label", "placeholder"]),
203
- y("div", Be, G(r(i)("team.memberForm.permissions.title")), 1),
204
- m(je, {
203
+ P("div", Be, J(r(i)("team.memberForm.permissions.title")), 1),
204
+ m(Ee, {
205
205
  modelValue: p.value,
206
- "onUpdate:modelValue": s[1] || (s[1] = (j) => p.value = j),
207
- "inherit-permissions": E.value,
206
+ "onUpdate:modelValue": s[1] || (s[1] = (E) => p.value = E),
207
+ "inherit-permissions": j.value,
208
208
  class: "mt-16"
209
209
  }, null, 8, ["modelValue", "inherit-permissions"])
210
210
  ]),
@@ -215,10 +215,10 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
215
215
  }, 8, ["modelValue", "onOn:clickedAway"]);
216
216
  };
217
217
  }
218
- }), De = { class: "space-y-8" }, qe = { class: "flex justify-end xs:px-16" }, Ne = { class: "flex flex-col h-full overflow-auto" }, Ze = /* @__PURE__ */ Z({
218
+ }), De = { class: "space-y-8" }, Ne = { class: "flex justify-end xs:px-16" }, qe = { class: "flex flex-col h-full overflow-auto" }, Ze = /* @__PURE__ */ Z({
219
219
  __name: "PermissionSetList",
220
220
  setup(K, { expose: D }) {
221
- const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), I = te(), { breakpoints: q } = ne(), w = v(""), V = h(() => {
221
+ const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), L = oe(), I = te(), { breakpoints: N } = ne(), w = v(""), V = h(() => {
222
222
  var n;
223
223
  return (n = d.value) == null ? void 0 : n.filter((t) => {
224
224
  const c = w.value.toLowerCase();
@@ -234,7 +234,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
234
234
  var t;
235
235
  a.value = n, (t = R.value) == null || t.trigger();
236
236
  }
237
- const N = [
237
+ const q = [
238
238
  {
239
239
  accessorKey: "name",
240
240
  header: () => o("permissionSet.table.columns.name")
@@ -247,24 +247,24 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
247
247
  const t = n.row.original, c = M(
248
248
  [t.id],
249
249
  l.permissionSets.value
250
- ), _ = A(c), g = _.length, z = Ie(
250
+ ), _ = A(c), g = _.length, O = Ie(
251
251
  _,
252
252
  i.value
253
253
  );
254
254
  return S("div", { class: "flex items-center gap-8" }, [
255
255
  S("span", o("team.labels.allowed", { count: g })),
256
256
  S(
257
- H.FmTooltip,
257
+ Q.FmTooltip,
258
258
  { variant: "plain", placement: "top" },
259
259
  {
260
- default: () => S(H.FmIcon, {
260
+ default: () => S(Q.FmIcon, {
261
261
  name: "info",
262
262
  class: "cursor-pointer text-fm-color-neutral-gray-300"
263
263
  }),
264
264
  content: () => S("div", [
265
265
  o("team.labels.permission"),
266
- ...z.map(
267
- (P, U) => S("div", { key: `${P}-${U}` }, `- ${P}`)
266
+ ...O.map(
267
+ (y, U) => S("div", { key: `${y}-${U}` }, `- ${y}`)
268
268
  )
269
269
  ])
270
270
  }
@@ -288,12 +288,12 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
288
288
  onClick: (c) => c.stopPropagation()
289
289
  },
290
290
  [
291
- S(Pe, {
291
+ S(ye, {
292
292
  items: [
293
293
  { label: o("common.update"), onClick: () => B(t) },
294
294
  {
295
295
  label: o("common.remove"),
296
- onClick: () => E(t),
296
+ onClick: () => j(t),
297
297
  itemClass: "text-fm-color-typo-error"
298
298
  }
299
299
  ]
@@ -304,15 +304,15 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
304
304
  enableSorting: !1
305
305
  }
306
306
  ];
307
- function O() {
307
+ function z() {
308
308
  var n;
309
309
  a.value = void 0, (n = R.value) == null || n.trigger();
310
310
  }
311
- async function E(n) {
311
+ async function j(n) {
312
312
  I.open({
313
313
  title: o("permissionSet.form.delete.title"),
314
314
  message: o("permissionSet.form.delete.confirmationMessage", { permissionSetName: n.name }),
315
- minWidth: q.value.lg ? 588 : 0,
315
+ minWidth: N.value.lg ? 588 : 0,
316
316
  primaryActions: {
317
317
  text: o("common.remove"),
318
318
  close: !1,
@@ -321,7 +321,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
321
321
  secondaryActions: { text: o("common.cancel"), close: !0 }
322
322
  }).onPrimary(async () => {
323
323
  try {
324
- await l.deletePermissionSet(n.id), $.open({
324
+ await l.deletePermissionSet(n.id), L.open({
325
325
  message: o("permissionSet.form.delete.successMessage", { permissionSetName: n.name }),
326
326
  type: "success"
327
327
  });
@@ -329,7 +329,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
329
329
  const c = t instanceof _e && t.status === 409 ? t.message.includes("referenced by") ? o("permissionSet.form.delete.setReferencedConflictError", {
330
330
  permissionSetName: n.name
331
331
  }) : o("permissionSet.form.delete.conflictError", { permissionSetName: n.name }) : t instanceof Error ? t.message : `${t}`;
332
- $.open({ message: c, type: "error" });
332
+ L.open({ message: c, type: "error" });
333
333
  }
334
334
  I.close();
335
335
  });
@@ -337,7 +337,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
337
337
  return fe(() => {
338
338
  p(), f();
339
339
  }), D({
340
- create: O
340
+ create: z
341
341
  }), (n, t) => {
342
342
  const c = b("FmSearch"), _ = b("FmTable");
343
343
  return ee(), ve(Se, null, [
@@ -346,8 +346,8 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
346
346
  ref: R,
347
347
  "model-value": a.value
348
348
  }, null, 8, ["model-value"]),
349
- y("div", De, [
350
- y("div", qe, [
349
+ P("div", De, [
350
+ P("div", Ne, [
351
351
  m(c, {
352
352
  modelValue: w.value,
353
353
  "onUpdate:modelValue": t[0] || (t[0] = (g) => w.value = g),
@@ -358,7 +358,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
358
358
  ]),
359
359
  m(be, null, {
360
360
  default: C(() => [
361
- y("div", Ne, [
361
+ P("div", qe, [
362
362
  m(ge, {
363
363
  "is-loading": r(l).isLoading.value,
364
364
  "is-empty": V.value.length === 0,
@@ -368,7 +368,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
368
368
  }, {
369
369
  default: C(() => [
370
370
  m(_, {
371
- "column-defs": N,
371
+ "column-defs": q,
372
372
  "row-data": V.value,
373
373
  "page-size": V.value.length,
374
374
  loading: r(l).isLoading.value,