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

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 (60) hide show
  1. package/dist/{ApprovalCodeList-C9dauQ81.js → ApprovalCodeList-NeNAiyOr.js} +4 -4
  2. package/dist/{AuditLogList-zW_N_ECT.js → AuditLogList-Pv9kFjBr.js} +4 -4
  3. package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DJuO1qPX.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DWfp8X80.js} +2 -2
  4. package/dist/{EmployeeList-8jkHTd7q.js → EmployeeList-Bs9lymzV.js} +6 -6
  5. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CJc_g0tW.js → FormItem.vue_vue_type_script_setup_true_lang-Cb22fFWE.js} +1 -1
  6. package/dist/{GrantUserList-Dj55GA7O.js → GrantUserList-dTWAmoUv.js} +5 -5
  7. package/dist/{Main-BQNkTyET.js → Main-C_RrWM3c.js} +9 -9
  8. package/dist/{Main-CuUG6svQ.js → Main-Cp40vaRW.js} +2 -2
  9. package/dist/{Main-0TfvGJ4N.js → Main-D_iKA3Se.js} +5 -5
  10. package/dist/{PermissionSetList-BsLi-TOK.js → PermissionSetList-D9uTEllI.js} +5 -5
  11. package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C2l8nWx2.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-vbO5PdcM.js} +1353 -1353
  12. package/dist/{RoleList-DLDcyVWT.js → RoleList-DyoCd2jX.js} +7 -7
  13. package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CUXUPfRc.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-D0Mg9P_m.js} +111 -111
  14. package/dist/{ScheduleGeneralPage-BhYI6O9g.js → ScheduleGeneralPage-DyIBUXY1.js} +86 -87
  15. package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-BLBLBtNG.js → ScheduleModal.vue_vue_type_script_setup_true_lang-CJMPrPHl.js} +931 -823
  16. package/dist/SchedulePage-BkvOpOVt.js +18757 -0
  17. package/dist/{SchedulePositionPage-Byt6nmUj.js → SchedulePositionPage-DE5XxDl2.js} +16 -16
  18. package/dist/{SelectFilter-1fh00OZW.js → SelectFilter-D27X9BNI.js} +1 -1
  19. package/dist/{TeamMemberList-CyUX8Afk.js → TeamMemberList-YudsADAP.js} +7 -7
  20. package/dist/{TimesheetList-Q4FeNgOT.js → TimesheetList-CQXDulxg.js} +6 -6
  21. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C3iU4Zmc.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-CWHjolT4.js} +2 -2
  22. package/dist/{app-TuHQoM7K.js → app-BMVAE__n.js} +1535 -1283
  23. package/dist/app.js +1 -1
  24. package/dist/{dayjs.min-DXnA8GYn.js → dayjs.min-6iMvK3bi.js} +1 -1
  25. package/dist/{employee-Ctnil3cD.js → employee-kAmYgyIB.js} +3 -3
  26. package/dist/{iteration-BxOzv27y.js → iteration-kNseYv0g.js} +1 -1
  27. package/dist/{lodash-CKT_RxJs.js → lodash-CoGtJ4ls.js} +1 -1
  28. package/dist/{role-CNEJPyaD.js → role-BvQeAAsI.js} +1 -1
  29. package/dist/{rule-FbuHv6Gh.js → rule-DkjcuvBR.js} +2 -2
  30. package/dist/src/views/audit-log/locales/index.d.ts +252 -0
  31. package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +2 -0
  32. package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +1 -0
  33. package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +6 -0
  34. package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +13 -1
  35. package/dist/src/views/scheduling/composables/schedule-error.d.ts +3 -0
  36. package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +22 -0
  37. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +5 -2
  38. package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +3 -11
  39. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +7 -0
  40. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +45 -1
  41. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +10 -0
  42. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +2 -2
  43. package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +1 -0
  44. package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +14 -6
  45. package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +3 -0
  46. package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +0 -2
  47. package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +23 -0
  48. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +160 -3
  49. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +44 -0
  50. package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +2 -2
  51. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +22 -0
  52. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +26 -2
  53. package/dist/src/views/scheduling/country-rules/index.d.ts +8 -3
  54. package/dist/src/views/scheduling/schedule-store.d.ts +7 -7
  55. package/dist/src/views/scheduling/types.d.ts +5 -0
  56. package/dist/style.css +1 -1
  57. package/dist/tsconfig.app.tsbuildinfo +1 -1
  58. package/dist/{useReportPermissions-lemBrd1S.js → useReportPermissions-CbnelOLy.js} +3 -3
  59. package/package.json +3 -3
  60. package/dist/SchedulePage-DPU4taJt.js +0 -18041
