@feedmepos/mf-hrm-portal 2.3.0-dev.9 → 2.3.1-dev.1

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 (130) hide show
  1. package/dist/{ApprovalCodeList-BDpxEJpC.js → ApprovalCodeList-CDU3yUHy.js} +7 -7
  2. package/dist/AuditLogList-BU11Q5sF.js +1950 -0
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BBK2gl7r.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BjHwyaXu.js} +2 -2
  4. package/dist/{EmployeeList-C8cbVcmY.js → EmployeeList-BqzXg3uA.js} +255 -266
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js → FormItem.vue_vue_type_script_setup_true_lang-Clh43Y-8.js} +6 -6
  6. package/dist/{GrantUserList-zul0_Dlm.js → GrantUserList-Cw8RkFqf.js} +8 -8
  7. package/dist/{Main-Cjo4FMZZ.js → Main-BxcRbcce.js} +5 -5
  8. package/dist/{Main-5TsFTFpc.js → Main-CL-ysWRu.js} +8 -8
  9. package/dist/{Main-DSr9KbjT.js → Main-Dlar77Zq.js} +11 -11
  10. package/dist/{PermissionSetList-CDhiiu37.js → PermissionSetList-_8aBzGy7.js} +19 -18
  11. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DoK944l0.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CNgtAtYH.js} +896 -896
  12. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js} +1 -1
  13. package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
  14. package/dist/{RoleList-DEbOPQD_.js → RoleList-C3n_zOB3.js} +21 -20
  15. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CnrbCggg.js +544 -0
  16. package/dist/ScheduleGeneralPage-DGHKW_ww.js +811 -0
  17. package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-AfTAGsh1.js +2556 -0
  18. package/dist/SchedulePage-UzDPRldO.js +19458 -0
  19. package/dist/SchedulePositionPage-RHETW36P.js +282 -0
  20. package/dist/{SelectFilter-CG13h83-.js → SelectFilter-CeBV_Kug.js} +1 -1
  21. package/dist/{TeamMemberList-DpCGqHCk.js → TeamMemberList-B-qR7VS3.js} +27 -27
  22. package/dist/{TimesheetList-B7HAC5zS.js → TimesheetList-BqRIZBt1.js} +52 -53
  23. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BGD6m5M-.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-oIBUAjtv.js} +3 -3
  24. package/dist/{app-Lh0cqgHy.js → app-DFL6Nv_p.js} +10822 -3893
  25. package/dist/app.js +1 -1
  26. package/dist/{approval-code-DHsUgc4K.js → approval-code-BXUiojPH.js} +1 -1
  27. package/dist/{dayjs.min-joq4stsa.js → dayjs.min-CH-gVmsz.js} +1 -1
  28. package/dist/{employee-BPmp9c6i.js → employee-3xpIjR6i.js} +51 -47
  29. package/dist/{grant-user-qzKHFTro.js → grant-user-CBJ3gEgW.js} +1 -1
  30. package/dist/{iteration-jvdTHQUx.js → iteration-D6wutq5U.js} +1 -1
  31. package/dist/{lodash-CIAEpr9s.js → lodash-D5kU1nPN.js} +1 -1
  32. package/dist/object-Dwyg2LgX.js +16 -0
  33. package/dist/{restaurant-BbYRA_IT.js → restaurant-D2mfKHaH.js} +44 -45
  34. package/dist/{role-Dd1TUMhn.js → role-B7nu6hH1.js} +2 -2
  35. package/dist/{rule-DmxI7qEY.js → rule-CMd6SL3n.js} +3 -3
  36. package/dist/src/api/audit-log/index.d.ts +4 -0
  37. package/dist/src/api/employee/index.d.ts +2 -2
  38. package/dist/src/api/schedule/index.d.ts +11 -1
  39. package/dist/src/components/layout/SchedulePromoBanner.vue.d.ts +2 -0
  40. package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
  41. package/dist/src/stores/employee.d.ts +12 -12
  42. package/dist/src/types/schedule.d.ts +1 -1
  43. package/dist/src/views/audit-log/constants.d.ts +9 -30
  44. package/dist/src/views/audit-log/locales/index.d.ts +488 -0
  45. package/dist/src/views/audit-log/pos-row.d.ts +27 -0
  46. package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +6 -2
  47. package/dist/src/views/scheduling/components/ScheduleAutoScheduleDoneArt.vue.d.ts +2 -0
  48. package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +2 -0
  49. package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +5 -0
  50. package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +2 -0
  51. package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +1 -0
  52. package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +0 -1
  53. package/dist/src/views/scheduling/components/ScheduleCompletionDialog.vue.d.ts +1 -1
  54. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +4 -3
  55. package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +5 -0
  56. package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +0 -1
  57. package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +6 -0
  58. package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +1 -1
  59. package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +7 -5
  60. package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +2 -0
  61. package/dist/src/views/scheduling/composables/onboarding-types.d.ts +2 -1
  62. package/dist/src/views/scheduling/composables/remyPrompt.d.ts +4 -2
  63. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +1 -1
  64. package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +4 -0
  65. package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +10 -0
  66. package/dist/src/views/scheduling/composables/schedule-cost.d.ts +5 -0
  67. package/dist/src/views/scheduling/composables/schedule-currency.d.ts +22 -0
  68. package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +1 -3
  69. package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +13 -1
  70. package/dist/src/views/scheduling/composables/schedule-error.d.ts +1 -0
  71. package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +1 -1
  72. package/dist/src/views/scheduling/composables/schedule-leave-split.d.ts +9 -0
  73. package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +23 -0
  74. package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +3 -0
  75. package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +3 -1
  76. package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +1 -0
  77. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +30 -7
  78. package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +5 -11
  79. package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +0 -1
  80. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +22 -13
  81. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +58 -7
  82. package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +3 -10
  83. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +13 -1
  84. package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +0 -1
  85. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +16 -2
  86. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +9 -2
  87. package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +1 -0
  88. package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +14 -6
  89. package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +2 -2
  90. package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +26 -4
  91. package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +1 -1
  92. package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +3 -0
  93. package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +0 -2
  94. package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +1 -0
  95. package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +13 -12
  96. package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +1 -1
  97. package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +28 -2
  98. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +210 -14
  99. package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +11 -8
  100. package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +1 -1
  101. package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +3 -1
  102. package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +13 -0
  103. package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +6 -0
  104. package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +2 -1
  105. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +46 -0
  106. package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +1 -1
  107. package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +2 -2
  108. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +29 -1
  109. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +33 -4
  110. package/dist/src/views/scheduling/country-rules/index.d.ts +13 -4
  111. package/dist/src/views/scheduling/data.d.ts +17 -0
  112. package/dist/src/views/scheduling/locales/index.d.ts +6300 -0
  113. package/dist/src/views/scheduling/schedule-state.d.ts +236 -236
  114. package/dist/src/views/scheduling/schedule-store.d.ts +29 -7
  115. package/dist/src/views/scheduling/types.d.ts +8 -0
  116. package/dist/style.css +1 -1
  117. package/dist/tsconfig.app.tsbuildinfo +1 -1
  118. package/dist/{useAppStore-BoLkvkE2.js → useAppStore-DZCdxlCd.js} +1 -1
  119. package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
  120. package/dist/{useLoading-Ch1AUYT1.js → useLoading-Nygx2zn8.js} +1 -1
  121. package/dist/{useReportPermissions-DM3GOFCC.js → useReportPermissions-BcxIKxlF.js} +3 -3
  122. package/package.json +2 -2
  123. package/dist/AuditLogList-Dgwj1gz8.js +0 -1779
  124. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-Cx9jFgBS.js +0 -492
  125. package/dist/ScheduleGeneralPage-B8PWNsc2.js +0 -776
  126. package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-V1sZ_xhO.js +0 -2253
  127. package/dist/SchedulePage-ndLByVBl.js +0 -17785
  128. package/dist/SchedulePositionPage-Cuv4ydOK.js +0 -264
  129. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  130. package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
