@feedmepos/mf-hrm-portal 2.3.2-dev.5 → 2.3.2-dev.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/{ApprovalCodeList-NYJNwdDZ.js → ApprovalCodeList-ix9OeJEQ.js} +7 -7
  2. package/dist/{AuditLogList-Ghn4aBnn.js → AuditLogList-D5H_O9Q0.js} +5 -5
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BxZ9t3MZ.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CuELLYY4.js} +10 -10
  4. package/dist/{EmployeeList-jc8LTznV.js → EmployeeList-DICzZjVM.js} +8 -8
  5. package/dist/{FormSection.vue_vue_type_script_setup_true_lang-DLgm6oCz.js → FormSection.vue_vue_type_script_setup_true_lang-BQzSWAqC.js} +1 -1
  6. package/dist/{GrantUserList-BtPTpypR.js → GrantUserList-DoMN7Eks.js} +8 -8
  7. package/dist/{Main-McMZU_cR.js → Main-CHIExpOV.js} +5 -5
  8. package/dist/{Main-BizCV-_x.js → Main-CQ42sYi9.js} +11 -11
  9. package/dist/{Main-BF8hlYeV.js → Main-DwYh9cxQ.js} +10 -10
  10. package/dist/{MyPosProfile-BjeCnBvL.js → MyPosProfile-DaUdREQX.js} +1 -1
  11. package/dist/{PermissionSetList-NWLoqFHC.js → PermissionSetList-B7WM9N-p.js} +66 -66
  12. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BSVtyLlL.js +4207 -0
  13. package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-nwpdr7T7.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C7fnnbme.js} +19 -19
  14. package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-eT-dPsOX.js → RoleForm.vue_vue_type_script_setup_true_lang-AbQIllkX.js} +30 -30
  15. package/dist/{RoleList-CIfN10zu.js → RoleList-vQsHxlNc.js} +96 -105
  16. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CMTXC_UR.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-D52LhvGG.js} +1 -1
  17. package/dist/{ScheduleGeneralPage-8vS1DUrk.js → ScheduleGeneralPage-BLqh7jH6.js} +2 -2
  18. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-Br4AcF1g.js → ScheduleModal.vue_vue_type_script_setup_true_lang-C9doSgov.js} +4 -4
  19. package/dist/{SchedulePage-DqbE1PoV.js → SchedulePage-YADV_6w9.js} +9 -9
  20. package/dist/{SchedulePositionPage-DUnkT0Tp.js → SchedulePositionPage-BowDQMG_.js} +3 -3
  21. package/dist/{SelectFilter-voMj4_j1.js → SelectFilter-CBp1qxLd.js} +2 -3
  22. package/dist/{TeamMemberList-DoEOWNDC.js → TeamMemberList-BoJ87moU.js} +184 -184
  23. package/dist/TimesheetList-BULw75oo.js +401 -0
  24. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-h-bWBmpI.js → TimesheetList.vue_vue_type_style_index_0_scoped_c98b0b84_lang-VlnjH9aQ.js} +3 -3
  25. package/dist/{app-CDCO87ji.js → app-DOFDND9j.js} +5444 -4624
  26. package/dist/app.js +1 -1
  27. package/dist/{approval-code-CLE9s5dL.js → approval-code-Dgj6S82q.js} +1 -1
  28. package/dist/{dayjs.min-BW6-XAUB.js → dayjs.min-AoirQCgL.js} +1 -1
  29. package/dist/{employee-BaCU-FLC.js → employee-VB6YmuSS.js} +5 -5
  30. package/dist/{grant-user-DMtilLJx.js → grant-user-C-ptrq7l.js} +1 -1
  31. package/dist/{iteration-CPLGGFBb.js → iteration-DmuDXP8U.js} +1 -1
  32. package/dist/{lodash-snXoiw60.js → lodash-CBFO-xTu.js} +1 -1
  33. package/dist/member-grant-CHOB8eQ_.js +54 -0
  34. package/dist/restaurant-DH2Fxzi7.js +52 -0
  35. package/dist/role-DUpHwRiY.js +97 -0
  36. package/dist/rule-aUPH1VOW.js +842 -0
  37. package/dist/src/helpers/permission-set.d.ts +1 -102
  38. package/dist/src/helpers/rule.d.ts +2 -2
  39. package/dist/src/stores/restaurant.d.ts +61 -1
  40. package/dist/src/views/audit-log/locales/index.d.ts +12 -0
  41. package/dist/style.css +1 -1
  42. package/dist/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/{useAppStore-pKAGQL6q.js → useAppStore-DwmJbpf-.js} +1 -1
  44. package/dist/{useLoading-D67DIqfk.js → useLoading-Dmlm4oSU.js} +1 -1
  45. package/dist/{useReportPermissions-CfgnE0NY.js → useReportPermissions-XPn-p57R.js} +5 -5
  46. package/package.json +3 -3
  47. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-UPcpeVD5.js +0 -4243
  48. package/dist/TimesheetList-BBv2SV96.js +0 -402
  49. package/dist/member-grant-CJyOr-q0.js +0 -55
  50. package/dist/restaurant-BMlLIUqe.js +0 -51
  51. package/dist/role-DqcBOWHL.js +0 -93
  52. package/dist/rule-B5YNhGJ4.js +0 -788