@@ -1,12 +1,10 @@
1
- import { ref as w, reactive as W, computed as N, defineComponent as T, createBlock as I, openBlock as p, withCtx as k, createElementVNode as e, createVNode as b, createElementBlock as m, Fragment as L, createTextVNode as H, toDisplayString as h, withDirectives as f, vModelText as g, createCommentVNode as E, renderList as V, onMounted as B, createStaticVNode as z, unref as l, normalizeClass as U } from "vue";
2
- import { useRouter as Y } from "vue-router";
3
- import { useSnackbar as q } from "@feedmepos/ui-library";
4
- import { R as F } from "./app-TuHQoM7K.js";
5
- import { b as v, o as $, N as A, g as G, as as j, aq as x, au as J, av as K, ad as Q, ar as X } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-BLBLBtNG.js";
6
- import "./iteration-BxOzv27y.js";
7
- import { useCoreStore as Z } from "@feedmepos/mf-common";
8
- import "./employee-Ctnil3cD.js";
9
- const _ = [
1
+ import { ref as w, reactive as B, computed as N, defineComponent as T, createBlock as I, openBlock as p, withCtx as k, createElementVNode as e, createVNode as b, createElementBlock as m, Fragment as L, createTextVNode as H, toDisplayString as h, withDirectives as f, vModelText as g, createCommentVNode as A, renderList as V, onMounted as z, createStaticVNode as Y, unref as l, normalizeClass as U } from "vue";
2
+ import { useRouter as q } from "vue-router";
3
+ import { useSnackbar as F } from "@feedmepos/ui-library";
4
+ import { R as G } from "./app-BMVAE__n.js";
5
+ import { b as v, o as $, Q as j, $ as W, p as E, g as J, at as Q, ar as x, av as K, aw as X, ag as Z, as as _ } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-CJMPrPHl.js";
6
+ import { useCoreStore as ee } from "@feedmepos/mf-common";
7
+ const se = [
10
8
  { key: "payrates", label: "Pay rates" },
11
9
  { key: "overtime", label: "Overtime" },
12
10
  { key: "workingHours", label: "Working hours" }
@@ -24,21 +22,22 @@ function M() {
24
22
  workingHours: { ...v.workingHours }
25
23
  });
26
24
  }