@@ -0,0 +1,282 @@
1
+ import { defineComponent as S, ref as x, onMounted as N, computed as z, createElementBlock as d, openBlock as c, createElementVNode as t, createVNode as a, withCtx as u, toDisplayString as l, unref as e, createTextVNode as r, normalizeClass as _, createCommentVNode as A, withDirectives as P, withKeys as k, vModelText as E, Fragment as C, renderList as V, withModifiers as f } from "vue";
2
+ import { useRouter as B } from "vue-router";
3
+ import { useSnackbar as I } from "@feedmepos/ui-library";
4
+ import { useI18n as O } from "@feedmepos/mf-common";
5
+ import { R as L, a as T } from "./app-DFL6Nv_p.js";
6
+ import { aA as U, aB as H, ai as R, av as h, ax as j } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-AfTAGsh1.js";
7
+ import { u as K, a as q, _ as Q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CnrbCggg.js";
8
+ const W = { class: "main" }, G = {
9
+ id: "viewPositions",
10
+ class: "view"
11
+ }, J = { class: "sp-head" }, X = { class: "sp-title-row" }, Y = { class: "sp-title" }, Z = { class: "page-tags" }, ee = {
12
+ class: "sch-badge page-tag-premium",
13
+ "data-color": "brand"
14
+ }, se = {
15
+ class: "sch-badge",
16
+ "data-color": "info"
17
+ }, te = { class: "sp-sub" }, oe = { class: "outlet-bar" }, ie = { class: "outlet-bar-lbl" }, ne = { class: "sp-body" }, le = { class: "sp-content" }, ae = { class: "sp-panel" }, de = { class: "cfg-head" }, ce = { class: "cfg-title" }, ue = { class: "cfg-count" }, re = { id: "skList" }, he = {
18
+ key: 0,
19
+ class: "cfg-empty"
20
+ }, ge = {
21
+ key: 1,
22
+ class: "cfg-list"
23
+ }, pe = {
24
+ key: 0,
25
+ class: "cfg-row"
26
+ }, me = { class: "cfg-main" }, ve = ["placeholder"], fe = ["onClick"], _e = { class: "cfg-main" }, ye = { class: "cfg-name" }, be = {
27
+ key: 0,
28
+ class: "cfg-confirm"
29
+ }, ke = { class: "q" }, Ce = /* @__PURE__ */ S({
30
+ __name: "SchedulePositionPage",
31
+ setup(we) {
32
+ const y = x(null);
33
+ U(y);
34
+ const w = B(), { t: o } = O(), M = I(), b = (m, n = "info") => M.open({ message: m, type: n }), s = K({ notify: b }), g = H(), p = q(void 0, { notify: b });
35
+ N(async () => {
36
+ await g.resolve() && await R(/* @__PURE__ */ new Date());
37
+ });
38
+ const $ = z(
39
+ () => g.options.value.length ? g.options.value : [{ value: "", label: o("scheduling.settings.noOutletSelected"), disabled: !0 }]
40
+ );
41
+ function D(m) {
42
+ g.switchTo(m, /* @__PURE__ */ new Date());
43
+ }
44
+ function F() {
45
+ w.push({ name: L.SCHEDULE });
46
+ }
47
+ return (m, n) => (c(), d("div", {
48
+ ref_key: "rootEl",
49
+ ref: y,
50
+ class: "sch"
51
+ }, [
52
+ t("div", W, [
53
+ t("div", G, [
54
+ t("div", J, [
55
+ a(h, {
56
+ hierarchy: "ghost",
57
+ size: "sm",
58
+ class: "sp-back",
59
+ type: "button",
60
+ onClick: F
61
+ }, {
62
+ default: u(() => [
63
+ n[7] || (n[7] = t("svg", {
64
+ width: "12",
65
+ height: "12",
66
+ viewBox: "0 0 16 16",
67
+ fill: "none",
68
+ "aria-hidden": "true"
69
+ }, [
70
+ t("path", {
71
+ d: "M10 3.5L5.5 8l4.5 4.5",
72
+ stroke: "currentColor",
73
+ "stroke-width": "1.7",
74
+ "stroke-linecap": "round",
75
+ "stroke-linejoin": "round"
76
+ })
77
+ ], -1)),
78
+ t("span", null, l(e(o)("scheduling.settings.backToSchedule")), 1)
79
+ ]),
80
+ _: 1
81
+ }),
82
+ t("div", X, [
83
+ t("div", Y, l(e(o)("scheduling.positions.title")), 1),
84
+ t("span", Z, [
85
+ t("span", ee, l(e(o)("scheduling.common.premium")), 1),
86
+ t("span", se, l(e(o)("scheduling.common.freeUntil")), 1)
87
+ ])
88
+ ]),
89
+ t("div", te, l(e(o)("scheduling.positions.subtitle")), 1),
90
+ t("div", oe, [
91
+ t("span", ie, l(e(o)("scheduling.settings.outlet")), 1),
92
+ a(j, {
93
+ class: "outlet-sel",
94
+ "aria-label": e(o)("scheduling.settings.outletAria"),
95
+ searchable: "",
96
+ title: e(o)("scheduling.positions.outletHint"),
97
+ "model-value": e(g).outletId.value,
98
+ options: $.value,
99
+ "onUpdate:modelValue": D
100
+ }, null, 8, ["aria-label", "title", "model-value", "options"])
101
+ ])
102
+ ]),
103
+ t("div", ne, [
104
+ t("div", le, [
105
+ t("div", ae, [
106
+ t("div", de, [
107
+ t("div", ce, l(e(o)("scheduling.positions.configured")), 1),
108
+ t("span", ue, l(e(s).count.value), 1),
109
+ n[8] || (n[8] = t("span", { class: "cfg-spacer" }, null, -1)),
110
+ a(h, {
111
+ hierarchy: "primary",
112
+ size: "sm",
113
+ class: "am-btn am-btn-primary",
114
+ type: "button",
115
+ onClick: n[0] || (n[0] = (i) => e(p).openNew())
116
+ }, {
117
+ default: u(() => [
118
+ r(l(e(o)("scheduling.positions.addPosition")), 1)
119
+ ]),
120
+ _: 1
121
+ })
122
+ ]),
123
+ t("div", {
124
+ class: _(["ce-err", { show: e(s).error.value }])
125
+ }, l(e(s).error.value), 3),
126
+ t("div", re, [
127
+ !e(s).positions.value.length && !e(s).isAdding.value ? (c(), d("div", he, [
128
+ r(l(e(o)("scheduling.positions.emptyTitle")), 1),
129
+ n[9] || (n[9] = t("br", null, null, -1)),
130
+ r(" " + l(e(o)("scheduling.positions.emptyHint")), 1)
131
+ ])) : (c(), d("div", ge, [
132
+ e(s).isAdding.value ? (c(), d("div", pe, [
133
+ t("div", me, [
134
+ P(t("input", {
135
+ "onUpdate:modelValue": n[1] || (n[1] = (i) => e(s).newName.value = i),
136
+ type: "text",
137
+ class: "cfg-name-input",
138
+ placeholder: e(o)("scheduling.positions.newNamePlaceholder"),
139
+ autofocus: "",
140
+ onKeyup: [
141
+ n[2] || (n[2] = k((i) => e(s).confirmAdd(), ["enter"])),
142
+ n[3] || (n[3] = k((i) => e(s).cancelAdd(), ["esc"]))
143
+ ]
144
+ }, null, 40, ve), [
145
+ [E, e(s).newName.value]
146
+ ])
147
+ ]),
148
+ a(h, {
149
+ hierarchy: "secondary",
150
+ size: "sm",
151
+ class: "cfg-btn",
152
+ type: "button",
153
+ disabled: !e(s).newName.value.trim() || e(s).saving.value,
154
+ onClick: n[4] || (n[4] = (i) => e(s).confirmAdd())
155
+ }, {
156
+ default: u(() => [
157
+ r(l(e(s).saving.value ? e(o)("scheduling.positions.adding") : e(o)("scheduling.positions.add")), 1)
158
+ ]),
159
+ _: 1
160
+ }, 8, ["disabled"]),
161
+ a(h, {
162
+ hierarchy: "secondary",
163
+ size: "sm",
164
+ class: "cfg-btn",
165
+ type: "button",
166
+ disabled: e(s).saving.value,
167
+ onClick: n[5] || (n[5] = (i) => e(s).cancelAdd())
168
+ }, {
169
+ default: u(() => [
170
+ r(l(e(o)("scheduling.common.cancel")), 1)
171
+ ]),
172
+ _: 1
173
+ }, 8, ["disabled"])
174
+ ])) : A("", !0),
175
+ (c(!0), d(C, null, V(e(s).positions.value, (i) => (c(), d("div", {
176
+ key: i.id,
177
+ class: _(["cfg-row", { "is-clickable": e(s).pendingDeleteId.value !== i.id }]),
178
+ onClick: (v) => e(s).pendingDeleteId.value !== i.id && e(p).openEdit(i.id, i.name)
179
+ }, [
180
+ t("div", _e, [
181
+ t("div", ye, l(i.name), 1)
182
+ ]),
183
+ e(s).pendingDeleteId.value === i.id ? (c(), d("div", be, [
184
+ t("span", ke, l(e(s).usageCountFor(i.id) ? e(o)(
185
+ e(s).usageCountFor(i.id) === 1 ? "scheduling.positions.removeFromOne" : "scheduling.positions.removeFromMany",
186
+ { count: e(s).usageCountFor(i.id) }
187
+ ) : e(o)("scheduling.positions.deleteQuestion")), 1),
188
+ a(h, {
189
+ hierarchy: "danger",
190
+ size: "sm",
191
+ class: "cfg-yes",
192
+ type: "button",
193
+ disabled: e(s).saving.value,
194
+ onClick: f((v) => e(s).confirmDelete(i.id), ["stop"])
195
+ }, {
196
+ default: u(() => [
197
+ r(l(e(s).saving.value ? e(o)("scheduling.positions.deleting") : e(o)("scheduling.positions.delete")), 1)
198
+ ]),
199
+ _: 1
200
+ }, 8, ["disabled", "onClick"]),
201
+ a(h, {
202
+ hierarchy: "secondary",
203
+ size: "sm",
204
+ class: "cfg-no",
205
+ type: "button",
206
+ disabled: e(s).saving.value,
207
+ onClick: n[6] || (n[6] = f((v) => e(s).cancelDelete(), ["stop"]))
208
+ }, {
209
+ default: u(() => [
210
+ r(l(e(o)("scheduling.positions.keep")), 1)
211
+ ]),
212
+ _: 1
213
+ }, 8, ["disabled"])
214
+ ])) : (c(), d(C, { key: 1 }, [
215
+ t("span", {
216
+ class: _(["cfg-used", { none: !e(s).usageCountFor(i.id) }])
217
+ }, l(e(s).usageCountFor(i.id) ? e(o)(
218
+ e(s).usageCountFor(i.id) === 1 ? "scheduling.positions.employeeCountOne" : "scheduling.positions.employeeCountMany",
219
+ { count: e(s).usageCountFor(i.id) }
220
+ ) : e(o)("scheduling.positions.unused")), 3),
221
+ a(h, {
222
+ hierarchy: "secondary",
223
+ size: "sm",
224
+ class: "cfg-btn",
225
+ type: "button",
226
+ onClick: f((v) => e(p).openEdit(i.id, i.name), ["stop"])
227
+ }, {
228
+ default: u(() => [
229
+ r(l(e(o)("scheduling.positions.edit")), 1)
230
+ ]),
231
+ _: 1
232
+ }, 8, ["onClick"]),
233
+ a(h, {
234
+ hierarchy: "ghost",
235
+ size: "sm",
236
+ "icon-only": "",
237
+ class: "cfg-del",
238
+ type: "button",
239
+ "aria-label": e(o)("scheduling.positions.deleteAria", { name: i.name }),
240
+ onClick: f((v) => e(s).askDelete(i.id), ["stop"])
241
+ }, {
242
+ default: u(() => [...n[10] || (n[10] = [
243
+ t("svg", {
244
+ width: "14",
245
+ height: "14",
246
+ viewBox: "0 0 16 16",
247
+ fill: "none",
248
+ "aria-hidden": "true"
249
+ }, [
250
+ t("path", {
251
+ d: "M2.5 4.5h11M6 4.5V3a.8.8 0 0 1 .8-.8h2.4a.8.8 0 0 1 .8.8v1.5M4 4.5l.6 8.2a1 1 0 0 0 1 .93h4.8a1 1 0 0 0 1-.93l.6-8.2",
252
+ stroke: "currentColor",
253
+ "stroke-width": "1.4",
254
+ "stroke-linecap": "round",
255
+ "stroke-linejoin": "round"
256
+ }),
257
+ t("path", {
258
+ d: "M6.6 7v4M9.4 7v4",
259
+ stroke: "currentColor",
260
+ "stroke-width": "1.3",
261
+ "stroke-linecap": "round"
262
+ })
263
+ ], -1)
264
+ ])]),
265
+ _: 1
266
+ }, 8, ["aria-label", "onClick"])
267
+ ], 64))
268
+ ], 10, fe))), 128))
269
+ ]))
270
+ ])
271
+ ])
272
+ ])
273
+ ])
274
+ ])
275
+ ]),
276
+ a(Q, { modal: e(p) }, null, 8, ["modal"])
277
+ ], 512));
278
+ }
279
+ }), ze = /* @__PURE__ */ T(Ce, [["__scopeId", "data-v-28c5e4e2"]]);
280
+ export {
281
+ ze as default
282
+ };
@@ -1,7 +1,7 @@
1
1
  import { ref as $, computed as v, defineComponent as X, watch as Y, nextTick as Z, resolveComponent as F, createElementBlock as d, openBlock as c, createElementVNode as A, createVNode as b, renderSlot as z, withCtx as O, createCommentVNode as x, normalizeStyle as ee, Fragment as S, createBlock as T, unref as k, renderList as R, toDisplayString as N, normalizeClass as le, withModifiers as te } from "vue";
2
2
  import "@feedmepos/ui-library";
3
3
  /* empty css */
4
- import { _ as ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import { a as ae } from "./app-DFL6Nv_p.js";
5
5
  function ue(r, u, _ = r) {
6
6
  const t = $(!0), C = v(() => {
7
7
  if (!t.value && !u.value)
@@ -2,22 +2,22 @@ import { defineComponent as we, resolveComponent as F, createElementBlock as L,
2
2
  import { useI18n as Ve, useCoreStore as Ze } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Le, useDialog as Qe, useBreakpoints as Ye, components as Oe } from "@feedmepos/ui-library";
4
4
  import { u as ps } from "./useDebounce-B8ZPVS5C.js";
5
- import { S as ye } from "./SelectFilter-CG13h83-.js";
6
- import { v as Te, m as vs, O as fs, _ as bs, a as hs } from "./app-Lh0cqgHy.js";
7
- import { u as ys, _ as gs } from "./useDiscardConfirm-DPhEV6v0.js";
5
+ import { S as ye } from "./SelectFilter-CeBV_Kug.js";
6
+ import { a as vs, v as Te, m as fs, O as bs, _ as hs, b as ys } from "./app-DFL6Nv_p.js";
7
+ import { _ as gs } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
8
8
  import { _ as _s } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
9
  import { s as Us, _ as Ss, a as xs, b as Fs, c as Ps } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js";
10
- import { u as He } from "./useLoading-Ch1AUYT1.js";
10
+ import { u as He } from "./useLoading-Nygx2zn8.js";
11
+ import { u as Is } from "./useDiscardConfirm-CzZSPyvh.js";
11
12
  import { n as es } from "./string-VNuQNweN.js";
12
- import { l as Pe } from "./lodash-CIAEpr9s.js";
13
- import { c as he } from "./iteration-jvdTHQUx.js";
14
- import { t as _e, u as ss, c as Ae, b as qe, m as $e, d as ts, p as Ge, i as Is, j as Ke, k as ws, l as Vs, n as ks, o as Rs, q as Cs } from "./rule-DmxI7qEY.js";
15
- import { u as as } from "./role-Dd1TUMhn.js";
16
- import { u as ls, i as $s } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js";
17
- import "./useAppStore-BoLkvkE2.js";
18
- import { g as ze, b as We, u as os } from "./restaurant-BbYRA_IT.js";
19
- import { _ as Ms } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DoK944l0.js";
20
- import { _ as Ns } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ import { l as Pe } from "./lodash-D5kU1nPN.js";
14
+ import { c as he } from "./iteration-D6wutq5U.js";
15
+ import { t as _e, u as ss, c as Ae, b as qe, m as $e, d as ts, p as Ge, i as ws, j as Ke, k as Vs, l as ks, n as Rs, o as Cs, q as $s } from "./rule-CMd6SL3n.js";
16
+ import { u as as } from "./role-B7nu6hH1.js";
17
+ import { u as ls, i as Ms } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DQcgZ0nF.js";
18
+ import "./useAppStore-DZCdxlCd.js";
19
+ import { g as ze, b as We, u as os } from "./restaurant-D2mfKHaH.js";
20
+ import { _ as Ns } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CNgtAtYH.js";
21
21
  var Ue = /* @__PURE__ */ ((o) => (o.Update = "Update", o.Remove = "Remove", o))(Ue || {});
22
22
  const Ie = "__unassigned__";
23
23
  function Je(o) {
@@ -84,7 +84,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
84
84
  const v = N, { t: a } = Ve(), m = Le(), J = Ze(), { supportedCountries: k, ready: I } = ls(), R = S(() => {
85
85
  var U;
86
86
  const g = (U = J.currentCountry.value) == null ? void 0 : U.toUpperCase();
87
- return g && $s(g) ? g : void 0;
87
+ return g && Ms(g) ? g : void 0;
88
88
  }), h = p("phone"), C = p(""), d = p(""), f = p(), j = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, E = S(() => j.test(d.value.trim()));
89
89
  async function D() {
90
90
  const g = h.value === "phone" ? C.value.replace(/ /g, "") : d.value.trim();
@@ -205,7 +205,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
205
205
  ]);
206
206
  };
207
207
  }
208
- }), at = /* @__PURE__ */ Ns(tt, [["__scopeId", "data-v-827dfd60"]]), lt = { class: "flex flex-col gap-40" }, ot = { class: "flex items-center" }, rt = { class: "flex-1 flex flex-col" }, nt = { class: "fm-typo-en-title-sm-600" }, it = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ut = { class: "flex flex-row gap-16" }, mt = { class: "flex flex-col gap-8" }, dt = { class: "fm-typo-en-body-lg-400" }, ct = { class: "space-y-16" }, je = 4, pt = /* @__PURE__ */ we({
208
+ }), at = /* @__PURE__ */ vs(tt, [["__scopeId", "data-v-827dfd60"]]), lt = { class: "flex flex-col gap-40" }, ot = { class: "flex items-center" }, rt = { class: "flex-1 flex flex-col" }, nt = { class: "fm-typo-en-title-sm-600" }, it = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ut = { class: "flex flex-row gap-16" }, mt = { class: "flex flex-col gap-8" }, dt = { class: "fm-typo-en-body-lg-400" }, ct = { class: "space-y-16" }, je = 4, pt = /* @__PURE__ */ we({
209
209
  __name: "TeamMemberMasterUser",
210
210
  props: {
211
211
  modelValue: {
@@ -434,7 +434,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
434
434
  ((Z = v.initialValue) == null ? void 0 : Z.permissions) || []
435
435
  )
436
436
  ), { customReportPermissions: j, isLoaded: E } = ts(), D = new Set(
437
- Ge.filter((s) => s.subject.startsWith(Is)).map((s) => s.subject)
437
+ Ge.filter((s) => s.subject.startsWith(ws)).map((s) => s.subject)
438
438
  ), $ = S(() => {
439
439
  const s = new Set(D);
440
440
  for (const c of j.value) s.add(c.subject);
@@ -515,12 +515,12 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
515
515
  });
516
516
  }
517
517
  function O() {
518
- const s = E.value ? $.value : D, c = ks(f.value, s);
519
- return Rs(c, w.value);
518
+ const s = E.value ? $.value : D, c = Rs(f.value, s);
519
+ return Cs(c, w.value);
520
520
  }
521
521
  function Me() {
522
- const s = $e(C.value), c = ws(O());
523
- return Vs(s, c);
522
+ const s = $e(C.value), c = Vs(O());
523
+ return ks(s, c);
524
524
  }
525
525
  function ke() {
526
526
  var K, z, Q, A, W, Y, H, le, be, ce;
@@ -531,7 +531,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
531
531
  customPermissions: s,
532
532
  permissions: c.map((oe) => ({
533
533
  ...oe,
534
- subject: vs(oe.subject)
534
+ subject: fs(oe.subject)
535
535
  })),
536
536
  permissionSetIds: h.value,
537
537
  name: ((Q = k.value) == null ? void 0 : Q.displayName) || ((A = v.initialValue) == null ? void 0 : A.name) || "",
@@ -627,7 +627,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
627
627
  ]),
628
628
  u("div", gt, [
629
629
  u("div", _t, V(l(a)("team.memberForm.permissions.title")), 1),
630
- i(Ms, {
630
+ i(Ns, {
631
631
  modelValue: f.value,
632
632
  "onUpdate:modelValue": c[1] || (c[1] = (ce) => f.value = ce),
633
633
  "inherit-permissions": C.value,
@@ -695,7 +695,7 @@ const Ht = /* @__PURE__ */ we({
695
695
  ls();
696
696
  const {
697
697
  t: a
698
- } = Ve(), m = Ze(), J = os(), k = as(), I = Le(), R = He(I), h = ss(), C = Cs(), d = p(!0), f = p(!1), j = S(() => J.isLoading.value), E = p([]), D = p(0), $ = p(1), w = p(""), n = p("");
698
+ } = Ve(), m = Ze(), J = os(), k = as(), I = Le(), R = He(I), h = ss(), C = $s(), d = p(!0), f = p(!1), j = S(() => J.isLoading.value), E = p([]), D = p(0), $ = p(1), w = p(""), n = p("");
699
699
  pe(J.restaurants, (e) => {
700
700
  if (e.length > 0 && E.value.length > 0) {
701
701
  const t = new Map(e.map((x) => [x._id, x.profile.name])), _ = e.map((x) => x.profile.name).sort();
@@ -870,7 +870,7 @@ const Ht = /* @__PURE__ */ we({
870
870
  function ve() {
871
871
  X++, ue.value = !1, B.value = ee.CLOSED;
872
872
  }
873
- const fe = ys(() => {
873
+ const fe = Is(() => {
874
874
  var e;
875
875
  return ((e = Y.value) == null ? void 0 : e.isModified()) ?? !1;
876
876
  }, ve);
@@ -920,7 +920,7 @@ const Ht = /* @__PURE__ */ we({
920
920
  permissionSubjects: [...Z.value ?? []].sort(),
921
921
  permissionSetIds: [...s.value ?? []].sort()
922
922
  });
923
- }), K = S(() => Object.values(fs).map((e) => ({
923
+ }), K = S(() => Object.values(bs).map((e) => ({
924
924
  label: e.label,
925
925
  value: e.subject
926
926
  }))), z = S(() => [{
@@ -1081,10 +1081,10 @@ const Ht = /* @__PURE__ */ we({
1081
1081
  class: "w-[320px] xs:w-full xs:mt-8",
1082
1082
  autofocus: "",
1083
1083
  placeholder: l(a)("team.search.placeholder")
1084
- }, null, 8, ["modelValue", "placeholder"])])), (Fe = l(m).currentBusiness.value) != null && Fe._id ? (y(), G(bs, {
1084
+ }, null, 8, ["modelValue", "placeholder"])])), (Fe = l(m).currentBusiness.value) != null && Fe._id ? (y(), G(hs, {
1085
1085
  key: 2
1086
1086
  }, {
1087
- default: ie(() => [u("div", kt, [f.value ? q("", !0) : (y(), G(hs, {
1087
+ default: ie(() => [u("div", kt, [f.value ? q("", !0) : (y(), G(ys, {
1088
1088
  key: 0
1089
1089
  })), f.value ? (y(), G(_s, {
1090
1090
  key: 1,