@feedmepos/mf-hrm-portal 2.3.2-dev.7 → 2.3.2-dev.9
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-Bw0E-hZl.js → ApprovalCodeList-gb0bre9J.js} +7 -7
- package/dist/{AuditLogList-CA-_t77n.js → AuditLogList-9cwS6bL7.js} +795 -719
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-LtjNCAFN.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DR-c15gr.js} +2 -2
- package/dist/{EmployeeList-D_bX0EhQ.js → EmployeeList-DjyoW1we.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-CyZxQa-b.js → FormSection.vue_vue_type_script_setup_true_lang-BBWlADve.js} +1 -1
- package/dist/{GrantUserList-Cg7ITk_M.js → GrantUserList-yU2NqFVO.js} +8 -8
- package/dist/{Main-Bl-Ocx1G.js → Main-4KwMqF3h.js} +5 -5
- package/dist/{Main-BaB4vgI5.js → Main-BS_Lk_eB.js} +1005 -999
- package/dist/{Main-D5wi42fp.js → Main-BuG7SPnC.js} +10 -10
- package/dist/MyPosProfile-CuDzRaRS.js +360 -0
- package/dist/{PermissionSetList-kgG9H3DX.js → PermissionSetList-D7SS1iAr.js} +30 -29
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-y1YcZpGA.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-u1UlV2Aw.js} +902 -901
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-fQyCtDXM.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CYkv2x_y.js} +1 -1
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-3Q8udk43.js → RoleForm.vue_vue_type_script_setup_true_lang-hiMgwiya.js} +9 -9
- package/dist/{RoleList-Cmz97HHP.js → RoleList-B3P-LQYV.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CggEy3OI.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang--dsZOhnv.js} +1 -1
- package/dist/{ScheduleGeneralPage-B39k3SQH.js → ScheduleGeneralPage-Pq6ufiDu.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-C5j3D4eF.js → ScheduleModal.vue_vue_type_script_setup_true_lang-DKFJLsTW.js} +4 -4
- package/dist/{SchedulePage-AVmRkFi1.js → SchedulePage-8EAOfiJx.js} +189 -201
- package/dist/{SchedulePositionPage-3rE-O8CG.js → SchedulePositionPage-CGXeUnju.js} +3 -3
- package/dist/{SelectFilter-R7ry_GEg.js → SelectFilter-C-UEVLla.js} +1 -1
- package/dist/{TeamMemberList-CvDnIILn.js → TeamMemberList-Bd1O44Ur.js} +102 -101
- package/dist/TimesheetList-CSCmigCM.js +437 -0
- package/dist/{app-DKUCzcrc.js → app-BohKQtlz.js} +82 -14
- package/dist/app.js +1 -1
- package/dist/{approval-code-nsETgIry.js → approval-code-Bfvxsg8h.js} +4 -4
- package/dist/{dayjs.min-CtULWW1N.js → dayjs.min-C0MqTPg1.js} +1 -1
- package/dist/employee-DWxT78W2.js +172 -0
- package/dist/{grant-user-Dpa_Rl6j.js → grant-user-LZ3b6siI.js} +2 -2
- package/dist/{iteration-DpHBtiyr.js → index-DDDG-LHm.js} +698 -726
- package/dist/iteration-CcXrOMQe.js +30 -0
- package/dist/{lodash-YaHCUo_F.js → lodash-BRqMda7F.js} +1 -1
- package/dist/{member-grant-CEokFI3_.js → member-grant-a3AGCWfT.js} +2 -2
- package/dist/{restaurant-CDFKqEFm.js → restaurant-pL7vHt-H.js} +2 -2
- package/dist/{role-DyBVVlEA.js → role--EKCVqho.js} +8 -7
- package/dist/{rule-xErZqYmH.js → rule-Db3gFVHx.js} +83 -82
- package/dist/src/api/audit-log/index.d.ts +2 -0
- package/dist/src/api/employee/index.d.ts +1 -2
- package/dist/src/stores/approval-code.d.ts +1 -1
- package/dist/src/stores/employee.d.ts +3 -9
- package/dist/src/stores/grant-user.d.ts +1 -1
- package/dist/src/stores/permission-assignment.d.ts +2 -2
- package/dist/src/stores/permission-set.d.ts +2 -2
- package/dist/src/stores/restaurant.d.ts +2 -2
- package/dist/src/stores/role.d.ts +2 -2
- package/dist/src/stores/team.d.ts +1 -1
- package/dist/src/stores/timesheet.d.ts +62 -47
- package/dist/src/types/timesheet.d.ts +3 -0
- package/dist/src/views/audit-log/locales/index.d.ts +28 -0
- package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
- package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +1 -1
- package/dist/src/views/my-pos-profile/locales/index.d.ts +40 -0
- package/dist/style.css +1 -1
- package/dist/timesheet-NYW1P4rf.js +76 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BqsvPsPB.js → useAppStore-DV13z6oc.js} +1 -1
- package/dist/{useLoading-BS1bnZg1.js → useLoading-Fcnnfywt.js} +1 -1
- package/dist/useMessage-_ywT_N9X.js +17 -0
- package/dist/{useReportPermissions-DJEhkyGc.js → useReportPermissions-BcyVoKVq.js} +13 -13
- package/package.json +3 -3
- package/dist/MyPosProfile-CUG_201f.js +0 -290
- package/dist/TimesheetList-DYoglTi8.js +0 -401
- package/dist/TimesheetList.vue_vue_type_style_index_0_scoped_d0c6fd51_lang-DBpzyQ17.js +0 -63
- package/dist/employee-DlsSqR3i.js +0 -210
|
@@ -2,9 +2,9 @@ import { defineComponent as S, ref as x, onMounted as N, computed as z, createEl
|
|
|
2
2
|
import { useRouter as B } from "vue-router";
|
|
3
3
|
import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as O } from "@feedmepos/mf-common";
|
|
5
|
-
import { R as L, a as T } from "./app-
|
|
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-
|
|
7
|
-
import { u as K, a as q, _ as Q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang
|
|
5
|
+
import { R as L, a as T } from "./app-BohKQtlz.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-DKFJLsTW.js";
|
|
7
|
+
import { u as K, a as q, _ as Q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang--dsZOhnv.js";
|
|
8
8
|
const W = { class: "main" }, G = {
|
|
9
9
|
id: "viewPositions",
|
|
10
10
|
class: "view"
|
|
@@ -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-BohKQtlz.js";
|
|
5
5
|
function ue(r, u, _ = r) {
|
|
6
6
|
const t = $(!0), C = v(() => {
|
|
7
7
|
if (!t.value && !u.value)
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { defineComponent as oe, mergeModels as Qt, useModel as es, createElementBlock as
|
|
1
|
+
import { defineComponent as oe, mergeModels as Qt, useModel as es, createElementBlock as R, openBlock as m, Fragment as de, renderList as Vt, normalizeClass as lt, toDisplayString as E, unref as s, computed as I, resolveComponent as G, createElementVNode as p, createBlock as q, createCommentVNode as T, createVNode as i, ref as c, watch as ue, onUnmounted as Pt, createSlots as vt, withCtx as te, renderSlot as ts, withModifiers as Mt, nextTick as Rt, h as ss, createTextVNode as as } from "vue";
|
|
2
2
|
import { useI18n as ce, useCoreStore as Xe } from "@feedmepos/mf-common";
|
|
3
|
-
import { useSnackbar as ot, useDialog as
|
|
3
|
+
import { useSnackbar as ot, useDialog as Ft, useBreakpoints as $t, components as Qe, SnackbarPosition as et } from "@feedmepos/ui-library";
|
|
4
4
|
import { u as ls } from "./useDebounce-B8ZPVS5C.js";
|
|
5
|
-
import { S as ie } from "./SelectFilter-
|
|
6
|
-
import { g as be, b as ye, a as Ct, v as ft, k as os, _ as rs, c as ns } from "./app-
|
|
5
|
+
import { S as ie } from "./SelectFilter-C-UEVLla.js";
|
|
6
|
+
import { g as be, b as ye, a as Ct, v as ft, k as os, _ as rs, c as ns } from "./app-BohKQtlz.js";
|
|
7
7
|
import { _ as bt } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
8
8
|
import { _ as is } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
9
|
import { s as us, _ as ms, d as ds, e as cs } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js";
|
|
10
|
-
import { u as Dt } from "./useLoading-
|
|
10
|
+
import { u as Dt } from "./useLoading-Fcnnfywt.js";
|
|
11
11
|
import { u as ps } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
12
|
-
import { w as vs, h as fs, b as bs, E as ys, t as gs } from "./member-grant-
|
|
13
|
-
import { a as Ye, i as rt, t as Me, b as He, D as Nt, E as Et, h as Te, u as hs, s as yt, c as ze, d as xs, e as gt } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-
|
|
12
|
+
import { w as vs, h as fs, b as bs, E as ys, t as gs } from "./member-grant-a3AGCWfT.js";
|
|
13
|
+
import { a as Ye, i as rt, t as Me, b as He, D as Nt, E as Et, h as Te, u as hs, s as yt, c as ze, d as xs, e as gt } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CYkv2x_y.js";
|
|
14
14
|
import { n as nt } from "./string-DZQ1uNjn.js";
|
|
15
|
-
import
|
|
16
|
-
import { l as Le } from "./lodash-
|
|
17
|
-
import { _ as ht } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as Is, s as ws, a as It, c as ks, r as Ss, b as Vs, d as wt, _ as Ps, p as Ms } from "./RoleForm.vue_vue_type_script_setup_true_lang-
|
|
20
|
-
import {
|
|
21
|
-
import { u as
|
|
15
|
+
import "./index-DDDG-LHm.js";
|
|
16
|
+
import { l as Le } from "./lodash-BRqMda7F.js";
|
|
17
|
+
import { _ as ht } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-u1UlV2Aw.js";
|
|
18
|
+
import { t as Ve, u as At, P as tt, H as xt, R as st, a as Ot, p as _t, $ as _s, b as Ut, c as Us } from "./rule-Db3gFVHx.js";
|
|
19
|
+
import { t as Is, s as ws, a as It, c as ks, r as Ss, b as Vs, d as wt, _ as Ps, p as Ms } from "./RoleForm.vue_vue_type_script_setup_true_lang-hiMgwiya.js";
|
|
20
|
+
import { c as Pe } from "./iteration-CcXrOMQe.js";
|
|
21
|
+
import { u as Lt } from "./restaurant-pL7vHt-H.js";
|
|
22
|
+
import { u as Tt } from "./role--EKCVqho.js";
|
|
22
23
|
var Ee = /* @__PURE__ */ ((l) => (l.Update = "Update", l.Remove = "Remove", l))(Ee || {});
|
|
23
24
|
const Be = "__unassigned__";
|
|
24
25
|
function kt(l) {
|
|
@@ -26,10 +27,10 @@ function kt(l) {
|
|
|
26
27
|
const A = l.filter((v) => v !== Be);
|
|
27
28
|
return A.length === l.length ? l : [Be, ...A];
|
|
28
29
|
}
|
|
29
|
-
const
|
|
30
|
+
const Rs = {
|
|
30
31
|
role: "tablist",
|
|
31
32
|
class: "flex w-full max-w-[361px] items-center gap-4 rounded-[12px] bg-fm-color-neutral-gray-100 p-4"
|
|
32
|
-
},
|
|
33
|
+
}, Fs = ["aria-selected", "disabled", "onClick"], $s = /* @__PURE__ */ oe({
|
|
33
34
|
__name: "SegmentedTabs",
|
|
34
35
|
props: /* @__PURE__ */ Qt({
|
|
35
36
|
items: {},
|
|
@@ -41,8 +42,8 @@ const Fs = {
|
|
|
41
42
|
emits: ["update:modelValue"],
|
|
42
43
|
setup(l) {
|
|
43
44
|
const A = es(l, "modelValue");
|
|
44
|
-
return (v, t) => (m(),
|
|
45
|
-
(m(!0),
|
|
45
|
+
return (v, t) => (m(), R("div", Rs, [
|
|
46
|
+
(m(!0), R(de, null, Vt(l.items, (f) => (m(), R("button", {
|
|
46
47
|
key: f.value,
|
|
47
48
|
type: "button",
|
|
48
49
|
role: "tab",
|
|
@@ -53,7 +54,7 @@ const Fs = {
|
|
|
53
54
|
A.value === f.value ? "border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white font-semibold text-fm-color-typo-primary shadow-[0px_1px_2px_0px_rgba(28,28,30,0.04)]" : "border border-transparent font-medium text-fm-color-typo-tertiary hover:bg-fm-color-opacity-sm"
|
|
54
55
|
]),
|
|
55
56
|
onClick: (u) => A.value = f.value
|
|
56
|
-
}, E(f.label), 11,
|
|
57
|
+
}, E(f.label), 11, Fs))), 128))
|
|
57
58
|
]));
|
|
58
59
|
}
|
|
59
60
|
}), it = /* @__PURE__ */ oe({
|
|
@@ -63,7 +64,7 @@ const Fs = {
|
|
|
63
64
|
},
|
|
64
65
|
setup(l) {
|
|
65
66
|
const { t: A } = ce();
|
|
66
|
-
return (v, t) => (m(),
|
|
67
|
+
return (v, t) => (m(), R("span", {
|
|
67
68
|
class: lt([
|
|
68
69
|
"inline-flex items-center rounded-[4px] px-4 py-[2px] text-[10px] font-medium leading-[14px] tracking-[0.2px] whitespace-nowrap",
|
|
69
70
|
l.status === "active" ? "bg-fm-color-system-success-100 text-fm-color-typo-success" : "bg-fm-color-system-warning-100 text-fm-color-typo-warning"
|
|
@@ -87,7 +88,7 @@ const Fs = {
|
|
|
87
88
|
), K = I(() => v.existing.kind !== "member" || !v.existing.isOwner);
|
|
88
89
|
return (M, O) => {
|
|
89
90
|
const k = G("FmButton");
|
|
90
|
-
return m(),
|
|
91
|
+
return m(), R("div", Cs, [
|
|
91
92
|
p("div", Ds, E(s(nt)(l.existing.name)), 1),
|
|
92
93
|
p("div", Ns, [
|
|
93
94
|
p("div", Es, [
|
|
@@ -203,7 +204,7 @@ const Fs = {
|
|
|
203
204
|
providerLabel: _
|
|
204
205
|
}), (D, o) => {
|
|
205
206
|
const S = G("FmSelect"), z = G("FmPhoneNumber"), se = G("FmCircularProgress"), X = G("FmTextField");
|
|
206
|
-
return m(),
|
|
207
|
+
return m(), R("div", Bs, [
|
|
207
208
|
p("div", js, [
|
|
208
209
|
p("p", qs, E(s(u)("team.memberDetails.title")), 1),
|
|
209
210
|
p("p", Gs, E(s(u)("team.memberDetails.ssoNotice", { label: _.value })), 1)
|
|
@@ -223,7 +224,7 @@ const Fs = {
|
|
|
223
224
|
items: h.value
|
|
224
225
|
}, null, 8, ["modelValue", "items"])
|
|
225
226
|
]),
|
|
226
|
-
C.value === "mobile" ? (m(),
|
|
227
|
+
C.value === "mobile" ? (m(), R(de, { key: 1 }, [
|
|
227
228
|
s(M) ? (m(), q(z, {
|
|
228
229
|
key: 0,
|
|
229
230
|
modelValue: V.value,
|
|
@@ -296,7 +297,7 @@ const Fs = {
|
|
|
296
297
|
rules: [
|
|
297
298
|
(x) => !x.trim() || s(He)(x) || s(u)("team.memberDetails.errors.emailInvalid")
|
|
298
299
|
]
|
|
299
|
-
}, null, 8, ["modelValue", "label", "placeholder", "rules"])) : (m(),
|
|
300
|
+
}, null, 8, ["modelValue", "label", "placeholder", "rules"])) : (m(), R(de, { key: 1 }, [
|
|
300
301
|
s(M) ? (m(), q(z, {
|
|
301
302
|
key: 0,
|
|
302
303
|
modelValue: V.value,
|
|
@@ -333,7 +334,7 @@ const Fs = {
|
|
|
333
334
|
},
|
|
334
335
|
setup(l) {
|
|
335
336
|
const A = l, v = I(() => nt(A.name));
|
|
336
|
-
return (t, f) => (m(),
|
|
337
|
+
return (t, f) => (m(), R("div", Qs, [
|
|
337
338
|
p("div", ea, [
|
|
338
339
|
p("div", ta, E(v.value), 1),
|
|
339
340
|
p("div", sa, [
|
|
@@ -341,8 +342,8 @@ const Fs = {
|
|
|
341
342
|
p("p", la, E(l.name), 1),
|
|
342
343
|
i(it, { status: l.status }, null, 8, ["status"])
|
|
343
344
|
]),
|
|
344
|
-
l.email ? (m(),
|
|
345
|
-
l.phoneNumber ? (m(),
|
|
345
|
+
l.email ? (m(), R("p", oa, E(l.email), 1)) : T("", !0),
|
|
346
|
+
l.phoneNumber ? (m(), R("p", ra, E(l.phoneNumber), 1)) : T("", !0)
|
|
346
347
|
])
|
|
347
348
|
]),
|
|
348
349
|
ts(t.$slots, "default")
|
|
@@ -406,7 +407,7 @@ const Fs = {
|
|
|
406
407
|
const _ = I(() => ks(v.restaurants, u.value)), H = c(), C = c(!1), V = c(null);
|
|
407
408
|
async function B(d) {
|
|
408
409
|
var h;
|
|
409
|
-
V.value = d, C.value = !0, await
|
|
410
|
+
V.value = d, C.value = !0, await Rt(), (h = H.value) == null || h.trigger();
|
|
410
411
|
}
|
|
411
412
|
function y(d) {
|
|
412
413
|
const h = V.value;
|
|
@@ -420,12 +421,12 @@ const Fs = {
|
|
|
420
421
|
return (d, h) => {
|
|
421
422
|
var r;
|
|
422
423
|
const b = G("FmSelect");
|
|
423
|
-
return m(),
|
|
424
|
+
return m(), R("div", ia, [
|
|
424
425
|
p("div", ua, [
|
|
425
426
|
p("p", ma, E(s(f)("team.posAccess.restaurants")), 1),
|
|
426
427
|
p("p", da, E(s(f)("team.posAccess.posRole")), 1)
|
|
427
428
|
]),
|
|
428
|
-
(m(!0),
|
|
429
|
+
(m(!0), R(de, null, Vt(u.value, (U, j) => (m(), R("div", {
|
|
429
430
|
key: j,
|
|
430
431
|
class: "grid grid-cols-2 items-center gap-x-[14px]",
|
|
431
432
|
"data-testid": "pos-assignment-row"
|
|
@@ -536,7 +537,7 @@ const Fs = {
|
|
|
536
537
|
}
|
|
537
538
|
function _(y, d) {
|
|
538
539
|
if (!v.modelValue || y === "passcode" && v.modelValue.passcode === d) return;
|
|
539
|
-
const h =
|
|
540
|
+
const h = Pe(v.modelValue);
|
|
540
541
|
h[y] = d, t("update:model-value", h);
|
|
541
542
|
}
|
|
542
543
|
const H = c(!1), C = I(() => O.value.length > 0);
|
|
@@ -544,7 +545,7 @@ const Fs = {
|
|
|
544
545
|
if (C.value)
|
|
545
546
|
try {
|
|
546
547
|
const y = await $.custom(
|
|
547
|
-
() =>
|
|
548
|
+
() => Ve.generateMasterUserPasscode({
|
|
548
549
|
restaurantIds: O.value,
|
|
549
550
|
excludePosUserId: v.posUserId
|
|
550
551
|
}),
|
|
@@ -575,7 +576,7 @@ const Fs = {
|
|
|
575
576
|
});
|
|
576
577
|
return (y, d) => {
|
|
577
578
|
const h = G("FmSwitch"), b = G("FmFormGroup");
|
|
578
|
-
return m(),
|
|
579
|
+
return m(), R("div", ba, [
|
|
579
580
|
p("div", ya, [
|
|
580
581
|
p("div", ga, [
|
|
581
582
|
p("p", ha, E(s(f)("team.posAccess.title")), 1),
|
|
@@ -587,7 +588,7 @@ const Fs = {
|
|
|
587
588
|
"onUpdate:modelValue": P
|
|
588
589
|
}, null, 8, ["model-value"])
|
|
589
590
|
]),
|
|
590
|
-
l.modelValue ? (m(),
|
|
591
|
+
l.modelValue ? (m(), R("div", _a, [
|
|
591
592
|
i(b, {
|
|
592
593
|
modelValue: B.value,
|
|
593
594
|
"onUpdate:modelValue": d[1] || (d[1] = (r) => B.value = r),
|
|
@@ -647,7 +648,7 @@ const Fs = {
|
|
|
647
648
|
key: 0,
|
|
648
649
|
class: "flex flex-col gap-16 rounded-[16px] border border-fm-color-neutral-gray-200 p-16",
|
|
649
650
|
"data-testid": "where-they-work-card"
|
|
650
|
-
}, Pa = { class: "flex flex-col gap-8" }, Ma = { class: "fm-typo-en-title-sm-600" },
|
|
651
|
+
}, Pa = { class: "flex flex-col gap-8" }, Ma = { class: "fm-typo-en-title-sm-600" }, Ra = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fa = {
|
|
651
652
|
key: 1,
|
|
652
653
|
class: "flex items-center justify-center py-64"
|
|
653
654
|
}, $a = {
|
|
@@ -672,7 +673,7 @@ const Fs = {
|
|
|
672
673
|
},
|
|
673
674
|
setup(l, { expose: A }) {
|
|
674
675
|
var qe, ge, ee;
|
|
675
|
-
const v = l, { t } = ce(), f =
|
|
676
|
+
const v = l, { t } = ce(), f = Ft(), { breakpoints: u } = $t(), $ = At(), K = I(
|
|
676
677
|
() => $.permissionSets.value.map((n) => ({
|
|
677
678
|
label: n.name,
|
|
678
679
|
value: n.id
|
|
@@ -688,14 +689,14 @@ const Fs = {
|
|
|
688
689
|
_t.filter((n) => n.subject.startsWith(_s)).map((n) => n.subject)
|
|
689
690
|
), V = I(() => {
|
|
690
691
|
const n = new Set(C);
|
|
691
|
-
for (const
|
|
692
|
+
for (const F of _.value) n.add(F.subject);
|
|
692
693
|
return n;
|
|
693
694
|
}), B = I(() => {
|
|
694
695
|
const n = /* @__PURE__ */ new Set();
|
|
695
|
-
for (const
|
|
696
|
-
|
|
697
|
-
for (const
|
|
698
|
-
|
|
696
|
+
for (const F of _t)
|
|
697
|
+
F.category === ft.reports && n.add(F.subject);
|
|
698
|
+
for (const F of _.value)
|
|
699
|
+
F.category === ft.reports && n.add(F.subject);
|
|
699
700
|
return n;
|
|
700
701
|
}), y = I(() => {
|
|
701
702
|
var n;
|
|
@@ -704,7 +705,7 @@ const Fs = {
|
|
|
704
705
|
() => Ut(P.value, { isOwner: y.value })
|
|
705
706
|
), h = Lt(), b = Tt().roles, r = I(() => {
|
|
706
707
|
const n = d.value.restaurantIds;
|
|
707
|
-
return n === null ? h.restaurants.value : h.restaurants.value.filter((
|
|
708
|
+
return n === null ? h.restaurants.value : h.restaurants.value.filter((F) => n.includes(F._id));
|
|
708
709
|
}), U = c(!1);
|
|
709
710
|
function j(n) {
|
|
710
711
|
U.value = n, !n && (M.value = [], P.value = vs(P.value));
|
|
@@ -719,10 +720,10 @@ const Fs = {
|
|
|
719
720
|
)
|
|
720
721
|
),
|
|
721
722
|
(n == null ? void 0 : n.permissions) || []
|
|
722
|
-
), k.value = n != null && n.posUser ? X(
|
|
723
|
+
), k.value = n != null && n.posUser ? X(Pe(n.posUser), P.value) : void 0, x.value = !!k.value, U.value = fs(P.value, M.value), W.value = {
|
|
723
724
|
permissionSetIds: [...M.value],
|
|
724
|
-
userPermissions:
|
|
725
|
-
posUser: k.value ?
|
|
725
|
+
userPermissions: Pe(P.value),
|
|
726
|
+
posUser: k.value ? Pe(k.value) : void 0
|
|
726
727
|
};
|
|
727
728
|
}
|
|
728
729
|
function ne() {
|
|
@@ -740,14 +741,14 @@ const Fs = {
|
|
|
740
741
|
P.value = D(n);
|
|
741
742
|
}
|
|
742
743
|
function S(n) {
|
|
743
|
-
const
|
|
744
|
-
if (Le.isEqual(
|
|
744
|
+
const F = [...n ?? []];
|
|
745
|
+
if (Le.isEqual(F, M.value)) return;
|
|
745
746
|
const J = !Le.isEqual(
|
|
746
747
|
P.value,
|
|
747
748
|
D(M.value)
|
|
748
749
|
);
|
|
749
|
-
if (M.value =
|
|
750
|
-
o(
|
|
750
|
+
if (M.value = F, !J) {
|
|
751
|
+
o(F);
|
|
751
752
|
return;
|
|
752
753
|
}
|
|
753
754
|
f.open({
|
|
@@ -763,11 +764,11 @@ const Fs = {
|
|
|
763
764
|
close: !0
|
|
764
765
|
}
|
|
765
766
|
}).onPrimary(() => {
|
|
766
|
-
o(
|
|
767
|
+
o(F), f.close();
|
|
767
768
|
});
|
|
768
769
|
}
|
|
769
770
|
function z() {
|
|
770
|
-
var n,
|
|
771
|
+
var n, F;
|
|
771
772
|
return bs({
|
|
772
773
|
userPermissions: P.value,
|
|
773
774
|
inheritedPermissions: O.value,
|
|
@@ -776,15 +777,15 @@ const Fs = {
|
|
|
776
777
|
reportSubjects: H.value ? V.value : C,
|
|
777
778
|
defaultReportSubjects: B.value,
|
|
778
779
|
savedPosUser: (n = v.initialValue) == null ? void 0 : n.posUser,
|
|
779
|
-
fallbackName: ((
|
|
780
|
+
fallbackName: ((F = v.initialValue) == null ? void 0 : F.name) || v.fallbackName
|
|
780
781
|
});
|
|
781
782
|
}
|
|
782
783
|
const se = c();
|
|
783
|
-
function X(n,
|
|
784
|
+
function X(n, F) {
|
|
784
785
|
if (!n) return n;
|
|
785
|
-
const J = Ut(
|
|
786
|
+
const J = Ut(F, { isOwner: y.value }), { roleIds: pe, restaurantIds: he } = J;
|
|
786
787
|
if (pe === null && he === null) return n;
|
|
787
|
-
const ve =
|
|
788
|
+
const ve = Pe(n);
|
|
788
789
|
return ve.roles = ve.roles.filter(
|
|
789
790
|
(Z) => (pe === null || pe.includes(Z.roleId)) && (he === null || he.includes(Z.restaurantId))
|
|
790
791
|
), ve;
|
|
@@ -796,18 +797,18 @@ const Fs = {
|
|
|
796
797
|
return ue(
|
|
797
798
|
() => !!k.value,
|
|
798
799
|
async (n) => {
|
|
799
|
-
n && !x.value && N.value && (await
|
|
800
|
+
n && !x.value && N.value && (await Rt(), se.value && se.value.$el.scrollIntoView({ behavior: "smooth", block: "start" })), x.value = n;
|
|
800
801
|
}
|
|
801
802
|
), ue(
|
|
802
803
|
() => v.initialValue,
|
|
803
|
-
(n,
|
|
804
|
-
if (!
|
|
804
|
+
(n, F) => {
|
|
805
|
+
if (!F || !n || F.id !== n.id) {
|
|
805
806
|
N.value = !1, re(n);
|
|
806
807
|
return;
|
|
807
808
|
}
|
|
808
|
-
n.posUser !== void 0 && !N.value && (k.value = n.posUser ? X(
|
|
809
|
+
n.posUser !== void 0 && !N.value && (k.value = n.posUser ? X(Pe(n.posUser), P.value) : void 0, W.value = {
|
|
809
810
|
...W.value,
|
|
810
|
-
posUser: k.value ?
|
|
811
|
+
posUser: k.value ? Pe(k.value) : void 0
|
|
811
812
|
});
|
|
812
813
|
},
|
|
813
814
|
{ immediate: !0 }
|
|
@@ -820,24 +821,24 @@ const Fs = {
|
|
|
820
821
|
), A({
|
|
821
822
|
readGrantData: z,
|
|
822
823
|
isModified: ne
|
|
823
|
-
}), (n,
|
|
824
|
-
var ve, Z, xe,
|
|
824
|
+
}), (n, F) => {
|
|
825
|
+
var ve, Z, xe, Re, Fe, Ge;
|
|
825
826
|
const J = G("FmCircularProgress"), pe = G("FmSwitch"), he = G("FmSelect");
|
|
826
|
-
return m(),
|
|
827
|
-
(ve = l.initialValue) != null && ve.isOwner ? T("", !0) : (m(),
|
|
827
|
+
return m(), R("div", Sa, [
|
|
828
|
+
(ve = l.initialValue) != null && ve.isOwner ? T("", !0) : (m(), R("section", Va, [
|
|
828
829
|
p("div", Pa, [
|
|
829
830
|
p("p", Ma, E(s(t)("team.whereTheyWork.title")), 1),
|
|
830
|
-
p("p",
|
|
831
|
+
p("p", Ra, E(s(t)("team.whereTheyWork.subtitle")), 1)
|
|
831
832
|
]),
|
|
832
833
|
i(ht, {
|
|
833
834
|
modelValue: P.value,
|
|
834
|
-
"onUpdate:modelValue":
|
|
835
|
+
"onUpdate:modelValue": F[0] || (F[0] = (_e) => P.value = _e),
|
|
835
836
|
part: "workplace",
|
|
836
837
|
"inherit-permissions": O.value,
|
|
837
838
|
onPermissionChanged: Q
|
|
838
839
|
}, null, 8, ["modelValue", "inherit-permissions"])
|
|
839
840
|
])),
|
|
840
|
-
l.loading ? (m(),
|
|
841
|
+
l.loading ? (m(), R("div", Fa, [
|
|
841
842
|
i(J, { size: "xl" })
|
|
842
843
|
])) : (m(), q(ka, {
|
|
843
844
|
key: 2,
|
|
@@ -845,14 +846,14 @@ const Fs = {
|
|
|
845
846
|
ref: se,
|
|
846
847
|
"model-value": k.value,
|
|
847
848
|
"fallback-name": ((Z = l.initialValue) == null ? void 0 : Z.name) || l.fallbackName,
|
|
848
|
-
"fallback-passcode": (
|
|
849
|
+
"fallback-passcode": (Re = (xe = l.initialValue) == null ? void 0 : xe.posUser) == null ? void 0 : Re.passcode,
|
|
849
850
|
roles: s(b),
|
|
850
851
|
"usable-role-ids": d.value.roleIds,
|
|
851
852
|
restaurants: r.value,
|
|
852
|
-
"pos-user-id": (
|
|
853
|
+
"pos-user-id": (Fe = l.initialValue) == null ? void 0 : Fe.posUserId,
|
|
853
854
|
"onUpdate:modelValue": je
|
|
854
855
|
}, null, 8, ["model-value", "fallback-name", "fallback-passcode", "roles", "usable-role-ids", "restaurants", "pos-user-id"])),
|
|
855
|
-
(Ge = l.initialValue) != null && Ge.isOwner ? T("", !0) : (m(),
|
|
856
|
+
(Ge = l.initialValue) != null && Ge.isOwner ? T("", !0) : (m(), R("section", $a, [
|
|
856
857
|
p("div", Ca, [
|
|
857
858
|
p("div", Da, [
|
|
858
859
|
p("p", Na, E(s(t)("team.portalAccess.title")), 1),
|
|
@@ -864,7 +865,7 @@ const Fs = {
|
|
|
864
865
|
"onUpdate:modelValue": j
|
|
865
866
|
}, null, 8, ["model-value"])
|
|
866
867
|
]),
|
|
867
|
-
U.value ? (m(),
|
|
868
|
+
U.value ? (m(), R(de, { key: 0 }, [
|
|
868
869
|
i(he, {
|
|
869
870
|
"model-value": M.value,
|
|
870
871
|
multiselect: "",
|
|
@@ -877,7 +878,7 @@ const Fs = {
|
|
|
877
878
|
}, null, 8, ["model-value", "label", "items", "placeholder"]),
|
|
878
879
|
i(ht, {
|
|
879
880
|
modelValue: P.value,
|
|
880
|
-
"onUpdate:modelValue":
|
|
881
|
+
"onUpdate:modelValue": F[1] || (F[1] = (_e) => P.value = _e),
|
|
881
882
|
part: "portal",
|
|
882
883
|
"inherit-permissions": O.value,
|
|
883
884
|
onPermissionChanged: Q
|
|
@@ -966,8 +967,8 @@ const Fs = {
|
|
|
966
967
|
return (b, r) => {
|
|
967
968
|
var D, o, S;
|
|
968
969
|
const U = G("FmRadio"), j = G("FmPhoneNumber"), W = G("FmCircularProgress"), re = G("FmTextField"), ne = G("FmRadioGroup"), Q = G("FmButton");
|
|
969
|
-
return m(),
|
|
970
|
-
y.value ? T("", !0) : (m(),
|
|
970
|
+
return m(), R("div", Oa, [
|
|
971
|
+
y.value ? T("", !0) : (m(), R("div", La, [
|
|
971
972
|
i(ne, {
|
|
972
973
|
modelValue: O.value,
|
|
973
974
|
"onUpdate:modelValue": r[2] || (r[2] = (z) => O.value = z)
|
|
@@ -1011,7 +1012,7 @@ const Fs = {
|
|
|
1011
1012
|
onClick: V
|
|
1012
1013
|
}, null, 8, ["label"])
|
|
1013
1014
|
])),
|
|
1014
|
-
_.value ? (m(),
|
|
1015
|
+
_.value ? (m(), R("div", {
|
|
1015
1016
|
key: 1,
|
|
1016
1017
|
class: "profile-menu--profile cursor-pointer hover:bg-fm-color-opacity-sm",
|
|
1017
1018
|
onClick: r[3] || (r[3] = (z) => d(_.value))
|
|
@@ -1023,7 +1024,7 @@ const Fs = {
|
|
|
1023
1024
|
p("p", Ga, E((S = _.value) == null ? void 0 : S.phoneNumber), 1)
|
|
1024
1025
|
])
|
|
1025
1026
|
])) : T("", !0),
|
|
1026
|
-
y.value ? (m(),
|
|
1027
|
+
y.value ? (m(), R("div", Ka, [
|
|
1027
1028
|
i(Q, {
|
|
1028
1029
|
label: s(t)("team.memberForm.searchUser.changeUser"),
|
|
1029
1030
|
variant: "secondary",
|
|
@@ -1168,7 +1169,7 @@ const Fs = {
|
|
|
1168
1169
|
"phone-number": l.initialValue.phoneNumber
|
|
1169
1170
|
}, {
|
|
1170
1171
|
default: te(() => [
|
|
1171
|
-
_.value ? (m(),
|
|
1172
|
+
_.value ? (m(), R("div", Ya, [
|
|
1172
1173
|
P.value ? (m(), q(z, {
|
|
1173
1174
|
key: 0,
|
|
1174
1175
|
modelValue: H.value,
|
|
@@ -1190,7 +1191,7 @@ const Fs = {
|
|
|
1190
1191
|
(N) => N.trim().length <= s(Et) || s($)("team.memberDetails.errors.employeeIdTooLong")
|
|
1191
1192
|
]
|
|
1192
1193
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"]),
|
|
1193
|
-
P.value ? (m(),
|
|
1194
|
+
P.value ? (m(), R(de, { key: 1 }, [
|
|
1194
1195
|
l.initialValue.match === "mobile" ? (m(), q(z, {
|
|
1195
1196
|
key: 0,
|
|
1196
1197
|
modelValue: V.value,
|
|
@@ -1217,7 +1218,7 @@ const Fs = {
|
|
|
1217
1218
|
])) : T("", !0)
|
|
1218
1219
|
]),
|
|
1219
1220
|
_: 1
|
|
1220
|
-
}, 8, ["name", "status", "email", "phone-number"])) : (m(),
|
|
1221
|
+
}, 8, ["name", "status", "email", "phone-number"])) : (m(), R("div", Xa, [
|
|
1221
1222
|
i(za, {
|
|
1222
1223
|
onInvite: S[1] || (S[1] = (N) => j(N))
|
|
1223
1224
|
})
|
|
@@ -1537,7 +1538,7 @@ const Fl = /* @__PURE__ */ oe({
|
|
|
1537
1538
|
const a = ++ee;
|
|
1538
1539
|
X.value = null, Z.value = z(e), J.value = ae.UPDATE, ge.value = e.doc.hasPosUser === !0;
|
|
1539
1540
|
try {
|
|
1540
|
-
const g = await
|
|
1541
|
+
const g = await Ve.readTeamMember(e.id);
|
|
1541
1542
|
if (a !== ee) return;
|
|
1542
1543
|
Z.value = S(g);
|
|
1543
1544
|
} catch {
|
|
@@ -1545,7 +1546,7 @@ const Fl = /* @__PURE__ */ oe({
|
|
|
1545
1546
|
_.open({
|
|
1546
1547
|
message: t("common.error"),
|
|
1547
1548
|
type: "error"
|
|
1548
|
-
}),
|
|
1549
|
+
}), Fe();
|
|
1549
1550
|
} finally {
|
|
1550
1551
|
a === ee && (ge.value = !1);
|
|
1551
1552
|
}
|
|
@@ -1557,7 +1558,7 @@ const Fl = /* @__PURE__ */ oe({
|
|
|
1557
1558
|
}
|
|
1558
1559
|
const a = ++ee;
|
|
1559
1560
|
try {
|
|
1560
|
-
const g = await
|
|
1561
|
+
const g = await Ve.readTeamMember(e.id);
|
|
1561
1562
|
if (a !== ee) return;
|
|
1562
1563
|
await je(g);
|
|
1563
1564
|
} catch {
|
|
@@ -1571,24 +1572,24 @@ const Fl = /* @__PURE__ */ oe({
|
|
|
1571
1572
|
let ee = 0;
|
|
1572
1573
|
const n = async (e, a) => {
|
|
1573
1574
|
e == Ee.Update && (a.status === "invited" ? await N(a.id) : await je(a)), e == Ee.Remove && Bt(a);
|
|
1574
|
-
},
|
|
1575
|
+
}, F = Ft(), J = c(ae.CLOSED), pe = I(() => J.value !== ae.CLOSED), he = I(() => J.value === ae.ADD ? t("common.add") : t("common.update")), ve = I(() => J.value === ae.ADD ? t("team.actions.addMember") : t("team.actions.updateMember")), Z = c();
|
|
1575
1576
|
function xe() {
|
|
1576
1577
|
ee++, ge.value = !1, X.value = null, J.value = ae.CLOSED;
|
|
1577
1578
|
}
|
|
1578
|
-
const
|
|
1579
|
+
const Re = ps(() => {
|
|
1579
1580
|
var e;
|
|
1580
1581
|
return ((e = me.value) == null ? void 0 : e.isModified()) ?? !1;
|
|
1581
1582
|
}, xe);
|
|
1582
|
-
function
|
|
1583
|
-
|
|
1583
|
+
function Fe() {
|
|
1584
|
+
Re();
|
|
1584
1585
|
}
|
|
1585
1586
|
function Ge(e) {
|
|
1586
|
-
e ||
|
|
1587
|
+
e || Fe();
|
|
1587
1588
|
}
|
|
1588
1589
|
const {
|
|
1589
1590
|
breakpoints: _e
|
|
1590
1591
|
} = $t(), Bt = (e) => {
|
|
1591
|
-
|
|
1592
|
+
F.open({
|
|
1592
1593
|
title: t("team.actions.removeMember"),
|
|
1593
1594
|
message: t("team.removeMember.confirmationMessage", {
|
|
1594
1595
|
memberName: e.name
|
|
@@ -1606,17 +1607,17 @@ const Fl = /* @__PURE__ */ oe({
|
|
|
1606
1607
|
}
|
|
1607
1608
|
}).onPrimary(async () => {
|
|
1608
1609
|
Se.value || (await H.minor(async () => {
|
|
1609
|
-
await
|
|
1610
|
+
await Ve.deleteTeamMember(e.id), await ke();
|
|
1610
1611
|
}, {
|
|
1611
1612
|
isLoading: Se,
|
|
1612
1613
|
successMessage: t("team.removeMember.successMessage", {
|
|
1613
1614
|
memberName: e.name
|
|
1614
1615
|
})
|
|
1615
|
-
}),
|
|
1616
|
+
}), F.close());
|
|
1616
1617
|
});
|
|
1617
1618
|
};
|
|
1618
1619
|
function jt(e) {
|
|
1619
|
-
|
|
1620
|
+
F.open({
|
|
1620
1621
|
title: t("team.staffInvite.revoke.title"),
|
|
1621
1622
|
message: t("team.staffInvite.revoke.message", {
|
|
1622
1623
|
name: e.name
|
|
@@ -1649,7 +1650,7 @@ const Fl = /* @__PURE__ */ oe({
|
|
|
1649
1650
|
}, t)
|
|
1650
1651
|
});
|
|
1651
1652
|
} finally {
|
|
1652
|
-
Se.value = !1,
|
|
1653
|
+
Se.value = !1, F.close(), await ke();
|
|
1653
1654
|
}
|
|
1654
1655
|
}
|
|
1655
1656
|
});
|
|
@@ -1729,7 +1730,7 @@ const Fl = /* @__PURE__ */ oe({
|
|
|
1729
1730
|
var a, g, w;
|
|
1730
1731
|
B.value = !0;
|
|
1731
1732
|
try {
|
|
1732
|
-
const Y = await
|
|
1733
|
+
const Y = await Ve.readTeamMembersPage({
|
|
1733
1734
|
limit: Ne,
|
|
1734
1735
|
offset: (e - 1) * Ne,
|
|
1735
1736
|
search: j.value.trim() || void 0,
|
|
@@ -1832,7 +1833,7 @@ const Fl = /* @__PURE__ */ oe({
|
|
|
1832
1833
|
}
|
|
1833
1834
|
const g = a ? null : me.value.readEdits();
|
|
1834
1835
|
await H.minor(async () => {
|
|
1835
|
-
await (a ?
|
|
1836
|
+
await (a ? Ve.createTeamMember(e) : Ve.updateTeamMember(Z.value.id, {
|
|
1836
1837
|
...gs(e, Z.value.posUser),
|
|
1837
1838
|
// '' clears it; the owner's sheet has no field, so it is left out
|
|
1838
1839
|
...g ? {
|
|
@@ -1897,7 +1898,7 @@ const Fl = /* @__PURE__ */ oe({
|
|
|
1897
1898
|
}), (e, a) => {
|
|
1898
1899
|
var Oe;
|
|
1899
1900
|
const g = G("FmSearch"), w = G("FmTable"), Y = G("FmIcon"), le = G("FmButton"), De = G("FmSideSheet");
|
|
1900
|
-
return m(),
|
|
1901
|
+
return m(), R(de, null, [p("div", Za, [p("div", Qa, [s(_e).xs ? (m(), R("div", sl, [i(g, {
|
|
1901
1902
|
modelValue: U.value,
|
|
1902
1903
|
"onUpdate:modelValue": a[6] || (a[6] = (L) => U.value = L),
|
|
1903
1904
|
class: "w-[320px] xs:w-full xs:mt-8",
|
|
@@ -1930,7 +1931,7 @@ const Fl = /* @__PURE__ */ oe({
|
|
|
1930
1931
|
items: ct.value,
|
|
1931
1932
|
"selected-prefix": s(t)("team.filter.selected_permission_prefix"),
|
|
1932
1933
|
placeholder: s(t)("team.filter.permission_placeholder")
|
|
1933
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), s($) ? (m(),
|
|
1934
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), s($) ? (m(), R(de, {
|
|
1934
1935
|
key: 0
|
|
1935
1936
|
}, [i(ie, {
|
|
1936
1937
|
modelValue: Ie.value,
|
|
@@ -1952,7 +1953,7 @@ const Fl = /* @__PURE__ */ oe({
|
|
|
1952
1953
|
items: mt.value,
|
|
1953
1954
|
"selected-prefix": s(t)("team.filter.selected_login_method_prefix"),
|
|
1954
1955
|
placeholder: s(t)("team.filter.login_method_placeholder")
|
|
1955
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])], 64)) : T("", !0)])])) : (m(),
|
|
1956
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])], 64)) : T("", !0)])])) : (m(), R("div", el, [p("div", tl, [i(ie, {
|
|
1956
1957
|
modelValue: $e.value,
|
|
1957
1958
|
"onUpdate:modelValue": a[0] || (a[0] = (L) => $e.value = L),
|
|
1958
1959
|
multiple: "",
|
|
@@ -1980,7 +1981,7 @@ const Fl = /* @__PURE__ */ oe({
|
|
|
1980
1981
|
items: ct.value,
|
|
1981
1982
|
"selected-prefix": s(t)("team.filter.selected_permission_prefix"),
|
|
1982
1983
|
placeholder: s(t)("team.filter.permission_placeholder")
|
|
1983
|
-
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), s($) ? (m(),
|
|
1984
|
+
}, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), s($) ? (m(), R(de, {
|
|
1984
1985
|
key: 0
|
|
1985
1986
|
}, [i(ie, {
|
|
1986
1987
|
modelValue: Ie.value,
|
|
@@ -2041,13 +2042,13 @@ const Fl = /* @__PURE__ */ oe({
|
|
|
2041
2042
|
"max-width": 960,
|
|
2042
2043
|
"close-button": !1,
|
|
2043
2044
|
"onUpdate:modelValue": Ge,
|
|
2044
|
-
"onOn:clickedAway": s(
|
|
2045
|
+
"onOn:clickedAway": s(Re)
|
|
2045
2046
|
}, {
|
|
2046
2047
|
"side-sheet-header": te(() => [p("div", ol, [p("p", rl, E(ve.value), 1), i(Y, {
|
|
2047
2048
|
name: "close",
|
|
2048
2049
|
size: "md",
|
|
2049
2050
|
class: "cursor-pointer",
|
|
2050
|
-
onClick: s(
|
|
2051
|
+
onClick: s(Re)
|
|
2051
2052
|
}, null, 8, ["onClick"])])]),
|
|
2052
2053
|
"side-sheet-footer": te(() => {
|
|
2053
2054
|
var L;
|
|
@@ -2063,7 +2064,7 @@ const Fl = /* @__PURE__ */ oe({
|
|
|
2063
2064
|
size: "md",
|
|
2064
2065
|
variant: "secondary",
|
|
2065
2066
|
disabled: fe.value,
|
|
2066
|
-
onClick:
|
|
2067
|
+
onClick: Fe
|
|
2067
2068
|
}, null, 8, ["label", "disabled"])])];
|
|
2068
2069
|
}),
|
|
2069
2070
|
default: te(() => [pe.value ? (m(), q(Ja, {
|