@feedmepos/mf-hrm-portal 2.2.5-dev.8 → 2.2.5-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalCodeList-BzL73nqc.js → ApprovalCodeList-D5l9vIsE.js} +2 -2
- package/dist/{AuditLogList-BEZoHLsX.js → AuditLogList-ByTa5UJY.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DDrP7ywR.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-mNdn1TYV.js} +2 -2
- package/dist/{EmployeeList-s4FYw1ZF.js → EmployeeList-Bv6ANk-P.js} +8 -9
- package/dist/{GrantUserList-Ci_ElhHZ.js → GrantUserList-Bt8w3p4j.js} +3 -3
- package/dist/{Main-BojQuzZI.js → Main-DHJcgePj.js} +5 -5
- package/dist/{Main-N1CNGDAy.js → Main-DkP8dWgn.js} +9 -9
- package/dist/{Main-CKr3RGvf.js → Main-DqiGpT4v.js} +2 -2
- package/dist/{PermissionSetList-DLknSOzA.js → PermissionSetList-BIGv1u67.js} +10 -11
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DK2Bx8Aw.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-niywl_DX.js} +892 -893
- package/dist/{RoleList-Cm7_q5l9.js → RoleList-CH6NDKPU.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DrJ1vA88.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-T1ACkX_6.js} +39 -39
- package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-BzQuLLf5.js +690 -0
- package/dist/{ScheduleGeneralPage-CmR4BZAp.js → ScheduleGeneralPage-DJPENJZ2.js} +96 -99
- package/dist/SchedulePage-C1egcbIC.js +14421 -0
- package/dist/{SchedulePositionPage-Bv3zraaF.js → SchedulePositionPage-OhL_hsqG.js} +10 -10
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-B8W4sTsA.js +242 -0
- package/dist/{TeamMemberList-D2OfkfJP.js → TeamMemberList-BwfG3go2.js} +8 -9
- package/dist/{TimesheetList-DEdLpYuM.js → TimesheetList-DcoqzbLO.js} +5 -5
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-BfMkNvCz.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-RyhiKTSd.js} +2 -2
- package/dist/{app-Dmmpy4k-.js → app-BcZ6C8M8.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DcfKURXN.js → dayjs.min-Ch0iysTG.js} +1 -1
- package/dist/employee-DwYHFacQ.js +204 -0
- package/dist/{index-BxkisKEs.js → iteration-D1uWLp0V.js} +726 -698
- package/dist/{lodash-p40sRkqQ.js → lodash-DErxm7xf.js} +1 -1
- package/dist/{role-CM1urkJZ.js → role-B9VanAny.js} +3 -4
- package/dist/{rule-BPApyMJY.js → rule-C4f_Ilzr.js} +36 -37
- package/dist/src/views/scheduling/components/ScheduleAutoScheduleModal.vue.d.ts +5 -1
- package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +2 -0
- package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +18 -2
- package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +4 -0
- package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +4 -0
- package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +2 -2
- package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +4 -0
- package/dist/src/views/scheduling/composables/scheduleAutoSolver.d.ts +21 -0
- package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +10 -11
- package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +5 -3
- package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +7 -1
- package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +11 -2
- package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +11 -0
- package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +1 -0
- package/dist/src/views/scheduling/composables/useScheduleStaffRail.d.ts +4 -1
- package/dist/src/views/scheduling/schedule-store.d.ts +25 -0
- package/dist/src/views/scheduling/types.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-5EhPvVT9.js → useReportPermissions-CTr56kBo.js} +3 -3
- package/package.json +1 -1
- package/dist/ScheduleButton.vue_vue_type_script_setup_true_lang-DX5JR7bi.js +0 -600
- package/dist/SchedulePage-CN3ZsQ9E.js +0 -13905
- package/dist/ScheduleSelect.vue_vue_type_script_setup_true_lang-Buu8NEQf.js +0 -221
- package/dist/employee-D3ZpYH4j.js +0 -139
- package/dist/index-D-VlxJu9.js +0 -70
- package/dist/iteration-CcXrOMQe.js +0 -30
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { R as
|
|
4
|
-
import { b as i,
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
1
|
+
import { ref as h, reactive as D, computed as C, defineComponent as E, onMounted as U, createElementBlock as c, openBlock as y, createElementVNode as s, createVNode as f, withCtx as k, unref as o, createTextVNode as p, toDisplayString as b, Fragment as B, renderList as x, normalizeClass as N, withDirectives as v, vModelText as m, createCommentVNode as F } from "vue";
|
|
2
|
+
import { useRouter as I } from "vue-router";
|
|
3
|
+
import { R as A } from "./app-BcZ6C8M8.js";
|
|
4
|
+
import { b as i, H, O as V, I as P, y as J, _ as R } from "./ScheduleButton.vue_vue_type_script_setup_true_lang-BzQuLLf5.js";
|
|
5
|
+
import { _ as M } from "./ScheduleSelect.vue_vue_type_script_setup_true_lang-B8W4sTsA.js";
|
|
6
|
+
const Y = [
|
|
7
7
|
{ key: "overtime", label: "Overtime" }
|
|
8
8
|
];
|
|
9
9
|
function g() {
|
|
@@ -20,67 +20,67 @@ function g() {
|
|
|
20
20
|
})
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
const d =
|
|
25
|
-
function
|
|
23
|
+
function $() {
|
|
24
|
+
const d = h(!1), u = h("overtime"), l = D(g());
|
|
25
|
+
function w(S) {
|
|
26
26
|
Object.assign(l, g()), u.value = S ?? "overtime", d.value = !0;
|
|
27
27
|
}
|
|
28
|
-
const t =
|
|
29
|
-
function
|
|
28
|
+
const t = C(() => JSON.stringify(l) !== JSON.stringify(g()));
|
|
29
|
+
function n() {
|
|
30
30
|
return t.value ? !1 : (d.value = !1, !0);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function r() {
|
|
33
33
|
Object.assign(l, g()), d.value = !1;
|
|
34
34
|
}
|
|
35
35
|
function O() {
|
|
36
36
|
i.salesForecast = l.salesForecast, i.labourTarget = l.labourTarget, i.budgetFromSales = l.budgetFromSales, i.budget = l.budget, i.payRate = JSON.parse(JSON.stringify(l.payRate)), i.otCapHours = l.otCapHours, i.otBudget = l.otBudget, i.notify = JSON.parse(JSON.stringify(l.notify)), d.value = !1;
|
|
37
37
|
}
|
|
38
|
-
return { isOpen: d, activeSection: u, draft: l, dirty: t, open:
|
|
38
|
+
return { isOpen: d, activeSection: u, draft: l, dirty: t, open: w, close: n, discard: r, save: O };
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const z = { class: "main" }, j = {
|
|
41
41
|
id: "viewSettings",
|
|
42
42
|
class: "view"
|
|
43
|
-
}, G = { class: "sp-head" }, W = { class: "outlet-bar" },
|
|
43
|
+
}, G = { class: "sp-head" }, W = { class: "outlet-bar" }, q = { class: "outlet-note" }, K = { class: "sp-body" }, Q = { class: "sp-tabs" }, X = ["onClick"], Z = { class: "sp-content" }, ss = { class: "sp-panel" }, es = {
|
|
44
44
|
id: "sp-overtime",
|
|
45
45
|
class: "sp-sec"
|
|
46
|
-
}, ts = { class: "sp-card" }, as = { class: "sp-row" }, os = { class: "sp-field" }, is = { class: "sp-row" }, ls = { class: "sp-field" },
|
|
46
|
+
}, ts = { class: "sp-card" }, as = { class: "sp-row" }, os = { class: "sp-field" }, is = { class: "sp-row" }, ls = { class: "sp-field" }, rs = { class: "sp-row" }, ns = { class: "sp-field" }, ds = { class: "sp-card" }, us = { class: "sp-row" }, ps = { class: "sp-field" }, vs = { class: "sp-row" }, ms = { class: "sp-field" }, cs = { class: "sp-save-txt" }, ys = { key: 0 }, Ss = /* @__PURE__ */ E({
|
|
47
47
|
__name: "ScheduleGeneralPage",
|
|
48
48
|
setup(d) {
|
|
49
|
-
const u =
|
|
50
|
-
|
|
51
|
-
const l =
|
|
52
|
-
() =>
|
|
49
|
+
const u = h(null);
|
|
50
|
+
H(u);
|
|
51
|
+
const l = C(() => V.name || "No outlet selected"), w = I(), t = $(), n = P(), r = h(!1), O = C(
|
|
52
|
+
() => n.options.value.length ? n.options.value : [{ value: "", label: "No outlet selected", disabled: !0 }]
|
|
53
53
|
);
|
|
54
|
-
function S(
|
|
55
|
-
|
|
54
|
+
function S(_) {
|
|
55
|
+
n.switchTo(_, /* @__PURE__ */ new Date());
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
await
|
|
57
|
+
U(async () => {
|
|
58
|
+
await n.resolve() && await J(/* @__PURE__ */ new Date()), t.open();
|
|
59
59
|
});
|
|
60
|
-
function
|
|
61
|
-
t.close() &&
|
|
60
|
+
function T() {
|
|
61
|
+
t.close() && w.push({ name: A.SCHEDULE });
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
if (!
|
|
65
|
-
|
|
63
|
+
function L() {
|
|
64
|
+
if (!r.value) {
|
|
65
|
+
r.value = !0;
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
r.value = !1, t.discard();
|
|
69
69
|
}
|
|
70
|
-
return (
|
|
70
|
+
return (_, e) => (y(), c("div", {
|
|
71
71
|
ref_key: "rootEl",
|
|
72
72
|
ref: u,
|
|
73
73
|
class: "sch"
|
|
74
74
|
}, [
|
|
75
|
-
s("div",
|
|
75
|
+
s("div", z, [
|
|
76
76
|
s("div", j, [
|
|
77
77
|
s("div", G, [
|
|
78
|
-
f(
|
|
78
|
+
f(R, {
|
|
79
79
|
hierarchy: "ghost",
|
|
80
80
|
size: "sm",
|
|
81
81
|
class: "sp-back",
|
|
82
82
|
type: "button",
|
|
83
|
-
onClick:
|
|
83
|
+
onClick: T
|
|
84
84
|
}, {
|
|
85
85
|
default: k(() => [...e[7] || (e[7] = [
|
|
86
86
|
s("svg", {
|
|
@@ -103,44 +103,44 @@ const Y = { class: "main" }, j = {
|
|
|
103
103
|
_: 1
|
|
104
104
|
}),
|
|
105
105
|
e[11] || (e[11] = s("div", { class: "sp-title" }, "General", -1)),
|
|
106
|
-
e[12] || (e[12] = s("div", { class: "sp-sub" }, "
|
|
106
|
+
e[12] || (e[12] = s("div", { class: "sp-sub" }, "Pay multipliers for this outlet.", -1)),
|
|
107
107
|
s("div", W, [
|
|
108
108
|
e[10] || (e[10] = s("span", { class: "outlet-bar-lbl" }, "Outlet", -1)),
|
|
109
|
-
f(
|
|
109
|
+
f(M, {
|
|
110
110
|
class: "outlet-sel",
|
|
111
111
|
"aria-label": "Outlet these rules apply to",
|
|
112
|
-
"model-value": o(
|
|
112
|
+
"model-value": o(n).outletId.value,
|
|
113
113
|
options: O.value,
|
|
114
114
|
"onUpdate:modelValue": S
|
|
115
115
|
}, null, 8, ["model-value", "options"]),
|
|
116
|
-
s("span",
|
|
116
|
+
s("span", q, [
|
|
117
117
|
e[8] || (e[8] = p("This setup applies to ", -1)),
|
|
118
|
-
s("b", null,
|
|
118
|
+
s("b", null, b(l.value), 1),
|
|
119
119
|
e[9] || (e[9] = p(".", -1))
|
|
120
120
|
])
|
|
121
121
|
])
|
|
122
122
|
]),
|
|
123
|
-
s("div",
|
|
124
|
-
s("nav",
|
|
125
|
-
(
|
|
123
|
+
s("div", K, [
|
|
124
|
+
s("nav", Q, [
|
|
125
|
+
(y(!0), c(B, null, x(o(Y), (a) => (y(), c("button", {
|
|
126
126
|
key: a.key,
|
|
127
127
|
type: "button",
|
|
128
|
-
class: N(["
|
|
128
|
+
class: N(["sch-tab sp-tab", { active: o(t).activeSection.value === a.key }]),
|
|
129
129
|
"data-active": "false",
|
|
130
130
|
onClick: (fs) => o(t).activeSection.value = a.key
|
|
131
|
-
},
|
|
131
|
+
}, b(a.label), 11, X))), 128))
|
|
132
132
|
]),
|
|
133
133
|
s("div", Z, [
|
|
134
134
|
s("div", ss, [
|
|
135
135
|
s("section", es, [
|
|
136
136
|
e[25] || (e[25] = s("div", { class: "sp-sec-head" }, [
|
|
137
|
-
s("div", { class: "sp-panel-title" }, "
|
|
137
|
+
s("div", { class: "sp-panel-title" }, "Pay rates")
|
|
138
138
|
], -1)),
|
|
139
|
-
e[26] || (e[26] = s("div", { class: "sp-panel-desc" }, "
|
|
139
|
+
e[26] || (e[26] = s("div", { class: "sp-panel-desc" }, "Pay multipliers by kind of day.", -1)),
|
|
140
140
|
s("div", ts, [
|
|
141
141
|
e[19] || (e[19] = s("div", { class: "sp-card-head" }, [
|
|
142
|
-
s("div", { class: "sp-card-title" }, "
|
|
143
|
-
s("div", { class: "sp-card-note" }, "Multiplier every OT hour")
|
|
142
|
+
s("div", { class: "sp-card-title" }, "Overtime rate"),
|
|
143
|
+
s("div", { class: "sp-card-note" }, "Multiplier on every OT hour")
|
|
144
144
|
], -1)),
|
|
145
145
|
s("div", as, [
|
|
146
146
|
e[14] || (e[14] = s("div", { class: "sp-row-main" }, [
|
|
@@ -150,7 +150,7 @@ const Y = { class: "main" }, j = {
|
|
|
150
150
|
s("div", os, [
|
|
151
151
|
v(s("input", {
|
|
152
152
|
"onUpdate:modelValue": e[0] || (e[0] = (a) => o(t).draft.payRate.NORMAL.overtime = a),
|
|
153
|
-
class: "
|
|
153
|
+
class: "sch-input sp-num",
|
|
154
154
|
type: "number",
|
|
155
155
|
min: "1",
|
|
156
156
|
max: "4",
|
|
@@ -175,7 +175,7 @@ const Y = { class: "main" }, j = {
|
|
|
175
175
|
s("div", ls, [
|
|
176
176
|
v(s("input", {
|
|
177
177
|
"onUpdate:modelValue": e[1] || (e[1] = (a) => o(t).draft.payRate.REST_DAY.overtime = a),
|
|
178
|
-
class: "
|
|
178
|
+
class: "sch-input sp-num",
|
|
179
179
|
type: "number",
|
|
180
180
|
min: "1",
|
|
181
181
|
max: "4",
|
|
@@ -192,15 +192,15 @@ const Y = { class: "main" }, j = {
|
|
|
192
192
|
e[15] || (e[15] = s("span", { class: "sp-unit" }, "×", -1))
|
|
193
193
|
])
|
|
194
194
|
]),
|
|
195
|
-
s("div",
|
|
195
|
+
s("div", rs, [
|
|
196
196
|
e[18] || (e[18] = s("div", { class: "sp-row-main" }, [
|
|
197
197
|
s("div", { class: "sp-row-label" }, "Public holiday"),
|
|
198
198
|
s("div", { class: "sp-row-hint" }, " For dates on the holiday calendar. Wins over a rest day on the same date. ")
|
|
199
199
|
], -1)),
|
|
200
|
-
s("div",
|
|
200
|
+
s("div", ns, [
|
|
201
201
|
v(s("input", {
|
|
202
202
|
"onUpdate:modelValue": e[2] || (e[2] = (a) => o(t).draft.payRate.PUBLIC_HOLIDAY.overtime = a),
|
|
203
|
-
class: "
|
|
203
|
+
class: "sch-input sp-num",
|
|
204
204
|
type: "number",
|
|
205
205
|
min: "1",
|
|
206
206
|
max: "4",
|
|
@@ -219,61 +219,58 @@ const Y = { class: "main" }, j = {
|
|
|
219
219
|
])
|
|
220
220
|
]),
|
|
221
221
|
s("div", ds, [
|
|
222
|
-
e[
|
|
223
|
-
s("div", { class: "sp-card-title" }, "
|
|
224
|
-
s("div", { class: "sp-card-note" }, "
|
|
222
|
+
e[24] || (e[24] = s("div", { class: "sp-card-head" }, [
|
|
223
|
+
s("div", { class: "sp-card-title" }, "Regular rate"),
|
|
224
|
+
s("div", { class: "sp-card-note" }, "Multiplier on ordinary hours")
|
|
225
225
|
], -1)),
|
|
226
226
|
s("div", us, [
|
|
227
|
-
e[
|
|
228
|
-
s("div", { class: "sp-row-label" }, "
|
|
229
|
-
s("div", { class: "sp-row-hint" }, "
|
|
227
|
+
e[21] || (e[21] = s("div", { class: "sp-row-main" }, [
|
|
228
|
+
s("div", { class: "sp-row-label" }, "Rest day"),
|
|
229
|
+
s("div", { class: "sp-row-hint" }, "Ordinary hours worked on the person's rest day.")
|
|
230
230
|
], -1)),
|
|
231
|
-
|
|
232
|
-
"
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
[
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
231
|
+
s("div", ps, [
|
|
232
|
+
v(s("input", {
|
|
233
|
+
"onUpdate:modelValue": e[3] || (e[3] = (a) => o(t).draft.payRate.REST_DAY.regular = a),
|
|
234
|
+
class: "sch-input sp-num",
|
|
235
|
+
type: "number",
|
|
236
|
+
min: "1",
|
|
237
|
+
max: "4",
|
|
238
|
+
step: "0.1",
|
|
239
|
+
"aria-label": "Regular rate on a rest day"
|
|
240
|
+
}, null, 512), [
|
|
241
|
+
[
|
|
242
|
+
m,
|
|
243
|
+
o(t).draft.payRate.REST_DAY.regular,
|
|
244
|
+
void 0,
|
|
245
|
+
{ number: !0 }
|
|
246
|
+
]
|
|
247
|
+
]),
|
|
248
|
+
e[20] || (e[20] = s("span", { class: "sp-unit" }, "×", -1))
|
|
246
249
|
])
|
|
247
|
-
])
|
|
248
|
-
]),
|
|
249
|
-
s("div", ps, [
|
|
250
|
-
e[24] || (e[24] = s("div", { class: "sp-card-head" }, [
|
|
251
|
-
s("div", { class: "sp-card-title" }, "Cost · whole outlet"),
|
|
252
|
-
s("div", { class: "sp-card-note" }, "Advisory")
|
|
253
|
-
], -1)),
|
|
250
|
+
]),
|
|
254
251
|
s("div", vs, [
|
|
255
252
|
e[23] || (e[23] = s("div", { class: "sp-row-main" }, [
|
|
256
|
-
s("div", { class: "sp-row-label" }, "
|
|
257
|
-
s("div", { class: "sp-row-hint" }, "
|
|
253
|
+
s("div", { class: "sp-row-label" }, "Public holiday"),
|
|
254
|
+
s("div", { class: "sp-row-hint" }, "Ordinary hours worked on a date on the holiday calendar.")
|
|
258
255
|
], -1)),
|
|
259
256
|
s("div", ms, [
|
|
260
|
-
e[22] || (e[22] = s("span", { class: "sp-unit" }, "RM", -1)),
|
|
261
257
|
v(s("input", {
|
|
262
|
-
"onUpdate:modelValue": e[4] || (e[4] = (a) => o(t).draft.
|
|
263
|
-
class: "
|
|
258
|
+
"onUpdate:modelValue": e[4] || (e[4] = (a) => o(t).draft.payRate.PUBLIC_HOLIDAY.regular = a),
|
|
259
|
+
class: "sch-input sp-num",
|
|
264
260
|
type: "number",
|
|
265
|
-
min: "
|
|
266
|
-
max: "
|
|
267
|
-
step: "
|
|
268
|
-
"aria-label": "
|
|
261
|
+
min: "1",
|
|
262
|
+
max: "4",
|
|
263
|
+
step: "0.1",
|
|
264
|
+
"aria-label": "Regular rate on a public holiday"
|
|
269
265
|
}, null, 512), [
|
|
270
266
|
[
|
|
271
267
|
m,
|
|
272
|
-
o(t).draft.
|
|
268
|
+
o(t).draft.payRate.PUBLIC_HOLIDAY.regular,
|
|
273
269
|
void 0,
|
|
274
270
|
{ number: !0 }
|
|
275
271
|
]
|
|
276
|
-
])
|
|
272
|
+
]),
|
|
273
|
+
e[22] || (e[22] = s("span", { class: "sp-unit" }, "×", -1))
|
|
277
274
|
])
|
|
278
275
|
])
|
|
279
276
|
])
|
|
@@ -281,25 +278,25 @@ const Y = { class: "main" }, j = {
|
|
|
281
278
|
])
|
|
282
279
|
]),
|
|
283
280
|
s("div", {
|
|
284
|
-
class: N(["sp-save", { dirty: o(t).dirty.value, arming:
|
|
281
|
+
class: N(["sp-save", { dirty: o(t).dirty.value, arming: r.value }])
|
|
285
282
|
}, [
|
|
286
283
|
s("div", cs, [
|
|
287
|
-
p(
|
|
288
|
-
|
|
284
|
+
p(b(r.value ? "Discard unsaved changes?" : "Unsaved changes") + " ", 1),
|
|
285
|
+
r.value ? F("", !0) : (y(), c("span", ys, "— save or discard before leaving."))
|
|
289
286
|
]),
|
|
290
|
-
f(
|
|
287
|
+
f(R, {
|
|
291
288
|
hierarchy: "secondary",
|
|
292
289
|
size: "sm",
|
|
293
290
|
class: "am-btn am-btn-sec",
|
|
294
291
|
type: "button",
|
|
295
|
-
onClick: e[5] || (e[5] = (a) =>
|
|
292
|
+
onClick: e[5] || (e[5] = (a) => L())
|
|
296
293
|
}, {
|
|
297
294
|
default: k(() => [
|
|
298
|
-
p(
|
|
295
|
+
p(b(r.value ? "Confirm discard" : "Discard"), 1)
|
|
299
296
|
]),
|
|
300
297
|
_: 1
|
|
301
298
|
}),
|
|
302
|
-
f(
|
|
299
|
+
f(R, {
|
|
303
300
|
hierarchy: "primary",
|
|
304
301
|
size: "sm",
|
|
305
302
|
class: "am-btn am-btn-primary",
|