@feedmepos/mf-hrm-portal 2.3.0-dev.10 → 2.3.0-dev.11

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 (49) hide show
  1. package/dist/{ApprovalCodeList-BLA2rhLB.js → ApprovalCodeList-Ce9BWzt9.js} +2 -2
  2. package/dist/{AuditLogList-DBYdZhZl.js → AuditLogList-Cw7WN8K4.js} +3 -3
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CtCEzPbE.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BuofBFPC.js} +2 -2
  4. package/dist/{EmployeeList-CA7DWLmy.js → EmployeeList-B8qWPNvj.js} +23 -22
  5. package/dist/{GrantUserList-BYnegeEr.js → GrantUserList-CgigJIPF.js} +3 -3
  6. package/dist/{Main-BeXx0hAc.js → Main-BfoVdxlY.js} +5 -5
  7. package/dist/{Main-Dh-gZSaa.js → Main-Cg2vC_cj.js} +2 -2
  8. package/dist/{Main-NDK7LUmm.js → Main-D26pgKy1.js} +9 -9
  9. package/dist/{PermissionSetList-DDIacDpQ.js → PermissionSetList-CbtDiF4k.js} +17 -16
  10. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ONMn3v_f.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DW1oBTbb.js} +680 -680
  11. package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
  12. package/dist/{RoleList-B30FHIzu.js → RoleList-D0I8mbyI.js} +19 -18
  13. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CRRguWTG.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Ctwukt6o.js} +1 -1
  14. package/dist/{ScheduleGeneralPage-8gEeZbFR.js → ScheduleGeneralPage-Kv4pnxCL.js} +130 -128
  15. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-TfxTAjO8.js → ScheduleModal.vue_vue_type_script_setup_true_lang-CSA0aaqJ.js} +545 -512
  16. package/dist/SchedulePage-BMWd0bod.js +17942 -0
  17. package/dist/{SchedulePositionPage-oGIDGneA.js → SchedulePositionPage-5Xvx6Dk5.js} +3 -3
  18. package/dist/{TeamMemberList-Drj6R4Y3.js → TeamMemberList-Bh7i5l16.js} +20 -19
  19. package/dist/{TimesheetList-CDQfN5LE.js → TimesheetList-BJKU-hnk.js} +5 -5
  20. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Bx-6hjs7.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-MMWnb9bj.js} +2 -2
  21. package/dist/{app-DWe_4-ct.js → app-BDJ5qxhF.js} +8 -8
  22. package/dist/app.js +1 -1
  23. package/dist/{dayjs.min-QSwC9dtX.js → dayjs.min-BWM0vY4w.js} +1 -1
  24. package/dist/{employee-Bb2b3dP6.js → employee-bBSuAJUr.js} +3 -3
  25. package/dist/{iteration-TDU7bFxZ.js → iteration-Dg7VAkAn.js} +1 -1
  26. package/dist/{lodash-D3Ns5VMN.js → lodash-BknY3p4o.js} +1 -1
  27. package/dist/{role-D57Le_-U.js → role-BJnJnNd_.js} +1 -1
  28. package/dist/{rule-DzesUEX7.js → rule-BEuOY7Wf.js} +2 -2
  29. package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
  30. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +2 -1
  31. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +1 -0
  32. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +0 -3
  33. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +2 -0
  34. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +7 -0
  35. package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +2 -2
  36. package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +1 -0
  37. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +7 -0
  38. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +2 -0
  39. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +1 -0
  40. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +6 -1
  41. package/dist/src/views/scheduling/schedule-store.d.ts +13 -0
  42. package/dist/src/views/scheduling/types.d.ts +2 -0
  43. package/dist/style.css +1 -1
  44. package/dist/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
  46. package/dist/{useReportPermissions-Cmuead1K.js → useReportPermissions-D8hJ5W0t.js} +3 -3
  47. package/package.json +1 -1
  48. package/dist/SchedulePage-DQ0VXWWi.js +0 -17832
  49. package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
@@ -1,9 +1,9 @@
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-QSwC9dtX.js";
2
+ import { d as Ve } from "./dayjs.min-BWM0vY4w.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
5
  import { S as q } from "./SelectFilter-CG13h83-.js";
6
- import { _ as $e } from "./app-DWe_4-ct.js";
6
+ import { _ as $e } from "./app-BDJ5qxhF.js";
7
7
  import { _ as pe, u as Se, H as Ae } from "./FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js";
8
8
  import { _ as Pe } from "./index.vue_vue_type_script_setup_true_lang-BVVwfd7B.js";