@@ -1,24 +1,24 @@
1
- import { defineComponent as oe, mergeModels as Qt, useModel as es, createElementBlock as M, 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 Rt, nextTick as Mt, h as ss, createTextVNode as as } from "vue";
2
- import { useI18n as ce, useCoreStore as He } from "@feedmepos/mf-common";
3
- import { useSnackbar as ot, useDialog as Ft, useBreakpoints as $t, components as Qe, SnackbarPosition as et } from "@feedmepos/ui-library";
1
+ import { defineComponent as oe, mergeModels as Qt, useModel as es, createElementBlock as F, 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 Ft, h as ss, createTextVNode as as } from "vue";
2
+ import { useI18n as ce, useCoreStore as Xe } from "@feedmepos/mf-common";
3
+ import { useSnackbar as ot, useDialog as Rt, 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-voMj4_j1.js";
6
- import { g as be, b as ye, a as Ct, v as ft, O as os, _ as rs, c as ns } from "./app-CDCO87ji.js";
5
+ import { S as ie } from "./SelectFilter-CBp1qxLd.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-DOFDND9j.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-D67DIqfk.js";
10
+ import { u as Dt } from "./useLoading-Dmlm4oSU.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-CJyOr-q0.js";
13
- import { a as Ye, i as rt, t as Re, b as Xe, 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-nwpdr7T7.js";
12
+ import { w as vs, h as fs, b as bs, E as ys, t as gs } from "./member-grant-CHOB8eQ_.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-C7fnnbme.js";
14
14
  import { n as nt } from "./string-DZQ1uNjn.js";
15
- import { c as Ve } from "./iteration-CPLGGFBb.js";
16
- import { l as Le } from "./lodash-snXoiw60.js";
17
- import { _ as ht } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-UPcpeVD5.js";
18
- import { t as Pe, u as At, c as tt, g as xt, m as st, a as Ot, p as _t, R as _s, b as Ut, d as Us } from "./rule-B5YNhGJ4.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 Rs } from "./RoleForm.vue_vue_type_script_setup_true_lang-eT-dPsOX.js";
20
- import { u as Lt } from "./restaurant-BMlLIUqe.js";
21
- import { u as Tt } from "./role-DqcBOWHL.js";
15
+ import { c as Ve } from "./iteration-DmuDXP8U.js";
16
+ import { l as Le } from "./lodash-CBFO-xTu.js";
17
+ import { _ as ht } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BSVtyLlL.js";
18
+ import { t as Pe, u as At, y as tt, q as xt, P as st, a as Ot, p as _t, E as _s, b as Ut, c as Us } from "./rule-aUPH1VOW.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-AbQIllkX.js";
20
+ import { u as Lt } from "./restaurant-DH2Fxzi7.js";
21
+ import { u as Tt } from "./role-DUpHwRiY.js";
22
22
  var Ee = /* @__PURE__ */ ((l) => (l.Update = "Update", l.Remove = "Remove", l))(Ee || {});
23
23
  const Be = "__unassigned__";
24
24
  function kt(l) {
@@ -26,10 +26,10 @@ function kt(l) {
26
26
  const A = l.filter((v) => v !== Be);
27
27
  return A.length === l.length ? l : [Be, ...A];
28
28
  }
29
- const Ms = {
29
+ const Fs = {
30
30
  role: "tablist",
31
31
  class: "flex w-full max-w-[361px] items-center gap-4 rounded-[12px] bg-fm-color-neutral-gray-100 p-4"
32
- }, Fs = ["aria-selected", "disabled", "onClick"], $s = /* @__PURE__ */ oe({
32
+ }, Rs = ["aria-selected", "disabled", "onClick"], $s = /* @__PURE__ */ oe({
33
33
  __name: "SegmentedTabs",
34
34
  props: /* @__PURE__ */ Qt({
35
35
  items: {},
@@ -41,8 +41,8 @@ const Ms = {
41
41
  emits: ["update:modelValue"],
42
42
  setup(l) {
43
43
  const A = es(l, "modelValue");
44
- return (v, t) => (m(), M("div", Ms, [
45
- (m(!0), M(de, null, Vt(l.items, (f) => (m(), M("button", {
44
+ return (v, t) => (m(), F("div", Fs, [
45
+ (m(!0), F(de, null, Vt(l.items, (f) => (m(), F("button", {
46
46
  key: f.value,
47
47
  type: "button",
48
48
  role: "tab",
@@ -53,7 +53,7 @@ const Ms = {
53
53
  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
54
  ]),
55
55
  onClick: (u) => A.value = f.value
56
- }, E(f.label), 11, Fs))), 128))
56
+ }, E(f.label), 11, Rs))), 128))
57
57
  ]));
58
58
  }
59
59
  }), it = /* @__PURE__ */ oe({
@@ -63,7 +63,7 @@ const Ms = {
63
63
  },
64
64
  setup(l) {
65
65
  const { t: A } = ce();
66
- return (v, t) => (m(), M("span", {
66
+ return (v, t) => (m(), F("span", {
67
67
  class: lt([
68
68
  "inline-flex items-center rounded-[4px] px-4 py-[2px] text-[10px] font-medium leading-[14px] tracking-[0.2px] whitespace-nowrap",
69
69
  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"
@@ -85,9 +85,9 @@ const Ms = {
85
85
  const v = l, t = A, { t: f } = ce(), u = I(() => v.existing.kind === "member" ? "active" : "invited"), $ = I(
86
86
  () => v.existing.restaurantCount === 1 ? f("team.existingMember.restaurantCount.one") : f("team.existingMember.restaurantCount.other", { count: v.existing.restaurantCount })
87
87
  ), K = I(() => v.existing.kind !== "member" || !v.existing.isOwner);
88
- return (R, O) => {
88
+ return (M, O) => {
89
89
  const k = G("FmButton");
90
- return m(), M("div", Cs, [
90
+ return m(), F("div", Cs, [
91
91
  p("div", Ds, E(s(nt)(l.existing.name)), 1),
92
92
  p("div", Ns, [
93
93
  p("div", Es, [
@@ -136,7 +136,7 @@ const Ms = {
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
- }, js = { class: "flex flex-col gap-8" }, qs = { class: "fm-typo-en-title-sm-600" }, Gs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ks = { class: "flex flex-col gap-[6px]" }, Ws = { class: "fm-typo-en-body-sm-600" }, zs = { 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" }, Hs = { class: "grid grid-cols-2 gap-[14px] xs:grid-cols-1" }, Ys = { class: "grid grid-cols-2 gap-[14px] xs:grid-cols-1" }, Js = 400, Zs = /* @__PURE__ */ oe({
139
+ }, js = { class: "flex flex-col gap-8" }, qs = { class: "fm-typo-en-title-sm-600" }, Gs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ks = { class: "flex flex-col gap-[6px]" }, Ws = { class: "fm-typo-en-body-sm-600" }, zs = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Hs = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Xs = { class: "grid grid-cols-2 gap-[14px] xs:grid-cols-1" }, Ys = { class: "grid grid-cols-2 gap-[14px] xs:grid-cols-1" }, Js = 400, Zs = /* @__PURE__ */ oe({
140
140
  __name: "MemberDetailsCard",
141
141
  props: {
142
142
  providers: {
@@ -147,24 +147,24 @@ const Ms = {
147
147
  emits: ["update-existing"],
148
148
  setup(l, { expose: A, emit: v }) {
149
149
  var ne, Q;
150
- const t = l, f = v, { t: u } = ce(), $ = He(), { supportedCountries: K, ready: R } = Ye(), O = I(() => {
150
+ const t = l, f = v, { t: u } = ce(), $ = Xe(), { supportedCountries: K, ready: M } = Ye(), O = I(() => {
151
151
  var o;
152
152
  const D = (o = $.currentCountry.value) == null ? void 0 : o.toUpperCase();
153
153
  return D && rt(D) ? D : void 0;
154
154
  }), k = c(((ne = t.providers[0]) == null ? void 0 : ne.slug) ?? ""), P = I(() => t.providers.find((D) => D.slug === k.value)), _ = I(() => {
155
155
  var D;
156
156
  return ((D = P.value) == null ? void 0 : D.label) ?? "";
157
- }), X = I(
157
+ }), H = I(
158
158
  () => t.providers.map((D) => ({ label: D.label, value: D.slug }))
159
159
  ), C = c(((Q = P.value) == null ? void 0 : Q.inviteMatch) ?? "mobile"), V = c(""), B = c(""), y = c(""), d = c(""), h = I(() => [
160
160
  { label: u("team.memberDetails.phoneNumber"), value: "mobile" },
161
161
  { label: u("team.memberDetails.emailAddress"), value: "email" }
162
162
  ]), b = I(() => {
163
163
  if (C.value === "mobile") {
164
- const D = Re(V.value);
164
+ const D = Me(V.value);
165
165
  return D ? { mobile: D } : null;
166
166
  }
167
- return Xe(B.value) ? { email: B.value.trim().toLowerCase() } : null;
167
+ return He(B.value) ? { email: B.value.trim().toLowerCase() } : null;
168
168
  }), r = c(null);
169
169
  let U, j = 0;
170
170
  ue(
@@ -183,11 +183,11 @@ const Ms = {
183
183
  { deep: !0 }
184
184
  ), Pt(() => clearTimeout(U));
185
185
  function W() {
186
- const D = Te(V.value) ? Re(V.value) ?? "" : "", o = B.value.trim().toLowerCase();
186
+ const D = Te(V.value) ? Me(V.value) ?? "" : "", o = B.value.trim().toLowerCase();
187
187
  return {
188
188
  provider: k.value,
189
189
  match: C.value,
190
- ...C.value === "mobile" ? { mobile: Re(V.value) ?? "", ...o ? { email: o } : {} } : { email: o, ...D ? { mobile: D } : {} },
190
+ ...C.value === "mobile" ? { mobile: Me(V.value) ?? "", ...o ? { email: o } : {} } : { email: o, ...D ? { mobile: D } : {} },
191
191
  displayName: y.value.trim(),
192
192
  ...d.value.trim() ? { employeeId: d.value.trim() } : {}
193
193
  };
@@ -202,8 +202,8 @@ const Ms = {
202
202
  hasExisting: I(() => !!r.value),
203
203
  providerLabel: _
204
204
  }), (D, o) => {
205
- const S = G("FmSelect"), z = G("FmPhoneNumber"), se = G("FmCircularProgress"), H = G("FmTextField");
206
- return m(), M("div", Bs, [
205
+ const S = G("FmSelect"), z = G("FmPhoneNumber"), se = G("FmCircularProgress"), X = G("FmTextField");
206
+ return m(), F("div", Bs, [
207
207
  p("div", js, [
208
208
  p("p", qs, E(s(u)("team.memberDetails.title")), 1),
209
209
  p("p", Gs, E(s(u)("team.memberDetails.ssoNotice", { label: _.value })), 1)
@@ -213,7 +213,7 @@ const Ms = {
213
213
  modelValue: k.value,
214
214
  "onUpdate:modelValue": o[0] || (o[0] = (x) => k.value = x),
215
215
  label: s(u)("team.memberDetails.provider"),
216
- items: X.value
216
+ items: H.value
217
217
  }, null, 8, ["modelValue", "label", "items"])) : T("", !0),
218
218
  p("div", Ks, [
219
219
  p("p", Ws, E(s(u)("team.memberDetails.signInUsing")), 1),
@@ -223,15 +223,15 @@ const Ms = {
223
223
  items: h.value
224
224
  }, null, 8, ["modelValue", "items"])
225
225
  ]),
226
- C.value === "mobile" ? (m(), M(de, { key: 1 }, [
227
- s(R) ? (m(), q(z, {
226
+ C.value === "mobile" ? (m(), F(de, { key: 1 }, [
227
+ s(M) ? (m(), q(z, {
228
228
  key: 0,
229
229
  modelValue: V.value,
230
230
  "onUpdate:modelValue": o[2] || (o[2] = (x) => V.value = x),
231
231
  label: s(u)("team.memberDetails.phoneNumber"),
232
232
  "default-country": O.value,
233
233
  "extra-country-codes": s(K),
234
- rules: [(x) => !!s(Re)(x) || s(u)("team.memberDetails.errors.mobileInvalid")]
234
+ rules: [(x) => !!s(Me)(x) || s(u)("team.memberDetails.errors.mobileInvalid")]
235
235
  }, vt({ _: 2 }, [
236
236
  b.value ? {
237
237
  name: "helper-text",
@@ -241,18 +241,18 @@ const Ms = {
241
241
  key: "0"
242
242
  } : void 0
243
243
  ]), 1032, ["modelValue", "label", "default-country", "extra-country-codes", "rules"])) : (m(), q(se, { key: 1 }))
244
- ], 64)) : (m(), q(H, {
244
+ ], 64)) : (m(), q(X, {
245
245
  key: 2,
246
246
  modelValue: B.value,
247
247
  "onUpdate:modelValue": o[3] || (o[3] = (x) => B.value = x),
248
248
  label: s(u)("team.memberDetails.emailAddress"),
249
249
  placeholder: s(u)("team.memberDetails.emailPlaceholder"),
250
- rules: [(x) => s(Xe)(x) || s(u)("team.memberDetails.errors.emailInvalid")]
250
+ rules: [(x) => s(He)(x) || s(u)("team.memberDetails.errors.emailInvalid")]
251
251
  }, vt({ _: 2 }, [
252
252
  b.value ? {
253
253
  name: "helper-text",
254
254
  fn: te(() => [
255
- p("span", Xs, E(s(u)("team.memberDetails.signInHint.email", { label: _.value })), 1)
255
+ p("span", Hs, E(s(u)("team.memberDetails.signInHint.email", { label: _.value })), 1)
256
256
  ]),
257
257
  key: "0"
258
258
  } : void 0
@@ -263,8 +263,8 @@ const Ms = {
263
263
  match: C.value,
264
264
  onUpdate: o[4] || (o[4] = (x) => f("update-existing", r.value))
265
265
  }, null, 8, ["existing", "match"])) : T("", !0),
266
- p("div", Hs, [
267
- i(H, {
266
+ p("div", Xs, [
267
+ i(X, {
268
268
  modelValue: y.value,
269
269
  "onUpdate:modelValue": o[5] || (o[5] = (x) => y.value = x),
270
270
  label: s(u)("team.memberDetails.name"),
@@ -274,7 +274,7 @@ const Ms = {
274
274
  (x) => x.trim().length <= s(Nt) || s(u)("team.memberDetails.errors.nameTooLong")
275
275
  ]
276
276
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
277
- i(H, {
277
+ i(X, {
278
278
  modelValue: d.value,
279
279
  "onUpdate:modelValue": o[6] || (o[6] = (x) => d.value = x),
280
280
  label: s(u)("team.memberDetails.employeeId"),
@@ -286,7 +286,7 @@ const Ms = {
286
286
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
287
287
  ]),
288
288
  p("div", Ys, [
289
- C.value === "mobile" ? (m(), q(H, {
289
+ C.value === "mobile" ? (m(), q(X, {
290
290
  key: 0,
291
291
  modelValue: B.value,
292
292
  "onUpdate:modelValue": o[7] || (o[7] = (x) => B.value = x),
@@ -294,10 +294,10 @@ const Ms = {
294
294
  "label-mark": "optional",
295
295
  placeholder: s(u)("team.memberDetails.emailPlaceholder"),
296
296
  rules: [
297
- (x) => !x.trim() || s(Xe)(x) || s(u)("team.memberDetails.errors.emailInvalid")
297
+ (x) => !x.trim() || s(He)(x) || s(u)("team.memberDetails.errors.emailInvalid")
298
298
  ]
299
- }, null, 8, ["modelValue", "label", "placeholder", "rules"])) : (m(), M(de, { key: 1 }, [
300
- s(R) ? (m(), q(z, {
299
+ }, null, 8, ["modelValue", "label", "placeholder", "rules"])) : (m(), F(de, { key: 1 }, [
300
+ s(M) ? (m(), q(z, {
301
301
  key: 0,
302
302
  modelValue: V.value,
303
303
  "onUpdate:modelValue": o[8] || (o[8] = (x) => V.value = x),
@@ -306,7 +306,7 @@ const Ms = {
306
306
  "default-country": O.value,
307
307
  "extra-country-codes": s(K),
308
308
  rules: [
309
- (x) => !s(Te)(x) || !!s(Re)(x) || s(u)("team.memberDetails.errors.mobileInvalid")
309
+ (x) => !s(Te)(x) || !!s(Me)(x) || s(u)("team.memberDetails.errors.mobileInvalid")
310
310
  ]
311
311
  }, null, 8, ["modelValue", "label", "default-country", "extra-country-codes", "rules"])) : T("", !0)
312
312
  ], 64))
@@ -333,7 +333,7 @@ const Ms = {
333
333
  },
334
334
  setup(l) {
335
335
  const A = l, v = I(() => nt(A.name));
336
- return (t, f) => (m(), M("div", Qs, [
336
+ return (t, f) => (m(), F("div", Qs, [
337
337
  p("div", ea, [
338
338
  p("div", ta, E(v.value), 1),
339
339
  p("div", sa, [
@@ -341,8 +341,8 @@ const Ms = {
341
341
  p("p", la, E(l.name), 1),
342
342
  i(it, { status: l.status }, null, 8, ["status"])
343
343
  ]),
344
- l.email ? (m(), M("p", oa, E(l.email), 1)) : T("", !0),
345
- l.phoneNumber ? (m(), M("p", ra, E(l.phoneNumber), 1)) : T("", !0)
344
+ l.email ? (m(), F("p", oa, E(l.email), 1)) : T("", !0),
345
+ l.phoneNumber ? (m(), F("p", ra, E(l.phoneNumber), 1)) : T("", !0)
346
346
  ])
347
347
  ]),
348
348
  ts(t.$slots, "default")
@@ -385,11 +385,11 @@ const Ms = {
385
385
  function K(d) {
386
386
  u.value = d, t("update:modelValue", It(d));
387
387
  }
388
- function R(d, h) {
388
+ function M(d, h) {
389
389
  const b = u.value.map((r, U) => {
390
390
  if (U !== d) return r;
391
391
  const j = { ...r, restaurantIds: h };
392
- return { ...j, roleId: Rs(v.roles, j, v.isRoleUsable) };
392
+ return { ...j, roleId: Ms(v.roles, j, v.isRoleUsable) };
393
393
  });
394
394
  K(b);
395
395
  }
@@ -403,10 +403,10 @@ const Ms = {
403
403
  var b;
404
404
  h || u.value.length < 2 || (b = u.value[d]) != null && b.restaurantIds.length || K(u.value.filter((r, U) => U !== d));
405
405
  }
406
- const _ = I(() => ks(v.restaurants, u.value)), X = c(), C = c(!1), V = c(null);
406
+ const _ = I(() => ks(v.restaurants, u.value)), H = c(), C = c(!1), V = c(null);
407
407
  async function B(d) {
408
408
  var h;
409
- V.value = d, C.value = !0, await Mt(), (h = X.value) == null || h.trigger();
409
+ V.value = d, C.value = !0, await Ft(), (h = H.value) == null || h.trigger();
410
410
  }
411
411
  function y(d) {
412
412
  const h = V.value;
@@ -420,12 +420,12 @@ const Ms = {
420
420
  return (d, h) => {
421
421
  var r;
422
422
  const b = G("FmSelect");
423
- return m(), M("div", ia, [
423
+ return m(), F("div", ia, [
424
424
  p("div", ua, [
425
425
  p("p", ma, E(s(f)("team.posAccess.restaurants")), 1),
426
426
  p("p", da, E(s(f)("team.posAccess.posRole")), 1)
427
427
  ]),
428
- (m(!0), M(de, null, Vt(u.value, (U, j) => (m(), M("div", {
428
+ (m(!0), F(de, null, Vt(u.value, (U, j) => (m(), F("div", {
429
429
  key: j,
430
430
  class: "grid grid-cols-2 items-center gap-x-[14px]",
431
431
  "data-testid": "pos-assignment-row"
@@ -439,7 +439,7 @@ const Ms = {
439
439
  "hide-chips": "",
440
440
  "search-debounce": 300,
441
441
  placeholder: s(Ss)(l.restaurants, U) || s(f)("team.posAccess.selectRestaurants"),
442
- "onUpdate:modelValue": (W) => R(j, W),
442
+ "onUpdate:modelValue": (W) => M(j, W),
443
443
  onDropdownChanged: (W) => P(j, W)
444
444
  }, null, 8, ["class", "model-value", "items", "placeholder", "onUpdate:modelValue", "onDropdownChanged"]),
445
445
  i(b, {
@@ -466,12 +466,12 @@ const Ms = {
466
466
  class: "self-start fm-typo-en-body-md-600 text-fm-color-primary disabled:cursor-not-allowed disabled:text-fm-color-typo-disabled",
467
467
  disabled: !_.value,
468
468
  "data-testid": "add-pos-row",
469
- onClick: Rt(k, ["stop"])
469
+ onClick: Mt(k, ["stop"])
470
470
  }, " + " + E(s(f)("team.posAccess.addRestaurant")), 9, pa),
471
471
  C.value ? (m(), q(Ps, {
472
472
  key: 0,
473
473
  ref_key: "roleFormRef",
474
- ref: X,
474
+ ref: H,
475
475
  "show-back": "",
476
476
  "restaurant-ids": V.value === null ? [] : ((r = u.value[V.value]) == null ? void 0 : r.restaurantIds) ?? [],
477
477
  onCreated: y
@@ -519,7 +519,7 @@ const Ms = {
519
519
  },
520
520
  emits: ["update:model-value"],
521
521
  setup(l, { emit: A }) {
522
- const v = l, t = A, { t: f } = ce(), u = ot(), $ = Dt(u), K = c(!1), R = c([]), O = I(() => {
522
+ const v = l, t = A, { t: f } = ce(), u = ot(), $ = Dt(u), K = c(!1), M = c([]), O = I(() => {
523
523
  var y;
524
524
  return us(((y = v.modelValue) == null ? void 0 : y.roles) ?? []);
525
525
  });
@@ -539,7 +539,7 @@ const Ms = {
539
539
  const h = Ve(v.modelValue);
540
540
  h[y] = d, t("update:model-value", h);
541
541
  }
542
- const X = c(!1), C = I(() => O.value.length > 0);
542
+ const H = c(!1), C = I(() => O.value.length > 0);
543
543
  async function V() {
544
544
  if (C.value)
545
545
  try {
@@ -548,9 +548,9 @@ const Ms = {
548
548
  restaurantIds: O.value,
549
549
  excludePosUserId: v.posUserId
550
550
  }),
551
- { isLoading: X }
551
+ { isLoading: H }
552
552
  );
553
- K.value = !1, R.value = y.split(""), _("passcode", y);
553
+ K.value = !1, M.value = y.split(""), _("passcode", y);
554
554
  } catch {
555
555
  }
556
556
  }
@@ -560,8 +560,8 @@ const Ms = {
560
560
  return (y = v.modelValue) == null ? void 0 : y.passcode;
561
561
  },
562
562
  (y) => {
563
- const d = R.value.join("");
564
- y !== d && (y && y.length === at ? (R.value = y.split(""), K.value = !0) : (R.value = [], K.value = !1));
563
+ const d = M.value.join("");
564
+ y !== d && (y && y.length === at ? (M.value = y.split(""), K.value = !0) : (M.value = [], K.value = !1));
565
565
  },
566
566
  { immediate: !0 }
567
567
  );
@@ -575,7 +575,7 @@ const Ms = {
575
575
  });
576
576
  return (y, d) => {
577
577
  const h = G("FmSwitch"), b = G("FmFormGroup");
578
- return m(), M("div", ba, [
578
+ return m(), F("div", ba, [
579
579
  p("div", ya, [
580
580
  p("div", ga, [
581
581
  p("p", ha, E(s(f)("team.posAccess.title")), 1),
@@ -587,7 +587,7 @@ const Ms = {
587
587
  "onUpdate:modelValue": P
588
588
  }, null, 8, ["model-value"])
589
589
  ]),
590
- l.modelValue ? (m(), M("div", _a, [
590
+ l.modelValue ? (m(), F("div", _a, [
591
591
  i(b, {
592
592
  modelValue: B.value,
593
593
  "onUpdate:modelValue": d[1] || (d[1] = (r) => B.value = r),
@@ -611,16 +611,16 @@ const Ms = {
611
611
  p("p", Ia, E(s(f)("team.posAccess.passcode")), 1),
612
612
  p("div", wa, [
613
613
  i(b, {
614
- modelValue: R.value,
615
- "onUpdate:modelValue": d[5] || (d[5] = (r) => R.value = r),
614
+ modelValue: M.value,
615
+ "onUpdate:modelValue": d[5] || (d[5] = (r) => M.value = r),
616
616
  rules: [
617
617
  (r) => (r == null ? void 0 : r.filter((U) => !!U).length) !== at ? s(f)("team.memberForm.masterUser.passcodeRequired") : !0
618
618
  ]
619
619
  }, {
620
620
  default: te(() => [
621
621
  i(ms, {
622
- modelValue: R.value,
623
- "onUpdate:modelValue": d[2] || (d[2] = (r) => R.value = r),
622
+ modelValue: M.value,
623
+ "onUpdate:modelValue": d[2] || (d[2] = (r) => M.value = r),
624
624
  masked: K.value,
625
625
  "onUpdate:masked": d[3] || (d[3] = (r) => K.value = r),
626
626
  length: at,
@@ -633,7 +633,7 @@ const Ms = {
633
633
  i(ds, {
634
634
  label: s(f)("team.memberForm.masterUser.passcodeGenerate"),
635
635
  hint: s(f)("team.memberForm.masterUser.passcodeSelectOutletFirst"),
636
- loading: X.value,
636
+ loading: H.value,
637
637
  disabled: !C.value,
638
638
  onClick: V
639
639
  }, null, 8, ["label", "hint", "loading", "disabled"])
@@ -647,7 +647,7 @@ const Ms = {
647
647
  key: 0,
648
648
  class: "flex flex-col gap-16 rounded-[16px] border border-fm-color-neutral-gray-200 p-16",
649
649
  "data-testid": "where-they-work-card"
650
- }, Pa = { class: "flex flex-col gap-8" }, Ra = { class: "fm-typo-en-title-sm-600" }, Ma = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fa = {
650
+ }, Pa = { class: "flex flex-col gap-8" }, Ma = { class: "fm-typo-en-title-sm-600" }, Fa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ra = {
651
651
  key: 1,
652
652
  class: "flex items-center justify-center py-64"
653
653
  }, $a = {
@@ -672,30 +672,30 @@ const Ms = {
672
672
  },
673
673
  setup(l, { expose: A }) {
674
674
  var qe, ge, ee;
675
- const v = l, { t } = ce(), f = Ft(), { breakpoints: u } = $t(), $ = At(), K = I(
675
+ const v = l, { t } = ce(), f = Rt(), { breakpoints: u } = $t(), $ = At(), K = I(
676
676
  () => $.permissionSets.value.map((n) => ({
677
677
  label: n.name,
678
678
  value: n.id
679
679
  }))
680
- ), R = c(((qe = v.initialValue) == null ? void 0 : qe.permissionSetIds) || []), O = I(
681
- () => tt(R.value, $.permissionSets.value)
680
+ ), M = c(((qe = v.initialValue) == null ? void 0 : qe.permissionSetIds) || []), O = I(
681
+ () => tt(M.value, $.permissionSets.value)
682
682
  ), k = c((ge = v.initialValue) == null ? void 0 : ge.posUser), P = c(
683
683
  xt(
684
684
  st(O.value),
685
685
  ((ee = v.initialValue) == null ? void 0 : ee.permissions) || []
686
686
  )
687
- ), { customReportPermissions: _, isLoaded: X } = Ot(), C = new Set(
687
+ ), { customReportPermissions: _, isLoaded: H } = Ot(), C = new Set(
688
688
  _t.filter((n) => n.subject.startsWith(_s)).map((n) => n.subject)
689
689
  ), V = I(() => {
690
690
  const n = new Set(C);
691
- for (const F of _.value) n.add(F.subject);
691
+ for (const R of _.value) n.add(R.subject);
692
692
  return n;
693
693
  }), B = I(() => {
694
694
  const n = /* @__PURE__ */ new Set();
695
- for (const F of _t)
696
- F.category === ft.reports && n.add(F.subject);
697
- for (const F of _.value)
698
- F.category === ft.reports && n.add(F.subject);
695
+ for (const R of _t)
696
+ R.category === ft.reports && n.add(R.subject);
697
+ for (const R of _.value)
698
+ R.category === ft.reports && n.add(R.subject);
699
699
  return n;
700
700
  }), y = I(() => {
701
701
  var n;
@@ -704,32 +704,32 @@ const Ms = {
704
704
  () => Ut(P.value, { isOwner: y.value })
705
705
  ), h = Lt(), b = Tt().roles, r = I(() => {
706
706
  const n = d.value.restaurantIds;
707
- return n === null ? h.restaurants.value : h.restaurants.value.filter((F) => n.includes(F._id));
707
+ return n === null ? h.restaurants.value : h.restaurants.value.filter((R) => n.includes(R._id));
708
708
  }), U = c(!1);
709
709
  function j(n) {
710
- U.value = n, !n && (R.value = [], P.value = vs(P.value));
710
+ U.value = n, !n && (M.value = [], P.value = vs(P.value));
711
711
  }
712
712
  const W = c({ permissionSetIds: [], userPermissions: [], posUser: void 0 });
713
713
  function re(n) {
714
- R.value = [...(n == null ? void 0 : n.permissionSetIds) ?? []], P.value = xt(
714
+ M.value = [...(n == null ? void 0 : n.permissionSetIds) ?? []], P.value = xt(
715
715
  st(
716
716
  tt(
717
- R.value,
717
+ M.value,
718
718
  $.permissionSets.value
719
719
  )
720
720
  ),
721
721
  (n == null ? void 0 : n.permissions) || []
722
- ), k.value = n != null && n.posUser ? H(Ve(n.posUser), P.value) : void 0, x.value = !!k.value, U.value = fs(P.value, R.value), W.value = {
723
- permissionSetIds: [...R.value],
722
+ ), k.value = n != null && n.posUser ? X(Ve(n.posUser), P.value) : void 0, x.value = !!k.value, U.value = fs(P.value, M.value), W.value = {
723
+ permissionSetIds: [...M.value],
724
724
  userPermissions: Ve(P.value),
725
725
  posUser: k.value ? Ve(k.value) : void 0
726
726
  };
727
727
  }
728
728
  function ne() {
729
- return !Le.isEqual(R.value, W.value.permissionSetIds) || !Le.isEqual(P.value, W.value.userPermissions) || !Le.isEqual(k.value, W.value.posUser);
729
+ return !Le.isEqual(M.value, W.value.permissionSetIds) || !Le.isEqual(P.value, W.value.userPermissions) || !Le.isEqual(k.value, W.value.posUser);
730
730
  }
731
731
  function Q(n) {
732
- k.value = H(k.value, n);
732
+ k.value = X(k.value, n);
733
733
  }
734
734
  function D(n) {
735
735
  return st(
@@ -740,14 +740,14 @@ const Ms = {
740
740
  P.value = D(n);
741
741
  }
742
742
  function S(n) {
743
- const F = [...n ?? []];
744
- if (Le.isEqual(F, R.value)) return;
743
+ const R = [...n ?? []];
744
+ if (Le.isEqual(R, M.value)) return;
745
745
  const J = !Le.isEqual(
746
746
  P.value,
747
- D(R.value)
747
+ D(M.value)
748
748
  );
749
- if (R.value = F, !J) {
750
- o(F);
749
+ if (M.value = R, !J) {
750
+ o(R);
751
751
  return;
752
752
  }
753
753
  f.open({
@@ -763,26 +763,26 @@ const Ms = {
763
763
  close: !0
764
764
  }
765
765
  }).onPrimary(() => {
766
- o(F), f.close();
766
+ o(R), f.close();
767
767
  });
768
768
  }
769
769
  function z() {
770
- var n, F;
770
+ var n, R;
771
771
  return bs({
772
772
  userPermissions: P.value,
773
773
  inheritedPermissions: O.value,
774
- permissionSetIds: R.value,
774
+ permissionSetIds: M.value,
775
775
  posUser: k.value,
776
- reportSubjects: X.value ? V.value : C,
776
+ reportSubjects: H.value ? V.value : C,
777
777
  defaultReportSubjects: B.value,
778
778
  savedPosUser: (n = v.initialValue) == null ? void 0 : n.posUser,
779
- fallbackName: ((F = v.initialValue) == null ? void 0 : F.name) || v.fallbackName
779
+ fallbackName: ((R = v.initialValue) == null ? void 0 : R.name) || v.fallbackName
780
780
  });
781
781
  }
782
782
  const se = c();
783
- function H(n, F) {
783
+ function X(n, R) {
784
784
  if (!n) return n;
785
- const J = Ut(F, { isOwner: y.value }), { roleIds: pe, restaurantIds: he } = J;
785
+ const J = Ut(R, { isOwner: y.value }), { roleIds: pe, restaurantIds: he } = J;
786
786
  if (pe === null && he === null) return n;
787
787
  const ve = Ve(n);
788
788
  return ve.roles = ve.roles.filter(
@@ -796,16 +796,16 @@ const Ms = {
796
796
  return ue(
797
797
  () => !!k.value,
798
798
  async (n) => {
799
- n && !x.value && N.value && (await Mt(), se.value && se.value.$el.scrollIntoView({ behavior: "smooth", block: "start" })), x.value = n;
799
+ n && !x.value && N.value && (await Ft(), se.value && se.value.$el.scrollIntoView({ behavior: "smooth", block: "start" })), x.value = n;
800
800
  }
801
801
  ), ue(
802
802
  () => v.initialValue,
803
- (n, F) => {
804
- if (!F || !n || F.id !== n.id) {
803
+ (n, R) => {
804
+ if (!R || !n || R.id !== n.id) {
805
805
  N.value = !1, re(n);
806
806
  return;
807
807
  }
808
- n.posUser !== void 0 && !N.value && (k.value = n.posUser ? H(Ve(n.posUser), P.value) : void 0, W.value = {
808
+ n.posUser !== void 0 && !N.value && (k.value = n.posUser ? X(Ve(n.posUser), P.value) : void 0, W.value = {
809
809
  ...W.value,
810
810
  posUser: k.value ? Ve(k.value) : void 0
811
811
  });
@@ -814,30 +814,30 @@ const Ms = {
814
814
  ), ue(
815
815
  P,
816
816
  (n) => {
817
- k.value = H(k.value, n);
817
+ k.value = X(k.value, n);
818
818
  },
819
819
  { deep: !0 }
820
820
  ), A({
821
821
  readGrantData: z,
822
822
  isModified: ne
823
- }), (n, F) => {
824
- var ve, Z, xe, Me, Fe, Ge;
823
+ }), (n, R) => {
824
+ var ve, Z, xe, Fe, Re, Ge;
825
825
  const J = G("FmCircularProgress"), pe = G("FmSwitch"), he = G("FmSelect");
826
- return m(), M("div", Sa, [
827
- (ve = l.initialValue) != null && ve.isOwner ? T("", !0) : (m(), M("section", Va, [
826
+ return m(), F("div", Sa, [
827
+ (ve = l.initialValue) != null && ve.isOwner ? T("", !0) : (m(), F("section", Va, [
828
828
  p("div", Pa, [
829
- p("p", Ra, E(s(t)("team.whereTheyWork.title")), 1),
830
- p("p", Ma, E(s(t)("team.whereTheyWork.subtitle")), 1)
829
+ p("p", Ma, E(s(t)("team.whereTheyWork.title")), 1),
830
+ p("p", Fa, E(s(t)("team.whereTheyWork.subtitle")), 1)
831
831
  ]),
832
832
  i(ht, {
833
833
  modelValue: P.value,
834
- "onUpdate:modelValue": F[0] || (F[0] = (_e) => P.value = _e),
834
+ "onUpdate:modelValue": R[0] || (R[0] = (_e) => P.value = _e),
835
835
  part: "workplace",
836
836
  "inherit-permissions": O.value,
837
837
  onPermissionChanged: Q
838
838
  }, null, 8, ["modelValue", "inherit-permissions"])
839
839
  ])),
840
- l.loading ? (m(), M("div", Fa, [
840
+ l.loading ? (m(), F("div", Ra, [
841
841
  i(J, { size: "xl" })
842
842
  ])) : (m(), q(ka, {
843
843
  key: 2,
@@ -845,14 +845,14 @@ const Ms = {
845
845
  ref: se,
846
846
  "model-value": k.value,
847
847
  "fallback-name": ((Z = l.initialValue) == null ? void 0 : Z.name) || l.fallbackName,
848
- "fallback-passcode": (Me = (xe = l.initialValue) == null ? void 0 : xe.posUser) == null ? void 0 : Me.passcode,
848
+ "fallback-passcode": (Fe = (xe = l.initialValue) == null ? void 0 : xe.posUser) == null ? void 0 : Fe.passcode,
849
849
  roles: s(b),
850
850
  "usable-role-ids": d.value.roleIds,
851
851
  restaurants: r.value,
852
- "pos-user-id": (Fe = l.initialValue) == null ? void 0 : Fe.posUserId,
852
+ "pos-user-id": (Re = l.initialValue) == null ? void 0 : Re.posUserId,
853
853
  "onUpdate:modelValue": je
854
854
  }, 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(), M("section", $a, [
855
+ (Ge = l.initialValue) != null && Ge.isOwner ? T("", !0) : (m(), F("section", $a, [
856
856
  p("div", Ca, [
857
857
  p("div", Da, [
858
858
  p("p", Na, E(s(t)("team.portalAccess.title")), 1),
@@ -864,9 +864,9 @@ const Ms = {
864
864
  "onUpdate:modelValue": j
865
865
  }, null, 8, ["model-value"])
866
866
  ]),
867
- U.value ? (m(), M(de, { key: 0 }, [
867
+ U.value ? (m(), F(de, { key: 0 }, [
868
868
  i(he, {
869
- "model-value": R.value,
869
+ "model-value": M.value,
870
870
  multiselect: "",
871
871
  searchable: "",
872
872
  "search-debounce": 300,
@@ -877,7 +877,7 @@ const Ms = {
877
877
  }, null, 8, ["model-value", "label", "items", "placeholder"]),
878
878
  i(ht, {
879
879
  modelValue: P.value,
880
- "onUpdate:modelValue": F[1] || (F[1] = (_e) => P.value = _e),
880
+ "onUpdate:modelValue": R[1] || (R[1] = (_e) => P.value = _e),
881
881
  part: "portal",
882
882
  "inherit-permissions": O.value,
883
883
  onPermissionChanged: Q
@@ -909,11 +909,11 @@ const Ms = {
909
909
  __name: "PortalUserSearcher",
910
910
  emits: ["invite"],
911
911
  setup(l, { emit: A }) {
912
- const v = A, { t } = ce(), f = ot(), u = He(), { supportedCountries: $, ready: K } = Ye(), R = I(() => {
912
+ const v = A, { t } = ce(), f = ot(), u = Xe(), { supportedCountries: $, ready: K } = Ye(), M = I(() => {
913
913
  var r;
914
914
  const b = (r = u.currentCountry.value) == null ? void 0 : r.toUpperCase();
915
915
  return b && rt(b) ? b : void 0;
916
- }), O = c("phone"), k = c(""), P = c(""), _ = c(), X = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, C = I(() => X.test(P.value.trim()));
916
+ }), O = c("phone"), k = c(""), P = c(""), _ = c(), H = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, C = I(() => H.test(P.value.trim()));
917
917
  async function V() {
918
918
  const b = O.value === "phone" ? k.value.replace(/ /g, "") : P.value.trim();
919
919
  if (!b) {
@@ -966,8 +966,8 @@ const Ms = {
966
966
  return (b, r) => {
967
967
  var D, o, S;
968
968
  const U = G("FmRadio"), j = G("FmPhoneNumber"), W = G("FmCircularProgress"), re = G("FmTextField"), ne = G("FmRadioGroup"), Q = G("FmButton");
969
- return m(), M("div", Oa, [
970
- y.value ? T("", !0) : (m(), M("div", La, [
969
+ return m(), F("div", Oa, [
970
+ y.value ? T("", !0) : (m(), F("div", La, [
971
971
  i(ne, {
972
972
  modelValue: O.value,
973
973
  "onUpdate:modelValue": r[2] || (r[2] = (z) => O.value = z)
@@ -981,7 +981,7 @@ const Ms = {
981
981
  key: 0,
982
982
  modelValue: k.value,
983
983
  "onUpdate:modelValue": r[0] || (r[0] = (z) => k.value = z),
984
- "default-country": R.value,
984
+ "default-country": M.value,
985
985
  "extra-country-codes": s($),
986
986
  class: "ml-8"
987
987
  }, null, 8, ["modelValue", "default-country", "extra-country-codes"])) : O.value === "phone" ? (m(), q(W, {
@@ -1011,7 +1011,7 @@ const Ms = {
1011
1011
  onClick: V
1012
1012
  }, null, 8, ["label"])
1013
1013
  ])),
1014
- _.value ? (m(), M("div", {
1014
+ _.value ? (m(), F("div", {
1015
1015
  key: 1,
1016
1016
  class: "profile-menu--profile cursor-pointer hover:bg-fm-color-opacity-sm",
1017
1017
  onClick: r[3] || (r[3] = (z) => d(_.value))
@@ -1023,7 +1023,7 @@ const Ms = {
1023
1023
  p("p", Ga, E((S = _.value) == null ? void 0 : S.phoneNumber), 1)
1024
1024
  ])
1025
1025
  ])) : T("", !0),
1026
- y.value ? (m(), M("div", Ka, [
1026
+ y.value ? (m(), F("div", Ka, [
1027
1027
  i(Q, {
1028
1028
  label: s(t)("team.memberForm.searchUser.changeUser"),
1029
1029
  variant: "secondary",
@@ -1033,7 +1033,7 @@ const Ms = {
1033
1033
  ]);
1034
1034
  };
1035
1035
  }
1036
- }), za = /* @__PURE__ */ Ct(Wa, [["__scopeId", "data-v-827dfd60"]]), Xa = { class: "flex flex-col gap-24" }, Ha = {
1036
+ }), za = /* @__PURE__ */ Ct(Wa, [["__scopeId", "data-v-827dfd60"]]), Ha = { class: "flex flex-col gap-24" }, Xa = {
1037
1037
  key: 1,
1038
1038
  class: "flex w-full"
1039
1039
  }, Ya = {
@@ -1065,31 +1065,31 @@ const Ms = {
1065
1065
  },
1066
1066
  emits: ["update-existing"],
1067
1067
  setup(l, { expose: A, emit: v }) {
1068
- const t = l, f = v, u = I(() => !t.initialValue && t.providers.length > 0), { t: $ } = ce(), K = He(), { supportedCountries: R, ready: O } = Ye(), k = I(() => {
1068
+ const t = l, f = v, u = I(() => !t.initialValue && t.providers.length > 0), { t: $ } = ce(), K = Xe(), { supportedCountries: M, ready: O } = Ye(), k = I(() => {
1069
1069
  var S;
1070
1070
  const o = (S = K.currentCountry.value) == null ? void 0 : S.toUpperCase();
1071
1071
  return o && rt(o) ? o : void 0;
1072
1072
  }), P = I(() => {
1073
1073
  var o;
1074
1074
  return ((o = t.initialValue) == null ? void 0 : o.status) === "invited";
1075
- }), _ = I(() => !!t.initialValue && !t.initialValue.isOwner), X = c(""), C = c(""), V = c("");
1075
+ }), _ = I(() => !!t.initialValue && !t.initialValue.isOwner), H = c(""), C = c(""), V = c("");
1076
1076
  function B(o) {
1077
- X.value = (o == null ? void 0 : o.displayName) ?? (o == null ? void 0 : o.name) ?? "", C.value = (o == null ? void 0 : o.employeeId) ?? "", V.value = (o == null ? void 0 : o.contact) ?? "";
1077
+ H.value = (o == null ? void 0 : o.displayName) ?? (o == null ? void 0 : o.name) ?? "", C.value = (o == null ? void 0 : o.employeeId) ?? "", V.value = (o == null ? void 0 : o.contact) ?? "";
1078
1078
  }
1079
1079
  B(t.initialValue);
1080
1080
  function y() {
1081
1081
  var S;
1082
1082
  if (!_.value) return null;
1083
- const o = ((S = t.initialValue) == null ? void 0 : S.match) === "email" ? Te(V.value) ? Re(V.value) ?? "" : "" : V.value.trim().toLowerCase();
1083
+ const o = ((S = t.initialValue) == null ? void 0 : S.match) === "email" ? Te(V.value) ? Me(V.value) ?? "" : "" : V.value.trim().toLowerCase();
1084
1084
  return {
1085
- displayName: X.value.trim(),
1085
+ displayName: H.value.trim(),
1086
1086
  employeeId: C.value.trim(),
1087
1087
  contact: o
1088
1088
  };
1089
1089
  }
1090
1090
  function d() {
1091
1091
  const o = t.initialValue;
1092
- return !o || !_.value ? !1 : C.value.trim() !== (o.employeeId ?? "") || P.value && (X.value.trim() !== (o.displayName ?? o.name) || V.value.trim() !== (o.contact ?? ""));
1092
+ return !o || !_.value ? !1 : C.value.trim() !== (o.employeeId ?? "") || P.value && (H.value.trim() !== (o.displayName ?? o.name) || V.value.trim() !== (o.contact ?? ""));
1093
1093
  }
1094
1094
  const h = c(), b = c(), r = c();
1095
1095
  function U() {
@@ -1100,10 +1100,10 @@ const Ms = {
1100
1100
  h.value = o;
1101
1101
  }
1102
1102
  function W(o) {
1103
- return X.value === (o.displayName ?? o.name) && C.value === (o.employeeId ?? "") && V.value === (o.contact ?? "");
1103
+ return H.value === (o.displayName ?? o.name) && C.value === (o.employeeId ?? "") && V.value === (o.contact ?? "");
1104
1104
  }
1105
1105
  function re() {
1106
- var S, z, se, H, x;
1106
+ var S, z, se, X, x;
1107
1107
  const o = ((S = b.value) == null ? void 0 : S.readGrantData()) ?? ys;
1108
1108
  return {
1109
1109
  email: ((z = h.value) == null ? void 0 : z.email) ?? void 0,
@@ -1111,7 +1111,7 @@ const Ms = {
1111
1111
  customPermissions: o.customPermissions,
1112
1112
  permissions: o.permissions,
1113
1113
  permissionSetIds: o.permissionSetIds,
1114
- name: ((H = h.value) == null ? void 0 : H.displayName) || ((x = t.initialValue) == null ? void 0 : x.name) || "",
1114
+ name: ((X = h.value) == null ? void 0 : X.displayName) || ((x = t.initialValue) == null ? void 0 : x.name) || "",
1115
1115
  posUser: o.posUser
1116
1116
  };
1117
1117
  }
@@ -1144,8 +1144,8 @@ const Ms = {
1144
1144
  return ((o = r.value) == null ? void 0 : o.providerLabel) ?? "";
1145
1145
  })
1146
1146
  }), (o, S) => {
1147
- const z = G("FmTextField"), se = G("FmPhoneNumber"), H = G("FmForm");
1148
- return m(), q(H, {
1147
+ const z = G("FmTextField"), se = G("FmPhoneNumber"), X = G("FmForm");
1148
+ return m(), q(X, {
1149
1149
  ref_key: "formRef",
1150
1150
  ref: Q,
1151
1151
  class: "mx-4"
@@ -1153,7 +1153,7 @@ const Ms = {
1153
1153
  default: te(() => {
1154
1154
  var x;
1155
1155
  return [
1156
- p("div", Xa, [
1156
+ p("div", Ha, [
1157
1157
  u.value ? (m(), q(Zs, {
1158
1158
  key: 0,
1159
1159
  ref_key: "detailsRef",
@@ -1168,11 +1168,11 @@ const Ms = {
1168
1168
  "phone-number": l.initialValue.phoneNumber
1169
1169
  }, {
1170
1170
  default: te(() => [
1171
- _.value ? (m(), M("div", Ya, [
1171
+ _.value ? (m(), F("div", Ya, [
1172
1172
  P.value ? (m(), q(z, {
1173
1173
  key: 0,
1174
- modelValue: X.value,
1175
- "onUpdate:modelValue": S[2] || (S[2] = (N) => X.value = N),
1174
+ modelValue: H.value,
1175
+ "onUpdate:modelValue": S[2] || (S[2] = (N) => H.value = N),
1176
1176
  label: s($)("team.memberDetails.name"),
1177
1177
  placeholder: s($)("team.memberDetails.namePlaceholder"),
1178
1178
  rules: [
@@ -1190,7 +1190,7 @@ const Ms = {
1190
1190
  (N) => N.trim().length <= s(Et) || s($)("team.memberDetails.errors.employeeIdTooLong")
1191
1191
  ]
1192
1192
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
1193
- P.value ? (m(), M(de, { key: 1 }, [
1193
+ P.value ? (m(), F(de, { key: 1 }, [
1194
1194
  l.initialValue.match === "mobile" ? (m(), q(z, {
1195
1195
  key: 0,
1196
1196
  modelValue: V.value,
@@ -1199,7 +1199,7 @@ const Ms = {
1199
1199
  "label-mark": "optional",
1200
1200
  placeholder: s($)("team.memberDetails.emailPlaceholder"),
1201
1201
  rules: [
1202
- (N) => !N.trim() || s(Xe)(N) || s($)("team.memberDetails.errors.emailInvalid")
1202
+ (N) => !N.trim() || s(He)(N) || s($)("team.memberDetails.errors.emailInvalid")
1203
1203
  ]
1204
1204
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])) : s(O) ? (m(), q(se, {
1205
1205
  key: 1,
@@ -1208,16 +1208,16 @@ const Ms = {
1208
1208
  label: s($)("team.memberDetails.phoneNumber"),
1209
1209
  "label-mark": "optional",
1210
1210
  "default-country": k.value,
1211
- "extra-country-codes": s(R),
1211
+ "extra-country-codes": s(M),
1212
1212
  rules: [
1213
- (N) => !s(Te)(N) || !!s(Re)(N) || s($)("team.memberDetails.errors.mobileInvalid")
1213
+ (N) => !s(Te)(N) || !!s(Me)(N) || s($)("team.memberDetails.errors.mobileInvalid")
1214
1214
  ]
1215
1215
  }, null, 8, ["modelValue", "label", "default-country", "extra-country-codes", "rules"])) : T("", !0)
1216
1216
  ], 64)) : T("", !0)
1217
1217
  ])) : T("", !0)
1218
1218
  ]),
1219
1219
  _: 1
1220
- }, 8, ["name", "status", "email", "phone-number"])) : (m(), M("div", Ha, [
1220
+ }, 8, ["name", "status", "email", "phone-number"])) : (m(), F("div", Xa, [
1221
1221
  i(za, {
1222
1222
  onInvite: S[1] || (S[1] = (N) => j(N))
1223
1223
  })
@@ -1263,7 +1263,7 @@ const Ms = {
1263
1263
  var ae = /* @__PURE__ */ function(l) {
1264
1264
  return l[l.ADD = 0] = "ADD", l[l.UPDATE = 1] = "UPDATE", l[l.CLOSED = 2] = "CLOSED", l;
1265
1265
  }(ae || {});
1266
- const Ml = /* @__PURE__ */ oe({
1266
+ const Fl = /* @__PURE__ */ oe({
1267
1267
  __name: "TeamMemberList",
1268
1268
  setup(l, {
1269
1269
  expose: A
@@ -1274,12 +1274,12 @@ const Ml = /* @__PURE__ */ oe({
1274
1274
  Ye();
1275
1275
  const {
1276
1276
  t
1277
- } = ce(), f = He(), {
1277
+ } = ce(), f = Xe(), {
1278
1278
  providers: u,
1279
1279
  hasProviders: $,
1280
1280
  canInvite: K,
1281
- providerLabel: R
1282
- } = hs(), O = I(() => K.value ? u.value : []), k = Lt(), P = Tt(), _ = ot(), X = Dt(_), C = At(), V = Us(), B = c(!0), y = c(!1), d = I(() => k.isLoading.value), h = c([]), b = c(0), r = c(1), U = c(""), j = c("");
1281
+ providerLabel: M
1282
+ } = hs(), O = I(() => K.value ? u.value : []), k = Lt(), P = Tt(), _ = ot(), H = Dt(_), C = At(), V = Us(), B = c(!0), y = c(!1), d = I(() => k.isLoading.value), h = c([]), b = c(0), r = c(1), U = c(""), j = c("");
1283
1283
  ue(k.restaurants, (e) => {
1284
1284
  if (e.length > 0 && h.value.length > 0) {
1285
1285
  const a = new Map(e.map((w) => [w._id, w.profile.name])), g = e.map((w) => w.profile.name).sort();
@@ -1505,10 +1505,10 @@ const Ml = /* @__PURE__ */ oe({
1505
1505
  contact: (e.match === "mobile" ? (w = e.contact) == null ? void 0 : w.email : (Y = e.contact) == null ? void 0 : Y.mobile) ?? ""
1506
1506
  };
1507
1507
  }
1508
- const H = c(null);
1508
+ const X = c(null);
1509
1509
  function x(e) {
1510
1510
  return {
1511
- label: R(e.provider),
1511
+ label: M(e.provider),
1512
1512
  match: e.match
1513
1513
  };
1514
1514
  }
@@ -1524,7 +1524,7 @@ const Ml = /* @__PURE__ */ oe({
1524
1524
  }), await ke();
1525
1525
  return;
1526
1526
  }
1527
- H.value = g, Z.value = se(g), J.value = ae.UPDATE;
1527
+ X.value = g, Z.value = se(g), J.value = ae.UPDATE;
1528
1528
  } catch {
1529
1529
  if (a !== ee) return;
1530
1530
  _.open({
@@ -1535,7 +1535,7 @@ const Ml = /* @__PURE__ */ oe({
1535
1535
  }
1536
1536
  async function je(e) {
1537
1537
  const a = ++ee;
1538
- H.value = null, Z.value = z(e), J.value = ae.UPDATE, ge.value = e.doc.hasPosUser === !0;
1538
+ X.value = null, Z.value = z(e), J.value = ae.UPDATE, ge.value = e.doc.hasPosUser === !0;
1539
1539
  try {
1540
1540
  const g = await Pe.readTeamMember(e.id);
1541
1541
  if (a !== ee) return;
@@ -1545,7 +1545,7 @@ const Ml = /* @__PURE__ */ oe({
1545
1545
  _.open({
1546
1546
  message: t("common.error"),
1547
1547
  type: "error"
1548
- }), Fe();
1548
+ }), Re();
1549
1549
  } finally {
1550
1550
  a === ee && (ge.value = !1);
1551
1551
  }
@@ -1571,24 +1571,24 @@ const Ml = /* @__PURE__ */ oe({
1571
1571
  let ee = 0;
1572
1572
  const n = async (e, a) => {
1573
1573
  e == Ee.Update && (a.status === "invited" ? await N(a.id) : await je(a)), e == Ee.Remove && Bt(a);
1574
- }, 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();
1574
+ }, R = Rt(), 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
1575
  function xe() {
1576
- ee++, ge.value = !1, H.value = null, J.value = ae.CLOSED;
1576
+ ee++, ge.value = !1, X.value = null, J.value = ae.CLOSED;
1577
1577
  }
1578
- const Me = ps(() => {
1578
+ const Fe = ps(() => {
1579
1579
  var e;
1580
1580
  return ((e = me.value) == null ? void 0 : e.isModified()) ?? !1;
1581
1581
  }, xe);
1582
- function Fe() {
1583
- Me();
1582
+ function Re() {
1583
+ Fe();
1584
1584
  }
1585
1585
  function Ge(e) {
1586
- e || Fe();
1586
+ e || Re();
1587
1587
  }
1588
1588
  const {
1589
1589
  breakpoints: _e
1590
1590
  } = $t(), Bt = (e) => {
1591
- F.open({
1591
+ R.open({
1592
1592
  title: t("team.actions.removeMember"),
1593
1593
  message: t("team.removeMember.confirmationMessage", {
1594
1594
  memberName: e.name
@@ -1605,18 +1605,18 @@ const Ml = /* @__PURE__ */ oe({
1605
1605
  close: !0
1606
1606
  }
1607
1607
  }).onPrimary(async () => {
1608
- Se.value || (await X.minor(async () => {
1608
+ Se.value || (await H.minor(async () => {
1609
1609
  await Pe.deleteTeamMember(e.id), await ke();
1610
1610
  }, {
1611
1611
  isLoading: Se,
1612
1612
  successMessage: t("team.removeMember.successMessage", {
1613
1613
  memberName: e.name
1614
1614
  })
1615
- }), F.close());
1615
+ }), R.close());
1616
1616
  });
1617
1617
  };
1618
1618
  function jt(e) {
1619
- F.open({
1619
+ R.open({
1620
1620
  title: t("team.staffInvite.revoke.title"),
1621
1621
  message: t("team.staffInvite.revoke.message", {
1622
1622
  name: e.name
@@ -1649,7 +1649,7 @@ const Ml = /* @__PURE__ */ oe({
1649
1649
  }, t)
1650
1650
  });
1651
1651
  } finally {
1652
- Se.value = !1, F.close(), await ke();
1652
+ Se.value = !1, R.close(), await ke();
1653
1653
  }
1654
1654
  }
1655
1655
  });
@@ -1682,7 +1682,7 @@ const Ml = /* @__PURE__ */ oe({
1682
1682
  }
1683
1683
  }
1684
1684
  const Gt = () => {
1685
- H.value = null, Z.value = null, J.value = ae.ADD;
1685
+ X.value = null, Z.value = null, J.value = ae.ADD;
1686
1686
  }, $e = c(), Ue = c(), Ce = c(), Ie = c(), we = c(), ut = I(() => [{
1687
1687
  label: t("team.status.active"),
1688
1688
  value: "active"
@@ -1793,7 +1793,7 @@ const Ml = /* @__PURE__ */ oe({
1793
1793
  fe.value = !1;
1794
1794
  }
1795
1795
  }
1796
- async function Xt(e, a) {
1796
+ async function Ht(e, a) {
1797
1797
  const g = x(e);
1798
1798
  fe.value = !0;
1799
1799
  try {
@@ -1817,7 +1817,7 @@ const Ml = /* @__PURE__ */ oe({
1817
1817
  fe.value = !1;
1818
1818
  }
1819
1819
  }
1820
- async function Ht() {
1820
+ async function Xt() {
1821
1821
  if (!me.value) return;
1822
1822
  const e = await me.value.validate();
1823
1823
  if (!e) return;
@@ -1826,12 +1826,12 @@ const Ml = /* @__PURE__ */ oe({
1826
1826
  me.value.hasExisting || await zt(e);
1827
1827
  return;
1828
1828
  }
1829
- if (!a && H.value) {
1830
- await Xt(H.value, e);
1829
+ if (!a && X.value) {
1830
+ await Ht(X.value, e);
1831
1831
  return;
1832
1832
  }
1833
1833
  const g = a ? null : me.value.readEdits();
1834
- await X.minor(async () => {
1834
+ await H.minor(async () => {
1835
1835
  await (a ? Pe.createTeamMember(e) : Pe.updateTeamMember(Z.value.id, {
1836
1836
  ...gs(e, Z.value.posUser),
1837
1837
  // '' clears it; the owner's sheet has no field, so it is left out
@@ -1897,7 +1897,7 @@ const Ml = /* @__PURE__ */ oe({
1897
1897
  }), (e, a) => {
1898
1898
  var Oe;
1899
1899
  const g = G("FmSearch"), w = G("FmTable"), Y = G("FmIcon"), le = G("FmButton"), De = G("FmSideSheet");
1900
- return m(), M(de, null, [p("div", Za, [p("div", Qa, [s(_e).xs ? (m(), M("div", sl, [i(g, {
1900
+ return m(), F(de, null, [p("div", Za, [p("div", Qa, [s(_e).xs ? (m(), F("div", sl, [i(g, {
1901
1901
  modelValue: U.value,
1902
1902
  "onUpdate:modelValue": a[6] || (a[6] = (L) => U.value = L),
1903
1903
  class: "w-[320px] xs:w-full xs:mt-8",
@@ -1930,7 +1930,7 @@ const Ml = /* @__PURE__ */ oe({
1930
1930
  items: ct.value,
1931
1931
  "selected-prefix": s(t)("team.filter.selected_permission_prefix"),
1932
1932
  placeholder: s(t)("team.filter.permission_placeholder")
1933
- }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), s($) ? (m(), M(de, {
1933
+ }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), s($) ? (m(), F(de, {
1934
1934
  key: 0
1935
1935
  }, [i(ie, {
1936
1936
  modelValue: Ie.value,
@@ -1952,7 +1952,7 @@ const Ml = /* @__PURE__ */ oe({
1952
1952
  items: mt.value,
1953
1953
  "selected-prefix": s(t)("team.filter.selected_login_method_prefix"),
1954
1954
  placeholder: s(t)("team.filter.login_method_placeholder")
1955
- }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])], 64)) : T("", !0)])])) : (m(), M("div", el, [p("div", tl, [i(ie, {
1955
+ }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"])], 64)) : T("", !0)])])) : (m(), F("div", el, [p("div", tl, [i(ie, {
1956
1956
  modelValue: $e.value,
1957
1957
  "onUpdate:modelValue": a[0] || (a[0] = (L) => $e.value = L),
1958
1958
  multiple: "",
@@ -1980,7 +1980,7 @@ const Ml = /* @__PURE__ */ oe({
1980
1980
  items: ct.value,
1981
1981
  "selected-prefix": s(t)("team.filter.selected_permission_prefix"),
1982
1982
  placeholder: s(t)("team.filter.permission_placeholder")
1983
- }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), s($) ? (m(), M(de, {
1983
+ }, null, 8, ["modelValue", "items", "selected-prefix", "placeholder"]), s($) ? (m(), F(de, {
1984
1984
  key: 0
1985
1985
  }, [i(ie, {
1986
1986
  modelValue: Ie.value,
@@ -2041,13 +2041,13 @@ const Ml = /* @__PURE__ */ oe({
2041
2041
  "max-width": 960,
2042
2042
  "close-button": !1,
2043
2043
  "onUpdate:modelValue": Ge,
2044
- "onOn:clickedAway": s(Me)
2044
+ "onOn:clickedAway": s(Fe)
2045
2045
  }, {
2046
2046
  "side-sheet-header": te(() => [p("div", ol, [p("p", rl, E(ve.value), 1), i(Y, {
2047
2047
  name: "close",
2048
2048
  size: "md",
2049
2049
  class: "cursor-pointer",
2050
- onClick: s(Me)
2050
+ onClick: s(Fe)
2051
2051
  }, null, 8, ["onClick"])])]),
2052
2052
  "side-sheet-footer": te(() => {
2053
2053
  var L;
@@ -2057,13 +2057,13 @@ const Ml = /* @__PURE__ */ oe({
2057
2057
  variant: "primary",
2058
2058
  "is-loading": fe.value,
2059
2059
  disabled: fe.value || J.value === ae.ADD && ((L = me.value) == null ? void 0 : L.hasExisting),
2060
- onClick: Rt(Ht, ["prevent"])
2060
+ onClick: Mt(Xt, ["prevent"])
2061
2061
  }, null, 8, ["label", "is-loading", "disabled"]), i(le, {
2062
2062
  label: s(t)("common.cancel"),
2063
2063
  size: "md",
2064
2064
  variant: "secondary",
2065
2065
  disabled: fe.value,
2066
- onClick: Fe
2066
+ onClick: Re
2067
2067
  }, null, 8, ["label", "disabled"])])];
2068
2068
  }),
2069
2069
  default: te(() => [pe.value ? (m(), q(Ja, {
@@ -2082,5 +2082,5 @@ const Ml = /* @__PURE__ */ oe({
2082
2082
  }
2083
2083
  });
2084
2084
  export {
2085
- Ml as default
2085
+ Fl as default
2086
2086
  };