@feedmepos/mf-hrm-portal 2.3.0-dev.16 → 2.3.0-dev.18
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.
- package/dist/{ApprovalCodeList-NeNAiyOr.js → ApprovalCodeList-B10IvyLu.js} +7 -7
- package/dist/{AuditLogList-Pv9kFjBr.js → AuditLogList-BJ8GXIzu.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DWfp8X80.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DfXqKPnU.js} +2 -2
- package/dist/{EmployeeList-Bs9lymzV.js → EmployeeList-CNj262HG.js} +8 -8
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-Cb22fFWE.js → FormItem.vue_vue_type_script_setup_true_lang-BvSLGM1C.js} +1 -1
- package/dist/{GrantUserList-dTWAmoUv.js → GrantUserList-R259wy0R.js} +8 -8
- package/dist/{Main-Cp40vaRW.js → Main-DLgW7BX_.js} +5 -5
- package/dist/{Main-C_RrWM3c.js → Main-DZ5T4TP1.js} +11 -11
- package/dist/{Main-D_iKA3Se.js → Main-yUEWFlC3.js} +8 -8
- package/dist/{PermissionSetList-D9uTEllI.js → PermissionSetList-Xrzkx52n.js} +7 -7
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-vbO5PdcM.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BhR3MM-s.js} +885 -885
- 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
- package/dist/{RoleList-DyoCd2jX.js → RoleList-RRDkrVmu.js} +9 -9
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BhkmMQxt.js +532 -0
- package/dist/{ScheduleGeneralPage-DyIBUXY1.js → ScheduleGeneralPage-CfcIh0Fy.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-CJMPrPHl.js → ScheduleModal.vue_vue_type_script_setup_true_lang-WYuVJxed.js} +655 -639
- package/dist/SchedulePage-CHu1VI-U.js +19201 -0
- package/dist/{SchedulePositionPage-DE5XxDl2.js → SchedulePositionPage-Dx2fZ1QI.js} +27 -27
- package/dist/{SelectFilter-D27X9BNI.js → SelectFilter-DoeKbbjT.js} +1 -1
- package/dist/{TeamMemberList-YudsADAP.js → TeamMemberList-CPpBsvi7.js} +11 -11
- package/dist/{TimesheetList-CQXDulxg.js → TimesheetList-CWl2faUZ.js} +8 -8
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CWHjolT4.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dc0_djRp.js} +3 -3
- package/dist/{app-BMVAE__n.js → app-COWpQb6i.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/{approval-code-DHsUgc4K.js → approval-code-BXUiojPH.js} +1 -1
- package/dist/{dayjs.min-6iMvK3bi.js → dayjs.min-Dv2S110T.js} +1 -1
- package/dist/{employee-kAmYgyIB.js → employee-Drs22uVf.js} +4 -4
- package/dist/{grant-user-qzKHFTro.js → grant-user-CBJ3gEgW.js} +1 -1
- package/dist/{iteration-kNseYv0g.js → iteration-B23jisFZ.js} +1 -1
- package/dist/{lodash-CoGtJ4ls.js → lodash-CQM_jgZN.js} +1 -1
- package/dist/{restaurant-BbYRA_IT.js → restaurant-D2mfKHaH.js} +44 -45
- package/dist/{role-BvQeAAsI.js → role-k4mdt-op.js} +2 -2
- package/dist/{rule-DkjcuvBR.js → rule-xOAXApqp.js} +3 -3
- package/dist/src/api/schedule/index.d.ts +6 -1
- package/dist/src/types/schedule.d.ts +1 -1
- package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +4 -2
- package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +1 -0
- package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +5 -0
- package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +1 -0
- package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +5 -0
- package/dist/src/views/scheduling/composables/remyPrompt.d.ts +4 -4
- package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +3 -0
- package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +0 -1
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +6 -2
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +3 -10
- package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +14 -0
- package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +1 -1
- package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +12 -2
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +6 -0
- package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +6 -1
- package/dist/src/views/scheduling/schedule-state.d.ts +232 -232
- package/dist/src/views/scheduling/schedule-store.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BoLkvkE2.js → useAppStore-DZCdxlCd.js} +1 -1
- package/dist/{useLoading-Ch1AUYT1.js → useLoading-Nygx2zn8.js} +1 -1
- package/dist/{useReportPermissions-CbnelOLy.js → useReportPermissions-BB4JiYDf.js} +3 -3
- package/package.json +3 -3
- package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-D0Mg9P_m.js +0 -501
- package/dist/SchedulePage-BkvOpOVt.js +0 -18757
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as M, ref as A, onMounted as
|
|
1
|
+
import { defineComponent as M, ref as A, onMounted as F, computed as S, createElementBlock as i, openBlock as l, createElementVNode as o, createVNode as n, createStaticVNode as x, withCtx as d, unref as s, toDisplayString as c, createTextVNode as r, normalizeClass as h, createCommentVNode as z, withDirectives as E, withKeys as k, vModelText as P, Fragment as C, renderList as V, withModifiers as g } from "vue";
|
|
2
2
|
import { useRouter as B } from "vue-router";
|
|
3
3
|
import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
4
|
-
import { R as L, a as O } from "./app-
|
|
5
|
-
import { av as R, aw as K, ag as T, ar as u, as as U } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { u as W, a as j, _ as q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { R as L, a as O } from "./app-COWpQb6i.js";
|
|
5
|
+
import { av as R, aw as K, ag as T, ar as u, as as U } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-WYuVJxed.js";
|
|
6
|
+
import { u as W, a as j, _ as q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-BhkmMQxt.js";
|
|
7
7
|
const H = { class: "main" }, G = {
|
|
8
8
|
id: "viewPositions",
|
|
9
9
|
class: "view"
|
|
@@ -24,20 +24,20 @@ const H = { class: "main" }, G = {
|
|
|
24
24
|
setup(fe) {
|
|
25
25
|
const y = A(null);
|
|
26
26
|
R(y);
|
|
27
|
-
const
|
|
28
|
-
|
|
27
|
+
const w = B(), _ = I(), b = (m, e = "info") => _.open({ message: m, type: e }), t = W({ notify: b }), v = K(), f = j(void 0, { notify: b });
|
|
28
|
+
F(async () => {
|
|
29
29
|
await v.resolve() && await T(/* @__PURE__ */ new Date());
|
|
30
30
|
});
|
|
31
|
-
const
|
|
31
|
+
const $ = S(
|
|
32
32
|
() => v.options.value.length ? v.options.value : [{ value: "", label: "No outlet selected", disabled: !0 }]
|
|
33
33
|
);
|
|
34
|
-
function
|
|
35
|
-
v.switchTo(
|
|
34
|
+
function D(m) {
|
|
35
|
+
v.switchTo(m, /* @__PURE__ */ new Date());
|
|
36
36
|
}
|
|
37
37
|
function N() {
|
|
38
|
-
|
|
38
|
+
w.push({ name: L.SCHEDULE });
|
|
39
39
|
}
|
|
40
|
-
return (
|
|
40
|
+
return (m, e) => (l(), i("div", {
|
|
41
41
|
ref_key: "rootEl",
|
|
42
42
|
ref: y,
|
|
43
43
|
class: "sch"
|
|
@@ -72,7 +72,7 @@ const H = { class: "main" }, G = {
|
|
|
72
72
|
])]),
|
|
73
73
|
_: 1
|
|
74
74
|
}),
|
|
75
|
-
e[9] || (e[9] =
|
|
75
|
+
e[9] || (e[9] = x('<div class="sp-title-row" data-v-77f876af><div class="sp-title" data-v-77f876af>Position</div><span class="page-tags" data-v-77f876af><span class="sch-badge page-tag-premium" data-color="brand" data-v-77f876af>Premium</span><span class="sch-badge" data-color="info" data-v-77f876af>Free until 31 Dec 2026</span></span></div><div class="sp-sub" data-v-77f876af>What your employees can do — the same catalogue across every outlet.</div>', 2)),
|
|
76
76
|
o("div", Q, [
|
|
77
77
|
e[8] || (e[8] = o("span", { class: "outlet-bar-lbl" }, "Outlet", -1)),
|
|
78
78
|
n(U, {
|
|
@@ -81,8 +81,8 @@ const H = { class: "main" }, G = {
|
|
|
81
81
|
searchable: "",
|
|
82
82
|
title: "Which outlet's roster the staff counts below are read from",
|
|
83
83
|
"model-value": s(v).outletId.value,
|
|
84
|
-
options:
|
|
85
|
-
"onUpdate:modelValue":
|
|
84
|
+
options: $.value,
|
|
85
|
+
"onUpdate:modelValue": D
|
|
86
86
|
}, null, 8, ["model-value", "options"])
|
|
87
87
|
])
|
|
88
88
|
]),
|
|
@@ -117,7 +117,7 @@ const H = { class: "main" }, G = {
|
|
|
117
117
|
])])) : (l(), i("div", ae, [
|
|
118
118
|
s(t).isAdding.value ? (l(), i("div", ne, [
|
|
119
119
|
o("div", ie, [
|
|
120
|
-
|
|
120
|
+
E(o("input", {
|
|
121
121
|
"onUpdate:modelValue": e[1] || (e[1] = (a) => s(t).newName.value = a),
|
|
122
122
|
type: "text",
|
|
123
123
|
class: "cfg-name-input",
|
|
@@ -128,7 +128,7 @@ const H = { class: "main" }, G = {
|
|
|
128
128
|
e[3] || (e[3] = k((a) => s(t).cancelAdd(), ["esc"]))
|
|
129
129
|
]
|
|
130
130
|
}, null, 544), [
|
|
131
|
-
[
|
|
131
|
+
[P, s(t).newName.value]
|
|
132
132
|
])
|
|
133
133
|
]),
|
|
134
134
|
n(u, {
|
|
@@ -157,24 +157,24 @@ const H = { class: "main" }, G = {
|
|
|
157
157
|
])]),
|
|
158
158
|
_: 1
|
|
159
159
|
}, 8, ["disabled"])
|
|
160
|
-
])) :
|
|
161
|
-
(l(!0), i(
|
|
160
|
+
])) : z("", !0),
|
|
161
|
+
(l(!0), i(C, null, V(s(t).positions.value, (a) => (l(), i("div", {
|
|
162
162
|
key: a.id,
|
|
163
163
|
class: h(["cfg-row", { "is-clickable": s(t).pendingDeleteId.value !== a.id }]),
|
|
164
|
-
onClick: (
|
|
164
|
+
onClick: (p) => s(t).pendingDeleteId.value !== a.id && s(f).openEdit(a.id, a.name)
|
|
165
165
|
}, [
|
|
166
166
|
o("div", de, [
|
|
167
167
|
o("div", re, c(a.name), 1)
|
|
168
168
|
]),
|
|
169
169
|
s(t).pendingDeleteId.value === a.id ? (l(), i("div", ue, [
|
|
170
|
-
o("span", ce, c(s(t).usageCountFor(a.id) ? `Remove from ${s(t).usageCountFor(a.id)}
|
|
170
|
+
o("span", ce, c(s(t).usageCountFor(a.id) ? `Remove from ${s(t).usageCountFor(a.id)} employee${s(t).usageCountFor(a.id) === 1 ? "" : "s"}?` : "Delete?"), 1),
|
|
171
171
|
n(u, {
|
|
172
172
|
hierarchy: "danger",
|
|
173
173
|
size: "sm",
|
|
174
174
|
class: "cfg-yes",
|
|
175
175
|
type: "button",
|
|
176
176
|
disabled: s(t).saving.value,
|
|
177
|
-
onClick: g((
|
|
177
|
+
onClick: g((p) => s(t).confirmDelete(a.id), ["stop"])
|
|
178
178
|
}, {
|
|
179
179
|
default: d(() => [
|
|
180
180
|
r(c(s(t).saving.value ? "Deleting…" : "Delete"), 1)
|
|
@@ -187,23 +187,23 @@ const H = { class: "main" }, G = {
|
|
|
187
187
|
class: "cfg-no",
|
|
188
188
|
type: "button",
|
|
189
189
|
disabled: s(t).saving.value,
|
|
190
|
-
onClick: e[6] || (e[6] = g((
|
|
190
|
+
onClick: e[6] || (e[6] = g((p) => s(t).cancelDelete(), ["stop"]))
|
|
191
191
|
}, {
|
|
192
192
|
default: d(() => [...e[15] || (e[15] = [
|
|
193
193
|
r(" Keep ", -1)
|
|
194
194
|
])]),
|
|
195
195
|
_: 1
|
|
196
196
|
}, 8, ["disabled"])
|
|
197
|
-
])) : (l(), i(
|
|
197
|
+
])) : (l(), i(C, { key: 1 }, [
|
|
198
198
|
o("span", {
|
|
199
199
|
class: h(["cfg-used", { none: !s(t).usageCountFor(a.id) }])
|
|
200
|
-
}, c(s(t).usageCountFor(a.id) ? `${s(t).usageCountFor(a.id)}
|
|
200
|
+
}, c(s(t).usageCountFor(a.id) ? `${s(t).usageCountFor(a.id)} employee${s(t).usageCountFor(a.id) === 1 ? "" : "s"}` : "unused"), 3),
|
|
201
201
|
n(u, {
|
|
202
202
|
hierarchy: "secondary",
|
|
203
203
|
size: "sm",
|
|
204
204
|
class: "cfg-btn",
|
|
205
205
|
type: "button",
|
|
206
|
-
onClick: g((
|
|
206
|
+
onClick: g((p) => s(f).openEdit(a.id, a.name), ["stop"])
|
|
207
207
|
}, {
|
|
208
208
|
default: d(() => [...e[16] || (e[16] = [
|
|
209
209
|
r(" Edit ", -1)
|
|
@@ -217,7 +217,7 @@ const H = { class: "main" }, G = {
|
|
|
217
217
|
class: "cfg-del",
|
|
218
218
|
type: "button",
|
|
219
219
|
"aria-label": `Delete ${a.name}`,
|
|
220
|
-
onClick: g((
|
|
220
|
+
onClick: g((p) => s(t).askDelete(a.id), ["stop"])
|
|
221
221
|
}, {
|
|
222
222
|
default: d(() => [...e[17] || (e[17] = [
|
|
223
223
|
o("svg", {
|
|
@@ -256,7 +256,7 @@ const H = { class: "main" }, G = {
|
|
|
256
256
|
n(q, { modal: s(f) }, null, 8, ["modal"])
|
|
257
257
|
], 512));
|
|
258
258
|
}
|
|
259
|
-
}), ke = /* @__PURE__ */ O(ve, [["__scopeId", "data-v-
|
|
259
|
+
}), ke = /* @__PURE__ */ O(ve, [["__scopeId", "data-v-77f876af"]]);
|
|
260
260
|
export {
|
|
261
261
|
ke as default
|
|
262
262
|
};
|
|
@@ -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 { a as ae } from "./app-
|
|
4
|
+
import { a as ae } from "./app-COWpQb6i.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-
|
|
6
|
-
import { a as vs, v as Te, m as fs, O as bs, _ as hs, b as ys } from "./app-
|
|
5
|
+
import { S as ye } from "./SelectFilter-DoeKbbjT.js";
|
|
6
|
+
import { a as vs, v as Te, m as fs, O as bs, _ as hs, b as ys } from "./app-COWpQb6i.js";
|
|
7
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-
|
|
10
|
+
import { u as He } from "./useLoading-Nygx2zn8.js";
|
|
11
11
|
import { u as Is } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
12
12
|
import { n as es } from "./string-VNuQNweN.js";
|
|
13
|
-
import { l as Pe } from "./lodash-
|
|
14
|
-
import { c as he } from "./iteration-
|
|
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-
|
|
16
|
-
import { u as as } from "./role-
|
|
17
|
-
import { u as ls, i as Ms } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-
|
|
18
|
-
import "./useAppStore-
|
|
19
|
-
import { g as ze, b as We, u as os } from "./restaurant-
|
|
20
|
-
import { _ as Ns } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { l as Pe } from "./lodash-CQM_jgZN.js";
|
|
14
|
+
import { c as he } from "./iteration-B23jisFZ.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-xOAXApqp.js";
|
|
16
|
+
import { u as as } from "./role-k4mdt-op.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-BhR3MM-s.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) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ref as d, computed as g, defineComponent as pe, onMounted as fe, watch as Z, resolveComponent as u, createElementBlock as P, openBlock as E, Fragment as ee, createVNode as l, createElementVNode as i, unref as n, withCtx as b, createCommentVNode as ve, toDisplayString as O, createTextVNode as he, isRef as ge, renderList as we, createBlock as te, nextTick as ye } from "vue";
|
|
2
|
-
import { d as v } from "./dayjs.min-
|
|
2
|
+
import { d as v } from "./dayjs.min-Dv2S110T.js";
|
|
3
3
|
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as be, components as xe } from "@feedmepos/ui-library";
|
|
5
|
-
import { S as De } from "./SelectFilter-
|
|
6
|
-
import { _ as Se, a as Ve } from "./app-
|
|
5
|
+
import { S as De } from "./SelectFilter-DoeKbbjT.js";
|
|
6
|
+
import { _ as Se, a as Ve } from "./app-COWpQb6i.js";
|
|
7
7
|
import { _ as ke } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
|
-
import { u as Ce } from "./useLoading-
|
|
9
|
-
import { g as Fe, s as Ye } from "./iteration-
|
|
8
|
+
import { u as Ce } from "./useLoading-Nygx2zn8.js";
|
|
9
|
+
import { g as Fe, s as Ye } from "./iteration-B23jisFZ.js";
|
|
10
10
|
import { f as Le } from "./utils-BZkjJbju.js";
|
|
11
11
|
import { n as Me } from "./string-VNuQNweN.js";
|
|
12
|
-
import { u as Te } from "./employee-
|
|
13
|
-
import { u as Ie } from "./restaurant-
|
|
14
|
-
import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-
|
|
12
|
+
import { u as Te } from "./employee-Drs22uVf.js";
|
|
13
|
+
import { u as Ie } from "./restaurant-D2mfKHaH.js";
|
|
14
|
+
import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-Dc0_djRp.js";
|
|
15
15
|
function $e(x, a) {
|
|
16
16
|
return ["years", "months"].find((S) => {
|
|
17
17
|
const V = x.startOf(S), p = x.endOf(S);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-
|
|
1
|
+
import { d as i } from "./dayjs.min-Dv2S110T.js";
|
|
2
2
|
import { defineStore as p, storeToRefs as T } from "pinia";
|
|
3
3
|
import { ref as l } from "vue";
|
|
4
|
-
import { b as c, g as y } from "./restaurant-
|
|
5
|
-
import { s as S } from "./iteration-
|
|
4
|
+
import { b as c, g as y } from "./restaurant-D2mfKHaH.js";
|
|
5
|
+
import { s as S } from "./iteration-B23jisFZ.js";
|
|
6
6
|
import { i as f, f as g } from "./utils-BZkjJbju.js";
|
|
7
7
|
const u = {
|
|
8
8
|
async readTimesheets(t, e) {
|
|
@@ -10115,16 +10115,16 @@ const _e = (e) => ({
|
|
|
10115
10115
|
}
|
|
10116
10116
|
]
|
|
10117
10117
|
}
|
|
10118
|
-
}), jc = ot(pe(() => import("./Main-
|
|
10119
|
-
pe(() => import("./AuditLogList-
|
|
10120
|
-
), Oc = ot(pe(() => import("./Main-
|
|
10121
|
-
() => import("./PermissionSetList-
|
|
10118
|
+
}), jc = ot(pe(() => import("./Main-DZ5T4TP1.js"))), Ec = ot(pe(() => import("./Main-yUEWFlC3.js"))), Pc = ot(
|
|
10119
|
+
pe(() => import("./AuditLogList-BJ8GXIzu.js"))
|
|
10120
|
+
), Oc = ot(pe(() => import("./Main-DLgW7BX_.js"))), Gc = pe(() => import("./ApprovalCodeList-B10IvyLu.js")), Yc = pe(() => import("./GrantUserList-R259wy0R.js")), Vc = pe(() => import("./EmployeeList-CNj262HG.js")), Fc = pe(() => import("./RoleList-RRDkrVmu.js")), Sc = pe(() => import("./TimesheetList-CWl2faUZ.js")), Tc = pe(() => import("./TeamMemberList-CPpBsvi7.js")), kc = pe(
|
|
10121
|
+
() => import("./PermissionSetList-Xrzkx52n.js")
|
|
10122
10122
|
), Rc = Ws(
|
|
10123
|
-
ot(pe(() => import("./SchedulePage-
|
|
10123
|
+
ot(pe(() => import("./SchedulePage-CHu1VI-U.js")))
|
|
10124
10124
|
), Nc = Ws(
|
|
10125
|
-
ot(pe(() => import("./SchedulePositionPage-
|
|
10125
|
+
ot(pe(() => import("./SchedulePositionPage-Dx2fZ1QI.js")))
|
|
10126
10126
|
), Hc = Ws(
|
|
10127
|
-
ot(pe(() => import("./ScheduleGeneralPage-
|
|
10127
|
+
ot(pe(() => import("./ScheduleGeneralPage-CfcIh0Fy.js")))
|
|
10128
10128
|
), lu = [
|
|
10129
10129
|
{
|
|
10130
10130
|
path: "/",
|
|
@@ -11183,7 +11183,7 @@ const cu = /* @__PURE__ */ nt({
|
|
|
11183
11183
|
};
|
|
11184
11184
|
}
|
|
11185
11185
|
});
|
|
11186
|
-
var xs = { name: "@feedmepos/mf-hrm-portal", version: "2.3.0-dev.
|
|
11186
|
+
var xs = { name: "@feedmepos/mf-hrm-portal", version: "2.3.0-dev.18", mode: "fmmf" };
|
|
11187
11187
|
console.log(
|
|
11188
11188
|
`%c${xs.name}%c v${xs.version} %c${xs.mode}`,
|
|
11189
11189
|
"background:#1f1f1f;color:#fff;padding:2px 6px;border-radius:3px 0 0 3px",
|
package/dist/app.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as C } from "pinia";
|
|
2
2
|
import { ref as l } from "vue";
|
|
3
|
-
import { g as p, b as s } from "./restaurant-
|
|
3
|
+
import { g as p, b as s } from "./restaurant-D2mfKHaH.js";
|
|
4
4
|
const n = {
|
|
5
5
|
async getApprovalCodes() {
|
|
6
6
|
return p(await s("approval-codes").get(""));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as g } from "./dayjs.min-
|
|
1
|
+
import { d as g } from "./dayjs.min-Dv2S110T.js";
|
|
2
2
|
import { defineStore as $, storeToRefs as x } from "pinia";
|
|
3
3
|
import { ref as m } from "vue";
|
|
4
|
-
import { s as E } from "./iteration-
|
|
5
|
-
import { b as l, g as f, u as I } from "./restaurant-
|
|
4
|
+
import { s as E } from "./iteration-B23jisFZ.js";
|
|
5
|
+
import { b as l, g as f, u as I } from "./restaurant-D2mfKHaH.js";
|
|
6
6
|
import { i as v } from "./utils-BZkjJbju.js";
|
|
7
|
-
import { u as P } from "./role-
|
|
7
|
+
import { u as P } from "./role-k4mdt-op.js";
|
|
8
8
|
const o = {
|
|
9
9
|
async readEmployees() {
|
|
10
10
|
return f(await l().get("/pos-users"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as f } from "pinia";
|
|
2
2
|
import { ref as u } from "vue";
|
|
3
|
-
import { g as s, a as v, b as o } from "./restaurant-
|
|
3
|
+
import { g as s, a as v, b as o } from "./restaurant-D2mfKHaH.js";
|
|
4
4
|
const c = {
|
|
5
5
|
async getGrantUsers() {
|
|
6
6
|
return s(await o("grant").get(""));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as B } from "./app-
|
|
1
|
+
import { f as B } from "./app-COWpQb6i.js";
|
|
2
2
|
var ma = {}, Zt = {}, l = {}, ji = {}, Ei = {}, Ii = {}, Dn = {};
|
|
3
3
|
(function(e) {
|
|
4
4
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getParsedType = e.ZodParsedType = e.util = void 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineStore as gt, storeToRefs as
|
|
1
|
+
import { defineStore as gt, storeToRefs as St } from "pinia";
|
|
2
2
|
import { ref as fe } from "vue";
|
|
3
|
-
import { useCoreStore as re, baseClientInstance as We, FeedMeAuth as
|
|
3
|
+
import { useCoreStore as re, baseClientInstance as We, FeedMeAuth as Rt } from "@feedmepos/mf-common";
|
|
4
4
|
function Ke(e, t) {
|
|
5
5
|
return function() {
|
|
6
6
|
return e.apply(t, arguments);
|
|
@@ -354,7 +354,7 @@ function ae(e, t, n) {
|
|
|
354
354
|
convertValue: l,
|
|
355
355
|
isVisitable: ye
|
|
356
356
|
});
|
|
357
|
-
function
|
|
357
|
+
function S(d, m) {
|
|
358
358
|
if (!a.isUndefined(d)) {
|
|
359
359
|
if (h.indexOf(d) !== -1)
|
|
360
360
|
throw Error("Circular reference detected in " + m.join("."));
|
|
@@ -365,13 +365,13 @@ function ae(e, t, n) {
|
|
|
365
365
|
a.isString(C) ? C.trim() : C,
|
|
366
366
|
m,
|
|
367
367
|
b
|
|
368
|
-
)) === !0 &&
|
|
368
|
+
)) === !0 && S(E, m ? m.concat(C) : [C]);
|
|
369
369
|
}), h.pop();
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
if (!a.isObject(e))
|
|
373
373
|
throw new TypeError("data must be an object");
|
|
374
|
-
return
|
|
374
|
+
return S(e), t;
|
|
375
375
|
}
|
|
376
376
|
function _e(e) {
|
|
377
377
|
const t = {
|
|
@@ -486,27 +486,27 @@ const at = {
|
|
|
486
486
|
Blob: mn
|
|
487
487
|
},
|
|
488
488
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
489
|
-
},
|
|
490
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", En =
|
|
489
|
+
}, Se = typeof window < "u" && typeof document < "u", be = typeof navigator == "object" && navigator || void 0, bn = Se && (!be || ["ReactNative", "NativeScript", "NS"].indexOf(be.product) < 0), wn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
490
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", En = Se && window.location.href || "http://localhost", gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
491
491
|
__proto__: null,
|
|
492
|
-
hasBrowserEnv:
|
|
492
|
+
hasBrowserEnv: Se,
|
|
493
493
|
hasStandardBrowserEnv: bn,
|
|
494
494
|
hasStandardBrowserWebWorkerEnv: wn,
|
|
495
495
|
navigator: be,
|
|
496
496
|
origin: En
|
|
497
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
497
|
+
}, Symbol.toStringTag, { value: "Module" })), R = {
|
|
498
498
|
...gn,
|
|
499
499
|
...yn
|
|
500
500
|
};
|
|
501
|
-
function
|
|
502
|
-
return ae(e, new
|
|
501
|
+
function Sn(e, t) {
|
|
502
|
+
return ae(e, new R.classes.URLSearchParams(), {
|
|
503
503
|
visitor: function(n, r, s, o) {
|
|
504
|
-
return
|
|
504
|
+
return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
505
505
|
},
|
|
506
506
|
...t
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function Rn(e) {
|
|
510
510
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
511
511
|
}
|
|
512
512
|
function On(e) {
|
|
@@ -528,7 +528,7 @@ function ct(e) {
|
|
|
528
528
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
529
529
|
const n = {};
|
|
530
530
|
return a.forEachEntry(e, (r, s) => {
|
|
531
|
-
t(
|
|
531
|
+
t(Rn(r), s, n, 0);
|
|
532
532
|
}), n;
|
|
533
533
|
}
|
|
534
534
|
return null;
|
|
@@ -559,7 +559,7 @@ const K = {
|
|
|
559
559
|
let c;
|
|
560
560
|
if (o) {
|
|
561
561
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
562
|
-
return
|
|
562
|
+
return Sn(t, this.formSerializer).toString();
|
|
563
563
|
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
564
564
|
const f = this.env && this.env.FormData;
|
|
565
565
|
return ae(
|
|
@@ -596,8 +596,8 @@ const K = {
|
|
|
596
596
|
maxContentLength: -1,
|
|
597
597
|
maxBodyLength: -1,
|
|
598
598
|
env: {
|
|
599
|
-
FormData:
|
|
600
|
-
Blob:
|
|
599
|
+
FormData: R.classes.FormData,
|
|
600
|
+
Blob: R.classes.Blob
|
|
601
601
|
},
|
|
602
602
|
validateStatus: function(t) {
|
|
603
603
|
return t >= 200 && t < 300;
|
|
@@ -855,8 +855,8 @@ function _n(e, t) {
|
|
|
855
855
|
b += n[h++], h = h % e;
|
|
856
856
|
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t)
|
|
857
857
|
return;
|
|
858
|
-
const
|
|
859
|
-
return
|
|
858
|
+
const S = u && l - u;
|
|
859
|
+
return S ? Math.round(b * 1e3 / S) : void 0;
|
|
860
860
|
};
|
|
861
861
|
}
|
|
862
862
|
function Ln(e, t) {
|
|
@@ -897,10 +897,10 @@ const ne = (e, t, n = 3) => {
|
|
|
897
897
|
total: e,
|
|
898
898
|
loaded: r
|
|
899
899
|
}), t[1]];
|
|
900
|
-
}, De = (e) => (...t) => a.asap(() => e(...t)), Bn =
|
|
901
|
-
new URL(
|
|
902
|
-
|
|
903
|
-
) : () => !0, kn =
|
|
900
|
+
}, De = (e) => (...t) => a.asap(() => e(...t)), Bn = R.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, R.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
901
|
+
new URL(R.origin),
|
|
902
|
+
R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)
|
|
903
|
+
) : () => !0, kn = R.hasStandardBrowserEnv ? (
|
|
904
904
|
// Standard browser envs support document.cookie
|
|
905
905
|
{
|
|
906
906
|
write(e, t, n, r, s, o, i) {
|
|
@@ -1011,7 +1011,7 @@ const dt = (e) => {
|
|
|
1011
1011
|
"Authorization",
|
|
1012
1012
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1013
1013
|
), a.isFormData(n)) {
|
|
1014
|
-
if (
|
|
1014
|
+
if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
|
|
1015
1015
|
i.setContentType(void 0);
|
|
1016
1016
|
else if (a.isFunction(n.getHeaders)) {
|
|
1017
1017
|
const f = n.getHeaders(), l = ["content-type", "content-length"];
|
|
@@ -1020,7 +1020,7 @@ const dt = (e) => {
|
|
|
1020
1020
|
});
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
if (
|
|
1023
|
+
if (R.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Bn(t.url))) {
|
|
1024
1024
|
const f = s && o && kn.read(o);
|
|
1025
1025
|
f && i.set(s, f);
|
|
1026
1026
|
}
|
|
@@ -1030,9 +1030,9 @@ const dt = (e) => {
|
|
|
1030
1030
|
const s = dt(e);
|
|
1031
1031
|
let o = s.data;
|
|
1032
1032
|
const i = T.from(s.headers).normalize();
|
|
1033
|
-
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, h, b,
|
|
1033
|
+
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, h, b, S, d;
|
|
1034
1034
|
function m() {
|
|
1035
|
-
|
|
1035
|
+
S && S(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
1036
1036
|
}
|
|
1037
1037
|
let p = new XMLHttpRequest();
|
|
1038
1038
|
p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
|
|
@@ -1073,11 +1073,11 @@ const dt = (e) => {
|
|
|
1073
1073
|
)), p = null;
|
|
1074
1074
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in p && a.forEach(i.toJSON(), function(O, N) {
|
|
1075
1075
|
p.setRequestHeader(N, O);
|
|
1076
|
-
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), l && ([b, d] = ne(l, !0), p.addEventListener("progress", b)), f && p.upload && ([h,
|
|
1076
|
+
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), l && ([b, d] = ne(l, !0), p.addEventListener("progress", b)), f && p.upload && ([h, S] = ne(f), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (u = (g) => {
|
|
1077
1077
|
p && (r(!g || g.type ? new M(null, e, p) : g), p.abort(), p = null);
|
|
1078
1078
|
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1079
1079
|
const C = Un(s.url);
|
|
1080
|
-
if (C &&
|
|
1080
|
+
if (C && R.protocols.indexOf(C) === -1) {
|
|
1081
1081
|
r(new y("Unsupported protocol " + C + ":", y.ERR_BAD_REQUEST, e));
|
|
1082
1082
|
return;
|
|
1083
1083
|
}
|
|
@@ -1184,7 +1184,7 @@ const dt = (e) => {
|
|
|
1184
1184
|
return !1;
|
|
1185
1185
|
const c = s && Z($e), f = s && (typeof He == "function" ? /* @__PURE__ */ ((d) => (m) => d.encode(m))(new He()) : async (d) => new Uint8Array(await new n(d).arrayBuffer())), l = o && c && Me(() => {
|
|
1186
1186
|
let d = !1;
|
|
1187
|
-
const m = new n(
|
|
1187
|
+
const m = new n(R.origin, {
|
|
1188
1188
|
body: new $e(),
|
|
1189
1189
|
method: "POST",
|
|
1190
1190
|
get duplex() {
|
|
@@ -1209,7 +1209,7 @@ const dt = (e) => {
|
|
|
1209
1209
|
if (a.isBlob(d))
|
|
1210
1210
|
return d.size;
|
|
1211
1211
|
if (a.isSpecCompliantForm(d))
|
|
1212
|
-
return (await new n(
|
|
1212
|
+
return (await new n(R.origin, {
|
|
1213
1213
|
method: "POST",
|
|
1214
1214
|
body: d
|
|
1215
1215
|
}).arrayBuffer()).byteLength;
|
|
@@ -1217,7 +1217,7 @@ const dt = (e) => {
|
|
|
1217
1217
|
return d.byteLength;
|
|
1218
1218
|
if (a.isURLSearchParams(d) && (d = d + ""), a.isString(d))
|
|
1219
1219
|
return (await f(d)).byteLength;
|
|
1220
|
-
},
|
|
1220
|
+
}, S = async (d, m) => {
|
|
1221
1221
|
const p = a.toFiniteNumber(d.getContentLength());
|
|
1222
1222
|
return p ?? b(m);
|
|
1223
1223
|
};
|
|
@@ -1243,7 +1243,7 @@ const dt = (e) => {
|
|
|
1243
1243
|
});
|
|
1244
1244
|
let Te;
|
|
1245
1245
|
try {
|
|
1246
|
-
if (B && l && p !== "get" && p !== "head" && (Te = await
|
|
1246
|
+
if (B && l && p !== "get" && p !== "head" && (Te = await S(ue, E)) !== 0) {
|
|
1247
1247
|
let L = new n(m, {
|
|
1248
1248
|
method: "POST",
|
|
1249
1249
|
body: E,
|
|
@@ -1320,14 +1320,14 @@ const dt = (e) => {
|
|
|
1320
1320
|
return l;
|
|
1321
1321
|
};
|
|
1322
1322
|
pt();
|
|
1323
|
-
const
|
|
1323
|
+
const Re = {
|
|
1324
1324
|
http: un,
|
|
1325
1325
|
xhr: qn,
|
|
1326
1326
|
fetch: {
|
|
1327
1327
|
get: pt
|
|
1328
1328
|
}
|
|
1329
1329
|
};
|
|
1330
|
-
a.forEach(
|
|
1330
|
+
a.forEach(Re, (e, t) => {
|
|
1331
1331
|
if (e) {
|
|
1332
1332
|
try {
|
|
1333
1333
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1345,7 +1345,7 @@ function Kn(e, t) {
|
|
|
1345
1345
|
for (let i = 0; i < n; i++) {
|
|
1346
1346
|
r = e[i];
|
|
1347
1347
|
let c;
|
|
1348
|
-
if (s = r, !Wn(r) && (s =
|
|
1348
|
+
if (s = r, !Wn(r) && (s = Re[(c = String(r)).toLowerCase()], s === void 0))
|
|
1349
1349
|
throw new y(`Unknown adapter '${c}'`);
|
|
1350
1350
|
if (s && (a.isFunction(s) || (s = s.get(t))))
|
|
1351
1351
|
break;
|
|
@@ -1375,7 +1375,7 @@ const ht = {
|
|
|
1375
1375
|
* Exposes all known adapters
|
|
1376
1376
|
* @type {Object<string, Function|Object>}
|
|
1377
1377
|
*/
|
|
1378
|
-
adapters:
|
|
1378
|
+
adapters: Re
|
|
1379
1379
|
};
|
|
1380
1380
|
function he(e) {
|
|
1381
1381
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
@@ -1523,18 +1523,18 @@ let j = class {
|
|
|
1523
1523
|
return u;
|
|
1524
1524
|
}
|
|
1525
1525
|
b = c.length;
|
|
1526
|
-
let
|
|
1526
|
+
let S = n;
|
|
1527
1527
|
for (; h < b; ) {
|
|
1528
1528
|
const d = c[h++], m = c[h++];
|
|
1529
1529
|
try {
|
|
1530
|
-
|
|
1530
|
+
S = d(S);
|
|
1531
1531
|
} catch (p) {
|
|
1532
1532
|
m.call(this, p);
|
|
1533
1533
|
break;
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
1536
|
try {
|
|
1537
|
-
u = ze.call(this,
|
|
1537
|
+
u = ze.call(this, S);
|
|
1538
1538
|
} catch (d) {
|
|
1539
1539
|
return Promise.reject(d);
|
|
1540
1540
|
}
|
|
@@ -1767,8 +1767,8 @@ const {
|
|
|
1767
1767
|
toFormData: wr,
|
|
1768
1768
|
AxiosHeaders: Er,
|
|
1769
1769
|
HttpStatusCode: gr,
|
|
1770
|
-
formToJSON:
|
|
1771
|
-
getAdapter:
|
|
1770
|
+
formToJSON: Sr,
|
|
1771
|
+
getAdapter: Rr,
|
|
1772
1772
|
mergeConfig: Or
|
|
1773
1773
|
} = w;
|
|
1774
1774
|
class er extends Error {
|
|
@@ -1778,7 +1778,7 @@ class er extends Error {
|
|
|
1778
1778
|
}
|
|
1779
1779
|
const wt = (e) => (t) => {
|
|
1780
1780
|
var s;
|
|
1781
|
-
const n = ((s = re().sessionUser.value) == null ? void 0 : s.token) ??
|
|
1781
|
+
const n = ((s = re().sessionUser.value) == null ? void 0 : s.token) ?? Rt.token;
|
|
1782
1782
|
if (!n) throw new Error("Invalid token");
|
|
1783
1783
|
const r = w.create({
|
|
1784
1784
|
baseURL: `${e}/${t}`,
|
|
@@ -1866,12 +1866,11 @@ const nr = {
|
|
|
1866
1866
|
const e = rr();
|
|
1867
1867
|
return {
|
|
1868
1868
|
...e,
|
|
1869
|
-
...
|
|
1869
|
+
...St(e)
|
|
1870
1870
|
};
|
|
1871
1871
|
};
|
|
1872
1872
|
export {
|
|
1873
1873
|
er as A,
|
|
1874
|
-
nr as R,
|
|
1875
1874
|
Cr as a,
|
|
1876
1875
|
Ve as b,
|
|
1877
1876
|
Tr as c,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineStore as x, storeToRefs as b } from "pinia";
|
|
2
2
|
import { ref as w } from "vue";
|
|
3
3
|
import { useCoreStore as B } from "@feedmepos/mf-common";
|
|
4
|
-
import { s as v } from "./iteration-
|
|
5
|
-
import { g as f, b as p, u as I } from "./restaurant-
|
|
4
|
+
import { s as v } from "./iteration-B23jisFZ.js";
|
|
5
|
+
import { g as f, b as p, u as I } from "./restaurant-D2mfKHaH.js";
|
|
6
6
|
const R = {
|
|
7
7
|
async readRoles() {
|
|
8
8
|
return f(await p().get("/pos-roles"));
|