27
- function ee() {
28
- const r = Z(), d = w(!1), a = w("payrates"), n = W(M()), t = w(!1);
25
+ function te() {
26
+ const r = ee(), d = w(!1), a = w("payrates"), n = B(M()), t = w(!1);
29
27
  let u = 0;
30
28
  async function C() {
31
29
  if (!$.value) return;
32
30
  const c = ++u, o = $.value;
33
31
  t.value = !0;
34
32
  try {
35
- const s = await A.getSettings(o);
33
+ const s = await W.getSettings(o);
36
34
  if (c !== u || $.value !== o) return;
37
- const i = G(r.currentCountry.value);
35
+ E.value && (E.value = { ...E.value, settings: s });
36
+ const i = J(r.currentCountry.value);
38
37
  v.payRate = structuredClone(s.settingsConfigured ? s.payRate : i.payRate), v.otCapHours = s.settingsConfigured ? s.overtime.maxHoursPerMonth : i.overtime.maxHoursPerMonth, v.workingHours = s.settingsConfigured ? structuredClone(s.workingHours) : {
39
38
  minHoursPerDay: null,
40
- maxHoursPerDay: i.workingHours.maxHoursPerDay,
41
- maxHoursPerWeek: i.workingHours.maxHoursPerWeek
39
+ maxHoursPerDay: i.workingHours.fullTime.maxHoursPerDay,
40
+ maxHoursPerWeek: i.workingHours.fullTime.maxHoursPerWeek
42
41
  };
43
42
  } finally {
44
43
  c === u && (t.value = !1);
@@ -68,7 +67,7 @@ function ee() {
68
67
  throw new Error("Working-hour limits must be in ascending order");
69
68
  if (o.maxHoursPerDay != null && o.maxHoursPerWeek != null && o.maxHoursPerDay > o.maxHoursPerWeek)
70
69
  throw new Error("Working-hour limits must be in ascending order");
71
- const s = await A.saveSettings($.value, {
70
+ const s = await j({
72
71
  payRate: n.payRate,
73
72
  overtime: { maxHoursPerMonth: c },
74
73
  workingHours: o
@@ -77,7 +76,7 @@ function ee() {
77
76
  }
78
77
  return { isOpen: d, activeSection: a, draft: n, dirty: S, loading: t, load: C, open: y, close: P, discard: D, save: R };
79
78
  }
80
- function se(r, d = {}) {
79
+ function ae(r, d = {}) {
81
80
  const a = w(!1), n = w(""), t = w(/* @__PURE__ */ new Set()), u = w(!1), C = w(null), y = N(
82
81
  () => {
83
82
  var o;
@@ -107,7 +106,7 @@ function se(r, d = {}) {
107
106
  try {
108
107
  await Promise.all(
109
108
  o.map(
110
- (O) => A.saveSettings(O, {
109
+ (O) => W.saveSettings(O, {
111
110
  payRate: v.payRate,
112
111
  overtime: { maxHoursPerMonth: v.otCapHours },
113
112
  workingHours: v.workingHours
@@ -143,22 +142,22 @@ function se(r, d = {}) {
143
142
  confirm: c
144
143
  };
145
144
  }
146
- const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
145
+ const oe = { class: "am-head" }, le = { class: "ce-body" }, re = {
147
146
  class: "ce-hint",
148
147
  style: { "margin-bottom": "var(--fm-spacing-10)" }
149
- }, le = { class: "sch-search" }, re = { class: "asg-list" }, ne = ["checked", "onChange"], ie = { class: "asg-id" }, ue = { class: "asg-nm" }, de = {
148
+ }, ne = { class: "sch-search" }, ie = { class: "asg-list" }, ue = ["checked", "onChange"], de = { class: "asg-id" }, pe = { class: "asg-nm" }, ve = {
150
149
  key: 0,
151
150
  class: "asg-empty"
152
- }, pe = {
151
+ }, me = {
153
152
  key: 1,
154
153
  class: "cg-done"
155
- }, ve = { class: "cg-st-main" }, me = { class: "am-foot" }, ce = { class: "am-cost-preview" }, ye = { class: "am-foot-btns" }, fe = /* @__PURE__ */ T({
154
+ }, ce = { class: "cg-st-main" }, ye = { class: "am-foot" }, fe = { class: "am-cost-preview" }, ge = { class: "am-foot-btns" }, he = /* @__PURE__ */ T({
156
155
  __name: "ScheduleCloneOutletModal",
157
156
  props: {
158
157
  modal: {}
159
158
  },
160
159
  setup(r) {
161
- return (d, a) => (p(), I(j, {
160
+ return (d, a) => (p(), I(Q, {
162
161
  open: r.modal.open.value,
163
162
  "panel-class": "ce-modal",
164
163
  "panel-style": "width: min(460px, 95vw)",
@@ -166,7 +165,7 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
166
165
  onClose: a[5] || (a[5] = (n) => r.modal.close())
167
166
  }, {
168
167
  default: k(() => [
169
- e("div", te, [
168
+ e("div", oe, [
170
169
  a[7] || (a[7] = e("div", {
171
170
  id: "schedule-clone-title",
172
171
  class: "am-title"
@@ -197,14 +196,14 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
197
196
  _: 1
198
197
  })
199
198
  ]),
200
- e("div", ae, [
199
+ e("div", le, [
201
200
  r.modal.done.value === null ? (p(), m(L, { key: 0 }, [
202
- e("div", oe, [
201
+ e("div", re, [
203
202
  a[8] || (a[8] = H(" Copy ", -1)),
204
203
  e("b", null, h(r.modal.sourceLabel.value), 1),
205
204
  a[9] || (a[9] = H("'s pay rates to: ", -1))
206
205
  ]),
207
- e("div", le, [
206
+ e("div", ne, [
208
207
  a[10] || (a[10] = e("svg", {
209
208
  width: "16",
210
209
  height: "16",
@@ -236,7 +235,7 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
236
235
  [g, r.modal.query.value]
237
236
  ])
238
237
  ]),
239
- e("div", re, [
238
+ e("div", ie, [
240
239
  (p(!0), m(L, null, V(r.modal.targets.value, (n) => (p(), m("label", {
241
240
  key: n.value,
242
241
  class: "asg-row"
@@ -247,31 +246,31 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
247
246
  "data-platform": "desktop",
248
247
  checked: r.modal.selected.value.has(n.value),
249
248
  onChange: (t) => r.modal.toggle(n.value)
250
- }, null, 40, ne),
251
- e("span", ie, [
252
- e("span", ue, h(n.label), 1)
249
+ }, null, 40, ue),
250
+ e("span", de, [
251
+ e("span", pe, h(n.label), 1)
253
252
  ])
254
253
  ]))), 128)),
255
- r.modal.targets.value.length ? E("", !0) : (p(), m("div", de, h(r.modal.query.value ? "No outlet matches that search." : "No other outlets."), 1))
254
+ r.modal.targets.value.length ? A("", !0) : (p(), m("div", ve, h(r.modal.query.value ? "No outlet matches that search." : "No other outlets."), 1))
256
255
  ]),
257
256
  a[11] || (a[11] = e("div", {
258
257
  class: "ce-hint",
259
258
  style: { "margin-top": "var(--fm-spacing-10)" }
260
259
  }, " Copies this outlet's pay rates to the outlets you tick. Their current pay rates are replaced. ", -1))
261
- ], 64)) : (p(), m("div", pe, [
260
+ ], 64)) : (p(), m("div", me, [
262
261
  a[13] || (a[13] = e("span", {
263
262
  class: "cg-done-tick",
264
263
  "aria-hidden": "true"
265
264
  }, "✓", -1)),
266
- e("div", ve, [
265
+ e("div", ce, [
267
266
  a[12] || (a[12] = e("b", null, "Pay rates copied", -1)),
268
267
  e("small", null, "Sent to " + h(r.modal.done.value) + " outlet" + h(r.modal.done.value === 1 ? "" : "s"), 1)
269
268
  ])
270
269
  ]))
271
270
  ]),
272
- e("div", me, [
273
- e("div", ce, h(r.modal.done.value === null && r.modal.selected.value.size ? `${r.modal.selected.value.size} outlet${r.modal.selected.value.size === 1 ? "" : "s"} selected` : ""), 1),
274
- e("div", ye, [
271
+ e("div", ye, [
272
+ e("div", fe, h(r.modal.done.value === null && r.modal.selected.value.size ? `${r.modal.selected.value.size} outlet${r.modal.selected.value.size === 1 ? "" : "s"} selected` : ""), 1),
273
+ e("div", ge, [
275
274
  r.modal.done.value === null ? (p(), m(L, { key: 0 }, [
276
275
  b(x, {
277
276
  hierarchy: "secondary",
@@ -317,31 +316,31 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
317
316
  _: 1
318
317
  }, 8, ["open"]));
319
318
  }
320
- }), ge = { class: "main" }, he = {
319
+ }), we = { class: "main" }, be = {
321
320
  id: "viewSettings",
322
321
  class: "view"
323
- }, we = { class: "sp-head" }, be = { class: "outlet-bar" }, ke = { class: "sp-body" }, He = { class: "sp-tabs" }, Ce = ["onClick"], xe = { class: "sp-content" }, Se = { class: "sp-panel" }, Pe = {
322
+ }, ke = { class: "sp-head" }, He = { class: "outlet-bar" }, Ce = { class: "sp-body" }, xe = { class: "sp-tabs" }, Se = ["onClick"], Pe = { class: "sp-content" }, De = { class: "sp-panel" }, Re = {
324
323
  key: 0,
325
324
  id: "sp-payrates",
326
325
  class: "sp-sec"
327
- }, De = { class: "sp-card" }, Re = { class: "sp-row" }, Oe = { class: "sp-field" }, $e = { class: "sp-row" }, Me = { class: "sp-field" }, Le = { class: "sp-row" }, Ne = { class: "sp-field" }, Ee = { class: "sp-card" }, Ae = { class: "sp-row" }, Ie = { class: "sp-field" }, Ue = { class: "sp-row" }, Te = { class: "sp-field" }, Ve = {
326
+ }, Oe = { class: "sp-card" }, $e = { class: "sp-row" }, Me = { class: "sp-field" }, Le = { class: "sp-row" }, Ne = { class: "sp-field" }, Ee = { class: "sp-row" }, Ae = { class: "sp-field" }, Ie = { class: "sp-card" }, Ue = { class: "sp-row" }, Te = { class: "sp-field" }, Ve = { class: "sp-row" }, We = { class: "sp-field" }, Be = {
328
327
  key: 1,
329
328
  id: "sp-working-hours",
330
329
  class: "sp-sec"
331
- }, We = { class: "sp-card" }, Be = { class: "sp-row" }, ze = { class: "sp-field" }, Ye = { class: "sp-row" }, qe = { class: "sp-field" }, Fe = { class: "sp-row" }, Ge = { class: "sp-field" }, je = {
330
+ }, ze = { class: "sp-card" }, Ye = { class: "sp-row" }, qe = { class: "sp-field" }, Fe = { class: "sp-row" }, Ge = { class: "sp-field" }, je = { class: "sp-row" }, Je = { class: "sp-field" }, Qe = {
332
331
  key: 2,
333
332
  id: "sp-overtime",
334
333
  class: "sp-sec"
335
- }, Je = { class: "sp-card" }, Ke = { class: "sp-row" }, Qe = { class: "sp-save-txt" }, Xe = { key: 0 }, rs = /* @__PURE__ */ T({
334
+ }, Ke = { class: "sp-card" }, Xe = { class: "sp-row" }, Ze = { class: "sp-save-txt" }, _e = { key: 0 }, rs = /* @__PURE__ */ T({
336
335
  __name: "ScheduleGeneralPage",
337
336
  setup(r) {
338
337
  const d = w(null);
339
- J(d);
340
- const a = Y(), n = q(), t = ee(), u = K(), C = se(u, {
338
+ K(d);
339
+ const a = q(), n = F(), t = te(), u = X(), C = ae(u, {
341
340
  notify: (o, s) => n.open({ message: o, type: s })
342
341
  }), y = w(!1);
343
- B(async () => {
344
- await u.resolve() && await Q(/* @__PURE__ */ new Date()), await t.load(), t.open();
342
+ z(async () => {
343
+ await u.resolve() && await Z(/* @__PURE__ */ new Date()), await t.load(), t.open();
345
344
  });
346
345
  const S = N(
347
346
  () => u.options.value.length ? u.options.value : [{ value: "", label: "No outlet selected", disabled: !0 }]
@@ -350,7 +349,7 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
350
349
  t.dirty.value || await u.switchTo(o, /* @__PURE__ */ new Date()) && (await t.load(), t.open());
351
350
  }
352
351
  function D() {
353
- t.close() && a.push({ name: F.SCHEDULE });
352
+ t.close() && a.push({ name: G.SCHEDULE });
354
353
  }
355
354
  function R() {
356
355
  if (!y.value) {
@@ -374,9 +373,9 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
374
373
  ref: d,
375
374
  class: "sch"
376
375
  }, [
377
- e("div", ge, [
378
- e("div", he, [
379
- e("div", we, [
376
+ e("div", we, [
377
+ e("div", be, [
378
+ e("div", ke, [
380
379
  b(x, {
381
380
  hierarchy: "ghost",
382
381
  size: "sm",
@@ -404,10 +403,10 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
404
403
  ])]),
405
404
  _: 1
406
405
  }),
407
- s[15] || (s[15] = z('<div class="sp-title-row"><div class="sp-title">General Settings</div><span class="page-tags"><span class="sch-badge page-tag-premium" data-color="brand">Premium</span><span class="sch-badge" data-color="info">Free until 31 Dec 2026</span></span></div><div class="sp-sub">Pay multipliers and overtime limit for this outlet.</div>', 2)),
408
- e("div", be, [
406
+ s[15] || (s[15] = Y('<div class="sp-title-row"><div class="sp-title">General Settings</div><span class="page-tags"><span class="sch-badge page-tag-premium" data-color="brand">Premium</span><span class="sch-badge" data-color="info">Free until 31 Dec 2026</span></span></div><div class="sp-sub">Pay multipliers and overtime limit for this outlet.</div>', 2)),
407
+ e("div", He, [
409
408
  s[14] || (s[14] = e("span", { class: "outlet-bar-lbl" }, "Outlet", -1)),
410
- b(X, {
409
+ b(_, {
411
410
  class: "outlet-sel",
412
411
  "aria-label": "Outlet being configured",
413
412
  searchable: "",
@@ -456,34 +455,34 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
456
455
  }, 8, ["disabled", "title"])
457
456
  ])
458
457
  ]),
459
- e("div", ke, [
460
- e("nav", He, [
461
- (p(!0), m(L, null, V(l(_), (i) => (p(), m("button", {
458
+ e("div", Ce, [
459
+ e("nav", xe, [
460
+ (p(!0), m(L, null, V(l(se), (i) => (p(), m("button", {
462
461
  key: i.key,
463
462
  type: "button",
464
463
  class: U(["sch-tab sp-tab", { active: l(t).activeSection.value === i.key }]),
465
464
  "data-active": "false",
466
465
  onClick: (O) => l(t).activeSection.value = i.key
467
- }, h(i.label), 11, Ce))), 128))
466
+ }, h(i.label), 11, Se))), 128))
468
467
  ]),
469
- e("div", xe, [
470
- e("div", Se, [
471
- l(t).activeSection.value === "payrates" ? (p(), m("section", Pe, [
468
+ e("div", Pe, [
469
+ e("div", De, [
470
+ l(t).activeSection.value === "payrates" ? (p(), m("section", Re, [
472
471
  s[28] || (s[28] = e("div", { class: "sp-sec-head" }, [
473
472
  e("div", { class: "sp-panel-title" }, "Pay rates")
474
473
  ], -1)),
475
474
  s[29] || (s[29] = e("div", { class: "sp-panel-desc" }, "Pay multipliers by kind of day.", -1)),
476
- e("div", De, [
475
+ e("div", Oe, [
477
476
  s[22] || (s[22] = e("div", { class: "sp-card-head" }, [
478
477
  e("div", { class: "sp-card-title" }, "Overtime rate"),
479
478
  e("div", { class: "sp-card-note" }, "Multiplier on every OT hour")
480
479
  ], -1)),
481
- e("div", Re, [
480
+ e("div", $e, [
482
481
  s[17] || (s[17] = e("div", { class: "sp-row-main" }, [
483
482
  e("div", { class: "sp-row-label" }, "Normal operations day"),
484
483
  e("div", { class: "sp-row-hint" }, " Multiplier on their rate for hours past the weekly contract. ")
485
484
  ], -1)),
486
- e("div", Oe, [
485
+ e("div", Me, [
487
486
  f(e("input", {
488
487
  "onUpdate:modelValue": s[1] || (s[1] = (i) => l(t).draft.payRate.NORMAL.overtime = i),
489
488
  class: "sch-input sp-num",
@@ -503,12 +502,12 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
503
502
  s[16] || (s[16] = e("span", { class: "sp-unit" }, "×", -1))
504
503
  ])
505
504
  ]),
506
- e("div", $e, [
505
+ e("div", Le, [
507
506
  s[19] || (s[19] = e("div", { class: "sp-row-main" }, [
508
507
  e("div", { class: "sp-row-label" }, "Off day"),
509
508
  e("div", { class: "sp-row-hint" }, " For a shift on the person's off day, weekly or booked. Check the rate with HR. ")
510
509
  ], -1)),
511
- e("div", Me, [
510
+ e("div", Ne, [
512
511
  f(e("input", {
513
512
  "onUpdate:modelValue": s[2] || (s[2] = (i) => l(t).draft.payRate.REST_DAY.overtime = i),
514
513
  class: "sch-input sp-num",
@@ -528,12 +527,12 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
528
527
  s[18] || (s[18] = e("span", { class: "sp-unit" }, "×", -1))
529
528
  ])
530
529
  ]),
531
- e("div", Le, [
530
+ e("div", Ee, [
532
531
  s[21] || (s[21] = e("div", { class: "sp-row-main" }, [
533
532
  e("div", { class: "sp-row-label" }, "Public holiday"),
534
533
  e("div", { class: "sp-row-hint" }, " For dates on the holiday calendar. Wins over an off day on the same date. ")
535
534
  ], -1)),
536
- e("div", Ne, [
535
+ e("div", Ae, [
537
536
  f(e("input", {
538
537
  "onUpdate:modelValue": s[3] || (s[3] = (i) => l(t).draft.payRate.PUBLIC_HOLIDAY.overtime = i),
539
538
  class: "sch-input sp-num",
@@ -554,17 +553,17 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
554
553
  ])
555
554
  ])
556
555
  ]),
557
- e("div", Ee, [
556
+ e("div", Ie, [
558
557
  s[27] || (s[27] = e("div", { class: "sp-card-head" }, [
559
558
  e("div", { class: "sp-card-title" }, "Regular rate"),
560
559
  e("div", { class: "sp-card-note" }, "Multiplier on ordinary hours")
561
560
  ], -1)),
562
- e("div", Ae, [
561
+ e("div", Ue, [
563
562
  s[24] || (s[24] = e("div", { class: "sp-row-main" }, [
564
563
  e("div", { class: "sp-row-label" }, "Off day"),
565
564
  e("div", { class: "sp-row-hint" }, "Ordinary hours worked on the person's off day.")
566
565
  ], -1)),
567
- e("div", Ie, [
566
+ e("div", Te, [
568
567
  f(e("input", {
569
568
  "onUpdate:modelValue": s[4] || (s[4] = (i) => l(t).draft.payRate.REST_DAY.regular = i),
570
569
  class: "sch-input sp-num",
@@ -584,12 +583,12 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
584
583
  s[23] || (s[23] = e("span", { class: "sp-unit" }, "×", -1))
585
584
  ])
586
585
  ]),
587
- e("div", Ue, [
586
+ e("div", Ve, [
588
587
  s[26] || (s[26] = e("div", { class: "sp-row-main" }, [
589
588
  e("div", { class: "sp-row-label" }, "Public holiday"),
590
589
  e("div", { class: "sp-row-hint" }, " Ordinary hours worked on a date on the holiday calendar. ")
591
590
  ], -1)),
592
- e("div", Te, [
591
+ e("div", We, [
593
592
  f(e("input", {
594
593
  "onUpdate:modelValue": s[5] || (s[5] = (i) => l(t).draft.payRate.PUBLIC_HOLIDAY.regular = i),
595
594
  class: "sch-input sp-num",
@@ -610,21 +609,21 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
610
609
  ])
611
610
  ])
612
611
  ])
613
- ])) : l(t).activeSection.value === "workingHours" ? (p(), m("section", Ve, [
612
+ ])) : l(t).activeSection.value === "workingHours" ? (p(), m("section", Be, [
614
613
  s[37] || (s[37] = e("div", { class: "sp-sec-head" }, [
615
614
  e("div", { class: "sp-panel-title" }, "Working hours")
616
615
  ], -1)),
617
616
  s[38] || (s[38] = e("div", { class: "sp-panel-desc" }, "Default employee working-hour limits when no individual setting is provided.", -1)),
618
- e("div", We, [
617
+ e("div", ze, [
619
618
  s[36] || (s[36] = e("div", { class: "sp-card-head" }, [
620
619
  e("div", { class: "sp-card-title" }, "Default working hours"),
621
620
  e("div", { class: "sp-card-note" }, "Used as the employee default")
622
621
  ], -1)),
623
- e("div", Be, [
622
+ e("div", Ye, [
624
623
  s[31] || (s[31] = e("div", { class: "sp-row-main" }, [
625
624
  e("div", { class: "sp-row-label" }, "Min hours per day")
626
625
  ], -1)),
627
- e("div", ze, [
626
+ e("div", qe, [
628
627
  f(e("input", {
629
628
  "onUpdate:modelValue": s[6] || (s[6] = (i) => l(t).draft.workingHours.minHoursPerDay = i),
630
629
  class: "sch-input sp-num",
@@ -645,11 +644,11 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
645
644
  s[30] || (s[30] = e("span", { class: "sp-unit" }, "hours / day", -1))
646
645
  ])
647
646
  ]),
648
- e("div", Ye, [
647
+ e("div", Fe, [
649
648
  s[33] || (s[33] = e("div", { class: "sp-row-main" }, [
650
649
  e("div", { class: "sp-row-label" }, "Max hours per day")
651
650
  ], -1)),
652
- e("div", qe, [
651
+ e("div", Ge, [
653
652
  f(e("input", {
654
653
  "onUpdate:modelValue": s[7] || (s[7] = (i) => l(t).draft.workingHours.maxHoursPerDay = i),
655
654
  class: "sch-input sp-num",
@@ -670,11 +669,11 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
670
669
  s[32] || (s[32] = e("span", { class: "sp-unit" }, "hours / day", -1))
671
670
  ])
672
671
  ]),
673
- e("div", Fe, [
672
+ e("div", je, [
674
673
  s[35] || (s[35] = e("div", { class: "sp-row-main" }, [
675
674
  e("div", { class: "sp-row-label" }, "Max hours per week")
676
675
  ], -1)),
677
- e("div", Ge, [
676
+ e("div", Je, [
678
677
  f(e("input", {
679
678
  "onUpdate:modelValue": s[8] || (s[8] = (i) => l(t).draft.workingHours.maxHoursPerWeek = i),
680
679
  class: "sch-input sp-num",
@@ -696,17 +695,17 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
696
695
  ])
697
696
  ])
698
697
  ])
699
- ])) : l(t).activeSection.value === "overtime" ? (p(), m("section", je, [
698
+ ])) : l(t).activeSection.value === "overtime" ? (p(), m("section", Qe, [
700
699
  s[41] || (s[41] = e("div", { class: "sp-sec-head" }, [
701
700
  e("div", { class: "sp-panel-title" }, "Overtime")
702
701
  ], -1)),
703
702
  s[42] || (s[42] = e("div", { class: "sp-panel-desc" }, "The monthly statutory cap on overtime hours.", -1)),
704
- e("div", Je, [
703
+ e("div", Ke, [
705
704
  s[40] || (s[40] = e("div", { class: "sp-card-head" }, [
706
705
  e("div", { class: "sp-card-title" }, "Maximum OT Hours"),
707
706
  e("div", { class: "sp-card-note" }, "Enforced")
708
707
  ], -1)),
709
- e("div", Ke, [
708
+ e("div", Xe, [
710
709
  s[39] || (s[39] = e("div", { class: "sp-row-main" }, [
711
710
  e("div", { class: "sp-row-label" }, "Monthly OT cap"),
712
711
  e("div", { class: "sp-row-hint" }, " Hours per person per month. Auto-Schedule never exceeds it. ")
@@ -730,15 +729,15 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
730
729
  ])
731
730
  ])
732
731
  ])
733
- ])) : E("", !0)
732
+ ])) : A("", !0)
734
733
  ])
735
734
  ]),
736
735
  e("div", {
737
736
  class: U(["sp-save", { dirty: l(t).dirty.value, arming: y.value }])
738
737
  }, [
739
- e("div", Qe, [
738
+ e("div", Ze, [
740
739
  H(h(y.value ? "Discard unsaved changes?" : "Unsaved changes") + " ", 1),
741
- y.value ? E("", !0) : (p(), m("span", Xe, "— save or discard before leaving."))
740
+ y.value ? A("", !0) : (p(), m("span", _e, "— save or discard before leaving."))
742
741
  ]),
743
742
  b(x, {
744
743
  hierarchy: "secondary",
@@ -768,7 +767,7 @@ const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
768
767
  ])
769
768
  ])
770
769
  ]),
771
- b(fe, { modal: l(C) }, null, 8, ["modal"])
770
+ b(he, { modal: l(C) }, null, 8, ["modal"])
772
771
  ], 512));
773
772
  }
774
773
  });