9
9
  import { u as ve } from "./useLoading-Ch1AUYT1.js";
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as Mt, ref as S, computed as A, onMounted as Ao, onBeforeUnmount as Fo, watch as de, resolveComponent as N, createElementBlock as b, openBlock as v, createBlock as we, createCommentVNode as j, createElementVNode as a, Fragment as q, renderList as ae, withCtx as B, createVNode as m, toDisplayString as l, unref as c, nextTick as Mo, onUnmounted as Oo, createTextVNode as Ve, normalizeClass as Do } from "vue";
2
- import { d as D } from "./dayjs.min-QSwC9dtX.js";
2
+ import { d as D } from "./dayjs.min-BWM0vY4w.js";
3
3
  import { useI18n as Ot, useCoreStore as jo } from "@feedmepos/mf-common";
4
- import { B as St, _ as Co } from "./app-DWe_4-ct.js";
4
+ import { B as St, _ as Co } from "./app-BDJ5qxhF.js";
5
5
  import { components as ue } from "@feedmepos/ui-library";
6
6
  import { g as Ze, b as et } from "./restaurant-BbYRA_IT.js";
7
7
  import { S as Pe } from "./SelectFilter-CG13h83-.js";
8
8
  import { _ as To } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
9
9
  import { _ as Vo } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
10
- import { t as Po, p as kt } from "./rule-DzesUEX7.js";
10
+ import { t as Po, p as kt } from "./rule-BEuOY7Wf.js";
11
11
  import { defineStore as Eo } from "pinia";
12
12
  import { u as $o } from "./useDebounce-B8ZPVS5C.js";
13
13
  import { n as No } from "./string-VNuQNweN.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as M, ref as S, onMounted as ae, nextTick as le, onUnmounted as ue, resolveComponent as F, createElementBlock as p, openBlock as s, Fragment as C, createElementVNode as U, renderSlot as _, createCommentVNode as w, toDisplayString as J, createVNode as E, normalizeStyle as re, watch as X, defineAsyncComponent as se, computed as z, renderList as T, createBlock as h, withCtx as H, unref as x, resolveDynamicComponent as ie, normalizeClass as de } from "vue";
2
2
  import { useI18n as q, useCoreStore as me } from "@feedmepos/mf-common";
3
- import { d as j, G as ce, U as L } from "./app-DWe_4-ct.js";
4
- import { l as fe } from "./lodash-D3Ns5VMN.js";
3
+ import { d as j, G as ce, U as L } from "./app-BDJ5qxhF.js";
4
+ import { l as fe } from "./lodash-BknY3p4o.js";
5
5
  const ye = { class: "flex items-center" }, be = {
6
6
  key: 0,
7
7
  class: "ml-8 fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
@@ -2,19 +2,20 @@ import { toRaw as Ke, defineComponent as Fe, ref as v, computed as h, watch as X
2
2
  import { useI18n as Re, useCoreStore as He } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Me, components as $e, useDialog as Je, useBreakpoints as We } from "@feedmepos/ui-library";
4
4
  import { S as ue } from "./SelectFilter-CG13h83-.js";
5
- import { _ as Qe, a as Ye } from "./app-DWe_4-ct.js";
5
+ import { _ as Qe, a as Ye } from "./app-BDJ5qxhF.js";
6
6
  import { _ as xe, u as Ze, H as Xe } from "./FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js";
7
- import { u as ea, _ as aa } from "./useDiscardConfirm-DPhEV6v0.js";
8
- import { _ as la } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
- import { s as sa, _ as ta, a as oa, b as ra, c as Ee } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js";
10
- import { u as na } from "./useDebounce-B8ZPVS5C.js";
11
- import { n as ia } from "./string-VNuQNweN.js";
12
- import { u as Le, E as ua } from "./employee-Bb2b3dP6.js";
7
+ import { _ as ea } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
8
+ import { _ as aa } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
+ import { s as la, _ as sa, a as ta, b as oa, c as Ee } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js";
10
+ import { u as ra } from "./useDebounce-B8ZPVS5C.js";
11
+ import { n as na } from "./string-VNuQNweN.js";
12
+ import { u as Le, E as ia } from "./employee-bBSuAJUr.js";
13
13
  import { u as Pe } from "./restaurant-BbYRA_IT.js";
14
- import { l as ca } from "./lodash-D3Ns5VMN.js";
14
+ import { l as ua } from "./lodash-BknY3p4o.js";
15
15
  import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
16
+ import { u as ca } from "./useDiscardConfirm-CzZSPyvh.js";
16
17
  import { u as De } from "./useLoading-Ch1AUYT1.js";
17
- import { u as he } from "./role-D57Le_-U.js";
18
+ import { u as he } from "./role-BJnJnNd_.js";
18
19
  /* empty css */
19
20
  import { _ as ma } from "./_plugin-vue_export-helper-CHgC5LLL.js";
20
21
  function Se($) {
@@ -73,7 +74,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
73
74
  };
74
75
  }
