@feedmepos/mf-hrm-portal 2.3.2-dev.13 → 2.3.2-dev.14
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-CkEhtUbS.js → ApprovalCodeList-BDMu2nlf.js} +7 -7
- package/dist/{AuditLogList-Bz5zAZyW.js → AuditLogList-BFBj-jk9.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-ChuqsZ3x.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-D7UE_NiK.js} +2 -2
- package/dist/{EmployeeList-CynhLV-L.js → EmployeeList-yMAEN8HX.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-CiFif3c3.js → FormSection.vue_vue_type_script_setup_true_lang-BgRk-jRk.js} +1 -1
- package/dist/{GrantUserList-DeWVTGuy.js → GrantUserList-aYzD_hm0.js} +8 -8
- package/dist/{Main-B3Leg_L0.js → Main-0iTpXb98.js} +10 -10
- package/dist/{Main-DnryPI7f.js → Main-BiXZ2uwk.js} +12 -12
- package/dist/{Main-DZGRjkR3.js → Main-C8MhhDdW.js} +5 -5
- package/dist/{MyPosProfile-Dm93oppE.js → MyPosProfile-Calhn0WC.js} +1 -1
- package/dist/{PermissionSetList-ecBXd3ag.js → PermissionSetList-C-O_seZy.js} +17 -17
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BLMb_4xS.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-3FF5AMJb.js} +808 -808
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-2XEgCaw_.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C07A8JOx.js} +29 -29
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-BWwZEK1N.js → RoleForm.vue_vue_type_script_setup_true_lang-DdVuso5Y.js} +31 -31
- package/dist/{RoleList-V02s5IFg.js → RoleList-DExzw7JT.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-D4EmiXpK.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-RRpzDisY.js} +1 -1
- package/dist/{ScheduleGeneralPage-B19huvz7.js → ScheduleGeneralPage-DlHMmhGJ.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-DpHkFE_N.js → ScheduleModal.vue_vue_type_script_setup_true_lang-Dkkv_UZL.js} +4 -4
- package/dist/{SchedulePage-DatMj0FX.js → SchedulePage-dhZaaOB9.js} +9 -9
- package/dist/{SchedulePositionPage-weHCiVXF.js → SchedulePositionPage-MzZ5rMOP.js} +3 -3
- package/dist/{SelectFilter-VzroQ6nY.js → SelectFilter-D6i7dIWo.js} +1 -1
- package/dist/{TeamMemberList-Ckh78JzV.js → TeamMemberList-DcA_qRCm.js} +87 -87
- package/dist/{TimesheetList-tA58dMKW.js → TimesheetList-DbZ5S4W7.js} +8 -8
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-B0kMSBDL.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-5AgJfpEl.js} +3 -3
- package/dist/{app-v2fOFcO4.js → app-DTHCLxcv.js} +1792 -1760
- package/dist/app.js +1 -1
- package/dist/{approval-code-DXtjIgqA.js → approval-code-Bs9_Zvb4.js} +1 -1
- package/dist/{dayjs.min-DxlOWUZ1.js → dayjs.min-B1mxceq0.js} +17 -17
- package/dist/{employee-RT04bxj-.js → employee-7hJffW-T.js} +5 -5
- package/dist/{grant-user-6LflFpNK.js → grant-user-CDuaDJvW.js} +1 -1
- package/dist/{iteration-Ce8Ag6An.js → iteration-Blu9ugj8.js} +1 -1
- package/dist/{lodash-CKvwb5V-.js → lodash-DeuHD52q.js} +1 -1
- package/dist/{member-grant-CmrGFbhy.js → member-grant-DxA40oCw.js} +5 -5
- package/dist/{restaurant-B8fppQ6A.js → restaurant-hEQn38rG.js} +1 -1
- package/dist/{role-BtVKxf2F.js → role-CcTqE2HQ.js} +3 -3
- package/dist/{rule-Cd1olm_T.js → rule-CfTomm23.js} +11 -11
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-CgesqYqb.js → useAppStore-D5U6wJfE.js} +1 -1
- package/dist/{useLoading-nOeAHeTr.js → useLoading-Ct27XghS.js} +1 -1
- package/dist/{useReportPermissions-CB_JGPpt.js → useReportPermissions-BD1IvbaS.js} +20 -20
- package/dist/{useSsoProviders-9r2i0iR9.js → useSsoProviders-uz6kcTrk.js} +1 -1
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as oe, mergeModels as es, useModel as ts, createElementBlock as M, openBlock as u, Fragment as de, renderList as Vt, normalizeClass as at, toDisplayString as E, unref as t, computed as U, resolveComponent as K, createElementVNode as v, createBlock as
|
|
1
|
+
import { defineComponent as oe, mergeModels as es, useModel as ts, createElementBlock as M, openBlock as u, Fragment as de, renderList as Vt, normalizeClass as at, toDisplayString as E, unref as t, computed as U, resolveComponent as K, createElementVNode as v, createBlock as B, createCommentVNode as N, createVNode as d, ref as p, watch as ue, onUnmounted as Pt, createSlots as vt, withCtx as te, renderSlot as ss, withModifiers as Ft, nextTick as Mt, h as as, createTextVNode as ls } from "vue";
|
|
2
2
|
import { useI18n as ce, useCoreStore as lt } from "@feedmepos/mf-common";
|
|
3
|
-
import { g as be, b as ye, a as Rt, u as $t, h as ft,
|
|
3
|
+
import { g as be, b as ye, a as Rt, u as $t, h as ft, j as os, _ as rs, c as ns } from "./app-DTHCLxcv.js";
|
|
4
4
|
import { useSnackbar as ot, useDialog as Ct, useBreakpoints as Dt, components as Ze, SnackbarPosition as Qe } from "@feedmepos/ui-library";
|
|
5
5
|
import { u as is } from "./useDebounce-B8ZPVS5C.js";
|
|
6
|
-
import { S as ie } from "./SelectFilter-
|
|
6
|
+
import { S as ie } from "./SelectFilter-D6i7dIWo.js";
|
|
7
7
|
import { _ as bt } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
8
8
|
import { _ as us } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
9
|
import { s as ms, _ as ds, d as cs, e as ps } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js";
|
|
10
|
-
import { u as Nt } from "./useLoading-
|
|
10
|
+
import { u as Nt } from "./useLoading-Ct27XghS.js";
|
|
11
11
|
import { u as vs } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
12
|
-
import { w as fs, h as bs, b as ys, E as gs, t as hs } from "./member-grant-
|
|
13
|
-
import { a as Xe, i as rt, t as Me, b as He, D as Et, E as At, h as Te, u as xs, s as ze, c as yt, d as gt, e as _s } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-
|
|
12
|
+
import { w as fs, h as bs, b as ys, E as gs, t as hs } from "./member-grant-DxA40oCw.js";
|
|
13
|
+
import { a as Xe, i as rt, t as Me, b as He, D as Et, E as At, h as Te, u as xs, s as ze, c as yt, d as gt, e as _s } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C07A8JOx.js";
|
|
14
14
|
import { n as nt } from "./string-DZQ1uNjn.js";
|
|
15
|
-
import { c as Pe } from "./iteration-
|
|
16
|
-
import { l as Le } from "./lodash-
|
|
17
|
-
import { _ as ht } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { t as Fe, u as Ot, P as et, H as xt, R as tt, a as Lt, p as _t, $ as Us, b as Ut, c as Is } from "./rule-
|
|
19
|
-
import { t as ks, s as ws, a as It, c as Ss, r as Vs, b as Ps, d as kt, _ as Fs, p as Ms } from "./RoleForm.vue_vue_type_script_setup_true_lang-
|
|
20
|
-
import { u as Tt } from "./restaurant-
|
|
21
|
-
import { u as
|
|
15
|
+
import { c as Pe } from "./iteration-Blu9ugj8.js";
|
|
16
|
+
import { l as Le } from "./lodash-DeuHD52q.js";
|
|
17
|
+
import { _ as ht } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-3FF5AMJb.js";
|
|
18
|
+
import { t as Fe, u as Ot, P as et, H as xt, R as tt, a as Lt, p as _t, $ as Us, b as Ut, c as Is } from "./rule-CfTomm23.js";
|
|
19
|
+
import { t as ks, s as ws, a as It, c as Ss, r as Vs, b as Ps, d as kt, _ as Fs, p as Ms } from "./RoleForm.vue_vue_type_script_setup_true_lang-DdVuso5Y.js";
|
|
20
|
+
import { u as Tt } from "./restaurant-hEQn38rG.js";
|
|
21
|
+
import { u as jt } from "./role-CcTqE2HQ.js";
|
|
22
22
|
var Ae = /* @__PURE__ */ ((l) => (l.Update = "Update", l.Remove = "Remove", l))(Ae || {});
|
|
23
|
-
const
|
|
23
|
+
const je = "__unassigned__";
|
|
24
24
|
function wt(l) {
|
|
25
|
-
if (!(l != null && l.length) || l[0] ===
|
|
26
|
-
const A = l.filter((f) => f !==
|
|
27
|
-
return A.length === l.length ? l : [
|
|
25
|
+
if (!(l != null && l.length) || l[0] === je) return l;
|
|
26
|
+
const A = l.filter((f) => f !== je);
|
|
27
|
+
return A.length === l.length ? l : [je, ...A];
|
|
28
28
|
}
|
|
29
29
|
const Rs = {
|
|
30
30
|
role: "tablist",
|
|
@@ -74,7 +74,7 @@ const Rs = {
|
|
|
74
74
|
class: "flex items-center gap-12 rounded-[16px] border border-[#995900] bg-fm-color-system-warning-100 p-16",
|
|
75
75
|
role: "alert",
|
|
76
76
|
"data-testid": "existing-member-notice"
|
|
77
|
-
}, Ns = { class: "flex size-[56px] shrink-0 items-center justify-center rounded-full bg-fm-color-primary fm-typo-en-body-lg-600 text-fm-color-typo-white" }, Es = { class: "flex min-w-0 flex-1 flex-col gap-[2px]" }, As = { class: "flex items-center gap-8" }, Os = { class: "truncate text-[16px] font-semibold leading-[24px] text-fm-color-typo-primary" }, Ls = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ts = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary" },
|
|
77
|
+
}, Ns = { class: "flex size-[56px] shrink-0 items-center justify-center rounded-full bg-fm-color-primary fm-typo-en-body-lg-600 text-fm-color-typo-white" }, Es = { class: "flex min-w-0 flex-1 flex-col gap-[2px]" }, As = { class: "flex items-center gap-8" }, Os = { class: "truncate text-[16px] font-semibold leading-[24px] text-fm-color-typo-primary" }, Ls = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ts = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary" }, js = /* @__PURE__ */ oe({
|
|
78
78
|
__name: "ExistingMemberNotice",
|
|
79
79
|
props: {
|
|
80
80
|
existing: {},
|
|
@@ -84,7 +84,7 @@ const Rs = {
|
|
|
84
84
|
setup(l, { emit: A }) {
|
|
85
85
|
const f = l, s = A, { t: c } = ce(), i = U(() => f.existing.kind === "member" ? "active" : "invited"), L = U(
|
|
86
86
|
() => f.existing.restaurantCount === 1 ? c("team.existingMember.restaurantCount.one") : c("team.existingMember.restaurantCount.other", { count: f.existing.restaurantCount })
|
|
87
|
-
),
|
|
87
|
+
), j = U(() => f.existing.kind !== "member" || !f.existing.isOwner);
|
|
88
88
|
return (W, V) => {
|
|
89
89
|
const q = K("FmButton");
|
|
90
90
|
return u(), M("div", Ds, [
|
|
@@ -95,9 +95,9 @@ const Rs = {
|
|
|
95
95
|
d(it, { status: i.value }, null, 8, ["status"])
|
|
96
96
|
]),
|
|
97
97
|
v("p", Ls, E(t(c)(`team.existingMember.alreadyUses.${l.match}`, { restaurants: L.value })), 1),
|
|
98
|
-
v("p", Ts, E(
|
|
98
|
+
v("p", Ts, E(j.value ? t(c)("team.existingMember.updateInstead") : t(c)("team.existingMember.isOwner")), 1)
|
|
99
99
|
]),
|
|
100
|
-
|
|
100
|
+
j.value ? (u(), B(q, {
|
|
101
101
|
key: 0,
|
|
102
102
|
label: t(c)("team.existingMember.updateAccess"),
|
|
103
103
|
size: "md",
|
|
@@ -133,7 +133,7 @@ const Rs = {
|
|
|
133
133
|
async resendInvite(l) {
|
|
134
134
|
return be(await ye("staff-invites").post(`/${l}/resend`));
|
|
135
135
|
}
|
|
136
|
-
},
|
|
136
|
+
}, Bs = {
|
|
137
137
|
class: "flex flex-col gap-16 rounded-[16px] border border-fm-color-neutral-gray-300 bg-fm-color-neutral-white p-16",
|
|
138
138
|
"data-testid": "member-details-card"
|
|
139
139
|
}, qs = { class: "flex flex-col gap-8" }, Gs = { class: "fm-typo-en-title-sm-600" }, Ks = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ws = { class: "flex flex-col gap-[6px]" }, zs = { class: "fm-typo-en-body-sm-600" }, Hs = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Xs = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ys = { class: "grid grid-cols-2 gap-[14px] xs:grid-cols-1" }, Js = { class: "grid grid-cols-2 gap-[14px] xs:grid-cols-1" }, Zs = 400, Qs = /* @__PURE__ */ oe({
|
|
@@ -147,7 +147,7 @@ const Rs = {
|
|
|
147
147
|
emits: ["update-existing"],
|
|
148
148
|
setup(l, { expose: A, emit: f }) {
|
|
149
149
|
var re, se;
|
|
150
|
-
const s = l, c = f, { t: i } = ce(), L = lt(), { supportedCountries:
|
|
150
|
+
const s = l, c = f, { t: i } = ce(), L = lt(), { supportedCountries: j, ready: W } = Xe(), V = U(() => {
|
|
151
151
|
var o;
|
|
152
152
|
const C = (o = L.currentCountry.value) == null ? void 0 : o.toUpperCase();
|
|
153
153
|
return C && rt(C) ? C : void 0;
|
|
@@ -203,12 +203,12 @@ const Rs = {
|
|
|
203
203
|
providerLabel: x
|
|
204
204
|
}), (C, o) => {
|
|
205
205
|
const I = K("FmSelect"), z = K("FmPhoneNumber"), ne = K("FmCircularProgress"), Z = K("FmTextField");
|
|
206
|
-
return u(), M("div",
|
|
206
|
+
return u(), M("div", Bs, [
|
|
207
207
|
v("div", qs, [
|
|
208
208
|
v("p", Gs, E(t(i)("team.memberDetails.title")), 1),
|
|
209
209
|
v("p", Ks, E(t(i)("team.memberDetails.ssoNotice", { label: x.value })), 1)
|
|
210
210
|
]),
|
|
211
|
-
l.providers.length > 1 ? (u(),
|
|
211
|
+
l.providers.length > 1 ? (u(), B(I, {
|
|
212
212
|
key: 0,
|
|
213
213
|
modelValue: q.value,
|
|
214
214
|
"onUpdate:modelValue": o[0] || (o[0] = (b) => q.value = b),
|
|
@@ -224,13 +224,13 @@ const Rs = {
|
|
|
224
224
|
}, null, 8, ["modelValue", "items"])
|
|
225
225
|
]),
|
|
226
226
|
T.value === "mobile" ? (u(), M(de, { key: 1 }, [
|
|
227
|
-
t(W) ? (u(),
|
|
227
|
+
t(W) ? (u(), B(z, {
|
|
228
228
|
key: 0,
|
|
229
229
|
modelValue: P.value,
|
|
230
230
|
"onUpdate:modelValue": o[2] || (o[2] = (b) => P.value = b),
|
|
231
231
|
label: t(i)("team.memberDetails.phoneNumber"),
|
|
232
232
|
"default-country": V.value,
|
|
233
|
-
"extra-country-codes": t(
|
|
233
|
+
"extra-country-codes": t(j),
|
|
234
234
|
rules: [(b) => !!t(Me)(b) || t(i)("team.memberDetails.errors.mobileInvalid")]
|
|
235
235
|
}, vt({ _: 2 }, [
|
|
236
236
|
y.value ? {
|
|
@@ -240,8 +240,8 @@ const Rs = {
|
|
|
240
240
|
]),
|
|
241
241
|
key: "0"
|
|
242
242
|
} : void 0
|
|
243
|
-
]), 1032, ["modelValue", "label", "default-country", "extra-country-codes", "rules"])) : (u(),
|
|
244
|
-
], 64)) : (u(),
|
|
243
|
+
]), 1032, ["modelValue", "label", "default-country", "extra-country-codes", "rules"])) : (u(), B(ne, { key: 1 }))
|
|
244
|
+
], 64)) : (u(), B(Z, {
|
|
245
245
|
key: 2,
|
|
246
246
|
modelValue: G.value,
|
|
247
247
|
"onUpdate:modelValue": o[3] || (o[3] = (b) => G.value = b),
|
|
@@ -257,7 +257,7 @@ const Rs = {
|
|
|
257
257
|
key: "0"
|
|
258
258
|
} : void 0
|
|
259
259
|
]), 1032, ["modelValue", "label", "placeholder", "rules"])),
|
|
260
|
-
r.value ? (u(),
|
|
260
|
+
r.value ? (u(), B(js, {
|
|
261
261
|
key: 3,
|
|
262
262
|
existing: r.value,
|
|
263
263
|
match: T.value,
|
|
@@ -286,7 +286,7 @@ const Rs = {
|
|
|
286
286
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"])
|
|
287
287
|
]),
|
|
288
288
|
v("div", Js, [
|
|
289
|
-
T.value === "mobile" ? (u(),
|
|
289
|
+
T.value === "mobile" ? (u(), B(Z, {
|
|
290
290
|
key: 0,
|
|
291
291
|
modelValue: G.value,
|
|
292
292
|
"onUpdate:modelValue": o[7] || (o[7] = (b) => G.value = b),
|
|
@@ -297,14 +297,14 @@ const Rs = {
|
|
|
297
297
|
(b) => !b.trim() || t(He)(b) || t(i)("team.memberDetails.errors.emailInvalid")
|
|
298
298
|
]
|
|
299
299
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"])) : (u(), M(de, { key: 1 }, [
|
|
300
|
-
t(W) ? (u(),
|
|
300
|
+
t(W) ? (u(), B(z, {
|
|
301
301
|
key: 0,
|
|
302
302
|
modelValue: P.value,
|
|
303
303
|
"onUpdate:modelValue": o[8] || (o[8] = (b) => P.value = b),
|
|
304
304
|
label: t(i)("team.memberDetails.phoneNumber"),
|
|
305
305
|
"label-mark": "optional",
|
|
306
306
|
"default-country": V.value,
|
|
307
|
-
"extra-country-codes": t(
|
|
307
|
+
"extra-country-codes": t(j),
|
|
308
308
|
rules: [
|
|
309
309
|
(b) => !t(Te)(b) || !!t(Me)(b) || t(i)("team.memberDetails.errors.mobileInvalid")
|
|
310
310
|
]
|
|
@@ -382,7 +382,7 @@ const Rs = {
|
|
|
382
382
|
},
|
|
383
383
|
{ deep: !0 }
|
|
384
384
|
);
|
|
385
|
-
function
|
|
385
|
+
function j(m) {
|
|
386
386
|
i.value = m, s("update:modelValue", It(m));
|
|
387
387
|
}
|
|
388
388
|
function W(m, w) {
|
|
@@ -391,17 +391,17 @@ const Rs = {
|
|
|
391
391
|
const $ = { ...r, restaurantIds: w };
|
|
392
392
|
return { ...$, roleId: Ms(f.roles, $, f.isRoleUsable) };
|
|
393
393
|
});
|
|
394
|
-
|
|
394
|
+
j(y);
|
|
395
395
|
}
|
|
396
396
|
function V(m, w) {
|
|
397
|
-
|
|
397
|
+
j(i.value.map((y, r) => r === m ? { ...y, roleId: w } : y));
|
|
398
398
|
}
|
|
399
399
|
function q() {
|
|
400
|
-
|
|
400
|
+
j([...i.value, { restaurantIds: [], roleId: "" }]);
|
|
401
401
|
}
|
|
402
402
|
function S(m, w) {
|
|
403
403
|
var y;
|
|
404
|
-
w || i.value.length < 2 || (y = i.value[m]) != null && y.restaurantIds.length ||
|
|
404
|
+
w || i.value.length < 2 || (y = i.value[m]) != null && y.restaurantIds.length || j(i.value.filter((r, _) => _ !== m));
|
|
405
405
|
}
|
|
406
406
|
const x = U(() => Ss(f.restaurants, i.value)), F = p(), T = p(!1), P = p(null);
|
|
407
407
|
async function G(m) {
|
|
@@ -468,7 +468,7 @@ const Rs = {
|
|
|
468
468
|
"data-testid": "add-pos-row",
|
|
469
469
|
onClick: Ft(q, ["stop"])
|
|
470
470
|
}, " + " + E(t(c)("team.posAccess.addRestaurant")), 9, va),
|
|
471
|
-
T.value ? (u(),
|
|
471
|
+
T.value ? (u(), B(Fs, {
|
|
472
472
|
key: 0,
|
|
473
473
|
ref_key: "roleFormRef",
|
|
474
474
|
ref: F,
|
|
@@ -519,7 +519,7 @@ const Rs = {
|
|
|
519
519
|
},
|
|
520
520
|
emits: ["update:model-value"],
|
|
521
521
|
setup(l, { emit: A }) {
|
|
522
|
-
const f = l, s = A, { t: c } = ce(), i = ot(), L = Nt(i),
|
|
522
|
+
const f = l, s = A, { t: c } = ce(), i = ot(), L = Nt(i), j = p(!1), W = p([]), V = U(() => {
|
|
523
523
|
var h;
|
|
524
524
|
return ms(((h = f.modelValue) == null ? void 0 : h.roles) ?? []);
|
|
525
525
|
});
|
|
@@ -550,7 +550,7 @@ const Rs = {
|
|
|
550
550
|
}),
|
|
551
551
|
{ isLoading: F }
|
|
552
552
|
);
|
|
553
|
-
|
|
553
|
+
j.value = !1, W.value = h.split(""), x("passcode", h);
|
|
554
554
|
} catch {
|
|
555
555
|
}
|
|
556
556
|
}
|
|
@@ -561,7 +561,7 @@ const Rs = {
|
|
|
561
561
|
},
|
|
562
562
|
(h) => {
|
|
563
563
|
const m = W.value.join("");
|
|
564
|
-
h !== m && (h && h.length === st ? (W.value = h.split(""),
|
|
564
|
+
h !== m && (h && h.length === st ? (W.value = h.split(""), j.value = !0) : (W.value = [], j.value = !1));
|
|
565
565
|
},
|
|
566
566
|
{ immediate: !0 }
|
|
567
567
|
);
|
|
@@ -621,8 +621,8 @@ const Rs = {
|
|
|
621
621
|
d(ds, {
|
|
622
622
|
modelValue: W.value,
|
|
623
623
|
"onUpdate:modelValue": m[2] || (m[2] = (r) => W.value = r),
|
|
624
|
-
masked:
|
|
625
|
-
"onUpdate:masked": m[3] || (m[3] = (r) =>
|
|
624
|
+
masked: j.value,
|
|
625
|
+
"onUpdate:masked": m[3] || (m[3] = (r) => j.value = r),
|
|
626
626
|
length: st,
|
|
627
627
|
"toggle-label": t(c)("team.memberForm.masterUser.passcodeToggleVisibility"),
|
|
628
628
|
onComplete: m[4] || (m[4] = (r) => x("passcode", r))
|
|
@@ -672,13 +672,13 @@ const Rs = {
|
|
|
672
672
|
},
|
|
673
673
|
setup(l, { expose: A }) {
|
|
674
674
|
var qe, he, ee;
|
|
675
|
-
const f = l, { t: s } = ce(), { isFoodCourt: c } = $t(), i = Ct(), { breakpoints: L } = Dt(),
|
|
676
|
-
() =>
|
|
675
|
+
const f = l, { t: s } = ce(), { isFoodCourt: c } = $t(), i = Ct(), { breakpoints: L } = Dt(), j = Ot(), W = U(
|
|
676
|
+
() => j.permissionSets.value.map((n) => ({
|
|
677
677
|
label: n.name,
|
|
678
678
|
value: n.id
|
|
679
679
|
}))
|
|
680
680
|
), V = p(((qe = f.initialValue) == null ? void 0 : qe.permissionSetIds) || []), q = U(
|
|
681
|
-
() => et(V.value,
|
|
681
|
+
() => et(V.value, j.permissionSets.value)
|
|
682
682
|
), S = p((he = f.initialValue) == null ? void 0 : he.posUser), x = p(
|
|
683
683
|
xt(
|
|
684
684
|
tt(q.value),
|
|
@@ -702,7 +702,7 @@ const Rs = {
|
|
|
702
702
|
return !!((n = f.initialValue) != null && n.isOwner);
|
|
703
703
|
}), w = U(
|
|
704
704
|
() => Ut(x.value, { isOwner: m.value })
|
|
705
|
-
), y = Tt(), r =
|
|
705
|
+
), y = Tt(), r = jt().roles, _ = U(() => {
|
|
706
706
|
const n = w.value.restaurantIds;
|
|
707
707
|
return n === null ? y.restaurants.value : y.restaurants.value.filter((R) => n.includes(R._id));
|
|
708
708
|
}), $ = p(!1);
|
|
@@ -715,7 +715,7 @@ const Rs = {
|
|
|
715
715
|
tt(
|
|
716
716
|
et(
|
|
717
717
|
V.value,
|
|
718
|
-
|
|
718
|
+
j.permissionSets.value
|
|
719
719
|
)
|
|
720
720
|
),
|
|
721
721
|
(n == null ? void 0 : n.permissions) || []
|
|
@@ -733,7 +733,7 @@ const Rs = {
|
|
|
733
733
|
}
|
|
734
734
|
function o(n) {
|
|
735
735
|
return tt(
|
|
736
|
-
et(n,
|
|
736
|
+
et(n, j.permissionSets.value)
|
|
737
737
|
);
|
|
738
738
|
}
|
|
739
739
|
function I(n) {
|
|
@@ -790,7 +790,7 @@ const Rs = {
|
|
|
790
790
|
), ve;
|
|
791
791
|
}
|
|
792
792
|
const O = p(!!S.value), ge = p(!1);
|
|
793
|
-
function
|
|
793
|
+
function Be(n) {
|
|
794
794
|
S.value = n, ge.value = !0;
|
|
795
795
|
}
|
|
796
796
|
return ue(
|
|
@@ -839,7 +839,7 @@ const Rs = {
|
|
|
839
839
|
])) : N("", !0),
|
|
840
840
|
l.loading ? (u(), M("div", $a, [
|
|
841
841
|
d(J, { size: "xl" })
|
|
842
|
-
])) : t(c) ? N("", !0) : (u(),
|
|
842
|
+
])) : t(c) ? N("", !0) : (u(), B(Sa, {
|
|
843
843
|
key: 2,
|
|
844
844
|
ref_key: "masterUserContentRef",
|
|
845
845
|
ref: Z,
|
|
@@ -850,7 +850,7 @@ const Rs = {
|
|
|
850
850
|
"usable-role-ids": w.value.roleIds,
|
|
851
851
|
restaurants: _.value,
|
|
852
852
|
"pos-user-id": ($e = l.initialValue) == null ? void 0 : $e.posUserId,
|
|
853
|
-
"onUpdate:modelValue":
|
|
853
|
+
"onUpdate:modelValue": Be
|
|
854
854
|
}, null, 8, ["model-value", "fallback-name", "fallback-passcode", "roles", "usable-role-ids", "restaurants", "pos-user-id"])),
|
|
855
855
|
(Ge = l.initialValue) != null && Ge.isOwner ? N("", !0) : (u(), M("section", Ca, [
|
|
856
856
|
v("div", Da, [
|
|
@@ -858,7 +858,7 @@ const Rs = {
|
|
|
858
858
|
v("p", Ea, E(t(s)("team.portalAccess.title")), 1),
|
|
859
859
|
v("p", Aa, E(t(s)("team.portalAccess.subtitle")), 1)
|
|
860
860
|
]),
|
|
861
|
-
t(c) ? N("", !0) : (u(),
|
|
861
|
+
t(c) ? N("", !0) : (u(), B(pe, {
|
|
862
862
|
key: 0,
|
|
863
863
|
"model-value": $.value,
|
|
864
864
|
value: "portal-access",
|
|
@@ -906,11 +906,11 @@ const Rs = {
|
|
|
906
906
|
}, La = { class: "flex flex-col gap-24 w-full" }, Ta = {
|
|
907
907
|
key: 0,
|
|
908
908
|
class: "flex flex-col gap-8"
|
|
909
|
-
},
|
|
909
|
+
}, ja = { class: "user-info-icon user-info-icon--lg" }, Ba = { class: "flex-1 overflow-hidden" }, qa = { class: "profile-displayName" }, Ga = { class: "profile-email" }, Ka = { class: "profile-phone" }, Wa = { key: 2 }, za = /* @__PURE__ */ oe({
|
|
910
910
|
__name: "PortalUserSearcher",
|
|
911
911
|
emits: ["invite"],
|
|
912
912
|
setup(l, { emit: A }) {
|
|
913
|
-
const f = A, { t: s } = ce(), c = ot(), i = lt(), { supportedCountries: L, ready:
|
|
913
|
+
const f = A, { t: s } = ce(), c = ot(), i = lt(), { supportedCountries: L, ready: j } = Xe(), W = U(() => {
|
|
914
914
|
var r;
|
|
915
915
|
const y = (r = i.currentCountry.value) == null ? void 0 : r.toUpperCase();
|
|
916
916
|
return y && rt(y) ? y : void 0;
|
|
@@ -978,14 +978,14 @@ const Rs = {
|
|
|
978
978
|
value: "phone",
|
|
979
979
|
label: t(s)("team.memberForm.searchUser.phoneNumber")
|
|
980
980
|
}, null, 8, ["label"]),
|
|
981
|
-
V.value === "phone" && t(
|
|
981
|
+
V.value === "phone" && t(j) ? (u(), B($, {
|
|
982
982
|
key: 0,
|
|
983
983
|
modelValue: q.value,
|
|
984
984
|
"onUpdate:modelValue": r[0] || (r[0] = (z) => q.value = z),
|
|
985
985
|
"default-country": W.value,
|
|
986
986
|
"extra-country-codes": t(L),
|
|
987
987
|
class: "ml-8"
|
|
988
|
-
}, null, 8, ["modelValue", "default-country", "extra-country-codes"])) : V.value === "phone" ? (u(),
|
|
988
|
+
}, null, 8, ["modelValue", "default-country", "extra-country-codes"])) : V.value === "phone" ? (u(), B(X, {
|
|
989
989
|
key: 1,
|
|
990
990
|
class: "ml-8"
|
|
991
991
|
})) : N("", !0),
|
|
@@ -993,7 +993,7 @@ const Rs = {
|
|
|
993
993
|
value: "email",
|
|
994
994
|
label: t(s)("team.memberForm.searchUser.email")
|
|
995
995
|
}, null, 8, ["label"]),
|
|
996
|
-
V.value === "email" ? (u(),
|
|
996
|
+
V.value === "email" ? (u(), B(Y, {
|
|
997
997
|
key: 2,
|
|
998
998
|
modelValue: S.value,
|
|
999
999
|
"onUpdate:modelValue": r[1] || (r[1] = (z) => S.value = z),
|
|
@@ -1017,8 +1017,8 @@ const Rs = {
|
|
|
1017
1017
|
class: "profile-menu--profile cursor-pointer hover:bg-fm-color-opacity-sm",
|
|
1018
1018
|
onClick: r[3] || (r[3] = (z) => m(x.value))
|
|
1019
1019
|
}, [
|
|
1020
|
-
v("div",
|
|
1021
|
-
v("div",
|
|
1020
|
+
v("div", ja, E(G.value), 1),
|
|
1021
|
+
v("div", Ba, [
|
|
1022
1022
|
v("p", qa, E((C = x.value) == null ? void 0 : C.displayName), 1),
|
|
1023
1023
|
v("p", Ga, E((o = x.value) == null ? void 0 : o.email), 1),
|
|
1024
1024
|
v("p", Ka, E((I = x.value) == null ? void 0 : I.phoneNumber), 1)
|
|
@@ -1066,9 +1066,9 @@ const Rs = {
|
|
|
1066
1066
|
},
|
|
1067
1067
|
emits: ["update-existing"],
|
|
1068
1068
|
setup(l, { expose: A, emit: f }) {
|
|
1069
|
-
const s = l, c = f, i = U(() => !s.initialValue && s.providers.length > 0), { t: L } = ce(),
|
|
1069
|
+
const s = l, c = f, i = U(() => !s.initialValue && s.providers.length > 0), { t: L } = ce(), j = lt(), { supportedCountries: W, ready: V } = Xe(), q = U(() => {
|
|
1070
1070
|
var I;
|
|
1071
|
-
const o = (I =
|
|
1071
|
+
const o = (I = j.currentCountry.value) == null ? void 0 : I.toUpperCase();
|
|
1072
1072
|
return o && rt(o) ? o : void 0;
|
|
1073
1073
|
}), S = U(() => {
|
|
1074
1074
|
var o;
|
|
@@ -1146,7 +1146,7 @@ const Rs = {
|
|
|
1146
1146
|
})
|
|
1147
1147
|
}), (o, I) => {
|
|
1148
1148
|
const z = K("FmTextField"), ne = K("FmPhoneNumber"), Z = K("FmForm");
|
|
1149
|
-
return u(),
|
|
1149
|
+
return u(), B(Z, {
|
|
1150
1150
|
ref_key: "formRef",
|
|
1151
1151
|
ref: se,
|
|
1152
1152
|
class: "mx-4"
|
|
@@ -1155,13 +1155,13 @@ const Rs = {
|
|
|
1155
1155
|
var b;
|
|
1156
1156
|
return [
|
|
1157
1157
|
v("div", Xa, [
|
|
1158
|
-
i.value ? (u(),
|
|
1158
|
+
i.value ? (u(), B(Qs, {
|
|
1159
1159
|
key: 0,
|
|
1160
1160
|
ref_key: "detailsRef",
|
|
1161
1161
|
ref: r,
|
|
1162
1162
|
providers: l.providers,
|
|
1163
1163
|
onUpdateExisting: I[0] || (I[0] = (O) => c("update-existing", O))
|
|
1164
|
-
}, null, 8, ["providers"])) : l.initialValue ? (u(),
|
|
1164
|
+
}, null, 8, ["providers"])) : l.initialValue ? (u(), B(ia, {
|
|
1165
1165
|
key: 2,
|
|
1166
1166
|
name: l.initialValue.name,
|
|
1167
1167
|
status: l.initialValue.status ?? "active",
|
|
@@ -1170,7 +1170,7 @@ const Rs = {
|
|
|
1170
1170
|
}, {
|
|
1171
1171
|
default: te(() => [
|
|
1172
1172
|
x.value ? (u(), M("div", Ja, [
|
|
1173
|
-
S.value ? (u(),
|
|
1173
|
+
S.value ? (u(), B(z, {
|
|
1174
1174
|
key: 0,
|
|
1175
1175
|
modelValue: F.value,
|
|
1176
1176
|
"onUpdate:modelValue": I[2] || (I[2] = (O) => F.value = O),
|
|
@@ -1192,7 +1192,7 @@ const Rs = {
|
|
|
1192
1192
|
]
|
|
1193
1193
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"]),
|
|
1194
1194
|
S.value ? (u(), M(de, { key: 1 }, [
|
|
1195
|
-
l.initialValue.match === "mobile" ? (u(),
|
|
1195
|
+
l.initialValue.match === "mobile" ? (u(), B(z, {
|
|
1196
1196
|
key: 0,
|
|
1197
1197
|
modelValue: P.value,
|
|
1198
1198
|
"onUpdate:modelValue": I[4] || (I[4] = (O) => P.value = O),
|
|
@@ -1202,7 +1202,7 @@ const Rs = {
|
|
|
1202
1202
|
rules: [
|
|
1203
1203
|
(O) => !O.trim() || t(He)(O) || t(L)("team.memberDetails.errors.emailInvalid")
|
|
1204
1204
|
]
|
|
1205
|
-
}, null, 8, ["modelValue", "label", "placeholder", "rules"])) : t(V) ? (u(),
|
|
1205
|
+
}, null, 8, ["modelValue", "label", "placeholder", "rules"])) : t(V) ? (u(), B(ne, {
|
|
1206
1206
|
key: 1,
|
|
1207
1207
|
modelValue: P.value,
|
|
1208
1208
|
"onUpdate:modelValue": I[5] || (I[5] = (O) => P.value = O),
|
|
@@ -1223,7 +1223,7 @@ const Rs = {
|
|
|
1223
1223
|
onInvite: I[1] || (I[1] = (O) => $(O))
|
|
1224
1224
|
})
|
|
1225
1225
|
])),
|
|
1226
|
-
i.value || w.value || l.initialValue ? (u(),
|
|
1226
|
+
i.value || w.value || l.initialValue ? (u(), B(Oa, {
|
|
1227
1227
|
key: 3,
|
|
1228
1228
|
ref_key: "grantFieldsRef",
|
|
1229
1229
|
ref: y,
|
|
@@ -1279,10 +1279,10 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
1279
1279
|
isFoodCourt: i
|
|
1280
1280
|
} = c, {
|
|
1281
1281
|
providers: L,
|
|
1282
|
-
hasProviders:
|
|
1282
|
+
hasProviders: j,
|
|
1283
1283
|
canInvite: W,
|
|
1284
1284
|
providerLabel: V
|
|
1285
|
-
} = xs(), q = U(() => W.value && !i.value ? L.value : []), S = Tt(), x =
|
|
1285
|
+
} = xs(), q = U(() => W.value && !i.value ? L.value : []), S = Tt(), x = jt(), F = ot(), T = Nt(F), P = Ot(), G = Is(), h = p(!0), m = p(!1), w = U(() => S.isLoading.value), y = p([]), r = p(0), _ = p(1), $ = p(""), X = p("");
|
|
1286
1286
|
ue(S.restaurants, (e) => {
|
|
1287
1287
|
if (e.length > 0 && y.value.length > 0) {
|
|
1288
1288
|
const a = new Map(e.map((k) => [k._id, k.profile.name])), g = e.map((k) => k.profile.name).sort();
|
|
@@ -1294,7 +1294,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
1294
1294
|
});
|
|
1295
1295
|
const Y = U(() => [{
|
|
1296
1296
|
label: s("team.filter.unassigned_label"),
|
|
1297
|
-
value:
|
|
1297
|
+
value: je
|
|
1298
1298
|
}, ...S.restaurants.value.map((e) => ({
|
|
1299
1299
|
label: `${e.profile.code ? `${e.profile.code} - ` : ""}${e.profile.name}`,
|
|
1300
1300
|
value: e._id
|
|
@@ -1536,7 +1536,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
1536
1536
|
});
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
|
-
async function
|
|
1539
|
+
async function Be(e) {
|
|
1540
1540
|
const a = ++ee;
|
|
1541
1541
|
b.value = null, Q.value = ne(e), J.value = ae.UPDATE, he.value = e.doc.hasPosUser === !0;
|
|
1542
1542
|
try {
|
|
@@ -1562,7 +1562,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
1562
1562
|
try {
|
|
1563
1563
|
const g = await Fe.readTeamMember(e.id);
|
|
1564
1564
|
if (a !== ee) return;
|
|
1565
|
-
await
|
|
1565
|
+
await Be(g);
|
|
1566
1566
|
} catch {
|
|
1567
1567
|
F.open({
|
|
1568
1568
|
message: s("common.error"),
|
|
@@ -1573,7 +1573,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
1573
1573
|
const he = p(!1);
|
|
1574
1574
|
let ee = 0;
|
|
1575
1575
|
const n = async (e, a) => {
|
|
1576
|
-
e == Ae.Update && (a.status === "invited" ? await ge(a.id) : await
|
|
1576
|
+
e == Ae.Update && (a.status === "invited" ? await ge(a.id) : await Be(a)), e == Ae.Remove && Bt(a);
|
|
1577
1577
|
}, R = Ct(), J = p(ae.CLOSED), pe = U(() => J.value !== ae.CLOSED), xe = U(() => J.value === ae.ADD ? s("common.add") : s("common.update")), ve = U(() => J.value === ae.ADD ? s("team.actions.addMember") : s("team.actions.updateMember")), Q = p();
|
|
1578
1578
|
function _e() {
|
|
1579
1579
|
ee++, he.value = !1, b.value = null, J.value = ae.CLOSED;
|
|
@@ -1590,7 +1590,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
1590
1590
|
}
|
|
1591
1591
|
const {
|
|
1592
1592
|
breakpoints: Ue
|
|
1593
|
-
} = Dt(),
|
|
1593
|
+
} = Dt(), Bt = (e) => {
|
|
1594
1594
|
R.open({
|
|
1595
1595
|
title: s("team.actions.removeMember"),
|
|
1596
1596
|
message: s("team.removeMember.confirmationMessage", {
|
|
@@ -1717,7 +1717,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
1717
1717
|
value: e.subject
|
|
1718
1718
|
}))), pt = U(() => [{
|
|
1719
1719
|
label: s("team.filter.unassigned_label"),
|
|
1720
|
-
value:
|
|
1720
|
+
value: je
|
|
1721
1721
|
}, ...P.permissionSets.value.map((e) => ({
|
|
1722
1722
|
label: e.name,
|
|
1723
1723
|
value: e.id
|
|
@@ -1897,7 +1897,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
1897
1897
|
"onUpdate:modelValue": a[6] || (a[6] = (D) => $.value = D),
|
|
1898
1898
|
class: "w-[320px] xs:w-full xs:mt-8",
|
|
1899
1899
|
placeholder: t(s)("team.search.placeholder")
|
|
1900
|
-
}, null, 8, ["modelValue", "placeholder"]), v("div", ll, [t(i) ? N("", !0) : (u(),
|
|
1900
|
+
}, null, 8, ["modelValue", "placeholder"]), v("div", ll, [t(i) ? N("", !0) : (u(), B(ie, {
|
|
1901
1901
|
key: 0,
|
|
1902
1902
|
modelValue: Ce.value,
|
|
1903
1903
|
"onUpdate:modelValue": a[7] || (a[7] = (D) => Ce.value = D),
|
|
@@ -1926,7 +1926,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
1926
1926
|
items: ct.value,
|
|
1927
1927
|
"selected-prefix": t(s)("team.filter.selected_permission_prefix"),
|
|
1928
1928
|
placeholder: t(s)("team.filter.permission_placeholder")
|
|
1929
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), t(
|
|
1929
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), t(j) ? (u(), M(de, {
|
|
1930
1930
|
key: 1
|
|
1931
1931
|
}, [d(ie, {
|
|
1932
1932
|
modelValue: ke.value,
|
|
@@ -1948,7 +1948,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
1948
1948
|
items: mt.value,
|
|
1949
1949
|
"selected-prefix": t(s)("team.filter.selected_login_method_prefix"),
|
|
1950
1950
|
placeholder: t(s)("team.filter.login_method_placeholder")
|
|
1951
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])], 64)) : N("", !0)])])) : (u(), M("div", tl, [v("div", sl, [t(i) ? N("", !0) : (u(),
|
|
1951
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])], 64)) : N("", !0)])])) : (u(), M("div", tl, [v("div", sl, [t(i) ? N("", !0) : (u(), B(ie, {
|
|
1952
1952
|
key: 0,
|
|
1953
1953
|
modelValue: Ce.value,
|
|
1954
1954
|
"onUpdate:modelValue": a[0] || (a[0] = (D) => Ce.value = D),
|
|
@@ -1977,7 +1977,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
1977
1977
|
items: ct.value,
|
|
1978
1978
|
"selected-prefix": t(s)("team.filter.selected_permission_prefix"),
|
|
1979
1979
|
placeholder: t(s)("team.filter.permission_placeholder")
|
|
1980
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), t(
|
|
1980
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), t(j) ? (u(), M(de, {
|
|
1981
1981
|
key: 1
|
|
1982
1982
|
}, [d(ie, {
|
|
1983
1983
|
modelValue: ke.value,
|
|
@@ -2005,19 +2005,19 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
2005
2005
|
class: "w-[320px] xs:w-full xs:mt-8",
|
|
2006
2006
|
autofocus: "",
|
|
2007
2007
|
placeholder: t(s)("team.search.placeholder")
|
|
2008
|
-
}, null, 8, ["modelValue", "placeholder"])])), t(c).id.value ? (u(),
|
|
2008
|
+
}, null, 8, ["modelValue", "placeholder"])])), t(c).id.value ? (u(), B(rs, {
|
|
2009
2009
|
key: 2
|
|
2010
2010
|
}, {
|
|
2011
|
-
default: te(() => [v("div", ol, [m.value ? N("", !0) : (u(),
|
|
2011
|
+
default: te(() => [v("div", ol, [m.value ? N("", !0) : (u(), B(ns, {
|
|
2012
2012
|
key: 0
|
|
2013
|
-
})), m.value ? (u(),
|
|
2013
|
+
})), m.value ? (u(), B(us, {
|
|
2014
2014
|
key: 1,
|
|
2015
2015
|
"is-loading": h.value,
|
|
2016
2016
|
"is-empty": r.value === 0,
|
|
2017
2017
|
title: t(s)("team.emptyState.title"),
|
|
2018
2018
|
subtitle: t(s)("team.emptyState.description")
|
|
2019
2019
|
}, {
|
|
2020
|
-
default: te(() => [(u(),
|
|
2020
|
+
default: te(() => [(u(), B(k, {
|
|
2021
2021
|
key: dt.value,
|
|
2022
2022
|
"column-defs": o,
|
|
2023
2023
|
"row-data": y.value,
|
|
@@ -2063,7 +2063,7 @@ const Rl = /* @__PURE__ */ oe({
|
|
|
2063
2063
|
onClick: $e
|
|
2064
2064
|
}, null, 8, ["label", "disabled"])])];
|
|
2065
2065
|
}),
|
|
2066
|
-
default: te(() => [pe.value ? (u(),
|
|
2066
|
+
default: te(() => [pe.value ? (u(), B(Za, {
|
|
2067
2067
|
key: 0,
|
|
2068
2068
|
ref_key: "memberForm",
|
|
2069
2069
|
ref: me,
|
|
@@ -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-B1mxceq0.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-D6i7dIWo.js";
|
|
6
|
+
import { _ as Se, a as Ve } from "./app-DTHCLxcv.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-Ct27XghS.js";
|
|
9
|
+
import { g as Fe, s as Ye } from "./iteration-Blu9ugj8.js";
|
|
10
10
|
import { f as Le } from "./utils-BZkjJbju.js";
|
|
11
11
|
import { n as Me } from "./string-DZQ1uNjn.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-7hJffW-T.js";
|
|
13
|
+
import { u as Ie } from "./restaurant-hEQn38rG.js";
|
|
14
|
+
import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-5AgJfpEl.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-B1mxceq0.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 "./app-
|
|
5
|
-
import { s as S } from "./iteration-
|
|
4
|
+
import { b as c, g as y } from "./app-DTHCLxcv.js";
|
|
5
|
+
import { s as S } from "./iteration-Blu9ugj8.js";
|
|
6
6
|
import { i as f, f as g } from "./utils-BZkjJbju.js";
|
|
7
7
|
const u = {
|
|
8
8
|
async readTimesheets(t, e) {
|