@feedmepos/mf-hrm-portal 2.3.0-dev.13 → 2.3.0-dev.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/{ApprovalCodeList-D3egZFML.js → ApprovalCodeList-C9dauQ81.js} +4 -4
  2. package/dist/{AuditLogList-BzbaEsSj.js → AuditLogList-zW_N_ECT.js} +17 -18
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Do52KbKm.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DJuO1qPX.js} +2 -2
  4. package/dist/{EmployeeList-BiM8dRwZ.js → EmployeeList-8jkHTd7q.js} +255 -267
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js → FormItem.vue_vue_type_script_setup_true_lang-CJc_g0tW.js} +6 -6
  6. package/dist/{GrantUserList-Dj2ms20E.js → GrantUserList-Dj55GA7O.js} +5 -5
  7. package/dist/{Main-C2z7Jf9A.js → Main-0TfvGJ4N.js} +5 -5
  8. package/dist/{Main-DmpwTPaI.js → Main-BQNkTyET.js} +9 -9
  9. package/dist/{Main-DklZWoKj.js → Main-CuUG6svQ.js} +2 -2
  10. package/dist/{PermissionSetList-C-qgCcRO.js → PermissionSetList-BsLi-TOK.js} +5 -5
  11. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ggZB5zWW.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C2l8nWx2.js} +1014 -1014
  12. package/dist/{RoleList-ohfin77B.js → RoleList-DLDcyVWT.js} +7 -7
  13. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-diuWysro.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CUXUPfRc.js} +190 -181
  14. package/dist/{ScheduleGeneralPage-aCljFf21.js → ScheduleGeneralPage-BhYI6O9g.js} +132 -133
  15. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-x_-BYkcc.js → ScheduleModal.vue_vue_type_script_setup_true_lang-BLBLBtNG.js} +669 -646
  16. package/dist/{SchedulePage-DdMHF6kX.js → SchedulePage-DPU4taJt.js} +7407 -7359
  17. package/dist/{SchedulePositionPage-CID91orD.js → SchedulePositionPage-Byt6nmUj.js} +82 -84
  18. package/dist/{SelectFilter-CG13h83-.js → SelectFilter-1fh00OZW.js} +1 -1
  19. package/dist/{TeamMemberList-DJIKL4dE.js → TeamMemberList-CyUX8Afk.js} +35 -36
  20. package/dist/{TimesheetList-BPXWPNfT.js → TimesheetList-Q4FeNgOT.js} +52 -53
  21. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DVcV0knM.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C3iU4Zmc.js} +2 -2
  22. package/dist/{app-Bz8568j8.js → app-TuHQoM7K.js} +676 -666
  23. package/dist/app.js +1 -1
  24. package/dist/{dayjs.min-DhSRKSu4.js → dayjs.min-DXnA8GYn.js} +1 -1
  25. package/dist/{employee-BM44u8b-.js → employee-Ctnil3cD.js} +3 -3
  26. package/dist/{iteration-BHDxs89d.js → iteration-BxOzv27y.js} +1 -1
  27. package/dist/{lodash-DgSYLwYD.js → lodash-CKT_RxJs.js} +1 -1
  28. package/dist/object-Dwyg2LgX.js +16 -0
  29. package/dist/{role-BMJ7LEHN.js → role-CNEJPyaD.js} +1 -1
  30. package/dist/{rule-CCo7_ckA.js → rule-FbuHv6Gh.js} +2 -2
  31. package/dist/src/views/scheduling/composables/onboarding-types.d.ts +2 -1
  32. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +3 -1
  33. package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +2 -0
  34. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +3 -1
  35. package/dist/src/views/scheduling/data.d.ts +17 -0
  36. package/dist/style.css +1 -1
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/{useReportPermissions-C_Cd__n1.js → useReportPermissions-lemBrd1S.js} +3 -3
  39. package/package.json +1 -1
  40. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