75
76
  const T = h(() => R.value ? c("hr.employee.form.add") : c("hr.employee.form.update")), H = h(() => R.value ? c("common.create") : c("common.update")), b = v(_()), s = v(_()), J = v(void 0), L = h(
76
- () => sa(s.value.restaurants)
77
+ () => la(s.value.restaurants)
77
78
  );
78
79
  function le(u) {
79
80
  var o;
@@ -87,7 +88,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
87
88
  if (te.value)
88
89
  try {
89
90
  const u = await U.custom(
90
- () => ua.generateEmployeePasscode({
91
+ () => ia.generateEmployeePasscode({
91
92
  restaurantIds: L.value,
92
93
  excludePosUserId: J.value
93
94
  }),
@@ -97,8 +98,8 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
97
98
  } catch {
98
99
  }
99
100
  }
100
- const K = ea(
101
- () => !ca.isEqual(s.value, b.value),
101
+ const K = ca(
102
+ () => !ua.isEqual(s.value, b.value),
102
103
  () => {
103
104
  V.value = !1;
104
105
  }
@@ -266,7 +267,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
266
267
  ]
267
268
  }, {
268
269
  default: y(() => [
269
- i(ta, {
270
+ i(sa, {
270
271
  modelValue: F.value,
271
272
  "onUpdate:modelValue": o[3] || (o[3] = (t) => F.value = t),
272
273
  masked: P.value,
@@ -278,7 +279,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
278
279
  ]),
279
280
  _: 1
280
281
  }, 8, ["modelValue", "rules"]),
281
- i(oa, {
282
+ i(ta, {
282
283
  label: l(c)("hr.employee.form.passcodeGenerate"),
283
284
  hint: l(c)("hr.employee.form.passcodeSelectOutletFirst"),
284
285
  loading: W.value,
@@ -304,7 +305,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
304
305
  ]
305
306
  }, {
306
307
  default: y(() => [
307
- i(ra, {
308
+ i(oa, {
308
309
  modelValue: s.value.restaurants,
309
310
  "onUpdate:modelValue": o[7] || (o[7] = (t) => s.value.restaurants = t),
310
311
  restaurants: l(d).restaurants.value,
@@ -438,7 +439,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
438
439
  onClick: (r) => {
439
440
  r.stopPropagation();
440
441
  }
441
- }, [i(aa, {
442
+ }, [i(ea, {
442
443
  items: P(e)
443
444
  }, null)]), W = [{
444
445
  accessorKey: "code",
@@ -454,7 +455,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
454
455
  class: "flex items-center gap-8"
455
456
  }, [i($e.FmAvatar, {
456
457
  name: a.name,
457
- initials: ia(a.name),
458
+ initials: na(a.name),
458
459
  size: "sm",
459
460
  class: "shrink-0"
460
461
  }, null), i("span", {
@@ -618,7 +619,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
618
619
  roleIds: (a = t.value) != null && a.length ? t.value : void 0
619
620
  }, b.value);
620
621
  }
621
- const Ae = na(_, () => {
622
+ const Ae = ra(_, () => {
622
623
  T.value = _.value;
623
624
  }, 300);
624
625
  Be(Ae);
@@ -721,7 +722,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
721
722
  }, {
722
723
  default: y(() => [f("div", Sa, [!L.value && l(d).isLoading.value ? (g(), I(Ye, {
723
724
  key: 0
724
- })) : j("", !0), L.value ? (g(), I(la, {
725
+ })) : j("", !0), L.value ? (g(), I(aa, {
725
726
  key: 1,
726
727
  "is-loading": l(d).isLoading.value,
727
728
  "is-empty": b.value === 0,
@@ -781,7 +782,7 @@ const da = { class: "flex w-full items-center justify-between" }, pa = { class:
781
782
  })) : j("", !0)])], 64);
782
783
  };
783
784
  }
784
- }), Xa = /* @__PURE__ */ ma($a, [["__scopeId", "data-v-5aed0d1c"]]);
785
+ }), el = /* @__PURE__ */ ma($a, [["__scopeId", "data-v-5aed0d1c"]]);
785
786
  export {
786
- Xa as default
787
+ el as default
787
788
  };
@@ -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-QSwC9dtX.js";
2
+ import { d as ge } from "./dayjs.min-BWM0vY4w.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
5
  import { S as A } from "./SelectFilter-CG13h83-.js";
6
- import { _ as he } from "./app-DWe_4-ct.js";
6
+ import { _ as he } from "./app-BDJ5qxhF.js";
7
7
  import { _ as Q, u as Ue, H as xe } from "./FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js";
8
8
  import { _ as be } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
9
  import { u as te } from "./useLoading-Ch1AUYT1.js";
10
10
  import { u as ae } from "./grant-user-qzKHFTro.js";
11
11
  import { u as se } from "./restaurant-BbYRA_IT.js";
12
- import { u as re } from "./role-D57Le_-U.js";
12
+ import { u as re } from "./role-BJnJnNd_.js";
13
13
  import { _ as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js";
14
14
  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({
15
15
  __name: "GrantUserForm",
@@ -5,12 +5,12 @@ import { _ as x } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lan
5
5
  import { _ as F } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
6
6
  import { u as w } from "./restaurant-BbYRA_IT.js";
7
7
  import "@feedmepos/ui-library";
8
- import "./rule-DzesUEX7.js";
9
- import "./lodash-D3Ns5VMN.js";
10
- import "./iteration-TDU7bFxZ.js";
8
+ import "./rule-BEuOY7Wf.js";
9
+ import "./lodash-BknY3p4o.js";
10
+ import "./iteration-Dg7VAkAn.js";
11
11
  import "./useAppStore-BoLkvkE2.js";
12
- import { R as v } from "./app-DWe_4-ct.js";
13
- import "./role-D57Le_-U.js";
12
+ import { R as v } from "./app-BDJ5qxhF.js";
13
+ import "./role-BJnJnNd_.js";
14
14
  /* empty css */
15
15
  import "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js";
16
16
  const $ = { class: "space-y-24" }, Z = /* @__PURE__ */ M({
@@ -5,10 +5,10 @@ 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
7
  import { u as j } from "./restaurant-BbYRA_IT.js";
8
- import { u as H } from "./role-D57Le_-U.js";
8
+ import { u as H } from "./role-BJnJnNd_.js";
9
9
  import { u as J } from "./grant-user-qzKHFTro.js";
10
10
  import { u as K } from "./approval-code-DHsUgc4K.js";
11
- import { R as n } from "./app-DWe_4-ct.js";
11
+ import { R as n } from "./app-BDJ5qxhF.js";
12
12
  const Q = { class: "space-y-24" }, ue = /* @__PURE__ */ D({
13
13
  __name: "Main",
14
14
  setup(W) {
@@ -5,18 +5,18 @@ 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
7
  import { u as gf } from "./restaurant-BbYRA_IT.js";
8
- import { u as _f } from "./role-D57Le_-U.js";
8
+ import { u as _f } from "./role-BJnJnNd_.js";
9
9
  /* empty css */
10
- import "./employee-Bb2b3dP6.js";
11
- import "./lodash-D3Ns5VMN.js";
10
+ import "./employee-bBSuAJUr.js";
11
+ import "./lodash-BknY3p4o.js";
12
12
  import "./useAppStore-BoLkvkE2.js";
13
- import "./iteration-TDU7bFxZ.js";
13
+ import "./iteration-Dg7VAkAn.js";
14
14
  /* empty css */
15
- import { R as pt } from "./app-DWe_4-ct.js";
16
- import "./rule-DzesUEX7.js";
17
- import "./useReportPermissions-Cmuead1K.js";
18
- import "./dayjs.min-QSwC9dtX.js";
19
- import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Bx-6hjs7.js";
15
+ import { R as pt } from "./app-BDJ5qxhF.js";
16
+ import "./rule-BEuOY7Wf.js";
17
+ import "./useReportPermissions-D8hJ5W0t.js";
18
+ import "./dayjs.min-BWM0vY4w.js";
19
+ import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-MMWnb9bj.js";
20
20
  var Nn = {};
21
21
  /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
22
22
  var qt = {};
@@ -1,14 +1,15 @@
1
1
  import { defineComponent as Z, ref as v, computed as b, watch as ue, resolveComponent as h, 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";
2
2
  import { useI18n as se, useCoreStore as be } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as H } from "@feedmepos/ui-library";
4
- import { v as Q, _ as he } from "./app-DWe_4-ct.js";
4
+ import { v as Q, _ as he } from "./app-BDJ5qxhF.js";
5
5
  import { _ as _e } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
6
- import { u as ge, _ as Pe } from "./useDiscardConfirm-DPhEV6v0.js";
7
- import { u as ie, c as M, d as ae, p as Y, i as ye, b as we, m as A, n as xe, o as Fe, k as ke, l as Ce, v as Ie } from "./rule-DzesUEX7.js";
8
- import { l as T } from "./lodash-D3Ns5VMN.js";
9
- import { c as Ve } from "./iteration-TDU7bFxZ.js";
6
+ import { _ as ge } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
7
+ import { u as ie, c as M, d as ae, p as Y, i as Pe, b as ye, m as A, n as we, o as xe, k as Fe, l as ke, v as Ce } from "./rule-BEuOY7Wf.js";
8
+ import { l as T } from "./lodash-BknY3p4o.js";
9
+ import { c as Ie } from "./iteration-Dg7VAkAn.js";
10
+ import { u as Ve } from "./useDiscardConfirm-CzZSPyvh.js";
10
11
  import { u as Re } from "./useLoading-Ch1AUYT1.js";
11
- import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ONMn3v_f.js";
12
+ import { _ as Ee } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DW1oBTbb.js";
12
13
  import { A as je } from "./restaurant-BbYRA_IT.js";
13
14
  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({
14
15
  __name: "PermissionSetForm",
@@ -37,7 +38,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
37
38
  customReportPermissions: t,
38
39
  isLoaded: c
39
40
  } = ae(), _ = new Set(
40
- Y.filter((e) => e.subject.startsWith(ye)).map((e) => e.subject)
41
+ Y.filter((e) => e.subject.startsWith(Pe)).map((e) => e.subject)
41
42
  ), g = b(() => {
42
43
  const e = new Set(_);
43
44
  for (const s of t.value) e.add(s.subject);
@@ -54,27 +55,27 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
54
55
  var s, u;
55
56
  await pe(), f.value = !f.value, d.value = { ...o.modelValue }, a.value = ((s = o.modelValue) == null ? void 0 : s.permissionSetIds) ?? [];
56
57
  const e = ((u = o.modelValue) == null ? void 0 : u.permissions) ?? [];
57
- p.value = we(
58
+ p.value = ye(
58
59
  A(E.value),
59
60
  e
60
61
  ), P.value = {
61
62
  name: d.value.name ?? "",
62
63
  permissionSetIds: [...a.value],
63
- userPermissions: Ve(p.value)
64
+ userPermissions: Ie(p.value)
64
65
  };
65
66
  }
66
67
  ue(f, async (e) => {
67
68
  e && await n();
68
69
  });
69
- const W = ge(
70
+ const W = Ve(
70
71
  () => !T.isEqual(d.value.name ?? "", P.value.name) || !T.isEqual(a.value, P.value.permissionSetIds) || !T.isEqual(p.value, P.value.userPermissions),
71
72
  () => {
72
73
  f.value = !1;
73
74
  }
74
75
  );
75
76
  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);
77
- return Ce(e, F);
77
+ const e = A(E.value), s = c.value ? g.value : _, u = we(p.value, s), x = xe(u, z.value), F = Fe(x);
78
+ return ke(e, F);
78
79
  }
79
80
  function J(e) {
80
81
  return A(
@@ -215,7 +216,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
215
216
  }, 8, ["modelValue", "onOn:clickedAway"]);
216
217
  };
217
218
  }
218
- }), De = { class: "space-y-8" }, Ne = { class: "flex justify-end xs:px-16" }, Oe = { class: "flex flex-col h-full overflow-auto" }, Ze = /* @__PURE__ */ Z({
219
+ }), De = { class: "space-y-8" }, Ne = { class: "flex justify-end xs:px-16" }, Oe = { class: "flex flex-col h-full overflow-auto" }, es = /* @__PURE__ */ Z({
219
220
  __name: "PermissionSetList",
220
221
  setup(K, { expose: D }) {
221
222
  const { t: o } = se(), { customReportPermissions: i, fetchCustomReportPermissions: f } = ae(), $ = oe(), I = te(), { breakpoints: N } = ne(), w = v(""), V = b(() => {
@@ -247,7 +248,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
247
248
  const t = n.row.original, c = M(
248
249
  [t.id],
249
250
  l.permissionSets.value
250
- ), _ = A(c), g = _.length, z = Ie(
251
+ ), _ = A(c), g = _.length, z = Ce(
251
252
  _,
252
253
  i.value
253
254
  );
@@ -288,7 +289,7 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
288
289
  onClick: (c) => c.stopPropagation()
289
290
  },
290
291
  [
291
- S(Pe, {
292
+ S(ge, {
292
293
  items: [
293
294
  { label: o("common.update"), onClick: () => B(t) },
294
295
  {
@@ -390,5 +391,5 @@ const Te = { class: "flex w-full items-center justify-between" }, $e = { class:
390
391
  }
391
392
  });
392
393
  export {
393
- Ze as default
394
+ es as default
394
395
  };