@@ -1,52 +1,51 @@
1
- import { defineComponent as M, ref as A, onMounted as x, computed as z, createElementBlock as l, openBlock as a, createElementVNode as o, createVNode as i, withCtx as d, unref as s, toDisplayString as c, createTextVNode as r, normalizeClass as h, createCommentVNode as E, withDirectives as S, withKeys as k, vModelText as P, Fragment as C, renderList as V, withModifiers as g } from "vue";
2
- import { useRouter as F } from "vue-router";
3
- import { useSnackbar as B } from "@feedmepos/ui-library";
4
- import { R as I } from "./app-Bz8568j8.js";
5
- import { as as L, at as O, ab as R, ao as u, ap as K } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-x_-BYkcc.js";
6
- import { u as T, a as U, _ as W } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-diuWysro.js";
7
- import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const q = { class: "main" }, H = {
1
+ import { defineComponent as M, ref as A, onMounted as S, computed as x, createElementBlock as i, openBlock as l, createElementVNode as o, createVNode as n, createStaticVNode as z, withCtx as d, unref as s, toDisplayString as c, createTextVNode as r, normalizeClass as b, createCommentVNode as E, withDirectives as P, withKeys as k, vModelText as V, Fragment as _, renderList as F, withModifiers as g } from "vue";
2
+ import { useRouter as B } from "vue-router";
3
+ import { useSnackbar as I } from "@feedmepos/ui-library";
4
+ import { R as L, a as O } from "./app-TuHQoM7K.js";
5
+ import { au as R, av as K, ad as T, aq as u, ar as U } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-BLBLBtNG.js";
6
+ import { u as W, a as j, _ as q } from "./ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CUXUPfRc.js";
7
+ const H = { class: "main" }, G = {
9
8
  id: "viewPositions",
10
9
  class: "view"
11
- }, G = { class: "sp-head" }, J = { class: "outlet-bar" }, Q = { class: "sp-body" }, X = { class: "sp-content" }, Y = { class: "sp-panel" }, Z = { class: "cfg-head" }, ee = { class: "cfg-count" }, se = { id: "skList" }, te = {
10
+ }, J = { class: "sp-head" }, Q = { class: "outlet-bar" }, X = { class: "sp-body" }, Y = { class: "sp-content" }, Z = { class: "sp-panel" }, ee = { class: "cfg-head" }, se = { class: "cfg-count" }, te = { id: "skList" }, oe = {
12
11
  key: 0,
13
12
  class: "cfg-empty"
14
- }, oe = {
13
+ }, ae = {
15
14
  key: 1,
16
15
  class: "cfg-list"
17
16
  }, ne = {
18
17
  key: 0,
19
18
  class: "cfg-row"
20
- }, ie = { class: "cfg-main" }, le = ["onClick"], ae = { class: "cfg-main" }, de = { class: "cfg-name" }, re = {
19
+ }, ie = { class: "cfg-main" }, le = ["onClick"], de = { class: "cfg-main" }, re = { class: "cfg-name" }, ue = {
21
20
  key: 0,
22
21
  class: "cfg-confirm"
23
- }, ue = { class: "q" }, ce = /* @__PURE__ */ M({
22
+ }, ce = { class: "q" }, ve = /* @__PURE__ */ M({
24
23
  __name: "SchedulePositionPage",
25
- setup(ve) {
26
- const y = A(null);
27
- L(y);
28
- const _ = F(), w = B(), b = (f, e = "info") => w.open({ message: f, type: e }), t = T({ notify: b }), v = O(), m = U(void 0, { notify: b });
29
- x(async () => {
30
- await v.resolve() && await R(/* @__PURE__ */ new Date());
24
+ setup(fe) {
25
+ const h = A(null);
26
+ R(h);
27
+ const w = B(), C = I(), y = (p, e = "info") => C.open({ message: p, type: e }), t = W({ notify: y }), v = K(), f = j(void 0, { notify: y });
28
+ S(async () => {
29
+ await v.resolve() && await T(/* @__PURE__ */ new Date());
31
30
  });
32
- const $ = z(
31
+ const D = x(
33
32
  () => v.options.value.length ? v.options.value : [{ value: "", label: "No outlet selected", disabled: !0 }]
34
33
  );
35
- function D(f) {
36
- v.switchTo(f, /* @__PURE__ */ new Date());
34
+ function $(p) {
35
+ v.switchTo(p, /* @__PURE__ */ new Date());
37
36
  }
38
37
  function N() {
39
- _.push({ name: I.SCHEDULE });
38
+ w.push({ name: L.SCHEDULE });
40
39
  }
41
- return (f, e) => (a(), l("div", {
40
+ return (p, e) => (l(), i("div", {
42
41
  ref_key: "rootEl",
43
- ref: y,
42
+ ref: h,
44
43
  class: "sch"
45
44
  }, [
46
- o("div", q, [
47
- o("div", H, [
48
- o("div", G, [
49
- i(u, {
45
+ o("div", H, [
46
+ o("div", G, [
47
+ o("div", J, [
48
+ n(u, {
50
49
  hierarchy: "ghost",
51
50
  size: "sm",
52
51
  class: "sp-back",
@@ -73,155 +72,154 @@ const q = { class: "main" }, H = {
73
72
  ])]),
74
73
  _: 1
75
74
  }),
76
- e[9] || (e[9] = o("div", { class: "sp-title" }, "Position", -1)),
77
- e[10] || (e[10] = o("div", { class: "sp-sub" }, "What your staff can do — the same catalogue across every outlet.", -1)),
78
- o("div", J, [
75
+ e[9] || (e[9] = z('<div class="sp-title-row" data-v-44eafb8f><div class="sp-title" data-v-44eafb8f>Position</div><span class="page-tags" data-v-44eafb8f><span class="sch-badge page-tag-premium" data-color="brand" data-v-44eafb8f>Premium</span><span class="sch-badge" data-color="info" data-v-44eafb8f>Free until 31 Dec 2026</span></span></div><div class="sp-sub" data-v-44eafb8f>What your staff can do — the same catalogue across every outlet.</div>', 2)),
76
+ o("div", Q, [
79
77
  e[8] || (e[8] = o("span", { class: "outlet-bar-lbl" }, "Outlet", -1)),
80
- i(K, {
78
+ n(U, {
81
79
  class: "outlet-sel",
82
80
  "aria-label": "Outlet being configured",
83
81
  searchable: "",
84
82
  title: "Which outlet's roster the staff counts below are read from",
85
83
  "model-value": s(v).outletId.value,
86
- options: $.value,
87
- "onUpdate:modelValue": D
84
+ options: D.value,
85
+ "onUpdate:modelValue": $
88
86
  }, null, 8, ["model-value", "options"])
89
87
  ])
90
88
  ]),
91
- o("div", Q, [
92
- o("div", X, [
93
- o("div", Y, [
94
- o("div", Z, [
95
- e[12] || (e[12] = o("div", { class: "cfg-title" }, "Configured positions", -1)),
96
- o("span", ee, c(s(t).count.value), 1),
97
- e[13] || (e[13] = o("span", { class: "cfg-spacer" }, null, -1)),
98
- i(u, {
89
+ o("div", X, [
90
+ o("div", Y, [
91
+ o("div", Z, [
92
+ o("div", ee, [
93
+ e[11] || (e[11] = o("div", { class: "cfg-title" }, "Configured positions", -1)),
94
+ o("span", se, c(s(t).count.value), 1),
95
+ e[12] || (e[12] = o("span", { class: "cfg-spacer" }, null, -1)),
96
+ n(u, {
99
97
  hierarchy: "primary",
100
98
  size: "sm",
101
99
  class: "am-btn am-btn-primary",
102
100
  type: "button",
103
- onClick: e[0] || (e[0] = (n) => s(m).openNew())
101
+ onClick: e[0] || (e[0] = (a) => s(f).openNew())
104
102
  }, {
105
- default: d(() => [...e[11] || (e[11] = [
103
+ default: d(() => [...e[10] || (e[10] = [
106
104
  r(" + Add position ", -1)
107
105
  ])]),
108
106
  _: 1
109
107
  })
110
108
  ]),
111
109
  o("div", {
112
- class: h(["ce-err", { show: s(t).error.value }])
110
+ class: b(["ce-err", { show: s(t).error.value }])
113
111
  }, c(s(t).error.value), 3),
114
- o("div", se, [
115
- !s(t).positions.value.length && !s(t).isAdding.value ? (a(), l("div", te, [...e[14] || (e[14] = [
112
+ o("div", te, [
113
+ !s(t).positions.value.length && !s(t).isAdding.value ? (l(), i("div", oe, [...e[13] || (e[13] = [
116
114
  r(" No positions yet.", -1),
117
115
  o("br", null, null, -1),
118
116
  r(" Add one and it becomes assignable on every employee. ", -1)
119
- ])])) : (a(), l("div", oe, [
120
- s(t).isAdding.value ? (a(), l("div", ne, [
117
+ ])])) : (l(), i("div", ae, [
118
+ s(t).isAdding.value ? (l(), i("div", ne, [
121
119
  o("div", ie, [
122
- S(o("input", {
123
- "onUpdate:modelValue": e[1] || (e[1] = (n) => s(t).newName.value = n),
120
+ P(o("input", {
121
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => s(t).newName.value = a),
124
122
  type: "text",
125
123
  class: "cfg-name-input",
126
124
  placeholder: "New position name",
127
125
  autofocus: "",
128
126
  onKeyup: [
129
- e[2] || (e[2] = k((n) => s(t).confirmAdd(), ["enter"])),
130
- e[3] || (e[3] = k((n) => s(t).cancelAdd(), ["esc"]))
127
+ e[2] || (e[2] = k((a) => s(t).confirmAdd(), ["enter"])),
128
+ e[3] || (e[3] = k((a) => s(t).cancelAdd(), ["esc"]))
131
129
  ]
132
130
  }, null, 544), [
133
- [P, s(t).newName.value]
131
+ [V, s(t).newName.value]
134
132
  ])
135
133
  ]),
136
- i(u, {
134
+ n(u, {
137
135
  hierarchy: "secondary",
138
136
  size: "sm",
139
137
  class: "cfg-btn",
140
138
  type: "button",
141
139
  disabled: !s(t).newName.value.trim() || s(t).saving.value,
142
- onClick: e[4] || (e[4] = (n) => s(t).confirmAdd())
140
+ onClick: e[4] || (e[4] = (a) => s(t).confirmAdd())
143
141
  }, {
144
142
  default: d(() => [
145
143
  r(c(s(t).saving.value ? "Adding…" : "Add"), 1)
146
144
  ]),
147
145
  _: 1
148
146
  }, 8, ["disabled"]),
149
- i(u, {
147
+ n(u, {
150
148
  hierarchy: "secondary",
151
149
  size: "sm",
152
150
  class: "cfg-btn",
153
151
  type: "button",
154
152
  disabled: s(t).saving.value,
155
- onClick: e[5] || (e[5] = (n) => s(t).cancelAdd())
153
+ onClick: e[5] || (e[5] = (a) => s(t).cancelAdd())
156
154
  }, {
157
- default: d(() => [...e[15] || (e[15] = [
155
+ default: d(() => [...e[14] || (e[14] = [
158
156
  r(" Cancel ", -1)
159
157
  ])]),
160
158
  _: 1
161
159
  }, 8, ["disabled"])
162
160
  ])) : E("", !0),
163
- (a(!0), l(C, null, V(s(t).positions.value, (n) => (a(), l("div", {
164
- key: n.id,
165
- class: h(["cfg-row", { "is-clickable": s(t).pendingDeleteId.value !== n.id }]),
166
- onClick: (p) => s(t).pendingDeleteId.value !== n.id && s(m).openEdit(n.id, n.name)
161
+ (l(!0), i(_, null, F(s(t).positions.value, (a) => (l(), i("div", {
162
+ key: a.id,
163
+ class: b(["cfg-row", { "is-clickable": s(t).pendingDeleteId.value !== a.id }]),
164
+ onClick: (m) => s(t).pendingDeleteId.value !== a.id && s(f).openEdit(a.id, a.name)
167
165
  }, [
168
- o("div", ae, [
169
- o("div", de, c(n.name), 1)
166
+ o("div", de, [
167
+ o("div", re, c(a.name), 1)
170
168
  ]),
171
- s(t).pendingDeleteId.value === n.id ? (a(), l("div", re, [
172
- o("span", ue, c(s(t).usageCountFor(n.id) ? `Remove from ${s(t).usageCountFor(n.id)} staff?` : "Delete?"), 1),
173
- i(u, {
169
+ s(t).pendingDeleteId.value === a.id ? (l(), i("div", ue, [
170
+ o("span", ce, c(s(t).usageCountFor(a.id) ? `Remove from ${s(t).usageCountFor(a.id)} staff?` : "Delete?"), 1),
171
+ n(u, {
174
172
  hierarchy: "danger",
175
173
  size: "sm",
176
174
  class: "cfg-yes",
177
175
  type: "button",
178
176
  disabled: s(t).saving.value,
179
- onClick: g((p) => s(t).confirmDelete(n.id), ["stop"])
177
+ onClick: g((m) => s(t).confirmDelete(a.id), ["stop"])
180
178
  }, {
181
179
  default: d(() => [
182
180
  r(c(s(t).saving.value ? "Deleting…" : "Delete"), 1)
183
181
  ]),
184
182
  _: 1
185
183
  }, 8, ["disabled", "onClick"]),
186
- i(u, {
184
+ n(u, {
187
185
  hierarchy: "secondary",
188
186
  size: "sm",
189
187
  class: "cfg-no",
190
188
  type: "button",
191
189
  disabled: s(t).saving.value,
192
- onClick: e[6] || (e[6] = g((p) => s(t).cancelDelete(), ["stop"]))
190
+ onClick: e[6] || (e[6] = g((m) => s(t).cancelDelete(), ["stop"]))
193
191
  }, {
194
- default: d(() => [...e[16] || (e[16] = [
192
+ default: d(() => [...e[15] || (e[15] = [
195
193
  r(" Keep ", -1)
196
194
  ])]),
197
195
  _: 1
198
196
  }, 8, ["disabled"])
199
- ])) : (a(), l(C, { key: 1 }, [
197
+ ])) : (l(), i(_, { key: 1 }, [
200
198
  o("span", {
201
- class: h(["cfg-used", { none: !s(t).usageCountFor(n.id) }])
202
- }, c(s(t).usageCountFor(n.id) ? `${s(t).usageCountFor(n.id)} staff` : "unused"), 3),
203
- i(u, {
199
+ class: b(["cfg-used", { none: !s(t).usageCountFor(a.id) }])
200
+ }, c(s(t).usageCountFor(a.id) ? `${s(t).usageCountFor(a.id)} staff` : "unused"), 3),
201
+ n(u, {
204
202
  hierarchy: "secondary",
205
203
  size: "sm",
206
204
  class: "cfg-btn",
207
205
  type: "button",
208
- onClick: g((p) => s(m).openEdit(n.id, n.name), ["stop"])
206
+ onClick: g((m) => s(f).openEdit(a.id, a.name), ["stop"])
209
207
  }, {
210
- default: d(() => [...e[17] || (e[17] = [
208
+ default: d(() => [...e[16] || (e[16] = [
211
209
  r(" Edit ", -1)
212
210
  ])]),
213
211
  _: 1
214
212
  }, 8, ["onClick"]),
215
- i(u, {
213
+ n(u, {
216
214
  hierarchy: "ghost",
217
215
  size: "sm",
218
216
  "icon-only": "",
219
217
  class: "cfg-del",
220
218
  type: "button",
221
- "aria-label": `Delete ${n.name}`,
222
- onClick: g((p) => s(t).askDelete(n.id), ["stop"])
219
+ "aria-label": `Delete ${a.name}`,
220
+ onClick: g((m) => s(t).askDelete(a.id), ["stop"])
223
221
  }, {
224
- default: d(() => [...e[18] || (e[18] = [
222
+ default: d(() => [...e[17] || (e[17] = [
225
223
  o("svg", {
226
224
  width: "14",
227
225
  height: "14",
@@ -255,10 +253,10 @@ const q = { class: "main" }, H = {
255
253
  ])
256
254
  ])
257
255
  ]),
258
- i(W, { modal: s(m) }, null, 8, ["modal"])
256
+ n(q, { modal: s(f) }, null, 8, ["modal"])
259
257
  ], 512));
260
258
  }
261
- }), ke = /* @__PURE__ */ j(ce, [["__scopeId", "data-v-6c156586"]]);
259
+ }), ke = /* @__PURE__ */ O(ve, [["__scopeId", "data-v-44eafb8f"]]);
262
260
  export {
263
261
  ke as default
264
262
  };
@@ -1,7 +1,7 @@
1
1
  import { ref as $, computed as v, defineComponent as X, watch as Y, nextTick as Z, resolveComponent as F, createElementBlock as d, openBlock as c, createElementVNode as A, createVNode as b, renderSlot as z, withCtx as O, createCommentVNode as x, normalizeStyle as ee, Fragment as S, createBlock as T, unref as k, renderList as R, toDisplayString as N, normalizeClass as le, withModifiers as te } from "vue";
2
2
  import "@feedmepos/ui-library";
3
3
  /* empty css */
4
- import { _ as ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import { a as ae } from "./app-TuHQoM7K.js";
5
5
  function ue(r, u, _ = r) {
6
6
  const t = $(!0), C = v(() => {
7
7
  if (!t.value && !u.value)
@@ -2,23 +2,22 @@ import { defineComponent as we, resolveComponent as F, createElementBlock as L,
2
2
  import { useI18n as Ve, useCoreStore as Ze } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Le, useDialog as Qe, useBreakpoints as Ye, components as Oe } from "@feedmepos/ui-library";
4
4
  import { u as ps } from "./useDebounce-B8ZPVS5C.js";
5
- import { S as ye } from "./SelectFilter-CG13h83-.js";
6
- import { v as Te, m as vs, O as fs, _ as bs, a as hs } from "./app-Bz8568j8.js";
7
- import { _ as ys } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
8
- import { _ as gs } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
- import { s as _s, _ as Us, a as Ss, b as xs, c as Fs } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js";
5
+ import { S as ye } from "./SelectFilter-1fh00OZW.js";
6
+ import { a as vs, v as Te, m as fs, O as bs, _ as hs, b as ys } from "./app-TuHQoM7K.js";
7
+ import { _ as gs } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
8
+ import { _ as _s } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
9
+ import { s as Us, _ as Ss, a as xs, b as Fs, c as Ps } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js";
10
10
  import { u as He } from "./useLoading-Ch1AUYT1.js";
11
- import { u as Ps } from "./useDiscardConfirm-CzZSPyvh.js";
11
+ import { u as Is } from "./useDiscardConfirm-CzZSPyvh.js";
12
12
  import { n as es } from "./string-VNuQNweN.js";
13
- import { l as Pe } from "./lodash-DgSYLwYD.js";
14
- import { c as he } from "./iteration-BHDxs89d.js";
15
- import { t as _e, u as ss, c as Ae, b as qe, m as $e, d as ts, p as Ge, i as Is, j as Ke, k as ws, l as Vs, n as ks, o as Rs, q as Cs } from "./rule-CCo7_ckA.js";
16
- import { u as as } from "./role-BMJ7LEHN.js";
17
- import { u as ls, i as $s } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js";
13
+ import { l as Pe } from "./lodash-CKT_RxJs.js";
14
+ import { c as he } from "./iteration-BxOzv27y.js";
15
+ import { t as _e, u as ss, c as Ae, b as qe, m as $e, d as ts, p as Ge, i as ws, j as Ke, k as Vs, l as ks, n as Rs, o as Cs, q as $s } from "./rule-FbuHv6Gh.js";
16
+ import { u as as } from "./role-CNEJPyaD.js";
17
+ import { u as ls, i as Ms } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-BVz6q3HE.js";
18
18
  import "./useAppStore-BoLkvkE2.js";
19
19
  import { g as ze, b as We, u as os } from "./restaurant-BbYRA_IT.js";
20
- import { _ as Ms } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ggZB5zWW.js";
21
- import { _ as Ns } from "./_plugin-vue_export-helper-CHgC5LLL.js";
20
+ import { _ as Ns } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C2l8nWx2.js";
22
21
  var Ue = /* @__PURE__ */ ((o) => (o.Update = "Update", o.Remove = "Remove", o))(Ue || {});
23
22
  const Ie = "__unassigned__";
24
23
  function Je(o) {
@@ -85,7 +84,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
85
84
  const v = N, { t: a } = Ve(), m = Le(), J = Ze(), { supportedCountries: k, ready: I } = ls(), R = S(() => {
86
85
  var U;
87
86
  const g = (U = J.currentCountry.value) == null ? void 0 : U.toUpperCase();
88
- return g && $s(g) ? g : void 0;
87
+ return g && Ms(g) ? g : void 0;
89
88
  }), h = p("phone"), C = p(""), d = p(""), f = p(), j = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, E = S(() => j.test(d.value.trim()));
90
89
  async function D() {
91
90
  const g = h.value === "phone" ? C.value.replace(/ /g, "") : d.value.trim();
@@ -206,7 +205,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
206
205
  ]);
207
206
  };
208
207
  }
209
- }), at = /* @__PURE__ */ Ns(tt, [["__scopeId", "data-v-827dfd60"]]), lt = { class: "flex flex-col gap-40" }, ot = { class: "flex items-center" }, rt = { class: "flex-1 flex flex-col" }, nt = { class: "fm-typo-en-title-sm-600" }, it = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ut = { class: "flex flex-row gap-16" }, mt = { class: "flex flex-col gap-8" }, dt = { class: "fm-typo-en-body-lg-400" }, ct = { class: "space-y-16" }, je = 4, pt = /* @__PURE__ */ we({
208
+ }), at = /* @__PURE__ */ vs(tt, [["__scopeId", "data-v-827dfd60"]]), lt = { class: "flex flex-col gap-40" }, ot = { class: "flex items-center" }, rt = { class: "flex-1 flex flex-col" }, nt = { class: "fm-typo-en-title-sm-600" }, it = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ut = { class: "flex flex-row gap-16" }, mt = { class: "flex flex-col gap-8" }, dt = { class: "fm-typo-en-body-lg-400" }, ct = { class: "space-y-16" }, je = 4, pt = /* @__PURE__ */ we({
210
209
  __name: "TeamMemberMasterUser",
211
210
  props: {
212
211
  modelValue: {
@@ -246,7 +245,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
246
245
  }
247
246
  const C = S(() => {
248
247
  var n;
249
- return _s(((n = v.modelValue) == null ? void 0 : n.roles) ?? []);
248
+ return Us(((n = v.modelValue) == null ? void 0 : n.roles) ?? []);
250
249
  });
251
250
  function d(n) {
252
251
  return v.usableRoleIds === null || v.usableRoleIds.includes(n._id);
@@ -349,7 +348,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
349
348
  ]
350
349
  }, {
351
350
  default: ie(() => [
352
- i(Us, {
351
+ i(Ss, {
353
352
  modelValue: R.value,
354
353
  "onUpdate:modelValue": b[2] || (b[2] = (r) => R.value = r),
355
354
  masked: I.value,
@@ -361,7 +360,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
361
360
  ]),
362
361
  _: 1
363
362
  }, 8, ["modelValue", "rules"]),
364
- i(Ss, {
363
+ i(xs, {
365
364
  label: l(m)("team.memberForm.masterUser.passcodeGenerate"),
366
365
  hint: l(m)("team.memberForm.masterUser.passcodeSelectOutletFirst"),
367
366
  loading: E.value,
@@ -379,7 +378,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
379
378
  ]
380
379
  }, {
381
380
  default: ie(() => [
382
- i(xs, {
381
+ i(Fs, {
383
382
  "model-value": o.modelValue.roles,
384
383
  restaurants: o.restaurants,
385
384
  roles: o.roles,
@@ -435,7 +434,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
435
434
  ((Z = v.initialValue) == null ? void 0 : Z.permissions) || []
436
435
  )
437
436
  ), { customReportPermissions: j, isLoaded: E } = ts(), D = new Set(
438
- Ge.filter((s) => s.subject.startsWith(Is)).map((s) => s.subject)
437
+ Ge.filter((s) => s.subject.startsWith(ws)).map((s) => s.subject)
439
438
  ), $ = S(() => {
440
439
  const s = new Set(D);
441
440
  for (const c of j.value) s.add(c.subject);
@@ -516,12 +515,12 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
516
515
  });
517
516
  }
518
517
  function O() {
519
- const s = E.value ? $.value : D, c = ks(f.value, s);
520
- return Rs(c, w.value);
518
+ const s = E.value ? $.value : D, c = Rs(f.value, s);
519
+ return Cs(c, w.value);
521
520
  }
522
521
  function Me() {
523
- const s = $e(C.value), c = ws(O());
524
- return Vs(s, c);
522
+ const s = $e(C.value), c = Vs(O());
523
+ return ks(s, c);
525
524
  }
526
525
  function ke() {
527
526
  var K, z, Q, A, W, Y, H, le, be, ce;
@@ -532,7 +531,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
532
531
  customPermissions: s,
533
532
  permissions: c.map((oe) => ({
534
533
  ...oe,
535
- subject: vs(oe.subject)
534
+ subject: fs(oe.subject)
536
535
  })),
537
536
  permissionSetIds: h.value,
538
537
  name: ((Q = k.value) == null ? void 0 : Q.displayName) || ((A = v.initialValue) == null ? void 0 : A.name) || "",
@@ -628,7 +627,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
628
627
  ]),
629
628
  u("div", gt, [
630
629
  u("div", _t, V(l(a)("team.memberForm.permissions.title")), 1),
631
- i(Ms, {
630
+ i(Ns, {
632
631
  modelValue: f.value,
633
632
  "onUpdate:modelValue": c[1] || (c[1] = (ce) => f.value = ce),
634
633
  "inherit-permissions": C.value,
@@ -685,7 +684,7 @@ const Es = { class: "w-full flex flex-col gap-16" }, Ds = { class: "flex items-c
685
684
  var ee = /* @__PURE__ */ function(o) {
686
685
  return o[o.ADD = 0] = "ADD", o[o.UPDATE = 1] = "UPDATE", o[o.CLOSED = 2] = "CLOSED", o;
687
686
  }(ee || {});
688
- const ea = /* @__PURE__ */ we({
687
+ const Ht = /* @__PURE__ */ we({
689
688
  __name: "TeamMemberList",
690
689
  setup(o, {
691
690
  expose: N
@@ -696,7 +695,7 @@ const ea = /* @__PURE__ */ we({
696
695
  ls();
697
696
  const {
698
697
  t: a
699
- } = Ve(), m = Ze(), J = os(), k = as(), I = Le(), R = He(I), h = ss(), C = Cs(), d = p(!0), f = p(!1), j = S(() => J.isLoading.value), E = p([]), D = p(0), $ = p(1), w = p(""), n = p("");
698
+ } = Ve(), m = Ze(), J = os(), k = as(), I = Le(), R = He(I), h = ss(), C = $s(), d = p(!0), f = p(!1), j = S(() => J.isLoading.value), E = p([]), D = p(0), $ = p(1), w = p(""), n = p("");
700
699
  pe(J.restaurants, (e) => {
701
700
  if (e.length > 0 && E.value.length > 0) {
702
701
  const t = new Map(e.map((x) => [x._id, x.profile.name])), _ = e.map((x) => x.profile.name).sort();
@@ -724,7 +723,7 @@ const ea = /* @__PURE__ */ we({
724
723
  onClick: () => se(Ue.Remove, e),
725
724
  itemClass: "text-fm-color-typo-error"
726
725
  }, re = e.doc.isOwner ? [_] : [_, x];
727
- return i(ys, {
726
+ return i(gs, {
728
727
  class: t,
729
728
  items: re
730
729
  }, null);
@@ -755,7 +754,7 @@ const ea = /* @__PURE__ */ we({
755
754
  enableSorting: !1,
756
755
  cell(e) {
757
756
  if (j.value)
758
- return ds(Fs);
757
+ return ds(Ps);
759
758
  const t = e.row.original;
760
759
  return U(t);
761
760
  }
@@ -871,7 +870,7 @@ const ea = /* @__PURE__ */ we({
871
870
  function ve() {
872
871
  X++, ue.value = !1, B.value = ee.CLOSED;
873
872
  }
874
- const fe = Ps(() => {
873
+ const fe = Is(() => {
875
874
  var e;
876
875
  return ((e = Y.value) == null ? void 0 : e.isModified()) ?? !1;
877
876
  }, ve);
@@ -921,7 +920,7 @@ const ea = /* @__PURE__ */ we({
921
920
  permissionSubjects: [...Z.value ?? []].sort(),
922
921
  permissionSetIds: [...s.value ?? []].sort()
923
922
  });
924
- }), K = S(() => Object.values(fs).map((e) => ({
923
+ }), K = S(() => Object.values(bs).map((e) => ({
925
924
  label: e.label,
926
925
  value: e.subject
927
926
  }))), z = S(() => [{
@@ -1082,12 +1081,12 @@ const ea = /* @__PURE__ */ we({
1082
1081
  class: "w-[320px] xs:w-full xs:mt-8",
1083
1082
  autofocus: "",
1084
1083
  placeholder: l(a)("team.search.placeholder")
1085
- }, null, 8, ["modelValue", "placeholder"])])), (Fe = l(m).currentBusiness.value) != null && Fe._id ? (y(), G(bs, {
1084
+ }, null, 8, ["modelValue", "placeholder"])])), (Fe = l(m).currentBusiness.value) != null && Fe._id ? (y(), G(hs, {
1086
1085
  key: 2
1087
1086
  }, {
1088
- default: ie(() => [u("div", kt, [f.value ? q("", !0) : (y(), G(hs, {
1087
+ default: ie(() => [u("div", kt, [f.value ? q("", !0) : (y(), G(ys, {
1089
1088
  key: 0
1090
- })), f.value ? (y(), G(gs, {
1089
+ })), f.value ? (y(), G(_s, {
1091
1090
  key: 1,
1092
1091
  "is-loading": d.value,
1093
1092
  "is-empty": D.value === 0,
@@ -1151,5 +1150,5 @@ const ea = /* @__PURE__ */ we({
1151
1150
  }
1152
1151
  });
1153
1152
  export {
1154
- ea as default
1153
+ Ht as default
1155
1154
  };